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.RG05Readout.Address.Size |
| 2 | /-! |
| 3 | # Energy grade restriction with holographic costs |
| 4 | -/ |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.RG05Readout.Address |
| 8 | open Function Filter Set MeasureTheory Lattice Wilson Labels RG Source Bid |
| 9 | open Extra.Histories Push Local Planned.GuardedAtom Guard MergeProof Extra.Histories.Relay Native |
| 10 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius Classical |
| 11 | variable {G:Gauge}{C:Family G}{d h:ℕ} {n:Side}{o:Site n}{R:Rep G n}{a b κ:ℝ} |
| 12 | variable (F:Labels.Frame G d) |
| 13 | -- weights for Mark vs δCost. no forgetting scalar |
| 14 | noncomputable def chunk (i:Letter d) (x:C.label (kept i)): Palette C d := Pi.single i x |
| 15 | @[simp] lemma chunk_self {i:Letter d}(x:C.label (kept i)) : chunk i x i=x:= Pi.single_eq_same .. |
| 16 | @[simp] lemma chunk_miss {i j:Letter d}(x:C.label (kept i)) (hj:j≠i): chunk i x j=0:= Pi.single_eq_of_ne hj _ |
| 17 | lemma size_chunk (i:Letter d)(x:C.label (kept i)): size (chunk i x)=(C.labels.level (kept i)).coeffSize x:=by |
| 18 | rw [bill_group,Finset.sum_eq_single i]; simp; intro j _ hj; simp [chunk_miss x hj,Frame.coeffSize]; simp |
| 19 | lemma cpart (i:Letter d){j:ℕ} (x:C.label (kept i)): |
| 20 | clear C d j (chunk i x)=if depth i ≤ j then chunk i (Offsets.basisCut (C.labels.level (kept i)) (j - depth i) x) else 0 :=by |
| 21 | funext z u |
| 22 | by_cases hi:z=i |
| 23 | · subst z |
| 24 | change (if depth i+((C.labels.level (kept i)).grades u).1 ≤j then chunk i x i u else 0)=_ |
| 25 | rw [chunk_self]; split_ifs with h h' h' |
| 26 | · rw [chunk_self]; change _=if ((C.labels.level (kept i)).grades u).1 ≤ j-depth i then _ else _; rw [if_pos (by omega)] |
| 27 | · omega |
| 28 | · rw [chunk_self]; change _=if ((C.labels.level (kept i)).grades u).1 ≤ j-depth i then _ else _; rw [if_neg (by omega)] |
| 29 | rfl |
| 30 | change (if weights (C:=C) ⟨z,u⟩ ≤ j then chunk i x z u else 0)=_ |
| 31 | split_ifs <;> simp [chunk_miss _ hi] |
| 32 | |
| 33 | def ticket (i:Mark C d):Palette C d:= chunk i.1 (Size.axis (C.labels.level (kept i.1)) i.2) |
| 34 | lemma cardp (y:Palette C d): ∑ i:Mark C d,val y i • ticket i=y:=by |
| 35 | rw [Fintype.sum_sigma];funext z; rw [Finset.sum_apply,Finset.sum_eq_single z];simp only [Finset.sum_apply,ticket,Pi.smul_apply,chunk_self]; exact Size.sum_axes _ _ |
| 36 | intro i _ hi; simp only [Finset.sum_apply,ticket,Pi.smul_apply,chunk_miss _ hi.symm,smul_zero, Finset.sum_const_zero] |
| 37 | simp |
| 38 | lemma size_ticket (i:Mark C d):size (ticket i)=1:=by unfold ticket; rw [size_chunk,Size.size_axis] |
| 39 | |
| 40 | def chargeN (L:Side) {d:ℕ}(i:Mark C d):ℝ:= (L.val:ℝ)^(d-weights i) |
| 41 | lemma charge_one (L:Side){d:ℕ} (i:Mark C d):1 ≤ chargeN L i:= one_le_pow₀ (by exact_mod_cast L.property) |
| 42 | lemma charge_global (L:Side){d:ℕ}(i:Mark C d):chargeN L i ≤ (L.val:ℝ)^d:=pow_le_pow_right₀ (by exact_mod_cast L.property) (Nat.sub_le ..) |
| 43 | |
| 44 | lemma amplifies (L:Side)(y:Palette C d)(i:Mark C d):val (amplify d C L y) i=(chargeN L i:ℂ) * val y i:=by |
| 45 | rcases i with ⟨i,j⟩ |
| 46 | change (↑L.val:ℂ)^(kept i-((C.labels.level (kept i)).grades j).1)* y i j=_ |
| 47 | unfold kept val chargeN weights; push_cast; rw [Nat.sub_sub] |
| 48 | lemma ticket_charge (L:Side)(i:Mark C d): amplify d C L (ticket i)= (chargeN L i:ℂ) • ticket i:=by |
| 49 | obtain ⟨i,j⟩:=i; ext1 v; ext1 q |
| 50 | by_cases hv:v=i |
| 51 | · subst v |
| 52 | by_cases h:q=j |
| 53 | · subst q; exact amplifies L (ticket (Sigma.mk i j)) ⟨i,j⟩ |
| 54 | change val (amplify d C L _) ⟨i,q⟩=_ -- fill |
| 55 | rw [amplifies]; unfold val ticket Size.axis; simp [Pi.single_eq_of_ne h] |
| 56 | change val (amplify d C L _) (Sigma.mk v q)=_ |
| 57 | rw [amplifies]; unfold val ticket Size.axis; simp [chunk_miss _ hv] |
| 58 | lemma charge_sum (L:Side)(x:Palette C d):∑ i:Mark C d,‖val x i‖*chargeN L i=size (amplify d C L x):=by |
| 59 | unfold size; apply Finset.sum_congr rfl; intro i _ |
| 60 | rw [amplifies,norm_mul,Complex.norm_real,Real.norm_of_nonneg (zero_le_one.trans (charge_one ..)),mul_comm] |
| 61 | lemma size_tuned (L:Side)(x:Palette C d):size (amplify d C L x) ≤ (L.val:ℝ)^d*size x:=by |
| 62 | rw [← charge_sum,size,Finset.mul_sum]; apply Finset.sum_le_sum; intro i _; rw [mul_comm ‖val x i‖];exact mul_le_mul_of_nonneg_right (charge_global ..) (norm_nonneg _) |
| 63 | lemma size_refund (L:Side)(x:Palette C d): size x ≤ size (amplify d C L x):=by |
| 64 | rw [← charge_sum,size]; apply Finset.sum_le_sum; intro i _; exact le_mul_of_one_le_right (norm_nonneg _) (charge_one ..) |
| 65 | section |
| 66 | open Trace.Physical Native |
| 67 | local notation "K"=> C.labels.level |
| 68 | local notation "S"=> C.localSection |
| 69 | variable (i:Letter d) (P:Coefficient (C.labels.level (kept i)) n) |
| 70 | lemma printed_one (hp:P.Format o C.params R)(hr:P.remBound o R κ a): |
| 71 | Printed C d R o κ (glyph (readJ i 0) (invoice P o (S (kept i)) R)) (chunk i P.x) (chunk i (Trace.Physical.Germ.projection (C.labels.level (kept i)) C.params R.p.threshold o P)) a :=by |
| 72 | let V(j:Letter d):= Extra.Histories.primary o (F:=C.labels.level (kept j)) 0; let Y:= update V i P; let t(j:Letter d):ℝ:= if j=i then a else 0 |
| 73 | have hκ:0<κ:=by obtain ⟨x,y,-,-,-,hκ,-⟩:=hr; exact hκ |
| 74 | have hx j : j≠ i → Y j=V j:=fun he=> update_of_ne he .. |
| 75 | have he : Y i=P:= update_self .. |
| 76 | have hj(j:Letter d): (Y j).Format o C.params R ∧ (Y j).remBound o R κ (t j):=by |
| 77 | by_cases hi:j=i |
| 78 | · subst j; unfold t; rw [if_pos rfl, he]; exact ⟨hp,hr⟩ |
| 79 | unfold t; rw [hx j hi, if_neg hi]; exact ⟨primary_format _,primary_rem _ hκ⟩ |
| 80 | refine Printed.bind Y 0 Necklace.empty (fun j=> (hj j).1) (fun j=> (hj j).2) ?_ ?_ ?_ ?_ |
| 81 | · unfold together; rw [add_zero, Finset.sum_eq_single i,he]; intro j hj h; rw [hx j h]; unfold V; rw [invoice_zero,glyph_zero]; simp |
| 82 | · funext j; by_cases hi:j=i; subst j; rw [he,chunk_self]; exact (chunk_miss _ hi).trans (hx j hi ▸ rfl) |
| 83 | · funext j; by_cases hi:j=i |
| 84 | · subst j; rw [he,chunk_self] |
| 85 | rw [hx j hi,chunk_miss _ hi] |
| 86 | unfold V Trace.Physical.Germ.projection; simp only [Extra.Histories.primary, Pi.zero_apply]; simp_rw [Trace.Physical.Germ.vector] |
| 87 | have hV: Trace.Physical.Germ.label C.params o (0:Config G n→ℂ) (kept j)=0:=by |
| 88 | unfold Trace.Physical.Germ.label; split; next h=> |
| 89 | apply Next.Foundations.JetTest.unique h.choose_spec |
| 90 | apply (Next.Foundations.jetTest_zero_iff ..).mpr |
| 91 | exact fun x=>⟨contDiffAt_const,fun k _=>by simp⟩ |
| 92 | next=>rfl |
| 93 | simp [hV] |
| 94 | simp [t] |
| 95 | omit i P |
| 96 | lemma printed_high (φ:PulseC)(hf:Tail d φ)(ht:Priced d φ b)(p:Coefficient (C.labels.level 0) n) (hp:p.Format o C.params R)(hy:p.remBound o R κ a): |
| 97 | Printed C d R o κ (glyph φ (invoice p o (S 0) R)) 0 0 (b*((K 0).coeffSize p.x+a)):=by |
| 98 | have hκ:0 < κ:=by obtain ⟨b,c,-,-,-,h,-⟩:=hy; exact h |
| 99 | rcases Printed.blank (d:=d) (o:=o) (R:=R) (C:=C) hκ with @⟨V,X,v,w,Y,H,hA,hp',he,hq,hC⟩ |
| 100 | refine Printed.bind V _ (.chain φ hf ht p hp hy Y) H hA ?_ he hq ?_ |
| 101 | · rw [add_left_comm,hp',add_zero] |
| 102 | rw [add_left_comm]; exact (add_le_add_right hC _).trans_eq (add_zero _) |
| 103 | end |
| 104 | end YM.RG05Readout.Address |