import YM.AnalyticNext.QUARTIC_MATCH.Radius.Articles import YM.AnalyticNext.QUARTIC_MATCH.Radius.Warrant import YM.Progress.STATIONARY_SCENES.SliceGap /-! # The vertical gradient and its steered budgets No dimension cost (sum paid by where the vertical key on slide reads). All native links rather than normalized field norms. Keep a fraction of width. -/ set_option autoImplicit false noncomputable section namespace YM.AnalyticNext.QuarticMatch.Radius open Filter Function Lattice Laurent Matrix Hessian Analysis RG Precision Exterior Bid Wilson open Progress.StationaryScenes Work.F03 YM.Next.Free Tree Joint Local Local.Wages Polish Fetch Sheets open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators InnerProductSpace open Articles Showroom Model lemma nearInside {X : Type*} [NormedAddCommGroup X] {x : X} {r : ℝ} (h : ‖x‖ ?_) i <;> simp only [Fin.cons_zero,Fin.cons_succ]; exact ⟨hr,he⟩; exact h _ variable {Q : Purchase} {F : Site f→ChartVars H G→ℝ} (hp : Q.Applies H p R F) include hp lemma works {x : ChartVars H G} (h : ‖x‖ < Q.width) (θ : S.Choices) : ContDiffAt ℝ ω (uncurry (tested H θ p R)) x := by refine (ContDiffAt.sum (s:=Finset.univ) (f:=F) (fun i _=> hp.smooth h i)).congr_of_eventuallyEq ?_ exact (nearInside h).mono fun _ hx => hp.formula hx θ lemma pitch (θ : S.Choices) {x : ChartVars H G} (h : ‖x‖ hp.formula h θ) let g := uncurry (tested H θ p R) have hz : iteratedFDeriv ℝ k (skew S H p R θ v) x d=∑ i : Site f,iteratedFDeriv ℝ (k+1) (F i) x a := by have hZ : g =ᶠ[𝓝 x] ∑ i,F i := hf.mono (fun i he => he.trans (Finset.sum_apply ..).symm) change iteratedFDeriv ℝ k (D (slew S H v) g) x d=_; rw [← cons_inner ((works S H p R hp h θ).of_le le_top), (hZ.iteratedFDeriv ℝ (k+1)).eq_of_nhds, iteratedFDeriv_sum_apply (fun i _ => (hp.smooth h i).of_le le_top), _root_.sum_apply] rw [hz]; unfold Polish.budget let b := ∏ j,c j; have hc : 0 ≤ b := Finset.prod_nonneg fun i _=> (hC i).1 have hy (i : Site f) : ‖iteratedFDeriv ℝ (k+1) (F i) x a‖ ≤ (r*b)*(wt t i Z)⁻¹ := by let w := wt t i Z; let y := wt u i Z; have hp' : 1 ≤ w := Wages.wt_ge he.le .. have hv : Menu (On S H G u i) d (fun j=> c j*w) := fun j => ⟨mul_nonneg (hC j).1 (zero_le_one.trans hp'),onward S H t (Showroom.move S H t (hC j).2 i he.le (hC j).1) u (by have hg : 0 ≤ (m:ℝ) := by positivity nlinarith) (mul_nonneg (hC j).1 (zero_le_one.trans hp'))⟩ apply (hp.stamps h i (k+1) (m+1) (by omega) _ (Fin.cons y⁻¹ (fun j=> c j*w)) (menu_insert hv (allows S H v u i) (inv_nonneg.mpr (Green.wt_pos ..).le))).trans rw [Fin.prod_univ_succ]; simp only [Fin.cons_succ,Fin.cons_zero]; rw [Finset.prod_mul_distrib,Finset.prod_const,Finset.card_univ,Fintype.card_fin]; change r*(y⁻¹*(b*w^k)) ≤ _ have ht : y=w^(m+1) := by change wt u i Z=_; rw [hh]; unfold w Green.wt; rw [← Real.exp_nat_mul]; push_cast; ring_nf rw [ht]; have hx : 0 hy i))).trans; rw [← Finset.mul_sum]; have ht := Premium.lives (l:=1) he Z simp only [PNat.val_ofNat,Nat.cast_one,div_one,one_pow,mul_one] at ht exact (mul_le_mul_of_nonneg_left ht (mul_nonneg hb hc)).trans_eq (show r*b*_=Q.earnings m * b by unfold r t b earnings; ring) end Purchase end YM.AnalyticNext.QuarticMatch.Radius