import YM.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.Windows import YM.Next.EXTRACTION.Base import YM.Next.FREE_KERNELS.Priced import YM.Next.SCHEDULE.Stadium /-! # Windows: before-phase pricing At ANY step and *every* formal sector receiving these physical kernel estimates. Earn width and window ratio from fixed-$L$ affine receipts before seeing the actual volume and patterns. Uses `Green`'s spectral estimates and actual principal restrictions, not ignoring the boundary. Does not claim analyticity in directions here. -/ set_option autoImplicit false noncomputable section namespace YM.AnalyticNext.ConnectedActivity.Win open Progress.StationaryScenes Matrix Filter Lattice ResolventVolume open Green open scoped Topology BigOperators Matrix.Norms.Frobenius structure Promise where mass : ℝ bottom : ℝ alpha : ℝ types : ℝ mass_pos : 0 Real.exp (-w*R)) atTop (𝓝 0) := by have h : Real.exp (-w)<1 := Real.exp_lt_one_iff.mpr (by linarith) simpa only [← Real.exp_nat_mul, mul_comm (-w)] using tendsto_pow_atTop_nhds_zero_of_lt_one (Real.exp_pos (-w)).le h have h1 : Tendsto B.pace atTop (𝓝 0) := by change Tendsto (fun R : ℕ => G * Real.exp (-w*R)) _ _; simpa only [mul_zero] using hW.const_mul G have h2 : Tendsto (fun R => D * s R) atTop (𝓝 0) := by simpa only [s,mul_zero,zero_mul] using (hW.mul_const E).const_mul D refine ⟨B,ht, ?_⟩ filter_upwards [h1.eventually (gt_mem_nhds zero_lt_one), h2.eventually (gt_mem_nhds hk)] with R hR hp' refine ⟨hR,fun c n _ _ d P hP A hA => ?_⟩ have ht (t : ℝ) (ht : t ∈ Set.Icc (0:ℝ) 1) : let F := flows A t Both d d F⁻¹ μ D D ∧ Both d d (P.within F) μ D D ∧ Both d d (P.error F) μ (s R) (s R) ∧ Both d d (P.within F-F⁻¹) μ (D*s R) (D*s R) := by intro F obtain ⟨h1,h2,h3⟩ := flow_income Y A d hA t ht exact P.window_price d F Y.alpha_pos hy hw hh hr hx hA.2.2.1 Y.types_pos.le hU.le hp R hP hV.le h2 h1 h3 have hl : s R ≤ B.pace R ∧ D*s R ≤ B.pace R ∧ Y.mass*(D*s R) ≤ B.pace R := by have hf : B.pace R = (1+D+Y.mass*D)*s R := by unfold pace B G s; ring rw [hf]; have hs := hs R; have hc := mul_nonneg hm.le hD refine ⟨le_mul_of_one_le_left hs (by linarith),mul_le_mul_of_nonneg_right (by linarith) hs, by rw [← mul_assoc]; apply mul_le_mul_of_nonneg_right (by linarith) hs⟩ obtain ⟨i1,i2,i3,i4⟩ := ht 1 ⟨zero_le_one,le_rfl⟩ rw [show flows A 1 = A by rw [flow_pick]; simp] at i1 i2 i3 i4 have hm' : μ ≤ Y.alpha := hp.le.trans (hx.le.trans (mul_le_of_le_one_left Y.alpha_pos.le hw)) have hv := Centered.symmetric_bottom Y.bottom_pos hA.2.1 hA.1 obtain ⟨c1,c2,c3⟩ := P.covariance_price d A hv hA.2.2.2 hm.le hU.le hm' i2 (mul_nonneg hD (hs R)) i4 have ha' := monoBoth c1 le_rfl hd hd refine ⟨fun t H => ?_, ⟨ha',monoBoth c2 le_rfl hl.2.1 hl.2.1,monoBoth c3 le_rfl hl.2.2 hl.2.2⟩,?_⟩ · obtain ⟨h1,h2,h3,h4⟩ := ht _ H exact ⟨monoBoth h1 le_rfl hd hd,monoBoth h2 le_rfl hd hd, monoBoth h3 le_rfl hl.1 hl.1,monoBoth h4 le_rfl hl.2.1 hl.2.1⟩ exact P.covariance_floor d A hv hA.2.2.2 hm hU.le hm' ha' B.holds c2 (show D*s R < k from hp').le end Promise end YM.AnalyticNext.ConnectedActivity.Win