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.GAUSSIAN_FIELD_ALIGNMENT.Agreements |
| 2 | import YM.Extra.ITERATION_NO_LOSS.Continuity |
| 3 | import YM.Extra.MULTISOURCE_TRAJECTORIES.Price |
| 4 | import YM.Further.GAUSSIAN_SCALAR_LEDGER.Local |
| 5 | import YM.Next.MAXWELL.Silt |
| 6 | import YM.Next.WARD_BIN.LabelEst |
| 7 | import YM.ProjectorNext.PROJECTOR_CALIBRATION.Reconstruct |
| 8 | import YM.Push.ABSOLUTE_SUMS.Mixed |
| 9 | import YM.Push.LOCAL_SPLITTING.Clocks |
| 10 | import YM.SectorNext.LARGE_FIELD_REMAINDERS.Canonical |
| 11 | import YM.SectorTools.ACTUAL_SCALAR_LEDGER.Fiber |
| 12 | import YM.UVNext.COMMON_GRADE_ASSEMBLY.Free |
| 13 | import YM.UVNext.COUPLING_RESET.Reset |
| 14 | import YM.UVNext.FREE_STRESS_CERTIFICATE.ShellForce |
| 15 | import YM.UVNext.FREE_STRESS_CERTIFICATE.Triangle |
| 16 | |
| 17 | |
| 18 | set_option warningAsError false |
| 19 | set_option autoImplicit false |
| 20 | set_option synthInstance.maxSize 1024 |
| 21 | /-! |
| 22 | # End-panel covariance, mean, and prices of the true completed precision |
| 23 | |
| 24 | Use the real variable-space Gram on active links, padded by identity on frozen non-tree, |
| 25 | forming principal compressions of THAT precision. All statements at one tree/window policy; |
| 26 | no dropping rows meeting window boundaries or deleting zero Fourier modes. Uses the |
| 27 | symmetric whole-endpoint prescription of `SectorChange.panels`, NOT a theorem equating |
| 28 | it to E's midpoint prescription. Window size in coarse units; absolute scalar costs per |
| 29 | coordinate. No regular-germ assertion on any indicators. In particular `supported` is |
| 30 | only for pricing values in the all-fields Scanner, it reads the flag equality on the whole |
| 31 | configuration, do not infer local support of the resulting function. |
| 32 | -/ |
| 33 | noncomputable section |
| 34 | namespace YM.SectorTools.ActualScalar |
| 35 | open Function Filter Set MeasureTheory Matrix RG Wilson Lattice Pressure Pressure.Stores Precision Tree Push.SectorMeasure |
| 36 | Next.SectorChange Schur Further GaussianScalar AnalyticBridge.ResetIncome |
| 37 | AnalyticBridge.GaussianFieldAlignment |
| 38 | open scoped Topology BigOperators Classical ContDiff Matrix.Norms.Frobenius |
| 39 | |
| 40 | variable {G : Gauge} {c f : Side} {S : StepData c f} (e : Plate G S) (h : Doors e) (A : Stores S) |
| 41 | (k : S.Choices) (V : Config G c) (Y : GaussianScalar.Frozen (held e A) G) |
| 42 | {s η M D : ℝ} |
| 43 | |
| 44 | /-- Both decompositions in common positive convention on the tree slice. -/ |
| 45 | def splitKey : Rows.In e.x A e.forest (G:=G) ⊕ Hold G (held e A) ≃ Key e.forest G := |
| 46 | ((moving e A).symm.sumCongr (Equiv.refl _)).trans (mergeBits ..) |
| 47 | lemma live_eq (i : Rows.In e.x A e.forest (G:=G)) : splitKey e A (.inl i)=live A e.forest e.x i := rfl |
| 48 | lemma fill_eq (C : Wall (Rows.In e.x A e.forest (G:=G))) : |
| 49 | filled (held e A) (C.submatrix (moving e A) (moving e A))=fill (live A e.forest e.x) C := by |
| 50 | let Q := filled (held e A) (C.submatrix (moving e A) (moving e A)) |
| 51 | let u := splitKey e A |
| 52 | have hm : Q.submatrix u u = Completion.wide C 1 := by |
| 53 | unfold Q filled u splitKey |
| 54 | let t := (moving e A).symm.sumCongr (Equiv.refl (Hold G (held e A))) |
| 55 | rw [Equiv.coe_trans, ← Matrix.submatrix_submatrix, sortBits] |
| 56 | ext (i|i) (j|j) <;> simp [Completion.wide] |
| 57 | ext i j; obtain ⟨i,rfl⟩ := u.surjective i; obtain ⟨j,rfl⟩ := u.surjective j |
| 58 | exact congr_fun (congr_fun (hm.trans (fill_read _ _ u (live_eq e A)).symm) i) j |
| 59 | lemma sigma_fill : (page e h A k V).sigma Y = fill (live A e.forest e.x) (e.Gram A V k) := (sigma_eq ..).trans (fill_eq ..) |
| 60 | lemma complete_fill : (page e h A k V).complete Y = fill (live A e.forest e.x) (e.Cov A V k) := fill_eq .. |
| 61 | |
| 62 | def distance (i : Key e.forest G) := S.ratio.parent i.1.val.1 |
| 63 | abbrev rangeSize (x : ℝ) : ℝ := ((radiusB x / 60 : ℕ) : ℝ) |
| 64 | |
| 65 | /-- Use the same whole-link endpoint window as SectorChange. -/ |
| 66 | def frame (hb : 120 ≤ radiusB e.x) : Lens (Key e.forest G) where |
| 67 | eye i := Finset.univ.filter (fun j => meeting S e.x i.1.val j.1.val) |
| 68 | sees i := Finset.mem_filter.mpr ⟨Finset.mem_univ _,fun y hy z hz => |
| 69 | (separation_triangle y (distance e i) z).trans (by |
| 70 | have hi : separation y (distance e i) ≤ 1 := (separation_comm ..).trans_le (meetings i.1.val hy) |
| 71 | have hj : separation (distance e i) z ≤ 1 := meetings i.1.val hz |
| 72 | omega)⟩ |
| 73 | lemma eye_test (hb) (i j : Key e.forest G) : i∈(frame e hb).eye j ↔ meeting S e.x j.1.val i.1.val := by simp [frame] |
| 74 | lemma away (hb) : (frame e hb).Outside (distance e) (rangeSize e.x) := by |
| 75 | intro i j he |
| 76 | contrapose! he |
| 77 | apply (eye_test ..).mpr; intro p hp q hq |
| 78 | have he' : separation (distance e j) (distance e i) < radiusB e.x / 60 := by rw [separation_comm]; exact_mod_cast he |
| 79 | have hl : separation p (distance e j) ≤ 1 := (separation_comm ..).trans_le (meetings j.1.val hp) |
| 80 | have hi : separation (distance e i) q ≤ 1 := meetings i.1.val hq |
| 81 | exact ((separation_triangle p (distance e i) q).trans (Nat.add_le_add ((separation_triangle p (distance e j) (distance e i)).trans (Nat.add_le_add hl he'.le)) hi)).trans (by omega) |
| 82 | lemma panels_loc (hb) : let v := live (G:=G) A e.forest e.x; let Z := frame e hb |
| 83 | (fun i => v ⁻¹' (Z.eye (v i) : Set (Key e.forest G))) = panels (G:=G) A e.forest := by |
| 84 | ext i j; exact eye_test e hb _ _ |
| 85 | |
| 86 | private lemma lens_per {ι : Type} [Fintype ι] [DecidableEq ι] (Z : Lens ι) (C : Gaussian.Table ι) : |
| 87 | Z.visit C 0 = per (fun i => ↑(Z.eye i)) C := by |
| 88 | ext i j |
| 89 | unfold Lens.visit Lens.plus |
| 90 | rw [of_apply,zero_smul, add_zero]; split |
| 91 | next hi => |
| 92 | rw [per_read (fun i => (Z.eye i : Set ι)) C (Z.sees j) hi]; congr! -- Fintype on subtype |
| 93 | next hi => exact (per_zero (fun i => (Z.eye i : Set ι)) C hi).symm |
| 94 | |
| 95 | lemma visit_per (hb) (hη : 0<η) (ht : Gapped (e.Gram A V k) η) : |
| 96 | (frame e hb).visit ((page e h A k V).sigma Y) 0 = fill (live A e.forest e.x) (per (panels A e.forest) (e.Gram A V k)) := by |
| 97 | rw [lens_per,sigma_fill, Completed.per_fill' _ (fun i => ↑((frame e hb).eye i)) ((frame e hb).sees) _ (sym_gram ..) hη ht, |
| 98 | panels_loc] |
| 99 | lemma view_eq (hb) (hη : 0<η) (ht : Gapped (e.Gram A V k) η) : |
| 100 | (page e h A k V).viewLens (frame e hb) Y = (page e h A k V).complete Y := by |
| 101 | unfold Fiber.viewLens RawPrice.field |
| 102 | rw [visit_per e h A k V Y hb hη ht,complete_fill,sym_fill (live A e.forest e.x) _ (splitKey e A) (live_eq e A)]; rfl |
| 103 | lemma C_eq (hb) (hη : 0<η) (ht : Gapped (e.Gram A V k) η) : let v := page e h A k V |
| 104 | v.C Y = (v.screen (frame e hb)).C Y := by |
| 105 | intro v; change v.C Y = blankOut _ (v.viewLens _ Y); unfold v |
| 106 | rw [view_eq _ h _ _ _ _ hb hη ht]; exact (blank_meets ..).symm |
| 107 | lemma μ_eq (hb) (hη : 0<η) (ht : Gapped (e.Gram A V k) η) : let v := page e h A k V |
| 108 | v.μ Y = (v.screen (frame e hb)).μ Y := by |
| 109 | intro v |
| 110 | change (chartMap e A).symm _ = viewBits (held e A) (RawPrice.meanAt _ (v.sigma Y) (spreadBits _ (linearCost (v.D Y) (v.b0 Y)))) |
| 111 | let H := held e A; let t := moving e A |
| 112 | let P := per (panels A e.forest) (e.Gram A V k) |
| 113 | let B := Rows.blame e.tube e.x V k (shots S e.x) A e.forest e.chip e.d (shellMap e A Y) |
| 114 | unfold v RawPrice.meanAt; rw [visit_per _ h _ _ _ _ hb hη ht, ← fill_eq,linear_eq,chart_sym] |
| 115 | let u := mergeBits H G |
| 116 | have hs j : spreadBits H (B ∘ t) (u j) = Sum.elim (B ∘ t) (fun _ => 0) j := by unfold spreadBits u; rw [Equiv.symm_apply_apply] |
| 117 | ext i |
| 118 | change (-P.transpose *ᵥ B) (t i) = (- (filled H (P.submatrix t t)).transpose *ᵥ spreadBits H (B ∘ t)) (u (.inl i)) |
| 119 | rw [mulVec,dotProduct,mulVec,dotProduct, ← Equiv.sum_comp u] |
| 120 | rw [← Equiv.sum_comp t,Fintype.sum_sum_type] |
| 121 | simp only [hs,Sum.elim_inl,Sum.elim_inr,mul_zero,Finset.sum_const_zero,add_zero,Function.comp_apply] |
| 122 | refine Finset.sum_congr rfl fun j _ => ?_ |
| 123 | rw [neg_apply,neg_apply,transpose_apply,transpose_apply] |
| 124 | exact congr_arg (fun x : ℝ => -x * B (t j)) (congr_fun (congr_fun (sortBits H (P.submatrix t t) 1) (.inl j)) (.inl i)).symm |
| 125 | |
| 126 | /-- A second identification, including independence of the choice tag *on the same tree* |
| 127 | for the whole table, and equality to the genuine truncated `Affine.primary` used in |
| 128 | finite-history kernel estimates. No thermodynamic limit or off-flag substitution. -/ |
| 129 | theorem canonical {P : Teller G} (hT : P.Funds S e.tube) (hL : Bid.Larger S (G:=G)) : |
| 130 | let T := e.tube; let U := FreeResolvent.Affine.primary S e.forest k T.high T.up |
| 131 | benchmark e h = e.Flat ∧ e.Flat = U (FreeResolvent.Affine.shorter (Stores.till e.x)) 0 ∧ |
| 132 | e.Flat = Native.kinetic e.tube e.forest k e.x := by |
| 133 | intro T U |
| 134 | have hv : e.Flat = Native.kinetic e.tube e.forest k e.x := by |
| 135 | have hx (a : Directions G f) : Rows.bump T e.x 1 e.tag a = Rows.bump T e.x 1 k a := by |
| 136 | funext i; obtain ⟨s,j|j⟩ := i |
| 137 | · simp only [Rows.bump,Sum.elim_inl] |
| 138 | unfold Rows.bump Rows.noiseKick; simp only [Sum.elim_inr, Flat.flat_probe _ _ _ _ hL.1] |
| 139 | unfold Plate.Flat Native.kinetic Native.seed |
| 140 | simp_rw [show e.tube=T by rfl,hx] |
| 141 | refine ⟨flat_price_eq e h hL.1,?_,hv⟩ |
| 142 | rw [hv, ← Native.ground_gram _ _ _ _ hL.1, flat_exact _ _ _ _ _ hT hL (1:Config G c) rfl]; rfl |
| 143 | |
| 144 | /-- Absolute location multiplicity PER coarse site including all real colors. -/ |
| 145 | def count (L : Side) (G : Gauge) := Fintype.card (Site L) * (Fintype.card Axis * Fintype.card G.ColorIndex) |
| 146 | lemma count_bound : Push.Uniform.Multiplicity (distance e) (count S.patch.L G) := by |
| 147 | intro x |
| 148 | let J := Finset.univ.filter (fun i => distance e i=x) |
| 149 | let t : J → Site S.patch.L × Axis × G.ColorIndex := fun i => |
| 150 | (S.ratio.residue i.val.1.val.1,i.val.1.val.2,i.val.2) |
| 151 | have ht : Injective t := by |
| 152 | intro i j he; obtain ⟨h1,h2⟩ := Prod.mk.inj he |
| 153 | apply Subtype.ext; apply Prod.ext _ (Prod.mk.inj h2).2 |
| 154 | apply Subtype.ext; apply Prod.ext _ (Prod.mk.inj h2).1 |
| 155 | have hi := (Finset.mem_filter.mp i.property).2; have hj := (Finset.mem_filter.mp j.property).2 |
| 156 | unfold distance at hi hj |
| 157 | rw [← S.ratio.unpack_at i.val.1.val.1,← S.ratio.unpack_at j.val.1.val.1,hi,hj,h1] |
| 158 | change J.card ≤ _; simpa only [Fintype.card_coe,Fintype.card_prod,count] using Fintype.card_le_of_injective _ ht |
| 159 | |
| 160 | /-- Explicit post-L Expense, using the SAME GaussianFieldAlignment.Ready parameters |
| 161 | on matched and pricing fallback sectors, and on the real canonical flat bill. -/ |
| 162 | def expense (G : Gauge) (d : Side) (v : AnalyticBridge.GaussianFieldAlignment.Rates) : Expense where |
| 163 | η := v.s |
| 164 | low := min v.η 1 |
| 165 | high := v.C+1 |
| 166 | counts := count d G |
| 167 | η_pos := v.width_pos |
| 168 | low_pos := lt_min v.η_pos one_pos |
| 169 | high_pos := by linarith [v.cost_pos] |
| 170 | lemma hi (G : Gauge) (d v) : (expense G d v).low ≤ (expense G d v).high := (min_le_right ..).trans (by change 1≤v.C+1; linarith [v.cost_pos]) |
| 171 | |
| 172 | lemma precision_price (v : AnalyticBridge.GaussianFieldAlignment.Rates) |
| 173 | (hv : AnalyticBridge.GaussianFieldAlignment.Ready A e.forest e.x e.tube k V v.s v.η v.C v.D) : |
| 174 | RawPrice (expense G S.patch.L v) (distance e) ((page e h A k V).sigma Y) := by |
| 175 | have ht := (MatrixBounds.mk hv.ends.prec (sym_gram ..) hv.solvent).pad (p:=distance e) (e:=live A e.forest e.x) |
| 176 | let C := fill (live A e.forest e.x) (e.Gram A V k) |
| 177 | have hr := ht.pours |
| 178 | have he := ht.lower |
| 179 | rw [sigma_fill]; refine ⟨fun a => ?_,Matrix.isHermitian_iff_isSymm.mpr ht.symm,⟨fun i => hr.row i,fun i => ?_⟩,count_bound e⟩ |
| 180 | · rw [← sumSq_dot]; refine ⟨he a, (le_abs_self _).trans ((estimate (L:=C) (hr.weaker v.width_pos.le le_rfl) a a).trans ?_)⟩ |
| 181 | unfold expense; dsimp only; linarith |
| 182 | have ht := hr.col i |
| 183 | simp_rw [separation_comm _ (distance e i)] at ht |
| 184 | exact ht |
| 185 | |
| 186 | lemma screened_eq (hb) (hη : 0<η) (ht : Gapped (e.Gram A V k) η) : |
| 187 | (page e h A k V).screen (frame e hb) = page e h A k V := by |
| 188 | unfold Fiber.screen |
| 189 | congr |
| 190 | · exact funext (fun y => (C_eq _ h A k V y hb hη ht).symm) |
| 191 | · exact funext (fun y => (μ_eq _ h A k V y hb hη ht).symm) |
| 192 | |
| 193 | end YM.SectorTools.ActualScalar |