Yang–Mills: the 2026 Lean construction, rerun and read; the mass gap still open
OpenAI's 2026 Lean construction of 4D Yang–Mills as the expert group keeps it: settle what it proves, rerun it, read it; uniqueness and the mass gap are open, and Clay's problem unsolved

| 1 | import YM.Branch.Uniform |
| 2 | import YM.Lattice.Foliation |
| 3 | |
| 4 | /-! |
| 5 | # Compare planes in the axial gauge |
| 6 | |
| 7 | but instead recurse on slabs. Keep all cover sites and faces. |
| 8 | No restriction on curvature, root chosen existentially for a specified order. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | noncomputable section |
| 13 | namespace YM.Axial |
| 14 | |
| 15 | open Function Filter Set NormedSpace Submodule Lattice Wilson |
| 16 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators |
| 17 | |
| 18 | variable {G : Gauge} |
| 19 | |
| 20 | /-- sum over all internal positive links. -/ |
| 21 | def perEdge (X : Finset Cover) (U : CoverConfig G) (x : Cover) (i : Axis) : ℝ := |
| 22 | if x+step i ∈ X then G.chord (U (x,i)) else 0 |
| 23 | |
| 24 | def edges (X : Finset Cover) (U : CoverConfig G) : ℝ := ∑ x ∈ X, ∑ i, perEdge X U x i |
| 25 | |
| 26 | /-- faces fully inside. -/ |
| 27 | def face (X : Finset Cover) (U : CoverConfig G) (x : Cover) (p : PlaqAxes) := |
| 28 | if ∀ y ∈ visits x (square p.val.1 p.val.2), y ∈ X then G.chord (faceValue U (x,p)) else 0 |
| 29 | |
| 30 | def field (X : Finset Cover) (U : CoverConfig G) (x : Cover) := ∑ p, face X U x p |
| 31 | |
| 32 | def faces (X : Finset Cover) (U : CoverConfig G) := ∑ x ∈ X, field X U x |
| 33 | |
| 34 | lemma face_nonneg (X : Finset Cover) (U : CoverConfig G) (x p) : 0 ≤ face X U x p := by |
| 35 | unfold face; split |
| 36 | · exact G.chord_nonneg _ |
| 37 | rfl |
| 38 | |
| 39 | lemma field_nonneg (X : Finset Cover) (U : CoverConfig G) (x) : 0 ≤ field X U x := Finset.sum_nonneg fun _ _ ↦ face_nonneg .. |
| 40 | |
| 41 | lemma faces_nonneg (X : Finset Cover) (U : CoverConfig G) : 0 ≤ faces X U := Finset.sum_nonneg fun _ _ ↦ field_nonneg .. |
| 42 | |
| 43 | @[simp] lemma face_gauge_symm (t : Cover → G.El) (X : Finset Cover) (U x p) : |
| 44 | face X (gauge t U) x p = face X U x p := by simp only [face,face_gauge,G.chord_conj] |
| 45 | |
| 46 | @[simp] lemma faces_gauge_symm (t : Cover → G.El) (X : Finset Cover) (U) : |
| 47 | faces X (gauge t U) = faces X U := by simp_rw [faces,field,face_gauge_symm] |
| 48 | |
| 49 | lemma faces_pins {r o l j} (hj : j ∉ l) (U : CoverConfig G) : |
| 50 | ∑ z ∈ layers r, faces (slab r (update o j z) l) U ≤ faces (slab r o (l++[j])) U := by |
| 51 | unfold faces |
| 52 | rw [slab_sum r o hj] |
| 53 | refine Finset.sum_le_sum fun i hi => Finset.sum_le_sum fun x hx => Finset.sum_le_sum fun p hp => ?_ |
| 54 | unfold face; split_ifs with h h' h' |
| 55 | · rfl |
| 56 | · exact False.elim <| h' <| fun y hy => ((lower_pin hj _).mp (h _ hy)).1 |
| 57 | · exact G.chord_nonneg _ |
| 58 | rfl |
| 59 | |
| 60 | lemma squares (U : CoverConfig G) {x i j} (hne : i ≠ j) (X : Finset Cover) (hx : x ∈ X) |
| 61 | (hi : x+step i ∈ X) (hj : x+step j ∈ X) (hij : x+step i+step j ∈ X) : |
| 62 | G.chord (travel U x (square i j)) ≤ field X U x := by |
| 63 | let p := PlaqAxes.ordered i j hne |
| 64 | have he := Finset.single_le_sum (f := fun f => face X U x f) (fun k _ => face_nonneg ..) (Finset.mem_univ p) |
| 65 | refine le_trans (le_of_eq ?_) he |
| 66 | rcases lt_or_gt_of_ne hne with h|h |
| 67 | · simp [face,p, PlaqAxes.ordered,h.le, square_corners,hx,hi,hj,hij,faceValue] |
| 68 | have hh : x+step j+step i ∈ X := by rw [add_right_comm]; exact hij |
| 69 | have ha : travel U x (square j i) = (travel U x (square i j))⁻¹ := oriented_swap (posDir i) (posDir j) x U |
| 70 | simp [face,p,PlaqAxes.ordered,h.le,square_corners,hh,hx,hi,hj,faceValue,ha] |
| 71 | |
| 72 | lemma variation (U : CoverConfig G) {x i j} (h : U (x,j)=1) (h' : U (x+step i,j)=1) : |
| 73 | |G.chord (U (x+step j,i)) - G.chord (U (x,i))| ≤ G.chord (travel U x (square i j)) := by |
| 74 | have hi : x+step i+step j-step i=x+step j := by abel |
| 75 | have hj : x+step i+step j+-step i=x+step j := by abel |
| 76 | simp only [square,travel,Step.vec_pos,Step.vec_neg,Step.pos_read,Step.neg_read,h,h',hi,hj, add_sub_cancel_right, inv_one,mul_one,one_mul] |
| 77 | let a := U (x,i) |
| 78 | let b := U (x+step j,i) |
| 79 | have he := G.chord_triangle (a*b⁻¹) b |
| 80 | rw [inv_mul_cancel_right] at he |
| 81 | have hh := G.chord_triangle (a*b⁻¹)⁻¹ a |
| 82 | rw [G.chord_inv,show (a*b⁻¹)⁻¹*a=b by group] at hh |
| 83 | apply abs_le.mpr |
| 84 | change _ ≤ G.chord b - G.chord a ∧ G.chord b - G.chord a ≤ G.chord (a*b⁻¹) |
| 85 | exact ⟨by change - G.chord (a*b⁻¹) ≤ _; linarith, by linarith⟩ |
| 86 | |
| 87 | lemma slide_le (r : ℕ) (o : Cover) {l j} (hj : j ∉ l) (U : CoverConfig G) |
| 88 | (hs : ∀ x ∈ slab r o (l++[j]), x+step j ∈ slab r o (l++[j]) → U (x,j) = 1) |
| 89 | {z : ℤ} (hz : z ∈ layers r) (ht : z+1 ∈ layers r) : |
| 90 | |edges (slab r (update o j (z+1)) l) U-edges (slab r (update o j z) l) U| |
| 91 | ≤ 4*∑ x ∈ slab r (update o j z) l, field (slab r o (l++[j])) U x := by |
| 92 | let X := slab r o (l++[j]) |
| 93 | let P := slab r (update o j z) l |
| 94 | let Q := slab r (update o j (z+1)) l |
| 95 | have he : P.image (·+step j)=Q := by |
| 96 | simpa only [add_sub_cancel_left, one_smul] using |
| 97 | (slab_update_image (r:=r) (o:=o) hj _ _ hz ht) |
| 98 | have hh (x : Cover) : x ∈ P ↔ x+step j ∈ Q := by rw [← he]; simp |
| 99 | have hp : P ⊆ X := fun i hi => ((lower_pin hj _).mp hi).1 |
| 100 | have hq : Q ⊆ X := fun i hi => ((lower_pin hj _).mp hi).1 |
| 101 | have sum (f : Cover → ℝ) : (∑ x ∈ Q, f x)=∑ x ∈ P, f (x+step j) := by |
| 102 | rw [← he, Finset.sum_image]; simp |
| 103 | have hs' (x) (hx : x ∈ P) (i : Axis) : |perEdge Q U (x+step j) i-perEdge P U x i| ≤ field X U x := by |
| 104 | have ha : x+step j ∈ Q := (hh x).mp hx |
| 105 | by_cases h0 : x+step i ∈ P |
| 106 | · have h1 := (hh (x+step i)).mp h0 |
| 107 | have h2 : x+step j+step i∈ Q := by rw [add_right_comm]; exact h1 |
| 108 | unfold perEdge; rw [if_pos h2,if_pos h0]; exact (variation U (hs _ (hp hx) (hq ha)) (hs _ (hp h0) (hq h1))).trans |
| 109 | (squares U (axis_orthogonal hx h0 hj rfl) _ (hp hx) (hp h0) (hq ha) (hq h1)) |
| 110 | have h1 : x+step j+step i ∉ Q := by rw [add_right_comm,← hh]; exact h0 |
| 111 | simp only [perEdge,if_neg h0,if_neg h1,sub_zero,abs_zero]; exact field_nonneg .. |
| 112 | change |edges Q U-edges P U| ≤ _ |
| 113 | unfold edges; rw [sum, ← Finset.sum_sub_distrib, Finset.mul_sum] |
| 114 | refine (Finset.abs_sum_le_sum_abs _ _).trans (Finset.sum_le_sum fun x hx => ?_) |
| 115 | rw [← Finset.sum_sub_distrib] |
| 116 | apply (Finset.abs_sum_le_sum_abs _ _).trans |
| 117 | apply le_trans (Finset.sum_le_sum fun i _ ↦ hs' x hx i) |
| 118 | simp [Axis,X] |
| 119 | |
| 120 | lemma window_le {r o l j} (hj : j ∉ l) (U : CoverConfig G) |
| 121 | (hs : ∀ x ∈ slab r o (l++[j]), x+step j ∈ slab r o (l++[j]) → U (x,j) = 1) |
| 122 | {z u : ℤ} (hz : z ∈ layers r) (hu : u ∈ layers r) : |
| 123 | |edges (slab r (update o j z) l) U-edges (slab r (update o j u) l) U| |
| 124 | ≤ 4*faces (slab r o (l++[j])) U := by |
| 125 | let X := slab r o (l++[j]) |
| 126 | let C z := slab r (update o j z) l |
| 127 | let E z := edges (C z) U |
| 128 | let f (z) := 4*∑ i ∈ C z, field X U i |
| 129 | have ha (z u : ℤ) (hz : z ∈ layers r) (hu : u ∈ layers r) (h : z ≤ u) : |
| 130 | |E z-E u| ≤ 4*faces X U := by |
| 131 | have hy : Finset.Ico z u ⊆ layers r := by |
| 132 | intro i hi; obtain ⟨ha,hb⟩ := Finset.mem_Ico.mp hi |
| 133 | exact Finset.mem_Icc.mpr ⟨le_trans (Finset.mem_Icc.mp hz).1 ha, le_trans hb.le (Finset.mem_Icc.mp hu).2⟩ |
| 134 | have he : |E z-E u| ≤ ∑ k ∈ Finset.Ico z u, f k := by |
| 135 | -- reuse successor inequality |
| 136 | have ht : (∑ k ∈ Finset.Ico z u,(E k-E (k+1))) = E z-E u := by |
| 137 | clear hu hy hs |
| 138 | induction u,h using Int.leInduction with |
| 139 | | base => simp |
| 140 | | succ k hx ih => |
| 141 | rw [show Finset.Ico z (k+1) = insert k (Finset.Ico z k) by |
| 142 | ext; simp; omega, Finset.sum_insert (by simp),ih] |
| 143 | abel |
| 144 | rw [← ht]; apply (Finset.abs_sum_le_sum_abs _ _).trans (Finset.sum_le_sum fun i hi => ?_) |
| 145 | rw [abs_sub_comm]; apply slide_le r o hj U hs (hy hi) |
| 146 | unfold layers; have H := hy hi; simp only [layers,Finset.mem_Icc, Finset.mem_Ico] at H hu hi ⊢; omega |
| 147 | have hsum : faces X U = ∑ i ∈ layers r, ∑ x ∈ C i, field X U x := slab_sum _ _ hj _ |
| 148 | rw [hsum,Finset.mul_sum]; apply he.trans; exact Finset.sum_le_sum_of_subset_of_nonneg hy fun i _ _ => mul_nonneg (by linarith) (Finset.sum_nonneg fun k _ => field_nonneg ..) |
| 149 | change |E z-E u|≤_ |
| 150 | rcases le_total z u with h|h |
| 151 | · exact ha z u hz hu h |
| 152 | rw [abs_sub_comm]; exact ha u z hu hz h |
| 153 | end YM.Axial |