import YM.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.Forecast import YM.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.Rate import YM.Progress.STATIONARY_SCENES.Response /-! # Use with `allowance` budget; one more power of B at a time At this point in the proof we can fix the actual patch after L. All powers of t are in fine cut-chart units, not the shooting β. Combine these receipts with others with the SAME data and with β on its range. -/ set_option autoImplicit false noncomputable section namespace YM.AnalyticNext.ConnectedActivity.Aff open Function Lattice RG Precision Wilson Pressure Pressure.Stores Exterior Bloch Turn open Matrix Work.F03 Progress.StationaryScenes Push.SectorMeasure Push.SectorMeasure.Oriented open Push.AbsoluteSums Tree Next.Fluctuations Finset Filter Rates open scoped Topology BigOperators Matrix.Norms.Frobenius Classical variable {G : Gauge} {c f n : Side} {S : StepData c f} -- convenient stencil radius receipt lemma prepare (D : Patch) : ∀ᶠ x : ℝ in atTop, 4*stencilD D (till x)+10 ≤ radiusB x/4 ∧ radial (till x) D ≤ radiusB x/4 := by filter_upwards [Work.E01.radiusB_tendsto.eventually_ge_atTop (1000*(1+predReach D))] with x hx unfold stencilD radial till; omega lemma late_cost (P : Teller G) (D : Patch) (hb : D.Branches P.bind G) (p : ℕ) : ∀ᶠ x : ℝ in atTop, ∀ (c f : Side) (S : StepData c f) (T : Tube G S), P.Funds S T → S.patch=D → ∀ (a : LogField G f) (b : LogField G c), let r := allowance G D x 1 p; let W := allowance G D x 1 (p+1); let Z := allowance G D x 2 (p+p+3) ‖a‖≤r → ‖b‖≤r → let R := till x; let U := represent a; let V := represent b (∀ i, let N := zip (flatN T) (Limage T b) i; ‖N‖≤W ∧ ‖primalN T R V i-N‖ ≤ Z) ∧ ∀ (k : S.Choices) (y : Pos S), let F := forecast T y a b ‖F‖ ≤ W ∧ ‖primal T R y k V U - F‖ ≤ Z := by obtain ⟨C,τ,r,hC,hτ,hr,H⟩ := ordered_cost P D hb filter_upwards [(Rates.vanishes G D p).eventually (ge_mem_nhds hr), Rates.grow G D C (by omega : p
le_mul_of_one_le_left (abs_nonneg _) ?_ apply Real.one_le_exp; have h := P.width; positivity calc _ ≤ ∑ u, |K i u * parts G 1 b j u| := Finset.abs_sum_le_sum_abs .. _ ≤ ∑ u, |K i u| * E := Finset.sum_le_sum fun u _ => by rw [abs_mul]; exact mul_le_mul_of_nonneg_left ((piece_cost (b u) j).trans ((norm_le_pi_norm b u).trans he)) (abs_nonneg _) _ ≤ _ := by rw [← Finset.sum_mul]; exact mul_le_mul_of_nonneg_right hs hq have hz : ‖station T F b i‖^2 ≤ n*(N*E)^2 := by rw [EuclideanSpace.real_norm_sq_eq] apply le_trans (Finset.sum_le_sum (g:=fun _ => (N*E)^2) ?_) (le_of_eq ?_) · intro j _; rw [← sq_abs]; exact pow_le_pow_left₀ (abs_nonneg _) (hy j) _ simp [n] apply le_trans _ hv have hp := Nat.cast_nonneg (α:=ℝ) (Fintype.card G.ColorIndex) apply (sq_le_sq₀ (norm_nonneg _) (by positivity : 0≤Real.sqrt n*N*allowance G D x 1 p)).mp rw [mul_assoc,mul_pow,Real.sq_sqrt]; exact hz; exact hp end YM.AnalyticNext.ConnectedActivity.Aff