Add lean source and binary files (part 19)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- lean/OAI/Analysis/HardSphere/Kernels/TrialObserved.lean +57 -0
- lean/OAI/Analysis/HardSphere/Main.lean +50 -0
- lean/OAI/Analysis/HardSphere/Model.lean +59 -0
- lean/OAI/Analysis/HardSphere/Operators/CompactFormCutoff.lean +162 -0
- lean/OAI/Analysis/HardSphere/Operators/FormResolventNormEnergy.lean +99 -0
- lean/OAI/Analysis/HardSphere/Operators/FreeResolventDenseRange.lean +60 -0
- lean/OAI/Analysis/HardSphere/Operators/FreeTransition.lean +130 -0
- lean/OAI/Analysis/HardSphere/Operators/KilledTransitionAdd.lean +64 -0
- lean/OAI/Analysis/HardSphere/Operators/KilledTransitionContinuousAe.lean +33 -0
- lean/OAI/Analysis/HardSphere/Operators/KilledTransitionFormHeat.lean +34 -0
- lean/OAI/Analysis/HardSphere/Operators/Regularize.lean +92 -0
- lean/OAI/Analysis/HardSphere/Operators/SemigroupLaplaceCommute.lean +168 -0
- lean/OAI/Analysis/HardSphere/Operators/SemigroupLaplaceDerivWithin.lean +95 -0
- lean/OAI/Analysis/HardSphere/Operators/Stationary.lean +456 -0
- lean/OAI/Analysis/HardSphere/Operators/TransitionDerivative.lean +46 -0
- lean/OAI/Analysis/HardSphere/Orbitals/Bump.lean +282 -0
- lean/OAI/Analysis/HardSphere/Orbitals/CellPartition.lean +74 -0
- lean/OAI/Analysis/HardSphere/Orbitals/CenteredCell.lean +209 -0
- lean/OAI/Analysis/HardSphere/Orbitals/Chi.lean +110 -0
- lean/OAI/Analysis/HardSphere/Orbitals/Chi2.lean +93 -0
- lean/OAI/Analysis/HardSphere/Orbitals/FieldApply.lean +244 -0
- lean/OAI/Analysis/HardSphere/Orbitals/FreePathLawFiniteDeletion.lean +133 -0
- lean/OAI/Analysis/HardSphere/Orbitals/GridLowStationary.lean +50 -0
- lean/OAI/Analysis/HardSphere/Orbitals/Joint.lean +103 -0
- lean/OAI/Analysis/HardSphere/Orbitals/Joint2.lean +45 -0
- lean/OAI/Analysis/HardSphere/Orbitals/JointEmptyScalar.lean +97 -0
- lean/OAI/Analysis/HardSphere/Orbitals/OrbitalOperator.lean +98 -0
- lean/OAI/Analysis/HardSphere/Orbitals/PhysicalOrbitalReference.lean +89 -0
- lean/OAI/Analysis/HardSphere/Orbitals/Profile.lean +107 -0
- lean/OAI/Analysis/HardSphere/Orbitals/SelectedDeletion.lean +142 -0
- lean/OAI/Analysis/HardSphere/Orbitals/StrongContractionLimitDense.lean +35 -0
- lean/OAI/Analysis/HardSphere/PathBounds/CertificateUnion.lean +60 -0
- lean/OAI/Analysis/HardSphere/PathBounds/CloseTailBaseTendsto.lean +85 -0
- lean/OAI/Analysis/HardSphere/PathBounds/ConfigurationTailLp.lean +299 -0
- lean/OAI/Analysis/HardSphere/PathBounds/ExpNatTail.lean +247 -0
- lean/OAI/Analysis/HardSphere/PathBounds/FiberDerivativeMulTailLocal.lean +93 -0
- lean/OAI/Analysis/HardSphere/PathBounds/FreeVisitProbability.lean +176 -0
- lean/OAI/Analysis/HardSphere/PathBounds/FreeVisitTravel.lean +243 -0
- lean/OAI/Analysis/HardSphere/PathBounds/GridTailTransfer.lean +100 -0
- lean/OAI/Analysis/HardSphere/PathBounds/InteractingVisits.lean +285 -0
- lean/OAI/Analysis/HardSphere/PathBounds/LatticeExponentialSum.lean +214 -0
- lean/OAI/Analysis/HardSphere/PathBounds/PathTailConstant.lean +257 -0
- lean/OAI/Analysis/HardSphere/PathBounds/PhysicalVisitTails.lean +174 -0
- lean/OAI/Analysis/HardSphere/PathBounds/RegularVisitors.lean +94 -0
- lean/OAI/Analysis/HardSphere/PathBounds/ShiftInteracting.lean +190 -0
- lean/OAI/Analysis/HardSphere/PathBounds/ShiftTails.lean +133 -0
- lean/OAI/Analysis/HardSphere/PathBounds/ShiftUniformMGF.lean +168 -0
- lean/OAI/Analysis/HardSphere/PathBounds/SingleVisitDefect.lean +80 -0
- lean/OAI/Analysis/HardSphere/PathBounds/UniformVisitMGF.lean +168 -0
- lean/OAI/Analysis/HardSphere/PathBounds/VisitCounts.lean +208 -0
lean/OAI/Analysis/HardSphere/Kernels/TrialObserved.lean
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Kernels.TrialKernel
|
| 3 |
+
import OAI.Analysis.HardSphere.Bridges.GaussianMixture
|
| 4 |
+
import OAI.Analysis.HardSphere.Conditioning.RouteObservation
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
section
|
| 9 |
+
|
| 10 |
+
section
|
| 11 |
+
noncomputable section
|
| 12 |
+
open MeasureTheory ProbabilityTheory Set
|
| 13 |
+
open scoped ENNReal
|
| 14 |
+
namespace HardSphere.Comparison
|
| 15 |
+
open Bridge Wiener GaussianPacking
|
| 16 |
+
|
| 17 |
+
lemma trialKernel_midpoint (t : ℝ) (y z u : Point) :
|
| 18 |
+
∀ᵐ ω ∂trialKernel t y z u,ω midpointTime=u := by
|
| 19 |
+
rw [trialKernel_apply]
|
| 20 |
+
apply (ae_map_iff ((trialPath_continuous t y z).measurable.comp
|
| 21 |
+
(measurable_const.prodMk measurable_id)).aemeasurable (measurableSet_eq_fun ((continuous_eval_const midpointTime).measurable : Measurable (fun ω : C(Time,Point) ↦ ω midpointTime)) measurable_const)).mpr
|
| 22 |
+
exact ae_of_all _ (fun β ↦ trial_midpoint t y z u β)
|
| 23 |
+
|
| 24 |
+
lemma paired_trial_midpoint (μ : Measure Point) [SFinite μ] (t : ℝ) (y z y' z' : Point)
|
| 25 |
+
(S T : Set C(Time,Point)) (hS : MeasurableSet S) (hT : MeasurableSet T) :
|
| 26 |
+
∀ᵐ p ∂pairedFactor μ (trialKernel t y z) (trialKernel t y' z') S T hS hT,
|
| 27 |
+
p.2.1 midpointTime=p.1 ∧ p.2.2 midpointTime=p.1 := by
|
| 28 |
+
apply pairedFactor_midpoint μ (trialKernel t y z) (trialKernel t y' z')
|
| 29 |
+
(fun ω ↦ ω midpointTime) (fun ω ↦ ω midpointTime) id
|
| 30 |
+
(continuous_eval_const midpointTime).measurable (continuous_eval_const midpointTime).measurable measurable_id
|
| 31 |
+
· exact ae_of_all _ (trialKernel_midpoint t y z)
|
| 32 |
+
· exact ae_of_all _ (trialKernel_midpoint t y' z')
|
| 33 |
+
|
| 34 |
+
lemma route_observed_trial_eq {W : Type*} [MeasurableSpace W] (d : ℕ)
|
| 35 |
+
(τ : Fin (d+2) → Measure (Point×(C(Time,Point)×C(Time,Point))))
|
| 36 |
+
[∀k,IsProbabilityMeasure (τ k)] (ξ : Measure W) [SFinite ξ]
|
| 37 |
+
(hτ : ∀k,∀ᵐ p ∂τ k,p.2.1 midpointTime=p.1 ∧ p.2.2 midpointTime=p.1)
|
| 38 |
+
(C : Set ((Fin (d+2) → Point×(C(Time,Point)×C(Time,Point)))×W)) :
|
| 39 |
+
((((Measure.pi τ).prod ξ) C)⁻¹ • ((Measure.pi τ).prod ξ).restrict C).map
|
| 40 |
+
(observeFirst d (fun ω ↦ ω midpointTime)) =
|
| 41 |
+
((((Measure.pi τ).prod ξ) C)⁻¹ • ((Measure.pi τ).prod ξ).restrict C).map
|
| 42 |
+
(observeSecond d (fun ω ↦ ω midpointTime)) := by
|
| 43 |
+
apply conditioned_observed_measures_eq
|
| 44 |
+
apply (Measure.ae_prod_iff_ae_ae (by measurability)).mpr
|
| 45 |
+
have h : ∀k,∀ᵐ v ∂Measure.pi τ,(v k).2.1 midpointTime=(v k).1 ∧ (v k).2.2 midpointTime=(v k).1 :=
|
| 46 |
+
fun k ↦ (measurePreserving_eval τ k).quasiMeasurePreserving.ae (hτ k)
|
| 47 |
+
filter_upwards [ae_all_iff.mpr h] with v hv
|
| 48 |
+
exact ae_of_all _ (fun _ ↦ hv)
|
| 49 |
+
|
| 50 |
+
end HardSphere.Comparison
|
| 51 |
+
|
| 52 |
+
end
|
| 53 |
+
end
|
| 54 |
+
|
| 55 |
+
end
|
| 56 |
+
|
| 57 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Main.lean
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.FormDomain.AeSelfGradientSquare
|
| 3 |
+
import OAI.Analysis.HardSphere.FormDomain.AeGradientPhase
|
| 4 |
+
import OAI.Analysis.HardSphere.Conditioning.LintegralReferenceMeasure
|
| 5 |
+
import OAI.Analysis.HardSphere.Bridges.AccessibleAuxiliary
|
| 6 |
+
import OAI.Analysis.HardSphere.PathBounds.RegularVisitors
|
| 7 |
+
import OAI.Analysis.HardSphere.Collisions.InsertionProducer
|
| 8 |
+
import OAI.Analysis.HardSphere.Kernels.KernelPi
|
| 9 |
+
import OAI.Analysis.HardSphere.Kernels.ParametricTrial
|
| 10 |
+
import OAI.Analysis.HardSphere.PathBounds.UniformVisitMGF
|
| 11 |
+
import OAI.Analysis.HardSphere.Density.GroundProjection
|
| 12 |
+
|
| 13 |
+
namespace OAI
|
| 14 |
+
|
| 15 |
+
section
|
| 16 |
+
|
| 17 |
+
noncomputable section
|
| 18 |
+
open MeasureTheory Set Filter
|
| 19 |
+
open scoped ENNReal BigOperators Topology
|
| 20 |
+
namespace HardSphere
|
| 21 |
+
|
| 22 |
+
theorem condensation_all_ground_states :
|
| 23 |
+
∃ε₀ c₀ : ℝ,0<ε₀ ∧ 0<c₀ ∧
|
| 24 |
+
∀(a ρ : ℝ) (ha : 0<a),0<ρ → ρ*a^3<ε₀ →
|
| 25 |
+
∀(N : ℕ→ℕ) (L : ℕ→Length) (hN : ∀k,0<N k),
|
| 26 |
+
Tendsto N atTop atTop → Tendsto (fun k ↦ (L k).val) atTop atTop →
|
| 27 |
+
Tendsto (fun k ↦ (N k:ℝ)/(L k).val^3) atTop (𝓝 ρ) →
|
| 28 |
+
(∀Ψ : (k : ℕ)→Jet (N k) (L k),
|
| 29 |
+
(∀k,IsGroundVector (N k) (L k) a (Ψ k)) →
|
| 30 |
+
c₀≤liminf (fun k ↦ occupation (hN k) (Ψ k).1) atTop) ∧
|
| 31 |
+
(∀T : (k : ℕ)→Density.Operator (ScalarL2 (N k) (L k)),
|
| 32 |
+
(∀k,GroundSupported a (T k)) →
|
| 33 |
+
c₀≤liminf (fun k ↦ mixedOccupation (hN k) (T k)) atTop) ∧
|
| 34 |
+
(∀hG : ∀k,groundSpace (N k) (L k) a≠⊥,
|
| 35 |
+
c₀≤liminf (fun k ↦ mixedOccupation (hN k)
|
| 36 |
+
(normalizedGroundProjection (N k) (L k) a ha (hG k))) atTop) := by
|
| 37 |
+
obtain ⟨ε,c,hε,hc,h⟩ := condensation_with_mixed
|
| 38 |
+
refine ⟨ε,c,hε,hc,?_⟩
|
| 39 |
+
intro a ρ ha hρ hd N L hN hNtop hLtop hdensity
|
| 40 |
+
obtain ⟨hp,hm⟩ := h a ρ ha hρ hd N L hN hNtop hLtop hdensity
|
| 41 |
+
refine ⟨hp,hm,?_⟩
|
| 42 |
+
intro hG
|
| 43 |
+
exact hm (fun k ↦ normalizedGroundProjection (N k) (L k) a ha (hG k))
|
| 44 |
+
(fun k ↦ normalizedGroundProjection_supported (N k) (L k) a ha (hG k))
|
| 45 |
+
|
| 46 |
+
end HardSphere
|
| 47 |
+
end
|
| 48 |
+
end
|
| 49 |
+
|
| 50 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Model.lean
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Analysis.HardSphere.CondensationDefinitions
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
section
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open MeasureTheory Filter Set
|
| 11 |
+
open scoped ENNReal Topology BigOperators
|
| 12 |
+
|
| 13 |
+
namespace HardSphere
|
| 14 |
+
|
| 15 |
+
abbrev HilbertJet (N : ℕ) (L : Length) :=
|
| 16 |
+
PiLp 2 (fun _ : Option (Direction N) ↦ ScalarL2 N L)
|
| 17 |
+
|
| 18 |
+
def Condensation : Prop :=
|
| 19 |
+
∃ ε₀ c₀ : ℝ, 0 < ε₀ ∧ 0 < c₀ ∧
|
| 20 |
+
∀ (a ρ : ℝ), 0 < a → 0 < ρ → ρ * a ^ 3 < ε₀ →
|
| 21 |
+
∀ (N : ℕ → ℕ) (L : ℕ → Length) (hN : ∀ k, 0 < N k),
|
| 22 |
+
Tendsto N atTop atTop →
|
| 23 |
+
Tendsto (fun k ↦ (L k).val) atTop atTop →
|
| 24 |
+
Tendsto (fun k ↦ (N k : ℝ) / (L k).val ^ 3) atTop (𝓝 ρ) →
|
| 25 |
+
∀ (Ψ : (k : ℕ) → Jet (N k) (L k)),
|
| 26 |
+
(∀ k, IsGroundVector (N k) (L k) a (Ψ k)) →
|
| 27 |
+
c₀ ≤ Filter.liminf (fun k ↦ occupation (hN k) (Ψ k).1) atTop
|
| 28 |
+
|
| 29 |
+
lemma scalarL2_norm_exponent : Fact (1 ≤ (2 : ℝ≥0∞)) := inferInstance
|
| 30 |
+
|
| 31 |
+
attribute [local instance] scalarL2_norm_exponent
|
| 32 |
+
|
| 33 |
+
abbrev scalarL2_normedAddCommGroup (N : ℕ) (L : Length) :
|
| 34 |
+
NormedAddCommGroup (ScalarL2 N L) := inferInstance
|
| 35 |
+
|
| 36 |
+
attribute [local instance] scalarL2_normedAddCommGroup
|
| 37 |
+
|
| 38 |
+
abbrev scalarL2_addCommMonoid (N : ℕ) (L : Length) : AddCommMonoid (ScalarL2 N L) :=
|
| 39 |
+
(scalarL2_normedAddCommGroup N L).toAddCommMonoid
|
| 40 |
+
|
| 41 |
+
abbrev scalarL2_innerProductSpace (N : ℕ) (L : Length) :
|
| 42 |
+
InnerProductSpace ℂ (ScalarL2 N L) := inferInstance
|
| 43 |
+
|
| 44 |
+
attribute [local instance] scalarL2_innerProductSpace
|
| 45 |
+
|
| 46 |
+
abbrev scalarL2_module (N : ℕ) (L : Length) : Module ℂ (ScalarL2 N L) :=
|
| 47 |
+
(scalarL2_innerProductSpace N L).toNormedSpace.toModule
|
| 48 |
+
|
| 49 |
+
attribute [local instance] scalarL2_module
|
| 50 |
+
|
| 51 |
+
lemma scalarL2_completeSpace (N : ℕ) (L : Length) : CompleteSpace (ScalarL2 N L) :=
|
| 52 |
+
inferInstance
|
| 53 |
+
|
| 54 |
+
end HardSphere
|
| 55 |
+
end
|
| 56 |
+
end
|
| 57 |
+
end
|
| 58 |
+
|
| 59 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/CompactFormCutoff.lean
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.HeatScalar
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open Set MeasureTheory Filter ContinuousLinearMap
|
| 8 |
+
open scoped Topology ComplexOrder
|
| 9 |
+
namespace HardSphere.CompactForm
|
| 10 |
+
|
| 11 |
+
def cutoff (δ x : ℝ) : ℝ := Real.smoothTransition (((2 : ℕ) : ℝ)*x/δ-1)
|
| 12 |
+
lemma cutoff_smooth (δ : ℝ) : ContDiff ℝ (⊤ : ℕ∞) (cutoff δ) := by
|
| 13 |
+
exact Real.smoothTransition.contDiff.comp ((contDiff_const.mul contDiff_id).div_const δ |>.sub contDiff_const)
|
| 14 |
+
lemma cutoff_nonneg (δ x : ℝ) : 0≤cutoff δ x := Real.smoothTransition.nonneg _
|
| 15 |
+
lemma cutoff_le_one (δ x : ℝ) : cutoff δ x≤1 := Real.smoothTransition.le_one _
|
| 16 |
+
lemma cutoff_zero {δ x : ℝ} (hδ : 0<δ) (hx : x≤δ/2) : cutoff δ x=0 := by
|
| 17 |
+
apply Real.smoothTransition.zero_of_nonpos
|
| 18 |
+
have hh : 2*x/δ≤1 := (div_le_one hδ).mpr (by linarith)
|
| 19 |
+
linarith
|
| 20 |
+
lemma cutoff_one {δ x : ℝ} (hδ : 0<δ) (hx : δ≤x) : cutoff δ x=1 := by
|
| 21 |
+
apply Real.smoothTransition.one_of_one_le
|
| 22 |
+
have hh : 2≤2*x/δ := (le_div_iff₀ hδ).mpr (by linarith)
|
| 23 |
+
linarith
|
| 24 |
+
lemma cutoff_error {δ x : ℝ} (hδ : 0<δ) (hx : 0≤x) :
|
| 25 |
+
‖(1-cutoff δ x)^2*x‖≤δ := by
|
| 26 |
+
have hq := cutoff_nonneg δ x
|
| 27 |
+
have hq' := cutoff_le_one δ x
|
| 28 |
+
rw [Real.norm_eq_abs,abs_of_nonneg (mul_nonneg (sq_nonneg _) hx)]
|
| 29 |
+
by_cases hh : δ≤x
|
| 30 |
+
· rw [cutoff_one hδ hh]; simpa using hδ.le
|
| 31 |
+
· have hx' : x≤δ := (lt_of_not_ge hh).le
|
| 32 |
+
have hs : (1-cutoff δ x)^2≤1 := by nlinarith
|
| 33 |
+
exact (mul_le_mul_of_nonneg_right hs hx).trans (by simpa using hx')
|
| 34 |
+
|
| 35 |
+
variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
|
| 36 |
+
|
| 37 |
+
omit [CompleteSpace H] in
|
| 38 |
+
lemma finite_range_compact (F : H →L[ℂ] H) (W : Submodule ℂ H)
|
| 39 |
+
[FiniteDimensional ℂ W] (hW : ∀x,F x∈W) : IsCompactOperator F := by
|
| 40 |
+
have hh := isCompactOperator_of_locallyCompactSpace_dom (F.codRestrict W hW)
|
| 41 |
+
exact hh.clm_comp W.subtypeL
|
| 42 |
+
|
| 43 |
+
lemma cutoff_compact {ι : Type*} (T : H →L[ℂ] H) (hT : IsSelfAdjoint T)
|
| 44 |
+
(v : ι→H) (r : ι→ℝ)
|
| 45 |
+
(hdense : (Submodule.span ℂ (range v)).topologicalClosure=⊤)
|
| 46 |
+
(heigen : ∀i,T (v i)=r i • v i)
|
| 47 |
+
(hfinite : ∀ε : ℝ,0<ε → {i | ε≤r i}.Finite)
|
| 48 |
+
{δ : ℝ} (hδ : 0<δ) :
|
| 49 |
+
IsCompactOperator (cfc (p:=IsSelfAdjoint) (cutoff δ) T : H →L[ℂ] H) := by
|
| 50 |
+
let S : Set ι := {i | δ/2≤r i}
|
| 51 |
+
have hS : S.Finite := hfinite _ (by positivity)
|
| 52 |
+
let W : Submodule ℂ H := Submodule.span ℂ (v '' S)
|
| 53 |
+
have : FiniteDimensional ℂ W := FiniteDimensional.span_of_finite ℂ (hS.image v)
|
| 54 |
+
apply finite_range_compact _ W
|
| 55 |
+
have hgen : Submodule.span ℂ (range v) ≤
|
| 56 |
+
W.comap (cfc (p:=IsSelfAdjoint) (cutoff δ) T).toLinearMap := by
|
| 57 |
+
apply Submodule.span_le.mpr
|
| 58 |
+
rintro _ ⟨i,rfl⟩
|
| 59 |
+
change cfc (p:=IsSelfAdjoint) (cutoff δ) T (v i)∈W
|
| 60 |
+
rw [cfc_eigen_apply T hT _ (cutoff_smooth δ).continuous _
|
| 61 |
+
((cutoff_smooth δ).differentiable (by norm_num)).differentiableAt _ (heigen i)]
|
| 62 |
+
by_cases hi : i∈S
|
| 63 |
+
· exact W.smul_mem _ (Submodule.subset_span ⟨i,hi,rfl⟩)
|
| 64 |
+
· have hr : r i≤δ/2 := (lt_of_not_ge hi).le
|
| 65 |
+
rw [cutoff_zero hδ hr,zero_smul]
|
| 66 |
+
exact W.zero_mem
|
| 67 |
+
have hclosed : IsClosed (W.comap (cfc (p:=IsSelfAdjoint) (cutoff δ) T).toLinearMap : Set H) :=
|
| 68 |
+
W.closed_of_finiteDimensional.preimage (cfc (p:=IsSelfAdjoint) (cutoff δ) T).continuous
|
| 69 |
+
have hh := (Submodule.span ℂ (range v)).topologicalClosure_minimal hgen hclosed
|
| 70 |
+
rw [hdense] at hh
|
| 71 |
+
intro x
|
| 72 |
+
exact hh (Submodule.mem_top : x∈(⊤ : Submodule ℂ H))
|
| 73 |
+
|
| 74 |
+
end HardSphere.CompactForm
|
| 75 |
+
|
| 76 |
+
namespace HardSphere.CompactForm
|
| 77 |
+
variable {G H : Type*} [NormedAddCommGroup G] [InnerProductSpace ℂ G] [CompleteSpace G]
|
| 78 |
+
[NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
|
| 79 |
+
|
| 80 |
+
lemma cutoff_embedding_error (J : G →L[ℂ] H) (T : H →L[ℂ] H)
|
| 81 |
+
(hJT : J ∘L J.adjoint=T) (hT : T.IsPositive) (hTn : ‖T‖≤1)
|
| 82 |
+
{δ : ℝ} (hδ : 0<δ) :
|
| 83 |
+
‖((1-cfc (p:=IsSelfAdjoint) (cutoff δ) T) : H →L[ℂ] H) ∘L J‖^2≤δ := by
|
| 84 |
+
let q : ℝ→ℝ := fun x ↦ 1-cutoff δ x
|
| 85 |
+
have hq : Continuous q := continuous_const.sub (cutoff_smooth δ).continuous
|
| 86 |
+
let Q : H →L[ℂ] H := cfc (p:=IsSelfAdjoint) q T
|
| 87 |
+
have hQ : Q=1-cfc (p:=IsSelfAdjoint) (cutoff δ) T := by
|
| 88 |
+
dsimp only [Q,q]
|
| 89 |
+
rw [cfc_sub _ _ T continuousOn_const (cutoff_smooth δ).continuous.continuousOn,
|
| 90 |
+
cfc_const 1 T hT.isSelfAdjoint,map_one]
|
| 91 |
+
have hQadj : Q.adjoint=Q := cfc_predicate q T
|
| 92 |
+
let E : G →L[ℂ] H := Q ∘L J
|
| 93 |
+
have hEE : E ∘L E.adjoint=Q*T*Q := by
|
| 94 |
+
change (Q ∘L J) ∘L (Q ∘L J).adjoint=Q*T*Q
|
| 95 |
+
rw [adjoint_comp,hQadj]
|
| 96 |
+
calc
|
| 97 |
+
_ = Q ∘L ((J ∘L J.adjoint) ∘L Q) := by simp only [comp_assoc]
|
| 98 |
+
_ = Q*T*Q := by rw [hJT]; rfl
|
| 99 |
+
have hcalc : Q*T*Q=cfc (p:=IsSelfAdjoint) (fun x : ℝ ↦ (1-cutoff δ x)^2*x) T := by
|
| 100 |
+
have hf : (fun x : ℝ ↦ (1-cutoff δ x)^2*x)=(fun x ↦ (q x*x)*q x) := by
|
| 101 |
+
funext x; dsimp only [q]; ring
|
| 102 |
+
rw [hf]
|
| 103 |
+
symm
|
| 104 |
+
calc
|
| 105 |
+
_ = cfc (p:=IsSelfAdjoint) (fun x : ℝ ↦ q x*x) T * cfc q T :=
|
| 106 |
+
cfc_mul (fun x : ℝ ↦ q x*x) q T (hq.mul continuous_id).continuousOn hq.continuousOn
|
| 107 |
+
_ = (cfc q T * cfc (p:=IsSelfAdjoint) id T) * cfc q T := by
|
| 108 |
+
congr 1
|
| 109 |
+
exact cfc_mul q id T hq.continuousOn continuous_id.continuousOn
|
| 110 |
+
_ = Q*T*Q := by
|
| 111 |
+
change cfc q T * cfc (p:=IsSelfAdjoint) (fun x : ℝ ↦ x) T * cfc q T = _
|
| 112 |
+
rw [cfc_id' ℝ T hT.isSelfAdjoint]
|
| 113 |
+
have hb : ‖E ∘L E.adjoint‖≤δ := by
|
| 114 |
+
rw [hEE,hcalc]
|
| 115 |
+
apply norm_cfc_le hδ.le
|
| 116 |
+
intro spectralValue hmem
|
| 117 |
+
have hnonneg := spectrum_nonneg_of_nonneg
|
| 118 |
+
(ContinuousLinearMap.nonneg_iff_isPositive.mpr hT) hmem
|
| 119 |
+
by_cases hlarge : 1 ≤ δ
|
| 120 |
+
· have hbound : spectralValue ≤ 1 := (le_abs_self _).trans
|
| 121 |
+
((spectrum.norm_le_norm_mul_of_mem hmem).trans
|
| 122 |
+
((mul_le_of_le_one_right (norm_nonneg T) norm_id_le).trans hTn))
|
| 123 |
+
have hcutoff : (1-cutoff δ spectralValue)^2 ≤ 1 := by
|
| 124 |
+
nlinarith [cutoff_nonneg δ spectralValue, cutoff_le_one δ spectralValue]
|
| 125 |
+
rw [Real.norm_eq_abs, abs_of_nonneg (mul_nonneg (sq_nonneg _) hnonneg)]
|
| 126 |
+
exact (mul_le_of_le_one_left hnonneg hcutoff).trans (hbound.trans hlarge)
|
| 127 |
+
· exact cutoff_error hδ hnonneg
|
| 128 |
+
have hn := norm_adjoint_comp_self E.adjoint
|
| 129 |
+
rw [adjoint_adjoint,LinearIsometryEquiv.norm_map] at hn
|
| 130 |
+
rw [hn] at hb
|
| 131 |
+
change ‖Q ∘L J‖*‖Q ∘L J‖≤δ at hb
|
| 132 |
+
rw [hQ] at hb
|
| 133 |
+
simpa only [sq] using hb
|
| 134 |
+
|
| 135 |
+
lemma compact_embedding {ι : Type*} (J : G →L[ℂ] H) (T : H →L[ℂ] H)
|
| 136 |
+
(hJT : J ∘L J.adjoint=T) (hT : T.IsPositive) (hTn : ‖T‖≤1)
|
| 137 |
+
(v : ι→H) (r : ι→ℝ)
|
| 138 |
+
(hdense : (Submodule.span ℂ (range v)).topologicalClosure=⊤)
|
| 139 |
+
(heigen : ∀i,T (v i)=r i • v i)
|
| 140 |
+
(hfinite : ∀ε : ℝ,0<ε → {i | ε≤r i}.Finite) : IsCompactOperator J := by
|
| 141 |
+
have hclosed : IsClosed {F : G →L[ℂ] H | IsCompactOperator F} := isClosed_setOfPred_isCompactOperator
|
| 142 |
+
apply hclosed.closure_subset
|
| 143 |
+
rw [Metric.mem_closure_iff]
|
| 144 |
+
intro ε hε
|
| 145 |
+
let δ : ℝ := ε^2/4
|
| 146 |
+
have hδ : 0<δ := by dsimp only [δ]; positivity
|
| 147 |
+
let F : H →L[ℂ] H := cfc (p:=IsSelfAdjoint) (cutoff δ) T
|
| 148 |
+
have hF : IsCompactOperator F := cutoff_compact T hT.isSelfAdjoint v r hdense heigen hfinite hδ
|
| 149 |
+
refine ⟨F ∘L J,hF.comp_clm J,?_⟩
|
| 150 |
+
rw [dist_eq_norm]
|
| 151 |
+
have heq : J-F ∘L J=(1-F) ∘L J := by ext x; simp
|
| 152 |
+
rw [heq]
|
| 153 |
+
have hh := cutoff_embedding_error J T hJT hT hTn hδ
|
| 154 |
+
change ‖(1-F) ∘L J‖^2≤δ at hh
|
| 155 |
+
have hn := norm_nonneg ((1-F) ∘L J)
|
| 156 |
+
dsimp only [δ] at hh
|
| 157 |
+
nlinarith
|
| 158 |
+
|
| 159 |
+
end HardSphere.CompactForm
|
| 160 |
+
end
|
| 161 |
+
|
| 162 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/FormResolventNormEnergy.lean
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Operators.KilledTransitionFormHeat
|
| 3 |
+
import OAI.Analysis.HardSphere.Collisions.IteratedInsertion
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open MeasureTheory Filter Set
|
| 9 |
+
open scoped ENNReal Topology BigOperators
|
| 10 |
+
open scoped BigOperators ComplexConjugate
|
| 11 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 14 |
+
open scoped ENNReal ComplexConjugate
|
| 15 |
+
open ProbabilityTheory
|
| 16 |
+
namespace HardSphere
|
| 17 |
+
open ContinuousLinearMap
|
| 18 |
+
|
| 19 |
+
lemma formResolvent_norm_le_of_energy {N : ℕ} {L : Length} {a b : ℝ}
|
| 20 |
+
(hb : 0≤b) (henergy : ∀ u : Jet N L, u∈dirichletDomain N L a → b*‖u.1‖^2≤energy u) :
|
| 21 |
+
‖formResolvent N L a‖≤(1+b)⁻¹ := by
|
| 22 |
+
have hp : 0<1+b := by linarith
|
| 23 |
+
apply opNorm_le_bound _ (inv_nonneg.mpr hp.le)
|
| 24 |
+
intro f
|
| 25 |
+
let g := (scalarEmbedding N L a).adjoint f
|
| 26 |
+
let u := hilbertJetEquiv N L (g : HilbertJet N L)
|
| 27 |
+
have hu : u∈dirichletDomain N L a := g.property
|
| 28 |
+
have he := henergy u hu
|
| 29 |
+
have hn : ‖g‖^2=‖u.1‖^2+energy u := hilbertJet_norm_sq (g : HilbertJet N L)
|
| 30 |
+
have hinner : ‖g‖^2=(inner ℂ f u.1).re := by
|
| 31 |
+
rw [norm_sq_eq_re_inner (𝕜 := ℂ)]
|
| 32 |
+
exact congrArg Complex.re (adjoint_inner_left (scalarEmbedding N L a) g f)
|
| 33 |
+
have hbound : (1+b)*‖u.1‖^2≤‖f‖*‖u.1‖ := by
|
| 34 |
+
have hi := re_inner_le_norm (𝕜 := ℂ) f u.1
|
| 35 |
+
change (inner ℂ f u.1).re≤‖f‖*‖u.1‖ at hi
|
| 36 |
+
nlinarith
|
| 37 |
+
change ‖u.1‖≤(1+b)⁻¹*‖f‖
|
| 38 |
+
by_cases hz : ‖u.1‖=0
|
| 39 |
+
· rw [hz]; positivity
|
| 40 |
+
· have hupos : 0<‖u.1‖ := lt_of_le_of_ne (norm_nonneg _) (Ne.symm hz)
|
| 41 |
+
rw [← div_eq_inv_mul,le_div_iff₀ hp]
|
| 42 |
+
nlinarith
|
| 43 |
+
|
| 44 |
+
local instance scalarOperatorRealAlgebraCoercive (N : ℕ) (L : Length) :
|
| 45 |
+
Algebra ℝ (ScalarL2 N L →L[ℂ] ScalarL2 N L) := Algebra.restrictScalars ℝ ℂ _
|
| 46 |
+
|
| 47 |
+
lemma formHeat_norm_le_of_energy {N : ℕ} {L : Length} {a b t : ℝ} (ht : 0<t)
|
| 48 |
+
(henergy : ∀ u : Jet N L, u∈dirichletDomain N L a → b*‖u.1‖^2≤energy u) :
|
| 49 |
+
‖formHeat N L a t‖≤Real.exp (-t*b) := by
|
| 50 |
+
cases subsingleton_or_nontrivial (ScalarL2 N L) with
|
| 51 |
+
| inl h =>
|
| 52 |
+
let := h
|
| 53 |
+
rw [show formHeat N L a t=0 from Subsingleton.elim _ _,norm_zero]
|
| 54 |
+
exact (Real.exp_pos _).le
|
| 55 |
+
| inr h =>
|
| 56 |
+
let := h
|
| 57 |
+
by_cases hb : 0≤b
|
| 58 |
+
· have hp : 0<1+b := by linarith
|
| 59 |
+
have hR := formResolvent_norm_le_of_energy hb henergy
|
| 60 |
+
unfold formHeat
|
| 61 |
+
apply norm_cfc_le (Real.exp_pos _).le
|
| 62 |
+
intro x hx
|
| 63 |
+
have hx0 : 0≤x := spectrum_nonneg_of_nonneg
|
| 64 |
+
(ContinuousLinearMap.nonneg_iff_isPositive.mpr (formResolvent_isPositive N L a)) hx
|
| 65 |
+
have hxb : x≤(1+b)⁻¹ := (Real.le_norm_self x).trans ((spectrum.norm_le_norm_of_mem hx).trans hR)
|
| 66 |
+
rw [Real.norm_eq_abs,abs_of_nonneg (heatScalar_nonneg t x)]
|
| 67 |
+
rcases eq_or_lt_of_le hx0 with rfl | hx0
|
| 68 |
+
· rw [heatScalar_zero]; exact (Real.exp_pos _).le
|
| 69 |
+
· rw [heatScalar_of_pos ht hx0]
|
| 70 |
+
apply Real.exp_le_exp.mpr
|
| 71 |
+
have hxinv : 1+b≤x⁻¹ := by
|
| 72 |
+
simpa only [inv_inv] using (inv_le_inv₀ (inv_pos.mpr hp) hx0).mpr hxb
|
| 73 |
+
have hg := mul_le_mul_of_nonneg_left hxinv ht.le
|
| 74 |
+
rw [div_eq_mul_inv]
|
| 75 |
+
linarith
|
| 76 |
+
· have hnorm : ‖formHeat N L a t‖≤1 := by
|
| 77 |
+
rw [formHeat,← regularHeat_pos (formResolvent N L a) ht]
|
| 78 |
+
exact regularHeat_contract (formResolvent_isPositive N L a) (formResolvent_norm_le_one N L a) t
|
| 79 |
+
exact hnorm.trans (Real.one_le_exp (mul_nonneg_of_nonpos_of_nonpos (by linarith) (le_of_not_ge hb)))
|
| 80 |
+
lemma killedTransition_norm_le_of_energy {N : ℕ} {L : Length} {a b t : ℝ} (ht : 0<t)
|
| 81 |
+
(henergy : ∀ u : Jet N L, u∈dirichletDomain N L a → b*‖u.1‖^2≤energy u) :
|
| 82 |
+
‖killedTransition N L a t‖≤Real.exp (-t*b) := by
|
| 83 |
+
rw [killedTransition_eq_formHeat N L a ht]
|
| 84 |
+
exact formHeat_norm_le_of_energy ht henergy
|
| 85 |
+
|
| 86 |
+
lemma bath_heat_bound : ∃ C : ℝ, 0<C ∧
|
| 87 |
+
∀ (n m : ℕ) (L : Length) (r t : ℝ), 0<r → 0<t →
|
| 88 |
+
((n+m:ℕ):ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 89 |
+
∀ u : Jet (n+m) L, IsGroundVector (n+m) L r u →
|
| 90 |
+
‖killedTransition n L r t‖≤
|
| 91 |
+
Real.exp (-t*(energy u-C*(m:ℝ)*((n+m:ℕ):ℝ)*r/L.val^3)) := by
|
| 92 |
+
obtain ⟨C,hC,hrem⟩ := ground_energy_removal
|
| 93 |
+
exact ⟨C,hC,fun n m L r t hr ht hs u hu ↦
|
| 94 |
+
killedTransition_norm_le_of_energy ht (hrem n m L r hr hs u hu)⟩
|
| 95 |
+
end HardSphere
|
| 96 |
+
|
| 97 |
+
end
|
| 98 |
+
|
| 99 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/FreeResolventDenseRange.lean
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Fourier.CharacterDerivativeFactor
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.GraphLiftHeatBound
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open MeasureTheory Filter Set
|
| 9 |
+
open scoped ENNReal Topology BigOperators
|
| 10 |
+
open scoped BigOperators ComplexConjugate
|
| 11 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 14 |
+
open scoped ENNReal ComplexConjugate
|
| 15 |
+
namespace HardSphere
|
| 16 |
+
open ContinuousLinearMap Filter
|
| 17 |
+
open scoped Topology
|
| 18 |
+
|
| 19 |
+
lemma freeResolvent_denseRange (N : ℕ) (L : Length) (a : ℝ) (ha : a<0) :
|
| 20 |
+
DenseRange (formResolvent N L a) := by
|
| 21 |
+
change Dense (Set.range (formResolvent N L a))
|
| 22 |
+
change Dense ((formResolvent N L a).range : Set (ScalarL2 N L))
|
| 23 |
+
apply Submodule.dense_iff_topologicalClosure_eq_top.mpr
|
| 24 |
+
apply top_unique
|
| 25 |
+
rw [← characterL2_span_dense N L]
|
| 26 |
+
apply Submodule.topologicalClosure_mono
|
| 27 |
+
apply Submodule.span_le.mpr
|
| 28 |
+
rintro _ ⟨k,rfl⟩
|
| 29 |
+
refine ⟨(1+(fourierEnergy N L k:ℂ)) • characterL2 N L k,?_⟩
|
| 30 |
+
change formResolvent N L a ((1+(fourierEnergy N L k:ℂ)) • characterL2 N L k)=_
|
| 31 |
+
rw [map_smul,character_resolvent N L a ha k,smul_smul,mul_inv_cancel₀,one_smul]
|
| 32 |
+
have hreal : (1:ℝ)+fourierEnergy N L k≠0 := ne_of_gt (by linarith [fourierEnergy_nonneg N L k])
|
| 33 |
+
exact_mod_cast hreal
|
| 34 |
+
|
| 35 |
+
lemma free_graph_lift_of_heat_bound (N : ℕ) (L : Length) (a : ℝ) (ha : a<0)
|
| 36 |
+
(u : ScalarL2 N L) (C : ℝ)
|
| 37 |
+
(hb : ∀ n : ℕ, (1/((n:ℝ)+1))⁻¹ *
|
| 38 |
+
(‖u‖^2-(inner ℂ u (freeTransition N L (1/((n:ℝ)+1)) u)).re)≤C) :
|
| 39 |
+
∃ v : hilbertDomain N L a, scalarEmbedding N L a v=u ∧ ‖v‖^2≤‖u‖^2+C := by
|
| 40 |
+
rcases subsingleton_or_nontrivial (ScalarL2 N L) with h | h
|
| 41 |
+
· have := h
|
| 42 |
+
refine ⟨0,Subsingleton.elim _ _,?_⟩
|
| 43 |
+
have hz : u=0 := Subsingleton.elim _ _
|
| 44 |
+
simpa [hz] using hb 0
|
| 45 |
+
have := h
|
| 46 |
+
apply exists_graph_lift_of_heat_bound (scalarEmbedding N L a) (scalarEmbedding_norm_le N L a)
|
| 47 |
+
(freeResolvent_denseRange N L a ha) u C
|
| 48 |
+
intro n
|
| 49 |
+
have ht : 0<1/((n:ℝ)+1) := by positivity
|
| 50 |
+
simpa only [formHeat,formResolvent] using
|
| 51 |
+
(show (1/((n:ℝ)+1))⁻¹ * (‖u‖^2-(inner ℂ u
|
| 52 |
+
(formHeat N L a (1/((n:ℝ)+1)) u)).re)≤C by
|
| 53 |
+
rw [← freeTransition_eq_formHeat N L a ha ht]
|
| 54 |
+
exact hb n)
|
| 55 |
+
|
| 56 |
+
end HardSphere
|
| 57 |
+
|
| 58 |
+
end
|
| 59 |
+
|
| 60 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/FreeTransition.lean
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Fourier.ArgumentAdd
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open MeasureTheory Filter Set
|
| 8 |
+
open scoped ENNReal Topology BigOperators
|
| 9 |
+
open scoped BigOperators ComplexConjugate
|
| 10 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 11 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 12 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 13 |
+
open scoped ENNReal ComplexConjugate
|
| 14 |
+
namespace HardSphere
|
| 15 |
+
open Wiener ProbabilityTheory
|
| 16 |
+
open scoped ComplexConjugate
|
| 17 |
+
|
| 18 |
+
lemma wiener_initial_zero : ∀ᵐ w : C(Time,ℝ) ∂wiener, w 0 = 0 := by
|
| 19 |
+
rw [wiener, ae_map_iff measurable_path.aemeasurable
|
| 20 |
+
(isClosed_eq (continuous_eval_const (0:Time)) continuous_const).measurableSet]
|
| 21 |
+
exact Filter.Eventually.of_forall path_at_zero
|
| 22 |
+
|
| 23 |
+
lemma coordinateWiener_initial_zero (N : ℕ) :
|
| 24 |
+
∀ᵐ w ∂coordinateWiener N, ∀ p, w p 0 = 0 := by
|
| 25 |
+
apply ae_all_iff.mpr
|
| 26 |
+
intro p
|
| 27 |
+
exact (measurePreserving_eval (fun _ : Direction N ↦ wiener) p).quasiMeasurePreserving.ae wiener_initial_zero
|
| 28 |
+
|
| 29 |
+
lemma freeTrajectory_initial_ae (N : ℕ) (L : Length) (t : ℝ) :
|
| 30 |
+
∀ᵐ w ∂coordinateWiener N, ∀ X, freeTrajectory N L t w X 0 = X := by
|
| 31 |
+
filter_upwards [coordinateWiener_initial_zero N] with w hw X
|
| 32 |
+
ext i j
|
| 33 |
+
simp only [freeTrajectory, ContinuousMap.coe_mk, hw (i,j), mul_zero,
|
| 34 |
+
QuotientAddGroup.mk_zero, add_zero]
|
| 35 |
+
|
| 36 |
+
def freeTransition (N : ℕ) (L : Length) (t : ℝ) : ScalarL2 N L →L[ℂ] ScalarL2 N L :=
|
| 37 |
+
(endpointPull N L t 0).toContinuousLinearMap.adjoint ∘L
|
| 38 |
+
(endpointPull N L t 1).toContinuousLinearMap
|
| 39 |
+
|
| 40 |
+
lemma freeTransition_pairing (N : ℕ) (L : Length) (t : ℝ) (f g : ScalarL2 N L) :
|
| 41 |
+
inner ℂ f (freeTransition N L t g) =
|
| 42 |
+
∫ ω, conj (f (ω 0)) * g (ω 1) ∂freePathLaw N L t := by
|
| 43 |
+
rw [freeTransition, ContinuousLinearMap.comp_apply, ContinuousLinearMap.adjoint_inner_right,
|
| 44 |
+
L2.inner_def]
|
| 45 |
+
apply integral_congr_ae
|
| 46 |
+
filter_upwards [endpointPull_ae N L t 0 f, endpointPull_ae N L t 1 g] with ω hf hg
|
| 47 |
+
change inner ℂ ((endpointPull N L t 0) f ω) ((endpointPull N L t 1) g ω) = _
|
| 48 |
+
rw [hf,hg,RCLike.inner_apply,mul_comm]
|
| 49 |
+
|
| 50 |
+
lemma freeTransition_continuous_pairing (N : ℕ) (L : Length) (t : ℝ)
|
| 51 |
+
(f g : C(Configuration N L,ℂ)) :
|
| 52 |
+
inner ℂ (ContinuousMap.toLp 2 volume ℂ f)
|
| 53 |
+
(freeTransition N L t (ContinuousMap.toLp 2 volume ℂ g)) =
|
| 54 |
+
∫ ω, conj (f (ω 0)) * g (ω 1) ∂freePathLaw N L t := by
|
| 55 |
+
rw [freeTransition_pairing]
|
| 56 |
+
apply integral_congr_ae
|
| 57 |
+
filter_upwards [(freePathLaw_marginal N L t 0).quasiMeasurePreserving.ae (ContinuousMap.coeFn_toLp (𝕜 := ℂ) (p := 2) volume f),
|
| 58 |
+
(freePathLaw_marginal N L t 1).quasiMeasurePreserving.ae (ContinuousMap.coeFn_toLp (𝕜 := ℂ) (p := 2) volume g)] with ω hf hg
|
| 59 |
+
rw [hf,hg]
|
| 60 |
+
|
| 61 |
+
lemma integrable_free_character (N : ℕ) (L : Length) (t : ℝ)
|
| 62 |
+
(f : C(Configuration N L,ℂ)) (k : Direction N → ℤ) :
|
| 63 |
+
Integrable (fun p : CoordinatePaths N × Configuration N L ↦
|
| 64 |
+
conj (f p.2) * configurationCharacter N L k (freeTrajectory N L t p.1 p.2 1))
|
| 65 |
+
((coordinateWiener N).prod volume) := by
|
| 66 |
+
have hc : Continuous (fun p : CoordinatePaths N × Configuration N L ↦
|
| 67 |
+
conj (f p.2) * configurationCharacter N L k (freeTrajectory N L t p.1 p.2 1)) := by
|
| 68 |
+
exact (f.continuous.comp continuous_snd).star.mul
|
| 69 |
+
((configurationCharacter N L k).continuous.comp
|
| 70 |
+
((freeTrajectory_continuous N L t).eval continuous_const))
|
| 71 |
+
refine (integrable_const ‖f‖).mono' hc.aestronglyMeasurable ?_
|
| 72 |
+
exact Filter.Eventually.of_forall fun p ↦ by
|
| 73 |
+
rw [norm_mul, RCLike.norm_conj, configurationCharacter_norm, mul_one]
|
| 74 |
+
exact f.norm_coe_le_norm p.2
|
| 75 |
+
|
| 76 |
+
lemma freeTransition_character_pairing (N : ℕ) (L : Length) (t : ℝ) (ht : 0 ≤ t)
|
| 77 |
+
(f : C(Configuration N L,ℂ)) (k : Direction N → ℤ) :
|
| 78 |
+
inner ℂ (ContinuousMap.toLp 2 volume ℂ f) (freeTransition N L t (characterL2 N L k)) =
|
| 79 |
+
(Real.exp (-t * fourierEnergy N L k) : ℂ) *
|
| 80 |
+
inner ℂ (ContinuousMap.toLp 2 volume ℂ f) (characterL2 N L k) := by
|
| 81 |
+
change inner ℂ _ (freeTransition N L t (ContinuousMap.toLp 2 volume ℂ _)) = _
|
| 82 |
+
rw [freeTransition_continuous_pairing, freePathLaw]
|
| 83 |
+
have hc : Continuous (fun ω : ConfigurationPath N L ↦
|
| 84 |
+
conj (f (ω 0)) * configurationCharacter N L k (ω 1)) := by fun_prop
|
| 85 |
+
rw [integral_map (freeTrajectory_continuous N L t).measurable.aemeasurable
|
| 86 |
+
hc.aestronglyMeasurable]
|
| 87 |
+
have hzero : (fun p : CoordinatePaths N × Configuration N L ↦
|
| 88 |
+
conj (f (freeTrajectory N L t p.1 p.2 0)) *
|
| 89 |
+
configurationCharacter N L k (freeTrajectory N L t p.1 p.2 1)) =ᵐ[
|
| 90 |
+
(coordinateWiener N).prod volume]
|
| 91 |
+
(fun p ↦ conj (f p.2) * configurationCharacter N L k (freeTrajectory N L t p.1 p.2 1)) := by
|
| 92 |
+
filter_upwards [Measure.quasiMeasurePreserving_fst.ae (freeTrajectory_initial_ae N L t)] with p hp
|
| 93 |
+
rw [hp]
|
| 94 |
+
rw [integral_congr_ae hzero, integral_prod_symm _ (integrable_free_character N L t f k)]
|
| 95 |
+
simp_rw [integral_const_mul, freeTrajectory_character_integral N L k t ht]
|
| 96 |
+
rw [show (∫ X, conj (f X) * (configurationCharacter N L k X *
|
| 97 |
+
(Real.exp (-t*fourierEnergy N L k) : ℂ))) =
|
| 98 |
+
(Real.exp (-t*fourierEnergy N L k) : ℂ) *
|
| 99 |
+
∫ X, conj (f X) * configurationCharacter N L k X by
|
| 100 |
+
rw [← integral_const_mul]; congr 1; ext X; ring]
|
| 101 |
+
congr 1
|
| 102 |
+
rw [characterL2, ContinuousMap.inner_toLp]
|
| 103 |
+
apply integral_congr_ae
|
| 104 |
+
exact Filter.Eventually.of_forall fun X ↦ mul_comm _ _
|
| 105 |
+
|
| 106 |
+
lemma freeTransition_character (N : ℕ) (L : Length) (t : ℝ) (ht : 0 ≤ t)
|
| 107 |
+
(k : Direction N → ℤ) :
|
| 108 |
+
freeTransition N L t (characterL2 N L k) =
|
| 109 |
+
(Real.exp (-t * fourierEnergy N L k) : ℂ) • characterL2 N L k := by
|
| 110 |
+
apply ext_inner_left ℂ
|
| 111 |
+
intro f
|
| 112 |
+
have hd := ContinuousMap.toLp_denseRange ℂ (volume : Measure (Configuration N L)) ℂ
|
| 113 |
+
(show (2:ℝ≥0∞) ≠ ∞ by norm_num)
|
| 114 |
+
have hc : IsClosed {f : ScalarL2 N L |
|
| 115 |
+
inner ℂ f (freeTransition N L t (characterL2 N L k)) =
|
| 116 |
+
inner ℂ f ((Real.exp (-t * fourierEnergy N L k) : ℂ) • characterL2 N L k)} :=
|
| 117 |
+
isClosed_eq (continuous_id.inner continuous_const) (continuous_id.inner continuous_const)
|
| 118 |
+
have hz : ∀ f : C(Configuration N L,ℂ),
|
| 119 |
+
inner ℂ (ContinuousMap.toLp 2 volume ℂ f) (freeTransition N L t (characterL2 N L k)) =
|
| 120 |
+
inner ℂ (ContinuousMap.toLp 2 volume ℂ f)
|
| 121 |
+
((Real.exp (-t * fourierEnergy N L k) : ℂ) • characterL2 N L k) := by
|
| 122 |
+
intro f
|
| 123 |
+
rw [freeTransition_character_pairing N L t ht, inner_smul_right]
|
| 124 |
+
exact (hc.closure_subset_iff.mpr (Set.range_subset_iff.mpr hz)) (hd f)
|
| 125 |
+
|
| 126 |
+
end HardSphere
|
| 127 |
+
|
| 128 |
+
end
|
| 129 |
+
|
| 130 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/KilledTransitionAdd.lean
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Conditioning.ReverseConfigurationPath
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.KilledObservable
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open MeasureTheory Filter Set
|
| 9 |
+
open scoped ENNReal Topology BigOperators
|
| 10 |
+
open scoped BigOperators ComplexConjugate
|
| 11 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 14 |
+
open scoped ENNReal ComplexConjugate
|
| 15 |
+
namespace HardSphere
|
| 16 |
+
open Wiener
|
| 17 |
+
open scoped ComplexConjugate
|
| 18 |
+
|
| 19 |
+
theorem killedTransition_add (N : ℕ) (L : Length) (a s t : ℝ) (hs : 0<s) (ht : 0<t) :
|
| 20 |
+
killedTransition N L a (s+t) = killedTransition N L a s ∘L killedTransition N L a t := by
|
| 21 |
+
have hd := ContinuousMap.toLp_denseRange ℂ (volume : Measure (Configuration N L)) ℂ
|
| 22 |
+
(show (2:ℝ≥0∞) ≠ ∞ by norm_num)
|
| 23 |
+
apply ContinuousLinearMap.ext
|
| 24 |
+
intro g
|
| 25 |
+
change killedTransition N L a (s+t) g = killedTransition N L a s (killedTransition N L a t g)
|
| 26 |
+
have hc : IsClosed {g : ScalarL2 N L | killedTransition N L a (s+t) g =
|
| 27 |
+
killedTransition N L a s (killedTransition N L a t g)} :=
|
| 28 |
+
isClosed_eq (ContinuousLinearMap.continuous _) ((ContinuousLinearMap.continuous _).comp
|
| 29 |
+
(ContinuousLinearMap.continuous _))
|
| 30 |
+
apply hc.closure_subset_iff.mpr ?_ (hd g)
|
| 31 |
+
rintro _ ⟨g,rfl⟩
|
| 32 |
+
change killedTransition N L a (s+t) (ContinuousMap.toLp 2 volume ℂ g) =
|
| 33 |
+
killedTransition N L a s (killedTransition N L a t (ContinuousMap.toLp 2 volume ℂ g))
|
| 34 |
+
have hgLp : MemLp (fun X ↦ g X) 2 (volume : Measure (Configuration N L)) :=
|
| 35 |
+
MemLp.of_bound g.continuous.measurable.aestronglyMeasurable ‖g‖
|
| 36 |
+
(Filter.Eventually.of_forall g.norm_coe_le_norm)
|
| 37 |
+
have hge : ContinuousMap.toLp 2 volume ℂ g = hgLp.toLp g := by
|
| 38 |
+
apply Lp.ext
|
| 39 |
+
exact (ContinuousMap.coeFn_toLp (𝕜 := ℂ) (p := 2) volume g).trans hgLp.coeFn_toLp.symm
|
| 40 |
+
rw [hge,killedTransition_bounded N L a (s+t) g.continuous.measurable hgLp (norm_nonneg _) g.norm_coe_le_norm,
|
| 41 |
+
killedTransition_bounded N L a t g.continuous.measurable hgLp (norm_nonneg _) g.norm_coe_le_norm,
|
| 42 |
+
killedTransition_bounded N L a s (killedAverage_measurable N L a t g.continuous.measurable)
|
| 43 |
+
(killedAverage_memLp N L a t g.continuous.measurable (norm_nonneg _) g.norm_coe_le_norm)
|
| 44 |
+
(norm_nonneg g) (killedAverage_bound N L a t (norm_nonneg _) g.norm_coe_le_norm)]
|
| 45 |
+
apply MemLp.toLp_congr
|
| 46 |
+
exact Filter.Eventually.of_forall (killedAverage_add N L a s t hs ht g.continuous.measurable
|
| 47 |
+
(norm_nonneg _) g.norm_coe_le_norm)
|
| 48 |
+
|
| 49 |
+
end HardSphere
|
| 50 |
+
|
| 51 |
+
namespace HardSphere
|
| 52 |
+
lemma killedTransition_nonneg (N : ℕ) (L : Length) (a t : ℝ) (ht : 0<t) :
|
| 53 |
+
0 ≤ killedTransition N L a t := by
|
| 54 |
+
have hh : 0<t/2 := by positivity
|
| 55 |
+
rw [show t=t/2+t/2 by ring,killedTransition_add N L a (t/2) (t/2) hh hh]
|
| 56 |
+
have ha := killedTransition_selfAdjoint N L a (t/2)
|
| 57 |
+
have hp := ContinuousLinearMap.isPositive_adjoint_comp_self (killedTransition N L a (t/2))
|
| 58 |
+
simpa only [show (killedTransition N L a (t/2)).adjoint=killedTransition N L a (t/2) from ha] using ContinuousLinearMap.nonneg_iff_isPositive.mpr hp
|
| 59 |
+
|
| 60 |
+
end HardSphere
|
| 61 |
+
|
| 62 |
+
end
|
| 63 |
+
|
| 64 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/KilledTransitionContinuousAe.lean
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.KilledObservable
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open MeasureTheory Filter Set
|
| 8 |
+
open scoped ENNReal Topology BigOperators
|
| 9 |
+
open scoped BigOperators ComplexConjugate
|
| 10 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 11 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 12 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 13 |
+
open scoped ENNReal ComplexConjugate
|
| 14 |
+
namespace HardSphere
|
| 15 |
+
lemma killedTransition_continuous_ae (N : ℕ) (L : Length) (a t : ℝ)
|
| 16 |
+
(g : C(Configuration N L,ℂ)) :
|
| 17 |
+
killedTransition N L a t (ContinuousMap.toLp 2 volume ℂ g) =ᵐ[volume]
|
| 18 |
+
killedAverage N L a t g := by
|
| 19 |
+
have hgLp : MemLp (fun X ↦ g X) 2 (volume : Measure (Configuration N L)) :=
|
| 20 |
+
MemLp.of_bound g.continuous.measurable.aestronglyMeasurable ‖g‖
|
| 21 |
+
(Eventually.of_forall g.norm_coe_le_norm)
|
| 22 |
+
have hge : ContinuousMap.toLp 2 volume ℂ g = hgLp.toLp g := by
|
| 23 |
+
apply Lp.ext
|
| 24 |
+
exact (ContinuousMap.coeFn_toLp (𝕜 := ℂ) (p := 2) volume g).trans hgLp.coeFn_toLp.symm
|
| 25 |
+
rw [hge,killedTransition_bounded N L a t g.continuous.measurable
|
| 26 |
+
hgLp (norm_nonneg g) g.norm_coe_le_norm]
|
| 27 |
+
exact MemLp.coeFn_toLp _
|
| 28 |
+
|
| 29 |
+
end HardSphere
|
| 30 |
+
|
| 31 |
+
end
|
| 32 |
+
|
| 33 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/KilledTransitionFormHeat.lean
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Operators.SemigroupLaplaceCommute
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open MeasureTheory Filter Set
|
| 8 |
+
open scoped ENNReal Topology BigOperators
|
| 9 |
+
open scoped BigOperators ComplexConjugate
|
| 10 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 11 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 12 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 13 |
+
open scoped ENNReal ComplexConjugate
|
| 14 |
+
open ProbabilityTheory
|
| 15 |
+
namespace HardSphere
|
| 16 |
+
open MeasureTheory Set Filter ContinuousLinearMap
|
| 17 |
+
open scoped Topology
|
| 18 |
+
|
| 19 |
+
lemma killedTransition_eq_formHeat (N : ℕ) (L : Length) (a : ℝ) {t : ℝ} (ht : 0<t) :
|
| 20 |
+
killedTransition N L a t=formHeat N L a t := by
|
| 21 |
+
rcases subsingleton_or_nontrivial (ScalarL2 N L) with h | h
|
| 22 |
+
· exact Subsingleton.elim _ _
|
| 23 |
+
exact semigroup_eq_heat (killedTransition N L a) (killedTransition_add_nonneg N L a)
|
| 24 |
+
(killedTransition_clamped_continuous N L a)
|
| 25 |
+
(fun t _ ↦ killedTransition_apply_contraction N L a t)
|
| 26 |
+
(killedTransition_selfAdjoint N L a)
|
| 27 |
+
(formResolvent N L a) (formResolvent_isPositive N L a)
|
| 28 |
+
(formResolvent_norm_le_one N L a) (killedLaplace_eq_formResolvent (N := N) (L := L) (a := a)) ht
|
| 29 |
+
|
| 30 |
+
end HardSphere
|
| 31 |
+
|
| 32 |
+
end
|
| 33 |
+
|
| 34 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/Regularize.lean
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
open MeasureTheory Filter Set
|
| 7 |
+
open scoped ENNReal Topology BigOperators
|
| 8 |
+
open scoped BigOperators ComplexConjugate
|
| 9 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 10 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 11 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 12 |
+
open scoped ENNReal ComplexConjugate
|
| 13 |
+
open ProbabilityTheory
|
| 14 |
+
namespace HilbertRegularization
|
| 15 |
+
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
|
| 16 |
+
|
| 17 |
+
def regularize (ε : ℝ) (z : E) : ℂ := (Real.sqrt (‖z‖^2+ε^2)-ε : ℝ)
|
| 18 |
+
|
| 19 |
+
def differential (ε : ℝ) (z : E) : E →L[ℝ] ℂ :=
|
| 20 |
+
(Real.sqrt (‖z‖^2+ε^2))⁻¹ • (Complex.ofRealCLM.comp (innerSL ℝ z))
|
| 21 |
+
|
| 22 |
+
lemma smooth {ε : ℝ} (hε : 0<ε) :
|
| 23 |
+
ContDiff ℝ ((⊤:ℕ∞):WithTop ℕ∞) (regularize (E := E) ε) := by
|
| 24 |
+
apply Complex.ofRealCLM.contDiff.comp
|
| 25 |
+
apply ContDiff.sub _ contDiff_const
|
| 26 |
+
apply ContDiff.sqrt ((contDiff_norm_sq ℝ).add contDiff_const)
|
| 27 |
+
intro z
|
| 28 |
+
positivity
|
| 29 |
+
|
| 30 |
+
omit [InnerProductSpace ℝ E] in
|
| 31 |
+
lemma zero {ε : ℝ} (hε : 0≤ε) : regularize (E := E) ε 0=0 := by
|
| 32 |
+
simp [regularize,Real.sqrt_sq hε]
|
| 33 |
+
|
| 34 |
+
lemma hasFDerivAt {ε : ℝ} (hε : 0<ε) (z : E) :
|
| 35 |
+
HasFDerivAt (regularize ε) (differential ε z) z := by
|
| 36 |
+
have hn : ‖z‖^2+ε^2≠0 := by positivity
|
| 37 |
+
have h := Complex.ofRealCLM.hasFDerivAt.comp z
|
| 38 |
+
((((hasStrictFDerivAt_norm_sq z).hasFDerivAt.add_const (ε^2)).sqrt hn).sub_const ε)
|
| 39 |
+
have hd : differential ε z = Complex.ofRealCLM.comp
|
| 40 |
+
((1/(2*Real.sqrt (‖z‖^2+ε^2))) • (2 • innerSL ℝ z)) := by
|
| 41 |
+
ext w
|
| 42 |
+
simp [differential,two_smul,div_eq_mul_inv,mul_inv_rev]
|
| 43 |
+
ring
|
| 44 |
+
rw [hd]
|
| 45 |
+
exact h
|
| 46 |
+
|
| 47 |
+
omit [InnerProductSpace ℝ E] in
|
| 48 |
+
lemma sqroot_ge_norm (ε : ℝ) (z : E) : ‖z‖≤Real.sqrt (‖z‖^2+ε^2) :=
|
| 49 |
+
(Real.le_sqrt (norm_nonneg _) (by positivity)).mpr (by nlinarith [sq_nonneg ε])
|
| 50 |
+
|
| 51 |
+
lemma differential_apply_le (ε : ℝ) (z w : E) : ‖differential ε z w‖≤‖w‖ := by
|
| 52 |
+
by_cases hz : z=0
|
| 53 |
+
· simp [hz,differential]
|
| 54 |
+
have hp : 0<Real.sqrt (‖z‖^2+ε^2) :=
|
| 55 |
+
lt_of_lt_of_le (norm_pos_iff.mpr hz) (sqroot_ge_norm ε z)
|
| 56 |
+
simp only [differential,smul_apply,ContinuousLinearMap.comp_apply,norm_smul,
|
| 57 |
+
Complex.ofRealCLM_apply,Complex.norm_real,Real.norm_eq_abs,abs_inv,abs_of_pos hp,innerSL_apply_apply]
|
| 58 |
+
change _*‖inner ℝ z w‖≤_
|
| 59 |
+
apply le_trans (mul_le_mul_of_nonneg_left (norm_inner_le_norm (𝕜 := ℝ) z w) (by positivity :
|
| 60 |
+
0≤(Real.sqrt (‖z‖^2+ε^2))⁻¹))
|
| 61 |
+
rw [← div_eq_inv_mul,div_le_iff₀ hp]
|
| 62 |
+
simpa only [mul_comm] using mul_le_mul_of_nonneg_right (sqroot_ge_norm ε z) (norm_nonneg w)
|
| 63 |
+
|
| 64 |
+
lemma differential_le (ε : ℝ) (z : E) : ‖differential ε z‖≤1 := by
|
| 65 |
+
apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one
|
| 66 |
+
intro w
|
| 67 |
+
simpa only [one_mul] using differential_apply_le ε z w
|
| 68 |
+
|
| 69 |
+
lemma fderiv_eq {ε : ℝ} (hε : 0<ε) (z : E) :
|
| 70 |
+
fderiv ℝ (regularize ε) z=differential ε z := (hasFDerivAt hε z).fderiv
|
| 71 |
+
|
| 72 |
+
lemma lipschitz {ε : ℝ} (hε : 0<ε) : LipschitzWith 1 (regularize (E := E) ε) :=
|
| 73 |
+
lipschitzWith_of_nnnorm_fderiv_le ((smooth hε).differentiable (by simp))
|
| 74 |
+
(fun z ↦ by rw [fderiv_eq hε]; exact NNReal.coe_le_coe.mp (differential_le ε z))
|
| 75 |
+
|
| 76 |
+
lemma norm_le {ε : ℝ} (hε : 0<ε) (z : E) : ‖regularize ε z‖≤‖z‖ := by
|
| 77 |
+
simpa only [zero hε.le,sub_zero,NNReal.coe_one,one_mul] using
|
| 78 |
+
(lipschitz hε).norm_sub_le z 0
|
| 79 |
+
|
| 80 |
+
omit [InnerProductSpace ℝ E] in
|
| 81 |
+
lemma tendsto_regularize (z : E) {e : ℕ → ℝ} (he : Tendsto e atTop (𝓝 0)) :
|
| 82 |
+
Tendsto (fun n ↦ regularize (e n) z) atTop (𝓝 (‖z‖ : ℂ)) := by
|
| 83 |
+
have h : Tendsto (fun n ↦ Real.sqrt (‖z‖^2+e n^2)-e n) atTop (𝓝 ‖z‖) := by
|
| 84 |
+
have h := (((tendsto_const_nhds (x := ‖z‖^2)).add (he.pow 2)).sqrt.sub he)
|
| 85 |
+
simpa only [zero_pow (by norm_num : 2≠0),add_zero,sub_zero,Real.sqrt_sq (norm_nonneg _)] using h
|
| 86 |
+
exact Complex.continuous_ofReal.continuousAt.tendsto.comp h
|
| 87 |
+
|
| 88 |
+
end HilbertRegularization
|
| 89 |
+
|
| 90 |
+
end
|
| 91 |
+
|
| 92 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/SemigroupLaplaceCommute.lean
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.KilledEigenvector
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
section
|
| 7 |
+
section
|
| 8 |
+
noncomputable section
|
| 9 |
+
open MeasureTheory Filter Set
|
| 10 |
+
open scoped ENNReal Topology BigOperators
|
| 11 |
+
noncomputable section
|
| 12 |
+
open scoped BigOperators ComplexConjugate
|
| 13 |
+
noncomputable section
|
| 14 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 15 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 16 |
+
noncomputable section
|
| 17 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 18 |
+
open scoped ENNReal ComplexConjugate
|
| 19 |
+
open ProbabilityTheory
|
| 20 |
+
namespace HardSphere
|
| 21 |
+
open MeasureTheory Set Filter ContinuousLinearMap
|
| 22 |
+
open scoped Topology
|
| 23 |
+
noncomputable section
|
| 24 |
+
variable {F : Type*} [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] [Nontrivial F]
|
| 25 |
+
local instance : Algebra ℝ (F →L[ℂ] F) := Algebra.restrictScalars ℝ ℂ _
|
| 26 |
+
local instance : InnerProductSpace ℝ F := InnerProductSpace.rclikeToReal ℂ F
|
| 27 |
+
|
| 28 |
+
omit [Nontrivial F] in
|
| 29 |
+
lemma semigroupLaplace_commute (K : ℝ → F→L[ℂ] F)
|
| 30 |
+
(hadd : ∀ s t, 0 ≤ s → 0 ≤ t → K (s+t)=(K s).comp (K t))
|
| 31 |
+
(hc : ∀ f, Continuous (fun t : ℝ ↦ K (max 0 t) f))
|
| 32 |
+
(hnorm : ∀ t, 0 ≤ t → ∀ f, ‖K t f‖≤‖f‖) (f : F) {t : ℝ} (ht : 0 ≤ t) :
|
| 33 |
+
K t (semigroupLaplace K f)=semigroupLaplace K (K t f) := by
|
| 34 |
+
rw [semigroupLaplace,← (K t).integral_comp_comm (laplaceIntegrand_integrable K hc hnorm f 0)]
|
| 35 |
+
apply setIntegral_congr_fun measurableSet_Ioi
|
| 36 |
+
intro s hs
|
| 37 |
+
dsimp only [laplaceIntegrand]
|
| 38 |
+
have hs0 : 0 ≤ s := le_of_lt hs
|
| 39 |
+
rw [max_eq_right hs0,(K t).map_smul_of_tower]
|
| 40 |
+
congr 1
|
| 41 |
+
have he : (K t).comp (K s)=(K s).comp (K t) := by
|
| 42 |
+
rw [← hadd t s ht hs0,← hadd s t hs0 ht,add_comm]
|
| 43 |
+
exact congrArg (fun T : F→L[ℂ] F ↦ T f) he
|
| 44 |
+
|
| 45 |
+
lemma semigroup_eq_regularHeat_range_square (K : ℝ → F→L[ℂ] F)
|
| 46 |
+
(hadd : ∀ s t, 0 ≤ s → 0 ≤ t → K (s+t)=(K s).comp (K t))
|
| 47 |
+
(hc : ∀ f, Continuous (fun t : ℝ ↦ K (max 0 t) f))
|
| 48 |
+
(hnorm : ∀ t, 0 ≤ t → ∀ f, ‖K t f‖≤‖f‖)
|
| 49 |
+
(R : F→L[ℂ] F) (hRp : R.IsPositive) (hRn : ‖R‖≤1)
|
| 50 |
+
(hR : ∀ f, semigroupLaplace K f=R f) (f : F) {t : ℝ} (ht : 0 ≤ t) :
|
| 51 |
+
K t (R (R f))=regularHeat R t (R (R f)) := by
|
| 52 |
+
have hcomm (s : ℝ) (hs : 0 ≤ s) (g : F) : K s (R g)=R (K s g) := by
|
| 53 |
+
simpa only [hR] using semigroupLaplace_commute K hadd hc hnorm g hs
|
| 54 |
+
let w : ℝ → F := fun s ↦ K s (R (R f))-regularHeat R s (R (R f))
|
| 55 |
+
let v : ℝ → F := fun s ↦ K s (R f)-regularHeat R s (R f)
|
| 56 |
+
have hwR (s : ℝ) (hs : 0 ≤ s) : w s=R (v s) := by
|
| 57 |
+
dsimp only [w,v]
|
| 58 |
+
rw [map_sub,← hcomm s hs]
|
| 59 |
+
have he := (regularHeat_commute R s).eq
|
| 60 |
+
have he' := congrArg (fun T : F→L[ℂ] F ↦ T (R f)) he
|
| 61 |
+
change regularHeat R s (R (R f))=R (regularHeat R s (R f)) at he'
|
| 62 |
+
rw [he']
|
| 63 |
+
have hw0 : w 0=0 := by
|
| 64 |
+
have hz := semigroupLaplace_project K hadd hc hnorm (R f)
|
| 65 |
+
rw [hR] at hz
|
| 66 |
+
simp only [w,hz,regularHeat_zero,one_apply_eq_self,sub_self]
|
| 67 |
+
have hcw : ContinuousOn w (Ici 0) := by
|
| 68 |
+
have hk : ContinuousOn (fun s : ℝ ↦ K s (R (R f))) (Ici 0) :=
|
| 69 |
+
(hc (R (R f))).continuousOn.congr (fun s hs ↦ by
|
| 70 |
+
change K s (R (R f))=K (max 0 s) (R (R f))
|
| 71 |
+
rw [max_eq_right (show 0 ≤ s from hs)])
|
| 72 |
+
exact hk.sub (regularHeat_range_continuousOn hRp hRn (R f))
|
| 73 |
+
have hdw (s : ℝ) (hs : 0 ≤ s) : HasDerivWithinAt w (w s-v s) (Ici s) s := by
|
| 74 |
+
have hk := (semigroupLaplace_hasDerivWithinAt K hadd hc hnorm (R f) hs).mono
|
| 75 |
+
(Ici_subset_Ici.mpr hs)
|
| 76 |
+
simp only [hR] at hk
|
| 77 |
+
have hh := hk.sub (regularHeat_range_hasDerivWithinAt hRp hRn f hs)
|
| 78 |
+
convert hh using 1
|
| 79 |
+
dsimp only [w,v]
|
| 80 |
+
rw [map_sub]
|
| 81 |
+
abel
|
| 82 |
+
let z : ℝ → F := fun s ↦ Real.exp (-s) • w s
|
| 83 |
+
have hcz : ContinuousOn z (Ici 0) :=
|
| 84 |
+
(Real.continuous_exp.comp continuous_neg).continuousOn.smul hcw
|
| 85 |
+
have hdz (s : ℝ) (hs : 0 ≤ s) : HasDerivWithinAt z (-Real.exp (-s) • v s) (Ici s) s := by
|
| 86 |
+
have hh := (((hasDerivAt_id s).neg.exp).hasDerivWithinAt).smul (hdw s hs)
|
| 87 |
+
simp only [Pi.neg_apply,id_eq] at hh
|
| 88 |
+
convert hh using 1
|
| 89 |
+
module
|
| 90 |
+
have hnonpos (s : ℝ) (hs : 0 ≤ s) : inner ℝ (z s) (-Real.exp (-s) • v s)≤0 := by
|
| 91 |
+
have he : z s=R (Real.exp (-s) • v s) := by
|
| 92 |
+
dsimp only [z]
|
| 93 |
+
rw [hwR s hs,map_smul_of_tower]
|
| 94 |
+
rw [he,neg_smul,inner_neg_right]
|
| 95 |
+
apply neg_nonpos.mpr
|
| 96 |
+
exact hRp.re_inner_nonneg_left (Real.exp (-s) • v s)
|
| 97 |
+
have hbound := image_le_of_deriv_right_le_deriv_boundary
|
| 98 |
+
(f := fun s : ℝ ↦ ‖z s‖^2) (f' := fun s ↦ 2*inner ℝ (z s) (-Real.exp (-s) • v s))
|
| 99 |
+
(B := fun _ ↦ (0:ℝ)) (B' := fun _ ↦ (0:ℝ))
|
| 100 |
+
((continuous_norm.comp_continuousOn hcz).pow 2 |>.mono (Icc_subset_Ici_self : Icc (0:ℝ) t ⊆ Ici 0))
|
| 101 |
+
(fun s hs ↦ (hdz s hs.1).norm_sq)
|
| 102 |
+
(by simp [z,hw0]) continuousOn_const (fun s _ ↦ hasDerivWithinAt_const s _ _)
|
| 103 |
+
(fun s hs ↦ mul_nonpos_of_nonneg_of_nonpos (by norm_num) (hnonpos s hs.1))
|
| 104 |
+
(x := t) ⟨ht,le_refl _⟩
|
| 105 |
+
have hz : z t=0 := norm_eq_zero.mp (by nlinarith [norm_nonneg (z t)])
|
| 106 |
+
have hw : w t=0 := by
|
| 107 |
+
change Real.exp (-t) • w t=0 at hz
|
| 108 |
+
exact (smul_eq_zero.mp hz).resolve_left (ne_of_gt (Real.exp_pos _))
|
| 109 |
+
exact sub_eq_zero.mp hw
|
| 110 |
+
|
| 111 |
+
omit [Nontrivial F] in
|
| 112 |
+
lemma semigroupLaplace_kernel (K : ℝ → F→L[ℂ] F)
|
| 113 |
+
(hadd : ∀ s t, 0 ≤ s → 0 ≤ t → K (s+t)=(K s).comp (K t))
|
| 114 |
+
(hc : ∀ f, Continuous (fun t : ℝ ↦ K (max 0 t) f))
|
| 115 |
+
(hnorm : ∀ t, 0 ≤ t → ∀ f, ‖K t f‖≤‖f‖) (f : F)
|
| 116 |
+
(he : semigroupLaplace K f=0) {t : ℝ} (ht : 0 ≤ t) : K t f=0 := by
|
| 117 |
+
have hh := semigroupLaplace_difference_tendsto K hadd hc hnorm f
|
| 118 |
+
simp only [he,map_zero,sub_self,smul_zero,sub_zero] at hh
|
| 119 |
+
have hz : K 0 f=0 := (tendsto_nhds_unique tendsto_const_nhds hh).symm
|
| 120 |
+
have hp := congrArg (fun T : F→L[ℂ] F ↦ T f) (hadd t 0 ht (le_refl 0))
|
| 121 |
+
simpa only [add_zero,comp_apply,hz,map_zero] using hp
|
| 122 |
+
|
| 123 |
+
lemma semigroup_eq_heat (K : ℝ → F→L[ℂ] F)
|
| 124 |
+
(hadd : ∀ s t, 0 ≤ s → 0 ≤ t → K (s+t)=(K s).comp (K t))
|
| 125 |
+
(hc : ∀ f, Continuous (fun t : ℝ ↦ K (max 0 t) f))
|
| 126 |
+
(hnorm : ∀ t, 0 ≤ t → ∀ f, ‖K t f‖≤‖f‖)
|
| 127 |
+
(hKs : ∀ t, IsSelfAdjoint (K t))
|
| 128 |
+
(R : F→L[ℂ] F) (hRp : R.IsPositive) (hRn : ‖R‖≤1)
|
| 129 |
+
(hR : ∀ f, semigroupLaplace K f=R f) {t : ℝ} (ht : 0<t) :
|
| 130 |
+
K t=cfc (p := IsSelfAdjoint) (heatScalar t) R := by
|
| 131 |
+
let H := cfc (p := IsSelfAdjoint) (heatScalar t) R
|
| 132 |
+
let D := K t-H
|
| 133 |
+
have hDs : ∀ f g, inner ℂ (D f) g=inner ℂ f (D g) :=
|
| 134 |
+
isSelfAdjoint_iff_isSymmetric.mp ((hKs t).sub (show IsSelfAdjoint H from IsSelfAdjoint.cfc))
|
| 135 |
+
have hDRR (f : F) : D (R (R f))=0 := by
|
| 136 |
+
change K t (R (R f))-H (R (R f))=0
|
| 137 |
+
apply sub_eq_zero.mpr
|
| 138 |
+
simpa only [regularHeat_pos R ht] using semigroup_eq_regularHeat_range_square K hadd hc hnorm R hRp hRn hR f ht.le
|
| 139 |
+
have hker (f : F) (hf : R f=0) : D f=0 := by
|
| 140 |
+
have hK : K t f=0 := semigroupLaplace_kernel K hadd hc hnorm f ((hR f).trans hf) ht.le
|
| 141 |
+
have hH : H f=0 := by
|
| 142 |
+
dsimp only [H]
|
| 143 |
+
rw [cfc_eigen_apply R hRp.isSelfAdjoint (heatScalar t) (heatScalar_smooth t).continuous
|
| 144 |
+
0 ((heatScalar_smooth t).differentiable (by norm_num)).differentiableAt f (by simpa using hf),
|
| 145 |
+
heatScalar_zero,zero_smul]
|
| 146 |
+
simp only [D,sub_apply,hK,hH,sub_self]
|
| 147 |
+
ext f
|
| 148 |
+
suffices hDf : D f=0 by exact sub_eq_zero.mp hDf
|
| 149 |
+
have hRD : R (D f)=0 := by
|
| 150 |
+
apply (inner_self_eq_zero (𝕜 := ℂ)).mp
|
| 151 |
+
calc
|
| 152 |
+
inner ℂ (R (D f)) (R (D f))=inner ℂ (D f) (R (R (D f))) := hRp.inner_left_eq_inner_right _ _
|
| 153 |
+
_ = inner ℂ f (D (R (R (D f)))) := hDs _ _
|
| 154 |
+
_ = 0 := by rw [hDRR,inner_zero_right]
|
| 155 |
+
apply (inner_self_eq_zero (𝕜 := ℂ)).mp
|
| 156 |
+
rw [hDs,hker (D f) hRD,inner_zero_right]
|
| 157 |
+
|
| 158 |
+
end
|
| 159 |
+
end HardSphere
|
| 160 |
+
|
| 161 |
+
end
|
| 162 |
+
end
|
| 163 |
+
end
|
| 164 |
+
end
|
| 165 |
+
end
|
| 166 |
+
end
|
| 167 |
+
|
| 168 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/SemigroupLaplaceDerivWithin.lean
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Comparison.LaplaceIntegrand
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open MeasureTheory Filter Set
|
| 8 |
+
open scoped ENNReal Topology BigOperators
|
| 9 |
+
open scoped BigOperators ComplexConjugate
|
| 10 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 11 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 12 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 13 |
+
open scoped ENNReal ComplexConjugate
|
| 14 |
+
open ProbabilityTheory
|
| 15 |
+
namespace HardSphere
|
| 16 |
+
open MeasureTheory Set Filter
|
| 17 |
+
open scoped Topology
|
| 18 |
+
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [CompleteSpace E]
|
| 19 |
+
|
| 20 |
+
lemma semigroupLaplace_hasDerivWithinAt (K : ℝ → E→L[ℂ] E)
|
| 21 |
+
(hadd : ∀ s t, 0 ≤ s → 0 ≤ t → K (s+t)=(K s).comp (K t))
|
| 22 |
+
(hc : ∀ f, Continuous (fun t : ℝ ↦ K (max 0 t) f))
|
| 23 |
+
(hnorm : ∀ t, 0 ≤ t → ∀ f, ‖K t f‖≤‖f‖) (f : E) {t : ℝ} (ht : 0 ≤ t) :
|
| 24 |
+
HasDerivWithinAt (fun s : ℝ ↦ K s (semigroupLaplace K f))
|
| 25 |
+
(K t (semigroupLaplace K f)-K t f) (Ici 0) t := by
|
| 26 |
+
have hiC : Continuous (laplaceIntegrand K f) :=
|
| 27 |
+
(Real.continuous_exp.comp continuous_neg).smul (hc f)
|
| 28 |
+
have hd := intervalIntegral.integral_hasDerivAt_right
|
| 29 |
+
(f := laplaceIntegrand K f) (a := 0) (b := t)
|
| 30 |
+
(hiC.intervalIntegrable 0 t) (hiC.stronglyMeasurableAtFilter volume (𝓝 t)) hiC.continuousAt
|
| 31 |
+
have hder := (Real.hasDerivAt_exp t).smul
|
| 32 |
+
((hasDerivAt_const t (semigroupLaplace K f)).sub hd)
|
| 33 |
+
have heq : EqOn (fun s : ℝ ↦ Real.exp s •
|
| 34 |
+
(semigroupLaplace K f-∫ z in (0:ℝ)..s,laplaceIntegrand K f z))
|
| 35 |
+
(fun s ↦ K s (semigroupLaplace K f)) (Ici 0) :=
|
| 36 |
+
fun s hs ↦ (semigroupLaplace_shift K hadd hc hnorm f hs).symm
|
| 37 |
+
have hv : Real.exp t • (0-laplaceIntegrand K f t)+
|
| 38 |
+
Real.exp t • (semigroupLaplace K f-∫ z in (0:ℝ)..t,laplaceIntegrand K f z)=
|
| 39 |
+
K t (semigroupLaplace K f)-K t f := by
|
| 40 |
+
rw [← semigroupLaplace_shift K hadd hc hnorm f ht,zero_sub,smul_neg,
|
| 41 |
+
laplaceIntegrand,max_eq_right ht,smul_smul,← Real.exp_add,add_neg_cancel,
|
| 42 |
+
Real.exp_zero,one_smul]
|
| 43 |
+
abel
|
| 44 |
+
change HasDerivAt (fun s : ℝ ↦ Real.exp s •
|
| 45 |
+
(semigroupLaplace K f-∫ z in (0:ℝ)..s,laplaceIntegrand K f z))
|
| 46 |
+
(Real.exp t • (0-laplaceIntegrand K f t)+
|
| 47 |
+
Real.exp t • (semigroupLaplace K f-∫ z in (0:ℝ)..t,laplaceIntegrand K f z)) t at hder
|
| 48 |
+
rw [hv] at hder
|
| 49 |
+
exact hder.hasDerivWithinAt.congr (fun s hs ↦ (heq hs).symm) (heq ht).symm
|
| 50 |
+
|
| 51 |
+
lemma semigroupLaplace_eigenvector (K : ℝ → E→L[ℂ] E)
|
| 52 |
+
(hadd : ∀ s t, 0 ≤ s → 0 ≤ t → K (s+t)=(K s).comp (K t))
|
| 53 |
+
(hc : ∀ f, Continuous (fun t : ℝ ↦ K (max 0 t) f))
|
| 54 |
+
(hnorm : ∀ t, 0 ≤ t → ∀ f, ‖K t f‖≤‖f‖) (f : E)
|
| 55 |
+
{r : ℝ} (hr : 0<r) (he : semigroupLaplace K f=r • f)
|
| 56 |
+
{t : ℝ} (ht : 0 ≤ t) : K t f=Real.exp ((1-r⁻¹)*t) • f := by
|
| 57 |
+
have hz : K 0 f=f := by
|
| 58 |
+
have hh := semigroupLaplace_project K hadd hc hnorm f
|
| 59 |
+
rw [he,(K 0).map_smul_of_tower] at hh
|
| 60 |
+
exact (smul_right_injective E (ne_of_gt hr)) hh
|
| 61 |
+
have hd (s : ℝ) (hs : 0 ≤ s) : HasDerivWithinAt (fun x : ℝ ↦ K x f)
|
| 62 |
+
((1-r⁻¹) • K s f) (Ici 0) s := by
|
| 63 |
+
have h := (semigroupLaplace_hasDerivWithinAt K hadd hc hnorm f hs).const_smul r⁻¹
|
| 64 |
+
simp only [he,ContinuousLinearMap.map_smul_of_tower] at h
|
| 65 |
+
change HasDerivWithinAt (fun x : ℝ ↦ r⁻¹ • (r • K x f))
|
| 66 |
+
(r⁻¹ • (r • K s f-K s f)) (Ici 0) s at h
|
| 67 |
+
simp only [smul_sub,smul_smul,inv_mul_cancel₀ (ne_of_gt hr),one_smul] at h
|
| 68 |
+
convert h using 1
|
| 69 |
+
module
|
| 70 |
+
let F : ℝ → E := fun x ↦ Real.exp ((r⁻¹-1)*x) • K x f
|
| 71 |
+
have hFcont : ContinuousOn F (Ici 0) := by
|
| 72 |
+
have h : ContinuousOn (fun x : ℝ ↦ Real.exp ((r⁻¹-1)*x) • K (max 0 x) f) (Ici 0) :=
|
| 73 |
+
((Real.continuous_exp.comp (continuous_const.mul continuous_id)).smul (hc f)).continuousOn
|
| 74 |
+
exact h.congr (fun s hs ↦ by simp only [F,max_eq_right (show 0 ≤ s from hs)])
|
| 75 |
+
have hdF (s : ℝ) (hs : 0 ≤ s) : HasDerivWithinAt F 0 (Ici 0) s := by
|
| 76 |
+
have h := (((hasDerivAt_id s).const_mul (r⁻¹-1)).exp.hasDerivWithinAt).smul (hd s hs)
|
| 77 |
+
convert h using 1
|
| 78 |
+
· rfl
|
| 79 |
+
· module
|
| 80 |
+
have hconst := constant_of_has_deriv_right_zero
|
| 81 |
+
(hFcont.mono (Icc_subset_Ici_self : Icc (0:ℝ) t ⊆ Ici 0))
|
| 82 |
+
(fun s hs ↦ (hdF s hs.1).mono (Ici_subset_Ici.mpr hs.1))
|
| 83 |
+
have heF : Real.exp ((r⁻¹-1)*t) • K t f=f := by
|
| 84 |
+
simpa only [F,mul_zero,Real.exp_zero,one_smul,hz] using hconst t ⟨ht,le_refl _⟩
|
| 85 |
+
calc
|
| 86 |
+
K t f=Real.exp ((1-r⁻¹)*t) • (Real.exp ((r⁻¹-1)*t) • K t f) := by
|
| 87 |
+
rw [smul_smul,← Real.exp_add,show (1-r⁻¹)*t+(r⁻¹-1)*t=0 by ring,
|
| 88 |
+
Real.exp_zero,one_smul]
|
| 89 |
+
_ = _ := by rw [heF]
|
| 90 |
+
|
| 91 |
+
end HardSphere
|
| 92 |
+
|
| 93 |
+
end
|
| 94 |
+
|
| 95 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/Stationary.lean
ADDED
|
@@ -0,0 +1,456 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Comparison.DensityForcesTwoParticles
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.GroundPathWeight
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace HardSphere
|
| 8 |
+
open MeasureTheory Wiener Set Filter
|
| 9 |
+
open scoped ComplexConjugate ENNReal Topology BigOperators
|
| 10 |
+
noncomputable section
|
| 11 |
+
variable {N : ℕ} {L : Length}
|
| 12 |
+
|
| 13 |
+
def weightedKilledTransition (N : ℕ) (L : Length) (a t : ℝ)
|
| 14 |
+
(h : ConfigurationPath N L → ℂ) (hh : MemLp h ∞ (freePathLaw N L t)) :
|
| 15 |
+
ScalarL2 N L →L[ℂ] ScalarL2 N L :=
|
| 16 |
+
(endpointPull N L t 0).toContinuousLinearMap.adjoint ∘L
|
| 17 |
+
(L2Multiplier.clm h hh ∘L (avoidanceMultiplier N L a t ∘L
|
| 18 |
+
(endpointPull N L t 1).toContinuousLinearMap))
|
| 19 |
+
|
| 20 |
+
lemma weightedKilledTransition_pairing (N : ℕ) (L : Length) (a t : ℝ)
|
| 21 |
+
(h : ConfigurationPath N L → ℂ) (hh : MemLp h ∞ (freePathLaw N L t))
|
| 22 |
+
(f g : ScalarL2 N L) :
|
| 23 |
+
inner ℂ f (weightedKilledTransition N L a t h hh g) =
|
| 24 |
+
∫ ω, conj (f (ω 0)) * (h ω*g (ω 1)) ∂killedPathLaw N L a t := by
|
| 25 |
+
rw [weightedKilledTransition,ContinuousLinearMap.comp_apply,
|
| 26 |
+
ContinuousLinearMap.adjoint_inner_right,L2.inner_def]
|
| 27 |
+
change (∫ ω, inner ℂ (endpointPull N L t 0 f ω)
|
| 28 |
+
(L2Multiplier.clm h hh (avoidanceMultiplier N L a t (endpointPull N L t 1 g)) ω)
|
| 29 |
+
∂freePathLaw N L t)=_
|
| 30 |
+
rw [killedPathLaw,← integral_indicator (staysAllowed_open N L a).measurableSet]
|
| 31 |
+
apply integral_congr_ae
|
| 32 |
+
filter_upwards [endpointPull_ae N L t 0 f,endpointPull_ae N L t 1 g,
|
| 33 |
+
L2Multiplier.coe_clm h hh (avoidanceMultiplier N L a t (endpointPull N L t 1 g)),
|
| 34 |
+
avoidanceMultiplier_ae N L a t (endpointPull N L t 1 g)] with ω hf hg hh' ha
|
| 35 |
+
rw [hh',ha,hf]
|
| 36 |
+
by_cases hω : ω∈staysAllowed N L a
|
| 37 |
+
· simp only [Set.indicator_of_mem hω,hg,RCLike.inner_apply,mul_comm]
|
| 38 |
+
· simp only [Set.indicator_of_notMem hω,mul_zero,inner_zero_right]
|
| 39 |
+
|
| 40 |
+
def weightedKilledAverage (N : ℕ) (L : Length) (a t : ℝ)
|
| 41 |
+
(h : ConfigurationPath N L → ℂ) (g : Configuration N L → ℂ)
|
| 42 |
+
(X : Configuration N L) : ℂ :=
|
| 43 |
+
∫ w, h (freeTrajectory N L t w X)*
|
| 44 |
+
killedObservable N L a g (freeTrajectory N L t w X) ∂coordinateWiener N
|
| 45 |
+
|
| 46 |
+
lemma weightedKilledAverage_measurable (N : ℕ) (L : Length) (a t : ℝ)
|
| 47 |
+
{h : ConfigurationPath N L → ℂ} (hh : Measurable h)
|
| 48 |
+
{g : Configuration N L → ℂ} (hg : Measurable g) :
|
| 49 |
+
Measurable (weightedKilledAverage N L a t h g) := by
|
| 50 |
+
exact (((hh.mul (killedObservable_measurable N L a hg)).comp
|
| 51 |
+
(freeTrajectory_continuous N L t).measurable).stronglyMeasurable.integral_prod_left').measurable
|
| 52 |
+
|
| 53 |
+
lemma weightedKilledAverage_bound (N : ℕ) (L : Length) (a t : ℝ)
|
| 54 |
+
{h : ConfigurationPath N L → ℂ} {B : ℝ} (hB : 0≤B) (hhB : ∀ ω, ‖h ω‖≤B)
|
| 55 |
+
{g : Configuration N L → ℂ} {C : ℝ} (hC : 0≤C) (hgC : ∀ X, ‖g X‖≤C)
|
| 56 |
+
(X : Configuration N L) : ‖weightedKilledAverage N L a t h g X‖≤B*C := by
|
| 57 |
+
have hb (w : CoordinatePaths N) : ‖h (freeTrajectory N L t w X)*
|
| 58 |
+
killedObservable N L a g (freeTrajectory N L t w X)‖≤B*C := by
|
| 59 |
+
rw [norm_mul]
|
| 60 |
+
exact mul_le_mul (hhB _) (killedObservable_bound N L a hC hgC _) (norm_nonneg _) hB
|
| 61 |
+
simpa only [weightedKilledAverage,measureReal_def,measure_univ,ENNReal.toReal_one,mul_one] using
|
| 62 |
+
norm_integral_le_of_norm_le_const (μ := coordinateWiener N) (Eventually.of_forall hb)
|
| 63 |
+
|
| 64 |
+
lemma weightedKilledAverage_memLp (N : ℕ) (L : Length) (a t : ℝ)
|
| 65 |
+
{h : ConfigurationPath N L → ℂ} (hh : Measurable h)
|
| 66 |
+
{B : ℝ} (hB : 0≤B) (hhB : ∀ ω, ‖h ω‖≤B)
|
| 67 |
+
{g : Configuration N L → ℂ} (hg : Measurable g)
|
| 68 |
+
{C : ℝ} (hC : 0≤C) (hgC : ∀ X, ‖g X‖≤C) :
|
| 69 |
+
MemLp (weightedKilledAverage N L a t h g) 2 (volume : Measure (Configuration N L)) :=
|
| 70 |
+
MemLp.of_bound (weightedKilledAverage_measurable N L a t hh hg).aestronglyMeasurable (B*C)
|
| 71 |
+
(Eventually.of_forall (weightedKilledAverage_bound N L a t hB hhB hC hgC))
|
| 72 |
+
|
| 73 |
+
lemma integrable_weightedAverage_pairing (N : ℕ) (L : Length) (a t : ℝ)
|
| 74 |
+
(f : C(Configuration N L,ℂ))
|
| 75 |
+
{h : ConfigurationPath N L → ℂ} (hh : Measurable h)
|
| 76 |
+
{B : ℝ} (hB : 0≤B) (hhB : ∀ ω, ‖h ω‖≤B)
|
| 77 |
+
{g : Configuration N L → ℂ} (hg : Measurable g)
|
| 78 |
+
{C : ℝ} (hC : 0≤C) (hgC : ∀ X, ‖g X‖≤C) :
|
| 79 |
+
Integrable (fun p : CoordinatePaths N × Configuration N L ↦
|
| 80 |
+
conj (f p.2) * (h (freeTrajectory N L t p.1 p.2)*
|
| 81 |
+
killedObservable N L a g (freeTrajectory N L t p.1 p.2)))
|
| 82 |
+
((coordinateWiener N).prod volume) := by
|
| 83 |
+
refine (integrable_const (‖f‖*(B*C))).mono' ?_ ?_
|
| 84 |
+
· exact (((f.continuous.comp continuous_snd).star.measurable).mul
|
| 85 |
+
((hh.mul (killedObservable_measurable N L a hg)).comp
|
| 86 |
+
(freeTrajectory_continuous N L t).measurable)).aestronglyMeasurable
|
| 87 |
+
· exact Eventually.of_forall fun p ↦ by
|
| 88 |
+
simp only [norm_mul,RCLike.norm_conj]
|
| 89 |
+
exact mul_le_mul (f.norm_coe_le_norm p.2)
|
| 90 |
+
(mul_le_mul (hhB _) (killedObservable_bound N L a hC hgC _) (norm_nonneg _) hB)
|
| 91 |
+
(mul_nonneg (norm_nonneg _) (norm_nonneg _)) (norm_nonneg _)
|
| 92 |
+
|
| 93 |
+
lemma weightedKilledTransition_bounded_pairing (N : ℕ) (L : Length) (a t : ℝ)
|
| 94 |
+
(f : C(Configuration N L,ℂ))
|
| 95 |
+
{h : ConfigurationPath N L → ℂ} (hh : Measurable h)
|
| 96 |
+
(hhLp : MemLp h ∞ (freePathLaw N L t))
|
| 97 |
+
{B : ℝ} (hB : 0≤B) (hhB : ∀ ω, ‖h ω‖≤B)
|
| 98 |
+
{g : Configuration N L → ℂ} (hg : Measurable g)
|
| 99 |
+
(hgLp : MemLp g 2 (volume : Measure (Configuration N L)))
|
| 100 |
+
{C : ℝ} (hC : 0≤C) (hgC : ∀ X, ‖g X‖≤C) :
|
| 101 |
+
inner ℂ (ContinuousMap.toLp 2 volume ℂ f)
|
| 102 |
+
(weightedKilledTransition N L a t h hhLp (hgLp.toLp g)) =
|
| 103 |
+
∫ X, conj (f X) * weightedKilledAverage N L a t h g X := by
|
| 104 |
+
rw [weightedKilledTransition_pairing,killedPathLaw,
|
| 105 |
+
← integral_indicator (staysAllowed_open N L a).measurableSet]
|
| 106 |
+
have he : (staysAllowed N L a).indicator (fun ω : ConfigurationPath N L ↦
|
| 107 |
+
conj (ContinuousMap.toLp 2 volume ℂ f (ω 0)) * (h ω*hgLp.toLp g (ω 1))) =ᵐ[freePathLaw N L t]
|
| 108 |
+
(fun ω ↦ conj (f (ω 0)) * (h ω*killedObservable N L a g ω)) := by
|
| 109 |
+
filter_upwards [(freePathLaw_marginal N L t 0).quasiMeasurePreserving.ae
|
| 110 |
+
(ContinuousMap.coeFn_toLp (𝕜 := ℂ) (p := 2) volume f),
|
| 111 |
+
(freePathLaw_marginal N L t 1).quasiMeasurePreserving.ae hgLp.coeFn_toLp] with ω hf hg'
|
| 112 |
+
by_cases ha : ω∈staysAllowed N L a
|
| 113 |
+
· simp only [Set.indicator_of_mem ha,killedObservable,hf,hg']
|
| 114 |
+
· simp only [Set.indicator_of_notMem ha,killedObservable,mul_zero]
|
| 115 |
+
rw [integral_congr_ae he,freePathLaw]
|
| 116 |
+
have hm : Measurable (fun ω : ConfigurationPath N L ↦
|
| 117 |
+
conj (f (ω 0)) * (h ω*killedObservable N L a g ω)) := by
|
| 118 |
+
exact (f.continuous.comp (continuous_eval_const (0:Time))).star.measurable.mul
|
| 119 |
+
(hh.mul (killedObservable_measurable N L a hg))
|
| 120 |
+
rw [integral_map (freeTrajectory_continuous N L t).measurable.aemeasurable hm.aestronglyMeasurable]
|
| 121 |
+
have hzero : (fun p : CoordinatePaths N × Configuration N L ↦
|
| 122 |
+
conj (f (freeTrajectory N L t p.1 p.2 0)) *
|
| 123 |
+
(h (freeTrajectory N L t p.1 p.2)*killedObservable N L a g (freeTrajectory N L t p.1 p.2))) =ᵐ[
|
| 124 |
+
(coordinateWiener N).prod volume]
|
| 125 |
+
(fun p ↦ conj (f p.2) * (h (freeTrajectory N L t p.1 p.2)*
|
| 126 |
+
killedObservable N L a g (freeTrajectory N L t p.1 p.2))) := by
|
| 127 |
+
filter_upwards [Measure.quasiMeasurePreserving_fst.ae (freeTrajectory_initial_ae N L t)] with p hp
|
| 128 |
+
rw [hp]
|
| 129 |
+
rw [integral_congr_ae hzero,
|
| 130 |
+
integral_prod_symm _ (integrable_weightedAverage_pairing N L a t f hh hB hhB hg hC hgC)]
|
| 131 |
+
simp_rw [integral_const_mul]
|
| 132 |
+
rfl
|
| 133 |
+
|
| 134 |
+
lemma weightedKilledTransition_bounded (N : ℕ) (L : Length) (a t : ℝ)
|
| 135 |
+
{h : ConfigurationPath N L → ℂ} (hh : Measurable h)
|
| 136 |
+
(hhLp : MemLp h ∞ (freePathLaw N L t))
|
| 137 |
+
{B : ℝ} (hB : 0≤B) (hhB : ∀ ω, ‖h ω‖≤B)
|
| 138 |
+
{g : Configuration N L → ℂ} (hg : Measurable g)
|
| 139 |
+
(hgLp : MemLp g 2 (volume : Measure (Configuration N L)))
|
| 140 |
+
{C : ℝ} (hC : 0≤C) (hgC : ∀ X, ‖g X‖≤C) :
|
| 141 |
+
weightedKilledTransition N L a t h hhLp (hgLp.toLp g) =
|
| 142 |
+
(weightedKilledAverage_memLp N L a t hh hB hhB hg hC hgC).toLp
|
| 143 |
+
(weightedKilledAverage N L a t h g) := by
|
| 144 |
+
apply ext_inner_left ℂ
|
| 145 |
+
intro f
|
| 146 |
+
have hd := ContinuousMap.toLp_denseRange ℂ (volume : Measure (Configuration N L)) ℂ
|
| 147 |
+
(show (2:ℝ≥0∞) ≠ ∞ by norm_num)
|
| 148 |
+
have hc : IsClosed {f : ScalarL2 N L |
|
| 149 |
+
inner ℂ f (weightedKilledTransition N L a t h hhLp (hgLp.toLp g)) =
|
| 150 |
+
inner ℂ f ((weightedKilledAverage_memLp N L a t hh hB hhB hg hC hgC).toLp
|
| 151 |
+
(weightedKilledAverage N L a t h g))} :=
|
| 152 |
+
isClosed_eq (continuous_id.inner continuous_const) (continuous_id.inner continuous_const)
|
| 153 |
+
apply hc.closure_subset_iff.mpr ?_ (hd f)
|
| 154 |
+
rintro _ ⟨f,rfl⟩
|
| 155 |
+
change inner ℂ _ _ = inner ℂ _ _
|
| 156 |
+
rw [weightedKilledTransition_bounded_pairing N L a t f hh hhLp hB hhB hg hgLp hC hgC,L2.inner_def]
|
| 157 |
+
apply integral_congr_ae
|
| 158 |
+
filter_upwards [ContinuousMap.coeFn_toLp (𝕜 := ℂ) (p := 2) volume f,
|
| 159 |
+
(weightedKilledAverage_memLp N L a t hh hB hhB hg hC hgC).coeFn_toLp] with X hf hX
|
| 160 |
+
rw [RCLike.inner_apply,hf,hX,mul_comm]
|
| 161 |
+
|
| 162 |
+
end
|
| 163 |
+
|
| 164 |
+
noncomputable section
|
| 165 |
+
|
| 166 |
+
lemma weightedKilledAverage_prefix (N : ℕ) (L : Length) (a s t : ℝ) (hs : 0<s) (ht : 0<t)
|
| 167 |
+
{h : ConfigurationPath N L → ℂ} (hh : Measurable h)
|
| 168 |
+
{B : ℝ} (hB : 0≤B) (hhB : ∀ ω, ‖h ω‖≤B)
|
| 169 |
+
{g : Configuration N L → ℂ} (hg : Measurable g) {C : ℝ}
|
| 170 |
+
(hC : 0≤C) (hgC : ∀ X, ‖g X‖≤C) (X : Configuration N L) :
|
| 171 |
+
weightedKilledAverage N L a (s+t) (h ∘ configurationPrefix N L (splitTime s t hs ht)) g X =
|
| 172 |
+
weightedKilledAverage N L a s h (killedAverage N L a t g) X := by
|
| 173 |
+
let F : CoordinatePaths N × CoordinatePaths N → ℂ := fun p ↦
|
| 174 |
+
h (freeTrajectory N L s p.1 X) * splitObservable N L a g
|
| 175 |
+
(freeTrajectory N L s p.1 X,freeTrajectory N L t p.2 (freeTrajectory N L s p.1 X 1))
|
| 176 |
+
have hm : Measurable F :=
|
| 177 |
+
(hh.comp ((freeTrajectory_continuous N L s).comp (continuous_fst.prodMk continuous_const)).measurable).mul
|
| 178 |
+
((splitObservable_measurable N L a hg).comp (split_fixedTrajectory_measurable N L s t X))
|
| 179 |
+
have hi : Integrable F ((coordinateWiener N).prod (coordinateWiener N)) := by
|
| 180 |
+
refine (integrable_const (B*C)).mono' hm.aestronglyMeasurable ?_
|
| 181 |
+
exact Eventually.of_forall fun p ↦ by
|
| 182 |
+
rw [norm_mul]
|
| 183 |
+
exact mul_le_mul (hhB _) (splitObservable_bound N L a hC hgC _) (norm_nonneg _) hB
|
| 184 |
+
have hsplit := coordinateSplit_preserving N (splitTime s t hs ht)
|
| 185 |
+
(splitTime_pos s t hs ht) (splitTime_lt_one s t hs ht)
|
| 186 |
+
calc
|
| 187 |
+
_ = ∫ w, F (fun p ↦ normalizedPrefix (splitTime s t hs ht) (w p),
|
| 188 |
+
fun p ↦ normalizedSuffix (splitTime s t hs ht) (w p)) ∂coordinateWiener N := by
|
| 189 |
+
apply integral_congr_ae
|
| 190 |
+
exact Eventually.of_forall fun w ↦ by
|
| 191 |
+
dsimp only [weightedKilledAverage,Function.comp_def,F]
|
| 192 |
+
rw [killedObservable_split N L a g (splitTime s t hs ht)
|
| 193 |
+
(splitTime_pos s t hs ht) (splitTime_lt_one s t hs ht),split_fixedTrajectory,
|
| 194 |
+
prefix_freeTrajectory]
|
| 195 |
+
_ = ∫ p, F p ∂(coordinateWiener N).prod (coordinateWiener N) := by
|
| 196 |
+
rw [← hsplit.map_eq,integral_map hsplit.measurable.aemeasurable hm.aestronglyMeasurable]
|
| 197 |
+
_ = ∫ w, ∫ w', F (w,w') ∂coordinateWiener N ∂coordinateWiener N := integral_prod _ hi
|
| 198 |
+
_ = _ := by
|
| 199 |
+
apply integral_congr_ae
|
| 200 |
+
exact Eventually.of_forall fun w ↦ by
|
| 201 |
+
change (∫ w', h (freeTrajectory N L s w X)*splitObservable N L a g
|
| 202 |
+
(freeTrajectory N L s w X,freeTrajectory N L t w' (freeTrajectory N L s w X 1))
|
| 203 |
+
∂coordinateWiener N) = h (freeTrajectory N L s w X)*
|
| 204 |
+
killedObservable N L a (killedAverage N L a t g) (freeTrajectory N L s w X)
|
| 205 |
+
rw [integral_const_mul]
|
| 206 |
+
congr 1
|
| 207 |
+
by_cases hω : freeTrajectory N L s w X∈staysAllowed N L a
|
| 208 |
+
· simp only [splitObservable,ite_eq_left hω,killedObservable,Set.indicator_of_mem hω]
|
| 209 |
+
rfl
|
| 210 |
+
· simp only [splitObservable,ite_eq_right hω,killedObservable,Set.indicator_of_notMem hω,integral_zero]
|
| 211 |
+
|
| 212 |
+
lemma weightedKilledTransition_prefix (N : ℕ) (L : Length) (a s t : ℝ) (hs : 0<s) (ht : 0<t)
|
| 213 |
+
{h : ConfigurationPath N L → ℂ} (hh : Measurable h)
|
| 214 |
+
(hhLp : MemLp h ∞ (freePathLaw N L s))
|
| 215 |
+
(hpLp : MemLp (h ∘ configurationPrefix N L (splitTime s t hs ht)) ∞ (freePathLaw N L (s+t)))
|
| 216 |
+
{B : ℝ} (hB : 0≤B) (hhB : ∀ ω, ‖h ω‖≤B) :
|
| 217 |
+
weightedKilledTransition N L a (s+t) (h ∘ configurationPrefix N L (splitTime s t hs ht)) hpLp =
|
| 218 |
+
weightedKilledTransition N L a s h hhLp ∘L killedTransition N L a t := by
|
| 219 |
+
have hd := ContinuousMap.toLp_denseRange ℂ (volume : Measure (Configuration N L)) ℂ
|
| 220 |
+
(show (2:ℝ≥0∞) ≠ ∞ by norm_num)
|
| 221 |
+
apply ContinuousLinearMap.ext
|
| 222 |
+
intro g
|
| 223 |
+
change weightedKilledTransition N L a (s+t) (h ∘ configurationPrefix N L (splitTime s t hs ht)) hpLp g =
|
| 224 |
+
weightedKilledTransition N L a s h hhLp (killedTransition N L a t g)
|
| 225 |
+
have hc : IsClosed {g : ScalarL2 N L |
|
| 226 |
+
weightedKilledTransition N L a (s+t) (h ∘ configurationPrefix N L (splitTime s t hs ht)) hpLp g =
|
| 227 |
+
weightedKilledTransition N L a s h hhLp (killedTransition N L a t g)} :=
|
| 228 |
+
isClosed_eq (ContinuousLinearMap.continuous _) ((ContinuousLinearMap.continuous _).comp
|
| 229 |
+
(ContinuousLinearMap.continuous _))
|
| 230 |
+
apply hc.closure_subset_iff.mpr ?_ (hd g)
|
| 231 |
+
rintro _ ⟨g,rfl⟩
|
| 232 |
+
change weightedKilledTransition N L a (s+t) (h ∘ configurationPrefix N L (splitTime s t hs ht)) hpLp
|
| 233 |
+
(ContinuousMap.toLp 2 volume ℂ g) =
|
| 234 |
+
weightedKilledTransition N L a s h hhLp (killedTransition N L a t (ContinuousMap.toLp 2 volume ℂ g))
|
| 235 |
+
have hgLp : MemLp (fun X ↦ g X) 2 (volume : Measure (Configuration N L)) :=
|
| 236 |
+
MemLp.of_bound g.continuous.measurable.aestronglyMeasurable ‖g‖ (Eventually.of_forall g.norm_coe_le_norm)
|
| 237 |
+
have hge : ContinuousMap.toLp 2 volume ℂ g = hgLp.toLp g := by
|
| 238 |
+
apply Lp.ext
|
| 239 |
+
exact (ContinuousMap.coeFn_toLp (𝕜 := ℂ) (p := 2) volume g).trans hgLp.coeFn_toLp.symm
|
| 240 |
+
rw [hge,weightedKilledTransition_bounded N L a (s+t)
|
| 241 |
+
(hh.comp (configurationPrefix_continuous N L _).measurable) hpLp hB
|
| 242 |
+
(fun ω ↦ hhB _) g.continuous.measurable hgLp (norm_nonneg _) g.norm_coe_le_norm,
|
| 243 |
+
killedTransition_bounded N L a t g.continuous.measurable hgLp (norm_nonneg _) g.norm_coe_le_norm,
|
| 244 |
+
weightedKilledTransition_bounded N L a s hh hhLp hB hhB
|
| 245 |
+
(killedAverage_measurable N L a t g.continuous.measurable)
|
| 246 |
+
(killedAverage_memLp N L a t g.continuous.measurable (norm_nonneg _) g.norm_coe_le_norm)
|
| 247 |
+
(norm_nonneg g) (killedAverage_bound N L a t (norm_nonneg _) g.norm_coe_le_norm)]
|
| 248 |
+
apply MemLp.toLp_congr
|
| 249 |
+
exact Eventually.of_forall (weightedKilledAverage_prefix N L a s t hs ht hh hB hhB
|
| 250 |
+
g.continuous.measurable (norm_nonneg _) g.norm_coe_le_norm)
|
| 251 |
+
|
| 252 |
+
variable {N : ℕ} {L : Length} {a : ℝ}
|
| 253 |
+
|
| 254 |
+
lemma weightedKilledTransition_indicator_pairing (t : ℝ) (f g : ScalarL2 N L)
|
| 255 |
+
{S : Set (ConfigurationPath N L)} (hS : MeasurableSet S) :
|
| 256 |
+
inner ℂ (modulusScalar f) (weightedKilledTransition N L a t (S.indicator (fun _ ↦ (1:ℂ)))
|
| 257 |
+
((memLp_top_const (1:ℂ)).indicator hS) (modulusScalar g)) =
|
| 258 |
+
((∫ ω : ConfigurationPath N L in S, ‖f (ω 0)‖*‖g (ω 1)‖ ∂killedPathLaw N L a t):ℝ) := by
|
| 259 |
+
rw [weightedKilledTransition_pairing,← integral_complex_ofReal,← integral_indicator hS]
|
| 260 |
+
apply integral_congr_ae
|
| 261 |
+
filter_upwards [((freePathLaw_marginal N L t 0).quasiMeasurePreserving.ae_eq_comp
|
| 262 |
+
(coe_modulusScalar f)).filter_mono (ae_mono Measure.restrict_le_self),
|
| 263 |
+
((freePathLaw_marginal N L t 1).quasiMeasurePreserving.ae_eq_comp
|
| 264 |
+
(coe_modulusScalar g)).filter_mono (ae_mono Measure.restrict_le_self)] with ω hf hg
|
| 265 |
+
dsimp only [Function.comp_def] at hf hg
|
| 266 |
+
by_cases hω : ω∈S
|
| 267 |
+
· simp only [Set.indicator_of_mem hω,hf,hg,Complex.conj_ofReal,one_mul,Complex.ofReal_mul]
|
| 268 |
+
· simp only [Set.indicator_of_notMem hω,zero_mul,mul_zero]
|
| 269 |
+
|
| 270 |
+
lemma IsGroundVector.prefix_norm_setIntegral {u : Jet N L} (hu : IsGroundVector N L a u)
|
| 271 |
+
(s t : ℝ) (hs : 0<s) (ht : 0<t)
|
| 272 |
+
{S : Set (ConfigurationPath N L)} (hS : MeasurableSet S) :
|
| 273 |
+
(∫ ω : ConfigurationPath N L in (configurationPrefix N L (splitTime s t hs ht)) ⁻¹' S,
|
| 274 |
+
‖u.1 (ω 0)‖*‖u.1 (ω 1)‖ ∂killedPathLaw N L a (s+t)) =
|
| 275 |
+
Real.exp (-t*energy u)*(∫ ω : ConfigurationPath N L in S,
|
| 276 |
+
‖u.1 (ω 0)‖*‖u.1 (ω 1)‖ ∂killedPathLaw N L a s) := by
|
| 277 |
+
let h : ConfigurationPath N L → ℂ := S.indicator (fun _ ↦ 1)
|
| 278 |
+
have hh : Measurable h := measurable_const.indicator hS
|
| 279 |
+
have hhs : MemLp h ∞ (freePathLaw N L s) := (memLp_top_const (1:ℂ)).indicator hS
|
| 280 |
+
have hhp : MemLp (h ∘ configurationPrefix N L (splitTime s t hs ht)) ∞ (freePathLaw N L (s+t)) := by
|
| 281 |
+
exact (memLp_top_const (1:ℂ)).indicator (hS.preimage (configurationPrefix_continuous N L _).measurable)
|
| 282 |
+
have hb (ω : ConfigurationPath N L) : ‖h ω‖≤1 := by
|
| 283 |
+
by_cases hω : ω∈S <;> simp [h,hω]
|
| 284 |
+
have heq : inner ℂ (modulusScalar u.1)
|
| 285 |
+
(weightedKilledTransition N L a (s+t) (h ∘ configurationPrefix N L (splitTime s t hs ht)) hhp
|
| 286 |
+
(modulusScalar u.1)) =
|
| 287 |
+
(Real.exp (-t*energy u):ℂ)*inner ℂ (modulusScalar u.1)
|
| 288 |
+
(weightedKilledTransition N L a s h hhs (modulusScalar u.1)) := by
|
| 289 |
+
rw [weightedKilledTransition_prefix N L a s t hs ht hh hhs hhp zero_le_one hb,
|
| 290 |
+
ContinuousLinearMap.comp_apply]
|
| 291 |
+
have he := hu.modulus.killed_eigenvector ht.le
|
| 292 |
+
change killedTransition N L a t (modulusScalar u.1)=
|
| 293 |
+
(Real.exp (-t*energy (modulusJet u)):ℂ) • modulusScalar u.1 at he
|
| 294 |
+
rw [hu.energy_modulus] at he
|
| 295 |
+
rw [he,map_smul,inner_smul_right]
|
| 296 |
+
have hp : h ∘ configurationPrefix N L (splitTime s t hs ht)=
|
| 297 |
+
((configurationPrefix N L (splitTime s t hs ht)) ⁻¹' S).indicator (fun _ ↦ (1:ℂ)) := by
|
| 298 |
+
ext ω
|
| 299 |
+
rfl
|
| 300 |
+
apply Complex.ofReal_injective
|
| 301 |
+
rw [Complex.ofReal_mul,← weightedKilledTransition_indicator_pairing (a := a) s u.1 u.1 hS,
|
| 302 |
+
← weightedKilledTransition_indicator_pairing (a := a) (s+t) u.1 u.1
|
| 303 |
+
(hS.preimage (configurationPrefix_continuous N L _).measurable)]
|
| 304 |
+
simpa only [hp] using heq
|
| 305 |
+
|
| 306 |
+
lemma IsGroundVector.groundPathLaw_prefix {u : Jet N L} (hu : IsGroundVector N L a u)
|
| 307 |
+
(s t : ℝ) (hs : 0<s) (ht : 0<t) :
|
| 308 |
+
MeasurePreserving (configurationPrefix N L (splitTime s t hs ht))
|
| 309 |
+
(groundPathLaw N L a (s+t) u) (groundPathLaw N L a s u) := by
|
| 310 |
+
refine ⟨(configurationPrefix_continuous N L _).measurable,Measure.ext fun S hS ↦ ?_⟩
|
| 311 |
+
rw [Measure.map_apply (configurationPrefix_continuous N L _).measurable hS,
|
| 312 |
+
groundPathLaw,groundPathLaw,
|
| 313 |
+
withDensity_apply _ (hS.preimage (configurationPrefix_continuous N L _).measurable),
|
| 314 |
+
withDensity_apply _ hS,
|
| 315 |
+
← ofReal_integral_eq_lintegral_ofReal (groundPathWeight_integrable u a (s+t)).integrableOn
|
| 316 |
+
(Eventually.of_forall (groundPathWeight_nonneg u (s+t))),
|
| 317 |
+
← ofReal_integral_eq_lintegral_ofReal (groundPathWeight_integrable u a s).integrableOn
|
| 318 |
+
(Eventually.of_forall (groundPathWeight_nonneg u s))]
|
| 319 |
+
congr 1
|
| 320 |
+
simp only [groundPathWeight,integral_const_mul]
|
| 321 |
+
rw [hu.prefix_norm_setIntegral s t hs ht hS,← mul_assoc,← Real.exp_add,
|
| 322 |
+
show (s+t)*energy u+ -t*energy u=s*energy u by ring]
|
| 323 |
+
|
| 324 |
+
end
|
| 325 |
+
|
| 326 |
+
noncomputable section
|
| 327 |
+
variable {N : ℕ} {L : Length} {a : ℝ}
|
| 328 |
+
|
| 329 |
+
lemma splitTime_reverse (s t : ℝ) (hs : 0<s) (ht : 0<t) :
|
| 330 |
+
splitTime t s ht hs=reverseTime (splitTime s t hs ht) := by
|
| 331 |
+
apply Subtype.ext
|
| 332 |
+
change t/(t+s)=1-s/(s+t)
|
| 333 |
+
rw [add_comm t s]
|
| 334 |
+
field_simp [ne_of_gt (add_pos hs ht)]
|
| 335 |
+
ring
|
| 336 |
+
|
| 337 |
+
lemma reverse_prefix_reverse (q : Time) (ω : ConfigurationPath N L) :
|
| 338 |
+
reverseConfigurationPath N L (configurationPrefix N L (reverseTime q)
|
| 339 |
+
(reverseConfigurationPath N L ω))=configurationSuffix N L q ω := by
|
| 340 |
+
apply ContinuousMap.ext
|
| 341 |
+
intro v
|
| 342 |
+
change ω (reverseTime (prefixTime (reverseTime q) (reverseTime v)))=ω (suffixTime q v)
|
| 343 |
+
congr 1
|
| 344 |
+
apply Subtype.ext
|
| 345 |
+
change 1-(1-(q:ℝ))*(1-(v:ℝ))=(q:ℝ)+(1-(q:ℝ))*(v:ℝ)
|
| 346 |
+
ring
|
| 347 |
+
|
| 348 |
+
lemma IsGroundVector.groundPathLaw_suffix {u : Jet N L} (hu : IsGroundVector N L a u)
|
| 349 |
+
(s t : ℝ) (hs : 0<s) (ht : 0<t) :
|
| 350 |
+
MeasurePreserving (configurationSuffix N L (splitTime s t hs ht))
|
| 351 |
+
(groundPathLaw N L a (s+t) u) (groundPathLaw N L a t u) := by
|
| 352 |
+
have hp : MeasurePreserving (configurationPrefix N L (splitTime t s ht hs))
|
| 353 |
+
(groundPathLaw N L a (s+t) u) (groundPathLaw N L a t u) := by
|
| 354 |
+
simpa only [add_comm t s] using hu.groundPathLaw_prefix t s ht hs
|
| 355 |
+
have h := (groundPathLaw_reversal u a t).comp (hp.comp (groundPathLaw_reversal u a (s+t)))
|
| 356 |
+
simpa only [Function.comp_def,splitTime_reverse s t hs ht,reverse_prefix_reverse] using h
|
| 357 |
+
|
| 358 |
+
lemma groundPathLaw_absolutelyContinuous (N : ℕ) (L : Length) (a t : ℝ) (u : Jet N L) :
|
| 359 |
+
groundPathLaw N L a t u ≪ freePathLaw N L t :=
|
| 360 |
+
(withDensity_absolutelyContinuous _ _).trans Measure.absolutelyContinuous_restrict
|
| 361 |
+
|
| 362 |
+
lemma freePathLaw_zero_eval (N : ℕ) (L : Length) (q : Time) :
|
| 363 |
+
∀ᵐ ω ∂freePathLaw N L 0, ω q=ω 0 := by
|
| 364 |
+
rw [freePathLaw]
|
| 365 |
+
apply (ae_map_iff (freeTrajectory_continuous N L 0).measurable.aemeasurable
|
| 366 |
+
(isClosed_eq (continuous_eval_const q) (continuous_eval_const (0:Time))).measurableSet).mpr
|
| 367 |
+
exact Eventually.of_forall fun p ↦ by
|
| 368 |
+
ext i j
|
| 369 |
+
simp only [freeTrajectory,ContinuousMap.coe_mk,mul_zero,Real.sqrt_zero,zero_mul]
|
| 370 |
+
|
| 371 |
+
lemma IsGroundVector.groundPathLaw_marginal {u : Jet N L} (hu : IsGroundVector N L a u)
|
| 372 |
+
(T : ℝ) (hT : 0≤T) (q : Time) :
|
| 373 |
+
MeasurePreserving (fun ω : ConfigurationPath N L ↦ ω q)
|
| 374 |
+
(groundPathLaw N L a T u) (groundPositionLaw N L u) := by
|
| 375 |
+
by_cases hzero : T=0
|
| 376 |
+
· subst T
|
| 377 |
+
refine ⟨(continuous_eval_const q).measurable,?_⟩
|
| 378 |
+
rw [Measure.map_congr ((groundPathLaw_absolutelyContinuous N L a 0 u).ae_eq
|
| 379 |
+
(freePathLaw_zero_eval N L q))]
|
| 380 |
+
exact (hu.groundPathLaw_initial le_rfl).map_eq
|
| 381 |
+
have hT' : 0<T := lt_of_le_of_ne hT (Ne.symm hzero)
|
| 382 |
+
by_cases hq0 : q=0
|
| 383 |
+
· subst q
|
| 384 |
+
exact hu.groundPathLaw_initial hT
|
| 385 |
+
by_cases hq1 : q=1
|
| 386 |
+
· subst q
|
| 387 |
+
exact hu.groundPathLaw_terminal hT
|
| 388 |
+
have hq : 0<(q:ℝ) := lt_of_le_of_ne q.property.1 (fun h ↦ hq0 (Subtype.ext h.symm))
|
| 389 |
+
have hq' : (q:ℝ)<1 := lt_of_le_of_ne q.property.2 (fun h ↦ hq1 (Subtype.ext h))
|
| 390 |
+
let s := (q:ℝ)*T
|
| 391 |
+
let t := (1-(q:ℝ))*T
|
| 392 |
+
have hs : 0<s := mul_pos hq hT'
|
| 393 |
+
have ht : 0<t := mul_pos (sub_pos.mpr hq') hT'
|
| 394 |
+
have hsum : s+t=T := by dsimp [s,t]; ring
|
| 395 |
+
have hsplit : splitTime s t hs ht=q := by
|
| 396 |
+
apply Subtype.ext
|
| 397 |
+
change s/(s+t)=(q:ℝ)
|
| 398 |
+
rw [hsum]
|
| 399 |
+
exact mul_div_cancel_right₀ _ hzero
|
| 400 |
+
have hp := (hu.groundPathLaw_terminal hs.le).comp (hu.groundPathLaw_prefix s t hs ht)
|
| 401 |
+
simpa only [Function.comp_def,configurationPrefix,ContinuousMap.comp_apply,prefixTime_one,hsplit,hsum] using hp
|
| 402 |
+
|
| 403 |
+
lemma IsGroundVector.groundPathLaw_middle {u : Jet N L} (hu : IsGroundVector N L a u)
|
| 404 |
+
(r s t : ℝ) (hr : 0<r) (hs : 0<s) (ht : 0<t) :
|
| 405 |
+
MeasurePreserving
|
| 406 |
+
(configurationSuffix N L (splitTime r s hr hs) ∘
|
| 407 |
+
configurationPrefix N L (splitTime (r+s) t (add_pos hr hs) ht))
|
| 408 |
+
(groundPathLaw N L a ((r+s)+t) u) (groundPathLaw N L a s u) :=
|
| 409 |
+
(hu.groundPathLaw_suffix r s hr hs).comp (hu.groundPathLaw_prefix (r+s) t (add_pos hr hs) ht)
|
| 410 |
+
|
| 411 |
+
end
|
| 412 |
+
end HardSphere
|
| 413 |
+
|
| 414 |
+
namespace HardSphere
|
| 415 |
+
open MeasureTheory Wiener Set Filter
|
| 416 |
+
open scoped Topology
|
| 417 |
+
noncomputable section
|
| 418 |
+
|
| 419 |
+
lemma IsGroundVector.groundPathLaw_close_event {n : ℕ} (L : Length) {r : ℝ}
|
| 420 |
+
{g : Jet n L} (hg : IsGroundVector n L r g) (T : ℝ) (hT : 0≤T) (q : Time)
|
| 421 |
+
{S : Type*} (v : S → Torus L) (A : Finset S) (s h : ℝ) :
|
| 422 |
+
groundPathLaw n L r T g {ω | ∀ a∈A, h≤((pairCloseLabels L s (v a) (ω q)).card:ℝ)} =
|
| 423 |
+
groundPositionLaw n L g {X | ∀ a∈A, h≤((pairCloseLabels L s (v a) X).card:ℝ)} := by
|
| 424 |
+
have hS : MeasurableSet {X : Configuration n L | ∀ a∈A, h≤((pairCloseLabels L s (v a) X).card:ℝ)} := by
|
| 425 |
+
simpa only [Set.ofPred_forall] using Finset.measurableSet_biInter A (fun a _ ↦
|
| 426 |
+
measurableSet_le (show Measurable (fun _ : Configuration n L ↦ h) from measurable_const)
|
| 427 |
+
(pairCloseLabels_measurable L s (v a)))
|
| 428 |
+
exact (hg.groundPathLaw_marginal T hT q).measure_preimage hS.nullMeasurableSet
|
| 429 |
+
|
| 430 |
+
theorem spatial_stationary_close_tail : ∃ Q : ℕ, 0<Q ∧ ∀ θ : ℝ, 0<θ →
|
| 431 |
+
∃ b Gθ : ℝ, 0<b ∧ b≤1/4 ∧ 0<Gθ ∧
|
| 432 |
+
Tendsto (fun D : ℝ ↦ ((Gθ/b^2)*D^(-(4/3):ℝ))^(1/(Q:ℝ))) atTop (𝓝 0) ∧
|
| 433 |
+
∀ αmax : ℝ, ∃ D₀ : ℝ, 1≤D₀ ∧
|
| 434 |
+
∀ (n K : ℕ) (L : Length) (_hL : L.val=(K:ℝ)) (D α : ℝ),
|
| 435 |
+
100≤L.val → D=(n:ℝ)/L.val^3 → D₀≤D → 1≤α → α≤αmax →
|
| 436 |
+
∀ (g : Jet n L), IsGroundVector n L (α/D) g →
|
| 437 |
+
∀ (T : ℝ), 0≤T → ∀ (q : Time) (A : Finset (CubeCell K)),
|
| 438 |
+
groundPathLaw n L (α/D) T g {ω | ∀ v∈A,
|
| 439 |
+
θ*D≤((pairCloseLabels L (spatialCloseScale D b) (unitCenter L v) (ω q)).card:ℝ)}≤
|
| 440 |
+
ENNReal.ofReal (((((Gθ/b^2)*D^(-(4/3):ℝ))^(1/(Q:ℝ)))^A.card)) := by
|
| 441 |
+
obtain ⟨Q,hQ,htail⟩ := spatial_full_and_bath_close_tail
|
| 442 |
+
refine ⟨Q,hQ,?_⟩
|
| 443 |
+
intro θ hθ
|
| 444 |
+
obtain ⟨b,Gθ,hb,hb1,hGθ,hlim,hfin⟩ := htail θ hθ
|
| 445 |
+
refine ⟨b,Gθ,hb,hb1,hGθ,hlim,?_⟩
|
| 446 |
+
intro αmax
|
| 447 |
+
obtain ⟨D₀,hD₀,hDfin⟩ := hfin αmax
|
| 448 |
+
refine ⟨D₀,hD₀,?_⟩
|
| 449 |
+
intro n K L hL D α hL100 hDeq hD hα hαmax g hg T hT q A
|
| 450 |
+
rw [hg.groundPathLaw_close_event L T hT q (unitCenter L) A]
|
| 451 |
+
exact (hDfin n K L hL D α hL100 hDeq hD hα hαmax g hg A).1
|
| 452 |
+
|
| 453 |
+
end
|
| 454 |
+
end HardSphere
|
| 455 |
+
|
| 456 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Operators/TransitionDerivative.lean
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
open MeasureTheory Filter Set
|
| 7 |
+
open scoped ENNReal Topology BigOperators
|
| 8 |
+
open scoped BigOperators ComplexConjugate
|
| 9 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 10 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 11 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 12 |
+
open scoped ENNReal ComplexConjugate
|
| 13 |
+
open ProbabilityTheory
|
| 14 |
+
namespace PeriodicCutoff
|
| 15 |
+
|
| 16 |
+
lemma transition_derivative (x : ℝ) :
|
| 17 |
+
HasDerivAt Real.smoothTransition (deriv Real.smoothTransition x) x :=
|
| 18 |
+
((Real.smoothTransition.contDiff (n := 1)).differentiable (by norm_num) x).hasDerivAt
|
| 19 |
+
|
| 20 |
+
lemma transition_deriv_eq_zero {x : ℝ} (hx : x∉Icc (0:ℝ) 1) :
|
| 21 |
+
deriv Real.smoothTransition x=0 := by
|
| 22 |
+
have he : (Real.smoothTransition =ᶠ[𝓝 x] fun _ ↦ (Real.smoothTransition x)) := by
|
| 23 |
+
rcases not_and_or.mp hx with h | h
|
| 24 |
+
· have hx : x<0 := lt_of_not_ge h
|
| 25 |
+
filter_upwards [isOpen_Iio.mem_nhds hx] with y hy
|
| 26 |
+
rw [Real.smoothTransition.zero_of_nonpos hy.le,Real.smoothTransition.zero_of_nonpos hx.le]
|
| 27 |
+
· have hx : 1<x := lt_of_not_ge h
|
| 28 |
+
filter_upwards [isOpen_Ioi.mem_nhds hx] with y hy
|
| 29 |
+
rw [Real.smoothTransition.one_of_one_le hy.le,Real.smoothTransition.one_of_one_le hx.le]
|
| 30 |
+
exact ((hasDerivAt_const x (Real.smoothTransition x)).congr_of_eventuallyEq he).deriv
|
| 31 |
+
|
| 32 |
+
lemma exists_transition_bound : ∃ M : ℝ, 0<M ∧ ∀ x : ℝ, |deriv Real.smoothTransition x|≤M := by
|
| 33 |
+
obtain ⟨C,hC⟩ := isCompact_Icc.exists_bound_of_continuousOn
|
| 34 |
+
((Real.smoothTransition.contDiff (n := 2)).continuous_deriv (by norm_num)).continuousOn
|
| 35 |
+
(s := Icc (0:ℝ) 1)
|
| 36 |
+
refine ⟨max C 1,lt_of_lt_of_le zero_lt_one (le_max_right _ _),fun x ↦ ?_⟩
|
| 37 |
+
by_cases hx : x∈Icc (0:ℝ) 1
|
| 38 |
+
· exact (hC x hx).trans (le_max_left _ _)
|
| 39 |
+
· rw [transition_deriv_eq_zero hx,abs_zero]
|
| 40 |
+
exact (zero_le_one : (0:ℝ)≤1).trans (le_max_right _ _)
|
| 41 |
+
|
| 42 |
+
end PeriodicCutoff
|
| 43 |
+
|
| 44 |
+
end
|
| 45 |
+
|
| 46 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/Bump.lean
ADDED
|
@@ -0,0 +1,282 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.TorusLiftBox
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.HeadLift
|
| 4 |
+
import OAI.Analysis.HardSphere.Cutoffs.Near
|
| 5 |
+
import OAI.Analysis.HardSphere.Operators.Regularize
|
| 6 |
+
|
| 7 |
+
namespace OAI
|
| 8 |
+
|
| 9 |
+
noncomputable section
|
| 10 |
+
open MeasureTheory Filter Set
|
| 11 |
+
open scoped ENNReal Topology BigOperators
|
| 12 |
+
open scoped BigOperators ComplexConjugate
|
| 13 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 14 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 15 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 16 |
+
open scoped ENNReal ComplexConjugate
|
| 17 |
+
open ProbabilityTheory
|
| 18 |
+
namespace HardSphere.CellOrbital
|
| 19 |
+
open MeasureTheory Set Filter PeriodicCutoff TightCutoff
|
| 20 |
+
open scoped ComplexConjugate
|
| 21 |
+
|
| 22 |
+
def bump (L : Length) (δ : ℝ) (x y : Torus L) : ℝ :=
|
| 23 |
+
Real.cos (TightCutoff.angle L.val δ y x)
|
| 24 |
+
|
| 25 |
+
def centerLift (L : Length) (x : Torus L) : Fin 3 → ℝ :=
|
| 26 |
+
fun j ↦ (AddCircle.equivIco L.val 0 (x j)).val
|
| 27 |
+
|
| 28 |
+
lemma centerLift_coe (L : Length) (x : Torus L) :
|
| 29 |
+
(fun j ↦ (centerLift L x j : AddCircle L.val))=x := by
|
| 30 |
+
ext j
|
| 31 |
+
exact AddCircle.coe_equivIco
|
| 32 |
+
|
| 33 |
+
lemma bump_project (L : Length) (δ : ℝ) (x : Torus L) (R : LiftedConfiguration 1) :
|
| 34 |
+
bump L δ x (project 1 L R 0)=
|
| 35 |
+
Real.cos (TightCutoff.angleLift L.val δ (R 0-centerLift L x)) := by
|
| 36 |
+
unfold bump TightCutoff.angle TightCutoff.angleLift
|
| 37 |
+
change Real.cos (Real.pi / 2 * Real.smoothTransition
|
| 38 |
+
((pairQ L.val (fun j ↦ (R 0 j : AddCircle L.val)) x-(5/4)*δ^2)/((1/4)*δ^2))) = _
|
| 39 |
+
conv_lhs => rw [← centerLift_coe L x, pairQ_coe]
|
| 40 |
+
|
| 41 |
+
lemma bump_smooth (L : Length) (δ : ℝ) (x : Torus L) :
|
| 42 |
+
ContDiff ℝ ((⊤:ℕ∞):WithTop ℕ∞)
|
| 43 |
+
(fun R : LiftedConfiguration 1 ↦ (bump L δ x (project 1 L R 0) : ℂ)) := by
|
| 44 |
+
simp_rw [bump_project]
|
| 45 |
+
exact Complex.ofRealCLM.contDiff.comp ((Real.contDiff_cos.comp
|
| 46 |
+
(TightCutoff.angleLift_smooth L.val δ)).comp ((contDiff_apply ℝ (Fin 3 → ℝ) 0).sub contDiff_const))
|
| 47 |
+
|
| 48 |
+
def raw (L : Length) (δ : ℝ) (x : Torus L) : SmoothMultiplier 1 L :=
|
| 49 |
+
.ofSmooth (fun X ↦ (bump L δ x (X 0) : ℂ)) (bump_smooth L δ x)
|
| 50 |
+
|
| 51 |
+
lemma bump_continuous (L : Length) (δ : ℝ) (x : Torus L) : Continuous (bump L δ x) := by
|
| 52 |
+
unfold bump TightCutoff.angle
|
| 53 |
+
exact Real.continuous_cos.comp (continuous_const.mul (Real.smoothTransition.continuous.comp
|
| 54 |
+
(((pairQ_continuous L.val).comp (continuous_id.prodMk continuous_const)).sub
|
| 55 |
+
continuous_const |>.div_const _)))
|
| 56 |
+
|
| 57 |
+
lemma bump_bounds (L : Length) (δ : ℝ) (x y : Torus L) : 0 ≤ bump L δ x y ∧ bump L δ x y ≤ 1 := by
|
| 58 |
+
refine ⟨?_,Real.cos_le_one _⟩
|
| 59 |
+
apply Real.cos_nonneg_of_mem_Icc
|
| 60 |
+
exact ⟨by linarith [(TightCutoff.angle_bounds L.val δ y x).1,Real.pi_pos],
|
| 61 |
+
(TightCutoff.angle_bounds L.val δ y x).2⟩
|
| 62 |
+
|
| 63 |
+
lemma bump_eq_one {L : Length} {δ : ℝ} (hδ : 0<δ) (x : Torus L) {y : Torus L}
|
| 64 |
+
(hy : y∈box L.val (δ/2) x) : bump L δ x y=1 := by
|
| 65 |
+
have hd j : dist (y j) (x j) ≤ δ/2 := (Set.mem_univ_pi.mp hy) j
|
| 66 |
+
have hq := pairQ_le L.val y x
|
| 67 |
+
have hs : (∑ j : Fin 3, dist (y j) (x j)^2) ≤ 3*(δ/2)^2 := by
|
| 68 |
+
calc
|
| 69 |
+
_ ≤ ∑ _j : Fin 3, (δ/2)^2 := Finset.sum_le_sum fun j _ ↦
|
| 70 |
+
(sq_le_sq₀ dist_nonneg (by positivity)).mpr (hd j)
|
| 71 |
+
_ = _ := by simp
|
| 72 |
+
unfold bump
|
| 73 |
+
rw [TightCutoff.angle_zero L.val hδ (by nlinarith), Real.cos_zero]
|
| 74 |
+
|
| 75 |
+
lemma bump_eq_zero {L : Length} {δ : ℝ} (hδ : 0<δ) (x : Torus L) {y : Torus L}
|
| 76 |
+
(hy : y∉TightCutoff.near L.val δ x) : bump L δ x y=0 := by
|
| 77 |
+
rw [bump,TightCutoff.angle_one_outside L.val hδ hy,Real.cos_pi_div_two]
|
| 78 |
+
|
| 79 |
+
lemma bump_support {L : Length} {δ : ℝ} (hδ : 0<δ) (x : Torus L) :
|
| 80 |
+
tsupport (bump L δ x) ⊆ TightCutoff.near L.val δ x := by
|
| 81 |
+
apply closure_minimal
|
| 82 |
+
· intro y hy
|
| 83 |
+
by_contra hn
|
| 84 |
+
exact hy (bump_eq_zero hδ x hn)
|
| 85 |
+
· exact isClosed_le ((pairQ_continuous L.val).comp
|
| 86 |
+
(continuous_id.prodMk continuous_const)) continuous_const
|
| 87 |
+
|
| 88 |
+
lemma box_volume_eq {L : Length} {b : ℝ} (hb : 0 ≤ b) (hbL : 2*b ≤ L.val) (x : Torus L) :
|
| 89 |
+
volume.real (box L.val b x)=(2*b)^3 := by
|
| 90 |
+
have he : volume (box L.val b x)=ENNReal.ofReal (min L.val (2*b))^3 := by
|
| 91 |
+
rw [volume_pi,box,Measure.pi_pi]
|
| 92 |
+
simp_rw [AddCircle.volume_closedBall]
|
| 93 |
+
simp
|
| 94 |
+
rw [measureReal_def,he,min_eq_right hbL,ENNReal.toReal_pow,
|
| 95 |
+
ENNReal.toReal_ofReal (by positivity)]
|
| 96 |
+
|
| 97 |
+
def mass (L : Length) (δ : ℝ) (x : Torus L) : ℝ := ∫ y : Torus L, (bump L δ x y)^2
|
| 98 |
+
|
| 99 |
+
lemma mass_lower {L : Length} {δ : ℝ} (hδ : 0<δ) (hδL : δ ≤ L.val) (x : Torus L) :
|
| 100 |
+
δ^3 ≤ mass L δ x := by
|
| 101 |
+
have hi : Integrable (fun y : Torus L ↦ (bump L δ x y)^2) volume :=
|
| 102 |
+
((bump_continuous L δ x).pow 2).integrable_of_hasCompactSupport
|
| 103 |
+
(HasCompactSupport.of_compactSpace _)
|
| 104 |
+
calc
|
| 105 |
+
_ = volume.real (box L.val (δ/2) x) := by rw [box_volume_eq (by positivity) (by linarith)]; ring
|
| 106 |
+
_ = ∫ y in box L.val (δ/2) x, (bump L δ x y)^2 := by
|
| 107 |
+
rw [setIntegral_congr_fun (box_measurable _ _ _) (fun y hy ↦ by rw [bump_eq_one hδ x hy])]
|
| 108 |
+
simp
|
| 109 |
+
_ ≤ mass L δ x := setIntegral_le_integral hi (Filter.Eventually.of_forall fun _ ↦ sq_nonneg _)
|
| 110 |
+
|
| 111 |
+
lemma mass_pos {L : Length} {δ : ℝ} (hδ : 0<δ) (hδL : δ ≤ L.val) (x : Torus L) :
|
| 112 |
+
0 < mass L δ x := lt_of_lt_of_le (by positivity) (mass_lower hδ hδL x)
|
| 113 |
+
|
| 114 |
+
lemma raw_fderiv (L : Length) (δ : ℝ) (x : Torus L) (R v : LiftedConfiguration 1) :
|
| 115 |
+
fderiv ℝ (fun R ↦ (raw L δ x).toFun (project 1 L R)) R v =
|
| 116 |
+
((-Real.sin (TightCutoff.angleLift L.val δ (R 0-centerLift L x)) *
|
| 117 |
+
∑ j : Fin 3, TightCutoff.anglePartial L.val δ (R 0-centerLift L x) j*v 0 j : ℝ) : ℂ) := by
|
| 118 |
+
have hd : HasDerivAt (fun t : ℝ ↦ R+t • v) v 0 := by
|
| 119 |
+
simpa using ((hasDerivAt_id (0:ℝ)).smul_const v).const_add R
|
| 120 |
+
have hf := ((((raw L δ x).smooth).differentiable (by simp)) R).hasFDerivAt.comp_hasDerivAt_of_eq 0 hd (by simp)
|
| 121 |
+
have ha := TightCutoff.angleLift_derivative L.val δ
|
| 122 |
+
(fun j t ↦ R 0 j+t*v 0 j-centerLift L x j) (fun j ↦ v 0 j) 0 (fun j ↦ by
|
| 123 |
+
convert ((((hasDerivAt_id (0:ℝ)).mul_const (v 0 j)).const_add (R 0 j)).sub_const (centerLift L x j)) using 1 <;> first | rfl | simp only [one_mul])
|
| 124 |
+
have hb := Complex.ofRealCLM.hasFDerivAt.comp_hasDerivAt 0 ha.cos
|
| 125 |
+
have he : ((fun R ↦ (raw L δ x).toFun (project 1 L R)) ∘ fun t : ℝ ↦ R+t • v) =
|
| 126 |
+
(fun t : ℝ ↦ (Real.cos (TightCutoff.angleLift L.val δ
|
| 127 |
+
(fun j ↦ R 0 j+t*v 0 j-centerLift L x j)) : ℂ)) := by
|
| 128 |
+
funext t
|
| 129 |
+
exact congrArg Complex.ofReal (bump_project L δ x (R+t • v))
|
| 130 |
+
rw [he] at hf
|
| 131 |
+
convert hf.unique hb using 1
|
| 132 |
+
simp only [zero_mul,add_zero,Complex.ofRealCLM_apply]
|
| 133 |
+
rfl
|
| 134 |
+
|
| 135 |
+
lemma raw_partial (L : Length) (δ : ℝ) (x y : Torus L) (j : Fin 3) :
|
| 136 |
+
coordDerivative 1 L (raw L δ x).toFun (0,j) (fun _ ↦ y)=
|
| 137 |
+
((-Real.sin (TightCutoff.angleLift L.val δ (centerLift L y-centerLift L x)) *
|
| 138 |
+
TightCutoff.anglePartial L.val δ (centerLift L y-centerLift L x) j : ℝ) : ℂ) := by
|
| 139 |
+
rw [coordDerivative,raw_fderiv]
|
| 140 |
+
change (Complex.ofReal (-Real.sin _ * ∑ k : Fin 3, _ * (Pi.single j (1:ℝ)) k)) = _
|
| 141 |
+
simp only [Pi.single_apply,mul_ite,mul_one,mul_zero,Finset.sum_ite_eq',Finset.mem_univ,ite_true]
|
| 142 |
+
rfl
|
| 143 |
+
|
| 144 |
+
lemma raw_partial_sq_le {L : Length} {δ M : ℝ} (hδ : 0<δ) (hM : 0 ≤ M)
|
| 145 |
+
(hb : ∀ t : ℝ, |deriv Real.smoothTransition t| ≤ M) (x y : Torus L) (j : Fin 3) :
|
| 146 |
+
‖coordDerivative 1 L (raw L δ x).toFun (0,j) (fun _ ↦ y)‖^2 ≤ 24*Real.pi^2*M^2/δ^2 := by
|
| 147 |
+
rw [raw_partial,Complex.norm_real,Real.norm_eq_abs,sq_abs,mul_pow,neg_sq]
|
| 148 |
+
calc
|
| 149 |
+
_ ≤ 1*(TightCutoff.anglePartial L.val δ (centerLift L y-centerLift L x) j)^2 := by
|
| 150 |
+
gcongr
|
| 151 |
+
exact Real.sin_sq_le_one _
|
| 152 |
+
_ ≤ _ := by simpa using TightCutoff.anglePartial_sq_le L.val hδ hM hb (centerLift L y-centerLift L x) j
|
| 153 |
+
|
| 154 |
+
lemma raw_partial_zero {L : Length} {δ : ℝ} (hδ : 0<δ) (x y : Torus L) (j : Fin 3)
|
| 155 |
+
(hy : y∉TightCutoff.near L.val δ x) :
|
| 156 |
+
coordDerivative 1 L (raw L δ x).toFun (0,j) (fun _ ↦ y)=0 := by
|
| 157 |
+
have he : qLift L.val (centerLift L y-centerLift L x)=pairQ L.val y x := by
|
| 158 |
+
rw [← pairQ_coe,centerLift_coe,centerLift_coe]
|
| 159 |
+
have hn : qLift L.val (centerLift L y-centerLift L x)∉Icc ((5/4)*δ^2) ((3/2)*δ^2) := by
|
| 160 |
+
rw [he]
|
| 161 |
+
exact fun h ↦ hy h.2
|
| 162 |
+
rw [raw_partial,TightCutoff.anglePartial_eq_zero L.val hδ hn,mul_zero,Complex.ofReal_zero]
|
| 163 |
+
|
| 164 |
+
lemma raw_energy_le {L : Length} {δ M : ℝ} (hδ : 0<δ) (hM : 0 ≤ M)
|
| 165 |
+
(hb : ∀ t : ℝ, |deriv Real.smoothTransition t| ≤ M) (x : Torus L) :
|
| 166 |
+
(raw L δ x).orbitalEnergy ≤ 3*(24*Real.pi^2*M^2/δ^2)*(4*δ)^3 := by
|
| 167 |
+
have hpart (j : Fin 3) :
|
| 168 |
+
(∫ y : Torus L, ‖coordDerivative 1 L (raw L δ x).toFun (0,j) (fun _ ↦ y)‖^2) ≤
|
| 169 |
+
(24*Real.pi^2*M^2/δ^2)*(4*δ)^3 := by
|
| 170 |
+
let f := fun y : Torus L ↦ ‖coordDerivative 1 L (raw L δ x).toFun (0,j) (fun _ ↦ y)‖^2
|
| 171 |
+
have hf : Continuous f := ((continuous_coordDerivative (raw L δ x).smooth (0,j)).comp
|
| 172 |
+
(continuous_pi fun _ ↦ continuous_id)).norm.pow 2
|
| 173 |
+
have hi : Integrable f volume := hf.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)
|
| 174 |
+
have he : (∫ y, f y) = ∫ y in TightCutoff.near L.val δ x, f y := by
|
| 175 |
+
symm
|
| 176 |
+
apply setIntegral_eq_integral_of_forall_compl_eq_zero
|
| 177 |
+
intro y hy
|
| 178 |
+
simp [f,raw_partial_zero hδ x y j hy]
|
| 179 |
+
rw [he]
|
| 180 |
+
calc
|
| 181 |
+
_ ≤ ∫ _y in TightCutoff.near L.val δ x, (24*Real.pi^2*M^2/δ^2) :=
|
| 182 |
+
setIntegral_mono_on hi.integrableOn (integrableOn_const) (TightCutoff.near_measurable _ _ _)
|
| 183 |
+
(fun y _ ↦ raw_partial_sq_le hδ hM hb x y j)
|
| 184 |
+
_ = volume.real (TightCutoff.near L.val δ x)*(24*Real.pi^2*M^2/δ^2) := by simp
|
| 185 |
+
_ ≤ _ := by
|
| 186 |
+
simpa only [mul_comm] using mul_le_mul_of_nonneg_right (TightCutoff.near_volume_le L.val hδ x)
|
| 187 |
+
(show 0 ≤ 24*Real.pi^2*M^2/δ^2 by positivity)
|
| 188 |
+
unfold SmoothMultiplier.orbitalEnergy
|
| 189 |
+
calc
|
| 190 |
+
_ ≤ ∑ _j : Fin 3, (24*Real.pi^2*M^2/δ^2)*(4*δ)^3 := Finset.sum_le_sum fun j _ ↦ hpart j
|
| 191 |
+
_ = _ := by simp; ring
|
| 192 |
+
|
| 193 |
+
def normalized (L : Length) (δ : ℝ) (x : Torus L) : SmoothMultiplier 1 L :=
|
| 194 |
+
.ofSmooth (fun X ↦ (((Real.sqrt (mass L δ x))⁻¹ : ℝ) : ℂ)*(raw L δ x).toFun X)
|
| 195 |
+
(contDiff_const.mul (raw L δ x).smooth)
|
| 196 |
+
|
| 197 |
+
lemma normalized_real (L : Length) (δ : ℝ) (x : Torus L) (X : Configuration 1 L) :
|
| 198 |
+
conj ((normalized L δ x).toFun X)=(normalized L δ x).toFun X := by
|
| 199 |
+
simp [normalized,raw,SmoothMultiplier.ofSmooth]
|
| 200 |
+
|
| 201 |
+
lemma normalized_norm_sq {L : Length} {δ : ℝ} (hδ : 0<δ) (hδL : δ ≤ L.val) (x y : Torus L) :
|
| 202 |
+
‖(normalized L δ x).orbital y‖^2=(mass L δ x)⁻¹*(bump L δ x y)^2 := by
|
| 203 |
+
change ‖(((Real.sqrt (mass L δ x))⁻¹ : ℝ) : ℂ)*(bump L δ x y : ℂ)‖^2 = _
|
| 204 |
+
rw [norm_mul,mul_pow,Complex.norm_real,Real.norm_eq_abs,sq_abs,Complex.norm_real,Real.norm_eq_abs,sq_abs,
|
| 205 |
+
inv_pow,Real.sq_sqrt (mass_pos hδ hδL x).le]
|
| 206 |
+
|
| 207 |
+
lemma normalized_mass {L : Length} {δ : ℝ} (hδ : 0<δ) (hδL : δ ≤ L.val) (x : Torus L) :
|
| 208 |
+
(∫ y : Torus L, ‖(normalized L δ x).orbital y‖^2)=1 := by
|
| 209 |
+
simp_rw [normalized_norm_sq hδ hδL]
|
| 210 |
+
rw [integral_const_mul]
|
| 211 |
+
exact inv_mul_cancel₀ (mass_pos hδ hδL x).ne'
|
| 212 |
+
|
| 213 |
+
lemma normalized_support {L : Length} {δ : ℝ} (hδ : 0<δ) (x : Torus L) :
|
| 214 |
+
tsupport (normalized L δ x).orbital ⊆ TightCutoff.near L.val δ x := by
|
| 215 |
+
apply closure_minimal
|
| 216 |
+
· intro y hy
|
| 217 |
+
by_contra hn
|
| 218 |
+
apply hy
|
| 219 |
+
change (((Real.sqrt (mass L δ x))⁻¹ : ℝ) : ℂ)*(bump L δ x y : ℂ)=0
|
| 220 |
+
rw [bump_eq_zero hδ x hn,Complex.ofReal_zero,mul_zero]
|
| 221 |
+
· exact isClosed_le ((pairQ_continuous L.val).comp
|
| 222 |
+
(continuous_id.prodMk continuous_const)) continuous_const
|
| 223 |
+
|
| 224 |
+
lemma normalized_bound {L : Length} {δ : ℝ} (hδ : 0<δ) (hδL : δ ≤ L.val) (x : Torus L) :
|
| 225 |
+
(normalized L δ x).orbitalBound ≤ (δ^3)⁻¹ := by
|
| 226 |
+
have hs : 0<Real.sqrt (mass L δ x) := Real.sqrt_pos.mpr (mass_pos hδ hδL x)
|
| 227 |
+
have hb : ‖(⟨(normalized L δ x).orbital,(normalized L δ x).orbital_continuous⟩ : C(Torus L,ℂ))‖ ≤
|
| 228 |
+
(Real.sqrt (mass L δ x))⁻¹ := by
|
| 229 |
+
apply (ContinuousMap.norm_le _ (by positivity)).mpr
|
| 230 |
+
intro y
|
| 231 |
+
change ‖(((Real.sqrt (mass L δ x))⁻¹ : ℝ) : ℂ)*(bump L δ x y : ℂ)‖ ≤ _
|
| 232 |
+
rw [norm_mul,Complex.norm_real,Real.norm_eq_abs,abs_of_pos (inv_pos.mpr hs),
|
| 233 |
+
Complex.norm_real,Real.norm_eq_abs,abs_of_nonneg (bump_bounds L δ x y).1]
|
| 234 |
+
exact mul_le_of_le_one_right (by positivity) (bump_bounds L δ x y).2
|
| 235 |
+
calc
|
| 236 |
+
_ ≤ ((Real.sqrt (mass L δ x))⁻¹)^2 := (sq_le_sq₀ (norm_nonneg _) (by positivity)).mpr hb
|
| 237 |
+
_ = (mass L δ x)⁻¹ := by rw [inv_pow,Real.sq_sqrt (mass_pos hδ hδL x).le]
|
| 238 |
+
_ ≤ _ := inv_anti₀ (by positivity) (mass_lower hδ hδL x)
|
| 239 |
+
|
| 240 |
+
lemma normalized_partial (L : Length) (δ : ℝ) (x y : Torus L) (j : Fin 3) :
|
| 241 |
+
coordDerivative 1 L (normalized L δ x).toFun (0,j) (fun _ ↦ y)=
|
| 242 |
+
(((Real.sqrt (mass L δ x))⁻¹ : ℝ) : ℂ)*coordDerivative 1 L (raw L δ x).toFun (0,j) (fun _ ↦ y) := by
|
| 243 |
+
unfold coordDerivative
|
| 244 |
+
change (fderiv ℝ (fun R ↦ (((Real.sqrt (mass L δ x))⁻¹ : ℝ) : ℂ)*(raw L δ x).toFun (project 1 L R)) _) _ = _
|
| 245 |
+
rw [fderiv_const_mul (((raw L δ x).smooth.differentiable (by simp)) _)]
|
| 246 |
+
rfl
|
| 247 |
+
|
| 248 |
+
lemma normalized_energy_le {L : Length} {δ M : ℝ} (hδ : 0<δ) (hδL : δ ≤ L.val)
|
| 249 |
+
(hM : 0 ≤ M) (hb : ∀ t : ℝ, |deriv Real.smoothTransition t| ≤ M) (x : Torus L) :
|
| 250 |
+
(normalized L δ x).orbitalEnergy ≤ (δ^3)⁻¹*(3*(24*Real.pi^2*M^2/δ^2)*(4*δ)^3) := by
|
| 251 |
+
have he : (normalized L δ x).orbitalEnergy=(mass L δ x)⁻¹*(raw L δ x).orbitalEnergy := by
|
| 252 |
+
unfold SmoothMultiplier.orbitalEnergy
|
| 253 |
+
simp_rw [normalized_partial,norm_mul,mul_pow,Complex.norm_real,Real.norm_eq_abs,sq_abs,
|
| 254 |
+
inv_pow,Real.sq_sqrt (mass_pos hδ hδL x).le,integral_const_mul]
|
| 255 |
+
rw [Finset.mul_sum]
|
| 256 |
+
rw [he]
|
| 257 |
+
apply mul_le_mul
|
| 258 |
+
· exact inv_anti₀ (by positivity) (mass_lower hδ hδL x)
|
| 259 |
+
· exact raw_energy_le hδ hM hb x
|
| 260 |
+
· exact Finset.sum_nonneg fun j _ ↦ integral_nonneg fun _ ↦ sq_nonneg _
|
| 261 |
+
· positivity
|
| 262 |
+
|
| 263 |
+
theorem uniform_orbitals : ∃ B E : ℝ, 0<B ∧ 0<E ∧
|
| 264 |
+
∀ L : Length, (1:ℝ)/100 ≤ L.val → ∀ x : Torus L,
|
| 265 |
+
(∀ X, conj ((normalized L (1/100) x).toFun X)=(normalized L (1/100) x).toFun X) ∧
|
| 266 |
+
(∫ y : Torus L, ‖(normalized L (1/100) x).orbital y‖^2)=1 ∧
|
| 267 |
+
(normalized L (1/100) x).orbitalBound ≤ B ∧
|
| 268 |
+
(normalized L (1/100) x).orbitalEnergy ≤ E ∧
|
| 269 |
+
tsupport (normalized L (1/100) x).orbital ⊆ TightCutoff.near L.val (1/100) x := by
|
| 270 |
+
obtain ⟨M,hM,hb⟩ := exists_transition_bound
|
| 271 |
+
refine ⟨((1/100:ℝ)^3)⁻¹,((1/100:ℝ)^3)⁻¹*(3*(24*Real.pi^2*M^2/(1/100:ℝ)^2)*(4*(1/100:ℝ))^3),
|
| 272 |
+
by positivity,by positivity,?_⟩
|
| 273 |
+
intro L hL x
|
| 274 |
+
exact ⟨normalized_real L _ x,normalized_mass (by norm_num) hL x,
|
| 275 |
+
normalized_bound (by norm_num) hL x,normalized_energy_le (by norm_num) hL hM.le hb x,
|
| 276 |
+
normalized_support (by norm_num) x⟩
|
| 277 |
+
|
| 278 |
+
end HardSphere.CellOrbital
|
| 279 |
+
|
| 280 |
+
end
|
| 281 |
+
|
| 282 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/CellPartition.lean
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Orbitals.CenteredCell
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.SelectedUnitCellPenalty
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
|
| 9 |
+
section
|
| 10 |
+
noncomputable section
|
| 11 |
+
open MeasureTheory Set
|
| 12 |
+
open scoped ENNReal Topology
|
| 13 |
+
namespace HardSphere.CellOrbital
|
| 14 |
+
|
| 15 |
+
def gridHome {K : ℕ} {L : Length} (hL : L.val=(K:ℝ)) (x : Torus L) : Fin 3→Fin K :=
|
| 16 |
+
fun j ↦ unitIndex hL (x j+(1/2:ℝ))
|
| 17 |
+
|
| 18 |
+
lemma gridHome_measurable {K : ℕ} {L : Length} (hL : L.val=(K:ℝ)) : Measurable (gridHome hL) := by
|
| 19 |
+
exact Measurable.of_eval (fun j ↦ (measurable_unitIndex hL).comp ((measurable_pi_apply j).add_const _))
|
| 20 |
+
|
| 21 |
+
lemma gridHome_mem {K : ℕ} {L : Length} (hL : L.val=(K:ℝ)) (hK : 1≤K) (x : Torus L) :
|
| 22 |
+
x∈centeredCell L (gridCenter L (gridHome hL x)) := by
|
| 23 |
+
apply (centeredCell_image (by rw [hL]; exact_mod_cast hK) _ _).mpr
|
| 24 |
+
intro j
|
| 25 |
+
let z := (AddCircle.equivIco L.val 0) (x j+(1/2:ℝ))
|
| 26 |
+
have hz0 : 0≤z.val := z.property.1
|
| 27 |
+
let n : ℕ := ⌊z.val⌋₊
|
| 28 |
+
refine ⟨z.val-(n:ℝ)-1/2,⟨?_,?_⟩,?_⟩
|
| 29 |
+
· linarith [Nat.floor_le hz0]
|
| 30 |
+
· have hh := Nat.lt_floor_add_one z.val
|
| 31 |
+
dsimp [n]
|
| 32 |
+
linarith
|
| 33 |
+
· have he : (z.val : AddCircle L.val)=x j+((1/2:ℝ):AddCircle L.val) := AddCircle.coe_equivIco
|
| 34 |
+
change ((z.val-(n:ℝ)-1/2:ℝ):AddCircle L.val)=x j-((n:ℝ):AddCircle L.val)
|
| 35 |
+
simp only [QuotientAddGroup.mk_sub]
|
| 36 |
+
rw [he]
|
| 37 |
+
abel
|
| 38 |
+
|
| 39 |
+
lemma centeredCell_disjoint {K : ℕ} {L : Length} (hL : L.val=(K:ℝ)) (hK : 1≤K)
|
| 40 |
+
{v w : Fin 3→Fin K} (hvw : v≠w) : Disjoint (centeredCell L (gridCenter L v)) (centeredCell L (gridCenter L w)) := by
|
| 41 |
+
apply Set.disjoint_left.mpr
|
| 42 |
+
intro x hx hy
|
| 43 |
+
obtain ⟨j,hj⟩ : ∃j,v j≠w j := by
|
| 44 |
+
by_contra h
|
| 45 |
+
push Not at h
|
| 46 |
+
exact hvw (funext h)
|
| 47 |
+
have h1 : 1≤L.val := by rw [hL]; exact_mod_cast hK
|
| 48 |
+
obtain ⟨s,hs,hes⟩ := (centeredCell_image h1 _ _).mp hx j
|
| 49 |
+
obtain ⟨t,ht,het⟩ := (centeredCell_image h1 _ _).mp hy j
|
| 50 |
+
have he : gridCenter L v j-gridCenter L w j=((t-s:ℝ):AddCircle L.val) := by
|
| 51 |
+
rw [QuotientAddGroup.mk_sub,het,hes]
|
| 52 |
+
abel
|
| 53 |
+
have ha : |t-s|<1 := by rw [abs_lt]; constructor <;> linarith [ht.1,ht.2,hs.1,hs.2]
|
| 54 |
+
have hd : dist (gridCenter L v j) (gridCenter L w j)<1 := by
|
| 55 |
+
rw [dist_eq_norm,he]
|
| 56 |
+
exact lt_of_le_of_lt (QuotientAddGroup.norm_mk_le_norm (m:=t-s)) (by simpa only [Real.norm_eq_abs] using ha)
|
| 57 |
+
exact (not_lt_of_ge (fin_circle_dist hL hj)) hd
|
| 58 |
+
|
| 59 |
+
lemma gridHome_eq_iff {K : ℕ} {L : Length} (hL : L.val=(K:ℝ)) (hK : 1≤K)
|
| 60 |
+
(x : Torus L) (v : Fin 3→Fin K) : gridHome hL x=v ↔ x∈centeredCell L (gridCenter L v) := by
|
| 61 |
+
constructor
|
| 62 |
+
· intro h; exact h ▸ gridHome_mem hL hK x
|
| 63 |
+
· intro hx
|
| 64 |
+
by_contra h
|
| 65 |
+
exact Set.disjoint_left.mp (centeredCell_disjoint hL hK h) (gridHome_mem hL hK x) hx
|
| 66 |
+
|
| 67 |
+
end HardSphere.CellOrbital
|
| 68 |
+
|
| 69 |
+
end
|
| 70 |
+
end
|
| 71 |
+
|
| 72 |
+
end
|
| 73 |
+
|
| 74 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/CenteredCell.lean
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.GroundPositionLaw
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
section
|
| 7 |
+
section
|
| 8 |
+
noncomputable section
|
| 9 |
+
open MeasureTheory Filter Set
|
| 10 |
+
open scoped ENNReal Topology BigOperators
|
| 11 |
+
noncomputable section
|
| 12 |
+
open scoped BigOperators ComplexConjugate
|
| 13 |
+
noncomputable section
|
| 14 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 15 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 16 |
+
noncomputable section
|
| 17 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 18 |
+
open scoped ENNReal ComplexConjugate
|
| 19 |
+
open ProbabilityTheory
|
| 20 |
+
noncomputable section
|
| 21 |
+
open MeasureTheory Filter Set
|
| 22 |
+
open scoped ENNReal Topology
|
| 23 |
+
noncomputable section
|
| 24 |
+
open MeasureTheory Set
|
| 25 |
+
open scoped ENNReal
|
| 26 |
+
namespace HardSphere.CellOrbital
|
| 27 |
+
open MeasureTheory Set Filter
|
| 28 |
+
noncomputable section
|
| 29 |
+
|
| 30 |
+
def centeredCell (L : Length) (c : Torus L) : Set (Torus L) :=
|
| 31 |
+
{x | ∀ j, ((AddCircle.equivIco L.val (-L.val/2)) (x j-c j)).val ∈ Ico (-1/2:ℝ) (1/2)}
|
| 32 |
+
|
| 33 |
+
lemma centeredCell_measurable (L : Length) (c : Torus L) : MeasurableSet (centeredCell L c) := by
|
| 34 |
+
simp only [centeredCell,Set.ofPred_forall]
|
| 35 |
+
apply MeasurableSet.iInter
|
| 36 |
+
intro j
|
| 37 |
+
exact measurableSet_Ico.preimage (measurable_subtype_coe.comp
|
| 38 |
+
((AddCircle.measurableEquivIco L.val (-L.val/2)).measurable.comp
|
| 39 |
+
((measurable_pi_apply j).sub measurable_const)))
|
| 40 |
+
|
| 41 |
+
lemma centered_rep_abs (L : Length) (x : AddCircle L.val) :
|
| 42 |
+
|((AddCircle.equivIco L.val (-L.val/2)) x).val|=‖x‖ := by
|
| 43 |
+
let t := (AddCircle.equivIco L.val (-L.val/2)) x
|
| 44 |
+
have ht : |t.val| ≤ |L.val|/2 := by
|
| 45 |
+
rw [abs_of_pos L.property,abs_le]
|
| 46 |
+
constructor <;> linarith [t.property.1,t.property.2]
|
| 47 |
+
have he := (AddCircle.norm_coe_eq_abs_iff L.val L.property.ne').mpr ht
|
| 48 |
+
rw [AddCircle.coe_equivIco] at he
|
| 49 |
+
exact he.symm
|
| 50 |
+
|
| 51 |
+
lemma chi_support_centeredCell (L : Length) (c x : Torus L) (hx : chi L (1/100) c x≠0) :
|
| 52 |
+
x∈centeredCell L c := by
|
| 53 |
+
have hnb : bump L (8*(1/100)) c x≠0 := by
|
| 54 |
+
intro he
|
| 55 |
+
apply hx
|
| 56 |
+
simp only [chi,he,zero_pow (by norm_num : (2:ℕ)≠0)]
|
| 57 |
+
have hb := bump_support (by norm_num : (0:ℝ)<8*(1/100)) c (subset_closure hnb)
|
| 58 |
+
have hb' := TightCutoff.near_subset_box L.val (by norm_num : (0:ℝ)<8*(1/100)) c hb
|
| 59 |
+
intro j
|
| 60 |
+
have hj : dist (x j) (c j) ≤ 2*(8*(1/100)) := Set.mem_univ_pi.mp hb' j
|
| 61 |
+
have ht : |((AddCircle.equivIco L.val (-L.val/2)) (x j-c j)).val| ≤ 2*(8*(1/100)) := by
|
| 62 |
+
rw [centered_rep_abs,← dist_eq_norm]
|
| 63 |
+
exact hj
|
| 64 |
+
obtain ⟨hl,hu⟩ := abs_le.mp ht
|
| 65 |
+
constructor <;> linarith
|
| 66 |
+
|
| 67 |
+
noncomputable def centeredCount {n : ℕ} (L : Length) (c : Torus L) (X : Configuration n L) : ℕ :=
|
| 68 |
+
by classical exact (Finset.univ.filter (fun i ↦ X i∈centeredCell L c)).card
|
| 69 |
+
|
| 70 |
+
lemma centeredCount_measurable {n : ℕ} (L : Length) (c : Torus L) :
|
| 71 |
+
Measurable (centeredCount (n:=n) L c) := by
|
| 72 |
+
classical
|
| 73 |
+
unfold centeredCount
|
| 74 |
+
simp_rw [Finset.card_eq_sum_ones,Finset.sum_filter]
|
| 75 |
+
apply Finset.measurable_sum
|
| 76 |
+
intro i _
|
| 77 |
+
exact Measurable.ite ((centeredCell_measurable L c).preimage (measurable_pi_apply i))
|
| 78 |
+
measurable_const measurable_const
|
| 79 |
+
|
| 80 |
+
lemma count_le_centeredCount {n : ℕ} (L : Length) (c : Torus L) (X : Configuration n L) :
|
| 81 |
+
count L (1/100) c X ≤ (centeredCount L c X:ℝ) := by
|
| 82 |
+
classical
|
| 83 |
+
change (∑ i, chi L (1/100) c (X i)) ≤ ((Finset.univ.filter (fun i ↦ X i∈centeredCell L c)).card:ℝ)
|
| 84 |
+
rw [Finset.card_eq_sum_ones]
|
| 85 |
+
push_cast
|
| 86 |
+
rw [Finset.sum_filter]
|
| 87 |
+
apply Finset.sum_le_sum
|
| 88 |
+
intro i _
|
| 89 |
+
by_cases hi : X i∈centeredCell L c
|
| 90 |
+
· simpa only [ite_eq_left hi] using (chi_bounds L (1/100) c (X i)).2
|
| 91 |
+
· rw [ite_eq_right hi]
|
| 92 |
+
have hz : chi L (1/100) c (X i)=0 := by
|
| 93 |
+
by_contra hh
|
| 94 |
+
exact hi (chi_support_centeredCell L c (X i) hh)
|
| 95 |
+
exact hz.le
|
| 96 |
+
|
| 97 |
+
theorem scaled_centered_low_counts : ∃ α₀ ell D₀ Q : ℝ,
|
| 98 |
+
0<α₀ ∧ 0<ell ∧ 0<D₀ ∧ 0<Q ∧
|
| 99 |
+
∀ (S : Type) [DecidableEq S] (n : ℕ) (L : Length) (D α : ℝ),
|
| 100 |
+
2≤n → 1 ≤ L.val → D=(n:ℝ)/L.val^3 → D₀ ≤ D →
|
| 101 |
+
α₀/2 ≤ α → α ≤ 2*α₀ →
|
| 102 |
+
∀ (g : Jet n L), IsGroundVector n L (α/D) g →
|
| 103 |
+
∀ (c : S → Torus L), (∀ z v, z≠v → 1 ≤ dist (c z) (c v)) →
|
| 104 |
+
∀ A : Finset S,
|
| 105 |
+
groundPositionLaw n L g {X | ∀ s∈A, (centeredCount L (c s) X:ℝ) < ell*D} ≤
|
| 106 |
+
ENNReal.ofReal ((Q/D^2)^A.card) := by
|
| 107 |
+
obtain ⟨α₀,ell,D₀,Q,hα,hell,hD₀,hQ,hs⟩ := scaled_low_count_probability
|
| 108 |
+
refine ⟨α₀,ell,D₀,Q,hα,hell,hD₀,hQ,?_⟩
|
| 109 |
+
intro S _ n L D α hn hL hDN hDD hαl hαu g hg c hc A
|
| 110 |
+
apply (measure_mono (show {X : Configuration n L | ∀ s∈A, (centeredCount L (c s) X:ℝ)<ell*D} ⊆
|
| 111 |
+
{X | ∀ s∈A, count L (1/100) (c s) X<ell*D} from ?_)).trans
|
| 112 |
+
(hs S n L D α hn hL hDN hDD hαl hαu g hg c hc A)
|
| 113 |
+
intro X hX s hs
|
| 114 |
+
exact (count_le_centeredCount L (c s) X).trans_lt (hX s hs)
|
| 115 |
+
|
| 116 |
+
end
|
| 117 |
+
end HardSphere.CellOrbital
|
| 118 |
+
|
| 119 |
+
namespace HardSphere.CellOrbital
|
| 120 |
+
open MeasureTheory Set Filter
|
| 121 |
+
noncomputable section
|
| 122 |
+
|
| 123 |
+
lemma centeredCell_image {L : Length} (hL : 1 ≤ L.val) (c x : Torus L) :
|
| 124 |
+
x∈centeredCell L c ↔ ∀ j, ∃ t∈Ico (-1/2:ℝ) (1/2), (t : AddCircle L.val)=x j-c j := by
|
| 125 |
+
constructor
|
| 126 |
+
· intro hx j
|
| 127 |
+
exact ⟨_,hx j,AddCircle.coe_equivIco⟩
|
| 128 |
+
· intro hx j
|
| 129 |
+
obtain ⟨t,ht,he⟩ := hx j
|
| 130 |
+
have ht' : t∈Ico (-L.val/2) (-L.val/2+L.val) := by constructor <;> linarith [ht.1,ht.2]
|
| 131 |
+
rw [← he,AddCircle.equivIco_coe_eq ht']
|
| 132 |
+
exact ht
|
| 133 |
+
|
| 134 |
+
def gridCenter {K : ℕ} (L : Length) (v : Fin 3 → Fin K) : Torus L :=
|
| 135 |
+
fun j ↦ ((v j:ℝ) : AddCircle L.val)
|
| 136 |
+
|
| 137 |
+
lemma fin_circle_dist {K : ℕ} {L : Length} (hL : L.val=(K:ℝ)) {v w : Fin K} (hvw : v≠w) :
|
| 138 |
+
1 ≤ dist ((v:ℝ) : AddCircle L.val) ((w:ℝ) : AddCircle L.val) := by
|
| 139 |
+
have hi (v : Fin K) : (v:ℝ)∈Ico (0:ℝ) (0+L.val) := by
|
| 140 |
+
constructor
|
| 141 |
+
· positivity
|
| 142 |
+
· simpa only [zero_add,hL] using (show (v:ℝ)<(K:ℝ) by exact_mod_cast v.isLt)
|
| 143 |
+
have hne : ((v:ℝ):AddCircle L.val)≠((w:ℝ):AddCircle L.val) := by
|
| 144 |
+
intro he
|
| 145 |
+
have he' := (AddCircle.coe_eq_coe_iff_of_mem_Ico (hi v) (hi w)).mp he
|
| 146 |
+
exact hvw (Fin.ext (by exact_mod_cast he'))
|
| 147 |
+
let z : ℤ := (v.val:ℤ)-(w.val:ℤ)-round (L.val⁻¹*((v:ℝ)-(w:ℝ)))*(K:ℤ)
|
| 148 |
+
have hd : dist ((v:ℝ):AddCircle L.val) ((w:ℝ):AddCircle L.val)=|(z:ℝ)| := by
|
| 149 |
+
rw [dist_eq_norm,← QuotientAddGroup.mk_sub,AddCircle.norm_eq]
|
| 150 |
+
dsimp [z]
|
| 151 |
+
push_cast
|
| 152 |
+
rw [hL]
|
| 153 |
+
have hz : z≠0 := by
|
| 154 |
+
intro hz
|
| 155 |
+
apply hne
|
| 156 |
+
apply dist_eq_zero.mp
|
| 157 |
+
rw [hd,hz,Int.cast_zero,abs_zero]
|
| 158 |
+
have ha : (1:ℤ)≤|z| := by
|
| 159 |
+
have hh : 0 < |z| := abs_pos.mpr hz
|
| 160 |
+
omega
|
| 161 |
+
rw [hd,← Int.cast_abs]
|
| 162 |
+
exact_mod_cast ha
|
| 163 |
+
|
| 164 |
+
lemma gridCenter_separated {K : ℕ} {L : Length} (hL : L.val=(K:ℝ)) :
|
| 165 |
+
∀ z v : Fin 3 → Fin K, z≠v → 1 ≤ dist (gridCenter L z) (gridCenter L v) := by
|
| 166 |
+
intro z v hzv
|
| 167 |
+
obtain ⟨j,hj⟩ : ∃ j, z j≠v j := by
|
| 168 |
+
by_contra hh
|
| 169 |
+
push Not at hh
|
| 170 |
+
exact hzv (funext hh)
|
| 171 |
+
exact (fin_circle_dist hL hj).trans (dist_le_pi_dist (gridCenter L z) (gridCenter L v) j)
|
| 172 |
+
|
| 173 |
+
theorem grid_low_count_probability : ∃ α₀ ell D₀ Q : ℝ,
|
| 174 |
+
0<α₀ ∧ 0<ell ∧ 0<D₀ ∧ 0<Q ∧
|
| 175 |
+
∀ (K n : ℕ) (L : Length) (D α : ℝ),
|
| 176 |
+
1≤K → L.val=(K:ℝ) → D=(n:ℝ)/L.val^3 → D₀ ≤ D →
|
| 177 |
+
α₀/2 ≤ α → α ≤ 2*α₀ →
|
| 178 |
+
∀ (g : Jet n L), IsGroundVector n L (α/D) g →
|
| 179 |
+
∀ A : Finset (Fin 3 → Fin K),
|
| 180 |
+
groundPositionLaw n L g {X | ∀ s∈A, (centeredCount L (gridCenter L s) X:ℝ) < ell*D} ≤
|
| 181 |
+
ENNReal.ofReal ((Q/D^2)^A.card) := by
|
| 182 |
+
obtain ⟨α₀,ell,D₀,Q,hα,hell,hD₀,hQ,hs⟩ := scaled_centered_low_counts
|
| 183 |
+
refine ⟨α₀,ell,max D₀ 2,Q,hα,hell,lt_of_lt_of_le hD₀ (le_max_left _ _),hQ,?_⟩
|
| 184 |
+
intro K n L D α hK hLK hDN hDD hαl hαu g hg A
|
| 185 |
+
have hL : 1 ≤ L.val := by rw [hLK]; exact_mod_cast hK
|
| 186 |
+
have hD : 2 ≤ D := (le_max_right D₀ 2).trans hDD
|
| 187 |
+
have hn : 2≤n := by
|
| 188 |
+
have hp : 1 ≤ L.val^3 := one_le_pow₀ hL
|
| 189 |
+
have hmul : 2*L.val^3 ≤ (n:ℝ) := by
|
| 190 |
+
rw [hDN] at hD
|
| 191 |
+
exact (le_div_iff₀ (by positivity)).mp hD
|
| 192 |
+
have hn' : (2:ℝ)≤(n:ℝ) := by linarith
|
| 193 |
+
exact_mod_cast hn'
|
| 194 |
+
exact hs (Fin 3 → Fin K) n L D α hn hL hDN ((le_max_left D₀ 2).trans hDD) hαl hαu
|
| 195 |
+
g hg (gridCenter L) (gridCenter_separated hLK) A
|
| 196 |
+
|
| 197 |
+
end
|
| 198 |
+
end HardSphere.CellOrbital
|
| 199 |
+
|
| 200 |
+
end
|
| 201 |
+
end
|
| 202 |
+
end
|
| 203 |
+
end
|
| 204 |
+
end
|
| 205 |
+
end
|
| 206 |
+
end
|
| 207 |
+
end
|
| 208 |
+
|
| 209 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/Chi.lean
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Collisions.BalancedInsertion
|
| 3 |
+
import OAI.Analysis.HardSphere.Orbitals.Bump
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open MeasureTheory Filter Set
|
| 9 |
+
open scoped ENNReal Topology BigOperators
|
| 10 |
+
open scoped BigOperators ComplexConjugate
|
| 11 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 14 |
+
open scoped ENNReal ComplexConjugate
|
| 15 |
+
open ProbabilityTheory
|
| 16 |
+
namespace HardSphere.CellOrbital
|
| 17 |
+
open MeasureTheory Set Filter PeriodicCutoff TightCutoff
|
| 18 |
+
open scoped ComplexConjugate
|
| 19 |
+
|
| 20 |
+
lemma dist_coord_le_torusDistance (L : Length) (x y : Torus L) (j : Fin 3) :
|
| 21 |
+
dist (x j) (y j) ≤ torusDistance L x y := by
|
| 22 |
+
calc
|
| 23 |
+
_ = Real.sqrt (dist (x j) (y j)^2) := (Real.sqrt_sq (dist_nonneg)).symm
|
| 24 |
+
_ ≤ _ := Real.sqrt_le_sqrt (Finset.single_le_sum
|
| 25 |
+
(fun k _ ↦ sq_nonneg (dist (x k) (y k))) (Finset.mem_univ j))
|
| 26 |
+
|
| 27 |
+
def chi (L : Length) (δ : ℝ) (x y : Torus L) : ℝ := bump L (8*δ) x y ^ 2
|
| 28 |
+
|
| 29 |
+
def count {n : ℕ} (L : Length) (δ : ℝ) (x : Torus L) (X : Configuration n L) : ℝ :=
|
| 30 |
+
∑ i, chi L δ x (X i)
|
| 31 |
+
|
| 32 |
+
lemma chi_bounds (L : Length) (δ : ℝ) (x y : Torus L) : 0 ≤ chi L δ x y ∧ chi L δ x y ≤ 1 := by
|
| 33 |
+
constructor
|
| 34 |
+
· exact sq_nonneg _
|
| 35 |
+
· change bump L (8*δ) x y ^ 2 ≤ 1
|
| 36 |
+
nlinarith [(bump_bounds L (8*δ) x y).1,(bump_bounds L (8*δ) x y).2]
|
| 37 |
+
|
| 38 |
+
lemma chi_eq_one_of_reaches {L : Length} {δ r : ℝ} (hδ : 0<δ) (hrδ : r ≤ δ)
|
| 39 |
+
(x z : Torus L) (hz : ∃ y∈tsupport (normalized L δ x).orbital, torusDistance L y z ≤ 2*r) :
|
| 40 |
+
chi L δ x z=1 := by
|
| 41 |
+
obtain ⟨y,hy,hyz⟩ := hz
|
| 42 |
+
have hyn := TightCutoff.near_subset_box L.val hδ x (normalized_support hδ x hy)
|
| 43 |
+
have hbox : z∈box L.val ((8*δ)/2) x := by
|
| 44 |
+
intro j _
|
| 45 |
+
change dist (z j) (x j) ≤ (8*δ)/2
|
| 46 |
+
have hb : dist (y j) (x j) ≤ 2*δ := (Set.mem_univ_pi.mp hyn) j
|
| 47 |
+
have hg := (dist_coord_le_torusDistance L y z j).trans hyz
|
| 48 |
+
have ht := dist_triangle (z j) (y j) (x j)
|
| 49 |
+
rw [dist_comm (z j) (y j)] at ht
|
| 50 |
+
linarith
|
| 51 |
+
rw [chi,bump_eq_one (by positivity) x hbox,one_pow]
|
| 52 |
+
|
| 53 |
+
lemma closeLabels_card_le_count {n : ℕ} {L : Length} {δ r : ℝ} (hδ : 0<δ) (hrδ : r ≤ δ)
|
| 54 |
+
(x : Torus L) (X : Configuration n L) :
|
| 55 |
+
((closeLabels r (normalized L δ x) X).card : ℝ) ≤ count L δ x X := by
|
| 56 |
+
classical
|
| 57 |
+
calc
|
| 58 |
+
_ = ∑ i∈closeLabels r (normalized L δ x) X, chi L δ x (X i) := by
|
| 59 |
+
rw [Finset.sum_eq_card_nsmul (b:= (1:ℝ)) (fun i hi ↦ ?_)]
|
| 60 |
+
· simp
|
| 61 |
+
· exact chi_eq_one_of_reaches hδ hrδ x (X i) (Finset.mem_filter.mp hi).2
|
| 62 |
+
_ ≤ _ := Finset.sum_le_sum_of_subset_of_nonneg (Finset.subset_univ _)
|
| 63 |
+
(fun j _ _ ↦ (chi_bounds L δ x (X j)).1)
|
| 64 |
+
|
| 65 |
+
lemma orbitals_separated {S : Type*} {L : Length} {r : ℝ} (hr : r ≤ 1/100)
|
| 66 |
+
(c : S → Torus L) (hc : ∀ z v, z≠v → 1 ≤ dist (c z) (c v)) :
|
| 67 |
+
∀ z v : S, z≠v → ∀ x : Torus L, (normalized L (1/100) (c v)).orbital x≠0 →
|
| 68 |
+
¬ ∃ y∈tsupport (normalized L (1/100) (c z)).orbital, torusDistance L y x ≤ 2*r := by
|
| 69 |
+
intro z v hzv x hx ⟨y,hy,hyx⟩
|
| 70 |
+
have hxb := TightCutoff.near_subset_box L.val (by norm_num : (0:ℝ)<1/100) (c v)
|
| 71 |
+
(normalized_support (by norm_num) (c v) (subset_closure hx))
|
| 72 |
+
have hyb := TightCutoff.near_subset_box L.val (by norm_num : (0:ℝ)<1/100) (c z)
|
| 73 |
+
(normalized_support (by norm_num) (c z) hy)
|
| 74 |
+
have hd : dist (c z) (c v) ≤ (6:ℝ)/100 := by
|
| 75 |
+
apply (dist_pi_le_iff (by norm_num)).mpr
|
| 76 |
+
intro j
|
| 77 |
+
have hxj : dist (x j) (c v j) ≤ 2*(1/100) := Set.mem_univ_pi.mp hxb j
|
| 78 |
+
have hyj : dist (y j) (c z j) ≤ 2*(1/100) := Set.mem_univ_pi.mp hyb j
|
| 79 |
+
have hyxj := (dist_coord_le_torusDistance L y x j).trans hyx
|
| 80 |
+
have ht := dist_triangle4 (c z j) (y j) (x j) (c v j)
|
| 81 |
+
rw [dist_comm (c z j) (y j)] at ht
|
| 82 |
+
linarith
|
| 83 |
+
linarith [hc z v hzv]
|
| 84 |
+
|
| 85 |
+
theorem physical_deficiency : ∃ C B E : ℝ, 0<C ∧ 0<B ∧ 0<E ∧
|
| 86 |
+
∀ (S : Type) [Fintype S] [Nonempty S] [DecidableEq S]
|
| 87 |
+
(n : ℕ) (L : Length) (r : ℝ), 0<r → r ≤ 1/100 → 0<n → 1/100 ≤ L.val →
|
| 88 |
+
∀ (g : Jet n L), IsGroundVector n L r g →
|
| 89 |
+
∀ (c : S → Torus L), (∀ z v, z≠v → 1 ≤ dist (c z) (c v)) →
|
| 90 |
+
∀ (k m : ℕ), C*B*(k+m)*r^3 ≤ 1/4 →
|
| 91 |
+
∀ u : Jet n L, u∈dirichletDomain n L r →
|
| 92 |
+
(∀ᵐ X ∂volume, u.1 X≠0 → ∀ z, count L (1/100) (c z) X ≤ k) →
|
| 93 |
+
m*Fintype.card S*(energy g/(n:ℝ)-C*(E+B*(k+m)*r))*‖u.1‖^2 ≤
|
| 94 |
+
energy u-energy g*‖u.1‖^2 := by
|
| 95 |
+
obtain ⟨C,hC,hdef⟩ := deficiency_penalty_cells
|
| 96 |
+
obtain ⟨B,E,hB,hE,hw⟩ := uniform_orbitals
|
| 97 |
+
refine ⟨C,B,E,hC,hB,hE,?_⟩
|
| 98 |
+
intro S _ _ _ n L r hr hrδ hn hL g hg c hc k m hs u hu hk
|
| 99 |
+
apply hdef S n L r hr hn g hg (fun z ↦ normalized L (1/100) (c z))
|
| 100 |
+
(fun z ↦ (hw L hL (c z)).1) (fun z ↦ (hw L hL (c z)).2.1)
|
| 101 |
+
(orbitals_separated hrδ c hc) k m B E
|
| 102 |
+
(fun z ↦ (hw L hL (c z)).2.2.1) (fun z ↦ (hw L hL (c z)).2.2.2.1) hs u hu
|
| 103 |
+
filter_upwards [hk] with X hX huX z
|
| 104 |
+
exact_mod_cast (closeLabels_card_le_count (by norm_num) hrδ (c z) X).trans (hX huX z)
|
| 105 |
+
|
| 106 |
+
end HardSphere.CellOrbital
|
| 107 |
+
|
| 108 |
+
end
|
| 109 |
+
|
| 110 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/Chi2.lean
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Orbitals.Chi
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.LabelLift
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open MeasureTheory Filter Set
|
| 9 |
+
open scoped ENNReal Topology BigOperators
|
| 10 |
+
open scoped BigOperators ComplexConjugate
|
| 11 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 14 |
+
open scoped ENNReal ComplexConjugate
|
| 15 |
+
open ProbabilityTheory
|
| 16 |
+
namespace HardSphere.CellOrbital
|
| 17 |
+
open MeasureTheory Set Filter PeriodicCutoff TightCutoff
|
| 18 |
+
open scoped ComplexConjugate
|
| 19 |
+
|
| 20 |
+
def chiOne (L : Length) (δ : ℝ) (x : Torus L) : SmoothMultiplier 1 L :=
|
| 21 |
+
(raw L (8*δ) x).mul (raw L (8*δ) x)
|
| 22 |
+
|
| 23 |
+
lemma chiOne_apply (L : Length) (δ : ℝ) (x : Torus L) (X : Configuration 1 L) :
|
| 24 |
+
(chiOne L δ x).toFun X=(chi L δ x (X 0) : ℂ) := by
|
| 25 |
+
simp only [chiOne,SmoothMultiplier.mul,Pi.mul_apply,raw,SmoothMultiplier.ofSmooth,chi]
|
| 26 |
+
rw [Complex.ofReal_pow,pow_two]
|
| 27 |
+
|
| 28 |
+
def countMultiplier (n : ℕ) (L : Length) (δ : ℝ) (x : Torus L) : SmoothMultiplier n L :=
|
| 29 |
+
SmoothMultiplier.sum (fun i : Fin n ↦ (chiOne L δ x).liftLabel n i)
|
| 30 |
+
|
| 31 |
+
lemma countMultiplier_apply (n : ℕ) (L : Length) (δ : ℝ) (x : Torus L) (X : Configuration n L) :
|
| 32 |
+
(countMultiplier n L δ x).toFun X=(count L δ x X : ℂ) := by
|
| 33 |
+
change (∑ i : Fin n, (chiOne L δ x).toFun (fun _ ↦ X i)) = _
|
| 34 |
+
simp_rw [chiOne_apply]
|
| 35 |
+
exact (Complex.ofReal_sum _ _).symm
|
| 36 |
+
|
| 37 |
+
lemma countMultiplier_real (n : ℕ) (L : Length) (δ : ℝ) (x : Torus L) (X : Configuration n L) :
|
| 38 |
+
conj ((countMultiplier n L δ x).toFun X)=(countMultiplier n L δ x).toFun X := by
|
| 39 |
+
rw [countMultiplier_apply,Complex.conj_ofReal]
|
| 40 |
+
|
| 41 |
+
lemma count_nonneg {n : ℕ} (L : Length) (δ : ℝ) (x : Torus L) (X : Configuration n L) :
|
| 42 |
+
0 ≤ count L δ x X := Finset.sum_nonneg fun _ _ ↦ (chi_bounds _ _ _ _).1
|
| 43 |
+
|
| 44 |
+
lemma chiOne_partial (L : Length) (δ : ℝ) (x y : Torus L) (j : Fin 3) :
|
| 45 |
+
coordDerivative 1 L (chiOne L δ x).toFun (0,j) (fun _ ↦ y)=
|
| 46 |
+
2*(bump L (8*δ) x y : ℂ)*coordDerivative 1 L (raw L (8*δ) x).toFun (0,j) (fun _ ↦ y) := by
|
| 47 |
+
have he := congrFun (coordDerivative_mul ((raw L (8*δ) x).smooth.differentiable (by simp))
|
| 48 |
+
((raw L (8*δ) x).smooth.differentiable (by simp)) (0,j)) (fun _ ↦ y)
|
| 49 |
+
change coordDerivative 1 L ((raw L (8*δ) x).toFun * (raw L (8*δ) x).toFun) (0,j) _ = _
|
| 50 |
+
rw [he]
|
| 51 |
+
change (bump L (8*δ) x y : ℂ)*_+(bump L (8*δ) x y : ℂ)*_=_
|
| 52 |
+
ring
|
| 53 |
+
|
| 54 |
+
lemma countMultiplier_partial (n : ℕ) (L : Length) (δ : ℝ) (x : Torus L)
|
| 55 |
+
(p : Direction n) (X : Configuration n L) :
|
| 56 |
+
coordDerivative n L (countMultiplier n L δ x).toFun p X=
|
| 57 |
+
coordDerivative 1 L (chiOne L δ x).toFun (0,p.2) (fun _ ↦ X p.1) := by
|
| 58 |
+
classical
|
| 59 |
+
rw [countMultiplier,SmoothMultiplier.partial_sum]
|
| 60 |
+
simp_rw [SmoothMultiplier.partial_liftLabel]
|
| 61 |
+
simp
|
| 62 |
+
|
| 63 |
+
lemma chiOne_partial_sq_le {L : Length} {δ M : ℝ} (hδ : 0<δ) (hM : 0 ≤ M)
|
| 64 |
+
(hb : ∀ t : ℝ, |deriv Real.smoothTransition t| ≤ M) (x y : Torus L) (j : Fin 3) :
|
| 65 |
+
‖coordDerivative 1 L (chiOne L δ x).toFun (0,j) (fun _ ↦ y)‖^2 ≤
|
| 66 |
+
(4*(24*Real.pi^2*M^2/(8*δ)^2))*chi L δ x y := by
|
| 67 |
+
rw [chiOne_partial,norm_mul,norm_mul,mul_pow,mul_pow,Complex.norm_real,Real.norm_eq_abs,sq_abs]
|
| 68 |
+
rw [show ‖(2:ℂ)‖=2 by norm_num]
|
| 69 |
+
have h := mul_le_mul_of_nonneg_left (raw_partial_sq_le (by positivity : 0<8*δ) hM hb x y j)
|
| 70 |
+
(show 0 ≤ 4*(bump L (8*δ) x y)^2 by positivity)
|
| 71 |
+
dsimp [chi]
|
| 72 |
+
nlinarith
|
| 73 |
+
|
| 74 |
+
lemma countMultiplier_gradient_le {n : ℕ} {L : Length} {δ M : ℝ} (hδ : 0<δ) (hM : 0 ≤ M)
|
| 75 |
+
(hb : ∀ t : ℝ, |deriv Real.smoothTransition t| ≤ M) (x : Torus L) (X : Configuration n L) :
|
| 76 |
+
(∑ p : Direction n, ‖coordDerivative n L (countMultiplier n L δ x).toFun p X‖^2) ≤
|
| 77 |
+
(3*(4*(24*Real.pi^2*M^2/(8*δ)^2)))*count L δ x X := by
|
| 78 |
+
simp_rw [countMultiplier_partial]
|
| 79 |
+
rw [Fintype.sum_prod_type]
|
| 80 |
+
calc
|
| 81 |
+
_ ≤ ∑ i : Fin n, ∑ _j : Fin 3, (4*(24*Real.pi^2*M^2/(8*δ)^2))*chi L δ x (X i) := by
|
| 82 |
+
exact Finset.sum_le_sum fun i _ ↦ Finset.sum_le_sum fun j _ ↦ chiOne_partial_sq_le hδ hM hb x (X i) j
|
| 83 |
+
_ = _ := by
|
| 84 |
+
simp only [Finset.sum_const,Finset.card_univ,Fintype.card_fin,nsmul_eq_mul,count,Finset.mul_sum]
|
| 85 |
+
apply Finset.sum_congr rfl
|
| 86 |
+
intro i _
|
| 87 |
+
ring
|
| 88 |
+
|
| 89 |
+
end HardSphere.CellOrbital
|
| 90 |
+
|
| 91 |
+
end
|
| 92 |
+
|
| 93 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/FieldApply.lean
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.CoordinateLine
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open MeasureTheory Filter Set
|
| 8 |
+
open scoped Topology ENNReal BigOperators
|
| 9 |
+
|
| 10 |
+
namespace L2Contraction
|
| 11 |
+
variable {α E F G : Type*} [MeasurableSpace α] {μ : Measure α}
|
| 12 |
+
[NormedAddCommGroup E] [NormedAddCommGroup F] [NormedAddCommGroup G]
|
| 13 |
+
|
| 14 |
+
lemma unifIntegrable_of_domination {ι : Type*} {p : ℝ≥0∞}
|
| 15 |
+
{f : ι → α → E} {b : α → F} (hp : 1 ≤ p) (hp' : p ≠ ∞) (hb : MemLp b p μ)
|
| 16 |
+
(hf_meas : ∀ index, AEStronglyMeasurable (f index) μ)
|
| 17 |
+
(hbound : ∀ n, ∀ᵐ x ∂μ, ‖f n x‖ ≤ ‖b x‖) : UnifIntegrable f p μ := by
|
| 18 |
+
refine unifIntegrable_iff.2 fun ε hε ↦ ?_
|
| 19 |
+
obtain ⟨δ, hδ, hi⟩ := unifIntegrable_iff.1 (unifIntegrable_const (ι := ι) hp hp' hb) ε hε
|
| 20 |
+
refine ⟨δ, hδ, fun index region hμs ↦ le_trans ?_ (hi index region hμs)⟩
|
| 21 |
+
exact eLpNorm_mono_ae (hf_meas index).restrict (ae_restrict_of_ae (hbound index))
|
| 22 |
+
|
| 23 |
+
lemma tendsto_toLp_of_domination [IsFiniteMeasure μ]
|
| 24 |
+
{f : ℕ → α → E} {g : α → E} {b : α → F}
|
| 25 |
+
(hf : ∀ n, MemLp (f n) 2 μ) (hg : MemLp g 2 μ) (hb : MemLp b 2 μ)
|
| 26 |
+
(hbound : ∀ n, ∀ᵐ x ∂μ, ‖f n x‖ ≤ ‖b x‖)
|
| 27 |
+
(hl : ∀ᵐ x ∂μ, Tendsto (fun n ↦ f n x) atTop (𝓝 (g x))) :
|
| 28 |
+
Tendsto (fun n ↦ (hf n).toLp (f n)) atTop (𝓝 (hg.toLp g)) := by
|
| 29 |
+
apply (Lp.tendsto_Lp_iff_tendsto_eLpNorm'' f hf g hg).2
|
| 30 |
+
exact tendsto_Lp_finite_of_tendsto_ae (by norm_num) (by norm_num)
|
| 31 |
+
(fun n ↦ (hf n).aestronglyMeasurable) hg
|
| 32 |
+
(unifIntegrable_of_domination (by norm_num) (by norm_num) hb
|
| 33 |
+
(fun index ↦ (hf index).aestronglyMeasurable) hbound) hl
|
| 34 |
+
|
| 35 |
+
section Field
|
| 36 |
+
variable [NormedSpace ℝ E] [NormedSpace ℝ F]
|
| 37 |
+
(A : α → E →L[ℝ] F) (hA : AEStronglyMeasurable A μ)
|
| 38 |
+
(hbound : ∀ᵐ x ∂μ, ‖A x‖ ≤ 1)
|
| 39 |
+
include hA hbound
|
| 40 |
+
|
| 41 |
+
lemma field_memLp (v : Lp E 2 μ) : MemLp (fun x ↦ A x (v x)) 2 μ := by
|
| 42 |
+
apply (Lp.memLp v).of_le ((continuous_fst.clm_apply continuous_snd).comp_aestronglyMeasurable
|
| 43 |
+
(hA.prodMk (Lp.aestronglyMeasurable v)))
|
| 44 |
+
filter_upwards [hbound] with x hx
|
| 45 |
+
exact (A x).le_opNorm (v x) |>.trans (by nlinarith [norm_nonneg (v x)])
|
| 46 |
+
|
| 47 |
+
def fieldApply (v : Lp E 2 μ) : Lp F 2 μ :=
|
| 48 |
+
(field_memLp A hA hbound v).toLp _
|
| 49 |
+
|
| 50 |
+
lemma coe_fieldApply (v : Lp E 2 μ) :
|
| 51 |
+
fieldApply A hA hbound v =ᵐ[μ] fun x ↦ A x (v x) :=
|
| 52 |
+
MemLp.coeFn_toLp _
|
| 53 |
+
|
| 54 |
+
lemma norm_fieldApply_le (v : Lp E 2 μ) : ‖fieldApply A hA hbound v‖ ≤ ‖v‖ := by
|
| 55 |
+
apply Lp.norm_le_norm_of_ae_le
|
| 56 |
+
filter_upwards [coe_fieldApply A hA hbound v, hbound] with x hx hb
|
| 57 |
+
rw [hx]
|
| 58 |
+
exact (A x).le_opNorm (v x) |>.trans (by nlinarith [norm_nonneg (v x)])
|
| 59 |
+
|
| 60 |
+
lemma fieldApply_sub (v w : Lp E 2 μ) :
|
| 61 |
+
fieldApply A hA hbound (v - w) = fieldApply A hA hbound v - fieldApply A hA hbound w := by
|
| 62 |
+
apply Lp.ext
|
| 63 |
+
filter_upwards [coe_fieldApply A hA hbound (v - w), coe_fieldApply A hA hbound v,
|
| 64 |
+
coe_fieldApply A hA hbound w, Lp.coeFn_sub v w,
|
| 65 |
+
Lp.coeFn_sub (fieldApply A hA hbound v) (fieldApply A hA hbound w)] with x h1 h2 h3 h4 h5
|
| 66 |
+
simp only [h1, h4, Pi.sub_apply, map_sub, h5, h2, h3]
|
| 67 |
+
|
| 68 |
+
lemma norm_fieldApply_sub_le (v w : Lp E 2 μ) :
|
| 69 |
+
‖fieldApply A hA hbound v - fieldApply A hA hbound w‖ ≤ ‖v - w‖ := by
|
| 70 |
+
rw [← fieldApply_sub]
|
| 71 |
+
exact norm_fieldApply_le A hA hbound _
|
| 72 |
+
end Field
|
| 73 |
+
|
| 74 |
+
variable [NormedSpace ℝ E] [NormedSpace ℝ F]
|
| 75 |
+
|
| 76 |
+
lemma coeff_meas (A : G → E →L[ℝ] F) (hA : Continuous A) (u : Lp G 2 μ) :
|
| 77 |
+
AEStronglyMeasurable (fun x ↦ A (u x)) μ :=
|
| 78 |
+
hA.comp_aestronglyMeasurable (Lp.aestronglyMeasurable u)
|
| 79 |
+
|
| 80 |
+
lemma tendsto_fieldApply_fixed [IsFiniteMeasure μ]
|
| 81 |
+
(A : G → E →L[ℝ] F) (hA : Continuous A) (hb : ∀ z, ‖A z‖ ≤ 1)
|
| 82 |
+
(u : ℕ → Lp G 2 μ) (u₀ : Lp G 2 μ)
|
| 83 |
+
(hu : ∀ᵐ x ∂μ, Tendsto (fun n ↦ u n x) atTop (𝓝 (u₀ x))) (v : Lp E 2 μ) :
|
| 84 |
+
Tendsto (fun n ↦ fieldApply (fun x ↦ A (u n x)) (coeff_meas A hA (u n))
|
| 85 |
+
(Eventually.of_forall (fun x ↦ hb (u n x))) v) atTop
|
| 86 |
+
(𝓝 (fieldApply (fun x ↦ A (u₀ x)) (coeff_meas A hA u₀)
|
| 87 |
+
(Eventually.of_forall (fun x ↦ hb (u₀ x))) v)) := by
|
| 88 |
+
apply tendsto_toLp_of_domination _ _ (Lp.memLp v)
|
| 89 |
+
· intro n
|
| 90 |
+
exact Eventually.of_forall fun x ↦ (A (u n x)).le_opNorm (v x) |>.trans
|
| 91 |
+
(by nlinarith [norm_nonneg (v x), hb (u n x)])
|
| 92 |
+
· filter_upwards [hu] with x hx
|
| 93 |
+
exact ((ContinuousLinearMap.apply ℝ F (v x)).continuous.tendsto _).comp
|
| 94 |
+
(hA.continuousAt.tendsto.comp hx)
|
| 95 |
+
|
| 96 |
+
lemma tendsto_fieldApply [IsFiniteMeasure μ]
|
| 97 |
+
(A : G → E →L[ℝ] F) (hA : Continuous A) (hb : ∀ z, ‖A z‖ ≤ 1)
|
| 98 |
+
(u : ℕ → Lp G 2 μ) (u₀ : Lp G 2 μ)
|
| 99 |
+
(hu : ∀ᵐ x ∂μ, Tendsto (fun n ↦ u n x) atTop (𝓝 (u₀ x)))
|
| 100 |
+
(v : ℕ → Lp E 2 μ) (v₀ : Lp E 2 μ) (hv : Tendsto v atTop (𝓝 v₀)) :
|
| 101 |
+
Tendsto (fun n ↦ fieldApply (fun x ↦ A (u n x)) (coeff_meas A hA (u n))
|
| 102 |
+
(Eventually.of_forall (fun x ↦ hb (u n x))) (v n)) atTop
|
| 103 |
+
(𝓝 (fieldApply (fun x ↦ A (u₀ x)) (coeff_meas A hA u₀)
|
| 104 |
+
(Eventually.of_forall (fun x ↦ hb (u₀ x))) v₀)) := by
|
| 105 |
+
have hdiff : Tendsto (fun n ↦
|
| 106 |
+
fieldApply (fun x ↦ A (u n x)) (coeff_meas A hA (u n))
|
| 107 |
+
(Eventually.of_forall (fun x ↦ hb (u n x))) (v n) -
|
| 108 |
+
fieldApply (fun x ↦ A (u n x)) (coeff_meas A hA (u n))
|
| 109 |
+
(Eventually.of_forall (fun x ↦ hb (u n x))) v₀) atTop (𝓝 0) := by
|
| 110 |
+
apply squeeze_zero_norm (fun n ↦ norm_fieldApply_sub_le _ _ _ (v n) v₀)
|
| 111 |
+
simpa using (hv.sub_const v₀).norm
|
| 112 |
+
simpa only [sub_add_cancel, zero_add] using
|
| 113 |
+
hdiff.add (tendsto_fieldApply_fixed A hA hb u u₀ hu v₀)
|
| 114 |
+
|
| 115 |
+
end L2Contraction
|
| 116 |
+
|
| 117 |
+
namespace HardSphere
|
| 118 |
+
|
| 119 |
+
structure SmoothContraction where
|
| 120 |
+
toFun : ℂ → ℂ
|
| 121 |
+
smooth : ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) toFun
|
| 122 |
+
zero : toFun 0 = 0
|
| 123 |
+
derivative_le : ∀ z, ‖fderiv ℝ toFun z‖ ≤ 1
|
| 124 |
+
|
| 125 |
+
namespace SmoothContraction
|
| 126 |
+
variable (f : SmoothContraction)
|
| 127 |
+
|
| 128 |
+
lemma lipschitz : LipschitzWith 1 f.toFun :=
|
| 129 |
+
lipschitzWith_of_nnnorm_fderiv_le (f.smooth.differentiable (by simp))
|
| 130 |
+
(fun z ↦ NNReal.coe_le_coe.mp (f.derivative_le z))
|
| 131 |
+
|
| 132 |
+
lemma derivative_continuous : Continuous (fderiv ℝ f.toFun) :=
|
| 133 |
+
f.smooth.continuous_fderiv (by simp)
|
| 134 |
+
|
| 135 |
+
lemma coordDerivative_comp {N : ℕ} {L : Length} {a : ℝ}
|
| 136 |
+
(g : SmoothTest N L a) (p : Direction N) :
|
| 137 |
+
coordDerivative N L (f.toFun ∘ g.toFun) p = fun X ↦
|
| 138 |
+
fderiv ℝ f.toFun (g.toFun X) (coordDerivative N L g.toFun p X) := by
|
| 139 |
+
funext X
|
| 140 |
+
unfold coordDerivative
|
| 141 |
+
rw [show (fun Y : LiftedConfiguration N ↦ (f.toFun ∘ g.toFun) (project N L Y)) =
|
| 142 |
+
f.toFun ∘ (fun Y ↦ g.toFun (project N L Y)) from rfl]
|
| 143 |
+
rw [fderiv_comp (representative N L X)
|
| 144 |
+
(f.smooth.differentiable (by simp)).differentiableAt
|
| 145 |
+
(g.smooth.differentiable (by simp)).differentiableAt]
|
| 146 |
+
simp only [ContinuousLinearMap.comp_apply, project_representative]
|
| 147 |
+
|
| 148 |
+
def composeTest {N : ℕ} {L : Length} {a : ℝ}
|
| 149 |
+
(g : SmoothTest N L a) : SmoothTest N L a where
|
| 150 |
+
toFun := f.toFun ∘ g.toFun
|
| 151 |
+
smooth := f.smooth.comp g.smooth
|
| 152 |
+
compact := g.compact.comp_left f.zero
|
| 153 |
+
support_allowed := (tsupport_comp_subset f.zero g.toFun).trans g.support_allowed
|
| 154 |
+
memLp := f.lipschitz.comp_memLp f.zero g.memLp
|
| 155 |
+
partial_memLp := by
|
| 156 |
+
intro p
|
| 157 |
+
rw [f.coordDerivative_comp g p]
|
| 158 |
+
have hm := f.derivative_continuous.comp_aestronglyMeasurable g.memLp.aestronglyMeasurable
|
| 159 |
+
apply (g.partial_memLp p).of_le
|
| 160 |
+
((continuous_fst.clm_apply continuous_snd).comp_aestronglyMeasurable
|
| 161 |
+
(hm.prodMk (g.partial_memLp p).aestronglyMeasurable))
|
| 162 |
+
exact Eventually.of_forall fun X ↦
|
| 163 |
+
(fderiv ℝ f.toFun (g.toFun X)).le_opNorm _ |>.trans
|
| 164 |
+
(by nlinarith [f.derivative_le (g.toFun X),
|
| 165 |
+
norm_nonneg (coordDerivative N L g.toFun p X)])
|
| 166 |
+
|
| 167 |
+
def onScalar {N : ℕ} {L : Length} (u : ScalarL2 N L) : ScalarL2 N L :=
|
| 168 |
+
f.lipschitz.compLp f.zero u
|
| 169 |
+
|
| 170 |
+
def onPartial {N : ℕ} {L : Length} (u v : ScalarL2 N L) : ScalarL2 N L :=
|
| 171 |
+
L2Contraction.fieldApply (fun X ↦ fderiv ℝ f.toFun (u X))
|
| 172 |
+
(L2Contraction.coeff_meas _ f.derivative_continuous u)
|
| 173 |
+
(Eventually.of_forall (fun X ↦ f.derivative_le (u X))) v
|
| 174 |
+
|
| 175 |
+
def onJet {N : ℕ} {L : Length} (u : Jet N L) : Jet N L :=
|
| 176 |
+
(f.onScalar u.1, fun p ↦ f.onPartial u.1 (u.2 p))
|
| 177 |
+
|
| 178 |
+
lemma coe_onScalar {N : ℕ} {L : Length} (u : ScalarL2 N L) :
|
| 179 |
+
f.onScalar u =ᵐ[volume] fun X ↦ f.toFun (u X) := f.lipschitz.coeFn_compLp f.zero u
|
| 180 |
+
|
| 181 |
+
lemma coe_onPartial {N : ℕ} {L : Length} (u v : ScalarL2 N L) :
|
| 182 |
+
f.onPartial u v =ᵐ[volume] fun X ↦ fderiv ℝ f.toFun (u X) (v X) :=
|
| 183 |
+
L2Contraction.coe_fieldApply _ _ _ v
|
| 184 |
+
|
| 185 |
+
lemma jet_composeTest {N : ℕ} {L : Length} {a : ℝ}
|
| 186 |
+
(g : SmoothTest N L a) : (f.composeTest g).jet = f.onJet g.jet := by
|
| 187 |
+
apply Prod.ext
|
| 188 |
+
· apply Lp.ext
|
| 189 |
+
filter_upwards [(f.composeTest g).memLp.coeFn_toLp, f.coe_onScalar g.jet.1,
|
| 190 |
+
g.memLp.coeFn_toLp] with X h1 h2 h3
|
| 191 |
+
change g.jet.1 X = g.toFun X at h3
|
| 192 |
+
change (f.composeTest g).jet.1 X = f.toFun (g.toFun X) at h1
|
| 193 |
+
change (f.composeTest g).jet.1 X = f.onScalar g.jet.1 X
|
| 194 |
+
rw [h1, h2, h3]
|
| 195 |
+
· funext p
|
| 196 |
+
apply Lp.ext
|
| 197 |
+
filter_upwards [(f.composeTest g).partial_memLp p |>.coeFn_toLp,
|
| 198 |
+
f.coe_onPartial g.jet.1 (g.jet.2 p), g.memLp.coeFn_toLp,
|
| 199 |
+
(g.partial_memLp p).coeFn_toLp] with X h1 h2 h3 h4
|
| 200 |
+
change (f.composeTest g).jet.2 p X = coordDerivative N L (f.toFun ∘ g.toFun) p X at h1
|
| 201 |
+
change g.jet.1 X = g.toFun X at h3
|
| 202 |
+
change g.jet.2 p X = coordDerivative N L g.toFun p X at h4
|
| 203 |
+
change (f.composeTest g).jet.2 p X = f.onPartial g.jet.1 (g.jet.2 p) X
|
| 204 |
+
rw [h1, h2]
|
| 205 |
+
rw [f.coordDerivative_comp g p, h3, h4]
|
| 206 |
+
|
| 207 |
+
lemma onJet_mem_domain {N : ℕ} {L : Length} {a : ℝ} {u : Jet N L}
|
| 208 |
+
(hu : u ∈ dirichletDomain N L a) : f.onJet u ∈ dirichletDomain N L a := by
|
| 209 |
+
obtain ⟨v, hv, hl⟩ := mem_closure_iff_seq_limit.mp hu
|
| 210 |
+
choose g hg using hv
|
| 211 |
+
have hl' : Tendsto (fun n ↦ (g n).jet) atTop (𝓝 u) := by simpa only [hg] using hl
|
| 212 |
+
have hs := (continuous_fst.tendsto u).comp hl'
|
| 213 |
+
obtain ⟨ns, hns, hae⟩ := (tendstoInMeasure_of_tendsto_Lp hs).exists_seq_tendsto_ae
|
| 214 |
+
have hlim : Tendsto (fun n ↦ (f.composeTest (g (ns n))).jet) atTop (𝓝 (f.onJet u)) := by
|
| 215 |
+
simp only [f.jet_composeTest]
|
| 216 |
+
apply Tendsto.prodMk_nhds
|
| 217 |
+
· exact (f.lipschitz.continuous_compLp f.zero).continuousAt.tendsto.comp
|
| 218 |
+
(hs.comp hns.tendsto_atTop)
|
| 219 |
+
· apply tendsto_pi_nhds.mpr
|
| 220 |
+
intro p
|
| 221 |
+
apply L2Contraction.tendsto_fieldApply _ f.derivative_continuous f.derivative_le
|
| 222 |
+
_ u.1 hae _ (u.2 p)
|
| 223 |
+
exact ((continuous_apply p).tendsto u.2).comp
|
| 224 |
+
((continuous_snd.tendsto u).comp (hl'.comp hns.tendsto_atTop))
|
| 225 |
+
exact isClosed_closure.mem_of_tendsto hlim
|
| 226 |
+
(Eventually.of_forall fun n ↦ subset_closure ⟨f.composeTest (g (ns n)), rfl⟩)
|
| 227 |
+
|
| 228 |
+
lemma energy_onJet_le {N : ℕ} {L : Length} (u : Jet N L) :
|
| 229 |
+
energy (f.onJet u) ≤ energy u := by
|
| 230 |
+
apply Finset.sum_le_sum
|
| 231 |
+
intro p _
|
| 232 |
+
apply pow_le_pow_left₀ (norm_nonneg _) _ 2
|
| 233 |
+
exact L2Contraction.norm_fieldApply_le _
|
| 234 |
+
(L2Contraction.coeff_meas _ f.derivative_continuous u.1)
|
| 235 |
+
(Eventually.of_forall fun X ↦ f.derivative_le (u.1 X)) (u.2 p)
|
| 236 |
+
|
| 237 |
+
end SmoothContraction
|
| 238 |
+
end HardSphere
|
| 239 |
+
|
| 240 |
+
open scoped RealInnerProductSpace
|
| 241 |
+
|
| 242 |
+
end
|
| 243 |
+
|
| 244 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/FreePathLawFiniteDeletion.lean
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.SliceNormSq
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
section
|
| 7 |
+
section
|
| 8 |
+
noncomputable section
|
| 9 |
+
open MeasureTheory Filter Set
|
| 10 |
+
open scoped Topology ENNReal BigOperators
|
| 11 |
+
open scoped RealInnerProductSpace
|
| 12 |
+
noncomputable section
|
| 13 |
+
open MeasureTheory Filter Set
|
| 14 |
+
open scoped Topology ENNReal BigOperators
|
| 15 |
+
namespace HardSphere
|
| 16 |
+
open MeasureTheory Wiener Set Filter
|
| 17 |
+
noncomputable section
|
| 18 |
+
|
| 19 |
+
instance freePathLaw_finite_deletion (N : ℕ) (L : Length) (t : ℝ) :
|
| 20 |
+
IsFiniteMeasure (freePathLaw N L t) := by unfold freePathLaw; infer_instance
|
| 21 |
+
instance killedPathLaw_finite_deletion (N : ℕ) (L : Length) (a t : ℝ) :
|
| 22 |
+
IsFiniteMeasure (killedPathLaw N L a t) := by unfold killedPathLaw; infer_instance
|
| 23 |
+
|
| 24 |
+
@[simp] lemma joinConfigurationPath_apply (m n : ℕ) (L : Length)
|
| 25 |
+
(p : ConfigurationPath m L × ConfigurationPath n L) (t : Time) :
|
| 26 |
+
joinConfigurationPath m n L p t=joinConfiguration m n L (p.1 t,p.2 t) := rfl
|
| 27 |
+
|
| 28 |
+
lemma selected_reversal_integral {m n : ℕ} {L : Length} (u : ScalarL2 (m+n) L) (t : ℝ)
|
| 29 |
+
{h : ConfigurationPath m L → ℝ≥0∞} (hh : Measurable h)
|
| 30 |
+
(hrev : ∀ ω, h (reverseConfigurationPath m L ω)=h ω) :
|
| 31 |
+
(∫⁻ ω : ConfigurationPath m L, h ω*ENNReal.ofReal (sliceNormSq u (ω 1)) ∂freePathLaw m L t)=
|
| 32 |
+
∫⁻ ω : ConfigurationPath m L, h ω*ENNReal.ofReal (sliceNormSq u (ω 0)) ∂freePathLaw m L t := by
|
| 33 |
+
have hmeas : Measurable (fun ω : ConfigurationPath m L ↦ h ω*ENNReal.ofReal (sliceNormSq u (ω 0))) :=
|
| 34 |
+
hh.mul (((sliceNormSq_measurable u).comp (continuous_eval_const (0:Time)).measurable).ennreal_ofReal)
|
| 35 |
+
simpa only [reverseConfigurationPath_apply,reverseTime_zero,hrev] using
|
| 36 |
+
(reverse_freePath_preserving m L t).lintegral_comp hmeas
|
| 37 |
+
|
| 38 |
+
lemma deleted_path_integral_le {m n : ℕ} {L : Length} (u : ScalarL2 (m+n) L) (a t : ℝ)
|
| 39 |
+
{h : ConfigurationPath m L → ℝ≥0∞} (hh : Measurable h)
|
| 40 |
+
(hrev : ∀ ω, h (reverseConfigurationPath m L ω)=h ω) :
|
| 41 |
+
(∫⁻ ω : ConfigurationPath (m+n) L,
|
| 42 |
+
h (splitConfigurationPath m n L ω).1*ENNReal.ofReal (‖u (ω 0)‖*‖u (ω 1)‖)
|
| 43 |
+
∂killedPathLaw (m+n) L a t) ≤
|
| 44 |
+
ENNReal.ofReal ‖killedTransition n L a t‖*
|
| 45 |
+
∫⁻ ω : ConfigurationPath m L, h ω*ENNReal.ofReal (sliceNormSq u (ω 0)) ∂freePathLaw m L t := by
|
| 46 |
+
let F : ConfigurationPath (m+n) L → ℝ≥0∞ := fun ω ↦
|
| 47 |
+
h (splitConfigurationPath m n L ω).1*ENNReal.ofReal (‖u (ω 0)‖*‖u (ω 1)‖)
|
| 48 |
+
let G : ConfigurationPath m L × ConfigurationPath n L → ℝ≥0∞ := fun p ↦
|
| 49 |
+
h p.1*ENNReal.ofReal (‖u (joinConfiguration m n L (p.1 0,p.2 0))‖*
|
| 50 |
+
‖u (joinConfiguration m n L (p.1 1,p.2 1))‖)
|
| 51 |
+
have hu := (Lp.stronglyMeasurable u).measurable
|
| 52 |
+
have hF : Measurable F := by
|
| 53 |
+
exact (hh.comp ((splitConfigurationPath_continuous m n L).measurable.fst)).mul
|
| 54 |
+
(((hu.comp (continuous_eval_const (0:Time)).measurable).norm.mul
|
| 55 |
+
(hu.comp (continuous_eval_const (1:Time)).measurable).norm).ennreal_ofReal)
|
| 56 |
+
have hG : Measurable G := by
|
| 57 |
+
simpa only [F,G,Function.comp_def,split_joinConfigurationPath,joinConfigurationPath_apply]
|
| 58 |
+
using hF.comp (joinConfigurationPath_continuous m n L).measurable
|
| 59 |
+
have hS0 : Measurable (fun ω : ConfigurationPath m L ↦ h ω*ENNReal.ofReal (sliceNormSq u (ω 0))) :=
|
| 60 |
+
hh.mul (((sliceNormSq_measurable u).comp (continuous_eval_const (0:Time)).measurable).ennreal_ofReal)
|
| 61 |
+
have hS1 : Measurable (fun ω : ConfigurationPath m L ↦ h ω*ENNReal.ofReal (sliceNormSq u (ω 1))) :=
|
| 62 |
+
hh.mul (((sliceNormSq_measurable u).comp (continuous_eval_const (1:Time)).measurable).ennreal_ofReal)
|
| 63 |
+
have hj := (joinConfigurationPath_preserving m n L t).restrict_preimage
|
| 64 |
+
(staysAllowed_open (m+n) L a).measurableSet
|
| 65 |
+
have hd : ((freePathLaw m L t).prod (freePathLaw n L t)).restrict
|
| 66 |
+
(joinConfigurationPath m n L ⁻¹' staysAllowed (m+n) L a) ≤
|
| 67 |
+
(freePathLaw m L t).prod (killedPathLaw n L a t) := by
|
| 68 |
+
calc
|
| 69 |
+
_ ≤ ((freePathLaw m L t).prod (freePathLaw n L t)).restrict
|
| 70 |
+
(Set.univ ×ˢ staysAllowed n L a) :=
|
| 71 |
+
Measure.restrict_mono_set _ fun p hp ↦
|
| 72 |
+
⟨mem_univ _,staysAllowed_join_subset_bath m n L a hp⟩
|
| 73 |
+
_ = _ := by rw [← Measure.prod_restrict,Measure.restrict_univ]; rfl
|
| 74 |
+
have hq := bath_slice_quadratic_ae u a t
|
| 75 |
+
calc
|
| 76 |
+
_ = ∫⁻ p, G p ∂((freePathLaw m L t).prod (freePathLaw n L t)).restrict
|
| 77 |
+
(joinConfigurationPath m n L ⁻¹' staysAllowed (m+n) L a) := by
|
| 78 |
+
symm
|
| 79 |
+
simpa only [F,G,killedPathLaw,split_joinConfigurationPath,joinConfigurationPath_apply] using
|
| 80 |
+
hj.lintegral_comp hF
|
| 81 |
+
_ ≤ ∫⁻ p, G p ∂((freePathLaw m L t).prod (killedPathLaw n L a t)) :=
|
| 82 |
+
lintegral_mono' hd le_rfl
|
| 83 |
+
_ = ∫⁻ ω : ConfigurationPath m L, h ω*(∫⁻ η : ConfigurationPath n L,
|
| 84 |
+
ENNReal.ofReal (‖u (joinConfiguration m n L (ω 0,η 0))‖*
|
| 85 |
+
‖u (joinConfiguration m n L (ω 1,η 1))‖) ∂killedPathLaw n L a t) ∂freePathLaw m L t := by
|
| 86 |
+
rw [lintegral_prod _ hG.aemeasurable]
|
| 87 |
+
apply lintegral_congr
|
| 88 |
+
intro ω
|
| 89 |
+
dsimp only [G]
|
| 90 |
+
exact lintegral_const_mul _ (by
|
| 91 |
+
apply Measurable.ennreal_ofReal
|
| 92 |
+
apply Measurable.mul
|
| 93 |
+
all_goals
|
| 94 |
+
apply Measurable.norm
|
| 95 |
+
apply hu.comp
|
| 96 |
+
exact (joinConfiguration_continuous m n L).measurable.comp
|
| 97 |
+
(measurable_const.prodMk (continuous_eval_const _).measurable))
|
| 98 |
+
_ ≤ ∫⁻ ω : ConfigurationPath m L, h ω*(ENNReal.ofReal (‖killedTransition n L a t‖/2)*
|
| 99 |
+
(ENNReal.ofReal (sliceNormSq u (ω 0))+ENNReal.ofReal (sliceNormSq u (ω 1)))) ∂freePathLaw m L t := by
|
| 100 |
+
apply lintegral_mono_ae
|
| 101 |
+
filter_upwards [hq] with ω hω
|
| 102 |
+
exact mul_le_mul_right hω _
|
| 103 |
+
_ = ENNReal.ofReal (‖killedTransition n L a t‖/2)*
|
| 104 |
+
((∫⁻ ω : ConfigurationPath m L, h ω*ENNReal.ofReal (sliceNormSq u (ω 0)) ∂freePathLaw m L t)+
|
| 105 |
+
(∫⁻ ω : ConfigurationPath m L, h ω*ENNReal.ofReal (sliceNormSq u (ω 1)) ∂freePathLaw m L t)) := by
|
| 106 |
+
calc
|
| 107 |
+
_ = ∫⁻ ω : ConfigurationPath m L, ENNReal.ofReal (‖killedTransition n L a t‖/2)*
|
| 108 |
+
(h ω*ENNReal.ofReal (sliceNormSq u (ω 0))+h ω*ENNReal.ofReal (sliceNormSq u (ω 1)))
|
| 109 |
+
∂freePathLaw m L t := by
|
| 110 |
+
apply lintegral_congr
|
| 111 |
+
intro ω
|
| 112 |
+
rw [← mul_add,mul_left_comm]
|
| 113 |
+
_ = _ := by
|
| 114 |
+
calc
|
| 115 |
+
_ = ENNReal.ofReal (‖killedTransition n L a t‖/2)*
|
| 116 |
+
(∫⁻ ω : ConfigurationPath m L,
|
| 117 |
+
h ω*ENNReal.ofReal (sliceNormSq u (ω 0))+
|
| 118 |
+
h ω*ENNReal.ofReal (sliceNormSq u (ω 1)) ∂freePathLaw m L t) :=
|
| 119 |
+
lintegral_const_mul _ (hS0.add hS1)
|
| 120 |
+
_ = _ := by rw [lintegral_add_left hS0]
|
| 121 |
+
_ = _ := by
|
| 122 |
+
rw [selected_reversal_integral u t hh hrev,mul_add,← add_mul,
|
| 123 |
+
← ENNReal.ofReal_add (div_nonneg (norm_nonneg _) (by norm_num))
|
| 124 |
+
(div_nonneg (norm_nonneg _) (by norm_num)),add_halves]
|
| 125 |
+
end
|
| 126 |
+
end HardSphere
|
| 127 |
+
|
| 128 |
+
end
|
| 129 |
+
end
|
| 130 |
+
end
|
| 131 |
+
end
|
| 132 |
+
|
| 133 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/GridLowStationary.lean
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Operators.Stationary
|
| 3 |
+
import OAI.Analysis.HardSphere.Thermodynamics.LowCountAbove
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
|
| 9 |
+
section
|
| 10 |
+
noncomputable section
|
| 11 |
+
open MeasureTheory Set Filter
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
namespace HardSphere.CellOrbital
|
| 14 |
+
open Wiener
|
| 15 |
+
|
| 16 |
+
theorem grid_stationary_low_above (Amin : ℝ) : ∃ α₀ ell D₀ Q : ℝ,
|
| 17 |
+
Amin≤α₀ ∧ 0<α₀ ∧ 0<ell ∧ 0<D₀ ∧ 0<Q ∧
|
| 18 |
+
∀ (K n : ℕ) [Nontrivial (Fin n)] (L : Length) (D α : ℝ),
|
| 19 |
+
1≤K → L.val=(K:ℝ) → D=(n:ℝ)/L.val^3 → D₀≤D → α₀/2≤α → α≤2*α₀ →
|
| 20 |
+
∀ (g : Jet n L), IsGroundVector n L (α/D) g →
|
| 21 |
+
∀ (T : ℝ), 0≤T → ∀ (q : Time) (A : Finset (Fin 3→Fin K)),
|
| 22 |
+
groundPathLaw n L (α/D) T g {ω | ∀v∈A,(centeredCount L (gridCenter L v) (ω q):ℝ)<ell*D}≤
|
| 23 |
+
ENNReal.ofReal ((Q/D^2)^A.card) := by
|
| 24 |
+
obtain ⟨α₀,ell,D₀,Q,hA,hα,hell,hD₀,hQ,hs⟩ := scaled_joint_low_counts_above Amin
|
| 25 |
+
refine ⟨α₀,ell,D₀,Q,hA,hα,hell,hD₀,hQ,?_⟩
|
| 26 |
+
intro K n inst L D α hK hLK hDN hDD hαl hαu g hg T hT q A
|
| 27 |
+
have hL : 1≤L.val := by rw [hLK]; exact_mod_cast hK
|
| 28 |
+
have hn : 2≤n := Nat.succ_le_of_lt (by simpa only [Fintype.card_fin] using (Fintype.one_lt_card_iff_nontrivial.mpr (inferInstance : Nontrivial (Fin n))))
|
| 29 |
+
have hset : MeasurableSet {X : Configuration n L | ∀v∈A,(centeredCount L (gridCenter L v) X:ℝ)<ell*D} := by
|
| 30 |
+
simpa only [Set.ofPred_forall, Function.comp_def] using MeasurableSet.iInter (fun site ↦
|
| 31 |
+
MeasurableSet.iInter (fun _ : site∈A ↦ measurableSet_lt
|
| 32 |
+
((measurable_of_countable (fun count : ℕ ↦ (count:ℝ))).comp
|
| 33 |
+
(centeredCount_measurable L (gridCenter L site))) measurable_const))
|
| 34 |
+
have hm := (hg.groundPathLaw_marginal T hT q).measure_preimage hset.nullMeasurableSet
|
| 35 |
+
change groundPathLaw n L (α/D) T g ((fun ω ↦ ω q) ⁻¹' {X | ∀v∈A,(centeredCount L (gridCenter L v) X:ℝ)<ell*D})≤_
|
| 36 |
+
rw [hm]
|
| 37 |
+
apply (groundPositionLaw_le_joint (mul_pos hell (hD₀.trans_le hDD)) (gridCenter L) A g _ hset ?_).trans
|
| 38 |
+
· exact ENNReal.ofReal_le_ofReal (hs (Fin 3→Fin K) n L D α hn hL hDN hDD hαl hαu g hg
|
| 39 |
+
(gridCenter L) (gridCenter_separated hLK) A)
|
| 40 |
+
· intro X hX v hv
|
| 41 |
+
exact (count_le_centeredCount L (gridCenter L v) X).trans (hX v hv).le
|
| 42 |
+
|
| 43 |
+
end HardSphere.CellOrbital
|
| 44 |
+
|
| 45 |
+
end
|
| 46 |
+
end
|
| 47 |
+
|
| 48 |
+
end
|
| 49 |
+
|
| 50 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/Joint.lean
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Orbitals.Profile
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.FinsetProd
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open MeasureTheory Filter Set
|
| 9 |
+
open scoped ENNReal Topology BigOperators
|
| 10 |
+
open scoped BigOperators ComplexConjugate
|
| 11 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 14 |
+
open scoped ENNReal ComplexConjugate
|
| 15 |
+
open ProbabilityTheory
|
| 16 |
+
namespace HardSphere.CellOrbital
|
| 17 |
+
open MeasureTheory Set Filter PeriodicCutoff TightCutoff
|
| 18 |
+
open scoped ComplexConjugate
|
| 19 |
+
|
| 20 |
+
lemma bump_separated {S : Type*} {L : Length} (c : S → Torus L)
|
| 21 |
+
(hc : ∀ z v, z≠v → 1 ≤ dist (c z) (c v)) (z v : S) (hzv : z≠v) (y : Torus L) :
|
| 22 |
+
bump L (8*(1/100)) (c z) y=0 ∨ bump L (8*(1/100)) (c v) y=0 := by
|
| 23 |
+
by_contra hn
|
| 24 |
+
push Not at hn
|
| 25 |
+
have hbz := TightCutoff.near_subset_box L.val (by norm_num : (0:ℝ)<8*(1/100)) (c z)
|
| 26 |
+
(bump_support (by norm_num) (c z) (subset_closure hn.1))
|
| 27 |
+
have hbv := TightCutoff.near_subset_box L.val (by norm_num : (0:ℝ)<8*(1/100)) (c v)
|
| 28 |
+
(bump_support (by norm_num) (c v) (subset_closure hn.2))
|
| 29 |
+
have hd : dist (c z) (c v) ≤ (32:ℝ)/100 := by
|
| 30 |
+
apply (dist_pi_le_iff (by norm_num)).mpr
|
| 31 |
+
intro j
|
| 32 |
+
have hzj : dist (y j) (c z j) ≤ 2*(8*(1/100)) := Set.mem_univ_pi.mp hbz j
|
| 33 |
+
have hvj : dist (y j) (c v j) ≤ 2*(8*(1/100)) := Set.mem_univ_pi.mp hbv j
|
| 34 |
+
have ht := dist_triangle (c z j) (y j) (c v j)
|
| 35 |
+
rw [dist_comm (c z j) (y j)] at ht
|
| 36 |
+
linarith
|
| 37 |
+
linarith [hc z v hzv]
|
| 38 |
+
|
| 39 |
+
lemma cutoff_partials_disjoint {S : Type*} {n : ℕ} {L : Length} (c : S → Torus L)
|
| 40 |
+
(hc : ∀ z v, z≠v → 1 ≤ dist (c z) (c v)) (h : ℝ) (z v : S) (hzv : z≠v)
|
| 41 |
+
(p : Direction n) (X : Configuration n L) :
|
| 42 |
+
coordDerivative n L (cutoff n L (1/100) (c z) h).toFun p X=0 ∨
|
| 43 |
+
coordDerivative n L (cutoff n L (1/100) (c v) h).toFun p X=0 := by
|
| 44 |
+
rcases bump_separated c hc z v hzv (X p.1) with hz | hv
|
| 45 |
+
· left
|
| 46 |
+
simp only [cutoff_partial,countMultiplier_partial,chiOne_partial,hz,Complex.ofReal_zero,mul_zero,zero_mul]
|
| 47 |
+
· right
|
| 48 |
+
simp only [cutoff_partial,countMultiplier_partial,chiOne_partial,hv,Complex.ofReal_zero,mul_zero,zero_mul]
|
| 49 |
+
|
| 50 |
+
def joint {S : Type*} [DecidableEq S] (n : ℕ) (L : Length) (c : S → Torus L) (h : ℝ) (A : Finset S) :
|
| 51 |
+
SmoothMultiplier n L := SmoothMultiplier.finsetProd A (fun s ↦ cutoff n L (1/100) (c s) h)
|
| 52 |
+
|
| 53 |
+
lemma joint_apply {S : Type*} [DecidableEq S] (n : ℕ) (L : Length) (c : S → Torus L)
|
| 54 |
+
(h : ℝ) (A : Finset S) (X : Configuration n L) :
|
| 55 |
+
(joint n L c h A).toFun X=(∏ s∈A, (profile h (count L (1/100) (c s) X) : ℂ)) := by
|
| 56 |
+
change (∏ s∈A, (cutoff n L (1/100) (c s) h).toFun X)=_
|
| 57 |
+
simp_rw [cutoff_apply]
|
| 58 |
+
|
| 59 |
+
lemma joint_real {S : Type*} [DecidableEq S] (n : ℕ) (L : Length) (c : S → Torus L)
|
| 60 |
+
(h : ℝ) (A : Finset S) (X : Configuration n L) :
|
| 61 |
+
conj ((joint n L c h A).toFun X)=(joint n L c h A).toFun X := by
|
| 62 |
+
simp only [joint_apply,map_prod,Complex.conj_ofReal]
|
| 63 |
+
|
| 64 |
+
lemma joint_partial {S : Type*} [DecidableEq S] (n : ℕ) (L : Length) (c : S → Torus L)
|
| 65 |
+
(h : ℝ) (A : Finset S) (p : Direction n) (X : Configuration n L) :
|
| 66 |
+
coordDerivative n L (joint n L c h A).toFun p X=
|
| 67 |
+
∑ s∈A, (joint n L c h (A.erase s)).toFun X*
|
| 68 |
+
coordDerivative n L (cutoff n L (1/100) (c s) h).toFun p X := by
|
| 69 |
+
exact SmoothMultiplier.partial_finsetProd A _ p X
|
| 70 |
+
|
| 71 |
+
lemma joint_gradient_le {S : Type*} [DecidableEq S] {n : ℕ} {L : Length} {h M : ℝ}
|
| 72 |
+
(hh : 0<h) (hM : 0 ≤ M) (hb : ∀ t : ℝ, |deriv Real.smoothTransition t| ≤ M)
|
| 73 |
+
(c : S → Torus L) (hc : ∀ z v, z≠v → 1 ≤ dist (c z) (c v))
|
| 74 |
+
(A : Finset S) (X : Configuration n L) :
|
| 75 |
+
(∑ p : Direction n, ‖coordDerivative n L (joint n L c h A).toFun p X‖^2) ≤
|
| 76 |
+
((2*M^2*(3*(4*(24*Real.pi^2*M^2/(8*(1/100))^2))))/h)*
|
| 77 |
+
∑ s∈A, ‖(joint n L c h (A.erase s)).toFun X‖^2 := by
|
| 78 |
+
have he (p : Direction n) :
|
| 79 |
+
‖coordDerivative n L (joint n L c h A).toFun p X‖^2=
|
| 80 |
+
∑ s∈A, ‖(joint n L c h (A.erase s)).toFun X‖^2*
|
| 81 |
+
‖coordDerivative n L (cutoff n L (1/100) (c s) h).toFun p X‖^2 := by
|
| 82 |
+
rw [joint_partial,norm_sq_sum_of_disjoint]
|
| 83 |
+
· simp_rw [norm_mul,mul_pow]
|
| 84 |
+
· intro z hz v hv hzv
|
| 85 |
+
rcases cutoff_partials_disjoint c hc h z v hzv p X with h1 | h2
|
| 86 |
+
· exact Or.inl (by rw [h1,mul_zero])
|
| 87 |
+
· exact Or.inr (by rw [h2,mul_zero])
|
| 88 |
+
simp_rw [he]
|
| 89 |
+
rw [Finset.sum_comm]
|
| 90 |
+
simp_rw [← Finset.mul_sum]
|
| 91 |
+
rw [Finset.mul_sum]
|
| 92 |
+
apply Finset.sum_le_sum
|
| 93 |
+
intro s hs
|
| 94 |
+
calc
|
| 95 |
+
_ ≤ ‖(joint n L c h (A.erase s)).toFun X‖^2 * ((2*M^2*(3*(4*(24*Real.pi^2*M^2/(8*(1/100))^2))))/h) :=
|
| 96 |
+
mul_le_mul_of_nonneg_left (cutoff_gradient_le (δ:=1/100) (by norm_num) hh hM hb (c s) X) (sq_nonneg _)
|
| 97 |
+
_ = _ := mul_comm _ _
|
| 98 |
+
|
| 99 |
+
end HardSphere.CellOrbital
|
| 100 |
+
|
| 101 |
+
end
|
| 102 |
+
|
| 103 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/Joint2.lean
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Orbitals.Joint
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.CoeScalar
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open MeasureTheory Filter Set
|
| 9 |
+
open scoped ENNReal Topology BigOperators
|
| 10 |
+
open scoped BigOperators ComplexConjugate
|
| 11 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 14 |
+
open scoped ENNReal ComplexConjugate
|
| 15 |
+
open ProbabilityTheory
|
| 16 |
+
namespace HardSphere.CellOrbital
|
| 17 |
+
open MeasureTheory Set Filter
|
| 18 |
+
open scoped ComplexConjugate
|
| 19 |
+
|
| 20 |
+
lemma joint_support {S : Type*} [DecidableEq S] {n : ℕ} {L : Length} {h : ℝ} (hh : 0<h)
|
| 21 |
+
(c : S → Torus L) (A : Finset S) (u : ScalarL2 n L) :
|
| 22 |
+
∀ᵐ X ∂volume, ((joint n L c h A).onScalar u) X≠0 → ∀ s∈A, count L (1/100) (c s) X ≤ 2*h := by
|
| 23 |
+
filter_upwards [(joint n L c h A).coe_onScalar u] with X hX hu s hs
|
| 24 |
+
have hj : (joint n L c h A).toFun X≠0 := fun hz ↦ hu (by rw [hX,hz,zero_mul])
|
| 25 |
+
rw [joint_apply] at hj
|
| 26 |
+
have he : (profile h (count L (1/100) (c s) X) : ℂ)≠0 :=
|
| 27 |
+
(Finset.prod_ne_zero_iff.mp hj) s hs
|
| 28 |
+
by_contra hn
|
| 29 |
+
have hz := profile_zero hh (le_of_lt (not_le.mp hn))
|
| 30 |
+
exact he (by rw [hz,Complex.ofReal_zero])
|
| 31 |
+
|
| 32 |
+
lemma joint_gradient_norm_le {S : Type*} [DecidableEq S] {n : ℕ} {L : Length} {h M : ℝ}
|
| 33 |
+
(hh : 0<h) (hM : 0 ≤ M) (hb : ∀ t : ℝ, |deriv Real.smoothTransition t| ≤ M)
|
| 34 |
+
(c : S → Torus L) (hc : ∀ z v, z≠v → 1 ≤ dist (c z) (c v))
|
| 35 |
+
(A : Finset S) (u : ScalarL2 n L) :
|
| 36 |
+
(∑ p : Direction n, ‖(joint n L c h A).derivativeScalar p u‖^2) ≤
|
| 37 |
+
((2*M^2*(3*(4*(24*Real.pi^2*M^2/(8*(1/100))^2))))/h)*
|
| 38 |
+
∑ s∈A, ‖(joint n L c h (A.erase s)).onScalar u‖^2 :=
|
| 39 |
+
SmoothMultiplier.gradient_norm_le A _ _ _ (joint_gradient_le hh hM hb c hc A) u
|
| 40 |
+
|
| 41 |
+
end HardSphere.CellOrbital
|
| 42 |
+
|
| 43 |
+
end
|
| 44 |
+
|
| 45 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/JointEmptyScalar.lean
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Orbitals.Joint2
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.FinsetEraseRecursion
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
section
|
| 9 |
+
noncomputable section
|
| 10 |
+
open MeasureTheory Filter Set
|
| 11 |
+
open scoped ENNReal Topology BigOperators
|
| 12 |
+
noncomputable section
|
| 13 |
+
open scoped BigOperators ComplexConjugate
|
| 14 |
+
noncomputable section
|
| 15 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 16 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 17 |
+
noncomputable section
|
| 18 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 19 |
+
open scoped ENNReal ComplexConjugate
|
| 20 |
+
open ProbabilityTheory
|
| 21 |
+
namespace HardSphere.CellOrbital
|
| 22 |
+
open MeasureTheory Set Filter PeriodicCutoff
|
| 23 |
+
open scoped ComplexConjugate
|
| 24 |
+
noncomputable section
|
| 25 |
+
|
| 26 |
+
lemma joint_empty_onScalar {S : Type*} [DecidableEq S] {n : ℕ} {L : Length}
|
| 27 |
+
(c : S → Torus L) (h : ℝ) (u : ScalarL2 n L) : (joint n L c h ∅).onScalar u=u := by
|
| 28 |
+
apply Lp.ext
|
| 29 |
+
filter_upwards [(joint n L c h ∅).coe_onScalar u] with X hX
|
| 30 |
+
simpa only [joint_apply,Finset.prod_empty,one_mul] using hX
|
| 31 |
+
|
| 32 |
+
theorem joint_low_counts : ∃ C B E G : ℝ, 0<C ∧ 0<B ∧ 0<E ∧ 0<G ∧
|
| 33 |
+
∀ (S : Type) [DecidableEq S] (n : ℕ) (L : Length) (r : ℝ),
|
| 34 |
+
0<r → r ≤ 1/100 → 0<n → 1/100 ≤ L.val →
|
| 35 |
+
∀ (g : Jet n L), IsGroundVector n L r g →
|
| 36 |
+
∀ (c : S → Torus L), (∀ z v, z≠v → 1 ≤ dist (c z) (c v)) →
|
| 37 |
+
∀ (k m : ℕ) (h : ℝ), 0<h → 2*h ≤ k → C*B*(k+m)*r^3 ≤ 1/4 →
|
| 38 |
+
0 < m*(energy g/(n:ℝ)-C*(E+B*(k+m)*r)) →
|
| 39 |
+
∀ A : Finset S, ‖(joint n L c h A).onScalar g.1‖^2 ≤
|
| 40 |
+
(G/(h*(m*(energy g/(n:ℝ)-C*(E+B*(k+m)*r)))))^A.card := by
|
| 41 |
+
obtain ⟨C,B,E,hC,hB,hE,hdef⟩ := physical_deficiency
|
| 42 |
+
obtain ⟨M,hM,hb⟩ := exists_transition_bound
|
| 43 |
+
let G : ℝ := 2*M^2*(3*(4*(24*Real.pi^2*M^2/(8*(1/100))^2)))
|
| 44 |
+
have hG : 0<G := by dsimp [G]; positivity
|
| 45 |
+
refine ⟨C,B,E,G,hC,hB,hE,hG,?_⟩
|
| 46 |
+
intro S _ n L r hr hrd hn hL g hg c hc k m h hh hk hsmall hgap A
|
| 47 |
+
let γ : ℝ := m*(energy g/(n:ℝ)-C*(E+B*(k+m)*r))
|
| 48 |
+
have hγ : 0<γ := hgap
|
| 49 |
+
let q : ℝ := G/(h*γ)
|
| 50 |
+
have hq : 0 ≤ q := by dsimp [q]; positivity
|
| 51 |
+
change ‖(joint n L c h A).onScalar g.1‖^2 ≤ q^A.card
|
| 52 |
+
apply finset_erase_recursion (fun A ↦ ‖(joint n L c h A).onScalar g.1‖^2) q hq
|
| 53 |
+
· rw [joint_empty_onScalar,hg.2.2.1]
|
| 54 |
+
norm_num
|
| 55 |
+
· intro A hA
|
| 56 |
+
let : Nonempty A := hA.to_subtype
|
| 57 |
+
let u := (joint n L c h A).onJet g
|
| 58 |
+
have hu : u∈dirichletDomain n L r := (joint n L c h A).onJet_mem_domain hg.1
|
| 59 |
+
have hs : ∀ᵐ X ∂volume, u.1 X≠0 → ∀ z : A, count L (1/100) (c z) X ≤ k := by
|
| 60 |
+
filter_upwards [joint_support hh c A g.1] with X hX huX z
|
| 61 |
+
exact (hX huX z z.property).trans hk
|
| 62 |
+
have hp := hdef A n L r hr hrd hn hL g hg (fun z : A ↦ c z)
|
| 63 |
+
(fun z v hzv ↦ hc z v (fun he ↦ hzv (Subtype.ext he))) k m hsmall u hu hs
|
| 64 |
+
have hm := hg.smooth_multiplier_identity (joint n L c h A) (joint_real n L c h A)
|
| 65 |
+
have hbnd := joint_gradient_norm_le hh hM.le hb c hc A g.1
|
| 66 |
+
have hpen : γ*((A.card : ℝ)*‖(joint n L c h A).onScalar g.1‖^2) ≤
|
| 67 |
+
(G/h)*∑ s∈A, ‖(joint n L c h (A.erase s)).onScalar g.1‖^2 := by
|
| 68 |
+
calc
|
| 69 |
+
_ = m*Fintype.card A*(energy g/(n:ℝ)-C*(E+B*(k+m)*r))*‖u.1‖^2 := by
|
| 70 |
+
simp only [Fintype.card_coe,u,SmoothMultiplier.onJet_fst,γ]
|
| 71 |
+
ring
|
| 72 |
+
_ ≤ energy u-energy g*‖u.1‖^2 := hp
|
| 73 |
+
_ = ∑ p : Direction n, ‖(joint n L c h A).derivativeScalar p g.1‖^2 := hm
|
| 74 |
+
_ ≤ _ := hbnd
|
| 75 |
+
have hdiv := (le_div_iff₀ hγ).mpr (by simpa only [mul_comm γ] using hpen)
|
| 76 |
+
have he : ((G/h)*∑ s∈A, ‖(joint n L c h (A.erase s)).onScalar g.1‖^2)/γ =
|
| 77 |
+
q*∑ s∈A, ‖(joint n L c h (A.erase s)).onScalar g.1‖^2 := by
|
| 78 |
+
dsimp [q]
|
| 79 |
+
field_simp
|
| 80 |
+
simpa only [he] using hdiv
|
| 81 |
+
|
| 82 |
+
end
|
| 83 |
+
end HardSphere.CellOrbital
|
| 84 |
+
|
| 85 |
+
noncomputable section
|
| 86 |
+
open MeasureTheory Filter Set
|
| 87 |
+
open scoped ENNReal Topology
|
| 88 |
+
|
| 89 |
+
end
|
| 90 |
+
end
|
| 91 |
+
end
|
| 92 |
+
end
|
| 93 |
+
end
|
| 94 |
+
end
|
| 95 |
+
end
|
| 96 |
+
|
| 97 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/OrbitalOperator.lean
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Thermodynamics.OccupationBound
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
section
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
open MeasureTheory Set Filter
|
| 10 |
+
open scoped ENNReal BigOperators Topology
|
| 11 |
+
namespace HardSphere
|
| 12 |
+
|
| 13 |
+
namespace Orbital
|
| 14 |
+
variable {N : ℕ} (hN : 0<N) {L : Length}
|
| 15 |
+
|
| 16 |
+
lemma sliceIntegral_memLp (ψ : ScalarL2 N L) : MemLp (sliceIntegral hN ψ) 2 volume := by
|
| 17 |
+
have hf := ground_slice_memLp hN ψ
|
| 18 |
+
have ha := Phase.memLp_integral_norm hf
|
| 19 |
+
have hh : MemLp (fun Y ↦ ∫x : Torus L,ψ (insertFirst hN x Y)) 2 volume := by
|
| 20 |
+
refine ha.mono' hf.aestronglyMeasurable.integral_prod_right' ?_
|
| 21 |
+
exact Eventually.of_forall fun Y ↦ norm_integral_le_integral_norm _
|
| 22 |
+
exact hh.const_smul ((Real.sqrt (L.val^3))⁻¹ : ℝ)
|
| 23 |
+
|
| 24 |
+
lemma map_ae (ψ : ScalarL2 N L) : (map hN ψ : Configuration (N-1) L→ℂ)=ᵐ[volume] sliceIntegral hN ψ :=
|
| 25 |
+
by
|
| 26 |
+
unfold map
|
| 27 |
+
exact MemLp.coeFn_toLp _
|
| 28 |
+
|
| 29 |
+
lemma map_add (f g : ScalarL2 N L) : map hN (f+g)=map hN f+map hN g := by
|
| 30 |
+
apply Lp.ext
|
| 31 |
+
have hp := (bathFirst_preserving hN L).quasiMeasurePreserving.tendsto_ae.eventually (Lp.coeFn_add f g)
|
| 32 |
+
have hs := Measure.ae_ae_of_ae_prod hp
|
| 33 |
+
filter_upwards [map_ae hN (f+g),map_ae hN f,map_ae hN g,Lp.coeFn_add (map hN f) (map hN g),hs,
|
| 34 |
+
Phase.memLp_slices (ground_slice_memLp hN f),Phase.memLp_slices (ground_slice_memLp hN g)] with Y hh hf hg hsum hY hfi hgi
|
| 35 |
+
rw [hh,hsum]
|
| 36 |
+
change sliceIntegral hN (f+g) Y=(map hN f) Y+(map hN g) Y
|
| 37 |
+
rw [hf,hg]
|
| 38 |
+
unfold sliceIntegral
|
| 39 |
+
rw [←smul_add,←integral_add (hfi.integrable (by norm_num)) (hgi.integrable (by norm_num))]
|
| 40 |
+
congr 1
|
| 41 |
+
apply integral_congr_ae
|
| 42 |
+
exact hY
|
| 43 |
+
|
| 44 |
+
lemma map_smul (c : ℂ) (f : ScalarL2 N L) : map hN (c • f)=c • map hN f := by
|
| 45 |
+
apply Lp.ext
|
| 46 |
+
have hp := (bathFirst_preserving hN L).quasiMeasurePreserving.tendsto_ae.eventually (Lp.coeFn_smul c f)
|
| 47 |
+
have hs := Measure.ae_ae_of_ae_prod hp
|
| 48 |
+
filter_upwards [map_ae hN (c•f),map_ae hN f,Lp.coeFn_smul c (map hN f),hs] with Y hh hf hc hY
|
| 49 |
+
rw [hh,hc]
|
| 50 |
+
change sliceIntegral hN (c•f) Y=c • (map hN f) Y
|
| 51 |
+
rw [hf]
|
| 52 |
+
change (Real.sqrt (L.val^3))⁻¹ • (∫x : Torus L,(c•f) (insertFirst hN x Y))=
|
| 53 |
+
c • ((Real.sqrt (L.val^3))⁻¹ • ∫x : Torus L,f (insertFirst hN x Y))
|
| 54 |
+
rw [integral_congr_ae hY]
|
| 55 |
+
simp only [Pi.smul_apply]
|
| 56 |
+
rw [integral_smul]
|
| 57 |
+
exact smul_comm _ _ _
|
| 58 |
+
|
| 59 |
+
section
|
| 60 |
+
attribute [local instance] scalarL2_addCommMonoid scalarL2_module
|
| 61 |
+
|
| 62 |
+
def linear : ScalarL2 N L →ₗ[ℂ] ScalarL2 (N-1) L where
|
| 63 |
+
toFun := map hN
|
| 64 |
+
map_add' := map_add hN
|
| 65 |
+
map_smul' := map_smul hN
|
| 66 |
+
|
| 67 |
+
lemma map_norm_sq (ψ : ScalarL2 N L) : ‖map hN ψ‖^2=occupation hN ψ := by
|
| 68 |
+
have hLp := L.property
|
| 69 |
+
rw [scalar_norm_sq_integral]
|
| 70 |
+
have hsi := integral_congr_ae ((map_ae hN ψ).fun_comp fun x ↦ ‖x‖^2)
|
| 71 |
+
simp only [Function.comp_def] at hsi
|
| 72 |
+
rw [hsi]
|
| 73 |
+
unfold sliceIntegral occupation
|
| 74 |
+
simp only [norm_smul,Real.norm_eq_abs,mul_pow,sq_abs,inv_pow,
|
| 75 |
+
integral_const_mul,Real.sq_sqrt (by positivity : 0≤L.val^3)]
|
| 76 |
+
|
| 77 |
+
lemma map_norm_le (ψ : ScalarL2 N L) : ‖map hN ψ‖≤‖ψ‖ := by
|
| 78 |
+
have hh := (map_norm_sq hN ψ).trans_le (occupation_le_norm_sq hN ψ)
|
| 79 |
+
nlinarith [norm_nonneg (map hN ψ),norm_nonneg ψ]
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
end
|
| 83 |
+
|
| 84 |
+
lemma norm_sq (ψ : ScalarL2 N L) : ‖continuous hN ψ‖^2=occupation hN ψ := map_norm_sq hN ψ
|
| 85 |
+
|
| 86 |
+
end Orbital
|
| 87 |
+
|
| 88 |
+
lemma occupation_smul {N : ℕ} (hN : 0<N) {L : Length} (c : ℝ) (ψ : ScalarL2 N L) :
|
| 89 |
+
occupation hN (c • ψ)=c^2*occupation hN ψ := by
|
| 90 |
+
rw [←Orbital.norm_sq,←Orbital.norm_sq]
|
| 91 |
+
have hh := (Orbital.continuous hN (L:=L)).map_smul_of_tower c ψ
|
| 92 |
+
rw [hh,norm_smul,mul_pow,Real.norm_eq_abs,sq_abs]
|
| 93 |
+
|
| 94 |
+
end HardSphere
|
| 95 |
+
end
|
| 96 |
+
end
|
| 97 |
+
|
| 98 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/PhysicalOrbitalReference.lean
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Comparison.PhysicalAffinity
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
section
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
open MeasureTheory ProbabilityTheory Set
|
| 10 |
+
open scoped ENNReal BigOperators
|
| 11 |
+
namespace HardSphere.Comparison
|
| 12 |
+
variable {X Y : Type*} [MeasurableSpace X] [MeasurableSpace Y]
|
| 13 |
+
|
| 14 |
+
def orbitalObservationEquiv : ((Y×X)×X)≃ᵐ(X×X×Y) where
|
| 15 |
+
toFun p := (p.1.2,p.2,p.1.1)
|
| 16 |
+
invFun p := ((p.2.2,p.1),p.2.1)
|
| 17 |
+
left_inv _ := rfl
|
| 18 |
+
right_inv _ := rfl
|
| 19 |
+
measurable_toFun := by change Measurable (fun p : (Y×X)×X ↦ (p.1.2,p.2,p.1.1)); fun_prop
|
| 20 |
+
measurable_invFun := by change Measurable (fun p : X×X×Y ↦ ((p.2.2,p.1),p.2.1)); fun_prop
|
| 21 |
+
|
| 22 |
+
def tagBathSwapEquiv : ((X×Y)×X)≃ᵐ((Y×X)×X) where
|
| 23 |
+
toFun p := ((p.1.2,p.1.1),p.2)
|
| 24 |
+
invFun p := ((p.1.2,p.1.1),p.2)
|
| 25 |
+
left_inv _ := rfl
|
| 26 |
+
right_inv _ := rfl
|
| 27 |
+
measurable_toFun := by change Measurable (fun p : (X×Y)×X ↦ ((p.1.2,p.1.1),p.2)); fun_prop
|
| 28 |
+
measurable_invFun := by change Measurable (fun p : (Y×X)×X ↦ ((p.1.2,p.1.1),p.2)); fun_prop
|
| 29 |
+
|
| 30 |
+
def orbitalSwapEquiv : ((Y×X)×X)≃ᵐ((Y×X)×X) where
|
| 31 |
+
toFun p := ((p.1.1,p.2),p.1.2)
|
| 32 |
+
invFun p := ((p.1.1,p.2),p.1.2)
|
| 33 |
+
left_inv _ := rfl
|
| 34 |
+
right_inv _ := rfl
|
| 35 |
+
measurable_toFun := by change Measurable (fun p : (Y×X)×X ↦ ((p.1.1,p.2),p.1.2)); fun_prop
|
| 36 |
+
measurable_invFun := by change Measurable (fun p : (Y×X)×X ↦ ((p.1.1,p.2),p.1.2)); fun_prop
|
| 37 |
+
|
| 38 |
+
lemma tagBathSwap_preserving (μ : Measure X) (ν : Measure Y) [SFinite μ] [SFinite ν] :
|
| 39 |
+
MeasurePreserving (tagBathSwapEquiv (X:=X) (Y:=Y)) ((μ.prod ν).prod μ) ((ν.prod μ).prod μ) :=
|
| 40 |
+
(Measure.measurePreserving_swap (μ:=μ) (ν:=ν)).prod (MeasurePreserving.id μ)
|
| 41 |
+
|
| 42 |
+
lemma physical_unrestricted_affinity {n : ℕ} (μ : Measure X) (ν : Measure (Fin n→X))
|
| 43 |
+
[IsFiniteMeasure μ] [IsFiniteMeasure ν]
|
| 44 |
+
(f : (Fin n→X)×X→ℝ) (hfm : Measurable f) (hf : MemLp f 2 (ν.prod μ))
|
| 45 |
+
(hf0 : ∀p,0 ≤ f p) :
|
| 46 |
+
let P := ((μ.prod ν).withDensity (fun p ↦ ENNReal.ofReal (f (p.2,p.1)^2))).prod μ
|
| 47 |
+
measureAffinity (P.map (cellObservation true)) (P.map (cellObservation false))=
|
| 48 |
+
∫Y,(∫x,f (Y,x) ∂μ)^2 ∂ν := by
|
| 49 |
+
dsimp only
|
| 50 |
+
let P := ((μ.prod ν).withDensity (fun p ↦ ENNReal.ofReal (f (p.2,p.1)^2))).prod μ
|
| 51 |
+
let ξ := (ν.prod μ).prod μ
|
| 52 |
+
let g₁ := fun p : ((Fin n→X)×X)×X ↦ ENNReal.ofReal (f p.1^2)
|
| 53 |
+
let g₂ := fun p : ((Fin n→X)×X)×X ↦ ENNReal.ofReal (f (p.1.1,p.2)^2)
|
| 54 |
+
have hg₁ : Measurable g₁ := ((hfm.comp measurable_fst).pow_const 2).ennreal_ofReal
|
| 55 |
+
have hg₂ : Measurable g₂ := ((hfm.comp ((measurable_fst.comp measurable_fst).prodMk measurable_snd)).pow_const 2).ennreal_ofReal
|
| 56 |
+
have hD : P.map tagBathSwapEquiv=ξ.withDensity g₁ := by
|
| 57 |
+
dsimp only [P]
|
| 58 |
+
have hρ : Measurable (fun p : X×(Fin n→X) ↦ ENNReal.ofReal (f (p.2,p.1)^2)) := by fun_prop
|
| 59 |
+
rw [prod_withDensity_left hρ]
|
| 60 |
+
change (((μ.prod ν).prod μ).withDensity (g₁∘tagBathSwapEquiv)).map tagBathSwapEquiv=ξ.withDensity g₁
|
| 61 |
+
rw [map_density_comp _ _ tagBathSwapEquiv.measurable g₁ hg₁,(tagBathSwap_preserving μ ν).map_eq]
|
| 62 |
+
have hS : (ξ.withDensity g₁).map orbitalSwapEquiv=ξ.withDensity g₂ := by
|
| 63 |
+
change (ξ.withDensity (g₂∘orbitalSwapEquiv)).map orbitalSwapEquiv=ξ.withDensity g₂
|
| 64 |
+
rw [map_density_comp _ _ orbitalSwapEquiv.measurable g₂ hg₂]
|
| 65 |
+
change ((ξ.map (fun p ↦ ((p.1.1,p.2),p.1.2))).withDensity g₂)=_
|
| 66 |
+
rw [(swapLast_preserving μ ν).map_eq]
|
| 67 |
+
have he₁ : P.map (cellObservation true)=(ξ.withDensity g₁).map orbitalObservationEquiv := by
|
| 68 |
+
rw [←hD,Measure.map_map orbitalObservationEquiv.measurable tagBathSwapEquiv.measurable]
|
| 69 |
+
rfl
|
| 70 |
+
have he₂ : P.map (cellObservation false)=(ξ.withDensity g₂).map orbitalObservationEquiv := by
|
| 71 |
+
rw [←hS,←hD,Measure.map_map orbitalSwapEquiv.measurable tagBathSwapEquiv.measurable,
|
| 72 |
+
Measure.map_map orbitalObservationEquiv.measurable (orbitalSwapEquiv.measurable.comp tagBathSwapEquiv.measurable)]
|
| 73 |
+
rfl
|
| 74 |
+
have hi₁ : Integrable (fun p : ((Fin n→X)×X)×X ↦ f p.1^2) ξ :=
|
| 75 |
+
(memLp_two_iff_integrable_sq (hf.comp_fst μ).aestronglyMeasurable).1 (hf.comp_fst μ)
|
| 76 |
+
have hi₂ : Integrable (fun p : ((Fin n→X)×X)×X ↦ f (p.1.1,p.2)^2) ξ := by
|
| 77 |
+
have h := (hf.comp_fst μ).comp_measurePreserving (swapLast_preserving μ ν)
|
| 78 |
+
exact (memLp_two_iff_integrable_sq h.aestronglyMeasurable).1 h
|
| 79 |
+
have : IsFiniteMeasure (ξ.withDensity g₁) := isFiniteMeasure_withDensity_ofReal hi₁.2
|
| 80 |
+
have : IsFiniteMeasure (ξ.withDensity g₂) := isFiniteMeasure_withDensity_ofReal hi₂.2
|
| 81 |
+
change measureAffinity (P.map _) (P.map _)=_
|
| 82 |
+
rw [he₁,he₂,measureAffinity_map_equiv]
|
| 83 |
+
simpa only [one_mul] using full_affinity_square μ ν f hf hf0 1 (by norm_num)
|
| 84 |
+
|
| 85 |
+
end HardSphere.Comparison
|
| 86 |
+
end
|
| 87 |
+
end
|
| 88 |
+
|
| 89 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/Profile.lean
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Orbitals.Chi2
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.RealComp
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open MeasureTheory Filter Set
|
| 9 |
+
open scoped ENNReal Topology BigOperators
|
| 10 |
+
open scoped BigOperators ComplexConjugate
|
| 11 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 14 |
+
open scoped ENNReal ComplexConjugate
|
| 15 |
+
open ProbabilityTheory
|
| 16 |
+
namespace HardSphere.CellOrbital
|
| 17 |
+
open MeasureTheory Set Filter PeriodicCutoff TightCutoff
|
| 18 |
+
open scoped ComplexConjugate
|
| 19 |
+
|
| 20 |
+
def profile (h t : ℝ) : ℝ := 1-Real.smoothTransition (t/h-1)
|
| 21 |
+
|
| 22 |
+
lemma profile_smooth (h : ℝ) : ContDiff ℝ ((⊤:ℕ∞):WithTop ℕ∞) (profile h) :=
|
| 23 |
+
contDiff_const.sub (Real.smoothTransition.contDiff.comp ((contDiff_id.div_const h).sub contDiff_const))
|
| 24 |
+
|
| 25 |
+
lemma profile_bounds (h t : ℝ) : 0 ≤ profile h t ∧ profile h t ≤ 1 := by
|
| 26 |
+
unfold profile
|
| 27 |
+
constructor <;> linarith [Real.smoothTransition.nonneg (t/h-1),Real.smoothTransition.le_one (t/h-1)]
|
| 28 |
+
|
| 29 |
+
lemma profile_one {h : ℝ} (hh : 0<h) {t : ℝ} (ht : t ≤ h) : profile h t=1 := by
|
| 30 |
+
rw [profile,Real.smoothTransition.zero_of_nonpos (by rw [sub_nonpos]; exact (div_le_one hh).mpr ht)]
|
| 31 |
+
ring
|
| 32 |
+
|
| 33 |
+
lemma profile_zero {h : ℝ} (hh : 0<h) {t : ℝ} (ht : 2*h ≤ t) : profile h t=0 := by
|
| 34 |
+
rw [profile,Real.smoothTransition.one_of_one_le (by have hd := (le_div_iff₀ hh).mpr ht; linarith)]
|
| 35 |
+
ring
|
| 36 |
+
|
| 37 |
+
lemma profile_deriv (h t : ℝ) : deriv (profile h) t= -deriv Real.smoothTransition (t/h-1)/h := by
|
| 38 |
+
have hd := (transition_derivative (t/h-1)).comp t (((hasDerivAt_id t).div_const h).sub_const 1)
|
| 39 |
+
have he := hd.const_sub 1
|
| 40 |
+
have heq : (fun x : ℝ ↦ 1 - (Real.smoothTransition ∘ fun x : ℝ ↦ id x / h - 1) x) = profile h := rfl
|
| 41 |
+
rw [heq] at he
|
| 42 |
+
rw [he.deriv]
|
| 43 |
+
ring
|
| 44 |
+
|
| 45 |
+
lemma profile_deriv_zero {h : ℝ} (hh : 0<h) {t : ℝ} (ht : t∉Icc h (2*h)) :
|
| 46 |
+
deriv (profile h) t=0 := by
|
| 47 |
+
rw [profile_deriv,transition_deriv_eq_zero]
|
| 48 |
+
· simp
|
| 49 |
+
· intro hc
|
| 50 |
+
apply ht
|
| 51 |
+
constructor
|
| 52 |
+
· have hd := hc.1
|
| 53 |
+
have hv : 1 ≤ t/h := by linarith
|
| 54 |
+
exact (one_le_div hh).mp hv
|
| 55 |
+
· have hv : t/h ≤ 2 := by linarith [hc.2]
|
| 56 |
+
exact (div_le_iff₀ hh).mp hv
|
| 57 |
+
|
| 58 |
+
lemma profile_deriv_bound {h M : ℝ} (hh : 0<h) (_hM : 0 ≤ M)
|
| 59 |
+
(hb : ∀ t : ℝ, |deriv Real.smoothTransition t| ≤ M) (t : ℝ) :
|
| 60 |
+
|deriv (profile h) t| ≤ M/h := by
|
| 61 |
+
rw [profile_deriv,abs_div,abs_neg,abs_of_pos hh]
|
| 62 |
+
exact div_le_div_of_nonneg_right (hb _) hh.le
|
| 63 |
+
|
| 64 |
+
def cutoff (n : ℕ) (L : Length) (δ : ℝ) (x : Torus L) (h : ℝ) : SmoothMultiplier n L :=
|
| 65 |
+
(countMultiplier n L δ x).realComp (profile h) (profile_smooth h)
|
| 66 |
+
|
| 67 |
+
lemma cutoff_apply (n : ℕ) (L : Length) (δ : ℝ) (x : Torus L) (h : ℝ) (X : Configuration n L) :
|
| 68 |
+
(cutoff n L δ x h).toFun X=(profile h (count L δ x X) : ℂ) := by
|
| 69 |
+
change (profile h ((countMultiplier n L δ x).toFun X).re : ℂ)=_
|
| 70 |
+
rw [countMultiplier_apply,Complex.ofReal_re]
|
| 71 |
+
|
| 72 |
+
lemma cutoff_real (n : ℕ) (L : Length) (δ : ℝ) (x : Torus L) (h : ℝ) (X : Configuration n L) :
|
| 73 |
+
conj ((cutoff n L δ x h).toFun X)=(cutoff n L δ x h).toFun X := by
|
| 74 |
+
rw [cutoff_apply,Complex.conj_ofReal]
|
| 75 |
+
|
| 76 |
+
lemma cutoff_partial (n : ℕ) (L : Length) (δ : ℝ) (x : Torus L) (h : ℝ)
|
| 77 |
+
(p : Direction n) (X : Configuration n L) :
|
| 78 |
+
coordDerivative n L (cutoff n L δ x h).toFun p X=
|
| 79 |
+
((deriv (profile h) (count L δ x X) : ℝ) : ℂ)*coordDerivative n L (countMultiplier n L δ x).toFun p X := by
|
| 80 |
+
rw [cutoff,SmoothMultiplier.partial_realComp _ _ _ (countMultiplier_real n L δ x),
|
| 81 |
+
countMultiplier_apply,Complex.ofReal_re]
|
| 82 |
+
|
| 83 |
+
lemma cutoff_gradient_le {n : ℕ} {L : Length} {δ h M : ℝ} (hδ : 0<δ) (hh : 0<h) (hM : 0 ≤ M)
|
| 84 |
+
(hb : ∀ t : ℝ, |deriv Real.smoothTransition t| ≤ M) (x : Torus L) (X : Configuration n L) :
|
| 85 |
+
(∑ p : Direction n, ‖coordDerivative n L (cutoff n L δ x h).toFun p X‖^2) ≤
|
| 86 |
+
(2*M^2*(3*(4*(24*Real.pi^2*M^2/(8*δ)^2))))/h := by
|
| 87 |
+
by_cases ht : count L δ x X∈Icc h (2*h)
|
| 88 |
+
· simp_rw [cutoff_partial,norm_mul,mul_pow,Complex.norm_real,Real.norm_eq_abs,sq_abs]
|
| 89 |
+
rw [← Finset.mul_sum]
|
| 90 |
+
have hb2 : (deriv (profile h) (count L δ x X))^2 ≤ (M/h)^2 := by
|
| 91 |
+
rw [← sq_abs (deriv _ _)]
|
| 92 |
+
exact (sq_le_sq₀ (abs_nonneg _) (by positivity)).mpr (profile_deriv_bound hh hM hb _)
|
| 93 |
+
calc
|
| 94 |
+
_ ≤ (M/h)^2*((3*(4*(24*Real.pi^2*M^2/(8*δ)^2)))*count L δ x X) :=
|
| 95 |
+
mul_le_mul hb2 (countMultiplier_gradient_le hδ hM hb x X)
|
| 96 |
+
(Finset.sum_nonneg fun _ _ ↦ sq_nonneg _) (by positivity)
|
| 97 |
+
_ ≤ (M/h)^2*((3*(4*(24*Real.pi^2*M^2/(8*δ)^2)))*(2*h)) := by gcongr; try exact ht.2
|
| 98 |
+
_ = _ := by field_simp
|
| 99 |
+
· simp_rw [cutoff_partial,profile_deriv_zero hh ht,Complex.ofReal_zero,zero_mul,norm_zero,
|
| 100 |
+
zero_pow (by norm_num : 2≠0),Finset.sum_const_zero]
|
| 101 |
+
positivity
|
| 102 |
+
|
| 103 |
+
end HardSphere.CellOrbital
|
| 104 |
+
|
| 105 |
+
end
|
| 106 |
+
|
| 107 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/SelectedDeletion.lean
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.FreePathExpectation
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.PathPermutation
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
|
| 9 |
+
section
|
| 10 |
+
noncomputable section
|
| 11 |
+
open scoped BigOperators
|
| 12 |
+
namespace HardSphere
|
| 13 |
+
|
| 14 |
+
def selectedPermutation {m n : ℕ} (S : Finset (Fin (m+n))) (hS : S.card=m) : Equiv.Perm (Fin (m+n)) := by
|
| 15 |
+
classical
|
| 16 |
+
have hc : Fintype.card {i : Fin (m+n) // i∉S}=n := by
|
| 17 |
+
simp [hS]
|
| 18 |
+
let eS : Fin m ≃ {i : Fin (m+n) //i∈S} := (S.equivFinOfCardEq hS).symm
|
| 19 |
+
let eT : Fin n ≃ {i : Fin (m+n) //i∉S} := (Fintype.equivFinOfCardEq hc).symm
|
| 20 |
+
exact (finSumFinEquiv (m:=m) (n:=n)).symm.trans
|
| 21 |
+
((eS.sumCongr eT).trans (Equiv.sumCompl fun i : Fin (m+n) ↦ i∈S))
|
| 22 |
+
|
| 23 |
+
lemma selectedPermutation_prod {m n : ℕ} (S : Finset (Fin (m+n))) (hS : S.card=m)
|
| 24 |
+
{M : Type*} [CommMonoid M] (f : Fin (m+n) → M) :
|
| 25 |
+
(∏ i : Fin m,f (selectedPermutation S hS (Fin.castAdd n i)))=∏i∈S,f i := by
|
| 26 |
+
classical
|
| 27 |
+
have he (i : Fin m) : selectedPermutation S hS (Fin.castAdd n i)=((S.equivFinOfCardEq hS).symm i).val := by
|
| 28 |
+
simp [selectedPermutation]
|
| 29 |
+
simp only [he]
|
| 30 |
+
exact ((S.equivFinOfCardEq hS).symm.prod_comp (fun i : S ↦ f i.val)).trans (Finset.prod_coe_sort S f)
|
| 31 |
+
|
| 32 |
+
open MeasureTheory Set Filter
|
| 33 |
+
open scoped ENNReal NNReal Topology
|
| 34 |
+
open Wiener
|
| 35 |
+
|
| 36 |
+
@[simp] lemma onePathAt_permute {n : ℕ} {L : Length} (σ : Equiv.Perm (Fin n))
|
| 37 |
+
(i : Fin n) (ω : ConfigurationPath n L) :
|
| 38 |
+
onePathAt i (permuteConfigurationPath σ ω)=onePathAt (σ i) ω := rfl
|
| 39 |
+
|
| 40 |
+
@[simp] lemma onePathAt_split_left {m n : ℕ} {L : Length} (i : Fin m)
|
| 41 |
+
(ω : ConfigurationPath (m+n) L) :
|
| 42 |
+
onePathAt i (splitConfigurationPath m n L ω).1=onePathAt (Fin.castAdd n i) ω := rfl
|
| 43 |
+
|
| 44 |
+
lemma selected_product_deletion : ∃ C : ℝ, 0<C ∧
|
| 45 |
+
∀ (N : ℕ) (L : Length) (r t : ℝ), 0<r → 0<t →
|
| 46 |
+
(N:ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 47 |
+
∀ u : Jet N L, IsGroundVector N L r u →
|
| 48 |
+
∀ h : ConfigurationPath 1 L → ℝ≥0∞, Measurable h →
|
| 49 |
+
(∀ ω,h (reverseConfigurationPath 1 L ω)=h ω) →
|
| 50 |
+
∀ S : Finset (Fin N),
|
| 51 |
+
(∫⁻ ω : ConfigurationPath N L, ∏i∈S,h (onePathAt i ω) ∂groundPathLaw N L r t u) ≤
|
| 52 |
+
ENNReal.ofReal (Real.exp (t*C*(S.card:ℝ)*(N:ℝ)*r/L.val^3))*
|
| 53 |
+
∫⁻ X : Configuration N L, ∏i∈S,oneFreeExpectation t h (X i) ∂groundPositionLaw N L u := by
|
| 54 |
+
classical
|
| 55 |
+
obtain ⟨C,hC,hdel⟩ := groundPathLaw_deletion
|
| 56 |
+
refine ⟨C,hC,?_⟩
|
| 57 |
+
intro N L r t hr ht hs u hu h hh hrev S
|
| 58 |
+
have hc : S.card≤N := by simpa using Finset.card_le_univ S
|
| 59 |
+
obtain ⟨n,hn⟩ := Nat.exists_eq_add_of_le hc
|
| 60 |
+
generalize hm : S.card=m at hn
|
| 61 |
+
subst N
|
| 62 |
+
let σ := selectedPermutation S hm
|
| 63 |
+
let H : ConfigurationPath m L → ℝ≥0∞ := fun ω ↦ ∏i,h (onePathAt i ω)
|
| 64 |
+
have hH : Measurable H := pathProduct_measurable Finset.univ hh
|
| 65 |
+
have hHrev (ω : ConfigurationPath m L) : H (reverseConfigurationPath m L ω)=H ω := by
|
| 66 |
+
simp only [H,onePathAt_reverse,hrev]
|
| 67 |
+
have hD := hdel m n L r t hr ht hs u hu H hH hHrev
|
| 68 |
+
have hexp : (∫⁻ ω : ConfigurationPath (m+n) L,H (splitConfigurationPath m n L ω).1
|
| 69 |
+
∂groundPathLaw (m+n) L r t u)=
|
| 70 |
+
∫⁻ ω : ConfigurationPath (m+n) L,∏i∈S,h (onePathAt i ω) ∂groundPathLaw (m+n) L r t u := by
|
| 71 |
+
have hp := (groundPathLaw_permute u hu.2.1 r t σ).lintegral_comp
|
| 72 |
+
(hH.comp (splitConfigurationPath_continuous m n L).measurable.fst)
|
| 73 |
+
simp only [Function.comp_def] at hp
|
| 74 |
+
rw [←hp]
|
| 75 |
+
apply lintegral_congr
|
| 76 |
+
intro ω
|
| 77 |
+
simp only [H,onePathAt_split_left,onePathAt_permute]
|
| 78 |
+
exact selectedPermutation_prod S hm (fun i ↦ h (onePathAt i ω))
|
| 79 |
+
have hF (X : Configuration (m+n) L) :
|
| 80 |
+
freePathExpectation t H (splitConfiguration m n L X).1=
|
| 81 |
+
∏i:Fin m,oneFreeExpectation t h (X (Fin.castAdd n i)) :=
|
| 82 |
+
free_product_expectation t hh _
|
| 83 |
+
have hM : Measurable (fun X : Configuration (m+n) L ↦
|
| 84 |
+
∏i:Fin m,oneFreeExpectation t h (X (Fin.castAdd n i))) :=
|
| 85 |
+
Finset.measurable_prod Finset.univ fun i _ ↦ (oneFreeExpectation_measurable t hh).comp (measurable_pi_apply _)
|
| 86 |
+
have hpos : (∫⁻ X : Configuration (m+n) L,
|
| 87 |
+
freePathExpectation t H (splitConfiguration m n L X).1 ∂groundPositionLaw (m+n) L u)=
|
| 88 |
+
∫⁻ X : Configuration (m+n) L,∏i∈S,oneFreeExpectation t h (X i) ∂groundPositionLaw (m+n) L u := by
|
| 89 |
+
simp only [hF]
|
| 90 |
+
rw [←(groundPositionLaw_permute u hu.2.1 σ).lintegral_comp hM]
|
| 91 |
+
apply lintegral_congr
|
| 92 |
+
intro X
|
| 93 |
+
exact selectedPermutation_prod S hm (fun i ↦ oneFreeExpectation t h (X i))
|
| 94 |
+
rw [hexp,hpos] at hD
|
| 95 |
+
simpa only [hm] using hD
|
| 96 |
+
|
| 97 |
+
lemma ground_product_one_add : ∃ C : ℝ, 0<C ∧
|
| 98 |
+
∀ (N : ℕ) (L : Length) (r t : ℝ), 0<r → 0<t →
|
| 99 |
+
(N:ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 100 |
+
∀ u : Jet N L, IsGroundVector N L r u →
|
| 101 |
+
∀ h : ConfigurationPath 1 L → ℝ≥0∞, Measurable h →
|
| 102 |
+
(∀ ω,h (reverseConfigurationPath 1 L ω)=h ω) →
|
| 103 |
+
(∫⁻ ω : ConfigurationPath N L, ∏i, (1+h (onePathAt i ω)) ∂groundPathLaw N L r t u) ≤
|
| 104 |
+
∫⁻ X : Configuration N L, ∏i,(1+ENNReal.ofReal (Real.exp (t*C*(N:ℝ)*r/L.val^3))*
|
| 105 |
+
oneFreeExpectation t h (X i)) ∂groundPositionLaw N L u := by
|
| 106 |
+
classical
|
| 107 |
+
obtain ⟨C,hC,hdel⟩ := selected_product_deletion
|
| 108 |
+
refine ⟨C,hC,?_⟩
|
| 109 |
+
intro N L r t hr ht hs u hu h hh hrev
|
| 110 |
+
let a : ℝ≥0∞ := ENNReal.ofReal (Real.exp (t*C*(N:ℝ)*r/L.val^3))
|
| 111 |
+
have ha (S : Finset (Fin N)) :
|
| 112 |
+
ENNReal.ofReal (Real.exp (t*C*(S.card:ℝ)*(N:ℝ)*r/L.val^3))=a^S.card := by
|
| 113 |
+
rw [show t*C*(S.card:ℝ)*(N:ℝ)*r/L.val^3=(S.card:ℝ)*(t*C*(N:ℝ)*r/L.val^3) by ring,
|
| 114 |
+
Real.exp_nat_mul,ENNReal.ofReal_pow (Real.exp_nonneg _)]
|
| 115 |
+
have hb (S : Finset (Fin N)) : Measurable (fun X : Configuration N L ↦
|
| 116 |
+
∏i∈S,a*oneFreeExpectation t h (X i)) :=
|
| 117 |
+
Finset.measurable_prod S fun i _ ↦ measurable_const.mul
|
| 118 |
+
((oneFreeExpectation_measurable t hh).comp (measurable_pi_apply i))
|
| 119 |
+
simp only [Finset.prod_one_add]
|
| 120 |
+
rw [lintegral_finsetSum _ (fun S _ ↦ pathProduct_measurable S hh),
|
| 121 |
+
lintegral_finsetSum _ (fun S _ ↦ hb S)]
|
| 122 |
+
apply Finset.sum_le_sum
|
| 123 |
+
intro S _
|
| 124 |
+
calc
|
| 125 |
+
_ ≤ a^S.card*∫⁻ X : Configuration N L,∏i∈S,oneFreeExpectation t h (X i)
|
| 126 |
+
∂groundPositionLaw N L u := by simpa only [ha] using hdel N L r t hr ht hs u hu h hh hrev S
|
| 127 |
+
_ = ∫⁻ X : Configuration N L,∏i∈S,a*oneFreeExpectation t h (X i) ∂groundPositionLaw N L u := by
|
| 128 |
+
have hM : Measurable (fun X : Configuration N L ↦ ∏i∈S,oneFreeExpectation t h (X i)) :=
|
| 129 |
+
Finset.measurable_prod S fun i _ ↦ (oneFreeExpectation_measurable t hh).comp (measurable_pi_apply i)
|
| 130 |
+
rw [←lintegral_const_mul _ hM]
|
| 131 |
+
apply lintegral_congr
|
| 132 |
+
intro X
|
| 133 |
+
simp only [Finset.prod_mul_distrib,Finset.prod_const]
|
| 134 |
+
|
| 135 |
+
end HardSphere
|
| 136 |
+
|
| 137 |
+
end
|
| 138 |
+
end
|
| 139 |
+
|
| 140 |
+
end
|
| 141 |
+
|
| 142 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/Orbitals/StrongContractionLimitDense.lean
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
noncomputable section
|
| 6 |
+
open MeasureTheory Filter Set
|
| 7 |
+
open scoped ENNReal Topology BigOperators
|
| 8 |
+
open scoped BigOperators ComplexConjugate
|
| 9 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 10 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 11 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 12 |
+
open scoped ENNReal ComplexConjugate
|
| 13 |
+
namespace HardSphere
|
| 14 |
+
lemma strong_contraction_limit_of_dense {E F ι : Type*} [NormedAddCommGroup E]
|
| 15 |
+
[NormedSpace ℂ E] {l : Filter ι} (A : ι → E →L[ℂ] E) (B : E →L[ℂ] E)
|
| 16 |
+
(hA : ∀ t u, ‖A t u‖≤‖u‖) (hB : ∀ u, ‖B u‖≤‖u‖)
|
| 17 |
+
(f : F → E) (hf : DenseRange f)
|
| 18 |
+
(ht : ∀ y, Tendsto (fun t ↦ A t (f y)) l (𝓝 (B (f y)))) (u : E) :
|
| 19 |
+
Tendsto (fun t ↦ A t u) l (𝓝 (B u)) := by
|
| 20 |
+
rw [Metric.tendsto_nhds]
|
| 21 |
+
intro ε hε
|
| 22 |
+
obtain ⟨y,hy⟩ := hf.exists_dist_lt u (show 0<ε/3 by positivity)
|
| 23 |
+
filter_upwards [(Metric.tendsto_nhds.mp (ht y)) (ε/3) (by positivity)] with t ht
|
| 24 |
+
have h1 : dist (A t u) (A t (f y))≤dist u (f y) := by
|
| 25 |
+
simpa only [dist_eq_norm,map_sub] using hA t (u-f y)
|
| 26 |
+
have h2 : dist (B (f y)) (B u)≤dist (f y) u := by
|
| 27 |
+
simpa only [dist_eq_norm,map_sub] using hB (f y-u)
|
| 28 |
+
have htriangle := dist_triangle4 (A t u) (A t (f y)) (B (f y)) (B u)
|
| 29 |
+
rw [dist_comm (f y) u] at h2
|
| 30 |
+
linarith
|
| 31 |
+
end HardSphere
|
| 32 |
+
|
| 33 |
+
end
|
| 34 |
+
|
| 35 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/CertificateUnion.lean
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
section
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
noncomputable section
|
| 9 |
+
open MeasureTheory Set
|
| 10 |
+
open scoped ENNReal NNReal BigOperators
|
| 11 |
+
namespace HardSphere.FreeVisits
|
| 12 |
+
|
| 13 |
+
lemma largest_fiber {V : Type*} [Fintype V] {q : ℕ} (hq : 0<q) (f : V→Fin q) :
|
| 14 |
+
∃i : Fin q,Fintype.card V≤q*(Finset.univ.filter (fun v ↦ f v=i)).card := by
|
| 15 |
+
classical
|
| 16 |
+
have hq' : (0:ℝ)<q := by exact_mod_cast hq
|
| 17 |
+
have hf : ∀v∈(Finset.univ : Finset V),f v∈(Finset.univ : Finset (Fin q)) := by simp
|
| 18 |
+
have ht : (Finset.univ : Finset (Fin q)).Nonempty := ⟨⟨0,hq⟩,Finset.mem_univ _⟩
|
| 19 |
+
have hb : (Finset.univ : Finset (Fin q)).card • ((Fintype.card V:ℝ)/(q:ℝ))≤(Finset.univ : Finset V).card := by
|
| 20 |
+
simp only [Finset.card_univ,Fintype.card_fin,nsmul_eq_mul]
|
| 21 |
+
rw [mul_div_cancel₀ _ hq'.ne']
|
| 22 |
+
obtain ⟨i,hi,h⟩ := Finset.exists_le_card_fiber_of_nsmul_le_card_of_maps_to hf ht hb
|
| 23 |
+
refine ⟨i,?_⟩
|
| 24 |
+
have hh := (div_le_iff₀ hq').mp h
|
| 25 |
+
exact_mod_cast hh.trans_eq (mul_comm _ _)
|
| 26 |
+
|
| 27 |
+
lemma finite_failure_union {W V : Type*} [MeasurableSpace W] [Fintype V]
|
| 28 |
+
(μ : Measure W) {q : ℕ} (hq : 0<q) (bad : Fin q→V→W→Prop)
|
| 29 |
+
{p : ℝ≥0∞} (hp : p≤1)
|
| 30 |
+
(hjoint : ∀i : Fin q,∀A : Finset V,μ {ω | ∀v∈A,bad i v ω}≤p^(q*A.card)) :
|
| 31 |
+
μ {ω | ∀v,∃i,bad i v ω}≤((q:ℝ≥0∞)*p)^(Fintype.card V) := by
|
| 32 |
+
classical
|
| 33 |
+
have hsub : {ω | ∀v,∃i,bad i v ω}⊆⋃f : V→Fin q,{ω | ∀v,bad (f v) v ω} := by
|
| 34 |
+
intro ω hω
|
| 35 |
+
let f : V→Fin q := fun v ↦ Classical.choose (hω v)
|
| 36 |
+
exact mem_iUnion.mpr ⟨f,fun v ↦ Classical.choose_spec (hω v)⟩
|
| 37 |
+
have hf (f : V→Fin q) : μ {ω | ∀v,bad (f v) v ω}≤p^(Fintype.card V) := by
|
| 38 |
+
obtain ⟨i,hi⟩ := largest_fiber hq f
|
| 39 |
+
calc
|
| 40 |
+
_ ≤ μ {ω | ∀v∈Finset.univ.filter (fun v ↦ f v=i),bad i v ω} := by
|
| 41 |
+
apply measure_mono
|
| 42 |
+
intro ω hω v hv
|
| 43 |
+
rw [←(Finset.mem_filter.mp hv).2]
|
| 44 |
+
exact hω v
|
| 45 |
+
_ ≤ p^(q*(Finset.univ.filter (fun v ↦ f v=i)).card) := hjoint i _
|
| 46 |
+
_ ≤ _ := pow_le_pow_right_of_le_one' hp hi
|
| 47 |
+
calc
|
| 48 |
+
_ ≤ μ (⋃f : V→Fin q,{ω | ∀v,bad (f v) v ω}) := measure_mono hsub
|
| 49 |
+
_ ≤ ∑f : V→Fin q,μ {ω | ∀v,bad (f v) v ω} := measure_iUnion_fintype_le _ _
|
| 50 |
+
_ ≤ ∑_f : V→Fin q,p^(Fintype.card V) := Finset.sum_le_sum (fun f _ ↦ hf f)
|
| 51 |
+
_ = _ := by simp [nsmul_eq_mul,mul_pow]
|
| 52 |
+
|
| 53 |
+
end HardSphere.FreeVisits
|
| 54 |
+
|
| 55 |
+
end
|
| 56 |
+
end
|
| 57 |
+
|
| 58 |
+
end
|
| 59 |
+
|
| 60 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/CloseTailBaseTendsto.lean
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Thermodynamics.SpatialCloseScale2
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open MeasureTheory Filter Set
|
| 8 |
+
open scoped ENNReal Topology BigOperators
|
| 9 |
+
open scoped BigOperators ComplexConjugate
|
| 10 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 11 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 12 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 13 |
+
open scoped ENNReal ComplexConjugate
|
| 14 |
+
open ProbabilityTheory
|
| 15 |
+
open MeasureTheory Filter Set
|
| 16 |
+
open scoped ENNReal Topology
|
| 17 |
+
open MeasureTheory Set
|
| 18 |
+
open scoped ENNReal
|
| 19 |
+
namespace HardSphere
|
| 20 |
+
open MeasureTheory Set Filter
|
| 21 |
+
open scoped Topology
|
| 22 |
+
|
| 23 |
+
lemma closeTailBase_tendsto_zero (G b : ℝ) :
|
| 24 |
+
Tendsto (fun D : ℝ ↦ (G/b^2)*D^(-(4/3):ℝ)) atTop (𝓝 0) := by
|
| 25 |
+
simpa using (tendsto_rpow_neg_atTop (by norm_num : (0:ℝ)<4/3)).const_mul (G/b^2)
|
| 26 |
+
|
| 27 |
+
lemma closeTailProbability_tendsto_zero (G b : ℝ) {Q : ℕ} (hQ : 0<Q) :
|
| 28 |
+
Tendsto (fun D : ℝ ↦ ((G/b^2)*D^(-(4/3):ℝ))^(1/(Q:ℝ))) atTop (𝓝 0) := by
|
| 29 |
+
have hQpos : (0:ℝ)<Q := by exact_mod_cast hQ
|
| 30 |
+
have he : (0:ℝ)<1/(Q:ℝ) := by positivity
|
| 31 |
+
have hc := (Real.continuous_rpow_const he.le).continuousAt.tendsto.comp (closeTailBase_tendsto_zero G b)
|
| 32 |
+
simpa only [Function.comp_def,Real.zero_rpow he.ne'] using hc
|
| 33 |
+
|
| 34 |
+
lemma smallness_of_large_density {n : ℕ} (L : Length) {D α αmax : ℝ}
|
| 35 |
+
(hDeq : D=(n:ℝ)/L.val^3) (hD : 1≤D) (hα : 0≤α) (hαmax : α≤αmax)
|
| 36 |
+
(hlarge : 2*(2*Real.pi*αmax)^3≤D) :
|
| 37 |
+
(n:ℝ)*(2*Real.pi*(α/D))^3≤L.val^3/2 := by
|
| 38 |
+
have hDpos : 0<D := zero_lt_one.trans_le hD
|
| 39 |
+
have hL3 : 0<L.val^3 := pow_pos L.property _
|
| 40 |
+
have hn : (n:ℝ)=D*L.val^3 := ((eq_div_iff hL3.ne').mp hDeq).symm
|
| 41 |
+
have halpha : (2*Real.pi*α)^3≤(2*Real.pi*αmax)^3 := by gcongr
|
| 42 |
+
have hDsq : D≤D^2 := by nlinarith only [mul_le_mul_of_nonneg_left hD hDpos.le]
|
| 43 |
+
have hratio : (2*Real.pi*α)^3/D^2≤1/2 := by
|
| 44 |
+
apply (div_le_iff₀ (sq_pos_of_pos hDpos)).mpr
|
| 45 |
+
nlinarith only [halpha,hlarge,hDsq]
|
| 46 |
+
calc
|
| 47 |
+
_ = L.val^3*((2*Real.pi*α)^3/D^2) := by rw [hn]; field_simp
|
| 48 |
+
_ ≤ L.val^3*(1/2) := mul_le_mul_of_nonneg_left hratio hL3.le
|
| 49 |
+
_ = _ := by ring
|
| 50 |
+
|
| 51 |
+
theorem spatial_close_tail : ∃ Q : ℕ, 0<Q ∧ ∀ θ : ℝ, 0<θ →
|
| 52 |
+
∃ b Gθ : ℝ, 0<b ∧ b≤1/4 ∧ 0<Gθ ∧
|
| 53 |
+
Tendsto (fun D : ℝ ↦ ((Gθ/b^2)*D^(-(4/3):ℝ))^(1/(Q:ℝ))) atTop (𝓝 0) ∧
|
| 54 |
+
∀ αmax : ℝ, ∃ D₀ : ℝ, 1≤D₀ ∧
|
| 55 |
+
∀ (n K : ℕ) [Nontrivial (Fin n)] (L : Length) (_hL : L.val=(K:ℝ)) (D α : ℝ),
|
| 56 |
+
100≤L.val → D=(n:ℝ)/L.val^3 → D₀≤D → 1≤α → α≤αmax →
|
| 57 |
+
∀ (g : Jet n L), IsGroundVector n L (α/D) g → ∀ A : Finset (CubeCell K),
|
| 58 |
+
groundPositionLaw n L g {X | ∀ v∈A, θ*D≤((localCloseLabels L (spatialCloseScale D b) (unitCenter L v) X).card:ℝ)}≤
|
| 59 |
+
ENNReal.ofReal (((((Gθ/b^2)*D^(-(4/3):ℝ))^(1/(Q:ℝ)))^A.card)) := by
|
| 60 |
+
obtain ⟨Q,hQ,htail⟩ := spatial_scaled_close_tail
|
| 61 |
+
refine ⟨Q,hQ,?_⟩
|
| 62 |
+
intro θ hθ
|
| 63 |
+
obtain ⟨b,Gθ,hb,hb1,hGθ,hfin⟩ := htail θ hθ
|
| 64 |
+
refine ⟨b,Gθ,hb,hb1,hGθ,closeTailProbability_tendsto_zero Gθ b hQ,?_⟩
|
| 65 |
+
intro αmax
|
| 66 |
+
have hev : ∀ᶠ D : ℝ in atTop, (Gθ/b^2)*D^(-(4/3):ℝ)<1 :=
|
| 67 |
+
(tendsto_order.1 (closeTailBase_tendsto_zero Gθ b)).2 1 zero_lt_one
|
| 68 |
+
obtain ⟨D₁,hD₁⟩ := eventually_atTop.1 hev
|
| 69 |
+
let D₀ : ℝ := max 1 (max D₁ (2*(2*Real.pi*αmax)^3))
|
| 70 |
+
refine ⟨D₀,le_max_left _ _,?_⟩
|
| 71 |
+
intro n K _ L hL D α hL100 hDeq hD₀ hα hαmax g hg A
|
| 72 |
+
have hD : 1≤D := (le_max_left _ _).trans hD₀
|
| 73 |
+
have hD1 : D₁≤D := (le_max_left _ _).trans ((le_max_right _ _).trans hD₀)
|
| 74 |
+
have hlarge : 2*(2*Real.pi*αmax)^3≤D := (le_max_right _ _).trans ((le_max_right _ _).trans hD₀)
|
| 75 |
+
have hDpos : 0<D := zero_lt_one.trans_le hD
|
| 76 |
+
have hαpos : 0<α := zero_lt_one.trans_le hα
|
| 77 |
+
have hprod : D*(α/D)=α := by field_simp
|
| 78 |
+
exact hfin n K L hL (α/D) D hL100 hDeq hD (by rwa [hprod]) (by positivity)
|
| 79 |
+
(smallness_of_large_density L hDeq hD hαpos.le hαmax hlarge) (hD₁ D hD1).le g hg A
|
| 80 |
+
|
| 81 |
+
end HardSphere
|
| 82 |
+
|
| 83 |
+
end
|
| 84 |
+
|
| 85 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/ConfigurationTailLp.lean
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.SmoothMultiplier
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
section
|
| 7 |
+
section
|
| 8 |
+
noncomputable section
|
| 9 |
+
open MeasureTheory Filter Set
|
| 10 |
+
open scoped ENNReal Topology BigOperators
|
| 11 |
+
noncomputable section
|
| 12 |
+
open scoped BigOperators ComplexConjugate
|
| 13 |
+
noncomputable section
|
| 14 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 15 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 16 |
+
noncomputable section
|
| 17 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 18 |
+
open scoped ENNReal ComplexConjugate
|
| 19 |
+
open ProbabilityTheory
|
| 20 |
+
namespace HardSphere
|
| 21 |
+
open MeasureTheory Set Filter
|
| 22 |
+
open scoped ComplexConjugate
|
| 23 |
+
noncomputable section
|
| 24 |
+
|
| 25 |
+
lemma configurationTail_preserving (n : ℕ) (L : Length) :
|
| 26 |
+
MeasurePreserving (Fin.tail : Configuration (n+1) L → Configuration n L)
|
| 27 |
+
volume ((volume (Set.univ : Set (Torus L))) • (volume : Measure (Configuration n L))) := by
|
| 28 |
+
have h : MeasurePreserving (Prod.snd : Torus L × Configuration n L → Configuration n L)
|
| 29 |
+
volume ((volume (Set.univ : Set (Torus L))) • (volume : Measure (Configuration n L))) :=
|
| 30 |
+
⟨measurable_snd,Measure.map_snd_prod⟩
|
| 31 |
+
simpa only [Function.comp_def,MeasurableEquiv.piFinSuccAbove_apply,Fin.zero_succAbove,Fin.insertNthEquiv_zero,Fin.consEquiv_symm_apply] using
|
| 32 |
+
h.comp (volume_preserving_piFinSuccAbove (fun _ : Fin (n+1) ↦ Torus L) 0)
|
| 33 |
+
|
| 34 |
+
lemma configurationTail_quasiPreserving (n : ℕ) (L : Length) :
|
| 35 |
+
Measure.QuasiMeasurePreserving (Fin.tail : Configuration (n+1) L → Configuration n L)
|
| 36 |
+
volume volume := by
|
| 37 |
+
refine ⟨(configurationTail_preserving n L).measurable,?_⟩
|
| 38 |
+
rw [(configurationTail_preserving n L).map_eq]
|
| 39 |
+
exact Measure.smul_absolutelyContinuous
|
| 40 |
+
|
| 41 |
+
lemma memLp_configurationTail {n : ℕ} {L : Length} {f : Configuration n L → ℂ}
|
| 42 |
+
(hf : MemLp f 2 volume) : MemLp (fun X : Configuration (n+1) L ↦ f (Fin.tail X)) 2 volume :=
|
| 43 |
+
(hf.smul_measure (measure_ne_top _ _)).comp_measurePreserving (configurationTail_preserving n L)
|
| 44 |
+
|
| 45 |
+
def configurationTailLp {n : ℕ} {L : Length} (u : ScalarL2 n L) : ScalarL2 (n+1) L :=
|
| 46 |
+
(memLp_configurationTail (Lp.memLp u)).toLp _
|
| 47 |
+
|
| 48 |
+
lemma coe_configurationTailLp {n : ℕ} {L : Length} (u : ScalarL2 n L) :
|
| 49 |
+
configurationTailLp u =ᵐ[volume] fun X ↦ u (Fin.tail X) := MemLp.coeFn_toLp _
|
| 50 |
+
|
| 51 |
+
def configurationTailLinear (n : ℕ) (L : Length) : ScalarL2 n L →ₗ[ℂ] ScalarL2 (n+1) L where
|
| 52 |
+
toFun := configurationTailLp
|
| 53 |
+
map_add' u v := by
|
| 54 |
+
apply Lp.ext
|
| 55 |
+
filter_upwards [coe_configurationTailLp (u+v),coe_configurationTailLp u,coe_configurationTailLp v,
|
| 56 |
+
(configurationTail_quasiPreserving n L).ae_eq_comp (Lp.coeFn_add u v),
|
| 57 |
+
Lp.coeFn_add (configurationTailLp u) (configurationTailLp v)] with X h1 h2 h3 h4 h5
|
| 58 |
+
simp only [Function.comp_def,Pi.add_apply] at h4
|
| 59 |
+
rw [h1,h4,h5,Pi.add_apply,h2,h3]
|
| 60 |
+
map_smul' c u := by
|
| 61 |
+
apply Lp.ext
|
| 62 |
+
filter_upwards [coe_configurationTailLp (c • u),coe_configurationTailLp u,
|
| 63 |
+
(configurationTail_quasiPreserving n L).ae_eq_comp (Lp.coeFn_smul c u),
|
| 64 |
+
Lp.coeFn_smul c (configurationTailLp u)] with X h1 h2 h3 h4
|
| 65 |
+
simp only [Function.comp_def,Pi.smul_apply] at h3
|
| 66 |
+
simp only [h1,h3,h4,Pi.smul_apply,h2,RingHom.id_apply]
|
| 67 |
+
|
| 68 |
+
lemma norm_configurationTailLp {n : ℕ} {L : Length} (u : ScalarL2 n L) :
|
| 69 |
+
‖configurationTailLp u‖ = (volume (Set.univ : Set (Torus L)) ^ (1 / (2:ℝ))).toReal * ‖u‖ := by
|
| 70 |
+
rw [configurationTailLp,Lp.norm_toLp]
|
| 71 |
+
have he := eLpNorm_comp_measurePreserving (p:= (2:ℝ≥0∞))
|
| 72 |
+
((Lp.stronglyMeasurable u).aestronglyMeasurable
|
| 73 |
+
(μ := volume univ • (volume : Measure (Configuration n L)))) (configurationTail_preserving n L)
|
| 74 |
+
simp only [Function.comp_def] at he
|
| 75 |
+
rw [he]
|
| 76 |
+
have hv : volume (Set.univ : Set (Torus L))≠0 := Measure.measure_univ_ne_zero.mpr (NeZero.ne volume)
|
| 77 |
+
rw [eLpNorm_smul_measure_of_ne_zero hv,smul_eq_mul,ENNReal.toReal_mul,Lp.norm_def]
|
| 78 |
+
congr 2
|
| 79 |
+
norm_num
|
| 80 |
+
|
| 81 |
+
def configurationTailCLM (n : ℕ) (L : Length) : ScalarL2 n L →L[ℂ] ScalarL2 (n+1) L :=
|
| 82 |
+
(configurationTailLinear n L).mkContinuous
|
| 83 |
+
(volume (Set.univ : Set (Torus L)) ^ (1 / (2:ℝ))).toReal
|
| 84 |
+
(fun u ↦ (norm_configurationTailLp u).le)
|
| 85 |
+
|
| 86 |
+
lemma coe_configurationTailCLM {n : ℕ} {L : Length} (u : ScalarL2 n L) :
|
| 87 |
+
configurationTailCLM n L u =ᵐ[volume] fun X ↦ u (Fin.tail X) := coe_configurationTailLp u
|
| 88 |
+
|
| 89 |
+
end
|
| 90 |
+
end HardSphere
|
| 91 |
+
|
| 92 |
+
namespace HardSphere
|
| 93 |
+
open MeasureTheory Set Filter
|
| 94 |
+
open scoped ComplexConjugate
|
| 95 |
+
noncomputable section
|
| 96 |
+
|
| 97 |
+
def tailLift (n : ℕ) : LiftedConfiguration (n+1) →L[ℝ] LiftedConfiguration n :=
|
| 98 |
+
.pi fun i ↦ .proj i.succ
|
| 99 |
+
|
| 100 |
+
lemma tailLift_direction_zero (n : ℕ) (j : Fin 3) :
|
| 101 |
+
tailLift n (Pi.single 0 (Pi.single j 1))=0 := by
|
| 102 |
+
ext i k
|
| 103 |
+
simp [tailLift]
|
| 104 |
+
|
| 105 |
+
lemma tailLift_direction_succ (n : ℕ) (i : Fin n) (j : Fin 3) :
|
| 106 |
+
tailLift n (Pi.single i.succ (Pi.single j 1))=Pi.single i (Pi.single j 1) := by
|
| 107 |
+
ext k q
|
| 108 |
+
by_cases h : k=i
|
| 109 |
+
· subst k; simp [tailLift]
|
| 110 |
+
· simp [tailLift,Pi.single_eq_of_ne h,Pi.single_eq_of_ne (fun h' ↦ h (Fin.succ_injective _ h'))]
|
| 111 |
+
|
| 112 |
+
lemma smooth_tail {n : ℕ} {L : Length} {f : Configuration n L → ℂ}
|
| 113 |
+
(hf : ContDiff ℝ ((⊤:ℕ∞):WithTop ℕ∞) (fun X : LiftedConfiguration n ↦ f (project n L X))) :
|
| 114 |
+
ContDiff ℝ ((⊤:ℕ∞):WithTop ℕ∞)
|
| 115 |
+
(fun X : LiftedConfiguration (n+1) ↦ f (Fin.tail (project (n+1) L X))) :=
|
| 116 |
+
hf.comp (tailLift n).contDiff
|
| 117 |
+
|
| 118 |
+
lemma coordDerivative_tail_zero {n : ℕ} {L : Length} {f : Configuration n L → ℂ}
|
| 119 |
+
(hf : Differentiable ℝ (fun X : LiftedConfiguration n ↦ f (project n L X))) (j : Fin 3) :
|
| 120 |
+
coordDerivative (n+1) L (fun X ↦ f (Fin.tail X)) (0,j)=0 := by
|
| 121 |
+
funext X
|
| 122 |
+
have h := (hf (tailLift n (representative (n+1) L X))).hasFDerivAt.comp
|
| 123 |
+
(representative (n+1) L X) (tailLift n).hasFDerivAt
|
| 124 |
+
change (fderiv ℝ ((fun Y : LiftedConfiguration n ↦ f (project n L Y)) ∘ tailLift n)
|
| 125 |
+
(representative (n+1) L X)) (Pi.single 0 (Pi.single j 1))=0
|
| 126 |
+
rw [h.fderiv,ContinuousLinearMap.comp_apply,tailLift_direction_zero,map_zero]
|
| 127 |
+
|
| 128 |
+
lemma coordDerivative_tail_succ {n : ℕ} {L : Length} {f : Configuration n L → ℂ}
|
| 129 |
+
(hf : Differentiable ℝ (fun X : LiftedConfiguration n ↦ f (project n L X)))
|
| 130 |
+
(i : Fin n) (j : Fin 3) :
|
| 131 |
+
coordDerivative (n+1) L (fun X ↦ f (Fin.tail X)) (i.succ,j)=
|
| 132 |
+
fun X ↦ coordDerivative n L f (i,j) (Fin.tail X) := by
|
| 133 |
+
funext X
|
| 134 |
+
have h := (hf (tailLift n (representative (n+1) L X))).hasFDerivAt.comp
|
| 135 |
+
(representative (n+1) L X) (tailLift n).hasFDerivAt
|
| 136 |
+
change (fderiv ℝ ((fun Y : LiftedConfiguration n ↦ f (project n L Y)) ∘ tailLift n)
|
| 137 |
+
(representative (n+1) L X)) (Pi.single i.succ (Pi.single j 1))=_
|
| 138 |
+
rw [h.fderiv,ContinuousLinearMap.comp_apply,tailLift_direction_succ]
|
| 139 |
+
rfl
|
| 140 |
+
|
| 141 |
+
lemma allowed_of_tail {n : ℕ} {L : Length} {a : ℝ} {X : Configuration (n+1) L}
|
| 142 |
+
(htail : Fin.tail X∈allowed n L a)
|
| 143 |
+
(hhead : ∀ i : Fin n, a<torusDistance L (X 0) (X i.succ)) :
|
| 144 |
+
X∈allowed (n+1) L a := by
|
| 145 |
+
intro i
|
| 146 |
+
refine Fin.cases ?_ (fun k ↦ ?_) i
|
| 147 |
+
· intro j hij
|
| 148 |
+
exact Fin.cases (fun h ↦ (lt_irrefl _ h).elim) (fun k _ ↦ hhead k) j hij
|
| 149 |
+
· intro j hij
|
| 150 |
+
exact Fin.cases (fun h ↦ (Fin.not_lt_zero _ h).elim)
|
| 151 |
+
(fun l h ↦ htail k l (Fin.succ_lt_succ_iff.mp h)) j hij
|
| 152 |
+
|
| 153 |
+
def InsertionClearance {n : ℕ} {L : Length} (a : ℝ) (f : SmoothMultiplier (n+1) L) : Prop :=
|
| 154 |
+
tsupport f.toFun ⊆ {X | ∀ i : Fin n, a<torusDistance L (X 0) (X i.succ)}
|
| 155 |
+
|
| 156 |
+
def SmoothTest.insert {n : ℕ} {L : Length} {a : ℝ} (g : SmoothTest n L a)
|
| 157 |
+
(f : SmoothMultiplier (n+1) L) (hc : InsertionClearance a f) : SmoothTest (n+1) L a where
|
| 158 |
+
toFun := fun X ↦ f.toFun X * g.toFun (Fin.tail X)
|
| 159 |
+
smooth := f.smooth.mul (smooth_tail g.smooth)
|
| 160 |
+
compact := HasCompactSupport.of_compactSpace _
|
| 161 |
+
support_allowed := by
|
| 162 |
+
intro X hX
|
| 163 |
+
have hf : X∈tsupport f.toFun := tsupport_mul_subset_left hX
|
| 164 |
+
have hg : X∈tsupport (fun X : Configuration (n+1) L ↦ g.toFun (Fin.tail X)) :=
|
| 165 |
+
tsupport_mul_subset_right hX
|
| 166 |
+
have htail : Fin.tail X∈tsupport g.toFun := by
|
| 167 |
+
exact (tsupport_comp_subset_preimage g.toFun
|
| 168 |
+
(f := (Fin.tail : Configuration (n+1) L → Configuration n L))
|
| 169 |
+
(continuous_pi fun i ↦ continuous_apply i.succ)) hg
|
| 170 |
+
exact allowed_of_tail (g.support_allowed htail) (hc hf)
|
| 171 |
+
memLp := f.memLp_top.mul (memLp_configurationTail g.memLp)
|
| 172 |
+
partial_memLp := by
|
| 173 |
+
rintro ⟨i,j⟩
|
| 174 |
+
rw [show (fun X ↦ f.toFun X*g.toFun (Fin.tail X))=f.toFun*(fun X ↦ g.toFun (Fin.tail X)) from rfl,
|
| 175 |
+
coordDerivative_mul (f.smooth.differentiable (by simp)) ((smooth_tail g.smooth).differentiable (by simp))]
|
| 176 |
+
apply MemLp.add
|
| 177 |
+
· refine Fin.cases ?_ (fun k ↦ ?_) i
|
| 178 |
+
· rw [coordDerivative_tail_zero (g.smooth.differentiable (by simp))]
|
| 179 |
+
simp
|
| 180 |
+
· rw [coordDerivative_tail_succ (g.smooth.differentiable (by simp))]
|
| 181 |
+
exact f.memLp_top.mul (memLp_configurationTail (g.partial_memLp (k,j)))
|
| 182 |
+
· exact (memLp_configurationTail g.memLp).mul (f.partial_memLp_top (i,j))
|
| 183 |
+
|
| 184 |
+
def insertionParentDerivative (n : ℕ) (L : Length) (p : Direction (n+1)) :
|
| 185 |
+
Jet n L →L[ℂ] ScalarL2 n L :=
|
| 186 |
+
Fin.cases 0 (fun i ↦ (ContinuousLinearMap.proj (i,p.2)).comp (.snd ℂ _ _)) p.1
|
| 187 |
+
|
| 188 |
+
def SmoothMultiplier.insertionScalar {n : ℕ} {L : Length} (f : SmoothMultiplier (n+1) L) :
|
| 189 |
+
ScalarL2 n L →L[ℂ] ScalarL2 (n+1) L :=
|
| 190 |
+
f.onScalar.comp (configurationTailCLM n L)
|
| 191 |
+
|
| 192 |
+
def SmoothMultiplier.insertionJet {n : ℕ} {L : Length} (f : SmoothMultiplier (n+1) L) :
|
| 193 |
+
Jet n L →L[ℂ] Jet (n+1) L :=
|
| 194 |
+
(f.insertionScalar.comp (.fst ℂ _ _)).prod (.pi fun p ↦
|
| 195 |
+
f.insertionScalar.comp (insertionParentDerivative n L p) +
|
| 196 |
+
((L2Multiplier.clm _ (f.partial_memLp_top p)).comp (configurationTailCLM n L)).comp (.fst ℂ _ _))
|
| 197 |
+
|
| 198 |
+
lemma coe_insertionScalar {n : ℕ} {L : Length} (f : SmoothMultiplier (n+1) L) (u : ScalarL2 n L) :
|
| 199 |
+
f.insertionScalar u =ᵐ[volume] fun X ↦ f.toFun X*u (Fin.tail X) := by
|
| 200 |
+
filter_upwards [coe_configurationTailCLM u,L2Multiplier.coe_clm f.toFun f.memLp_top (configurationTailCLM n L u)]
|
| 201 |
+
with X h1 h2
|
| 202 |
+
exact h2.trans (by rw [h1])
|
| 203 |
+
|
| 204 |
+
lemma coe_insertionParentDerivative {n : ℕ} {L : Length} (u : Jet n L) (p : Direction (n+1)) :
|
| 205 |
+
insertionParentDerivative n L p u = Fin.cases 0 (fun i ↦ u.2 (i,p.2)) p.1 := by
|
| 206 |
+
rcases p with ⟨p,j⟩
|
| 207 |
+
cases p using Fin.cases <;> rfl
|
| 208 |
+
|
| 209 |
+
lemma coe_insertionJet_zero {n : ℕ} {L : Length} (f : SmoothMultiplier (n+1) L)
|
| 210 |
+
(u : Jet n L) (j : Fin 3) :
|
| 211 |
+
(f.insertionJet u).2 (0,j) =ᵐ[volume]
|
| 212 |
+
fun X ↦ coordDerivative (n+1) L f.toFun (0,j) X*u.1 (Fin.tail X) := by
|
| 213 |
+
change (f.insertionScalar 0+L2Multiplier.clm _ (f.partial_memLp_top (0,j))
|
| 214 |
+
(configurationTailCLM n L u.1)) =ᵐ[volume] _
|
| 215 |
+
rw [map_zero,zero_add]
|
| 216 |
+
filter_upwards [coe_configurationTailCLM u.1,
|
| 217 |
+
L2Multiplier.coe_clm _ (f.partial_memLp_top (0,j)) (configurationTailCLM n L u.1)] with X h1 h2
|
| 218 |
+
exact h2.trans (by rw [h1])
|
| 219 |
+
|
| 220 |
+
lemma coe_insertionJet_succ {n : ℕ} {L : Length} (f : SmoothMultiplier (n+1) L)
|
| 221 |
+
(u : Jet n L) (i : Fin n) (j : Fin 3) :
|
| 222 |
+
(f.insertionJet u).2 (i.succ,j) =ᵐ[volume]
|
| 223 |
+
fun X ↦ f.toFun X*u.2 (i,j) (Fin.tail X)+
|
| 224 |
+
coordDerivative (n+1) L f.toFun (i.succ,j) X*u.1 (Fin.tail X) := by
|
| 225 |
+
change (f.insertionScalar (u.2 (i,j))+L2Multiplier.clm _ (f.partial_memLp_top (i.succ,j))
|
| 226 |
+
(configurationTailCLM n L u.1)) =ᵐ[volume] _
|
| 227 |
+
filter_upwards [coe_insertionScalar f (u.2 (i,j)),coe_configurationTailCLM u.1,
|
| 228 |
+
L2Multiplier.coe_clm _ (f.partial_memLp_top (i.succ,j)) (configurationTailCLM n L u.1),
|
| 229 |
+
Lp.coeFn_add (f.insertionScalar (u.2 (i,j)))
|
| 230 |
+
(L2Multiplier.clm _ (f.partial_memLp_top (i.succ,j)) (configurationTailCLM n L u.1))]
|
| 231 |
+
with X h1 h2 h3 h4
|
| 232 |
+
rw [h4,Pi.add_apply,h1,h3,h2]
|
| 233 |
+
|
| 234 |
+
lemma SmoothTest.jet_insert {n : ℕ} {L : Length} {a : ℝ} (g : SmoothTest n L a)
|
| 235 |
+
(f : SmoothMultiplier (n+1) L) (hc : InsertionClearance a f) :
|
| 236 |
+
(g.insert f hc).jet=f.insertionJet g.jet := by
|
| 237 |
+
apply Prod.ext
|
| 238 |
+
· apply Lp.ext
|
| 239 |
+
filter_upwards [MemLp.coeFn_toLp (g.insert f hc).memLp,
|
| 240 |
+
(configurationTail_quasiPreserving n L).ae_eq_comp (MemLp.coeFn_toLp g.memLp),
|
| 241 |
+
coe_insertionScalar f g.jet.1] with X h1 h2 h3
|
| 242 |
+
dsimp only [Function.comp_def] at h2
|
| 243 |
+
change ((g.insert f hc).jet.1) X=(f.insertionScalar g.jet.1) X
|
| 244 |
+
rw [h3]
|
| 245 |
+
dsimp only [SmoothTest.jet]
|
| 246 |
+
rw [h1,h2]
|
| 247 |
+
rfl
|
| 248 |
+
· funext p
|
| 249 |
+
rcases p with ⟨i,j⟩
|
| 250 |
+
refine Fin.cases ?_ (fun k ↦ ?_) i
|
| 251 |
+
· apply Lp.ext
|
| 252 |
+
filter_upwards [MemLp.coeFn_toLp ((g.insert f hc).partial_memLp (0,j)),
|
| 253 |
+
(configurationTail_quasiPreserving n L).ae_eq_comp (MemLp.coeFn_toLp g.memLp),
|
| 254 |
+
coe_insertionJet_zero f g.jet j] with X h1 h2 h3
|
| 255 |
+
dsimp only [Function.comp_def] at h2
|
| 256 |
+
rw [h3]
|
| 257 |
+
dsimp only [SmoothTest.jet]
|
| 258 |
+
rw [h1]
|
| 259 |
+
change coordDerivative (n+1) L (f.toFun*(fun X ↦ g.toFun (Fin.tail X))) (0,j) X=_
|
| 260 |
+
rw [coordDerivative_mul (f.smooth.differentiable (by simp))
|
| 261 |
+
((smooth_tail g.smooth).differentiable (by simp)),
|
| 262 |
+
coordDerivative_tail_zero (g.smooth.differentiable (by simp))]
|
| 263 |
+
simp only [Pi.add_apply,Pi.mul_apply,Pi.zero_apply,mul_zero,zero_add,h2]
|
| 264 |
+
ring
|
| 265 |
+
· apply Lp.ext
|
| 266 |
+
filter_upwards [MemLp.coeFn_toLp ((g.insert f hc).partial_memLp (k.succ,j)),
|
| 267 |
+
(configurationTail_quasiPreserving n L).ae_eq_comp (MemLp.coeFn_toLp g.memLp),
|
| 268 |
+
(configurationTail_quasiPreserving n L).ae_eq_comp (MemLp.coeFn_toLp (g.partial_memLp (k,j))),
|
| 269 |
+
coe_insertionJet_succ f g.jet k j] with X h1 h2 h3 h4
|
| 270 |
+
dsimp only [Function.comp_def] at h2 h3
|
| 271 |
+
rw [h4]
|
| 272 |
+
dsimp only [SmoothTest.jet]
|
| 273 |
+
rw [h1]
|
| 274 |
+
change coordDerivative (n+1) L (f.toFun*(fun X ↦ g.toFun (Fin.tail X))) (k.succ,j) X=_
|
| 275 |
+
rw [coordDerivative_mul (f.smooth.differentiable (by simp))
|
| 276 |
+
((smooth_tail g.smooth).differentiable (by simp)),
|
| 277 |
+
coordDerivative_tail_succ (g.smooth.differentiable (by simp))]
|
| 278 |
+
simp only [Pi.add_apply,Pi.mul_apply,h2,h3]
|
| 279 |
+
ring
|
| 280 |
+
|
| 281 |
+
lemma SmoothMultiplier.insertionJet_mem_domain {n : ℕ} {L : Length} {a : ℝ}
|
| 282 |
+
(f : SmoothMultiplier (n+1) L) (hc : InsertionClearance a f)
|
| 283 |
+
{u : Jet n L} (hu : u∈dirichletDomain n L a) :
|
| 284 |
+
f.insertionJet u∈dirichletDomain (n+1) L a := by
|
| 285 |
+
apply map_mem_closure f.insertionJet.continuous hu
|
| 286 |
+
rintro _ ⟨g,rfl⟩
|
| 287 |
+
exact ⟨g.insert f hc,g.jet_insert f hc⟩
|
| 288 |
+
|
| 289 |
+
end
|
| 290 |
+
end HardSphere
|
| 291 |
+
|
| 292 |
+
end
|
| 293 |
+
end
|
| 294 |
+
end
|
| 295 |
+
end
|
| 296 |
+
end
|
| 297 |
+
end
|
| 298 |
+
|
| 299 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/ExpNatTail.lean
ADDED
|
@@ -0,0 +1,247 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Bridges.WienerGaussian
|
| 3 |
+
import OAI.Analysis.HardSphere.PathBounds.FreeVisitProbability
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open MeasureTheory Set
|
| 9 |
+
open scoped ENNReal NNReal BigOperators
|
| 10 |
+
namespace HardSphere.FreeVisits
|
| 11 |
+
|
| 12 |
+
lemma exp_block_sum_bound (C J : ℕ) (hC : 0<C) {η : ℝ} (hη : 0≤η) :
|
| 13 |
+
ENNReal.ofReal (Real.exp (η*(J:ℝ))) ≤ 1 + ∑' k : ℕ,
|
| 14 |
+
if C*k<J then ENNReal.ofReal (Real.exp (η*(C:ℝ)*((k:ℝ)+1))) else 0 := by
|
| 15 |
+
by_cases hJ : J=0
|
| 16 |
+
· simp [hJ]
|
| 17 |
+
· let k := (J-1)/C
|
| 18 |
+
have hk : C*k<J := (Nat.mul_div_le (J-1) C).trans_lt (by omega)
|
| 19 |
+
have hJle : J≤C*(k+1) := by
|
| 20 |
+
have h:=Nat.lt_mul_div_succ (J-1) hC
|
| 21 |
+
dsimp [k]
|
| 22 |
+
omega
|
| 23 |
+
have he : ENNReal.ofReal (Real.exp (η*(J:ℝ))) ≤
|
| 24 |
+
ENNReal.ofReal (Real.exp (η*(C:ℝ)*((k:ℝ)+1))) := by
|
| 25 |
+
apply ENNReal.ofReal_le_ofReal
|
| 26 |
+
apply Real.exp_le_exp.mpr
|
| 27 |
+
have hJle' : (J:ℝ)≤(C:ℝ)*((k:ℝ)+1) := by exact_mod_cast hJle
|
| 28 |
+
nlinarith
|
| 29 |
+
have hs : ENNReal.ofReal (Real.exp (η*(C:ℝ)*((k:ℝ)+1))) ≤ ∑' j : ℕ,
|
| 30 |
+
if C*j<J then ENNReal.ofReal (Real.exp (η*(C:ℝ)*((j:ℝ)+1))) else 0 := by
|
| 31 |
+
simpa only [ite_eq_left hk] using (ENNReal.le_tsum (f:=fun j : ℕ ↦ if C*j<J then
|
| 32 |
+
ENNReal.ofReal (Real.exp (η*(C:ℝ)*((j:ℝ)+1))) else 0) k)
|
| 33 |
+
exact he.trans (hs.trans le_add_self)
|
| 34 |
+
|
| 35 |
+
lemma weighted_exp_tail_le (C k : ℕ) (η : ℝ) :
|
| 36 |
+
Real.exp (η*(C:ℝ)*((k:ℝ)+1)) * (k:ℝ) *
|
| 37 |
+
Real.exp (-(η*(C:ℝ)+2)*(k:ℝ)) ≤
|
| 38 |
+
Real.exp (η*(C:ℝ)) * Real.exp (-1)^k := by
|
| 39 |
+
rw [← Real.exp_nat_mul]
|
| 40 |
+
have hk : (k:ℝ)≤Real.exp (k:ℝ) := by have := Real.add_one_le_exp (k:ℝ); linarith
|
| 41 |
+
calc
|
| 42 |
+
_ = (k:ℝ)*Real.exp (η*(C:ℝ)-2*(k:ℝ)) := by
|
| 43 |
+
rw [mul_right_comm,mul_comm _ (k:ℝ),←Real.exp_add]
|
| 44 |
+
congr 2
|
| 45 |
+
ring
|
| 46 |
+
_ ≤ Real.exp (k:ℝ)*Real.exp (η*(C:ℝ)-2*(k:ℝ)) := mul_le_mul_of_nonneg_right hk (Real.exp_nonneg _)
|
| 47 |
+
_ = _ := by rw [←Real.exp_add,←Real.exp_add]; congr 1; ring
|
| 48 |
+
|
| 49 |
+
def expTailBound (C : ℕ) (η : ℝ) (a : ℝ≥0∞) : ℝ≥0∞ :=
|
| 50 |
+
1+(ENNReal.ofReal (Real.exp (η*(C:ℝ)))+
|
| 51 |
+
ENNReal.ofReal (Real.exp (η*(C:ℝ)))*a)*(1-ENNReal.ofReal (Real.exp (-1)))⁻¹
|
| 52 |
+
|
| 53 |
+
lemma expTailBound_ne_top (C : ℕ) (η : ℝ) {a : ℝ≥0∞} (ha : a≠⊤) :
|
| 54 |
+
expTailBound C η a≠⊤ := by
|
| 55 |
+
have hr : ENNReal.ofReal (Real.exp (-1))<1 := by
|
| 56 |
+
rw [ENNReal.ofReal_lt_one]
|
| 57 |
+
exact Real.exp_lt_one_iff.mpr (by norm_num)
|
| 58 |
+
exact ENNReal.add_ne_top.mpr ⟨by simp, ENNReal.mul_ne_top
|
| 59 |
+
(ENNReal.add_ne_top.mpr ⟨ENNReal.ofReal_ne_top,ENNReal.mul_ne_top ENNReal.ofReal_ne_top ha⟩)
|
| 60 |
+
(ENNReal.inv_ne_top.mpr (tsub_pos_iff_lt.mpr hr).ne')⟩
|
| 61 |
+
|
| 62 |
+
lemma lintegral_exp_nat_le {Ω : Type*} [MeasurableSpace Ω]
|
| 63 |
+
(μ : Measure Ω) [IsProbabilityMeasure μ] (F : Ω → ℕ) (hF : Measurable F)
|
| 64 |
+
(C : ℕ) (hC : 0<C) {η : ℝ} (hη : 0≤η) (a : ℝ≥0∞)
|
| 65 |
+
(htail : ∀ k : ℕ, 0<k → μ {w | C*k<F w} ≤
|
| 66 |
+
(k:ℝ≥0∞)*a*ENNReal.ofReal (Real.exp (-(η*(C:ℝ)+2)*(k:ℝ)))) :
|
| 67 |
+
∫⁻ w, ENNReal.ofReal (Real.exp (η*(F w:ℝ))) ∂μ ≤ expTailBound C η a := by
|
| 68 |
+
classical
|
| 69 |
+
let W : ℕ → Ω → ℝ≥0∞ := fun k ↦
|
| 70 |
+
{w | C*k<F w}.indicator (fun _ ↦ ENNReal.ofReal (Real.exp (η*(C:ℝ)*((k:ℝ)+1))))
|
| 71 |
+
have hW (k : ℕ) : Measurable (W k) := measurable_const.indicator
|
| 72 |
+
(measurableSet_lt measurable_const hF)
|
| 73 |
+
have hweight (index : ℕ) (sample : Ω) :
|
| 74 |
+
W index sample = if C*index<F sample then
|
| 75 |
+
ENNReal.ofReal (Real.exp (η*(C:ℝ)*((index:ℝ)+1))) else 0 := by
|
| 76 |
+
by_cases hindex : C*index<F sample <;> simp [W,hindex]
|
| 77 |
+
have hterm (k : ℕ) : (∫⁻ w,W k w ∂μ) ≤
|
| 78 |
+
(ENNReal.ofReal (Real.exp (η*(C:ℝ)))+ENNReal.ofReal (Real.exp (η*(C:ℝ)))*a)*
|
| 79 |
+
ENNReal.ofReal (Real.exp (-1))^k := by
|
| 80 |
+
rw [show (∫⁻ w,W k w ∂μ) = ENNReal.ofReal (Real.exp (η*(C:ℝ)*((k:ℝ)+1))) * μ {w | C*k<F w} from
|
| 81 |
+
lintegral_indicator_const (measurableSet_lt measurable_const hF) _]
|
| 82 |
+
by_cases hk : k=0
|
| 83 |
+
· subst k
|
| 84 |
+
simpa only [Nat.cast_zero,zero_add,mul_one,pow_zero] using
|
| 85 |
+
(mul_le_mul_right (prob_le_one (μ:=μ))
|
| 86 |
+
(ENNReal.ofReal (Real.exp (η*(C:ℝ))))).trans (by simp)
|
| 87 |
+
· have hb := htail k (Nat.pos_of_ne_zero hk)
|
| 88 |
+
calc
|
| 89 |
+
_ ≤ ENNReal.ofReal (Real.exp (η*(C:ℝ)*((k:ℝ)+1))) *
|
| 90 |
+
((k:ℝ≥0∞)*a*ENNReal.ofReal (Real.exp (-(η*(C:ℝ)+2)*(k:ℝ)))) := mul_le_mul_right hb _
|
| 91 |
+
_ = a*ENNReal.ofReal (Real.exp (η*(C:ℝ)*((k:ℝ)+1))*(k:ℝ)*Real.exp (-(η*(C:ℝ)+2)*(k:ℝ))) := by
|
| 92 |
+
simp only [ENNReal.ofReal_mul (Real.exp_nonneg _), ENNReal.ofReal_mul (mul_nonneg (Real.exp_nonneg _) (Nat.cast_nonneg k)),ENNReal.ofReal_natCast]
|
| 93 |
+
ring
|
| 94 |
+
_ ≤ a*ENNReal.ofReal (Real.exp (η*(C:ℝ))*Real.exp (-1)^k) :=
|
| 95 |
+
mul_le_mul_right (ENNReal.ofReal_le_ofReal (weighted_exp_tail_le C k η)) _
|
| 96 |
+
_ ≤ _ := by
|
| 97 |
+
rw [ENNReal.ofReal_mul (Real.exp_nonneg _),ENNReal.ofReal_pow (Real.exp_nonneg _)]
|
| 98 |
+
calc
|
| 99 |
+
_ = (ENNReal.ofReal (Real.exp (η*(C:ℝ)))*a)*ENNReal.ofReal (Real.exp (-1))^k := by ring
|
| 100 |
+
_ ≤ _ := by gcongr; exact le_add_self
|
| 101 |
+
calc
|
| 102 |
+
_ ≤ ∫⁻ w,1+∑' k,W k w ∂μ := lintegral_mono (fun w ↦ by
|
| 103 |
+
simpa only [hweight] using exp_block_sum_bound C (F w) hC hη)
|
| 104 |
+
_ = 1+∑' k,∫⁻ w,W k w ∂μ := by rw [lintegral_add_left measurable_const,lintegral_const,measure_univ,mul_one,lintegral_tsum (fun k ↦ (hW k).aemeasurable)]
|
| 105 |
+
_ ≤ 1+∑' k,(ENNReal.ofReal (Real.exp (η*(C:ℝ)))+ENNReal.ofReal (Real.exp (η*(C:ℝ)))*a)*ENNReal.ofReal (Real.exp (-1))^k :=
|
| 106 |
+
add_le_add_right (ENNReal.tsum_le_tsum hterm) _
|
| 107 |
+
_ = _ := by rw [ENNReal.tsum_mul_left,ENNReal.tsum_geometric]; rfl
|
| 108 |
+
|
| 109 |
+
end HardSphere.FreeVisits
|
| 110 |
+
|
| 111 |
+
end
|
| 112 |
+
|
| 113 |
+
noncomputable section
|
| 114 |
+
open MeasureTheory Set Filter
|
| 115 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 116 |
+
namespace HardSphere.FreeVisits
|
| 117 |
+
open HardSphere.Wiener HardSphere.Lattice HardSphere.CellOrbital HardSphere.BathSlice
|
| 118 |
+
attribute [local irreducible] freeTrajectory pathVisitedSites
|
| 119 |
+
|
| 120 |
+
def visitWeight {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n)
|
| 121 |
+
(t η : ℝ) (X : Configuration n L) (w : CoordinatePaths n) : ℝ≥0∞ :=
|
| 122 |
+
ENNReal.ofReal (Real.exp (η*(visitCount L A i t X w:ℝ)))
|
| 123 |
+
|
| 124 |
+
lemma visitWeight_measurable {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n)
|
| 125 |
+
(t η : ℝ) (X : Configuration n L) : Measurable (visitWeight L A i t η X) :=
|
| 126 |
+
((measurable_const.mul ((measurable_of_countable (fun k : ℕ ↦ (k:ℝ))).comp (visitCount_measurable L A i t X))).exp).ennreal_ofReal
|
| 127 |
+
|
| 128 |
+
lemma exp_nat_sum_le {a b c : ℕ} (h : a≤b+c) {η : ℝ} (hη : 0≤η) :
|
| 129 |
+
ENNReal.ofReal (Real.exp (η*(a:ℝ))) ≤
|
| 130 |
+
ENNReal.ofReal (Real.exp (η*(b:ℝ)))*ENNReal.ofReal (Real.exp (η*(c:ℝ))) := by
|
| 131 |
+
rw [←ENNReal.ofReal_mul (Real.exp_nonneg _),←Real.exp_add]
|
| 132 |
+
apply ENNReal.ofReal_le_ofReal
|
| 133 |
+
apply Real.exp_le_exp.mpr
|
| 134 |
+
have h' : (a:ℝ)≤(b:ℝ)+(c:ℝ) := by exact_mod_cast h
|
| 135 |
+
nlinarith
|
| 136 |
+
|
| 137 |
+
lemma visit_moment_add {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n)
|
| 138 |
+
{s t η : ℝ} (hs : 0<s) (ht : 0<t) (hη : 0≤η) (p q : ℝ≥0∞)
|
| 139 |
+
(hsbound : ∀ X, ∫⁻ w,visitWeight L A i s η X w ∂coordinateWiener n ≤p)
|
| 140 |
+
(htbound : ∀ X, ∫⁻ w,visitWeight L A i t η X w ∂coordinateWiener n ≤q)
|
| 141 |
+
(X : Configuration n L) :
|
| 142 |
+
∫⁻ w,visitWeight L A i (s+t) η X w ∂coordinateWiener n ≤p*q := by
|
| 143 |
+
let F : CoordinatePaths n × CoordinatePaths n → ℝ≥0∞ := fun w ↦
|
| 144 |
+
visitWeight L A i s η X w.1 * visitWeight L A i t η (freeTrajectory n L s w.1 X 1) w.2
|
| 145 |
+
have hG : Measurable (fun w : CoordinatePaths n × CoordinatePaths n ↦
|
| 146 |
+
visitWeight L A i t η (freeTrajectory n L s w.1 X 1) w.2) := by
|
| 147 |
+
change Measurable (fun w : CoordinatePaths n × CoordinatePaths n ↦
|
| 148 |
+
ENNReal.ofReal (Real.exp (η*((pathVisitedSites L (siteCenter L) A i
|
| 149 |
+
(freeTrajectory n L t w.2 (freeTrajectory n L s w.1 X 1))).card:ℝ))))
|
| 150 |
+
exact (measurable_const.mul ((measurable_of_countable (fun k : ℕ ↦ (k:ℝ))).comp
|
| 151 |
+
((pathVisitedSites_card_measurable L (siteCenter L) A i).comp
|
| 152 |
+
(measurable_snd.comp (split_fixedTrajectory_measurable n L s t X))))).exp.ennreal_ofReal
|
| 153 |
+
have hF : Measurable F := ((visitWeight_measurable L A i s η X).comp measurable_fst).mul hG
|
| 154 |
+
calc
|
| 155 |
+
_ ≤ ∫⁻ w,F (fun p ↦ normalizedPrefix (splitTime s t hs ht) (w p),
|
| 156 |
+
fun p ↦ normalizedSuffix (splitTime s t hs ht) (w p)) ∂coordinateWiener n :=
|
| 157 |
+
lintegral_mono (fun w ↦ exp_nat_sum_le (visit_count_split L A i hs ht w X) hη)
|
| 158 |
+
_ = ∫⁻ w,F w ∂(coordinateWiener n).prod (coordinateWiener n) :=
|
| 159 |
+
(coordinateSplit_preserving n (splitTime s t hs ht)
|
| 160 |
+
(splitTime_pos s t hs ht) (splitTime_lt_one s t hs ht)).lintegral_comp hF
|
| 161 |
+
_ = ∫⁻ w₁,∫⁻ w₂,F (w₁,w₂) ∂coordinateWiener n ∂coordinateWiener n :=
|
| 162 |
+
lintegral_prod _ hF.aemeasurable
|
| 163 |
+
_ ≤ ∫⁻ w₁,visitWeight L A i s η X w₁*q ∂coordinateWiener n := by
|
| 164 |
+
apply lintegral_mono
|
| 165 |
+
intro w₁
|
| 166 |
+
dsimp only [F]
|
| 167 |
+
rw [lintegral_const_mul _ (visitWeight_measurable L A i t η _)]
|
| 168 |
+
exact mul_le_mul_right (htbound _) _
|
| 169 |
+
_ = (∫⁻ w,visitWeight L A i s η X w ∂coordinateWiener n)*q :=
|
| 170 |
+
lintegral_mul_const _ (visitWeight_measurable L A i s η X)
|
| 171 |
+
_ ≤ p*q := mul_le_mul_left (hsbound X) _
|
| 172 |
+
|
| 173 |
+
lemma n_segment_visit_moment {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n)
|
| 174 |
+
{t η : ℝ} (ht : 0<t) (hη : 0≤η) (B : ℝ≥0∞)
|
| 175 |
+
(hbound : ∀ X, ∫⁻ w,visitWeight L A i t η X w ∂coordinateWiener n ≤ B) :
|
| 176 |
+
∀ k : ℕ, 0<k → ∀ X,
|
| 177 |
+
∫⁻ w,visitWeight L A i ((k:ℝ)*t) η X w ∂coordinateWiener n ≤ B^k := by
|
| 178 |
+
intro k hk
|
| 179 |
+
induction k, hk using Nat.le_induction with
|
| 180 |
+
| base => simpa only [Nat.succ_eq_add_one,Nat.zero_add,Nat.cast_one,one_mul,pow_one] using hbound
|
| 181 |
+
| succ k hk ih =>
|
| 182 |
+
intro X
|
| 183 |
+
have h := visit_moment_add L A i (mul_pos (by exact_mod_cast hk) ht) ht hη
|
| 184 |
+
(B^k) B ih hbound X
|
| 185 |
+
convert h using 1 <;> push_cast <;> ring_nf
|
| 186 |
+
|
| 187 |
+
lemma small_visit_moment {c : ℝ} (_hc : 0<c) {M : ℝ≥0∞}
|
| 188 |
+
(htail : ∀ R : ℝ, 0≤R → wiener {w | R≤‖w‖}≤M*ENNReal.ofReal (Real.exp (-c*R^2)))
|
| 189 |
+
{n K : ℕ} [NeZero K] (L : Length) (hL : L.val=(K:ℝ))
|
| 190 |
+
(A : Finset (DiscreteTorus K)) (i : Fin n) {η t : ℝ} (hη : 0≤η) (ht : 0<t)
|
| 191 |
+
(htsmall : t≤c/(2*(η*(29^3:ℝ)+2))) (X : Configuration n L) :
|
| 192 |
+
∫⁻ w,visitWeight L A i t η X w ∂coordinateWiener n ≤ expTailBound (29^3) η (3*M) := by
|
| 193 |
+
apply lintegral_exp_nat_le (coordinateWiener n) (visitCount L A i t X)
|
| 194 |
+
(visitCount_measurable L A i t X) (29^3) (by norm_num) hη (3*M)
|
| 195 |
+
intro k hk
|
| 196 |
+
have he : η*(29^3:ℝ)+2 ≤ c/(2*t) := by
|
| 197 |
+
apply (le_div_iff₀ (by positivity : 0<2*t)).mpr
|
| 198 |
+
have h := (le_div_iff₀ (by positivity : 0<2*(η*(29^3:ℝ)+2))).mp htsmall
|
| 199 |
+
nlinarith
|
| 200 |
+
have hexp : -c*(k:ℝ)/(2*t) ≤ -(η*(29^3:ℝ)+2)*(k:ℝ) := by
|
| 201 |
+
calc
|
| 202 |
+
_ = -(c/(2*t))*(k:ℝ) := by ring
|
| 203 |
+
_ ≤ _ := mul_le_mul_of_nonneg_right (neg_le_neg he) (Nat.cast_nonneg k)
|
| 204 |
+
have hb := whole_time_visit_tail htail L hL A i ht k hk X
|
| 205 |
+
apply hb.trans
|
| 206 |
+
calc
|
| 207 |
+
_ ≤ (k:ℝ≥0∞)*(3*M*ENNReal.ofReal (Real.exp (-(η*(29^3:ℝ)+2)*(k:ℝ)))) := by
|
| 208 |
+
exact mul_le_mul_right (mul_le_mul_right (ENNReal.ofReal_le_ofReal (Real.exp_le_exp.mpr hexp)) _) _
|
| 209 |
+
_ = _ := by norm_num only [Nat.cast_pow,Nat.cast_ofNat]; ring
|
| 210 |
+
|
| 211 |
+
theorem free_visit_moment (η₀ : ℝ) (hη₀ : 0≤η₀) :
|
| 212 |
+
∃ B : ℝ≥0∞, B<⊤ ∧ ∀ {n K : ℕ} [NeZero K], ∀ (L : Length), L.val=(K:ℝ) →
|
| 213 |
+
∀ (A : Finset (DiscreteTorus K)) (i : Fin n) (t η : ℝ),
|
| 214 |
+
0<t → t≤2 → η≤η₀ → ∀ X : Configuration n L,
|
| 215 |
+
∫⁻ w,visitWeight L A i t η X w ∂coordinateWiener n ≤ B := by
|
| 216 |
+
obtain ⟨c,M,hc,hM,htail⟩ := wiener_norm_gaussian_tail
|
| 217 |
+
let τ : ℝ := c/(2*(η₀*(29^3:ℝ)+2))
|
| 218 |
+
have hτ : 0<τ := div_pos hc (by positivity)
|
| 219 |
+
obtain ⟨m,hm⟩ := exists_nat_gt (max 1 (2/τ))
|
| 220 |
+
have hm1 : (1:ℝ) < m := (le_max_left _ _).trans_lt hm
|
| 221 |
+
have hmpos : 0 < m := by exact_mod_cast (lt_trans (by norm_num : (0:ℝ)<1) hm1)
|
| 222 |
+
have hmpos' : (0:ℝ) < m := by exact_mod_cast hmpos
|
| 223 |
+
have hτm : 2≤τ*(m:ℝ) := by
|
| 224 |
+
have h := (le_max_right _ _).trans hm.le
|
| 225 |
+
have h' := (div_le_iff₀ hτ).mp h
|
| 226 |
+
nlinarith
|
| 227 |
+
let B := expTailBound (29^3) η₀ (3*M)
|
| 228 |
+
have hB : B≠⊤ := expTailBound_ne_top _ _ (ENNReal.mul_ne_top (by simp) hM.ne)
|
| 229 |
+
refine ⟨B^m,lt_top_iff_ne_top.mpr (ENNReal.pow_ne_top hB),?_⟩
|
| 230 |
+
intro n K _ L hL A i t η ht ht2 hη X
|
| 231 |
+
have hts : t/(m:ℝ)≤τ := (div_le_iff₀ hmpos').mpr (by nlinarith)
|
| 232 |
+
have hs : ∀ X, ∫⁻ w,visitWeight L A i (t/(m:ℝ)) η₀ X w ∂coordinateWiener n ≤ B :=
|
| 233 |
+
fun X ↦ small_visit_moment hc htail L hL A i hη₀ (div_pos ht hmpos') hts X
|
| 234 |
+
have h := n_segment_visit_moment L A i (div_pos ht hmpos') hη₀ B hs m hmpos X
|
| 235 |
+
have he : (m:ℝ)*(t/(m:ℝ))=t := mul_div_cancel₀ t (ne_of_gt hmpos')
|
| 236 |
+
rw [he] at h
|
| 237 |
+
apply le_trans _ h
|
| 238 |
+
apply lintegral_mono
|
| 239 |
+
intro w
|
| 240 |
+
exact ENNReal.ofReal_le_ofReal (Real.exp_le_exp.mpr
|
| 241 |
+
(mul_le_mul_of_nonneg_right hη (Nat.cast_nonneg _)))
|
| 242 |
+
|
| 243 |
+
end HardSphere.FreeVisits
|
| 244 |
+
|
| 245 |
+
end
|
| 246 |
+
|
| 247 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/FiberDerivativeMulTailLocal.lean
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Comparison.SafeMass
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
noncomputable section
|
| 7 |
+
open MeasureTheory Filter Set
|
| 8 |
+
open scoped ENNReal Topology BigOperators
|
| 9 |
+
open scoped BigOperators ComplexConjugate
|
| 10 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 11 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 12 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 13 |
+
open scoped ENNReal ComplexConjugate
|
| 14 |
+
open ProbabilityTheory
|
| 15 |
+
namespace HardSphere
|
| 16 |
+
open MeasureTheory Set Filter
|
| 17 |
+
open scoped ComplexConjugate
|
| 18 |
+
|
| 19 |
+
lemma SmoothMultiplier.fiber_derivative_mul_tail_le_local {n : ℕ} {L : Length}
|
| 20 |
+
(g : SmoothMultiplier (n+1) L) (r : SmoothMultiplier n L)
|
| 21 |
+
(hr : ∀ X, conj (g.toFun X)=g.toFun X)
|
| 22 |
+
(p : Direction (n+1)) (Y : Configuration n L)
|
| 23 |
+
(hn : ∀ᶠ Z in 𝓝 Y, g.fiberMass Z=1) :
|
| 24 |
+
‖r.toFun Y‖^2 * (∫ x : Torus L, ‖coordDerivative (n+1) L g.toFun p (Fin.cons x Y)‖^2) ≤
|
| 25 |
+
∫ x : Torus L, ‖coordDerivative (n+1) L (fun X ↦ g.toFun X*r.toFun (Fin.tail X)) p
|
| 26 |
+
(Fin.cons x Y)‖^2 := by
|
| 27 |
+
have hd := coordDerivative_mul (g := fun X : Configuration (n+1) L ↦ r.toFun (Fin.tail X))
|
| 28 |
+
(g.smooth.differentiable (by simp))
|
| 29 |
+
((smooth_tail r.smooth).differentiable (by simp)) p
|
| 30 |
+
have hc : Continuous (fun x : Torus L ↦ (Fin.cons x Y : Configuration (n+1) L)) :=
|
| 31 |
+
(continuous_id : Continuous (id : Torus L → Torus L)).finCons
|
| 32 |
+
(continuous_const : Continuous (fun _ : Torus L ↦ Y))
|
| 33 |
+
have hg := (continuous_of_continuous_lift g.smooth.continuous).comp hc
|
| 34 |
+
have hdg := (continuous_coordDerivative g.smooth p).comp hc
|
| 35 |
+
have hs := r.smooth.differentiable (by simp)
|
| 36 |
+
rcases p with ⟨i,j⟩
|
| 37 |
+
induction i using Fin.cases with
|
| 38 |
+
| zero =>
|
| 39 |
+
simp only [coordDerivative_tail_zero hs j,mul_zero,zero_add] at hd
|
| 40 |
+
rw [show (fun X ↦ g.toFun X*r.toFun (Fin.tail X))=g.toFun*(fun X ↦ r.toFun (Fin.tail X)) from rfl,hd]
|
| 41 |
+
simp only [Pi.mul_apply,Fin.tail_cons,norm_mul,mul_pow]
|
| 42 |
+
rw [integral_const_mul]
|
| 43 |
+
| succ k =>
|
| 44 |
+
have he := g.insertion_orthogonal_local hr k j Y hn
|
| 45 |
+
have ho : (∫ x : Torus L,
|
| 46 |
+
conj (g.toFun (Fin.cons x Y)*coordDerivative n L r.toFun (k,j) Y)*
|
| 47 |
+
(r.toFun Y*coordDerivative (n+1) L g.toFun (k.succ,j) (Fin.cons x Y)))=0 := by
|
| 48 |
+
calc
|
| 49 |
+
_ = (conj (coordDerivative n L r.toFun (k,j) Y)*r.toFun Y)*
|
| 50 |
+
∫ x : Torus L, conj (g.toFun (Fin.cons x Y))*
|
| 51 |
+
coordDerivative (n+1) L g.toFun (k.succ,j) (Fin.cons x Y) := by
|
| 52 |
+
rw [← integral_const_mul]
|
| 53 |
+
apply integral_congr_ae
|
| 54 |
+
exact Eventually.of_forall fun x ↦ by simp only [map_mul]; ring
|
| 55 |
+
_ = 0 := by rw [he,mul_zero]
|
| 56 |
+
have heq := integral_norm_add_sq_orthogonal (hg.mul continuous_const) (continuous_const.mul hdg) ho
|
| 57 |
+
simp only [Pi.mul_apply,Function.comp_def] at heq
|
| 58 |
+
have hd' := coordDerivative_mul (g := fun X : Configuration (n+1) L ↦ r.toFun (Fin.tail X))
|
| 59 |
+
(g.smooth.differentiable (by simp))
|
| 60 |
+
((smooth_tail r.smooth).differentiable (by simp)) (k.succ,j)
|
| 61 |
+
rw [coordDerivative_tail_succ hs k j] at hd'
|
| 62 |
+
rw [show (fun X ↦ g.toFun X*r.toFun (Fin.tail X))=g.toFun*(fun X ↦ r.toFun (Fin.tail X)) from rfl,hd']
|
| 63 |
+
simp only [Pi.mul_apply,Pi.add_apply,Fin.tail_cons]
|
| 64 |
+
rw [heq]
|
| 65 |
+
simp only [norm_mul,mul_pow]
|
| 66 |
+
rw [integral_const_mul]
|
| 67 |
+
exact le_add_of_nonneg_left (integral_nonneg fun x ↦ mul_nonneg (sq_nonneg _) (sq_nonneg _))
|
| 68 |
+
|
| 69 |
+
lemma SmoothMultiplier.localNormalization_derivative_le {n : ℕ} {L : Length}
|
| 70 |
+
(f : SmoothMultiplier (n+1) L) (hr : ∀ X, conj (f.toFun X)=f.toFun X)
|
| 71 |
+
(p : Direction (n+1)) (Y : Configuration n L) (hY : 1/2<f.fiberMass Y) :
|
| 72 |
+
f.fiberMass Y * (∫ x : Torus L,
|
| 73 |
+
‖coordDerivative (n+1) L (f.localNormalization hr).toFun p (Fin.cons x Y)‖^2) ≤
|
| 74 |
+
∫ x : Torus L, ‖coordDerivative (n+1) L f.toFun p (Fin.cons x Y)‖^2 := by
|
| 75 |
+
have he : (fun X ↦ (f.localNormalization hr).toFun X *
|
| 76 |
+
(f.safeRoot hr).toFun (Fin.tail X))=f.toFun := by
|
| 77 |
+
funext X
|
| 78 |
+
exact div_mul_cancel₀ _ (Complex.ofReal_ne_zero.mpr
|
| 79 |
+
(Real.sqrt_pos.mpr (safeMass_pos (f.fiberMass_nonneg _))).ne')
|
| 80 |
+
have hh := (f.localNormalization hr).fiber_derivative_mul_tail_le_local (f.safeRoot hr)
|
| 81 |
+
(f.localNormalization_real hr) p Y (f.localNormalization_mass_eventually hr Y hY)
|
| 82 |
+
rw [he] at hh
|
| 83 |
+
have hn : ‖(f.safeRoot hr).toFun Y‖^2=f.fiberMass Y := by
|
| 84 |
+
change ‖(Real.sqrt (safeMass (f.fiberMass Y)) : ℂ)‖^2=_
|
| 85 |
+
rw [Complex.norm_real,Real.norm_eq_abs,abs_of_nonneg (Real.sqrt_nonneg _),
|
| 86 |
+
Real.sq_sqrt (safeMass_pos (f.fiberMass_nonneg _)).le,safeMass_eq hY.le]
|
| 87 |
+
rwa [hn] at hh
|
| 88 |
+
|
| 89 |
+
end HardSphere
|
| 90 |
+
|
| 91 |
+
end
|
| 92 |
+
|
| 93 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/FreeVisitProbability.lean
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.KilledObservable
|
| 3 |
+
import OAI.Analysis.HardSphere.PathBounds.VisitPacking
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
|
| 9 |
+
section
|
| 10 |
+
noncomputable section
|
| 11 |
+
open MeasureTheory Set Filter
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
namespace HardSphere.FreeVisits
|
| 14 |
+
open HardSphere.BathSlice HardSphere.Lattice HardSphere.CellOrbital HardSphere.Wiener
|
| 15 |
+
|
| 16 |
+
lemma pathVisitedSites_card_measurable {S : Type*} {n : ℕ} (L : Length)
|
| 17 |
+
(v : S → Torus L) (A : Finset S) (i : Fin n) :
|
| 18 |
+
Measurable (fun ω : ConfigurationPath n L ↦ (pathVisitedSites L v A i ω).card) := by
|
| 19 |
+
classical
|
| 20 |
+
simp only [pathVisitedSites,Finset.card_filter]
|
| 21 |
+
apply Finset.measurable_sum
|
| 22 |
+
intro a _
|
| 23 |
+
exact Measurable.ite (pathVisitsBall_isClosed L 12 (v a) i).measurableSet
|
| 24 |
+
measurable_const measurable_const
|
| 25 |
+
|
| 26 |
+
def visitCount {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n)
|
| 27 |
+
(t : ℝ) (X : Configuration n L) (w : CoordinatePaths n) : ℕ :=
|
| 28 |
+
(pathVisitedSites L (siteCenter L) A i (freeTrajectory n L t w X)).card
|
| 29 |
+
|
| 30 |
+
lemma visitCount_measurable {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n)
|
| 31 |
+
(t : ℝ) (X : Configuration n L) : Measurable (visitCount L A i t X) :=
|
| 32 |
+
(pathVisitedSites_card_measurable L (siteCenter L) A i).comp
|
| 33 |
+
((freeTrajectory_continuous n L t).comp (continuous_id.prodMk continuous_const)).measurable
|
| 34 |
+
|
| 35 |
+
lemma one_segment_visit_tail {c : ℝ} {M : ℝ≥0∞}
|
| 36 |
+
(htail : ∀ R : ℝ, 0≤R → wiener {w | R≤‖w‖}≤M*ENNReal.ofReal (Real.exp (-c*R^2)))
|
| 37 |
+
{n K : ℕ} [NeZero K] (L : Length) (hL : L.val=(K:ℝ))
|
| 38 |
+
(A : Finset (DiscreteTorus K)) (i : Fin n) {t : ℝ} (ht : 0<t) (X : Configuration n L) :
|
| 39 |
+
coordinateWiener n {w | 29^3<visitCount L A i t X w} ≤
|
| 40 |
+
3*M*ENNReal.ofReal (Real.exp (-c/(2*t))) := by
|
| 41 |
+
let R : ℝ := (Real.sqrt (2*t))⁻¹
|
| 42 |
+
have hs : 0<Real.sqrt (2*t) := Real.sqrt_pos.mpr (by positivity)
|
| 43 |
+
have hR : 0≤R := inv_nonneg.mpr hs.le
|
| 44 |
+
have hsub : {w | 29^3<visitCount L A i t X w} ⊆
|
| 45 |
+
⋃ j : Fin 3, {w | R≤‖w (i,j)‖} := by
|
| 46 |
+
intro w hw
|
| 47 |
+
by_contra hnot
|
| 48 |
+
have hn : ∀ j, ‖w (i,j)‖<R := by simpa only [Set.mem_iUnion,Set.mem_ofPred_eq,not_exists,not_le] using hnot
|
| 49 |
+
have hb := free_visited_card_le_of_norm L hL A i t w X (fun j ↦ ?_)
|
| 50 |
+
· exact (not_lt_of_ge hb) hw
|
| 51 |
+
· calc
|
| 52 |
+
Real.sqrt (2*t)*‖w (i,j)‖ ≤ Real.sqrt (2*t)*R := mul_le_mul_of_nonneg_left (hn j).le hs.le
|
| 53 |
+
_ = 1 := mul_inv_cancel₀ (ne_of_gt hs)
|
| 54 |
+
have he (j : Fin 3) : coordinateWiener n {w | R≤‖w (i,j)‖} = wiener {w | R≤‖w‖} := by
|
| 55 |
+
exact (measurePreserving_eval (fun _ : Direction n ↦ wiener) (i,j)).measure_preimage
|
| 56 |
+
(measurableSet_le measurable_const measurable_norm).nullMeasurableSet
|
| 57 |
+
calc
|
| 58 |
+
_ ≤ coordinateWiener n (⋃ j : Fin 3, {w | R≤‖w (i,j)‖}) := measure_mono hsub
|
| 59 |
+
_ ≤ ∑' j : Fin 3, coordinateWiener n {w | R≤‖w (i,j)‖} := measure_iUnion_le _
|
| 60 |
+
_ = 3 * wiener {w | R≤‖w‖} := by simp [he,tsum_fintype]
|
| 61 |
+
_ ≤ 3*(M*ENNReal.ofReal (Real.exp (-c*R^2))) := mul_le_mul_right (htail R hR) _
|
| 62 |
+
_ = _ := by
|
| 63 |
+
dsimp [R]
|
| 64 |
+
rw [inv_pow,Real.sq_sqrt (by positivity : 0≤2*t)]
|
| 65 |
+
simp only [div_eq_mul_inv,mul_assoc]
|
| 66 |
+
|
| 67 |
+
lemma visit_count_split {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n)
|
| 68 |
+
{s t : ℝ} (hs : 0<s) (ht : 0<t) (w : CoordinatePaths n) (X : Configuration n L) :
|
| 69 |
+
visitCount L A i (s+t) X w ≤
|
| 70 |
+
visitCount L A i s X (fun p ↦ normalizedPrefix (splitTime s t hs ht) (w p)) +
|
| 71 |
+
visitCount L A i t
|
| 72 |
+
(freeTrajectory n L s (fun p ↦ normalizedPrefix (splitTime s t hs ht) (w p)) X 1)
|
| 73 |
+
(fun p ↦ normalizedSuffix (splitTime s t hs ht) (w p)) := by
|
| 74 |
+
have hle := visited_card_split_le L (siteCenter L) A i (freeTrajectory n L (s+t) w X)
|
| 75 |
+
(splitTime s t hs ht) (splitTime_pos s t hs ht) (splitTime_lt_one s t hs ht)
|
| 76 |
+
have hp := congrArg Prod.fst (split_fixedTrajectory n L s t hs ht w X)
|
| 77 |
+
have hq := congrArg Prod.snd (split_fixedTrajectory n L s t hs ht w X)
|
| 78 |
+
dsimp only [Prod.fst,Prod.snd] at hp hq
|
| 79 |
+
rw [hp,hq] at hle
|
| 80 |
+
exact hle
|
| 81 |
+
|
| 82 |
+
attribute [local irreducible] freeTrajectory pathVisitedSites
|
| 83 |
+
|
| 84 |
+
lemma visit_tail_add {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n)
|
| 85 |
+
{s t : ℝ} (hs : 0<s) (ht : 0<t) (a b : ℕ) (p q : ℝ≥0∞)
|
| 86 |
+
(hsbound : ∀ X, coordinateWiener n {w | a<visitCount L A i s X w}≤p)
|
| 87 |
+
(htbound : ∀ X, coordinateWiener n {w | b<visitCount L A i t X w}≤q)
|
| 88 |
+
(X : Configuration n L) :
|
| 89 |
+
coordinateWiener n {w | a+b<visitCount L A i (s+t) X w}≤p+q := by
|
| 90 |
+
let u := splitTime s t hs ht
|
| 91 |
+
let split : CoordinatePaths n → CoordinatePaths n × CoordinatePaths n := fun w ↦
|
| 92 |
+
(fun p ↦ normalizedPrefix u (w p),fun p ↦ normalizedSuffix u (w p))
|
| 93 |
+
let E₁ : Set (CoordinatePaths n × CoordinatePaths n) :=
|
| 94 |
+
{p | a<visitCount L A i s X p.1}
|
| 95 |
+
let E₂ : Set (CoordinatePaths n × CoordinatePaths n) :=
|
| 96 |
+
{p | b<visitCount L A i t (freeTrajectory n L s p.1 X 1) p.2}
|
| 97 |
+
have hE₁ : MeasurableSet E₁ := measurableSet_lt measurable_const
|
| 98 |
+
((visitCount_measurable L A i s X).comp measurable_fst)
|
| 99 |
+
have hE₂ : MeasurableSet E₂ := by
|
| 100 |
+
apply measurableSet_lt measurable_const
|
| 101 |
+
exact (pathVisitedSites_card_measurable L (siteCenter L) A i).comp
|
| 102 |
+
(measurable_snd.comp (split_fixedTrajectory_measurable n L s t X))
|
| 103 |
+
have hsub : {w | a+b<visitCount L A i (s+t) X w} ⊆ split ⁻¹' (E₁∪E₂) := by
|
| 104 |
+
intro w hw
|
| 105 |
+
have hle := visit_count_split L A i hs ht w X
|
| 106 |
+
change a<visitCount L A i s X (split w).1 ∨
|
| 107 |
+
b<visitCount L A i t (freeTrajectory n L s (split w).1 X 1) (split w).2
|
| 108 |
+
change a+b<visitCount L A i (s+t) X w at hw
|
| 109 |
+
change visitCount L A i (s+t) X w ≤ visitCount L A i s X (split w).1 +
|
| 110 |
+
visitCount L A i t (freeTrajectory n L s (split w).1 X 1) (split w).2 at hle
|
| 111 |
+
omega
|
| 112 |
+
have hp₁ : ((coordinateWiener n).prod (coordinateWiener n)) E₁≤p := by
|
| 113 |
+
have he : E₁={w | a<visitCount L A i s X w} ×ˢ Set.univ := by ext v; simp [E₁]
|
| 114 |
+
rw [he,Measure.prod_prod,measure_univ,mul_one]
|
| 115 |
+
exact hsbound X
|
| 116 |
+
have hp₂ : ((coordinateWiener n).prod (coordinateWiener n)) E₂≤q := by
|
| 117 |
+
rw [Measure.prod_apply hE₂]
|
| 118 |
+
calc
|
| 119 |
+
_ ≤ ∫⁻ _w : CoordinatePaths n, q ∂coordinateWiener n := by
|
| 120 |
+
apply lintegral_mono
|
| 121 |
+
intro w
|
| 122 |
+
exact htbound (freeTrajectory n L s w X 1)
|
| 123 |
+
_ = q := by simp
|
| 124 |
+
calc
|
| 125 |
+
_ ≤ coordinateWiener n (split ⁻¹' (E₁∪E₂)) := measure_mono hsub
|
| 126 |
+
_ = ((coordinateWiener n).prod (coordinateWiener n)) (E₁∪E₂) :=
|
| 127 |
+
(coordinateSplit_preserving n u (splitTime_pos s t hs ht) (splitTime_lt_one s t hs ht)).measure_preimage
|
| 128 |
+
(hE₁.union hE₂).nullMeasurableSet
|
| 129 |
+
_ ≤ ((coordinateWiener n).prod (coordinateWiener n)) E₁ +
|
| 130 |
+
((coordinateWiener n).prod (coordinateWiener n)) E₂ := measure_union_le _ _
|
| 131 |
+
_ ≤ p+q := add_le_add hp₁ hp₂
|
| 132 |
+
|
| 133 |
+
lemma n_segment_visit_tail {c : ℝ} {M : ℝ≥0∞}
|
| 134 |
+
(htail : ∀ R : ℝ, 0≤R → wiener {w | R≤‖w‖}≤M*ENNReal.ofReal (Real.exp (-c*R^2)))
|
| 135 |
+
{n K : ℕ} [NeZero K] (L : Length) (hL : L.val=(K:ℝ))
|
| 136 |
+
(A : Finset (DiscreteTorus K)) (i : Fin n) {t : ℝ} (ht : 0<t) :
|
| 137 |
+
∀ k : ℕ, 0<k → ∀ X : Configuration n L,
|
| 138 |
+
coordinateWiener n {w | 29^3*k<visitCount L A i ((k:ℝ)*t) X w} ≤
|
| 139 |
+
(k:ℝ≥0∞)*(3*M*ENNReal.ofReal (Real.exp (-c/(2*t)))) := by
|
| 140 |
+
intro k hk
|
| 141 |
+
induction k, hk using Nat.le_induction with
|
| 142 |
+
| base =>
|
| 143 |
+
intro X
|
| 144 |
+
simpa only [Nat.succ_eq_add_one,Nat.zero_add,Nat.cast_one,one_mul,mul_one] using one_segment_visit_tail htail L hL A i ht X
|
| 145 |
+
| succ k hk ih =>
|
| 146 |
+
intro X
|
| 147 |
+
have hkt : 0<(k:ℝ)*t := mul_pos (by exact_mod_cast hk) ht
|
| 148 |
+
have h := visit_tail_add L A i hkt ht (29^3*k) (29^3)
|
| 149 |
+
((k:ℝ≥0∞)*(3*M*ENNReal.ofReal (Real.exp (-c/(2*t)))))
|
| 150 |
+
(3*M*ENNReal.ofReal (Real.exp (-c/(2*t)))) ih
|
| 151 |
+
(fun X ↦ one_segment_visit_tail htail L hL A i ht X) X
|
| 152 |
+
convert h using 1 <;> push_cast <;> ring_nf
|
| 153 |
+
|
| 154 |
+
lemma whole_time_visit_tail {c : ℝ} {M : ℝ≥0∞}
|
| 155 |
+
(htail : ∀ R : ℝ, 0≤R → wiener {w | R≤‖w‖}≤M*ENNReal.ofReal (Real.exp (-c*R^2)))
|
| 156 |
+
{n K : ℕ} [NeZero K] (L : Length) (hL : L.val=(K:ℝ))
|
| 157 |
+
(A : Finset (DiscreteTorus K)) (i : Fin n) {t : ℝ} (ht : 0<t)
|
| 158 |
+
(k : ℕ) (hk : 0<k) (X : Configuration n L) :
|
| 159 |
+
coordinateWiener n {w | 29^3*k<visitCount L A i t X w} ≤
|
| 160 |
+
(k:ℝ≥0∞)*(3*M*ENNReal.ofReal (Real.exp (-c*(k:ℝ)/(2*t)))) := by
|
| 161 |
+
have hk' : (0:ℝ)<k := by exact_mod_cast hk
|
| 162 |
+
have h := n_segment_visit_tail htail L hL A i (div_pos ht hk') k hk X
|
| 163 |
+
have he : (k:ℝ)*(t/k)=t := mul_div_cancel₀ t (ne_of_gt hk')
|
| 164 |
+
rw [he] at h
|
| 165 |
+
convert h using 1
|
| 166 |
+
congr 3
|
| 167 |
+
field_simp
|
| 168 |
+
|
| 169 |
+
end HardSphere.FreeVisits
|
| 170 |
+
|
| 171 |
+
end
|
| 172 |
+
end
|
| 173 |
+
|
| 174 |
+
end
|
| 175 |
+
|
| 176 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/FreeVisitTravel.lean
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.PathBounds.PathTailConstant
|
| 3 |
+
import OAI.Analysis.HardSphere.PathBounds.ExpNatTail
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
noncomputable section
|
| 8 |
+
open MeasureTheory Set Filter
|
| 9 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 10 |
+
namespace HardSphere.FreeVisits
|
| 11 |
+
open HardSphere.Wiener HardSphere.Lattice HardSphere.CellOrbital HardSphere.BathSlice
|
| 12 |
+
|
| 13 |
+
lemma torusDistance_le_three_of_coord (L : Length) (x y : Torus L) {B : ℝ}
|
| 14 |
+
(hB : 0≤B) (h : ∀ j, dist (x j) (y j)≤B) : torusDistance L x y≤3*B := by
|
| 15 |
+
apply Real.sqrt_le_iff.mpr
|
| 16 |
+
constructor
|
| 17 |
+
· positivity
|
| 18 |
+
· have hs : ∑ j : Fin 3, dist (x j) (y j)^2 ≤ ∑ _j : Fin 3, B^2 :=
|
| 19 |
+
Finset.sum_le_sum (fun j _ ↦ pow_le_pow_left₀ dist_nonneg (h j) 2)
|
| 20 |
+
simp only [Finset.sum_const,Finset.card_univ,Fintype.card_fin,nsmul_eq_mul] at hs
|
| 21 |
+
norm_num at hs
|
| 22 |
+
nlinarith [sq_nonneg B]
|
| 23 |
+
|
| 24 |
+
lemma freeTrajectory_dist_le {n : ℕ} (L : Length) {t R : ℝ} (ht : t≤2) (hR : 0≤R)
|
| 25 |
+
(w : CoordinatePaths n) (X : Configuration n L) (i : Fin n)
|
| 26 |
+
(hw : ∀ j, ‖w (i,j)‖≤R) (u : Time) :
|
| 27 |
+
torusDistance L (freeTrajectory n L t w X u i) (X i)≤6*R := by
|
| 28 |
+
have hs : Real.sqrt (2*t)≤2 := (Real.sqrt_le_iff).mpr ⟨by norm_num,by nlinarith⟩
|
| 29 |
+
have hcoord (j : Fin 3) : dist (freeTrajectory n L t w X u i j) (X i j)≤2*R := by
|
| 30 |
+
apply (freeTrajectory_coord_dist_le L t w X i u j).trans
|
| 31 |
+
exact mul_le_mul hs (hw j) (norm_nonneg _) (by norm_num)
|
| 32 |
+
have h := torusDistance_le_three_of_coord L _ _ (mul_nonneg (by norm_num) hR) hcoord
|
| 33 |
+
nlinarith
|
| 34 |
+
|
| 35 |
+
attribute [local irreducible] freeTrajectory pathVisitedSites torusDistance
|
| 36 |
+
|
| 37 |
+
def visitStartDistance {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 38 |
+
(i : Fin n) (X : Configuration n L) : ℝ := by
|
| 39 |
+
classical
|
| 40 |
+
exact spatialSiteDistance L (A.image (siteCenter L)) (X i)
|
| 41 |
+
|
| 42 |
+
lemma visitStartDistance_nonneg {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 43 |
+
(i : Fin n) (X : Configuration n L) : 0≤visitStartDistance L A i X :=
|
| 44 |
+
spatialSiteDistance_nonneg _ _ _
|
| 45 |
+
|
| 46 |
+
lemma visit_distance_le {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 47 |
+
(i : Fin n) (t : ℝ) (X : Configuration n L) (w : CoordinatePaths n)
|
| 48 |
+
(hw : 0<visitCount L A i t X w) :
|
| 49 |
+
∃ u : Time, visitStartDistance L A i X≤
|
| 50 |
+
torusDistance L (freeTrajectory n L t w X u i) (X i)+12 := by
|
| 51 |
+
classical
|
| 52 |
+
obtain ⟨v,hv⟩ := Finset.card_pos.mp hw
|
| 53 |
+
have hm : v∈A ∧ pathVisitsBall L 12 (siteCenter L v) i (freeTrajectory n L t w X) := by
|
| 54 |
+
rw [pathVisitedSites] at hv
|
| 55 |
+
exact Finset.mem_filter.mp hv
|
| 56 |
+
obtain ⟨u,hu⟩ := hm.2
|
| 57 |
+
have hd := spatialSiteDistance_le L (A.image (siteCenter L)) (X i) (siteCenter L v)
|
| 58 |
+
(Finset.mem_image.mpr ⟨v,hm.1,rfl⟩)
|
| 59 |
+
have htri := torusDistance_triangle' L (X i) (freeTrajectory n L t w X u i) (siteCenter L v)
|
| 60 |
+
rw [torusDistance_comm L (X i) (freeTrajectory n L t w X u i)] at htri
|
| 61 |
+
exact ⟨u,hd.trans (htri.trans (add_le_add le_rfl hu))⟩
|
| 62 |
+
|
| 63 |
+
lemma free_visit_travel_gaussian {c : ℝ} {M : ℝ≥0∞}
|
| 64 |
+
(htail : ∀ R : ℝ, 0≤R → wiener {w | R≤‖w‖}≤M*ENNReal.ofReal (Real.exp (-c*R^2)))
|
| 65 |
+
{n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n) {t : ℝ}
|
| 66 |
+
(ht : t≤2) (X : Configuration n L) (hd : 24≤visitStartDistance L A i X) :
|
| 67 |
+
coordinateWiener n {w | 0<visitCount L A i t X w} ≤
|
| 68 |
+
3*M*ENNReal.ofReal (Real.exp (-c*(visitStartDistance L A i X)^2/576)) := by
|
| 69 |
+
let d := visitStartDistance L A i X
|
| 70 |
+
let R := d/24
|
| 71 |
+
have hR : 0≤R := div_nonneg (by dsimp [d]; linarith) (by norm_num)
|
| 72 |
+
have hsub : {w | 0<visitCount L A i t X w} ⊆ ⋃ j : Fin 3, {w | R≤‖w (i,j)‖} := by
|
| 73 |
+
intro w hw
|
| 74 |
+
by_contra hn
|
| 75 |
+
have hw' : ∀ j, ‖w (i,j)‖≤R := by
|
| 76 |
+
have h : ∀ j, ‖w (i,j)‖<R := by simpa only [Set.mem_iUnion,Set.mem_ofPred_eq,not_exists,not_le] using hn
|
| 77 |
+
exact fun j ↦ (h j).le
|
| 78 |
+
obtain ⟨u,hu⟩ := visit_distance_le L A i t X w hw
|
| 79 |
+
have hdist := freeTrajectory_dist_le L ht hR w X i hw' u
|
| 80 |
+
dsimp [R,d] at hdist
|
| 81 |
+
linarith
|
| 82 |
+
have he (j : Fin 3) : coordinateWiener n {w | R≤‖w (i,j)‖} = wiener {w | R≤‖w‖} :=
|
| 83 |
+
(measurePreserving_eval (fun _ : Direction n ↦ wiener) (i,j)).measure_preimage
|
| 84 |
+
(measurableSet_le measurable_const measurable_norm).nullMeasurableSet
|
| 85 |
+
calc
|
| 86 |
+
_ ≤ coordinateWiener n (⋃ j : Fin 3, {w | R≤‖w (i,j)‖}) := measure_mono hsub
|
| 87 |
+
_ ≤ ∑' j : Fin 3, coordinateWiener n {w | R≤‖w (i,j)‖} := measure_iUnion_le _
|
| 88 |
+
_ = 3*wiener {w | R≤‖w‖} := by simp [he,tsum_fintype]
|
| 89 |
+
_ ≤ 3*(M*ENNReal.ofReal (Real.exp (-c*R^2))) := mul_le_mul_right (htail R hR) _
|
| 90 |
+
_ = _ := by
|
| 91 |
+
have he : -c*R^2 = -c*(visitStartDistance L A i X)^2/576 := by dsimp [R,d]; ring
|
| 92 |
+
rw [he]; ac_rfl
|
| 93 |
+
|
| 94 |
+
theorem free_visit_travel : ∃ H : ℝ≥0∞, H<⊤ ∧
|
| 95 |
+
∀ {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n)
|
| 96 |
+
(t : ℝ), t≤2 → ∀ X : Configuration n L,
|
| 97 |
+
coordinateWiener n {w | 0<visitCount L A i t X w} ≤
|
| 98 |
+
H*ENNReal.ofReal (Real.exp (-3*visitStartDistance L A i X)) := by
|
| 99 |
+
obtain ⟨c,M,hc,hM,htail⟩ := wiener_norm_gaussian_tail
|
| 100 |
+
let H := ENNReal.ofReal (Real.exp 72)+3*M*ENNReal.ofReal (Real.exp (1296/c))
|
| 101 |
+
have hH : H<⊤ := by dsimp [H]; finiteness
|
| 102 |
+
refine ⟨H,hH,?_⟩
|
| 103 |
+
intro n K L A i t ht X
|
| 104 |
+
let d := visitStartDistance L A i X
|
| 105 |
+
by_cases hd : 24≤d
|
| 106 |
+
· apply (free_visit_travel_gaussian htail L A i ht X hd).trans
|
| 107 |
+
have hexp : -c*d^2/576 ≤ 1296/c+(-3*d) := by
|
| 108 |
+
have hs := sq_nonneg (c*d-864)
|
| 109 |
+
apply (mul_le_mul_iff_left₀ hc).mp
|
| 110 |
+
have he : c*(1296/c)=1296 := mul_div_cancel₀ _ (ne_of_gt hc)
|
| 111 |
+
nlinarith
|
| 112 |
+
have hbound := ENNReal.ofReal_le_ofReal (Real.exp_le_exp.mpr hexp)
|
| 113 |
+
rw [Real.exp_add,ENNReal.ofReal_mul (Real.exp_nonneg _)] at hbound
|
| 114 |
+
calc
|
| 115 |
+
_ ≤ (3*M*ENNReal.ofReal (Real.exp (1296/c)))*ENNReal.ofReal (Real.exp (-3*d)) := by
|
| 116 |
+
exact (mul_le_mul_right hbound (3*M)).trans_eq (by ring)
|
| 117 |
+
_ ≤ _ := by gcongr; exact le_add_self
|
| 118 |
+
· have he : 1≤ENNReal.ofReal (Real.exp 72)*ENNReal.ofReal (Real.exp (-3*d)) := by
|
| 119 |
+
rw [← ENNReal.ofReal_mul (Real.exp_nonneg _),←Real.exp_add]
|
| 120 |
+
exact ENNReal.one_le_ofReal.mpr (Real.one_le_exp_iff.mpr (by linarith))
|
| 121 |
+
exact (prob_le_one).trans (he.trans (by gcongr; exact le_self_add))
|
| 122 |
+
|
| 123 |
+
end HardSphere.FreeVisits
|
| 124 |
+
|
| 125 |
+
namespace HardSphere.FreeVisits
|
| 126 |
+
open HardSphere.Wiener HardSphere.Lattice HardSphere.CellOrbital HardSphere.BathSlice
|
| 127 |
+
attribute [local irreducible] freeTrajectory pathVisitedSites torusDistance
|
| 128 |
+
|
| 129 |
+
lemma lintegral_three_thirds {Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω)
|
| 130 |
+
{f g h : Ω → ℝ≥0∞} (hf : Measurable f) (hg : Measurable g) (hh : Measurable h) :
|
| 131 |
+
(∫⁻ w, f w^(1/3:ℝ)*g w^(1/3:ℝ)*h w^(1/3:ℝ) ∂μ) ≤
|
| 132 |
+
(∫⁻ w,f w ∂μ)^(1/3:ℝ)*(∫⁻ w,g w ∂μ)^(1/3:ℝ)*(∫⁻ w,h w ∂μ)^(1/3:ℝ) := by
|
| 133 |
+
let F : Fin 3 → Ω → ℝ≥0∞ := ![f,g,h]
|
| 134 |
+
have hF : ∀ i ∈ (Finset.univ : Finset (Fin 3)), AEMeasurable (F i) μ := by
|
| 135 |
+
intro i _; fin_cases i <;> simp only [F] <;>
|
| 136 |
+
first | exact hf.aemeasurable | exact hg.aemeasurable | exact hh.aemeasurable
|
| 137 |
+
have H := ENNReal.lintegral_prod_norm_pow_le (μ:=μ) Finset.univ hF
|
| 138 |
+
(p:=fun _ ↦ (1/3:ℝ)) (by norm_num) (by intros; norm_num)
|
| 139 |
+
simpa [Fin.prod_univ_three,F] using H
|
| 140 |
+
|
| 141 |
+
lemma ofReal_exp_rpow {x p : ℝ} (hp : 0≤p) :
|
| 142 |
+
ENNReal.ofReal (Real.exp x)^p = ENNReal.ofReal (Real.exp (x*p)) := by
|
| 143 |
+
rw [ENNReal.ofReal_rpow_of_nonneg (Real.exp_nonneg _) hp,Real.exp_mul]
|
| 144 |
+
|
| 145 |
+
lemma indicator_one_third {Ω : Type*} (D : Set Ω) (w : Ω) :
|
| 146 |
+
(D.indicator (fun _ ↦ (1:ℝ≥0∞)) w)^(1/3:ℝ) = D.indicator (fun _ ↦ 1) w := by
|
| 147 |
+
classical
|
| 148 |
+
by_cases hw : w∈D <;> simp [hw]
|
| 149 |
+
|
| 150 |
+
lemma exp_sub_one_le_mul_exp (x : ℝ) : Real.exp x-1≤x*Real.exp x := by
|
| 151 |
+
have h := mul_le_mul_of_nonneg_right (Real.add_one_le_exp (-x)) (Real.exp_nonneg x)
|
| 152 |
+
rw [←Real.exp_add] at h
|
| 153 |
+
simp only [neg_add_cancel,Real.exp_zero] at h
|
| 154 |
+
nlinarith
|
| 155 |
+
|
| 156 |
+
def visitDefect {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n)
|
| 157 |
+
(t η : ℝ) (X : Configuration n L) (D : Set (CoordinatePaths n)) (w : CoordinatePaths n) : ℝ≥0∞ := by
|
| 158 |
+
classical
|
| 159 |
+
exact ENNReal.ofReal (Real.exp (η*(if w∈D then (visitCount L A i t X w:ℝ) else 0))-1)
|
| 160 |
+
|
| 161 |
+
lemma visitDefect_le {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K)) (i : Fin n)
|
| 162 |
+
(t : ℝ) {η η₀ : ℝ} (hη : 0≤η) (hηη : η≤η₀) (X : Configuration n L)
|
| 163 |
+
(D : Set (CoordinatePaths n)) (w : CoordinatePaths n) :
|
| 164 |
+
visitDefect L A i t η X D w ≤ ENNReal.ofReal η *
|
| 165 |
+
(visitWeight L A i t (3*(η₀+1)) X w ^ (1/3:ℝ) *
|
| 166 |
+
(D.indicator (fun _ ↦ (1:ℝ≥0∞)) w)^(1/3:ℝ) *
|
| 167 |
+
({w | 0<visitCount L A i t X w}.indicator (fun _ ↦ (1:ℝ≥0∞)) w) ^ (1/3:ℝ)) := by
|
| 168 |
+
classical
|
| 169 |
+
rw [indicator_one_third,indicator_one_third]
|
| 170 |
+
by_cases hw : w∈D
|
| 171 |
+
· by_cases hJ : 0<visitCount L A i t X w
|
| 172 |
+
· have hJmem : w∈{w | 0<visitCount L A i t X w} := hJ
|
| 173 |
+
simp only [Set.indicator_of_mem hw,Set.indicator_of_mem hJmem,mul_one]
|
| 174 |
+
rw [visitWeight,ofReal_exp_rpow (by norm_num),←ENNReal.ofReal_mul hη]
|
| 175 |
+
apply ENNReal.ofReal_le_ofReal
|
| 176 |
+
simp only [ite_eq_left hw]
|
| 177 |
+
set J : ℝ := (visitCount L A i t X w:ℝ)
|
| 178 |
+
have hJe : J≤Real.exp J := by linarith [Real.add_one_le_exp J]
|
| 179 |
+
have hJ0 : 0≤J := Nat.cast_nonneg _
|
| 180 |
+
calc
|
| 181 |
+
Real.exp (η*J)-1 ≤ (η*J)*Real.exp (η*J) := exp_sub_one_le_mul_exp _
|
| 182 |
+
_ ≤ η*Real.exp J*Real.exp (η*J) := by gcongr
|
| 183 |
+
_ = η*Real.exp ((η+1)*J) := by rw [mul_assoc,←Real.exp_add]; congr 2; ring
|
| 184 |
+
_ ≤ η*Real.exp (3*(η₀+1)*J*(1/3)) := by
|
| 185 |
+
apply mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr ?_) hη
|
| 186 |
+
nlinarith
|
| 187 |
+
· have hJ0 : visitCount L A i t X w=0 := Nat.eq_zero_of_not_pos hJ
|
| 188 |
+
simp [visitDefect,hw,hJ0]
|
| 189 |
+
· simp [visitDefect,hw]
|
| 190 |
+
|
| 191 |
+
theorem free_visit_bound {η₀ : ℝ} (hη₀ : 0≤η₀) : ∃ C : ℝ≥0∞, C<⊤ ∧
|
| 192 |
+
∀ {n K : ℕ} [NeZero K] (L : Length), L.val=(K:ℝ) →
|
| 193 |
+
∀ (A : Finset (DiscreteTorus K)) (i : Fin n) {t η : ℝ}, 0<t → t≤2 →
|
| 194 |
+
0≤η → η≤η₀ → ∀ (X : Configuration n L) (D : Set (CoordinatePaths n)),
|
| 195 |
+
MeasurableSet D → ∀ ε : ℝ≥0∞, coordinateWiener n D≤ε →
|
| 196 |
+
∫⁻ w,visitDefect L A i t η X D w ∂coordinateWiener n ≤
|
| 197 |
+
C*ENNReal.ofReal η*ε^(1/3:ℝ)*ENNReal.ofReal (Real.exp (-visitStartDistance L A i X)) := by
|
| 198 |
+
obtain ⟨B,hB,hBM⟩ := free_visit_moment (3*(η₀+1)) (show 0≤3*(η₀+1) by positivity)
|
| 199 |
+
obtain ⟨H,hH,hHT⟩ := free_visit_travel
|
| 200 |
+
let C := B^(1/3:ℝ)*H^(1/3:ℝ)
|
| 201 |
+
have hC : C<⊤ := ENNReal.mul_lt_top
|
| 202 |
+
(ENNReal.rpow_lt_top_of_nonneg (by norm_num) hB.ne)
|
| 203 |
+
(ENNReal.rpow_lt_top_of_nonneg (by norm_num) hH.ne)
|
| 204 |
+
refine ⟨C,hC,?_⟩
|
| 205 |
+
intro n K _ L hL A i t η ht ht2 hη hηη X D hD ε hε
|
| 206 |
+
let V := {w | 0<visitCount L A i t X w}
|
| 207 |
+
have hV : MeasurableSet V := measurableSet_lt measurable_const (visitCount_measurable L A i t X)
|
| 208 |
+
let f := visitWeight L A i t (3*(η₀+1)) X
|
| 209 |
+
let g := D.indicator (fun _ ↦ (1:ℝ≥0∞))
|
| 210 |
+
let h := V.indicator (fun _ ↦ (1:ℝ≥0∞))
|
| 211 |
+
have hf : Measurable f := visitWeight_measurable L A i t _ X
|
| 212 |
+
have hg : Measurable g := measurable_const.indicator hD
|
| 213 |
+
have hh : Measurable h := measurable_const.indicator hV
|
| 214 |
+
have hm : Measurable (fun w ↦ f w^(1/3:ℝ)*g w^(1/3:ℝ)*h w^(1/3:ℝ)) :=
|
| 215 |
+
((hf.pow_const _).mul (hg.pow_const _)).mul (hh.pow_const _)
|
| 216 |
+
have hfb : (∫⁻ w,f w ∂coordinateWiener n)≤B := hBM L hL A i t (3*(η₀+1)) ht ht2 le_rfl X
|
| 217 |
+
have hgb : (∫⁻ w,g w ∂coordinateWiener n)≤ε := by
|
| 218 |
+
change (∫⁻ w,D.indicator 1 w ∂coordinateWiener n)≤ε
|
| 219 |
+
rw [lintegral_indicator_one hD]; exact hε
|
| 220 |
+
have hhb : (∫⁻ w,h w ∂coordinateWiener n)≤H*ENNReal.ofReal (Real.exp (-3*visitStartDistance L A i X)) := by
|
| 221 |
+
change (∫⁻ w,V.indicator 1 w ∂coordinateWiener n)≤_
|
| 222 |
+
rw [lintegral_indicator_one hV]; exact hHT L A i t ht2 X
|
| 223 |
+
calc
|
| 224 |
+
_ ≤ ∫⁻ w,ENNReal.ofReal η*(f w^(1/3:ℝ)*g w^(1/3:ℝ)*h w^(1/3:ℝ)) ∂coordinateWiener n :=
|
| 225 |
+
lintegral_mono (visitDefect_le L A i t hη hηη X D)
|
| 226 |
+
_ = ENNReal.ofReal η*(∫⁻ w,f w^(1/3:ℝ)*g w^(1/3:ℝ)*h w^(1/3:ℝ) ∂coordinateWiener n) :=
|
| 227 |
+
lintegral_const_mul _ hm
|
| 228 |
+
_ ≤ ENNReal.ofReal η*((∫⁻ w,f w ∂coordinateWiener n)^(1/3:ℝ)*
|
| 229 |
+
(∫⁻ w,g w ∂coordinateWiener n)^(1/3:ℝ)*(∫⁻ w,h w ∂coordinateWiener n)^(1/3:ℝ)) :=
|
| 230 |
+
mul_le_mul_right (lintegral_three_thirds _ hf hg hh) _
|
| 231 |
+
_ ≤ ENNReal.ofReal η*(B^(1/3:ℝ)*ε^(1/3:ℝ)*
|
| 232 |
+
(H*ENNReal.ofReal (Real.exp (-3*visitStartDistance L A i X)))^(1/3:ℝ)) := by
|
| 233 |
+
gcongr
|
| 234 |
+
_ = _ := by
|
| 235 |
+
rw [ENNReal.mul_rpow_of_nonneg _ _ (by norm_num),ofReal_exp_rpow (by norm_num)]
|
| 236 |
+
have he : -3*visitStartDistance L A i X*(1/3) = -visitStartDistance L A i X := by ring
|
| 237 |
+
rw [he]; dsimp [C]; ring
|
| 238 |
+
|
| 239 |
+
end HardSphere.FreeVisits
|
| 240 |
+
|
| 241 |
+
end
|
| 242 |
+
|
| 243 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/GridTailTransfer.lean
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.GridAlignment
|
| 3 |
+
import OAI.Analysis.HardSphere.PathBounds.VisitCounts
|
| 4 |
+
import OAI.Analysis.HardSphere.Thermodynamics.ShiftCloseTail
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
section
|
| 9 |
+
|
| 10 |
+
section
|
| 11 |
+
noncomputable section
|
| 12 |
+
open MeasureTheory ProbabilityTheory Set Filter
|
| 13 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 14 |
+
namespace HardSphere.Groups
|
| 15 |
+
open Wiener PathCutoff CellOrbital BathSlice HardSphere.Lattice
|
| 16 |
+
|
| 17 |
+
lemma joint_event_image {W V U : Type*} [MeasurableSpace W] [DecidableEq U]
|
| 18 |
+
(μ : Measure W) (f : V→U) (P : U→W→Prop) (A : Finset V) :
|
| 19 |
+
μ {ω | ∀v∈A,P (f v) ω}=μ {ω | ∀u∈A.image f,P u ω} := by
|
| 20 |
+
congr 1
|
| 21 |
+
ext ω
|
| 22 |
+
simp only [Set.mem_ofPred_eq,Finset.mem_image,forall_exists_index,and_imp,forall_apply_eq_imp_iff₂]
|
| 23 |
+
|
| 24 |
+
lemma grid_visitors_eq {n K : ℕ} [NeZero K] (L : Length)
|
| 25 |
+
(v : Fin 3→Fin K) (ω : ConfigurationPath n L) :
|
| 26 |
+
ShiftVisits.visitorCount L (gridShift L) Set.univ (gridSite v) ω=(visitors (gridCenter L v) ω).card := by
|
| 27 |
+
classical
|
| 28 |
+
rw [grid_visitorCount]
|
| 29 |
+
apply congrArg Finset.card
|
| 30 |
+
ext i
|
| 31 |
+
simp [visitors]
|
| 32 |
+
|
| 33 |
+
lemma grid_longVisitors_eq {n K : ℕ} [NeZero K] (L : Length)
|
| 34 |
+
(v : Fin 3→Fin K) (ω : ConfigurationPath n L) :
|
| 35 |
+
ShiftVisits.visitorCount L (gridShift L) {p | 1 < intervalDiameter 0 1 p} (gridSite v) ω=
|
| 36 |
+
(longVisitors (gridCenter L v) ω).card := by
|
| 37 |
+
classical
|
| 38 |
+
rw [grid_visitorCount]
|
| 39 |
+
apply congrArg Finset.card
|
| 40 |
+
ext i
|
| 41 |
+
simp [longVisitors,and_comm]
|
| 42 |
+
|
| 43 |
+
lemma grid_nonregular_iff {n K : ℕ} [NeZero K] (L : Length)
|
| 44 |
+
(m : ℕ) (r R C S : ℝ) (u : Time) (v : Fin 3→Fin K) (ω : ConfigurationPath n L) :
|
| 45 |
+
(¬∀i,pathVisitsBall L 12 (gridCenter L v) i ω→Regular m r R C u S (onePathAt i ω)) ↔
|
| 46 |
+
1≤(ShiftVisits.visitorCount L (gridShift L) {p | ¬Regular m r R C u S p} (gridSite v) ω:ℝ) := by
|
| 47 |
+
classical
|
| 48 |
+
rw [grid_visitorCount]
|
| 49 |
+
have hcast (k : ℕ) : (1:ℝ)≤(k:ℝ) ↔ 1≤k := by exact_mod_cast Iff.rfl
|
| 50 |
+
rw [hcast,Finset.one_le_card]
|
| 51 |
+
change (¬∀i, _ → _) ↔ ∃i, i∈_
|
| 52 |
+
simp only [Finset.mem_filter,Finset.mem_univ,true_and,Set.mem_ofPred_eq]
|
| 53 |
+
push Not
|
| 54 |
+
exact exists_congr (fun i ↦ and_comm)
|
| 55 |
+
|
| 56 |
+
lemma ofReal_power_tail {x q : ℝ} (hx : 0≤x) (hq : 0≤q) (h : x≤q^6) (n : ℕ) :
|
| 57 |
+
ENNReal.ofReal (x^n)≤(ENNReal.ofReal q)^(6*n) := by
|
| 58 |
+
rw [pow_mul,←ENNReal.ofReal_pow hq,←ENNReal.ofReal_pow (pow_nonneg hq _)]
|
| 59 |
+
exact ENNReal.ofReal_le_ofReal (pow_le_pow_left₀ hx h n)
|
| 60 |
+
|
| 61 |
+
lemma exp_power_tail {x q : ℝ} (hq : 0≤q) (h : Real.exp x≤q^6) (n : ℕ) :
|
| 62 |
+
ENNReal.ofReal (Real.exp (x*(n:ℝ)))≤(ENNReal.ofReal q)^(6*n) := by
|
| 63 |
+
rw [mul_comm x (n:ℝ),Real.exp_nat_mul]
|
| 64 |
+
exact ofReal_power_tail (Real.exp_pos x).le hq h n
|
| 65 |
+
|
| 66 |
+
lemma grid_close_tail : ∃ Q : ℕ, 0<Q ∧ ∀ θ : ℝ, 0<θ →
|
| 67 |
+
∃ b Gθ : ℝ, 0<b ∧ b≤1/4 ∧ 0<Gθ ∧
|
| 68 |
+
Tendsto (fun D : ℝ ↦ ((Gθ/b^2)*D^(-(4/3):ℝ))^(1/(Q:ℝ))) atTop (𝓝 0) ∧
|
| 69 |
+
∀ αmax : ℝ, ∃ D₀ : ℝ, 1≤D₀ ∧
|
| 70 |
+
∀ (n K : ℕ) [Nontrivial (Fin n)] (L : Length) (_hL : L.val=(K:ℝ)) (D α : ℝ),
|
| 71 |
+
100≤L.val → D=(n:ℝ)/L.val^3 → D₀≤D → 1≤α → α≤αmax →
|
| 72 |
+
∀ (g : Jet n L), IsGroundVector n L (α/D) g →
|
| 73 |
+
∀ (T : ℝ), 0≤T → ∀ (q : Time) (A : Finset (Fin 3→Fin K)),
|
| 74 |
+
groundPathLaw n L (α/D) T g {ω | ∀ v∈A,
|
| 75 |
+
θ*D≤((localCloseLabels L (spatialCloseScale D b) (gridCenter L v) (ω q)).card:ℝ)}≤
|
| 76 |
+
ENNReal.ofReal (((((Gθ/b^2)*D^(-(4/3):ℝ))^(1/(Q:ℝ)))^A.card)) := by
|
| 77 |
+
obtain ⟨Q,hQ,htail⟩ := spatial_translated_stationary_close_tail
|
| 78 |
+
refine ⟨Q,hQ,?_⟩
|
| 79 |
+
intro θ hθ
|
| 80 |
+
obtain ⟨b,G,hb,hb1,hG,hl,ht⟩ := htail θ hθ
|
| 81 |
+
refine ⟨b,G,hb,hb1,hG,hl,?_⟩
|
| 82 |
+
intro αmax
|
| 83 |
+
obtain ⟨D₀,hD₀,hh⟩ := ht αmax
|
| 84 |
+
refine ⟨D₀,hD₀,?_⟩
|
| 85 |
+
intro n K inst L hL D α hL100 hDeq hD hα hαmax g hg T hT q A
|
| 86 |
+
have h := hh n K L hL D α hL100 hDeq hD hα hαmax g hg T hT q (gridShift L) (A.image gridCube)
|
| 87 |
+
rw [Finset.card_image_of_injective _ gridCube_injective] at h
|
| 88 |
+
convert h using 1
|
| 89 |
+
congr 1
|
| 90 |
+
ext ω
|
| 91 |
+
simp only [Set.mem_ofPred_eq,Finset.mem_image,forall_exists_index,and_imp,forall_apply_eq_imp_iff₂,shifted_unitCenter]
|
| 92 |
+
|
| 93 |
+
end HardSphere.Groups
|
| 94 |
+
|
| 95 |
+
end
|
| 96 |
+
end
|
| 97 |
+
|
| 98 |
+
end
|
| 99 |
+
|
| 100 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/InteractingVisits.lean
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.SmoothSpatialCountMgf
|
| 3 |
+
import OAI.Analysis.HardSphere.PathBounds.SingleVisitDefect
|
| 4 |
+
import OAI.Analysis.HardSphere.Orbitals.SelectedDeletion
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
section
|
| 9 |
+
|
| 10 |
+
section
|
| 11 |
+
noncomputable section
|
| 12 |
+
open MeasureTheory Set Filter
|
| 13 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 14 |
+
namespace HardSphere
|
| 15 |
+
open Wiener
|
| 16 |
+
lemma spatial_count_mgf_enn : ∃ C αstar : ℝ, 0 < C ∧ 0 < αstar ∧
|
| 17 |
+
∀ (n K : ℕ) (L : Length), L.val=(K:ℝ) → ∀ (r D : ℝ),
|
| 18 |
+
D=(n:ℝ)/L.val^3 → 1≤D → αstar≤D*r → 0<r → 1≤L.val →
|
| 19 |
+
(n:ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 20 |
+
∀ (g : Jet n L), IsGroundVector n L r g →
|
| 21 |
+
∀ (A : Finset (Torus L)) (z : ℝ), 0≤z → z≤1 →
|
| 22 |
+
(∫⁻ X, ENNReal.ofReal (Real.exp (z*weightedSiteCount L A X)) ∂groundPositionLaw n L g)≤
|
| 23 |
+
ENNReal.ofReal (Real.exp (C*z*D*(A.card:ℝ))) := by
|
| 24 |
+
obtain ⟨C,αstar,hC,hα,h⟩ := spatial_count_mgf
|
| 25 |
+
refine ⟨C,αstar,hC,hα,?_⟩
|
| 26 |
+
intro n K L hL r D hDeq hD hαr hr hsize hs g hg A z hz hz1
|
| 27 |
+
let := groundPositionLaw_probability g hg.2.2.1
|
| 28 |
+
have hi := bounded_mgf_integrable (groundPositionLaw n L g)
|
| 29 |
+
(weightedSiteCount_continuous L A).measurable
|
| 30 |
+
(fun X ↦ (abs_of_nonneg (weightedSiteCount_nonneg L A X)).trans_le (weightedSiteCount_le L A X)) z
|
| 31 |
+
rw [←ofReal_integral_eq_lintegral_ofReal hi (Eventually.of_forall (fun X ↦ (Real.exp_pos _).le))]
|
| 32 |
+
apply ENNReal.ofReal_le_ofReal
|
| 33 |
+
have hp : 0<∫ X,Real.exp (z*weightedSiteCount L A X) ∂groundPositionLaw n L g := ProbabilityTheory.mgf_pos hi
|
| 34 |
+
calc
|
| 35 |
+
_ = Real.exp (Real.log (∫ X,Real.exp (z*weightedSiteCount L A X) ∂groundPositionLaw n L g)) := (Real.exp_log hp).symm
|
| 36 |
+
_ ≤ _ := Real.exp_le_exp.mpr (h n K L hL r D hDeq hD hαr hr hsize hs g hg A z hz hz1)
|
| 37 |
+
|
| 38 |
+
namespace FreeVisits
|
| 39 |
+
open HardSphere.BathSlice HardSphere.Lattice HardSphere.CellOrbital
|
| 40 |
+
attribute [local irreducible] freeTrajectory pathVisitedSites torusDistance
|
| 41 |
+
|
| 42 |
+
def defectiveTotalVisits {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 43 |
+
(D : Set (ConfigurationPath 1 L)) (ω : ConfigurationPath n L) : ℕ := by
|
| 44 |
+
classical
|
| 45 |
+
exact ∑ i, if onePathAt i ω∈D then (pathVisitedSites L (siteCenter L) A i ω).card else 0
|
| 46 |
+
|
| 47 |
+
lemma pathVisitedSites_onePathAt {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 48 |
+
(i : Fin n) (ω : ConfigurationPath n L) :
|
| 49 |
+
pathVisitedSites L (siteCenter L) A 0 (onePathAt i ω)=pathVisitedSites L (siteCenter L) A i ω := by
|
| 50 |
+
simp only [pathVisitedSites,pathVisitsBall,onePathAt,oneConfiguration,ContinuousMap.coe_mk]
|
| 51 |
+
rfl
|
| 52 |
+
|
| 53 |
+
lemma exp_defectiveTotalVisits {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 54 |
+
(D : Set (ConfigurationPath 1 L)) {η : ℝ} (hη : 0≤η) (ω : ConfigurationPath n L) :
|
| 55 |
+
ENNReal.ofReal (Real.exp (η*(defectiveTotalVisits L A D ω : ℝ)))=
|
| 56 |
+
∏ i, (1+singleVisitDefect L A η D (onePathAt i ω)) := by
|
| 57 |
+
classical
|
| 58 |
+
simp only [defectiveTotalVisits,Nat.cast_sum,Finset.mul_sum,Real.exp_sum,
|
| 59 |
+
ENNReal.ofReal_prod_of_nonneg (fun _ _ ↦ (Real.exp_pos _).le)]
|
| 60 |
+
apply Finset.prod_congr rfl
|
| 61 |
+
intro i _
|
| 62 |
+
rw [singleVisitDefect,pathVisitedSites_onePathAt]
|
| 63 |
+
have hx : 0≤η*(if onePathAt i ω∈D then ((pathVisitedSites L (siteCenter L) A i ω).card:ℝ) else 0) := by positivity
|
| 64 |
+
have he : 0≤Real.exp (η*(if onePathAt i ω∈D then ((pathVisitedSites L (siteCenter L) A i ω).card:ℝ) else 0))-1 := sub_nonneg.mpr (Real.one_le_exp_iff.mpr hx)
|
| 65 |
+
simp only [Nat.cast_ite,Nat.cast_zero]
|
| 66 |
+
rw [←ENNReal.ofReal_one,←ENNReal.ofReal_add zero_le_one he]
|
| 67 |
+
congr 1
|
| 68 |
+
ring
|
| 69 |
+
|
| 70 |
+
lemma product_one_add_exp_le {n : ℕ} (L : Length) (A : Finset (Torus L))
|
| 71 |
+
(hA : A.Nonempty) {z : ℝ} (hz : 0≤z) (X : Configuration n L) :
|
| 72 |
+
(∏ i, (1+ENNReal.ofReal (z*Real.exp (-spatialSiteDistance L A (X i)))))≤
|
| 73 |
+
ENNReal.ofReal (Real.exp (z*weightedSiteCount L A X)) := by
|
| 74 |
+
classical
|
| 75 |
+
simp only [weightedSiteCount,ite_eq_left hA,Finset.mul_sum,Real.exp_sum,
|
| 76 |
+
ENNReal.ofReal_prod_of_nonneg (fun _ _ ↦ (Real.exp_pos _).le)]
|
| 77 |
+
apply Finset.prod_le_prod
|
| 78 |
+
intro i _
|
| 79 |
+
rw [←ENNReal.ofReal_one,←ENNReal.ofReal_add zero_le_one (by positivity)]
|
| 80 |
+
apply ENNReal.ofReal_le_ofReal
|
| 81 |
+
linarith [Real.add_one_le_exp (z*Real.exp (-spatialSiteDistance L A (X i)))]
|
| 82 |
+
|
| 83 |
+
theorem interacting_visit_mgf {η₀ : ℝ} (hη₀ : 0≤η₀) :
|
| 84 |
+
∃ Cdel Cfree Csp αstar : ℝ,
|
| 85 |
+
0<Cdel ∧ 0<Cfree ∧ 0<Csp ∧ 0<αstar ∧
|
| 86 |
+
∀ (n K : ℕ) [NeZero K] (L : Length), L.val=(K:ℝ) → ∀ r D : ℝ,
|
| 87 |
+
D=(n:ℝ)/L.val^3 → 1≤D → αstar≤D*r → 0<r →
|
| 88 |
+
(n:ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 89 |
+
∀ (g : Jet n L), IsGroundVector n L r g →
|
| 90 |
+
∀ (A : Finset (DiscreteTorus K)) {t η ε : ℝ},
|
| 91 |
+
0<t → t≤2 → 0≤η → η≤η₀ → 0≤ε →
|
| 92 |
+
∀ E : Set (ConfigurationPath 1 L), MeasurableSet E →
|
| 93 |
+
(∀ω,reverseConfigurationPath 1 L ω∈E ↔ ω∈E) →
|
| 94 |
+
(∀ y : Torus L, coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration y)∈E}≤ENNReal.ofReal ε) →
|
| 95 |
+
Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ))≤1 →
|
| 96 |
+
(∫⁻ ω, ENNReal.ofReal (Real.exp (η*(defectiveTotalVisits L A E ω:ℝ)))
|
| 97 |
+
∂groundPathLaw n L r t g) ≤
|
| 98 |
+
ENNReal.ofReal (Real.exp (Csp*(Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ)))*D*(A.card:ℝ))) := by
|
| 99 |
+
classical
|
| 100 |
+
obtain ⟨Cdel,hCdel,hdel⟩ := ground_product_one_add
|
| 101 |
+
obtain ⟨Cfree,hCfree,hfree⟩ := free_single_defect_bound hη₀
|
| 102 |
+
obtain ⟨Csp,αstar,hCsp,hα,hsp⟩ := spatial_count_mgf_enn
|
| 103 |
+
refine ⟨Cdel,Cfree,Csp,αstar,hCdel,hCfree,hCsp,hα,?_⟩
|
| 104 |
+
intro n K inst L hL r D hDeq hD hαr hr hs g hg A t η ε ht ht2 hη hη0 hε E hE hrev hprob hz1
|
| 105 |
+
let z := Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ))
|
| 106 |
+
have hz : 0≤z := by positivity
|
| 107 |
+
have hsize : 1≤L.val := by rw [hL]; exact_mod_cast (NeZero.pos K)
|
| 108 |
+
let := hg.groundPathLaw_probability ht.le
|
| 109 |
+
by_cases hA : A.Nonempty
|
| 110 |
+
· let B := A.image (siteCenter L)
|
| 111 |
+
have hB : B.Nonempty := hA.image _
|
| 112 |
+
have hDexp : t*Cdel*(n:ℝ)*r/L.val^3=t*Cdel*D*r := by rw [hDeq]; ring
|
| 113 |
+
calc
|
| 114 |
+
_ = ∫⁻ ω,∏i,(1+singleVisitDefect L A η E (onePathAt i ω)) ∂groundPathLaw n L r t g :=
|
| 115 |
+
lintegral_congr (exp_defectiveTotalVisits L A E hη)
|
| 116 |
+
_ ≤ ∫⁻ X,∏i,(1+ENNReal.ofReal (Real.exp (t*Cdel*(n:ℝ)*r/L.val^3))*
|
| 117 |
+
oneFreeExpectation t (singleVisitDefect L A η E) (X i)) ∂groundPositionLaw n L g :=
|
| 118 |
+
hdel n L r t hr ht hs g hg _ (singleVisitDefect_measurable L A η hE) (singleVisitDefect_reverse L A η hrev)
|
| 119 |
+
_ ≤ ∫⁻ X,ENNReal.ofReal (Real.exp (z*weightedSiteCount L B X)) ∂groundPositionLaw n L g := by
|
| 120 |
+
apply lintegral_mono
|
| 121 |
+
intro X
|
| 122 |
+
apply le_trans _ (product_one_add_exp_le L B hB hz X)
|
| 123 |
+
apply Finset.prod_le_prod
|
| 124 |
+
intro i _
|
| 125 |
+
gcongr
|
| 126 |
+
have H := hfree L hL A ht ht2 hη hη0 hε E hE hprob (X i)
|
| 127 |
+
calc
|
| 128 |
+
_ ≤ ENNReal.ofReal (Real.exp (t*Cdel*(n:ℝ)*r/L.val^3))*
|
| 129 |
+
ENNReal.ofReal (Cfree*η*ε^(1/3:ℝ)*Real.exp (-spatialSiteDistance L B (X i))) := by gcongr
|
| 130 |
+
_ = _ := by rw [←ENNReal.ofReal_mul (Real.exp_nonneg _),hDexp]; congr 1; dsimp [z]; ring
|
| 131 |
+
_ ≤ ENNReal.ofReal (Real.exp (Csp*z*D*(B.card:ℝ))) :=
|
| 132 |
+
hsp n K L hL r D hDeq hD hαr hr hsize hs g hg B z hz hz1
|
| 133 |
+
_ ≤ _ := by
|
| 134 |
+
apply ENNReal.ofReal_le_ofReal
|
| 135 |
+
apply Real.exp_le_exp.mpr
|
| 136 |
+
have hc : (B.card:ℝ)≤(A.card:ℝ) := by exact_mod_cast Finset.card_image_le
|
| 137 |
+
exact mul_le_mul_of_nonneg_left hc (by positivity)
|
| 138 |
+
· have he : A=∅ := Finset.not_nonempty_iff_eq_empty.mp hA
|
| 139 |
+
subst A
|
| 140 |
+
simp [defectiveTotalVisits,pathVisitedSites]
|
| 141 |
+
|
| 142 |
+
end FreeVisits
|
| 143 |
+
end HardSphere
|
| 144 |
+
|
| 145 |
+
end
|
| 146 |
+
end
|
| 147 |
+
|
| 148 |
+
section
|
| 149 |
+
noncomputable section
|
| 150 |
+
open MeasureTheory Set Filter
|
| 151 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 152 |
+
namespace HardSphere
|
| 153 |
+
open Wiener BathSlice _root_.OAI.HardSphere.Lattice CellOrbital
|
| 154 |
+
|
| 155 |
+
lemma torusDistance_add (L : Length) (x y c : Torus L) :
|
| 156 |
+
torusDistance L (x+c) (y+c)=torusDistance L x y := by
|
| 157 |
+
unfold torusDistance
|
| 158 |
+
congr 1
|
| 159 |
+
apply Finset.sum_congr rfl
|
| 160 |
+
intro j _
|
| 161 |
+
simp only [Pi.add_apply,dist_add_right]
|
| 162 |
+
|
| 163 |
+
def shiftPath {n : ℕ} {L : Length} (c : Torus L) (ω : ConfigurationPath n L) : ConfigurationPath n L :=
|
| 164 |
+
⟨fun s i ↦ ω s i+c,by fun_prop⟩
|
| 165 |
+
|
| 166 |
+
lemma shiftPath_continuous {n : ℕ} {L : Length} (c : Torus L) : Continuous (shiftPath (n:=n) c) := by
|
| 167 |
+
apply ContinuousMap.continuous_of_continuous_uncurry
|
| 168 |
+
change Continuous (fun p : ConfigurationPath n L×Time ↦ fun i ↦ p.1 p.2 i+c)
|
| 169 |
+
fun_prop
|
| 170 |
+
|
| 171 |
+
@[simp] lemma shiftPath_neg {n : ℕ} {L : Length} (c : Torus L) (ω : ConfigurationPath n L) :
|
| 172 |
+
shiftPath c (shiftPath (-c) ω)=ω := by
|
| 173 |
+
ext s i j
|
| 174 |
+
simp [shiftPath]
|
| 175 |
+
|
| 176 |
+
@[simp] lemma shiftPath_reverse {n : ℕ} {L : Length} (c : Torus L) (ω : ConfigurationPath n L) :
|
| 177 |
+
shiftPath c (reverseConfigurationPath n L ω)=reverseConfigurationPath n L (shiftPath c ω) := rfl
|
| 178 |
+
|
| 179 |
+
lemma shiftPath_free {n : ℕ} {L : Length} (c : Torus L) (t : ℝ) (w : CoordinatePaths n) (X : Configuration n L) :
|
| 180 |
+
shiftPath c (freeTrajectory n L t w X)=freeTrajectory n L t w (fun i ↦ X i+c) := by
|
| 181 |
+
ext s i j
|
| 182 |
+
simp only [shiftPath,ContinuousMap.coe_mk,freeTrajectory,Pi.add_apply]
|
| 183 |
+
abel
|
| 184 |
+
|
| 185 |
+
lemma spatialSiteDistance_add (L : Length) (A : Finset (Torus L)) (x c : Torus L) :
|
| 186 |
+
spatialSiteDistance L (A.image (fun v ↦ v+c)) (x+c)=spatialSiteDistance L A x := by
|
| 187 |
+
classical
|
| 188 |
+
by_cases hA : A.Nonempty
|
| 189 |
+
· obtain ⟨y,hy,he⟩ := spatialSiteDistance_attained L A hA x
|
| 190 |
+
obtain ⟨z,hz,hf⟩ := spatialSiteDistance_attained L (A.image (fun v ↦ v+c)) (hA.image _) (x+c)
|
| 191 |
+
obtain ⟨w,hw,rfl⟩ := Finset.mem_image.mp hz
|
| 192 |
+
apply le_antisymm
|
| 193 |
+
· rw [he]
|
| 194 |
+
have h := spatialSiteDistance_le L (A.image (fun v ↦ v+c)) (x+c) (y+c) (Finset.mem_image.mpr ⟨y,hy,rfl⟩)
|
| 195 |
+
simpa only [torusDistance_add] using h
|
| 196 |
+
· rw [hf,torusDistance_add]
|
| 197 |
+
exact spatialSiteDistance_le L A x w hw
|
| 198 |
+
· have := Finset.not_nonempty_iff_eq_empty.mp hA
|
| 199 |
+
subst A
|
| 200 |
+
simp [spatialSiteDistance]
|
| 201 |
+
|
| 202 |
+
namespace ShiftVisits
|
| 203 |
+
open FreeVisits
|
| 204 |
+
attribute [local instance] Classical.propDecidable
|
| 205 |
+
|
| 206 |
+
def center {K : ℕ} (L : Length) (c : Torus L) (v : DiscreteTorus K) : Torus L := siteCenter L v+c
|
| 207 |
+
|
| 208 |
+
def singleDefect {K : ℕ} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 209 |
+
(η : ℝ) (D : Set (ConfigurationPath 1 L)) (ω : ConfigurationPath 1 L) : ℝ≥0∞ :=
|
| 210 |
+
ENNReal.ofReal (Real.exp (η*(if ω∈D then ((pathVisitedSites L (center L c) A 0 ω).card:ℝ) else 0))-1)
|
| 211 |
+
|
| 212 |
+
lemma shifted_visits {n K : ℕ} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 213 |
+
(i : Fin n) (ω : ConfigurationPath n L) :
|
| 214 |
+
pathVisitedSites L (siteCenter L) A i (shiftPath (-c) ω)=pathVisitedSites L (center L c) A i ω := by
|
| 215 |
+
apply Finset.filter_congr
|
| 216 |
+
intro v _
|
| 217 |
+
unfold pathVisitsBall
|
| 218 |
+
apply exists_congr
|
| 219 |
+
intro s
|
| 220 |
+
change (torusDistance L (ω s i+-c) (siteCenter L v)≤12) ↔ _
|
| 221 |
+
have hd := torusDistance_add L (ω s i+-c) (siteCenter L v) c
|
| 222 |
+
simp only [neg_add_cancel_right] at hd
|
| 223 |
+
rw [←hd]
|
| 224 |
+
rfl
|
| 225 |
+
|
| 226 |
+
lemma singleDefect_eq (L : Length) {K : ℕ} (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 227 |
+
(η : ℝ) (D : Set (ConfigurationPath 1 L)) (ω : ConfigurationPath 1 L) :
|
| 228 |
+
singleDefect L c A η D ω=singleVisitDefect L A η ((shiftPath c)⁻¹' D) (shiftPath (-c) ω) := by
|
| 229 |
+
simp only [singleDefect,singleVisitDefect,Set.mem_preimage,shiftPath_neg,shifted_visits]
|
| 230 |
+
|
| 231 |
+
lemma singleDefect_measurable (L : Length) {K : ℕ} (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 232 |
+
(η : ℝ) {D : Set (ConfigurationPath 1 L)} (hD : MeasurableSet D) :
|
| 233 |
+
Measurable (singleDefect L c A η D) := by
|
| 234 |
+
have he : singleDefect L c A η D=(singleVisitDefect L A η ((shiftPath c)⁻¹' D)) ∘ shiftPath (-c) :=
|
| 235 |
+
funext (singleDefect_eq L c A η D)
|
| 236 |
+
rw [he]
|
| 237 |
+
exact (singleVisitDefect_measurable L A η (hD.preimage (shiftPath_continuous c).measurable)).comp
|
| 238 |
+
(shiftPath_continuous (-c)).measurable
|
| 239 |
+
|
| 240 |
+
lemma singleDefect_reverse (L : Length) {K : ℕ} (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 241 |
+
(η : ℝ) {D : Set (ConfigurationPath 1 L)}
|
| 242 |
+
(hD : ∀ω,reverseConfigurationPath 1 L ω∈D ↔ ω∈D) (ω : ConfigurationPath 1 L) :
|
| 243 |
+
singleDefect L c A η D (reverseConfigurationPath 1 L ω)=singleDefect L c A η D ω := by
|
| 244 |
+
simp only [singleDefect,hD,pathVisitedSites_reverse]
|
| 245 |
+
|
| 246 |
+
lemma free_single_defect_bound {η₀ : ℝ} (hη₀ : 0≤η₀) : ∃ C : ℝ,0<C ∧
|
| 247 |
+
∀ {K : ℕ} [NeZero K] (L : Length),L.val=(K:ℝ) → ∀ (c : Torus L) (A : Finset (DiscreteTorus K)),
|
| 248 |
+
∀ {t η ε : ℝ},0<t → t≤2 → 0≤η → η≤η₀ → 0≤ε →
|
| 249 |
+
∀ D : Set (ConfigurationPath 1 L),MeasurableSet D →
|
| 250 |
+
(∀ y : Torus L,coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration y)∈D}≤ENNReal.ofReal ε) →
|
| 251 |
+
∀ y : Torus L,oneFreeExpectation t (singleDefect L c A η D) y ≤
|
| 252 |
+
ENNReal.ofReal (C*η*ε^(1/3:ℝ)*Real.exp (-spatialSiteDistance L (A.image (center L c)) y)) := by
|
| 253 |
+
obtain ⟨C,hC,h⟩ := FreeVisits.free_single_defect_bound hη₀
|
| 254 |
+
refine ⟨C,hC,?_⟩
|
| 255 |
+
intro K _ L hL c A t η ε ht ht2 hη hη0 hε D hD hprob y
|
| 256 |
+
let E := (shiftPath c)⁻¹' D
|
| 257 |
+
have hE : MeasurableSet E := hD.preimage (shiftPath_continuous c).measurable
|
| 258 |
+
have hp (z : Torus L) : coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration z)∈E}≤ENNReal.ofReal ε := by
|
| 259 |
+
have hh := hprob (z+c)
|
| 260 |
+
change coordinateWiener 1 {w | freeTrajectory 1 L t w (fun _ ↦ z+c)∈D}≤ENNReal.ofReal ε at hh
|
| 261 |
+
simpa only [E,mem_preimage,shiftPath_free,oneConfiguration] using hh
|
| 262 |
+
have hh := h L hL A ht ht2 hη hη0 hε E hE hp (y+-c)
|
| 263 |
+
have hf : oneFreeExpectation t (singleDefect L c A η D) y=
|
| 264 |
+
oneFreeExpectation t (singleVisitDefect L A η E) (y+-c) := by
|
| 265 |
+
apply lintegral_congr
|
| 266 |
+
intro w
|
| 267 |
+
rw [singleDefect_eq,shiftPath_free]
|
| 268 |
+
rfl
|
| 269 |
+
rw [hf]
|
| 270 |
+
have hd : spatialSiteDistance L (A.image (center L c)) y=spatialSiteDistance L (A.image (siteCenter L)) (y+-c) := by
|
| 271 |
+
have hh := spatialSiteDistance_add L (A.image (siteCenter L)) (y+-c) c
|
| 272 |
+
change spatialSiteDistance L (A.image (fun v ↦ siteCenter L v+c)) y = _
|
| 273 |
+
simpa only [Finset.image_image,Function.comp_def,neg_add_cancel_right] using hh
|
| 274 |
+
rw [hd]
|
| 275 |
+
exact hh
|
| 276 |
+
|
| 277 |
+
end ShiftVisits
|
| 278 |
+
end HardSphere
|
| 279 |
+
|
| 280 |
+
end
|
| 281 |
+
end
|
| 282 |
+
|
| 283 |
+
end
|
| 284 |
+
|
| 285 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/LatticeExponentialSum.lean
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.UnitCenter
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
section
|
| 7 |
+
section
|
| 8 |
+
noncomputable section
|
| 9 |
+
open MeasureTheory Filter Set
|
| 10 |
+
open scoped ENNReal Topology BigOperators
|
| 11 |
+
noncomputable section
|
| 12 |
+
open scoped BigOperators ComplexConjugate
|
| 13 |
+
noncomputable section
|
| 14 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 15 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 16 |
+
noncomputable section
|
| 17 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 18 |
+
open scoped ENNReal ComplexConjugate
|
| 19 |
+
open ProbabilityTheory
|
| 20 |
+
noncomputable section
|
| 21 |
+
open MeasureTheory Filter Set
|
| 22 |
+
open scoped ENNReal Topology
|
| 23 |
+
noncomputable section
|
| 24 |
+
open MeasureTheory Set
|
| 25 |
+
open scoped ENNReal
|
| 26 |
+
namespace HardSphere
|
| 27 |
+
open MeasureTheory Set Filter SphericalCoordinates
|
| 28 |
+
open scoped ENNReal
|
| 29 |
+
noncomputable section
|
| 30 |
+
|
| 31 |
+
def latticeExponentialSum : ℝ := ∑' z : ℤ, Real.exp (-|(z:ℝ)|/3)
|
| 32 |
+
|
| 33 |
+
lemma latticeExponential_summable : Summable (fun z : ℤ ↦ Real.exp (-|(z:ℝ)|/3)) := by
|
| 34 |
+
have h : Summable (fun n : ℕ ↦ Real.exp (-(n:ℝ)/3)) := by
|
| 35 |
+
have hg := summable_geometric_of_abs_lt_one (r:=Real.exp (-1/3)) (by
|
| 36 |
+
rw [abs_of_pos (Real.exp_pos _),Real.exp_lt_one_iff]; norm_num)
|
| 37 |
+
convert hg using 1
|
| 38 |
+
funext n
|
| 39 |
+
rw [←Real.exp_nat_mul]
|
| 40 |
+
congr 1
|
| 41 |
+
ring
|
| 42 |
+
apply Summable.of_nat_of_neg
|
| 43 |
+
· simpa using h
|
| 44 |
+
· simpa using h
|
| 45 |
+
|
| 46 |
+
lemma latticeExponentialSum_pos : 0<latticeExponentialSum := by
|
| 47 |
+
have h := latticeExponential_summable.le_tsum 0 (fun _ _ ↦ (Real.exp_pos _).le)
|
| 48 |
+
simp only [Int.cast_zero,abs_zero,neg_zero,zero_div,Real.exp_zero] at h
|
| 49 |
+
exact lt_of_lt_of_le zero_lt_one h
|
| 50 |
+
|
| 51 |
+
def periodicLatticeIndex {K : ℕ} (L : Length) (x : AddCircle L.val) (v : Fin K) : ℤ :=
|
| 52 |
+
(v.val:ℤ)-round (L.val⁻¹*((v.val:ℝ)+1/2-((AddCircle.equivIco L.val 0) x).val))*(K:ℤ)-
|
| 53 |
+
⌊((AddCircle.equivIco L.val 0) x).val-1/2⌋
|
| 54 |
+
|
| 55 |
+
lemma periodicLatticeIndex_injective {K : ℕ} {L : Length} (x : AddCircle L.val) :
|
| 56 |
+
Function.Injective (periodicLatticeIndex (K:=K) L x) := by
|
| 57 |
+
intro v w hvw
|
| 58 |
+
have h := congrArg (fun z : ℤ ↦ (z+⌊((AddCircle.equivIco L.val 0) x).val-1/2⌋)%(K:ℤ)) hvw
|
| 59 |
+
simp only [periodicLatticeIndex,sub_add_cancel,Int.sub_mul_emod_self_right] at h
|
| 60 |
+
rw [Int.emod_eq_of_lt (by omega) (by exact_mod_cast v.isLt),
|
| 61 |
+
Int.emod_eq_of_lt (by omega) (by exact_mod_cast w.isLt)] at h
|
| 62 |
+
exact Fin.ext (by exact_mod_cast h)
|
| 63 |
+
|
| 64 |
+
lemma periodicLatticeIndex_bound {K : ℕ} {L : Length} (hL : L.val=(K:ℝ))
|
| 65 |
+
(x : AddCircle L.val) (v : Fin K) :
|
| 66 |
+
|(periodicLatticeIndex L x v:ℝ)|≤dist (((v.val:ℝ)+1/2:ℝ):AddCircle L.val) x+1 := by
|
| 67 |
+
let t := ((AddCircle.equivIco L.val 0) x).val
|
| 68 |
+
let δ := t-1/2-(⌊t-1/2⌋:ℝ)
|
| 69 |
+
have hδ0 : 0≤δ := Int.fract_nonneg (t-1/2)
|
| 70 |
+
have hδ1 : δ<1 := Int.fract_lt_one (t-1/2)
|
| 71 |
+
have hδ : |δ|≤1 := by rw [abs_of_nonneg hδ0]; exact hδ1.le
|
| 72 |
+
have hd : dist (((v.val:ℝ)+1/2:ℝ):AddCircle L.val) x=
|
| 73 |
+
|(periodicLatticeIndex L x v:ℝ)-δ| := by
|
| 74 |
+
conv_lhs => rw [←(show (t:AddCircle L.val)=x from AddCircle.coe_equivIco)]
|
| 75 |
+
rw [dist_eq_norm,←QuotientAddGroup.mk_sub,AddCircle.norm_eq]
|
| 76 |
+
congr 1
|
| 77 |
+
dsimp [periodicLatticeIndex,δ,t]
|
| 78 |
+
push_cast
|
| 79 |
+
rw [←hL]
|
| 80 |
+
simp only [Int.fract]
|
| 81 |
+
ring
|
| 82 |
+
rw [hd]
|
| 83 |
+
calc
|
| 84 |
+
_ = |((periodicLatticeIndex L x v:ℝ)-δ)+δ| := by congr 1; ring
|
| 85 |
+
_ ≤ |(periodicLatticeIndex L x v:ℝ)-δ|+|δ| := abs_add_le _ _
|
| 86 |
+
_ ≤ _ := add_le_add le_rfl hδ
|
| 87 |
+
|
| 88 |
+
lemma circle_lattice_exponential_bound {K : ℕ} {L : Length} (hL : L.val=(K:ℝ))
|
| 89 |
+
(x : AddCircle L.val) :
|
| 90 |
+
(∑ v : Fin K, Real.exp (-dist (((v.val:ℝ)+1/2:ℝ):AddCircle L.val) x/3))≤
|
| 91 |
+
Real.exp (1/3)*latticeExponentialSum := by
|
| 92 |
+
classical
|
| 93 |
+
calc
|
| 94 |
+
_ ≤ ∑ v : Fin K, Real.exp (1/3)*Real.exp (-|(periodicLatticeIndex L x v:ℝ)|/3) := by
|
| 95 |
+
apply Finset.sum_le_sum
|
| 96 |
+
intro v _
|
| 97 |
+
rw [←Real.exp_add]
|
| 98 |
+
apply Real.exp_le_exp.mpr
|
| 99 |
+
have h := periodicLatticeIndex_bound hL x v
|
| 100 |
+
linarith only [h]
|
| 101 |
+
_ = Real.exp (1/3)*∑ v : Fin K, Real.exp (-|(periodicLatticeIndex L x v:ℝ)|/3) := (Finset.mul_sum ..).symm
|
| 102 |
+
_ ≤ _ := by
|
| 103 |
+
apply mul_le_mul_of_nonneg_left _ (Real.exp_pos _).le
|
| 104 |
+
rw [←Finset.sum_image (f:=fun z : ℤ ↦ Real.exp (-|(z:ℝ)|/3)) (s:=Finset.univ) (periodicLatticeIndex_injective x).injOn]
|
| 105 |
+
exact latticeExponential_summable.sum_le_tsum _ (fun _ _ ↦ (Real.exp_pos _).le)
|
| 106 |
+
|
| 107 |
+
lemma torus_exp_le_coordinate_exp (L : Length) (x y : Torus L) :
|
| 108 |
+
Real.exp (-torusDistance L x y)≤Real.exp (-dist (x 0) (y 0)/3)*
|
| 109 |
+
Real.exp (-dist (x 1) (y 1)/3)*Real.exp (-dist (x 2) (y 2)/3) := by
|
| 110 |
+
rw [←Real.exp_add,←Real.exp_add]
|
| 111 |
+
apply Real.exp_le_exp.mpr
|
| 112 |
+
have h0 := coordinate_distance_le L x y 0
|
| 113 |
+
have h1 := coordinate_distance_le L x y 1
|
| 114 |
+
have h2 := coordinate_distance_le L x y 2
|
| 115 |
+
linarith only [h0,h1,h2]
|
| 116 |
+
|
| 117 |
+
theorem unitGrid_exponential_bound : ∃ C : ℝ, 0<C ∧
|
| 118 |
+
∀ (K : ℕ) (L : Length), L.val=(K:ℝ) → ∀ x : Torus L,
|
| 119 |
+
(∑ v : CubeCell K, Real.exp (-torusDistance L (unitCenter L v) x))≤C := by
|
| 120 |
+
let B := Real.exp (1/3)*latticeExponentialSum
|
| 121 |
+
have hB : 0<B := mul_pos (Real.exp_pos _) latticeExponentialSum_pos
|
| 122 |
+
refine ⟨B^3,pow_pos hB _,?_⟩
|
| 123 |
+
intro K L hL x
|
| 124 |
+
let f := fun (j : Fin 3) (v : Fin K) ↦ Real.exp (-dist (((v.val:ℝ)+1/2:ℝ):AddCircle L.val) (x j)/3)
|
| 125 |
+
have hb (j : Fin 3) : (∑ v, f j v)≤B := circle_lattice_exponential_bound hL (x j)
|
| 126 |
+
have hn (j : Fin 3) : 0≤∑ v, f j v := Finset.sum_nonneg (fun _ _ ↦ (Real.exp_pos _).le)
|
| 127 |
+
calc
|
| 128 |
+
_ ≤ ∑ v : CubeCell K, f 0 v.1*f 1 v.2.1*f 2 v.2.2 := by
|
| 129 |
+
apply Finset.sum_le_sum
|
| 130 |
+
intro v _
|
| 131 |
+
exact torus_exp_le_coordinate_exp L (unitCenter L v) x
|
| 132 |
+
_ = (∑ v, f 0 v)*(∑ v, f 1 v)*(∑ v, f 2 v) := by
|
| 133 |
+
simp_rw [Fintype.sum_prod_type,←Finset.mul_sum,←Finset.sum_mul]
|
| 134 |
+
rw [←Fintype.sum_mul_sum]
|
| 135 |
+
_ ≤ B*B*B := mul_le_mul (mul_le_mul (hb 0) (hb 1) (hn 1) hB.le) (hb 2) (hn 2) (mul_nonneg hB.le hB.le)
|
| 136 |
+
_ = B^3 := by ring
|
| 137 |
+
|
| 138 |
+
end
|
| 139 |
+
end HardSphere
|
| 140 |
+
|
| 141 |
+
namespace HardSphere
|
| 142 |
+
open MeasureTheory Set Filter SphericalCoordinates
|
| 143 |
+
open scoped ENNReal
|
| 144 |
+
noncomputable section
|
| 145 |
+
|
| 146 |
+
lemma unitGrid_site_exponential_bound : ∃ C : ℝ, 0<C ∧
|
| 147 |
+
∀ (K : ℕ) (L : Length), L.val=(K:ℝ) → ∀ (A : Finset (Torus L)), A.Nonempty →
|
| 148 |
+
(∑ v : CubeCell K, Real.exp (-spatialSiteDistance L A (unitCenter L v)))≤C*(A.card:ℝ) := by
|
| 149 |
+
obtain ⟨C,hC,h⟩ := unitGrid_exponential_bound
|
| 150 |
+
refine ⟨C,hC,?_⟩
|
| 151 |
+
intro K L hL A hA
|
| 152 |
+
calc
|
| 153 |
+
_ ≤ ∑ v : CubeCell K, ∑ w∈A, Real.exp (-torusDistance L (unitCenter L v) w) := by
|
| 154 |
+
apply Finset.sum_le_sum
|
| 155 |
+
intro v _
|
| 156 |
+
obtain ⟨w,hw,he⟩ := spatialSiteDistance_attained L A hA (unitCenter L v)
|
| 157 |
+
rw [he]
|
| 158 |
+
exact Finset.single_le_sum (f:=fun w ↦ Real.exp (-torusDistance L (unitCenter L v) w)) (fun _ _ ↦ (Real.exp_pos _).le) hw
|
| 159 |
+
_ = ∑ w∈A, ∑ v : CubeCell K, Real.exp (-torusDistance L (unitCenter L v) w) := Finset.sum_comm
|
| 160 |
+
_ ≤ ∑ _w∈A, C := Finset.sum_le_sum (fun w _ ↦ h K L hL w)
|
| 161 |
+
_ = _ := by rw [Finset.sum_const, nsmul_eq_mul,mul_comm]
|
| 162 |
+
|
| 163 |
+
lemma unitOccupation_full_card {n K : ℕ} {L : Length} (hL : L.val=(K:ℝ))
|
| 164 |
+
(v : CubeCell K) (X : Configuration n L) :
|
| 165 |
+
unitOccupation hL (fun _ ↦ True) v X=Fintype.card {i : Fin n // unitSite hL (X i)=v} := by
|
| 166 |
+
classical
|
| 167 |
+
apply Fintype.card_congr
|
| 168 |
+
exact {
|
| 169 |
+
toFun := fun i ↦ ⟨i.val.val,i.property⟩
|
| 170 |
+
invFun := fun i ↦ ⟨⟨i.val,trivial⟩,i.property⟩
|
| 171 |
+
left_inv := fun _ ↦ rfl
|
| 172 |
+
right_inv := fun _ ↦ rfl }
|
| 173 |
+
|
| 174 |
+
lemma unitOccupation_sum_weight {n K : ℕ} {L : Length} (hL : L.val=(K:ℝ))
|
| 175 |
+
(a : CubeCell K → ℝ) (X : Configuration n L) :
|
| 176 |
+
(∑ v : CubeCell K, a v*(unitOccupation hL (fun _ ↦ True) v X:ℝ))=
|
| 177 |
+
∑ i : Fin n, a (unitSite hL (X i)) := by
|
| 178 |
+
classical
|
| 179 |
+
rw [←Fintype.sum_fiberwise (fun i : Fin n ↦ unitSite hL (X i)) (fun i ↦ a (unitSite hL (X i)))]
|
| 180 |
+
apply Finset.sum_congr rfl
|
| 181 |
+
intro v _
|
| 182 |
+
simp only [unitOccupation_full_card]
|
| 183 |
+
have he : (fun i : {i : Fin n // unitSite hL (X i)=v} ↦ a (unitSite hL (X i.val)))=fun _ ↦ a v := by
|
| 184 |
+
funext i
|
| 185 |
+
rw [i.property]
|
| 186 |
+
rw [he,Finset.sum_const,Finset.card_univ,nsmul_eq_mul,mul_comm]
|
| 187 |
+
|
| 188 |
+
lemma weightedSiteCount_le_cell {n K : ℕ} {L : Length} (hL : L.val=(K:ℝ))
|
| 189 |
+
(A : Finset (Torus L)) (hA : A.Nonempty) (X : Configuration n L) :
|
| 190 |
+
weightedSiteCount L A X≤Real.exp 1*(∑ v : CubeCell K,
|
| 191 |
+
Real.exp (-spatialSiteDistance L A (unitCenter L v))*(unitOccupation hL (fun _ ↦ True) v X:ℝ)) := by
|
| 192 |
+
rw [unitOccupation_sum_weight,Finset.mul_sum,weightedSiteCount,ite_eq_left hA]
|
| 193 |
+
apply Finset.sum_le_sum
|
| 194 |
+
intro i _
|
| 195 |
+
rw [←Real.exp_add]
|
| 196 |
+
apply Real.exp_le_exp.mpr
|
| 197 |
+
have hd := spatialSiteDistance_triangle L A (unitCenter L (unitSite hL (X i))) (X i)
|
| 198 |
+
have hc := unitSite_dist_center hL (X i)
|
| 199 |
+
rw [torusDistance_comm] at hd
|
| 200 |
+
linarith only [hd,hc]
|
| 201 |
+
|
| 202 |
+
end
|
| 203 |
+
end HardSphere
|
| 204 |
+
|
| 205 |
+
end
|
| 206 |
+
end
|
| 207 |
+
end
|
| 208 |
+
end
|
| 209 |
+
end
|
| 210 |
+
end
|
| 211 |
+
end
|
| 212 |
+
end
|
| 213 |
+
|
| 214 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/PathTailConstant.lean
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Fourier.CharacterDerivativeFactor
|
| 3 |
+
import OAI.Analysis.HardSphere.Geometry.KilledObservable
|
| 4 |
+
import OAI.Analysis.HardSphere.Bridges.Moment8
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
noncomputable section
|
| 9 |
+
open MeasureTheory Filter Set
|
| 10 |
+
open scoped ENNReal Topology BigOperators
|
| 11 |
+
open scoped BigOperators ComplexConjugate
|
| 12 |
+
open MeasureTheory ProbabilityTheory Filter Set
|
| 13 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 14 |
+
open MeasureTheory ProbabilityTheory Real Complex
|
| 15 |
+
open scoped ENNReal ComplexConjugate
|
| 16 |
+
open ProbabilityTheory
|
| 17 |
+
namespace HardSphere
|
| 18 |
+
open Wiener
|
| 19 |
+
|
| 20 |
+
lemma staysAllowed_of_neg (N : ℕ) (L : Length) {a : ℝ} (ha : a<0) :
|
| 21 |
+
staysAllowed N L a=Set.univ := by
|
| 22 |
+
ext ω
|
| 23 |
+
simp only [staysAllowed,Set.mem_ofPred_eq,Set.mem_univ,iff_true]
|
| 24 |
+
rw [allowed_of_neg N L ha]
|
| 25 |
+
exact Set.subset_univ _
|
| 26 |
+
|
| 27 |
+
lemma killedObservable_of_neg (N : ℕ) (L : Length) {a : ℝ} (ha : a<0)
|
| 28 |
+
(g : Configuration N L → ℂ) (ω : ConfigurationPath N L) :
|
| 29 |
+
killedObservable N L a g ω=g (ω 1) := by
|
| 30 |
+
simp only [killedObservable,staysAllowed_of_neg N L ha,Set.indicator_univ]
|
| 31 |
+
|
| 32 |
+
lemma killedTransition_of_neg (N : ℕ) (L : Length) {a : ℝ} (ha : a<0) (t : ℝ) :
|
| 33 |
+
killedTransition N L a t=freeTransition N L t := by
|
| 34 |
+
apply ContinuousLinearMap.ext
|
| 35 |
+
intro g
|
| 36 |
+
apply ext_inner_left ℂ
|
| 37 |
+
intro f
|
| 38 |
+
rw [killedTransition_pairing,freeTransition_pairing]
|
| 39 |
+
simp only [killedPathLaw,staysAllowed_of_neg N L ha,Measure.restrict_univ]
|
| 40 |
+
|
| 41 |
+
lemma freeTrajectory_dist_le (N : ℕ) (L : Length) (t : ℝ)
|
| 42 |
+
{w : CoordinatePaths N} {B : ℝ} (hB : 0≤B)
|
| 43 |
+
(hw : ∀ p, ‖w p‖≤B) (X : Configuration N L) (s u : Time) :
|
| 44 |
+
dist (freeTrajectory N L t w X s) (freeTrajectory N L t w X u) ≤
|
| 45 |
+
2*Real.sqrt (2*t)*B := by
|
| 46 |
+
have hC : 0≤2*Real.sqrt (2*t)*B := by positivity
|
| 47 |
+
apply (dist_pi_le_iff hC).mpr
|
| 48 |
+
intro i
|
| 49 |
+
apply (dist_pi_le_iff hC).mpr
|
| 50 |
+
intro j
|
| 51 |
+
change dist (X i j+((Real.sqrt (2*t)*w (i,j) s : ℝ):AddCircle L.val))
|
| 52 |
+
(X i j+((Real.sqrt (2*t)*w (i,j) u : ℝ):AddCircle L.val))≤_
|
| 53 |
+
rw [dist_add_left,dist_eq_norm,← QuotientAddGroup.mk_sub]
|
| 54 |
+
calc
|
| 55 |
+
_ ≤ ‖Real.sqrt (2*t)*w (i,j) s-Real.sqrt (2*t)*w (i,j) u‖ :=
|
| 56 |
+
QuotientAddGroup.norm_mk_le_norm
|
| 57 |
+
_ = Real.sqrt (2*t)*‖w (i,j) s-w (i,j) u‖ := by
|
| 58 |
+
rw [← mul_sub,norm_mul,Real.norm_eq_abs,abs_of_nonneg (Real.sqrt_nonneg _)]
|
| 59 |
+
_ ≤ Real.sqrt (2*t)*(B+B) := by
|
| 60 |
+
apply mul_le_mul_of_nonneg_left _ (Real.sqrt_nonneg _)
|
| 61 |
+
exact (norm_sub_le _ _).trans (add_le_add
|
| 62 |
+
((w (i,j)).norm_coe_le_norm s |>.trans (hw (i,j)))
|
| 63 |
+
((w (i,j)).norm_coe_le_norm u |>.trans (hw (i,j))))
|
| 64 |
+
_ = _ := by ring
|
| 65 |
+
|
| 66 |
+
lemma killedObservable_eq_of_small_path (N : ℕ) (L : Length) (a t : ℝ)
|
| 67 |
+
(g : Configuration N L → ℂ) {δ B : ℝ} (hB : 0≤B)
|
| 68 |
+
(hδ : Metric.cthickening δ (tsupport g) ⊆ allowed N L a)
|
| 69 |
+
(ht : 2*Real.sqrt (2*t)*B≤δ)
|
| 70 |
+
{w : CoordinatePaths N} (hw : ∀ p, ‖w p‖≤B) (X : Configuration N L) :
|
| 71 |
+
killedObservable N L a g (freeTrajectory N L t w X)=g (freeTrajectory N L t w X 1) := by
|
| 72 |
+
by_cases hg : g (freeTrajectory N L t w X 1)=0
|
| 73 |
+
· simp only [killedObservable]
|
| 74 |
+
by_cases he : freeTrajectory N L t w X∈staysAllowed N L a
|
| 75 |
+
· simp only [Set.indicator_of_mem he]
|
| 76 |
+
· simp only [Set.indicator_of_notMem he,hg]
|
| 77 |
+
· have hs : freeTrajectory N L t w X 1∈tsupport g := subset_closure hg
|
| 78 |
+
have he : freeTrajectory N L t w X∈staysAllowed N L a := by
|
| 79 |
+
rintro _ ⟨s,rfl⟩
|
| 80 |
+
apply hδ
|
| 81 |
+
exact Metric.mem_cthickening_of_dist_le _ _ _ _ hs
|
| 82 |
+
((freeTrajectory_dist_le N L t hB hw X s 1).trans ht)
|
| 83 |
+
simp only [killedObservable,Set.indicator_of_mem he]
|
| 84 |
+
|
| 85 |
+
lemma coordinateWiener_tail8 (N : ℕ) {B : ℝ} (hB : 0<B) :
|
| 86 |
+
coordinateWiener N {w | ∃ p, B*normMultiplier<‖w p‖} ≤
|
| 87 |
+
(Fintype.card (Direction N):ℝ≥0∞)*(ENNReal.ofReal B)⁻¹^8 *
|
| 88 |
+
((1+(1-(2:ℝ≥0∞)*(4/3)⁻¹^8)⁻¹)*moment8) := by
|
| 89 |
+
have he : {w : CoordinatePaths N | ∃ p, B*normMultiplier<‖w p‖} =
|
| 90 |
+
⋃ p : Direction N, {w | B*normMultiplier<‖w p‖} := by ext w; simp
|
| 91 |
+
rw [he]
|
| 92 |
+
refine (measure_iUnion_fintype_le _ _).trans ?_
|
| 93 |
+
calc
|
| 94 |
+
_ = ∑ _p : Direction N, wiener {w | B*normMultiplier<‖w‖} := by
|
| 95 |
+
apply Finset.sum_congr rfl
|
| 96 |
+
intro p _
|
| 97 |
+
exact (measurePreserving_eval (fun _ : Direction N ↦ wiener) p).measure_preimage
|
| 98 |
+
(measurableSet_lt measurable_const measurable_norm).nullMeasurableSet
|
| 99 |
+
_ ≤ ∑ _p : Direction N, (ENNReal.ofReal B)⁻¹^8 *
|
| 100 |
+
((1+(1-(2:ℝ≥0∞)*(4/3)⁻¹^8)⁻¹)*moment8) :=
|
| 101 |
+
Finset.sum_le_sum fun _ _ ↦ norm_wiener_tail8 hB
|
| 102 |
+
_ = _ := by simp only [Finset.sum_const,Finset.card_univ,nsmul_eq_mul,mul_assoc]
|
| 103 |
+
|
| 104 |
+
lemma killedAverage_free_bound (N : ℕ) (L : Length) (a t : ℝ)
|
| 105 |
+
(g : C(Configuration N L,ℂ)) {δ B : ℝ} (hB : 0<B)
|
| 106 |
+
(hδ : Metric.cthickening δ (tsupport g) ⊆ allowed N L a)
|
| 107 |
+
(ht : 2*Real.sqrt (2*t)*(B*normMultiplier)≤δ) (X : Configuration N L) :
|
| 108 |
+
‖killedAverage N L a t g X-killedAverage N L (-1) t g X‖ ≤
|
| 109 |
+
‖g‖*(coordinateWiener N).real {w | ∃ p, B*normMultiplier<‖w p‖} := by
|
| 110 |
+
let E : Set (CoordinatePaths N) := {w | ∃ p, B*normMultiplier<‖w p‖}
|
| 111 |
+
have hE : MeasurableSet E := by
|
| 112 |
+
have he : E = ⋃ p : Direction N, {w : CoordinatePaths N | B*normMultiplier<‖w p‖} := by ext w; simp [E]
|
| 113 |
+
rw [he]
|
| 114 |
+
apply MeasurableSet.iUnion
|
| 115 |
+
intro p
|
| 116 |
+
exact measurableSet_lt measurable_const (measurable_pi_apply p |>.norm)
|
| 117 |
+
have hi (b : ℝ) : Integrable (fun w : CoordinatePaths N ↦
|
| 118 |
+
killedObservable N L b g (freeTrajectory N L t w X)) (coordinateWiener N) := by
|
| 119 |
+
apply (integrable_const ‖g‖).mono'
|
| 120 |
+
· exact ((killedObservable_measurable N L b g.continuous.measurable).comp
|
| 121 |
+
((freeTrajectory_continuous N L t).comp (continuous_id.prodMk continuous_const)).measurable).aestronglyMeasurable
|
| 122 |
+
· exact Eventually.of_forall fun _ ↦ killedObservable_bound N L b (norm_nonneg g) g.norm_coe_le_norm _
|
| 123 |
+
rw [killedAverage,killedAverage,← integral_sub (hi a) (hi (-1))]
|
| 124 |
+
calc
|
| 125 |
+
_ ≤ ∫ w, E.indicator (fun _ ↦ ‖g‖) w ∂coordinateWiener N := by
|
| 126 |
+
apply norm_integral_le_of_norm_le
|
| 127 |
+
· exact (integrable_const ‖g‖).indicator hE
|
| 128 |
+
· filter_upwards [] with w
|
| 129 |
+
rw [killedObservable_of_neg N L (by norm_num : (-1:ℝ)<0)]
|
| 130 |
+
by_cases he : w∈E
|
| 131 |
+
· rw [Set.indicator_of_mem he]
|
| 132 |
+
by_cases ha : freeTrajectory N L t w X∈staysAllowed N L a
|
| 133 |
+
· simp only [killedObservable,Set.indicator_of_mem ha,sub_self,norm_zero]
|
| 134 |
+
exact norm_nonneg g
|
| 135 |
+
· simp only [killedObservable,Set.indicator_of_notMem ha,zero_sub,norm_neg]
|
| 136 |
+
exact g.norm_coe_le_norm _
|
| 137 |
+
· rw [Set.indicator_of_notMem he]
|
| 138 |
+
have hw : ∀ p, ‖w p‖≤B*normMultiplier := by
|
| 139 |
+
intro p
|
| 140 |
+
exact le_of_not_gt fun h ↦ he ⟨p,h⟩
|
| 141 |
+
rw [killedObservable_eq_of_small_path N L a t g
|
| 142 |
+
(mul_nonneg hB.le normMultiplier_pos.le) hδ ht hw X,sub_self,norm_zero]
|
| 143 |
+
_ = _ := by rw [integral_indicator_const _ hE]; simp only [smul_eq_mul,mul_comm]; rfl
|
| 144 |
+
|
| 145 |
+
def pathTailConstant (N : ℕ) : ℝ :=
|
| 146 |
+
((Fintype.card (Direction N) : ℝ≥0∞) *
|
| 147 |
+
((1+(1-(2:ℝ≥0∞)*(4/3)⁻¹^8)⁻¹)*moment8)).toReal
|
| 148 |
+
|
| 149 |
+
lemma pathTailConstant_nonneg (N : ℕ) : 0 ≤ pathTailConstant N := ENNReal.toReal_nonneg
|
| 150 |
+
|
| 151 |
+
lemma coordinateWiener_tail8_real (N : ℕ) {B : ℝ} (hB : 0<B) :
|
| 152 |
+
(coordinateWiener N).real {w | ∃ p, B*normMultiplier<‖w p‖} ≤
|
| 153 |
+
pathTailConstant N * B⁻¹^8 := by
|
| 154 |
+
have hfin : (Fintype.card (Direction N) : ℝ≥0∞) * (ENNReal.ofReal B)⁻¹^8 *
|
| 155 |
+
((1+(1-(2:ℝ≥0∞)*(4/3)⁻¹^8)⁻¹)*moment8) ≠ ∞ := by
|
| 156 |
+
apply ENNReal.mul_ne_top _ norm_wiener_tail_constant_finite
|
| 157 |
+
apply ENNReal.mul_ne_top (ENNReal.natCast_ne_top _)
|
| 158 |
+
apply ENNReal.pow_ne_top
|
| 159 |
+
rw [ENNReal.inv_ne_top]
|
| 160 |
+
simpa using hB
|
| 161 |
+
have h := ENNReal.toReal_mono hfin (coordinateWiener_tail8 N hB)
|
| 162 |
+
simpa only [Measure.real,ENNReal.toReal_mul,ENNReal.toReal_pow,ENNReal.toReal_inv,
|
| 163 |
+
ENNReal.toReal_ofReal hB.le, pathTailConstant,mul_assoc,mul_left_comm,mul_comm] using h
|
| 164 |
+
|
| 165 |
+
lemma killedAverage_free_order4 (N : ℕ) (L : Length) (a : ℝ)
|
| 166 |
+
(g : C(Configuration N L,ℂ)) {δ : ℝ} (hδpos : 0<δ)
|
| 167 |
+
(hδ : Metric.cthickening δ (tsupport g) ⊆ allowed N L a)
|
| 168 |
+
{t : ℝ} (ht : 0<t) (X : Configuration N L) :
|
| 169 |
+
‖killedAverage N L a t g X-killedAverage N L (-1) t g X‖ ≤
|
| 170 |
+
(‖g‖*pathTailConstant N*(2*normMultiplier/δ)^8*16)*t^4 := by
|
| 171 |
+
let B : ℝ := δ/(2*Real.sqrt (2*t)*normMultiplier)
|
| 172 |
+
have hs : 0<Real.sqrt (2*t) := Real.sqrt_pos.2 (by positivity)
|
| 173 |
+
have hB : 0<B := div_pos hδpos (mul_pos (mul_pos (by norm_num) hs) normMultiplier_pos)
|
| 174 |
+
have hBt : 2*Real.sqrt (2*t)*(B*normMultiplier)≤δ := by
|
| 175 |
+
dsimp [B]
|
| 176 |
+
have hn := normMultiplier_pos.ne'
|
| 177 |
+
field_simp
|
| 178 |
+
exact le_rfl
|
| 179 |
+
calc
|
| 180 |
+
_ ≤ ‖g‖*(coordinateWiener N).real {w | ∃ p, B*normMultiplier<‖w p‖} :=
|
| 181 |
+
killedAverage_free_bound N L a t g hB hδ hBt X
|
| 182 |
+
_ ≤ ‖g‖*(pathTailConstant N*B⁻¹^8) :=
|
| 183 |
+
mul_le_mul_of_nonneg_left (coordinateWiener_tail8_real N hB) (norm_nonneg g)
|
| 184 |
+
_ = _ := by
|
| 185 |
+
have hsq := Real.sq_sqrt (by positivity : 0≤2*t)
|
| 186 |
+
dsimp [B]
|
| 187 |
+
rw [inv_div]
|
| 188 |
+
calc
|
| 189 |
+
_ = ‖g‖ * pathTailConstant N * (2 * normMultiplier / δ)^8 *
|
| 190 |
+
(Real.sqrt (2*t)^2)^4 := by ring
|
| 191 |
+
_ = _ := by rw [hsq]; ring
|
| 192 |
+
|
| 193 |
+
lemma killedTransition_continuous_ae_core (N : ℕ) (L : Length) (a t : ℝ)
|
| 194 |
+
(g : C(Configuration N L,ℂ)) :
|
| 195 |
+
killedTransition N L a t (ContinuousMap.toLp 2 volume ℂ g) =ᵐ[volume]
|
| 196 |
+
killedAverage N L a t g := by
|
| 197 |
+
have hgLp : MemLp (fun X ↦ g X) 2 (volume : Measure (Configuration N L)) :=
|
| 198 |
+
MemLp.of_bound g.continuous.measurable.aestronglyMeasurable ‖g‖
|
| 199 |
+
(Eventually.of_forall g.norm_coe_le_norm)
|
| 200 |
+
have hge : ContinuousMap.toLp 2 volume ℂ g = hgLp.toLp g := by
|
| 201 |
+
apply Lp.ext
|
| 202 |
+
exact (ContinuousMap.coeFn_toLp (𝕜 := ℂ) (p := 2) volume g).trans hgLp.coeFn_toLp.symm
|
| 203 |
+
rw [hge,killedTransition_bounded N L a t g.continuous.measurable
|
| 204 |
+
hgLp (norm_nonneg g) g.norm_coe_le_norm]
|
| 205 |
+
exact MemLp.coeFn_toLp _
|
| 206 |
+
|
| 207 |
+
lemma killedTransition_free_order4 (N : ℕ) (L : Length) (a : ℝ)
|
| 208 |
+
(g : C(Configuration N L,ℂ)) (hg : tsupport g⊆allowed N L a) :
|
| 209 |
+
∃ C : ℝ, 0≤C ∧ ∀ t : ℝ, 0<t →
|
| 210 |
+
‖killedTransition N L a t (ContinuousMap.toLp 2 volume ℂ g)-
|
| 211 |
+
freeTransition N L t (ContinuousMap.toLp 2 volume ℂ g)‖ ≤ C*t^4 := by
|
| 212 |
+
obtain ⟨δ,hδpos,hδ⟩ := (isClosed_tsupport g).isCompact.exists_cthickening_subset_open
|
| 213 |
+
(isOpen_allowed N L a) hg
|
| 214 |
+
let C0 : ℝ := ‖g‖*pathTailConstant N*(2*normMultiplier/δ)^8*16
|
| 215 |
+
have hC0 : 0≤C0 := by
|
| 216 |
+
have hp := pathTailConstant_nonneg N
|
| 217 |
+
dsimp [C0]
|
| 218 |
+
positivity
|
| 219 |
+
let M : ℝ := (measureUnivNNReal (volume : Measure (Configuration N L)) : ℝ) ^ (2:ℝ≥0∞).toReal⁻¹
|
| 220 |
+
have hM : 0≤M := Real.rpow_nonneg (NNReal.coe_nonneg _) _
|
| 221 |
+
refine ⟨M*C0,mul_nonneg hM hC0,?_⟩
|
| 222 |
+
intro t ht
|
| 223 |
+
rw [← killedTransition_of_neg N L (by norm_num : (-1:ℝ)<0)]
|
| 224 |
+
have hb : ∀ᵐ X ∂(volume : Measure (Configuration N L)),
|
| 225 |
+
‖(killedTransition N L a t (ContinuousMap.toLp 2 volume ℂ g)-
|
| 226 |
+
killedTransition N L (-1) t (ContinuousMap.toLp 2 volume ℂ g)) X‖≤C0*t^4 := by
|
| 227 |
+
filter_upwards [Lp.coeFn_sub (killedTransition N L a t (ContinuousMap.toLp 2 volume ℂ g))
|
| 228 |
+
(killedTransition N L (-1) t (ContinuousMap.toLp 2 volume ℂ g)),
|
| 229 |
+
killedTransition_continuous_ae_core N L a t g,killedTransition_continuous_ae_core N L (-1) t g] with X hsub ha hb
|
| 230 |
+
rw [hsub,Pi.sub_apply,ha,hb]
|
| 231 |
+
exact killedAverage_free_order4 N L a g hδpos hδ ht X
|
| 232 |
+
exact (Lp.norm_le_of_ae_bound (mul_nonneg hC0 (by positivity)) hb).trans_eq (by dsimp [M]; ring)
|
| 233 |
+
|
| 234 |
+
lemma killedTransition_free_firstOrder (N : ℕ) (L : Length) (a : ℝ)
|
| 235 |
+
(g : C(Configuration N L,ℂ)) (hg : tsupport g⊆allowed N L a) :
|
| 236 |
+
Tendsto (fun t : ℝ ↦ (t⁻¹:ℝ) •
|
| 237 |
+
(killedTransition N L a t (ContinuousMap.toLp 2 volume ℂ g)-
|
| 238 |
+
freeTransition N L t (ContinuousMap.toLp 2 volume ℂ g)))
|
| 239 |
+
(𝓝[>] 0) (𝓝 0) := by
|
| 240 |
+
obtain ⟨C,hC,hb⟩ := killedTransition_free_order4 N L a g hg
|
| 241 |
+
rw [tendsto_zero_iff_norm_tendsto_zero]
|
| 242 |
+
apply squeeze_zero' (g := fun t : ℝ ↦ C*t^3) (Eventually.of_forall fun t ↦ norm_nonneg _) ?_ ?_
|
| 243 |
+
· filter_upwards [self_mem_nhdsWithin] with t ht
|
| 244 |
+
have ht' : 0<t := ht
|
| 245 |
+
rw [norm_smul,Real.norm_eq_abs,abs_of_pos (inv_pos.mpr ht')]
|
| 246 |
+
calc
|
| 247 |
+
_ ≤ t⁻¹*(C*t^4) := mul_le_mul_of_nonneg_left (hb t ht') (by positivity)
|
| 248 |
+
_ = C*t^3 := by field_simp
|
| 249 |
+
· have h := (tendsto_const_nhds (x := C)).mul
|
| 250 |
+
((tendsto_id : Tendsto (fun t : ℝ ↦ t) (𝓝 0) (𝓝 0)).pow 3)
|
| 251 |
+
simpa using h.mono_left nhdsWithin_le_nhds
|
| 252 |
+
|
| 253 |
+
end HardSphere
|
| 254 |
+
|
| 255 |
+
end
|
| 256 |
+
|
| 257 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/PhysicalVisitTails.lean
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Bridges.EndpointTail
|
| 3 |
+
import OAI.Analysis.HardSphere.PathBounds.VisitCounts
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
|
| 9 |
+
section
|
| 10 |
+
noncomputable section
|
| 11 |
+
open MeasureTheory ProbabilityTheory Set Filter
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
namespace HardSphere.FreeVisits
|
| 14 |
+
open Wiener PathCutoff BathSlice HardSphere.Lattice CellOrbital
|
| 15 |
+
|
| 16 |
+
theorem ground_excessVisitors_tail :
|
| 17 |
+
∃ αstar : ℝ, 0<αstar ∧ ∀ αmax : ℝ, 0<αmax →
|
| 18 |
+
∃ H : ℝ, 0<H ∧ ∀ (n K : ℕ) [NeZero K] (L : Length), L.val=(K:ℝ) →
|
| 19 |
+
∀ r D : ℝ, D=(n:ℝ)/L.val^3 → 1≤D → αstar≤D*r → D*r≤αmax → 0<r →
|
| 20 |
+
(n:ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 21 |
+
∀ (g : Jet n L), IsGroundVector n L r g → ∀ (A : Finset (DiscreteTorus K)) {t : ℝ},
|
| 22 |
+
0<t → t≤2 →
|
| 23 |
+
groundPathLaw n L r t g {ω | ∀v∈A,H*D≤(visitorCount L Set.univ v ω:ℝ)}≤
|
| 24 |
+
ENNReal.ofReal (Real.exp (-(D*(A.card:ℝ)))) := by
|
| 25 |
+
obtain ⟨Cd,Cf,Cs,α,hCd,hCf,hCs,hα,hm⟩ := interacting_visit_mgf (η₀:=1) (by norm_num)
|
| 26 |
+
refine ⟨α,hα,?_⟩
|
| 27 |
+
intro αmax hαmax
|
| 28 |
+
let B := Real.exp (2*Cd*αmax)*Cf
|
| 29 |
+
have hB : 0<B := by dsimp [B]; positivity
|
| 30 |
+
let η := min 1 B⁻¹
|
| 31 |
+
have hη : 0<η := lt_min (by norm_num) (inv_pos.mpr hB)
|
| 32 |
+
have hη1 : η≤1 := min_le_left _ _
|
| 33 |
+
have hb : B*η≤1 := by
|
| 34 |
+
calc
|
| 35 |
+
B*η≤B*B⁻¹ := mul_le_mul_of_nonneg_left (min_le_right _ _) hB.le
|
| 36 |
+
_ = 1 := mul_inv_cancel₀ hB.ne'
|
| 37 |
+
let H := (Cs+1)/η
|
| 38 |
+
have hH : 0<H := div_pos (by linarith) hη
|
| 39 |
+
refine ⟨H,hH,?_⟩
|
| 40 |
+
intro n K inst L hL r D hDeq hD hαr hαup hr hs g hg A t ht ht2
|
| 41 |
+
have hD0 : 0≤D := by linarith
|
| 42 |
+
have hxp : t*Cd*D*r≤2*Cd*αmax := by
|
| 43 |
+
calc
|
| 44 |
+
t*Cd*D*r = (t*Cd)*(D*r) := by ring
|
| 45 |
+
_ ≤ (t*Cd)*αmax := mul_le_mul_of_nonneg_left hαup (by positivity)
|
| 46 |
+
_ ≤ (2*Cd)*αmax := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right ht2 hCd.le) hαmax.le
|
| 47 |
+
have hz : Real.exp (t*Cd*D*r)*(Cf*η*(1:ℝ)^(1/3:ℝ))≤1 := by
|
| 48 |
+
simp only [Real.one_rpow,mul_one]
|
| 49 |
+
calc
|
| 50 |
+
_ ≤ Real.exp (2*Cd*αmax)*(Cf*η) := mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr hxp) (by positivity)
|
| 51 |
+
_ = B*η := by dsimp [B]; ring
|
| 52 |
+
_ ≤ 1 := hb
|
| 53 |
+
have hp (y : Torus L) : coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration y)∈(Set.univ : Set (ConfigurationPath 1 L))}≤ENNReal.ofReal 1 := by simp
|
| 54 |
+
have hh := hm n K L hL r D hDeq hD hαr hr hs g hg A ht ht2 hη.le hη1
|
| 55 |
+
(by norm_num : (0:ℝ)≤1) Set.univ MeasurableSet.univ (fun _ ↦ Iff.rfl) hp hz
|
| 56 |
+
have hj := joint_visitors_markov L A MeasurableSet.univ (groundPathLaw n L r t g) hη.le hh (H:=H*D)
|
| 57 |
+
apply hj.trans
|
| 58 |
+
apply ENNReal.ofReal_le_ofReal
|
| 59 |
+
apply Real.exp_le_exp.mpr
|
| 60 |
+
rw [←neg_mul]
|
| 61 |
+
apply mul_le_mul_of_nonneg_right _ (Nat.cast_nonneg A.card)
|
| 62 |
+
have hhH : η*H=Cs+1 := by dsimp [H]; field_simp
|
| 63 |
+
have he : Cs*(Real.exp (t*Cd*D*r)*(Cf*η*(1:ℝ)^(1/3:ℝ)))*D≤Cs*D := by
|
| 64 |
+
exact (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hz hCs.le) hD0).trans_eq (by ring)
|
| 65 |
+
change _≤ -D
|
| 66 |
+
nlinarith
|
| 67 |
+
|
| 68 |
+
end HardSphere.FreeVisits
|
| 69 |
+
|
| 70 |
+
end
|
| 71 |
+
end
|
| 72 |
+
|
| 73 |
+
section
|
| 74 |
+
noncomputable section
|
| 75 |
+
open MeasureTheory ProbabilityTheory Set Filter
|
| 76 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 77 |
+
namespace HardSphere.FreeVisits
|
| 78 |
+
open Wiener PathCutoff HardSphere.Lattice
|
| 79 |
+
|
| 80 |
+
theorem free_long_probability_small {ε : ℝ} (hε : 0<ε) :
|
| 81 |
+
∃ t₀ : ℝ, 0<t₀ ∧ ∀ (L : Length) {t : ℝ},0<t→t≤t₀→∀y : Torus L,
|
| 82 |
+
coordinateWiener 1 {w | 1 < intervalDiameter 0 1 (freeTrajectory 1 L t w (oneConfiguration y))}≤
|
| 83 |
+
ENNReal.ofReal ε := by
|
| 84 |
+
obtain ⟨c,M,hc,hM,htail⟩ := wiener_norm_gaussian_tail
|
| 85 |
+
have hlim : Tendsto (fun q:ℝ ↦ (3*M.toReal)*Real.exp (-q)) atTop (𝓝 0) := by
|
| 86 |
+
simpa using Real.tendsto_exp_neg_atTop_nhds_zero.const_mul (3*M.toReal)
|
| 87 |
+
obtain ⟨T,hT,hsmall⟩ := ((eventually_gt_atTop (0:ℝ)).and
|
| 88 |
+
(hlim.eventually (gt_mem_nhds hε))).exists
|
| 89 |
+
refine ⟨c/(1296*T),by positivity,?_⟩
|
| 90 |
+
intro L t ht htt y
|
| 91 |
+
apply (free_diameter_tail htail ht (by norm_num : (0:ℝ)≤1) (oneConfiguration y)).trans
|
| 92 |
+
have hsq : c*(1/(36*Real.sqrt t))^2=c/(1296*t) := by
|
| 93 |
+
rw [div_pow,mul_pow,Real.sq_sqrt ht.le]
|
| 94 |
+
norm_num
|
| 95 |
+
ring
|
| 96 |
+
have hcT : T≤c/(1296*t) := by
|
| 97 |
+
apply (le_div_iff₀ (by positivity : 0<(1296:ℝ)*t)).mpr
|
| 98 |
+
have hh := (le_div_iff₀ (by positivity : 0<(1296:ℝ)*T)).mp htt
|
| 99 |
+
nlinarith
|
| 100 |
+
have hm : (3:ℝ≥0∞)*M=ENNReal.ofReal (3*M.toReal) := by
|
| 101 |
+
rw [ENNReal.ofReal_mul (by norm_num : (0:ℝ)≤3),ENNReal.ofReal_toReal hM.ne]
|
| 102 |
+
norm_num
|
| 103 |
+
rw [hm,←ENNReal.ofReal_mul (by positivity : (0:ℝ)≤3*M.toReal)]
|
| 104 |
+
apply ENNReal.ofReal_le_ofReal
|
| 105 |
+
apply le_trans _ hsmall.le
|
| 106 |
+
apply mul_le_mul_of_nonneg_left _ (by positivity)
|
| 107 |
+
apply Real.exp_le_exp.mpr
|
| 108 |
+
nlinarith [hsq]
|
| 109 |
+
|
| 110 |
+
theorem ground_longVisitors_tail :
|
| 111 |
+
∃ αstar : ℝ, 0<αstar ∧ ∀ αmax θ : ℝ, 0<αmax → 0<θ →
|
| 112 |
+
∃ t₀ : ℝ, 0<t₀ ∧ ∀ (n K : ℕ) [NeZero K] (L : Length), L.val=(K:ℝ) →
|
| 113 |
+
∀ r D : ��, D=(n:ℝ)/L.val^3 → 1≤D → αstar≤D*r → D*r≤αmax → 0<r →
|
| 114 |
+
(n:ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 115 |
+
∀ (g : Jet n L), IsGroundVector n L r g → ∀ (A : Finset (DiscreteTorus K)) {t : ℝ},
|
| 116 |
+
0<t → t ≤ min 2 t₀ →
|
| 117 |
+
groundPathLaw n L r t g {ω | ∀v∈A,θ*D≤
|
| 118 |
+
(visitorCount L {p | 1 < intervalDiameter 0 1 p} v ω:ℝ)}≤
|
| 119 |
+
ENNReal.ofReal (Real.exp (-(θ*D/2)*(A.card:ℝ))) := by
|
| 120 |
+
obtain ⟨Cd,Cf,Cs,α,hCd,hCf,hCs,hα,hm⟩ := interacting_visit_mgf (η₀:=1) (by norm_num)
|
| 121 |
+
refine ⟨α,hα,?_⟩
|
| 122 |
+
intro αmax θ hαmax hθ
|
| 123 |
+
let B := Real.exp (2*Cd*αmax)*Cf
|
| 124 |
+
have hB : 0<B := by dsimp [B]; positivity
|
| 125 |
+
let δ := min 1 (θ/(2*Cs))
|
| 126 |
+
have hδ : 0<δ := lt_min (by norm_num) (by positivity)
|
| 127 |
+
let ε := (δ/B)^3
|
| 128 |
+
have hε : 0<ε := by dsimp [ε]; positivity
|
| 129 |
+
have hrp : ε^(1/3:ℝ)=δ/B := by
|
| 130 |
+
simpa [ε] using Real.pow_rpow_inv_natCast (n:=3) (div_pos hδ hB).le (by norm_num : (3:ℕ)≠0)
|
| 131 |
+
obtain ⟨t₀,ht₀,hsmall⟩ := free_long_probability_small hε
|
| 132 |
+
refine ⟨t₀,ht₀,?_⟩
|
| 133 |
+
intro n K inst L hL r D hDeq hD hαr hαup hr hs g hg A t ht htt
|
| 134 |
+
have ht2 := (le_min_iff.mp htt).1
|
| 135 |
+
have hD0 : 0≤D := by linarith
|
| 136 |
+
have hxp : t*Cd*D*r≤2*Cd*αmax := by
|
| 137 |
+
calc
|
| 138 |
+
t*Cd*D*r = (t*Cd)*(D*r) := by ring
|
| 139 |
+
_ ≤ (t*Cd)*αmax := mul_le_mul_of_nonneg_left hαup (by positivity)
|
| 140 |
+
_ ≤ (2*Cd)*αmax := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right ht2 hCd.le) hαmax.le
|
| 141 |
+
have hzδ : Real.exp (t*Cd*D*r)*(Cf*1*ε^(1/3:ℝ))≤δ := by
|
| 142 |
+
rw [hrp,mul_one]
|
| 143 |
+
calc
|
| 144 |
+
_ ≤ Real.exp (2*Cd*αmax)*(Cf*(δ/B)) := mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr hxp) (by positivity)
|
| 145 |
+
_ = δ := by dsimp [B]; field_simp
|
| 146 |
+
have hz1 := hzδ.trans (min_le_left 1 (θ/(2*Cs)))
|
| 147 |
+
let E : Set (ConfigurationPath 1 L) := {p | 1 < intervalDiameter 0 1 p}
|
| 148 |
+
have hE : MeasurableSet E := measurableSet_lt measurable_const (intervalDiameter_continuous L 0 1).measurable
|
| 149 |
+
have hrev (p : ConfigurationPath 1 L) : reverseConfigurationPath 1 L p∈E↔p∈E := by
|
| 150 |
+
simp only [E,Set.mem_ofPred_eq,intervalDiameter_reverse,reverseTime_zero,reverseTime_one]
|
| 151 |
+
have hp (y : Torus L) : coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration y)∈E}≤ENNReal.ofReal ε :=
|
| 152 |
+
hsmall L ht (le_min_iff.mp htt).2 y
|
| 153 |
+
have hh := hm n K L hL r D hDeq hD hαr hr hs g hg A ht ht2 (by norm_num : (0:ℝ)≤1)
|
| 154 |
+
(le_refl 1) hε.le E hE hrev hp hz1
|
| 155 |
+
have hj := joint_visitors_markov L A hE (groundPathLaw n L r t g) (by norm_num : (0:ℝ)≤1) hh (H:=θ*D)
|
| 156 |
+
apply hj.trans
|
| 157 |
+
apply ENNReal.ofReal_le_ofReal
|
| 158 |
+
apply Real.exp_le_exp.mpr
|
| 159 |
+
apply mul_le_mul_of_nonneg_right _ (Nat.cast_nonneg A.card)
|
| 160 |
+
have hδθ : Cs*δ≤θ/2 := by
|
| 161 |
+
have hh := (le_div_iff₀ (by positivity : 0<(2:ℝ)*Cs)).mp (min_le_right 1 (θ/(2*Cs)))
|
| 162 |
+
dsimp [δ]
|
| 163 |
+
linarith
|
| 164 |
+
have hc := mul_le_mul_of_nonneg_right ((mul_le_mul_of_nonneg_left hzδ hCs.le).trans hδθ) hD0
|
| 165 |
+
nlinarith
|
| 166 |
+
|
| 167 |
+
end HardSphere.FreeVisits
|
| 168 |
+
|
| 169 |
+
end
|
| 170 |
+
end
|
| 171 |
+
|
| 172 |
+
end
|
| 173 |
+
|
| 174 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/RegularVisitors.lean
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.PathBounds.VisitCounts
|
| 3 |
+
import OAI.Analysis.HardSphere.Cutoffs.StandardRegular
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
|
| 9 |
+
section
|
| 10 |
+
noncomputable section
|
| 11 |
+
open MeasureTheory ProbabilityTheory Set Filter
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
namespace HardSphere.FreeVisits
|
| 14 |
+
open Wiener PathCutoff HardSphere.Lattice
|
| 15 |
+
|
| 16 |
+
theorem ground_regularVisitors_tail (η : ℝ) (hη : 0 < η) :
|
| 17 |
+
∃ αstar : ℝ, 0 < αstar ∧ ∀ αmax C a b : ℝ,
|
| 18 |
+
0 < αmax → 0 < C → 0 < a → 0 < b →
|
| 19 |
+
∃ D₀ : ℝ, 1 ≤ D₀ ∧ ∀ (n K : ℕ) [NeZero K] (L : Length), L.val=(K:ℝ) →
|
| 20 |
+
∀ r D : ℝ, D=(n:ℝ)/L.val^3 → D₀ ≤ D → αstar ≤ D*r → D*r ≤ αmax → 0 < r →
|
| 21 |
+
(n:ℝ)*(2*Real.pi*r)^3 ≤ L.val^3/2 →
|
| 22 |
+
∀ (g : Jet n L), IsGroundVector n L r g → ∀ (A : Finset (DiscreteTorus K))
|
| 23 |
+
(m : ℕ) (τ : ℝ), 0 < m → 0 < τ → τ ≤ r^2 →
|
| 24 |
+
a*D^2 ≤ (m:ℝ) → (m:ℝ) ≤ C*D^2 → (m:ℝ)*τ ≤ 2 →
|
| 25 |
+
∀ (hD : 0 < D) (hhT : D⁻¹ < (m:ℝ)*τ),
|
| 26 |
+
groundPathLaw n L r ((m:ℝ)*τ) g {ω | ∀v∈A,1 ≤
|
| 27 |
+
(visitorCount L {p | ¬Regular m r (D^(1/12:ℝ)) (meanCost+1)
|
| 28 |
+
(splitTime D⁻¹ ((m:ℝ)*τ-D⁻¹) (inv_pos.mpr hD) (sub_pos.mpr hhT))
|
| 29 |
+
(b*D^(-(1/3:ℝ))/8) p} v ω:ℝ)} ≤
|
| 30 |
+
ENNReal.ofReal (Real.exp (-(η/2)*(A.card:ℝ))) := by
|
| 31 |
+
obtain ⟨c,M,hc,hM,htail⟩ := wiener_norm_gaussian_tail
|
| 32 |
+
obtain ⟨Cd,Cf,Cs,α,hCd,hCf,hCs,hα,hm⟩ := interacting_visit_mgf (η₀:=η) hη.le
|
| 33 |
+
refine ⟨α,hα,?_⟩
|
| 34 |
+
intro αmax C a b hαmax hC ha hb
|
| 35 |
+
let ε := fun D : ℝ ↦ scalarRegularBound C (3*M.toReal) c a b D
|
| 36 |
+
let B := Real.exp (2*Cd*αmax)*Cf*η
|
| 37 |
+
have hB : 0 < B := by dsimp [B]; positivity
|
| 38 |
+
let δ := min 1 (η/(2*Cs))
|
| 39 |
+
have hδ : 0 < δ := lt_min (by norm_num) (by positivity)
|
| 40 |
+
have hlim : Tendsto (fun D : ℝ ↦ B*(D*(ε D)^(1/3:ℝ))) atTop (𝓝 0) := by
|
| 41 |
+
simpa using (regular_root_decay hC.le (by positivity : 0 ≤ 3*M.toReal) hc ha hb).const_mul B
|
| 42 |
+
obtain ⟨D₀,hsmall⟩ := (eventually_atTop.1
|
| 43 |
+
((eventually_ge_atTop (1:ℝ)).and (hlim.eventually (gt_mem_nhds hδ))))
|
| 44 |
+
refine ⟨max 1 D₀,le_max_left _ _,?_⟩
|
| 45 |
+
intro n K inst L hL r D hDeq hDD hαr hαup hr hs g hg A m τ hmpos hτ hτr hmlo hmhi ht2 hD hhT
|
| 46 |
+
have hD1 : 1 ≤ D := (le_max_left _ _).trans hDD
|
| 47 |
+
have hsmallD : B*(D*(ε D)^(1/3:ℝ)) ≤ δ := ((hsmall D ((le_max_right _ _).trans hDD)).2).le
|
| 48 |
+
have hε : 0 ≤ ε D := scalarRegularBound_nonneg hC.le (by positivity) c a b D
|
| 49 |
+
have ht : 0 < (m:ℝ)*τ := mul_pos (Nat.cast_pos.mpr hmpos) hτ
|
| 50 |
+
have hxp : ((m:ℝ)*τ)*Cd*D*r ≤ 2*Cd*αmax := by
|
| 51 |
+
calc
|
| 52 |
+
_ = (((m:ℝ)*τ)*Cd)*(D*r) := by ring
|
| 53 |
+
_ ≤ (((m:ℝ)*τ)*Cd)*αmax := mul_le_mul_of_nonneg_left hαup (by positivity)
|
| 54 |
+
_ ≤ (2*Cd)*αmax := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right ht2 hCd.le) hαmax.le
|
| 55 |
+
let z := Real.exp (((m:ℝ)*τ)*Cd*D*r)*(Cf*η*(ε D)^(1/3:ℝ))
|
| 56 |
+
have hz : 0 ≤ z := by dsimp [z]; positivity
|
| 57 |
+
have hzD : z*D ≤ δ := by
|
| 58 |
+
apply le_trans _ hsmallD
|
| 59 |
+
calc
|
| 60 |
+
_ ≤ Real.exp (2*Cd*αmax)*(Cf*η*(ε D)^(1/3:ℝ))*D := by
|
| 61 |
+
dsimp [z]
|
| 62 |
+
exact mul_le_mul_of_nonneg_right
|
| 63 |
+
(mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr hxp) (by positivity)) hD.le
|
| 64 |
+
_ = B*(D*(ε D)^(1/3:ℝ)) := by dsimp [B]; ring
|
| 65 |
+
have hz1 : z ≤ 1 := (by nlinarith : z ≤ z*D).trans (hzD.trans (min_le_left _ _))
|
| 66 |
+
let E : Set (ConfigurationPath 1 L) := {p | ¬Regular m r (D^(1/12:ℝ)) (meanCost+1)
|
| 67 |
+
(splitTime D⁻¹ ((m:ℝ)*τ-D⁻¹) (inv_pos.mpr hD) (sub_pos.mpr hhT)) (b*D^(-(1/3:ℝ))/8) p}
|
| 68 |
+
have hE : MeasurableSet E := (regular_measurable _ _ _ _ _ _).compl
|
| 69 |
+
have hrev (p : ConfigurationPath 1 L) : reverseConfigurationPath 1 L p∈E ↔ p∈E :=
|
| 70 |
+
(regular_reverse _ _ _ _ _ _ p).not
|
| 71 |
+
have hp (y : Torus L) : coordinateWiener 1 {w | freeTrajectory 1 L ((m:ℝ)*τ) w (oneConfiguration y)∈E} ≤ ENNReal.ofReal (ε D) :=
|
| 72 |
+
free_regular_standard_tail hM.ne htail hr hτ hτr hc.le hD1 hC.le ha.le hb.le m hmpos hmlo hmhi hhT (oneConfiguration y)
|
| 73 |
+
have hh := hm n K L hL r D hDeq hD1 hαr hr hs g hg A ht ht2 hη.le (le_refl η) hε E hE hrev hp hz1
|
| 74 |
+
have hj := joint_visitors_markov L A hE (groundPathLaw n L r ((m:ℝ)*τ) g) hη.le hh (H:=1)
|
| 75 |
+
apply hj.trans
|
| 76 |
+
apply ENNReal.ofReal_le_ofReal
|
| 77 |
+
apply Real.exp_le_exp.mpr
|
| 78 |
+
apply mul_le_mul_of_nonneg_right _ (Nat.cast_nonneg A.card)
|
| 79 |
+
have hδη : Cs*δ ≤ η/2 := by
|
| 80 |
+
have hh := (le_div_iff₀ (by positivity : 0 < (2:ℝ)*Cs)).mp (min_le_right 1 (η/(2*Cs)))
|
| 81 |
+
dsimp [δ]
|
| 82 |
+
linarith
|
| 83 |
+
have hcost := (mul_le_mul_of_nonneg_left hzD hCs.le).trans hδη
|
| 84 |
+
change Cs*z*D-η*1 ≤ -(η/2)
|
| 85 |
+
nlinarith
|
| 86 |
+
|
| 87 |
+
end HardSphere.FreeVisits
|
| 88 |
+
|
| 89 |
+
end
|
| 90 |
+
end
|
| 91 |
+
|
| 92 |
+
end
|
| 93 |
+
|
| 94 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/ShiftInteracting.lean
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.PathBounds.InteractingVisits
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
section
|
| 7 |
+
|
| 8 |
+
section
|
| 9 |
+
noncomputable section
|
| 10 |
+
open MeasureTheory Set Filter
|
| 11 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 12 |
+
namespace HardSphere.ShiftVisits
|
| 13 |
+
open HardSphere.Wiener HardSphere.Lattice HardSphere.CellOrbital HardSphere.BathSlice HardSphere.FreeVisits
|
| 14 |
+
attribute [local irreducible] freeTrajectory
|
| 15 |
+
def defectiveTotalVisits {n K : ℕ} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 16 |
+
(D : Set (ConfigurationPath 1 L)) (ω : ConfigurationPath n L) : ℕ := by
|
| 17 |
+
classical
|
| 18 |
+
exact ∑ i, if onePathAt i ω∈D then (pathVisitedSites L (center L c) A i ω).card else 0
|
| 19 |
+
|
| 20 |
+
lemma pathVisitedSites_onePathAt {n K : ℕ} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 21 |
+
(i : Fin n) (ω : ConfigurationPath n L) :
|
| 22 |
+
pathVisitedSites L (center L c) A 0 (onePathAt i ω)=pathVisitedSites L (center L c) A i ω := by
|
| 23 |
+
simp only [pathVisitedSites,pathVisitsBall,onePathAt,oneConfiguration,ContinuousMap.coe_mk]
|
| 24 |
+
rfl
|
| 25 |
+
|
| 26 |
+
lemma exp_defectiveTotalVisits {n K : ℕ} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 27 |
+
(D : Set (ConfigurationPath 1 L)) {η : ℝ} (hη : 0≤η) (ω : ConfigurationPath n L) :
|
| 28 |
+
ENNReal.ofReal (Real.exp (η*(defectiveTotalVisits L c A D ω : ℝ)))=
|
| 29 |
+
∏ i, (1+singleDefect L c A η D (onePathAt i ω)) := by
|
| 30 |
+
classical
|
| 31 |
+
simp only [defectiveTotalVisits,Nat.cast_sum,Finset.mul_sum,Real.exp_sum,
|
| 32 |
+
ENNReal.ofReal_prod_of_nonneg (fun _ _ ↦ (Real.exp_pos _).le)]
|
| 33 |
+
apply Finset.prod_congr rfl
|
| 34 |
+
intro i _
|
| 35 |
+
rw [singleDefect,pathVisitedSites_onePathAt]
|
| 36 |
+
have hx : 0≤η*(if onePathAt i ω∈D then ((pathVisitedSites L (center L c) A i ω).card:ℝ) else 0) := by positivity
|
| 37 |
+
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)
|
| 38 |
+
simp only [Nat.cast_ite,Nat.cast_zero]
|
| 39 |
+
rw [←ENNReal.ofReal_one,←ENNReal.ofReal_add zero_le_one he]
|
| 40 |
+
congr 1
|
| 41 |
+
ring
|
| 42 |
+
|
| 43 |
+
theorem interacting_visit_mgf {η₀ : ℝ} (hη₀ : 0≤η₀) :
|
| 44 |
+
∃ Cdel Cfree Csp αstar : ℝ,
|
| 45 |
+
0<Cdel ∧ 0<Cfree ∧ 0<Csp ∧ 0<αstar ∧
|
| 46 |
+
∀ (n K : ℕ) [NeZero K] (L : Length), L.val=(K:ℝ) → ∀ r D : ℝ,
|
| 47 |
+
D=(n:ℝ)/L.val^3 → 1≤D → αstar≤D*r → 0<r →
|
| 48 |
+
(n:ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 49 |
+
∀ (g : Jet n L), IsGroundVector n L r g →
|
| 50 |
+
∀ (c : Torus L) (A : Finset (DiscreteTorus K)) {t η ε : ℝ},
|
| 51 |
+
0<t → t≤2 → 0≤η → η≤η₀ → 0≤ε →
|
| 52 |
+
∀ E : Set (ConfigurationPath 1 L), MeasurableSet E →
|
| 53 |
+
(∀ω,reverseConfigurationPath 1 L ω∈E ↔ ω∈E) →
|
| 54 |
+
(∀ y : Torus L, coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration y)∈E}≤ENNReal.ofReal ε) →
|
| 55 |
+
Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ))≤1 →
|
| 56 |
+
(∫⁻ ω, ENNReal.ofReal (Real.exp (η*(defectiveTotalVisits L c A E ω:ℝ)))
|
| 57 |
+
∂groundPathLaw n L r t g) ≤
|
| 58 |
+
ENNReal.ofReal (Real.exp (Csp*(Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ)))*D*(A.card:ℝ))) := by
|
| 59 |
+
classical
|
| 60 |
+
obtain ⟨Cdel,hCdel,hdel⟩ := ground_product_one_add
|
| 61 |
+
obtain ⟨Cfree,hCfree,hfree⟩ := free_single_defect_bound hη₀
|
| 62 |
+
obtain ⟨Csp,αstar,hCsp,hα,hsp⟩ := spatial_count_mgf_enn
|
| 63 |
+
refine ⟨Cdel,Cfree,Csp,αstar,hCdel,hCfree,hCsp,hα,?_⟩
|
| 64 |
+
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
|
| 65 |
+
let z := Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ))
|
| 66 |
+
have hz : 0≤z := by positivity
|
| 67 |
+
have hsize : 1≤L.val := by rw [hL]; exact_mod_cast (NeZero.pos K)
|
| 68 |
+
let := hg.groundPathLaw_probability ht.le
|
| 69 |
+
by_cases hA : A.Nonempty
|
| 70 |
+
· let B := A.image (center L c)
|
| 71 |
+
have hB : B.Nonempty := hA.image _
|
| 72 |
+
have hDexp : t*Cdel*(n:ℝ)*r/L.val^3=t*Cdel*D*r := by rw [hDeq]; ring
|
| 73 |
+
calc
|
| 74 |
+
_ = ∫⁻ ω,∏i,(1+singleDefect L c A η E (onePathAt i ω)) ∂groundPathLaw n L r t g :=
|
| 75 |
+
lintegral_congr (exp_defectiveTotalVisits L c A E hη)
|
| 76 |
+
_ ≤ ∫⁻ X,∏i,(1+ENNReal.ofReal (Real.exp (t*Cdel*(n:ℝ)*r/L.val^3))*
|
| 77 |
+
oneFreeExpectation t (singleDefect L c A η E) (X i)) ∂groundPositionLaw n L g :=
|
| 78 |
+
hdel n L r t hr ht hs g hg _ (singleDefect_measurable L c A η hE) (singleDefect_reverse L c A η hrev)
|
| 79 |
+
_ ≤ ∫⁻ X,ENNReal.ofReal (Real.exp (z*weightedSiteCount L B X)) ∂groundPositionLaw n L g := by
|
| 80 |
+
apply lintegral_mono
|
| 81 |
+
intro X
|
| 82 |
+
apply le_trans _ (product_one_add_exp_le L B hB hz X)
|
| 83 |
+
apply Finset.prod_le_prod
|
| 84 |
+
intro i _
|
| 85 |
+
gcongr
|
| 86 |
+
have H := hfree L hL c A ht ht2 hη hη0 hε E hE hprob (X i)
|
| 87 |
+
calc
|
| 88 |
+
_ ≤ ENNReal.ofReal (Real.exp (t*Cdel*(n:ℝ)*r/L.val^3))*
|
| 89 |
+
ENNReal.ofReal (Cfree*η*ε^(1/3:ℝ)*Real.exp (-spatialSiteDistance L B (X i))) := by gcongr
|
| 90 |
+
_ = _ := by rw [←ENNReal.ofReal_mul (Real.exp_nonneg _),hDexp]; congr 1; dsimp [z]; ring
|
| 91 |
+
_ ≤ ENNReal.ofReal (Real.exp (Csp*z*D*(B.card:ℝ))) :=
|
| 92 |
+
hsp n K L hL r D hDeq hD hαr hr hsize hs g hg B z hz hz1
|
| 93 |
+
_ ≤ _ := by
|
| 94 |
+
apply ENNReal.ofReal_le_ofReal
|
| 95 |
+
apply Real.exp_le_exp.mpr
|
| 96 |
+
have hc : (B.card:ℝ)≤(A.card:ℝ) := by exact_mod_cast Finset.card_image_le
|
| 97 |
+
exact mul_le_mul_of_nonneg_left hc (by positivity)
|
| 98 |
+
· have he : A=∅ := Finset.not_nonempty_iff_eq_empty.mp hA
|
| 99 |
+
subst A
|
| 100 |
+
simp [defectiveTotalVisits,pathVisitedSites]
|
| 101 |
+
|
| 102 |
+
end HardSphere.ShiftVisits
|
| 103 |
+
|
| 104 |
+
end
|
| 105 |
+
end
|
| 106 |
+
|
| 107 |
+
section
|
| 108 |
+
noncomputable section
|
| 109 |
+
open MeasureTheory ProbabilityTheory Set Filter
|
| 110 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 111 |
+
namespace HardSphere.ShiftVisits
|
| 112 |
+
open HardSphere.Wiener HardSphere.BathSlice HardSphere.Lattice HardSphere.CellOrbital HardSphere.FreeVisits
|
| 113 |
+
|
| 114 |
+
def visitorCount {n K : ℕ} (L : Length) (c : Torus L) (E : Set (ConfigurationPath 1 L))
|
| 115 |
+
(v : DiscreteTorus K) (ω : ConfigurationPath n L) : ℕ := by
|
| 116 |
+
classical
|
| 117 |
+
exact (Finset.univ.filter (fun i : Fin n ↦ onePathAt i ω∈E ∧ pathVisitsBall L 12 (center L c v) i ω)).card
|
| 118 |
+
|
| 119 |
+
lemma visitorCount_sum {n K : ℕ} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 120 |
+
(E : Set (ConfigurationPath 1 L)) (ω : ConfigurationPath n L) :
|
| 121 |
+
(∑v∈A,visitorCount L c E v ω)=defectiveTotalVisits L c A E ω := by
|
| 122 |
+
classical
|
| 123 |
+
simp only [visitorCount,Finset.card_filter]
|
| 124 |
+
rw [Finset.sum_comm]
|
| 125 |
+
apply Finset.sum_congr rfl
|
| 126 |
+
intro i _
|
| 127 |
+
by_cases hi : onePathAt i ω∈E
|
| 128 |
+
· simp only [hi,true_and,pathVisitedSites,ite_eq_left,Finset.card_filter]
|
| 129 |
+
· simp only [hi,false_and,ite_false,Finset.sum_const_zero,pathVisitedSites]
|
| 130 |
+
|
| 131 |
+
lemma visitorCount_measurable {n K : ℕ} (L : Length) (c : Torus L) {E : Set (ConfigurationPath 1 L)}
|
| 132 |
+
(hE : MeasurableSet E) (v : DiscreteTorus K) : Measurable (visitorCount (n:=n) L c E v) := by
|
| 133 |
+
classical
|
| 134 |
+
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
|
| 135 |
+
funext ω
|
| 136 |
+
simp only [visitorCount,Finset.card_filter]
|
| 137 |
+
rw [he]
|
| 138 |
+
apply Finset.measurable_fun_sum
|
| 139 |
+
intro i _
|
| 140 |
+
have hi : MeasurableSet {ω : ConfigurationPath n L | onePathAt i ω∈E} := hE.preimage (onePathAt_continuous i).measurable
|
| 141 |
+
exact measurable_const.ite (hi.inter (pathVisitsBall_isClosed L 12 (center L c v) i).measurableSet) measurable_const
|
| 142 |
+
|
| 143 |
+
lemma defectiveTotalVisits_measurable {n K : ℕ} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 144 |
+
{E : Set (ConfigurationPath 1 L)} (hE : MeasurableSet E) : Measurable (defectiveTotalVisits (n:=n) L c A E) := by
|
| 145 |
+
have he : defectiveTotalVisits (n:=n) L c A E=fun ω ↦ ∑v∈A,visitorCount L c E v ω := by
|
| 146 |
+
funext ω; exact (visitorCount_sum L c A E ω).symm
|
| 147 |
+
rw [he]
|
| 148 |
+
exact Finset.measurable_fun_sum _ (fun v _ ↦ visitorCount_measurable L c hE v)
|
| 149 |
+
|
| 150 |
+
lemma joint_visitor_sum {n K : ℕ} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 151 |
+
(E : Set (ConfigurationPath 1 L)) {H : ℝ} {ω : ConfigurationPath n L}
|
| 152 |
+
(h : ∀v∈A,H≤(visitorCount L c E v ω:ℝ)) :
|
| 153 |
+
H*(A.card:ℝ)≤(defectiveTotalVisits L c A E ω:ℝ) := by
|
| 154 |
+
rw [←visitorCount_sum L c A E ω,Nat.cast_sum]
|
| 155 |
+
have hs := Finset.sum_le_sum h
|
| 156 |
+
simpa only [Finset.sum_const,nsmul_eq_mul,mul_comm] using hs
|
| 157 |
+
|
| 158 |
+
lemma joint_visitors_markov {n K : ℕ} (L : Length) (c : Torus L) (A : Finset (DiscreteTorus K))
|
| 159 |
+
{E : Set (ConfigurationPath 1 L)} (hE : MeasurableSet E)
|
| 160 |
+
(μ : Measure (ConfigurationPath n L)) {η H Q : ℝ} (hη : 0≤η)
|
| 161 |
+
(hmgf : (∫⁻ω,ENNReal.ofReal (Real.exp (η*(defectiveTotalVisits L c A E ω:ℝ))) ∂μ)≤
|
| 162 |
+
ENNReal.ofReal (Real.exp (Q*(A.card:ℝ)))) :
|
| 163 |
+
μ {ω | ∀v∈A,H≤(visitorCount L c E v ω:ℝ)}≤ENNReal.ofReal (Real.exp ((Q-η*H)*(A.card:ℝ))) := by
|
| 164 |
+
let F := fun ω : ConfigurationPath n L ↦ ENNReal.ofReal (Real.exp (η*(defectiveTotalVisits L c A E ω:ℝ)))
|
| 165 |
+
have hc : Measurable (fun k : ℕ ↦ (k:ℝ)) := measurable_of_countable _
|
| 166 |
+
have hF : Measurable F := ((measurable_const.mul (hc.comp (defectiveTotalVisits_measurable L c A hE))).exp).ennreal_ofReal
|
| 167 |
+
have hp : ENNReal.ofReal (Real.exp (η*(H*(A.card:ℝ))))≠0 := ne_of_gt (ENNReal.ofReal_pos.mpr (Real.exp_pos _))
|
| 168 |
+
have hm := meas_ge_le_lintegral_div (μ:=μ) hF.aemeasurable hp ENNReal.ofReal_ne_top
|
| 169 |
+
calc
|
| 170 |
+
_ ≤ μ {ω | ENNReal.ofReal (Real.exp (η*(H*(A.card:ℝ))))≤F ω} := by
|
| 171 |
+
apply measure_mono
|
| 172 |
+
intro ω hω
|
| 173 |
+
apply ENNReal.ofReal_le_ofReal
|
| 174 |
+
apply Real.exp_le_exp.mpr
|
| 175 |
+
exact mul_le_mul_of_nonneg_left (joint_visitor_sum L c A E hω) hη
|
| 176 |
+
_ ≤ _ := hm
|
| 177 |
+
_ ≤ ENNReal.ofReal (Real.exp (Q*(A.card:ℝ)))/ENNReal.ofReal (Real.exp (η*(H*(A.card:ℝ)))) := ENNReal.div_le_div_right hmgf _
|
| 178 |
+
_ = _ := by
|
| 179 |
+
rw [←ENNReal.ofReal_div_of_pos (Real.exp_pos _),←Real.exp_sub]
|
| 180 |
+
congr 2
|
| 181 |
+
ring
|
| 182 |
+
|
| 183 |
+
end HardSphere.ShiftVisits
|
| 184 |
+
|
| 185 |
+
end
|
| 186 |
+
end
|
| 187 |
+
|
| 188 |
+
end
|
| 189 |
+
|
| 190 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/ShiftTails.lean
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.PathBounds.ShiftInteracting
|
| 3 |
+
import OAI.Analysis.HardSphere.PathBounds.PhysicalVisitTails
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
|
| 9 |
+
section
|
| 10 |
+
noncomputable section
|
| 11 |
+
open MeasureTheory ProbabilityTheory Set Filter
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
namespace HardSphere.ShiftVisits
|
| 14 |
+
open Wiener PathCutoff BathSlice HardSphere.Lattice CellOrbital HardSphere.FreeVisits
|
| 15 |
+
|
| 16 |
+
theorem ground_excessVisitors_tail :
|
| 17 |
+
∃ αstar : ℝ, 0<αstar ∧ ∀ αmax : ℝ, 0<αmax →
|
| 18 |
+
∃ H : ℝ, 0<H ∧ ∀ (n K : ℕ) [NeZero K] (L : Length), L.val=(K:ℝ) →
|
| 19 |
+
∀ r D : ℝ, D=(n:ℝ)/L.val^3 → 1≤D → αstar≤D*r → D*r≤αmax → 0<r →
|
| 20 |
+
(n:ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 21 |
+
∀ (g : Jet n L), IsGroundVector n L r g → ∀ (x₀ : Torus L) (A : Finset (DiscreteTorus K)) {t : ℝ},
|
| 22 |
+
0<t → t≤2 →
|
| 23 |
+
groundPathLaw n L r t g {ω | ∀v∈A,H*D≤(visitorCount L x₀ Set.univ v ω:ℝ)}≤
|
| 24 |
+
ENNReal.ofReal (Real.exp (-(D*(A.card:ℝ)))) := by
|
| 25 |
+
obtain ⟨Cd,Cf,Cs,α,hCd,hCf,hCs,hα,hm⟩ := interacting_visit_mgf (η₀:=1) (by norm_num)
|
| 26 |
+
refine ⟨α,hα,?_⟩
|
| 27 |
+
intro αmax hαmax
|
| 28 |
+
let B := Real.exp (2*Cd*αmax)*Cf
|
| 29 |
+
have hB : 0<B := by dsimp [B]; positivity
|
| 30 |
+
let η := min 1 B⁻¹
|
| 31 |
+
have hη : 0<η := lt_min (by norm_num) (inv_pos.mpr hB)
|
| 32 |
+
have hη1 : η≤1 := min_le_left _ _
|
| 33 |
+
have hb : B*η≤1 := by
|
| 34 |
+
calc
|
| 35 |
+
B*η≤B*B⁻¹ := mul_le_mul_of_nonneg_left (min_le_right _ _) hB.le
|
| 36 |
+
_ = 1 := mul_inv_cancel₀ hB.ne'
|
| 37 |
+
let H := (Cs+1)/η
|
| 38 |
+
have hH : 0<H := div_pos (by linarith) hη
|
| 39 |
+
refine ⟨H,hH,?_⟩
|
| 40 |
+
intro n K inst L hL r D hDeq hD hαr hαup hr hs g hg x₀ A t ht ht2
|
| 41 |
+
have hD0 : 0≤D := by linarith
|
| 42 |
+
have hxp : t*Cd*D*r≤2*Cd*αmax := by
|
| 43 |
+
calc
|
| 44 |
+
t*Cd*D*r = (t*Cd)*(D*r) := by ring
|
| 45 |
+
_ ≤ (t*Cd)*αmax := mul_le_mul_of_nonneg_left hαup (by positivity)
|
| 46 |
+
_ ≤ (2*Cd)*αmax := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right ht2 hCd.le) hαmax.le
|
| 47 |
+
have hz : Real.exp (t*Cd*D*r)*(Cf*η*(1:ℝ)^(1/3:ℝ))≤1 := by
|
| 48 |
+
simp only [Real.one_rpow,mul_one]
|
| 49 |
+
calc
|
| 50 |
+
_ ≤ Real.exp (2*Cd*αmax)*(Cf*η) := mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr hxp) (by positivity)
|
| 51 |
+
_ = B*η := by dsimp [B]; ring
|
| 52 |
+
_ ≤ 1 := hb
|
| 53 |
+
have hp (y : Torus L) : coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration y)∈(Set.univ : Set (ConfigurationPath 1 L))}≤ENNReal.ofReal 1 := by simp
|
| 54 |
+
have hh := hm n K L hL r D hDeq hD hαr hr hs g hg x₀ A ht ht2 hη.le hη1
|
| 55 |
+
(by norm_num : (0:ℝ)≤1) Set.univ MeasurableSet.univ (fun _ ↦ Iff.rfl) hp hz
|
| 56 |
+
have hj := joint_visitors_markov L x₀ A MeasurableSet.univ (groundPathLaw n L r t g) hη.le hh (H:=H*D)
|
| 57 |
+
apply hj.trans
|
| 58 |
+
apply ENNReal.ofReal_le_ofReal
|
| 59 |
+
apply Real.exp_le_exp.mpr
|
| 60 |
+
rw [←neg_mul]
|
| 61 |
+
apply mul_le_mul_of_nonneg_right _ (Nat.cast_nonneg A.card)
|
| 62 |
+
have hhH : η*H=Cs+1 := mul_div_cancel₀ _ hη.ne'
|
| 63 |
+
have he : Cs*(Real.exp (t*Cd*D*r)*(Cf*η*(1:ℝ)^(1/3:ℝ)))*D≤Cs*D := by
|
| 64 |
+
exact (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hz hCs.le) hD0).trans_eq (by ring)
|
| 65 |
+
change _≤ -D
|
| 66 |
+
nlinarith
|
| 67 |
+
|
| 68 |
+
theorem ground_longVisitors_tail :
|
| 69 |
+
∃ αstar : ℝ, 0<αstar ∧ ∀ αmax θ : ℝ, 0<αmax → 0<θ →
|
| 70 |
+
∃ t₀ : ℝ, 0<t₀ ∧ ∀ (n K : ℕ) [NeZero K] (L : Length), L.val=(K:ℝ) →
|
| 71 |
+
∀ r D : ℝ, D=(n:ℝ)/L.val^3 → 1≤D → αstar≤D*r → D*r≤αmax → 0<r →
|
| 72 |
+
(n:ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 73 |
+
∀ (g : Jet n L), IsGroundVector n L r g → ∀ (x₀ : Torus L) (A : Finset (DiscreteTorus K)) {t : ℝ},
|
| 74 |
+
0<t → t ≤ min 2 t₀ →
|
| 75 |
+
groundPathLaw n L r t g {ω | ∀v∈A,θ*D≤
|
| 76 |
+
(visitorCount L x₀ {p | 1 < intervalDiameter 0 1 p} v ω:ℝ)}≤
|
| 77 |
+
ENNReal.ofReal (Real.exp (-(θ*D/2)*(A.card:ℝ))) := by
|
| 78 |
+
obtain ⟨Cd,Cf,Cs,α,hCd,hCf,hCs,hα,hm⟩ := interacting_visit_mgf (η₀:=1) (by norm_num)
|
| 79 |
+
refine ⟨α,hα,?_⟩
|
| 80 |
+
intro αmax θ hαmax hθ
|
| 81 |
+
let B := Real.exp (2*Cd*αmax)*Cf
|
| 82 |
+
have hB : 0<B := by dsimp [B]; positivity
|
| 83 |
+
let δ := min 1 (θ/(2*Cs))
|
| 84 |
+
have hδ : 0<δ := lt_min (by norm_num) (by positivity)
|
| 85 |
+
let ε := (δ/B)^3
|
| 86 |
+
have hε : 0<ε := by dsimp [ε]; positivity
|
| 87 |
+
have hrp : ε^(1/3:ℝ)=δ/B := by
|
| 88 |
+
simpa [ε] using Real.pow_rpow_inv_natCast (n:=3) (div_pos hδ hB).le (by norm_num : (3:ℕ)≠0)
|
| 89 |
+
obtain ⟨t₀,ht₀,hsmall⟩ := free_long_probability_small hε
|
| 90 |
+
refine ⟨t₀,ht₀,?_⟩
|
| 91 |
+
intro n K inst L hL r D hDeq hD hαr hαup hr hs g hg x₀ A t ht htt
|
| 92 |
+
have ht2 := (le_min_iff.mp htt).1
|
| 93 |
+
have hD0 : 0≤D := by linarith
|
| 94 |
+
have hxp : t*Cd*D*r≤2*Cd*αmax := by
|
| 95 |
+
calc
|
| 96 |
+
t*Cd*D*r = (t*Cd)*(D*r) := by ring
|
| 97 |
+
_ ≤ (t*Cd)*αmax := mul_le_mul_of_nonneg_left hαup (by positivity)
|
| 98 |
+
_ ≤ (2*Cd)*αmax := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right ht2 hCd.le) hαmax.le
|
| 99 |
+
have hzδ : Real.exp (t*Cd*D*r)*(Cf*1*ε^(1/3:ℝ))≤δ := by
|
| 100 |
+
rw [hrp,mul_one]
|
| 101 |
+
calc
|
| 102 |
+
_ ≤ Real.exp (2*Cd*αmax)*(Cf*(δ/B)) := mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr hxp) (by positivity)
|
| 103 |
+
_ = B*(δ/B) := by dsimp [B]; ring
|
| 104 |
+
_ = δ := mul_div_cancel₀ _ hB.ne'
|
| 105 |
+
have hz1 := hzδ.trans (min_le_left 1 (θ/(2*Cs)))
|
| 106 |
+
let E : Set (ConfigurationPath 1 L) := {p | 1 < intervalDiameter 0 1 p}
|
| 107 |
+
have hE : MeasurableSet E := measurableSet_lt measurable_const (intervalDiameter_continuous L 0 1).measurable
|
| 108 |
+
have hrev (p : ConfigurationPath 1 L) : reverseConfigurationPath 1 L p∈E↔p∈E := by
|
| 109 |
+
simp only [E,Set.mem_ofPred_eq,intervalDiameter_reverse,reverseTime_zero,reverseTime_one]
|
| 110 |
+
have hp (y : Torus L) : coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration y)∈E}≤ENNReal.ofReal ε :=
|
| 111 |
+
hsmall L ht (le_min_iff.mp htt).2 y
|
| 112 |
+
have hh := hm n K L hL r D hDeq hD hαr hr hs g hg x₀ A ht ht2 (by norm_num : (0:ℝ)≤1)
|
| 113 |
+
(le_refl 1) hε.le E hE hrev hp hz1
|
| 114 |
+
have hj := joint_visitors_markov L x₀ A hE (groundPathLaw n L r t g) (by norm_num : (0:ℝ)≤1) hh (H:=θ*D)
|
| 115 |
+
apply hj.trans
|
| 116 |
+
apply ENNReal.ofReal_le_ofReal
|
| 117 |
+
apply Real.exp_le_exp.mpr
|
| 118 |
+
apply mul_le_mul_of_nonneg_right _ (Nat.cast_nonneg A.card)
|
| 119 |
+
have hδθ : Cs*δ≤θ/2 := by
|
| 120 |
+
have hh := (le_div_iff₀ (by positivity : 0<(2:ℝ)*Cs)).mp (min_le_right 1 (θ/(2*Cs)))
|
| 121 |
+
dsimp [δ]
|
| 122 |
+
linarith
|
| 123 |
+
have hc := mul_le_mul_of_nonneg_right ((mul_le_mul_of_nonneg_left hzδ hCs.le).trans hδθ) hD0
|
| 124 |
+
nlinarith
|
| 125 |
+
|
| 126 |
+
end HardSphere.ShiftVisits
|
| 127 |
+
|
| 128 |
+
end
|
| 129 |
+
end
|
| 130 |
+
|
| 131 |
+
end
|
| 132 |
+
|
| 133 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/ShiftUniformMGF.lean
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.PathBounds.ShiftInteracting
|
| 3 |
+
import OAI.Analysis.HardSphere.PathBounds.VisitCounts
|
| 4 |
+
import OAI.Analysis.HardSphere.Cutoffs.StandardRegular
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
section
|
| 9 |
+
|
| 10 |
+
section
|
| 11 |
+
noncomputable section
|
| 12 |
+
open MeasureTheory Set Filter
|
| 13 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 14 |
+
namespace HardSphere.ShiftVisits
|
| 15 |
+
open HardSphere.Wiener HardSphere.Lattice HardSphere.CellOrbital HardSphere.BathSlice HardSphere.FreeVisits
|
| 16 |
+
attribute [local irreducible] freeTrajectory
|
| 17 |
+
theorem interacting_visit_mgf_uniform :
|
| 18 |
+
∃ Cdel Csp αstar : ℝ, 0<Cdel ∧ 0<Csp ∧ 0<αstar ∧
|
| 19 |
+
∀ η₀ : ℝ, 0≤η₀ → ∃ Cfree : ℝ, 0<Cfree ∧
|
| 20 |
+
∀ (n K : ℕ) [NeZero K] (L : Length), L.val=(K:ℝ) → ∀ r D : ℝ,
|
| 21 |
+
D=(n:ℝ)/L.val^3 → 1≤D → αstar≤D*r → 0<r →
|
| 22 |
+
(n:ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 23 |
+
∀ (g : Jet n L), IsGroundVector n L r g →
|
| 24 |
+
∀ (c : Torus L) (A : Finset (DiscreteTorus K)) {t η ε : ℝ},
|
| 25 |
+
0<t → t≤2 → 0≤η → η≤η₀ → 0≤ε →
|
| 26 |
+
∀ E : Set (ConfigurationPath 1 L), MeasurableSet E →
|
| 27 |
+
(∀ω,reverseConfigurationPath 1 L ω∈E ↔ ω∈E) →
|
| 28 |
+
(∀ y : Torus L, coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration y)∈E}≤ENNReal.ofReal ε) →
|
| 29 |
+
Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ))≤1 →
|
| 30 |
+
(∫⁻ ω, ENNReal.ofReal (Real.exp (η*(defectiveTotalVisits L c A E ω:ℝ)))
|
| 31 |
+
∂groundPathLaw n L r t g) ≤
|
| 32 |
+
ENNReal.ofReal (Real.exp (Csp*(Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ)))*D*(A.card:ℝ))) := by
|
| 33 |
+
classical
|
| 34 |
+
obtain ⟨Cdel,hCdel,hdel⟩ := ground_product_one_add
|
| 35 |
+
obtain ⟨Csp,αstar,hCsp,hα,hsp⟩ := spatial_count_mgf_enn
|
| 36 |
+
refine ⟨Cdel,Csp,αstar,hCdel,hCsp,hα,?_⟩
|
| 37 |
+
intro η₀ hη₀
|
| 38 |
+
obtain ⟨Cfree,hCfree,hfree⟩ := free_single_defect_bound hη₀
|
| 39 |
+
refine ⟨Cfree,hCfree,?_⟩
|
| 40 |
+
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
|
| 41 |
+
let z := Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ))
|
| 42 |
+
have hz : 0≤z := by positivity
|
| 43 |
+
have hsize : 1≤L.val := by rw [hL]; exact_mod_cast (NeZero.pos K)
|
| 44 |
+
let := hg.groundPathLaw_probability ht.le
|
| 45 |
+
by_cases hA : A.Nonempty
|
| 46 |
+
· let B := A.image (center L c)
|
| 47 |
+
have hB : B.Nonempty := hA.image _
|
| 48 |
+
have hDexp : t*Cdel*(n:ℝ)*r/L.val^3=t*Cdel*D*r := by rw [hDeq]; ring
|
| 49 |
+
calc
|
| 50 |
+
_ = ∫⁻ ω,∏i,(1+singleDefect L c A η E (onePathAt i ω)) ∂groundPathLaw n L r t g :=
|
| 51 |
+
lintegral_congr (exp_defectiveTotalVisits L c A E hη)
|
| 52 |
+
_ ≤ ∫⁻ X,∏i,(1+ENNReal.ofReal (Real.exp (t*Cdel*(n:ℝ)*r/L.val^3))*
|
| 53 |
+
oneFreeExpectation t (singleDefect L c A η E) (X i)) ∂groundPositionLaw n L g :=
|
| 54 |
+
hdel n L r t hr ht hs g hg _ (singleDefect_measurable L c A η hE) (singleDefect_reverse L c A η hrev)
|
| 55 |
+
_ ≤ ∫⁻ X,ENNReal.ofReal (Real.exp (z*weightedSiteCount L B X)) ∂groundPositionLaw n L g := by
|
| 56 |
+
apply lintegral_mono
|
| 57 |
+
intro X
|
| 58 |
+
apply le_trans _ (product_one_add_exp_le L B hB hz X)
|
| 59 |
+
apply Finset.prod_le_prod
|
| 60 |
+
intro i _
|
| 61 |
+
gcongr
|
| 62 |
+
have H := hfree L hL c A ht ht2 hη hη0 hε E hE hprob (X i)
|
| 63 |
+
calc
|
| 64 |
+
_ ≤ ENNReal.ofReal (Real.exp (t*Cdel*(n:ℝ)*r/L.val^3))*
|
| 65 |
+
ENNReal.ofReal (Cfree*η*ε^(1/3:ℝ)*Real.exp (-spatialSiteDistance L B (X i))) := by gcongr
|
| 66 |
+
_ = _ := by rw [←ENNReal.ofReal_mul (Real.exp_nonneg _),hDexp]; congr 1; dsimp [z]; ring
|
| 67 |
+
_ ≤ ENNReal.ofReal (Real.exp (Csp*z*D*(B.card:ℝ))) :=
|
| 68 |
+
hsp n K L hL r D hDeq hD hαr hr hsize hs g hg B z hz hz1
|
| 69 |
+
_ ≤ _ := by
|
| 70 |
+
apply ENNReal.ofReal_le_ofReal
|
| 71 |
+
apply Real.exp_le_exp.mpr
|
| 72 |
+
have hc : (B.card:ℝ)≤(A.card:ℝ) := by exact_mod_cast Finset.card_image_le
|
| 73 |
+
exact mul_le_mul_of_nonneg_left hc (by positivity)
|
| 74 |
+
· have he : A=∅ := Finset.not_nonempty_iff_eq_empty.mp hA
|
| 75 |
+
subst A
|
| 76 |
+
simp [defectiveTotalVisits,pathVisitedSites]
|
| 77 |
+
|
| 78 |
+
end HardSphere.ShiftVisits
|
| 79 |
+
|
| 80 |
+
end
|
| 81 |
+
end
|
| 82 |
+
|
| 83 |
+
section
|
| 84 |
+
noncomputable section
|
| 85 |
+
open MeasureTheory ProbabilityTheory Set Filter
|
| 86 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 87 |
+
namespace HardSphere.ShiftVisits
|
| 88 |
+
open Wiener PathCutoff HardSphere.Lattice HardSphere.FreeVisits
|
| 89 |
+
|
| 90 |
+
theorem ground_regularVisitors_uniform :
|
| 91 |
+
∃ αstar : ℝ, 0 < αstar ∧ ∀ (η : ℝ), 0 < η → ∀ αmax C a b : ℝ,
|
| 92 |
+
0 < αmax → 0 < C → 0 < a → 0 < b →
|
| 93 |
+
∃ D₀ : ℝ, 1 ≤ D₀ ∧ ∀ (n K : ℕ) [NeZero K] (L : Length), L.val=(K:ℝ) →
|
| 94 |
+
∀ r D : ℝ, D=(n:ℝ)/L.val^3 → D₀ ≤ D → αstar ≤ D*r → D*r ≤ αmax → 0 < r →
|
| 95 |
+
(n:ℝ)*(2*Real.pi*r)^3 ≤ L.val^3/2 →
|
| 96 |
+
∀ (g : Jet n L), IsGroundVector n L r g → ∀ (x₀ : Torus L) (A : Finset (DiscreteTorus K))
|
| 97 |
+
(m : ℕ) (τ : ℝ) (_hm : 0 < m) (_hτ : 0 < τ), τ ≤ r^2 →
|
| 98 |
+
a*D^2 ≤ (m:ℝ) → (m:ℝ) ≤ C*D^2 → (m:ℝ)*τ ≤ 2 →
|
| 99 |
+
∀ (hD : 0 < D) (hhT : D⁻¹ < (m:ℝ)*τ),
|
| 100 |
+
groundPathLaw n L r ((m:ℝ)*τ) g {ω | ∀v���A,1 ≤
|
| 101 |
+
(visitorCount L x₀ {p | ¬Regular m r (D^(1/12:ℝ)) (meanCost+1)
|
| 102 |
+
(splitTime D⁻¹ ((m:ℝ)*τ-D⁻¹) (inv_pos.mpr hD) (sub_pos.mpr hhT))
|
| 103 |
+
(b*D^(-(1/3:ℝ))/8) p} v ω:ℝ)} ≤
|
| 104 |
+
ENNReal.ofReal (Real.exp (-(η/2)*(A.card:ℝ))) := by
|
| 105 |
+
obtain ⟨c,M,hc,hM,htail⟩ := wiener_norm_gaussian_tail
|
| 106 |
+
obtain ⟨Cd,Cs,α,hCd,hCs,hα,hmgf⟩ := interacting_visit_mgf_uniform
|
| 107 |
+
refine ⟨α,hα,?_⟩
|
| 108 |
+
intro η hη αmax C a b hαmax hC ha hb
|
| 109 |
+
obtain ⟨Cf,hCf,hm⟩ := hmgf η hη.le
|
| 110 |
+
let ε := fun D : ℝ ↦ scalarRegularBound C (3*M.toReal) c a b D
|
| 111 |
+
let B := Real.exp (2*Cd*αmax)*Cf*η
|
| 112 |
+
have hB : 0 < B := by dsimp [B]; positivity
|
| 113 |
+
let δ := min 1 (η/(2*Cs))
|
| 114 |
+
have hδ : 0 < δ := lt_min (by norm_num) (by positivity)
|
| 115 |
+
have hlim : Tendsto (fun D : ℝ ↦ B*(D*(ε D)^(1/3:ℝ))) atTop (𝓝 0) := by
|
| 116 |
+
simpa using (regular_root_decay hC.le (by positivity : 0 ≤ 3*M.toReal) hc ha hb).const_mul B
|
| 117 |
+
obtain ⟨D₀,hsmall⟩ := (eventually_atTop.1
|
| 118 |
+
((eventually_ge_atTop (1:ℝ)).and (hlim.eventually (gt_mem_nhds hδ))))
|
| 119 |
+
refine ⟨max 1 D₀,le_max_left _ _,?_⟩
|
| 120 |
+
intro n K inst L hL r D hDeq hDD hαr hαup hr hs g hg x₀ A m τ hmpos hτ hτr hmlo hmhi ht2 hD hhT
|
| 121 |
+
have hD1 : 1 ≤ D := (le_max_left _ _).trans hDD
|
| 122 |
+
have hsmallD : B*(D*(ε D)^(1/3:ℝ)) ≤ δ := ((hsmall D ((le_max_right _ _).trans hDD)).2).le
|
| 123 |
+
have hε : 0 ≤ ε D := scalarRegularBound_nonneg hC.le (by positivity) c a b D
|
| 124 |
+
have ht : 0 < (m:ℝ)*τ := mul_pos (Nat.cast_pos.mpr hmpos) hτ
|
| 125 |
+
have hxp : ((m:ℝ)*τ)*Cd*D*r ≤ 2*Cd*αmax := by
|
| 126 |
+
calc
|
| 127 |
+
_ = (((m:ℝ)*τ)*Cd)*(D*r) := by ring
|
| 128 |
+
_ ≤ (((m:ℝ)*τ)*Cd)*αmax := mul_le_mul_of_nonneg_left hαup (by positivity)
|
| 129 |
+
_ ≤ (2*Cd)*αmax := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right ht2 hCd.le) hαmax.le
|
| 130 |
+
let z := Real.exp (((m:ℝ)*τ)*Cd*D*r)*(Cf*η*(ε D)^(1/3:ℝ))
|
| 131 |
+
have hz : 0 ≤ z := by dsimp [z]; positivity
|
| 132 |
+
have hzD : z*D ≤ δ := by
|
| 133 |
+
apply le_trans _ hsmallD
|
| 134 |
+
calc
|
| 135 |
+
_ ≤ Real.exp (2*Cd*αmax)*(Cf*η*(ε D)^(1/3:ℝ))*D := by
|
| 136 |
+
dsimp [z]
|
| 137 |
+
gcongr
|
| 138 |
+
_ = B*(D*(ε D)^(1/3:ℝ)) := by dsimp [B]; ring
|
| 139 |
+
have hz1 : z ≤ 1 := (by nlinarith : z ≤ z*D).trans (hzD.trans (min_le_left _ _))
|
| 140 |
+
let E : Set (ConfigurationPath 1 L) := {p | ¬Regular m r (D^(1/12:ℝ)) (meanCost+1)
|
| 141 |
+
(splitTime D⁻¹ ((m:ℝ)*τ-D⁻¹) (inv_pos.mpr hD) (sub_pos.mpr hhT)) (b*D^(-(1/3:ℝ))/8) p}
|
| 142 |
+
have hE : MeasurableSet E := (regular_measurable _ _ _ _ _ _).compl
|
| 143 |
+
have hrev (p : ConfigurationPath 1 L) : reverseConfigurationPath 1 L p∈E ↔ p∈E :=
|
| 144 |
+
(regular_reverse _ _ _ _ _ _ p).not
|
| 145 |
+
have hp (y : Torus L) : coordinateWiener 1 {w | freeTrajectory 1 L ((m:ℝ)*τ) w (oneConfiguration y)∈E} ≤ ENNReal.ofReal (ε D) :=
|
| 146 |
+
free_regular_standard_tail hM.ne htail hr hτ hτr hc.le hD1 hC.le ha.le hb.le m hmpos hmlo hmhi hhT (oneConfiguration y)
|
| 147 |
+
have hh := hm n K L hL r D hDeq hD1 hαr hr hs g hg x₀ A ht ht2 hη.le (le_refl η) hε E hE hrev hp hz1
|
| 148 |
+
have hj := joint_visitors_markov L x₀ A hE (groundPathLaw n L r ((m:ℝ)*τ) g) hη.le hh (H:=1)
|
| 149 |
+
apply hj.trans
|
| 150 |
+
apply ENNReal.ofReal_le_ofReal
|
| 151 |
+
apply Real.exp_le_exp.mpr
|
| 152 |
+
apply mul_le_mul_of_nonneg_right _ (Nat.cast_nonneg A.card)
|
| 153 |
+
have hδη : Cs*δ ≤ η/2 := by
|
| 154 |
+
have hh := (le_div_iff₀ (by positivity : 0 < (2:ℝ)*Cs)).mp (min_le_right 1 (η/(2*Cs)))
|
| 155 |
+
dsimp [δ]
|
| 156 |
+
linarith
|
| 157 |
+
have hcost := (mul_le_mul_of_nonneg_left hzD hCs.le).trans hδη
|
| 158 |
+
change Cs*z*D-η*1 ≤ -(η/2)
|
| 159 |
+
nlinarith
|
| 160 |
+
|
| 161 |
+
end HardSphere.ShiftVisits
|
| 162 |
+
|
| 163 |
+
end
|
| 164 |
+
end
|
| 165 |
+
|
| 166 |
+
end
|
| 167 |
+
|
| 168 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/SingleVisitDefect.lean
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Geometry.FreePathExpectation
|
| 3 |
+
import OAI.Analysis.HardSphere.PathBounds.FreeVisitTravel
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
|
| 9 |
+
section
|
| 10 |
+
noncomputable section
|
| 11 |
+
open MeasureTheory Set Filter
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
namespace HardSphere.FreeVisits
|
| 14 |
+
open HardSphere.Wiener HardSphere.BathSlice HardSphere.Lattice HardSphere.CellOrbital
|
| 15 |
+
attribute [local irreducible] freeTrajectory pathVisitedSites torusDistance
|
| 16 |
+
|
| 17 |
+
def singleVisitDefect {K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 18 |
+
(η : ℝ) (D : Set (ConfigurationPath 1 L)) (ω : ConfigurationPath 1 L) : ℝ≥0∞ := by
|
| 19 |
+
classical
|
| 20 |
+
exact ENNReal.ofReal (Real.exp (η*(if ω∈D then ((pathVisitedSites L (siteCenter L) A 0 ω).card:ℝ) else 0))-1)
|
| 21 |
+
|
| 22 |
+
lemma singleVisitDefect_measurable {K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 23 |
+
(η : ℝ) {D : Set (ConfigurationPath 1 L)} (hD : MeasurableSet D) :
|
| 24 |
+
Measurable (singleVisitDefect L A η D) := by
|
| 25 |
+
classical
|
| 26 |
+
exact ((measurable_const.mul ((pathVisitedSites_measurable L (siteCenter L) A 0).ite hD measurable_const)).exp.sub
|
| 27 |
+
measurable_const).ennreal_ofReal
|
| 28 |
+
|
| 29 |
+
lemma singleVisitDefect_reverse {K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 30 |
+
(η : ℝ) {D : Set (ConfigurationPath 1 L)}
|
| 31 |
+
(hD : ∀ω,reverseConfigurationPath 1 L ω∈D ↔ ω∈D) (ω : ConfigurationPath 1 L) :
|
| 32 |
+
singleVisitDefect L A η D (reverseConfigurationPath 1 L ω)=singleVisitDefect L A η D ω := by
|
| 33 |
+
classical
|
| 34 |
+
simp only [singleVisitDefect,hD,pathVisitedSites_reverse]
|
| 35 |
+
|
| 36 |
+
lemma free_single_defect_bound {η₀ : ℝ} (hη₀ : 0≤η₀) : ∃ C : ℝ, 0<C ∧
|
| 37 |
+
∀ {K : ℕ} [NeZero K] (L : Length), L.val=(K:ℝ) → ∀ A : Finset (DiscreteTorus K),
|
| 38 |
+
∀ {t η ε : ℝ}, 0<t → t≤2 → 0≤η → η≤η₀ → 0≤ε →
|
| 39 |
+
∀ D : Set (ConfigurationPath 1 L), MeasurableSet D →
|
| 40 |
+
(∀ y : Torus L, coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration y)∈D}≤ENNReal.ofReal ε) →
|
| 41 |
+
∀ y : Torus L,
|
| 42 |
+
oneFreeExpectation t (singleVisitDefect L A η D) y ≤
|
| 43 |
+
ENNReal.ofReal (C*η*ε^(1/3:ℝ)*Real.exp (-spatialSiteDistance L (A.image (siteCenter L)) y)) := by
|
| 44 |
+
classical
|
| 45 |
+
obtain ⟨C,hC,hbound⟩ := free_visit_bound hη₀
|
| 46 |
+
refine ⟨C.toReal+1,by positivity,?_⟩
|
| 47 |
+
intro K _ L hL A t η ε ht ht2 hη hηη hε D hD hprob y
|
| 48 |
+
let E := {w : CoordinatePaths 1 | freeTrajectory 1 L t w (oneConfiguration y)∈D}
|
| 49 |
+
have hE : MeasurableSet E := hD.preimage
|
| 50 |
+
((freeTrajectory_continuous 1 L t).measurable.comp (measurable_id.prodMk measurable_const))
|
| 51 |
+
have H := hbound L hL A 0 ht ht2 hη hηη (oneConfiguration y) E hE (ENNReal.ofReal ε) (hprob y)
|
| 52 |
+
have heq : oneFreeExpectation t (singleVisitDefect L A η D) y =
|
| 53 |
+
∫⁻ w,visitDefect L A 0 t η (oneConfiguration y) E w ∂coordinateWiener 1 := by
|
| 54 |
+
rfl
|
| 55 |
+
rw [heq]
|
| 56 |
+
apply H.trans
|
| 57 |
+
have hC' : C≤ENNReal.ofReal (C.toReal+1) := by
|
| 58 |
+
calc
|
| 59 |
+
C = ENNReal.ofReal C.toReal := (ENNReal.ofReal_toReal hC.ne).symm
|
| 60 |
+
_ ≤ ENNReal.ofReal (C.toReal+1) := ENNReal.ofReal_le_ofReal (by linarith)
|
| 61 |
+
calc
|
| 62 |
+
C*ENNReal.ofReal η*ENNReal.ofReal ε^(1/3:ℝ)*
|
| 63 |
+
ENNReal.ofReal (Real.exp (-visitStartDistance L A 0 (oneConfiguration y))) ≤
|
| 64 |
+
ENNReal.ofReal (C.toReal+1)*ENNReal.ofReal η*ENNReal.ofReal ε^(1/3:ℝ)*
|
| 65 |
+
ENNReal.ofReal (Real.exp (-visitStartDistance L A 0 (oneConfiguration y))) := by gcongr
|
| 66 |
+
_ = _ := by
|
| 67 |
+
rw [ENNReal.ofReal_rpow_of_nonneg hε (show 0≤(1/3:ℝ) by norm_num),
|
| 68 |
+
←ENNReal.ofReal_mul (show 0≤C.toReal+1 by positivity),
|
| 69 |
+
←ENNReal.ofReal_mul (show 0≤(C.toReal+1)*η by positivity),
|
| 70 |
+
←ENNReal.ofReal_mul (show 0≤(C.toReal+1)*η*ε^(1/3:ℝ) by positivity)]
|
| 71 |
+
rfl
|
| 72 |
+
|
| 73 |
+
end HardSphere.FreeVisits
|
| 74 |
+
|
| 75 |
+
end
|
| 76 |
+
end
|
| 77 |
+
|
| 78 |
+
end
|
| 79 |
+
|
| 80 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/UniformVisitMGF.lean
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.PathBounds.VisitCounts
|
| 3 |
+
import OAI.Analysis.HardSphere.Cutoffs.StandardRegular
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
|
| 9 |
+
section
|
| 10 |
+
noncomputable section
|
| 11 |
+
open MeasureTheory Set Filter
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
namespace HardSphere.FreeVisits
|
| 14 |
+
open Wiener HardSphere.BathSlice HardSphere.Lattice HardSphere.CellOrbital
|
| 15 |
+
attribute [local irreducible] freeTrajectory pathVisitedSites torusDistance
|
| 16 |
+
|
| 17 |
+
theorem interacting_visit_mgf_uniform :
|
| 18 |
+
∃ Cdel Csp αstar : ℝ, 0<Cdel ∧ 0<Csp ∧ 0<αstar ∧
|
| 19 |
+
∀ η₀ : ℝ, 0≤η₀ → ∃ Cfree : ℝ, 0<Cfree ∧
|
| 20 |
+
∀ (n K : ℕ) [NeZero K] (L : Length), L.val=(K:ℝ) → ∀ r D : ℝ,
|
| 21 |
+
D=(n:ℝ)/L.val^3 → 1≤D → αstar≤D*r → 0<r →
|
| 22 |
+
(n:ℝ)*(2*Real.pi*r)^3≤L.val^3/2 →
|
| 23 |
+
∀ (g : Jet n L), IsGroundVector n L r g →
|
| 24 |
+
∀ (A : Finset (DiscreteTorus K)) {t η ε : ℝ},
|
| 25 |
+
0<t → t≤2 → 0≤η → η≤η₀ → 0≤ε →
|
| 26 |
+
∀ E : Set (ConfigurationPath 1 L), MeasurableSet E →
|
| 27 |
+
(∀ω,reverseConfigurationPath 1 L ω∈E ↔ ω∈E) →
|
| 28 |
+
(∀ y : Torus L, coordinateWiener 1 {w | freeTrajectory 1 L t w (oneConfiguration y)∈E}≤ENNReal.ofReal ε) →
|
| 29 |
+
Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ))≤1 →
|
| 30 |
+
(∫⁻ ω, ENNReal.ofReal (Real.exp (η*(defectiveTotalVisits L A E ω:ℝ)))
|
| 31 |
+
∂groundPathLaw n L r t g) ≤
|
| 32 |
+
ENNReal.ofReal (Real.exp (Csp*(Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ)))*D*(A.card:ℝ))) := by
|
| 33 |
+
classical
|
| 34 |
+
obtain ⟨Cdel,hCdel,hdel⟩ := ground_product_one_add
|
| 35 |
+
obtain ⟨Csp,αstar,hCsp,hα,hsp⟩ := spatial_count_mgf_enn
|
| 36 |
+
refine ⟨Cdel,Csp,αstar,hCdel,hCsp,hα,?_⟩
|
| 37 |
+
intro η₀ hη₀
|
| 38 |
+
obtain ⟨Cfree,hCfree,hfree⟩ := free_single_defect_bound hη₀
|
| 39 |
+
refine ⟨Cfree,hCfree,?_⟩
|
| 40 |
+
intro n K inst L hL r D hDeq hD hαr hr hs g hg A t η ε ht ht2 hη hη0 hε E hE hrev hprob hz1
|
| 41 |
+
let z := Real.exp (t*Cdel*D*r)*(Cfree*η*ε^(1/3:ℝ))
|
| 42 |
+
have hz : 0≤z := by positivity
|
| 43 |
+
have hsize : 1≤L.val := by rw [hL]; exact_mod_cast (NeZero.pos K)
|
| 44 |
+
let := hg.groundPathLaw_probability ht.le
|
| 45 |
+
by_cases hA : A.Nonempty
|
| 46 |
+
· let B := A.image (siteCenter L)
|
| 47 |
+
have hB : B.Nonempty := hA.image _
|
| 48 |
+
have hDexp : t*Cdel*(n:ℝ)*r/L.val^3=t*Cdel*D*r := by rw [hDeq]; ring
|
| 49 |
+
calc
|
| 50 |
+
_ = ∫⁻ ω,∏i,(1+singleVisitDefect L A η E (onePathAt i ω)) ∂groundPathLaw n L r t g :=
|
| 51 |
+
lintegral_congr (exp_defectiveTotalVisits L A E hη)
|
| 52 |
+
_ ≤ ∫⁻ X,∏i,(1+ENNReal.ofReal (Real.exp (t*Cdel*(n:ℝ)*r/L.val^3))*
|
| 53 |
+
oneFreeExpectation t (singleVisitDefect L A η E) (X i)) ∂groundPositionLaw n L g :=
|
| 54 |
+
hdel n L r t hr ht hs g hg _ (singleVisitDefect_measurable L A η hE) (singleVisitDefect_reverse L A η hrev)
|
| 55 |
+
_ ≤ ∫⁻ X,ENNReal.ofReal (Real.exp (z*weightedSiteCount L B X)) ∂groundPositionLaw n L g := by
|
| 56 |
+
apply lintegral_mono
|
| 57 |
+
intro X
|
| 58 |
+
apply le_trans _ (product_one_add_exp_le L B hB hz X)
|
| 59 |
+
apply Finset.prod_le_prod
|
| 60 |
+
intro i _
|
| 61 |
+
gcongr
|
| 62 |
+
have H := hfree L hL A ht ht2 hη hη0 hε E hE hprob (X i)
|
| 63 |
+
calc
|
| 64 |
+
_ ≤ ENNReal.ofReal (Real.exp (t*Cdel*(n:ℝ)*r/L.val^3))*
|
| 65 |
+
ENNReal.ofReal (Cfree*η*ε^(1/3:ℝ)*Real.exp (-spatialSiteDistance L B (X i))) := by gcongr
|
| 66 |
+
_ = _ := by rw [←ENNReal.ofReal_mul (Real.exp_nonneg _),hDexp]; congr 1; dsimp [z]; ring
|
| 67 |
+
_ ≤ ENNReal.ofReal (Real.exp (Csp*z*D*(B.card:ℝ))) :=
|
| 68 |
+
hsp n K L hL r D hDeq hD hαr hr hsize hs g hg B z hz hz1
|
| 69 |
+
_ ≤ _ := by
|
| 70 |
+
apply ENNReal.ofReal_le_ofReal
|
| 71 |
+
apply Real.exp_le_exp.mpr
|
| 72 |
+
have hc : (B.card:ℝ)≤(A.card:ℝ) := by exact_mod_cast Finset.card_image_le
|
| 73 |
+
exact mul_le_mul_of_nonneg_left hc (by positivity)
|
| 74 |
+
· have he : A=∅ := Finset.not_nonempty_iff_eq_empty.mp hA
|
| 75 |
+
subst A
|
| 76 |
+
simp [defectiveTotalVisits,pathVisitedSites]
|
| 77 |
+
|
| 78 |
+
end HardSphere.FreeVisits
|
| 79 |
+
|
| 80 |
+
end
|
| 81 |
+
end
|
| 82 |
+
|
| 83 |
+
section
|
| 84 |
+
noncomputable section
|
| 85 |
+
open MeasureTheory ProbabilityTheory Set Filter
|
| 86 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 87 |
+
namespace HardSphere.FreeVisits
|
| 88 |
+
open Wiener PathCutoff HardSphere.Lattice
|
| 89 |
+
|
| 90 |
+
theorem ground_regularVisitors_uniform :
|
| 91 |
+
∃ αstar : ℝ, 0 < αstar ∧ ∀ (η : ℝ), 0 < η → ∀ αmax C a b : ℝ,
|
| 92 |
+
0 < αmax → 0 < C → 0 < a → 0 < b →
|
| 93 |
+
∃ D₀ : ℝ, 1 ≤ D₀ ∧ ∀ (n K : ℕ) [NeZero K] (L : Length), L.val=(K:ℝ) →
|
| 94 |
+
∀ r D : ℝ, D=(n:ℝ)/L.val^3 → D₀ ≤ D → αstar ≤ D*r → D*r ≤ αmax → 0 < r →
|
| 95 |
+
(n:ℝ)*(2*Real.pi*r)^3 ≤ L.val^3/2 →
|
| 96 |
+
∀ (g : Jet n L), IsGroundVector n L r g → ∀ (A : Finset (DiscreteTorus K))
|
| 97 |
+
(m : ℕ) (τ : ℝ), 0 < m → 0 < τ → τ ≤ r^2 →
|
| 98 |
+
a*D^2 ≤ (m:ℝ) → (m:ℝ) ≤ C*D^2 → (m:ℝ)*τ ≤ 2 →
|
| 99 |
+
∀ (hD : 0 < D) (hhT : D⁻¹ < (m:ℝ)*τ),
|
| 100 |
+
groundPathLaw n L r ((m:ℝ)*τ) g {ω | ∀v∈A,1 ≤
|
| 101 |
+
(visitorCount L {p | ¬Regular m r (D^(1/12:ℝ)) (meanCost+1)
|
| 102 |
+
(splitTime D⁻¹ ((m:ℝ)*τ-D⁻¹) (inv_pos.mpr hD) (sub_pos.mpr hhT))
|
| 103 |
+
(b*D^(-(1/3:ℝ))/8) p} v ω:ℝ)} ≤
|
| 104 |
+
ENNReal.ofReal (Real.exp (-(η/2)*(A.card:ℝ))) := by
|
| 105 |
+
obtain ⟨c,M,hc,hM,htail⟩ := wiener_norm_gaussian_tail
|
| 106 |
+
obtain ⟨Cd,Cs,α,hCd,hCs,hα,hmgf⟩ := interacting_visit_mgf_uniform
|
| 107 |
+
refine ⟨α,hα,?_⟩
|
| 108 |
+
intro η hη αmax C a b hαmax hC ha hb
|
| 109 |
+
obtain ⟨Cf,hCf,hm⟩ := hmgf η hη.le
|
| 110 |
+
let ε := fun D : ℝ ↦ scalarRegularBound C (3*M.toReal) c a b D
|
| 111 |
+
let B := Real.exp (2*Cd*αmax)*Cf*η
|
| 112 |
+
have hB : 0 < B := by dsimp [B]; positivity
|
| 113 |
+
let δ := min 1 (η/(2*Cs))
|
| 114 |
+
have hδ : 0 < δ := lt_min (by norm_num) (by positivity)
|
| 115 |
+
have hlim : Tendsto (fun D : ℝ ↦ B*(D*(ε D)^(1/3:ℝ))) atTop (𝓝 0) := by
|
| 116 |
+
simpa using (regular_root_decay hC.le (by positivity : 0 ≤ 3*M.toReal) hc ha hb).const_mul B
|
| 117 |
+
obtain ⟨D₀,hsmall⟩ := (eventually_atTop.1
|
| 118 |
+
((eventually_ge_atTop (1:ℝ)).and (hlim.eventually (gt_mem_nhds hδ))))
|
| 119 |
+
refine ⟨max 1 D₀,le_max_left _ _,?_⟩
|
| 120 |
+
intro n K inst L hL r D hDeq hDD hαr hαup hr hs g hg A m τ hmpos hτ hτr hmlo hmhi ht2 hD hhT
|
| 121 |
+
have hD1 : 1 ≤ D := (le_max_left _ _).trans hDD
|
| 122 |
+
have hsmallD : B*(D*(ε D)^(1/3:ℝ)) ≤ δ := ((hsmall D ((le_max_right _ _).trans hDD)).2).le
|
| 123 |
+
have hε : 0 ≤ ε D := scalarRegularBound_nonneg hC.le (by positivity) c a b D
|
| 124 |
+
have ht : 0 < (m:ℝ)*τ := mul_pos (Nat.cast_pos.mpr hmpos) hτ
|
| 125 |
+
have hxp : ((m:ℝ)*τ)*Cd*D*r ≤ 2*Cd*αmax := by
|
| 126 |
+
calc
|
| 127 |
+
_ = (((m:ℝ)*τ)*Cd)*(D*r) := by ring
|
| 128 |
+
_ ≤ (((m:ℝ)*τ)*Cd)*αmax := mul_le_mul_of_nonneg_left hαup (by positivity)
|
| 129 |
+
_ ≤ (2*Cd)*αmax := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right ht2 hCd.le) hαmax.le
|
| 130 |
+
let z := Real.exp (((m:ℝ)*τ)*Cd*D*r)*(Cf*η*(ε D)^(1/3:ℝ))
|
| 131 |
+
have hz : 0 ≤ z := by dsimp [z]; positivity
|
| 132 |
+
have hzD : z*D ≤ δ := by
|
| 133 |
+
apply le_trans _ hsmallD
|
| 134 |
+
calc
|
| 135 |
+
_ ≤ Real.exp (2*Cd*αmax)*(Cf*η*(ε D)^(1/3:ℝ))*D := by
|
| 136 |
+
dsimp [z]
|
| 137 |
+
gcongr
|
| 138 |
+
_ = B*(D*(ε D)^(1/3:ℝ)) := by dsimp [B]; ring
|
| 139 |
+
have hz1 : z ≤ 1 := (by nlinarith : z ≤ z*D).trans (hzD.trans (min_le_left _ _))
|
| 140 |
+
let E : Set (ConfigurationPath 1 L) := {p | ¬Regular m r (D^(1/12:ℝ)) (meanCost+1)
|
| 141 |
+
(splitTime D⁻¹ ((m:ℝ)*τ-D⁻¹) (inv_pos.mpr hD) (sub_pos.mpr hhT)) (b*D^(-(1/3:ℝ))/8) p}
|
| 142 |
+
have hE : MeasurableSet E := (regular_measurable _ _ _ _ _ _).compl
|
| 143 |
+
have hrev (p : ConfigurationPath 1 L) : reverseConfigurationPath 1 L p∈E ↔ p∈E :=
|
| 144 |
+
(regular_reverse _ _ _ _ _ _ p).not
|
| 145 |
+
have hp (y : Torus L) : coordinateWiener 1 {w | freeTrajectory 1 L ((m:ℝ)*τ) w (oneConfiguration y)∈E} ≤ ENNReal.ofReal (ε D) :=
|
| 146 |
+
free_regular_standard_tail hM.ne htail hr hτ hτr hc.le hD1 hC.le ha.le hb.le m hmpos hmlo hmhi hhT (oneConfiguration y)
|
| 147 |
+
have hh := hm n K L hL r D hDeq hD1 hαr hr hs g hg A ht ht2 hη.le (le_refl η) hε E hE hrev hp hz1
|
| 148 |
+
have hj := joint_visitors_markov L A hE (groundPathLaw n L r ((m:ℝ)*τ) g) hη.le hh (H:=1)
|
| 149 |
+
apply hj.trans
|
| 150 |
+
apply ENNReal.ofReal_le_ofReal
|
| 151 |
+
apply Real.exp_le_exp.mpr
|
| 152 |
+
apply mul_le_mul_of_nonneg_right _ (Nat.cast_nonneg A.card)
|
| 153 |
+
have hδη : Cs*δ ≤ η/2 := by
|
| 154 |
+
have hh := (le_div_iff₀ (by positivity : 0 < (2:ℝ)*Cs)).mp (min_le_right 1 (η/(2*Cs)))
|
| 155 |
+
dsimp [δ]
|
| 156 |
+
linarith
|
| 157 |
+
have hcost := (mul_le_mul_of_nonneg_left hzD hCs.le).trans hδη
|
| 158 |
+
change Cs*z*D-η*1 ≤ -(η/2)
|
| 159 |
+
nlinarith
|
| 160 |
+
|
| 161 |
+
end HardSphere.FreeVisits
|
| 162 |
+
|
| 163 |
+
end
|
| 164 |
+
end
|
| 165 |
+
|
| 166 |
+
end
|
| 167 |
+
|
| 168 |
+
end OAI
|
lean/OAI/Analysis/HardSphere/PathBounds/VisitCounts.lean
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib
|
| 2 |
+
import OAI.Analysis.HardSphere.Allocation.Allocation
|
| 3 |
+
import OAI.Analysis.HardSphere.PathBounds.InteractingVisits
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
section
|
| 8 |
+
|
| 9 |
+
section
|
| 10 |
+
noncomputable section
|
| 11 |
+
open MeasureTheory ProbabilityTheory Set Filter
|
| 12 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 13 |
+
namespace HardSphere.FreeVisits
|
| 14 |
+
open HardSphere.Wiener HardSphere.BathSlice HardSphere.Lattice HardSphere.CellOrbital
|
| 15 |
+
|
| 16 |
+
def visitorCount {n K : ℕ} (L : Length) (E : Set (ConfigurationPath 1 L))
|
| 17 |
+
(v : DiscreteTorus K) (ω : ConfigurationPath n L) : ℕ := by
|
| 18 |
+
classical
|
| 19 |
+
exact (Finset.univ.filter (fun i : Fin n ↦ onePathAt i ω∈E ∧ pathVisitsBall L 12 (siteCenter L v) i ω)).card
|
| 20 |
+
|
| 21 |
+
lemma visitorCount_sum {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 22 |
+
(E : Set (ConfigurationPath 1 L)) (ω : ConfigurationPath n L) :
|
| 23 |
+
(∑v∈A,visitorCount L E v ω)=defectiveTotalVisits L A E ω := by
|
| 24 |
+
classical
|
| 25 |
+
simp only [visitorCount,Finset.card_filter]
|
| 26 |
+
rw [Finset.sum_comm]
|
| 27 |
+
apply Finset.sum_congr rfl
|
| 28 |
+
intro i _
|
| 29 |
+
by_cases hi : onePathAt i ω∈E
|
| 30 |
+
· simp only [hi,true_and,pathVisitedSites,ite_eq_left,Finset.card_filter]
|
| 31 |
+
· simp only [hi,false_and,ite_false,Finset.sum_const_zero,pathVisitedSites]
|
| 32 |
+
|
| 33 |
+
lemma visitorCount_measurable {n K : ℕ} (L : Length) {E : Set (ConfigurationPath 1 L)}
|
| 34 |
+
(hE : MeasurableSet E) (v : DiscreteTorus K) : Measurable (visitorCount (n:=n) L E v) := by
|
| 35 |
+
classical
|
| 36 |
+
have he : visitorCount (n:=n) L E v=(fun ω ↦ ∑i : Fin n, if onePathAt i ω∈E ∧ pathVisitsBall L 12 (siteCenter L v) i ω then (1:ℕ) else 0) := by
|
| 37 |
+
funext ω
|
| 38 |
+
simp only [visitorCount,Finset.card_filter]
|
| 39 |
+
rw [he]
|
| 40 |
+
apply Finset.measurable_fun_sum
|
| 41 |
+
intro i _
|
| 42 |
+
have hi : MeasurableSet {ω : ConfigurationPath n L | onePathAt i ω∈E} := hE.preimage (onePathAt_continuous i).measurable
|
| 43 |
+
exact measurable_const.ite (hi.inter (pathVisitsBall_isClosed L 12 (siteCenter L v) i).measurableSet) measurable_const
|
| 44 |
+
|
| 45 |
+
lemma defectiveTotalVisits_measurable {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 46 |
+
{E : Set (ConfigurationPath 1 L)} (hE : MeasurableSet E) : Measurable (defectiveTotalVisits (n:=n) L A E) := by
|
| 47 |
+
have he : defectiveTotalVisits (n:=n) L A E=fun ω ↦ ∑v∈A,visitorCount L E v ω := by
|
| 48 |
+
funext ω; exact (visitorCount_sum L A E ω).symm
|
| 49 |
+
rw [he]
|
| 50 |
+
exact Finset.measurable_fun_sum _ (fun v _ ↦ visitorCount_measurable L hE v)
|
| 51 |
+
|
| 52 |
+
lemma joint_visitor_sum {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 53 |
+
(E : Set (ConfigurationPath 1 L)) {H : ℝ} {ω : ConfigurationPath n L}
|
| 54 |
+
(h : ∀v∈A,H≤(visitorCount L E v ω:ℝ)) :
|
| 55 |
+
H*(A.card:ℝ)≤(defectiveTotalVisits L A E ω:ℝ) := by
|
| 56 |
+
rw [←visitorCount_sum L A E ω,Nat.cast_sum]
|
| 57 |
+
have hs := Finset.sum_le_sum h
|
| 58 |
+
simpa only [Finset.sum_const,nsmul_eq_mul,mul_comm] using hs
|
| 59 |
+
|
| 60 |
+
lemma joint_visitors_markov {n K : ℕ} (L : Length) (A : Finset (DiscreteTorus K))
|
| 61 |
+
{E : Set (ConfigurationPath 1 L)} (hE : MeasurableSet E)
|
| 62 |
+
(μ : Measure (ConfigurationPath n L)) {η H Q : ℝ} (hη : 0≤η)
|
| 63 |
+
(hmgf : (∫⁻ω,ENNReal.ofReal (Real.exp (η*(defectiveTotalVisits L A E ω:ℝ))) ∂μ)≤
|
| 64 |
+
ENNReal.ofReal (Real.exp (Q*(A.card:ℝ)))) :
|
| 65 |
+
μ {ω | ∀v∈A,H≤(visitorCount L E v ω:ℝ)}≤ENNReal.ofReal (Real.exp ((Q-η*H)*(A.card:ℝ))) := by
|
| 66 |
+
let F := fun ω : ConfigurationPath n L ↦ ENNReal.ofReal (Real.exp (η*(defectiveTotalVisits L A E ω:ℝ)))
|
| 67 |
+
have hc : Measurable (fun k : ℕ ↦ (k:ℝ)) := measurable_of_countable _
|
| 68 |
+
have hF : Measurable F := ((measurable_const.mul (hc.comp (defectiveTotalVisits_measurable L A hE))).exp).ennreal_ofReal
|
| 69 |
+
have hp : ENNReal.ofReal (Real.exp (η*(H*(A.card:ℝ))))≠0 := ne_of_gt (ENNReal.ofReal_pos.mpr (Real.exp_pos _))
|
| 70 |
+
have hm := meas_ge_le_lintegral_div (μ:=μ) hF.aemeasurable hp ENNReal.ofReal_ne_top
|
| 71 |
+
calc
|
| 72 |
+
_ ≤ μ {ω | ENNReal.ofReal (Real.exp (η*(H*(A.card:ℝ))))≤F ω} := by
|
| 73 |
+
apply measure_mono
|
| 74 |
+
intro ω hω
|
| 75 |
+
apply ENNReal.ofReal_le_ofReal
|
| 76 |
+
apply Real.exp_le_exp.mpr
|
| 77 |
+
exact mul_le_mul_of_nonneg_left (joint_visitor_sum L A E hω) hη
|
| 78 |
+
_ ≤ _ := hm
|
| 79 |
+
_ ≤ ENNReal.ofReal (Real.exp (Q*(A.card:ℝ)))/ENNReal.ofReal (Real.exp (η*(H*(A.card:ℝ)))) := ENNReal.div_le_div_right hmgf _
|
| 80 |
+
_ = _ := by
|
| 81 |
+
rw [←ENNReal.ofReal_div_of_pos (Real.exp_pos _),←Real.exp_sub]
|
| 82 |
+
congr 2
|
| 83 |
+
ring
|
| 84 |
+
|
| 85 |
+
end HardSphere.FreeVisits
|
| 86 |
+
|
| 87 |
+
end
|
| 88 |
+
end
|
| 89 |
+
|
| 90 |
+
section
|
| 91 |
+
noncomputable section
|
| 92 |
+
open MeasureTheory ProbabilityTheory Set
|
| 93 |
+
open scoped ENNReal NNReal Topology BigOperators
|
| 94 |
+
namespace HardSphere.Groups
|
| 95 |
+
open Wiener CellOrbital PathCutoff FreeVisits
|
| 96 |
+
attribute [local instance] Classical.propDecidable
|
| 97 |
+
|
| 98 |
+
lemma centeredCell_distance {L : Length} {c x : Torus L} (hx : x∈centeredCell L c) :
|
| 99 |
+
torusDistance L x c≤1 := by
|
| 100 |
+
have hd (j : Fin 3) : dist (x j) (c j)≤(1/2:ℝ) := by
|
| 101 |
+
rw [dist_eq_norm,←centered_rep_abs]
|
| 102 |
+
exact abs_le.mpr ⟨by linarith [(hx j).1], (hx j).2.le⟩
|
| 103 |
+
unfold torusDistance
|
| 104 |
+
apply Real.sqrt_le_one.mpr
|
| 105 |
+
calc
|
| 106 |
+
_ ≤ ∑ _j : Fin 3,(1/4:ℝ) := Finset.sum_le_sum (fun j _ ↦ by nlinarith [dist_nonneg (x:=x j) (y:=c j),hd j])
|
| 107 |
+
_ ≤ 1 := by norm_num
|
| 108 |
+
|
| 109 |
+
@[simp] lemma intervalTime_zero_one (s : Time) : intervalTime 0 1 s=s := by
|
| 110 |
+
apply Subtype.ext
|
| 111 |
+
simp [intervalTime]
|
| 112 |
+
|
| 113 |
+
lemma smallDiameter_distance {L : Length} (ω : ConfigurationPath 1 L)
|
| 114 |
+
(h : intervalDiameter 0 1 ω≤1) (s q : Time) : torusDistance L (ω s 0) (ω q 0)≤1 := by
|
| 115 |
+
have hh := (intervalDistance_le 0 1 s q ω).trans h
|
| 116 |
+
simpa only [intervalTime_zero_one] using hh
|
| 117 |
+
|
| 118 |
+
def longVisitors {N : ℕ} {L : Length} (c : Torus L) (ω : ConfigurationPath N L) : Finset (Fin N) :=
|
| 119 |
+
Finset.univ.filter (fun i ↦ pathVisitsBall L 12 c i ω ∧ 1 < intervalDiameter 0 1 (onePathAt i ω))
|
| 120 |
+
|
| 121 |
+
def visitors {N : ℕ} {L : Length} (c : Torus L) (ω : ConfigurationPath N L) : Finset (Fin N) :=
|
| 122 |
+
Finset.univ.filter (fun i ↦ pathVisitsBall L 12 c i ω)
|
| 123 |
+
|
| 124 |
+
structure Certificate {N K : ℕ} [Nontrivial (Fin N)] {L : Length}
|
| 125 |
+
(m : ℕ) (r R C S s₀ ell θ H D : ℝ) (u : Time) (v : Fin 3→Fin K)
|
| 126 |
+
(ω : ConfigurationPath N L) : Prop where
|
| 127 |
+
low : ell*D≤(centeredCount L (gridCenter L v) (ω 0):ℝ)
|
| 128 |
+
closeY : ((localCloseLabels L s₀ (gridCenter L v) (ω 0)).card:ℝ)<θ*D
|
| 129 |
+
closeZ : ((localCloseLabels L s₀ (gridCenter L v) (ω 1)).card:ℝ)<θ*D
|
| 130 |
+
visit : ((visitors (gridCenter L v) ω).card:ℝ)≤H*D
|
| 131 |
+
regular : ∀i,pathVisitsBall L 12 (gridCenter L v) i ω→Regular m r R C u S (onePathAt i ω)
|
| 132 |
+
long : ((longVisitors (gridCenter L v) ω).card:ℝ)<θ*D
|
| 133 |
+
|
| 134 |
+
lemma eligible_of_not_discarded {N K : ℕ} [Nontrivial (Fin N)] {L : Length}
|
| 135 |
+
(m : ℕ) (r R C S s₀ : ℝ) (u : Time) (v : Fin 3→Fin K) (ω : ConfigurationPath N L)
|
| 136 |
+
(hreg : ∀i,pathVisitsBall L 12 (gridCenter L v) i ω→Regular m r R C u S (onePathAt i ω))
|
| 137 |
+
(i : Fin N) (hy : ω 0 i∈centeredCell L (gridCenter L v))
|
| 138 |
+
(hY : i∉localCloseLabels L s₀ (gridCenter L v) (ω 0))
|
| 139 |
+
(hZ : i∉localCloseLabels L s₀ (gridCenter L v) (ω 1))
|
| 140 |
+
(hshort : i∉longVisitors (gridCenter L v) ω) : Eligible m r R C S s₀ u v i ω := by
|
| 141 |
+
have hyc := centeredCell_distance hy
|
| 142 |
+
have hv : pathVisitsBall L 12 (gridCenter L v) i ω := ⟨0,by linarith⟩
|
| 143 |
+
have hsmall : intervalDiameter 0 1 (onePathAt i ω)≤1 := by
|
| 144 |
+
by_contra! h
|
| 145 |
+
exact hshort (Finset.mem_filter.mpr ⟨Finset.mem_univ _,hv,h⟩)
|
| 146 |
+
have hd (s : Time) : torusDistance L (ω s i) (ω 0 i)≤1 := smallDiameter_distance (onePathAt i ω) hsmall s 0
|
| 147 |
+
have hc (s : Time) : torusDistance L (ω s i) (gridCenter L v)≤2 := by
|
| 148 |
+
have hh := torusDistance_triangle' L (ω s i) (ω 0 i) (gridCenter L v)
|
| 149 |
+
linarith [hd s]
|
| 150 |
+
have hNY : s₀<nearestParticleDistance L (ω 0) i := by
|
| 151 |
+
by_contra! hh
|
| 152 |
+
apply hY
|
| 153 |
+
exact Finset.mem_filter.mpr ⟨Finset.mem_univ _,by linarith,hh⟩
|
| 154 |
+
have hNZ : s₀<nearestParticleDistance L (ω 1) i := by
|
| 155 |
+
by_contra! hh
|
| 156 |
+
apply hZ
|
| 157 |
+
exact Finset.mem_filter.mpr ⟨Finset.mem_univ _,by linarith [hc 1],hh⟩
|
| 158 |
+
refine ⟨⟨hy,by linarith [hc 1],?_⟩,hreg i hv,?_⟩
|
| 159 |
+
· intro j hji
|
| 160 |
+
exact ⟨hNY.trans_le (nearestParticleDistance_le L (ω 0) i j hji),
|
| 161 |
+
hNZ.trans_le (nearestParticleDistance_le L (ω 1) i j hji)⟩
|
| 162 |
+
· intro s
|
| 163 |
+
exact (hc s).trans (by norm_num)
|
| 164 |
+
|
| 165 |
+
lemma certificate_eligible_count {N K : ℕ} [Nontrivial (Fin N)] {L : Length}
|
| 166 |
+
(m : ℕ) (r R C S s₀ ell θ H D : ℝ) (u : Time) (v : Fin 3→Fin K)
|
| 167 |
+
(ω : ConfigurationPath N L) (h : Certificate m r R C S s₀ ell θ H D u v ω) :
|
| 168 |
+
(ell-3*θ)*D≤((eligibleList m r R C S s₀ u v ω).card:ℝ) := by
|
| 169 |
+
let E := eligibleList m r R C S s₀ u v ω
|
| 170 |
+
let A := localCloseLabels L s₀ (gridCenter L v) (ω 0)
|
| 171 |
+
let B := localCloseLabels L s₀ (gridCenter L v) (ω 1)
|
| 172 |
+
let T := longVisitors (gridCenter L v) ω
|
| 173 |
+
have hsub : Finset.univ.filter (fun i ↦ ω 0 i∈centeredCell L (gridCenter L v))⊆((E∪A)∪B)∪T := by
|
| 174 |
+
intro i hi
|
| 175 |
+
by_cases he : i∈E
|
| 176 |
+
· simp [he]
|
| 177 |
+
by_cases ha : i∈A
|
| 178 |
+
· simp [ha]
|
| 179 |
+
by_cases hb : i∈B
|
| 180 |
+
· simp [hb]
|
| 181 |
+
by_cases ht : i∈T
|
| 182 |
+
· simp [ht]
|
| 183 |
+
exfalso
|
| 184 |
+
exact he (Finset.mem_filter.mpr ⟨Finset.mem_univ _,eligible_of_not_discarded m r R C S s₀ u v ω
|
| 185 |
+
h.regular i (Finset.mem_filter.mp hi).2 ha hb ht⟩)
|
| 186 |
+
have hcard : centeredCount L (gridCenter L v) (ω 0)≤E.card+A.card+B.card+T.card := by
|
| 187 |
+
apply (Finset.card_le_card hsub).trans
|
| 188 |
+
exact (Finset.card_union_le _ _).trans (Nat.add_le_add_right
|
| 189 |
+
((Finset.card_union_le _ _).trans (Nat.add_le_add_right (Finset.card_union_le _ _) _)) _)
|
| 190 |
+
have hc : (centeredCount L (gridCenter L v) (ω 0):ℝ)≤(E.card:ℝ)+(A.card:ℝ)+(B.card:ℝ)+(T.card:ℝ) := by exact_mod_cast hcard
|
| 191 |
+
have h1 := h.low
|
| 192 |
+
have h2 := h.closeY
|
| 193 |
+
have h3 := h.closeZ
|
| 194 |
+
have h4 := h.long
|
| 195 |
+
change _≤(E.card:ℝ)
|
| 196 |
+
change (A.card:ℝ)<θ*D at h2
|
| 197 |
+
change (B.card:ℝ)<θ*D at h3
|
| 198 |
+
change (T.card:ℝ)<θ*D at h4
|
| 199 |
+
nlinarith
|
| 200 |
+
|
| 201 |
+
end HardSphere.Groups
|
| 202 |
+
|
| 203 |
+
end
|
| 204 |
+
end
|
| 205 |
+
|
| 206 |
+
end
|
| 207 |
+
|
| 208 |
+
end OAI
|