import YM.Pert.Bulk.Inherit /-! Single common exponential norm on each finite packet demand, no per-step width loss for the indicated pull. Includes exact matrix periodization and Face intertwining explicitly linked to the same horizon/stages. -/ set_option autoImplicit false noncomputable section namespace YM.Pert.Bulk open Lattice Laurent RG Function Precision Filter Bloch Exterior Matrix open scoped ENNReal Topology Classical BigOperators variable {α β:Type} {G : Gauge} {a:Levels G} {H : Horizon a} {n:Side} {L : Side} lemma merit {K : Bed} {σ p:ℝ} (h: K.covered σ p) : 0≤p := let i := plaquette ⟨((0:Axis),(1:Axis)),by decide⟩ (tsum_nonneg (g:=fun z=>Real.exp (σ * size z) * ‖K.inverse i i z‖) fun x=>(h.2.2.1 i i).1 x).trans (h.2.2.1 i i).2.2 def allotment (P:MapPrices) (j i:ℕ) := pre Faces Faces (P.Ω j) (Real.exp 4 * P.Ω j) (P.Ω i) def fine_share (H : Horizon a) (N m:ℕ) := response (H.towers N m) (H.H N (m+1)) (H.H N m) def carrier_share (H : Horizon a) (N m p:ℕ) := carrier (a.clock.op m p).ratio (H.towers N m) (H.H N (m+1)) (H.H N m) lemma values {P:MapPrices}(h:H.Suffices P) {N m:ℕ}(hk:m.1 hσ rw [min_comm (P.α j)]; constructor <;> rcases (show σ≤0 ∨ 0<σ from le_or_gt _ _) with hh|hh · exact hh.trans hbudget · dsimp [palette] at hσ apply hσ.trans apply div_le_self · exact hbudget simp · exact (mul_nonpos_of_nonneg_of_nonpos (by positivity) hh).trans hbudget nlinarith [Nat.cast_nonneg (α:=ℝ) r] lemma atlas_here {N m:ℕ} {P:MapPrices}(h:H.Suffices P) (r:ℕ)(hk:m(ha.row u v).trans (ENNReal.ofReal_le_ofReal (by gcongr)),fun u v=>(ha.col u v).trans (ENNReal.ofReal_le_ofReal (by gcongr)),fun u => ?_⟩ intro x v exact (ha.step u x v).trans (ENNReal.ofReal_le_ofReal (by gcongr)) set_option maxHeartbeats 600000 in lemma deep_bound {n:ℕ} (A B c p:ℝ) (hp:0≤p)(hc:0≤c)(ha:0≤A)(hb:0≤B)(h:2≤n) : (B*(c/(L.val:ℝ)^2))^n * (A*(c*(L.val:ℝ)^4/(L.val:ℝ)^2))*p ≤ ((B*c)^n * (A*c)*p)/(L.val:ℝ)^2 := by have hu : (1:ℝ) ≤L.val := by exact_mod_cast L.property let x : ℝ := L.val have hx : 0(hk x).trans (ENNReal.ofReal_le_ofReal (deep_bound _ _ _ _ hp hA.nonneg (by positivity) (by positivity) hr)) lemma square_receipt {P:MapPrices} (h:H.Suffices P) {N m:ℕ}{K:Packet 1 Faces} {σ p:ℝ}(hp:0≤p)(hh:m