Download lean/OAI/Analysis/CoulombIonization/Localization/CoreObservationEnsembleBarrier.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
lemmaobserve_countMoment (E : CoreObservationEnsemble) (p : Fin2→SmoothMultiplier spaceDirections)
(hp : ∀ x, ∑ a, (p a).value x^2 = 1) (y : Space) (R : ℝ) :
(E.observe p hp).countMoment y R≤E.countMoment y R:=by
proof · 4
lines
change (∑ic : Σ i : E.Branch, Fin (E.graph i).coreSize →Fin2,
((E.graph ic.1).observe p hp ic.2).countMoment y R) ≤ _
rw [Fintype.sum_sigma]
exact Finset.sum_le_sum (fun i _ => (E.graph i).observe_countMoment p hp y R)
lemmafieldMoment_le_observe_excess (E : CoreObservationEnsemble)
(p : Fin2→SmoothMultiplier spaceDirections) (hp : ∀ x, ∑ a, (p a).value x^2 = 1)
(y : Space) {B : ℝ} (hB : 0 < B) (hnuc : 2*B≤ ‖y‖)
(hv : ∀ x ∈ ball y (2*B), (p 0).value x = 0)
(hd : ∀ x ∈ ball y (2*B), ∀ a, lineDeriv ℝ (p 0).value x (spaceDirections a) = 0)
{Zlam : ℝ} (hZ : 0≤Z) (hlam : 0 < lam) :
E.fieldMoment Z lam y ≤2*packetFieldConstant^2*((1/B^4+1/B)^2*E.mass+
(E.observe p hp).excess Z lam/B) :=by
proof · 8
lines
have hh :=Finset.sum_le_sum (s :=Finset.univ) (fun i (_ : i ∈Finset.univ) =>
(E.graph i).fieldMoment_le_observe_excess p hp y hB hnuc hv hd hZ hlam)
simp only [←Finset.mul_sum,Finset.sum_add_distrib,←Finset.sum_div] at hh
change E.fieldMoment Z lam y ≤2*packetFieldConstant^2*((1/B^4+1/B)^2*E.mass+
(∑ic : Σ i : E.Branch, Fin (E.graph i).coreSize →Fin2,
((E.graph ic.1).observe p hp ic.2).excess Z lam)/B)
rw [Fintype.sum_sigma]
exact hh
lemmaoutMoment_spatial (E : CoreObservationEnsemble) (y : Space) {r b RBZlam : ℝ}
(hr : 0≤ r) (hb : 0 < b) (hR : 0 < R) (hsep : r+b+2*R≤ ‖y‖)
(hnear : r+2*b ≤ ‖y‖) (hZ : 0≤Z) (hlam : 0≤ lam) {η : Space→ℝ}
(hm : Measurable η) (hn : ∀ z, 0≤ η z) (hs : ∀ z, η z ≠0→ ‖z‖ ≤R)
(hbound : ∀ z, |η z| ≤B) (hηr : CoulombAnalysis.IsRadial η) (h1 : ∫ z, η z = 1) :
E.outMoment y hr hb Z lam ≤B*∫ z in closedBall y (r+b+R),
(E.observe (coreFirstRadialCut y hr hb) (coreFirstRadialCut_partition y hr hb)).fieldMoment Z lam z :=by
proof · 14
lines
let p := coreFirstRadialCut y hr hb
let hp := coreFirstRadialCut_partition y hr hb
have hh :=Finset.sum_le_sum (s :=Finset.univ) (fun i (_ : i ∈Finset.univ) =>
(E.graph i).outMoment_spatial y hr hb hR hsep hnear hZ hlam hm hn hs hbound hηr h1)
rw [←Finset.mul_sum] at hh
change _ ≤B*∫ z in closedBall y (r+b+R),
∑ic : Σ i : E.Branch, Fin (E.graph i).coreSize →Fin2,
((E.graph ic.1).observe p hp ic.2).fieldMoment Z lam z
simp_rw [Fintype.sum_sigma]
rw [integral_finsetSum]
· exact hh
· intro i _
exact integrable_finsetSum _ (fun c _ => coreLawAverage_fieldSquare_ball_integrable
((E.graph i).observe p hp c).sobolev y hR (by linarith) hZ hlam)