import YM.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.Palace /-! # E estimates F/I work against affine square Pointwise on patch of a real sector. Equality to original multipliers only requested on their masks. `Fextend` is one choice for exponent letters outside compulsory. I requires no such expansion for values: use its real Q, with the branch forced on broad patches. Unselected F/I pay with their own sign on the patch prerequisites. Even though E writes an analytic Taylor split, for ungraded hit it suffices to retain the real values. Needn't extend DIFFERENT casts for every incoming mask term. -/ set_option autoImplicit false noncomputable section namespace YM.AnalyticNext.ConnectedActivity.Aff open Filter 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 Win Rates open scoped Topology BigOperators InnerProductSpace Matrix.Norms.Frobenius Classical variable {G : Gauge} {c f n : Side} {S : StepData c f} def squareOf (a : G.Color) := ‖a‖^2/2 def missed (G : Gauge) (u : G.El) := G.chord u^2- ‖G.curvature u‖^2 theorem missed_nn (G : Gauge) (u : G.El) : 0≤ missed G u := sub_nonneg.mpr (pow_le_pow_left₀ (norm_nonneg _) (G.curvature_norm u) _) lemma currency (C : ℝ) (D : Patch) (p : ℕ) : ∀ᶠ x : ℝ in atTop, ∀ u : G.El, G.chord u ≤ allowance G D x 1 p → |C*missed G u| ≤ allowance G D x 4 (p+p+p+p+1) := by obtain ⟨K,r,hK,hr,h⟩ := Work.E05.curvature_lower G filter_upwards [(vanishes G D p).eventually (ge_mem_nhds hr), grow G D (|C| *K) (show p+p+p+p T.high.direct/2*missed G (faceValue W i)+v) rw [← Finset.sum_add_distrib]; exact Finset.sum_congr rfl fun j _ => square_residue (X j) (H j) lemma work_expandI (T : Tube G S) (Q V : Config G c) (s : ℝ) (R : ℕ) (i : Bond c) : T.workI R Q V s i = S.kernel.penalty/2 * missed G (V i * (Q i)⁻¹) + squareOf (Tube.Z S Q V i-T.Mw R s V i) := by rw [← square_residue]; unfold Tube.workI Tube.monetary unfold wire squareOf Tube.Z missed rw [norm_smul,Real.norm_of_nonneg (Real.sqrt_nonneg _),mul_pow,Real.sq_sqrt S.kernel.penalty_pos.le]; ring -- Momentum-to-chord bootstrapping. Need to pay `Mw` here; can't deduce -- connector accuracy from a bound on `Z-Mw` alone. N. likelihood bought -- on the same stencil. State for all turned I though stencils overlap. lemma alerts (P : Teller G) (C : ℝ) (he : Reserve P C) (D : Patch) (hD : D.Branches P.bind G) (p : ℕ) (hp : 7≤p) : ∀ᶠ x : ℝ in atTop, ∀ (c f : Side) (S : StepData c f) (T : Tube G S), S.patch=D → P.Funds S T → ∀ (V : Config G c) (A : Stores S) (_F : Forest S.ratio), cert S x A V → ∀ (k : S.Choices) (U : Config G f) (i : Bond c) (s : Signed) (w : Directions G f), let B := radiusB x let o := s.act i.1 o∉A.dome (2*B) → Stops S w V U o B (allowance G D x 1 p) → let W := pull s 0 V; let U' := pull s 0 U; let k' := choice s k; let Q := S.prediction U' k' wire Q W i ≤ allowance G D x 1 (p+6) ∧ αSite U' i.1 k'=1 ∧ αBond U' i k'=1 := by obtain ⟨K,r,hK,hr,hk⟩ := Work.E05.curvature_lower G let l := Real.sqrt P.bind.penalty have hl : 0 < l := Real.sqrt_pos.mpr P.bind.penalty_pos filter_upwards [arc_bill P C he D hD p hp, shine G D p hp, cordF D P.bind hD (p+2) r hr, he.receipt D.L, grow G D C (show 0