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.AnalyticBridge.RELATIVE_LOGDET_TRACE.Corners |
| 2 | import YM.Next.FOUNDATIONS.JetReads |
| 3 | |
| 4 | /-! |
| 5 | # Address of a full precision entry |
| 6 | |
| 7 | Checks at the original tag sites, both endpoint requirements, and *both* |
| 8 | positive and negative answers for holes. V tests do not move with any |
| 9 | interpolated mask. In particular when a rotated row of Q is used its read uses |
| 10 | the actual original physical choices. No support assumption about a truncated |
| 11 | path entering through a covariant matrix derivative; prove it below for the |
| 12 | true branch jet. We treat the trunk mask bits as data here: a local agreement |
| 13 | condition, not a test that those bits constitute a valid global forest. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.AnalyticBridge.RelativeLogdet |
| 18 | open Function Filter Set Matrix Lattice RG Wilson Pressure Tree Precision |
| 19 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius |
| 20 | |
| 21 | variable {c f : Side} |
| 22 | |
| 23 | def Shields (Z : Support c) (o : Site c) (t : ℕ) := ∀ s : Site c,separation o s ≤ t → s∈Z |
| 24 | namespace Shields |
| 25 | variable {Z : Support c} {o i : Site c} {d t : ℕ} |
| 26 | lemma shift (h : Shields Z o t) (he : separation o i+d ≤ t) : Shields Z i d := |
| 27 | fun j hj => h j ((separation_triangle o i j).trans ((Nat.add_le_add_left hj _).trans he)) |
| 28 | lemma shrink (h : Shields Z o t) (he : d ≤ t) : Shields Z o d := fun i hh => h i (hh.trans he) |
| 29 | lemma center (h : Shields Z o t) : o∈Z := h _ (by simp) |
| 30 | lemma full {ι : Type} (p : ι → Site c) (i : ι) (l B : ℕ) (h : lens p l B i ⊆ Z) : Shields Z (p i) (l*B) := |
| 31 | fun _ hx => h ((lens_spec _).2 hx) |
| 32 | end Shields |
| 33 | |
| 34 | namespace Physical |
| 35 | open Next.SectorChange Next.Fluctuations YM.Push.SectorMeasure.Oriented |
| 36 | open Work.E03 |
| 37 | variable {G : Gauge} {S : StepData c f} {F H : Forest S.ratio} {A A' : Stores S} {k k' : S.Choices} {x : ℝ} |
| 38 | |
| 39 | lemma pin_diam (i : Bond c) {x y : Site c} (hx : x∈pinPos i) (hy : y∈pinPos i) : separation x y ≤ 2 := by |
| 40 | have ht (z : Site c) (hz : z∈pinPos i) : separation i.1 z ≤ 1 := by |
| 41 | simp only [pinPos,Finset.mem_singleton,Finset.mem_insert] at hz; rcases hz with hz|hz <;> rw [hz] |
| 42 | · simp |
| 43 | exact sep_step i.1 i.2 |
| 44 | exact (separation_triangle x i.1 y).trans (Nat.add_le_add ((separation_comm ..).trans_le (ht _ hx)) (ht _ hy)) |
| 45 | |
| 46 | private lemma touch {c f : Side} (p : Site f → Site c) (hp : ∀ i (a : Axis), separation (p i) (p (i+Lattice.step a)) ≤ 1) |
| 47 | (i : Cell f) (x : Site f) (hx : x∈touched i) : separation (p i.1) (p x) ≤ 4 := by |
| 48 | have h (w : Walk) (v : Site f) (hv : x∈visits v w) : separation (p v) (p x) ≤ w.length := by |
| 49 | induction w generalizing v with |
| 50 | | nil => rw [show x=v from List.mem_singleton.mp hv]; simp |
| 51 | | cons d w ih => |
| 52 | simp only [visits,List.mem_cons] at hv |
| 53 | rcases hv with h|h |
| 54 | · rw [h]; simp |
| 55 | have he : separation (p v) (p (v+d.vec)) ≤ 1 := sep_walk p hp _ [d] |
| 56 | have hf := ih (v+d.vec) h |
| 57 | exact (separation_triangle _ (p (v+d.vec)) _).trans ((Nat.add_le_add he hf).trans (by simp [Nat.add_comm])) |
| 58 | exact h _ _ (List.mem_toFinset.mp hx) |
| 59 | lemma inspect_shield {Z : Support c} {x : Site c} (he : Shields Z x 8) : inspected {x} ⊆ Z := by |
| 60 | intro y hy |
| 61 | rw [inspected, Finset.mem_union] at hy |
| 62 | rcases hy with h|h |
| 63 | · rw [Finset.mem_singleton.mp h]; exact he.center |
| 64 | obtain ⟨q,-,hq⟩ := Finset.mem_biUnion.mp h |
| 65 | split at hq |
| 66 | next hg => simp at hq |
| 67 | next hg => |
| 68 | have hs : x∈touched q := by simpa using hg |
| 69 | exact he y ((separation_triangle _ q.1 _).trans (Nat.add_le_add ((separation_comm ..).trans_le (touch id sep_step q _ hs)) (touch id sep_step q _ hq))) |
| 70 | lemma start_diam (i : Cell f) {x y} (hx : x∈startPos S i) (hy : y∈startPos S i) : separation x y ≤ 8 := by |
| 71 | obtain ⟨x,hx',rfl⟩ := Finset.mem_image.mp hx |
| 72 | obtain ⟨y,hy',rfl⟩ := Finset.mem_image.mp hy |
| 73 | have he := touch _ (parent_step S) i |
| 74 | exact (separation_triangle _ (S.ratio.parent i.1) _).trans (Nat.add_le_add |
| 75 | ((separation_comm ..).trans_le (he _ hx')) (he _ hy')) |
| 76 | |
| 77 | |
| 78 | |
| 79 | variable {V V' : Config G c} {Z : Support c} |
| 80 | |
| 81 | /-- Precise agreement of the data used by determinant letters. Does |
| 82 | not include the extra tests for producing a *full* K packet. No |
| 83 | v-condition needed for any frozen HOLD value. Endpoints included. -/ |
| 84 | structure Reads (Z : Support c) (A A' : Stores S) (F H : Forest S.ratio) (V V' : Config G c) (k k' : S.Choices) : Prop where |
| 85 | configuration : Agrees Z V V' |
| 86 | frame (v : Site c) : v∈Z → k.1 v=k'.1 v |
| 87 | bond (i : Bond c) : pinPos i ⊆ Z → k.2 i=k'.2 i |
| 88 | tree (i : Bond f) : S.ratio.parent i.1∈Z → S.ratio.parent (i.1+Lattice.step i.2)∈Z → (i∈F.trunks ↔ i∈H.trunks) |
| 89 | flags (v : Site c) : inspected {v}⊆Z → (v∈A.flags ↔ v∈A'.flags) |
| 90 | cost (i : Cell f) : startPos S i⊆Z → (i∈A.costs ↔ i∈A'.costs) |
| 91 | aisle (i : Bond c) : pinPos i⊆Z → (i∈A.aisles ↔ i∈A'.aisles) |
| 92 | |
| 93 | namespace Reads |
| 94 | variable (h : Reads Z A A' F H V V' k k') |
| 95 | include h |
| 96 | lemma seed {v : Site c} (he : Shields Z v 8) : v∈A.place ↔ v∈A'.place := by |
| 97 | have hc (i : Cell f) : i∈A.costs ∧ v∈startPos S i ↔ i∈A'.costs ∧ v∈startPos S i := by |
| 98 | by_cases hx : v∈startPos S i |
| 99 | · rw [h.cost i (fun y hy => he y (start_diam i hx hy))] |
| 100 | simp [hx] |
| 101 | have ha (i : Bond c) : i∈A.aisles ∧ v∈pinPos i ↔ i∈A'.aisles ∧ v∈pinPos i := by |
| 102 | by_cases hx : v∈pinPos i |
| 103 | · rw [h.aisle i (fun y hy => he y ((pin_diam i hx hy).trans (by omega)))] |
| 104 | simp [hx] |
| 105 | simp only [Stores.place,Finset.mem_union,Finset.mem_biUnion,hc,ha,h.flags v (inspect_shield he)] |
| 106 | |
| 107 | lemma dome_agrees (t : ℕ) (v : Site c) (he : Shields Z v (t+8)) : v∈ A.dome t ↔ v ∈ A'.dome t := by |
| 108 | rw [Stores.dome, Stores.dome, halo_spec, halo_spec] |
| 109 | refine exists_congr fun i => ?_ |
| 110 | by_cases hx : separation i v ≤ t |
| 111 | · rw [h.seed (he.shift (by rw [separation_comm]; omega))] |
| 112 | simp [hx] |
| 113 | |
| 114 | lemma frozen_bits (hb : 120 ≤ radiusB x) (e : Bond f) (he : Shields Z (S.ratio.parent e.1) (12*radiusB x)) : |
| 115 | openBond A F x e ↔ openBond A' H x e := by |
| 116 | have hv := parent_step S e.1 e.2 |
| 117 | rw [mask A F, mask A' H,h.tree e he.center (he _ (hv.trans (by omega))), |
| 118 | h.dome_agrees _ _ (he.shrink (by omega)), h.dome_agrees _ _ (he.shift (by omega))] |
| 119 | |
| 120 | lemma patch_view {a : Directions G f} (s : Signed) (o : Site c) (n : ℕ) |
| 121 | (hp : Shields Z (s.act o) (n+2)) : |
| 122 | AgreeNear S.ratio.parent o n (facade S s V a) (facade S s V' a) := by |
| 123 | have he (i : Bond f) (hi : separation (s.act o) (S.ratio.parent i.1) ≤ n+1) : replica S.ratio V i=replica S.ratio V' i := by |
| 124 | unfold replica; split |
| 125 | · rfl |
| 126 | exact h.configuration (S.ratio.parent i.1,i.2) (hp _ (hi.trans (by omega))) ((hp.shift (Nat.add_le_add_right hi 1)) _ (sep_step _ _)) |
| 127 | apply pulled_near |
| 128 | intro e h; unfold increment; rw [he _ h] |
| 129 | |
| 130 | lemma plaquette_view (s : Signed) (i : Cell f) (hp : Shields Z (s.act (S.ratio.parent i.1)) 6) : |
| 131 | plaquetteJet S V s i = plaquetteJet S V' s i := by |
| 132 | refine congr_arg (fun u : Directions G f → G.Color => fderiv ℝ u 0) ?_ |
| 133 | funext a |
| 134 | exact congr_arg G.curvature (travel_near _ (parent_step S) _ _ _ _ 4 le_rfl (h.patch_view s _ 4 hp)) |
| 135 | |
| 136 | lemma choices_local (i : Bond c) (hp : pinPos i ⊆ Z) (U : Config G f) : S.prediction U k i=S.prediction U k' i := by |
| 137 | unfold StepData.prediction StepData.connector StepData.frames |
| 138 | simp only [h.frame i.1 (hp (by simp [pinPos])),h.frame (i.1+Lattice.step i.2) (hp (by simp [pinPos])),h.bond i hp] |
| 139 | |
| 140 | omit h in |
| 141 | private lemma pins_rot (s : Signed) (i : Bond c) (hp : Shields Z (s.act i.1) 3) : pinPos (sendEdge s 0 i) ⊆ Z := by |
| 142 | have hi : separation (s.act i.1) (sendEdge s 0 i).1 ≤ 1 := by |
| 143 | unfold sendEdge Step.used; split |
| 144 | next he => |
| 145 | simp only [affine, add_zero]; rw [separation_comm] |
| 146 | have ht := sep_step (s.act i.1-Lattice.step ((posDir i.2).rotate s).dir) ((posDir i.2).rotate s).dir |
| 147 | rwa [sub_add_cancel] at ht |
| 148 | next he => simp [affine] |
| 149 | intro x hx; exact hp x ((separation_triangle _ _ _).trans |
| 150 | (Nat.add_le_add hi (pin_diam _ (Finset.mem_insert_self _ _) hx))) |
| 151 | |
| 152 | lemma branch_query (i : Bond c) (hS : S.patch.Branches S.kernel G) (s : Signed) |
| 153 | (hp : Shields Z (s.act i.1) (predReach S.patch + 3)) (a : Directions G f) : |
| 154 | predictGroup V k s i a=predictGroup V' k' s i a := by |
| 155 | have hi := prediction_near_eq hS _ _ (choice s k) i (h.patch_view s i.1 _ (hp.shrink (by omega)) (a:=a)) |
| 156 | have ht := pins_rot s i (hp.shrink (by omega)) |
| 157 | unfold predictGroup; rw [hi] |
| 158 | unfold facade; rw [(carry s hS k _).2,(carry s hS k' _).2] |
| 159 | rw [Motion.turn_read, Motion.turn_read,h.choices_local (sendEdge s 0 i) ht _] |
| 160 | lemma predictor_view (i : Bond c) (hS : S.patch.Branches S.kernel G) (s : Signed) |
| 161 | (hp : Shields Z (s.act i.1) (predReach S.patch+3)) : blockJet V k s i=blockJet V' k' s i := by |
| 162 | refine congr_arg (fun u : Directions G f → G.Color => fderiv ℝ u 0) (funext fun a => ?_) |
| 163 | simp only [predictorTurn,h.branch_query i hS s hp] |
| 164 | |
| 165 | lemma clue_agrees (hS : S.patch.Branches S.kernel G) (T : Tube G S) |
| 166 | (r : Rows.Receipt G S) (i : Key G f) (he : Shields Z (Wisps.down S r) (Next.SectorChange.span S.patch x+2)) : |
| 167 | clue T k V x i r=clue T k' V' x i r := by |
| 168 | suffices hh : Rows.bump T x V k (axisPrice i) r.1 = Rows.bump T x V' k' (axisPrice i) r.1 by |
| 169 | unfold clue; rw [Pi.smul_apply,Pi.smul_apply,hh] |
| 170 | rcases r with ⟨⟨s,t|t⟩,r⟩ |
| 171 | · change Rows.faceKick T x V _ _ t=Rows.faceKick T x V' _ _ _ |
| 172 | let R := Stores.till x; let o:=S.ratio.parent t.1.1 |
| 173 | change Shields Z (s.act o) _ at he |
| 174 | unfold Rows.faceKick; split |
| 175 | next hi => |
| 176 | apply tsum_congr; intro j; dsimp only; split |
| 177 | next hv => |
| 178 | let P := (T.up.row t.1.2 j).2 |
| 179 | let l := Work.F03.slotFace P t.1.1 |
| 180 | have hx : P.length ≤ R := hv |
| 181 | have hm : P.walk.length ≤ R := by unfold Slot.length at hx; omega |
| 182 | have hf : separation (s.act o) (s.act (S.ratio.parent l.1)) ≤ R := by rw [separation_signed]; exact (slot_distance P _).trans hm |
| 183 | have ha := h.plaquette_view s l (he.shift (by change _ ≤ R+5+predReach S.patch+2; omega)) |
| 184 | have ht := h.patch_view s o R (a:=(0:Directions G f)) (he.shrink (by change _ ≤ R+5+predReach S.patch+2; omega)) |
| 185 | have hu := travel_near _ (parent_step S) _ _ _ P.walk R hm (show AgreeNear _ (S.ratio.parent t.1.1) R _ _ from ht) |
| 186 | change _ • G.adjoint (travel (facade S s V 0) t.1.1 P.walk) (plaquetteJet S V s l _) = _ • G.adjoint _ (plaquetteJet S V' s l _) |
| 187 | rw [ha, hu] |
| 188 | next hv => rfl |
| 189 | rw [h.plaquette_view s t.1 (he.shrink (by unfold Next.SectorChange.span; omega))] |
| 190 | change -(_ • blockJet V k s t _)=-(_ • blockJet V' k' s t _) |
| 191 | rw [h.predictor_view _ hS s (he.shrink (by unfold Next.SectorChange.span; omega))] |
| 192 | |
| 193 | /-- Row itself, including holes & all-cost path data, on the original V. -/ |
| 194 | lemma same_row (hS : S.patch.Branches S.kernel G) (T : Tube G S) (i : Key G f) |
| 195 | (hb : 120 ≤ radiusB x) (hy : Next.SectorChange.span S.patch x ≤ radiusB x/50) |
| 196 | (hx : Shields Z (place S i) (14*radiusB x)) (j : Key G f) : |
| 197 | AFull T A F x V k i j=AFull T A' H x V' k' i j := by |
| 198 | let B:=radiusB x |
| 199 | by_cases he : nearby (place S) B i j |
| 200 | · have hi := h.frozen_bits hb i.1 (hx.shrink (by omega)) |
| 201 | have ht := h.frozen_bits hb j.1 (hx.shift (by change separation (place S i) (place S j) +12*B ≤ 14*B; unfold nearby at he; omega)) |
| 202 | rw [read_kernel _ _ _ _ _ _ hS,read_kernel T k' V' A' H x hS,hi,ht]; split |
| 203 | next hp => |
| 204 | unfold unpaired; apply Finset.sum_congr rfl |
| 205 | intro r _ |
| 206 | by_cases ha : separation (Wisps.down S r) (place S i) ≤ Next.SectorChange.span S.patch x |
| 207 | · have hs : Shields Z (Wisps.down S r) (Next.SectorChange.span S.patch x+2) := hx.shift (by rw [separation_comm]; omega) |
| 208 | rw [h.clue_agrees hS _ r i hs,h.clue_agrees hS _ r j hs] |
| 209 | rw [clue_zero T _ _ hS _ _ ha,clue_zero T k' _ hS _ _ ha,zero_mul,zero_mul] |
| 210 | rfl |
| 211 | rw [(kernel_reach T k V hS _ A F).trans (by dsimp only [B]; omega) i j he, |
| 212 | (kernel_reach T k' V' hS _ A' H).trans (by dsimp only [B]; omega) i j he] |
| 213 | end Reads |
| 214 | end Physical |
| 215 | end YM.AnalyticBridge.RelativeLogdet |