import YM.MergeProof.Portions import YM.FullVolume.Forward import YM.FullVolume.Rent set_option autoImplicit false noncomputable section namespace YM.MergeProof open Finset Function Filter MeasureTheory Lattice Wilson RG Push Marker Source Extra.Histories open Planned.GuardedAtom Guard Local Next.Rank Edition Spindle Extra.Multi Motion open PhysicalNext.Repeat.Legato.Bandage Cells Extraction Extraction.Lease Exponential Bid Next.Extract RelayDifference open scoped Topology Matrix.Norms.Frobenius BigOperators Classical ContDiff variable {G:Gauge}{C:Family G}(H:C.Makes)(B:Stock.Tabs C.path.levels){W:Bid.Worth}{u ψ φ δ:ℕ→ℝ}{ζ:ℕ→ℕ→ℝ}{r:ℕ→ℕ}{D:∀ N p m:ℕ,m (C.labels.level d) local notation "γ"=> Push.RelayDifference.gamma open FullVolume include B /-- Quantitative comparison at *every* sufficiently fine fixed physical side. -/ lemma studded {F:Trial C}{E:Cutoffs→ℝ}{ζ:ℕ→ℕ→ℝ}(d:ℕ)(H':Sluggish C E) (ht:Stencil F) (hP:∀ᶠ i in FullVolume.mesh, ∀ m k:ℕ,C.ref d ≤ k → k < i.1 → Stock.Tabs.opens C.path.levels 1 m k → ∀ h:m ≤ i.1,(center C.S i.2 h 0).rootTest (C.beta i.1 i.2) (F i.1 i.2 0) ≤ cider C ζ d m k*E i*flight C (-Push.RelayDifference.gamma) i) : Owed F (flight C (-(1/16))) :=by refine ⟨ht,?_⟩ filter_upwards [eventually_ge_atTop (C.ref d)] with m hm let k:= Stock.Tabs.chosen C.path.levels 1 B m; have hk:Stock.Tabs.opens C.path.levels 1 m k:= Stock.Tabs.opened _ _ _ _ have he := (Sluggish.const (cider C ζ d m k)).mul H'; have hx:= he.sink (show 1/16 < γ by norm_num [RelayDifference.gamma]); filter_upwards [hx,hP,deepen.eventually (eventually_gt_atTop k), ht.at_origin m] with i hi hp ht hv; obtain ⟨hn,hN⟩:= hv; exact ⟨hn,hN, (hp m k (hm.trans hk.1) ht hk hn).trans hi⟩ omit B in private lemma provisioned {ι β:Type*}[Nonempty β] {x : Filter ι}{p:ι→β→Prop}(h:∀ᶠ i in x,∃ v,p i v):∃ v:ι→β,∀ᶠ i in x,p i (v i):=by classical exact ⟨fun i=> if h:∃ v,p i v then Classical.choose h else Classical.arbitrary _, h.mono (fun i hi=>by simp only [dif_pos hi]; exact Classical.choose_spec hi)⟩ include h H lemma readyCoin {F:Trial C}{E:Cutoffs→ℝ} (H':Sluggish C E)(ht:FullVolume.Stencil F) (hp:∀ᶠ i in FullVolume.mesh,C.ref d ≤ i.1 ∧ ∃ Z t Q, Cream C i.1 i.2 d u ζ (F i.1 i.2 0) Z Q t (E i)) : ∃ v:Rowe C d,Coin C v ∧ Owed (upper C v - F) (flight C (-(1/16))) :=by have hw : ∀ᶠ i in FullVolume.mesh, ∃ v:C.label d, ‖(C.factory d i.1 i.2).terminal.symm v‖ ≤ 2*E i ∧ ∀ m k:ℕ,C.ref d ≤ k→k < i.1 → Stock.Tabs.opens C.path.levels 1 m k →∀ hn:m ≤ i.1,(center C.S i.2 hn 0).rootTest (C.beta i.1 i.2) (C.O i.1 i.2 v 0-F i.1 i.2 0) ≤ cider C ζ d m k*E i*flight C (-γ) i:= by filter_upwards [hp] with i ⟨hi,Z,t,Q,hT⟩; obtain ⟨v,hV,hL⟩:= pudding C i.1 i.2 d B W u ψ φ δ ζ r D H h (F i.1 i.2 0) Z Q t (E i) hi hT; refine ⟨v,?_,fun m k hm hk hb hn=>?_⟩ · let x:= (C.factory d i.1 i.2).terminal.symm v; let A0:= (C.path.levels.params i.1).columns have ht:0 ≤ Q:= hT.fuel.le; have hA : 1 ≤ A0:= (C.path.levels.params _).columns_ge; have hp:2*(1+A0)*Q ≤ E i:=le_trans (mul_le_mul_of_nonneg_right (show 2*(1+A0)≤4*(1+A0) by linarith only [hA]) ht) hT.dom have hz:0 ≤ Q:=ht; have hc:(A).coeffSize Z.x ≤ E i:=(le_trans (b:=(A).coeffSize Z.x+t) (le_add_of_nonneg_right (rem_nonneg hT.pay)) hT.charge).trans ((le_mul_of_one_le_left ht (show 1 ≤ 2*(1+A0) by linarith only [hA])).trans hp) have hr:(A).coeffSize (x-Z.x) ≤ E i:=by rw [Work.G08.size_sub_rev]; exact (le_mul_of_one_le_left (Work.G08.size_nonneg ..) (show 1 ≤ 32*(1+A0)^2 by nlinarith only [hA])).trans (hV.trans hp) exact (RelayDifference.norm_cost A x).trans ((Work.G08.size_triangle A x Z.x).trans ((add_le_add hc hr).trans_eq (two_mul _).symm)) · let A0:= C.O i.1 i.2 v 0; let T0:= F i.1 i.2 0; let V:= center C.S i.2 hn 0 have hx:=hL m k hm hk hb Motion.nil hn; rw [dance_nil] at hx; rw [unitsC]; rw [neg_sub]; exact hx rcases provisioned hw with ⟨v,hV⟩ -- inspect refine ⟨v,(((Sluggish.const (C:=C) (2:ℝ)).mul H').reduce (hV.mono (fun i he=> he.1.trans (Real.le_norm_self _)))),studded B d H' ((Stencil.visits H v).sub ht) (hV.mono fun i hi=> hi.2)⟩ lemma prepared_rows {F:Trial C} (hG:G.Simple)(hF:Fridge C u ζ)(hp : ∀ᶠ i in FullVolume.mesh, Continuous (F i.1 i.2 0)) (hv:Stencil F) (he:Tucked F d) : ∃ v:Rowe C d, Coin C v ∧ Owed (upper C v - F) (flight C (-(1/16))) := by obtain ⟨E,hE,hh⟩ := newPersist H hG hF.full (borrowed (W:=fun i=> Real.exp ((C.path.levels.budget i).supportExponent)) (roof_of_tabs B)) hF.candle (borrowed (W:=fun i=>(u i)⁻¹) (hF.path _)) (borrowed (W:=fun i => ζ d i) (hF.smoke d _)) (fun i hi => (h.grows _ _ hi).le) he hp exact readyCoin H B h hE hv hh end YM.MergeProof