import Mathlib import OAI.Analysis.HardSphere.Operators.FormResolventNormEnergy import OAI.Analysis.HardSphere.Orbitals.FreePathLawFiniteDeletion namespace OAI section section noncomputable section open MeasureTheory Filter Set open scoped Topology ENNReal BigOperators open scoped RealInnerProductSpace noncomputable section open MeasureTheory Filter Set open scoped Topology ENNReal BigOperators namespace HardSphere open MeasureTheory Wiener Set Filter noncomputable section def freePathExpectation {m : ℕ} {L : Length} (t : ℝ) (h : ConfigurationPath m L → ℝ≥0∞) (X : Configuration m L) : ℝ≥0∞ := ∫⁻ w : CoordinatePaths m, h (freeTrajectory m L t w X) ∂coordinateWiener m lemma freePathExpectation_measurable {m : ℕ} {L : Length} (t : ℝ) {h : ConfigurationPath m L → ℝ≥0∞} (hh : Measurable h) : Measurable (freePathExpectation t h) := (hh.comp (freeTrajectory_continuous m L t).measurable).lintegral_prod_left' lemma selected_start_integral {m n : ℕ} {L : Length} (u : ScalarL2 (m+n) L) (t : ℝ) {h : ConfigurationPath m L → ℝ≥0∞} (hh : Measurable h) : (∫⁻ ω : ConfigurationPath m L, h ω*ENNReal.ofReal (sliceNormSq u (ω 0)) ∂freePathLaw m L t)= ∫⁻ y : Configuration m L, freePathExpectation t h y*ENNReal.ofReal (sliceNormSq u y) ∂volume := by have hmeas : Measurable (fun ω : ConfigurationPath m L ↦ h ω*ENNReal.ofReal (sliceNormSq u (ω 0))) := hh.mul (((sliceNormSq_measurable u).comp (continuous_eval_const (0:Time)).measurable).ennreal_ofReal) rw [freePathLaw,lintegral_map hmeas (freeTrajectory_continuous m L t).measurable] have heq : (fun p : CoordinatePaths m × Configuration m L ↦ h (freeTrajectory m L t p.1 p.2)*ENNReal.ofReal (sliceNormSq u (freeTrajectory m L t p.1 p.2 0))) =ᵐ[(coordinateWiener m).prod volume] (fun p ↦ h (freeTrajectory m L t p.1 p.2)*ENNReal.ofReal (sliceNormSq u p.2)) := by filter_upwards [Measure.quasiMeasurePreserving_fst.ae (freeTrajectory_initial_ae m L t)] with p hp rw [hp p.2] have hp : Measurable (fun p : CoordinatePaths m × Configuration m L ↦ h (freeTrajectory m L t p.1 p.2)*ENNReal.ofReal (sliceNormSq u p.2)) := (hh.comp (freeTrajectory_continuous m L t).measurable).mul ((sliceNormSq_measurable u).comp measurable_snd).ennreal_ofReal rw [lintegral_congr_ae heq,lintegral_prod_symm _ hp.aemeasurable] apply lintegral_congr intro y simpa only [freePathExpectation] using lintegral_mul_const (μ:=coordinateWiener m) (ENNReal.ofReal (sliceNormSq u y)) (show Measurable (fun w : CoordinatePaths m ↦ h (freeTrajectory m L t w y)) from hh.comp ((freeTrajectory_continuous m L t).measurable.comp (measurable_id.prodMk measurable_const))) lemma slice_mass_integral {m n : ℕ} {L : Length} (u : Jet (m+n) L) {H : Configuration m L → ℝ≥0∞} (hH : Measurable H) : (∫⁻ y : Configuration m L, H y*ENNReal.ofReal (sliceNormSq u.1 y) ∂volume)= ∫⁻ X : Configuration (m+n) L, H (splitConfiguration m n L X).1 ∂groundPositionLaw (m+n) L u := by have hu := (Lp.stronglyMeasurable u.1).measurable have hmH : Measurable (fun X : Configuration (m+n) L ↦ H (splitConfiguration m n L X).1) := hH.comp (splitConfiguration_continuous m n L).measurable.fst rw [groundPositionLaw,lintegral_withDensity_eq_lintegral_mul volume (hu.norm.pow_const 2).ennreal_ofReal hmH] have hD : Measurable (fun X : Configuration (m+n) L ↦ ENNReal.ofReal (‖u.1 X‖^2)*H (splitConfiguration m n L X).1) := (hu.norm.pow_const 2).ennreal_ofReal.mul hmH have hJ : Measurable (fun p : Configuration m L × Configuration n L ↦ ENNReal.ofReal (‖u.1 (joinConfiguration m n L p)‖^2)*H p.1) := (((hu.comp (joinConfiguration_continuous m n L).measurable).norm.pow_const 2).ennreal_ofReal).mul (hH.comp measurable_fst) have hj := (joinConfiguration_preserving m n L).lintegral_comp hD simp only [split_joinConfiguration] at hj simp only [Pi.mul_apply] rw [← hj,lintegral_prod _ hJ.aemeasurable] apply lintegral_congr_ae filter_upwards [memLp_slice_ae u.1] with y hy have hyM : Measurable (fun x : Configuration n L ↦ ENNReal.ofReal (‖u.1 (joinConfiguration m n L (y,x))‖^2)) := (((hu.comp (joinConfiguration_continuous m n L).measurable).comp (measurable_const.prodMk measurable_id)).norm.pow_const 2).ennreal_ofReal rw [sliceNormSq,ofReal_integral_eq_lintegral_ofReal (hy.integrable_norm_pow (show (2:ℕ)≠0 by norm_num)) (Eventually.of_forall fun _ ↦ sq_nonneg _)] rw [← lintegral_const_mul _ hyM] apply lintegral_congr intro x exact mul_comm _ _ lemma selected_start_ground_integral {m n : ℕ} {L : Length} (u : Jet (m+n) L) (t : ℝ) {h : ConfigurationPath m L → ℝ≥0∞} (hh : Measurable h) : (∫⁻ ω : ConfigurationPath m L, h ω*ENNReal.ofReal (sliceNormSq u.1 (ω 0)) ∂freePathLaw m L t)= ∫⁻ X : Configuration (m+n) L, freePathExpectation t h (splitConfiguration m n L X).1 ∂groundPositionLaw (m+n) L u := by rw [selected_start_integral u.1 t hh] exact slice_mass_integral u (freePathExpectation_measurable t hh) lemma groundPathLaw_deletion : ∃ C : ℝ, 0 simp [freePathExpectation] | succ n ih => change (∫⁻ w : CoordinatePaths (n+1), ∏ i, h (onePathAt i (freeTrajectory (n+1) L t w X)) ∂coordinateWiener (n+1))=_ let Xm := (splitConfiguration n 1 L X).1 let X1 := (splitConfiguration n 1 L X).2 have hXm : Measurable (fun w : CoordinatePaths n ↦ ∏ i, h (onePathAt i (freeTrajectory n L t w Xm))) := (pathProduct_measurable Finset.univ hh).comp ((freeTrajectory_continuous n L t).measurable.comp (measurable_id.prodMk measurable_const)) have hX1 : Measurable (fun w : CoordinatePaths 1 ↦ h (freeTrajectory 1 L t w X1)) := hh.comp ((freeTrajectory_continuous 1 L t).measurable.comp (measurable_id.prodMk measurable_const)) have hfull : Measurable (fun w : CoordinatePaths (n+1) ↦ ∏ i, h (onePathAt i (freeTrajectory (n+1) L t w X))) := (pathProduct_measurable Finset.univ hh).comp ((freeTrajectory_continuous (n+1) L t).measurable.comp (measurable_id.prodMk measurable_const)) rw [←(joinCoordinatePaths_preserving n 1).lintegral_comp hfull] have he (w : CoordinatePaths n × CoordinatePaths 1) : freeTrajectory (n+1) L t (joinCoordinatePaths n 1 w) X= joinConfigurationPath n 1 L (freeTrajectory n L t w.1 Xm,freeTrajectory 1 L t w.2 X1) := by rw [←freeTrajectory_join,join_splitConfiguration] simp only [he,Fin.prod_univ_add,onePathAt_join_left,onePathAt_join_right, Fin.prod_univ_one,onePathAt_single] rw [lintegral_prod_mul hXm.aemeasurable hX1.aemeasurable] change freePathExpectation t (fun ω : ConfigurationPath n L ↦ ∏ i,h (onePathAt i ω)) Xm * freePathExpectation t h X1 = _ rw [ih] congr 1 change freePathExpectation t h X1 = freePathExpectation t h (oneConfiguration (X (Fin.natAdd n 0))) congr 1 funext i have hi : i=0 := Subsingleton.elim _ _ subst i rfl end HardSphere end end end end OAI