import YM.RG08.April.Cake /-! Also boundary for compatible family at width ≤ unit. -/ noncomputable section set_option autoImplicit false namespace YM.RG08.April open Lattice Laurent Pert.Bulk Forms Room Carrel Steam Isles Rows Rate Rate.Stair RG Stationary Bloch Rudder RG08.Mount Tack Anchor Spar Sedan Precision Finset Exterior Nacre PowerSeries Finset.Nat Symmetry Prism Quarry Roost Packets Ducat Mason open Function Jetty Lattice Precision Skiff Weald Hatch Planned.PrimaryIntegral295 Labels Source Source.Drops WardBin Parts Atrium Trill Necks Sideshow MeasureTheory open scoped Classical Matrix BigOperators PowerSeries Topology ENNReal variable {X Z:Type}{G:Gauge}{D d p l e n k r:ℕ} local notation "Δ"=> stance (Loc G 1) local notation "E"=> Ed G Cover -- Encode exactly poses. Tactics norms. u any. Measures charging polynomial address derivatives through D. falls charged from top diff via kiosk at all scales. variable (F:Labels.Frame G d)(W:Rate.Stair X)(H:Housing F W D k) local notation "I₀"=> Accent F local notation "V₀"=>Haven W local notation "D0"=> Mason.kiosk W def ContextCharge (G:Gauge)(D:ℕ)(u:ℕ)(σ:ℝ)(F:Pack n (Ed G Cover))(a:ℝ):Prop:=∃ μ ν:Tape n (Ed G Cover)→Jetty.Jet D→Measure E4,Jetty.Crew D σ F μ ν ∧ (∀ x s, Integrable (trunk (stance (Loc G 1)) u x) (μ x s)∧Integrable (trunk (stance (Loc G 1)) u x) (ν x s)) ∧ ((∑' x,(tithe (stance (Loc G 1)) u D μ x+tithe (stance (Loc G 1)) u D ν x)) ≤ a)∧ Summable (fun x=> tithe (stance (Loc G 1)) u D μ x+tithe (stance (Loc G 1)) u D ν x) variable {W} lemma demandMS (T:Pack n E){σ a:ℝ}(he:0<σ)(hs:Sings Δ D he T a)(hT:Lyrics T)(ha:0 ≤ a)(k:ℕ):ContextCharge G D k σ T (Jetty.fee D n k σ*a):=by obtain ⟨u,v,H,h⟩:= merchants hs hT ha obtain ⟨hJ,⟨hA,hB,hC⟩⟩:=h k exact ⟨u,v,H,hJ,hC,hB⟩ -- notation err due E in ContextCharge shadow G lemma ContextCharge.up {T:Pack n E}{σ a b:ℝ}(he:a ≤ b)(ht:ContextCharge G D k σ T a):ContextCharge G D k σ T b:=by obtain ⟨u,v,h,hI,hA,hS⟩:=ht;exact ⟨u,v,h,hI,hA.trans he,hS⟩ -- Stage widths vary: as long as inverse cost pre capped, uniform rate. lemma cargoHire (σ:V₀→ℝ)(_he:∀ i,0<σ i)(hS:(D0).Good (fun i=> (σ i)⁻¹))(k n D:ℕ): (D0).Good fun i=> Jetty.fee D n k (σ i):=by have h:(D0).Good (fun i=>1+(k:ℝ)*(σ i)⁻¹):=(D0).hear _ _ ((D0).steady 1 zero_le_one) ((D0).moreover _ _ ((D0).steady _ (by positivity)) hS) have ht:(D0).Good fun i=> (1+(n:ℝ)) * (1+(k:ℝ)*(σ i)⁻¹):=(D0).moreover _ _ ((D0).steady _ (by positivity)) h unfold Jetty.fee Jetty.blade;push_cast; simp_rw [div_eq_mul_inv];exact (D0).moreover _ _ ((D0).steady _ (by positivity)) (stairs _ ht _) lemma show_ (hh:W.Admits)(i:I₀)(h:e≤k)(u:ℕ)(hS:(D0).Good fun j=> (H.strip j)⁻¹):∃ (P Q c:ℝ)(b d:ℕ),0≤P∧0≤Q∧0 stance (Loc G 1) local notation "E"=> Ed G Cover local notation "I₀"=> Accent F /-- at *top* can pick 1 for FPS width, universal. No cutoff-power loss. - pointer F assigned by Reach actual physical stencils. Occupy gr.B with canonical top h-cell scale. -/ def beginner (sh:∀ i,h.filter i ≤1)(H:Hol G)(S:SectionData F)(hv:S.Sound H)(ht:Bid.pop S)(hd:d ≤ D): Boundary F W D k h.filter h.paid where map _:= Fete.encore S call _ _:= Silo.root _ hv ht _ hd pay e n _:=by choose f hp hF using fun i:I₀=>Fete.encore_price S i hd 1 zero_lt_one e n let C:=∑ i,f i refine ⟨_, (Mason.kiosk W).steady C (sum_nonneg (fun _ _=>hp _)),fun i hi j=>?_⟩ exact (hF j).mono (sh i) le_rfl (fun _=>le_rfl) (Finset.single_le_sum (f:=f) (fun i _=>hp i) (mem_univ j)) -- draw directly formal local hypothesis through any admitted horizon, rates. overlap different top lift B supplied for second (usually longer trajectory). Feed quotas. theorem faction (sh:∀ i,h.filter i≤1)(H:Hol G)(S:SectionData F)(hv:S.Sound H)(hP:Bid.pop S)(hd:d≤D)(v:Boundary F W D k h.filter h.paid)(ht:Paid F h H)(hw:W.Admits)(i:I₀)(hk:e≤k)(u:ℕ)(hS:(Mason.kiosk W).Good fun i=>(h.filter i)⁻¹):∃ (A B c:ℝ)(b d:ℕ),0≤A∧0≤B∧0