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.Further.GAUSSIAN_SCALAR_LEDGER.Correction |
| 2 | import YM.Further.GAUSSIAN_SCALAR_LEDGER.Resolvent |
| 3 | import YM.Further.GAUSSIAN_SCALAR_LEDGER.Threshold |
| 4 | import YM.Next.SCHEDULE.Postal |
| 5 | |
| 6 | set_option warningAsError false |
| 7 | |
| 8 | /-! |
| 9 | # Real scalar logdet ledger by local windows |
| 10 | |
| 11 | Echs. For each coordinate i evaluate `Panel.priceLine`, via this *exact* |
| 12 | principal-window resolver. Value and tail legitimate on every finite |
| 13 | volume, uniform errors (value not V derivatives). Entries still need |
| 14 | locality w.r.t physical parameters etc., Bounds are per slot. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Further.GaussianScalar |
| 20 | |
| 21 | open Matrix Function Filter Precision SectorNext.Vacuum Lattice Unitary |
| 22 | open Round (rowRate) |
| 23 | open MeasureTheory Set |
| 24 | open YM.Progress.StationaryScenes.Green |
| 25 | open scoped Topology BigOperators Matrix.Norms.Frobenius Classical |
| 26 | |
| 27 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 28 | |
| 29 | namespace Lens |
| 30 | |
| 31 | variable (Z : Lens ι) |
| 32 | |
| 33 | def localLine (A : Wall ι) (L : ℝ) (i : ι) := Panel.priceLine (Z.glass A i) L (Z.center i) |
| 34 | |
| 35 | omit [DecidableEq ι] in |
| 36 | lemma numerate (A : Wall ι) (a b : ℝ) (h : Numeric A a b) (i : ι) : Numeric (Z.glass A i) a b := by |
| 37 | let f : Z.eye i ↪ ι := Function.Embedding.subtype _ |
| 38 | have ht : Bottom A a := fun x => (h x).1 |
| 39 | have hl : Bottom (-A) (-b) := fun v => by |
| 40 | rw [neg_mul,Matrix.neg_mulVec,dotProduct_neg]; exact neg_le_neg (h v).2 |
| 41 | intro v; refine ⟨ht.restrict f v,?_⟩ |
| 42 | have he := hl.restrict f v |
| 43 | rw [show (-A).submatrix f f= -(Z.glass A i) from rfl,neg_mul,neg_mulVec,dotProduct_neg] at he |
| 44 | exact le_of_neg_le_neg he |
| 45 | |
| 46 | lemma locally_paid (A : Wall ι) (a b : ℝ) (h : Numeric A a b) (hp : A.PosDef) (ha : 0 < a) (hb : a ≤ b) (i : ι) : |
| 47 | let f := fun u : ℝ => (1+u)⁻¹-Z.visit A u i i |
| 48 | IntegrableOn f (Ioi 0) ∧ (∫ u in Ioi (0:ℝ), f u)=Z.localLine A b i := by |
| 49 | intro f |
| 50 | have hh : f = pulse (Z.glass A i) (Z.center i) := by |
| 51 | funext u |
| 52 | unfold f pulse full |
| 53 | rw [show Z.visit A u i i = _ from Z.visit_here A u i (Z.center i)] |
| 54 | rw [hh]; exact settled (hp.submatrix Subtype.val_injective) (Z.numerate A a b h i) ha hb _ |
| 55 | |
| 56 | def beadPulse (A : Wall ι) (n : ℕ) (i j : ι) (u : ℝ) := -(Z.visit A u*(-Z.missed A u)^(n+1)) i j |
| 57 | |
| 58 | omit [Fintype ι] in |
| 59 | lemma visit_continuous {A : Wall ι} (h : A.PosDef) : ContinuousOn (Z.visit A) (Ioi 0) := by |
| 60 | refine continuousOn_pi.mpr (fun i => continuousOn_pi.mpr fun j => ?_) |
| 61 | change ContinuousOn (fun u : ℝ => Z.visit A u i j) _ |
| 62 | unfold visit; simp only [Matrix.of_apply]; split |
| 63 | · next he => exact full_stable (show (Z.glass A j).PosDef from h.submatrix Subtype.val_injective) _ _ |
| 64 | exact continuousOn_const |
| 65 | |
| 66 | lemma bead_continuous {A : Wall ι} (h : A.PosDef) (n : ℕ) (i j : ι) : ContinuousOn (Z.beadPulse A n i j) (Ioi 0) := by |
| 67 | have hp : ContinuousOn (fun u => plus A u) (Ioi 0) := continuousOn_const.add (continuousOn_id.smul continuousOn_const) |
| 68 | have ht := Z.visit_continuous h |
| 69 | have he : ContinuousOn (fun u => Z.missed A u) (Ioi 0) := (hp.mul ht).sub continuousOn_const |
| 70 | exact ((continuousOn_pi.mp (continuousOn_pi.mp (ht.mul (he.neg.pow (n+1))) i) j).neg) |
| 71 | |
| 72 | end Lens |
| 73 | |
| 74 | namespace RawPrice |
| 75 | variable {c : Side} (Z : Lens ι) (p : Expense) {y : ι → Site c} {A : Wall ι} {r : ℝ} |
| 76 | (h : RawPrice p y A) (hr : Z.Outside y r) |
| 77 | include h hr |
| 78 | |
| 79 | lemma bead_cost {u : ℝ} (hu : 0 ≤ u) (n : ℕ) (i j : ι) : |
| 80 | |Z.beadPulse A n i j u| ≤ p.payment*p.windowCost r ^ (n+1) * ((1+u)⁻¹)^2 := by |
| 81 | have he := Double.into_rate (h.ticket Z p hu hr) p.margin_pos.le |
| 82 | have hf := Double.into_rate (h.lens Z p hu) (show 0≤p.halfRate from (half_pos p.tilt_pos).le) |
| 83 | have hp := p.payment_pos |
| 84 | have hP := p.window_pos r |
| 85 | unfold Lens.beadPulse; rw [abs_neg] |
| 86 | apply (row_entry _ (Round.ride _ _ hf.1 (row_pow _ he.1 (by positivity) (n+1)) (by positivity)) i j).trans |
| 87 | let d := p.windowCost r |
| 88 | have hA : d/(1+u) ≤ d := div_le_self hP.le (by linarith) |
| 89 | calc |
| 90 | _ = p.payment/(1+u) * ((d/(1+u))^n * (d/(1+u))) := by rw [← pow_succ] |
| 91 | _ ≤ p.payment/(1+u) * (d^n * (d/(1+u))) := by gcongr |
| 92 | _ = p.payment * d^(n+1) * ((1+u)⁻¹)^2 := by rw [pow_succ]; unfold d; ring |
| 93 | |
| 94 | lemma beads_integral {n : ℕ} (i j : ι) : |
| 95 | IntegrableOn (Z.beadPulse A n i j) (Ioi 0) ∧ |
| 96 | (∫ u in Ioi (0:ℝ), |Z.beadPulse A n i j u|) ≤ p.payment * p.windowCost r^(n+1) := by |
| 97 | let M (x : ℝ) := (p.payment*p.windowCost r^(n+1))*((1+x)⁻¹^2) |
| 98 | have he : IntegrableOn M (Ioi (0:ℝ)) := kernel_budget.1.const_mul _ |
| 99 | have ht : IntegrableOn (Z.beadPulse A n i j) (Ioi 0) := by |
| 100 | apply he.mono' ((Z.bead_continuous (h.paid p) n i j).aestronglyMeasurable measurableSet_Ioi) |
| 101 | filter_upwards [ae_restrict_mem measurableSet_Ioi] with u hu |
| 102 | exact h.bead_cost Z p hr hu.out.le n i j |
| 103 | refine ⟨ht, (setIntegral_mono_on (μ:=volume) ht.norm he measurableSet_Ioi (fun u hu => h.bead_cost Z p hr hu.out.le n i j)).trans_eq ?_⟩ |
| 104 | unfold M; rw [integral_const_mul,kernel_budget.2,mul_one] |
| 105 | |
| 106 | /-- The sign includes the subtraction in Echs. Sum over n all finite |
| 107 | positions; absolute (ω relative matrix S ordered separately). -/ |
| 108 | lemma chains (ht : Timing p r) (i : ι) : |
| 109 | HasSum (fun n : ℕ => ∫ u in Ioi (0:ℝ), Z.beadPulse A n i i u) |
| 110 | (Panel.priceLine A p.high i - Z.localLine A p.high i) := by |
| 111 | let B := Z.beadPulse A |
| 112 | let F := fun n u => B n i i u |
| 113 | have hv (j : ℕ) := h.beads_integral Z p hr (n:=j) i i |
| 114 | let E := p.windowCost r |
| 115 | have hm := ht.misses |
| 116 | have hl : E<1 := lt_trans hm (by norm_num) |
| 117 | have hw := (((summable_geometric_of_lt_one (show 0≤E from (p.window_pos r).le) hl).mul_right E).mul_left p.payment) |
| 118 | simp_rw [← pow_succ] at hw |
| 119 | have he := hasSum_integral_of_summable_integral_norm (F:=F) (μ:=volume.restrict (Ioi 0)) |
| 120 | (fun n => (hv n).1) (hw.of_nonneg_of_le (fun n => integral_nonneg (fun i => norm_nonneg _)) |
| 121 | (fun n => (hv n).2)) |
| 122 | have hh : p.low ≤ p.high := le_trans (Panel.bill_quad h.hermitian h.positive i).1 |
| 123 | (Panel.bill_quad h.hermitian h.positive i).2 |
| 124 | have hx := settled (h.paid p) h.positive p.low_pos hh i |
| 125 | let f := fun u : ℝ => (1+u)⁻¹-Z.visit A u i i |
| 126 | have hz : IntegrableOn f (Ioi 0) ∧ (∫ u in Ioi (0:ℝ), f u)=Z.localLine A p.high i := |
| 127 | Z.locally_paid A p.low p.high h.positive (h.paid p) p.low_pos hh _ |
| 128 | rw [← hx.2,← hz.2,←integral_sub hx.1 hz.1] |
| 129 | suffices Hg : (∫ u in Ioi (0:ℝ), (∑' n, F n u)) = ∫ u in Ioi (0:ℝ), (pulse A i u - f u) by rwa [← Hg] |
| 130 | refine setIntegral_congr_fun measurableSet_Ioi (fun u hu => ?_); dsimp only [f,pulse] |
| 131 | let M := Z.missed A u; let V := Z.visit A u; let L := Lens.full A u |
| 132 | have hy := (mem_Ioi.mp hu).le |
| 133 | have hr' := Double.into_rate (h.ticket Z p hy hr) p.margin_pos.le |
| 134 | have hp := Z.rebuilds (h.paid p) hy |
| 135 | have hn : L*(1+M)=V := by rw [mul_add, mul_one]; exact hp |
| 136 | have hc := hasSum_nat_add_iff' 1 |>.mpr (build_right _ _ hn hr'.1 (by have h₁ := p.window_pos r; positivity) (lt_of_le_of_lt (div_le_self (p.window_pos _).le (by linarith)) hl) i i) |
| 137 | change (∑' n : ℕ, - (V*(-M)^(n+1)) i i) = _ - L i i-(_ - V i i) |
| 138 | simpa using hc.neg.tsum_eq |
| 139 | |
| 140 | lemma anchored (ht : Timing p r) (i : ι) : |
| 141 | Panel.priceLine A p.high i = Z.localLine A p.high i + |
| 142 | ∑' n, ∫ u in Ioi (0:ℝ), Z.beadPulse A n i i u := by rw [(h.chains Z p hr ht i).tsum_eq]; abel |
| 143 | |
| 144 | /-- Absolute truncation error AFTER the listed local costs, in u-integral |
| 145 | norms. Holds even on all off-diagonal entries (not only their traces). -/ |
| 146 | lemma tails (ht : Timing p r) (i j : ι) (b : ℕ) : |
| 147 | let f := fun n : ℕ => ∫ u in Ioi (0:ℝ), |Z.beadPulse A (n+b) i j u| |
| 148 | Summable f ∧ ∑' n,f n ≤ p.payment * p.windowCost r ^ (b+1) / (1-p.windowCost r) := by |
| 149 | intro f; let r' := p.windowCost r |
| 150 | have he := (((hasSum_geometric_of_lt_one (p.window_pos r).le (lt_trans ht.misses (by norm_num))).mul_right |
| 151 | (r' ^ (b+1))).mul_left p.payment) |
| 152 | have hv (n : ℕ) : f n ≤ p.payment * (r'^n * r'^(b+1)) := by |
| 153 | rw [← pow_add,← Nat.add_assoc]; exact (h.beads_integral Z p hr _ _).2 |
| 154 | have hx := he.summable.of_nonneg_of_le (fun n => integral_nonneg (fun u => abs_nonneg _)) hv |
| 155 | refine ⟨hx,(hx.tsum_le_tsum hv he.summable).trans_eq (he.tsum_eq.trans ?_)⟩; unfold r'; ring |
| 156 | |
| 157 | lemma first_bound (ht : Timing p r) (i : ι) : |
| 158 | |Panel.priceLine A p.high i-Z.localLine A p.high i| ≤ |
| 159 | p.payment * p.windowCost r/(1-p.windowCost r) := by |
| 160 | rw [← (h.chains Z p hr ht i).tsum_eq]; let D := fun n : ℕ => ∫ u in Ioi (0:ℝ), Z.beadPulse A n i i u |
| 161 | obtain ⟨hs,hz⟩ := h.tails Z p hr ht i i 0 |
| 162 | simp only [Nat.add_zero, Nat.zero_add,pow_one] at hs hz |
| 163 | have he (n : ℕ) : ‖D n‖ ≤ ∫ u in Ioi (0:ℝ), |Z.beadPulse A n i i u| := norm_integral_le_integral_norm _ |
| 164 | have hg := hs.of_nonneg_of_le (fun n => norm_nonneg _) he |
| 165 | exact (norm_tsum_le_tsum_norm hg).trans ((hg.tsum_le_tsum he hs).trans hz) |
| 166 | |
| 167 | end RawPrice |
| 168 | end YM.Further.GaussianScalar |