import Mathlib import OAI.Analysis.HardSphere.Fourier.CharacterDerivativeFactor import OAI.Analysis.HardSphere.Geometry.KilledObservable import OAI.Analysis.HardSphere.Bridges.Moment8 namespace OAI noncomputable section open MeasureTheory Filter Set open scoped ENNReal Topology BigOperators open scoped BigOperators ComplexConjugate open MeasureTheory ProbabilityTheory Filter Set open scoped ENNReal NNReal Topology BigOperators open MeasureTheory ProbabilityTheory Real Complex open scoped ENNReal ComplexConjugate open ProbabilityTheory namespace HardSphere open Wiener lemma staysAllowed_of_neg (N : ℕ) (L : Length) {a : ℝ} (ha : a<0) : staysAllowed N L a=Set.univ := by ext ω simp only [staysAllowed,Set.mem_ofPred_eq,Set.mem_univ,iff_true] rw [allowed_of_neg N L ha] exact Set.subset_univ _ lemma killedObservable_of_neg (N : ℕ) (L : Length) {a : ℝ} (ha : a<0) (g : Configuration N L → ℂ) (ω : ConfigurationPath N L) : killedObservable N L a g ω=g (ω 1) := by simp only [killedObservable,staysAllowed_of_neg N L ha,Set.indicator_univ] lemma killedTransition_of_neg (N : ℕ) (L : Length) {a : ℝ} (ha : a<0) (t : ℝ) : killedTransition N L a t=freeTransition N L t := by apply ContinuousLinearMap.ext intro g apply ext_inner_left ℂ intro f rw [killedTransition_pairing,freeTransition_pairing] simp only [killedPathLaw,staysAllowed_of_neg N L ha,Measure.restrict_univ] lemma freeTrajectory_dist_le (N : ℕ) (L : Length) (t : ℝ) {w : CoordinatePaths N} {B : ℝ} (hB : 0≤B) (hw : ∀ p, ‖w p‖≤B) (X : Configuration N L) (s u : Time) : dist (freeTrajectory N L t w X s) (freeTrajectory N L t w X u) ≤ 2*Real.sqrt (2*t)*B := by have hC : 0≤2*Real.sqrt (2*t)*B := by positivity apply (dist_pi_le_iff hC).mpr intro i apply (dist_pi_le_iff hC).mpr intro j change dist (X i j+((Real.sqrt (2*t)*w (i,j) s : ℝ):AddCircle L.val)) (X i j+((Real.sqrt (2*t)*w (i,j) u : ℝ):AddCircle L.val))≤_ rw [dist_add_left,dist_eq_norm,← QuotientAddGroup.mk_sub] calc _ ≤ ‖Real.sqrt (2*t)*w (i,j) s-Real.sqrt (2*t)*w (i,j) u‖ := QuotientAddGroup.norm_mk_le_norm _ = Real.sqrt (2*t)*‖w (i,j) s-w (i,j) u‖ := by rw [← mul_sub,norm_mul,Real.norm_eq_abs,abs_of_nonneg (Real.sqrt_nonneg _)] _ ≤ Real.sqrt (2*t)*(B+B) := by apply mul_le_mul_of_nonneg_left _ (Real.sqrt_nonneg _) exact (norm_sub_le _ _).trans (add_le_add ((w (i,j)).norm_coe_le_norm s |>.trans (hw (i,j))) ((w (i,j)).norm_coe_le_norm u |>.trans (hw (i,j)))) _ = _ := by ring lemma killedObservable_eq_of_small_path (N : ℕ) (L : Length) (a t : ℝ) (g : Configuration N L → ℂ) {δ B : ℝ} (hB : 0≤B) (hδ : Metric.cthickening δ (tsupport g) ⊆ allowed N L a) (ht : 2*Real.sqrt (2*t)*B≤δ) {w : CoordinatePaths N} (hw : ∀ p, ‖w p‖≤B) (X : Configuration N L) : killedObservable N L a g (freeTrajectory N L t w X)=g (freeTrajectory N L t w X 1) := by by_cases hg : g (freeTrajectory N L t w X 1)=0 · simp only [killedObservable] by_cases he : freeTrajectory N L t w X∈staysAllowed N L a · simp only [Set.indicator_of_mem he] · simp only [Set.indicator_of_notMem he,hg] · have hs : freeTrajectory N L t w X 1∈tsupport g := subset_closure hg have he : freeTrajectory N L t w X∈staysAllowed N L a := by rintro _ ⟨s,rfl⟩ apply hδ exact Metric.mem_cthickening_of_dist_le _ _ _ _ hs ((freeTrajectory_dist_le N L t hB hw X s 1).trans ht) simp only [killedObservable,Set.indicator_of_mem he] lemma coordinateWiener_tail8 (N : ℕ) {B : ℝ} (hB : 0.norm) have hi (b : ℝ) : Integrable (fun w : CoordinatePaths N ↦ killedObservable N L b g (freeTrajectory N L t w X)) (coordinateWiener N) := by apply (integrable_const ‖g‖).mono' · exact ((killedObservable_measurable N L b g.continuous.measurable).comp ((freeTrajectory_continuous N L t).comp (continuous_id.prodMk continuous_const)).measurable).aestronglyMeasurable · exact Eventually.of_forall fun _ ↦ killedObservable_bound N L b (norm_nonneg g) g.norm_coe_le_norm _ rw [killedAverage,killedAverage,← integral_sub (hi a) (hi (-1))] calc _ ≤ ∫ w, E.indicator (fun _ ↦ ‖g‖) w ∂coordinateWiener N := by apply norm_integral_le_of_norm_le · exact (integrable_const ‖g‖).indicator hE · filter_upwards [] with w rw [killedObservable_of_neg N L (by norm_num : (-1:ℝ)<0)] by_cases he : w∈E · rw [Set.indicator_of_mem he] by_cases ha : freeTrajectory N L t w X∈staysAllowed N L a · simp only [killedObservable,Set.indicator_of_mem ha,sub_self,norm_zero] exact norm_nonneg g · simp only [killedObservable,Set.indicator_of_notMem ha,zero_sub,norm_neg] exact g.norm_coe_le_norm _ · rw [Set.indicator_of_notMem he] have hw : ∀ p, ‖w p‖≤B*normMultiplier := by intro p exact le_of_not_gt fun h ↦ he ⟨p,h⟩ rw [killedObservable_eq_of_small_path N L a t g (mul_nonneg hB.le normMultiplier_pos.le) hδ ht hw X,sub_self,norm_zero] _ = _ := by rw [integral_indicator_const _ hE]; simp only [smul_eq_mul,mul_comm]; rfl def pathTailConstant (N : ℕ) : ℝ := ((Fintype.card (Direction N) : ℝ≥0∞) * ((1+(1-(2:ℝ≥0∞)*(4/3)⁻¹^8)⁻¹)*moment8)).toReal lemma pathTailConstant_nonneg (N : ℕ) : 0 ≤ pathTailConstant N := ENNReal.toReal_nonneg lemma coordinateWiener_tail8_real (N : ℕ) {B : ℝ} (hB : 0] 0) (𝓝 0) := by obtain ⟨C,hC,hb⟩ := killedTransition_free_order4 N L a g hg rw [tendsto_zero_iff_norm_tendsto_zero] apply squeeze_zero' (g := fun t : ℝ ↦ C*t^3) (Eventually.of_forall fun t ↦ norm_nonneg _) ?_ ?_ · filter_upwards [self_mem_nhdsWithin] with t ht have ht' : 0