Download lean/OAI/Analysis/CoulombIonization/Variational/ExpectedTruncatedControl.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
defweightedPatchTestAbs {NM : ℕ} (ψ : FormVector (N+M)) (s : SpinsM)
(Zlam : ℝ) (y : Space) (R : ℝ) {b : ℝ} (hb : 0 < b)
(S : ConfigurationM→Finset (FinM)) (g : TFSpace→ℝ)
(u : ConfigurationM) : ℝ:=
body · 4
lines
formMass (coreSlice ψ s u)*
|∫ x, g x*(retainedPatchLp hb (S u) u y R-
tfPatchMinimizer R tfKinetic tfKinetic_pos (conditionalPatchField ψ s Z lam y R u)) x
∂ballMeasure R|
lemmapatchTestError_aestronglyMeasurable {NM : ℕ} {ψ : FormVector (N+M)}
(hψ : SobolevVector ψ) (s : SpinsM) (Zlam : ℝ) (y : Space) (R : ℝ)
{b : ℝ} (hb : 0 < b) (S : ConfigurationM→Finset (FinM))
(hS : ∀ i, MeasurableSet {u | i ∈S u}) {g : TFSpace→ℝ}
(hm : MemLp g (5/2) (ballMeasure R)) :
AEStronglyMeasurable (fun u =>∫ x, g x*(retainedPatchLp hb (S u) u y R-
tfPatchMinimizer R tfKinetic tfKinetic_pos (conditionalPatchField ψ s Z lam y R u)) x
∂ballMeasure R) :=by
proof · 5
lines
havehs : Measurable (funu : ConfigurationM=> retainedPatchLp hb (S u) u y R) :=
retainedPatchLp_measurable hb S id hS measurable_id y Rhave hr := conditionalPatchMinimizer_aemeasurable hψ s Z lam y R
exact ((patch_test_continuous_of_memLp R hm).measurable.comp_aemeasurable
(hs.aemeasurable.sub hr)).aestronglyMeasurable
lemmaweightedPatchTruncatedAbs_integrable {NM : ℕ} {ψ : FormVector (N+M)}
(hψ : SobolevVector ψ) (s : SpinsM) (Zlam : ℝ) (y : Space)
{Rr : ℝ} (hr : 0 < r) (hR : r < R)
{b : ℝ} (hb : 0 < b) (S : ConfigurationM→Finset (FinM))
(hS : ∀ i, MeasurableSet {u | i ∈S u})
(hi : Integrable (weightedPatchGap ψ s Z lam y R hb S)) :
Integrable (weightedPatchTestAbs ψ s Z lam y R hb S (fun x =>1/max ‖x‖ r)) :=
proof · 4
lines
(weighted_abs_integrable_and_bound (fun _ => formMass_nonneg _)
(hψ.coreSlice_mass_integrable s)
(patchTestError_aestronglyMeasurable hψ s Z lam y R hb S hS (truncated_kernel_memLp R hr))
(weightedPatchTruncatedSquare_integrable hψ s Z lam y hr hR hb S hS hi)).1
theoremradial_truncated_absolute_control {N : ℕ} {ψ : FormVectorN}
(hψ : SobolevFermion ψ) (y : Space) {t b : ℝ} (ht : 0≤ t) (hb : 0 < b)
(htb : 7*b < t) (hy : t ≤ ‖y‖) {Zlam : ℝ} (hZ : 0≤Z) (hlam : 0 < lam)
{g : Space→ℝ} (hg : ContDiffℝ∞ g) (hcg : HasCompactSupport g)
(hgn : ∫z : Space, (g z)^2 = 1) (hrad : IsRadial g) (hgs : tsupport g ⊆ ball 01)
{r : ℝ} (hr : 0 < r) (hR : r < t-4*b) :
(∑c : FinN→Fin2, ∑s : Spins (cutOutNumber c), ∫ u,
weightedPatchTestAbs (orderedCutForm (coreFirstRadialCut y ht hb)
(coreFirstRadialCut_partition y ht hb) ψ c) s Z lam y (t-4*b) hb
(radialPatchRetention N y t b c s) (fun x =>1/max ‖x‖ r) u) ≤Real.sqrt (formMass ψ)*Real.sqrt ((2/r)*
(∑c : FinN→Fin2, ∑s : Spins (cutOutNumber c), ∫ u,
weightedPatchGap (orderedCutForm (coreFirstRadialCut y ht hb)
(coreFirstRadialCut_partition y ht hb) ψ c) s Z lam y (t-4*b) hb
(radialPatchRetention N y t b c s) u)) :=by
proof · 35
lines
let p := coreFirstRadialCut y ht hb
let hp := coreFirstRadialCut_partition y ht hb
letI:= (c : FinN→Fin2) ×Spins (cutOutNumber c)
let w :=funi : I=>funu : Configuration (cutOutNumber i.1) =>
formMass (coreSlice (orderedCutForm p hp ψ i.1) i.2 u)
let f :=funi : I=>funu : Configuration (cutOutNumber i.1) =>∫ x, (1/max ‖x‖ r)*(retainedPatchLp hb (radialPatchRetention N y t b i.1 i.2 u) u y (t-4*b)-
tfPatchMinimizer (t-4*b) tfKinetic tfKinetic_pos
(conditionalPatchField (orderedCutForm p hp ψ i.1) i.2Z lam y (t-4*b) u)) x
∂ballMeasure (t-4*b)
have hχ (c : FinN→Fin2) : SobolevVector (orderedCutForm p hp ψ c) :=
orderedCutForm_sobolev p hp hψ.sobolevVector c
have hgap (i : I) := radial_weightedPatchGap_integrable hψ y ht hb htb hy hZ hlam
hg hcg hgn hrad hgs i.1 i.2have hcs := finite_weighted_abs_bound (μ :=funi : I=> (volume : Measure (Configuration (cutOutNumber i.1))))
(w := w) (f := f) (fun _ _ => formMass_nonneg _)
(fun i => (hχ i.1).coreSlice_mass_integrable i.2)
(fun i => patchTestError_aestronglyMeasurable (hχ i.1) i.2Z lam y (t-4*b) hb _
(radialPatchRetention_measurable N y t b i.1 i.2) (truncated_kernel_memLp _ hr))
(fun i => weightedPatchTruncatedSquare_integrable (hχ i.1) i.2Z lam y hr hR hb _
(radialPatchRetention_measurable N y t b i.1 i.2) (hgap i))
havehmass : (∑i : I, ∫ u, w i u) = formMass ψ :=by
rw [Fintype.sum_sigma]
change (∑ c, ∑ s, ∫ u, formMass (coreSlice (orderedCutForm p hp ψ c) s u)) = _
simp_rw [SobolevVector.integral_coreSlice_mass (hχ _)]
exact orderedCutForm_mass_sum p hp hψ.sobolevVector
rw [hmass,Fintype.sum_sigma,Fintype.sum_sigma] at hcs
change (∑ c, ∑ s, ∫ u, weightedPatchTestAbs (orderedCutForm p hp ψ c) s Z lam y _ hb
(radialPatchRetention N y t b c s) (fun x =>1/max ‖x‖ r) u) ≤Real.sqrt (formMass ψ)*Real.sqrt
(∑ c, ∑ s, ∫ u, weightedPatchTestSquare (orderedCutForm p hp ψ c) s Z lam y _ hb
(radialPatchRetention N y t b c s) (fun x =>1/max ‖x‖ r) u) at hcs
exact hcs.trans (mul_le_mul_of_nonneg_left
(Real.sqrt_le_sqrt (radial_truncated_test_control hψ y ht hb htb hy hZ hlam hg hcg hgn hrad hgs hr hR))
(Real.sqrt_nonneg _))
apply (tfPotential_integrable hρ.norm hp.norm y).mono'
(hmρ.mul (masterKernel_pole_measurable hc hr hs hg.continuous y)).aestronglyMeasurable
filter_upwards [ae_ne_point y] with x hx
change ‖ρ x*tfPotential (masterKernel c₁ r₀ s g x) y‖ ≤ _
rw [norm_mul,Real.norm_eq_abs (tfPotential _ _),
abs_of_nonneg (masterKernel_potential_nonneg c₁ r₀ s g x y)]
have hh := mul_le_mul_of_nonneg_left
(masterKernel_potential_le hc hr hs hg hcg hgn hrad hgs hx) (norm_nonneg (ρ x))
simpa only [mul_one_div] using hh
havehm : Measurable (funp : Space×Space=> ρ p.1*masterKernel c₁ r₀ s g p.1 p.2/‖y-p.2‖) :=
((hmρ.comp measurable_fst).mul (masterKernel_joint_continuous hc hr hs hg.continuous).measurable).div (by fun_prop)
apply (integrable_prod_iff hm.aestronglyMeasurable).2
refine ⟨Eventually.of_forall fun x => ?_,?_⟩
· have hη := scaled_packet_density_compact (masterWidth_pos hc hr hs x) hcg
have hηc := (scaledRealPacket_smooth (masterWidth c₁ r₀ s x) hg).continuous.pow 2have hh := (translated_pole_integrable (hηc.integrable_of_hasCompactSupport hη)
(hηc.memLp_of_hasCompactSupport hη) y x).const_mul (ρ x)
convert! hh using1
funext z
simp only [masterKernel,Pi.pow_apply,mul_div_assoc]
· have hi := master_potential_integrable hc hr hs hg hcg hgn hrad hgs hmρ.norm hρ.norm hp.norm y
convert! hi using1
funext x
simp only [norm_div,norm_mul,norm_norm,
Real.norm_of_nonneg (masterKernel_nonneg c₁ r₀ s g x _),mul_div_assoc,integral_const_mul,tfPotential]
change (∫ z, (∫ x, ρ x*masterKernel c₁ r₀ s g x z)/‖y-z‖) = _
calc
_ = ∫ z, ∫ x, ρ x*masterKernel c₁ r₀ s g x z/‖y-z‖ :=by simp only [integral_div]
_ = ∫ x, ∫ z, ρ x*masterKernel c₁ r₀ s g x z/‖y-z‖ :=
integral_integral_swap (master_smearing_pole_integrable hc hr hs hg hcg hgn hrad hgs hmρ hρ hp y).swap
_ = _ :=by simp only [mul_div_assoc,integral_const_mul,tfPotential]