import YM.RG05Readout.Offsets.Torus import YM.RG05Readout.Offsets.Rows import YM.PhysicalNext.RG_NEXT_COMPLETE_REPEATABLE_NONLINEAR_STEP.Cub.Chant import YM.PhysicalNext.RG_NEXT_COMPLETE_REPEATABLE_NONLINEAR_STEP.Cub.Direction /-! # Delays for moving primary roots (actual Wilson history). Adapted from `Cub.logos`, now only requesting the bounded INPUT-grade projection approximation, but doing so uniformly over a whole centered preimage and all required finite probes. Reserve the same L pre-budget; offsets enlarge post-L demands before release. Does NOT assert that blowing assembly in a different construction paid this reserve. -/ set_option autoImplicit false noncomputable section namespace YM.PhysicalNext.Repeat.Cub open Function Filter Set Lattice RG Pressure Pressure.Tube Tree Wilson Finset MeasureTheory open ConnectedActivityE6 Shell Coat SliceRows Pulse Mask Raw Matter Pond open Push Push.AbsoluteSums Gas Ursell Trees Multiple Letter OmitClusters RG Shoot Precision SectorMeasure Oriented Reserves open AnalyticBridge VerifiedReset Collection Quotes UVNext Next.Scheduling Org open Extra.Iteration Greenbelt Match Song Refrain open ConnectedActivityE6.Blaze Blaze.March Captain Silica Height Brim Time Supply Input Testing PriceCompiler Opera open JointLoad JointLoad.Heir JointLoad.Heir.Suite JointLoad.Psalm Clockwork Roof Daisy Charity Rain Roost Lotus Blush Mallow open UVNext.CouplingReset Animals Marlin Progress.DirectedRecipe Ovens Ovens.Pipes open Extra.Histories Extra.Histories.Doors Next.Foundations YM.Planned.GuardedAtom Labels Peak Mercury open Bid Planned.PrimaryIntegral295 WaterLevels open PPX Circlet Next.Free open YM.RG05Readout.Offsets open scoped Topology InnerProductSpace Matrix.Norms.Frobenius ContDiff BigOperators Classical set_option quotPrecheck false variable {G : Gauge} {n : ℕ} {P:Teller G} -- keep separate from Eve. Provide post-L payments on finite offset set. structure Angle (j i d n:ℕ)(L₀:Side) (P P': Stage)(Γ: Teller G)(Kn:KernelChoices)(C:Libretto G n)(R:Record) (v : ConnectedActivityE6.Target G Γ)(w:ℝ)(Q:Target.Order G w)(μ x :ℝ)(r:ℕ) where small : ℝ pos : 0 he i)) let Q:= b/2; have hQ:0 retained p S0 A (sound G d) (Next.Foundations.valuation G d) K.penalty_pos hj hi hz i' hp Lx (lift a) hQ)] with x hx intro c f s b' he T' P ht hf hr w y hB hW obtain ⟨q,hq⟩: ∃ z: Site Lx,wrap f (lift z)=b':=by have hz:= s.ratio.unpack_at b'; rw [he,← s.ratio.root_embed,map_zero,zero_add] at hz rw [← hf,← ht] exact ⟨_,hz⟩ rw [← hq]; exact hx q c f s T' P ht hf hr w y hB hW filter_upwards [V.eventually_all.mpr (fun p _=> eventually_all.mpr (fun i:F.Index=> (Set.toFinite (Set.univ : Set (PLift (p.2.val ≤ (F.grades i).1)))).eventually_all.mpr (fun x _=> ha p i x.down))),Rebuild.geometry (G.slopeConstant*Real.log Lx.val),hγ,hu.below (by norm_num) Q hQ,Cub.garnets C D Lx r P0.power (zero_le_one.trans he₀) hQ, Blush.fruition hm (L:=Lx) M B S hS] with x ha hx' H hf hU hM have ht(P' P'': BudgetPoint)(ht:P'.threshold=temp x)(hQ:P''.threshold=fiery G x Lx) : Blend 2 P''.threshold P'.threshold:=by refine ⟨one_le_two,P''.threshold_pos,P'.threshold_pos,P''.threshold_le,P'.threshold_le,?_ ,?_⟩ · apply (div_le_iff₀ P''.threshold_pos).mpr; rw [ht,hQ]; exact hx'.2.2 apply (div_le_iff₀ P'.threshold_pos).mpr; rw [ht,hQ]; exact hx'.2.1 refine ⟨Q,hQ,|u x|,abs_nonneg _,?_,fun P' P'' f α hp hY hC hZ η q' hq' => ?_,(fun p hp a hA c f s b' h T Y A C C' b c' hB hX _ _=> (ha _ hp a ⟨hA⟩ (Set.mem_univ _)) _ _ _ _ h _ _ A C C' b c' hB hX),κ,hκ.le,fun p hp=> le_trans ?_ (hg _ hp), fun c h' N H Z' hZ=> ?_⟩ · intro c' f' S' T' hk' R e H0 F X i ht hn hc hw P' hB hs he Z I _ _ a q b u hu hz hY hX M hκ L' hL hL' j H' hj hZ hH; exact (H c' f' S' T' hk' R e H0 F X i ht hn hc hw P' hB hs he Z I a q b u hu hz hY hX M hκ L' hL hL' j H' hj hZ hH).climb (mul_le_mul_of_nonneg_left (le_abs_self _) M.profit) le_rfl · -- cap have h:= ht _ _ hp hY; exact hU P' P'' hZ hY (hC.symm ▸ hx'.1.1) ((div_le_iff₀ h.fine).1 h.accounted) q' hq' f α η · unfold g; have h:=@Cub.horizon d; have ht:= Local.partPrice_pos (hol G) p; gcongr let Y:= H.p.mass Z'.live.crest Z'.live.weight set m:= Blush.marvel (Q:=M) (L:=Lx) (x:=x) Z' have hB:0≤ B:=by unfold B; positivity have hL:= hM N H Z' (B:ℂ) (by rw [Complex.norm_real,Real.norm_of_nonneg hB]); rw [Complex.norm_real,Real.norm_of_nonneg hB] at hL have he': B*(m+m)≤ S* h:= hL.1.trans (mul_le_mul_of_nonneg_left (hZ.trans_le h') hS.le) have hQ: T*(B*(m+m)) ≤ y/2:= (mul_le_mul_of_nonneg_left he' hT'.le).trans_eq (by unfold S; field_simp) intro Fp kp change Local.testPrice F*((y/2)/Z)+T*(B*(2*m)) ≤ y have hP: Local.testPrice F*((y/2)/Z)=y/2:= mul_div_cancel₀ _ (by positivity: Z ≠ 0) rw [hP,two_mul]; linarith only [hQ] end YM.PhysicalNext.Repeat.Cub