op_2378_petersen_weak_oddness_lower
theoremverified
Every even factor of the witness graph has at least two odd components.
Statement
theorem op_2378_petersen_weak_oddness_lower :
∀ H : SimpleGraph (Fin 10), is_even_factor op_2378_petersen_graph H →
2 ≤ H.oddComponents.ncard- Source
- step towards op_2378_partial_r_two
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 6
- op_2378_petersen_graph_basicThe witness graph has exactly the 15 listed edges and is cubic: every vertex has exactly 3 neighbours.
- is_even_factorAn even factor of a finite simple graph $G$ is a spanning subgraph $H$ of $G$ such that every vertex has even degree in $H$.
- op_2378_petersen_edgesThe 15-edge list of the Petersen graph on Fin 10: outer 5-cycle 0-1-2-3-4, inner 5-cycle 5-7-9-6-8, spokes 05,16,27,38,49.
- op_2378_petersen_graphThe Petersen graph on Fin 10, the graph whose edge set is op_2378_petersen_edges.
- suppThe support $\mathrm{supp}(v) \subseteq \mathrm{Fin}\,n$ consists of coordinates where either component of $v$ is nonzero; the…
- cFor a group $G$ and an element $s \in G$, the local count $c_G(s)$ is the cardinality of the set of elements $g \in G$ such that…
- Used by 2
- op_2378_partial_r_twoThere exists a snark G on a finite vertex type V such that the resistance of G is 2 and the weak oddness of G is 2.
- op_2378_petersen_weak_oddness_eqThe weak oddness of the witness graph equals 2.
The proof, explained
dummy
The finite search verification holds. automation
The kernel decision procedure evaluates the finite boolean search over all configurations of the first several edges.
decide +kerneldummy
We proceed by contradiction and case analysis.
let G' : SimpleGraph V := SimpleGraph.fromRel (fun u v => (u ∈ S ↔ v ∈ S)) have hle : H ≤ G' := fun u v h => (SimpleGraph.fromRel_adj _ _ _).2 ⟨H.ne_of_adj h, Or.inl (hS u v h)⟩ have hsupp : (G'.connectedComponentMk x).supp = S := by ext v rw [SimpleGraph.ConnectedComponent.mem_supp_iff, SimpleGraph.ConnectedComponent.eq] constructor · intro h obtain ⟨p⟩ := h.symm clear h induction p with | nil => exact hx | cons ha _ ih => rename_i a b _ _ apply ih rcases ((SimpleGraph.fromRel_adj _ _ _).1 ha).2 with h | h · exact h.1 (by assumption) · exact h.2 (by assumption) · intro hv by_cases hvx : v = x · subst hvx; rfl · exact (show G'.Adj v x from (SimpleGraph.fromRel_adj _ _ _).2 ⟨hvx, Or.inl (iff_of_true hv hx)⟩).reachable have h := (SimpleGraph.ConnectedComponent.odd_oddComponents_ncard_subset_supp (G := H) (h := hle) (G'.connectedComponentMk x)).2 (by rw [hsupp]; exact hodd) have hne : {c ∈ H.oddComponents | c.supp ⊆ (G'.connectedComponentMk x).supp}.ncard ≠ 0 := by intro h0 rw [h0] at h exact absurd h (by decide) obtain ⟨c, hc⟩ := Set.nonempty_of_ncard_ne_zero hne exact ⟨c, hc.1⟩ theorem in1203o_deg (H : SimpleGraph (Fin 10)) [DecidableRel H.Adj] (hle : H ≤ op_2378_petersen_graph) (v n1 n2 n3 : Fin 10) (h12 : n1 ≠ n2) (h13 : n1 ≠ n3) (h23 : n2 ≠ n3) (hN : ∀ w, op_2378_petersen_graph.Adj v w → w = n1 ∨ w = n2 ∨ w = n3) : Nat.card (H.neighborSet v) = (decide (H.Adj v n1)).toNat + (decide (H.Adj v n2)).toNat + (decide (H.Adj v n3)).toNat := by have e : H.neighborSet v = ↑(({n1, n2, n3} : Finset (Fin 10)).filter (fun w => H.Adj v w)) := by ext w simp only [SimpleGraph.mem_neighborSet, Finset.coe_filter, Finset.mem_insert, Finset.mem_singleton, Set.mem_ofPred_eq] exact ⟨fun h => ⟨hN w (hle h), h⟩, fun h => h.2⟩ rw [e, Nat.card_coe_set_eq, Set.ncard_coe_finset, Finset.card_filter, Finset.sum_insert (by simp [h12, h13]), Finset.sum_insert (by simp [h23]), Finset.sum_singleton] by_cases a1 : H.Adj v n1 <;> by_cases a2 : H.Adj v n2 <;> by_cases a3 : H.Adj v n3 <;> simp [a1, a2, a3, Bool.toNat] theorem in1203o_dsym (H : SimpleGraph (Fin 10)) [DecidableRel H.Adj] (x y : Fin 10) : decide (H.Adj x y) = decide (H.Adj y x) := by simp [H.adj_comm] theorem in1203o_getD (f : ℕ → Bool) : ∀ i, i < 15 → [f 0, f 1, f 2, f 3, f 4, f 5, f 6, f 7, f 8, f 9, f 10, f 11, f 12, f 13, f 14].getD i false = f i := by intro i hi interval_cases i <;> rfl theorem in1203o_UW : ∀ i, i < 15 → in1203o_U.getD i 0 < 10 ∧ in1203o_W.getD i 0 < 10 := by decide theorem in1203o_idx : ∀ u v : Fin 10, s(u, v) ∈ op_2378_petersen_edges → ∃ i, i < 15 ∧ ((in1203o_U.getD i 0 = u.val ∧ in1203o_W.getD i 0 = v.val) ∨ (in1203o_U.getD i 0 = v.val ∧ in1203o_W.getD i 0 = u.val)) := by decide theorem in1203o_cand : ∀ S ∈ in1203o_cands, Odd (Finset.univ.filter (fun x : Fin 10 => S.testBit x.val = true)).card ∧ ∃ x : Fin 10, S.testBit x.val = true := by decide /-- Every even factor of the Petersen witness graph has at least two odd components. -/ theorem op_2378_petersen_weak_oddness_lower : ∀ H : SimpleGraph (Fin 10), is_even_factor op_2378_petersen_graph H → 2 ≤ H.oddComponents.ncard := by intro H ⟨hle, hev⟩ classical have hpar : ¬ Odd H.oddComponents.ncard := by rw [SimpleGraph.odd_ncard_oddComponents, Nat.card_eq_fintype_card, Fintype.card_fin] decide let Uf : ℕ → Fin 10 := fun i => ⟨in1203o_U.getD i 0 % 10, Nat.mod_lt _ (by norm_num)⟩ let Wf : ℕ → Fin 10 := fun i => ⟨in1203o_W.getD i 0 % 10, Nat.mod_lt _ (by norm_num)⟩ let bf : ℕ → Bool := fun i => decide (H.Adj (Uf i) (Wf i)) have eb0 : bf 0 = decide (H.Adj 0 1) := rfl have eb1 : bf 1 = decide (H.Adj 0 4) := rfl have eb2 : bf 2 = decide (H.Adj 0 5) := rfl have eb3 : bf 3 = decide (H.Adj 1 2) := rfl have eb4 : bf 4 = decide (H.Adj 1 6) := rfl have eb5 : bf 5 = decide (H.Adj 2 3) := rfl have eb6 : bf 6 = decide (H.Adj 2 7) := rfl have eb7 : bf 7 = decide (H.Adj 3 4) := rfl have eb8 : bf 8 = decide (H.Adj 3 8) := rfl have eb9 : bf 9 = decide (H.Adj 4 9) := rfl have eb10 : bf 10 = decide (H.Adj 5 7) := rfl have eb11 : bf 11 = decide (H.Adj 5 8) := rfl have eb12 : bf 12 = decide (H.Adj 6 8) := rfl have eb13 : bf 13 = decide (H.Adj 6 9) := rfl have eb14 : bf 14 = decide (H.Adj 7 9) := rfl have g0 : Even ((bf 0).toNat + (bf 1).toNat + (bf 2).toNat) := by have h := hev 0 rw [in1203o_deg H hle 0 1 4 5 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [eb0, eb1, eb2] exact h have g1 : Even ((bf 0).toNat + (bf 3).toNat + (bf 4).toNat) := by have h := hev 1 rw [in1203o_deg H hle 1 0 2 6 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 1 0] at h rw [eb0, eb3, eb4] exact h have g2 : Even ((bf 3).toNat + (bf 5).toNat + (bf 6).toNat) := by have h := hev 2 rw [in1203o_deg H hle 2 1 3 7 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 2 1] at h rw [eb3, eb5, eb6] exact h have g3 : Even ((bf 5).toNat + (bf 7).toNat + (bf 8).toNat) := by have h := hev 3 rw [in1203o_deg H hle 3 2 4 8 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 3 2] at h rw [eb5, eb7, eb8] exact h have g4 : Even ((bf 1).toNat + (bf 7).toNat + (bf 9).toNat) := by have h := hev 4 rw [in1203o_deg H hle 4 0 3 9 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 4 0, in1203o_dsym H 4 3] at h rw [eb1, eb7, eb9] exact h have g5 : Even ((bf 2).toNat + (bf 10).toNat + (bf 11).toNat) := by have h := hev 5 rw [in1203o_deg H hle 5 0 7 8 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 5 0] at h rw [eb2, eb10, eb11] exact h have g6 : Even ((bf 4).toNat + (bf 12).toNat + (bf 13).toNat) := by have h := hev 6 rw [in1203o_deg H hle 6 1 8 9 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 6 1] at h rw [eb4, eb12, eb13] exact h have g7 : Even ((bf 6).toNat + (bf 10).toNat + (bf 14).toNat) := by have h := hev 7 rw [in1203o_deg H hle 7 2 5 9 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 7 2, in1203o_dsym H 7 5] at h rw [eb6, eb10, eb14] exact h have g8 : Even ((bf 8).toNat + (bf 11).toNat + (bf 12).toNat) := by have h := hev 8 rw [in1203o_deg H hle 8 3 5 6 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 8 3, in1203o_dsym H 8 5, in1203o_dsym H 8 6] at h rw [eb8, eb11, eb12] exact h have g9 : Even ((bf 9).toNat + (bf 13).toNat + (bf 14).toNat) := by have h := hev 9 rw [in1203o_deg H hle 9 4 6 7 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 9 4, in1203o_dsym H 9 6, in1203o_dsym H 9 7] at h rw [eb9, eb13, eb14] exact h have hok : in1203o_ok [bf 0, bf 1, bf 2, bf 3, bf 4, bf 5, bf 6, bf 7, bf 8, bf 9, bf 10, bf 11, bf 12, bf 13, bf 14] = true := in1203o_search (bf 0) (bf 1) (bf 2) g0 (bf 3) (bf 4) g1 (bf 5) (bf 6) g2 (bf 7) (bf 8) g3 (bf 9) g4 (bf 10) (bf 11) g5 (bf 12) g8 (bf 13) g6 (bf 14) g7 g9 have hne : H.oddComponents.Nonempty := by rw [in1203o_ok, List.any_eq_true] at hok obtain ⟨S, hS, hall⟩ := hok rw [List.all_eq_true] at hall obtain ⟨hodd, x, hx⟩ := in1203o_cand S hS refine in1203o_odd_of_closed H {y : Fin 10 | S.testBit y.val = true} ?_ ?_ x hx · intro u v huv have hg := hle huv simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hg obtain ⟨i, hi, hiuv⟩ := in1203o_idx u v hg.1 have hc := hall i (List.mem_range.2 hi) rw [in1203o_getD bf i hi] at hc obtain ⟨hU, hW⟩ := in1203o_UW i hi have hb : bf i = true := by simp only [bf, decide_eq_true_eq] rcases hiuv with ⟨h1, h2⟩ | ⟨h1, h2⟩ · have e1 : Uf i = u := Fin.ext (by simp only [Uf]; omega) have e2 : Wf i = v := Fin.ext (by simp only [Wf]; omega) rw [e1, e2]; exact huv · have e1 : Uf i = v := Fin.ext (by simp only [Uf]; omega) have e2 : Wf i = u := Fin.ext (by simp only [Wf]; omega) rw [e1, e2]; exact huv.symm rw [hb] at hc simp only [Bool.not_true, Bool.false_or, beq_iff_eq] at hc simp only [Set.mem_ofPred_eq] rcases hiuv with ⟨h1, h2⟩ | ⟨h1, h2⟩ · rw [← h1, ← h2, hc] · rw [← h1, ← h2, hc] · rw [Set.ncard_eq_toFinset_card'] simpa [Set.toFinset_ofPred] using hodd have h0 : H.oddComponents.ncard ≠ 0 := by intro h rw [Set.ncard_eq_zero (Set.toFinite _)] at h rw [h] at hne exact Set.not_nonempty_empty hne by_contra hlt push_neg at hlt interval_cases hc : H.oddComponents.ncard · exact h0 rfl · exact hpar (by decide)
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option maxRecDepth 100000set_option synthInstance.maxSize 100000000set_option synthInstance.maxHeartbeats 0def in1203o_U : List ℕ := [0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7]def in1203o_W : List ℕ := [1, 4, 5, 2, 6, 3, 7, 4, 8, 9, 7, 8, 8, 9, 9]def in1203o_cands : List ℕ := [31, 167, 313, 355, 595, 689, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512]def in1203o_ok (bs : List Bool) : Bool := in1203o_cands.any fun S => (List.range 15).all fun i => !(bs.getD i false) || (S.testBit (in1203o_U.getD i 0) == S.testBit (in1203o_W.getD i 0))def in1203o_tail (b0 : Bool) (b1 : Bool) (b2 : Bool) (b3 : Bool) (b4 : Bool) (b5 : Bool) (b6 : Bool) (b7 : Bool) : Prop := ∀ b8 : Bool, Even (b5.toNat + b7.toNat + b8.toNat) → ∀ b9 : Bool, Even (b1.toNat + b7.toNat + b9.toNat) → ∀ b10 : Bool, ∀ b11 : Bool, Even (b2.toNat + b10.toNat + b11.toNat) → ∀ b12 : Bool, Even (b8.toNat + b11.toNat + b12.toNat) → ∀ b13 : Bool, Even (b4.toNat + b12.toNat + b13.toNat) → ∀ b14 : Bool, Even (b6.toNat + b10.toNat + b14.toNat) → Even (b9.toNat + b13.toNat + b14.toNat) → in1203o_ok [b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14] = trueinstance in1203o_tail_dec (b0 : Bool) (b1 : Bool) (b2 : Bool) (b3 : Bool) (b4 : Bool) (b5 : Bool) (b6 : Bool) (b7 : Bool) : Decidable (in1203o_tail b0 b1 b2 b3 b4 b5 b6 b7) := inferInstanceAs (Decidable ( ∀ b8 : Bool, Even (b5.toNat + b7.toNat + b8.toNat) → ∀ b9 : Bool, Even (b1.toNat + b7.toNat + b9.toNat) → ∀ b10 : Bool, ∀ b11 : Bool, Even (b2.toNat + b10.toNat + b11.toNat) → ∀ b12 : Bool, Even (b8.toNat + b11.toNat + b12.toNat) → ∀ b13 : Bool, Even (b4.toNat + b12.toNat + b13.toNat) → ∀ b14 : Bool, Even (b6.toNat + b10.toNat + b14.toNat) → Even (b9.toNat + b13.toNat + b14.toNat) → in1203o_ok [b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14] = true))theorem in1203o_search : ∀ b0 : Bool, ∀ b1 : Bool, ∀ b2 : Bool, Even (b0.toNat + b1.toNat + b2.toNat) → ∀ b3 : Bool, ∀ b4 : Bool, Even (b0.toNat + b3.toNat + b4.toNat) → ∀ b5 : Bool, ∀ b6 : Bool, Even (b3.toNat + b5.toNat + b6.toNat) → ∀ b7 : Bool, in1203o_tail b0 b1 b2 b3 b4 b5 b6 b7 := by decide +kerneltheorem in1203o_odd_of_closed {V : Type*} [Finite V] (H : SimpleGraph V) (S : Set V) (hS : ∀ u v, H.Adj u v → (u ∈ S ↔ v ∈ S)) (hodd : Odd S.ncard) (x : V) (hx : x ∈ S) : H.oddComponents.Nonempty := by let G' : SimpleGraph V := SimpleGraph.fromRel (fun u v => (u ∈ S ↔ v ∈ S)) have hle : H ≤ G' := fun u v h => (SimpleGraph.fromRel_adj _ _ _).2 ⟨H.ne_of_adj h, Or.inl (hS u v h)⟩ have hsupp : (G'.connectedComponentMk x).supp = S := by ext v rw [SimpleGraph.ConnectedComponent.mem_supp_iff, SimpleGraph.ConnectedComponent.eq] constructor · intro h obtain ⟨p⟩ := h.symm clear h induction p with | nil => exact hx | cons ha _ ih => rename_i a b _ _ apply ih rcases ((SimpleGraph.fromRel_adj _ _ _).1 ha).2 with h | h · exact h.1 (by assumption) · exact h.2 (by assumption) · intro hv by_cases hvx : v = x · subst hvx; rfl · exact (show G'.Adj v x from (SimpleGraph.fromRel_adj _ _ _).2 ⟨hvx, Or.inl (iff_of_true hv hx)⟩).reachable have h := (SimpleGraph.ConnectedComponent.odd_oddComponents_ncard_subset_supp (G := H) (h := hle) (G'.connectedComponentMk x)).2 (by rw [hsupp]; exact hodd) have hne : {c ∈ H.oddComponents | c.supp ⊆ (G'.connectedComponentMk x).supp}.ncard ≠ 0 := by intro h0 rw [h0] at h exact absurd h (by decide) obtain ⟨c, hc⟩ := Set.nonempty_of_ncard_ne_zero hne exact ⟨c, hc.1⟩theorem in1203o_deg (H : SimpleGraph (Fin 10)) [DecidableRel H.Adj] (hle : H ≤ op_2378_petersen_graph) (v n1 n2 n3 : Fin 10) (h12 : n1 ≠ n2) (h13 : n1 ≠ n3) (h23 : n2 ≠ n3) (hN : ∀ w, op_2378_petersen_graph.Adj v w → w = n1 ∨ w = n2 ∨ w = n3) : Nat.card (H.neighborSet v) = (decide (H.Adj v n1)).toNat + (decide (H.Adj v n2)).toNat + (decide (H.Adj v n3)).toNat := by have e : H.neighborSet v = ↑(({n1, n2, n3} : Finset (Fin 10)).filter (fun w => H.Adj v w)) := by ext w simp only [SimpleGraph.mem_neighborSet, Finset.coe_filter, Finset.mem_insert, Finset.mem_singleton, Set.mem_ofPred_eq] exact ⟨fun h => ⟨hN w (hle h), h⟩, fun h => h.2⟩ rw [e, Nat.card_coe_set_eq, Set.ncard_coe_finset, Finset.card_filter, Finset.sum_insert (by simp [h12, h13]), Finset.sum_insert (by simp [h23]), Finset.sum_singleton] by_cases a1 : H.Adj v n1 <;> by_cases a2 : H.Adj v n2 <;> by_cases a3 : H.Adj v n3 <;> simp [a1, a2, a3, Bool.toNat]theorem in1203o_dsym (H : SimpleGraph (Fin 10)) [DecidableRel H.Adj] (x y : Fin 10) : decide (H.Adj x y) = decide (H.Adj y x) := by simp [H.adj_comm]theorem in1203o_getD (f : ℕ → Bool) : ∀ i, i < 15 → [f 0, f 1, f 2, f 3, f 4, f 5, f 6, f 7, f 8, f 9, f 10, f 11, f 12, f 13, f 14].getD i false = f i := by intro i hi interval_cases i <;> rfltheorem in1203o_UW : ∀ i, i < 15 → in1203o_U.getD i 0 < 10 ∧ in1203o_W.getD i 0 < 10 := by decidetheorem in1203o_idx : ∀ u v : Fin 10, s(u, v) ∈ op_2378_petersen_edges → ∃ i, i < 15 ∧ ((in1203o_U.getD i 0 = u.val ∧ in1203o_W.getD i 0 = v.val) ∨ (in1203o_U.getD i 0 = v.val ∧ in1203o_W.getD i 0 = u.val)) := by decidetheorem in1203o_cand : ∀ S ∈ in1203o_cands, Odd (Finset.univ.filter (fun x : Fin 10 => S.testBit x.val = true)).card ∧ ∃ x : Fin 10, S.testBit x.val = true := by decide/-- Every even factor of the Petersen witness graph has at least two odd components. -/theorem op_2378_petersen_weak_oddness_lower : ∀ H : SimpleGraph (Fin 10), is_even_factor op_2378_petersen_graph H → 2 ≤ H.oddComponents.ncard := by intro H ⟨hle, hev⟩ classical have hpar : ¬ Odd H.oddComponents.ncard := by rw [SimpleGraph.odd_ncard_oddComponents, Nat.card_eq_fintype_card, Fintype.card_fin] decide let Uf : ℕ → Fin 10 := fun i => ⟨in1203o_U.getD i 0 % 10, Nat.mod_lt _ (by norm_num)⟩ let Wf : ℕ → Fin 10 := fun i => ⟨in1203o_W.getD i 0 % 10, Nat.mod_lt _ (by norm_num)⟩ let bf : ℕ → Bool := fun i => decide (H.Adj (Uf i) (Wf i)) have eb0 : bf 0 = decide (H.Adj 0 1) := rfl have eb1 : bf 1 = decide (H.Adj 0 4) := rfl have eb2 : bf 2 = decide (H.Adj 0 5) := rfl have eb3 : bf 3 = decide (H.Adj 1 2) := rfl have eb4 : bf 4 = decide (H.Adj 1 6) := rfl have eb5 : bf 5 = decide (H.Adj 2 3) := rfl have eb6 : bf 6 = decide (H.Adj 2 7) := rfl have eb7 : bf 7 = decide (H.Adj 3 4) := rfl have eb8 : bf 8 = decide (H.Adj 3 8) := rfl have eb9 : bf 9 = decide (H.Adj 4 9) := rfl have eb10 : bf 10 = decide (H.Adj 5 7) := rfl have eb11 : bf 11 = decide (H.Adj 5 8) := rfl have eb12 : bf 12 = decide (H.Adj 6 8) := rfl have eb13 : bf 13 = decide (H.Adj 6 9) := rfl have eb14 : bf 14 = decide (H.Adj 7 9) := rfl have g0 : Even ((bf 0).toNat + (bf 1).toNat + (bf 2).toNat) := by have h := hev 0 rw [in1203o_deg H hle 0 1 4 5 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [eb0, eb1, eb2] exact h have g1 : Even ((bf 0).toNat + (bf 3).toNat + (bf 4).toNat) := by have h := hev 1 rw [in1203o_deg H hle 1 0 2 6 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 1 0] at h rw [eb0, eb3, eb4] exact h have g2 : Even ((bf 3).toNat + (bf 5).toNat + (bf 6).toNat) := by have h := hev 2 rw [in1203o_deg H hle 2 1 3 7 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 2 1] at h rw [eb3, eb5, eb6] exact h have g3 : Even ((bf 5).toNat + (bf 7).toNat + (bf 8).toNat) := by have h := hev 3 rw [in1203o_deg H hle 3 2 4 8 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 3 2] at h rw [eb5, eb7, eb8] exact h have g4 : Even ((bf 1).toNat + (bf 7).toNat + (bf 9).toNat) := by have h := hev 4 rw [in1203o_deg H hle 4 0 3 9 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 4 0, in1203o_dsym H 4 3] at h rw [eb1, eb7, eb9] exact h have g5 : Even ((bf 2).toNat + (bf 10).toNat + (bf 11).toNat) := by have h := hev 5 rw [in1203o_deg H hle 5 0 7 8 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 5 0] at h rw [eb2, eb10, eb11] exact h have g6 : Even ((bf 4).toNat + (bf 12).toNat + (bf 13).toNat) := by have h := hev 6 rw [in1203o_deg H hle 6 1 8 9 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 6 1] at h rw [eb4, eb12, eb13] exact h have g7 : Even ((bf 6).toNat + (bf 10).toNat + (bf 14).toNat) := by have h := hev 7 rw [in1203o_deg H hle 7 2 5 9 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 7 2, in1203o_dsym H 7 5] at h rw [eb6, eb10, eb14] exact h have g8 : Even ((bf 8).toNat + (bf 11).toNat + (bf 12).toNat) := by have h := hev 8 rw [in1203o_deg H hle 8 3 5 6 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 8 3, in1203o_dsym H 8 5, in1203o_dsym H 8 6] at h rw [eb8, eb11, eb12] exact h have g9 : Even ((bf 9).toNat + (bf 13).toNat + (bf 14).toNat) := by have h := hev 9 rw [in1203o_deg H hle 9 4 6 7 (by decide) (by decide) (by decide) (by intro w hw; simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hw; revert w; decide)] at h rw [in1203o_dsym H 9 4, in1203o_dsym H 9 6, in1203o_dsym H 9 7] at h rw [eb9, eb13, eb14] exact h have hok : in1203o_ok [bf 0, bf 1, bf 2, bf 3, bf 4, bf 5, bf 6, bf 7, bf 8, bf 9, bf 10, bf 11, bf 12, bf 13, bf 14] = true := in1203o_search (bf 0) (bf 1) (bf 2) g0 (bf 3) (bf 4) g1 (bf 5) (bf 6) g2 (bf 7) (bf 8) g3 (bf 9) g4 (bf 10) (bf 11) g5 (bf 12) g8 (bf 13) g6 (bf 14) g7 g9 have hne : H.oddComponents.Nonempty := by rw [in1203o_ok, List.any_eq_true] at hok obtain ⟨S, hS, hall⟩ := hok rw [List.all_eq_true] at hall obtain ⟨hodd, x, hx⟩ := in1203o_cand S hS refine in1203o_odd_of_closed H {y : Fin 10 | S.testBit y.val = true} ?_ ?_ x hx · intro u v huv have hg := hle huv simp only [op_2378_petersen_graph, SimpleGraph.fromEdgeSet_adj, Finset.mem_coe] at hg obtain ⟨i, hi, hiuv⟩ := in1203o_idx u v hg.1 have hc := hall i (List.mem_range.2 hi) rw [in1203o_getD bf i hi] at hc obtain ⟨hU, hW⟩ := in1203o_UW i hi have hb : bf i = true := by simp only [bf, decide_eq_true_eq] rcases hiuv with ⟨h1, h2⟩ | ⟨h1, h2⟩ · have e1 : Uf i = u := Fin.ext (by simp only [Uf]; omega) have e2 : Wf i = v := Fin.ext (by simp only [Wf]; omega) rw [e1, e2]; exact huv · have e1 : Uf i = v := Fin.ext (by simp only [Uf]; omega) have e2 : Wf i = u := Fin.ext (by simp only [Wf]; omega) rw [e1, e2]; exact huv.symm rw [hb] at hc simp only [Bool.not_true, Bool.false_or, beq_iff_eq] at hc simp only [Set.mem_ofPred_eq] rcases hiuv with ⟨h1, h2⟩ | ⟨h1, h2⟩ · rw [← h1, ← h2, hc] · rw [← h1, ← h2, hc] · rw [Set.ncard_eq_toFinset_card'] simpa [Set.toFinset_ofPred] using hodd have h0 : H.oddComponents.ncard ≠ 0 := by intro h rw [Set.ncard_eq_zero (Set.toFinite _)] at h rw [h] at hne exact Set.not_nonempty_empty hne by_contra hlt push_neg at hlt interval_cases hc : H.oddComponents.ncard · exact h0 rfl · exact hpar (by decide)