AFTD Auto-Formalizing Theoretical Domains

op309_four_pair_conflict_kernel

theoremverified

Four port pair identifications conflict with the listed inequalities.

Statement

theorem op309_four_pair_conflict_kernel {α : Type*}
    (x0 x2 x3 x4 x10 x11 x14 x16 x17 x19 x20 : α)
    (h0 : (x0=x11 ∧ x3=x16) ∨ (x0=x16 ∧ x3=x11))
    (h1 : (x4=x14 ∧ x10=x17) ∨ (x4=x17 ∧ x10=x14))
    (h2 : (x0=x10 ∧ x2=x11) ∨ (x0=x11 ∧ x2=x10))
    (h3 : (x16=x19 ∧ x17=x20) ∨ (x16=x20 ∧ x17=x19))
    (n02 : x0≠x2) (n2_17 : x2≠x17) (n3_19 : x3≠x19)
    (n4_19 : x4≠x19) (n16_17 : x16≠x17) (n03 : x0≠x3)
    (n14_19 : x14≠x19) : False
Source
OP-309 local P3 port pairing obstruction; experiments 41711-41716.
Verified
27 Nov 2026
Axioms
propext
Used by 1
  • op309_girth6_indexed_bad_forestThe selected indexed edges in the girth-six base pattern cannot all be rich in a proper five-coloring, under the indicated local…

The proof, explained

The proof proceeds by contradiction through an exhaustive case analysis. Each of the four hypotheses $h_0, h_1, h_2, h_3$ specifies an identification between two pairs of elements with two possible orientations, yielding $2^4 = 16$ cases in total. In every case, chaining the equalities leads to an equality that directly contradicts at least one of the seven given distinctness hypotheses ($n_{02}, n_{2\_17}, n_{3\_19}, n_{4\_19}, n_{16\_17}, n_{03}$, or $n_{14\_19}$). Lean's automated simplifier tests all sixteen branches and confirms that each branch is contradictory.

  1. A contradiction is derived in all sixteen combinations of the four pairwise identification hypotheses. automation

    Each of the hypotheses $h_0, h_1, h_2$, and $h_3$ is a disjunction of two conjunctions, representing two possible orientations identifying two pairs of elements. Chaining `rcases` across all four hypotheses via the `<;>` combinator expands the proof into $2^4 = 16$ subgoals. In every branch, the accumulated equalities transitively equate two elements that are assumed distinct by one of the hypotheses $n_{02}, n_{2\_17}, n_{3\_19}, n_{4\_19}, n_{16\_17}, n_{03}$, or $n_{14\_19}$. The `simp_all` tactic substitutes the equalities, detects the contradiction with the corresponding inequality hypothesis, and closes all 16 goals.

    lines 10–14

      set_option maxHeartbeats 4000000 in
        rcases h0 with ⟨h01,h02⟩ | ⟨h01,h02⟩ <;>
        rcases h1 with ⟨h11,h12⟩ | ⟨h11,h12⟩ <;>
        rcases h2 with ⟨h21,h22⟩ | ⟨h21,h22⟩ <;>
        rcases h3 with ⟨h31,h32⟩ | ⟨h31,h32⟩ <;> simp_all

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 op309_four_pair_conflict_kernel {α : Type*}    (x0 x2 x3 x4 x10 x11 x14 x16 x17 x19 x20 : α)    (h0 : (x0=x11 ∧ x3=x16) ∨ (x0=x16 ∧ x3=x11))    (h1 : (x4=x14 ∧ x10=x17) ∨ (x4=x17 ∧ x10=x14))    (h2 : (x0=x10 ∧ x2=x11) ∨ (x0=x11 ∧ x2=x10))    (h3 : (x16=x19 ∧ x17=x20) ∨ (x16=x20 ∧ x17=x19))    (n02 : x0≠x2) (n2_17 : x2≠x17) (n3_19 : x3≠x19)    (n4_19 : x4≠x19) (n16_17 : x16≠x17) (n03 : x0≠x3)    (n14_19 : x14≠x19) : False := by  set_option maxHeartbeats 4000000 in    rcases h0 with ⟨h01,h02⟩ | ⟨h01,h02⟩ <;>    rcases h1 with ⟨h11,h12⟩ | ⟨h11,h12⟩ <;>    rcases h2 with ⟨h21,h22⟩ | ⟨h21,h22⟩ <;>    rcases h3 with ⟨h31,h32⟩ | ⟨h31,h32⟩ <;> simp_all
See it in the graphDiscuss this resultChallenge it