import YM.Next.UV_STRESS.Value import YM.Work.A01.Conserve /-! Integrate on the shell without radial/spherical delta kernels. -/ set_option autoImplicit false noncomputable section namespace YM.Next.UVStress open Filter Function Set MeasureTheory Analysis Extraction Table Ward Climb Work.A01 Work.A05 open scoped Topology ContDiff BigOperators variable {G : Gauge} {L : Register G} {S : Table L} {W : DiffPlan S} {d n : ℕ} -- Conservation on the difference of two windows lemma unchanged_flux (H : S.Hierarchy) (h : W.Derivatives S) {J : S.Stress} (hc : Conserved W H.spin J) (v : S.Field d) {χ χ' : E4 → ℝ} (V : E4 → E4) (hv : ∀ b : Axis,ContDiff ℝ ∞ (fun y => V y b)) (hk : killing V) (x : Points (n+1)) (hx : x∈ conf _) (hw : Window x χ) (hw' : Window x χ') (q : Fin n → S.Tag) : flux J χ V x q v= flux J χ' V x q v := by let P := Fin.cons (α:=fun _ => S.Tag) ⟨d,v⟩ q have hs i y : Analysis.D (basis i) (χ-χ') y= Analysis.D (basis i) χ y - Analysis.D (basis i) χ' y := by unfold Analysis.D; rw [fderiv_sub (hw.1.differentiable (by simp) _) (hw'.1.differentiable (by simp) _)]; rfl have hh (w : E4→ℝ) i y : Analysis.D (basis i) w y • current J V x P i y = ∑ j, term J w V x q v i j y := by unfold current; rw [Finset.smul_sum]; apply Finset.sum_congr rfl; intro j _ unfold P term; rw [smul_smul]; exact Complex.real_smul let F := χ-χ' have hF (i : Axis) : (∫ y, Analysis.D (basis i) F y • current J V x P i y) = (∑ j, (∫ y, term J χ V x q v i j y))-(∑ j, (∫ y, term J χ' V x q v i j y)) := by simp_rw [F,hs,sub_smul,hh]; rw [integral_sub] · rw [integral_finsetSum _ (fun j _ => term_integrable J χ V x q v H.smooth hx hw i j (hv j).continuous), integral_finsetSum _ (fun j _ => term_integrable J χ' V x q v H.smooth hx hw' i j (hv j).continuous)] exacts [integrable_finsetSum _ fun j _ => term_integrable J χ V x q v H.smooth hx hw i j (hv j).continuous, integrable_finsetSum _ fun j _ => term_integrable J χ' V x q v H.smooth hx hw' i j (hv j).continuous] have hz (i : Fin (n+1)) : x i ∉ tsupport F := by rw [notMem_tsupport_iff_eventuallyEq] refine Fin.cases ?_ (fun j => ?_) i · filter_upwards [hw.2.2.1,hw'.2.2.1] with k hk he rw [show F k = _ from (Pi.sub_apply _ _ _), show χ k=1 from hk, show χ' k=1 from he, sub_self]; rfl simpa using (notMem_tsupport_iff_eventuallyEq.mp (hw.2.2.2 j)).sub (notMem_tsupport_iff_eventuallyEq.mp (hw'.2.2.2 j)) have he := cutoff_zero H.smooth W h J hc V hv hk x P F (hw.1.sub hw'.1) (hw.2.1.sub hw'.2.1) (fun y hy => conf_cons hx fun i hh => hz i (hh ▸ hy)) simp_rw [hF, Finset.sum_sub_distrib,neg_eq_zero,sub_eq_zero] at he unfold flux; rw [he] lemma conversion_shell (J : S.Stress) (V : E4 → E4) (p : ℕ) (hg : ∀ y (r : ℝ), 0 < r → V (r • y)=r^p • V y) {w : E4 → ℝ} (hw : ContDiff ℝ ∞ w) (x : Points (n+1)) (q : Fin n → S.Tag) (v : S.Field d) {r : ℝ} (hr : 0 < r) (i j : Axis) (y : E4) : term J (stretch r w) V x q v i j (r • y) = ((r:ℂ)^4)⁻¹ * (weight w i (fun z => V z j) y * ((r:ℂ)^(3+p)*disc (Fin.cons ⟨4,J i j⟩ (Fin.cons ⟨d,v⟩ q)) (Points.cons (r • y) x))) := by unfold term weight; rw [D_stretch hr hw, hg y _ hr] unfold disc; change (((r⁻¹ * Analysis.D (basis i) w y) * (r^p * V y j):ℝ):ℂ)*_= _ have h : (↑r:ℂ) ≠ 0 := by exact_mod_cast hr.ne' push_cast; rw [pow_add]; field_simp /-- Component in Euler homogeneity h=3+b, with degree b of weight V. -/ lemma graded_integral (J : S.Stress) (V : E4 → E4) (p : ℕ) (hg : ∀ y (r : ℝ), 0 < r → V (r • y)=r^p • V y) {w : E4 → ℝ} (hw : ContDiff ℝ ∞ w) (x : Points (n+1)) (q : Fin n → S.Tag) (v : S.Field d) {r : ℝ} (hr : 0 < r) (i j : Axis) : (∫ y, term J (stretch r w) V x q v i j y) = ∫ y, weight w i (fun z => V z j) y * ((r:ℂ)^(3+p)*disc (Fin.cons ⟨4,J i j⟩ (Fin.cons ⟨d,v⟩ q)) (Points.cons (r • y) x)) := by let F (y : E4) := disc (Fin.cons ⟨4,J i j⟩ (Fin.cons ⟨d,v⟩ q)) (Points.cons (r • y) x) let M (y : E4) := weight w i (fun z => V z j) y * ((r:ℂ)^(3+p)*F y) let H := term J (stretch r w) V x q v i j have h : (↑r:ℂ) ≠ 0 := by exact_mod_cast hr.ne' have he (y) : H (r • y) = ((r:ℂ)^4)⁻¹ * M y := conversion_shell _ _ _ hg hw _ _ _ hr _ _ _ change (∫ y,H y)=(∫ y,M y) have ht := Measure.integral_comp_smul_of_nonneg volume H r (hR:=hr.le) simp_rw [he] at ht; rw [integral_const_mul,show Module.finrank ℝ E4=4 from finrank_euclideanSpace_fin, Complex.real_smul,Complex.ofReal_inv,Complex.ofReal_pow] at ht exact mul_left_cancel₀ (inv_ne_zero (pow_ne_zero _ h)) ht.symm private def capB : ContDiffBump (0 : E4) := ⟨(1:ℝ)/2,1,by norm_num,by norm_num⟩ private lemma stretch_window (x : Points (n+1)) (he : x 0=0) (r : ℝ) (hr : 0 < r) (hp : ∀ i : Fin n, r < ‖x i.succ‖) : Window x (stretch r capB) := by have hh : Window (r⁻¹ • x) capB := by refine ⟨capB.contDiff,capB.hasCompactSupport,?_,?_⟩ · rw [PiLp.smul_apply,he,smul_zero]; exact capB.eventuallyEq_one intro i hx; rw [capB.tsupport_eq,Metric.mem_closedBall,dist_zero_right, PiLp.smul_apply,norm_smul, Real.norm_of_nonneg (inv_pos.mpr hr).le] at hx have ht : ‖x i.succ‖ ≤ r := calc _ = r * (r⁻¹ * ‖x i.succ‖) := (mul_inv_cancel_left₀ hr.ne' _).symm _ ≤ r * 1 := mul_le_mul_of_nonneg_left hx hr.le _ = _ := mul_one _ exact not_lt_of_ge ht (hp i) simpa only [smul_inv_smul₀ hr.ne'] using window_stretch hr hh private theorem within_cap (i : Axis) (r : ℝ) (hr : 0 < r) (y : E4) (hp : Analysis.D (basis i) capB y ≠ 0) : r • y ∈ annulus r := by have he : y∈tsupport capB := tsupport_fderiv_apply_subset ℝ _ (subset_closure hp) have hY : 1/2 ≤ ‖y‖ := by by_contra! hh have hv : capB =ᶠ[𝓝 y] (fun _ => 1) := by filter_upwards [Metric.isOpen_ball.mem_nhds (show y∈ Metric.ball 0 capB.rIn by rw [Metric.mem_ball,dist_zero_right]; exact hh)] with x hx exact capB.one_of_mem_closedBall (Metric.ball_subset_closedBall hx) exact hp (by rw [Analysis.D,hv.fderiv_eq]; simp) rw [capB.tsupport_eq,Metric.mem_closedBall,dist_zero_right] at he; change ‖y‖ ≤ 1 at he change r/4<‖r • y‖ ∧ ‖r • y‖ < 2*r rw [norm_smul,Real.norm_of_nonneg hr.le]; constructor <;> nlinarith section pay variable {G : Gauge} {C : Family G} {S : Table C.book} {V : DiffPlan S} {F : Extraction.Order} variable {ι : Type*} [Fintype ι] /-- Exact finite-geometry annihilation. All choices can depend on the finite family I, but must include the same rooted estimate at every test of the chosen fields. -/ theorem physical_value (hC : C.Makes) (hq : Cells.CellHyp C F) (ho : F.PointLimits C S) (H : S.Hierarchy) (h : V.Derivatives S) {J : S.Stress} (hc : Conserved V H.spin J) (v : S.Field d) (U : E4→E4) (hw : ∀ i : Axis,ContDiff ℝ ∞ (fun y => U y i)) (hl : killing U) (p : ℕ) (hg : ∀ y (r : ℝ),0 (I i).t)) obtain ⟨A,hA,hb⟩ := pays_current I hC hq ho H k (fun i => (Finset.le_sup (s:=Finset.univ) (f:=fun i => (I i).t) (Finset.mem_univ i)).trans hk) D g ht choose r hr hs Hz using fun k => HH _ (cost_pos k) _ (cost_pos k) have hwg : Tendsto r atTop (𝓝 0) := squeeze_zero (fun i => (hr i).le) hs cost_clears let E (i j : Axis) (a : ι) l y := (r l:ℂ)^(3+p) * (I a).asked (J i j) v (r l • y) let M (i j : Axis) := weight capB i (fun y => U y j) let F (i j : Axis) l := ∫ y, ∑ a, g a*(M i j y * E i j a l y) have hf : ∀ᶠ l in atTop,∀ (i : ι) (j : Fin (I i).n), r l < ‖(I i).held j.succ‖ := by refine eventually_all.mpr (fun i => eventually_all.mpr (fun j => hwg.eventually (gt_mem_nhds (norm_pos_iff.mpr ?_)))) intro he exact Fin.succ_ne_zero j ((I i).distinct (he.trans (I i).origin.symm)) have hM (i j : Axis) : Integrable (fun y => ‖M i j y‖) := (integrable_weight capB.contDiff capB.hasCompactSupport i (hw j).continuous).norm have he (i j : Axis) : Tendsto (F i j) atTop (𝓝 0) := by apply Metric.tendsto_nhds.mpr; intro ε hε have ht := cost_clears.mul_const A |>.const_mul (∫ y, ‖M i j y‖) rw [zero_mul,mul_zero] at ht filter_upwards [hf,ht.eventually (gt_mem_nhds hε)] with l hh hx rw [dist_zero_right] calc _ ≤ ∫ y, ‖M i j y‖ * (costHint l*A) := norm_integral_le_of_norm_le ((hM i j).mul_const _) (by filter_upwards with y change ‖∑ a, g a*(M i j y* E i j a l y)‖ ≤ _ by_cases ht : Analysis.D (basis i) capB y = 0 · have h : M i j y=0 := by simp [M,weight,ht] simp [h] have hP a : Points.cons (r l • y) (I a).held∈conf _ := separated_of_D (I a).distinct (stretch_window _ (I a).origin _ (hr l) (hh a)) (show Analysis.D (basis i) (stretch (r l) capB) _≠0 from by rw [D_stretch (hr l) capB.contDiff]; exact mul_ne_zero (inv_pos.mpr (hr l)).ne' ht) have he := hb (3+p) d B T _ _ (Hz l) (cost_pos l) i j _ (within_cap i _ (hr l) y ht) hP rw [B1,T1] at he simp_rw [mul_left_comm (g _) (M i j y), ← Finset.mul_sum]; rw [norm_mul] exact mul_le_mul_of_nonneg_left he (norm_nonneg _)) _ = _ := integral_mul_const .. _ < ε := hx have hv := Tendsto.neg (tendsto_finsetSum Finset.univ (fun i _ => tendsto_finsetSum Finset.univ (fun j _ => he i j))) -- all expressions are genuine integrals before distributing let f (i : ι) := flux J (W i) U (I i).held (S.classTokens ∘ (I i).q) v have hz : Tendsto (fun k : ℕ => -(∑ i : Axis, ∑ j : Axis,F i j k)) atTop (𝓝 0) := (by simpa only [Finset.sum_const_zero,neg_zero] using hv) refine tendsto_nhds_unique_of_eventuallyEq (f:=fun _ : ℕ => ∑ i : ι,g i * f i) tendsto_const_nhds hz ?_ filter_upwards [hf] with k hk let G (a : ι) (i j : Axis) y := M i j y * E i j a k y let c := stretch (r k) capB have hC a := stretch_window _ (I a).origin _ (hr k) (hk a) have hint (i j : Axis) (a : ι) : Integrable (G a i j) := by let T := term J c U (I a).held (S.classTokens ∘ (I a).q) v i j have ht (y : E4) : T (r k • y)= ((r k:ℂ)^4)⁻¹ * G a i j y := conversion_shell J U p hg capB.contDiff _ _ _ (hr k) _ _ y have hu : Integrable T := term_integrable J _ _ _ _ _ H.smooth (I a).distinct (hC a) _ _ (hw j).continuous have hz : G a i j=fun y => (r k:ℂ)^4 * T (r k • y) := by funext y rw [ht,mul_inv_cancel_left₀ (pow_ne_zero _ (by exact_mod_cast (hr k).ne'))] rw [hz]; exact (hu.comp_smul (hr k).ne').const_mul _ have hF i j : F i j k=∑ a : ι,g a*(∫ y,G a i j y) := by unfold F; rw [integral_finsetSum _ (fun a _ => (hint i j a).const_mul _)] exact Finset.sum_congr rfl fun a _ => integral_const_mul (g a) (G a i j) have ht (a : ι) : f a= -(∑ i : Axis,∑ j : Axis,(∫ y,G a i j y)) := by unfold f; rw [unchanged_flux H h hc v U hw hl _ (I a).distinct (hy a) (hC a), flux] simp_rw [graded_integral J U p hg capB.contDiff _ _ _ (hr k)]; rfl simp_rw [ht,hF,mul_neg,Finset.mul_sum,Finset.sum_neg_distrib] refine congr_arg Neg.neg (Eq.trans (Finset.sum_comm) ?_) exact Finset.sum_congr rfl fun i _ => Finset.sum_comm end pay end YM.Next.UVStress