yang
This project has not described itself yet.
Brought by drakestapleton
yang / proofs / WilsonReplicaPathPacking.lean
| 1 | -- SPDX-License-Identifier: Apache-2.0 |
| 2 | import WilsonReplicaFreeShell |
| 3 | |
| 4 | namespace YangMills.PeriodicWilson.PinnedFrame |
| 5 | open WilsonPolymer |
| 6 | noncomputable section |
| 7 | variable {l : ℕ+} (P : PinnedFrame l) |
| 8 | |
| 9 | /-- A walk from one free link to another. Each step names a Wilson face and |
| 10 | both incident free links, and the shared link is literally the next start. -/ |
| 11 | inductive FreeFacePath : Edge l → List (Face l) → Edge l → Prop where |
| 12 | | nil {a} : a ∉ P.edges → FreeFacePath a [] a |
| 13 | | cons {a b c p ps} : a ∈ P.freeFace p → b ∈ P.freeFace p → |
| 14 | FreeFacePath b ps c → FreeFacePath a (p :: ps) c |
| 15 | |
| 16 | /-- No split face is assumed: a changed label between two incident free links |
| 17 | contradicts uniformity, and equal labels propagate down the path. -/ |
| 18 | theorem path_crosses_freeBoundary (m : Edge l → Bool) {a b ps} |
| 19 | (path : P.FreeFacePath a ps b) (opp : m a ≠ m b) : |
| 20 | ∃ p ∈ ps, p ∈ P.freeBoundary m := by |
| 21 | classical |
| 22 | induction path with |
| 23 | | nil => exact (opp rfl).elim |
| 24 | | @cons a b c p ps ha hb _ ih => |
| 25 | by_cases hab : m a = m b |
| 26 | · obtain ⟨q, hq, hs⟩ := ih (fun h => opp (hab.trans h)) |
| 27 | exact ⟨q, List.mem_cons_of_mem _ hq, hs⟩ |
| 28 | · refine ⟨p, List.mem_cons_self, Finset.mem_filter.mpr ⟨Finset.mem_univ _, ?_⟩⟩ |
| 29 | rintro ⟨_, hu⟩ |
| 30 | exact hab ((hu a ha).trans (hu b hb).symm) |
| 31 | |
| 32 | /-- A certificate for any pinned frame: only face disjointness between paths |
| 33 | is needed. Paths may share endpoints or revisit their own faces. The concrete |
| 34 | periodic tree, arcs and endpoint labels must be supplied separately. -/ |
| 35 | theorem path_packing_le_freeBoundary (m : Edge l → Bool) {n : ℕ} |
| 36 | (a b : Fin n → Edge l) (ps : Fin n → List (Face l)) |
| 37 | (paths : ∀ i, P.FreeFacePath (a i) (ps i) (b i)) |
| 38 | (opposite : ∀ i, m (a i) ≠ m (b i)) |
| 39 | (separate : ∀ i j, i ≠ j → ∀ p ∈ ps i, p ∉ ps j) : |
| 40 | n ≤ (P.freeBoundary m).card := by |
| 41 | classical |
| 42 | choose f inPath inBoundary using fun i => P.path_crosses_freeBoundary m (paths i) (opposite i) |
| 43 | let pick (i : Fin n) : ↥(P.freeBoundary m) := ⟨f i, inBoundary i⟩ |
| 44 | have inj : Function.Injective pick := by |
| 45 | intro i j eq |
| 46 | by_contra neq |
| 47 | have same : f i = f j := congrArg Subtype.val eq |
| 48 | exact separate i j neq (f i) (inPath i) (same ▸ inPath j) |
| 49 | simpa using Fintype.card_le_of_injective pick inj |
| 50 | |
| 51 | /-- Removing inter-path disjointness really fails. On the side-two torus |
| 52 | with empty pins, repeat one genuine crossing of a single (0,1) plaquette |
| 53 | more times than there are faces in the whole mask boundary. -/ |
| 54 | theorem overlapping_paths_counterexample : |
| 55 | ∃ (n : ℕ) (m : Edge 2 → Bool) (a b : Fin n → Edge 2) (ps : Fin n → List (Face 2)), |
| 56 | (∀ i, (empty 2).FreeFacePath (a i) (ps i) (b i)) ∧ |
| 57 | (∀ i, m (a i) ≠ m (b i)) ∧ ¬ n ≤ ((empty 2).freeBoundary m).card := by |
| 58 | let p : Face 2 := (0, ⟨(0, 1), by decide⟩) |
| 59 | let a := (corners p).1 |
| 60 | let b := (corners p).2.2.2 |
| 61 | let m (e : Edge 2) : Bool := decide (e.2 = 0) |
| 62 | have path : (empty 2).FreeFacePath a [p] b := |
| 63 | .cons (by simp [a, freeFace, empty, faceEdges]) (by simp [b, freeFace, empty, faceEdges]) |
| 64 | (.nil (by simp [empty])) |
| 65 | exact ⟨((empty 2).freeBoundary m).card + 1, m, fun _ => a, fun _ => b, fun _ => [p], |
| 66 | fun _ => path, fun _ => by simp [m, a, b, p, corners], Nat.not_succ_le_self _⟩ |
| 67 | |
| 68 | #print axioms path_crosses_freeBoundary |
| 69 | #print axioms path_packing_le_freeBoundary |
| 70 | #print axioms overlapping_paths_counterexample |
| 71 | end |
| 72 | end YangMills.PeriodicWilson.PinnedFrame |