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.Push.STATIONARY_UNIFORM.ImplicitRadius |
| 2 | import YM.Push.STATIONARY_UNIFORM.Touch |
| 3 | |
| 4 | /-! |
| 5 | # Locality of stationary branch and stationary actions, from connection estimates |
| 6 | |
| 7 | Derive on-shell real bounds on the SAME continued solution. Strength/cost are |
| 8 | those of the real tensor-localization estimates; potentially usable before |
| 9 | proving strip estimates of smaller coefficient bounds on smooth routed input |
| 10 | classes. Does not attempt those sharper estimates. Response can test general |
| 11 | inhomogeneous inputs, does not require repeating tree choices. No assumed |
| 12 | analytic continuation width for the tree or paths. The radius and rate |
| 13 | parameters remain separate. |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.Push.Uniform |
| 18 | open Filter Function Set Metric Lattice Matrix |
| 19 | open scoped Topology ContDiff BigOperators Classical |
| 20 | |
| 21 | variable {ι τ : Type} [Fintype ι] [Fintype τ] |
| 22 | variable {n : Side} {N k K : ℕ} {x : Positions ι} {l : ι⊕τ → Site n} |
| 23 | {a r C m R : ℝ} {f : Positions (ι ⊕ τ) → ℝ} {g : Positions ι → Positions τ} |
| 24 | |
| 25 | def Envelope (l : ι → Site n) (m : τ → Site n) (a : ℝ) (k : ℕ) (f : Positions ι → Positions τ) (x : Positions ι) (C : ℝ) := |
| 26 | ∀ (i : ℕ), i≠0 → i≤k → ∀ q : Fin i → ι, ∀ j, ‖entry f x q j‖ ≤ C*glaze l (m j) q a |
| 27 | |
| 28 | lemma Envelope.more_cost {l : ι → Site n} {m : τ → Site n} (h : Envelope l m a k g x C) (hp : C ≤ R) : Envelope l m a k g x R := |
| 29 | fun i hn hi q j => (h i hn hi q j).trans (mul_le_mul_of_nonneg_right hp (Real.exp_pos _).le) |
| 30 | |
| 31 | lemma boltJet (q : Fin (k+1) → ι) (x : Positions ι) : entry id x q = if k=0 then bolt (q 0) else 0 := by |
| 32 | unfold entry |
| 33 | by_cases hk : k=0 |
| 34 | · subst k; simp |
| 35 | simp only [if_neg hk]; rw [iteratedFDeriv_succ_apply_right] |
| 36 | simp only [fderiv_id] |
| 37 | rw [iteratedFDeriv_const_of_ne hk]; rfl |
| 38 | |
| 39 | def upperCol : Positions ι →L[ℝ] Positions (ι ⊕ τ) := |
| 40 | (partSpace ι τ).symm.toContinuousLinearMap.comp (ContinuousLinearMap.inl ℝ (Positions ι) (Positions τ)) |
| 41 | lemma upper_bolt (i : ι) : upperCol (τ:=τ) (bolt i) = bolt (Sum.inl i) := by |
| 42 | funext j; cases j with |
| 43 | | inl j => change bolt i j = bolt (Sum.inl i) (Sum.inl j); by_cases he : j=i <;> simp [bolt,he] |
| 44 | | inr j => change 0=bolt (Sum.inl i) (Sum.inr j); simp [bolt] |
| 45 | |
| 46 | def curve (g : Positions ι → Positions τ) (x : Positions ι) := meetVar x (g x) |
| 47 | |
| 48 | lemma along (hg : ContDiffAt ℝ ω g x) : ContDiffAt ℝ ω (curve g) x := |
| 49 | (partSpace ι τ).symm.contDiff.contDiffAt.comp (f:=fun k => (k,g k)) x (contDiffAt_id.prodMk hg) |
| 50 | |
| 51 | lemma curve_step (hg : ContDiffAt ℝ ω g x) (q : Fin (k+1) → ι) : |
| 52 | entry (curve g) x q = upperCol (entry id x q)+lowerCol (entry g x q) := by |
| 53 | let T := (partSpace ι τ).symm |
| 54 | let B i := (i, g i) |
| 55 | have hB : ContDiffAt ℝ ω B x := contDiffAt_id.prodMk hg |
| 56 | have hh : entry (curve g) x q=T (entry B x q) := by unfold entry; rw [show curve g=T.toContinuousLinearMap ∘ B from rfl,T.toContinuousLinearMap.iteratedFDeriv_comp_left hB le_top]; rfl |
| 57 | rw [hh, show entry B x q = (entry id x q, entry g x q) from ?_]; exact meet_columns .. |
| 58 | unfold entry |
| 59 | rw [show iteratedFDeriv ℝ (k+1) B x=_ from iteratedFDeriv_prodMk (contDiffAt_id (n:=ω)) hg (i:=k+1) le_top]; rfl |
| 60 | |
| 61 | lemma higher_positions (hg : ContDiffAt ℝ ω g x) (j : τ) (q : Fin (k+1) → ι) : entry (curve g) x q (Sum.inr j) = entry g x q j := by rw [curve_step hg]; change (0:ℝ)+entry g x q j=_; rw [zero_add] |
| 62 | |
| 63 | -- slope coordinate as horizontal or vertical derivative of f. - |
| 64 | def coordinate (f : Positions ι → ℝ) (u : ι) (p : Positions ι) := fderiv ℝ f p (bolt u) |
| 65 | lemma coord_eq (f : Positions ι → ℝ) (u : ι) : coordinate f u=fun p => entry f p ![u] := by funext p; unfold coordinate entry; simp |
| 66 | |
| 67 | lemma varied (hf : ContDiffAt ℝ ω f (curve g x)) (i : τ) (j : ι⊕τ) : |
| 68 | fderiv ℝ (coordinate f (Sum.inr i)) (curve g x) (bolt j)=entry f (curve g x) ![j,Sum.inr i] := by |
| 69 | rw [coord_eq]; exact (tend_entry hf _).2 _ |
| 70 | |
| 71 | /-- Common rate can pay repeated exchanges up to order N inclusive, no shrink |
| 72 | in the inductive hypothesis. Still a possibly much weaker rate than the |
| 73 | coarse-strip tests on generated precision data. -/ |
| 74 | def responseRate (K N : ℕ) (C a M : ℝ) := min (weaker N a) (weaker N (tiltWidth K (M/2) a C)) |
| 75 | |
| 76 | def feedback (K : ℕ) (C a P : ℝ) (k : ℕ) := C+(Fintype.card (OrderedFinpartition (k+1)):ℝ) * (C*(1+P*(K*countCost (a/2)))^(k+1)) |
| 77 | |
| 78 | def curveCost (K : ℕ) (C a M : ℝ) : ℕ → ℝ |
| 79 | | 0 => 1 |
| 80 | | j+1 => |
| 81 | let d := tiltWidth K (M/2) a C |
| 82 | curveCost K C a M j + feedback K C a (curveCost K C a M j) j * (M/2/2)⁻¹ * ((K:ℝ) * countCost (d/2)) |
| 83 | |
| 84 | section Loop |
| 85 | -- input hypotheses ONLY at point x on graph of function stationary on its nhd. Allows along unique path e.g. not launching a new gauge branch. |
| 86 | variable (h : Receipt l a N K C r m f) |
| 87 | include h |
| 88 | lemma rate_pos : 0<responseRate K N C a m := by |
| 89 | have hM := h.pos_a; have hh : 0 < tiltWidth K (m/2) a C := tiltWidth_pos K (half_pos h.pos_m) hM h.pos_C.le |
| 90 | unfold responseRate weaker; positivity |
| 91 | lemma curveCost_ge (k : ℕ) : 1 ≤ curveCost K C a m k := by |
| 92 | have he := h.pos_C; have hm := h.pos_m; have ha := h.pos_a |
| 93 | have hp := count_pos (half_pos ha); have hq := count_pos (half_pos (tiltWidth_pos K (half_pos hm) ha he.le)) |
| 94 | induction k with |
| 95 | | zero => exact le_rfl |
| 96 | | succ k ih => unfold curveCost feedback; refine ih.trans (le_add_of_nonneg_right ?_); positivity |
| 97 | |
| 98 | lemma inverse_feedback (hg : ContDiffAt ℝ ω g x) (hz : curve g x∈closedBall 0 (reserveH K C a r m)) |
| 99 | (he : Slope f ∘ curve g =ᶠ[𝓝 x] 0) (hk : k+1 < N) (q : Fin (k+1) → ι) |
| 100 | (H : Envelope (l ∘ Sum.inl) l (responseRate K N C a m) k (curve g) x (curveCost K C a m k)) : |
| 101 | let P := entry g x q |
| 102 | let z := l ∘ Sum.inl |
| 103 | let G := block f (curve g x) *ᵥ P |
| 104 | ∀ i, ‖G i‖ ≤ feedback K C a (curveCost K C a m k) k * glaze z (l (Sum.inr i)) q (responseRate K N C a m) := by |
| 105 | intro P z Q i |
| 106 | let A := l (Sum.inr i) |
| 107 | let d := responseRate K N C a m; have hd : 0<d := rate_pos h |
| 108 | let b := curveCost K C a m k; have hc : 1 ≤ b := curveCost_ge h _ |
| 109 | let Z := curve g |
| 110 | let F := coordinate f (Sum.inr i) |
| 111 | obtain ⟨ht,hp⟩ := h.born _ (closedBall_subset_ball h.reserveH_lt hz); change ContDiffAt ℝ ω f (Z x) at ht |
| 112 | have hF : ContDiffAt ℝ ω F (Z x) := (ht.fderiv_right (m:=ω) (by simp)).clm_apply contDiffAt_const |
| 113 | let S := Finset.univ.erase (onePart k) |
| 114 | let T (c : OrderedFinpartition (k+1)) := (ftaylorSeries ℝ F (Z x)).compAlongOrderedFinpartition (ftaylorSeries ℝ Z x) c |
| 115 | let v : Fin (k+1) → Positions ι := fun i => bolt (q i) |
| 116 | have hy : entry (F ∘ Z) x q=0 := by |
| 117 | have hb : F ∘ Z =ᶠ[𝓝 x] 0 := by |
| 118 | filter_upwards [he] with y hy; unfold F; rw [coord_eq]; exact congr_fun hy i |
| 119 | unfold entry; rw [(hb.iteratedFDeriv ℝ _).eq_of_nhds, iteratedFDeriv_zero]; rfl |
| 120 | let L := fderiv ℝ F (Z x) |
| 121 | let Y := L (upperCol (entry id x q)) |
| 122 | have hh : (Y+Q i)+(∑ j∈S,T j) v=0 := by |
| 123 | unfold entry at hy |
| 124 | rw [comp_step (along hg) hF k] at hy |
| 125 | change L (entry Z x q) + (∑ j∈S,T j) v=0 at hy |
| 126 | rw [curve_step hg, map_add] at hy |
| 127 | rw [show Q i = L (lowerCol P) from ?_]; exact hy |
| 128 | change _ = (L ∘L lowerCol) P |
| 129 | rw [by_row] |
| 130 | apply Finset.sum_congr rfl |
| 131 | intro j _ |
| 132 | change _ = P j * L (lowerCol (bolt j)); rw [lower_bolt, show L _ = _ from varied ht i (Sum.inr j)] |
| 133 | exact mul_comm .. |
| 134 | have hC := h.pos_C |
| 135 | have hw := scatter_derivative f ht hp (Sum.inr i) hk |
| 136 | let I := glaze z A q d |
| 137 | have hI : 0 < I := Real.exp_pos _ |
| 138 | have hu : ‖Y‖ ≤ C * I := by |
| 139 | unfold Y; by_cases hv : k=0 |
| 140 | · subst k; rw [boltJet,if_pos rfl,upper_bolt] |
| 141 | rw [show L (bolt _) = _ from varied ht i _]; apply (hp _ hk ![Sum.inl (q 0),Sum.inr i] 1).trans |
| 142 | apply mul_le_mul_of_nonneg_left _ hC.le |
| 143 | unfold I glaze A z |
| 144 | apply Real.exp_monotone |
| 145 | simp only [spanSites, Fin.sum_univ_succ, Fin.sum_univ_zero, add_zero] |
| 146 | change -a * ↑(separation A (l (Sum.inl (q 0)))+separation A A) ≤ -d* ((separation A (l (Sum.inl (q 0))):ℕ):ℝ) |
| 147 | rw [separation_self,add_zero]; apply mul_le_mul_of_nonneg_right _ (by positivity) |
| 148 | apply neg_le_neg; apply le_trans (show d ≤ weaker N a from min_le_left ..); unfold weaker; have h := h.pos_a |
| 149 | have ht : 0 ≤ (N:ℝ) := by positivity |
| 150 | exact div_le_self h.le (by linarith) |
| 151 | rw [boltJet,if_neg hv,map_zero,map_zero,norm_zero]; positivity |
| 152 | let D : ℝ := C * (1+b*(K*countCost (a/2)))^(k+1); let W : ℝ := Fintype.card (OrderedFinpartition (k+1)) |
| 153 | have hM := count_pos (half_pos h.pos_a); have hP : 0≤b := le_trans zero_le_one hc |
| 154 | have hG j (hj : j∈ S) : ‖T j v‖ ≤ D*I := by |
| 155 | apply le_trans (wire_cost (p:=x) q j hk.le h.pos_a hd hC.le hP _ h.mult hw (f:=Z) |
| 156 | (fun i p => H _ (j.partSize_pos i).ne' (smaller_parts j (Finset.ne_of_mem_erase hj) _) _ p)) |
| 157 | rw [min_eq_left (show d ≤ _ from min_le_left ..)] |
| 158 | apply mul_le_mul_of_nonneg_right _ hI.le; apply mul_le_mul_of_nonneg_left _ hC.le |
| 159 | have hD : 0 ≤ b*((K:ℝ)*countCost (a/2)) := by positivity |
| 160 | apply le_trans (pow_le_pow_left₀ hD (le_add_of_nonneg_left zero_le_one) _) |
| 161 | exact pow_le_pow_right₀ (le_add_of_nonneg_right hD) j.length_le |
| 162 | have hl : ‖(∑ j∈S,T j) v‖ ≤ W * (D*I) := by |
| 163 | rw [_root_.sum_apply] |
| 164 | apply le_trans ((norm_sum_le ..).trans (Finset.sum_le_sum hG)) |
| 165 | rw [Finset.sum_const, nsmul_eq_mul] |
| 166 | apply mul_le_mul_of_nonneg_right (by unfold W; exact_mod_cast Finset.card_le_univ _) (by unfold D; positivity) |
| 167 | change ‖Q i‖ ≤ (C+W*D)*I |
| 168 | rw [show Q i = -(Y+(∑ j∈S,T j) v) from by linarith,norm_neg] |
| 169 | apply ((norm_add_le ..).trans (add_le_add hu hl)).trans_eq; ring |
| 170 | |
| 171 | lemma envelopes (hg : ContDiffAt ℝ ω g x) (hz : curve g x∈closedBall 0 (reserveH K C a r m)) |
| 172 | (he : Slope f ∘ curve g =ᶠ[𝓝 x] 0) {k : ℕ} (hk : k<N) : |
| 173 | Envelope (l ∘ Sum.inl) l (responseRate K N C a m) k (curve g) x (curveCost K C a m k) := by |
| 174 | induction k with |
| 175 | | zero => intro i hi hi'; omega |
| 176 | | succ k ih => |
| 177 | let Z := curve g |
| 178 | let P := curveCost K C a m (k+1); have hP : 1 ≤ P := curveCost_ge h _ |
| 179 | have hh := ih (by omega) |
| 180 | let c := responseRate K N C a m |
| 181 | let d := tiltWidth K (m/2) a C |
| 182 | let u := m/2/2 |
| 183 | let T := u⁻¹ |
| 184 | let W := feedback K C a (curveCost K C a m k) k |
| 185 | have ht := curveCost_ge h k |
| 186 | have hu : 0<d := tiltWidth_pos K (half_pos h.pos_m) h.pos_a h.pos_C.le |
| 187 | have hT : 0<T := inv_pos.mpr (half_pos (half_pos h.pos_m)) |
| 188 | have hW : 0 ≤ W := by |
| 189 | have hx := count_pos (half_pos h.pos_a); unfold W feedback; have := h.pos_C; positivity |
| 190 | have hN : 0≤(K:ℝ)*countCost (d/2) := mul_nonneg (by positivity) (count_pos (half_pos hu)).le |
| 191 | intro i hi hv |
| 192 | rcases eq_or_lt_of_le hv with h'|h' |
| 193 | swap |
| 194 | · exact fun p j => hh.more_cost (show curveCost K C a m k ≤ P from le_add_of_nonneg_right |
| 195 | (show 0≤ W*T*((K:ℝ)*countCost (d/2)) by positivity)) _ hi (by omega) p j |
| 196 | subst i |
| 197 | let M := block f (Z x); let β := l ∘ (@Sum.inr ι τ); let α := l ∘ (@Sum.inl ι τ) |
| 198 | rintro p (i|i) |
| 199 | · rw [curve_step hg] |
| 200 | change ‖entry id x p i+0‖ ≤ P * _ |
| 201 | rw [boltJet,add_zero]; split |
| 202 | next he => |
| 203 | subst k; by_cases hh : p 0=i |
| 204 | · simpa [bolt,hh, glaze,spanSites,Fin.sum_univ_succ] using hP |
| 205 | have hy : bolt (p 0) i=0 := by simp [bolt,Ne.symm hh] |
| 206 | rw [hy,norm_zero]; exact mul_nonneg (le_trans zero_le_one hP) (Real.exp_pos _).le |
| 207 | next he => simpa only [Pi.zero_apply,norm_zero] using mul_nonneg (le_trans zero_le_one hP) (show 0 ≤ glaze _ _ _ _ from (Real.exp_pos _).le) |
| 208 | change ‖entry Z x p (Sum.inr i)‖ ≤ _; rw [higher_positions hg] |
| 209 | let Q := entry g x p; let A := M *ᵥ Q |
| 210 | have hf := inverse_feedback h hg hz he hk p hh |
| 211 | obtain ⟨hD,H,_⟩ := h.priced_inverse (Z x) hz |
| 212 | have hi : ‖Q i‖ = ‖∑ j, M⁻¹ i j * A j‖ := by |
| 213 | change ‖Q i‖=‖(M⁻¹ *ᵥ A) i‖ |
| 214 | rw [show M⁻¹ *ᵥ A=Q by unfold A; rw [Matrix.mulVec_mulVec, M.nonsing_inv_mul (isUnit_iff_ne_zero.mpr hD.ne'), one_mulVec]] |
| 215 | have hs j : ‖M⁻¹ i j*A j‖ ≤ W*T*glaze α (β i) p c * Decay (d/2) (β i) (β j) := by |
| 216 | rw [norm_mul] |
| 217 | apply le_trans (mul_le_mul (show ‖M⁻¹ i j‖ ≤ T*Decay d (β i) (β j) from H i j) (hf j) (norm_nonneg _) (mul_nonneg hT.le (decay_pos ..).le)) |
| 218 | have hk := mul_le_mul_of_nonneg_left (path_price hk.le hu (rate_pos h) α (β i) (β j) p) (mul_nonneg hW hT.le) |
| 219 | rw [min_eq_left (show c ≤ _ from min_le_right ..)] at hk |
| 220 | change (T*Decay d (β i) (β j)) * (W*glaze α (β j) p c) ≤ _; unfold c |
| 221 | linarith only [hk] |
| 222 | change ‖Q i‖≤_; rw [hi]; apply le_trans ((norm_sum_le ..).trans (Finset.sum_le_sum (fun j _ => hs j))) |
| 223 | rw [← Finset.mul_sum] |
| 224 | apply le_trans (mul_le_mul_of_nonneg_left ((h.mult.comp Sum.inr_injective).count β (half_pos hu) (β i)) (mul_nonneg (by positivity) (Real.exp_pos _).le)) |
| 225 | change W*T*glaze α (β i) p c*_ ≤ (curveCost K C a m k+W*T*((K:ℝ)*countCost (d/2)))*glaze α (β i) p c |
| 226 | rw [mul_right_comm] |
| 227 | exact mul_le_mul_of_nonneg_right (le_add_of_nonneg_left (le_trans zero_le_one ht)) (Real.exp_pos _).le |
| 228 | |
| 229 | -- cancellation lets us use derivatives through exactly n |
| 230 | omit h in |
| 231 | lemma main_horizontal (hg : ContDiffAt ℝ ω g x) (hf : ContDiffAt ℝ ω f (curve g x)) |
| 232 | (he : Slope f (curve g x)=0) (i : ι) : |
| 233 | coordinate (f ∘ curve g) i x=coordinate f (Sum.inl i) (curve g x) := by |
| 234 | let Z := curve g x; let L := fderiv ℝ f Z |
| 235 | have ht (v : Positions τ) : L (lowerCol v)=0 := by |
| 236 | change (L.comp lowerCol) v=0; rw [by_row]; apply Finset.sum_eq_zero; intro j _ |
| 237 | rw [show (L.comp lowerCol) (bolt j)=0 from ?_,smul_zero] |
| 238 | change L (lowerCol (bolt j))=0; rw [lower_bolt]; have hz : Slope f Z j=0 := congr_fun he j |
| 239 | simpa only [Slope,entry,iteratedFDeriv_one_apply,Matrix.cons_val_zero] using hz |
| 240 | unfold coordinate |
| 241 | rw [fderiv_comp _ (hf.differentiableAt (by simp)) ((along hg).differentiableAt (by simp))] |
| 242 | have h1 : fderiv ℝ (curve g) x (bolt i)=upperCol (bolt i)+ lowerCol (entry g x ![i]) := by |
| 243 | rw [show fderiv ℝ (curve g) x (bolt i)=entry (curve g) x ![i] by unfold entry; simp] |
| 244 | rw [curve_step (k:=0) hg, boltJet]; simp |
| 245 | change L (fderiv ℝ (curve g) x (bolt i)) = L _; rw [h1,map_add,ht,upper_bolt,add_zero] |
| 246 | |
| 247 | def onShellCost (a C : ℝ) (K N : ℕ) (m : ℝ) := |
| 248 | (∑ i∈Finset.range N, (Fintype.card (OrderedFinpartition i):ℝ))*C * |
| 249 | (1+curveCost K C a m (N-1)* ((K:ℝ)*countCost (a/2)))^N |
| 250 | |
| 251 | lemma star_cost (hg : ContDiffAt ℝ ω g x) (hz : curve g x∈closedBall 0 (reserveH K C a r m)) |
| 252 | (he : Slope f ∘ curve g =ᶠ[𝓝 x] 0) : |
| 253 | Scatter (l ∘ Sum.inl) (weaker N (responseRate K N C a m)) N (f ∘ curve g) x (onShellCost a C K N m) := by |
| 254 | let Z := curve g; let p := Z x; let D := responseRate K N C a m |
| 255 | let u := l ∘ (@Sum.inl ι τ); let U := curveCost K C a m (N-1) |
| 256 | have hp : 0<N := lt_of_lt_of_le (by norm_num) h.order |
| 257 | have hx' := envelopes h hg hz he (show N-1<N by omega) |
| 258 | obtain ⟨hh,hS⟩ := h.born p (closedBall_subset_ball h.reserveH_lt hz) |
| 259 | let B := 1+U*((K:ℝ)*countCost (a/2)) |
| 260 | have hd : 0<D:=rate_pos h; have hC := h.pos_C |
| 261 | have hc : 0 ≤ U := le_trans zero_le_one (curveCost_ge h _) |
| 262 | have hu : 0 ≤ U*((K:ℝ)*countCost (a/2)) := mul_nonneg hc (mul_nonneg (by positivity) (count_pos (half_pos h.pos_a)).le) |
| 263 | have hB : 1 ≤ B := le_add_of_nonneg_right hu |
| 264 | have hm := along hg |
| 265 | have hv j : coordinate (f ∘ Z) j =ᶠ[𝓝 x] coordinate f (Sum.inl j) ∘ Z := by |
| 266 | filter_upwards [he,hg.eventually (by simp), hm.continuousAt.tendsto.eventually (hh.eventually (by simp))] with y hy hj hk |
| 267 | exact main_horizontal hj hk hy j |
| 268 | intro k hk q i |
| 269 | cases k with |
| 270 | | zero => exact Fin.elim0 i |
| 271 | | succ k => |
| 272 | let w : Fin k → ι := fun i => q i.castSucc |
| 273 | let d := q (Fin.last k) |
| 274 | have ha : entry (f ∘ Z) x q = entry (coordinate f (Sum.inl d) ∘ Z) x w := by |
| 275 | have he := ((hv d).iteratedFDeriv ℝ k).eq_of_nhds |
| 276 | unfold entry; rw [iteratedFDeriv_succ_apply_right,← he]; unfold coordinate -- peel last via iteratedFDeriv_comp_left |
| 277 | let A := ContinuousLinearMap.apply ℝ ℝ (bolt d) |
| 278 | rw [show (fun p => fderiv ℝ (f ∘ Z) p (bolt d)) = A ∘ fderiv ℝ (f ∘ Z) from rfl, |
| 279 | A.iteratedFDeriv_comp_left ((hh.comp (f:=Z) x hm).fderiv_right (m:=ω) (by simp)) le_top]; rfl |
| 280 | have ht : ContDiffAt ℝ ω (coordinate f (Sum.inl d)) p := by rw [coord_eq]; exact (tend_entry hh _).1 |
| 281 | let W := onShellCost a C K N m; have hW : 0 ≤ W := mul_nonneg (mul_nonneg (by positivity) hC.le) (pow_nonneg (show 0 ≤ B from zero_le_one.trans hB) _) |
| 282 | let F := ftaylorSeries ℝ (coordinate f (Sum.inl d)) p; let T := ftaylorSeries ℝ Z x; let v (i) := bolt (w i) |
| 283 | have he j : ‖(F.compAlongOrderedFinpartition T (j:OrderedFinpartition k)) v‖ ≤ C*B^N * glaze u (u d) w D := by |
| 284 | apply le_trans (wire_cost w j (le_trans k.le_succ hk) h.pos_a hd hC.le hc (u d) h.mult |
| 285 | (show Beacon l a k (coordinate f (Sum.inl d)) (u d) (Z x) C from scatter_derivative f hh hS _ hk) |
| 286 | (f:=Z) (fun i p => hx' _ (j.partSize_pos i).ne' |
| 287 | ((j.partSize_le i).trans (show k ≤ N-1 by omega)) _ p)) |
| 288 | rw [min_eq_left (show D≤_ from min_le_left ..)] |
| 289 | refine mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left ?_ hC.le) (Real.exp_pos _).le |
| 290 | exact (pow_le_pow_left₀ hu (le_add_of_nonneg_left zero_le_one) _).trans (pow_le_pow_right₀ hB (le_trans j.length_le (by omega))) |
| 291 | have hl : glaze u (u d) w D = glaze u (u d) q D := by |
| 292 | unfold glaze spanSites; conv_rhs => rw [Fin.sum_univ_castSucc]; dsimp only [w,d]; rw [separation_self,add_zero] -- rhs etc |
| 293 | change ‖entry (f ∘ Z) x q‖ ≤ W*glaze u (u (q i)) q _ |
| 294 | calc |
| 295 | _ = ‖∑ j : OrderedFinpartition k, F.compAlongOrderedFinpartition T j v‖ := by rw [ha]; unfold entry; rw [iteratedFDeriv_comp ht hm le_top, FormalMultilinearSeries.taylorComp,_root_.sum_apply] |
| 296 | _ ≤ W*glaze u (u d) w D := by |
| 297 | apply le_trans ((norm_sum_le ..).trans (Finset.sum_le_sum (fun j _ => he j))); rw [Finset.sum_const, Finset.card_univ,nsmul_eq_mul,← mul_assoc,← mul_assoc] |
| 298 | have hi : (Fintype.card (OrderedFinpartition k):ℝ) ≤ ∑ i∈Finset.range N,(Fintype.card (OrderedFinpartition i):ℝ) := Finset.single_le_sum (f:=fun i => (Fintype.card (OrderedFinpartition i):ℝ)) (fun i _ => by positivity) (Finset.mem_range.mpr hk) |
| 299 | refine mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hi hC.le) (pow_nonneg (zero_le_one.trans hB) _)) (Real.exp_pos _).le |
| 300 | _ ≤ _ := by |
| 301 | rw [hl]; apply mul_le_mul_of_nonneg_left _ hW |
| 302 | exact (price_relative hk q i hd.le).trans (mul_le_of_le_one_left (Real.exp_pos _).le (decay_le (half_pos hd).le _ _)) |
| 303 | end Loop |
| 304 | end YM.Push.Uniform |