lemmaOneBodyIntegrable.reindex {NM : ℕ} {ψ : FormVectorN} {w : Space→ℝ}
(h : OneBodyIntegrable ψ w) (e : FinM ≃ FinN) : OneBodyIntegrable (reindexForm e ψ) w :=by
proof · 3
lines
intro s i
simpa only [Function.comp_def,configurationReindex_apply,reindexForm,Equiv.symm_apply_apply]
using (configurationReindex_preserving e).integrable_comp_of_integrable (h (s ∘ e.symm) (e i))
lemmaformOneBody_reindex {NM : ℕ} (ψ : FormVectorN) (w : Space→ℝ) (e : FinM ≃ FinN) :
formOneBody (reindexForm e ψ) w = formOneBody ψ w :=by
proof · 12
lines
have hh (s : SpinsM) (i : FinM) :
(∫ x, ‖(reindexForm e ψ).value s x‖^2 * w (x i)) =
∫ x, ‖ψ.value (s ∘ e.symm) x‖^2 * w (x (e i)) :=by
simpa only [Function.comp_apply,Equiv.symm_apply_apply,reindexForm] using
integral_reindex e (fun x => ‖ψ.value (s ∘ e.symm) x‖^2 * w (x (e i)))
have hi (s : SpinsM) :
(∑i : FinM, ∫ x, ‖ψ.value (s ∘ e.symm) x‖^2 * w (x (e i))) =
∑i : FinN, ∫ x, ‖ψ.value (s ∘ e.symm) x‖^2 * w (x i) :=Equiv.sum_comp e (funi : FinN=>∫ x, ‖ψ.value (s ∘ e.symm) x‖^2 * w (x i))
unfold formOneBody
simp_rw [hh,hi]
exact sum_spin_reindex e (fun s =>∑ i, ∫ x, ‖ψ.value s x‖^2 * w (x i))
have hh (s : SpinsN) (i : FinN) :
(∫ x, ‖(sumForm ψ).value s x‖^2 * w (x i)) =
∑ k, ∫ x, ‖(ψ k).value s x‖^2 * w (x i) :=by
simp only [sumForm,norm_sum_sq_disjoint _ (fun k l hkl => hd.1 k l hkl s _),Finset.sum_mul]
exact integral_finsetSum _ (fun k _ => h k s i)
unfold formOneBody
simp_rw [hh]
calc
_ = ∑ s, ∑ k, ∑ i, ∫ x, ‖(ψ k).value s x‖^2 * w (x i) :=Finset.sum_congr rfl (fun _ _ =>Finset.sum_comm)
_ = _ :=Finset.sum_comm
have hk (i : Fin (N+1)) : OneBodyIntegrable (insertionTerm T i) w :=
(h.reindex (insertionSwap i)).scale _
rw [wedgeForm,formOneBody_sum_disjoint hk hd]
simp only [formOneBody_insertionTerm,Finset.sum_const,Finset.card_univ,Fintype.card_fin,
nsmul_eq_mul,Nat.cast_add,Nat.cast_one]
lemmaformOneBody_tensor {NM : ℕ} (ψ : FormVectorN) (φ : FormVectorM) (w : Space→ℝ) :
formOneBody (tensorForm ψ φ) w = formOneBody ψ w * formMass φ +
formMass ψ * formOneBody φ w :=by
proof · 26
lines
have hl (s : SpinsN) (t : SpinsM) (i : FinN) :
(∫ z, ‖(tensorForm ψ φ).value (joinLists s t) z‖^2 * w (z (finSumFinEquiv (Sum.inl i)))) =
(∫ x, ‖ψ.value s x‖^2 * w (x i)) * (∫ y, ‖φ.value t y‖^2) :=by
change (∫ z, ‖ψ.value (leftList (joinLists s t)) (leftList z) *
φ.value (rightList (joinLists s t)) (rightList z)‖^2 * w (leftList z i)) = _
simp only [leftList_join,rightList_join,norm_mul,mul_pow]
simp_rw [mul_right_comm _ _ (w _)]
exact integral_product_join (N:=N) (M:=M) (fun x => ‖ψ.value s x‖^2 * w (x i))
(fun y => ‖φ.value t y‖^2)
have hr (s : SpinsN) (t : SpinsM) (i : FinM) :
(∫ z, ‖(tensorForm ψ φ).value (joinLists s t) z‖^2 * w (z (finSumFinEquiv (Sum.inr i)))) =
(∫ x, ‖ψ.value s x‖^2) * (∫ y, ‖φ.value t y‖^2 * w (y i)) :=by
change (∫ z, ‖ψ.value (leftList (joinLists s t)) (leftList z) *
φ.value (rightList (joinLists s t)) (rightList z)‖^2 * w (rightList z i)) = _
simp only [leftList_join,rightList_join,norm_mul,mul_pow,mul_assoc]
exact integral_product_join (N:=N) (M:=M) (fun x => ‖ψ.value s x‖^2)
(fun y => ‖φ.value t y‖^2 * w (y i))
have hk (s : SpinsN) (t : SpinsM) :
(∑ i, ∫ z, ‖(tensorForm ψ φ).value (joinLists s t) z‖^2 * w (z i)) =
(∑ i, ∫ x, ‖ψ.value s x‖^2 * w (x i))*(∫ y, ‖φ.value t y‖^2) +
(∫ x, ‖ψ.value s x‖^2)*(∑ i, ∫ y, ‖φ.value t y‖^2 * w (y i)) :=by
rw [←Equiv.sum_comp finSumFinEquiv,Fintype.sum_sum_type]
simp only [hl,hr,Finset.sum_mul,Finset.mul_sum]
unfold formOneBody formMass
rw [← sum_spin_join]
simp_rw [hk,Finset.sum_add_distrib,←Finset.sum_mul,←Finset.mul_sum]
intro x i hx s
constructor
· change _ * ψ.value s x = 0
rw [(h x i hx s).1,mul_zero]
· intro j a
change _ * ψ.gradient s j a x = 0
rw [(h x i hx s).2,mul_zero]
intro x i hx s
have hz := h (x ∘ e.symm) (e i) (by simpa only [Function.comp_apply,Equiv.symm_apply_apply] using hx)
exact ⟨(hz (s ∘ e.symm)).1, fun j a => (hz (s ∘ e.symm)).2 (e j) a⟩
intro x i hx s
constructor
· change (∑ k, (ψ k).value s x) = 0
exact Finset.sum_eq_zero (fun k _ => (h k x i hx s).1)
· intro j a
change (∑ k, (ψ k).gradient s j a x) = 0
exact Finset.sum_eq_zero (fun k _ => (h k x i hx s).2 j a)
intro x i hx
obtain ⟨i,rfl⟩ := finSumFinEquiv.surjective i
cases i with
| inl i => exact tensor_zero_left ψ φ (hψ (leftList x) i hx)
| inr i => exact tensor_zero_right ψ φ (hφ (rightList x) i hx)
simp only [coreCoulombAt_eq_formOneBody]
apply formOneBody_insertOrbital _ hd
intro s i
simpa only [mul_one_div] using integrable_coreCoulombAt (hψ.tensor hφ) y hB
(hcψ.tensor hcφ) s i
lemmacoreCoulombAt_packet (y z : Space) {R : ℝ} (hR : 0 < R)
(hsep : R < ‖y-z‖) : coreCoulombAt (radialLocalOrbital y R) z = 1/‖y-z‖ :=by
proof · 9
lines
have hh (s : Spins1) := radialLocalOrbital_potential y hR
(z := z) (by rwa [norm_sub_rev]) s
simp only [coreCoulombAt,Fin.sum_univ_one]
have he (s : Spins1) : (∫x : Configuration1,
‖(radialLocalOrbital y R).value s x‖^2/‖x 0-z‖) = (1/2:ℝ)/‖y-z‖ :=by
simpa only [norm_sub_rev] using hh s
simp only [he,Finset.sum_const,Finset.card_univ,nsmul_eq_mul]
norm_num [Spins]
ring