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.GRID_STOP_ATTENUATION.Alphabet.Accounts |
| 2 | import YM.AnalyticNext.GRID_STOP_ATTENUATION.Alphabet.Entry |
| 3 | import YM.Bid.Station |
| 4 | import YM.Work.A15 |
| 5 | import YM.Work.B06 |
| 6 | |
| 7 | set_option warningAsError false |
| 8 | |
| 9 | /-! # Uniform price of the repaired presentation, per root response |
| 10 | |
| 11 | Volume and number of response inputs arbitrary. The analysis exponent is |
| 12 | bought -> transmitted to every query. Not spending *at each step iterated*; |
| 13 | apply post-Raw BEFORE aggregation internal to one step only. q-valuation |
| 14 | accounts for all moved singleton addresses cumulatively, preserving a |
| 15 | product growth with no factorial allocation. Here: one try. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.AnalyticNext.GridStop.Alphabet |
| 20 | open RG Marker Wilson Lattice Multi Finset |
| 21 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical |
| 22 | variable {V : Type} [DecidableEq V] {R : Census V} |
| 23 | variable {G : Gauge} {n : Side} (P : Rep G n) |
| 24 | variable (X : V → Support n) |
| 25 | variable (s : V) (D : Hot R → Pulse G n) (p : Pack n) (z : Site n) (F : Config G n → ℂ) (r : Pack n) |
| 26 | |
| 27 | /-- Fee for a constituent exchange entry, including the extra position on |
| 28 | PACK multiplier. -/ |
| 29 | structure Costed (δ κ μ w : ℝ) (Y : Support n) : Prop where |
| 30 | κpos : 0 < κ |
| 31 | κhi : κ ≤ 1 |
| 32 | rate : 0 ≤ δ |
| 33 | vacuum : 0 ≤ μ |
| 34 | anchored : Y ⊆ p.zone |
| 35 | legal : Legible P.p p F |
| 36 | stowed : ∃ a : ℝ, 0≤a ∧ (∀ U, ‖F U‖≤a) ∧ (2+μ)*tagCost P (spread p z) δ κ a ≤ w |
| 37 | |
| 38 | def covers (y : Hot R) := y.sites.biUnion X |
| 39 | |
| 40 | variable {δ κ μ w α σ ρ χ ξ : ℝ} |
| 41 | variable (k : V → ℝ) (H : ∀ i,0<k i) |
| 42 | |
| 43 | /-- No Ar-scale burn if the T product itself arrives at reserve needed |
| 44 | here. Don't infer that input costs just because Bulk ultimately came |
| 45 | from a weak 0 exponent at the finer level; at use here needs actual |
| 46 | post response costs e.g. from the analytic gate on THAT level. -/ |
| 47 | theorem fire_paid |
| 48 | (hh : Costed P p z F δ κ μ w (X s)) |
| 49 | (Y : Hot R) (hY : s∈Y.sites) (u : Hot R) (hu : u.sites=Y.sites.erase s) |
| 50 | (hc : ∀ i,(X i).Nonempty) {m : ℝ} |
| 51 | (hm : Multi.Credit P.p δ κ (covers X u) (D u) m) : |
| 52 | Multi.Credit P.p δ κ (covers X Y) |
| 53 | (-(∑ j∈attaches p z, soloPay (braid p j) |
| 54 | (shielded P (braid p j) (fun v => F v*(D u).2 j v)))) (w*m) := by |
| 55 | obtain ⟨hκ,hκ',hd,hμ,hA,hL,a,ha,hf,ha'⟩ := hh |
| 56 | obtain ⟨-, -, -,hM,-,g,hg,hG⟩ := hm |
| 57 | have hP : X s ⊆ covers X Y := Finset.subset_biUnion_of_mem X hY |
| 58 | have hs : (covers X Y).Nonempty := (hc s).mono hP |
| 59 | have hU : covers X Y = (X s) ∪ covers X u := by unfold covers; rw [hu, ← Finset.biUnion_insert,Finset.insert_erase hY] |
| 60 | let t := burn P.p δ (spread p z).zone |
| 61 | have hr : 0 ≤ t := (burn_pos ..).le |
| 62 | have hH : 0 ≤ tagCost P (spread p z) δ κ a := div_nonneg (mul_nonneg (burn_pos ..).le ha) hκ.le |
| 63 | have hw : 0 ≤ w := (mul_nonneg (by linarith : 0 ≤ 2+μ) hH).trans ha' |
| 64 | -- in particular can pay t*a ≤ w (even if κ not small) |
| 65 | have hz : t * a ≤ w := calc |
| 66 | _ ≤ (t*a) / κ := le_div_self (mul_nonneg hr ha) hκ hκ' |
| 67 | _ ≤ (2+μ)*tagCost P (spread p z) δ κ a := le_mul_of_one_le_left hH (by linarith) |
| 68 | _ ≤ w := ha' |
| 69 | let E (j : Pack n) (v) := F v*(D u).2 j v |
| 70 | let f j := soloPay (braid p j) (shielded P (braid p j) (E j)) |
| 71 | let b j := tagCost P (braid p j) δ κ (a*g j) |
| 72 | have he (j : Pack n) : 0≤ b j := div_nonneg (mul_nonneg (burn_pos ..).le (mul_nonneg ha (hG j).2.2.1)) hκ.le |
| 73 | have hX j (hi : j∈ attaches p z) : Multi.Credit P.p δ κ (covers X Y) (f j) (b j) := by |
| 74 | obtain ⟨hW,ho,h0,h1⟩ := hG j |
| 75 | have hE : UsesFinal P.p.threshold (braid p j).zone (E j) := fun U V hi hl => congrArg₂ (· * ·) |
| 76 | (final_parent _ (Finset.subset_union_left (s₁:=p.zone) (s₂:=j.zone)) _ hL.reads U V hi hl) |
| 77 | (final_parent _ (Finset.subset_union_right (s₁:=p.zone) (s₂:=j.zone)) _ hW.reads U V hi hl) |
| 78 | by_cases he' : (D u).2 j≠0 |
| 79 | · apply solo_credit P (shielded_legible P (hL.borel.mul hW.borel) |
| 80 | (fun t U => congrArg₂ (·*·) (hL.symmetry ..) (hW.symmetry ..)) hE) hκ (mul_nonneg ha h0) hd |
| 81 | (guarded P (braid p j) _ (mul_nonneg ha h0) (fun V => (norm_mul_le _ _).trans (mul_le_mul (hf _) (h1 _) (norm_nonneg _) ha))) |
| 82 | (covers X Y) hs |
| 83 | rw [hU]; exact union_subset_union hA (ho he') |
| 84 | have hx : f j=0 := by unfold f E soloPay shielded; simp [not_not.mp he']; funext p U; split <;> rfl |
| 85 | rw [hx]; exact (Multi.Credit.zero P.p hd hκ hs).expand (he _) |
| 86 | -- 2+mu in ledger already, don't spend again |
| 87 | have HB := (Multi.Credit.sums (attaches p z) f b hs hd hκ hX).scale (-1:ℂ) |
| 88 | rw [neg_one_smul,norm_neg,norm_one,one_mul] at HB |
| 89 | apply HB.expand |
| 90 | calc |
| 91 | _ ≤ ∑ j∈attaches p z,t*a*(burn P.p δ j.zone * g j)/κ := sum_le_sum fun j hi => by |
| 92 | have hj := (mem_filter.mp hi).2.1 |
| 93 | have ht : coverNumber P.p.B (braid p j).zone ≤ coverNumber P.p.B (spread p z).zone + coverNumber P.p.B j.zone := |
| 94 | (Corona.cover_mono (show (braid p j).zone ⊆ (spread p z).zone ∪ j.zone from union_subset_union (Finset.subset_insert ..) subset_rfl) _).trans |
| 95 | (Corona.meets_sum (x:=z) (show z∈ (spread p z).zone from mem_insert_self ..) hj ..) |
| 96 | have he' : burn P.p δ (braid p j).zone ≤ t*burn P.p δ j.zone := by |
| 97 | unfold t burn; rw [←Real.exp_add,←mul_add]; exact Real.exp_monotone (mul_le_mul_of_nonneg_left (by exact_mod_cast ht) |
| 98 | (add_nonneg P.p.exponent_pos.le hd)) |
| 99 | refine div_le_div_of_nonneg_right ((mul_le_mul_of_nonneg_right he' (mul_nonneg ha (hG j).2.2.1)).trans_eq ?_) hκ.le |
| 100 | ring |
| 101 | _ ≤ t*a*(κ*m)/κ := by |
| 102 | rw [←sum_div,←mul_sum]; refine div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_left ?_ (mul_nonneg hr ha)) hκ.le |
| 103 | exact (sum_le_sum_of_subset_of_nonneg (Finset.subset_univ _) (fun i _ _ => mul_nonneg (burn_pos ..).le (hG i).2.2.1)).trans hg |
| 104 | _ = t*a*m := by field_simp |
| 105 | _ ≤ _ := mul_le_mul_of_nonneg_right hz hM |
| 106 | |
| 107 | -- a small table for the multiplicative toll after editing s only. |
| 108 | def advance (x : V) := if x=s then k s + w else k x |
| 109 | |
| 110 | include H |
| 111 | |
| 112 | |
| 113 | omit H in |
| 114 | lemma holds_back (x : R.Mode) (h : s ∉ x.val) : Poly.toll (advance s k (w:=w)) x=Poly.toll k x := by |
| 115 | unfold Poly.toll; exact Finset.prod_congr rfl fun i hi => if_neg (fun (he : i=s) => h (he ▸ hi)) |
| 116 | |
| 117 | omit H in |
| 118 | lemma toll_renew (x : Hot R) (hx : s∈x.sites) : |
| 119 | Poly.toll (advance s k (w:=w)) x.val = Poly.toll k x.val + w*Poly.toll k (dim s x.val) := by |
| 120 | unfold Poly.toll advance dim |
| 121 | rw [← Finset.mul_prod_erase _ k hx, ← Finset.mul_prod_erase _ _ hx,if_pos rfl] |
| 122 | change (k s+w)*(∏ i∈x.sites.erase s,_) = _ |
| 123 | rw [Finset.prod_congr rfl (g:=k) (fun i hi => if_neg ((Finset.mem_erase.mp hi).1)),add_mul] |
| 124 | |
| 125 | variable (hD : ∀ i,Multi.Credit P.p δ κ (covers X i) (D i) (Poly.toll k i.val)) |
| 126 | |
| 127 | include hD |
| 128 | omit H in |
| 129 | lemma edit_prices (hc : ∀ i,(X i).Nonempty) (hv : P.Lawful σ ρ χ ξ μ) {μ' : ℝ} (ht : Mint P δ μ') |
| 130 | (hp : Costed P p z F δ κ μ' w (X s)) (i : Hot R) : |
| 131 | Multi.Credit P.p δ κ (covers X i) (edited P s D p z F i) (Poly.toll (advance s k (w:=w)) i.val) := by |
| 132 | by_cases he : s∈i.sites |
| 133 | · rw [toll_renew s k i he] -- no X |
| 134 | by_cases hi : i=Hot.one R s |
| 135 | · subst i |
| 136 | obtain ⟨hκ,hu,hd,hμ,hh,hA,a,h₁,hH,h₂⟩ := hp |
| 137 | have hG := kernel_credit P hv ht hκ hd hA h₁ hH (X s) (hc s) hh z |
| 138 | rw [edited_at,show dim s (Hot.one R s).val=R.quiet from Subtype.ext (by simp [Hot.one,Census.fire,dim,Census.quiet]),Poly.quiet_toll,mul_one] |
| 139 | apply Multi.Credit.add (hD _) ?_ |
| 140 | unfold covers; rw [Hot.sites_one,singleton_biUnion] |
| 141 | exact hG.expand h₂ |
| 142 | have hm : (i.sites.erase s).Nonempty := Finset.nonempty_iff_ne_empty.mpr fun h => hi (Hot.eq_of_sites (calc |
| 143 | _ = insert s _ := (Finset.insert_erase he).symm |
| 144 | _ = _ := by rw [h,insert_empty_eq]; rfl)) |
| 145 | let u : Hot R := ⟨dim s i.val,hm⟩ |
| 146 | rw [spark _ _ _ _ _ _ i u he rfl,sub_eq_add_neg] |
| 147 | exact Multi.Credit.add (hD _) (fire_paid P X s D p z F hp i he u rfl hc (hD _)) |
| 148 | rw [dormant _ _ _ _ _ _ i he, holds_back _ _ _ he]; exact hD _ |
| 149 | end YM.AnalyticNext.GridStop.Alphabet |