import Mathlib /-! # Ground-state condensation in the dilute hard-sphere gas The main result covers all pure ground states and all density operators supported on the ground space. In particular it covers the normalized ground-space projection. Only the definitions needed to state this result are retained below. -/ noncomputable section open MeasureTheory Filter Set open scoped ENNReal Topology BigOperators InnerProductSpace ComplexOrder NNReal namespace OAI.HardSphere abbrev Length := {L : ℝ // 0 < L} instance lengthPositive (L : Length) : Fact (0 < L.val) := ⟨L.property⟩ abbrev Torus (L : Length) := Fin 3 → AddCircle L.val abbrev Configuration (N : ℕ) (L : Length) := Fin N → Torus L abbrev LiftedConfiguration (N : ℕ) := Fin N → Fin 3 → ℝ abbrev Direction (N : ℕ) := Fin N × Fin 3 def torusDistance (L : Length) (x y : Torus L) : ℝ := Real.sqrt (∑ j : Fin 3, dist (x j) (y j) ^ 2) def allowed (N : ℕ) (L : Length) (a : ℝ) : Set (Configuration N L) := {X | ∀ i j : Fin N, i < j → a < torusDistance L (X i) (X j)} def project (N : ℕ) (L : Length) (X : LiftedConfiguration N) : Configuration N L := fun i j ↦ (X i j : AddCircle L.val) def representative (N : ℕ) (L : Length) (X : Configuration N L) : LiftedConfiguration N := fun i j ↦ (AddCircle.equivIco L.val 0 (X i j)).val def coordDerivative (N : ℕ) (L : Length) (f : Configuration N L → ℂ) (p : Direction N) (X : Configuration N L) : ℂ := fderiv ℝ (fun Y : LiftedConfiguration N ↦ f (project N L Y)) (representative N L X) (Pi.single p.1 (Pi.single p.2 1)) abbrev ScalarL2 (N : ℕ) (L : Length) : Type := Lp ℂ 2 (volume : Measure (Configuration N L)) abbrev Jet (N : ℕ) (L : Length) := ScalarL2 N L × (Direction N → ScalarL2 N L) structure SmoothTest (N : ℕ) (L : Length) (a : ℝ) where toFun : Configuration N L → ℂ smooth : ContDiff ℝ ((⊤ : ℕ∞) : WithTop ℕ∞) (fun X : LiftedConfiguration N ↦ toFun (project N L X)) compact : HasCompactSupport toFun support_allowed : tsupport toFun ⊆ allowed N L a memLp : MemLp toFun (2 : ℕ) (volume : Measure (Configuration N L)) partial_memLp : ∀ p : Direction N, MemLp (coordDerivative N L toFun p) (2 : ℕ) volume def SmoothTest.jet {N : ℕ} {L : Length} {a : ℝ} (f : SmoothTest N L a) : Jet N L := (f.memLp.toLp f.toFun, fun p ↦ (f.partial_memLp p).toLp (coordDerivative N L f.toFun p)) def dirichletDomain (N : ℕ) (L : Length) (a : ℝ) : Set (Jet N L) := closure (Set.range (SmoothTest.jet (N := N) (L := L) (a := a))) def energy {N : ℕ} {L : Length} (u : Jet N L) : ℝ := ∑ p : Direction N, ‖u.2 p‖ ^ 2 def bosonic {N : ℕ} {L : Length} (ψ : ScalarL2 N L) : Prop := ∀ σ : Equiv.Perm (Fin N), (fun X : Configuration N L ↦ ψ (fun i ↦ X (σ i))) =ᵐ[volume] ψ def IsGroundVector (N : ℕ) (L : Length) (a : ℝ) (u : Jet N L) : Prop := u ∈ dirichletDomain N L a ∧ bosonic u.1 ∧ ‖u.1‖ = 1 ∧ ∀ v ∈ dirichletDomain N L a, bosonic v.1 → ‖v.1‖ = 1 → energy u ≤ energy v def insertFirst {N : ℕ} (hN : 0 < N) {L : Length} (x : Torus L) (Y : Configuration (N - 1) L) : Configuration N L := fun i ↦ Fin.cons (α := fun _ ↦ Torus L) x Y (Fin.cast (Nat.sub_add_cancel (Nat.succ_le_of_lt hN)).symm i) def occupation {N : ℕ} (hN : 0 < N) {L : Length} (ψ : ScalarL2 N L) : ℝ := (L.val ^ 3)⁻¹ * ∫ Y : Configuration (N - 1) L, ‖∫ x : Torus L, ψ (insertFirst hN x Y)‖ ^ 2 namespace Density variable (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] def basisSet : Set H := (exists_hilbertBasis (𝕜:=ℂ) (E:=H)).choose def basis : HilbertBasis (basisSet H) ℂ H := (exists_hilbertBasis (𝕜:=ℂ) (E:=H)).choose_spec.choose structure Operator where toCLM : H →L[ℂ] H positive : 0≤toCLM trace_one : HasSum (fun i : basisSet H ↦ (inner ℂ (basis H i) (toCLM (basis H i))).re) 1 variable {H K : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K] def Operator.compressionTrace (T : Operator H) (A : H →L[ℂ] K) : ℝ := let adjoint := DFunLike.coe (F := (H →L[ℂ] K) ≃ₗᵢ⋆[ℂ] K →L[ℂ] H) (β := fun _ ↦ K →L[ℂ] H) ContinuousLinearMap.adjoint A ∑' j : basisSet K,(inner ℂ (adjoint (basis K j)) (T.toCLM (adjoint (basis K j)))).re end Density namespace Orbital def sliceIntegral {N : ℕ} (hN : 0 omega | succ n => unfold insertFirst have h := (cons_preserving (n:=n) L).comp (Measure.measurePreserving_swap (μ:=(volume : Measure (Torus L))) (ν:=volume)) convert h using 1 <;> simp [Function.comp_def] have bathFirst_preserving {N : ℕ} (hN : 0 omega | succ n => unfold insertFirst have h := (cons_preserving (n:=n) L).comp (Measure.measurePreserving_swap (μ:=(volume : Measure (Torus L))) (ν:=volume)) convert h using 1 <;> simp [Function.comp_def] have bathFirst_preserving {N : ℕ} (hN : 0 omega | succ n => convert (MeasurableEquiv.piFinSuccAbove (fun _ : Fin (n+1) ↦ Torus L) 0).symm.measurableEmbedding.comp (MeasurableEquiv.prodComm (α:=Configuration n L) (β:=Torus L)).measurableEmbedding using 1 <;> try rfl funext p i simp [insertFirst,MeasurableEquiv.piFinSuccAbove,MeasurableEquiv.prodComm]) (fun X ↦ ‖ψ X‖^2) rw [hm,Measure.real,volume_torus,ENNReal.toReal_ofReal (by positivity : 0≤L.val^3)] at hbound unfold occupation change (L.val^3)⁻¹*(∫Y,‖∫x,f (Y,x)‖^2)≤‖ψ‖^2 calc _ ≤ (L.val^3)⁻¹*(L.val^3*‖ψ‖^2) := mul_le_mul_of_nonneg_left hbound (by positivity) _ = _ := by rw [←mul_assoc,inv_mul_cancel₀ (pow_ne_zero _ L.property.ne'),one_mul] have map_ae {N : ℕ} (hN : 0