Lean / Reader
Lean reader

CutConsequences.lean

44 lines2 declarationsno sorryimports TwoCopy OddCycles

Lean 4 Web has Mathlib, so it can check files that import only Mathlib. This one also imports TwoCopy, OddCycles, which it does not have: you can read it there, but it will not check. Build the project itself to check it.

  1. import TwoCopy
  2. import OddCycles
  3. open SimpleGraph SimpleGraph.Walk
  4. namespace TerminalCycles
  5. universe u
  6. variable {V W Z : Type u} [Finite V] [Finite W]
  7. /-- The arithmetic and odd-cycle conclusions of iis:2611.00573 now follow
  8. from the structural hypotheses, with no sum test assumed. -/
  9. theorem cut_side_conclusions (A : SimpleGraph V) (G : SimpleGraph Z)
  10. (f : A ↪g G) {a x : V} (ne : x ≠ a) (da : 2 ≤ valence A a) (dx : 2 ≤ valence A x)
  11. (rest : ∀ v, v ≠ a → v ≠ x → 3 ≤ valence A v) (balanced : Nat.card Z=2*Nat.card V+1)
  12. (absent : ¬ hasPowerCycle G) (minimal : smaller_graphs_have_cycle G) :
  13. sumTests (lengths A a x) ∧ (∃ v, ∃ p : A.Walk v v, p.IsCycle ∧ p.length % 2 = 1) ∧
  14. ∀ r : Fin 3, ¬ ∀ i ∈ lengths A a x, i % 3 = r.val := by
  15. have tests := cut_side_sum_tests A G f ne da dx rest balanced absent minimal
  16. exact ⟨tests,odd_cycle_of_sum_tests tests, no_constant_residue _ tests⟩
  17. /-- The two original sides provide two vertex-disjoint odd simple cycles
  18. in the ambient graph. Their disjointness is about the support after embedding. -/
  19. theorem cut_disjoint_odd_cycles (A : SimpleGraph V) (B : SimpleGraph W) (G : SimpleGraph Z)
  20. (f : A ↪g G) (g : B ↪g G) (apart : ∀ v w, f v ≠ g w)
  21. {a x : V} {b y : W} (left : TerminalSide A a x) (right : TerminalSide B b y)
  22. (da : 2 ≤ valence A a) (db : 2 ≤ valence B b)
  23. (balanceA : Nat.card Z=2*Nat.card V+1) (balanceB : Nat.card Z=2*Nat.card W+1)
  24. (minimal : smaller_graphs_have_cycle G) :
  25. ∃ (v w : Z) (p : G.Walk v v) (q : G.Walk w w), p.IsCycle ∧ q.IsCycle ∧
  26. p.length%2=1 ∧ q.length%2=1 ∧ ∀ z ∈ p.support, z ∉ q.support := by
  27. have testA : sumTests (lengths A a x) := mixed_sum_tests A A G left left da da (by omega) minimal
  28. have testB : sumTests (lengths B b y) := mixed_sum_tests B B G right right db db (by omega) minimal
  29. obtain ⟨v,p,hp,pos⟩ := odd_cycle_of_sum_tests testA
  30. obtain ⟨w,q,hq,odd⟩ := odd_cycle_of_sum_tests testB
  31. refine ⟨f v,g w,p.map f.toHom,q.map g.toHom,hp.map f.injective,hq.map g.injective,by simpa using pos,by simpa using odd,?_⟩
  32. intro z h1 h2
  33. rw [Walk.support_map,List.mem_map] at h1 h2
  34. obtain ⟨i,_,hi⟩ := h1
  35. obtain ⟨j,_,hj⟩ := h2
  36. exact apart i j (hi.trans hj.symm)
  37. end TerminalCycles