op874_fourteen_graph_all_matching_maxcuts_have_mono_run
theoremverified
For every perfect matching and every maximum cut constant on that matching in the displayed fourteen-vertex graph, the complementary factor contains a three-edge path whose four vertices have the same bit.
Statement
theorem op874_fourteen_graph_all_matching_maxcuts_have_mono_run : let G := op874_fourteen_run_graph letI : DecidableRel G.Adj := Classical.decRel _ ∀ (M : Finset (Sym2 (Fin 14))) (b : Fin 14 → Bool), M ⊆ G.edgeFinset → (∀ v, ∃! e : Sym2 (Fin 14), e ∈ M ∧ v ∈ e) → (∀ u v, G.Adj u v → s(u,v) ∈ M → b u = b v) → (∀ b' : Fin 14 → Bool, (∀ u v, G.Adj u v → s(u,v) ∈ M → b' u = b' v) → (Finset.univ : Finset (Fin 14)).sum (fun v => ((G.neighborFinset v).filter fun w => b' w ≠ b' v ∧ s(v,w) ∉ M).card) ≤ (Finset.univ : Finset (Fin 14)).sum (fun v => ((G.neighborFinset v).filter fun w => b w ≠ b v ∧ s(v,w) ∉ M).card)) → ∃ a c d e : Fin 14, a ≠ c ∧ a ≠ d ∧ a ≠ e ∧ c ≠ d ∧ c ≠ e ∧ d ≠ e ∧ G.Adj a c ∧ G.Adj c d ∧ G.Adj d e ∧ s(a,c) ∉ M ∧ s(c,d) ∉ M ∧ s(d,e) ∉ M ∧ b a = b c ∧ b c = b d ∧ b d = b e
- Source
- All-matching maximum-cut palette obstruction for OP-874, using the local criterion in https://arxiv.org/abs/2610.41950.
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- op874_fourteen_run_graphThe finite cubic graph used for the all-matching maximum-cut run obstruction.
- op874_all_maxcuts_hamiltonian_have_three_mono_edgesOn the fourteen-cycle with the displayed matching, the maximum matching-constant cut has value ten and every maximum cut contains a run of…
- op874_fourteen_run_edgesThe fourteen-cycle and seven specified chords of the finite all-matching run obstruction.
The proof, explained
The proof analyzes the 24 possible perfect matchings of the 14-vertex graph using a decision tree, and for each matching, verifies by exhaustive computation that any cut achieving the maximum cut score must contain a monochromatic 3-edge path in the complementary subgraph.
definitions and lemmas
definitions and helper lemmas
def in1282_P : Fin 24 → Fin 14 → Fin 14 := ![![1,0,3,2,5,4,7,6,9,8,11,10,13,12],![1,0,3,2,5,4,7,6,13,10,9,12,11,8],![1,0,3,2,5,4,11,8,7,10,9,6,13,12],![1,0,3,2,9,6,5,8,7,4,11,10,13,12],![1,0,7,4,3,6,5,2,9,8,11,10,13,12],![1,0,7,4,3,6,5,2,13,10,9,12,11,8],![1,0,7,12,5,4,11,2,13,10,9,6,3,8],![1,0,7,12,9,6,5,2,13,4,11,10,3,8],![5,2,1,4,3,0,7,6,9,8,11,10,13,12],![5,2,1,4,3,0,7,6,13,10,9,12,11,8],![5,2,1,4,3,0,11,8,7,10,9,6,13,12],![5,2,1,12,9,0,7,6,13,4,11,10,3,8],![5,10,3,2,9,0,7,6,13,4,1,12,11,8],![5,10,3,2,9,0,11,8,7,4,1,6,13,12],![5,10,7,4,3,0,11,2,9,8,1,6,13,12],![5,10,7,12,9,0,11,2,13,4,1,6,3,8],![13,2,1,4,3,6,5,8,7,10,9,12,11,0],![13,2,1,12,5,4,7,6,9,8,11,10,3,0],![13,2,1,12,5,4,11,8,7,10,9,6,3,0],![13,2,1,12,9,6,5,8,7,4,11,10,3,0],![13,10,3,2,5,4,7,6,9,8,1,12,11,0],![13,10,3,2,9,6,5,8,7,4,1,12,11,0],![13,10,7,4,3,6,5,2,9,8,1,12,11,0],![13,10,7,12,5,4,11,2,9,8,1,6,3,0]] def in1282_idx : Fin 24 → Fin 14 → Fin 7 := ![![0,0,1,1,2,2,3,3,4,4,5,5,6,6],![0,0,1,1,2,2,3,3,4,5,5,6,6,4],![0,0,1,1,2,2,3,4,4,5,5,3,6,6],![0,0,1,1,2,3,3,4,4,2,5,5,6,6],![0,0,1,2,2,3,3,1,4,4,5,5,6,6],![0,0,1,2,2,3,3,1,4,5,5,6,6,4],![0,0,1,2,3,3,4,1,5,6,6,4,2,5],![0,0,1,2,3,4,4,1,5,3,6,6,2,5],![0,1,1,2,2,0,3,3,4,4,5,5,6,6],![0,1,1,2,2,0,3,3,4,5,5,6,6,4],![0,1,1,2,2,0,3,4,4,5,5,3,6,6],![0,1,1,2,3,0,4,4,5,3,6,6,2,5],![0,1,2,2,3,0,4,4,5,3,1,6,6,5],![0,1,2,2,3,0,4,5,5,3,1,4,6,6],![0,1,2,3,3,0,4,2,5,5,1,4,6,6],![0,1,2,3,4,0,5,2,6,4,1,5,3,6],![0,1,1,2,2,3,3,4,4,5,5,6,6,0],![0,1,1,2,3,3,4,4,5,5,6,6,2,0],![0,1,1,2,3,3,4,5,5,6,6,4,2,0],![0,1,1,2,3,4,4,5,5,3,6,6,2,0],![0,1,2,2,3,3,4,4,5,5,1,6,6,0],![0,1,2,2,3,4,4,5,5,3,1,6,6,0],![0,1,2,3,3,4,4,2,5,5,1,6,6,0],![0,1,2,3,4,4,5,2,6,6,1,5,3,0]] def in1282_rep : Fin 24 → Fin 7 → Fin 14 := ![![0,2,4,6,8,10,12],![0,2,4,6,8,9,11],![0,2,4,6,7,9,12],![0,2,4,5,7,10,12],![0,2,3,5,8,10,12],![0,2,3,5,8,9,11],![0,2,3,4,6,8,9],![0,2,3,4,5,8,10],![0,1,3,6,8,10,12],![0,1,3,6,8,9,11],![0,1,3,6,7,9,12],![0,1,3,4,6,8,10],![0,1,2,4,6,8,11],![0,1,2,4,6,7,12],![0,1,2,3,6,8,12],![0,1,2,3,4,6,8],![0,1,3,5,7,9,11],![0,1,3,4,6,8,10],![0,1,3,4,6,7,9],![0,1,3,4,5,7,10],![0,1,2,4,6,8,11],![0,1,2,4,5,7,11],![0,1,2,3,5,8,11],![0,1,2,3,4,6,8]] def in1282_bst : Fin 24 → Fin 14 → Bool := ![![false,false,false,false,true,true,false,false,false,false,true,true,true,true],![false,false,false,false,true,true,false,false,true,false,false,true,true,true],![false,false,false,false,true,true,false,false,false,true,true,false,true,true],![false,false,false,false,true,true,true,false,false,true,false,false,true,true],![false,false,false,false,false,true,true,false,true,true,false,false,true,true],![false,false,false,false,false,true,true,false,true,true,true,false,false,true],![false,false,false,false,true,true,true,false,true,false,false,true,false,true],![false,false,false,false,false,true,true,false,true,false,true,true,false,true],![false,false,false,true,true,false,true,true,false,false,false,false,true,true],![false,false,false,true,true,false,true,true,false,true,true,false,false,false],![false,false,false,true,true,false,true,true,true,false,false,true,false,false],![false,false,false,true,true,false,true,true,false,true,false,false,true,false],![false,false,false,false,true,false,true,true,false,true,false,true,true,false],![false,false,false,false,true,false,true,false,false,true,false,true,true,true],![false,false,false,true,true,false,true,false,true,true,false,true,false,false],![false,false,false,false,true,false,true,false,true,true,false,true,false,true],![false,false,false,true,true,false,false,true,true,false,false,true,true,false],![false,false,false,true,false,false,true,true,true,true,false,false,true,false],![false,false,false,true,false,false,false,true,true,true,true,false,true,false],![false,false,false,true,false,false,false,true,true,false,true,true,true,false],![false,false,false,false,true,true,false,false,true,true,false,true,true,false],![false,false,false,false,true,false,false,true,true,true,false,true,true,false],![false,false,false,false,false,true,true,false,true,true,false,true,true,false],![false,false,false,true,false,false,true,false,true,true,false,true,true,false]] def in1282_paths : List (Fin 14 × Fin 14 × Fin 14 × Fin 14) := [(0,1,2,3),(0,1,2,7),(0,1,10,9),(0,1,10,11),(0,5,4,3),(0,5,4,9),(0,5,6,7),(0,5,6,11),(0,13,8,7),(0,13,8,9),(0,13,12,3),(0,13,12,11),(1,0,5,4),(1,0,5,6),(1,0,13,8),(1,0,13,12),(1,2,3,4),(1,2,3,12),(1,2,7,6),(1,2,7,8),(1,10,9,4),(1,10,9,8),(1,10,11,6),(1,10,11,12),(2,1,0,5),(2,1,0,13),(2,1,10,9),(2,1,10,11),(2,3,4,5),(2,3,4,9),(2,3,12,11),(2,3,12,13),(2,7,6,5),(2,7,6,11),(2,7,8,9),(2,7,8,13),(3,2,1,0),(3,2,1,10),(3,2,7,6),(3,2,7,8),(3,4,5,0),(3,4,5,6),(3,4,9,8),(3,4,9,10),(3,12,11,6),(3,12,11,10),(3,12,13,0),(3,12,13,8),(4,3,2,1),(4,3,2,7),(4,3,12,11),(4,3,12,13),(4,5,0,1),(4,5,0,13),(4,5,6,7),(4,5,6,11),(4,9,8,7),(4,9,8,13),(4,9,10,1),(4,9,10,11),(5,0,1,2),(5,0,1,10),(5,0,13,8),(5,0,13,12),(5,4,3,2),(5,4,3,12),(5,4,9,8),(5,4,9,10),(5,6,7,2),(5,6,7,8),(5,6,11,10),(5,6,11,12),(6,5,0,1),(6,5,0,13),(6,5,4,3),(6,5,4,9),(6,7,2,1),(6,7,2,3),(6,7,8,9),(6,7,8,13),(6,11,10,1),(6,11,10,9),(6,11,12,3),(6,11,12,13),(7,2,1,0),(7,2,1,10),(7,2,3,4),(7,2,3,12),(7,6,5,0),(7,6,5,4),(7,6,11,10),(7,6,11,12),(7,8,9,4),(7,8,9,10),(7,8,13,0),(7,8,13,12),(8,7,2,1),(8,7,2,3),(8,7,6,5),(8,7,6,11),(8,9,4,3),(8,9,4,5),(8,9,10,1),(8,9,10,11),(8,13,0,1),(8,13,0,5),(8,13,12,3),(8,13,12,11),(9,4,3,2),(9,4,3,12),(9,4,5,0),(9,4,5,6),(9,8,7,2),(9,8,7,6),(9,8,13,0),(9,8,13,12),(9,10,1,0),(9,10,1,2),(9,10,11,6),(9,10,11,12),(10,1,0,5),(10,1,0,13),(10,1,2,3),(10,1,2,7),(10,9,4,3),(10,9,4,5),(10,9,8,7),(10,9,8,13),(10,11,6,5),(10,11,6,7),(10,11,12,3),(10,11,12,13),(11,6,5,0),(11,6,5,4),(11,6,7,2),(11,6,7,8),(11,10,1,0),(11,10,1,2),(11,10,9,4),(11,10,9,8),(11,12,3,2),(11,12,3,4),(11,12,13,0),(11,12,13,8),(12,3,2,1),(12,3,2,7),(12,3,4,5),(12,3,4,9),(12,11,6,5),(12,11,6,7),(12,11,10,1),(12,11,10,9),(12,13,0,1),(12,13,0,5),(12,13,8,7),(12,13,8,9),(13,0,1,2),(13,0,1,10),(13,0,5,4),(13,0,5,6),(13,8,7,2),(13,8,7,6),(13,8,9,4),(13,8,9,10),(13,12,3,2),(13,12,3,4),(13,12,11,6),(13,12,11,10)] def in1282_n0 : Fin 14 → Fin 14 := ![1,0,1,2,3,0,5,2,7,4,1,6,3,0] def in1282_n1 : Fin 14 → Fin 14 := ![5,2,3,4,5,4,7,6,9,8,9,10,11,8] def in1282_n2 : Fin 14 → Fin 14 := ![13,10,7,12,9,6,11,8,13,10,11,12,13,12] def in1282_fp : Fin 24 → List (Fin 14 × Fin 14 × Fin 14 × Fin 14) := ![[(0,5,6,11),(0,13,8,7),(1,2,7,8),(1,10,9,4),(2,1,10,9),(2,7,8,13),(3,4,9,10),(3,12,11,6),(4,3,12,11),(5,0,13,8),(5,6,11,12),(6,5,0,13),(7,2,1,10),(9,4,3,12)],[(0,5,6,11),(0,13,12,3),(1,2,7,8),(1,10,11,6),(2,1,10,11),(2,7,8,9),(3,4,9,8),(4,3,12,13),(4,9,8,7),(5,0,13,12),(5,6,11,10),(6,5,0,13),(7,2,1,10),(9,4,3,12)],[(0,5,6,7),(0,13,8,9),(1,2,7,6),(1,10,11,12),(2,1,10,11),(2,7,6,5),(3,4,9,8),(3,12,11,10),(4,3,12,11),(4,9,8,13),(5,0,13,8),(6,5,0,13),(7,2,1,10),(9,4,3,12)],[(0,5,4,3),(0,13,8,9),(1,2,7,6),(1,10,9,8),(2,1,10,9),(2,7,6,11),(3,12,11,6),(4,3,12,11),(4,5,0,13),(5,0,13,8),(5,4,3,12),(7,2,1,10),(7,6,11,12),(10,9,8,13)],[(0,5,4,9),(0,13,8,7),(1,2,3,12),(1,10,9,4),(2,1,10,9),(2,3,12,11),(3,2,1,10),(3,12,11,6),(4,5,0,13),(5,0,13,8),(5,4,9,10),(6,7,8,13),(7,6,11,12),(8,7,6,11)],[(0,5,4,9),(0,13,12,3),(1,2,3,12),(1,10,11,6),(2,1,10,11),(2,3,12,13),(3,2,1,10),(4,5,0,13),(4,9,8,7),(5,0,13,12),(5,4,9,8),(6,7,8,9),(7,6,11,10),(8,7,6,11)],[(0,5,6,7),(0,13,12,11),(1,2,3,4),(1,10,11,12),(2,1,10,11),(2,3,4,9),(3,2,1,10),(3,4,9,8),(4,9,8,7),(5,0,13,12),(5,6,7,8),(6,5,0,13),(6,7,8,9),(10,11,12,13)],[(0,5,4,3),(0,13,12,11),(1,2,3,4),(1,10,9,8),(2,1,10,9),(2,3,4,5),(3,2,1,10),(4,5,0,13),(5,0,13,12),(6,7,8,9),(6,11,12,13),(7,6,11,12),(7,8,9,10),(8,7,6,11)],[(0,1,10,9),(0,13,8,7),(1,0,13,8),(1,10,9,4),(2,3,12,11),(2,7,8,13),(3,2,7,8),(3,12,11,6),(4,5,6,11),(5,4,9,10),(5,6,11,12),(6,5,4,9),(7,2,3,12),(10,1,0,13)],[(0,1,10,11),(0,13,12,3),(1,0,13,12),(1,10,11,6),(2,3,12,13),(2,7,8,9),(3,2,7,8),(4,5,6,11),(4,9,8,7),(5,4,9,8),(5,6,11,10),(6,5,4,9),(7,2,3,12),(10,1,0,13)],[(0,1,10,11),(0,13,8,9),(1,0,13,8),(1,10,11,12),(2,3,12,11),(2,7,6,5),(3,2,7,6),(3,12,11,10),(4,5,6,7),(4,9,8,13),(5,4,9,8),(6,5,4,9),(7,2,3,12),(10,1,0,13)],[(0,1,10,9),(0,13,12,11),(1,0,13,12),(1,10,9,8),(2,3,4,5),(2,7,8,9),(3,2,7,8),(3,4,5,6),(4,3,2,7),(4,5,6,11),(5,6,11,12),(6,11,12,13),(7,8,9,10),(10,1,0,13)],[(0,1,2,7),(0,13,12,3),(1,0,13,12),(1,2,7,8),(2,1,0,13),(2,7,8,9),(3,4,5,6),(4,3,12,13),(4,5,6,11),(5,4,3,12),(5,6,11,10),(6,11,10,9),(7,8,9,10),(8,9,10,11)],[(0,1,2,7),(0,13,8,9),(1,0,13,8),(1,2,7,6),(2,1,0,13),(2,7,6,5),(3,4,5,6),(3,12,11,10),(4,3,12,11),(4,5,6,7),(5,4,3,12),(8,9,10,11),(9,10,11,12),(10,9,8,13)],[(0,1,2,3),(0,13,8,7),(1,0,13,8),(1,2,3,12),(2,1,0,13),(2,3,12,11),(3,12,11,10),(4,5,6,7),(4,9,10,11),(5,4,9,10),(5,6,7,8),(6,5,4,9),(6,7,8,13),(9,10,11,12)],[(0,1,2,3),(0,13,12,11),(1,0,13,12),(1,2,3,4),(2,1,0,13),(2,3,4,5),(3,4,5,6),(4,5,6,7),(5,6,7,8),(6,7,8,9),(7,8,9,10),(8,9,10,11),(9,10,11,12),(10,11,12,13)],[(0,1,10,11),(0,5,4,9),(1,0,5,4),(1,10,11,6),(2,3,12,13),(2,7,6,11),(3,2,7,6),(3,12,13,8),(4,9,8,13),(5,0,1,10),(5,4,9,8),(7,2,3,12),(7,6,11,10),(9,8,13,12)],[(0,1,10,9),(0,5,6,11),(1,0,5,6),(1,10,9,4),(2,3,4,9),(2,7,8,13),(3,2,7,8),(3,4,9,10),(4,3,2,7),(5,0,1,10),(5,6,11,12),(6,11,12,13),(7,8,13,12),(8,13,12,11)],[(0,1,10,11),(0,5,6,7),(1,0,5,6),(1,10,11,12),(2,3,4,9),(2,7,6,5),(3,2,7,6),(3,4,9,8),(4,3,2,7),(4,9,8,13),(5,0,1,10),(8,13,12,11),(9,8,13,12),(10,11,12,13)],[(0,1,10,9),(0,5,4,3),(1,0,5,4),(1,10,9,8),(2,3,4,5),(2,7,6,11),(3,2,7,6),(4,3,2,7),(5,0,1,10),(6,11,12,13),(7,6,11,12),(8,13,12,11),(9,8,13,12),(10,9,8,13)],[(0,1,2,7),(0,5,6,11),(1,0,5,6),(1,2,7,8),(2,1,0,5),(2,7,8,13),(3,4,9,10),(3,12,13,8),(4,3,12,13),(4,9,10,11),(5,6,11,10),(6,11,10,9),(7,8,13,12),(9,4,3,12)],[(0,1,2,7),(0,5,4,3),(1,0,5,4),(1,2,7,6),(2,1,0,5),(2,7,6,11),(3,12,13,8),(4,3,12,13),(5,4,3,12),(6,11,10,9),(7,6,11,10),(8,9,10,11),(9,8,13,12),(10,9,8,13)],[(0,1,2,3),(0,5,4,9),(1,0,5,4),(1,2,3,12),(2,1,0,5),(2,3,12,13),(3,12,13,8),(4,9,10,11),(5,4,9,10),(6,7,8,13),(6,11,10,9),(7,6,11,10),(7,8,13,12),(8,7,6,11)],[(0,1,2,3),(0,5,6,7),(1,0,5,6),(1,2,3,4),(2,1,0,5),(2,3,4,9),(3,4,9,10),(4,9,10,11),(5,6,7,8),(6,7,8,13),(7,8,13,12),(8,13,12,11),(9,10,11,12),(10,11,12,13)]] theorem in1282_hadj : ∀ a b : Fin 14, op874_fourteen_run_graph.Adj a b ↔ (b = in1282_n0 a ∨ b = in1282_n1 a ∨ b = in1282_n2 a) := by simp only [op874_fourteen_run_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe, op874_fourteen_run_edges] decide def in1282_adjB (a b : Fin 14) : Bool := decide (b = in1282_n0 a ∨ b = in1282_n1 a ∨ b = in1282_n2 a) theorem in1282_branch (M : Finset (Sym2 (Fin 14))) (hsub : ∀ e ∈ M, e ∈ op874_fourteen_run_graph.edgeSet) (hpm : ∀ v, ∃! e : Sym2 (Fin 14), e ∈ M ∧ v ∈ e) (v a c d : Fin 14) (ha : a = in1282_n0 v) (hc : c = in1282_n1 v) (hd : d = in1282_n2 v) : s(v, a) ∈ M ∨ s(v, c) ∈ M ∨ s(v, d) ∈ M := by obtain ⟨e, ⟨he, hv⟩, -⟩ := hpm v obtain ⟨w, rfl⟩ := Sym2.mem_iff_exists.mp hv have hadj : op874_fourteen_run_graph.Adj v w := hsub _ he rcases (in1282_hadj v w).1 hadj with h | h | h · left; rw [ha, ← h]; exact he · right; left; rw [hc, ← h]; exact he · right; right; rw [hd, ← h]; exact he theorem in1282_conflict (M : Finset (Sym2 (Fin 14))) (hpm : ∀ v, ∃! e : Sym2 (Fin 14), e ∈ M ∧ v ∈ e) {e1 e2 : Sym2 (Fin 14)} (h1 : e1 ∈ M) (h2 : e2 ∈ M) (w : Fin 14) (hw1 : w ∈ e1) (hw2 : w ∈ e2) : e1 = e2 := (hpm w).unique ⟨h1, hw1⟩ ⟨h2, hw2⟩ def in1282_Mj (j : Fin 24) : Finset (Sym2 (Fin 14)) := Finset.univ.image (fun v => s(v, in1282_P j v)) theorem in1282_P_facts : ∀ j : Fin 24, ∀ v : Fin 14, in1282_P j (in1282_P j v) = v ∧ in1282_P j v ≠ v ∧ in1282_adjB v (in1282_P j v) = true ∧ in1282_bst j (in1282_P j v) = in1282_bst j v ∧ (in1282_rep j (in1282_idx j v) = v ∨ in1282_rep j (in1282_idx j v) = in1282_P j v) := by decide theorem in1282_mem_Mj (j : Fin 24) (x y : Fin 14) : s(x, y) ∈ in1282_Mj j ↔ in1282_P j x = y := by simp only [in1282_Mj, Finset.mem_image, Finset.mem_univ, true_and] constructor · rintro ⟨u, hu⟩ rcases Sym2.eq_iff.mp hu with ⟨rfl, rfl⟩ | ⟨rfl, rfl⟩ · rfl · exact (in1282_P_facts j u).1 · intro h; exact ⟨x, by rw [h]⟩ theorem in1282_leaf (M : Finset (Sym2 (Fin 14))) (hpm : ∀ v, ∃! e : Sym2 (Fin 14), e ∈ M ∧ v ∈ e) (j : Fin 24) (hS : ∀ v, v < in1282_P j v → s(v, in1282_P j v) ∈ M) : M = in1282_Mj j := by have hall : ∀ v, s(v, in1282_P j v) ∈ M := by intro v rcases lt_or_gt_of_ne (in1282_P_facts j v).2.1 with h | h · have := hS (in1282_P j v) (by rwa [(in1282_P_facts j v).1]) rw [(in1282_P_facts j v).1, Sym2.eq_swap] at this exact this · exact hS v h ext z induction z using Sym2.ind with | _ a c => rw [in1282_mem_Mj] constructor · intro hz have := in1282_conflict M hpm hz (hall a) a (Sym2.mem_mk_left _ _) (Sym2.mem_mk_left _ _) rcases Sym2.eq_iff.mp this with ⟨-, h⟩ | ⟨h1, h2⟩ · exact h.symm · exact absurd h1.symm (in1282_P_facts j a).2.1 · intro h; rw [← h]; exact hall a def in1282_q (j : Fin 24) (b : Fin 14 → Bool) (v w : Fin 14) : ℕ := if b w ≠ b v ∧ in1282_P j v ≠ w then 1 else 0 def in1282_scN (j : Fin 24) (b : Fin 14 → Bool) : ℕ := Finset.univ.sum fun v : Fin 14 => in1282_q j b v (in1282_n0 v) + in1282_q j b v (in1282_n1 v) + in1282_q j b v (in1282_n2 v) def in1282_runF (j : Fin 24) (b : Fin 14 → Bool) : Bool := (in1282_fp j).any fun p => b p.1 == b p.2.1 && b p.2.1 == b p.2.2.1 && b p.2.2.1 == b p.2.2.2 theorem in1282_fp_ok : ∀ j : Fin 24, (in1282_fp j).all (fun p => decide (p.1 ≠ p.2.1 ∧ p.1 ≠ p.2.2.1 ∧ p.1 ≠ p.2.2.2 ∧ p.2.1 ≠ p.2.2.1 ∧ p.2.1 ≠ p.2.2.2 ∧ p.2.2.1 ≠ p.2.2.2 ∧ in1282_adjB p.1 p.2.1 = true ∧ in1282_adjB p.2.1 p.2.2.1 = true ∧ in1282_adjB p.2.2.1 p.2.2.2 = true ∧ in1282_P j p.1 ≠ p.2.1 ∧ in1282_P j p.2.1 ≠ p.2.2.1 ∧ in1282_P j p.2.2.1 ≠ p.2.2.2)) = true := by decide theorem in1282_bst_score : ∀ j : Fin 24, in1282_scN j (in1282_bst j) = 20 := by decide theorem in1282_nbr_distinct : ∀ v : Fin 14, in1282_n0 v ≠ in1282_n1 v ∧ in1282_n0 v ≠ in1282_n2 v ∧ in1282_n1 v ≠ in1282_n2 v := by decide set_option maxRecDepth 100000 in set_option maxHeartbeats 0 in theorem in1282_main_check : ∀ j : Fin 24, ∀ t0 t1 t2 t3 t4 t5 t6 : Bool, 20 ≤ in1282_scN j (fun v => ![t0,t1,t2,t3,t4,t5,t6] (in1282_idx j v)) → in1282_runF j (fun v => ![t0,t1,t2,t3,t4,t5,t6] (in1282_idx j v)) = true := by decide +kernel theorem in1282_scEq [DecidableRel op874_fourteen_run_graph.Adj] (j : Fin 24) (b : Fin 14 → Bool) : (Finset.univ : Finset (Fin 14)).sum (fun v => ((op874_fourteen_run_graph.neighborFinset v).filter fun w => b w ≠ b v ∧ s(v,w) ∉ in1282_Mj j).card) = in1282_scN j b := by apply Finset.sum_congr rfl intro v _ have hN : op874_fourteen_run_graph.neighborFinset v = {in1282_n0 v, in1282_n1 v, in1282_n2 v} := by ext w simp only [SimpleGraph.mem_neighborFinset, in1282_hadj, Finset.mem_insert, Finset.mem_singleton] obtain ⟨d1, d2, d3⟩ := in1282_nbr_distinct v rw [hN, Finset.card_filter, Finset.sum_insert (by simp [d1, d2]), Finset.sum_insert (by simp [d3]), Finset.sum_singleton] simp only [in1282_q, in1282_mem_Mj, add_assoc] theorem in1282_finish (inst : DecidableRel op874_fourteen_run_graph.Adj) (M : Finset (Sym2 (Fin 14))) (b : Fin 14 → Bool) (hsub : M ⊆ op874_fourteen_run_graph.edgeFinset) (hpm : ∀ v, ∃! e : Sym2 (Fin 14), e ∈ M ∧ v ∈ e) (hconst : ∀ u v, op874_fourteen_run_graph.Adj u v → s(u,v) ∈ M → b u = b v) (hmax : ∀ b' : Fin 14 → Bool, (∀ u v, op874_fourteen_run_graph.Adj u v → s(u,v) ∈ M → b' u = b' v) → (Finset.univ : Finset (Fin 14)).sum (fun v => ((op874_fourteen_run_graph.neighborFinset v).filter fun w => b' w ≠ b' v ∧ s(v,w) ∉ M).card) ≤ (Finset.univ : Finset (Fin 14)).sum (fun v => ((op874_fourteen_run_graph.neighborFinset v).filter fun w => b w ≠ b v ∧ s(v,w) ∉ M).card)) (j : Fin 24) (hMj : M = in1282_Mj j) : ∃ a c d e : Fin 14, a ≠ c ∧ a ≠ d ∧ a ≠ e ∧ c ≠ d ∧ c ≠ e ∧ d ≠ e ∧ op874_fourteen_run_graph.Adj a c ∧ op874_fourteen_run_graph.Adj c d ∧ op874_fourteen_run_graph.Adj d e ∧ s(a,c) ∉ M ∧ s(c,d) ∉ M ∧ s(d,e) ∉ M ∧ b a = b c ∧ b c = b d ∧ b d = b e := by subst hMj have hc' : ∀ v, b (in1282_P j v) = b v := fun v => (hconst v _ ((in1282_hadj _ _).2 (by simpa [in1282_adjB] using (in1282_P_facts j v).2.2.1)) ((in1282_mem_Mj j _ _).2 rfl)).symm have key := hmax (in1282_bst j) (by intro u v _ h rw [in1282_mem_Mj] at h rw [← h]; exact ((in1282_P_facts j u).2.2.2.1).symm) rw [in1282_scEq, in1282_scEq] at key let t : Fin 7 → Bool := fun k => b (in1282_rep j k) have hb : b = fun v => ![t 0, t 1, t 2, t 3, t 4, t 5, t 6] (in1282_idx j v) := by funext v have ht : ![t 0, t 1, t 2, t 3, t 4, t 5, t 6] = t := by funext k; fin_cases k <;> rfl rw [ht] show b v = b (in1282_rep j (in1282_idx j v)) rcases (in1282_P_facts j v).2.2.2.2 with h | h · rw [h] · rw [h, hc'] rw [hb, in1282_bst_score] at key have hrun := in1282_main_check j _ _ _ _ _ _ _ key rw [← hb] at hrun obtain ⟨p, hp, hq⟩ := List.any_eq_true.mp hrun have hok := List.all_eq_true.mp (in1282_fp_ok j) p hp simp only [decide_eq_true_eq, in1282_adjB, Bool.and_eq_true, beq_iff_eq] at hq hok obtain ⟨n1, n2, n3, n4, n5, n6, a1, a2, a3, m1, m2, m3⟩ := hok obtain ⟨⟨q1, q2⟩, q3⟩ := hq refine ⟨p.1, p.2.1, p.2.2.1, p.2.2.2, n1, n2, n3, n4, n5, n6, (in1282_hadj _ _).2 a1, (in1282_hadj _ _).2 a2, (in1282_hadj _ _).2 a3, ?_, ?_, ?_, q1, q2, q3⟩ · rw [in1282_mem_Mj]; exact m1 · rw [in1282_mem_Mj]; exact m2 · rw [in1282_mem_Mj]; exact m3 theorem op874_fourteen_graph_all_matching_maxcuts_have_mono_run : let G := op874_fourteen_run_graph letI : DecidableRel G.Adj := Classical.decRel _ ∀ (M : Finset (Sym2 (Fin 14))) (b : Fin 14 → Bool), M ⊆ G.edgeFinset → (∀ v, ∃! e : Sym2 (Fin 14), e ∈ M ∧ v ∈ e) → (∀ u v, G.Adj u v → s(u,v) ∈ M → b u = b v) → (∀ b' : Fin 14 → Bool, (∀ u v, G.Adj u v → s(u,v) ∈ M → b' u = b' v) → (Finset.univ : Finset (Fin 14)).sum (fun v => ((G.neighborFinset v).filter fun w => b' w ≠ b' v ∧ s(v,w) ∉ M).card) ≤ (Finset.univ : Finset (Fin 14)).sum (fun v => ((G.neighborFinset v).filter fun w => b w ≠ b v ∧ s(v,w) ∉ M).card)) → ∃ a c d e : Fin 14, a ≠ c ∧ a ≠ d ∧ a ≠ e ∧ c ≠ d ∧ c ≠ e ∧ d ≠ e ∧ G.Adj a c ∧ G.Adj c d ∧ G.Adj d e ∧ s(a,c) ∉ M ∧ s(c,d) ∉ M ∧ s(d,e) ∉ M ∧ b a = b c ∧ b c = b d ∧ b d = b e := by
main theorem
main theorem
intro G M b hsub hpm hconst hmax letI : DecidableRel G.Adj := Classical.decRel _ have hsub' : ∀ e ∈ M, e ∈ op874_fourteen_run_graph.edgeSet := by intro e he have := hsub he rwa [SimpleGraph.mem_edgeFinset] at this rcases in1282_branch M hsub' hpm 0 1 5 13 rfl rfl rfl with h1 | h1 | h1 · -- 0-1 rcases in1282_branch M hsub' hpm 2 1 3 7 rfl rfl rfl with h2 | h2 | h2 · exact absurd (in1282_conflict M hpm h2 h1 1 (by decide) (by decide)) (by decide) · -- 2-3 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h3 | h3 | h3 · exact absurd (in1282_conflict M hpm h3 h2 3 (by decide) (by decide)) (by decide) · -- 4-5 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h4 | h4 | h4 · exact absurd (in1282_conflict M hpm h4 h3 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h5 | h5 | h5 · exact absurd (in1282_conflict M hpm h5 h4 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h6 | h6 | h6 · exact absurd (in1282_conflict M hpm h6 h1 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h6 h5 9 (by decide) (by decide)) (by decide) · -- 10-11 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h7 | h7 | h7 · exact absurd (in1282_conflict M hpm h7 h2 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h7 h6 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 0 (in1282_leaf M hpm 0 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h3 | exact h4 | exact h5 | exact h6 | exact h7)) · -- 8-13 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h8 | h8 | h8 · exact absurd (in1282_conflict M hpm h8 h3 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h8 h5 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h9 | h9 | h9 · exact absurd (in1282_conflict M hpm h9 h4 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h9 h8 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 1 (in1282_leaf M hpm 1 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h3 | exact h4 | exact h5 | exact h8 | exact h9)) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h10 | h10 | h10 · exact absurd (in1282_conflict M hpm h10 h2 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h10 h4 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h11 | h11 | h11 · exact absurd (in1282_conflict M hpm h11 h3 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h11 h10 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h12 | h12 | h12 · exact absurd (in1282_conflict M hpm h12 h2 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h12 h4 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 2 (in1282_leaf M hpm 2 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h3 | exact h4 | exact h10 | exact h11 | exact h12)) · -- 4-9 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h13 | h13 | h13 · exact absurd (in1282_conflict M hpm h13 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h13 h3 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h14 | h14 | h14 · exact absurd (in1282_conflict M hpm h14 h2 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h14 h13 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h15 | h15 | h15 · exact absurd (in1282_conflict M hpm h15 h1 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h15 h3 9 (by decide) (by decide)) (by decide) · -- 10-11 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h16 | h16 | h16 · exact absurd (in1282_conflict M hpm h16 h2 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h16 h15 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 3 (in1282_leaf M hpm 3 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h3 | exact h13 | exact h14 | exact h15 | exact h16)) · -- 2-7 rcases in1282_branch M hsub' hpm 3 2 4 12 rfl rfl rfl with h17 | h17 | h17 · exact absurd (in1282_conflict M hpm h17 h2 2 (by decide) (by decide)) (by decide) · -- 3-4 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h18 | h18 | h18 · exact absurd (in1282_conflict M hpm h18 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h18 h17 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h19 | h19 | h19 · exact absurd (in1282_conflict M hpm h19 h2 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h20 | h20 | h20 · exact absurd (in1282_conflict M hpm h20 h1 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h20 h19 9 (by decide) (by decide)) (by decide) · -- 10-11 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h21 | h21 | h21 · exact absurd (in1282_conflict M hpm h21 h17 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h21 h20 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 4 (in1282_leaf M hpm 4 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h17 | exact h18 | exact h19 | exact h20 | exact h21)) · -- 8-13 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h22 | h22 | h22 · exact absurd (in1282_conflict M hpm h22 h17 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h22 h19 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h23 | h23 | h23 · exact absurd (in1282_conflict M hpm h23 h18 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h23 h22 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 5 (in1282_leaf M hpm 5 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h17 | exact h18 | exact h19 | exact h22 | exact h23)) · -- 3-12 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h24 | h24 | h24 · exact absurd (in1282_conflict M hpm h24 h17 3 (by decide) (by decide)) (by decide) · -- 4-5 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h25 | h25 | h25 · exact absurd (in1282_conflict M hpm h25 h24 5 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h25 h2 7 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h26 | h26 | h26 · exact absurd (in1282_conflict M hpm h26 h2 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h27 | h27 | h27 · exact absurd (in1282_conflict M hpm h27 h1 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h27 h26 9 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h27 h25 11 (by decide) (by decide)) (by decide) · -- 8-13 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h28 | h28 | h28 · exact absurd (in1282_conflict M hpm h28 h24 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h28 h26 8 (by decide) (by decide)) (by decide) · -- 9-10 exact in1282_finish _ M b hsub hpm hconst hmax 6 (in1282_leaf M hpm 6 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h17 | exact h24 | exact h25 | exact h26 | exact h28)) · -- 4-9 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h29 | h29 | h29 · exact absurd (in1282_conflict M hpm h29 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h29 h24 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h30 | h30 | h30 · exact absurd (in1282_conflict M hpm h30 h2 7 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h30 h24 9 (by decide) (by decide)) (by decide) · -- 8-13 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h31 | h31 | h31 · exact absurd (in1282_conflict M hpm h31 h1 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h31 h24 9 (by decide) (by decide)) (by decide) · -- 10-11 exact in1282_finish _ M b hsub hpm hconst hmax 7 (in1282_leaf M hpm 7 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h17 | exact h24 | exact h29 | exact h30 | exact h31)) · -- 0-5 rcases in1282_branch M hsub' hpm 1 0 2 10 rfl rfl rfl with h32 | h32 | h32 · exact absurd (in1282_conflict M hpm h32 h1 0 (by decide) (by decide)) (by decide) · -- 1-2 rcases in1282_branch M hsub' hpm 3 2 4 12 rfl rfl rfl with h33 | h33 | h33 · exact absurd (in1282_conflict M hpm h33 h32 2 (by decide) (by decide)) (by decide) · -- 3-4 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h34 | h34 | h34 · exact absurd (in1282_conflict M hpm h34 h1 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h35 | h35 | h35 · exact absurd (in1282_conflict M hpm h35 h34 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h36 | h36 | h36 · exact absurd (in1282_conflict M hpm h36 h32 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h36 h35 9 (by decide) (by decide)) (by decide) · -- 10-11 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h37 | h37 | h37 · exact absurd (in1282_conflict M hpm h37 h33 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h37 h36 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 8 (in1282_leaf M hpm 8 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h33 | exact h34 | exact h35 | exact h36 | exact h37)) · -- 8-13 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h38 | h38 | h38 · exact absurd (in1282_conflict M hpm h38 h33 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h38 h35 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h39 | h39 | h39 · exact absurd (in1282_conflict M hpm h39 h34 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h39 h38 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 9 (in1282_leaf M hpm 9 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h33 | exact h34 | exact h35 | exact h38 | exact h39)) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h40 | h40 | h40 · exact absurd (in1282_conflict M hpm h40 h32 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h40 h34 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h41 | h41 | h41 · exact absurd (in1282_conflict M hpm h41 h33 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h41 h40 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h42 | h42 | h42 · exact absurd (in1282_conflict M hpm h42 h33 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h42 h34 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 10 (in1282_leaf M hpm 10 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h33 | exact h34 | exact h40 | exact h41 | exact h42)) · -- 3-12 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h43 | h43 | h43 · exact absurd (in1282_conflict M hpm h43 h33 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h43 h1 5 (by decide) (by decide)) (by decide) · -- 4-9 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h44 | h44 | h44 · exact absurd (in1282_conflict M hpm h44 h1 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h45 | h45 | h45 · exact absurd (in1282_conflict M hpm h45 h44 7 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h45 h43 9 (by decide) (by decide)) (by decide) · -- 8-13 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h46 | h46 | h46 · exact absurd (in1282_conflict M hpm h46 h32 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h46 h43 9 (by decide) (by decide)) (by decide) · -- 10-11 exact in1282_finish _ M b hsub hpm hconst hmax 11 (in1282_leaf M hpm 11 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h33 | exact h43 | exact h44 | exact h45 | exact h46)) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h47 | h47 | h47 · exact absurd (in1282_conflict M hpm h47 h32 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h47 h44 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h48 | h48 | h48 · exact absurd (in1282_conflict M hpm h48 h32 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h48 h43 9 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h48 h44 11 (by decide) (by decide)) (by decide) · -- 1-10 rcases in1282_branch M hsub' hpm 2 1 3 7 rfl rfl rfl with h49 | h49 | h49 · exact absurd (in1282_conflict M hpm h49 h32 1 (by decide) (by decide)) (by decide) · -- 2-3 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h50 | h50 | h50 · exact absurd (in1282_conflict M hpm h50 h49 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h50 h1 5 (by decide) (by decide)) (by decide) · -- 4-9 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h51 | h51 | h51 · exact absurd (in1282_conflict M hpm h51 h1 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h52 | h52 | h52 · exact absurd (in1282_conflict M hpm h52 h51 7 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h52 h50 9 (by decide) (by decide)) (by decide) · -- 8-13 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h53 | h53 | h53 · exact absurd (in1282_conflict M hpm h53 h51 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h53 h32 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 12 (in1282_leaf M hpm 12 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h49 | exact h50 | exact h51 | exact h52 | exact h53)) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h54 | h54 | h54 · exact absurd (in1282_conflict M hpm h54 h49 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h54 h51 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h55 | h55 | h55 · exact absurd (in1282_conflict M hpm h55 h49 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h55 h51 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 13 (in1282_leaf M hpm 13 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h49 | exact h50 | exact h51 | exact h54 | exact h55)) · -- 2-7 rcases in1282_branch M hsub' hpm 3 2 4 12 rfl rfl rfl with h56 | h56 | h56 · exact absurd (in1282_conflict M hpm h56 h49 2 (by decide) (by decide)) (by decide) · -- 3-4 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h57 | h57 | h57 · exact absurd (in1282_conflict M hpm h57 h1 5 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h57 h49 7 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h58 | h58 | h58 · exact absurd (in1282_conflict M hpm h58 h49 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h59 | h59 | h59 · exact absurd (in1282_conflict M hpm h59 h56 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h59 h57 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 14 (in1282_leaf M hpm 14 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h49 | exact h56 | exact h57 | exact h58 | exact h59)) · -- 8-13 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h60 | h60 | h60 · exact absurd (in1282_conflict M hpm h60 h56 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h60 h58 8 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h60 h32 10 (by decide) (by decide)) (by decide) · -- 3-12 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h61 | h61 | h61 · exact absurd (in1282_conflict M hpm h61 h56 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h61 h1 5 (by decide) (by decide)) (by decide) · -- 4-9 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h62 | h62 | h62 · exact absurd (in1282_conflict M hpm h62 h1 5 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h62 h49 7 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h63 | h63 | h63 · exact absurd (in1282_conflict M hpm h63 h49 7 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h63 h61 9 (by decide) (by decide)) (by decide) · -- 8-13 exact in1282_finish _ M b hsub hpm hconst hmax 15 (in1282_leaf M hpm 15 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h49 | exact h56 | exact h61 | exact h62 | exact h63)) · -- 0-13 rcases in1282_branch M hsub' hpm 1 0 2 10 rfl rfl rfl with h64 | h64 | h64 · exact absurd (in1282_conflict M hpm h64 h1 0 (by decide) (by decide)) (by decide) · -- 1-2 rcases in1282_branch M hsub' hpm 3 2 4 12 rfl rfl rfl with h65 | h65 | h65 · exact absurd (in1282_conflict M hpm h65 h64 2 (by decide) (by decide)) (by decide) · -- 3-4 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h66 | h66 | h66 · exact absurd (in1282_conflict M hpm h66 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h66 h65 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h67 | h67 | h67 · exact absurd (in1282_conflict M hpm h67 h64 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h67 h66 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h68 | h68 | h68 · exact absurd (in1282_conflict M hpm h68 h65 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h68 h67 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h69 | h69 | h69 · exact absurd (in1282_conflict M hpm h69 h66 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h69 h68 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 16 (in1282_leaf M hpm 16 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h65 | exact h66 | exact h67 | exact h68 | exact h69)) · -- 3-12 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h70 | h70 | h70 · exact absurd (in1282_conflict M hpm h70 h65 3 (by decide) (by decide)) (by decide) · -- 4-5 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h71 | h71 | h71 · exact absurd (in1282_conflict M hpm h71 h70 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h72 | h72 | h72 · exact absurd (in1282_conflict M hpm h72 h71 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h73 | h73 | h73 · exact absurd (in1282_conflict M hpm h73 h64 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h73 h72 9 (by decide) (by decide)) (by decide) · -- 10-11 exact in1282_finish _ M b hsub hpm hconst hmax 17 (in1282_leaf M hpm 17 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h65 | exact h70 | exact h71 | exact h72 | exact h73)) · exact absurd (in1282_conflict M hpm h72 h1 13 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h74 | h74 | h74 · exact absurd (in1282_conflict M hpm h74 h64 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h74 h71 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h75 | h75 | h75 · exact absurd (in1282_conflict M hpm h75 h70 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h75 h74 8 (by decide) (by decide)) (by decide) · -- 9-10 exact in1282_finish _ M b hsub hpm hconst hmax 18 (in1282_leaf M hpm 18 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h65 | exact h70 | exact h71 | exact h74 | exact h75)) · -- 4-9 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h76 | h76 | h76 · exact absurd (in1282_conflict M hpm h76 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h76 h70 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h77 | h77 | h77 · exact absurd (in1282_conflict M hpm h77 h64 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h77 h76 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h78 | h78 | h78 · exact absurd (in1282_conflict M hpm h78 h64 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h78 h70 9 (by decide) (by decide)) (by decide) · -- 10-11 exact in1282_finish _ M b hsub hpm hconst hmax 19 (in1282_leaf M hpm 19 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h65 | exact h70 | exact h76 | exact h77 | exact h78)) · -- 1-10 rcases in1282_branch M hsub' hpm 2 1 3 7 rfl rfl rfl with h79 | h79 | h79 · exact absurd (in1282_conflict M hpm h79 h64 1 (by decide) (by decide)) (by decide) · -- 2-3 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h80 | h80 | h80 · exact absurd (in1282_conflict M hpm h80 h79 3 (by decide) (by decide)) (by decide) · -- 4-5 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h81 | h81 | h81 · exact absurd (in1282_conflict M hpm h81 h80 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h82 | h82 | h82 · exact absurd (in1282_conflict M hpm h82 h81 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h83 | h83 | h83 · exact absurd (in1282_conflict M hpm h83 h81 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h83 h64 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 20 (in1282_leaf M hpm 20 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h79 | exact h80 | exact h81 | exact h82 | exact h83)) · exact absurd (in1282_conflict M hpm h82 h1 13 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h84 | h84 | h84 · exact absurd (in1282_conflict M hpm h84 h79 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h84 h81 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h85 | h85 | h85 · exact absurd (in1282_conflict M hpm h85 h80 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h85 h84 8 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h85 h64 10 (by decide) (by decide)) (by decide) · -- 4-9 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h86 | h86 | h86 · exact absurd (in1282_conflict M hpm h86 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h86 h80 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h87 | h87 | h87 · exact absurd (in1282_conflict M hpm h87 h79 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h87 h86 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h88 | h88 | h88 · exact absurd (in1282_conflict M hpm h88 h86 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h88 h64 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 21 (in1282_leaf M hpm 21 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h79 | exact h80 | exact h86 | exact h87 | exact h88)) · -- 2-7 rcases in1282_branch M hsub' hpm 3 2 4 12 rfl rfl rfl with h89 | h89 | h89 · exact absurd (in1282_conflict M hpm h89 h79 2 (by decide) (by decide)) (by decide) · -- 3-4 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h90 | h90 | h90 · exact absurd (in1282_conflict M hpm h90 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h90 h89 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h91 | h91 | h91 · exact absurd (in1282_conflict M hpm h91 h79 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h92 | h92 | h92 · exact absurd (in1282_conflict M hpm h92 h90 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h92 h64 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 22 (in1282_leaf M hpm 22 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h79 | exact h89 | exact h90 | exact h91 | exact h92)) · exact absurd (in1282_conflict M hpm h91 h1 13 (by decide) (by decide)) (by decide) · -- 3-12 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h93 | h93 | h93 · exact absurd (in1282_conflict M hpm h93 h89 3 (by decide) (by decide)) (by decide) · -- 4-5 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h94 | h94 | h94 · exact absurd (in1282_conflict M hpm h94 h93 5 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h94 h79 7 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h95 | h95 | h95 · exact absurd (in1282_conflict M hpm h95 h79 7 (by decide) (by decide)) (by decide) · -- 8-9 exact in1282_finish _ M b hsub hpm hconst hmax 23 (in1282_leaf M hpm 23 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h79 | exact h89 | exact h93 | exact h94 | exact h95)) · exact absurd (in1282_conflict M hpm h95 h1 13 (by decide) (by decide)) (by decide) · -- 4-9 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h96 | h96 | h96 · exact absurd (in1282_conflict M hpm h96 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h96 h93 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h97 | h97 | h97 · exact absurd (in1282_conflict M hpm h97 h79 7 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h97 h93 9 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h97 h1 13 (by decide) (by decide)) (by decide)
- Unresolved check: step 2's explanation only repeats its claim: say how it is shown
Written by a model (gemini-3.8-flash) from the Lean source alone (no goal states were available). Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
def in1282_P : Fin 24 → Fin 14 → Fin 14 := ![![1,0,3,2,5,4,7,6,9,8,11,10,13,12],![1,0,3,2,5,4,7,6,13,10,9,12,11,8],![1,0,3,2,5,4,11,8,7,10,9,6,13,12],![1,0,3,2,9,6,5,8,7,4,11,10,13,12],![1,0,7,4,3,6,5,2,9,8,11,10,13,12],![1,0,7,4,3,6,5,2,13,10,9,12,11,8],![1,0,7,12,5,4,11,2,13,10,9,6,3,8],![1,0,7,12,9,6,5,2,13,4,11,10,3,8],![5,2,1,4,3,0,7,6,9,8,11,10,13,12],![5,2,1,4,3,0,7,6,13,10,9,12,11,8],![5,2,1,4,3,0,11,8,7,10,9,6,13,12],![5,2,1,12,9,0,7,6,13,4,11,10,3,8],![5,10,3,2,9,0,7,6,13,4,1,12,11,8],![5,10,3,2,9,0,11,8,7,4,1,6,13,12],![5,10,7,4,3,0,11,2,9,8,1,6,13,12],![5,10,7,12,9,0,11,2,13,4,1,6,3,8],![13,2,1,4,3,6,5,8,7,10,9,12,11,0],![13,2,1,12,5,4,7,6,9,8,11,10,3,0],![13,2,1,12,5,4,11,8,7,10,9,6,3,0],![13,2,1,12,9,6,5,8,7,4,11,10,3,0],![13,10,3,2,5,4,7,6,9,8,1,12,11,0],![13,10,3,2,9,6,5,8,7,4,1,12,11,0],![13,10,7,4,3,6,5,2,9,8,1,12,11,0],![13,10,7,12,5,4,11,2,9,8,1,6,3,0]]def in1282_idx : Fin 24 → Fin 14 → Fin 7 := ![![0,0,1,1,2,2,3,3,4,4,5,5,6,6],![0,0,1,1,2,2,3,3,4,5,5,6,6,4],![0,0,1,1,2,2,3,4,4,5,5,3,6,6],![0,0,1,1,2,3,3,4,4,2,5,5,6,6],![0,0,1,2,2,3,3,1,4,4,5,5,6,6],![0,0,1,2,2,3,3,1,4,5,5,6,6,4],![0,0,1,2,3,3,4,1,5,6,6,4,2,5],![0,0,1,2,3,4,4,1,5,3,6,6,2,5],![0,1,1,2,2,0,3,3,4,4,5,5,6,6],![0,1,1,2,2,0,3,3,4,5,5,6,6,4],![0,1,1,2,2,0,3,4,4,5,5,3,6,6],![0,1,1,2,3,0,4,4,5,3,6,6,2,5],![0,1,2,2,3,0,4,4,5,3,1,6,6,5],![0,1,2,2,3,0,4,5,5,3,1,4,6,6],![0,1,2,3,3,0,4,2,5,5,1,4,6,6],![0,1,2,3,4,0,5,2,6,4,1,5,3,6],![0,1,1,2,2,3,3,4,4,5,5,6,6,0],![0,1,1,2,3,3,4,4,5,5,6,6,2,0],![0,1,1,2,3,3,4,5,5,6,6,4,2,0],![0,1,1,2,3,4,4,5,5,3,6,6,2,0],![0,1,2,2,3,3,4,4,5,5,1,6,6,0],![0,1,2,2,3,4,4,5,5,3,1,6,6,0],![0,1,2,3,3,4,4,2,5,5,1,6,6,0],![0,1,2,3,4,4,5,2,6,6,1,5,3,0]]def in1282_rep : Fin 24 → Fin 7 → Fin 14 := ![![0,2,4,6,8,10,12],![0,2,4,6,8,9,11],![0,2,4,6,7,9,12],![0,2,4,5,7,10,12],![0,2,3,5,8,10,12],![0,2,3,5,8,9,11],![0,2,3,4,6,8,9],![0,2,3,4,5,8,10],![0,1,3,6,8,10,12],![0,1,3,6,8,9,11],![0,1,3,6,7,9,12],![0,1,3,4,6,8,10],![0,1,2,4,6,8,11],![0,1,2,4,6,7,12],![0,1,2,3,6,8,12],![0,1,2,3,4,6,8],![0,1,3,5,7,9,11],![0,1,3,4,6,8,10],![0,1,3,4,6,7,9],![0,1,3,4,5,7,10],![0,1,2,4,6,8,11],![0,1,2,4,5,7,11],![0,1,2,3,5,8,11],![0,1,2,3,4,6,8]]def in1282_bst : Fin 24 → Fin 14 → Bool := ![![false,false,false,false,true,true,false,false,false,false,true,true,true,true],![false,false,false,false,true,true,false,false,true,false,false,true,true,true],![false,false,false,false,true,true,false,false,false,true,true,false,true,true],![false,false,false,false,true,true,true,false,false,true,false,false,true,true],![false,false,false,false,false,true,true,false,true,true,false,false,true,true],![false,false,false,false,false,true,true,false,true,true,true,false,false,true],![false,false,false,false,true,true,true,false,true,false,false,true,false,true],![false,false,false,false,false,true,true,false,true,false,true,true,false,true],![false,false,false,true,true,false,true,true,false,false,false,false,true,true],![false,false,false,true,true,false,true,true,false,true,true,false,false,false],![false,false,false,true,true,false,true,true,true,false,false,true,false,false],![false,false,false,true,true,false,true,true,false,true,false,false,true,false],![false,false,false,false,true,false,true,true,false,true,false,true,true,false],![false,false,false,false,true,false,true,false,false,true,false,true,true,true],![false,false,false,true,true,false,true,false,true,true,false,true,false,false],![false,false,false,false,true,false,true,false,true,true,false,true,false,true],![false,false,false,true,true,false,false,true,true,false,false,true,true,false],![false,false,false,true,false,false,true,true,true,true,false,false,true,false],![false,false,false,true,false,false,false,true,true,true,true,false,true,false],![false,false,false,true,false,false,false,true,true,false,true,true,true,false],![false,false,false,false,true,true,false,false,true,true,false,true,true,false],![false,false,false,false,true,false,false,true,true,true,false,true,true,false],![false,false,false,false,false,true,true,false,true,true,false,true,true,false],![false,false,false,true,false,false,true,false,true,true,false,true,true,false]]def in1282_paths : List (Fin 14 × Fin 14 × Fin 14 × Fin 14) := [(0,1,2,3),(0,1,2,7),(0,1,10,9),(0,1,10,11),(0,5,4,3),(0,5,4,9),(0,5,6,7),(0,5,6,11),(0,13,8,7),(0,13,8,9),(0,13,12,3),(0,13,12,11),(1,0,5,4),(1,0,5,6),(1,0,13,8),(1,0,13,12),(1,2,3,4),(1,2,3,12),(1,2,7,6),(1,2,7,8),(1,10,9,4),(1,10,9,8),(1,10,11,6),(1,10,11,12),(2,1,0,5),(2,1,0,13),(2,1,10,9),(2,1,10,11),(2,3,4,5),(2,3,4,9),(2,3,12,11),(2,3,12,13),(2,7,6,5),(2,7,6,11),(2,7,8,9),(2,7,8,13),(3,2,1,0),(3,2,1,10),(3,2,7,6),(3,2,7,8),(3,4,5,0),(3,4,5,6),(3,4,9,8),(3,4,9,10),(3,12,11,6),(3,12,11,10),(3,12,13,0),(3,12,13,8),(4,3,2,1),(4,3,2,7),(4,3,12,11),(4,3,12,13),(4,5,0,1),(4,5,0,13),(4,5,6,7),(4,5,6,11),(4,9,8,7),(4,9,8,13),(4,9,10,1),(4,9,10,11),(5,0,1,2),(5,0,1,10),(5,0,13,8),(5,0,13,12),(5,4,3,2),(5,4,3,12),(5,4,9,8),(5,4,9,10),(5,6,7,2),(5,6,7,8),(5,6,11,10),(5,6,11,12),(6,5,0,1),(6,5,0,13),(6,5,4,3),(6,5,4,9),(6,7,2,1),(6,7,2,3),(6,7,8,9),(6,7,8,13),(6,11,10,1),(6,11,10,9),(6,11,12,3),(6,11,12,13),(7,2,1,0),(7,2,1,10),(7,2,3,4),(7,2,3,12),(7,6,5,0),(7,6,5,4),(7,6,11,10),(7,6,11,12),(7,8,9,4),(7,8,9,10),(7,8,13,0),(7,8,13,12),(8,7,2,1),(8,7,2,3),(8,7,6,5),(8,7,6,11),(8,9,4,3),(8,9,4,5),(8,9,10,1),(8,9,10,11),(8,13,0,1),(8,13,0,5),(8,13,12,3),(8,13,12,11),(9,4,3,2),(9,4,3,12),(9,4,5,0),(9,4,5,6),(9,8,7,2),(9,8,7,6),(9,8,13,0),(9,8,13,12),(9,10,1,0),(9,10,1,2),(9,10,11,6),(9,10,11,12),(10,1,0,5),(10,1,0,13),(10,1,2,3),(10,1,2,7),(10,9,4,3),(10,9,4,5),(10,9,8,7),(10,9,8,13),(10,11,6,5),(10,11,6,7),(10,11,12,3),(10,11,12,13),(11,6,5,0),(11,6,5,4),(11,6,7,2),(11,6,7,8),(11,10,1,0),(11,10,1,2),(11,10,9,4),(11,10,9,8),(11,12,3,2),(11,12,3,4),(11,12,13,0),(11,12,13,8),(12,3,2,1),(12,3,2,7),(12,3,4,5),(12,3,4,9),(12,11,6,5),(12,11,6,7),(12,11,10,1),(12,11,10,9),(12,13,0,1),(12,13,0,5),(12,13,8,7),(12,13,8,9),(13,0,1,2),(13,0,1,10),(13,0,5,4),(13,0,5,6),(13,8,7,2),(13,8,7,6),(13,8,9,4),(13,8,9,10),(13,12,3,2),(13,12,3,4),(13,12,11,6),(13,12,11,10)]def in1282_n0 : Fin 14 → Fin 14 := ![1,0,1,2,3,0,5,2,7,4,1,6,3,0]def in1282_n1 : Fin 14 → Fin 14 := ![5,2,3,4,5,4,7,6,9,8,9,10,11,8]def in1282_n2 : Fin 14 → Fin 14 := ![13,10,7,12,9,6,11,8,13,10,11,12,13,12]def in1282_fp : Fin 24 → List (Fin 14 × Fin 14 × Fin 14 × Fin 14) := ![[(0,5,6,11),(0,13,8,7),(1,2,7,8),(1,10,9,4),(2,1,10,9),(2,7,8,13),(3,4,9,10),(3,12,11,6),(4,3,12,11),(5,0,13,8),(5,6,11,12),(6,5,0,13),(7,2,1,10),(9,4,3,12)],[(0,5,6,11),(0,13,12,3),(1,2,7,8),(1,10,11,6),(2,1,10,11),(2,7,8,9),(3,4,9,8),(4,3,12,13),(4,9,8,7),(5,0,13,12),(5,6,11,10),(6,5,0,13),(7,2,1,10),(9,4,3,12)],[(0,5,6,7),(0,13,8,9),(1,2,7,6),(1,10,11,12),(2,1,10,11),(2,7,6,5),(3,4,9,8),(3,12,11,10),(4,3,12,11),(4,9,8,13),(5,0,13,8),(6,5,0,13),(7,2,1,10),(9,4,3,12)],[(0,5,4,3),(0,13,8,9),(1,2,7,6),(1,10,9,8),(2,1,10,9),(2,7,6,11),(3,12,11,6),(4,3,12,11),(4,5,0,13),(5,0,13,8),(5,4,3,12),(7,2,1,10),(7,6,11,12),(10,9,8,13)],[(0,5,4,9),(0,13,8,7),(1,2,3,12),(1,10,9,4),(2,1,10,9),(2,3,12,11),(3,2,1,10),(3,12,11,6),(4,5,0,13),(5,0,13,8),(5,4,9,10),(6,7,8,13),(7,6,11,12),(8,7,6,11)],[(0,5,4,9),(0,13,12,3),(1,2,3,12),(1,10,11,6),(2,1,10,11),(2,3,12,13),(3,2,1,10),(4,5,0,13),(4,9,8,7),(5,0,13,12),(5,4,9,8),(6,7,8,9),(7,6,11,10),(8,7,6,11)],[(0,5,6,7),(0,13,12,11),(1,2,3,4),(1,10,11,12),(2,1,10,11),(2,3,4,9),(3,2,1,10),(3,4,9,8),(4,9,8,7),(5,0,13,12),(5,6,7,8),(6,5,0,13),(6,7,8,9),(10,11,12,13)],[(0,5,4,3),(0,13,12,11),(1,2,3,4),(1,10,9,8),(2,1,10,9),(2,3,4,5),(3,2,1,10),(4,5,0,13),(5,0,13,12),(6,7,8,9),(6,11,12,13),(7,6,11,12),(7,8,9,10),(8,7,6,11)],[(0,1,10,9),(0,13,8,7),(1,0,13,8),(1,10,9,4),(2,3,12,11),(2,7,8,13),(3,2,7,8),(3,12,11,6),(4,5,6,11),(5,4,9,10),(5,6,11,12),(6,5,4,9),(7,2,3,12),(10,1,0,13)],[(0,1,10,11),(0,13,12,3),(1,0,13,12),(1,10,11,6),(2,3,12,13),(2,7,8,9),(3,2,7,8),(4,5,6,11),(4,9,8,7),(5,4,9,8),(5,6,11,10),(6,5,4,9),(7,2,3,12),(10,1,0,13)],[(0,1,10,11),(0,13,8,9),(1,0,13,8),(1,10,11,12),(2,3,12,11),(2,7,6,5),(3,2,7,6),(3,12,11,10),(4,5,6,7),(4,9,8,13),(5,4,9,8),(6,5,4,9),(7,2,3,12),(10,1,0,13)],[(0,1,10,9),(0,13,12,11),(1,0,13,12),(1,10,9,8),(2,3,4,5),(2,7,8,9),(3,2,7,8),(3,4,5,6),(4,3,2,7),(4,5,6,11),(5,6,11,12),(6,11,12,13),(7,8,9,10),(10,1,0,13)],[(0,1,2,7),(0,13,12,3),(1,0,13,12),(1,2,7,8),(2,1,0,13),(2,7,8,9),(3,4,5,6),(4,3,12,13),(4,5,6,11),(5,4,3,12),(5,6,11,10),(6,11,10,9),(7,8,9,10),(8,9,10,11)],[(0,1,2,7),(0,13,8,9),(1,0,13,8),(1,2,7,6),(2,1,0,13),(2,7,6,5),(3,4,5,6),(3,12,11,10),(4,3,12,11),(4,5,6,7),(5,4,3,12),(8,9,10,11),(9,10,11,12),(10,9,8,13)],[(0,1,2,3),(0,13,8,7),(1,0,13,8),(1,2,3,12),(2,1,0,13),(2,3,12,11),(3,12,11,10),(4,5,6,7),(4,9,10,11),(5,4,9,10),(5,6,7,8),(6,5,4,9),(6,7,8,13),(9,10,11,12)],[(0,1,2,3),(0,13,12,11),(1,0,13,12),(1,2,3,4),(2,1,0,13),(2,3,4,5),(3,4,5,6),(4,5,6,7),(5,6,7,8),(6,7,8,9),(7,8,9,10),(8,9,10,11),(9,10,11,12),(10,11,12,13)],[(0,1,10,11),(0,5,4,9),(1,0,5,4),(1,10,11,6),(2,3,12,13),(2,7,6,11),(3,2,7,6),(3,12,13,8),(4,9,8,13),(5,0,1,10),(5,4,9,8),(7,2,3,12),(7,6,11,10),(9,8,13,12)],[(0,1,10,9),(0,5,6,11),(1,0,5,6),(1,10,9,4),(2,3,4,9),(2,7,8,13),(3,2,7,8),(3,4,9,10),(4,3,2,7),(5,0,1,10),(5,6,11,12),(6,11,12,13),(7,8,13,12),(8,13,12,11)],[(0,1,10,11),(0,5,6,7),(1,0,5,6),(1,10,11,12),(2,3,4,9),(2,7,6,5),(3,2,7,6),(3,4,9,8),(4,3,2,7),(4,9,8,13),(5,0,1,10),(8,13,12,11),(9,8,13,12),(10,11,12,13)],[(0,1,10,9),(0,5,4,3),(1,0,5,4),(1,10,9,8),(2,3,4,5),(2,7,6,11),(3,2,7,6),(4,3,2,7),(5,0,1,10),(6,11,12,13),(7,6,11,12),(8,13,12,11),(9,8,13,12),(10,9,8,13)],[(0,1,2,7),(0,5,6,11),(1,0,5,6),(1,2,7,8),(2,1,0,5),(2,7,8,13),(3,4,9,10),(3,12,13,8),(4,3,12,13),(4,9,10,11),(5,6,11,10),(6,11,10,9),(7,8,13,12),(9,4,3,12)],[(0,1,2,7),(0,5,4,3),(1,0,5,4),(1,2,7,6),(2,1,0,5),(2,7,6,11),(3,12,13,8),(4,3,12,13),(5,4,3,12),(6,11,10,9),(7,6,11,10),(8,9,10,11),(9,8,13,12),(10,9,8,13)],[(0,1,2,3),(0,5,4,9),(1,0,5,4),(1,2,3,12),(2,1,0,5),(2,3,12,13),(3,12,13,8),(4,9,10,11),(5,4,9,10),(6,7,8,13),(6,11,10,9),(7,6,11,10),(7,8,13,12),(8,7,6,11)],[(0,1,2,3),(0,5,6,7),(1,0,5,6),(1,2,3,4),(2,1,0,5),(2,3,4,9),(3,4,9,10),(4,9,10,11),(5,6,7,8),(6,7,8,13),(7,8,13,12),(8,13,12,11),(9,10,11,12),(10,11,12,13)]]theorem in1282_hadj : ∀ a b : Fin 14, op874_fourteen_run_graph.Adj a b ↔ (b = in1282_n0 a ∨ b = in1282_n1 a ∨ b = in1282_n2 a) := by simp only [op874_fourteen_run_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe, op874_fourteen_run_edges] decidedef in1282_adjB (a b : Fin 14) : Bool := decide (b = in1282_n0 a ∨ b = in1282_n1 a ∨ b = in1282_n2 a)theorem in1282_branch (M : Finset (Sym2 (Fin 14))) (hsub : ∀ e ∈ M, e ∈ op874_fourteen_run_graph.edgeSet) (hpm : ∀ v, ∃! e : Sym2 (Fin 14), e ∈ M ∧ v ∈ e) (v a c d : Fin 14) (ha : a = in1282_n0 v) (hc : c = in1282_n1 v) (hd : d = in1282_n2 v) : s(v, a) ∈ M ∨ s(v, c) ∈ M ∨ s(v, d) ∈ M := by obtain ⟨e, ⟨he, hv⟩, -⟩ := hpm v obtain ⟨w, rfl⟩ := Sym2.mem_iff_exists.mp hv have hadj : op874_fourteen_run_graph.Adj v w := hsub _ he rcases (in1282_hadj v w).1 hadj with h | h | h · left; rw [ha, ← h]; exact he · right; left; rw [hc, ← h]; exact he · right; right; rw [hd, ← h]; exact hetheorem in1282_conflict (M : Finset (Sym2 (Fin 14))) (hpm : ∀ v, ∃! e : Sym2 (Fin 14), e ∈ M ∧ v ∈ e) {e1 e2 : Sym2 (Fin 14)} (h1 : e1 ∈ M) (h2 : e2 ∈ M) (w : Fin 14) (hw1 : w ∈ e1) (hw2 : w ∈ e2) : e1 = e2 := (hpm w).unique ⟨h1, hw1⟩ ⟨h2, hw2⟩def in1282_Mj (j : Fin 24) : Finset (Sym2 (Fin 14)) := Finset.univ.image (fun v => s(v, in1282_P j v))theorem in1282_P_facts : ∀ j : Fin 24, ∀ v : Fin 14, in1282_P j (in1282_P j v) = v ∧ in1282_P j v ≠ v ∧ in1282_adjB v (in1282_P j v) = true ∧ in1282_bst j (in1282_P j v) = in1282_bst j v ∧ (in1282_rep j (in1282_idx j v) = v ∨ in1282_rep j (in1282_idx j v) = in1282_P j v) := by decidetheorem in1282_mem_Mj (j : Fin 24) (x y : Fin 14) : s(x, y) ∈ in1282_Mj j ↔ in1282_P j x = y := by simp only [in1282_Mj, Finset.mem_image, Finset.mem_univ, true_and] constructor · rintro ⟨u, hu⟩ rcases Sym2.eq_iff.mp hu with ⟨rfl, rfl⟩ | ⟨rfl, rfl⟩ · rfl · exact (in1282_P_facts j u).1 · intro h; exact ⟨x, by rw [h]⟩theorem in1282_leaf (M : Finset (Sym2 (Fin 14))) (hpm : ∀ v, ∃! e : Sym2 (Fin 14), e ∈ M ∧ v ∈ e) (j : Fin 24) (hS : ∀ v, v < in1282_P j v → s(v, in1282_P j v) ∈ M) : M = in1282_Mj j := by have hall : ∀ v, s(v, in1282_P j v) ∈ M := by intro v rcases lt_or_gt_of_ne (in1282_P_facts j v).2.1 with h | h · have := hS (in1282_P j v) (by rwa [(in1282_P_facts j v).1]) rw [(in1282_P_facts j v).1, Sym2.eq_swap] at this exact this · exact hS v h ext z induction z using Sym2.ind with | _ a c => rw [in1282_mem_Mj] constructor · intro hz have := in1282_conflict M hpm hz (hall a) a (Sym2.mem_mk_left _ _) (Sym2.mem_mk_left _ _) rcases Sym2.eq_iff.mp this with ⟨-, h⟩ | ⟨h1, h2⟩ · exact h.symm · exact absurd h1.symm (in1282_P_facts j a).2.1 · intro h; rw [← h]; exact hall adef in1282_q (j : Fin 24) (b : Fin 14 → Bool) (v w : Fin 14) : ℕ := if b w ≠ b v ∧ in1282_P j v ≠ w then 1 else 0def in1282_scN (j : Fin 24) (b : Fin 14 → Bool) : ℕ := Finset.univ.sum fun v : Fin 14 => in1282_q j b v (in1282_n0 v) + in1282_q j b v (in1282_n1 v) + in1282_q j b v (in1282_n2 v)def in1282_runF (j : Fin 24) (b : Fin 14 → Bool) : Bool := (in1282_fp j).any fun p => b p.1 == b p.2.1 && b p.2.1 == b p.2.2.1 && b p.2.2.1 == b p.2.2.2theorem in1282_fp_ok : ∀ j : Fin 24, (in1282_fp j).all (fun p => decide (p.1 ≠ p.2.1 ∧ p.1 ≠ p.2.2.1 ∧ p.1 ≠ p.2.2.2 ∧ p.2.1 ≠ p.2.2.1 ∧ p.2.1 ≠ p.2.2.2 ∧ p.2.2.1 ≠ p.2.2.2 ∧ in1282_adjB p.1 p.2.1 = true ∧ in1282_adjB p.2.1 p.2.2.1 = true ∧ in1282_adjB p.2.2.1 p.2.2.2 = true ∧ in1282_P j p.1 ≠ p.2.1 ∧ in1282_P j p.2.1 ≠ p.2.2.1 ∧ in1282_P j p.2.2.1 ≠ p.2.2.2)) = true := by decidetheorem in1282_bst_score : ∀ j : Fin 24, in1282_scN j (in1282_bst j) = 20 := by decidetheorem in1282_nbr_distinct : ∀ v : Fin 14, in1282_n0 v ≠ in1282_n1 v ∧ in1282_n0 v ≠ in1282_n2 v ∧ in1282_n1 v ≠ in1282_n2 v := by decideset_option maxRecDepth 100000 inset_option maxHeartbeats 0 intheorem in1282_main_check : ∀ j : Fin 24, ∀ t0 t1 t2 t3 t4 t5 t6 : Bool, 20 ≤ in1282_scN j (fun v => ![t0,t1,t2,t3,t4,t5,t6] (in1282_idx j v)) → in1282_runF j (fun v => ![t0,t1,t2,t3,t4,t5,t6] (in1282_idx j v)) = true := by decide +kerneltheorem in1282_scEq [DecidableRel op874_fourteen_run_graph.Adj] (j : Fin 24) (b : Fin 14 → Bool) : (Finset.univ : Finset (Fin 14)).sum (fun v => ((op874_fourteen_run_graph.neighborFinset v).filter fun w => b w ≠ b v ∧ s(v,w) ∉ in1282_Mj j).card) = in1282_scN j b := by apply Finset.sum_congr rfl intro v _ have hN : op874_fourteen_run_graph.neighborFinset v = {in1282_n0 v, in1282_n1 v, in1282_n2 v} := by ext w simp only [SimpleGraph.mem_neighborFinset, in1282_hadj, Finset.mem_insert, Finset.mem_singleton] obtain ⟨d1, d2, d3⟩ := in1282_nbr_distinct v rw [hN, Finset.card_filter, Finset.sum_insert (by simp [d1, d2]), Finset.sum_insert (by simp [d3]), Finset.sum_singleton] simp only [in1282_q, in1282_mem_Mj, add_assoc]theorem in1282_finish (inst : DecidableRel op874_fourteen_run_graph.Adj) (M : Finset (Sym2 (Fin 14))) (b : Fin 14 → Bool) (hsub : M ⊆ op874_fourteen_run_graph.edgeFinset) (hpm : ∀ v, ∃! e : Sym2 (Fin 14), e ∈ M ∧ v ∈ e) (hconst : ∀ u v, op874_fourteen_run_graph.Adj u v → s(u,v) ∈ M → b u = b v) (hmax : ∀ b' : Fin 14 → Bool, (∀ u v, op874_fourteen_run_graph.Adj u v → s(u,v) ∈ M → b' u = b' v) → (Finset.univ : Finset (Fin 14)).sum (fun v => ((op874_fourteen_run_graph.neighborFinset v).filter fun w => b' w ≠ b' v ∧ s(v,w) ∉ M).card) ≤ (Finset.univ : Finset (Fin 14)).sum (fun v => ((op874_fourteen_run_graph.neighborFinset v).filter fun w => b w ≠ b v ∧ s(v,w) ∉ M).card)) (j : Fin 24) (hMj : M = in1282_Mj j) : ∃ a c d e : Fin 14, a ≠ c ∧ a ≠ d ∧ a ≠ e ∧ c ≠ d ∧ c ≠ e ∧ d ≠ e ∧ op874_fourteen_run_graph.Adj a c ∧ op874_fourteen_run_graph.Adj c d ∧ op874_fourteen_run_graph.Adj d e ∧ s(a,c) ∉ M ∧ s(c,d) ∉ M ∧ s(d,e) ∉ M ∧ b a = b c ∧ b c = b d ∧ b d = b e := by subst hMj have hc' : ∀ v, b (in1282_P j v) = b v := fun v => (hconst v _ ((in1282_hadj _ _).2 (by simpa [in1282_adjB] using (in1282_P_facts j v).2.2.1)) ((in1282_mem_Mj j _ _).2 rfl)).symm have key := hmax (in1282_bst j) (by intro u v _ h rw [in1282_mem_Mj] at h rw [← h]; exact ((in1282_P_facts j u).2.2.2.1).symm) rw [in1282_scEq, in1282_scEq] at key let t : Fin 7 → Bool := fun k => b (in1282_rep j k) have hb : b = fun v => ![t 0, t 1, t 2, t 3, t 4, t 5, t 6] (in1282_idx j v) := by funext v have ht : ![t 0, t 1, t 2, t 3, t 4, t 5, t 6] = t := by funext k; fin_cases k <;> rfl rw [ht] show b v = b (in1282_rep j (in1282_idx j v)) rcases (in1282_P_facts j v).2.2.2.2 with h | h · rw [h] · rw [h, hc'] rw [hb, in1282_bst_score] at key have hrun := in1282_main_check j _ _ _ _ _ _ _ key rw [← hb] at hrun obtain ⟨p, hp, hq⟩ := List.any_eq_true.mp hrun have hok := List.all_eq_true.mp (in1282_fp_ok j) p hp simp only [decide_eq_true_eq, in1282_adjB, Bool.and_eq_true, beq_iff_eq] at hq hok obtain ⟨n1, n2, n3, n4, n5, n6, a1, a2, a3, m1, m2, m3⟩ := hok obtain ⟨⟨q1, q2⟩, q3⟩ := hq refine ⟨p.1, p.2.1, p.2.2.1, p.2.2.2, n1, n2, n3, n4, n5, n6, (in1282_hadj _ _).2 a1, (in1282_hadj _ _).2 a2, (in1282_hadj _ _).2 a3, ?_, ?_, ?_, q1, q2, q3⟩ · rw [in1282_mem_Mj]; exact m1 · rw [in1282_mem_Mj]; exact m2 · rw [in1282_mem_Mj]; exact m3theorem op874_fourteen_graph_all_matching_maxcuts_have_mono_run : let G := op874_fourteen_run_graph letI : DecidableRel G.Adj := Classical.decRel _ ∀ (M : Finset (Sym2 (Fin 14))) (b : Fin 14 → Bool), M ⊆ G.edgeFinset → (∀ v, ∃! e : Sym2 (Fin 14), e ∈ M ∧ v ∈ e) → (∀ u v, G.Adj u v → s(u,v) ∈ M → b u = b v) → (∀ b' : Fin 14 → Bool, (∀ u v, G.Adj u v → s(u,v) ∈ M → b' u = b' v) → (Finset.univ : Finset (Fin 14)).sum (fun v => ((G.neighborFinset v).filter fun w => b' w ≠ b' v ∧ s(v,w) ∉ M).card) ≤ (Finset.univ : Finset (Fin 14)).sum (fun v => ((G.neighborFinset v).filter fun w => b w ≠ b v ∧ s(v,w) ∉ M).card)) → ∃ a c d e : Fin 14, a ≠ c ∧ a ≠ d ∧ a ≠ e ∧ c ≠ d ∧ c ≠ e ∧ d ≠ e ∧ G.Adj a c ∧ G.Adj c d ∧ G.Adj d e ∧ s(a,c) ∉ M ∧ s(c,d) ∉ M ∧ s(d,e) ∉ M ∧ b a = b c ∧ b c = b d ∧ b d = b e := by intro G M b hsub hpm hconst hmax letI : DecidableRel G.Adj := Classical.decRel _ have hsub' : ∀ e ∈ M, e ∈ op874_fourteen_run_graph.edgeSet := by intro e he have := hsub he rwa [SimpleGraph.mem_edgeFinset] at this rcases in1282_branch M hsub' hpm 0 1 5 13 rfl rfl rfl with h1 | h1 | h1 · -- 0-1 rcases in1282_branch M hsub' hpm 2 1 3 7 rfl rfl rfl with h2 | h2 | h2 · exact absurd (in1282_conflict M hpm h2 h1 1 (by decide) (by decide)) (by decide) · -- 2-3 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h3 | h3 | h3 · exact absurd (in1282_conflict M hpm h3 h2 3 (by decide) (by decide)) (by decide) · -- 4-5 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h4 | h4 | h4 · exact absurd (in1282_conflict M hpm h4 h3 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h5 | h5 | h5 · exact absurd (in1282_conflict M hpm h5 h4 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h6 | h6 | h6 · exact absurd (in1282_conflict M hpm h6 h1 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h6 h5 9 (by decide) (by decide)) (by decide) · -- 10-11 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h7 | h7 | h7 · exact absurd (in1282_conflict M hpm h7 h2 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h7 h6 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 0 (in1282_leaf M hpm 0 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h3 | exact h4 | exact h5 | exact h6 | exact h7)) · -- 8-13 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h8 | h8 | h8 · exact absurd (in1282_conflict M hpm h8 h3 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h8 h5 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h9 | h9 | h9 · exact absurd (in1282_conflict M hpm h9 h4 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h9 h8 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 1 (in1282_leaf M hpm 1 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h3 | exact h4 | exact h5 | exact h8 | exact h9)) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h10 | h10 | h10 · exact absurd (in1282_conflict M hpm h10 h2 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h10 h4 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h11 | h11 | h11 · exact absurd (in1282_conflict M hpm h11 h3 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h11 h10 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h12 | h12 | h12 · exact absurd (in1282_conflict M hpm h12 h2 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h12 h4 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 2 (in1282_leaf M hpm 2 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h3 | exact h4 | exact h10 | exact h11 | exact h12)) · -- 4-9 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h13 | h13 | h13 · exact absurd (in1282_conflict M hpm h13 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h13 h3 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h14 | h14 | h14 · exact absurd (in1282_conflict M hpm h14 h2 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h14 h13 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h15 | h15 | h15 · exact absurd (in1282_conflict M hpm h15 h1 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h15 h3 9 (by decide) (by decide)) (by decide) · -- 10-11 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h16 | h16 | h16 · exact absurd (in1282_conflict M hpm h16 h2 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h16 h15 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 3 (in1282_leaf M hpm 3 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h3 | exact h13 | exact h14 | exact h15 | exact h16)) · -- 2-7 rcases in1282_branch M hsub' hpm 3 2 4 12 rfl rfl rfl with h17 | h17 | h17 · exact absurd (in1282_conflict M hpm h17 h2 2 (by decide) (by decide)) (by decide) · -- 3-4 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h18 | h18 | h18 · exact absurd (in1282_conflict M hpm h18 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h18 h17 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h19 | h19 | h19 · exact absurd (in1282_conflict M hpm h19 h2 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h20 | h20 | h20 · exact absurd (in1282_conflict M hpm h20 h1 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h20 h19 9 (by decide) (by decide)) (by decide) · -- 10-11 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h21 | h21 | h21 · exact absurd (in1282_conflict M hpm h21 h17 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h21 h20 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 4 (in1282_leaf M hpm 4 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h17 | exact h18 | exact h19 | exact h20 | exact h21)) · -- 8-13 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h22 | h22 | h22 · exact absurd (in1282_conflict M hpm h22 h17 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h22 h19 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h23 | h23 | h23 · exact absurd (in1282_conflict M hpm h23 h18 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h23 h22 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 5 (in1282_leaf M hpm 5 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h17 | exact h18 | exact h19 | exact h22 | exact h23)) · -- 3-12 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h24 | h24 | h24 · exact absurd (in1282_conflict M hpm h24 h17 3 (by decide) (by decide)) (by decide) · -- 4-5 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h25 | h25 | h25 · exact absurd (in1282_conflict M hpm h25 h24 5 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h25 h2 7 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h26 | h26 | h26 · exact absurd (in1282_conflict M hpm h26 h2 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h27 | h27 | h27 · exact absurd (in1282_conflict M hpm h27 h1 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h27 h26 9 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h27 h25 11 (by decide) (by decide)) (by decide) · -- 8-13 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h28 | h28 | h28 · exact absurd (in1282_conflict M hpm h28 h24 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h28 h26 8 (by decide) (by decide)) (by decide) · -- 9-10 exact in1282_finish _ M b hsub hpm hconst hmax 6 (in1282_leaf M hpm 6 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h17 | exact h24 | exact h25 | exact h26 | exact h28)) · -- 4-9 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h29 | h29 | h29 · exact absurd (in1282_conflict M hpm h29 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h29 h24 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h30 | h30 | h30 · exact absurd (in1282_conflict M hpm h30 h2 7 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h30 h24 9 (by decide) (by decide)) (by decide) · -- 8-13 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h31 | h31 | h31 · exact absurd (in1282_conflict M hpm h31 h1 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h31 h24 9 (by decide) (by decide)) (by decide) · -- 10-11 exact in1282_finish _ M b hsub hpm hconst hmax 7 (in1282_leaf M hpm 7 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h2 | exact h17 | exact h24 | exact h29 | exact h30 | exact h31)) · -- 0-5 rcases in1282_branch M hsub' hpm 1 0 2 10 rfl rfl rfl with h32 | h32 | h32 · exact absurd (in1282_conflict M hpm h32 h1 0 (by decide) (by decide)) (by decide) · -- 1-2 rcases in1282_branch M hsub' hpm 3 2 4 12 rfl rfl rfl with h33 | h33 | h33 · exact absurd (in1282_conflict M hpm h33 h32 2 (by decide) (by decide)) (by decide) · -- 3-4 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h34 | h34 | h34 · exact absurd (in1282_conflict M hpm h34 h1 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h35 | h35 | h35 · exact absurd (in1282_conflict M hpm h35 h34 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h36 | h36 | h36 · exact absurd (in1282_conflict M hpm h36 h32 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h36 h35 9 (by decide) (by decide)) (by decide) · -- 10-11 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h37 | h37 | h37 · exact absurd (in1282_conflict M hpm h37 h33 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h37 h36 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 8 (in1282_leaf M hpm 8 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h33 | exact h34 | exact h35 | exact h36 | exact h37)) · -- 8-13 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h38 | h38 | h38 · exact absurd (in1282_conflict M hpm h38 h33 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h38 h35 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h39 | h39 | h39 · exact absurd (in1282_conflict M hpm h39 h34 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h39 h38 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 9 (in1282_leaf M hpm 9 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h33 | exact h34 | exact h35 | exact h38 | exact h39)) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h40 | h40 | h40 · exact absurd (in1282_conflict M hpm h40 h32 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h40 h34 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h41 | h41 | h41 · exact absurd (in1282_conflict M hpm h41 h33 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h41 h40 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h42 | h42 | h42 · exact absurd (in1282_conflict M hpm h42 h33 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h42 h34 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 10 (in1282_leaf M hpm 10 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h33 | exact h34 | exact h40 | exact h41 | exact h42)) · -- 3-12 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h43 | h43 | h43 · exact absurd (in1282_conflict M hpm h43 h33 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h43 h1 5 (by decide) (by decide)) (by decide) · -- 4-9 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h44 | h44 | h44 · exact absurd (in1282_conflict M hpm h44 h1 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h45 | h45 | h45 · exact absurd (in1282_conflict M hpm h45 h44 7 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h45 h43 9 (by decide) (by decide)) (by decide) · -- 8-13 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h46 | h46 | h46 · exact absurd (in1282_conflict M hpm h46 h32 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h46 h43 9 (by decide) (by decide)) (by decide) · -- 10-11 exact in1282_finish _ M b hsub hpm hconst hmax 11 (in1282_leaf M hpm 11 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h33 | exact h43 | exact h44 | exact h45 | exact h46)) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h47 | h47 | h47 · exact absurd (in1282_conflict M hpm h47 h32 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h47 h44 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h48 | h48 | h48 · exact absurd (in1282_conflict M hpm h48 h32 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h48 h43 9 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h48 h44 11 (by decide) (by decide)) (by decide) · -- 1-10 rcases in1282_branch M hsub' hpm 2 1 3 7 rfl rfl rfl with h49 | h49 | h49 · exact absurd (in1282_conflict M hpm h49 h32 1 (by decide) (by decide)) (by decide) · -- 2-3 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h50 | h50 | h50 · exact absurd (in1282_conflict M hpm h50 h49 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h50 h1 5 (by decide) (by decide)) (by decide) · -- 4-9 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h51 | h51 | h51 · exact absurd (in1282_conflict M hpm h51 h1 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h52 | h52 | h52 · exact absurd (in1282_conflict M hpm h52 h51 7 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h52 h50 9 (by decide) (by decide)) (by decide) · -- 8-13 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h53 | h53 | h53 · exact absurd (in1282_conflict M hpm h53 h51 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h53 h32 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 12 (in1282_leaf M hpm 12 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h49 | exact h50 | exact h51 | exact h52 | exact h53)) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h54 | h54 | h54 · exact absurd (in1282_conflict M hpm h54 h49 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h54 h51 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h55 | h55 | h55 · exact absurd (in1282_conflict M hpm h55 h49 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h55 h51 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 13 (in1282_leaf M hpm 13 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h49 | exact h50 | exact h51 | exact h54 | exact h55)) · -- 2-7 rcases in1282_branch M hsub' hpm 3 2 4 12 rfl rfl rfl with h56 | h56 | h56 · exact absurd (in1282_conflict M hpm h56 h49 2 (by decide) (by decide)) (by decide) · -- 3-4 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h57 | h57 | h57 · exact absurd (in1282_conflict M hpm h57 h1 5 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h57 h49 7 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h58 | h58 | h58 · exact absurd (in1282_conflict M hpm h58 h49 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 12 3 11 13 rfl rfl rfl with h59 | h59 | h59 · exact absurd (in1282_conflict M hpm h59 h56 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h59 h57 11 (by decide) (by decide)) (by decide) · -- 12-13 exact in1282_finish _ M b hsub hpm hconst hmax 14 (in1282_leaf M hpm 14 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h49 | exact h56 | exact h57 | exact h58 | exact h59)) · -- 8-13 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h60 | h60 | h60 · exact absurd (in1282_conflict M hpm h60 h56 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h60 h58 8 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h60 h32 10 (by decide) (by decide)) (by decide) · -- 3-12 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h61 | h61 | h61 · exact absurd (in1282_conflict M hpm h61 h56 3 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h61 h1 5 (by decide) (by decide)) (by decide) · -- 4-9 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h62 | h62 | h62 · exact absurd (in1282_conflict M hpm h62 h1 5 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h62 h49 7 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h63 | h63 | h63 · exact absurd (in1282_conflict M hpm h63 h49 7 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h63 h61 9 (by decide) (by decide)) (by decide) · -- 8-13 exact in1282_finish _ M b hsub hpm hconst hmax 15 (in1282_leaf M hpm 15 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h32 | exact h49 | exact h56 | exact h61 | exact h62 | exact h63)) · -- 0-13 rcases in1282_branch M hsub' hpm 1 0 2 10 rfl rfl rfl with h64 | h64 | h64 · exact absurd (in1282_conflict M hpm h64 h1 0 (by decide) (by decide)) (by decide) · -- 1-2 rcases in1282_branch M hsub' hpm 3 2 4 12 rfl rfl rfl with h65 | h65 | h65 · exact absurd (in1282_conflict M hpm h65 h64 2 (by decide) (by decide)) (by decide) · -- 3-4 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h66 | h66 | h66 · exact absurd (in1282_conflict M hpm h66 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h66 h65 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h67 | h67 | h67 · exact absurd (in1282_conflict M hpm h67 h64 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h67 h66 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h68 | h68 | h68 · exact absurd (in1282_conflict M hpm h68 h65 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h68 h67 8 (by decide) (by decide)) (by decide) · -- 9-10 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h69 | h69 | h69 · exact absurd (in1282_conflict M hpm h69 h66 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h69 h68 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 16 (in1282_leaf M hpm 16 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h65 | exact h66 | exact h67 | exact h68 | exact h69)) · -- 3-12 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h70 | h70 | h70 · exact absurd (in1282_conflict M hpm h70 h65 3 (by decide) (by decide)) (by decide) · -- 4-5 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h71 | h71 | h71 · exact absurd (in1282_conflict M hpm h71 h70 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h72 | h72 | h72 · exact absurd (in1282_conflict M hpm h72 h71 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h73 | h73 | h73 · exact absurd (in1282_conflict M hpm h73 h64 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h73 h72 9 (by decide) (by decide)) (by decide) · -- 10-11 exact in1282_finish _ M b hsub hpm hconst hmax 17 (in1282_leaf M hpm 17 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h65 | exact h70 | exact h71 | exact h72 | exact h73)) · exact absurd (in1282_conflict M hpm h72 h1 13 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h74 | h74 | h74 · exact absurd (in1282_conflict M hpm h74 h64 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h74 h71 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h75 | h75 | h75 · exact absurd (in1282_conflict M hpm h75 h70 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h75 h74 8 (by decide) (by decide)) (by decide) · -- 9-10 exact in1282_finish _ M b hsub hpm hconst hmax 18 (in1282_leaf M hpm 18 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h65 | exact h70 | exact h71 | exact h74 | exact h75)) · -- 4-9 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h76 | h76 | h76 · exact absurd (in1282_conflict M hpm h76 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h76 h70 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h77 | h77 | h77 · exact absurd (in1282_conflict M hpm h77 h64 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h77 h76 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 10 1 9 11 rfl rfl rfl with h78 | h78 | h78 · exact absurd (in1282_conflict M hpm h78 h64 1 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h78 h70 9 (by decide) (by decide)) (by decide) · -- 10-11 exact in1282_finish _ M b hsub hpm hconst hmax 19 (in1282_leaf M hpm 19 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h65 | exact h70 | exact h76 | exact h77 | exact h78)) · -- 1-10 rcases in1282_branch M hsub' hpm 2 1 3 7 rfl rfl rfl with h79 | h79 | h79 · exact absurd (in1282_conflict M hpm h79 h64 1 (by decide) (by decide)) (by decide) · -- 2-3 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h80 | h80 | h80 · exact absurd (in1282_conflict M hpm h80 h79 3 (by decide) (by decide)) (by decide) · -- 4-5 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h81 | h81 | h81 · exact absurd (in1282_conflict M hpm h81 h80 5 (by decide) (by decide)) (by decide) · -- 6-7 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h82 | h82 | h82 · exact absurd (in1282_conflict M hpm h82 h81 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h83 | h83 | h83 · exact absurd (in1282_conflict M hpm h83 h81 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h83 h64 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 20 (in1282_leaf M hpm 20 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h79 | exact h80 | exact h81 | exact h82 | exact h83)) · exact absurd (in1282_conflict M hpm h82 h1 13 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h84 | h84 | h84 · exact absurd (in1282_conflict M hpm h84 h79 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h84 h81 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 9 4 8 10 rfl rfl rfl with h85 | h85 | h85 · exact absurd (in1282_conflict M hpm h85 h80 4 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h85 h84 8 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h85 h64 10 (by decide) (by decide)) (by decide) · -- 4-9 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h86 | h86 | h86 · exact absurd (in1282_conflict M hpm h86 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h86 h80 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 7 2 6 8 rfl rfl rfl with h87 | h87 | h87 · exact absurd (in1282_conflict M hpm h87 h79 2 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h87 h86 6 (by decide) (by decide)) (by decide) · -- 7-8 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h88 | h88 | h88 · exact absurd (in1282_conflict M hpm h88 h86 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h88 h64 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 21 (in1282_leaf M hpm 21 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h79 | exact h80 | exact h86 | exact h87 | exact h88)) · -- 2-7 rcases in1282_branch M hsub' hpm 3 2 4 12 rfl rfl rfl with h89 | h89 | h89 · exact absurd (in1282_conflict M hpm h89 h79 2 (by decide) (by decide)) (by decide) · -- 3-4 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h90 | h90 | h90 · exact absurd (in1282_conflict M hpm h90 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h90 h89 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h91 | h91 | h91 · exact absurd (in1282_conflict M hpm h91 h79 7 (by decide) (by decide)) (by decide) · -- 8-9 rcases in1282_branch M hsub' hpm 11 6 10 12 rfl rfl rfl with h92 | h92 | h92 · exact absurd (in1282_conflict M hpm h92 h90 6 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h92 h64 10 (by decide) (by decide)) (by decide) · -- 11-12 exact in1282_finish _ M b hsub hpm hconst hmax 22 (in1282_leaf M hpm 22 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h79 | exact h89 | exact h90 | exact h91 | exact h92)) · exact absurd (in1282_conflict M hpm h91 h1 13 (by decide) (by decide)) (by decide) · -- 3-12 rcases in1282_branch M hsub' hpm 4 3 5 9 rfl rfl rfl with h93 | h93 | h93 · exact absurd (in1282_conflict M hpm h93 h89 3 (by decide) (by decide)) (by decide) · -- 4-5 rcases in1282_branch M hsub' hpm 6 5 7 11 rfl rfl rfl with h94 | h94 | h94 · exact absurd (in1282_conflict M hpm h94 h93 5 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h94 h79 7 (by decide) (by decide)) (by decide) · -- 6-11 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h95 | h95 | h95 · exact absurd (in1282_conflict M hpm h95 h79 7 (by decide) (by decide)) (by decide) · -- 8-9 exact in1282_finish _ M b hsub hpm hconst hmax 23 (in1282_leaf M hpm 23 (by intro v hv; fin_cases v <;> first | (exact absurd hv (by decide)) | exact h1 | exact h64 | exact h79 | exact h89 | exact h93 | exact h94 | exact h95)) · exact absurd (in1282_conflict M hpm h95 h1 13 (by decide) (by decide)) (by decide) · -- 4-9 rcases in1282_branch M hsub' hpm 5 0 4 6 rfl rfl rfl with h96 | h96 | h96 · exact absurd (in1282_conflict M hpm h96 h1 0 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h96 h93 4 (by decide) (by decide)) (by decide) · -- 5-6 rcases in1282_branch M hsub' hpm 8 7 9 13 rfl rfl rfl with h97 | h97 | h97 · exact absurd (in1282_conflict M hpm h97 h79 7 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h97 h93 9 (by decide) (by decide)) (by decide) · exact absurd (in1282_conflict M hpm h97 h1 13 (by decide) (by decide)) (by decide)