Add lean source and binary files (part 71)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- lean/OAI/Geometry/NodalSets/Waves/GaussianFactorBound.lean +64 -0
- lean/OAI/Geometry/NodalSets/Waves/GaussianFactorTwoSided.lean +40 -0
- lean/OAI/Geometry/NodalSets/Waves/GaussianGradientSupremum.lean +99 -0
- lean/OAI/Geometry/NodalSets/Waves/GaussianIntervalBound.lean +38 -0
- lean/OAI/Geometry/NodalSets/Waves/GaussianJet.lean +91 -0
- lean/OAI/Geometry/NodalSets/Waves/GaussianPairCovariance.lean +51 -0
- lean/OAI/Geometry/NodalSets/Waves/GaussianPairMoments.lean +50 -0
- lean/OAI/Geometry/NodalSets/Waves/GaussianPartialMeasurability.lean +39 -0
- lean/OAI/Geometry/NodalSets/Waves/GaussianTailBound.lean +56 -0
- lean/OAI/Geometry/NodalSets/Waves/GaussianUniformBall.lean +84 -0
- lean/OAI/Geometry/NodalSets/Waves/GaussianWaveJet.lean +58 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeActualDerivativeEnergy.lean +74 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeActualTwoPoint.lean +73 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeCount.lean +75 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeCovariance.lean +60 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeCovariance2.lean +70 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeDerivativeMoments.lean +63 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeDerivativeTail.lean +75 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeDirectionalCenters.lean +49 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeEnergyLowerBound.lean +152 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeFieldBounds.lean +64 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeFrequencyAnnulus.lean +39 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeFullPlaneWaveApprox.lean +72 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeGaussianSmallBall.lean +81 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeGeometry.lean +74 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeGoodEvent.lean +58 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeGradientExpectation.lean +48 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeLogJets.lean +44 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeMainLogJets.lean +66 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeNeighborhoodJets.lean +76 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeNetSmallBall.lean +79 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeNonmainDecay.lean +72 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeNormalizedWeights.lean +94 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticePhysicalSignSubballs.lean +71 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticePlaneWaveEnergy.lean +90 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticePlaneWaveJets.lean +73 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeProbabilityRates.lean +65 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeSignMargin.lean +82 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeSignSubballs.lean +78 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeSignValueBounds.lean +57 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeSourceWaves.lean +82 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeSphereExtension.lean +46 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeSuccessfulPacking.lean +95 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeTwoPointCovariance.lean +57 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeTwoPointGap.lean +80 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeValueVariance.lean +45 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeVarianceComparison.lean +84 -0
- lean/OAI/Geometry/NodalSets/Waves/LatticeVarianceUpper.lean +87 -0
- lean/OAI/Geometry/NodalSets/Waves/LocalCompactWaves.lean +82 -0
- lean/OAI/Geometry/NodalSets/Waves/LocalCovarianceGeometry.lean +53 -0
lean/OAI/Geometry/NodalSets/Waves/GaussianFactorBound.lean
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib.Analysis.Normed.Module.FiniteDimension
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.GaussianFactor
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Probability
|
| 7 |
+
open MeasureTheory ProbabilityTheory
|
| 8 |
+
open scoped RealInnerProductSpace
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {ι : Type*} [Fintype ι] [DecidableEq ι]
|
| 11 |
+
variable {F : Type*} [NormedAddCommGroup F] [InnerProductSpace ℝ F]
|
| 12 |
+
[FiniteDimensional ℝ F]
|
| 13 |
+
local notation "E" => EuclideanSpace ℝ ι
|
| 14 |
+
|
| 15 |
+
lemma covarianceFactor_norm_sq (T : F →L[ℝ] E) (v : E) :
|
| 16 |
+
‖covarianceFactor T v‖^2 = ‖T.adjoint v‖^2 := by
|
| 17 |
+
simpa only [real_inner_self_eq_norm_sq] using covarianceFactor_inner T v v
|
| 18 |
+
|
| 19 |
+
lemma covarianceFactor_lower (T : F →L[ℝ] E) (a : ℝ) (ha : 0 < a)
|
| 20 |
+
(h : ∀ v : E, a*‖v‖^2 ≤ ‖T.adjoint v‖^2) (v : E) :
|
| 21 |
+
Real.sqrt a * ‖v‖ ≤ ‖covarianceFactor T v‖ := by
|
| 22 |
+
have hs := Real.sq_sqrt ha.le
|
| 23 |
+
have hb := h v
|
| 24 |
+
rw [← covarianceFactor_norm_sq T v] at hb
|
| 25 |
+
nlinarith [sq_nonneg (Real.sqrt a*‖v‖-‖covarianceFactor T v‖),
|
| 26 |
+
norm_nonneg (covarianceFactor T v), norm_nonneg v, Real.sqrt_nonneg a]
|
| 27 |
+
|
| 28 |
+
lemma covarianceFactor_bijective (T : F →L[ℝ] E) (a : ℝ) (ha : 0 < a)
|
| 29 |
+
(h : ∀ v : E, a*‖v‖^2 ≤ ‖T.adjoint v‖^2) :
|
| 30 |
+
Function.Bijective (covarianceFactor T) := by
|
| 31 |
+
have hi : Function.Injective (covarianceFactor T) := by
|
| 32 |
+
apply (covarianceFactor T).ker_eq_bot.mp
|
| 33 |
+
rw [LinearMap.ker_eq_bot']
|
| 34 |
+
intro v hv
|
| 35 |
+
change covarianceFactor T v = 0 at hv
|
| 36 |
+
have hb := covarianceFactor_lower T a ha h v
|
| 37 |
+
rw [hv,norm_zero] at hb
|
| 38 |
+
have hz : ‖v‖ = 0 := by nlinarith [Real.sqrt_pos.mpr ha, norm_nonneg v]
|
| 39 |
+
exact norm_eq_zero.mp hz
|
| 40 |
+
exact ⟨hi, LinearMap.injective_iff_surjective.mp hi⟩
|
| 41 |
+
|
| 42 |
+
variable [MeasurableSpace F] [BorelSpace F]
|
| 43 |
+
|
| 44 |
+
lemma exists_gaussian_factor_equiv (T : F →L[ℝ] E) (a : ℝ) (ha : 0 < a)
|
| 45 |
+
(h : ∀ v : E, a*‖v‖^2 ≤ ‖T.adjoint v‖^2) :
|
| 46 |
+
∃ L : E ≃L[ℝ] E,
|
| 47 |
+
(stdGaussian F).map T = (stdGaussian E).map L ∧
|
| 48 |
+
‖L.symm.toContinuousLinearMap‖ ≤ (Real.sqrt a)⁻¹ := by
|
| 49 |
+
let L := (LinearEquiv.ofBijective (covarianceFactor T).toLinearMap
|
| 50 |
+
(covarianceFactor_bijective T a ha h)).toContinuousLinearEquiv
|
| 51 |
+
refine ⟨L, gaussian_covariance_factorization T, ?_⟩
|
| 52 |
+
apply ContinuousLinearMap.opNorm_le_bound _ (by positivity)
|
| 53 |
+
intro v
|
| 54 |
+
have hb := covarianceFactor_lower T a ha h (L.symm v)
|
| 55 |
+
change Real.sqrt a*‖L.symm v‖ ≤ ‖L (L.symm v)‖ at hb
|
| 56 |
+
rw [L.apply_symm_apply] at hb
|
| 57 |
+
change ‖L.symm v‖ ≤ _
|
| 58 |
+
rw [inv_mul_eq_div]
|
| 59 |
+
exact (le_div_iff₀ (Real.sqrt_pos.mpr ha)).mpr (by simpa [mul_comm] using hb)
|
| 60 |
+
|
| 61 |
+
end
|
| 62 |
+
end Yau.Probability
|
| 63 |
+
|
| 64 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/GaussianFactorTwoSided.lean
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.GaussianFactorBound
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
namespace Yau.Probability
|
| 6 |
+
open MeasureTheory ProbabilityTheory
|
| 7 |
+
noncomputable section
|
| 8 |
+
variable {ι : Type*} [Fintype ι] [DecidableEq ι]
|
| 9 |
+
variable {F : Type*} [NormedAddCommGroup F] [InnerProductSpace ℝ F]
|
| 10 |
+
[FiniteDimensional ℝ F] [MeasurableSpace F] [BorelSpace F]
|
| 11 |
+
local notation "E" => EuclideanSpace ℝ ι
|
| 12 |
+
|
| 13 |
+
lemma exists_gaussian_factor_two_sided (T : F →L[ℝ] E) (a B : ℝ)
|
| 14 |
+
(ha : 0 < a) (hB : 0 ≤ B)
|
| 15 |
+
(hlo : ∀ v : E, a*‖v‖^2 ≤ ‖T.adjoint v‖^2)
|
| 16 |
+
(hhi : ∀ v : E, ‖T.adjoint v‖^2 ≤ B^2*‖v‖^2) :
|
| 17 |
+
∃ L : E ≃L[ℝ] E,
|
| 18 |
+
(stdGaussian F).map T = (stdGaussian E).map L ∧
|
| 19 |
+
‖L.symm.toContinuousLinearMap‖ ≤ (Real.sqrt a)⁻¹ ∧ ‖L.toContinuousLinearMap‖ ≤ B := by
|
| 20 |
+
let L := (LinearEquiv.ofBijective (covarianceFactor T).toLinearMap
|
| 21 |
+
(covarianceFactor_bijective T a ha hlo)).toContinuousLinearEquiv
|
| 22 |
+
refine ⟨L,gaussian_covariance_factorization T,?_,?_⟩
|
| 23 |
+
· apply ContinuousLinearMap.opNorm_le_bound _ (by positivity)
|
| 24 |
+
intro v
|
| 25 |
+
have hb := covarianceFactor_lower T a ha hlo (L.symm v)
|
| 26 |
+
change Real.sqrt a*‖L.symm v‖ ≤ ‖L (L.symm v)‖ at hb
|
| 27 |
+
rw [L.apply_symm_apply] at hb
|
| 28 |
+
rw [inv_mul_eq_div]
|
| 29 |
+
exact (le_div_iff₀ (Real.sqrt_pos.mpr ha)).mpr (by simpa [mul_comm] using hb)
|
| 30 |
+
· apply ContinuousLinearMap.opNorm_le_bound _ hB
|
| 31 |
+
intro v
|
| 32 |
+
change ‖covarianceFactor T v‖ ≤ B*‖v‖
|
| 33 |
+
apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg hB (norm_nonneg _))).mp
|
| 34 |
+
rw [covarianceFactor_norm_sq,mul_pow]
|
| 35 |
+
exact hhi v
|
| 36 |
+
|
| 37 |
+
end
|
| 38 |
+
end Yau.Probability
|
| 39 |
+
|
| 40 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/GaussianGradientSupremum.lean
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Charts.MetricFrequencyBounds
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.GaussianCompactSections
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Yau.Probability MeasureTheory ProbabilityTheory
|
| 8 |
+
open scoped ContDiff
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {ι X : Type*} [Fintype ι] [TopologicalSpace X]
|
| 11 |
+
|
| 12 |
+
def vectorMeanSection (M : Fin 4 → C(X,ℝ)) : C(X,EuclideanSpace ℝ (Fin 4)) :=
|
| 13 |
+
⟨fun x ↦ WithLp.toLp 2 (fun j ↦ M j x),
|
| 14 |
+
(PiLp.continuous_toLp 2 (fun _ : Fin 4 ↦ ℝ)).comp (continuous_pi (fun j ↦ (M j).continuous))⟩
|
| 15 |
+
|
| 16 |
+
def vectorCoeffSection (Z : Fin 4 → ι → C(X,ℂ)) (p : ι × Fin 2) :
|
| 17 |
+
C(X,EuclideanSpace ℝ (Fin 4)) :=
|
| 18 |
+
vectorMeanSection (fun j ↦ if p.2 = 0 then
|
| 19 |
+
⟨fun x ↦ (Z j p.1 x).re, Complex.continuous_re.comp (Z j p.1).continuous⟩ else
|
| 20 |
+
⟨fun x ↦ -(Z j p.1 x).im, (Complex.continuous_im.comp (Z j p.1).continuous).neg⟩)
|
| 21 |
+
|
| 22 |
+
def pairVectorSection (M : Fin 4 → C(X,ℝ)) (Z : Fin 4 → ι → C(X,ℂ))
|
| 23 |
+
(a : ι × Fin 2 → ℝ) : C(X,EuclideanSpace ℝ (Fin 4)) :=
|
| 24 |
+
vectorMeanSection M + ∑ p : ι × Fin 2, a p • vectorCoeffSection Z p
|
| 25 |
+
|
| 26 |
+
lemma pairVectorSection_apply (M : Fin 4 → C(X,ℝ)) (Z : Fin 4 → ι → C(X,ℂ))
|
| 27 |
+
(a : ι × Fin 2 → ℝ) (x : X) (j : Fin 4) :
|
| 28 |
+
pairVectorSection M Z a x j = M j x+pairLinearSum (fun i ↦ Z j i x) a := by
|
| 29 |
+
classical
|
| 30 |
+
simp only [pairVectorSection,ContinuousMap.add_apply,ContinuousMap.sum_apply,
|
| 31 |
+
ContinuousMap.smul_apply,PiLp.add_apply,
|
| 32 |
+
vectorMeanSection,ContinuousMap.coe_mk,pairLinearSum,vectorCoeffSection]
|
| 33 |
+
congr 1
|
| 34 |
+
simp only [WithLp.ofLp_sum,WithLp.ofLp_smul,Finset.sum_apply,Pi.smul_apply]
|
| 35 |
+
apply Finset.sum_congr rfl
|
| 36 |
+
intro p _
|
| 37 |
+
split_ifs <;> simp [smul_eq_mul,mul_comm]
|
| 38 |
+
|
| 39 |
+
lemma pairVectorSection_continuous (M : Fin 4 → C(X,ℝ)) (Z : Fin 4 → ι → C(X,ℂ)) :
|
| 40 |
+
Continuous (pairVectorSection M Z) := by
|
| 41 |
+
unfold pairVectorSection
|
| 42 |
+
exact continuous_const.add (continuous_finsetSum _ (fun p _ ↦
|
| 43 |
+
(continuous_apply p).smul continuous_const))
|
| 44 |
+
|
| 45 |
+
variable [CompactSpace X]
|
| 46 |
+
|
| 47 |
+
lemma pairVectorSection_integrable (M : Fin 4 → C(X,ℝ)) (Z : Fin 4 → ι → C(X,ℂ)) :
|
| 48 |
+
Integrable (pairVectorSection M Z) gaussianPairs := by
|
| 49 |
+
let : IsProbabilityMeasure (gaussianPairs (ι := ι)) := by unfold gaussianPairs; infer_instance
|
| 50 |
+
unfold pairVectorSection
|
| 51 |
+
apply (integrable_const (μ := gaussianPairs (ι := ι)) (vectorMeanSection M)).add
|
| 52 |
+
apply integrable_finsetSum
|
| 53 |
+
intro p _
|
| 54 |
+
exact (integrable_eval (μ := fun _ : ι × Fin 2 ↦ gaussianReal 0 1)
|
| 55 |
+
(i := p) IsGaussian.integrable_id).smul_const _
|
| 56 |
+
|
| 57 |
+
variable (V : ι → Coord → ℂ) (seed : Coord → ℝ)
|
| 58 |
+
(hV : ∀ i, ContDiff ℝ ∞ (V i)) (hs : ContDiff ℝ ∞ seed)
|
| 59 |
+
(K : Set Coord) [CompactSpace K]
|
| 60 |
+
|
| 61 |
+
def gaussianGradientSection (a : ι × Fin 2 → ℝ) : C(K,EuclideanSpace ℝ (Fin 4)) :=
|
| 62 |
+
pairVectorSection (fun j ↦ derivativeSection seed hs K 1 (fun _ ↦ Pi.single j 1))
|
| 63 |
+
(fun j i ↦ derivativeSection (V i) (hV i) K 1 (fun _ ↦ Pi.single j 1)) a
|
| 64 |
+
|
| 65 |
+
omit [CompactSpace K] in
|
| 66 |
+
lemma gaussianGradientSection_apply (a : ι × Fin 2 → ℝ) (x : K) (j : Fin 4) :
|
| 67 |
+
gaussianGradientSection V seed hV hs K a x j =
|
| 68 |
+
fderiv ℝ (fun z ↦ seed z+gaussianWaveField V a z) x (Pi.single j 1) := by
|
| 69 |
+
rw [gaussianGradientSection,pairVectorSection_apply]
|
| 70 |
+
have hh := seeded_gaussian_iterated_apply V seed hV hs a 1 x (fun _ ↦ Pi.single j 1)
|
| 71 |
+
simpa only [derivativeSection,ContinuousMap.coe_mk,iteratedFDeriv_one_apply] using hh.symm
|
| 72 |
+
|
| 73 |
+
def gaussianGradientSup (a : ι × Fin 2 → ℝ) : ℝ :=
|
| 74 |
+
‖gaussianGradientSection V seed hV hs K a‖
|
| 75 |
+
|
| 76 |
+
lemma gaussianGradientSup_continuous : Continuous (gaussianGradientSup V seed hV hs K) :=
|
| 77 |
+
(pairVectorSection_continuous _ _).norm
|
| 78 |
+
|
| 79 |
+
lemma gaussianGradientSup_integrable : Integrable (gaussianGradientSup V seed hV hs K) gaussianPairs :=
|
| 80 |
+
(pairVectorSection_integrable _ _).norm
|
| 81 |
+
|
| 82 |
+
lemma gaussianGradientSup_le_iff (a : ι × Fin 2 → ℝ) {C : ℝ} (hC : 0 ≤ C) :
|
| 83 |
+
gaussianGradientSup V seed hV hs K a ≤ C ↔
|
| 84 |
+
∀ x ∈ K, sourceEuclideanNorm (fun j ↦
|
| 85 |
+
fderiv ℝ (fun z ↦ seed z+gaussianWaveField V a z) x (Pi.single j 1)) ≤ C := by
|
| 86 |
+
unfold gaussianGradientSup
|
| 87 |
+
rw [ContinuousMap.norm_le _ hC]
|
| 88 |
+
have he (x : K) : ‖gaussianGradientSection V seed hV hs K a x‖ =
|
| 89 |
+
sourceEuclideanNorm (fun j ↦
|
| 90 |
+
fderiv ℝ (fun z ↦ seed z+gaussianWaveField V a z) x (Pi.single j 1)) := by
|
| 91 |
+
rw [EuclideanSpace.norm_eq]
|
| 92 |
+
simp only [gaussianGradientSection_apply,Real.norm_eq_abs,sq_abs,sourceEuclideanNorm]
|
| 93 |
+
simp_rw [he]
|
| 94 |
+
exact Subtype.forall
|
| 95 |
+
|
| 96 |
+
end
|
| 97 |
+
end Yau.Geometry
|
| 98 |
+
|
| 99 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/GaussianIntervalBound.lean
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib.MeasureTheory.Measure.Lebesgue.Basic
|
| 2 |
+
import Mathlib.Probability.Distributions.Gaussian.Real
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Probability
|
| 7 |
+
open MeasureTheory ProbabilityTheory Set
|
| 8 |
+
open scoped ENNReal NNReal
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
lemma gaussian_pdf_upper_bound (mean x : ℝ) (v : ℝ≥0) :
|
| 12 |
+
gaussianPDFReal mean v x ≤ (Real.sqrt (2*Real.pi*v))⁻¹ := by
|
| 13 |
+
unfold gaussianPDFReal
|
| 14 |
+
apply mul_le_of_le_one_right (by positivity)
|
| 15 |
+
apply Real.exp_le_one_iff.mpr
|
| 16 |
+
exact div_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr (sq_nonneg _)) (by positivity)
|
| 17 |
+
|
| 18 |
+
lemma gaussian_interval_bound (mean center radius : ℝ) (hr : 0 ≤ radius)
|
| 19 |
+
(v : ℝ≥0) (hv : v ≠ 0) :
|
| 20 |
+
gaussianReal mean v (Icc (center-radius) (center+radius)) ≤
|
| 21 |
+
ENNReal.ofReal (2*radius/(Real.sqrt (2*Real.pi*v))) := by
|
| 22 |
+
rw [gaussianReal_apply mean hv]
|
| 23 |
+
calc
|
| 24 |
+
_ ≤ ∫⁻ _ in Icc (center-radius) (center+radius),
|
| 25 |
+
ENNReal.ofReal ((Real.sqrt (2*Real.pi*v))⁻¹) := by
|
| 26 |
+
apply lintegral_mono
|
| 27 |
+
intro x
|
| 28 |
+
exact ENNReal.ofReal_le_ofReal (gaussian_pdf_upper_bound mean x v)
|
| 29 |
+
_ = _ := by
|
| 30 |
+
rw [lintegral_const,Measure.restrict_apply_univ,Real.volume_Icc]
|
| 31 |
+
rw [← ENNReal.ofReal_mul' (by linarith only [hr])]
|
| 32 |
+
congr 1
|
| 33 |
+
ring
|
| 34 |
+
|
| 35 |
+
end
|
| 36 |
+
end Yau.Probability
|
| 37 |
+
|
| 38 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/GaussianJet.lean
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.FiniteGaussianMap
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.SeededGaussianJet
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Yau.Probability MeasureTheory ProbabilityTheory
|
| 8 |
+
open scoped RealInnerProductSpace
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {ι : Type*} [Fintype ι]
|
| 11 |
+
|
| 12 |
+
abbrev JetSpace := EuclideanSpace ℝ (Fin 5)
|
| 13 |
+
|
| 14 |
+
def normalizedRealJet (f : Coord → ℝ) (N S : ℝ) (x : Coord) : JetSpace :=
|
| 15 |
+
WithLp.toLp 2 (Fin.cons (Real.exp (-N*S)*f x)
|
| 16 |
+
(fun i : Fin 4 ↦ Real.exp (-N*S)*N⁻¹*fderiv ℝ f x (Pi.single i 1)))
|
| 17 |
+
|
| 18 |
+
lemma normalizedRealJet_inner (f : Coord → ℝ) (N S : ℝ) (x : Coord) (v : JetSpace) :
|
| 19 |
+
⟪v,normalizedRealJet f N S x⟫ =
|
| 20 |
+
Real.exp (-N*S)*(v 0*f x+N⁻¹*fderiv ℝ f x (Fin.tail (WithLp.ofLp v))) := by
|
| 21 |
+
have he : Fin.tail (WithLp.ofLp v) = ∑ i : Fin 4, (v i.succ) • Pi.single i (1:ℝ) := by
|
| 22 |
+
ext j
|
| 23 |
+
simp [Pi.single_apply,Fin.tail]
|
| 24 |
+
rw [he,map_sum]
|
| 25 |
+
simp only [map_smul,smul_eq_mul]
|
| 26 |
+
simp only [normalizedRealJet,PiLp.inner_apply,RCLike.inner_apply,conj_trivial,
|
| 27 |
+
Fin.sum_univ_succ,Fin.cons_zero,Fin.cons_succ]
|
| 28 |
+
ring
|
| 29 |
+
|
| 30 |
+
def jetWaveCoefficients (V : ι → Coord → ℂ) (N S : ℝ) (x : Coord) : Fin 5 → ι → ℂ :=
|
| 31 |
+
Fin.cons (fun i ↦ dualWaveCoefficient N (V i) S x 1 0)
|
| 32 |
+
(fun j i ↦ dualWaveCoefficient N (V i) S x 0 (Pi.single j 1))
|
| 33 |
+
|
| 34 |
+
lemma gaussianWaveField_normalizedJet (V : ι → Coord → ℂ) (N S : ℝ) (x : Coord)
|
| 35 |
+
(hV : ∀ i, DifferentiableAt ℝ (V i) x) (a : ι × Fin 2 → ℝ) :
|
| 36 |
+
normalizedRealJet (gaussianWaveField V a) N S x =
|
| 37 |
+
pairJetMap (jetWaveCoefficients V N S x) (WithLp.toLp 2 a) := by
|
| 38 |
+
ext k
|
| 39 |
+
rw [pairJetMap_apply]
|
| 40 |
+
refine Fin.cases ?_ (fun j ↦ ?_) k
|
| 41 |
+
· simpa [normalizedRealJet,jetWaveCoefficients] using
|
| 42 |
+
gaussianWaveField_dual V a x 0 hV N S 1
|
| 43 |
+
· simpa [normalizedRealJet,jetWaveCoefficients,mul_assoc] using
|
| 44 |
+
gaussianWaveField_dual V a x (Pi.single j 1) hV N S 0
|
| 45 |
+
|
| 46 |
+
lemma normalizedRealJet_add (f g : Coord → ℝ) (N S : ℝ) (x : Coord)
|
| 47 |
+
(hf : DifferentiableAt ℝ f x) (hg : DifferentiableAt ℝ g x) :
|
| 48 |
+
normalizedRealJet (fun y ↦ f y+g y) N S x =
|
| 49 |
+
normalizedRealJet f N S x+normalizedRealJet g N S x := by
|
| 50 |
+
ext k
|
| 51 |
+
refine Fin.cases ?_ (fun j ↦ ?_) k
|
| 52 |
+
· simp [normalizedRealJet,mul_add]
|
| 53 |
+
· simp [normalizedRealJet,fderiv_fun_add hf hg,mul_add]
|
| 54 |
+
|
| 55 |
+
lemma seeded_gaussian_jet_eq (V : ι → Coord → ℂ) (seed : Coord → ℝ)
|
| 56 |
+
(N S : ℝ) (x : Coord) (hV : ∀ i, DifferentiableAt ℝ (V i) x)
|
| 57 |
+
(hs : DifferentiableAt ℝ seed x) (a : ι × Fin 2 → ℝ) :
|
| 58 |
+
normalizedRealJet (fun y ↦ seed y+gaussianWaveField V a y) N S x =
|
| 59 |
+
normalizedRealJet seed N S x+
|
| 60 |
+
pairJetMap (jetWaveCoefficients V N S x) (WithLp.toLp 2 a) := by
|
| 61 |
+
rw [normalizedRealJet_add _ _ _ _ _ hs (gaussianWaveField_differentiable V a x hV),
|
| 62 |
+
gaussianWaveField_normalizedJet V N S x hV]
|
| 63 |
+
|
| 64 |
+
lemma seeded_gaussian_jet_law (V : ι → Coord → ℂ) (seed : Coord → ℝ)
|
| 65 |
+
(N S : ℝ) (x : Coord) (hV : ∀ i, DifferentiableAt ℝ (V i) x)
|
| 66 |
+
(hs : DifferentiableAt ℝ seed x) :
|
| 67 |
+
(gaussianPairs (ι := ι)).map (fun a ↦
|
| 68 |
+
normalizedRealJet (fun y ↦ seed y+gaussianWaveField V a y) N S x) =
|
| 69 |
+
(stdGaussian (EuclideanSpace ℝ (ι × Fin 2))).map
|
| 70 |
+
(fun z ↦ normalizedRealJet seed N S x+pairJetMap (jetWaveCoefficients V N S x) z) := by
|
| 71 |
+
simp_rw [seeded_gaussian_jet_eq V seed N S x hV hs]
|
| 72 |
+
rw [← map_pi_eq_stdGaussian, Measure.map_map (by fun_prop) (by fun_prop)]
|
| 73 |
+
rfl
|
| 74 |
+
|
| 75 |
+
lemma seeded_gaussian_jet_variance (V : ι → Coord → ℂ) (seed : Coord → ℝ)
|
| 76 |
+
(N S : ℝ) (x : Coord) (hV : ∀ i, DifferentiableAt ℝ (V i) x)
|
| 77 |
+
(hs : DifferentiableAt ℝ seed x) (v : JetSpace) :
|
| 78 |
+
Var[fun a : ι × Fin 2 → ℝ ↦
|
| 79 |
+
⟪v,normalizedRealJet (fun y ↦ seed y+gaussianWaveField V a y) N S x⟫; gaussianPairs] =
|
| 80 |
+
‖(pairJetMap (jetWaveCoefficients V N S x)).adjoint v‖^2 := by
|
| 81 |
+
let : IsProbabilityMeasure (gaussianPairs (ι := ι)) := by
|
| 82 |
+
unfold gaussianPairs
|
| 83 |
+
infer_instance
|
| 84 |
+
simp_rw [seeded_gaussian_jet_eq V seed N S x hV hs,inner_add_right]
|
| 85 |
+
rw [variance_const_add (by fun_prop)]
|
| 86 |
+
exact variance_gaussianMap_inner _ v
|
| 87 |
+
|
| 88 |
+
end
|
| 89 |
+
end Yau.Geometry
|
| 90 |
+
|
| 91 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/GaussianPairCovariance.lean
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib.Probability.Moments.Covariance
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.GaussianPairMoments
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Probability MeasureTheory ProbabilityTheory
|
| 8 |
+
noncomputable section
|
| 9 |
+
variable {ι : Type*} [Fintype ι]
|
| 10 |
+
|
| 11 |
+
lemma pairLinearSum_add (z w : ι → ℂ) :
|
| 12 |
+
pairLinearSum (fun i ↦ z i+w i) = fun a ↦ pairLinearSum z a+pairLinearSum w a := by
|
| 13 |
+
classical
|
| 14 |
+
funext a
|
| 15 |
+
simp only [pairLinearSum,Complex.add_re,Complex.add_im]
|
| 16 |
+
rw [← Finset.sum_add_distrib]
|
| 17 |
+
apply Finset.sum_congr rfl
|
| 18 |
+
intro p _
|
| 19 |
+
split_ifs <;> ring
|
| 20 |
+
|
| 21 |
+
lemma covariance_pairLinearSum (z w : ι → ℂ) :
|
| 22 |
+
cov[pairLinearSum z,pairLinearSum w;gaussianPairs] =
|
| 23 |
+
∑ i, ((z i).re*(w i).re+(z i).im*(w i).im) := by
|
| 24 |
+
let : IsProbabilityMeasure (gaussianPairs (ι := ι)) := by unfold gaussianPairs; infer_instance
|
| 25 |
+
have hz := pairLinearSum_memLp_two z
|
| 26 |
+
have hw := pairLinearSum_memLp_two w
|
| 27 |
+
have hh := variance_add hz hw
|
| 28 |
+
change Var[fun a ↦ pairLinearSum z a+pairLinearSum w a;gaussianPairs] = _ at hh
|
| 29 |
+
rw [← pairLinearSum_add] at hh
|
| 30 |
+
simp only [variance_pairLinearSum] at hh
|
| 31 |
+
have hn : ∑ i, ‖z i+w i‖^2 = (∑ i, ‖z i‖^2) + (∑ i, ‖w i‖^2) +
|
| 32 |
+
2 * ∑ i, ((z i).re*(w i).re+(z i).im*(w i).im) := by
|
| 33 |
+
simp only [← Finset.sum_add_distrib,Finset.mul_sum,Complex.sq_norm,
|
| 34 |
+
Complex.normSq_apply,Complex.add_re,Complex.add_im]
|
| 35 |
+
apply Finset.sum_congr rfl
|
| 36 |
+
intro i _
|
| 37 |
+
ring
|
| 38 |
+
linarith
|
| 39 |
+
|
| 40 |
+
lemma pairLinearSum_covariance_integral (z w : ι → ℂ) :
|
| 41 |
+
∫ a, pairLinearSum z a*pairLinearSum w a ∂gaussianPairs =
|
| 42 |
+
∑ i, ((z i).re*(w i).re+(z i).im*(w i).im) := by
|
| 43 |
+
let : IsProbabilityMeasure (gaussianPairs (ι := ι)) := by unfold gaussianPairs; infer_instance
|
| 44 |
+
have hh := covariance_eq_sub (pairLinearSum_memLp_two z) (pairLinearSum_memLp_two w)
|
| 45 |
+
rw [pairLinearSum_mean,pairLinearSum_mean,mul_zero,sub_zero,covariance_pairLinearSum] at hh
|
| 46 |
+
exact hh.symm
|
| 47 |
+
|
| 48 |
+
end
|
| 49 |
+
end Yau.Geometry
|
| 50 |
+
|
| 51 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/GaussianPairMoments.lean
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Coefficients.GaussianCoefficientMSE
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
namespace Yau.Geometry
|
| 6 |
+
open Yau.Jets Yau.Probability MeasureTheory ProbabilityTheory
|
| 7 |
+
noncomputable section
|
| 8 |
+
variable {ι : Type*} [Fintype ι]
|
| 9 |
+
|
| 10 |
+
lemma pairLinearSum_memLp_two (z : ι → ℂ) : MemLp (pairLinearSum z) 2 gaussianPairs := by
|
| 11 |
+
classical
|
| 12 |
+
unfold pairLinearSum gaussianPairs
|
| 13 |
+
apply memLp_finsetSum
|
| 14 |
+
intro p _
|
| 15 |
+
have hh : MemLp (id : ℝ → ℝ) 2 (gaussianReal 0 1) := IsGaussian.memLp_two_id
|
| 16 |
+
exact (hh.comp_measurePreserving (measurePreserving_eval (μ := fun _ : ι × Fin 2 ↦ gaussianReal 0 1) p)).const_mul _
|
| 17 |
+
|
| 18 |
+
lemma pairLinearSum_mean_square (z : ι → ℂ) (m : ℝ) :
|
| 19 |
+
∫ coeff, (m+pairLinearSum z coeff)^2 ∂gaussianPairs = m^2+∑ i, ‖z i‖^2 := by
|
| 20 |
+
let : IsProbabilityMeasure (gaussianPairs (ι := ι)) := by unfold gaussianPairs; infer_instance
|
| 21 |
+
have hp := pairLinearSum_memLp_two z
|
| 22 |
+
have hh := variance_eq_sub ((memLp_const m).add hp)
|
| 23 |
+
have hm : ∫ coeff, m+pairLinearSum z coeff ∂gaussianPairs = m := by
|
| 24 |
+
rw [integral_add (integrable_const _) (pairLinearSum_integrable z),pairLinearSum_mean,integral_const]
|
| 25 |
+
simp
|
| 26 |
+
change Var[fun coeff ↦ m+pairLinearSum z coeff;gaussianPairs] =
|
| 27 |
+
(∫ coeff, (m+pairLinearSum z coeff)^2 ∂gaussianPairs) -
|
| 28 |
+
(∫ coeff, m+pairLinearSum z coeff ∂gaussianPairs)^2 at hh
|
| 29 |
+
rw [hm,variance_const_add hp.aestronglyMeasurable,variance_pairLinearSum] at hh
|
| 30 |
+
linarith
|
| 31 |
+
|
| 32 |
+
lemma rescaledGaussianField_mse (V W : ι → Coord → ℂ) (S0 T0 S : Coord → ℝ)
|
| 33 |
+
(N s sigma : ℝ) (x v : Coord) :
|
| 34 |
+
∫ coeff, (rescaledGaussianField V S0 T0 S N s sigma x coeff v -
|
| 35 |
+
gaussianWaveField W coeff v)^2 ∂gaussianPairs =
|
| 36 |
+
(rescaledSeed S0 T0 S N s sigma x v)^2 +
|
| 37 |
+
∑ i, ‖normalizedRescaling (V i) S N s sigma x v-W i v‖^2 := by
|
| 38 |
+
have heq (coeff : ι × Fin 2 → ℝ) :
|
| 39 |
+
rescaledGaussianField V S0 T0 S N s sigma x coeff v - gaussianWaveField W coeff v =
|
| 40 |
+
rescaledSeed S0 T0 S N s sigma x v +
|
| 41 |
+
pairLinearSum (fun i ↦ normalizedRescaling (V i) S N s sigma x v-W i v) coeff := by
|
| 42 |
+
rw [rescaledGaussianField_decomposition,← gaussianWaveField_sub_pair]
|
| 43 |
+
ring
|
| 44 |
+
simp_rw [heq]
|
| 45 |
+
exact pairLinearSum_mean_square _ _
|
| 46 |
+
|
| 47 |
+
end
|
| 48 |
+
end Yau.Geometry
|
| 49 |
+
|
| 50 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/GaussianPartialMeasurability.lean
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.CoordinatePartialJets
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.GaussianDerivativeMoments
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Yau.Analysis Yau.Probability MeasureTheory
|
| 8 |
+
open scoped ContDiff
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {ι : Type*} [Fintype ι]
|
| 11 |
+
|
| 12 |
+
lemma seeded_partial_joint_continuous (V : ι → Coord → ℂ) (seed : Coord → ℝ)
|
| 13 |
+
(hV : ∀ i, ContDiff ℝ ∞ (V i)) (hs : ContDiff ℝ ∞ seed)
|
| 14 |
+
(ds : List (Fin 4)) :
|
| 15 |
+
Continuous (fun z : (ι × Fin 2 → ℝ) × Coord ↦
|
| 16 |
+
partialJet (fun x ↦ seed x+gaussianWaveField V z.1 x) ds z.2) := by
|
| 17 |
+
have hF (a : ι × Fin 2 → ℝ) := hs.add (gaussianWaveField_contDiff V a hV)
|
| 18 |
+
simp_rw [partialJet_eq_iterated _ (hF _),seeded_gaussian_iterated_apply V seed hV hs]
|
| 19 |
+
have horder : (ds.length : WithTop ℕ∞) ≤ ∞ := by
|
| 20 |
+
exact_mod_cast (show (ds.length:ℕ∞) ≤ ⊤ from le_top)
|
| 21 |
+
have hc {F : Type} [NormedAddCommGroup F] [NormedSpace ℝ F]
|
| 22 |
+
(f : Coord → F) (hf : ContDiff ℝ ∞ f) :
|
| 23 |
+
Continuous (fun z : (ι × Fin 2 → ℝ) × Coord ↦
|
| 24 |
+
iteratedFDeriv ℝ ds.length f z.2 (partialDirs ds)) :=
|
| 25 |
+
((hf.continuous_iteratedFDeriv horder).comp continuous_snd).eval continuous_const
|
| 26 |
+
apply (hc seed hs).add
|
| 27 |
+
unfold pairLinearSum
|
| 28 |
+
apply continuous_finsetSum
|
| 29 |
+
intro p _
|
| 30 |
+
apply Continuous.mul
|
| 31 |
+
· split_ifs
|
| 32 |
+
· exact Complex.continuous_re.comp (hc (V p.1) (hV p.1))
|
| 33 |
+
· exact (Complex.continuous_im.comp (hc (V p.1) (hV p.1))).neg
|
| 34 |
+
· exact (continuous_apply p).comp continuous_fst
|
| 35 |
+
|
| 36 |
+
end
|
| 37 |
+
end Yau.Geometry
|
| 38 |
+
|
| 39 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/GaussianTailBound.lean
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib.Analysis.SpecialFunctions.Exp
|
| 2 |
+
import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics
|
| 3 |
+
import Mathlib.Tactic.GCongr
|
| 4 |
+
import Mathlib.Tactic.Linarith
|
| 5 |
+
import Mathlib.Tactic.Positivity
|
| 6 |
+
import Mathlib.Tactic.Ring
|
| 7 |
+
|
| 8 |
+
namespace OAI
|
| 9 |
+
|
| 10 |
+
namespace Yau.Probability
|
| 11 |
+
open Filter
|
| 12 |
+
open scoped BigOperators Topology
|
| 13 |
+
noncomputable section
|
| 14 |
+
|
| 15 |
+
lemma finite_gaussian_tail {ι : Type*} [Fintype ι] (d f : ι → ℝ)
|
| 16 |
+
{a R B r : ℝ} (ha : 0 ≤ a) (hR : 0 ≤ R) (hr : 0 ≤ r)
|
| 17 |
+
(hd : ∀ i, 0 ≤ d i) (hf : ∀ i, f i ≤ R*Real.exp (-2*a*(d i)^2))
|
| 18 |
+
(hs : ∑ i, Real.exp (-a*(d i)^2) ≤ B) :
|
| 19 |
+
∑ i ∈ Finset.univ.filter (fun i ↦ r < d i), f i ≤
|
| 20 |
+
R*B*Real.exp (-a*r^2) := by
|
| 21 |
+
classical
|
| 22 |
+
calc
|
| 23 |
+
_ ≤ ∑ i ∈ Finset.univ.filter (fun i ↦ r < d i),
|
| 24 |
+
(R*Real.exp (-a*r^2))*Real.exp (-a*(d i)^2) := by
|
| 25 |
+
apply Finset.sum_le_sum
|
| 26 |
+
intro i hi
|
| 27 |
+
have hri := (Finset.mem_filter.mp hi).2.le
|
| 28 |
+
apply (hf i).trans
|
| 29 |
+
simp only [mul_assoc,← Real.exp_add]
|
| 30 |
+
gcongr
|
| 31 |
+
have hh := mul_le_mul_of_nonneg_left ((sq_le_sq₀ hr (hd i)).2 hri) ha
|
| 32 |
+
nlinarith
|
| 33 |
+
_ ≤ ∑ i, (R*Real.exp (-a*r^2))*Real.exp (-a*(d i)^2) :=
|
| 34 |
+
Finset.sum_le_sum_of_subset_of_nonneg (Finset.filter_subset _ _) (fun _ _ _ ↦ by positivity)
|
| 35 |
+
_ = (R*Real.exp (-a*r^2))*∑ i, Real.exp (-a*(d i)^2) := by rw [Finset.mul_sum]
|
| 36 |
+
_ ≤ (R*Real.exp (-a*r^2))*B := mul_le_mul_of_nonneg_left hs (by positivity)
|
| 37 |
+
_ = _ := by ring
|
| 38 |
+
|
| 39 |
+
lemma main_center_scale (N : ℝ) (hN : 0 < N) :
|
| 40 |
+
N*(N^(-5/12:ℝ))^2 = N^(1/6:ℝ) := by
|
| 41 |
+
calc
|
| 42 |
+
_ = N^(1:ℝ)*N^(-5/6:ℝ) := by
|
| 43 |
+
rw [← Real.rpow_mul_natCast hN.le]
|
| 44 |
+
norm_num
|
| 45 |
+
_ = _ := by rw [← Real.rpow_add hN]; norm_num
|
| 46 |
+
|
| 47 |
+
lemma tendsto_main_center_tail (a : ℝ) (ha : 0 < a) :
|
| 48 |
+
Tendsto (fun n : ℕ ↦ Real.exp (-a*(n:ℝ)^(1/6:ℝ))) atTop (𝓝 0) := by
|
| 49 |
+
have hpow : Tendsto (fun n : ℕ ↦ (n:ℝ)^(1/6:ℝ)) atTop atTop :=
|
| 50 |
+
(tendsto_rpow_atTop (by norm_num : (0:ℝ) < 1/6)).comp tendsto_natCast_atTop_atTop
|
| 51 |
+
exact Real.tendsto_exp_atBot.comp ((tendsto_const_mul_atBot_of_neg (neg_neg_of_pos ha)).mpr hpow)
|
| 52 |
+
|
| 53 |
+
end
|
| 54 |
+
end Yau.Probability
|
| 55 |
+
|
| 56 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/GaussianUniformBall.lean
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib.MeasureTheory.Measure.OpenPos
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.EuclideanGaussianSmallBall
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Probability
|
| 7 |
+
open MeasureTheory ProbabilityTheory Set Metric
|
| 8 |
+
open scoped ENNReal
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {ι : Type*} [Fintype ι]
|
| 11 |
+
local notation "E" => EuclideanSpace ℝ ι
|
| 12 |
+
|
| 13 |
+
lemma stdGaussian_open_positive : (stdGaussian E).IsOpenPosMeasure := by
|
| 14 |
+
let : (gaussianReal 0 1).IsOpenPosMeasure :=
|
| 15 |
+
(gaussianReal_absolutelyContinuous' 0 (by norm_num : (1:NNReal) ≠ 0)).isOpenPosMeasure
|
| 16 |
+
rw [← map_pi_eq_stdGaussian]
|
| 17 |
+
apply Continuous.isOpenPosMeasure_map (by fun_prop)
|
| 18 |
+
exact (WithLp.equiv 2 (ι → ℝ)).symm.surjective
|
| 19 |
+
|
| 20 |
+
lemma uniform_gaussian_ball (R r : ℝ) (hr : 0 < r) :
|
| 21 |
+
∃ p : ℝ≥0∞, 0 < p ∧ ∀ z : E, ‖z‖ ≤ R → p ≤ stdGaussian E (ball z r) := by
|
| 22 |
+
classical
|
| 23 |
+
let : (stdGaussian E).IsOpenPosMeasure := stdGaussian_open_positive
|
| 24 |
+
obtain ⟨s,hs⟩ := (isCompact_closedBall (0:E) R).elim_finite_subcover
|
| 25 |
+
(fun z : E ↦ ball z (r/2)) (fun _ ↦ isOpen_ball) (by
|
| 26 |
+
intro z hz
|
| 27 |
+
exact mem_iUnion.mpr ⟨z,mem_ball_self (by positivity)⟩)
|
| 28 |
+
let p : ℝ≥0∞ := s.inf (fun z ↦ stdGaussian E (ball z (r/2)))
|
| 29 |
+
have hp : 0 < p := by
|
| 30 |
+
dsimp only [p]
|
| 31 |
+
clear hs p
|
| 32 |
+
induction s using Finset.induction_on with
|
| 33 |
+
| empty => simp
|
| 34 |
+
| @insert z s hz ih =>
|
| 35 |
+
rw [Finset.inf_insert]
|
| 36 |
+
exact lt_min (measure_ball_pos _ _ (by positivity)) ih
|
| 37 |
+
refine ⟨p,hp,?_⟩
|
| 38 |
+
intro z hz
|
| 39 |
+
have hz' : z ∈ closedBall (0:E) R := by simpa only [mem_closedBall,dist_zero_right] using hz
|
| 40 |
+
obtain ⟨y,hy,hyz⟩ := mem_iUnion₂.mp (hs hz')
|
| 41 |
+
apply (Finset.inf_le hy).trans
|
| 42 |
+
apply measure_mono
|
| 43 |
+
intro x hx
|
| 44 |
+
have hx' : dist x y < r/2 := hx
|
| 45 |
+
have hz'' : dist z y < r/2 := hyz
|
| 46 |
+
have hh := dist_triangle x y z
|
| 47 |
+
rw [dist_comm y z] at hh
|
| 48 |
+
change dist x z < r
|
| 49 |
+
linarith
|
| 50 |
+
|
| 51 |
+
lemma uniform_affine_gaussian_ball (A B M r : ℝ) (hA : 0 ≤ A)
|
| 52 |
+
(hB : 0 < B) (hM : 0 ≤ M) (hr : 0 < r) (target : E) :
|
| 53 |
+
∃ p : ℝ≥0∞, 0 < p ∧ ∀ (L : E ≃L[ℝ] E) (mean : E),
|
| 54 |
+
‖L.symm.toContinuousLinearMap‖ ≤ A → ‖L.toContinuousLinearMap‖ ≤ B → ‖mean‖ ≤ M →
|
| 55 |
+
p ≤ ((stdGaussian E).map (fun z ↦ mean+L z)) (ball target r) := by
|
| 56 |
+
let radius : NNReal := ⟨A*(‖target‖+M), mul_nonneg hA (add_nonneg (norm_nonneg _) hM)⟩
|
| 57 |
+
obtain ⟨p,hp,huniform⟩ := uniform_gaussian_ball (ι := ι) radius (r/B) (div_pos hr hB)
|
| 58 |
+
refine ⟨p,hp,?_⟩
|
| 59 |
+
intro L mean hLi hL hm
|
| 60 |
+
let center := L.symm (target-mean)
|
| 61 |
+
have hc : ‖center‖ ≤ A*(‖target‖+M) := by
|
| 62 |
+
exact (L.symm.toContinuousLinearMap.le_opNorm _).trans
|
| 63 |
+
(mul_le_mul hLi ((norm_sub_le _ _).trans (add_le_add le_rfl hm)) (norm_nonneg _) hA)
|
| 64 |
+
apply (huniform center hc).trans
|
| 65 |
+
rw [Measure.map_apply (by fun_prop) isOpen_ball.measurableSet]
|
| 66 |
+
apply measure_mono
|
| 67 |
+
intro z hz
|
| 68 |
+
change dist (mean+L z) target < r
|
| 69 |
+
rw [dist_eq_norm]
|
| 70 |
+
have he : mean+L z-target = L (z-center) := by
|
| 71 |
+
simp only [map_sub,center,L.apply_symm_apply]
|
| 72 |
+
abel
|
| 73 |
+
rw [he]
|
| 74 |
+
have hb := L.toContinuousLinearMap.le_opNorm (z-center)
|
| 75 |
+
have hh : ‖z-center‖ < r/B := by simpa only [mem_ball,dist_eq_norm] using hz
|
| 76 |
+
have hmul := (lt_div_iff₀ hB).mp hh
|
| 77 |
+
calc
|
| 78 |
+
_ ≤ B*‖z-center‖ := hb.trans (mul_le_mul_of_nonneg_right hL (norm_nonneg _))
|
| 79 |
+
_ < r := by nlinarith
|
| 80 |
+
|
| 81 |
+
end
|
| 82 |
+
end Yau.Probability
|
| 83 |
+
|
| 84 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/GaussianWaveJet.lean
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Coefficients.DualWaveCoefficient
|
| 2 |
+
import OAI.Geometry.NodalSets.Coefficients.GaussianCoefficientVariance
|
| 3 |
+
import OAI.Geometry.NodalSets.Elliptic.RealPhaseJet
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory ProbabilityTheory
|
| 9 |
+
open scoped ContDiff
|
| 10 |
+
noncomputable section
|
| 11 |
+
variable {ι : Type*} [Fintype ι]
|
| 12 |
+
|
| 13 |
+
def gaussianCoefficient (a : ι × Fin 2 → ℝ) (i : ι) : ℂ :=
|
| 14 |
+
(a (i,0):ℂ)+Complex.I*(a (i,1):ℂ)
|
| 15 |
+
|
| 16 |
+
lemma pairLinearSum_eq_complex (z : ι → ℂ) (a : ι × Fin 2 → ℝ) :
|
| 17 |
+
pairLinearSum z a = ∑ i, (gaussianCoefficient a i*z i).re := by
|
| 18 |
+
classical
|
| 19 |
+
simp only [pairLinearSum,Fintype.sum_prod_type,Fin.sum_univ_succ,Fin.succ_ne_zero,Fin.succ_zero_eq_one,ite_true,ite_false,Fin.sum_univ_zero,add_zero,
|
| 20 |
+
gaussianCoefficient,Complex.mul_re,Complex.mul_im,Complex.add_re,Complex.add_im,Complex.ofReal_re,
|
| 21 |
+
Complex.ofReal_im,Complex.I_re,Complex.I_im,zero_mul,one_mul,mul_zero,zero_add]
|
| 22 |
+
apply Finset.sum_congr rfl
|
| 23 |
+
intro i _
|
| 24 |
+
ring
|
| 25 |
+
|
| 26 |
+
def gaussianWaveField (V : ι → Coord → ℂ) (a : ι × Fin 2 → ℝ) (x : Coord) : ℝ :=
|
| 27 |
+
(∑ i, gaussianCoefficient a i*V i x).re
|
| 28 |
+
|
| 29 |
+
lemma gaussianWaveField_dual (V : ι → Coord → ℂ) (a : ι × Fin 2 → ℝ)
|
| 30 |
+
(x v : Coord) (hV : ∀ i, DifferentiableAt ℝ (V i) x) (N S b : ℝ) :
|
| 31 |
+
Real.exp (-N*S)*(b*gaussianWaveField V a x+N⁻¹*fderiv ℝ (gaussianWaveField V a) x v) =
|
| 32 |
+
pairLinearSum (fun i ↦ dualWaveCoefficient N (V i) S x b v) a := by
|
| 33 |
+
classical
|
| 34 |
+
let W : Coord → ℂ := fun z ↦ ∑ i, gaussianCoefficient a i*V i z
|
| 35 |
+
have hW : DifferentiableAt ℝ W x := DifferentiableAt.fun_sum (fun i _ ↦ (hV i).const_mul _)
|
| 36 |
+
have hd : fderiv ℝ W x v = ∑ i, gaussianCoefficient a i*fderiv ℝ (V i) x v := by
|
| 37 |
+
dsimp only [W]
|
| 38 |
+
rw [fderiv_fun_sum (fun i _ ↦ (hV i).const_mul _)]
|
| 39 |
+
simp only [sum_apply]
|
| 40 |
+
apply Finset.sum_congr rfl
|
| 41 |
+
intro i _
|
| 42 |
+
rw [((hV i).hasFDerivAt.const_mul (gaussianCoefficient a i)).fderiv]
|
| 43 |
+
rfl
|
| 44 |
+
have hr := realPart_fderiv W x hW v
|
| 45 |
+
change fderiv ℝ (gaussianWaveField V a) x v = _ at hr
|
| 46 |
+
rw [hr,hd,pairLinearSum_eq_complex]
|
| 47 |
+
simp only [gaussianWaveField,Complex.re_sum,Finset.mul_sum,← Finset.sum_add_distrib]
|
| 48 |
+
apply Finset.sum_congr rfl
|
| 49 |
+
intro i _
|
| 50 |
+
simp only [dualWaveCoefficient,Complex.mul_re,Complex.mul_im,Complex.add_re,Complex.add_im,
|
| 51 |
+
Complex.mul_im,Complex.ofReal_re,Complex.ofReal_im,← Complex.ofReal_inv,
|
| 52 |
+
zero_mul,sub_zero,add_zero]
|
| 53 |
+
ring
|
| 54 |
+
|
| 55 |
+
end
|
| 56 |
+
end Yau.Geometry
|
| 57 |
+
|
| 58 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeActualDerivativeEnergy.lean
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.RescaledDerivativeMoments
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticePlaneWaveEnergy
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Set Filter
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
lemma norm_square_le_two_sub_add {E : Type*} [SeminormedAddCommGroup E] (a b : E) :
|
| 12 |
+
‖a‖^2 ≤ 2*‖a-b‖^2+2*‖b‖^2 := by
|
| 13 |
+
have h := norm_add_le (a-b) b
|
| 14 |
+
rw [sub_add_cancel] at h
|
| 15 |
+
have hsq := pow_le_pow_left₀ (norm_nonneg a) h 2
|
| 16 |
+
nlinarith [sq_nonneg (‖a-b‖-‖b‖)]
|
| 17 |
+
|
| 18 |
+
theorem lattice_actual_derivative_energy
|
| 19 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) {H : Set Coord}
|
| 20 |
+
(hH : IsCompact H) (hg : ContinuousOn g H)
|
| 21 |
+
(hp : ∀ y ∈ H, ∀ v, v ≠ 0 → 0 < g y v v) (d : ℕ) :
|
| 22 |
+
∃ C > 0, ∀ (w S : Coord → ℝ) (D U Q : Set Coord) (m J K k0 : ℕ)
|
| 23 |
+
(a : LocalCompactWaveData g w S D m J K k0) (_ : H ⊆ D) (hUD : U ⊆ D),
|
| 24 |
+
U ⊆ H → IsOpen U → Bornology.IsBounded U → IsCompact Q → Q ⊆ U →
|
| 25 |
+
ContDiff ℝ ∞ S → d ≤ k0 →
|
| 26 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 27 |
+
∀ x ∈ Q, ∀ v : Coord, ‖v‖ ≤ 2 → ∀ k : ℕ, k ≤ d →
|
| 28 |
+
∑ i : SourceGrid U n × Fin 3,
|
| 29 |
+
‖iteratedFDeriv ℝ k (normalizedRescaling
|
| 30 |
+
(latticeWave a.cover a.beams hUD n i.1 i.2) S n (sourceSignScale g S x)
|
| 31 |
+
(a.latticeSigma hUD n x) x) v‖^2 ≤ C := by
|
| 32 |
+
obtain ⟨C,hC,hplane⟩ := lattice_planeWave_derivative_energy g hH hg hp d
|
| 33 |
+
refine ⟨2+2*C,by positivity,?_⟩
|
| 34 |
+
intro w S D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU hS hd
|
| 35 |
+
filter_upwards [hplane w S D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU,
|
| 36 |
+
a.lattice_full_jet_approximation hUD hU hUb hQ hQU hS 2 (by norm_num) 1 (by norm_num),
|
| 37 |
+
a.estimates] with n hW he hest
|
| 38 |
+
obtain ⟨hfin,hW⟩ := hW
|
| 39 |
+
obtain ⟨hfin',he⟩ := he
|
| 40 |
+
have heq : hfin' = hfin := Subsingleton.elim _ _
|
| 41 |
+
subst hfin'
|
| 42 |
+
let := hfin
|
| 43 |
+
refine ⟨hfin,?_⟩
|
| 44 |
+
intro x hx v hv k hk
|
| 45 |
+
let W := a.latticePlaneWaveCoefficient hUD n x (sourceSignScale g S x)
|
| 46 |
+
let A := fun i : SourceGrid U n × Fin 3 ↦ normalizedRescaling
|
| 47 |
+
(latticeWave a.cover a.beams hUD n i.1 i.2) S n (sourceSignScale g S x)
|
| 48 |
+
(a.latticeSigma hUD n x) x
|
| 49 |
+
have hAs (i : SourceGrid U n × Fin 3) : ContDiff ℝ ∞ (A i) :=
|
| 50 |
+
normalizedRescaling_smooth _ (hest (latticeFrame a.cover hUD n i.1,i.2)).1 _ _ _ _ _
|
| 51 |
+
have hWs (i : SourceGrid U n × Fin 3) : ContDiff ℝ ∞ (W i) :=
|
| 52 |
+
a.latticePlaneWaveCoefficient_smooth _ _ _ _ _
|
| 53 |
+
have hk' : (k : WithTop ℕ∞) ≤ ∞ := by exact_mod_cast (show (k:ℕ∞) ≤ ⊤ from le_top)
|
| 54 |
+
have hid (i : SourceGrid U n × Fin 3) :
|
| 55 |
+
iteratedFDeriv ℝ k (fun z ↦ A i z-W i z) v =
|
| 56 |
+
iteratedFDeriv ℝ k (A i) v-iteratedFDeriv ℝ k (W i) v := by
|
| 57 |
+
change iteratedFDeriv ℝ k (A i-W i) v = _
|
| 58 |
+
exact iteratedFDeriv_sub_apply ((hAs i).of_le hk').contDiffAt ((hWs i).of_le hk').contDiffAt
|
| 59 |
+
have herr := he x hx _ (show 1 ≤ sourceSignScale g S x by
|
| 60 |
+
linarith [a.source_sign_scale_lower x (hUD (hQU hx))]) v hv (⟨k,by omega⟩ : Fin (k0+1))
|
| 61 |
+
change (∑ i, ‖iteratedFDeriv ℝ k (fun z ↦ A i z-W i z) v‖^2) ≤ 1 at herr
|
| 62 |
+
simp_rw [hid] at herr
|
| 63 |
+
have hw := hW x hx v k hk
|
| 64 |
+
have hb := Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset (SourceGrid U n × Fin 3))) ↦
|
| 65 |
+
norm_square_le_two_sub_add (iteratedFDeriv ℝ k (A i) v) (iteratedFDeriv ℝ k (W i) v))
|
| 66 |
+
simp only [Finset.sum_add_distrib,← Finset.mul_sum] at hb
|
| 67 |
+
change (∑ i, ‖iteratedFDeriv ℝ k (A i) v‖^2) ≤ _
|
| 68 |
+
change (∑ i, ‖iteratedFDeriv ℝ k (W i) v‖^2) ≤ C at hw
|
| 69 |
+
linarith
|
| 70 |
+
|
| 71 |
+
end
|
| 72 |
+
end Yau.Geometry
|
| 73 |
+
|
| 74 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeActualTwoPoint.lean
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Coefficients.TwoPointCoefficientEnergy
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeTwoPointGap
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Yau.Probability MeasureTheory ProbabilityTheory Set Filter
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
theorem lattice_actual_two_point_energy
|
| 12 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) {H : Set Coord}
|
| 13 |
+
(hH : IsCompact H) (hg : ContinuousOn g H)
|
| 14 |
+
(hp : ∀ y ∈ H, ∀ v, v ≠ 0 → 0 < g y v v) :
|
| 15 |
+
∃ tau : ℝ, 0 < tau ∧ tau < 1/4 ∧ ∃ delta > 0,
|
| 16 |
+
∀ (w S : Coord → ℝ) (D U Q : Set Coord) (m J K k0 : ℕ)
|
| 17 |
+
(a : LocalCompactWaveData g w S D m J K k0) (_ : H ⊆ D) (hUD : U ⊆ D),
|
| 18 |
+
U ⊆ H → IsOpen U → Bornology.IsBounded U → IsCompact Q → Q ⊆ U → ContDiff ℝ ∞ S →
|
| 19 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 20 |
+
∀ x ∈ Q, ∃ j : Fin 4, ∀ u v : ℝ,
|
| 21 |
+
let coeff := fun i : SourceGrid U n × Fin 3 ↦ normalizedRescaling
|
| 22 |
+
(latticeWave a.cover a.beams hUD n i.1 i.2) S n
|
| 23 |
+
(sourceSignScale g S x) (a.latticeSigma hUD n x) x
|
| 24 |
+
delta*(u^2+v^2) ≤ ∑ i,
|
| 25 |
+
‖(u:ℂ)*coeff i 0+(v:ℂ)*coeff i (tau • Pi.single j 1)‖^2 := by
|
| 26 |
+
obtain ⟨tau,ht,ht4,d,hd,hgaps⟩ := lattice_plane_wave_two_point_gap g hH hg hp
|
| 27 |
+
refine ⟨tau,ht,ht4,d/4,by positivity,?_⟩
|
| 28 |
+
intro w S D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU hS
|
| 29 |
+
filter_upwards [hgaps w S D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU,
|
| 30 |
+
a.lattice_full_jet_approximation hUD hU hUb hQ hQU hS 2 (by norm_num) (d/8) (by positivity)]
|
| 31 |
+
with n hgap herr
|
| 32 |
+
obtain ⟨hfin,hgap⟩ := hgap
|
| 33 |
+
obtain ⟨hfin',herr⟩ := herr
|
| 34 |
+
have heq : hfin' = hfin := Subsingleton.elim _ _
|
| 35 |
+
subst hfin'
|
| 36 |
+
let := hfin
|
| 37 |
+
refine ⟨hfin,?_⟩
|
| 38 |
+
intro x hx
|
| 39 |
+
obtain ⟨j,hM,hM1,hW,hC0,hC⟩ := hgap x hx
|
| 40 |
+
dsimp only at hM hM1 hW hC0 hC
|
| 41 |
+
let W := a.latticePlaneWaveCoefficient hUD n x (sourceSignScale g S x)
|
| 42 |
+
let A := fun i : SourceGrid U n × Fin 3 ↦ normalizedRescaling
|
| 43 |
+
(latticeWave a.cover a.beams hUD n i.1 i.2) S n
|
| 44 |
+
(sourceSignScale g S x) (a.latticeSigma hUD n x) x
|
| 45 |
+
have hgap' : ∀ u v : ℝ, d*(u^2+v^2) ≤
|
| 46 |
+
∑ i, ‖(u:ℂ)*W i 0+(v:ℂ)*W i (tau • Pi.single j 1)‖^2 := by
|
| 47 |
+
intro u v
|
| 48 |
+
apply two_point_energy_of_gap _ _ _ _ d rfl _ rfl _ _ u v
|
| 49 |
+
· simpa only [gaussianWaveField_eq_pair] using hW
|
| 50 |
+
· have hm0 := variance_nonneg (fun coeff ↦ gaussianWaveField W coeff 0) gaussianPairs
|
| 51 |
+
rw [gaussianWaveField_eq_pair] at hm0
|
| 52 |
+
simp only [gaussianWaveField_eq_pair] at hC0
|
| 53 |
+
linarith
|
| 54 |
+
· simpa only [gaussianWaveField_eq_pair] using hC
|
| 55 |
+
have hs : 1 ≤ sourceSignScale g S x := by
|
| 56 |
+
linarith [a.source_sign_scale_lower x (hUD (hQU hx))]
|
| 57 |
+
have hnorm : ‖(tau • Pi.single j (1:ℝ) : Coord)‖ ≤ 2 := by
|
| 58 |
+
rw [norm_smul,Real.norm_eq_abs,abs_of_pos ht,Pi.norm_single,norm_one,mul_one]
|
| 59 |
+
linarith
|
| 60 |
+
have he0 := herr x hx _ hs 0 (by simp) (0 : Fin (k0+1))
|
| 61 |
+
have he1 := herr x hx _ hs _ hnorm (0 : Fin (k0+1))
|
| 62 |
+
simp +instances only [Fin.val_zero,norm_iteratedFDeriv_zero] at he0 he1
|
| 63 |
+
refine ⟨j,?_⟩
|
| 64 |
+
intro u v
|
| 65 |
+
have hh := two_point_energy_perturbation (fun i ↦ W i 0) (fun i ↦ W i (tau • Pi.single j 1))
|
| 66 |
+
(fun i ↦ A i 0) (fun i ↦ A i (tau • Pi.single j 1)) d (d/8) he0 he1 hgap' u v
|
| 67 |
+
convert hh using 1
|
| 68 |
+
ring
|
| 69 |
+
|
| 70 |
+
end
|
| 71 |
+
end Yau.Geometry
|
| 72 |
+
|
| 73 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeCount.lean
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib.SetTheory.Cardinal.Finite
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeGeometry
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Set
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
lemma lattice_scale_eq_inv_sqrt (n : ℕ) : (n:ℝ)^(-1/2:ℝ) = (Real.sqrt n)⁻¹ := by
|
| 11 |
+
rw [show (-1/2:ℝ) = -(1/2) by ring,Real.rpow_neg,Real.sqrt_eq_rpow]
|
| 12 |
+
positivity
|
| 13 |
+
|
| 14 |
+
theorem source_grid_card_bound {U : Set Coord} (hU : Bornology.IsBounded U) :
|
| 15 |
+
∃ C > 0, ∀ n : ℕ, 0 < n → (Nat.card (SourceGrid U n) : ℝ) ≤ C*(n:ℝ)^2 := by
|
| 16 |
+
obtain ⟨B,hB,hbound⟩ := hU.exists_pos_norm_le
|
| 17 |
+
refine ⟨(2*B+3)^4,by positivity,?_⟩
|
| 18 |
+
intro n hn
|
| 19 |
+
have hnR : (1:ℝ) ≤ n := by exact_mod_cast hn
|
| 20 |
+
have hs : 0 < Real.sqrt n := Real.sqrt_pos.mpr (by exact_mod_cast hn)
|
| 21 |
+
have hs1 : 1 ≤ Real.sqrt n := Real.one_le_sqrt.mpr hnR
|
| 22 |
+
have hs2 : (Real.sqrt n)^2 = (n:ℝ) := Real.sq_sqrt (by positivity)
|
| 23 |
+
let M : ℤ := ⌈B*Real.sqrt n⌉
|
| 24 |
+
have hM0 : 0 ≤ M := Int.ceil_nonneg (by positivity)
|
| 25 |
+
have hMc : (M:ℝ) < B*Real.sqrt n+1 := Int.ceil_lt_add_one _
|
| 26 |
+
have hcoords (z : SourceGrid U n) (i : Fin 4) : z.val i ∈ Icc (-M) M := by
|
| 27 |
+
have hi := (norm_le_pi_norm (scaledLatticePoint n z) i).trans (hbound _ z.property)
|
| 28 |
+
change |(n:ℝ)^(-1/2:ℝ)*(z.val i:ℝ)| ≤ B at hi
|
| 29 |
+
rw [lattice_scale_eq_inv_sqrt,abs_mul,abs_of_pos (inv_pos.mpr hs)] at hi
|
| 30 |
+
have hmul := mul_le_mul_of_nonneg_left hi hs.le
|
| 31 |
+
have hcancel : Real.sqrt n * ((Real.sqrt n)⁻¹ * |(z.val i:ℝ)|) = |(z.val i:ℝ)| := by
|
| 32 |
+
field_simp
|
| 33 |
+
rw [hcancel] at hmul
|
| 34 |
+
have ha : |(z.val i:ℝ)| ≤ (M:ℝ) := hmul.trans (by simpa [mul_comm] using Int.le_ceil (B*Real.sqrt n))
|
| 35 |
+
have hp := abs_le.mp ha
|
| 36 |
+
exact ⟨by exact_mod_cast hp.1,by exact_mod_cast hp.2⟩
|
| 37 |
+
let f : SourceGrid U n → (Fin 4 → Icc (-M) M) := fun z i ↦ ⟨z.val i,hcoords z i⟩
|
| 38 |
+
have hfi : Function.Injective f := by
|
| 39 |
+
intro z w h
|
| 40 |
+
apply Subtype.ext
|
| 41 |
+
funext i
|
| 42 |
+
exact congrArg Subtype.val (congrFun h i)
|
| 43 |
+
have hc := Nat.card_le_card_of_injective f hfi
|
| 44 |
+
have hbox : Nat.card (Fin 4 → Icc (-M) M) = ((2*M+1).toNat)^4 := by
|
| 45 |
+
rw [Nat.card_fun]
|
| 46 |
+
simp [Nat.card_eq_fintype_card,Int.card_Icc,show M+1- -M = 2*M+1 by ring]
|
| 47 |
+
rw [hbox] at hc
|
| 48 |
+
have hcR : (Nat.card (SourceGrid U n):ℝ) ≤ ((2*M+1).toNat:ℝ)^4 := by exact_mod_cast hc
|
| 49 |
+
have hcast : ((2*M+1).toNat:ℝ) = 2*(M:ℝ)+1 := by
|
| 50 |
+
have hi : ((2*M+1).toNat:ℤ) = 2*M+1 := Int.toNat_of_nonneg (by omega)
|
| 51 |
+
exact_mod_cast hi
|
| 52 |
+
rw [hcast] at hcR
|
| 53 |
+
have hmnon : (0:ℝ) ≤ 2*(M:ℝ)+1 := by exact_mod_cast (show (0:ℤ) ≤ 2*M+1 by omega)
|
| 54 |
+
have hmle : 2*(M:ℝ)+1 ≤ (2*B+3)*Real.sqrt n := by nlinarith
|
| 55 |
+
have hpow := pow_le_pow_left₀ hmnon hmle 4
|
| 56 |
+
calc
|
| 57 |
+
_ ≤ (2*(M:ℝ)+1)^4 := hcR
|
| 58 |
+
_ ≤ ((2*B+3)*Real.sqrt n)^4 := hpow
|
| 59 |
+
_ = (2*B+3)^4*(n:ℝ)^2 := by
|
| 60 |
+
rw [mul_pow,show (Real.sqrt n)^4 = ((Real.sqrt n)^2)^2 by ring,hs2]
|
| 61 |
+
|
| 62 |
+
theorem source_coefficient_card_bound {U : Set Coord} (hU : Bornology.IsBounded U) :
|
| 63 |
+
∃ C > 0, ∀ n : ℕ, 0 < n → (Nat.card (SourceGrid U n × Fin 3):ℝ) ≤ C*(n:ℝ)^2 := by
|
| 64 |
+
obtain ⟨C,hC,hb⟩ := source_grid_card_bound hU
|
| 65 |
+
refine ⟨3*C,by positivity,?_⟩
|
| 66 |
+
intro n hn
|
| 67 |
+
have h := hb n hn
|
| 68 |
+
rw [Nat.card_prod]
|
| 69 |
+
norm_num
|
| 70 |
+
nlinarith
|
| 71 |
+
|
| 72 |
+
end
|
| 73 |
+
end Yau.Geometry
|
| 74 |
+
|
| 75 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeCovariance.lean
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.LatticeCovariance2
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.SeededGaussianJet
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory ProbabilityTheory
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 11 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 12 |
+
namespace LocalCompactWaveData
|
| 13 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 14 |
+
|
| 15 |
+
def latticeSeededRandomDual (hUD : U ⊆ D) (n : ℕ) (hfin : Fintype (SourceGrid U n))
|
| 16 |
+
(seed : Coord → ℝ) (x : Coord) (b : ℝ) (v : Coord)
|
| 17 |
+
(coeff : ((SourceGrid U n × Fin 3) × Fin 2) → ℝ) : ℝ :=
|
| 18 |
+
letI := hfin
|
| 19 |
+
let V := fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2
|
| 20 |
+
Real.exp (-(n:ℝ)*S x)*(b*(seed x+gaussianWaveField V coeff x)+
|
| 21 |
+
(n:ℝ)⁻¹*fderiv ℝ (fun z ↦ seed z+gaussianWaveField V coeff z) x v)
|
| 22 |
+
|
| 23 |
+
lemma variance_latticeSeededRandomDual (hUD : U ⊆ D) (n : ℕ) (hfin : Fintype (SourceGrid U n))
|
| 24 |
+
(seed : Coord → ℝ) (x : Coord) (hseed : DifferentiableAt ℝ seed x)
|
| 25 |
+
(hV : ∀ z j, DifferentiableAt ℝ (latticeWave a.cover a.beams hUD n z j) x)
|
| 26 |
+
(b : ℝ) (v : Coord) :
|
| 27 |
+
letI := hfin
|
| 28 |
+
Var[a.latticeSeededRandomDual hUD n hfin seed x b v; gaussianPairs] =
|
| 29 |
+
a.latticeEnergy hUD n hfin x b v := by
|
| 30 |
+
let := hfin
|
| 31 |
+
exact seeded_gaussian_dual_variance
|
| 32 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2)
|
| 33 |
+
seed x v (fun i ↦ hV i.1 i.2) hseed (n:ℝ) (S x) b
|
| 34 |
+
|
| 35 |
+
theorem actual_lattice_covariance_lower_bound (hUD : U ⊆ D) (hU : IsOpen U)
|
| 36 |
+
(hUb : Bornology.IsBounded U) {Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U) :
|
| 37 |
+
∃ c > 0, ∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n),
|
| 38 |
+
letI := hfin
|
| 39 |
+
∀ (seed : Coord → ℝ) (x : Coord), x ∈ Q → DifferentiableAt ℝ seed x → ∀ (b : ℝ) (v : Coord),
|
| 40 |
+
c/(n:ℝ)*(b^2+∑ i : Fin 4, (v i)^2) ≤
|
| 41 |
+
Var[a.latticeSeededRandomDual hUD n hfin seed x b v; gaussianPairs] := by
|
| 42 |
+
obtain ⟨c,hc,hb⟩ := a.euclidean_lattice_covariance_lower_bound hUD hU hUb hQ hQU
|
| 43 |
+
refine ⟨c,hc,?_⟩
|
| 44 |
+
filter_upwards [hb,lattice_wave_estimates a.cover a.beams hUD] with n hn hs
|
| 45 |
+
obtain ⟨hfin,hbound⟩ := hn
|
| 46 |
+
let := hfin
|
| 47 |
+
refine ⟨hfin,?_⟩
|
| 48 |
+
intro seed x hx hseed b v
|
| 49 |
+
have hV : ∀ z j, DifferentiableAt ℝ (latticeWave a.cover a.beams hUD n z j) x :=
|
| 50 |
+
fun z j ↦ ((hs z j).1.differentiable (by simp)).differentiableAt
|
| 51 |
+
rw [a.variance_latticeSeededRandomDual hUD n hfin seed x hseed hV]
|
| 52 |
+
have hb := hbound x hx b v
|
| 53 |
+
rw [a.variance_latticeRandomDual] at hb
|
| 54 |
+
exact hb
|
| 55 |
+
|
| 56 |
+
end LocalCompactWaveData
|
| 57 |
+
end
|
| 58 |
+
end Yau.Geometry
|
| 59 |
+
|
| 60 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeCovariance2.lean
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Coefficients.GaussianCoefficientVariance
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeEnergyLowerBound
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory ProbabilityTheory
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 11 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 12 |
+
namespace LocalCompactWaveData
|
| 13 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 14 |
+
|
| 15 |
+
def latticeRandomDual (hUD : U ⊆ D) (n : ℕ) (hfin : Fintype (SourceGrid U n))
|
| 16 |
+
(x : Coord) (b : ℝ) (v : Coord) : (((SourceGrid U n × Fin 3) × Fin 2) → ℝ) → ℝ :=
|
| 17 |
+
letI := hfin
|
| 18 |
+
pairLinearSum (fun i : SourceGrid U n × Fin 3 ↦
|
| 19 |
+
dualWaveCoefficient n (latticeWave a.cover a.beams hUD n i.1 i.2) (S x) x b v)
|
| 20 |
+
|
| 21 |
+
lemma variance_latticeRandomDual (hUD : U ⊆ D) (n : ℕ) (hfin : Fintype (SourceGrid U n))
|
| 22 |
+
(x : Coord) (b : ℝ) (v : Coord) :
|
| 23 |
+
letI := hfin
|
| 24 |
+
Var[a.latticeRandomDual hUD n hfin x b v; gaussianPairs] = a.latticeEnergy hUD n hfin x b v := by
|
| 25 |
+
let := hfin
|
| 26 |
+
exact variance_pairLinearSum _
|
| 27 |
+
|
| 28 |
+
theorem lattice_covariance_lower_bound (hUD : U ⊆ D) (hU : IsOpen U) (hUb : Bornology.IsBounded U)
|
| 29 |
+
{Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U) :
|
| 30 |
+
∃ c > 0, ∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), ∀ x ∈ Q, ∀ b v,
|
| 31 |
+
letI := hfin
|
| 32 |
+
c/(n:ℝ)*(b^2+‖v‖^2) ≤ Var[a.latticeRandomDual hUD n hfin x b v; gaussianPairs] := by
|
| 33 |
+
obtain ⟨c,hc,hb⟩ := a.lattice_energy_lower_bound hUD hU hUb hQ hQU
|
| 34 |
+
refine ⟨c,hc,?_⟩
|
| 35 |
+
filter_upwards [hb] with n hn
|
| 36 |
+
obtain ⟨hfin,hbound⟩ := hn
|
| 37 |
+
let := hfin
|
| 38 |
+
refine ⟨hfin,?_⟩
|
| 39 |
+
intro x hx b v
|
| 40 |
+
rw [a.variance_latticeRandomDual]
|
| 41 |
+
exact hbound x hx b v
|
| 42 |
+
|
| 43 |
+
theorem euclidean_lattice_covariance_lower_bound (hUD : U ⊆ D) (hU : IsOpen U) (hUb : Bornology.IsBounded U)
|
| 44 |
+
{Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U) :
|
| 45 |
+
∃ c > 0, ∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), ∀ x ∈ Q, ∀ b v,
|
| 46 |
+
letI := hfin
|
| 47 |
+
c/(n:ℝ)*(b^2+∑ i : Fin 4, (v i)^2) ≤ Var[a.latticeRandomDual hUD n hfin x b v; gaussianPairs] := by
|
| 48 |
+
obtain ⟨c,hc,hb⟩ := a.lattice_covariance_lower_bound hUD hU hUb hQ hQU
|
| 49 |
+
refine ⟨c/4,by positivity,?_⟩
|
| 50 |
+
filter_upwards [hb,eventually_ge_atTop (1:ℕ)] with n hn hn1
|
| 51 |
+
obtain ⟨hfin,hbound⟩ := hn
|
| 52 |
+
let := hfin
|
| 53 |
+
refine ⟨hfin,?_⟩
|
| 54 |
+
intro x hx b v
|
| 55 |
+
apply le_trans _ (hbound x hx b v)
|
| 56 |
+
have hcoord (i : Fin 4) : (v i)^2 ≤ ‖v‖^2 := by
|
| 57 |
+
have hh := norm_le_pi_norm v i
|
| 58 |
+
change |v i| ≤ ‖v‖ at hh
|
| 59 |
+
nlinarith [sq_abs (v i),norm_nonneg v,abs_nonneg (v i)]
|
| 60 |
+
have hsum := Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset (Fin 4))) ↦ hcoord i)
|
| 61 |
+
norm_num at hsum
|
| 62 |
+
have hh : b^2+∑ i : Fin 4, (v i)^2 ≤ 4*(b^2+‖v‖^2) := by nlinarith [sq_nonneg b]
|
| 63 |
+
have hh' := mul_le_mul_of_nonneg_left hh (by positivity : 0 ≤ c/(4*(n:ℝ)))
|
| 64 |
+
convert hh' using 1 <;> ring
|
| 65 |
+
|
| 66 |
+
end LocalCompactWaveData
|
| 67 |
+
end
|
| 68 |
+
end Yau.Geometry
|
| 69 |
+
|
| 70 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeDerivativeMoments.lean
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.SignScaleSeed
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeActualDerivativeEnergy
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory ProbabilityTheory
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
theorem lattice_derivative_second_moments
|
| 12 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) {H : Set Coord}
|
| 13 |
+
(hH : IsCompact H) (hg : ContinuousOn g H)
|
| 14 |
+
(hp : ∀ y ∈ H, ∀ v, v ≠ 0 → 0 < g y v v) (d : ℕ) :
|
| 15 |
+
∃ C > 0, ∀ (w S S0 T0 : Coord → ℝ) (D U Q : Set Coord) (m J K k0 : ℕ)
|
| 16 |
+
(a : LocalCompactWaveData g w S D m J K k0) (_ : H ⊆ D) (hUD : U ⊆ D),
|
| 17 |
+
U ⊆ H → IsOpen U → Bornology.IsBounded U → IsCompact Q → Q ⊆ U →
|
| 18 |
+
ContDiff ℝ ∞ S → ContDiff ℝ ∞ S0 → ContDiff ℝ ∞ T0 → d ≤ k0 →
|
| 19 |
+
∀ gamma > 0, (∀ x ∈ Q, S0 x+gamma ≤ S x) →
|
| 20 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 21 |
+
∀ x ∈ Q, ∀ v : Coord, sourceEuclideanNorm v ≤ 2 → ∀ k : ℕ, k ≤ d →
|
| 22 |
+
∀ dirs : Fin k → Coord, ‖dirs‖ ≤ 1 →
|
| 23 |
+
let F := rescaledGaussianField
|
| 24 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2)
|
| 25 |
+
S0 T0 S n (sourceSignScale g S x) (a.latticeSigma hUD n x) x
|
| 26 |
+
MemLp (fun coeff ↦ iteratedFDeriv ℝ k (F coeff) v dirs) 2 gaussianPairs ∧
|
| 27 |
+
(∫ coeff, (iteratedFDeriv ℝ k (F coeff) v dirs)^2 ∂gaussianPairs) ≤ C := by
|
| 28 |
+
obtain ⟨C,hC,henergy⟩ := lattice_actual_derivative_energy g hH hg hp d
|
| 29 |
+
refine ⟨1+C,by positivity,?_⟩
|
| 30 |
+
intro w S S0 T0 D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU hS hS0 hT0 hd gamma hgamma hgap
|
| 31 |
+
filter_upwards [henergy w S D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU hS hd,
|
| 32 |
+
a.sign_scale_seed_decay hUD hU hUb hQ hQU hS S0 T0 hS0 hT0 gamma hgamma hgap d 1 (by norm_num),
|
| 33 |
+
a.estimates] with n he hs hest
|
| 34 |
+
obtain ⟨hfin,he⟩ := he
|
| 35 |
+
obtain ⟨hfin',hs⟩ := hs
|
| 36 |
+
have heq : hfin' = hfin := Subsingleton.elim _ _
|
| 37 |
+
subst hfin'
|
| 38 |
+
let := hfin
|
| 39 |
+
refine ⟨hfin,?_⟩
|
| 40 |
+
intro x hx v hv k hk dirs hdirs
|
| 41 |
+
let V := fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2
|
| 42 |
+
have hV (i : SourceGrid U n × Fin 3) : ContDiff ℝ ∞ (V i) :=
|
| 43 |
+
(hest (latticeFrame a.cover hUD n i.1,i.2)).1
|
| 44 |
+
refine ⟨rescaledGaussianField_derivative_memLp V hV _ _ _ hS0 hT0 _ _ _ _ _ _ _,?_⟩
|
| 45 |
+
rw [rescaledGaussianField_derivative_moment V hV _ _ _ hS0 hT0]
|
| 46 |
+
have hseed := hs x hx v hv (⟨k,by omega⟩ : Fin (d+1))
|
| 47 |
+
have hseed' := (iteratedFDeriv ℝ k
|
| 48 |
+
(rescaledSeed S0 T0 S n (sourceSignScale g S x) (a.latticeSigma hUD n x) x) v).unit_le_opNorm hdirs
|
| 49 |
+
have hmean := pow_le_pow_left₀ (norm_nonneg _) (hseed'.trans hseed) 2
|
| 50 |
+
simp only [Real.norm_eq_abs,sq_abs,one_pow] at hmean
|
| 51 |
+
have hsum := Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset (SourceGrid U n × Fin 3))) ↦
|
| 52 |
+
pow_le_pow_left₀ (norm_nonneg _)
|
| 53 |
+
((iteratedFDeriv ℝ k (normalizedRescaling (V i) S n (sourceSignScale g S x)
|
| 54 |
+
(a.latticeSigma hUD n x) x) v).unit_le_opNorm hdirs) 2)
|
| 55 |
+
have hbound := he x hx v ((norm_le_sourceEuclideanNorm v).trans hv) k hk
|
| 56 |
+
change (∑ i, ‖iteratedFDeriv ℝ k (normalizedRescaling (V i) S n (sourceSignScale g S x)
|
| 57 |
+
(a.latticeSigma hUD n x) x) v‖^2) ≤ C at hbound
|
| 58 |
+
linarith
|
| 59 |
+
|
| 60 |
+
end
|
| 61 |
+
end Yau.Geometry
|
| 62 |
+
|
| 63 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeDerivativeTail.lean
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.GaussianTailBound
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeVarianceUpper
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Yau.Probability Set Filter
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 11 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 12 |
+
namespace LocalCompactWaveData
|
| 13 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 14 |
+
|
| 15 |
+
theorem lattice_derivative_tail_bound (hUD : U ⊆ D) :
|
| 16 |
+
∃ C > 0, ∀ᶠ n : ℕ in atTop, ∀ [Fintype (SourceGrid U n)], ∀ x : Coord,
|
| 17 |
+
∀ k : Fin (k0+1), ∀ r : ℝ, 0 ≤ r →
|
| 18 |
+
∑ i ∈ Finset.univ.filter (fun i : SourceGrid U n × Fin 3 ↦
|
| 19 |
+
r < sourceEuclideanNorm (x-scaledLatticePoint n i.1)),
|
| 20 |
+
‖iteratedFDeriv ℝ k.val (latticeWave a.cover a.beams hUD n i.1 i.2) x‖^2 ≤
|
| 21 |
+
C*(n:ℝ)^(2*k.val)*Real.exp (2*(n:ℝ)*S x)*Real.exp (-a.beams.c*(n:ℝ)*r^2) := by
|
| 22 |
+
classical
|
| 23 |
+
obtain ⟨B,hB,hgauss⟩ := source_lattice_gaussian_sum a.beams.c_pos
|
| 24 |
+
refine ⟨3*a.beams.Cw^2*B,by have := a.beams.Cw_pos; positivity,?_⟩
|
| 25 |
+
filter_upwards [a.estimates,eventually_gt_atTop (0:ℕ)] with n hn hnpos
|
| 26 |
+
intro hfin x k r hr
|
| 27 |
+
let d : SourceGrid U n × Fin 3 → ℝ := fun i ↦ sourceEuclideanNorm (x-scaledLatticePoint n i.1)
|
| 28 |
+
let R := a.beams.Cw^2*(n:ℝ)^(2*k.val)*Real.exp (2*(n:ℝ)*S x)
|
| 29 |
+
have hb (i : SourceGrid U n × Fin 3) :
|
| 30 |
+
‖iteratedFDeriv ℝ k.val (latticeWave a.cover a.beams hUD n i.1 i.2) x‖^2 ≤
|
| 31 |
+
R*Real.exp (-2*(a.beams.c*(n:ℝ))*(d i)^2) := by
|
| 32 |
+
have h := ((hn (latticeFrame a.cover hUD n i.1,i.2)).2.2.2.2 x).1 k
|
| 33 |
+
simp only [latticeFrame_center] at h
|
| 34 |
+
change ‖iteratedFDeriv ℝ k.val (latticeWave a.cover a.beams hUD n i.1 i.2) x‖ ≤ _ at h
|
| 35 |
+
refine (pow_le_pow_left₀ (norm_nonneg _) h 2).trans_eq ?_
|
| 36 |
+
dsimp [R,d]
|
| 37 |
+
rw [mul_pow,mul_pow,← Real.exp_nat_mul,← pow_mul]
|
| 38 |
+
simp only [mul_assoc,← Real.exp_add]
|
| 39 |
+
congr 2 <;> ring_nf
|
| 40 |
+
have hg : ∑ i : SourceGrid U n × Fin 3, Real.exp (-(a.beams.c*(n:ℝ))*(d i)^2) ≤ 3*B := by
|
| 41 |
+
dsimp [d]
|
| 42 |
+
rw [Fintype.sum_prod_type]
|
| 43 |
+
simp only [Finset.sum_const,Finset.card_univ,Fintype.card_fin,nsmul_eq_mul]
|
| 44 |
+
rw [← Finset.mul_sum]
|
| 45 |
+
norm_num only [Nat.cast_ofNat]
|
| 46 |
+
apply mul_le_mul_of_nonneg_left _ (by norm_num)
|
| 47 |
+
simpa only [neg_mul] using hgauss U n hnpos x
|
| 48 |
+
have hh := finite_gaussian_tail d
|
| 49 |
+
(fun i ↦ ‖iteratedFDeriv ℝ k.val (latticeWave a.cover a.beams hUD n i.1 i.2) x‖^2)
|
| 50 |
+
(by have := a.beams.c_pos; positivity : 0 ≤ a.beams.c*(n:ℝ))
|
| 51 |
+
(by dsimp [R]; positivity : 0 ≤ R) hr (fun i ↦ sourceEuclideanNorm_nonneg _) hb hg
|
| 52 |
+
convert hh using 1
|
| 53 |
+
dsimp [R]
|
| 54 |
+
simp only [neg_mul]
|
| 55 |
+
ring
|
| 56 |
+
|
| 57 |
+
theorem lattice_nonmain_derivative_bound (hUD : U ⊆ D) :
|
| 58 |
+
∃ C > 0, ∀ᶠ n : ℕ in atTop, ∀ [Fintype (SourceGrid U n)], ∀ x : Coord,
|
| 59 |
+
∀ k : Fin (k0+1),
|
| 60 |
+
∑ i ∈ Finset.univ.filter (fun i : SourceGrid U n × Fin 3 ↦
|
| 61 |
+
(n:ℝ)^(-5/12:ℝ) < sourceEuclideanNorm (x-scaledLatticePoint n i.1)),
|
| 62 |
+
‖iteratedFDeriv ℝ k.val (latticeWave a.cover a.beams hUD n i.1 i.2) x‖^2 ≤
|
| 63 |
+
C*(n:ℝ)^(2*k.val)*Real.exp (2*(n:ℝ)*S x)*Real.exp (-a.beams.c*(n:ℝ)^(1/6:ℝ)) := by
|
| 64 |
+
obtain ⟨C,hC,hb⟩ := a.lattice_derivative_tail_bound hUD
|
| 65 |
+
refine ⟨C,hC,?_⟩
|
| 66 |
+
filter_upwards [hb,eventually_gt_atTop (0:ℕ)] with n hn hnpos
|
| 67 |
+
intro hfin x k
|
| 68 |
+
have h := hn x k ((n:ℝ)^(-5/12:ℝ)) (by positivity)
|
| 69 |
+
rwa [mul_assoc (-a.beams.c),main_center_scale _ (by exact_mod_cast hnpos)] at h
|
| 70 |
+
|
| 71 |
+
end LocalCompactWaveData
|
| 72 |
+
end
|
| 73 |
+
end Yau.Geometry
|
| 74 |
+
|
| 75 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeDirectionalCenters.lean
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.HalfScaleLemmas
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeGeometry
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Set Metric Filter
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
def unitDirection (v : Coord) : Coord := (‖v‖⁻¹:ℝ) • v
|
| 11 |
+
|
| 12 |
+
lemma norm_unitDirection_le (v : Coord) : ‖unitDirection v‖ ≤ 1 := by
|
| 13 |
+
by_cases hv : v = 0
|
| 14 |
+
· simp [unitDirection,hv]
|
| 15 |
+
have hn : 0 < ‖v‖ := norm_pos_iff.mpr hv
|
| 16 |
+
simp only [unitDirection,norm_smul,Real.norm_eq_abs,abs_of_pos (inv_pos.mpr hn),inv_mul_cancel₀ hn.ne']
|
| 17 |
+
exact le_rfl
|
| 18 |
+
|
| 19 |
+
def directionalLatticeIndex (n : ℕ) (x : Coord) (K : ℝ) (v : Coord) : Fin 4 → ℤ :=
|
| 20 |
+
roundedLatticeIndex n (x+(K*(n:ℝ)^(-1/2:ℝ)) • unitDirection v)
|
| 21 |
+
|
| 22 |
+
lemma directional_rounding_error {n : ℕ} (hn : 0 < n) (x : Coord) (K : ℝ) (v : Coord) :
|
| 23 |
+
‖scaledLatticePoint n (directionalLatticeIndex n x K v)-
|
| 24 |
+
(x+(K*(n:ℝ)^(-1/2:ℝ)) • unitDirection v)‖ ≤ 2*(n:ℝ)^(-1/2:ℝ) :=
|
| 25 |
+
(norm_le_sourceEuclideanNorm _).trans (rounded_lattice_distance hn _)
|
| 26 |
+
|
| 27 |
+
lemma directional_center_distance {n : ℕ} (hn : 0 < n) (x : Coord) (K : ℝ) (hK : 0 ≤ K) (v : Coord) :
|
| 28 |
+
‖scaledLatticePoint n (directionalLatticeIndex n x K v)-x‖ ≤ (K+2)*(n:ℝ)^(-1/2:ℝ) := by
|
| 29 |
+
let z := x+(K*(n:ℝ)^(-1/2:ℝ)) • unitDirection v
|
| 30 |
+
have h := norm_sub_le_norm_sub_add_norm_sub (scaledLatticePoint n (directionalLatticeIndex n x K v)) z x
|
| 31 |
+
have hz : ‖z-x‖ ≤ K*(n:ℝ)^(-1/2:ℝ) := by
|
| 32 |
+
simp only [z,add_sub_cancel_left,norm_smul,Real.norm_eq_abs,
|
| 33 |
+
abs_of_nonneg (mul_nonneg hK (lattice_scale_pos hn).le)]
|
| 34 |
+
exact (mul_le_mul_of_nonneg_left (norm_unitDirection_le v)
|
| 35 |
+
(mul_nonneg hK (lattice_scale_pos hn).le)).trans_eq (mul_one _)
|
| 36 |
+
have hr := directional_rounding_error hn x K v
|
| 37 |
+
dsimp [z] at h hz
|
| 38 |
+
nlinarith
|
| 39 |
+
|
| 40 |
+
lemma directional_center_mem {U : Set Coord} {n : ℕ} (hn : 0 < n)
|
| 41 |
+
(x : Coord) (K : ℝ) (hK : 0 ≤ K) (v : Coord)
|
| 42 |
+
(hball : closedBall x ((K+2)*(n:ℝ)^(-1/2:ℝ)) ⊆ U) :
|
| 43 |
+
scaledLatticePoint n (directionalLatticeIndex n x K v) ∈ U :=
|
| 44 |
+
hball (by simpa only [mem_closedBall,dist_eq_norm] using directional_center_distance hn x K hK v)
|
| 45 |
+
|
| 46 |
+
end
|
| 47 |
+
end Yau.Geometry
|
| 48 |
+
|
| 49 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeEnergyLowerBound.lean
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.FiniteJetEnergy
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeDirectionalCenters
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LocalCovarianceGeometry
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Set Metric Filter
|
| 9 |
+
open scoped ContDiff Topology
|
| 10 |
+
noncomputable section
|
| 11 |
+
|
| 12 |
+
lemma compact_inner_ball {Q U : Set Coord} (hQ : IsCompact Q) (hU : IsOpen U) (hQU : Q ⊆ U) :
|
| 13 |
+
∃ r > 0, ∀ x ∈ Q, closedBall x r ⊆ U := by
|
| 14 |
+
let : CompactSpace Q := isCompact_iff_compactSpace.mp hQ
|
| 15 |
+
obtain ⟨r,hr,hri⟩ := compact_family_common_radius isCompact_univ
|
| 16 |
+
(fun z : Q × Coord ↦ (z.1:Coord)+z.2)
|
| 17 |
+
((continuous_subtype_val.comp continuous_fst).add continuous_snd)
|
| 18 |
+
hU (fun t _ ↦ by simpa only [add_zero] using hQU t.property)
|
| 19 |
+
refine ⟨r/2,by positivity,?_⟩
|
| 20 |
+
intro x hx z hz
|
| 21 |
+
have hn : ‖z-x‖ ≤ r/2 := by simpa only [mem_closedBall,dist_eq_norm] using hz
|
| 22 |
+
have h := hri ⟨x,hx⟩ (mem_univ _) (z-x) (by linarith)
|
| 23 |
+
simpa using h
|
| 24 |
+
|
| 25 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 26 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 27 |
+
namespace LocalCompactWaveData
|
| 28 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 29 |
+
|
| 30 |
+
def latticeEnergy (hUD : U ⊆ D) (n : ℕ) (hfin : Fintype (SourceGrid U n))
|
| 31 |
+
(x : Coord) (b : ℝ) (v : Coord) : ℝ :=
|
| 32 |
+
letI := hfin
|
| 33 |
+
∑ i : SourceGrid U n × Fin 3,
|
| 34 |
+
‖dualWaveCoefficient n (latticeWave a.cover a.beams hUD n i.1 i.2) (S x) x b v‖^2
|
| 35 |
+
|
| 36 |
+
theorem lattice_energy_lower_bound (hUD : U ⊆ D) (hU : IsOpen U) (hUb : Bornology.IsBounded U)
|
| 37 |
+
{Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U) :
|
| 38 |
+
∃ c > 0, ∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), ∀ x ∈ Q, ∀ b v,
|
| 39 |
+
c/(n:ℝ)*(b^2+‖v‖^2) ≤ a.latticeEnergy hUD n hfin x b v := by
|
| 40 |
+
obtain ⟨mu,hmu,B,hB,hgeom⟩ := a.original_covariance_geometry
|
| 41 |
+
obtain ⟨e,he,E,hE,heta⟩ := a.lattice_eta_bounds hUD
|
| 42 |
+
let R : ℝ := (2*B+2)/mu
|
| 43 |
+
have hR : 0 < R := by dsimp [R]; positivity
|
| 44 |
+
let L := R+2
|
| 45 |
+
have hL : 0 < L := by dsimp [L]; linarith
|
| 46 |
+
have hlarge : 2*B+1 ≤ R*mu := by dsimp [R]; rw [div_mul_cancel₀ _ hmu.ne']; linarith
|
| 47 |
+
obtain ⟨Ca,hCa,Cr,hCr,Ci,hCi,s,hs,C,hC,hjets⟩ := a.lattice_logarithmic_jet_estimates hUD L hL
|
| 48 |
+
let F := B+E*B*L+Cr
|
| 49 |
+
have hF : 0 ≤ F := by dsimp [F]; positivity
|
| 50 |
+
let kappa := e^2/(2*(e+F+1)^2)
|
| 51 |
+
have hkappa : 0 < kappa := by dsimp [kappa]; positivity
|
| 52 |
+
obtain ⟨r,hr,hinner⟩ := compact_inner_ball hQ hU hQU
|
| 53 |
+
refine ⟨s^2*kappa/2,by positivity,?_⟩
|
| 54 |
+
filter_upwards [hjets,eventually_nat_frequency (half_scale_eventually L 1 r hr),
|
| 55 |
+
eventually_nat_frequency (half_scale_eventually (2*Cr) 1 e he)] with n hj hn hsmall
|
| 56 |
+
have hn1 : 1 ≤ n := by exact_mod_cast hn.1
|
| 57 |
+
have hnpos : 0 < n := by omega
|
| 58 |
+
have hN : 0 < (n:ℝ) := by exact_mod_cast hnpos
|
| 59 |
+
let h := (n:ℝ)^(-1/2:ℝ)
|
| 60 |
+
have hh : 0 < h := lattice_scale_pos hnpos
|
| 61 |
+
have hh1 : h ≤ 1 := Real.rpow_le_one_of_one_le_of_nonpos hn.1 (by norm_num)
|
| 62 |
+
let : Finite (SourceGrid U n) := finite_source_grid hUb hnpos
|
| 63 |
+
let hfin : Fintype (SourceGrid U n) := Fintype.ofFinite _
|
| 64 |
+
refine ⟨hfin,?_⟩
|
| 65 |
+
intro x hx b v
|
| 66 |
+
have hxD := hUD (hQU hx)
|
| 67 |
+
have hball : closedBall x (L*h) ⊆ U := (closedBall_subset_closedBall hn.2.1).trans (hinner x hx)
|
| 68 |
+
let z (v : Coord) : SourceGrid U n := ⟨directionalLatticeIndex n x R v,
|
| 69 |
+
directional_center_mem hnpos x R hR.le v hball⟩
|
| 70 |
+
let V (v : Coord) := latticeWave a.cover a.beams hUD n (z v) 0
|
| 71 |
+
let yy (v : Coord) := scaledLatticePoint n (z v)
|
| 72 |
+
have hdist (v : Coord) : ‖x-yy v‖ ≤ L*h := by
|
| 73 |
+
rw [norm_sub_rev]
|
| 74 |
+
exact directional_center_distance hnpos x R hR.le v
|
| 75 |
+
have hjet (v : Coord) := hj (z v) 0 x (hdist v)
|
| 76 |
+
let Rp := b+(normalizedLogJet n (V v) x v).re
|
| 77 |
+
let Rm := b+(normalizedLogJet n (V (-v)) x v).re
|
| 78 |
+
let pp := g (yy v) (x-yy v) v
|
| 79 |
+
let pm := g (yy (-v)) (x-yy (-v)) v
|
| 80 |
+
let ep := a.latticeEta hUD n (z v) 0
|
| 81 |
+
let em := a.latticeEta hUD n (z (-v)) 0
|
| 82 |
+
have hgp := hgeom (yy v) (hUD (z v).property)
|
| 83 |
+
have hgm := hgeom (yy (-v)) (hUD (z (-v)).property)
|
| 84 |
+
have hpp : pp ≤ -h*‖v‖ := rounded_positive_pairing (g (yy v)) mu B R h hmu hB.le hR.le hh.le
|
| 85 |
+
hgp.1 hgp.2.2 hlarge x (yy v) v (directional_rounding_error hnpos x R v)
|
| 86 |
+
have hpm : h*‖v‖ ≤ pm := by
|
| 87 |
+
have hh' := rounded_positive_pairing (g (yy (-v))) mu B R h hmu hB.le hR.le hh.le
|
| 88 |
+
hgm.1 hgm.2.2 hlarge x (yy (-v)) (-v) (directional_rounding_error hnpos x R (-v))
|
| 89 |
+
simp only [map_neg,norm_neg] at hh'
|
| 90 |
+
dsimp [pm]
|
| 91 |
+
linarith
|
| 92 |
+
have herr (u : Coord) : |(b+(normalizedLogJet n (V u) x v).re)-
|
| 93 |
+
((b+fderiv ℝ S x v)-a.latticeEta hUD n (z u) 0*g (yy u) (x-yy u) v)| ≤ Cr*h^2*‖v‖ := by
|
| 94 |
+
have hh' := ((hjet u).2.2.2.2.2 v).1
|
| 95 |
+
have heq : Cr/(n:ℝ)*‖v‖ = Cr*h^2*‖v‖ := by dsimp [h]; rw [half_scale_square hN]; ring
|
| 96 |
+
rw [heq] at hh'
|
| 97 |
+
convert hh' using 1
|
| 98 |
+
congr 1
|
| 99 |
+
ring
|
| 100 |
+
have hdiff : e*h*‖v‖ ≤ Rp-Rm := opposite_real_products (b+fderiv ℝ S x v)
|
| 101 |
+
Rp Rm ep em pp pm h ‖v‖ e Cr hh.le (norm_nonneg _) he.le
|
| 102 |
+
(heta n (z v) 0).1 (heta n (z (-v)) 0).1 hpp hpm (herr v) (herr (-v)) hsmall.2.1
|
| 103 |
+
have hprod : |ep*pp| ≤ E*B*L*‖v‖ := by
|
| 104 |
+
have hpabs := (bilinear_pairing_bound (g (yy v)) (x-yy v) v).trans
|
| 105 |
+
(show ‖g (yy v)‖*‖x-yy v‖*‖v‖ ≤ B*(L*h)*‖v‖ by
|
| 106 |
+
gcongr
|
| 107 |
+
· exact hgp.1
|
| 108 |
+
· exact hdist v)
|
| 109 |
+
have hepos : 0 ≤ ep := he.le.trans (heta n (z v) 0).1
|
| 110 |
+
rw [abs_mul,abs_of_nonneg hepos]
|
| 111 |
+
calc
|
| 112 |
+
ep*|pp| ≤ E*(B*(L*h)*‖v‖) := mul_le_mul (heta n (z v) 0).2 hpabs (abs_nonneg _) hE.le
|
| 113 |
+
_ ≤ E*(B*L*‖v‖) := by
|
| 114 |
+
gcongr
|
| 115 |
+
simpa using mul_le_mul_of_nonneg_left hh1 hL.le
|
| 116 |
+
_ = _ := by ring
|
| 117 |
+
have hSv : |fderiv ℝ S x v| ≤ B*‖v‖ :=
|
| 118 |
+
((fderiv ℝ S x).le_opNorm v).trans (mul_le_mul_of_nonneg_right (hgeom x hxD).2.1 (norm_nonneg v))
|
| 119 |
+
have hErr : Cr*h^2*‖v‖ ≤ Cr*‖v‖ := by
|
| 120 |
+
have hh2 := pow_le_pow_left₀ hh.le hh1 2
|
| 121 |
+
nlinarith [mul_nonneg hCr.le (norm_nonneg v)]
|
| 122 |
+
have hlog : |(normalizedLogJet n (V v) x v).re| ≤ F*‖v‖ := by
|
| 123 |
+
have hpR := abs_le.mp ((herr v).trans hErr)
|
| 124 |
+
have hpP := abs_le.mp hprod
|
| 125 |
+
have hpS := abs_le.mp hSv
|
| 126 |
+
dsimp [F,Rp,ep,pp] at *
|
| 127 |
+
apply abs_le.mpr
|
| 128 |
+
constructor <;> nlinarith
|
| 129 |
+
have hb : |b| ≤ |Rp|+F*‖v‖ := by
|
| 130 |
+
have ht := norm_sub_le (b+(normalizedLogJet n (V v) x v).re) (normalizedLogJet n (V v) x v).re
|
| 131 |
+
have ht' : |b| ≤ |Rp|+|(normalizedLogJet n (V v) x v).re| := by simpa only [add_sub_cancel_right,Real.norm_eq_abs] using ht
|
| 132 |
+
exact ht'.trans (add_le_add le_rfl hlog)
|
| 133 |
+
have hpair := paired_products_control b ‖v‖ Rp Rm h e F (norm_nonneg _) hh hh1 he hF hdiff hb
|
| 134 |
+
let f (i : SourceGrid U n × Fin 3) := dualWaveCoefficient n
|
| 135 |
+
(latticeWave a.cover a.beams hUD n i.1 i.2) (S x) x b v
|
| 136 |
+
have hcoef (u : Coord) : s*|b+(normalizedLogJet n (V u) x v).re| ≤ ‖f (z u,0)‖ :=
|
| 137 |
+
(mul_le_mul_of_nonneg_right (hjet u).2.2.2.2.1.1 (abs_nonneg _)).trans
|
| 138 |
+
(real_log_product_le_coefficient n (V u) (S x) x b v (hjet u).2.2.2.1)
|
| 139 |
+
have henergy := two_coefficient_energy f (z v,0) (z (-v),0) s Rp Rm hs.le (hcoef v) (hcoef (-v))
|
| 140 |
+
have hpair' := mul_le_mul_of_nonneg_left hpair (sq_nonneg s)
|
| 141 |
+
have hhbound := hpair'.trans henergy
|
| 142 |
+
change s^2*(kappa*h^2*(b^2+‖v‖^2)) ≤ 2*a.latticeEnergy hUD n hfin x b v at hhbound
|
| 143 |
+
calc
|
| 144 |
+
_ = (s^2*(kappa*h^2*(b^2+‖v‖^2)))/2 := by dsimp [h]; rw [half_scale_square hN]; ring
|
| 145 |
+
_ ≤ _ := (div_le_iff₀ (by norm_num : (0:ℝ)<2)).mpr (by linarith)
|
| 146 |
+
|
| 147 |
+
end LocalCompactWaveData
|
| 148 |
+
|
| 149 |
+
end
|
| 150 |
+
end Yau.Geometry
|
| 151 |
+
|
| 152 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeFieldBounds.lean
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.FiniteWaveDerivativeBounds
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeCount
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LocalCompactWaves
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Yau.Probability Set Filter
|
| 9 |
+
open scoped ContDiff Topology
|
| 10 |
+
noncomputable section
|
| 11 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 12 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 13 |
+
namespace LocalCompactWaveData
|
| 14 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 15 |
+
|
| 16 |
+
theorem lattice_field_derivative_bound (hUD : U ⊆ D) (hUb : Bornology.IsBounded U) :
|
| 17 |
+
∃ C > 0, ∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n),
|
| 18 |
+
letI := hfin
|
| 19 |
+
∀ coeff : ((SourceGrid U n × Fin 3) × Fin 2) → ℝ,
|
| 20 |
+
coeff ∈ coefficientEvent (n:ℝ) →
|
| 21 |
+
ContDiff ℝ ∞ (gaussianWaveField
|
| 22 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2) coeff) ∧
|
| 23 |
+
∀ x : Coord, ∀ k : Fin (k0+1),
|
| 24 |
+
‖iteratedFDeriv ℝ k.val (gaussianWaveField
|
| 25 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2) coeff) x‖ ≤
|
| 26 |
+
C*(n:ℝ)^(k.val+3)*Real.exp ((n:ℝ)*S x) := by
|
| 27 |
+
obtain ⟨C,hC,hcard⟩ := source_coefficient_card_bound hUb
|
| 28 |
+
have hcw := a.beams.Cw_pos
|
| 29 |
+
have hbc := a.beams.c_pos
|
| 30 |
+
refine ⟨C*a.beams.Cw,mul_pos hC a.beams.Cw_pos,?_⟩
|
| 31 |
+
filter_upwards [a.estimates,eventually_gt_atTop (0:ℕ)] with n hn hnpos
|
| 32 |
+
have := finite_source_grid hUb hnpos
|
| 33 |
+
let hfin := Fintype.ofFinite (SourceGrid U n)
|
| 34 |
+
let := hfin
|
| 35 |
+
refine ⟨hfin,?_⟩
|
| 36 |
+
let V := fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2
|
| 37 |
+
have hV (i : SourceGrid U n × Fin 3) : ContDiff ℝ ∞ (V i) :=
|
| 38 |
+
(hn (latticeFrame a.cover hUD n i.1,i.2)).1
|
| 39 |
+
intro coeff hc
|
| 40 |
+
refine ⟨gaussianWaveField_contDiff V coeff hV,?_⟩
|
| 41 |
+
intro x k
|
| 42 |
+
have hb (i : SourceGrid U n × Fin 3) : ‖iteratedFDeriv ℝ k.val (V i) x‖ ≤
|
| 43 |
+
a.beams.Cw*(n:ℝ)^k.val*Real.exp ((n:ℝ)*S x) := by
|
| 44 |
+
have h := ((hn (latticeFrame a.cover hUD n i.1,i.2)).2.2.2.2 x).1 k
|
| 45 |
+
refine h.trans ?_
|
| 46 |
+
gcongr
|
| 47 |
+
exact sub_le_self _ (by positivity : 0 ≤ a.beams.c*(n:ℝ)*
|
| 48 |
+
(sourceEuclideanNorm (x-coverSourceCenter a.cover (latticeFrame a.cover hUD n i.1)))^2)
|
| 49 |
+
have h := gaussianWaveField_iterated_bound V coeff hV k.val x (by positivity) hc hb
|
| 50 |
+
have hcardR : (Fintype.card (SourceGrid U n × Fin 3):ℝ) ≤ C*(n:ℝ)^2 := by
|
| 51 |
+
simpa only [Nat.card_eq_fintype_card] using hcard n hnpos
|
| 52 |
+
refine h.trans ?_
|
| 53 |
+
calc
|
| 54 |
+
_ ≤ (C*(n:ℝ)^2)*(n:ℝ)*(a.beams.Cw*(n:ℝ)^k.val*Real.exp ((n:ℝ)*S x)) := by
|
| 55 |
+
gcongr
|
| 56 |
+
_ = (C*a.beams.Cw)*(n:ℝ)^(k.val+3)*Real.exp ((n:ℝ)*S x) := by
|
| 57 |
+
rw [pow_add]
|
| 58 |
+
ring
|
| 59 |
+
|
| 60 |
+
end LocalCompactWaveData
|
| 61 |
+
end
|
| 62 |
+
end Yau.Geometry
|
| 63 |
+
|
| 64 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeFrequencyAnnulus.lean
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Charts.MetricFrequencyBounds
|
| 2 |
+
import OAI.Geometry.NodalSets.Elliptic.SignScaleContinuity
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Set Filter
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
theorem lattice_main_frequency_annulus
|
| 12 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) {H : Set Coord}
|
| 13 |
+
(hH : IsCompact H) (hg : ContinuousOn g H)
|
| 14 |
+
(hp : ∀ y ∈ H, ∀ v, v ≠ 0 → 0 < g y v v) :
|
| 15 |
+
∃ κ > 0, ∃ B > 0, ∀ (w S : Coord → ℝ) (D U : Set Coord) (m J K k0 : ℕ)
|
| 16 |
+
(a : LocalCompactWaveData g w S D m J K k0) (_ : H ⊆ D) (hUD : U ⊆ D),
|
| 17 |
+
U ⊆ H → ∀ᶠ n : ℕ in atTop, ∀ x ∈ H, ∀ i : SourceGrid U n × Fin 3,
|
| 18 |
+
sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ) →
|
| 19 |
+
κ ≤ sourceEuclideanNorm (sourceFrequency (g (scaledLatticePoint n i.1))
|
| 20 |
+
(a.cover.triple.q (latticeFrame a.cover hUD n i.1) i.2) (sourceSignScale g S x)) ∧
|
| 21 |
+
sourceEuclideanNorm (sourceFrequency (g (scaledLatticePoint n i.1))
|
| 22 |
+
(a.cover.triple.q (latticeFrame a.cover hUD n i.1) i.2) (sourceSignScale g S x)) ≤ B := by
|
| 23 |
+
obtain ⟨κ,hκ,B,hB,hmetric⟩ := compact_metric_frequency_bounds g hH hg hp
|
| 24 |
+
refine ⟨κ,hκ,B,hB,?_⟩
|
| 25 |
+
intro w S D U m J K k0 a hHD hUD hUH
|
| 26 |
+
filter_upwards [a.source_main_scale_comparison hH hHD] with n hn
|
| 27 |
+
intro x hx i hi
|
| 28 |
+
have hy : scaledLatticePoint n i.1 ∈ H := hUH i.1.property
|
| 29 |
+
have hr := hn x hx _ hy hi
|
| 30 |
+
have hx0 : 0 < sourceSignScale g S x := by linarith [a.source_sign_scale_lower x (hHD hx)]
|
| 31 |
+
have hy0 : 0 < sourceSignScale g S (scaledLatticePoint n i.1) := by
|
| 32 |
+
linarith [a.source_sign_scale_lower _ (hUD i.1.property)]
|
| 33 |
+
apply hmetric _ hy _ _ _ hx0 hy0 _ hr.1 hr.2
|
| 34 |
+
simpa only [latticeFrame_center] using a.original_direction_length (latticeFrame a.cover hUD n i.1) i.2
|
| 35 |
+
|
| 36 |
+
end
|
| 37 |
+
end Yau.Geometry
|
| 38 |
+
|
| 39 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeFullPlaneWaveApprox.lean
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.LatticePlaneWaveJets
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.RescaledLatticeTail
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Set Filter
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 11 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 12 |
+
namespace LocalCompactWaveData
|
| 13 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 14 |
+
|
| 15 |
+
def latticePlaneWaveCoefficient (hUD : U ⊆ D) (n : ℕ) [Fintype (SourceGrid U n)]
|
| 16 |
+
(x : Coord) (s : ℝ) (i : SourceGrid U n × Fin 3) (v : Coord) : ℂ :=
|
| 17 |
+
if sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ) then
|
| 18 |
+
a.latticeAlpha hUD n x i *
|
| 19 |
+
planeWave (g (scaledLatticePoint n i.1) (a.cover.triple.q (latticeFrame a.cover hUD n i.1) i.2)) s v
|
| 20 |
+
else 0
|
| 21 |
+
|
| 22 |
+
theorem lattice_full_jet_approximation (hUD : U ⊆ D) (hU : IsOpen U)
|
| 23 |
+
(hUb : Bornology.IsBounded U) {Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U)
|
| 24 |
+
(hS : ContDiff ℝ ∞ S) (R : ℝ) (hR : 0 ≤ R) (e : ℝ) (he : 0 < e) :
|
| 25 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 26 |
+
∀ x ∈ Q, ∀ s : ℝ, 1 ≤ s → ∀ v : Coord, ‖v‖ ≤ R → ∀ k : Fin (k0+1),
|
| 27 |
+
∑ i : SourceGrid U n × Fin 3,
|
| 28 |
+
‖iteratedFDeriv ℝ k.val (fun z ↦
|
| 29 |
+
normalizedRescaling (latticeWave a.cover a.beams hUD n i.1 i.2) S n s
|
| 30 |
+
(a.latticeSigma hUD n x) x z - a.latticePlaneWaveCoefficient hUD n x s i z) v‖^2 ≤ e := by
|
| 31 |
+
classical
|
| 32 |
+
filter_upwards [a.lattice_main_jet_approximation hUD hU hUb hQ hQU R hR k0 (e/2) (by positivity),
|
| 33 |
+
a.rescaled_lattice_nonmain_negligible hUD hU hUb hQ hQU hS R hR (e/2) (by positivity)]
|
| 34 |
+
with n hmain htail
|
| 35 |
+
obtain ⟨hfin,hm⟩ := hmain
|
| 36 |
+
obtain ⟨hfin',ht⟩ := htail
|
| 37 |
+
have heq : hfin' = hfin := Subsingleton.elim _ _
|
| 38 |
+
subst hfin'
|
| 39 |
+
let := hfin
|
| 40 |
+
refine ⟨hfin,?_⟩
|
| 41 |
+
intro x hx s hs v hv k
|
| 42 |
+
let P := fun i : SourceGrid U n × Fin 3 ↦
|
| 43 |
+
sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ)
|
| 44 |
+
let err := fun i : SourceGrid U n × Fin 3 ↦
|
| 45 |
+
‖iteratedFDeriv ℝ k.val (fun z ↦
|
| 46 |
+
normalizedRescaling (latticeWave a.cover a.beams hUD n i.1 i.2) S n s
|
| 47 |
+
(a.latticeSigma hUD n x) x z-a.latticePlaneWaveCoefficient hUD n x s i z) v‖^2
|
| 48 |
+
have hm' : ∑ i ∈ Finset.univ.filter P, err i ≤ e/2 := by
|
| 49 |
+
have hh := hm x hx s hs v hv k.val (by omega)
|
| 50 |
+
convert hh using 1
|
| 51 |
+
apply Finset.sum_congr rfl
|
| 52 |
+
intro i hi
|
| 53 |
+
have hp := (Finset.mem_filter.mp hi).2
|
| 54 |
+
dsimp only [P] at hp
|
| 55 |
+
simp only [err,latticePlaneWaveCoefficient,ite_eq_left hp]
|
| 56 |
+
have ht' : ∑ i ∈ Finset.univ.filter (fun i ↦ ¬P i), err i ≤ e/2 := by
|
| 57 |
+
have hh := ht x hx s hs v hv k
|
| 58 |
+
convert hh using 1
|
| 59 |
+
· apply Finset.sum_congr
|
| 60 |
+
· ext i; simp only [P,Finset.mem_filter,not_le]
|
| 61 |
+
· intro i hi
|
| 62 |
+
have hp := (Finset.mem_filter.mp hi).2
|
| 63 |
+
simp only [err,latticePlaneWaveCoefficient,ite_eq_right (not_le.mpr hp),sub_zero]
|
| 64 |
+
have hsplit := Finset.sum_filter_add_sum_filter_not (s := Finset.univ) P err
|
| 65 |
+
change ∑ i, err i ≤ e
|
| 66 |
+
linarith
|
| 67 |
+
|
| 68 |
+
end LocalCompactWaveData
|
| 69 |
+
end
|
| 70 |
+
end Yau.Geometry
|
| 71 |
+
|
| 72 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeGaussianSmallBall.lean
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.EuclideanGaussianSmallBall
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.GaussianJet
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LatticeCovariance
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory ProbabilityTheory
|
| 9 |
+
open scoped ContDiff Topology ENNReal RealInnerProductSpace
|
| 10 |
+
noncomputable section
|
| 11 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 12 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 13 |
+
namespace LocalCompactWaveData
|
| 14 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 15 |
+
|
| 16 |
+
def latticeSeededJet (hUD : U ⊆ D) (n : ℕ) (hfin : Fintype (SourceGrid U n))
|
| 17 |
+
(seed : Coord → ℝ) (x : Coord)
|
| 18 |
+
(coeff : ((SourceGrid U n × Fin 3) × Fin 2) → ℝ) : JetSpace :=
|
| 19 |
+
letI := hfin
|
| 20 |
+
let V := fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2
|
| 21 |
+
normalizedRealJet (fun z ↦ seed z+gaussianWaveField V coeff z) (n:ℝ) (S x) x
|
| 22 |
+
|
| 23 |
+
lemma latticeSeededJet_inner (hUD : U ⊆ D) (n : ℕ) (hfin : Fintype (SourceGrid U n))
|
| 24 |
+
(seed : Coord → ℝ) (x : Coord) (v : JetSpace)
|
| 25 |
+
(coeff : ((SourceGrid U n × Fin 3) × Fin 2) → ℝ) :
|
| 26 |
+
⟪v,a.latticeSeededJet hUD n hfin seed x coeff⟫ =
|
| 27 |
+
a.latticeSeededRandomDual hUD n hfin seed x (v 0) (Fin.tail (WithLp.ofLp v)) coeff := by
|
| 28 |
+
let := hfin
|
| 29 |
+
unfold latticeSeededJet latticeSeededRandomDual
|
| 30 |
+
exact normalizedRealJet_inner
|
| 31 |
+
(fun z ↦ seed z + gaussianWaveField
|
| 32 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2)
|
| 33 |
+
coeff z) (n : ℝ) (S x) x v
|
| 34 |
+
|
| 35 |
+
theorem actual_lattice_gaussian_small_ball (hUD : U ⊆ D) (hU : IsOpen U)
|
| 36 |
+
(hUb : Bornology.IsBounded U) {Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U) :
|
| 37 |
+
∃ c > 0, ∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n),
|
| 38 |
+
letI := hfin
|
| 39 |
+
∀ (seed : Coord → ℝ) (x : Coord), x ∈ Q → DifferentiableAt ℝ seed x →
|
| 40 |
+
∀ r : ℝ, 0 ≤ r →
|
| 41 |
+
(gaussianPairs.map (a.latticeSeededJet hUD n hfin seed x)) {y | ‖y‖ ≤ r} ≤
|
| 42 |
+
ENNReal.ofReal ((12*(Real.sqrt (c/(n:ℝ)))⁻¹*r/Real.sqrt (2*Real.pi))^5) := by
|
| 43 |
+
obtain ⟨c,hc,hcov⟩ := a.actual_lattice_covariance_lower_bound hUD hU hUb hQ hQU
|
| 44 |
+
refine ⟨c,hc,?_⟩
|
| 45 |
+
filter_upwards [hcov,lattice_wave_estimates a.cover a.beams hUD,
|
| 46 |
+
eventually_gt_atTop (0:ℕ)] with n hn hw hnpos
|
| 47 |
+
obtain ⟨hfin,hbound⟩ := hn
|
| 48 |
+
let := hfin
|
| 49 |
+
refine ⟨hfin,?_⟩
|
| 50 |
+
intro seed x hx hs r hr
|
| 51 |
+
let V := fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2
|
| 52 |
+
have hV : ∀ i, DifferentiableAt ℝ (V i) x := fun i ↦
|
| 53 |
+
((hw i.1 i.2).1.differentiable (by simp)).differentiableAt
|
| 54 |
+
have hb (v : JetSpace) : c/(n:ℝ)*‖v‖^2 ≤
|
| 55 |
+
‖(pairJetMap (jetWaveCoefficients V n (S x) x)).adjoint v‖^2 := by
|
| 56 |
+
have h := hbound seed x hx hs (v 0) (Fin.tail (WithLp.ofLp v))
|
| 57 |
+
have he : (fun coeff ↦ ⟪v,a.latticeSeededJet hUD n hfin seed x coeff⟫) =
|
| 58 |
+
a.latticeSeededRandomDual hUD n hfin seed x (v 0) (Fin.tail (WithLp.ofLp v)) := by
|
| 59 |
+
funext coeff
|
| 60 |
+
exact a.latticeSeededJet_inner hUD n hfin seed x v coeff
|
| 61 |
+
rw [← he] at h
|
| 62 |
+
change c/(n:ℝ)*((v 0)^2+∑ i : Fin 4, (v i.succ)^2) ≤
|
| 63 |
+
Var[fun coeff ↦ ⟪v,normalizedRealJet (fun y ↦ seed y+gaussianWaveField V coeff y)
|
| 64 |
+
(n:ℝ) (S x) x⟫; gaussianPairs] at h
|
| 65 |
+
rw [seeded_gaussian_jet_variance V seed n (S x) x hV hs v] at h
|
| 66 |
+
simpa only [EuclideanSpace.real_norm_sq_eq,Fin.sum_univ_succ] using h
|
| 67 |
+
have hl := seeded_gaussian_jet_law V seed n (S x) x hV hs
|
| 68 |
+
change gaussianPairs.map (a.latticeSeededJet hUD n hfin seed x) = _ at hl
|
| 69 |
+
rw [hl]
|
| 70 |
+
have h := gaussian_map_small_ball (pairJetMap (jetWaveCoefficients V n (S x) x))
|
| 71 |
+
(normalizedRealJet seed n (S x) x) (c/(n:ℝ)) r (by positivity) hr hb
|
| 72 |
+
convert h using 1
|
| 73 |
+
norm_num
|
| 74 |
+
congr 2
|
| 75 |
+
ring
|
| 76 |
+
|
| 77 |
+
end LocalCompactWaveData
|
| 78 |
+
end
|
| 79 |
+
end Yau.Geometry
|
| 80 |
+
|
| 81 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeGeometry.lean
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib.Algebra.Order.Floor.Ring
|
| 2 |
+
import Mathlib.Data.Int.Interval
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LatticeSourceWaves
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Set
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
lemma lattice_scale_pos {n : ℕ} (hn : 0 < n) : 0 < (n:ℝ)^(-1/2:ℝ) :=
|
| 12 |
+
Real.rpow_pos_of_pos (by exact_mod_cast hn) _
|
| 13 |
+
|
| 14 |
+
lemma scaledLatticePoint_injective {n : ℕ} (hn : 0 < n) : Function.Injective (scaledLatticePoint n) := by
|
| 15 |
+
intro z w h
|
| 16 |
+
funext i
|
| 17 |
+
have hh := congrFun h i
|
| 18 |
+
change (n:ℝ)^(-1/2:ℝ)*(z i:ℝ) = (n:ℝ)^(-1/2:ℝ)*(w i:ℝ) at hh
|
| 19 |
+
exact_mod_cast mul_left_cancel₀ (ne_of_gt (lattice_scale_pos hn)) hh
|
| 20 |
+
|
| 21 |
+
theorem finite_source_grid {U : Set Coord} (hU : Bornology.IsBounded U)
|
| 22 |
+
{n : ℕ} (hn : 0 < n) : Finite (SourceGrid U n) := by
|
| 23 |
+
obtain ⟨B,hB,hbound⟩ := hU.exists_pos_norm_le
|
| 24 |
+
let r : ℝ := (n:ℝ)^(-1/2:ℝ)
|
| 25 |
+
have hr : 0 < r := lattice_scale_pos hn
|
| 26 |
+
let M : ℤ := ⌈B/r⌉
|
| 27 |
+
have hcoords (z : SourceGrid U n) (i : Fin 4) : z.val i ∈ Icc (-M) M := by
|
| 28 |
+
have hi := (norm_le_pi_norm (scaledLatticePoint n z) i).trans (hbound _ z.property)
|
| 29 |
+
change |r*(z.val i:ℝ)| ≤ B at hi
|
| 30 |
+
rw [abs_mul,abs_of_pos hr] at hi
|
| 31 |
+
have ha : |(z.val i:ℝ)| ≤ B/r := (le_div_iff₀ hr).mpr (by nlinarith)
|
| 32 |
+
have hM : B/r ≤ (M:ℝ) := Int.le_ceil _
|
| 33 |
+
have hpair := abs_le.mp (ha.trans hM)
|
| 34 |
+
constructor
|
| 35 |
+
· exact_mod_cast hpair.1
|
| 36 |
+
· exact_mod_cast hpair.2
|
| 37 |
+
let f : SourceGrid U n → (Fin 4 → Icc (-M) M) := fun z i ↦ ⟨z.val i,hcoords z i⟩
|
| 38 |
+
apply Finite.of_injective f
|
| 39 |
+
intro z w h
|
| 40 |
+
apply Subtype.ext
|
| 41 |
+
funext i
|
| 42 |
+
exact congrArg Subtype.val (congrFun h i)
|
| 43 |
+
|
| 44 |
+
def roundedLatticeIndex (n : ℕ) (x : Coord) : Fin 4 → ℤ :=
|
| 45 |
+
fun i ↦ ⌊x i / (n:ℝ)^(-1/2:ℝ)⌋
|
| 46 |
+
|
| 47 |
+
theorem rounded_lattice_distance {n : ℕ} (hn : 0 < n) (x : Coord) :
|
| 48 |
+
sourceEuclideanNorm (scaledLatticePoint n (roundedLatticeIndex n x)-x) ≤
|
| 49 |
+
2*(n:ℝ)^(-1/2:ℝ) := by
|
| 50 |
+
let r : ℝ := (n:ℝ)^(-1/2:ℝ)
|
| 51 |
+
have hr : 0 < r := lattice_scale_pos hn
|
| 52 |
+
have hb : ‖scaledLatticePoint n (roundedLatticeIndex n x)-x‖ ≤ r := by
|
| 53 |
+
apply (pi_norm_le_iff_of_nonneg hr.le).mpr
|
| 54 |
+
intro i
|
| 55 |
+
have h1 := Int.floor_le (x i/r)
|
| 56 |
+
have h2 := Int.lt_floor_add_one (x i/r)
|
| 57 |
+
have h1' := mul_le_mul_of_nonneg_left h1 hr.le
|
| 58 |
+
have h2' := mul_lt_mul_of_pos_left h2 hr
|
| 59 |
+
have he : r*(x i/r) = x i := by field_simp
|
| 60 |
+
rw [he] at h1' h2'
|
| 61 |
+
change |r*(⌊x i/r⌋:ℝ)-x i| ≤ r
|
| 62 |
+
apply abs_le.mpr
|
| 63 |
+
constructor <;> nlinarith
|
| 64 |
+
exact (sourceEuclideanNorm_le _).trans (by dsimp [r] at hb ⊢; linarith)
|
| 65 |
+
|
| 66 |
+
theorem rounded_lattice_mem {U : Set Coord} {n : ℕ} (hn : 0 < n) (x : Coord)
|
| 67 |
+
(hball : {y | sourceEuclideanNorm (y-x) ≤ 2*(n:ℝ)^(-1/2:ℝ)} ⊆ U) :
|
| 68 |
+
scaledLatticePoint n (roundedLatticeIndex n x) ∈ U :=
|
| 69 |
+
hball (rounded_lattice_distance hn x)
|
| 70 |
+
|
| 71 |
+
end
|
| 72 |
+
end Yau.Geometry
|
| 73 |
+
|
| 74 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeGoodEvent.lean
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.FirstJetGoodEvent
|
| 2 |
+
import OAI.Geometry.NodalSets.Elliptic.FirstJetNonvanishing
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 11 |
+
{D U : Set Coord} {m J K k0 : ℕ}
|
| 12 |
+
namespace LocalCompactWaveData
|
| 13 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 14 |
+
|
| 15 |
+
def latticeGoodEvent (hUD : U ⊆ D) (n : ℕ) (hfin : Fintype (SourceGrid U n))
|
| 16 |
+
(S0 T0 : Coord → ℝ) (Ω : Set Coord) : Set (((SourceGrid U n × Fin 3) × Fin 2) → ℝ) :=
|
| 17 |
+
letI := hfin
|
| 18 |
+
coefficientJetGoodEvent
|
| 19 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2)
|
| 20 |
+
(oscillatorySeed S0 T0 n) n Ω
|
| 21 |
+
(fun x ↦ ((n:ℝ)^65)⁻¹*max (Real.exp ((n:ℝ)*S x)) (Real.exp ((n:ℝ)*S0 x)))
|
| 22 |
+
|
| 23 |
+
theorem lattice_good_event_probability (hUD : U ⊆ D) (hU : IsOpen U)
|
| 24 |
+
(hUb : Bornology.IsBounded U) (hS : ContDiff ℝ ∞ S)
|
| 25 |
+
(S0 T0 : Coord → ℝ) (hS0 : ContDiff ℝ ∞ S0) (hT0 : ContDiff ℝ ∞ T0)
|
| 26 |
+
{Ω : Set Coord} (hΩ : IsCompact Ω) (hk0 : 2 ≤ k0)
|
| 27 |
+
(hq : ∀ x ∈ Ω, fderiv ℝ T0 x ≠ 0)
|
| 28 |
+
{d : ℝ} (hd : 0 < d) (hgap : ∀ x ∈ Ω, x ∉ U → S x-S0 x ≤ -d) :
|
| 29 |
+
∀ ε : ℝ, 0 < ε → ∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n),
|
| 30 |
+
letI := hfin
|
| 31 |
+
MeasurableSet (a.latticeGoodEvent hUD n hfin S0 T0 Ω) ∧
|
| 32 |
+
gaussianPairs (a.latticeGoodEvent hUD n hfin S0 T0 Ω)ᶜ ≤ ENNReal.ofReal ε := by
|
| 33 |
+
intro ε hε
|
| 34 |
+
obtain ⟨C,hC,hcoeff⟩ := lattice_coefficient_event_failure hUb
|
| 35 |
+
have htail := (tendsto_coefficient_tail_rate C).eventually (gt_mem_nhds (by linarith : 0 < ε/2))
|
| 36 |
+
filter_upwards [a.source_first_jet_failure_tends_zero hUD hU hUb hS S0 T0 hS0 hT0
|
| 37 |
+
hΩ hk0 hq hd hgap (ε/2) (by linarith),htail,a.estimates,eventually_gt_atTop (0:ℕ)] with n hn ht he hn0
|
| 38 |
+
obtain ⟨hfin,hjet⟩ := hn
|
| 39 |
+
let := hfin
|
| 40 |
+
let V := fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2
|
| 41 |
+
have hV (i : SourceGrid U n × Fin 3) : ContDiff ℝ ∞ (V i) :=
|
| 42 |
+
(he (latticeFrame a.cover hUD n i.1,i.2)).1
|
| 43 |
+
refine ⟨hfin,coefficientJetGoodEvent_measurable V (oscillatorySeed S0 T0 n)
|
| 44 |
+
hV (oscillatorySeed_contDiff S0 T0 hS0 hT0 n) n Ω _,?_⟩
|
| 45 |
+
apply (coefficientJetGoodEvent_failure_le V (oscillatorySeed S0 T0 n) n Ω _).trans
|
| 46 |
+
calc
|
| 47 |
+
_ ≤ ENNReal.ofReal (ε/2)+ENNReal.ofReal (ε/2) :=
|
| 48 |
+
add_le_add ((hcoeff n hn0 hfin).trans (ENNReal.ofReal_le_ofReal ht.le)) hjet
|
| 49 |
+
_ = ENNReal.ofReal ε := by
|
| 50 |
+
rw [← ENNReal.ofReal_add (by linarith : 0 ≤ ε/2) (by linarith : 0 ≤ ε/2)]
|
| 51 |
+
congr 1
|
| 52 |
+
ring
|
| 53 |
+
|
| 54 |
+
end LocalCompactWaveData
|
| 55 |
+
end
|
| 56 |
+
end Yau.Geometry
|
| 57 |
+
|
| 58 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeGradientExpectation.lean
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.RescaledGradientExpectation
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
namespace Yau.Geometry
|
| 6 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory ProbabilityTheory
|
| 7 |
+
open scoped ContDiff Topology
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
theorem lattice_gradient_expectation
|
| 11 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) {H : Set Coord}
|
| 12 |
+
(hH : IsCompact H) (hg : ContinuousOn g H)
|
| 13 |
+
(hp : ∀ y ∈ H, ∀ v, v ≠ 0 → 0 < g y v v) :
|
| 14 |
+
∃ C > 0, ∀ (w S S0 T0 : Coord → ℝ) (D U Q : Set Coord) (m J K k0 : ℕ)
|
| 15 |
+
(a : LocalCompactWaveData g w S D m J K k0) (_ : H ⊆ D) (hUD : U ⊆ D),
|
| 16 |
+
U ⊆ H → IsOpen U → Bornology.IsBounded U → IsCompact Q → Q ⊆ U →
|
| 17 |
+
ContDiff ℝ ∞ S → ContDiff ℝ ∞ S0 → ContDiff ℝ ∞ T0 → 5 ≤ k0 →
|
| 18 |
+
∀ gamma > 0, (∀ x ∈ Q, S0 x+gamma ≤ S x) →
|
| 19 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 20 |
+
∀ x ∈ Q, ∃ G : ((SourceGrid U n × Fin 3) × Fin 2 → ℝ) → ℝ,
|
| 21 |
+
Continuous G ∧ Integrable G gaussianPairs ∧ (∀ coeff, 0 ≤ G coeff) ∧
|
| 22 |
+
(∫ coeff, G coeff ∂gaussianPairs) ≤ C ∧
|
| 23 |
+
∀ coeff L, 0 ≤ L →
|
| 24 |
+
(G coeff ≤ L ↔ ∀ v : Coord, sourceEuclideanNorm v ≤ 1 →
|
| 25 |
+
sourceEuclideanNorm (fun j ↦ fderiv ℝ (rescaledGaussianField
|
| 26 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2)
|
| 27 |
+
S0 T0 S n (sourceSignScale g S x) (a.latticeSigma hUD n x) x coeff)
|
| 28 |
+
v (Pi.single j 1)) ≤ L) := by
|
| 29 |
+
obtain ⟨B,hB,hmom⟩ := lattice_derivative_second_moments g hH hg hp 5
|
| 30 |
+
refine ⟨648*(B+1),by positivity,?_⟩
|
| 31 |
+
intro w S S0 T0 D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU hS hS0 hT0 hd gamma hgamma hgap
|
| 32 |
+
filter_upwards [hmom w S S0 T0 D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU
|
| 33 |
+
hS hS0 hT0 hd gamma hgamma hgap,a.estimates] with n hn hest
|
| 34 |
+
obtain ⟨hfin,hn⟩ := hn
|
| 35 |
+
let := hfin
|
| 36 |
+
refine ⟨hfin,?_⟩
|
| 37 |
+
intro x hx
|
| 38 |
+
let V := fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2
|
| 39 |
+
have hV (i : SourceGrid U n × Fin 3) : ContDiff ℝ ∞ (V i) :=
|
| 40 |
+
(hest (latticeFrame a.cover hUD n i.1,i.2)).1
|
| 41 |
+
exact rescaled_gradient_supremum_expectation V hV S0 T0 S hS0 hT0
|
| 42 |
+
n (sourceSignScale g S x) (a.latticeSigma hUD n x) x hB.le
|
| 43 |
+
(fun v hv k hk dirs hd ↦ (hn x hx v hv k hk dirs hd).2)
|
| 44 |
+
|
| 45 |
+
end
|
| 46 |
+
end Yau.Geometry
|
| 47 |
+
|
| 48 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeLogJets.lean
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.LocalLogJetBounds
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
namespace Yau.Geometry
|
| 6 |
+
open Yau.Jets Set Filter
|
| 7 |
+
open scoped ContDiff Topology
|
| 8 |
+
noncomputable section
|
| 9 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 10 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 11 |
+
namespace LocalCompactWaveData
|
| 12 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 13 |
+
|
| 14 |
+
def latticeEta (hUD : U ⊆ D) (n : ℕ) (z : SourceGrid U n) (j : Fin 3) : ℝ :=
|
| 15 |
+
a.originalEta (latticeFrame a.cover hUD n z,j)
|
| 16 |
+
|
| 17 |
+
theorem lattice_logarithmic_jet_estimates (hUD : U ⊆ D) (L : ℝ) (hL : 0 < L) :
|
| 18 |
+
∃ Ca > 0, ∃ Cr > 0, ∃ Ci > 0, ∃ c > 0, ∃ C > 0,
|
| 19 |
+
∀ᶠ n : ℕ in atTop, ∀ (z : SourceGrid U n) (j : Fin 3) (x : Coord),
|
| 20 |
+
‖x-scaledLatticePoint n z‖ ≤ L*(n:ℝ)^(-1/2:ℝ) →
|
| 21 |
+
let t := (latticeFrame a.cover hUD n z,j)
|
| 22 |
+
let V := latticeWave a.cover a.beams hUD n z j
|
| 23 |
+
‖a.beams.amplitude n t x-1‖ ≤ Ca*(n:ℝ)^(-1/2:ℝ) ∧
|
| 24 |
+
(1/2:ℝ) ≤ ‖a.beams.amplitude n t x‖ ∧ ‖a.beams.amplitude n t x‖ ≤ 3/2 ∧ V x ≠ 0 ∧
|
| 25 |
+
(c ≤ ‖V x‖*Real.exp (-(n:ℝ)*S x) ∧ ‖V x‖*Real.exp (-(n:ℝ)*S x) ≤ C) ∧
|
| 26 |
+
∀ v,
|
| 27 |
+
|(normalizedLogJet n V x v).re -
|
| 28 |
+
(fderiv ℝ S x v-a.latticeEta hUD n z j*g (scaledLatticePoint n z) (x-scaledLatticePoint n z) v)| ≤ Cr/n*‖v‖ ∧
|
| 29 |
+
|(normalizedLogJet n V x v).im - g (scaledLatticePoint n z) (a.cover.triple.q t.1 t.2) v| ≤
|
| 30 |
+
Ci*(n:ℝ)^(-1/2:ℝ)*‖v‖ := by
|
| 31 |
+
obtain ⟨Ca,hCa,Cr,hCr,Ci,hCi,c,hc,C,hC,hb⟩ := a.original_logarithmic_jet_estimates L hL
|
| 32 |
+
refine ⟨Ca,hCa,Cr,hCr,Ci,hCi,c,hc,C,hC,?_⟩
|
| 33 |
+
filter_upwards [hb] with n hn
|
| 34 |
+
intro z j x hx
|
| 35 |
+
have hx' : ‖x-coverSourceCenter a.cover (latticeFrame a.cover hUD n z)‖ ≤ L*(n:ℝ)^(-1/2:ℝ) := by
|
| 36 |
+
simpa only [latticeFrame_center] using hx
|
| 37 |
+
simpa only [latticeWave,TripleSourceWaveData.wave,latticeEta,latticeFrame_center] using
|
| 38 |
+
hn (latticeFrame a.cover hUD n z,j) x hx'
|
| 39 |
+
|
| 40 |
+
end LocalCompactWaveData
|
| 41 |
+
end
|
| 42 |
+
end Yau.Geometry
|
| 43 |
+
|
| 44 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeMainLogJets.lean
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.LocalMainLogJets
|
| 2 |
+
import OAI.Geometry.NodalSets.Elliptic.ShiftedCenterDistance
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Set Filter
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
|
| 11 |
+
lemma eventually_shifted_main_distance (R : ℝ) :
|
| 12 |
+
∀ᶠ n : ℕ in atTop, ∀ (s : ℝ), 1 ≤ s → ∀ (x y v : Coord), ‖v‖ ≤ R →
|
| 13 |
+
sourceEuclideanNorm (x-y) ≤ (n:ℝ)^(-5/12:ℝ) →
|
| 14 |
+
‖x+((n:ℝ)*s)⁻¹ • v-y‖ ≤ 2*(n:ℝ)^(-5/12:ℝ) := by
|
| 15 |
+
have ht : Tendsto (fun n : ℕ ↦ (n:ℝ)^(7/12:ℝ)) atTop atTop :=
|
| 16 |
+
(tendsto_rpow_atTop (by norm_num : (0:ℝ) < 7/12)).comp tendsto_natCast_atTop_atTop
|
| 17 |
+
filter_upwards [ht.eventually (eventually_ge_atTop R),eventually_gt_atTop (0:ℕ)]
|
| 18 |
+
with n hn hnpos
|
| 19 |
+
intro s hs x y v hv hnear
|
| 20 |
+
have hn0 : (0:ℝ) < n := by exact_mod_cast hnpos
|
| 21 |
+
have hn1 : (1:ℝ) ≤ n := by exact_mod_cast hnpos
|
| 22 |
+
have hd := rescaling_displacement_bound (x := x) hn1 hs hv
|
| 23 |
+
rw [← main_radius_times_frequency hn0] at hn
|
| 24 |
+
have hshift : ‖(x+((n:ℝ)*s)⁻¹ • v)-x‖ ≤ (n:ℝ)^(-5/12:ℝ) := by nlinarith
|
| 25 |
+
have hxy := (norm_le_sourceEuclideanNorm _).trans hnear
|
| 26 |
+
have he : x+((n:ℝ)*s)⁻¹ • v-y =
|
| 27 |
+
(x+((n:ℝ)*s)⁻¹ • v-x)+(x-y) := by abel
|
| 28 |
+
rw [he]
|
| 29 |
+
exact (norm_add_le _ _).trans (by linarith)
|
| 30 |
+
|
| 31 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 32 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 33 |
+
namespace LocalCompactWaveData
|
| 34 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 35 |
+
|
| 36 |
+
theorem lattice_shifted_main_log_jets (hUD : U ⊆ D) (R : ℝ) :
|
| 37 |
+
∃ Ca > 0, ∃ Cr > 0, ∃ Ci > 0,
|
| 38 |
+
∀ᶠ n : ℕ in atTop, ∀ (x : Coord) (s : ℝ), 1 ≤ s →
|
| 39 |
+
∀ (v : Coord), ‖v‖ ≤ R → ∀ (i : SourceGrid U n × Fin 3),
|
| 40 |
+
sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ) →
|
| 41 |
+
let t := (latticeFrame a.cover hUD n i.1,i.2)
|
| 42 |
+
let z := x+((n:ℝ)*s)⁻¹ • v
|
| 43 |
+
‖(a.beams.F t).symm z‖ < (n:ℝ)^(-1/3:ℝ) ∧
|
| 44 |
+
‖a.beams.amplitude n t z-1‖ ≤ Ca*(n:ℝ)^(-5/12:ℝ) ∧
|
| 45 |
+
(1/2:ℝ) ≤ ‖a.beams.amplitude n t z‖ ∧ ‖a.beams.amplitude n t z‖ ≤ 3/2 ∧
|
| 46 |
+
latticeWave a.cover a.beams hUD n i.1 i.2 z ≠ 0 ∧ ∀ u,
|
| 47 |
+
|(normalizedLogJet n (latticeWave a.cover a.beams hUD n i.1 i.2) z u).re -
|
| 48 |
+
(fderiv ℝ S z u-a.originalEta t*g (scaledLatticePoint n i.1)
|
| 49 |
+
(z-scaledLatticePoint n i.1) u)| ≤ Cr*(n:ℝ)^(-5/6:ℝ)*‖u‖ ∧
|
| 50 |
+
|(normalizedLogJet n (latticeWave a.cover a.beams hUD n i.1 i.2) z u).im -
|
| 51 |
+
g (scaledLatticePoint n i.1) (a.cover.triple.q t.1 t.2) u| ≤
|
| 52 |
+
Ci*(n:ℝ)^(-5/12:ℝ)*‖u‖ := by
|
| 53 |
+
obtain ⟨Ca,hCa,Cr,hCr,Ci,hCi,hjets⟩ := a.original_main_logarithmic_jet_estimates 2 (by norm_num)
|
| 54 |
+
refine ⟨Ca,hCa,Cr,hCr,Ci,hCi,?_⟩
|
| 55 |
+
filter_upwards [hjets,eventually_shifted_main_distance R] with n hj hd
|
| 56 |
+
intro x s hs v hv i hi
|
| 57 |
+
have hz := hd s hs x (scaledLatticePoint n i.1) v hv hi
|
| 58 |
+
have hh := hj (latticeFrame a.cover hUD n i.1,i.2) (x+((n:ℝ)*s)⁻¹ • v)
|
| 59 |
+
(by simpa only [latticeFrame_center] using hz)
|
| 60 |
+
simpa only [latticeFrame_center,latticeWave,TripleSourceWaveData.wave] using hh
|
| 61 |
+
|
| 62 |
+
end LocalCompactWaveData
|
| 63 |
+
end
|
| 64 |
+
end Yau.Geometry
|
| 65 |
+
|
| 66 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeNeighborhoodJets.lean
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Mathlib.Analysis.Calculus.MeanValue
|
| 2 |
+
import OAI.Geometry.NodalSets.Elliptic.NeighborhoodJetBound
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LatticeGaussianSmallBall
|
| 4 |
+
import OAI.Geometry.NodalSets.Waves.SeededLatticeFieldBounds
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
namespace Yau.Geometry
|
| 9 |
+
open Yau.Jets Yau.Probability Set Filter
|
| 10 |
+
open scoped ContDiff Topology
|
| 11 |
+
noncomputable section
|
| 12 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 13 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 14 |
+
namespace LocalCompactWaveData
|
| 15 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 16 |
+
|
| 17 |
+
theorem lattice_neighborhood_jet_bound (hUD : U ⊆ D) (hUb : Bornology.IsBounded U)
|
| 18 |
+
(hS : ContDiff ℝ ∞ S) (S0 T0 : Coord → ℝ)
|
| 19 |
+
(hS0 : ContDiff ℝ ∞ S0) (hT0 : ContDiff ℝ ∞ T0)
|
| 20 |
+
{Ω : Set Coord} (hΩ : IsCompact Ω) (hk0 : 2 ≤ k0) :
|
| 21 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n),
|
| 22 |
+
letI := hfin
|
| 23 |
+
∀ coeff : ((SourceGrid U n × Fin 3) × Fin 2) → ℝ,
|
| 24 |
+
coeff ∈ coefficientEvent (n:ℝ) →
|
| 25 |
+
∀ x ∈ highEnvelopeRegion Ω S S0 n,
|
| 26 |
+
∀ z ∈ Metric.closedBall x ((n:ℝ)^2)⁻¹,
|
| 27 |
+
‖fderiv ℝ (fun y ↦ a.latticeSeededJet hUD n hfin
|
| 28 |
+
(oscillatorySeed S0 T0 n) y coeff) z‖ ≤ (n:ℝ)^13 := by
|
| 29 |
+
obtain ⟨R,hR,hΩR⟩ := hΩ.isBounded.exists_pos_norm_le
|
| 30 |
+
let Q := Metric.closedBall (0:Coord) (R+1)
|
| 31 |
+
have hQ : IsCompact Q := isCompact_closedBall _ _
|
| 32 |
+
obtain ⟨A,hA,hAb⟩ := (hQ.image (hS.continuous_fderiv (by simp))).isBounded.exists_pos_norm_le
|
| 33 |
+
have hdS : ContDiff ℝ ∞ (fun z ↦ S0 z-S z) := hS0.sub hS
|
| 34 |
+
obtain ⟨L,hL,hLb⟩ := (hQ.image (hdS.continuous_fderiv (by simp))).isBounded.exists_pos_norm_le
|
| 35 |
+
obtain ⟨B,hB,hfield⟩ := a.seeded_lattice_field_derivative_bound hUD hUb S0 T0 hS0 hT0 hQ
|
| 36 |
+
have hfreq : ∀ᶠ n : ℕ in atTop, max L (6*(A+1)*B*Real.exp 1) ≤ (n:ℝ) :=
|
| 37 |
+
tendsto_natCast_atTop_atTop.eventually (eventually_ge_atTop _)
|
| 38 |
+
filter_upwards [hfield,hfreq,eventually_gt_atTop (0:ℕ)] with n hn hsize hnpos
|
| 39 |
+
obtain ⟨hfin,hb⟩ := hn
|
| 40 |
+
let := hfin
|
| 41 |
+
refine ⟨hfin,?_⟩
|
| 42 |
+
intro coeff hc x hx z hz
|
| 43 |
+
obtain ⟨hu,hbnd⟩ := hb coeff hc
|
| 44 |
+
have hn1 : (1:ℝ) ≤ n := by exact_mod_cast hnpos
|
| 45 |
+
have hnR : (0:ℝ) < n := by exact_mod_cast hnpos
|
| 46 |
+
have hdist : ‖z-x‖ ≤ ((n:ℝ)^2)⁻¹ := by simpa only [Metric.mem_closedBall,dist_eq_norm] using hz
|
| 47 |
+
have hrad : ((n:ℝ)^2)⁻¹ ≤ 1 :=
|
| 48 |
+
(inv_le_one₀ (by positivity)).mpr (one_le_pow₀ hn1)
|
| 49 |
+
have hxQ : x ∈ Q := by
|
| 50 |
+
change dist x 0 ≤ R+1
|
| 51 |
+
rw [dist_zero_right]
|
| 52 |
+
linarith [hΩR x hx.1]
|
| 53 |
+
have hzQ : z ∈ Q := by
|
| 54 |
+
change dist z 0 ≤ R+1
|
| 55 |
+
rw [dist_zero_right]
|
| 56 |
+
have ht := norm_le_norm_sub_add z x
|
| 57 |
+
linarith [hΩR x hx.1,hdist.trans hrad]
|
| 58 |
+
have hgap : (S0 z-S z)-(S0 x-S x) ≤ L*‖z-x‖ := by
|
| 59 |
+
have h := (convex_closedBall (0:Coord) (R+1)).norm_image_sub_le_of_norm_fderiv_le
|
| 60 |
+
(fun _ _ ↦ (hdS.differentiable (by simp)).differentiableAt)
|
| 61 |
+
(fun y hy ↦ hLb _ ⟨y,hy,rfl⟩) hxQ hzQ
|
| 62 |
+
exact (le_abs_self _).trans h
|
| 63 |
+
have h := normalized_jet_neighborhood_derivative_bound
|
| 64 |
+
(fun y ↦ oscillatorySeed S0 T0 n y+gaussianWaveField
|
| 65 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2) coeff y)
|
| 66 |
+
S S0 hu hS hnpos hx hA.le hB.le hL.le
|
| 67 |
+
((le_max_left _ _).trans hsize) ((le_max_right _ _).trans hsize)
|
| 68 |
+
hdist hgap (hAb _ ⟨z,hzQ,rfl⟩)
|
| 69 |
+
(fun k ↦ hbnd z hzQ ⟨k.val,by omega⟩)
|
| 70 |
+
exact h
|
| 71 |
+
|
| 72 |
+
end LocalCompactWaveData
|
| 73 |
+
end
|
| 74 |
+
end Yau.Geometry
|
| 75 |
+
|
| 76 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeNetSmallBall.lean
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.SpatialNet
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeGaussianSmallBall
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.NetProbability
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory ProbabilityTheory
|
| 9 |
+
open scoped ContDiff Topology ENNReal
|
| 10 |
+
noncomputable section
|
| 11 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 12 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 13 |
+
namespace LocalCompactWaveData
|
| 14 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 15 |
+
|
| 16 |
+
lemma measurable_latticeSeededJet (hUD : U ⊆ D) (n : ℕ)
|
| 17 |
+
(hfin : Fintype (SourceGrid U n)) (seed : Coord → ℝ) (x : Coord)
|
| 18 |
+
(hs : DifferentiableAt ℝ seed x)
|
| 19 |
+
(hV : ∀ z j, DifferentiableAt ℝ (latticeWave a.cover a.beams hUD n z j) x) :
|
| 20 |
+
Measurable (a.latticeSeededJet hUD n hfin seed x) := by
|
| 21 |
+
let := hfin
|
| 22 |
+
let V := fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2
|
| 23 |
+
have he : a.latticeSeededJet hUD n hfin seed x = fun coeff ↦
|
| 24 |
+
normalizedRealJet seed n (S x) x +
|
| 25 |
+
pairJetMap (jetWaveCoefficients V n (S x) x) (WithLp.toLp 2 coeff) := by
|
| 26 |
+
funext coeff
|
| 27 |
+
exact seeded_gaussian_jet_eq V seed n (S x) x (fun i ↦ hV i.1 i.2) hs coeff
|
| 28 |
+
rw [he]
|
| 29 |
+
fun_prop
|
| 30 |
+
|
| 31 |
+
theorem actual_lattice_net_small_ball (hUD : U ⊆ D) (hU : IsOpen U)
|
| 32 |
+
(hUb : Bornology.IsBounded U) {Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U) :
|
| 33 |
+
∃ c > 0, ∃ C > 0, ∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n),
|
| 34 |
+
letI := hfin
|
| 35 |
+
∀ E : Set Coord, E ⊆ Q → ∃ t : Finset Coord,
|
| 36 |
+
(↑t : Set Coord) ⊆ E ∧ (t.card : ℝ) ≤ C*(n:ℝ)^276 ∧
|
| 37 |
+
(∀ x ∈ E, ∃ y ∈ t, ‖x-y‖ ≤ (4*(n:ℝ)^69)⁻¹ ∧
|
| 38 |
+
sourceEuclideanNorm (x-y) ≤ (2*(n:ℝ)^69)⁻¹) ∧
|
| 39 |
+
∀ seed : Coord → ℝ, (∀ x ∈ Q, DifferentiableAt ℝ seed x) →
|
| 40 |
+
gaussianPairs {coeff | ∃ x ∈ t,
|
| 41 |
+
‖a.latticeSeededJet hUD n hfin seed x coeff‖ ≤ 2/(n:ℝ)^56} ≤
|
| 42 |
+
ENNReal.ofReal (C*(n:ℝ)^276*
|
| 43 |
+
(12*(Real.sqrt (c/(n:ℝ)))⁻¹*(2/(n:ℝ)^56)/Real.sqrt (2*Real.pi))^5) := by
|
| 44 |
+
obtain ⟨c,hc,hsmall⟩ := a.actual_lattice_gaussian_small_ball hUD hU hUb hQ hQU
|
| 45 |
+
obtain ⟨C,hC,hnet⟩ := jet_scale_internal_net hQ.isBounded
|
| 46 |
+
refine ⟨c,hc,C,hC,?_⟩
|
| 47 |
+
filter_upwards [hsmall,lattice_wave_estimates a.cover a.beams hUD,
|
| 48 |
+
eventually_gt_atTop (0:ℕ)] with n hn hw hnpos
|
| 49 |
+
obtain ⟨hfin,hp⟩ := hn
|
| 50 |
+
let := hfin
|
| 51 |
+
refine ⟨hfin,?_⟩
|
| 52 |
+
intro E hEQ
|
| 53 |
+
obtain ⟨t,ht,hcard,hcover⟩ := hnet n hnpos E hEQ
|
| 54 |
+
refine ⟨t,ht,hcard,hcover,?_⟩
|
| 55 |
+
intro seed hs
|
| 56 |
+
let b := (12*(Real.sqrt (c/(n:ℝ)))⁻¹*(2/(n:ℝ)^56)/Real.sqrt (2*Real.pi))^5
|
| 57 |
+
have hb : 0 ≤ b := by dsimp [b]; positivity
|
| 58 |
+
have hp' (x : Coord) (hx : x ∈ t) :
|
| 59 |
+
gaussianPairs {coeff | ‖a.latticeSeededJet hUD n hfin seed x coeff‖ ≤ 2/(n:ℝ)^56} ≤
|
| 60 |
+
ENNReal.ofReal b := by
|
| 61 |
+
have hxQ := hEQ (ht hx)
|
| 62 |
+
have h := hp seed x hxQ (hs x hxQ) (2/(n:ℝ)^56) (by positivity)
|
| 63 |
+
rw [Measure.map_apply (a.measurable_latticeSeededJet hUD n hfin seed x (hs x hxQ)
|
| 64 |
+
(fun z j ↦ ((hw z j).1.differentiable (by simp)).differentiableAt))
|
| 65 |
+
(measurableSet_le (by fun_prop) measurable_const)] at h
|
| 66 |
+
exact h
|
| 67 |
+
have hu := finite_small_ball_union gaussianPairs t
|
| 68 |
+
(fun coeff x ↦ a.latticeSeededJet hUD n hfin seed x coeff)
|
| 69 |
+
(2/(n:ℝ)^56) (ENNReal.ofReal b) hp'
|
| 70 |
+
refine hu.trans ?_
|
| 71 |
+
rw [ENNReal.ofReal_mul (by positivity)]
|
| 72 |
+
gcongr
|
| 73 |
+
exact_mod_cast (ENNReal.ofReal_le_ofReal hcard)
|
| 74 |
+
|
| 75 |
+
end LocalCompactWaveData
|
| 76 |
+
end
|
| 77 |
+
end Yau.Geometry
|
| 78 |
+
|
| 79 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeNonmainDecay.lean
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.LatticeNormalizedWeights
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
namespace Yau.Probability
|
| 6 |
+
open Filter
|
| 7 |
+
open scoped Topology
|
| 8 |
+
|
| 9 |
+
lemma tendsto_polynomial_main_center_tail (k : ℕ) (a : ℝ) (ha : 0 < a) :
|
| 10 |
+
Tendsto (fun n : ℕ ↦ (n:ℝ)^k*Real.exp (-a*(n:ℝ)^(1/6:ℝ))) atTop (𝓝 0) := by
|
| 11 |
+
have hpow : Tendsto (fun n : ℕ ↦ (n:ℝ)^(1/6:ℝ)) atTop atTop :=
|
| 12 |
+
(tendsto_rpow_atTop (by norm_num : (0:ℝ) < 1/6)).comp tendsto_natCast_atTop_atTop
|
| 13 |
+
have ht := (tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero (6*(k:ℝ)) a ha).comp hpow
|
| 14 |
+
convert ht using 1
|
| 15 |
+
funext n
|
| 16 |
+
simp only [Function.comp_def]
|
| 17 |
+
rw [← Real.rpow_mul (by positivity : (0:ℝ) ≤ n)]
|
| 18 |
+
rw [show (1/6:ℝ)*(6*(k:ℝ)) = (k:ℝ) by ring,Real.rpow_natCast]
|
| 19 |
+
|
| 20 |
+
end Yau.Probability
|
| 21 |
+
|
| 22 |
+
namespace Yau.Geometry
|
| 23 |
+
open Yau.Jets Yau.Probability Set Filter
|
| 24 |
+
open scoped ContDiff Topology
|
| 25 |
+
noncomputable section
|
| 26 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 27 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 28 |
+
namespace LocalCompactWaveData
|
| 29 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 30 |
+
|
| 31 |
+
theorem lattice_nonmain_derivatives_negligible (hUD : U ⊆ D) (hU : IsOpen U)
|
| 32 |
+
(hUb : Bornology.IsBounded U) {Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U)
|
| 33 |
+
(ε : ℝ) (hε : 0 < ε) :
|
| 34 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 35 |
+
∀ x ∈ Q, ∀ k : Fin (k0+1),
|
| 36 |
+
(∑ i ∈ Finset.univ.filter (fun i : SourceGrid U n × Fin 3 ↦
|
| 37 |
+
(n:ℝ)^(-5/12:ℝ) < sourceEuclideanNorm (x-scaledLatticePoint n i.1)),
|
| 38 |
+
‖iteratedFDeriv ℝ k.val (latticeWave a.cover a.beams hUD n i.1 i.2) x‖^2) /
|
| 39 |
+
(a.latticeSigma hUD n x)^2 ≤ ε := by
|
| 40 |
+
classical
|
| 41 |
+
obtain ⟨c,hc,hlo⟩ := a.lattice_variance_lower_bound hUD hU hQ hQU
|
| 42 |
+
obtain ⟨C,hC,htail⟩ := a.lattice_nonmain_derivative_bound hUD
|
| 43 |
+
have hlim := (tendsto_polynomial_main_center_tail (2*k0) a.beams.c a.beams.c_pos).const_mul (C/c)
|
| 44 |
+
simp only [mul_zero] at hlim
|
| 45 |
+
filter_upwards [hlo,htail,hlim.eventually (gt_mem_nhds hε),eventually_gt_atTop (0:ℕ)]
|
| 46 |
+
with n hl ht hsmall hnpos
|
| 47 |
+
have := finite_source_grid hUb hnpos
|
| 48 |
+
let hfin := Fintype.ofFinite (SourceGrid U n)
|
| 49 |
+
refine ⟨hfin,?_⟩
|
| 50 |
+
intro x hx k
|
| 51 |
+
have hv : 0 < a.latticeVariance hUD n x :=
|
| 52 |
+
lt_of_lt_of_le (mul_pos hc (Real.exp_pos _)) (hl x hx)
|
| 53 |
+
have hn1 : (1:ℝ) ≤ n := by exact_mod_cast hnpos
|
| 54 |
+
have hp : (n:ℝ)^(2*k.val) ≤ (n:ℝ)^(2*k0) :=
|
| 55 |
+
pow_le_pow_right₀ hn1 (by have := k.isLt; omega)
|
| 56 |
+
rw [a.latticeSigma_sq]
|
| 57 |
+
apply le_trans _ hsmall.le
|
| 58 |
+
apply (div_le_iff₀ hv).mpr
|
| 59 |
+
have hh := mul_le_mul_of_nonneg_left (hl x hx)
|
| 60 |
+
(by positivity : 0 ≤ (C/c)*((n:ℝ)^(2*k0)*Real.exp (-a.beams.c*(n:ℝ)^(1/6:ℝ))))
|
| 61 |
+
calc
|
| 62 |
+
_ ≤ C*(n:ℝ)^(2*k.val)*Real.exp (2*(n:ℝ)*S x)*Real.exp (-a.beams.c*(n:ℝ)^(1/6:ℝ)) := ht x k
|
| 63 |
+
_ ≤ C*(n:ℝ)^(2*k0)*Real.exp (2*(n:ℝ)*S x)*Real.exp (-a.beams.c*(n:ℝ)^(1/6:ℝ)) := by gcongr
|
| 64 |
+
_ = ((C/c)*((n:ℝ)^(2*k0)*Real.exp (-a.beams.c*(n:ℝ)^(1/6:ℝ))))*
|
| 65 |
+
(c*Real.exp (2*(n:ℝ)*S x)) := by field_simp
|
| 66 |
+
_ ≤ _ := hh
|
| 67 |
+
|
| 68 |
+
end LocalCompactWaveData
|
| 69 |
+
end
|
| 70 |
+
end Yau.Geometry
|
| 71 |
+
|
| 72 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeNormalizedWeights.lean
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.LatticeDerivativeTail
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeVarianceComparison
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Yau.Probability Set Filter
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 11 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 12 |
+
namespace LocalCompactWaveData
|
| 13 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 14 |
+
|
| 15 |
+
def latticeAlpha (hUD : U ⊆ D) (n : ℕ) [Fintype (SourceGrid U n)]
|
| 16 |
+
(x : Coord) (i : SourceGrid U n × Fin 3) : ℂ :=
|
| 17 |
+
latticeWave a.cover a.beams hUD n i.1 i.2 x / (a.latticeSigma hUD n x:ℂ)
|
| 18 |
+
|
| 19 |
+
lemma latticeAlpha_sum_sq (hUD : U ⊆ D) (n : ℕ) [Fintype (SourceGrid U n)]
|
| 20 |
+
(x : Coord) (s : Finset (SourceGrid U n × Fin 3)) :
|
| 21 |
+
∑ i ∈ s, ‖a.latticeAlpha hUD n x i‖^2 =
|
| 22 |
+
(∑ i ∈ s, ‖latticeWave a.cover a.beams hUD n i.1 i.2 x‖^2) / a.latticeVariance hUD n x := by
|
| 23 |
+
simp only [latticeAlpha,norm_div,Complex.norm_real,Real.norm_eq_abs,
|
| 24 |
+
abs_of_nonneg (show 0 ≤ a.latticeSigma hUD n x from Real.sqrt_nonneg _),
|
| 25 |
+
div_pow,a.latticeSigma_sq,Finset.sum_div]
|
| 26 |
+
|
| 27 |
+
lemma latticeAlpha_total (hUD : U ⊆ D) (n : ℕ) [Fintype (SourceGrid U n)]
|
| 28 |
+
(x : Coord) (hv : 0 < a.latticeVariance hUD n x) :
|
| 29 |
+
∑ i, ‖a.latticeAlpha hUD n x i‖^2 = 1 := by
|
| 30 |
+
rw [a.latticeAlpha_sum_sq]
|
| 31 |
+
exact div_self hv.ne'
|
| 32 |
+
|
| 33 |
+
theorem latticeAlpha_nonmain_bound (hUD : U ⊆ D) (hU : IsOpen U)
|
| 34 |
+
{Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U) :
|
| 35 |
+
∃ C > 0, ∀ᶠ n : ℕ in atTop, ∀ [Fintype (SourceGrid U n)], ∀ x ∈ Q,
|
| 36 |
+
0 < a.latticeVariance hUD n x ∧
|
| 37 |
+
∑ i ∈ Finset.univ.filter (fun i : SourceGrid U n × Fin 3 ↦
|
| 38 |
+
(n:ℝ)^(-5/12:ℝ) < sourceEuclideanNorm (x-scaledLatticePoint n i.1)),
|
| 39 |
+
‖a.latticeAlpha hUD n x i‖^2 ≤ C*Real.exp (-a.beams.c*(n:ℝ)^(1/6:ℝ)) := by
|
| 40 |
+
classical
|
| 41 |
+
obtain ⟨c,hc,hlo⟩ := a.lattice_variance_lower_bound hUD hU hQ hQU
|
| 42 |
+
obtain ⟨C,hC,htail⟩ := a.lattice_nonmain_derivative_bound hUD
|
| 43 |
+
refine ⟨C/c,div_pos hC hc,?_⟩
|
| 44 |
+
filter_upwards [hlo,htail] with n hl ht
|
| 45 |
+
intro hfin x hx
|
| 46 |
+
have hv : 0 < a.latticeVariance hUD n x :=
|
| 47 |
+
lt_of_lt_of_le (mul_pos hc (Real.exp_pos _)) (hl x hx)
|
| 48 |
+
refine ⟨hv,?_⟩
|
| 49 |
+
rw [a.latticeAlpha_sum_sq]
|
| 50 |
+
apply (div_le_iff₀ hv).mpr
|
| 51 |
+
have h := ht x (0 : Fin (k0+1))
|
| 52 |
+
simp only [Fin.val_zero,mul_zero,pow_zero,mul_one] at h
|
| 53 |
+
change (∑ i ∈ Finset.univ.filter (fun i : SourceGrid U n × Fin 3 ↦
|
| 54 |
+
(n:ℝ)^(-5/12:ℝ) < sourceEuclideanNorm (x-scaledLatticePoint n i.1)),
|
| 55 |
+
‖iteratedFDeriv ℝ 0 (latticeWave a.cover a.beams hUD n i.1 i.2) x‖^2) ≤ _ at h
|
| 56 |
+
simp only [norm_iteratedFDeriv_zero] at h
|
| 57 |
+
refine h.trans ?_
|
| 58 |
+
have hh := mul_le_mul_of_nonneg_left (hl x hx)
|
| 59 |
+
(by positivity : 0 ≤ (C/c)*Real.exp (-a.beams.c*(n:ℝ)^(1/6:ℝ)))
|
| 60 |
+
calc
|
| 61 |
+
_ = ((C/c)*Real.exp (-a.beams.c*(n:ℝ)^(1/6:ℝ)))*(c*Real.exp (2*(n:ℝ)*S x)) := by field_simp
|
| 62 |
+
_ ≤ _ := hh
|
| 63 |
+
|
| 64 |
+
theorem latticeAlpha_main_mass (hUD : U ⊆ D) (hU : IsOpen U)
|
| 65 |
+
(hUb : Bornology.IsBounded U) {Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U)
|
| 66 |
+
(ε : ℝ) (hε : 0 < ε) :
|
| 67 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 68 |
+
∀ x ∈ Q, (∑ i, ‖a.latticeAlpha hUD n x i‖^2 = 1) ∧
|
| 69 |
+
1-ε ≤ ∑ i ∈ Finset.univ.filter (fun i : SourceGrid U n × Fin 3 ↦
|
| 70 |
+
sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ)),
|
| 71 |
+
‖a.latticeAlpha hUD n x i‖^2 := by
|
| 72 |
+
classical
|
| 73 |
+
obtain ⟨C,hC,hb⟩ := a.latticeAlpha_nonmain_bound hUD hU hQ hQU
|
| 74 |
+
have hlim := (tendsto_main_center_tail a.beams.c a.beams.c_pos).const_mul C
|
| 75 |
+
simp only [mul_zero] at hlim
|
| 76 |
+
filter_upwards [hb,hlim.eventually (gt_mem_nhds hε),eventually_gt_atTop (0:ℕ)] with n hn hsmall hnpos
|
| 77 |
+
have := finite_source_grid hUb hnpos
|
| 78 |
+
let hfin := Fintype.ofFinite (SourceGrid U n)
|
| 79 |
+
refine ⟨hfin,?_⟩
|
| 80 |
+
intro x hx
|
| 81 |
+
obtain ⟨hv,ht⟩ := hn x hx
|
| 82 |
+
have hall := a.latticeAlpha_total hUD n x hv
|
| 83 |
+
refine ⟨hall,?_⟩
|
| 84 |
+
have he := Finset.sum_filter_add_sum_filter_not (s := (Finset.univ : Finset (SourceGrid U n × Fin 3)))
|
| 85 |
+
(fun i ↦ sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ))
|
| 86 |
+
(fun i ↦ ‖a.latticeAlpha hUD n x i‖^2)
|
| 87 |
+
simp only [not_le,hall] at he
|
| 88 |
+
linarith
|
| 89 |
+
|
| 90 |
+
end LocalCompactWaveData
|
| 91 |
+
end
|
| 92 |
+
end Yau.Geometry
|
| 93 |
+
|
| 94 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticePhysicalSignSubballs.lean
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.CompactSignEvents
|
| 2 |
+
import OAI.Geometry.NodalSets.Elliptic.RescaledSignTransfer
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LatticeSignSubballs
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory ProbabilityTheory
|
| 9 |
+
open scoped ContDiff Topology
|
| 10 |
+
noncomputable section
|
| 11 |
+
|
| 12 |
+
theorem lattice_physical_sign_subballs
|
| 13 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) {H : Set Coord}
|
| 14 |
+
(hH : IsCompact H) (hg : ContinuousOn g H)
|
| 15 |
+
(hp : ∀ y ∈ H, ∀ v, v ≠ 0 → 0 < g y v v) :
|
| 16 |
+
∃ tau : ℝ, 0 < tau ∧ tau < 1/4 ∧ ∃ r : ℝ, 0 < r ∧
|
| 17 |
+
r < tau/4 ∧ r < (1-tau)/2 ∧ ∃ p : ℝ, 0 < p ∧
|
| 18 |
+
∀ (w S S0 T0 : Coord → ℝ) (D U Q : Set Coord) (m J K k0 : ℕ)
|
| 19 |
+
(a : LocalCompactWaveData g w S D m J K k0) (_ : H ⊆ D) (hUD : U ⊆ D),
|
| 20 |
+
U ⊆ H → IsOpen U → Bornology.IsBounded U → IsCompact Q → Q ⊆ U →
|
| 21 |
+
ContDiff ℝ ∞ S → ContDiff ℝ ∞ S0 → ContDiff ℝ ∞ T0 → 5 ≤ k0 →
|
| 22 |
+
∀ gamma > 0, (∀ x ∈ Q, S0 x+gamma ≤ S x) →
|
| 23 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 24 |
+
∀ x ∈ Q, ∃ j : Fin 4,
|
| 25 |
+
let scale := (n:ℝ)*sourceSignScale g S x
|
| 26 |
+
let f := fun coeff y ↦ oscillatorySeed S0 T0 n y + gaussianWaveField
|
| 27 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2) coeff y
|
| 28 |
+
let A : Set (((SourceGrid U n × Fin 3) × Fin 2) → ℝ) := {coeff |
|
| 29 |
+
(∀ y : Coord, sourceEuclideanNorm (y-x) ≤ r/scale → 0 < f coeff y) ∧
|
| 30 |
+
(∀ y : Coord, sourceEuclideanNorm (y-(x+scale⁻¹ • (tau • Pi.single j 1))) ≤ r/scale →
|
| 31 |
+
f coeff y < 0)}
|
| 32 |
+
0 < scale ∧ MeasurableSet A ∧ p ≤ gaussianPairs.real A := by
|
| 33 |
+
obtain ⟨tau,ht,ht4,r,hr,hrt,hr1,p,hp0,hprob⟩ := lattice_sign_subballs_probability g hH hg hp
|
| 34 |
+
refine ⟨tau,ht,ht4,r,hr,hrt,hr1,p,hp0,?_⟩
|
| 35 |
+
intro w S S0 T0 D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU hS hS0 hT0 hd gamma hgamma hgap
|
| 36 |
+
obtain ⟨c,hc,C,hC,hsigma⟩ := a.lattice_sigma_comparison hUD hU hUb hQ hQU
|
| 37 |
+
filter_upwards [hprob w S S0 T0 D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU
|
| 38 |
+
hS hS0 hT0 hd gamma hgamma hgap,hsigma,eventually_gt_atTop (0:ℕ),a.estimates] with n hn hs hn0 hest
|
| 39 |
+
obtain ⟨hfin,hn⟩ := hn
|
| 40 |
+
obtain ⟨hfin',hs⟩ := hs
|
| 41 |
+
have heq : hfin' = hfin := Subsingleton.elim _ _
|
| 42 |
+
subst hfin'
|
| 43 |
+
let := hfin
|
| 44 |
+
let : IsProbabilityMeasure (gaussianPairs (ι := SourceGrid U n × Fin 3)) := by
|
| 45 |
+
unfold gaussianPairs; infer_instance
|
| 46 |
+
refine ⟨hfin,?_⟩
|
| 47 |
+
intro x hx
|
| 48 |
+
obtain ⟨j,hj⟩ := hn x hx
|
| 49 |
+
have hsc : 0 < (n:ℝ)*sourceSignScale g S x := mul_pos (by exact_mod_cast hn0)
|
| 50 |
+
(lt_of_lt_of_le (by norm_num : (0:ℝ) < 2) (a.source_sign_scale_lower x (hUD (hQU hx))))
|
| 51 |
+
have hsig : 0 < a.latticeSigma hUD n x :=
|
| 52 |
+
(mul_pos hc (Real.exp_pos _)).trans_le (hs x hx).1
|
| 53 |
+
let V := fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2
|
| 54 |
+
have hV (i : SourceGrid U n × Fin 3) : ContDiff ℝ ∞ (V i) :=
|
| 55 |
+
(hest (latticeFrame a.cover hUD n i.1,i.2)).1
|
| 56 |
+
have hmeas := seeded_gaussian_sign_balls_measurable V (oscillatorySeed S0 T0 n)
|
| 57 |
+
hV (oscillatorySeed_contDiff S0 T0 hS0 hT0 n)
|
| 58 |
+
x (x+((n:ℝ)*sourceSignScale g S x)⁻¹ • (tau • Pi.single j 1))
|
| 59 |
+
(r/((n:ℝ)*sourceSignScale g S x)) (r/((n:ℝ)*sourceSignScale g S x))
|
| 60 |
+
refine ⟨j,hsc,hmeas,hj.trans ?_⟩
|
| 61 |
+
apply measureReal_mono
|
| 62 |
+
· intro coeff hcoeff
|
| 63 |
+
exact rescaled_sign_subballs_transfer _ S0 T0 S n (sourceSignScale g S x)
|
| 64 |
+
(a.latticeSigma hUD n x) x coeff hsc hsig tau r j
|
| 65 |
+
(fun v hv ↦ (hcoeff.1 v hv).2) (fun v hv ↦ (hcoeff.2 v hv).2)
|
| 66 |
+
· exact measure_ne_top _ _
|
| 67 |
+
|
| 68 |
+
end
|
| 69 |
+
end Yau.Geometry
|
| 70 |
+
|
| 71 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticePlaneWaveEnergy.lean
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.FrequencyDerivativeEnergy
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeFrequencyAnnulus
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LatticeFullPlaneWaveApprox
|
| 4 |
+
import OAI.Geometry.NodalSets.Waves.LatticeNormalizedWeights
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
namespace Yau.Geometry
|
| 9 |
+
open Yau.Jets Set Filter
|
| 10 |
+
open scoped ContDiff Topology
|
| 11 |
+
noncomputable section
|
| 12 |
+
namespace LocalCompactWaveData
|
| 13 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 14 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 15 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 16 |
+
|
| 17 |
+
lemma latticePlaneWaveCoefficient_smooth (hUD : U ⊆ D) (n : ℕ)
|
| 18 |
+
[Fintype (SourceGrid U n)] (x : Coord) (s : ℝ) (i : SourceGrid U n × Fin 3) :
|
| 19 |
+
ContDiff ℝ ∞ (a.latticePlaneWaveCoefficient hUD n x s i) := by
|
| 20 |
+
classical
|
| 21 |
+
unfold latticePlaneWaveCoefficient
|
| 22 |
+
split_ifs
|
| 23 |
+
· exact contDiff_const.mul (planeWave_smooth _ _)
|
| 24 |
+
· exact contDiff_const
|
| 25 |
+
|
| 26 |
+
lemma latticePlaneWaveCoefficient_energy (hUD : U ⊆ D) (n : ℕ)
|
| 27 |
+
[Fintype (SourceGrid U n)] (x : Coord) (s : ℝ) {B : ℝ} (hB : 1 ≤ B)
|
| 28 |
+
(hm : ∑ i : SourceGrid U n × Fin 3, ‖a.latticeAlpha hUD n x i‖^2 ≤ 1)
|
| 29 |
+
(hb : ∀ i : SourceGrid U n × Fin 3,
|
| 30 |
+
sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ) →
|
| 31 |
+
sourceEuclideanNorm (sourceFrequency (g (scaledLatticePoint n i.1))
|
| 32 |
+
(a.cover.triple.q (latticeFrame a.cover hUD n i.1) i.2) s) ≤ B)
|
| 33 |
+
(k : ℕ) (v : Coord) :
|
| 34 |
+
∑ i : SourceGrid U n × Fin 3,
|
| 35 |
+
‖iteratedFDeriv ℝ k (a.latticePlaneWaveCoefficient hUD n x s i) v‖^2 ≤
|
| 36 |
+
(k.factorial*(4*B)^k)^2 := by
|
| 37 |
+
classical
|
| 38 |
+
have hbound (i : SourceGrid U n × Fin 3) :
|
| 39 |
+
‖iteratedFDeriv ℝ k (a.latticePlaneWaveCoefficient hUD n x s i) v‖ ≤
|
| 40 |
+
‖a.latticeAlpha hUD n x i‖*(k.factorial*(4*B)^k) := by
|
| 41 |
+
unfold latticePlaneWaveCoefficient
|
| 42 |
+
split_ifs with hi
|
| 43 |
+
· exact weighted_planeWave_derivative_bound _ _ s hB (hb i hi) k v
|
| 44 |
+
· simp only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero]
|
| 45 |
+
positivity
|
| 46 |
+
calc
|
| 47 |
+
_ ≤ ∑ i : SourceGrid U n × Fin 3,
|
| 48 |
+
(‖a.latticeAlpha hUD n x i‖*(k.factorial*(4*B)^k))^2 :=
|
| 49 |
+
Finset.sum_le_sum (fun i _ ↦ pow_le_pow_left₀ (norm_nonneg _) (hbound i) 2)
|
| 50 |
+
_ = (∑ i : SourceGrid U n × Fin 3, ‖a.latticeAlpha hUD n x i‖^2)*
|
| 51 |
+
(k.factorial*(4*B)^k)^2 := by simp only [mul_pow,Finset.sum_mul]
|
| 52 |
+
_ ≤ _ := by nlinarith [sq_nonneg ((k.factorial:ℝ)*(4*B)^k)]
|
| 53 |
+
end LocalCompactWaveData
|
| 54 |
+
|
| 55 |
+
theorem lattice_planeWave_derivative_energy
|
| 56 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) {H : Set Coord}
|
| 57 |
+
(hH : IsCompact H) (hg : ContinuousOn g H)
|
| 58 |
+
(hp : ∀ y ∈ H, ∀ v, v ≠ 0 → 0 < g y v v) (d : ℕ) :
|
| 59 |
+
∃ C > 0, ∀ (w S : Coord → ℝ) (D U Q : Set Coord) (m J K k0 : ℕ)
|
| 60 |
+
(a : LocalCompactWaveData g w S D m J K k0) (_ : H ⊆ D) (hUD : U ⊆ D),
|
| 61 |
+
U ⊆ H → IsOpen U → Bornology.IsBounded U → IsCompact Q → Q ⊆ U →
|
| 62 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 63 |
+
∀ x ∈ Q, ∀ v : Coord, ∀ k : ℕ, k ≤ d →
|
| 64 |
+
∑ i : SourceGrid U n × Fin 3,
|
| 65 |
+
‖iteratedFDeriv ℝ k
|
| 66 |
+
(a.latticePlaneWaveCoefficient hUD n x (sourceSignScale g S x) i) v‖^2 ≤ C := by
|
| 67 |
+
obtain ⟨κ,hκ,B,hB,hann⟩ := lattice_main_frequency_annulus g hH hg hp
|
| 68 |
+
let B' := max 1 B
|
| 69 |
+
let C := ((d.factorial:ℝ)*(4*B')^d)^2
|
| 70 |
+
have hB' : 1 ≤ B' := le_max_left _ _
|
| 71 |
+
have h4 : 1 ≤ 4*B' := by linarith
|
| 72 |
+
refine ⟨C,by dsimp [C]; positivity,?_⟩
|
| 73 |
+
intro w S D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU
|
| 74 |
+
filter_upwards [hann w S D U m J K k0 a hHD hUD hUH,
|
| 75 |
+
a.latticeAlpha_main_mass hUD hU hUb hQ hQU (1/2) (by norm_num)] with n hn hm
|
| 76 |
+
obtain ⟨hfin,hm⟩ := hm
|
| 77 |
+
let := hfin
|
| 78 |
+
refine ⟨hfin,?_⟩
|
| 79 |
+
intro x hx v k hk
|
| 80 |
+
apply (a.latticePlaneWaveCoefficient_energy hUD n x _ hB' (by rw [(hm x hx).1])
|
| 81 |
+
(fun i hi ↦ ((hn x (hUH (hQU hx)) i hi).2).trans (le_max_right _ _)) k v).trans
|
| 82 |
+
have hf : (k.factorial:ℝ) ≤ d.factorial := by exact_mod_cast Nat.factorial_le hk
|
| 83 |
+
have hpow := pow_le_pow_right₀ h4 hk
|
| 84 |
+
dsimp [C]
|
| 85 |
+
gcongr
|
| 86 |
+
|
| 87 |
+
end
|
| 88 |
+
end Yau.Geometry
|
| 89 |
+
|
| 90 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticePlaneWaveJets.lean
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.LatticeNormalizedWeights
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.PlaneWaveJets2
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Set Filter
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 11 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 12 |
+
namespace LocalCompactWaveData
|
| 13 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 14 |
+
|
| 15 |
+
theorem lattice_main_coefficient_jets (hUD : U ⊆ D) (R : ℝ) (hR : 0 ≤ R)
|
| 16 |
+
(d0 : ℕ) (e : ℝ) (he : 0 < e) :
|
| 17 |
+
∀ᶠ n : ℕ in atTop, ∀ x ∈ D, ∀ s : ℝ, 1 ≤ s →
|
| 18 |
+
∀ (sigma : ℝ) (v : Coord), ‖v‖ ≤ R → ∀ i : SourceGrid U n × Fin 3,
|
| 19 |
+
sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ) → ∀ k, k ≤ d0 →
|
| 20 |
+
‖iteratedFDeriv ℝ k (fun z ↦ normalizedRescaling (latticeWave a.cover a.beams hUD n i.1 i.2) S n s sigma x z -
|
| 21 |
+
(latticeWave a.cover a.beams hUD n i.1 i.2 x/(sigma:ℂ))*
|
| 22 |
+
planeWave (g (scaledLatticePoint n i.1) (a.cover.triple.q (latticeFrame a.cover hUD n i.1) i.2)) s z) v‖ ≤
|
| 23 |
+
e*‖latticeWave a.cover a.beams hUD n i.1 i.2 x/(sigma:ℂ)‖ := by
|
| 24 |
+
have hy := continuous_coverSourceCenter a.cover
|
| 25 |
+
have hp0 t := a.nonzero_gradient _ (a.cover.center t).property
|
| 26 |
+
filter_upwards [a.beams.uniform_main_coefficient_jets a.smooth_G a.positive_G
|
| 27 |
+
a.smooth_A hy hp0 R hR d0 e he] with n hn
|
| 28 |
+
intro x hx s hs sigma v hv i hi k hk
|
| 29 |
+
have hh := hn (latticeFrame a.cover hUD n i.1,i.2) x s hs
|
| 30 |
+
(by simpa only [latticeFrame_center] using hi) sigma v hv k hk
|
| 31 |
+
have hxA := (a.germ x (a.centers_E hx)).2.2
|
| 32 |
+
have hyG := (a.germ (scaledLatticePoint n i.1) (a.centers_E (hUD i.1.property))).1
|
| 33 |
+
simpa only [latticeFrame_center,hyG.self_of_nhds,latticeWave,TripleSourceWaveData.wave,
|
| 34 |
+
normalizedRescaling,rescaledSeedNormalizer,hxA.fderiv_eq] using hh
|
| 35 |
+
|
| 36 |
+
theorem lattice_main_jet_approximation (hUD : U ⊆ D) (hU : IsOpen U)
|
| 37 |
+
(hUb : Bornology.IsBounded U) {Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U)
|
| 38 |
+
(R : ℝ) (hR : 0 ≤ R) (d0 : ℕ) (e : ℝ) (he : 0 < e) :
|
| 39 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 40 |
+
∀ x ∈ Q, ∀ s : ℝ, 1 ≤ s → ∀ v : Coord, ‖v‖ ≤ R → ∀ k, k ≤ d0 →
|
| 41 |
+
∑ i ∈ Finset.univ.filter (fun i : SourceGrid U n × Fin 3 ↦
|
| 42 |
+
sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ)),
|
| 43 |
+
‖iteratedFDeriv ℝ k (fun z ↦ normalizedRescaling (latticeWave a.cover a.beams hUD n i.1 i.2) S n s
|
| 44 |
+
(a.latticeSigma hUD n x) x z - a.latticeAlpha hUD n x i *
|
| 45 |
+
planeWave (g (scaledLatticePoint n i.1) (a.cover.triple.q (latticeFrame a.cover hUD n i.1) i.2)) s z) v‖^2 ≤ e := by
|
| 46 |
+
classical
|
| 47 |
+
filter_upwards [a.lattice_main_coefficient_jets hUD R hR d0 (Real.sqrt e) (Real.sqrt_pos.mpr he),
|
| 48 |
+
a.latticeAlpha_main_mass hUD hU hUb hQ hQU 1 zero_lt_one] with n hn hmass
|
| 49 |
+
obtain ⟨hfin,hmass⟩ := hmass
|
| 50 |
+
let := hfin
|
| 51 |
+
refine ⟨hfin,?_⟩
|
| 52 |
+
intro x hx s hs v hv k hk
|
| 53 |
+
let I := Finset.univ.filter (fun i : SourceGrid U n × Fin 3 ↦
|
| 54 |
+
sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ))
|
| 55 |
+
have hsum : ∑ i ∈ I, ‖a.latticeAlpha hUD n x i‖^2 ≤ 1 := by
|
| 56 |
+
rw [← (hmass x hx).1]
|
| 57 |
+
exact Finset.sum_le_sum_of_subset_of_nonneg (Finset.filter_subset _ _) (fun _ _ _ ↦ sq_nonneg _)
|
| 58 |
+
calc
|
| 59 |
+
_ ≤ ∑ i ∈ I, e*‖a.latticeAlpha hUD n x i‖^2 := by
|
| 60 |
+
apply Finset.sum_le_sum
|
| 61 |
+
intro i hi
|
| 62 |
+
have hb := hn x (hUD (hQU hx)) s hs (a.latticeSigma hUD n x) v hv i (Finset.mem_filter.mp hi).2 k hk
|
| 63 |
+
have hh := pow_le_pow_left₀ (norm_nonneg _) hb 2
|
| 64 |
+
rw [mul_pow,Real.sq_sqrt he.le] at hh
|
| 65 |
+
exact hh
|
| 66 |
+
_ = e*(∑ i ∈ I, ‖a.latticeAlpha hUD n x i‖^2) := by rw [Finset.mul_sum]
|
| 67 |
+
_ ≤ e := by nlinarith
|
| 68 |
+
|
| 69 |
+
end LocalCompactWaveData
|
| 70 |
+
end
|
| 71 |
+
end Yau.Geometry
|
| 72 |
+
|
| 73 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeProbabilityRates.lean
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Coefficients.GaussianCoefficientTail
|
| 2 |
+
import OAI.Geometry.NodalSets.Elliptic.NetDecay
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LatticeCount
|
| 4 |
+
import OAI.Geometry.NodalSets.Waves.LatticeNetSmallBall
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
namespace Yau.Geometry
|
| 9 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory ProbabilityTheory
|
| 10 |
+
open scoped Topology ENNReal
|
| 11 |
+
noncomputable section
|
| 12 |
+
|
| 13 |
+
lemma lattice_coefficient_event_failure {U : Set Coord} (hU : Bornology.IsBounded U) :
|
| 14 |
+
∃ C > 0, ∀ n : ℕ, 0 < n → ∀ hfin : Fintype (SourceGrid U n),
|
| 15 |
+
letI := hfin
|
| 16 |
+
(gaussianPairs (ι := SourceGrid U n × Fin 3)) (coefficientEvent (n:ℝ))ᶜ ≤
|
| 17 |
+
ENNReal.ofReal (C*(n:ℝ)^2*Real.exp (-(n:ℝ)^2/8)) := by
|
| 18 |
+
obtain ⟨C,hC,hcard⟩ := source_coefficient_card_bound hU
|
| 19 |
+
refine ⟨4*C,by positivity,?_⟩
|
| 20 |
+
intro n hn hfin
|
| 21 |
+
let := hfin
|
| 22 |
+
have h := coefficient_event_failure (ι := SourceGrid U n × Fin 3)
|
| 23 |
+
(r := (n:ℝ)) (by positivity)
|
| 24 |
+
refine h.trans (ENNReal.ofReal_le_ofReal ?_)
|
| 25 |
+
have hc : (Fintype.card (SourceGrid U n × Fin 3):ℝ) ≤ C*(n:ℝ)^2 := by
|
| 26 |
+
simpa only [Nat.card_eq_fintype_card] using hcard n hn
|
| 27 |
+
nlinarith [mul_le_mul_of_nonneg_right hc (Real.exp_nonneg (-(n:ℝ)^2/8))]
|
| 28 |
+
|
| 29 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 30 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 31 |
+
namespace LocalCompactWaveData
|
| 32 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 33 |
+
|
| 34 |
+
theorem actual_lattice_net_failure_rate (hUD : U ⊆ D) (hU : IsOpen U)
|
| 35 |
+
(hUb : Bornology.IsBounded U) {Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U) :
|
| 36 |
+
∃ B > 0, ∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n),
|
| 37 |
+
letI := hfin
|
| 38 |
+
∀ E : Set Coord, E ⊆ Q → ∃ t : Finset Coord,
|
| 39 |
+
(↑t : Set Coord) ⊆ E ∧
|
| 40 |
+
(∀ x ∈ E, ∃ y ∈ t, ‖x-y‖ ≤ (4*(n:ℝ)^69)⁻¹ ∧
|
| 41 |
+
sourceEuclideanNorm (x-y) ≤ (2*(n:ℝ)^69)⁻¹) ∧
|
| 42 |
+
∀ seed : Coord → ℝ, (∀ x ∈ Q, DifferentiableAt ℝ seed x) →
|
| 43 |
+
gaussianPairs {coeff | ∃ x ∈ t,
|
| 44 |
+
‖a.latticeSeededJet hUD n hfin seed x coeff‖ ≤ 2/(n:ℝ)^56} ≤
|
| 45 |
+
ENNReal.ofReal (B/((n:ℝ)*Real.sqrt n)) := by
|
| 46 |
+
obtain ⟨c,hc,C,hC,hnet⟩ := a.actual_lattice_net_small_ball hUD hU hUb hQ hQU
|
| 47 |
+
refine ⟨C*(24/(Real.sqrt c*Real.sqrt (2*Real.pi)))^5,by positivity,?_⟩
|
| 48 |
+
filter_upwards [hnet,eventually_gt_atTop (0:ℕ)] with n hn hnpos
|
| 49 |
+
obtain ⟨hfin,hb⟩ := hn
|
| 50 |
+
let := hfin
|
| 51 |
+
refine ⟨hfin,?_⟩
|
| 52 |
+
intro E hEQ
|
| 53 |
+
obtain ⟨t,ht,_,hcover,hprob⟩ := hb E hEQ
|
| 54 |
+
refine ⟨t,ht,hcover,?_⟩
|
| 55 |
+
intro seed hs
|
| 56 |
+
have h := hprob seed hs
|
| 57 |
+
rw [net_small_ball_rate C c n hc (by positivity)] at h
|
| 58 |
+
exact h
|
| 59 |
+
|
| 60 |
+
end LocalCompactWaveData
|
| 61 |
+
|
| 62 |
+
end
|
| 63 |
+
end Yau.Geometry
|
| 64 |
+
|
| 65 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeSignMargin.lean
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.SignScaleSeed
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeActualTwoPoint
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LatticeSignValueBounds
|
| 4 |
+
import OAI.Geometry.NodalSets.Waves.TwoValueSignProbability
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
namespace Yau.Geometry
|
| 9 |
+
open Yau.Jets Yau.Probability MeasureTheory ProbabilityTheory Set Filter
|
| 10 |
+
open scoped ContDiff Topology ENNReal
|
| 11 |
+
noncomputable section
|
| 12 |
+
|
| 13 |
+
theorem lattice_sign_margin_probability
|
| 14 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) {H : Set Coord}
|
| 15 |
+
(hH : IsCompact H) (hg : ContinuousOn g H)
|
| 16 |
+
(hp : ∀ y ∈ H, ∀ v, v ≠ 0 → 0 < g y v v) :
|
| 17 |
+
∃ tau : ℝ, 0 < tau ∧ tau < 1/4 ∧ ∃ p : ℝ≥0∞, 0 < p ∧
|
| 18 |
+
∀ (w S S0 T0 : Coord → ℝ) (D U Q : Set Coord) (m J K k0 : ℕ)
|
| 19 |
+
(a : LocalCompactWaveData g w S D m J K k0) (_ : H ⊆ D) (hUD : U ⊆ D),
|
| 20 |
+
U ⊆ H → IsOpen U → Bornology.IsBounded U → IsCompact Q → Q ⊆ U →
|
| 21 |
+
ContDiff ℝ ∞ S → ContDiff ℝ ∞ S0 → ContDiff ℝ ∞ T0 →
|
| 22 |
+
∀ gamma > 0, (∀ x ∈ Q, S0 x+gamma ≤ S x) →
|
| 23 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 24 |
+
∀ x ∈ Q, ∃ j : Fin 4,
|
| 25 |
+
let F := rescaledGaussianField
|
| 26 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2)
|
| 27 |
+
S0 T0 S n (sourceSignScale g S x) (a.latticeSigma hUD n x) x
|
| 28 |
+
p ≤ gaussianPairs {coeff | 1 ≤ F coeff 0 ∧ F coeff (tau • Pi.single j 1) ≤ -1} := by
|
| 29 |
+
obtain ⟨tau,ht,ht4,d,hd,henergy⟩ := lattice_actual_two_point_energy g hH hg hp
|
| 30 |
+
obtain ⟨p,hp,hprob⟩ := two_value_sign_probability d 2 hd (by norm_num)
|
| 31 |
+
refine ⟨tau,ht,ht4,p,hp,?_⟩
|
| 32 |
+
intro w S S0 T0 D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU hS hS0 hT0 gamma hgamma hgap
|
| 33 |
+
filter_upwards [henergy w S D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU hS,
|
| 34 |
+
a.lattice_sign_coefficient_upper hUD hU hUb hQ hQU hS,
|
| 35 |
+
a.sign_scale_seed_decay hUD hU hUb hQ hQU hS S0 T0 hS0 hT0 gamma hgamma hgap 0 1 (by norm_num)]
|
| 36 |
+
with n he hu hs
|
| 37 |
+
obtain ⟨hfin,he⟩ := he
|
| 38 |
+
obtain ⟨hfin',hu⟩ := hu
|
| 39 |
+
obtain ⟨hfin'',hs⟩ := hs
|
| 40 |
+
have heq : hfin' = hfin := Subsingleton.elim _ _
|
| 41 |
+
have heq' : hfin'' = hfin := Subsingleton.elim _ _
|
| 42 |
+
subst hfin'
|
| 43 |
+
subst hfin''
|
| 44 |
+
let := hfin
|
| 45 |
+
refine ⟨hfin,?_⟩
|
| 46 |
+
intro x hx
|
| 47 |
+
obtain ⟨j,hj⟩ := he x hx
|
| 48 |
+
let v : Coord := tau • Pi.single j 1
|
| 49 |
+
let seed := rescaledSeed S0 T0 S n (sourceSignScale g S x) (a.latticeSigma hUD n x) x
|
| 50 |
+
let A := fun i : SourceGrid U n × Fin 3 ↦ normalizedRescaling
|
| 51 |
+
(latticeWave a.cover a.beams hUD n i.1 i.2) S n (sourceSignScale g S x)
|
| 52 |
+
(a.latticeSigma hUD n x) x
|
| 53 |
+
let mean : EuclideanSpace ℝ (Fin 2) := WithLp.toLp 2 ![seed 0,seed v]
|
| 54 |
+
have hvnorm : ‖v‖ = tau := by
|
| 55 |
+
simp [v,norm_smul,Real.norm_eq_abs,abs_of_pos ht,Pi.norm_single]
|
| 56 |
+
have hv : sourceEuclideanNorm v ≤ 2 := (sourceEuclideanNorm_le v).trans (by rw [hvnorm]; linarith)
|
| 57 |
+
have hv0 : sourceEuclideanNorm (0:Coord) ≤ 2 := by simp [sourceEuclideanNorm]
|
| 58 |
+
have hs0 := hs x hx 0 hv0 (0 : Fin 1)
|
| 59 |
+
have hs1 := hs x hx v hv (0 : Fin 1)
|
| 60 |
+
simp only [Fin.val_zero,norm_iteratedFDeriv_zero] at hs0 hs1
|
| 61 |
+
change ‖seed 0‖ ≤ 1 at hs0
|
| 62 |
+
change ‖seed v‖ ≤ 1 at hs1
|
| 63 |
+
have hmean : ‖mean‖ ≤ 2 := by
|
| 64 |
+
have hsq : ‖mean‖^2 = (seed 0)^2+(seed v)^2 := by
|
| 65 |
+
simp [mean,EuclideanSpace.real_norm_sq_eq,Fin.sum_univ_two]
|
| 66 |
+
have h0 := pow_le_pow_left₀ (norm_nonneg _) hs0 2
|
| 67 |
+
have h1 := pow_le_pow_left₀ (norm_nonneg _) hs1 2
|
| 68 |
+
simp only [Real.norm_eq_abs,sq_abs,one_pow] at h0 h1
|
| 69 |
+
nlinarith [norm_nonneg mean]
|
| 70 |
+
have hb := hprob (fun i ↦ A i 0) (fun i ↦ A i v) mean hmean
|
| 71 |
+
(hu x hx 0 (by simp)) (hu x hx v (by rw [hvnorm]; linarith)) hj
|
| 72 |
+
refine ⟨j,?_⟩
|
| 73 |
+
convert hb using 1
|
| 74 |
+
congr 1
|
| 75 |
+
ext coeff
|
| 76 |
+
simp [rescaledGaussianField_decomposition,mean,seed,A,v,
|
| 77 |
+
pairLinearSum_eq_complex,gaussianWaveField,Complex.re_sum]
|
| 78 |
+
|
| 79 |
+
end
|
| 80 |
+
end Yau.Geometry
|
| 81 |
+
|
| 82 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeSignSubballs.lean
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.LatticeGradientExpectation
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeSignMargin
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.SignSubballProbability
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory ProbabilityTheory
|
| 9 |
+
open scoped ContDiff Topology
|
| 10 |
+
noncomputable section
|
| 11 |
+
|
| 12 |
+
theorem lattice_sign_subballs_probability
|
| 13 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) {H : Set Coord}
|
| 14 |
+
(hH : IsCompact H) (hg : ContinuousOn g H)
|
| 15 |
+
(hp : ∀ y ∈ H, ∀ v, v ≠ 0 → 0 < g y v v) :
|
| 16 |
+
∃ tau : ℝ, 0 < tau ∧ tau < 1/4 ∧ ∃ r : ℝ, 0 < r ∧
|
| 17 |
+
r < tau/4 ∧ r < (1-tau)/2 ∧ ∃ p : ℝ, 0 < p ∧
|
| 18 |
+
∀ (w S S0 T0 : Coord → ℝ) (D U Q : Set Coord) (m J K k0 : ℕ)
|
| 19 |
+
(a : LocalCompactWaveData g w S D m J K k0) (_ : H ⊆ D) (hUD : U ⊆ D),
|
| 20 |
+
U ⊆ H → IsOpen U → Bornology.IsBounded U → IsCompact Q → Q ⊆ U →
|
| 21 |
+
ContDiff ℝ ∞ S → ContDiff ℝ ∞ S0 → ContDiff ℝ ∞ T0 → 5 ≤ k0 →
|
| 22 |
+
∀ gamma > 0, (∀ x ∈ Q, S0 x+gamma ≤ S x) →
|
| 23 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 24 |
+
∀ x ∈ Q, ∃ j : Fin 4,
|
| 25 |
+
let F := rescaledGaussianField
|
| 26 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2)
|
| 27 |
+
S0 T0 S n (sourceSignScale g S x) (a.latticeSigma hUD n x) x
|
| 28 |
+
p ≤ gaussianPairs.real {coeff |
|
| 29 |
+
(∀ v : Coord, sourceEuclideanNorm v ≤ r →
|
| 30 |
+
sourceEuclideanNorm v ≤ 1 ∧ 0 < F coeff v) ∧
|
| 31 |
+
(∀ v : Coord, sourceEuclideanNorm (v-tau • Pi.single j 1) ≤ r →
|
| 32 |
+
sourceEuclideanNorm v ≤ 1 ∧ F coeff v < 0)} := by
|
| 33 |
+
obtain ⟨tau,ht,ht4,p,hp0,hmargin⟩ := lattice_sign_margin_probability g hH hg hp
|
| 34 |
+
obtain ⟨q,hq,hq1,hqp⟩ := positive_real_probability_floor hp0
|
| 35 |
+
obtain ⟨C,hC,hmean⟩ := lattice_gradient_expectation g hH hg hp
|
| 36 |
+
obtain ⟨L,hL,r,hr,hrt,hr1,hrL,hCL⟩ := sign_subball_constants ht (by linarith) hq hC.le
|
| 37 |
+
refine ⟨tau,ht,ht4,r,hr,hrt,hr1,q/2,by positivity,?_⟩
|
| 38 |
+
intro w S S0 T0 D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU hS hS0 hT0 hd gamma hgamma hgap
|
| 39 |
+
filter_upwards [hmargin w S S0 T0 D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU
|
| 40 |
+
hS hS0 hT0 gamma hgamma hgap,
|
| 41 |
+
hmean w S S0 T0 D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU
|
| 42 |
+
hS hS0 hT0 hd gamma hgamma hgap,a.estimates] with n hn hm hest
|
| 43 |
+
obtain ⟨hfin,hn⟩ := hn
|
| 44 |
+
obtain ⟨hfin',hm⟩ := hm
|
| 45 |
+
have heq : hfin' = hfin := Subsingleton.elim _ _
|
| 46 |
+
subst hfin'
|
| 47 |
+
let := hfin
|
| 48 |
+
let : IsProbabilityMeasure (gaussianPairs (ι := SourceGrid U n × Fin 3)) := by
|
| 49 |
+
unfold gaussianPairs; infer_instance
|
| 50 |
+
refine ⟨hfin,?_⟩
|
| 51 |
+
intro x hx
|
| 52 |
+
obtain ⟨j,hj⟩ := hn x hx
|
| 53 |
+
obtain ⟨G,hGc,hGi,hG0,hGC,hGe⟩ := hm x hx
|
| 54 |
+
let V := fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2
|
| 55 |
+
let F := rescaledGaussianField V S0 T0 S n (sourceSignScale g S x) (a.latticeSigma hUD n x) x
|
| 56 |
+
have hV (i : SourceGrid U n × Fin 3) : ContDiff ℝ ∞ (V i) :=
|
| 57 |
+
(hest (latticeFrame a.cover hUD n i.1,i.2)).1
|
| 58 |
+
have hF (coeff) : ContDiff ℝ ∞ (F coeff) := by
|
| 59 |
+
have he : F coeff = fun z ↦ rescaledSeed S0 T0 S n (sourceSignScale g S x)
|
| 60 |
+
(a.latticeSigma hUD n x) x z + gaussianWaveField
|
| 61 |
+
(fun i ↦ normalizedRescaling (V i) S n (sourceSignScale g S x)
|
| 62 |
+
(a.latticeSigma hUD n x) x) coeff z := by
|
| 63 |
+
ext z
|
| 64 |
+
exact rescaledGaussianField_decomposition _ _ _ _ _ _ _ _ _ _
|
| 65 |
+
rw [he]
|
| 66 |
+
exact (rescaledSeed_smooth _ _ _ hS0 hT0 _ _ _ _).add
|
| 67 |
+
(gaussianWaveField_contDiff _ _ (fun i ↦ normalizedRescaling_smooth _ (hV i) _ _ _ _ _))
|
| 68 |
+
have hqA : q ≤ gaussianPairs.real {coeff | 1 ≤ F coeff 0 ∧ F coeff (tau • Pi.single j 1) ≤ -1} := by
|
| 69 |
+
have hh := ENNReal.toReal_mono (measure_ne_top _ _) (hqp.trans hj)
|
| 70 |
+
simpa only [ENNReal.toReal_ofReal hq.le,Measure.real] using hh
|
| 71 |
+
refine ⟨j,?_⟩
|
| 72 |
+
exact sign_subballs_probability gaussianPairs F hF G hGi hG0 ht.le hr.le hL
|
| 73 |
+
(by linarith) hrL hGC hCL (fun coeff hcoeff ↦ (hGe coeff L hL.le).mp hcoeff) j hqA
|
| 74 |
+
|
| 75 |
+
end
|
| 76 |
+
end Yau.Geometry
|
| 77 |
+
|
| 78 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeSignValueBounds.lean
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Coefficients.TwoPointCoefficientEnergy
|
| 2 |
+
import OAI.Geometry.NodalSets.Elliptic.SignScaleSeed
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LatticeTwoPointCovariance
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Yau.Probability MeasureTheory ProbabilityTheory Set Filter
|
| 9 |
+
open scoped ContDiff Topology
|
| 10 |
+
noncomputable section
|
| 11 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 12 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 13 |
+
namespace LocalCompactWaveData
|
| 14 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 15 |
+
|
| 16 |
+
theorem lattice_sign_coefficient_upper (hUD : U ⊆ D) (hU : IsOpen U)
|
| 17 |
+
(hUb : Bornology.IsBounded U) {Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U)
|
| 18 |
+
(hS : ContDiff ℝ ∞ S) :
|
| 19 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 20 |
+
∀ x ∈ Q, ∀ v : Coord, ‖v‖ ≤ 2 →
|
| 21 |
+
∑ i : SourceGrid U n × Fin 3,
|
| 22 |
+
‖normalizedRescaling (latticeWave a.cover a.beams hUD n i.1 i.2)
|
| 23 |
+
S n (sourceSignScale g S x) (a.latticeSigma hUD n x) x v‖^2 ≤ 4 := by
|
| 24 |
+
classical
|
| 25 |
+
filter_upwards [a.lattice_full_jet_approximation hUD hU hUb hQ hQU hS 2 (by norm_num) 1 (by norm_num),
|
| 26 |
+
a.latticeAlpha_main_mass hUD hU hUb hQ hQU (1/2) (by norm_num)] with n herr hm
|
| 27 |
+
obtain ⟨hfin,herr⟩ := herr
|
| 28 |
+
obtain ⟨hfin',hm⟩ := hm
|
| 29 |
+
have heq : hfin' = hfin := Subsingleton.elim _ _
|
| 30 |
+
subst hfin'
|
| 31 |
+
let := hfin
|
| 32 |
+
refine ⟨hfin,?_⟩
|
| 33 |
+
intro x hx v hv
|
| 34 |
+
let W := a.latticePlaneWaveCoefficient hUD n x (sourceSignScale g S x)
|
| 35 |
+
let A := fun i : SourceGrid U n × Fin 3 ↦ normalizedRescaling
|
| 36 |
+
(latticeWave a.cover a.beams hUD n i.1 i.2) S n (sourceSignScale g S x)
|
| 37 |
+
(a.latticeSigma hUD n x) x
|
| 38 |
+
have hs : 1 ≤ sourceSignScale g S x := by
|
| 39 |
+
linarith [a.source_sign_scale_lower x (hUD (hQU hx))]
|
| 40 |
+
have herr' := herr x hx _ hs v hv (0 : Fin (k0+1))
|
| 41 |
+
simp +instances only [Fin.val_zero,norm_iteratedFDeriv_zero] at herr'
|
| 42 |
+
have hW : ∑ i, ‖W i v‖^2 ≤ 1 := by
|
| 43 |
+
rw [← variance_pairLinearSum,← gaussianWaveField_eq_pair,a.lattice_plane_wave_variance,← (hm x hx).1]
|
| 44 |
+
exact Finset.sum_le_sum_of_subset_of_nonneg (Finset.filter_subset _ _) (fun i _ _ ↦ sq_nonneg _)
|
| 45 |
+
have hh (i : SourceGrid U n × Fin 3) : ‖A i v‖^2 ≤ 2*‖A i v-W i v‖^2+2*‖W i v‖^2 := by
|
| 46 |
+
simpa only [sub_add_cancel] using complex_norm_add_sq_bound (A i v-W i v) (W i v)
|
| 47 |
+
have hsum := Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset (SourceGrid U n × Fin 3))) ↦ hh i)
|
| 48 |
+
simp only [Finset.sum_add_distrib,← Finset.mul_sum] at hsum
|
| 49 |
+
change (∑ i, ‖A i v‖^2) ≤ 4
|
| 50 |
+
change (∑ i, ‖A i v-W i v‖^2) ≤ 1 at herr'
|
| 51 |
+
linarith
|
| 52 |
+
|
| 53 |
+
end LocalCompactWaveData
|
| 54 |
+
end
|
| 55 |
+
end Yau.Geometry
|
| 56 |
+
|
| 57 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeSourceWaves.lean
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.CompactSourceWaves
|
| 2 |
+
|
| 3 |
+
namespace OAI
|
| 4 |
+
|
| 5 |
+
namespace Yau.Geometry
|
| 6 |
+
open Yau.Jets Set Filter
|
| 7 |
+
open scoped ContDiff Topology
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
def scaledLatticePoint (n : ℕ) (z : Fin 4 → ℤ) : Coord :=
|
| 11 |
+
(n:ℝ)^(-1/2:ℝ) • (fun i ↦ (z i:ℝ))
|
| 12 |
+
|
| 13 |
+
abbrev SourceGrid (U : Set Coord) (n : ℕ) := {z : Fin 4 → ℤ // scaledLatticePoint n z ∈ U}
|
| 14 |
+
|
| 15 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 16 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 17 |
+
|
| 18 |
+
def selectFrame (d : SourceCompactFrameCover g S D) (x : D) : d.Parameter :=
|
| 19 |
+
Classical.choose (d.surjective_center x)
|
| 20 |
+
|
| 21 |
+
lemma selectFrame_center (d : SourceCompactFrameCover g S D) (x : D) :
|
| 22 |
+
coverSourceCenter d (selectFrame d x) = x :=
|
| 23 |
+
congrArg Subtype.val (Classical.choose_spec (d.surjective_center x))
|
| 24 |
+
|
| 25 |
+
def latticeFrame (d : SourceCompactFrameCover g S D) (hUD : U ⊆ D)
|
| 26 |
+
(n : ℕ) (z : SourceGrid U n) : d.Parameter :=
|
| 27 |
+
selectFrame d ⟨scaledLatticePoint n z,hUD z.property⟩
|
| 28 |
+
|
| 29 |
+
lemma latticeFrame_center (d : SourceCompactFrameCover g S D) (hUD : U ⊆ D)
|
| 30 |
+
(n : ℕ) (z : SourceGrid U n) :
|
| 31 |
+
coverSourceCenter d (latticeFrame d hUD n z) = scaledLatticePoint n z :=
|
| 32 |
+
selectFrame_center d _
|
| 33 |
+
|
| 34 |
+
def latticeWave (d : SourceCompactFrameCover g S D)
|
| 35 |
+
(b : TripleSourceWaveData g w S (coverSourceCenter d) d.triple m J K k0)
|
| 36 |
+
(hUD : U ⊆ D) (n : ℕ) (z : SourceGrid U n) (j : Fin 3) : Coord → ℂ :=
|
| 37 |
+
chartPushforward (b.F (latticeFrame d hUD n z,j))
|
| 38 |
+
(coordinateWave b.phi b.A J (n:ℝ) (latticeFrame d hUD n z,j))
|
| 39 |
+
|
| 40 |
+
theorem lattice_wave_estimates (d : SourceCompactFrameCover g S D)
|
| 41 |
+
(b : TripleSourceWaveData g w S (coverSourceCenter d) d.triple m J K k0)
|
| 42 |
+
(hUD : U ⊆ D) :
|
| 43 |
+
∀ᶠ n : ℕ in atTop, ∀ (z : SourceGrid U n) (j : Fin 3),
|
| 44 |
+
ContDiff ℝ ∞ (latticeWave d b hUD n z j) ∧ HasCompactSupport (latticeWave d b hUD n z j) ∧
|
| 45 |
+
tsupport (latticeWave d b hUD n z j) ⊆
|
| 46 |
+
{x | sourceEuclideanNorm (x-scaledLatticePoint n z) ≤ b.R*(n:ℝ)^(-1/3:ℝ)} ∧
|
| 47 |
+
∀ x : Coord,
|
| 48 |
+
(∀ k : Fin (k0+1), ‖iteratedFDeriv ℝ k.val (latticeWave d b hUD n z j) x‖ ≤
|
| 49 |
+
b.Cw*(n:ℝ)^k.val*Real.exp ((n:ℝ)*S x-b.c*(n:ℝ)*(sourceEuclideanNorm (x-scaledLatticePoint n z))^2)) ∧
|
| 50 |
+
DerivativeBound k0 (fun x ↦ sourceWeightedOperator g w (latticeWave d b hUD n z j) x +
|
| 51 |
+
((4:ℂ)*(n:ℂ)^2+6*(n:ℂ))*latticeWave d b hUD n z j x) x
|
| 52 |
+
(b.Cr*(n:ℝ)^(-(K:ℝ))*Real.exp ((n:ℝ)*S x)) := by
|
| 53 |
+
filter_upwards [b.estimates] with n hn
|
| 54 |
+
intro z j
|
| 55 |
+
simpa only [latticeWave,latticeFrame_center] using hn (latticeFrame d hUD n z,j)
|
| 56 |
+
|
| 57 |
+
theorem lattice_direction_properties (d : SourceCompactFrameCover g S D)
|
| 58 |
+
(hUD : U ⊆ D) (n : ℕ) (z : SourceGrid U n) :
|
| 59 |
+
let x := scaledLatticePoint n z
|
| 60 |
+
let q := d.triple.q (latticeFrame d hUD n z)
|
| 61 |
+
LinearIndependent ℝ q ∧ ∀ j,
|
| 62 |
+
g x (metricGradient g S x) (q j) = 0 ∧
|
| 63 |
+
g x (q j) (q j) = g x (metricGradient g S x) (metricGradient g S x)+4 ∧
|
| 64 |
+
0 < sourceHessian g S x (metricGradient g S x) (metricGradient g S x)+sourceHessian g S x (q j) (q j) := by
|
| 65 |
+
have he := latticeFrame_center d hUD n z
|
| 66 |
+
refine ⟨d.triple.independent _,?_⟩
|
| 67 |
+
intro j
|
| 68 |
+
have hp := d.triple.perpendicular (latticeFrame d hUD n z) j
|
| 69 |
+
have hl := d.triple.length (latticeFrame d hUD n z) j
|
| 70 |
+
have hs := d.triple.strict (latticeFrame d hUD n z) j
|
| 71 |
+
change g (coverSourceCenter d _) (metricGradient g S (coverSourceCenter d _)) _ = 0 at hp
|
| 72 |
+
change g (coverSourceCenter d _) _ _ = g (coverSourceCenter d _) (metricGradient g S (coverSourceCenter d _))
|
| 73 |
+
(metricGradient g S (coverSourceCenter d _))+4 at hl
|
| 74 |
+
change 0 < sourceHessian g S (coverSourceCenter d _) (metricGradient g S (coverSourceCenter d _))
|
| 75 |
+
(metricGradient g S (coverSourceCenter d _))+sourceHessian g S (coverSourceCenter d _) _ _ at hs
|
| 76 |
+
rw [he] at hp hl hs
|
| 77 |
+
exact ⟨hp,hl,hs⟩
|
| 78 |
+
|
| 79 |
+
end
|
| 80 |
+
end Yau.Geometry
|
| 81 |
+
|
| 82 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeSphereExtension.lean
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Charts.SeedChartScalarExtension
|
| 2 |
+
import OAI.Geometry.NodalSets.Coefficients.LatticeResidualSupport
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Target
|
| 7 |
+
open Manifold Yau.Geometry Yau.Jets Yau.Probability Set Filter
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {g : Yau.Jets.Coord → Yau.Jets.Coord →L[ℝ] Yau.Jets.Coord →L[ℝ] ℝ}
|
| 11 |
+
variable {w S : Yau.Jets.Coord → ℝ} {D U : Set Yau.Jets.Coord} {m J K k0 : ℕ}
|
| 12 |
+
variable (b : LocalCompactWaveData g w S D m J K k0)
|
| 13 |
+
|
| 14 |
+
theorem literal_lattice_sphere_extension (hD : IsCompact D) (hUD : U ⊆ D)
|
| 15 |
+
(hUb : Bornology.IsBounded U) {Ω : Set Yau.Jets.Coord} (hΩ : IsOpen Ω) (hDΩ : D ⊆ Ω) :
|
| 16 |
+
∃ Q : Set Yau.Jets.Coord, IsCompact Q ∧ Q ⊆ Ω ∧
|
| 17 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n),
|
| 18 |
+
letI := hfin
|
| 19 |
+
∀ coeff : ((SourceGrid U n × Fin 3) × Fin 2) → ℝ,
|
| 20 |
+
let v := gaussianWaveField
|
| 21 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave b.cover b.beams hUD n i.1 i.2) coeff
|
| 22 |
+
ContDiff ℝ ∞ (fun x ↦ seedCoordinateField n x+v x) →
|
| 23 |
+
∃ u : Base → ℝ, ContMDiff (𝓡 4) 𝓘(ℝ,ℝ) ∞ u ∧
|
| 24 |
+
tsupport (u-sphericalSeed n) ⊆ seedSphereFromCoord '' Q ∧
|
| 25 |
+
∀ x, u (seedSphereFromCoord x) = seedCoordinateField n x+v x := by
|
| 26 |
+
obtain ⟨Q,hQ,hQΩ,hDQ,hbound⟩ := b.lattice_residual_support hD hUD hUb hΩ hDΩ
|
| 27 |
+
refine ⟨Q,hQ,hQΩ,?_⟩
|
| 28 |
+
filter_upwards [hbound] with n hn
|
| 29 |
+
obtain ⟨hfin,hb⟩ := hn
|
| 30 |
+
let := hfin
|
| 31 |
+
refine ⟨hfin,?_⟩
|
| 32 |
+
intro coeff v hu
|
| 33 |
+
have hv : ContDiff ℝ ∞ v := by
|
| 34 |
+
have he : v = fun x ↦ (seedCoordinateField n x+v x)-seedCoordinateField n x := by
|
| 35 |
+
funext x; ring
|
| 36 |
+
rw [he]
|
| 37 |
+
exact hu.sub (seedCoordinateField_smooth n)
|
| 38 |
+
have hs := (hb coeff).1
|
| 39 |
+
obtain ⟨u,hus,hup,hval⟩ := seed_plus_compact_sphere_field v hv
|
| 40 |
+
(hQ.of_isClosed_subset isClosed_closure hs) n
|
| 41 |
+
exact ⟨u,hus,hup.trans (image_mono hs),hval⟩
|
| 42 |
+
|
| 43 |
+
end
|
| 44 |
+
end Yau.Target
|
| 45 |
+
|
| 46 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeSuccessfulPacking.lean
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.SignScalePacking
|
| 2 |
+
import OAI.Geometry.NodalSets.Elliptic.SuccessfulTestSelection
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LatticeGoodEvent
|
| 4 |
+
import OAI.Geometry.NodalSets.Waves.LatticePhysicalSignSubballs
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
namespace Yau.Geometry
|
| 9 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory
|
| 10 |
+
open scoped ContDiff Topology
|
| 11 |
+
noncomputable section
|
| 12 |
+
|
| 13 |
+
theorem lattice_successful_packing
|
| 14 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) {H : Set Coord}
|
| 15 |
+
(hH : IsCompact H) (hg : ContinuousOn g H)
|
| 16 |
+
(hp : ∀ y ∈ H, ∀ v, v ≠ 0 → 0 < g y v v) :
|
| 17 |
+
∃ tau : ℝ, 0 < tau ∧ tau < 1/4 ∧ ∃ r : ℝ, 0 < r ∧
|
| 18 |
+
r < tau/4 ∧ r < (1-tau)/2 ∧ ∃ c : ℝ, 0 < c ∧
|
| 19 |
+
∀ (w S S0 T0 : Coord → ℝ) (D U Q Ω : Set Coord) (m J K k0 : ℕ)
|
| 20 |
+
(a : LocalCompactWaveData g w S D m J K k0) (_ : H ⊆ D) (hUD : U ⊆ D),
|
| 21 |
+
U ⊆ H → IsOpen U → Bornology.IsBounded U → IsCompact Q → Q ⊆ U →
|
| 22 |
+
ContDiff ℝ ∞ S → ContDiff ℝ ∞ S0 → ContDiff ℝ ∞ T0 → 5 ≤ k0 →
|
| 23 |
+
∀ gamma > 0, (∀ x ∈ Q, S0 x+gamma ≤ S x) →
|
| 24 |
+
IsCompact Ω → (∀ x ∈ Ω, fderiv ℝ T0 x ≠ 0) →
|
| 25 |
+
∀ d > 0, (∀ x ∈ Ω, x ∉ U → S x-S0 x ≤ -d) →
|
| 26 |
+
0 < (∫ x in Q, sourceSignScale g S x) →
|
| 27 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 28 |
+
∃ t : Finset Coord, ∃ j : t → Fin 4,
|
| 29 |
+
∃ coeff ∈ a.latticeGoodEvent hUD n hfin S0 T0 Ω, ∃ u : Finset t,
|
| 30 |
+
let R := fun x ↦ ((n:ℝ)*sourceSignScale g S x)⁻¹
|
| 31 |
+
let f := fun y ↦ oscillatorySeed S0 T0 n y + gaussianWaveField
|
| 32 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2) coeff y
|
| 33 |
+
(↑t : Set Coord) ⊆ Q ∧
|
| 34 |
+
(↑t : Set Coord).PairwiseDisjoint (fun x ↦ sourceClosedBall x (R x)) ∧
|
| 35 |
+
(∀ x ∈ t, 0 < R x ∧ sourceClosedBall x (5*R x) ⊆ U) ∧
|
| 36 |
+
(∀ x ∈ u,
|
| 37 |
+
(∀ y ∈ sourceClosedBall x (r*R x), 0 < f y) ∧
|
| 38 |
+
(∀ y ∈ sourceClosedBall ((x : Coord)+R x • (tau • Pi.single (j x) 1)) (r*R x), f y < 0)) ∧
|
| 39 |
+
c*((n:ℝ)*(∫ x in Q, sourceSignScale g S x)) ≤ ∑ x ∈ u, (R x)^3 := by
|
| 40 |
+
classical
|
| 41 |
+
obtain ⟨tau,ht,ht4,r,hr,hrt,hr1,p,hp0,hprob⟩ := lattice_physical_sign_subballs g hH hg hp
|
| 42 |
+
let C : ℝ := 2*(Real.pi^2/2)*5^4
|
| 43 |
+
have hC : 0 < C := by dsimp [C]; positivity
|
| 44 |
+
refine ⟨tau,ht,ht4,r,hr,hrt,hr1,p/(2*C),by positivity,?_⟩
|
| 45 |
+
intro w S S0 T0 D U Q Ω m J K k0 a hHD hUD hUH hU hUb hQ hQU hS hS0 hT0 hk0
|
| 46 |
+
gamma hgamma hgap hΩ hq d hd hout hmass
|
| 47 |
+
filter_upwards [hprob w S S0 T0 D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU
|
| 48 |
+
hS hS0 hT0 hk0 gamma hgamma hgap,
|
| 49 |
+
a.source_sign_scale_packing hQ hU hQU hUD,
|
| 50 |
+
a.lattice_good_event_probability hUD hU hUb hS S0 T0 hS0 hT0 hΩ (by omega) hq hd hout
|
| 51 |
+
(p/4) (by positivity)] with n hsign hpack hgood
|
| 52 |
+
obtain ⟨hfin,hsign⟩ := hsign
|
| 53 |
+
obtain ⟨hfin',hgood⟩ := hgood
|
| 54 |
+
have heq : hfin' = hfin := Subsingleton.elim _ _
|
| 55 |
+
subst hfin'
|
| 56 |
+
let := hfin
|
| 57 |
+
let : IsProbabilityMeasure (gaussianPairs (ι := SourceGrid U n × Fin 3)) := by
|
| 58 |
+
unfold gaussianPairs; infer_instance
|
| 59 |
+
obtain ⟨hn,t,htQ,htdis,htcov,htU,hvol⟩ := hpack
|
| 60 |
+
let R := fun x ↦ ((n:ℝ)*sourceSignScale g S x)⁻¹
|
| 61 |
+
let f := fun coeff y ↦ oscillatorySeed S0 T0 n y + gaussianWaveField
|
| 62 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2) coeff y
|
| 63 |
+
choose j hj using (fun x : t ↦ hsign x (htQ x.property))
|
| 64 |
+
let A := fun x : t ↦ {coeff |
|
| 65 |
+
(∀ y ∈ sourceClosedBall x (r*R x), 0 < f coeff y) ∧
|
| 66 |
+
(∀ y ∈ sourceClosedBall ((x : Coord)+R x • (tau • Pi.single (j x) 1)) (r*R x), f coeff y < 0)}
|
| 67 |
+
have hA (x : t) : MeasurableSet (A x) ∧ p ≤ gaussianPairs.real (A x) := by
|
| 68 |
+
simpa only [A,f,R,sourceClosedBall,mem_ofPred_eq,div_eq_mul_inv] using (hj x).2
|
| 69 |
+
have hsum : (∑ x : t, (R x)^3) = ∑ x ∈ t, (R x)^3 := by
|
| 70 |
+
exact Finset.sum_coe_sort t (fun x ↦ (R x)^3)
|
| 71 |
+
have hvol' : (n:ℝ)*(∫ x in Q, sourceSignScale g S x) ≤ C * ∑ x : t, (R x)^3 := by
|
| 72 |
+
rw [hsum]
|
| 73 |
+
exact hvol
|
| 74 |
+
have hT : 0 < ∑ x : t, (R x)^3 := by
|
| 75 |
+
have hh : 0 < (n:ℝ)*(∫ x in Q, sourceSignScale g S x) := mul_pos (by exact_mod_cast hn) hmass
|
| 76 |
+
nlinarith
|
| 77 |
+
have hfail : (gaussianPairs (a.latticeGoodEvent hUD n hfin S0 T0 Ω)ᶜ).toReal < p/2 := by
|
| 78 |
+
have hh := ENNReal.toReal_mono ENNReal.ofReal_ne_top hgood.2
|
| 79 |
+
rw [ENNReal.toReal_ofReal (by positivity : 0 ≤ p/4)] at hh
|
| 80 |
+
linarith
|
| 81 |
+
obtain ⟨coeff,hcoeff,u,hu,hw⟩ := exists_good_successful_tests
|
| 82 |
+
(fun x : t ↦ (R x)^3) (fun x ↦ (pow_pos (htU x x.property).1 3).le) hT
|
| 83 |
+
A (fun x ↦ (hA x).1) hp0 (fun x ↦ (hA x).2)
|
| 84 |
+
(a.latticeGoodEvent hUD n hfin S0 T0 Ω) hgood.1 hfail
|
| 85 |
+
refine ⟨hfin,t,j,coeff,hcoeff,u,htQ,htdis,htU,hu,?_⟩
|
| 86 |
+
calc
|
| 87 |
+
p/(2*C)*((n:ℝ)*(∫ x in Q, sourceSignScale g S x)) ≤
|
| 88 |
+
p/(2*C)*(C*∑ x : t, (R x)^3) := mul_le_mul_of_nonneg_left hvol' (by positivity)
|
| 89 |
+
_ = p*(∑ x : t, (R x)^3)/2 := by field_simp
|
| 90 |
+
_ ≤ _ := hw
|
| 91 |
+
|
| 92 |
+
end
|
| 93 |
+
end Yau.Geometry
|
| 94 |
+
|
| 95 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeTwoPointCovariance.lean
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Charts.MetricFrequencyBounds
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeFullPlaneWaveApprox
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.PlaneWaveCovariance
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Yau.Probability MeasureTheory ProbabilityTheory Set Filter
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 11 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 12 |
+
namespace LocalCompactWaveData
|
| 13 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 14 |
+
|
| 15 |
+
lemma lattice_plane_wave_variance (hUD : U ⊆ D) (n : ℕ) [Fintype (SourceGrid U n)]
|
| 16 |
+
(x v : Coord) (s : ℝ) :
|
| 17 |
+
Var[fun coeff ↦ gaussianWaveField (a.latticePlaneWaveCoefficient hUD n x s) coeff v;gaussianPairs] =
|
| 18 |
+
∑ i ∈ Finset.univ.filter (fun i : SourceGrid U n × Fin 3 ↦
|
| 19 |
+
sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ)),
|
| 20 |
+
‖a.latticeAlpha hUD n x i‖^2 := by
|
| 21 |
+
classical
|
| 22 |
+
rw [gaussianWaveField_eq_pair,variance_pairLinearSum,Finset.sum_filter]
|
| 23 |
+
apply Finset.sum_congr rfl
|
| 24 |
+
intro i _
|
| 25 |
+
dsimp only [latticePlaneWaveCoefficient]
|
| 26 |
+
split_ifs <;> simp [planeWave_norm]
|
| 27 |
+
|
| 28 |
+
lemma lattice_plane_wave_covariance (hUD : U ⊆ D) (n : ℕ) [Fintype (SourceGrid U n)]
|
| 29 |
+
(x : Coord) (s tau : ℝ) (j : Fin 4) :
|
| 30 |
+
cov[(fun coeff ↦ gaussianWaveField (a.latticePlaneWaveCoefficient hUD n x s) coeff 0),
|
| 31 |
+
(fun coeff ↦ gaussianWaveField (a.latticePlaneWaveCoefficient hUD n x s)
|
| 32 |
+
coeff (tau • Pi.single j 1));gaussianPairs] =
|
| 33 |
+
∑ i ∈ Finset.univ.filter (fun i : SourceGrid U n × Fin 3 ↦
|
| 34 |
+
sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ)),
|
| 35 |
+
‖a.latticeAlpha hUD n x i‖^2 * Real.cos (tau *
|
| 36 |
+
sourceFrequency (g (scaledLatticePoint n i.1))
|
| 37 |
+
(a.cover.triple.q (latticeFrame a.cover hUD n i.1) i.2) s j) := by
|
| 38 |
+
classical
|
| 39 |
+
rw [gaussianWaveField_eq_pair,gaussianWaveField_eq_pair,covariance_pairLinearSum,Finset.sum_filter]
|
| 40 |
+
apply Finset.sum_congr rfl
|
| 41 |
+
intro i _
|
| 42 |
+
dsimp only [latticePlaneWaveCoefficient]
|
| 43 |
+
split_ifs
|
| 44 |
+
· simp only [planeWave_zero,mul_one]
|
| 45 |
+
rw [show planeWave (g (scaledLatticePoint n i.1)
|
| 46 |
+
(a.cover.triple.q (latticeFrame a.cover hUD n i.1) i.2)) s (tau • Pi.single j 1) =
|
| 47 |
+
Complex.exp (Complex.I * (tau * sourceFrequency (g (scaledLatticePoint n i.1))
|
| 48 |
+
(a.cover.triple.q (latticeFrame a.cover hUD n i.1) i.2) s j : ℝ)) by
|
| 49 |
+
simp [planeWave,sourceFrequency,map_smul,smul_eq_mul,mul_div_assoc]]
|
| 50 |
+
exact complex_rotated_pairing _ _
|
| 51 |
+
· simp
|
| 52 |
+
|
| 53 |
+
end LocalCompactWaveData
|
| 54 |
+
end
|
| 55 |
+
end Yau.Geometry
|
| 56 |
+
|
| 57 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeTwoPointGap.lean
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.CosineCovarianceBounds
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeTwoPointCovariance
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.PlaneWaveSecondMoment
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Yau.Probability MeasureTheory ProbabilityTheory Set Filter
|
| 9 |
+
open scoped Topology
|
| 10 |
+
noncomputable section
|
| 11 |
+
|
| 12 |
+
theorem lattice_plane_wave_two_point_gap
|
| 13 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) {H : Set Coord}
|
| 14 |
+
(hH : IsCompact H) (hg : ContinuousOn g H)
|
| 15 |
+
(hp : ∀ y ∈ H, ∀ v, v ≠ 0 → 0 < g y v v) :
|
| 16 |
+
∃ tau : ℝ, 0 < tau ∧ tau < 1/4 ∧ ∃ delta > 0,
|
| 17 |
+
∀ (w S : Coord → ℝ) (D U Q : Set Coord) (m J K k0 : ℕ)
|
| 18 |
+
(a : LocalCompactWaveData g w S D m J K k0) (_ : H ⊆ D) (hUD : U ⊆ D),
|
| 19 |
+
U ⊆ H → IsOpen U → Bornology.IsBounded U → IsCompact Q → Q ⊆ U →
|
| 20 |
+
∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n), letI := hfin
|
| 21 |
+
∀ x ∈ Q, ∃ j : Fin 4,
|
| 22 |
+
let G := fun v coeff ↦ gaussianWaveField
|
| 23 |
+
(a.latticePlaneWaveCoefficient hUD n x (sourceSignScale g S x)) coeff v
|
| 24 |
+
let M := Var[G 0;gaussianPairs]
|
| 25 |
+
let C := cov[G 0,G (tau • Pi.single j 1);gaussianPairs]
|
| 26 |
+
(1/2:ℝ) ≤ M ∧ M ≤ 1 ∧
|
| 27 |
+
Var[G (tau • Pi.single j 1);gaussianPairs] = M ∧
|
| 28 |
+
M/2 ≤ C ∧ C ≤ M-delta := by
|
| 29 |
+
classical
|
| 30 |
+
obtain ⟨κ,hκ,B,hB,hann⟩ := lattice_main_frequency_annulus g hH hg hp
|
| 31 |
+
let tau : ℝ := 1/(8*(B+1))
|
| 32 |
+
have ht : 0 < tau := by dsimp [tau]; positivity
|
| 33 |
+
have ht4 : tau < 1/4 := by
|
| 34 |
+
dsimp [tau]
|
| 35 |
+
apply (div_lt_iff₀ (by positivity : 0 < 8*(B+1))).mpr
|
| 36 |
+
linarith
|
| 37 |
+
have hsmall : tau*B ≤ 1 := by
|
| 38 |
+
dsimp [tau]
|
| 39 |
+
rw [one_div,mul_comm,← div_eq_mul_inv]
|
| 40 |
+
apply (div_le_iff₀ (by positivity : 0 < 8*(B+1))).mpr
|
| 41 |
+
linarith
|
| 42 |
+
let delta : ℝ := (2/Real.pi^2)*tau^2*(κ^2/8)
|
| 43 |
+
have hd : 0 < delta := by dsimp [delta]; positivity
|
| 44 |
+
refine ⟨tau,ht,ht4,delta,hd,?_⟩
|
| 45 |
+
intro w S D U Q m J K k0 a hHD hUD hUH hU hUb hQ hQU
|
| 46 |
+
filter_upwards [hann w S D U m J K k0 a hHD hUD hUH,
|
| 47 |
+
a.latticeAlpha_main_mass hUD hU hUb hQ hQU (1/2) (by norm_num)] with n hn hm
|
| 48 |
+
obtain ⟨hfin,hm⟩ := hm
|
| 49 |
+
let := hfin
|
| 50 |
+
refine ⟨hfin,?_⟩
|
| 51 |
+
intro x hx
|
| 52 |
+
let F := Finset.univ.filter (fun i : SourceGrid U n × Fin 3 ↦
|
| 53 |
+
sourceEuclideanNorm (x-scaledLatticePoint n i.1) ≤ (n:ℝ)^(-5/12:ℝ))
|
| 54 |
+
let alpha := a.latticeAlpha hUD n x
|
| 55 |
+
let k := fun i : SourceGrid U n × Fin 3 ↦ sourceFrequency (g (scaledLatticePoint n i.1))
|
| 56 |
+
(a.cover.triple.q (latticeFrame a.cover hUD n i.1) i.2) (sourceSignScale g S x)
|
| 57 |
+
have hmass : (1/2:ℝ) ≤ ∑ i ∈ F, ‖alpha i‖^2 := by
|
| 58 |
+
have := (hm x hx).2
|
| 59 |
+
dsimp only [F,alpha]
|
| 60 |
+
linarith
|
| 61 |
+
have hmass1 : ∑ i ∈ F, ‖alpha i‖^2 ≤ 1 := by
|
| 62 |
+
rw [← (hm x hx).1]
|
| 63 |
+
exact Finset.sum_le_sum_of_subset_of_nonneg (Finset.filter_subset _ _) (fun i _ _ ↦ sq_nonneg _)
|
| 64 |
+
have hb (i : SourceGrid U n × Fin 3) (hi : i ∈ F) :
|
| 65 |
+
κ ≤ sourceEuclideanNorm (k i) ∧ sourceEuclideanNorm (k i) ≤ B :=
|
| 66 |
+
hn x (hUH (hQU hx)) i (Finset.mem_filter.mp hi).2
|
| 67 |
+
obtain ⟨j,hj⟩ := coordinate_second_moment F alpha k κ hκ.le hmass (fun i hi ↦ (hb i hi).1)
|
| 68 |
+
have hcoord (i : SourceGrid U n × Fin 3) (hi : i ∈ F) : |k i j| ≤ B :=
|
| 69 |
+
(norm_le_pi_norm (k i) j).trans ((norm_le_sourceEuclideanNorm _).trans (hb i hi).2)
|
| 70 |
+
have hbounds := cosine_covariance_bounds F (fun i ↦ ‖alpha i‖^2) (fun i ↦ k i j)
|
| 71 |
+
tau B (κ^2/8) (fun i hi ↦ sq_nonneg _) ht.le hsmall hcoord hj
|
| 72 |
+
refine ⟨j,?_⟩
|
| 73 |
+
dsimp only
|
| 74 |
+
rw [a.lattice_plane_wave_variance,a.lattice_plane_wave_variance,a.lattice_plane_wave_covariance]
|
| 75 |
+
exact ⟨hmass,hmass1,rfl,hbounds.1,hbounds.2⟩
|
| 76 |
+
|
| 77 |
+
end
|
| 78 |
+
end Yau.Geometry
|
| 79 |
+
|
| 80 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeValueVariance.lean
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.GaussianWaveJet
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeNormalizedWeights
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Yau.Probability Set Filter MeasureTheory ProbabilityTheory
|
| 8 |
+
noncomputable section
|
| 9 |
+
|
| 10 |
+
lemma gaussianWaveField_value_variance {ι : Type*} [Fintype ι]
|
| 11 |
+
(V : ι → Coord → ℂ) (seed : Coord → ℝ) (x : Coord) :
|
| 12 |
+
Var[fun coeff ↦ seed x+gaussianWaveField V coeff x; gaussianPairs] =
|
| 13 |
+
∑ i, ‖V i x‖^2 := by
|
| 14 |
+
have he : (fun coeff ↦ gaussianWaveField V coeff x) = pairLinearSum (fun i ↦ V i x) := by
|
| 15 |
+
funext coeff
|
| 16 |
+
rw [pairLinearSum_eq_complex]
|
| 17 |
+
simp only [gaussianWaveField,Complex.re_sum]
|
| 18 |
+
let : IsProbabilityMeasure (gaussianPairs (ι := ι)) := by
|
| 19 |
+
change IsProbabilityMeasure (Measure.pi (fun _ : ι × Fin 2 ↦ gaussianReal 0 1))
|
| 20 |
+
infer_instance
|
| 21 |
+
have hc : Continuous (pairLinearSum (fun i ↦ V i x)) := by
|
| 22 |
+
unfold pairLinearSum
|
| 23 |
+
fun_prop
|
| 24 |
+
change Var[(fun coeff ↦ seed x+(fun coeff ↦ gaussianWaveField V coeff x) coeff); gaussianPairs] = _
|
| 25 |
+
rw [he,variance_const_add hc.aestronglyMeasurable,variance_pairLinearSum]
|
| 26 |
+
|
| 27 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 28 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 29 |
+
namespace LocalCompactWaveData
|
| 30 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 31 |
+
|
| 32 |
+
lemma lattice_value_variance (hUD : U ⊆ D) (n : ℕ) [Fintype (SourceGrid U n)]
|
| 33 |
+
(seed : Coord → ℝ) (x : Coord) :
|
| 34 |
+
Var[fun coeff ↦ seed x+gaussianWaveField
|
| 35 |
+
(fun i : SourceGrid U n × Fin 3 ↦ latticeWave a.cover a.beams hUD n i.1 i.2) coeff x;
|
| 36 |
+
gaussianPairs] = (a.latticeSigma hUD n x)^2 := by
|
| 37 |
+
rw [a.latticeSigma_sq]
|
| 38 |
+
exact gaussianWaveField_value_variance _ seed x
|
| 39 |
+
|
| 40 |
+
end LocalCompactWaveData
|
| 41 |
+
|
| 42 |
+
end
|
| 43 |
+
end Yau.Geometry
|
| 44 |
+
|
| 45 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeVarianceComparison.lean
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.LatticeEnergyLowerBound
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.LatticeLogJets
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LatticeVarianceUpper
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Set Metric Filter
|
| 9 |
+
open scoped ContDiff Topology
|
| 10 |
+
noncomputable section
|
| 11 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 12 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 13 |
+
namespace LocalCompactWaveData
|
| 14 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 15 |
+
|
| 16 |
+
theorem lattice_variance_lower_bound (hUD : U ⊆ D) (hU : IsOpen U)
|
| 17 |
+
{Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U) :
|
| 18 |
+
∃ c > 0, ∀ᶠ n : ℕ in atTop, ∀ [Fintype (SourceGrid U n)], ∀ x ∈ Q,
|
| 19 |
+
c*Real.exp (2*(n:ℝ)*S x) ≤ a.latticeVariance hUD n x := by
|
| 20 |
+
obtain ⟨Ca,hCa,Cr,hCr,Ci,hCi,c,hc,C,hC,hb⟩ :=
|
| 21 |
+
a.lattice_logarithmic_jet_estimates hUD 2 (by norm_num)
|
| 22 |
+
obtain ⟨r,hr,hinner⟩ := compact_inner_ball hQ hU hQU
|
| 23 |
+
refine ⟨c^2,pow_pos hc 2,?_⟩
|
| 24 |
+
filter_upwards [hb,eventually_gt_atTop (0:ℕ),
|
| 25 |
+
eventually_nat_frequency (half_scale_eventually 2 1 r hr)] with n hn hnpos hsmall
|
| 26 |
+
intro hfin x hx
|
| 27 |
+
have hd := (norm_le_sourceEuclideanNorm _).trans (rounded_lattice_distance hnpos x)
|
| 28 |
+
have hmem : scaledLatticePoint n (roundedLatticeIndex n x) ∈ U :=
|
| 29 |
+
hinner x hx (by simpa only [mem_closedBall,dist_eq_norm] using hd.trans hsmall.2.1)
|
| 30 |
+
let z : SourceGrid U n := ⟨roundedLatticeIndex n x,hmem⟩
|
| 31 |
+
have hd' : ‖x-scaledLatticePoint n z‖ ≤ 2*(n:ℝ)^(-1/2:ℝ) := by
|
| 32 |
+
rw [norm_sub_rev]; exact hd
|
| 33 |
+
have hl := (hn z 0 x hd').2.2.2.2.1
|
| 34 |
+
have hle : c*Real.exp ((n:ℝ)*S x) ≤ ‖latticeWave a.cover a.beams hUD n z 0 x‖ := by
|
| 35 |
+
have hh := mul_le_mul_of_nonneg_right hl.1 (Real.exp_nonneg ((n:ℝ)*S x))
|
| 36 |
+
simpa only [mul_assoc,← Real.exp_add,neg_mul,neg_add_cancel,Real.exp_zero,mul_one] using hh
|
| 37 |
+
have hs := pow_le_pow_left₀ (by positivity : 0 ≤ c*Real.exp ((n:ℝ)*S x)) hle 2
|
| 38 |
+
have he : (c*Real.exp ((n:ℝ)*S x))^2 = c^2*Real.exp (2*(n:ℝ)*S x) := by
|
| 39 |
+
rw [mul_pow,← Real.exp_nat_mul]
|
| 40 |
+
congr 2
|
| 41 |
+
ring
|
| 42 |
+
rw [he] at hs
|
| 43 |
+
apply hs.trans
|
| 44 |
+
unfold latticeVariance
|
| 45 |
+
exact Finset.single_le_sum (fun i _ ↦ sq_nonneg ‖latticeWave a.cover a.beams hUD n i.1 i.2 x‖)
|
| 46 |
+
(Finset.mem_univ (z,(0:Fin 3)))
|
| 47 |
+
|
| 48 |
+
theorem lattice_sigma_comparison (hUD : U ⊆ D) (hU : IsOpen U)
|
| 49 |
+
(hUb : Bornology.IsBounded U) {Q : Set Coord} (hQ : IsCompact Q) (hQU : Q ⊆ U) :
|
| 50 |
+
∃ c > 0, ∃ C > 0, ∀ᶠ n : ℕ in atTop, ∃ hfin : Fintype (SourceGrid U n),
|
| 51 |
+
letI := hfin
|
| 52 |
+
∀ x ∈ Q, c*Real.exp ((n:ℝ)*S x) ≤ a.latticeSigma hUD n x ∧
|
| 53 |
+
a.latticeSigma hUD n x ≤ C*Real.exp ((n:ℝ)*S x) := by
|
| 54 |
+
obtain ⟨c,hc,hlo⟩ := a.lattice_variance_lower_bound hUD hU hQ hQU
|
| 55 |
+
obtain ⟨C,hC,hup⟩ := a.lattice_variance_upper_bound hUD
|
| 56 |
+
refine ⟨Real.sqrt c,Real.sqrt_pos.mpr hc,Real.sqrt C,Real.sqrt_pos.mpr hC,?_⟩
|
| 57 |
+
filter_upwards [hlo,hup,eventually_gt_atTop (0:ℕ)] with n hl hu hn
|
| 58 |
+
have := finite_source_grid hUb hn
|
| 59 |
+
let hfin := Fintype.ofFinite (SourceGrid U n)
|
| 60 |
+
refine ⟨hfin,?_⟩
|
| 61 |
+
intro x hx
|
| 62 |
+
have hl' := hl x hx
|
| 63 |
+
have hu' := hu x
|
| 64 |
+
have hs := a.latticeSigma_sq hUD n x
|
| 65 |
+
have hnon : 0 ≤ a.latticeSigma hUD n x := Real.sqrt_nonneg _
|
| 66 |
+
have he : (Real.exp ((n:ℝ)*S x))^2 = Real.exp (2*(n:ℝ)*S x) := by
|
| 67 |
+
rw [← Real.exp_nat_mul]
|
| 68 |
+
congr 1
|
| 69 |
+
ring
|
| 70 |
+
have hc2 := Real.sq_sqrt hc.le
|
| 71 |
+
have hC2 := Real.sq_sqrt hC.le
|
| 72 |
+
constructor
|
| 73 |
+
· apply (sq_le_sq₀ (by positivity) hnon).mp
|
| 74 |
+
rw [mul_pow,hc2,he,hs]
|
| 75 |
+
exact hl'
|
| 76 |
+
· apply (sq_le_sq₀ hnon (by positivity)).mp
|
| 77 |
+
rw [mul_pow,hC2,he,hs]
|
| 78 |
+
exact hu'
|
| 79 |
+
|
| 80 |
+
end LocalCompactWaveData
|
| 81 |
+
end
|
| 82 |
+
end Yau.Geometry
|
| 83 |
+
|
| 84 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LatticeVarianceUpper.lean
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Waves.LocalCompactWaves
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.ScaledLatticeGaussianSum
|
| 3 |
+
|
| 4 |
+
namespace OAI
|
| 5 |
+
|
| 6 |
+
namespace Yau.Geometry
|
| 7 |
+
open Yau.Jets Set Filter
|
| 8 |
+
open scoped ContDiff Topology
|
| 9 |
+
noncomputable section
|
| 10 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 11 |
+
variable {D U : Set Coord} {m J K k0 : ℕ}
|
| 12 |
+
namespace LocalCompactWaveData
|
| 13 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 14 |
+
|
| 15 |
+
def latticeVariance (hUD : U ⊆ D) (n : ℕ) [Fintype (SourceGrid U n)] (x : Coord) : ℝ :=
|
| 16 |
+
∑ i : SourceGrid U n × Fin 3, ‖latticeWave a.cover a.beams hUD n i.1 i.2 x‖^2
|
| 17 |
+
|
| 18 |
+
def latticeSigma (hUD : U ⊆ D) (n : ℕ) [Fintype (SourceGrid U n)] (x : Coord) : ℝ :=
|
| 19 |
+
Real.sqrt (a.latticeVariance hUD n x)
|
| 20 |
+
|
| 21 |
+
lemma latticeVariance_nonneg (hUD : U ⊆ D) (n : ℕ) [Fintype (SourceGrid U n)] (x : Coord) :
|
| 22 |
+
0 ≤ a.latticeVariance hUD n x := Finset.sum_nonneg (fun _ _ ↦ sq_nonneg _)
|
| 23 |
+
|
| 24 |
+
lemma latticeSigma_sq (hUD : U ⊆ D) (n : ℕ) [Fintype (SourceGrid U n)] (x : Coord) :
|
| 25 |
+
(a.latticeSigma hUD n x)^2 = a.latticeVariance hUD n x :=
|
| 26 |
+
Real.sq_sqrt (a.latticeVariance_nonneg hUD n x)
|
| 27 |
+
|
| 28 |
+
theorem lattice_derivative_square_sum_bound (hUD : U ⊆ D) :
|
| 29 |
+
∃ C > 0, ∀ᶠ n : ℕ in atTop, ∀ [Fintype (SourceGrid U n)], ∀ x : Coord,
|
| 30 |
+
∀ k : Fin (k0+1),
|
| 31 |
+
∑ i : SourceGrid U n × Fin 3,
|
| 32 |
+
‖iteratedFDeriv ℝ k.val (latticeWave a.cover a.beams hUD n i.1 i.2) x‖^2 ≤
|
| 33 |
+
C*(n:ℝ)^(2*k.val)*Real.exp (2*(n:ℝ)*S x) := by
|
| 34 |
+
obtain ⟨B,hB,hgauss⟩ := source_lattice_gaussian_sum (show 0 < 2*a.beams.c by have := a.beams.c_pos; positivity)
|
| 35 |
+
refine ⟨3*a.beams.Cw^2*B,by have := a.beams.Cw_pos; positivity,?_⟩
|
| 36 |
+
filter_upwards [a.estimates,eventually_gt_atTop (0:ℕ)] with n hn hnpos
|
| 37 |
+
intro hfin x k
|
| 38 |
+
let R := a.beams.Cw^2*(n:ℝ)^(2*k.val)*Real.exp (2*(n:ℝ)*S x)
|
| 39 |
+
have hR : 0 ≤ R := by dsimp [R]; positivity
|
| 40 |
+
have hb (i : SourceGrid U n × Fin 3) :
|
| 41 |
+
‖iteratedFDeriv ℝ k.val (latticeWave a.cover a.beams hUD n i.1 i.2) x‖^2 ≤
|
| 42 |
+
R*Real.exp (-(2*a.beams.c)*(n:ℝ)*(sourceEuclideanNorm (x-scaledLatticePoint n i.1))^2) := by
|
| 43 |
+
have h := ((hn (latticeFrame a.cover hUD n i.1,i.2)).2.2.2.2 x).1 k
|
| 44 |
+
simp only [latticeFrame_center] at h
|
| 45 |
+
change ‖iteratedFDeriv ℝ k.val (latticeWave a.cover a.beams hUD n i.1 i.2) x‖ ≤ _ at h
|
| 46 |
+
have hh := pow_le_pow_left₀ (norm_nonneg _) h 2
|
| 47 |
+
refine hh.trans_eq ?_
|
| 48 |
+
dsimp [R]
|
| 49 |
+
rw [mul_pow,mul_pow,← Real.exp_nat_mul,← pow_mul]
|
| 50 |
+
simp only [mul_assoc,← Real.exp_add]
|
| 51 |
+
congr 2 <;> ring_nf
|
| 52 |
+
calc
|
| 53 |
+
_ ≤ ∑ i : SourceGrid U n × Fin 3, R*Real.exp (-(2*a.beams.c)*(n:ℝ)*
|
| 54 |
+
(sourceEuclideanNorm (x-scaledLatticePoint n i.1))^2) := Finset.sum_le_sum (fun i _ ↦ hb i)
|
| 55 |
+
_ = 3*R*∑ z : SourceGrid U n, Real.exp (-(2*a.beams.c)*(n:ℝ)*
|
| 56 |
+
(sourceEuclideanNorm (x-scaledLatticePoint n z))^2) := by
|
| 57 |
+
rw [Fintype.sum_prod_type]
|
| 58 |
+
simp only [Finset.sum_const,Finset.card_univ,Fintype.card_fin,nsmul_eq_mul]
|
| 59 |
+
rw [← Finset.mul_sum,← Finset.mul_sum,mul_assoc]
|
| 60 |
+
dsimp [R]
|
| 61 |
+
ring
|
| 62 |
+
_ ≤ 3*R*B := mul_le_mul_of_nonneg_left (hgauss U n hnpos x) (by positivity)
|
| 63 |
+
_ = _ := by dsimp [R]; ring
|
| 64 |
+
|
| 65 |
+
theorem lattice_variance_upper_bound (hUD : U ⊆ D) :
|
| 66 |
+
∃ C > 0, ∀ᶠ n : ℕ in atTop, ∀ [Fintype (SourceGrid U n)], ∀ x : Coord,
|
| 67 |
+
a.latticeVariance hUD n x ≤ C*Real.exp (2*(n:ℝ)*S x) := by
|
| 68 |
+
obtain ⟨C,hC,hb⟩ := a.lattice_derivative_square_sum_bound hUD
|
| 69 |
+
refine ⟨C,hC,?_⟩
|
| 70 |
+
filter_upwards [hb] with n hn
|
| 71 |
+
intro hfin x
|
| 72 |
+
calc
|
| 73 |
+
a.latticeVariance hUD n x =
|
| 74 |
+
∑ i : SourceGrid U n × Fin 3,
|
| 75 |
+
‖iteratedFDeriv ℝ 0 (latticeWave a.cover a.beams hUD n i.1 i.2) x‖^2 := by
|
| 76 |
+
apply Finset.sum_congr rfl
|
| 77 |
+
intro i hi
|
| 78 |
+
exact congrArg (fun z : ℝ ↦ z^2)
|
| 79 |
+
(norm_iteratedFDeriv_zero (𝕜 := ℝ)
|
| 80 |
+
(f := latticeWave a.cover a.beams hUD n i.1 i.2) (x := x)).symm
|
| 81 |
+
_ ≤ _ := by simpa only [Fin.val_zero,mul_zero,pow_zero,mul_one] using! hn x 0
|
| 82 |
+
|
| 83 |
+
end LocalCompactWaveData
|
| 84 |
+
end
|
| 85 |
+
end Yau.Geometry
|
| 86 |
+
|
| 87 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LocalCompactWaves.lean
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Elliptic.CompactSourceRepresentatives
|
| 2 |
+
import OAI.Geometry.NodalSets.Waves.CompactSourceWaves
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LocalSourceWaveTransfer
|
| 4 |
+
import OAI.Geometry.NodalSets.Waves.WaveSecondJet
|
| 5 |
+
|
| 6 |
+
namespace OAI
|
| 7 |
+
|
| 8 |
+
namespace Yau.Geometry
|
| 9 |
+
open Yau.Jets Set Filter
|
| 10 |
+
open scoped ContDiff Topology
|
| 11 |
+
noncomputable section
|
| 12 |
+
attribute [local instance] clmTopology clmAdd clmModule
|
| 13 |
+
|
| 14 |
+
structure LocalCompactWaveData
|
| 15 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) (w S : Coord → ℝ)
|
| 16 |
+
(D : Set Coord) (m J K k0 : ℕ) where
|
| 17 |
+
G : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ
|
| 18 |
+
W : Coord → ℝ
|
| 19 |
+
A : Coord → ℝ
|
| 20 |
+
E : Set Coord
|
| 21 |
+
smooth_G : ContDiff ℝ ∞ G
|
| 22 |
+
smooth_W : ContDiff ℝ ∞ W
|
| 23 |
+
smooth_A : ContDiff ℝ ∞ A
|
| 24 |
+
symmetric_G : ∀ x u v, G x u v = G x v u
|
| 25 |
+
positive_G : ∀ x v, v ≠ 0 → 0 < G x v v
|
| 26 |
+
open_E : IsOpen E
|
| 27 |
+
centers_E : D ⊆ E
|
| 28 |
+
germ : ∀ x ∈ E, (G =ᶠ[𝓝 x] g) ∧ (W =ᶠ[𝓝 x] w) ∧ (A =ᶠ[𝓝 x] S)
|
| 29 |
+
nonzero_gradient : ∀ x ∈ D, metricGradient G A x ≠ 0
|
| 30 |
+
cover : SourceCompactFrameCover G A D
|
| 31 |
+
beams : TripleSourceWaveData G W A (coverSourceCenter cover) cover.triple m J K k0
|
| 32 |
+
estimates : ∀ᶠ n : ℕ in atTop, ∀ t : cover.Parameter × Fin 3,
|
| 33 |
+
ContDiff ℝ ∞ (beams.wave (n:ℝ) t) ∧ HasCompactSupport (beams.wave (n:ℝ) t) ∧
|
| 34 |
+
tsupport (beams.wave (n:ℝ) t) ⊆ E ∧
|
| 35 |
+
tsupport (beams.wave (n:ℝ) t) ⊆
|
| 36 |
+
{z | sourceEuclideanNorm (z-coverSourceCenter cover t.1) ≤ beams.R*(n:ℝ)^(-1/3:ℝ)} ∧
|
| 37 |
+
∀ z : Coord,
|
| 38 |
+
(∀ k : Fin (k0+1), ‖iteratedFDeriv ℝ k.val (beams.wave (n:ℝ) t) z‖ ≤
|
| 39 |
+
beams.Cw*(n:ℝ)^k.val*Real.exp ((n:ℝ)*S z-beams.c*(n:ℝ)*(sourceEuclideanNorm (z-coverSourceCenter cover t.1))^2)) ∧
|
| 40 |
+
DerivativeBound k0 (fun z ↦ sourceWeightedOperator g w (beams.wave (n:ℝ) t) z +
|
| 41 |
+
((4:ℂ)*(n:ℂ)^2+6*(n:ℂ))*beams.wave (n:ℝ) t z) z
|
| 42 |
+
(beams.Cr*(n:ℝ)^(-(K:ℝ))*Real.exp ((n:ℝ)*S z))
|
| 43 |
+
|
| 44 |
+
theorem construct_local_compact_waves {D U : Set Coord} (hD : IsCompact D)
|
| 45 |
+
(hU : IsOpen U) (hDU : D ⊆ U) (hUn : U.Nonempty)
|
| 46 |
+
(g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ) (hg : ContDiffOn ℝ ∞ g U)
|
| 47 |
+
(hs : ∀ x ∈ U, ∀ u v, g x u v = g x v u)
|
| 48 |
+
(hp : ∀ x ∈ U, ∀ v, v ≠ 0 → 0 < g x v v)
|
| 49 |
+
(w S : Coord → ℝ) (hw : ContDiffOn ℝ ∞ w U) (hS : ContDiffOn ℝ ∞ S U)
|
| 50 |
+
(hwp : ∀ x ∈ U, 0 < w x) (hp0 : ∀ x ∈ D, metricGradient g S x ≠ 0)
|
| 51 |
+
(hdir : ∀ x ∈ D, ∃ v : Coord, g x (metricGradient g S x) v = 0 ∧ g x v v = 1 ∧
|
| 52 |
+
0 < sourceHessian g S x (metricGradient g S x) (metricGradient g S x)+
|
| 53 |
+
(g x (metricGradient g S x) (metricGradient g S x)+4)*sourceHessian g S x v v)
|
| 54 |
+
(m J K k0 : ℕ) (hm : 3*K+4*k0+6 < m+1) (hJ : K+k0+1 ≤ J) :
|
| 55 |
+
Nonempty (LocalCompactWaveData g w S D m J K k0) := by
|
| 56 |
+
obtain ⟨G,W,A,E,hG,hW,hA,hGs,hGp,hE,hDE,hEU,hWp,he⟩ :=
|
| 57 |
+
compact_source_representatives hD hU hDU hUn g hg hs hp w S hw hS hwp
|
| 58 |
+
have hn (x : Coord) (hx : x ∈ D) : metricGradient G A x ≠ 0 := by
|
| 59 |
+
rw [(he x (hDE hx)).2.2.2.1]
|
| 60 |
+
exact hp0 x hx
|
| 61 |
+
have hd (x : Coord) (hx : x ∈ D) : ∃ v : Coord,
|
| 62 |
+
G x (metricGradient G A x) v = 0 ∧ G x v v = 1 ∧
|
| 63 |
+
0 < sourceHessian G A x (metricGradient G A x) (metricGradient G A x)+
|
| 64 |
+
(G x (metricGradient G A x) (metricGradient G A x)+4)*sourceHessian G A x v v := by
|
| 65 |
+
obtain ⟨hge,_,_,hpEq,hHEq⟩ := he x (hDE hx)
|
| 66 |
+
rw [hge.self_of_nhds,hpEq,hHEq]
|
| 67 |
+
exact hdir x hx
|
| 68 |
+
obtain ⟨d,⟨b⟩,_⟩ := construct_compact_source_waves G hG hGs hGp W hW A hA
|
| 69 |
+
hD hE hDE hWp hn hd m J K k0 hm hJ
|
| 70 |
+
have hest := local_source_wave_transfer g G w W S A
|
| 71 |
+
(fun t : d.Parameter × Fin 3 ↦ coverSourceCenter d t.1)
|
| 72 |
+
((continuous_coverSourceCenter d).comp continuous_fst) hE
|
| 73 |
+
(fun t ↦ hDE (d.center t.1).property)
|
| 74 |
+
(fun x hx ↦ ⟨(he x hx).1,(he x hx).2.1,(he x hx).2.2.1.self_of_nhds⟩)
|
| 75 |
+
(fun n t ↦ b.wave (n:ℝ) t) k0 K b.c b.Cw b.Cr b.R b.Cw_pos b.Cr_pos b.estimates
|
| 76 |
+
exact ⟨⟨G,W,A,E,hG,hW,hA,hGs,hGp,hE,hDE,
|
| 77 |
+
(fun x hx ↦ ⟨(he x hx).1,(he x hx).2.1,(he x hx).2.2.1⟩),hn,d,b,hest⟩⟩
|
| 78 |
+
|
| 79 |
+
end
|
| 80 |
+
end Yau.Geometry
|
| 81 |
+
|
| 82 |
+
end OAI
|
lean/OAI/Geometry/NodalSets/Waves/LocalCovarianceGeometry.lean
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import OAI.Geometry.NodalSets.Charts.MetricCoercivity
|
| 2 |
+
import OAI.Geometry.NodalSets.Elliptic.LocalDirectionBounds
|
| 3 |
+
import OAI.Geometry.NodalSets.Waves.LatticeLogJets
|
| 4 |
+
|
| 5 |
+
namespace OAI
|
| 6 |
+
|
| 7 |
+
namespace Yau.Geometry
|
| 8 |
+
open Yau.Jets Set Filter
|
| 9 |
+
open scoped ContDiff Topology
|
| 10 |
+
noncomputable section
|
| 11 |
+
variable {g : Coord → Coord →L[ℝ] Coord →L[ℝ] ℝ} {w S : Coord → ℝ}
|
| 12 |
+
variable {D : Set Coord} {m J K k0 : ℕ}
|
| 13 |
+
namespace LocalCompactWaveData
|
| 14 |
+
variable (a : LocalCompactWaveData g w S D m J K k0)
|
| 15 |
+
|
| 16 |
+
include a in
|
| 17 |
+
theorem original_covariance_geometry : ∃ mu > 0, ∃ B > 0, ∀ x ∈ D,
|
| 18 |
+
‖g x‖ ≤ B ∧ ‖fderiv ℝ S x‖ ≤ B ∧ ∀ v, mu*‖v‖^2 ≤ g x v v := by
|
| 19 |
+
let y := coverSourceCenter a.cover
|
| 20 |
+
have hy := continuous_coverSourceCenter a.cover
|
| 21 |
+
obtain ⟨mu,hmu,B,hB,hg⟩ := uniform_metric_coercivity (a.G ∘ y)
|
| 22 |
+
(a.smooth_G.continuous.comp hy) (fun t ↦ a.positive_G (y t))
|
| 23 |
+
have hc : Continuous (fun t ↦ fderiv ℝ a.A (y t)) :=
|
| 24 |
+
(a.smooth_A.continuous_fderiv (by simp)).comp hy
|
| 25 |
+
obtain ⟨M,hM,hm⟩ := (isCompact_univ.image hc).isBounded.exists_pos_norm_le
|
| 26 |
+
refine ⟨mu,hmu,B+M,by positivity,?_⟩
|
| 27 |
+
intro x hx
|
| 28 |
+
let t := selectFrame a.cover ⟨x,hx⟩
|
| 29 |
+
have he : y t = x := selectFrame_center a.cover ⟨x,hx⟩
|
| 30 |
+
have hG := hg t
|
| 31 |
+
change ‖a.G (y t)‖ ≤ B ∧ ∀ v, mu*‖v‖^2 ≤ a.G (y t) v v at hG
|
| 32 |
+
rw [he] at hG
|
| 33 |
+
have hA := hm _ ⟨t,mem_univ _,rfl⟩
|
| 34 |
+
change ‖fderiv ℝ a.A (y t)‖ ≤ M at hA
|
| 35 |
+
rw [he] at hA
|
| 36 |
+
obtain ⟨hge,_,hae⟩ := a.germ x (a.centers_E hx)
|
| 37 |
+
rw [hge.self_of_nhds] at hG
|
| 38 |
+
rw [hae.fderiv_eq] at hA
|
| 39 |
+
exact ⟨hG.1.trans (by linarith),hA.trans (by linarith),hG.2⟩
|
| 40 |
+
|
| 41 |
+
theorem lattice_eta_bounds {U : Set Coord} (hUD : U ⊆ D) :
|
| 42 |
+
∃ e > 0, ∃ E > 0, ∀ n (z : SourceGrid U n) j,
|
| 43 |
+
e ≤ a.latticeEta hUD n z j ∧ a.latticeEta hUD n z j ≤ E := by
|
| 44 |
+
obtain ⟨_,_,e,he,E,hE,hb⟩ := a.original_direction_bounds
|
| 45 |
+
refine ⟨e,he,E,hE,?_⟩
|
| 46 |
+
intro n z j
|
| 47 |
+
exact (hb (latticeFrame a.cover hUD n z)).2 j
|
| 48 |
+
|
| 49 |
+
end LocalCompactWaveData
|
| 50 |
+
end
|
| 51 |
+
end Yau.Geometry
|
| 52 |
+
|
| 53 |
+
end OAI
|