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.Ac.Tree |
| 2 | import YM.Integrated |
| 3 | import YM.Work.A05.Read |
| 4 | import YM.Work.A07 |
| 5 | import YM.Work.B04 |
| 6 | import YM.Work.B06 |
| 7 | import YM.Work.F05 |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | /-! |
| 11 | # The RScene gate at the periods actually read |
| 12 | |
| 13 | This is conditional on PathData funding; no pre-L uniformity is being |
| 14 | claimed for the gap constant (it is chosen *before the wait*, but after L). |
| 15 | The period entrance requirement for this piece can be paid by `shells` |
| 16 | regardless of the rest of the spatial budget. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | namespace YM.Stationary |
| 21 | open Function Lattice RG Wilson Precision Tree Supply Matrix Pressure Filter Exterior |
| 22 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius InnerProductSpace |
| 23 | variable {G : Gauge} |
| 24 | |
| 25 | /-- This ask can even be determined by the two shape indices, before L. -/ |
| 26 | def GateVolume (j : ℕ) := 100 * (j+3+4) |
| 27 | |
| 28 | section level |
| 29 | variable {s : Sheet G} {L : Rolls s} {M : Protection L} {W : Delays M} {b : Bar W} {v : Wait b} |
| 30 | {a : Levels G} |
| 31 | |
| 32 | theorem larger (h : Paid v a) (hv : ∀ j, GateVolume j ≤ W.shells j) (m p : ℕ) : |
| 33 | Bid.Larger (a.clock.op m p) (G:=G) := by |
| 34 | let X := a.S.block m |
| 35 | let j := a.clock.J (m+1) |
| 36 | have he := h.volume m p |
| 37 | have hs : GateVolume j ≤ (a.S.side m p).val := (hv j).trans ((Nat.le_mul_of_pos_right _ (by positivity)).trans he) |
| 38 | refine ⟨(a.blocks m p).branches,?_,?_⟩ |
| 39 | · rw [show (a.S.side (m+1) p).val = _ from (a.S.oneStep m p).exact_size] |
| 40 | change 100 * ((j+3)*X.val+4*X.val) ≤ (a.S.side m p).val * X.val |
| 41 | rw [← add_mul, ← mul_assoc] |
| 42 | exact Nat.mul_le_mul_right _ hs |
| 43 | exact lt_of_lt_of_le (by unfold GateVolume; omega) hs |
| 44 | |
| 45 | /-- Enough input for both `Planned.gap` and the graph-wise next transfer, |
| 46 | including a gap uniform among all Steps at this choice of K and post L. -/ |
| 47 | structure BudgetGap (s : Sheet G) (L : Rolls s) (Y : MapPrices) (η : ℕ → ℝ) : Prop where |
| 48 | pos j : 0 < η j |
| 49 | ask (j : ℕ) {c f : Side} (S : StepData c f) |
| 50 | (hk : S.kernel=s.kernel) (hl : S.patch.L=L.L j) (hj : S.patch.J=j) |
| 51 | (u : Bid.Larger S (G:=G)) (H : Forest S.ratio) (B C : Bed) |
| 52 | (p q : Clip) (R : PathData G) (σ A Λ e δ υ : ℝ) (T : Towers S.patch.L) : |
| 53 | T.Diagonal S B C → Floor B p f (Y.η j) e → R.Bounds p σ A Λ → |
| 54 | Attached B R → Bid.Sworn B f G → Floor C q c δ υ → |
| 55 | PriceGap H p R (η j) ∧ ∃ ρ, Critical H p R ρ ∧ |
| 56 | Guessed H (Bloch.installed S.ratio T.A0) ρ ∧ Bid.HeatG H p R ρ C |
| 57 | |
| 58 | theorem scene_gate (L : Rolls s) (Y : MapPrices) : ∃ η, BudgetGap s L Y η := by |
| 59 | choose η hη hu using fun j => |
| 60 | (Integrated.stationary_scene (G:=G) (L.L j) j s.kernel (Y.η j) (Y.eta_pos j)).χ |
| 61 | exact ⟨η, hη, fun j _ _ => hu j _ _⟩ |
| 62 | |
| 63 | variable {H : Horizon a} {Y : MapPrices} {η : ℕ → ℝ} |
| 64 | |
| 65 | |
| 66 | end level |
| 67 | |
| 68 | section forest |
| 69 | variable {c f : Side} {S : StepData c f} |
| 70 | {H T : Forest S.ratio} {p : Clip} {R R' : PathData G} {A : ChartRatio G} |
| 71 | {ρ : Bid.Dir G c → AxisChart G H} {ρ' : Bid.Dir G c → AxisChart G T} |
| 72 | {η σ K Λ : ℝ} |
| 73 | |
| 74 | /-- The real germ assertion in `retains`, independently of the unknown |
| 75 | momentum bound. -/ |
| 76 | lemma born (hw : R.Bounds p σ K Λ) (h : Critical H p R ρ) (hg : PriceGap H p R η) |
| 77 | (hη : 0 < η) (hA : LocalRatio A) (t : S.Choices) : ContDiffAt ℝ ω (thermal H t p R ρ A) 0 := by |
| 78 | have hi : ContDiffAt ℝ ω (fun x : Bid.Dir G c => (x,ρ x)) 0 := contDiffAt_id.prodMk h.2.1 |
| 79 | let F := tested H t p R |
| 80 | have hh : ContDiffAt ℝ ω (fun z : Bid.Dir G c × AxisChart G H => fderiv ℝ (fderiv ℝ (F z.1)) z.2) (0,ρ 0) := by |
| 81 | rw [h.1]; exact Work.F05.curve_partial (F:=fun x => fderiv ℝ (F x)) (Work.F05.curve_partial (h.2.2 t).1) |
| 82 | have hu : ContDiffAt ℝ ω (fun x => (hessian H t p R x (ρ x)).det) 0 := by |
| 83 | -- no choice of norm on matrix-valued functions enters |
| 84 | simp_rw [Matrix.det_apply] |
| 85 | refine ContDiffAt.sum fun i _ => ?_ |
| 86 | simp only [Units.smul_def, zsmul_eq_mul] |
| 87 | refine ContDiffAt.mul contDiffAt_const (contDiffAt_prod (by intro a _; dsimp only [hessian,Matrix.of_apply]; simp_rw [iteratedFDeriv_two_apply]; exact ((hh.comp (f:=fun x => (x,ρ x)) 0 hi).clm_apply contDiffAt_const).clm_apply contDiffAt_const)) |
| 88 | have hd := (Work.F05.hessian_pos hη hg h t).self_of_nhds |
| 89 | have hm (e : H.Free) : ContDiffAt ℝ ω (fun x => A.J (ρ x e)) 0 := by |
| 90 | have hj := hA.germ 0 (Metric.mem_ball_self hA.patch) |
| 91 | exact (show ContDiffAt ℝ ω A.J (ρ 0 e) by rwa [h.1]).comp (f:=fun x => ρ x e) 0 ((contDiffAt_apply ℝ G.Color e _).comp 0 h.2.1) |
| 92 | unfold thermal |
| 93 | refine ContDiffAt.sub (ContDiffAt.add ?_ (ContDiffAt.mul contDiffAt_const (hu.log hd.ne'))) |
| 94 | ((contDiffAt_prod (fun e _ => hm e)).log (by rw [h.1]; simp [hA.anchored])) |
| 95 | unfold loop Patch.average |
| 96 | refine ContDiffAt.mul contDiffAt_const (ContDiffAt.sum fun s _ => ?_) |
| 97 | refine Work.F02.uncut_contDiffAt (A:=fun x : Bid.Dir G c => pull s 0 (lifting H (represent x) (ρ x))) hw.width hw.two (fun i => ?_) |
| 98 | have Hm (e : Edge (Site f)) : ContDiffAt ℝ ω (fun x => G.mat (lifting H (represent x) (ρ x) e)) 0 := |
| 99 | (show ContDiffAt ℝ ω (fun u : Work.F03.ChartVars H G => G.mat (Work.F03.live H u e)) (0,ρ 0) by |
| 100 | rw [h.1]; exact Work.F03.live_smooth H _).comp (f:=fun x => (x,ρ x)) 0 hi |
| 101 | unfold pull Step.read; split |
| 102 | · exact (show G.Mat ≃L[ℝ] G.Mat from starL ℝ).contDiff.contDiffAt.comp _ (Hm _) |
| 103 | exact Hm _ |
| 104 | |
| 105 | theorem transfer_bound {q : Clip} {α D ν M : ℝ} (hx : Bid.Larger (G:=G) S) |
| 106 | (hw : R.Bounds p σ K Λ) (hA : LocalRatio A) (hη : 0 < η) |
| 107 | (h : Critical H p R ρ) (ht : Critical T p R ρ') |
| 108 | (hv : PriceGap H p R η) (hu : PriceGap T p R η) |
| 109 | (hq : FiniteBound T R R' p q α A ρ' D ν M) : FiniteBound H R R' p q α A ρ D ν M := by |
| 110 | refine ⟨Work.F05.hessian_pos hη hv h,born hw h hv hη hA, hq.classicalResult,?_⟩ |
| 111 | intro t i j v w hi hj |
| 112 | have hh := Work.F05.same_thermal hx.1 hw h ht hη hu hA t |
| 113 | exact (hh.iteratedFDeriv ℝ 2).eq_of_nhds.symm ▸ hq.wave_price t i j v w hi hj |
| 114 | end forest |
| 115 | end YM.Stationary |
| 116 | end |
| 117 | |
| 118 | /-! |
| 119 | # Costed path realization of the base |
| 120 | |
| 121 | The `.full` read of an arbitrary Bed need not use paths in the interface. Here we |
| 122 | arrange the paths, including in the repeated-plateau case, before choosing the |
| 123 | atom fields. Work on the cover and price true lengths, not wrapped/geodesic |
| 124 | lengths. Metric at zero read from Floor on the one-site torus (available by |
| 125 | Suffices.all, not the actual testing periods). |
| 126 | -/ |
| 127 | noncomputable section |
| 128 | |
| 129 | namespace YM.Stationary |
| 130 | open Filter Function Lattice RG Wilson Precision Tree Supply Matrix Pressure Exterior Bloch Laurent Finset |
| 131 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius InnerProductSpace |
| 132 | |
| 133 | variable {G : Gauge} |
| 134 | |
| 135 | lemma route_length (x y : Cover) (o : Lattice.Order) : (route x y o).length = size (y-x) := by |
| 136 | have he (l : List Axis) (h : l.Nodup) : (axisRoute x y l).length = ∑ i ∈ l.toFinset, ((y-x) i).natAbs := by |
| 137 | induction l with |
| 138 | | nil => simp [axisRoute] |
| 139 | | cons i l ih => |
| 140 | obtain ⟨h₁,h₂⟩ := List.nodup_cons.mp h |
| 141 | rw [List.toFinset_cons, show axisRoute x y (i::l) = straight i ((y-x) i) ++ axisRoute x y l from rfl, |
| 142 | sum_insert (by simpa using h₁), List.length_append, ih h₂, straight, List.length_replicate] |
| 143 | have hm (i : Axis) : i ∈ (allAxes o).toFinset := List.mem_toFinset.mpr (List.mem_map.mpr |
| 144 | ⟨o.symm i,List.mem_finRange _,o.apply_symm_apply _⟩) |
| 145 | rw [route, he (allAxes o) ((List.nodup_finRange _).map o.injective), eq_univ_of_forall hm]; rfl |
| 146 | |
| 147 | def walkSlot (b : PlaqAxes) (y : Cover) : Slot := ⟨route 0 y (Equiv.refl Axis),b⟩ |
| 148 | |
| 149 | @[simp] lemma walkSlot_end (b : PlaqAxes) (y : Cover) : (walkSlot b y).offset=y := route_end _ _ _ |
| 150 | lemma walkSlot_cost (b : PlaqAxes) (y : Cover) : (walkSlot b y).length = size y+4 := by |
| 151 | unfold walkSlot Slot.length; rw [route_length,sub_zero] |
| 152 | |
| 153 | lemma budget_copy {ι ζ : Type*} (e : ι ≃ ζ) {f : ζ → ℝ} {c : ℝ} (h : SumBudget f c) : SumBudget (f ∘ e) c := by |
| 154 | exact ⟨fun i => h.1 _,e.summable_iff.mpr h.2.1,(e.tsum_eq f).trans_le h.2.2⟩ |
| 155 | |
| 156 | lemma budget_prod_finite {ι ζ : Type*} [Fintype ι] {f : ι×ζ → ℝ} {A : ι → ℝ} (h : ∀ i, SumBudget (fun x => f (i,x)) (A i)) : SumBudget f (∑ i, A i) := by |
| 157 | have hs (i : ι × ζ) : 0 ≤ f i := (h i.1).1 _ |
| 158 | have hh := (summable_prod_of_nonneg (f:=f) hs).2 ⟨fun i => (h i).2.1,(hasSum_fintype _).summable⟩ |
| 159 | refine ⟨hs,hh,?_⟩ |
| 160 | rw [hh.tsum_prod, tsum_fintype] |
| 161 | exact sum_le_sum fun i _ => (h i).2.2 |
| 162 | |
| 163 | def enumerate (α : Type) [Countable α] [Infinite α] : ℕ ≃ α := (@Denumerable.eqv α (Classical.choice (nonempty_denumerable α))).symm |
| 164 | |
| 165 | abbrev addresses : ℕ ≃ PlaqAxes × Cover := by |
| 166 | haveI : Nonempty PlaqAxes := ⟨⟨(0,1),by decide⟩⟩ |
| 167 | exact enumerate _ |
| 168 | |
| 169 | def rowPath (B : Bed) (b : PlaqAxes) (n : ℕ) := |
| 170 | let i := addresses n |
| 171 | (B.roots (plaquette b) (plaquette i.1) i.2,walkSlot i.1 i.2) |
| 172 | |
| 173 | def emitBase (G : Gauge) (B : Bed) (A : ℕ → Atom G 2) (X : ℕ → Atom G 3) (Y : ℕ → Atom G 4) : PathData G := |
| 174 | ⟨rowPath B,A,X,Y⟩ |
| 175 | |
| 176 | def rowPrice (σ C : ℝ) := (Fintype.card PlaqAxes:ℝ) * (C*Real.exp (σ*4)) |
| 177 | |
| 178 | lemma price_paths {B : Bed} {σ C : ℝ} (h : B.roots.strip σ C) (b : PlaqAxes) : |
| 179 | SumBudget (fun k => |(rowPath B b k).1| * Real.exp (σ * (rowPath B b k).2.length)) (rowPrice σ C) := by |
| 180 | let f : PlaqAxes × Cover → ℝ := fun x => |B.roots (plaquette b) (plaquette x.1) x.2| * Real.exp (σ * (walkSlot x.1 x.2).length) |
| 181 | refine budget_copy addresses (?_ : SumBudget f _) |
| 182 | have he : rowPrice σ C = ∑ _ : PlaqAxes, C * Real.exp (σ*4) := by simp [rowPrice] |
| 183 | rw [he]; refine budget_prod_finite (A:=fun _ => _) (fun i => ?_) |
| 184 | let g (x : Cover) := Real.exp (σ*size x) * ‖B.roots (plaquette b) (plaquette i) x‖ |
| 185 | let d := Real.exp (σ*4) |
| 186 | have ht : SumBudget g C := h (plaquette b) (plaquette i) |
| 187 | rw [show (fun x => f (i,x)) = (fun x => g x*d) by |
| 188 | funext x; unfold f g d; rw [walkSlot_cost]; push_cast; rw [mul_add,Real.exp_add,mul_comm _ ‖_‖]; simp only [Real.norm_eq_abs]; ring] |
| 189 | refine ⟨fun i => mul_nonneg (ht.1 _) (Real.exp_pos _).le,ht.2.1.mul_right d,?_⟩ |
| 190 | rw [tsum_mul_right]; exact mul_le_mul_of_nonneg_right ht.2.2 (Real.exp_pos _).le |
| 191 | |
| 192 | section matching |
| 193 | variable {R : PathData G} {B : Bed} (hR : R.row=rowPath B) |
| 194 | include hR |
| 195 | |
| 196 | lemma rows_layout : Attached B R := by |
| 197 | constructor |
| 198 | intro i j x |
| 199 | rw [hR] |
| 200 | let g := fun y : PlaqAxes × Cover => if (j,x)=y then B.roots (plaquette i) (plaquette j) x else 0 |
| 201 | have ht : (fun k => if (rowPath B i k).2.plaq=j ∧ (rowPath B i k).2.offset=x then (rowPath B i k).1 else 0) = g ∘ addresses := by |
| 202 | ext k; unfold g; by_cases h : addresses k = (j,x) |
| 203 | · simp only [rowPath,h, walkSlot_end,Function.comp_apply, ↓reduceIte] |
| 204 | simp [walkSlot] |
| 205 | rw [Function.comp_apply,if_neg (Ne.symm h)]; apply if_neg |
| 206 | rintro ⟨ha,hb⟩; simp only [rowPath,walkSlot_end] at hb; exact h (Prod.ext ha hb) |
| 207 | rw [ht]; exact addresses.hasSum_iff.mpr (hasSum_ite_eq' _ _) |
| 208 | end matching |
| 209 | |
| 210 | variable {B : Bed} {p : Clip} {η M : ℝ} |
| 211 | |
| 212 | /-- Row read on the one-site torus identifies the harmonic. Does not already |
| 213 | assume the other `Bounds` clauses. -/ |
| 214 | theorem symbol_match {R : PathData G} (h0 : Attached B R) (hw : ∀ i, Summable fun k => ‖(R.row i k).1‖) |
| 215 | (h : Floor B p 1 η M) : R.metric_zero p := by |
| 216 | have hz (x : Site 1) : x=0 := by haveI : Subsingleton (Site 1) := inferInstanceAs (Subsingleton (Four (ZMod 1))); exact Subsingleton.elim .. |
| 217 | -- fiber the summable signed row by the offset of its path. |
| 218 | have hr (b q : PlaqAxes) : R.symbol0 b q = B.roots.acts 1 (0,plaquette b) (0,plaquette q) := by |
| 219 | let r (k : ℕ) := if (R.row b k).2.plaq=q then (R.row b k).1 else 0 |
| 220 | have hs : Summable r := by |
| 221 | refine (hw b).of_norm.indicator {k | (R.row b k).2.plaq=q} |>.congr (fun k => ?_) |
| 222 | simp [Set.indicator,r] |
| 223 | let t (k : ℕ) := (R.row b k).2.offset |
| 224 | have H := (hs.hasSum.tsum_fiberwise t).tsum_eq.symm |
| 225 | change (∑' k,r k)=_ |
| 226 | apply H.trans |
| 227 | rw [Row.acts,of_apply] |
| 228 | apply tsum_congr; intro x |
| 229 | rw [if_pos (hz _ |>.symm), ← (h0.layout b q x).tsum_eq, _root_.tsum_subtype _ r] |
| 230 | apply tsum_congr; intro i |
| 231 | classical |
| 232 | by_cases hi : t i=x |
| 233 | · rw [Set.indicator_of_mem (show i∈t ⁻¹' {x} from hi)] |
| 234 | unfold r |
| 235 | simp only [show (R.row b i).2.offset=x from hi,and_true] |
| 236 | rw [Set.indicator_of_notMem (show i∉t ⁻¹' {x} from hi), if_neg (fun v => hi v.2)] |
| 237 | intro i j |
| 238 | have he (x y : TypeFace 2) : B.metric.acts 1 (0,x) (0,y) = if x=y then 1 else 0 := by |
| 239 | have hh := congr_fun (congr_fun h.starts x) y |
| 240 | rw [Row.read,of_apply,Laurent.read] at hh |
| 241 | simp only [mode_constant,one_smul,← Complex.ofReal_tsum,Matrix.one_apply] at hh |
| 242 | rw [Row.acts,of_apply] |
| 243 | have hs (z : Cover) : (0 : Site 1)=0+wrap 1 z := (hz _).symm |
| 244 | change (∑' z : Cover, if (0 : Site 1)=0+wrap 1 z then B.metric x y z else 0)=_ |
| 245 | trans ∑' z : Cover, B.metric x y z |
| 246 | · exact tsum_congr fun a => if_pos (hs a) |
| 247 | split_ifs at hh ⊢ with H <;> exact_mod_cast hh |
| 248 | have H := congr_fun (congr_fun h.roots (0,plaquette i)) (0,plaquette j) |
| 249 | simp_rw [mul_apply,Fintype.sum_prod_type,he,Fintype.sum_sum_type] at H |
| 250 | rw [Finset.sum_eq_single 0] at H |
| 251 | · simp only [transpose_apply,Bed.full, of_apply, Sum.elim_inl,Sum.elim_inr, one_apply,Prod.mk.injEq,true_and, |
| 252 | mul_ite,mul_one,mul_zero,ite_mul] at H |
| 253 | rw [← Equiv.sum_comp plaqEquiv (fun x => _)] at H |
| 254 | simp [plaq_iff,← sq, Real.sq_sqrt p.quadratic_pos.le] at H |
| 255 | rw [← Equiv.sum_comp plaqEquiv (fun x => _)] at H |
| 256 | simpa [hr,eq_comm] using H |
| 257 | · exact fun x hx hn => False.elim (hn (hz x)) |
| 258 | simp |
| 259 | |
| 260 | lemma build_cap {A : ℕ → Atom G 2} {X Y} (B : Bed) {σ K Λ Ω : ℝ} |
| 261 | (hσ : 0 < σ) (hr : B.roots.strip σ Ω) (hf : Floor B p 1 η M) |
| 262 | (hv : rowPrice σ Ω ≤ K) (hA : SumBudget (fun i => (A i).budget σ) Λ) |
| 263 | (hX : SumBudget (fun i => (X i).budget σ) K) (hY : SumBudget (fun i => (Y i).budget σ) K) |
| 264 | (hu : ∀ i, (A i).Invariant ∧ (X i).Invariant ∧ (Y i).Invariant) |
| 265 | (hm : ∀ (i : Fin 2 → PlaqAxes) (x : Fin 2 → G.ColorIndex), |
| 266 | let W := emitBase G B A X Y |
| 267 | HasSum (W.loop_coeff i x) 0 ∧ ∀ l : Axis, HasSum (fun k => W.loop_coeff i x k * |
| 268 | (((((A k).leg 1).offset l - ((A k).leg 0).offset l : ℤ) : ℝ))) 0) : |
| 269 | (emitBase G B A X Y).Bounds p σ K Λ := by |
| 270 | let R := emitBase G B A X Y |
| 271 | have hk (i) : Summable fun k => ‖(R.row i k).1‖ := by |
| 272 | refine (price_paths hr i).2.1.of_nonneg_of_le (fun i => norm_nonneg _) fun n => ?_ |
| 273 | rw [Real.norm_eq_abs] |
| 274 | exact le_mul_of_one_le_right (abs_nonneg _) (Real.one_le_exp (mul_nonneg hσ.le (by positivity))) |
| 275 | refine ⟨hσ,fun i => ⟨(price_paths hr i).1,(price_paths hr i).2.1,(price_paths hr i).2.2.trans hv⟩, |
| 276 | hA,hX,hY,hu,?_,symbol_match (rows_layout (R:=R) rfl) hk hf, |
| 277 | fun i x => ⟨(hm i x).1.summable,fun l => ((hm i x).2 l).summable⟩, |
| 278 | fun i x => ⟨(hm i x).1.tsum_eq,fun l => ((hm i x).2 l).tsum_eq⟩⟩ |
| 279 | intro i q |
| 280 | refine (hk i).of_norm.indicator {k | (R.row i k).2.plaq=q} |>.congr (fun k => ?_) |
| 281 | simp [Set.indicator,R] |
| 282 | |
| 283 | private def vacantAtom (G : Gauge) (n : ℕ) : Atom G n := ⟨fun _ => walkSlot ⟨(0,1),by decide⟩ 0,0⟩ |
| 284 | |
| 285 | def blank (B : Bed) (G : Gauge) : PathData G := emitBase G B (fun _ => vacantAtom G _) (fun _ => vacantAtom G _) (fun _ => vacantAtom G _) |
| 286 | |
| 287 | @[simp] lemma blank_row : (blank B G).row=rowPath B := rfl |
| 288 | @[simp] lemma blank_loop (b : ℕ) : ((blank B G).loop b).coeff=0 := rfl |
| 289 | |
| 290 | private lemma vacant_funded (n : ℕ) {σ C : ℝ} (h : 0 ≤ C) : |
| 291 | SumBudget (fun _ : ℕ => (vacantAtom G n).budget σ) C := by |
| 292 | have he : (vacantAtom G n).budget σ=0 := by simp [Atom.budget,Atom.magnitude,vacantAtom] |
| 293 | simp_rw [he] |
| 294 | exact ⟨fun _ => le_rfl,summable_zero,(tsum_zero.trans_le h)⟩ |
| 295 | |
| 296 | /-- Pay before installing any curvature n-arities. Hessian does not |
| 297 | charge again when adding those of the right ranks. -/ |
| 298 | theorem blank_cap {σ K Λ Ω : ℝ} (hσ : 0 < σ) (hr : B.roots.strip σ Ω) |
| 299 | (hf : Floor B p 1 η M) (hv : rowPrice σ Ω ≤ K) (hb : 0 ≤ Λ) : |
| 300 | (blank B G).Bounds p σ K Λ := by |
| 301 | have hh := price_paths hr (⟨(0,1),by decide⟩:PlaqAxes) |
| 302 | have he : 0 ≤ K := (tsum_nonneg hh.1).trans (hh.2.2.trans hv) |
| 303 | have hs (n : ℕ) : (vacantAtom G n).Invariant := by simp [vacantAtom,Atom.Invariant,Atom.poly] |
| 304 | refine build_cap B hσ hr hf hv (vacant_funded _ hb) (vacant_funded _ he) |
| 305 | (vacant_funded _ he) (fun _ => ⟨hs 2,hs 3,hs 4⟩) fun i x => ?_ |
| 306 | have H (k) : (blank B G).loop_coeff i x k=0 := by unfold PathData.loop_coeff; split <;> rfl |
| 307 | change HasSum ((blank B G).loop_coeff i x) _ ∧ ∀ l : Axis, HasSum (fun k => (blank B G).loop_coeff i x k * _) 0 |
| 308 | rw [show (blank B G).loop_coeff i x = 0 from funext H] |
| 309 | constructor; · exact hasSum_zero |
| 310 | simp [hasSum_zero] |
| 311 | end YM.Stationary |
| 312 | end |