AFTD Auto-Formalizing Theoretical Domains

op1957_four_shore_nonendpoint_anticomplete

theoremverified

Four shore nonendpoint anticomplete.

Statement

theorem op1957_four_shore_nonendpoint_anticomplete
    {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V)
    (F : Fin 4 → Finset V) (x y : V)
    (hcross : ∀ i l : Fin 4, i ≠ l → ∀ a ∈ F i, ∀ b ∈ F l, G.Adj a b →
      (i=0 ∧ l=1 ∧ a=x ∧ b=y) ∨ (i=1 ∧ l=0 ∧ a=y ∧ b=x))
    (j : Fin 4) (v : V) (hv : v ∈ F j)
    (hx : j=0 → v ≠ x) (hy : j=1 → v ≠ y) :
    ∀ i : Fin 4, i ≠ j → ∀ w ∈ F i, ¬ G.Adj v w
Source
OP-1957; positive-separator graph-to-count transfer.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1

The proof, explained

To show that a vertex v ∈ F j has no neighbors in any other shore F i (for i ≠ j), we assume for contradiction that v is adjacent to some w ∈ F i. By hypothesis, the only cross-edges between distinct shores connect x ∈ F 0 and y ∈ F 1. Since v is assumed not to be an endpoint of this edge (v ≠ x if j = 0, and v ≠ y if j = 1), both possible orientations of the cross-edge immediately yield a contradiction.

  1. It suffices to derive a contradiction assuming v is adjacent to some w ∈ F i with i ≠ j

    We introduce an arbitrary index i ≠ j, a vertex w ∈ F i, and the assumption that v and w are adjacent in G, reducing the goal to deriving False.

    line 11

      intro i hij w hw hadj
  2. Either (j = 0 ∧ i = 1 ∧ v = x ∧ w = y) or (j = 1 ∧ i = 0 ∧ v = y ∧ w = x)

    Since i ≠ j, we have j ≠ i by symmetry of inequality (Ne.symm). Applying the hypothesis hcross to the edge between v ∈ F j and w ∈ F i implies that this edge must connect x ∈ F 0 and y ∈ F 1, giving two symmetric cases for which vertex is which.

    line 12

    uses Ne.symm

      rcases hcross j i (Ne.symm hij) v hv w hw hadj with h | h
  3. The case j = 0, i = 1, v = x, w = y yields a contradiction

    In this branch, j = 0 and v = x. However, the hypothesis hx states that if j = 0, then v ≠ x, which directly contradicts v = x.

    line 13

      · exact (hx h.1) h.2.2.1
  4. The case j = 1, i = 0, v = y, w = x yields a contradiction

    Similarly, in this branch, j = 1 and v = y. However, the hypothesis hy states that if j = 1, then v ≠ y, which directly contradicts v = y.

    line 14

      · exact (hy h.1) h.2.2.1
Ne.symm
Symmetry of inequality: if a ≠ b, then b ≠ a

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

set_option maxHeartbeats 2000000theorem op1957_four_shore_nonendpoint_anticomplete    {V : Type*} [Fintype V] [DecidableEq V] (G : SimpleGraph V)    (F : Fin 4 → Finset V) (x y : V)    (hcross : ∀ i l : Fin 4, i ≠ l → ∀ a ∈ F i, ∀ b ∈ F l, G.Adj a b →      (i=0 ∧ l=1 ∧ a=x ∧ b=y) ∨ (i=1 ∧ l=0 ∧ a=y ∧ b=x))    (j : Fin 4) (v : V) (hv : v ∈ F j)    (hx : j=0 → v ≠ x) (hy : j=1 → v ≠ y) :    ∀ i : Fin 4, i ≠ j → ∀ w ∈ F i, ¬ G.Adj v w := by  intro i hij w hw hadj  rcases hcross j i (Ne.symm hij) v hv w hw hadj with h | h  · exact (hx h.1) h.2.2.1  · exact (hy h.1) h.2.2.1
See it in the graphDiscuss this resultChallenge it