op309_girth5_portfree_six_clique
The six port-pair constraints and 23 listed inequalities force six distinct colors.
Statement
theorem op309_girth5_portfree_six_clique
(x1 x2 x3 x5 x7 x10 x11 x12 x15 x16 x19 x20 x23 x24 x26 x27 x28 : Fin 5)
(h0 : (x24 = x28) ∨ (x23 = x28))
(h1 : (x10 = x19 ∧ x11 = x28) ∨ (x10 = x28 ∧ x11 = x19))
(h2 : (x1 = x5 ∧ x2 = x7) ∨ (x1 = x7 ∧ x2 = x5))
(h3 : (x3 = x15 ∧ x5 = x16) ∨ (x3 = x16 ∧ x5 = x15))
(h4 : (x3 = x23 ∧ x12 = x26) ∨ (x3 = x26 ∧ x12 = x23))
(h5 : (x1 = x11 ∧ x20 = x27) ∨ (x1 = x27 ∧ x20 = x11))
(n1_2 : x1 ≠ x2)
(n1_19 : x1 ≠ x19)
(n1_20 : x1 ≠ x20)
(n1_24 : x1 ≠ x24)
(n2_19 : x2 ≠ x19)
(n2_26 : x2 ≠ x26)
(n3_5 : x3 ≠ x5)
(n3_10 : x3 ≠ x10)
(n3_12 : x3 ≠ x12)
(n3_16 : x3 ≠ x16)
(n5_10 : x5 ≠ x10)
(n7_23 : x7 ≠ x23)
(n7_24 : x7 ≠ x24)
(n7_28 : x7 ≠ x28)
(n10_11 : x10 ≠ x11)
(n10_12 : x10 ≠ x12)
(n10_15 : x10 ≠ x15)
(n11_12 : x11 ≠ x12)
(n11_24 : x11 ≠ x24)
(n12_16 : x12 ≠ x16)
(n12_28 : x12 ≠ x28)
(n15_20 : x15 ≠ x20)
(n26_27 : x26 ≠ x27)
: False- Source
- OP-309; girth-five port-free fixed-forest certificate, experiments 41785–41788 and 41796.
- Verified
- 27 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Used by 1
- op309_girth5_portfree_indexed_obstructionThe selected P3 edges in the indexed girth-five pattern cannot all be rich under the displayed local five-color conditions.
The proof, explained
The theorem is proved by contradiction via the pigeonhole principle. We show that the six variables x2, x19, x23, x26, x27, and x28 must be pairwise distinct by performing a case analysis on the disjunctive equality constraints, where every branch either violates the given inequality hypotheses or separates the six variables. Since all variables belong to Fin 5, which has cardinality 5, no list of six distinct elements can exist, yielding 6 ≤ 5 and thus False.
The six elements x2, x19, x23, x26, x27, x28 are pairwise distinct (the list [x2, x19, x23, x26, x27, x28] has no duplicates). automation
We perform a case split across the disjunctive equality constraints (h3, h0, h1, h5, h2, h4). In every branch, substituting the assumed equalities either directly contradicts one of the 23 given inequality hypotheses or forces the 15 pairwise inequalities between x2, x19, x23, x26, x27, and x28 to hold. Automated simplification (`simp_all`), augmented with the inductive characterisation of duplicate-free lists (`List.nodup_cons`), list membership (`List.mem_cons`), and the symmetry of inequality (`ne_comm`), closes every branch.
uses
List.nodup_cons,List.mem_cons,ne_commset_option maxHeartbeats 4000000 in have hn : ([x2,x19,x23,x26,x27,x28] : List (Fin 5)).Nodup := by rcases h3 with ⟨h3a,h3b⟩ | ⟨h3a,h3b⟩ · rcases h0 with h0a | h0a · rcases h1 with ⟨h1a,h1b⟩ | ⟨h1a,h1b⟩ · simp_all · rcases h5 with ⟨h5a,h5b⟩ | ⟨h5a,h5b⟩ · simp_all · rcases h2 with ⟨h2a,h2b⟩ | ⟨h2a,h2b⟩ · rcases h4 with ⟨h4a,h4b⟩ | ⟨h4a,h4b⟩ · simp_all [List.nodup_cons, List.mem_cons, ne_comm] · simp_all [List.nodup_cons, List.mem_cons, ne_comm] · rcases h4 with ⟨h4a,h4b⟩ | ⟨h4a,h4b⟩ · simp_all [List.nodup_cons, List.mem_cons, ne_comm] · simp_all [List.nodup_cons, List.mem_cons, ne_comm] · rcases h4 with ⟨h4a,h4b⟩ | ⟨h4a,h4b⟩ · rcases h1 with ⟨h1a,h1b⟩ | ⟨h1a,h1b⟩ · rcases h5 with ⟨h5a,h5b⟩ | ⟨h5a,h5b⟩ · rcases h2 with ⟨h2a,h2b⟩ | ⟨h2a,h2b⟩ · simp_all · simp_all · simp_all · simp_all · simp_all · simp_all
The hypotheses lead to a contradiction (False). automation
By the pigeonhole principle for lists, the length of any duplicate-free list of elements from a finite type cannot exceed the cardinality of that type. Here, the list of six distinct elements in Fin 5 gives 6 ≤ 5. Numerical evaluation (`norm_num`) evaluates this false inequality to derive a contradiction.
have hlen := hn.length_le_card norm_num at hlen
List.nodup_cons- A list `a :: l` has no duplicates if and only if `a` is not in `l` and `l` has no duplicates.
List.mem_cons- An element `a` belongs to `b :: l` if and only if `a = b` or `a` belongs to `l`.
ne_comm- Inequality is symmetric: `a ≠ b` is equivalent to `b ≠ a`.
- The proof of the pairwise distinctness of the six elements (lines 37–59) relies heavily on `simp_all` to automatically propagate equalities across the 23 inequality assumptions and detect contradictions across the case split tree.
- In line 61, `norm_num` closes the goal by evaluating the contradictory arithmetic statement `6 ≤ 5` in the hypothesis `hlen`.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option maxRecDepth 10000theorem op309_girth5_portfree_six_clique (x1 x2 x3 x5 x7 x10 x11 x12 x15 x16 x19 x20 x23 x24 x26 x27 x28 : Fin 5) (h0 : (x24 = x28) ∨ (x23 = x28)) (h1 : (x10 = x19 ∧ x11 = x28) ∨ (x10 = x28 ∧ x11 = x19)) (h2 : (x1 = x5 ∧ x2 = x7) ∨ (x1 = x7 ∧ x2 = x5)) (h3 : (x3 = x15 ∧ x5 = x16) ∨ (x3 = x16 ∧ x5 = x15)) (h4 : (x3 = x23 ∧ x12 = x26) ∨ (x3 = x26 ∧ x12 = x23)) (h5 : (x1 = x11 ∧ x20 = x27) ∨ (x1 = x27 ∧ x20 = x11)) (n1_2 : x1 ≠ x2) (n1_19 : x1 ≠ x19) (n1_20 : x1 ≠ x20) (n1_24 : x1 ≠ x24) (n2_19 : x2 ≠ x19) (n2_26 : x2 ≠ x26) (n3_5 : x3 ≠ x5) (n3_10 : x3 ≠ x10) (n3_12 : x3 ≠ x12) (n3_16 : x3 ≠ x16) (n5_10 : x5 ≠ x10) (n7_23 : x7 ≠ x23) (n7_24 : x7 ≠ x24) (n7_28 : x7 ≠ x28) (n10_11 : x10 ≠ x11) (n10_12 : x10 ≠ x12) (n10_15 : x10 ≠ x15) (n11_12 : x11 ≠ x12) (n11_24 : x11 ≠ x24) (n12_16 : x12 ≠ x16) (n12_28 : x12 ≠ x28) (n15_20 : x15 ≠ x20) (n26_27 : x26 ≠ x27) : False := by set_option maxHeartbeats 4000000 in have hn : ([x2,x19,x23,x26,x27,x28] : List (Fin 5)).Nodup := by rcases h3 with ⟨h3a,h3b⟩ | ⟨h3a,h3b⟩ · rcases h0 with h0a | h0a · rcases h1 with ⟨h1a,h1b⟩ | ⟨h1a,h1b⟩ · simp_all · rcases h5 with ⟨h5a,h5b⟩ | ⟨h5a,h5b⟩ · simp_all · rcases h2 with ⟨h2a,h2b⟩ | ⟨h2a,h2b⟩ · rcases h4 with ⟨h4a,h4b⟩ | ⟨h4a,h4b⟩ · simp_all [List.nodup_cons, List.mem_cons, ne_comm] · simp_all [List.nodup_cons, List.mem_cons, ne_comm] · rcases h4 with ⟨h4a,h4b⟩ | ⟨h4a,h4b⟩ · simp_all [List.nodup_cons, List.mem_cons, ne_comm] · simp_all [List.nodup_cons, List.mem_cons, ne_comm] · rcases h4 with ⟨h4a,h4b⟩ | ⟨h4a,h4b⟩ · rcases h1 with ⟨h1a,h1b⟩ | ⟨h1a,h1b⟩ · rcases h5 with ⟨h5a,h5b⟩ | ⟨h5a,h5b⟩ · rcases h2 with ⟨h2a,h2b⟩ | ⟨h2a,h2b⟩ · simp_all · simp_all · simp_all · simp_all · simp_all · simp_all have hlen := hn.length_le_card norm_num at hlen