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.ProjectorNext.PROJECTOR_CALIBRATION.Outlay |
| 2 | |
| 3 | /-! # Regulator receipts that the cylinder can use before Compares -/ |
| 4 | set_option autoImplicit false |
| 5 | noncomputable section |
| 6 | namespace YM.ProjectorNext.Calibration.Outlay |
| 7 | open Wilson Lattice RG Labels Work Work.G07 Tensor Next.Foundations Push.CutoffProjectors Function |
| 8 | open scoped Topology Matrix.Norms.Frobenius BigOperators InnerProductSpace |
| 9 | variable {G : Gauge} {d : ℕ} {H : Source.Hol G} (M : Machine H d) (F : Labels.Frame G d) |
| 10 | variable (k p : ℕ) |
| 11 | |
| 12 | private lemma reface (v : PlaqAxes) (x : Cover) (h : (Slot.mk (route 0 x 1) v).stencil ⊆ (garden M)) : |
| 13 | Rate k p (garden M) 1 0 (fun U : CoverConfig G => G.curvature (faceValue U (x,v))) := by |
| 14 | let u (U : CoverConfig G) := travel U 0 (route 0 x 1) |
| 15 | let b : RG.Slot := ⟨route 0 x 1,v⟩ |
| 16 | have hb : b.offset=x := route_end .. |
| 17 | have hf (U : CoverConfig G) : G.curvature (faceValue U (x,v))=G.adjoint (u U)⁻¹ (b.eval U) := by |
| 18 | change _=G.adjoint (u U)⁻¹ (G.adjoint (u U) (G.curvature (faceValue U (b.offset,v)))) |
| 19 | rw [← G.adjoint_mul,inv_mul_cancel,G.adjoint_one,hb] |
| 20 | rw [funext hf] |
| 21 | have hu : Rate k p (garden M) 0 1 (fun U => G.mat (u U)) := rate_path .. |
| 22 | have ha := relax hu.inv_mat |
| 23 | have hn := (paid_slot (k:=k) (P:=p) (S:=(garden M)) (G:=G) b h).postcomp G.colorMat.toContinuousLinearMap |
| 24 | exact ((ha.mul hn).mul (ha.postcomp (starL' ℝ).toContinuousLinearMap)).postcomp G.projectColor.toContinuousLinearMap |
| 25 | |
| 26 | private lemma reloop (v : PlaqAxes) (x : Cover) (h : (Slot.mk (route 0 x 1) v).stencil ⊆ (garden M)) (l : Axis) : |
| 27 | Rate k p (garden M) 1 0 (fun U : CoverConfig G => G.curvature ((U (x,l))⁻¹*faceValue U (x,v)*U (x,l))) := by |
| 28 | have hu := relax (Rate.inv_mat (u:=fun U : CoverConfig G => U (x,l)) (rate_link (G:=G) (k:=k) (P:=p) (S:=(garden M)) (x,l))) |
| 29 | have hv := (reface M k p v x h).postcomp G.colorMat.toContinuousLinearMap |
| 30 | have he (u : G.El) (y : G.El) : G.curvature (u⁻¹*y*u)=G.adjoint u⁻¹ (G.curvature y) := by |
| 31 | simpa only [inv_inv] using G.curvature_conjugate u⁻¹ y |
| 32 | simp_rw [he]; exact ((hu.mul hv).mul (hu.postcomp (starL' ℝ).toContinuousLinearMap)).postcomp G.projectColor.toContinuousLinearMap |
| 33 | |
| 34 | lemma rate_gradient (i : M.Outlet) : |
| 35 | Rate k p (garden M) 1 0 (fun U : CoverConfig G => gradient U (M.address i).1 (M.address i).2) := by |
| 36 | unfold gradient staple |
| 37 | refine rateSum _ _ fun j _ => ?_ |
| 38 | have hs (l : Fin 3) : (faces M i j l).stencil ⊆ (garden M) := fun x hx => |
| 39 | Finset.mem_union_right _ (Finset.mem_union_right _ (Finset.mem_biUnion.mpr ⟨j,Finset.mem_univ _,Finset.mem_biUnion.mpr ⟨i,Finset.mem_univ _,Finset.mem_biUnion.mpr ⟨l,Finset.mem_univ l,hx⟩⟩⟩)) |
| 40 | let x := (M.address i).1 |
| 41 | have h₀ := reface M k p j x (hs 0) |
| 42 | have h₁ := reloop M k p j (x-step j.val.2) (hs 1) j.val.2 |
| 43 | have h₂ := reloop M k p j (x-step j.val.1) (hs 2) j.val.1 |
| 44 | let L : G.Color →L[ℝ] G.Color := -(ContinuousLinearMap.id ℝ G.Color) |
| 45 | refine Rate.add ?_ ?_ |
| 46 | all_goals split |
| 47 | · simp_rw [sub_eq_add_neg]; exact h₀.add (h₁.postcomp L) |
| 48 | · exact spare |
| 49 | · simp_rw [sub_eq_add_neg]; exact h₂.add (h₀.postcomp L) |
| 50 | exact spare |
| 51 | |
| 52 | lemma rate_energy (i : F.Index) : Rate k p (garden M) (F.grades i).2 0 (M.energyLeg F i) := by |
| 53 | by_cases ht : 1≤(F.grades i).2 |
| 54 | · unfold Machine.energyLeg |
| 55 | refine rateSum _ _ fun j _ => ?_ |
| 56 | rw [show (fun U => M.valve F i j (gradient U _ _) U)=_ from funext fun U => (M.energyContract F U j i).symm] |
| 57 | refine rateSum _ _ fun v _ => ?_ |
| 58 | simpa only [Nat.sub_add_cancel ht] using! (rate_valve M F i k p j (colors G v)).mul ((rate_gradient M k p j).postcomp |
| 59 | (Complex.ofRealCLM.comp (innerSL ℝ (colors G v)))) |
| 60 | have hI : IsEmpty (Fin (F.grades i).2) := ⟨fun v => by have he := v.isLt; omega⟩ |
| 61 | have hE (U : CoverConfig G) : M.energyLeg F i U=0 := Finset.sum_eq_zero fun j _ => by |
| 62 | unfold Machine.valve; rw [Cross.mixSum]; exact Finset.sum_of_isEmpty _ |
| 63 | rw [funext hE]; exact spare |
| 64 | |
| 65 | -- Restricted lower budget for div on actual fitting stencils; |
| 66 | -- coefficient possibility (garden M) chosen here. |
| 67 | def Tariff (n : ℕ) (f : CoverConfig G → ℂ) := |
| 68 | ∃ c : ℝ, 0≤c ∧ ∀ (B : BudgetPoint) (N : Side), Machine.Opened (garden M) N → B.power=p → ∀ o : Site N, |
| 69 | LeftBound k (B.dirBound o) (Healthy B.threshold ((garden M).image fun x => wrap N x + o)) |
| 70 | 1 (c*B.threshold^n) (fun U => f (expandAt o U)) |
| 71 | |
| 72 | lemma groupSum {m : ℕ} {I : Type*} (w : Finset I) (f : I → CoverConfig G → ℂ) (h : ∀ i∈w,Tariff M k p m (f i)) : |
| 73 | Tariff M k p m (fun U => ∑ i∈w,f i U) := by |
| 74 | classical |
| 75 | induction w using Finset.induction_on with |
| 76 | | empty => simp; exact ⟨0,le_rfl,fun b N _ _ _ => by simpa using! LeftBound.const (by norm_num : (0:ℝ)≤1) (0:ℂ) (G:=G) (n:=N)⟩ -- stuck params |
| 77 | | insert a w ha ih => |
| 78 | obtain ⟨c,hc,he⟩ := h a (by simp) |
| 79 | obtain ⟨t,ht,hf⟩ := ih fun i hi => h i (by simp_all) |
| 80 | simp only [Finset.sum_insert ha] |
| 81 | refine ⟨c+t,add_nonneg hc ht,fun b N hn hp o => ?_⟩ |
| 82 | rw [add_mul]; exact (he b N hn hp _).add (hf b N hn hp _) |
| 83 | |
| 84 | private lemma allowed (b : BudgetPoint) (n : Side) (o : Site n) (j : Edge (Site n)) (c : G.ColorIndex) : |
| 85 | b.dirBound o (b.threshold • Packet.forward j c) := by |
| 86 | intro e |
| 87 | let t:=b.threshold |
| 88 | change ‖t • ((Pi.single j (colors G c) : Directions G n) e)‖ ≤ _ |
| 89 | have hp : 1 ≤ (1+(separation e.1 o : ℝ))^b.power := one_le_pow₀ (by simp) |
| 90 | have ht : 0 ≤ t := b.threshold_pos.le |
| 91 | rw [norm_smul,Real.norm_of_nonneg ht] |
| 92 | refine mul_le_mul_of_nonneg_left (_root_.le_trans ?_ hp) ht |
| 93 | by_cases h : e=j <;> simp [h] |
| 94 | |
| 95 | set_option maxHeartbeats 400000 in |
| 96 | /-- Unpaid version with positive derivative threshold per increment; therefore useful in low slot cases. -/ |
| 97 | lemma valveRaw {Y : Finset Cover} (m : F.Index) (w : M.Outlet) (c : G.Color) : Rate k p Y 0 1 (M.valve F m w c) := by |
| 98 | have he : Rate k p Y 0 1 M.estimate := |
| 99 | Rate.postcomp (ratePi (E:=G.Color) (G:=G) (fun i => (M.loops i).eval) fun i => raw_slot _) M.recover.toContinuousLinearMap |
| 100 | have ht : Rate k p Y 0 1 (fun U : CoverConfig G => G.mat (travel U 0 (base (M.address w)))) := rate_path .. |
| 101 | have hc := Rate.const (k:=k) (P:=p) (S:=Y) (a:=1) (G:=G) (G.colorMat c) |
| 102 | have hu : Rate k p Y 0 1 (fun U : CoverConfig G => M.channel w U c) := ((ht.mul hc).mul (ht.postcomp (starL' ℝ).toContinuousLinearMap)).postcomp ((M.tap w).toContinuousLinearMap.comp G.projectColor.toContinuousLinearMap) |
| 103 | unfold Machine.valve; simp_rw [Cross.mixSum] |
| 104 | refine rateSum _ _ fun i _ => ?_ |
| 105 | have hh : ∑ _ : Fin (F.grades m).2,(0:ℕ)=0 := Finset.sum_const_zero |
| 106 | let f (v : Fin (F.grades m).2) (U) := Cross.cell M.U (M.estimate U) i (M.channel w U c) v |
| 107 | have hl v : Rate k p Y 0 1 (f v) := by |
| 108 | unfold f Cross.cell; by_cases hv : v=i |
| 109 | · subst v; simp; exact hu |
| 110 | simp_rw [update_of_ne hv]; unfold Cross.field; split |
| 111 | · exact he |
| 112 | exact he.postcomp (LinearMap.toContinuousLinearMap M.U) |
| 113 | simpa only [hh] using! credit (Machine.shade F m) f (fun _ => 0) hl |
| 114 | |
| 115 | lemma rate_left (m : F.Index) (i : M.Outlet) (j : G.ColorIndex) : Tariff M k p ((F.grades m).2-2) |
| 116 | (left (M.valve F m i (colors G j)) (M.address i) (colors G j)) := by |
| 117 | let l := (F.grades m).2; let q : ℕ := if 2≤l then l-1 else 0; let a : ℕ := if 2≤l then 0 else 1 |
| 118 | have hq : Rate (k+1) p (garden M) q a (M.valve F m i (colors G j)) := by |
| 119 | unfold q a; split |
| 120 | · exact rate_valve .. |
| 121 | exact valveRaw M F (k+1) p m i _ |
| 122 | obtain ⟨c,hc,h⟩ := hq |
| 123 | refine ⟨c,hc,fun b N hN hb o => ?_⟩ |
| 124 | have he := h b hb N o |
| 125 | let t := b.threshold |
| 126 | let u := colors G j |
| 127 | let e := M.address i |
| 128 | let D := Packet.forward (M.port o i) j |
| 129 | let f := fun V => M.valve F m i u (expandAt o V) |
| 130 | have ht := he.inner_derivative (pow_nonneg b.threshold_pos.le _) (allowed b N o (M.port o i) j) |
| 131 | have hh (U : Config G N) : leftDerivs f [t • D] U=t • left (M.valve F m i u) e u (expandAt o U) := by |
| 132 | change deriv (fun a : ℝ => f (increment U (a • t • D))) 0 = _ |
| 133 | have hw (a : ℝ) : f (increment U (a • t • D))= M.valve F m i u (pushLink (expandAt o U) (Pi.single e u) (a*t)) := by |
| 134 | rw [smul_smul] |
| 135 | exact Machine.matched_increment _ (M.released F i m j _ (housed M)).supported hN o U e ((housed M).start i) u _ |
| 136 | rw [funext hw] |
| 137 | have hr := (M.released F i m j _ (housed M)).authentic (expandAt o U) e u |
| 138 | have hm : HasDerivAt (fun a : ℝ => a*t) t 0 := by simpa using (hasDerivAt_id' (0:ℝ)).mul_const t |
| 139 | have hx := hr.scomp_of_eq (𝕜:=ℝ) (0:ℝ) hm (by simp) |>.deriv |
| 140 | exact hx |
| 141 | let L : ℂ →L[ℝ] ℂ := t⁻¹ • ContinuousLinearMap.id ℝ ℂ |
| 142 | let q₀ := left (M.valve F m i u) e u |
| 143 | have hr : (fun U => q₀ (expandAt o U)) = fun U => L (leftDerivs f [t • D] U) := by |
| 144 | funext U; rw [hh]; change q₀ _=t⁻¹ • t • q₀ _; rw [smul_smul,inv_mul_cancel₀ (by exact b.threshold_pos.ne'),one_smul] |
| 145 | change LeftBound _ _ _ _ _ (fun U => q₀ (expandAt o U)); rw [hr] |
| 146 | by_cases hv : 2 ≤ l |
| 147 | · rw [show a=0 from if_pos hv,show q= l-1 from if_pos hv,pow_zero,mul_one] at ht |
| 148 | convert ht.postcomp L using 1 |
| 149 | have hsub : l-1=(l-2)+1 := by omega |
| 150 | change c*t^(l-2)=‖L‖*(c*t^(l-1)); unfold L |
| 151 | rw [norm_smul,ContinuousLinearMap.norm_id, Real.norm_of_nonneg (inv_pos.mpr b.threshold_pos).le,mul_one,hsub,pow_succ] |
| 152 | field_simp [b.threshold_pos.ne',t] |
| 153 | rfl |
| 154 | -- l<2: derivative does pay threshold on these raw valves |
| 155 | have hk : a=1 := if_neg hv |
| 156 | have hn : q =0 := if_neg hv |
| 157 | rw [hk,hn,pow_one,pow_zero,mul_one] at ht |
| 158 | have hu : ‖L‖*(c*b.threshold)=c := by |
| 159 | unfold L; rw [norm_smul,ContinuousLinearMap.norm_id, Real.norm_of_nonneg (inv_pos.mpr b.threshold_pos).le] |
| 160 | field_simp [b.threshold_pos.ne',t] |
| 161 | have hi := ht.postcomp L; rw [hu] at hi |
| 162 | refine ⟨hi.1,mul_nonneg hc (by exact pow_nonneg b.threshold_pos.le _),fun r he hs U hU => ?_⟩ |
| 163 | have hd := hi.3 r he hs U hU |
| 164 | have hf : b.threshold^r.length ≤ 1 := pow_le_one₀ b.threshold_pos.le b.threshold_le |
| 165 | rw [show (F.grades m).2-2=0 by change l-2=0; omega,pow_zero,mul_one] |
| 166 | exact hd.trans (by simpa using mul_le_mul_of_nonneg_left hf hc) |
| 167 | end YM.ProjectorNext.Calibration.Outlay |