AFTD Auto-Formalizing Theoretical Domains

four_cycle_opposite_pairs_interface_contradiction

theoremverified

The opposite-pair and exposed-port conditions on a four-cycle are inconsistent.

Statement

theorem four_cycle_opposite_pairs_interface_contradiction
    {Ω : Type*} (p q r s d u v : Ω)
    (hu : u = p ∨ u = s) (hup : u ≠ p) (huq : u ≠ q)
    (hv : v = q ∨ v = r) (hvp : v ≠ p) (hvq : v ≠ q)
    (hd1 : d = p ∨ d = q) (hd2 : d = r ∨ d = s) : False
Source
Palette obstruction reduction for the OP-874 campaign.
Verified
19 Nov 2026
Axioms
none — Lean reports it depends on no axioms

The proof, explained

The proof derives a contradiction by first determining the exact identities of $u$ and $v$ and then exhausting all four possible values for $d$. Since $u \in \{p, s\}$ with $u \ne p$, we have $u = s$, and since $v \in \{q, r\}$ with $v \ne q$, we have $v = r$. Finally, because $d \in \{p, q\}$ and $d \in \{r, s\}$, equating $d$ to each of the four pairs chains $u$ or $v$ to a forbidden vertex, contradicting one of the distinctness hypotheses in every case.

  1. $u = s$ and $v = r$

    From $hu : u = p \lor u = s$ and $hup : u \ne p$, disjunctive syllogism forces $u = s$. Similarly, from $hv : v = q \lor v = r$ and $hvq : v \ne q$, disjunctive syllogism forces $v = r$.

    lines 6–7

      have hus : u = s := hu.resolve_left hup
      have hvr : v = r := hv.resolve_left hvq
  2. Every combination of values for $d$ leads to a contradiction

    Case analysis on $hd1 : d = p \lor d = q$ and $hd2 : d = r \lor d = s$ produces four cases for $d$: 1. If $d = p$ and $d = r$, then $v = r = d = p$, contradicting $hvp : v \ne p$. 2. If $d = p$ and $d = s$, then $u = s = d = p$, contradicting $hup : u \ne p$. 3. If $d = q$ and $d = r$, then $v = r = d = q$, contradicting $hvq : v \ne q$. 4. If $d = q$ and $d = s$, then $u = s = d = q$, contradicting $huq : u \ne q$.

    lines 8–12

      rcases hd1 with hp | hq <;> rcases hd2 with hr | hs
      · exact hvp (hvr.trans (hr.symm.trans hp))
      · exact hup (hus.trans (hs.symm.trans hp))
      · exact hvq (hvr.trans (hr.symm.trans hq))
      · exact huq (hus.trans (hs.symm.trans hq))

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 four_cycle_opposite_pairs_interface_contradiction    {Ω : Type*} (p q r s d u v : Ω)    (hu : u = p ∨ u = s) (hup : u ≠ p) (huq : u ≠ q)    (hv : v = q ∨ v = r) (hvp : v ≠ p) (hvq : v ≠ q)    (hd1 : d = p ∨ d = q) (hd2 : d = r ∨ d = s) : False := by  have hus : u = s := hu.resolve_left hup  have hvr : v = r := hv.resolve_left hvq  rcases hd1 with hp | hq <;> rcases hd2 with hr | hs  · exact hvp (hvr.trans (hr.symm.trans hp))  · exact hup (hus.trans (hs.symm.trans hp))  · exact hvq (hvr.trans (hr.symm.trans hq))  · exact huq (hus.trans (hs.symm.trans hq))
See it in the graphDiscuss this resultChallenge it