Buckets:
| import Mathlib | |
| import OAI.Analysis.HardSphere.Geometry.CoordinateLine | |
| import OAI.Analysis.HardSphere.Conditioning.PhaseMeasure | |
| namespace OAI | |
| noncomputable section | |
| open MeasureTheory MeasureTheory.Measure Set Filter ProbabilityTheory | |
| open scoped ENNReal NNReal Topology BigOperators | |
| namespace HardSphere | |
| open Wiener | |
| def liftedBridgePath {N : β} (t : β) (X Y : LiftedConfiguration N) (Ξ² : CoordinatePaths N) : | |
| C(Time,LiftedConfiguration N) := | |
| β¨fun s i j β¦ (1-(s:β))*X i j+(s:β)*Y i j+Real.sqrt (2*t)*Ξ² (i,j) s,by fun_propβ© | |
| def projectedBridgePath {N : β} (L : Length) (t : β) (X Y : LiftedConfiguration N) (Ξ² : CoordinatePaths N) : | |
| ConfigurationPath N L := | |
| β¨fun s β¦ project N L (liftedBridgePath t X Y Ξ² s),(continuous_project N L).comp (liftedBridgePath t X Y Ξ²).continuousβ© | |
| lemma reconstructed_bridge_eq {N : β} (L : Length) {t : β} (ht : 0<t) | |
| (X Y : LiftedConfiguration N) (Ξ² : CoordinatePaths N) : | |
| freeTrajectory N L t | |
| (reconstructCoordinates N ((fun j β¦ (Y j.1 j.2-X j.1 j.2)/Real.sqrt (2*t)),Ξ²)) | |
| (project N L X)=projectedBridgePath L t X Y Ξ² := by | |
| have ht' : Real.sqrt (2*t) β 0 := (Real.sqrt_pos.2 (by linarith)).ne' | |
| ext s i j | |
| change (X i j:AddCircle L.val)+ | |
| (((Real.sqrt (2*t)*((Y i j-X i j)/Real.sqrt (2*t)*(s:β)+Ξ² (i,j) s)):β):AddCircle L.val)= | |
| (((1-(s:β))*X i j+(s:β)*Y i j+Real.sqrt (2*t)*Ξ² (i,j) s:β):AddCircle L.val) | |
| rw [βAddCircle.coe_add] | |
| congr 1 | |
| field_simp | |
| ring | |
| lemma projectedBridgePath_endpoints {N : β} (L : Length) (t : β) (X Y : LiftedConfiguration N) : | |
| βα΅ Ξ² βcoordinateBridge N, projectedBridgePath L t X Y Ξ² 0=project N L X β§ | |
| projectedBridgePath L t X Y Ξ² 1=project N L Y := by | |
| filter_upwards [coordinateBridge_endpoints N] with Ξ² hΞ² | |
| constructor <;> ext i j | |
| Β· change (((1-(0:Time).val)*X i j+(0:Time).val*Y i j+Real.sqrt (2*t)*Ξ² (i,j) 0:β):AddCircle L.val)=_ | |
| simp [(hΞ² (i,j)).1] | |
| rfl | |
| Β· change (((1-(1:Time).val)*X i j+(1:Time).val*Y i j+Real.sqrt (2*t)*Ξ² (i,j) 1:β):AddCircle L.val)=_ | |
| simp [(hΞ² (i,j)).2] | |
| rfl | |
| lemma killed_ae_lifted_bridges {N : β} (L : Length) (a : β) {t : β} (ht : 0<t) | |
| (c : LiftedConfiguration N) {P : Configuration N L β Configuration N L β Prop} | |
| (hP : βα΅ Ο βkilledPathLaw N L a t, P (Ο 0) (Ο 1)) : | |
| βα΅ X βvolume.restrict (localLiftBox L c), βα΅ Y β(volume : Measure (LiftedConfiguration N)), | |
| βα΅ Ξ² βcoordinateBridge N, projectedBridgePath L t X Y Ξ² β staysAllowed N L a β | |
| P (project N L X) (project N L Y) := by | |
| have hf : βα΅ Ο βfreePathLaw N L t, ΟβstaysAllowed N L a β P (Ο 0) (Ο 1) := | |
| (ae_restrict_iff' (staysAllowed_open N L a).measurableSet).mp hP | |
| have hfree : MeasurePreserving (fun p : CoordinatePaths N Γ Configuration N L β¦ | |
| freeTrajectory N L t p.1 p.2) ((coordinateWiener N).prod volume) (freePathLaw N L t) := | |
| β¨(freeTrajectory_continuous N L t).measurable,rflβ© | |
| have hswap := (measurePreserving_swap (ΞΌ:= (volume : Measure (Configuration N L))) (Ξ½:=coordinateWiener N)) | |
| have hp := (localLiftBox_preserving L c).prod (reconstructCoordinates_preserving N) | |
| have hh := (hfree.comp (hswap.comp hp)).quasiMeasurePreserving.ae hf | |
| have hha := ae_ae_of_ae_prod hh | |
| filter_upwards [hha] with X hX | |
| have hxg := ae_ae_of_ae_prod hX | |
| have hxl := hxg.filter_mono (gaussianCoordinates_ac' N).ae_le | |
| have hxy := (endpointNoise_quasi ht X).ae hxl | |
| filter_upwards [hxy] with Y hY | |
| filter_upwards [hY,projectedBridgePath_endpoints L t X Y] with Ξ² hΞ² he | |
| change freeTrajectory N L t (reconstructCoordinates N ((fun j β¦ (Y j.1 j.2-X j.1 j.2)/Real.sqrt (2*t)),Ξ²)) | |
| (project N L X)βstaysAllowed N L a β P | |
| (freeTrajectory N L t (reconstructCoordinates N ((fun j β¦ (Y j.1 j.2-X j.1 j.2)/Real.sqrt (2*t)),Ξ²)) (project N L X) 0) | |
| (freeTrajectory N L t (reconstructCoordinates N ((fun j β¦ (Y j.1 j.2-X j.1 j.2)/Real.sqrt (2*t)),Ξ²)) (project N L X) 1) at hΞ² | |
| rw [reconstructed_bridge_eq L ht X Y Ξ²] at hΞ² | |
| intro hs | |
| simpa only [he.1,he.2] using hΞ² hs | |
| lemma exists_bridge_bounded_positive (N : β) : β B : β, 0<B β§ | |
| coordinateBridge N {Ξ² | βΞ²ββ€B} β 0 := by | |
| by_contra! h | |
| have hz : coordinateBridge N (β n : β, {Ξ² | βΞ²ββ€(n:β)+1})=0 := | |
| measure_iUnion_null (fun n β¦ h ((n:β)+1) (by positivity)) | |
| have he : (β n : β, {Ξ² : CoordinatePaths N | βΞ²ββ€(n:β)+1})=univ := by | |
| apply eq_univ_of_forall | |
| intro Ξ² | |
| obtain β¨n,hnβ© := exists_nat_gt βΞ²β | |
| exact mem_iUnion.mpr β¨n,by simp only [mem_ofPred_eq]; linarithβ© | |
| rw [he,measure_univ] at hz | |
| exact one_ne_zero hz | |
| lemma liftedBridge_distance {N : β} {t : β} (ht : 0β€t) | |
| (X Y : LiftedConfiguration N) (Ξ² : CoordinatePaths N) (s : Time) : | |
| dist (liftedBridgePath t X Y Ξ² s) ((1-(s:β)) β’ X+(s:β) β’ Y) β€ | |
| Real.sqrt (2*t)*βΞ²β := by | |
| have hscale : 0 β€ Real.sqrt (2*t) := by | |
| simpa only [Real.sqrt_zero] using | |
| Real.sqrt_le_sqrt (mul_nonneg (by norm_num : (0:β) β€ 2) ht) | |
| apply (dist_pi_le_iff (mul_nonneg hscale (norm_nonneg Ξ²))).mpr | |
| intro i | |
| apply (dist_pi_le_iff (mul_nonneg hscale (norm_nonneg Ξ²))).mpr | |
| intro j | |
| change dist ((1-(s:β))*X i j+(s:β)*Y i j+Real.sqrt (2*t)*Ξ² (i,j) s) | |
| ((1-(s:β))*X i j+(s:β)*Y i j) β€ _ | |
| rw [Real.dist_eq,add_sub_cancel_left,abs_mul,abs_of_nonneg hscale] | |
| apply mul_le_mul_of_nonneg_left _ hscale | |
| exact (ContinuousMap.norm_coe_le_norm (Ξ² (i,j)) s).trans (norm_le_pi_norm Ξ² (i,j)) | |
| lemma projectedBridge_stays_of_bounded {N : β} (L : Length) (a : β) | |
| {c X Y : LiftedConfiguration N} {R t B : β} (ht : 0β€t) | |
| (hball : Metric.ball c R β (project N L) β»ΒΉ' allowed N L a) | |
| (hX : XβMetric.ball c (R/2)) (hY : YβMetric.ball c (R/2)) | |
| (hsmall : Real.sqrt (2*t)*B<R/2) {Ξ² : CoordinatePaths N} (hΞ² : βΞ²ββ€B) : | |
| projectedBridgePath L t X Y Ξ² β staysAllowed N L a := by | |
| rintro _ β¨s,rflβ© | |
| apply hball | |
| have hz := (convex_ball c (R/2)) hX hY (sub_nonneg.mpr s.property.2) s.property.1 (sub_add_cancel 1 (s:β)) | |
| exact (dist_triangle _ ((1-(s:β)) β’ X+(s:β) β’ Y) c).trans_lt | |
| (lt_of_le_of_lt (add_le_add ((liftedBridge_distance ht X Y Ξ² s).trans | |
| (mul_le_mul_of_nonneg_left hΞ² (Real.sqrt_nonneg _))) (le_refl _)) (by | |
| change Real.sqrt (2*t)*B+dist ((1-(s:β)) β’ X+(s:β) β’ Y) c<R | |
| change dist ((1-(s:β)) β’ X+(s:β) β’ Y) c<R/2 at hz | |
| linarith)) | |
| lemma killed_ae_local_pairs {N : β} (L : Length) (a : β) | |
| {P : Configuration N L β Configuration N L β Prop} | |
| (hP : βt, 0<t β βα΅ Ο βkilledPathLaw N L a t, P (Ο 0) (Ο 1)) | |
| (c : LiftedConfiguration N) {R : β} (hR : 0<R) (hL : Rβ€L.val) | |
| (hball : Metric.ball c R β (project N L) β»ΒΉ' allowed N L a) : | |
| βα΅ X βvolume.restrict (Metric.ball c (R/2)), | |
| βα΅ Y βvolume.restrict (Metric.ball c (R/2)), P (project N L X) (project N L Y) := by | |
| obtain β¨B,hB,hposβ© := exists_bridge_bounded_positive N | |
| let t : β := (R/(4*(B+1)))^2/2 | |
| have ha : 0<R/(4*(B+1)) := div_pos hR (by positivity) | |
| have ht : 0<t := by dsimp [t]; positivity | |
| have hsqrt : Real.sqrt (2*t)=R/(4*(B+1)) := by | |
| rw [show 2*t=(R/(4*(B+1)))^2 by dsimp [t]; ring,Real.sqrt_sq ha.le] | |
| have hsmall : Real.sqrt (2*t)*B<R/2 := by | |
| rw [hsqrt] | |
| rw [div_mul_eq_mul_div] | |
| apply (div_lt_iffβ (by positivity : 0<4*(B+1))).mpr | |
| nlinarith | |
| have hh := killed_ae_lifted_bridges L a ht c (hP t ht) | |
| have hsub := ball_subset_localLiftBox L c (show R/2β€L.val/2 by linarith) | |
| filter_upwards [ae_restrict_of_ae_restrict_of_subset hsub hh,ae_restrict_mem measurableSet_ball] with X hX hmemX | |
| filter_upwards [ae_restrict_of_ae hX,ae_restrict_mem measurableSet_ball] with Y hY hmemY | |
| obtain β¨Ξ²,hΞ²,hpairβ© := exists_mem_of_measure_ne_zero_of_ae hpos (ae_restrict_of_ae hY) | |
| exact hpair (projectedBridge_stays_of_bounded L a ht.le hball hmemX hmemY hsmall hΞ²) | |
| end HardSphere | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 8.03 kB
- Xet hash:
- daccadab3d2757e8becaaf4e59d7ead45f988f36b2b790493bb7eeb348670f4b
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.