Buckets:
| import Mathlib | |
| import OAI.Analysis.CoulombRadii.SpectralTheory.BindingBump | |
| namespace OAI | |
| section | |
| noncomputable section | |
| open MeasureTheory Filter | |
| open scoped BigOperators Topology ContDiff | |
| namespace NeutralAtom | |
| def configurationSplit (n : ℕ) : Configuration (n+1) ≃L[ℝ] Position × Configuration n := | |
| (Fin.consEquivL ℝ (fun _ : Fin (n+1) => Position)).symm | |
| @[simp] theorem configurationSplit_apply (n : ℕ) (x : Configuration (n+1)) : | |
| configurationSplit n x = (x 0, fun i => x i.succ) := rfl | |
| theorem configurationSplit_preserving (n : ℕ) : MeasurePreserving (configurationSplit n) := by | |
| have h := volume_preserving_piFinSuccAbove (fun _ : Fin (n+1) => Position) 0 | |
| convert h using 1 | |
| funext x | |
| change (x 0, fun i => x i.succ) = (x 0, fun i => x (Fin.succAbove 0 i)) | |
| simp only [Fin.succAbove_zero] | |
| def configurationPerm {n : ℕ} (p : Equiv.Perm (Fin n)) : Configuration n ≃L[ℝ] Configuration n := | |
| (ContinuousLinearEquiv.piCongrLeft ℝ (fun _ : Fin n => Position) p).symm | |
| @[simp] theorem configurationPerm_apply {n : ℕ} (p : Equiv.Perm (Fin n)) (x : Configuration n) : | |
| configurationPerm p x = x ∘ p := rfl | |
| theorem configurationPerm_preserving {n : ℕ} (p : Equiv.Perm (Fin n)) : | |
| MeasurePreserving (configurationPerm p) := | |
| (volume_measurePreserving_piCongrLeft (fun _ : Fin n => Position) p).symm | |
| (MeasurableEquiv.piCongrLeft (fun _ : Fin n => Position) p) | |
| @[simp] theorem configurationPerm_direction {n : ℕ} (p : Equiv.Perm (Fin n)) | |
| (i : Fin n) (a : Fin 3) : | |
| configurationPerm p (coordinateDirection i a) = coordinateDirection (p.symm i) a := by | |
| ext j b | |
| by_cases hj : j = p.symm i | |
| · subst j; simp [coordinateDirection] | |
| · have hp : p j ≠ i := fun h => hj (p.injective (by simpa using h)) | |
| simp [coordinateDirection, hj, hp] | |
| theorem configurationPerm_symm_direction {n : ℕ} (p : Equiv.Perm (Fin n)) | |
| (i : Fin n) (a : Fin 3) : | |
| (configurationPerm p).symm (coordinateDirection (p.symm i) a) = coordinateDirection i a := by | |
| rw [← configurationPerm_direction, ContinuousLinearEquiv.symm_apply_apply] | |
| def permuteWavefunction {n : ℕ} (p : Equiv.Perm (Fin n)) (ψ : Wavefunction n) : Wavefunction n := | |
| fun σ x => ψ (σ ∘ p) (x ∘ p) | |
| def permuteGradient {n : ℕ} (p : Equiv.Perm (Fin n)) (g : Gradient n) : Gradient n := | |
| fun σ i a x => g (σ ∘ p) (p.symm i) a (x ∘ p) | |
| theorem HasWeakGradient.permute {n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (hg : HasWeakGradient ψ g) (p : Equiv.Perm (Fin n)) : | |
| HasWeakGradient (permuteWavefunction p ψ) (permuteGradient p g) := by | |
| intro σ i a φ hφ hφc | |
| have hd : WeakDirectionalDerivative (ψ (σ ∘ p)) (g (σ ∘ p) (p.symm i) a) | |
| (coordinateDirection (p.symm i) a) := by | |
| intro η hη hηc | |
| simpa only [Complex.real_smul, Complex.ofReal_mul] using hg (σ ∘ p) (p.symm i) a η hη hηc | |
| have ht := hd.comp_equiv (configurationPerm p) (configurationPerm_preserving p) | |
| rw [configurationPerm_symm_direction] at ht | |
| simpa only [permuteWavefunction, permuteGradient, Function.comp_apply, | |
| configurationPerm_apply, Complex.real_smul, Complex.ofReal_mul] using ht φ hφ hφc | |
| theorem half_ordered_sum {n : ℕ} (F : Fin n → Fin n → ℝ) | |
| (hF : ∀ i j, F i j = F j i) (hdiag : ∀ i, F i i = 0) : | |
| (∑ i : Fin n, ∑ j ∈ Finset.univ.filter (fun j => i < j), F i j) = | |
| (1/2:ℝ) * ∑ i : Fin n, ∑ j : Fin n, F i j := by | |
| classical | |
| have he : ∀ i j, F i j = (if i < j then F i j else 0) + (if j < i then F j i else 0) := by | |
| intro i j | |
| rcases lt_trichotomy i j with hij | rfl | hji | |
| · simp [hij, not_lt.mpr hij.le] | |
| · simp [hdiag] | |
| · simp [hji, not_lt.mpr hji.le, hF] | |
| have hs : (∑ i : Fin n, ∑ j : Fin n, F i j) = | |
| 2 * (∑ i : Fin n, ∑ j : Fin n, if i < j then F i j else 0) := by | |
| conv_lhs => arg 2; ext i; arg 2; ext j; rw [he i j] | |
| simp_rw [Finset.sum_add_distrib] | |
| rw [Finset.sum_comm (f := fun i j => if j < i then F j i else 0)] | |
| ring | |
| simp only [Finset.sum_filter] | |
| rw [hs] | |
| ring | |
| theorem coulombPotential_permute {n : ℕ} (Z : ℕ) (p : Equiv.Perm (Fin n)) | |
| (x : Configuration n) : coulombPotential Z (x ∘ p) = coulombPotential Z x := by | |
| have hn : (∑ i : Fin n, ‖x (p i)‖⁻¹) = ∑ i : Fin n, ‖x i‖⁻¹ := | |
| Equiv.sum_comp p (fun i => ‖x i‖⁻¹) | |
| have hs (y : Configuration n) : | |
| (∑ i : Fin n, ∑ j ∈ Finset.univ.filter (fun j => i < j), ‖y i-y j‖⁻¹) = | |
| (1/2:ℝ) * ∑ i : Fin n, ∑ j : Fin n, ‖y i-y j‖⁻¹ := | |
| half_ordered_sum _ (fun i j => by rw [norm_sub_rev]) (fun i => by simp) | |
| have hp : (∑ i : Fin n, ∑ j : Fin n, ‖x (p i)-x (p j)‖⁻¹) = | |
| ∑ i : Fin n, ∑ j : Fin n, ‖x i-x j‖⁻¹ := by | |
| calc | |
| _ = ∑ i : Fin n, ∑ j : Fin n, ‖x (p i)-x j‖⁻¹ := by | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| exact Equiv.sum_comp p (fun j => ‖x (p i)-x j‖⁻¹) | |
| _ = _ := Equiv.sum_comp p (fun i => ∑ j : Fin n, ‖x i-x j‖⁻¹) | |
| simp only [coulombPotential, hs, Function.comp_apply, hn, hp] | |
| @[simp] theorem configurationSplit_direction_zero {n : ℕ} (a : Fin 3) : | |
| configurationSplit n (coordinateDirection 0 a) = (EuclideanSpace.single a 1, 0) := by | |
| ext j <;> simp [coordinateDirection] | |
| @[simp] theorem configurationSplit_direction_succ {n : ℕ} (i : Fin n) (a : Fin 3) : | |
| configurationSplit n (coordinateDirection i.succ a) = (0, coordinateDirection i a) := by | |
| ext j <;> simp [coordinateDirection, Pi.single_apply] | |
| def insertWavefunction {n : ℕ} (f : Position → ℝ) (ψ : Wavefunction n) : Wavefunction (n+1) := | |
| fun σ x => if σ 0 = 0 then f (x 0) • ψ (fun i => σ i.succ) (fun i => x i.succ) else 0 | |
| def insertGradient {n : ℕ} (f : Position → ℝ) (ψ : Wavefunction n) (g : Gradient n) : | |
| Gradient (n+1) := | |
| fun σ i a x => if σ 0 = 0 then | |
| Fin.cases (fderiv ℝ f (x 0) (EuclideanSpace.single a 1) • | |
| ψ (fun j => σ j.succ) (fun j => x j.succ)) | |
| (fun j => f (x 0) • g (fun k => σ k.succ) j a (fun k => x k.succ)) i else 0 | |
| theorem HasWeakGradient.insert {n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (hg : HasWeakGradient ψ g) (hψ : ∀ σ, MemLp (ψ σ) 2 volume) | |
| (hgLp : ∀ σ i a, MemLp (g σ i a) 2 volume) {f : Position → ℝ} | |
| (hf : ContDiff ℝ ∞ f) (hfLp : MemLp f 2 volume) | |
| (hdfLp : ∀ a : Fin 3, MemLp (fun y => fderiv ℝ f y (EuclideanSpace.single a 1)) 2 volume) : | |
| HasWeakGradient (insertWavefunction f ψ) (insertGradient f ψ g) := by | |
| intro σ i a φ hφ hφc | |
| by_cases hσ : σ 0 = 0 | |
| · let τ : Spins n := fun j => σ j.succ | |
| cases i using Fin.cases with | |
| | zero => | |
| have ht := (smooth_tensor_weak_left hf hfLp (EuclideanSpace.single a 1) (hdfLp a) | |
| (hψ τ)).comp_equiv (configurationSplit n) (configurationSplit_preserving n) | |
| have hv : (configurationSplit n).symm (EuclideanSpace.single a 1, 0) = | |
| coordinateDirection 0 a := by | |
| apply (configurationSplit n).injective | |
| rw [ContinuousLinearEquiv.apply_symm_apply, configurationSplit_direction_zero] | |
| rw [hv] at ht | |
| simpa only [insertWavefunction, insertGradient, hσ, ↓reduceIte, Fin.cases_zero, | |
| configurationSplit_apply, Function.comp_apply, Complex.real_smul] using ht φ hφ hφc | |
| | succ i => | |
| have hd : WeakDirectionalDerivative (ψ τ) (g τ i a) (coordinateDirection i a) := by | |
| intro η hη hηc | |
| simpa only [Complex.real_smul] using hg τ i a η hη hηc | |
| have ht := (hd.tensor_right (hψ τ) (hgLp τ i a) hfLp).comp_equiv | |
| (configurationSplit n) (configurationSplit_preserving n) | |
| have hv : (configurationSplit n).symm (0, coordinateDirection i a) = | |
| coordinateDirection i.succ a := by | |
| apply (configurationSplit n).injective | |
| rw [ContinuousLinearEquiv.apply_symm_apply, configurationSplit_direction_succ] | |
| rw [hv] at ht | |
| simpa only [insertWavefunction, insertGradient, hσ, ↓reduceIte, Fin.cases_succ, | |
| configurationSplit_apply, Function.comp_apply, Complex.real_smul] using ht φ hφ hφc | |
| · simp [insertWavefunction, insertGradient, hσ] | |
| theorem insertWavefunction_memLp {n : ℕ} {ψ : Wavefunction n} (hψ : ∀ σ, MemLp (ψ σ) 2 volume) | |
| {f : Position → ℝ} (hf : MemLp f 2 volume) (σ : Spins (n+1)) : | |
| MemLp (insertWavefunction f ψ σ) 2 volume := by | |
| by_cases hσ : σ 0 = 0 | |
| · have he : insertWavefunction f ψ σ = | |
| (fun z : Position×Configuration n => f z.1 • ψ (fun i => σ i.succ) z.2) ∘ | |
| configurationSplit n := by | |
| funext x | |
| simp [insertWavefunction, hσ] | |
| rw [he] | |
| exact (memLp_two_real_tensor hf (hψ (fun i => σ i.succ))).comp_measurePreserving | |
| (configurationSplit_preserving n) | |
| · have he : insertWavefunction f ψ σ = fun _ => 0 := by | |
| funext x | |
| simp [insertWavefunction, hσ] | |
| rw [he] | |
| exact MemLp.zero' | |
| theorem insertGradient_memLp {n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (hψ : ∀ σ, MemLp (ψ σ) 2 volume) (hg : ∀ σ i a, MemLp (g σ i a) 2 volume) | |
| {f : Position → ℝ} (hf : MemLp f 2 volume) | |
| (hdf : ∀ a : Fin 3, MemLp (fun y => fderiv ℝ f y (EuclideanSpace.single a 1)) 2 volume) | |
| (σ : Spins (n+1)) (i : Fin (n+1)) (a : Fin 3) : | |
| MemLp (insertGradient f ψ g σ i a) 2 volume := by | |
| by_cases hσ : σ 0 = 0 | |
| · cases i using Fin.cases with | |
| | zero => | |
| have he : insertGradient f ψ g σ 0 a = | |
| (fun z : Position×Configuration n => fderiv ℝ f z.1 (EuclideanSpace.single a 1) • | |
| ψ (fun j => σ j.succ) z.2) ∘ configurationSplit n := by | |
| funext x | |
| simp [insertGradient, hσ] | |
| rw [he] | |
| exact (memLp_two_real_tensor (hdf a) (hψ (fun j => σ j.succ))).comp_measurePreserving | |
| (configurationSplit_preserving n) | |
| | succ i => | |
| have he : insertGradient f ψ g σ i.succ a = | |
| (fun z : Position×Configuration n => f z.1 • | |
| g (fun j => σ j.succ) i a z.2) ∘ configurationSplit n := by | |
| funext x | |
| simp [insertGradient, hσ] | |
| rw [he] | |
| exact (memLp_two_real_tensor hf (hg (fun j => σ j.succ) i a)).comp_measurePreserving | |
| (configurationSplit_preserving n) | |
| · have he : insertGradient f ψ g σ i a = fun _ => 0 := by | |
| funext x | |
| simp [insertGradient, hσ] | |
| rw [he] | |
| exact MemLp.zero' | |
| theorem integral_tensor_norm {n : ℕ} (f : Position → ℝ) (ψ : Configuration n → ℂ) : | |
| (∫ x : Configuration (n+1), ‖f (x 0) • ψ (fun i => x i.succ)‖^2) = | |
| (∫ y : Position, (f y)^2) * ∫ x : Configuration n, ‖ψ x‖^2 := by | |
| have he := (configurationSplit_preserving n).integral_comp | |
| (configurationSplit n).toHomeomorph.measurableEmbedding | |
| (fun z : Position × Configuration n => ‖f z.1 • ψ z.2‖^2) | |
| change (∫ x : Configuration (n+1), ‖f (x 0) • ψ (fun i => x i.succ)‖^2) = | |
| ∫ z : Position × Configuration n, ‖f z.1 • ψ z.2‖^2 at he | |
| rw [he] | |
| simp_rw [norm_smul, mul_pow, Real.norm_eq_abs, sq_abs] | |
| exact integral_prod_mul (μ := volume) (ν := volume) | |
| (fun y : Position => (f y)^2) (fun x : Configuration n => ‖ψ x‖^2) | |
| theorem normSquared_insert {n : ℕ} (f : Position → ℝ) (ψ : Wavefunction n) : | |
| normSquared (insertWavefunction f ψ) = (∫ y : Position, (f y)^2) * normSquared ψ := by | |
| classical | |
| unfold normSquared | |
| 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), integral_zero, | |
| Finset.sum_const_zero, add_zero, integral_tensor_norm, Finset.mul_sum] | |
| def FormRegular {n : ℕ} (ψ : Wavefunction n) (g : Gradient n) : Prop := | |
| HasWeakGradient ψ g ∧ | |
| (∀ σ, MemLp (ψ σ) 2 volume) ∧ | |
| (∀ σ i a, MemLp (g σ i a) 2 volume) ∧ | |
| (∀ σ i, Integrable (fun x : Configuration n => ‖x i‖⁻¹ * ‖ψ σ x‖ ^ 2)) ∧ | |
| (∀ σ i j, i < j → | |
| Integrable (fun x : Configuration n => ‖x i - x j‖⁻¹ * ‖ψ σ x‖ ^ 2)) | |
| theorem formDomain_iff {n : ℕ} (ψ : Wavefunction n) (g : Gradient n) : | |
| FormDomain ψ g ↔ IsAntisymmetric ψ ∧ FormRegular ψ g := Iff.rfl | |
| theorem FormRegular.pair {n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (h : FormRegular ψ g) (σ : Spins n) (i j : Fin n) : | |
| Integrable (fun x : Configuration n => ‖x i-x j‖⁻¹ * ‖ψ σ x‖^2) := by | |
| rcases lt_trichotomy i j with hij | rfl | hji | |
| · exact h.2.2.2.2 σ i j hij | |
| · simp | |
| · simpa only [norm_sub_rev] using h.2.2.2.2 σ j i hji | |
| theorem FormRegular.permute {n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (h : FormRegular ψ g) (p : Equiv.Perm (Fin n)) : | |
| FormRegular (permuteWavefunction p ψ) (permuteGradient p g) := by | |
| refine ⟨h.1.permute p, ?_, ?_, ?_, ?_⟩ | |
| · intro σ | |
| exact (h.2.1 (σ ∘ p)).comp_measurePreserving (configurationPerm_preserving p) | |
| · intro σ i a | |
| exact (h.2.2.1 (σ ∘ p) (p.symm i) a).comp_measurePreserving (configurationPerm_preserving p) | |
| · intro σ i | |
| have ht := (configurationPerm_preserving p).integrable_comp_of_integrable | |
| (h.2.2.2.1 (σ ∘ p) (p.symm i)) | |
| simpa only [Function.comp_def, configurationPerm_apply, Equiv.apply_symm_apply, | |
| permuteWavefunction] using ht | |
| · intro σ i j _ | |
| have ht := (configurationPerm_preserving p).integrable_comp_of_integrable | |
| (h.pair (σ ∘ p) (p.symm i) (p.symm j)) | |
| simpa only [Function.comp_def, configurationPerm_apply, Equiv.apply_symm_apply, | |
| permuteWavefunction] using ht | |
| theorem WeakDirectionalDerivative.finite_sum {E : Type*} [NormedAddCommGroup E] | |
| [NormedSpace ℝ E] [MeasureSpace E] [BorelSpace E] | |
| [Measure.IsAddHaarMeasure (volume : Measure E)] [FiniteDimensional ℝ E] | |
| {ι : Type*} [Fintype ι] (c : ι → ℝ) {ψ g : ι → E → ℂ} {v : E} | |
| (hd : ∀ i, WeakDirectionalDerivative (ψ i) (g i) v) | |
| (hψ : ∀ i, MemLp (ψ i) 2 volume) (hg : ∀ i, MemLp (g i) 2 volume) : | |
| WeakDirectionalDerivative (fun x => ∑ i, c i • ψ i x) (fun x => ∑ i, c i • g i x) v := by | |
| intro φ hφ hφc | |
| have hi (i : ι) : Integrable (fun x => fderiv ℝ φ x v • (c i • ψ i x)) := | |
| ((hψ i).const_smul (c i)).locallyIntegrable (by norm_num) | |
| |>.integrable_smul_left_of_hasCompactSupport | |
| ((hφ.continuous_fderiv (by simp)).clm_apply continuous_const) (hφc.fderiv_apply ℝ _) | |
| have hi' (i : ι) : Integrable (fun x => φ x • (c i • g i x)) := | |
| ((hg i).const_smul (c i)).locallyIntegrable (by norm_num) | |
| |>.integrable_smul_left_of_hasCompactSupport hφ.continuous hφc | |
| dsimp only | |
| simp_rw [Finset.smul_sum] | |
| rw [integral_finsetSum _ (fun i _ => hi i), integral_finsetSum _ (fun i _ => hi' i), | |
| ← Finset.sum_neg_distrib] | |
| apply Finset.sum_congr rfl | |
| intro i _ | |
| simp_rw [smul_comm _ (c i), integral_smul] | |
| simpa only [smul_neg] using congrArg (fun z : ℂ => c i • z) (hd i φ hφ hφc) | |
| theorem integrable_weighted_norm_sum {A : Type*} [MeasurableSpace A] {μ : Measure A} | |
| {ι : Type*} [Fintype ι] {W : A → ℝ} (hW : Measurable W) (hW0 : ∀ x, 0 ≤ W x) | |
| (c : ι → ℝ) {f : ι → A → ℂ} (hf : ∀ i, AEStronglyMeasurable (f i) μ) | |
| (hi : ∀ i, Integrable (fun x => W x * ‖f i x‖^2) μ) : | |
| Integrable (fun x => W x * ‖∑ i, c i • f i x‖^2) μ := by | |
| have hroot : Measurable (fun x => Real.sqrt (W x)) := Real.continuous_sqrt.measurable.comp hW | |
| have he : ∀ i, MemLp (fun x => Real.sqrt (W x) • f i x) 2 μ := by | |
| intro i | |
| apply (memLp_two_iff_integrable_sq_norm (hroot.aestronglyMeasurable.smul (hf i))).mpr | |
| change Integrable (fun x => ‖Real.sqrt (W x) • f i x‖^2) μ | |
| simpa only [norm_smul, mul_pow, Real.norm_eq_abs, sq_abs, Real.sq_sqrt (hW0 _)] using hi i | |
| have hs := memLp_finsetSum Finset.univ (fun i _ => (he i).const_smul (c i)) | |
| have hint := hs.norm.integrable_sq | |
| have hx : (fun x => ‖∑ i, c i • (Real.sqrt (W x) • f i x)‖^2) = | |
| (fun x => W x * ‖∑ i, c i • f i x‖^2) := by | |
| funext x | |
| simp_rw [smul_comm (c _) (Real.sqrt (W x)), ← Finset.smul_sum] | |
| rw [norm_smul, mul_pow, Real.norm_eq_abs, sq_abs, Real.sq_sqrt (hW0 x)] | |
| exact hx ▸ hint | |
| def sumWavefunction {n : ℕ} {ι : Type*} [Fintype ι] (c : ι → ℝ) | |
| (ψ : ι → Wavefunction n) : Wavefunction n := fun σ x => ∑ i, c i • ψ i σ x | |
| def sumGradient {n : ℕ} {ι : Type*} [Fintype ι] (c : ι → ℝ) | |
| (g : ι → Gradient n) : Gradient n := fun σ i a x => ∑ j, c j • g j σ i a x | |
| theorem FormRegular.finite_sum {n : ℕ} {ι : Type*} [Fintype ι] (c : ι → ℝ) | |
| {ψ : ι → Wavefunction n} {g : ι → Gradient n} (h : ∀ j, FormRegular (ψ j) (g j)) : | |
| FormRegular (sumWavefunction c ψ) (sumGradient c g) := by | |
| refine ⟨?_, ?_, ?_, ?_, ?_⟩ | |
| · intro σ i a φ hφ hφc | |
| have hd (j : ι) : WeakDirectionalDerivative (ψ j σ) (g j σ i a) (coordinateDirection i a) := by | |
| intro η hη hηc | |
| simpa only [Complex.real_smul] using (h j).1 σ i a η hη hηc | |
| simpa only [sumWavefunction, sumGradient, Complex.real_smul] using | |
| (WeakDirectionalDerivative.finite_sum c hd (fun j => (h j).2.1 σ) | |
| (fun j => (h j).2.2.1 σ i a)) φ hφ hφc | |
| · intro σ | |
| exact memLp_finsetSum Finset.univ (fun j _ => ((h j).2.1 σ).const_smul (c j)) | |
| · intro σ i a | |
| exact memLp_finsetSum Finset.univ (fun j _ => ((h j).2.2.1 σ i a).const_smul (c j)) | |
| · intro σ i | |
| exact integrable_weighted_norm_sum (by fun_prop) (fun x => inv_nonneg.mpr (norm_nonneg _)) c | |
| (fun j => ((h j).2.1 σ).aestronglyMeasurable) (fun j => (h j).2.2.2.1 σ i) | |
| · intro σ i k hik | |
| exact integrable_weighted_norm_sum (by fun_prop) (fun x => inv_nonneg.mpr (norm_nonneg _)) c | |
| (fun j => ((h j).2.1 σ).aestronglyMeasurable) (fun j => (h j).2.2.2.2 σ i k hik) | |
| def permutationSign {n : ℕ} (p : Equiv.Perm (Fin n)) : ℝ := ((Equiv.Perm.sign p : ℤ) : ℝ) | |
| @[simp] theorem permutationSign_mul {n : ℕ} (p q : Equiv.Perm (Fin n)) : | |
| permutationSign (p*q) = permutationSign p * permutationSign q := by | |
| simp [permutationSign, Equiv.Perm.sign_mul] | |
| @[simp] theorem permutationSign_sq {n : ℕ} (p : Equiv.Perm (Fin n)) : | |
| permutationSign p * permutationSign p = 1 := by | |
| rcases Int.units_eq_one_or (Equiv.Perm.sign p) with h | h <;> simp [permutationSign, h] | |
| def antisymmetrize {n : ℕ} (ψ : Wavefunction n) : Wavefunction n := | |
| sumWavefunction permutationSign (fun p => permuteWavefunction p ψ) | |
| def antisymmetrizeGradient {n : ℕ} (g : Gradient n) : Gradient n := | |
| sumGradient permutationSign (fun p => permuteGradient p g) | |
| theorem antisymmetrize_antisymmetric {n : ℕ} (ψ : Wavefunction n) : | |
| IsAntisymmetric (antisymmetrize ψ) := by | |
| intro q σ | |
| apply Eventually.of_forall | |
| intro x | |
| have he (p : Equiv.Perm (Fin n)) : | |
| permutationSign p = permutationSign q * permutationSign (q*p) := by | |
| rw [permutationSign_mul, ← mul_assoc, permutationSign_sq, one_mul] | |
| change (∑ p : Equiv.Perm (Fin n), permutationSign p • ψ ((σ ∘ q) ∘ p) ((x ∘ q) ∘ p)) = | |
| ((Equiv.Perm.sign q : ℤ) : ℂ) * ∑ p : Equiv.Perm (Fin n), | |
| permutationSign p • ψ (σ ∘ p) (x ∘ p) | |
| calc | |
| _ = ∑ p : Equiv.Perm (Fin n), permutationSign q • | |
| (permutationSign (q*p) • ψ (σ ∘ (q*p : Equiv.Perm (Fin n))) (x ∘ (q*p : Equiv.Perm (Fin n)))) := by | |
| apply Finset.sum_congr rfl | |
| intro p _ | |
| rw [smul_smul, ← he p] | |
| rfl | |
| _ = permutationSign q • ∑ p : Equiv.Perm (Fin n), | |
| permutationSign (q*p) • ψ (σ ∘ (q*p : Equiv.Perm (Fin n))) (x ∘ (q*p : Equiv.Perm (Fin n))) := by rw [Finset.smul_sum] | |
| _ = permutationSign q • ∑ p : Equiv.Perm (Fin n), | |
| permutationSign p • ψ (σ ∘ p) (x ∘ p) := by | |
| exact congrArg (fun z : ℂ => permutationSign q • z) | |
| (Equiv.sum_comp (Equiv.mulLeft q) | |
| (fun p : Equiv.Perm (Fin n) => permutationSign p • ψ (σ ∘ p) (x ∘ p))) | |
| _ = _ := by simp only [permutationSign, Complex.real_smul, Complex.ofReal_intCast] | |
| theorem FormRegular.antisymmetrize {n : ℕ} {ψ : Wavefunction n} {g : Gradient n} | |
| (h : FormRegular ψ g) : FormDomain (antisymmetrize ψ) (antisymmetrizeGradient g) := | |
| ⟨antisymmetrize_antisymmetric ψ, FormRegular.finite_sum permutationSign (fun p => h.permute p)⟩ | |
| theorem configurationTail_quasiPreserving (n : ℕ) : | |
| Measure.QuasiMeasurePreserving (fun x : Configuration (n+1) => fun i : Fin n => x i.succ) | |
| volume volume := | |
| Measure.quasiMeasurePreserving_snd.comp (configurationSplit_preserving n).quasiMeasurePreserving | |
| theorem permutationSign_decompose {n : ℕ} (i : Fin (n+1)) (p : Equiv.Perm (Fin n)) : | |
| permutationSign (Equiv.Perm.decomposeFin.symm (i,p)) = | |
| permutationSign (Equiv.swap 0 i) * permutationSign p := by | |
| have he := Equiv.Perm.decomposeFin_symm_of_one i | |
| rw [← he] | |
| by_cases hi : i = 0 | |
| · simp [permutationSign, Equiv.Perm.decomposeFin.symm_sign, hi] | |
| · simp [permutationSign, Equiv.Perm.decomposeFin.symm_sign, hi, Ne.symm hi] | |
| theorem insert_permute_decompose {n : ℕ} {ψ : Wavefunction n} (hψ : IsAntisymmetric ψ) | |
| (f : Position → ℝ) (i : Fin (n+1)) (p : Equiv.Perm (Fin n)) (σ : Spins (n+1)) : | |
| permuteWavefunction (Equiv.Perm.decomposeFin.symm (i,p)) (insertWavefunction f ψ) σ =ᵐ[volume] | |
| (fun x => permutationSign p • permuteWavefunction (Equiv.swap 0 i) (insertWavefunction f ψ) σ x) := by | |
| let τ : Spins n := fun j => σ (Equiv.swap 0 i j.succ) | |
| have hp := (hψ p τ).comp_tendsto | |
| ((configurationTail_quasiPreserving n).comp | |
| (configurationPerm_preserving (Equiv.swap 0 i)).quasiMeasurePreserving).tendsto_ae | |
| filter_upwards [hp] with x hx | |
| change ψ (τ ∘ p) ((fun j => x (Equiv.swap 0 i j.succ)) ∘ p) = | |
| ((Equiv.Perm.sign p : ℤ) : ℂ) * ψ τ (fun j => x (Equiv.swap 0 i j.succ)) at hx | |
| simp only [permuteWavefunction, insertWavefunction, Function.comp_apply, | |
| Equiv.Perm.decomposeFin_symm_apply_zero, Equiv.Perm.decomposeFin_symm_apply_succ, | |
| Equiv.swap_apply_left] | |
| by_cases hσ : σ i = 0 | |
| · simp only [hσ, ↓reduceIte] | |
| change f (x i) • ψ (τ ∘ p) ((fun j => x (Equiv.swap 0 i j.succ)) ∘ p) = _ | |
| rw [hx] | |
| simp only [permutationSign, Complex.real_smul, Complex.ofReal_intCast] | |
| ring | |
| · simp [hσ] | |
| end NeutralAtom | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 22.5 kB
- Xet hash:
- fbb973931d2dc5364c289af46631362cfc8b9fc8a72a652f7a35a830824b7258
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.