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 Mathlib.Analysis.Fourier.Convolution |
| 2 | import YM.Next.BOUNDARY.Coordinates |
| 3 | import YM.Next.FREE_KERNELS.Signal |
| 4 | import YM.Next.ROTATIONS.Response |
| 5 | import YM.Next.SCHEDULE.Blocks |
| 6 | import YM.Next.SCHEDULE.GridCost |
| 7 | import YM.Next.SCHEDULE.Postal |
| 8 | import YM.Push.CUTOFF_PROJECTORS.Along |
| 9 | import YM.Push.FREE_RESOLVENT.JetWindows |
| 10 | import YM.Push.FREE_RESOLVENT.Torus |
| 11 | import YM.Push.STATIONARY_UNIFORM.Beacons |
| 12 | import YM.Push.STATIONARY_UNIFORM.Travel |
| 13 | import YM.SectorNext.GAUSSIAN_SECTOR_CHANGE.Patch |
| 14 | import YM.SectorNext.GAUSSIAN_SECTOR_CHANGE.Stencils |
| 15 | |
| 16 | |
| 17 | |
| 18 | /-! |
| 19 | # Real resources near selected affine rows |
| 20 | |
| 21 | On V with exact flags. Two default resource needs beyond covariance: actually |
| 22 | show all used v,w columns agree with their unclipped output good m' extension |
| 23 | AND their unmasked/path values are small at the evaluation point. Use only |
| 24 | weak gauges on each fixed-size box. No realizability of fine defaults, no |
| 25 | indicator differentiation; inequalities authorize at equality too. Keep the |
| 26 | older `mask` proofs for subsequent push comparisons. |
| 27 | -/ |
| 28 | set_option autoImplicit false |
| 29 | noncomputable section |
| 30 | namespace YM.AnalyticBridge.SectorAffine.Offset |
| 31 | |
| 32 | open Filter Function Lattice Wilson RG Precision Pressure Tree Exterior Bloch |
| 33 | open YM.Next YM.Next.Fluctuations YM.Next.SectorChange YM.Next.SectorChange.Rows |
| 34 | open YM.FreeResolvent (Mark Bundle native Cost) |
| 35 | open YM.FreeResolvent.TestD |
| 36 | open YM.Push.Uniform (bolt Allows Requests travelCost) |
| 37 | open YM.Push.SectorMeasure YM.Push.SectorMeasure.Oriented |
| 38 | open YM.Work |
| 39 | open Pressure.Tube |
| 40 | open scoped Topology ContDiff BigOperators InnerProductSpace Classical Matrix.Norms.Frobenius |
| 41 | |
| 42 | variable {G : Gauge} {c f : Side} {R k n L : ℕ} {C M s σ d t x r κ : ℝ} {p : Site f → Site c} {S : StepData c f} {A : Stores S} {F : Forest S.ratio} {o : Signed} |
| 43 | |
| 44 | /-- Weak `D'` branch on every coarse face through the fixed tape |
| 45 | center. No assumption that the criteria using s.act on negative-oriented |
| 46 | inputs preserve shots. -/ |
| 47 | def secure (x : ℝ) (r : ℕ) (i : Site c) (V : Config G c) := |
| 48 | ∀ p : Cell c, separation i p.1 ≤ r → toll V p ≤ temp x |
| 49 | |
| 50 | lemma guard (V : Config G c) (hp : A.flags=RG.flags (temp x) V) |
| 51 | (i : Where S) (o : Signed) (h : span S.patch x ≤ radiusB x/50) |
| 52 | (ht : curb (shots S x) A F x o i) : secure x (radiusB x) (roots S i) (pull o 0 V) := by |
| 53 | intro p he; by_contra! hx |
| 54 | let B := pull o 0 V |
| 55 | have hf : affine o 0 p.1 ∈ A.flags := by |
| 56 | rw [hp, ← H03.flags_send o 0] |
| 57 | apply Finset.mem_image_of_mem |
| 58 | exact (flags_spec ..).2 ⟨p,E01.base_touched _,hx⟩ |
| 59 | simp only [affine,add_zero] at hf |
| 60 | apply (guarded h ht).1 |
| 61 | refine halo_spec.mpr ⟨_,Finset.mem_union_right _ hf,?_⟩; rw [separation_signed,separation_comm]; omega |
| 62 | |
| 63 | lemma kept_vision {P : Teller G} {T : Tube G S} (hT : P.Funds S T) |
| 64 | (h : Stores.till x+1 ≤ radiusB x/50 ∧ |
| 65 | ∀ k : ℕ, temp x * Real.exp (k/P.below.clip.relaxation) < 2 → k+1 ≤ radiusB x/50) |
| 66 | (V : Config G c) (i : Site c) (y : Twin c) (hs : secure x (radiusB x) i V) |
| 67 | (hv : separation i y.1.1 ≤ radiusB x/50) : |
| 68 | T.vision (Stores.till x) (temp x) V y=T.Xn (Stores.till x) V y := by |
| 69 | unfold vision Xn plotted thinned; split |
| 70 | · rw [if_pos ?_]; intro q |
| 71 | by_contra! hk |
| 72 | have ht := h.2 (separation y.1.1 q.1) (by rw [← hT.low]; exact hk.trans_le (G.chord_le_two _)) |
| 73 | apply hk.not_ge |
| 74 | have hj := separation_triangle i y.1.1 q.1 |
| 75 | apply (hs q (by omega)).trans |
| 76 | refine le_mul_of_one_le_right (temp_nonneg x) (Real.one_le_exp ?_); have := T.low.radius_pos; positivity |
| 77 | split |
| 78 | next he => simp |
| 79 | next he => |
| 80 | have hf : 0<toll V y.1 := lt_of_le_of_ne (G.chord_nonneg _) (Ne.symm he) |
| 81 | rw [min_eq_left ((le_div_iff₀ hf).mpr (by rw [one_mul]; exact hs _ (by omega))),one_smul] |
| 82 | |
| 83 | section allowance |
| 84 | |
| 85 | -- exact support, even for wrapping arcs. Could reuse E03 Anchored with /50. |
| 86 | lemma leap_bound {T : Tube G S} (V : Config G c) (i : Twin f) (j : Twin c) : |
| 87 | ¬separation (S.ratio.parent i.1.1) j.1.1 ≤ Stores.till x → T.Φ (Stores.till x) V i j=0 := by |
| 88 | intro h |
| 89 | have hf (u : Cover) : casted S T.R (Stores.till x) V (mesh i) (mesh j) u=0 := by |
| 90 | unfold casted; dsimp only |
| 91 | split |
| 92 | next ht => |
| 93 | let w := route (lift (S.ratio.residue (mesh i).1)) (S.patch.L.val • u) 1 |
| 94 | have he := E03.sep_walk _ (E03.parent_step S) (mesh i).1 w |
| 95 | rw [show stop (mesh i).1 w=_ from E03.casted_endpoint S (mesh i).1 u,S.ratio.embed_parent,← ht.2] at he |
| 96 | exact (h (he.trans ht.1)).elim |
| 97 | rfl |
| 98 | simp [Φ,leap,hf] |
| 99 | |
| 100 | lemma kick_bound {T : Tube G S} (V : Config G c) (i : Bond c) (j : Twin c) : |
| 101 | ¬separation i.1 j.1.1 ≤ Stores.till x → T.Φ' (Stores.till x) V i j=0 := by |
| 102 | intro h |
| 103 | let B := fun u => priced (Stores.till x) S.patch.L.val V T.R.mn (pole i) (mesh j) u |
| 104 | change (∑' u, B u) = 0 |
| 105 | have hf (u : Cover) : B u=0 := by |
| 106 | unfold B priced; split |
| 107 | next ht => |
| 108 | let w := route 0 u 1 |
| 109 | have he := E03.sep_walk id (fun i j => E03.sep_step i j) (pole i).1 w |
| 110 | have hh : stop (pole i).1 w=(mesh j).1 := by |
| 111 | rw [ht.2]; simpa only [map_zero,add_zero] using E03.stop_route (pole i).1 0 u |
| 112 | rw [hh] at he |
| 113 | exact (h (he.trans ((le_mul_of_one_le_right (Nat.zero_le _) S.patch.L.property).trans ht.1))).elim |
| 114 | rfl |
| 115 | simp_rw [hf]; rw [tsum_zero] |
| 116 | end allowance |
| 117 | |
| 118 | private lemma secured_flag (G : Gauge) (V : Config G c) {i : Site c} |
| 119 | (h : secure x n i V) (y : Site c) (R : ℕ) (he : separation i y+(R+1) ≤ n) (hp : 2*(R+1)<c.val) : |
| 120 | let C := 16*(2*((R+1:ℕ):ℝ)+1)^5*(Fintype.card PlaqAxes:ℝ) |
| 121 | ∃ w : Site c → G.El, |
| 122 | (∀ p : Bond c, separation y p.1≤R → G.chord (Lattice.gauge w V p) ≤ C*temp x) ∧ |
| 123 | ∀ i : Bond f, separation y (S.ratio.parent i.1) ≤ R → G.chord (Lattice.gauge (constantGauge w S.ratio) (replica S.ratio V) i) ≤ C*temp x := by |
| 124 | intro C |
| 125 | obtain ⟨w, hw⟩ := E08.axial_patch y V R (R+1) (by omega) hp (temp x) (temp_nonneg x) |
| 126 | (fun z hz p => h (z,p) ((separation_triangle i y _).trans ((Nat.add_le_add_left hz _).trans he))) |
| 127 | refine ⟨w,hw,fun b hb => ?_⟩ |
| 128 | rw [copied S.ratio S.patch.odd_side]; unfold replica; split |
| 129 | · rw [G.chord_one]; exact mul_nonneg (by unfold C; positivity) (temp_nonneg _) |
| 130 | exact hw _ hb |
| 131 | |
| 132 | lemma secure_faces (P : Patch) (G : Gauge) : ∃ D : ℝ, 0<D ∧ ∀ᶠ x : ℝ in atTop, |
| 133 | ∀ {c f : Side} (S : StepData c f), S.patch=P → 100*(1+radiusB x) ≤ c.val → |
| 134 | ∀ (i : Site c) (V : Config G c), secure x (radiusB x) i V → |
| 135 | ∀ p : Cell f, separation i (S.ratio.parent p.1) ≤ Stores.till x → |
| 136 | toll (replica S.ratio V) p ≤ D*temp x := by |
| 137 | let D := 16*(2*(5:ℝ)+1)^5 * (Fintype.card PlaqAxes:ℝ) |
| 138 | have hd : 0<D := by |
| 139 | unfold D |
| 140 | have h : 0<Fintype.card PlaqAxes := by letI : Nonempty PlaqAxes := ⟨⟨(0,1),by decide⟩⟩; exact Fintype.card_pos |
| 141 | positivity |
| 142 | refine ⟨4*D, by positivity,?_⟩ |
| 143 | filter_upwards [Work.E01.radiusB_tendsto.eventually_ge_atTop 100] with x hx |
| 144 | intro c f S hP hF i V h b hb |
| 145 | obtain ⟨w,-,ht⟩ := secured_flag (S:=S) G V h (S.ratio.parent b.1) 4 (by unfold Stores.till at hb; omega) (by omega) |
| 146 | let U := replica S.ratio V; let p := constantGauge w S.ratio |
| 147 | let u := Lattice.gauge p U; let W (i : Bond f) := if separation (S.ratio.parent b.1) (S.ratio.parent i.1) ≤ 4 then u i else (1:G.El) |
| 148 | rw [← toll_gauge p]; unfold toll faceValue; rw [travel_near S.ratio.parent (E03.parent_step S) _ W _ _ 4 (le_refl _) ?_] |
| 149 | · have hx (i : Bond f) : G.chord (W i) ≤ D*temp x := by |
| 150 | unfold W; split |
| 151 | next hi => exact (ht _ hi).trans_eq (by unfold D; norm_num) |
| 152 | rw [G.chord_one]; exact mul_nonneg hd.le (temp_nonneg x) |
| 153 | apply (travel_chord W _ _ _ hx).trans_eq; simp [square,mul_assoc] |
| 154 | exact fun i hi => (if_pos hi).symm |
| 155 | |
| 156 | lemma z_turn (G : Gauge) (V Q : Config G c) (i : Bond c) (w : Site c → G.El) : |
| 157 | Z S (Lattice.gauge w Q) (Lattice.gauge w V) i = G.adjoint (w i.1) (Z S Q V i) := by |
| 158 | unfold Z Lattice.gauge; rw [map_smul,← G.curvature_conjugate]; congr 2; group |
| 159 | |
| 160 | lemma secure_noise (G : Gauge) (P : Patch) (K : KernelChoices) (hk : P.Branches K G) : |
| 161 | ∃ D : ℝ, 0<D ∧ ∀ᶠ x : ℝ in atTop, |
| 162 | ∀ {c f : Side} (S : StepData c f), S.patch=P → S.kernel=K → 100*(1+radiusB x) ≤ c.val → |
| 163 | ∀ (i : Bond c) (V : Config G c), secure x (radiusB x) i.1 V → ∀ k : S.Choices, |
| 164 | ‖Z S (S.prediction (replica S.ratio V) k) V i‖ ≤ D*temp x := by |
| 165 | let L := LocalJet.allot P; let M := LocalJet.permit P |
| 166 | obtain ⟨A,δ,hA,hδ,hE⟩ := extend_interior G |
| 167 | obtain ⟨C,r,hC,hr,h⟩ := z_chart_cost P K G hk |
| 168 | let t := A*M; let D := (C*(1+r))*t |
| 169 | have hL : predReach P ≤ L := by unfold L LocalJet.allot; omega |
| 170 | have hm : 0<M := by |
| 171 | unfold M LocalJet.permit |
| 172 | have hp : 0<Fintype.card PlaqAxes := by letI : Nonempty PlaqAxes := ⟨⟨(0,1),by decide⟩⟩; exact Fintype.card_pos |
| 173 | positivity |
| 174 | refine ⟨D, by unfold D t; positivity,?_⟩ |
| 175 | have he {D r : ℝ} (hr : 0<r) : ∀ᶠ x : ℝ in atTop, D*temp x ≤ r := by |
| 176 | filter_upwards [E01.fiery_le G 1 D,(E01.largeT_tendsto G 1).eventually (ge_mem_nhds hr)] with x hx he |
| 177 | simpa [fiery,betaF] using hx.trans he |
| 178 | filter_upwards [he (D:=M) hδ, he (D:=t) hr, Work.E01.radiusB_tendsto.eventually_ge_atTop (L+1)] with x hx hx' ht |
| 179 | intro c f S hP hK hF i V hX k |
| 180 | have hS : S.patch.Branches S.kernel G := by rw [hP,hK]; exact hk |
| 181 | obtain ⟨w,hu,hv⟩ := secured_flag (S:=S) _ V hX i.1 L (by simp [ht]) (by omega) |
| 182 | let U := replica S.ratio V; let v := constantGauge w S.ratio |
| 183 | have he : 0 ≤ M*temp x := mul_nonneg hm.le (temp_nonneg x) |
| 184 | obtain ⟨a,ha,he'⟩ := hE id i.1 L (Lattice.gauge w V) _ he hx hu |
| 185 | obtain ⟨b,hb,hb'⟩ := hE S.ratio.parent i.1 L (Lattice.gauge v U) _ he hx hv |
| 186 | have hp : ‖(b,a)‖ ≤ A*(M*temp x) := by rw [Prod.norm_def]; exact max_le hb ha |
| 187 | obtain ⟨hs,H⟩ := h c f S hP hK k i (b,a); let y : PairLogs G f c := (b,a) |
| 188 | rw [← mul_assoc] at hp |
| 189 | have hpr := hp.trans hx' |
| 190 | have hl : ‖Z S (S.prediction U k) V i‖ = ‖zTest S k i y‖ := by |
| 191 | have hL : v ∘ S.ratio.embed = w := funext (fun i => by unfold v constantGauge; simp only [Function.comp_apply,S.ratio.embed_parent]) |
| 192 | have hJ := (choice_gauge hS U k v).2; rw [hL] at hJ |
| 193 | rw [← G.norm_adjoint (w i.1), ← z_turn, ← hJ] |
| 194 | unfold zTest Z |
| 195 | rw [he' i (by simp),prediction_near_eq hS _ (represent b) k i (hb'.shrink (by rw [separation_self,zero_add,hP]; unfold L LocalJet.allot; omega))] |
| 196 | change ‖Z S (S.prediction U k) V i‖ ≤ _; rw [hl] |
| 197 | let l := zLin S b a i |
| 198 | have he := norm_add_le (zTest S k i y-l) l |
| 199 | rw [sub_add_cancel] at he |
| 200 | refine (he.trans (add_le_add (H hpr) hs)).trans ?_ |
| 201 | have hj : C*‖y‖^2 ≤ C*r*‖y‖ := by |
| 202 | rw [sq, mul_assoc]; exact mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right hpr (norm_nonneg _)) hC.le |
| 203 | change _ ≤ C*(1+r)*(A*M)*temp x; linarith only [hj, mul_le_mul_of_nonneg_left hp (show 0 ≤ C*(1+r) by positivity)] |
| 204 | end YM.AnalyticBridge.SectorAffine.Offset |