Download data/lean/OAI/Analysis/HardSphere/PathBounds/ShiftInteracting.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 9.86 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HardSphere/PathBounds/ShiftInteracting.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/HardSphere/PathBounds/ShiftInteracting.lean
-
curl -L -o ShiftInteracting.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HardSphere/PathBounds/ShiftInteracting.lean
9.86 kB
| import Mathlib | |
| import OAI.Analysis.HardSphere.PathBounds.InteractingVisits | |
| namespace OAI | |
| section | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology BigOperators | |
| namespace HardSphere.ShiftVisits | |
| open HardSphere.Wiener HardSphere.Lattice HardSphere.CellOrbital HardSphere.BathSlice HardSphere.FreeVisits | |
| attribute [local irreducible] freeTrajectory | |
| def defectiveTotalVisits {n K : β} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K)) | |
| (D : Set (ConfigurationPath 1 L)) (Ο : ConfigurationPath n L) : β := by | |
| classical | |
| exact β i, if onePathAt i ΟβD then (pathVisitedSites L (center L c) A i Ο).card else 0 | |
| lemma pathVisitedSites_onePathAt {n K : β} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K)) | |
| (i : Fin n) (Ο : ConfigurationPath n L) : | |
| pathVisitedSites L (center L c) A 0 (onePathAt i Ο)=pathVisitedSites L (center L c) A i Ο := by | |
| simp only [pathVisitedSites,pathVisitsBall,onePathAt,oneConfiguration,ContinuousMap.coe_mk] | |
| rfl | |
| lemma exp_defectiveTotalVisits {n K : β} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K)) | |
| (D : Set (ConfigurationPath 1 L)) {Ξ· : β} (hΞ· : 0β€Ξ·) (Ο : ConfigurationPath n L) : | |
| ENNReal.ofReal (Real.exp (Ξ·*(defectiveTotalVisits L c A D Ο : β)))= | |
| β i, (1+singleDefect L c A Ξ· D (onePathAt i Ο)) := by | |
| classical | |
| simp only [defectiveTotalVisits,Nat.cast_sum,Finset.mul_sum,Real.exp_sum, | |
| ENNReal.ofReal_prod_of_nonneg (fun _ _ β¦ (Real.exp_pos _).le)] | |
| apply Finset.prod_congr rfl | |
| intro i _ | |
| rw [singleDefect,pathVisitedSites_onePathAt] | |
| have hx : 0β€Ξ·*(if onePathAt i ΟβD then ((pathVisitedSites L (center L c) A i Ο).card:β) else 0) := by positivity | |
| have he : 0β€Real.exp (Ξ·*(if onePathAt i ΟβD then ((pathVisitedSites L (center L c) A i Ο).card:β) else 0))-1 := sub_nonneg.mpr (Real.one_le_exp_iff.mpr hx) | |
| simp only [Nat.cast_ite,Nat.cast_zero] | |
| rw [βENNReal.ofReal_one,βENNReal.ofReal_add zero_le_one he] | |
| congr 1 | |
| ring | |
| theorem interacting_visit_mgf {Ξ·β : β} (hΞ·β : 0β€Ξ·β) : | |
| β Cdel Cfree Csp Ξ±star : β, | |
| 0<Cdel β§ 0<Cfree β§ 0<Csp β§ 0<Ξ±star β§ | |
| β (n K : β) [NeZero K] (L : Length), L.val=(K:β) β β r D : β, | |
| D=(n:β)/L.val^3 β 1β€D β Ξ±starβ€D*r β 0<r β | |
| (n:β)*(2*Real.pi*r)^3β€L.val^3/2 β | |
| β (g : Jet n L), IsGroundVector n L r g β | |
| β (c : Torus L) (A : Finset (DiscreteTorus K)) {t Ξ· Ξ΅ : β}, | |
| 0<t β tβ€2 β 0β€Ξ· β Ξ·β€Ξ·β β 0β€Ξ΅ β | |
| β E : Set (ConfigurationPath 1 L), MeasurableSet E β | |
| (βΟ,reverseConfigurationPath 1 L ΟβE β ΟβE) β | |
| (β y : Torus L, coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration y)βE}β€ENNReal.ofReal Ξ΅) β | |
| Real.exp (t*Cdel*D*r)*(Cfree*Ξ·*Ξ΅^(1/3:β))β€1 β | |
| (β«β» Ο, ENNReal.ofReal (Real.exp (Ξ·*(defectiveTotalVisits L c A E Ο:β))) | |
| βgroundPathLaw n L r t g) β€ | |
| ENNReal.ofReal (Real.exp (Csp*(Real.exp (t*Cdel*D*r)*(Cfree*Ξ·*Ξ΅^(1/3:β)))*D*(A.card:β))) := by | |
| classical | |
| obtain β¨Cdel,hCdel,hdelβ© := ground_product_one_add | |
| obtain β¨Cfree,hCfree,hfreeβ© := free_single_defect_bound hΞ·β | |
| obtain β¨Csp,Ξ±star,hCsp,hΞ±,hspβ© := spatial_count_mgf_enn | |
| refine β¨Cdel,Cfree,Csp,Ξ±star,hCdel,hCfree,hCsp,hΞ±,?_β© | |
| intro n K inst L hL r D hDeq hD hΞ±r hr hs g hg c A t Ξ· Ξ΅ ht ht2 hΞ· hΞ·0 hΞ΅ E hE hrev hprob hz1 | |
| let z := Real.exp (t*Cdel*D*r)*(Cfree*Ξ·*Ξ΅^(1/3:β)) | |
| have hz : 0β€z := by positivity | |
| have hsize : 1β€L.val := by rw [hL]; exact_mod_cast (NeZero.pos K) | |
| let := hg.groundPathLaw_probability ht.le | |
| by_cases hA : A.Nonempty | |
| Β· let B := A.image (center L c) | |
| have hB : B.Nonempty := hA.image _ | |
| have hDexp : t*Cdel*(n:β)*r/L.val^3=t*Cdel*D*r := by rw [hDeq]; ring | |
| calc | |
| _ = β«β» Ο,βi,(1+singleDefect L c A Ξ· E (onePathAt i Ο)) βgroundPathLaw n L r t g := | |
| lintegral_congr (exp_defectiveTotalVisits L c A E hΞ·) | |
| _ β€ β«β» X,βi,(1+ENNReal.ofReal (Real.exp (t*Cdel*(n:β)*r/L.val^3))* | |
| oneFreeExpectation t (singleDefect L c A Ξ· E) (X i)) βgroundPositionLaw n L g := | |
| hdel n L r t hr ht hs g hg _ (singleDefect_measurable L c A Ξ· hE) (singleDefect_reverse L c A Ξ· hrev) | |
| _ β€ β«β» X,ENNReal.ofReal (Real.exp (z*weightedSiteCount L B X)) βgroundPositionLaw n L g := by | |
| apply lintegral_mono | |
| intro X | |
| apply le_trans _ (product_one_add_exp_le L B hB hz X) | |
| apply Finset.prod_le_prod | |
| intro i _ | |
| gcongr | |
| have H := hfree L hL c A ht ht2 hΞ· hΞ·0 hΞ΅ E hE hprob (X i) | |
| calc | |
| _ β€ ENNReal.ofReal (Real.exp (t*Cdel*(n:β)*r/L.val^3))* | |
| ENNReal.ofReal (Cfree*Ξ·*Ξ΅^(1/3:β)*Real.exp (-spatialSiteDistance L B (X i))) := by gcongr | |
| _ = _ := by rw [βENNReal.ofReal_mul (Real.exp_nonneg _),hDexp]; congr 1; dsimp [z]; ring | |
| _ β€ ENNReal.ofReal (Real.exp (Csp*z*D*(B.card:β))) := | |
| hsp n K L hL r D hDeq hD hΞ±r hr hsize hs g hg B z hz hz1 | |
| _ β€ _ := by | |
| apply ENNReal.ofReal_le_ofReal | |
| apply Real.exp_le_exp.mpr | |
| have hc : (B.card:β)β€(A.card:β) := by exact_mod_cast Finset.card_image_le | |
| exact mul_le_mul_of_nonneg_left hc (by positivity) | |
| Β· have he : A=β := Finset.not_nonempty_iff_eq_empty.mp hA | |
| subst A | |
| simp [defectiveTotalVisits,pathVisitedSites] | |
| end HardSphere.ShiftVisits | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory ProbabilityTheory Set Filter | |
| open scoped ENNReal NNReal Topology BigOperators | |
| namespace HardSphere.ShiftVisits | |
| open HardSphere.Wiener HardSphere.BathSlice HardSphere.Lattice HardSphere.CellOrbital HardSphere.FreeVisits | |
| def visitorCount {n K : β} (L : Length) (c : Torus L) (E : Set (ConfigurationPath 1 L)) | |
| (v : DiscreteTorus K) (Ο : ConfigurationPath n L) : β := by | |
| classical | |
| exact (Finset.univ.filter (fun i : Fin n β¦ onePathAt i ΟβE β§ pathVisitsBall L 12 (center L c v) i Ο)).card | |
| lemma visitorCount_sum {n K : β} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K)) | |
| (E : Set (ConfigurationPath 1 L)) (Ο : ConfigurationPath n L) : | |
| (βvβA,visitorCount L c E v Ο)=defectiveTotalVisits L c A E Ο := by | |
| classical | |
| simp only [visitorCount,Finset.card_filter] | |
| rw [Finset.sum_comm] | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| by_cases hi : onePathAt i ΟβE | |
| Β· simp only [hi,true_and,pathVisitedSites,ite_eq_left,Finset.card_filter] | |
| Β· simp only [hi,false_and,ite_false,Finset.sum_const_zero,pathVisitedSites] | |
| lemma visitorCount_measurable {n K : β} (L : Length) (c : Torus L) {E : Set (ConfigurationPath 1 L)} | |
| (hE : MeasurableSet E) (v : DiscreteTorus K) : Measurable (visitorCount (n:=n) L c E v) := by | |
| classical | |
| have he : visitorCount (n:=n) L c E v=(fun Ο β¦ βi : Fin n, if onePathAt i ΟβE β§ pathVisitsBall L 12 (center L c v) i Ο then (1:β) else 0) := by | |
| funext Ο | |
| simp only [visitorCount,Finset.card_filter] | |
| rw [he] | |
| apply Finset.measurable_fun_sum | |
| intro i _ | |
| have hi : MeasurableSet {Ο : ConfigurationPath n L | onePathAt i ΟβE} := hE.preimage (onePathAt_continuous i).measurable | |
| exact measurable_const.ite (hi.inter (pathVisitsBall_isClosed L 12 (center L c v) i).measurableSet) measurable_const | |
| lemma defectiveTotalVisits_measurable {n K : β} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K)) | |
| {E : Set (ConfigurationPath 1 L)} (hE : MeasurableSet E) : Measurable (defectiveTotalVisits (n:=n) L c A E) := by | |
| have he : defectiveTotalVisits (n:=n) L c A E=fun Ο β¦ βvβA,visitorCount L c E v Ο := by | |
| funext Ο; exact (visitorCount_sum L c A E Ο).symm | |
| rw [he] | |
| exact Finset.measurable_fun_sum _ (fun v _ β¦ visitorCount_measurable L c hE v) | |
| lemma joint_visitor_sum {n K : β} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K)) | |
| (E : Set (ConfigurationPath 1 L)) {H : β} {Ο : ConfigurationPath n L} | |
| (h : βvβA,Hβ€(visitorCount L c E v Ο:β)) : | |
| H*(A.card:β)β€(defectiveTotalVisits L c A E Ο:β) := by | |
| rw [βvisitorCount_sum L c A E Ο,Nat.cast_sum] | |
| have hs := Finset.sum_le_sum h | |
| simpa only [Finset.sum_const,nsmul_eq_mul,mul_comm] using hs | |
| lemma joint_visitors_markov {n K : β} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K)) | |
| {E : Set (ConfigurationPath 1 L)} (hE : MeasurableSet E) | |
| (ΞΌ : Measure (ConfigurationPath n L)) {Ξ· H Q : β} (hΞ· : 0β€Ξ·) | |
| (hmgf : (β«β»Ο,ENNReal.ofReal (Real.exp (Ξ·*(defectiveTotalVisits L c A E Ο:β))) βΞΌ)β€ | |
| ENNReal.ofReal (Real.exp (Q*(A.card:β)))) : | |
| ΞΌ {Ο | βvβA,Hβ€(visitorCount L c E v Ο:β)}β€ENNReal.ofReal (Real.exp ((Q-Ξ·*H)*(A.card:β))) := by | |
| let F := fun Ο : ConfigurationPath n L β¦ ENNReal.ofReal (Real.exp (Ξ·*(defectiveTotalVisits L c A E Ο:β))) | |
| have hc : Measurable (fun k : β β¦ (k:β)) := measurable_of_countable _ | |
| have hF : Measurable F := ((measurable_const.mul (hc.comp (defectiveTotalVisits_measurable L c A hE))).exp).ennreal_ofReal | |
| have hp : ENNReal.ofReal (Real.exp (Ξ·*(H*(A.card:β))))β 0 := ne_of_gt (ENNReal.ofReal_pos.mpr (Real.exp_pos _)) | |
| have hm := meas_ge_le_lintegral_div (ΞΌ:=ΞΌ) hF.aemeasurable hp ENNReal.ofReal_ne_top | |
| calc | |
| _ β€ ΞΌ {Ο | ENNReal.ofReal (Real.exp (Ξ·*(H*(A.card:β))))β€F Ο} := by | |
| apply measure_mono | |
| intro Ο hΟ | |
| apply ENNReal.ofReal_le_ofReal | |
| apply Real.exp_le_exp.mpr | |
| exact mul_le_mul_of_nonneg_left (joint_visitor_sum L c A E hΟ) hΞ· | |
| _ β€ _ := hm | |
| _ β€ ENNReal.ofReal (Real.exp (Q*(A.card:β)))/ENNReal.ofReal (Real.exp (Ξ·*(H*(A.card:β)))) := ENNReal.div_le_div_right hmgf _ | |
| _ = _ := by | |
| rw [βENNReal.ofReal_div_of_pos (Real.exp_pos _),βReal.exp_sub] | |
| congr 2 | |
| ring | |
| end HardSphere.ShiftVisits | |
| end | |
| end | |
| end | |
| end OAI | |