Buckets:
| import Mathlib | |
| import OAI.Analysis.CoulombRadii.Variational.WedgeInsert | |
| namespace OAI | |
| section | |
| noncomputable section | |
| open MeasureTheory Filter | |
| open scoped BigOperators Topology ContDiff | |
| namespace NeutralAtom | |
| def oneParticleGradientNorm (f : Position → ℝ) : ℝ := | |
| ∑ a : Fin 3, ∫ y : Position, (fderiv ℝ f y (EuclideanSpace.single a 1))^2 | |
| theorem gradientNormSquared_insert {n : ℕ} (f : Position → ℝ) | |
| (ψ : Wavefunction n) (g : Gradient n) : | |
| gradientNormSquared (insertGradient f ψ g) = | |
| (∫ y : Position, (f y)^2) * gradientNormSquared g + oneParticleGradientNorm f * normSquared ψ := by | |
| unfold gradientNormSquared | |
| rw [Fin.sum_univ_succ] | |
| change (∑ a : Fin 3, normSquared (insertWavefunction (fun y => fderiv ℝ f y (EuclideanSpace.single a 1)) ψ)) + | |
| (∑ i : Fin n, ∑ a : Fin 3, normSquared (insertWavefunction f (fun σ x => g σ i a x))) = _ | |
| simp only [normSquared_insert, oneParticleGradientNorm, Finset.sum_mul, Finset.mul_sum] | |
| ring | |
| theorem weighted_normSquared_insert {n : ℕ} (f : Position → ℝ) (ψ : Wavefunction n) | |
| (W : Configuration n → ℝ) : | |
| (∑ σ : Spins (n+1), ∫ x : Configuration (n+1), | |
| W (fun i => x i.succ)*‖insertWavefunction f ψ σ x‖^2) = | |
| (∫ y : Position, (f y)^2) * ∑ σ : Spins n, ∫ x : Configuration n, W x*‖ψ σ x‖^2 := by | |
| classical | |
| rw [← Equiv.sum_comp (Fin.consEquiv (fun _ : Fin (n+1) => Fin 2))] | |
| rw [Fintype.sum_prod_type, Fin.sum_univ_two] | |
| have h10 : (1 : Fin 2) ≠ 0 := by decide | |
| simp only [Fin.consEquiv, Equiv.coe_fn_mk, insertWavefunction, Fin.cons_zero, | |
| Fin.cons_succ, h10, ↓reduceIte] | |
| simp only [norm_zero, zero_pow (by decide : 2 ≠ 0), mul_zero, integral_zero, | |
| Finset.sum_const_zero, add_zero, integral_weighted_tensor, Finset.mul_sum] | |
| theorem potentialForm_insert_le {n : ℕ} (Z : ℕ) {ψ : Wavefunction n} {g : Gradient n} | |
| (h : FormRegular ψ g) {R d : ℝ} (hRd : R < d) | |
| (hψ : ∀ σ x, R < ‖x‖ → ψ σ x = 0) | |
| {f : Position → ℝ} (hfLp : MemLp f 2 volume) | |
| (hfout : ∀ y, ‖y‖ ≤ d → f y = 0) | |
| (hi : FormRegular (insertWavefunction f ψ) (insertGradient f ψ g)) : | |
| potentialForm Z (insertWavefunction f ψ) ≤ | |
| (∫ y : Position, (f y)^2) * potentialForm Z ψ + | |
| ((n : ℝ)*(d-R)⁻¹)*normSquared (insertWavefunction f ψ) := by | |
| let C : ℝ := (n : ℝ)*(d-R)⁻¹ | |
| have hold (σ : Spins (n+1)) : Integrable (fun x : Configuration (n+1) => | |
| coulombPotential Z (fun i => x i.succ)*‖insertWavefunction f ψ σ x‖^2) := by | |
| by_cases hσ : σ 0 = 0 | |
| · simpa only [insertWavefunction, hσ, ↓reduceIte] using | |
| integrable_weighted_tensor hfLp (h.integrable_potential Z (fun i => σ i.succ)) | |
| · simp [insertWavefunction, hσ] | |
| have hnew (σ : Spins (n+1)) := ((hi.2.1 σ).norm.integrable_sq).const_mul C | |
| have hb (σ : Spins (n+1)) (x : Configuration (n+1)) : | |
| coulombPotential Z x*‖insertWavefunction f ψ σ x‖^2 ≤ | |
| coulombPotential Z (fun i => x i.succ)*‖insertWavefunction f ψ σ x‖^2 + | |
| C*‖insertWavefunction f ψ σ x‖^2 := by | |
| by_cases hx : insertWavefunction f ψ σ x = 0 | |
| · simp [hx] | |
| · have he : x = Fin.cons (x 0) (fun i => x i.succ) := by ext i; cases i using Fin.cases <;> rfl | |
| have hsum : (∑ i : Fin n, ‖x 0-x i.succ‖⁻¹) ≤ C := by | |
| calc | |
| _ ≤ ∑ _i : Fin n, (d-R)⁻¹ := Finset.sum_le_sum fun i _ => | |
| (le_abs_self _).trans (inserted_pair_bound hRd hfout hψ σ x i hx) | |
| _ = C := by simp [C] | |
| have hpot : coulombPotential Z x ≤ coulombPotential Z (fun i => x i.succ) + C := by | |
| conv_lhs => rw [he, coulombPotential_cons] | |
| have hn : 0 ≤ (Z : ℝ)*‖x 0‖⁻¹ := by positivity | |
| linarith | |
| simpa only [add_mul] using mul_le_mul_of_nonneg_right hpot (sq_nonneg ‖insertWavefunction f ψ σ x‖) | |
| have hiσ (σ : Spins (n+1)) : | |
| (∫ x, coulombPotential Z x*‖insertWavefunction f ψ σ x‖^2) ≤ | |
| (∫ x, coulombPotential Z (fun i => x i.succ)*‖insertWavefunction f ψ σ x‖^2) + | |
| C*(∫ x, ‖insertWavefunction f ψ σ x‖^2) := by | |
| have hm := integral_mono (hi.integrable_potential Z σ) ((hold σ).add (hnew σ)) (hb σ) | |
| change _ ≤ ∫ x, coulombPotential Z (fun i => x i.succ)*‖insertWavefunction f ψ σ x‖^2 + | |
| C*‖insertWavefunction f ψ σ x‖^2 at hm | |
| rw [integral_add (hold σ) (hnew σ), integral_const_mul] at hm | |
| exact hm | |
| have hsum := Finset.sum_le_sum (s := Finset.univ) (fun σ _ => hiσ σ) | |
| simp only [Finset.sum_add_distrib, ← Finset.mul_sum] at hsum | |
| rw [weighted_normSquared_insert] at hsum | |
| exact hsum | |
| theorem energy_insert_le {n : ℕ} (Z : ℕ) {ψ : Wavefunction n} {g : Gradient n} | |
| (h : FormRegular ψ g) (hn : normSquared ψ = 1) {R d : ℝ} (hRd : R < d) | |
| (hψ : ∀ σ x, R < ‖x‖ → ψ σ x = 0) | |
| {f : Position → ℝ} (hfLp : MemLp f 2 volume) (hfn : (∫ y : Position, (f y)^2) = 1) | |
| (hfout : ∀ y, ‖y‖ ≤ d → f y = 0) | |
| (hi : FormRegular (insertWavefunction f ψ) (insertGradient f ψ g)) : | |
| energy Z (insertWavefunction f ψ) (insertGradient f ψ g) ≤ energy Z ψ g + | |
| (1/2 : ℝ)*oneParticleGradientNorm f + (n : ℝ)*(d-R)⁻¹ := by | |
| have hp := potentialForm_insert_le Z h hRd hψ hfLp hfout hi | |
| simp only [hfn, normSquared_insert, hn, one_mul, mul_one] at hp | |
| rw [energy_decompose, energy_decompose, gradientNormSquared_insert, hfn, hn, one_mul, mul_one] | |
| linarith | |
| def distantCenter : Position := (4 : ℝ) • EuclideanSpace.single 0 1 | |
| theorem distantCenter_norm : ‖distantCenter‖ = 4 := by | |
| simp [distantCenter, norm_smul, EuclideanSpace.single, PiLp.norm_single] | |
| theorem bindingBump_smooth : ContDiff ℝ ∞ (fun y : Position => bindingBump y) := bindingBump.contDiff | |
| def distantMass : ℝ := ∫ y : Position, (bindingBump y)^2 | |
| theorem distantMass_pos : 0 < distantMass := by | |
| have hc : Continuous (fun y : Position => (bindingBump y)^2) := | |
| bindingBump_smooth.continuous.pow 2 | |
| have hs : HasCompactSupport (fun y : Position => (bindingBump y)^2) := by | |
| apply HasCompactSupport.intro (isCompact_closedBall (0 : Position) 2) | |
| intro y hy | |
| have hh : 2 ≤ ‖y‖ := (lt_of_not_ge (by simpa [Metric.mem_closedBall, dist_zero_right] using hy)).le | |
| rw [bindingBump.zero_of_le_dist (by simpa [bindingBump] using hh)] | |
| norm_num | |
| apply integral_pos_of_integrable_nonneg_nonzero hc (hc.integrable_of_hasCompactSupport hs) | |
| (fun y => sq_nonneg _) (x := 0) | |
| rw [bindingBump.one_of_mem_closedBall (by simp [bindingBump])] | |
| norm_num | |
| def distantPacket (t : ℝ) (y : Position) : ℝ := | |
| (Real.sqrt (t^3 * distantMass))⁻¹ * bindingBump (t⁻¹ • y - distantCenter) | |
| theorem distantPacket_smooth (t : ℝ) : ContDiff ℝ ∞ (distantPacket t) := | |
| contDiff_const.mul (bindingBump.contDiff.comp | |
| (((contDiff_const (c := t⁻¹)).smul (contDiff_id (E := Position))).sub contDiff_const)) | |
| theorem distantPacket_compact {t : ℝ} (ht : 0 < t) : HasCompactSupport (distantPacket t) := by | |
| let u : ℝˣ := Units.mk0 t⁻¹ (inv_ne_zero ht.ne') | |
| have hc : HasCompactSupport (fun y : Position => bindingBump (t⁻¹ • y - distantCenter)) := | |
| (bindingBump.hasCompactSupport.comp_homeomorph (Homeomorph.subRight distantCenter)).comp_homeomorph | |
| (Homeomorph.smul u) | |
| exact hc.mul_left | |
| theorem distantPacket_memLp {t : ℝ} (ht : 0 < t) : MemLp (distantPacket t) 2 volume := | |
| (distantPacket_smooth t).continuous.memLp_of_hasCompactSupport (distantPacket_compact ht) | |
| theorem distantPacket_derivative_memLp {t : ℝ} (ht : 0 < t) (v : Position) : | |
| MemLp (fun y => fderiv ℝ (distantPacket t) y v) 2 volume := | |
| (((distantPacket_smooth t).continuous_fderiv (by simp)).clm_apply continuous_const).memLp_of_hasCompactSupport | |
| ((distantPacket_compact ht).fderiv_apply ℝ v) | |
| theorem integral_distant_comp {t : ℝ} (ht : 0 < t) (F : Position → ℝ) : | |
| (∫ y : Position, F (t⁻¹ • y - distantCenter)) = t^3 * ∫ y : Position, F y := by | |
| rw [show (fun y : Position => F (t⁻¹ • y-distantCenter)) = | |
| (fun y : Position => (fun z : Position => F (z-distantCenter)) (t⁻¹ • y)) from rfl] | |
| rw [Measure.integral_comp_smul_of_nonneg volume (fun z : Position => F (z-distantCenter)) t⁻¹ (hR := by positivity)] | |
| simp [integral_sub_right_eq_self, Position, inv_pow] | |
| theorem distantPacket_normalized {t : ℝ} (ht : 0 < t) : | |
| (∫ y : Position, (distantPacket t y)^2) = 1 := by | |
| simp only [distantPacket, mul_pow, integral_const_mul] | |
| rw [integral_distant_comp ht (fun y => (bindingBump y)^2)] | |
| rw [inv_pow, Real.sq_sqrt (mul_nonneg (pow_nonneg ht.le 3) distantMass_pos.le)] | |
| change (t^3*distantMass)⁻¹*(t^3*distantMass) = 1 | |
| exact inv_mul_cancel₀ (mul_ne_zero (pow_ne_zero _ ht.ne') distantMass_pos.ne') | |
| theorem distantPacket_zero {t : ℝ} (ht : 0 < t) {y : Position} (hy : ‖y‖ ≤ 2*t) : | |
| distantPacket t y = 0 := by | |
| have hnorm : ‖t⁻¹ • y‖ ≤ 2 := by | |
| rw [norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr ht)] | |
| exact (inv_mul_le_iff₀ ht).mpr (by nlinarith) | |
| have hdist : 2 ≤ ‖t⁻¹ • y - distantCenter‖ := by | |
| have h := norm_sub_norm_le distantCenter (t⁻¹ • y) | |
| rw [distantCenter_norm, norm_sub_rev] at h | |
| linarith | |
| have := bindingBump.zero_of_le_dist (by simpa [bindingBump] using hdist) | |
| simp [distantPacket, this] | |
| theorem distantPacket_derivative_zero {t : ℝ} (ht : 0 < t) {y : Position} | |
| (hy : ‖y‖ ≤ t) (v : Position) : fderiv ℝ (distantPacket t) y v = 0 := by | |
| have he : distantPacket t =ᶠ[𝓝 y] (fun _ => 0) := by | |
| have hn : ‖y‖ < 2*t := by linarith | |
| filter_upwards [(isOpen_lt continuous_norm continuous_const).mem_nhds hn] with z hz | |
| exact distantPacket_zero ht hz.le | |
| rw [he.fderiv_eq] | |
| simp | |
| theorem distantPacket_fderiv {t : ℝ} (y v : Position) : | |
| fderiv ℝ (distantPacket t) y v = | |
| (Real.sqrt (t^3*distantMass))⁻¹ * t⁻¹ * | |
| fderiv ℝ (fun z : Position => bindingBump z) (t⁻¹ • y-distantCenter) v := by | |
| have hb := (bindingBump_smooth.differentiable (by simp) (t⁻¹ • y-distantCenter)).hasFDerivAt | |
| have hc := ((hasFDerivAt_id (𝕜 := ℝ) y).const_smul t⁻¹).sub_const distantCenter | |
| have hh := ((hb.comp y hc).const_mul (Real.sqrt (t^3*distantMass))⁻¹).fderiv | |
| change fderiv ℝ (fun y : Position => (Real.sqrt (t^3*distantMass))⁻¹ * | |
| bindingBump (t⁻¹ • y-distantCenter)) y v = _ | |
| change fderiv ℝ (fun y : Position => (Real.sqrt (t^3*distantMass))⁻¹ * | |
| (bindingBump ∘ fun x : Position => (t⁻¹ • id) x - distantCenter) y) y v = _ | |
| rw [hh] | |
| simp [mul_assoc] | |
| theorem distantPacket_gradientNorm {t : ℝ} (ht : 0 < t) : | |
| oneParticleGradientNorm (distantPacket t) = | |
| t⁻¹^2 * (distantMass⁻¹ * oneParticleGradientNorm bindingBump) := by | |
| unfold oneParticleGradientNorm | |
| simp_rw [distantPacket_fderiv, mul_pow, integral_const_mul] | |
| have hi (a : Fin 3) := integral_distant_comp ht | |
| (fun y => (fderiv ℝ (fun z : Position => bindingBump z) y (EuclideanSpace.single a 1))^2) | |
| simp_rw [hi] | |
| rw [← Finset.mul_sum, ← Finset.mul_sum] | |
| rw [inv_pow, Real.sq_sqrt (mul_nonneg (pow_nonneg ht.le 3) distantMass_pos.le)] | |
| field_simp | |
| theorem distantInsertion_error_tendsto (n : ℕ) (R : ℝ) : | |
| Tendsto (fun t : ℝ => (1/2 : ℝ) * (t⁻¹^2 * | |
| (distantMass⁻¹ * oneParticleGradientNorm bindingBump)) + (n : ℝ)*(t-R)⁻¹) | |
| atTop (𝓝 0) := by | |
| have hi : Tendsto (fun t : ℝ => (t-R)⁻¹) atTop (𝓝 0) := by | |
| exact tendsto_inv_atTop_zero.comp | |
| (by simpa only [sub_eq_add_neg, id_eq] using tendsto_atTop_add_const_right atTop (-R) tendsto_id) | |
| have hh := ((tendsto_inv_atTop_zero.pow 2).mul_const | |
| (distantMass⁻¹ * oneParticleGradientNorm bindingBump)).const_mul (1/2 : ℝ) | |
| simpa using hh.add (hi.const_mul (n : ℝ)) | |
| theorem FormDomain.exists_inserted_trial {n : ℕ} (Z : ℕ) | |
| {ψ : Wavefunction n} {g : Gradient n} (hd : FormDomain ψ g) | |
| (hn : normSquared ψ = 1) {R : ℝ} | |
| (hψ : ∀ σ x, R < ‖x‖ → ψ σ x = 0) | |
| (hg : ∀ σ i a x, R < ‖x‖ → g σ i a x = 0) | |
| {ε : ℝ} (hε : 0 < ε) : | |
| ∃ (χ : Wavefunction (n+1)) (h : Gradient (n+1)), | |
| FormDomain χ h ∧ normSquared χ = 1 ∧ energy Z χ h < energy Z ψ g + ε := by | |
| have he : ∀ᶠ t : ℝ in atTop, (1/2 : ℝ) * | |
| (t⁻¹^2 * (distantMass⁻¹ * oneParticleGradientNorm bindingBump)) + (n : ℝ)*(t-R)⁻¹ < ε := | |
| (distantInsertion_error_tendsto n R).eventually (Iio_mem_nhds hε) | |
| obtain ⟨t, ht, htR, hterr⟩ := ((eventually_gt_atTop (0 : ℝ)).and | |
| ((eventually_gt_atTop R).and he)).exists | |
| let f := distantPacket t | |
| have hfLp : MemLp f 2 volume := distantPacket_memLp ht | |
| have hfn : (∫ y : Position, (f y)^2) = 1 := distantPacket_normalized ht | |
| have hfout : ∀ y, ‖y‖ ≤ t → f y = 0 := | |
| fun y hy => distantPacket_zero ht (by linarith) | |
| have hi : FormRegular (insertWavefunction f ψ) (insertGradient f ψ g) := | |
| FormRegular.insert_separated hd.2 ht htR hψ (distantPacket_smooth t) hfLp | |
| (fun a => distantPacket_derivative_memLp ht _) hfout | |
| have hfs : ∀ y, ‖y‖ ≤ R → f y = 0 := fun y hy => hfout y (hy.trans htR.le) | |
| have hs := insertionSupport_tensor hfs hψ | |
| have hgs : ∀ i a, InsertionSupport R (fun σ x => insertGradient f ψ g σ i a x) := | |
| insertionSupport_gradient hfs | |
| (fun a y hy => distantPacket_derivative_zero ht (hy.trans htR.le) _) hψ hg | |
| let c : ℝ := (Real.sqrt (n+1 : ℝ))⁻¹ | |
| have hc : c^2 * (n+1 : ℝ) = 1 := by | |
| dsimp [c] | |
| rw [inv_pow, Real.sq_sqrt (by positivity), inv_mul_cancel₀ (by positivity)] | |
| refine ⟨scaleWavefunction c (wedgeInsert f ψ), scaleGradient c (wedgeInsertGradient f ψ g), | |
| (hi.wedgeInsert hd.1).scale c, ?_, ?_⟩ | |
| · rw [normSquared_scale, normSquared_wedgeInsert hd.2.2.1 hfLp hs, | |
| normSquared_insert, hfn, hn] | |
| simpa only [one_mul, mul_one] using hc | |
| · rw [energy_scale, energy_wedgeInsert Z hi hs hgs, ← mul_assoc, hc, one_mul] | |
| have hh := energy_insert_le Z hd.2 hn htR hψ hfLp hfn hfout hi | |
| rw [distantPacket_gradientNorm ht] at hh | |
| linarith | |
| theorem FormDomain.exists_successor_trial {n : ℕ} (Z : ℕ) | |
| {ψ : Wavefunction n} {g : Gradient n} (hd : FormDomain ψ g) | |
| (hn : normSquared ψ = 1) {ε : ℝ} (hε : 0 < ε) : | |
| ∃ (χ : Wavefunction (n+1)) (h : Gradient (n+1)), | |
| FormDomain χ h ∧ normSquared χ = 1 ∧ energy Z χ h < energy Z ψ g + ε := by | |
| obtain ⟨R, χ, h, _, hχ, hχn, hχe, hχs, hhs⟩ := hd.exists_compact_approximation Z hn | |
| (half_pos hε) | |
| obtain ⟨χ', h', hχ', hχ'n, hχ'e⟩ := hχ.exists_inserted_trial Z hχn hχs hhs (half_pos hε) | |
| exact ⟨χ', h', hχ', hχ'n, by linarith⟩ | |
| def sectorEnergy (Z n : ℕ) : EReal := | |
| sInf {e : EReal | ∃ (ψ : Wavefunction n) (g : Gradient n), | |
| FormDomain ψ g ∧ normSquared ψ = 1 ∧ e = (energy Z ψ g : EReal)} | |
| def unrestrictedEnergy (Z : ℕ) : EReal := ⨅ n : ℕ, sectorEnergy Z n | |
| theorem unrestrictedEnergy_le_sector (Z n : ℕ) : | |
| unrestrictedEnergy Z ≤ sectorEnergy Z n := iInf_le _ n | |
| theorem sectorEnergy_le_trial {Z n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (hψ : FormDomain ψ g) (hn : normSquared ψ = 1) : | |
| sectorEnergy Z n ≤ (energy Z ψ g : EReal) := sInf_le ⟨ψ, g, hψ, hn, rfl⟩ | |
| theorem sectorEnergy_succ_le (Z n : ℕ) : sectorEnergy Z (n+1) ≤ sectorEnergy Z n := by | |
| apply le_sInf | |
| rintro e ⟨ψ, g, hd, hn, rfl⟩ | |
| by_contra hh | |
| obtain ⟨r, hEr, hrE⟩ := EReal.lt_iff_exists_real_btwn.mp (lt_of_not_ge hh) | |
| have hε : 0 < r-energy Z ψ g := sub_pos.mpr (EReal.coe_lt_coe_iff.mp hEr) | |
| obtain ⟨χ, h, hχ, hχn, hχe⟩ := hd.exists_successor_trial Z hn hε | |
| have hlt : energy Z χ h < r := by linarith | |
| have hle := sectorEnergy_le_trial (Z := Z) hχ hχn | |
| exact (not_lt_of_ge hle) ((EReal.coe_lt_coe_iff.mpr hlt).trans hrE) | |
| theorem sectorEnergy_antitone (Z : ℕ) : Antitone (sectorEnergy Z) := | |
| antitone_nat_of_succ_le (sectorEnergy_succ_le Z) | |
| theorem groundState_energy_eq_sector {Z : ℕ} {ψ : Wavefunction Z} | |
| (hψ : IsNormalizedGroundState Z ψ) : | |
| ∃ g : Gradient Z, FormDomain ψ g ∧ normSquared ψ = 1 ∧ | |
| sectorEnergy Z Z = (energy Z ψ g : EReal) := by | |
| obtain ⟨g, hg, hn, hmin⟩ := hψ | |
| refine ⟨g, hg, hn, le_antisymm (sectorEnergy_le_trial hg hn) ?_⟩ | |
| apply le_sInf | |
| rintro e ⟨χ, h, hχ, hχn, rfl⟩ | |
| exact EReal.coe_le_coe_iff.mpr (hmin χ h hχ hχn) | |
| def vacuumWavefunction : Wavefunction 0 := fun _ _ => 1 | |
| def vacuumGradient : Gradient 0 := fun _ i => Fin.elim0 i | |
| theorem vacuum_volume_univ : (volume : Measure (Configuration 0)) Set.univ = 1 := by | |
| rw [volume_pi, Measure.pi_univ] | |
| simp | |
| theorem vacuum_formDomain : FormDomain vacuumWavefunction vacuumGradient := by | |
| let : IsProbabilityMeasure (volume : Measure (Configuration 0)) := ⟨vacuum_volume_univ⟩ | |
| refine ⟨?_, ?_, ?_, ?_, ?_, ?_⟩ | |
| · intro p σ | |
| have hp : p = 1 := Subsingleton.elim _ _ | |
| simp [vacuumWavefunction, hp] | |
| · intro σ i | |
| exact Fin.elim0 i | |
| · intro σ | |
| exact memLp_const _ | |
| · intro σ i | |
| exact Fin.elim0 i | |
| · intro σ i | |
| exact Fin.elim0 i | |
| · intro σ i | |
| exact Fin.elim0 i | |
| theorem vacuum_normalized : normSquared vacuumWavefunction = 1 := by | |
| let : IsProbabilityMeasure (volume : Measure (Configuration 0)) := ⟨vacuum_volume_univ⟩ | |
| simp [normSquared, vacuumWavefunction, Spins] | |
| theorem energy_vacuum_sector (Z : ℕ) (ψ : Wavefunction 0) (g : Gradient 0) : energy Z ψ g = 0 := by | |
| simp [energy, coulombPotential] | |
| theorem sectorEnergy_vacuum (Z : ℕ) : sectorEnergy Z 0 = 0 := by | |
| apply le_antisymm | |
| · simpa [energy_vacuum_sector] using | |
| sectorEnergy_le_trial (Z := Z) vacuum_formDomain vacuum_normalized | |
| · apply le_sInf | |
| rintro e ⟨ψ, g, _, _, rfl⟩ | |
| simp [energy_vacuum_sector] | |
| theorem sectorEnergy_nonpos (Z n : ℕ) : sectorEnergy Z n ≤ 0 := by | |
| simpa [sectorEnergy_vacuum] using sectorEnergy_antitone Z (Nat.zero_le n) | |
| theorem sectorEnergy_finite_of_neutral_groundState {Z : ℕ} {ψ : Wavefunction Z} | |
| (hψ : IsNormalizedGroundState Z ψ) {n : ℕ} (hn : n ≤ Z) : | |
| ∃ e : ℝ, sectorEnergy Z n = (e : EReal) := by | |
| obtain ⟨g, _, _, hg⟩ := groundState_energy_eq_sector hψ | |
| have htop : sectorEnergy Z n ≠ ⊤ := | |
| (lt_of_le_of_lt (sectorEnergy_nonpos Z n) (by simp)).ne | |
| have hbot : sectorEnergy Z n ≠ ⊥ := by | |
| apply (lt_of_lt_of_le (EReal.bot_lt_coe (energy Z ψ g)) ?_).ne' | |
| rw [← hg] | |
| exact sectorEnergy_antitone Z hn | |
| exact ⟨(sectorEnergy Z n).toReal, (EReal.coe_toReal htop hbot).symm⟩ | |
| def UniformPredecessorOffset : Prop := | |
| ∃ (D : ℝ) (Z₀ : ℕ), 0 ≤ D ∧ ∀ Z : ℕ, Z₀ ≤ Z → 1 ≤ Z → | |
| sectorEnergy Z (Z-1) ≤ unrestrictedEnergy Z+(D : EReal) | |
| theorem first_ionization_le_of_predecessor_offset {Z : ℕ} {D Eprev Eneutral : ℝ} | |
| (hoff : sectorEnergy Z (Z-1) ≤ unrestrictedEnergy Z+(D : EReal)) | |
| (hp : sectorEnergy Z (Z-1) = (Eprev : EReal)) | |
| (hn : sectorEnergy Z Z = (Eneutral : EReal)) : Eprev-Eneutral ≤ D := by | |
| have hh : (Eprev : EReal) ≤ (Eneutral : EReal)+(D : EReal) := by | |
| calc | |
| (Eprev : EReal) = sectorEnergy Z (Z-1) := hp.symm | |
| _ ≤ unrestrictedEnergy Z+(D : EReal) := hoff | |
| _ ≤ sectorEnergy Z Z+(D : EReal) := | |
| by simpa only [add_comm] using | |
| (add_le_add_right (unrestrictedEnergy_le_sector Z Z) (D : EReal)) | |
| _ = _ := by rw [hn] | |
| rw [← EReal.coe_add, EReal.coe_le_coe_iff] at hh | |
| linarith | |
| def firstIonization (Z : ℕ) : ℝ := | |
| (sectorEnergy Z (Z-1)).toReal - (sectorEnergy Z Z).toReal | |
| theorem bounded_firstIonization_of_uniformPredecessorOffset | |
| (hoff : UniformPredecessorOffset) | |
| (ψ : ∀ Z : ℕ, Wavefunction Z) | |
| (hψ : ∀ Z : ℕ, 1 ≤ Z → IsNormalizedGroundState Z (ψ Z)) : | |
| ∃ (D : ℝ) (Z₀ : ℕ), 0 ≤ D ∧ ∀ Z : ℕ, Z₀ ≤ Z → 1 ≤ Z → | |
| 0 ≤ firstIonization Z ∧ firstIonization Z ≤ D := by | |
| obtain ⟨D, Z₀, hD, hbound⟩ := hoff | |
| refine ⟨D, Z₀, hD, ?_⟩ | |
| intro Z hZ hZpos | |
| obtain ⟨Ep, hp⟩ := sectorEnergy_finite_of_neutral_groundState (hψ Z hZpos) (Nat.sub_le Z 1) | |
| obtain ⟨En, hn⟩ := sectorEnergy_finite_of_neutral_groundState (hψ Z hZpos) (le_refl Z) | |
| have hmono : En ≤ Ep := by | |
| apply EReal.coe_le_coe_iff.mp | |
| rw [← hp, ← hn] | |
| exact sectorEnergy_antitone Z (Nat.sub_le Z 1) | |
| have hb := first_ionization_le_of_predecessor_offset (hbound Z hZ hZpos) hp hn | |
| simp only [firstIonization, hp, hn, EReal.toReal_coe] | |
| exact ⟨sub_nonneg.mpr hmono, hb⟩ | |
| end NeutralAtom | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 20.6 kB
- Xet hash:
- 87a1d6dd250cffeb0f8180f346917babe75caff0800af8f137594f5a57e5458b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.