Lean / Reader
Lean readerHohnStatement.lean
Lean 4 Web has Mathlib, so it can check files that import only Mathlib. This one also imports HohnAlign, HohnCompact, HohnWord, which it does not have: you can read it there, but it will not check. Build the project itself to check it.
import HohnAlignimport HohnCompactimport HohnWordnamespace HohnGraph/-- Keeping the first m moves of a longer simple shared-triple path. -/def SharedPath.truncate {m n : ℕ} (P : SharedPath n) (hm : m ≤ n) : SharedPath m wherevertex := P.vertexvalid j hj := P.valid j (hj.trans hm)distinct a b hab hb := P.distinct a b hab (hb.trans hm)adjacent j hj := P.adjacent j (hj.trans_le hm)/-- Uniform bound on the number of quadruples in any simple path in Hohn'sgraph. Three entries may be matched in any order, with multiplicities. -/theorem bounded_sphere_chains : ∃ B : ℕ, ∀ n : ℕ, SharedPath n → n+1 ≤ B := byclassicalhave fail : ¬ ∀ n, Nonempty (SharedPath n) := byintro hsobtain ⟨w,hw,hr⟩ := word_from_encoded_paths (fun n => (hs n).map SharedPath.encode)exact word_impossible w hw hrpush_neg at failobtain ⟨B,hB⟩ := failrefine ⟨B,fun n P => ?_⟩by_contra! largehave short := P.truncate (show B≤n by omega)exact hB.false short#print axioms bounded_sphere_chainsend HohnGraph