simp only [packetDensity,radialLocalOrbital,scaleForm,norm_real_mul_sq,radialLocalRaw_mass]
simp only [radialLocalRaw,smoothForm,radialLocalSeed,radialScaledSeed,
radialPacketSeed,radialCenterShift,Pi.smul_apply,Pi.add_apply,Finset.sum_const,
Finset.card_univ,nsmul_eq_mul,sub_eq_add_neg,mul_assoc]
apply HasCompactSupport.of_support_subset_isCompact (isCompact_closedBall y R)
intro x hx
exact (Metric.mem_closedBall).mpr (packetDensity_support y hR hx)
theorempacketDensity_potential (y : Space) {R : ℝ} (hR : 0 < R)
{z : Space} (hz : R < ‖z-y‖) :
(∫ x, packetDensity y R x / ‖z-x‖) = 1 / ‖z-y‖ :=by
proof · 15
lines
have ht := integral_add_right_eq_self (μ := volume)
(funx : Space=> packetDensity y R x / ‖z-x‖) y
rw [← ht]
havehe : (fun x => packetDensity y R (x+y) / ‖z-(x+y)‖) =
(fun x => packetDensity 0R x / ‖(z-y)-x‖) :=by
funext x
rw [packetDensity_translate,add_sub_cancel_right]
congr 2
abel
rw [he]
have hn :=CoulombAnalysis.tfPotential_newton_exterior
(packetDensity_integrable 0 hR) (packetDensity_memLp 0 hR) (packetDensity_radial R)
hR.le (fun x hx =>by simpa only [sub_zero] using packetDensity_support 0 hR hx) hz
rw [packetDensity_mass 0 hR] at hn
exact hn
lemmapacketDensity_eq_two (y : Space) (R : ℝ) (x : Space) (s : Spins1) :
packetDensity y R x = 2 * ‖(radialLocalOrbital y R).value s (fun _ => x)‖^2:=by
proof · 3
lines
simp only [packetDensity,radialLocalOrbital,scaleForm,radialLocalRaw,smoothForm,
Finset.sum_const,Finset.card_univ,nsmul_eq_mul]
congr 1
lemmaradialLocalOrbital_value_config (y : Space) (R : ℝ) (s : Spins1)
(x : Configuration1) :
(radialLocalOrbital y R).value s x =
(radialLocalOrbital y R).value s (fun _ => x 0) :=by
proof · 3
lines
congr 1
funext i
exact congrArg x (Subsingleton.elim i 0)
have hh (s : Spins1) := radialLocalOrbital_potential y hR
(z :=0) (by simpa only [zero_sub,norm_neg] using hy) s
simp only [zero_sub,norm_neg] at hh
unfold formNuclear
simp only [Fin.sum_univ_one,hh,Finset.sum_const,Finset.card_univ,nsmul_eq_mul]
norm_num [Spins]
ring
lemmaintegral_join_left {NM : ℕ} {f : Configuration (N+M) →ℝ}
(hf : Integrable f) :
(∫x : ConfigurationN, ∫y : ConfigurationM, f (joinLists x y)) = ∫ z, f z :=by
proof · 6
lines
have hj := integrable_join (N:=N) (M:=M) hf
have he := (configurationJoin_preserving NM).integral_comp
(configurationJoin NM).toHomeomorph.measurableEmbedding f
simp only [configurationJoin_apply_prod] at he
rw [Measure.volume_eq_prod] at hj he
exact (integral_prod _ hj).symm.trans he
lemmatensor_packet_pair {N : ℕ} {ψ : FormVectorN} (hψ : SobolevVector ψ)
(y : Space) {RB : ℝ} (hR : 0 < R) (hRB : R < B)
(hc : ∀ x i, ‖x i-y‖ < B→FormZeroAt ψ x)
(s : SpinsN) (t : Spins1) (i : FinN) :
(∫ z, ‖(tensorForm ψ (radialLocalOrbital y R)).value (joinLists s t) z‖^2 /
‖z i.castSucc-z (Fin.last N)‖) =
(1/2 : ℝ) * ∫ x, ‖ψ.value s x‖^2 / ‖x i-y‖ :=by
proof · 21
lines
have hφ := (radialLocalOrbital_admissible y hR).sobolevFermion.sobolevVector
have hT := hψ.tensor hφ
have hi := pair_integrable i.castSucc (Fin.last N) (Fin.castSucc_ne_last i)
(hT.1 (joinLists s t)) (hT.2.1 (joinLists s t) _) (hT.2.2 (joinLists s t) _)
rw [← integral_join_left hi]
change (∫x : ConfigurationN, ∫v : Configuration1,
‖(tensorForm ψ (radialLocalOrbital y R)).value (joinLists s t) (joinLists x v)‖^2 /
‖joinLists x v (finSumFinEquiv (Sum.inl i)) -
joinLists x v (finSumFinEquiv (Sum.inr (0 : Fin1)))‖) = _
simp only [tensorForm_value_join,joinLists_left,joinLists_right,norm_mul,mul_pow,
mul_div_assoc,integral_const_mul]
rw [← integral_const_mul]
apply integral_congr_ae
apply Eventually.of_forall
intro x
by_cases hz : ψ.value s x = 0
· simp only [hz,norm_zero,zero_pow (bydecide : (2:ℕ) ≠0),zero_mul,zero_div,mul_zero]
· havehd : R < ‖x i-y‖ := hRB.trans_le (le_of_not_gt fun hh => hz ((hc x i hh s).1))
dsimp only
rw [radialLocalOrbital_potential y hR hd]
ring
lemmatensorCross_packet {N : ℕ} {ψ : FormVectorN} (hψ : SobolevVector ψ)
(y : Space) {RB : ℝ} (hR : 0 < R) (hRB : R < B)
(hc : ∀ x i, ‖x i-y‖ < B→FormZeroAt ψ x) :
tensorCross ψ (radialLocalOrbital y R) = coreCoulombAt ψ y :=by
proof · 6
lines
unfold tensorCross coreCoulombAt
simp_rw [tensor_packet_pair hψ y hR hRB hc,←Finset.mul_sum]
simp only [Finset.sum_const,Finset.card_univ,nsmul_eq_mul]
norm_num [Spins]
simp only [←Finset.mul_sum]
ring
have hh := local_screened_insertion hψ (radialLocalOrbital_admissible y hR)
(Metric.ball y B) (fun x i hi => hc x i (Metric.mem_ball.mp hi))
(fun x hx => radialLocalOrbital_zero y hR (hRB.trans_le (le_of_not_gt
(fun hh => hx (Metric.mem_ball.mpr hh))))) hZ hlam
rw [radialLocalOrbital_nuclear y hR hy,tensorCross_packet hψ.sobolevVector y hR hRB hc,
radialLocalOrbital_kinetic y hR] at hh
simpa only [mul_one_div] using hh