AFTD Auto-Formalizing Theoretical Domains

cross_complete_shore_intersections_disjoint

theoremverified

For two complete bipartite cross-shore pairs, the intersection of the W shores is disjoint from the union of the Q shores, and the intersection of the Q shores is disjoint from the union of the W shores.

Statement

theorem cross_complete_shore_intersections_disjoint
    {V : Type*} [DecidableEq V] (H : SimpleGraph V)
    (W₁ W₂ Q₁ Q₂ : Finset V)
    (hcross₁ : ∀ q ∈ Q₁, ∀ w ∈ W₁, H.Adj q w)
    (hcross₂ : ∀ q ∈ Q₂, ∀ w ∈ W₂, H.Adj q w) :
    Disjoint (W₁ ∩ W₂) (Q₁ ∪ Q₂) ∧
      Disjoint (Q₁ ∩ Q₂) (W₁ ∪ W₂)
Source
Bridge-to-crossing-set verification for the OP-1957 campaign.
Verified
20 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem shows that for two complete bipartite cross-shore pairs (Q₁, W₁) and (Q₂, W₂) in a simple graph H, the intersection W₁ ∩ W₂ is disjoint from Q₁ ∪ Q₂, and symmetrically Q₁ ∩ Q₂ is disjoint from W₁ ∪ W₂. Both claims are proved by contradiction: if a vertex belonged to both an intersection shore and a union shore, it would belong to both shores of one of the complete bipartite pairs. That would force an edge from the vertex to itself, contradicting the fact that simple graphs have no self-loops.

  1. It suffices to show that W₁ ∩ W₂ is disjoint from Q₁ ∪ Q₂, and that Q₁ ∩ Q₂ is disjoint from W₁ ∪ W₂.

    The theorem asserts a conjunction of two disjointness statements, so we split it into two separate goals to prove independently.

    line 8

      constructor
  2. W₁ ∩ W₂ is disjoint from Q₁ ∪ Q₂.

    To establish disjointness, suppose for contradiction that there is a vertex w belonging to both W₁ ∩ W₂ and Q₁ ∪ Q₂. Then w belongs to both W₁ and W₂, and w belongs to at least one of Q₁ or Q₂. In the case w ∈ Q₁, the hypothesis that every vertex of Q₁ is adjacent to every vertex of W₁ (hcross₁) forces an edge from w to itself, contradicting the irreflexivity of simple graphs (H.irrefl). In the case w ∈ Q₂, the corresponding cross-adjacency hypothesis for the second pair (hcross₂) likewise forces an edge from w to itself, which is also impossible. Hence no such vertex w can exist.

    lines 9–14

    uses Finset.disjoint_left.mpr, Finset.mem_inter.mp, Finset.mem_union.mp, H.irrefl

      · apply Finset.disjoint_left.mpr
        intro w hw hq
        obtain ⟨hw₁, hw₂⟩ := Finset.mem_inter.mp hw
        rcases Finset.mem_union.mp hq with hq₁ | hq₂
        · exact H.irrefl (hcross₁ w hq₁ w hw₁)
        · exact H.irrefl (hcross₂ w hq₂ w hw₂)
  3. Q₁ ∩ Q₂ is disjoint from W₁ ∪ W₂.

    By symmetric reasoning, suppose there is a vertex q belonging to both Q₁ ∩ Q₂ and W₁ ∪ W₂. Then q belongs to both Q₁ and Q₂, and to at least one of W₁ or W₂. If q ∈ W₁, the cross-adjacency hypothesis hcross₁ gives a self-loop on q, contradicting H.irrefl. If q ∈ W₂, the hypothesis hcross₂ gives a self-loop on q, again contradicting H.irrefl. Therefore, no such vertex q exists.

    lines 15–20

    uses Finset.disjoint_left.mpr, Finset.mem_inter.mp, Finset.mem_union.mp, H.irrefl

      · apply Finset.disjoint_left.mpr
        intro q hq hw
        obtain ⟨hq₁, hq₂⟩ := Finset.mem_inter.mp hq
        rcases Finset.mem_union.mp hw with hw₁ | hw₂
        · exact H.irrefl (hcross₁ q hq₁ q hw₁)
        · exact H.irrefl (hcross₂ q hq₂ q hw₂)
Finset.disjoint_left.mpr
Two finite sets are disjoint if no element of the first belongs to the second.
Finset.mem_inter.mp
An element in the intersection of two finite sets belongs to both sets.
Finset.mem_union.mp
An element in the union of two finite sets belongs to at least one of the sets.
H.irrefl
In a simple graph, no vertex is adjacent to itself (no self-loops).

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

theorem cross_complete_shore_intersections_disjoint    {V : Type*} [DecidableEq V] (H : SimpleGraph V)    (W₁ W₂ Q₁ Q₂ : Finset V)    (hcross₁ : ∀ q ∈ Q₁, ∀ w ∈ W₁, H.Adj q w)    (hcross₂ : ∀ q ∈ Q₂, ∀ w ∈ W₂, H.Adj q w) :    Disjoint (W₁ ∩ W₂) (Q₁ ∪ Q₂) ∧      Disjoint (Q₁ ∩ Q₂) (W₁ ∪ W₂) := by  constructor  · apply Finset.disjoint_left.mpr    intro w hw hq    obtain ⟨hw₁, hw₂⟩ := Finset.mem_inter.mp hw    rcases Finset.mem_union.mp hq with hq₁ | hq₂    · exact H.irrefl (hcross₁ w hq₁ w hw₁)    · exact H.irrefl (hcross₂ w hq₂ w hw₂)  · apply Finset.disjoint_left.mpr    intro q hq hw    obtain ⟨hq₁, hq₂⟩ := Finset.mem_inter.mp hq    rcases Finset.mem_union.mp hw with hw₁ | hw₂    · exact H.irrefl (hcross₁ q hq₁ q hw₁)    · exact H.irrefl (hcross₂ q hq₂ q hw₂)
See it in the graphDiscuss this resultChallenge it