Lean / Reader
Lean reader

HohnStatement.lean

31 lines2 declarationsno sorryimports HohnAlign HohnCompact HohnWord

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.

  1. import HohnAlign
  2. import HohnCompact
  3. import HohnWord
  4. namespace HohnGraph
  5. /-- Keeping the first m moves of a longer simple shared-triple path. -/
  6. def SharedPath.truncate {m n : ℕ} (P : SharedPath n) (hm : m ≤ n) : SharedPath m where
  7. vertex := P.vertex
  8. valid j hj := P.valid j (hj.trans hm)
  9. distinct a b hab hb := P.distinct a b hab (hb.trans hm)
  10. adjacent j hj := P.adjacent j (hj.trans_le hm)
  11. /-- Uniform bound on the number of quadruples in any simple path in Hohn's
  12. graph. Three entries may be matched in any order, with multiplicities. -/
  13. theorem bounded_sphere_chains : ∃ B : ℕ, ∀ n : ℕ, SharedPath n → n+1 ≤ B := by
  14. classical
  15. have fail : ¬ ∀ n, Nonempty (SharedPath n) := by
  16. intro hs
  17. obtain ⟨w,hw,hr⟩ := word_from_encoded_paths (fun n => (hs n).map SharedPath.encode)
  18. exact word_impossible w hw hr
  19. push_neg at fail
  20. obtain ⟨B,hB⟩ := fail
  21. refine ⟨B,fun n P => ?_⟩
  22. by_contra! large
  23. have short := P.truncate (show B≤n by omega)
  24. exact hB.false short
  25. #print axioms bounded_sphere_chains
  26. end HohnGraph