import YM.AnalyticNext.QUARTIC_MATCH.Range /-! # Logarithmic-path prescription through cubic and quartic (cost-takers) Fixed H, chosen cubic prescription retained. If specifying a cost about `Spatial` below it means about these literal kernels on these finite periods, with `Spatial` per *physical* link argument and all others arithmetically in that tag. Upstream use needs `Spatial` PRODUCED on funded P with pre-L constants to get classical recurrence (or expose only post-L limitations). This file pays them as inputs and derives the exact path data. Two distinct exponents, Janus (all multiples & genuine unmasked pipeline). Exposes cost paid for new atoms, including actual path weights; not beta-weighted. -/ set_option autoImplicit false noncomputable section namespace YM.AnalyticNext.QuarticMatch open Lattice RG Precision Bid Function Matrix Wilson Exterior Filter Laurent Tensor Joint BoxChain Analyzers open Mail Residual open scoped Topology ContDiff Matrix.Norms.Frobenius BigOperators variable {G : Gauge} {c : Side} {p : Clip} {R : PathData G} -- overwrite when filling after the cubic recipe/exact comparison at that scale. We will require quartic coefficients zero -- on input model R witnessing the lower jets; can arrange already blank for .debt comparisons. def fourth (R : PathData G) (W : ℕ→Atom G 4) : PathData G := { R with quartic := W } def third (R : PathData G) (W : ℕ→Atom G 3) : PathData G := { R with cubic := W } theorem base_more (h : ∀ i, (R.quartic i).coeff=0) (P : Clip) (W : ℕ→Atom G 4) : baseAt (c:=c) P (fourth R W) = baseAt P R + impact W := by have hp (U : Config G c) : uncut R.quartic U=0 := by simp [Atom.unmasked,Atom.poly,h,uncut] have he (U : Config G c) : quadratic P (fourth R W) U = quadratic P R U := rfl funext x simp_rw [Pi.add_apply,baseAt,mainTerm,he, hp, add_zero,show (fourth R W).cubic=R.cubic from rfl, show (fourth R W).quartic=W from rfl, impact, Patch.average, Finset.sum_add_distrib,mul_add] variable {τ D B : ℝ} lemma banks_add {n : ℕ} {r F : Dir G c → ℝ} (hr : ContDiffAt ℝ ω r 0) (hf : ContDiffAt ℝ ω F 0) (hl : ∀ k : ℕ, k (W i).budget τ) D) (hp : 0<τ) (he : Tensor.coeff (impact W) n 0=Tensor.coeff (F-r) n 0) (hc : ∀ j, j (d i).val) atTop atTop → (∀ i : ℕ, Spatial ((S.debt hp hh 4).raw (d i)) σ D) → (∀ i : ℕ, ∀ k<4, iteratedFDeriv ℝ k (S.canonical (d i)) 0=iteratedFDeriv ℝ k (baseAt q R (c:=d i)) 0) → ∃ A : rootArray G 3, SumBudget (fun i => (letters P A i).budget δ) (Q*D) ∧ ∀ i j : ℕ, j≤4 → SameJet j (S.canonical (d i)) (baseAt q (fourth R (letters P A))) := by obtain ⟨δ,Q,hδ,hQ,H⟩:= Mail.writes G 3 P (by omega) σ he refine ⟨δ,Q,hδ,hQ,?_⟩ intro K L M R W p q v τ C Λ D b T t S hp hh hN HN d hd hD ha hl obtain ⟨A,hA,h⟩ := H _ _ (S.debt hp hh 4) HN d hd hD (fun i => Residual.closed (S.choice _) S.society hp (S.solved (d i) (hd i)) (S.controller _ (hd i)) hh S.cheap (S.gap _ (hd i)) (hl _)) D ha refine ⟨A,hA,fun i j hv => ?_⟩ rw [base_more hN] exact banks_add (base_smooth hh) (S.leg_value _ (hd i)) (hl _) (letters P A) hA hδ (h i).1 (h i).2 j hv end Series end Analyzers end YM.AnalyticNext.QuarticMatch