AFTD Auto-Formalizing Theoretical Domains

saturated_barrier_other_shores_subset_block_and_three_vertices

theoremverified

Under the displayed saturated four-block and forced-edge shore assumptions, the two shores opposite the distinguished vertex lie in B together with p, q and the opposite endpoint y.

Statement

theorem saturated_barrier_other_shores_subset_block_and_three_vertices
    {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V)
    (A B C D X Y U : Finset V) (x y p q : V)
    (hAC : Disjoint A C) (hCD : Disjoint C D)
    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)
    (hx : x ∈ X) (hy : y ∈ C)
    (hXY : Disjoint X Y) (hXU : Disjoint X U)
    (hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y)
    (hanti : ∀ a ∈ U, ¬ G.Adj x a)
    (hsatA : ∀ a ∈ A, a ≠ x → G.Adj x a)
    (hsatD : ∀ d ∈ D, G.Adj x d)
    (hfull : ∀ z ∈ C, z ≠ p → z ≠ q → G.Adj x z) :
    Y ∪ U ⊆ B ∪ {p,q,y}
Source
OP-1957; forced-edge saturated barrier reduction.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

To prove that Y ∪ U ⊆ B ∪ {p, q, y}, consider an arbitrary vertex z ∈ Y ∪ U. First, disjointness of X from Y and U shows that z ≠ x, while the crossing edge and anti-neighborhood assumptions imply that any neighbor of x in Y ∪ U must be y. Next, because the blocks A, B, C, D cover the entire vertex set, z must belong to one of them. Vertices in A (distinct from x) and D are adjacent to x and would thus have to equal y ∈ C, contradicting disjointness of A and D from C. Therefore z must lie in B or C, where in the latter case saturation off {p, q} forces z to be p, q, or y.

  1. Let z ∈ Y ∪ U be arbitrary; it suffices to show z ∈ B ∪ {p, q, y}.

    We enable classical logic and introduce an arbitrary vertex z ∈ Y ∪ U, reducing the set inclusion to establishing that z ∈ B ∪ {p, q, y}.

    lines 14–15

      classical
      intro z hz
  2. z ≠ x.

    Suppose for contradiction that z = x. Since z ∈ Y ∪ U, x must belong to either Y or U. But x ∈ X, and X is disjoint from both Y and U by hypotheses hXY and hXU, yielding a contradiction in either case.

    lines 16–21

    uses Finset.mem_union.mp, Finset.disjoint_left.mp

      have hzx : z ≠ x := by
        intro h
        subst z
        rcases Finset.mem_union.mp hz with hz | hz
        · exact Finset.disjoint_left.mp hXY hx hz
        · exact Finset.disjoint_left.mp hXU hx hz
  3. If x is adjacent to z, then z = y.

    Suppose x is adjacent to z. Since z ∈ Y ∪ U, either z ∈ Y or z ∈ U. If z ∈ Y, the edge connects x ∈ X and z ∈ Y, so by hypothesis hcross it must be the edge between x and y, which gives z = y. If z ∈ U, this directly contradicts hypothesis hanti, which asserts that x has no neighbors in U.

    lines 22–26

    uses Finset.mem_union.mp, False.elim

      have hxf : G.Adj x z → z = y := by
        intro h
        rcases Finset.mem_union.mp hz with hz | hz
        · exact (hcross x hx z hz h).2
        · exact False.elim (hanti z hz h)
  4. z belongs to at least one of the blocks A, B, C, or D.

    By hypothesis hcover, the union A ∪ B ∪ C ∪ D covers the entire vertex set univ. Hence z belongs to this union, and we branch on the four cases z ∈ A, z ∈ B, z ∈ C, and z ∈ D.

    lines 27–29

    uses Finset.mem_union

      have hzpart : z ∈ A ∪ B ∪ C ∪ D := by rw [hcover]; simp
      simp only [Finset.mem_union] at hzpart
      rcases hzpart with ((ha | hb) | hc) | hd
  5. The case z ∈ A is impossible.

    If z ∈ A, then since z ≠ x, hypothesis hsatA guarantees that x is adjacent to z. By our earlier deduction, this forces z = y. But y ∈ C by hy, so z ∈ A ∩ C, contradicting the disjointness of A and C (hAC).

    lines 30–31

    uses False.elim, Finset.disjoint_left.mp

      · have he := hxf (hsatA z ha hzx)
        exact False.elim (Finset.disjoint_left.mp hAC ha (he ▸ hy))
  6. If z ∈ B, then z ∈ B ∪ {p, q, y}.

    Because z ∈ B, it belongs directly to the left component of the union B ∪ {p, q, y}.

    line 32

    uses Finset.mem_union_left

      · exact Finset.mem_union_left _ hb
  7. If z ∈ C, then z ∈ B ∪ {p, q, y}.

    We perform case analysis on whether z = p or z = q. If either equality holds, z is in {p, q, y}. If neither holds, then z ∈ C \ {p, q}, so hypothesis hfull gives that x is adjacent to z, which forces z = y ∈ {p, q, y}. In all subcases, z ∈ B ∪ {p, q, y}.

    lines 33–38

      · by_cases hp : z=p
        · simp [hp]
        · by_cases hq : z=q
          · simp [hq]
          · have he := hxf (hfull z hc hp hq)
            simp [he]
  8. The case z ∈ D is impossible.

    If z ∈ D, hypothesis hsatD guarantees that x is adjacent to z, which forces z = y. Since y ∈ C, z would belong to C ∩ D, contradicting the disjointness of C and D (hCD).

    lines 39–40

    uses False.elim, Finset.disjoint_left.mp

      · have he := hxf (hsatD z hd)
        exact False.elim (Finset.disjoint_left.mp hCD (he ▸ hy) hd)
Finset.mem_union.mp
An element of the union of two finite sets belongs to either the first set or the second set.
Finset.disjoint_left.mp
If two finite sets are disjoint, an element of the first set cannot belong to the second set.
False.elim
From a contradiction (False), any statement follows (the principle of explosion).
Finset.mem_union
An element belongs to the union of two finite sets if and only if it belongs to the first or the second.
Finset.mem_union_left
An element belonging to a finite set belongs to the union of that set with any other finite set.

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 saturated_barrier_other_shores_subset_block_and_three_vertices    {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V)    (A B C D X Y U : Finset V) (x y p q : V)    (hAC : Disjoint A C) (hCD : Disjoint C D)    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)    (hx : x ∈ X) (hy : y ∈ C)    (hXY : Disjoint X Y) (hXU : Disjoint X U)    (hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y)    (hanti : ∀ a ∈ U, ¬ G.Adj x a)    (hsatA : ∀ a ∈ A, a ≠ x → G.Adj x a)    (hsatD : ∀ d ∈ D, G.Adj x d)    (hfull : ∀ z ∈ C, z ≠ p → z ≠ q → G.Adj x z) :    Y ∪ U ⊆ B ∪ {p,q,y} := by  classical  intro z hz  have hzx : z ≠ x := by    intro h    subst z    rcases Finset.mem_union.mp hz with hz | hz    · exact Finset.disjoint_left.mp hXY hx hz    · exact Finset.disjoint_left.mp hXU hx hz  have hxf : G.Adj x z → z = y := by    intro h    rcases Finset.mem_union.mp hz with hz | hz    · exact (hcross x hx z hz h).2    · exact False.elim (hanti z hz h)  have hzpart : z ∈ A ∪ B ∪ C ∪ D := by rw [hcover]; simp  simp only [Finset.mem_union] at hzpart  rcases hzpart with ((ha | hb) | hc) | hd  · have he := hxf (hsatA z ha hzx)    exact False.elim (Finset.disjoint_left.mp hAC ha (he ▸ hy))  · exact Finset.mem_union_left _ hb  · by_cases hp : z=p    · simp [hp]    · by_cases hq : z=q      · simp [hq]      · have he := hxf (hfull z hc hp hq)        simp [he]  · have he := hxf (hsatD z hd)    exact False.elim (Finset.disjoint_left.mp hCD (he ▸ hy) hd)
See it in the graphDiscuss this resultChallenge it