import YM.UVExtension.Gale.Swap import YM.OPE.Log.Grant /-! # Begin assembly of simultaneous UV and log OPE family Adapted `Gale.Swap`, necessarily purchasing more constraints inside assembly rather than using the separate assembled witnesses. `PB` vs `second` are distinct mark allowances on one clock: Floral uses constant one, but for the OPE iteration the same Chateau will need to service growing orders. Pay also the `FrameAccord` of OPE.Log. All existing requirements on the assembly are retained here so it can still serve the UV provider. -/ set_option autoImplicit false noncomputable section namespace YM.PhysicalNext.Repeat.Legato open Function Filter Set Lattice RG RG.Shoot Wilson Precision RG.Supply Input Org Extra.Histories Source open JointLoad JointLoad.Heir JointLoad.Heir.Suite JointLoad.Psalm Clockwork open AnalyticBridge VerifiedReset Collection Quotes Next.Scheduling Extra.Iteration Song Geo open ThroughLaunch Roof Push.PriceCompiler Further.StrongStartup SectorNext open WilsonStartup Progress.DirectedRecipe Time Next.Foundations UVNext.CouplingReset open Cub Circlet Graces Roost open scoped Topology BigOperators Classical Matrix.Norms.Frobenius ContDiff Interval InnerProductSpace variable {G : Gauge} (hG : G.Simple) {K : KernelChoices} (hK : ∀ p:Patch,p.Branches K G) (v : ThroughLaunch.Orders) (h : ThroughLaunch.Draft v) section variable {s: Sheet G} {r:Bid.Worth}{O T : MapPrices} {p h k :ℕ→ℝ} {v₀:ℕ →ℕ} {f : Tariffs} {t:Extra.Multi.Scope}(hh : UVExtension.Case.Purchased s O T p h k r f t v₀) (hC : Chop s k mile) include hh hC hG lemma multitude (second PB:ℕ→ℕ): ∃ f : ℕ → ℕ, v₀ ≤ f ∧ ∀ L :ℕ→ℕ,f ≤ L → Nonempty (Rolls (ThroughLaunch.raise s L)) ∧ ∀ D : Rolls (ThroughLaunch.raise s L),∃ v: Return.Wages, ∀ w: Return.Wages,v ≤ w→∀ (Q: ℕ→ℕ→Postage)(E : ℕ→ℕ→Exchange)(ξ:Extra.Multi.Tariff), ∃ (P:PostCost D), ∀ θ₀ : ℕ→ℝ, (∀ i,0<θ₀ i) → ∃ θ:Protection D, θ.theta ≤ θ₀ ∧ ∀ (H:ℕ→ℕ→JointLoad.Clockwork.Menu) (T0: Delays θ)(J:ℕ→ℕ→JointLoad.Folio.Aux), ∃ V:Delays θ, DelayLe T0 V∧ OrderedDelays V ∧ ∀ Y:Delays θ,DelayLe V Y→∀ (b:Bar Y)(I: Wait b)(a: Levels G)(_ : Paid I a), AsDivisors a.S→ ∃ (hp:Stock.Priced Y) (B: Directed G I (chart G) (UVExtension.Case.actualPay s T) P), let A := (Alloy.mk P θ Y b I hp B : Alloy (UVExtension.Case.provider s T L) D); B.a=a∧Extra.Multi.Prepared t ξ (localSection G) a ∧ ∃ R:Roost.Factor A, R.walls=w∧ R.exchange=E ∧ (∀ j i,(R.book j i).rate ≤ (Q j i).rate) ∧ R.menu=H∧ R.auxiliary=J ∧ Nonempty (Bandage R k r) ∧ (UVExtension.Cloud.Leases k R.shape A.delay ∧ (∀ i j,(R.target i j).rate ≤ -(7/16:ℝ)))∧ Mallow.Minty R.shape PB Y ∧ (∀ i j,Push.PriceCompiler.StepStages i j→Real.exp (Release.base ((s.profile j).supportExponent+2) (R.span i j)) ≤ (D.L i).val) ∧ Mallow.AccordV R.shape PB Y ∧ (Mallow.Minty R.shape second Y ∧ Mallow.AccordV R.shape second Y ∧ Mallow.FrameAccord R.target D Y) ∧ Nonempty (UVExtension.Spire.Grove R) ∧ UVExtension.Roads.Tags.Tax R.shape Y ∧ UVExtension.Free.Report B.M (UVExtension.Case.actualPay s T) ∧ UVExtension.Reward.Ends B.a B.kin.path B.kin.alpha ∧ ∃ f,RankCovariance.ShapePort B.a B.M f :=by obtain ⟨ε,hε⟩:= UVExtension.Guild.tooling _ (show 0?_⟩ obtain ⟨he,hy⟩:= sup_le_iff.mp he; obtain ⟨he,hm⟩:=sup_le_iff.mp he obtain ⟨hf,hb⟩:=sup_le_iff.mp he; obtain ⟨hn,hv⟩:=sup_le_iff.mp hb; obtain ⟨hl,hv⟩:=sup_le_iff.mp hv obtain ⟨h',hp⟩:= hQ _ hf; refine ⟨h',fun D=>?_⟩; obtain ⟨w,H⟩:= hp D refine ⟨w,fun w' hw Q E' ξ=>?_⟩ obtain ⟨u,Z,B,hU⟩:= H w' hw; obtain ⟨F,S,hΨ,hZ⟩:= hU Q obtain ⟨q,η,P,hp⟩:=hZ E' ξ; refine ⟨P,fun θ₀ hθ=>?_⟩ obtain ⟨θ,hα,p₁,hϑ,hK⟩:= hp _ hθ obtain ⟨M,hP,H⟩:=cymbals D (retune (u:=l) hB) hv (fun _ _=> 1/4) (fun _ _=> by norm_num) refine ⟨θ,hα,fun X V J=>?_⟩ obtain ⟨V₁,hv₁,hP₁⟩:= Mallow.brevity Z (show Mallow.Arena (ThroughLaunch.raise s l) _ _ _ n from hA) (fun j=>(hn j).trans (D.large j).need) V obtain ⟨V₂,hv₂,hP₂⟩:= Graces.reacts (s:=ThroughLaunch.raise s l) C D p₁ mile Z V₁ hϑ obtain ⟨V₃,hv₃,hP₃⟩:= Circlet.chords (M:=ThroughLaunch.raise s l) C' D M mile Z hP V₂ obtain ⟨V₄,hv₄,hP₄⟩:= H θ V₃ obtain ⟨V₅,hv₅,hP₅⟩:= Graces.compass Z V₄ obtain ⟨V₆,hv₆,hP₆⟩:= Cub.motions (M:=ThroughLaunch.raise s l) R E mile D Z C' M hP V₅ obtain ⟨v₇,hv₇,H₇⟩:= Mallow.scarce Z PB V₆ obtain ⟨v₈,h₈,H₈⟩:= Mallow.swelling Z PB v₇ obtain ⟨v₉,h₉,H₉⟩:= UVExtension.Above.charts v₈ (show 0max (v₉.betaEntry i) m } have h₀: DelayLe v₉ w₀:= ⟨fun _=> le_max_left ..,le_rfl,le_rfl,le_rfl⟩ obtain ⟨w₁,hw₁,hw'⟩:= UVExtension.Cloud.hones k Z w₀ (show UVExtension.Cloud.Steep G (ThroughLaunch.raise s l) _ _ Λ from hΛ) (fun i=> (hy i).trans (D.large i).need) obtain ⟨V2,hQ₂,HQ₂⟩ := Mallow.scarce Z second w₁ obtain ⟨V3,hQ₃,HQ₃⟩ := Mallow.swelling Z second V2 obtain ⟨V4,hQ₄,HQ₄⟩ := Mallow.swellFrame (s:=ThroughLaunch.raise s l) R V3 have hQP := hQ₂.trans (hQ₃.trans hQ₄) obtain ⟨b,hv⟩:= hK X V4; obtain ⟨W,hO,hQ,hX⟩:=hv J refine ⟨W, hv₁.trans (hv₂.trans (hv₃.trans (hv₄.trans (hv₅.trans (hv₆.trans (hv₇.trans (h₈.trans (h₉.trans (h₀.trans (hw₁.trans (hQP.trans hQ))))))))))), hO,fun Y he K I a ha hp=>?_⟩ obtain ⟨hc,hD,hp',B0,hB',hf,hW,hU,hV,hσ⟩:= hX Y he K I a ha let A:Alloy (UVExtension.Case.provider s T l) D:= Alloy.mk P θ Y K I hp' B0 have hg:=hQP.trans (hQ.trans he); have hM₉:=h₀.trans (hw₁.trans hg); have hM₈:=h₉.trans hM₉; have hM₇:= h₈.trans hM₈; have hM₆ := hv₇.trans hM₇; have hM₅:= hv₆.trans hM₆; have hM₄:=hv₅.trans hM₅; have hM₃:=hv₄.trans hM₄ obtain ⟨V,W,k,hq,hS,ha',hmT⟩:= hσ let F' : Factor A:=⟨E',F,S,η,q,w',B,R,E,u,Z,bt,z,rays s,mile,b,C,X,p₁,J,hf,fun i j=> (hF i j).1,hW,hB'.symm ▸ hp⟩ have hA: m ≤ a.clock.bar:= by rw [ha.bar]; exact ((le_max_right _ _).trans ((hw₁.trans hg).beta _)).trans K.ready have hY:=UVExtension.Above.earned ha (H₉ Y hM₉) hG have ht':∀ i, UVExtension.Above.Entry B0.a i UVExtension.Camp.soft:= by rw [hB']; exact hY have hk: UVExtension.Guild.Paperwork F'.shape ε UVExtension.Camp.soft A.delay:= k refine ⟨hp',B0,hB',hD,F' ,rfl,rfl,hΨ,rfl,rfl,⟨⟨T',C',M,_, retune (u:=l) hB, hP₄ _ hM₄, hP₃ _ hM₃,hP₆ _ hM₆,hP₁ _ (hv₂.trans (hv₃.trans hM₃)),hC,hB'.symm ▸ hc,hP₅ _ hM₅,fun j i d hk f hx=> hM _ _ _ hk f ((hl _).trans hx),hP₂ _ (hv₃.trans hM₃)⟩⟩, ⟨hw' Y hg,fun i j=> ((E i j).reach.le.trans_eq (hF i j|>.2.2.2.1))⟩, H₇ Y hM₇,hπ l hm D,H₈ Y hM₈,⟨HQ₂ Y (hQ₃.trans (hQ₄.trans (hQ.trans he))),HQ₃ Y (hQ₄.trans (hQ.trans he)),HQ₄ Y (hQ.trans he)⟩,⟨ε,UVExtension.Guild.purchase hk V W,k,hS,ha',ht', (show UVExtension.Camp.Fees B0.a from hB' ▸ Hm a hA)⟩,hq,hmT⟩ end -- Exact continuity of choices returned. include hG hK h lemma multitude_foot (second PB:ℕ→ℕ): ∃ s:Sheet G,∃ (T:MapPrices) (p: ℕ→ℝ)(W:Bid.Worth), s.kernel=K∧ ThroughLaunch.WithStage s v ∧ ∀ (_f:Tariffs)(X: Extra.Multi.Scope),∃ v: ℕ→ℕ, s.floorL ≤ v ∧ ∀ k:ℕ→ℕ,v≤k→ Nonempty (Rolls (ThroughLaunch.raise s k))∧ ∀ D: Rolls (ThroughLaunch.raise s k), ∃ v : Return.Wages,∀ w:Return.Wages,v≤w→∀ (Q:ℕ→ℕ→ Postage)(E:ℕ→ℕ→Exchange)(ξ:Extra.Multi.Tariff),∃ P: PostCost D, ∀ θ₀ : ℕ→ℝ,(∀ i,0<θ₀ i)→∃ θ: Protection D,θ.theta ≤ θ₀∧∀ (H:ℕ→ℕ→JointLoad.Clockwork.Menu)(J:ℕ→ℕ→JointLoad.Folio.Aux)(T0:Delays θ),∃ V:Delays θ,DelayLe T0 V ∧ OrderedDelays V∧∀ Y:Delays θ,DelayLe V Y→∀ (b:Bar Y)(I:Wait b)(a:Levels G)(_ : Paid I a),AsDivisors a.S →∃ (hp: Stock.Priced Y) (B: Directed G I (chart G) (UVExtension.Case.actualPay s T) P),let A := (Alloy.mk P θ Y b I hp B : Alloy (UVExtension.Case.provider s T k) D); B.a=a∧ Extra.Multi.Prepared X ξ (localSection G) a ∧∃ R:Factor A,R.walls=w∧ R.exchange=E ∧ (∀ j i,(R.book j i).rate ≤(Q j i).rate)∧R.menu=H∧ R.auxiliary=J ∧ Nonempty (Bandage R p W) ∧ (UVExtension.Cloud.Leases p R.shape A.delay ∧ (∀ i j,(R.target i j).rate ≤ -(7/16:ℝ)))∧ Mallow.Minty R.shape PB Y ∧ (∀ i j,Push.PriceCompiler.StepStages i j→Real.exp (Release.base ((s.profile j).supportExponent+2) (R.span i j)) ≤ (D.L i).val) ∧ Mallow.AccordV R.shape PB Y ∧ (Mallow.Minty R.shape second Y ∧ Mallow.AccordV R.shape second Y ∧ Mallow.FrameAccord R.target D Y) ∧ Nonempty (UVExtension.Spire.Grove R) ∧ UVExtension.Roads.Tags.Tax R.shape Y ∧ UVExtension.Free.Report B.M (UVExtension.Case.actualPay s T) ∧ UVExtension.Reward.Ends B.a B.kin.path B.kin.alpha ∧ ∃ f,RankCovariance.ShapePort B.a B.M f :=by obtain ⟨p,hp,h'⟩:= loch mile K h G obtain ⟨s,O,T,t,g,W,hS,hW,H⟩:= UVExtension.Case.sailsV hG hK h p hp refine ⟨s,T,p,W,hS,hW, fun f X=> ?_⟩ obtain ⟨v,h⟩:= H f X obtain ⟨n,hn,hN⟩:= multitude hG h (h' s hS hW) second PB refine ⟨n,h.liftL.trans hn, fun k hk=> ⟨(hN k hk).1,fun D=> ?_⟩⟩ obtain ⟨y,hy⟩:= (hN k hk).2 D; refine ⟨y,fun w hw Q E ξ=>?_⟩; obtain ⟨P,hP⟩:= hy w hw Q E ξ; refine ⟨P,fun θ₀ h₀=> ?_⟩; obtain ⟨θ,hα,hH⟩:= hP θ₀ h₀; exact ⟨θ,hα,fun H J T0 => hH H T0 J⟩ end YM.PhysicalNext.Repeat.Legato