Download data/lean/OAI/Analysis/HardSphere/Geometry/FinsetEraseRecursion2.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.93 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HardSphere/Geometry/FinsetEraseRecursion2.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/HardSphere/Geometry/FinsetEraseRecursion2.lean
-
curl -L -o FinsetEraseRecursion2.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HardSphere/Geometry/FinsetEraseRecursion2.lean
5.93 kB
| import Mathlib | |
| import OAI.Analysis.HardSphere.Geometry.GroundPositionLaw | |
| import OAI.Analysis.HardSphere.Geometry.SpatialScalarSquare | |
| import OAI.Analysis.HardSphere.Geometry.MollifiedCloseJoint | |
| 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 | |
| open MeasureTheory Filter Set | |
| open scoped ENNReal Topology | |
| open MeasureTheory Set | |
| open scoped ENNReal | |
| namespace HardSphere | |
| open MeasureTheory Set Filter | |
| open scoped ComplexConjugate | |
| lemma finset_erase_recursion_on {S : Type*} [DecidableEq S] (a : Finset S β β) | |
| (P : Finset S β Prop) (hP : β A s, P A β P (A.erase s)) (q : β) | |
| (hq : 0β€q) (h0 : a β β€1) | |
| (hr : β A : Finset S, P A β A.Nonempty β (A.card:β)*a Aβ€q*β sβA, a (A.erase s)) : | |
| β A : Finset S, P A β a Aβ€q^A.card := by | |
| intro A | |
| induction A using Finset.strongInductionOn with | |
| | _ A ih => | |
| intro hPA | |
| by_cases hA : A.Nonempty | |
| Β· have hc : 0<(A.card:β) := by exact_mod_cast hA.card_pos | |
| have hs : (β sβA, a (A.erase s))β€(A.card:β)*q^(A.card-1) := by | |
| calc | |
| _ β€ β _sβA, q^(A.card-1) := Finset.sum_le_sum fun s hs β¦ by | |
| have hh := ih (A.erase s) (Finset.erase_ssubset hs) (hP A s hPA) | |
| rwa [Finset.card_erase_of_mem hs] at hh | |
| _ = _ := by simp | |
| have he : q*((A.card:β)*q^(A.card-1))=(A.card:β)*q^A.card := by | |
| rw [show q^A.card=q^(A.card-1)*q by | |
| conv_lhs => rw [βNat.sub_add_cancel hA.card_pos] | |
| rw [pow_succ]] | |
| ring | |
| have ht := (hr A hPA hA).trans ((mul_le_mul_of_nonneg_left hs hq).trans_eq he) | |
| exact (mul_le_mul_iff_rightβ hc).mp (by simpa only [mul_comm (A.card:β)] using ht) | |
| Β· have he : A=β := Finset.not_nonempty_iff_eq_empty.mp hA | |
| simpa [he] using h0 | |
| variable {n : β} [Nontrivial (Fin n)] | |
| lemma mollifiedCloseJoint_empty_onScalar (L : Length) (s h : β) | |
| (Ο : ContDiffBump (0 : EuclideanConfiguration (Fin n))) (u : ScalarL2 n L) : | |
| (mollifiedCloseJoint L s Ο h β ).onScalar u=u := by | |
| apply Lp.ext | |
| filter_upwards [(mollifiedCloseJoint L s Ο h β ).coe_onScalar u] with X hX | |
| simpa only [mollifiedCloseJoint_apply,Finset.prod_empty,one_mul] using hX | |
| lemma groundPositionLaw_le_closeJoint (L : Length) {s h : β} (hs : 0<s) (hs1 : sβ€1) (hh : 0<h) | |
| (Ο : ContDiffBump (0 : EuclideanConfiguration (Fin n))) (hΟ : ((32/s)*Ο.rOut)^2β€h/4) | |
| (A : Finset (Torus L)) (g : Jet n L) (T : Set (Configuration n L)) (hT : MeasurableSet T) | |
| (hcount : β XβT, β vβA, 8*hβ€((localCloseLabels L s v X).card:β)) : | |
| groundPositionLaw n L g Tβ€ENNReal.ofReal (β(mollifiedCloseJoint L s Ο h A).onScalar g.1β^2) := by | |
| rw [groundPositionLaw,withDensity_apply _ hT, | |
| βofReal_integral_eq_lintegral_ofReal | |
| ((Lp.memLp g.1).integrable_norm_pow (by norm_num : (2:β)β 0)).integrableOn | |
| (Eventually.of_forall fun X β¦ sq_nonneg βg.1 Xβ),IndicatorStrong.norm_sq_integral] | |
| apply ENNReal.ofReal_le_ofReal | |
| have hi : Integrable (fun X β¦ β((mollifiedCloseJoint L s Ο h A).onScalar g.1) Xβ^2) volume := | |
| (Lp.memLp _).integrable_norm_pow (by norm_num) | |
| calc | |
| _ = β« X in T, β((mollifiedCloseJoint L s Ο h A).onScalar g.1) Xβ^2 βvolume := by | |
| apply setIntegral_congr_ae hT | |
| filter_upwards [(mollifiedCloseJoint L s Ο h A).coe_onScalar g.1] with X hX hXT | |
| rw [hX,mollifiedCloseJoint_covers L hs hs1 hh Ο hΟ A X (hcount X hXT),one_mul] | |
| _ β€ _ := setIntegral_le_integral hi (ae_of_all _ fun X β¦ sq_nonneg _) | |
| end HardSphere | |
| namespace HardSphere | |
| open MeasureTheory Set Filter | |
| open scoped ComplexConjugate | |
| lemma close_support_integral {n : β} {L : Length} (A : Finset (Torus L)) | |
| {s C c b D h : β} (hc : 0<c) (hb : 0<b) | |
| (hcoef : (C+1)*Dβ€c/b^3*(h/4)) | |
| (f : SmoothMultiplier n L) (g : ScalarL2 n L) | |
| (hsupport : β X, f.toFun Xβ 0 β (h/4)*(A.card:β)β€((localizedNearLabels L A s X).card:β)) : | |
| D*(A.card:β)*βf.onScalar gβ^2β€ | |
| β« X, (weightedSiteCount L A X-C*D*(A.card:β)+ | |
| c/b^3*((localizedNearLabels L A s X).card:β))*β(f.onScalar g) Xβ^2 := by | |
| have hn : Integrable (fun X β¦ β(f.onScalar g) Xβ^2) volume := | |
| (Lp.memLp _).integrable_norm_pow (by norm_num) | |
| have hf := weightedSiteCount_integrable L A (f.onScalar g) | |
| have hk := localizedNearLabels_integrable L A s (f.onScalar g) | |
| have hi : Integrable (fun X β¦ (weightedSiteCount L A X-C*D*(A.card:β)+ | |
| c/b^3*((localizedNearLabels L A s X).card:β))*β(f.onScalar g) Xβ^2) volume := by | |
| have he : (fun X β¦ (weightedSiteCount L A X-C*D*(A.card:β)+ | |
| c/b^3*((localizedNearLabels L A s X).card:β))*β(f.onScalar g) Xβ^2) = | |
| fun X β¦ (weightedSiteCount L A X*β(f.onScalar g) Xβ^2- | |
| (C*D*(A.card:β))*β(f.onScalar g) Xβ^2)+ | |
| (c/b^3)*(((localizedNearLabels L A s X).card:β)*β(f.onScalar g) Xβ^2) := by | |
| funext X | |
| ring | |
| rw [he] | |
| exact (hf.sub (hn.const_mul (C*D*(A.card:β)))).add (hk.const_mul (c/b^3)) | |
| rw [IndicatorStrong.norm_sq_integral,βintegral_const_mul] | |
| apply integral_mono_ae (hn.const_mul _) hi | |
| filter_upwards [f.coe_onScalar g] with X hX | |
| by_cases hz : f.toFun X=0 | |
| Β· simp only [hX,hz,zero_mul,norm_zero,zero_pow (by omega : (2:β)β 0),mul_zero,le_rfl] | |
| Β· have hkX := mul_le_mul_of_nonneg_left (hsupport X hz) (by positivity : 0β€c/b^3) | |
| have hcX := mul_le_mul_of_nonneg_right hcoef (Nat.cast_nonneg A.card : (0:β)β€A.card) | |
| have hw := weightedSiteCount_nonneg L A X | |
| apply mul_le_mul_of_nonneg_right _ (sq_nonneg _) | |
| nlinarith only [hkX,hcX,hw] | |
| end HardSphere | |
| end | |
| end OAI | |