import YM.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.Dice import YM.AnalyticNext.CONNECTED_ACTIVITY_BOUNDS.Kettle import YM.Push.RELAY_DIFFERENCE.SingleMajorant /-! # Charging new inherited addresses and supports Bind on the PRESENTED label arrays, paths authoritative. Cost price for powers of L consumed explicitly. Uses `AbsoluteSums.Paths` and cross-compilation. `extentCost` may be paid post-L, but exponential reserve must be purchased BEFORE L. Signed actual channel footprints. -/ set_option autoImplicit false noncomputable section namespace YM.AnalyticNext.ConnectedActivity.Calls open Filter Function Lattice RG Precision Wilson Pressure Pressure.Stores Exterior Bloch Turn MeasureTheory open Matrix Work.F03 Progress.StationaryScenes Push.SectorMeasure Push.SectorMeasure.Oriented open Push.AbsoluteSums Tree Next.Fluctuations Finset Win Win.Promise Green Rates Aff Aff.Mint Laps Wages open Centered Centered.Till Jewels Footprint Corona Animals open scoped Topology BigOperators InnerProductSpace Matrix.Norms.Frobenius Classical variable {G : Gauge} {c f n : Side} {S : StepData c f} {T : Tube G S} {x : ℝ} {F : Forest S.ratio} {A : Stores S} -- all in coarse footprints; raise η for Actual Support, not diameter def extent (l : ℕ) (X : Support c) (x : ℝ) := halo (l*radiusB x) X def fittings (S : StepData c f) (U : Support c) := univ.filter fun i : Bond f => home S i ∈ U def priorE (S : StepData c f) (X : Support f) := (inspected X).image S.ratio.parent def costE (S : StepData c f) (x : ℝ) (X : Support f) := extent 120 (priorE S X) x def guards (Y : Mint T F A x) (X : Support c) (a : ArrayR G f) := robe Y (fittings S (extent 4 X x)) a -- pay in both/spun shapes, can't take one center in parent-self-lifts lemma forged {v : Type*} (s : Signed) (X : v → Support c) (k : ℕ) (w : v → ℝ) (a C : ℝ) (hw : ∀ i,0 ≤ w i) (hp : 0≤a) (h : Ac.Hit X k w a C) : Ac.Hit (fun i => (X i).image s.act) k w a C := by intro x obtain ⟨y,rfl⟩ := (show Surjective (s.act (R:=Per c)) from s.actEquiv.surjective) x apply budget_mono (h y) · intro i; split next => exact mul_nonneg (hw i) (Real.exp_pos _).le next => rfl intro i; split next he => obtain ⟨z,hz,hy⟩ := mem_image.mp he have hf := s.act_injective (R:=Per c) hy rw [if_pos (hf ▸ hz)]; gcongr · exact hw i simpa only [show (s.act (R:=Per c))=Lattice.affine s (0:Site c) from funext fun i => (add_zero _).symm] using Push.RelayDifference.Single.cover_price s 0 (X i) k next he => exact (h y).1 i lemma many {v u : Type*} [Fintype v] {w : v×u→ℝ} {a C : ℝ} {p : v×u → Support c} {B : ℕ} (h : ∀ j : v,Ac.Hit (fun i => p (j,i)) B (fun i => w (j,i)) a C) : Ac.Hit p B w a ((Fintype.card v:ℝ)*C) := by intro x let y := Labels.unitPrice p B w a x refine budget_of_sum (fun i => (h i.1 x).1 i.2) fun s => ?_ change ∑ i∈s,y i ≤ _ have ht j : ∑ i ∈ s with i.1=j, y i ≤ C := by let f : Finset (v × u) := s.filter fun i => i.1=j have he i (hi : i∈f) : (j,i.2)=i := by rw [← (mem_filter.mp hi).2] calc _ = ∑ i ∈ f.image Prod.snd,y (j,i) := by rw [Finset.sum_image] · exact Finset.sum_congr rfl fun i hi => by rw [he i hi] intro i hi b hb eq exact (he i hi).symm.trans ((congr_arg _ eq).trans (he b hb)) -- fix _ ≤ C := budget_sum (h j x) _ calc _ = ∑ j, ∑ i∈s with i.1=j,y i := (Finset.sum_fiberwise_of_maps_to (fun i _ => mem_univ i.1) _).symm _ ≤ ∑ _j : v,C := Finset.sum_le_sum fun i _ => ht i _ = _ := by simp -- include any fixed halos in post-L prices even for winding paths; -- `K` parameter for the universal extent. Here k=0; always allows -- common marked polynomial application first at full tested exponent. lemma award (G : Gauge) (D : Patch) (P K : ℕ) (R a ε r s b : ℝ) (hε : 0<ε) (hr : 0 ≤ R) (hs : s