cfahlgren1/math / lean /OAI /Analysis /CoulombRadii /RandomFields /EventTiltWavefunction.lean
cfahlgren1's picture
download
raw
8.53 kB
import Mathlib
import OAI.Analysis.CoulombRadii.RandomFields.ObservationWidthSquareSum
namespace OAI
section
section
open MeasureTheory Filter
open scoped BigOperators Topology ContDiff Classical
noncomputable section
namespace NeutralAtom
open scoped ENNReal Convolution
open scoped BigOperators
open scoped Convolution
theorem energy_eventRoot_identity {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)
{F : Configuration n → ℝ} {K : ℝ}
(hK : 0 ≤ K) (hF : ContDiff ℝ ∞ F) (hF0 : ∀ x, 0 ≤ F x) (hF1 : ∀ x, F x ≤ 1)
(hsym : ∀ (p : Equiv.Perm (Fin n)) x, F (x ∘ p) = F x)
(hgrad : ∀ x, (∑ i, ∑ a, (fderiv ℝ F x (coordinateDirection i a))^2) ≤
K * (F x)^2 * (1-Real.log (F x))^5) :
energy Z (multiplyWavefunction (fun x => Real.sqrt (F x)) ψ)
(explicitMultiplyGradient (fun x => Real.sqrt (F x)) (eventRootDerivative F) ψ g) =
energy Z ψ g * stateWeightedIntegral ψ F + explicitLocalizationError ψ (eventRootDerivative F) := by
have hsq : SmoothMultiplier (fun x => (Real.sqrt (F x))^2) := by
simpa only [Real.sq_sqrt (hF0 _)] using likelihood_smoothMultiplier hK hF hF0 hF1 hsym hgrad
rw [energy_localization_explicit Z hd hsq
(fun i a => (eventRootDerivative_measurable hF i a).aestronglyMeasurable)
(fun i a => ⟨_, eventRootDerivative_bound hK hF0 hF1 hgrad i a⟩)
(eventRoot_square_derivative hF0 hgrad), minimizer_multiplier_pairing Z hd hn hmin hsq]
simp only [Real.sq_sqrt (hF0 _)]
def eventTiltWavefunction {n : ℕ} (ψ : Wavefunction n) (F : Configuration n → ℝ) :
Wavefunction n :=
scaleWavefunction (Real.sqrt (stateWeightedIntegral ψ F))⁻¹
(multiplyWavefunction (fun x => Real.sqrt (F x)) ψ)
def eventTiltGradient {n : ℕ} (ψ : Wavefunction n) (g : Gradient n)
(F : Configuration n → ℝ) : Gradient n :=
scaleGradient (Real.sqrt (stateWeightedIntegral ψ F))⁻¹
(explicitMultiplyGradient (fun x => Real.sqrt (F x)) (eventRootDerivative F) ψ g)
theorem normSquared_eventRoot {n : ℕ} (ψ : Wavefunction n) {F : Configuration n → ℝ}
(hF0 : ∀ x, 0 ≤ F x) :
normSquared (multiplyWavefunction (fun x => Real.sqrt (F x)) ψ) =
stateWeightedIntegral ψ F := by
simp only [normSquared, norm_multiplyWavefunction_sq, Real.sq_sqrt (hF0 _), stateWeightedIntegral]
theorem eventTiltWavefunction_normalized {n : ℕ} (ψ : Wavefunction n) {F : Configuration n → ℝ}
(hF0 : ∀ x, 0 ≤ F x) (hp : 0 < stateWeightedIntegral ψ F) :
normSquared (eventTiltWavefunction ψ F) = 1 := by
rw [eventTiltWavefunction, normSquared_scale, inv_pow, Real.sq_sqrt hp.le,
normSquared_eventRoot ψ hF0, inv_mul_cancel₀ hp.ne']
theorem eventTiltWavefunction_raw_density {n : ℕ} (ψ : Wavefunction n) {F : Configuration n → ℝ}
(hF0 : ∀ x, 0 ≤ F x) (hp : 0 < stateWeightedIntegral ψ F)
(σ : Spins n) (x : Configuration n) :
‖eventTiltWavefunction ψ F σ x‖^2 =
F x / stateWeightedIntegral ψ F * ‖ψ σ x‖^2 := by
simp only [eventTiltWavefunction, scaleWavefunction, multiplyWavefunction,
norm_smul, Real.norm_eq_abs, mul_pow, sq_abs, inv_pow, Real.sq_sqrt hp.le,
Real.sq_sqrt (hF0 x)]
ring
theorem groundState_eventTilt {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)
{F : Configuration n → ℝ} {K : ℝ}
(hK : 0 ≤ K) (hF : ContDiff ℝ ∞ F) (hF0 : ∀ x, 0 ≤ F x) (hF1 : ∀ x, F x ≤ 1)
(hsym : ∀ (p : Equiv.Perm (Fin n)) x, F (x ∘ p) = F x)
(hgrad : ∀ x, (∑ i, ∑ a, (fderiv ℝ F x (coordinateDirection i a))^2) ≤
K * (F x)^2 * (1-Real.log (F x))^5)
(hp : 0 < stateWeightedIntegral ψ F) :
FormDomain (eventTiltWavefunction ψ F) (eventTiltGradient ψ g F) ∧
normSquared (eventTiltWavefunction ψ F) = 1 ∧
energy Z (eventTiltWavefunction ψ F) (eventTiltGradient ψ g F) ≤
energy Z ψ g + K/8*(1+120*Real.exp 1)*(1-Real.log (stateWeightedIntegral ψ F))^5 := by
refine ⟨(hd.eventRoot hK hF hF0 hF1 hsym hgrad).scale _,
eventTiltWavefunction_normalized ψ hF0 hp, ?_⟩
unfold eventTiltWavefunction eventTiltGradient
rw [energy_scale, inv_pow, Real.sq_sqrt hp.le,
energy_eventRoot_identity Z hd hn hmin hK hF hF0 hF1 hsym hgrad]
calc
_ ≤ (stateWeightedIntegral ψ F)⁻¹ *
(energy Z ψ g * stateWeightedIntegral ψ F +
K/8*(1+120*Real.exp 1)*stateWeightedIntegral ψ F*
(1-Real.log (stateWeightedIntegral ψ F))^5) :=
mul_le_mul_of_nonneg_left (add_le_add le_rfl
(explicitLocalizationError_eventRoot_le hd hn hK hF hF0 hF1 hgrad hp))
(inv_nonneg.mpr hp.le)
_ = _ := by field_simp
def observationEventEnergyConstant : ℝ :=
observationScoreConstant/8*(1+120*Real.exp 1)
theorem observationEventEnergyConstant_pos : 0 < observationEventEnergyConstant := by
unfold observationEventEnergyConstant
have := observationScoreConstant_pos
positivity
theorem groundState_arrayEventTilt {H : Type*} [Fintype H] {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)
(ℓ : H → ℝ) (hℓ : ∀ h, 0 < ℓ h)
{s : Set ((H × (Fin n × Fin 3)) → ℝ)} (hs : MeasurableSet s)
(hsym : ∀ (p : Equiv.Perm (Fin n)) y, permuteObservationArray p y ∈ s ↔ y ∈ s)
(hp : 0 < stateWeightedIntegral ψ (arrayEventLikelihood ℓ s)) :
FormDomain (eventTiltWavefunction ψ (arrayEventLikelihood ℓ s))
(eventTiltGradient ψ g (arrayEventLikelihood ℓ s)) ∧
normSquared (eventTiltWavefunction ψ (arrayEventLikelihood ℓ s)) = 1 ∧
energy Z (eventTiltWavefunction ψ (arrayEventLikelihood ℓ s))
(eventTiltGradient ψ g (arrayEventLikelihood ℓ s)) ≤
energy Z ψ g + observationEventEnergyConstant * observationWidthSquareSum ℓ *
(1-Real.log (stateWeightedIntegral ψ (arrayEventLikelihood ℓ s)))^5 := by
have hh := groundState_eventTilt Z hd hn hmin
(mul_nonneg observationScoreConstant_pos.le (observationWidthSquareSum_nonneg ℓ))
(arrayEventLikelihood_contDiff ℓ hs) (arrayEventLikelihood_nonneg ℓ hs)
(arrayEventLikelihood_le_one ℓ hs)
(arrayEventLikelihood_symmetric ℓ (fun h => (hℓ h).ne') hsym)
(arrayEventLikelihood_gradient_bound ℓ hs) hp
refine ⟨hh.1, hh.2.1, ?_⟩
convert hh.2.2 using 1
unfold observationEventEnergyConstant
ring
theorem groundState_arrayEventTilt_singleScale {H : Type*} [Fintype H] {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)
(ℓ : H → ℝ) (hℓ : ∀ h, 0 < ℓ h)
{s : Set ((H × (Fin n × Fin 3)) → ℝ)} (hs : MeasurableSet s)
(hsym : ∀ (p : Equiv.Perm (Fin n)) y, permuteObservationArray p y ∈ s ↔ y ∈ s)
(hp : 0 < stateWeightedIntegral ψ (arrayEventLikelihood ℓ s))
{r Cℓ : ℝ} (hwidth : observationWidthSquareSum ℓ ≤ Cℓ*r⁻¹^2) :
energy Z (eventTiltWavefunction ψ (arrayEventLikelihood ℓ s))
(eventTiltGradient ψ g (arrayEventLikelihood ℓ s)) ≤
energy Z ψ g + observationEventEnergyConstant * Cℓ * r⁻¹^2 *
(1-Real.log (stateWeightedIntegral ψ (arrayEventLikelihood ℓ s)))^5 := by
apply (groundState_arrayEventTilt Z hd hn hmin ℓ hℓ hs hsym hp).2.2.trans
apply add_le_add le_rfl
have hp1 := stateWeightedIntegral_le_one hd hn (arrayEventLikelihood_contDiff ℓ hs).continuous.measurable
(arrayEventLikelihood_nonneg ℓ hs) (arrayEventLikelihood_le_one ℓ hs)
have hlog := Real.log_nonpos hp.le hp1
have hh := mul_le_mul_of_nonneg_right
(mul_le_mul_of_nonneg_left hwidth observationEventEnergyConstant_pos.le)
(pow_nonneg (by linarith : 0 ≤ 1-Real.log (stateWeightedIntegral ψ (arrayEventLikelihood ℓ s))) 5)
nlinarith only [hh]
end NeutralAtom
end
end
end
end OAI

Xet Storage Details

Size:
8.53 kB
·
Xet hash:
dd8de1d1ab09d277ac9b6eb214f436de59cd92902b5bea6b376ce808a5a4a212

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.