Lean / Reader
Lean readerSignedStatement.lean
Lean 4 Web has Mathlib, so it can check files that import only Mathlib. This one also imports SignedTables, SignedPolynomials, which it does not have: you can read it there, but it will not check. Build the project itself to check it.
import SignedTablesimport SignedPolynomialsnamespace SignedExample/-- The two explicitly given signings have equally many proper signedcolorings for every palette size and parity. -/theorem colorings_equal (odd : Bool) (m : ℕ) :Fintype.card (SignedColoring first odd m .univ) =Fintype.card (SignedColoring second odd m .univ) := bysimpa only [signed_coloring_count] using signed_counts_equal odd m/-- Counterexample to Greaves, Syatriadi, and Utomo, Conjecture 2.7.The two evaluation laws uniquely specify the even and odd countingpolynomials, respectively. -/theorem cochromatic_complete_graphs :¬ SwitchingIso first second ∧(∀ odd m, Fintype.card (SignedColoring first odd m .univ) =Fintype.card (SignedColoring second odd m .univ)) ∧(∀ E₁ E₂ O₁ O₂, Represents first false E₁ → Represents second false E₂ →Represents first true O₁ → Represents second true O₂ → E₁ = E₂ ∧ O₁ = O₂) := byrefine ⟨first_not_switchingIso_second, colorings_equal, ?_⟩intro E₁ E₂ O₁ O₂ hE₁ hE₂ hO₁ hO₂exact ⟨polynomial_eq_of_palette_counts hE₁ hE₂ (signed_counts_equal false),polynomial_eq_of_palette_counts hO₁ hO₂ (signed_counts_equal true)⟩#print axioms cochromatic_complete_graphsend SignedExample