Buckets:
| import Mathlib | |
| import OAI.Analysis.CoulombRadii.Model | |
| namespace OAI | |
| section | |
| section | |
| open MeasureTheory Filter | |
| open scoped BigOperators Topology ContDiff Classical | |
| noncomputable section | |
| namespace NeutralAtom | |
| structure SmoothMultiplier {n : ℕ} (θ : Configuration n → ℝ) : Prop where | |
| smooth : ContDiff ℝ ∞ θ | |
| symmetric : ∀ (p : Equiv.Perm (Fin n)) x, θ (x ∘ p) = θ x | |
| bounded : ∃ C : ℝ, ∀ x, |θ x| ≤ C | |
| derivative_bounded : ∀ i a, ∃ C : ℝ, | |
| ∀ x, |fderiv ℝ θ x (coordinateDirection i a)| ≤ C | |
| def multiplyWavefunction {n : ℕ} (θ : Configuration n → ℝ) | |
| (ψ : Wavefunction n) : Wavefunction n := fun σ x => θ x • ψ σ x | |
| def multiplyGradient {n : ℕ} (θ : Configuration n → ℝ) | |
| (ψ : Wavefunction n) (g : Gradient n) : Gradient n := | |
| fun σ i a x => (fderiv ℝ θ x (coordinateDirection i a)) • ψ σ x + θ x • g σ i a x | |
| theorem memLp_bounded_real_smul {n : ℕ} {f : Configuration n → ℂ} | |
| (hf : MemLp f 2 volume) {θ : Configuration n → ℝ} (hθ : Continuous θ) | |
| (hb : ∃ C : ℝ, ∀ x, |θ x| ≤ C) : MemLp (fun x => θ x • f x) 2 volume := by | |
| obtain ⟨C,hC⟩ := hb | |
| apply hf.of_le_mul (c := C) (hθ.aestronglyMeasurable.smul hf.aestronglyMeasurable) | |
| exact Eventually.of_forall fun x => by | |
| change ‖θ x • f x‖ ≤ C * ‖f x‖ | |
| rw [norm_smul, Real.norm_eq_abs] | |
| exact mul_le_mul_of_nonneg_right (hC x) (norm_nonneg _) | |
| theorem integrable_test_real_smul {n : ℕ} {f : Configuration n → ℂ} | |
| (hf : MemLp f 2 volume) {φ : Configuration n → ℝ} (hφ : Continuous φ) | |
| (hc : HasCompactSupport φ) : Integrable (fun x => φ x • f x) := by | |
| exact (hf.locallyIntegrable (by norm_num)).integrable_smul_left_of_hasCompactSupport hφ hc | |
| theorem IsAntisymmetric.multiply {n : ℕ} {ψ : Wavefunction n} | |
| (hψ : IsAntisymmetric ψ) {θ : Configuration n → ℝ} | |
| (hθ : ∀ (p : Equiv.Perm (Fin n)) x, θ (x ∘ p) = θ x) : | |
| IsAntisymmetric (multiplyWavefunction θ ψ) := by | |
| intro p σ | |
| filter_upwards [hψ p σ] with x hx | |
| simp only [multiplyWavefunction, hθ p x, hx, mul_smul_comm] | |
| theorem HasWeakGradient.multiply {n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (hg : HasWeakGradient ψ g) (hψ : ∀ σ, MemLp (ψ σ) 2 volume) | |
| (hgLp : ∀ σ i a, MemLp (g σ i a) 2 volume) | |
| {θ : Configuration n → ℝ} (hθ : ContDiff ℝ ∞ θ) : | |
| HasWeakGradient (multiplyWavefunction θ ψ) (multiplyGradient θ ψ g) := by | |
| intro σ i a φ hφ hφc | |
| let dθ : Configuration n → ℝ := fun x => fderiv ℝ θ x (coordinateDirection i a) | |
| let dφ : Configuration n → ℝ := fun x => fderiv ℝ φ x (coordinateDirection i a) | |
| have hdθ : Continuous dθ := (hθ.continuous_fderiv (by simp)).clm_apply continuous_const | |
| have hdφ : Continuous dφ := (hφ.continuous_fderiv (by simp)).clm_apply continuous_const | |
| have hdφc : HasCompactSupport dφ := hφc.fderiv_apply ℝ _ | |
| have hi₁ : Integrable (fun x => (θ x*dφ x) • ψ σ x) := | |
| integrable_test_real_smul (hψ σ) (hθ.continuous.mul hdφ) hdφc.mul_left | |
| have hi₂ : Integrable (fun x => (φ x*dθ x) • ψ σ x) := | |
| integrable_test_real_smul (hψ σ) (hφ.continuous.mul hdθ) hφc.mul_right | |
| have hi₃ : Integrable (fun x => (φ x*θ x) • g σ i a x) := | |
| integrable_test_real_smul (hgLp σ i a) | |
| (hφ.continuous.mul hθ.continuous) hφc.mul_right | |
| have h := hg σ i a (fun x => φ x * θ x) (hφ.mul hθ) hφc.mul_right | |
| have hder : ∀ x, fderiv ℝ (fun x => φ x * θ x) x (coordinateDirection i a) = | |
| θ x*dφ x + φ x*dθ x := by | |
| intro x | |
| change (fderiv ℝ (φ * θ) x) _ = _ | |
| rw [fderiv_mul (hφ.differentiable (by simp)).differentiableAt | |
| (hθ.differentiable (by simp)).differentiableAt] | |
| simp [dθ, dφ, smul_eq_mul, add_comm] | |
| simp_rw [hder] at h | |
| change (∫ x, (θ x*dφ x + φ x*dθ x) • ψ σ x) = | |
| -(∫ x, (φ x*θ x) • g σ i a x) at h | |
| simp_rw [add_smul] at h | |
| rw [integral_add hi₁ hi₂] at h | |
| change (∫ x, dφ x • (θ x • ψ σ x)) = | |
| -(∫ x, φ x • (dθ x • ψ σ x + θ x • g σ i a x)) | |
| simp_rw [smul_add, smul_smul] | |
| rw [integral_add hi₂ hi₃] | |
| simp_rw [mul_comm (dφ _) (θ _)] | |
| linear_combination h | |
| theorem norm_multiplyWavefunction_sq {n : ℕ} (θ : Configuration n → ℝ) | |
| (ψ : Wavefunction n) (σ : Spins n) (x : Configuration n) : | |
| ‖multiplyWavefunction θ ψ σ x‖^2 = θ x^2 * ‖ψ σ x‖^2 := by | |
| simp [multiplyWavefunction, mul_pow] | |
| theorem integrable_weight_multiply {n : ℕ} {θ : Configuration n → ℝ} | |
| (hθ : Continuous θ) (hb : ∃ C : ℝ, ∀ x, |θ x| ≤ C) | |
| (ψ : Wavefunction n) (σ : Spins n) {W : Configuration n → ℝ} | |
| (hi : Integrable (fun x => W x*‖ψ σ x‖^2)) : | |
| Integrable (fun x => W x*‖multiplyWavefunction θ ψ σ x‖^2) := by | |
| obtain ⟨C,hC⟩ := hb | |
| have hb' : ∀ᵐ x : Configuration n ∂volume, ‖θ x^2‖ ≤ C^2 := by | |
| exact Eventually.of_forall fun x => by | |
| simpa [Real.norm_eq_abs] using pow_le_pow_left₀ (abs_nonneg (θ x)) (hC x) 2 | |
| have hh := hi.bdd_mul (hθ.pow 2).aestronglyMeasurable hb' | |
| convert hh using 1 | |
| ext x | |
| rw [norm_multiplyWavefunction_sq] | |
| simp only [Pi.pow_apply] | |
| ring | |
| theorem FormDomain.multiply {n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (hg : FormDomain ψ g) {θ : Configuration n → ℝ} (hθ : SmoothMultiplier θ) : | |
| FormDomain (multiplyWavefunction θ ψ) (multiplyGradient θ ψ g) := by | |
| refine ⟨hg.1.multiply hθ.symmetric, | |
| hg.2.1.multiply hg.2.2.1 hg.2.2.2.1 hθ.smooth, ?_, ?_, ?_, ?_⟩ | |
| · intro σ | |
| exact memLp_bounded_real_smul (hg.2.2.1 σ) hθ.smooth.continuous hθ.bounded | |
| · intro σ i a | |
| exact (memLp_bounded_real_smul (hg.2.2.1 σ) | |
| ((hθ.smooth.continuous_fderiv (by simp)).clm_apply continuous_const) | |
| (hθ.derivative_bounded i a)).add | |
| (memLp_bounded_real_smul (hg.2.2.2.1 σ i a) hθ.smooth.continuous hθ.bounded) | |
| · intro σ i | |
| exact integrable_weight_multiply hθ.smooth.continuous hθ.bounded ψ σ (hg.2.2.2.2.1 σ i) | |
| · intro σ i j hij | |
| exact integrable_weight_multiply hθ.smooth.continuous hθ.bounded ψ σ | |
| (hg.2.2.2.2.2 σ i j hij) | |
| theorem SmoothMultiplier.const {n : ℕ} (c : ℝ) : | |
| SmoothMultiplier (fun _ : Configuration n => c) := by | |
| refine ⟨contDiff_const, fun _ _ => rfl, ⟨|c|, fun _ => le_rfl⟩, ?_⟩ | |
| intro i a | |
| exact ⟨0, fun x => by simp⟩ | |
| theorem SmoothMultiplier.add {n : ℕ} {θ η : Configuration n → ℝ} | |
| (hθ : SmoothMultiplier θ) (hη : SmoothMultiplier η) : | |
| SmoothMultiplier (fun x => θ x + η x) := by | |
| obtain ⟨C,hC⟩ := hθ.bounded | |
| obtain ⟨D,hD⟩ := hη.bounded | |
| refine ⟨hθ.smooth.add hη.smooth, fun p x => by rw [hθ.symmetric, hη.symmetric], | |
| ⟨C+D, fun x => (abs_add_le _ _).trans (add_le_add (hC x) (hD x))⟩, ?_⟩ | |
| intro i a | |
| obtain ⟨A,hA⟩ := hθ.derivative_bounded i a | |
| obtain ⟨B,hB⟩ := hη.derivative_bounded i a | |
| refine ⟨A+B, fun x => ?_⟩ | |
| change |fderiv ℝ (θ + η) x (coordinateDirection i a)| ≤ _ | |
| rw [fderiv_add (hθ.smooth.differentiable (by simp)).differentiableAt | |
| (hη.smooth.differentiable (by simp)).differentiableAt] | |
| exact (abs_add_le _ _).trans (add_le_add (hA x) (hB x)) | |
| theorem SmoothMultiplier.mul {n : ℕ} {θ η : Configuration n → ℝ} | |
| (hθ : SmoothMultiplier θ) (hη : SmoothMultiplier η) : | |
| SmoothMultiplier (fun x => θ x * η x) := by | |
| obtain ⟨C,hC⟩ := hθ.bounded | |
| obtain ⟨D,hD⟩ := hη.bounded | |
| have hC0 : 0 ≤ C := (abs_nonneg (θ 0)).trans (hC 0) | |
| have hD0 : 0 ≤ D := (abs_nonneg (η 0)).trans (hD 0) | |
| refine ⟨hθ.smooth.mul hη.smooth, fun p x => by rw [hθ.symmetric, hη.symmetric], | |
| ⟨C*D, fun x => ?_⟩, ?_⟩ | |
| · rw [abs_mul] | |
| exact mul_le_mul (hC x) (hD x) (abs_nonneg _) hC0 | |
| · intro i a | |
| obtain ⟨A,hA⟩ := hθ.derivative_bounded i a | |
| obtain ⟨B,hB⟩ := hη.derivative_bounded i a | |
| refine ⟨C*B+D*A, fun x => ?_⟩ | |
| change |fderiv ℝ (θ * η) x (coordinateDirection i a)| ≤ _ | |
| rw [fderiv_mul (hθ.smooth.differentiable (by simp)).differentiableAt | |
| (hη.smooth.differentiable (by simp)).differentiableAt] | |
| simp only [add_apply, smul_apply, smul_eq_mul] | |
| apply (abs_add_le _ _).trans | |
| rw [abs_mul, abs_mul] | |
| exact add_le_add (mul_le_mul (hC x) (hB x) (abs_nonneg _) hC0) | |
| (mul_le_mul (hD x) (hA x) (abs_nonneg _) hD0) | |
| def scaleWavefunction {n : ℕ} (c : ℝ) (ψ : Wavefunction n) : Wavefunction n := | |
| fun σ x => c • ψ σ x | |
| def scaleGradient {n : ℕ} (c : ℝ) (g : Gradient n) : Gradient n := | |
| fun σ i a x => c • g σ i a x | |
| theorem FormDomain.scale {n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (hg : FormDomain ψ g) (c : ℝ) : | |
| FormDomain (scaleWavefunction c ψ) (scaleGradient c g) := by | |
| have he : multiplyGradient (fun _ => c) ψ g = scaleGradient c g := by | |
| funext σ i a x | |
| simp [multiplyGradient, scaleGradient] | |
| change FormDomain (multiplyWavefunction (fun _ => c) ψ) (scaleGradient c g) | |
| rw [← he] | |
| exact hg.multiply (SmoothMultiplier.const c) | |
| theorem normSquared_scale {n : ℕ} (c : ℝ) (ψ : Wavefunction n) : | |
| normSquared (scaleWavefunction c ψ) = c^2 * normSquared ψ := by | |
| simp only [normSquared, scaleWavefunction, norm_smul, Real.norm_eq_abs, mul_pow, sq_abs, | |
| integral_const_mul, Finset.mul_sum] | |
| theorem energy_scale {n : ℕ} (Z : ℕ) (c : ℝ) (ψ : Wavefunction n) (g : Gradient n) : | |
| energy Z (scaleWavefunction c ψ) (scaleGradient c g) = c^2 * energy Z ψ g := by | |
| simp only [energy, scaleWavefunction, scaleGradient, norm_smul, Real.norm_eq_abs, | |
| mul_pow, sq_abs] | |
| simp_rw [← mul_assoc, mul_comm (coulombPotential Z _) (c^2), mul_assoc, | |
| integral_const_mul, ← Finset.mul_sum] | |
| ring | |
| theorem normSquared_nonneg {n : ℕ} (ψ : Wavefunction n) : 0 ≤ normSquared ψ := | |
| Finset.sum_nonneg fun _ _ => integral_nonneg fun _ => sq_nonneg _ | |
| theorem ae_normSquared_eq_zero {n : ℕ} {ψ : Wavefunction n} | |
| (hψ : ∀ σ, MemLp (ψ σ) 2 volume) (hn : normSquared ψ = 0) (σ : Spins n) : | |
| (fun x => ‖ψ σ x‖^2) =ᵐ[volume] 0 := by | |
| have hi : ∫ x : Configuration n, ‖ψ σ x‖^2 = 0 := | |
| (Finset.sum_eq_zero_iff_of_nonneg (fun τ _ => | |
| integral_nonneg (fun _ => sq_nonneg (‖ψ τ _‖)))).mp hn σ (Finset.mem_univ _) | |
| exact (integral_eq_zero_iff_of_nonneg (fun _ => sq_nonneg _) (hψ σ).norm.integrable_sq).mp hi | |
| theorem energy_nonneg_of_normSquared_zero {n : ℕ} (Z : ℕ) | |
| {ψ : Wavefunction n} {g : Gradient n} (hd : FormDomain ψ g) (hn : normSquared ψ = 0) : | |
| 0 ≤ energy Z ψ g := by | |
| have hp : ∀ σ, (∫ x : Configuration n, coulombPotential Z x*‖ψ σ x‖^2) = 0 := by | |
| intro σ | |
| have hh := ae_normSquared_eq_zero hd.2.2.1 hn σ | |
| calc | |
| _ = ∫ _ : Configuration n, (0 : ℝ) := integral_congr_ae (hh.mono fun x hx => by simp [hx]) | |
| _ = 0 := integral_zero _ _ | |
| simp only [energy, hp, Finset.sum_const_zero, add_zero] | |
| apply mul_nonneg (by norm_num) | |
| exact Finset.sum_nonneg (fun _ _ => Finset.sum_nonneg (fun _ _ => | |
| Finset.sum_nonneg (fun _ _ => integral_nonneg (fun _ => sq_nonneg _)))) | |
| theorem rayleigh_lower_bound {n : ℕ} (Z : ℕ) {ψ : Wavefunction n} {g : Gradient n} | |
| (hmin : ∀ (χ : Wavefunction n) (h : Gradient n), | |
| FormDomain χ h → normSquared χ = 1 → energy Z ψ g ≤ energy Z χ h) | |
| {χ : Wavefunction n} {h : Gradient n} (hd : FormDomain χ h) : | |
| energy Z ψ g * normSquared χ ≤ energy Z χ h := by | |
| rcases (normSquared_nonneg χ).eq_or_lt with hn | hn | |
| · have hn' : normSquared χ = 0 := hn.symm | |
| rw [hn', mul_zero] | |
| exact energy_nonneg_of_normSquared_zero Z hd hn' | |
| · let c : ℝ := (Real.sqrt (normSquared χ))⁻¹ | |
| have hc : c^2*normSquared χ = 1 := by | |
| dsimp [c] | |
| rw [inv_pow, Real.sq_sqrt hn.le, inv_mul_cancel₀ hn.ne'] | |
| have hb := hmin (scaleWavefunction c χ) (scaleGradient c h) (hd.scale c) | |
| (by rw [normSquared_scale, hc]) | |
| calc | |
| energy Z ψ g * normSquared χ ≤ | |
| energy Z (scaleWavefunction c χ) (scaleGradient c h) * normSquared χ := | |
| mul_le_mul_of_nonneg_right hb hn.le | |
| _ = energy Z χ h := by | |
| rw [energy_scale] | |
| calc | |
| (c^2*energy Z χ h)*normSquared χ = (c^2*normSquared χ)*energy Z χ h := by ring | |
| _ = energy Z χ h := by rw [hc, one_mul] | |
| theorem integrable_real_inner_of_memLp {n : ℕ} {f h : Configuration n → ℂ} | |
| (hf : MemLp f 2 volume) (hh : MemLp h 2 volume) : | |
| Integrable (fun x => inner ℝ (f x) (h x)) := by | |
| apply (hf.norm.integrable_sq.add hh.norm.integrable_sq).mono' | |
| (hf.aestronglyMeasurable.inner hh.aestronglyMeasurable) | |
| exact Eventually.of_forall fun x => by | |
| have hb := norm_inner_le_norm (𝕜 := ℝ) (f x) (h x) | |
| have hs := sq_nonneg (‖f x‖ - ‖h x‖) | |
| change ‖inner ℝ (f x) (h x)‖ ≤ ‖f x‖^2+‖h x‖^2 | |
| nlinarith [sq_nonneg ‖f x‖, sq_nonneg ‖h x‖] | |
| theorem FormDomain.integrable_potential {n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (hd : FormDomain ψ g) (Z : ℕ) (σ : Spins n) : | |
| Integrable (fun x : Configuration n => coulombPotential Z x*‖ψ σ x‖^2) := by | |
| have hn := integrable_finsetSum Finset.univ (fun i _ => hd.2.2.2.2.1 σ i) | |
| have hp := integrable_finsetSum Finset.univ (fun i _ => | |
| integrable_finsetSum (Finset.univ.filter (fun j : Fin n => i < j)) | |
| (fun j hj => hd.2.2.2.2.2 σ i j (Finset.mem_filter.mp hj).2)) | |
| apply ((hn.const_mul (-(Z:ℝ))).add hp).congr | |
| exact Eventually.of_forall fun x => by | |
| simp only [Pi.add_apply, coulombPotential, add_mul, Finset.sum_mul, mul_assoc] | |
| theorem integrable_bounded_mul {n : ℕ} {f θ : Configuration n → ℝ} | |
| (hf : Integrable f) (hθ : Continuous θ) (hb : ∃ C : ℝ, ∀ x, |θ x| ≤ C) : | |
| Integrable (fun x => θ x * f x) := by | |
| obtain ⟨C,hC⟩ := hb | |
| exact hf.bdd_mul hθ.aestronglyMeasurable | |
| (Eventually.of_forall fun x => by simpa only [Real.norm_eq_abs] using hC x) | |
| theorem integral_affine_multiplier_sq {n : ℕ} {f θ : Configuration n → ℝ} | |
| (hf : Integrable f) (hθ : SmoothMultiplier θ) (t : ℝ) : | |
| (∫ x, (1+t*θ x)^2*f x) = (∫ x, f x) + | |
| 2*t*(∫ x, θ x*f x) + t^2*(∫ x, θ x^2*f x) := by | |
| have hi₁ := integrable_bounded_mul hf hθ.smooth.continuous hθ.bounded | |
| have hi₂ : Integrable (fun x => θ x^2*f x) := by | |
| simpa only [pow_two] using integrable_bounded_mul hf | |
| (hθ.mul hθ).smooth.continuous (hθ.mul hθ).bounded | |
| have he : (fun x => (1+t*θ x)^2*f x) = | |
| (fun x => f x + (2*t)*(θ x*f x) + t^2*(θ x^2*f x)) := by | |
| funext x; ring | |
| have hi₃ : Integrable (fun x => f x+(2*t)*(θ x*f x)) := hf.add (hi₁.const_mul (2*t)) | |
| rw [he, integral_add hi₃ (hi₂.const_mul (t^2)), | |
| integral_add hf (hi₁.const_mul (2*t)), integral_const_mul, integral_const_mul] | |
| theorem integral_norm_add_smul_sq {n : ℕ} {f h : Configuration n → ℂ} | |
| (hf : MemLp f 2 volume) (hh : MemLp h 2 volume) (t : ℝ) : | |
| (∫ x, ‖f x+t • h x‖^2) = (∫ x, ‖f x‖^2) + | |
| 2*t*(∫ x, inner ℝ (f x) (h x)) + t^2*(∫ x, ‖h x‖^2) := by | |
| have hi := integrable_real_inner_of_memLp hf hh | |
| have he : (fun x => ‖f x+t • h x‖^2) = | |
| (fun x => ‖f x‖^2 + (2*t)*(inner ℝ (f x) (h x)) + t^2*‖h x‖^2) := by | |
| funext x | |
| rw [norm_add_sq_real, real_inner_smul_right, norm_smul, mul_pow, Real.norm_eq_abs, sq_abs] | |
| ring | |
| have hi₃ : Integrable (fun x => ‖f x‖^2+(2*t)*(inner ℝ (f x) (h x))) := | |
| hf.norm.integrable_sq.add (hi.const_mul (2*t)) | |
| rw [he, integral_add hi₃ (hh.norm.integrable_sq.const_mul (t^2)), | |
| integral_add hf.norm.integrable_sq (hi.const_mul (2*t)), | |
| integral_const_mul, integral_const_mul] | |
| def stateWeightedIntegral {n : ℕ} (ψ : Wavefunction n) (θ : Configuration n → ℝ) : ℝ := | |
| ∑ σ : Spins n, ∫ x : Configuration n, θ x*‖ψ σ x‖^2 | |
| def formMultiplierPairing {n : ℕ} (Z : ℕ) (ψ : Wavefunction n) (g : Gradient n) | |
| (θ : Configuration n → ℝ) : ℝ := | |
| (1/2:ℝ)*(∑ σ : Spins n, ∑ i : Fin n, ∑ a : Fin 3, | |
| ∫ x : Configuration n, inner ℝ (g σ i a x) (multiplyGradient θ ψ g σ i a x)) + | |
| ∑ σ : Spins n, ∫ x : Configuration n, θ x*(coulombPotential Z x*‖ψ σ x‖^2) | |
| theorem multiplyGradient_affine {n : ℕ} {θ : Configuration n → ℝ} | |
| (hθ : ContDiff ℝ ∞ θ) (ψ : Wavefunction n) (g : Gradient n) (t : ℝ) | |
| (σ : Spins n) (i : Fin n) (a : Fin 3) (x : Configuration n) : | |
| multiplyGradient (fun y => 1+t*θ y) ψ g σ i a x = | |
| g σ i a x + t • multiplyGradient θ ψ g σ i a x := by | |
| have hd : fderiv ℝ (fun y => 1+t*θ y) x = t • fderiv ℝ θ x := by | |
| rw [fderiv_const_add, fderiv_const_mul (hθ.differentiable (by simp)).differentiableAt] | |
| simp only [multiplyGradient, hd, smul_apply, smul_eq_mul, | |
| Complex.ofReal_mul, Complex.ofReal_add, Complex.ofReal_one, Complex.real_smul] | |
| ring | |
| theorem normSquared_affine_multiplier {n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (hd : FormDomain ψ g) {θ : Configuration n → ℝ} (hθ : SmoothMultiplier θ) (t : ℝ) : | |
| normSquared (multiplyWavefunction (fun x => 1+t*θ x) ψ) = normSquared ψ + | |
| 2*t*stateWeightedIntegral ψ θ + t^2*normSquared (multiplyWavefunction θ ψ) := by | |
| simp only [normSquared, norm_multiplyWavefunction_sq, stateWeightedIntegral] | |
| simp_rw [integral_affine_multiplier_sq (hd.2.2.1 _).norm.integrable_sq hθ, | |
| Finset.sum_add_distrib, ← Finset.mul_sum] | |
| theorem energy_affine_multiplier {n : ℕ} (Z : ℕ) {ψ : Wavefunction n} {g : Gradient n} | |
| (hd : FormDomain ψ g) {θ : Configuration n → ℝ} (hθ : SmoothMultiplier θ) (t : ℝ) : | |
| energy Z (multiplyWavefunction (fun x => 1+t*θ x) ψ) | |
| (multiplyGradient (fun x => 1+t*θ x) ψ g) = energy Z ψ g + | |
| 2*t*formMultiplierPairing Z ψ g θ + | |
| t^2*energy Z (multiplyWavefunction θ ψ) (multiplyGradient θ ψ g) := by | |
| simp only [energy, formMultiplierPairing, multiplyGradient_affine hθ.smooth, | |
| norm_multiplyWavefunction_sq] | |
| simp_rw [integral_norm_add_smul_sq (hd.2.2.2.1 _ _ _) ((hd.multiply hθ).2.2.2.1 _ _ _)] | |
| have hp : ∀ σ : Spins n, (∫ x : Configuration n, | |
| coulombPotential Z x*((1+t*θ x)^2*‖ψ σ x‖^2)) = | |
| (∫ x : Configuration n, coulombPotential Z x*‖ψ σ x‖^2) + | |
| 2*t*(∫ x : Configuration n, θ x*(coulombPotential Z x*‖ψ σ x‖^2)) + | |
| t^2*(∫ x : Configuration n, coulombPotential Z x*(θ x^2*‖ψ σ x‖^2)) := by | |
| intro σ | |
| simpa only [mul_left_comm (coulombPotential Z _)] using | |
| integral_affine_multiplier_sq (hd.integrable_potential Z σ) hθ t | |
| simp_rw [hp, Finset.sum_add_distrib, ← Finset.mul_sum] | |
| ring | |
| theorem minimizer_multiplier_pairing {n : ℕ} (Z : ℕ) {ψ : Wavefunction n} {g : Gradient n} | |
| (hd : FormDomain ψ g) (hn : normSquared ψ = 1) | |
| (hmin : ∀ (χ : Wavefunction n) (h : Gradient n), | |
| FormDomain χ h → normSquared χ = 1 → energy Z ψ g ≤ energy Z χ h) | |
| {θ : Configuration n → ℝ} (hθ : SmoothMultiplier θ) : | |
| formMultiplierPairing Z ψ g θ = energy Z ψ g * stateWeightedIntegral ψ θ := by | |
| let P := formMultiplierPairing Z ψ g θ - energy Z ψ g * stateWeightedIntegral ψ θ | |
| let A := energy Z (multiplyWavefunction θ ψ) (multiplyGradient θ ψ g) - | |
| energy Z ψ g * normSquared (multiplyWavefunction θ ψ) | |
| have hb : ∀ t : ℝ, 0 ≤ 2*t*P + t^2*A := by | |
| intro t | |
| have hm : SmoothMultiplier (fun x => 1+t*θ x) := | |
| (SmoothMultiplier.const 1).add ((SmoothMultiplier.const t).mul hθ) | |
| have hh := rayleigh_lower_bound Z hmin (hd.multiply hm) | |
| rw [normSquared_affine_multiplier hd hθ t, energy_affine_multiplier Z hd hθ t, hn] at hh | |
| dsimp only [P,A] | |
| nlinarith | |
| have hlocal : IsLocalMin (fun t : ℝ => 2*t*P+t^2*A) 0 := by | |
| exact Eventually.of_forall fun t => by simpa using hb t | |
| have hder : HasDerivAt (fun t : ℝ => 2*t*P+t^2*A) (2*P) 0 := by | |
| convert (((hasDerivAt_id (0 : ℝ)).const_mul 2).mul_const P).add | |
| (((hasDerivAt_id (0 : ℝ)).pow 2).mul_const A) using 1 | |
| all_goals first | rfl | norm_num | |
| have he := hlocal.hasDerivAt_eq_zero hder | |
| dsimp only [P] at he | |
| linarith | |
| def localizationError {n : ℕ} (ψ : Wavefunction n) (θ : Configuration n → ℝ) : ℝ := | |
| (1/2:ℝ)*(∑ σ : Spins n, ∑ i : Fin n, ∑ a : Fin 3, | |
| ∫ x : Configuration n, (fderiv ℝ θ x (coordinateDirection i a))^2*‖ψ σ x‖^2) | |
| theorem norm_multiplyGradient_sq {n : ℕ} {θ : Configuration n → ℝ} | |
| (hθ : ContDiff ℝ ∞ θ) (ψ : Wavefunction n) (g : Gradient n) | |
| (σ : Spins n) (i : Fin n) (a : Fin 3) (x : Configuration n) : | |
| ‖multiplyGradient θ ψ g σ i a x‖^2 = | |
| inner ℝ (g σ i a x) (multiplyGradient (fun y => θ y^2) ψ g σ i a x) + | |
| (fderiv ℝ θ x (coordinateDirection i a))^2*‖ψ σ x‖^2 := by | |
| have hder : fderiv ℝ (fun y => θ y^2) x (coordinateDirection i a) = | |
| 2*θ x*(fderiv ℝ θ x (coordinateDirection i a)) := by | |
| simp only [pow_two] | |
| change (fderiv ℝ (θ*θ) x) _ = _ | |
| rw [fderiv_mul (hθ.differentiable (by simp)).differentiableAt | |
| (hθ.differentiable (by simp)).differentiableAt] | |
| simp only [add_apply, smul_apply, smul_eq_mul] | |
| ring | |
| simp only [multiplyGradient, hder, norm_add_sq_real, norm_smul, | |
| inner_add_right, real_inner_smul_left, real_inner_smul_right, | |
| real_inner_self_eq_norm_sq, Real.norm_eq_abs, mul_pow, sq_abs] | |
| rw [real_inner_comm (ψ σ x) (g σ i a x)] | |
| ring | |
| theorem integrable_localization_error {n : ℕ} {ψ : Wavefunction n} | |
| (hψ : ∀ σ, MemLp (ψ σ) 2 volume) {θ : Configuration n → ℝ} | |
| (hθ : SmoothMultiplier θ) (σ : Spins n) (i : Fin n) (a : Fin 3) : | |
| Integrable (fun x : Configuration n => | |
| (fderiv ℝ θ x (coordinateDirection i a))^2*‖ψ σ x‖^2) := by | |
| have hl := memLp_bounded_real_smul (hψ σ) | |
| ((hθ.smooth.continuous_fderiv (by simp)).clm_apply continuous_const) | |
| (hθ.derivative_bounded i a) | |
| simpa only [norm_smul, Real.norm_eq_abs, mul_pow, sq_abs] using hl.norm.integrable_sq | |
| end NeutralAtom | |
| end | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 22.1 kB
- Xet hash:
- fecfa960c9a4234100a1406fa71d1f76c0fb7a3eabf93f4db225dfb6cc68d74e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.