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.AnalyticNext.QUARTIC_MATCH.Addresses |
| 2 | import YM.AnalyticNext.QUARTIC_MATCH.Cells.Inside |
| 3 | import YM.AnalyticNext.QUARTIC_MATCH.Leading |
| 4 | import YM.Progress.JOINT_CALENDAR.Rows |
| 5 | |
| 6 | |
| 7 | /-! |
| 8 | # Curvature payment on canonical paths |
| 9 | |
| 10 | Use only to FILL a new correction. Doesn't alter incoming row paths nor the |
| 11 | paths of any of the lower terms. Includes all orientations when reading the |
| 12 | full nonlinear action. Use any choice obeying this leg rule and ACTUAL cost, e.g. |
| 13 | `shortest`. Not choosing torus geodesics separately at each mesh. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.AnalyticNext.QuarticMatch |
| 18 | open Lattice RG Precision Bid Function Matrix Wilson Exterior Filter Laurent Tensor Joint BoxChain |
| 19 | open Work.F03 |
| 20 | open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators |
| 21 | |
| 22 | namespace Mail |
| 23 | variable {n c : ℕ} {G : Gauge} |
| 24 | |
| 25 | /-- Native-unit cover paths. -/ |
| 26 | structure Printed (n : ℕ) where |
| 27 | travels (a : Address n) : Fin (n+1)→RG.Slot |
| 28 | control : ℕ |
| 29 | positive : 1≤control |
| 30 | rule (a : Address n) (i) : cells a i=((travels a i).offset,(plaquette (travels a i).plaq).val) |
| 31 | bound (a : Address n) : ∑ i, (travels a i).length ≤ control*(1+loads a.2) |
| 32 | |
| 33 | private lemma estate {n : ℕ} (a : Address n) : |
| 34 | ∑ i : Fin (n+1), (size (Mail.offset a i)+4)=loads a.2+4*(n+1) := by |
| 35 | rw [Finset.sum_add_distrib]; congr 1 |
| 36 | · have he := net a |
| 37 | simpa [loads,cells,Mail.offset] using he |
| 38 | simp [mul_comm] |
| 39 | |
| 40 | def shortest (n : ℕ) : Printed n where |
| 41 | travels a i := Progress.Joint.script (plaqEquiv.symm (a.1 i),Mail.offset a i) |
| 42 | control := 4*(n+1) |
| 43 | positive := by omega |
| 44 | rule a i := by |
| 45 | rw [Progress.Joint.script_offset] |
| 46 | exact Prod.ext rfl (congr_arg Subtype.val (plaqEquiv.apply_symm_apply (a.1 i)).symm) |
| 47 | bound a := by |
| 48 | simp_rw [Progress.Joint.script_length] |
| 49 | change ∑ i, (size (offset a i)+4) ≤ _ |
| 50 | rw [estate] |
| 51 | nlinarith |
| 52 | |
| 53 | variable (P : Printed n) |
| 54 | |
| 55 | -- address numbering. need n positive (≥1 offset slot, even though arity may be 2) |
| 56 | def index (n : ℕ) [NeZero n] : ℕ ≃ Address n := by |
| 57 | letI : Nonempty (TypeFace 2) := ⟨plaquette ⟨(0,1),by decide⟩⟩ |
| 58 | exact Classical.choice nonempty_equiv_of_countable |
| 59 | |
| 60 | def composition (F : rootArray G n) (x : Address n) : Atom G (n+1) where |
| 61 | leg := P.travels x |
| 62 | coeff v := (F (cells x)).val fun i => EuclideanSpace.basisFun G.ColorIndex ℝ (v i) |
| 63 | |
| 64 | lemma compose_value (F : rootArray G n) (x : Address n) (V : Fin (n+1)→G.Color) : |
| 65 | (composition P F x).poly V = (F (cells x)).val V := by |
| 66 | let f := (F (cells x)).val; let b := EuclideanSpace.basisFun G.ColorIndex ℝ |
| 67 | have he i : V i = ∑ j : G.ColorIndex, V i j • b j := by |
| 68 | have hh := b.toBasis.sum_equivFun (V i) |
| 69 | apply Eq.trans hh.symm; refine Finset.sum_congr rfl fun j _ => ?_ |
| 70 | rw [Module.Basis.equivFun_apply]; simp [b] |
| 71 | have hx : V=fun i => ∑ j : G.ColorIndex,V i j • b j := funext he |
| 72 | conv_rhs => rw [hx] |
| 73 | rw [ContinuousMultilinearMap.map_sum_finset] |
| 74 | simp_rw [ContinuousMultilinearMap.map_smul_univ] |
| 75 | classical |
| 76 | rw [Fintype.piFinset_univ] |
| 77 | exact Finset.sum_congr rfl fun i _ => mul_comm .. |
| 78 | |
| 79 | |
| 80 | |
| 81 | lemma measureUp (F : rootArray G n) (x : Address n) : |
| 82 | (composition P F x).magnitude ≤ Fintype.card (Fin (n+1)→G.ColorIndex)*‖F (cells x)‖ := by |
| 83 | let T := F (cells x) |
| 84 | calc |
| 85 | _ ≤ ∑ _ : Fin (n+1)→G.ColorIndex, ‖T‖ := Finset.sum_le_sum fun i _ => by |
| 86 | have hh := T.val.le_opNorm (fun k => EuclideanSpace.basisFun G.ColorIndex ℝ (i k)) |
| 87 | simp_rw [OrthonormalBasis.norm_eq_one, Finset.prod_const_one,mul_one] at hh; exact hh |
| 88 | _ = _ := by rw [Finset.sum_const,Finset.card_univ,nsmul_eq_mul] |
| 89 | |
| 90 | namespace Printed |
| 91 | variable (G) |
| 92 | def width (σ : ℝ) := shiftRate (Fin (n+1)) σ/(2*P.control) |
| 93 | def tariff (σ : ℝ) := Fintype.card (Fin (n+1)→G.ColorIndex) * Real.exp (P.width σ * P.control) |
| 94 | def reserve (σ : ℝ) : ℝ := P.tariff G σ * (Fintype.card (Fin (n+1)→ TypeFace 2) * |
| 95 | (2*((1+P.width σ * P.control)/(P.width σ * P.control)))^(Fintype.card (Fin n × Axis))) |
| 96 | |
| 97 | lemma expans {σ : ℝ} (h : 0<σ) : 0<P.width σ := |
| 98 | div_pos (positive_rate h (0:Fin (n+1))) (mul_pos (by norm_num) (by exact_mod_cast P.positive)) |
| 99 | lemma tariff_nonneg (σ : ℝ) : 0 ≤ P.tariff G σ := by unfold tariff; positivity |
| 100 | lemma reserve_nonneg (σ : ℝ) (h : 0<σ) : 0 ≤ P.reserve G σ := by |
| 101 | have hx := P.positive; have hc := P.expans h |
| 102 | unfold reserve; refine mul_nonneg (P.tariff_nonneg G σ) ?_; positivity |
| 103 | end Printed |
| 104 | |
| 105 | variable [NeZero n] |
| 106 | def letters (F : rootArray G n) (k : ℕ) := composition P F (index n k) |
| 107 | |
| 108 | theorem sends {F : rootArray G n} {σ C} (h : Pricing F σ C) : |
| 109 | SumBudget (fun i => (letters P F i).budget (P.width σ)) (P.reserve G σ*C) := by |
| 110 | have hp := P.positive |
| 111 | let p := P.width σ; let d : ℝ := P.control |
| 112 | have he : 0<p := P.expans h.rate |
| 113 | have hz : 0<d := by unfold d; exact_mod_cast hp |
| 114 | let f (a : Address n) := Real.exp (-(p*d)*loads a.2) |
| 115 | have ht a : (composition P F a).budget p ≤ (P.tariff G σ*C)*f a := by |
| 116 | have hy := P.bound a |
| 117 | have hh : (↑((composition P F a).length):ℝ)≤d*(1+loads a.2) := by unfold d; exact_mod_cast hy |
| 118 | have hc := pricing_anchor h (0:Fin (n+1)) (cells a) |
| 119 | rw [net] at hc |
| 120 | have hx := measureUp P F a |
| 121 | calc |
| 122 | _ ≤ (Fintype.card (Fin (n+1)→G.ColorIndex)* (C*Real.exp (-shiftRate (Fin (n+1)) σ*loads a.2))) * |
| 123 | Real.exp (p*(d*(1+loads a.2))) := by |
| 124 | unfold Atom.budget |
| 125 | apply mul_le_mul (hx.trans (mul_le_mul_of_nonneg_left hc (by positivity))) |
| 126 | (Real.exp_monotone (mul_le_mul_of_nonneg_left hh he.le)) (Real.exp_nonneg _) |
| 127 | (mul_nonneg (Nat.cast_nonneg _) (mul_nonneg h.cap (Real.exp_nonneg _))) |
| 128 | _ = _ := by |
| 129 | have hi : p*(2*d)=shiftRate (Fin (n+1)) σ := div_mul_cancel₀ _ (by positivity) |
| 130 | unfold f Printed.tariff; change _ = ↑(Fintype.card _) * Real.exp (p*d) * C * _ |
| 131 | rw [← hi, mul_assoc (Fintype.card _:ℝ),mul_assoc C, ← Real.exp_add, mul_right_comm _ _ C,mul_assoc _ _ (Real.exp _), ← Real.exp_add] |
| 132 | ring_nf |
| 133 | let M := P.tariff G σ*C |
| 134 | have hk (i : ℕ) := ht (index n i) |
| 135 | have hs := supply (mul_pos he hz) n |
| 136 | have hv : Summable f := hs.2.1 |
| 137 | have hi : Summable (fun i => M*f (index n i)) := (index n).summable_iff.mpr (hv.mul_left _) |
| 138 | have hc (i : ℕ) : 0 ≤ (letters P F i).budget p := by unfold Atom.budget Atom.magnitude; positivity |
| 139 | have ha := hi.of_nonneg_of_le hc hk |
| 140 | refine ⟨hc,ha, (ha.tsum_le_tsum hk hi).trans ?_⟩ |
| 141 | rw [tsum_mul_left, Equiv.tsum_eq (index n)] |
| 142 | apply (mul_le_mul_of_nonneg_left hs.2.2 (mul_nonneg (P.tariff_nonneg ..) h.cap)).trans_eq |
| 143 | unfold Printed.reserve p d; ring |
| 144 | |
| 145 | section |
| 146 | variable {c : Side} |
| 147 | |
| 148 | omit [NeZero n] in |
| 149 | lemma solve_pay (A : ArrayC (Fin n) (Per c) (ColorPart G n)) (V : Fin n → Ink G c) (l : List (Fin n)) |
| 150 | (h : l.Nodup) : |
| 151 | post (solve l A) V = post A (fun i => if i∈l then track (V i) else V i) := by |
| 152 | induction l generalizing V with |
| 153 | | nil => simp [solve_empty] |
| 154 | | cons a l ih => |
| 155 | rw [List.nodup_cons] at h |
| 156 | rw [solve_head,transfers, ih _ h.2]; congr 1; funext i |
| 157 | by_cases ht : i=a <;> simp [ht,h.1] |
| 158 | |
| 159 | variable (F : rootArray G n) {σ C} |
| 160 | |
| 161 | omit [NeZero n] in |
| 162 | lemma contents (a : Address n) (V : Dir G c) (x : Site c) : |
| 163 | let W := BoxChain.track (liftField 1 V) |
| 164 | (F (cells a)).val (fun i => W (place x a i)) = |
| 165 | (composition P F a).poly fun j => faceCurl (slotFace ((composition P F a).leg j) x) V := by |
| 166 | intro W |
| 167 | rw [compose_value]; congr 1; funext i |
| 168 | let s := (P.travels a i) |
| 169 | let b := slotFace s x |
| 170 | have he : place x a i= BoxChain.shape 2 (b.1,plaquette b.2) := by |
| 171 | change move _ (tor _ (cells a i))=_; rw [P.rule a i]; rfl |
| 172 | unfold W; rw [he, track_shape, show liftField 1 V ∘ BoxChain.shape 1=V from funext fun i => lifted_shape _ _ _]; rfl |
| 173 | |
| 174 | lemma charges_period {Z : Dom G (n+1) c} (B : Colorwise Z) (hb : entries Z B=scene c 0 (solve (List.finRange (n+1)) F)) |
| 175 | (hp : Pricing F σ C) (hr : ∀ i, Rank F i 2) (V : Dir G c) : |
| 176 | Z (fun _ => V) = ∑ x : Site c, ∑' j, (letters P F j).poly fun i => |
| 177 | faceCurl (slotFace ((letters P F j).leg i) x) V := by |
| 178 | let W := liftField 1 V |
| 179 | have he : W ∘ BoxChain.shape 1=V := funext fun i => lifted_shape .. |
| 180 | calc |
| 181 | _ = post (entries Z B) (fun _ => W) := by rw [pays_inputs]; congr 1; exact funext fun i => he.symm |
| 182 | _ = post (scene c 0 F) (fun _ => BoxChain.track W) := by |
| 183 | rw [hb,descend_list _ _ hp, solve_pay _ _ _ (List.nodup_finRange _)] |
| 184 | simp only [List.mem_finRange, ↓reduceIte] |
| 185 | _ = _ := by |
| 186 | rw [ink_delivery hp hr]; refine Finset.sum_congr rfl fun x _ => ?_ |
| 187 | simp_rw [show ∀ (j : Address n), (F (cells j)).val (fun i => BoxChain.track W (place x j i))=_ from fun j => contents P F j V x] |
| 188 | exact (Equiv.tsum_eq (index n) _).symm |
| 189 | |
| 190 | /-- Leading and zero lower jets of the ACTUAL correction, on one period. -/ |
| 191 | theorem retained {Z : Dom G (n+1) c} (hv : Residual.Legal Z) |
| 192 | (hb : entries Z hv.color = scene c 0 (solve (List.finRange (n+1)) F)) |
| 193 | (hp : Pricing F σ C) (hr : ∀ i, Rank F i 2) : |
| 194 | let U := impact (c:=c) (letters P F) |
| 195 | Tensor.coeff U (n+1) 0=Z ∧ ∀ i, i<n+1 → Tensor.coeff U i 0=0 := by |
| 196 | intro U |
| 197 | obtain ⟨hL,hU⟩ := impact_leading (c:=c) (P.expans hp.rate) (sends P hp) |
| 198 | refine ⟨Tensor.ext_diag _ _ (Tensor.coeff_symm ((impact_cont (P.expans hp.rate) (sends P hp)).of_le le_top)) hv.polar ?_,hL⟩ |
| 199 | funext v |
| 200 | have he s : (∑ x : Site c,∑' i, (letters P F i).poly fun j => faceCurl (slotFace ((letters P F i).leg j) x) (shifts s (0:Site c) v))=Tensor.diagonal Z v := |
| 201 | (charges_period P F hv.color hb hp hr _).symm.trans (hv.translated s 0 fun _ => v) |
| 202 | unfold U; rw [hU]; simp only [he]; unfold Patch.average; simp |
| 203 | end |
| 204 | end Mail |
| 205 | end YM.AnalyticNext.QuarticMatch |