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.Planned.PRIMARY_INTEGRAL_295.Postcards |
| 2 | import YM.Trace.Physicalv2.GermShiftBase |
| 3 | |
| 4 | /-! |
| 5 | # Measuring primary output with retained fractional offsets |
| 6 | |
| 7 | The one-mark input anchored at an off-center fine site \(z\), still sent to coarse |
| 8 | site 0, cannot just be moved with its mask to the embedded fine site 0. That |
| 9 | would not pay the power of block ratio needed by the one-step forward bound. |
| 10 | Here we address the canonical-row part. Project by the same radial charts as |
| 11 | the primary input at 0, but evaluate the forecast contours against the |
| 12 | translated stencil. Prove that *through the field engineering weight* of the |
| 13 | input column, this prediction still gives the same heading as in the centered |
| 14 | case. This is at the exact periodic/germ conventions to be paid later by the |
| 15 | thorn and stochastic costs; this file handles the ideal lattice predictor. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.RG05Readout.Offsets |
| 20 | open Function Filter Set Lattice Wilson RG Source Source.Drops Labels MeasureTheory |
| 21 | open Planned.PrimaryIntegral295 Place Film Carrier Precision Next.Free Bloch |
| 22 | open Push.Local (Probe runProbe) |
| 23 | open Trace.Physical.GermShift |
| 24 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius Classical |
| 25 | variable {G:Gauge}{j t n d m:ℕ} {L:Side} |
| 26 | |
| 27 | -- helper general spaces for typeclass reduction |
| 28 | lemma measured_power {E F:Type*} [NormedAddCommGroup E][NormedSpace ℝ E] [NormedAddCommGroup F] |
| 29 | [NormedSpace ℝ F](M : E→L[ℝ] F) (f:ℝ→E) (hf:ContDiffAt ℝ n f 0) (v:F) |
| 30 | (he : M ∘ f=fun y:ℝ => y^m • v) (hi:n<m): M (iteratedDeriv n f 0)=0:= by |
| 31 | have hv : M (iteratedDeriv n f 0) = iteratedDeriv n (M ∘ f) 0 := by |
| 32 | have e : M (iteratedFDeriv ℝ n f (0:ℝ) (1:Fin n→ℝ)) = _ := DFunLike.congr_fun |
| 33 | (M.iteratedFDeriv_comp_left hf le_rfl).symm (1:Fin n→ℝ) |
| 34 | change _ = iteratedDeriv n (M ∘ f) 0 at e |
| 35 | exact e |
| 36 | rw [he, |
| 37 | show iteratedDeriv n (fun y:ℝ => y^m • v) 0 = _ from |
| 38 | iteratedDeriv_smul_const (f:=fun y:ℝ=>y^m) (contDiffAt_id.pow _) (x:=0) (n:=n) _, |
| 39 | iteratedDeriv_fun_pow_zero, if_neg hi.ne,Nat.cast_zero,zero_smul] at hv |
| 40 | exact hv |
| 41 | set_option maxHeartbeats 450000 in |
| 42 | lemma engine_through (n:ℕ)(A:Snap G d): |
| 43 | throughSlot (iteratedDeriv n (fun y:ℝ => WardBin.engineered y A) 0) n:= by |
| 44 | intro i hi |
| 45 | let M: Snap G d →L[ℝ] Taylor G i.val := ContinuousLinearMap.proj i |
| 46 | let f (y:ℝ) := WardBin.engineered y A |
| 47 | have hx: M ∘ f = (fun y:ℝ => y^(i.val+2) • A i) := funext fun _=>rfl |
| 48 | exact measured_power (F:=Taylor G i.val) M f (WardBin.eng_cont A n).contDiffAt (A i) hx hi |
| 49 | |
| 50 | variable {p : Probe G d} {k : ℝ} (P:Flight j t) |
| 51 | set_option maxHeartbeats 400000 in |
| 52 | /-- Taylor terms of the *same history forecast* on ANY fixed stencil obey |
| 53 | the polynomial-direction cancellation convention (no snapping to stencil 0). -/ |
| 54 | lemma forecast_piece (hk:0<k) (ht:4≤t)(hd:d≤j)(q:Probe G d)(n:ℕ)(hn:n≤d) |
| 55 | (S: Finset Cover) (c f:ℝ): |
| 56 | ∃ v:Potential G, v∈ rangeLt (Axis→G.Color) n ∧ ping S v = |
| 57 | iteratedDeriv n (Postcards.forecast S q (linesOf P k) c f) 0 := by |
| 58 | let A:= trunk d (c • q.1) |
| 59 | let g (x:ℝ) := WardBin.engineered x A |
| 60 | let Y := Film.trace S (linesOf P k) (G:=G) (d:=d) |
| 61 | have hF : ContDiff ℝ n Y := trace_smooth (stored P k hk ht) S d |>.of_le le_top |
| 62 | have hG : ContDiff ℝ n g := WardBin.eng_cont A _ |
| 63 | have he : g 0=0:=by funext i; simp [g,WardBin.engineered_at] |
| 64 | have hz(K:OrderedFinpartition n) : ∃ v:Potential G,v ∈ rangeLt (Axis→G.Color) n ∧ |
| 65 | ping S v = Cases.caseRead K Y g 0 1 := by |
| 66 | let w(i: Fin K.length):= iteratedDeriv (K.partSize i) g 0 |
| 67 | let H(x:E4)(i:Axis):= iteratedFDeriv ℝ K.length (lane (G:=G) (d:=d) x i) 0 w |
| 68 | have h : ∑ i,K.partSize i = n:= by simpa using K.sum_sigma_eq_sum (fun _=>(1:ℕ)) |
| 69 | have hH:H∈ rangeLt (Axis→G.Color) n := h ▸ lane_polynomial K.partSize w (fun _=>engine_through _ _) K.partSize_pos |
| 70 | obtain ⟨u,hx,-,hp⟩:= accepts_V k hk P ht (hn.trans hd) H hH |
| 71 | refine ⟨u,hx,?_⟩ |
| 72 | funext i |
| 73 | unfold Cases.caseRead; rw [he] |
| 74 | change ping S u i=iteratedFDeriv ℝ K.length (trace S (linesOf P k) (G:=G) (d:=d)) 0 w i |
| 75 | rw [trace_mail (stored P k hk ht) (K.length_le.trans hn)] |
| 76 | exact (congr_fun (congr_fun hp (Place.first i).val) (beam i)).symm |
| 77 | choose v hv hm using hz |
| 78 | refine ⟨f⁻¹ • ∑ a,v a,Submodule.smul_mem _ _ (Submodule.sum_mem _ (fun i _=>hv i)),?_⟩ |
| 79 | rw [map_smul,map_sum] |
| 80 | change _ = iteratedFDeriv ℝ n (f⁻¹ • (Y ∘ g)) 0 1 |
| 81 | rw [iteratedFDeriv_const_smul_apply (hF.comp hG|>.contDiffAt),_root_.smul_apply, |
| 82 | Cases.compReads hF.contDiffAt hG.contDiffAt le_rfl] |
| 83 | simp_rw [hm] |
| 84 | |
| 85 | variable {F:Labels.Frame G d}(M:SectionData F){A:Hol G} |
| 86 | /-- Unscaled field column at the *translated* stencil, with the enlarged |
| 87 | support used also for the forecast comparison. -/ |
| 88 | def there (i:F.Index)(a:Cover): Dev (translatedSupport a M.stencil) G → ℂ:= |
| 89 | column M i ∘ clip G (a:=a) Finset.subset_union_right |
| 90 | |
| 91 | def atColumn (i:F.Index)(a:Cover):= |
| 92 | Tones.coat (there M i a) (F.grades i).2 |
| 93 | lemma atColumn_clip (i:F.Index)(a:Cover)(f:ℝ): |
| 94 | atColumn M i a f=Tones.tint M i f ∘ clip G (a:=a) Finset.subset_union_right:= by |
| 95 | funext x; unfold atColumn there Tones.tint Tones.coat |
| 96 | simp only [Function.comp_apply,map_smul] |
| 97 | |
| 98 | -- Natural forecast when enlarging. No HEq pricing across different history. |
| 99 | set_option maxHeartbeats 400000 in |
| 100 | lemma same_trace {S T: Finset Cover}(h: S⊆T) {W : Lines L} (hw:Whole W)(p:Probe G d) |
| 101 | (n:ℕ) (hn:n≤d) (x c:ℝ): |
| 102 | clip G (a:=0) (show moved S 0 ⊆ T by simpa [moved] using h) |
| 103 | (iteratedDeriv n (Postcards.forecast T p W c x) 0)= |
| 104 | iteratedDeriv n (Postcards.forecast S p W c x) 0:= by |
| 105 | let A:= trunk d (c • p.1) |
| 106 | let g (x:ℝ) := WardBin.engineered x A |
| 107 | let U (T:Finset Cover):Snap G d→Dev T G:= trace T W |
| 108 | have hf T: ContDiff ℝ n (U T) := trace_smooth hw T d|>.of_le le_top |
| 109 | have hG : ContDiff ℝ n g := WardBin.eng_cont A _ |
| 110 | have he : g 0=0:=by funext i; simp [g,WardBin.engineered_at] |
| 111 | let V:Dev T G →L[ℝ] Dev S G:=clip G (a:=0) (moved_zero ▸ h) |
| 112 | change V (iteratedFDeriv ℝ n (x⁻¹ • (U T ∘ g)) 0 1) = iteratedFDeriv ℝ n (x⁻¹ • (U S ∘ g)) 0 1 |
| 113 | rw [iteratedFDeriv_const_smul_apply ((hf T).comp hG|>.contDiffAt), |
| 114 | iteratedFDeriv_const_smul_apply ((hf S).comp hG|>.contDiffAt),_root_.smul_apply,_root_.smul_apply,map_smul, |
| 115 | Cases.compReads (hf T|>.contDiffAt) hG.contDiffAt le_rfl, |
| 116 | Cases.compReads (hf S|>.contDiffAt) hG.contDiffAt le_rfl,map_sum] |
| 117 | refine congr_arg (x⁻¹ • ·) (Finset.sum_congr rfl (fun K _=>?_)) |
| 118 | unfold Cases.caseRead; rw [he]; funext i |
| 119 | let w (i:Fin K.length):=iteratedDeriv (K.partSize i) g 0 |
| 120 | change iteratedFDeriv ℝ K.length (trace T W (G:=G) (d:=d)) 0 w (moveSpot _ i)=iteratedFDeriv ℝ K.length (trace S W (G:=G) (d:=d)) 0 w i |
| 121 | rw [trace_mail hw (K.length_le.trans hn),trace_mail hw (K.length_le.trans hn),show (first (moveSpot _ i)).val=(first i).val+0 from rfl,add_zero] |
| 122 | exact rfl |
| 123 | |
| 124 | set_option maxHeartbeats 600000 in |
| 125 | /-- The offset-column prediction has the same full jet through the input |
| 126 | column's weight, hence the same rows there. Higher field rows not asserted |
| 127 | (will need upper triangular and cone estimates). -/ |
| 128 | lemma predicts (hk:0<k)(ht:4≤t)(hd:d≤j)(hc:M.Sound A) |
| 129 | (i:F.Index)(q:Probe G d)(hs:q.2.val ≤ (F.grades i).1)(a:Cover)(c f:ℝ): |
| 130 | iteratedDeriv q.2.val (atColumn M i a f ∘ |
| 131 | Postcards.forecast (translatedSupport a M.stencil) q (linesOf P k) c f) 0 = |
| 132 | iteratedDeriv q.2.val (Tones.tint M i f ∘ Postcards.forecast M.stencil q (linesOf P k) c f) 0:= by |
| 133 | let n:=q.2.val |
| 134 | let S:=M.stencil |
| 135 | let A':=translatedSupport a S |
| 136 | let h (T:Finset Cover):=Postcards.forecast T q (linesOf P k) c f |
| 137 | have hp T: ContDiff ℝ n (h T) := (Postcards.forecast_truth T q _ _ _ (stored P k hk ht)).of_le le_top |
| 138 | let g:= column M i |
| 139 | let t:= (F.grades i).2 |
| 140 | have hg: ContDiff ℝ ω g := column_smooth M i |
| 141 | have hl: ContDiff ℝ ω (there M i a) := hg.comp (clip G (a:=a) (T:=A') (S:=S) Finset.subset_union_right).contDiff |
| 142 | change iteratedFDeriv ℝ n (atColumn M i a f ∘ h A') 0 1=iteratedFDeriv ℝ n (Tones.tint M i f ∘ h S) 0 1 |
| 143 | rw [Cases.compReads (g:=atColumn M i a f) ((Tones.coat_smooth hl t f).contDiffAt.of_le (m:=↑n) le_top) (hp _|>.contDiffAt) le_rfl, |
| 144 | Cases.compReads (g:=Tones.tint M i f) ((Tones.coat_smooth hg t f).contDiffAt.of_le (m:=↑n) le_top) (hp _|>.contDiffAt) le_rfl] |
| 145 | refine Finset.sum_congr rfl (fun K _=>?_) |
| 146 | choose v hv he using fun i: Fin K.length=>forecast_piece P hk ht hd q (K.partSize i) |
| 147 | ((K.partSize_le i).trans (hs.trans (F.bound _))) A' c f |
| 148 | let u(i:Fin K.length):=ping A' (v i) |
| 149 | let x(T:Finset Cover)(i:Fin K.length):=iteratedDeriv (K.partSize i) (h T) 0 |
| 150 | have H : ∑ i,K.partSize i=n:=by simpa using K.sum_sigma_eq_sum (fun _=>(1:ℕ)) |
| 151 | let ψ : CoverConfig G → ℂ:= M.evaluate (copy F i) |
| 152 | have hl' : LocalOn S ψ:= M.cylinder_local _ |
| 153 | have hN: Null (F.grades i).1 S ψ:= fun _ _ hw _ _ hu => lower A M hc i _ hw _ hu |
| 154 | let Za : moved M.stencil a ⊆ A' := Finset.subset_union_right |
| 155 | let β₀ : S⊆A':= Finset.subset_union_left |
| 156 | let Z := clip G (a:=0) (T:=A') (S:=S) (moved_zero ▸ β₀) |
| 157 | have hT₁ := translate_equal_jet (a:=a) hl' (hg.contDiffAt.of_le (m:= ↑(F.grades i).1) le_top) |
| 158 | hN (K.length_le.trans hs) K.partSize (H.trans_le hs) v hv A' β₀ Za |
| 159 | unfold Cases.caseRead; change iteratedFDeriv ℝ K.length (atColumn M i a f) (h A' 0) (x A')=iteratedFDeriv ℝ K.length (Tones.tint M i f) (h S 0) (x S) |
| 160 | have hψ: ψ ∘ pore (S:=A') = g ∘ Z := by |
| 161 | change ψ ∘ pore (S:=A') = (ψ ∘ pore (S:=S)) ∘ clip G (a:=0) (S:=S) (T:=A') (moved_zero ▸ β₀) |
| 162 | simpa only [show Lattice.translate (0:Cover) = (@id (CoverConfig G)) from funext (fun U=>funext fun j=>by unfold Lattice.translate;simp),Function.comp_id] |
| 163 | using translated_masked hl' (a:=0) (T:=A') (moved_zero ▸ β₀) |
| 164 | rw [show h A' 0 = 0 from Postcards.forecast_zero ..,show h S 0=0 from Postcards.forecast_zero .., |
| 165 | atColumn, Tones.tint, Tones.color_jet hl,Tones.color_jet (column_smooth M i), smul_apply,smul_apply, smul_zero,smul_zero] |
| 166 | refine congr_arg (_ • ·) ?_ |
| 167 | rw [show x A'=u from (funext he).symm] |
| 168 | change iteratedFDeriv ℝ K.length (there M i a) 0 u=_ |
| 169 | rw [translated_masked hl' Za, hψ] at hT₁ |
| 170 | refine hT₁.trans ?_ |
| 171 | rw [Next.Foundations.jets_linear Z (hg.contDiffAt.of_le (m:=↑K.length) le_top)] |
| 172 | refine congr_arg (iteratedFDeriv ℝ K.length g 0) ?_ |
| 173 | exact funext (fun i=> (congr_arg Z (he i)).trans |
| 174 | (same_trace β₀ (stored P k hk ht) q _ ((K.partSize_le i).trans (hs.trans (F.bound _))) _ _)) |
| 175 | end YM.RG05Readout.Offsets |