import YM.TraceExtension.Anchor.Book /-! At an anchor level k, a supported exponential entry with mild marker cost is a local borel coarse-lattice observable. Read it by its given back kernel (on the *Wilson history*, before taking any physical/spacetime extension), at the fixed far-detector clusterings. Obtain an approximating actual field with E subpower price over engineering, at single-slot horizon d. This version also holds towards stage transitions. -/ set_option autoImplicit false noncomputable section namespace YM.Trace.Pull open Set Function Analysis Filter Asymptotics MeasureTheory Extraction Around Table Lattice Wilson RG Next.UVStress MergeProof MergeProof.Accent Source Bid Extra.Histories Push Cells open scoped Topology BigOperators ContDiff Classical variable {G : Gauge}{C:Family G}{f:Extraction.Order}{S:Table C.book}{d : ℕ} variable (H:C.Makes){b:Ultrafilter (ℕ×ℕ)}(hb:(b:Filter (ℕ×ℕ)) ≤ f.fuse) local notation "F"=> C.labels.level d local notation "α"=> C.path.levels local notation "A!"=> C.S.a variable (Z : ∀ k _N p : ℕ, Coefficient (C.labels.level d) (C.side k p)) -- we keep per-stop height permissions in a separate prop. def hosted : CutNet C:= fun k N p=> if h : k ≤ N then GridApprox.backTo C.path N p h (relayProbe C N k p d (Z k N p)) else 0 structure Costs (Q : ℕ→ℝ): Prop where calms : Calms C.S 0 Q pays : ∀ᶠ k:ℕ in atTop, 0.coeffSize ((Z k i.1 i.2).x-z)) ≤ 2*(1+c)*Q k include hr H hb open GridApprox in lemma acquired {Q:ℕ→ℝ}(hN : Costs (b:=b) Z Q) (hp:Supported (b:=b) Z) (K:Stock.Tabs C.path.levels):∃ v, Captured (b:=b) Z Q v∧∀ J:ℕ, ∃ E:ℕ→ℝ,Fast C.S E∧∀ᶠ k:ℕ in atTop,∀ᶠ i:ℕ×ℕ in (b:Filter (ℕ×ℕ)),∃ hN:J ≤ i.1, let T:= center C.S i.2 hN 0 let q:= hosted Z k i.1 i.2- C.O i.1 i.2 (v k i) 0 Interior (T.chamber 0) q ∧ T.rootTest (C.beta i.1 i.2) q ≤ E k:=by let e k:=4*(1+(α|>.params k).columns)*Q k have he: Calms C.S 0 e:= by let a : ℕ → ℝ:=fun i=>(C.path.levels.params i).columns have hx: Calms C.S 0 a:=column_calm _ have hz(x:ℝ):Calms C.S 0 fun _=>x:=fun p hp=> factor_const _ _ p hp have hw:= ((hz 4).mul ((hz 1).add hx)).mul hN.calms; rw [add_zero,add_zero] at hw; exact hw let P(k:ℕ)(i:ℕ×ℕ)(x:C.label d): Prop:=∃ (h:k < i.1) (M:Music (F) C.path i.1 i.2), let J:=C.factory d i.1 i.2 J.entries=(M.draft C.path).inits ∧ Sung (C.localSection d) C.path i.1 i.2 C.params W (C.ref d) M ∧ (∀ l:ℕ,C.ref d ≤ l→∀ hl:l < i.1, Carol (C.localSection d) C.path i.1 i.2 l (Doors i.1 i.2 l hl) (M.tone (l+1)) (M.tone l) (ψ l)) ∧ (∀ y, profile (C.path.rep i.1 i.2 i.1).activities ((M.tone i.1).plays y).forced=hook (C.path.rep i.1 i.2 i.1).activities (C.path.rep i.1 i.2 i.1).p.threshold (booster (C.localSection d) (C.path.rep i.1 i.2 i.1) 0 y)) ∧ ∀ m:ℕ,∀ w:ℝ,C.ref d ≤ m→m ≤ k→0?_⟩ specialize hv m w h₁ h₂ h₃ h₄; simp only [LinearEquiv.symm_apply_apply] exact hv let v(k:ℕ)(i:ℕ×ℕ): C.label d:=if h:∃ z, P k i z then Classical.choose h else 0 have hv: ∀ᶠ k:ℕ in atTop,∀ᶠ i : ℕ×ℕ in (b:Filter (ℕ×ℕ)), P k i (v k i):= hx.mono fun k h=> h.mono fun i p=> by unfold v; rw [dif_pos p]; exact Classical.choose_spec p let price(m k):ℝ:=‖alto C.path m d‖*(e k/gainChart C.path k m); let cash(m k):ℝ:= (ζ d m/2)/price m k have hW(m:ℕ)(hm:C.ref d ≤ m): ∀ᶠ k:ℕ in atTop, 0 < cash m k ∧ cash m k * price m k ≤ ζ d m/2 :=by filter_upwards [hN.pays] with i hi; have h0:= hr.grows d m hm have hx: 0E):=by funext k; unfold W cash price gainChart E factor; change _=Real.exp (_*-g)*_ * (‖_‖*_*Real.exp (_*g)/q) unfold g q; rw [div_div_eq_mul_div, mul_sub, Real.exp_sub, mul_neg, Real.exp_neg]; ring_nf; simp [inv_inv]; left; ring rw [hf]; exact ((show Fast C.S (factor C.S (-g)) from ⟨-g,by unfold g; norm_num,isBigO_refl ..⟩).mul he|>.mul (fun _ h=>factor_const _ _ _ h)) filter_upwards [hv,hp.exp,hp.geometry J,eventually_ge_atTop m',hW m' hM'] with k hV hE hP hmk H₀ have hY : ∀ᶠ i:ℕ×ℕ in (b:Filter _), ∃ hj : J ≤ i.1, ∀ q:C.label d, Interior ((center C.S i.2 hj 0).chamber 0) (C.O i.1 i.2 q 0):= by filter_upwards [ (RelayDifference.cutoff_grows f).eventually (Stock.clear_interior C H J d) |>.filter_mono hb] with i ⟨x,h⟩; exact ⟨x,h _ _⟩ filter_upwards [hV,hE,hP,hY] with i Hx HE Hy Hw obtain ⟨N,p⟩:=i; obtain ⟨hm,hX⟩:=Hw; obtain ⟨n,hV,hR⟩:=Hy; obtain ⟨hi,M,hM,hL,hC,hD,hF⟩:= Hx have hm₀:= ht.1.trans hmk obtain ⟨V,t,hT⟩:= hF m' (cash m' k) hM' hmk H₀.1 (by rw [mul_assoc]; exact H₀.2) have hx:= foundation_quakes C N k m' p d H (cash m' k) _ M hr J K hi hM' hmk H₀.1 hT hL hC hD HE ht n hR hV let T:=C.factory d N p; let z:=v k (N,p); rw [show T.terminal (T.terminal.symm z)=z from T.terminal.apply_symm_apply _] at hx have hΩ: Interior ((center C.S p hm 0).chamber 0) (hosted Z k N p):=by have hq : Interior (GridApprox.window (GridApprox.anchor C.S p hm₀ 0) n) (relayProbe C N k p d (Z k N p)):= (show GridApprox.anchor C.S p hm₀ 0=0 from (C.S.toDepth hm₀ p).root.map_zero).symm ▸ hV rw [hosted,dif_pos hi.le]; exact (backTo_local C.path N p hm₀ hi.le 0 n hq).enlarges (room_fits p (α) n hm₀ hi.le hR _) refine ⟨hm,Next.UVStress.minus hΩ (hX _),?_⟩; dsimp only [Prod.fst] at *; unfold hosted; rw [dif_pos hi.le]; exact hx end YM.Trace.Pull