diff --git a/LeanPool/VacuumBellSeparation.lean b/LeanPool/VacuumBellSeparation.lean new file mode 100644 index 0000000000..57567a60ed --- /dev/null +++ b/LeanPool/VacuumBellSeparation.lean @@ -0,0 +1,124 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.OQP12 +public import LeanPool.VacuumBellSeparation.FreeField.Existence +public import LeanPool.VacuumBellSeparation.FreeField.LocalAlgebraNonabelian + +/-! +# Vacuum Bell correlation at large spacelike separation + +Source: url:https://github.com/physical-superintelligence/oqp-batch-2026/tree/7049357c42a8fe85262da08fdc10d57b4d9e67a0/oqp12-vacuum-bell-correlations +Authors: David Turturean +Status: verified +Main declarations: `VacuumBellSeparation.OQP12.theorem_1_1`, + `VacuumBellSeparation.OQP12.corollary_1_2`, + `VacuumBellSeparation.OQP12.no_chsh_violation_far_apart`, + `VacuumBellSeparation.OQP12.no_chsh_violation_far_apart_uniform`, + `VacuumBellSeparation.OQP12.freeFieldVacuum_exists`, + `VacuumBellSeparation.OQP12.localAlgebra_open_nonabelian` +Tags: quantum-field-theory, bell-inequalities, operator-algebras, free-scalar-field +MSC: 81T05, 81P40, 46L60 +-/ + +/-! +## Upstream attribution + +Physical Superintelligence PBC released this formalization under Apache 2.0 on October 23, 2026 +as part of its Open Quantum Problems batch. It follows the full manuscript of October 21, +2026. Its Theorem 1.1 and Corollary 1.2 correspond to Theorem 1 and Corollary 1 of the +October 22 letter. + +The upstream NOTICE records the following attribution. + +> This result was released by Physical Superintelligence (PSI). The +> mathematics was developed by PSI researchers working with AI models (OpenAI's GPT-6-Astra and +> GPT-5.6 Pro and Anthropic's Claude Fable 5.1) in automated research workflows at PSI. The Lean +> formalization was written by AI agents (Anthropic's Claude Opus 5.5 in Claude Code, and OpenAI's +> GPT-6-Astra in Codex) under PSI's direction. David +> Turturean is responsible for the correctness of the paper. The paper's AI disclosure has the +> details; formalization.yaml records which agent did which part. + +This port adapts the module layout, imports, and proofs to Lean Pool's pinned toolchain. +-/ + +public section + +open scoped InnerProductSpace + +namespace VacuumBellSeparation.OQP12 + +theorem no_chsh_violation_far_apart (m : ℝ) (hm : 0 < m) + (O₁ O₂ : Set Spacetime) (hO₁ : Bornology.IsBounded O₁) (hO₂ : Bornology.IsBounded O₂) + (a : Spacetime) (ha : a.1 ^ 2 < ‖a.2‖ ^ 2) : + ∃ T₀ : ℝ, ∀ t : ℝ, T₀ ≤ t → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) (A₀ A₁ B₀ B₁ : H →L[ℂ] H), + A₀ ∈ localAlgebra V O₁ → A₁ ∈ localAlgebra V O₁ → + B₀ ∈ localAlgebra V ((fun x => x + t • a) '' O₂) → + B₁ ∈ localAlgebra V ((fun x => x + t • a) '' O₂) → + IsSelfAdjoint A₀ → IsSelfAdjoint A₁ → IsSelfAdjoint B₀ → IsSelfAdjoint B₁ → + ‖A₀‖ ≤ 1 → ‖A₁‖ ≤ 1 → ‖B₀‖ ≤ 1 → ‖B₁‖ ≤ 1 → + ‖⟪V.vacuum, (A₀ * (B₀ + B₁) + A₁ * (B₀ - B₁)) V.vacuum⟫_ℂ‖ ≤ 2 := + VacuumBellSeparation.no_chsh_violation_far_apart m hm O₁ O₂ hO₁ hO₂ a ha + +theorem theorem_1_1 : + ∃ Cstar : ℝ, 2 < Cstar ∧ + ∀ m R L : ℝ, 0 < m → 0 < R → Cstar * R ≤ L → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H), + sSup {v : ℝ | ∃ A₀ A₁ B₀ B₁ : H →L[ℂ] H, + A₀ ∈ localAlgebra V (doubleCone 0 R) ∧ A₁ ∈ localAlgebra V (doubleCone 0 R) ∧ + B₀ ∈ localAlgebra V (doubleCone (0, L • e₁) R) ∧ + B₁ ∈ localAlgebra V (doubleCone (0, L • e₁) R) ∧ + IsSelfAdjoint A₀ ∧ IsSelfAdjoint A₁ ∧ IsSelfAdjoint B₀ ∧ IsSelfAdjoint B₁ ∧ + ‖A₀‖ ≤ 1 ∧ ‖A₁‖ ≤ 1 ∧ ‖B₀‖ ≤ 1 ∧ ‖B₁‖ ≤ 1 ∧ + v = (1 / 2 : ℝ) * ‖⟪V.vacuum, (A₀ * (B₀ + B₁) + A₁ * (B₀ - B₁)) V.vacuum⟫_ℂ‖} = 1 := + VacuumBellSeparation.theorem_1_1_explicit + +theorem corollary_1_2 : + ∀ m : ℝ, 0 < m → ∀ O₁ O₂ : Set Spacetime, Bornology.IsBounded O₁ → Bornology.IsBounded O₂ → + ∀ a : Spacetime, a.1 ^ 2 < ‖a.2‖ ^ 2 → + ∃ T₀ : ℝ, ∀ t : ℝ, T₀ ≤ t → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H), + sSup {v : ℝ | ∃ A₀ A₁ B₀ B₁ : H →L[ℂ] H, + A₀ ∈ localAlgebra V O₁ ∧ A₁ ∈ localAlgebra V O₁ ∧ + B₀ ∈ localAlgebra V ((fun x => x + t • a) '' O₂) ∧ + B₁ ∈ localAlgebra V ((fun x => x + t • a) '' O₂) ∧ + IsSelfAdjoint A₀ ∧ IsSelfAdjoint A₁ ∧ IsSelfAdjoint B₀ ∧ IsSelfAdjoint B₁ ∧ + ‖A₀‖ ≤ 1 ∧ ‖A₁‖ ≤ 1 ∧ ‖B₀‖ ≤ 1 ∧ ‖B₁‖ ≤ 1 ∧ + v = (1 / 2 : ℝ) * ‖⟪V.vacuum, (A₀ * (B₀ + B₁) + A₁ * (B₀ - B₁)) V.vacuum⟫_ℂ‖} = + 1 := + VacuumBellSeparation.corollary_1_2_explicit + +theorem freeFieldVacuum_exists : + ∀ m : ℝ, 0 < m → ∃ (H : Type) (_ : NormedAddCommGroup H) (_ : InnerProductSpace ℂ H) + (_ : CompleteSpace H), Nonempty (FreeFieldVacuum m H) := + VacuumBellSeparation.freeFieldVacuum_exists + +theorem no_chsh_violation_far_apart_uniform (m : ℝ) (hm : 0 < m) + (O₁ O₂ : Set Spacetime) (hO₁ : Bornology.IsBounded O₁) (hO₂ : Bornology.IsBounded O₂) : + ∃ D : ℝ, ∀ x : EuclideanSpace ℝ (Fin 3), D ≤ ‖x‖ → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) (A₀ A₁ B₀ B₁ : H →L[ℂ] H), + A₀ ∈ localAlgebra V O₁ → A₁ ∈ localAlgebra V O₁ → + B₀ ∈ localAlgebra V ((fun y => y + ((0 : ℝ), x)) '' O₂) → + B₁ ∈ localAlgebra V ((fun y => y + ((0 : ℝ), x)) '' O₂) → + IsSelfAdjoint A₀ → IsSelfAdjoint A₁ → IsSelfAdjoint B₀ → IsSelfAdjoint B₁ → + ‖A₀‖ ≤ 1 → ‖A₁‖ ≤ 1 → ‖B₀‖ ≤ 1 → ‖B₁‖ ≤ 1 → + ‖⟪V.vacuum, (A₀ * (B₀ + B₁) + A₁ * (B₀ - B₁)) V.vacuum⟫_ℂ‖ ≤ 2 := + VacuumBellSeparation.no_chsh_violation_far_apart_uniform m hm O₁ O₂ hO₁ hO₂ + +theorem localAlgebra_open_nonabelian (m : ℝ) (hm : 0 < m) + (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) (O : Set Spacetime) (hO : IsOpen O) (hne : O.Nonempty) : + ∃ A ∈ localAlgebra V O, ∃ B ∈ localAlgebra V O, A * B ≠ B * A := + V.localAlgebra_open_nonabelian hm hO hne + +end VacuumBellSeparation.OQP12 diff --git a/LeanPool/VacuumBellSeparation/Bell/AmbientWeakStarBellSequence.lean b/LeanPool/VacuumBellSeparation/Bell/AmbientWeakStarBellSequence.lean new file mode 100644 index 0000000000..b6e74acd34 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/AmbientWeakStarBellSequence.lean @@ -0,0 +1,72 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.ConcreteWeakStarInclusion +public import LeanPool.VacuumBellSeparation.Bell.UniversalWeakStarBellSequence + +/-! +The common Bell sequence also converges in the canonical weak-star topology +of the full original operator algebra. This is a concrete inclusion theorem; +no extension of a joint-algebra state is assumed. Identification with a +separately defined trace-class or series presentation remains separate. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open HC00 TopologicalSpace Filter +open scoped Topology + +/-- The full operator algebra on the original H, with no change of representation. -/ +def fullOperatorAlgebra (H : Type*) [NormedAddCommGroup H] + [InnerProductSpace ℂ H] [CompleteSpace H] : VonNeumannAlgebra H where + toStarSubalgebra := ⊤ + centralizer_centralizer' := + Set.Subset.antisymm (Set.subset_univ _) Set.subset_centralizer_centralizer + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- View a bounded operator as an element of the full von Neumann algebra. -/ +def fullOperatorElement (T : H →L[ℂ] H) : + (fullOperatorAlgebra H).toStarSubalgebra := ⟨T, Set.mem_univ T⟩ + +@[simp] theorem fullOperatorElement_coe (T : H →L[ℂ] H) : + (fullOperatorElement T : H →L[ℂ] H) = T := rfl + +theorem tendsto_fullOperator_coefficientWeak {ι : Type*} {l : Filter ι} + (M : VonNeumannAlgebra H) {T : ι → M.toStarSubalgebra} {L : M.toStarSubalgebra} + (hT : Tendsto (β := CoefficientWeakAlgebra M) (fun i => T i) l + (nhds (X := CoefficientWeakAlgebra M) L)) : + Tendsto (β := CoefficientWeakAlgebra (fullOperatorAlgebra H)) + (fun i => fullOperatorElement (T i)) l + (nhds (X := CoefficientWeakAlgebra (fullOperatorAlgebra H)) (fullOperatorElement L)) := by + let h : M.toStarSubalgebra ≤ (fullOperatorAlgebra H).toStarSubalgebra := + fun a _ => Set.mem_univ a + exact tendsto_coefficientWeak_inclusion h hT + +theorem exists_ambient_weakStar_Bell_sequence_of_all_normal_maximal + [SeparableSpace H] [Nontrivial H] + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) + (hmax : ∀ φ : NormalStateSpace (jointAlgebra A B), + jointSignedBellCorrelation A B φ.1 = Real.sqrt 2) : + ∃ T : ℕ → (jointAlgebra A B).toStarSubalgebra, + (∀ n, T n ∈ jointNormalizedBellOperators A B) ∧ + Tendsto (fun n => coefficientWeakDualHomeomorph (fullOperatorAlgebra H) + (fullOperatorElement (T n))) atTop + (𝓝 (coefficientWeakDualHomeomorph (fullOperatorAlgebra H) + (fullOperatorElement (((Real.sqrt 2 : ℝ) : ℂ) • (1 : H →L[ℂ] H))))) := by + obtain ⟨T, hT, hlim⟩ := + (all_normal_maximal_iff_coefficientWeak_Bell_sequence A B hcomm).mp hmax + have hfull := tendsto_fullOperator_coefficientWeak (jointAlgebra A B) hlim + exact ⟨T, hT, + (coefficientWeakDualHomeomorph (fullOperatorAlgebra H)).continuous.continuousAt.tendsto.comp + hfull⟩ + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/BicommutantFiniteApproximation.lean b/LeanPool/VacuumBellSeparation/Bell/BicommutantFiniteApproximation.lean new file mode 100644 index 0000000000..925d67e638 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/BicommutantFiniteApproximation.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.BicommutantOrbit +public import LeanPool.VacuumBellSeparation.Bell.FiniteAmplification + +/-! +# Simultaneous double-commutant approximation + +Amplification preserves membership in the double commutant because every +block of a commuting operator is in the original commutant. The one-vector +orbit argument on the genuine Hilbert direct sum therefore approximates +any finite family simultaneously. No bound on the approximating operator +norm is asserted. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem mem_commutantOf_starSubalgebra_iff + (S : StarSubalgebra ℂ (H →L[ℂ] H)) (B : H →L[ℂ] H) : + B ∈ commutantOf (S : Set (H →L[ℂ] H)) ↔ ∀ A ∈ S, A * B = B * A := by + rw [mem_commutantOf_iff, StarMemClass.star_coe_eq, Set.union_self] + exact Set.mem_centralizer_iff + +theorem finiteAmplification_mem_bicommutant + (ι : Type*) [Fintype ι] + (S : StarSubalgebra ℂ (H →L[ℂ] H)) {T : H →L[ℂ] H} + (hT : T ∈ generatedVNA (S : Set (H →L[ℂ] H))) : + finiteAmplification ι T ∈ generatedVNA + ((S.map (finiteAmplificationHom ι)) : Set + (PiLp 2 (fun _ : ι => H) →L[ℂ] PiLp 2 (fun _ : ι => H))) := by + classical + rw [generatedVNA, VonNeumannAlgebra.mem_commutant_iff] + intro B hB + have hb := (mem_commutantOf_starSubalgebra_iff _ B).mp hB + have hblocks : ∀ i j, amplificationBlock ι B i j ∈ commutantOf (S : Set (H →L[ℂ] H)) := by + intro i j + apply (mem_commutantOf_starSubalgebra_iff S _).mpr + intro A hA + exact (finiteAmplification_commutes_iff ι A B).mp + (hb _ (StarSubalgebra.mem_map.mpr ⟨A, hA, rfl⟩)) i j + have ht := VonNeumannAlgebra.mem_commutant_iff.mp hT + exact ((finiteAmplification_commutes_iff ι T B).mpr + (fun i j => (ht _ (hblocks i j)).symm)).symm + +/-- Approximation on every member of an arbitrary finite indexed family. -/ +theorem bicommutant_approximate_finite_family + (S : StarSubalgebra ℂ (H →L[ℂ] H)) {T : H →L[ℂ] H} + (hT : T ∈ generatedVNA (S : Set (H →L[ℂ] H))) + {ι : Type*} [Finite ι] (x : ι → H) {ε : ℝ} (hε : 0 < ε) : + ∃ A ∈ S, ∀ i, ‖T (x i) - A (x i)‖ < ε := by + let _ : Fintype ι := Fintype.ofFinite ι + classical + have hAmp : finiteAmplification ι T ∈ generatedVNA + ((S.map (finiteAmplificationHom ι)) : Set + (PiLp 2 (fun _ : ι => H) →L[ℂ] PiLp 2 (fun _ : ι => H))) := + finiteAmplification_mem_bicommutant ι S hT + obtain ⟨B, hB, hdist⟩ := bicommutant_approximate_one_vector + (H := PiLp 2 (fun _ : ι => H)) (T := finiteAmplification ι T) + (S.map (finiteAmplificationHom ι)) hAmp (WithLp.toLp 2 x) hε + obtain ⟨A, hA, rfl⟩ := StarSubalgebra.mem_map.mp hB + refine ⟨A, hA, fun i => ?_⟩ + have hi := PiLp.norm_apply_le + (finiteAmplification ι T (WithLp.toLp 2 x) - + finiteAmplification ι A (WithLp.toLp 2 x)) i + exact lt_of_le_of_lt hi hdist + +/-- The same conclusion for a literal finite set of vectors. -/ +theorem bicommutant_approximate_finset + (S : StarSubalgebra ℂ (H →L[ℂ] H)) {T : H →L[ℂ] H} + (hT : T ∈ generatedVNA (S : Set (H →L[ℂ] H))) (s : Finset H) + {ε : ℝ} (hε : 0 < ε) : ∃ A ∈ S, ∀ x ∈ s, ‖T x - A x‖ < ε := by + obtain ⟨A, hA, hdist⟩ := bicommutant_approximate_finite_family S hT + (fun x : s => (x : H)) hε + exact ⟨A, hA, fun x hx => hdist ⟨x, hx⟩⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/BicommutantOrbit.lean b/LeanPool/VacuumBellSeparation/Bell/BicommutantOrbit.lean new file mode 100644 index 0000000000..ee8d8b8ee0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/BicommutantOrbit.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Isotony +public import Mathlib.Analysis.InnerProductSpace.Projection.Basic + +/-! +# The one-vector double-commutant approximation lemma + +The orbit of a unital complex star algebra is a linear subspace. Its +closed orbit is reducing, so its orthogonal projection belongs to the +commutant. This gives actual norm approximation on one vector for every +operator in the double commutant. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The orbit of a finite vector family under the simultaneous action of operators in the +algebra. -/ +def operatorOrbit (S : StarSubalgebra ℂ (H →L[ℂ] H)) (x : H) : Submodule ℂ H where + carrier := {y | ∃ A ∈ S, A x = y} + zero_mem' := ⟨0, S.zero_mem, by simp⟩ + add_mem' := by + rintro y z ⟨A, hA, rfl⟩ ⟨B, hB, rfl⟩ + exact ⟨A + B, S.add_mem hA hB, by simp⟩ + smul_mem' := by + rintro c y ⟨A, hA, rfl⟩ + exact ⟨c • A, S.smul_mem hA c, by simp⟩ + +theorem operatorOrbit_invariant (S : StarSubalgebra ℂ (H →L[ℂ] H)) (x : H) + {A : H →L[ℂ] H} (hA : A ∈ S) {y : H} (hy : y ∈ operatorOrbit S x) : + A y ∈ operatorOrbit S x := by + obtain ⟨B, hB, rfl⟩ := hy + exact ⟨A * B, S.mul_mem hA hB, rfl⟩ + +theorem closedOperatorOrbit_invariant (S : StarSubalgebra ℂ (H →L[ℂ] H)) (x : H) + {A : H →L[ℂ] H} (hA : A ∈ S) {y : H} + (hy : y ∈ (operatorOrbit S x).topologicalClosure) : + A y ∈ (operatorOrbit S x).topologicalClosure := by + have hs : (operatorOrbit S x : Set H) ⊆ + A ⁻¹' ((operatorOrbit S x).topologicalClosure : Set H) := by + intro z hz + exact (operatorOrbit S x).le_topologicalClosure (operatorOrbit_invariant S x hA hz) + exact closure_minimal hs + ((operatorOrbit S x).isClosed_topologicalClosure.preimage A.continuous) hy + +/-- Reducing subspaces have projections commuting with every algebra element. -/ +theorem starProjection_commutes_of_invariant + (S : StarSubalgebra ℂ (H →L[ℂ] H)) (K : Submodule ℂ H) + [K.HasOrthogonalProjection] + (hinv : ∀ A ∈ S, ∀ y ∈ K, A y ∈ K) {A : H →L[ℂ] H} (hA : A ∈ S) : + A * K.starProjection = K.starProjection * A := by + have hfix : ∀ B ∈ S, K.starProjection * B * K.starProjection = B * K.starProjection := by + intro B hB + ext y + exact Submodule.starProjection_eq_self_iff.mpr + (hinv B hB _ (K.starProjection_apply_mem y)) + have hleft : K.starProjection * A * K.starProjection = K.starProjection * A := by + have h := congrArg star (hfix (star A) (star_mem hA)) + simpa only [star_mul, star_star, + (isSelfAdjoint_starProjection K).star_eq, mul_assoc] using h + exact (hfix A hA).symm.trans hleft + +theorem closedOperatorOrbit_projection_mem_commutant + (S : StarSubalgebra ℂ (H →L[ℂ] H)) (x : H) : + (operatorOrbit S x).topologicalClosure.starProjection ∈ commutantOf (S : Set (H →L[ℂ] H)) := by + rw [mem_commutantOf_iff, StarMemClass.star_coe_eq, Set.union_self] + apply Set.mem_centralizer_iff.mpr + intro A hA + exact starProjection_commutes_of_invariant S _ + (fun B hB y hy => closedOperatorOrbit_invariant S x hB hy) hA + +/-- Every double-commutant operator sends a vector into its actual closed orbit. -/ +theorem bicommutant_apply_mem_closedOrbit + (S : StarSubalgebra ℂ (H →L[ℂ] H)) {T : H →L[ℂ] H} + (hT : T ∈ generatedVNA (S : Set (H →L[ℂ] H))) (x : H) : + T x ∈ (operatorOrbit S x).topologicalClosure := by + let K := (operatorOrbit S x).topologicalClosure + have hx : x ∈ K := (operatorOrbit S x).le_topologicalClosure ⟨1, S.one_mem, by simp⟩ + have hc := (VonNeumannAlgebra.mem_commutant_iff.mp hT) + K.starProjection (closedOperatorOrbit_projection_mem_commutant S x) + apply Submodule.starProjection_eq_self_iff.mp + have he := congrArg (fun A : H →L[ℂ] H => A x) hc + simpa only [mul_apply_eq_comp, + Submodule.starProjection_eq_self_iff.mpr hx] using he + +/-- Actual approximation on one vector, with no operator-norm bound yet. -/ +theorem bicommutant_approximate_one_vector + (S : StarSubalgebra ℂ (H →L[ℂ] H)) {T : H →L[ℂ] H} + (hT : T ∈ generatedVNA (S : Set (H →L[ℂ] H))) (x : H) {ε : ℝ} (hε : 0 < ε) : + ∃ A ∈ S, ‖T x - A x‖ < ε := by + obtain ⟨y, ⟨A, hA, rfl⟩, hy⟩ := Metric.mem_closure_iff.mp + (bicommutant_apply_mem_closedOrbit S hT x) ε hε + exact ⟨A, hA, by simpa only [dist_eq_norm] using hy⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/BicommutantSelfAdjoint.lean b/LeanPool/VacuumBellSeparation/Bell/BicommutantSelfAdjoint.lean new file mode 100644 index 0000000000..ed8950ee87 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/BicommutantSelfAdjoint.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.BicommutantStrongDensity +public import Mathlib.Analysis.LocallyConvex.WeakSpace + +/-! +# Selfadjoint finite-vector approximation + +Symmetrization of a strong approximation net converges weakly. Its tuple +orbits form a real linear subspace. Hahn--Banach equality of weak and norm +closures for real convex sets gives actual selfadjoint approximation on +every finite family. No continuity of adjoint in the strong topology is +assumed, and no norm bound on approximants is claimed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology +open scoped InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem tendsto_toWeakSpace_of_inner {α : Type*} {l : Filter α} {xs : α → H} {x : H} + (h : ∀ y : H, Tendsto (fun i => ⟪y, xs i⟫_ℂ) l (𝓝 ⟪y, x⟫_ℂ)) : + Tendsto (fun i => toWeakSpace ℂ H (xs i)) l (𝓝 (toWeakSpace ℂ H x)) := by + have hinj : Function.Injective (topDualPairing ℂ H).flip := by + intro u v huv + apply ext_inner_left ℂ + intro y + exact congrArg (fun f => f (InnerProductSpace.toDual ℂ H y)) huv + apply (WeakBilin.tendsto_iff_forall_eval_tendsto (topDualPairing ℂ H).flip hinj).mpr + intro f + change Tendsto (fun i => f (xs i)) l (𝓝 (f x)) + simpa only [InnerProductSpace.toDual_symm_apply] using h ((InnerProductSpace.toDual ℂ H).symm f) + +theorem starSubalgebra_real_smul_mem (S : StarSubalgebra ℂ (H →L[ℂ] H)) + {A : H →L[ℂ] H} (hA : A ∈ S) (c : ℝ) : c • A ∈ S := + (S.toSubalgebra.toSubmodule.restrictScalars ℝ).smul_mem c hA + +/-- The orbit of a finite vector family under all self-adjoint operators in the algebra. -/ +def selfAdjointTupleOrbit (S : StarSubalgebra ℂ (H →L[ℂ] H)) + {ι : Type*} (x : ι → H) : Submodule ℝ (PiLp 2 (fun _ : ι => H)) where + carrier := {y | ∃ A ∈ S, IsSelfAdjoint A ∧ WithLp.toLp 2 (fun i => A (x i)) = y} + zero_mem' := ⟨0, S.zero_mem, IsSelfAdjoint.zero _, by ext i; simp⟩ + add_mem' := by + rintro y z ⟨A, hA, hsa, rfl⟩ ⟨B, hB, hsb, rfl⟩ + exact ⟨A + B, S.add_mem hA hB, hsa.add hsb, by ext i; simp⟩ + smul_mem' := by + rintro c y ⟨A, hA, hsa, rfl⟩ + exact ⟨c • A, starSubalgebra_real_smul_mem S hA c, + (IsSelfAdjoint.all c).smul hsa, by ext i; simp⟩ + +theorem symmetrized_strong_net_weak {α : Type*} {l : Filter α} + {As : α → (H →L[ℂ] H)} {T : H →L[ℂ] H} (hT : IsSelfAdjoint T) + (hAs : ∀ x : H, Tendsto (fun i => As i x) l (𝓝 (T x))) (x y : H) : + Tendsto (fun i => ⟪y, ((1 / 2 : ℂ) • (As i + star (As i))) x⟫_ℂ) + l (𝓝 ⟪y, T x⟫_ℂ) := by + have hstar : Tendsto (fun i => ⟪y, star (As i) x⟫_ℂ) l (𝓝 ⟪y, T x⟫_ℂ) := by + have h := (hAs y).inner (𝕜 := ℂ) (tendsto_const_nhds (x := x)) + have he : ⟪T y, x⟫_ℂ = ⟪y, T x⟫_ℂ := hT.isSymmetric y x + simpa only [ContinuousLinearMap.star_eq_adjoint, + ContinuousLinearMap.adjoint_inner_right, he] using h + have h := ((tendsto_const_nhds (x := y)).inner (hAs x)).add hstar + have hh := h.const_mul (1 / 2 : ℂ) + convert hh using 1 + · ext i + simp only [smul_apply, add_apply, inner_smul_right, inner_add_right] + · congr 1 + ring + +/-- The actual selfadjoint orbit has the target tuple in its norm closure. -/ +theorem selfAdjoint_bicommutant_tuple_mem_closure + (S : StarSubalgebra ℂ (H →L[ℂ] H)) {T : H →L[ℂ] H} + (hT : T ∈ generatedVNA (S : Set (H →L[ℂ] H))) (hsa : IsSelfAdjoint T) + {ι : Type*} [Finite ι] (x : ι → H) : + WithLp.toLp 2 (fun i => T (x i)) ∈ closure (selfAdjointTupleOrbit S x : Set _) := by + classical + let _ : Fintype ι := Fintype.ofFinite ι + obtain ⟨As, hmem, hstrong⟩ := exists_strong_approximation_in_starSubalgebra S hT + let Bs := fun j => (1 / 2 : ℂ) • (As j + star (As j)) + let ys := fun j => WithLp.toLp 2 (fun i => Bs j (x i)) + let y := WithLp.toLp 2 (fun i => T (x i)) + have hys : ∀ j, ys j ∈ selfAdjointTupleOrbit S x := by + intro j + refine ⟨Bs j, S.smul_mem (S.add_mem (hmem j) (S.star_mem' (hmem j))) _, ?_, rfl⟩ + exact (show IsSelfAdjoint (1 / 2 : ℂ) by simp [isSelfAdjoint_iff]).smul + (IsSelfAdjoint.add_star_self (As j)) + have hweak : Tendsto (fun j => toWeakSpace ℂ _ (ys j)) atTop (𝓝 (toWeakSpace ℂ _ y)) := by + apply tendsto_toWeakSpace_of_inner + intro z + change Tendsto (fun j => ∑ i, ⟪z i, Bs j (x i)⟫_ℂ) atTop + (𝓝 (∑ i, ⟪z i, T (x i)⟫_ℂ)) + exact tendsto_finsetSum _ (fun i _ => symmetrized_strong_net_weak hsa hstrong (x i) (z i)) + have hc := mem_closure_of_tendsto hweak + (Eventually.of_forall (fun j => Set.mem_image_of_mem (toWeakSpace ℂ _) (hys j))) + rw [← (selfAdjointTupleOrbit S x).convex.toWeakSpace_closure ℂ] at hc + obtain ⟨v, hv, he⟩ := hc + have he' : v = y := (toWeakSpace ℂ _).injective he + change y ∈ closure (selfAdjointTupleOrbit S x : Set _) + exact he' ▸ hv + +theorem selfAdjoint_bicommutant_approximate_finite_family + (S : StarSubalgebra ℂ (H →L[ℂ] H)) {T : H →L[ℂ] H} + (hT : T ∈ generatedVNA (S : Set (H →L[ℂ] H))) (hsa : IsSelfAdjoint T) + {ι : Type*} [Finite ι] (x : ι → H) {ε : ℝ} (hε : 0 < ε) : + ∃ A ∈ S, IsSelfAdjoint A ∧ ∀ i, ‖T (x i) - A (x i)‖ < ε := by + let _ : Fintype ι := Fintype.ofFinite ι + obtain ⟨y, ⟨A, hA, hself, rfl⟩, hdist⟩ := Metric.mem_closure_iff.mp + (selfAdjoint_bicommutant_tuple_mem_closure S hT hsa x) ε hε + refine ⟨A, hA, hself, fun i => ?_⟩ + exact lt_of_le_of_lt (PiLp.norm_apply_le + (WithLp.toLp 2 (fun i => T (x i)) - WithLp.toLp 2 (fun i => A (x i))) i) + (by simpa only [dist_eq_norm] using hdist) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/BicommutantStrongDensity.lean b/LeanPool/VacuumBellSeparation/Bell/BicommutantStrongDensity.lean new file mode 100644 index 0000000000..9405a03699 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/BicommutantStrongDensity.lean @@ -0,0 +1,51 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.BicommutantFiniteApproximation + +/-! +# Actual strong approximation nets in a unital star algebra + +Finite subsets of the Hilbert space and increasing accuracy index a net +of algebra elements converging strongly to every double-commutant +operator. These approximants need not be norm bounded or selfadjoint. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem exists_strong_approximation_in_starSubalgebra + (S : StarSubalgebra ℂ (H →L[ℂ] H)) {T : H →L[ℂ] H} + (hT : T ∈ generatedVNA (S : Set (H →L[ℂ] H))) : + ∃ As : (Finset H × ℕ) → (H →L[ℂ] H), + (∀ i, As i ∈ S) ∧ ∀ x : H, Tendsto (fun i => As i x) atTop (𝓝 (T x)) := by + classical + have happrox : ∀ i : Finset H × ℕ, ∃ A ∈ S, + ∀ x ∈ i.1, ‖T x - A x‖ < 1 / ((i.2 : ℝ) + 1) := by + intro i + exact bicommutant_approximate_finset S hT i.1 (by positivity) + choose As hmem hdist using happrox + refine ⟨As, hmem, fun x => Metric.tendsto_nhds.mpr ?_⟩ + intro ε hε + obtain ⟨N, hN⟩ := exists_nat_one_div_lt hε + apply eventually_atTop.mpr + refine ⟨({x}, N), ?_⟩ + intro i hi + have hxi : x ∈ i.1 := hi.1 (Finset.mem_singleton_self x) + have hden : (N : ℝ) + 1 ≤ (i.2 : ℝ) + 1 := by exact_mod_cast Nat.add_le_add_right hi.2 1 + have hbound : 1 / ((i.2 : ℝ) + 1) ≤ 1 / ((N : ℝ) + 1) := + one_div_le_one_div_of_le (by positivity) hden + rw [dist_eq_norm, norm_sub_rev] + exact (lt_of_lt_of_le (hdist i x hxi) hbound).trans hN + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/BipartiteNormalStateDefs.lean b/LeanPool/VacuumBellSeparation/Bell/BipartiteNormalStateDefs.lean new file mode 100644 index 0000000000..f2e81b70f6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/BipartiteNormalStateDefs.lean @@ -0,0 +1,84 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Defs + +/-! +Joint von Neumann algebras and their state functionals, following HC00, +arXiv:math-ph/9909013v3, Section III. A positive functional is normal when +it preserves positive directed suprema. +-/ + +@[expose] public section + +universe u +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder InnerProductSpace + +variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The actual jointly generated von Neumann algebra in the original H. -/ +noncomputable def jointAlgebra (A B : VonNeumannAlgebra H) : VonNeumannAlgebra H := + generatedVNA ((A : Set (H →L[ℂ] H)) ∪ (B : Set (H →L[ℂ] H))) + +/-- A complex-linear, positive, unital functional on M itself. +Continuity follows from positivity on the closed C-star algebra; normality does not. -/ +def IsStateFunctional (M : VonNeumannAlgebra H) + (f : M.toStarSubalgebra → ℂ) : Prop := + ∃ φ : M.toStarSubalgebra →ₚ[ℂ] ℂ, φ 1 = 1 ∧ ∀ X, φ X = f X + +/-- Order-normality of a positive functional. All directed sets are quantified, +not merely sequences. Existence of the displayed upper bound already implies +boundedness of the directed positive set. For positive functionals, equivalence with +continuity in the weak topology of the coefficient predual is proved +(`isNormalFunctional_iff_continuous_coefficientWeak` in `Bell/CoefficientWeakTopology.lean`), +and so is normality of vector functionals (`vectorFunctional_isNormal` in +`Bell/VectorFunctionalNormal.lean`). -/ +def IsNormalFunctional (M : VonNeumannAlgebra H) + (f : M.toStarSubalgebra → ℂ) : Prop := + ∀ s : Set M.toStarSubalgebra, s.Nonempty → DirectedOn (· ≤ ·) s → + (∀ X ∈ s, 0 ≤ X) → ∀ X : M.toStarSubalgebra, + IsLUB s X → IsLUB ((fun Y => (f Y).re) '' s) (f X).re + +/-- A positive unital functional which preserves suprema of bounded directed sets of positive +operators. -/ +def IsNormalStateFunctional (M : VonNeumannAlgebra H) + (f : M.toStarSubalgebra → ℂ) : Prop := + IsStateFunctional M f ∧ IsNormalFunctional M f + +/-- Product factorization of a joint state across the original A and B. +For a unital state the two factors are exactly its own marginal restrictions; +this avoids arbitrary ambient-state extensions. -/ +def HasProductFactorization (A B : VonNeumannAlgebra H) + (f : (jointAlgebra A B).toStarSubalgebra → ℂ) : Prop := + ∀ X Y : (jointAlgebra A B).toStarSubalgebra, + (X : H →L[ℂ] H) ∈ A → (Y : H →L[ℂ] H) ∈ B → + f (X * Y) = f X * f Y + +/-- A normal state on the joint algebra whose expectations of products factor over the two local +algebras. -/ +def IsNormalProductState (A B : VonNeumannAlgebra H) + (f : (jointAlgebra A B).toStarSubalgebra → ℂ) : Prop := + IsNormalStateFunctional (jointAlgebra A B) f ∧ HasProductFactorization A B f + +/-- The actual vector functional restricted to M, with mathlib's inner product +linear in its second argument. The unit-vector premise belongs to its proofs. -/ +noncomputable def vectorFunctional (M : VonNeumannAlgebra H) (Ω : H) : + M.toStarSubalgebra → ℂ := + fun X => ⟪Ω, (X : H →L[ℂ] H) Ω⟫_ℂ + +/-- Full-H cyclicity, not cyclicity in a preselected cyclic subspace. -/ +def IsCyclicForAlgebra (M : VonNeumannAlgebra H) (Ω : H) : Prop := + (Submodule.span ℂ {x : H | ∃ X : H →L[ℂ] H, X ∈ M ∧ x = X Ω}).topologicalClosure = ⊤ + +/-- The algebra contains a pair of operators that do not commute. -/ +def IsNonabelian (M : VonNeumannAlgebra H) : Prop := + ∃ X ∈ M, ∃ Y ∈ M, X * Y ≠ Y * X + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/BoundedWOTFunctionalContinuity.lean b/LeanPool/VacuumBellSeparation/Bell/BoundedWOTFunctionalContinuity.lean new file mode 100644 index 0000000000..fa2ef06912 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/BoundedWOTFunctionalContinuity.lean @@ -0,0 +1,118 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.VNAWeakOperatorCompactness +public import Mathlib.Topology.MetricSpace.Pseudo.Defs +public import Mathlib.Topology.Algebra.Monoid + +/-! +# Full-dual norm approximation gives continuity on actual bounded WOT balls + +The ball has the subspace topology from the actual weak operator topology, +not the operator norm topology. The approximation premise concerns finite +matrix coefficients in the ORIGINAL Hilbert space. No normal-functional +representation or normality-to-ultraweak equivalence is assumed or proved. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter +open scoped Topology InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The original VNA's radius-R operator ball with its actual WOT topology. -/ +def vnaWOTBall (M : VonNeumannAlgebra H) (R : ℝ) := + {T : H →WOT[ℂ] H // T.toCLM ∈ M ∧ ‖T.toCLM‖ ≤ R} + +/-- The defining subtype carries the topology induced by the actual WOT. -/ +instance vnaWOTBall.instTopologicalSpace (M : VonNeumannAlgebra H) (R : ℝ) : + TopologicalSpace (vnaWOTBall M R) := + inferInstanceAs (TopologicalSpace + {T : H →WOT[ℂ] H // T.toCLM ∈ M ∧ ‖T.toCLM‖ ≤ R}) + +/-- This map only forgets the WOT topology; continuity in operator norm is +neither used nor asserted. -/ +def vnaWOTBallElement {M : VonNeumannAlgebra H} {R : ℝ} + (T : vnaWOTBall M R) : M.toStarSubalgebra := + ⟨T.1.toCLM, T.2.1⟩ + +/-- Literal finite original-H coefficient representation; n=0 includes zero. -/ +def IsFiniteVectorCoefficient (M : VonNeumannAlgebra H) + (f : StrongDual ℂ M.toStarSubalgebra) : Prop := + ∃ (n : ℕ) (x y : Fin n → H) (c : Fin n → ℂ), + ∀ T : M.toStarSubalgebra, + f T = ∑ i, c i * inner ℂ (x i) ((T : H →L[ℂ] H) (y i)) + +theorem continuous_vnaWOTBall_eval_of_finite_coefficients + (M : VonNeumannAlgebra H) (R : ℝ) + (f : StrongDual ℂ M.toStarSubalgebra) (hf : IsFiniteVectorCoefficient M f) : + Continuous (fun T : vnaWOTBall M R => f (vnaWOTBallElement T)) := by + obtain ⟨n, x, y, c, he⟩ := hf + have heq : (fun T : vnaWOTBall M R => f (vnaWOTBallElement T)) = + fun T => ∑ i, c i * inner ℂ (x i) (T.1 (y i)) := by + funext T + exact he (vnaWOTBallElement T) + rw [heq] + apply continuous_finsetSum + intro i _ + apply continuous_const.mul + exact (ContinuousLinearMapWOT.continuous_iff.mp + (continuous_subtype_val : Continuous (fun T : vnaWOTBall M R => T.1))) (y i) (x i) + +/-- Uniform control comes from the FULL continuous-dual norm. There is no +operator-norm continuity assumption on the WOT ball itself. -/ +theorem continuous_vnaWOTBall_eval_of_norm_approximation + (M : VonNeumannAlgebra H) (R : ℝ) + (f : StrongDual ℂ M.toStarSubalgebra) + (happrox : ∀ ε : ℝ, 0 < ε → ∃ g : StrongDual ℂ M.toStarSubalgebra, + Continuous (fun T : vnaWOTBall M R => g (vnaWOTBallElement T)) ∧ ‖f - g‖ < ε) : + Continuous (fun T : vnaWOTBall M R => f (vnaWOTBallElement T)) := by + apply Metric.continuous_iff'.mpr + intro T₀ ε hε + obtain ⟨δ, hδ, hδε⟩ := exists_pos_mul_lt (half_pos hε) (2 * R) + obtain ⟨g, hg, hfg⟩ := happrox δ hδ + have hb (T : vnaWOTBall M R) : + dist (f (vnaWOTBallElement T)) (g (vnaWOTBallElement T)) ≤ δ * R := by + calc + _ = ‖(f - g) (vnaWOTBallElement T)‖ := by + rw [dist_eq_norm, sub_apply] + _ ≤ ‖f - g‖ * ‖vnaWOTBallElement T‖ := (f - g).le_opNorm _ + _ ≤ δ * R := mul_le_mul hfg.le T.2.2 (norm_nonneg _) hδ.le + have he := (Metric.continuous_iff'.mp hg) T₀ (ε / 2) (half_pos hε) + filter_upwards [he] with T hT + have h1 := hb T + have h0 := hb T₀ + have ht1 := dist_triangle (f (vnaWOTBallElement T)) + (g (vnaWOTBallElement T)) (f (vnaWOTBallElement T₀)) + have ht2 := dist_triangle (g (vnaWOTBallElement T)) + (g (vnaWOTBallElement T₀)) (f (vnaWOTBallElement T₀)) + rw [dist_comm (g (vnaWOTBallElement T₀)) (f (vnaWOTBallElement T₀))] at ht2 + nlinarith + +/-- Concrete norm-closure-to-WOT bridge for later normal representation work. +Membership in this norm closure is the displayed premise, not inferred from +order normality or from membership in the positive normal cone. -/ +theorem continuous_vnaWOTBall_eval_of_mem_closure_coefficients + (M : VonNeumannAlgebra H) (R : ℝ) + (f : StrongDual ℂ M.toStarSubalgebra) + (hf : f ∈ closure {g : StrongDual ℂ M.toStarSubalgebra | + IsFiniteVectorCoefficient M g}) : + Continuous (fun T : vnaWOTBall M R => f (vnaWOTBallElement T)) := by + apply continuous_vnaWOTBall_eval_of_norm_approximation M R f + intro ε hε + obtain ⟨g, hg, hfg⟩ := (Metric.mem_closure_iff + (α := StrongDual ℂ M.toStarSubalgebra)).mp hf ε hε + refine ⟨g, continuous_vnaWOTBall_eval_of_finite_coefficients M R g hg, ?_⟩ + have hdist : dist f g = ‖f - g‖ := _root_.dist_eq_norm f g + exact hdist ▸ hfg + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/Cells.lean b/LeanPool/VacuumBellSeparation/Bell/Cells.lean new file mode 100644 index 0000000000..e9b6edc952 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/Cells.lean @@ -0,0 +1,260 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Defs +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Instances +public import Mathlib.Analysis.InnerProductSpace.StarOrder +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Unique +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Basic + +/-! +# Outcome effects, cell probabilities and correlators + +For a self-adjoint contraction `A` the binary measurement has outcome effects `(1 ± A)/2`. +For commuting algebras the products of outcome effects are positive, so a state assigns +them probabilities (`cellProb`), and the correlator `ω (A * B)` is the signed sum of the +four cell probabilities. +-/ + +@[expose] public section + +open scoped ComplexOrder + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-! ### Product of commuting positive operators -/ + +/-- The product of two commuting positive operators is positive. -/ +theorem isPositive_mul_of_commute {E P : H →L[ℂ] H} (hE : E.IsPositive) (hP : P.IsPositive) + (h : E * P = P * E) : (E * P).IsPositive := by + have hE' : (0 : H →L[ℂ] H) ≤ E := ContinuousLinearMap.nonneg_iff_isPositive.mpr hE + have hP' : (0 : H →L[ℂ] H) ≤ P := ContinuousLinearMap.nonneg_iff_isPositive.mpr hP + have hc : Commute E P := h + exact ContinuousLinearMap.nonneg_iff_isPositive.mp (Commute.mul_nonneg hE' hP' hc) + +/-! ### Linearity of states -/ + +theorem state_add (ω : State H) (S T : H →L[ℂ] H) : ω (S + T) = ω S + ω T := + map_add ω.toLinearMap S T + +theorem state_sub (ω : State H) (S T : H →L[ℂ] H) : ω (S - T) = ω S - ω T := + map_sub ω.toLinearMap S T + +theorem state_one (ω : State H) : ω (1 : H →L[ℂ] H) = 1 := + ω.map_one' + +/-- A complex number with vanishing imaginary part is the cast of its real part. -/ +theorem ofReal_re_eq_of_im_eq_zero {z : ℂ} (h : z.im = 0) : ((z.re : ℝ) : ℂ) = z := + Complex.ext (Complex.ofReal_re _) (by rw [Complex.ofReal_im, h]) + +/-! ### Positivity of `1 ± A` for a self-adjoint contraction -/ + +theorem isPositive_one_add_of_saContraction {A : H →L[ℂ] H} (hsa : IsSelfAdjoint A) + (hn : ‖A‖ ≤ 1) : (1 + A).IsPositive := by + have h1sa : IsSelfAdjoint (1 : H →L[ℂ] H) := by + first | exact IsSelfAdjoint.one _ + refine ContinuousLinearMap.isPositive_def'.mpr ⟨h1sa.add hsa, fun x => ?_⟩ + change 0 ≤ RCLike.re (inner ℂ ((1 + A) x) x) + have h1 : ‖A x‖ ≤ ‖x‖ := + calc ‖A x‖ ≤ ‖A‖ * ‖x‖ := A.le_opNorm x + _ ≤ 1 * ‖x‖ := mul_le_mul_of_nonneg_right hn (norm_nonneg x) + _ = ‖x‖ := one_mul _ + have h2 : |RCLike.re (inner ℂ (A x) x)| ≤ ‖x‖ * ‖x‖ := + calc |RCLike.re (inner ℂ (A x) x)| ≤ ‖inner ℂ (A x) x‖ := RCLike.abs_re_le_norm _ + _ ≤ ‖A x‖ * ‖x‖ := norm_inner_le_norm .. + _ ≤ ‖x‖ * ‖x‖ := mul_le_mul_of_nonneg_right h1 (norm_nonneg x) + have key : RCLike.re (inner ℂ ((1 + A) x) x) + = ‖x‖ * ‖x‖ + RCLike.re (inner ℂ (A x) x) := by + first + | rw [add_apply, one_apply_eq_self, inner_add_left, + map_add, inner_self_eq_norm_mul_norm] + rw [key] + have h3 := (abs_le.mp h2).1 + linarith + +theorem isPositive_one_sub_of_saContraction {A : H →L[ℂ] H} (hsa : IsSelfAdjoint A) + (hn : ‖A‖ ≤ 1) : (1 - A).IsPositive := by + have h := isPositive_one_add_of_saContraction hsa.neg (by rwa [norm_neg]) + rwa [← sub_eq_add_neg] at h + +theorem half_nonneg_complex : (0 : ℂ) ≤ (1 / 2 : ℂ) := by + first + | exact Complex.nonneg_iff.mpr ⟨by norm_num, by norm_num⟩ + +/-- Von Neumann algebras are closed under complex scalar multiplication. -/ +theorem smul_mem_vonNeumann (M : VonNeumannAlgebra H) (c : ℂ) {x : H →L[ℂ] H} (hx : x ∈ M) : + c • x ∈ M := by + first + | exact (show c • x ∈ M.toStarSubalgebra from M.toStarSubalgebra.smul_mem hx c) + +/-! ### Outcome effects -/ + +/-- outcome `true` ↦ `(1 + A)/2`, outcome `false` ↦ `(1 - A)/2`. -/ +noncomputable def outcomeEffect (A : H →L[ℂ] H) (α : Bool) : H →L[ℂ] H := + if α then (1 / 2 : ℂ) • (1 + A) else (1 / 2 : ℂ) • (1 - A) + +omit [CompleteSpace H] in +theorem outcomeEffect_true (A : H →L[ℂ] H) : + outcomeEffect A true = (1 / 2 : ℂ) • (1 + A) := by + first | rfl + +omit [CompleteSpace H] in +theorem outcomeEffect_false (A : H →L[ℂ] H) : + outcomeEffect A false = (1 / 2 : ℂ) • (1 - A) := by + first | rfl + +omit [CompleteSpace H] in +theorem outcomeEffect_true_add_false (A : H →L[ℂ] H) : + outcomeEffect A true + outcomeEffect A false = 1 := by + rw [outcomeEffect_true, outcomeEffect_false] + have h2 : (1 + A) + (1 - A) = (2 : ℂ) • (1 : H →L[ℂ] H) := by + rw [two_smul]; abel + first + | module + + +omit [CompleteSpace H] in +theorem outcomeEffect_true_sub_false (A : H →L[ℂ] H) : + outcomeEffect A true - outcomeEffect A false = A := by + rw [outcomeEffect_true, outcomeEffect_false] + have h2 : (1 + A) - (1 - A) = (2 : ℂ) • A := by + rw [two_smul]; abel + first + | module + + +theorem outcomeEffect_isPositive {A : H →L[ℂ] H} (hsa : IsSelfAdjoint A) (hn : ‖A‖ ≤ 1) + (α : Bool) : (outcomeEffect A α).IsPositive := by + cases α with + | false => + rw [outcomeEffect_false] + exact (isPositive_one_sub_of_saContraction hsa hn).smul_of_nonneg half_nonneg_complex + | true => + rw [outcomeEffect_true] + exact (isPositive_one_add_of_saContraction hsa hn).smul_of_nonneg half_nonneg_complex + +theorem outcomeEffect_mem_effects {M : VonNeumannAlgebra H} {A : H →L[ℂ] H} + (hA : A ∈ saContractions M) (α : Bool) : outcomeEffect A α ∈ effects M := by + have hA' : A ∈ M ∧ IsSelfAdjoint A ∧ ‖A‖ ≤ 1 := hA + obtain ⟨hAM, hsa, hn⟩ := hA' + change outcomeEffect A α ∈ M ∧ (outcomeEffect A α).IsPositive ∧ + (1 - outcomeEffect A α).IsPositive + refine ⟨?_, outcomeEffect_isPositive hsa hn α, ?_⟩ + · cases α with + | false => + rw [outcomeEffect_false] + exact smul_mem_vonNeumann M _ (sub_mem (one_mem M) hAM) + | true => + rw [outcomeEffect_true] + exact smul_mem_vonNeumann M _ (add_mem (one_mem M) hAM) + · cases α with + | false => + have h : 1 - outcomeEffect A false = outcomeEffect A true := by + rw [← outcomeEffect_true_add_false A]; abel + rw [h] + exact outcomeEffect_isPositive hsa hn true + | true => + have h : 1 - outcomeEffect A true = outcomeEffect A false := by + rw [← outcomeEffect_true_add_false A]; abel + rw [h] + exact outcomeEffect_isPositive hsa hn false + +/-- For commuting algebras, the product of outcome effects is positive. -/ +theorem outcomeEffect_mul_isPositive {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {A B : H →L[ℂ] H} (hA : A ∈ saContractions 𝔄) (hB : B ∈ saContractions 𝔅) (α β : Bool) : + (outcomeEffect A α * outcomeEffect B β).IsPositive := by + have hE : outcomeEffect A α ∈ 𝔄 ∧ (outcomeEffect A α).IsPositive ∧ + (1 - outcomeEffect A α).IsPositive := outcomeEffect_mem_effects hA α + have hP : outcomeEffect B β ∈ 𝔅 ∧ (outcomeEffect B β).IsPositive ∧ + (1 - outcomeEffect B β).IsPositive := outcomeEffect_mem_effects hB β + exact isPositive_mul_of_commute hE.2.1 hP.2.1 (hcomm _ hE.1 _ hP.1) + +/-! ### Cell and outcome probabilities -/ + +/-- joint probability of outcomes α (for A) and β (for B) -/ +noncomputable def cellProb (ω : State H) (A B : H →L[ℂ] H) (α β : Bool) : ℝ := + (ω (outcomeEffect A α * outcomeEffect B β)).re + +/-- probability of outcome α for A -/ +noncomputable def outcomeProb (ω : State H) (A : H →L[ℂ] H) (α : Bool) : ℝ := + (ω (outcomeEffect A α)).re + +theorem cellProb_nonneg (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {A B : H →L[ℂ] H} (hA : A ∈ saContractions 𝔄) (hB : B ∈ saContractions 𝔅) (α β : Bool) : + 0 ≤ cellProb ω A B α β := + (ω.map_nonneg' _ (outcomeEffect_mul_isPositive hcomm hA hB α β)).2 + +theorem ofReal_cellProb (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {A B : H →L[ℂ] H} (hA : A ∈ saContractions 𝔄) (hB : B ∈ saContractions 𝔅) (α β : Bool) : + ((cellProb ω A B α β : ℝ) : ℂ) = ω (outcomeEffect A α * outcomeEffect B β) := + ofReal_re_eq_of_im_eq_zero + (ω.map_nonneg' _ (outcomeEffect_mul_isPositive hcomm hA hB α β)).1 + +theorem ofReal_outcomeProb (ω : State H) {M : VonNeumannAlgebra H} {A : H →L[ℂ] H} + (hA : A ∈ saContractions M) (α : Bool) : + ((outcomeProb ω A α : ℝ) : ℂ) = ω (outcomeEffect A α) := by + have hE : outcomeEffect A α ∈ M ∧ (outcomeEffect A α).IsPositive ∧ + (1 - outcomeEffect A α).IsPositive := outcomeEffect_mem_effects hA α + exact ofReal_re_eq_of_im_eq_zero (ω.map_nonneg' _ hE.2.1).1 + +theorem outcomeProb_nonneg (ω : State H) {M : VonNeumannAlgebra H} {A : H →L[ℂ] H} + (hA : A ∈ saContractions M) (α : Bool) : 0 ≤ outcomeProb ω A α := by + have hE : outcomeEffect A α ∈ M ∧ (outcomeEffect A α).IsPositive ∧ + (1 - outcomeEffect A α).IsPositive := outcomeEffect_mem_effects hA α + exact (ω.map_nonneg' _ hE.2.1).2 + +theorem cellProb_add_right (ω : State H) (A B : H →L[ℂ] H) (α : Bool) : + cellProb ω A B α true + cellProb ω A B α false = outcomeProb ω A α := by + unfold cellProb outcomeProb + rw [← Complex.add_re, ← state_add, ← mul_add, outcomeEffect_true_add_false, mul_one] + +theorem cellProb_add_left (ω : State H) (A B : H →L[ℂ] H) (β : Bool) : + cellProb ω A B true β + cellProb ω A B false β = outcomeProb ω B β := by + unfold cellProb outcomeProb + rw [← Complex.add_re, ← state_add, ← add_mul, outcomeEffect_true_add_false, one_mul] + +theorem outcomeProb_true_add_false (ω : State H) (A : H →L[ℂ] H) : + outcomeProb ω A true + outcomeProb ω A false = 1 := by + unfold outcomeProb + rw [← Complex.add_re, ← state_add, outcomeEffect_true_add_false, state_one, Complex.one_re] + +/-! ### Correlators as real numbers -/ + +omit [CompleteSpace H] in +theorem mul_eq_outcomeEffect_cells (A B : H →L[ℂ] H) : + A * B = outcomeEffect A true * outcomeEffect B true + + outcomeEffect A false * outcomeEffect B false + - outcomeEffect A true * outcomeEffect B false + - outcomeEffect A false * outcomeEffect B true := + calc A * B = (outcomeEffect A true - outcomeEffect A false) + * (outcomeEffect B true - outcomeEffect B false) := by + rw [outcomeEffect_true_sub_false, outcomeEffect_true_sub_false] + _ = _ := by + first + | noncomm_ring + +theorem state_mul_eq_cells (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {A B : H →L[ℂ] H} (hA : A ∈ saContractions 𝔄) (hB : B ∈ saContractions 𝔅) : + ω (A * B) = ((cellProb ω A B true true + cellProb ω A B false false + - cellProb ω A B true false - cellProb ω A B false true : ℝ) : ℂ) := by + rw [Complex.ofReal_sub, Complex.ofReal_sub, Complex.ofReal_add, + ofReal_cellProb ω hcomm hA hB true true, ofReal_cellProb ω hcomm hA hB false false, + ofReal_cellProb ω hcomm hA hB true false, ofReal_cellProb ω hcomm hA hB false true, + ← state_add, ← state_sub, ← state_sub, ← mul_eq_outcomeEffect_cells] + +theorem state_eq_outcomes (ω : State H) {M : VonNeumannAlgebra H} {A : H →L[ℂ] H} + (hA : A ∈ saContractions M) : + ω A = ((outcomeProb ω A true - outcomeProb ω A false : ℝ) : ℂ) := by + rw [Complex.ofReal_sub, ofReal_outcomeProb ω hA true, ofReal_outcomeProb ω hA false, + ← state_sub, outcomeEffect_true_sub_false] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/ClosedCyclicSpan.lean b/LeanPool/VacuumBellSeparation/Bell/ClosedCyclicSpan.lean new file mode 100644 index 0000000000..d6b1781caf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/ClosedCyclicSpan.lean @@ -0,0 +1,78 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.BicommutantOrbit + +/-! +# Closed cyclic spans and actual reducing subspaces + +These lemmas use the literal closed span of a family of vectors. Invariance +of the generators and their adjoints makes its orthogonal projection commute +with the generated von Neumann algebra. No cyclicity assumption is inserted. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Closure of the complex linear span of the given vectors. -/ +def closedCyclicSpan {ι : Type*} (v : ι → H) : Submodule ℂ H := + (Submodule.span ℂ (Set.range v)).topologicalClosure + +omit [CompleteSpace H] in +theorem mem_closedCyclicSpan {ι : Type*} (v : ι → H) (i : ι) : + v i ∈ closedCyclicSpan v := + (Submodule.span ℂ (Set.range v)).le_topologicalClosure (Submodule.subset_span ⟨i, rfl⟩) + +omit [CompleteSpace H] in +theorem closedCyclicSpan_invariant {ι : Type*} (v : ι → H) (A : H →L[ℂ] H) + (hA : ∀ i, A (v i) ∈ closedCyclicSpan v) {x : H} (hx : x ∈ closedCyclicSpan v) : + A x ∈ closedCyclicSpan v := by + have hs : Submodule.span ℂ (Set.range v) ≤ (closedCyclicSpan v).comap A.toLinearMap := by + apply Submodule.span_le.mpr + rintro _ ⟨i, rfl⟩ + exact hA i + exact closure_minimal hs + ((Submodule.span ℂ (Set.range v)).isClosed_topologicalClosure.preimage A.continuous) hx + +/-- A subspace invariant under an operator and its adjoint is genuinely reducing. -/ +theorem starProjection_commutes_of_invariant_pair (K : Submodule ℂ H) + [K.HasOrthogonalProjection] (A : H →L[ℂ] H) + (hA : ∀ x ∈ K, A x ∈ K) (hstar : ∀ x ∈ K, star A x ∈ K) : + A * K.starProjection = K.starProjection * A := by + have hfix (B : H →L[ℂ] H) (hB : ∀ x ∈ K, B x ∈ K) : + K.starProjection * B * K.starProjection = B * K.starProjection := by + ext x + exact Submodule.starProjection_eq_self_iff.mpr (hB _ (K.starProjection_apply_mem x)) + have hleft : K.starProjection * A * K.starProjection = K.starProjection * A := by + have h := congrArg star (hfix (star A) hstar) + simpa only [star_mul, star_star, (isSelfAdjoint_starProjection K).star_eq, + mul_assoc] using h + exact (hfix A hA).symm.trans hleft + +/-- Generator invariance and adjoint invariance imply invariance under the +actual double commutant, using its commutation with the subspace projection. -/ +theorem generatedVNA_invariant_of_reducing (K : Submodule ℂ H) + [K.HasOrthogonalProjection] (S : Set (H →L[ℂ] H)) + (hS : ∀ A ∈ S, (∀ x ∈ K, A x ∈ K) ∧ (∀ x ∈ K, star A x ∈ K)) + {T : H →L[ℂ] H} (hT : T ∈ generatedVNA S) {x : H} (hx : x ∈ K) : + T x ∈ K := by + have hP : K.starProjection ∈ commutantOf S := by + apply (StarSubalgebra.mem_centralizer_iff ℂ).mpr + intro A hA + refine ⟨starProjection_commutes_of_invariant_pair K A (hS A hA).1 (hS A hA).2, ?_⟩ + apply starProjection_commutes_of_invariant_pair K (star A) (hS A hA).2 + simpa only [star_star] using (hS A hA).1 + have hc := VonNeumannAlgebra.mem_commutant_iff.mp hT K.starProjection hP + apply Submodule.starProjection_eq_self_iff.mp + simpa only [mul_apply_eq_comp, Submodule.starProjection_eq_self_iff.mpr hx] using + congrArg (fun B : H →L[ℂ] H => B x) hc + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/ClosedSpectralThreshold.lean b/LeanPool/VacuumBellSeparation/Bell/ClosedSpectralThreshold.lean new file mode 100644 index 0000000000..c795dd103a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/ClosedSpectralThreshold.lean @@ -0,0 +1,153 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.SpectralThreshold +public import LeanPool.VacuumBellSeparation.Bell.ReflectionApprox +public import Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic + +/-! +The actual closed upper spectral cut: 1 minus the range projection of +the positive part of u I - A. Thus eigenvectors at the threshold are +included, unlike the existing strict upper cut of A - u I. +Only scalar matrix elements are integrated; operator-norm Bochner +measurability of the projection family is not assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Spectral projection of a self-adjoint operator onto the closed upper interval at the +threshold. -/ +def closedThresholdProjection (A : H →L[ℂ] H) (u : ℝ) : H →L[ℂ] H := + 1 - thresholdProjection (-A) (-u) + +theorem closedThresholdProjection_eq (A : H →L[ℂ] H) (u : ℝ) : + closedThresholdProjection A u = + 1 - rangeProjection (((u : ℂ) • (1 : H →L[ℂ] H) - A)⁺) := by + have he : -A - ((-u : ℝ) : ℂ) • (1 : H →L[ℂ] H) = + (u : ℂ) • (1 : H →L[ℂ] H) - A := by + rw [Complex.ofReal_neg, neg_smul] + abel + rw [closedThresholdProjection, thresholdProjection, he] + +theorem closedThresholdProjection_mem (M : VonNeumannAlgebra H) + {A : H →L[ℂ] H} (hA : A ∈ M) (u : ℝ) : closedThresholdProjection A u ∈ M := + sub_mem (one_mem M) (thresholdProjection_mem M (neg_mem hA) (-u)) + +theorem closedThresholdProjection_isSelfAdjoint (A : H →L[ℂ] H) (u : ℝ) : + IsSelfAdjoint (closedThresholdProjection A u) := + ReflectionApprox.isSelfAdjoint_one_op.sub (thresholdProjection_isSelfAdjoint (-A) (-u)) + +theorem closedThresholdProjection_idem (A : H →L[ℂ] H) (u : ℝ) : + closedThresholdProjection A u * closedThresholdProjection A u = + closedThresholdProjection A u := by + simp only [closedThresholdProjection, mul_sub, sub_mul, one_mul, mul_one, + thresholdProjection_idem] + abel + +theorem closedThresholdProjection_commute_self {A : H →L[ℂ] H} + (hA : IsSelfAdjoint A) (u : ℝ) : + closedThresholdProjection A u * A = A * closedThresholdProjection A u := by + have h := thresholdProjection_commute_self hA.neg (-u) + have hc : thresholdProjection (-A) (-u) * A = A * thresholdProjection (-A) (-u) := by + simpa only [mul_neg, neg_mul, neg_inj] using h + simp only [closedThresholdProjection, sub_mul, mul_sub, one_mul, mul_one, hc] + +theorem sub_mul_closedThresholdProjection_isPositive {A : H →L[ℂ] H} + (hA : IsSelfAdjoint A) (u : ℝ) : + ((A - (u : ℂ) • (1 : H →L[ℂ] H)) * closedThresholdProjection A u).IsPositive := by + have he : ((-u : ℝ) : ℂ) • (1 : H →L[ℂ] H) - -A = + A - (u : ℂ) • (1 : H →L[ℂ] H) := by + rw [Complex.ofReal_neg, neg_smul] + abel + simpa only [closedThresholdProjection, he] using + sub_mul_one_sub_thresholdProjection_isPositive hA.neg (-u) + +theorem sub_mul_one_sub_closedThresholdProjection_isPositive {A : H →L[ℂ] H} + (hA : IsSelfAdjoint A) (u : ℝ) : + (((u : ℂ) • (1 : H →L[ℂ] H) - A) * (1 - closedThresholdProjection A u)).IsPositive := by + have he : -A - ((-u : ℝ) : ℂ) • (1 : H →L[ℂ] H) = + (u : ℂ) • (1 : H →L[ℂ] H) - A := by + rw [Complex.ofReal_neg, neg_smul] + abel + simpa only [closedThresholdProjection, sub_sub_cancel, he] using + sub_mul_thresholdProjection_isPositive hA.neg (-u) + +theorem closedThresholdProjection_mul_of_le {A : H →L[ℂ] H} + (hA : IsSelfAdjoint A) {u v : ℝ} (huv : u ≤ v) : + closedThresholdProjection A u * closedThresholdProjection A v = + closedThresholdProjection A v := by + have h := thresholdProjection_mul_of_le hA.neg (neg_le_neg huv) + have hs := congrArg star h + rw [star_mul, (thresholdProjection_isSelfAdjoint (-A) (-u)).star_eq, + (thresholdProjection_isSelfAdjoint (-A) (-v)).star_eq] at hs + simp only [closedThresholdProjection, mul_sub, sub_mul, one_mul, mul_one, hs] + abel + +theorem closedThresholdProjection_sub_isPositive {A : H →L[ℂ] H} + (hA : IsSelfAdjoint A) {u v : ℝ} (huv : u ≤ v) : + (closedThresholdProjection A u - closedThresholdProjection A v).IsPositive := by + have hpq := closedThresholdProjection_mul_of_le hA huv + have hqp := congrArg star hpq + rw [star_mul, (closedThresholdProjection_isSelfAdjoint A u).star_eq, + (closedThresholdProjection_isSelfAdjoint A v).star_eq] at hqp + apply isPositive_of_isSelfAdjoint_of_idem + ((closedThresholdProjection_isSelfAdjoint A u).sub + (closedThresholdProjection_isSelfAdjoint A v)) + simp only [mul_sub, sub_mul, closedThresholdProjection_idem, hpq, hqp] + abel + +/-- Quadratic form of the closed spectral projection evaluated at a vector. -/ +def closedThresholdQuadratic (A : H →L[ℂ] H) (x : H) (u : ℝ) : ℝ := + (⟪x, closedThresholdProjection A u x⟫_ℂ).re + +theorem closedThresholdQuadratic_nonneg (A : H →L[ℂ] H) (x : H) (u : ℝ) : + 0 ≤ closedThresholdQuadratic A x u := + (isPositive_of_isSelfAdjoint_of_idem + (closedThresholdProjection_isSelfAdjoint A u) + (closedThresholdProjection_idem A u)).re_inner_nonneg_right x + +theorem closedThresholdQuadratic_le (A : H →L[ℂ] H) (x : H) (u : ℝ) : + closedThresholdQuadratic A x u ≤ ‖x‖ ^ 2 := by + have hp := (ReflectionApprox.isPositive_one_sub_of_isSelfAdjoint_of_idem + (closedThresholdProjection_isSelfAdjoint A u) + (closedThresholdProjection_idem A u)).re_inner_nonneg_right x + simpa only [closedThresholdQuadratic, RCLike.re_eq_complex_re, sub_apply, + one_apply_eq_self, inner_sub_right, Complex.sub_re, + inner_self_eq_norm_sq_to_K, RCLike.ofReal_eq_complex_ofReal, + ← Complex.ofReal_pow, Complex.ofReal_re, sub_nonneg] using hp + +theorem closedThresholdQuadratic_antitone {A : H →L[ℂ] H} + (hA : IsSelfAdjoint A) (x : H) : Antitone (closedThresholdQuadratic A x) := by + intro u v huv + have hp := (closedThresholdProjection_sub_isPositive hA huv).re_inner_nonneg_right x + simpa only [closedThresholdQuadratic, RCLike.re_eq_complex_re, sub_apply, + inner_sub_right, Complex.sub_re, sub_nonneg] using hp + +theorem closedThresholdQuadratic_intervalIntegrable {A : H →L[ℂ] H} + (hA : IsSelfAdjoint A) (x : H) (a b : ℝ) : + IntervalIntegrable (closedThresholdQuadratic A x) volume a b := + (closedThresholdQuadratic_antitone hA x).intervalIntegrable + +/-- Self-adjoint unitary associated with the closed spectral projection. -/ +def spectralReflection (A : H →L[ℂ] H) (u : ℝ) : H →L[ℂ] H := + (2 : ℂ) • closedThresholdProjection A u - 1 + +theorem spectralReflection_mem (M : VonNeumannAlgebra H) {A : H →L[ℂ] H} + (hA : A ∈ M) (u : ℝ) : spectralReflection A u ∈ reflections M := + two_smul_sub_one_mem_reflections (closedThresholdProjection_mem M hA u) + (closedThresholdProjection_isSelfAdjoint A u) (closedThresholdProjection_idem A u) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/CoefficientNormalStateSpace.lean b/LeanPool/VacuumBellSeparation/Bell/CoefficientNormalStateSpace.lean new file mode 100644 index 0000000000..b4c0dfd910 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/CoefficientNormalStateSpace.lean @@ -0,0 +1,97 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.CoefficientPredualDuality +public import LeanPool.VacuumBellSeparation.Bell.CoefficientWeakTopology +public import LeanPool.VacuumBellSeparation.Bell.SW88MaximalCorrelationEquivalence + +/-! +States in the concrete coefficient Banach predual and the full original +order-normal state space are the same functionals, with exactly the same +norm metric. No normality field is required in the predual-state definition: +it is derived from membership in the actual coefficient space. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open HC00 TopologicalSpace +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Coefficient state space with underlying type `{f : coefficientPredual M // IsStateFunctional M +f.1}`. -/ +abbrev CoefficientStateSpace (M : VonNeumannAlgebra H) := + {f : coefficientPredual M // IsStateFunctional M f.1} + +theorem normalState_mem_coefficientPredual (M : VonNeumannAlgebra H) + (ω : NormalStateSpace M) : ω.1 ∈ coefficientPredual M := by + obtain ⟨φ, _, hφ⟩ := ω.2.1 + have hn : IsNormalFunctional M φ := by + simpa only [IsNormalFunctional, hφ] using ω.2.2 + have he : (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap = ω.1 := + ContinuousLinearMap.ext hφ + rw [← he] + exact (isNormalFunctional_iff_mem_coefficientPredual M φ).mp hn + +theorem coefficientState_isNormal (M : VonNeumannAlgebra H) + (ω : CoefficientStateSpace M) : IsNormalFunctional M ω.1.1 := by + obtain ⟨φ, _, hφ⟩ := ω.2 + have he : (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap = ω.1.1 := + ContinuousLinearMap.ext hφ + have hm : (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap ∈ + coefficientPredual M := he.symm ▸ ω.1.2 + have hn := (isNormalFunctional_iff_mem_coefficientPredual M φ).mpr hm + simpa only [IsNormalFunctional, hφ] using hn + +/-- Identify normal states with positive normalized elements of the coefficient predual. -/ +def coefficientNormalStateEquiv (M : VonNeumannAlgebra H) : + CoefficientStateSpace M ≃ NormalStateSpace M where + toFun ω := ⟨ω.1.1, ω.2, coefficientState_isNormal M ω⟩ + invFun ω := ⟨⟨ω.1, normalState_mem_coefficientPredual M ω⟩, ω.2.1⟩ + left_inv _ := rfl + right_inv _ := rfl + +@[simp] theorem coefficientNormalStateEquiv_apply (M : VonNeumannAlgebra H) + (ω : CoefficientStateSpace M) : (coefficientNormalStateEquiv M ω).1 = ω.1.1 := rfl + +@[simp] theorem coefficientNormalStateEquiv_symm_apply (M : VonNeumannAlgebra H) + (ω : NormalStateSpace M) : ((coefficientNormalStateEquiv M).symm ω).1.1 = ω.1 := rfl + +theorem coefficientNormalStateEquiv_isometry (M : VonNeumannAlgebra H) : + Isometry (coefficientNormalStateEquiv M) := + isometry_iff_dist_eq.mpr (fun _ _ => rfl) + +/-- SW88's statement on states in the explicit actual Banach predual. +The operator algebra is unchanged and its dual identification is proved +separately by coefficientPredualDualEquiv, not a hypothesis here. -/ +theorem SW88.jointSignedBellCorrelation_all_predual_maximal_iff_exists_faithful + [SeparableSpace H] [Nontrivial H] + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) : + (∀ ψ : CoefficientStateSpace (jointAlgebra A B), + jointSignedBellCorrelation A B ψ.1.1 = Real.sqrt 2) ↔ + ∃ ω : CoefficientStateSpace (jointAlgebra A B), + (∀ a : (jointAlgebra A B).toStarSubalgebra, + ω.1.1 (star a * a) = 0 → a = 0) ∧ + jointSignedBellCorrelation A B ω.1.1 = Real.sqrt 2 := by + let e := coefficientNormalStateEquiv (jointAlgebra A B) + constructor + · intro h + have hn (ψ : NormalStateSpace (jointAlgebra A B)) : + jointSignedBellCorrelation A B ψ.1 = Real.sqrt 2 := h (e.symm ψ) + obtain ⟨ω, hf, hm⟩ := + (SW88.jointSignedBellCorrelation_all_normal_maximal_iff_exists_faithful A B hcomm).mp hn + exact ⟨e.symm ω, hf, hm⟩ + · rintro ⟨ω, hf, hm⟩ ψ + exact (SW88.jointSignedBellCorrelation_all_normal_maximal_iff_exists_faithful A B hcomm).mpr + ⟨e ω, hf, hm⟩ (e ψ) + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/CoefficientPredual.lean b/LeanPool/VacuumBellSeparation/Bell/CoefficientPredual.lean new file mode 100644 index 0000000000..892e3e6a5d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/CoefficientPredual.lean @@ -0,0 +1,166 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalityBoundedWOTEquivalence +public import Mathlib.Analysis.InnerProductSpace.LinearMap +public import Mathlib.Topology.Algebra.Module.ContinuousLinearMap.Restrict +public import Mathlib.Topology.Algebra.Module.Basic + +/-! +The norm-closed span of the literal original-H matrix coefficients, inside +the full continuous dual of the original VNA. Its positive cone is exactly +the order-normal positive cone. The canonical evaluation into its dual is +isometric; surjectivity and the predual/ultraweak identification are separate. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped Topology InnerProductSpace ComplexOrder BigOperators + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Continuous linear functional which evaluates a matrix coefficient on the algebra. -/ +def matrixCoefficientDual (M : VonNeumannAlgebra H) (x y : H) : + StrongDual ℂ M.toStarSubalgebra := + ((innerSL ℂ x).comp (ContinuousLinearMap.apply ℂ H y)).comp + M.toStarSubalgebra.toSubmodule.subtypeL + +@[simp] theorem matrixCoefficientDual_apply (M : VonNeumannAlgebra H) (x y : H) + (a : M.toStarSubalgebra) : + matrixCoefficientDual M x y a = inner ℂ x ((a : H →L[ℂ] H) y) := rfl + +theorem matrixCoefficientDual_norm_le (M : VonNeumannAlgebra H) (x y : H) : + ‖matrixCoefficientDual M x y‖ ≤ ‖x‖ * ‖y‖ := by + apply ContinuousLinearMap.opNorm_le_bound _ (mul_nonneg (norm_nonneg _) (norm_nonneg _)) + intro a + calc + ‖matrixCoefficientDual M x y a‖ ≤ ‖x‖ * ‖(a : H →L[ℂ] H) y‖ := norm_inner_le_norm _ _ + _ ≤ ‖x‖ * (‖(a : H →L[ℂ] H)‖ * ‖y‖) := + mul_le_mul_of_nonneg_left ((a : H →L[ℂ] H).le_opNorm y) (norm_nonneg _) + _ = (‖x‖ * ‖y‖) * ‖a‖ := by + change ‖x‖ * (‖a‖ * ‖y‖) = (‖x‖ * ‖y‖) * ‖a‖ + ring + +/-- Matrix coefficient span given by `Submodule.span ℂ (Set.range (fun p : H × H => +matrixCoefficientDual M p.1 p.2))`. -/ +def matrixCoefficientSpan (M : VonNeumannAlgebra H) : + Submodule ℂ (StrongDual ℂ M.toStarSubalgebra) := + Submodule.span ℂ (Set.range (fun p : H × H => matrixCoefficientDual M p.1 p.2)) + +/-- Norm closure of the span of the matrix coefficient functionals on the algebra. -/ +def coefficientPredual (M : VonNeumannAlgebra H) : + Submodule ℂ (StrongDual ℂ M.toStarSubalgebra) := + (matrixCoefficientSpan M).topologicalClosure + +-- Cache the canonical subtype/continuous-dual norms before nested-dual headers. +instance coefficientPredualSubmoduleNormed (M : VonNeumannAlgebra H) : + NormedAddCommGroup (coefficientPredual M) := Submodule.normedAddCommGroup _ + +instance coefficientPredualSubmoduleSpace (M : VonNeumannAlgebra H) : + NormedSpace ℂ (coefficientPredual M) := Submodule.normedSpace _ + +instance coefficientPredualSecondDualNormed (M : VonNeumannAlgebra H) : + NormedAddCommGroup (StrongDual ℂ (coefficientPredual M)) := + ContinuousLinearMap.toNormedAddCommGroup + +theorem matrixCoefficientDual_mem_span (M : VonNeumannAlgebra H) (x y : H) : + matrixCoefficientDual M x y ∈ matrixCoefficientSpan M := + Submodule.subset_span ⟨(x, y), rfl⟩ + +theorem matrixCoefficientDual_mem_predual (M : VonNeumannAlgebra H) (x y : H) : + matrixCoefficientDual M x y ∈ coefficientPredual M := + (matrixCoefficientSpan M).le_topologicalClosure (matrixCoefficientDual_mem_span M x y) + +theorem finiteVectorCoefficient_mem_span (M : VonNeumannAlgebra H) + (f : StrongDual ℂ M.toStarSubalgebra) (hf : IsFiniteVectorCoefficient M f) : + f ∈ matrixCoefficientSpan M := by + obtain ⟨n, x, y, c, he⟩ := hf + have heq : f = ∑ i, c i • matrixCoefficientDual M (x i) (y i) := by + ext a + simpa only [sum_apply, smul_apply, smul_eq_mul, + matrixCoefficientDual_apply] using he a + rw [heq] + exact Submodule.sum_mem _ fun i _ => + Submodule.smul_mem _ _ (matrixCoefficientDual_mem_span M (x i) (y i)) + +theorem continuous_vnaWOTBall_eval_of_mem_coefficientSpan + (M : VonNeumannAlgebra H) (R : ℝ) (f : StrongDual ℂ M.toStarSubalgebra) + (hf : f ∈ matrixCoefficientSpan M) : + Continuous (fun T : vnaWOTBall M R => f (vnaWOTBallElement T)) := by + induction hf using Submodule.span_induction with + | mem g hg => + obtain ⟨⟨x, y⟩, rfl⟩ := hg + exact (ContinuousLinearMapWOT.continuous_iff.mp + (continuous_subtype_val : Continuous (fun T : vnaWOTBall M R => T.1))) y x + | zero => exact continuous_const + | add g h hg hh hgc hhc => exact hgc.add hhc + | smul c g hg hgc => + change Continuous (fun T : vnaWOTBall M R => c • g (vnaWOTBallElement T)) + exact (continuous_const : Continuous (fun _ : vnaWOTBall M R => c)).smul hgc + +theorem continuous_vnaWOTBall_eval_of_mem_coefficientPredual + (M : VonNeumannAlgebra H) (R : ℝ) + (f : StrongDual ℂ M.toStarSubalgebra) (hf : f ∈ coefficientPredual M) : + Continuous (fun T : vnaWOTBall M R => f (vnaWOTBallElement T)) := by + apply continuous_vnaWOTBall_eval_of_norm_approximation M R f + intro ε hε + obtain ⟨g, hg, hfg⟩ := Metric.mem_closure_iff.mp hf ε hε + refine ⟨g, continuous_vnaWOTBall_eval_of_mem_coefficientSpan M R g hg, ?_⟩ + simpa only [dist_eq_norm] using hfg + +theorem isNormalFunctional_iff_mem_coefficientPredual + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : + IsNormalFunctional M φ ↔ + (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap ∈ coefficientPredual M := by + constructor + · intro hn + apply closure_mono (fun f hf => finiteVectorCoefficient_mem_span M f hf) + ((isNormalFunctional_iff_mem_closure_coefficients M φ).mp hn) + · intro hf + apply isNormalFunctional_of_continuous_boundedWOT M φ + intro R _ + exact continuous_vnaWOTBall_eval_of_mem_coefficientPredual M R + (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap hf + +/-- Evaluation of a coefficient-predual element at an operator in the algebra. -/ +def coefficientPredualEvaluation (M : VonNeumannAlgebra H) (a : M.toStarSubalgebra) : + StrongDual ℂ (coefficientPredual M) := + (ContinuousLinearMap.apply ℂ ℂ a).comp (coefficientPredual M).subtypeL + +@[simp] theorem coefficientPredualEvaluation_apply (M : VonNeumannAlgebra H) + (a : M.toStarSubalgebra) (f : coefficientPredual M) : + coefficientPredualEvaluation M a f = f.1 a := rfl + +theorem coefficientPredualEvaluation_norm_le (M : VonNeumannAlgebra H) + (a : M.toStarSubalgebra) : ‖coefficientPredualEvaluation M a‖ ≤ ‖a‖ := by + apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _) + intro f + exact (f.1.le_opNorm a).trans_eq (mul_comm _ _) + +theorem coefficientPredualEvaluation_norm (M : VonNeumannAlgebra H) + (a : M.toStarSubalgebra) : ‖coefficientPredualEvaluation M a‖ = ‖a‖ := by + apply le_antisymm (coefficientPredualEvaluation_norm_le M a) + change ‖(a : H →L[ℂ] H)‖ ≤ _ + apply ContinuousLinearMap.opNorm_le_of_re_inner_le (norm_nonneg _) + intro x y hx hy + let f : coefficientPredual M := + ⟨matrixCoefficientDual M y x, matrixCoefficientDual_mem_predual M y x⟩ + have hf : ‖f‖ ≤ 1 := by + exact (matrixCoefficientDual_norm_le M y x).trans_eq (by rw [hy, hx, mul_one]) + have he : ‖inner ℂ y ((a : H →L[ℂ] H) x)‖ ≤ ‖coefficientPredualEvaluation M a‖ := + ((coefficientPredualEvaluation M a).le_opNorm f).trans + (by simpa only [mul_one] using mul_le_mul_of_nonneg_left hf (norm_nonneg _)) + have hr := Complex.re_le_norm (inner ℂ y ((a : H →L[ℂ] H) x)) + change RCLike.re (inner ℂ y ((a : H →L[ℂ] H) x)) ≤ _ at hr + rw [inner_re_symm (𝕜 := ℂ)] at hr + exact hr.trans he + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/CoefficientPredualDuality.lean b/LeanPool/VacuumBellSeparation/Bell/CoefficientPredualDuality.lean new file mode 100644 index 0000000000..da99366d32 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/CoefficientPredualDuality.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.CoefficientPredual +public import LeanPool.VacuumBellSeparation.Bell.WeakCompactDualEvaluation +public import Mathlib.Analysis.Normed.Operator.LinearIsometry + +/-! +The original concrete VNA is isometrically the full continuous dual of its +norm-closed original-H coefficient space. Compactness is proved using its +actual WOT unit ball and evaluation of every coefficient-closure member. +There is no assumed onto map, faithful state, separability or normality +premise, and no substitute representation of the algebra. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Metric +open scoped Topology InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The previously proved norm equality bundles the literal evaluation map. -/ +def coefficientPredualEvaluationLI (M : VonNeumannAlgebra H) : + M.toStarSubalgebra →ₗᵢ[ℂ] StrongDual ℂ (coefficientPredual M) where + toFun := coefficientPredualEvaluation M + map_add' a b := by + apply ContinuousLinearMap.ext + intro f + simp only [coefficientPredualEvaluation_apply, map_add, add_apply] + map_smul' c a := by + apply ContinuousLinearMap.ext + intro f + simp only [coefficientPredualEvaluation_apply, map_smul, smul_apply, + RingHom.id_apply] + norm_map' := coefficientPredualEvaluation_norm M + +@[simp] theorem coefficientPredualEvaluationLI_apply (M : VonNeumannAlgebra H) + (a : M.toStarSubalgebra) : + coefficientPredualEvaluationLI M a = coefficientPredualEvaluation M a := rfl + +/-- The genuine original operator unit ball has weak-star compact evaluation +image, with no assertion of operator-norm compactness. -/ +theorem isCompact_coefficientPredualEvaluation_unitBall (M : VonNeumannAlgebra H) : + IsCompact ((fun a : M.toStarSubalgebra => + StrongDual.toWeakDual (coefficientPredualEvaluation M a)) '' + Metric.closedBall (0 : M.toStarSubalgebra) 1) := by + let : CompactSpace (vnaWOTBall M 1) := + isCompact_iff_compactSpace.mp (isCompact_vna_unitBall_wot M) + let b : vnaWOTBall M 1 → WeakDual ℂ (coefficientPredual M) := fun T => + StrongDual.toWeakDual (coefficientPredualEvaluation M (vnaWOTBallElement T)) + have hb : Continuous b := by + apply WeakDual.continuous_of_continuous_eval + intro f + exact continuous_vnaWOTBall_eval_of_mem_coefficientPredual M 1 f.1 f.2 + have he : ((fun a : M.toStarSubalgebra => + StrongDual.toWeakDual (coefficientPredualEvaluation M a)) '' + Metric.closedBall (0 : M.toStarSubalgebra) 1) = Set.range b := by + ext F + constructor + · rintro ⟨a, ha, rfl⟩ + exact ⟨⟨ContinuousLinearMapWOT.ofCLM (a : H →L[ℂ] H), a.2, + mem_closedBall_zero_iff.mp ha⟩, rfl⟩ + · rintro ⟨T, rfl⟩ + exact ⟨vnaWOTBallElement T, mem_closedBall_zero_iff.mpr T.2.2, rfl⟩ + rw [he] + exact isCompact_range hb + +/-- Every functional of norm at most one is literally evaluation at an +operator of norm at most one in the original VNA. -/ +theorem exists_coefficientPredualEvaluation_unitBall (M : VonNeumannAlgebra H) + (F : StrongDual ℂ (coefficientPredual M)) (hF : ‖F‖ ≤ 1) : + ∃ a : M.toStarSubalgebra, ‖a‖ ≤ 1 ∧ coefficientPredualEvaluation M a = F := by + exact exists_unitBall_preimage_of_isCompact_evaluation (coefficientPredual M) + (coefficientPredualEvaluationLI M).toLinearMap + (coefficientPredualEvaluation_apply M) + (isCompact_coefficientPredualEvaluation_unitBall M) F hF + +theorem coefficientPredualEvaluation_surjective (M : VonNeumannAlgebra H) : + Function.Surjective (coefficientPredualEvaluation M) := by + exact surjective_of_isCompact_evaluation (coefficientPredual M) + (coefficientPredualEvaluationLI M).toLinearMap + (coefficientPredualEvaluation_apply M) + (isCompact_coefficientPredualEvaluation_unitBall M) + +/-- The concrete coefficient closure is an actual isometric predual of the +original VNA. The forward map remains the literal evaluation pairing. -/ +def coefficientPredualDualEquiv (M : VonNeumannAlgebra H) : + M.toStarSubalgebra ≃ₗᵢ[ℂ] StrongDual ℂ (coefficientPredual M) := + LinearIsometryEquiv.ofSurjective (coefficientPredualEvaluationLI M) + (coefficientPredualEvaluation_surjective M) + +@[simp] theorem coefficientPredualDualEquiv_apply (M : VonNeumannAlgebra H) + (a : M.toStarSubalgebra) (f : coefficientPredual M) : + coefficientPredualDualEquiv M a f = f.1 a := rfl + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/CoefficientWeakStarHomeomorphism.lean b/LeanPool/VacuumBellSeparation/Bell/CoefficientWeakStarHomeomorphism.lean new file mode 100644 index 0000000000..d981a749a2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/CoefficientWeakStarHomeomorphism.lean @@ -0,0 +1,82 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.CoefficientPredualDuality +public import LeanPool.VacuumBellSeparation.Bell.CoefficientWeakTopology +public import Mathlib.Topology.Homeomorph.Defs + +/-! +The literal coefficient weak topology on the original VNA is the weak-star +topology of its proved Banach predual, through the canonical evaluation map. +The inverse continuity is proved by each coefficient evaluation. There is +no assertion of global WOT equality or operator-norm compactness. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem coefficientPredual_completeSpace (M : VonNeumannAlgebra H) : + CompleteSpace (coefficientPredual M) := by + change CompleteSpace (matrixCoefficientSpan M).topologicalClosure + infer_instance + +@[simp] theorem coefficientPredualDualEquiv_symm_eval (M : VonNeumannAlgebra H) + (F : StrongDual ℂ (coefficientPredual M)) (f : coefficientPredual M) : + f.1 ((coefficientPredualDualEquiv M).symm F) = F f := by + exact congrArg (fun G : StrongDual ℂ (coefficientPredual M) => G f) + ((coefficientPredualDualEquiv M).apply_symm_apply F) + +/-- The canonical evaluation is a homeomorphism for the actual paired weak +topology and the actual weak-star dual topology. Its bijectivity was proved +from the original WOT unit ball, rather than assumed in the topology. -/ +def coefficientWeakDualHomeomorph (M : VonNeumannAlgebra H) : + CoefficientWeakAlgebra M ≃ₜ WeakDual ℂ (coefficientPredual M) where + toEquiv := (coefficientPredualDualEquiv M).toEquiv.trans StrongDual.toWeakDual.toEquiv + continuous_toFun := by + apply WeakDual.continuous_of_continuous_eval + intro f + exact WeakBilin.eval_continuous (coefficientPairing M) f + continuous_invFun := by + apply WeakBilin.continuous_of_continuous_eval + intro f + change Continuous (fun F : WeakDual ℂ (coefficientPredual M) => + f.1 ((coefficientPredualDualEquiv M).symm (WeakDual.toStrongDual F))) + simpa only [coefficientPredualDualEquiv_symm_eval, WeakDual.toStrongDual_apply] using + (WeakDual.eval_continuous (𝕜 := ℂ) f) + +@[simp] theorem coefficientWeakDualHomeomorph_apply (M : VonNeumannAlgebra H) + (a : CoefficientWeakAlgebra M) (f : coefficientPredual M) : + coefficientWeakDualHomeomorph M a f = f.1 a := rfl + +@[simp] theorem coefficientWeakDualHomeomorph_symm_apply (M : VonNeumannAlgebra H) + (F : WeakDual ℂ (coefficientPredual M)) : + (coefficientWeakDualHomeomorph M).symm F = + (coefficientPredualDualEquiv M).symm (WeakDual.toStrongDual F) := rfl + +/-- Order normality is continuity in the actual weak-star topology transported +through the proved canonical dual identification. -/ +theorem isNormalFunctional_iff_continuous_weakStar + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : + IsNormalFunctional M φ ↔ + Continuous (fun F : WeakDual ℂ (coefficientPredual M) => + φ ((coefficientWeakDualHomeomorph M).symm F)) := by + rw [isNormalFunctional_iff_continuous_coefficientWeak M φ] + constructor + · intro h + exact h.comp (coefficientWeakDualHomeomorph M).symm.continuous + · intro h + have hc := h.comp (coefficientWeakDualHomeomorph M).continuous + simpa only [Function.comp_def, Homeomorph.symm_apply_apply] using hc + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/CoefficientWeakTopology.lean b/LeanPool/VacuumBellSeparation/Bell/CoefficientWeakTopology.lean new file mode 100644 index 0000000000..198df7f79a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/CoefficientWeakTopology.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.CoefficientPredual +public import Mathlib.Analysis.LocallyConvex.WeakDual + +/-! +The literal weak topology on the original algebra paired with its concrete +coefficient norm closure. Positive continuity in this topology is equivalent +to all-directed order normality. Identifying the coefficient space as an +actual Banach predual is the separate surjectivity theorem +`coefficientPredualEvaluation_surjective` in `Bell/CoefficientPredualDuality.lean`. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Bilinear evaluation pairing between the algebra and its coefficient predual. -/ +def coefficientPairing (M : VonNeumannAlgebra H) : + M.toStarSubalgebra →ₗ[ℂ] (coefficientPredual M) →ₗ[ℂ] ℂ where + toFun a := (coefficientPredualEvaluation M a).toLinearMap + map_add' a b := by + ext f + exact f.1.map_add a b + map_smul' c a := by + ext f + exact f.1.map_smul c a + +/-- Coefficient weak algebra with underlying type `WeakBilin (coefficientPairing M)`. -/ +abbrev CoefficientWeakAlgebra (M : VonNeumannAlgebra H) := WeakBilin (coefficientPairing M) + +@[simp] theorem coefficientPairing_apply (M : VonNeumannAlgebra H) + (a : M.toStarSubalgebra) (f : coefficientPredual M) : + coefficientPairing M a f = f.1 a := rfl + +theorem continuous_coefficientWeak_of_mem (M : VonNeumannAlgebra H) + (f : StrongDual ℂ M.toStarSubalgebra) (hf : f ∈ coefficientPredual M) : + Continuous (fun a : CoefficientWeakAlgebra M => f a) := + WeakBilin.eval_continuous (coefficientPairing M) ⟨f, hf⟩ + +theorem mem_coefficientPredual_of_continuous_coefficientWeak + (M : VonNeumannAlgebra H) (f : StrongDual ℂ M.toStarSubalgebra) + (hf : Continuous (fun a : CoefficientWeakAlgebra M => f a)) : + f ∈ coefficientPredual M := by + let g : StrongDual ℂ (CoefficientWeakAlgebra M) := + { toLinearMap := f.toLinearMap + cont := hf } + obtain ⟨p, hp⟩ := LinearMap.dualEmbedding_surjective (coefficientPairing M) g + have he : p.1 = f := by + ext a + exact congrArg (fun ℓ : StrongDual ℂ (CoefficientWeakAlgebra M) => ℓ a) hp + exact he ▸ p.2 + +theorem mem_coefficientPredual_iff_continuous_coefficientWeak + (M : VonNeumannAlgebra H) (f : StrongDual ℂ M.toStarSubalgebra) : + f ∈ coefficientPredual M ↔ Continuous (fun a : CoefficientWeakAlgebra M => f a) := + ⟨continuous_coefficientWeak_of_mem M f, + mem_coefficientPredual_of_continuous_coefficientWeak M f⟩ + +theorem isNormalFunctional_iff_continuous_coefficientWeak + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : + IsNormalFunctional M φ ↔ Continuous (fun a : CoefficientWeakAlgebra M => φ a) := + (isNormalFunctional_iff_mem_coefficientPredual M φ).trans + (mem_coefficientPredual_iff_continuous_coefficientWeak M + (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap) + +theorem continuous_boundedWOT_to_coefficientWeak + (M : VonNeumannAlgebra H) (R : ℝ) : + Continuous (Y := CoefficientWeakAlgebra M) + (fun T : vnaWOTBall M R => vnaWOTBallElement T) := by + apply WeakBilin.continuous_of_continuous_eval (coefficientPairing M) + intro f + exact continuous_vnaWOTBall_eval_of_mem_coefficientPredual M R f.1 f.2 + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/CommutantVectorDomination.lean b/LeanPool/VacuumBellSeparation/Bell/CommutantVectorDomination.lean new file mode 100644 index 0000000000..7d2420a566 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/CommutantVectorDomination.lean @@ -0,0 +1,103 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.VectorFunctionalNormal +public import LeanPool.VacuumBellSeparation.Bell.VectorStateApproximation +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationDefs +public import LeanPool.VacuumBellSeparation.Bell.StateExtension +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Rpow.Basic +public import Mathlib.Analysis.CStarAlgebra.PositiveLinearMap + +/-! +# Domination of actual commutant-orbit vector states + +The reference functional and its competitors are evaluated on the same concrete +von Neumann algebra. The estimate holds on every positive element, with the +actual operator norm of the commutant operator. No representation of arbitrary +normal states by vectors is presumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite.SW88 + +open scoped InnerProductSpace ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The actual vector functional, bundled with its full dual norm. -/ +def vectorDual (M : VonNeumannAlgebra H) (x : H) : StrongDual ℂ M.toStarSubalgebra := + (PositiveContinuousLinearMap.ofClass (vectorPositiveLinearMap M x)).toContinuousLinearMap + +@[simp] theorem vectorDual_apply (M : VonNeumannAlgebra H) (x : H) + (T : M.toStarSubalgebra) : vectorDual M x T = vectorFunctional M x T := rfl + +theorem vectorDual_isNormalState (M : VonNeumannAlgebra H) (x : H) (hx : ‖x‖ = 1) : + IsNormalStateFunctional M (vectorDual M x) := + vectorFunctional_isNormalState M x hx + +/-- The topology in this estimate is the norm on the whole continuous dual. -/ +theorem vectorDual_difference_norm_le (M : VonNeumannAlgebra H) (x y : H) : + ‖vectorDual M x - vectorDual M y‖ ≤ (‖x‖ + ‖y‖) * ‖x - y‖ := by + apply ContinuousLinearMap.opNorm_le_bound _ (by positivity) + intro T + exact vectorState_uniform_difference_bound x y (T : H →L[ℂ] H) + +/-- Square-root factorization occurs inside M; the commutant therefore commutes +with the actual factor, without assuming a polynomial approximation theorem. -/ +theorem vectorDual_commutant_le (M : VonNeumannAlgebra H) (Ω : H) + {S : H →L[ℂ] H} (hS : S ∈ M.commutant) + (T : M.toStarSubalgebra) (hT : 0 ≤ T) : + vectorDual M (S Ω) T ≤ ‖S‖ ^ 2 • vectorDual M Ω T := by + obtain ⟨R, hR⟩ := CStarAlgebra.nonneg_iff_eq_star_mul_self.mp hT + have he (x : H) : vectorDual M x T = ((‖(R : H →L[ℂ] H) x‖ ^ 2 : ℝ) : ℂ) := by + rw [vectorDual_apply, hR] + change inner ℂ x ((star (R : H →L[ℂ] H)) ((R : H →L[ℂ] H) x)) = _ + simp only [ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.adjoint_inner_right, + inner_self_eq_norm_sq_to_K, RCLike.ofReal_eq_complex_ofReal, Complex.ofReal_pow] + have hc : (R : H →L[ℂ] H) (S Ω) = S ((R : H →L[ℂ] H) Ω) := by + simpa only [mul_apply_eq_comp] using congrArg + (fun A : H →L[ℂ] H => A Ω) + ((VonNeumannAlgebra.mem_commutant_iff.mp hS) (R : H →L[ℂ] H) R.2) + rw [he (S Ω), he Ω, hc, Complex.real_smul, ← Complex.ofReal_mul] + apply Complex.real_le_real.mpr + have hn := S.le_opNorm ((R : H →L[ℂ] H) Ω) + have hs := mul_le_mul hn hn (norm_nonneg _) (mul_nonneg (norm_nonneg _) (norm_nonneg _)) + simpa only [pow_two, mul_assoc, mul_left_comm, mul_comm] using hs + +/-- A positive coefficient strictly below one is chosen from the actual norm. +The reference vector need not be normalized for this domination inequality. -/ +theorem exists_small_vector_domination (M : VonNeumannAlgebra H) (Ω : H) + {S : H →L[ℂ] H} (hS : S ∈ M.commutant) : + ∃ t : ℝ, 0 < t ∧ t < 1 ∧ ∀ T : M.toStarSubalgebra, + 0 ≤ T → t • vectorDual M (S Ω) T ≤ vectorDual M Ω T := by + let C : ℝ := ‖S‖ ^ 2 + let t : ℝ := (C + 2)⁻¹ + have hC : 0 ≤ C := sq_nonneg _ + have hd : 0 < C + 2 := by linarith + have ht : 0 < t := inv_pos.mpr hd + have he : t * (C + 2) = 1 := inv_mul_cancel₀ hd.ne' + have htC0 : 0 ≤ t * C := mul_nonneg ht.le hC + have ht1 : t < 1 := by nlinarith + have htC : t * C ≤ 1 := by nlinarith + refine ⟨t, ht, ht1, ?_⟩ + intro T hT + have hz : 0 ≤ vectorDual M Ω T := (vectorPositiveLinearMap M Ω).map_nonneg hT + have hfirst := smul_le_smul_of_nonneg_left (vectorDual_commutant_le M Ω hS T hT) ht.le + have hlast : (t * C) • vectorDual M Ω T ≤ vectorDual M Ω T := by + simpa only [one_smul] using smul_le_smul_of_nonneg_right htC hz + have hfirst' : t • vectorDual M (S Ω) T ≤ (t * C) • vectorDual M Ω T := by + simpa only [smul_smul] using hfirst + exact hfirst'.trans hlast + +/-- A unit vector gives a member of the actual all-directed normal-state space. -/ +def vectorNormalState (M : VonNeumannAlgebra H) (x : H) (hx : ‖x‖ = 1) : + HC00.NormalStateSpace M := ⟨vectorDual M x, vectorDual_isNormalState M x hx⟩ + +end VacuumBellSeparation.Bipartite.SW88 diff --git a/LeanPool/VacuumBellSeparation/Bell/CommutantVectorStateDensity.lean b/LeanPool/VacuumBellSeparation/Bell/CommutantVectorStateDensity.lean new file mode 100644 index 0000000000..46810a0c3a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/CommutantVectorStateDensity.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.CommutantVectorDomination +public import LeanPool.VacuumBellSeparation.Bell.SeparatingCommutantCyclic + +/-! +# Norm approximation of vector states by dominated commutant-orbit states + +Separation makes the commutant orbit norm dense in the original full Hilbert +space. Normalizing its nonzero vectors and using the uniform dual estimate +gives domination and approximation simultaneously. The conclusion covers +actual vector states, not all normal states in this representation. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite.SW88 + +open scoped Topology InnerProductSpace ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- An actual normalized commutant operator gives a nearby normal vector state +which is dominated by a positive multiple of the reference vector state. -/ +theorem exists_dominated_commutant_vectorState_near (M : VonNeumannAlgebra H) + (Ω : H) (hsep : IsSeparatingForAlgebra M Ω) (χ : H) (hχ : ‖χ‖ = 1) + {ε : ℝ} (hε : 0 < ε) : + ∃ S : H →L[ℂ] H, S ∈ M.commutant ∧ ‖S Ω‖ = 1 ∧ + ‖vectorDual M χ - vectorDual M (S Ω)‖ < ε ∧ + ∃ t : ℝ, 0 < t ∧ t < 1 ∧ ∀ T : M.toStarSubalgebra, + 0 ≤ T → t • vectorDual M (S Ω) T ≤ vectorDual M Ω T := by + have hcyc := commutant_cyclic_of_separating M Ω hsep + have hclosure : χ ∈ closure (operatorOrbit M.commutant.toStarSubalgebra Ω : Set H) := by + change χ ∈ (operatorOrbit M.commutant.toStarSubalgebra Ω).topologicalClosure + rw [(cyclicForAlgebra_iff_closedOperatorOrbit M.commutant Ω).mp hcyc] + trivial + let δ : ℝ := min (1 / 2) (ε / 8) + have hδ : 0 < δ := lt_min (by norm_num) (by positivity) + obtain ⟨x, hx, hdist⟩ := Metric.mem_closure_iff.mp hclosure δ hδ + obtain ⟨R, hR, rfl⟩ := hx + have hd : ‖χ - R Ω‖ < δ := by simpa only [dist_eq_norm] using hdist + have hdhalf : ‖χ - R Ω‖ < 1 / 2 := hd.trans_le (min_le_left _ _) + have hde : ‖χ - R Ω‖ < ε / 8 := hd.trans_le (min_le_right _ _) + have hne : R Ω ≠ 0 := by + intro hz + rw [hz, sub_zero, hχ] at hdhalf + norm_num at hdhalf + let S : H →L[ℂ] H := (‖R Ω‖ : ℂ)⁻¹ • R + have hS : S ∈ M.commutant := M.commutant.toStarSubalgebra.smul_mem hR _ + have he : S Ω = reehSchliederUnitVector (R Ω) := rfl + have hSn : ‖S Ω‖ = 1 := by + rw [he] + exact reehSchliederUnitVector_norm hne + have hvector : ‖χ - S Ω‖ ≤ 2 * ‖χ - R Ω‖ := by + rw [he] + exact unitVector_distance_le hne hχ + have hdual : ‖vectorDual M χ - vectorDual M (S Ω)‖ ≤ 2 * ‖χ - S Ω‖ := by + simpa only [hχ, hSn, one_add_one_eq_two] using vectorDual_difference_norm_le M χ (S Ω) + refine ⟨S, hS, hSn, ?_, exists_small_vector_domination M Ω hS⟩ + nlinarith + +/-- Every represented unit-vector state lies in the norm closure of normal +states dominated by the reference state. There is no implicit assertion that +every normal state is a vector state in H. -/ +theorem vectorNormalState_mem_closure_dominated (M : VonNeumannAlgebra H) + (Ω : H) (hΩ : ‖Ω‖ = 1) (hsep : IsSeparatingForAlgebra M Ω) + (χ : H) (hχ : ‖χ‖ = 1) : + vectorNormalState M χ hχ ∈ closure {φ : HC00.NormalStateSpace M | + ∃ t : ℝ, 0 < t ∧ t < 1 ∧ ∀ T : M.toStarSubalgebra, + 0 ≤ T → t • φ.1 T ≤ (vectorNormalState M Ω hΩ).1 T} := by + apply Metric.mem_closure_iff.mpr + intro ε hε + obtain ⟨S, hS, hn, hd, t, ht, ht1, hdom⟩ := + exists_dominated_commutant_vectorState_near M Ω hsep χ hχ hε + refine ⟨vectorNormalState M (S Ω) hn, ⟨t, ht, ht1, hdom⟩, ?_⟩ + change dist (vectorDual M χ) (vectorDual M (S Ω)) < ε + simpa only [dist_eq_norm] using hd + +end VacuumBellSeparation.Bipartite.SW88 diff --git a/LeanPool/VacuumBellSeparation/Bell/CommutingEffects.lean b/LeanPool/VacuumBellSeparation/Bell/CommutingEffects.lean new file mode 100644 index 0000000000..cbca820d7d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/CommutingEffects.lean @@ -0,0 +1,33 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Cells + +/-! # Products and complements of commuting effects -/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The actual product of commuting effects remains an effect. -/ +theorem commuting_effect_product {A B : H →L[ℂ] H} + (hA₀ : 0 ≤ A) (hA₁ : A ≤ 1) (hB₀ : 0 ≤ B) (hB₁ : B ≤ 1) + (hAB : A * B = B * A) : 0 ≤ A * B ∧ A * B ≤ 1 := by + refine ⟨Commute.mul_nonneg hA₀ hB₀ hAB, ?_⟩ + have hc : Commute A (1 - B) := by + change A * (1 - B) = (1 - B) * A + rw [mul_sub, sub_mul, mul_one, one_mul, hAB] + have hpos := Commute.mul_nonneg hA₀ (sub_nonneg.mpr hB₁) hc + have hle : A * B ≤ A := by + apply sub_nonneg.mp + simpa only [mul_sub, mul_one] using hpos + exact hle.trans hA₁ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/ConcreteWeakStarInclusion.lean b/LeanPool/VacuumBellSeparation/Bell/ConcreteWeakStarInclusion.lean new file mode 100644 index 0000000000..cbd5b5c04c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/ConcreteWeakStarInclusion.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.CoefficientWeakStarHomeomorphism +public import Mathlib.Analysis.Normed.Operator.Bilinear + +/-! +Concrete inclusions preserve the actual coefficient weak-star topology. +The proof restricts the norm-closed span of original-H matrix coefficients; +it does not assume a normal-state extension or predual quotient theorem. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Continuous linear inclusion associated with an inclusion of von Neumann algebras. -/ +def vnaInclusionCLM {M N : VonNeumannAlgebra H} + (h : M.toStarSubalgebra ≤ N.toStarSubalgebra) : + M.toStarSubalgebra →L[ℂ] N.toStarSubalgebra := + (StarSubalgebra.inclusion h).toLinearMap.mkContinuous 1 (by + intro a + change ‖a‖ ≤ 1 * ‖a‖ + rw [one_mul]) + +@[simp] theorem vnaInclusionCLM_apply {M N : VonNeumannAlgebra H} + (h : M.toStarSubalgebra ≤ N.toStarSubalgebra) (a : M.toStarSubalgebra) : + vnaInclusionCLM h a = StarSubalgebra.inclusion h a := rfl + +theorem coefficientPredual_restrict {M N : VonNeumannAlgebra H} + (h : M.toStarSubalgebra ≤ N.toStarSubalgebra) + (f : StrongDual ℂ N.toStarSubalgebra) (hf : f ∈ coefficientPredual N) : + f.comp (vnaInclusionCLM h) ∈ coefficientPredual M := by + have hc : IsClosed {g : StrongDual ℂ N.toStarSubalgebra | + g.comp (vnaInclusionCLM h) ∈ coefficientPredual M} := + (matrixCoefficientSpan M).isClosed_topologicalClosure.preimage + (continuous_id.clm_comp_const (vnaInclusionCLM h)) + apply closure_minimal ?_ hc hf + intro g hg + induction hg using Submodule.span_induction with + | mem g hg => + obtain ⟨⟨x, y⟩, rfl⟩ := hg + have he : (matrixCoefficientDual N x y).comp (vnaInclusionCLM h) = + matrixCoefficientDual M x y := by + ext a + rfl + change (matrixCoefficientDual N x y).comp (vnaInclusionCLM h) ∈ coefficientPredual M + rw [he] + exact matrixCoefficientDual_mem_predual M x y + | zero => + change (0 : StrongDual ℂ N.toStarSubalgebra).comp (vnaInclusionCLM h) ∈ coefficientPredual M + rw [ContinuousLinearMap.zero_comp] + exact (coefficientPredual M).zero_mem + | add g k hg hk hgc hkc => + change (g + k).comp (vnaInclusionCLM h) ∈ coefficientPredual M + rw [ContinuousLinearMap.add_comp] + exact (coefficientPredual M).add_mem hgc hkc + | smul c g hg hgc => + change (c • g).comp (vnaInclusionCLM h) ∈ coefficientPredual M + rw [ContinuousLinearMap.smul_comp] + exact (coefficientPredual M).smul_mem c hgc + +theorem continuous_coefficientWeak_inclusion {M N : VonNeumannAlgebra H} + (h : M.toStarSubalgebra ≤ N.toStarSubalgebra) : + Continuous (X := CoefficientWeakAlgebra M) (Y := CoefficientWeakAlgebra N) + (fun a => StarSubalgebra.inclusion h a) := by + apply WeakBilin.continuous_of_continuous_eval (coefficientPairing N) + intro f + exact continuous_coefficientWeak_of_mem M (f.1.comp (vnaInclusionCLM h)) + (coefficientPredual_restrict h f.1 f.2) + +theorem tendsto_coefficientWeak_inclusion {ι : Type*} {l : Filter ι} + {M N : VonNeumannAlgebra H} (h : M.toStarSubalgebra ≤ N.toStarSubalgebra) + {T : ι → M.toStarSubalgebra} {L : M.toStarSubalgebra} + (hT : Filter.Tendsto (β := CoefficientWeakAlgebra M) (fun i => T i) l + (nhds (X := CoefficientWeakAlgebra M) L)) : + Filter.Tendsto (β := CoefficientWeakAlgebra N) + (fun i => StarSubalgebra.inclusion h (T i)) l + (nhds (X := CoefficientWeakAlgebra N) (StarSubalgebra.inclusion h L)) := + (continuous_coefficientWeak_inclusion h).continuousAt.tendsto.comp hT + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/CornerProjectionFunctionalOrder.lean b/LeanPool/VacuumBellSeparation/Bell/CornerProjectionFunctionalOrder.lean new file mode 100644 index 0000000000..583ac31828 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/CornerProjectionFunctionalOrder.lean @@ -0,0 +1,125 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.ProjectionFunctionalOrder +public import Mathlib.Analysis.CStarAlgebra.Projection + +/-! +# Projection tests inside an actual supported corner + +The corner is expressed by p*a=a in the original concrete VNA. No invented +normal representation, unitized corner carrier or corner spectral theorem +is assumed. The spectral projections commute with p; multiplying them by p +gives actual subprojections of p and retains the operator-norm approximation. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Filter +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Finite positive spectral averages supported by the original projection p. -/ +theorem exists_subprojection_average_near (M : VonNeumannAlgebra H) + (p : M.toStarSubalgebra) (hp : IsStarProjection p) + (a : M.toStarSubalgebra) (ha : 0 ≤ a) (han : ‖a‖ ≤ 1) (hpa : p * a = a) + (N : ℕ) (hN : 0 < N) : + ∃ Q : Fin N → M.toStarSubalgebra, + (∀ k, IsStarProjection (Q k) ∧ Q k ≤ p) ∧ + ‖a - (1 / (N : ℝ)) • ∑ k, Q k‖ ≤ 1 / (N : ℝ) := by + classical + obtain ⟨P, hP, hcomm, herror⟩ := + exists_projection_average_near_positive_contraction M a ha han N hN + have hap : a * p = a := by + simpa only [star_mul, ha.isSelfAdjoint.star_eq, hp.isSelfAdjoint.star_eq] + using congrArg star hpa + have hpaComm : Commute (p : H →L[ℂ] H) (a : H →L[ℂ] H) := by + change ((p * a : M.toStarSubalgebra) : H →L[ℂ] H) = + ((a * p : M.toStarSubalgebra) : H →L[ℂ] H) + rw [hpa, hap] + have hpcoe : IsSelfAdjoint (p : H →L[ℂ] H) := hp.isSelfAdjoint.map M.toStarSubalgebra.subtype + have hc (k : Fin N) : Commute p (P k) := by + apply Subtype.ext + exact (hcomm p hpcoe hpaComm k).eq + let Q : Fin N → M.toStarSubalgebra := fun k => p * P k + have hQ (k : Fin N) : IsStarProjection (Q k) := hp.mul (hP k) (hc k) + have hQle (k : Fin N) : Q k ≤ p := (hQ k).le_iff_mul_eq_right hp |>.mpr (by + change p * (p * P k) = p * P k + rw [← mul_assoc, hp.isIdempotentElem.eq]) + have he : a - (1 / (N : ℝ)) • ∑ k, Q k = + p * (a - (1 / (N : ℝ)) • ∑ k, P k) := by + simp only [Q, mul_sub, hpa, mul_smul_comm, Finset.mul_sum] + refine ⟨Q, fun k => ⟨hQ k, hQle k⟩, ?_⟩ + rw [he] + calc + _ ≤ ‖p‖ * ‖a - (1 / (N : ℝ)) • ∑ k, P k‖ := norm_mul_le _ _ + _ ≤ 1 * ‖a - (1 / (N : ℝ)) • ∑ k, P k‖ := + mul_le_mul_of_nonneg_right (IsStarProjection.norm_le p hp) (norm_nonneg _) + _ ≤ 1 / (N : ℝ) := by simpa only [one_mul] using herror + +/-- The all-positive comparison in the supported corner follows from its +subprojections; neither normality nor an assumed comparison on effects is used. -/ +theorem continuousRealFunctional_nonneg_on_corner_of_subprojections + (M : VonNeumannAlgebra H) (p : M.toStarSubalgebra) (hp : IsStarProjection p) + (f : M.toStarSubalgebra →L[ℝ] ℝ) + (hf : ∀ q : M.toStarSubalgebra, IsStarProjection q → q ≤ p → 0 ≤ f q) + (a : M.toStarSubalgebra) (ha : 0 ≤ a) (hpa : p * a = a) : 0 ≤ f a := by + classical + have hcontraction (b : M.toStarSubalgebra) (hb : 0 ≤ b) (hbn : ‖b‖ ≤ 1) + (hpb : p * b = b) : 0 ≤ f b := by + have hchoose (n : ℕ) := exists_subprojection_average_near M p hp b hb hbn hpb + (n + 1) (Nat.succ_pos n) + choose Q hQ herror using hchoose + let q : ℕ → M.toStarSubalgebra := fun n => (1 / ((n + 1 : ℕ) : ℝ)) • ∑ k, Q n k + have hq (n : ℕ) : 0 ≤ f (q n) := by + dsimp only [q] + rw [map_smul, map_sum, smul_eq_mul] + exact mul_nonneg (by positivity) (Finset.sum_nonneg fun k _ => + hf _ (hQ n k).1 (hQ n k).2) + have ht : Tendsto q atTop (𝓝 b) := by + rw [tendsto_iff_norm_sub_tendsto_zero] + apply squeeze_zero (fun n => norm_nonneg _) + (fun n => by simpa only [q, norm_sub_rev] using herror n) + simpa only [Nat.cast_add, Nat.cast_one] using + (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) + exact ge_of_tendsto (f.continuous.tendsto b |>.comp ht) (Eventually.of_forall hq) + by_cases hz : a = 0 + · simp only [hz, map_zero, le_refl] + have hn : ‖a‖ ≠ 0 := norm_ne_zero_iff.mpr hz + have hscaled := hcontraction ((‖a‖⁻¹ : ℝ) • a) + (smul_nonneg (inv_nonneg.mpr (norm_nonneg a)) ha) + (norm_smul_inv_norm (𝕜 := ℝ) hz).le (by rw [mul_smul_comm, hpa]) + have hr : a = (‖a‖ : ℝ) • ((‖a‖⁻¹ : ℝ) • a) := by + rw [smul_smul, mul_inv_cancel₀ hn, one_smul] + rw [hr, map_smul, smul_eq_mul] + exact mul_nonneg (norm_nonneg a) hscaled + +/-- Exact positive-functional corner comparison used after the maximal +orthogonal-family argument. -/ +theorem positiveFunctional_re_le_on_corner_of_subprojections + (M : VonNeumannAlgebra H) (p : M.toStarSubalgebra) (hp : IsStarProjection p) + (φ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hφψ : ∀ q : M.toStarSubalgebra, IsStarProjection q → q ≤ p → (φ q).re ≤ (ψ q).re) + (a : M.toStarSubalgebra) (ha : 0 ≤ a) (hpa : p * a = a) : (φ a).re ≤ (ψ a).re := by + let f : M.toStarSubalgebra →L[ℝ] ℝ := Complex.reCLM.comp + (((PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap).restrictScalars ℝ) + have h := continuousRealFunctional_nonneg_on_corner_of_subprojections M p hp f + (fun q hq hqp => by + change 0 ≤ (ψ q - φ q).re + rw [Complex.sub_re] + exact sub_nonneg.mpr (hφψ q hq hqp)) a ha hpa + change 0 ≤ (ψ a - φ a).re at h + rw [Complex.sub_re] at h + exact sub_nonneg.mp h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/CyclicGramEquivalence.lean b/LeanPool/VacuumBellSeparation/Bell/CyclicGramEquivalence.lean new file mode 100644 index 0000000000..d0ae9ee817 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/CyclicGramEquivalence.lean @@ -0,0 +1,83 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Uniqueness + +/-! +# Unitary equivalence from actual cyclic Gram data + +The linear map on finite combinations is extended by the proved norm +identity. Density of both actual families proves surjectivity. The generic +lemma keeps both density obligations explicit; it does not give cyclicity +or representation equivalence to a physical subsystem by assumption. +-/ + +@[expose] public section + +open scoped InnerProductSpace + +namespace VacuumBellSeparation + +variable {ι H K : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K] + +omit [CompleteSpace H] in +theorem denseRange_linearCombination_of_dense_span (v : ι → H) + (hv : (Submodule.span ℂ (Set.range v)).topologicalClosure = ⊤) : + DenseRange (Finsupp.linearCombination ℂ v) := by + have hd : Dense ((Submodule.span ℂ (Set.range v) : Submodule ℂ H) : Set H) := + Submodule.dense_iff_topologicalClosure_eq_top.mpr hv + apply Dense.mono ?_ hd + intro x hx + have hm : x ∈ LinearMap.range (Finsupp.linearCombination ℂ v) := by + rw [Finsupp.range_linearCombination] + exact hx + exact LinearMap.mem_range.mp hm + +theorem exists_unitary_equiv_of_dense_gram (v : ι → H) (w : ι → K) + (hv : (Submodule.span ℂ (Set.range v)).topologicalClosure = ⊤) + (hw : (Submodule.span ℂ (Set.range w)).topologicalClosure = ⊤) + (hgram : ∀ i j, ⟪v i, v j⟫_ℂ = ⟪w i, w j⟫_ℂ) : + ∃ U : H ≃ₗᵢ[ℂ] K, ∀ i, U (v i) = w i := by + have hdv := denseRange_linearCombination_of_dense_span v hv + have hdw := denseRange_linearCombination_of_dense_span w hw + have hn (c : ι →₀ ℂ) : + ‖Finsupp.linearCombination ℂ w c‖ = ‖Finsupp.linearCombination ℂ v c‖ := by + have he := inner_linearCombination_eq_of_inner_eq v w hgram c c + rw [norm_eq_sqrt_re_inner (𝕜 := ℂ), norm_eq_sqrt_re_inner (𝕜 := ℂ), he] + let U : H →ₗᵢ[ℂ] K := (Finsupp.linearCombination ℂ w).extendOfIsometry hdv hn + have he (c : ι →₀ ℂ) : U (Finsupp.linearCombination ℂ v c) = + Finsupp.linearCombination ℂ w c := + LinearMap.extendOfIsometry_eq _ hdv hn c + have hsurj : Function.Surjective U := by + have hc := U.isometry.isClosedEmbedding.isClosed_range + have hs : Set.range (Finsupp.linearCombination ℂ w) ⊆ Set.range U := by + rintro _ ⟨c, rfl⟩ + exact ⟨Finsupp.linearCombination ℂ v c, he c⟩ + have hcl := closure_minimal hs hc + rw [hdw.closure_range] at hcl + intro y + exact hcl (Set.mem_univ y) + refine ⟨LinearIsometryEquiv.ofSurjective U hsurj, fun i => ?_⟩ + simpa only [LinearIsometryEquiv.coe_ofSurjective, + Finsupp.linearCombination_single, one_smul] using he (Finsupp.single i 1) + +omit [CompleteSpace H] [CompleteSpace K] in +/-- Equality on the actual cyclic family determines the intertwining relation. -/ +theorem cyclic_unitary_intertwines (v : ι → H) + (hv : (Submodule.span ℂ (Set.range v)).topologicalClosure = ⊤) + (U : H ≃ₗᵢ[ℂ] K) (A : H →L[ℂ] H) (B : K →L[ℂ] K) + (h : ∀ i, U (A (v i)) = B (U (v i))) : + U.toContinuousLinearEquiv.toContinuousLinearMap.comp A = + B.comp U.toContinuousLinearEquiv.toContinuousLinearMap := by + apply ContinuousLinearMap.ext_on (Submodule.dense_iff_topologicalClosure_eq_top.mpr hv) + rintro _ ⟨i, rfl⟩ + exact h i + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/CyclicSpanRestriction.lean b/LeanPool/VacuumBellSeparation/Bell/CyclicSpanRestriction.lean new file mode 100644 index 0000000000..04ae4b8a15 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/CyclicSpanRestriction.lean @@ -0,0 +1,74 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.ClosedCyclicSpan +public import LeanPool.VacuumBellSeparation.Bell.ReducingCompression + +/-! +# The literal cyclic Hilbert subspace + +The original generating vectors, considered in their actual closed span, +are dense there. Its subtype isometry has exactly the usual orthogonal +projection, so the preceding reducing-compression results apply without +any replacement Hilbert space or density assumption. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- A generating vector viewed as an element of its closed cyclic span. -/ +def cyclicSpanVector {ι : Type*} (v : ι → H) (i : ι) : closedCyclicSpan v := + ⟨v i, mem_closedCyclicSpan v i⟩ + +omit [CompleteSpace H] in +theorem cyclicSpanVector_dense {ι : Type*} (v : ι → H) : + (Submodule.span ℂ (Set.range (cyclicSpanVector v))).topologicalClosure = ⊤ := by + let K := closedCyclicSpan v + have hmap : (Submodule.span ℂ (Set.range (cyclicSpanVector v))).map K.subtype = + Submodule.span ℂ (Set.range v) := by + rw [Submodule.map_span, ← Set.range_comp] + rfl + apply top_unique + intro x hx + apply Metric.mem_closure_iff.mpr + intro ε hε + obtain ⟨y, hy, hdist⟩ := Metric.mem_closure_iff.mp x.property ε hε + rw [← hmap] at hy + obtain ⟨z, hz, rfl⟩ := Submodule.mem_map.mp hy + exact ⟨z, hz, hdist⟩ + +theorem imageProjection_subtype (K : Submodule ℂ H) [CompleteSpace K] : + imageProjection K.subtypeₗᵢ = K.starProjection := by + simp only [imageProjection, Submodule.subtypeₗᵢ_toContinuousLinearMap, + K.adjoint_subtypeL, Submodule.starProjection] + +/-- Compression is literally restriction on an invariant closed subspace. -/ +theorem compression_subtype_apply (K : Submodule ℂ H) [CompleteSpace K] + (A : H →L[ℂ] H) (hA : ∀ x ∈ K, A x ∈ K) (x : K) : + compression K.subtypeₗᵢ A x = ⟨A x, hA x x.property⟩ := by + change K.subtypeₗᵢ.toContinuousLinearMap.adjoint (A x) = _ + exact adjoint_embedding_apply K.subtypeₗᵢ ⟨A x, hA x x.property⟩ + +/-- The full original generated algebra restricts into the algebra generated +by its compressed generators on the genuine reducing cyclic subspace. -/ +theorem compression_subtype_mem_generatedVNA (K : Submodule ℂ H) [CompleteSpace K] + (S : Set (H →L[ℂ] H)) + (hS : ∀ A ∈ S, (∀ x ∈ K, A x ∈ K) ∧ (∀ x ∈ K, star A x ∈ K)) + {T : H →L[ℂ] H} (hT : T ∈ generatedVNA S) : + compression K.subtypeₗᵢ T ∈ generatedVNA (compression K.subtypeₗᵢ '' S) := by + apply compression_mem_generatedVNA _ _ ?_ hT + intro A hA + rw [imageProjection_subtype] + exact starProjection_commutes_of_invariant_pair K A (hS A hA).1 (hS A hA).2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/Defs.lean b/LeanPool/VacuumBellSeparation/Bell/Defs.lean new file mode 100644 index 0000000000..fd80cfeaa1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/Defs.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.Positive +public import Mathlib.Analysis.VonNeumannAlgebra.Basic +public import Mathlib.Tactic.TypeStar + +/-! +# Bell correlation of a state on two commuting von Neumann algebras + +Definitions for Section 2.1 (equation `eq:beta`, (2.4)) of the manuscript +"The vacuum Bell correlation of the massive free scalar field attains the +classical bound for bounded regions beyond a finite separation". + +* `State H` : a state on `B(H)`, i.e. a unital positive complex-linear functional. +* `saContractions M`, `effects M`, `projections M` : the self-adjoint contractions, + effects (`0 ≤ E ≤ 1`) and projections of a von Neumann algebra `M`. +* `chshOp` : the CHSH combination `A₀(B₀ + B₁) + A₁(B₀ - B₁)`. +* `bellCorrelation ω 𝔄 𝔅` : the Summers–Werner Bell correlation + `β(ω; 𝔄, 𝔅) = sup ½ |ω(A₀(B₀ + B₁) + A₁(B₀ - B₁))|`, the supremum over self-adjoint + contractions `Aᵢ ∈ 𝔄`, `Bⱼ ∈ 𝔅`. The normalization has classical bound `1` and + Tsirelson bound `√2`. + +The manuscript's states are states "on the von Neumann algebra generated by two commuting +von Neumann algebras"; here a state is a functional on all of `B(H)`. (The vacuum state of +the manuscript is a vector state on `B(H)`.) This module contains definitions only. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- A state on `B(H)`: a complex-linear functional `ω` on the bounded operators with +`ω(1) = 1` and `ω(T) ≥ 0` for every positive operator `T`. -/ +structure State (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] + [CompleteSpace H] where + /-- The underlying complex-linear functional. -/ + toLinearMap : (H →L[ℂ] H) →ₗ[ℂ] ℂ + /-- Normalization: `ω(1) = 1`. -/ + map_one' : toLinearMap 1 = 1 + /-- Positivity: `ω(T)` is real and nonnegative for every positive operator `T`. -/ + map_nonneg' : ∀ T : H →L[ℂ] H, T.IsPositive → + (toLinearMap T).im = 0 ∧ 0 ≤ (toLinearMap T).re + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +instance : CoeFun (State H) (fun _ => (H →L[ℂ] H) → ℂ) := + ⟨fun ω => ω.toLinearMap⟩ + +/-- The self-adjoint contractions of a von Neumann algebra `M`. -/ +def saContractions (M : VonNeumannAlgebra H) : Set (H →L[ℂ] H) := + {A | A ∈ M ∧ IsSelfAdjoint A ∧ ‖A‖ ≤ 1} + +/-- The effects of a von Neumann algebra `M`: operators `E ∈ M` with `0 ≤ E ≤ 1`. -/ +def effects (M : VonNeumannAlgebra H) : Set (H →L[ℂ] H) := + {E | E ∈ M ∧ E.IsPositive ∧ (1 - E).IsPositive} + +/-- The (orthogonal) projections of a von Neumann algebra `M`. -/ +def projections (M : VonNeumannAlgebra H) : Set (H →L[ℂ] H) := + {E | E ∈ M ∧ IsSelfAdjoint E ∧ E * E = E} + +/-- Two von Neumann algebras commute elementwise. -/ +def Commuting (𝔄 𝔅 : VonNeumannAlgebra H) : Prop := + ∀ A ∈ 𝔄, ∀ B ∈ 𝔅, A * B = B * A + +/-- The CHSH combination `A₀(B₀ + B₁) + A₁(B₀ - B₁)`. -/ +def chshOp (A₀ A₁ B₀ B₁ : H →L[ℂ] H) : H →L[ℂ] H := + A₀ * (B₀ + B₁) + A₁ * (B₀ - B₁) + +/-- The set of CHSH values `½ |ω(A₀(B₀ + B₁) + A₁(B₀ - B₁))|` over all self-adjoint +contractions `A₀, A₁ ∈ 𝔄` and `B₀, B₁ ∈ 𝔅`. -/ +def chshValues (ω : State H) (𝔄 𝔅 : VonNeumannAlgebra H) : Set ℝ := + {x | ∃ A₀ ∈ saContractions 𝔄, ∃ A₁ ∈ saContractions 𝔄, + ∃ B₀ ∈ saContractions 𝔅, ∃ B₁ ∈ saContractions 𝔅, + x = (1 / 2 : ℝ) * ‖ω (chshOp A₀ A₁ B₀ B₁)‖} + +/-- The Summers–Werner Bell correlation `β(ω; 𝔄, 𝔅)` of equation (2.4): the supremum of +the CHSH values, normalized so that the classical bound is `1`. -/ +noncomputable def bellCorrelation (ω : State H) (𝔄 𝔅 : VonNeumannAlgebra H) : ℝ := + sSup (chshValues ω 𝔄 𝔅) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/DensityPurification.lean b/LeanPool/VacuumBellSeparation/Bell/DensityPurification.lean new file mode 100644 index 0000000000..d6419b8d76 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/DensityPurification.lean @@ -0,0 +1,63 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.HilbertAmplification +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveDensityState + +/-! +# An actual Hilbert-space purification of a density operator + +For a genuine Hilbert basis, the vector with coordinates sqrt(ρ)bᵢ +belongs to the vector-valued Hilbert direct sum. Its vector expectation +under diagonal amplification is exactly the actual density expectation. +No cyclicity or representation-equivalence claim is part of this definition. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped InnerProductSpace ComplexOrder ENNReal + +variable {ι H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (b : HilbertBasis ι ℂ H) {ρ : H →L[ℂ] H} (hρ : IsPositiveTraceClass ρ) + +/-- The literal square-root column vector, with actual ℓ² membership proved. -/ +noncomputable def densityPurification : lp (fun _ : ι => H) 2 := + ⟨fun i => CFC.sqrt ρ (b i), memℓp_gen (by + simpa using summable_sqrt_basis_norm_sq b hρ)⟩ + +@[simp] theorem densityPurification_apply (i : ι) : + densityPurification b hρ i = CFC.sqrt ρ (b i) := rfl + +theorem densityPurification_norm_sq : + ‖densityPurification b hρ‖ ^ 2 = (positiveTrace ρ).toReal := by + have h := lp.norm_rpow_eq_tsum (by norm_num : 0 < (2 : ℝ≥0∞).toReal) + (densityPurification b hρ) + simpa only [ENNReal.toReal_ofNat, Real.rpow_two, densityPurification_apply, + tsum_sqrt_basis_norm_sq b hρ] using h + +theorem densityPurification_norm (htrace : positiveTrace ρ = 1) : + ‖densityPurification b hρ‖ = 1 := by + have h := densityPurification_norm_sq b hρ + rw [htrace, ENNReal.toReal_one] at h + nlinarith [norm_nonneg (densityPurification b hρ)] + +/-- The exact complex vector-state equality for every bounded observable. -/ +theorem inner_densityPurification_amplification (A : H →L[ℂ] H) : + ⟪densityPurification b hρ, hilbertAmplification ι A (densityPurification b hρ)⟫_ℂ = + densityExpectation b ρ A := rfl + +/-- Products are preserved by the actual amplification homomorphism. -/ +theorem inner_densityPurification_amplification_product (A B : H →L[ℂ] H) : + ⟪densityPurification b hρ, + hilbertAmplification ι A (hilbertAmplification ι B (densityPurification b hρ))⟫_ℂ = + densityExpectation b ρ (A * B) := rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/DirectedAlgebraUnion.lean b/LeanPool/VacuumBellSeparation/Bell/DirectedAlgebraUnion.lean new file mode 100644 index 0000000000..289c995c44 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/DirectedAlgebraUnion.lean @@ -0,0 +1,64 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Isotony +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Range + +/-! +# Directed unions of actual von Neumann algebras + +The union is a unital star algebra. Every continuous functional-calculus +expression remains in the same witnessing von Neumann algebra, although +the union itself need not be closed in operator norm. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem vonNeumannAlgebra_isClosed (A : VonNeumannAlgebra H) : + IsClosed (A : Set (H →L[ℂ] H)) := by + rw [← A.centralizer_centralizer] + exact Set.isClosed_centralizer _ + +theorem cfc_mem_vonNeumannAlgebra (A : VonNeumannAlgebra H) (f : ℝ → ℝ) + {T : H →L[ℂ] H} (hT : T ∈ A) : cfc f T ∈ A := by + let : IsClosed (A.toStarSubalgebra : Set (H →L[ℂ] H)) := vonNeumannAlgebra_isClosed A + exact cfc_mem (𝕜' := ℂ) (s := A.toStarSubalgebra) f hT + +variable {ι : Type*} [Nonempty ι] + +/-- Set-theoretic union of a directed family of von Neumann subalgebras. -/ +def directedAlgebraUnion (A : ι → VonNeumannAlgebra H) (hd : Directed (· ≤ ·) A) : + StarSubalgebra ℂ (H →L[ℂ] H) where + carrier := {T | ∃ i, T ∈ A i} + zero_mem' := ⟨Classical.arbitrary ι, zero_mem _⟩ + one_mem' := ⟨Classical.arbitrary ι, one_mem _⟩ + add_mem' := by + rintro T U ⟨i, hi⟩ ⟨j, hj⟩ + obtain ⟨k, hik, hjk⟩ := hd i j + exact ⟨k, add_mem (hik hi) (hjk hj)⟩ + mul_mem' := by + rintro T U ⟨i, hi⟩ ⟨j, hj⟩ + obtain ⟨k, hik, hjk⟩ := hd i j + exact ⟨k, mul_mem (hik hi) (hjk hj)⟩ + algebraMap_mem' c := + ⟨Classical.arbitrary ι, (A (Classical.arbitrary ι)).toStarSubalgebra.algebraMap_mem c⟩ + star_mem' := by + rintro T ⟨i, hi⟩ + exact ⟨i, star_mem hi⟩ + +theorem cfc_mem_directedAlgebraUnion (A : ι → VonNeumannAlgebra H) + (hd : Directed (· ≤ ·) A) (f : ℝ → ℝ) {T : H →L[ℂ] H} + (hT : T ∈ directedAlgebraUnion A hd) : cfc f T ∈ directedAlgebraUnion A hd := by + obtain ⟨i, hi⟩ := hT + exact ⟨i, cfc_mem_vonNeumannAlgebra (A i) f hi⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/DistillationScaling.lean b/LeanPool/VacuumBellSeparation/Bell/DistillationScaling.lean new file mode 100644 index 0000000000..0106140d8d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/DistillationScaling.lean @@ -0,0 +1,120 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.OneDistillabilityDefs +public import Mathlib.Analysis.CStarAlgebra.PositiveLinearFunctional + +/-! +Positive scalar rescaling of actual completely positive maps and positive +functionals. These constructions retain every finite matrix amplification. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped CStarAlgebra ComplexOrder + +section Scaling + +variable {E F : Type*} [CStarAlgebra E] [CStarAlgebra F] + [PartialOrder E] [PartialOrder F] [StarOrderedRing E] [StarOrderedRing F] + +/-- Nonnegative real rescaling, with complete positivity proved at every size. -/ +def distillationScaleCP (c : ℝ) (hc : 0 ≤ c) (T : E →CP F) : E →CP F where + toLinearMap := c • T.toLinearMap + map_cstarMatrix_nonneg' k M hM := by + have he : M.map (c • T.toLinearMap) = c • M.map T.toLinearMap := by + apply CStarMatrix.ext + intro i j + rfl + rw [he] + exact smul_nonneg hc (T.map_cstarMatrix_nonneg' k M hM) + +@[simp] theorem distillationScaleCP_apply (c : ℝ) (hc : 0 ≤ c) + (T : E →CP F) (x : E) : distillationScaleCP c hc T x = c • T x := rfl + +/-- Nonnegative real rescaling of an actual positive complex-linear functional. -/ +def distillationScaleFunctional (c : ℝ) (hc : 0 ≤ c) (τ : E →ₚ[ℂ] ℂ) : E →ₚ[ℂ] ℂ where + toLinearMap := c • τ.toLinearMap + monotone' := fun _ _ h => smul_le_smul_of_nonneg_left (τ.monotone' h) hc + +omit [StarOrderedRing E] in +@[simp] theorem distillationScaleFunctional_apply (c : ℝ) (hc : 0 ≤ c) + (τ : E →ₚ[ℂ] ℂ) (x : E) : distillationScaleFunctional c hc τ x = c • τ x := rfl + +/-- Automatic continuity and the exact norm-at-one formula for positive functionals. -/ +theorem positiveFunctional_one_eq_norm (τ : E →ₚ[ℂ] ℂ) : + τ 1 = (‖(PositiveContinuousLinearMap.ofClass τ).toContinuousLinearMap‖ : ℂ) := + (PositiveContinuousLinearMap.ofReal_opNorm_eq_map_one + (PositiveContinuousLinearMap.ofClass τ)).symm + +/-- A positive unital functional has norm one, including on closed VNA carriers. -/ +theorem stateFunctional_norm_apply_le (τ : E →ₚ[ℂ] ℂ) (hτ : τ 1 = 1) (x : E) : + ‖τ x‖ ≤ ‖x‖ := by + let τc := (PositiveContinuousLinearMap.ofClass τ).toContinuousLinearMap + have hn : ‖τc‖ = 1 := by + have he := congrArg Complex.re (positiveFunctional_one_eq_norm τ) + simpa only [hτ, Complex.one_re, Complex.ofReal_re] using he.symm + have h := τc.le_opNorm x + have heval : τc x = τ x := rfl + simpa only [heval, hn, one_mul] using h + +end Scaling + +/-- A strictly positive scale that sends every element into the unit ball. -/ +def distillationUnitScale {E : Type*} [NormedAddCommGroup E] (x : E) : ℝ := + (1 + ‖x‖)⁻¹ + +theorem distillationUnitScale_pos {E : Type*} [NormedAddCommGroup E] (x : E) : + 0 < distillationUnitScale x := + inv_pos.mpr (by linarith [norm_nonneg x]) + +theorem norm_distillationUnitScale_smul_le_one {E : Type*} [NormedAddCommGroup E] + [NormedSpace ℝ E] (x : E) : ‖distillationUnitScale x • x‖ ≤ 1 := by + rw [norm_smul, Real.norm_eq_abs, abs_of_pos (distillationUnitScale_pos x)] + calc + distillationUnitScale x * ‖x‖ ≤ distillationUnitScale x * (1 + ‖x‖) := + mul_le_mul_of_nonneg_left (by linarith) (distillationUnitScale_pos x).le + _ = 1 := inv_mul_cancel₀ (ne_of_gt (by linarith [norm_nonneg x])) + +/-- Strictly positive output scaling preserves and reflects the PPT condition. -/ +theorem twoQubitPPT_scale_iff (c : ℝ) (hc : 0 < c) + (τ : TwoQubitAlgebra →ₚ[ℂ] ℂ) : + TwoQubitPPT (distillationScaleFunctional c hc.le τ) ↔ TwoQubitPPT τ := by + constructor + · intro h Z hZ + have hs := smul_nonneg (inv_pos.mpr hc).le (h Z hZ) + simpa only [distillationScaleFunctional_apply, smul_smul, + inv_mul_cancel₀ hc.ne', one_smul] using hs + · intro h Z hZ + exact smul_nonneg hc.le (h Z hZ) + +/-- NPT excludes the zero positive functional, so its mass is strictly positive. -/ +theorem exists_positive_twoQubit_mass (τ : TwoQubitAlgebra →ₚ[ℂ] ℂ) + (hτ : ¬ TwoQubitPPT τ) : ∃ p : ℝ, 0 < p ∧ τ 1 = (p : ℂ) := by + let τc := (PositiveContinuousLinearMap.ofClass τ).toContinuousLinearMap + have hn : τc ≠ 0 := by + intro hz + apply hτ + intro Z _ + have he := congrArg (fun F : TwoQubitAlgebra →L[ℂ] ℂ => F (partialTransposeLeft Z)) hz + change τ (partialTransposeLeft Z) = 0 at he + simpa only [he] using (le_refl (0 : ℂ)) + exact ⟨‖τc‖, norm_pos_iff.mpr hn, positiveFunctional_one_eq_norm τ⟩ + +/-- The literal tensor-generator identity at the two identities. -/ +theorem qubitTensor_one_one : qubitTensor 1 1 = 1 := by + apply CStarMatrix.ext + rintro ⟨i, k⟩ ⟨j, l⟩ + change (if i = j then (1 : ℂ) else 0) * (if k = l then (1 : ℂ) else 0) = + if (i, k) = (j, l) then (1 : ℂ) else 0 + by_cases hij : i = j <;> by_cases hkl : k = l <;> simp [hij, hkl] + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/DominatedNormalStateResidual.lean b/LeanPool/VacuumBellSeparation/Bell/DominatedNormalStateResidual.lean new file mode 100644 index 0000000000..633b91132c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/DominatedNormalStateResidual.lean @@ -0,0 +1,70 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.DominatedStateResidual +public import LeanPool.VacuumBellSeparation.Bell.NormalStateMixtures + +/-! Normality of an actual positive residual, for arbitrary directed positive +suprema. No GNS representation or normal-state density is postulated. -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite.HC00 + +open Filter +open scoped ComplexOrder Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem stateFunctional_real_tendsto_of_normal (M : VonNeumannAlgebra H) + (φ : StateSpace M) (hn : IsNormalFunctional M φ.1) + {s : Set M.toStarSubalgebra} (hs : s.Nonempty) (hd : DirectedOn (· ≤ ·) s) + (hp : ∀ X ∈ s, 0 ≤ X) {X : M.toStarSubalgebra} (hX : IsLUB s X) : + Tendsto (fun i : s => (φ.1 i.1).re) atTop (𝓝 (φ.1 X).re) := by + obtain ⟨p, hp1, he⟩ := φ.2 + have hn' : IsNormalFunctional M p := by + simpa only [IsNormalFunctional, he] using hn + simpa only [he] using positiveFunctional_real_tendsto_of_normal M p hn' hs hd hp hX + +theorem dominatedStateResidual_isNormal (M : VonNeumannAlgebra H) + (ω φ : StateSpace M) (hnω : IsNormalFunctional M ω.1) + (hnφ : IsNormalFunctional M φ.1) {t : ℝ} (ht1 : t < 1) + (hdom : ∀ T : M.toStarSubalgebra, 0 ≤ T → t • φ.1 T ≤ ω.1 T) : + IsNormalFunctional M (dominatedStateResidual M ω φ t) := by + intro s hs hd hp X hX + let : Nonempty s := hs.to_subtype + let : IsDirectedOrder s := hd.isDirectedOrder + have hlim : Tendsto (fun i : s => (dominatedStateResidual M ω φ t i.1).re) atTop + (𝓝 (dominatedStateResidual M ω φ t X).re) := by + simpa only [dominatedStateResidual, smul_apply, + sub_apply, Complex.smul_re, Complex.sub_re, smul_eq_mul] using + ((stateFunctional_real_tendsto_of_normal M ω hnω hs hd hp hX).sub + ((stateFunctional_real_tendsto_of_normal M φ hnφ hs hd hp hX).const_mul t)).const_mul + (1 - t)⁻¹ + obtain ⟨p, hp1, he⟩ := dominatedStateResidual_isState M ω φ ht1 hdom + constructor + · rintro _ ⟨Y, hY, rfl⟩ + have hle : (p Y).re ≤ (p X).re := + (Complex.le_def.mp (p.monotone' (hX.1 hY))).1 + rw [he Y, he X] at hle + exact hle + · intro r hr + exact le_of_tendsto hlim (Eventually.of_forall fun i : s => hr ⟨i.1, i.2, rfl⟩) + +theorem jointBellCorrelation_maximal_normal_of_dominated (A B : VonNeumannAlgebra H) + (hcomm : Commuting A B) (ω φ : NormalStateSpace (jointAlgebra A B)) + (hmax : jointBellCorrelation A B ω.1 = Real.sqrt 2) + {t : ℝ} (ht : 0 < t) (ht1 : t < 1) + (hdom : ∀ T : (jointAlgebra A B).toStarSubalgebra, + 0 ≤ T → t • φ.1 T ≤ ω.1 T) : + jointBellCorrelation A B φ.1 = Real.sqrt 2 := + jointBellCorrelation_maximal_of_dominated A B hcomm ⟨ω.1, ω.2.1⟩ ⟨φ.1, φ.2.1⟩ + hmax ht ht1 hdom + +end VacuumBellSeparation.Bipartite.HC00 diff --git a/LeanPool/VacuumBellSeparation/Bell/DominatedStateResidual.lean b/LeanPool/VacuumBellSeparation/Bell/DominatedStateResidual.lean new file mode 100644 index 0000000000..91e0db8953 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/DominatedStateResidual.lean @@ -0,0 +1,81 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.MaximalBellClosure +public import LeanPool.VacuumBellSeparation.Bell.NormalStateMarginals + +/-! +An actual positive dominated state is a component of a maximal state. +The residual is constructed in the original continuous dual. This does not +prove that the dominated normal states are norm dense for a faithful state. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite.HC00 + +open scoped ComplexOrder Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Dominated state residual given by `(1 - t)⁻¹ • (ω.1 - t • φ.1)`. -/ +def dominatedStateResidual (M : VonNeumannAlgebra H) (ω φ : StateSpace M) (t : ℝ) : + StrongDual ℂ M.toStarSubalgebra := (1 - t)⁻¹ • (ω.1 - t • φ.1) + +theorem dominatedStateResidual_isState (M : VonNeumannAlgebra H) + (ω φ : StateSpace M) {t : ℝ} (ht1 : t < 1) + (hdom : ∀ T : M.toStarSubalgebra, 0 ≤ T → t • φ.1 T ≤ ω.1 T) : + IsStateFunctional M (dominatedStateResidual M ω φ t) := by + let ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ := { + toLinearMap := (dominatedStateResidual M ω φ t).toLinearMap + monotone' := by + intro X Y hXY + have hp : 0 ≤ ω.1 (Y - X) - t • φ.1 (Y - X) := + sub_nonneg.mpr (hdom (Y - X) (sub_nonneg.mpr hXY)) + have he : dominatedStateResidual M ω φ t Y - dominatedStateResidual M ω φ t X = + (1 - t)⁻¹ • (ω.1 (Y - X) - t • φ.1 (Y - X)) := by + simp only [dominatedStateResidual, smul_apply, + sub_apply, map_sub, smul_sub] + abel + apply sub_nonneg.mp + change 0 ≤ dominatedStateResidual M ω φ t Y - dominatedStateResidual M ω φ t X + rw [he] + exact smul_nonneg (inv_nonneg.mpr (sub_pos.mpr ht1).le) hp } + refine ⟨ψ, ?_, fun _ => rfl⟩ + change (1 - t)⁻¹ • (ω.1 1 - t • φ.1 1) = (1 : ℂ) + have he : ω.1 1 - t • φ.1 1 = (1 - t) • (1 : ℂ) := by + rw [ω.2.apply_one, φ.2.apply_one, sub_smul, one_smul] + rw [he, smul_smul, inv_mul_cancel₀ (sub_pos.mpr ht1).ne', one_smul] + +theorem dominatedStateResidual_decomposition (M : VonNeumannAlgebra H) + (ω φ : StateSpace M) {t : ℝ} (ht1 : t < 1) (T : M.toStarSubalgebra) : + t • φ.1 T + (1 - t) • dominatedStateResidual M ω φ t T = ω.1 T := by + change t • φ.1 T + (1 - t) • ((1 - t)⁻¹ • (ω.1 T - t • φ.1 T)) = ω.1 T + rw [smul_smul, mul_inv_cancel₀ (sub_pos.mpr ht1).ne', one_smul] + abel + +/-- Domination means an actual inequality on every positive element of the +original joint algebra. The complementary state is proved to exist. -/ +theorem jointBellCorrelation_maximal_of_dominated (A B : VonNeumannAlgebra H) + (hcomm : Commuting A B) (ω φ : StateSpace (jointAlgebra A B)) + (hmax : jointBellCorrelation A B ω.1 = Real.sqrt 2) + {t : ℝ} (ht : 0 < t) (ht1 : t < 1) + (hdom : ∀ T : (jointAlgebra A B).toStarSubalgebra, + 0 ≤ T → t • φ.1 T ≤ ω.1 T) : + jointBellCorrelation A B φ.1 = Real.sqrt 2 := by + let ψ : StateSpace (jointAlgebra A B) := + ⟨dominatedStateResidual (jointAlgebra A B) ω φ t, + dominatedStateResidual_isState _ ω φ ht1 hdom⟩ + have he : (fun T => t • φ.1 T + (1 - t) • ψ.1 T) = ω.1 := by + funext T + exact dominatedStateResidual_decomposition _ ω φ ht1 T + exact (jointBellCorrelation_state_maximal_components A B hcomm φ ψ ht ht1 + (by rw [he]; exact hmax)).1 + +end VacuumBellSeparation.Bipartite.HC00 diff --git a/LeanPool/VacuumBellSeparation/Bell/EffectResolventParameter.lean b/LeanPool/VacuumBellSeparation/Bell/EffectResolventParameter.lean new file mode 100644 index 0000000000..b82d77125d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/EffectResolventParameter.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.RationalResolvent +public import LeanPool.VacuumBellSeparation.Bell.DirectedAlgebraUnion + +/-! +# Every strict scalar multiple of an effect is a quadratic resolvent transform + +For 0≤E≤1 and 0≤r<1, the genuine bounded selfadjoint parameter is the real +functional calculus of sqrt(rt/(1-rt)). Its quadratic resolvent is exactly +1-rE. This uses only the true spectrum of E and does not assume an inverse +at r=1. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Effect parameter function given by `Real.sqrt (r * t / (1 - r * t))`. -/ +noncomputable def effectParameterFunction (r t : ℝ) : ℝ := Real.sqrt (r * t / (1 - r * t)) + +theorem effect_spectrum_bounds {E : H →L[ℂ] H} (hE : 0 ≤ E) (hE1 : E ≤ 1) + {t : ℝ} (ht : t ∈ spectrum ℝ E) : 0 ≤ t ∧ t ≤ 1 := by + refine ⟨(StarOrderedRing.nonneg_iff_spectrum_nonneg E hE.isSelfAdjoint).mp hE t ht, ?_⟩ + exact (Real.le_norm_self t).trans + ((IsometricContinuousFunctionalCalculus.norm_spectrum_le E ht hE.isSelfAdjoint).trans + ((CStarAlgebra.norm_le_one_iff_of_nonneg E hE).mpr hE1)) + +theorem effectParameterFunction_continuousOn {E : H →L[ℂ] H} + (hE : 0 ≤ E) (hE1 : E ≤ 1) {r : ℝ} (hr : 0 ≤ r) (hr1 : r < 1) : + ContinuousOn (effectParameterFunction r) (spectrum ℝ E) := by + apply Real.continuous_sqrt.comp_continuousOn + apply (continuous_const.mul continuous_id).continuousOn.div + (continuous_const.sub (continuous_const.mul continuous_id)).continuousOn + intro t ht + have ht1 := (effect_spectrum_bounds hE hE1 ht).2 + have hrt : r * t < 1 := (mul_le_of_le_one_right hr ht1).trans_lt hr1 + exact ne_of_gt (sub_pos.mpr hrt) + +theorem quadraticResolventFunction_effectParameter {r t : ℝ} + (hr : 0 ≤ r) (hr1 : r < 1) (ht : 0 ≤ t) (ht1 : t ≤ 1) : + quadraticResolventFunction (effectParameterFunction r t) = 1 - r * t := by + have hrt : r * t < 1 := (mul_le_of_le_one_right hr ht1).trans_lt hr1 + have hden : 0 < 1 - r * t := sub_pos.mpr hrt + have hnonneg : 0 ≤ r * t / (1 - r * t) := div_nonneg (mul_nonneg hr ht) hden.le + rw [quadraticResolventFunction, effectParameterFunction, Real.sq_sqrt hnonneg] + have he : 1 + r * t / (1 - r * t) = 1 / (1 - r * t) := by + field_simp [hden.ne']; ring + rw [he, one_div_one_div] + +/-- Effect resolvent parameter obtained from `cfc`. -/ +noncomputable def effectResolventParameter (r : ℝ) (E : H →L[ℂ] H) : H →L[ℂ] H := + cfc (effectParameterFunction r) E + +theorem effectResolventParameter_isSelfAdjoint (r : ℝ) (E : H →L[ℂ] H) : + IsSelfAdjoint (effectResolventParameter r E) := cfc_predicate _ _ + +theorem quadraticResolvent_effectResolventParameter {E : H →L[ℂ] H} + (hE : 0 ≤ E) (hE1 : E ≤ 1) {r : ℝ} (hr : 0 ≤ r) (hr1 : r < 1) : + quadraticResolvent (effectResolventParameter r E) = 1 - r • E := by + rw [quadraticResolvent, effectResolventParameter, + ← cfc_comp' quadraticResolventFunction (effectParameterFunction r) E + quadraticResolventFunction_continuous.continuousOn + (effectParameterFunction_continuousOn hE hE1 hr hr1) hE.isSelfAdjoint] + calc + cfc (fun t => quadraticResolventFunction (effectParameterFunction r t)) E = + cfc (fun t : ℝ => 1 - r * t) E := cfc_congr (fun t ht => + quadraticResolventFunction_effectParameter hr hr1 + (effect_spectrum_bounds hE hE1 ht).1 (effect_spectrum_bounds hE hE1 ht).2) + _ = 1 - r • E := by + rw [cfc_sub (fun _ : ℝ => 1) (fun t : ℝ => r * t) E + continuous_const.continuousOn (continuous_const.mul continuous_id).continuousOn, + cfc_const_one ℝ E hE.isSelfAdjoint, cfc_const_mul_id r E hE.isSelfAdjoint] + +theorem one_sub_quadraticResolvent_effectResolventParameter {E : H →L[ℂ] H} + (hE : 0 ≤ E) (hE1 : E ≤ 1) {r : ℝ} (hr : 0 ≤ r) (hr1 : r < 1) : + 1 - quadraticResolvent (effectResolventParameter r E) = r • E := by + rw [quadraticResolvent_effectResolventParameter hE hE1 hr hr1, sub_sub_cancel] + +theorem effectResolventParameter_mem (A : VonNeumannAlgebra H) + {E : H →L[ℂ] H} (hE : E ∈ A) (r : ℝ) : effectResolventParameter r E ∈ A := + cfc_mem_vonNeumannAlgebra A _ hE + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/EventConstantDefs.lean b/LeanPool/VacuumBellSeparation/Bell/EventConstantDefs.lean new file mode 100644 index 0000000000..81df587fc5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/EventConstantDefs.lean @@ -0,0 +1,45 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Defs + +/-! +# The event comparison constants `K_{r,±}` (definitions only) + +Equation (3.1) (`eq:K`) of the manuscript defines, for `r > 1`, + +`K_{r,+} = sup_{E,P} ω(EP)^r / (ω(E)ω(P))^{r-1}`, +`K_{r,-} = sup_{E,P} (ω(E)ω(P))^r / ω(EP)^{r-1}`, + +the suprema ranging over local projections with positive product of marginals, a positive +numerator with zero denominator giving `+∞`. Here they are `eventConstPlus` and +`eventConstMinus`, valued in `ℝ≥0∞` (in `ℝ≥0∞`, `x / 0 = ⊤` for `x ≠ 0`). + +This module contains definitions only. +-/ + +@[expose] public section + +open scoped ENNReal + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The event comparison constant `K_{r,+}` of (3.1). -/ +noncomputable def eventConstPlus (ω : State H) (𝔄 𝔅 : VonNeumannAlgebra H) (r : ℝ) : ℝ≥0∞ := + ⨆ E ∈ projections 𝔄, ⨆ P ∈ projections 𝔅, ⨆ (_ : 0 < (ω E).re * (ω P).re), + ENNReal.ofReal ((ω (E * P)).re ^ r / ((ω E).re * (ω P).re) ^ (r - 1)) + +/-- The event comparison constant `K_{r,-}` of (3.1); the quotient is taken in `ℝ≥0∞`, so a +positive numerator over a zero denominator is `⊤`. -/ +noncomputable def eventConstMinus (ω : State H) (𝔄 𝔅 : VonNeumannAlgebra H) (r : ℝ) : ℝ≥0∞ := + ⨆ E ∈ projections 𝔄, ⨆ P ∈ projections 𝔅, ⨆ (_ : 0 < (ω E).re * (ω P).re), + ENNReal.ofReal (((ω E).re * (ω P).re) ^ r) / ENNReal.ofReal ((ω (E * P)).re ^ (r - 1)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/EventConstantUpper.lean b/LeanPool/VacuumBellSeparation/Bell/EventConstantUpper.lean new file mode 100644 index 0000000000..05b35b0918 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/EventConstantUpper.lean @@ -0,0 +1,70 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.EventConstants + +/-! +# Upper event constants from denominator-free effect bounds + +Both actual supremum definitions are bounded directly. In the reverse +direction the extended quotient retains the zero-denominator convention. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped ENNReal + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem projections_subset_effects (M : VonNeumannAlgebra H) : projections M ⊆ effects M := by + intro E hE + exact ⟨hE.1, isPositive_of_mem_projections hE, + isPositive_of_mem_projections (one_sub_mem_projections hE)⟩ + +theorem eventConstPlus_le_of_effect_bound (ω : State H) (M N : VonNeumannAlgebra H) + {r K : ℝ} + (hbound : ∀ E ∈ effects M, ∀ P ∈ effects N, + (ω (E * P)).re ^ r ≤ K * ((ω E).re * (ω P).re) ^ (r - 1)) : + eventConstPlus ω M N r ≤ ENNReal.ofReal K := by + apply iSup_le + intro E + apply iSup_le + intro hE + apply iSup_le + intro P + apply iSup_le + intro hP + apply iSup_le + intro hpos + apply ENNReal.ofReal_le_ofReal + exact (div_le_iff₀ (Real.rpow_pos_of_pos hpos (r - 1))).mpr + (hbound E (projections_subset_effects M hE) P (projections_subset_effects N hP)) + +theorem eventConstMinus_le_of_effect_bound (ω : State H) (M N : VonNeumannAlgebra H) + {r K : ℝ} (hK : 0 ≤ K) + (hbound : ∀ E ∈ effects M, ∀ P ∈ effects N, + ((ω E).re * (ω P).re) ^ r ≤ K * (ω (E * P)).re ^ (r - 1)) : + eventConstMinus ω M N r ≤ ENNReal.ofReal K := by + apply iSup_le + intro E + apply iSup_le + intro hE + apply iSup_le + intro P + apply iSup_le + intro hP + apply iSup_le + intro hpos + apply ENNReal.div_le_of_le_mul + rw [← ENNReal.ofReal_mul hK] + exact ENNReal.ofReal_le_ofReal + (hbound E (projections_subset_effects M hE) P (projections_subset_effects N hP)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/EventConstants.lean b/LeanPool/VacuumBellSeparation/Bell/EventConstants.lean new file mode 100644 index 0000000000..9b9bee141f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/EventConstants.lean @@ -0,0 +1,198 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.ReflectionReduction +public import LeanPool.VacuumBellSeparation.Bell.EventConstantDefs + +/-! +# The event comparison constants `K_{r,±}` and Theorem 3.1 in the manuscript's form + +Equation (3.1) (`eq:K`) of the manuscript defines, for `r > 1`, + +`K_{r,+} = sup_{E,P} ω(EP)^r / (ω(E)ω(P))^{r-1}`, +`K_{r,-} = sup_{E,P} (ω(E)ω(P))^r / ω(EP)^{r-1}`, + +the suprema ranging over local projections with positive product of marginals, a positive +numerator with zero denominator giving `+∞`. They are defined in +`VacuumBellSeparation.Bell.EventConstantDefs` as `eventConstPlus` and `eventConstMinus`. + +`eventPlus_bound` and `eventMinus_bound` convert finiteness of the constants into the +denominator-free inequalities used by `chshValue_le_one_of_projection_bounds`. + +`bellCorrelation_eq_one_of_event_constants_of_approx` is Theorem 3.1 of the manuscript with +one extra explicit hypothesis per algebra, the reflection-approximation property +`saContractions M ⊆ closure (convexHull ℝ (reflections M))`; that property is proved for +every von Neumann algebra in `VacuumBellSeparation.Bell.Theorem31` +(`saContractions_subset_closure_convexHull_reflections`), which also states the theorem +without the extra hypotheses (`probability_criterion`). +-/ + +@[expose] public section + +open scoped ENNReal + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem le_eventConstPlus (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (r : ℝ) + {E P : H →L[ℂ] H} (hE : E ∈ projections 𝔄) (hP : P ∈ projections 𝔅) + (hpos : 0 < (ω E).re * (ω P).re) : + ENNReal.ofReal ((ω (E * P)).re ^ r / ((ω E).re * (ω P).re) ^ (r - 1)) + ≤ eventConstPlus ω 𝔄 𝔅 r := + le_iSup₂_of_le E hE (le_iSup₂_of_le P hP (le_iSup_of_le hpos le_rfl)) + +theorem le_eventConstMinus (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (r : ℝ) + {E P : H →L[ℂ] H} (hE : E ∈ projections 𝔄) (hP : P ∈ projections 𝔅) + (hpos : 0 < (ω E).re * (ω P).re) : + ENNReal.ofReal (((ω E).re * (ω P).re) ^ r) / ENNReal.ofReal ((ω (E * P)).re ^ (r - 1)) + ≤ eventConstMinus ω 𝔄 𝔅 r := + le_iSup₂_of_le E hE (le_iSup₂_of_le P hP (le_iSup_of_le hpos le_rfl)) + +/-- A projection is a positive operator. -/ +theorem isPositive_of_mem_projections {M : VonNeumannAlgebra H} {E : H →L[ℂ] H} + (hE : E ∈ projections M) : E.IsPositive := by + have h : (0 : H →L[ℂ] H) ≤ star E * E := star_mul_self_nonneg E + rw [hE.2.1.star_eq, hE.2.2] at h + exact ContinuousLinearMap.nonneg_iff_isPositive.mp h + +/-- The complement of a projection is a projection. -/ +theorem one_sub_mem_projections {M : VonNeumannAlgebra H} {E : H →L[ℂ] H} + (hE : E ∈ projections M) : 1 - E ∈ projections M := by + refine ⟨sub_mem (one_mem M) hE.1, IsSelfAdjoint.sub (by simp) hE.2.1, ?_⟩ + simp only [sub_mul, mul_sub, one_mul, mul_one, hE.2.2, sub_self, sub_zero] + +/-- Probabilities of a pair of commuting local projections: `0 ≤ ω(EP) ≤ min(ω(E), ω(P))`. -/ +theorem projection_cell_facts (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} + (hcomm : Commuting 𝔄 𝔅) {E P : H →L[ℂ] H} + (hE : E ∈ projections 𝔄) (hP : P ∈ projections 𝔅) : + 0 ≤ (ω (E * P)).re ∧ (ω (E * P)).re ≤ (ω E).re ∧ (ω (E * P)).re ≤ (ω P).re ∧ + 0 ≤ (ω E).re ∧ 0 ≤ (ω P).re := by + have hEp := isPositive_of_mem_projections hE + have hPp := isPositive_of_mem_projections hP + have hc : E * P = P * E := hcomm E hE.1 P hP.1 + have hE' := isPositive_of_mem_projections (one_sub_mem_projections hE) + have hP' := isPositive_of_mem_projections (one_sub_mem_projections hP) + have h1 : (E * (1 - P)).IsPositive := isPositive_mul_of_commute hEp hP' (by + rw [mul_sub, sub_mul, mul_one, one_mul, hc]) + have h2 : ((1 - E) * P).IsPositive := isPositive_mul_of_commute hE' hPp (by + rw [mul_sub, sub_mul, mul_one, one_mul, hc]) + have e1 : ω (E * (1 - P)) = ω E - ω (E * P) := by rw [mul_sub, mul_one, map_sub] + have e2 : ω ((1 - E) * P) = ω P - ω (E * P) := by rw [sub_mul, one_mul, map_sub] + have n1 := (ω.map_nonneg' _ h1).2 + have n2 := (ω.map_nonneg' _ h2).2 + rw [e1, Complex.sub_re] at n1 + rw [e2, Complex.sub_re] at n2 + exact ⟨(ω.map_nonneg' _ (isPositive_mul_of_commute hEp hPp hc)).2, by linarith, by linarith, + (ω.map_nonneg' _ hEp).2, (ω.map_nonneg' _ hPp).2⟩ + +/-- Finiteness of `K_{r,+}` gives the denominator-free upper event bound for all pairs of +local projections. -/ +theorem eventPlus_bound (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {r : ℝ} (hr : 1 < r) (hfin : eventConstPlus ω 𝔄 𝔅 r ≠ ⊤) : + ∀ E ∈ projections 𝔄, ∀ P ∈ projections 𝔅, + (ω (E * P)).re ^ r + ≤ (eventConstPlus ω 𝔄 𝔅 r).toReal * ((ω E).re * (ω P).re) ^ (r - 1) := by + intro E hE P hP + obtain ⟨hw0, hwE, hwP, hE0, hP0⟩ := projection_cell_facts ω hcomm hE hP + have hr0 : r ≠ 0 := (lt_trans zero_lt_one hr).ne' + have hr1 : r - 1 ≠ 0 := (sub_pos.mpr hr).ne' + by_cases hpos : 0 < (ω E).re * (ω P).re + · have h1 := le_eventConstPlus ω r hE hP hpos + rw [ENNReal.ofReal_le_iff_le_toReal hfin] at h1 + have hden : 0 < ((ω E).re * (ω P).re) ^ (r - 1) := Real.rpow_pos_of_pos hpos _ + exact (div_le_iff₀ hden).mp h1 + · have hm : (ω E).re * (ω P).re = 0 := le_antisymm (not_lt.mp hpos) (mul_nonneg hE0 hP0) + have hw : (ω (E * P)).re = 0 := by + rcases mul_eq_zero.mp hm with h | h + · exact le_antisymm (hwE.trans h.le) hw0 + · exact le_antisymm (hwP.trans h.le) hw0 + rw [hw, hm, Real.zero_rpow hr0, Real.zero_rpow hr1] + simp + +/-- Finiteness of `K_{r,-}` gives the denominator-free lower event bound for all pairs of +local projections. -/ +theorem eventMinus_bound (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {r : ℝ} (hr : 1 < r) (hfin : eventConstMinus ω 𝔄 𝔅 r ≠ ⊤) : + ∀ E ∈ projections 𝔄, ∀ P ∈ projections 𝔅, + ((ω E).re * (ω P).re) ^ r + ≤ (eventConstMinus ω 𝔄 𝔅 r).toReal * (ω (E * P)).re ^ (r - 1) := by + intro E hE P hP + obtain ⟨hw0, -, -, hE0, hP0⟩ := projection_cell_facts ω hcomm hE hP + have hr0 : r ≠ 0 := (lt_trans zero_lt_one hr).ne' + have hr1 : 0 < r - 1 := sub_pos.mpr hr + by_cases hpos : 0 < (ω E).re * (ω P).re + · have h1 := le_eventConstMinus ω r hE hP hpos + have hnum : 0 < ((ω E).re * (ω P).re) ^ r := Real.rpow_pos_of_pos hpos _ + by_cases hw : (ω (E * P)).re = 0 + · exfalso + rw [hw, Real.zero_rpow hr1.ne', ENNReal.ofReal_zero, + ENNReal.div_zero (ENNReal.ofReal_pos.mpr hnum).ne'] at h1 + exact hfin (top_le_iff.mp h1) + · have hwpos : 0 < (ω (E * P)).re := lt_of_le_of_ne hw0 (Ne.symm hw) + have hden : 0 < (ω (E * P)).re ^ (r - 1) := Real.rpow_pos_of_pos hwpos _ + rw [← ENNReal.ofReal_div_of_pos hden, ENNReal.ofReal_le_iff_le_toReal hfin] at h1 + exact (div_le_iff₀ hden).mp h1 + · have hm : (ω E).re * (ω P).re = 0 := le_antisymm (not_lt.mp hpos) (mul_nonneg hE0 hP0) + rw [hm, Real.zero_rpow hr0] + exact mul_nonneg ENNReal.toReal_nonneg (Real.rpow_nonneg hw0 _) + +/-- Identities attain the value `1` (manuscript, after (2.4)). -/ +theorem one_mem_chshValues (ω : State H) (𝔄 𝔅 : VonNeumannAlgebra H) : + (1 : ℝ) ∈ chshValues ω 𝔄 𝔅 := by + refine ⟨1, one_mem_saContractions 𝔄, 1, one_mem_saContractions 𝔄, + 1, one_mem_saContractions 𝔅, 1, one_mem_saContractions 𝔅, ?_⟩ + have h2 : chshOp (1 : H →L[ℂ] H) 1 1 1 = (2 : ℂ) • (1 : H →L[ℂ] H) := by + unfold chshOp + rw [sub_self, mul_zero, add_zero, one_mul, two_smul] + have h3 : ω (chshOp (1 : H →L[ℂ] H) 1 1 1) = ((2 : ℝ) : ℂ) := by + rw [h2, map_smul, ω.map_one'] + simp + rw [h3, Complex.norm_real, Real.norm_eq_abs, abs_two] + norm_num + +/-- The Bell correlation is at least `1`. -/ +theorem one_le_bellCorrelation (ω : State H) (𝔄 𝔅 : VonNeumannAlgebra H) : + 1 ≤ bellCorrelation ω 𝔄 𝔅 := + le_csSup (bddAbove_chshValues ω 𝔄 𝔅) (one_mem_chshValues ω 𝔄 𝔅) + +/-- If all CHSH expectations have modulus at most `2`, the Bell correlation equals `1`. -/ +theorem bellCorrelation_eq_one_of_chsh_le (ω : State H) (𝔄 𝔅 : VonNeumannAlgebra H) + (h : ∀ A₀ ∈ saContractions 𝔄, ∀ A₁ ∈ saContractions 𝔄, ∀ B₀ ∈ saContractions 𝔅, + ∀ B₁ ∈ saContractions 𝔅, ‖ω (chshOp A₀ A₁ B₀ B₁)‖ ≤ 2) : + bellCorrelation ω 𝔄 𝔅 = 1 := by + have hle : ∀ x ∈ chshValues ω 𝔄 𝔅, x ≤ 1 := by + rintro x ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, rfl⟩ + have h' := h A₀ hA₀ A₁ hA₁ B₀ hB₀ B₁ hB₁ + linarith + exact le_antisymm (csSup_le ⟨1, one_mem_chshValues ω 𝔄 𝔅⟩ hle) (one_le_bellCorrelation ω 𝔄 𝔅) + +/-- Theorem 3.1 of the manuscript, with the reflection-approximation property of the two +algebras as explicit hypotheses `hapA`, `hapB` (intermediate statement). -/ +theorem bellCorrelation_eq_one_of_event_constants_of_approx + (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + (hapA : saContractions 𝔄 ⊆ closure (convexHull ℝ (reflections 𝔄))) + (hapB : saContractions 𝔅 ⊆ closure (convexHull ℝ (reflections 𝔅))) + {rp rm q : ℝ} (hrp : 2 < rp) (hrm : 1 < rm) (hrm2 : rm < 2) + (hη : 0 < expEta rp rm) + (hKp : eventConstPlus ω 𝔄 𝔅 rp ≠ ⊤) (hKm : eventConstMinus ω 𝔄 𝔅 rm ≠ ⊤) + (hcl : ∀ A ∈ saContractions 𝔄, ∀ B ∈ saContractions 𝔅, + ‖ω (A * B) - ω A * ω B‖ ≤ q) + (hcut : q ^ expEta rp rm * (eventConstPlus ω 𝔄 𝔅 rp).toReal ^ nuPlus rp rm + * (eventConstMinus ω 𝔄 𝔅 rm).toReal ^ nuMinus rm + ≤ (2 : ℝ) ^ (-(2 / (expA rm * expB rp)))) : + bellCorrelation ω 𝔄 𝔅 = 1 := by + apply bellCorrelation_eq_one_of_chsh_le + apply chsh_bound_of_reflections ω hapA hapB + intro A₀ hA₀ A₁ hA₁ B₀ hB₀ B₁ hB₁ + have h := chshValue_le_one_of_projection_bounds ω hcomm hrp hrm hrm2 hη + (eventPlus_bound ω hcomm (by linarith) hKp) (eventMinus_bound ω hcomm hrm hKm) + hcl hcut hA₀ hA₁ hB₀ hB₁ + linarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/FaithfulDensityPurification.lean b/LeanPool/VacuumBellSeparation/Bell/FaithfulDensityPurification.lean new file mode 100644 index 0000000000..47702860d4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/FaithfulDensityPurification.lean @@ -0,0 +1,78 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.DensityPurification +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertEigenTrace + +/-! +# Coordinate recovery from a faithful density purification + +Faithfulness makes every eigenvalue of the actual compact positive density +strictly positive. Rank-one operators then recover all single-coordinate +vectors from its literal square-root purification. No bounded inverse of +the density or uniform positive lower spectral bound is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap InnerProductSpace +open scoped InnerProductSpace ENNReal + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + {ρ : H →L[ℂ] H} (hρ : IsFaithfulDensity ρ) + +include hρ in +theorem faithfulDensity_eigenvalue_pos (i : operatorEigenIndex ρ) : 0 < i.1.re := by + refine lt_of_le_of_ne (operatorEigenFamily_eigenvalue_nonneg hρ.1 i) ?_ + intro hz + have he := compactSelfAdjointBasis_apply_operator + (positiveTraceClass_isCompactOperator hρ.isPositiveTraceClass) hρ.1.isSelfAdjoint i + have hn := (positiveTraceClassEigenbasis hρ.isPositiveTraceClass).orthonormal.norm_eq_one i + have hb : positiveTraceClassEigenbasis hρ.isPositiveTraceClass i = 0 := by + apply hρ.2.2 + simpa only [positiveTraceClassEigenbasis, hz.symm, Complex.ofReal_zero, + zero_smul, map_zero] using he + exact zero_ne_one (by simpa only [hb, norm_zero] using hn) + +/-- The spectral basis is constructed from the actual compact operator. -/ +noncomputable def faithfulDensityPurification : lp (fun _ : operatorEigenIndex ρ => H) 2 := + densityPurification (positiveTraceClassEigenbasis hρ.isPositiveTraceClass) + hρ.isPositiveTraceClass + +theorem faithfulDensityPurification_apply (i : operatorEigenIndex ρ) : + faithfulDensityPurification hρ i = + Real.sqrt i.1.re • positiveTraceClassEigenbasis hρ.isPositiveTraceClass i := by + apply hilbertEigenbasis_sqrt_apply _ hρ.1 + intro j + exact compactSelfAdjointBasis_apply_operator + (positiveTraceClass_isCompactOperator hρ.isPositiveTraceClass) hρ.1.isSelfAdjoint j + +theorem faithfulDensityPurification_norm : ‖faithfulDensityPurification hρ‖ = 1 := + densityPurification_norm _ _ hρ.2.1 + +/-- Actual amplified rank-one action recovers a single coordinate. -/ +theorem amplification_rankOne_faithfulDensityPurification + [DecidableEq (operatorEigenIndex ρ)] (i : operatorEigenIndex ρ) (x : H) : + hilbertAmplification (operatorEigenIndex ρ) + (rankOne ℂ x (positiveTraceClassEigenbasis hρ.isPositiveTraceClass i)) + (faithfulDensityPurification hρ) = + (Real.sqrt i.1.re : ℂ) • lp.single 2 i x := by + ext j + simp only [hilbertAmplification_apply, faithfulDensityPurification_apply, rankOne_apply, + inner_smul_right_eq_smul, lp.coeFn_smul, Pi.smul_apply] + by_cases h : j = i + · subst j + simp [inner_self_eq_norm_sq_to_K, + (positiveTraceClassEigenbasis hρ.isPositiveTraceClass).orthonormal.norm_eq_one] + · rw [(positiveTraceClassEigenbasis hρ.isPositiveTraceClass).orthonormal.inner_eq_zero + (Ne.symm h)] + simp only [smul_zero, zero_smul, lp.single_apply_ne _ _ _ h] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalBellMaximality.lean b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalBellMaximality.lean new file mode 100644 index 0000000000..60a3927d85 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalBellMaximality.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalDominatedDensity +public import LeanPool.VacuumBellSeparation.Bell.NormalStateDominatedNormalization +public import LeanPool.VacuumBellSeparation.Bell.RepresentedVectorBellMaximality +public import LeanPool.VacuumBellSeparation.Bell.SignedBellCorrelation + +/-! +# Faithful normal maximality forces all normal states to be maximal + +This is the faithful-reference implication of SW88 Theorem 2.1 for the +original commuting A and B and their actual joint VNA. It uses arbitrary +normal states, not only represented vectors. The source's separability +assumption is unnecessary for this direction once a faithful normal reference +is supplied. No converse existence of such a reference or geometry is asserted. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open HC00 +open scoped ComplexOrder Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Normalized dominated states are dense for an actual faithful normal state. +The topology is the inherited full continuous-dual norm on NormalStateSpace. -/ +theorem normalState_mem_closure_dominated_of_faithful + (M : VonNeumannAlgebra H) (ω : NormalStateSpace M) + (hf : ∀ a : M.toStarSubalgebra, ω.1 (star a * a) = 0 → a = 0) + (ψ : NormalStateSpace M) : + ψ ∈ closure {ρ : NormalStateSpace M | + ∃ t : ℝ, 0 < t ∧ t < 1 ∧ ∀ X : M.toStarSubalgebra, + 0 ≤ X → t • ρ.1 X ≤ ω.1 X} := by + obtain ⟨φ, _, hφ⟩ := ω.2.1 + have hnφ : IsNormalFunctional M φ := by + simpa only [IsNormalFunctional, hφ] using ω.2.2 + have hfφ : ∀ a : M.toStarSubalgebra, φ (star a * a) = 0 → a = 0 := by + intro a ha + exact hf a (by simpa only [hφ] using ha) + obtain ⟨p, _, hp⟩ := ψ.2.1 + have hnp : IsNormalFunctional M p := by + simpa only [IsNormalFunctional, hp] using ψ.2.2 + have hep : (PositiveContinuousLinearMap.ofClass p).toContinuousLinearMap = ψ.1 := + ContinuousLinearMap.ext hp + have hc := normalFunctional_mem_closure_dominated_of_faithful_normal M φ p hnφ hfφ hnp + rw [hep] at hc + have h := normalState_mem_closure_dominated_of_positive_closure M φ hnφ ψ hc + simpa only [hφ] using h + +namespace SW88 + +/-- Literal all-normal-state conclusion on original A and B. The reference's +faithfulness is its actual vanishing condition on every positive square. -/ +theorem jointBellCorrelation_all_normal_maximal_of_faithful + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) + (ω : NormalStateSpace (jointAlgebra A B)) + (hf : ∀ a : (jointAlgebra A B).toStarSubalgebra, + ω.1 (star a * a) = 0 → a = 0) + (hmax : jointBellCorrelation A B ω.1 = Real.sqrt 2) + (ψ : NormalStateSpace (jointAlgebra A B)) : + jointBellCorrelation A B ψ.1 = Real.sqrt 2 := + jointBellCorrelation_maximal_of_mem_closure_dominated A B hcomm ω hmax + (normalState_mem_closure_dominated_of_faithful (jointAlgebra A B) ω hf ψ) + +/-- The same implication with the source's signed-real CHSH supremum. The +proved signed/absolute identity preserves the literal half normalization. -/ +theorem jointSignedBellCorrelation_all_normal_maximal_of_faithful + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) + (ω : NormalStateSpace (jointAlgebra A B)) + (hf : ∀ a : (jointAlgebra A B).toStarSubalgebra, + ω.1 (star a * a) = 0 → a = 0) + (hmax : jointSignedBellCorrelation A B ω.1 = Real.sqrt 2) + (ψ : NormalStateSpace (jointAlgebra A B)) : + jointSignedBellCorrelation A B ψ.1 = Real.sqrt 2 := by + rw [jointSignedBellCorrelation_eq A B hcomm ⟨ψ.1, ψ.2.1⟩] + apply jointBellCorrelation_all_normal_maximal_of_faithful A B hcomm ω hf + rwa [jointSignedBellCorrelation_eq A B hcomm ⟨ω.1, ω.2.1⟩] at hmax + +end SW88 +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalDominatedDensity.lean b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalDominatedDensity.lean new file mode 100644 index 0000000000..de45d932e8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalDominatedDensity.lean @@ -0,0 +1,133 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalGNSTransport +public import LeanPool.VacuumBellSeparation.Bell.SeparatingVectorDominatedDensity + +/-! +# Full-dual density relative to any faithful normal positive reference + +The faithful normal GNS image is an actual VNA. Its actual GNS vector is +separating; all normal positive functionals transport there and back by the +genuine star-algebra equivalence. This closes the reference-domination density +route without assuming a single-vector representation in the original H, +without a support-equality premise, and without normalization by reference mass. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +-- Carry out the norm-dual argument on an abstract Hilbert representation; +-- only its proved transport data are specialized to the concrete GNS space. +private theorem dominatedApprox_of_transport + {K : Type*} [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K] + (M : VonNeumannAlgebra H) (N : VonNeumannAlgebra K) + (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra) + (φ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (Ω : K) + (hnφ : IsNormalFunctional M φ) (hnψ : IsNormalFunctional M ψ) + (hsep : IsSeparatingForAlgebra N Ω) + (href : ∀ b, positiveFunctionalPushforward M N e φ b = vectorFunctional N Ω b) + (hnormal : ∀ χ : M.toStarSubalgebra →ₚ[ℂ] ℂ, + IsNormalFunctional N (positiveFunctionalPushforward M N e χ) ↔ IsNormalFunctional M χ) + {ε : ℝ} (hε : 0 < ε) : + ∃ (θ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (C : ℝ), + 0 ≤ C ∧ (∀ X : M.toStarSubalgebra, 0 ≤ X → θ X ≤ C • φ X) ∧ + IsNormalFunctional M θ ∧ + ‖(PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass θ).toContinuousLinearMap‖ < ε := by + let ψN := positiveFunctionalPushforward M N e ψ + have hnψN : IsNormalFunctional N ψN := (hnormal ψ).mpr hnψ + have hcl := normalFunctional_mem_closure_dominated_of_separating N + Ω hsep ψN hnψN + change (PositiveContinuousLinearMap.ofClass ψN).toContinuousLinearMap ∈ + closure (dominatedPositiveDualMonoid N (vectorPositiveLinearMap N Ω) : + Set (StrongDual ℂ N.toStarSubalgebra)) at hcl + obtain ⟨g, hg, hdist⟩ := Metric.mem_closure_iff.mp hcl ε hε + obtain ⟨hgpos, C, hC, hdom⟩ := hg + let η : N.toStarSubalgebra →ₚ[ℂ] ℂ := PositiveLinearMap.mk₀ g.toLinearMap hgpos + let θ := positiveFunctionalPushforward N M e.symm η + have hθdom : ∀ X : M.toStarSubalgebra, 0 ≤ X → θ X ≤ C • φ X := by + intro X hX + have hepos : 0 ≤ e X := by + simpa only [map_zero] using (vnaStarEquiv_le_iff M N e).mpr hX + have h := hdom (e X) hepos + have hr : vectorPositiveLinearMap N Ω (e X) = φ X := by + change vectorFunctional N Ω (e X) = φ X + rw [← href (e X), positiveFunctionalPushforward_apply, StarAlgEquiv.symm_apply_apply] + change g (e X) ≤ C • φ X + rwa [hr] at h + refine ⟨θ, C, hC, hθdom, isNormalFunctional_of_positive_domination M φ θ hnφ C hC hθdom, ?_⟩ + have hnorm := positiveFunctionalPushforward_difference_norm N M e.symm ψN η + have hback : positiveFunctionalPushforward N M e.symm ψN = ψ := + positiveFunctionalPushforward_symm M N e ψ + change ‖(PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass θ).toContinuousLinearMap‖ < ε + rw [hback] at hnorm + rw [hnorm] + exact (show ‖(PositiveContinuousLinearMap.ofClass ψN).toContinuousLinearMap - g‖ < ε by + simpa only [dist_eq_norm] using hdist) + +/-- Genuine full-dual norm approximation. Both the reference and the target +may have arbitrary positive mass, including the zero-space boundary. -/ +theorem exists_normal_dominated_approx_of_faithful_normal + (M : VonNeumannAlgebra H) (φ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hnφ : IsNormalFunctional M φ) + (hf : ∀ a : M.toStarSubalgebra, φ (star a * a) = 0 → a = 0) + (hnψ : IsNormalFunctional M ψ) {ε : ℝ} (hε : 0 < ε) : + ∃ (θ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (C : ℝ), + 0 ≤ C ∧ (∀ X : M.toStarSubalgebra, 0 ≤ X → θ X ≤ C • φ X) ∧ + IsNormalFunctional M θ ∧ + ‖(PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass θ).toContinuousLinearMap‖ < ε := by + obtain ⟨N, e, _, _, hsep, href, hnormal⟩ := + exists_faithful_normal_gns_transport M φ hnφ hf + exact dominatedApprox_of_transport M N e φ ψ (gnsUnitVector φ) + hnφ hnψ hsep href hnormal hε + +theorem normalFunctional_mem_closure_dominated_of_faithful_normal + (M : VonNeumannAlgebra H) (φ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hnφ : IsNormalFunctional M φ) + (hf : ∀ a : M.toStarSubalgebra, φ (star a * a) = 0 → a = 0) + (hnψ : IsNormalFunctional M ψ) : + (PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap ∈ + (dominatedPositiveDualMonoid M φ).topologicalClosure := by + change (PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap ∈ + closure (dominatedPositiveDualMonoid M φ : Set (StrongDual ℂ M.toStarSubalgebra)) + apply Metric.mem_closure_iff.mpr + intro ε hε + obtain ⟨θ, C, hC, hdom, _, hdist⟩ := + exists_normal_dominated_approx_of_faithful_normal M φ ψ hnφ hf hnψ hε + refine ⟨(PositiveContinuousLinearMap.ofClass θ).toContinuousLinearMap, + ⟨fun X hX => θ.map_nonneg hX, C, hC, hdom⟩, ?_⟩ + simpa only [dist_eq_norm] using hdist + +/-- Exact equality of literal subsets of the original full continuous dual. +The reverse inclusion uses previously proved positive-normal cone closedness. -/ +theorem closure_dominated_eq_positive_normal_of_faithful_normal + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hnφ : IsNormalFunctional M φ) + (hf : ∀ a : M.toStarSubalgebra, φ (star a * a) = 0 → a = 0) : + ((dominatedPositiveDualMonoid M φ).topologicalClosure : + Set (StrongDual ℂ M.toStarSubalgebra)) = + {f : StrongDual ℂ M.toStarSubalgebra | + (∀ X : M.toStarSubalgebra, 0 ≤ X → 0 ≤ f X) ∧ IsNormalFunctional M f} := by + apply Set.ext + intro f + constructor + · exact fun h => closure_dominated_positive_subset_normal M φ hnφ h + · rintro ⟨hfpos, hfn⟩ + let ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ := PositiveLinearMap.mk₀ f.toLinearMap hfpos + exact normalFunctional_mem_closure_dominated_of_faithful_normal M φ ψ hnφ hf hfn + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalGNSImage.lean b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalGNSImage.lean new file mode 100644 index 0000000000..6bf5f98613 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalGNSImage.lean @@ -0,0 +1,74 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalGNSBoundedWOT +public import LeanPool.VacuumBellSeparation.Bell.GNSFaithfulRange +public import LeanPool.VacuumBellSeparation.Bell.WOTClosedBallVNA + +/-! +The faithful normal GNS representation has its LITERAL image as a VNA. +The unit ball is exactly the continuous image of the original compact WOT +unit ball. Faithfulness gives the isometry needed for equality of these +balls; the separately proved closed-ball criterion then supplies the VNA. +No normality, closedness or support equality is assumed for the image. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped Topology ComplexOrder InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The image of the ORIGINAL WOT unit ball is exactly the LITERAL GNS-range +unit ball. The reverse inclusion uses the genuine faithful C-star isometry. -/ +theorem gns_unitBall_image_eq_of_faithful + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hf : ∀ a : M.toStarSubalgebra, φ (star a * a) = 0 → a = 0) : + Set.range (fun T : vnaWOTBall M 1 => + ContinuousLinearMapWOT.ofCLM (φ.gnsStarAlgHom (vnaWOTBallElement T))) = + {T : φ.GNS →WOT[ℂ] φ.GNS | + T.toCLM ∈ φ.gnsStarAlgHom.range ∧ ‖T.toCLM‖ ≤ 1} := by + have hnormMap (a : M.toStarSubalgebra) : ‖φ.gnsStarAlgHom a‖ = ‖a‖ := + gnsStarAlgHom_norm_of_faithful φ hf a + refine Set.ext fun T => ⟨?_, ?_⟩ + · rintro ⟨X, rfl⟩ + exact ⟨⟨vnaWOTBallElement X, rfl⟩, (hnormMap (vnaWOTBallElement X)).trans_le X.2.2⟩ + · rintro ⟨⟨a, ha⟩, hnorm⟩ + have hImage : ‖φ.gnsStarAlgHom a‖ ≤ 1 := (congrArg norm ha).trans_le hnorm + have hOriginal : ‖a‖ ≤ 1 := (hnormMap a).symm.trans_le hImage + let X : vnaWOTBall M 1 := ⟨ContinuousLinearMapWOT.ofCLM (a : H →L[ℂ] H), a.2, hOriginal⟩ + exact ⟨X, (congrArg ContinuousLinearMapWOT.ofCLM ha).trans + (ContinuousLinearMapWOT.ofCLM_toCLM T)⟩ + +/-- Compactness is in actual GNS WOT, not operator norm or a replacement topology. -/ +theorem isCompact_gns_unitBall_wot_of_faithful_normal + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hn : IsNormalFunctional M φ) + (hf : ∀ a : M.toStarSubalgebra, φ (star a * a) = 0 → a = 0) : + IsCompact {T : φ.GNS →WOT[ℂ] φ.GNS | + T.toCLM ∈ φ.gnsStarAlgHom.range ∧ ‖T.toCLM‖ ≤ 1} := by + let : CompactSpace (vnaWOTBall M 1) := + isCompact_iff_compactSpace.mp (isCompact_vna_unitBall_wot M) + rw [← gns_unitBall_image_eq_of_faithful M φ hf] + exact isCompact_range (continuous_gns_on_vnaWOTBall M 1 φ hn) + +/-- An actual VNA with exactly the faithful normal GNS image carrier. This +is not merely the generated double commutant or the norm closure of the image. -/ +theorem exists_vna_eq_gns_range_of_faithful_normal + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hn : IsNormalFunctional M φ) + (hf : ∀ a : M.toStarSubalgebra, φ (star a * a) = 0 → a = 0) : + ∃ N : VonNeumannAlgebra φ.GNS, N.toStarSubalgebra = φ.gnsStarAlgHom.range := by + apply exists_vna_eq_starSubalgebra_of_wot_closed_unitBall φ.gnsStarAlgHom.range + (gns_range_norm_closed_of_faithful φ hf) + exact (isCompact_gns_unitBall_wot_of_faithful_normal M φ hn hf).isClosed + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalGNSTransport.lean b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalGNSTransport.lean new file mode 100644 index 0000000000..8551a0d258 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalGNSTransport.lean @@ -0,0 +1,133 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalStarEquiv +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalGNSImage +public import LeanPool.VacuumBellSeparation.Bell.SeparatingCommutantCyclic + +/-! +The original algebra and the literal faithful normal GNS VNA are actually +star-isomorphic. Every positive functional transports by the genuine inverse, +with both directions of full order-normality and exact full-dual norm already +proved generically. The reference is the actual separating GNS vector. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Composition algebra of bounded operators on the completed GNS Hilbert space. -/ +local instance faithfulTransportGNSOperatorAlgebra (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : Algebra ℂ (φ.GNS →L[ℂ] φ.GNS) := + ContinuousLinearMap.algebra + +-- Prove the algebraic restriction before specializing to the completed GNS carrier. +/-- Restrict an injective star algebra homomorphism to its identified range. -/ +def faithfulTransportEquivOfRange {A B : Type*} + [Ring A] [Algebra ℂ A] [StarRing A] + [Ring B] [Algebra ℂ B] [StarRing B] [StarModule ℂ B] + (π : A →⋆ₐ[ℂ] B) (hπ : Function.Injective π) + (S : StarSubalgebra ℂ B) (hS : S = π.range) : A ≃⋆ₐ[ℂ] S := by + let πS : A →⋆ₐ[ℂ] S := π.codRestrict S (fun a => by rw [hS]; exact ⟨a, rfl⟩) + apply StarAlgEquiv.ofBijective πS + constructor + · intro a b hab + exact hπ (congrArg (fun z : S => (z : B)) hab) + · intro b + have hb : (b : B) ∈ π.range := by rw [← hS]; exact b.2 + obtain ⟨a, ha⟩ := hb + exact ⟨a, Subtype.ext ha⟩ + +private theorem faithfulTransport_equivOfRange_apply {A B : Type*} + [Ring A] [Algebra ℂ A] [StarRing A] + [Ring B] [Algebra ℂ B] [StarRing B] [StarModule ℂ B] + (π : A →⋆ₐ[ℂ] B) (hπ : Function.Injective π) + (S : StarSubalgebra ℂ B) (hS : S = π.range) (a : A) : + (faithfulTransportEquivOfRange π hπ S hS a : B) = π a := rfl + +/-- Codomain restriction uses the proved literal image equality. The equality +is not replaced by density in, or generation of, a larger algebra. -/ +def gnsEquivOfRangeEquality (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hf : ∀ a : M.toStarSubalgebra, φ (star a * a) = 0 → a = 0) + (N : VonNeumannAlgebra φ.GNS) (hN : N.toStarSubalgebra = φ.gnsStarAlgHom.range) : + M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra := + faithfulTransportEquivOfRange (A := M.toStarSubalgebra) (B := φ.GNS →L[ℂ] φ.GNS) + φ.gnsStarAlgHom (gnsStarAlgHom_injective_of_faithful φ hf) N.toStarSubalgebra hN + +theorem gnsEquivOfRangeEquality_apply (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hf : ∀ a : M.toStarSubalgebra, φ (star a * a) = 0 → a = 0) + (N : VonNeumannAlgebra φ.GNS) (hN : N.toStarSubalgebra = φ.gnsStarAlgHom.range) + (a : M.toStarSubalgebra) : + (gnsEquivOfRangeEquality M φ hf N hN a : φ.GNS →L[ℂ] φ.GNS) = φ.gnsStarAlgHom a := + faithfulTransport_equivOfRange_apply φ.gnsStarAlgHom + (gnsStarAlgHom_injective_of_faithful φ hf) N.toStarSubalgebra hN a + +-- Eliminate the range witness and construct all transport data on an abstract +-- Hilbert carrier. The completed GNS carrier is substituted only afterwards. +private theorem faithfulTransport_exists_of_range + {K : Type*} [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K] + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (π : M.toStarSubalgebra →⋆ₐ[ℂ] (K →L[ℂ] K)) (Ω : K) + (hπ : Function.Injective π) + (hrange : ∃ N : VonNeumannAlgebra K, N.toStarSubalgebra = π.range) + (hsep : ∀ T : K →L[ℂ] K, T ∈ π.range → T Ω = 0 → T = 0) + (hcoeff : ∀ a : M.toStarSubalgebra, inner ℂ Ω (π a Ω) = φ a) : + ∃ (N : VonNeumannAlgebra K) (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra), + N.toStarSubalgebra = π.range ∧ + (∀ a, (e a : K →L[ℂ] K) = π a) ∧ + IsSeparatingForAlgebra N Ω ∧ + (∀ b, positiveFunctionalPushforward M N e φ b = vectorFunctional N Ω b) ∧ + (∀ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ, + IsNormalFunctional N (positiveFunctionalPushforward M N e ψ) ↔ IsNormalFunctional M ψ) := by + obtain ⟨N, hN⟩ := hrange + let e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra := + faithfulTransportEquivOfRange π hπ N.toStarSubalgebra hN + have he (a : M.toStarSubalgebra) : (e a : K →L[ℂ] K) = π a := + faithfulTransport_equivOfRange_apply π hπ N.toStarSubalgebra hN a + refine ⟨N, e, hN, he, ?_, ?_, ?_⟩ + · intro T hT hz + apply hsep T _ hz + change T ∈ N.toStarSubalgebra at hT + rwa [hN] at hT + · intro b + rw [positiveFunctionalPushforward_apply] + change φ (e.symm b) = inner ℂ Ω ((b : K →L[ℂ] K) Ω) + have hb : (b : K →L[ℂ] K) = π (e.symm b) := by + simpa only [StarAlgEquiv.apply_symm_apply] using he (e.symm b) + rw [hb] + exact (hcoeff (e.symm b)).symm + · exact fun ψ => positiveFunctionalPushforward_normal_iff M N e ψ + +/-- All positive normal original functionals can be moved to this actual VNA. +There is no normality or representation hypothesis on an inverse map. -/ +theorem exists_faithful_normal_gns_transport + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hn : IsNormalFunctional M φ) + (hf : ∀ a : M.toStarSubalgebra, φ (star a * a) = 0 → a = 0) : + ∃ (N : VonNeumannAlgebra φ.GNS) (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra), + N.toStarSubalgebra = φ.gnsStarAlgHom.range ∧ + (∀ a, (e a : φ.GNS →L[ℂ] φ.GNS) = φ.gnsStarAlgHom a) ∧ + IsSeparatingForAlgebra N (gnsUnitVector φ) ∧ + (∀ b, positiveFunctionalPushforward M N e φ b = vectorFunctional N (gnsUnitVector φ) b) ∧ + (∀ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ, + IsNormalFunctional N (positiveFunctionalPushforward M N e ψ) ↔ IsNormalFunctional M ψ) := by + exact faithfulTransport_exists_of_range (K := φ.GNS) M φ + φ.gnsStarAlgHom (gnsUnitVector φ) + (gnsStarAlgHom_injective_of_faithful φ hf) + (exists_vna_eq_gns_range_of_faithful_normal M φ hn hf) + (gns_unitVector_separates_range_of_faithful φ hf) + (gnsUnitVector_expectation φ) + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalStateExistence.lean b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalStateExistence.lean new file mode 100644 index 0000000000..b1ce9167e3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalStateExistence.lean @@ -0,0 +1,165 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalStateDominatedNormalization +public import LeanPool.VacuumBellSeparation.Bell.NormalStateMixtures +public import Mathlib.Analysis.Normed.Group.InfiniteSum +public import Mathlib.Analysis.SpecificLimits.Normed +public import Mathlib.Topology.Algebra.InfiniteSum.Module +public import Mathlib.Topology.Algebra.InfiniteSum.Order +public import Mathlib.Topology.Bases +public import Mathlib.Topology.DenseEmbedding + +/-! +# A faithful normal state on a separably acting concrete VNA + +The construction sums strictly positive weighted vector functionals in the +original full continuous dual. Normality is preserved by its norm-closed +positive cone. Faithfulness is tested on every positive square and follows +from an actual dense sequence in the original Hilbert space. No faithful +reference state or single-vector representation of the sum is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter SW88 +open scoped Topology ComplexOrder InnerProductSpace BigOperators + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Finite positive sums preserve all directed positive suprema. -/ +theorem positiveFunctional_finset_sum_isNormal (M : VonNeumannAlgebra H) + {ι : Type*} (F : Finset ι) (φ : ι → M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hn : ∀ i ∈ F, IsNormalFunctional M (φ i)) : + IsNormalFunctional M (∑ i ∈ F, φ i) := by + rw [← FunLike.coe_sum F φ] + intro s hs hd hp X hX + let : Nonempty s := hs.to_subtype + let : IsDirectedOrder s := hd.isDirectedOrder + have hre (Y : M.toStarSubalgebra) : + ((∑ i ∈ F, φ i) Y).re = ∑ i ∈ F, (φ i Y).re := by + change Complex.reCLM ((∑ i ∈ F, φ i) Y) = _ + rw [sum_apply] + exact map_sum Complex.reCLM _ _ + have ht : Tendsto (fun j : s => ((∑ i ∈ F, φ i) j.1).re) atTop + (𝓝 (((∑ i ∈ F, φ i) X).re)) := by + simpa only [hre] using tendsto_finsetSum F + (fun i hi => positiveFunctional_real_tendsto_of_normal M (φ i) (hn i hi) hs hd hp hX) + constructor + · rintro _ ⟨Y, hY, rfl⟩ + exact (Complex.le_def.mp ((∑ i ∈ F, φ i).monotone' (hX.1 hY))).1 + · intro r hr + exact le_of_tendsto ht (Eventually.of_forall fun j : s => hr ⟨j.1, j.2, rfl⟩) + +/-- Convergence here is in the full dual norm, not pointwise or weak-star. -/ +theorem positiveFunctional_tsum_positive_normal (M : VonNeumannAlgebra H) + {ι : Type*} (φ : ι → M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hn : ∀ i, IsNormalFunctional M (φ i)) + (hs : Summable (fun i => (PositiveContinuousLinearMap.ofClass (φ i)).toContinuousLinearMap)) : + let f := ∑' i, (PositiveContinuousLinearMap.ofClass (φ i)).toContinuousLinearMap + (∀ X : M.toStarSubalgebra, 0 ≤ X → 0 ≤ f X) ∧ IsNormalFunctional M f := by + apply (isClosed_positive_normal_cone M).mem_of_tendsto hs.hasSum + apply Eventually.of_forall + intro F + have he : (∑ i ∈ F, (PositiveContinuousLinearMap.ofClass (φ i)).toContinuousLinearMap) = + (PositiveContinuousLinearMap.ofClass (∑ i ∈ F, φ i)).toContinuousLinearMap := by + ext X + rw [sum_apply] + change (∑ i ∈ F, φ i X) = (∑ i ∈ F, φ i) X + exact (sum_apply F φ X).symm + rw [he] + refine ⟨fun X hX => (∑ i ∈ F, φ i).map_nonneg hX, ?_⟩ + simpa only [PositiveContinuousLinearMap.coe_toContinuousLinearMap, + PositiveContinuousLinearMap.coe_ofClass, FunLike.coe_sum] using + positiveFunctional_finset_sum_isNormal M F φ (fun i _ => hn i) + +private theorem faithfulSeries_hasSum_apply {E : Type*} + [NormedAddCommGroup E] [NormedSpace ℂ E] + {g : ℕ → StrongDual ℂ E} (hs : Summable g) (a : E) : + HasSum (fun n => g n a) ((∑' n, g n) a) := by + exact (ContinuousLinearMap.apply ℂ ℂ a).hasSum hs.hasSum + +/-- A dense sequence yields a faithful normal positive functional on M itself. -/ +theorem exists_faithful_normal_positive_of_denseRange (M : VonNeumannAlgebra H) + (x : ℕ → H) (hx : DenseRange x) : + ∃ φ : M.toStarSubalgebra →ₚ[ℂ] ℂ, + IsNormalFunctional M φ ∧ ∀ a : M.toStarSubalgebra, + φ (star a * a) = 0 → a = 0 := by + let w : ℕ → ℝ := fun n => (1 / 2 : ℝ) ^ n / (1 + ‖vectorDual M (x n)‖) + have hw (n : ℕ) : 0 < w n := + div_pos (pow_pos (by norm_num) n) (by positivity) + let ψ (n : ℕ) : M.toStarSubalgebra →ₚ[ℂ] ℂ := + distillationScaleFunctional (w n) (hw n).le (vectorPositiveLinearMap M (x n)) + let g (n : ℕ) : StrongDual ℂ M.toStarSubalgebra := + (PositiveContinuousLinearMap.ofClass (ψ n)).toContinuousLinearMap + have hg (n : ℕ) : g n = w n • vectorDual M (x n) := by rfl + have hbound (n : ℕ) : ‖g n‖ ≤ (1 / 2 : ℝ) ^ n := by + rw [hg n, norm_smul, Real.norm_eq_abs, abs_of_pos (hw n)] + have he : w n * (1 + ‖vectorDual M (x n)‖) = (1 / 2 : ℝ) ^ n := + div_mul_cancel₀ _ (ne_of_gt (by positivity)) + nlinarith [hw n] + have hs : Summable g := + (summable_geometric_of_norm_lt_one (by norm_num : ‖(1 / 2 : ℝ)‖ < 1)).of_norm_bounded hbound + have hn (n : ℕ) : IsNormalFunctional M (ψ n) := + (vectorFunctional_isNormal M (x n)).positive_smul (w n) (hw n) + let f : StrongDual ℂ M.toStarSubalgebra := ∑' n, g n + obtain ⟨hfpos, hfn⟩ := positiveFunctional_tsum_positive_normal M ψ hn hs + let φ : M.toStarSubalgebra →ₚ[ℂ] ℂ := PositiveLinearMap.mk₀ f.toLinearMap hfpos + refine ⟨φ, hfn, ?_⟩ + intro a ha + have ha0 : f (star a * a) = 0 := ha + have hx0 (n : ℕ) : (a : H →L[ℂ] H) (x n) = 0 := by + have heval : HasSum (fun i => g i (star a * a)) (f (star a * a)) := + faithfulSeries_hasSum_apply hs (star a * a) + have hle : g n (star a * a) ≤ 0 := by + rw [← ha0] + exact le_hasSum heval n (fun i _ => (ψ i).map_nonneg (star_mul_self_nonneg a)) + have hz : g n (star a * a) = 0 := + le_antisymm hle ((ψ n).map_nonneg (star_mul_self_nonneg a)) + change w n • vectorFunctional M (x n) (star a * a) = 0 at hz + have hv : vectorFunctional M (x n) (star a * a) = 0 := by + have h := congrArg (fun z : ℂ => (w n)⁻¹ • z) hz + simpa only [smul_smul, inv_mul_cancel₀ (hw n).ne', one_smul, smul_zero] using h + change inner ℂ (x n) ((star (a : H →L[ℂ] H)) ((a : H →L[ℂ] H) (x n))) = 0 at hv + rw [ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.adjoint_inner_right] at hv + exact inner_self_eq_zero.mp hv + have he : (fun z : H => (a : H →L[ℂ] H) z) = fun _ => (0 : H) := + hx.equalizer (a : H →L[ℂ] H).continuous continuous_const (funext hx0) + apply Subtype.ext + exact ContinuousLinearMap.ext (congrFun he) + +/-- Separable nontrivial original H suffices. No faithful state is an input. -/ +theorem exists_faithful_normal_state_of_separable [TopologicalSpace.SeparableSpace H] [Nontrivial H] + (M : VonNeumannAlgebra H) : + ∃ φ : M.toStarSubalgebra →ₚ[ℂ] ℂ, + φ 1 = 1 ∧ IsNormalFunctional M φ ∧ + ∀ a : M.toStarSubalgebra, φ (star a * a) = 0 → a = 0 := by + obtain ⟨x, hx⟩ := TopologicalSpace.exists_dense_seq H + obtain ⟨ψ, hn, hf⟩ := exists_faithful_normal_positive_of_denseRange M x hx + let f := (PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap + have hp : 0 < ‖f‖ := by + apply norm_pos_iff.mpr + intro hz + have hψ : ψ (star (1 : M.toStarSubalgebra) * 1) = 0 := by + have h := congrArg (fun F : StrongDual ℂ M.toStarSubalgebra => F 1) hz + change ψ 1 = 0 at h + simpa only [star_one, one_mul] using h + have h10 : (1 : H →L[ℂ] H) = 0 := congrArg Subtype.val (hf 1 hψ) + exact one_ne_zero h10 + refine ⟨unitMassPositiveFunctional ψ, unitMassPositiveFunctional_one ψ hp, + hn.positive_smul ‖f‖⁻¹ (inv_pos.mpr hp), ?_⟩ + intro a ha + apply hf a + change ‖f‖⁻¹ • ψ (star a * a) = 0 at ha + have h := congrArg (fun z : ℂ => ‖f‖ • z) ha + simpa only [smul_smul, mul_inv_cancel₀ hp.ne', one_smul, smul_zero] using h + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalUpperLimit.lean b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalUpperLimit.lean new file mode 100644 index 0000000000..a8fc04ab36 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/FaithfulNormalUpperLimit.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalBellMaximality +public import Mathlib.Topology.MetricSpace.UniformConvergence + +/-! +A norm-bounded family of actual algebra elements that approaches a common +state upper bound in one faithful normal state approaches that same bound +in every normal state. The proof uses actual positive dominated states and +full-dual norm density, without a representation or compactness premise. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open HC00 Filter +open scoped ComplexOrder Topology NNReal + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem state_evaluation_tendsto_upper_of_dominated + (M : VonNeumannAlgebra H) (ω φ : StateSpace M) + (T : ℕ → M.toStarSubalgebra) (C : ℝ) + (hupper : ∀ ψ : StateSpace M, ∀ n, (ψ.1 (T n)).re ≤ C) + {t : ℝ} (ht : 0 < t) (ht1 : t < 1) + (hdom : ∀ X : M.toStarSubalgebra, 0 ≤ X → t • φ.1 X ≤ ω.1 X) + (hω : Tendsto (fun n => (ω.1 (T n)).re) atTop (𝓝 C)) : + Tendsto (fun n => (φ.1 (T n)).re) atTop (𝓝 C) := by + let ψ : StateSpace M := + ⟨dominatedStateResidual M ω φ t, dominatedStateResidual_isState M ω φ ht1 hdom⟩ + have hbound (n : ℕ) : C - (φ.1 (T n)).re ≤ (C - (ω.1 (T n)).re) / t := by + apply (le_div_iff₀ ht).mpr + have he := congrArg Complex.re (dominatedStateResidual_decomposition M ω φ ht1 (T n)) + change (t • φ.1 (T n) + (1 - t) • ψ.1 (T n)).re = (ω.1 (T n)).re at he + simp only [Complex.add_re, Complex.smul_re, smul_eq_mul] at he + have hp := mul_nonneg (sub_nonneg.mpr ht1.le) (sub_nonneg.mpr (hupper ψ n)) + nlinarith + have hlim : Tendsto (fun n => (C - (ω.1 (T n)).re) / t) atTop (𝓝 0) := by + simpa only [sub_self, zero_div] using ((tendsto_const_nhds (x := C)).sub hω).div_const t + have hz := squeeze_zero (fun n => sub_nonneg.mpr (hupper φ n)) hbound hlim + simpa only [sub_sub_cancel, sub_zero] using + (tendsto_const_nhds (x := C)).sub hz + +theorem normalState_evaluation_lipschitz (M : VonNeumannAlgebra H) + (T : M.toStarSubalgebra) (K : ℝ≥0) (hT : ‖T‖ ≤ K) : + LipschitzWith K (fun φ : NormalStateSpace M => (φ.1 T).re) := by + apply LipschitzWith.of_dist_le_mul + intro φ ψ + simp only [Subtype.dist_eq, dist_eq_norm] + change |(φ.1 T).re - (ψ.1 T).re| ≤ (K : ℝ) * ‖φ.1 - ψ.1‖ + calc + _ = |((φ.1 - ψ.1) T).re| := by rw [sub_apply, Complex.sub_re] + _ ≤ ‖(φ.1 - ψ.1) T‖ := Complex.abs_re_le_norm _ + _ ≤ ‖φ.1 - ψ.1‖ * ‖T‖ := (φ.1 - ψ.1).le_opNorm T + _ ≤ ‖φ.1 - ψ.1‖ * (K : ℝ) := mul_le_mul_of_nonneg_left hT (norm_nonneg _) + _ = _ := mul_comm _ _ + +/-- The same sequence and the same limit serve every original normal state. +The upper bound is an actual inequality for every state, not a supremum +attainment or state-density hypothesis. -/ +theorem normalState_evaluation_tendsto_upper_of_faithful + (M : VonNeumannAlgebra H) (ω : NormalStateSpace M) + (hf : ∀ a : M.toStarSubalgebra, ω.1 (star a * a) = 0 → a = 0) + (T : ℕ → M.toStarSubalgebra) (C : ℝ) (K : ℝ≥0) + (hbound : ∀ n, ‖T n‖ ≤ K) + (hupper : ∀ ψ : StateSpace M, ∀ n, (ψ.1 (T n)).re ≤ C) + (hω : Tendsto (fun n => (ω.1 (T n)).re) atTop (𝓝 C)) + (φ : NormalStateSpace M) : + Tendsto (fun n => (φ.1 (T n)).re) atTop (𝓝 C) := by + have heq : UniformEquicontinuous + (fun n (ψ : NormalStateSpace M) => (ψ.1 (T n)).re) := + LipschitzWith.uniformEquicontinuous _ K + (fun n => normalState_evaluation_lipschitz M (T n) K (hbound n)) + apply (heq.equicontinuous φ).tendsto_of_mem_closure + (f := fun _ => C) tendsto_const_nhds ?_ + (normalState_mem_closure_dominated_of_faithful M ω hf φ) + rintro ψ ⟨t, ht, ht1, hdom⟩ + exact state_evaluation_tendsto_upper_of_dominated M ⟨ω.1, ω.2.1⟩ + ⟨ψ.1, ψ.2.1⟩ T C hupper ht ht1 hdom hω + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/FiniteAmplification.lean b/LeanPool/VacuumBellSeparation/Bell/FiniteAmplification.lean new file mode 100644 index 0000000000..bcf356c813 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/FiniteAmplification.lean @@ -0,0 +1,136 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.Adjoint +public import Mathlib.Analysis.InnerProductSpace.PiL2 + +/-! +# Finite diagonal amplification and operator blocks + +The amplified Hilbert space is the genuine finite Hilbert direct sum of +the original space. Operators act diagonally; arbitrary amplified +operators have bounded operator-valued blocks. No finite-dimensionality +of the original Hilbert space is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] +variable (ι : Type*) [Fintype ι] [DecidableEq ι] + +/-- Finite amplification. -/ +noncomputable def finiteAmplification (A : H →L[ℂ] H) : + PiLp 2 (fun _ : ι => H) →L[ℂ] PiLp 2 (fun _ : ι => H) where + toFun v := WithLp.toLp 2 (fun i => A (v i)) + map_add' v w := by ext i; simp + map_smul' c v := by ext i; simp + cont := (PiLp.continuous_toLp 2 (fun _ : ι => H)).comp (continuous_pi (fun i => + A.continuous.comp (PiLp.continuous_apply 2 (fun _ : ι => H) i))) + +omit [CompleteSpace H] [DecidableEq ι] [Fintype ι] in +@[simp] theorem finiteAmplification_apply (A : H →L[ℂ] H) + (v : PiLp 2 (fun _ : ι => H)) (i : ι) : finiteAmplification ι A v i = A (v i) := rfl + +omit [DecidableEq ι] in +theorem finiteAmplification_star (A : H →L[ℂ] H) : + finiteAmplification ι (star A) = star (finiteAmplification ι A) := by + classical + apply (ContinuousLinearMap.eq_adjoint_iff _ _).mpr + intro v w + simp only [PiLp.inner_apply, finiteAmplification_apply, + ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.adjoint_inner_left] + +/-- Amplification is a genuine unital complex star algebra homomorphism. -/ +noncomputable def finiteAmplificationHom : (H →L[ℂ] H) →⋆ₐ[ℂ] + (PiLp 2 (fun _ : ι => H) →L[ℂ] PiLp 2 (fun _ : ι => H)) where + toFun := finiteAmplification ι + map_zero' := by ext v i; simp + map_one' := by ext v i; simp + map_add' A B := by ext v i; simp + map_mul' A B := by ext v i; rfl + commutes' c := by ext v i; simp [Algebra.algebraMap_eq_smul_one] + map_star' := finiteAmplification_star ι + +/-- Continuous linear map for the amplification block, of type `H →L[ℂ] H`. -/ +noncomputable def amplificationBlock + (B : PiLp 2 (fun _ : ι => H) →L[ℂ] PiLp 2 (fun _ : ι => H)) (i j : ι) : H →L[ℂ] H := by + classical + exact (ContinuousLinearMap.proj i).comp + ((PiLp.continuousLinearEquiv 2 ℂ (fun _ : ι => H)).toContinuousLinearMap.comp + (B.comp ((PiLp.continuousLinearEquiv 2 ℂ (fun _ : ι => H)).symm.toContinuousLinearMap.comp + (ContinuousLinearMap.single ℂ (fun _ : ι => H) j)))) + +omit [CompleteSpace H] [Fintype ι] in +@[simp] theorem amplificationBlock_apply + (B : PiLp 2 (fun _ : ι => H) →L[ℂ] PiLp 2 (fun _ : ι => H)) (i j : ι) (x : H) : + amplificationBlock ι B i j x = B (PiLp.single 2 j x) i := by + classical + rfl + +omit [CompleteSpace H] [Fintype ι] in +theorem finiteAmplification_single (A : H →L[ℂ] H) (j : ι) (x : H) : + finiteAmplification ι A (PiLp.single 2 j x) = PiLp.single 2 j (A x) := by + classical + ext i + by_cases h : i = j + · subst i; simp + · simp only [finiteAmplification_apply, PiLp.single_eq_of_ne 2 h, map_zero] + +omit [CompleteSpace H] in +theorem amplification_sum_single (v : PiLp 2 (fun _ : ι => H)) : + ∑ j, PiLp.single 2 j (v j) = v := by + classical + ext i + change (PiLp.projₗ (𝕜 := ℂ) 2 (fun _ : ι => H) i) (∑ j, PiLp.single 2 j (v j)) = v i + rw [map_sum] + change (∑ j, (PiLp.single 2 j (v j)) i) = v i + rw [Finset.sum_eq_single i] + · exact PiLp.single_eq_same (β := fun _ : ι => H) 2 i (v i) + · intro j hj hji + exact PiLp.single_eq_of_ne (β := fun _ : ι => H) 2 hji.symm (v j) + · simp + +omit [CompleteSpace H] in +/-- The literal operator block decomposition. -/ +theorem amplification_apply_eq_sum_blocks + (B : PiLp 2 (fun _ : ι => H) →L[ℂ] PiLp 2 (fun _ : ι => H)) + (v : PiLp 2 (fun _ : ι => H)) (i : ι) : + B v i = ∑ j, amplificationBlock ι B i j (v j) := by + classical + conv_lhs => rw [← amplification_sum_single ι v, map_sum] + change (PiLp.projₗ (𝕜 := ℂ) 2 (fun _ : ι => H) i) (∑ j, B (PiLp.single 2 j (v j))) = _ + rw [map_sum] + rfl + +omit [CompleteSpace H] [Fintype ι] in +/-- Commutation with the diagonal algebra is exactly blockwise commutation. -/ +theorem finiteAmplification_commutes_iff [Finite ι] (A : H →L[ℂ] H) + (B : PiLp 2 (fun _ : ι => H) →L[ℂ] PiLp 2 (fun _ : ι => H)) : + finiteAmplification ι A * B = B * finiteAmplification ι A ↔ + ∀ i j, A * amplificationBlock ι B i j = amplificationBlock ι B i j * A := by + classical + let _ : Fintype ι := Fintype.ofFinite ι + constructor + · intro h i j + ext x + have he := congrArg (fun C => C (PiLp.single 2 j x) i) h + simpa only [mul_apply_eq_comp, finiteAmplification_apply, + finiteAmplification_single, amplificationBlock_apply] using he + · intro h + ext v i + change A (B v i) = B (finiteAmplification ι A v) i + rw [amplification_apply_eq_sum_blocks, map_sum, amplification_apply_eq_sum_blocks] + apply Finset.sum_congr rfl + intro j hj + exact congrArg (fun C : H →L[ℂ] H => C (v j)) (h i j) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/FiniteCornerVectorCompression.lean b/LeanPool/VacuumBellSeparation/Bell/FiniteCornerVectorCompression.lean new file mode 100644 index 0000000000..93c5177f24 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/FiniteCornerVectorCompression.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.FiniteVectorDomination +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalVectorCornerCover +public import Mathlib.Algebra.Order.BigOperators.Ring.Finset +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Rpow.Basic + +/-! +Finite compression keeps all cross terms. Its positive expectation is at +most card(ι) times the diagonal expectation sum. The actual finite Hilbert +amplification then represents the full compressed functional as a finite +positive vector sum on original H. Empty families are included. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder InnerProductSpace BigOperators + +section CStar +variable {A : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] + +/-- The exact positive quadratic form, in the genuine GNS Hilbert space. -/ +theorem positiveFunctional_conjugate_eq_gns_norm_sq (φ : A →ₚ[ℂ] ℂ) + (a : A) (ha : 0 ≤ a) (x : A) : + (φ (star x * a * x)).re = + ‖φ.gnsStarAlgHom (CFC.sqrt a * x) (gnsUnitVector φ)‖ ^ 2 := by + have hm : star (CFC.sqrt a * x) * (CFC.sqrt a * x) = star x * a * x := by + rw [star_mul, (CFC.sqrt_nonneg a).isSelfAdjoint.star_eq] + calc + _ = star x * (CFC.sqrt a * CFC.sqrt a) * x := by noncomm_ring + _ = _ := by rw [CFC.sqrt_mul_sqrt_self a ha] + have h := congrArg Complex.re (gns_apply_unitVector_norm_sq φ (CFC.sqrt a * x)) + simpa only [Complex.ofReal_re, hm] using h.symm + +/-- All off-diagonal terms of the finite sum are bounded, not removed. -/ +theorem positiveFunctional_conjugate_sum_le_card (φ : A →ₚ[ℂ] ℂ) + {ι : Type*} [Fintype ι] (P : ι → A) (a : A) (ha : 0 ≤ a) : + (φ (star (∑ i, P i) * a * ∑ i, P i)).re ≤ + (Fintype.card ι : ℝ) * ∑ i, (φ (star (P i) * a * P i)).re := by + classical + let v : ι → φ.GNS := fun i => φ.gnsStarAlgHom (CFC.sqrt a * P i) (gnsUnitVector φ) + have hv : φ.gnsStarAlgHom (CFC.sqrt a * ∑ i, P i) (gnsUnitVector φ) = ∑ i, v i := by + simp only [v, Finset.mul_sum, map_sum, sum_apply] + rw [positiveFunctional_conjugate_eq_gns_norm_sq φ a ha, hv] + calc + ‖∑ i, v i‖ ^ 2 ≤ (∑ i, ‖v i‖) ^ 2 := + (sq_le_sq₀ (norm_nonneg _) (Finset.sum_nonneg fun i _ => norm_nonneg _)).mpr + (norm_sum_le _ _) + _ ≤ (Fintype.card ι : ℝ) * ∑ i, ‖v i‖ ^ 2 := by + simpa only [one_mul, one_pow, Finset.sum_const, Finset.card_univ, + nsmul_eq_mul, mul_one] using + Finset.sum_mul_sq_le_sq_mul_sq Finset.univ (fun _ : ι => (1 : ℝ)) (fun i => ‖v i‖) + _ = _ := by + congr 1 + apply Finset.sum_congr rfl + intro i hi + exact (positiveFunctional_conjugate_eq_gns_norm_sq φ a ha (P i)).symm + +end CStar + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- A finite family of vector-realized corners gives a vector-sum realization +of the FULL compression, even when its cross expectations are nonzero. -/ +theorem exists_finite_vector_sum_compression (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) {ι : Type*} [Fintype ι] + (P : ι → M.toStarSubalgebra) (hp : ∀ i, IsStarProjection (P i)) + (ξ : ι → H) + (hξ : ∀ i (a : M.toStarSubalgebra), vectorFunctional M (ξ i) a = φ (P i * a * P i)) : + ∃ ζ : ι → H, compressionFunctional φ (∑ i, P i) = finiteVectorFunctional M ζ := by + classical + apply exists_finite_vector_sum_of_domination M _ ξ (Fintype.card ι) (by positivity) + intro a ha + rw [Complex.le_def] + refine ⟨?_, ?_⟩ + · have hdiag : ∑ i, (φ (star (P i) * a * P i)).re = + (finiteVectorFunctional M ξ a).re := by + rw [finiteVectorFunctional_apply] + change _ = Complex.reCLM (∑ i, inner ℂ (ξ i) ((a : H →L[ℂ] H) (ξ i))) + rw [map_sum] + apply Finset.sum_congr rfl + intro i hi + rw [(hp i).isSelfAdjoint.star_eq, ← hξ i a] + rfl + simpa only [compressionFunctional_apply, Complex.smul_re, smul_eq_mul, hdiag] using + positiveFunctional_conjugate_sum_le_card φ P a ha + · have hl := (Complex.nonneg_iff.mp ((compressionFunctional φ (∑ i, P i)).map_nonneg ha)).2 + have hr := (Complex.nonneg_iff.mp ((finiteVectorFunctional M ξ).map_nonneg ha)).2 + simp only [Complex.smul_im, smul_eq_mul, ← hr, mul_zero] + exact hl.symm + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/FiniteVectorDomination.lean b/LeanPool/VacuumBellSeparation/Bell/FiniteVectorDomination.lean new file mode 100644 index 0000000000..30d307c95e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/FiniteVectorDomination.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GNSIsometricRealization +public import LeanPool.VacuumBellSeparation.Bell.VectorFunctionalNormal +public import LeanPool.VacuumBellSeparation.Bell.StateExtension +public import LeanPool.VacuumBellSeparation.Bell.FiniteAmplification +public import Mathlib.Algebra.BigOperators.Pi + +/-! +Finite positive vector sums and their actual diagonal Hilbert amplification. +The finite index type is allowed to be empty. Domination constructs vectors +in the original H via the actual amplified bounded vector-RN theorem. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder InnerProductSpace BigOperators + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] +variable (ι : Type*) [Fintype ι] + +/-- The continuous operator applying T separately to every coordinate. -/ +def finiteDiagonalOperator (T : H →L[ℂ] H) : + PiLp 2 (fun _ : ι => H) →L[ℂ] PiLp 2 (fun _ : ι => H) := + finiteAmplification ι T + +omit [CompleteSpace H] [Fintype ι] in +@[simp] theorem finiteDiagonalOperator_apply (T : H →L[ℂ] H) + (x : PiLp 2 (fun _ : ι => H)) (i : ι) : + finiteDiagonalOperator ι T x i = T (x i) := rfl + +/-- The diagonal amplification is an actual unital star-algebra homomorphism. -/ +def finiteDiagonalStarAlgHom : (H →L[ℂ] H) →⋆ₐ[ℂ] + (PiLp 2 (fun _ : ι => H) →L[ℂ] PiLp 2 (fun _ : ι => H)) := + finiteAmplificationHom ι + +@[simp] theorem finiteDiagonalStarAlgHom_apply (T : H →L[ℂ] H) : + finiteDiagonalStarAlgHom (H := H) ι T = finiteDiagonalOperator ι T := rfl + +variable {ι} + +/-- Literal finite sum of original-H vector functionals. -/ +def finiteVectorFunctional (M : VonNeumannAlgebra H) (ξ : ι → H) : + M.toStarSubalgebra →ₚ[ℂ] ℂ := ∑ i, vectorPositiveLinearMap M (ξ i) + +@[simp] theorem finiteVectorFunctional_apply (M : VonNeumannAlgebra H) + (ξ : ι → H) (a : M.toStarSubalgebra) : + finiteVectorFunctional M ξ a = ∑ i, inner ℂ (ξ i) ((a : H →L[ℂ] H) (ξ i)) := by + simp only [finiteVectorFunctional, sum_apply] + apply Finset.sum_congr rfl + intro i _ + rfl + +/-- A functional dominated by a finite vector sum is itself a finite vector +sum on original H; no cyclicity of H and no normal-representation field. -/ +theorem exists_finite_vector_sum_of_domination (M : VonNeumannAlgebra H) + (ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (ξ : ι → H) (C : ℝ) (hC : 0 ≤ C) + (hdom : ∀ a : M.toStarSubalgebra, 0 ≤ a → ψ a ≤ C • finiteVectorFunctional M ξ a) : + ∃ ζ : ι → H, ψ = finiteVectorFunctional M ζ := by + let χ := finiteVectorFunctional M ξ + let π := (finiteDiagonalStarAlgHom (H := H) ι).comp M.toStarSubalgebra.subtype + let Ω : PiLp 2 (fun _ : ι => H) := WithLp.toLp 2 ξ + have hχ (a : M.toStarSubalgebra) : χ a = inner ℂ Ω (π a Ω) := by + exact (finiteVectorFunctional_apply M ξ a).trans + (PiLp.inner_apply Ω (π a Ω)).symm + obtain ⟨ζ, _, hζ⟩ := exists_dominated_vector_in_representation χ ψ π Ω hχ C hC hdom + refine ⟨fun i => ζ i, ?_⟩ + apply PositiveLinearMap.ext + intro a + calc + ψ a = inner ℂ ζ (π a ζ) := (hζ a).symm + _ = ∑ i, inner ℂ (ζ i) ((a : H →L[ℂ] H) (ζ i)) := PiLp.inner_apply ζ (π a ζ) + _ = finiteVectorFunctional M (fun i => ζ i) a := + (finiteVectorFunctional_apply M (fun i => ζ i) a).symm + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/GNSCyclicRealization.lean b/LeanPool/VacuumBellSeparation/Bell/GNSCyclicRealization.lean new file mode 100644 index 0000000000..b0119ab944 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GNSCyclicRealization.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.CyclicGramEquivalence +public import LeanPool.VacuumBellSeparation.Bell.GNSDominatedCommutant + +/-! +# Actual unitary realization of a cyclic GNS representation + +The unitary is constructed from equality of the actual cyclic Gram forms +and density of the given orbit. It intertwines every original algebra +element on the whole completed Hilbert space. In particular a positive +functional dominated by the reference functional has a representing vector +in any such concrete cyclic realization. Arbitrary normal functionals are +not assumed to be dominated or represented. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open scoped InnerProductSpace ComplexOrder + +variable {A H : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +private theorem dense_span_of_dense_orbit {ι E : Type*} + [NormedAddCommGroup E] [NormedSpace ℂ E] (v : ι → E) (hv : DenseRange v) : + (Submodule.span ℂ (Set.range v)).topologicalClosure = ⊤ := by + apply Submodule.dense_iff_topologicalClosure_eq_top.mp + exact Dense.mono (fun _ hx => Submodule.subset_span hx) hv + +/-- Equality of vector expectation and cyclicity construct the unitary; +normality, faithfulness and a pre-existing representation equivalence are +not premises. Neither reference functional nor vector must be normalized. -/ +theorem exists_gns_cyclic_unitary (φ : A →ₚ[ℂ] ℂ) + (π : A →⋆ₐ[ℂ] (H →L[ℂ] H)) (Ω : H) + (hφ : ∀ a : A, φ a = inner ℂ Ω (π a Ω)) + (hcyclic : DenseRange (fun a : A => π a Ω)) : + ∃ U : φ.GNS ≃ₗᵢ[ℂ] H, U (gnsUnitVector φ) = Ω ∧ + ∀ (a : A) (x : φ.GNS), U (φ.gnsStarAlgHom a x) = π a (U x) := by + have hgram (a b : A) : + inner ℂ (φ.gnsStarAlgHom a (gnsUnitVector φ)) + (φ.gnsStarAlgHom b (gnsUnitVector φ)) = inner ℂ (π a Ω) (π b Ω) := by + calc + _ = φ (star a * b) := by + simpa only [map_one, one_apply_eq_self, one_mul, mul_one] using + gns_matrix_coefficient φ a 1 b + _ = _ := by + rw [hφ, map_mul, map_star, ContinuousLinearMap.star_eq_adjoint, + mul_apply_eq_comp, ContinuousLinearMap.adjoint_inner_right] + obtain ⟨U, hU⟩ := exists_unitary_equiv_of_dense_gram + (fun a : A => φ.gnsStarAlgHom a (gnsUnitVector φ)) (fun a : A => π a Ω) + (dense_span_of_dense_orbit _ (gnsUnitVector_dense_orbit φ)) + (dense_span_of_dense_orbit _ hcyclic) hgram + refine ⟨U, ?_, ?_⟩ + · simpa only [map_one, one_apply_eq_self] using hU (1 : A) + · intro a x + have he := (gnsUnitVector_dense_orbit φ).equalizer + (U.continuous.comp (φ.gnsStarAlgHom a).continuous) + ((π a).continuous.comp U.continuous) + (by + funext b + change U (φ.gnsStarAlgHom a (φ.gnsStarAlgHom b (gnsUnitVector φ))) = + π a (U (φ.gnsStarAlgHom b (gnsUnitVector φ))) + rw [← mul_apply_eq_comp, ← map_mul, hU, hU, map_mul, mul_apply_eq_comp]) + exact congrFun he x + +/-- Domination produces an actual vector in the supplied concrete cyclic +Hilbert space, with the exact unnormalized mass of the positive functional. -/ +theorem exists_dominated_vector_in_cyclic_representation (φ ψ : A →ₚ[ℂ] ℂ) + (π : A →⋆ₐ[ℂ] (H →L[ℂ] H)) (Ω : H) + (hφ : ∀ a : A, φ a = inner ℂ Ω (π a Ω)) + (hcyclic : DenseRange (fun a : A => π a Ω)) + (C : ℝ) (hC : 0 ≤ C) (hdom : ∀ a : A, 0 ≤ a → ψ a ≤ C • φ a) : + ∃ ξ : H, ‖ξ‖ = Real.sqrt (ψ 1).re ∧ + ∀ a : A, inner ℂ ξ (π a ξ) = ψ a := by + obtain ⟨U, _, hintertwine⟩ := exists_gns_cyclic_unitary φ π Ω hφ hcyclic + let ξ := dominatedGNSVector φ ψ C hC hdom + refine ⟨U ξ, ?_, ?_⟩ + · rw [U.norm_map] + exact dominatedGNSVector_norm φ ψ C hC hdom + · intro a + rw [← hintertwine a ξ, U.inner_map_map] + exact dominatedGNSVector_expectation φ ψ C hC hdom a + +theorem exists_dominated_unit_vector_in_cyclic_representation (φ ψ : A →ₚ[ℂ] ℂ) + (π : A →⋆ₐ[ℂ] (H →L[ℂ] H)) (Ω : H) + (hφ : ∀ a : A, φ a = inner ℂ Ω (π a Ω)) + (hcyclic : DenseRange (fun a : A => π a Ω)) + (C : ℝ) (hC : 0 ≤ C) (hdom : ∀ a : A, 0 ≤ a → ψ a ≤ C • φ a) + (hψ : ψ 1 = 1) : + ∃ ξ : H, ‖ξ‖ = 1 ∧ ∀ a : A, inner ℂ ξ (π a ξ) = ψ a := by + obtain ⟨ξ, hξ, hrepr⟩ := + exists_dominated_vector_in_cyclic_representation φ ψ π Ω hφ hcyclic C hC hdom + refine ⟨ξ, ?_, hrepr⟩ + simpa only [hψ, Complex.one_re, Real.sqrt_one] using hξ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/GNSDominatedCommutant.lean b/LeanPool/VacuumBellSeparation/Bell/GNSDominatedCommutant.lean new file mode 100644 index 0000000000..91c8dd5a28 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GNSDominatedCommutant.lean @@ -0,0 +1,120 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GNSDominatedTransport +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Commute +public import Mathlib.Analysis.InnerProductSpace.Positive +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap + +/-! +# Bounded Radon--Nikodym operator in the actual GNS commutant + +The operator is J*J for the constructed domination map, not supplied as +an assumption. Its positive square root gives an actual representing vector +for every dominated positive functional. No assertion about arbitrary +undominated normal functionals or the GNS image being a VNA is made. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open scoped InnerProductSpace ComplexOrder + +variable {A : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] +variable (φ ψ : A →ₚ[ℂ] ℂ) (C : ℝ) (hC : 0 ≤ C) +variable (hdom : ∀ a : A, 0 ≤ a → ψ a ≤ C • φ a) + +/-- Continuous linear map for the dominated GNS radon nikodym, of type `φ.GNS →L[ℂ] φ.GNS`. -/ +def dominatedGNSRadonNikodym : φ.GNS →L[ℂ] φ.GNS := + (dominatedGNSMap φ ψ C hC hdom).adjoint.comp (dominatedGNSMap φ ψ C hC hdom) + +theorem dominatedGNSRadonNikodym_nonneg : 0 ≤ dominatedGNSRadonNikodym φ ψ C hC hdom := + ContinuousLinearMap.nonneg_iff_isPositive.mpr + (ContinuousLinearMap.isPositive_adjoint_comp_self _) + +theorem norm_dominatedGNSRadonNikodym_le : ‖dominatedGNSRadonNikodym φ ψ C hC hdom‖ ≤ C := by + rw [dominatedGNSRadonNikodym, ContinuousLinearMap.norm_adjoint_comp_self] + have h := norm_dominatedGNSMap_le φ ψ C hC hdom + nlinarith [Real.sq_sqrt hC, norm_nonneg (dominatedGNSMap φ ψ C hC hdom), + Real.sqrt_nonneg C] + +/-- The actual Radon--Nikodym operator lies in the literal order interval [0,C]. -/ +theorem dominatedGNSRadonNikodym_le : + dominatedGNSRadonNikodym φ ψ C hC hdom ≤ + algebraMap ℝ (φ.GNS →L[ℂ] φ.GNS) C := + (CStarAlgebra.norm_le_iff_le_algebraMap _ hC + (dominatedGNSRadonNikodym_nonneg φ ψ C hC hdom)).mp + (norm_dominatedGNSRadonNikodym_le φ ψ C hC hdom) + +theorem dominatedGNSRadonNikodym_commute (a : A) : + Commute (dominatedGNSRadonNikodym φ ψ C hC hdom) (φ.gnsStarAlgHom a) := by + let J := dominatedGNSMap φ ψ C hC hdom + have hj : J.comp (φ.gnsStarAlgHom a) = (ψ.gnsStarAlgHom a).comp J := + dominatedGNSMap_intertwines φ ψ C hC hdom a + have hja : (φ.gnsStarAlgHom a).comp J.adjoint = + J.adjoint.comp (ψ.gnsStarAlgHom a) := by + have h := congrArg ContinuousLinearMap.adjoint + (dominatedGNSMap_intertwines φ ψ C hC hdom (star a)) + simpa only [ContinuousLinearMap.adjoint_comp, map_star, + ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.adjoint_adjoint] using h + change (J.adjoint.comp J).comp (φ.gnsStarAlgHom a) = + (φ.gnsStarAlgHom a).comp (J.adjoint.comp J) + rw [ContinuousLinearMap.comp_assoc, hj, ← ContinuousLinearMap.comp_assoc, + ← hja, ContinuousLinearMap.comp_assoc] + +theorem dominatedGNSRadonNikodym_expectation (a : A) : + inner ℂ (gnsUnitVector φ) + (dominatedGNSRadonNikodym φ ψ C hC hdom + (φ.gnsStarAlgHom a (gnsUnitVector φ))) = ψ a := by + change inner ℂ (gnsUnitVector φ) + ((dominatedGNSMap φ ψ C hC hdom).adjoint + (dominatedGNSMap φ ψ C hC hdom (φ.gnsStarAlgHom a (gnsUnitVector φ)))) = ψ a + rw [ContinuousLinearMap.adjoint_inner_right, dominatedGNSMap_unitVector, + dominatedGNSMap_apply_unitVector, gnsUnitVector_expectation] + +/-- Dominated GNS vector defined as `CFC.sqrt (dominatedGNSRadonNikodym φ ψ C hC hdom) +(gnsUnitVector φ)`. -/ +def dominatedGNSVector : φ.GNS := + CFC.sqrt (dominatedGNSRadonNikodym φ ψ C hC hdom) (gnsUnitVector φ) + +/-- The domination hypothesis constructs a vector in the original completed +GNS Hilbert space representing psi on every element of the original algebra. -/ +theorem dominatedGNSVector_expectation (a : A) : + inner ℂ (dominatedGNSVector φ ψ C hC hdom) + (φ.gnsStarAlgHom a (dominatedGNSVector φ ψ C hC hdom)) = ψ a := by + let R := dominatedGNSRadonNikodym φ ψ C hC hdom + let Q := CFC.sqrt R + have hQ : Q.adjoint = Q := by + exact (CFC.sqrt_nonneg R).isSelfAdjoint.star_eq + have hQQ : Q * Q = R := CFC.sqrt_mul_sqrt_self R + (dominatedGNSRadonNikodym_nonneg φ ψ C hC hdom) + have hcomm : Commute Q (φ.gnsStarAlgHom a) := + (dominatedGNSRadonNikodym_commute φ ψ C hC hdom a).cfcₙ_nnreal NNReal.sqrt + have hmove : φ.gnsStarAlgHom a (Q (gnsUnitVector φ)) = + Q (φ.gnsStarAlgHom a (gnsUnitVector φ)) := by + exact congrArg (fun T : φ.GNS →L[ℂ] φ.GNS => T (gnsUnitVector φ)) hcomm.eq.symm + change inner ℂ (Q (gnsUnitVector φ)) + (φ.gnsStarAlgHom a (Q (gnsUnitVector φ))) = ψ a + rw [hmove, ← ContinuousLinearMap.adjoint_inner_right, hQ, + ← mul_apply_eq_comp, hQQ] + exact dominatedGNSRadonNikodym_expectation φ ψ C hC hdom a + +theorem dominatedGNSVector_norm : + ‖dominatedGNSVector φ ψ C hC hdom‖ = Real.sqrt (ψ 1).re := by + have h := dominatedGNSVector_expectation φ ψ C hC hdom (1 : A) + simp only [map_one, one_apply_eq_self] at h + rw [← h] + exact norm_eq_sqrt_re_inner (𝕜 := ℂ) _ + +theorem dominatedGNSVector_norm_one (hψ : ψ 1 = 1) : + ‖dominatedGNSVector φ ψ C hC hdom‖ = 1 := by + rw [dominatedGNSVector_norm, hψ, Complex.one_re, Real.sqrt_one] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/GNSDominatedTransport.lean b/LeanPool/VacuumBellSeparation/Bell/GNSDominatedTransport.lean new file mode 100644 index 0000000000..d01d360c65 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GNSDominatedTransport.lean @@ -0,0 +1,110 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GNSMatrixCoefficients + +/-! +# The actual GNS map induced by positive-functional domination + +For positive functionals psi <= C phi, the identity on the original algebra +extends from the two original pre-GNS seminorms to a bounded map of their +completed GNS Hilbert spaces. The map intertwines the actual representations. +No representation equivalence, normality or vector-state realization is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open scoped InnerProductSpace ComplexOrder + +variable {A : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] +variable (φ ψ : A →ₚ[ℂ] ℂ) (C : ℝ) (hC : 0 ≤ C) +variable (hdom : ∀ a : A, 0 ≤ a → ψ a ≤ C • φ a) + +include hC hdom in +theorem norm_dominated_preGNS_le (x : φ.PreGNS) : + ‖ψ.toPreGNS (φ.ofPreGNS x)‖ ≤ Real.sqrt C * ‖x‖ := by + have hd : (ψ (star (φ.ofPreGNS x) * φ.ofPreGNS x)).re ≤ + C * (φ (star (φ.ofPreGNS x) * φ.ofPreGNS x)).re := by + simpa only [Complex.real_smul, Complex.mul_re, Complex.ofReal_re, + Complex.ofReal_im, zero_mul, sub_zero] using + (hdom _ (star_mul_self_nonneg _)).1 + calc + ‖ψ.toPreGNS (φ.ofPreGNS x)‖ = + Real.sqrt (ψ (star (φ.ofPreGNS x) * φ.ofPreGNS x)).re := by + rw [PositiveLinearMap.preGNS_norm_def, PositiveLinearMap.ofPreGNS_toPreGNS] + _ ≤ Real.sqrt (C * (φ (star (φ.ofPreGNS x) * φ.ofPreGNS x)).re) := + Real.sqrt_le_sqrt hd + _ = Real.sqrt C * ‖x‖ := by + rw [Real.sqrt_mul hC, PositiveLinearMap.preGNS_norm_def] + +/-- Dominated pre GNS map of type `φ.PreGNS →L[ℂ] ψ.PreGNS`. -/ +def dominatedPreGNSMap : φ.PreGNS →L[ℂ] ψ.PreGNS := + (ψ.toPreGNS.toLinearMap.comp φ.ofPreGNS.toLinearMap).mkContinuous + (Real.sqrt C) (norm_dominated_preGNS_le φ ψ C hC hdom) + +@[simp] theorem dominatedPreGNSMap_apply (x : φ.PreGNS) : + dominatedPreGNSMap φ ψ C hC hdom x = ψ.toPreGNS (φ.ofPreGNS x) := rfl + +/-- Dominated GNS map of type `φ.GNS →L[ℂ] ψ.GNS`. -/ +def dominatedGNSMap : φ.GNS →L[ℂ] ψ.GNS := + (dominatedPreGNSMap φ ψ C hC hdom).completion + +@[simp] theorem dominatedGNSMap_coe (x : φ.PreGNS) : + dominatedGNSMap φ ψ C hC hdom (x : φ.GNS) = + ((ψ.toPreGNS (φ.ofPreGNS x) : ψ.PreGNS) : ψ.GNS) := by + exact ContinuousLinearMap.completion_apply_coe _ x + +theorem dominatedGNSMap_norm_apply_le (x : φ.GNS) : + ‖dominatedGNSMap φ ψ C hC hdom x‖ ≤ Real.sqrt C * ‖x‖ := by + induction x using UniformSpace.Completion.induction_on with + | hp => apply isClosed_le <;> fun_prop + | ih x => + rw [dominatedGNSMap_coe, UniformSpace.Completion.norm_coe, + UniformSpace.Completion.norm_coe] + exact norm_dominated_preGNS_le φ ψ C hC hdom x + +theorem norm_dominatedGNSMap_le : ‖dominatedGNSMap φ ψ C hC hdom‖ ≤ Real.sqrt C := + (dominatedGNSMap φ ψ C hC hdom).opNorm_le_bound (Real.sqrt_nonneg C) + (dominatedGNSMap_norm_apply_le φ ψ C hC hdom) + +@[simp] theorem dominatedGNSMap_unitVector : + dominatedGNSMap φ ψ C hC hdom (gnsUnitVector φ) = gnsUnitVector ψ := by + change dominatedGNSMap φ ψ C hC hdom ((φ.toPreGNS 1 : φ.PreGNS) : φ.GNS) = + ((ψ.toPreGNS 1 : ψ.PreGNS) : ψ.GNS) + rw [dominatedGNSMap_coe, PositiveLinearMap.ofPreGNS_toPreGNS] + +theorem dominatedGNSMap_apply_unitVector (a : A) : + dominatedGNSMap φ ψ C hC hdom (φ.gnsStarAlgHom a (gnsUnitVector φ)) = + ψ.gnsStarAlgHom a (gnsUnitVector ψ) := by + simp only [gns_apply_unitVector, dominatedGNSMap_coe, + PositiveLinearMap.ofPreGNS_toPreGNS] + +/-- The genuine bounded map intertwines every algebra element on every +vector of the completion, not only on the cyclic algebraic core. -/ +theorem dominatedGNSMap_intertwines (a : A) : + (dominatedGNSMap φ ψ C hC hdom).comp (φ.gnsStarAlgHom a) = + (ψ.gnsStarAlgHom a).comp (dominatedGNSMap φ ψ C hC hdom) := by + apply ContinuousLinearMap.ext + have he := (gnsUnitVector_dense_orbit φ).equalizer + ((dominatedGNSMap φ ψ C hC hdom).continuous.comp (φ.gnsStarAlgHom a).continuous) + ((ψ.gnsStarAlgHom a).continuous.comp (dominatedGNSMap φ ψ C hC hdom).continuous) + (by + funext b + change dominatedGNSMap φ ψ C hC hdom + (φ.gnsStarAlgHom a (φ.gnsStarAlgHom b (gnsUnitVector φ))) = + ψ.gnsStarAlgHom a + (dominatedGNSMap φ ψ C hC hdom (φ.gnsStarAlgHom b (gnsUnitVector φ))) + rw [← mul_apply_eq_comp, ← map_mul, dominatedGNSMap_apply_unitVector, + dominatedGNSMap_apply_unitVector, map_mul, mul_apply_eq_comp]) + intro x + exact congrFun he x + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/GNSFaithfulRange.lean b/LeanPool/VacuumBellSeparation/Bell/GNSFaithfulRange.lean new file mode 100644 index 0000000000..755b1e1721 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GNSFaithfulRange.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GNSMatrixCoefficients +public import Mathlib.Analysis.CStarAlgebra.Hom +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap + +/-! +# The faithful GNS image with its actual norm and order + +The image here is only the literal star-subalgebra range. Norm closure and +order reflection are derived; neither means that this range is a VNA. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open scoped InnerProductSpace ComplexOrder + +variable {A : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] + +/-- GNS faithful range equivalence defined as `StarAlgEquiv.ofInjective φ.gnsStarAlgHom +(gnsStarAlgHom_injective_of_faithful φ hf)`. -/ +def gnsFaithfulRangeEquiv (φ : A →ₚ[ℂ] ℂ) + (hf : ∀ a : A, φ (star a * a) = 0 → a = 0) : + A ≃⋆ₐ[ℂ] φ.gnsStarAlgHom.range := + StarAlgEquiv.ofInjective φ.gnsStarAlgHom (gnsStarAlgHom_injective_of_faithful φ hf) + +theorem gnsStarAlgHom_isometry_of_faithful (φ : A →ₚ[ℂ] ℂ) + (hf : ∀ a : A, φ (star a * a) = 0 → a = 0) : Isometry φ.gnsStarAlgHom := + NonUnitalStarAlgHom.isometry φ.gnsStarAlgHom (gnsStarAlgHom_injective_of_faithful φ hf) + +theorem gnsStarAlgHom_norm_of_faithful (φ : A →ₚ[ℂ] ℂ) + (hf : ∀ a : A, φ (star a * a) = 0 → a = 0) (a : A) : + ‖φ.gnsStarAlgHom a‖ = ‖a‖ := + NonUnitalStarAlgHom.norm_map φ.gnsStarAlgHom (gnsStarAlgHom_injective_of_faithful φ hf) a + +theorem gnsStarAlgHom_le_iff_of_faithful (φ : A →ₚ[ℂ] ℂ) + (hf : ∀ a : A, φ (star a * a) = 0 → a = 0) {a b : A} : + φ.gnsStarAlgHom a ≤ φ.gnsStarAlgHom b ↔ a ≤ b := + NonUnitalStarAlgHom.map_le_map_iff φ.gnsStarAlgHom + (gnsStarAlgHom_injective_of_faithful φ hf) + +theorem gnsStarAlgHom_nonneg_iff_of_faithful (φ : A →ₚ[ℂ] ℂ) + (hf : ∀ a : A, φ (star a * a) = 0 → a = 0) (a : A) : + 0 ≤ φ.gnsStarAlgHom a ↔ 0 ≤ a := by + simpa only [map_zero] using (gnsStarAlgHom_le_iff_of_faithful φ hf (a := 0) (b := a)) + +theorem gns_range_norm_closed_of_faithful (φ : A →ₚ[ℂ] ℂ) + (hf : ∀ a : A, φ (star a * a) = 0 → a = 0) : + IsClosed (Set.range φ.gnsStarAlgHom) := + (gnsStarAlgHom_isometry_of_faithful φ hf).isClosedEmbedding.isClosed_range + +/-- Separation is proved on the literal image, not its double commutant. -/ +theorem gns_unitVector_separates_range_of_faithful (φ : A →ₚ[ℂ] ℂ) + (hf : ∀ a : A, φ (star a * a) = 0 → a = 0) + (T : φ.GNS →L[ℂ] φ.GNS) (hT : T ∈ φ.gnsStarAlgHom.range) + (hz : T (gnsUnitVector φ) = 0) : T = 0 := by + obtain ⟨a, rfl⟩ := hT + have ha := (gns_apply_unitVector_eq_zero_iff_of_faithful φ hf a).mp hz + simp only [ha, map_zero] + +/-- Ambient least-upper-bound comparisons reflect to the original algebra. +No normality of a yet-unconstructed inverse VNA map is postulated. -/ +theorem gns_isLUB_reflects_of_faithful (φ : A →ₚ[ℂ] ℂ) + (hf : ∀ a : A, φ (star a * a) = 0 → a = 0) + {s : Set A} {X : A} (hX : IsLUB (φ.gnsStarAlgHom '' s) (φ.gnsStarAlgHom X)) : + IsLUB s X := by + constructor + · intro T hT + exact (gnsStarAlgHom_le_iff_of_faithful φ hf).mp (hX.1 ⟨T, hT, rfl⟩) + · intro Y hY + apply (gnsStarAlgHom_le_iff_of_faithful φ hf).mp + apply hX.2 + rintro _ ⟨T, hT, rfl⟩ + exact gnsStarAlgHom_monotone φ (hY hT) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/GNSIsometricRealization.lean b/LeanPool/VacuumBellSeparation/Bell/GNSIsometricRealization.lean new file mode 100644 index 0000000000..ff461b8ef2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GNSIsometricRealization.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GNSCyclicRealization + +/-! +A vector functional's GNS space embeds isometrically in the original H. +No cyclicity in all of H is required: the image is allowed to be proper. +Consequently a positive functional dominated by this vector functional has +an actual representing vector in H even in a noncyclic representation. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open scoped InnerProductSpace ComplexOrder + +variable {A H : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem exists_gns_isometry_in_representation (φ : A →ₚ[ℂ] ℂ) + (π : A →⋆ₐ[ℂ] (H →L[ℂ] H)) (Ω : H) + (hφ : ∀ a : A, φ a = inner ℂ Ω (π a Ω)) : + ∃ U : φ.GNS →ₗᵢ[ℂ] H, U (gnsUnitVector φ) = Ω ∧ + ∀ (a : A) (x : φ.GNS), U (φ.gnsStarAlgHom a x) = π a (U x) := by + let v : A → φ.GNS := fun a => φ.gnsStarAlgHom a (gnsUnitVector φ) + let w : A → H := fun a => π a Ω + have hgram (a b : A) : inner ℂ (v a) (v b) = inner ℂ (w a) (w b) := by + calc + _ = φ (star a * b) := by + simpa only [v, map_one, one_apply_eq_self, one_mul, mul_one] using + gns_matrix_coefficient φ a 1 b + _ = _ := by + rw [hφ, map_mul, map_star, ContinuousLinearMap.star_eq_adjoint, + mul_apply_eq_comp, ContinuousLinearMap.adjoint_inner_right] + have hv : (Submodule.span ℂ (Set.range v)).topologicalClosure = ⊤ := by + apply Submodule.dense_iff_topologicalClosure_eq_top.mp + exact Dense.mono (fun _ hx => Submodule.subset_span hx) (gnsUnitVector_dense_orbit φ) + have hd := denseRange_linearCombination_of_dense_span v hv + have hn (c : A →₀ ℂ) : + ‖Finsupp.linearCombination ℂ w c‖ = ‖Finsupp.linearCombination ℂ v c‖ := by + have he := inner_linearCombination_eq_of_inner_eq v w hgram c c + rw [norm_eq_sqrt_re_inner (𝕜 := ℂ), norm_eq_sqrt_re_inner (𝕜 := ℂ), he] + let U : φ.GNS →ₗᵢ[ℂ] H := (Finsupp.linearCombination ℂ w).extendOfIsometry hd hn + have hU (a : A) : U (v a) = w a := by + simpa only [Finsupp.linearCombination_single, one_smul] using + LinearMap.extendOfIsometry_eq (Finsupp.linearCombination ℂ w) hd hn (Finsupp.single a 1) + refine ⟨U, ?_, ?_⟩ + · simpa only [v, w, map_one, one_apply_eq_self] using hU (1 : A) + · intro a x + have he := (gnsUnitVector_dense_orbit φ).equalizer + (U.continuous.comp (φ.gnsStarAlgHom a).continuous) + ((π a).continuous.comp U.continuous) + (by + funext b + change U (φ.gnsStarAlgHom a (v b)) = π a (U (v b)) + change U (φ.gnsStarAlgHom a (φ.gnsStarAlgHom b (gnsUnitVector φ))) = + π a (U (v b)) + rw [← mul_apply_eq_comp, ← map_mul, hU, hU] + simp only [w, map_mul, mul_apply_eq_comp]) + exact congrFun he x + +/-- Actual bounded vector-Radon--Nikodym realization, without ambient cyclicity. -/ +theorem exists_dominated_vector_in_representation (φ ψ : A →ₚ[ℂ] ℂ) + (π : A →⋆ₐ[ℂ] (H →L[ℂ] H)) (Ω : H) + (hφ : ∀ a : A, φ a = inner ℂ Ω (π a Ω)) + (C : ℝ) (hC : 0 ≤ C) (hdom : ∀ a : A, 0 ≤ a → ψ a ≤ C • φ a) : + ∃ ξ : H, ‖ξ‖ = Real.sqrt (ψ 1).re ∧ + ∀ a : A, inner ℂ ξ (π a ξ) = ψ a := by + obtain ⟨U, _, hi⟩ := exists_gns_isometry_in_representation φ π Ω hφ + let ξ := dominatedGNSVector φ ψ C hC hdom + refine ⟨U ξ, ?_, ?_⟩ + · rw [U.norm_map] + exact dominatedGNSVector_norm φ ψ C hC hdom + · intro a + rw [← hi a ξ, U.inner_map_map] + exact dominatedGNSVector_expectation φ ψ C hC hdom a + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/GNSMatrixCoefficients.lean b/LeanPool/VacuumBellSeparation/Bell/GNSMatrixCoefficients.lean new file mode 100644 index 0000000000..efcbf6a1b3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GNSMatrixCoefficients.lean @@ -0,0 +1,55 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GNSUnitVector +public import Mathlib.Analysis.InnerProductSpace.StarOrder + +/-! # Literal GNS matrix coefficients and operator order -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open scoped InnerProductSpace ComplexOrder + +variable {A : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] + +theorem gns_matrix_coefficient (φ : A →ₚ[ℂ] ℂ) (a X b : A) : + inner ℂ (φ.gnsStarAlgHom a (gnsUnitVector φ)) + (φ.gnsStarAlgHom X (φ.gnsStarAlgHom b (gnsUnitVector φ))) = + φ (star a * X * b) := by + rw [← gnsUnitVector_expectation φ (star a * X * b)] + simp only [map_mul, map_star, mul_apply_eq_comp] + exact (φ.gnsStarAlgHom a).adjoint_inner_right _ _ |>.symm + +/-- Positivity is derived from the C-star square root in the original algebra. -/ +theorem gnsStarAlgHom_nonneg (φ : A →ₚ[ℂ] ℂ) {X : A} (hX : 0 ≤ X) : + 0 ≤ φ.gnsStarAlgHom X := by + have he : star (CFC.sqrt X) * CFC.sqrt X = X := by + rw [(CFC.sqrt_nonneg X).isSelfAdjoint.star_eq, CFC.sqrt_mul_sqrt_self X hX] + rw [← he, map_mul, map_star] + exact star_mul_self_nonneg _ + +theorem gnsStarAlgHom_monotone (φ : A →ₚ[ℂ] ℂ) : Monotone φ.gnsStarAlgHom := by + intro X Y hXY + apply sub_nonneg.mp + simpa only [map_sub] using gnsStarAlgHom_nonneg φ (sub_nonneg.mpr hXY) + +theorem gns_apply_unitVector_eq_zero_iff_of_faithful (φ : A →ₚ[ℂ] ℂ) + (hfaithful : ∀ a : A, φ (star a * a) = 0 → a = 0) (a : A) : + φ.gnsStarAlgHom a (gnsUnitVector φ) = 0 ↔ a = 0 := by + constructor + · intro ha + apply hfaithful a + rw [← gns_apply_unitVector_norm_sq, ha] + norm_num + · rintro rfl + simp + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/GNSNormalDirectedSuprema.lean b/LeanPool/VacuumBellSeparation/Bell/GNSNormalDirectedSuprema.lean new file mode 100644 index 0000000000..31be5496fb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GNSNormalDirectedSuprema.lean @@ -0,0 +1,186 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GNSMatrixCoefficients +public import LeanPool.VacuumBellSeparation.Bell.HilbertSumVectorDomination +public import LeanPool.VacuumBellSeparation.Bell.NormalStateMixtures + +/-! +# Normality of the actual GNS representation on positive directed suprema + +Compression normality supplies the matrix-element limit on the genuine dense +cyclic orbit. The bounded monotone operator net has a strong limit; positivity +and density identify that limit with the image of the original supremum. +No normal representation, vector-state realization or VNA image is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +-- Cache the canonical completed GNS structures locally; no extra structure +-- or hypothesis is introduced, and downstream instance search is unchanged. +/-- Normed additive group of the completed GNS Hilbert space used for directed limits. -/ +abbrev gnsDirectedNormedGroup (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : NormedAddCommGroup φ.GNS := inferInstance + +attribute [local instance] gnsDirectedNormedGroup + +/-- The canonical `InnerProductSpace ℂ φ.GNS` instance used in the construction. -/ +abbrev gnsDirectedInnerSpace (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : InnerProductSpace ℂ φ.GNS := inferInstance + +attribute [local instance] gnsDirectedInnerSpace + +/-- The canonical `CompleteSpace φ.GNS` instance used in the construction. -/ +abbrev gnsDirectedComplete (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : CompleteSpace φ.GNS := inferInstance + +attribute [local instance] gnsDirectedComplete + +/-- Generic dense quadratic-form determination, separated from the concrete +GNS elaboration so the latter only supplies its literal dense orbit. -/ +private theorem operator_eq_of_le_dense_real_diagonal + {E I : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + (U V : E →L[ℂ] E) (hUV : U ≤ V) (v : I → E) (hv : DenseRange v) + (hd : ∀ i, (inner ℂ (v i) (U (v i))).re = + (inner ℂ (v i) (V (v i))).re) : U = V := by + have he (y : E) : (inner ℂ y (U y)).re = (inner ℂ y (V y)).re := by + exact hv.induction_on y + (isClosed_eq + (Complex.continuous_re.comp (continuous_id.inner U.continuous)) + (Complex.continuous_re.comp (continuous_id.inner V.continuous))) hd + have hzero (y : E) : (V - U) y = 0 := by + have hb := Gaussian.norm_apply_sq_le_norm_mul_inner (sub_nonneg.mpr hUV) y + have hq : (inner ℂ y ((V - U) y)).re = 0 := by + simp only [sub_apply, inner_sub_right, Complex.sub_re] + exact sub_eq_zero.mpr (he y).symm + rw [hq, mul_zero] at hb + apply norm_eq_zero.mp + nlinarith [norm_nonneg ((V - U) y)] + exact (sub_eq_zero.mp (ContinuousLinearMap.ext hzero)).symm + +/-- A bounded monotone positive net converges strongly to an operator if the +real diagonal coefficients converge to its coefficients on a dense family. -/ +theorem strong_tendsto_of_monotone_of_dense_diagonal + {E I D : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [Preorder I] [IsDirectedOrder I] [Nonempty I] + (A : I → E →L[ℂ] E) (Y : E →L[ℂ] E) (orbit : D → E) (hdense : DenseRange orbit) + (hmono : Monotone A) (hpos : ∀ i, 0 ≤ A i) (hbound : ∀ i, A i ≤ Y) + (hdiag : ∀ a, Tendsto (fun i => (inner ℂ (orbit a) (A i (orbit a))).re) atTop + (𝓝 (inner ℂ (orbit a) (Y (orbit a))).re)) (x : E) : + Tendsto (fun i => A i x) atTop (𝓝 (Y x)) := by + obtain ⟨B, hB, _, hsup⟩ := + Gaussian.exists_strongLimit_of_monotone_nonneg_bounded A hmono hpos Y hbound + have hBbound : B ≤ Y := hsup.2 (by rintro _ ⟨i, rfl⟩; exact hbound i) + have heq : B = Y := by + apply operator_eq_of_le_dense_real_diagonal B Y hBbound orbit hdense + intro a + have hvalue : Tendsto (fun i => inner ℂ (orbit a) (A i (orbit a))) atTop + (𝓝 (inner ℂ (orbit a) (B (orbit a)))) := + tendsto_const_nhds.inner (hB (orbit a)) + have hre := Complex.continuous_re.continuousAt.tendsto.comp hvalue + exact tendsto_nhds_unique hre (hdiag a) + exact heq ▸ hB x + +theorem gns_real_diagonal_tendsto_on_cyclic_orbit (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) + {s : Set M.toStarSubalgebra} (hs : s.Nonempty) (hd : DirectedOn (· ≤ ·) s) + (hp : ∀ T ∈ s, 0 ≤ T) {X : M.toStarSubalgebra} (hX : IsLUB s X) + (a : M.toStarSubalgebra) : + Tendsto (fun i : s => (inner ℂ (φ.gnsStarAlgHom a (gnsUnitVector φ)) + (φ.gnsStarAlgHom i.1 (φ.gnsStarAlgHom a (gnsUnitVector φ)))).re) atTop + (𝓝 (inner ℂ (φ.gnsStarAlgHom a (gnsUnitVector φ)) + (φ.gnsStarAlgHom X (φ.gnsStarAlgHom a (gnsUnitVector φ)))).re) := by + simp only [gns_matrix_coefficient] + exact positiveFunctional_real_tendsto_of_normal M (compressionFunctional φ a) + (hn.compression a) hs hd hp hX + +/-- The actual GNS image of every internal positive directed supremum is the +strong operator limit on the entire completed GNS Hilbert space. -/ +theorem gns_strong_tendsto_of_isLUB_positive (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) + {s : Set M.toStarSubalgebra} (hs : s.Nonempty) (hd : DirectedOn (· ≤ ·) s) + (hp : ∀ T ∈ s, 0 ≤ T) {X : M.toStarSubalgebra} (hX : IsLUB s X) + (x : φ.GNS) : + Tendsto (fun i : s => φ.gnsStarAlgHom i.1 x) atTop (𝓝 (φ.gnsStarAlgHom X x)) := by + let : Nonempty s := hs.to_subtype + let : IsDirectedOrder s := hd.isDirectedOrder + let A : s → φ.GNS →L[ℂ] φ.GNS := fun i => φ.gnsStarAlgHom i.1 + let Y : φ.GNS →L[ℂ] φ.GNS := φ.gnsStarAlgHom X + let orbit (a : M.toStarSubalgebra) : φ.GNS := φ.gnsStarAlgHom a (gnsUnitVector φ) + exact strong_tendsto_of_monotone_of_dense_diagonal A Y orbit (gnsUnitVector_dense_orbit φ) + (fun _ _ h => gnsStarAlgHom_monotone φ h) + (fun i => gnsStarAlgHom_nonneg φ (hp i.1 i.2)) + (fun i => gnsStarAlgHom_monotone φ (hX.1 i.2)) + (gns_real_diagonal_tendsto_on_cyclic_orbit M φ hn hs hd hp hX) x + +/-- Supremum preservation holds in the full bounded-operator order, not only +in a possibly nonclosed image subalgebra. -/ +theorem gns_isLUB_image_positive (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) + {s : Set M.toStarSubalgebra} (hs : s.Nonempty) (hd : DirectedOn (· ≤ ·) s) + (hp : ∀ T ∈ s, 0 ≤ T) {X : M.toStarSubalgebra} (hX : IsLUB s X) : + IsLUB (φ.gnsStarAlgHom '' s) (φ.gnsStarAlgHom X) := by + let : Nonempty s := hs.to_subtype + let : IsDirectedOrder s := hd.isDirectedOrder + constructor + · rintro _ ⟨Y, hY, rfl⟩ + exact gnsStarAlgHom_monotone φ (hX.1 hY) + · intro Y hY + exact Gaussian.operator_le_of_strong_tendsto + (gns_strong_tendsto_of_isLUB_positive M φ hn hs hd hp hX) + (fun _ => tendsto_const_nhds) + (Eventually.of_forall fun i : s => hY ⟨i.1, i.2, rfl⟩) + +/-- Every vector functional pulled back through this actual GNS representation +is order-normal for arbitrary positive directed suprema. -/ +theorem gns_vectorFunctional_isNormal (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) (x : φ.GNS) : + IsNormalFunctional M (fun X => inner ℂ x (φ.gnsStarAlgHom X x)) := by + intro s hs hd hp X hX + let : Nonempty s := hs.to_subtype + let : IsDirectedOrder s := hd.isDirectedOrder + have ht : Tendsto (fun i : s => (inner ℂ x (φ.gnsStarAlgHom i.1 x)).re) atTop + (𝓝 (inner ℂ x (φ.gnsStarAlgHom X x)).re) := + Complex.continuous_re.continuousAt.tendsto.comp + (tendsto_const_nhds.inner (gns_strong_tendsto_of_isLUB_positive M φ hn hs hd hp hX x)) + constructor + · rintro _ ⟨Y, hY, rfl⟩ + have h := (ContinuousLinearMap.le_def.mp + (gnsStarAlgHom_monotone φ (hX.1 hY))).re_inner_nonneg_right x + simpa [inner_sub_right, sub_nonneg] using h + · intro r hr + exact le_of_tendsto ht (Eventually.of_forall fun i : s => hr ⟨i.1, i.2, rfl⟩) + +/-- GNS vector positive linear map obtained from `representationVectorPositiveLinearMap`. -/ +def gnsVectorPositiveLinearMap (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (x : φ.GNS) : + M.toStarSubalgebra →ₚ[ℂ] ℂ := + representationVectorPositiveLinearMap φ.gnsStarAlgHom x + +theorem gns_vectorFunctional_isNormalState (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) + (x : φ.GNS) (hx : ‖x‖ = 1) : + IsNormalStateFunctional M (fun X => inner ℂ x (φ.gnsStarAlgHom X x)) := by + refine ⟨⟨gnsVectorPositiveLinearMap M φ x, ?_, fun _ => rfl⟩, + gns_vectorFunctional_isNormal M φ hn x⟩ + change inner ℂ x (φ.gnsStarAlgHom 1 x) = 1 + have hone : φ.gnsStarAlgHom (1 : M.toStarSubalgebra) = 1 := + φ.gnsStarAlgHom.map_one + rw [hone] + change inner ℂ x x = 1 + rw [inner_self_eq_norm_sq_to_K, hx]; norm_num + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/GNSUnitVector.lean b/LeanPool/VacuumBellSeparation/Bell/GNSUnitVector.lean new file mode 100644 index 0000000000..26b73aeb0b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GNSUnitVector.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.CStarAlgebra.GelfandNaimarkSegal + +/-! The literal unit vector and dense orbit of the pinned GNS construction. +This does not identify the image as a von Neumann algebra or prove normality. -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open scoped InnerProductSpace ComplexOrder + +variable {A : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] + +/-- The additive norm inherited from the uniform completion of the pre-GNS space. -/ +noncomputable instance gnsNormedAddCommGroup (φ : A →ₚ[ℂ] ℂ) : + NormedAddCommGroup φ.GNS := + inferInstanceAs (NormedAddCommGroup (UniformSpace.Completion φ.PreGNS)) + +/-- The scalar product on the completion extending the pre-GNS scalar product. -/ +noncomputable instance gnsInnerProductSpace (φ : A →ₚ[ℂ] ℂ) : InnerProductSpace ℂ φ.GNS := + inferInstanceAs (InnerProductSpace ℂ (UniformSpace.Completion φ.PreGNS)) + +/-- Completeness of the completed GNS representation space. -/ +instance gnsCompleteSpace (φ : A →ₚ[ℂ] ℂ) : CompleteSpace φ.GNS := + inferInstanceAs (CompleteSpace (UniformSpace.Completion φ.PreGNS)) + +/-- GNS unit vector. -/ +def gnsUnitVector (φ : A →ₚ[ℂ] ℂ) : φ.GNS := + ((φ.toPreGNS 1 : φ.PreGNS) : φ.GNS) + +theorem gns_apply_unitVector (φ : A →ₚ[ℂ] ℂ) (a : A) : + φ.gnsStarAlgHom a (gnsUnitVector φ) = ((φ.toPreGNS a : φ.PreGNS) : φ.GNS) := by + change φ.gnsNonUnitalStarAlgHom a ((φ.toPreGNS 1 : φ.PreGNS) : φ.GNS) = _ + rw [PositiveLinearMap.gnsNonUnitalStarAlgHom_apply_coe] + congr 1 + change φ.toPreGNS (a * 1) = φ.toPreGNS a + rw [mul_one] + +theorem gnsUnitVector_norm (φ : A →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) : + ‖gnsUnitVector φ‖ = 1 := by + rw [gnsUnitVector, UniformSpace.Completion.norm_coe, PositiveLinearMap.preGNS_norm_def] + simp only [PositiveLinearMap.ofPreGNS_toPreGNS, star_one, one_mul, hφ, + Complex.one_re, Real.sqrt_one] + +theorem gnsUnitVector_expectation (φ : A →ₚ[ℂ] ℂ) (a : A) : + ⟪gnsUnitVector φ, φ.gnsStarAlgHom a (gnsUnitVector φ)⟫_ℂ = φ a := by + rw [gns_apply_unitVector] + change ⟪((φ.toPreGNS 1 : φ.PreGNS) : φ.GNS), + ((φ.toPreGNS a : φ.PreGNS) : φ.GNS)⟫_ℂ = _ + rw [UniformSpace.Completion.inner_coe, PositiveLinearMap.preGNS_inner_def] + simp only [PositiveLinearMap.ofPreGNS_toPreGNS, star_one, one_mul] + +theorem gnsUnitVector_dense_orbit (φ : A →ₚ[ℂ] ℂ) : + DenseRange (fun a : A => φ.gnsStarAlgHom a (gnsUnitVector φ)) := by + have hr : Set.range (fun a : A => φ.gnsStarAlgHom a (gnsUnitVector φ)) = + Set.range ((↑) : φ.PreGNS → φ.GNS) := by + ext x + constructor + · rintro ⟨a, rfl⟩ + exact ⟨φ.toPreGNS a, (gns_apply_unitVector φ a).symm⟩ + · rintro ⟨a, rfl⟩ + refine ⟨φ.ofPreGNS a, ?_⟩ + change φ.gnsStarAlgHom (φ.ofPreGNS a) (gnsUnitVector φ) = _ + rw [gns_apply_unitVector, PositiveLinearMap.toPreGNS_ofPreGNS] + change Dense (Set.range (fun a : A => φ.gnsStarAlgHom a (gnsUnitVector φ))) + rw [hr] + exact UniformSpace.Completion.denseRange_coe + +theorem gns_apply_unitVector_norm_sq (φ : A →ₚ[ℂ] ℂ) (a : A) : + ((‖φ.gnsStarAlgHom a (gnsUnitVector φ)‖ ^ 2 : ℝ) : ℂ) = φ (star a * a) := by + rw [gns_apply_unitVector, UniformSpace.Completion.norm_coe] + simpa only [PositiveLinearMap.ofPreGNS_toPreGNS, Complex.ofReal_pow] using + φ.preGNS_norm_sq (φ.toPreGNS a) + +/-- Faithfulness is the actual vanishing condition on each positive square. +The result concerns the concrete GNS representation, not an assumed isomorphism. -/ +theorem gnsStarAlgHom_injective_of_faithful (φ : A →ₚ[ℂ] ℂ) + (hfaithful : ∀ a : A, φ (star a * a) = 0 → a = 0) : + Function.Injective φ.gnsStarAlgHom := by + intro a b hab + apply sub_eq_zero.mp + apply hfaithful (a - b) + have hv : φ.gnsStarAlgHom (a - b) (gnsUnitVector φ) = 0 := by + rw [map_sub, hab, sub_self] + rfl + calc + φ (star (a - b) * (a - b)) = + ((‖φ.gnsStarAlgHom (a - b) (gnsUnitVector φ)‖ ^ 2 : ℝ) : ℂ) := + (gns_apply_unitVector_norm_sq φ (a - b)).symm + _ = 0 := by rw [hv]; norm_num + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationCompatibility.lean b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationCompatibility.lean new file mode 100644 index 0000000000..00f633ea80 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationCompatibility.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationSpecifications +public import LeanPool.VacuumBellSeparation.Bell.LocalState +public import LeanPool.VacuumBellSeparation.Bell.TsirelsonBound +public import LeanPool.VacuumBellSeparation.Bell.KaplanskyContractions + +/-! +Literal quantity and observable bridges for HC00. The state extension used for +bounds is an actual positive unital extension; no normal ambient extension is +assumed or asserted. No density or infinite-type result is used here. +-/ + +@[expose] public section + +universe u +namespace VacuumBellSeparation.Bipartite.HC00 + +open scoped ComplexOrder InnerProductSpace + +variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Every generator belongs to its generated von Neumann algebra. This local +proof keeps the generic Bell bridge independent of the free-field continuity API. -/ +theorem subset_generatedVNA_for_bell (S : Set (H →L[ℂ] H)) : S ⊆ generatedVNA S := by + intro T hT + change T ∈ (commutantOf S).commutant + rw [VonNeumannAlgebra.mem_commutant_iff] + intro B hB + have hb := mem_commutantOf_iff.mp hB + exact (Set.mem_centralizer_iff.mp hb T (Set.mem_union_left _ hT)).symm + +/-- Bundling the four local observables in the joint algebra changes neither +its set of CHSH values nor its conditional real supremum. -/ +theorem jointBellCorrelation_eq_localBellCorrelation (A B : VonNeumannAlgebra H) + (φ : (jointAlgebra A B).toStarSubalgebra →ₚ[ℂ] ℂ) + (hA : (A : Set (H →L[ℂ] H)) ⊆ (jointAlgebra A B).toStarSubalgebra) + (hB : (B : Set (H →L[ℂ] H)) ⊆ (jointAlgebra A B).toStarSubalgebra) : + jointBellCorrelation A B φ = + localBellCorrelation (jointAlgebra A B).toStarSubalgebra φ A B hA hB := by + unfold jointBellCorrelation jointBellValues localBellCorrelation + apply congrArg sSup + apply Set.ext + intro r + constructor + · rintro ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, hr⟩ + exact ⟨X₀, hX₀, X₁, hX₁, Y₀, hY₀, Y₁, hY₁, hr⟩ + · rintro ⟨X₀, hX₀, X₁, hX₁, Y₀, hY₀, Y₁, hY₁, hr⟩ + exact ⟨⟨X₀, hA hX₀.1⟩, ⟨X₁, hA hX₁.1⟩, + ⟨Y₀, hB hY₀.1⟩, ⟨Y₁, hB hY₁.1⟩, hX₀, hX₁, hY₀, hY₁, hr⟩ + +theorem jointBellQuantityCompatibility_specification : + JointBellQuantityCompatibilitySpecification (H := H) := by + intro A B φ hA hB + exact jointBellCorrelation_eq_localBellCorrelation A B φ hA hB + +/-- The full order interval of self-adjoint observables, not just effects. -/ +theorem mem_saContractions_iff_order (A : VonNeumannAlgebra H) (X : H →L[ℂ] H) : + X ∈ saContractions A ↔ X ∈ A ∧ IsSelfAdjoint X ∧ -1 ≤ X ∧ X ≤ 1 := by + constructor + · rintro ⟨hX, hsa, hn⟩ + have hp := ContinuousLinearMap.nonneg_iff_isPositive.mpr + (isPositive_one_add_of_saContraction hsa hn) + have hm := ContinuousLinearMap.nonneg_iff_isPositive.mpr + (isPositive_one_sub_of_saContraction hsa hn) + exact ⟨hX, hsa, neg_le_iff_add_nonneg'.mpr hp, sub_nonneg.mp hm⟩ + · rintro ⟨hX, hsa, hlow, hupp⟩ + let E : H →L[ℂ] H := (1 / 2 : ℝ) • (1 + X) + have hE : 0 ≤ E := + smul_nonneg (by norm_num) (neg_le_iff_add_nonneg'.mp hlow) + have hE1 : E ≤ 1 := by + apply sub_nonneg.mp + have he : 1 - E = (1 / 2 : ℝ) • (1 - X) := by dsimp only [E]; module + rw [he] + exact smul_nonneg (by norm_num) (sub_nonneg.mpr hupp) + have he : (2 : ℝ) • E - 1 = X := by dsimp only [E]; module + have hn := (two_smul_effect_sub_one_contraction hE hE1).2 + exact ⟨hX, hsa, by simpa only [he] using hn⟩ + +theorem observableOrderCompatibility_specification : + ObservableOrderCompatibilitySpecification (H := H) := by + intro A X + exact mem_saContractions_iff_order A X + +/-- Every intrinsic joint state has the manuscript's bounds. Positivity gives +a general ambient state extension; its agreement on the joint algebra is all +that is used to transfer the existing literal Tsirelson theorem. -/ +theorem jointBellCorrelation_bounds (A B : VonNeumannAlgebra H) + (hcomm : Commuting A B) (φ : StateSpace (jointAlgebra A B)) : + 1 ≤ jointBellCorrelation A B φ.1 ∧ + jointBellCorrelation A B φ.1 ≤ Real.sqrt 2 := by + obtain ⟨ψ, hψ1, hψ⟩ := φ.2 + have he : (fun T => ψ T) = (fun T => φ.1 T) := funext hψ + have hA : (A : Set (H →L[ℂ] H)) ⊆ (jointAlgebra A B).toStarSubalgebra := by + intro X hX + exact subset_generatedVNA_for_bell _ (Set.mem_union_left _ hX) + have hB : (B : Set (H →L[ℂ] H)) ⊆ (jointAlgebra A B).toStarSubalgebra := by + intro Y hY + exact subset_generatedVNA_for_bell _ (Set.mem_union_right _ hY) + obtain ⟨ω, hω⟩ := exists_state_extension_vonNeumann (jointAlgebra A B) ψ hψ1 + have hb : jointBellCorrelation A B φ.1 = bellCorrelation ω A B := by + calc + jointBellCorrelation A B φ.1 = jointBellCorrelation A B ψ := + congrArg (jointBellCorrelation A B) he.symm + _ = localBellCorrelation (jointAlgebra A B).toStarSubalgebra ψ A B hA hB := + jointBellCorrelation_eq_localBellCorrelation A B ψ hA hB + _ = bellCorrelation ω A B := + localBellCorrelation_eq_extension (jointAlgebra A B).toStarSubalgebra + ψ A B hA hB ω hω + rw [hb] + exact ⟨one_le_bellCorrelation ω A B, bellCorrelation_le_sqrt_two ω hcomm⟩ + +end VacuumBellSeparation.Bipartite.HC00 diff --git a/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationContinuity.lean b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationContinuity.lean new file mode 100644 index 0000000000..375a6f54d9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationContinuity.lean @@ -0,0 +1,138 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationCompatibility +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationOpen + +/-! +Norm continuity of HC00's intrinsic Bell quantity. The argument compares the +same actual CHSH observable in two functionals. A crude operator bound four +suffices for continuity; the sharp bound is transferred separately above. +-/ + +@[expose] public section + +universe u +namespace VacuumBellSeparation.Bipartite.HC00 + +open scoped ComplexOrder InnerProductSpace + +variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- A pointwise operator-norm bound on the evaluation difference controls the +whole supremum, without exchanging supremum and limit. -/ +theorem jointBellCorrelation_le_add_of_bound (A B : VonNeumannAlgebra H) + (f g : (jointAlgebra A B).toStarSubalgebra → ℂ) (C : ℝ) (hC : 0 ≤ C) + (hg : BddAbove (jointBellValues A B g)) + (hfg : ∀ T, ‖f T - g T‖ ≤ C * ‖T‖) : + jointBellCorrelation A B f ≤ jointBellCorrelation A B g + 2 * C := by + apply csSup_le (jointBellValues_nonempty A B f) + rintro r ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ + let T : (jointAlgebra A B).toStarSubalgebra := + X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁) + have hT : ‖T‖ ≤ 4 := by + change ‖chshOp (X₀ : H →L[ℂ] H) (X₁ : H →L[ℂ] H) + (Y₀ : H →L[ℂ] H) (Y₁ : H →L[ℂ] H)‖ ≤ 4 + exact norm_chshOp_le hX₀.2.2 hX₁.2.2 hY₀.2.2 hY₁.2.2 + have hd := (hfg T).trans (mul_le_mul_of_nonneg_left hT hC) + have hn := norm_sub_norm_le (f T) (g T) + have hv : (1 / 2 : ℝ) * ‖g T‖ ≤ jointBellCorrelation A B g := + le_csSup hg ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ + change (1 / 2 : ℝ) * ‖f T‖ ≤ jointBellCorrelation A B g + 2 * C + linarith + +theorem abs_jointBellCorrelation_sub_le_of_bound (A B : VonNeumannAlgebra H) + (f g : (jointAlgebra A B).toStarSubalgebra → ℂ) (C : ℝ) (hC : 0 ≤ C) + (hf : BddAbove (jointBellValues A B f)) + (hg : BddAbove (jointBellValues A B g)) + (hfg : ∀ T, ‖f T - g T‖ ≤ C * ‖T‖) : + |jointBellCorrelation A B f - jointBellCorrelation A B g| ≤ 2 * C := by + have hfg' := jointBellCorrelation_le_add_of_bound A B f g C hC hg hfg + have hgf' := jointBellCorrelation_le_add_of_bound A B g f C hC hf + (fun T => by simpa only [norm_sub_rev] using hfg T) + exact abs_le.mpr ⟨by linarith, by linarith⟩ + +/-- In particular the quantity is Lipschitz on the entire continuous dual, +before imposing positivity, unitality or normality. -/ +theorem lipschitzWith_jointBellCorrelation (A B : VonNeumannAlgebra H) : + LipschitzWith 2 (fun φ : StrongDual ℂ (jointAlgebra A B).toStarSubalgebra => + jointBellCorrelation A B φ) := by + apply LipschitzWith.of_dist_le_mul + intro φ ψ + simp only [dist_eq_norm] + change |jointBellCorrelation A B φ - jointBellCorrelation A B ψ| ≤ 2 * ‖φ - ψ‖ + apply abs_jointBellCorrelation_sub_le_of_bound A B φ ψ ‖φ - ψ‖ (norm_nonneg _) + · exact jointBellValues_bddAbove_of_bound A B φ ‖φ‖ (norm_nonneg _) + (fun T => φ.le_opNorm T) + · exact jointBellValues_bddAbove_of_bound A B ψ ‖ψ‖ (norm_nonneg _) + (fun T => ψ.le_opNorm T) + · intro T + exact (φ - ψ).le_opNorm T + +theorem norm_vectorFunctional_le_of_unit (M : VonNeumannAlgebra H) (x : UnitSphere H) + (T : M.toStarSubalgebra) : ‖vectorFunctional M x.1 T‖ ≤ ‖T‖ := by + have h := (norm_inner_le_norm (𝕜 := ℂ) x.1 ((T : H →L[ℂ] H) x.1)).trans + (mul_le_mul_of_nonneg_left ((T : H →L[ℂ] H).le_opNorm x.1) + (norm_nonneg x.1)) + change ‖inner ℂ x.1 ((T : H →L[ℂ] H) x.1)‖ ≤ ‖(T : H →L[ℂ] H)‖ + simpa only [x.2, one_mul, mul_one] using h + +/-- A direct estimate on actual full-H vector evaluations. Neither vectors +nor operators are projected to a finite or cyclic subspace. -/ +theorem norm_vectorFunctional_sub_le_of_unit (M : VonNeumannAlgebra H) + (x y : UnitSphere H) (T : M.toStarSubalgebra) : + ‖vectorFunctional M x.1 T - vectorFunctional M y.1 T‖ ≤ + (2 * ‖x.1 - y.1‖) * ‖T‖ := by + let S : H →L[ℂ] H := T + have he : ⟪x.1, S x.1⟫_ℂ - ⟪y.1, S y.1⟫_ℂ = + ⟪x.1 - y.1, S x.1⟫_ℂ + ⟪y.1, S (x.1 - y.1)⟫_ℂ := by + rw [map_sub, inner_sub_left, inner_sub_right] + ring + have hx : ‖S x.1‖ ≤ ‖S‖ := by simpa only [x.2, mul_one] using S.le_opNorm x.1 + have h₁ : ‖⟪x.1 - y.1, S x.1⟫_ℂ‖ ≤ ‖x.1 - y.1‖ * ‖S‖ := + (norm_inner_le_norm (𝕜 := ℂ) _ _).trans + (mul_le_mul_of_nonneg_left hx (norm_nonneg _)) + have h₂ : ‖⟪y.1, S (x.1 - y.1)⟫_ℂ‖ ≤ ‖S‖ * ‖x.1 - y.1‖ := by + have h := (norm_inner_le_norm (𝕜 := ℂ) y.1 (S (x.1 - y.1))).trans + (mul_le_mul_of_nonneg_left (S.le_opNorm _) (norm_nonneg y.1)) + simpa only [y.2, one_mul] using h + change ‖⟪x.1, S x.1⟫_ℂ - ⟪y.1, S y.1⟫_ℂ‖ ≤ (2 * ‖x.1 - y.1‖) * ‖S‖ + rw [he] + exact (norm_add_le _ _).trans ((add_le_add h₁ h₂).trans_eq (by ring)) + +theorem lipschitzWith_vector_jointBellCorrelation (A B : VonNeumannAlgebra H) : + LipschitzWith 4 (fun x : UnitSphere H => + jointBellCorrelation A B (vectorFunctional (jointAlgebra A B) x.1)) := by + apply LipschitzWith.of_dist_le_mul + intro x y + have hx := jointBellValues_bddAbove_of_bound A B + (vectorFunctional (jointAlgebra A B) x.1) 1 zero_le_one + (fun T => by simpa only [one_mul] using norm_vectorFunctional_le_of_unit _ x T) + have hy := jointBellValues_bddAbove_of_bound A B + (vectorFunctional (jointAlgebra A B) y.1) 1 zero_le_one + (fun T => by simpa only [one_mul] using norm_vectorFunctional_le_of_unit _ y T) + have h := abs_jointBellCorrelation_sub_le_of_bound A B + (vectorFunctional (jointAlgebra A B) x.1) (vectorFunctional (jointAlgebra A B) y.1) + (2 * ‖x.1 - y.1‖) (by positivity) hx hy + (norm_vectorFunctional_sub_le_of_unit (jointAlgebra A B) x y) + simp only [Subtype.dist_eq, dist_eq_norm] + change |jointBellCorrelation A B (vectorFunctional (jointAlgebra A B) x.1) - + jointBellCorrelation A B (vectorFunctional (jointAlgebra A B) y.1)| ≤ + 4 * ‖x.1 - y.1‖ + nlinarith + +/-- All-state norm continuity, the literal sharp bounds, and full unit-vector +norm continuity, exactly as specified. The two density obligations are separate. -/ +theorem bellContinuityAndBounds_specification : + BellContinuityAndBoundsSpecification (H := H) := by + intro A B hcomm + refine ⟨?_, jointBellCorrelation_bounds A B hcomm, ?_⟩ + · exact (lipschitzWith_jointBellCorrelation A B).continuous.comp continuous_subtype_val + · exact (lipschitzWith_vector_jointBellCorrelation A B).continuous + +end VacuumBellSeparation.Bipartite.HC00 diff --git a/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationConvex.lean b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationConvex.lean new file mode 100644 index 0000000000..9081a5e83b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationConvex.lean @@ -0,0 +1,108 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationContinuity + +/-! Convexity of the literal joint-algebra Bell quantity. All terms are +estimated at the same actual CHSH observable before taking the supremum. +The boundedness hypotheses are explicit even for arbitrary nonlinear functions. +These lemmas do not supply faithful-state domination or normal-state density. -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite.HC00 + +open scoped ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem jointBellCorrelation_nonneg_combination_le (A B : VonNeumannAlgebra H) + (f g : (jointAlgebra A B).toStarSubalgebra → ℂ) + (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) + (hf : BddAbove (jointBellValues A B f)) + (hg : BddAbove (jointBellValues A B g)) : + jointBellCorrelation A B (a • f + b • g) ≤ + a * jointBellCorrelation A B f + b * jointBellCorrelation A B g := by + apply csSup_le (jointBellValues_nonempty A B _) + rintro r ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ + let T : (jointAlgebra A B).toStarSubalgebra := + X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁) + have hfT : (1 / 2 : ℝ) * ‖f T‖ ≤ jointBellCorrelation A B f := + le_csSup hf ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ + have hgT : (1 / 2 : ℝ) * ‖g T‖ ≤ jointBellCorrelation A B g := + le_csSup hg ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ + have hn : ‖a • f T + b • g T‖ ≤ a * ‖f T‖ + b * ‖g T‖ := by + simpa only [norm_smul, Real.norm_eq_abs, abs_of_nonneg ha, abs_of_nonneg hb] using + norm_add_le (a • f T) (b • g T) + change (1 / 2 : ℝ) * ‖a • f T + b • g T‖ ≤ _ + calc + _ ≤ (1 / 2 : ℝ) * (a * ‖f T‖ + b * ‖g T‖) := + mul_le_mul_of_nonneg_left hn (by norm_num) + _ = a * ((1 / 2 : ℝ) * ‖f T‖) + b * ((1 / 2 : ℝ) * ‖g T‖) := by ring + _ ≤ a * jointBellCorrelation A B f + b * jointBellCorrelation A B g := + add_le_add (mul_le_mul_of_nonneg_left hfT ha) (mul_le_mul_of_nonneg_left hgT hb) + +/-- Continuous dual functionals supply the required bounded value sets from +their actual operator norms; the same real scalar combination is retained. -/ +theorem jointBellCorrelation_dual_nonneg_combination_le (A B : VonNeumannAlgebra H) + (φ ψ : StrongDual ℂ (jointAlgebra A B).toStarSubalgebra) + (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) : + jointBellCorrelation A B (a • φ + b • ψ) ≤ + a * jointBellCorrelation A B φ + b * jointBellCorrelation A B ψ := by + exact jointBellCorrelation_nonneg_combination_le A B φ ψ a b ha hb + (jointBellValues_bddAbove_of_bound A B φ ‖φ‖ (norm_nonneg _) (fun T => φ.le_opNorm T)) + (jointBellValues_bddAbove_of_bound A B ψ ‖ψ‖ (norm_nonneg _) (fun T => ψ.le_opNorm T)) + +/-- A nontrivial convex decomposition of a maximizer has maximal components +when both components satisfy the same upper bound. Endpoints t=0,1 are excluded. -/ +theorem jointBellCorrelation_maximal_components (A B : VonNeumannAlgebra H) + (f g : (jointAlgebra A B).toStarSubalgebra → ℂ) + {t C : ℝ} (ht : 0 < t) (ht1 : t < 1) + (hf : BddAbove (jointBellValues A B f)) + (hg : BddAbove (jointBellValues A B g)) + (hfC : jointBellCorrelation A B f ≤ C) + (hgC : jointBellCorrelation A B g ≤ C) + (hm : jointBellCorrelation A B (t • f + (1 - t) • g) = C) : + jointBellCorrelation A B f = C ∧ jointBellCorrelation A B g = C := by + have hmix := jointBellCorrelation_nonneg_combination_le A B f g t (1 - t) + ht.le (sub_nonneg.mpr ht1.le) hf hg + rw [hm] at hmix + have hsum : t * C + (1 - t) * C = C := by ring + constructor + · apply le_antisymm hfC + by_contra h + have hlt : jointBellCorrelation A B f < C := lt_of_not_ge h + have hs := add_lt_add_of_lt_of_le (mul_lt_mul_of_pos_left hlt ht) + (mul_le_mul_of_nonneg_left hgC (sub_nonneg.mpr ht1.le)) + rw [hsum] at hs + exact (not_lt_of_ge hmix) hs + · apply le_antisymm hgC + by_contra h + have hlt : jointBellCorrelation A B g < C := lt_of_not_ge h + have hs := add_lt_add_of_le_of_lt (mul_le_mul_of_nonneg_left hfC ht.le) + (mul_lt_mul_of_pos_left hlt (sub_pos.mpr ht1)) + rw [hsum] at hs + exact (not_lt_of_ge hmix) hs + +/-- Sharp intrinsic joint-state specialization, without a normality, +faithfulness or representation hypothesis hidden in either component. -/ +theorem jointBellCorrelation_state_maximal_components (A B : VonNeumannAlgebra H) + (hcomm : Commuting A B) (φ ψ : StateSpace (jointAlgebra A B)) + {t : ℝ} (ht : 0 < t) (ht1 : t < 1) + (hm : jointBellCorrelation A B + (fun T => t • φ.1 T + (1 - t) • ψ.1 T) = Real.sqrt 2) : + jointBellCorrelation A B φ.1 = Real.sqrt 2 ∧ + jointBellCorrelation A B ψ.1 = Real.sqrt 2 := by + exact jointBellCorrelation_maximal_components A B φ.1 ψ.1 ht ht1 + (jointBellValues_bddAbove_of_bound A B φ.1 ‖φ.1‖ (norm_nonneg _) (fun T => φ.1.le_opNorm T)) + (jointBellValues_bddAbove_of_bound A B ψ.1 ‖ψ.1‖ (norm_nonneg _) (fun T => ψ.1.le_opNorm T)) + (jointBellCorrelation_bounds A B hcomm φ).2 + (jointBellCorrelation_bounds A B hcomm ψ).2 hm + +end VacuumBellSeparation.Bipartite.HC00 diff --git a/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationDefs.lean b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationDefs.lean new file mode 100644 index 0000000000..40dcf7f69f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationDefs.lean @@ -0,0 +1,70 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.BipartiteNormalStateDefs +public import LeanPool.VacuumBellSeparation.Bell.LocalStateDefs + +/-! +Definition proposal for HC00, arXiv:math-ph/9909013v3, Section II, pp. 2–5. +These definitions assume no Bell-correlation result. In particular a type of +normal states has its inherited operator-NORM topology, not WeakDual topology. +The joint algebra acts on the given full Hilbert space H. +-/ + +@[expose] public section + +universe u +namespace VacuumBellSeparation.Bipartite.HC00 + +open scoped ComplexOrder InnerProductSpace + +variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The original unit sphere, with the topology induced by the norm on H. -/ +abbrev UnitSphere (H : Type u) [NormedAddCommGroup H] := {Ω : H // ‖Ω‖ = 1} + +/-- All states on M itself. Continuous linear functionals carry the operator +norm; the state predicate is positive and unital. No ambient extension is chosen. -/ +abbrev StateSpace (M : VonNeumannAlgebra H) := + {φ : StrongDual ℂ M.toStarSubalgebra // IsStateFunctional M φ} + +/-- Normal states on M, with the inherited operator-norm topology. +Normality still means preservation of EVERY directed positive supremum, through +the existing explicit predicate. No sequential or vector-state restriction is used. -/ +abbrev NormalStateSpace (M : VonNeumannAlgebra H) := + {φ : StrongDual ℂ M.toStarSubalgebra // IsNormalStateFunctional M φ} + +/-- HC00's normalized CHSH values, evaluated entirely in the joint algebra. +Each observable is a self-adjoint contraction in its original local algebra. +For a linear state, moving the factor 1/2 outside its absolute value is exact. -/ +def jointBellValues (A B : VonNeumannAlgebra H) + (f : (jointAlgebra A B).toStarSubalgebra → ℂ) : Set ℝ := + {r | ∃ X₀ X₁ Y₀ Y₁ : (jointAlgebra A B).toStarSubalgebra, + (X₀ : H →L[ℂ] H) ∈ saContractions A ∧ + (X₁ : H →L[ℂ] H) ∈ saContractions A ∧ + (Y₀ : H →L[ℂ] H) ∈ saContractions B ∧ + (Y₁ : H →L[ℂ] H) ∈ saContractions B ∧ + r = (1 / 2 : ℝ) * ‖f (X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁))‖} + +/-- The supremum of normalized CHSH values attained by local observables in the joint algebra. -/ +noncomputable def jointBellCorrelation (A B : VonNeumannAlgebra H) + (f : (jointAlgebra A B).toStarSubalgebra → ℂ) : ℝ := + sSup (jointBellValues A B f) + +/-- Bell violation is strict excess over the classical bound; no maximality. -/ +noncomputable def bellCorrelatedVectors (A B : VonNeumannAlgebra H) : + Set (UnitSphere H) := + {Ω | 1 < jointBellCorrelation A B (vectorFunctional (jointAlgebra A B) Ω.1)} + +/-- This set includes every normal state satisfying strict Bell violation, +not merely the normal states represented by a vector in this representation. -/ +noncomputable def bellCorrelatedNormalStates (A B : VonNeumannAlgebra H) : + Set (NormalStateSpace (jointAlgebra A B)) := + {φ | 1 < jointBellCorrelation A B φ.1} + +end VacuumBellSeparation.Bipartite.HC00 diff --git a/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationOpen.lean b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationOpen.lean new file mode 100644 index 0000000000..38cee6c5db --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationOpen.lean @@ -0,0 +1,132 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationDefs +public import LeanPool.VacuumBellSeparation.Bell.StateBound + +/-! +Norm-openness for HC00's actual Bell-correlated vectors and joint normal states. +The proof extracts a strict CHSH witness from the bounded supremum, then keeps +that same witness on a neighborhood. No density, Schlieder, infinite-type or +normal-representation conclusion is used as a premise. +-/ + +@[expose] public section + +universe u v +namespace VacuumBellSeparation.Bipartite.HC00 + +open scoped Topology InnerProductSpace ComplexOrder + +variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The zero quadruple is always admissible, even for a nonlinear function f. -/ +theorem jointBellValues_nonempty (A B : VonNeumannAlgebra H) + (f : (jointAlgebra A B).toStarSubalgebra → ℂ) : + (jointBellValues A B f).Nonempty := by + refine ⟨(1 / 2 : ℝ) * ‖f 0‖, 0, 0, 0, 0, ?_, ?_, ?_, ?_, ?_⟩ + · exact ⟨A.zero_mem, IsSelfAdjoint.zero _, by simp⟩ + · exact ⟨A.zero_mem, IsSelfAdjoint.zero _, by simp⟩ + · exact ⟨B.zero_mem, IsSelfAdjoint.zero _, by simp⟩ + · exact ⟨B.zero_mem, IsSelfAdjoint.zero _, by simp⟩ + · simp + +/-- Actual operator norm bounds, rather than a hypothesis on Bell correlation, +make the conditional real supremum legitimate. -/ +theorem jointBellValues_bddAbove_of_bound (A B : VonNeumannAlgebra H) + (f : (jointAlgebra A B).toStarSubalgebra → ℂ) (C : ℝ) (hC : 0 ≤ C) + (hf : ∀ T, ‖f T‖ ≤ C * ‖T‖) : BddAbove (jointBellValues A B f) := by + refine ⟨2 * C, ?_⟩ + rintro r ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ + have hT : ‖X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁)‖ ≤ 4 := by + change ‖chshOp (X₀ : H →L[ℂ] H) (X₁ : H →L[ℂ] H) + (Y₀ : H →L[ℂ] H) (Y₁ : H →L[ℂ] H)‖ ≤ 4 + exact norm_chshOp_le hX₀.2.2 hX₁.2.2 hY₀.2.2 hY₁.2.2 + have he := (hf (X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁))).trans + (mul_le_mul_of_nonneg_left hT hC) + linarith + +/-- A continuously varying evaluation with a bounded Bell-value set at each +point has an open strict-violation set. Only one fixed actual CHSH witness is +used in each neighborhood; no exchange of a supremum with a limit is assumed. -/ +theorem isOpen_jointBellCorrelation_gt_one {X : Type v} [TopologicalSpace X] + (A B : VonNeumannAlgebra H) + (f : X → (jointAlgebra A B).toStarSubalgebra → ℂ) + (hbound : ∀ x, BddAbove (jointBellValues A B (f x))) + (hcont : ∀ T, Continuous (fun x => f x T)) : + IsOpen {x | 1 < jointBellCorrelation A B (f x)} := by + apply isOpen_iff_mem_nhds.mpr + intro x hx + change 1 < sSup (jointBellValues A B (f x)) at hx + obtain ⟨r, hr, hlt⟩ := + exists_lt_of_lt_csSup (jointBellValues_nonempty A B (f x)) hx + rcases hr with ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ + let T : (jointAlgebra A B).toStarSubalgebra := + X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁) + have hc : Continuous (fun y : X => (1 / 2 : ℝ) * ‖f y T‖) := + continuous_const.mul (hcont T).norm + have hopen : IsOpen {y : X | 1 < (1 / 2 : ℝ) * ‖f y T‖} := + isOpen_lt continuous_const hc + have hn : {y : X | 1 < (1 / 2 : ℝ) * ‖f y T‖} ∈ 𝓝 x := + hopen.mem_nhds hlt + apply Filter.mem_of_superset hn + intro y hy + change 1 < sSup (jointBellValues A B (f y)) + exact lt_csSup_of_lt (hbound y) + ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ hy + +/-- HC00 p.3 openness in the norm topology of the full original unit sphere. -/ +theorem isOpen_bellCorrelatedVectors (A B : VonNeumannAlgebra H) : + IsOpen (bellCorrelatedVectors A B) := by + change IsOpen {Ω : UnitSphere H | + 1 < jointBellCorrelation A B (vectorFunctional (jointAlgebra A B) Ω.1)} + apply isOpen_jointBellCorrelation_gt_one A B + (fun Ω : UnitSphere H => vectorFunctional (jointAlgebra A B) Ω.1) + · intro Ω + apply jointBellValues_bddAbove_of_bound A B _ 1 zero_le_one + intro T + change ‖⟪Ω.1, (T : H →L[ℂ] H) Ω.1⟫_ℂ‖ ≤ 1 * ‖(T : H →L[ℂ] H)‖ + have h := (norm_inner_le_norm (𝕜 := ℂ) Ω.1 ((T : H →L[ℂ] H) Ω.1)).trans + (mul_le_mul_of_nonneg_left ((T : H →L[ℂ] H).le_opNorm Ω.1) + (norm_nonneg Ω.1)) + simpa only [Ω.2, one_mul, mul_one] using h + · intro T + change Continuous (fun Ω : UnitSphere H => ⟪Ω.1, (T : H →L[ℂ] H) Ω.1⟫_ℂ) + exact continuous_subtype_val.inner + ((T : H →L[ℂ] H).continuous.comp continuous_subtype_val) + +/-- The same open set in all joint states, with their inherited dual norm. -/ +theorem isOpen_bellCorrelatedStates (A B : VonNeumannAlgebra H) : + IsOpen {φ : StateSpace (jointAlgebra A B) | + 1 < jointBellCorrelation A B φ.1} := by + apply isOpen_jointBellCorrelation_gt_one A B + (fun φ : StateSpace (jointAlgebra A B) => φ.1) + · intro φ + exact jointBellValues_bddAbove_of_bound A B φ.1 ‖φ.1‖ (norm_nonneg _) + (fun T => φ.1.le_opNorm T) + · intro T + exact (continuous_subtype_val : Continuous + (fun φ : StateSpace (jointAlgebra A B) => φ.1)).clm_apply continuous_const + +/-- HC00 p.3 openness in ALL normal joint states, not just a vector-state image. +The topology is inherited from the normed continuous dual, and normality is +retained as a defining predicate on this full state subtype. -/ +theorem isOpen_bellCorrelatedNormalStates (A B : VonNeumannAlgebra H) : + IsOpen (bellCorrelatedNormalStates A B) := by + change IsOpen {φ : NormalStateSpace (jointAlgebra A B) | + 1 < jointBellCorrelation A B φ.1} + apply isOpen_jointBellCorrelation_gt_one A B + (fun φ : NormalStateSpace (jointAlgebra A B) => φ.1) + · intro φ + exact jointBellValues_bddAbove_of_bound A B φ.1 ‖φ.1‖ (norm_nonneg _) + (fun T => φ.1.le_opNorm T) + · intro T + exact (continuous_subtype_val : Continuous + (fun φ : NormalStateSpace (jointAlgebra A B) => φ.1)).clm_apply continuous_const + +end VacuumBellSeparation.Bipartite.HC00 diff --git a/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationSpecifications.lean b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationSpecifications.lean new file mode 100644 index 0000000000..a56956cbe0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/GenericBellCorrelationSpecifications.lean @@ -0,0 +1,56 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationDefs + +/-! +Continuity, bounds, and comparison statements for the joint-algebra Bell quantity. +`Bell/GenericBellCorrelationContinuity.lean` proves `bellContinuityAndBounds_specification`. +`Bell/GenericBellCorrelationCompatibility.lean` proves +`jointBellQuantityCompatibility_specification` and `observableOrderCompatibility_specification`. +-/ + +@[expose] public section + +universe u +namespace VacuumBellSeparation.Bipartite.HC00 + +open scoped ComplexOrder + +variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- HC00 p. 3: continuity and bounds on all states, not only normal states. +These are useful prerequisites, not hidden conditions defining a state. -/ +def BellContinuityAndBoundsSpecification : Prop := + ∀ A B : VonNeumannAlgebra H, Commuting A B → + (Continuous (fun φ : StateSpace (jointAlgebra A B) => + jointBellCorrelation A B φ.1)) ∧ + (∀ φ : StateSpace (jointAlgebra A B), + 1 ≤ jointBellCorrelation A B φ.1 ∧ + jointBellCorrelation A B φ.1 ≤ Real.sqrt 2) ∧ + (Continuous (fun Ω : UnitSphere H => + jointBellCorrelation A B (vectorFunctional (jointAlgebra A B) Ω.1))) + +/-- Definition bridge to the project's existing joint-algebra Bell quantity. +It does not require or assert a normal extension to all bounded operators. -/ +def JointBellQuantityCompatibilitySpecification : Prop := + ∀ (A B : VonNeumannAlgebra H) + (φ : (jointAlgebra A B).toStarSubalgebra →ₚ[ℂ] ℂ) + (hA : (A : Set (H →L[ℂ] H)) ⊆ (jointAlgebra A B).toStarSubalgebra) + (hB : (B : Set (H →L[ℂ] H)) ⊆ (jointAlgebra A B).toStarSubalgebra), + jointBellCorrelation A B φ = + localBellCorrelation (jointAlgebra A B).toStarSubalgebra φ A B hA hB + +/-- HC00's operator-order formulation of the allowed local observables equals +the project's self-adjoint contraction predicate. This bridge is proved in +`Bell/GenericBellCorrelationCompatibility.lean` (`observableOrderCompatibility_specification`). -/ +def ObservableOrderCompatibilitySpecification : Prop := + ∀ (A : VonNeumannAlgebra H) (X : H →L[ℂ] H), + X ∈ saContractions A ↔ X ∈ A ∧ IsSelfAdjoint X ∧ -1 ≤ X ∧ X ≤ 1 + +end VacuumBellSeparation.Bipartite.HC00 diff --git a/LeanPool/VacuumBellSeparation/Bell/HilbertAmplification.lean b/LeanPool/VacuumBellSeparation/Bell/HilbertAmplification.lean new file mode 100644 index 0000000000..a644865f8d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/HilbertAmplification.lean @@ -0,0 +1,156 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.l2Space +public import Mathlib.Analysis.InnerProductSpace.Adjoint +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap + +/-! +# Arbitrary Hilbert direct-sum amplification + +The carrier is the genuine vector-valued ℓ² space, with no finite index +assumption. A bounded operator acts on every coordinate. Coordinate matrix +units characterize exactly the operators of this form, by continuity from +single-coordinate vectors. This supplies an actual operator extraction +lemma needed by the finite-source density purification. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace ENNReal + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] +variable (ι : Type*) + +/-- Hilbert amplification linear. -/ +noncomputable def hilbertAmplificationLinear (A : H →L[ℂ] H) : + lp (fun _ : ι => H) 2 →ₗ[ℂ] lp (fun _ : ι => H) 2 where + toFun v := ⟨fun i => A (v i), + ((lp.memℓp v).norm.const_smul ‖A‖).mono (fun i => A.le_opNorm (v i))⟩ + map_add' v w := by + ext i + change A (v i + w i) = A (v i) + A (w i) + exact A.map_add _ _ + map_smul' _ _ := by ext i; simp + +omit [CompleteSpace H] in +theorem hilbertAmplificationLinear_norm_le (A : H →L[ℂ] H) + (v : lp (fun _ : ι => H) 2) : ‖hilbertAmplificationLinear ι A v‖ ≤ ‖A‖ * ‖v‖ := by + calc + ‖hilbertAmplificationLinear ι A v‖ ≤ ‖‖A‖ • lp.toNorm v‖ := by + apply lp.norm_mono (by norm_num : (2 : ℝ≥0∞) ≠ 0) + intro i + simpa [hilbertAmplificationLinear, norm_smul] using A.le_opNorm (v i) + _ = ‖A‖ * ‖v‖ := by rw [norm_smul, norm_norm, lp.norm_toNorm] + +/-- Diagonal action on the genuine Hilbert direct sum. -/ +noncomputable def hilbertAmplification (A : H →L[ℂ] H) : + lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2 := + (hilbertAmplificationLinear ι A).mkContinuous ‖A‖ (hilbertAmplificationLinear_norm_le ι A) + +omit [CompleteSpace H] in +@[simp] theorem hilbertAmplification_apply (A : H →L[ℂ] H) + (v : lp (fun _ : ι => H) 2) (i : ι) : hilbertAmplification ι A v i = A (v i) := rfl + +omit [CompleteSpace H] in +theorem norm_hilbertAmplification_le (A : H →L[ℂ] H) : + ‖hilbertAmplification ι A‖ ≤ ‖A‖ := + ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg A) (hilbertAmplificationLinear_norm_le ι A) + +theorem hilbertAmplification_star (A : H →L[ℂ] H) : + hilbertAmplification ι (star A) = star (hilbertAmplification ι A) := by + apply (ContinuousLinearMap.eq_adjoint_iff _ _).mpr + intro v w + simp only [lp.inner_eq_tsum, hilbertAmplification_apply, + ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.adjoint_inner_left] + +/-- Hilbert amplification hom. -/ +noncomputable def hilbertAmplificationHom : (H →L[ℂ] H) →⋆ₐ[ℂ] + (lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2) where + toFun := hilbertAmplification ι + map_zero' := by ext v i; simp + map_one' := by ext v i; simp + map_add' A B := by ext v i; simp + map_mul' A B := by ext v i; rfl + commutes' c := by ext v i; simp [Algebra.algebraMap_eq_smul_one] + map_star' := hilbertAmplification_star ι + +/-- The operator from the input component to the output component of a Hilbert-space +amplification. -/ +noncomputable def hilbertAmplificationBlock + (B : lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2) (i j : ι) : H →L[ℂ] H := by + classical + exact (lp.evalCLM ℂ (fun _ : ι => H) 2 i).comp + (B.comp (lp.singleContinuousLinearMap ℂ (fun _ : ι => H) 2 j)) + +omit [CompleteSpace H] in +@[simp] theorem hilbertAmplificationBlock_apply [DecidableEq ι] + (B : lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2) (i j : ι) (x : H) : + hilbertAmplificationBlock ι B i j x = B (lp.single 2 j x) i := by + classical + unfold hilbertAmplificationBlock + simp only [ContinuousLinearMap.comp_apply, lp.evalCLM, LinearMap.mkContinuous_apply, + lp.evalₗ_apply] + apply congrArg (fun v : lp (fun _ : ι => H) 2 => B v i) + apply lp.ext + funext k + by_cases hk : k = j <;> simp [lp.singleContinuousLinearMap_apply, lp.single_apply, hk] + +/-- Hilbert coordinate unit. -/ +noncomputable def hilbertCoordinateUnit (i j : ι) : + lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2 := by + classical + exact (lp.singleContinuousLinearMap ℂ (fun _ : ι => H) 2 i).comp + (lp.evalCLM ℂ (fun _ : ι => H) 2 j) + +omit [CompleteSpace H] in +theorem hilbertCoordinateUnit_apply [DecidableEq ι] (i j : ι) (v : lp (fun _ : ι => H) 2) : + hilbertCoordinateUnit (H := H) ι i j v = lp.single 2 i (v j) := by + classical + simp only [hilbertCoordinateUnit, ContinuousLinearMap.comp_apply, + lp.singleContinuousLinearMap_apply, lp.evalCLM] + congr 2; exact Subsingleton.elim _ _ + +omit [CompleteSpace H] in +theorem hilbertAmplification_single [DecidableEq ι] (A : H →L[ℂ] H) (j : ι) (x : H) : + hilbertAmplification ι A (lp.single 2 j x) = lp.single 2 j (A x) := by + classical + ext i + by_cases h : j = i + · subst i; simp + · simp [Ne.symm h] + +omit [CompleteSpace H] in +theorem hilbertAmplification_commutes_coordinateUnit (A : H →L[ℂ] H) (i j : ι) : + hilbertAmplification ι A * hilbertCoordinateUnit ι i j = + hilbertCoordinateUnit ι i j * hilbertAmplification ι A := by + classical + ext v + simp only [mul_apply_eq_comp, hilbertCoordinateUnit_apply, + hilbertAmplification_single, hilbertAmplification_apply] + +omit [CompleteSpace H] in +/-- Commutation with all coordinate matrix units extracts one actual bounded +operator on H. The anchor is explicit, so no nonempty-index assumption is hidden. -/ +theorem eq_hilbertAmplification_of_commutes_coordinateUnits + (B : lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2) (k : ι) + (hB : ∀ i j, B * hilbertCoordinateUnit ι i j = hilbertCoordinateUnit ι i j * B) : + B = hilbertAmplification ι (hilbertAmplificationBlock ι B k k) := by + classical + apply lp.ext_continuousLinearMap (by norm_num : (2 : ℝ≥0∞) ≠ ⊤) + intro j + apply ContinuousLinearMap.ext + intro x + have h := congrArg (fun T => T (lp.single 2 k x)) (hB j k) + simpa only [mul_apply_eq_comp, hilbertCoordinateUnit_apply, + lp.single_apply_self, hilbertAmplification_single, hilbertAmplificationBlock_apply, + ContinuousLinearMap.comp_apply, lp.singleContinuousLinearMap_apply] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/HilbertAmplificationCommutant.lean b/LeanPool/VacuumBellSeparation/Bell/HilbertAmplificationCommutant.lean new file mode 100644 index 0000000000..2a484af18e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/HilbertAmplificationCommutant.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.HilbertAmplification +public import LeanPool.VacuumBellSeparation.FreeField.Isotony + +/-! +# Actual amplified double commutants + +Continuity on single-coordinate vectors proves the block commutation +criterion for arbitrary Hilbert direct sums. It transports the original +double commutant into the amplified one. Conversely, the coordinate +matrix units extract an actual underlying operator from every member of +the amplified double commutant, when an anchor coordinate is given. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped ENNReal + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] +variable (ι : Type*) + +omit [CompleteSpace H] in +theorem hilbertAmplification_commutes_iff (A : H →L[ℂ] H) + (B : lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2) : + hilbertAmplification ι A * B = B * hilbertAmplification ι A ↔ + ∀ i j, A * hilbertAmplificationBlock ι B i j = hilbertAmplificationBlock ι B i j * A := by + classical + constructor + · intro h i j + ext x + have he := congrArg (fun C => C (lp.single 2 j x) i) h + simpa only [mul_apply_eq_comp, hilbertAmplification_apply, + hilbertAmplification_single, hilbertAmplificationBlock_apply] using he + · intro h + apply lp.ext_continuousLinearMap (by norm_num : (2 : ℝ≥0∞) ≠ ⊤) + intro j + ext x i + simpa only [ContinuousLinearMap.comp_apply, lp.singleContinuousLinearMap_apply, + mul_apply_eq_comp, hilbertAmplification_apply, + hilbertAmplification_single, hilbertAmplificationBlock_apply] using + congrArg (fun C : H →L[ℂ] H => C x) (h i j) + +theorem hilbertAmplification_mem_generatedVNA (S : Set (H →L[ℂ] H)) + {T : H →L[ℂ] H} (hT : T ∈ generatedVNA S) : + hilbertAmplification ι T ∈ generatedVNA (hilbertAmplification ι '' S) := by + apply VonNeumannAlgebra.mem_commutant_iff.mpr + intro B hB + have hblocks : ∀ i j, hilbertAmplificationBlock ι B i j ∈ commutantOf S := by + intro i j + apply (StarSubalgebra.mem_centralizer_iff ℂ).mpr + intro A hA + have hb := ((StarSubalgebra.mem_centralizer_iff ℂ).mp hB) _ ⟨A, hA, rfl⟩ + refine ⟨(hilbertAmplification_commutes_iff ι A B).mp hb.1 i j, ?_⟩ + have hs : hilbertAmplification ι (star A) * B = B * hilbertAmplification ι (star A) := by + simpa only [hilbertAmplification_star] using hb.2 + exact (hilbertAmplification_commutes_iff ι (star A) B).mp hs i j + exact ((hilbertAmplification_commutes_iff ι T B).mpr + (fun i j => (VonNeumannAlgebra.mem_commutant_iff.mp hT _ (hblocks i j)).symm)).symm + +theorem hilbertCoordinateUnit_mem_commutant (S : Set (H →L[ℂ] H)) (i j : ι) : + hilbertCoordinateUnit (H := H) ι i j ∈ commutantOf (hilbertAmplification ι '' S) := by + apply (StarSubalgebra.mem_centralizer_iff ℂ).mpr + rintro _ ⟨A, hA, rfl⟩ + refine ⟨hilbertAmplification_commutes_coordinateUnit ι A i j, ?_⟩ + rw [← hilbertAmplification_star] + exact hilbertAmplification_commutes_coordinateUnit ι (star A) i j + +/-- Every amplified-algebra operator is the amplification of one actual +bounded operator. No representation-equivalence assumption is used. -/ +theorem eq_hilbertAmplification_of_mem_generatedVNA + (S : Set (H →L[ℂ] H)) (k : ι) + {B : lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2} + (hB : B ∈ generatedVNA (hilbertAmplification ι '' S)) : + B = hilbertAmplification ι (hilbertAmplificationBlock ι B k k) := + eq_hilbertAmplification_of_commutes_coordinateUnits ι B k (fun i j => + (VonNeumannAlgebra.mem_commutant_iff.mp hB _ + (hilbertCoordinateUnit_mem_commutant ι S i j)).symm) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/HilbertAmplificationFaithful.lean b/LeanPool/VacuumBellSeparation/Bell/HilbertAmplificationFaithful.lean new file mode 100644 index 0000000000..ca1e8c8cb9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/HilbertAmplificationFaithful.lean @@ -0,0 +1,74 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.HilbertAmplificationOrder + +/-! +# Faithfulness and algebra membership of amplified operators + +An explicit coordinate makes diagonal amplification injective. Applying +the original commutant diagonally proves that the extracted diagonal block +of an amplified-algebra operator belongs to the original generated algebra. +Thus extraction preserves the actual selected generator subalgebras. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (ι : Type*) + +omit [CompleteSpace H] in +theorem hilbertAmplification_injective (k : ι) : + Function.Injective (hilbertAmplification (H := H) ι) := by + classical + intro A B h + ext x + have he := congrArg (fun T => T (lp.single 2 k x) k) h + simpa only [hilbertAmplification_apply, lp.single_apply_self] using he + +theorem hilbertAmplification_mem_commutant (S : Set (H →L[ℂ] H)) + {X : H →L[ℂ] H} (hX : X ∈ commutantOf S) : + hilbertAmplification ι X ∈ commutantOf (hilbertAmplification ι '' S) := by + apply (StarSubalgebra.mem_centralizer_iff ℂ).mpr + rintro _ ⟨A, hA, rfl⟩ + obtain ⟨h, hs⟩ := (StarSubalgebra.mem_centralizer_iff ℂ).mp hX A hA + have hh := congrArg (fun T : H →L[ℂ] H => (hilbertAmplificationHom (H := H) ι) T) h + have hhs := congrArg (fun T : H →L[ℂ] H => (hilbertAmplificationHom (H := H) ι) T) hs + constructor + · change (hilbertAmplificationHom (H := H) ι) A * + (hilbertAmplificationHom (H := H) ι) X = + (hilbertAmplificationHom (H := H) ι) X * + (hilbertAmplificationHom (H := H) ι) A + simpa only [map_mul] using hh + · change star ((hilbertAmplificationHom (H := H) ι) A) * + (hilbertAmplificationHom (H := H) ι) X = + (hilbertAmplificationHom (H := H) ι) X * + star ((hilbertAmplificationHom (H := H) ι) A) + simpa only [map_mul, map_star] using hhs + +theorem hilbertAmplificationBlock_mem_generatedVNA (S : Set (H →L[ℂ] H)) (k : ι) + {B : lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2} + (hB : B ∈ generatedVNA (hilbertAmplification ι '' S)) : + hilbertAmplificationBlock ι B k k ∈ generatedVNA S := by + apply VonNeumannAlgebra.mem_commutant_iff.mpr + intro X hX + have h := VonNeumannAlgebra.mem_commutant_iff.mp hB _ + (hilbertAmplification_mem_commutant ι S hX) + rw [eq_hilbertAmplification_of_mem_generatedVNA ι S k hB] at h + apply hilbertAmplification_injective ι k + change (hilbertAmplificationHom (H := H) ι) (X * hilbertAmplificationBlock ι B k k) = + (hilbertAmplificationHom (H := H) ι) (hilbertAmplificationBlock ι B k k * X) + change (hilbertAmplificationHom (H := H) ι) X * + (hilbertAmplificationHom (H := H) ι) (hilbertAmplificationBlock ι B k k) = + (hilbertAmplificationHom (H := H) ι) (hilbertAmplificationBlock ι B k k) * + (hilbertAmplificationHom (H := H) ι) X at h + simpa only [map_mul] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/HilbertAmplificationOrder.lean b/LeanPool/VacuumBellSeparation/Bell/HilbertAmplificationOrder.lean new file mode 100644 index 0000000000..0b437af554 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/HilbertAmplificationOrder.lean @@ -0,0 +1,90 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.HilbertAmplificationCommutant +public import LeanPool.VacuumBellSeparation.Gaussian.Compression + +/-! +# Order and norm of the actual extracted amplified operator + +A single-coordinate embedding is a Hilbert isometry. The diagonal block +is precisely compression along that isometry, so positive contractions +extract to positive contractions. The anchor index is explicit. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap +open scoped InnerProductSpace ENNReal + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (ι : Type*) + +/-- Hilbert coordinate isometry. -/ +noncomputable def hilbertCoordinateIsometry (k : ι) : H →ₗᵢ[ℂ] lp (fun _ : ι => H) 2 := by + classical + letI : Fact ((1 : ℝ≥0∞) ≤ 2) := ⟨by norm_num⟩ + exact (lp.lsingle (𝕜 := ℂ) (E := fun _ : ι => H) 2 k).toLinearIsometry + (lp.isometry_single (E := fun _ : ι => H) (p := 2) k) + +theorem hilbertCoordinateIsometry_adjoint (k : ι) (v : lp (fun _ : ι => H) 2) : + (hilbertCoordinateIsometry (H := H) ι k).toContinuousLinearMap.adjoint v = v k := by + classical + apply ext_inner_left ℂ + intro x + rw [adjoint_inner_right] + exact lp.inner_single_left (𝕜 := ℂ) (G := fun _ : ι => H) k x v + +theorem hilbertAmplificationBlock_diagonal_eq_compression + (B : lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2) (k : ι) : + hilbertAmplificationBlock ι B k k = compression (hilbertCoordinateIsometry ι k) B := by + classical + ext x + rw [hilbertAmplificationBlock_apply] + change B (lp.single 2 k x) k = + (hilbertCoordinateIsometry ι k).toContinuousLinearMap.adjoint (B (lp.single 2 k x)) + rw [hilbertCoordinateIsometry_adjoint] + +theorem hilbertAmplificationBlock_nonneg + {B : lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2} (hB : 0 ≤ B) (k : ι) : + 0 ≤ hilbertAmplificationBlock ι B k k := by + rw [hilbertAmplificationBlock_diagonal_eq_compression] + exact compression_nonneg _ hB + +theorem hilbertAmplificationBlock_le_one + {B : lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2} (hB : B ≤ 1) (k : ι) : + hilbertAmplificationBlock ι B k k ≤ 1 := by + rw [hilbertAmplificationBlock_diagonal_eq_compression, ← compression_one + (hilbertCoordinateIsometry ι k)] + exact compression_mono _ hB + +omit [CompleteSpace H] in +theorem norm_hilbertAmplificationBlock_le + (B : lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2) (k : ι) : + ‖hilbertAmplificationBlock ι B k k‖ ≤ ‖B‖ := by + classical + apply opNorm_le_bound _ (norm_nonneg B) + intro x + rw [hilbertAmplificationBlock_apply] + exact (lp.norm_apply_le_norm (by norm_num : (2 : ℝ≥0∞) ≠ 0) _ k).trans + (by simpa only [lp.norm_single (by norm_num : (0 : ℝ≥0∞) < 2)] + using B.le_opNorm (lp.single 2 k x)) + +/-- Every actual amplified-algebra effect has a genuine oscillator effect +whose amplification is exactly the original operator. -/ +theorem exists_effect_of_mem_amplifiedVNA (S : Set (H →L[ℂ] H)) (k : ι) + {B : lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2} + (hB : B ∈ generatedVNA (hilbertAmplification ι '' S)) (hB₀ : 0 ≤ B) (hB₁ : B ≤ 1) : + ∃ A : H →L[ℂ] H, 0 ≤ A ∧ A ≤ 1 ∧ B = hilbertAmplification ι A := + ⟨hilbertAmplificationBlock ι B k k, hilbertAmplificationBlock_nonneg ι hB₀ k, + hilbertAmplificationBlock_le_one ι hB₁ k, + eq_hilbertAmplification_of_mem_generatedVNA ι S k hB⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/HilbertSumVectorDomination.lean b/LeanPool/VacuumBellSeparation/Bell/HilbertSumVectorDomination.lean new file mode 100644 index 0000000000..7060487697 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/HilbertSumVectorDomination.lean @@ -0,0 +1,155 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.FiniteVectorDomination +public import Mathlib.Analysis.InnerProductSpace.l2Space +public import Mathlib.Analysis.Normed.Lp.lpHolder + +/-! +Diagonal amplification on the actual Hilbert sum of copies of the original +Hilbert space. A positive functional represented by one matrix coefficient +in any representation is a sum of two genuine vector functionals in that +same representation. The proof uses bounded vector Radon--Nikodym on its +finite amplification, with no cyclicity or separability hypothesis. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open ContinuousLinearMap +open scoped BigOperators InnerProductSpace ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] +variable (ι : Type*) + +/-- Hilbert sum diagonal operator given by `lp.mapCLM 2 (fun _ => T) (norm_nonneg T) (fun _ => +le_rfl)`. -/ +def hilbertSumDiagonalOperator (T : H →L[ℂ] H) : + lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2 := + lp.mapCLM 2 (fun _ => T) (norm_nonneg T) (fun _ => le_rfl) + +omit [CompleteSpace H] in +@[simp] theorem hilbertSumDiagonalOperator_apply (T : H →L[ℂ] H) + (x : lp (fun _ : ι => H) 2) (i : ι) : + hilbertSumDiagonalOperator ι T x i = T (x i) := rfl + +/-- Hilbert sum diagonal star alg hom. -/ +def hilbertSumDiagonalStarAlgHom : (H →L[ℂ] H) →⋆ₐ[ℂ] + (lp (fun _ : ι => H) 2 →L[ℂ] lp (fun _ : ι => H) 2) where + toFun := hilbertSumDiagonalOperator ι + map_zero' := by + apply ContinuousLinearMap.ext + intro x + apply lp.ext + funext i + rfl + map_one' := by + apply ContinuousLinearMap.ext + intro x + apply lp.ext + funext i + rfl + map_add' T S := by + apply ContinuousLinearMap.ext + intro x + apply lp.ext + funext i + rfl + map_mul' T S := by + apply ContinuousLinearMap.ext + intro x + apply lp.ext + funext i + rfl + commutes' c := by + apply ContinuousLinearMap.ext + intro x + apply lp.ext + funext i + rfl + map_star' T := by + change hilbertSumDiagonalOperator ι (star T) = + (hilbertSumDiagonalOperator ι T).adjoint + apply (ContinuousLinearMap.eq_adjoint_iff _ _).mpr + intro x y + rw [lp.inner_eq_tsum, lp.inner_eq_tsum] + apply tsum_congr + intro i + simpa only [hilbertSumDiagonalOperator_apply, ContinuousLinearMap.star_eq_adjoint] using + T.adjoint_inner_left (y i) (x i) + +@[simp] theorem hilbertSumDiagonalStarAlgHom_apply (T : H →L[ℂ] H) + (x : lp (fun _ : ι => H) 2) (i : ι) : + hilbertSumDiagonalStarAlgHom (H := H) ι T x i = T (x i) := rfl + +variable {ι} + +omit [InnerProductSpace ℂ H] [CompleteSpace H] in +theorem hilbertSum_hasSum_norm_sq (x : lp (fun _ : ι => H) 2) : + HasSum (fun i => ‖x i‖ ^ 2) (‖x‖ ^ 2) := by + simpa [Real.rpow_two] using lp.hasSum_norm (p := 2) (by norm_num) x + +variable {A : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] + +/-- Representation vector positive linear map. -/ +def representationVectorPositiveLinearMap + (π : A →⋆ₐ[ℂ] (H →L[ℂ] H)) (x : H) : A →ₚ[ℂ] ℂ := + PositiveLinearMap.mk₀ + (((innerSL ℂ x).toLinearMap.comp + (ContinuousLinearMap.apply ℂ H x).toLinearMap).comp π.toLinearMap) + (fun _a ha => (nonneg_iff_isPositive.mp (map_nonneg π ha)).inner_nonneg_right x) + +@[simp] theorem representationVectorPositiveLinearMap_apply + (π : A →⋆ₐ[ℂ] (H →L[ℂ] H)) (x : H) (a : A) : + representationVectorPositiveLinearMap π x a = inner ℂ x (π a x) := rfl + +/-- Positivity turns an off-diagonal coefficient into a two-vector positive +representation. The reference functional is constructed, not assumed. -/ +theorem exists_two_vectors_of_positive_coefficient + (ψ : A →ₚ[ℂ] ℂ) (π : A →⋆ₐ[ℂ] (H →L[ℂ] H)) (x y : H) + (he : ∀ a : A, ψ a = inner ℂ x (π a y)) : + ∃ z : Fin 2 → H, ∀ a : A, + ψ a = ∑ j, inner ℂ (z j) (π a (z j)) := by + let χ := representationVectorPositiveLinearMap π x + + representationVectorPositiveLinearMap π y + have hχ (a : A) : χ a = inner ℂ x (π a x) + inner ℂ y (π a y) := rfl + have hdom (a : A) (ha : 0 ≤ a) : ψ a ≤ (1 : ℝ) • χ a := by + rw [one_smul] + have hP := nonneg_iff_isPositive.mp (map_nonneg π ha) + have hd := hP.re_inner_nonneg_right (x - y) + have hs : (inner ℂ y (π a x)).re = (inner ℂ x (π a y)).re := by + calc + _ = (inner ℂ (π a x) y).re := inner_re_symm (𝕜 := ℂ) _ _ + _ = _ := congrArg Complex.re (hP.isSymmetric x y) + simp only [map_sub, inner_sub_left, inner_sub_right, RCLike.re_eq_complex_re, + hs] at hd + have hn := (Complex.nonneg_iff.mp (χ.map_nonneg ha)).1 + have hiψ := (Complex.nonneg_iff.mp (ψ.map_nonneg ha)).2 + have hiχ := (Complex.nonneg_iff.mp (χ.map_nonneg ha)).2 + apply Complex.le_def.mpr + refine ⟨?_, hiψ.symm.trans hiχ⟩ + rw [he, hχ, Complex.add_re] + rw [hχ, Complex.add_re] at hn + linarith + let π₂ := (finiteDiagonalStarAlgHom (H := H) (Fin 2)).comp π + let Ω : PiLp 2 (fun _ : Fin 2 => H) := WithLp.toLp 2 ![x, y] + have hΩ (a : A) : χ a = inner ℂ Ω (π₂ a Ω) := by + rw [hχ, PiLp.inner_apply] + simp only [π₂, StarAlgHom.comp_apply, finiteDiagonalStarAlgHom_apply, + finiteDiagonalOperator_apply, Fin.sum_univ_two]; rfl + obtain ⟨z, _, hz⟩ := exists_dominated_vector_in_representation χ ψ π₂ Ω hΩ + 1 zero_le_one hdom + refine ⟨fun j => z j, ?_⟩ + intro a + calc + ψ a = inner ℂ z (π₂ a z) := (hz a).symm + _ = ∑ j, inner ℂ (z j) (π a (z j)) := PiLp.inner_apply z (π₂ a z) + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/KaplanskyContractions.lean b/LeanPool/VacuumBellSeparation/Bell/KaplanskyContractions.lean new file mode 100644 index 0000000000..54930abaa0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/KaplanskyContractions.lean @@ -0,0 +1,70 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.KaplanskyEffects +public import LeanPool.VacuumBellSeparation.Bell.Cells + +/-! # Actual selfadjoint contraction approximation through effects -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem two_smul_effect_sub_one_contraction {E : H →L[ℂ] H} (hE : 0 ≤ E) (hE1 : E ≤ 1) : + IsSelfAdjoint ((2 : ℝ) • E - 1) ∧ ‖(2 : ℝ) • E - 1‖ ≤ 1 := by + have he : cfc (fun x : ℝ => 2 * x - 1) E = (2 : ℝ) • E - 1 := by + rw [cfc_sub (fun x : ℝ => 2 * x) (fun _ : ℝ => 1) E + (continuous_const.mul continuous_id).continuousOn continuous_const.continuousOn, + cfc_const_mul_id 2 E hE.isSelfAdjoint, cfc_const_one ℝ E hE.isSelfAdjoint] + rw [← he] + refine ⟨cfc_predicate _ _, norm_cfc_le zero_le_one ?_⟩ + intro x hx + have hb := effect_spectrum_bounds hE hE1 hx + rw [Real.norm_eq_abs] + exact abs_le.mpr ⟨by linarith [hb.1], by linarith [hb.2]⟩ + +theorem half_one_add_contraction_effect {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) (hn : ‖A‖ ≤ 1) : + 0 ≤ (1 / 2 : ℝ) • (1 + A) ∧ (1 / 2 : ℝ) • (1 + A) ≤ 1 := by + have hp := ContinuousLinearMap.nonneg_iff_isPositive.mpr + (isPositive_one_add_of_saContraction hA hn) + have hm := ContinuousLinearMap.nonneg_iff_isPositive.mpr + (isPositive_one_sub_of_saContraction hA hn) + refine ⟨smul_nonneg (by norm_num) hp, sub_nonneg.mp ?_⟩ + have he : 1 - (1 / 2 : ℝ) • (1 + A) = (1 / 2 : ℝ) • (1 - A) := by module + rw [he] + exact smul_nonneg (by norm_num) hm + +theorem exists_saContraction_strong_approximation + (S : StarSubalgebra ℂ (H →L[ℂ] H)) + (hfc : ∀ (f : ℝ → ℝ) (A : H →L[ℂ] H), A ∈ S → cfc f A ∈ S) + {A : H →L[ℂ] H} (hA : A ∈ generatedVNA (S : Set (H →L[ℂ] H))) + (hsa : IsSelfAdjoint A) (hn : ‖A‖ ≤ 1) : + ∃ As : (Finset H × ℕ) → (H →L[ℂ] H), + (∀ i, As i ∈ S ∧ IsSelfAdjoint (As i) ∧ ‖As i‖ ≤ 1) ∧ + ∀ x : H, Tendsto (fun i => As i x) atTop (𝓝 (A x)) := by + let E := (1 / 2 : ℝ) • (1 + A) + have hE : E ∈ generatedVNA (S : Set (H →L[ℂ] H)) := + starSubalgebra_real_smul_mem (generatedVNA (S : Set (H →L[ℂ] H))).toStarSubalgebra + (add_mem (one_mem _) hA) _ + have hb := half_one_add_contraction_effect hsa hn + obtain ⟨Es, hEs, hlim⟩ := exists_effect_strong_approximation S hfc hE hb.1 hb.2 + refine ⟨fun i => (2 : ℝ) • Es i - 1, ?_, ?_⟩ + · intro i + exact ⟨S.sub_mem (starSubalgebra_real_smul_mem S (hEs i).1 2) S.one_mem, + two_smul_effect_sub_one_contraction (hEs i).2.1 (hEs i).2.2⟩ + · intro x + have he : (2 : ℝ) • E - 1 = A := by dsimp only [E]; module + have ht := ((hlim x).const_smul (2 : ℝ)).sub (tendsto_const_nhds (x := x)) + change Tendsto (fun i => ((2 : ℝ) • Es i - 1) x) atTop (𝓝 (((2 : ℝ) • E - 1) x)) at ht + simpa only [he] using ht + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/KaplanskyEffects.lean b/LeanPool/VacuumBellSeparation/Bell/KaplanskyEffects.lean new file mode 100644 index 0000000000..7a82846c9e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/KaplanskyEffects.lean @@ -0,0 +1,114 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.StrongApproximationNets +public import LeanPool.VacuumBellSeparation.Bell.EffectResolventParameter +public import LeanPool.VacuumBellSeparation.Bell.RationalResolventStrong + +/-! +# Bounded effect approximation from the double commutant + +For a unital star algebra stable under real continuous functional calculus, +every effect in its double commutant is a strong limit of actual effects in +the algebra. Directed unions of von Neumann algebras satisfy the stability +condition by the proved same-stage CFC lemma. No density or approximation +existence theorem is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem exists_scaled_effect_strong_approximation + (S : StarSubalgebra ℂ (H →L[ℂ] H)) + (hfc : ∀ (f : ℝ → ℝ) (A : H →L[ℂ] H), A ∈ S → cfc f A ∈ S) + {E : H →L[ℂ] H} (hE : E ∈ generatedVNA (S : Set (H →L[ℂ] H))) + (hE0 : 0 ≤ E) (hE1 : E ≤ 1) {r : ℝ} (hr : 0 ≤ r) (hr1 : r < 1) : + ∃ Es : (Finset H × ℕ) → (H →L[ℂ] H), + (∀ i, Es i ∈ S ∧ 0 ≤ Es i ∧ Es i ≤ 1) ∧ + ∀ x : H, Tendsto (fun i => Es i x) atTop (𝓝 ((r • E) x)) := by + let B := effectResolventParameter r E + have hB : B ∈ generatedVNA (S : Set (H →L[ℂ] H)) := effectResolventParameter_mem _ hE r + have hsa : IsSelfAdjoint B := effectResolventParameter_isSelfAdjoint r E + obtain ⟨As, hAs, hstrong⟩ := exists_selfAdjoint_strong_approximation S hB hsa + refine ⟨fun i => 1 - quadraticResolvent (As i), ?_, ?_⟩ + · intro i + exact ⟨S.sub_mem S.one_mem (hfc _ _ (hAs i).1), + one_sub_quadraticResolvent_effect (hAs i).2⟩ + · intro x + have ht := one_sub_quadraticResolvent_strong_tendsto (fun i => (hAs i).2) hsa hstrong x + simpa only [B, one_sub_quadraticResolvent_effectResolventParameter hE0 hE1 hr hr1] using ht + +/-- Tuples obtained by applying one positive contraction in the algebra to the given vectors. -/ +def effectTupleSet (S : StarSubalgebra ℂ (H →L[ℂ] H)) {ι : Type*} + (x : ι → H) : Set (PiLp 2 (fun _ : ι => H)) := + {y | ∃ E ∈ S, 0 ≤ E ∧ E ≤ 1 ∧ WithLp.toLp 2 (fun i => E (x i)) = y} + +/-- The limiting scalar factor is removed in the actual finite tuple norm. -/ +theorem effect_bicommutant_tuple_mem_closure + (S : StarSubalgebra ℂ (H →L[ℂ] H)) + (hfc : ∀ (f : ℝ → ℝ) (A : H →L[ℂ] H), A ∈ S → cfc f A ∈ S) + {E : H →L[ℂ] H} (hE : E ∈ generatedVNA (S : Set (H →L[ℂ] H))) + (hE0 : 0 ≤ E) (hE1 : E ≤ 1) {ι : Type*} [Finite ι] (x : ι → H) : + WithLp.toLp 2 (fun i => E (x i)) ∈ closure (effectTupleSet S x) := by + classical + let _ : Fintype ι := Fintype.ofFinite ι + have hscaled (r : ℝ) (hr : 0 ≤ r) (hr1 : r < 1) : + WithLp.toLp 2 (fun i => (r • E) (x i)) ∈ closure (effectTupleSet S x) := by + obtain ⟨Es, hEs, hstrong⟩ := exists_scaled_effect_strong_approximation S hfc hE hE0 hE1 hr hr1 + have ht : Tendsto (fun j => WithLp.toLp 2 (fun i => Es j (x i))) atTop + (𝓝 (WithLp.toLp 2 (fun i => (r • E) (x i)))) := + (PiLp.continuous_toLp 2 (fun _ : ι => H)).continuousAt.tendsto.comp + (tendsto_pi_nhds.mpr (fun i => hstrong (x i))) + exact mem_closure_of_tendsto ht (Eventually.of_forall (fun j => + ⟨Es j, (hEs j).1, (hEs j).2.1, (hEs j).2.2, rfl⟩)) + have hc : Continuous (fun r : ℝ => WithLp.toLp 2 (fun i => (r • E) (x i))) := by + fun_prop + have ht : Tendsto (fun r : ℝ => WithLp.toLp 2 (fun i => (r • E) (x i))) (𝓝[<] 1) + (𝓝 (WithLp.toLp 2 (fun i => E (x i)))) := by + simpa only [one_smul] using (hc.tendsto 1).mono_left nhdsWithin_le_nhds + apply isClosed_closure.mem_of_tendsto ht + have hp : ∀ᶠ r : ℝ in 𝓝[<] 1, 0 < r := + (eventually_gt_nhds (by norm_num : (0 : ℝ) < 1)).filter_mono nhdsWithin_le_nhds + filter_upwards [hp, self_mem_nhdsWithin] with r hr hr1 + exact hscaled r hr.le hr1 + +theorem effect_bicommutant_approximate_finite_family + (S : StarSubalgebra ℂ (H →L[ℂ] H)) + (hfc : ∀ (f : ℝ → ℝ) (A : H →L[ℂ] H), A ∈ S → cfc f A ∈ S) + {E : H →L[ℂ] H} (hE : E ∈ generatedVNA (S : Set (H →L[ℂ] H))) + (hE0 : 0 ≤ E) (hE1 : E ≤ 1) {ι : Type*} [Finite ι] (x : ι → H) + {ε : ℝ} (hε : 0 < ε) : + ∃ A ∈ S, 0 ≤ A ∧ A ≤ 1 ∧ ∀ i, ‖E (x i) - A (x i)‖ < ε := by + let _ : Fintype ι := Fintype.ofFinite ι + obtain ⟨y, ⟨A, hA, hA0, hA1, rfl⟩, hdist⟩ := Metric.mem_closure_iff.mp + (effect_bicommutant_tuple_mem_closure S hfc hE hE0 hE1 x) ε hε + exact ⟨A, hA, hA0, hA1, fun i => lt_of_le_of_lt (PiLp.norm_apply_le + (WithLp.toLp 2 (fun i => E (x i)) - WithLp.toLp 2 (fun i => A (x i))) i) + (by simpa only [dist_eq_norm] using hdist)⟩ + +theorem exists_effect_strong_approximation + (S : StarSubalgebra ℂ (H →L[ℂ] H)) + (hfc : ∀ (f : ℝ → ℝ) (A : H →L[ℂ] H), A ∈ S → cfc f A ∈ S) + {E : H →L[ℂ] H} (hE : E ∈ generatedVNA (S : Set (H →L[ℂ] H))) + (hE0 : 0 ≤ E) (hE1 : E ≤ 1) : + ∃ Es : (Finset H × ℕ) → (H →L[ℂ] H), + (∀ i, Es i ∈ S ∧ 0 ≤ Es i ∧ Es i ≤ 1) ∧ + ∀ x : H, Tendsto (fun i => Es i x) atTop (𝓝 (E x)) := by + classical + apply exists_strong_net_of_finite_approximation {A | A ∈ S ∧ 0 ≤ A ∧ A ≤ 1} E + intro s ε hε + obtain ⟨A, hA, hA0, hA1, hdist⟩ := effect_bicommutant_approximate_finite_family + S hfc hE hE0 hE1 (fun x : s => (x : H)) hε + exact ⟨A, ⟨hA, hA0, hA1⟩, fun x hx => hdist ⟨x, hx⟩⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/LocalState.lean b/LeanPool/VacuumBellSeparation/Bell/LocalState.lean new file mode 100644 index 0000000000..87a3bf5ff5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/LocalState.lean @@ -0,0 +1,111 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.LocalStateDefs +public import LeanPool.VacuumBellSeparation.Bell.StateExtension +public import LeanPool.VacuumBellSeparation.Bell.StateRestriction +public import LeanPool.VacuumBellSeparation.Bell.Theorem31 + +/-! +# The probability criterion for a state on the joint local algebra + +The Bell correlation and event constants here evaluate the given positive unital +functional directly on a closed star subalgebra containing both local algebras. +Theorem `probability_criterion_on_subalgebra` proves Theorem 3.1 in this intrinsic +state domain. Its proof constructs an ambient state extension and proves equality +of the quantities; existence of such an extension is not an extra hypothesis. +-/ + +@[expose] public section + +open scoped ENNReal ComplexOrder + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +variable (S : StarSubalgebra ℂ (H →L[ℂ] H)) (f : S →ₚ[ℂ] ℂ) + (𝔄 𝔅 : VonNeumannAlgebra H) + (h𝔄 : (𝔄 : Set (H →L[ℂ] H)) ⊆ S) (h𝔅 : (𝔅 : Set (H →L[ℂ] H)) ⊆ S) + (ω : State H) (hω : ∀ x : S, ω x = f x) + +include hω in +theorem localBellCorrelation_eq_extension : + localBellCorrelation S f 𝔄 𝔅 h𝔄 h𝔅 = bellCorrelation ω 𝔄 𝔅 := by + unfold localBellCorrelation bellCorrelation + apply congrArg sSup + ext z + constructor + · rintro ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, hz⟩ + refine ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, hz.trans ?_⟩ + rw [hω ⟨chshOp A₀ A₁ B₀ B₁, chshOp_mem_starSubalgebra S + (h𝔄 hA₀.1) (h𝔄 hA₁.1) (h𝔅 hB₀.1) (h𝔅 hB₁.1)⟩] + · rintro ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, hz⟩ + refine ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, hz.trans ?_⟩ + rw [hω ⟨chshOp A₀ A₁ B₀ B₁, chshOp_mem_starSubalgebra S + (h𝔄 hA₀.1) (h𝔄 hA₁.1) (h𝔅 hB₀.1) (h𝔅 hB₁.1)⟩] + +include hω in +theorem localEventConstPlus_eq_extension (r : ℝ) : + localEventConstPlus S f 𝔄 𝔅 h𝔄 h𝔅 r = eventConstPlus ω 𝔄 𝔅 r := by + unfold localEventConstPlus eventConstPlus + apply iSup_congr + intro E + apply iSup_congr + intro hE + apply iSup_congr + intro P + apply iSup_congr + intro hP + rw [hω ⟨E, h𝔄 hE.1⟩, hω ⟨P, h𝔅 hP.1⟩, + hω ⟨E * P, S.mul_mem (h𝔄 hE.1) (h𝔅 hP.1)⟩] + +include hω in +theorem localEventConstMinus_eq_extension (r : ℝ) : + localEventConstMinus S f 𝔄 𝔅 h𝔄 h𝔅 r = eventConstMinus ω 𝔄 𝔅 r := by + unfold localEventConstMinus eventConstMinus + apply iSup_congr + intro E + apply iSup_congr + intro hE + apply iSup_congr + intro P + apply iSup_congr + intro hP + rw [hω ⟨E, h𝔄 hE.1⟩, hω ⟨P, h𝔅 hP.1⟩, + hω ⟨E * P, S.mul_mem (h𝔄 hE.1) (h𝔅 hP.1)⟩] + +/-- **Theorem 3.1**, for a positive unital state on the joint local algebra, +with no ambient-state-extension hypothesis. -/ +theorem probability_criterion_on_subalgebra [IsClosed (S : Set (H →L[ℂ] H))] + (hf : f 1 = 1) (hcomm : Commuting 𝔄 𝔅) + {rp rm q : ℝ} (hrp : 2 < rp) (hrm : 1 < rm) (hrm2 : rm < 2) + (hη : 0 < expEta rp rm) + (hKp : localEventConstPlus S f 𝔄 𝔅 h𝔄 h𝔅 rp ≠ ⊤) + (hKm : localEventConstMinus S f 𝔄 𝔅 h𝔄 h𝔅 rm ≠ ⊤) + (hcl : ∀ (A : H →L[ℂ] H) (hA : A ∈ saContractions 𝔄), + ∀ (B : H →L[ℂ] H) (hB : B ∈ saContractions 𝔅), + ‖f ⟨A * B, S.mul_mem (h𝔄 hA.1) (h𝔅 hB.1)⟩ - + f ⟨A, h𝔄 hA.1⟩ * f ⟨B, h𝔅 hB.1⟩‖ ≤ q) + (hcut : q ^ expEta rp rm * (localEventConstPlus S f 𝔄 𝔅 h𝔄 h𝔅 rp).toReal ^ nuPlus rp rm + * (localEventConstMinus S f 𝔄 𝔅 h𝔄 h𝔅 rm).toReal ^ nuMinus rm + ≤ (2 : ℝ) ^ (-(2 / (expA rm * expB rp)))) : + localBellCorrelation S f 𝔄 𝔅 h𝔄 h𝔅 = 1 := by + obtain ⟨ω, hω⟩ := exists_state_extension S f hf + have hp := localEventConstPlus_eq_extension S f 𝔄 𝔅 h𝔄 h𝔅 ω hω rp + have hm := localEventConstMinus_eq_extension S f 𝔄 𝔅 h𝔄 h𝔅 ω hω rm + rw [localBellCorrelation_eq_extension S f 𝔄 𝔅 h𝔄 h𝔅 ω hω] + apply probability_criterion ω hcomm hrp hrm hrm2 hη + (by simpa only [← hp] using hKp) (by simpa only [← hm] using hKm) + · intro A hA B hB + rw [hω ⟨A * B, S.mul_mem (h𝔄 hA.1) (h𝔅 hB.1)⟩, + hω ⟨A, h𝔄 hA.1⟩, hω ⟨B, h𝔅 hB.1⟩] + exact hcl A hA B hB + · simpa only [← hp, ← hm] using hcut + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/LocalStateDefs.lean b/LeanPool/VacuumBellSeparation/Bell/LocalStateDefs.lean new file mode 100644 index 0000000000..7f021f0033 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/LocalStateDefs.lean @@ -0,0 +1,59 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.StateRestriction + +/-! +# Statement seed extracted from Bell/LocalState + +Literal declarations are unchanged; theorem conclusions remain in the implementation module. +-/ + +@[expose] public section + +open scoped ENNReal ComplexOrder + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Local bell correlation. -/ +noncomputable def localBellCorrelation (S : StarSubalgebra ℂ (H →L[ℂ] H)) + (f : S →ₚ[ℂ] ℂ) (𝔄 𝔅 : VonNeumannAlgebra H) + (h𝔄 : (𝔄 : Set (H →L[ℂ] H)) ⊆ S) (h𝔅 : (𝔅 : Set (H →L[ℂ] H)) ⊆ S) : ℝ := + sSup {x : ℝ | ∃ (A₀ : H →L[ℂ] H) (hA₀ : A₀ ∈ saContractions 𝔄), + ∃ (A₁ : H →L[ℂ] H) (hA₁ : A₁ ∈ saContractions 𝔄), + ∃ (B₀ : H →L[ℂ] H) (hB₀ : B₀ ∈ saContractions 𝔅), + ∃ (B₁ : H →L[ℂ] H) (hB₁ : B₁ ∈ saContractions 𝔅), + x = (1 / 2 : ℝ) * ‖f ⟨chshOp A₀ A₁ B₀ B₁, + chshOp_mem_starSubalgebra S (h𝔄 hA₀.1) (h𝔄 hA₁.1) (h𝔅 hB₀.1) (h𝔅 hB₁.1)⟩‖} + +/-- Forward likelihood-ratio constant for pairs of local projections. -/ +noncomputable def localEventConstPlus (S : StarSubalgebra ℂ (H →L[ℂ] H)) + (f : S →ₚ[ℂ] ℂ) (𝔄 𝔅 : VonNeumannAlgebra H) + (h𝔄 : (𝔄 : Set (H →L[ℂ] H)) ⊆ S) (h𝔅 : (𝔅 : Set (H →L[ℂ] H)) ⊆ S) + (r : ℝ) : ℝ≥0∞ := + ⨆ (E : H →L[ℂ] H) (hE : E ∈ projections 𝔄), + ⨆ (P : H →L[ℂ] H) (hP : P ∈ projections 𝔅), + ⨆ (_ : 0 < (f ⟨E, h𝔄 hE.1⟩).re * (f ⟨P, h𝔅 hP.1⟩).re), + ENNReal.ofReal ((f ⟨E * P, S.mul_mem (h𝔄 hE.1) (h𝔅 hP.1)⟩).re ^ r / + ((f ⟨E, h𝔄 hE.1⟩).re * (f ⟨P, h𝔅 hP.1⟩).re) ^ (r - 1)) + +/-- Reverse likelihood-ratio constant for pairs of local projections. -/ +noncomputable def localEventConstMinus (S : StarSubalgebra ℂ (H →L[ℂ] H)) + (f : S →ₚ[ℂ] ℂ) (𝔄 𝔅 : VonNeumannAlgebra H) + (h𝔄 : (𝔄 : Set (H →L[ℂ] H)) ⊆ S) (h𝔅 : (𝔅 : Set (H →L[ℂ] H)) ⊆ S) + (r : ℝ) : ℝ≥0∞ := + ⨆ (E : H →L[ℂ] H) (hE : E ∈ projections 𝔄), + ⨆ (P : H →L[ℂ] H) (hP : P ∈ projections 𝔅), + ⨆ (_ : 0 < (f ⟨E, h𝔄 hE.1⟩).re * (f ⟨P, h𝔅 hP.1⟩).re), + ENNReal.ofReal (((f ⟨E, h𝔄 hE.1⟩).re * (f ⟨P, h𝔅 hP.1⟩).re) ^ r) / + ENNReal.ofReal ((f ⟨E * P, S.mul_mem (h𝔄 hE.1) (h𝔅 hP.1)⟩).re ^ (r - 1)) + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/MaximalBellClosure.lean b/LeanPool/VacuumBellSeparation/Bell/MaximalBellClosure.lean new file mode 100644 index 0000000000..0c0c12d2f7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/MaximalBellClosure.lean @@ -0,0 +1,61 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationConvex + +/-! Norm closure of Bell-correlation level sets on the entire original +normal-state space. This is the subtype topology inherited from the full +continuous dual, not pointwise/weak-star closure or a vector-state image. -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite.HC00 + +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem isClosed_jointBellCorrelation_level_normal (A B : VonNeumannAlgebra H) (C : ℝ) : + IsClosed {φ : NormalStateSpace (jointAlgebra A B) | jointBellCorrelation A B φ.1 = C} := by + apply isClosed_eq + · exact (lipschitzWith_jointBellCorrelation A B).continuous.comp continuous_subtype_val + · exact continuous_const + +/-- For commuting A,B this is exactly the sharp maximal Bell level set. +Closedness itself uses continuity and needs no commutation assumption. -/ +def maximalBellNormalStates (A B : VonNeumannAlgebra H) : + Set (NormalStateSpace (jointAlgebra A B)) := + {φ | jointBellCorrelation A B φ.1 = Real.sqrt 2} + +theorem isClosed_maximalBellNormalStates (A B : VonNeumannAlgebra H) : + IsClosed (maximalBellNormalStates A B) := + isClosed_jointBellCorrelation_level_normal A B (Real.sqrt 2) + +theorem closure_maximalBellNormalStates (A B : VonNeumannAlgebra H) : + closure (maximalBellNormalStates A B) = maximalBellNormalStates A B := + (isClosed_maximalBellNormalStates A B).closure_eq + +theorem jointBellCorrelation_eq_of_mem_closure_normal (A B : VonNeumannAlgebra H) + {S : Set (NormalStateSpace (jointAlgebra A B))} {C : ℝ} + (hS : ∀ φ ∈ S, jointBellCorrelation A B φ.1 = C) + {φ : NormalStateSpace (jointAlgebra A B)} (hφ : φ ∈ closure S) : + jointBellCorrelation A B φ.1 = C := + (closure_minimal + (show S ⊆ {φ | jointBellCorrelation A B φ.1 = C} from fun _ hx => hS _ hx) + (isClosed_jointBellCorrelation_level_normal A B C)) hφ + +/-- A supplied dense maximal family suffices for all normal states. -/ +theorem all_normal_states_maximal_of_dense (A B : VonNeumannAlgebra H) + (S : Set (NormalStateSpace (jointAlgebra A B))) (hS : Dense S) + (hmax : ∀ φ ∈ S, jointBellCorrelation A B φ.1 = Real.sqrt 2) : + ∀ φ : NormalStateSpace (jointAlgebra A B), jointBellCorrelation A B φ.1 = Real.sqrt 2 := by + intro φ + exact jointBellCorrelation_eq_of_mem_closure_normal A B hmax (hS φ) + +end VacuumBellSeparation.Bipartite.HC00 diff --git a/LeanPool/VacuumBellSeparation/Bell/MonotoneThresholdIntegral.lean b/LeanPool/VacuumBellSeparation/Bell/MonotoneThresholdIntegral.lean new file mode 100644 index 0000000000..0adbab1978 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/MonotoneThresholdIntegral.lean @@ -0,0 +1,67 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.ClosedSpectralThreshold + +/-! Scalar Darboux bounds for the exact uniform spectral-threshold grid. -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ReflectionApprox + +theorem antitone_threshold_integral_bounds {f : ℝ → ℝ} (hf : Antitone f) + {N : ℕ} (hN : 0 < N) : + 0 ≤ (2 / (N : ℝ)) * (∑ k ∈ Finset.range N, f (threshold N k)) - + (∫ u in (-1 : ℝ)..1, f u) ∧ + (2 / (N : ℝ)) * (∑ k ∈ Finset.range N, f (threshold N k)) - + (∫ u in (-1 : ℝ)..1, f u) ≤ + (2 / (N : ℝ)) * (f (-1) - f 1) := by + have hlow (k : ℕ) : + (2 / (N : ℝ)) * f (threshold N (k + 1)) ≤ + ∫ u in threshold N k..threshold N (k + 1), f u := by + have h := intervalIntegral.integral_mono_on (μ := volume) + (f := fun _ : ℝ => f (threshold N (k + 1))) (g := f) (threshold_le_succ N k) + intervalIntegrable_const hf.intervalIntegrable + (fun u hu => hf hu.2) + simpa only [intervalIntegral.integral_const, smul_eq_mul, threshold_succ, + add_sub_cancel_left] using h + have hupp (k : ℕ) : + (∫ u in threshold N k..threshold N (k + 1), f u) ≤ + (2 / (N : ℝ)) * f (threshold N k) := by + have h := intervalIntegral.integral_mono_on (μ := volume) + (f := f) (g := fun _ : ℝ => f (threshold N k)) (threshold_le_succ N k) + hf.intervalIntegrable intervalIntegrable_const + (fun u hu => hf hu.1) + simpa only [intervalIntegral.integral_const, smul_eq_mul, threshold_succ, + add_sub_cancel_left] using h + have hsum : + (∑ k ∈ Finset.range N, ∫ u in threshold N k..threshold N (k + 1), f u) = + ∫ u in (-1 : ℝ)..1, f u := by + rw [intervalIntegral.sum_integral_adjacent_intervals + (fun _ _ => hf.intervalIntegrable), threshold_zero, threshold_self hN] + have hl := Finset.sum_le_sum (s := Finset.range N) (fun k _ => hlow k) + have hu := Finset.sum_le_sum (s := Finset.range N) (fun k _ => hupp k) + rw [← Finset.mul_sum, hsum] at hl + rw [← Finset.mul_sum, hsum] at hu + have htel (n : ℕ) : + (∑ k ∈ Finset.range n, (f (threshold N k) - f (threshold N (k + 1)))) = + f (threshold N 0) - f (threshold N n) := by + induction n with + | zero => simp + | succ n ih => + rw [Finset.sum_range_succ, ih] + ring + have he : (2 / (N : ℝ)) * (∑ k ∈ Finset.range N, f (threshold N k)) - + (2 / (N : ℝ)) * (∑ k ∈ Finset.range N, f (threshold N (k + 1))) = + (2 / (N : ℝ)) * (f (-1) - f 1) := by + rw [← mul_sub, ← Finset.sum_sub_distrib, htel N, threshold_zero, threshold_self hN] + constructor <;> linarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalDominatedCorner.lean b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalDominatedCorner.lean new file mode 100644 index 0000000000..0e0c491e5a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalDominatedCorner.lean @@ -0,0 +1,174 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.OrthogonalProjectionSupremum +public import LeanPool.VacuumBellSeparation.Bell.CornerProjectionFunctionalOrder +public import Mathlib.Order.Zorn +public import Mathlib.Data.Set.Pairwise.Basic + +/-! +The maximal orthogonal-family argument for a positive order-normal functional. +The prescribed ambient corner r may be any nonzero projection. Domination is +concluded on every positive observable supported in the constructed corner; +it is not an input hypothesis or a field of a representation structure. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter +open scoped Topology ComplexOrder InnerProductSpace BigOperators + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- A strict comparison on r produces a nonzero subcorner on which the +inequality is reversed for all positive observables. The vector is arbitrary; +normality is used only at the actual arbitrary orthogonal supremum. -/ +theorem exists_nonzero_dominated_subcorner_of_mass_lt (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) + (r : M.toStarSubalgebra) (hr : IsStarProjection r) (η : H) + (hmass : (φ r).re < (vectorPositiveLinearMap M η r).re) : + ∃ p : M.toStarSubalgebra, IsStarProjection p ∧ p ≠ 0 ∧ p ≤ r ∧ + ∀ a : M.toStarSubalgebra, 0 ≤ a → p * a = a → + (φ a).re ≤ (vectorPositiveLinearMap M η a).re := by + classical + let ψ := vectorPositiveLinearMap M η + let good : Set (Set M.toStarSubalgebra) := {s | + (∀ p ∈ s, IsStarProjection p ∧ p ≠ 0 ∧ p ≤ r ∧ (ψ p).re ≤ (φ p).re) ∧ + s.Pairwise (fun p q => p * q = 0)} + obtain ⟨s, hs⟩ : ∃ s, Maximal (· ∈ good) s := by + apply zorn_subset + intro c hc hchain + refine ⟨⋃₀ c, ⟨?_, ?_⟩, fun t ht => Set.subset_sUnion_of_mem ht⟩ + · rintro p ⟨t, ht, hpt⟩ + exact (hc ht).1 p hpt + · rintro p ⟨t, ht, hpt⟩ q ⟨u, hu, hqu⟩ hpq + by_cases htu : t = u + · subst u + exact (hc ht).2 hpt hqu hpq + · rcases hchain ht hu htu with htu | hut + · exact (hc hu).2 (htu hpt) hqu hpq + · exact (hc ht).2 hpt (hut hqu) hpq + let P : s → M.toStarSubalgebra := fun i => i.1 + have hp (i : s) : IsStarProjection (P i) := (hs.prop.1 i.1 i.2).1 + have ho : Pairwise (fun i j : s => P i * P j = 0) := by + intro i j hij + exact hs.prop.2 i.2 j.2 (fun h => hij (Subtype.ext h)) + obtain ⟨Q, hQ, hsup, hPQ, _⟩ := exists_orthogonal_projection_supremum M P hp ho + have hQr : Q ≤ r := by + apply hsup.2 + rintro _ ⟨F, rfl⟩ + apply (isStarProjection_finite_sum_vna M P hp ho F).le_iff_mul_eq_right hr |>.mpr + rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro i hi + exact (hp i).le_iff_mul_eq_right hr |>.mp (hs.prop.1 i.1 i.2).2.2.1 + have hcompare : (ψ Q).re ≤ (φ Q).re := + normalFunctional_comparison_orthogonal_supremum M φ ψ hn + (vectorFunctional_isNormal M η) P hp (fun i => (hs.prop.1 i.1 i.2).2.2.2) Q hsup + let p := r - Q + have hpstar : IsStarProjection p := (hQ.le_iff_sub hr).mp hQr + have hpr : p ≤ r := sub_le_self _ hQ.nonneg + have hpne : p ≠ 0 := by + intro hz + have hQrEq : Q = r := (sub_eq_zero.mp hz).symm + rw [hQrEq] at hcompare + exact (not_le_of_gt hmass) hcompare + have hpQ : p * Q = 0 := by + dsimp only [p] + rw [sub_mul, (hQ.le_iff_mul_eq_right hr).mp hQr, hQ.isIdempotentElem.eq, sub_self] + have htest (q : M.toStarSubalgebra) (hq : IsStarProjection q) (hqp : q ≤ p) : + (φ q).re ≤ (ψ q).re := by + by_cases hqzero : q = 0 + · simp only [hqzero, map_zero, Complex.zero_re, le_refl] + by_contra hbad + have hbad' : (ψ q).re ≤ (φ q).re := (lt_of_not_ge hbad).le + have hqQ : q * Q = 0 := by + calc + q * Q = (q * p) * Q := by rw [(hq.le_iff_mul_eq_left hpstar).mp hqp] + _ = q * (p * Q) := mul_assoc _ _ _ + _ = 0 := by rw [hpQ, mul_zero] + have hqs (b : M.toStarSubalgebra) (hb : b ∈ s) : q * b = 0 := by + have hbQ := (hs.prop.1 b hb).1.le_iff_mul_eq_right hQ |>.mp (hPQ ⟨b, hb⟩) + calc + q * b = q * (Q * b) := by rw [hbQ] + _ = (q * Q) * b := (mul_assoc _ _ _).symm + _ = 0 := by rw [hqQ, zero_mul] + have hinsert : insert q s ∈ good := by + constructor + · intro b hb + rcases hb with rfl | hb + · exact ⟨hq, hqzero, hqp.trans hpr, hbad'⟩ + · exact hs.prop.1 b hb + · apply hs.prop.2.insert + intro b hb hqb + refine ⟨hqs b hb, ?_⟩ + simpa only [star_mul, hq.isSelfAdjoint.star_eq, + (hs.prop.1 b hb).1.isSelfAdjoint.star_eq, star_zero] using congrArg star (hqs b hb) + have hqin : q ∈ s := hs.mem_of_prop_insert hinsert + have hqq : q * q = 0 := hqs q hqin + exact hqzero (hq.isIdempotentElem.eq.symm.trans hqq) + exact ⟨p, hpstar, hpne, hpr, fun a ha hpa => + positiveFunctional_re_le_on_corner_of_subprojections M p hpstar φ ψ htest a ha hpa⟩ + +/-- Every nonzero concrete projection has a vector in its range of arbitrarily +large norm. This does not assume the full Hilbert space is separable. -/ +theorem exists_large_vector_in_projection (M : VonNeumannAlgebra H) + (r : M.toStarSubalgebra) (hr : IsStarProjection r) (hne : r ≠ 0) (c : ℝ) : + ∃ η : H, (r : H →L[ℂ] H) η = η ∧ c < ‖η‖ := by + classical + have hx : ∃ x : H, (r : H →L[ℂ] H) x ≠ 0 := by + by_contra hh + push Not at hh + apply hne + apply Subtype.ext + apply ContinuousLinearMap.ext + exact hh + obtain ⟨x, hx⟩ := hx + let K : Submodule ℂ H := LinearMap.range (r : H →L[ℂ] H).toLinearMap + let z : K := ⟨(r : H →L[ℂ] H) x, ⟨x, rfl⟩⟩ + let : Nontrivial K := ⟨⟨z, 0, fun h => hx (congrArg Subtype.val h)⟩⟩ + obtain ⟨η, hη⟩ := NormedSpace.exists_lt_norm ℂ K c + refine ⟨η, ?_, hη⟩ + obtain ⟨y, hy⟩ := η.2 + rw [← hy] + exact congrArg (fun T : M.toStarSubalgebra => (T : H →L[ℂ] H) y) hr.isIdempotentElem.eq + +/-- The actual nonzero-corner conclusion needed at every step of a maximal +corner family. Neither a vector representation nor domination is assumed. -/ +theorem exists_nonzero_vector_dominated_subcorner (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) + (r : M.toStarSubalgebra) (hr : IsStarProjection r) (hne : r ≠ 0) : + ∃ (p : M.toStarSubalgebra) (η : H), IsStarProjection p ∧ p ≠ 0 ∧ p ≤ r ∧ + (r : H →L[ℂ] H) η = η ∧ + ∀ a : M.toStarSubalgebra, 0 ≤ a → p * a = a → + (φ a).re ≤ (vectorPositiveLinearMap M η a).re := by + obtain ⟨η, hrη, hη⟩ := exists_large_vector_in_projection M r hr hne + (Real.sqrt (φ r).re + 1) + have hpos : 0 ≤ (φ r).re := (Complex.le_def.mp (map_nonneg φ hr.nonneg)).1 + have hmass : (φ r).re < (vectorPositiveLinearMap M η r).re := by + change (φ r).re < (inner ℂ η ((r : H →L[ℂ] H) η)).re + have hi : (inner ℂ η η).re = ‖η‖ ^ 2 := + inner_self_eq_norm_sq (𝕜 := ℂ) η + rw [hrη, hi] + nlinarith [Real.sq_sqrt hpos, Real.sqrt_nonneg (φ r).re, norm_nonneg η] + obtain ⟨p, hp, hpne, hpr, hdom⟩ := + exists_nonzero_dominated_subcorner_of_mass_lt M φ hn r hr η hmass + exact ⟨p, η, hp, hpne, hpr, hrη, hdom⟩ + +/-- The zero Hilbert space has only the zero positive functional. No nonzero +corner conclusion is asserted at this boundary. -/ +theorem positiveFunctional_eq_zero_of_subsingleton [Subsingleton H] + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : φ = 0 := by + ext a + have ha : a = 0 := Subtype.ext (Subsingleton.elim _ _) + simp only [ha, map_zero] + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalDomination.lean b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalDomination.lean new file mode 100644 index 0000000000..2ea2f084c9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalDomination.lean @@ -0,0 +1,55 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GNSDominatedCommutant +public import LeanPool.VacuumBellSeparation.Bell.GNSNormalDirectedSuprema + +/-! +# Positive domination preserves full order normality + +The bounded Radon--Nikodym construction gives an actual vector in GNS(phi). +Normality of its pulled-back vector functional proves normality of psi. +Neither faithfulness nor unit normalization nor normality of psi is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem isNormalFunctional_of_positive_domination (M : VonNeumannAlgebra H) + (φ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) + (C : ℝ) (hC : 0 ≤ C) + (hdom : ∀ X : M.toStarSubalgebra, 0 ≤ X → ψ X ≤ C • φ X) : + IsNormalFunctional M ψ := by + have h := gns_vectorFunctional_isNormal M φ hn (dominatedGNSVector φ ψ C hC hdom) + simpa only [IsNormalFunctional, dominatedGNSVector_expectation] using h + +/-- The same result in the original continuous dual, with positivity proved +from the literal inequality on positive observables. -/ +theorem isNormalFunctional_of_dual_domination (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) + (f : StrongDual ℂ M.toStarSubalgebra) + (hf : ∀ X : M.toStarSubalgebra, 0 ≤ X → 0 ≤ f X) + (C : ℝ) (hC : 0 ≤ C) + (hdom : ∀ X : M.toStarSubalgebra, 0 ≤ X → f X ≤ C • φ X) : + IsNormalFunctional M f := by + let ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ := { + toLinearMap := f.toLinearMap + monotone' := by + intro X Y hXY + change f X ≤ f Y + have h := hf (Y - X) (sub_nonneg.mpr hXY) + simpa only [map_sub, sub_nonneg] using h } + exact isNormalFunctional_of_positive_domination M φ ψ hn C hC hdom + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalFiniteVectorApproximation.lean b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalFiniteVectorApproximation.lean new file mode 100644 index 0000000000..85efb85d6a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalFiniteVectorApproximation.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.FiniteCornerVectorCompression +public import LeanPool.VacuumBellSeparation.Bell.PositiveFunctionalCompressionApproximation +public import Mathlib.Algebra.BigOperators.Group.Finset.Basic +public import Mathlib.Topology.MetricSpace.Pseudo.Defs +public import Mathlib.Data.Fintype.EquivFin + +/-! +Every positive order-normal functional on the ORIGINAL concrete VNA is in +the full-dual norm closure of finite positive vector sums on original H. +No faithful reference, separability, vector-state field or normalization is +assumed. All finite-subset nets and the empty/zero-H case are retained. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter +open scoped Topology ComplexOrder InnerProductSpace BigOperators + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Normality of the actual functional, not a representation assumption, +makes complementary projection mass vanish along an arbitrary exhaustion. -/ +theorem normalFunctional_projection_lost_mass_tendsto_zero + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hn : IsNormalFunctional M φ) {ι : Type*} + [Preorder ι] [IsDirectedOrder ι] [Nonempty ι] + (q : ι → M.toStarSubalgebra) (hq : ∀ i, IsStarProjection (q i)) + (hmono : Monotone q) (hsup : IsLUB (Set.range q) 1) : + Tendsto (fun i => ‖φ (1 - q i)‖) atTop (𝓝 0) := by + have ht := normalFunctional_tendsto_monotone_net M φ hn q hmono + (fun i => (hq i).nonneg) 1 hsup + have he (i : ι) : ‖φ (1 - q i)‖ = (φ 1).re - (φ (q i)).re := by + have hr := congrArg Complex.re + (Complex.eq_coe_norm_of_nonneg (φ.map_nonneg (hq i).one_sub.nonneg)) + rw [map_sub, Complex.sub_re, Complex.ofReal_re] at hr + simpa only [map_sub] using hr.symm + have hc : Tendsto (fun _ : ι => (φ 1).re) atTop (𝓝 (φ 1).re) := tendsto_const_nhds + simpa only [he, sub_self] using hc.sub ht + +/-- Full functional-norm convergence of the unnormalized compressions. -/ +theorem normalFunctional_projection_compressions_tendsto + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hn : IsNormalFunctional M φ) {ι : Type*} + [Preorder ι] [IsDirectedOrder ι] [Nonempty ι] + (q : ι → M.toStarSubalgebra) (hq : ∀ i, IsStarProjection (q i)) + (hmono : Monotone q) (hsup : IsLUB (Set.range q) 1) : + Tendsto (fun i => compressionDual φ (q i)) atTop + (𝓝 (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap) := + positiveFunctional_compression_tendsto_of_lost_mass_zero φ q hq + (normalFunctional_projection_lost_mass_tendsto_zero M φ hn q hq hmono hsup) + +/-- Finite sums may always be indexed by Fin n, including n=0. -/ +theorem finiteVectorFunctional_reindex (M : VonNeumannAlgebra H) + {ι κ : Type*} [Fintype ι] [Fintype κ] (e : ι ≃ κ) (ξ : ι → H) : + finiteVectorFunctional M ξ = finiteVectorFunctional M (fun j => ξ (e.symm j)) := by + apply PositiveLinearMap.ext + intro a + simp only [finiteVectorFunctional_apply] + exact Fintype.sum_equiv e _ _ fun i => by rw [e.symm_apply_apply] + +/-- An actual finite positive vector sum approximates every positive normal +functional uniformly on the whole unit ball of the original algebra. -/ +theorem exists_finite_vectors_approx_normalFunctional + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hn : IsNormalFunctional M φ) {ε : ℝ} (hε : 0 < ε) : + ∃ (n : ℕ) (ξ : Fin n → H), + ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass (finiteVectorFunctional M ξ)).toContinuousLinearMap‖ + < ε := by + classical + obtain ⟨s, horth, hcorner, hsup, _⟩ := exists_orthogonal_vector_corner_cover M φ hn + let P : s → M.toStarSubalgebra := fun i => i.1 + let q : Finset s → M.toStarSubalgebra := fun F => ∑ i ∈ F, P i + have hp (i : s) : IsStarProjection (P i) := (hcorner i.1 i.2).1 + have ho : Pairwise (fun i j : s => P i * P j = 0) := by + intro i j hij + exact horth i.2 j.2 (fun he => hij (Subtype.ext he)) + have hq (F : Finset s) : IsStarProjection (q F) := + isStarProjection_finite_sum_vna M P hp ho F + have hm : Monotone q := fun F G hFG => + Finset.sum_le_sum_of_subset_of_nonneg hFG (fun i _ _ => (hp i).nonneg) + have ht := normalFunctional_projection_compressions_tendsto M φ hn q hq hm hsup + have hevent := (tendsto_iff_norm_sub_tendsto_zero.mp ht).eventually (gt_mem_nhds hε) + obtain ⟨F, hF⟩ := hevent.exists + have hrep : ∀ i : F, ∃ ξ : H, + ∀ a : M.toStarSubalgebra, vectorFunctional M ξ a = φ (P i.1 * a * P i.1) := by + intro i + obtain ⟨ξ, _, _, hξ⟩ := (hcorner i.1.1 i.1.2).2.2 + exact ⟨ξ, hξ⟩ + choose ξ hξ using hrep + obtain ⟨ζ, hζ⟩ := exists_finite_vector_sum_compression M φ + (fun i : F => P i.1) (fun i => hp i.1) ξ hξ + have hsum : (∑ i : F, P i.1) = q F := Finset.sum_coe_sort F P + rw [hsum] at hζ + let e : F ≃ Fin (Fintype.card F) := Fintype.equivFin F + refine ⟨Fintype.card F, fun i => ζ (e.symm i), ?_⟩ + rw [← finiteVectorFunctional_reindex M e ζ, ← hζ] + change ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap - compressionDual φ + (q F)‖ < ε + rw [norm_sub_rev] + exact hF + +/-- The closure is in the actual full continuous dual norm. Its generators +are literal finite positive sums of original-H vector functionals. -/ +theorem normalFunctional_mem_closure_finite_vector_sums + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hn : IsNormalFunctional M φ) : + (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap ∈ + closure {f : StrongDual ℂ M.toStarSubalgebra | + ∃ (n : ℕ) (ξ : Fin n → H), + f = (PositiveContinuousLinearMap.ofClass (finiteVectorFunctional M + ξ)).toContinuousLinearMap} := by + apply Metric.mem_closure_iff.mpr + intro ε hε + obtain ⟨n, ξ, hξ⟩ := exists_finite_vectors_approx_normalFunctional M φ hn hε + refine ⟨(PositiveContinuousLinearMap.ofClass (finiteVectorFunctional M ξ)).toContinuousLinearMap, + ⟨n, ξ, rfl⟩, ?_⟩ + simpa only [dist_eq_norm] using hξ + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalStarEquiv.lean b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalStarEquiv.lean new file mode 100644 index 0000000000..32a318e7d5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalStarEquiv.lean @@ -0,0 +1,156 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.StateExtension +public import LeanPool.VacuumBellSeparation.Bell.BipartiteNormalStateDefs +public import Mathlib.Analysis.CStarAlgebra.Hom +public import Mathlib.Analysis.CStarAlgebra.PositiveLinearMap + +/-! +Positive functionals and full directed-set order-normality transported by an +actual star-algebra equivalence between concrete VNAs. Normality of the +inverse is derived from order reflection and surjectivity, not assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder + +variable {H K : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K] + +theorem vnaStarEquiv_le_iff (M : VonNeumannAlgebra H) (N : VonNeumannAlgebra K) + (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra) {a b : M.toStarSubalgebra} : + e a ≤ e b ↔ a ≤ b := + NonUnitalStarAlgHom.map_le_map_iff + (A := M.toStarSubalgebra) (B := N.toStarSubalgebra) e.toNonUnitalStarAlgHom e.injective + +/-- No directedness or positivity restriction is needed for this order fact. -/ +theorem vnaStarEquiv_isLUB_image (M : VonNeumannAlgebra H) (N : VonNeumannAlgebra K) + (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra) + {s : Set M.toStarSubalgebra} {a : M.toStarSubalgebra} (ha : IsLUB s a) : + IsLUB (e '' s) (e a) := by + constructor + · rintro _ ⟨b, hb, rfl⟩ + exact (vnaStarEquiv_le_iff M N e).mpr (ha.1 hb) + · intro c hc + obtain ⟨b, rfl⟩ := e.surjective c + apply (vnaStarEquiv_le_iff M N e).mpr + apply ha.2 + intro x hx + exact (vnaStarEquiv_le_iff M N e).mp (hc ⟨x, hx, rfl⟩) + +theorem isNormalFunctional_pullback_starEquiv + (M : VonNeumannAlgebra H) (N : VonNeumannAlgebra K) + (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra) + (f : N.toStarSubalgebra → ℂ) (hf : IsNormalFunctional N f) : + IsNormalFunctional M (fun a => f (e a)) := by + intro s hs hdir hpos a ha + have hd : DirectedOn (· ≤ ·) (e '' s) := by + rintro _ ⟨b, hb, rfl⟩ _ ⟨c, hc, rfl⟩ + obtain ⟨d, hd, hbd, hcd⟩ := hdir b hb c hc + exact ⟨e d, ⟨d, hd, rfl⟩, + (vnaStarEquiv_le_iff M N e).mpr hbd, (vnaStarEquiv_le_iff M N e).mpr hcd⟩ + have hp : ∀ b ∈ e '' s, 0 ≤ b := by + rintro _ ⟨b, hb, rfl⟩ + simpa only [map_zero] using (vnaStarEquiv_le_iff M N e).mpr (hpos b hb) + have h := hf (e '' s) (hs.image e) hd hp (e a) (vnaStarEquiv_isLUB_image M N e ha) + simpa only [Set.image_image] using h + +theorem isNormalFunctional_pullback_starEquiv_iff + (M : VonNeumannAlgebra H) (N : VonNeumannAlgebra K) + (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra) (f : N.toStarSubalgebra → ℂ) : + IsNormalFunctional M (fun a => f (e a)) ↔ IsNormalFunctional N f := by + constructor + · intro h + have h' := isNormalFunctional_pullback_starEquiv N M e.symm (fun a => f (e a)) h + simpa only [StarAlgEquiv.apply_symm_apply] using h' + · exact isNormalFunctional_pullback_starEquiv M N e f + +/-- Pushforward along e is literal precomposition with its inverse. -/ +def positiveFunctionalPushforward + (M : VonNeumannAlgebra H) (N : VonNeumannAlgebra K) + (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : N.toStarSubalgebra →ₚ[ℂ] ℂ where + toLinearMap := φ.toLinearMap.comp e.symm.toAlgEquiv.toLinearEquiv.toLinearMap + monotone' := fun _ _ h => OrderHomClass.mono φ + ((vnaStarEquiv_le_iff N M e.symm).mpr h) + +@[simp] theorem positiveFunctionalPushforward_apply + (M : VonNeumannAlgebra H) (N : VonNeumannAlgebra K) + (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (b : N.toStarSubalgebra) : + positiveFunctionalPushforward M N e φ b = φ (e.symm b) := rfl + +theorem positiveFunctionalPushforward_one + (M : VonNeumannAlgebra H) (N : VonNeumannAlgebra K) + (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : + positiveFunctionalPushforward M N e φ 1 = φ 1 := by + simp only [positiveFunctionalPushforward_apply, map_one] + +@[simp] theorem positiveFunctionalPushforward_symm + (M : VonNeumannAlgebra H) (N : VonNeumannAlgebra K) + (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : + positiveFunctionalPushforward N M e.symm (positiveFunctionalPushforward M N e φ) = φ := by + apply PositiveLinearMap.ext + intro a + simp only [positiveFunctionalPushforward_apply, StarAlgEquiv.symm_symm, + StarAlgEquiv.symm_apply_apply] + +theorem positiveFunctionalPushforward_normal_iff + (M : VonNeumannAlgebra H) (N : VonNeumannAlgebra K) + (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : + IsNormalFunctional N (positiveFunctionalPushforward M N e φ) ↔ IsNormalFunctional M φ := + isNormalFunctional_pullback_starEquiv_iff N M e.symm φ + +/-- The genuine full-dual norm is preserved, including differences of positives. +This uses both isometry and surjectivity, not just a bound on positive inputs. -/ +theorem positiveFunctionalPushforward_difference_norm + (M : VonNeumannAlgebra H) (N : VonNeumannAlgebra K) + (e : M.toStarSubalgebra ≃⋆ₐ[ℂ] N.toStarSubalgebra) + (φ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : + ‖(PositiveContinuousLinearMap.ofClass (positiveFunctionalPushforward M N e + φ)).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass (positiveFunctionalPushforward M N e + ψ)).toContinuousLinearMap‖ = + ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap‖ := by + let f := (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap + let g := (PositiveContinuousLinearMap.ofClass (positiveFunctionalPushforward M N e + φ)).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass (positiveFunctionalPushforward M N e + ψ)).toContinuousLinearMap + have hg (b : N.toStarSubalgebra) : g b = f (e.symm b) := rfl + have hn (a : M.toStarSubalgebra) : ‖e a‖ = ‖a‖ := + NonUnitalStarAlgHom.norm_map + (A := M.toStarSubalgebra) (B := N.toStarSubalgebra) e.toNonUnitalStarAlgHom e.injective a + have hninv (b : N.toStarSubalgebra) : ‖e.symm b‖ = ‖b‖ := + NonUnitalStarAlgHom.norm_map + (A := N.toStarSubalgebra) (B := M.toStarSubalgebra) + e.symm.toNonUnitalStarAlgHom e.symm.injective b + change ‖g‖ = ‖f‖ + apply le_antisymm + · apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg f) + intro b + rw [hg] + simpa only [hninv] using f.le_opNorm (e.symm b) + · apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg g) + intro a + have h := g.le_opNorm (e a) + simpa only [hg, StarAlgEquiv.symm_apply_apply, + hn] using h + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalVectorCorner.lean b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalVectorCorner.lean new file mode 100644 index 0000000000..4909537b73 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalVectorCorner.lean @@ -0,0 +1,94 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalDominatedCorner +public import LeanPool.VacuumBellSeparation.Bell.GNSIsometricRealization +public import LeanPool.VacuumBellSeparation.Bell.PositiveStateCompression + +/-! +Every nonzero corner contains a nonzero subcorner on which an arbitrary +positive order-normal functional is represented by an original-H vector. +The stronger conclusion represents the p-compression on every original +algebra element. No normal representation theorem is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Corner domination is transported to actual compression on the full +algebra, so the bounded vector-RN theorem applies without a new corner carrier. -/ +theorem exists_vector_of_supported_corner_domination (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (p : M.toStarSubalgebra) + (hp : IsStarProjection p) (η : H) + (hd : ∀ a : M.toStarSubalgebra, 0 ≤ a → p * a = a → + (φ a).re ≤ (vectorPositiveLinearMap M η a).re) : + ∃ ξ : H, (p : H →L[ℂ] H) ξ = ξ ∧ ‖ξ‖ = Real.sqrt (φ p).re ∧ + ∀ a : M.toStarSubalgebra, + vectorFunctional M ξ a = φ (p * a * p) := by + let ψ := compressionFunctional φ p + let Ω := (p : H →L[ℂ] H) η + let χ := vectorPositiveLinearMap M Ω + have hdom (a : M.toStarSubalgebra) (ha : 0 ≤ a) : ψ a ≤ (1 : ℝ) • χ a := by + have hq : 0 ≤ star p * a * p := star_left_conjugate_nonneg ha p + have hpq : p * (star p * a * p) = star p * a * p := by + rw [hp.isSelfAdjoint.star_eq] + simp only [← mul_assoc, hp.isIdempotentElem.eq] + have he : vectorPositiveLinearMap M η (star p * a * p) = χ a := by + change inner ℂ η (((p : H →L[ℂ] H).adjoint * (a : H →L[ℂ] H) * + (p : H →L[ℂ] H)) η) = inner ℂ Ω ((a : H →L[ℂ] H) Ω) + rw [mul_apply_eq_comp, mul_apply_eq_comp, ContinuousLinearMap.adjoint_inner_right] + rw [one_smul] + apply Complex.le_def.mpr + refine ⟨?_, ?_⟩ + · simpa only [ψ, compressionFunctional_apply, he] using hd _ hq hpq + · exact ((Complex.nonneg_iff.mp (ψ.map_nonneg ha)).2).symm.trans + (Complex.nonneg_iff.mp (χ.map_nonneg ha)).2 + obtain ⟨ξ, hn, hv⟩ := exists_dominated_vector_in_representation χ ψ + M.toStarSubalgebra.subtype Ω (fun _ => rfl) 1 (by norm_num) hdom + have hrepr (a : M.toStarSubalgebra) : vectorFunctional M ξ a = φ (p * a * p) := by + change inner ℂ ξ ((a : H →L[ℂ] H) ξ) = φ (p * a * p) + simpa only [StarSubalgebra.subtype_apply, ψ, compressionFunctional_apply, + hp.isSelfAdjoint.star_eq] using hv a + have hezero : vectorFunctional M ξ (1 - p) = 0 := by + rw [hrepr, hp.mul_one_sub_self, zero_mul, map_zero] + have heproj : IsStarProjection ((1 - p : M.toStarSubalgebra) : H →L[ℂ] H) := + hp.one_sub.map M.toStarSubalgebra.subtype + have heξ : ((1 - p : M.toStarSubalgebra) : H →L[ℂ] H) ξ = 0 := by + apply norm_eq_zero.mp + have hh := re_inner_projection_apply _ heproj ξ + rw [inner_re_symm (𝕜 := ℂ)] at hh + change (vectorFunctional M ξ (1 - p)).re = ‖_‖ ^ 2 at hh + rw [hezero, Complex.zero_re] at hh + nlinarith [norm_nonneg (((1 - p : M.toStarSubalgebra) : H →L[ℂ] H) ξ)] + have hpξ : (p : H →L[ℂ] H) ξ = ξ := by + change ξ - (p : H →L[ℂ] H) ξ = 0 at heξ + exact (sub_eq_zero.mp heξ).symm + refine ⟨ξ, hpξ, ?_, hrepr⟩ + simpa only [ψ, compressionFunctional_apply, mul_one, + hp.isSelfAdjoint.star_eq, hp.isIdempotentElem.eq] using hn + +/-- Actual original-H vector realization on a nonzero subprojection of every +prescribed nonzero projection, for arbitrary positive order-normal phi. -/ +theorem exists_nonzero_vector_realized_subcorner (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) + (r : M.toStarSubalgebra) (hr : IsStarProjection r) (hne : r ≠ 0) : + ∃ (p : M.toStarSubalgebra) (ξ : H), IsStarProjection p ∧ p ≠ 0 ∧ p ≤ r ∧ + (p : H →L[ℂ] H) ξ = ξ ∧ ‖ξ‖ = Real.sqrt (φ p).re ∧ + ∀ a : M.toStarSubalgebra, vectorFunctional M ξ a = φ (p * a * p) := by + obtain ⟨p, η, hp, hpne, hpr, _, hd⟩ := + exists_nonzero_vector_dominated_subcorner M φ hn r hr hne + obtain ⟨ξ, hpξ, hnξ, hv⟩ := exists_vector_of_supported_corner_domination M φ p hp η hd + exact ⟨p, ξ, hp, hpne, hpr, hpξ, hnξ, hv⟩ + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalVectorCornerCover.lean b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalVectorCornerCover.lean new file mode 100644 index 0000000000..a416451292 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalFunctionalVectorCornerCover.lean @@ -0,0 +1,103 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalVectorCorner + +/-! +A maximal family of original, mutually orthogonal, vector-realized corners +covers the identity. This includes H=0, where the family may be empty and +the identity is zero. No countability or normal-state representation premise +is added. Cross terms of finite compressions are not discarded. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter +open scoped Topology ComplexOrder InnerProductSpace BigOperators + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The nonzero-corner theorem, applied in the remaining complement, forces +the maximal orthogonal family to have actual strong sum equal to one. -/ +theorem exists_orthogonal_vector_corner_cover (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) : + ∃ s : Set M.toStarSubalgebra, + s.Pairwise (fun p q => p * q = 0) ∧ + (∀ p ∈ s, IsStarProjection p ∧ p ≠ 0 ∧ + ∃ ξ : H, (p : H →L[ℂ] H) ξ = ξ ∧ ‖ξ‖ = Real.sqrt (φ p).re ∧ + ∀ a : M.toStarSubalgebra, vectorFunctional M ξ a = φ (p * a * p)) ∧ + IsLUB (Set.range (fun F : Finset s => ∑ i ∈ F, i.1)) 1 ∧ + ∀ x : H, Tendsto (fun F : Finset s => + ((∑ i ∈ F, i.1 : M.toStarSubalgebra) : H →L[ℂ] H) x) atTop (𝓝 x) := by + classical + let good : Set (Set M.toStarSubalgebra) := {s | + (∀ p ∈ s, IsStarProjection p ∧ p ≠ 0 ∧ + ∃ ξ : H, (p : H →L[ℂ] H) ξ = ξ ∧ ‖ξ‖ = Real.sqrt (φ p).re ∧ + ∀ a : M.toStarSubalgebra, vectorFunctional M ξ a = φ (p * a * p)) ∧ + s.Pairwise (fun p q => p * q = 0)} + obtain ⟨s, hs⟩ : ∃ s, Maximal (· ∈ good) s := by + apply zorn_subset + intro c hc hchain + refine ⟨⋃₀ c, ⟨?_, ?_⟩, fun t ht => Set.subset_sUnion_of_mem ht⟩ + · rintro p ⟨t, ht, hpt⟩ + exact (hc ht).1 p hpt + · rintro p ⟨t, ht, hpt⟩ q ⟨u, hu, hqu⟩ hpq + by_cases htu : t = u + · subst u + exact (hc ht).2 hpt hqu hpq + · rcases hchain ht hu htu with htu | hut + · exact (hc hu).2 (htu hpt) hqu hpq + · exact (hc ht).2 hpt (hut hqu) hpq + let P : s → M.toStarSubalgebra := fun i => i.1 + have hp (i : s) : IsStarProjection (P i) := (hs.prop.1 i.1 i.2).1 + have ho : Pairwise (fun i j : s => P i * P j = 0) := by + intro i j hij + exact hs.prop.2 i.2 j.2 (fun h => hij (Subtype.ext h)) + obtain ⟨Q, hQ, hsup, hPQ, hstrong⟩ := exists_orthogonal_projection_supremum M P hp ho + have hQone : Q = 1 := by + by_contra hQne + have he : 1 - Q ≠ 0 := fun h => hQne (sub_eq_zero.mp h).symm + obtain ⟨p, ξ, hps, hpne, hple, hpξ, hnξ, hrepr⟩ := + exists_nonzero_vector_realized_subcorner M φ hn (1 - Q) hQ.one_sub he + have hpQ : p * Q = 0 := by + calc + p * Q = (p * (1 - Q)) * Q := by + rw [(hps.le_iff_mul_eq_left hQ.one_sub).mp hple] + _ = p * ((1 - Q) * Q) := mul_assoc _ _ _ + _ = 0 := by rw [hQ.one_sub_mul_self, mul_zero] + have hpset (q : M.toStarSubalgebra) (hq : q ∈ s) : p * q = 0 := by + have hqQ := (hs.prop.1 q hq).1.le_iff_mul_eq_right hQ |>.mp (hPQ ⟨q, hq⟩) + calc + p * q = p * (Q * q) := by rw [hqQ] + _ = (p * Q) * q := (mul_assoc _ _ _).symm + _ = 0 := by rw [hpQ, zero_mul] + have hinsert : insert p s ∈ good := by + constructor + · intro q hq + rcases hq with rfl | hq + · exact ⟨hps, hpne, ξ, hpξ, hnξ, hrepr⟩ + · exact hs.prop.1 q hq + · apply hs.prop.2.insert + intro q hq hpq + refine ⟨hpset q hq, ?_⟩ + simpa only [star_mul, hps.isSelfAdjoint.star_eq, + (hs.prop.1 q hq).1.isSelfAdjoint.star_eq, star_zero] using congrArg star (hpset q hq) + have hpin : p ∈ s := hs.mem_of_prop_insert hinsert + exact hpne (hps.isIdempotentElem.eq.symm.trans (hpset p hpin)) + refine ⟨s, hs.prop.2, hs.prop.1, ?_, ?_⟩ + · simpa only [P, hQone] using hsup + · intro x + have hx : (Q : H →L[ℂ] H) x = x := by + rw [hQone] + rfl + simpa only [P, hx] using hstrong x + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalGNSBoundedWOT.lean b/LeanPool/VacuumBellSeparation/Bell/NormalGNSBoundedWOT.lean new file mode 100644 index 0000000000..218818a5c7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalGNSBoundedWOT.lean @@ -0,0 +1,97 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalFiniteVectorApproximation +public import LeanPool.VacuumBellSeparation.Bell.BoundedWOTFunctionalContinuity +public import LeanPool.VacuumBellSeparation.Bell.GNSNormalDirectedSuprema +public import Mathlib.Analysis.InnerProductSpace.LinearMap +public import Mathlib.Analysis.InnerProductSpace.WeakOperatorTopology +public import Mathlib.Topology.Algebra.GroupWithZero + +/-! +Order-normal positive functionals are continuous on the original bounded +WOT balls by ACTUAL finite-vector norm approximation. This applies to all +GNS diagonal coefficients. Polarization gives every matrix coefficient, +without assuming that the GNS representation image is already a VNA. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped Topology ComplexOrder InnerProductSpace ComplexConjugate + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- No global-WOT continuity is asserted: the domain is the actual bounded ball. -/ +theorem continuous_vnaWOTBall_eval_of_positive_normal + (M : VonNeumannAlgebra H) (R : ℝ) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) : + Continuous (fun T : vnaWOTBall M R => φ (vnaWOTBallElement T)) := by + apply continuous_vnaWOTBall_eval_of_norm_approximation M R + (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap + intro ε hε + obtain ⟨n, ξ, hξ⟩ := exists_finite_vectors_approx_normalFunctional M φ hn hε + refine ⟨(PositiveContinuousLinearMap.ofClass (finiteVectorFunctional M ξ)).toContinuousLinearMap, + continuous_vnaWOTBall_eval_of_finite_coefficients M R _ ?_, hξ⟩ + refine ⟨n, ξ, ξ, fun _ => 1, ?_⟩ + intro a + change finiteVectorFunctional M ξ a = ∑ i, (1 : ℂ) * ⟪ξ i, (a : H →L[ℂ] H) (ξ i)⟫_ℂ + simpa only [one_mul] using finiteVectorFunctional_apply M ξ a + +/-- Actual completed-GNS diagonal coefficients, pulled back to original M. -/ +theorem continuous_gns_diagonal_on_vnaWOTBall + (M : VonNeumannAlgebra H) (R : ℝ) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) (x : φ.GNS) : + Continuous (fun T : vnaWOTBall M R => + inner ℂ x (φ.gnsStarAlgHom (vnaWOTBallElement T) x)) := + continuous_vnaWOTBall_eval_of_positive_normal M R (gnsVectorPositiveLinearMap M φ x) + (gns_vectorFunctional_isNormal M φ hn x) + +/-- Continuity of the diagonal coefficients of a family of bounded operators +implies continuity of every matrix coefficient. -/ +theorem continuous_inner_apply_of_diagonal {E X : Type*} [NormedAddCommGroup E] + [InnerProductSpace ℂ E] [TopologicalSpace X] (A : X → E →L[ℂ] E) + (h : ∀ z : E, Continuous (fun t => inner ℂ z (A t z))) (x y : E) : + Continuous (fun t => inner ℂ x (A t y)) := by + let q (z : E) (t : X) : ℂ := inner ℂ (A t z) z + have hq (z : E) : Continuous (q z) := + (Complex.continuous_conj.comp (h z)).congr (fun t => inner_conj_symm (A t z) z) + have hpoly := (((hq (x + y)).sub (hq (x - y))).add + ((hq (x + Complex.I • y)).const_mul Complex.I)).sub + ((hq (x - Complex.I • y)).const_mul Complex.I) + refine (Complex.continuous_conj.comp (hpoly.div_const 4)).congr fun t => ?_ + calc + _ = conj (inner ℂ (A t y) x) := + congrArg conj (inner_map_polarization (A t).toLinearMap x y).symm + _ = inner ℂ x (A t y) := inner_conj_symm x (A t y) + +/-- Complex polarization uses the actual linear operator; self-adjointness +of the observable is not assumed. Both vector arguments range over all GNS. -/ +theorem continuous_gns_coefficient_on_vnaWOTBall + (M : VonNeumannAlgebra H) (R : ℝ) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) (x y : φ.GNS) : + Continuous (fun T : vnaWOTBall M R => + inner ℂ x (φ.gnsStarAlgHom (vnaWOTBallElement T) y)) := + continuous_inner_apply_of_diagonal + (fun T : vnaWOTBall M R => φ.gnsStarAlgHom (vnaWOTBallElement T)) + (continuous_gns_diagonal_on_vnaWOTBall M R φ hn) x y + +/-- The actual representation is WOT-continuous on each bounded original ball. +No faithfulness or unit normalization is needed for this continuity assertion. -/ +theorem continuous_gns_on_vnaWOTBall + (M : VonNeumannAlgebra H) (R : ℝ) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) : + Continuous (fun T : vnaWOTBall M R => + ContinuousLinearMapWOT.ofCLM (φ.gnsStarAlgHom (vnaWOTBallElement T))) := by + apply ContinuousLinearMapWOT.continuous_iff.mpr + intro x y + exact continuous_gns_coefficient_on_vnaWOTBall M R φ hn y x + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalPositiveConeClosure.lean b/LeanPool/VacuumBellSeparation/Bell/NormalPositiveConeClosure.lean new file mode 100644 index 0000000000..892a9ef586 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalPositiveConeClosure.lean @@ -0,0 +1,100 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalDomination +public import Mathlib.Analysis.Normed.Operator.BoundedLinearMaps + +/-! +# The positive order-normal cone is closed in the full dual norm + +For a bounded positive directed set with supremum X, every member has norm +at most norm X. A single operator-norm approximation therefore controls all +its functional values at once. This retains arbitrary directed suprema, +and does not replace the dual norm by a pointwise or weak-star topology. +No converse density of dominated functionals is asserted. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem isNormalFunctional_of_norm_approximation (M : VonNeumannAlgebra H) + (f : StrongDual ℂ M.toStarSubalgebra) + (hf : ∀ X : M.toStarSubalgebra, 0 ≤ X → 0 ≤ f X) + (happrox : ∀ ε : ℝ, 0 < ε → ∃ g : StrongDual ℂ M.toStarSubalgebra, + IsNormalFunctional M g ∧ ‖g - f‖ < ε) : + IsNormalFunctional M f := by + intro s hs hd hp X hX + constructor + · rintro _ ⟨Y, hY, rfl⟩ + have h := (Complex.le_def.mp (hf (X - Y) (sub_nonneg.mpr (hX.1 hY)))).1 + simpa only [map_sub, Complex.sub_re, Complex.zero_re, sub_nonneg] using h + · intro r hr + by_contra hnot + have hgap : 0 < (f X).re - r := sub_pos.mpr (lt_of_not_ge hnot) + obtain ⟨δ, hδ, hδgap⟩ := exists_pos_mul_lt hgap (2 * ‖X‖) + obtain ⟨g, hgn, hgf⟩ := happrox δ hδ + have herr (Y : M.toStarSubalgebra) : |(g Y - f Y).re| ≤ δ * ‖Y‖ := by + calc + |(g Y - f Y).re| ≤ ‖g Y - f Y‖ := Complex.abs_re_le_norm _ + _ ≤ ‖g - f‖ * ‖Y‖ := (g - f).le_opNorm Y + _ ≤ δ * ‖Y‖ := mul_le_mul_of_nonneg_right hgf.le (norm_nonneg Y) + have hupper : (g X).re ≤ r + δ * ‖X‖ := by + apply (hgn s hs hd hp X hX).2 + rintro _ ⟨Y, hY, rfl⟩ + have he := (abs_le.mp (herr Y)).2 + have hn : ‖Y‖ ≤ ‖X‖ := + CStarAlgebra.norm_le_norm_of_le_of_nonneg (hX.1 hY) (hp Y hY) + have hmul := mul_le_mul_of_nonneg_left hn hδ.le + have hb := hr ⟨Y, hY, rfl⟩ + simp only [Complex.sub_re] at he + linarith + have he := (abs_le.mp (herr X)).1 + simp only [Complex.sub_re] at he + nlinarith + +/-- Literal positivity and order-normality form a norm-closed subset of the +original full continuous dual, including the zero functional. -/ +theorem isClosed_positive_normal_cone (M : VonNeumannAlgebra H) : + IsClosed {f : StrongDual ℂ M.toStarSubalgebra | + (∀ X : M.toStarSubalgebra, 0 ≤ X → 0 ≤ f X) ∧ IsNormalFunctional M f} := by + apply isClosed_of_closure_subset + intro f hf + have hpos : ∀ X : M.toStarSubalgebra, 0 ≤ X → 0 ≤ f X := by + intro X hX + have hc : IsClosed {g : StrongDual ℂ M.toStarSubalgebra | 0 ≤ g X} := + isClosed_le continuous_const (continuous_id.clm_apply continuous_const) + have hsub : {g : StrongDual ℂ M.toStarSubalgebra | + (∀ Y : M.toStarSubalgebra, 0 ≤ Y → 0 ≤ g Y) ∧ IsNormalFunctional M g} ⊆ + {g | 0 ≤ g X} := fun g hg => hg.1 X hX + exact closure_minimal hsub hc hf + refine ⟨hpos, isNormalFunctional_of_norm_approximation M f hpos ?_⟩ + intro ε hε + obtain ⟨g, hg, hfg⟩ := Metric.mem_closure_iff.mp hf ε hε + refine ⟨g, hg.2, ?_⟩ + simpa only [dist_eq_norm, norm_sub_rev] using hfg + +/-- This is only the sound inclusion into the normal positive cone. +Approximating every normal positive functional by dominated ones is separate. -/ +theorem closure_dominated_positive_subset_normal (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) : + closure {f : StrongDual ℂ M.toStarSubalgebra | + (∀ X : M.toStarSubalgebra, 0 ≤ X → 0 ≤ f X) ∧ + ∃ C : ℝ, 0 ≤ C ∧ ∀ X : M.toStarSubalgebra, 0 ≤ X → f X ≤ C • φ X} ⊆ + {f : StrongDual ℂ M.toStarSubalgebra | + (∀ X : M.toStarSubalgebra, 0 ≤ X → 0 ≤ f X) ∧ IsNormalFunctional M f} := by + apply closure_minimal ?_ (isClosed_positive_normal_cone M) + rintro f ⟨hf, C, hC, hdom⟩ + exact ⟨hf, isNormalFunctional_of_dual_domination M φ hn f hf C hC hdom⟩ + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalStateCompression.lean b/LeanPool/VacuumBellSeparation/Bell/NormalStateCompression.lean new file mode 100644 index 0000000000..ed6e39af99 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalStateCompression.lean @@ -0,0 +1,121 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.PositiveStateCompression +public import LeanPool.VacuumBellSeparation.Bell.NormalStateMarginals +public import LeanPool.VacuumBellSeparation.Bell.StateExtension + +/-! +# Compression preserves full order-normality + +The normality predicate quantifies over every nonempty directed positive +set. The proof uses the actual strong limit of that set in the original +Hilbert space. No normal extension to all B(H), universal representation, +countable cofinal family or vector-state representation is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Concrete conjugation preserves the actual supremum of a directed positive set. -/ +theorem isLUB_compression_image_positive (M : VonNeumannAlgebra H) + (q : M.toStarSubalgebra) {s : Set M.toStarSubalgebra} + (hs : s.Nonempty) (hdir : DirectedOn (· ≤ ·) s) (hpos : ∀ T ∈ s, 0 ≤ T) + {X : M.toStarSubalgebra} (hX : IsLUB s X) : + IsLUB ((compressionPositive q) '' s) (compressionPositive q X) := by + let : Nonempty s := hs.to_subtype + let : IsDirectedOrder s := hdir.isDirectedOrder + have ht (x : H) : Tendsto (fun i : s => + (compressionPositive q i.1 : H →L[ℂ] H) x) atTop + (𝓝 ((compressionPositive q X : H →L[ℂ] H) x)) := by + change Tendsto (fun i : s => (star (q : H →L[ℂ] H)) + ((i.1 : H →L[ℂ] H) ((q : H →L[ℂ] H) x))) atTop + (𝓝 ((star (q : H →L[ℂ] H)) ((X : H →L[ℂ] H) ((q : H →L[ℂ] H) x)))) + exact (star (q : H →L[ℂ] H)).continuous.continuousAt.tendsto.comp + (strong_tendsto_of_isLUB_positive M hs hdir hpos hX ((q : H →L[ℂ] H) x)) + constructor + · rintro _ ⟨Y, hY, rfl⟩ + exact (compressionPositive q).monotone' (hX.1 hY) + · intro Y hY + change (compressionPositive q X : H →L[ℂ] H) ≤ (Y : H →L[ℂ] H) + exact Gaussian.operator_le_of_strong_tendsto ht (fun _ => tendsto_const_nhds) + (Filter.Eventually.of_forall fun i : s => + (show (compressionPositive q i.1 : H →L[ℂ] H) ≤ (Y : H →L[ℂ] H) from + hY ⟨i.1, i.2, rfl⟩)) + +/-- Positive conjugation is normal for arbitrary, not just sequential, suprema. -/ +theorem IsNormalFunctional.compression {M : VonNeumannAlgebra H} + {f : M.toStarSubalgebra → ℂ} (hf : IsNormalFunctional M f) + (q : M.toStarSubalgebra) : + IsNormalFunctional M (fun X => f (star q * X * q)) := by + intro s hs hdir hpos X hX + let c := compressionPositive q + have hd : DirectedOn (· ≤ ·) (c '' s) := by + rintro _ ⟨Y, hY, rfl⟩ _ ⟨Z, hZ, rfl⟩ + obtain ⟨W, hW, hYW, hZW⟩ := hdir Y hY Z hZ + exact ⟨c W, ⟨W, hW, rfl⟩, c.monotone' hYW, c.monotone' hZW⟩ + have hp : ∀ Y ∈ c '' s, 0 ≤ Y := by + rintro _ ⟨Y, hY, rfl⟩ + exact c.map_nonneg (hpos Y hY) + have h := hf (c '' s) (hs.image c) hd hp (c X) + (isLUB_compression_image_positive M q hs hdir hpos hX) + simpa only [Set.image_image, Function.comp_def, c, compressionPositive_apply] using h + +/-- Strictly positive real rescaling preserves the directed-supremum predicate. -/ +theorem IsNormalFunctional.positive_smul {M : VonNeumannAlgebra H} + {f : M.toStarSubalgebra → ℂ} (hf : IsNormalFunctional M f) + (c : ℝ) (hc : 0 < c) : IsNormalFunctional M (fun X => c • f X) := by + intro s hs hdir hpos X hX + have h := hf s hs hdir hpos X hX + simp only [Complex.smul_re, smul_eq_mul] + constructor + · rintro _ ⟨Y, hY, rfl⟩ + exact mul_le_mul_of_nonneg_left (h.1 ⟨Y, hY, rfl⟩) hc.le + · intro r hr + have hbound : (f X).re ≤ r / c := h.2 (by + rintro _ ⟨Y, hY, rfl⟩ + apply (le_div_iff₀ hc).mpr + simpa only [mul_comm] using hr ⟨Y, hY, rfl⟩) + have hmul := (le_div_iff₀ hc).mp hbound + simpa only [mul_comm] using hmul + +/-- The normalized compressed functional is an actual normal state on M itself. -/ +theorem normalizedCompression_isNormalState (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hn : IsNormalFunctional M φ) (q : M.toStarSubalgebra) + (hq : IsStarProjection q) (hp : 0 < ‖φ q‖) : + IsNormalStateFunctional M (normalizedCompression φ q) := by + refine ⟨⟨normalizedCompression φ q, normalizedCompression_one φ q hq hp, + fun _ => rfl⟩, ?_⟩ + exact (hn.compression q).positive_smul ‖φ q‖⁻¹ (inv_pos.mpr hp) + +/-- Full norm control and actual normality for an arbitrary original normal state. -/ +theorem exists_normal_compressed_state (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) + (hn : IsNormalFunctional M φ) (q : M.toStarSubalgebra) + (hq : IsStarProjection q) (hp : 0 < ‖φ q‖) : + ∃ ψ : StrongDual ℂ M.toStarSubalgebra, + IsNormalStateFunctional M ψ ∧ + (∀ X, ψ X = ‖φ q‖⁻¹ • φ (q * X * q)) ∧ + ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap - ψ‖ ≤ + 2 * Real.sqrt ‖φ (1 - q)‖ + ‖φ (1 - q)‖ := by + refine ⟨(PositiveContinuousLinearMap.ofClass (normalizedCompression φ q)).toContinuousLinearMap, + normalizedCompression_isNormalState M φ hn q hq hp, ?_, + normalizedCompression_dual_error_le φ hφ q hq hp⟩ + intro X + change ‖φ q‖⁻¹ • φ (star q * X * q) = _ + rw [hq.isSelfAdjoint.star_eq] + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalStateDominatedNormalization.lean b/LeanPool/VacuumBellSeparation/Bell/NormalStateDominatedNormalization.lean new file mode 100644 index 0000000000..0e43441461 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalStateDominatedNormalization.lean @@ -0,0 +1,148 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.SeparatingVectorDominatedDensity +public import LeanPool.VacuumBellSeparation.Bell.NormalStateCompression + +/-! +# Normalizing positive dominated approximants in the full dual norm + +The normalizing mass is the actual positive-functional norm, equal to its +value at identity. Closeness to a state makes this mass nonzero. The error +after normalization is at most twice the original dual-norm error. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder Topology + +section CStar +variable {A : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] + +/-- Unit mass positive functional. -/ +def unitMassPositiveFunctional (ψ : A →ₚ[ℂ] ℂ) : A →ₚ[ℂ] ℂ := + distillationScaleFunctional + ‖(PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap‖⁻¹ + (inv_nonneg.mpr (norm_nonneg _)) ψ + +theorem unitMassPositiveFunctional_one (ψ : A →ₚ[ℂ] ℂ) + (hp : 0 < ‖(PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap‖) : + unitMassPositiveFunctional ψ 1 = 1 := by + change ‖(PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap‖⁻¹ • ψ 1 = 1 + rw [positiveFunctional_one_eq_norm ψ, Complex.real_smul, ← Complex.ofReal_mul, + inv_mul_cancel₀ hp.ne', Complex.ofReal_one] + +theorem unitMassPositiveFunctional_dual_error_le (ψ ω : A →ₚ[ℂ] ℂ) + (hω : ω 1 = 1) + (hp : 0 < ‖(PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap‖) : + ‖(PositiveContinuousLinearMap.ofClass ω).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass (unitMassPositiveFunctional ψ)).toContinuousLinearMap‖ ≤ + 2 * ‖(PositiveContinuousLinearMap.ofClass ω).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap‖ := by + let f := (PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap + let g := (PositiveContinuousLinearMap.ofClass ω).toContinuousLinearMap + let r := (PositiveContinuousLinearMap.ofClass (unitMassPositiveFunctional + ψ)).toContinuousLinearMap + have hg : ‖g‖ = 1 := by + have h := congrArg Complex.re (positiveFunctional_one_eq_norm ω) + simpa only [hω, Complex.one_re, Complex.ofReal_re] using h.symm + have hr : ‖r‖ = 1 := by + have h := congrArg Complex.re (positiveFunctional_one_eq_norm (unitMassPositiveFunctional ψ)) + simpa only [unitMassPositiveFunctional_one ψ hp, Complex.one_re, Complex.ofReal_re] using h.symm + have he : f = ‖f‖ • r := by + change f = ‖f‖ • (‖f‖⁻¹ • f) + rw [smul_smul, mul_inv_cancel₀ hp.ne', one_smul] + have hfr : ‖f - r‖ ≤ ‖g - f‖ := by + have hd : f - r = (‖f‖ - 1) • r := by rw [sub_smul, one_smul, ← he] + rw [hd, norm_smul, Real.norm_eq_abs, hr, mul_one] + simpa only [hg, norm_sub_rev] using abs_norm_sub_norm_le f g + change ‖g - r‖ ≤ 2 * ‖g - f‖ + have h := norm_sub_le_norm_sub_add_norm_sub g f r + linarith + +end CStar + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- A bound by a finite nonnegative multiple gives a strictly positive +coefficient below one. The reference need not have unit mass here. -/ +theorem exists_small_dual_domination (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (f : StrongDual ℂ M.toStarSubalgebra) + (C : ℝ) (hC : 0 ≤ C) + (hdom : ∀ X : M.toStarSubalgebra, 0 ≤ X → f X ≤ C • φ X) : + ∃ t : ℝ, 0 < t ∧ t < 1 ∧ ∀ X : M.toStarSubalgebra, + 0 ≤ X → t • f X ≤ φ X := by + let t : ℝ := (C + 2)⁻¹ + have hd : 0 < C + 2 := by linarith + have ht : 0 < t := inv_pos.mpr hd + have he : t * (C + 2) = 1 := inv_mul_cancel₀ hd.ne' + have htc : 0 ≤ t * C := mul_nonneg ht.le hC + have ht1 : t < 1 := by nlinarith + have htc1 : t * C ≤ 1 := by nlinarith + refine ⟨t, ht, ht1, ?_⟩ + intro X hX + have h := smul_le_smul_of_nonneg_left (hdom X hX) ht.le + have hb : (t * C) • φ X ≤ φ X := by + simpa only [one_smul] using smul_le_smul_of_nonneg_right htc1 (φ.map_nonneg hX) + have h' : t • f X ≤ (t * C) • φ X := by + simpa only [smul_smul] using h + exact h'.trans hb + +/-- This generic normalization step assumes the displayed positive-cone +closure premise; separate density theorems discharge it for faithful references. -/ +theorem normalState_mem_closure_dominated_of_positive_closure (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hnφ : IsNormalFunctional M φ) + (ω : HC00.NormalStateSpace M) + (hc : ω.1 ∈ (dominatedPositiveDualMonoid M φ).topologicalClosure) : + ω ∈ closure {ρ : HC00.NormalStateSpace M | + ∃ t : ℝ, 0 < t ∧ t < 1 ∧ ∀ X : M.toStarSubalgebra, + 0 ≤ X → t • ρ.1 X ≤ φ X} := by + apply Metric.mem_closure_iff.mpr + intro ε hε + obtain ⟨g, hg, hd⟩ := Metric.mem_closure_iff.mp hc (min (1 / 2) (ε / 3)) + (lt_min (by norm_num) (by positivity)) + obtain ⟨hgpos, C, hC, hdom⟩ := hg + let ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ := PositiveLinearMap.mk₀ g.toLinearMap hgpos + obtain ⟨ωp, hωp, hωeq⟩ := ω.2.1 + have heω : (PositiveContinuousLinearMap.ofClass ωp).toContinuousLinearMap = ω.1 := + ContinuousLinearMap.ext hωeq + have hgω : ‖ω.1 - g‖ < min (1 / 2) (ε / 3) := by simpa only [dist_eq_norm] using hd + have hnω : ‖ω.1‖ = 1 := by + have h := congrArg Complex.re (positiveFunctional_one_eq_norm ωp) + simpa only [hωp, Complex.one_re, Complex.ofReal_re, heω] using h.symm + have hp : 0 < ‖g‖ := by + have h := norm_sub_norm_le ω.1 g + have hb := hgω.trans_le (min_le_left _ _) + rw [hnω] at h + linarith + let r := (PositiveContinuousLinearMap.ofClass (unitMassPositiveFunctional + ψ)).toContinuousLinearMap + have hrpos (X : M.toStarSubalgebra) (hX : 0 ≤ X) : 0 ≤ r X := + (unitMassPositiveFunctional ψ).map_nonneg hX + have hrdom (X : M.toStarSubalgebra) (hX : 0 ≤ X) : r X ≤ (‖g‖⁻¹ * C) • φ X := by + change ‖g‖⁻¹ • g X ≤ _ + simpa only [smul_smul] using + smul_le_smul_of_nonneg_left (hdom X hX) (inv_nonneg.mpr (norm_nonneg _)) + have hrn : IsNormalStateFunctional M r := + ⟨⟨unitMassPositiveFunctional ψ, unitMassPositiveFunctional_one ψ hp, fun _ => rfl⟩, + isNormalFunctional_of_dual_domination M φ hnφ r hrpos + (‖g‖⁻¹ * C) (mul_nonneg (inv_nonneg.mpr (norm_nonneg _)) hC) hrdom⟩ + refine ⟨⟨r, hrn⟩, exists_small_dual_domination M φ r (‖g‖⁻¹ * C) + (mul_nonneg (inv_nonneg.mpr (norm_nonneg _)) hC) hrdom, ?_⟩ + change dist ω.1 r < ε + rw [dist_eq_norm] + have hb := unitMassPositiveFunctional_dual_error_le ψ ωp hωp hp + rw [heω] at hb + have hdε := hgω.trans_le (min_le_right _ _) + change ‖ω.1 - r‖ ≤ 2 * ‖ω.1 - g‖ at hb + linarith + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalStateMarginals.lean b/LeanPool/VacuumBellSeparation/Bell/NormalStateMarginals.lean new file mode 100644 index 0000000000..acadf41cbd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalStateMarginals.lean @@ -0,0 +1,180 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.VectorFunctionalNormal + +/-! +Restrictions to concrete unital VNA subalgebras are states and preserve order +normality. The latter uses arbitrary directed positive suprema and the actual +strong operator limit, not a sequential or finite-dimensional surrogate. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The two concrete algebras embed in their actual joint double commutant. -/ +theorem union_subset_jointAlgebra (A B : VonNeumannAlgebra H) : + (A : Set (H →L[ℂ] H)) ∪ (B : Set (H →L[ℂ] H)) ⊆ jointAlgebra A B := by + intro X hX + exact StarAlgebra.adjoin_le_centralizer_centralizer ℂ _ + (StarAlgebra.subset_adjoin ℂ _ hX) + +/-- The left unital star-algebra inclusion into the joint algebra. -/ +def jointLeft (A B : VonNeumannAlgebra H) : + A.toStarSubalgebra →⋆ₐ[ℂ] (jointAlgebra A B).toStarSubalgebra := + StarSubalgebra.inclusion fun _ hX => + union_subset_jointAlgebra A B (Set.mem_union_left _ hX) + +/-- The right unital star-algebra inclusion into the joint algebra. -/ +def jointRight (A B : VonNeumannAlgebra H) : + B.toStarSubalgebra →⋆ₐ[ℂ] (jointAlgebra A B).toStarSubalgebra := + StarSubalgebra.inclusion fun _ hX => + union_subset_jointAlgebra A B (Set.mem_union_right _ hX) + +/-- Inclusion is positive for the inherited operator order. -/ +def vnaInclusionPositive {M N : VonNeumannAlgebra H} + (h : M.toStarSubalgebra ≤ N.toStarSubalgebra) : + M.toStarSubalgebra →ₚ[ℂ] N.toStarSubalgebra where + toLinearMap := (StarSubalgebra.inclusion h).toLinearMap + monotone' := fun _ _ hXY => hXY + +/-- A state has the literal unit normalization as a function. -/ +theorem IsStateFunctional.apply_one {M : VonNeumannAlgebra H} + {f : M.toStarSubalgebra → ℂ} (hf : IsStateFunctional M f) : f 1 = 1 := by + obtain ⟨φ, hφ, he⟩ := hf + exact (he 1).symm.trans hφ + +/-- Positive unital restriction, without any extension to the ambient B(H). -/ +theorem IsStateFunctional.restrict {M N : VonNeumannAlgebra H} + (h : M.toStarSubalgebra ≤ N.toStarSubalgebra) + {f : N.toStarSubalgebra → ℂ} (hf : IsStateFunctional N f) : + IsStateFunctional M (fun X => f (StarSubalgebra.inclusion h X)) := by + obtain ⟨φ, hφ, he⟩ := hf + refine ⟨φ.comp (vnaInclusionPositive h), ?_, ?_⟩ + · change φ (StarSubalgebra.inclusion h 1) = 1 + simpa only [map_one] using hφ + · intro X + exact he (StarSubalgebra.inclusion h X) + +/-- An internal positive directed supremum is preserved by concrete inclusion. -/ +theorem isLUB_inclusion_image_positive {M N : VonNeumannAlgebra H} + (h : M.toStarSubalgebra ≤ N.toStarSubalgebra) + {s : Set M.toStarSubalgebra} (hs : s.Nonempty) (hdir : DirectedOn (· ≤ ·) s) + (hpos : ∀ X ∈ s, 0 ≤ X) {X : M.toStarSubalgebra} (hX : IsLUB s X) : + IsLUB ((StarSubalgebra.inclusion h) '' s) (StarSubalgebra.inclusion h X) := by + let : Nonempty s := hs.to_subtype + let : IsDirectedOrder s := hdir.isDirectedOrder + constructor + · rintro _ ⟨Y, hY, rfl⟩ + exact hX.1 hY + · intro Y hY + change (X : H →L[ℂ] H) ≤ (Y : H →L[ℂ] H) + exact Gaussian.operator_le_of_strong_tendsto + (strong_tendsto_of_isLUB_positive M hs hdir hpos hX) + (fun _ => tendsto_const_nhds) + (Filter.Eventually.of_forall fun i : s => + (show (i.1 : H →L[ℂ] H) ≤ (Y : H →L[ℂ] H) from + hY ⟨i.1, i.2, rfl⟩)) + +/-- Arbitrary directed-set normality passes to a concrete VNA restriction. -/ +theorem IsNormalFunctional.restrict {M N : VonNeumannAlgebra H} + (h : M.toStarSubalgebra ≤ N.toStarSubalgebra) + {f : N.toStarSubalgebra → ℂ} (hf : IsNormalFunctional N f) : + IsNormalFunctional M (fun X => f (StarSubalgebra.inclusion h X)) := by + intro s hs hdir hpos X hX + let i := StarSubalgebra.inclusion h + have hdir' : DirectedOn (· ≤ ·) (i '' s) := by + rintro _ ⟨Y, hY, rfl⟩ _ ⟨Z, hZ, rfl⟩ + obtain ⟨W, hW, hYW, hZW⟩ := hdir Y hY Z hZ + exact ⟨i W, ⟨W, hW, rfl⟩, hYW, hZW⟩ + have hpos' : ∀ Y ∈ i '' s, 0 ≤ Y := by + rintro _ ⟨Y, hY, rfl⟩ + exact hpos Y hY + have h := hf (i '' s) (hs.image i) hdir' hpos' (i X) + (isLUB_inclusion_image_positive h hs hdir hpos hX) + simpa only [Set.image_image] using h + +/-- No normality field is added to the definition; this is its restriction proof. -/ +theorem IsNormalStateFunctional.restrict {M N : VonNeumannAlgebra H} + (h : M.toStarSubalgebra ≤ N.toStarSubalgebra) + {f : N.toStarSubalgebra → ℂ} (hf : IsNormalStateFunctional N f) : + IsNormalStateFunctional M (fun X => f (StarSubalgebra.inclusion h X)) := + ⟨hf.1.restrict h, hf.2.restrict h⟩ + +/-- Own-marginal factorization can be checked on the two bundled inclusions. -/ +theorem hasProductFactorization_iff_bundled (A B : VonNeumannAlgebra H) + (f : (jointAlgebra A B).toStarSubalgebra → ℂ) : + HasProductFactorization A B f ↔ + ∀ X : A.toStarSubalgebra, ∀ Y : B.toStarSubalgebra, + f (jointLeft A B X * jointRight A B Y) = + f (jointLeft A B X) * f (jointRight A B Y) := by + constructor + · intro h X Y + exact h _ _ X.2 Y.2 + · intro h X Y hX hY + exact h (⟨X.1, hX⟩ : A.toStarSubalgebra) (⟨Y.1, hY⟩ : B.toStarSubalgebra) + +/-- Any normalized factor states must equal the actual marginal restrictions. -/ +theorem product_marginals_unique (A B : VonNeumannAlgebra H) + (f : (jointAlgebra A B).toStarSubalgebra → ℂ) + (fA : A.toStarSubalgebra → ℂ) (fB : B.toStarSubalgebra → ℂ) + (hA : fA 1 = 1) (hB : fB 1 = 1) + (hprod : ∀ X Y, f (jointLeft A B X * jointRight A B Y) = fA X * fB Y) : + (∀ X, f (jointLeft A B X) = fA X) ∧ + (∀ Y, f (jointRight A B Y) = fB Y) := by + constructor + · intro X + simpa only [map_one, mul_one, hB] using hprod X 1 + · intro Y + simpa only [map_one, one_mul, hA] using hprod 1 Y + +/-- Literal existential normal marginal states, equivalent to own marginals +for a normal joint state. No split/tensor-product or independence premise. -/ +theorem hasProductFactorization_iff_exists_normal_marginals + (A B : VonNeumannAlgebra H) + {f : (jointAlgebra A B).toStarSubalgebra → ℂ} + (hf : IsNormalStateFunctional (jointAlgebra A B) f) : + HasProductFactorization A B f ↔ + ∃ fA : A.toStarSubalgebra → ℂ, ∃ fB : B.toStarSubalgebra → ℂ, + IsNormalStateFunctional A fA ∧ IsNormalStateFunctional B fB ∧ + ∀ X Y, f (jointLeft A B X * jointRight A B Y) = fA X * fB Y := by + constructor + · intro hp + refine ⟨fun X => f (jointLeft A B X), fun Y => f (jointRight A B Y), + ?_, ?_, (hasProductFactorization_iff_bundled A B f).mp hp⟩ + · exact hf.restrict (fun _ hX => union_subset_jointAlgebra A B (Set.mem_union_left _ hX)) + · exact hf.restrict (fun _ hY => union_subset_jointAlgebra A B (Set.mem_union_right _ hY)) + · rintro ⟨fA, fB, hA, hB, hp⟩ + obtain ⟨hleft, hright⟩ := product_marginals_unique A B f fA fB + hA.1.apply_one hB.1.apply_one hp + apply (hasProductFactorization_iff_bundled A B f).mpr + intro X Y + rw [hp, hleft, hright] + +/-- The entire normal-product predicate in existential marginal form. -/ +theorem isNormalProductState_iff_exists_normal_marginals + (A B : VonNeumannAlgebra H) (f : (jointAlgebra A B).toStarSubalgebra → ℂ) : + IsNormalProductState A B f ↔ + IsNormalStateFunctional (jointAlgebra A B) f ∧ + ∃ fA : A.toStarSubalgebra → ℂ, ∃ fB : B.toStarSubalgebra → ℂ, + IsNormalStateFunctional A fA ∧ IsNormalStateFunctional B fB ∧ + ∀ X Y, f (jointLeft A B X * jointRight A B Y) = fA X * fB Y := by + constructor + · intro hf + exact ⟨hf.1, (hasProductFactorization_iff_exists_normal_marginals A B hf.1).mp hf.2⟩ + · rintro ⟨hf, hmarginals⟩ + exact ⟨hf, (hasProductFactorization_iff_exists_normal_marginals A B hf).mpr hmarginals⟩ + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalStateMixtures.lean b/LeanPool/VacuumBellSeparation/Bell/NormalStateMixtures.lean new file mode 100644 index 0000000000..a6cc95fef5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalStateMixtures.lean @@ -0,0 +1,147 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalStateCompression +public import Mathlib.Topology.Order.MonotoneConvergence + +/-! +Finite convex mixtures of actual positive normal states on the original VNA. +Normality is proved for every directed positive set. The norm bound is in the +full continuous dual, and the final witness concerns an actual observable. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter +open scoped Topology ComplexOrder + +section CStar +variable {C : Type*} [CStarAlgebra C] [PartialOrder C] [StarOrderedRing C] + +/-- The actual convex combination, including both endpoints t=0 and t=1. -/ +def stateMixture (φ ψ : C →ₚ[ℂ] ℂ) (t : ℝ) (ht : 0 ≤ t) (ht1 : t ≤ 1) : + C →ₚ[ℂ] ℂ where + toLinearMap := (1 - t) • φ.toLinearMap + t • ψ.toLinearMap + monotone' := fun _ _ h => add_le_add + (smul_le_smul_of_nonneg_left (φ.monotone' h) (sub_nonneg.mpr ht1)) + (smul_le_smul_of_nonneg_left (ψ.monotone' h) ht) + +omit [StarOrderedRing C] in +@[simp] theorem stateMixture_apply (φ ψ : C →ₚ[ℂ] ℂ) + (t : ℝ) (ht : 0 ≤ t) (ht1 : t ≤ 1) (X : C) : + stateMixture φ ψ t ht ht1 X = (1 - t) • φ X + t • ψ X := rfl + +omit [StarOrderedRing C] in +theorem stateMixture_one (φ ψ : C →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) (hψ : ψ 1 = 1) + (t : ℝ) (ht : 0 ≤ t) (ht1 : t ≤ 1) : stateMixture φ ψ t ht ht1 1 = 1 := by + rw [stateMixture_apply, hφ, hψ, ← add_smul] + simp only [sub_add_cancel, one_smul] + +/-- The full functional norm, not just a finite collection of observables. -/ +theorem stateMixture_dual_error_le (φ ψ : C →ₚ[ℂ] ℂ) + (hφ : φ 1 = 1) (hψ : ψ 1 = 1) (t : ℝ) (ht : 0 ≤ t) (ht1 : t ≤ 1) : + ‖(PositiveContinuousLinearMap.ofClass (stateMixture φ ψ t ht ht1)).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap‖ ≤ 2 * t := by + apply ContinuousLinearMap.opNorm_le_bound _ (by positivity) + intro X + change ‖(1 - t) • φ X + t • ψ X - φ X‖ ≤ (2 * t) * ‖X‖ + have he : (1 - t) • φ X + t • ψ X - φ X = t • (ψ X - φ X) := by + simp only [sub_smul, one_smul, smul_sub] + abel + rw [he, norm_smul, Real.norm_eq_abs, abs_of_nonneg ht] + calc + t * ‖ψ X - φ X‖ ≤ t * (‖ψ X‖ + ‖φ X‖) := + mul_le_mul_of_nonneg_left (norm_sub_le _ _) ht + _ ≤ t * (‖X‖ + ‖X‖) := mul_le_mul_of_nonneg_left + (add_le_add (stateFunctional_norm_apply_le ψ hψ X) + (stateFunctional_norm_apply_le φ hφ X)) ht + _ = (2 * t) * ‖X‖ := by ring + +omit [StarOrderedRing C] in +theorem stateMixture_real_gt_one (φ ψ : C →ₚ[ℂ] ℂ) (R : C) + (hφR : φ R = 1) (hψR : 1 < (ψ R).re) + (t : ℝ) (ht : 0 < t) (ht1 : t ≤ 1) : + 1 < (stateMixture φ ψ t ht.le ht1 R).re := by + simp only [stateMixture_apply, hφR, Complex.add_re, Complex.smul_re, + Complex.one_re, smul_eq_mul] + nlinarith [mul_pos ht (sub_pos.mpr hψR)] + +end CStar + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Order-normality supplies the real expectation limit on the directed set itself. -/ +theorem positiveFunctional_real_tendsto_of_normal (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) + {s : Set M.toStarSubalgebra} (hs : s.Nonempty) (hd : DirectedOn (· ≤ ·) s) + (hp : ∀ X ∈ s, 0 ≤ X) {X : M.toStarSubalgebra} (hX : IsLUB s X) : + Tendsto (fun i : s => (φ i.1).re) atTop (𝓝 (φ X).re) := by + have he : Set.range (fun i : s => (φ i.1).re) = (fun Y => (φ Y).re) '' s := by + ext r + constructor + · rintro ⟨i, rfl⟩; exact ⟨i.1, i.2, rfl⟩ + · rintro ⟨Y, hY, rfl⟩; exact ⟨⟨Y, hY⟩, rfl⟩ + apply tendsto_atTop_isLUB + · intro i j hij + exact (Complex.le_def.mp (φ.monotone' hij)).1 + · rw [he] + exact hn s hs hd hp X hX + +/-- The limit argument uses all positive directed suprema, with no countability. -/ +theorem stateMixture_isNormal (M : VonNeumannAlgebra H) + (φ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hnφ : IsNormalFunctional M φ) (hnψ : IsNormalFunctional M ψ) + (t : ℝ) (ht : 0 ≤ t) (ht1 : t ≤ 1) : + IsNormalFunctional M (stateMixture φ ψ t ht ht1) := by + intro s hs hd hp X hX + let : Nonempty s := hs.to_subtype + let : IsDirectedOrder s := hd.isDirectedOrder + have hlim : Tendsto (fun i : s => (stateMixture φ ψ t ht ht1 i.1).re) atTop + (𝓝 (stateMixture φ ψ t ht ht1 X).re) := by + simpa only [stateMixture_apply, Complex.add_re, Complex.smul_re, smul_eq_mul] using + ((positiveFunctional_real_tendsto_of_normal M φ hnφ hs hd hp hX).const_mul (1 - t)).add + ((positiveFunctional_real_tendsto_of_normal M ψ hnψ hs hd hp hX).const_mul t) + constructor + · rintro _ ⟨Y, hY, rfl⟩ + exact (Complex.le_def.mp ((stateMixture φ ψ t ht ht1).monotone' (hX.1 hY))).1 + · intro r hr + exact le_of_tendsto hlim (Filter.Eventually.of_forall fun i : s => hr ⟨i.1, i.2, rfl⟩) + +theorem stateMixture_isNormalState (M : VonNeumannAlgebra H) + (φ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) (hψ : ψ 1 = 1) + (hnφ : IsNormalFunctional M φ) (hnψ : IsNormalFunctional M ψ) + (t : ℝ) (ht : 0 ≤ t) (ht1 : t ≤ 1) : + IsNormalStateFunctional M (stateMixture φ ψ t ht ht1) := + ⟨⟨stateMixture φ ψ t ht ht1, stateMixture_one φ ψ hφ hψ t ht ht1, fun _ => rfl⟩, + stateMixture_isNormal M φ ψ hnφ hnψ t ht ht1⟩ + +/-- A normal state with witness value exactly 1 can be perturbed in full norm +by any normal state whose value at that same witness has real part above 1. -/ +theorem exists_normal_mixture_near_of_real_gap (M : VonNeumannAlgebra H) + (φ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) (hψ : ψ 1 = 1) + (hnφ : IsNormalFunctional M φ) (hnψ : IsNormalFunctional M ψ) + (R : M.toStarSubalgebra) (hφR : φ R = 1) (hψR : 1 < (ψ R).re) + {ε : ℝ} (hε : 0 < ε) : + ∃ ρ : StrongDual ℂ M.toStarSubalgebra, + IsNormalStateFunctional M ρ ∧ 1 < (ρ R).re ∧ + ‖ρ - (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap‖ < ε := by + let t : ℝ := min (1 / 2) (ε / 4) + have ht : 0 < t := lt_min (by norm_num) (by positivity) + have ht1 : t ≤ 1 := (min_le_left _ _).trans (by norm_num) + refine ⟨(PositiveContinuousLinearMap.ofClass (stateMixture φ ψ t ht.le + ht1)).toContinuousLinearMap, + stateMixture_isNormalState M φ ψ hφ hψ hnφ hnψ t ht.le ht1, + stateMixture_real_gt_one φ ψ R hφR hψR t ht ht1, ?_⟩ + apply lt_of_le_of_lt (stateMixture_dual_error_le φ ψ hφ hψ t ht.le ht1) + have htε : t ≤ ε / 4 := min_le_right _ _ + linarith + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalStateWeakConvergence.lean b/LeanPool/VacuumBellSeparation/Bell/NormalStateWeakConvergence.lean new file mode 100644 index 0000000000..b47f919cac --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalStateWeakConvergence.lean @@ -0,0 +1,118 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.CoefficientWeakStarHomeomorphism +public import LeanPool.VacuumBellSeparation.Bell.CommutantVectorDomination +public import LeanPool.VacuumBellSeparation.Bell.SignedBellCorrelation +public import Mathlib.Analysis.InnerProductSpace.LinearMap + +/-! +Normal-state real expectations determine weak convergence of self-adjoint +operators in the original representation. Uniform operator bounds then +give the literal weak-star topology of the proved coefficient predual. +The proof normalizes each original vector and uses complex polarization; +it does not assume a representation theorem for arbitrary normal states. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open HC00 Filter +open scoped Topology ComplexOrder InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] +variable {ι : Type*} {l : Filter ι} + +theorem normalState_complex_limit_of_real_limit + (M : VonNeumannAlgebra H) (T : ι → M.toStarSubalgebra) (L : M.toStarSubalgebra) + (hT : ∀ i, IsSelfAdjoint (T i)) (hL : IsSelfAdjoint L) + (φ : NormalStateSpace M) + (h : Tendsto (fun i => (φ.1 (T i)).re) l (𝓝 (φ.1 L).re)) : + Tendsto (fun i => φ.1 (T i)) l (𝓝 (φ.1 L)) := by + have he (a : M.toStarSubalgebra) (ha : IsSelfAdjoint a) : + ((φ.1 a).re : ℂ) = φ.1 a := + Complex.conj_eq_iff_re.mp (stateFunctional_isSelfAdjoint M ⟨φ.1, φ.2.1⟩ ha).star_eq + simpa only [Function.comp_def, he _ (hT _), he L hL] using + Complex.continuous_ofReal.continuousAt.tendsto.comp h + +theorem selfAdjoint_wot_limit_of_normalState_real_limits + (M : VonNeumannAlgebra H) (T : ι → M.toStarSubalgebra) (L : M.toStarSubalgebra) + (hT : ∀ i, IsSelfAdjoint (T i)) (hL : IsSelfAdjoint L) + (h : ∀ φ : NormalStateSpace M, + Tendsto (fun i => (φ.1 (T i)).re) l (𝓝 (φ.1 L).re)) : + Tendsto (fun i => ContinuousLinearMapWOT.ofCLM (T i : H →L[ℂ] H)) l + (𝓝 (ContinuousLinearMapWOT.ofCLM (L : H →L[ℂ] H))) := by + have hunit (x : H) (hx : ‖x‖ = 1) : + Tendsto (fun i => ⟪x, (T i : H →L[ℂ] H) x⟫_ℂ) l + (𝓝 ⟪x, (L : H →L[ℂ] H) x⟫_ℂ) := + normalState_complex_limit_of_real_limit M T L hT hL + (SW88.vectorNormalState M x hx) (h _) + have hdiag (x : H) : + Tendsto (fun i => ⟪x, (T i : H →L[ℂ] H) x⟫_ℂ) l + (𝓝 ⟪x, (L : H →L[ℂ] H) x⟫_ℂ) := by + by_cases hx : x = 0 + · simp only [hx, inner_zero_left] + exact tendsto_const_nhds + · let u := reehSchliederUnitVector x + have he (a : M.toStarSubalgebra) : + ⟪x, (a : H →L[ℂ] H) x⟫_ℂ = + (‖x‖ : ℂ) ^ 2 * ⟪u, (a : H →L[ℂ] H) u⟫_ℂ := by + calc + _ = ⟪(‖x‖ : ℂ) • u, (a : H →L[ℂ] H) ((‖x‖ : ℂ) • u)⟫_ℂ := by + rw [norm_smul_reehSchliederUnitVector hx] + _ = _ := by + rw [map_smul, inner_smul_left, inner_smul_right, Complex.conj_ofReal] + ring + simpa only [he] using + (hunit u (reehSchliederUnitVector_norm hx)).const_mul ((‖x‖ : ℂ) ^ 2) + apply ContinuousLinearMapWOT.tendsto_iff_forall_inner_apply_tendsto.mpr + intro y x + change Tendsto (fun i => ⟪x, (T i : H →L[ℂ] H) y⟫_ℂ) l + (𝓝 ⟪x, (L : H →L[ℂ] H) y⟫_ℂ) + have hpol (a : M.toStarSubalgebra) (ha : IsSelfAdjoint a) : + ⟪x, (a : H →L[ℂ] H) y⟫_ℂ = + (⟪x + y, (a : H →L[ℂ] H) (x + y)⟫_ℂ - + ⟪x - y, (a : H →L[ℂ] H) (x - y)⟫_ℂ - + Complex.I * ⟪x + Complex.I • y, (a : H →L[ℂ] H) (x + Complex.I • y)⟫_ℂ + + Complex.I * ⟪x - Complex.I • y, (a : H →L[ℂ] H) (x - Complex.I • y)⟫_ℂ) / 4 := by + have hs : IsSelfAdjoint (a : H →L[ℂ] H) := + congrArg (fun b : M.toStarSubalgebra => (b : H →L[ℂ] H)) ha.star_eq + have hp := inner_map_polarization' (a : H →L[ℂ] H).toLinearMap x y + change ⟪(a : H →L[ℂ] H) x, y⟫_ℂ = + (⟪(a : H →L[ℂ] H) (x + y), x + y⟫_ℂ - + ⟪(a : H →L[ℂ] H) (x - y), x - y⟫_ℂ - + Complex.I * ⟪(a : H →L[ℂ] H) (x + Complex.I • y), x + Complex.I • y⟫_ℂ + + Complex.I * ⟪(a : H →L[ℂ] H) (x - Complex.I • y), x - Complex.I • y⟫_ℂ) / 4 at hp + have hsxy (u v : H) : + ⟪(a : H →L[ℂ] H) u, v⟫_ℂ = ⟪u, (a : H →L[ℂ] H) v⟫_ℂ := + hs.isSymmetric u v + simpa only [hsxy] using hp + simpa only [hpol _ (hT _), hpol L hL] using + ((((hdiag (x + y)).sub (hdiag (x - y))).sub + ((hdiag (x + Complex.I • y)).const_mul Complex.I)).add + ((hdiag (x - Complex.I • y)).const_mul Complex.I)).div_const 4 + +theorem selfAdjoint_coefficientWeak_limit_of_normalState_real_limits + (M : VonNeumannAlgebra H) (T : ι → M.toStarSubalgebra) (L : M.toStarSubalgebra) + (hT : ∀ i, IsSelfAdjoint (T i)) (hL : IsSelfAdjoint L) + (R : ℝ) (hb : ∀ i, ‖T i‖ ≤ R) (hbL : ‖L‖ ≤ R) + (h : ∀ φ : NormalStateSpace M, + Tendsto (fun i => (φ.1 (T i)).re) l (𝓝 (φ.1 L).re)) : + Tendsto (β := CoefficientWeakAlgebra M) (fun i => T i) l + (nhds (X := CoefficientWeakAlgebra M) L) := by + let F : ι → vnaWOTBall M R := fun i => + ⟨ContinuousLinearMapWOT.ofCLM (T i : H →L[ℂ] H), (T i).2, hb i⟩ + let G : vnaWOTBall M R := + ⟨ContinuousLinearMapWOT.ofCLM (L : H →L[ℂ] H), L.2, hbL⟩ + have hw : Tendsto F l (𝓝 G) := tendsto_subtype_rng.mpr + (selfAdjoint_wot_limit_of_normalState_real_limits M T L hT hL h) + exact (continuous_boundedWOT_to_coefficientWeak M R).continuousAt.tendsto.comp hw + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/NormalityBoundedWOTEquivalence.lean b/LeanPool/VacuumBellSeparation/Bell/NormalityBoundedWOTEquivalence.lean new file mode 100644 index 0000000000..801851c790 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/NormalityBoundedWOTEquivalence.lean @@ -0,0 +1,95 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalGNSBoundedWOT +public import LeanPool.VacuumBellSeparation.Bell.NormalPositiveConeClosure + +/-! +Positive order-normality is equivalent to continuity on every actual bounded +WOT ball. The converse uses the original positive directed set as its own +index set, its actual strong supremum, and the ball of radius norm X. +No predual or ultraweak topology is defined by this equivalence. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter +open scoped Topology ComplexOrder InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Every positive directed supremum lies in one original bounded WOT ball. +Continuity there gives the exact real least-upper-bound normality predicate. -/ +theorem isNormalFunctional_of_continuous_boundedWOT + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hc : ∀ R : ℝ, 0 ≤ R → + Continuous (fun T : vnaWOTBall M R => φ (vnaWOTBallElement T))) : + IsNormalFunctional M φ := by + intro s hs hd hp X hX + let : Nonempty s := hs.to_subtype + let : IsDirectedOrder s := hd.isDirectedOrder + let T : s → vnaWOTBall M ‖X‖ := fun i => + ⟨ContinuousLinearMapWOT.ofCLM (i.1 : H →L[ℂ] H), i.1.2, + CStarAlgebra.norm_le_norm_of_le_of_nonneg (hX.1 i.2) (hp i.1 i.2)⟩ + let L : vnaWOTBall M ‖X‖ := + ⟨ContinuousLinearMapWOT.ofCLM (X : H →L[ℂ] H), X.2, le_rfl⟩ + have ht : Tendsto T atTop (𝓝 L) := by + apply tendsto_subtype_rng.mpr + apply ContinuousLinearMapWOT.tendsto_iff_forall_inner_apply_tendsto.mpr + intro x y + exact tendsto_const_nhds.inner (strong_tendsto_of_isLUB_positive M hs hd hp hX x) + have he : Tendsto (fun i : s => (φ i.1).re) atTop (𝓝 (φ X).re) := + Complex.continuous_re.continuousAt.tendsto.comp + ((hc ‖X‖ (norm_nonneg X)).continuousAt.tendsto.comp ht) + constructor + · rintro _ ⟨Y, hY, rfl⟩ + exact (Complex.le_def.mp (φ.monotone' (hX.1 hY))).1 + · intro r hr + apply le_of_tendsto he + exact Filter.Eventually.of_forall fun i : s => hr ⟨i.1, i.2, rfl⟩ + +theorem isNormalFunctional_iff_continuous_boundedWOT + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : + IsNormalFunctional M φ ↔ ∀ R : ℝ, 0 ≤ R → + Continuous (fun T : vnaWOTBall M R => φ (vnaWOTBallElement T)) := + ⟨fun hn R _ => continuous_vnaWOTBall_eval_of_positive_normal M R φ hn, + isNormalFunctional_of_continuous_boundedWOT M φ⟩ + +/-- A norm limit of finite original-H coefficients is order-normal whenever +the limiting functional is positive. No positivity of the approximants is needed. -/ +theorem isNormalFunctional_of_mem_closure_coefficients + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hc : (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap ∈ + closure {f : StrongDual ℂ M.toStarSubalgebra | IsFiniteVectorCoefficient M f}) : + IsNormalFunctional M φ := by + apply isNormalFunctional_of_continuous_boundedWOT M φ + intro R _ + exact continuous_vnaWOTBall_eval_of_mem_closure_coefficients M R + (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap hc + +/-- The positive cone of the concrete coefficient norm closure is precisely +the original positive order-normal cone. This makes no global WOT assertion. -/ +theorem isNormalFunctional_iff_mem_closure_coefficients + (M : VonNeumannAlgebra H) (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : + IsNormalFunctional M φ ↔ + (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap ∈ + closure {f : StrongDual ℂ M.toStarSubalgebra | IsFiniteVectorCoefficient M f} := by + constructor + · intro hn + apply closure_mono ?_ (normalFunctional_mem_closure_finite_vector_sums M φ hn) + rintro f ⟨n, ξ, rfl⟩ + refine ⟨n, ξ, ξ, fun _ => 1, ?_⟩ + intro a + change finiteVectorFunctional M ξ a = ∑ i, (1 : ℂ) * ⟪ξ i, (a : H →L[ℂ] H) (ξ i)⟫_ℂ + simpa only [one_mul] using finiteVectorFunctional_apply M ξ a + · exact isNormalFunctional_of_mem_closure_coefficients M φ + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/OneDistillabilityDefs.lean b/LeanPool/VacuumBellSeparation/Bell/OneDistillabilityDefs.lean new file mode 100644 index 0000000000..30160d9e20 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/OneDistillabilityDefs.lean @@ -0,0 +1,44 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.BipartiteNormalStateDefs +public import LeanPool.VacuumBellSeparation.Bell.StateExtension +public import LeanPool.VacuumBellSeparation.FreeField.StrongContinuity +public import Mathlib.Analysis.CStarAlgebra.CompletelyPositiveMap + +/-! +Tensor observables and positivity under partial transpose for two qubits. +`Bell/DistillationScaling.lean` uses them to prove the scaling and +positive-mass facts for two-qubit output functionals. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder CStarAlgebra + +/-- Qubit algebra defined as `CStarMatrix (Fin 2) (Fin 2) ℂ`. -/ +abbrev QubitAlgebra := CStarMatrix (Fin 2) (Fin 2) ℂ +/-- The algebra of complex matrices on the tensor product of two qubit spaces. -/ +abbrev TwoQubitAlgebra := CStarMatrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ + +/-- The actual tensor matrix in the ordered product of the two standard bases. -/ +def qubitTensor (X Y : QubitAlgebra) : TwoQubitAlgebra := + CStarMatrix.ofMatrix fun i j => X i.1 j.1 * Y i.2 j.2 + +/-- Transpose the first matrix factor, with no complex conjugation. -/ +def partialTransposeLeft (Z : TwoQubitAlgebra) : TwoQubitAlgebra := + CStarMatrix.ofMatrix fun i j => Z (j.1, i.2) (i.1, j.2) + +/-- Positivity of the partially transposed output functional, not of its input. -/ +def TwoQubitPPT (τ : TwoQubitAlgebra →ₚ[ℂ] ℂ) : Prop := + ∀ Z : TwoQubitAlgebra, 0 ≤ Z → 0 ≤ τ (partialTransposeLeft Z) + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/OperationalReehSchliederDefs.lean b/LeanPool/VacuumBellSeparation/Bell/OperationalReehSchliederDefs.lean new file mode 100644 index 0000000000..6b3d83adb2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/OperationalReehSchliederDefs.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.BicommutantOrbit + +/-! +# The explicitly corrected operational Reeh–Schlieder property + +VW05 Lemma 6.1 prints a strict estimate for every ambient R. At R=0 +this asks for 0<0. We record that literal predicate separately, use a +strict bound only for nonzero R and require the exact equality at zero. +The quantified non-strict all-R version is proved equivalent separately. +The selected expectation is the original numerator divided by its actual +positive selection weight; its nonzero denominator is explicit. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The selected vector-state expectation in Lemma 6.1(1) of +[Verch and Werner](https://arxiv.org/pdf/quant-ph/0403089v3#page=13). -/ +def operationalSelectedValue (Ω : H) (a R : H →L[ℂ] H) : ℂ := + ⟪Ω, (star a * R * a) Ω⟫_ℂ / ⟪Ω, (star a * a) Ω⟫_ℂ + +/-- Approximation of every unit-vector state by a normalized selection from the given algebra. -/ +def HasOperationalReehSchlieder (A : StarSubalgebra ℂ (H →L[ℂ] H)) (Ω : H) : Prop := + ∀ χ : H, ‖χ‖ = 1 → ∀ ε : ℝ, 0 < ε → ∃ a : A, + ⟪Ω, (star (a : H →L[ℂ] H) * (a : H →L[ℂ] H)) Ω⟫_ℂ ≠ 0 ∧ + ⟪χ, (0 : H →L[ℂ] H) χ⟫_ℂ = operationalSelectedValue Ω a 0 ∧ + ∀ R : H →L[ℂ] H, R ≠ 0 → + ‖⟪χ, R χ⟫_ℂ - operationalSelectedValue Ω a R‖ < ε * ‖R‖ + +/-- Operational Reeh–Schlieder condition with a non-strict bound for all test operators. -/ +def HasOperationalReehSchliederLe (A : StarSubalgebra ℂ (H →L[ℂ] H)) (Ω : H) : Prop := + ∀ χ : H, ‖χ‖ = 1 → ∀ ε : ℝ, 0 < ε → ∃ a : A, + ⟪Ω, (star (a : H →L[ℂ] H) * (a : H →L[ℂ] H)) Ω⟫_ℂ ≠ 0 ∧ + ∀ R : H →L[ℂ] H, + ‖⟪χ, R χ⟫_ℂ - operationalSelectedValue Ω a R‖ ≤ ε * ‖R‖ + +/-- The uncorrected printed all-R strict formula; it is false for a unit Ω. -/ +def PrintedStrictOperationalReehSchlieder + (A : StarSubalgebra ℂ (H →L[ℂ] H)) (Ω : H) : Prop := + ∀ χ : H, ‖χ‖ = 1 → ∀ ε : ℝ, 0 < ε → ∃ a : A, + ∀ R : H →L[ℂ] H, + ‖⟪χ, R χ⟫_ℂ - operationalSelectedValue Ω a R‖ < ε * ‖R‖ + +@[simp] theorem operationalSelectedValue_zero (Ω : H) (a : H →L[ℂ] H) : + operationalSelectedValue Ω a 0 = 0 := by + simp only [operationalSelectedValue, mul_zero, zero_mul, + zero_apply, inner_zero_right, zero_div] + +theorem operationalSelectedValue_eq_pairing (Ω : H) (a R : H →L[ℂ] H) : + operationalSelectedValue Ω a R = ⟪a Ω, R (a Ω)⟫_ℂ / ⟪a Ω, a Ω⟫_ℂ := by + simp only [operationalSelectedValue, mul_apply_eq_comp, + ContinuousLinearMap.star_eq_adjoint, ContinuousLinearMap.adjoint_inner_right] + +theorem operationalSelectionWeight_eq_norm_sq (Ω : H) (a : H →L[ℂ] H) : + ⟪Ω, (star a * a) Ω⟫_ℂ = (‖a Ω‖ : ℂ) ^ 2 := by + simp only [mul_apply_eq_comp, ContinuousLinearMap.star_eq_adjoint, + ContinuousLinearMap.adjoint_inner_right, inner_self_eq_norm_sq_to_K, + RCLike.ofReal_eq_complex_ofReal] + +theorem operationalSelectionWeight_ne_zero_iff (Ω : H) (a : H →L[ℂ] H) : + ⟪Ω, (star a * a) Ω⟫_ℂ ≠ 0 ↔ a Ω ≠ 0 := by + rw [operationalSelectionWeight_eq_norm_sq] + simp only [ne_eq, pow_eq_zero_iff (by norm_num : (2 : ℕ) ≠ 0), + Complex.ofReal_eq_zero, norm_eq_zero] + +theorem operationalSelectionWeight_re_pos (Ω : H) (a : H →L[ℂ] H) + (ha : a Ω ≠ 0) : 0 < (⟪Ω, (star a * a) Ω⟫_ℂ).re := by + rw [operationalSelectionWeight_eq_norm_sq, ← Complex.ofReal_pow, Complex.ofReal_re] + exact sq_pos_of_pos (norm_pos_iff.mpr ha) + +theorem operationalSelectedValue_of_unit (Ω : H) (a R : H →L[ℂ] H) + (ha : ‖a Ω‖ = 1) : operationalSelectedValue Ω a R = ⟪a Ω, R (a Ω)⟫_ℂ := by + rw [operationalSelectedValue_eq_pairing, inner_self_eq_norm_sq_to_K, + ha, RCLike.ofReal_one, one_pow, div_one] + +theorem not_printedStrictOperationalReehSchlieder + (A : StarSubalgebra ℂ (H →L[ℂ] H)) (Ω : H) (hΩ : ‖Ω‖ = 1) : + ¬ PrintedStrictOperationalReehSchlieder A Ω := by + intro h + obtain ⟨a, ha⟩ := h Ω hΩ 1 zero_lt_one + have hzero := ha 0 + simp only [zero_apply, inner_zero_right, operationalSelectedValue_zero, sub_self, + norm_zero, mul_zero, lt_self_iff_false] at hzero + +theorem operationalReehSchlieder_iff_le + (A : StarSubalgebra ℂ (H →L[ℂ] H)) (Ω : H) : + HasOperationalReehSchlieder A Ω ↔ HasOperationalReehSchliederLe A Ω := by + constructor + · intro h χ hχ ε hε + obtain ⟨a, ha, hz, hb⟩ := h χ hχ ε hε + refine ⟨a, ha, fun R => ?_⟩ + by_cases hR : R = 0 + · subst R + simp only [zero_apply, inner_zero_right, + operationalSelectedValue_zero, sub_self, norm_zero, mul_zero, le_refl] + · exact (hb R hR).le + · intro h χ hχ ε hε + obtain ⟨a, ha, hb⟩ := h χ hχ (ε / 2) (by positivity) + refine ⟨a, ha, ?_, fun R hR => ?_⟩ + · simp only [zero_apply, inner_zero_right, operationalSelectedValue_zero] + · exact (hb R).trans_lt (mul_lt_mul_of_pos_right (by linarith) (norm_pos_iff.mpr hR)) + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/OrthogonalProjectionStrongZero.lean b/LeanPool/VacuumBellSeparation/Bell/OrthogonalProjectionStrongZero.lean new file mode 100644 index 0000000000..1e75e98b58 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/OrthogonalProjectionStrongZero.lean @@ -0,0 +1,124 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.ProperIsometryMatrixUnits + +/-! +# Strong decay of orthogonal projections + +Finite sums of mutually orthogonal star projections are themselves star +projections. Their norm bound yields Bessel's estimate for every original +Hilbert-space vector. Summability of squared norms then gives strong decay. +No completeness of the projection family or sum-to-identity assumption is used. +-/ + +@[expose] public section + +universe u v +namespace VacuumBellSeparation + +open Filter +open scoped Topology InnerProductSpace BigOperators + +variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Every finite partial sum is an actual orthogonal projection. -/ +theorem isStarProjection_sum_of_pairwise {ι : Type v} (P : ι → H →L[ℂ] H) + (hp : ∀ i, IsStarProjection (P i)) + (horth : Pairwise (fun i j => P i * P j = 0)) (s : Finset ι) : + IsStarProjection (∑ i ∈ s, P i) := by + classical + induction s using Finset.induction_on with + | empty => simpa only [Finset.sum_empty] using IsStarProjection.zero (H →L[ℂ] H) + | @insert i s hi ih => + rw [Finset.sum_insert hi] + apply (hp i).add ih + rw [Finset.mul_sum] + apply Finset.sum_eq_zero + intro j hj + exact horth (by intro he; subst j; exact hi hj) + +/-- Idempotence and self-adjointness identify the actual projected square norm. -/ +theorem re_inner_projection_apply (P : H →L[ℂ] H) (hp : IsStarProjection P) (x : H) : + RCLike.re ⟪P x, x⟫_ℂ = ‖P x‖ ^ 2 := by + have hid : P (P x) = P x := by + change (P * P) x = P x + rw [(isStarProjection_iff'.mp hp).1] + have hs := (ContinuousLinearMap.isSelfAdjoint_iff_isSymmetric.mp hp.isSelfAdjoint) (P x) x + change ⟪P (P x), x⟫_ℂ = ⟪P x, P x⟫_ℂ at hs + rw [hid] at hs + calc + RCLike.re ⟪P x, x⟫_ℂ = RCLike.re ⟪P x, P x⟫_ℂ := congrArg RCLike.re hs + _ = ‖P x‖ ^ 2 := (InnerProductSpace.norm_sq_eq_re_inner (𝕜 := ℂ) (P x)).symm + +/-- Bessel's finite inequality for arbitrary mutually orthogonal projections. -/ +theorem sum_norm_projection_sq_le {ι : Type v} (P : ι → H →L[ℂ] H) + (hp : ∀ i, IsStarProjection (P i)) + (horth : Pairwise (fun i j => P i * P j = 0)) (s : Finset ι) (x : H) : + ∑ i ∈ s, ‖P i x‖ ^ 2 ≤ ‖x‖ ^ 2 := by + let Q : H →L[ℂ] H := ∑ i ∈ s, P i + have hQ : IsStarProjection Q := isStarProjection_sum_of_pairwise P hp horth s + have hQx : ‖Q x‖ ≤ ‖x‖ := (Q.le_opNorm x).trans + (by simpa only [one_mul] using + mul_le_mul_of_nonneg_right (IsStarProjection.norm_le Q hQ) (norm_nonneg x)) + calc + ∑ i ∈ s, ‖P i x‖ ^ 2 = ∑ i ∈ s, RCLike.re ⟪P i x, x⟫_ℂ := by + apply Finset.sum_congr rfl + intro i hi + exact (re_inner_projection_apply (P i) (hp i) x).symm + _ = RCLike.re ⟪Q x, x⟫_ℂ := by + simp only [Q, sum_apply, sum_inner, map_sum] + _ ≤ ‖⟪Q x, x⟫_ℂ‖ := RCLike.re_le_norm _ + _ ≤ ‖Q x‖ * ‖x‖ := norm_inner_le_norm _ _ + _ ≤ ‖x‖ ^ 2 := (mul_le_mul_of_nonneg_right hQx (norm_nonneg x)).trans_eq (by ring) + +/-- No separability of H and no completeness of the family are required. -/ +theorem summable_norm_projection_sq (P : ℕ → H →L[ℂ] H) + (hp : ∀ n, IsStarProjection (P n)) + (horth : Pairwise (fun i j => P i * P j = 0)) (x : H) : + Summable (fun n => ‖P n x‖ ^ 2) := by + exact summable_of_sum_le (fun n => sq_nonneg ‖P n x‖) + (fun s => sum_norm_projection_sq_le P hp horth s x) + +/-- Strong convergence means convergence at every vector of the full H. -/ +theorem orthogonal_projections_strong_tendsto_zero (P : ℕ → H →L[ℂ] H) + (hp : ∀ n, IsStarProjection (P n)) + (horth : Pairwise (fun i j => P i * P j = 0)) (x : H) : + Tendsto (fun n => P n x) atTop (𝓝 0) := by + apply tendsto_zero_iff_norm_tendsto_zero.mpr + have h := (summable_norm_projection_sq P hp horth x).tendsto_atTop_zero.sqrt + simpa only [Real.sqrt_sq_eq_abs, abs_norm, Real.sqrt_zero] using h + +/-- The two adjacent corners used in the Bell construction also vanish strongly. -/ +theorem adjacent_orthogonal_corners_strong_tendsto_zero (P : ℕ → H →L[ℂ] H) + (hp : ∀ n, IsStarProjection (P n)) + (horth : Pairwise (fun i j => P i * P j = 0)) (x : H) : + Tendsto (fun n => (P n + P (n + 1)) x) atTop (𝓝 0) := by + have h := orthogonal_projections_strong_tendsto_zero P hp horth x + have hs := h.comp (tendsto_add_atTop_nat 1) + simpa only [add_apply, Function.comp_def, zero_add] using h.add hs + +namespace ProperIsometry + +/-- The actual matrix-unit diagonal family of one isometry tends strongly to +zero, even when its sum is a proper subprojection of the identity. -/ +theorem diagonal_strong_tendsto_zero {v : H →L[ℂ] H} + (hv : star v * v = 1) (x : H) : + Tendsto (fun n => matrixUnit v n n x) atTop (𝓝 0) := by + exact orthogonal_projections_strong_tendsto_zero (fun n => matrixUnit v n n) + (diagonal_projection hv) (fun i j hij => diagonal_orthogonal hv hij) x + +theorem adjacent_corner_strong_tendsto_zero {v : H →L[ℂ] H} + (hv : star v * v = 1) (x : H) : + Tendsto (fun n => (matrixUnit v n n + matrixUnit v (n + 1) (n + 1)) x) + atTop (𝓝 0) := by + exact adjacent_orthogonal_corners_strong_tendsto_zero (fun n => matrixUnit v n n) + (diagonal_projection hv) (fun i j hij => diagonal_orthogonal hv hij) x + +end ProperIsometry +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/OrthogonalProjectionSupremum.lean b/LeanPool/VacuumBellSeparation/Bell/OrthogonalProjectionSupremum.lean new file mode 100644 index 0000000000..f6af091d97 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/OrthogonalProjectionSupremum.lean @@ -0,0 +1,151 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.OrthogonalProjectionStrongZero +public import LeanPool.VacuumBellSeparation.Bell.VectorFunctionalNormal +public import LeanPool.VacuumBellSeparation.Bell.StateExtension +public import Mathlib.Analysis.CStarAlgebra.Projection +public import Mathlib.Topology.Order.MonotoneConvergence + +/-! +Arbitrary orthogonal projection families in the original concrete VNA. +The net is indexed by all finite subsets, including the empty subset. +There is no separability, countability or nonzero-H assumption. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter +open scoped Topology ComplexOrder BigOperators + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The finite sum statement in the actual algebra subtype. -/ +theorem isStarProjection_finite_sum_vna (M : VonNeumannAlgebra H) {ι : Type*} + (P : ι → M.toStarSubalgebra) (hp : ∀ i, IsStarProjection (P i)) + (ho : Pairwise (fun i j => P i * P j = 0)) (F : Finset ι) : + IsStarProjection (∑ i ∈ F, P i) := by + classical + induction F using Finset.induction_on with + | empty => simpa only [Finset.sum_empty] using IsStarProjection.zero M.toStarSubalgebra + | @insert i F hi ih => + rw [Finset.sum_insert hi] + apply (hp i).add ih + rw [Finset.mul_sum] + exact Finset.sum_eq_zero fun j hj => ho (by intro he; subst j; exact hi hj) + +/-- An actual projection supremum, with strong convergence of all finite sums +and a least-upper-bound assertion in the full positive operator order. -/ +theorem exists_orthogonal_projection_supremum (M : VonNeumannAlgebra H) {ι : Type*} + (P : ι → M.toStarSubalgebra) (hp : ∀ i, IsStarProjection (P i)) + (ho : Pairwise (fun i j => P i * P j = 0)) : + ∃ Q : M.toStarSubalgebra, IsStarProjection Q ∧ + IsLUB (Set.range (fun F : Finset ι => ∑ i ∈ F, P i)) Q ∧ + (∀ i, P i ≤ Q) ∧ + (∀ x : H, Tendsto (fun F : Finset ι => + ((∑ i ∈ F, P i : M.toStarSubalgebra) : H →L[ℂ] H) x) + atTop (𝓝 ((Q : H →L[ℂ] H) x))) := by + classical + let A : Finset ι → M.toStarSubalgebra := fun F => ∑ i ∈ F, P i + have hA (F : Finset ι) : IsStarProjection (A F) := + isStarProjection_finite_sum_vna M P hp ho F + have hmono : Monotone A := by + intro F G hFG + exact Finset.sum_le_sum_of_subset_of_nonneg hFG (fun i _ _ => (hp i).nonneg) + have hbound (F : Finset ι) : A F ≤ 1 := sub_nonneg.mp (hA F).one_sub.nonneg + obtain ⟨T, hT, hTpos, hsup⟩ := + Gaussian.exists_strongLimit_of_monotone_nonneg_bounded + (fun F => (A F : H →L[ℂ] H)) (fun _ _ h => hmono h) + (fun F => (hA F).nonneg) 1 hbound + have hTM : T ∈ M := mem_vonNeumannAlgebra_of_strong_tendsto M + (Eventually.of_forall fun F => (A F).2) hT + let Q : M.toStarSubalgebra := ⟨T, hTM⟩ + have hQA (F : Finset ι) : T * (A F : H →L[ℂ] H) = A F := by + apply ContinuousLinearMap.ext + intro x + apply tendsto_nhds_unique (hT ((A F : H →L[ℂ] H) x)) + apply tendsto_const_nhds.congr' + filter_upwards [eventually_ge_atTop F] with G hFG + have he := (hA F).le_iff_mul_eq_right (hA G) |>.mp (hmono hFG) + exact congrArg (fun B : M.toStarSubalgebra => (B : H →L[ℂ] H) x) he.symm + have hTT : T * T = T := by + apply ContinuousLinearMap.ext + intro x + have hleft := T.continuous.tendsto (T x) |>.comp (hT x) + have he (F : Finset ι) : T ((A F : H →L[ℂ] H) x) = (A F : H →L[ℂ] H) x := + congrArg (fun B : H →L[ℂ] H => B x) (hQA F) + exact tendsto_nhds_unique (hleft.congr (fun F => he F)) (hT x) + have hQ : IsStarProjection Q := by + rw [isStarProjection_iff'] + exact ⟨Subtype.ext hTT, Subtype.ext hTpos.isSelfAdjoint.star_eq⟩ + have hQsup : IsLUB (Set.range A) Q := by + constructor + · rintro _ ⟨F, rfl⟩ + exact hsup.1 ⟨F, rfl⟩ + · intro B hB + exact hsup.2 (by rintro _ ⟨F, rfl⟩; exact hB ⟨F, rfl⟩) + refine ⟨Q, hQ, hQsup, ?_, hT⟩ + intro i + simpa only [A, Finset.sum_singleton] using hQsup.1 ⟨{i}, rfl⟩ + +/-- Order normality gives convergence along an arbitrary monotone net, +not merely the net indexed by its image set. -/ +theorem normalFunctional_tendsto_monotone_net (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M φ) + {ι : Type*} [Preorder ι] [IsDirectedOrder ι] [Nonempty ι] + (A : ι → M.toStarSubalgebra) (hmono : Monotone A) (hp : ∀ i, 0 ≤ A i) + (Q : M.toStarSubalgebra) (hQ : IsLUB (Set.range A) Q) : + Tendsto (fun i => (φ (A i)).re) atTop (𝓝 (φ Q).re) := by + have hd : DirectedOn (· ≤ ·) (Set.range A) := by + rintro _ ⟨i, rfl⟩ _ ⟨j, rfl⟩ + obtain ⟨k, hik, hjk⟩ := exists_ge_ge i j + exact ⟨A k, ⟨k, rfl⟩, hmono hik, hmono hjk⟩ + have he : Set.range (fun i => (φ (A i)).re) = + (fun X => (φ X).re) '' Set.range A := by + ext r + constructor + · rintro ⟨i, rfl⟩; exact ⟨A i, ⟨i, rfl⟩, rfl⟩ + · rintro ⟨_, ⟨i, rfl⟩, rfl⟩; exact ⟨i, rfl⟩ + apply tendsto_atTop_isLUB + · intro i j hij + exact (Complex.le_def.mp (φ.monotone' (hmono hij))).1 + · rw [he] + exact hn _ (Set.range_nonempty A) hd (by rintro _ ⟨i, rfl⟩; exact hp i) Q hQ + +/-- Projectionwise comparison survives the arbitrary orthogonal sum. -/ +theorem normalFunctional_comparison_orthogonal_supremum (M : VonNeumannAlgebra H) + (φ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hφ : IsNormalFunctional M φ) (hψ : IsNormalFunctional M ψ) + {ι : Type*} (P : ι → M.toStarSubalgebra) + (hp : ∀ i, IsStarProjection (P i)) + (hcomp : ∀ i, (ψ (P i)).re ≤ (φ (P i)).re) + (Q : M.toStarSubalgebra) + (hQ : IsLUB (Set.range (fun F : Finset ι => ∑ i ∈ F, P i)) Q) : + (ψ Q).re ≤ (φ Q).re := by + classical + let A : Finset ι → M.toStarSubalgebra := fun F => ∑ i ∈ F, P i + have hmono : Monotone A := fun F G hFG => + Finset.sum_le_sum_of_subset_of_nonneg hFG (fun i _ _ => (hp i).nonneg) + have hpos (F : Finset ι) : 0 ≤ A F := Finset.sum_nonneg fun i _ => (hp i).nonneg + apply le_of_tendsto_of_tendsto + (normalFunctional_tendsto_monotone_net M ψ hψ A hmono hpos Q hQ) + (normalFunctional_tendsto_monotone_net M φ hφ A hmono hpos Q hQ) + have hsum (θ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (F : Finset ι) : + (θ (A F)).re = ∑ i ∈ F, (θ (P i)).re := by + change Complex.reCLM (θ (∑ i ∈ F, P i)) = _ + rw [map_sum] + exact map_sum Complex.reCLM _ _ + exact Eventually.of_forall fun F => by + change (ψ (A F)).re ≤ (φ (A F)).re + rw [hsum ψ F, hsum φ F] + exact Finset.sum_le_sum fun i _ => hcomp i + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/OscillatorWeylCommutant.lean b/LeanPool/VacuumBellSeparation/Bell/OscillatorWeylCommutant.lean new file mode 100644 index 0000000000..223e3887df --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/OscillatorWeylCommutant.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WeylIrreducibility +public import LeanPool.VacuumBellSeparation.FreeField.Isotony +public import LeanPool.VacuumBellSeparation.Bell.AmbientWeakStarBellSequence + +/-! +# The actual oscillator Weyl commutant + +Commutation with every Weyl operator implies commutation with the genuine +Gaussian vector integral, hence with the vacuum rank-one projection. +The vacuum is therefore an eigenvector; its total coherent orbit forces +the operator to be scalar. The actual Weyl double commutant is all bounded +operators. This concerns the constructed oscillator representation only. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory ContinuousLinearMap InnerProductSpace +open scoped InnerProductSpace ComplexConjugate + +variable {n : ℕ} + +theorem commutes_weylVacuumIntegral + (A : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n) + (hA : ∀ z : MultiModePhaseSpace n, A * multiOscillatorWeyl z = multiOscillatorWeyl z * A) : + A * weylVacuumIntegral n = weylVacuumIntegral n * A := by + apply ContinuousLinearMap.ext + intro x + simp only [mul_apply_eq_comp, weylVacuumIntegral_apply] + rw [← A.integral_comp_comm (integrable_weylVacuumOrbit x)] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun z => by + change A (weylVacuumWeight n z • multiOscillatorWeyl (WithLp.toLp 2 z) x) = + weylVacuumWeight n z • multiOscillatorWeyl (WithLp.toLp 2 z) (A x) + rw [map_smul] + congr 1 + exact congrArg (fun T => T x) (hA (WithLp.toLp 2 z)) + +/-- The actual canonical oscillator Weyl commutant consists of scalar operators. -/ +theorem oscillatorWeyl_commutant_scalar + (A : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n) + (hA : ∀ z : MultiModePhaseSpace n, A * multiOscillatorWeyl z = multiOscillatorWeyl z * A) : + ∃ c : ℂ, A = c • 1 := by + let v := multiExponentialVector (0 : Fin n → ℂ) + have hv : ⟪v, v⟫_ℂ = 1 := by + dsimp only [v] + rw [inner_multiExponentialVector] + simp only [Pi.zero_apply, map_zero, zero_mul, Finset.sum_const_zero, Complex.exp_zero] + have hp : (Real.pi : ℂ) ^ n ≠ 0 := + pow_ne_zero _ (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero) + have hP := commutes_weylVacuumIntegral A hA + rw [weylVacuumIntegral_eq_rankOne] at hP + have hP' := congrArg (fun T : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n => + ((Real.pi : ℂ) ^ n)⁻¹ • T) hP + simp only [mul_smul_comm, smul_mul_assoc, smul_smul, inv_mul_cancel₀ hp, one_smul] at hP' + have hAv : A v = ⟪v, A v⟫_ℂ • v := by + have he := congrArg + (fun T : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n => T v) hP' + change A (⟪v, v⟫_ℂ • v) = ⟪v, A v⟫_ℂ • v at he + simpa only [hv, one_smul] using he + refine ⟨⟪v, A v⟫_ℂ, ?_⟩ + apply continuousLinearMap_eq_of_dense_span (multiCoherentVector (m := n)) + (multiCoherentVector_dense_span n) + intro z + rw [← multiOscillatorWeyl_exponential_zero z] + change A (multiOscillatorWeyl z v) = ⟪v, A v⟫_ℂ • multiOscillatorWeyl z v + calc + A (multiOscillatorWeyl z v) = multiOscillatorWeyl z (A v) := by + simpa only [mul_apply_eq_comp] using + congrArg (fun T : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n => T v) (hA z) + _ = multiOscillatorWeyl z (⟪v, A v⟫_ℂ • v) := congrArg (multiOscillatorWeyl z) hAv + _ = ⟪v, A v⟫_ℂ • multiOscillatorWeyl z v := map_smul _ _ _ + +/-- The genuine canonical Weyl family generates every bounded oscillator operator. -/ +theorem generatedVNA_oscillatorWeyl_eq_top (n : ℕ) : + generatedVNA (Set.range (multiOscillatorWeyl (m := n))) = + Bipartite.fullOperatorAlgebra (MultiModeOscillatorSpace n) := by + apply SetLike.ext + intro T + constructor + · intro _ + trivial + intro _ + apply VonNeumannAlgebra.mem_commutant_iff.mpr + intro A hA + have hc : ∀ z : MultiModePhaseSpace n, + A * multiOscillatorWeyl z = multiOscillatorWeyl z * A := by + intro z + exact (((StarSubalgebra.mem_centralizer_iff ℂ).mp hA) _ ⟨z, rfl⟩).1.symm + obtain ⟨c, rfl⟩ := oscillatorWeyl_commutant_scalar A hc + simp only [smul_mul_assoc, mul_smul_comm, one_mul, mul_one] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/PhysicalOscillatorCoordinates.lean b/LeanPool/VacuumBellSeparation/Bell/PhysicalOscillatorCoordinates.lean new file mode 100644 index 0000000000..1eefe3de3c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/PhysicalOscillatorCoordinates.lean @@ -0,0 +1,122 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.RealCoordinateWeyl +public import LeanPool.VacuumBellSeparation.Gaussian.PhysicalGaussianHusimi + +/-! +# Oscillator labels with the literal physical covariance convention + +The raw real displacement is Ωᵀx/√2. This rotation and scale give both +the source Weyl phase exp(-i xᵀΩy/2) and the source characteristic +exp(-xᵀVx/2) for the existing physical Gaussian density convention. +The label map is a genuine real linear equivalence for every mode count. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Matrix + +/-- Linear equivalence for the physical oscillator label, of type `(Fin n × Fin 2 → ℝ) ≃ₗ[ℝ] +MultiModePhaseSpace n where toFun x`. -/ +noncomputable def physicalOscillatorLabel (n : ℕ) : + (Fin n × Fin 2 → ℝ) ≃ₗ[ℝ] MultiModePhaseSpace n where + toFun x := (complexRealLinearEquiv n).symm + ((Real.sqrt 2)⁻¹ • (modeSymplecticFormᵀ *ᵥ x)) + invFun z := Real.sqrt 2 • (modeSymplecticForm *ᵥ complexRealLinearEquiv n z) + left_inv x := by + have hn : Real.sqrt 2 ≠ 0 := (Real.sqrt_pos.2 (by norm_num)).ne' + simp only [LinearEquiv.apply_symm_apply, Matrix.mulVec_smul, Matrix.mulVec_mulVec, + modeSymplecticForm_mul_transpose, Matrix.one_mulVec, smul_smul, + mul_inv_cancel₀ hn, one_smul] + right_inv z := by + have hn : Real.sqrt 2 ≠ 0 := (Real.sqrt_pos.2 (by norm_num)).ne' + simp only [Matrix.mulVec_smul, Matrix.mulVec_mulVec, + modeSymplecticForm_transpose_mul, Matrix.one_mulVec, smul_smul, + inv_mul_cancel₀ hn, one_smul, LinearEquiv.symm_apply_apply] + map_add' x y := by simp only [Matrix.mulVec_add, smul_add, map_add] + map_smul' a x := by simp only [Matrix.mulVec_smul, smul_comm _ a, map_smul, RingHom.id_apply] + +theorem physicalOscillatorLabel_realCoordinates {n : ℕ} (x : Fin n × Fin 2 → ℝ) : + complexRealLinearEquiv n (physicalOscillatorLabel n x) = + (Real.sqrt 2)⁻¹ • (modeSymplecticFormᵀ *ᵥ x) := + (complexRealLinearEquiv n).apply_symm_apply _ + +theorem sqrt_two_inv_mul_self : (Real.sqrt 2)⁻¹ * (Real.sqrt 2)⁻¹ = (1 / 2 : ℝ) := by + rw [← mul_inv, Real.mul_self_sqrt (by norm_num : (0 : ℝ) ≤ 2)] + norm_num + +theorem physicalOscillatorLabel_symplectic {n : ℕ} (x y : Fin n × Fin 2 → ℝ) : + (Real.sqrt 2)⁻¹ • (modeSymplecticFormᵀ *ᵥ x) ⬝ᵥ + (modeSymplecticForm *ᵥ ((Real.sqrt 2)⁻¹ • (modeSymplecticFormᵀ *ᵥ y))) = + x ⬝ᵥ (modeSymplecticForm *ᵥ y) / 2 := by + rw [real_bilinear_smul, sqrt_two_inv_mul_self, dotProduct_congruence, + Matrix.mul_assoc, modeSymplecticForm_mul_transpose, Matrix.mul_one] + ring + +theorem physicalOscillatorLabel_covariance {n : ℕ} + (V : Matrix (Fin n × Fin 2) (Fin n × Fin 2) ℝ) (x y : Fin n × Fin 2 → ℝ) : + (Real.sqrt 2)⁻¹ • (modeSymplecticFormᵀ *ᵥ x) ⬝ᵥ + (physicalDisplacementCovariance V *ᵥ + ((Real.sqrt 2)⁻¹ • (modeSymplecticFormᵀ *ᵥ y))) = + x ⬝ᵥ (V *ᵥ y) / 2 := by + have hrot : modeSymplecticForm * physicalDisplacementCovariance V * modeSymplecticFormᵀ = V := by + unfold physicalDisplacementCovariance + calc + _ = (modeSymplecticForm * modeSymplecticFormᵀ) * V * + (modeSymplecticForm * modeSymplecticFormᵀ) := by noncomm_ring + _ = V := by rw [modeSymplecticForm_mul_transpose, Matrix.one_mul, Matrix.mul_one] + rw [real_bilinear_smul, sqrt_two_inv_mul_self, dotProduct_congruence, hrot] + ring + +/-- Continuous linear map for the physical oscillator Weyl, of type `MultiModeOscillatorSpace n +→L[ℂ] MultiModeOscillatorSpace n`. -/ +noncomputable def physicalOscillatorWeyl {n : ℕ} (x : Fin n × Fin 2 → ℝ) : + MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n := + multiOscillatorWeyl (physicalOscillatorLabel n x) + +theorem physicalOscillatorWeyl_zero (n : ℕ) : + physicalOscillatorWeyl (0 : Fin n × Fin 2 → ℝ) = 1 := by + rw [physicalOscillatorWeyl, map_zero, multiOscillatorWeyl_zero] + +theorem physicalOscillatorWeyl_star {n : ℕ} (x : Fin n × Fin 2 → ℝ) : + star (physicalOscillatorWeyl x) = physicalOscillatorWeyl (-x) := by + simp only [physicalOscillatorWeyl, ContinuousLinearMap.star_eq_adjoint, + multiOscillatorWeyl_adjoint, map_neg] + +theorem physicalOscillatorWeyl_mul {n : ℕ} (x y : Fin n × Fin 2 → ℝ) : + physicalOscillatorWeyl x * physicalOscillatorWeyl y = + Complex.exp (-(Complex.I * ((x ⬝ᵥ (modeSymplecticForm *ᵥ y) / 2 : ℝ) : ℂ))) • + physicalOscillatorWeyl (x + y) := by + rw [physicalOscillatorWeyl, physicalOscillatorWeyl, multiOscillatorWeyl_mul, + weylPhase, inner_im_eq_real_symplectic] + simp only [id_eq] + rw [physicalOscillatorLabel_realCoordinates, physicalOscillatorLabel_realCoordinates, + physicalOscillatorLabel_symplectic] + simp only [physicalOscillatorWeyl, map_add] + +theorem range_physicalOscillatorWeyl (n : ℕ) : + Set.range (physicalOscillatorWeyl (n := n)) = + Set.range (multiOscillatorWeyl (m := n)) := by + exact (physicalOscillatorLabel n).surjective.range_comp multiOscillatorWeyl + +/-- The physical Gaussian convention agrees with the literal source covariance. -/ +theorem gaussianPhysical_physicalOscillatorWeyl {n : ℕ} + {A : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n} + {V : Matrix (Fin n × Fin 2) (Fin n × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) (x : Fin n × Fin 2 → ℝ) : + densityExpectation (multiModeNumberBasis n) A (physicalOscillatorWeyl x) = + ((Real.exp (-(x ⬝ᵥ (V *ᵥ x) / 2)) : ℝ) : ℂ) := by + change densityExpectation (multiModeNumberBasis n) A + (realCoordinateWeyl ((Real.sqrt 2)⁻¹ • (modeSymplecticFormᵀ *ᵥ x))) = _ + rw [gaussianDisplacement_realCoordinateWeyl hG, physicalOscillatorLabel_covariance, + Complex.ofReal_exp] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/PhysicalPurification.lean b/LeanPool/VacuumBellSeparation/Bell/PhysicalPurification.lean new file mode 100644 index 0000000000..923508986d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/PhysicalPurification.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.PhysicalOscillatorCoordinates +public import LeanPool.VacuumBellSeparation.Bell.PurifiedWeylCyclicity +public import LeanPool.VacuumBellSeparation.Bell.ProjectiveCyclicEquivalence + +/-! +# Gaussian purification in the physical Weyl coordinates + +The full label equivalence transports the proved oscillator purification +cyclicity. Basis independence identifies its vector characteristic with the +literal physical covariance. Matching source projective data then supplies +an actual unitary on the source cyclic subspace and actual intertwining. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Matrix +open scoped InnerProductSpace + +variable {n : ℕ} + {ρ : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n} + (hρ : IsFaithfulDensity ρ) + +theorem faithfulDensityPurification_physicalWeyl_cyclic : + closedCyclicSpan (fun x => hilbertAmplification (operatorEigenIndex ρ) + (physicalOscillatorWeyl x) (faithfulDensityPurification hρ)) = ⊤ := by + have hr := (physicalOscillatorLabel n).surjective.range_comp + (fun z => hilbertAmplification (operatorEigenIndex ρ) + (multiOscillatorWeyl z) (faithfulDensityPurification hρ)) + unfold closedCyclicSpan + change (Submodule.span ℂ (Set.range (fun x => hilbertAmplification (operatorEigenIndex ρ) + (multiOscillatorWeyl (physicalOscillatorLabel n x)) + (faithfulDensityPurification hρ)))).topologicalClosure = ⊤ + simp only [Function.comp_def] at hr + rw [hr] + exact faithfulDensityPurification_weyl_cyclic hρ + +theorem faithfulDensityPurification_physical_characteristic + {V : Matrix (Fin n × Fin 2) (Fin n × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic ρ V) (x : Fin n × Fin 2 → ℝ) : + ⟪faithfulDensityPurification hρ, hilbertAmplification (operatorEigenIndex ρ) + (physicalOscillatorWeyl x) (faithfulDensityPurification hρ)⟫_ℂ = + ((Real.exp (-(x ⬝ᵥ (V *ᵥ x) / 2)) : ℝ) : ℂ) := by + change densityExpectation (positiveTraceClassEigenbasis hρ.isPositiveTraceClass) + ρ (physicalOscillatorWeyl x) = _ + rw [densityExpectation_eq _ (multiModeNumberBasis n) hρ.isPositiveTraceClass, + gaussianPhysical_physicalOscillatorWeyl hG] + +theorem amplifiedPhysicalWeyl_mul (x y : Fin n × Fin 2 → ℝ) : + hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl x) * + hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl y) = + Complex.exp (-(Complex.I * ((x ⬝ᵥ (modeSymplecticForm *ᵥ y) / 2 : ℝ) : ℂ))) • + hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl (x + y)) := by + apply ContinuousLinearMap.ext + intro u + apply lp.ext + funext i + have h := congrArg (fun A : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n => + A (u i)) (physicalOscillatorWeyl_mul x y) + simpa only [mul_apply_eq_comp, smul_apply, + hilbertAmplification_apply, lp.coeFn_smul, Pi.smul_apply] using h + +theorem amplifiedPhysicalWeyl_star (x : Fin n × Fin 2 → ℝ) : + star (hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl x)) = + hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl (-x)) := by + rw [← hilbertAmplification_star, physicalOscillatorWeyl_star] + +local instance physicalClosedOrbitComplete {Z H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (W : Z → H →L[ℂ] H) (v : H) : + CompleteSpace (closedCyclicSpan (fun x => W x v)) := by + unfold closedCyclicSpan + infer_instance + +/-- An actual cyclic representation equivalence for a faithful physical +Gaussian characteristic. Source Weyl relations are explicit and will be +instantiated by the original finite-source operators. -/ +theorem exists_physical_gaussian_cyclic_unitary + {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (W : (Fin n × Fin 2 → ℝ) → H →L[ℂ] H) (v : H) + (hmul : ∀ x y, W x * W y = + Complex.exp (-(Complex.I * ((x ⬝ᵥ (modeSymplecticForm *ᵥ y) / 2 : ℝ) : ℂ))) • W (x + y)) + (hstar : ∀ x, star (W x) = W (-x)) + {V : Matrix (Fin n × Fin 2) (Fin n × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic ρ V) + (hchar : ∀ x, ⟪v, W x v⟫_ℂ = ((Real.exp (-(x ⬝ᵥ (V *ᵥ x) / 2)) : ℝ) : ℂ)) : + ∃ U : closedCyclicSpan (fun x => W x v) ≃ₗᵢ[ℂ] + lp (fun _ : operatorEigenIndex ρ => MultiModeOscillatorSpace n) 2, + (∀ x, U (cyclicSpanVector (fun x => W x v) x) = + hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl x) + (faithfulDensityPurification hρ)) ∧ + (∀ z, U.toContinuousLinearEquiv.toContinuousLinearMap.comp + (compression (closedCyclicSpan (fun x => W x v)).subtypeₗᵢ (W z)) = + (hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl z)).comp + U.toContinuousLinearEquiv.toContinuousLinearMap) := by + apply exists_projective_cyclic_unitary W + (fun x => hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl x)) _ + hmul (amplifiedPhysicalWeyl_mul (ρ := ρ)) hstar (amplifiedPhysicalWeyl_star (ρ := ρ)) + v (faithfulDensityPurification hρ) (faithfulDensityPurification_physicalWeyl_cyclic hρ) + intro x + rw [hchar, faithfulDensityPurification_physical_characteristic hρ hG] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/PositiveFunctionalCompressionApproximation.lean b/LeanPool/VacuumBellSeparation/Bell/PositiveFunctionalCompressionApproximation.lean new file mode 100644 index 0000000000..5d001962a6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/PositiveFunctionalCompressionApproximation.lean @@ -0,0 +1,108 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.PositiveStateCompression + +/-! +Projection compression converges in the full dual norm when lost mass +vanishes. No normalization, nonzero functional or positive total mass is +assumed. The quantitative factor uses the actual continuous functional norm. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Filter +open scoped Topology ComplexOrder + +variable {C : Type*} [CStarAlgebra C] [PartialOrder C] [StarOrderedRing C] + +private theorem functional_sqrt_star_mul_le (φ : C →ₚ[ℂ] ℂ) (x : C) : + Real.sqrt ‖φ (star x * x)‖ ≤ + Real.sqrt ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap‖ * ‖x‖ := by + let K := ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap‖ + apply Real.sqrt_le_iff.mpr + refine ⟨mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _), ?_⟩ + calc + ‖φ (star x * x)‖ ≤ K * ‖star x * x‖ := + (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap.le_opNorm _ + _ = K * ‖x‖ ^ 2 := by rw [CStarRing.norm_star_mul_self, pow_two] + _ = (Real.sqrt K * ‖x‖) ^ 2 := by + rw [mul_pow, Real.sq_sqrt (norm_nonneg _)] + +private theorem functional_sqrt_mul_star_le (φ : C →ₚ[ℂ] ℂ) (x : C) : + Real.sqrt ‖φ (x * star x)‖ ≤ + Real.sqrt ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap‖ * ‖x‖ := by + simpa only [star_star, norm_star] using functional_sqrt_star_mul_le φ (star x) + +/-- Uniform error on every observable for an arbitrary positive functional. -/ +theorem positiveFunctional_compression_apply_error_le (φ : C →ₚ[ℂ] ℂ) + (q : C) (hq : IsStarProjection q) (x : C) : + ‖φ x - compressionFunctional φ q x‖ ≤ + 2 * Real.sqrt ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap‖ * + Real.sqrt ‖φ (1 - q)‖ * ‖x‖ := by + let K := Real.sqrt ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap‖ + let e := 1 - q + have he : IsStarProjection e := hq.one_sub + have hleft : ‖φ (e * x)‖ ≤ Real.sqrt ‖φ e‖ * (K * ‖x‖) := by + have h := PositiveLinearMap.cauchy_schwarz_star_mul φ e x + rw [he.isSelfAdjoint.star_eq, he.isIdempotentElem.eq] at h + exact h.trans (mul_le_mul_of_nonneg_left + (functional_sqrt_star_mul_le φ x) (Real.sqrt_nonneg _)) + have hright : ‖φ (q * x * e)‖ ≤ (K * ‖x‖) * Real.sqrt ‖φ e‖ := by + have h := PositiveLinearMap.cauchy_schwarz_mul_star φ (q * x) e + rw [he.isSelfAdjoint.star_eq, he.isIdempotentElem.eq] at h + have hn : ‖q * x‖ ≤ ‖x‖ := calc + ‖q * x‖ ≤ ‖q‖ * ‖x‖ := norm_mul_le _ _ + _ ≤ 1 * ‖x‖ := mul_le_mul_of_nonneg_right (IsStarProjection.norm_le q hq) (norm_nonneg x) + _ = ‖x‖ := one_mul _ + exact h.trans (mul_le_mul_of_nonneg_right + ((functional_sqrt_mul_star_le φ (q * x)).trans + (mul_le_mul_of_nonneg_left hn (Real.sqrt_nonneg _))) (Real.sqrt_nonneg _)) + have hx : x - star q * x * q = e * x + q * x * e := by + rw [hq.isSelfAdjoint.star_eq] + dsimp [e] + noncomm_ring + calc + ‖φ x - compressionFunctional φ q x‖ = ‖φ (e * x) + φ (q * x * e)‖ := by + rw [compressionFunctional_apply, ← map_sub, hx, map_add] + _ ≤ ‖φ (e * x)‖ + ‖φ (q * x * e)‖ := norm_add_le _ _ + _ ≤ Real.sqrt ‖φ e‖ * (K * ‖x‖) + (K * ‖x‖) * Real.sqrt ‖φ e‖ := + add_le_add hleft hright + _ = _ := by dsimp [K, e]; ring + +/-- The estimate is the norm of the entire dual, with no unit-mass premise. -/ +theorem positiveFunctional_compression_dual_error_le (φ : C →ₚ[ℂ] ℂ) + (q : C) (hq : IsStarProjection q) : + ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap - compressionDual φ q‖ ≤ + 2 * Real.sqrt ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap‖ * + Real.sqrt ‖φ (1 - q)‖ := by + apply ContinuousLinearMap.opNorm_le_bound _ (by positivity) + exact positiveFunctional_compression_apply_error_le φ q hq + +/-- Arbitrary filter version, including zero functionals and zero spaces. -/ +theorem positiveFunctional_compression_tendsto_of_lost_mass_zero + (φ : C →ₚ[ℂ] ℂ) {ι : Type*} {l : Filter ι} + (q : ι → C) (hq : ∀ i, IsStarProjection (q i)) + (hm : Tendsto (fun i => ‖φ (1 - q i)‖) l (𝓝 0)) : + Tendsto (fun i => compressionDual φ (q i)) l + (𝓝 (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap) := by + apply tendsto_iff_norm_sub_tendsto_zero.mpr + have hb : Tendsto (fun i => + 2 * Real.sqrt ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap‖ * + Real.sqrt ‖φ (1 - q i)‖) l (𝓝 0) := by + simpa only [Real.sqrt_zero, mul_zero] using hm.sqrt.const_mul + (2 * Real.sqrt ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap‖) + apply squeeze_zero' (Eventually.of_forall fun _ => norm_nonneg _) ?_ hb + exact Eventually.of_forall fun i => by + rw [norm_sub_rev] + exact positiveFunctional_compression_dual_error_le φ (q i) (hq i) + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/PositiveStateCompression.lean b/LeanPool/VacuumBellSeparation/Bell/PositiveStateCompression.lean new file mode 100644 index 0000000000..f9c7b41cb4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/PositiveStateCompression.lean @@ -0,0 +1,185 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.DistillationScaling +public import Mathlib.Analysis.CStarAlgebra.GelfandNaimarkSegal + +/-! +# Norm approximation by actual projection compression + +This is an ingredient for the normal-state corollary following HC00 +Proposition 1. It applies to every positive unital functional, without +assuming that the functional is a vector state in a chosen representation. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped ComplexOrder + +variable {C : Type*} [CStarAlgebra C] [PartialOrder C] [StarOrderedRing C] + +/-- Actual conjugation, positive on the original algebra. -/ +def compressionPositive (q : C) : C →ₚ[ℂ] C where + toFun x := star q * x * q + map_add' x y := by simp only [mul_add, add_mul] + map_smul' c x := by simp only [mul_smul_comm, smul_mul_assoc, RingHom.id_apply] + monotone' := fun _ _ h => star_left_conjugate_le_conjugate h q + +@[simp] theorem compressionPositive_apply (q x : C) : + compressionPositive q x = star q * x * q := rfl + +/-- The compressed positive functional is not silently normalized. -/ +def compressionFunctional (φ : C →ₚ[ℂ] ℂ) (q : C) : C →ₚ[ℂ] ℂ := + φ.comp (compressionPositive q) + +@[simp] theorem compressionFunctional_apply (φ : C →ₚ[ℂ] ℂ) (q x : C) : + compressionFunctional φ q x = φ (star q * x * q) := rfl + +/-- The actual operator-norm continuous functional supplied by positivity. -/ +def compressionDual (φ : C →ₚ[ℂ] ℂ) (q : C) : StrongDual ℂ C := + (PositiveContinuousLinearMap.ofClass (compressionFunctional φ q)).toContinuousLinearMap + +private theorem state_sqrt_star_mul_le_norm (φ : C →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) + (x : C) : Real.sqrt ‖φ (star x * x)‖ ≤ ‖x‖ := by + apply Real.sqrt_le_iff.mpr + refine ⟨norm_nonneg x, ?_⟩ + calc + ‖φ (star x * x)‖ ≤ ‖star x * x‖ := stateFunctional_norm_apply_le φ hφ _ + _ = ‖x‖ ^ 2 := by rw [CStarRing.norm_star_mul_self, pow_two] + +private theorem state_sqrt_mul_star_le_norm (φ : C →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) + (x : C) : Real.sqrt ‖φ (x * star x)‖ ≤ ‖x‖ := by + simpa only [star_star, norm_star] using state_sqrt_star_mul_le_norm φ hφ (star x) + +/-- Uniform on every observable, not merely pointwise convergence. -/ +theorem state_compression_apply_error_le (φ : C →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) + (q : C) (hq : IsStarProjection q) (x : C) : + ‖φ x - compressionFunctional φ q x‖ ≤ 2 * Real.sqrt ‖φ (1 - q)‖ * ‖x‖ := by + let e := 1 - q + have he : IsStarProjection e := hq.one_sub + have hleft : ‖φ (e * x)‖ ≤ Real.sqrt ‖φ e‖ * ‖x‖ := by + have h := PositiveLinearMap.cauchy_schwarz_star_mul φ e x + rw [he.isSelfAdjoint.star_eq, he.isIdempotentElem.eq] at h + exact h.trans (mul_le_mul_of_nonneg_left + (state_sqrt_star_mul_le_norm φ hφ x) (Real.sqrt_nonneg _)) + have hright : ‖φ (q * x * e)‖ ≤ ‖x‖ * Real.sqrt ‖φ e‖ := by + have h := PositiveLinearMap.cauchy_schwarz_mul_star φ (q * x) e + rw [he.isSelfAdjoint.star_eq, he.isIdempotentElem.eq] at h + have hn : ‖q * x‖ ≤ ‖x‖ := calc + ‖q * x‖ ≤ ‖q‖ * ‖x‖ := norm_mul_le _ _ + _ ≤ 1 * ‖x‖ := mul_le_mul_of_nonneg_right (IsStarProjection.norm_le q hq) (norm_nonneg x) + _ = ‖x‖ := one_mul _ + exact h.trans (mul_le_mul_of_nonneg_right + ((state_sqrt_mul_star_le_norm φ hφ (q * x)).trans hn) (Real.sqrt_nonneg _)) + have hx : x - star q * x * q = e * x + q * x * e := by + rw [hq.isSelfAdjoint.star_eq] + dsimp [e] + noncomm_ring + calc + ‖φ x - compressionFunctional φ q x‖ = ‖φ (e * x) + φ (q * x * e)‖ := by + rw [compressionFunctional_apply, ← map_sub, hx, map_add] + _ ≤ ‖φ (e * x)‖ + ‖φ (q * x * e)‖ := norm_add_le _ _ + _ ≤ Real.sqrt ‖φ e‖ * ‖x‖ + ‖x‖ * Real.sqrt ‖φ e‖ := add_le_add hleft hright + _ = 2 * Real.sqrt ‖φ (1 - q)‖ * ‖x‖ := by dsimp [e]; ring + +/-- The norm here is the norm of the full dual, not the weak-star topology. -/ +theorem state_compression_dual_error_le (φ : C →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) + (q : C) (hq : IsStarProjection q) : + ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap - + compressionDual φ q‖ ≤ 2 * Real.sqrt ‖φ (1 - q)‖ := by + apply ContinuousLinearMap.opNorm_le_bound _ (by positivity) + intro x + exact state_compression_apply_error_le φ hφ q hq x + +/-- Normalization uses the genuine mass of the projection; positivity of +this mass is a premise of the normalization theorem, not of approximation. -/ +def normalizedCompression (φ : C →ₚ[ℂ] ℂ) (q : C) : C →ₚ[ℂ] ℂ := + distillationScaleFunctional (‖φ q‖⁻¹) (inv_nonneg.mpr (norm_nonneg _)) + (compressionFunctional φ q) + +@[simp] theorem normalizedCompression_apply (φ : C →ₚ[ℂ] ℂ) (q x : C) : + normalizedCompression φ q x = ‖φ q‖⁻¹ • φ (star q * x * q) := rfl + +theorem normalizedCompression_one (φ : C →ₚ[ℂ] ℂ) (q : C) + (hq : IsStarProjection q) (hp : 0 < ‖φ q‖) : + normalizedCompression φ q 1 = 1 := by + have he : φ q = (‖φ q‖ : ℂ) := Complex.eq_coe_norm_of_nonneg (φ.map_nonneg hq.nonneg) + rw [normalizedCompression_apply, mul_one, hq.isSelfAdjoint.star_eq, + hq.isIdempotentElem.eq] + calc + ‖φ q‖⁻¹ • φ q = ‖φ q‖⁻¹ • (‖φ q‖ : ℂ) := + congrArg (fun z : ℂ => ‖φ q‖⁻¹ • z) he + _ = 1 := by + simp only [Complex.real_smul, ← Complex.ofReal_mul, + inv_mul_cancel₀ hp.ne', Complex.ofReal_one] + +/-- A Bell operator equal to the identity on the surviving subspace has +exact expectation one in the normalized compressed state. -/ +theorem normalizedCompression_eq_one_of_mul_eq (φ : C →ₚ[ℂ] ℂ) (q R : C) + (hq : IsStarProjection q) (hp : 0 < ‖φ q‖) (hRq : R * q = q) : + normalizedCompression φ q R = 1 := by + have he : star q * R * q = star q * 1 * q := by + rw [mul_assoc, hRq, mul_one] + calc + normalizedCompression φ q R = normalizedCompression φ q 1 := by + simp only [normalizedCompression_apply, he] + _ = 1 := normalizedCompression_one φ q hq hp + +theorem state_projection_mass_complement (φ : C →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) + (q : C) (hq : IsStarProjection q) : ‖φ q‖ + ‖φ (1 - q)‖ = 1 := by + have hqreal : (φ q).re = ‖φ q‖ := by + simpa only [Complex.ofReal_re] using congrArg Complex.re + (Complex.eq_coe_norm_of_nonneg (φ.map_nonneg hq.nonneg)) + have hereal : (φ (1 - q)).re = ‖φ (1 - q)‖ := by + simpa only [Complex.ofReal_re] using congrArg Complex.re + (Complex.eq_coe_norm_of_nonneg (φ.map_nonneg hq.one_sub.nonneg)) + have h := congrArg Complex.re (show φ q + φ (1 - q) = 1 by + rw [← map_add, show q + (1 - q) = 1 by abel, hφ]) + simpa only [Complex.add_re, hqreal, hereal, Complex.one_re] using h + +theorem normalizedCompression_apply_error_le (φ : C →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) + (q : C) (hq : IsStarProjection q) (hp : 0 < ‖φ q‖) (x : C) : + ‖φ x - normalizedCompression φ q x‖ ≤ + (2 * Real.sqrt ‖φ (1 - q)‖ + ‖φ (1 - q)‖) * ‖x‖ := by + have hmass := state_projection_mass_complement φ hφ q hq + have hscale : compressionFunctional φ q x = ‖φ q‖ • normalizedCompression φ q x := by + change φ (star q * x * q) = ‖φ q‖ • (‖φ q‖⁻¹ • φ (star q * x * q)) + rw [smul_smul, mul_inv_cancel₀ hp.ne', one_smul] + have hdiff : compressionFunctional φ q x - normalizedCompression φ q x = + (-‖φ (1 - q)‖) • normalizedCompression φ q x := by + calc + _ = (‖φ q‖ - 1) • normalizedCompression φ q x := by + rw [sub_smul, one_smul, hscale] + _ = _ := by congr 1; linarith + have hb : ‖compressionFunctional φ q x - normalizedCompression φ q x‖ ≤ + ‖φ (1 - q)‖ * ‖x‖ := by + rw [hdiff, norm_smul, Real.norm_eq_abs, abs_neg, abs_of_nonneg (norm_nonneg _)] + exact mul_le_mul_of_nonneg_left + (stateFunctional_norm_apply_le _ (normalizedCompression_one φ q hq hp) x) + (norm_nonneg _) + calc + ‖φ x - normalizedCompression φ q x‖ ≤ + ‖φ x - compressionFunctional φ q x‖ + + ‖compressionFunctional φ q x - normalizedCompression φ q x‖ := + norm_sub_le_norm_sub_add_norm_sub _ _ _ + _ ≤ 2 * Real.sqrt ‖φ (1 - q)‖ * ‖x‖ + ‖φ (1 - q)‖ * ‖x‖ := + add_le_add (state_compression_apply_error_le φ hφ q hq x) hb + _ = _ := by ring + +theorem normalizedCompression_dual_error_le (φ : C →ₚ[ℂ] ℂ) (hφ : φ 1 = 1) + (q : C) (hq : IsStarProjection q) (hp : 0 < ‖φ q‖) : + ‖(PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap - + (PositiveContinuousLinearMap.ofClass (normalizedCompression φ q)).toContinuousLinearMap‖ ≤ + 2 * Real.sqrt ‖φ (1 - q)‖ + ‖φ (1 - q)‖ := by + apply ContinuousLinearMap.opNorm_le_bound _ (by positivity) + exact normalizedCompression_apply_error_le φ hφ q hq hp + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/ProbabilityCriterion.lean b/LeanPool/VacuumBellSeparation/Bell/ProbabilityCriterion.lean new file mode 100644 index 0000000000..35bd80ec1a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/ProbabilityCriterion.lean @@ -0,0 +1,226 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Cells +public import LeanPool.VacuumBellSeparation.Probability.CellChain + +/-! +# The probability criterion for the classical CHSH bound + +This file assembles the operator-algebraic part of Theorem 3.1 (`thm:probability`) of the +manuscript from the real-number box lemma `chsh_box_le_one` and the cell lemmas of +`VacuumBellSeparation.Bell.Cells`. + +## Main results + +* `chshValue_le_one_of_event_bounds` : for a state `ω` on two commuting von Neumann algebras, + if the two event bounds hold on sets `SA`, `SB` of operators containing the outcome + effects `(1 ± Aᵢ)/2`, `(1 ± Bⱼ)/2` of a quartet of self-adjoint contractions, and the + clustering bound and the cutoff inequality (3.5) hold, then the CHSH value of the quartet + is at most `1`. +* `bellCorrelation_eq_one_of_effect_bounds` : the **effect form** of Theorem 3.1: if the + event bounds hold for all pairs of local *effects*, then `β(ω; 𝔄, 𝔅) = 1`. + +## Relation to the manuscript + +This module proves the criterion for local effects, with the event bounds assumed for all pairs of +local effects, as (8.9)–(8.10) give them. The manuscript states and applies Theorem 3.1 in its +projection form (event bounds for local *projections*, through the constants `K_{r,±}` of (3.1), +bounded in (8.11)); that form is `probability_criterion` in `VacuumBellSeparation.Bell.Theorem31`, +which the main proof applies (`freeFieldBell_unit_eq_one`, `FreeField/MainReduction.lean`). + +The event bounds are stated with real constants `Kp`, `Km` in denominator-free form: +`ω(EP)^{r₊} ≤ Kp (ω(E)ω(P))^{r₊-1}` and `(ω(E)ω(P))^{r₋} ≤ Km ω(EP)^{r₋-1}`. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The negative of a self-adjoint contraction is a self-adjoint contraction. -/ +theorem neg_mem_saContractions {M : VonNeumannAlgebra H} {A : H →L[ℂ] H} + (hA : A ∈ saContractions M) : -A ∈ saContractions M := + ⟨neg_mem hA.1, hA.2.1.neg, by rw [norm_neg]; exact hA.2.2⟩ + +/-- The identity is a self-adjoint contraction of every von Neumann algebra. -/ +theorem one_mem_saContractions (M : VonNeumannAlgebra H) : + (1 : H →L[ℂ] H) ∈ saContractions M := + ⟨one_mem M, by simp, + ContinuousLinearMap.opNorm_le_bound _ zero_le_one (fun x => by simp)⟩ + +/-- The identity is an effect of every von Neumann algebra. -/ +theorem one_mem_effects (M : VonNeumannAlgebra H) : (1 : H →L[ℂ] H) ∈ effects M := + ⟨one_mem M, ContinuousLinearMap.isPositive_one, by + rw [sub_self]; exact ContinuousLinearMap.isPositive_zero⟩ + +/-- Core step: for two families `A, B : Bool → B(H)` of local self-adjoint contractions +(settings `false`, `true`), the expectation of the CHSH operator in the state `ω` is a real +number `s` +with `s / 2 ≤ 1`, provided the event bounds hold on sets containing all outcome effects. -/ +theorem chsh_family_le + (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {rp rm Kp Km q : ℝ} (hrp : 1 < rp) (hrm : 1 < rm) (hη : 0 < expEta rp rm) + (hKp : 0 < Kp) (hKm : 0 < Km) (SA SB : Set (H →L[ℂ] H)) + (hup : ∀ E ∈ SA, ∀ P ∈ SB, + (ω (E * P)).re ^ rp ≤ Kp * ((ω E).re * (ω P).re) ^ (rp - 1)) + (hlow : ∀ E ∈ SA, ∀ P ∈ SB, + ((ω E).re * (ω P).re) ^ rm ≤ Km * (ω (E * P)).re ^ (rm - 1)) + (hcl : ∀ A ∈ saContractions 𝔄, ∀ B ∈ saContractions 𝔅, + ‖ω (A * B) - ω A * ω B‖ ≤ q) + (hcut : q ^ expEta rp rm * Kp ^ nuPlus rp rm * Km ^ nuMinus rm + ≤ (2 : ℝ) ^ (-(2 / (expA rm * expB rp)))) + (A B : Bool → H →L[ℂ] H) + (hA : ∀ i, A i ∈ saContractions 𝔄) (hB : ∀ j, B j ∈ saContractions 𝔅) + (hSA : ∀ i α, outcomeEffect (A i) α ∈ SA) (hSB : ∀ j β, outcomeEffect (B j) β ∈ SB) : + ∃ s : ℝ, ω (chshOp (A false) (A true) (B false) (B true)) = (s : ℂ) ∧ + (1 / 2 : ℝ) * s ≤ 1 := by + have hcorr : ∀ i j, ω (A i * B j) = + ((boxCorr (fun i j α β => cellProb ω (A i) (B j) α β) i j : ℝ) : ℂ) := + fun i j => state_mul_eq_cells ω hcomm (hA i) (hB j) + have key : ∀ x : ℝ, ‖(x : ℂ)‖ = |x| := fun x => by + rw [Complex.norm_real, Real.norm_eq_abs] + have hbox := chsh_box_le_one hrp hrm hη hKp hKm + (fun i j α β => cellProb ω (A i) (B j) α β) + (fun i α => outcomeProb ω (A i) α) (fun j β => outcomeProb ω (B j) β) + (fun i j α β => cellProb_nonneg ω hcomm (hA i) (hB j) α β) + (fun i j α => cellProb_add_right ω (A i) (B j) α) + (fun i j β => cellProb_add_left ω (A i) (B j) β) + (fun i => outcomeProb_true_add_false ω (A i)) + (fun i j α β => hup _ (hSA i α) _ (hSB j β)) + (fun i j α β => hlow _ (hSA i α) _ (hSB j β)) + (fun i j => by + have h := hcl _ (hA i) _ (hB j) + rw [hcorr i j, state_eq_outcomes ω (hA i), state_eq_outcomes ω (hB j), + ← Complex.ofReal_mul, ← Complex.ofReal_sub, key] at h + exact h) + hcut + refine ⟨_, ?_, hbox⟩ + have hop : chshOp (A false) (A true) (B false) (B true) + = A false * B false + A false * B true + A true * B false - A true * B true := by + unfold chshOp + rw [mul_add, mul_sub] + abel + rw [hop, map_sub, map_add, map_add, hcorr, hcorr, hcorr, hcorr] + simp only [Complex.ofReal_sub, Complex.ofReal_add] + +/-- If the event bounds hold on sets `SA`, `SB` containing the outcome effects of the +quartet `(±A₀, ±A₁, B₀, B₁)`, then its CHSH value is at most `1`. -/ +theorem chshValue_le_one_of_event_bounds + (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {rp rm Kp Km q : ℝ} (hrp : 1 < rp) (hrm : 1 < rm) (hη : 0 < expEta rp rm) + (hKp : 0 < Kp) (hKm : 0 < Km) (SA SB : Set (H →L[ℂ] H)) + (hup : ∀ E ∈ SA, ∀ P ∈ SB, + (ω (E * P)).re ^ rp ≤ Kp * ((ω E).re * (ω P).re) ^ (rp - 1)) + (hlow : ∀ E ∈ SA, ∀ P ∈ SB, + ((ω E).re * (ω P).re) ^ rm ≤ Km * (ω (E * P)).re ^ (rm - 1)) + (hcl : ∀ A ∈ saContractions 𝔄, ∀ B ∈ saContractions 𝔅, + ‖ω (A * B) - ω A * ω B‖ ≤ q) + (hcut : q ^ expEta rp rm * Kp ^ nuPlus rp rm * Km ^ nuMinus rm + ≤ (2 : ℝ) ^ (-(2 / (expA rm * expB rp)))) + {A₀ A₁ B₀ B₁ : H →L[ℂ] H} + (hA₀ : A₀ ∈ saContractions 𝔄) (hA₁ : A₁ ∈ saContractions 𝔄) + (hB₀ : B₀ ∈ saContractions 𝔅) (hB₁ : B₁ ∈ saContractions 𝔅) + (hSA : ∀ α, outcomeEffect A₀ α ∈ SA ∧ outcomeEffect A₁ α ∈ SA ∧ + outcomeEffect (-A₀) α ∈ SA ∧ outcomeEffect (-A₁) α ∈ SA) + (hSB : ∀ β, outcomeEffect B₀ β ∈ SB ∧ outcomeEffect B₁ β ∈ SB) : + (1 / 2 : ℝ) * ‖ω (chshOp A₀ A₁ B₀ B₁)‖ ≤ 1 := by + have hB : ∀ j : Bool, cond j B₁ B₀ ∈ saContractions 𝔅 := by + intro j + cases j + · exact hB₀ + · exact hB₁ + have hSB' : ∀ (j : Bool) (β : Bool), outcomeEffect (cond j B₁ B₀) β ∈ SB := by + intro j β + cases j + · exact (hSB β).1 + · exact (hSB β).2 + have hA : ∀ i : Bool, cond i A₁ A₀ ∈ saContractions 𝔄 := by + intro i + cases i + · exact hA₀ + · exact hA₁ + have hSA' : ∀ (i : Bool) (α : Bool), outcomeEffect (cond i A₁ A₀) α ∈ SA := by + intro i α + cases i + · exact (hSA α).1 + · exact (hSA α).2.1 + have hAn : ∀ i : Bool, cond i (-A₁) (-A₀) ∈ saContractions 𝔄 := by + intro i + cases i + · exact neg_mem_saContractions hA₀ + · exact neg_mem_saContractions hA₁ + have hSAn : ∀ (i : Bool) (α : Bool), outcomeEffect (cond i (-A₁) (-A₀)) α ∈ SA := by + intro i α + cases i + · exact (hSA α).2.2.1 + · exact (hSA α).2.2.2 + obtain ⟨s, hs, hs1⟩ : ∃ s : ℝ, ω (chshOp A₀ A₁ B₀ B₁) = (s : ℂ) ∧ (1 / 2 : ℝ) * s ≤ 1 := + chsh_family_le ω hcomm hrp hrm hη hKp hKm SA SB hup hlow hcl hcut + (fun i => cond i A₁ A₀) (fun j => cond j B₁ B₀) hA hB hSA' hSB' + obtain ⟨t, ht, ht1⟩ : + ∃ t : ℝ, ω (chshOp (-A₀) (-A₁) B₀ B₁) = (t : ℂ) ∧ (1 / 2 : ℝ) * t ≤ 1 := + chsh_family_le ω hcomm hrp hrm hη hKp hKm SA SB hup hlow hcl hcut + (fun i => cond i (-A₁) (-A₀)) (fun j => cond j B₁ B₀) hAn hB hSAn hSB' + have hneg : chshOp (-A₀) (-A₁) B₀ B₁ = -chshOp A₀ A₁ B₀ B₁ := by + unfold chshOp + rw [neg_mul, neg_mul, neg_add] + rw [hneg, map_neg, hs] at ht + have hts : t = -s := by + have h := congrArg Complex.re ht + simpa using h.symm + rw [hs, Complex.norm_real, Real.norm_eq_abs] + have habs : |s| ≤ 2 := abs_le.mpr ⟨by linarith, by linarith⟩ + linarith + +/-- **Theorem 3.1, effect form.** Let `ω` be a state and `𝔄`, `𝔅` commuting von Neumann +algebras. Let `r₊ > 2`, `1 < r₋ < 2` with `η > 0`. Suppose that for all effects `E ∈ 𝔄`, +`P ∈ 𝔅` the event bounds `ω(EP)^{r₊} ≤ K₊ (ω(E)ω(P))^{r₊-1}` and +`(ω(E)ω(P))^{r₋} ≤ K₋ ω(EP)^{r₋-1}` hold, that `|ω(AB) - ω(A)ω(B)| ≤ q` for all local +self-adjoint contractions, and that `q^η K₊^{ν₊} K₋^{ν₋} ≤ 2^{-2/(ab)}`. Then the +Summers–Werner Bell correlation equals `1`. -/ +theorem bellCorrelation_eq_one_of_effect_bounds + (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {rp rm Kp Km q : ℝ} (hrp : 2 < rp) (hrm : 1 < rm) (_hrm2 : rm < 2) + (hη : 0 < expEta rp rm) + (hup : ∀ E ∈ effects 𝔄, ∀ P ∈ effects 𝔅, + (ω (E * P)).re ^ rp ≤ Kp * ((ω E).re * (ω P).re) ^ (rp - 1)) + (hlow : ∀ E ∈ effects 𝔄, ∀ P ∈ effects 𝔅, + ((ω E).re * (ω P).re) ^ rm ≤ Km * (ω (E * P)).re ^ (rm - 1)) + (hcl : ∀ A ∈ saContractions 𝔄, ∀ B ∈ saContractions 𝔅, + ‖ω (A * B) - ω A * ω B‖ ≤ q) + (hcut : q ^ expEta rp rm * Kp ^ nuPlus rp rm * Km ^ nuMinus rm + ≤ (2 : ℝ) ^ (-(2 / (expA rm * expB rp)))) : + bellCorrelation ω 𝔄 𝔅 = 1 := by + have hKp : (1 : ℝ) ≤ Kp := by + simpa [ω.map_one'] using hup 1 (one_mem_effects 𝔄) 1 (one_mem_effects 𝔅) + have hKm : (1 : ℝ) ≤ Km := by + simpa [ω.map_one'] using hlow 1 (one_mem_effects 𝔄) 1 (one_mem_effects 𝔅) + have hle : ∀ x ∈ chshValues ω 𝔄 𝔅, x ≤ 1 := by + rintro x ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, rfl⟩ + exact chshValue_le_one_of_event_bounds ω hcomm (by linarith) hrm hη (by linarith) + (by linarith) (effects 𝔄) (effects 𝔅) hup hlow hcl hcut hA₀ hA₁ hB₀ hB₁ + (fun α => ⟨outcomeEffect_mem_effects hA₀ α, outcomeEffect_mem_effects hA₁ α, + outcomeEffect_mem_effects (neg_mem_saContractions hA₀) α, + outcomeEffect_mem_effects (neg_mem_saContractions hA₁) α⟩) + (fun β => ⟨outcomeEffect_mem_effects hB₀ β, outcomeEffect_mem_effects hB₁ β⟩) + have hone : (1 : ℝ) ∈ chshValues ω 𝔄 𝔅 := by + refine ⟨1, one_mem_saContractions 𝔄, 1, one_mem_saContractions 𝔄, + 1, one_mem_saContractions 𝔅, 1, one_mem_saContractions 𝔅, ?_⟩ + have h2 : chshOp (1 : H →L[ℂ] H) 1 1 1 = (2 : ℂ) • (1 : H →L[ℂ] H) := by + unfold chshOp + rw [sub_self, mul_zero, add_zero, one_mul, two_smul] + have h3 : ω (chshOp (1 : H →L[ℂ] H) 1 1 1) = ((2 : ℝ) : ℂ) := by + rw [h2, map_smul, ω.map_one'] + simp + rw [h3, Complex.norm_real, Real.norm_eq_abs, abs_two] + norm_num + exact le_antisymm (csSup_le ⟨1, hone⟩ hle) (le_csSup ⟨1, hle⟩ hone) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/ProjectionFunctionalOrder.lean b/LeanPool/VacuumBellSeparation/Bell/ProjectionFunctionalOrder.lean new file mode 100644 index 0000000000..69cbafb8f4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/ProjectionFunctionalOrder.lean @@ -0,0 +1,157 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.SpectralReflectionQuadraticIntegral +public import LeanPool.VacuumBellSeparation.Bell.KaplanskyContractions +public import LeanPool.VacuumBellSeparation.Bell.StateExtension +public import Mathlib.Analysis.SpecificLimits.Basic + +/-! +# Projection tests determine the order of continuous functionals + +Every positive contraction in an actual concrete von Neumann algebra is a +norm limit of positive averages of its actual spectral projections. Hence a +continuous real functional nonnegative on every projection is nonnegative +on the entire positive cone. No normality, trace, countability, finite +dimension or spectral-gap hypothesis is used here. + +This is the spectral step in the corner argument of Anantharaman--Popa, +Section 2.5, Lemma 2.5.6. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Filter ReflectionApprox +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Actual projections in M, with a uniform norm error. The number of summands +is positive; no assertion about a nonexistent average with zero terms is made. -/ +theorem exists_projection_average_near_positive_contraction (M : VonNeumannAlgebra H) + (a : M.toStarSubalgebra) (ha : 0 ≤ a) (han : ‖a‖ ≤ 1) + (N : ℕ) (hN : 0 < N) : + ∃ P : Fin N → M.toStarSubalgebra, (∀ k, IsStarProjection (P k)) ∧ + (∀ S : H →L[ℂ] H, IsSelfAdjoint S → Commute S (a : H →L[ℂ] H) → + ∀ k, Commute S (P k : H →L[ℂ] H)) ∧ + ‖a - (1 / (N : ℝ)) • ∑ k, P k‖ ≤ 1 / (N : ℝ) := by + classical + let A : H →L[ℂ] H := a + have hA : 0 ≤ A := ha + have hA1 : A ≤ 1 := (CStarAlgebra.norm_le_one_iff_of_nonneg A hA).mp han + let T : H →L[ℂ] H := (2 : ℝ) • A - 1 + have hT := two_smul_effect_sub_one_contraction hA hA1 + have hTM : T ∈ M := sub_mem + ((M.toStarSubalgebra.toSubalgebra.toSubmodule.restrictScalars ℝ).smul_mem 2 a.property) + (one_mem M) + let P : Fin N → M.toStarSubalgebra := fun k => + ⟨closedThresholdProjection T (threshold N k), closedThresholdProjection_mem M hTM _⟩ + have hP (k : Fin N) : IsStarProjection (P k) := by + refine ⟨?_, ?_⟩ + · apply Subtype.ext + exact closedThresholdProjection_idem T _ + · apply Subtype.ext + exact (closedThresholdProjection_isSelfAdjoint T _).star_eq + have hcomm (S : H →L[ℂ] H) (hS : IsSelfAdjoint S) + (hSa : Commute S (a : H →L[ℂ] H)) (k : Fin N) : + Commute S (P k : H →L[ℂ] H) := by + have hST : S * T = T * S := by + dsimp only [T, A] + simp only [mul_sub, sub_mul, mul_smul_comm, smul_mul_assoc, mul_one, one_mul, hSa.eq] + have hneg : S * (-T) = (-T) * S := by + simpa only [mul_neg, neg_mul] using congrArg Neg.neg hST + have hstar : star S * (-T) = (-T) * star S := by + rw [hS.star_eq] + exact hneg + have hc := thresholdProjection_commute hneg hstar (-(threshold N k)) + change S * (1 - thresholdProjection (-T) (-(threshold N k))) = + (1 - thresholdProjection (-T) (-(threshold N k))) * S + simp only [mul_sub, sub_mul, mul_one, one_mul, hc] + let S : H →L[ℂ] H := ∑ k : Fin N, (P k : H →L[ℂ] H) + have hsum : S = ∑ k ∈ Finset.range N, closedThresholdProjection T (threshold N k) := + Fin.sum_univ_eq_sum_range (fun k => closedThresholdProjection T (threshold N k)) N + have hn : ‖T - ((2 / (N : ℝ)) • S - 1)‖ ≤ 2 / (N : ℝ) := by + rw [hsum] + exact closedThreshold_chain_norm_le hT.1 hT.2 hN + have he : A - (1 / (N : ℝ)) • S = + (1 / 2 : ℝ) • (T - ((2 / (N : ℝ)) • S - 1)) := by + dsimp only [T] + module + have hb : ‖A - (1 / (N : ℝ)) • S‖ ≤ 1 / (N : ℝ) := by + rw [he, norm_smul, Real.norm_of_nonneg (by norm_num : (0 : ℝ) ≤ 1 / 2)] + calc + _ ≤ (1 / 2 : ℝ) * (2 / (N : ℝ)) := mul_le_mul_of_nonneg_left hn (by norm_num) + _ = 1 / (N : ℝ) := by ring + have hcoe : ((∑ k, P k : M.toStarSubalgebra) : H →L[ℂ] H) = S := + map_sum M.toStarSubalgebra.subtype P Finset.univ + refine ⟨P, hP, hcomm, ?_⟩ + change ‖(a : H →L[ℂ] H) - (1 / (N : ℝ)) • + ((∑ k, P k : M.toStarSubalgebra) : H →L[ℂ] H)‖ ≤ _ + rw [hcoe] + exact hb + +/-- Positivity on projections is sufficient; continuity is in the actual +operator norm on M, not an assumed ultraweak topology. -/ +theorem continuousRealFunctional_nonneg_of_projections (M : VonNeumannAlgebra H) + (f : M.toStarSubalgebra →L[ℝ] ℝ) + (hf : ∀ p : M.toStarSubalgebra, IsStarProjection p → 0 ≤ f p) + (a : M.toStarSubalgebra) (ha : 0 ≤ a) : 0 ≤ f a := by + classical + have hcontraction (b : M.toStarSubalgebra) (hb : 0 ≤ b) (hbn : ‖b‖ ≤ 1) : 0 ≤ f b := by + have hchoose (n : ℕ) := exists_projection_average_near_positive_contraction M b hb hbn + (n + 1) (Nat.succ_pos n) + choose P hP hcomm herror using hchoose + let q : ℕ → M.toStarSubalgebra := fun n => (1 / ((n + 1 : ℕ) : ℝ)) • ∑ k, P n k + have hq (n : ℕ) : 0 ≤ f (q n) := by + dsimp only [q] + rw [map_smul, map_sum, smul_eq_mul] + exact mul_nonneg (by positivity) (Finset.sum_nonneg fun k _ => hf _ (hP n k)) + have ht : Tendsto q atTop (𝓝 b) := by + rw [tendsto_iff_norm_sub_tendsto_zero] + apply squeeze_zero (fun n => norm_nonneg _) + (fun n => by simpa only [q, norm_sub_rev] using herror n) + simpa only [Nat.cast_add, Nat.cast_one] using + (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) + exact ge_of_tendsto (f.continuous.tendsto b |>.comp ht) + (Eventually.of_forall hq) + by_cases hz : a = 0 + · simp only [hz, map_zero, le_refl] + have hn : ‖a‖ ≠ 0 := norm_ne_zero_iff.mpr hz + have hscaled := hcontraction ((‖a‖⁻¹ : ℝ) • a) + (smul_nonneg (inv_nonneg.mpr (norm_nonneg a)) ha) + (norm_smul_inv_norm (𝕜 := ℝ) hz).le + have hr : a = (‖a‖ : ℝ) • ((‖a‖⁻¹ : ℝ) • a) := by + rw [smul_smul, mul_inv_cancel₀ hn, one_smul] + rw [hr, map_smul, smul_eq_mul] + exact mul_nonneg (norm_nonneg a) hscaled + +/-- A projection-only comparison extends to every positive observable. -/ +theorem continuousRealFunctional_le_of_projections (M : VonNeumannAlgebra H) + (f g : M.toStarSubalgebra →L[ℝ] ℝ) + (hfg : ∀ p : M.toStarSubalgebra, IsStarProjection p → f p ≤ g p) + (a : M.toStarSubalgebra) (ha : 0 ≤ a) : f a ≤ g a := by + have h := continuousRealFunctional_nonneg_of_projections M (g - f) + (fun p hp => sub_nonneg.mpr (hfg p hp)) a ha + exact sub_nonneg.mp h + +/-- The form needed for actual complex positive functionals. Their automatic +norm continuity is proved by the pinned C-star API, not added as a premise. -/ +theorem positiveFunctional_re_le_of_projections (M : VonNeumannAlgebra H) + (φ ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) + (hφψ : ∀ p : M.toStarSubalgebra, IsStarProjection p → (φ p).re ≤ (ψ p).re) + (a : M.toStarSubalgebra) (ha : 0 ≤ a) : (φ a).re ≤ (ψ a).re := by + let f : M.toStarSubalgebra →L[ℝ] ℝ := Complex.reCLM.comp + ((PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap.restrictScalars ℝ) + let g : M.toStarSubalgebra →L[ℝ] ℝ := Complex.reCLM.comp + ((PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap.restrictScalars ℝ) + exact continuousRealFunctional_le_of_projections M f g hφψ a ha + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/ProjectiveCyclicEquivalence.lean b/LeanPool/VacuumBellSeparation/Bell/ProjectiveCyclicEquivalence.lean new file mode 100644 index 0000000000..8ba95932f7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/ProjectiveCyclicEquivalence.lean @@ -0,0 +1,104 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.CyclicGramEquivalence +public import LeanPool.VacuumBellSeparation.Bell.CyclicSpanRestriction + +/-! +# Cyclic equivalence from genuine projective representation data + +Identical multiplication phases, adjoint labels and vector characteristics +give equal orbit Gram matrices. Density in the literal source cyclic +subspace is proved; target density remains explicit in this generic lemma. +The oscillator instantiation supplies it using faithful purification. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap +open scoped InnerProductSpace + +variable {Z H K : Type*} [AddGroup Z] + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K] + +omit [CompleteSpace H] in +theorem projective_closedOrbit_invariant (W : Z → H →L[ℂ] H) + (c : Z → Z → ℂ) (hmul : ∀ x y, W x * W y = c x y • W (x + y)) + (v : H) (z : Z) {x : H} (hx : x ∈ closedCyclicSpan (fun y => W y v)) : + W z x ∈ closedCyclicSpan (fun y => W y v) := by + apply closedCyclicSpan_invariant _ _ ?_ hx + intro y + rw [← mul_apply_eq_comp, hmul, smul_apply] + exact (closedCyclicSpan _).smul_mem _ (mem_closedCyclicSpan _ (z + y)) + +theorem projective_closedOrbit_reducing (W : Z → H →L[ℂ] H) + (c : Z → Z → ℂ) (hmul : ∀ x y, W x * W y = c x y • W (x + y)) + (hstar : ∀ x, star (W x) = W (-x)) (v : H) + (A : H →L[ℂ] H) (hA : A ∈ Set.range W) : + (∀ x ∈ closedCyclicSpan (fun y => W y v), A x ∈ closedCyclicSpan (fun y => W y v)) ∧ + (∀ x ∈ closedCyclicSpan (fun y => W y v), star A x ∈ closedCyclicSpan (fun y => W y v)) := by + obtain ⟨z, rfl⟩ := hA + refine ⟨fun x hx => projective_closedOrbit_invariant W c hmul v z hx, ?_⟩ + intro x hx + rw [hstar] + exact projective_closedOrbit_invariant W c hmul v (-z) hx + +theorem projective_orbit_gram (W : Z → H →L[ℂ] H) (c : Z → Z → ℂ) + (hmul : ∀ x y, W x * W y = c x y • W (x + y)) + (hstar : ∀ x, star (W x) = W (-x)) (v : H) (x y : Z) : + ⟪W x v, W y v⟫_ℂ = c (-x) y * ⟪v, W (-x + y) v⟫_ℂ := by + rw [← adjoint_inner_right, ← star_eq_adjoint, ← mul_apply_eq_comp, + hstar, hmul, smul_apply, inner_smul_right] + +local instance closedOrbit_complete (W : Z → H →L[ℂ] H) (v : H) : + CompleteSpace (closedCyclicSpan (fun x => W x v)) := by + unfold closedCyclicSpan + infer_instance + +/-- A concrete unitary on the actual source cyclic subspace, obtained from +matching projective relations and vector characteristics. -/ +theorem exists_projective_cyclic_unitary + (W : Z → H →L[ℂ] H) (W' : Z → K →L[ℂ] K) (c : Z → Z → ℂ) + (hmul : ∀ x y, W x * W y = c x y • W (x + y)) + (hmul' : ∀ x y, W' x * W' y = c x y • W' (x + y)) + (hstar : ∀ x, star (W x) = W (-x)) + (hstar' : ∀ x, star (W' x) = W' (-x)) (v : H) (v' : K) + (hd : closedCyclicSpan (fun x => W' x v') = ⊤) + (hchar : ∀ x, ⟪v, W x v⟫_ℂ = ⟪v', W' x v'⟫_ℂ) : + ∃ U : closedCyclicSpan (fun x => W x v) ≃ₗᵢ[ℂ] K, + (∀ x, U (cyclicSpanVector (fun x => W x v) x) = W' x v') ∧ + (∀ z, U.toContinuousLinearEquiv.toContinuousLinearMap.comp + (compression (closedCyclicSpan (fun x => W x v)).subtypeₗᵢ (W z)) = + (W' z).comp U.toContinuousLinearEquiv.toContinuousLinearMap) := by + have hgram (x y : Z) : + ⟪cyclicSpanVector (fun x => W x v) x, cyclicSpanVector (fun x => W x v) y⟫_ℂ = + ⟪W' x v', W' y v'⟫_ℂ := by + change ⟪W x v, W y v⟫_ℂ = _ + rw [projective_orbit_gram W c hmul hstar, projective_orbit_gram W' c hmul' hstar', hchar] + obtain ⟨U, hU⟩ := exists_unitary_equiv_of_dense_gram + (cyclicSpanVector (fun x => W x v)) (fun x => W' x v') + (cyclicSpanVector_dense _) hd hgram + refine ⟨U, hU, fun z => ?_⟩ + refine cyclic_unitary_intertwines + (cyclicSpanVector (fun x => W x v)) + (cyclicSpanVector_dense (fun x => W x v)) U + (compression (closedCyclicSpan (fun x => W x v)).subtypeₗᵢ (W z)) (W' z) ?_ + intro x + have hr : compression (closedCyclicSpan (fun x => W x v)).subtypeₗᵢ (W z) + (cyclicSpanVector (fun x => W x v) x) = + c z x • cyclicSpanVector (fun x => W x v) (z + x) := by + rw [compression_subtype_apply _ _ + (fun y hy => projective_closedOrbit_invariant W c hmul v z hy)] + apply Subtype.ext + exact congrArg (fun A : H →L[ℂ] H => A v) (hmul z x) + rw [hr, map_smul, hU, hU, ← mul_apply_eq_comp, hmul', smul_apply] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/ProperIsometryMatrixUnits.lean b/LeanPool/VacuumBellSeparation/Bell/ProperIsometryMatrixUnits.lean new file mode 100644 index 0000000000..eba49656cc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/ProperIsometryMatrixUnits.lean @@ -0,0 +1,180 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Defs + +/-! +# Matrix units from one proper isometry + +For an isometry v in a unital star ring, its defect p=1-vv* is a projection. +The actual elements e_ij=v^i p(v*)^j satisfy the matrix-unit relations. +For a proper isometry their diagonal projections are all nonzero. This +algebraic construction uses no halving theorem or assumed infinite corner. +-/ + +@[expose] public section + +namespace VacuumBellSeparation +namespace ProperIsometry + +variable {R : Type*} [Ring R] [StarRing R] + +/-- The actual range-complement projection. -/ +def defect (v : R) : R := 1 - v * star v + +/-- Actual matrix-unit candidates, all inside the algebra of v. -/ +def matrixUnit (v : R) (i j : ℕ) : R := v ^ i * defect v * star (v ^ j) + +theorem pow_cancel {v : R} (hv : star v * v = 1) (n : ℕ) : + star (v ^ n) * v ^ n = 1 := by + rw [star_pow] + exact pow_mul_pow_eq_one n hv + +theorem range_projection {v : R} (hv : star v * v = 1) : + IsStarProjection (v * star v) := by + apply isStarProjection_iff'.mpr + constructor + · calc + (v * star v) * (v * star v) = v * (star v * v) * star v := by noncomm_ring + _ = v * star v := by rw [hv, mul_one] + · simp only [star_mul, star_star] + +theorem defect_projection {v : R} (hv : star v * v = 1) : + IsStarProjection (defect v) := + (range_projection hv).one_sub + +theorem defect_star {v : R} (hv : star v * v = 1) : star (defect v) = defect v := + (defect_projection hv).isSelfAdjoint.star_eq + +theorem defect_sq {v : R} (hv : star v * v = 1) : defect v * defect v = defect v := + (isStarProjection_iff'.mp (defect_projection hv)).1 + +theorem defect_ne_zero {v : R} (hv : v * star v ≠ 1) : defect v ≠ 0 := by + intro h + exact hv (sub_eq_zero.mp h).symm + +theorem defect_mul {v : R} (hv : star v * v = 1) : defect v * v = 0 := by + calc + defect v * v = v - v * (star v * v) := by unfold defect; noncomm_ring + _ = 0 := by rw [hv, mul_one, sub_self] + +theorem defect_mul_pow {v : R} (hv : star v * v = 1) {n : ℕ} (hn : 0 < n) : + defect v * v ^ n = 0 := by + cases n with + | zero => omega + | succ n => rw [pow_succ', ← mul_assoc, defect_mul hv, zero_mul] + +theorem pow_cancel_of_le {v : R} (hv : star v * v = 1) {i j : ℕ} (hij : i ≤ j) : + star (v ^ i) * v ^ j = v ^ (j - i) := by + calc + star (v ^ i) * v ^ j = star (v ^ i) * (v ^ i * v ^ (j - i)) := by + rw [← pow_add, Nat.add_sub_of_le hij] + _ = (star (v ^ i) * v ^ i) * v ^ (j - i) := by noncomm_ring + _ = v ^ (j - i) := by rw [pow_cancel hv, one_mul] + +theorem defect_sandwich_zero_of_lt {v : R} (hv : star v * v = 1) + {i j : ℕ} (hij : i < j) : + defect v * star (v ^ i) * v ^ j * defect v = 0 := by + calc + defect v * star (v ^ i) * v ^ j * defect v = + (defect v * (star (v ^ i) * v ^ j)) * defect v := by noncomm_ring + _ = (defect v * v ^ (j - i)) * defect v := by rw [pow_cancel_of_le hv hij.le] + _ = 0 := by rw [defect_mul_pow hv (Nat.sub_pos_of_lt hij), zero_mul] + +theorem defect_sandwich_zero {v : R} (hv : star v * v = 1) + {i j : ℕ} (hij : i ≠ j) : + defect v * star (v ^ i) * v ^ j * defect v = 0 := by + rcases lt_or_gt_of_ne hij with hlt | hgt + · exact defect_sandwich_zero_of_lt hv hlt + · have h := congrArg star (defect_sandwich_zero_of_lt hv hgt) + simpa only [star_mul, star_star, defect_star hv, star_zero, mul_assoc] using h + +theorem defect_sandwich_self {v : R} (hv : star v * v = 1) (i : ℕ) : + defect v * star (v ^ i) * v ^ i * defect v = defect v := by + calc + defect v * star (v ^ i) * v ^ i * defect v = + defect v * (star (v ^ i) * v ^ i) * defect v := by noncomm_ring + _ = defect v := by rw [pow_cancel hv, mul_one, defect_sq hv] + +theorem matrixUnit_star {v : R} (hv : star v * v = 1) (i j : ℕ) : + star (matrixUnit v i j) = matrixUnit v j i := by + simp only [matrixUnit, star_mul, star_star, defect_star hv, mul_assoc] + +theorem matrixUnit_mul {v : R} (hv : star v * v = 1) (i j k l : ℕ) : + matrixUnit v i j * matrixUnit v k l = if j = k then matrixUnit v i l else 0 := by + classical + have he : matrixUnit v i j * matrixUnit v k l = + v ^ i * (defect v * star (v ^ j) * v ^ k * defect v) * star (v ^ l) := by + unfold matrixUnit + noncomm_ring + rw [he] + by_cases hjk : j = k + · subst k + rw [ite_eq_left rfl, defect_sandwich_self hv] + rfl + · rw [ite_eq_right hjk, defect_sandwich_zero hv hjk, mul_zero, zero_mul] + +theorem diagonal_projection {v : R} (hv : star v * v = 1) (i : ℕ) : + IsStarProjection (matrixUnit v i i) := by + apply isStarProjection_iff'.mpr + exact ⟨by rw [matrixUnit_mul hv, ite_eq_left rfl], matrixUnit_star hv i i⟩ + +theorem diagonal_ne_zero {v : R} (hv : star v * v = 1) (hproper : v * star v ≠ 1) + (i : ℕ) : matrixUnit v i i ≠ 0 := by + have hc : star (v ^ i) * matrixUnit v i i * v ^ i = defect v := by + calc + star (v ^ i) * matrixUnit v i i * v ^ i = + (star (v ^ i) * v ^ i) * defect v * (star (v ^ i) * v ^ i) := by + unfold matrixUnit + noncomm_ring + _ = defect v := by rw [pow_cancel hv, one_mul, mul_one] + intro hz + rw [hz, mul_zero, zero_mul] at hc + exact defect_ne_zero hproper hc.symm + +theorem diagonal_orthogonal {v : R} (hv : star v * v = 1) + {i j : ℕ} (hij : i ≠ j) : matrixUnit v i i * matrixUnit v j j = 0 := by + rw [matrixUnit_mul hv, ite_eq_right hij] + +theorem adjacent_initial {v : R} (hv : star v * v = 1) (n : ℕ) : + star (matrixUnit v (n + 1) n) * matrixUnit v (n + 1) n = matrixUnit v n n := by + rw [matrixUnit_star hv, matrixUnit_mul hv, ite_eq_left rfl] + +theorem adjacent_final {v : R} (hv : star v * v = 1) (n : ℕ) : + matrixUnit v (n + 1) n * star (matrixUnit v (n + 1) n) = + matrixUnit v (n + 1) (n + 1) := by + rw [matrixUnit_star hv, matrixUnit_mul hv, ite_eq_left rfl] + +theorem adjacent_square_zero {v : R} (hv : star v * v = 1) (n : ℕ) : + matrixUnit v (n + 1) n * matrixUnit v (n + 1) n = 0 := by + rw [matrixUnit_mul hv, ite_eq_right (show n ≠ n + 1 by omega)] + +theorem adjacent_ne_zero {v : R} (hv : star v * v = 1) (hproper : v * star v ≠ 1) + (n : ℕ) : matrixUnit v (n + 1) n ≠ 0 := by + intro hz + have h := adjacent_initial hv n + rw [hz, star_zero, zero_mul] at h + exact diagonal_ne_zero hv hproper n h.symm + +theorem adjacent_corner_projection {v : R} (hv : star v * v = 1) (n : ℕ) : + IsStarProjection (matrixUnit v n n + matrixUnit v (n + 1) (n + 1)) := + (diagonal_projection hv n).add (diagonal_projection hv (n + 1)) + (diagonal_orthogonal hv (show n ≠ n + 1 by omega)) + +end ProperIsometry + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- All constructed matrix units stay in the original local algebra. -/ +theorem properIsometry_matrixUnit_mem (A : VonNeumannAlgebra H) + {v : H →L[ℂ] H} (hv : v ∈ A) (i j : ℕ) : ProperIsometry.matrixUnit v i j ∈ A := by + unfold ProperIsometry.matrixUnit ProperIsometry.defect + exact mul_mem (mul_mem (pow_mem hv i) (sub_mem (one_mem A) + (mul_mem hv (star_mem hv)))) (star_mem (pow_mem hv j)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/PurifiedWeylCyclicity.lean b/LeanPool/VacuumBellSeparation/Bell/PurifiedWeylCyclicity.lean new file mode 100644 index 0000000000..3a623f37e4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/PurifiedWeylCyclicity.lean @@ -0,0 +1,120 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.FaithfulDensityPurification +public import LeanPool.VacuumBellSeparation.Bell.ClosedCyclicSpan +public import LeanPool.VacuumBellSeparation.Bell.HilbertAmplificationCommutant +public import LeanPool.VacuumBellSeparation.Bell.OscillatorWeylCommutant + +/-! +# Cyclicity of the actual faithful oscillator purification + +The closed Weyl orbit is reducing. The genuine oscillator irreducibility +theorem puts every amplified rank-one operator in the amplified Weyl double +commutant. Those rank-one operators recover every single-coordinate vector; +their actual finite-sum net converges to every Hilbert direct-sum vector. +No representation-equivalence or cyclicity hypothesis is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap +open scoped InnerProductSpace ENNReal Topology + +variable {n : ℕ} + +theorem amplifiedWeyl_closedOrbit_invariant (ι : Type*) + (v : lp (fun _ : ι => MultiModeOscillatorSpace n) 2) (z : MultiModePhaseSpace n) + {x : lp (fun _ : ι => MultiModeOscillatorSpace n) 2} + (hx : x ∈ closedCyclicSpan (fun w => hilbertAmplification ι (multiOscillatorWeyl w) v)) : + hilbertAmplification ι (multiOscillatorWeyl z) x ∈ + closedCyclicSpan (fun w => hilbertAmplification ι (multiOscillatorWeyl w) v) := by + apply closedCyclicSpan_invariant _ _ ?_ hx + intro w + have he : hilbertAmplification ι (multiOscillatorWeyl z) + (hilbertAmplification ι (multiOscillatorWeyl w) v) = + weylPhase (id : MultiModePhaseSpace n → MultiModePhaseSpace n) z w • + hilbertAmplification ι (multiOscillatorWeyl (z + w)) v := by + apply lp.ext + funext i + simpa only [hilbertAmplification_apply, smul_apply, lp.coeFn_smul, Pi.smul_apply, + mul_apply_eq_comp] using + congrArg (fun A : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n => A (v i)) + (multiOscillatorWeyl_mul z w) + rw [he] + exact (closedCyclicSpan _).smul_mem _ (mem_closedCyclicSpan _ (z + w)) + +theorem amplifiedWeyl_closedOrbit_reducing (ι : Type*) + (v : lp (fun _ : ι => MultiModeOscillatorSpace n) 2) + (A : lp (fun _ : ι => MultiModeOscillatorSpace n) 2 →L[ℂ] + lp (fun _ : ι => MultiModeOscillatorSpace n) 2) + (hA : A ∈ hilbertAmplification ι '' Set.range (multiOscillatorWeyl (m := n))) : + (∀ x ∈ closedCyclicSpan (fun w => hilbertAmplification ι (multiOscillatorWeyl w) v), + A x ∈ closedCyclicSpan (fun w => hilbertAmplification ι (multiOscillatorWeyl w) v)) ∧ + (∀ x ∈ closedCyclicSpan (fun w => hilbertAmplification ι (multiOscillatorWeyl w) v), + star A x ∈ closedCyclicSpan (fun w => hilbertAmplification ι (multiOscillatorWeyl w) v)) := by + obtain ⟨_, ⟨z, rfl⟩, rfl⟩ := hA + refine ⟨fun x hx => amplifiedWeyl_closedOrbit_invariant ι v z hx, ?_⟩ + intro x hx + rw [← hilbertAmplification_star, ContinuousLinearMap.star_eq_adjoint, + multiOscillatorWeyl_adjoint] + exact amplifiedWeyl_closedOrbit_invariant ι v (-z) hx + +/-- Every amplified bounded operator preserves the actual closed Weyl orbit. -/ +theorem amplification_apply_mem_closedWeylOrbit (ι : Type*) + (v : lp (fun _ : ι => MultiModeOscillatorSpace n) 2) + (A : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n) : + hilbertAmplification ι A v ∈ + closedCyclicSpan (fun w => hilbertAmplification ι (multiOscillatorWeyl w) v) := by + let : CompleteSpace + (closedCyclicSpan (fun w => hilbertAmplification ι (multiOscillatorWeyl w) v)) := by + unfold closedCyclicSpan + infer_instance + have hv : v ∈ closedCyclicSpan + (fun w => hilbertAmplification ι (multiOscillatorWeyl w) v) := by + have h := mem_closedCyclicSpan + (fun w => hilbertAmplification ι (multiOscillatorWeyl w) v) 0 + have h1 : hilbertAmplification ι (1 : MultiModeOscillatorSpace n →L[ℂ] + MultiModeOscillatorSpace n) = 1 := (hilbertAmplificationHom ι).map_one + simpa only [multiOscillatorWeyl_zero, h1, one_apply_eq_self] using h + have hA : A ∈ generatedVNA (Set.range (multiOscillatorWeyl (m := n))) := by + rw [generatedVNA_oscillatorWeyl_eq_top] + trivial + exact generatedVNA_invariant_of_reducing _ _ (amplifiedWeyl_closedOrbit_reducing ι v) + (hilbertAmplification_mem_generatedVNA ι _ hA) hv + +/-- The actual faithful density purification is cyclic for the amplified Weyl +family on the full infinite-dimensional direct sum, including zero modes. -/ +theorem faithfulDensityPurification_weyl_cyclic + {ρ : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n} + (hρ : IsFaithfulDensity ρ) : + closedCyclicSpan (fun z => hilbertAmplification (operatorEigenIndex ρ) + (multiOscillatorWeyl z) (faithfulDensityPurification hρ)) = ⊤ := by + classical + let K := closedCyclicSpan (fun z => hilbertAmplification (operatorEigenIndex ρ) + (multiOscillatorWeyl z) (faithfulDensityPurification hρ)) + have hs (i : operatorEigenIndex ρ) (x : MultiModeOscillatorSpace n) : lp.single 2 i x ∈ K := by + have h := amplification_apply_mem_closedWeylOrbit (operatorEigenIndex ρ) + (faithfulDensityPurification hρ) + (InnerProductSpace.rankOne ℂ x (positiveTraceClassEigenbasis hρ.isPositiveTraceClass i)) + rw [amplification_rankOne_faithfulDensityPurification] at h + have hc : (Real.sqrt i.1.re : ℂ) ≠ 0 := + Complex.ofReal_ne_zero.mpr (Real.sqrt_pos.2 (faithfulDensity_eigenvalue_pos hρ i)).ne' + have hi := K.smul_mem ((Real.sqrt i.1.re : ℂ)⁻¹) h + simpa only [smul_smul, inv_mul_cancel₀ hc, one_smul] using hi + apply top_unique + intro x hx + exact (Submodule.span ℂ (Set.range (fun z => hilbertAmplification (operatorEigenIndex ρ) + (multiOscillatorWeyl z) (faithfulDensityPurification + hρ)))).isClosed_topologicalClosure.mem_of_tendsto + (lp.hasSum_single (by norm_num : (2 : ℝ≥0∞) ≠ ⊤) x) + (Filter.Eventually.of_forall fun s => K.sum_mem fun i hi => hs i (x i)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/RangeProjection.lean b/LeanPool/VacuumBellSeparation/Bell/RangeProjection.lean new file mode 100644 index 0000000000..7ec358ff0d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/RangeProjection.lean @@ -0,0 +1,111 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Defs + +/-! +# Range projections in a von Neumann algebra + +For a bounded operator `T` on a Hilbert space `H`, `rangeProjection T` is the orthogonal +projection onto the closure of the range of `T`. The main result, `rangeProjection_mem`, +states that the range projection of an element of a von Neumann algebra `M` belongs to `M` +(double-commutant argument: the projection commutes with every element of the commutant). +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +noncomputable section + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The closure of the range of `T`, as a closed subspace. -/ +def rangeClosure (T : H →L[ℂ] H) : Submodule ℂ H := + (LinearMap.range T.toLinearMap).topologicalClosure + +instance rangeClosure_completeSpace (T : H →L[ℂ] H) : CompleteSpace (rangeClosure T) := by + first + | (unfold rangeClosure; infer_instance) + + +instance rangeClosure_hasOrthogonalProjection (T : H →L[ℂ] H) : + (rangeClosure T).HasOrthogonalProjection := by + first + | infer_instance + + +/-- The orthogonal projection onto the closure of the range of `T`, as an element of `B(H)`. -/ +def rangeProjection (T : H →L[ℂ] H) : H →L[ℂ] H := + (rangeClosure T).starProjection + +omit [CompleteSpace H] in +/-- If `S` commutes with `T`, then `S` maps the closure of the range of `T` into itself. -/ +theorem map_mem_rangeClosure_of_commute {T S : H →L[ℂ] H} (h : S * T = T * S) {x : H} + (hx : x ∈ rangeClosure T) : S x ∈ rangeClosure T := by + have hcomm : ∀ z : H, S (T z) = T (S z) := fun z => by + first + | exact DFunLike.congr_fun h z + have hle : (LinearMap.range T.toLinearMap).topologicalClosure ≤ + Submodule.comap S.toLinearMap (LinearMap.range T.toLinearMap).topologicalClosure := by + refine Submodule.topologicalClosure_minimal _ ?_ ?_ + · intro y hy + obtain ⟨z, rfl⟩ := LinearMap.mem_range.mp hy + have hmem : S (T z) ∈ LinearMap.range T.toLinearMap := + LinearMap.mem_range.mpr ⟨S z, (hcomm z).symm⟩ + first + | exact Submodule.mem_comap.mpr (Submodule.le_topologicalClosure _ hmem) + · exact (Submodule.isClosed_topologicalClosure _).preimage S.continuous + first + | exact hle hx + + +/-- A subspace `K` (with an orthogonal projection) that is invariant under `S` and under +its adjoint `star S` has an orthogonal projection commuting with `S`. -/ +theorem commute_projection_of_invariant (K : Submodule ℂ H) [K.HasOrthogonalProjection] + (S : H →L[ℂ] H) (hS : ∀ x ∈ K, S x ∈ K) (hS' : ∀ x ∈ K, (star S) x ∈ K) : + K.starProjection * S = S * K.starProjection := by + refine ContinuousLinearMap.ext fun x => ?_ + change K.starProjection (S x) = S (K.starProjection x) + refine Submodule.eq_starProjection_of_mem_of_inner_eq_zero + (hS _ (Submodule.starProjection_apply_mem K x)) ?_ + intro w hw + have hw' : (ContinuousLinearMap.adjoint S) w ∈ K := by + first + | exact hS' w hw + have h0 := Submodule.starProjection_inner_eq_zero x _ hw' + rw [ContinuousLinearMap.adjoint_inner_right, map_sub] at h0 + exact h0 + +/-- The orthogonal projection onto the closure of the range of an element of a von Neumann +algebra belongs to the algebra. -/ +theorem rangeProjection_mem (M : VonNeumannAlgebra H) {T : H →L[ℂ] H} (hT : T ∈ M) : + rangeProjection T ∈ M := by + have key : rangeProjection T ∈ M.commutant.commutant := by + refine VonNeumannAlgebra.mem_commutant_iff.mpr fun S hS => ?_ + have h1 : S * T = T * S := by + have h := VonNeumannAlgebra.mem_commutant_iff.mp hS T hT + first + | exact h.symm + have h2 : star S * T = T * star S := by + have h := VonNeumannAlgebra.mem_commutant_iff.mp (star_mem hS) T hT + first + | exact h.symm + have hc : (rangeClosure T).starProjection * S = S * (rangeClosure T).starProjection := + commute_projection_of_invariant (rangeClosure T) S + (fun x hx => map_mem_rangeClosure_of_commute h1 hx) + (fun x hx => map_mem_rangeClosure_of_commute h2 hx) + first + | exact hc.symm + first + | (rw [VonNeumannAlgebra.commutant_commutant] at key; exact key) + + +end + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/RationalResolvent.lean b/LeanPool/VacuumBellSeparation/Bell/RationalResolvent.lean new file mode 100644 index 0000000000..a0189cd5bb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/RationalResolvent.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.StarOrder +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Isometric +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order +public import Mathlib.Tactic.NoncommRing +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap + +/-! +# The uniformly bounded quadratic resolvent of a selfadjoint operator + +The actual real functional calculus of x ↦ (1+x²)⁻¹ gives the inverse of +1+A². Both this resolvent and its product with A have norm at most one, +uniformly over all bounded selfadjoint A, with no common bound on ‖A‖. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Quadratic resolvent function given by `1 / (1 + x ^ 2)`. -/ +noncomputable def quadraticResolventFunction (x : ℝ) : ℝ := 1 / (1 + x ^ 2) + +theorem quadraticResolventFunction_continuous : Continuous quadraticResolventFunction := by + change Continuous (fun x : ℝ => 1 / (1 + x ^ 2)) + apply continuous_const.div (continuous_const.add (continuous_id.pow 2)) + intro x + exact (show 0 < (1 : ℝ) + x ^ 2 by positivity).ne' + +theorem quadraticResolventFunction_bounds (x : ℝ) : + 0 ≤ quadraticResolventFunction x ∧ quadraticResolventFunction x ≤ 1 := by + constructor + · unfold quadraticResolventFunction; positivity + · rw [quadraticResolventFunction, div_le_one (by positivity : 0 < 1 + x ^ 2)] + nlinarith [sq_nonneg x] + +/-- Quadratic resolvent obtained from `cfc`. -/ +noncomputable def quadraticResolvent (A : H →L[ℂ] H) : H →L[ℂ] H := + cfc quadraticResolventFunction A + +theorem quadraticResolvent_nonneg (A : H →L[ℂ] H) : 0 ≤ quadraticResolvent A := + cfc_nonneg (fun x _ => (quadraticResolventFunction_bounds x).1) + +theorem quadraticResolvent_le_one {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) : + quadraticResolvent A ≤ 1 := by + have h := (cfc_le_iff quadraticResolventFunction (fun _ : ℝ => 1) A + quadraticResolventFunction_continuous.continuousOn continuousOn_const hA).mpr + (fun x _ => (quadraticResolventFunction_bounds x).2) + simpa only [quadraticResolvent, cfc_const_one ℝ A hA] using h + +theorem quadraticResolvent_norm_le (A : H →L[ℂ] H) : ‖quadraticResolvent A‖ ≤ 1 := by + apply norm_cfc_le zero_le_one + intro x hx + rw [Real.norm_eq_abs, abs_of_nonneg (quadraticResolventFunction_bounds x).1] + exact (quadraticResolventFunction_bounds x).2 + +theorem quadraticResolvent_mul_denominator {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) : + quadraticResolvent A * (1 + A ^ 2) = 1 := by + have hden : cfc (fun x : ℝ => 1 + x ^ 2) A = 1 + A ^ 2 := by + rw [cfc_add A (fun _ : ℝ => 1) (fun x : ℝ => x ^ 2) + continuousOn_const (continuous_id.pow 2).continuousOn, + cfc_const_one ℝ A hA, cfc_pow_id A 2 hA] + rw [quadraticResolvent, ← hden, ← cfc_mul quadraticResolventFunction + (fun x : ℝ => 1 + x ^ 2) A quadraticResolventFunction_continuous.continuousOn + (by fun_prop)] + calc + cfc (fun x : ℝ => quadraticResolventFunction x * (1 + x ^ 2)) A = + cfc (fun _ : ℝ => 1) A := cfc_congr (fun x _ => by + exact div_mul_cancel₀ 1 (by positivity : (1 + x ^ 2 : ℝ) ≠ 0)) + _ = 1 := cfc_const_one ℝ A hA + +theorem denominator_mul_quadraticResolvent {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) : + (1 + A ^ 2) * quadraticResolvent A = 1 := by + have h := congrArg star (quadraticResolvent_mul_denominator hA) + simpa only [star_mul, star_add, star_one, star_pow, hA.star_eq, + (quadraticResolvent_nonneg A).isSelfAdjoint.star_eq] using h + +theorem quadraticResolvent_mul_norm_le {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) : + ‖quadraticResolvent A * A‖ ≤ 1 := by + have he : quadraticResolvent A * A = cfc (fun x : ℝ => quadraticResolventFunction x * x) A := by + change cfc quadraticResolventFunction A * A = + cfc (fun x : ℝ => quadraticResolventFunction x * id x) A + rw [cfc_mul quadraticResolventFunction id A + quadraticResolventFunction_continuous.continuousOn continuousOn_id, + cfc_id ℝ A hA] + rw [he] + apply norm_cfc_le zero_le_one + intro x hx + rw [Real.norm_eq_abs, abs_mul, abs_of_nonneg (quadraticResolventFunction_bounds x).1, + quadraticResolventFunction, one_div_mul_eq_div, div_le_one (by positivity : 0 < 1 + x ^ 2)] + nlinarith [sq_nonneg (|x| - 1), sq_abs x] + +/-- The noncommuting resolvent identity with the two strongly controlled differences. -/ +theorem quadraticResolvent_sub {A B : H →L[ℂ] H} + (hA : IsSelfAdjoint A) (hB : IsSelfAdjoint B) : + quadraticResolvent A - quadraticResolvent B = + (quadraticResolvent A * A) * (B - A) * quadraticResolvent B + + quadraticResolvent A * (B - A) * B * quadraticResolvent B := by + calc + quadraticResolvent A - quadraticResolvent B = + quadraticResolvent A * (1 + B ^ 2) * quadraticResolvent B - + quadraticResolvent A * (1 + A ^ 2) * quadraticResolvent B := by + rw [mul_assoc, denominator_mul_quadraticResolvent hB, + quadraticResolvent_mul_denominator hA, mul_one, one_mul] + _ = _ := by noncomm_ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/RationalResolventStrong.lean b/LeanPool/VacuumBellSeparation/Bell/RationalResolventStrong.lean new file mode 100644 index 0000000000..d8e2fe5ccf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/RationalResolventStrong.lean @@ -0,0 +1,81 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.RationalResolvent + +/-! +# Strong continuity of the bounded quadratic resolvent + +Only strong convergence of the selfadjoint inputs is required. The exact +resolvent identity multiplies the two input differences at fixed vectors +by uniformly bounded operators. No uniform norm bound on the inputs, or +strong convergence of their squares, is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology ContinuousLinearMap + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +omit [CompleteSpace H] in +theorem boundedOperator_apply_tendsto_zero {ι : Type*} {l : Filter ι} + {As : ι → H →L[ℂ] H} {xs : ι → H} {C : ℝ} + (hA : ∀ i, ‖As i‖ ≤ C) (hx : Tendsto xs l (𝓝 0)) : + Tendsto (fun i => As i (xs i)) l (𝓝 0) := by + rw [tendsto_zero_iff_norm_tendsto_zero] + have hz : Tendsto (fun i => C * ‖xs i‖) l (𝓝 0) := by + simpa only [norm_zero, mul_zero] using hx.norm.const_mul C + apply squeeze_zero (fun _ => norm_nonneg _) _ hz + intro i + exact ((As i).le_opNorm _).trans + (mul_le_mul_of_nonneg_right (hA i) (norm_nonneg _)) + +theorem quadraticResolvent_strong_tendsto {ι : Type*} {l : Filter ι} + {As : ι → H →L[ℂ] H} {A : H →L[ℂ] H} + (hAs : ∀ i, IsSelfAdjoint (As i)) (hA : IsSelfAdjoint A) + (hlim : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) (x : H) : + Tendsto (fun i => quadraticResolvent (As i) x) l (𝓝 (quadraticResolvent A x)) := by + have hzero (y : H) : Tendsto (fun i => (A - As i) y) l (𝓝 0) := by + simpa only [sub_apply, sub_self] using + (tendsto_const_nhds (x := A y)).sub (hlim y) + have hfirst := boundedOperator_apply_tendsto_zero + (fun i => quadraticResolvent_mul_norm_le (hAs i)) + (hzero (quadraticResolvent A x)) + have hsecond := boundedOperator_apply_tendsto_zero + (fun i => quadraticResolvent_norm_le (As i)) + (hzero (A (quadraticResolvent A x))) + have hsum : Tendsto (fun i => + (quadraticResolvent (As i) * As i) ((A - As i) (quadraticResolvent A x)) + + quadraticResolvent (As i) ((A - As i) (A (quadraticResolvent A x)))) l (𝓝 0) := by + simpa only [add_zero] using hfirst.add hsecond + have he (i : ι) : quadraticResolvent (As i) x - quadraticResolvent A x = + (quadraticResolvent (As i) * As i) ((A - As i) (quadraticResolvent A x)) + + quadraticResolvent (As i) ((A - As i) (A (quadraticResolvent A x))) := by + exact congrArg (fun B : H →L[ℂ] H => B x) (quadraticResolvent_sub (hAs i) hA) + have hdiff : Tendsto (fun i => quadraticResolvent (As i) x - quadraticResolvent A x) l + (𝓝 0) := by simpa only [he] using hsum + simpa only [sub_add_cancel, zero_add] using hdiff.add_const (quadraticResolvent A x) + +/-- The resulting operators are genuine effects. -/ +theorem one_sub_quadraticResolvent_effect {A : H →L[ℂ] H} (hA : IsSelfAdjoint A) : + 0 ≤ 1 - quadraticResolvent A ∧ 1 - quadraticResolvent A ≤ 1 := + ⟨sub_nonneg.mpr (quadraticResolvent_le_one hA), + sub_le_self _ (quadraticResolvent_nonneg A)⟩ + +theorem one_sub_quadraticResolvent_strong_tendsto {ι : Type*} {l : Filter ι} + {As : ι → H →L[ℂ] H} {A : H →L[ℂ] H} + (hAs : ∀ i, IsSelfAdjoint (As i)) (hA : IsSelfAdjoint A) + (hlim : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) (x : H) : + Tendsto (fun i => (1 - quadraticResolvent (As i)) x) l + (𝓝 ((1 - quadraticResolvent A) x)) := by + exact (tendsto_const_nhds (x := x)).sub (quadraticResolvent_strong_tendsto hAs hA hlim x) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/ReducingCompression.lean b/LeanPool/VacuumBellSeparation/Bell/ReducingCompression.lean new file mode 100644 index 0000000000..a1d5fe8298 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/ReducingCompression.lean @@ -0,0 +1,100 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.Compression +public import LeanPool.VacuumBellSeparation.FreeField.Isotony + +/-! +# Restriction of generated algebras to actual reducing subspaces + +Compression along a Hilbert isometry is restriction when its image reduces +the generators. Operators commuting with the compressed generators extend +by zero to operators commuting with the original generators. Consequently +compression maps the actual generated double commutant into the compressed +generated double commutant. This supplies the operator-algebra step beyond +matching vector characteristic functions. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Extend operator by zero obtained from `ι.toContinuousLinearMap.comp`. -/ +noncomputable def extendOperatorByZero (ι : E →ₗᵢ[ℂ] F) (B : E →L[ℂ] E) : F →L[ℂ] F := + ι.toContinuousLinearMap.comp (B.comp ι.toContinuousLinearMap.adjoint) + +theorem compression_star (ι : E →ₗᵢ[ℂ] F) (A : F →L[ℂ] F) : + compression ι (star A) = star (compression ι A) := by + simp only [compression, star_eq_adjoint, adjoint_comp, adjoint_adjoint, comp_assoc] + +theorem compression_intertwines_of_commute (ι : E →ₗᵢ[ℂ] F) (A : F →L[ℂ] F) + (hA : A * imageProjection ι = imageProjection ι * A) (x : E) : + A (ι x) = ι (compression ι A x) := by + have h := congrArg (fun T : F →L[ℂ] F => T (ι x)) hA + simpa only [imageProjection, compression, mul_apply_eq_comp, comp_apply, + LinearIsometry.coe_toContinuousLinearMap, adjoint_embedding_apply] using h + +theorem compression_adjoint_intertwines_of_commute (ι : E →ₗᵢ[ℂ] F) (A : F →L[ℂ] F) + (hA : A * imageProjection ι = imageProjection ι * A) (x : F) : + compression ι A (ι.toContinuousLinearMap.adjoint x) = + ι.toContinuousLinearMap.adjoint (A x) := by + have h := congrArg (fun T : F →L[ℂ] F => ι.toContinuousLinearMap.adjoint (T x)) hA + simpa only [imageProjection, compression, mul_apply_eq_comp, comp_apply, + LinearIsometry.coe_toContinuousLinearMap, adjoint_embedding_apply] using h + +theorem commute_extendOperatorByZero (ι : E →ₗᵢ[ℂ] F) (A : F →L[ℂ] F) + (hA : A * imageProjection ι = imageProjection ι * A) (B : E →L[ℂ] E) + (hB : compression ι A * B = B * compression ι A) : + A * extendOperatorByZero ι B = extendOperatorByZero ι B * A := by + ext x + change A (ι (B (ι.toContinuousLinearMap.adjoint x))) = + ι (B (ι.toContinuousLinearMap.adjoint (A x))) + rw [compression_intertwines_of_commute ι A hA, ← mul_apply_eq_comp, hB, + mul_apply_eq_comp, compression_adjoint_intertwines_of_commute ι A hA] + +/-- The actual algebra restriction, proved by extending each commutant +operator by zero on the orthogonal complement. -/ +theorem compression_mem_generatedVNA (ι : E →ₗᵢ[ℂ] F) (S : Set (F →L[ℂ] F)) + (hS : ∀ A ∈ S, A * imageProjection ι = imageProjection ι * A) + {T : F →L[ℂ] F} (hT : T ∈ generatedVNA S) : + compression ι T ∈ generatedVNA (compression ι '' S) := by + apply VonNeumannAlgebra.mem_commutant_iff.mpr + intro B hB + have hB' : extendOperatorByZero ι B ∈ commutantOf S := by + apply (StarSubalgebra.mem_centralizer_iff ℂ).mpr + intro A hA + have hb := (StarSubalgebra.mem_centralizer_iff ℂ).mp hB _ ⟨A, hA, rfl⟩ + refine ⟨commute_extendOperatorByZero ι A (hS A hA) B hb.1, ?_⟩ + have hs : star A * imageProjection ι = imageProjection ι * star A := by + have h := congrArg star (hS A hA) + simpa only [star_mul, (imageProjection_isStarProjection ι).isSelfAdjoint.star_eq] using h.symm + apply commute_extendOperatorByZero ι (star A) hs B + simpa only [compression_star] using hb.2 + have hc := VonNeumannAlgebra.mem_commutant_iff.mp hT _ hB' + ext x + have h := congrArg (fun A : F →L[ℂ] F => ι.toContinuousLinearMap.adjoint (A (ι x))) hc + simpa only [compression, extendOperatorByZero, mul_apply_eq_comp, comp_apply, + LinearIsometry.coe_toContinuousLinearMap, adjoint_embedding_apply] using h + +/-- Multiplication is preserved whenever the right factor preserves the +actual embedded Hilbert subspace. -/ +theorem compression_mul_of_invariant (ι : E →ₗᵢ[ℂ] F) (A B : F →L[ℂ] F) + (hB : ∀ x, B (ι x) = ι (compression ι B x)) : + compression ι (A * B) = compression ι A * compression ι B := by + ext x + change ι.toContinuousLinearMap.adjoint (A (B (ι x))) = + ι.toContinuousLinearMap.adjoint (A (ι (compression ι B x))) + rw [hB] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/ReflectionApprox.lean b/LeanPool/VacuumBellSeparation/Bell/ReflectionApprox.lean new file mode 100644 index 0000000000..466f09c030 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/ReflectionApprox.lean @@ -0,0 +1,457 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Reflections + +/-! +# Averages of reflections approximate self-adjoint contractions + +Let `A` be a self-adjoint contraction of a von Neumann algebra `M` and suppose that +"threshold projections" `E u ∈ M` (`u : ℝ`) are given: self-adjoint idempotents commuting +with `A`, decreasing in `u`, with `(A - u) E u ≥ 0` and `(u - A) (1 - E u) ≥ 0`. +(Their existence is *assumed* in this file; it is the spectral theorem for `A`.) + +For `N ≥ 1` and the thresholds `u_k = -1 + 2k/N` put `P_0 = 1`, `P_k = E u_k` for +`0 < k < N` and `P_N = 0`. Then `A` is within `2/N` (in operator norm) of the average of the +`N` reflections `2 P_k - 1`, `k = 0, …, N-1` (`exists_reflection_average_near`), hence `A` +lies in the norm closure of the convex hull of the reflections of `M` +(`mem_closure_convexHull_reflections_of_thresholds`). +-/ + +@[expose] public section + +open scoped ComplexOrder + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +namespace ReflectionApprox + +theorem isSelfAdjoint_one_op : IsSelfAdjoint (1 : H →L[ℂ] H) := by + first | exact IsSelfAdjoint.one _ + +theorem isSelfAdjoint_zero_op : IsSelfAdjoint (0 : H →L[ℂ] H) := by + first | exact IsSelfAdjoint.zero _ + +end ReflectionApprox + +open ReflectionApprox + +/-! ### Reflections from projections -/ + +/-- For a self-adjoint idempotent `P ∈ M`, the operator `P + P - 1` is a reflection in `M`. -/ +theorem add_self_sub_one_mem_reflections {M : VonNeumannAlgebra H} {P : H →L[ℂ] H} + (hPM : P ∈ M) (hsa : IsSelfAdjoint P) (hid : P * P = P) : + P + P - 1 ∈ reflections M := by + refine ⟨sub_mem (add_mem hPM hPM) (one_mem M), (hsa.add hsa).sub isSelfAdjoint_one_op, ?_⟩ + simp only [mul_sub, sub_mul, mul_add, add_mul, one_mul, mul_one, hid] + abel + +/-- For a self-adjoint idempotent `P ∈ M`, the operator `2 P - 1` is a reflection in `M`. -/ +theorem two_smul_sub_one_mem_reflections {M : VonNeumannAlgebra H} {P : H →L[ℂ] H} + (hPM : P ∈ M) (hsa : IsSelfAdjoint P) (hid : P * P = P) : + (2 : ℂ) • P - 1 ∈ reflections M := by + rw [two_smul] + exact add_self_sub_one_mem_reflections hPM hsa hid + +namespace ReflectionApprox + +/-! ### Positivity of projections and a norm bound -/ + +/-- A self-adjoint idempotent is positive. -/ +theorem isPositive_of_isSelfAdjoint_of_idem {P : H →L[ℂ] H} (hsa : IsSelfAdjoint P) + (hid : P * P = P) : P.IsPositive := by + have h : (0 : H →L[ℂ] H) ≤ star P * P := star_mul_self_nonneg P + rw [hsa.star_eq, hid] at h + exact ContinuousLinearMap.nonneg_iff_isPositive.mp h + +/-- The complement of a self-adjoint idempotent is positive. -/ +theorem isPositive_one_sub_of_isSelfAdjoint_of_idem {Q : H →L[ℂ] H} (hsa : IsSelfAdjoint Q) + (hid : Q * Q = Q) : (1 - Q).IsPositive := by + refine isPositive_of_isSelfAdjoint_of_idem (isSelfAdjoint_one_op.sub hsa) ?_ + simp only [mul_sub, sub_mul, one_mul, mul_one, hid] + abel + +/-- A positive operator `G` with `c • 1 - G` positive has norm at most `c`. -/ +theorem norm_le_of_isPositive_of_isPositive_sub {G : H →L[ℂ] H} {c : ℝ} (hc : 0 ≤ c) + (hG : G.IsPositive) (hcG : ((c : ℂ) • (1 : H →L[ℂ] H) - G).IsPositive) : ‖G‖ ≤ c := by + have hG' : (0 : H →L[ℂ] H) ≤ G := ContinuousLinearMap.nonneg_iff_isPositive.mpr hG + have hle : G ≤ (c : ℂ) • (1 : H →L[ℂ] H) := ContinuousLinearMap.le_def.mpr hcG + have h1 : ‖G‖ ≤ ‖(c : ℂ) • (1 : H →L[ℂ] H)‖ := + CStarAlgebra.norm_le_norm_of_le_of_nonneg hle hG' + have h2 : ‖(1 : H →L[ℂ] H)‖ ≤ 1 := + ContinuousLinearMap.opNorm_le_bound _ zero_le_one (fun x => by simp) + calc ‖G‖ ≤ ‖(c : ℂ) • (1 : H →L[ℂ] H)‖ := h1 + _ = ‖(c : ℂ)‖ * ‖(1 : H →L[ℂ] H)‖ := norm_smul _ _ + _ = c * ‖(1 : H →L[ℂ] H)‖ := by rw [Complex.norm_real, Real.norm_of_nonneg hc] + _ ≤ c * 1 := mul_le_mul_of_nonneg_left h2 hc + _ = c := mul_one c + +/-- If `G` and `G'` are positive with `G + G' = c • 1`, then `‖G‖ ≤ c`. -/ +theorem norm_le_of_add_eq_smul_one {G G' : H →L[ℂ] H} {c : ℝ} (hc : 0 ≤ c) + (hG : G.IsPositive) (hG' : G'.IsPositive) + (h : G + G' = (c : ℂ) • (1 : H →L[ℂ] H)) : ‖G‖ ≤ c := by + refine norm_le_of_isPositive_of_isPositive_sub hc hG ?_ + have e : (c : ℂ) • (1 : H →L[ℂ] H) - G = G' := by + rw [← h] + abel + rw [e] + exact hG' + +/-! ### Pieces of a decreasing chain -/ + +/-- If `B (1 - Q) ≥ 0`, `P ≥ 0` commutes with `B`, and `Q ≤ P` are projections +(`P Q = Q = Q P`), then `B (P - Q) ≥ 0`. -/ +theorem isPositive_mul_sub_of_right {B P Q : H →L[ℂ] H} (hBQ : (B * (1 - Q)).IsPositive) + (hP : P.IsPositive) (hPB : P * B = B * P) (hPQ : P * Q = Q) (hQP : Q * P = Q) : + (B * (P - Q)).IsPositive := by + have e1 : B * (1 - Q) * P = B * (P - Q) := by + rw [mul_assoc, sub_mul, one_mul, hQP] + have e2 : P * (B * (1 - Q)) = B * (P - Q) := by + rw [← mul_assoc, hPB, mul_assoc, mul_sub, mul_one, hPQ] + have h := isPositive_mul_of_commute hBQ hP (e1.trans e2.symm) + rwa [e1] at h + +/-- If `C P ≥ 0`, `1 - Q ≥ 0` with `Q` commuting with `C`, and `P Q = Q = Q P`, then +`C (P - Q) ≥ 0`. -/ +theorem isPositive_mul_sub_of_left {C P Q : H →L[ℂ] H} (hCP : (C * P).IsPositive) + (hQ : (1 - Q).IsPositive) (hQC : Q * C = C * Q) (hPQ : P * Q = Q) (hQP : Q * P = Q) : + (C * (P - Q)).IsPositive := by + have e1 : C * P * (1 - Q) = C * (P - Q) := by + rw [mul_assoc, mul_sub, mul_one, hPQ] + have e2 : (1 - Q) * (C * P) = C * (P - Q) := by + rw [sub_mul, one_mul, ← mul_assoc, hQC, mul_assoc, hQP, mul_sub] + have h := isPositive_mul_of_commute hCP hQ (e1.trans e2.symm) + rwa [e1] at h + +omit [CompleteSpace H] in +/-- Real and complex scalar multiplication agree on `B(H)`. -/ +theorem real_smul_eq_complex_smul (r : ℝ) (T : H →L[ℂ] H) : r • T = (r : ℂ) • T := by + first + | exact (Complex.coe_smul r T).symm + +omit [CompleteSpace H] in +/-- Sum of the two families of pieces: `∑ (u_{k+1} - A) F_k + ∑ (A - u_k) F_k = c (P_0 - P_n)` +when `u_{k+1} = u_k + c` and `F_k = P_k - P_{k+1}`. -/ +theorem chain_sum_add (A : H →L[ℂ] H) (P : ℕ → (H →L[ℂ] H)) (u : ℕ → ℝ) (c : ℝ) + (hu : ∀ k, u (k + 1) = u k + c) (n : ℕ) : + (∑ k ∈ Finset.range n, ((u (k + 1) : ℂ) • (1 : H →L[ℂ] H) - A) * (P k - P (k + 1))) + + (∑ k ∈ Finset.range n, (A - (u k : ℂ) • (1 : H →L[ℂ] H)) * (P k - P (k + 1))) + = (c : ℂ) • (P 0 - P n) := by + induction n with + | zero => simp + | succ n ih => + have hcu : (u (n + 1) : ℂ) = (u n : ℂ) + (c : ℂ) := by + rw [hu n, Complex.ofReal_add] + have hterm : ((u (n + 1) : ℂ) • (1 : H →L[ℂ] H) - A) * (P n - P (n + 1)) + + (A - (u n : ℂ) • (1 : H →L[ℂ] H)) * (P n - P (n + 1)) + = (c : ℂ) • (P n - P (n + 1)) := by + rw [← add_mul, hcu, add_smul] + have h3 : (u n : ℂ) • (1 : H →L[ℂ] H) + (c : ℂ) • (1 : H →L[ℂ] H) - A + + (A - (u n : ℂ) • (1 : H →L[ℂ] H)) = (c : ℂ) • (1 : H →L[ℂ] H) := by + abel + rw [h3, smul_mul_assoc, one_mul] + rw [Finset.sum_range_succ, Finset.sum_range_succ, add_add_add_comm, ih, hterm, ← smul_add] + congr 1 + abel + +omit [CompleteSpace H] in +/-- Closed form (Abel summation) of `∑ (u_{k+1} - A) (P_k - P_{k+1})`. -/ +theorem chain_sum_closed (A : H →L[ℂ] H) (P : ℕ → (H →L[ℂ] H)) (u : ℕ → ℝ) (c : ℝ) + (hu : ∀ k, u (k + 1) = u k + c) (n : ℕ) : + (∑ k ∈ Finset.range n, ((u (k + 1) : ℂ) • (1 : H →L[ℂ] H) - A) * (P k - P (k + 1))) + = (c : ℂ) • (∑ k ∈ Finset.range n, P k) + ((u 0 : ℂ) • P 0 - (u n : ℂ) • P n) + - A * (P 0 - P n) := by + induction n with + | zero => simp + | succ n ih => + have hcu : (u (n + 1) : ℂ) = (u n : ℂ) + (c : ℂ) := by + rw [hu n, Complex.ofReal_add] + have hPn : (u (n + 1) : ℂ) • P n = (u n : ℂ) • P n + (c : ℂ) • P n := by + rw [hcu, add_smul] + have e : ((u (n + 1) : ℂ) • (1 : H →L[ℂ] H) - A) * (P n - P (n + 1)) + = (u n : ℂ) • P n + (c : ℂ) • P n - (u (n + 1) : ℂ) • P (n + 1) + - (A * P n - A * P (n + 1)) := by + rw [sub_mul, smul_mul_assoc, one_mul, mul_sub, smul_sub, hPn] + rw [Finset.sum_range_succ, ih, Finset.sum_range_succ, e] + simp only [mul_sub, smul_add] + abel + +omit [CompleteSpace H] in +/-- `∑_{k simp + | succ n ih => + rw [Finset.sum_range_succ, ih, Finset.sum_range_succ, Nat.cast_add_one, add_smul, one_smul] + abel + +end ReflectionApprox + +open ReflectionApprox + +/-! ### The abstract statement for a finite decreasing chain -/ + +/-- **Finite decreasing chain.** Let `P_0 = 1 ≥ P_1 ≥ … ≥ P_N = 0` be self-adjoint idempotents +commuting with `A`, and `u_0 = -1`, `u_{k+1} = u_k + c` thresholds with `(A - u_k) P_k ≥ 0` +(`k < N`) and `(u_{k+1} - A) (1 - P_{k+1}) ≥ 0` (`k < N`). Then +`‖A - (c • ∑_{k by + have h := congrArg star (hPmono k) + rwa [star_mul, (hPsa k).star_eq, (hPsa (k + 1)).star_eq] at h + have hG : (∑ k ∈ Finset.range N, + ((u (k + 1) : ℂ) • (1 : H →L[ℂ] H) - A) * (P k - P (k + 1))).IsPositive := by + refine ContinuousLinearMap.isPositive_sum _ (fun k hk => ?_) + have hk' : k < N := Finset.mem_range.mp hk + refine isPositive_mul_sub_of_right (hneg k hk') + (isPositive_of_isSelfAdjoint_of_idem (hPsa k) (hPid k)) ?_ (hPmono k) (hmono' k) + simp only [mul_sub, sub_mul, mul_smul_comm, smul_mul_assoc, mul_one, one_mul, hPA k] + have hG' : (∑ k ∈ Finset.range N, + (A - (u k : ℂ) • (1 : H →L[ℂ] H)) * (P k - P (k + 1))).IsPositive := by + refine ContinuousLinearMap.isPositive_sum _ (fun k hk => ?_) + have hk' : k < N := Finset.mem_range.mp hk + refine isPositive_mul_sub_of_left (hpos k hk') + (isPositive_one_sub_of_isSelfAdjoint_of_idem (hPsa (k + 1)) (hPid (k + 1))) ?_ + (hPmono k) (hmono' k) + simp only [mul_sub, sub_mul, mul_smul_comm, smul_mul_assoc, mul_one, one_mul, hPA (k + 1)] + have hsum := chain_sum_add A P u c hu N + rw [h0, hN, sub_zero] at hsum + have hnorm := norm_le_of_add_eq_smul_one hc hG hG' hsum + have hclosed := chain_sum_closed A P u c hu N + rw [h0, hN, hu0] at hclosed + simp only [smul_zero, sub_zero, mul_one, Complex.ofReal_neg, Complex.ofReal_one, neg_smul, + one_smul] at hclosed + have e : A - (c • (∑ k ∈ Finset.range N, P k) - 1) + = -(∑ k ∈ Finset.range N, + ((u (k + 1) : ℂ) • (1 : H →L[ℂ] H) - A) * (P k - P (k + 1))) := by + rw [hclosed, real_smul_eq_complex_smul] + abel + rw [e, norm_neg] + exact hnorm + +/-! ### Thresholds and the chain of threshold projections -/ + +namespace ReflectionApprox + +/-- The thresholds `u_k = -1 + (2/N) k`. -/ +noncomputable def threshold (N k : ℕ) : ℝ := -1 + 2 / (N : ℝ) * (k : ℝ) + +theorem threshold_zero (N : ℕ) : threshold N 0 = -1 := by + simp [threshold] + +theorem threshold_succ (N k : ℕ) : threshold N (k + 1) = threshold N k + 2 / (N : ℝ) := by + unfold threshold + push_cast + ring + +theorem threshold_self {N : ℕ} (hN : 0 < N) : threshold N N = 1 := by + have hNne : (N : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr hN.ne' + have h : 2 / (N : ℝ) * (N : ℝ) = 2 := by + first + | exact div_mul_cancel₀ 2 hNne + unfold threshold + rw [h] + norm_num + +theorem threshold_le_succ (N k : ℕ) : threshold N k ≤ threshold N (k + 1) := by + rw [threshold_succ] + have h : (0 : ℝ) ≤ 2 / (N : ℝ) := by positivity + linarith + +/-- The decreasing chain `P_0 = 1`, `P_k = E u_k` (`0 < k < N`), `P_k = 0` (`k ≥ N`). -/ +noncomputable def chainProj (E : ℝ → (H →L[ℂ] H)) (N k : ℕ) : H →L[ℂ] H := + if k = 0 then 1 else if k < N then E (threshold N k) else 0 + +omit [CompleteSpace H] in +theorem chainProj_zero (E : ℝ → (H →L[ℂ] H)) (N : ℕ) : chainProj E N 0 = 1 := by + simp [chainProj] + +omit [CompleteSpace H] in +theorem chainProj_of_lt (E : ℝ → (H →L[ℂ] H)) {N k : ℕ} (hk : k ≠ 0) (hkN : k < N) : + chainProj E N k = E (threshold N k) := by + simp [chainProj, hk, hkN] + +omit [CompleteSpace H] in +theorem chainProj_of_not_lt (E : ℝ → (H →L[ℂ] H)) {N k : ℕ} (hk : k ≠ 0) (hkN : ¬ k < N) : + chainProj E N k = 0 := by + simp [chainProj, hk, hkN] + +theorem chainProj_mem (M : VonNeumannAlgebra H) {E : ℝ → (H →L[ℂ] H)} (hEM : ∀ u, E u ∈ M) + (N k : ℕ) : chainProj E N k ∈ M := by + by_cases hk : k = 0 + · subst hk + rw [chainProj_zero] + exact one_mem M + · by_cases hkN : k < N + · rw [chainProj_of_lt E hk hkN] + exact hEM _ + · rw [chainProj_of_not_lt E hk hkN] + exact zero_mem M + +theorem chainProj_isSelfAdjoint {E : ℝ → (H →L[ℂ] H)} (hEsa : ∀ u, IsSelfAdjoint (E u)) + (N k : ℕ) : IsSelfAdjoint (chainProj E N k) := by + by_cases hk : k = 0 + · subst hk + rw [chainProj_zero] + exact isSelfAdjoint_one_op + · by_cases hkN : k < N + · rw [chainProj_of_lt E hk hkN] + exact hEsa _ + · rw [chainProj_of_not_lt E hk hkN] + exact isSelfAdjoint_zero_op + +omit [CompleteSpace H] in +theorem chainProj_idem {E : ℝ → (H →L[ℂ] H)} (hEid : ∀ u, E u * E u = E u) (N k : ℕ) : + chainProj E N k * chainProj E N k = chainProj E N k := by + by_cases hk : k = 0 + · subst hk + rw [chainProj_zero, mul_one] + · by_cases hkN : k < N + · rw [chainProj_of_lt E hk hkN] + exact hEid _ + · rw [chainProj_of_not_lt E hk hkN, mul_zero] + +omit [CompleteSpace H] in +theorem chainProj_comm {A : H →L[ℂ] H} {E : ℝ → (H →L[ℂ] H)} + (hEA : ∀ u, E u * A = A * E u) (N k : ℕ) : + chainProj E N k * A = A * chainProj E N k := by + by_cases hk : k = 0 + · subst hk + rw [chainProj_zero, one_mul, mul_one] + · by_cases hkN : k < N + · rw [chainProj_of_lt E hk hkN] + exact hEA _ + · rw [chainProj_of_not_lt E hk hkN, zero_mul, mul_zero] + +omit [CompleteSpace H] in +theorem chainProj_mono {E : ℝ → (H →L[ℂ] H)} (hmono : ∀ u v, u ≤ v → E u * E v = E v) + (N k : ℕ) : chainProj E N k * chainProj E N (k + 1) = chainProj E N (k + 1) := by + by_cases hk1 : k + 1 < N + · rw [chainProj_of_lt E (show k + 1 ≠ 0 by omega) hk1] + by_cases hk : k = 0 + · subst hk + rw [chainProj_zero, one_mul] + · rw [chainProj_of_lt E hk (show k < N by omega)] + exact hmono _ _ (threshold_le_succ N k) + · rw [chainProj_of_not_lt E (show k + 1 ≠ 0 by omega) hk1, mul_zero] + +end ReflectionApprox + +open ReflectionApprox + +/-! ### The approximation theorems -/ + +/-- A self-adjoint contraction with threshold projections is within `2/N` of an average of `N` +reflections. -/ +theorem exists_reflection_average_near (M : VonNeumannAlgebra H) {A : H →L[ℂ] H} + (hA : A ∈ saContractions M) + (E : ℝ → (H →L[ℂ] H)) + (hEM : ∀ u, E u ∈ M) (hEsa : ∀ u, IsSelfAdjoint (E u)) (hEid : ∀ u, E u * E u = E u) + (hEA : ∀ u, E u * A = A * E u) + (hpos : ∀ u : ℝ, ((A - (u : ℂ) • (1 : H →L[ℂ] H)) * E u).IsPositive) + (hneg : ∀ u : ℝ, (((u : ℂ) • (1 : H →L[ℂ] H) - A) * (1 - E u)).IsPositive) + (hmono : ∀ u v, u ≤ v → E u * E v = E v) + (N : ℕ) (hN : 0 < N) : + ∃ R : Fin N → (H →L[ℂ] H), (∀ k, R k ∈ reflections M) ∧ + ‖A - (1 / (N : ℝ)) • ∑ k, R k‖ ≤ 2 / (N : ℝ) := by + have hA' : A ∈ M ∧ IsSelfAdjoint A ∧ ‖A‖ ≤ 1 := hA + obtain ⟨_hAM, hAsa, hAn⟩ := hA' + have hNne : (N : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr hN.ne' + have hposc : ∀ k, k < N → + ((A - (threshold N k : ℂ) • (1 : H →L[ℂ] H)) * chainProj E N k).IsPositive := by + intro k hk + by_cases hk0 : k = 0 + · subst hk0 + have e : A - ((-1 : ℝ) : ℂ) • (1 : H →L[ℂ] H) = 1 + A := by + rw [Complex.ofReal_neg, Complex.ofReal_one, neg_smul, one_smul] + abel + rw [chainProj_zero, threshold_zero, mul_one, e] + exact isPositive_one_add_of_saContraction hAsa hAn + · rw [chainProj_of_lt E hk0 hk] + exact hpos _ + have hnegc : ∀ k, k < N → + (((threshold N (k + 1) : ℂ) • (1 : H →L[ℂ] H) - A) + * (1 - chainProj E N (k + 1))).IsPositive := by + intro k hk + by_cases hk1 : k + 1 < N + · rw [chainProj_of_lt E (show k + 1 ≠ 0 by omega) hk1] + exact hneg _ + · have hkN : k + 1 = N := by omega + have hth : threshold N (k + 1) = 1 := by + rw [hkN] + exact threshold_self hN + rw [chainProj_of_not_lt E (show k + 1 ≠ 0 by omega) hk1, hth, sub_zero, mul_one, + Complex.ofReal_one, one_smul] + exact isPositive_one_sub_of_saContraction hAsa hAn + have hmain := norm_sub_chain_average_le (A := A) (chainProj E N) (threshold N) + (2 / (N : ℝ)) N (by positivity) (threshold_succ N) (chainProj_isSelfAdjoint hEsa N) + (chainProj_idem hEid N) (chainProj_comm hEA N) (chainProj_mono hmono N) hposc hnegc + (chainProj_zero E N) (chainProj_of_not_lt E hN.ne' (lt_irrefl N)) (threshold_zero N) + refine ⟨fun k : Fin N => chainProj E N k + chainProj E N k - 1, fun k => ?_, ?_⟩ + · exact add_self_sub_one_mem_reflections (chainProj_mem M hEM N k) + (chainProj_isSelfAdjoint hEsa N k) (chainProj_idem hEid N k) + · have hfin : ∑ k : Fin N, (chainProj E N k + chainProj E N k - 1) + = ∑ k ∈ Finset.range N, (chainProj E N k + chainProj E N k - 1) := + Fin.sum_univ_eq_sum_range (fun k => chainProj E N k + chainProj E N k - 1) N + have h2 : 1 / (N : ℝ) + 1 / (N : ℝ) = 2 / (N : ℝ) := by ring + have e : (1 / (N : ℝ)) • ∑ k : Fin N, (chainProj E N k + chainProj E N k - 1) + = (2 / (N : ℝ)) • (∑ k ∈ Finset.range N, chainProj E N k) - 1 := by + rw [hfin, sum_range_add_self_sub_one (chainProj E N) N, smul_sub, smul_add, smul_smul, + one_div_mul_cancel hNne, one_smul, ← add_smul, h2] + change ‖A - (1 / (N : ℝ)) • ∑ k : Fin N, (chainProj E N k + chainProj E N k - 1)‖ + ≤ 2 / (N : ℝ) + rw [e] + exact hmain + +/-- A self-adjoint contraction with threshold projections lies in the norm closure of the +convex hull of the reflections. -/ +theorem mem_closure_convexHull_reflections_of_thresholds (M : VonNeumannAlgebra H) + {A : H →L[ℂ] H} (hA : A ∈ saContractions M) + (E : ℝ → (H →L[ℂ] H)) + (hEM : ∀ u, E u ∈ M) (hEsa : ∀ u, IsSelfAdjoint (E u)) (hEid : ∀ u, E u * E u = E u) + (hEA : ∀ u, E u * A = A * E u) + (hpos : ∀ u : ℝ, ((A - (u : ℂ) • (1 : H →L[ℂ] H)) * E u).IsPositive) + (hneg : ∀ u : ℝ, (((u : ℂ) • (1 : H →L[ℂ] H) - A) * (1 - E u)).IsPositive) + (hmono : ∀ u v, u ≤ v → E u * E v = E v) : + A ∈ closure (convexHull ℝ (reflections M)) := by + rw [Metric.mem_closure_iff] + intro ε hε + obtain ⟨n, hn⟩ := exists_nat_gt (2 / ε) + have h2ε : (0 : ℝ) < 2 / ε := by positivity + have hnpos : (0 : ℝ) < n := lt_trans h2ε hn + have hnne : (n : ℝ) ≠ 0 := hnpos.ne' + have hn0 : 0 < n := Nat.cast_pos.mp hnpos + obtain ⟨R, hR, hnorm⟩ := + exists_reflection_average_near M hA E hEM hEsa hEid hEA hpos hneg hmono n hn0 + have hsum : ∑ _k : Fin n, (1 / (n : ℝ)) = 1 := by + rw [Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul] + exact mul_one_div_cancel hnne + have key : ∑ k : Fin n, (1 / (n : ℝ)) • R k ∈ convexHull ℝ (reflections M) := + (convex_convexHull ℝ (reflections M)).sum_mem (fun _ _ => by positivity) hsum + (fun k _ => subset_convexHull ℝ _ (hR k)) + refine ⟨(1 / (n : ℝ)) • ∑ k, R k, ?_, ?_⟩ + · rw [Finset.smul_sum] + exact key + · rw [dist_eq_norm] + exact lt_of_le_of_lt hnorm ((div_lt_comm₀ hnpos hε).mpr hn) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/ReflectionReduction.lean b/LeanPool/VacuumBellSeparation/Bell/ReflectionReduction.lean new file mode 100644 index 0000000000..a83a99d092 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/ReflectionReduction.lean @@ -0,0 +1,210 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Reflections +public import LeanPool.VacuumBellSeparation.Bell.StateBound + +/-! +# Reduction of the CHSH bound from reflections to self-adjoint contractions + +The first step of the proof of Theorem 3.1 of the manuscript: "the CHSH expression is +separately affine in its four observables", so a bound on reflection quartets extends to +the norm-closed convex hull of the reflections in each slot. + +`chsh_bound_of_reflections` takes the approximation property +`saContractions M ⊆ closure (convexHull ℝ (reflections M))` as an explicit hypothesis; that +property (the spectral resolution of a self-adjoint contraction inside a von Neumann +algebra) is proved separately. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- A state is norm continuous. -/ +theorem State.continuous (ω : State H) : Continuous (fun T : H →L[ℂ] H => ω T) := + AddMonoidHomClass.continuous_of_bound ω.toLinearMap 2 (fun T => ω.norm_apply_le T) + +/-- Real-linear combinations pass through a state. -/ +theorem State.map_real_combo (ω : State H) (a b : ℝ) (S T : H →L[ℂ] H) : + ω (a • S + b • T) = (a : ℂ) * ω S + (b : ℂ) * ω T := by + have ha : a • S = (a : ℂ) • S := (Complex.coe_smul a S).symm + have hb : b • T = (b : ℂ) • T := (Complex.coe_smul b T).symm + rw [ha, hb, map_add, map_smul, map_smul, smul_eq_mul, smul_eq_mul] + +/-- An affine combination distributes over a common summand. -/ +theorem affine_aux {V : Type*} [AddCommGroup V] [Module ℝ V] (P Q D : V) {a b : ℝ} + (hab : a + b = 1) : a • P + b • Q + D = a • (P + D) + b • (Q + D) := by + have hD : a • D + b • D = D := by rw [← add_smul, hab, one_smul] + have h : a • (P + D) + b • (Q + D) = a • P + b • Q + (a • D + b • D) := by + rw [smul_add, smul_add] + abel + rw [h, hD] + +omit [CompleteSpace H] in +/-- The CHSH operator is affine in its first slot. -/ +theorem chshOp_affine_fst (X Y A₁ B₀ B₁ : H →L[ℂ] H) {a b : ℝ} (hab : a + b = 1) : + chshOp (a • X + b • Y) A₁ B₀ B₁ = a • chshOp X A₁ B₀ B₁ + b • chshOp Y A₁ B₀ B₁ := by + have h : chshOp (a • X + b • Y) A₁ B₀ B₁ + = a • (X * (B₀ + B₁)) + b • (Y * (B₀ + B₁)) + A₁ * (B₀ - B₁) := by + unfold chshOp + rw [add_mul, smul_mul_assoc, smul_mul_assoc] + have hX : chshOp X A₁ B₀ B₁ = X * (B₀ + B₁) + A₁ * (B₀ - B₁) := rfl + have hY : chshOp Y A₁ B₀ B₁ = Y * (B₀ + B₁) + A₁ * (B₀ - B₁) := rfl + rw [h, hX, hY] + exact affine_aux _ _ _ hab + +omit [CompleteSpace H] in +/-- The CHSH operator is affine in its second slot. -/ +theorem chshOp_affine_snd (A₀ X Y B₀ B₁ : H →L[ℂ] H) {a b : ℝ} (hab : a + b = 1) : + chshOp A₀ (a • X + b • Y) B₀ B₁ = a • chshOp A₀ X B₀ B₁ + b • chshOp A₀ Y B₀ B₁ := by + have h : chshOp A₀ (a • X + b • Y) B₀ B₁ + = a • (X * (B₀ - B₁)) + b • (Y * (B₀ - B₁)) + A₀ * (B₀ + B₁) := by + unfold chshOp + rw [add_mul, smul_mul_assoc, smul_mul_assoc, add_comm] + have hX : chshOp A₀ X B₀ B₁ = X * (B₀ - B₁) + A₀ * (B₀ + B₁) := by + unfold chshOp + exact add_comm _ _ + have hY : chshOp A₀ Y B₀ B₁ = Y * (B₀ - B₁) + A₀ * (B₀ + B₁) := by + unfold chshOp + exact add_comm _ _ + rw [h, hX, hY] + exact affine_aux _ _ _ hab + +omit [CompleteSpace H] in +/-- The CHSH operator is affine in its third slot. -/ +theorem chshOp_affine_thd (A₀ A₁ X Y B₁ : H →L[ℂ] H) {a b : ℝ} (hab : a + b = 1) : + chshOp A₀ A₁ (a • X + b • Y) B₁ = a • chshOp A₀ A₁ X B₁ + b • chshOp A₀ A₁ Y B₁ := by + have h : chshOp A₀ A₁ (a • X + b • Y) B₁ + = a • (A₀ * X + A₁ * X) + b • (A₀ * Y + A₁ * Y) + (A₀ * B₁ - A₁ * B₁) := by + unfold chshOp + simp only [mul_add, mul_sub, mul_smul_comm, smul_add] + abel + have hX : chshOp A₀ A₁ X B₁ = (A₀ * X + A₁ * X) + (A₀ * B₁ - A₁ * B₁) := by + unfold chshOp + rw [mul_add, mul_sub] + abel + have hY : chshOp A₀ A₁ Y B₁ = (A₀ * Y + A₁ * Y) + (A₀ * B₁ - A₁ * B₁) := by + unfold chshOp + rw [mul_add, mul_sub] + abel + rw [h, hX, hY] + exact affine_aux _ _ _ hab + +omit [CompleteSpace H] in +/-- The CHSH operator is affine in its fourth slot. -/ +theorem chshOp_affine_fth (A₀ A₁ B₀ X Y : H →L[ℂ] H) {a b : ℝ} (hab : a + b = 1) : + chshOp A₀ A₁ B₀ (a • X + b • Y) = a • chshOp A₀ A₁ B₀ X + b • chshOp A₀ A₁ B₀ Y := by + have h : chshOp A₀ A₁ B₀ (a • X + b • Y) + = a • (A₀ * X - A₁ * X) + b • (A₀ * Y - A₁ * Y) + (A₀ * B₀ + A₁ * B₀) := by + unfold chshOp + simp only [mul_add, mul_sub, mul_smul_comm, smul_sub] + abel + have hX : chshOp A₀ A₁ B₀ X = (A₀ * X - A₁ * X) + (A₀ * B₀ + A₁ * B₀) := by + unfold chshOp + rw [mul_add, mul_sub] + abel + have hY : chshOp A₀ A₁ B₀ Y = (A₀ * Y - A₁ * Y) + (A₀ * B₀ + A₁ * B₀) := by + unfold chshOp + rw [mul_add, mul_sub] + abel + rw [h, hX, hY] + exact affine_aux _ _ _ hab + +omit [CompleteSpace H] in +/-- A norm bound for a continuous, real-affine, complex-valued function on a set extends to +the closure of the convex hull of that set. -/ +theorem norm_le_on_closure_convexHull {g : (H →L[ℂ] H) → ℂ} (hcont : Continuous g) + (haff : ∀ (X Y : H →L[ℂ] H) (a b : ℝ), a + b = 1 → + g (a • X + b • Y) = (a : ℂ) * g X + (b : ℂ) * g Y) + {s : Set (H →L[ℂ] H)} {c : ℝ} (hs : ∀ X ∈ s, ‖g X‖ ≤ c) : + ∀ X ∈ closure (convexHull ℝ s), ‖g X‖ ≤ c := by + have hconv : Convex ℝ {X : H →L[ℂ] H | ‖g X‖ ≤ c} := by + intro X hX Y hY a b ha hb hab + have hX' : ‖g X‖ ≤ c := hX + have hY' : ‖g Y‖ ≤ c := hY + change ‖g (a • X + b • Y)‖ ≤ c + rw [haff X Y a b hab] + calc ‖(a : ℂ) * g X + (b : ℂ) * g Y‖ + ≤ ‖(a : ℂ) * g X‖ + ‖(b : ℂ) * g Y‖ := norm_add_le _ _ + _ = a * ‖g X‖ + b * ‖g Y‖ := by + rw [norm_mul, norm_mul, Complex.norm_real, Complex.norm_real, + Real.norm_of_nonneg ha, Real.norm_of_nonneg hb] + _ ≤ a * c + b * c := + add_le_add (mul_le_mul_of_nonneg_left hX' ha) (mul_le_mul_of_nonneg_left hY' hb) + _ = c := by rw [← add_mul, hab, one_mul] + have hclosed : IsClosed {X : H →L[ℂ] H | ‖g X‖ ≤ c} := + isClosed_le (continuous_norm.comp hcont) continuous_const + have hsub : s ⊆ {X : H →L[ℂ] H | ‖g X‖ ≤ c} := fun X hX => hs X hX + exact fun X hX => closure_minimal (convexHull_min hsub hconv) hclosed hX + +/-- If every self-adjoint contraction of `𝔄` and of `𝔅` is a norm limit of convex +combinations of reflections of the same algebra, then a bound on the CHSH expectations of +reflection quartets extends to all quartets of self-adjoint contractions. -/ +theorem chsh_bound_of_reflections + (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} {c : ℝ} + (hA : saContractions 𝔄 ⊆ closure (convexHull ℝ (reflections 𝔄))) + (hB : saContractions 𝔅 ⊆ closure (convexHull ℝ (reflections 𝔅))) + (h : ∀ A₀ ∈ reflections 𝔄, ∀ A₁ ∈ reflections 𝔄, ∀ B₀ ∈ reflections 𝔅, + ∀ B₁ ∈ reflections 𝔅, ‖ω (chshOp A₀ A₁ B₀ B₁)‖ ≤ c) : + ∀ A₀ ∈ saContractions 𝔄, ∀ A₁ ∈ saContractions 𝔄, ∀ B₀ ∈ saContractions 𝔅, + ∀ B₁ ∈ saContractions 𝔅, ‖ω (chshOp A₀ A₁ B₀ B₁)‖ ≤ c := by + have h1 : ∀ A₀ ∈ saContractions 𝔄, ∀ A₁ ∈ reflections 𝔄, ∀ B₀ ∈ reflections 𝔅, + ∀ B₁ ∈ reflections 𝔅, ‖ω (chshOp A₀ A₁ B₀ B₁)‖ ≤ c := by + intro A₀ hA₀ A₁ hA₁ B₀ hB₀ B₁ hB₁ + have hcont : Continuous (fun X : H →L[ℂ] H => ω (chshOp X A₁ B₀ B₁)) := by + have hc : Continuous (fun X : H →L[ℂ] H => chshOp X A₁ B₀ B₁) := by + unfold chshOp + fun_prop + exact ω.continuous.comp hc + exact norm_le_on_closure_convexHull (g := fun X => ω (chshOp X A₁ B₀ B₁)) hcont + (fun X Y a b hab => by + show ω (chshOp (a • X + b • Y) A₁ B₀ B₁) = _ + rw [chshOp_affine_fst X Y A₁ B₀ B₁ hab, ω.map_real_combo]) + (fun X hX => h X hX A₁ hA₁ B₀ hB₀ B₁ hB₁) A₀ (hA hA₀) + have h2 : ∀ A₀ ∈ saContractions 𝔄, ∀ A₁ ∈ saContractions 𝔄, ∀ B₀ ∈ reflections 𝔅, + ∀ B₁ ∈ reflections 𝔅, ‖ω (chshOp A₀ A₁ B₀ B₁)‖ ≤ c := by + intro A₀ hA₀ A₁ hA₁ B₀ hB₀ B₁ hB₁ + have hcont : Continuous (fun X : H →L[ℂ] H => ω (chshOp A₀ X B₀ B₁)) := by + have hc : Continuous (fun X : H →L[ℂ] H => chshOp A₀ X B₀ B₁) := by + unfold chshOp + fun_prop + exact ω.continuous.comp hc + exact norm_le_on_closure_convexHull (g := fun X => ω (chshOp A₀ X B₀ B₁)) hcont + (fun X Y a b hab => by + show ω (chshOp A₀ (a • X + b • Y) B₀ B₁) = _ + rw [chshOp_affine_snd A₀ X Y B₀ B₁ hab, ω.map_real_combo]) + (fun X hX => h1 A₀ hA₀ X hX B₀ hB₀ B₁ hB₁) A₁ (hA hA₁) + have h3 : ∀ A₀ ∈ saContractions 𝔄, ∀ A₁ ∈ saContractions 𝔄, ∀ B₀ ∈ saContractions 𝔅, + ∀ B₁ ∈ reflections 𝔅, ‖ω (chshOp A₀ A₁ B₀ B₁)‖ ≤ c := by + intro A₀ hA₀ A₁ hA₁ B₀ hB₀ B₁ hB₁ + have hcont : Continuous (fun X : H →L[ℂ] H => ω (chshOp A₀ A₁ X B₁)) := by + have hc : Continuous (fun X : H →L[ℂ] H => chshOp A₀ A₁ X B₁) := by + unfold chshOp + fun_prop + exact ω.continuous.comp hc + exact norm_le_on_closure_convexHull (g := fun X => ω (chshOp A₀ A₁ X B₁)) hcont + (fun X Y a b hab => by + show ω (chshOp A₀ A₁ (a • X + b • Y) B₁) = _ + rw [chshOp_affine_thd A₀ A₁ X Y B₁ hab, ω.map_real_combo]) + (fun X hX => h2 A₀ hA₀ A₁ hA₁ X hX B₁ hB₁) B₀ (hB hB₀) + intro A₀ hA₀ A₁ hA₁ B₀ hB₀ B₁ hB₁ + have hcont : Continuous (fun X : H →L[ℂ] H => ω (chshOp A₀ A₁ B₀ X)) := by + have hc : Continuous (fun X : H →L[ℂ] H => chshOp A₀ A₁ B₀ X) := by + unfold chshOp + fun_prop + exact ω.continuous.comp hc + exact norm_le_on_closure_convexHull (g := fun X => ω (chshOp A₀ A₁ B₀ X)) hcont + (fun X Y a b hab => by + show ω (chshOp A₀ A₁ B₀ (a • X + b • Y)) = _ + rw [chshOp_affine_fth A₀ A₁ B₀ X Y hab, ω.map_real_combo]) + (fun X hX => h3 A₀ hA₀ A₁ hA₁ B₀ hB₀ X hX) B₁ (hB hB₁) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/Reflections.lean b/LeanPool/VacuumBellSeparation/Bell/Reflections.lean new file mode 100644 index 0000000000..876ca0b890 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/Reflections.lean @@ -0,0 +1,113 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.ProbabilityCriterion + +/-! +# Reflection quartets and the projection form of the probability criterion + +The manuscript's Theorem 3.1 assumes the event bounds only for local *projections*. For a +quartet of *reflections* (self-adjoint unitaries) the outcome effects `(1 ± A)/2` are +projections, so the criterion applies with projection hypotheses: +`chshValue_le_one_of_projection_bounds`. + +The reduction step of the manuscript's proof ("every self-adjoint contraction is a spectral +average of reflections"), which passes from reflection quartets to arbitrary quartets of +self-adjoint contractions, is proved in `VacuumBellSeparation.Bell.ReflectionReduction`, +`VacuumBellSeparation.Bell.SpectralThreshold`, `VacuumBellSeparation.Bell.ReflectionApprox` +and assembled in `VacuumBellSeparation.Bell.Theorem31`. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The reflections (self-adjoint unitaries) of a von Neumann algebra `M`. -/ +def reflections (M : VonNeumannAlgebra H) : Set (H →L[ℂ] H) := + {A | A ∈ M ∧ IsSelfAdjoint A ∧ A * A = 1} + +/-- A self-adjoint operator with `A * A = 1` is a contraction. -/ +theorem norm_le_one_of_reflection {A : H →L[ℂ] H} (hsa : IsSelfAdjoint A) + (hsq : A * A = 1) : ‖A‖ ≤ 1 := by + have h1 : ‖star A * A‖ = ‖A‖ * ‖A‖ := CStarRing.norm_star_mul_self + rw [hsa.star_eq, hsq] at h1 + have h2 : ‖(1 : H →L[ℂ] H)‖ ≤ 1 := + ContinuousLinearMap.opNorm_le_bound _ zero_le_one (fun x => by simp) + by_contra hlt + have hlt' : 1 < ‖A‖ := lt_of_not_ge hlt + nlinarith + +theorem reflections_subset_saContractions (M : VonNeumannAlgebra H) : + reflections M ⊆ saContractions M := + fun _ hA => ⟨hA.1, hA.2.1, norm_le_one_of_reflection hA.2.1 hA.2.2⟩ + +theorem neg_mem_reflections {M : VonNeumannAlgebra H} {A : H →L[ℂ] H} + (hA : A ∈ reflections M) : -A ∈ reflections M := + ⟨neg_mem hA.1, hA.2.1.neg, by rw [neg_mul_neg]; exact hA.2.2⟩ + +theorem one_mem_projections (M : VonNeumannAlgebra H) : + (1 : H →L[ℂ] H) ∈ projections M := + ⟨one_mem M, by simp, mul_one 1⟩ + +/-- The outcome effects `(1 ± A)/2` of a reflection are projections. -/ +theorem outcomeEffect_mem_projections {M : VonNeumannAlgebra H} {A : H →L[ℂ] H} + (hA : A ∈ reflections M) (α : Bool) : outcomeEffect A α ∈ projections M := by + have hsa := hA.2.1 + have hsq := hA.2.2 + have hn := norm_le_one_of_reflection hsa hsq + refine ⟨(outcomeEffect_mem_effects (reflections_subset_saContractions M hA) α).1, + (outcomeEffect_isPositive hsa hn α).isSelfAdjoint, ?_⟩ + cases α + · rw [outcomeEffect_false] + have h : (1 - A) * (1 - A) = (2 : ℂ) • (1 - A) := by + simp only [two_smul, mul_sub, sub_mul, one_mul, mul_one, hsq] + abel + rw [smul_mul_smul_comm, h, smul_smul] + norm_num + · rw [outcomeEffect_true] + have h : (1 + A) * (1 + A) = (2 : ℂ) • (1 + A) := by + simp only [two_smul, mul_add, add_mul, one_mul, mul_one, hsq] + abel + rw [smul_mul_smul_comm, h, smul_smul] + norm_num + +/-- **Theorem 3.1 for reflection quartets (projection form).** With the event bounds +assumed only for local projections, as in the manuscript, every quartet of local +*reflections* has CHSH value at most `1`. -/ +theorem chshValue_le_one_of_projection_bounds + (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {rp rm Kp Km q : ℝ} (hrp : 2 < rp) (hrm : 1 < rm) (_hrm2 : rm < 2) + (hη : 0 < expEta rp rm) + (hup : ∀ E ∈ projections 𝔄, ∀ P ∈ projections 𝔅, + (ω (E * P)).re ^ rp ≤ Kp * ((ω E).re * (ω P).re) ^ (rp - 1)) + (hlow : ∀ E ∈ projections 𝔄, ∀ P ∈ projections 𝔅, + ((ω E).re * (ω P).re) ^ rm ≤ Km * (ω (E * P)).re ^ (rm - 1)) + (hcl : ∀ A ∈ saContractions 𝔄, ∀ B ∈ saContractions 𝔅, + ‖ω (A * B) - ω A * ω B‖ ≤ q) + (hcut : q ^ expEta rp rm * Kp ^ nuPlus rp rm * Km ^ nuMinus rm + ≤ (2 : ℝ) ^ (-(2 / (expA rm * expB rp)))) + {A₀ A₁ B₀ B₁ : H →L[ℂ] H} + (hA₀ : A₀ ∈ reflections 𝔄) (hA₁ : A₁ ∈ reflections 𝔄) + (hB₀ : B₀ ∈ reflections 𝔅) (hB₁ : B₁ ∈ reflections 𝔅) : + (1 / 2 : ℝ) * ‖ω (chshOp A₀ A₁ B₀ B₁)‖ ≤ 1 := by + have hKp : (1 : ℝ) ≤ Kp := by + simpa [ω.map_one'] using hup 1 (one_mem_projections 𝔄) 1 (one_mem_projections 𝔅) + have hKm : (1 : ℝ) ≤ Km := by + simpa [ω.map_one'] using hlow 1 (one_mem_projections 𝔄) 1 (one_mem_projections 𝔅) + exact chshValue_le_one_of_event_bounds ω hcomm (by linarith) hrm hη (by linarith) + (by linarith) (projections 𝔄) (projections 𝔅) hup hlow hcl hcut + (reflections_subset_saContractions 𝔄 hA₀) (reflections_subset_saContractions 𝔄 hA₁) + (reflections_subset_saContractions 𝔅 hB₀) (reflections_subset_saContractions 𝔅 hB₁) + (fun α => ⟨outcomeEffect_mem_projections hA₀ α, outcomeEffect_mem_projections hA₁ α, + outcomeEffect_mem_projections (neg_mem_reflections hA₀) α, + outcomeEffect_mem_projections (neg_mem_reflections hA₁) α⟩) + (fun β => ⟨outcomeEffect_mem_projections hB₀ β, outcomeEffect_mem_projections hB₁ β⟩) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/RepresentedVectorBellMaximality.lean b/LeanPool/VacuumBellSeparation/Bell/RepresentedVectorBellMaximality.lean new file mode 100644 index 0000000000..e49f94889a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/RepresentedVectorBellMaximality.lean @@ -0,0 +1,60 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.CommutantVectorStateDensity +public import LeanPool.VacuumBellSeparation.Bell.DominatedNormalStateResidual + +/-! +# Maximal Bell correlation for every represented unit-vector state + +This is the original-H vector-state part of the SW88 Theorem 2.1 argument. +The reference unit vector separates the actual jointly generated algebra. +Commutant-orbit approximation supplies genuinely dominated normal states; +convex maximality inheritance and full-dual norm continuity give the result. +No representation or density theorem for arbitrary normal states is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite.SW88 + +open HC00 +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Maximality extends to the actual norm closure of dominated normal states. +Domination is an inequality on every positive element of the original joint algebra. -/ +theorem jointBellCorrelation_maximal_of_mem_closure_dominated + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) + (ω : NormalStateSpace (jointAlgebra A B)) + (hmax : jointBellCorrelation A B ω.1 = Real.sqrt 2) + {φ : NormalStateSpace (jointAlgebra A B)} + (hφ : φ ∈ closure {ψ : NormalStateSpace (jointAlgebra A B) | + ∃ t : ℝ, 0 < t ∧ t < 1 ∧ ∀ T : (jointAlgebra A B).toStarSubalgebra, + 0 ≤ T → t • ψ.1 T ≤ ω.1 T}) : + jointBellCorrelation A B φ.1 = Real.sqrt 2 := by + apply jointBellCorrelation_eq_of_mem_closure_normal A B ?_ hφ + rintro ψ ⟨t, ht, ht1, hdom⟩ + exact jointBellCorrelation_maximal_normal_of_dominated A B hcomm ω ψ hmax ht ht1 hdom + +/-- A maximal separating unit reference vector forces every original-H unit +vector state to be maximal. This conclusion is not all-normal-state maximality. -/ +theorem jointBellCorrelation_vectorState_maximal_of_separating + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) + (Ω : H) (hΩ : ‖Ω‖ = 1) (hsep : IsSeparatingForAlgebra (jointAlgebra A B) Ω) + (hmax : jointBellCorrelation A B (vectorFunctional (jointAlgebra A B) Ω) = Real.sqrt 2) + (χ : H) (hχ : ‖χ‖ = 1) : + jointBellCorrelation A B (vectorFunctional (jointAlgebra A B) χ) = Real.sqrt 2 := by + have hclosure := vectorNormalState_mem_closure_dominated + (jointAlgebra A B) Ω hΩ hsep χ hχ + exact jointBellCorrelation_maximal_of_mem_closure_dominated A B hcomm + (vectorNormalState (jointAlgebra A B) Ω hΩ) hmax hclosure + +end VacuumBellSeparation.Bipartite.SW88 diff --git a/LeanPool/VacuumBellSeparation/Bell/SW88MaximalCorrelationEquivalence.lean b/LeanPool/VacuumBellSeparation/Bell/SW88MaximalCorrelationEquivalence.lean new file mode 100644 index 0000000000..6f92b5ddee --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/SW88MaximalCorrelationEquivalence.lean @@ -0,0 +1,81 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalStateExistence +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalBellMaximality + +/-! +# SW88 Theorem 2.1 on the original joint von Neumann algebra + +The signed-real Bell quantity is the source's supremum over selfadjoint +contractions, with the literal factor one half. All normal states means the +existing positive, unital, all-directed order-normal full-dual carrier. +SeparableSpace and Nontrivial refer to the original full Hilbert space. +No geometry, named predual identification, or maximizing quartet is asserted. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open HC00 TopologicalSpace +open scoped ComplexOrder Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Package the constructed faithful state in the exact normal-state carrier. -/ +theorem exists_faithful_mem_normalStateSpace [SeparableSpace H] [Nontrivial H] + (M : VonNeumannAlgebra H) : + ∃ ω : NormalStateSpace M, + ∀ a : M.toStarSubalgebra, ω.1 (star a * a) = 0 → a = 0 := by + obtain ⟨φ, hunit, hn, hf⟩ := exists_faithful_normal_state_of_separable M + let f : StrongDual ℂ M.toStarSubalgebra := + (PositiveContinuousLinearMap.ofClass φ).toContinuousLinearMap + have hs : IsNormalStateFunctional M f := ⟨⟨φ, hunit, fun _ => rfl⟩, hn⟩ + exact ⟨⟨f, hs⟩, hf⟩ + +namespace SW88 + +/-- The abstract SW88 Theorem 2.1 equivalence for the signed CHSH supremum. +Faithfulness is its literal vanishing condition on every positive square. -/ +theorem jointSignedBellCorrelation_all_normal_maximal_iff_exists_faithful + [SeparableSpace H] [Nontrivial H] + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) : + (∀ ψ : NormalStateSpace (jointAlgebra A B), + jointSignedBellCorrelation A B ψ.1 = Real.sqrt 2) ↔ + ∃ ω : NormalStateSpace (jointAlgebra A B), + (∀ a : (jointAlgebra A B).toStarSubalgebra, + ω.1 (star a * a) = 0 → a = 0) ∧ + jointSignedBellCorrelation A B ω.1 = Real.sqrt 2 := by + constructor + · intro h + obtain ⟨ω, hf⟩ := exists_faithful_mem_normalStateSpace (jointAlgebra A B) + exact ⟨ω, hf, h ω⟩ + · rintro ⟨ω, hf, hmax⟩ ψ + exact jointSignedBellCorrelation_all_normal_maximal_of_faithful A B hcomm ω hf hmax ψ + +/-- The equivalent absolute-value convention already used by the HC00 API. -/ +theorem jointBellCorrelation_all_normal_maximal_iff_exists_faithful + [SeparableSpace H] [Nontrivial H] + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) : + (∀ ψ : NormalStateSpace (jointAlgebra A B), + jointBellCorrelation A B ψ.1 = Real.sqrt 2) ↔ + ∃ ω : NormalStateSpace (jointAlgebra A B), + (∀ a : (jointAlgebra A B).toStarSubalgebra, + ω.1 (star a * a) = 0 → a = 0) ∧ + jointBellCorrelation A B ω.1 = Real.sqrt 2 := by + constructor + · intro h + obtain ⟨ω, hf⟩ := exists_faithful_mem_normalStateSpace (jointAlgebra A B) + exact ⟨ω, hf, h ω⟩ + · rintro ⟨ω, hf, hmax⟩ ψ + exact jointBellCorrelation_all_normal_maximal_of_faithful A B hcomm ω hf hmax ψ + +end SW88 +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/SeparatingCommutantCyclic.lean b/LeanPool/VacuumBellSeparation/Bell/SeparatingCommutantCyclic.lean new file mode 100644 index 0000000000..558b2b946b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/SeparatingCommutantCyclic.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.BicommutantOrbit +public import LeanPool.VacuumBellSeparation.Bell.BipartiteNormalStateDefs + +/-! Separating and commutant-cyclic vectors in the original concrete Hilbert +space. This supplies no GNS construction for an arbitrary normal state. -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Predicate for separating for algebra. -/ +def IsSeparatingForAlgebra (M : VonNeumannAlgebra H) (Ω : H) : Prop := + ∀ T : H →L[ℂ] H, T ∈ M → T Ω = 0 → T = 0 + +theorem cyclicForAlgebra_iff_closedOperatorOrbit (M : VonNeumannAlgebra H) (Ω : H) : + IsCyclicForAlgebra M Ω ↔ (operatorOrbit M.toStarSubalgebra Ω).topologicalClosure = ⊤ := by + have he : {x : H | ∃ T : H →L[ℂ] H, T ∈ M ∧ x = T Ω} = + (operatorOrbit M.toStarSubalgebra Ω : Set H) := by + ext x + constructor + · rintro ⟨T, hT, rfl⟩ + exact ⟨T, hT, rfl⟩ + · rintro ⟨T, hT, rfl⟩ + exact ⟨T, hT, rfl⟩ + unfold IsCyclicForAlgebra + rw [he, Submodule.span_eq] + +theorem commutant_cyclic_of_separating (M : VonNeumannAlgebra H) (Ω : H) + (hsep : IsSeparatingForAlgebra M Ω) : IsCyclicForAlgebra M.commutant Ω := by + apply (cyclicForAlgebra_iff_closedOperatorOrbit M.commutant Ω).mpr + let K := (operatorOrbit M.commutant.toStarSubalgebra Ω).topologicalClosure + have hΩ : Ω ∈ K := (operatorOrbit M.commutant.toStarSubalgebra Ω).le_topologicalClosure + ⟨1, one_mem _, by simp⟩ + have hP : K.starProjection ∈ M := by + have hP' : K.starProjection ∈ M.commutant.commutant := by + apply VonNeumannAlgebra.mem_commutant_iff.mpr + intro T hT + exact starProjection_commutes_of_invariant M.commutant.toStarSubalgebra K + (fun S hS x hx => closedOperatorOrbit_invariant _ Ω hS hx) hT + simpa only [VonNeumannAlgebra.commutant_commutant] using hP' + have hz : (1 : H →L[ℂ] H) - K.starProjection = 0 := + hsep _ (sub_mem (one_mem M) hP) (by + simp only [sub_apply, one_apply_eq_self, + Submodule.starProjection_eq_self_iff.mpr hΩ, sub_self]) + have hPone : K.starProjection = 1 := (sub_eq_zero.mp hz).symm + change K = ⊤ + apply top_unique + intro x hx + apply Submodule.starProjection_eq_self_iff.mp + rw [hPone] + rfl + +theorem separating_of_commutant_cyclic (M : VonNeumannAlgebra H) (Ω : H) + (hcyc : IsCyclicForAlgebra M.commutant Ω) : IsSeparatingForAlgebra M Ω := by + intro T hT hTΩ + have ho : operatorOrbit M.commutant.toStarSubalgebra Ω ≤ T.ker := by + rintro x ⟨S, hS, rfl⟩ + change T (S Ω) = 0 + have hc := (VonNeumannAlgebra.mem_commutant_iff.mp hS) T hT + simpa only [mul_apply_eq_comp, hTΩ, map_zero] using + congrArg (fun R : H →L[ℂ] H => R Ω) hc + have hk := (operatorOrbit M.commutant.toStarSubalgebra Ω).topologicalClosure_minimal + ho T.isClosed_ker + have he := (cyclicForAlgebra_iff_closedOperatorOrbit M.commutant Ω).mp hcyc + apply ContinuousLinearMap.ext + intro x + change T x = 0 + apply hk + rw [he] + trivial + +theorem separating_iff_commutant_cyclic (M : VonNeumannAlgebra H) (Ω : H) : + IsSeparatingForAlgebra M Ω ↔ IsCyclicForAlgebra M.commutant Ω := + ⟨commutant_cyclic_of_separating M Ω, separating_of_commutant_cyclic M Ω⟩ + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/SeparatingVectorDominatedDensity.lean b/LeanPool/VacuumBellSeparation/Bell/SeparatingVectorDominatedDensity.lean new file mode 100644 index 0000000000..26edf90f8b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/SeparatingVectorDominatedDensity.lean @@ -0,0 +1,137 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalFiniteVectorApproximation +public import LeanPool.VacuumBellSeparation.Bell.CommutantVectorDomination +public import LeanPool.VacuumBellSeparation.Bell.SeparatingCommutantCyclic +public import LeanPool.VacuumBellSeparation.Bell.NormalPositiveConeClosure +public import Mathlib.Algebra.Group.Submonoid.BigOperators +public import Mathlib.Topology.Algebra.Monoid + +/-! +# Full normal-positive density from a separating reference vector + +The cone of positive dual functionals dominated by a finite multiple of the +reference is an actual additive submonoid. Its norm closure contains every +original-H vector functional by commutant orbit density, and hence every +normal positive functional by finite-vector approximation. No single-vector +representation of an arbitrary normal functional is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open SW88 +open scoped Topology ComplexOrder InnerProductSpace BigOperators + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Domination is tested on every positive element of the original algebra. -/ +def dominatedPositiveDualMonoid (M : VonNeumannAlgebra H) + (φ : M.toStarSubalgebra →ₚ[ℂ] ℂ) : AddSubmonoid (StrongDual ℂ M.toStarSubalgebra) where + carrier := {f | (∀ X : M.toStarSubalgebra, 0 ≤ X → 0 ≤ f X) ∧ + ∃ C : ℝ, 0 ≤ C ∧ ∀ X : M.toStarSubalgebra, 0 ≤ X → f X ≤ C • φ X} + zero_mem' := ⟨fun X _ => by simp, 0, le_rfl, fun X _ => by simp⟩ + add_mem' := by + rintro f g ⟨hf, C, hC, hCf⟩ ⟨hg, D, hD, hDg⟩ + refine ⟨fun X hX => add_nonneg (hf X hX) (hg X hX), + C + D, add_nonneg hC hD, ?_⟩ + intro X hX + simpa only [add_apply, add_smul] using + add_le_add (hCf X hX) (hDg X hX) + +/-- No normalization is used, including for the zero vector and zero H. -/ +theorem vectorDual_mem_closure_dominated_of_separating (M : VonNeumannAlgebra H) + (Ω : H) (hsep : IsSeparatingForAlgebra M Ω) (χ : H) : + vectorDual M χ ∈ (dominatedPositiveDualMonoid M + (vectorPositiveLinearMap M Ω)).topologicalClosure := by + change vectorDual M χ ∈ closure (dominatedPositiveDualMonoid M + (vectorPositiveLinearMap M Ω) : Set (StrongDual ℂ M.toStarSubalgebra)) + apply Metric.mem_closure_iff.mpr + intro ε hε + obtain ⟨δ, hδ, hδε⟩ := exists_pos_mul_lt hε (2 * ‖χ‖ + 1) + have hcyc := commutant_cyclic_of_separating M Ω hsep + have hclosure : χ ∈ closure (operatorOrbit M.commutant.toStarSubalgebra Ω : Set H) := by + change χ ∈ (operatorOrbit M.commutant.toStarSubalgebra Ω).topologicalClosure + rw [(cyclicForAlgebra_iff_closedOperatorOrbit M.commutant Ω).mp hcyc] + trivial + obtain ⟨x, ⟨S, hS, rfl⟩, hd⟩ := + Metric.mem_closure_iff.mp hclosure (min 1 δ) (lt_min zero_lt_one hδ) + have hdist : ‖χ - S Ω‖ < min 1 δ := by simpa only [dist_eq_norm] using hd + have hd1 : ‖χ - S Ω‖ < 1 := hdist.trans_le (min_le_left _ _) + have hdd : ‖χ - S Ω‖ < δ := hdist.trans_le (min_le_right _ _) + have hn : ‖S Ω‖ ≤ ‖χ‖ + 1 := by + have h := norm_sub_norm_le (S Ω) χ + rw [norm_sub_rev] at h + linarith + refine ⟨vectorDual M (S Ω), ?_, ?_⟩ + · exact ⟨fun X hX => (vectorPositiveLinearMap M (S Ω)).map_nonneg hX, + ‖S‖ ^ 2, sq_nonneg _, fun X hX => vectorDual_commutant_le M Ω hS X hX⟩ + · rw [dist_eq_norm] + calc + ‖vectorDual M χ - vectorDual M (S Ω)‖ ≤ (‖χ‖ + ‖S Ω‖) * ‖χ - S Ω‖ := + vectorDual_difference_norm_le M χ (S Ω) + _ ≤ (2 * ‖χ‖ + 1) * ‖χ - S Ω‖ := + mul_le_mul_of_nonneg_right (by linarith) (norm_nonneg _) + _ ≤ (2 * ‖χ‖ + 1) * δ := + mul_le_mul_of_nonneg_left hdd.le (by positivity) + _ < ε := hδε + +/-- Equality in the genuine continuous dual, including an empty family. -/ +theorem finiteVectorFunctional_dual_eq_sum (M : VonNeumannAlgebra H) + {ι : Type*} [Fintype ι] (ξ : ι → H) : + (PositiveContinuousLinearMap.ofClass (finiteVectorFunctional M ξ)).toContinuousLinearMap = + ∑ i, vectorDual M (ξ i) := by + apply ContinuousLinearMap.ext + intro a + change finiteVectorFunctional M ξ a = (∑ i, vectorDual M (ξ i)) a + rw [sum_apply, finiteVectorFunctional_apply] + rfl + +theorem finiteVectorDual_mem_closure_dominated_of_separating (M : VonNeumannAlgebra H) + (Ω : H) (hsep : IsSeparatingForAlgebra M Ω) + {ι : Type*} [Fintype ι] (ξ : ι → H) : + (PositiveContinuousLinearMap.ofClass (finiteVectorFunctional M ξ)).toContinuousLinearMap ∈ + (dominatedPositiveDualMonoid M (vectorPositiveLinearMap M Ω)).topologicalClosure := by + rw [finiteVectorFunctional_dual_eq_sum] + exact AddSubmonoid.sum_mem _ fun i _ => + vectorDual_mem_closure_dominated_of_separating M Ω hsep (ξ i) + +/-- Every positive order-normal functional is approximated in full dual norm +by actual positive functionals dominated by the separating reference. -/ +theorem normalFunctional_mem_closure_dominated_of_separating (M : VonNeumannAlgebra H) + (Ω : H) (hsep : IsSeparatingForAlgebra M Ω) + (ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hn : IsNormalFunctional M ψ) : + (PositiveContinuousLinearMap.ofClass ψ).toContinuousLinearMap ∈ + (dominatedPositiveDualMonoid M (vectorPositiveLinearMap M Ω)).topologicalClosure := by + have h := normalFunctional_mem_closure_finite_vector_sums M ψ hn + apply closure_minimal ?_ + (dominatedPositiveDualMonoid M (vectorPositiveLinearMap M Ω)).isClosed_topologicalClosure h + rintro f ⟨n, ξ, rfl⟩ + exact finiteVectorDual_mem_closure_dominated_of_separating M Ω hsep ξ + +/-- Exact cone equality; positivity and order normality are literal predicates +on the original continuous dual. This is not a statement only about vectors. -/ +theorem closure_dominated_eq_positive_normal_of_separating (M : VonNeumannAlgebra H) + (Ω : H) (hsep : IsSeparatingForAlgebra M Ω) : + ((dominatedPositiveDualMonoid M (vectorPositiveLinearMap M Ω)).topologicalClosure : + Set (StrongDual ℂ M.toStarSubalgebra)) = + {f : StrongDual ℂ M.toStarSubalgebra | + (∀ X : M.toStarSubalgebra, 0 ≤ X → 0 ≤ f X) ∧ IsNormalFunctional M f} := by + apply Set.ext + intro f + constructor + · exact fun hf => closure_dominated_positive_subset_normal M + (vectorPositiveLinearMap M Ω) (vectorFunctional_isNormal M Ω) hf + · rintro ⟨hf, hn⟩ + let ψ : M.toStarSubalgebra →ₚ[ℂ] ℂ := PositiveLinearMap.mk₀ f.toLinearMap hf + exact normalFunctional_mem_closure_dominated_of_separating M Ω hsep ψ hn + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/SignedBellCorrelation.lean b/LeanPool/VacuumBellSeparation/Bell/SignedBellCorrelation.lean new file mode 100644 index 0000000000..ad56e4ab0d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/SignedBellCorrelation.lean @@ -0,0 +1,113 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.SignedBellCorrelationDefs +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationContinuity + +/-! Exact signed/absolute Bell bridge on the original joint algebra. +Negating both Alice observables reverses the CHSH sign without changing the +admissible class. No maximizing quartet, normality or ambient extension is used. -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite.HC00 +open scoped ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem stateFunctional_isSelfAdjoint (M : VonNeumannAlgebra H) + (φ : StateSpace M) {T : M.toStarSubalgebra} (hT : IsSelfAdjoint T) : + IsSelfAdjoint (φ.1 T) := by + let : IsClosed (M.toStarSubalgebra : Set (H →L[ℂ] H)) := + isClosed_vonNeumannAlgebra M + obtain ⟨ψ, hψ1, hψ⟩ := φ.2 + rw [← hψ T] + exact hT.map' ψ + +theorem stateFunctional_norm_eq_abs_re (M : VonNeumannAlgebra H) + (φ : StateSpace M) {T : M.toStarSubalgebra} (hT : IsSelfAdjoint T) : + ‖φ.1 T‖ = |(φ.1 T).re| := by + have hr : ((φ.1 T).re : ℂ) = φ.1 T := + Complex.conj_eq_iff_re.mp (stateFunctional_isSelfAdjoint M φ hT).star_eq + calc + ‖φ.1 T‖ = ‖((φ.1 T).re : ℂ)‖ := congrArg norm hr.symm + _ = |(φ.1 T).re| := by rw [Complex.norm_real, Real.norm_eq_abs] + +theorem jointSignedBellValues_nonempty (A B : VonNeumannAlgebra H) + (f : (jointAlgebra A B).toStarSubalgebra → ℂ) : + (jointSignedBellValues A B f).Nonempty := by + refine ⟨(1 / 2 : ℝ) * (f 0).re, 0, 0, 0, 0, ?_, ?_, ?_, ?_, ?_⟩ + · exact ⟨A.zero_mem, IsSelfAdjoint.zero _, by simp⟩ + · exact ⟨A.zero_mem, IsSelfAdjoint.zero _, by simp⟩ + · exact ⟨B.zero_mem, IsSelfAdjoint.zero _, by simp⟩ + · exact ⟨B.zero_mem, IsSelfAdjoint.zero _, by simp⟩ + · simp + +theorem jointSignedBellValues_bddAbove (A B : VonNeumannAlgebra H) + (φ : StrongDual ℂ (jointAlgebra A B).toStarSubalgebra) : + BddAbove (jointSignedBellValues A B φ) := by + obtain ⟨C, hC⟩ := jointBellValues_bddAbove_of_bound A B φ ‖φ‖ + (norm_nonneg _) (fun T => φ.le_opNorm T) + refine ⟨C, ?_⟩ + rintro r ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ + exact (mul_le_mul_of_nonneg_left (Complex.re_le_norm _) (by norm_num)).trans + (hC ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩) + +theorem jointSignedBellCorrelation_le (A B : VonNeumannAlgebra H) + (φ : StrongDual ℂ (jointAlgebra A B).toStarSubalgebra) : + jointSignedBellCorrelation A B φ ≤ jointBellCorrelation A B φ := by + apply csSup_le (jointSignedBellValues_nonempty A B φ) + rintro r ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ + exact (mul_le_mul_of_nonneg_left (Complex.re_le_norm _) (by norm_num)).trans + (le_csSup (jointBellValues_bddAbove_of_bound A B φ ‖φ‖ + (norm_nonneg _) (fun T => φ.le_opNorm T)) + ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩) + +theorem jointBellValues_subset_signed (A B : VonNeumannAlgebra H) + (hcomm : Commuting A B) (φ : StateSpace (jointAlgebra A B)) : + jointBellValues A B φ.1 ⊆ jointSignedBellValues A B φ.1 := by + rintro r ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ + let T : (jointAlgebra A B).toStarSubalgebra := + X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁) + have hT : IsSelfAdjoint T := by + apply Subtype.ext + exact (chshOp_isSelfAdjoint hcomm hX₀ hX₁ hY₀ hY₁).star_eq + have hn := stateFunctional_norm_eq_abs_re (jointAlgebra A B) φ hT + by_cases hp : 0 ≤ (φ.1 T).re + · refine ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, ?_⟩ + change (1 / 2 : ℝ) * ‖φ.1 T‖ = (1 / 2 : ℝ) * (φ.1 T).re + rw [hn, abs_of_nonneg hp] + · have hneg₀ : ((-X₀ : (jointAlgebra A B).toStarSubalgebra) : H →L[ℂ] H) ∈ + saContractions A := + ⟨A.neg_mem hX₀.1, hX₀.2.1.neg, by + change ‖-(X₀ : H →L[ℂ] H)‖ ≤ 1 + simpa only [norm_neg] using hX₀.2.2⟩ + have hneg₁ : ((-X₁ : (jointAlgebra A B).toStarSubalgebra) : H →L[ℂ] H) ∈ + saContractions A := + ⟨A.neg_mem hX₁.1, hX₁.2.1.neg, by + change ‖-(X₁ : H →L[ℂ] H)‖ ≤ 1 + simpa only [norm_neg] using hX₁.2.2⟩ + refine ⟨-X₀, -X₁, Y₀, Y₁, hneg₀, hneg₁, hY₀, hY₁, ?_⟩ + have he : (-X₀) * (Y₀ + Y₁) + (-X₁) * (Y₀ - Y₁) = -T := by + simp only [T, neg_mul, neg_add] + change (1 / 2 : ℝ) * ‖φ.1 T‖ = _ + rw [he, map_neg, Complex.neg_re, hn, abs_of_neg (lt_of_not_ge hp)] + +/-- SW88 p.219 signed normalization equals the literal absolute convention, +for every original joint state on commuting algebras. -/ +theorem jointSignedBellCorrelation_eq (A B : VonNeumannAlgebra H) + (hcomm : Commuting A B) (φ : StateSpace (jointAlgebra A B)) : + jointSignedBellCorrelation A B φ.1 = jointBellCorrelation A B φ.1 := by + apply le_antisymm (jointSignedBellCorrelation_le A B φ.1) + apply csSup_le (jointBellValues_nonempty A B φ.1) + intro r hr + exact le_csSup (jointSignedBellValues_bddAbove A B φ.1) + (jointBellValues_subset_signed A B hcomm φ hr) + +end VacuumBellSeparation.Bipartite.HC00 diff --git a/LeanPool/VacuumBellSeparation/Bell/SignedBellCorrelationDefs.lean b/LeanPool/VacuumBellSeparation/Bell/SignedBellCorrelationDefs.lean new file mode 100644 index 0000000000..6af12d3e70 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/SignedBellCorrelationDefs.lean @@ -0,0 +1,36 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationDefs + +/-! Literal signed-real Summers--Werner Bell quantity (SW88, p.219). +The real part only supplies a real codomain; positivity and commutation imply +that the actual expectation is real. That implication is proved separately. -/ + +@[expose] public section + +namespace VacuumBellSeparation.Bipartite.HC00 + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Signed normalized CHSH expectations attainable by four local self-adjoint contractions. -/ +def jointSignedBellValues (A B : VonNeumannAlgebra H) + (f : (jointAlgebra A B).toStarSubalgebra → ℂ) : Set ℝ := + {r | ∃ X₀ X₁ Y₀ Y₁ : (jointAlgebra A B).toStarSubalgebra, + (X₀ : H →L[ℂ] H) ∈ saContractions A ∧ + (X₁ : H →L[ℂ] H) ∈ saContractions A ∧ + (Y₀ : H →L[ℂ] H) ∈ saContractions B ∧ + (Y₁ : H →L[ℂ] H) ∈ saContractions B ∧ + r = (1 / 2 : ℝ) * (f (X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁))).re} + +/-- The supremum of signed, normalized CHSH values in the joint algebra. -/ +noncomputable def jointSignedBellCorrelation (A B : VonNeumannAlgebra H) + (f : (jointAlgebra A B).toStarSubalgebra → ℂ) : ℝ := + sSup (jointSignedBellValues A B f) + +end VacuumBellSeparation.Bipartite.HC00 diff --git a/LeanPool/VacuumBellSeparation/Bell/SpectralReflectionQuadraticIntegral.lean b/LeanPool/VacuumBellSeparation/Bell/SpectralReflectionQuadraticIntegral.lean new file mode 100644 index 0000000000..184ac41ef8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/SpectralReflectionQuadraticIntegral.lean @@ -0,0 +1,164 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.MonotoneThresholdIntegral + +/-! The scalar diagonal layer-cake identity for the actual closed spectral cuts. -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory ReflectionApprox +open scoped InnerProductSpace ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem rangeProjection_zero_op : rangeProjection (0 : H →L[ℂ] H) = 0 := by + have hr : rangeClosure (0 : H →L[ℂ] H) = ⊥ := by + apply SetLike.ext + intro x + change x ∈ closure (LinearMap.range (0 : H →ₗ[ℂ] H) : Set H) ↔ + x ∈ (⊥ : Submodule ℂ H) + simp + apply ContinuousLinearMap.ext + intro x + have hx : rangeProjection (0 : H →L[ℂ] H) x ∈ rangeClosure (0 : H →L[ℂ] H) := + Submodule.starProjection_apply_mem _ x + rw [hr, Submodule.mem_bot] at hx + exact hx + +theorem closedThresholdProjection_neg_one {A : H →L[ℂ] H} + (hA : IsSelfAdjoint A) (hAn : ‖A‖ ≤ 1) : closedThresholdProjection A (-1) = 1 := by + have hp : 0 ≤ (1 : H →L[ℂ] H) + A := + ContinuousLinearMap.nonneg_iff_isPositive.mpr (isPositive_one_add_of_saContraction hA hAn) + have he : -A - ((-(-1 : ℝ) : ℝ) : ℂ) • (1 : H →L[ℂ] H) = -(1 + A) := by + norm_num; abel + have hz : (-(1 + A))⁺ = 0 := + (CFC.posPart_eq_zero_iff _ (ReflectionApprox.isSelfAdjoint_one_op.add hA).neg).mpr + (neg_nonpos.mpr hp) + rw [closedThresholdProjection, thresholdProjection, he, hz, rangeProjection_zero_op, sub_zero] + +theorem closedThreshold_chain_norm_le {A : H →L[ℂ] H} + (hA : IsSelfAdjoint A) (hAn : ‖A‖ ≤ 1) {N : ℕ} (hN : 0 < N) : + ‖A - ((2 / (N : ℝ)) • + (∑ k ∈ Finset.range N, closedThresholdProjection A (threshold N k)) - 1)‖ ≤ + 2 / (N : ℝ) := by + let E := closedThresholdProjection A + have hposc : ∀ k, k < N → + ((A - (threshold N k : ℂ) • (1 : H →L[ℂ] H)) * chainProj E N k).IsPositive := by + intro k hk + by_cases hk0 : k = 0 + · subst k + have e : A - ((-1 : ℝ) : ℂ) • (1 : H →L[ℂ] H) = 1 + A := by + rw [Complex.ofReal_neg, Complex.ofReal_one, neg_smul, one_smul] + abel + rw [chainProj_zero, threshold_zero, mul_one, e] + exact isPositive_one_add_of_saContraction hA hAn + · rw [chainProj_of_lt E hk0 hk] + exact sub_mul_closedThresholdProjection_isPositive hA _ + have hnegc : ∀ k, k < N → + (((threshold N (k + 1) : ℂ) • (1 : H →L[ℂ] H) - A) * + (1 - chainProj E N (k + 1))).IsPositive := by + intro k hk + by_cases hk1 : k + 1 < N + · rw [chainProj_of_lt E (show k + 1 ≠ 0 by omega) hk1] + exact sub_mul_one_sub_closedThresholdProjection_isPositive hA _ + · have hkN : k + 1 = N := by omega + have ht : threshold N (k + 1) = 1 := by rw [hkN, threshold_self hN] + rw [chainProj_of_not_lt E (show k + 1 ≠ 0 by omega) hk1, ht, sub_zero, mul_one, + Complex.ofReal_one, one_smul] + exact isPositive_one_sub_of_saContraction hA hAn + have h := norm_sub_chain_average_le (A := A) (chainProj E N) (threshold N) + (2 / (N : ℝ)) N (by positivity) (threshold_succ N) + (chainProj_isSelfAdjoint (closedThresholdProjection_isSelfAdjoint A) N) + (chainProj_idem (closedThresholdProjection_idem A) N) + (chainProj_comm (closedThresholdProjection_commute_self hA) N) + (chainProj_mono (fun _ _ huv => closedThresholdProjection_mul_of_le hA huv) N) + hposc hnegc (chainProj_zero E N) + (chainProj_of_not_lt E hN.ne' (lt_irrefl N)) (threshold_zero N) + have hs : (∑ k ∈ Finset.range N, chainProj E N k) = + ∑ k ∈ Finset.range N, closedThresholdProjection A (threshold N k) := by + apply Finset.sum_congr rfl + intro k hk + by_cases hk0 : k = 0 + · subst k + rw [chainProj_zero, threshold_zero, closedThresholdProjection_neg_one hA hAn] + · exact chainProj_of_lt E hk0 (Finset.mem_range.mp hk) + rwa [hs] at h + +omit [CompleteSpace H] in +theorem abs_real_quadratic_le (T : H →L[ℂ] H) (x : H) : + |(⟪x, T x⟫_ℂ).re| ≤ ‖T‖ * ‖x‖ ^ 2 := by + calc + _ ≤ ‖⟪x, T x⟫_ℂ‖ := Complex.abs_re_le_norm _ + _ ≤ ‖x‖ * ‖T x‖ := norm_inner_le_norm _ _ + _ ≤ ‖x‖ * (‖T‖ * ‖x‖) := mul_le_mul_of_nonneg_left (T.le_opNorm x) (norm_nonneg _) + _ = ‖T‖ * ‖x‖ ^ 2 := by ring + +theorem closedThreshold_quadratic_integral_error {A : H →L[ℂ] H} + (hA : IsSelfAdjoint A) (hAn : ‖A‖ ≤ 1) (x : H) {N : ℕ} (hN : 0 < N) : + |(⟪x, A x⟫_ℂ).re - ((∫ u in (-1 : ℝ)..1, closedThresholdQuadratic A x u) - ‖x‖ ^ 2)| ≤ + (4 / (N : ℝ)) * ‖x‖ ^ 2 := by + let S : H →L[ℂ] H := (2 / (N : ℝ)) • + (∑ k ∈ Finset.range N, closedThresholdProjection A (threshold N k)) - 1 + have hsumre (f : ℕ → ℂ) (s : Finset ℕ) : + (∑ k ∈ s, f k).re = ∑ k ∈ s, (f k).re := by + simpa only [Complex.reCLM_apply] using map_sum Complex.reCLM f s + have hs : (⟪x, S x⟫_ℂ).re = + (2 / (N : ℝ)) * (∑ k ∈ Finset.range N, closedThresholdQuadratic A x (threshold N k)) - + ‖x‖ ^ 2 := by + simp only [S, ReflectionApprox.real_smul_eq_complex_smul, + sub_apply, smul_apply, + sum_apply, one_apply_eq_self, inner_sub_right, + inner_smul_right, inner_sum, Complex.sub_re, Complex.mul_re, + Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero, + hsumre, inner_self_eq_norm_sq_to_K, RCLike.ofReal_eq_complex_ofReal, + ← Complex.ofReal_pow, closedThresholdQuadratic] + have hn := closedThreshold_chain_norm_le hA hAn hN + have hb := (abs_real_quadratic_le (A - S) x).trans + (mul_le_mul_of_nonneg_right hn (sq_nonneg ‖x‖)) + have he : (⟪x, (A - S) x⟫_ℂ).re = (⟪x, A x⟫_ℂ).re - (⟪x, S x⟫_ℂ).re := by + rw [sub_apply, inner_sub_right, Complex.sub_re] + rw [he, hs] at hb + obtain ⟨hlo, hhi⟩ := antitone_threshold_integral_bounds + (closedThresholdQuadratic_antitone hA x) hN + have hwidth : closedThresholdQuadratic A x (-1) - closedThresholdQuadratic A x 1 ≤ ‖x‖ ^ 2 := + (sub_le_self _ (closedThresholdQuadratic_nonneg A x 1)).trans + (closedThresholdQuadratic_le A x (-1)) + have hhi' := hhi.trans (mul_le_mul_of_nonneg_left hwidth (by positivity : 0 ≤ 2 / (N : ℝ))) + have hc : 4 / (N : ℝ) = 2 / (N : ℝ) + 2 / (N : ℝ) := by ring + rw [hc, add_mul] + rw [abs_le] at hb ⊢ + constructor <;> linarith + +theorem integral_closedThresholdQuadratic {A : H →L[ℂ] H} + (hA : IsSelfAdjoint A) (hAn : ‖A‖ ≤ 1) (x : H) : + (∫ u in (-1 : ℝ)..1, closedThresholdQuadratic A x u) = + (⟪x, A x⟫_ℂ).re + ‖x‖ ^ 2 := by + let d := |(⟪x, A x⟫_ℂ).re - + ((∫ u in (-1 : ℝ)..1, closedThresholdQuadratic A x u) - ‖x‖ ^ 2)| + have hd : d = 0 := by + by_contra hne + have hp : 0 < d := lt_of_le_of_ne (abs_nonneg _) (Ne.symm hne) + obtain ⟨N, hN⟩ := exists_nat_gt (max 0 (4 * ‖x‖ ^ 2 / d)) + have hNr : 0 < (N : ℝ) := (le_max_left _ _).trans_lt hN + have hNn : 0 < N := Nat.cast_pos.mp hNr + have hb := closedThreshold_quadratic_integral_error hA hAn x hNn + have hlarge : 4 * ‖x‖ ^ 2 / d < (N : ℝ) := (le_max_right _ _).trans_lt hN + have hsmall : (4 / (N : ℝ)) * ‖x‖ ^ 2 < d := by + have hm := (div_lt_iff₀ hp).mp hlarge + have he : (4 / (N : ℝ)) * ‖x‖ ^ 2 = 4 * ‖x‖ ^ 2 / (N : ℝ) := by ring + rw [he] + exact (div_lt_iff₀ hNr).mpr (by nlinarith) + exact (not_lt_of_ge hb) hsmall + have hz := abs_eq_zero.mp hd + linarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/SpectralThreshold.lean b/LeanPool/VacuumBellSeparation/Bell/SpectralThreshold.lean new file mode 100644 index 0000000000..7717dcccbf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/SpectralThreshold.lean @@ -0,0 +1,424 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.RangeProjection +public import LeanPool.VacuumBellSeparation.Bell.Cells +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Commute + +/-! +# Threshold projections of a self-adjoint element of a von Neumann algebra + +For a self-adjoint `A` in a von Neumann algebra `M` and a real threshold `u`, the range +projection `E u` of the positive part of `A - u` belongs to `M`, commutes with `A`, and +satisfies `(A - u) E u ≥ 0`, `(u - A) (1 - E u) ≥ 0`. The family is decreasing: +`E u * E v = E v` for `u ≤ v`. The main result is `exists_threshold_projections`. +-/ + +@[expose] public section + +open scoped ComplexOrder + +namespace VacuumBellSeparation + +noncomputable section + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-! ### Range-projection identities -/ + +theorem rangeProjection_idem (T : H →L[ℂ] H) : + rangeProjection T * rangeProjection T = rangeProjection T := by + first + | exact (rangeClosure T).isIdempotentElem_starProjection + +theorem rangeProjection_isSelfAdjoint (T : H →L[ℂ] H) : IsSelfAdjoint (rangeProjection T) := by + first + | exact isSelfAdjoint_starProjection (rangeClosure T) + +/-- A self-adjoint idempotent is positive. -/ +theorem isPositive_of_isSelfAdjoint_of_idem {Q : H →L[ℂ] H} (hsa : IsSelfAdjoint Q) + (hQ : Q * Q = Q) : Q.IsPositive := by + have h : star Q * Q = Q := by rw [hsa.star_eq, hQ] + have h0 : (0 : H →L[ℂ] H) ≤ star Q * Q := star_mul_self_nonneg Q + rw [h] at h0 + exact ContinuousLinearMap.nonneg_iff_isPositive.mp h0 + +theorem rangeProjection_isPositive (T : H →L[ℂ] H) : (rangeProjection T).IsPositive := + isPositive_of_isSelfAdjoint_of_idem (rangeProjection_isSelfAdjoint T) (rangeProjection_idem T) + +theorem rangeProjection_apply_mem (T : H →L[ℂ] H) (x : H) : + rangeProjection T x ∈ rangeClosure T := + Submodule.starProjection_apply_mem (rangeClosure T) x + +theorem rangeProjection_apply_of_mem {T : H →L[ℂ] H} {x : H} (hx : x ∈ rangeClosure T) : + rangeProjection T x = x := + Submodule.starProjection_eq_self_iff.mpr hx + +omit [CompleteSpace H] in +theorem apply_mem_rangeClosure (T : H →L[ℂ] H) (x : H) : T x ∈ rangeClosure T := by + have hmem : T x ∈ LinearMap.range T.toLinearMap := LinearMap.mem_range.mpr ⟨x, rfl⟩ + exact Submodule.le_topologicalClosure _ hmem + +omit [CompleteSpace H] in +/-- A closed subspace containing the range of `T` contains the closure of the range. -/ +theorem rangeClosure_le_of_forall_mem {T : H →L[ℂ] H} {K : Submodule ℂ H} + (hK : IsClosed (K : Set H)) (h : ∀ z : H, T z ∈ K) : rangeClosure T ≤ K := by + have hle : (LinearMap.range T.toLinearMap).topologicalClosure ≤ K := by + refine Submodule.topologicalClosure_minimal _ ?_ hK + intro y hy + obtain ⟨z, rfl⟩ := LinearMap.mem_range.mp hy + exact h z + exact hle + +theorem rangeProjection_mul_self (T : H →L[ℂ] H) : rangeProjection T * T = T := by + refine ContinuousLinearMap.ext fun x => ?_ + change rangeProjection T (T x) = T x + exact rangeProjection_apply_of_mem (apply_mem_rangeClosure T x) + +theorem self_mul_rangeProjection {T : H →L[ℂ] H} (hT : IsSelfAdjoint T) : + T * rangeProjection T = T := by + have h := congrArg star (rangeProjection_mul_self T) + rw [star_mul, hT.star_eq, (rangeProjection_isSelfAdjoint T).star_eq] at h + exact h + +/-- If `S` vanishes on the range of `T`, it vanishes on the closure of the range. -/ +theorem mul_rangeProjection_eq_zero {T S : H →L[ℂ] H} (h : S * T = 0) : + S * rangeProjection T = 0 := by + have hST : ∀ z : H, S (T z) = 0 := fun z => by + have hz := DFunLike.congr_fun h z + first + | exact hz + have hsub : (LinearMap.range T.toLinearMap : Set H) ⊆ {y : H | S y = 0} := by + intro y hy + have hy' : y ∈ LinearMap.range T.toLinearMap := hy + obtain ⟨z, rfl⟩ := LinearMap.mem_range.mp hy' + exact hST z + have hclosed : IsClosed {y : H | S y = 0} := isClosed_eq S.continuous continuous_const + have hcl : closure (LinearMap.range T.toLinearMap : Set H) ⊆ {y : H | S y = 0} := + closure_minimal hsub hclosed + have hall : ∀ x ∈ rangeClosure T, S x = 0 := by + intro x hx + first + | exact hcl hx + refine ContinuousLinearMap.ext fun x => ?_ + change S (rangeProjection T x) = 0 + exact hall _ (rangeProjection_apply_mem T x) + +/-- An operator commuting with `T` and whose adjoint commutes with `T` commutes with the +range projection of `T`. -/ +theorem rangeProjection_commute {T S : H →L[ℂ] H} (h : S * T = T * S) + (h' : star S * T = T * star S) : rangeProjection T * S = S * rangeProjection T := + commute_projection_of_invariant (rangeClosure T) S + (fun _ hx => map_mem_rangeClosure_of_commute h hx) + (fun _ hx => map_mem_rangeClosure_of_commute h' hx) + +/-- If the range projection of `T` fixes `S` from the left, it dominates the range projection +of `S`. -/ +theorem rangeProjection_mul_rangeProjection_of_mul_eq {T S : H →L[ℂ] H} + (h : rangeProjection T * S = S) : + rangeProjection T * rangeProjection S = rangeProjection S := by + have hmem : ∀ z : H, S z ∈ rangeClosure T := fun z => by + have hz : rangeProjection T (S z) = S z := DFunLike.congr_fun h z + have hm := rangeProjection_apply_mem T (S z) + rwa [hz] at hm + have hclosed : IsClosed ((rangeClosure T : Submodule ℂ H) : Set H) := + Submodule.isClosed_topologicalClosure (LinearMap.range T.toLinearMap) + have hle : rangeClosure S ≤ rangeClosure T := rangeClosure_le_of_forall_mem hclosed hmem + refine ContinuousLinearMap.ext fun x => ?_ + change rangeProjection T (rangeProjection S x) = rangeProjection S x + exact rangeProjection_apply_of_mem (hle (rangeProjection_apply_mem S x)) + +/-! ### Positive and negative parts -/ + +/-- Anything commuting with `T` commutes with its positive part. -/ +theorem commute_posPart {T S : H →L[ℂ] H} (h : S * T = T * S) : S * T⁺ = T⁺ * S := by + have hc : Commute T S := h.symm + have h2 : Commute (cfcₙ (fun x : ℝ => x⁺) T) S := hc.cfcₙ_real _ + have h3 : T⁺ = cfcₙ (fun x : ℝ => x⁺) T := CFC.posPart_def T + rw [h3] + first + | exact h2.symm.eq + +/-- Anything commuting with `T` commutes with its negative part. -/ +theorem commute_negPart {T S : H →L[ℂ] H} (h : S * T = T * S) : S * T⁻ = T⁻ * S := by + have hc : Commute T S := h.symm + have h2 : Commute (cfcₙ (fun x : ℝ => x⁻) T) S := hc.cfcₙ_real _ + have h3 : T⁻ = cfcₙ (fun x : ℝ => x⁻) T := CFC.negPart_def T + rw [h3] + first + | exact h2.symm.eq + +/-- The positive part of an element of a von Neumann algebra belongs to the algebra. -/ +theorem posPart_mem (M : VonNeumannAlgebra H) {T : H →L[ℂ] H} (hT : T ∈ M) : T⁺ ∈ M := by + have key : T⁺ ∈ M.commutant.commutant := by + refine VonNeumannAlgebra.mem_commutant_iff.mpr fun S hS => ?_ + have h1 : S * T = T * S := (VonNeumannAlgebra.mem_commutant_iff.mp hS T hT).symm + exact commute_posPart h1 + first + | (rw [VonNeumannAlgebra.commutant_commutant] at key; exact key) + +/-- The negative part of an element of a von Neumann algebra belongs to the algebra. -/ +theorem negPart_mem (M : VonNeumannAlgebra H) {T : H →L[ℂ] H} (hT : T ∈ M) : T⁻ ∈ M := by + have key : T⁻ ∈ M.commutant.commutant := by + refine VonNeumannAlgebra.mem_commutant_iff.mpr fun S hS => ?_ + have h1 : S * T = T * S := (VonNeumannAlgebra.mem_commutant_iff.mp hS T hT).symm + exact commute_negPart h1 + first + | (rw [VonNeumannAlgebra.commutant_commutant] at key; exact key) + +theorem posPart_isPositive (T : H →L[ℂ] H) : (T⁺).IsPositive := + ContinuousLinearMap.nonneg_iff_isPositive.mp (CFC.posPart_nonneg T) + +theorem negPart_isPositive (T : H →L[ℂ] H) : (T⁻).IsPositive := + ContinuousLinearMap.nonneg_iff_isPositive.mp (CFC.negPart_nonneg T) + +/-! ### The range projection of the positive part -/ + +theorem mul_rangeProjection_posPart {T : H →L[ℂ] H} (hT : IsSelfAdjoint T) : + T * rangeProjection T⁺ = T⁺ := by + have h1 : T⁺ * rangeProjection T⁺ = T⁺ := + self_mul_rangeProjection (posPart_isPositive T).isSelfAdjoint + have h2 : T⁻ * rangeProjection T⁺ = 0 := + mul_rangeProjection_eq_zero (CFC.negPart_mul_posPart T) + have h3 : T⁺ - T⁻ = T := CFC.posPart_sub_negPart T hT + calc T * rangeProjection T⁺ = (T⁺ - T⁻) * rangeProjection T⁺ := by rw [h3] + _ = T⁺ * rangeProjection T⁺ - T⁻ * rangeProjection T⁺ := sub_mul _ _ _ + _ = T⁺ := by rw [h1, h2, sub_zero] + +theorem mul_rangeProjection_posPart_isPositive {T : H →L[ℂ] H} (hT : IsSelfAdjoint T) : + (T * rangeProjection T⁺).IsPositive := by + rw [mul_rangeProjection_posPart hT] + exact posPart_isPositive T + +theorem neg_mul_one_sub_rangeProjection_posPart {T : H →L[ℂ] H} (hT : IsSelfAdjoint T) : + (-T) * (1 - rangeProjection T⁺) = T⁻ := by + have h1 : T * rangeProjection T⁺ = T⁺ := mul_rangeProjection_posPart hT + have h3 : T⁺ - T⁻ = T := CFC.posPart_sub_negPart T hT + calc (-T) * (1 - rangeProjection T⁺) = T * rangeProjection T⁺ - T := by + rw [mul_sub, mul_one, neg_mul] + abel + _ = T⁺ - (T⁺ - T⁻) := by rw [h1, h3] + _ = T⁻ := by abel + +theorem neg_mul_one_sub_rangeProjection_posPart_isPositive {T : H →L[ℂ] H} + (hT : IsSelfAdjoint T) : ((-T) * (1 - rangeProjection T⁺)).IsPositive := by + rw [neg_mul_one_sub_rangeProjection_posPart hT] + exact negPart_isPositive T + +/-- Anything commuting (together with its adjoint) with `T` commutes with the range projection +of the positive part of `T`. -/ +theorem rangeProjection_posPart_commute {T S : H →L[ℂ] H} (h : S * T = T * S) + (h' : star S * T = T * star S) : + rangeProjection T⁺ * S = S * rangeProjection T⁺ := + rangeProjection_commute (commute_posPart h) (commute_posPart h') + +/-! ### Nestedness -/ + +theorem ofReal_nonneg_complex {c : ℝ} (hc : 0 ≤ c) : (0 : ℂ) ≤ (c : ℂ) := by + first + | exact Complex.zero_le_real.mpr hc + +omit [CompleteSpace H] in +/-- A positive operator whose negative is positive vanishes. -/ +theorem eq_zero_of_isPositive_of_neg_isPositive {B : H →L[ℂ] H} (h1 : B.IsPositive) + (h2 : (-B).IsPositive) : B = 0 := by + have h1' : (0 : H →L[ℂ] H) ≤ B := ContinuousLinearMap.nonneg_iff_isPositive.mpr h1 + have h2' : B ≤ 0 := by + first + | exact ContinuousLinearMap.le_def.mpr (by rwa [zero_sub]) + exact le_antisymm h2' h1' + +/-- `Z = 0` as soon as `Z⋆ Z = 0`. -/ +theorem eq_zero_of_star_mul_self_eq_zero {Z : H →L[ℂ] H} (h : star Z * Z = 0) : Z = 0 := by + have hn : ‖star Z * Z‖ = ‖Z‖ * ‖Z‖ := CStarRing.norm_star_mul_self + rw [h, norm_zero] at hn + exact norm_eq_zero.mp (mul_self_eq_zero.mp hn.symm) + +/-- The algebraic core of nestedness: if `X, Y₁ ≥ 0`, `Q` is a projection commuting with `X`, +`X Y = 0`, `X` commutes with `Y₁`, and `(Y - X) Q = Y₁ + c Q` with `c ≥ 0`, then `X Q = 0`. -/ +theorem mul_eq_zero_of_sub_mul_eq {X Y Y₁ Q : H →L[ℂ] H} (hX : X.IsPositive) + (hY₁ : Y₁.IsPositive) (hQsa : IsSelfAdjoint Q) (hQ : Q * Q = Q) (hXY : X * Y = 0) + (hQX : Q * X = X * Q) (hXY₁ : X * Y₁ = Y₁ * X) {c : ℝ} (hc : 0 ≤ c) + (h : (Y - X) * Q = Y₁ + (c : ℂ) • Q) : X * Q = 0 := by + have hQpos : Q.IsPositive := isPositive_of_isSelfAdjoint_of_idem hQsa hQ + have hP : (Y₁ + (c : ℂ) • Q).IsPositive := + hY₁.add (hQpos.smul_of_nonneg (ofReal_nonneg_complex hc)) + have hcomm : X * (Y₁ + (c : ℂ) • Q) = (Y₁ + (c : ℂ) • Q) * X := by + rw [mul_add, add_mul, hXY₁, mul_smul_comm, smul_mul_assoc, hQX] + have hpos : (X * (Y₁ + (c : ℂ) • Q)).IsPositive := isPositive_mul_of_commute hX hP hcomm + have hXsa : star X = X := hX.isSelfAdjoint.star_eq + have hW : star (X * Q) * (X * Q) = X * X * Q := by + rw [star_mul, hQsa.star_eq, hXsa] + calc Q * X * (X * Q) = X * Q * (X * Q) := by rw [hQX] + _ = X * (Q * X) * Q := by simp only [mul_assoc] + _ = X * (X * Q) * Q := by rw [hQX] + _ = X * X * (Q * Q) := by simp only [mul_assoc] + _ = X * X * Q := by rw [hQ] + have hWpos : (star (X * Q) * (X * Q)).IsPositive := + ContinuousLinearMap.nonneg_iff_isPositive.mp (star_mul_self_nonneg (X * Q)) + have hneg : X * (Y₁ + (c : ℂ) • Q) = -(X * X * Q) := by + rw [← h] + calc X * ((Y - X) * Q) = (X * Y - X * X) * Q := by rw [← mul_assoc, mul_sub] + _ = -(X * X * Q) := by rw [hXY, zero_sub, neg_mul] + have hW0 : star (X * Q) * (X * Q) = 0 := by + refine eq_zero_of_isPositive_of_neg_isPositive hWpos ?_ + rw [hW, ← hneg] + exact hpos + exact eq_zero_of_star_mul_self_eq_zero hW0 + +omit [CompleteSpace H] in +theorem commute_sub_smul_one {A S : H →L[ℂ] H} (h : S * A = A * S) (c : ℂ) : + S * (A - c • (1 : H →L[ℂ] H)) = (A - c • (1 : H →L[ℂ] H)) * S := by + rw [mul_sub, sub_mul, h, mul_smul_comm, smul_mul_assoc, mul_one, one_mul] + +/-- Lowering a self-adjoint operator by a nonnegative constant shrinks the range projection of +its positive part. -/ +theorem rangeProjection_posPart_nested {T₁ T₂ : H →L[ℂ] H} (h₁ : IsSelfAdjoint T₁) + (h₂ : IsSelfAdjoint T₂) {c : ℝ} (hc : 0 ≤ c) + (h : T₂ = T₁ - (c : ℂ) • (1 : H →L[ℂ] H)) : + rangeProjection T₁⁺ * rangeProjection T₂⁺ = rangeProjection T₂⁺ := by + have h12 : T₁ * T₂ = T₂ * T₁ := by + rw [h] + exact commute_sub_smul_one (A := T₁) (S := T₁) rfl (c : ℂ) + have hX : (T₂⁺).IsPositive := posPart_isPositive T₂ + have hY₁ : (T₁⁻).IsPositive := negPart_isPositive T₁ + have hEsa : IsSelfAdjoint (rangeProjection T₁⁺) := rangeProjection_isSelfAdjoint _ + have hEE : rangeProjection T₁⁺ * rangeProjection T₁⁺ = rangeProjection T₁⁺ := + rangeProjection_idem _ + have h1sa : IsSelfAdjoint (1 : H →L[ℂ] H) := by + first | exact IsSelfAdjoint.one _ + have hQsa : IsSelfAdjoint (1 - rangeProjection T₁⁺) := h1sa.sub hEsa + have hQ : (1 - rangeProjection T₁⁺) * (1 - rangeProjection T₁⁺) = 1 - rangeProjection T₁⁺ := by + rw [mul_sub, mul_one, sub_mul, one_mul, hEE, sub_self, sub_zero] + have hXT : T₂⁺ * T₁ = T₁ * T₂⁺ := (commute_posPart h12).symm + have hXT' : star T₂⁺ * T₁ = T₁ * star T₂⁺ := by + rw [hX.isSelfAdjoint.star_eq] + exact hXT + have hEX : rangeProjection T₁⁺ * T₂⁺ = T₂⁺ * rangeProjection T₁⁺ := + rangeProjection_posPart_commute hXT hXT' + have hQX : (1 - rangeProjection T₁⁺) * T₂⁺ = T₂⁺ * (1 - rangeProjection T₁⁺) := by + rw [sub_mul, mul_sub, one_mul, mul_one, hEX] + have hXY₁ : T₂⁺ * T₁⁻ = T₁⁻ * T₂⁺ := commute_negPart hXT + have hkey : (T₂⁻ - T₂⁺) * (1 - rangeProjection T₁⁺) + = T₁⁻ + (c : ℂ) • (1 - rangeProjection T₁⁺) := by + have h3 : T₂⁺ - T₂⁻ = T₂ := CFC.posPart_sub_negPart T₂ h₂ + have h4 : T₂⁻ - T₂⁺ = -T₁ + (c : ℂ) • (1 : H →L[ℂ] H) := by + rw [← neg_sub T₂⁺ T₂⁻, h3, h] + first + | abel + rw [h4, add_mul, neg_mul_one_sub_rangeProjection_posPart h₁, smul_mul_assoc, one_mul] + have hXQ : T₂⁺ * (1 - rangeProjection T₁⁺) = 0 := + mul_eq_zero_of_sub_mul_eq hX hY₁ hQsa hQ (CFC.posPart_mul_negPart T₂) hQX hXY₁ hc hkey + have hfix : rangeProjection T₁⁺ * T₂⁺ = T₂⁺ := by + rw [hEX] + have hexp : T₂⁺ * (1 - rangeProjection T₁⁺) = T₂⁺ - T₂⁺ * rangeProjection T₁⁺ := by + rw [mul_sub, mul_one] + rw [hexp] at hXQ + exact (sub_eq_zero.mp hXQ).symm + exact rangeProjection_mul_rangeProjection_of_mul_eq hfix + +/-! ### Threshold projections -/ + +theorem isSelfAdjoint_ofReal_smul_one (u : ℝ) : + IsSelfAdjoint ((u : ℂ) • (1 : H →L[ℂ] H)) := by + have h1sa : IsSelfAdjoint (1 : H →L[ℂ] H) := by + first | exact IsSelfAdjoint.one _ + have hu : IsSelfAdjoint (u : ℂ) := by + first + | exact Complex.conj_ofReal u + first + | exact IsSelfAdjoint.smul hu h1sa + +theorem isSelfAdjoint_sub_ofReal_smul_one {A : H →L[ℂ] H} (hsa : IsSelfAdjoint A) (u : ℝ) : + IsSelfAdjoint (A - (u : ℂ) • (1 : H →L[ℂ] H)) := + hsa.sub (isSelfAdjoint_ofReal_smul_one u) + +/-- The threshold projection of `A` at level `u`: the range projection of the positive part +of `A - u`. -/ +def thresholdProjection (A : H →L[ℂ] H) (u : ℝ) : H →L[ℂ] H := + rangeProjection (A - (u : ℂ) • (1 : H →L[ℂ] H))⁺ + +theorem thresholdProjection_mem (M : VonNeumannAlgebra H) {A : H →L[ℂ] H} (hA : A ∈ M) + (u : ℝ) : thresholdProjection A u ∈ M := by + unfold thresholdProjection + exact rangeProjection_mem M + (posPart_mem M (sub_mem hA (smul_mem_vonNeumann M _ (one_mem M)))) + +theorem thresholdProjection_isSelfAdjoint (A : H →L[ℂ] H) (u : ℝ) : + IsSelfAdjoint (thresholdProjection A u) := by + unfold thresholdProjection + exact rangeProjection_isSelfAdjoint _ + +theorem thresholdProjection_idem (A : H →L[ℂ] H) (u : ℝ) : + thresholdProjection A u * thresholdProjection A u = thresholdProjection A u := by + unfold thresholdProjection + exact rangeProjection_idem _ + +/-- Anything commuting (together with its adjoint) with `A` commutes with the threshold +projections of `A`. -/ +theorem thresholdProjection_commute {A S : H →L[ℂ] H} (h : S * A = A * S) + (h' : star S * A = A * star S) (u : ℝ) : + thresholdProjection A u * S = S * thresholdProjection A u := by + unfold thresholdProjection + exact rangeProjection_posPart_commute (commute_sub_smul_one h _) (commute_sub_smul_one h' _) + +theorem thresholdProjection_commute_self {A : H →L[ℂ] H} (hsa : IsSelfAdjoint A) (u : ℝ) : + thresholdProjection A u * A = A * thresholdProjection A u := by + have h' : star A * A = A * star A := by rw [hsa.star_eq] + exact thresholdProjection_commute rfl h' u + +theorem sub_mul_thresholdProjection_isPositive {A : H →L[ℂ] H} (hsa : IsSelfAdjoint A) + (u : ℝ) : + ((A - (u : ℂ) • (1 : H →L[ℂ] H)) * thresholdProjection A u).IsPositive := by + unfold thresholdProjection + exact mul_rangeProjection_posPart_isPositive (isSelfAdjoint_sub_ofReal_smul_one hsa u) + +theorem sub_mul_one_sub_thresholdProjection_isPositive {A : H →L[ℂ] H} + (hsa : IsSelfAdjoint A) (u : ℝ) : + (((u : ℂ) • (1 : H →L[ℂ] H) - A) * (1 - thresholdProjection A u)).IsPositive := by + have hneg : (u : ℂ) • (1 : H →L[ℂ] H) - A = -(A - (u : ℂ) • (1 : H →L[ℂ] H)) := + (neg_sub A ((u : ℂ) • (1 : H →L[ℂ] H))).symm + rw [hneg] + unfold thresholdProjection + exact neg_mul_one_sub_rangeProjection_posPart_isPositive + (isSelfAdjoint_sub_ofReal_smul_one hsa u) + +theorem thresholdProjection_mul_of_le {A : H →L[ℂ] H} (hsa : IsSelfAdjoint A) {u v : ℝ} + (huv : u ≤ v) : + thresholdProjection A u * thresholdProjection A v = thresholdProjection A v := by + have hrel : A - (v : ℂ) • (1 : H →L[ℂ] H) + = (A - (u : ℂ) • (1 : H →L[ℂ] H)) - ((v - u : ℝ) : ℂ) • (1 : H →L[ℂ] H) := by + rw [Complex.ofReal_sub, sub_smul] + abel + unfold thresholdProjection + exact rangeProjection_posPart_nested (isSelfAdjoint_sub_ofReal_smul_one hsa u) + (isSelfAdjoint_sub_ofReal_smul_one hsa v) (sub_nonneg.mpr huv) hrel + +/-- **Threshold projections.** A self-adjoint element `A` of a von Neumann algebra `M` has a +decreasing family of projections `E u ∈ M` commuting with `A` such that `A ≥ u` on the range +of `E u` and `A ≤ u` on the range of `1 - E u`. -/ +theorem exists_threshold_projections (M : VonNeumannAlgebra H) {A : H →L[ℂ] H} + (hA : A ∈ M) (hsa : IsSelfAdjoint A) : + ∃ E : ℝ → (H →L[ℂ] H), + (∀ u, E u ∈ M) ∧ (∀ u, IsSelfAdjoint (E u)) ∧ (∀ u, E u * E u = E u) ∧ + (∀ u, E u * A = A * E u) ∧ + (∀ u : ℝ, ((A - (u : ℂ) • (1 : H →L[ℂ] H)) * E u).IsPositive) ∧ + (∀ u : ℝ, (((u : ℂ) • (1 : H →L[ℂ] H) - A) * (1 - E u)).IsPositive) ∧ + (∀ u v, u ≤ v → E u * E v = E v) := + ⟨thresholdProjection A, + fun u => thresholdProjection_mem M hA u, + fun u => thresholdProjection_isSelfAdjoint A u, + fun u => thresholdProjection_idem A u, + fun u => thresholdProjection_commute_self hsa u, + fun u => sub_mul_thresholdProjection_isPositive hsa u, + fun u => sub_mul_one_sub_thresholdProjection_isPositive hsa u, + fun _ _ huv => thresholdProjection_mul_of_le hsa huv⟩ + +end + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/StateBound.lean b/LeanPool/VacuumBellSeparation/Bell/StateBound.lean new file mode 100644 index 0000000000..f8350efdba --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/StateBound.lean @@ -0,0 +1,177 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Reflections + +/-! +# Norm bound for states and boundedness of the CHSH values + +* `State.norm_apply_le` : `‖ω T‖ ≤ 2 * ‖T‖` for a state `ω` on `B(H)`. +* `bddAbove_chshValues` : the set of CHSH values is bounded above. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- On a self-adjoint contraction a state takes a real value in `[-1, 1]`. -/ +theorem State.im_eq_zero_and_abs_re_le_one (ω : State H) {S : H →L[ℂ] H} + (hsa : IsSelfAdjoint S) (hn : ‖S‖ ≤ 1) : (ω S).im = 0 ∧ |(ω S).re| ≤ 1 := by + have hp := ω.map_nonneg' _ (isPositive_one_add_of_saContraction hsa hn) + have hm := ω.map_nonneg' _ (isPositive_one_sub_of_saContraction hsa hn) + have e1 : ω.toLinearMap (1 + S) = 1 + ω.toLinearMap S := by rw [map_add, ω.map_one'] + have e2 : ω.toLinearMap (1 - S) = 1 - ω.toLinearMap S := by rw [map_sub, ω.map_one'] + rw [e1] at hp + rw [e2] at hm + have hp1 : (ω.toLinearMap S).im = 0 := by + have h := hp.1 + first + | (rw [Complex.add_im, Complex.one_im, zero_add] at h; exact h) + have hp2 : 0 ≤ 1 + (ω.toLinearMap S).re := by + have h := hp.2 + first + | (rw [Complex.add_re, Complex.one_re] at h; exact h) + have hm2 : 0 ≤ 1 - (ω.toLinearMap S).re := by + have h := hm.2 + first + | (rw [Complex.sub_re, Complex.one_re] at h; exact h) + exact ⟨hp1, abs_le.mpr ⟨by linarith, by linarith⟩⟩ + +/-- A state is bounded by `r` on self-adjoint operators of norm at most `r`. -/ +theorem State.norm_apply_le_of_isSelfAdjoint (ω : State H) {S : H →L[ℂ] H} + (hsa : IsSelfAdjoint S) {r : ℝ} (hr : 0 < r) (hn : ‖S‖ ≤ r) : ‖ω S‖ ≤ r := by + have hri : 0 < r⁻¹ := inv_pos.mpr hr + have hstar : star ((r⁻¹ : ℝ) : ℂ) = ((r⁻¹ : ℝ) : ℂ) := by + first + | exact Complex.conj_ofReal _ + have hsa' : IsSelfAdjoint (((r⁻¹ : ℝ) : ℂ) • S) := by + first + | (rw [isSelfAdjoint_iff, star_smul, hsa.star_eq, hstar]) + have hnc : ‖((r⁻¹ : ℝ) : ℂ)‖ = r⁻¹ := by + first + | exact Complex.norm_of_nonneg hri.le + have hn' : ‖((r⁻¹ : ℝ) : ℂ) • S‖ ≤ 1 := by + rw [norm_smul, hnc] + calc r⁻¹ * ‖S‖ ≤ r⁻¹ * r := mul_le_mul_of_nonneg_left hn hri.le + _ = 1 := inv_mul_cancel₀ hr.ne' + obtain ⟨him, hre⟩ := ω.im_eq_zero_and_abs_re_le_one hsa' hn' + have hS : ((r : ℝ) : ℂ) • (((r⁻¹ : ℝ) : ℂ) • S) = S := by + first + | (rw [smul_smul, ← Complex.ofReal_mul, mul_inv_cancel₀ hr.ne', Complex.ofReal_one, + one_smul]) + have hval : ω.toLinearMap S + = ((r : ℝ) : ℂ) * ω.toLinearMap (((r⁻¹ : ℝ) : ℂ) • S) := by + have h1 : ω.toLinearMap (((r : ℝ) : ℂ) • (((r⁻¹ : ℝ) : ℂ) • S)) + = ((r : ℝ) : ℂ) * ω.toLinearMap (((r⁻¹ : ℝ) : ℂ) • S) := + map_smul ω.toLinearMap _ _ + rw [hS] at h1 + exact h1 + have hle : ‖ω.toLinearMap (((r⁻¹ : ℝ) : ℂ) • S)‖ ≤ 1 := by + have hz : ω.toLinearMap (((r⁻¹ : ℝ) : ℂ) • S) + = (((ω.toLinearMap (((r⁻¹ : ℝ) : ℂ) • S)).re : ℝ) : ℂ) := + (ofReal_re_eq_of_im_eq_zero him).symm + rw [hz] + first + | (rw [Complex.norm_real, Real.norm_eq_abs]; exact hre) + have hrn : ‖((r : ℝ) : ℂ)‖ = r := by + first + | exact Complex.norm_of_nonneg hr.le + rw [hval, norm_mul, hrn] + calc r * ‖ω.toLinearMap (((r⁻¹ : ℝ) : ℂ) • S)‖ ≤ r * 1 := + mul_le_mul_of_nonneg_left hle hr.le + _ = r := mul_one r + +/-- **Norm bound for states**: `‖ω T‖ ≤ 2 * ‖T‖`. -/ +theorem State.norm_apply_le (ω : State H) (T : H →L[ℂ] H) : ‖ω T‖ ≤ 2 * ‖T‖ := by + by_cases hT : T = 0 + · subst hT + have h0 : ω.toLinearMap (0 : H →L[ℂ] H) = 0 := map_zero _ + have h1 : ‖ω.toLinearMap (0 : H →L[ℂ] H)‖ = 0 := by rw [h0, norm_zero] + have h2 : (2 : ℝ) * ‖(0 : H →L[ℂ] H)‖ = 0 := by rw [norm_zero, mul_zero] + exact le_of_eq (h1.trans h2.symm) + · have hr : 0 < 2 * ‖T‖ := mul_pos two_pos (norm_pos_iff.mpr hT) + have hs : ‖star T‖ = ‖T‖ := norm_star T + have hPsa : IsSelfAdjoint (T + star T) := by + rw [isSelfAdjoint_iff, star_add, star_star, add_comm] + have hI : star Complex.I = -Complex.I := by + first + | exact Complex.conj_I + have hQsa : IsSelfAdjoint (Complex.I • (star T - T)) := by + first + | (rw [isSelfAdjoint_iff, star_smul, star_sub, star_star, hI, neg_smul, ← smul_neg, + neg_sub]) + have hPn : ‖T + star T‖ ≤ 2 * ‖T‖ := by + have h := norm_add_le T (star T) + linarith + have hQn : ‖Complex.I • (star T - T)‖ ≤ 2 * ‖T‖ := by + have h := norm_sub_le (star T) T + rw [norm_smul, Complex.norm_I, one_mul] + linarith + have hP := ω.norm_apply_le_of_isSelfAdjoint hPsa hr hPn + have hQ := ω.norm_apply_le_of_isSelfAdjoint hQsa hr hQn + have hII : Complex.I • (Complex.I • (star T - T)) = T - star T := by + rw [smul_smul, Complex.I_mul_I, neg_one_smul, neg_sub] + have hdecomp : (T + star T) + Complex.I • (Complex.I • (star T - T)) = T + T := by + rw [hII]; abel + have h2 : ω.toLinearMap ((T + star T) + Complex.I • (Complex.I • (star T - T))) + = ω.toLinearMap (T + star T) + + Complex.I * ω.toLinearMap (Complex.I • (star T - T)) := by + rw [map_add, map_smul, smul_eq_mul] + have h3 : ω.toLinearMap (T + T) = ω.toLinearMap T + ω.toLinearMap T := map_add _ _ _ + rw [hdecomp, h3] at h2 + have h4 : ‖ω.toLinearMap T + ω.toLinearMap T‖ = 2 * ‖ω.toLinearMap T‖ := by + have e : ω.toLinearMap T + ω.toLinearMap T = (2 : ℝ) • ω.toLinearMap T := + (two_smul ℝ _).symm + first + | (rw [e, norm_smul, Real.norm_eq_abs, abs_of_pos (two_pos : (0 : ℝ) < 2)]) + have hmul : ‖Complex.I * ω.toLinearMap (Complex.I • (star T - T))‖ + = ‖ω.toLinearMap (Complex.I • (star T - T))‖ := by + rw [norm_mul, Complex.norm_I, one_mul] + have h5 := norm_add_le (ω.toLinearMap (T + star T)) + (Complex.I * ω.toLinearMap (Complex.I • (star T - T))) + rw [hmul, ← h2, h4] at h5 + linarith + +/-- The CHSH operator of four contractions has norm at most `4`. -/ +theorem norm_chshOp_le {A₀ A₁ B₀ B₁ : H →L[ℂ] H} (hA₀ : ‖A₀‖ ≤ 1) (hA₁ : ‖A₁‖ ≤ 1) + (hB₀ : ‖B₀‖ ≤ 1) (hB₁ : ‖B₁‖ ≤ 1) : ‖chshOp A₀ A₁ B₀ B₁‖ ≤ 4 := by + have hs : ‖B₀ + B₁‖ ≤ 2 := by + have h := norm_add_le B₀ B₁ + linarith + have hd : ‖B₀ - B₁‖ ≤ 2 := by + have h := norm_sub_le B₀ B₁ + linarith + have h1 : ‖A₀ * (B₀ + B₁)‖ ≤ 2 := by + have h := norm_mul_le A₀ (B₀ + B₁) + have h' : ‖A₀‖ * ‖B₀ + B₁‖ ≤ 1 * 2 := mul_le_mul hA₀ hs (norm_nonneg _) zero_le_one + linarith + have h2 : ‖A₁ * (B₀ - B₁)‖ ≤ 2 := by + have h := norm_mul_le A₁ (B₀ - B₁) + have h' : ‖A₁‖ * ‖B₀ - B₁‖ ≤ 1 * 2 := mul_le_mul hA₁ hd (norm_nonneg _) zero_le_one + linarith + change ‖A₀ * (B₀ + B₁) + A₁ * (B₀ - B₁)‖ ≤ 4 + have h3 := norm_add_le (A₀ * (B₀ + B₁)) (A₁ * (B₀ - B₁)) + linarith + +/-- The set of CHSH values of a state is bounded above (by `4`). -/ +theorem bddAbove_chshValues (ω : State H) (𝔄 𝔅 : VonNeumannAlgebra H) : + BddAbove (chshValues ω 𝔄 𝔅) := by + refine ⟨4, ?_⟩ + intro x hx + obtain ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, rfl⟩ := hx + have hA₀' : A₀ ∈ 𝔄 ∧ IsSelfAdjoint A₀ ∧ ‖A₀‖ ≤ 1 := hA₀ + have hA₁' : A₁ ∈ 𝔄 ∧ IsSelfAdjoint A₁ ∧ ‖A₁‖ ≤ 1 := hA₁ + have hB₀' : B₀ ∈ 𝔅 ∧ IsSelfAdjoint B₀ ∧ ‖B₀‖ ≤ 1 := hB₀ + have hB₁' : B₁ ∈ 𝔅 ∧ IsSelfAdjoint B₁ ∧ ‖B₁‖ ≤ 1 := hB₁ + have h := ω.norm_apply_le (chshOp A₀ A₁ B₀ B₁) + have h' := norm_chshOp_le hA₀'.2.2 hA₁'.2.2 hB₀'.2.2 hB₁'.2.2 + linarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/StateExtension.lean b/LeanPool/VacuumBellSeparation/Bell/StateExtension.lean new file mode 100644 index 0000000000..82ca7b62a9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/StateExtension.lean @@ -0,0 +1,103 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Defs +public import Mathlib.Analysis.CStarAlgebra.PositiveLinearFunctional +public import Mathlib.Analysis.Normed.Module.HahnBanach +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Instances +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Range +public import Mathlib.Analysis.CStarAlgebra.PositiveLinearMap +public import Mathlib.Analysis.InnerProductSpace.StarOrder + +/-! +# Extension of states to the ambient operator algebra + +The manuscript allows a state on the algebra generated by the two local algebras, +whereas `State H` is a functional on all bounded operators. The complex Hahn–Banach +theorem extends a functional with its norm unchanged. For a positive functional on +a unital C⋆-algebra the norm is its value at one; conversely, that identity implies +positivity. Thus every positive unital functional on a closed unital star subalgebra +extends to an ambient state, agreeing on every element of the subalgebra. + +This is an extension of general states. No normality of the extension is asserted +or needed by the probability criterion. +-/ + +@[expose] public section + +open scoped ComplexOrder + +namespace VacuumBellSeparation + +/-- A positive unital functional on a closed unital star subalgebra extends to a +positive unital functional on the ambient C⋆-algebra. -/ +theorem exists_positive_unital_extension {A : Type*} [CStarAlgebra A] + [PartialOrder A] [StarOrderedRing A] + (S : StarSubalgebra ℂ A) [IsClosed (S : Set A)] + (f : S →P[ℂ] ℂ) (hf : f 1 = 1) : + ∃ g : A →P[ℂ] ℂ, g 1 = 1 ∧ ∀ x : S, g x = f x := by + obtain ⟨g, hg, hnorm⟩ := + exists_extension_norm_eq S.toSubalgebra.toSubmodule f.toContinuousLinearMap + have hg1 : g 1 = 1 := (hg (1 : S)).trans hf + have hgpos : Monotone g := by + apply ContinuousLinearMap.monotone_iff_opNorm_eq_map_one.mpr + calc + (‖g‖ : ℂ) = (‖f.toContinuousLinearMap‖ : ℂ) := congrArg Complex.ofReal hnorm + _ = f 1 := f.ofReal_opNorm_eq_map_one + _ = g 1 := hf.trans hg1.symm + exact ⟨{ toContinuousLinearMap := g, monotone' := hgpos }, hg1, hg⟩ + +/-- Continuity need not be assumed separately: positive linear functionals on +C⋆-algebras are automatically continuous. -/ +theorem exists_positive_unital_extension_linear {A : Type*} [CStarAlgebra A] + [PartialOrder A] [StarOrderedRing A] + (S : StarSubalgebra ℂ A) [IsClosed (S : Set A)] + (f : S →ₚ[ℂ] ℂ) (hf : f 1 = 1) : + ∃ g : A →P[ℂ] ℂ, g 1 = 1 ∧ ∀ x : S, g x = f x := + exists_positive_unital_extension S (PositiveContinuousLinearMap.ofClass f) hf + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- An ambient positive unital functional gives precisely the `State` used in +the Bell-correlation definitions. -/ +def State.ofPositiveContinuousLinearMap (g : (H →L[ℂ] H) →P[ℂ] ℂ) + (hg : g 1 = 1) : State H where + toLinearMap := g.toLinearMap + map_one' := hg + map_nonneg' T hT := by + have h := Complex.nonneg_iff.mp + (g.map_nonneg (ContinuousLinearMap.nonneg_iff_isPositive.mpr hT)) + exact ⟨h.2.symm, h.1⟩ + +/-- Any state on a closed unital star subalgebra of bounded operators has an +extension of the type used by the probability criterion. -/ +theorem exists_state_extension (S : StarSubalgebra ℂ (H →L[ℂ] H)) + [IsClosed (S : Set (H →L[ℂ] H))] (f : S →ₚ[ℂ] ℂ) (hf : f 1 = 1) : + ∃ ω : State H, ∀ x : S, ω x = f x := by + obtain ⟨g, hg1, hg⟩ := exists_positive_unital_extension_linear S f hf + exact ⟨State.ofPositiveContinuousLinearMap g hg1, hg⟩ + +/-- Von Neumann algebras are norm closed since they are double commutants. -/ +theorem isClosed_vonNeumannAlgebra (M : VonNeumannAlgebra H) : + IsClosed (M : Set (H →L[ℂ] H)) := by + rw [← M.centralizer_centralizer] + exact Set.isClosed_centralizer _ + +instance vonNeumannAlgebra_starSubalgebra_isClosed (M : VonNeumannAlgebra H) : + IsClosed (M.toStarSubalgebra : Set (H →L[ℂ] H)) := + isClosed_vonNeumannAlgebra M + +/-- In particular, every state on a von Neumann algebra extends to `B(H)`. +This applies to the algebra containing the two local algebras of Theorem 3.1. -/ +theorem exists_state_extension_vonNeumann (M : VonNeumannAlgebra H) + (f : M.toStarSubalgebra →ₚ[ℂ] ℂ) (hf : f 1 = 1) : + ∃ ω : State H, ∀ x : M.toStarSubalgebra, ω x = f x := by + exact exists_state_extension M.toStarSubalgebra f hf + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/StateRestriction.lean b/LeanPool/VacuumBellSeparation/Bell/StateRestriction.lean new file mode 100644 index 0000000000..0a003c3168 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/StateRestriction.lean @@ -0,0 +1,81 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.EventConstantDefs + +/-! +# Bell quantities depend only on the jointly generated algebra + +Two ambient state extensions agreeing on a star subalgebra containing both local +algebras give identical Bell correlations and event constants. No normality or +commutativity assumption is required for these invariance identities. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem chshOp_mem_starSubalgebra (S : StarSubalgebra ℂ (H →L[ℂ] H)) + {A₀ A₁ B₀ B₁ : H →L[ℂ] H} (hA₀ : A₀ ∈ S) (hA₁ : A₁ ∈ S) + (hB₀ : B₀ ∈ S) (hB₁ : B₁ ∈ S) : chshOp A₀ A₁ B₀ B₁ ∈ S := + S.add_mem (S.mul_mem hA₀ (S.add_mem hB₀ hB₁)) + (S.mul_mem hA₁ (S.sub_mem hB₀ hB₁)) + +variable (ω₀ ω₁ : State H) (S : StarSubalgebra ℂ (H →L[ℂ] H)) + (hω : ∀ T ∈ S, ω₀ T = ω₁ T) (𝔄 𝔅 : VonNeumannAlgebra H) + (h𝔄 : (𝔄 : Set (H →L[ℂ] H)) ⊆ S) (h𝔅 : (𝔅 : Set (H →L[ℂ] H)) ⊆ S) + +include hω h𝔄 h𝔅 + +theorem chshValues_eq_of_agree_on : chshValues ω₀ 𝔄 𝔅 = chshValues ω₁ 𝔄 𝔅 := by + ext z + constructor + · rintro ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, hz⟩ + refine ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, hz.trans ?_⟩ + rw [hω _ (chshOp_mem_starSubalgebra S (h𝔄 hA₀.1) (h𝔄 hA₁.1) + (h𝔅 hB₀.1) (h𝔅 hB₁.1))] + · rintro ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, hz⟩ + refine ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, hz.trans ?_⟩ + rw [hω _ (chshOp_mem_starSubalgebra S (h𝔄 hA₀.1) (h𝔄 hA₁.1) + (h𝔅 hB₀.1) (h𝔅 hB₁.1))] + +theorem bellCorrelation_eq_of_agree_on : + bellCorrelation ω₀ 𝔄 𝔅 = bellCorrelation ω₁ 𝔄 𝔅 := + congrArg sSup (chshValues_eq_of_agree_on ω₀ ω₁ S hω 𝔄 𝔅 h𝔄 h𝔅) + +theorem eventConstPlus_eq_of_agree_on (r : ℝ) : + eventConstPlus ω₀ 𝔄 𝔅 r = eventConstPlus ω₁ 𝔄 𝔅 r := by + unfold eventConstPlus + apply iSup_congr + intro E + apply iSup_congr + intro hE + apply iSup_congr + intro P + apply iSup_congr + intro hP + rw [hω E (h𝔄 hE.1), hω P (h𝔅 hP.1), + hω (E * P) (S.mul_mem (h𝔄 hE.1) (h𝔅 hP.1))] + +theorem eventConstMinus_eq_of_agree_on (r : ℝ) : + eventConstMinus ω₀ 𝔄 𝔅 r = eventConstMinus ω₁ 𝔄 𝔅 r := by + unfold eventConstMinus + apply iSup_congr + intro E + apply iSup_congr + intro hE + apply iSup_congr + intro P + apply iSup_congr + intro hP + rw [hω E (h𝔄 hE.1), hω P (h𝔅 hP.1), + hω (E * P) (S.mul_mem (h𝔄 hE.1) (h𝔅 hP.1))] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/StrongApproximationNets.lean b/LeanPool/VacuumBellSeparation/Bell/StrongApproximationNets.lean new file mode 100644 index 0000000000..93a41926d1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/StrongApproximationNets.lean @@ -0,0 +1,60 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.BicommutantSelfAdjoint + +/-! # Nets from simultaneous finite-vector approximation -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +omit [CompleteSpace H] in +theorem exists_strong_net_of_finite_approximation (D : Set (H →L[ℂ] H)) + (T : H →L[ℂ] H) + (happrox : ∀ s : Finset H, ∀ ε : ℝ, 0 < ε → + ∃ A ∈ D, ∀ x ∈ s, ‖T x - A x‖ < ε) : + ∃ As : (Finset H × ℕ) → (H →L[ℂ] H), + (∀ i, As i ∈ D) ∧ ∀ x : H, Tendsto (fun i => As i x) atTop (𝓝 (T x)) := by + classical + have ha : ∀ i : Finset H × ℕ, ∃ A ∈ D, + ∀ x ∈ i.1, ‖T x - A x‖ < 1 / ((i.2 : ℝ) + 1) := by + intro i + exact happrox i.1 _ (by positivity) + choose As hmem hdist using ha + refine ⟨As, hmem, fun x => Metric.tendsto_nhds.mpr ?_⟩ + intro ε hε + obtain ⟨N, hN⟩ := exists_nat_one_div_lt hε + apply eventually_atTop.mpr + refine ⟨({x}, N), ?_⟩ + intro i hi + have hxi : x ∈ i.1 := hi.1 (Finset.mem_singleton_self x) + have hden : (N : ℝ) + 1 ≤ (i.2 : ℝ) + 1 := by exact_mod_cast Nat.add_le_add_right hi.2 1 + have hbound : 1 / ((i.2 : ℝ) + 1) ≤ 1 / ((N : ℝ) + 1) := + one_div_le_one_div_of_le (by positivity) hden + rw [dist_eq_norm, norm_sub_rev] + exact (lt_of_lt_of_le (hdist i x hxi) hbound).trans hN + +theorem exists_selfAdjoint_strong_approximation + (S : StarSubalgebra ℂ (H →L[ℂ] H)) {T : H →L[ℂ] H} + (hT : T ∈ generatedVNA (S : Set (H →L[ℂ] H))) (hsa : IsSelfAdjoint T) : + ∃ As : (Finset H × ℕ) → (H →L[ℂ] H), + (∀ i, As i ∈ S ∧ IsSelfAdjoint (As i)) ∧ + ∀ x : H, Tendsto (fun i => As i x) atTop (𝓝 (T x)) := by + classical + apply exists_strong_net_of_finite_approximation {A | A ∈ S ∧ IsSelfAdjoint A} T + intro s ε hε + obtain ⟨A, hA, hself, hdist⟩ := selfAdjoint_bicommutant_approximate_finite_family + S hT hsa (fun x : s => (x : H)) hε + exact ⟨A, ⟨hA, hself⟩, fun x hx => hdist ⟨x, hx⟩⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/StrongClosure.lean b/LeanPool/VacuumBellSeparation/Bell/StrongClosure.lean new file mode 100644 index 0000000000..bcb75fbce8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/StrongClosure.lean @@ -0,0 +1,42 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Defs + +/-! +# Strong limits in the actual von Neumann algebra + +The double-commutant definition implies closure under pointwise convergence of +bounded operators. No operator-norm convergence or bound on the family is +required: the limiting operator is already an actual continuous linear map. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem mem_vonNeumannAlgebra_of_strong_tendsto (A : VonNeumannAlgebra H) + {α : Type*} {l : Filter α} [l.NeBot] + {Ts : α → H →L[ℂ] H} {T : H →L[ℂ] H} + (hmem : ∀ᶠ i in l, Ts i ∈ A) + (hlim : ∀ x, Tendsto (fun i => Ts i x) l (𝓝 (T x))) : T ∈ A := by + rw [← A.commutant_commutant, VonNeumannAlgebra.mem_commutant_iff] + intro B hB + apply ContinuousLinearMap.ext + intro x + have hleft := B.continuous.continuousAt.tendsto.comp (hlim x) + have hright := hlim (B x) + apply tendsto_nhds_unique_of_eventuallyEq hleft hright + filter_upwards [hmem] with i hi + exact (DFunLike.congr_fun (VonNeumannAlgebra.mem_commutant_iff.mp hB (Ts i) hi) x).symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/StrongExpectationLimits.lean b/LeanPool/VacuumBellSeparation/Bell/StrongExpectationLimits.lean new file mode 100644 index 0000000000..cef26872c4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/StrongExpectationLimits.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Defs + +/-! +# Bounded strong products and the three vacuum expectations + +Strong convergence of both factors, with a uniform bound on the left, +proves strong convergence of the product. Independent nets therefore +preserve every closed continuous inequality in the two marginal vacuum +expectations and their joint expectation. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology ContinuousLinearMap +open scoped InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +omit [CompleteSpace H] in +theorem strong_tendsto_mul_of_bounded {ι : Type*} {l : Filter ι} + {As Bs : ι → H →L[ℂ] H} {A B : H →L[ℂ] H} {C : ℝ} + (hbound : ∀ i, ‖As i‖ ≤ C) + (hA : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) + (hB : ∀ x, Tendsto (fun i => Bs i x) l (𝓝 (B x))) (x : H) : + Tendsto (fun i => (As i * Bs i) x) l (𝓝 ((A * B) x)) := by + have hb := ((hB x).sub (tendsto_const_nhds (x := B x))).norm + have ha := ((hA (B x)).sub (tendsto_const_nhds (x := A (B x)))).norm + have hzero : Tendsto (fun i => C * ‖Bs i x - B x‖ + ‖As i (B x) - A (B x)‖) l (𝓝 0) := by + simpa only [sub_self, norm_zero, mul_zero, add_zero] using (hb.const_mul C).add ha + rw [tendsto_iff_norm_sub_tendsto_zero] + apply squeeze_zero (fun _ => norm_nonneg _) _ hzero + intro i + calc + ‖(As i * Bs i) x - (A * B) x‖ = + ‖As i (Bs i x - B x) + (As i (B x) - A (B x))‖ := by + congr 1 + simp only [mul_apply_eq_comp, map_sub] + abel + _ ≤ ‖As i (Bs i x - B x)‖ + ‖As i (B x) - A (B x)‖ := norm_add_le _ _ + _ ≤ C * ‖Bs i x - B x‖ + ‖As i (B x) - A (B x)‖ := + add_le_add ((As i).le_opNorm _ |>.trans + (mul_le_mul_of_nonneg_right (hbound i) (norm_nonneg _))) le_rfl + +/-- Vacuum expectation triple given by `((inner ℂ Ω (A Ω)).re, (inner ℂ Ω (B Ω)).re, (inner ℂ Ω ((A +* B) Ω)).re)`. -/ +noncomputable def vacuumExpectationTriple (Ω : H) (A B : H →L[ℂ] H) : ℝ × ℝ × ℝ := + ((inner ℂ Ω (A Ω)).re, (inner ℂ Ω (B Ω)).re, (inner ℂ Ω ((A * B) Ω)).re) + +omit [CompleteSpace H] in +theorem tendsto_vacuumExpectationTriple {ι : Type*} {l : Filter ι} + (Ω : H) {As Bs : ι → H →L[ℂ] H} {A B : H →L[ℂ] H} {C : ℝ} + (hbound : ∀ i, ‖As i‖ ≤ C) + (hA : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) + (hB : ∀ x, Tendsto (fun i => Bs i x) l (𝓝 (B x))) : + Tendsto (fun i => vacuumExpectationTriple Ω (As i) (Bs i)) l + (𝓝 (vacuumExpectationTriple Ω A B)) := by + have heval : Continuous (fun x : H => (inner ℂ Ω x).re) := by fun_prop + exact (heval.continuousAt.tendsto.comp (hA Ω)).prodMk_nhds + ((heval.continuousAt.tendsto.comp (hB Ω)).prodMk_nhds + (heval.continuousAt.tendsto.comp (strong_tendsto_mul_of_bounded hbound hA hB Ω))) + +omit [CompleteSpace H] in +/-- Independent approximation nets suffice; the limiting inequality is actual, not formal. -/ +theorem vacuum_inequality_of_independent_strong_limits + {ι κ : Type*} {l : Filter ι} {k : Filter κ} [l.NeBot] [k.NeBot] + (Ω : H) {As : ι → H →L[ℂ] H} {Bs : κ → H →L[ℂ] H} + {A B : H →L[ℂ] H} {C : ℝ} (hbound : ∀ i, ‖As i‖ ≤ C) + (hA : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) + (hB : ∀ x, Tendsto (fun j => Bs j x) k (𝓝 (B x))) + (f : ℝ × ℝ × ℝ → ℝ) (hf : Continuous f) + (hineq : ∀ᶠ q : ι × κ in l ×ˢ k, f (vacuumExpectationTriple Ω (As q.1) (Bs q.2)) ≤ 0) : + f (vacuumExpectationTriple Ω A B) ≤ 0 := by + have ht := tendsto_vacuumExpectationTriple Ω (fun q : ι × κ => hbound q.1) + (fun x => (hA x).comp tendsto_fst) (fun x => (hB x).comp tendsto_snd) + exact (isClosed_Iic.mem_of_tendsto (hf.continuousAt.tendsto.comp ht) hineq) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/Theorem31.lean b/LeanPool/VacuumBellSeparation/Bell/Theorem31.lean new file mode 100644 index 0000000000..e87523c90f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/Theorem31.lean @@ -0,0 +1,70 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.EventConstants +public import LeanPool.VacuumBellSeparation.Bell.SpectralThreshold +public import LeanPool.VacuumBellSeparation.Bell.ReflectionApprox + +/-! +# Theorem 3.1: a probability criterion for the classical CHSH bound + +`probability_criterion` is Theorem 3.1 (`thm:probability`) of the manuscript in its stated +form: for a state `ω` (a positive unital functional on `B(H)`, see `VacuumBellSeparation.State`; +the manuscript speaks of a state on the von Neumann algebra generated by two commuting +von Neumann algebras), orders `r₊ > 2`, `1 < r₋ < 2` +with `η > 0`, finite event comparison constants `K_{r₊,+}`, `K_{r₋,-}` (suprema over local +projections, equation (3.1)), the clustering bound (3.3) and the cutoff inequality (3.5), +the Summers–Werner Bell correlation (2.4) equals `1`. + +The proof combines the real-number cell argument (`chsh_box_le_one`), the projection form +for reflection quartets (`chshValue_le_one_of_projection_bounds`), the multi-affine +reduction (`chsh_bound_of_reflections`) and the spectral approximation of self-adjoint +contractions by averages of reflections inside a von Neumann algebra +(`saContractions_subset_closure_convexHull_reflections`). +-/ + +@[expose] public section + +open scoped ENNReal + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Every self-adjoint contraction of a von Neumann algebra is a norm limit of convex +combinations of reflections of that algebra ("every self-adjoint contraction is a spectral +average of reflections"). -/ +theorem saContractions_subset_closure_convexHull_reflections (M : VonNeumannAlgebra H) : + saContractions M ⊆ closure (convexHull ℝ (reflections M)) := by + intro A hA + obtain ⟨E, h1, h2, h3, h4, h5, h6, h7⟩ := exists_threshold_projections M hA.1 hA.2.1 + exact mem_closure_convexHull_reflections_of_thresholds M hA E h1 h2 h3 h4 h5 h6 h7 + +/-- **Theorem 3.1 (two event bounds and clustering).** Let `ω` be a state and `𝔄`, `𝔅` +commuting von Neumann algebras. Let `r₊ > 2` and `1 < r₋ < 2` with +`η = 1 - (1 - b)/(a b²) > 0`, where `b = 1 - 1/r₊`, `a = 1 - 1/r₋`. Suppose +`K_{r₊,+}, K_{r₋,-} < ∞`, and `|ω(AB) - ω(A)ω(B)| ≤ q` for all local self-adjoint +contractions. If `q^η K_{r₊,+}^{ν₊} K_{r₋,-}^{ν₋} ≤ 2^{-2/(ab)}`, then the Summers–Werner +Bell correlation equals `1`. -/ +theorem probability_criterion + (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {rp rm q : ℝ} (hrp : 2 < rp) (hrm : 1 < rm) (hrm2 : rm < 2) + (hη : 0 < expEta rp rm) + (hKp : eventConstPlus ω 𝔄 𝔅 rp ≠ ⊤) (hKm : eventConstMinus ω 𝔄 𝔅 rm ≠ ⊤) + (hcl : ∀ A ∈ saContractions 𝔄, ∀ B ∈ saContractions 𝔅, + ‖ω (A * B) - ω A * ω B‖ ≤ q) + (hcut : q ^ expEta rp rm * (eventConstPlus ω 𝔄 𝔅 rp).toReal ^ nuPlus rp rm + * (eventConstMinus ω 𝔄 𝔅 rm).toReal ^ nuMinus rm + ≤ (2 : ℝ) ^ (-(2 / (expA rm * expB rp)))) : + bellCorrelation ω 𝔄 𝔅 = 1 := + bellCorrelation_eq_one_of_event_constants_of_approx ω hcomm + (saContractions_subset_closure_convexHull_reflections 𝔄) + (saContractions_subset_closure_convexHull_reflections 𝔅) + hrp hrm hrm2 hη hKp hKm hcl hcut + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/TsirelsonBound.lean b/LeanPool/VacuumBellSeparation/Bell/TsirelsonBound.lean new file mode 100644 index 0000000000..d28ba3a05f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/TsirelsonBound.lean @@ -0,0 +1,84 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.EventConstants + +/-! +# The literal Tsirelson bound with the manuscript normalization + +The Hilbert-space parallelogram identity bounds the CHSH operator by +2 sqrt(2). Commutativity makes it selfadjoint, so every original positive +unital state has normalized CHSH expectation at most sqrt(2). +-/ + +@[expose] public section + +namespace VacuumBellSeparation +open ContinuousLinearMap + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +omit [CompleteSpace H] in +theorem norm_chshOp_le_two_sqrt_two {A₀ A₁ B₀ B₁ : H →L[ℂ] H} + (hA₀ : ‖A₀‖ ≤ 1) (hA₁ : ‖A₁‖ ≤ 1) (hB₀ : ‖B₀‖ ≤ 1) (hB₁ : ‖B₁‖ ≤ 1) : + ‖chshOp A₀ A₁ B₀ B₁‖ ≤ 2 * Real.sqrt 2 := by + apply ContinuousLinearMap.opNorm_le_bound _ (by positivity) + intro x + have hB0 : ‖B₀ x‖ ≤ ‖x‖ := (B₀.le_opNorm x).trans + (by simpa using mul_le_mul_of_nonneg_right hB₀ (norm_nonneg x)) + have hB1 : ‖B₁ x‖ ≤ ‖x‖ := (B₁.le_opNorm x).trans + (by simpa using mul_le_mul_of_nonneg_right hB₁ (norm_nonneg x)) + have hA0 : ‖A₀ (B₀ x + B₁ x)‖ ≤ ‖B₀ x + B₁ x‖ := + (A₀.le_opNorm _).trans (by simpa using mul_le_mul_of_nonneg_right hA₀ (norm_nonneg _)) + have hA1 : ‖A₁ (B₀ x - B₁ x)‖ ≤ ‖B₀ x - B₁ x‖ := + (A₁.le_opNorm _).trans (by simpa using mul_le_mul_of_nonneg_right hA₁ (norm_nonneg _)) + have hpar := parallelogram_law_with_norm ℂ (B₀ x) (B₁ x) + have hsq0 := pow_le_pow_left₀ (norm_nonneg _) hB0 2 + have hsq1 := pow_le_pow_left₀ (norm_nonneg _) hB1 2 + have hs : ‖B₀ x + B₁ x‖ + ‖B₀ x - B₁ x‖ ≤ 2 * Real.sqrt 2 * ‖x‖ := by + have ht : (‖B₀ x + B₁ x‖ + ‖B₀ x - B₁ x‖) ^ 2 ≤ 8 * ‖x‖ ^ 2 := by + nlinarith [sq_nonneg (‖B₀ x + B₁ x‖ - ‖B₀ x - B₁ x‖)] + have hroot : (2 * Real.sqrt 2 * ‖x‖) ^ 2 = 8 * ‖x‖ ^ 2 := by + rw [mul_pow, mul_pow, Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2)] + ring + exact nonneg_le_nonneg_of_sq_le_sq (by positivity) + (by simpa only [pow_two] using ht.trans_eq hroot.symm) + change ‖A₀ (B₀ x + B₁ x) + A₁ (B₀ x - B₁ x)‖ ≤ _ + exact (norm_add_le _ _).trans ((add_le_add hA0 hA1).trans hs) + +theorem chshOp_isSelfAdjoint {𝔄 𝔅 : VonNeumannAlgebra H} (hcomm : Commuting 𝔄 𝔅) + {A₀ A₁ B₀ B₁ : H →L[ℂ] H} + (hA₀ : A₀ ∈ saContractions 𝔄) (hA₁ : A₁ ∈ saContractions 𝔄) + (hB₀ : B₀ ∈ saContractions 𝔅) (hB₁ : B₁ ∈ saContractions 𝔅) : + IsSelfAdjoint (chshOp A₀ A₁ B₀ B₁) := by + rw [isSelfAdjoint_iff] + simp only [chshOp, star_add, star_sub, star_mul, + hA₀.2.1.star_eq, hA₁.2.1.star_eq, hB₀.2.1.star_eq, hB₁.2.1.star_eq, + mul_add, mul_sub, + hcomm A₀ hA₀.1 B₀ hB₀.1, hcomm A₀ hA₀.1 B₁ hB₁.1, + hcomm A₁ hA₁.1 B₀ hB₀.1, hcomm A₁ hA₁.1 B₁ hB₁.1] + +theorem chshValue_le_sqrt_two (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} + (hcomm : Commuting 𝔄 𝔅) {A₀ A₁ B₀ B₁ : H →L[ℂ] H} + (hA₀ : A₀ ∈ saContractions 𝔄) (hA₁ : A₁ ∈ saContractions 𝔄) + (hB₀ : B₀ ∈ saContractions 𝔅) (hB₁ : B₁ ∈ saContractions 𝔅) : + (1 / 2 : ℝ) * ‖ω (chshOp A₀ A₁ B₀ B₁)‖ ≤ Real.sqrt 2 := by + have h := ω.norm_apply_le_of_isSelfAdjoint (chshOp_isSelfAdjoint hcomm hA₀ hA₁ hB₀ hB₁) + (by positivity : (0 : ℝ) < 2 * Real.sqrt 2) + (norm_chshOp_le_two_sqrt_two hA₀.2.2 hA₁.2.2 hB₀.2.2 hB₁.2.2) + linarith + +/-- Source Section 2.1, with the original supremum over all admissible +selfadjoint contractions and the original general state definition. -/ +theorem bellCorrelation_le_sqrt_two (ω : State H) {𝔄 𝔅 : VonNeumannAlgebra H} + (hcomm : Commuting 𝔄 𝔅) : bellCorrelation ω 𝔄 𝔅 ≤ Real.sqrt 2 := by + apply csSup_le ⟨1, one_mem_chshValues ω 𝔄 𝔅⟩ + rintro x ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, rfl⟩ + exact chshValue_le_sqrt_two ω hcomm hA₀ hA₁ hB₀ hB₁ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/UniversalNormalBellSequence.lean b/LeanPool/VacuumBellSeparation/Bell/UniversalNormalBellSequence.lean new file mode 100644 index 0000000000..f039660df7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/UniversalNormalBellSequence.lean @@ -0,0 +1,135 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalUpperLimit +public import LeanPool.VacuumBellSeparation.Bell.SW88MaximalCorrelationEquivalence +public import Mathlib.Topology.Order.IsLUB + +/-! +One sequence of literal normalized CHSH operators approaches the sharp +bound in every normal state of the original joint algebra. The sequence +is selected in one faithful normal state; domination gives the common +limit. This is the real-normal-expectation prerequisite for the common +sequence in SW87c Theorem 2.3. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open HC00 TopologicalSpace Filter +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Actual original-algebra CHSH operators, with the source's factor one half. -/ +def jointNormalizedBellOperators (A B : VonNeumannAlgebra H) : + Set (jointAlgebra A B).toStarSubalgebra := + {T | ∃ X₀ X₁ Y₀ Y₁ : (jointAlgebra A B).toStarSubalgebra, + (X₀ : H →L[ℂ] H) ∈ saContractions A ∧ + (X₁ : H →L[ℂ] H) ∈ saContractions A ∧ + (Y₀ : H →L[ℂ] H) ∈ saContractions B ∧ + (Y₁ : H →L[ℂ] H) ∈ saContractions B ∧ + T = (1 / 2 : ℂ) • (X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁))} + +theorem normalizedBellOperator_eval (M : VonNeumannAlgebra H) + (φ : StrongDual ℂ M.toStarSubalgebra) (T : M.toStarSubalgebra) : + (φ ((1 / 2 : ℂ) • T)).re = (1 / 2 : ℝ) * (φ T).re := by + simp [map_smul, smul_eq_mul, Complex.mul_re] + +theorem norm_le_two_of_mem_jointNormalizedBellOperators + (A B : VonNeumannAlgebra H) {T : (jointAlgebra A B).toStarSubalgebra} + (hT : T ∈ jointNormalizedBellOperators A B) : ‖T‖ ≤ 2 := by + obtain ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ := hT + have hb : ‖X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁)‖ ≤ 4 := by + change ‖chshOp (X₀ : H →L[ℂ] H) (X₁ : H →L[ℂ] H) + (Y₀ : H →L[ℂ] H) (Y₁ : H →L[ℂ] H)‖ ≤ 4 + exact norm_chshOp_le hX₀.2.2 hX₁.2.2 hY₀.2.2 hY₁.2.2 + rw [norm_smul] + norm_num + change ‖(X₀ : H →L[ℂ] H) * ((Y₀ : H →L[ℂ] H) + Y₁) + + (X₁ : H →L[ℂ] H) * ((Y₀ : H →L[ℂ] H) - Y₁)‖ ≤ 4 at hb + linarith + +theorem eval_mem_jointSignedBellValues_of_normalized + (A B : VonNeumannAlgebra H) + (φ : StrongDual ℂ (jointAlgebra A B).toStarSubalgebra) + {T : (jointAlgebra A B).toStarSubalgebra} + (hT : T ∈ jointNormalizedBellOperators A B) : + (φ T).re ∈ jointSignedBellValues A B φ := by + obtain ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ := hT + exact ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, + normalizedBellOperator_eval _ φ _⟩ + +theorem exists_normalizedBellOperator_of_signed_value + (A B : VonNeumannAlgebra H) + (φ : StrongDual ℂ (jointAlgebra A B).toStarSubalgebra) + {r : ℝ} (hr : r ∈ jointSignedBellValues A B φ) : + ∃ T ∈ jointNormalizedBellOperators A B, (φ T).re = r := by + obtain ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ := hr + refine ⟨(1 / 2 : ℂ) • (X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁)), + ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩, ?_⟩ + exact normalizedBellOperator_eval _ φ _ + +theorem normalizedBellOperator_state_upper (A B : VonNeumannAlgebra H) + (hcomm : Commuting A B) (φ : StateSpace (jointAlgebra A B)) + {T : (jointAlgebra A B).toStarSubalgebra} + (hT : T ∈ jointNormalizedBellOperators A B) : (φ.1 T).re ≤ Real.sqrt 2 := by + have hv := le_csSup (jointSignedBellValues_bddAbove A B φ.1) + (eval_mem_jointSignedBellValues_of_normalized A B φ.1 hT) + exact hv.trans ((jointSignedBellCorrelation_le A B φ.1).trans + (jointBellCorrelation_bounds A B hcomm φ).2) + +theorem exists_universal_normal_Bell_sequence_of_faithful + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) + (ω : NormalStateSpace (jointAlgebra A B)) + (hf : ∀ a : (jointAlgebra A B).toStarSubalgebra, + ω.1 (star a * a) = 0 → a = 0) + (hmax : jointSignedBellCorrelation A B ω.1 = Real.sqrt 2) : + ∃ T : ℕ → (jointAlgebra A B).toStarSubalgebra, + (∀ n, T n ∈ jointNormalizedBellOperators A B) ∧ + ∀ φ : NormalStateSpace (jointAlgebra A B), + Tendsto (fun n => (φ.1 (T n)).re) atTop (𝓝 (Real.sqrt 2)) := by + obtain ⟨r, _, hr, hmem⟩ := exists_seq_tendsto_sSup + (jointSignedBellValues_nonempty A B ω.1) (jointSignedBellValues_bddAbove A B ω.1) + change Tendsto r atTop (𝓝 (jointSignedBellCorrelation A B ω.1)) at hr + rw [hmax] at hr + choose T hT he using fun n => exists_normalizedBellOperator_of_signed_value A B ω.1 (hmem n) + refine ⟨T, hT, ?_⟩ + have hω : Tendsto (fun n => (ω.1 (T n)).re) atTop (𝓝 (Real.sqrt 2)) := by + simpa only [he] using hr + exact normalState_evaluation_tendsto_upper_of_faithful (jointAlgebra A B) ω hf + T (Real.sqrt 2) 2 (fun n => norm_le_two_of_mem_jointNormalizedBellOperators A B (hT n)) + (fun φ n => normalizedBellOperator_state_upper A B hcomm φ (hT n)) hω + +/-- Every normal state has maximal supremum iff one sequence works for them +all. Separability is used to construct a faithful normal reference, not to +replace the original state space by a countable chosen family. -/ +theorem all_normal_maximal_iff_universal_normal_Bell_sequence + [SeparableSpace H] [Nontrivial H] + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) : + (∀ φ : NormalStateSpace (jointAlgebra A B), + jointSignedBellCorrelation A B φ.1 = Real.sqrt 2) ↔ + ∃ T : ℕ → (jointAlgebra A B).toStarSubalgebra, + (∀ n, T n ∈ jointNormalizedBellOperators A B) ∧ + ∀ φ : NormalStateSpace (jointAlgebra A B), + Tendsto (fun n => (φ.1 (T n)).re) atTop (𝓝 (Real.sqrt 2)) := by + constructor + · intro h + obtain ⟨ω, hf⟩ := exists_faithful_mem_normalStateSpace (jointAlgebra A B) + exact exists_universal_normal_Bell_sequence_of_faithful A B hcomm ω hf (h ω) + · rintro ⟨T, hT, hlim⟩ φ + apply le_antisymm + · exact (jointSignedBellCorrelation_le A B φ.1).trans + (jointBellCorrelation_bounds A B hcomm ⟨φ.1, φ.2.1⟩).2 + · apply le_of_tendsto (hlim φ) + exact Eventually.of_forall fun n => le_csSup (jointSignedBellValues_bddAbove A B φ.1) + (eval_mem_jointSignedBellValues_of_normalized A B φ.1 (hT n)) + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/UniversalWeakStarBellSequence.lean b/LeanPool/VacuumBellSeparation/Bell/UniversalWeakStarBellSequence.lean new file mode 100644 index 0000000000..36f1210a94 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/UniversalWeakStarBellSequence.lean @@ -0,0 +1,124 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.NormalStateWeakConvergence +public import LeanPool.VacuumBellSeparation.Bell.UniversalNormalBellSequence +public import LeanPool.VacuumBellSeparation.Bell.CoefficientNormalStateSpace + +/-! +The common normalized CHSH sequence converges to sqrt(2) times the identity +in the weak topology paired with the actual coefficient Banach predual. +The canonical homeomorphism exposes the same convergence in WeakDual. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open HC00 TopologicalSpace Filter +open scoped Topology ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem isSelfAdjoint_of_mem_jointNormalizedBellOperators + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) + {T : (jointAlgebra A B).toStarSubalgebra} + (hT : T ∈ jointNormalizedBellOperators A B) : IsSelfAdjoint T := by + obtain ⟨X₀, X₁, Y₀, Y₁, hX₀, hX₁, hY₀, hY₁, rfl⟩ := hT + have hs : IsSelfAdjoint (X₀ * (Y₀ + Y₁) + X₁ * (Y₀ - Y₁)) := by + apply Subtype.ext + exact (chshOp_isSelfAdjoint hcomm hX₀ hX₁ hY₀ hY₁).star_eq + change star ((1 / 2 : ℂ) • _) = _ + rw [star_smul, hs.star_eq] + norm_num + +theorem state_scalar_one_real (M : VonNeumannAlgebra H) + (φ : StateSpace M) (c : ℝ) : (φ.1 ((c : ℂ) • 1)).re = c := by + obtain ⟨ψ, hψ, he⟩ := φ.2 + have h1 : φ.1 1 = 1 := (he 1).symm.trans hψ + simp [h1] + +theorem coefficientWeak_Bell_sequence_limit + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) + (T : ℕ → (jointAlgebra A B).toStarSubalgebra) + (hT : ∀ n, T n ∈ jointNormalizedBellOperators A B) + (hlim : ∀ φ : NormalStateSpace (jointAlgebra A B), + Tendsto (fun n => (φ.1 (T n)).re) atTop (𝓝 (Real.sqrt 2))) : + Tendsto (β := CoefficientWeakAlgebra (jointAlgebra A B)) (fun n => T n) atTop + (nhds (X := CoefficientWeakAlgebra (jointAlgebra A B)) + (((Real.sqrt 2 : ℝ) : ℂ) • (1 : (jointAlgebra A B).toStarSubalgebra))) := by + let M := jointAlgebra A B + let L : M.toStarSubalgebra := ((Real.sqrt 2 : ℝ) : ℂ) • 1 + have hL : IsSelfAdjoint L := by + change star (((Real.sqrt 2 : ℝ) : ℂ) • (1 : M.toStarSubalgebra)) = _ + simp only [star_smul, star_one, Complex.star_def, Complex.conj_ofReal] + rfl + have hroot : Real.sqrt 2 ≤ 2 := by + nlinarith [Real.sq_sqrt (show (0 : ℝ) ≤ 2 by norm_num), Real.sqrt_nonneg 2] + have hbL : ‖L‖ ≤ 2 := by + have hOne : ‖(1 : M.toStarSubalgebra)‖ ≤ 1 := by + change ‖ContinuousLinearMap.id ℂ H‖ ≤ 1 + exact ContinuousLinearMap.norm_id_le + calc + ‖L‖ = Real.sqrt 2 * ‖(1 : M.toStarSubalgebra)‖ := by + dsimp only [L] + rw [norm_smul, Complex.norm_of_nonneg (Real.sqrt_nonneg 2)] + _ ≤ Real.sqrt 2 * 1 := + mul_le_mul_of_nonneg_left hOne (Real.sqrt_nonneg 2) + _ ≤ 2 := by simpa only [mul_one] using hroot + apply selfAdjoint_coefficientWeak_limit_of_normalState_real_limits M T L + (fun n => isSelfAdjoint_of_mem_jointNormalizedBellOperators A B hcomm (hT n)) hL + 2 (fun n => norm_le_two_of_mem_jointNormalizedBellOperators A B (hT n)) hbL + intro φ + simpa only [L, state_scalar_one_real M ⟨φ.1, φ.2.1⟩] using hlim φ + +theorem all_normal_maximal_iff_coefficientWeak_Bell_sequence + [SeparableSpace H] [Nontrivial H] + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) : + (∀ φ : NormalStateSpace (jointAlgebra A B), + jointSignedBellCorrelation A B φ.1 = Real.sqrt 2) ↔ + ∃ T : ℕ → (jointAlgebra A B).toStarSubalgebra, + (∀ n, T n ∈ jointNormalizedBellOperators A B) ∧ + Tendsto (β := CoefficientWeakAlgebra (jointAlgebra A B)) (fun n => T n) atTop + (nhds (X := CoefficientWeakAlgebra (jointAlgebra A B)) + (((Real.sqrt 2 : ℝ) : ℂ) • (1 : (jointAlgebra A B).toStarSubalgebra))) := by + rw [all_normal_maximal_iff_universal_normal_Bell_sequence A B hcomm] + constructor + · rintro ⟨T, hT, hlim⟩ + exact ⟨T, hT, coefficientWeak_Bell_sequence_limit A B hcomm T hT hlim⟩ + · rintro ⟨T, hT, hlim⟩ + refine ⟨T, hT, ?_⟩ + intro φ + have hc := continuous_coefficientWeak_of_mem (jointAlgebra A B) φ.1 + (normalState_mem_coefficientPredual _ φ) + have he : Tendsto (fun n => (φ.1 (T n)).re) atTop + (𝓝 (φ.1 (((Real.sqrt 2 : ℝ) : ℂ) • + (1 : (jointAlgebra A B).toStarSubalgebra))).re) := + Complex.continuous_re.continuousAt.tendsto.comp + (hc.continuousAt.tendsto.comp hlim) + simpa only [state_scalar_one_real _ ⟨φ.1, φ.2.1⟩] using he + +/-- Actual WeakDual convergence through the proved canonical dual identification. -/ +theorem exists_weakStar_Bell_sequence_of_all_normal_maximal + [SeparableSpace H] [Nontrivial H] + (A B : VonNeumannAlgebra H) (hcomm : Commuting A B) + (hmax : ∀ φ : NormalStateSpace (jointAlgebra A B), + jointSignedBellCorrelation A B φ.1 = Real.sqrt 2) : + ∃ T : ℕ → (jointAlgebra A B).toStarSubalgebra, + (∀ n, T n ∈ jointNormalizedBellOperators A B) ∧ + Tendsto (fun n => coefficientWeakDualHomeomorph (jointAlgebra A B) (T n)) atTop + (𝓝 (coefficientWeakDualHomeomorph (jointAlgebra A B) + (((Real.sqrt 2 : ℝ) : ℂ) • + (1 : (jointAlgebra A B).toStarSubalgebra)))) := by + obtain ⟨T, hT, hlim⟩ := + (all_normal_maximal_iff_coefficientWeak_Bell_sequence A B hcomm).mp hmax + exact ⟨T, hT, (coefficientWeakDualHomeomorph (jointAlgebra A + B)).continuous.continuousAt.tendsto.comp hlim⟩ + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/VNAWeakOperatorCompactness.lean b/LeanPool/VacuumBellSeparation/Bell/VNAWeakOperatorCompactness.lean new file mode 100644 index 0000000000..50b9ec090f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/VNAWeakOperatorCompactness.lean @@ -0,0 +1,62 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.WeakOperatorUnitBall +public import Mathlib.Analysis.VonNeumannAlgebra.Basic +public import Mathlib.Topology.Algebra.Group.Basic + +/-! +# Actual von Neumann algebras are WOT closed with WOT-compact unit balls + +The algebra is its original double commutant. Separate multiplication is +continuous in the actual weak operator topology, so its commutant is closed. +No normal-functional continuity or GNS image theorem is assumed or concluded. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open ContinuousLinearMapWOT + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Literal membership in the original VNA under the WOT type copy. -/ +theorem vna_wot_eq_centralizer (M : VonNeumannAlgebra H) : + {T : H →WOT[ℂ] H | T.toCLM ∈ M} = + Set.centralizer (ofCLM '' (M.commutant : Set (H →L[ℂ] H))) := by + ext T + have hmem : T.toCLM ∈ M ↔ + ∀ Y ∈ M.commutant, Y * T.toCLM = T.toCLM * Y := by + simpa only [VonNeumannAlgebra.commutant_commutant] using + (VonNeumannAlgebra.mem_commutant_iff (S := M.commutant) (z := T.toCLM)) + change T.toCLM ∈ M ↔ ∀ X ∈ ofCLM '' (M.commutant : Set (H →L[ℂ] H)), + X * T = T * X + rw [hmem] + constructor + · intro h X hX + obtain ⟨Y, hY, rfl⟩ := hX + apply ContinuousLinearMapWOT.toCLM_injective + exact h Y hY + · intro h Y hY + exact congrArg ContinuousLinearMapWOT.toCLM (h (ofCLM Y) ⟨Y, hY, rfl⟩) + +theorem isClosed_vna_wot (M : VonNeumannAlgebra H) : + IsClosed {T : H →WOT[ℂ] H | T.toCLM ∈ M} := by + rw [vna_wot_eq_centralizer] + exact Set.isClosed_centralizer _ + +/-- This is the original VNA's full unit ball, not a finite-rank compression +or the ball of a generated replacement algebra. -/ +theorem isCompact_vna_unitBall_wot (M : VonNeumannAlgebra H) : + IsCompact {T : H →WOT[ℂ] H | T.toCLM ∈ M ∧ ‖T.toCLM‖ ≤ 1} := by + have h := (isCompact_operator_unitBall_wot (H := H)).inter_left (isClosed_vna_wot M) + exact h + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/VectorFunctionalNormal.lean b/LeanPool/VacuumBellSeparation/Bell/VectorFunctionalNormal.lean new file mode 100644 index 0000000000..70e6387524 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/VectorFunctionalNormal.lean @@ -0,0 +1,98 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DirectedStrongLimit +public import LeanPool.VacuumBellSeparation.Bell.StrongClosure +public import LeanPool.VacuumBellSeparation.Bell.BipartiteNormalStateDefs + +/-! +# Normality of actual vector functionals on concrete von Neumann algebras + +Every nonempty directed positive set with a least upper bound is used as +its own index set. The bounded strong limit lies in the original VNA by +the double-commutant closure theorem, and equals that least upper bound. +The resulting normality is order-normality for arbitrary directed sets. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open ContinuousLinearMap Filter +open scoped Topology InnerProductSpace ComplexOrder + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- An internal positive directed supremum is the genuine strong limit. -/ +theorem strong_tendsto_of_isLUB_positive (M : VonNeumannAlgebra H) + {s : Set M.toStarSubalgebra} (hs : s.Nonempty) (hdir : DirectedOn (· ≤ ·) s) + (hpos : ∀ T ∈ s, 0 ≤ T) {X : M.toStarSubalgebra} (hX : IsLUB s X) + (x : H) : + Tendsto (fun i : s => (i.1 : H →L[ℂ] H) x) atTop + (𝓝 ((X : H →L[ℂ] H) x)) := by + let : Nonempty s := hs.to_subtype + let : IsDirectedOrder s := hdir.isDirectedOrder + let A : s → H →L[ℂ] H := fun i => i.1 + have hmono : Monotone A := fun _ _ h => h + have hApos (i : s) : 0 ≤ A i := hpos i.1 i.2 + have hAbound (i : s) : A i ≤ (X : H →L[ℂ] H) := hX.1 i.2 + obtain ⟨B, hB, _, hsup⟩ := Gaussian.exists_strongLimit_of_monotone_nonneg_bounded + A hmono hApos (X : H →L[ℂ] H) hAbound + have hBM : B ∈ M := mem_vonNeumannAlgebra_of_strong_tendsto M + (Filter.Eventually.of_forall fun i : s => i.1.2) hB + have heq : B = (X : H →L[ℂ] H) := by + apply le_antisymm + · exact hsup.2 (by rintro _ ⟨i, rfl⟩; exact hAbound i) + · have hXB : X ≤ (⟨B, hBM⟩ : M.toStarSubalgebra) := hX.2 (by + intro Y hY + exact hsup.1 ⟨⟨Y, hY⟩, rfl⟩) + exact hXB + simpa only [heq] using hB x + +/-- Vector functionals preserve all positive directed suprema, not only sequential limits. -/ +theorem vectorFunctional_isNormal (M : VonNeumannAlgebra H) (Ω : H) : + IsNormalFunctional M (vectorFunctional M Ω) := by + intro s hs hdir hpos X hX + let : Nonempty s := hs.to_subtype + let : IsDirectedOrder s := hdir.isDirectedOrder + have ht : Tendsto (fun i : s => (vectorFunctional M Ω i.1).re) atTop + (𝓝 ((vectorFunctional M Ω X).re)) := + Complex.continuous_re.continuousAt.tendsto.comp + (tendsto_const_nhds.inner (strong_tendsto_of_isLUB_positive M hs hdir hpos hX Ω)) + constructor + · rintro _ ⟨Y, hY, rfl⟩ + have h := (ContinuousLinearMap.le_def.mp + (show (Y : H →L[ℂ] H) ≤ (X : H →L[ℂ] H) from hX.1 hY)).re_inner_nonneg_right Ω + simpa [vectorFunctional, inner_sub_right, sub_nonneg] using h + · intro r hr + apply le_of_tendsto ht + exact Filter.Eventually.of_forall fun i : s => hr ⟨i.1, i.2, rfl⟩ + +/-- The actual positive complex-linear map underlying the vector functional. -/ +def vectorPositiveLinearMap (M : VonNeumannAlgebra H) (Ω : H) : + M.toStarSubalgebra →ₚ[ℂ] ℂ where + toFun := vectorFunctional M Ω + map_add' X Y := inner_add_right Ω ((X : H →L[ℂ] H) Ω) ((Y : H →L[ℂ] H) Ω) + map_smul' c X := by simp [vectorFunctional] + monotone' := by + intro X Y hXY + apply sub_nonneg.mp + have h := (ContinuousLinearMap.le_def.mp + (show (X : H →L[ℂ] H) ≤ (Y : H →L[ℂ] H) from hXY)).inner_nonneg_right Ω + simpa only [vectorFunctional, sub_apply, inner_sub_right] using h + +/-- A unit vector induces a normal state on the actual original joint/local algebra. -/ +theorem vectorFunctional_isNormalState (M : VonNeumannAlgebra H) (Ω : H) + (hΩ : ‖Ω‖ = 1) : IsNormalStateFunctional M (vectorFunctional M Ω) := by + refine ⟨⟨vectorPositiveLinearMap M Ω, ?_, fun _ => rfl⟩, + vectorFunctional_isNormal M Ω⟩ + change inner ℂ Ω ((1 : H →L[ℂ] H) Ω) = 1 + simp [inner_self_eq_norm_sq_to_K, hΩ] + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/VectorStateApproximation.lean b/LeanPool/VacuumBellSeparation/Bell/VectorStateApproximation.lean new file mode 100644 index 0000000000..fa5c99d65c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/VectorStateApproximation.lean @@ -0,0 +1,72 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.OperationalReehSchliederDefs + +/-! Uniform bounded-operator estimates for actual unit vectors in the original Hilbert space. -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Reeh–Schlieder unit vector. -/ +def reehSchliederUnitVector (x : H) : H := (‖x‖ : ℂ)⁻¹ • x + +omit [CompleteSpace H] in +theorem reehSchliederUnitVector_norm {x : H} (hx : x ≠ 0) : + ‖reehSchliederUnitVector x‖ = 1 := by + rw [reehSchliederUnitVector, norm_smul, norm_inv, Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (norm_nonneg x), inv_mul_cancel₀ (norm_ne_zero_iff.mpr hx)] + +omit [CompleteSpace H] in +theorem norm_smul_reehSchliederUnitVector {x : H} (hx : x ≠ 0) : + (‖x‖ : ℂ) • reehSchliederUnitVector x = x := by + rw [reehSchliederUnitVector, smul_smul, + mul_inv_cancel₀ (Complex.ofReal_ne_zero.mpr (norm_ne_zero_iff.mpr hx)), one_smul] + +omit [CompleteSpace H] in +theorem unitVector_distance_le {x χ : H} (hx : x ≠ 0) (hχ : ‖χ‖ = 1) : + ‖χ - reehSchliederUnitVector x‖ ≤ 2 * ‖χ - x‖ := by + have hunit := reehSchliederUnitVector_norm hx + have he : reehSchliederUnitVector x - x = + ((1 - ‖x‖ : ℝ) : ℂ) • reehSchliederUnitVector x := by + rw [Complex.ofReal_sub, Complex.ofReal_one, sub_smul, one_smul, + norm_smul_reehSchliederUnitVector hx] + have hd : ‖reehSchliederUnitVector x - x‖ = |1 - ‖x‖| := by + rw [he, norm_smul, Complex.norm_real, Real.norm_eq_abs, hunit, mul_one] + have hr : |1 - ‖x‖| ≤ ‖χ - x‖ := by + simpa only [hχ] using abs_norm_sub_norm_le χ x + calc + ‖χ - reehSchliederUnitVector x‖ ≤ ‖χ - x‖ + ‖x - reehSchliederUnitVector x‖ := + norm_sub_le_norm_sub_add_norm_sub χ x (reehSchliederUnitVector x) + _ = ‖χ - x‖ + |1 - ‖x‖| := by rw [norm_sub_rev x, hd] + _ ≤ 2 * ‖χ - x‖ := by linarith + +omit [CompleteSpace H] in +theorem vectorState_uniform_difference_bound (x y : H) (R : H →L[ℂ] H) : + ‖⟪x, R x⟫_ℂ - ⟪y, R y⟫_ℂ‖ ≤ (‖x‖ + ‖y‖) * ‖x - y‖ * ‖R‖ := by + have he : ⟪x, R x⟫_ℂ - ⟪y, R y⟫_ℂ = + ⟪x - y, R x⟫_ℂ + ⟪y, R (x - y)⟫_ℂ := by + rw [map_sub, inner_sub_left, inner_sub_right] + ring + rw [he] + calc + _ ≤ ‖⟪x - y, R x⟫_ℂ‖ + ‖⟪y, R (x - y)⟫_ℂ‖ := norm_add_le _ _ + _ ≤ ‖x - y‖ * ‖R x‖ + ‖y‖ * ‖R (x - y)‖ := + add_le_add (norm_inner_le_norm _ _) (norm_inner_le_norm _ _) + _ ≤ ‖x - y‖ * (‖R‖ * ‖x‖) + ‖y‖ * (‖R‖ * ‖x - y‖) := + add_le_add (mul_le_mul_of_nonneg_left (R.le_opNorm x) (norm_nonneg _)) + (mul_le_mul_of_nonneg_left (R.le_opNorm (x - y)) (norm_nonneg _)) + _ = (‖x‖ + ‖y‖) * ‖x - y‖ * ‖R‖ := by ring + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/WOTClosedBallVNA.lean b/LeanPool/VacuumBellSeparation/Bell/WOTClosedBallVNA.lean new file mode 100644 index 0000000000..5480a34351 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/WOTClosedBallVNA.lean @@ -0,0 +1,96 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.KaplanskyContractions +public import Mathlib.Analysis.InnerProductSpace.WeakOperatorTopology +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Range +public import Mathlib.LinearAlgebra.Complex.Module + +/-! +# The actual double commutant from a WOT-closed unit ball + +Kaplansky approximation supplies bounded self-adjoint nets in the original +star-subalgebra. Closedness of its literal WOT unit ball captures their +limits. Rescaling and real/imaginary decomposition recover every element +of the double commutant. No normal representation theorem is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Filter +open scoped Topology InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem mem_starSubalgebra_of_wot_closed_unitBall + (S : StarSubalgebra ℂ (H →L[ℂ] H)) + (hfc : ∀ (f : ℝ → ℝ) (A : H →L[ℂ] H), A ∈ S → cfc f A ∈ S) + (hu : IsClosed {T : H →WOT[ℂ] H | T.toCLM ∈ S ∧ ‖T.toCLM‖ ≤ 1}) + {A : H →L[ℂ] H} (hA : A ∈ generatedVNA (S : Set (H →L[ℂ] H))) : A ∈ S := by + classical + have hsa (T : H →L[ℂ] H) + (hT : T ∈ generatedVNA (S : Set (H →L[ℂ] H))) + (ht : IsSelfAdjoint T) : T ∈ S := by + let c : ℝ := ‖T‖ + 1 + have hc : 0 < c := by dsimp only [c]; positivity + let B : H →L[ℂ] H := c⁻¹ • T + have hB : B ∈ generatedVNA (S : Set (H →L[ℂ] H)) := + starSubalgebra_real_smul_mem + (generatedVNA (S : Set (H →L[ℂ] H))).toStarSubalgebra hT _ + have hBs : IsSelfAdjoint B := (IsSelfAdjoint.all (c⁻¹)).smul ht + have hBn : ‖B‖ ≤ 1 := by + change ‖c⁻¹ • T‖ ≤ 1 + rw [norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr hc)] + exact (inv_mul_le_one₀ hc).mpr (by dsimp only [c]; linarith) + obtain ⟨As, hAs, hlim⟩ := exists_saContraction_strong_approximation S hfc hB hBs hBn + have hw : Tendsto (fun i => ContinuousLinearMapWOT.ofCLM (As i)) atTop + (𝓝 (ContinuousLinearMapWOT.ofCLM B)) := by + apply ContinuousLinearMapWOT.tendsto_iff_forall_inner_apply_tendsto.mpr + intro x y + exact tendsto_const_nhds.inner (hlim x) + have hbmem : B ∈ S := + (hu.mem_of_tendsto hw (Eventually.of_forall fun i => ⟨(hAs i).1, (hAs i).2.2⟩)).1 + have hm := starSubalgebra_real_smul_mem S hbmem c + simpa only [B, smul_smul, mul_inv_cancel₀ hc.ne', one_smul] using hm + let N := (generatedVNA (S : Set (H →L[ℂ] H))).toStarSubalgebra + have hr : (realPart A : H →L[ℂ] H) ∈ N := by + rw [realPart_apply_coe] + exact starSubalgebra_real_smul_mem N (N.add_mem hA (N.star_mem' hA)) _ + have hi : (imaginaryPart A : H →L[ℂ] H) ∈ N := by + rw [imaginaryPart_apply_coe] + exact N.smul_mem + (starSubalgebra_real_smul_mem N (N.sub_mem hA (N.star_mem' hA)) _) _ + have hrS := hsa _ hr (realPart A).2 + have hiS := hsa _ hi (imaginaryPart A).2 + rw [← realPart_add_I_smul_imaginaryPart A] + exact S.add_mem hrS (S.smul_mem hiS _) + +/-- Norm closedness supplies CFC stability; the resulting VNA has exactly +the original carrier, not a larger replacement carrier. -/ +theorem exists_vna_eq_starSubalgebra_of_wot_closed_unitBall + (S : StarSubalgebra ℂ (H →L[ℂ] H)) (hS : IsClosed (S : Set (H →L[ℂ] H))) + (hu : IsClosed {T : H →WOT[ℂ] H | T.toCLM ∈ S ∧ ‖T.toCLM‖ ≤ 1}) : + ∃ N : VonNeumannAlgebra H, N.toStarSubalgebra = S := by + let : IsClosed (S : Set (H →L[ℂ] H)) := hS + refine ⟨generatedVNA (S : Set (H →L[ℂ] H)), ?_⟩ + apply SetLike.ext + intro T + constructor + · intro hT + exact mem_starSubalgebra_of_wot_closed_unitBall S + (fun f A hA => cfc_mem (𝕜' := ℂ) f hA) hu hT + · intro hT + change T ∈ (commutantOf (S : Set (H →L[ℂ] H))).commutant + rw [VonNeumannAlgebra.mem_commutant_iff] + intro B hB + exact ((mem_commutantOf_starSubalgebra_iff S B).mp hB T hT).symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Bell/WeakCompactDualEvaluation.lean b/LeanPool/VacuumBellSeparation/Bell/WeakCompactDualEvaluation.lean new file mode 100644 index 0000000000..07c1088455 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/WeakCompactDualEvaluation.lean @@ -0,0 +1,142 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.Analysis.LocallyConvex.Separation +public import Mathlib.Analysis.LocallyConvex.WeakDual +public import Mathlib.Analysis.Normed.Module.RCLike.Extend +public import Mathlib.Analysis.Normed.Module.Convex +public import Mathlib.Topology.Algebra.Module.Spaces.WeakDual + +/-! +The dual of a concrete subspace of E* is recovered from E if the image of +the original closed unit ball is weak-star compact. Surjectivity is proved +by separation and the weak representation theorem, not assumed. No +reflexivity, norm-attainment, nonzero vector or normality premise is used. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open Metric +open scoped Topology + +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] + [NormedSpace ℝ E] [IsScalarTower ℝ ℂ E] + +/-- Real-part control on the complex unit ball controls the exact dual norm. +The real-part restriction is isometric, and testing x and -x controls its +absolute value. No functional is asserted to attain its norm. -/ +theorem dual_norm_le_of_re_le_unitBall (f : StrongDual ℂ E) (u : ℝ) + (hu : 0 ≤ u) (h : ∀ x : E, ‖x‖ ≤ 1 → (f x).re ≤ u) : ‖f‖ ≤ u := by + let fr : StrongDual ℝ E := (StrongDual.extendRCLikeₗᵢ (𝕜 := ℂ) (F := E)).symm f + have he (x : E) : fr x = (f x).re := rfl + have hn : ‖fr‖ = ‖f‖ := (StrongDual.extendRCLikeₗᵢ (𝕜 := ℂ) (F := E)).symm.norm_map f + rw [← hn] + apply ContinuousLinearMap.opNorm_le_of_unit_norm hu + intro x hx + rw [he, Real.norm_eq_abs] + apply abs_le.mpr + constructor + · have hm := h (-x) (by simpa only [norm_neg, hx] using (le_refl (1 : ℝ))) + simp only [map_neg, Complex.neg_re] at hm + linarith + · exact h x hx.le + +/-- Canonical subtype and dual structures, cached before dependent dual headers. -/ +instance dualEvaluationSubmoduleNormed (P : Submodule ℂ (StrongDual ℂ E)) : + NormedAddCommGroup P := Submodule.normedAddCommGroup P + +instance dualEvaluationSubmoduleSpace (P : Submodule ℂ (StrongDual ℂ E)) : + NormedSpace ℂ P := Submodule.normedSpace P + +instance dualEvaluationSecondDualNormed (P : Submodule ℂ (StrongDual ℂ E)) : + NormedAddCommGroup (StrongDual ℂ P) := ContinuousLinearMap.toNormedAddCommGroup + +instance dualEvaluationWeakAddGroup (P : Submodule ℂ (StrongDual ℂ E)) : + AddCommGroup (WeakDual ℂ P) := WeakDual.instAddCommGroup + +instance dualEvaluation_weakTower (P : Submodule ℂ (StrongDual ℂ E)) : + IsScalarTower ℝ ℂ (WeakDual ℂ P) := + inferInstanceAs (IsScalarTower ℝ ℂ (P →L[ℂ] ℂ)) + +/-- Compactness of the literal evaluation image gives every dual unit vector +an original unit-ball preimage. The only pairing hypothesis is its formula. -/ +theorem exists_unitBall_preimage_of_isCompact_evaluation + (P : Submodule ℂ (StrongDual ℂ E)) (J : E →ₗ[ℂ] StrongDual ℂ P) + (hJ : ∀ (x : E) (p : P), J x p = p.1 x) + (hc : IsCompact ((fun x : E => StrongDual.toWeakDual (J x)) '' + Metric.closedBall (0 : E) 1)) + (F : StrongDual ℂ P) (hF : ‖F‖ ≤ 1) : + ∃ x : E, ‖x‖ ≤ 1 ∧ J x = F := by + let : Module ℝ (WeakDual ℂ P) := Module.restrictScalars ℝ ℂ (WeakDual ℂ P) + let : IsScalarTower ℝ ℂ (WeakDual ℂ P) := IsScalarTower.restrictScalars _ _ _ + let : LocallyConvexSpace ℝ (WeakDual ℂ P) := + (topDualPairing ℂ P).weakBilin_withSeminorms.toLocallyConvexSpace + let W : E →ₗ[ℂ] WeakDual ℂ P := StrongDual.toWeakDual.toLinearMap.comp J + have hconv : Convex ℝ (W '' Metric.closedBall (0 : E) 1) := + (convex_closedBall (0 : E) 1).linear_image (W.restrictScalars ℝ) + have hc' : IsCompact (W '' Metric.closedBall (0 : E) 1) := hc + have hmem : StrongDual.toWeakDual F ∈ W '' Metric.closedBall (0 : E) 1 := by + by_contra hn + obtain ⟨ell, u, hs, ht⟩ := RCLike.geometric_hahn_banach_closed_point + (𝕜 := ℂ) (E := WeakDual ℂ P) hconv hc'.isClosed hn + obtain ⟨p, hp⟩ := LinearMap.dualEmbedding_surjective (topDualPairing ℂ P) ell + have he (z : WeakDual ℂ P) : ell z = z p := by + rw [← hp] + rfl + have hu : 0 ≤ u := by + have hz := hs (W 0) ⟨0, by simp, rfl⟩ + simpa only [map_zero, Complex.zero_re] using hz.le + have hpbound : ‖(p : StrongDual ℂ E)‖ ≤ u := by + apply dual_norm_le_of_re_le_unitBall p.1 u hu + intro x hx + have h := hs (W x) ⟨x, mem_closedBall_zero_iff.mpr hx, rfl⟩ + rw [he] at h + change (J x p).re < u at h + rw [hJ] at h + exact h.le + have hlarge : u < (F p).re := by + simpa only [he, StrongDual.toWeakDual_apply, RCLike.re_to_complex] using ht + have hsmall : (F p).re ≤ u := calc + _ ≤ ‖F p‖ := Complex.re_le_norm _ + _ ≤ ‖F‖ * ‖p‖ := F.le_opNorm p + _ ≤ 1 * ‖p‖ := mul_le_mul_of_nonneg_right hF (norm_nonneg _) + _ = ‖p‖ := one_mul _ + _ ≤ u := hpbound + exact (not_lt_of_ge hsmall) hlarge + obtain ⟨x, hx, hxe⟩ := hmem + refine ⟨x, mem_closedBall_zero_iff.mp hx, ?_⟩ + exact StrongDual.toWeakDual.injective hxe + +/-- Scaling the proved unit-ball preimage theorem gives actual surjectivity. +Zero functionals are handled directly, without a nontrivial-space premise. -/ +theorem surjective_of_isCompact_evaluation + (P : Submodule ℂ (StrongDual ℂ E)) (J : E →ₗ[ℂ] StrongDual ℂ P) + (hJ : ∀ (x : E) (p : P), J x p = p.1 x) + (hc : IsCompact ((fun x : E => StrongDual.toWeakDual (J x)) '' + Metric.closedBall (0 : E) 1)) : Function.Surjective J := by + intro F + by_cases hF : F = 0 + · refine ⟨0, ?_⟩ + simp only [map_zero, hF] + · let c : ℂ := (‖F‖ : ℂ) + have hc0 : c ≠ 0 := by + change (‖F‖ : ℂ) ≠ 0 + exact Complex.ofReal_ne_zero.mpr (norm_ne_zero_iff.mpr hF) + have hcn : ‖c‖ = ‖F‖ := by simp [c] + have hscaled : ‖c⁻¹ • F‖ ≤ 1 := by + rw [norm_smul, norm_inv, hcn, inv_mul_cancel₀ (norm_ne_zero_iff.mpr hF)] + obtain ⟨x, _, hx⟩ := exists_unitBall_preimage_of_isCompact_evaluation P J hJ hc + (c⁻¹ • F) hscaled + refine ⟨c • x, ?_⟩ + rw [map_smul, hx, smul_smul, mul_inv_cancel₀ hc0, one_smul] + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Bell/WeakOperatorUnitBall.lean b/LeanPool/VacuumBellSeparation/Bell/WeakOperatorUnitBall.lean new file mode 100644 index 0000000000..9b788dd111 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Bell/WeakOperatorUnitBall.lean @@ -0,0 +1,155 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.WeakOperatorTopology +public import Mathlib.Analysis.Normed.Operator.Bilinear +public import Mathlib.Topology.Compactness.Compact + +/-! +# The literal operator-norm unit ball is weak-operator compact + +The auxiliary coefficient set records exactly bounded sesquilinearity. +Tychonoff compactness and Riesz representation reconstruct actual bounded +operators on the full Hilbert space. No finite-dimensionality or predual +of an operator algebra is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Bipartite + +open scoped InnerProductSpace Topology +open ContinuousLinearMapWOT + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Coefficients are ordered as `inner (T x) y`, conjugate-linear in x. -/ +private def unitCoefficientSet (H : Type*) [NormedAddCommGroup H] + [InnerProductSpace ℂ H] : Set (H × H → ℂ) := + {c | (∀ x z y, c (x + z, y) = c (x, y) + c (z, y)) ∧ + (∀ (a : ℂ) x y, c (a • x, y) = star a * c (x, y)) ∧ + (∀ x y z, c (x, y + z) = c (x, y) + c (x, z)) ∧ + (∀ (a : ℂ) x y, c (x, a • y) = a * c (x, y)) ∧ + (∀ x y, ‖c (x, y)‖ ≤ ‖x‖ * ‖y‖)} + +omit [CompleteSpace H] in +private theorem isClosed_unitCoefficientSet : IsClosed (unitCoefficientSet H) := by + unfold unitCoefficientSet + simp only [Set.ofPred_and, Set.ofPred_forall] + refine (isClosed_iInter fun x => isClosed_iInter fun z => isClosed_iInter fun y => + isClosed_eq (by fun_prop) (by fun_prop)).inter ?_ + refine (isClosed_iInter fun a => isClosed_iInter fun x => isClosed_iInter fun y => + isClosed_eq (by fun_prop) (by fun_prop)).inter ?_ + refine (isClosed_iInter fun x => isClosed_iInter fun y => isClosed_iInter fun z => + isClosed_eq (by fun_prop) (by fun_prop)).inter ?_ + refine (isClosed_iInter fun a => isClosed_iInter fun x => isClosed_iInter fun y => + isClosed_eq (by fun_prop) (by fun_prop)).inter ?_ + exact isClosed_iInter fun x => isClosed_iInter fun y => + isClosed_le (by fun_prop) continuous_const + +omit [CompleteSpace H] in +private theorem isCompact_unitCoefficientSet : IsCompact (unitCoefficientSet H) := by + have hprod : IsCompact {c : H × H → ℂ | + ∀ p, c p ∈ Metric.closedBall (0 : ℂ) (‖p.1‖ * ‖p.2‖)} := + isCompact_pi_infinite fun p => isCompact_closedBall (0 : ℂ) (‖p.1‖ * ‖p.2‖) + apply hprod.of_isClosed_subset isClosed_unitCoefficientSet + intro c hc p + simpa only [Metric.mem_closedBall, dist_zero_right] using hc.2.2.2.2 p.1 p.2 + +private def coefficientSesq (c : unitCoefficientSet H) : H →ₗ⋆[ℂ] H →ₗ[ℂ] ℂ where + toFun x := + { toFun := fun y => c.1 (x, y) + map_add' := fun y z => c.2.2.2.1 x y z + map_smul' := fun a y => by + simpa only [smul_eq_mul, RingHom.id_apply] using c.2.2.2.2.1 a x y } + map_add' x z := by + ext y + exact c.2.1 x z y + map_smul' a x := by + ext y + exact c.2.2.1 a x y + +private def coefficientSesqContinuous (c : unitCoefficientSet H) : H →L⋆[ℂ] H →L[ℂ] ℂ := + (coefficientSesq c).mkContinuous₂ 1 (fun x y => by + change ‖c.1 (x, y)‖ ≤ 1 * ‖x‖ * ‖y‖ + simpa only [one_mul] using c.2.2.2.2.2 x y) + +private def coefficientOperator (c : unitCoefficientSet H) : H →L[ℂ] H := + InnerProductSpace.continuousLinearMapOfBilin (coefficientSesqContinuous c) + +private theorem coefficientOperator_inner (c : unitCoefficientSet H) (x y : H) : + inner ℂ (coefficientOperator c x) y = c.1 (x, y) := by + exact InnerProductSpace.continuousLinearMapOfBilin_apply _ x y + +private theorem coefficientOperator_norm_le (c : unitCoefficientSet H) : + ‖coefficientOperator c‖ ≤ 1 := by + have hb : ‖coefficientSesqContinuous c‖ ≤ 1 := + (coefficientSesq c).mkContinuous₂_norm_le zero_le_one _ + apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one + intro x + change ‖(InnerProductSpace.toDual ℂ H).symm (coefficientSesqContinuous c x)‖ ≤ 1 * ‖x‖ + rw [(InnerProductSpace.toDual ℂ H).symm.norm_map] + exact (coefficientSesqContinuous c).le_of_opNorm_le hb x + +private theorem continuous_coefficientOperator : + Continuous (fun c : unitCoefficientSet H => ofCLM (coefficientOperator c)) := by + apply ContinuousLinearMapWOT.continuous_iff.mpr + intro x y + have he : (fun c : unitCoefficientSet H => inner ℂ y (coefficientOperator c x)) = + (fun c : unitCoefficientSet H => star (c.1 (x, y))) := by + funext c + simpa only [coefficientOperator_inner, starRingEnd_apply] using + (inner_conj_symm (𝕜 := ℂ) y (coefficientOperator c x)).symm + change Continuous (fun c : unitCoefficientSet H => inner ℂ y (coefficientOperator c x)) + rw [he] + exact ((continuous_apply (x, y)).comp continuous_subtype_val).star + +omit [CompleteSpace H] in +private theorem operator_coefficients_mem (T : H →L[ℂ] H) (hT : ‖T‖ ≤ 1) : + (fun p : H × H => inner ℂ (T p.1) p.2) ∈ unitCoefficientSet H := by + refine ⟨?_, ?_, ?_, ?_, ?_⟩ + · intro x z y + simp only [map_add, inner_add_left] + · intro a x y + simp only [map_smul, inner_smul_left, starRingEnd_apply] + · intro x y z + exact inner_add_right _ _ _ + · intro a x y + exact inner_smul_right _ _ _ + · intro x y + exact (norm_inner_le_norm (T x) y).trans + (mul_le_mul_of_nonneg_right (by simpa only [one_mul] using T.le_of_opNorm_le hT x) + (norm_nonneg y)) + +/-- The actual operator-norm unit ball, viewed in mathlib's WOT type copy, +is compact even when the original Hilbert space is infinite dimensional. -/ +theorem isCompact_operator_unitBall_wot : + IsCompact {T : H →WOT[ℂ] H | ‖T.toCLM‖ ≤ 1} := by + let : CompactSpace (unitCoefficientSet H) := + isCompact_iff_compactSpace.mp isCompact_unitCoefficientSet + have hr : Set.range (fun c : unitCoefficientSet H => ofCLM (coefficientOperator c)) = + {T : H →WOT[ℂ] H | ‖T.toCLM‖ ≤ 1} := by + ext T + constructor + · rintro ⟨c, rfl⟩ + exact coefficientOperator_norm_le c + · intro hT + let c : unitCoefficientSet H := + ⟨fun p => inner ℂ (T.toCLM p.1) p.2, operator_coefficients_mem T.toCLM hT⟩ + refine ⟨c, ?_⟩ + apply ContinuousLinearMapWOT.toCLM_injective + apply ContinuousLinearMap.ext + intro x + apply ext_inner_right ℂ + intro y + exact coefficientOperator_inner c x y + rw [← hr] + exact isCompact_range continuous_coefficientOperator + +end VacuumBellSeparation.Bipartite diff --git a/LeanPool/VacuumBellSeparation/Constants/ParameterDefs.lean b/LeanPool/VacuumBellSeparation/Constants/ParameterDefs.lean new file mode 100644 index 0000000000..3d7356624a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Constants/ParameterDefs.lean @@ -0,0 +1,40 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Probability.Exponents + +/-! +# Statement seed extracted from Constants/Parameters + +Literal declarations are unchanged; theorem conclusions remain in the implementation module. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- `Λ₀ = 2¹⁵` of (7.10). -/ +def Lambda0 : ℝ := 2 ^ 15 + +/-- `θ = 1/(4Λ₀)` of (7.10). -/ +noncomputable def theta : ℝ := 1 / (4 * Lambda0) + +/-- `a = θ/2` of (7.10). -/ +noncomputable def aRev : ℝ := theta / 2 + +/-- `γ = 2(1 - θ)` of (7.10). -/ +noncomputable def gammaRev : ℝ := 2 * (1 - theta) + +/-- `r₋ = 1/(1 - a)` of (8.1). -/ +noncomputable def rMinus : ℝ := 1 / (1 - aRev) + +/-- `r₊ = 2²⁰` of (8.1) (the manuscript writes `r₊ = ⌈4/a⌉ = 2²⁰`; see `four_div_aRev`). -/ +def rPlus : ℝ := 2 ^ 20 + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Constants/Parameters.lean b/LeanPool/VacuumBellSeparation/Constants/Parameters.lean new file mode 100644 index 0000000000..77f76ddca1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Constants/Parameters.lean @@ -0,0 +1,124 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Constants.ParameterDefs +public import LeanPool.VacuumBellSeparation.Probability.Exponents +public import Mathlib.Analysis.SpecialFunctions.ExpDeriv +public import Mathlib.Analysis.SpecialFunctions.Pow.Real + +/-! +# Numerical parameters of Sections 7 and 8 + +The fixed parameters of the manuscript, equations `eq:reverse-exponents` (7.10), +`eq:orders` (8.1) and `eq:completion-exponents` (8.15), together with the elementary +arithmetic facts asserted about them, and two scalar bounds used in the proof of +Theorem 7.2 and in (8.13). + +These are statements about explicit real numbers only; they involve no field-theoretic +content. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem theta_eq : theta = 1 / 2 ^ 17 := by + norm_num [theta, Lambda0] + +theorem aRev_eq : aRev = 1 / 2 ^ 18 := by + norm_num [aRev, theta, Lambda0] + +theorem gammaRev_eq : gammaRev = 2 * (1 - 1 / 2 ^ 17) := by + norm_num [gammaRev, theta, Lambda0] + +/-- `0 < θ ≤ 1/64`, as stated after (7.10). -/ +theorem theta_pos_le : 0 < theta ∧ theta ≤ 1 / 64 := by + constructor <;> norm_num [theta, Lambda0] + +/-- `0 < a ≤ 1/8`, as stated after (7.10). -/ +theorem aRev_pos_le : 0 < aRev ∧ aRev ≤ 1 / 8 := by + constructor <;> norm_num [aRev, theta, Lambda0] + +/-- `γ > 0`, as stated after (7.10). -/ +theorem gammaRev_pos : 0 < gammaRev := by + norm_num [gammaRev, theta, Lambda0] + +/-- `4/a = 2²⁰` exactly, so `r₊ = ⌈4/a⌉ = 4/a`. -/ +theorem four_div_aRev : 4 / aRev = rPlus := by + norm_num [aRev, theta, Lambda0, rPlus] + +/-- `a r₊ = 4`, as stated after (8.1). -/ +theorem aRev_mul_rPlus : aRev * rPlus = 4 := by + norm_num [aRev, theta, Lambda0, rPlus] + +theorem rMinus_eq : rMinus = 2 ^ 18 / (2 ^ 18 - 1) := by + norm_num [rMinus, aRev, theta, Lambda0] + +/-- `1 < r₋ < 2`, as stated after (8.1). -/ +theorem one_lt_rMinus_lt_two : 1 < rMinus ∧ rMinus < 2 := by + constructor <;> norm_num [rMinus, aRev, theta, Lambda0] + +/-- `r₊ ≥ 32`, as stated after (8.1); in particular `r₊ > 2`. -/ +theorem rPlus_ge : 32 ≤ rPlus ∧ 2 < rPlus := by + constructor <;> norm_num [rPlus] + +/-- The exponent `a` of (3.2) at the order `r₋` is the reverse exponent `a` of (7.10). -/ +theorem expA_rMinus : expA rMinus = aRev := by + norm_num [expA, rMinus, aRev, theta, Lambda0] + +/-- `b = 1 - 1/r₊ = 1 - 2⁻²⁰`, (8.1). -/ +theorem expB_rPlus : expB rPlus = 1 - 1 / 2 ^ 20 := by + norm_num [expB, rPlus] + +/-- `η = 1 - 1/(4b²)`, (8.15). -/ +theorem expEta_eq : expEta rPlus rMinus = 1 - 1 / (4 * expB rPlus ^ 2) := by + norm_num [expEta, expA, expB, rPlus, rMinus, aRev, theta, Lambda0] + +/-- `η > 0` for the parameters of Section 8, as stated after (8.1). -/ +theorem expEta_pos : 0 < expEta rPlus rMinus := by + norm_num [expEta, expA, expB, rPlus, rMinus, aRev, theta, Lambda0] + +/-- `ν₋ = 2¹⁸ - 1`, (8.15). -/ +theorem nuMinus_eq : nuMinus rMinus = 2 ^ 18 - 1 := by + norm_num [nuMinus, expA, rMinus, aRev, theta, Lambda0] + +/-- `ν₊ = (1 + b)/(4b²)`, (8.15). -/ +theorem nuPlus_eq : nuPlus rPlus rMinus = (1 + expB rPlus) / (4 * expB rPlus ^ 2) := by + norm_num [nuPlus, expA, expB, rPlus, rMinus, aRev, theta, Lambda0] + +/-- `sup_{ξ ≥ 0} (1 + ξ)² e^{-ξ/8} ≤ 256`, used for (7.14). -/ +theorem one_add_sq_mul_exp_neg_le {ξ : ℝ} (hξ : 0 ≤ ξ) : + (1 + ξ) ^ 2 * Real.exp (-(ξ / 8)) ≤ 256 := by + have h1 : ξ / 16 + 1 ≤ Real.exp (ξ / 16) := Real.add_one_le_exp _ + have h2 : 1 + ξ ≤ 16 * Real.exp (ξ / 16) := by linarith + have hpos : 0 < Real.exp (ξ / 16) := Real.exp_pos _ + have h3 : Real.exp (ξ / 8) = Real.exp (ξ / 16) * Real.exp (ξ / 16) := by + rw [← Real.exp_add] + congr 1 + ring + have h4 : (1 + ξ) ^ 2 ≤ 256 * Real.exp (ξ / 8) := by + rw [h3] + nlinarith + have h5 : Real.exp (-(ξ / 8)) * Real.exp (ξ / 8) = 1 := by + rw [← Real.exp_add] + simp + have h6 : 0 < Real.exp (-(ξ / 8)) := Real.exp_pos _ + calc (1 + ξ) ^ 2 * Real.exp (-(ξ / 8)) + ≤ 256 * Real.exp (ξ / 8) * Real.exp (-(ξ / 8)) := + mul_le_mul_of_nonneg_right h4 h6.le + _ = 256 := by + rw [mul_assoc, mul_comm (Real.exp (ξ / 8)), h5, mul_one] + +/-- `e^x - 1 ≤ 2x` for `0 ≤ x ≤ 1`, used for (8.13). -/ +theorem exp_sub_one_le_two_mul {x : ℝ} (h0 : 0 ≤ x) (h1 : x ≤ 1) : + Real.exp x - 1 ≤ 2 * x := by + have habs : |x| ≤ 1 := abs_le.mpr ⟨by linarith, h1⟩ + have h := (abs_le.mp (Real.abs_exp_sub_one_sub_id_le habs)).2 + nlinarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Constants/Series.lean b/LeanPool/VacuumBellSeparation/Constants/Series.lean new file mode 100644 index 0000000000..c85c2b9ef5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Constants/Series.lean @@ -0,0 +1,55 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.SpecificLimits.Basic +public import Mathlib.Topology.Algebra.InfiniteSum.Order +import Mathlib.Tactic.Positivity +public import Mathlib.Analysis.SpecificLimits.Normed + +/-! +# The series `∑ (n+1)³ 2⁻ⁿ = 52` + +The numerical identity used in the proof of Theorem 7.2 of the manuscript (the display +before `eq:J0`, (7.14)). +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Partial sums: `∑_{n norm_num + | succ k ih => + rw [Finset.sum_range_succ, ih, pow_succ] + push_cast + ring + +/-- `∑_{n ≥ 0} (n+1)³ 2⁻ⁿ = 52`. -/ +theorem hasSum_cube_mul_half_pow : + HasSum (fun n : ℕ => ((n : ℝ) + 1) ^ 3 * (1 / 2 : ℝ) ^ n) 52 := by + have hnonneg : ∀ n : ℕ, 0 ≤ ((n : ℝ) + 1) ^ 3 * (1 / 2 : ℝ) ^ n := fun n => by positivity + rw [hasSum_iff_tendsto_nat_of_nonneg hnonneg] + have hr : |(1 / 2 : ℝ)| < 1 := by + rw [abs_lt] + constructor <;> norm_num + have h3 := tendsto_pow_const_mul_const_pow_of_abs_lt_one 3 hr + have h2 := tendsto_pow_const_mul_const_pow_of_abs_lt_one 2 hr + have h1 := tendsto_pow_const_mul_const_pow_of_abs_lt_one 1 hr + have h0 := tendsto_pow_const_mul_const_pow_of_abs_lt_one 0 hr + have hlim := (tendsto_const_nhds (x := (52 : ℝ)) (f := Filter.atTop (α := ℕ))).sub + ((((h3.const_mul 2).add (h2.const_mul 12)).add (h1.const_mul 36)).add (h0.const_mul 52)) + simp only [mul_zero, add_zero, sub_zero] at hlim + refine hlim.congr (fun N => ?_) + rw [sum_range_cube_mul_half_pow] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Fock/ExponentialTotality.lean b/LeanPool/VacuumBellSeparation/Fock/ExponentialTotality.lean new file mode 100644 index 0000000000..69200183cd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/ExponentialTotality.lean @@ -0,0 +1,94 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Fock.SymmetricTensorTotality +public import Mathlib.Analysis.Analytic.OfScalars +public import Mathlib.Analysis.Analytic.Uniqueness + +/-! +# Totality of the literal symmetric Fock exponential vectors + +Pairing with e(zv) gives an actual everywhere-convergent scalar power +series. Analytic uniqueness recovers each tensor-degree diagonal pairing. +The proved diagonal totality in each actual symmetric sector then +recovers the whole Hilbert direct-sum vector. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock +open Filter +open scoped Topology InnerProductSpace + +variable (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] + +theorem exponentialComponent_smul (c : ℂ) (v : H) (n : ℕ) : + exponentialComponent H (c • v) n = c ^ n • exponentialComponent H v n := by + rw [exponentialComponent, pureSymmetricTensor_smul, smul_comm] + rfl + +/-- Exponential analysis series defined as `FormalMultilinearSeries.ofScalars ℂ (fun n => inner ℂ +(x n) (exponentialComponent H v n))`. -/ +def exponentialAnalysisSeries (x : SymmetricFockSpace H) (v : H) : + FormalMultilinearSeries ℂ ℂ ℂ := + FormalMultilinearSeries.ofScalars ℂ + (fun n => inner ℂ (x n) (exponentialComponent H v n)) + +theorem hasSum_exponentialAnalysis (x : SymmetricFockSpace H) (v : H) (z : ℂ) : + HasSum (fun n => z ^ n • (exponentialAnalysisSeries H x v).coeff n) + (inner ℂ x (exponentialVector H (z • v))) := by + have h := lp.hasSum_inner (𝕜 := ℂ) x (exponentialVector H (z • v)) + convert h using 1 + funext n + change z ^ n • (exponentialAnalysisSeries H x v).coeff n = + inner ℂ (x n) (exponentialComponent H (z • v) n) + rw [exponentialComponent_smul, inner_smul_right] + simp only [exponentialAnalysisSeries, FormalMultilinearSeries.coeff_ofScalars, smul_eq_mul] + +theorem hasFPowerSeriesAt_exponentialAnalysis (x : SymmetricFockSpace H) (v : H) : + HasFPowerSeriesAt (fun z : ℂ => inner ℂ x (exponentialVector H (z • v))) + (exponentialAnalysisSeries H x v) 0 := by + apply hasFPowerSeriesAt_iff.mpr + exact Eventually.of_forall fun z => by + simpa only [zero_add] using hasSum_exponentialAnalysis H x v z + +theorem eq_zero_of_inner_exponentialVector_zero (x : SymmetricFockSpace H) + (hx : ∀ v, inner ℂ x (exponentialVector H v) = 0) : x = 0 := by + have hcoeff (v : H) (n : ℕ) : inner ℂ (x n) (exponentialComponent H v n) = 0 := by + have hf : (fun z : ℂ => inner ℂ x (exponentialVector H (z • v))) = + (0 : ℂ → ℂ) := funext fun z => hx (z • v) + have hp : HasFPowerSeriesAt (0 : ℂ → ℂ) (exponentialAnalysisSeries H x v) 0 := by + rw [← hf] + exact hasFPowerSeriesAt_exponentialAnalysis H x v + have hn := congrFun hp.eq_zero n + exact (FormalMultilinearSeries.ofScalars_eq_zero ℂ n).mp hn + apply lp.ext + funext n + apply eq_zero_of_inner_pureSymmetricTensor_zero H n (x n) + intro v + have hn := hcoeff v n + rw [exponentialComponent, inner_smul_right] at hn + have hfac : (0 : ℝ) < (n.factorial : ℝ) := by exact_mod_cast Nat.factorial_pos n + have hden : (Real.sqrt (n.factorial : ℝ) : ℂ) ≠ 0 := + Complex.ofReal_ne_zero.mpr (ne_of_gt (Real.sqrt_pos.mpr hfac)) + exact (mul_eq_zero.mp hn).resolve_left (inv_ne_zero hden) + +theorem exponentialVector_dense_span : + (Submodule.span ℂ (Set.range (exponentialVector H))).topologicalClosure = ⊤ := by + let K := Submodule.span ℂ (Set.range (exponentialVector H)) + have horth : Kᗮ = ⊥ := by + apply (Submodule.eq_bot_iff _).mpr + intro x hx + apply eq_zero_of_inner_exponentialVector_zero H x + intro v + exact K.inner_left_of_mem_orthogonal (Submodule.subset_span ⟨v, rfl⟩) hx + apply Submodule.orthogonal_eq_bot_iff.mp + rw [Submodule.orthogonal_closure, horth] + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/Fock/PhysicalTestTotality.lean b/LeanPool/VacuumBellSeparation/Fock/PhysicalTestTotality.lean new file mode 100644 index 0000000000..ec18ef2be4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/PhysicalTestTotality.lean @@ -0,0 +1,135 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Fock.StandardTensorTotality +public import LeanPool.VacuumBellSeparation.Fock.RealExponentialCoefficients +public import LeanPool.VacuumBellSeparation.Fock.WeylFockEquivalence +public import LeanPool.VacuumBellSeparation.FreeField.WedgeTimeSlice +public import LeanPool.VacuumBellSeparation.FreeField.WedgeSourceStandardness + +/-! +# Totality for the original compact spacetime test labels + +Real rescaling of compact tests recovers every tensor coefficient. The +actual wedge time-slice closure and the proved standard one-particle +wedge space then give totality in the literal full Fock space. No +abstract density or cyclicity assumption is added. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock +open MeasureTheory +open scoped InnerProductSpace + +/-- The real scalar action on a symmetric tensor sector, restricted from complex scalars. -/ +local instance physicalTotalitySectorRealModule (E : Type*) + [NormedAddCommGroup E] [InnerProductSpace ℂ E] (n : ℕ) : + Module ℝ (SymmetricTensorPower E n) := + Module.complexToReal (SymmetricTensorPower E n) + +/-- Completeness of each closed symmetric tensor sector. -/ +local instance physicalTotalitySectorComplete (E : Type*) + [NormedAddCommGroup E] [InnerProductSpace ℂ E] (n : ℕ) : + CompleteSpace (SymmetricTensorPower E n) := + (isClosed_symmetricTensorSubmodule E n).isComplete.completeSpace_coe + +/-- Completeness of the square-summable sum of the symmetric tensor sectors. -/ +local instance physicalTotalityFockComplete (E : Type*) + [NormedAddCommGroup E] [InnerProductSpace ℂ E] : + CompleteSpace (SymmetricFockSpace E) := lp.completeSpace + +/-- The complex norm on the square-summable sum of the symmetric tensor sectors. -/ +local instance physicalTotalityFockComplexNormedSpace (E : Type*) + [NormedAddCommGroup E] [InnerProductSpace ℂ E] : + NormedSpace ℂ (SymmetricFockSpace E) := lp.instNormedSpace + +variable {m : ℝ} (hm : 0 < m) + +/-- Literal real rescaling of an original compact spacetime test. -/ +def scaleTest (t : ℝ) (F : RealTestFunction) : RealTestFunction := + ⟨fun x => t • F.1 x, F.2.1.const_smul t, + F.2.2.smul_left (f := fun _ : Spacetime => t)⟩ + +theorem oneParticle_scaleTest (t : ℝ) (F : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (scaleTest t F) p = (t : ℂ) * oneParticle m F p := by + unfold oneParticle scaleTest + simp only [smul_eq_mul, Complex.ofReal_mul] + rw [← integral_const_mul] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by ring + +theorem oneParticleL2_scaleTest (t : ℝ) (F : RealTestFunction) : + oneParticleL2 hm (scaleTest t F) = t • oneParticleL2 hm F := by + apply Lp.ext + filter_upwards [coeFn_oneParticleL2 hm (scaleTest t F), + Lp.coeFn_smul t (oneParticleL2 hm F), coeFn_oneParticleL2 hm F] with p h₁ h₂ h₃ + rw [h₁, h₂, Pi.smul_apply, h₃, oneParticle_scaleTest, Complex.real_smul] + +theorem physicalFock_eq_zero_of_test_exponential_orthogonal + (x : SymmetricFockSpace (Lp ℂ 2 (oneParticleMeasure m))) + (hx : ∀ F : RealTestFunction, + inner ℂ x (exponentialVector _ (oneParticleL2 hm F)) = 0) : x = 0 := by + let H := Lp ℂ 2 (oneParticleMeasure m) + have hc (F : RealTestFunction) (n : ℕ) : + inner ℂ (x n) (pureSymmetricTensor H n (oneParticleL2 hm F)) = 0 := by + apply inner_pureTensor_zero_of_real_exponential_zero H x (oneParticleL2 hm F) + intro t + -- The coefficient theorem uses restriction of complex scalars on H; + -- establish the same Lp equality directly in its complex scalar action. + have hscale : oneParticleL2 hm (scaleTest t F) = (t : ℂ) • oneParticleL2 hm F := by + apply Lp.ext + filter_upwards [coeFn_oneParticleL2 hm (scaleTest t F), + Lp.coeFn_smul (t : ℂ) (oneParticleL2 hm F), coeFn_oneParticleL2 hm F] with p h₁ h₂ h₃ + rw [h₁, h₂, Pi.smul_apply, h₃, oneParticle_scaleTest, smul_eq_mul] + change inner ℂ x (exponentialVector H ((t : ℂ) • oneParticleL2 hm F)) = 0 + rw [← hscale] + exact hx (scaleTest t F) + apply lp.ext + funext n + apply symmetricTensor_eq_zero_of_standard_diagonal (leftWedgeSourceStandardSubspace hm 0) n + intro v + let M := symmetricTensorScalarForm H n (x n) + have hcont : Continuous (fun y : H => M (fun _ => y)) := + M.cont.comp (continuous_pi fun _ => continuous_id) + have hz : closure (wedgeSpacetimeTestVectors hm 0) ⊆ + {y : H | M (fun _ => y) = 0} := by + apply closure_minimal ?_ (isClosed_eq hcont continuous_const) + rintro _ ⟨F, hF, rfl⟩ + exact hc F n + apply hz + rw [closure_wedgeSpacetimeTestVectors] + exact v.property + +theorem physical_coherentVector_dense_span : + (Submodule.span ℂ (Set.range fun F : RealTestFunction => + coherentVector (Lp ℂ 2 (oneParticleMeasure m)) + (oneParticleL2 hm F))).topologicalClosure = ⊤ := by + let K := Submodule.span ℂ (Set.range fun F : RealTestFunction => + coherentVector (Lp ℂ 2 (oneParticleMeasure m)) (oneParticleL2 hm F)) + have horth : Kᗮ = ⊥ := by + apply (Submodule.eq_bot_iff _).mpr + intro x hx + apply physicalFock_eq_zero_of_test_exponential_orthogonal hm x + intro F + have h : inner ℂ x (coherentVector (Lp ℂ 2 (oneParticleMeasure m)) + (oneParticleL2 hm F)) = 0 := + K.inner_left_of_mem_orthogonal (Submodule.subset_span ⟨F, rfl⟩) hx + change inner ℂ x + (Complex.exp ((-(‖oneParticleL2 hm F‖ ^ 2 / 2) : ℝ) : ℂ) • + exponentialVector (Lp ℂ 2 (oneParticleMeasure m)) (oneParticleL2 hm F)) = 0 at h + rw [inner_smul_right] at h + exact (mul_eq_zero.mp h).resolve_left (Complex.exp_ne_zero _) + let : CompleteSpace K.topologicalClosure := + K.isClosed_topologicalClosure.isComplete.completeSpace_coe + apply Submodule.orthogonal_eq_bot_iff.mp + rw [Submodule.orthogonal_closure, horth] + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/Fock/RealExponentialCoefficients.lean b/LeanPool/VacuumBellSeparation/Fock/RealExponentialCoefficients.lean new file mode 100644 index 0000000000..5c3dd48c95 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/RealExponentialCoefficients.lean @@ -0,0 +1,69 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Fock.ExponentialTotality + +/-! +# Recovering tensor coefficients using only real multiples + +Real and imaginary parts of the actual convergent exponential pairing +series are genuine real power series. Their uniqueness recovers every +complex coefficient, using only vanishing on the real line. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock +open Filter +open scoped Topology InnerProductSpace + +variable (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] + +theorem complex_coefficients_zero_of_real_series_zero (c : ℕ → ℂ) + (hc : ∀ t : ℝ, HasSum (fun n => (t : ℂ) ^ n * c n) 0) : ∀ n, c n = 0 := by + have hre : HasFPowerSeriesAt (0 : ℝ → ℝ) + (FormalMultilinearSeries.ofScalars ℝ (fun n => (c n).re)) 0 := by + apply hasFPowerSeriesAt_iff.mpr + apply Eventually.of_forall + intro t + simpa only [zero_add, Pi.zero_apply, FormalMultilinearSeries.coeff_ofScalars, + smul_eq_mul, ← Complex.ofReal_pow, Complex.mul_re, Complex.ofReal_re, + Complex.ofReal_im, zero_mul, sub_zero, Complex.zero_re] using Complex.hasSum_re (hc t) + have him : HasFPowerSeriesAt (0 : ℝ → ℝ) + (FormalMultilinearSeries.ofScalars ℝ (fun n => (c n).im)) 0 := by + apply hasFPowerSeriesAt_iff.mpr + apply Eventually.of_forall + intro t + simpa only [zero_add, Pi.zero_apply, FormalMultilinearSeries.coeff_ofScalars, + smul_eq_mul, ← Complex.ofReal_pow, Complex.mul_im, Complex.ofReal_re, + Complex.ofReal_im, zero_mul, add_zero, Complex.zero_im] using Complex.hasSum_im (hc t) + intro n + apply Complex.ext + · exact (FormalMultilinearSeries.ofScalars_eq_zero ℝ n).mp (congrFun hre.eq_zero n) + · exact (FormalMultilinearSeries.ofScalars_eq_zero ℝ n).mp (congrFun him.eq_zero n) + +theorem inner_pureTensor_zero_of_real_exponential_zero + (x : SymmetricFockSpace H) (v : H) + (hx : ∀ t : ℝ, inner ℂ x (exponentialVector H (t • v)) = 0) (n : ℕ) : + inner ℂ (x n) (pureSymmetricTensor H n v) = 0 := by + have hc := complex_coefficients_zero_of_real_series_zero + (fun n => inner ℂ (x n) (exponentialComponent H v n)) (fun t => by + have h := hasSum_exponentialAnalysis H x v (t : ℂ) + have ht : (t : ℂ) • v = t • v := algebraMap_smul ℂ t v + rw [ht, hx t] at h + simpa only [exponentialAnalysisSeries, FormalMultilinearSeries.coeff_ofScalars, + smul_eq_mul] using h) + have hn := hc n + rw [exponentialComponent, inner_smul_right] at hn + have hfac : (0 : ℝ) < (n.factorial : ℝ) := by exact_mod_cast Nat.factorial_pos n + have hden : (Real.sqrt (n.factorial : ℝ) : ℂ) ≠ 0 := + Complex.ofReal_ne_zero.mpr (ne_of_gt (Real.sqrt_pos.mpr hfac)) + exact (mul_eq_zero.mp hn).resolve_left (inv_ne_zero hden) + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/Fock/RealLinearCoherentTotality.lean b/LeanPool/VacuumBellSeparation/Fock/RealLinearCoherentTotality.lean new file mode 100644 index 0000000000..f48272e26a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/RealLinearCoherentTotality.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Fock.StandardTensorTotality +public import LeanPool.VacuumBellSeparation.Fock.RealExponentialCoefficients +public import LeanPool.VacuumBellSeparation.Fock.WeylFockEquivalence + +/-! +# Coherent totality from a real linear family + +The closure of the actual real range need only contain a standard subspace. +Real rescaling extracts every tensor coefficient; continuity of each finite +multilinear form then extends its vanishing to the standard subspace. No +continuity of the label space or complex linearity of the label map is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock +open scoped InnerProductSpace + +-- Named local caches of the existing restricted-submodule and completion instances. +/-- The real scalar action on a symmetric tensor sector, restricted from complex scalars. -/ +local instance realLinearCoherentTotalitySymmetricTensorRealModule (E : Type*) + [NormedAddCommGroup E] [InnerProductSpace ℂ E] (n : ℕ) : + Module ℝ (SymmetricTensorPower E n) := + Module.complexToReal (SymmetricTensorPower E n) + +/-- Completeness of the symmetric tensor sector as a closed subspace. -/ +local instance realLinearCoherentTotalitySymmetricTensorComplete (E : Type*) + [NormedAddCommGroup E] [InnerProductSpace ℂ E] (n : ℕ) : + CompleteSpace (SymmetricTensorPower E n) := + (isClosed_symmetricTensorSubmodule E n).isComplete.completeSpace_coe + +/-- Completeness of the Hilbert sum of the degrees of the Fock space. -/ +local instance realLinearCoherentTotalitySymmetricFockComplete (E : Type*) + [NormedAddCommGroup E] [InnerProductSpace ℂ E] : CompleteSpace (SymmetricFockSpace E) := + lp.completeSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] +variable {E : Type*} [AddCommGroup E] [Module ℝ E] + +omit [CompleteSpace H] in +theorem fock_eq_zero_of_realLinear_exponential_orthogonal + (L : E →ₗ[ℝ] H) (S : StandardSubspace H) + (hS : ∀ v : S.toClosedSubmodule, (v : H) ∈ closure (Set.range L)) + (x : SymmetricFockSpace H) + (hx : ∀ u : E, inner ℂ x (exponentialVector H (L u)) = 0) : x = 0 := by + have hc (u : E) (n : ℕ) : + inner ℂ (x n) (pureSymmetricTensor H n (L u)) = 0 := by + apply inner_pureTensor_zero_of_real_exponential_zero H x (L u) + intro t + rw [← L.map_smul] + exact hx (t • u) + apply lp.ext + funext n + apply symmetricTensor_eq_zero_of_standard_diagonal S n + intro v + let M := symmetricTensorScalarForm H n (x n) + have hcont : Continuous (fun y : H => M (fun _ => y)) := + M.cont.comp (continuous_pi fun _ => continuous_id) + have hz : closure (Set.range L) ⊆ {y : H | M (fun _ => y) = 0} := by + apply closure_minimal ?_ (isClosed_eq hcont continuous_const) + rintro _ ⟨u, rfl⟩ + exact hc u n + exact hz (hS v) + +omit [CompleteSpace H] in +theorem fock_eq_zero_of_realLinear_coherent_orthogonal + (L : E →ₗ[ℝ] H) (S : StandardSubspace H) + (hS : ∀ v : S.toClosedSubmodule, (v : H) ∈ closure (Set.range L)) + (x : SymmetricFockSpace H) + (hx : ∀ u : E, inner ℂ x (coherentVector H (L u)) = 0) : x = 0 := by + apply fock_eq_zero_of_realLinear_exponential_orthogonal L S hS x + intro u + have h := hx u + rw [coherentVector, inner_smul_right] at h + exact (mul_eq_zero.mp h).resolve_left (Complex.exp_ne_zero _) + +omit [CompleteSpace H] in +theorem realLinear_coherentVector_dense_span + (L : E →ₗ[ℝ] H) (S : StandardSubspace H) + (hS : ∀ v : S.toClosedSubmodule, (v : H) ∈ closure (Set.range L)) : + (Submodule.span ℂ (Set.range fun u : E => + coherentVector H (L u))).topologicalClosure = ⊤ := by + let K := Submodule.span ℂ (Set.range fun u : E => coherentVector H (L u)) + have horth : Kᗮ = ⊥ := by + apply (Submodule.eq_bot_iff _).mpr + intro x hx + apply fock_eq_zero_of_realLinear_coherent_orthogonal L S hS x + intro u + exact K.inner_left_of_mem_orthogonal (Submodule.subset_span ⟨u, rfl⟩) hx + apply Submodule.orthogonal_eq_bot_iff.mp + rw [Submodule.orthogonal_closure, horth] + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/Fock/RealMultilinearDiagonal.lean b/LeanPool/VacuumBellSeparation/Fock/RealMultilinearDiagonal.lean new file mode 100644 index 0000000000..7e6c2fa590 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/RealMultilinearDiagonal.lean @@ -0,0 +1,106 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Calculus.FDeriv.Analytic +public import Mathlib.Analysis.Normed.Module.Multilinear.Curry +public import Mathlib.GroupTheory.Perm.Fin + +/-! +# Real diagonal determination of symmetric continuous multilinear maps + +Differentiate the identically zero diagonal. Permutation symmetry makes +all n directional terms equal, and characteristic zero cancels n. +Currying then reduces the number of variables. This proves the full +diagonal determination theorem without assuming polarization or density. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock.RealPolarization + +variable {H G : Type*} [NormedAddCommGroup H] [NormedSpace ℝ H] + [NormedAddCommGroup G] [NormedSpace ℝ G] + +/-- Invariance of a multilinear map under permutations of its input coordinates. -/ +def MultilinearPermutationInvariant {n : ℕ} + (M : ContinuousMultilinearMap ℝ (fun _ : Fin n => H) G) : Prop := + ∀ (e : Equiv.Perm (Fin n)) (v : Fin n → H), M (v ∘ e) = M v + +theorem symmetric_multilinear_update_diagonal {n : ℕ} + (M : ContinuousMultilinearMap ℝ (fun _ : Fin (n + 1) => H) G) + (hM : MultilinearPermutationInvariant M) (x y : H) (i : Fin (n + 1)) : + M (Function.update (fun _ => x) i y) = M (Function.update (fun _ => x) 0 y) := by + have h := hM (Equiv.swap 0 i) (Function.update (fun _ => x) 0 y) + have heq : Function.update (fun _ : Fin (n + 1) => x) 0 y ∘ Equiv.swap 0 i = + Function.update (fun _ : Fin (n + 1) => x) i y := by + rw [Function.update_comp_equiv] + simp only [Equiv.symm_swap, Equiv.swap_apply_left, Function.comp_def] + exact (congrArg M heq).symm.trans h + +theorem symmetric_multilinear_first_diagonal_zero {n : ℕ} + (M : ContinuousMultilinearMap ℝ (fun _ : Fin (n + 1) => H) G) + (hM : MultilinearPermutationInvariant M) (hdiag : ∀ x, M (fun _ => x) = 0) + (x y : H) : M (Fin.cons y (fun _ : Fin n => x)) = 0 := by + let D : H →L[ℝ] (Fin (n + 1) → H) := + ContinuousLinearMap.pi (fun _ => ContinuousLinearMap.id ℝ H) + have hder := (M.hasFDerivAt (D x)).comp x D.hasFDerivAt + have hfun : M ∘ D = fun _ => (0 : G) := funext fun z => hdiag z + rw [hfun] at hder + have hzero := hder.unique (hasFDerivAt_const (0 : G) x) + have hsum := congrArg (fun L : H →L[ℝ] G => L y) hzero + change M.linearDeriv (fun _ => x) (fun _ => y) = 0 at hsum + rw [ContinuousMultilinearMap.linearDeriv_apply] at hsum + simp only [symmetric_multilinear_update_diagonal M hM x y, + Finset.sum_const, Finset.card_univ, Fintype.card_fin] at hsum + have hsmul : ((n + 1 : ℕ) : ℝ) • M (Function.update (fun _ => x) 0 y) = 0 := by + simpa only [Nat.cast_smul_eq_nsmul] using hsum + have hz : M (Function.update (fun _ => x) 0 y) = 0 := + (smul_eq_zero.mp hsmul).resolve_left (by exact_mod_cast Nat.succ_ne_zero n) + convert hz using 1 + congr 1 + funext i + refine Fin.cases ?_ (fun j => ?_) i <;> simp + +theorem symmetric_multilinear_curryLeft {n : ℕ} + (M : ContinuousMultilinearMap ℝ (fun _ : Fin (n + 1) => H) G) + (hM : MultilinearPermutationInvariant M) (x : H) : + MultilinearPermutationInvariant (M.curryLeft x) := by + intro e v + let E : Equiv.Perm (Fin (n + 1)) := Equiv.Perm.decomposeFin.symm (0, e) + have h := hM E (Fin.cons x v) + rw [ContinuousMultilinearMap.curryLeft_apply, ContinuousMultilinearMap.curryLeft_apply] + convert h using 1 + congr 1 + funext i + refine Fin.cases ?_ (fun j => ?_) i + · simp [E] + · simp [E, Function.comp_def] + +/-- Genuine polarization consequence for every finite degree, including zero. -/ +theorem symmetric_multilinear_eq_zero_of_diagonal (n : ℕ) + (M : ContinuousMultilinearMap ℝ (fun _ : Fin n => H) G) + (hM : MultilinearPermutationInvariant M) (hdiag : ∀ x, M (fun _ => x) = 0) : M = 0 := by + induction n with + | zero => + apply ContinuousMultilinearMap.ext + intro v + have hv : v = fun _ : Fin 0 => (0 : H) := Subsingleton.elim _ _ + simpa only [hv, zero_apply] using hdiag 0 + | succ n ih => + apply ContinuousMultilinearMap.ext + intro v + have hc : M.curryLeft (v 0) = 0 := ih (M.curryLeft (v 0)) + (symmetric_multilinear_curryLeft M hM (v 0)) + (fun x => symmetric_multilinear_first_diagonal_zero M hM hdiag x (v 0)) + have he := congrArg (fun L : ContinuousMultilinearMap ℝ (fun _ : Fin n => H) G => + L (Fin.tail v)) hc + simpa only [ContinuousMultilinearMap.curryLeft_apply, Fin.cons_self_tail, + zero_apply] using he + +end VacuumBellSeparation.Fock.RealPolarization diff --git a/LeanPool/VacuumBellSeparation/Fock/StandardTensorTotality.lean b/LeanPool/VacuumBellSeparation/Fock/StandardTensorTotality.lean new file mode 100644 index 0000000000..9d54ccc403 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/StandardTensorTotality.lean @@ -0,0 +1,74 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Fock.SymmetricTensorTotality +public import LeanPool.VacuumBellSeparation.Fock.RealMultilinearDiagonal +public import LeanPool.VacuumBellSeparation.Gaussian.StandardSubspaceSource + +/-! +# Diagonal tensors from an actual standard real subspace are total + +Real polarization gives the mixed real tensors. Complex multilinearity +expands x+iy in every slot, and the actual dense standard source map +extends this to all tensor factors. No real-density claim is used. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock +open Gaussian +open scoped InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +omit [CompleteSpace H] in +theorem symmetric_multilinear_eq_zero_of_standard_diagonal (S : StandardSubspace H) + (n : ℕ) (M : ContinuousMultilinearMap ℂ (fun _ : Fin n => H) ℂ) + (hM : MultilinearPermutationInvariant M) + (hd : ∀ x : S.toClosedSubmodule, M (fun _ => (x : H)) = 0) : M = 0 := by + classical + let N := (M.restrictScalars ℝ).compContinuousLinearMap + (fun _ => (standardRealInclusion S).toContinuousLinearMap) + have hN : N = 0 := RealPolarization.symmetric_multilinear_eq_zero_of_diagonal n N + (fun e v => hM e (fun i => (v i : H))) hd + have hreal (v : Fin n → S.toClosedSubmodule) : M (fun i => (v i : H)) = 0 := + congrArg (fun Q : ContinuousMultilinearMap ℝ (fun _ : Fin n => S.toClosedSubmodule) ℂ => Q v) hN + have hcomplex (v : Fin n → StandardSource S) : + M (fun i => standardSourceMap S (v i)) = 0 := by + change M ((fun i => ((v i).re : H)) + (fun i => Complex.I • ((v i).im : H))) = 0 + rw [M.map_add_univ] + apply Finset.sum_eq_zero + intro s _ + let w : Fin n → S.toClosedSubmodule := fun i => if i ∈ s then (v i).re else (v i).im + let c : Fin n → ℂ := fun i => if i ∈ s then 1 else Complex.I + have he : s.piecewise (fun i => ((v i).re : H)) + (fun i => Complex.I • ((v i).im : H)) = fun i => c i • (w i : H) := by + funext i + by_cases hi : i ∈ s <;> simp [Finset.piecewise, c, w, hi] + rw [he, M.map_smul_univ, hreal, smul_zero] + have hdense := DenseRange.piMap (fun _ : Fin n => standardSourceMap_denseRange S) + apply ContinuousMultilinearMap.ext + have heq : (fun v => M (Pi.map (fun _ : Fin n => standardSourceMap S) v)) = + fun _ => (0 : ℂ) := funext hcomplex + have h := hdense.equalizer M.cont continuous_const heq + exact congrFun h + +omit [CompleteSpace H] in +theorem symmetricTensor_eq_zero_of_standard_diagonal (S : StandardSubspace H) + (n : ℕ) (x : SymmetricTensorPower H n) + (hx : ∀ v : S.toClosedSubmodule, inner ℂ x (pureSymmetricTensor H n (v : H)) = 0) : + x = 0 := by + have hM := symmetric_multilinear_eq_zero_of_standard_diagonal S n + (symmetricTensorScalarForm H n x) (symmetricTensorScalarForm_invariant H n x) hx + apply Subtype.ext + apply eq_zero_of_inner_mixedTensor_zero H n (x : HilbertTensorPower H n) + intro v + exact congrArg (fun M : ContinuousMultilinearMap ℂ (fun _ : Fin n => H) ℂ => M v) hM + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/Fock/SymmetricFockSpace.lean b/LeanPool/VacuumBellSeparation/Fock/SymmetricFockSpace.lean new file mode 100644 index 0000000000..9a829f9f65 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/SymmetricFockSpace.lean @@ -0,0 +1,129 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Fock.TensorPermutations +public import Mathlib.Analysis.InnerProductSpace.l2Space +public import Mathlib.Topology.Algebra.Module.ClosedSubmodule +public import Mathlib.Analysis.SpecialFunctions.Exp +public import Mathlib.Analysis.SpecialFunctions.Exponential + +/-! +# The literal symmetric Fock space and its exponential vectors + +The n-particle space consists of the fixed points of all permutation +unitaries in the actual completed n-fold Hilbert tensor product. Their +Hilbert direct sum is symmetric Fock space. The exponential vectors are +the literal tensor series v^tensor_n / sqrt(n!), with the exact exp-inner +kernel. Density of their span is a separate theorem. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock +open scoped TensorProduct InnerProductSpace ENNReal ComplexConjugate + +variable (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] + +/-- Symmetric tensor submodule. -/ +def symmetricTensorSubmodule (n : ℕ) : Submodule ℂ (HilbertTensorPower H n) where + carrier := {x | ∀ e : Equiv.Perm (Fin n), tensorPermutation H n e x = x} + zero_mem' := by intro e; exact map_zero _ + add_mem' := by intro x y hx hy e; rw [map_add, hx e, hy e] + smul_mem' := by intro c x hx e; rw [map_smul, hx e] + +theorem isClosed_symmetricTensorSubmodule (n : ℕ) : + IsClosed (symmetricTensorSubmodule H n : Set (HilbertTensorPower H n)) := by + change IsClosed {x | ∀ e : Equiv.Perm (Fin n), tensorPermutation H n e x = x} + simp only [Set.ofPred_forall] + exact isClosed_iInter fun e => isClosed_eq (tensorPermutation H n e).continuous continuous_id + +/-- Symmetric tensor closed submodule represented by `symmetricTensorSubmodule H n`. -/ +def symmetricTensorClosedSubmodule (n : ℕ) : ClosedSubmodule ℂ (HilbertTensorPower H n) := + ⟨symmetricTensorSubmodule H n, isClosed_symmetricTensorSubmodule H n⟩ + +/-- Symmetric tensor power with underlying type `symmetricTensorClosedSubmodule H n`. -/ +abbrev SymmetricTensorPower (n : ℕ) : Type _ := symmetricTensorClosedSubmodule H n + +/-- The inherited norm on the permutation-invariant tensor sector. -/ +instance symmetricTensorPowerNormedAddCommGroup (n : ℕ) : + NormedAddCommGroup (SymmetricTensorPower H n) := + (symmetricTensorClosedSubmodule H n).normedAddCommGroup + +/-- The inner product restricted to the symmetric tensor sector. -/ +instance symmetricTensorPowerInnerProductSpace (n : ℕ) : + InnerProductSpace ℂ (SymmetricTensorPower H n) := + (symmetricTensorClosedSubmodule H n).innerProductSpace + +/-- Completeness of the closed symmetric subspace of a tensor power. -/ +instance symmetricTensorPowerCompleteSpace (n : ℕ) : CompleteSpace (SymmetricTensorPower H n) := + (isClosed_symmetricTensorSubmodule H n).isComplete.completeSpace_coe + +/-- Pure symmetric tensor. -/ +def pureSymmetricTensor (n : ℕ) (v : H) : SymmetricTensorPower H n := + ⟨tensorVector H n (fun _ => v), fun e => tensorPermutation_diagonal H n e v⟩ + +theorem inner_pureSymmetricTensor (n : ℕ) (v w : H) : + inner ℂ (pureSymmetricTensor H n v) (pureSymmetricTensor H n w) = inner ℂ v w ^ n := + inner_tensorVector_diagonal H n v w + +theorem norm_pureSymmetricTensor_sq (n : ℕ) (v : H) : + ‖pureSymmetricTensor H n v‖ ^ 2 = (‖v‖ ^ 2) ^ n := by + rw [@norm_sq_eq_re_inner ℂ, inner_pureSymmetricTensor, inner_self_eq_norm_sq_to_K] + change (((‖v‖ : ℂ) ^ 2) ^ n).re = (‖v‖ ^ 2) ^ n + simp only [← Complex.ofReal_pow, Complex.ofReal_re] + +/-- The Hilbert direct sum of the actual symmetric tensor sectors. -/ +abbrev SymmetricFockSpace : Type _ := lp (fun n : ℕ => SymmetricTensorPower H n) 2 + +/-- Exponential component. -/ +def exponentialComponent (v : H) (n : ℕ) : SymmetricTensorPower H n := + (Real.sqrt (n.factorial : ℝ) : ℂ)⁻¹ • pureSymmetricTensor H n v + +theorem norm_exponentialComponent_sq (v : H) (n : ℕ) : + ‖exponentialComponent H v n‖ ^ 2 = (‖v‖ ^ 2) ^ n / (n.factorial : ℝ) := by + rw [exponentialComponent, norm_smul, norm_inv, + Complex.norm_of_nonneg (Real.sqrt_nonneg _), mul_pow, inv_pow, + Real.sq_sqrt (Nat.cast_nonneg _), norm_pureSymmetricTensor_sq, div_eq_mul_inv, mul_comm] + +theorem exponentialComponent_memℓp (v : H) : Memℓp (exponentialComponent H v) 2 := by + apply (memℓp_gen_iff (by norm_num : 0 < (2 : ℝ≥0∞).toReal)).mpr + have hs : Summable (fun n => ‖exponentialComponent H v n‖ ^ 2) := by + simpa only [norm_exponentialComponent_sq] using Real.summable_pow_div_factorial (‖v‖ ^ 2) + simpa [Real.rpow_two] using hs + +/-- The symmetric Fock vector with degree-`n` component given by the `n`-fold tensor power divided +by the square root of `n!`. -/ +def exponentialVector (v : H) : SymmetricFockSpace H := + ⟨exponentialComponent H v, exponentialComponent_memℓp H v⟩ + +theorem inner_exponentialComponent (v w : H) (n : ℕ) : + inner ℂ (exponentialComponent H v n) (exponentialComponent H w n) = + inner ℂ v w ^ n / (n.factorial : ℂ) := by + have hden : (Real.sqrt (n.factorial : ℝ) : ℂ) ^ 2 = (n.factorial : ℂ) := by + exact_mod_cast Real.sq_sqrt (Nat.cast_nonneg n.factorial : 0 ≤ (n.factorial : ℝ)) + simp only [exponentialComponent, inner_smul_left, inner_smul_right, map_inv₀, + Complex.conj_ofReal, inner_pureSymmetricTensor] + rw [← mul_assoc, ← pow_two, inv_pow, hden] + ring + +theorem inner_exponentialVector (v w : H) : + inner ℂ (exponentialVector H v) (exponentialVector H w) = Complex.exp (inner ℂ v w) := by + rw [lp.inner_eq_tsum] + change (∑' n, inner ℂ (exponentialComponent H v n) (exponentialComponent H w n)) = _ + simp_rw [inner_exponentialComponent] + rw [Complex.exp_eq_exp_ℂ] + exact (NormedSpace.expSeries_div_hasSum_exp (inner ℂ v w)).tsum_eq + +theorem norm_exponentialVector_sq (v : H) : + ‖exponentialVector H v‖ ^ 2 = Real.exp (‖v‖ ^ 2) := by + rw [@norm_sq_eq_re_inner ℂ, inner_exponentialVector, inner_self_eq_norm_sq_to_K] + change (Complex.exp ((‖v‖ : ℂ) ^ 2)).re = Real.exp (‖v‖ ^ 2) + rw [← Complex.ofReal_pow, ← Complex.ofReal_exp, Complex.ofReal_re] + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/Fock/SymmetricMultilinearDiagonal.lean b/LeanPool/VacuumBellSeparation/Fock/SymmetricMultilinearDiagonal.lean new file mode 100644 index 0000000000..0a221de18f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/SymmetricMultilinearDiagonal.lean @@ -0,0 +1,107 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Calculus.FDeriv.Analytic +public import Mathlib.Analysis.Normed.Module.Multilinear.Curry +public import Mathlib.GroupTheory.Perm.Fin +public import Mathlib.Analysis.Complex.Basic + +/-! +# Diagonal determination of symmetric continuous multilinear maps + +Differentiate the identically zero diagonal. Permutation symmetry makes +all n directional terms equal, and characteristic zero cancels n. +Currying then reduces the number of variables. This proves the full +diagonal determination theorem without assuming polarization or density. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock + +variable {H G : Type*} [NormedAddCommGroup H] [NormedSpace ℂ H] + [NormedAddCommGroup G] [NormedSpace ℂ G] + +/-- Invariance of a multilinear map under permutations of its input coordinates. -/ +def MultilinearPermutationInvariant {n : ℕ} + (M : ContinuousMultilinearMap ℂ (fun _ : Fin n => H) G) : Prop := + ∀ (e : Equiv.Perm (Fin n)) (v : Fin n → H), M (v ∘ e) = M v + +theorem symmetric_multilinear_update_diagonal {n : ℕ} + (M : ContinuousMultilinearMap ℂ (fun _ : Fin (n + 1) => H) G) + (hM : MultilinearPermutationInvariant M) (x y : H) (i : Fin (n + 1)) : + M (Function.update (fun _ => x) i y) = M (Function.update (fun _ => x) 0 y) := by + have h := hM (Equiv.swap 0 i) (Function.update (fun _ => x) 0 y) + have heq : Function.update (fun _ : Fin (n + 1) => x) 0 y ∘ Equiv.swap 0 i = + Function.update (fun _ : Fin (n + 1) => x) i y := by + rw [Function.update_comp_equiv] + simp only [Equiv.symm_swap, Equiv.swap_apply_left, Function.comp_def] + exact (congrArg M heq).symm.trans h + +theorem symmetric_multilinear_first_diagonal_zero {n : ℕ} + (M : ContinuousMultilinearMap ℂ (fun _ : Fin (n + 1) => H) G) + (hM : MultilinearPermutationInvariant M) (hdiag : ∀ x, M (fun _ => x) = 0) + (x y : H) : M (Fin.cons y (fun _ : Fin n => x)) = 0 := by + let D : H →L[ℂ] (Fin (n + 1) → H) := + ContinuousLinearMap.pi (fun _ => ContinuousLinearMap.id ℂ H) + have hder := (M.hasFDerivAt (D x)).comp x D.hasFDerivAt + have hfun : M ∘ D = fun _ => (0 : G) := funext fun z => hdiag z + rw [hfun] at hder + have hzero := hder.unique (hasFDerivAt_const (0 : G) x) + have hsum := congrArg (fun L : H →L[ℂ] G => L y) hzero + change M.linearDeriv (fun _ => x) (fun _ => y) = 0 at hsum + rw [ContinuousMultilinearMap.linearDeriv_apply] at hsum + simp only [symmetric_multilinear_update_diagonal M hM x y, + Finset.sum_const, Finset.card_univ, Fintype.card_fin] at hsum + have hsmul : ((n + 1 : ℕ) : ℂ) • M (Function.update (fun _ => x) 0 y) = 0 := by + simpa only [Nat.cast_smul_eq_nsmul] using hsum + have hz : M (Function.update (fun _ => x) 0 y) = 0 := + (smul_eq_zero.mp hsmul).resolve_left (by exact_mod_cast Nat.succ_ne_zero n) + convert hz using 1 + congr 1 + funext i + refine Fin.cases ?_ (fun j => ?_) i <;> simp + +theorem symmetric_multilinear_curryLeft {n : ℕ} + (M : ContinuousMultilinearMap ℂ (fun _ : Fin (n + 1) => H) G) + (hM : MultilinearPermutationInvariant M) (x : H) : + MultilinearPermutationInvariant (M.curryLeft x) := by + intro e v + let E : Equiv.Perm (Fin (n + 1)) := Equiv.Perm.decomposeFin.symm (0, e) + have h := hM E (Fin.cons x v) + rw [ContinuousMultilinearMap.curryLeft_apply, ContinuousMultilinearMap.curryLeft_apply] + convert h using 1 + congr 1 + funext i + refine Fin.cases ?_ (fun j => ?_) i + · simp [E] + · simp [E, Function.comp_def] + +/-- Genuine polarization consequence for every finite degree, including zero. -/ +theorem symmetric_multilinear_eq_zero_of_diagonal (n : ℕ) + (M : ContinuousMultilinearMap ℂ (fun _ : Fin n => H) G) + (hM : MultilinearPermutationInvariant M) (hdiag : ∀ x, M (fun _ => x) = 0) : M = 0 := by + induction n with + | zero => + apply ContinuousMultilinearMap.ext + intro v + have hv : v = fun _ : Fin 0 => (0 : H) := Subsingleton.elim _ _ + simpa only [hv, zero_apply] using hdiag 0 + | succ n ih => + apply ContinuousMultilinearMap.ext + intro v + have hc : M.curryLeft (v 0) = 0 := ih (M.curryLeft (v 0)) + (symmetric_multilinear_curryLeft M hM (v 0)) + (fun x => symmetric_multilinear_first_diagonal_zero M hM hdiag x (v 0)) + have he := congrArg (fun L : ContinuousMultilinearMap ℂ (fun _ : Fin n => H) G => + L (Fin.tail v)) hc + simpa only [ContinuousMultilinearMap.curryLeft_apply, Fin.cons_self_tail, + zero_apply] using he + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/Fock/SymmetricTensorTotality.lean b/LeanPool/VacuumBellSeparation/Fock/SymmetricTensorTotality.lean new file mode 100644 index 0000000000..13589dfc89 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/SymmetricTensorTotality.lean @@ -0,0 +1,113 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Fock.SymmetricFockSpace +public import LeanPool.VacuumBellSeparation.Fock.SymmetricMultilinearDiagonal +public import Mathlib.Analysis.InnerProductSpace.Projection.Submodule + +/-! +# Totality of diagonal tensors in each actual symmetric sector + +The pure-tensor map is bounded multilinear in the genuine Hilbert tensor +norm. An invariant vector determines a symmetric multilinear scalar form. +The proved diagonal determination theorem then gives its vanishing on +all mixed tensors, and algebraic tensor spanning plus completion gives +the vector itself zero. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock +open scoped TensorProduct InnerProductSpace + +variable (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] (n : ℕ) + +theorem norm_tensorVector (v : Fin n → H) : + ‖tensorVector H n v‖ = ∏ i, ‖v i‖ := by + apply (sq_eq_sq₀ (norm_nonneg _) (Finset.prod_nonneg fun _ _ => norm_nonneg _)).mp + have h := congrArg norm (inner_tensorVector H n v v) + simpa only [inner_self_eq_norm_sq_to_K, norm_prod, norm_pow, + RCLike.norm_ofReal, abs_norm, ← Finset.prod_pow] using h + +/-- Multilinear map sending a family of vectors to its simple tensor. -/ +def tensorMultilinear : ContinuousMultilinearMap ℂ (fun _ : Fin n => H) (HilbertTensorPower H n) := + (((UniformSpace.Completion.toComplL : TensorPower ℂ n H →L[ℂ] HilbertTensorPower H + n).toLinearMap).compMultilinearMap (PiTensorProduct.tprod ℂ)).mkContinuous 1 + (fun v => by + change ‖tensorVector H n v‖ ≤ 1 * ∏ i, ‖v i‖ + rw [norm_tensorVector, one_mul]) + +theorem tensorMultilinear_apply (v : Fin n → H) : + tensorMultilinear H n v = tensorVector H n v := rfl + +theorem tensorVector_smul (c : ℂ) (v : H) : + tensorVector H n (fun _ => c • v) = c ^ n • tensorVector H n (fun _ => v) := by + have h := (tensorMultilinear H n).toMultilinearMap.map_smul_univ + (fun _ : Fin n => c) (fun _ : Fin n => v) + change tensorVector H n (fun _ => c • v) = + (∏ _ : Fin n, c) • tensorVector H n (fun _ => v) at h + simpa only [Finset.prod_const, Finset.card_univ, Fintype.card_fin] using h + +theorem pureSymmetricTensor_smul (c : ℂ) (v : H) : + pureSymmetricTensor H n (c • v) = c ^ n • pureSymmetricTensor H n v := by + apply Subtype.ext + exact tensorVector_smul H n c v + +theorem eq_zero_of_inner_mixedTensor_zero (x : HilbertTensorPower H n) + (hx : ∀ v, inner ℂ x (tensorVector H n v) = 0) : x = 0 := by + have hall : ∀ y : HilbertTensorPower H n, inner ℂ x y = 0 := by + intro y + refine UniformSpace.Completion.induction_on y + (isClosed_eq (by fun_prop) continuous_const) ?_ + intro z + refine z.induction_on ?_ ?_ + · intro c v + rw [UniformSpace.Completion.coe_smul, inner_smul_right] + change c * inner ℂ x (tensorVector H n v) = 0 + rw [hx v, mul_zero] + · intro a b ha hb + simp only [UniformSpace.Completion.coe_add, inner_add_right, ha, hb, add_zero] + exact inner_self_eq_zero.mp (hall x) + +/-- Symmetric tensor scalar form. -/ +def symmetricTensorScalarForm (x : SymmetricTensorPower H n) : + ContinuousMultilinearMap ℂ (fun _ : Fin n => H) ℂ := + (innerSL ℂ (x : HilbertTensorPower H n)).compContinuousMultilinearMap (tensorMultilinear H n) + +theorem symmetricTensorScalarForm_invariant (x : SymmetricTensorPower H n) : + MultilinearPermutationInvariant (symmetricTensorScalarForm H n x) := by + intro e v + have hi := (tensorPermutation H n e.symm).inner_map_map + (x : HilbertTensorPower H n) (tensorVector H n v) + rw [x.property e.symm, tensorPermutation_tensorVector, Equiv.symm_symm] at hi + exact hi + +theorem eq_zero_of_inner_pureSymmetricTensor_zero (x : SymmetricTensorPower H n) + (hx : ∀ v, inner ℂ x (pureSymmetricTensor H n v) = 0) : x = 0 := by + have hm : symmetricTensorScalarForm H n x = 0 := + symmetric_multilinear_eq_zero_of_diagonal n (symmetricTensorScalarForm H n x) + (symmetricTensorScalarForm_invariant H n x) hx + apply Subtype.ext + apply eq_zero_of_inner_mixedTensor_zero H n (x : HilbertTensorPower H n) + intro v + exact congrArg (fun M : ContinuousMultilinearMap ℂ (fun _ : Fin n => H) ℂ => M v) hm + +theorem pureSymmetricTensor_dense_span : + (Submodule.span ℂ (Set.range (pureSymmetricTensor H n))).topologicalClosure = ⊤ := by + let K := Submodule.span ℂ (Set.range (pureSymmetricTensor H n)) + have horth : Kᗮ = ⊥ := by + apply (Submodule.eq_bot_iff _).mpr + intro x hx + apply eq_zero_of_inner_pureSymmetricTensor_zero H n x + intro v + exact K.inner_left_of_mem_orthogonal (Submodule.subset_span ⟨v, rfl⟩) hx + apply Submodule.orthogonal_eq_bot_iff.mp + rw [Submodule.orthogonal_closure, horth] + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/Fock/TensorPermutations.lean b/LeanPool/VacuumBellSeparation/Fock/TensorPermutations.lean new file mode 100644 index 0000000000..a3bc3ea05d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/TensorPermutations.lean @@ -0,0 +1,95 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Fock.TensorPowerHilbert +public import Mathlib.Analysis.Normed.Operator.Extend + +/-! +# Genuine permutation unitaries on completed Hilbert tensor powers + +Algebraic reindexing preserves the product inner form. Its completion is +surjective by the completed inverse, so permutations act by actual +unitaries on the completed n-fold Hilbert tensor product. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock +open scoped TensorProduct InnerProductSpace + +section Completion +variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] + +theorem isometry_completion_inverse (e : E ≃ₗᵢ[ℂ] F) + (x : UniformSpace.Completion E) : + e.symm.toLinearIsometry.completion (e.toLinearIsometry.completion x) = x := by + refine UniformSpace.Completion.induction_on x (isClosed_eq (by fun_prop) continuous_id) ?_ + intro y + simp only [LinearIsometry.completion_apply_coe] + change ((e.symm (e y) : E) : UniformSpace.Completion E) = y + exact congrArg (fun z : E => (z : UniformSpace.Completion E)) (e.symm_apply_apply y) + +/-- Isometry equivalence completion of type `UniformSpace.Completion E ≃ₗᵢ[ℂ] +UniformSpace.Completion F`. -/ +def isometryEquivCompletion (e : E ≃ₗᵢ[ℂ] F) : + UniformSpace.Completion E ≃ₗᵢ[ℂ] UniformSpace.Completion F := + LinearIsometryEquiv.ofSurjective e.toLinearIsometry.completion (fun y => + ⟨e.symm.toLinearIsometry.completion y, isometry_completion_inverse e.symm y⟩) + +theorem isometryEquivCompletion_coe (e : E ≃ₗᵢ[ℂ] F) (x : E) : + isometryEquivCompletion e x = (e x : UniformSpace.Completion F) := + LinearIsometry.completion_apply_coe _ _ + +end Completion + +variable (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] (n : ℕ) + +theorem tensorPower_reindex_inner (e : Equiv.Perm (Fin n)) + (x y : TensorPower ℂ n H) : + inner ℂ (PiTensorProduct.reindex ℂ (fun _ : Fin n => H) e x) + (PiTensorProduct.reindex ℂ (fun _ : Fin n => H) e y) = inner ℂ x y := by + refine x.induction_on ?_ ?_ + · intro c v + refine y.induction_on ?_ ?_ + · intro d w + simp only [map_smul, inner_smul_left, inner_smul_right, + PiTensorProduct.reindex_tprod, tensorPower_inner_tprod] + rw [Equiv.prod_comp e.symm (fun i => inner ℂ (v i) (w i))] + · intro y z hy hz + simp only [map_add, inner_add_right, hy, hz] + · intro x z hx hz + simp only [map_add, inner_add_left, hx, hz] + +/-- Linear isometry equivalence for the algebraic tensor permutation, of type `TensorPower ℂ n H +≃ₗᵢ[ℂ] TensorPower ℂ n H`. -/ +def algebraicTensorPermutation (e : Equiv.Perm (Fin n)) : + TensorPower ℂ n H ≃ₗᵢ[ℂ] TensorPower ℂ n H := + (PiTensorProduct.reindex ℂ (fun _ : Fin n => H) e).isometryOfInner + (tensorPower_reindex_inner H n e) + +/-- Tensor permutation obtained from `isometryEquivCompletion`. -/ +def tensorPermutation (e : Equiv.Perm (Fin n)) : + HilbertTensorPower H n ≃ₗᵢ[ℂ] HilbertTensorPower H n := + isometryEquivCompletion (algebraicTensorPermutation H n e) + +theorem tensorPermutation_tensorVector (e : Equiv.Perm (Fin n)) (v : Fin n → H) : + tensorPermutation H n e (tensorVector H n v) = + tensorVector H n (fun i => v (e.symm i)) := by + rw [tensorPermutation, tensorVector, isometryEquivCompletion_coe] + change ((PiTensorProduct.reindex ℂ (fun _ : Fin n => H) e + (PiTensorProduct.tprod ℂ v) : TensorPower ℂ n H) : HilbertTensorPower H n) = _ + rw [PiTensorProduct.reindex_tprod] + rfl + +theorem tensorPermutation_diagonal (e : Equiv.Perm (Fin n)) (v : H) : + tensorPermutation H n e (tensorVector H n (fun _ => v)) = tensorVector H n (fun _ => v) := + tensorPermutation_tensorVector H n e _ + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/Fock/TensorPowerHilbert.lean b/LeanPool/VacuumBellSeparation/Fock/TensorPowerHilbert.lean new file mode 100644 index 0000000000..098b7cee9f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/TensorPowerHilbert.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.TensorProduct +public import Mathlib.Analysis.InnerProductSpace.Completion +public import Mathlib.LinearAlgebra.TensorPower.Basic +public import Mathlib.Algebra.BigOperators.Fin + +/-! +# Hilbert completion of the actual algebraic tensor powers + +The algebraic carrier is Mathlib's n-fold PiTensorProduct. Its positive +inner product is constructed from the genuine binary Hilbert tensor +product by the canonical splitting equivalence. The completed carrier is +the n-fold Hilbert tensor power, before taking its symmetric subspace. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock +open scoped TensorProduct InnerProductSpace + +section Pullback +variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [AddCommGroup F] [Module ℂ F] + +/-- Linear embedding inner core. -/ +@[instance_reducible] def linearEmbeddingInnerCore (e : F →ₗ[ℂ] E) (he : Function.Injective e) : + InnerProductSpace.Core ℂ F where + inner x y := inner ℂ (e x) (e y) + conj_inner_symm _ _ := inner_conj_symm _ _ + re_inner_nonneg _ := inner_self_nonneg + add_left _ _ _ := by simp only [map_add, inner_add_left] + smul_left _ _ _ := by simp only [map_smul, inner_smul_left] + definite x hx := he (by simpa only [map_zero] using (inner_self_eq_zero.mp hx)) + +end Pullback + +variable (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] + +/-- The canonical last-factor splitting of the actual n-fold tensor. -/ +def tensorPowerSplit (n : ℕ) : + TensorPower ℂ (n + 1) H ≃ₗ[ℂ] (TensorPower ℂ n H) ⊗[ℂ] H := + ((PiTensorProduct.reindex ℂ (fun _ : Fin (n + 1) => H) + (finSumFinEquiv : Fin n ⊕ Fin 1 ≃ Fin (n + 1)).symm).trans + (PiTensorProduct.tmulEquiv ℂ H).symm).trans + (TensorProduct.congr (LinearEquiv.refl ℂ _) + (PiTensorProduct.subsingletonEquiv (R := ℂ) (s := fun _ : Fin 1 => H) 0)) + +theorem tensorPowerSplit_tprod (n : ℕ) (v : Fin (n + 1) → H) : + tensorPowerSplit H n (PiTensorProduct.tprod ℂ v) = + PiTensorProduct.tprod ℂ (fun i : Fin n => v i.castSucc) ⊗ₜ[ℂ] v (Fin.last n) := by + simp only [tensorPowerSplit, LinearEquiv.trans_apply, PiTensorProduct.reindex_tprod, + Equiv.symm_symm, PiTensorProduct.tmulEquiv_symm_apply, TensorProduct.congr_tmul, + LinearEquiv.refl_apply, PiTensorProduct.subsingletonEquiv_apply_tprod, + finSumFinEquiv_apply_left, finSumFinEquiv_apply_right] + rfl + +/-- Positive definite inner product, derived recursively from actual tensor products. -/ +@[instance_reducible] def tensorPowerInnerCore : (n : ℕ) + → InnerProductSpace.Core ℂ (TensorPower ℂ n H) + | 0 => linearEmbeddingInnerCore + (PiTensorProduct.isEmptyEquiv (R := ℂ) (s := fun _ : Fin 0 => H) (Fin 0)).toLinearMap + (PiTensorProduct.isEmptyEquiv (R := ℂ) (s := fun _ : Fin 0 => H) (Fin 0)).injective + | n + 1 => + letI : InnerProductSpace.Core ℂ (TensorPower ℂ n H) := tensorPowerInnerCore n + letI : NormedAddCommGroup (TensorPower ℂ n H) := + InnerProductSpace.Core.toNormedAddCommGroup (𝕜 := ℂ) + letI : InnerProductSpace ℂ (TensorPower ℂ n H) := InnerProductSpace.ofCore _ + linearEmbeddingInnerCore (tensorPowerSplit H n).toLinearMap (tensorPowerSplit H n).injective + +instance tensorPowerCore (n : ℕ) : InnerProductSpace.Core ℂ (TensorPower ℂ n H) := + tensorPowerInnerCore H n + +instance tensorPowerNormedAddCommGroup (n : ℕ) : NormedAddCommGroup (TensorPower ℂ n H) := + InnerProductSpace.Core.toNormedAddCommGroup (𝕜 := ℂ) + +instance tensorPowerInnerProductSpace (n : ℕ) : InnerProductSpace ℂ (TensorPower ℂ n H) := + InnerProductSpace.ofCore _ + +theorem tensorPower_inner_zero (x y : TensorPower ℂ 0 H) : + inner ℂ x y = inner ℂ + (PiTensorProduct.isEmptyEquiv (R := ℂ) (s := fun _ : Fin 0 => H) (Fin 0) x) + (PiTensorProduct.isEmptyEquiv (R := ℂ) (s := fun _ : Fin 0 => H) (Fin 0) y) := rfl + +theorem tensorPower_inner_succ (n : ℕ) (x y : TensorPower ℂ (n + 1) H) : + inner ℂ x y = inner ℂ (tensorPowerSplit H n x) (tensorPowerSplit H n y) := rfl + +/-- Exact Hilbert tensor Gram formula, including the empty tensor. -/ +theorem tensorPower_inner_tprod (n : ℕ) (v w : Fin n → H) : + inner ℂ (PiTensorProduct.tprod ℂ v) (PiTensorProduct.tprod ℂ w) = + ∏ i, inner ℂ (v i) (w i) := by + induction n with + | zero => simp only [tensorPower_inner_zero, PiTensorProduct.isEmptyEquiv_apply_tprod, + RCLike.inner_apply, map_one, mul_one, Fin.prod_univ_zero] + | succ n ih => + rw [tensorPower_inner_succ, tensorPowerSplit_tprod, tensorPowerSplit_tprod, + TensorProduct.inner_tmul, ih, Fin.prod_univ_castSucc] + +/-- The completed n-fold Hilbert tensor power of H. -/ +abbrev HilbertTensorPower (n : ℕ) := UniformSpace.Completion (TensorPower ℂ n H) + +/-- Tensor vector. -/ +def tensorVector (n : ℕ) (v : Fin n → H) : HilbertTensorPower H n := + (PiTensorProduct.tprod ℂ v : TensorPower ℂ n H) + +theorem inner_tensorVector (n : ℕ) (v w : Fin n → H) : + inner ℂ (tensorVector H n v) (tensorVector H n w) = ∏ i, inner ℂ (v i) (w i) := by + rw [tensorVector, tensorVector, UniformSpace.Completion.inner_coe, tensorPower_inner_tprod] + +theorem inner_tensorVector_diagonal (n : ℕ) (v w : H) : + inner ℂ (tensorVector H n (fun _ => v)) (tensorVector H n (fun _ => w)) = + inner ℂ v w ^ n := by + rw [inner_tensorVector] + simp + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/Fock/WeylFockEquivalence.lean b/LeanPool/VacuumBellSeparation/Fock/WeylFockEquivalence.lean new file mode 100644 index 0000000000..bf151dcf92 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Fock/WeylFockEquivalence.lean @@ -0,0 +1,148 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Fock.ExponentialTotality +public import LeanPool.VacuumBellSeparation.Weyl.Existence + +/-! +# The constructed Weyl space is the literal symmetric Fock space + +Normalized exponential vectors have precisely the Gaussian kernel. +The resulting RKHS completion map is onto by the proved exponential +vector totality in the actual symmetric Hilbert tensor direct sum. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock +open scoped InnerProductSpace ComplexConjugate + +variable (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] + +/-- Coherent vector given by `Complex.exp ((-(‖v‖ ^ 2 / 2) : ℝ) : ℂ) • exponentialVector H v`. -/ +def coherentVector (v : H) : SymmetricFockSpace H := + Complex.exp ((-(‖v‖ ^ 2 / 2) : ℝ) : ℂ) • exponentialVector H v + +theorem inner_coherentVector (v w : H) : + inner ℂ (coherentVector H v) (coherentVector H w) = + weylKernel (id : H → H) v w := by + rw [coherentVector, coherentVector, inner_smul_left, inner_smul_right, + inner_exponentialVector, weylKernel_eq] + simp only [id_eq] + ring + +theorem coherentVector_dense_span : + (Submodule.span ℂ (Set.range (coherentVector H))).topologicalClosure = ⊤ := by + let spanCoherent := Submodule.span ℂ (Set.range (coherentVector H)) + have hs : Submodule.span ℂ (Set.range (exponentialVector H)) ≤ spanCoherent := by + refine Submodule.span_le.mpr (Set.range_subset_iff.mpr ?_) + intro v + have hv : coherentVector H v ∈ spanCoherent := + Submodule.subset_span (Set.mem_range_self v) + have h := spanCoherent.smul_mem (Complex.exp ((-(‖v‖ ^ 2 / 2) : ℝ) : ℂ))⁻¹ hv + simpa only [SetLike.mem_coe, coherentVector, smul_smul, + inv_mul_cancel₀ (Complex.exp_ne_zero _), one_smul] using h + have h := Submodule.topologicalClosure_mono hs + rw [exponentialVector_dense_span H] at h + exact top_unique h + +/-- Linear map for the weyl Fock realization₀, of type `H → H)) →ₗ[ℂ] SymmetricFockSpace H`. -/ +def weylFockRealization₀ : + RKHS.H₀ (weylRKHSKernel (id : H → H)) →ₗ[ℂ] SymmetricFockSpace H := + Finsupp.linearCombination ℂ (fun p : H × ℂ => p.2 • coherentVector H p.1) + +@[simp] theorem weylFockRealization₀_single (z : H) (v a : ℂ) : + weylFockRealization₀ H (Finsupp.single (z, v) a) = + a • (v • coherentVector H z) := + Finsupp.linearCombination_single ℂ (v := fun p : H × ℂ => p.2 • coherentVector H p.1) a (z, v) + +theorem inner_weylFockRealization₀ + (f g : RKHS.H₀ (weylRKHSKernel (id : H → H))) : + inner ℂ (weylFockRealization₀ H f) (weylFockRealization₀ H g) = inner ℂ f g := by + induction f using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_left] + | add f₁ f₂ h₁ h₂ => simp only [map_add, inner_add_left, h₁, h₂] + | single p a => + induction g using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_right] + | add g₁ g₂ h₁ h₂ => simp only [map_add, inner_add_right, h₁, h₂] + | single q b => + obtain ⟨z, v⟩ := p + obtain ⟨w, u⟩ := q + rw [weylFockRealization₀_single, weylFockRealization₀_single, inner_H₀_single] + simp only [inner_smul_left, inner_smul_right, inner_coherentVector] + ring + +/-- Linear isometry for the weyl Fock realization, of type `H → H) →ₗᵢ[ℂ] SymmetricFockSpace H`. -/ +def weylFockRealization : WeylSpace (id : H → H) →ₗᵢ[ℂ] SymmetricFockSpace H := + ((weylFockRealization₀ H).isometryOfInner (inner_weylFockRealization₀ H)).fromCompletion + +theorem weylFockRealization_weylVec (v : H) : + weylFockRealization H (weylVec (id : H → H) v) = coherentVector H v := by + rw [weylVec_def, weylFockRealization, LinearIsometry.fromCompletion_apply_coe] + change weylFockRealization₀ H (Finsupp.single (v, 1) 1) = coherentVector H v + simp + +theorem weylFockRealization_surjective : Function.Surjective (weylFockRealization H) := by + have hclosed : IsClosed (Set.range (weylFockRealization H)) := + (weylFockRealization H).isometry.isClosedEmbedding.isClosed_range + have hspan : Submodule.span ℂ (Set.range (coherentVector H)) ≤ + (weylFockRealization H).toLinearMap.range := by + apply Submodule.span_le.mpr + rintro _ ⟨v, rfl⟩ + exact ⟨weylVec (id : H → H) v, weylFockRealization_weylVec H v⟩ + have h := (Submodule.span ℂ (Set.range (coherentVector H))).topologicalClosure_minimal + hspan hclosed + rw [coherentVector_dense_span H] at h + exact LinearMap.range_eq_top.mp (top_unique h) + +/-- A genuine unitary onto the full literal symmetric Fock space. -/ +def weylFockEquiv : WeylSpace (id : H → H) ≃ₗᵢ[ℂ] SymmetricFockSpace H := + LinearIsometryEquiv.ofSurjective (weylFockRealization H) (weylFockRealization_surjective H) + +@[simp] theorem weylFockEquiv_weylVec (v : H) : + weylFockEquiv H (weylVec (id : H → H) v) = coherentVector H v := + weylFockRealization_weylVec H v + +/-- Fock Weyl given by `(weylFockEquiv H).conjStarAlgEquiv (weylCLM (id : H → H) (fun _ _ => rfl) +v)`. -/ +def fockWeyl (v : H) : SymmetricFockSpace H →L[ℂ] SymmetricFockSpace H := + (weylFockEquiv H).conjStarAlgEquiv (weylCLM (id : H → H) (fun _ _ => rfl) v) + +theorem fockWeyl_coherentVector (v w : H) : + fockWeyl H v (coherentVector H w) = + weylPhase (id : H → H) v w • coherentVector H (v + w) := by + rw [← weylFockEquiv_weylVec H w, fockWeyl, + LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, LinearIsometryEquiv.symm_apply_apply, + weylCLM_apply, weylOp_weylVec, map_smul, weylFockEquiv_weylVec] + +theorem fockWeyl_mem_unitary (v : H) : + fockWeyl H v ∈ unitary (SymmetricFockSpace H →L[ℂ] SymmetricFockSpace H) := by + exact Unitary.map_mem (weylFockEquiv H).conjStarAlgEquiv + (weylCLM_mem_unitary (id : H → H) (fun _ _ => rfl) v) + +theorem fockWeyl_mul (v w : H) : + fockWeyl H v * fockWeyl H w = + weylPhase (id : H → H) v w • fockWeyl H (v + w) := by + rw [fockWeyl, fockWeyl, ← map_mul, weylCLM_mul, map_smul] + rfl + +/-- Weyl cyclicity on the Fock vacuum follows from totality of the family's coherent vectors. -/ +theorem fockWeyl_cyclic_of_dense_coherentVector {X : Type*} (v : X → H) + (h : (Submodule.span ℂ (Set.range fun x => coherentVector H (v x))).topologicalClosure = ⊤) : + (Submodule.span ℂ (Set.range + (fun x => fockWeyl H (v x) (coherentVector H 0)))).topologicalClosure = ⊤ := by + have orbit : (fun x => fockWeyl H (v x) (coherentVector H 0)) = + (fun x => coherentVector H (v x)) := by + funext x + rw [fockWeyl_coherentVector, weylPhase_zero_right _ (fun _ _ => rfl), one_smul, add_zero] + rw [orbit] + exact h + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/FreeField/AnalyticOddOrder.lean b/LeanPool/VacuumBellSeparation/FreeField/AnalyticOddOrder.lean new file mode 100644 index 0000000000..0bbffce5f1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/AnalyticOddOrder.lean @@ -0,0 +1,126 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Analytic.Order +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.Analysis.SpecificLimits.Basic +public import Mathlib.Tactic +public import Mathlib.Analysis.Calculus.Deriv.Pow + +/-! +# The odd-order obstruction in the source injectivity argument + +An analytic square cannot equal a coefficient with an odd-order zero times +another nonzero analytic square. The massive one-variable polynomial has a +simple zero at `i M`, so entire `F,G` satisfying the manuscript's squared +Fourier relation must vanish. This is the scalar analytic step. +-/ + +@[expose] public section + +open Filter Set +open scoped Topology + +namespace VacuumBellSeparation + +/-- The parity obstruction for analytic functions, where the order is defined. -/ +theorem analytic_square_odd_order_locally_zero {f g q : ℂ → ℂ} {z : ℂ} {n : ℕ} + (hf : AnalyticAt ℂ f z) (hg : AnalyticAt ℂ g z) (hq : AnalyticAt ℂ q z) + (horder : analyticOrderAt q z = (2 * n + 1 : ℕ)) + (hrel : (f ^ 2) =ᶠ[𝓝 z] q * (g ^ 2)) : + (∀ᶠ w in 𝓝 z, f w = 0) ∧ (∀ᶠ w in 𝓝 z, g w = 0) := by + have hord := analyticOrderAt_congr hrel + rw [analyticOrderAt_pow hf, analyticOrderAt_mul hq (hg.pow 2), + analyticOrderAt_pow hg, horder] at hord + have hgTop : analyticOrderAt g z = ⊤ := by + by_contra hgTop + obtain ⟨b, hb⟩ := ENat.ne_top_iff_exists.mp hgTop + have hfTop : analyticOrderAt f z ≠ ⊤ := by + intro h + simp only [h, nsmul_eq_mul, Nat.cast_ofNat, ne_eq, OfNat.ofNat_ne_zero, + not_false_eq_true, ENat.mul_top, Nat.cast_add, Nat.cast_mul, Nat.cast_one, ← hb] at hord + exact ENat.top_ne_natCast (2 * n + 1 + 2 * b) (by + simpa only [Nat.cast_add, Nat.cast_mul, Nat.cast_ofNat, Nat.cast_one] using hord) + obtain ⟨a, ha⟩ := ENat.ne_top_iff_exists.mp hfTop + rw [← ha, ← hb] at hord + simp only [nsmul_eq_mul] at hord + have hnat : 2 * a = (2 * n + 1) + 2 * b := by exact_mod_cast hord + omega + have hgloc := analyticOrderAt_eq_top.mp hgTop + refine ⟨?_, hgloc⟩ + filter_upwards [hrel, hgloc] with w hw hgw + have hw' : f w ^ 2 = 0 := by simpa [hgw] using hw + exact eq_zero_of_pow_eq_zero hw' + +/-- On the complex plane, local zero germs extend to global zero functions. -/ +theorem entire_square_odd_order_zero {f g q : ℂ → ℂ} {z : ℂ} {n : ℕ} + (hf : AnalyticOnNhd ℂ f univ) (hg : AnalyticOnNhd ℂ g univ) + (hq : AnalyticAt ℂ q z) (horder : analyticOrderAt q z = (2 * n + 1 : ℕ)) + (hrel : (f ^ 2) =ᶠ[𝓝 z] q * (g ^ 2)) : f = 0 ∧ g = 0 := by + obtain ⟨hf0, hg0⟩ := analytic_square_odd_order_locally_zero + (hf z (mem_univ z)) (hg z (mem_univ z)) hq horder hrel + exact ⟨hf.eq_of_eventuallyEq analyticOnNhd_const hf0, + hg.eq_of_eventuallyEq analyticOnNhd_const hg0⟩ + +/-- The massive polynomial has the simple nonreal branch zero used in Section 2.2. -/ +theorem massive_polynomial_analyticOrder {M : ℝ} (hM : 0 < M) : + analyticOrderAt (fun z : ℂ => -(z ^ 2 + (M : ℂ) ^ 2)) (Complex.I * (M : ℂ)) = 1 := by + have ha : AnalyticAt ℂ (fun z : ℂ => -(z ^ 2 + (M : ℂ) ^ 2)) + (Complex.I * (M : ℂ)) := by fun_prop + apply ha.analyticOrderAt_eq_one_of_zero_deriv_ne_zero + · rw [mul_pow, Complex.I_sq] + ring + · have hd : HasDerivAt (fun z : ℂ => -(z ^ 2 + (M : ℂ) ^ 2)) + (-(2 * (Complex.I * (M : ℂ)))) (Complex.I * (M : ℂ)) := by + convert! (((hasDerivAt_id' (x := Complex.I * (M : ℂ))).pow 2).add_const + ((M : ℂ) ^ 2)).neg using 1; simp + rw [hd.deriv] + exact neg_ne_zero.mpr (mul_ne_zero (by norm_num) + (mul_ne_zero Complex.I_ne_zero (Complex.ofReal_ne_zero.mpr hM.ne'))) + +/-- Entire functions satisfying the squared massive Fourier relation vanish identically. -/ +theorem entire_massive_square_zero {M : ℝ} (hM : 0 < M) {f g : ℂ → ℂ} + (hf : AnalyticOnNhd ℂ f univ) (hg : AnalyticOnNhd ℂ g univ) + (hrel : ∀ z : ℂ, f z ^ 2 = -(z ^ 2 + (M : ℂ) ^ 2) * g z ^ 2) : + f = 0 ∧ g = 0 := by + apply entire_square_odd_order_zero (n := 0) + (q := fun z : ℂ => -(z ^ 2 + (M : ℂ) ^ 2)) + (z := Complex.I * (M : ℂ)) hf hg (by fun_prop) + (by simpa using massive_polynomial_analyticOrder hM) + exact Filter.Eventually.of_forall hrel + +/-- Equality on the real axis determines an entire function, by a punctured sequence tending to +zero. -/ +theorem entire_eq_of_real_eq {f g : ℂ → ℂ} + (hf : AnalyticOnNhd ℂ f univ) (hg : AnalyticOnNhd ℂ g univ) + (hreal : ∀ x : ℝ, f (x : ℂ) = g (x : ℂ)) : f = g := by + have ht0 : Tendsto (fun n : ℕ => ((1 / ((n : ℝ) + 1) : ℝ) : ℂ)) atTop (𝓝 (0 : ℂ)) := by + simpa only [Function.comp_def, Complex.ofReal_zero] + using (Complex.continuous_ofReal.tendsto (0 : ℝ)).comp + (tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)) + have ht : Tendsto (fun n : ℕ => ((1 / ((n : ℝ) + 1) : ℝ) : ℂ)) atTop (𝓝[≠] (0 : ℂ)) := by + refine tendsto_nhdsWithin_iff.mpr ⟨ht0, Filter.Eventually.of_forall fun n => ?_⟩ + simp only [Set.mem_compl_iff, Set.mem_singleton_iff, Complex.ofReal_eq_zero] + positivity + apply hf.eq_of_frequently_eq hg + exact ht.frequently (Filter.Eventually.frequently + (Filter.Eventually.of_forall fun n => hreal (1 / ((n : ℝ) + 1)))) + +/-- The scalar step of the manuscript's complex source-injectivity argument, starting on real +momenta. -/ +theorem entire_massive_square_zero_of_real {M : ℝ} (hM : 0 < M) {f g : ℂ → ℂ} + (hf : AnalyticOnNhd ℂ f univ) (hg : AnalyticOnNhd ℂ g univ) + (hreal : ∀ x : ℝ, f (x : ℂ) ^ 2 = + -((x : ℂ) ^ 2 + (M : ℂ) ^ 2) * g (x : ℂ) ^ 2) : f = 0 ∧ g = 0 := by + have hq : AnalyticOnNhd ℂ (fun z : ℂ => -(z ^ 2 + (M : ℂ) ^ 2)) univ := by + intro z _ + fun_prop + have heq := entire_eq_of_real_eq (hf.pow 2) (hq.mul (hg.pow 2)) hreal + exact entire_massive_square_zero hM hf hg (fun z => congrFun heq z) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/AntilinearGraphAdjoint.lean b/LeanPool/VacuumBellSeparation/FreeField/AntilinearGraphAdjoint.lean new file mode 100644 index 0000000000..2590c428a6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/AntilinearGraphAdjoint.lean @@ -0,0 +1,80 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.LinearPMap + +/-! +# Universal adjoint and square graphs of a reflected selfadjoint operator + +For conjugate-first inner products, the adjoint of an antilinear relation S +satisfies ⟨Sx,y⟩=⟨S*y,x⟩. Every graph vector is quantified; no test core or +unbounded-domain hypothesis is substituted for the actual adjoint condition. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped ComplexConjugate + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Graph adjoint of an antilinear relation, defined by the inner-product identity on every pair in +the original graph. -/ +def antilinearGraphAdjoint (S : Set (H × H)) : Set (H × H) := + {p | ∀ x y, (x, y) ∈ S → inner ℂ y p.1 = inner ℂ p.2 x} + +/-- Set of points satisfying the antilinear graph square condition with membership specified by `{p +| ∃ y, (p.1, y) ∈ S ∧ (y, p.2) ∈ antilinearGraphAdjoint S}`. -/ +def antilinearGraphSquare (S : Set (H × H)) : Set (H × H) := + {p | ∃ y, (p.1, y) ∈ S ∧ (y, p.2) ∈ antilinearGraphAdjoint S} + +theorem antilinearGraphAdjoint_reflected_selfAdjoint + (A : H →ₗ.[ℂ] H) (hA : IsSelfAdjoint A) (J : H → H) + (hJ : ∀ x, J (J x) = x) + (hinner : ∀ x y, inner ℂ (J x) y = inner ℂ (J y) x) (y z : H) : + (y, z) ∈ antilinearGraphAdjoint {p : H × H | (p.1, J p.2) ∈ A.graph} ↔ + (J y, z) ∈ A.graph := by + have he : A.graph.adjoint = A.graph := by + rw [← LinearPMap.adjoint_graph_eq_graph_adjoint hA.dense_domain] + exact congrArg LinearPMap.graph (show A.adjoint = A from hA) + conv_rhs => rw [← he, Submodule.mem_adjoint_iff] + constructor + · intro h x v hxv + have hs : (x, J v) ∈ {p : H × H | (p.1, J p.2) ∈ A.graph} := by + change (x, J (J v)) ∈ A.graph + rwa [hJ] + have hh := h x (J v) hs + rw [hinner v y] at hh + have hc := congrArg conj hh + rw [inner_conj_symm, inner_conj_symm] at hc + exact sub_eq_zero.mpr hc + · intro h x v hxv + have hh := sub_eq_zero.mp (h x (J v) hxv) + have hc := congrArg conj hh + rw [inner_conj_symm, inner_conj_symm] at hc + rw [← hinner (J v) y, hJ] at hc + exact hc + +theorem antilinearGraphSquare_reflected_selfAdjoint + (A : H →ₗ.[ℂ] H) (hA : IsSelfAdjoint A) (J : H → H) + (hJ : ∀ x, J (J x) = x) + (hinner : ∀ x y, inner ℂ (J x) y = inner ℂ (J y) x) (x z : H) : + (x, z) ∈ antilinearGraphSquare {p : H × H | (p.1, J p.2) ∈ A.graph} ↔ + ∃ v, (x, v) ∈ A.graph ∧ (v, z) ∈ A.graph := by + constructor + · rintro ⟨y, hxy, hyz⟩ + exact ⟨J y, hxy, (antilinearGraphAdjoint_reflected_selfAdjoint A hA J hJ hinner y z).mp hyz⟩ + · rintro ⟨v, hxv, hvz⟩ + refine ⟨J v, ?_, ?_⟩ + · change (x, J (J v)) ∈ A.graph + rwa [hJ] + · apply (antilinearGraphAdjoint_reflected_selfAdjoint A hA J hJ hinner (J v) z).mpr + rwa [hJ] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/AntilinearGraphTransport.lean b/LeanPool/VacuumBellSeparation/FreeField/AntilinearGraphTransport.lean new file mode 100644 index 0000000000..ca9616b250 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/AntilinearGraphTransport.lean @@ -0,0 +1,64 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.AntilinearGraphAdjoint + +/-! +# Unitary covariance of universal antilinear adjoint and square graphs + +The hypothesis identifies the entire original relation. The conclusions +quantify the full universal adjoint and retain its intermediate-domain +witness; no density or test-core approximation enters the transport. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {H K : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K] + +omit [CompleteSpace H] [CompleteSpace K] in +theorem antilinearGraphAdjoint_unitary (V : H ≃ₗᵢ[ℂ] K) + (S : Set (H × H)) (T : Set (K × K)) + (h : ∀ x y, (V x, V y) ∈ T ↔ (x, y) ∈ S) (x y : H) : + (V x, V y) ∈ antilinearGraphAdjoint T ↔ (x, y) ∈ antilinearGraphAdjoint S := by + constructor + · intro hx u v huv + have hh := hx (V u) (V v) ((h u v).mpr huv) + simpa only [LinearIsometryEquiv.inner_map_map] using hh + · intro hx u v huv + have hback : (V.symm u, V.symm v) ∈ S := by + apply (h _ _).mp + simpa only [LinearIsometryEquiv.apply_symm_apply] using huv + have hh := hx (V.symm u) (V.symm v) hback + calc + inner ℂ v (V x) = inner ℂ (V (V.symm v)) (V x) := by + rw [LinearIsometryEquiv.apply_symm_apply] + _ = inner ℂ (V.symm v) x := V.inner_map_map _ _ + _ = inner ℂ y (V.symm u) := hh + _ = inner ℂ (V y) (V (V.symm u)) := (V.inner_map_map _ _).symm + _ = inner ℂ (V y) u := by rw [LinearIsometryEquiv.apply_symm_apply] + +omit [CompleteSpace H] [CompleteSpace K] in +theorem antilinearGraphSquare_unitary (V : H ≃ₗᵢ[ℂ] K) + (S : Set (H × H)) (T : Set (K × K)) + (h : ∀ x y, (V x, V y) ∈ T ↔ (x, y) ∈ S) (x y : H) : + (V x, V y) ∈ antilinearGraphSquare T ↔ (x, y) ∈ antilinearGraphSquare S := by + constructor + · rintro ⟨v, hxv, hvy⟩ + refine ⟨V.symm v, (h _ _).mp ?_, ?_⟩ + · simpa only [LinearIsometryEquiv.apply_symm_apply] using hxv + · apply (antilinearGraphAdjoint_unitary V S T h _ _).mp + simpa only [LinearIsometryEquiv.apply_symm_apply] using hvy + · rintro ⟨v, hxv, hvy⟩ + exact ⟨V v, (h _ _).mpr hxv, + (antilinearGraphAdjoint_unitary V S T h _ _).mpr hvy⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/AveragedWedgeContour.lean b/LeanPool/VacuumBellSeparation/FreeField/AveragedWedgeContour.lean new file mode 100644 index 0000000000..f433a06710 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/AveragedWedgeContour.lean @@ -0,0 +1,140 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexTestWedgeContour +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceContinuity +public import LeanPool.VacuumBellSeparation.FreeField.EuclideanWedgeContainment +public import Mathlib.MeasureTheory.Integral.Prod + +/-! +# Genuine integrable averages of the literal Lorentz contours + +Each inner integral is integrable by the actual maximal graph and its +AE contour. Joint continuity gives measurability of the parameter +integral; the source-weight bound gives integrability and the probability +average bound. Only the physical containing geometry is required of the +family, with no averaged estimate assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +/-- Complex test contour integrand. -/ +noncomputable def complexTestContourIntegrand (m ℓ θ : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (u v : TimeZeroSource) + (p : EuclideanSpace ℝ (Fin 3)) : ℝ := + Real.exp (-2 * ℓ * dispersion m p * Real.sin θ) * + ‖complexSourceWave u (complexifiedSpacetimeMap Λ + (complexShellBoost m ((θ : ℂ) * Complex.I) p)) + + Complex.I * complexSourceWave v (complexifiedSpacetimeMap Λ + (complexShellBoost m ((θ : ℂ) * Complex.I) p))‖ ^ 2 + +theorem complexTestContourIntegrand_nonneg (m ℓ θ : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (u v : TimeZeroSource) (p : EuclideanSpace ℝ (Fin 3)) : + 0 ≤ complexTestContourIntegrand m ℓ θ Λ u v p := + mul_nonneg (Real.exp_pos _).le (sq_nonneg _) + +theorem continuous_complexTestContourIntegrand + {A : Type*} [TopologicalSpace A] (Λ : A → Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ x : Spacetime, Continuous fun a => Λ a x) + (m ℓ θ : ℝ) (u v : TimeZeroSource) : + Continuous (fun q : A × EuclideanSpace ℝ (Fin 3) => + complexTestContourIntegrand m ℓ θ (Λ q.1) u v q.2) := by + have hu := continuous_lorentzContourWave Λ hΛ m θ u + have hv := continuous_lorentzContourWave Λ hΛ m θ v + have hw := (continuous_dispersion m).comp (continuous_snd : Continuous + (Prod.snd : A × EuclideanSpace ℝ (Fin 3) → EuclideanSpace ℝ (Fin 3))) + unfold complexTestContourIntegrand + exact (Real.continuous_exp.comp ((continuous_const.mul hw).mul continuous_const)).mul + ((hu.add (continuous_const.mul hv)).norm.pow 2) + +theorem integrable_complexTestContour + {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) + {U : Set (EuclideanSpace ℝ (Fin 3))} {R : ℝ} (hR : 0 < R) + (hU : U ⊆ Metric.ball 0 R) + (hregion : doubleCone (0, (0 : EuclideanSpace ℝ (Fin 3))) R ⊆ Λ '' leftWedge ℓ) + (u v : SourceTestSpace hm U) {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + Integrable (complexTestContourIntegrand m ℓ (2 * Real.pi * c) Λ u.1 v.1) + (oneParticleMeasure m) := by + obtain ⟨F, hF, hFu⟩ := exists_spacetimeSourceL2_of_timeZeroSource_ball hm hR 0 u.1 + (u.2.1.trans hU) (u.2.2.trans hU) + obtain ⟨G, hG, hGv⟩ := exists_spacetimeSourceL2_of_timeZeroSource_ball hm hR 0 v.1 + (v.2.1.trans hU) (v.2.2.trans hU) + obtain ⟨χ, _, haeχ⟩ := timeZero_lorentzWedge_graph_ae hm ℓ Λ hΛ hfuture + F u.1 hFu (hF.trans hregion) hc hc2 + obtain ⟨ψ, _, haeψ⟩ := timeZero_lorentzWedge_graph_ae hm ℓ Λ hΛ hfuture + G v.1 hGv (hG.trans hregion) hc hc2 + have hu := MemLp.ae_eq haeχ (Lp.memLp _) + have hv := MemLp.ae_eq haeψ (Lp.memLp _) + let q := fun p => complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p) + have hmem : MemLp (fun p => wedgeContourPhase m ℓ (2 * Real.pi * c) p * + (complexSourceWave u.1 (q p) + Complex.I * complexSourceWave v.1 (q p))) + 2 (oneParticleMeasure m) := by + convert hu.add (hv.const_smul Complex.I) using 1 + funext p + change _ = _ + Complex.I * _ + ring + have hi := (memLp_two_iff_integrable_sq_norm hmem.aestronglyMeasurable).mp hmem + apply hi.congr + exact Filter.Eventually.of_forall fun p => by + change ‖wedgeContourPhase m ℓ (2 * Real.pi * c) p * + (complexSourceWave u.1 (q p) + Complex.I * complexSourceWave v.1 (q p))‖ ^ 2 = + Real.exp (-2 * ℓ * dispersion m p * Real.sin (2 * Real.pi * c)) * + ‖complexSourceWave u.1 (q p) + Complex.I * complexSourceWave v.1 (q p)‖ ^ 2 + rw [norm_mul, mul_pow, norm_wedgeContourPhase_sq] + +/-- Equation (5.2) for every complexified compact source and genuine +probability average, together with integrability of the outer integral. -/ +theorem averaged_complexTestContour_le_sourceWeight + {A : Type*} [TopologicalSpace A] [MeasurableSpace A] [BorelSpace A] + (ν : Measure A) [IsProbabilityMeasure ν] + {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + (Λ : A → Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ a, IsLorentzMap (Λ a)) (hfuture : ∀ a, IsOrthochronousMap (Λ a)) + (hcont : ∀ x : Spacetime, Continuous fun a => Λ a x) + (hbound : ∀ a, Real.sqrt 2 * spacetimeEuclideanOperatorNorm (Λ a).symm < ℓ) + {U : Set (EuclideanSpace ℝ (Fin 3))} {R : ℝ} (hR : 0 < R) + (hU : U ⊆ Metric.ball 0 R) (u v : SourceTestSpace hm U) + {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) : + Integrable (fun a => ∫ p, + complexTestContourIntegrand m (ℓ * R) (2 * Real.pi * c) (Λ a) u.1 v.1 p + ∂oneParticleMeasure m) ν ∧ + (∫ a, ∫ p, complexTestContourIntegrand m (ℓ * R) (2 * Real.pi * c) (Λ a) u.1 v.1 p + ∂oneParticleMeasure m ∂ν) ≤ + ‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal (v : SourceHilbert hm U))‖ ^ 2 := by + let : SigmaFinite (oneParticleMeasure m) := by + unfold oneParticleMeasure + infer_instance + let B := ‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal (v : SourceHilbert hm U))‖ ^ 2 + let f := fun a => ∫ p, + complexTestContourIntegrand m (ℓ * R) (2 * Real.pi * c) (Λ a) u.1 v.1 p + ∂oneParticleMeasure m + have hmeas : StronglyMeasurable f := + (continuous_complexTestContourIntegrand Λ hcont m (ℓ * R) (2 * Real.pi * c) + u.1 v.1).stronglyMeasurable.integral_prod_right' + have hnonneg (a : A) : 0 ≤ f a := integral_nonneg + (complexTestContourIntegrand_nonneg m (ℓ * R) (2 * Real.pi * c) (Λ a) u.1 v.1) + have hle (a : A) : f a ≤ B := + complexTest_lorentzContour_le_sourceWeight hm (ℓ * R) (Λ a) (hΛ a) (hfuture a) + hR hU (doubleCone_subset_transformed_leftWedge (Λ a) hR (hbound a)) u v hc hc2 + have hint : Integrable f ν := (integrable_const B).mono_nonneg hmeas.aestronglyMeasurable + (Filter.Eventually.of_forall hnonneg) (Filter.Eventually.of_forall hle) + refine ⟨hint, ?_⟩ + have h := integral_mono hint (integrable_const B) hle + simpa only [integral_const, probReal_univ, one_smul] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/AveragedWedgeContourAE.lean b/LeanPool/VacuumBellSeparation/FreeField/AveragedWedgeContourAE.lean new file mode 100644 index 0000000000..cd4d7f53db --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/AveragedWedgeContourAE.lean @@ -0,0 +1,68 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.AveragedWedgeContour + +/-! +# Probability averaging with almost-everywhere containing geometry + +The actual compactly supported parameter density may live on an +unbounded parameter carrier. Only the geometry on its support enters +the average; no pointwise estimate is asserted outside that support. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +theorem averaged_complexTestContour_le_sourceWeight_ae + {A : Type*} [TopologicalSpace A] [MeasurableSpace A] [BorelSpace A] + (ν : Measure A) [IsProbabilityMeasure ν] + {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + (Λ : A → Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ a, IsLorentzMap (Λ a)) (hfuture : ∀ a, IsOrthochronousMap (Λ a)) + (hcont : ∀ x : Spacetime, Continuous fun a => Λ a x) + (hbound : ∀ᵐ a ∂ν, Real.sqrt 2 * spacetimeEuclideanOperatorNorm (Λ a).symm < ℓ) + {U : Set (EuclideanSpace ℝ (Fin 3))} {R : ℝ} (hR : 0 < R) + (hU : U ⊆ Metric.ball 0 R) (u v : SourceTestSpace hm U) + {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) : + Integrable (fun a => ∫ p, + complexTestContourIntegrand m (ℓ * R) (2 * Real.pi * c) (Λ a) u.1 v.1 p + ∂oneParticleMeasure m) ν ∧ + (∫ a, ∫ p, complexTestContourIntegrand m (ℓ * R) (2 * Real.pi * c) (Λ a) u.1 v.1 p + ∂oneParticleMeasure m ∂ν) ≤ + ‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal (v : SourceHilbert hm U))‖ ^ 2 := by + let : SigmaFinite (oneParticleMeasure m) := by + unfold oneParticleMeasure + infer_instance + let B := ‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal (v : SourceHilbert hm U))‖ ^ 2 + let f := fun a => ∫ p, + complexTestContourIntegrand m (ℓ * R) (2 * Real.pi * c) (Λ a) u.1 v.1 p + ∂oneParticleMeasure m + have hmeas : StronglyMeasurable f := + (continuous_complexTestContourIntegrand Λ hcont m (ℓ * R) (2 * Real.pi * c) + u.1 v.1).stronglyMeasurable.integral_prod_right' + have hnonneg (a : A) : 0 ≤ f a := integral_nonneg + (complexTestContourIntegrand_nonneg m (ℓ * R) (2 * Real.pi * c) (Λ a) u.1 v.1) + have hle : ∀ᵐ a ∂ν, f a ≤ B := hbound.mono fun a ha => + complexTest_lorentzContour_le_sourceWeight hm (ℓ * R) (Λ a) (hΛ a) (hfuture a) + hR hU (doubleCone_subset_transformed_leftWedge (Λ a) hR ha) u v hc hc2 + have hint : Integrable f ν := (integrable_const B).mono_nonneg hmeas.aestronglyMeasurable + (Filter.Eventually.of_forall hnonneg) hle + refine ⟨hint, ?_⟩ + have h := integral_mono_ae hint (integrable_const B) hle + simpa only [integral_const, probReal_univ, one_smul] using h + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/BoundedL2Multiplier.lean b/LeanPool/VacuumBellSeparation/FreeField/BoundedL2Multiplier.lean new file mode 100644 index 0000000000..4039132736 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/BoundedL2Multiplier.lean @@ -0,0 +1,65 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionGenerator + +/-! +# Actual bounded multiplication on spatial L² + +The multiplier is constructed by the existing Hölder bilinear map with +exponents infinity, two and two. Lebesgue space is not assumed to have finite +measure. The operation agrees with actual Schwartz multiplication whenever +the coefficient has temperate growth. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +/-- Spatial L² with underlying type `Lp ℂ 2 (volume : Measure (EuclideanSpace ℝ (Fin 3)))`. -/ +noncomputable abbrev SpatialL2 := Lp ℂ 2 (volume : Measure (EuclideanSpace ℝ (Fin 3))) + +/-- Continuous linear map for the bounded L² multiplier, of type `SpatialL2 →L[ℂ] SpatialL2`. -/ +noncomputable def boundedL2Multiplier (w : EuclideanSpace ℝ (Fin 3) → ℂ) + (hw : MemLp w ⊤ volume) : SpatialL2 →L[ℂ] SpatialL2 := + (ContinuousLinearMap.mul ℂ ℂ).holderL volume ⊤ 2 2 (hw.toLp w) + +theorem coeFn_boundedL2Multiplier (w : EuclideanSpace ℝ (Fin 3) → ℂ) + (hw : MemLp w ⊤ volume) (f : SpatialL2) : + (boundedL2Multiplier w hw f : EuclideanSpace ℝ (Fin 3) → ℂ) =ᵐ[volume] + fun x => w x * f x := by + have h := (ContinuousLinearMap.mul ℂ ℂ).coeFn_holder (r := 2) (hw.toLp w) f + filter_upwards [h, hw.coeFn_toLp] with x hx hxw + simpa only [boundedL2Multiplier, ContinuousLinearMap.holderL_apply_apply, + hxw, ContinuousLinearMap.mul_apply'] using hx + +theorem norm_boundedL2Multiplier_apply_le (w : EuclideanSpace ℝ (Fin 3) → ℂ) + (hw : MemLp w ⊤ volume) {C : ℝ} (hC : ∀ᵐ x, ‖w x‖ ≤ C) (f : SpatialL2) : + ‖boundedL2Multiplier w hw f‖ ≤ C * ‖f‖ := by + apply Lp.norm_le_mul_norm_of_ae_le_mul + filter_upwards [coeFn_boundedL2Multiplier w hw f, hC] with x hx hcx + rw [hx, norm_mul] + exact mul_le_mul_of_nonneg_right hcx (norm_nonneg _) + +theorem norm_boundedL2Multiplier_le (w : EuclideanSpace ℝ (Fin 3) → ℂ) + (hw : MemLp w ⊤ volume) {C : ℝ} (hC₀ : 0 ≤ C) (hC : ∀ᵐ x, ‖w x‖ ≤ C) : + ‖boundedL2Multiplier w hw‖ ≤ C := + ContinuousLinearMap.opNorm_le_bound _ hC₀ (norm_boundedL2Multiplier_apply_le w hw hC) + +theorem boundedL2Multiplier_toLp (w : EuclideanSpace ℝ (Fin 3) → ℂ) + (hw : MemLp w ⊤ volume) (ht : Function.HasTemperateGrowth w) (f : SpatialSchwartz) : + boundedL2Multiplier w hw (f.toLp 2) = (SchwartzMap.smulLeftCLM ℂ w f).toLp 2 := by + apply Lp.ext + filter_upwards [coeFn_boundedL2Multiplier w hw (f.toLp 2), f.coeFn_toLp 2, + (SchwartzMap.smulLeftCLM ℂ w f).coeFn_toLp 2] with x hx hfx hprod + rw [hx, hfx, hprod, SchwartzMap.smulLeftCLM_apply_apply ht] + rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioGraph.lean b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioGraph.lean new file mode 100644 index 0000000000..1d1aea5d26 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioGraph.lean @@ -0,0 +1,77 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioOperator +public import LeanPool.VacuumBellSeparation.FreeField.UnitaryPartialTransport + +/-! +# Actual graphs and scalar regularizer changes + +Graph equalities retain the complete partial-operator domain. A nonzero +real rescaling of numerator and denominator does not alter a bounded ratio. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {E F : Type*} +variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] +variable [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +omit [CompleteSpace E] in +theorem boundedRatio_mem_graph (A B : E →L[ℂ] E) (hA : Function.Injective A) + (x y : E) : + (x, y) ∈ (boundedRatio A B hA).graph ↔ ∃ z, A z = x ∧ B z = y := by + rw [LinearPMap.mem_graph_iff] + constructor + · rintro ⟨w, hw, hv⟩ + obtain ⟨z, hz, hBz⟩ := boundedRatio_representation A B hA w + exact ⟨z, hz.trans hw, hBz.trans hv⟩ + · rintro ⟨z, rfl, rfl⟩ + exact ⟨⟨A z, ⟨z, rfl⟩⟩, rfl, boundedRatio_apply_range A B hA z⟩ + +omit [CompleteSpace E] in +theorem boundedRatio_real_smul (A B : E →L[ℂ] E) (hA : Function.Injective A) + (a : ℝ) (ha : a ≠ 0) (hAa : Function.Injective (a • A)) : + boundedRatio (a • A) (a • B) hAa = boundedRatio A B hA := by + apply LinearPMap.eq_of_eq_graph + ext p + rcases p with ⟨x, y⟩ + rw [boundedRatio_mem_graph, boundedRatio_mem_graph] + constructor + · rintro ⟨z, hz, hv⟩ + refine ⟨a • z, ?_, ?_⟩ + · simpa only [map_smul_of_tower, smul_apply] using hz + · simpa only [map_smul_of_tower, smul_apply] using hv + · rintro ⟨z, rfl, rfl⟩ + refine ⟨a⁻¹ • z, ?_, ?_⟩ <;> + simp only [smul_apply, map_smul_of_tower, smul_smul, mul_inv_cancel₀ ha, one_smul] + +omit [CompleteSpace E] [CompleteSpace F] in +theorem unitaryPartialTransport_mem_graph (V : E ≃ₗᵢ[ℂ] F) (T : E →ₗ.[ℂ] E) + (x y : F) : + (x, y) ∈ (unitaryPartialTransport V T).graph ↔ (V.symm x, V.symm y) ∈ T.graph := by + rw [LinearPMap.mem_graph_iff, LinearPMap.mem_graph_iff] + constructor + · rintro ⟨w, hw, hv⟩ + refine ⟨⟨V.symm w, w.property⟩, congrArg V.symm hw, ?_⟩ + simpa only [unitaryPartialTransport_apply, LinearIsometryEquiv.symm_apply_apply] using + congrArg V.symm hv + · rintro ⟨w, hw, hv⟩ + have hx : V.symm x ∈ T.domain := by + change (w : E) = V.symm x at hw + rw [← hw] + exact w.property + refine ⟨⟨x, hx⟩, rfl, ?_⟩ + have he : (⟨V.symm x, hx⟩ : T.domain) = w := Subtype.ext hw.symm + rw [unitaryPartialTransport_apply, he, hv, LinearIsometryEquiv.apply_symm_apply] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioOperator.lean b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioOperator.lean new file mode 100644 index 0000000000..440644b805 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioOperator.lean @@ -0,0 +1,113 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.LinearPMap +public import Mathlib.Analysis.InnerProductSpace.Adjoint + +/-! +# A selfadjoint unbounded ratio of commuting bounded operators + +The partial operator L(Ax)=Bx has its exact domain range A. The identity +A²+B²=2I closes the adjoint-domain argument algebraically: Az=By implies +(y,z)=(Aw,Bw) for w=(Ay+Bz)/2. No inverse of A is taken in the bounded +operator algebra, and the range of A need not be closed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap +open scoped InnerProductSpace + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Linear map for the bounded ratio. -/ +noncomputable def boundedRatio (A B : E →L[ℂ] E) (hA : Function.Injective A) : E →ₗ.[ℂ] E where + domain := A.range + toFun := B.toLinearMap.comp (LinearEquiv.ofInjective A.toLinearMap hA).symm.toLinearMap + +omit [CompleteSpace E] in +@[simp] theorem boundedRatio_apply_range (A B : E →L[ℂ] E) (hA : Function.Injective A) + (x : E) : boundedRatio A B hA ⟨A x, ⟨x, rfl⟩⟩ = B x := by + change B ((LinearEquiv.ofInjective A.toLinearMap hA).symm + (LinearEquiv.ofInjective A.toLinearMap hA x)) = B x + rw [LinearEquiv.symm_apply_apply] + +omit [CompleteSpace E] in +theorem boundedRatio_representation (A B : E →L[ℂ] E) (hA : Function.Injective A) + (x : (boundedRatio A B hA).domain) : + ∃ z, A z = (x : E) ∧ B z = boundedRatio A B hA x := by + refine ⟨(LinearEquiv.ofInjective A.toLinearMap hA).symm x, ?_, rfl⟩ + exact LinearEquiv.ofInjective_symm_apply _ _ + +theorem boundedRatio_isFormalAdjoint (A B : E →L[ℂ] E) (hA : Function.Injective A) + (hAs : IsSelfAdjoint A) (hBs : IsSelfAdjoint B) (hc : Commute A B) : + (boundedRatio A B hA).IsFormalAdjoint (boundedRatio A B hA) := by + intro x y + obtain ⟨u, hu, hBu⟩ := boundedRatio_representation A B hA x + obtain ⟨v, hv, hBv⟩ := boundedRatio_representation A B hA y + rw [← hu, ← hv, ← hBu, ← hBv] + calc + inner ℂ (B u) (A v) = inner ℂ u (B (A v)) := hBs.isSymmetric u (A v) + _ = inner ℂ u (A (B v)) := by + rw [show B (A v) = A (B v) from congrArg (fun T : E →L[ℂ] E => T v) hc.eq.symm] + _ = inner ℂ (A u) (B v) := (hAs.isSymmetric u (B v)).symm + +/-- Exact maximal adjoint, including its domain, from a bounded algebraic identity. -/ +theorem boundedRatio_isSelfAdjoint (A B : E →L[ℂ] E) (hA : Function.Injective A) + (hd : DenseRange A) (hAs : IsSelfAdjoint A) (hBs : IsSelfAdjoint B) + (hc : Commute A B) (hsq : A * A + B * B = 2) : + IsSelfAdjoint (boundedRatio A B hA) := by + let T := boundedRatio A B hA + have hdom : Dense (T.domain : Set E) := hd + have hsym : T.IsFormalAdjoint T := boundedRatio_isFormalAdjoint A B hA hAs hBs hc + have hle : T ≤ T.adjoint := LinearPMap.IsFormalAdjoint.le_adjoint hdom hsym + have hrev : T.adjoint ≤ T := by + have hrep (y : T.adjoint.domain) : + ∃ w, A w = (y : E) ∧ B w = T.adjoint y := by + let z := T.adjoint y + have heq : A z = B y := by + apply ext_inner_right ℂ + intro x + calc + inner ℂ (A z) x = inner ℂ z (A x) := hAs.isSymmetric z x + _ = inner ℂ (y : E) (B x) := by + simpa only [T, boundedRatio_apply_range] using + (LinearPMap.adjoint_isFormalAdjoint (T := T) hdom y ⟨A x, ⟨x, rfl⟩⟩) + _ = inner ℂ (B y) x := (hBs.isSymmetric y x).symm + have hcomm (v : E) : A (B v) = B (A v) := + congrArg (fun Q : E →L[ℂ] E => Q v) hc.eq + have hsum (v : E) : A (A v) + B (B v) = (2 : ℂ) • v := by + have hh := congrArg (fun Q : E →L[ℂ] E => Q v) hsq + simpa only [add_apply, mul_apply_eq_comp, ofNat_apply, two_smul] using hh + refine ⟨(1 / 2 : ℂ) • (A y + B z), ?_, ?_⟩ + · rw [map_smul, map_add, hcomm z, heq, hsum] + norm_num [smul_smul, z] + · rw [map_smul, map_add, ← hcomm y, ← heq, hsum] + norm_num [smul_smul, z] + refine ⟨?_, ?_⟩ + · intro y hy + obtain ⟨w, hw, _⟩ := hrep ⟨y, hy⟩ + exact ⟨w, hw⟩ + · intro y y' hyy' + obtain ⟨w, hw, hz⟩ := hrep y + have hy' : y' = (⟨A w, ⟨w, rfl⟩⟩ : T.domain) := + Subtype.ext (hyy'.symm.trans hw.symm) + rw [hy'] + exact hz.symm.trans (boundedRatio_apply_range A B hA w).symm + change T.adjoint = T + exact le_antisymm hrev hle + +theorem boundedRatio_isClosed (A B : E →L[ℂ] E) (hA : Function.Injective A) + (hd : DenseRange A) (hAs : IsSelfAdjoint A) (hBs : IsSelfAdjoint B) + (hc : Commute A B) (hsq : A * A + B * B = 2) : + (boundedRatio A B hA).IsClosed := + (boundedRatio_isSelfAdjoint A B hA hd hAs hBs hc hsq).isClosed + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioResolvent.lean b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioResolvent.lean new file mode 100644 index 0000000000..9bed8f6e91 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioResolvent.lean @@ -0,0 +1,134 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioOperator +public import Mathlib.Algebra.GroupWithZero.Commute + +/-! +# Maximal bounded ratios and their intrinsic resolvent + +For commuting bounded selfadjoint A,B, injective A with dense range, and +boundedly invertible A+B, the operator L(Ax)=Bx is selfadjoint on its full +range domain. Its actual inverse (1+L)⁻¹ is A(A+B)⁻¹. Neither A nor B is +assumed to have a bounded inverse. These results support a resolvent-based +extended continuous calculus for positive unbounded operators. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap +open scoped InnerProductSpace + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +omit [CompleteSpace E] in +private theorem commute_ringInverse_of_isUnit (A Q : E →L[ℂ] E) + (hc : Commute A Q) (hQ : IsUnit Q) : Commute A (Ring.inverse Q) := by + rw [Ring.inverse_of_isUnit hQ] + apply Commute.units_inv_right + simpa only [IsUnit.unit_spec] using hc + +omit [CompleteSpace E] in +/-- A bounded reconstruction proves that the weak graph equation is maximal. -/ +theorem boundedRatio_graph_equation (A B : E →L[ℂ] E) (hA : Function.Injective A) + (hc : Commute A B) (hQ : IsUnit (A + B)) (x y : E) : + (∃ hx : x ∈ (boundedRatio A B hA).domain, boundedRatio A B hA ⟨x, hx⟩ = y) ↔ + A y = B x := by + constructor + · rintro ⟨hx, hy⟩ + obtain ⟨w, hw, hBw⟩ := boundedRatio_representation A B hA ⟨x, hx⟩ + change A w = x at hw + rw [← hy, ← hBw, ← hw] + exact congrArg (fun Q : E →L[ℂ] E => Q w) hc.eq + · intro heq + let Q := A + B + let w := Ring.inverse Q (x + y) + have hAi : Commute A (Ring.inverse Q) := + commute_ringInverse_of_isUnit A Q ((Commute.refl A).add_right hc) hQ + have hBi : Commute B (Ring.inverse Q) := + commute_ringInverse_of_isUnit B Q (hc.symm.add_right (Commute.refl B)) hQ + have hinv (v : E) : Ring.inverse Q (Q v) = v := by + simpa only [mul_apply_eq_comp, one_apply_eq_self] using + congrArg (fun T : E →L[ℂ] E => T v) (Ring.inverse_mul_cancel Q hQ) + have hw : A w = x := by + change (A * Ring.inverse Q) (x + y) = x + rw [hAi.eq] + change Ring.inverse Q (A (x + y)) = x + rw [map_add, heq] + exact hinv x + have hBw : B w = y := by + change (B * Ring.inverse Q) (x + y) = y + rw [hBi.eq] + change Ring.inverse Q (B (x + y)) = y + rw [map_add, ← heq] + exact hinv y + refine ⟨⟨w, hw⟩, ?_⟩ + have hh : (⟨x, ⟨w, hw⟩⟩ : (boundedRatio A B hA).domain) = + ⟨A w, ⟨w, rfl⟩⟩ := Subtype.ext hw.symm + rw [hh, boundedRatio_apply_range, hBw] + +theorem boundedRatio_isSelfAdjoint_of_isUnit_add (A B : E →L[ℂ] E) + (hA : Function.Injective A) (hd : DenseRange A) + (hAs : IsSelfAdjoint A) (hBs : IsSelfAdjoint B) + (hc : Commute A B) (hQ : IsUnit (A + B)) : + IsSelfAdjoint (boundedRatio A B hA) := by + let T := boundedRatio A B hA + have hdom : Dense (T.domain : Set E) := hd + have hsym : T.IsFormalAdjoint T := boundedRatio_isFormalAdjoint A B hA hAs hBs hc + have hle : T ≤ T.adjoint := LinearPMap.IsFormalAdjoint.le_adjoint hdom hsym + have hrev : T.adjoint ≤ T := by + have hrep (y : T.adjoint.domain) : + ∃ hy : (y : E) ∈ T.domain, T ⟨y, hy⟩ = T.adjoint y := by + apply (boundedRatio_graph_equation A B hA hc hQ _ _).mpr + apply ext_inner_right ℂ + intro x + calc + inner ℂ (A (T.adjoint y)) x = inner ℂ (T.adjoint y) (A x) := hAs.isSymmetric _ _ + _ = inner ℂ (y : E) (B x) := by + simpa only [T, boundedRatio_apply_range] using + (LinearPMap.adjoint_isFormalAdjoint (T := T) hdom y ⟨A x, ⟨x, rfl⟩⟩) + _ = inner ℂ (B y) x := (hBs.isSymmetric y x).symm + refine ⟨fun y hy => (hrep ⟨y, hy⟩).choose, ?_⟩ + intro y y' hyy' + obtain ⟨hy, hh⟩ := hrep y + have he : y' = (⟨(y : E), hy⟩ : T.domain) := Subtype.ext hyy'.symm + rw [he] + exact hh.symm + change T.adjoint = T + exact le_antisymm hrev hle + +omit [CompleteSpace E] in +/-- Characterization of the actual resolvent, including its domain witness. -/ +theorem boundedRatio_resolvent_iff (A B : E →L[ℂ] E) (hA : Function.Injective A) + (hQ : IsUnit (A + B)) (x y : E) : + (∃ hy : y ∈ (boundedRatio A B hA).domain, + y + boundedRatio A B hA ⟨y, hy⟩ = x) ↔ + (A * Ring.inverse (A + B)) x = y := by + have hinv (v : E) : Ring.inverse (A + B) ((A + B) v) = v := by + simpa only [mul_apply_eq_comp, one_apply_eq_self] using + congrArg (fun T : E →L[ℂ] E => T v) (Ring.inverse_mul_cancel (A + B) hQ) + have hinv' (v : E) : (A + B) (Ring.inverse (A + B) v) = v := by + simpa only [mul_apply_eq_comp, one_apply_eq_self] using + congrArg (fun T : E →L[ℂ] E => T v) (Ring.mul_inverse_cancel (A + B) hQ) + constructor + · rintro ⟨hy, heq⟩ + obtain ⟨w, hw, hBw⟩ := boundedRatio_representation A B hA ⟨y, hy⟩ + have hx : (A + B) w = x := by simpa only [add_apply, hw, hBw] using heq + rw [← hx, mul_apply_eq_comp, hinv, hw] + · intro heq + let w := Ring.inverse (A + B) x + have hw : A w = y := heq + refine ⟨⟨w, hw⟩, ?_⟩ + have hh : (⟨y, ⟨w, hw⟩⟩ : (boundedRatio A B hA).domain) = + ⟨A w, ⟨w, rfl⟩⟩ := Subtype.ext hw.symm + rw [hh, boundedRatio_apply_range, ← hw] + exact hinv' x + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioSquare.lean b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioSquare.lean new file mode 100644 index 0000000000..70c7bbf43c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioSquare.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioOperator +public import LeanPool.VacuumBellSeparation.FreeField.PartialOperatorComposition + +/-! +# The full domain and action of the square of a bounded ratio + +For commuting A,B with A²+B²=2I, the actual maximal square of L(Ax)=Bx +has domain range A² and sends A²x to B²x. This is a domain theorem, +not a formal cancellation of an unbounded inverse. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] +variable (A B : E →L[ℂ] E) (hA : Function.Injective A) +variable (hc : Commute A B) (hsq : A * A + B * B = 2) + +include hc hsq in +omit [CompleteSpace E] in +theorem boundedRatio_square_mem_domain (x : E) : + x ∈ (partialComp (boundedRatio A B hA) (boundedRatio A B hA)).domain ↔ + ∃ z, A (A z) = x := by + rw [partialComp_domain] + constructor + · rintro ⟨hx, hLx⟩ + obtain ⟨u, hu, hBu⟩ := boundedRatio_representation A B hA ⟨x, hx⟩ + obtain ⟨v, hv⟩ := hLx + have heq : A v = B u := hv.trans hBu.symm + let w := (1 / 2 : ℂ) • (A u + B v) + have hw : A w = u := by + have hcomm : A (B v) = B (A v) := + congrArg (fun Q : E →L[ℂ] E => Q v) hc.eq + have hsum : A (A u) + B (B u) = (2 : ℂ) • u := by + simpa only [add_apply, mul_apply_eq_comp, ofNat_apply, two_smul] using + congrArg (fun Q : E →L[ℂ] E => Q u) hsq + rw [show A w = (1 / 2 : ℂ) • (A (A u) + A (B v)) by simp [w], hcomm, heq, hsum] + norm_num [smul_smul] + exact ⟨w, by rw [hw, hu]⟩ + · rintro ⟨z, rfl⟩ + refine ⟨⟨A z, rfl⟩, ?_⟩ + rw [boundedRatio_apply_range] + exact ⟨B z, congrArg (fun Q : E →L[ℂ] E => Q z) hc.eq⟩ + +include hc in +omit [CompleteSpace E] in +/-- The square's value at every point of its proved maximal domain. -/ +theorem boundedRatio_square_apply (z : E) + (hx : A (A z) ∈ (partialComp (boundedRatio A B hA) (boundedRatio A B hA)).domain) : + partialComp (boundedRatio A B hA) (boundedRatio A B hA) ⟨A (A z), hx⟩ = B (B z) := by + have hval : boundedRatio A B hA ⟨A (A z), ⟨A z, rfl⟩⟩ = A (B z) := by + rw [boundedRatio_apply_range] + exact congrArg (fun Q : E →L[ℂ] E => Q z) hc.eq.symm + have hy : boundedRatio A B hA ⟨A (A z), ⟨A z, rfl⟩⟩ ∈ (boundedRatio A B hA).domain := + ⟨B z, hval.symm⟩ + rw [partialComp_apply _ _ ⟨A (A z), hx⟩ ⟨A z, rfl⟩ hy] + have hsub : (⟨boundedRatio A B hA ⟨A (A z), ⟨A z, rfl⟩⟩, hy⟩ : + (boundedRatio A B hA).domain) = ⟨A (B z), ⟨B z, rfl⟩⟩ := Subtype.ext hval + rw [hsub, boundedRatio_apply_range] + +include hc hsq in +omit [CompleteSpace E] in +theorem boundedRatio_square_eq : + partialComp (boundedRatio A B hA) (boundedRatio A B hA) = + boundedRatio (A * A) (B * B) (hA.comp hA) := by + apply LinearPMap.ext + · ext x + exact boundedRatio_square_mem_domain A B hA hc hsq x + · intro x hx hy + obtain ⟨z, hz⟩ := (boundedRatio_square_mem_domain A B hA hc hsq x).mp hx + subst x + exact (boundedRatio_square_apply A B hA hc z hx).trans + (boundedRatio_apply_range (A * A) (B * B) (hA.comp hA) z).symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioSum.lean b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioSum.lean new file mode 100644 index 0000000000..5e783df2b6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioSum.lean @@ -0,0 +1,71 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioOperator + +/-! +# Selfadjointness of a ratio with complementary bounded denominator + +For commuting selfadjoint A,B with A+B=2I, the adjoint-domain equation +Az=By is solved exactly by w=(y+z)/2. This proves maximal selfadjointness +of L(Ax)=Bx on range A even when A has no bounded inverse. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap +open scoped InnerProductSpace + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem boundedRatio_isSelfAdjoint_of_sum_eq_two (A B : E →L[ℂ] E) + (hA : Function.Injective A) (hd : DenseRange A) + (hAs : IsSelfAdjoint A) (hBs : IsSelfAdjoint B) + (hc : Commute A B) (hsum : A + B = 2) : + IsSelfAdjoint (boundedRatio A B hA) := by + let T := boundedRatio A B hA + have hdom : Dense (T.domain : Set E) := hd + have hsym : T.IsFormalAdjoint T := boundedRatio_isFormalAdjoint A B hA hAs hBs hc + have hle : T ≤ T.adjoint := LinearPMap.IsFormalAdjoint.le_adjoint hdom hsym + have hrev : T.adjoint ≤ T := by + have hrep (y : T.adjoint.domain) : + ∃ w, A w = (y : E) ∧ B w = T.adjoint y := by + let z := T.adjoint y + have heq : A z = B y := by + apply ext_inner_right ℂ + intro x + calc + inner ℂ (A z) x = inner ℂ z (A x) := hAs.isSymmetric z x + _ = inner ℂ (y : E) (B x) := by + simpa only [T, boundedRatio_apply_range] using + (LinearPMap.adjoint_isFormalAdjoint (T := T) hdom y ⟨A x, ⟨x, rfl⟩⟩) + _ = inner ℂ (B y) x := (hBs.isSymmetric y x).symm + have hsum' (v : E) : A v + B v = (2 : ℂ) • v := by + simpa only [add_apply, ofNat_apply, two_smul] using + congrArg (fun Q : E →L[ℂ] E => Q v) hsum + refine ⟨(1 / 2 : ℂ) • ((y : E) + z), ?_, ?_⟩ + · rw [map_smul, map_add, heq, hsum'] + norm_num [smul_smul, z] + · rw [map_smul, map_add, ← heq, hsum'] + norm_num [smul_smul, z] + refine ⟨?_, ?_⟩ + · intro y hy + obtain ⟨w, hw, _⟩ := hrep ⟨y, hy⟩ + exact ⟨w, hw⟩ + · intro y y' hyy' + obtain ⟨w, hw, hz⟩ := hrep y + have hy' : y' = (⟨A w, ⟨w, rfl⟩⟩ : T.domain) := + Subtype.ext (hyy'.symm.trans hw.symm) + rw [hy'] + exact hz.symm.trans (boundedRatio_apply_range A B hA w).symm + change T.adjoint = T + exact le_antisymm hrev hle + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioTotal.lean b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioTotal.lean new file mode 100644 index 0000000000..eee5d8f02f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/BoundedRatioTotal.lean @@ -0,0 +1,54 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RatioRegularizerIndependence + +/-! +# The bounded case of an actual partial ratio + +If the denominator is a bounded unit, its range really is the whole +Hilbert space, and the partial ratio agrees with the ordinary bounded +operator. This result concerns equality of full partial maps. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +omit [CompleteSpace E] in +theorem boundedRatio_eq_toPMap_of_isUnit (A B : E →L[ℂ] E) + (hi : Function.Injective A) (hA : IsUnit A) : + boundedRatio A B hi = (B * Ring.inverse A).toPMap ⊤ := by + have hr (x : E) : A (Ring.inverse A x) = x := by + simpa only [mul_apply_eq_comp, one_apply_eq_self] using + congrArg (fun Q : E →L[ℂ] E => Q x) (Ring.mul_inverse_cancel A hA) + apply LinearPMap.ext + · ext x + constructor + · intro _ + trivial + · intro _ + exact ⟨Ring.inverse A x, hr x⟩ + · intro x hx hy + have hh : (⟨x, hx⟩ : (boundedRatio A B hi).domain) = + ⟨A (Ring.inverse A x), ⟨Ring.inverse A x, rfl⟩⟩ := Subtype.ext (hr x).symm + rw [hh, boundedRatio_apply_range] + rfl + +omit [CompleteSpace E] in +theorem boundedRatio_eq_toPMap_of_factorization (A B F : E →L[ℂ] E) + (hi : Function.Injective A) (hA : IsUnit A) (hB : B = F * A) : + boundedRatio A B hi = F.toPMap ⊤ := by + rw [boundedRatio_eq_toPMap_of_isUnit A B hi hA, hB, + mul_assoc, Ring.mul_inverse_cancel A hA, mul_one] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/BoundedStripUniqueness.lean b/LeanPool/VacuumBellSeparation/FreeField/BoundedStripUniqueness.lean new file mode 100644 index 0000000000..c392435b66 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/BoundedStripUniqueness.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Complex.Hadamard + +/-! +# Uniqueness from one boundary for bounded Hilbert-valued strip functions + +The zero lower boundary is used in the genuine three-lines theorem. The upper +boundary is then recovered by continuity from the open strip. This allows +bounded frequency cutoffs without a separate contour integration theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Set Complex Complex.HadamardThreeLines + +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] + +theorem eq_zero_on_verticalClosedStrip_of_bounded_lower_zero (f : ℂ → E) + (hd : DiffContOnCl ℂ f (verticalStrip 0 1)) {M : ℝ} + (hb : ∀ z ∈ verticalClosedStrip 0 1, ‖f z‖ ≤ M) + (hzero : ∀ z : ℂ, z.re = 0 → f z = 0) + {z : ℂ} (hz : z ∈ verticalClosedStrip 0 1) : f z = 0 := by + have hB : BddAbove ((norm ∘ f) '' verticalClosedStrip 0 1) := by + refine ⟨M, ?_⟩ + rintro _ ⟨w, hw, rfl⟩ + exact hb w hw + have hinterior : ∀ w ∈ verticalStrip 0 1, ‖f w‖ ≤ 0 := by + intro w hw + have h := norm_le_interp_of_mem_verticalClosedStrip₀₁' f + (z := w) (a := 0) (b := M) ⟨hw.1.le, hw.2.le⟩ hd hB + (fun v hv => by rw [hzero v hv, norm_zero]) + (fun v hv => hb v ⟨by rw [hv]; norm_num, by rw [hv]⟩) + simpa only [Real.zero_rpow (show 1 - w.re ≠ 0 by linarith [hw.2]), zero_mul] using h + apply norm_le_zero_iff.mp + apply le_on_closure hinterior (continuous_norm.comp_continuousOn hd.2) continuousOn_const + simpa only [verticalStrip, verticalClosedStrip, Complex.closure_preimage_re, + closure_Ioo (zero_ne_one : (0 : ℝ) ≠ 1)] using hz + +theorem eq_zero_on_horizontalClosedStrip_of_bounded_lower_zero {a : ℝ} (ha : 0 < a) + (f : ℂ → E) (hd : DiffContOnCl ℂ f (Complex.im ⁻¹' Ioo 0 a)) {M : ℝ} + (hb : ∀ z : ℂ, 0 ≤ z.im → z.im ≤ a → ‖f z‖ ≤ M) + (hzero : ∀ t : ℝ, f t = 0) {z : ℂ} (hz₀ : 0 ≤ z.im) (hza : z.im ≤ a) : + f z = 0 := by + let R : ℂ → ℂ := fun w => (a : ℂ) * Complex.I * w + have him (w : ℂ) : (R w).im = a * w.re := by simp [R, Complex.mul_im, Complex.mul_re] + have hR : Differentiable ℂ R := by dsimp [R]; fun_prop + have hm : MapsTo R (verticalStrip 0 1) (Complex.im ⁻¹' Ioo 0 a) := by + intro w hw + change 0 < (R w).im ∧ (R w).im < a + rw [him] + exact ⟨mul_pos ha hw.1, by nlinarith [hw.2]⟩ + have hdR : DiffContOnCl ℂ (f ∘ R) (verticalStrip 0 1) := + hd.comp hR.diffContOnCl hm + let w : ℂ := -Complex.I * z / (a : ℂ) + have hwre : w.re = z.im / a := by simp [w, Complex.div_ofReal_re, Complex.mul_re] + have hw : w ∈ verticalClosedStrip 0 1 := by + change 0 ≤ w.re ∧ w.re ≤ 1 + rw [hwre] + exact ⟨div_nonneg hz₀ ha.le, (div_le_one ha).mpr hza⟩ + have hRw : R w = z := by + dsimp [R, w] + field_simp [ha.ne'] + simp [] + have he := eq_zero_on_verticalClosedStrip_of_bounded_lower_zero (f ∘ R) hdR + (M := M) (fun v hv => hb (R v) (by rw [him]; exact mul_nonneg ha.le hv.1) + (by rw [him]; nlinarith [hv.2])) + (fun v hv => by + have hi : (R v).im = 0 := by rw [him, hv, mul_zero] + have hr : R v = ((R v).re : ℂ) := by + apply Complex.ext + · rfl + · simpa only [Complex.ofReal_im] using hi + change f (R v) = 0 + rw [hr] + exact hzero (R v).re) hw + simpa only [Function.comp_apply, hRw] using he + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CanonicalContractionExhaustion.lean b/LeanPool/VacuumBellSeparation/FreeField/CanonicalContractionExhaustion.lean new file mode 100644 index 0000000000..f7d3a13366 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CanonicalContractionExhaustion.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.VacuumComplexCovarianceDefs +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalEffectExhaustion +public import LeanPool.VacuumBellSeparation.Bell.KaplanskyContractions + +/-! +# Finite canonical exhaustion for selfadjoint contractions and covariance + +The covariance is the actual complex vacuum covariance, with its complex +norm. Thus the limit argument does not need to assume the product of two +observables is selfadjoint. All approximants act in the same physical +vacuum Hilbert space and retain operator norm at most one. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology +open scoped InnerProductSpace + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem local_saContraction_finite_canonical_strong_approximation + (V : FreeFieldVacuum m H) (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + {A : H →L[ℂ] H} (hA : A ∈ saContractions (timeZeroLocalAlgebra V hm U)) : + ∃ As : (Finset H × ℕ) → (H →L[ℂ] H), + (∀ i, ∃ S : Submodule ℝ TimeZeroSource, IsCanonicalSourceSystem U S ∧ + As i ∈ saContractions (canonicalSourceAlgebra V hm S)) ∧ + (∀ i, ‖As i‖ ≤ 1) ∧ ∀ x : H, Tendsto (fun i => As i x) atTop (𝓝 (A x)) := by + have hmem : A ∈ generatedVNA (canonicalUnionStarAlgebra V hm U : Set (H →L[ℂ] H)) := by + rw [generatedVNA_canonicalUnionStarAlgebra] + exact hA.1 + obtain ⟨As, hAs, hstrong⟩ := exists_saContraction_strong_approximation + (canonicalUnionStarAlgebra V hm U) + (fun f B hB => cfc_mem_canonicalUnionStarAlgebra V hm U f hB) hmem hA.2.1 hA.2.2 + refine ⟨As, ?_, fun i => (hAs i).2.2, hstrong⟩ + intro i + obtain ⟨S, hS, hmem⟩ := (mem_canonicalUnionStarAlgebra_iff V hm U _).mp (hAs i).1 + exact ⟨S, hS, hmem, (hAs i).2⟩ + +omit [CompleteSpace H] in +theorem tendsto_vacuumComplexCovariance {ι : Type*} {l : Filter ι} + (Ω : H) {As Bs : ι → H →L[ℂ] H} {A B : H →L[ℂ] H} {C : ℝ} + (hbound : ∀ i, ‖As i‖ ≤ C) + (hA : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) + (hB : ∀ x, Tendsto (fun i => Bs i x) l (𝓝 (B x))) : + Tendsto (fun i => vacuumComplexCovariance Ω (As i) (Bs i)) l + (𝓝 (vacuumComplexCovariance Ω A B)) := by + have heval : Continuous (fun x : H => ⟪Ω, x⟫_ℂ) := by fun_prop + exact (heval.continuousAt.tendsto.comp (strong_tendsto_mul_of_bounded hbound hA hB Ω)).sub + ((heval.continuousAt.tendsto.comp (hA Ω)).mul (heval.continuousAt.tendsto.comp (hB Ω))) + +/-- The full covariance clause of Lemma 2.3 for actual local contractions. -/ +theorem canonical_covariance_bound_extends_to_local + (V : FreeFieldVacuum m H) (hm : 0 < m) + (U W : Set (EuclideanSpace ℝ (Fin 3))) (C : ℝ) + (hfinite : ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∀ A ∈ saContractions (canonicalSourceAlgebra V hm S), + ∀ B ∈ saContractions (canonicalSourceAlgebra V hm T), + ‖vacuumComplexCovariance V.vacuum A B‖ ≤ C) + {A B : H →L[ℂ] H} (hA : A ∈ saContractions (timeZeroLocalAlgebra V hm U)) + (hB : B ∈ saContractions (timeZeroLocalAlgebra V hm W)) : + ‖vacuumComplexCovariance V.vacuum A B‖ ≤ C := by + classical + obtain ⟨As, hAs, hAnorm, hAlim⟩ := local_saContraction_finite_canonical_strong_approximation V + hm U hA + obtain ⟨Bs, hBs, hBnorm, hBlim⟩ := local_saContraction_finite_canonical_strong_approximation V + hm W hB + have ht := tendsto_vacuumComplexCovariance V.vacuum + (l := (atTop : Filter (Finset H × ℕ)) ×ˢ (atTop : Filter (Finset H × ℕ))) + (fun ij => hAnorm ij.1) (fun x => (hAlim x).comp tendsto_fst) + (fun x => (hBlim x).comp tendsto_snd) + apply isClosed_Iic.mem_of_tendsto ht.norm + apply Eventually.of_forall + intro ij + obtain ⟨S, hS, hA'⟩ := hAs ij.1 + obtain ⟨T, hT, hB'⟩ := hBs ij.2 + exact hfinite S T hS hT (As ij.1) hA' (Bs ij.2) hB' + +theorem canonical_covariance_bound_extends_to_doubleCones + (V : FreeFieldVacuum m H) (hm : 0 < m) + (x₀ y₀ : EuclideanSpace ℝ (Fin 3)) {R S : ℝ} (hR : 0 < R) (hS : 0 < S) (C : ℝ) + (hfinite : ∀ K L : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem (Metric.ball x₀ R) K → IsCanonicalSourceSystem (Metric.ball y₀ S) L → + ∀ A ∈ saContractions (canonicalSourceAlgebra V hm K), + ∀ B ∈ saContractions (canonicalSourceAlgebra V hm L), + ‖vacuumComplexCovariance V.vacuum A B‖ ≤ C) + {A B : H →L[ℂ] H} (hA : A ∈ saContractions (localAlgebra V (doubleCone (0, x₀) R))) + (hB : B ∈ saContractions (localAlgebra V (doubleCone (0, y₀) S))) : + ‖vacuumComplexCovariance V.vacuum A B‖ ≤ C := by + rw [localAlgebra_doubleCone_eq_timeZeroLocalAlgebra V hm hR x₀] at hA + rw [localAlgebra_doubleCone_eq_timeZeroLocalAlgebra V hm hS y₀] at hB + exact canonical_covariance_bound_extends_to_local V hm _ _ C hfinite hA hB + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CanonicalEffectExhaustion.lean b/LeanPool/VacuumBellSeparation/FreeField/CanonicalEffectExhaustion.lean new file mode 100644 index 0000000000..b70ff559c8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CanonicalEffectExhaustion.lean @@ -0,0 +1,98 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalUnionStarAlgebra +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceTheorem +public import LeanPool.VacuumBellSeparation.Bell.KaplanskyEffects +public import LeanPool.VacuumBellSeparation.Bell.StrongExpectationLimits + +/-! +# Passage from actual finite canonical effects to all local effects + +The approximants lie in genuine finite canonical algebras in the original +vacuum Hilbert space. Independent nets and their uniform norm bounds pass +every continuous non-strict scalar inequality in the three actual vacuum +expectations to all regional effects. The double-cone statement uses the +proved same-representation time-slice identity. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem local_effect_finite_canonical_strong_approximation + (V : FreeFieldVacuum m H) (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + {E : H →L[ℂ] H} (hE : E ∈ effects (timeZeroLocalAlgebra V hm U)) : + ∃ Es : (Finset H × ℕ) → (H →L[ℂ] H), + (∀ i, ∃ S : Submodule ℝ TimeZeroSource, IsCanonicalSourceSystem U S ∧ + Es i ∈ effects (canonicalSourceAlgebra V hm S)) ∧ + (∀ i, ‖Es i‖ ≤ 1) ∧ ∀ x : H, Tendsto (fun i => Es i x) atTop (𝓝 (E x)) := by + classical + have hE0 := ContinuousLinearMap.nonneg_iff_isPositive.mpr hE.2.1 + have hE1 : E ≤ 1 := sub_nonneg.mp (ContinuousLinearMap.nonneg_iff_isPositive.mpr hE.2.2) + have hmem : E ∈ generatedVNA (canonicalUnionStarAlgebra V hm U : Set (H →L[ℂ] H)) := by + rw [generatedVNA_canonicalUnionStarAlgebra] + exact hE.1 + obtain ⟨Es, hEs, hstrong⟩ := exists_effect_strong_approximation (canonicalUnionStarAlgebra V hm U) + (fun f A hA => cfc_mem_canonicalUnionStarAlgebra V hm U f hA) hmem hE0 hE1 + refine ⟨Es, ?_, ?_, hstrong⟩ + · intro i + obtain ⟨S, hS, hA⟩ := (mem_canonicalUnionStarAlgebra_iff V hm U _).mp (hEs i).1 + exact ⟨S, hS, hA, ContinuousLinearMap.nonneg_iff_isPositive.mp (hEs i).2.1, + ContinuousLinearMap.nonneg_iff_isPositive.mp (sub_nonneg.mpr (hEs i).2.2)⟩ + · intro i + exact (CStarAlgebra.norm_le_one_iff_of_nonneg (Es i) (hEs i).2.1).mpr (hEs i).2.2 + +/-- Lemma 2.3 for its continuous closed-inequality applications, with actual +effects in arbitrary two time-zero regions and a fixed original vacuum. -/ +theorem canonical_effect_inequality_extends_to_local + (V : FreeFieldVacuum m H) (hm : 0 < m) + (U W : Set (EuclideanSpace ℝ (Fin 3))) + (f : ℝ × ℝ × ℝ → ℝ) (hf : Continuous f) + (hfinite : ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∀ E ∈ effects (canonicalSourceAlgebra V hm S), + ∀ P ∈ effects (canonicalSourceAlgebra V hm T), + f (vacuumExpectationTriple V.vacuum E P) ≤ 0) + {E P : H →L[ℂ] H} (hE : E ∈ effects (timeZeroLocalAlgebra V hm U)) + (hP : P ∈ effects (timeZeroLocalAlgebra V hm W)) : + f (vacuumExpectationTriple V.vacuum E P) ≤ 0 := by + classical + obtain ⟨Es, hEs, hEnorm, hElim⟩ := local_effect_finite_canonical_strong_approximation V hm U hE + obtain ⟨Ps, hPs, hPnorm, hPlim⟩ := local_effect_finite_canonical_strong_approximation V hm W hP + apply vacuum_inequality_of_independent_strong_limits V.vacuum hEnorm hElim hPlim f hf + apply Eventually.of_forall + intro ij + obtain ⟨S, hS, hE'⟩ := hEs ij.1 + obtain ⟨T, hT, hP'⟩ := hPs ij.2 + exact hfinite S T hS hT (Es ij.1) hE' (Ps ij.2) hP' + +/-- The same conclusion for the original spacetime double-cone algebras. -/ +theorem canonical_effect_inequality_extends_to_doubleCones + (V : FreeFieldVacuum m H) (hm : 0 < m) + (x₀ y₀ : EuclideanSpace ℝ (Fin 3)) {R S : ℝ} (hR : 0 < R) (hS : 0 < S) + (f : ℝ × ℝ × ℝ → ℝ) (hf : Continuous f) + (hfinite : ∀ K L : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem (Metric.ball x₀ R) K → + IsCanonicalSourceSystem (Metric.ball y₀ S) L → + ∀ E ∈ effects (canonicalSourceAlgebra V hm K), + ∀ P ∈ effects (canonicalSourceAlgebra V hm L), + f (vacuumExpectationTriple V.vacuum E P) ≤ 0) + {E P : H →L[ℂ] H} (hE : E ∈ effects (localAlgebra V (doubleCone (0, x₀) R))) + (hP : P ∈ effects (localAlgebra V (doubleCone (0, y₀) S))) : + f (vacuumExpectationTriple V.vacuum E P) ≤ 0 := by + rw [localAlgebra_doubleCone_eq_timeZeroLocalAlgebra V hm hR x₀] at hE + rw [localAlgebra_doubleCone_eq_timeZeroLocalAlgebra V hm hS y₀] at hP + exact canonical_effect_inequality_extends_to_local V hm _ _ f hf hfinite hE hP + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceAlgebra.lean b/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceAlgebra.lean new file mode 100644 index 0000000000..414bac2535 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceAlgebra.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceDirected +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroAlgebra + +/-! +# Actual finite canonical algebras generate the local algebra + +All operators act in the original physical vacuum representation. The +directed union below is an algebraic union of von Neumann algebras. Its +double commutant is exactly the time-zero local algebra. Strong density +and bounded approximation are separate analytic conclusions. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The actual Weyl algebra of a real source subspace. -/ +noncomputable def canonicalSourceAlgebra (V : FreeFieldVacuum m H) (hm : 0 < m) + (S : Submodule ℝ TimeZeroSource) : VonNeumannAlgebra H := + generatedVNA {T | ∃ u ∈ S, T = V.timeZeroWeyl hm u} + +theorem canonicalSourceAlgebra_mono (V : FreeFieldVacuum m H) (hm : 0 < m) + {S T : Submodule ℝ TimeZeroSource} (hST : S ≤ T) : + canonicalSourceAlgebra V hm S ≤ canonicalSourceAlgebra V hm T := by + apply generatedVNA_mono + rintro A ⟨u, hu, rfl⟩ + exact ⟨u, hST hu, rfl⟩ + +theorem canonicalSourceAlgebra_le_local (V : FreeFieldVacuum m H) (hm : 0 < m) + {U : Set (EuclideanSpace ℝ (Fin 3))} {S : Submodule ℝ TimeZeroSource} + (hS : S ≤ localizedTimeZeroSources U) : + canonicalSourceAlgebra V hm S ≤ timeZeroLocalAlgebra V hm U := by + apply generatedVNA_mono + rintro A ⟨u, hu, rfl⟩ + exact ⟨u, (hS hu).1, (hS hu).2, rfl⟩ + +theorem timeZeroWeyl_mem_canonicalSourceAlgebra (V : FreeFieldVacuum m H) + (hm : 0 < m) {S : Submodule ℝ TimeZeroSource} {u : TimeZeroSource} (hu : u ∈ S) : + V.timeZeroWeyl hm u ∈ canonicalSourceAlgebra V hm S := + subset_generatedVNA _ ⟨u, hu, rfl⟩ + +theorem canonicalSourceAlgebras_directed (V : FreeFieldVacuum m H) (hm : 0 < m) + {U : Set (EuclideanSpace ℝ (Fin 3))} {S T : Submodule ℝ TimeZeroSource} + (hS : IsCanonicalSourceSystem U S) (hT : IsCanonicalSourceSystem U T) : + ∃ R : Submodule ℝ TimeZeroSource, IsCanonicalSourceSystem U R ∧ + canonicalSourceAlgebra V hm S ≤ canonicalSourceAlgebra V hm R ∧ + canonicalSourceAlgebra V hm T ≤ canonicalSourceAlgebra V hm R := by + obtain ⟨R, hR, hSR, hTR⟩ := canonicalSourceSystems_directed hS hT + exact ⟨R, hR, canonicalSourceAlgebra_mono V hm hSR, + canonicalSourceAlgebra_mono V hm hTR⟩ + +/-- Literal union of all finite canonical algebras in the fixed vacuum. -/ +def canonicalAlgebraUnion (V : FreeFieldVacuum m H) (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) : Set (H →L[ℂ] H) := + {A | ∃ S : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S ∧ A ∈ canonicalSourceAlgebra V hm S} + +theorem canonicalAlgebraUnion_subset_local (V : FreeFieldVacuum m H) (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) : + canonicalAlgebraUnion V hm U ⊆ timeZeroLocalAlgebra V hm U := by + rintro A ⟨S, hS, hA⟩ + exact canonicalSourceAlgebra_le_local V hm hS.2.1 hA + +/-- The full local double commutant is generated by the actual finite systems. -/ +theorem generatedVNA_canonicalAlgebraUnion (V : FreeFieldVacuum m H) (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) : + generatedVNA (canonicalAlgebraUnion V hm U) = timeZeroLocalAlgebra V hm U := by + apply le_antisymm + · exact generatedVNA_le_of_subset _ (canonicalAlgebraUnion_subset_local V hm U) + · apply generatedVNA_mono + rintro A ⟨u, hf, hg, rfl⟩ + obtain ⟨S, hS, hu⟩ := (mem_localizedTimeZeroSources_iff_exists_canonical u).mp ⟨hf, hg⟩ + exact ⟨S, hS, timeZeroWeyl_mem_canonicalSourceAlgebra V hm hu⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceDirected.lean b/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceDirected.lean new file mode 100644 index 0000000000..98db31dd27 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceDirected.lean @@ -0,0 +1,65 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceHull +public import Mathlib.RingTheory.Finiteness.Basic + +/-! +# Cofinality and directedness of all finite canonical systems + +Finite-dimensionality supplies actual finite generators. Adjoining explicit +local partners then gives a canonical upper bound of any two canonical +systems, not just of two chosen generating families. Every local smooth +source belongs to one of these systems. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem canonicalSourceSystems_directed {U : Set (EuclideanSpace ℝ (Fin 3))} + {S T : Submodule ℝ TimeZeroSource} + (hS : IsCanonicalSourceSystem U S) (hT : IsCanonicalSourceSystem U T) : + ∃ R : Submodule ℝ TimeZeroSource, IsCanonicalSourceSystem U R ∧ S ≤ R ∧ T ≤ R := by + let : FiniteDimensional ℝ S := hS.1 + let : FiniteDimensional ℝ T := hT.1 + obtain ⟨s, hs, heqs⟩ := Submodule.fg_def.mp (Module.Finite.iff_fg.mp + (inferInstance : Module.Finite ℝ S)) + obtain ⟨t, ht, heqt⟩ := Submodule.fg_def.mp (Module.Finite.iff_fg.mp + (inferInstance : Module.Finite ℝ T)) + have hsU : s ⊆ localizedTimeZeroSources U := by + intro u hu + apply hS.2.1 + rw [← heqs] + exact Submodule.subset_span hu + have htU : t ⊆ localizedTimeZeroSources U := by + intro u hu + apply hT.2.1 + rw [← heqt] + exact Submodule.subset_span hu + obtain ⟨R, hR, hsR, htR⟩ := canonicalSourceHull_directed hs ht hsU htU + refine ⟨R, hR, ?_, ?_⟩ + · rw [← heqs] + exact (Submodule.span_le.mpr (subset_canonicalSourceHull s)).trans hsR + · rw [← heqt] + exact (Submodule.span_le.mpr (subset_canonicalSourceHull t)).trans htR + +/-- Exact covering of the actual local test space by finite canonical systems. -/ +theorem mem_localizedTimeZeroSources_iff_exists_canonical + {U : Set (EuclideanSpace ℝ (Fin 3))} (u : TimeZeroSource) : + u ∈ localizedTimeZeroSources U ↔ + ∃ S : Submodule ℝ TimeZeroSource, IsCanonicalSourceSystem U S ∧ u ∈ S := by + constructor + · intro hu + obtain ⟨S, hS, hs⟩ := exists_canonicalSourceSystem_containing_finite + (Set.finite_singleton u) (Set.singleton_subset_iff.mpr hu) + exact ⟨S, hS, hs (Set.mem_singleton u)⟩ + · rintro ⟨S, hS, hu⟩ + exact hS.2.1 hu + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceHull.lean b/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceHull.lean new file mode 100644 index 0000000000..4b27d7417c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceHull.lean @@ -0,0 +1,80 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceSystemDefs +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroSymplecticNondegenerate +public import Mathlib.LinearAlgebra.FiniteDimensional.Defs + +/-! +# A directed cofinal family of finite canonical local source systems + +Adjoin the explicit quarter-turns to a finite collection and take its real +span. The resulting finite space is invariant under the quarter-turn, so +the integral of f²+g² proves nondegeneracy of its actual symplectic form. +The construction is monotone and contains every given smooth source. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Canonical source hull obtained from `Submodule.span`. -/ +def canonicalSourceHull (s : Set TimeZeroSource) : Submodule ℝ TimeZeroSource := + Submodule.span ℝ (s ∪ timeZeroQuarterTurn '' s) + +theorem subset_canonicalSourceHull (s : Set TimeZeroSource) : s ⊆ canonicalSourceHull s := + fun _ hx => Submodule.subset_span (Or.inl hx) + +theorem canonicalSourceHull_mono {s t : Set TimeZeroSource} (h : s ⊆ t) : + canonicalSourceHull s ≤ canonicalSourceHull t := + Submodule.span_mono (Set.union_subset_union h (Set.image_mono h)) + +theorem quarterTurn_mem_canonicalSourceHull {s : Set TimeZeroSource} {u : TimeZeroSource} + (hu : u ∈ canonicalSourceHull s) : timeZeroQuarterTurn u ∈ canonicalSourceHull s := by + induction hu using Submodule.span_induction with + | mem u hu => + rcases hu with hu | ⟨v, hv, rfl⟩ + · exact Submodule.subset_span (Or.inr ⟨u, hu, rfl⟩) + · rw [timeZeroQuarterTurn_sq] + exact (canonicalSourceHull s).neg_mem (subset_canonicalSourceHull s hv) + | zero => simpa only [map_zero] using (canonicalSourceHull s).zero_mem + | add u v hu hv ihu ihv => + simpa only [map_add] using (canonicalSourceHull s).add_mem ihu ihv + | smul a u hu ih => + simpa only [map_smul] using (canonicalSourceHull s).smul_mem a ih + +theorem canonicalSourceHull_isCanonical {U : Set (EuclideanSpace ℝ (Fin 3))} + {s : Set TimeZeroSource} (hs : s.Finite) (hloc : s ⊆ localizedTimeZeroSources U) : + IsCanonicalSourceSystem U (canonicalSourceHull s) := by + refine ⟨FiniteDimensional.span_of_finite ℝ (hs.union (hs.image timeZeroQuarterTurn)), ?_, ?_⟩ + · apply Submodule.span_le.mpr + rintro u (hu | ⟨v, hv, rfl⟩) + · exact hloc hu + · exact timeZeroQuarterTurn_local (hloc hv) + · intro u hu hz + exact (timeZeroSymplectic_quarterTurn_eq_zero_iff u).mp + (hz _ (quarterTurn_mem_canonicalSourceHull hu)) + +/-- Every finite collection of local smooth pairs lies in a finite canonical system. -/ +theorem exists_canonicalSourceSystem_containing_finite + {U : Set (EuclideanSpace ℝ (Fin 3))} {s : Set TimeZeroSource} + (hs : s.Finite) (hloc : s ⊆ localizedTimeZeroSources U) : + ∃ S : Submodule ℝ TimeZeroSource, IsCanonicalSourceSystem U S ∧ s ⊆ S := + ⟨canonicalSourceHull s, canonicalSourceHull_isCanonical hs hloc, subset_canonicalSourceHull s⟩ + +/-- Two finite generated canonical hulls have a common canonical upper bound. -/ +theorem canonicalSourceHull_directed {U : Set (EuclideanSpace ℝ (Fin 3))} + {s t : Set TimeZeroSource} (hs : s.Finite) (ht : t.Finite) + (hsU : s ⊆ localizedTimeZeroSources U) (htU : t ⊆ localizedTimeZeroSources U) : + ∃ S : Submodule ℝ TimeZeroSource, IsCanonicalSourceSystem U S ∧ + canonicalSourceHull s ≤ S ∧ canonicalSourceHull t ≤ S := + ⟨canonicalSourceHull (s ∪ t), + canonicalSourceHull_isCanonical (hs.union ht) (Set.union_subset hsU htU), + canonicalSourceHull_mono Set.subset_union_left, canonicalSourceHull_mono Set.subset_union_right⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourcePair.lean b/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourcePair.lean new file mode 100644 index 0000000000..4391866f72 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourcePair.lean @@ -0,0 +1,65 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroSymplecticAlgebra +public import Mathlib.LinearAlgebra.FiniteDimensional.Basic + +/-! +# The actual joint canonical system of two disjoint source regions + +The literal symplectic cross form vanishes by disjoint support. The sum of +the two finite canonical systems is finite and nondegenerate, and their +intersection is zero. Localization is retained in the union of the regions. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {U W : Set (EuclideanSpace ℝ (Fin 3))} + {S T : Submodule ℝ TimeZeroSource} + +theorem canonicalSourcePair_cross (hUW : Disjoint U W) + (hS : IsCanonicalSourceSystem U S) (hT : IsCanonicalSourceSystem W T) + {u v : TimeZeroSource} (hu : u ∈ S) (hv : v ∈ T) : timeZeroSymplectic u v = 0 := + timeZeroSymplectic_eq_zero_of_disjoint hUW (hS.2.1 hu) (hT.2.1 hv) + +theorem canonicalSourcePair_disjoint (hUW : Disjoint U W) + (hS : IsCanonicalSourceSystem U S) (hT : IsCanonicalSourceSystem W T) : Disjoint S T := by + apply Submodule.disjoint_def.mpr + intro u huS huT + apply hS.2.2 u huS + intro v hv + rw [timeZeroSymplectic_skew, canonicalSourcePair_cross hUW hS hT hv huT, neg_zero] + +theorem canonicalSourcePair_sup_isCanonical (hUW : Disjoint U W) + (hS : IsCanonicalSourceSystem U S) (hT : IsCanonicalSourceSystem W T) : + IsCanonicalSourceSystem (U ∪ W) (S ⊔ T) := by + let : FiniteDimensional ℝ S := hS.1 + let : FiniteDimensional ℝ T := hT.1 + refine ⟨inferInstance, sup_le + (hS.2.1.trans (localizedTimeZeroSources_mono Set.subset_union_left)) + (hT.2.1.trans (localizedTimeZeroSources_mono Set.subset_union_right)), ?_⟩ + intro u hu hz + obtain ⟨s, hs, t, ht, rfl⟩ := Submodule.mem_sup.mp hu + have hs0 : s = 0 := by + apply hS.2.2 s hs + intro v hv + have h := hz v (Submodule.mem_sup_left hv) + have htv : timeZeroSymplectic t v = 0 := by + rw [timeZeroSymplectic_skew, canonicalSourcePair_cross hUW hS hT hv ht, neg_zero] + simpa only [timeZeroSymplectic_add_left, htv, add_zero] using h + have ht0 : t = 0 := by + apply hT.2.2 t ht + intro v hv + have h := hz v (Submodule.mem_sup_right hv) + simpa only [timeZeroSymplectic_add_left, canonicalSourcePair_cross hUW hS hT hs hv, + zero_add] using h + rw [hs0, ht0, add_zero] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceSystemDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceSystemDefs.lean new file mode 100644 index 0000000000..3066dc47f3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CanonicalSourceSystemDefs.lean @@ -0,0 +1,29 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroSymplecticNondegenerate +public import Mathlib.LinearAlgebra.FiniteDimensional.Defs + +/-! +# Literal statement construction extracted from FreeField/CanonicalSourceHull + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- A canonical system retains the actual local test pairs and symplectic form. -/ +def IsCanonicalSourceSystem (U : Set (EuclideanSpace ℝ (Fin 3))) + (S : Submodule ℝ TimeZeroSource) : Prop := + FiniteDimensional ℝ S ∧ S ≤ localizedTimeZeroSources U ∧ + ∀ u ∈ S, (∀ v ∈ S, timeZeroSymplectic u v = 0) → u = 0 + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CanonicalUnionStarAlgebra.lean b/LeanPool/VacuumBellSeparation/FreeField/CanonicalUnionStarAlgebra.lean new file mode 100644 index 0000000000..8d5168e18d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CanonicalUnionStarAlgebra.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceAlgebra +public import LeanPool.VacuumBellSeparation.Bell.DirectedAlgebraUnion +public import LeanPool.VacuumBellSeparation.Bell.BicommutantSelfAdjoint + +/-! +# The actual canonical union as a functional-calculus closed star algebra + +The zero canonical hull supplies a stage even in an empty region. Directedness +supplies common stages for addition and multiplication. Selfadjoint finite +approximation is then instantiated for the original physical local algebra. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Continuous linear map for the canonical union ⋆-algebra, of type `StarSubalgebra ℂ (H →L[ℂ] +H)`. -/ +noncomputable def canonicalUnionStarAlgebra (V : FreeFieldVacuum m H) (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) : StarSubalgebra ℂ (H →L[ℂ] H) := by + letI : Nonempty {S : Submodule ℝ TimeZeroSource // IsCanonicalSourceSystem U S} := + ⟨⟨canonicalSourceHull ∅, canonicalSourceHull_isCanonical Set.finite_empty (Set.empty_subset _)⟩⟩ + exact directedAlgebraUnion (fun S : {S // IsCanonicalSourceSystem U S} => + canonicalSourceAlgebra V hm S.1) (by + intro S T + obtain ⟨R, hR, hSR, hTR⟩ := canonicalSourceAlgebras_directed V hm S.2 T.2 + exact ⟨⟨R, hR⟩, hSR, hTR⟩) + +theorem mem_canonicalUnionStarAlgebra_iff (V : FreeFieldVacuum m H) (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) (A : H →L[ℂ] H) : + A ∈ canonicalUnionStarAlgebra V hm U ↔ + ∃ S : Submodule ℝ TimeZeroSource, IsCanonicalSourceSystem U S ∧ + A ∈ canonicalSourceAlgebra V hm S := by + change (∃ S : {S // IsCanonicalSourceSystem U S}, A ∈ canonicalSourceAlgebra V hm S.1) ↔ _ + constructor + · rintro ⟨⟨S, hS⟩, hA⟩ + exact ⟨S, hS, hA⟩ + · rintro ⟨S, hS, hA⟩ + exact ⟨⟨S, hS⟩, hA⟩ + +theorem coe_canonicalUnionStarAlgebra (V : FreeFieldVacuum m H) (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) : + (canonicalUnionStarAlgebra V hm U : Set (H →L[ℂ] H)) = canonicalAlgebraUnion V hm U := by + ext A + exact mem_canonicalUnionStarAlgebra_iff V hm U A + +theorem cfc_mem_canonicalUnionStarAlgebra (V : FreeFieldVacuum m H) (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) (f : ℝ → ℝ) {A : H →L[ℂ] H} + (hA : A ∈ canonicalUnionStarAlgebra V hm U) : cfc f A ∈ canonicalUnionStarAlgebra V hm U := by + obtain ⟨S, hS, hA⟩ := (mem_canonicalUnionStarAlgebra_iff V hm U A).mp hA + exact (mem_canonicalUnionStarAlgebra_iff V hm U _).mpr + ⟨S, hS, cfc_mem_vonNeumannAlgebra _ f hA⟩ + +theorem generatedVNA_canonicalUnionStarAlgebra (V : FreeFieldVacuum m H) (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) : + generatedVNA (canonicalUnionStarAlgebra V hm U : Set (H →L[ℂ] H)) = + timeZeroLocalAlgebra V hm U := by + rw [coe_canonicalUnionStarAlgebra, generatedVNA_canonicalAlgebraUnion] + +/-- Actual selfadjoint local observables admit finite canonical approximants on +every finite family of vectors; no operator-norm bound is asserted yet. -/ +theorem local_selfAdjoint_finite_canonical_approximation + (V : FreeFieldVacuum m H) (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + {T : H →L[ℂ] H} (hT : T ∈ timeZeroLocalAlgebra V hm U) (hsa : IsSelfAdjoint T) + {ι : Type*} [Finite ι] (x : ι → H) {ε : ℝ} (hε : 0 < ε) : + ∃ S : Submodule ℝ TimeZeroSource, IsCanonicalSourceSystem U S ∧ + ∃ A ∈ canonicalSourceAlgebra V hm S, IsSelfAdjoint A ∧ + ∀ i, ‖T (x i) - A (x i)‖ < ε := by + let _ : Fintype ι := Fintype.ofFinite ι + rw [← generatedVNA_canonicalUnionStarAlgebra V hm U] at hT + obtain ⟨A, hA, hself, hdist⟩ := selfAdjoint_bicommutant_approximate_finite_family + (canonicalUnionStarAlgebra V hm U) hT hsa x hε + obtain ⟨S, hS, hA⟩ := (mem_canonicalUnionStarAlgebra_iff V hm U A).mp hA + exact ⟨S, hS, A, hA, hself, hdist⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CauchyEvolutionDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/CauchyEvolutionDefs.lean new file mode 100644 index 0000000000..ed8d6775ca --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CauchyEvolutionDefs.lean @@ -0,0 +1,35 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionGenerator + +/-! # Schwartz Cauchy data and evolution for the massive field -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory FourierTransform +open scoped SchwartzMap FourierTransform + +/-- Cauchy positive data. -/ +noncomputable def cauchyPositiveData (m : ℝ) (f g : SpatialSchwartz) : SpatialSchwartz := + (1 / 2 : ℂ) • (f - Complex.I • massiveSchwartzPower m (-1) g) + +/-- Cauchy negative data. -/ +noncomputable def cauchyNegativeData (m : ℝ) (f g : SpatialSchwartz) : SpatialSchwartz := + (1 / 2 : ℂ) • (f + Complex.I • massiveSchwartzPower m (-1) g) + +/-- The actual velocity, itself a spatial Schwartz function at every real time. -/ +noncomputable def massiveSchwartzCauchyVelocity (m t : ℝ) (f g : SpatialSchwartz) : + SpatialSchwartz := + Complex.I • massiveSchwartzEvolution m t (massiveSchwartzPower m 1 (cauchyPositiveData m f g)) - + Complex.I • massiveSchwartzEvolution m (-t) + (massiveSchwartzPower m 1 (cauchyNegativeData m f g)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CauchyEvolutionL2.lean b/LeanPool/VacuumBellSeparation/FreeField/CauchyEvolutionL2.lean new file mode 100644 index 0000000000..9dae644b24 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CauchyEvolutionL2.lean @@ -0,0 +1,120 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CauchyEvolutionDefs +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionGenerator + +/-! +# The actual Klein–Gordon Cauchy solution in L² + +The literal cosine/sine solution is identified with its two frequency parts. +The genuine first and second L² derivatives then follow from the phase +evolution theorem. The initial position and velocity are the given Schwartz +data. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory FourierTransform +open scoped SchwartzMap FourierTransform + + + + + +/-- Exact identification with the original literal cosine/sine multipliers. -/ +theorem massiveSchwartzCauchy_eq_phases (m t : ℝ) (f g : SpatialSchwartz) : + massiveSchwartzCauchy m t f g = + massiveSchwartzEvolution m t (cauchyPositiveData m f g) + + massiveSchwartzEvolution m (-t) (cauchyNegativeData m f g) := by + apply (fourierCLE ℂ SpatialSchwartz).injective + change 𝓕 (massiveSchwartzCauchy m t f g) = + 𝓕 (massiveSchwartzEvolution m t (cauchyPositiveData m f g) + + massiveSchwartzEvolution m (-t) (cauchyNegativeData m f g)) + rw [massiveSchwartzCauchy, FourierTransform.fourier_add, FourierTransform.fourier_add] + ext ξ + simp only [add_apply, fourier_massiveSchwartzCosine, + fourier_massiveSchwartzSine, fourier_massiveSchwartzEvolution, + cauchyPositiveData, cauchyNegativeData, FourierTransform.fourier_smul, + FourierTransform.fourier_add, + sub_eq_add_neg, FourierTransform.fourier_neg, massiveSchwartzPower, + SchwartzMap.fourierMultiplierCLM_apply, fourier_fourierInv_eq, + SchwartzMap.smulLeftCLM_apply_apply + (hasTemperateGrowth_complex_massiveSchwartzSymbol m (-1)), + add_apply, neg_apply, smul_apply, smul_eq_mul, + massiveEvolutionPhase, Complex.ofReal_cos, Complex.ofReal_sin, + Complex.cos, Complex.sin, neg_mul, + Complex.ofReal_neg, Complex.ofReal_mul] + ring_nf + +theorem hasDerivAt_massiveSchwartzEvolution_neg_generator (m t : ℝ) (f : SpatialSchwartz) : + HasDerivAt (fun s => (massiveSchwartzEvolution m (-s) f).toLp 2) + (-(Complex.I • (massiveSchwartzEvolution m (-t) (massiveSchwartzPower m 1 f)).toLp 2)) t := by + simpa only [Function.comp_def, neg_one_smul] using + (hasDerivAt_massiveSchwartzEvolution_generator m (-t) f).scomp t (hasDerivAt_neg t) + + + +theorem hasDerivAt_massiveSchwartzCauchy_toL2 (m t : ℝ) (f g : SpatialSchwartz) : + HasDerivAt (fun s => (massiveSchwartzCauchy m s f g).toLp 2) + ((massiveSchwartzCauchyVelocity m t f g).toLp 2) t := by + have ht := (hasDerivAt_massiveSchwartzEvolution_generator m t (cauchyPositiveData m f g)).add + (hasDerivAt_massiveSchwartzEvolution_neg_generator m t (cauchyNegativeData m f g)) + simpa only [massiveSchwartzCauchy_eq_phases, spatialSchwartz_toL2_add, + massiveSchwartzCauchyVelocity, spatialSchwartz_toL2_sub, spatialSchwartz_toL2_smul, + sub_eq_add_neg, spatialSchwartz_toL2_neg, spatialSchwartz_toL2_smul, + Pi.add_def, Pi.smul_def, Pi.neg_def, Pi.add_apply, Pi.smul_apply, Pi.neg_apply] using ht + +@[simp] theorem massiveSchwartzCauchyVelocity_zero {m : ℝ} (hm : 0 < m) + (f g : SpatialSchwartz) : massiveSchwartzCauchyVelocity m 0 f g = g := by + simp only [massiveSchwartzCauchyVelocity, neg_zero, massiveSchwartzEvolution_zero, + cauchyPositiveData, cauchyNegativeData, map_smul, map_sub, map_add, + massiveSchwartzPower_add hm, show (1 : ℝ) + -1 = 0 by norm_num, + massiveSchwartzPower_zero, ContinuousLinearMap.id_apply] + ext ξ + simp only [smul_apply, sub_apply, add_apply, smul_eq_mul] + ring_nf + simp [Complex.I_sq] + +/-- Second L² derivative of the actual Cauchy solution. -/ +theorem hasDerivAt_massiveSchwartzCauchyVelocity_toL2 {m : ℝ} (hm : 0 < m) + (t : ℝ) (f g : SpatialSchwartz) : + HasDerivAt (fun s => (massiveSchwartzCauchyVelocity m s f g).toLp 2) + (-(massiveSchwartzPower m 2 (massiveSchwartzCauchy m t f g)).toLp 2) t := by + have hp := hasDerivAt_massiveSchwartzEvolution_generator_twice hm t + (cauchyPositiveData m f g) + have hn := (hasDerivAt_massiveSchwartzEvolution_generator_twice hm (-t) + (cauchyNegativeData m f g)).scomp t (hasDerivAt_neg t) + have hn' : HasDerivAt + (fun s => Complex.I • + (massiveSchwartzEvolution m (-s) (massiveSchwartzPower m 1 + (cauchyNegativeData m f g))).toLp 2) + ((massiveSchwartzPower m 2 + (massiveSchwartzEvolution m (-t) (cauchyNegativeData m f g))).toLp 2) t := by + simpa only [Function.comp_def, neg_one_smul, neg_neg] using hn + refine ((hp.sub hn').congr_of_eventuallyEq + (Filter.Eventually.of_forall fun s => ?_)).congr_deriv ?_ + · simp only [massiveSchwartzCauchyVelocity, spatialSchwartz_toL2_sub, + spatialSchwartz_toL2_smul, Pi.sub_apply] + · rw [massiveSchwartzCauchy_eq_phases, map_add, spatialSchwartz_toL2_add] + simp only [neg_add_rev, sub_eq_add_neg, add_comm] + +open Laplacian in +/-- The literal cosine/sine Cauchy solution solves the massive equation in L². -/ +theorem hasDerivAt_massiveSchwartzCauchy_kleinGordon {m : ℝ} (hm : 0 < m) + (t : ℝ) (f g : SpatialSchwartz) : + HasDerivAt (fun s => (massiveSchwartzCauchyVelocity m s f g).toLp 2) + ((Δ (massiveSchwartzCauchy m t f g)).toLp 2 - + ((m ^ 2 : ℝ) : ℂ) • (massiveSchwartzCauchy m t f g).toLp 2) t := by + simpa only [massiveSchwartzPower_two hm, spatialSchwartz_toL2_sub, + spatialSchwartz_toL2_smul, neg_sub] using + hasDerivAt_massiveSchwartzCauchyVelocity_toL2 hm t f g + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CauchyFinitePropagation.lean b/LeanPool/VacuumBellSeparation/FreeField/CauchyFinitePropagation.lean new file mode 100644 index 0000000000..aeaf9ed2a8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CauchyFinitePropagation.lean @@ -0,0 +1,175 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PlanarEnergyFlux +public import Mathlib.MeasureTheory.Measure.OpenPos + +/-! +# Finite propagation of the literal Schwartz Cauchy solution + +The proved moving-plane energy is initially zero for data supported in a +closed ball. Its positivity and monotonicity force it to remain zero. The +strictly positive massive term and the positive cutoff then give pointwise +vanishing ahead of each plane. Choosing the radial plane proves the cone +support statement. Negative times are handled by the exact time reversal of +the literal cosine/sine formula. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +open MeasureTheory Filter LineDeriv FourierTransform +open scoped LineDeriv FourierTransform + +theorem integrable_planarWeighted_norm_sq + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) (f : SpatialSchwartz) : + Integrable (fun x => planarEnergyWeight a x₀ R t x * ‖f x‖ ^ 2) := by + have h := (SchwartzMap.pairing (innerSL ℝ) f (planarWeightedSchwartz a x₀ R t f)).integrable + (μ := volume) + change Integrable (fun x => ⟪f x, planarWeightedSchwartz a x₀ R t f x⟫_ℝ) at h + simpa only [SchwartzMap.pairing_apply_apply, innerSL_apply_apply, + planarWeightedSchwartz_apply, ← Complex.real_smul, real_inner_smul_right, + real_inner_self_eq_norm_sq] using h + +theorem planarPairing_self_eq_zero_of_support + {a x₀ : EuclideanSpace ℝ (Fin 3)} (ha : ‖a‖ ≤ 1) {R : ℝ} + (f : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ R) : + planarPairing a x₀ R 0 f f = 0 := by + rw [planarPairing_eq_integral] + have hz : (fun x => planarEnergyWeight a x₀ R 0 x * ⟪f x, f x⟫_ℝ) = 0 := by + funext x + by_cases hx : x ∈ Metric.closedBall x₀ R + · have hn : ‖x - x₀‖ ≤ R + 0 := by simpa only [Metric.mem_closedBall, dist_eq_norm, + add_zero] using hx + simp only [planarEnergyWeight_zero_of_norm_le ha hn, zero_mul, Pi.zero_apply] + · have hfx : f x = 0 := image_eq_zero_of_notMem_tsupport (fun h => hx (hf h)) + simp only [hfx, inner_zero_left, mul_zero, Pi.zero_apply] + rw [hz] + change (∫ _ : EuclideanSpace ℝ (Fin 3), (0 : ℝ)) = 0 + exact integral_zero _ _ + +theorem planarKleinGordonEnergy_initial_zero {m : ℝ} (hm : 0 < m) + {a x₀ : EuclideanSpace ℝ (Fin 3)} (ha : ‖a‖ ≤ 1) {R : ℝ} + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ R) + (hg : tsupport g ⊆ Metric.closedBall x₀ R) : + planarKleinGordonEnergy a x₀ R m 0 + (massiveSchwartzCauchy m 0 f g) (massiveSchwartzCauchyVelocity m 0 f g) = 0 := by + rw [massiveSchwartzCauchy_zero, massiveSchwartzCauchyVelocity_zero hm, + planarKleinGordonEnergy, planarPairing_self_eq_zero_of_support ha f hf, + planarPairing_self_eq_zero_of_support ha g hg] + have hs : (∑ j, planarPairing a x₀ R 0 (∂_{spatialEnergyBasis j} f) + (∂_{spatialEnergyBasis j} f)) = 0 := by + apply Finset.sum_eq_zero + intro j _ + exact planarPairing_self_eq_zero_of_support ha _ + ((SchwartzMap.tsupport_lineDerivOp_subset (spatialEnergyBasis j) f).trans hf) + rw [hs] + ring + +theorem planarPairing_self_eq_zero_of_energy_zero {m : ℝ} (hm : 0 < m) + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) (u v : SpatialSchwartz) + (he : planarKleinGordonEnergy a x₀ R m t u v = 0) : + planarPairing a x₀ R t u u = 0 := by + have hu := planarPairing_self_nonneg a x₀ R t u + have hv := planarPairing_self_nonneg a x₀ R t v + have hg : 0 ≤ ∑ j, planarPairing a x₀ R t (∂_{spatialEnergyBasis j} u) + (∂_{spatialEnergyBasis j} u) := + Finset.sum_nonneg fun _ _ => planarPairing_self_nonneg _ _ _ _ _ + unfold planarKleinGordonEnergy at he + nlinarith [sq_pos_of_pos hm] + +theorem eq_zero_ahead_of_plane_of_planarPairing_zero + {a x₀ x : EuclideanSpace ℝ (Fin 3)} {R t : ℝ} (f : SpatialSchwartz) + (hf : planarPairing a x₀ R t f f = 0) + (hx : R + t < ⟪a, x - x₀⟫_ℝ) : f x = 0 := by + have hi : ∫ y, planarEnergyWeight a x₀ R t y * ‖f y‖ ^ 2 = 0 := by + simpa only [planarPairing_eq_integral, real_inner_self_eq_norm_sq] using hf + have hae : (fun y => planarEnergyWeight a x₀ R t y * ‖f y‖ ^ 2) =ᵐ[volume] 0 := + (integral_eq_zero_iff_of_nonneg + (fun y => mul_nonneg (planarEnergyWeight_nonneg _ _ _ _ _) (sq_nonneg _)) + (integrable_planarWeighted_norm_sq a x₀ R t f)).mp hi + have hcont : Continuous (fun y => planarEnergyWeight a x₀ R t y * ‖f y‖ ^ 2) := + (hasTemperateGrowth_planarEnergyWeight a x₀ R t).1.continuous.mul (f.continuous.norm.pow 2) + have hz := congrFun (Measure.eq_of_ae_eq hae hcont continuous_const) x + have hw := planarEnergyWeight_pos hx + have hsq : ‖f x‖ ^ 2 = 0 := (mul_eq_zero.mp hz).resolve_left hw.ne' + exact norm_eq_zero.mp (by nlinarith [norm_nonneg (f x)]) + +/-- Actual forward-time half-space finite propagation. -/ +theorem massiveSchwartzCauchy_eq_zero_ahead_of_plane {m : ℝ} (hm : 0 < m) + {a x₀ x : EuclideanSpace ℝ (Fin 3)} (ha : ‖a‖ ≤ 1) {R t : ℝ} (ht : 0 ≤ t) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ R) + (hg : tsupport g ⊆ Metric.closedBall x₀ R) + (hx : R + t < ⟪a, x - x₀⟫_ℝ) : massiveSchwartzCauchy m t f g x = 0 := by + have hle := antitone_planarKleinGordonEnergy hm ha x₀ R f g ht + change planarKleinGordonEnergy a x₀ R m t + (massiveSchwartzCauchy m t f g) (massiveSchwartzCauchyVelocity m t f g) ≤ + planarKleinGordonEnergy a x₀ R m 0 + (massiveSchwartzCauchy m 0 f g) (massiveSchwartzCauchyVelocity m 0 f g) at hle + rw [planarKleinGordonEnergy_initial_zero hm ha f g hf hg] at hle + have he := le_antisymm hle (planarKleinGordonEnergy_nonneg a x₀ R m t _ _) + exact eq_zero_ahead_of_plane_of_planarPairing_zero _ + (planarPairing_self_eq_zero_of_energy_zero hm a x₀ R t _ _ he) hx + +theorem massiveSchwartzCauchy_eq_zero_outside_forward_cone {m : ℝ} (hm : 0 < m) + {x₀ x : EuclideanSpace ℝ (Fin 3)} {R t : ℝ} (hR : 0 ≤ R) (ht : 0 ≤ t) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ R) + (hg : tsupport g ⊆ Metric.closedBall x₀ R) + (hx : R + t < ‖x - x₀‖) : massiveSchwartzCauchy m t f g x = 0 := by + have hd : 0 < ‖x - x₀‖ := lt_of_le_of_lt (add_nonneg hR ht) hx + let a : EuclideanSpace ℝ (Fin 3) := ‖x - x₀‖⁻¹ • (x - x₀) + have ha : ‖a‖ ≤ 1 := by + simp only [a, norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr hd), + inv_mul_cancel₀ hd.ne', le_refl] + have hi : ⟪a, x - x₀⟫_ℝ = ‖x - x₀‖ := by + simp only [a, real_inner_smul_left, real_inner_self_eq_norm_sq] + field_simp [hd.ne'] + exact massiveSchwartzCauchy_eq_zero_ahead_of_plane hm ha ht f g hf hg (by rw [hi]; exact hx) + +/-- Time reversal of the actual Cauchy solution changes only the initial velocity. -/ +theorem massiveSchwartzCauchy_neg_time {m : ℝ} (hm : 0 < m) (t : ℝ) + (f g : SpatialSchwartz) : + massiveSchwartzCauchy m (-t) f g = massiveSchwartzCauchy m t f (-g) := by + apply (fourierCLE ℂ SpatialSchwartz).injective + ext ξ + change (𝓕 (massiveSchwartzCauchy m (-t) f g)) ξ = + (𝓕 (massiveSchwartzCauchy m t f (-g))) ξ + have hneg : 𝓕 (-g) = -(𝓕 g) := map_neg (fourierCLE ℂ SpatialSchwartz) g + simp only [fourier_massiveSchwartzCauchy hm, hneg, neg_apply, + neg_mul, Real.cos_neg, Real.sin_neg, mul_neg, Complex.ofReal_neg, neg_mul] + +/-- Closed cone support of the literal massive Cauchy solution, at every real +time, for actual compactly supported Schwartz initial data. -/ +theorem tsupport_massiveSchwartzCauchy_subset {m : ℝ} (hm : 0 < m) + {x₀ : EuclideanSpace ℝ (Fin 3)} {R : ℝ} (hR : 0 ≤ R) (t : ℝ) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ R) + (hg : tsupport g ⊆ Metric.closedBall x₀ R) : + tsupport (massiveSchwartzCauchy m t f g) ⊆ Metric.closedBall x₀ (R + |t|) := by + apply closure_minimal _ Metric.isClosed_closedBall + intro x hx + by_contra hout + have hn : R + |t| < ‖x - x₀‖ := by + simpa only [Metric.mem_closedBall, dist_eq_norm, not_le] using hout + have hz : massiveSchwartzCauchy m t f g x = 0 := by + by_cases ht : 0 ≤ t + · exact massiveSchwartzCauchy_eq_zero_outside_forward_cone hm hR ht f g hf hg + (by simpa only [abs_of_nonneg ht] using hn) + · have ht' : 0 ≤ -t := neg_nonneg.mpr (le_of_not_ge ht) + have hg' : tsupport (-g) ⊆ Metric.closedBall x₀ R := by simpa only [FunLike.coe_neg, + tsupport_neg] using hg + have hrev := massiveSchwartzCauchy_neg_time hm (-t) f g + rw [neg_neg] at hrev + rw [hrev] + exact massiveSchwartzCauchy_eq_zero_outside_forward_cone hm hR ht' f (-g) hf hg' + (by simpa only [abs_of_neg (lt_of_not_ge ht)] using hn) + exact hx hz + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CauchyPointwiseEquation.lean b/LeanPool/VacuumBellSeparation/FreeField/CauchyPointwiseEquation.lean new file mode 100644 index 0000000000..ba6129d963 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CauchyPointwiseEquation.lean @@ -0,0 +1,44 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionPointwiseDerivative + +/-! # The literal Cauchy solution satisfies the massive equation pointwise -/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem hasDerivAt_massiveSchwartzCauchyVelocity_pointwise {m : ℝ} (hm : 0 < m) + (t : ℝ) (f g : SpatialSchwartz) (x : EuclideanSpace ℝ (Fin 3)) : + HasDerivAt (fun s => massiveSchwartzCauchyVelocity m s f g x) + (-(massiveSchwartzPower m 2 (massiveSchwartzCauchy m t f g)) x) t := by + have hp := (hasDerivAt_massiveSchwartzEvolution_pointwise m t + (massiveSchwartzPower m 1 (cauchyPositiveData m f g)) x).const_mul Complex.I + have hn := (hasDerivAt_massiveSchwartzEvolution_neg_pointwise m t + (massiveSchwartzPower m 1 (cauchyNegativeData m f g)) x).const_mul Complex.I + refine ((hp.sub hn).congr_of_eventuallyEq + (Filter.Eventually.of_forall fun s => ?_)).congr_deriv ?_ + · simp only [massiveSchwartzCauchyVelocity, sub_apply, smul_apply, smul_eq_mul, + Pi.sub_apply] + · simp only [← mul_assoc, Complex.I_mul_I, neg_one_mul, mul_neg, neg_neg, + massiveSchwartzPower_add hm, show (1 : ℝ) + 1 = 2 by norm_num, + massiveSchwartzEvolution_commute_power, massiveSchwartzCauchy_eq_phases, + map_add, add_apply, neg_add_rev, sub_eq_add_neg, add_comm] + +open Laplacian in +theorem hasDerivAt_massiveSchwartzCauchy_pointwise_kleinGordon {m : ℝ} (hm : 0 < m) + (t : ℝ) (f g : SpatialSchwartz) (x : EuclideanSpace ℝ (Fin 3)) : + HasDerivAt (fun s => massiveSchwartzCauchyVelocity m s f g x) + ((Δ (massiveSchwartzCauchy m t f g)) x - + (m ^ 2 : ℂ) * massiveSchwartzCauchy m t f g x) t := by + simpa only [massiveSchwartzPower_two hm, sub_apply, smul_apply, + smul_eq_mul, Complex.ofReal_pow, neg_sub] using + hasDerivAt_massiveSchwartzCauchyVelocity_pointwise hm t f g x + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CauchyReality.lean b/LeanPool/VacuumBellSeparation/FreeField/CauchyReality.lean new file mode 100644 index 0000000000..4d0ec318a6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CauchyReality.lean @@ -0,0 +1,106 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CauchyPointwiseEquation +public import LeanPool.VacuumBellSeparation.FreeField.SourceDistributionReality + +/-! +# Reality of the actual cosine/sine Cauchy solution + +Complex conjugation is the existing actual real-linear Schwartz operation. +The literal Fourier transform has conjugate reflection symmetry. Real even +Fourier multipliers consequently preserve real spatial data. The actual +cosine/sine Cauchy solution is therefore real; its actual time derivative is +real as well. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter FourierTransform +open scoped FourierTransform ComplexConjugate + +theorem conj_real_fourierCharacter (r : ℝ) : conj (𝐞 r : ℂ) = (𝐞 (-r) : ℂ) := by + simp only [Real.fourierChar_apply, ← Complex.exp_conj, map_mul, + Complex.conj_ofReal, Complex.conj_I] + congr 1 + push_cast + ring + +theorem fourier_spatialSchwartzConjugate_apply (f : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + (𝓕 (spatialSchwartzConjugate f)) ξ = conj ((𝓕 f) (-ξ)) := by + rw [SchwartzMap.fourier_coe, SchwartzMap.fourier_coe, + Real.fourier_eq, Real.fourier_eq, ← integral_conj] + apply integral_congr_ae + exact Eventually.of_forall fun x => by + simp only [Circle.smul_def, smul_eq_mul, spatialSchwartzConjugate_apply, + map_mul, conj_real_fourierCharacter, inner_neg_right, neg_neg] + +theorem spatialSchwartzConjugate_fourierMultiplier + (w : EuclideanSpace ℝ (Fin 3) → ℂ) (hw : Function.HasTemperateGrowth w) + (hwr : ∀ ξ, conj (w (-ξ)) = w ξ) (f : SpatialSchwartz) : + spatialSchwartzConjugate (SchwartzMap.fourierMultiplierCLM ℂ w f) = + SchwartzMap.fourierMultiplierCLM ℂ w (spatialSchwartzConjugate f) := by + apply (fourierCLE ℂ SpatialSchwartz).injective + ext ξ + change (𝓕 (spatialSchwartzConjugate (SchwartzMap.fourierMultiplierCLM ℂ w f))) ξ = + (𝓕 (SchwartzMap.fourierMultiplierCLM ℂ w (spatialSchwartzConjugate f))) ξ + rw [fourier_spatialSchwartzConjugate_apply] + simp only [SchwartzMap.fourierMultiplierCLM_apply, fourier_fourierInv_eq, + SchwartzMap.smulLeftCLM_apply_apply hw, smul_eq_mul, map_mul, hwr, + fourier_spatialSchwartzConjugate_apply] + +theorem massiveSchwartzSymbol_neg (m r : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : + massiveSchwartzSymbol m r (-ξ) = massiveSchwartzSymbol m r ξ := by + simp only [massiveSchwartzSymbol, smul_neg, norm_neg] + +theorem spatialSchwartzConjugate_massiveSchwartzCosine (m t : ℝ) (f : SpatialSchwartz) : + spatialSchwartzConjugate (massiveSchwartzCosine m t f) = + massiveSchwartzCosine m t (spatialSchwartzConjugate f) := by + apply spatialSchwartzConjugate_fourierMultiplier _ (hasTemperateGrowth_massiveCosine m t) + intro ξ + simp only [Complex.conj_ofReal, massiveSchwartzSymbol_neg] + +theorem spatialSchwartzConjugate_massiveSchwartzSine (m t : ℝ) (f : SpatialSchwartz) : + spatialSchwartzConjugate (massiveSchwartzSine m t f) = + massiveSchwartzSine m t (spatialSchwartzConjugate f) := by + apply spatialSchwartzConjugate_fourierMultiplier _ (hasTemperateGrowth_massiveSine m t) + intro ξ + simp only [Complex.conj_ofReal, massiveSchwartzSymbol_neg] + +theorem spatialSchwartzConjugate_massiveSchwartzCauchy (m t : ℝ) (f g : SpatialSchwartz) : + spatialSchwartzConjugate (massiveSchwartzCauchy m t f g) = + massiveSchwartzCauchy m t (spatialSchwartzConjugate f) (spatialSchwartzConjugate g) := by + simp only [massiveSchwartzCauchy, map_add, spatialSchwartzConjugate_massiveSchwartzCosine, + spatialSchwartzConjugate_massiveSchwartzSine] + +theorem massiveSchwartzCauchy_real (m t : ℝ) (f g : SpatialSchwartz) + (hf : spatialSchwartzConjugate f = f) (hg : spatialSchwartzConjugate g = g) + (x : EuclideanSpace ℝ (Fin 3)) : + conj (massiveSchwartzCauchy m t f g x) = massiveSchwartzCauchy m t f g x := by + have h := spatialSchwartzConjugate_massiveSchwartzCauchy m t f g + rw [hf, hg] at h + exact DFunLike.congr_fun h x + +theorem massiveSchwartzCauchyVelocity_real (m t : ℝ) (f g : SpatialSchwartz) + (hf : spatialSchwartzConjugate f = f) (hg : spatialSchwartzConjugate g = g) + (x : EuclideanSpace ℝ (Fin 3)) : + conj (massiveSchwartzCauchyVelocity m t f g x) = massiveSchwartzCauchyVelocity m t f g x := by + have h := hasDerivAt_massiveSchwartzCauchy_pointwise m t f g x + have hc := Complex.conjCLE.toContinuousLinearMap.hasFDerivAt.comp_hasDerivAt t h + have heq : (fun s => conj (massiveSchwartzCauchy m s f g x)) = + (fun s => massiveSchwartzCauchy m s f g x) := + funext (fun s => massiveSchwartzCauchy_real m s f g hf hg x) + change HasDerivAt (fun s => conj (massiveSchwartzCauchy m s f g x)) + (conj (massiveSchwartzCauchyVelocity m t f g x)) t at hc + rw [heq] at hc + exact hc.unique h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CauchySpatialDerivatives.lean b/LeanPool/VacuumBellSeparation/FreeField/CauchySpatialDerivatives.lean new file mode 100644 index 0000000000..9267377276 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CauchySpatialDerivatives.lean @@ -0,0 +1,91 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CauchyEvolutionL2 + +/-! +# Actual spatial derivatives of the Cauchy evolution + +Directional differentiation commutes with the literal Fourier multipliers. +Applying the established L² derivative theorem to differentiated initial data +therefore differentiates the actual spatial gradient in L². No bounded spatial +derivative on L², or exchange of unproved derivatives, is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory FourierTransform LineDeriv +open scoped SchwartzMap FourierTransform LineDeriv + +theorem lineDeriv_fourierMultiplier (w : EuclideanSpace ℝ (Fin 3) → ℂ) + (hw : Function.HasTemperateGrowth w) (v : EuclideanSpace ℝ (Fin 3)) + (f : SpatialSchwartz) : + ∂_{v} (SchwartzMap.fourierMultiplierCLM ℂ w f) = + SchwartzMap.fourierMultiplierCLM ℂ w (∂_{v} f) := by + have hv : Function.HasTemperateGrowth (inner ℝ · v) := + ((innerSL ℝ).flip v).hasTemperateGrowth + apply (fourierCLE ℂ SpatialSchwartz).injective + change 𝓕 (∂_{v} (SchwartzMap.fourierMultiplierCLM ℂ w f)) = + 𝓕 (SchwartzMap.fourierMultiplierCLM ℂ w (∂_{v} f)) + simp only [SchwartzMap.fourier_lineDerivOp_eq, + SchwartzMap.fourierMultiplierCLM_apply, fourier_fourierInv_eq] + ext ξ + simp only [smul_apply, SchwartzMap.smulLeftCLM_apply_apply hw, + SchwartzMap.smulLeftCLM_apply_apply hv, smul_eq_mul, Complex.real_smul] + ring + +theorem lineDeriv_massiveSchwartzPower (m r : ℝ) (v : EuclideanSpace ℝ (Fin 3)) + (f : SpatialSchwartz) : + ∂_{v} (massiveSchwartzPower m r f) = massiveSchwartzPower m r (∂_{v} f) := + lineDeriv_fourierMultiplier _ (hasTemperateGrowth_complex_massiveSchwartzSymbol m r) v f + +theorem lineDeriv_massiveSchwartzEvolution (m t : ℝ) (v : EuclideanSpace ℝ (Fin 3)) + (f : SpatialSchwartz) : + ∂_{v} (massiveSchwartzEvolution m t f) = massiveSchwartzEvolution m t (∂_{v} f) := + lineDeriv_fourierMultiplier _ (hasTemperateGrowth_massiveEvolutionPhase m t) v f + +theorem lineDeriv_cauchyPositiveData (m : ℝ) (v : EuclideanSpace ℝ (Fin 3)) + (f g : SpatialSchwartz) : + ∂_{v} (cauchyPositiveData m f g) = cauchyPositiveData m (∂_{v} f) (∂_{v} g) := by + simp only [cauchyPositiveData, sub_eq_add_neg, lineDerivOp_add, + lineDerivOp_neg, lineDerivOp_smul, lineDeriv_massiveSchwartzPower] + +theorem lineDeriv_cauchyNegativeData (m : ℝ) (v : EuclideanSpace ℝ (Fin 3)) + (f g : SpatialSchwartz) : + ∂_{v} (cauchyNegativeData m f g) = cauchyNegativeData m (∂_{v} f) (∂_{v} g) := by + simp only [cauchyNegativeData, lineDerivOp_add, lineDerivOp_smul, + lineDeriv_massiveSchwartzPower] + +theorem lineDeriv_massiveSchwartzCauchy (m t : ℝ) (v : EuclideanSpace ℝ (Fin 3)) + (f g : SpatialSchwartz) : + ∂_{v} (massiveSchwartzCauchy m t f g) = + massiveSchwartzCauchy m t (∂_{v} f) (∂_{v} g) := by + simp only [massiveSchwartzCauchy_eq_phases, lineDerivOp_add, + lineDeriv_massiveSchwartzEvolution, lineDeriv_cauchyPositiveData, + lineDeriv_cauchyNegativeData] + +theorem lineDeriv_massiveSchwartzCauchyVelocity (m t : ℝ) + (v : EuclideanSpace ℝ (Fin 3)) (f g : SpatialSchwartz) : + ∂_{v} (massiveSchwartzCauchyVelocity m t f g) = + massiveSchwartzCauchyVelocity m t (∂_{v} f) (∂_{v} g) := by + simp only [massiveSchwartzCauchyVelocity, sub_eq_add_neg, lineDerivOp_add, + lineDerivOp_neg, lineDerivOp_smul, lineDeriv_massiveSchwartzEvolution, + lineDeriv_massiveSchwartzPower, lineDeriv_cauchyPositiveData, + lineDeriv_cauchyNegativeData] + +/-- Actual time derivative of each actual spatial directional derivative. -/ +theorem hasDerivAt_lineDeriv_massiveSchwartzCauchy_toL2 (m t : ℝ) + (v : EuclideanSpace ℝ (Fin 3)) (f g : SpatialSchwartz) : + HasDerivAt (fun s => (∂_{v} (massiveSchwartzCauchy m s f g)).toLp 2) + ((∂_{v} (massiveSchwartzCauchyVelocity m t f g)).toLp 2) t := by + simpa only [lineDeriv_massiveSchwartzCauchy, lineDeriv_massiveSchwartzCauchyVelocity] using + hasDerivAt_massiveSchwartzCauchy_toL2 m t (∂_{v} f) (∂_{v} g) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CauchySpatialTest.lean b/LeanPool/VacuumBellSeparation/FreeField/CauchySpatialTest.lean new file mode 100644 index 0000000000..2cdd82779b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CauchySpatialTest.lean @@ -0,0 +1,109 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceBall + +/-! +# Actual real spatial test functions from compact Cauchy evolution + +Finite propagation makes each fixed-time evolved compact datum a genuine +compact test function. The complexification is exactly the original Schwartz +solution, by its proved reality. These are the time-zero labels used by the +forward time-slice construction. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped ComplexConjugate FourierTransform +open FourierTransform + +/-- Real Schwartz spatial test. -/ +noncomputable def realSchwartzSpatialTest (f : SpatialSchwartz) + (hc : HasCompactSupport f) : SpatialTestFunction := + ⟨fun x => (f x).re, Complex.reCLM.contDiff.comp (f.smooth ⊤), + hc.comp_left (by simp)⟩ + +theorem spatialSchwartz_realSchwartzSpatialTest (f : SpatialSchwartz) + (hc : HasCompactSupport f) (hr : spatialSchwartzConjugate f = f) : + spatialSchwartz (realSchwartzSpatialTest f hc) = f := by + ext x + exact Complex.conj_eq_iff_re.mp (DFunLike.congr_fun hr x) + +theorem tsupport_realSchwartzSpatialTest_subset (f : SpatialSchwartz) + (hc : HasCompactSupport f) : + tsupport (realSchwartzSpatialTest f hc).1 ⊆ tsupport f := + tsupport_comp_subset (g := Complex.re) (by simp) f + +theorem hasCompactSupport_massiveSchwartzCauchy {m : ℝ} (hm : 0 < m) + (t : ℝ) (f g : SpatialSchwartz) + (hf : HasCompactSupport f) (hg : HasCompactSupport g) : + HasCompactSupport (massiveSchwartzCauchy m t f g) := by + obtain ⟨r, hr, hs⟩ := (hf.union hg).isBounded.subset_ball_lt 0 + (0 : EuclideanSpace ℝ (Fin 3)) + apply (isCompact_closedBall (0 : EuclideanSpace ℝ (Fin 3)) (r + |t|)).of_isClosed_subset + (isClosed_tsupport _) + exact tsupport_massiveSchwartzCauchy_subset hm hr.le t f g + ((Set.subset_union_left.trans hs).trans Metric.ball_subset_closedBall) + ((Set.subset_union_right.trans hs).trans Metric.ball_subset_closedBall) + +/-- Spatial Cauchy test. -/ +noncomputable def spatialCauchyTest {m : ℝ} (hm : 0 < m) (t : ℝ) + (f g : SpatialTestFunction) : SpatialTestFunction := + realSchwartzSpatialTest (massiveSchwartzCauchy m t (spatialSchwartz f) (spatialSchwartz g)) + (hasCompactSupport_massiveSchwartzCauchy hm t _ _ + (f.2.2.comp_left Complex.ofReal_zero) (g.2.2.comp_left Complex.ofReal_zero)) + +theorem spatialSchwartz_spatialCauchyTest {m : ℝ} (hm : 0 < m) (t : ℝ) + (f g : SpatialTestFunction) : + spatialSchwartz (spatialCauchyTest hm t f g) = + massiveSchwartzCauchy m t (spatialSchwartz f) (spatialSchwartz g) := by + apply spatialSchwartz_realSchwartzSpatialTest + rw [spatialSchwartzConjugate_massiveSchwartzCauchy, + spatialSchwartzConjugate_spatialSchwartz, spatialSchwartzConjugate_spatialSchwartz] + +theorem tsupport_spatialCauchyTest_subset {m r : ℝ} (hm : 0 < m) (hr : 0 ≤ r) + (t : ℝ) (x₀ : EuclideanSpace ℝ (Fin 3)) (f g : SpatialTestFunction) + (hf : tsupport f.1 ⊆ Metric.closedBall x₀ r) + (hg : tsupport g.1 ⊆ Metric.closedBall x₀ r) : + tsupport (spatialCauchyTest hm t f g).1 ⊆ Metric.closedBall x₀ (r + |t|) := + (tsupport_realSchwartzSpatialTest_subset _ _).trans + (tsupport_massiveSchwartzCauchy_subset hm hr t _ _ + ((tsupport_spatialSchwartz_subset f).trans hf) + ((tsupport_spatialSchwartz_subset g).trans hg)) + +@[simp] theorem spatialSchwartz_zero : spatialSchwartz (0 : SpatialTestFunction) = 0 := by + ext x + change ((0 : ℝ) : ℂ) = 0 + rfl + +/-- Propagating a real spatial slice through time gives this actual pair +of compact real time-zero sources. -/ +noncomputable def evolvedSpatialSource {m : ℝ} (hm : 0 < m) (t : ℝ) + (f : SpatialTestFunction) : TimeZeroSource := + (spatialCauchyTest hm t f 0, spatialCauchyTest hm t 0 f) + +theorem timeZeroOneParticle_evolvedSpatialSource {m : ℝ} (hm : 0 < m) + (t : ℝ) (f : SpatialTestFunction) (ξ : EuclideanSpace ℝ (Fin 3)) : + timeZeroOneParticle m (evolvedSpatialSource hm t f) ((2 * Real.pi) • ξ) = + massiveEvolutionPhase m t ξ * (𝓕 (spatialSchwartz f)) ξ := by + have hw : (dispersion m ((2 * Real.pi) • ξ) : ℂ) ≠ 0 := + Complex.ofReal_ne_zero.mpr (ne_of_gt (by unfold dispersion; positivity)) + have hF0 : 𝓕 (0 : SpatialSchwartz) = 0 := by + change FourierTransform.fourierCLM ℂ SpatialSchwartz 0 = 0 + exact map_zero _ + simp only [timeZeroOneParticle, evolvedSpatialSource, spatialFourier_two_pi, + spatialSchwartz_spatialCauchyTest, fourier_massiveSchwartzCauchy hm, + spatialSchwartz_zero, hF0, zero_apply, mul_zero, add_zero, zero_add] + rw [massiveEvolutionPhase, massiveSchwartzSymbol_one hm, Complex.exp_mul_I] + simp only [← Complex.ofReal_cos, ← Complex.ofReal_sin] + push_cast + field_simp [hw] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CauchyVelocitySupport.lean b/LeanPool/VacuumBellSeparation/FreeField/CauchyVelocitySupport.lean new file mode 100644 index 0000000000..60a45c78b2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CauchyVelocitySupport.lean @@ -0,0 +1,53 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CauchyFinitePropagation +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionPointwiseDerivative + +/-! # Cone support of the actual Cauchy velocity -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology + +theorem massiveSchwartzCauchyVelocity_eq_zero_outside_cone {m : ℝ} (hm : 0 < m) + {x₀ x : EuclideanSpace ℝ (Fin 3)} {R : ℝ} (hR : 0 ≤ R) (t : ℝ) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ R) + (hg : tsupport g ⊆ Metric.closedBall x₀ R) + (hx : R + |t| < ‖x - x₀‖) : massiveSchwartzCauchyVelocity m t f g x = 0 := by + have hn : ∀ᶠ s in 𝓝 t, R + |s| < ‖x - x₀‖ := + (continuous_const.add continuous_abs).continuousAt.eventually_lt_const hx + have heq : (fun s => massiveSchwartzCauchy m s f g x) =ᶠ[𝓝 t] (fun _ => 0) := by + filter_upwards [hn] with s hs + apply image_eq_zero_of_notMem_tsupport + intro hmem + have hball := tsupport_massiveSchwartzCauchy_subset hm hR s f g hf hg hmem + have hnorm : ‖x - x₀‖ ≤ R + |s| := by + simpa only [Metric.mem_closedBall, dist_eq_norm] using hball + exact (not_lt_of_ge hnorm) hs + have hz : deriv (fun s => massiveSchwartzCauchy m s f g x) t = 0 := by + rw [heq.deriv_eq] + exact deriv_const _ _ + rw [(hasDerivAt_massiveSchwartzCauchy_pointwise m t f g x).deriv] at hz + exact hz + +theorem tsupport_massiveSchwartzCauchyVelocity_subset {m : ℝ} (hm : 0 < m) + {x₀ : EuclideanSpace ℝ (Fin 3)} {R : ℝ} (hR : 0 ≤ R) (t : ℝ) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ R) + (hg : tsupport g ⊆ Metric.closedBall x₀ R) : + tsupport (massiveSchwartzCauchyVelocity m t f g) ⊆ Metric.closedBall x₀ (R + |t|) := by + apply closure_minimal _ Metric.isClosed_closedBall + intro x hx + by_contra hout + have hn : R + |t| < ‖x - x₀‖ := by + simpa only [Metric.mem_closedBall, dist_eq_norm, not_le] using hout + exact hx (massiveSchwartzCauchyVelocity_eq_zero_outside_cone hm hR t f g hf hg hn) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CenteredWeightedSourceMoments.lean b/LeanPool/VacuumBellSeparation/FreeField/CenteredWeightedSourceMoments.lean new file mode 100644 index 0000000000..41ac540469 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CenteredWeightedSourceMoments.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceMomentVectors +public import LeanPool.VacuumBellSeparation.FreeField.SourceTranslationEquivalence +public import LeanPool.VacuumBellSeparation.FreeField.SpatialLocalizedMomentSeries + +/-! +# Weighted original-source moments about an arbitrary spatial center + +The region and its literal test functions are translated, while the +physical unitary transports the original reserve exactly. The constants +are independent of the center and the region. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification +open scoped BigOperators + +theorem exists_centered_weightedSource_moment_vectors {b : ℝ} + (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + ∃ C : ℝ, 0 < C ∧ + ∀ (m : ℝ) (hm : 0 < m) (T : ℝ) (_ : 0 < T) + (a : EuclideanSpace ℝ (Fin 3)) (W : Set (EuclideanSpace ℝ (Fin 3))), + W ⊆ Metric.ball a T → ∀ α : Fin 3 → ℕ, + ∃ u v : ComplexSourceHilbert hm W, + ‖u‖ ≤ C * T / (1 + m * T) * Real.exp (sourceMomentLambda b * m * T) * + (sourceMomentBase b * T) ^ (∑ j, α j) ∧ + ‖v‖ ≤ C * T ^ 2 / (1 + m * T) ^ 2 * Real.exp (sourceMomentLambda b * m * T) * + (sourceMomentBase b * T) ^ (∑ j, α j) ∧ + (∀ x : SourceTestSpace hm W, + inner ℂ (ofReal (x : SourceHilbert hm W)) ((sourceReserve hm W ^ b) u) = + (centeredSpatialTestMoment a x.1.1 α : ℂ)) ∧ + (∀ x : SourceTestSpace hm W, + inner ℂ (ofReal (x : SourceHilbert hm W)) ((sourceReserve hm W ^ b) v) = + (centeredSpatialTestMoment a x.1.2 α : ℂ)) := by + obtain ⟨C, hC, hbound⟩ := exists_weightedSource_moment_vectors hb hb1 + refine ⟨C, hC, ?_⟩ + intro m hm T hT a W hW α + let U : Set (EuclideanSpace ℝ (Fin 3)) := {x | x + a ∈ W} + have hUW : ∀ x ∈ U, x + a ∈ W := fun _ hx => hx + have hWU : ∀ x ∈ W, x - a ∈ U := by + intro x hx + simpa only [U, Set.mem_ofPred_eq, sub_add_cancel] using hx + have hU : U ⊆ Metric.ball 0 T := by + intro x hx + have h := hW hx + simpa only [Metric.mem_ball, dist_eq_norm, add_sub_cancel_right, sub_zero] using h + obtain ⟨u, v, hu, hv, hueq, hveq⟩ := hbound m hm T hT U hU α + let e := complexSourceSpatialTranslation hm a hUW hWU + have hb0 : 0 ≤ b := by linarith + have heq (y : SourceTestSpace hm W) : + translatedSourceTest hm a hUW + (translatedSourceTest hm (-a) + (fun x hx => by simpa only [sub_eq_add_neg] using hWU x hx) y) = y := by + apply Subtype.ext + change timeZeroTranslate a (timeZeroTranslate (-a) y.1) = y.1 + simpa only [neg_neg] using timeZeroTranslate_neg_cancel (-a) y.1 + have hpair (w : ComplexSourceHilbert hm U) (y : SourceTestSpace hm W) : + inner ℂ (ofReal (y : SourceHilbert hm W)) ((sourceReserve hm W ^ b) (e w)) = + inner ℂ (ofReal + (translatedSourceTest hm (-a) + (fun x hx => by simpa only [sub_eq_add_neg] using hWU x hx) y : SourceHilbert hm U)) + ((sourceReserve hm U ^ b) w) := by + let x := translatedSourceTest hm (-a) + (fun x hx => by simpa only [sub_eq_add_neg] using hWU x hx) y + have hex : e (ofReal (x : SourceHilbert hm U)) = ofReal (y : SourceHilbert hm W) := by + rw [complexSourceSpatialTranslation_test, heq] + rw [← hex, sourceReserve_rpow_spatialTranslation hm a hUW hWU hb0, e.inner_map_map] + refine ⟨e u, e v, (e.norm_map u).le.trans hu, (e.norm_map v).le.trans hv, ?_, ?_⟩ + · intro y + rw [hpair, hueq] + rfl + · intro y + rw [hpair, hveq] + rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionBounds.lean b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionBounds.lean new file mode 100644 index 0000000000..cc61bf430b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionBounds.lean @@ -0,0 +1,129 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Distribution.TemperedDistribution +public import Mathlib.Analysis.Calculus.IteratedDeriv.Lemmas +public import Mathlib.Analysis.Calculus.ContDiff.Bounds + +/-! +# Finite-order and linear-moment bounds for compact Fourier analysis + +The scalar norm of an actual tempered distribution is controlled by finitely +many genuine Schwartz seminorms. The polynomial moments of a compact cutoff +have explicit derivative and seminorm bounds, retaining the descending +factorials needed for exponential Taylor convergence. No Schwartz norm or +completeness instance is assumed. +-/ + +@[expose] public section + +open scoped SchwartzMap NNReal + +namespace VacuumBellSeparation + +/-- Continuity of the actual distribution implies a finite family of seminorm bounds. -/ +theorem temperedDistribution_finite_seminorm_bound + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) : + ∃ s : Finset (ℕ × ℕ), ∃ C : ℝ≥0, C ≠ 0 ∧ + ∀ φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ, + ‖T φ‖ ≤ C * (s.sup (schwartzSeminormFamily ℂ (EuclideanSpace ℝ (Fin 3)) ℂ)) φ := by + let q : Seminorm ℂ (SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) := + (normSeminorm ℂ ℂ).comp T.toLinearMap + have hq : Continuous q := T.continuous.norm + obtain ⟨s, C, hC, hb⟩ := Seminorm.bound_of_continuous + (schwartz_withSeminorms ℂ (EuclideanSpace ℝ (Fin 3)) ℂ) q hq + refine ⟨s, C, hC, fun φ => ?_⟩ + exact hb φ + +/-- An exact linear phase permits the sharp descending-factorial derivative bound. -/ +theorem norm_iteratedFDeriv_realLinear_pow_le + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) (n j : ℕ) (x : EuclideanSpace ℝ (Fin 3)) : + ‖iteratedFDeriv ℝ j (fun y => (a y) ^ n) x‖ ≤ + (n.descFactorial j : ℝ) * |a x| ^ (n - j) * ‖a‖ ^ j := by + have hdiff : ContDiff ℝ (⊤ : ℕ∞) (fun t : ℝ => t ^ n) := by fun_prop + have hcomp := a.iteratedFDeriv_comp_right hdiff x (i := j) (by simp) + rw [show (fun y => (a y) ^ n) = (fun t : ℝ => t ^ n) ∘ a by rfl, hcomp] + calc + _ ≤ ‖iteratedFDeriv ℝ j (fun t : ℝ => t ^ n) (a x)‖ * ∏ _ : Fin j, ‖a‖ := + ContinuousMultilinearMap.norm_compContinuousLinearMap_le _ _ + _ = _ := by + rw [norm_iteratedFDeriv_eq_norm_iteratedDeriv, iteratedDeriv_pow] + simp [norm_mul, norm_pow, Real.norm_eq_abs] + +/-- Multiplication by a power of the actual real linear phase on Schwartz space. -/ +noncomputable def spatialLinearMoment (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (n : ℕ) (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + SchwartzMap.smulLeftCLM ℂ (fun x => (a x) ^ n) φ + +@[simp] theorem spatialLinearMoment_apply (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (n : ℕ) (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (x : EuclideanSpace ℝ (Fin 3)) : + spatialLinearMoment a n φ x = (a x) ^ n • φ x := by + apply SchwartzMap.smulLeftCLM_apply_apply + exact a.hasTemperateGrowth.pow n + +theorem tsupport_spatialLinearMoment_subset (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (n : ℕ) (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + tsupport (spatialLinearMoment a n φ) ⊆ tsupport φ := by + have heq : ⇑(spatialLinearMoment a n φ) = fun x => (a x) ^ n • φ x := + funext (spatialLinearMoment_apply a n φ) + rw [heq] + exact tsupport_smul_subset_right (fun x => (a x) ^ n) (fun x => φ x) + +/-- A cutoff-support phase bound controls every actual Schwartz seminorm of its moments. -/ +theorem seminorm_spatialLinearMoment_le + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + {R : ℝ} (hR : 0 ≤ R) (ha : ∀ x ∈ tsupport φ, |a x| ≤ R) (k j n : ℕ) : + SchwartzMap.seminorm ℂ k j (spatialLinearMoment a n φ) ≤ + ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * + ((n.descFactorial i : ℝ) * R ^ (n - i) * ‖a‖ ^ i) * + SchwartzMap.seminorm ℂ k (j - i) φ := by + apply SchwartzMap.seminorm_le_bound + · positivity + · intro x + by_cases hx : x ∈ tsupport φ + · have hdiff : ContDiff ℝ (⊤ : ℕ∞) (fun y => (a y) ^ n) := by fun_prop + have hb := norm_iteratedFDeriv_smul_le hdiff (φ.smooth ⊤) x (n := j) (by simp) + have heq : (fun y => (a y) ^ n • φ y) = spatialLinearMoment a n φ := by + funext y + exact (spatialLinearMoment_apply a n φ y).symm + rw [heq] at hb + calc + _ ≤ ‖x‖ ^ k * ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * + ‖iteratedFDeriv ℝ i (fun y => (a y) ^ n) x‖ * + ‖iteratedFDeriv ℝ (j - i) φ x‖ := + mul_le_mul_of_nonneg_left hb (by positivity) + _ = ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * + ‖iteratedFDeriv ℝ i (fun y => (a y) ^ n) x‖ * + (‖x‖ ^ k * ‖iteratedFDeriv ℝ (j - i) φ x‖) := by + rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro i hi + ring + _ ≤ _ := by + apply Finset.sum_le_sum + intro i hi + have hp := norm_iteratedFDeriv_realLinear_pow_le a n i x + have hp' : ‖iteratedFDeriv ℝ i (fun y => (a y) ^ n) x‖ ≤ + (n.descFactorial i : ℝ) * R ^ (n - i) * ‖a‖ ^ i := by + apply hp.trans + gcongr + exact ha x hx + exact mul_le_mul + (mul_le_mul_of_nonneg_left hp' (by positivity)) + (φ.le_seminorm ℂ k (j - i) x) (by positivity) (by positivity) + · have hzero : iteratedFDeriv ℝ j (spatialLinearMoment a n φ) x = 0 := + image_eq_zero_of_notMem_tsupport fun h => + hx ((tsupport_spatialLinearMoment_subset a n φ) + ((tsupport_iteratedFDeriv_subset j) h)) + rw [hzero, norm_zero, mul_zero] + positivity + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionCoefficients.lean b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionCoefficients.lean new file mode 100644 index 0000000000..dc137b91eb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionCoefficients.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionBounds +public import Mathlib.Analysis.SpecificLimits.Normed + +/-! +# Absolute scalar convergence of compact-distribution exponential coefficients + +These are the actual Schwartz polynomial coefficients. Every Schwartz +seminorm gives an absolutely summable series at every scalar radius when +the phase is bounded on the cutoff support. Evaluation by an actual tempered +distribution therefore has absolutely summable scalar coefficients. This +module does not identify their sum with evaluation on the cutoff exponential; +that identification requires convergence of the Schwartz Taylor remainders and +is proved in `FreeField/CompactDistributionEntire.lean` +(`hasSum_distribution_spatialSchwartzExponential`). +-/ + +@[expose] public section + +open scoped SchwartzMap + +namespace VacuumBellSeparation + +private theorem descFactorial_div_factorial {n i : ℕ} (hi : i ≤ n) : + (n.descFactorial i : ℝ) / n.factorial = 1 / (n - i).factorial := by + apply (div_eq_div_iff (by positivity : (n.factorial : ℝ) ≠ 0) + (by positivity : ((n - i).factorial : ℝ) ≠ 0)).mpr + exact_mod_cast (by simpa [mul_comm] using Nat.factorial_mul_descFactorial hi) + +/-- Descending factorials turn the differentiated exponential majorant into a shifted +exponential. -/ +theorem summable_exponential_derivative_majorant (r R : ℝ) (i : ℕ) : + Summable (fun n : ℕ => (n.descFactorial i : ℝ) / n.factorial * (r ^ n * R ^ (n - i))) := by + apply (summable_nat_add_iff i).mp + convert (Real.summable_pow_div_factorial (r * R)).mul_left (r ^ i) using 1 + funext n + rw [descFactorial_div_factorial (Nat.le_add_left i n), Nat.add_sub_cancel, + pow_add, mul_pow] + ring + +/-- The actual `a(x)^n φ(x)/n!` Schwartz coefficient. -/ +noncomputable def spatialExponentialCoefficient + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (n : ℕ) : + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + (n.factorial : ℂ)⁻¹ • spatialLinearMoment a n φ + +theorem seminorm_spatialExponentialCoefficient_le + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + {R : ℝ} (hR : 0 ≤ R) (ha : ∀ x ∈ tsupport φ, |a x| ≤ R) (k j n : ℕ) : + SchwartzMap.seminorm ℂ k j (spatialExponentialCoefficient a φ n) ≤ + ∑ i ∈ Finset.range (j + 1), + ((j.choose i : ℝ) * ‖a‖ ^ i * SchwartzMap.seminorm ℂ k (j - i) φ) * + ((n.descFactorial i : ℝ) / n.factorial * R ^ (n - i)) := by + rw [spatialExponentialCoefficient, map_smul_eq_mul] + simp only [norm_inv, Complex.norm_natCast] + apply (mul_le_mul_of_nonneg_left (seminorm_spatialLinearMoment_le a φ hR ha k j n) + (by positivity : 0 ≤ (n.factorial : ℝ)⁻¹)).trans + apply le_of_eq + rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro i hi + ring + +/-- Every fixed genuine Schwartz seminorm gives an absolutely convergent coefficient series. -/ +theorem summable_seminorm_spatialExponentialCoefficient + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + {R : ℝ} (hR : 0 ≤ R) (ha : ∀ x ∈ tsupport φ, |a x| ≤ R) + {r : ℝ} (hr : 0 ≤ r) (k j : ℕ) : + Summable (fun n => r ^ n * + SchwartzMap.seminorm ℂ k j (spatialExponentialCoefficient a φ n)) := by + have hsum : Summable (fun n => ∑ i ∈ Finset.range (j + 1), + ((j.choose i : ℝ) * ‖a‖ ^ i * SchwartzMap.seminorm ℂ k (j - i) φ) * + ((n.descFactorial i : ℝ) / n.factorial * (r ^ n * R ^ (n - i)))) := by + apply summable_sum + intro i hi + exact (summable_exponential_derivative_majorant r R i).mul_left _ + apply hsum.of_nonneg_of_le (fun n => by positivity) + intro n + apply (mul_le_mul_of_nonneg_left + (seminorm_spatialExponentialCoefficient_le a φ hR ha k j n) (by positivity)).trans + apply le_of_eq + rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro i hi + ring + +/-- Applying an actual continuous distribution gives scalar absolute convergence at every radius. -/ +theorem summable_distribution_spatialExponentialCoefficient + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + {R : ℝ} (hR : 0 ≤ R) (ha : ∀ x ∈ tsupport φ, |a x| ≤ R) (z : ℂ) : + Summable (fun n => z ^ n * T (spatialExponentialCoefficient a φ n)) := by + obtain ⟨s, C, hC, hb⟩ := temperedDistribution_finite_seminorm_bound T + have hsum : Summable (fun n => (C : ℝ) * + ∑ i ∈ s, ‖z‖ ^ n * + SchwartzMap.seminorm ℂ i.1 i.2 (spatialExponentialCoefficient a φ n)) := by + apply Summable.mul_left + apply summable_sum + intro i hi + exact summable_seminorm_spatialExponentialCoefficient a φ hR ha (norm_nonneg z) i.1 i.2 + apply hsum.of_norm_bounded + intro n + rw [norm_mul, norm_pow] + have hsup := Seminorm.finset_sup_le_sum + (schwartzSeminormFamily ℂ (EuclideanSpace ℝ (Fin 3)) ℂ) s + (spatialExponentialCoefficient a φ n) + have hb' := (hb (spatialExponentialCoefficient a φ n)).trans + (mul_le_mul_of_nonneg_left hsup C.coe_nonneg) + apply (mul_le_mul_of_nonneg_left hb' (by positivity)).trans + apply le_of_eq + simp only [sum_apply, schwartzSeminormFamily, Finset.mul_sum] + apply Finset.sum_congr rfl + intro i hi + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionCutoff.lean b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionCutoff.lean new file mode 100644 index 0000000000..791fadb858 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionCutoff.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionEntire +public import Mathlib.Analysis.Distribution.Support +public import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension + +/-! +# Genuine cutoff identities for distributions vanishing outside a compact set + +The hypothesis is actual vanishing on exterior tests. A cutoff equal to one +near the localization set may be inserted into any Schwartz pairing, and +cutoff exponential pairings are independent of that choice. Bounded sets +admit a compact smooth cutoff, constructed from a genuine radial bump. +-/ + +@[expose] public section + +open Filter Topology +open scoped SchwartzMap + +namespace VacuumBellSeparation + +/-- Bounded spatial sets have actual compact Schwartz cutoffs equal to one on a neighborhood. -/ +theorem exists_spatialSchwartz_cutoff {K : Set (EuclideanSpace ℝ (Fin 3))} + (hK : Bornology.IsBounded K) : + ∃ χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ, HasCompactSupport χ ∧ + ∀ x ∈ K, (fun y => χ y) =ᶠ[𝓝 x] (fun _ => 1) := by + obtain ⟨r, hr, hKr⟩ := hK.subset_ball_lt 0 0 + let b : ContDiffBump (0 : EuclideanSpace ℝ (Fin 3)) := + { rIn := r, rOut := r + 1, rIn_pos := hr, rIn_lt_rOut := lt_add_one _ } + have hb : HasCompactSupport (fun x => (b x : ℂ)) := + b.hasCompactSupport.comp_left Complex.ofReal_zero + let χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + hb.toSchwartzMap (Complex.ofRealCLM.contDiff.comp b.contDiff) + refine ⟨χ, hb, fun x hx => ?_⟩ + have heq := b.eventuallyEq_one_of_mem_ball (hKr hx) + filter_upwards [heq] with y hy + change (b y : ℂ) = 1 + rw [show b y = 1 from hy, Complex.ofReal_one] + +/-- Actual exterior vanishing allows insertion of a cutoff into every Schwartz pairing. -/ +theorem distribution_eq_cutoff_pairing + {K : Set (EuclideanSpace ℝ (Fin 3))} + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (hT : Distribution.IsVanishingOn T Kᶜ) + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (hχ : ∀ x ∈ K, (fun y => χ y) =ᶠ[𝓝 x] (fun _ => 1)) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + T φ = T (SchwartzMap.smulLeftCLM ℂ χ φ) := by + apply sub_eq_zero.mp + rw [← map_sub] + apply hT + intro x hx hxK + have hz : (fun y => (φ - SchwartzMap.smulLeftCLM ℂ χ φ) y) =ᶠ[𝓝 x] 0 := by + filter_upwards [hχ x hxK] with y hy + simp only [sub_apply, SchwartzMap.smulLeftCLM_apply_apply χ.hasTemperateGrowth, + smul_eq_mul, hy, one_mul, sub_self, Pi.zero_apply] + exact (notMem_tsupport_iff_eventuallyEq.mpr hz) hx + +/-- Compact cutoff exponential evaluations do not depend on the chosen cutoff. -/ +theorem distribution_cutoff_exponential_independent + {K : Set (EuclideanSpace ℝ (Fin 3))} + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (hT : Distribution.IsVanishingOn T Kᶜ) + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (χ₁ χ₂ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (hc₁ : HasCompactSupport χ₁) (hc₂ : HasCompactSupport χ₂) + (hχ₁ : ∀ x ∈ K, (fun y => χ₁ y) =ᶠ[𝓝 x] (fun _ => 1)) + (hχ₂ : ∀ x ∈ K, (fun y => χ₂ y) =ᶠ[𝓝 x] (fun _ => 1)) (z : ℂ) : + T (spatialSchwartzExponential a χ₁ hc₁ z) = + T (spatialSchwartzExponential a χ₂ hc₂ z) := by + rw [distribution_eq_cutoff_pairing T hT χ₂ hχ₂ (spatialSchwartzExponential a χ₁ hc₁ z), + distribution_eq_cutoff_pairing T hT χ₁ hχ₁ (spatialSchwartzExponential a χ₂ hc₂ z)] + congr 1 + ext x + simp only [SchwartzMap.smulLeftCLM_apply_apply χ₁.hasTemperateGrowth, + SchwartzMap.smulLeftCLM_apply_apply χ₂.hasTemperateGrowth, + spatialSchwartzExponential_apply, smul_eq_mul] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionEntire.lean b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionEntire.lean new file mode 100644 index 0000000000..efd3209ebe --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionEntire.lean @@ -0,0 +1,134 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionCoefficients +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzSeries +public import Mathlib.Analysis.Analytic.OfScalars +public import Mathlib.Analysis.SpecialFunctions.Exponential + +/-! +# Entire cutoff exponentials evaluated by actual distributions + +The exponential family is built as actual compactly supported Schwartz +functions. Its polynomial series converges in the Schwartz topology by the +smooth-series construction; scalar absolute convergence and continuity then +give genuine scalar power series at every basepoint. This proves entireness +of the cutoff pairing. +-/ + +@[expose] public section + +open Filter Topology +open scoped SchwartzMap + +namespace VacuumBellSeparation + +/-- The literal compact Schwartz function `exp(z a(x)) φ(x)`. -/ +noncomputable def spatialSchwartzExponential + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hφ : HasCompactSupport φ) (z : ℂ) : + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + (show HasCompactSupport (fun x => Complex.exp (z * + (a x : ℂ)) * φ x) from hφ.mul_left).toSchwartzMap ((Complex.contDiff_exp.comp + (contDiff_const.mul (Complex.ofRealCLM.contDiff.comp a.contDiff))).mul (φ.smooth ⊤)) + +@[simp] theorem spatialSchwartzExponential_apply + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hφ : HasCompactSupport φ) + (z : ℂ) (x : EuclideanSpace ℝ (Fin 3)) : + spatialSchwartzExponential a φ hφ z x = Complex.exp (z * (a x : ℂ)) * φ x := rfl + +theorem hasCompactSupport_spatialSchwartzExponential + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hφ : HasCompactSupport φ) (z : ℂ) : + HasCompactSupport (spatialSchwartzExponential a φ hφ z) := by + change HasCompactSupport (fun x => Complex.exp (z * (a x : ℂ)) * φ x) + exact hφ.mul_left + +theorem spatialSchwartzExponential_add + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hφ : HasCompactSupport φ) (z₀ z : ℂ) : + spatialSchwartzExponential a (spatialSchwartzExponential a φ hφ z₀) + (hasCompactSupport_spatialSchwartzExponential a φ hφ z₀) z = + spatialSchwartzExponential a φ hφ (z₀ + z) := by + ext x + simp only [spatialSchwartzExponential_apply, add_mul, Complex.exp_add] + ring + +private theorem compact_phase_bound + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hφ : HasCompactSupport φ) : + ∃ R : ℝ, 0 ≤ R ∧ ∀ x ∈ tsupport φ, |a x| ≤ R := by + obtain ⟨C, hC⟩ := hφ.exists_bound_of_continuousOn a.continuous.continuousOn + refine ⟨max C 0, le_max_right _ _, fun x hx => ?_⟩ + have hh : |a x| ≤ C := by simpa only [Real.norm_eq_abs] using hC x hx + exact hh.trans (le_max_left _ _) + +/-- The actual Taylor truncations converge in the genuine Schwartz topology. -/ +theorem tendsto_spatialSchwartzExponential_partialSums + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hφ : HasCompactSupport φ) (z : ℂ) : + Tendsto (fun N => ∑ n ∈ Finset.range N, z ^ n • spatialExponentialCoefficient a φ n) + atTop (𝓝 (spatialSchwartzExponential a φ hφ z)) := by + obtain ⟨R, hR, ha⟩ := compact_phase_bound a φ hφ + let f : ℕ → SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + fun n => z ^ n • spatialExponentialCoefficient a φ n + have hf : ∀ k j, Summable (fun n => SchwartzMap.seminorm ℂ k j (f n)) := by + intro k j + simpa only [f, map_smul_eq_mul, norm_pow] using + summable_seminorm_spatialExponentialCoefficient a φ hR ha (norm_nonneg z) k j + have heq : schwartzSeries f hf = spatialSchwartzExponential a φ hφ z := by + ext x + have ht := (NormedSpace.expSeries_div_hasSum_exp (z * (a x : ℂ))).mul_right (φ x) + rw [← Complex.exp_eq_exp_ℂ] at ht + have hterm (n : ℕ) : f n x = (z * (a x : ℂ)) ^ n / (n.factorial : ℂ) * φ x := by + simp only [f, spatialExponentialCoefficient, smul_apply, spatialLinearMoment_apply, + smul_eq_mul, Complex.real_smul, Complex.ofReal_pow, mul_pow] + ring + simpa only [schwartzSeries_apply, hterm, spatialSchwartzExponential_apply] using ht.tsum_eq + simpa only [heq, f] using tendsto_schwartzSeries_partialSums f hf + +/-- Scalar power series agree with actual evaluation, rather than merely defining an auxiliary +sum. -/ +theorem hasSum_distribution_spatialSchwartzExponential + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hφ : HasCompactSupport φ) (z : ℂ) : + HasSum (fun n => z ^ n * T (spatialExponentialCoefficient a φ n)) + (T (spatialSchwartzExponential a φ hφ z)) := by + obtain ⟨R, hR, ha⟩ := compact_phase_bound a φ hφ + apply (summable_distribution_spatialExponentialCoefficient T a φ hR ha + z).hasSum_iff_tendsto_nat.mpr + have h := T.continuous.continuousAt.tendsto.comp + (tendsto_spatialSchwartzExponential_partialSums a φ hφ z) + change Tendsto (fun n => T.toLinearMap (∑ i ∈ Finset.range n, + z ^ i • spatialExponentialCoefficient a φ i)) atTop + (𝓝 (T (spatialSchwartzExponential a φ hφ z))) at h + simp only [map_sum, map_smul, smul_eq_mul] at h + convert h using 1; rfl + +/-- Evaluating a compact cutoff exponential against an actual tempered distribution is entire. -/ +theorem analyticOnNhd_distribution_spatialSchwartzExponential + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (a : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hφ : HasCompactSupport φ) : + AnalyticOnNhd ℂ (fun z => T (spatialSchwartzExponential a φ hφ z)) Set.univ := by + intro z₀ hz₀ + let ψ := spatialSchwartzExponential a φ hφ z₀ + have hψ : HasCompactSupport ψ := hasCompactSupport_spatialSchwartzExponential a φ hφ z₀ + let p : FormalMultilinearSeries ℂ ℂ ℂ := + FormalMultilinearSeries.ofScalars ℂ (fun n => T (spatialExponentialCoefficient a ψ n)) + apply HasFPowerSeriesAt.analyticAt (p := p) + rw [hasFPowerSeriesAt_iff] + apply Filter.Eventually.of_forall + intro z + have h := hasSum_distribution_spatialSchwartzExponential T a ψ hψ z + simpa only [p, FormalMultilinearSeries.coeff_ofScalars, smul_eq_mul, + ψ, spatialSchwartzExponential_add] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionFourier.lean b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionFourier.lean new file mode 100644 index 0000000000..6f475b6050 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionFourier.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionFourierSliceDefs +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionFourierDefs +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionCutoff +public import LeanPool.VacuumBellSeparation.FreeField.CutoffFourierIntegral + +/-! +# Actual Fourier representation of compactly supported distributions + +The cutoff evaluation defines a continuous scalar function. Its integral +pairing is proved equal to the existing distributional Fourier transform. +The function is independent of the cutoff and has entire affine slices. +All support hypotheses are actual vanishing of the original distribution on +exterior test functions. +-/ + +@[expose] public section + +open MeasureTheory Filter +open scoped SchwartzMap FourierTransform InnerProductSpace Topology + +namespace VacuumBellSeparation + + + +theorem continuous_compactDistributionFourier + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) : + Continuous (compactDistributionFourier T χ) := by + obtain ⟨s, L, hL⟩ := temperedDistribution_banach_factorization T + exact (L.continuous.comp (continuous_schwartzDerivativeMap_cutoffFourierKernel s χ hχ)).congr + (fun p => hL (cutoffFourierKernel χ p)) + +/-- Representation of the genuine Fourier transform, in Mathlib's normalized convention. -/ +theorem fourier_distribution_eq_integral_compactDistributionFourier + {K : Set (EuclideanSpace ℝ (Fin 3))} + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (hT : Distribution.IsVanishingOn T Kᶜ) + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) + (hχone : ∀ x ∈ K, (fun y => χ y) =ᶠ[𝓝 x] (fun _ => 1)) + (ψ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + (𝓕 T) ψ = ∫ p, ψ p * compactDistributionFourier T χ p := by + rw [TemperedDistribution.fourier_apply, distribution_eq_cutoff_pairing T hT χ hχone] + exact distribution_cutoffFourier_integral T ψ χ hχ + +theorem compactDistributionFourier_independent + {K : Set (EuclideanSpace ℝ (Fin 3))} + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (hT : Distribution.IsVanishingOn T Kᶜ) + (χ₁ χ₂ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (hχ₁ : ∀ x ∈ K, (fun y => χ₁ y) =ᶠ[𝓝 x] (fun _ => 1)) + (hχ₂ : ∀ x ∈ K, (fun y => χ₂ y) =ᶠ[𝓝 x] (fun _ => 1)) : + compactDistributionFourier T χ₁ = compactDistributionFourier T χ₂ := by + funext p + unfold compactDistributionFourier + rw [distribution_eq_cutoff_pairing T hT χ₂ hχ₂ (cutoffFourierKernel χ₁ p), + distribution_eq_cutoff_pairing T hT χ₁ hχ₁ (cutoffFourierKernel χ₂ p)] + congr 1 + ext x + simp only [SchwartzMap.smulLeftCLM_apply_apply χ₁.hasTemperateGrowth, + SchwartzMap.smulLeftCLM_apply_apply χ₂.hasTemperateGrowth, cutoffFourierKernel_apply, + smul_eq_mul] + ring + +/-- Vanishing of the representing Fourier function implies vanishing of the +actual distribution by the existing Fourier equivalence. -/ +theorem distribution_eq_zero_of_compactDistributionFourier_eq_zero + {K : Set (EuclideanSpace ℝ (Fin 3))} + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (hT : Distribution.IsVanishingOn T Kᶜ) + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) + (hχone : ∀ x ∈ K, (fun y => χ y) =ᶠ[𝓝 x] (fun _ => 1)) + (hz : ∀ p, compactDistributionFourier T χ p = 0) : T = 0 := by + apply (FourierTransform.fourierCLE ℂ + (TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ)).injective + simp only [FourierTransform.fourierCLE_apply] + ext ψ + rw [fourier_distribution_eq_integral_compactDistributionFourier T hT χ hχ hχone ψ] + simp [hz] + + + + + +theorem analyticOnNhd_compactDistributionFourierSlice + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) + (p a : EuclideanSpace ℝ (Fin 3)) : + AnalyticOnNhd ℂ (compactDistributionFourierSlice T χ hχ p a) Set.univ := by + intro z hz + have h := analyticOnNhd_distribution_spatialSchwartzExponential T (innerSL ℝ a) + (cutoffFourierKernel χ p) (hasCompactSupport_cutoffFourierKernel χ hχ p) + exact (h _ (Set.mem_univ _)).comp (by fun_prop) + +theorem compactDistributionFourierSlice_ofReal + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) + (p a : EuclideanSpace ℝ (Fin 3)) (t : ℝ) : + compactDistributionFourierSlice T χ hχ p a (t : ℂ) = + compactDistributionFourier T χ (p + t • a) := by + unfold compactDistributionFourierSlice compactDistributionFourier + congr 1 + ext x + simp only [spatialSchwartzExponential_apply, cutoffFourierKernel_apply, + spatialFourierCharacter, Real.fourierChar_apply, innerSL_apply_apply] + rw [← mul_assoc, ← Complex.exp_add] + congr 2 + simp only [inner_add_left, real_inner_smul_left] + push_cast + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionFourierDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionFourierDefs.lean new file mode 100644 index 0000000000..b63c34eafd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionFourierDefs.lean @@ -0,0 +1,26 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CutoffFourierKernel + +/-! # Fourier transform of a compactly supported distribution -/ + +@[expose] public section + +open MeasureTheory Filter +open scoped SchwartzMap FourierTransform InnerProductSpace Topology + +namespace VacuumBellSeparation + +/-- Compact distribution Fourier defined as `T (cutoffFourierKernel χ p)`. -/ +noncomputable def compactDistributionFourier + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := T (cutoffFourierKernel χ p) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionFourierSliceDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionFourierSliceDefs.lean new file mode 100644 index 0000000000..3f49ae1358 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CompactDistributionFourierSliceDefs.lean @@ -0,0 +1,34 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionFourierDefs +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionEntire + +/-! # Entire Fourier slices of compactly supported distributions -/ + +@[expose] public section + +open MeasureTheory Filter +open scoped SchwartzMap FourierTransform InnerProductSpace Topology + +namespace VacuumBellSeparation + +theorem hasCompactSupport_cutoffFourierKernel + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) + (p : EuclideanSpace ℝ (Fin 3)) : HasCompactSupport (cutoffFourierKernel χ p) := + hχ.of_isClosed_subset isClosed_closure (tsupport_cutoffFourierKernel_subset χ p) + +/-- An actual entire extension of each affine real-frequency slice. -/ +noncomputable def compactDistributionFourierSlice + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) + (p a : EuclideanSpace ℝ (Fin 3)) (z : ℂ) : ℂ := + T (spatialSchwartzExponential (innerSL ℝ a) (cutoffFourierKernel χ p) + (hasCompactSupport_cutoffFourierKernel χ hχ p) (-(2 * Real.pi : ℂ) * Complex.I * z)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CompactLaplace.lean b/LeanPool/VacuumBellSeparation/FreeField/CompactLaplace.lean new file mode 100644 index 0000000000..76506862e2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CompactLaplace.lean @@ -0,0 +1,99 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.CStarAlgebra.Classes +public import Mathlib.Tactic.ReduceModChar +import Mathlib.Tactic.Positivity +public import Mathlib.Analysis.Analytic.Basic +public import Mathlib.Analysis.Calculus.FDeriv.Basic +public import Mathlib.Analysis.InnerProductSpace.PiL2 +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.Analysis.Calculus.Deriv.Basic +public import Mathlib.Analysis.Complex.CauchyIntegral +public import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace +public import Mathlib.Analysis.Calculus.ParametricIntegral + +/-! +# Entire exponential transforms of compactly supported test functions + +This proves the elementary Fourier–Laplace step by differentiation under the +actual Bochner integral. The coefficient in the exponential may be any +continuous complex function of the spatial variable. Compact support provides +the uniform local majorant. This is a test-function result, not a +Paley–Wiener theorem for completed compactly supported distributions. +-/ + +@[expose] public section + +open MeasureTheory +open scoped Topology + +namespace VacuumBellSeparation + +/-- The exponential transform before the spatial coefficient is specialized to a Fourier slice. -/ +noncomputable def compactExpTransform + (a f : EuclideanSpace ℝ (Fin 3) → ℂ) (z : ℂ) : ℂ := + ∫ x, Complex.exp (z * a x) * f x + +theorem hasDerivAt_compactExpTransform + {a f : EuclideanSpace ℝ (Fin 3) → ℂ} (ha : Continuous a) (hf : Continuous f) + (hc : HasCompactSupport f) (z₀ : ℂ) : + HasDerivAt (compactExpTransform a f) + (∫ x, Complex.exp (z₀ * a x) * a x * f x) z₀ := by + obtain ⟨C, hC⟩ := hc.exists_bound_of_continuousOn ha.continuousOn + let R : ℝ := |C| + 1 + have hR : 0 < R := by dsimp [R]; positivity + have haR (x : EuclideanSpace ℝ (Fin 3)) (hx : x ∈ tsupport f) : ‖a x‖ ≤ R := by + exact (hC x hx).trans (by dsimp [R]; linarith [le_abs_self C]) + have hF (z : ℂ) : Continuous (fun x => Complex.exp (z * a x) * f x) := + (Complex.continuous_exp.comp (continuous_const.mul ha)).mul hf + have hD (z : ℂ) : Continuous (fun x => Complex.exp (z * a x) * a x * f x) := + ((Complex.continuous_exp.comp (continuous_const.mul ha)).mul ha).mul hf + have hbound (x : EuclideanSpace ℝ (Fin 3)) (z : ℂ) (hz : z ∈ Metric.ball z₀ 1) : + ‖Complex.exp (z * a x) * a x * f x‖ ≤ + (Real.exp ((‖z₀‖ + 1) * R) * R) * ‖f x‖ := by + by_cases hfx : f x = 0 + · simp [hfx] + have hx : x ∈ tsupport f := subset_tsupport f hfx + have hzdist : ‖z - z₀‖ < 1 := by simpa [Metric.mem_ball, dist_eq_norm] using hz + have hznorm : ‖z‖ ≤ ‖z₀‖ + 1 := by + have ht := norm_add_le (z - z₀) z₀ + rw [sub_add_cancel] at ht + linarith + have hexp : ‖Complex.exp (z * a x)‖ ≤ Real.exp ((‖z₀‖ + 1) * R) := by + refine (Complex.norm_exp_le_exp_norm _).trans (Real.exp_le_exp.mpr ?_) + rw [norm_mul] + exact mul_le_mul hznorm (haR x hx) (norm_nonneg _) (by positivity) + rw [norm_mul, norm_mul] + exact mul_le_mul_of_nonneg_right + (mul_le_mul hexp (haR x hx) (norm_nonneg _) (Real.exp_pos _).le) (norm_nonneg _) + have hd (x : EuclideanSpace ℝ (Fin 3)) (z : ℂ) : + HasDerivAt (fun w => Complex.exp (w * a x) * f x) + (Complex.exp (z * a x) * a x * f x) z := by + simpa using (((hasDerivAt_id' (x := z)).mul_const (a x)).cexp).mul_const (f x) + exact (hasDerivAt_integral_of_dominated_loc_of_deriv_le + (F := fun z x => Complex.exp (z * a x) * f x) + (F' := fun z x => Complex.exp (z * a x) * a x * f x) + (bound := fun x => (Real.exp ((‖z₀‖ + 1) * R) * R) * ‖f x‖) + (Metric.ball_mem_nhds z₀ (by norm_num)) + (Filter.Eventually.of_forall fun z => (hF z).aestronglyMeasurable) + ((hF z₀).integrable_of_hasCompactSupport hc.mul_left) + (hD z₀).aestronglyMeasurable + (Filter.Eventually.of_forall hbound) + ((hf.integrable_of_hasCompactSupport hc).norm.const_mul _) + (Filter.Eventually.of_forall fun x z _ => hd x z)).2 + +/-- The compact test-function transform is entire in the actual complex parameter. -/ +theorem analyticOnNhd_compactExpTransform + {a f : EuclideanSpace ℝ (Fin 3) → ℂ} (ha : Continuous a) (hf : Continuous f) + (hc : HasCompactSupport f) : AnalyticOnNhd ℂ (compactExpTransform a f) Set.univ := by + have hdiff : Differentiable ℂ (compactExpTransform a f) := + fun z => (hasDerivAt_compactExpTransform ha hf hc z).differentiableAt + exact fun z _ => hdiff.analyticAt z + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CompactParameterContinuity.lean b/LeanPool/VacuumBellSeparation/FreeField/CompactParameterContinuity.lean new file mode 100644 index 0000000000..887c7aaf30 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CompactParameterContinuity.lean @@ -0,0 +1,108 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CutoffFourierKernel +public import Mathlib.Topology.UniformSpace.CompactConvergence + +/-! +# Uniform continuity in the parameter of compactly supported kernels + +Joint continuity and a common compact support imply continuity in the actual +supremum norm. We apply this to all weighted derivatives of the cutoff Fourier +kernel. Pointwise continuity alone is not used as a substitute for this norm +continuity. +-/ + +@[expose] public section + +open Filter Set +open scoped BoundedContinuousFunction Topology SchwartzMap FourierTransform InnerProductSpace + +namespace VacuumBellSeparation + +theorem continuous_boundedContinuousFunction_of_common_compact_support + {P X F : Type*} [TopologicalSpace P] [TopologicalSpace X] + [NormedAddCommGroup F] (f : P → X →ᵇ F) + {K : Set X} (hK : IsCompact K) + (hf : Continuous (fun z : P × X => f z.1 z.2)) + (hz : ∀ p x, x ∉ K → f p x = 0) : Continuous f := by + let : CompactSpace K := isCompact_iff_compactSpace.mp hK + let fK : P → C(K, F) := fun p => + ⟨fun x => f p x, (f p).continuous.comp continuous_subtype_val⟩ + have hfK : Continuous fK := by + apply ContinuousMap.continuous_of_continuous_uncurry + exact hf.comp (continuous_fst.prodMk (continuous_subtype_val.comp continuous_snd)) + apply continuous_iff_continuousAt.mpr + intro p + rw [ContinuousAt, BoundedContinuousFunction.tendsto_iff_tendstoUniformly] + have h := ContinuousMap.tendsto_iff_tendstoUniformly.mp (hfK.tendsto p) + rw [Metric.tendstoUniformly_iff] at h ⊢ + intro ε hε + filter_upwards [h ε hε] with q hq x + by_cases hx : x ∈ K + · exact hq ⟨x, hx⟩ + · simp only [hz p x hx, hz q x hx, dist_self] + exact hε + +/-- Partial iterated derivatives of a jointly smooth function vary continuously +in both the parameter and the differentiated variable. -/ +theorem continuous_partial_iteratedFDeriv + {P E F : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] + [NormedAddCommGroup E] [NormedSpace ℝ E] + [NormedAddCommGroup F] [NormedSpace ℝ F] + {f : P × E → F} (hf : ContDiff ℝ (⊤ : ℕ∞) f) (j : ℕ) : + Continuous (fun z : P × E => iteratedFDeriv ℝ j (fun y => f (z.1, y)) z.2) := by + let a : E →L[ℝ] P × E := ContinuousLinearMap.inr ℝ P E + let A := ContinuousMultilinearMap.compContinuousLinearMapL (F := F) (fun _ : Fin j => a) + have heq (p : P) (x : E) : + iteratedFDeriv ℝ j (fun y => f (p, y)) x = A (iteratedFDeriv ℝ j f (p, x)) := by + have ht : ContDiff ℝ (⊤ : ℕ∞) (fun z : P × E => f ((p, 0) + z)) := + hf.comp (contDiff_const.add contDiff_id) + have h := a.iteratedFDeriv_comp_right ht x (i := j) (by exact_mod_cast (le_top : (j : ℕ∞) ≤ ⊤)) + simpa only [A, ContinuousMultilinearMap.compContinuousLinearMapL_apply, + Function.comp_def, iteratedFDeriv_comp_add_left, a, + ContinuousLinearMap.inr_apply, Prod.mk_add_mk, add_zero, zero_add] using h + have h := A.continuous.comp (hf.continuous_iteratedFDeriv (m := j) (mod_cast le_top)) + exact h.congr (fun z => (heq z.1 z.2).symm) + +theorem continuous_cutoffFourierKernel_weightedDerivative + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) + (k j : ℕ) : + Continuous (fun p => schwartzWeightedDerivative k j (cutoffFourierKernel χ p)) := by + apply continuous_boundedContinuousFunction_of_common_compact_support _ hχ + · have hf : ContDiff ℝ (⊤ : ℕ∞) + (fun z : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + spatialFourierCharacter z.1 z.2 * χ z.2) := by + simp only [spatialFourierCharacter, Real.fourierChar_apply] + exact (Complex.contDiff_exp.comp + ((Complex.ofRealCLM.contDiff.comp (contDiff_const.mul + ((contDiff_fst.inner ℝ contDiff_snd).neg))).mul contDiff_const)).mul + ((χ.smooth ⊤).comp contDiff_snd) + have h := continuous_partial_iteratedFDeriv hf j + have heq (p : EuclideanSpace ℝ (Fin 3)) : + (fun x => spatialFourierCharacter p x * χ x) = cutoffFourierKernel χ p := by + funext x + exact (cutoffFourierKernel_apply χ p x).symm + simp_rw [heq] at h + exact ((continuous_norm.comp continuous_snd).pow k).smul h + · intro p x hx + have hd : iteratedFDeriv ℝ j (cutoffFourierKernel χ p) x = 0 := + image_eq_zero_of_notMem_tsupport fun h => + hx ((tsupport_cutoffFourierKernel_subset χ p) ((tsupport_iteratedFDeriv_subset j) h)) + simp only [schwartzWeightedDerivative_apply, hd, smul_zero] + +/-- Continuity holds in the finite Banach product used by the actual distribution factorization. -/ +theorem continuous_schwartzDerivativeMap_cutoffFourierKernel + (s : Finset (ℕ × ℕ)) + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) : + Continuous (fun p => schwartzDerivativeMap s (cutoffFourierKernel χ p)) := by + apply continuous_pi + intro i + exact continuous_cutoffFourierKernel_weightedDerivative χ hχ i.val.1 i.val.2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CompletedComplexInjectivity.lean b/LeanPool/VacuumBellSeparation/FreeField/CompletedComplexInjectivity.lean new file mode 100644 index 0000000000..78783fbf16 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CompletedComplexInjectivity.lean @@ -0,0 +1,108 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.DistributionScalingMultiplier +public import LeanPool.VacuumBellSeparation.FreeField.ContinuousDistributionSeparation +public import LeanPool.VacuumBellSeparation.FreeField.ComplexTestInjectivity + +/-! +# Complex injectivity for the actual bounded-region source completion + +The completed position components are actual compactly supported distributions. +Their proved Fourier representations have entire affine slices. The physical +kernel relation becomes a literal relation between those functions, and the +odd-order zero of the massive polynomial forces both distributions to vanish. +-/ + +@[expose] public section + +open scoped SchwartzMap FourierTransform InnerProductSpace + +namespace VacuumBellSeparation + +theorem complexSource_eq_zero_of_map_eq_zero + {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + (hU : Bornology.IsBounded U) (z : ComplexSourceHilbert hm U) + (hz : complexSourceMap hm U z = 0) : z = 0 := by + obtain ⟨χ, hχ, hχone⟩ := exists_spatialSchwartz_cutoff hU.closure + let T := complexSourceFirstDistribution hm U z + let S := complexSourceSecondDistribution hm U z + have hT : Distribution.IsVanishingOn T (closure U)ᶜ := + complexSourceFirstDistribution_isVanishingOn hm U z + have hS : Distribution.IsVanishingOn S (closure U)ᶜ := + complexSourceSecondDistribution_isVanishingOn hm U z + have hnorm := compactDistributionFourier_relation T S hT hS χ hχ hχone + (normalizedSourceSecondMultiplier m) (hasTemperateGrowth_normalizedSourceSecondMultiplier hm) + (complexSource_fourier_distribution_relation_of_kernel hm U z hz) + let c : ℝ := 2 * Real.pi + have hc : 0 < c := by dsimp [c]; positivity + let F := fun p => compactDistributionFourier T χ (c⁻¹ • p) + let G := fun p => compactDistributionFourier S χ (c⁻¹ • p) + have hlinear (p : EuclideanSpace ℝ (Fin 3)) : + F p = -(Complex.I * (dispersion m p : ℂ) * G p) := by + have h := hnorm (c⁻¹ • p) + change F p + sourceSecondInverseMultiplier m (c • (c⁻¹ • p)) * G p = 0 at h + rw [smul_inv_smul₀ hc.ne'] at h + exact eq_neg_of_add_eq_zero_left h + have hparts (p : EuclideanSpace ℝ (Fin 3)) : F p = 0 ∧ G p = 0 := by + let pperp := p - ⟪e₁, p⟫_ℝ • e₁ + have hpperp : ⟪e₁, pperp⟫_ℝ = 0 := by + simp [pperp, inner_sub_right, real_inner_smul_right, norm_e₁] + let M := dispersion m pperp + have hM : 0 < M := hm.trans_le (le_dispersion hm.le pperp) + let Fs := compactDistributionFourierSlice T χ hχ (c⁻¹ • pperp) (c⁻¹ • e₁) + let Gs := compactDistributionFourierSlice S χ hχ (c⁻¹ • pperp) (c⁻¹ • e₁) + have hFa : AnalyticOnNhd ℂ Fs Set.univ := + analyticOnNhd_compactDistributionFourierSlice T χ hχ _ _ + have hGa : AnalyticOnNhd ℂ Gs Set.univ := + analyticOnNhd_compactDistributionFourierSlice S χ hχ _ _ + have hFs (t : ℝ) : Fs (t : ℂ) = F (pperp + t • e₁) := by + dsimp only [Fs, F] + rw [compactDistributionFourierSlice_ofReal] + congr 1 + module + have hGs (t : ℝ) : Gs (t : ℂ) = G (pperp + t • e₁) := by + dsimp only [Gs, G] + rw [compactDistributionFourierSlice_ofReal] + congr 1 + module + have hrel (t : ℝ) : Fs (t : ℂ) ^ 2 = + -((t : ℂ) ^ 2 + (M : ℂ) ^ 2) * Gs (t : ℂ) ^ 2 := by + have hω : (dispersion m (pperp + t • e₁) : ℂ) ^ 2 = + (t : ℂ) ^ 2 + (M : ℂ) ^ 2 := by + exact_mod_cast dispersion_sq_transverse pperp hpperp t + rw [hFs, hGs, hlinear, neg_sq, mul_pow, mul_pow, Complex.I_sq, hω] + ring + obtain ⟨hf0, hg0⟩ := entire_massive_square_zero_of_real hM hFa hGa hrel + have hfp := congrFun hf0 (⟪e₁, p⟫_ℝ : ℂ) + have hgp := congrFun hg0 (⟪e₁, p⟫_ℝ : ℂ) + rw [hFs] at hfp + rw [hGs] at hgp + simpa [pperp] using And.intro hfp hgp + have hFzero : ∀ p, compactDistributionFourier T χ p = 0 := by + intro p + have h := (hparts (c • p)).1 + simpa only [F, inv_smul_smul₀ hc.ne'] using h + have hGzero : ∀ p, compactDistributionFourier S χ p = 0 := by + intro p + have h := (hparts (c • p)).2 + simpa only [G, inv_smul_smul₀ hc.ne'] using h + exact complexSource_eq_zero_of_distributions_eq_zero hm U z + (distribution_eq_zero_of_compactDistributionFourier_eq_zero T hT χ hχ hχone hFzero) + (distribution_eq_zero_of_compactDistributionFourier_eq_zero S hS χ hχ hχone hGzero) + +/-- The actual complex source map is injective for every bounded localization region. -/ +theorem complexSourceMap_injective + {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + (hU : Bornology.IsBounded U) : Function.Injective (complexSourceMap hm U) := by + intro z w h + apply sub_eq_zero.mp + apply complexSource_eq_zero_of_map_eq_zero hm U hU (z - w) + rw [map_sub, h, sub_self] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexLorentzForm.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexLorentzForm.lean new file mode 100644 index 0000000000..dd645293c8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexLorentzForm.lean @@ -0,0 +1,121 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSpacetime + +/-! +# Preservation of the actual complex mass shell + +The complexified real Lorentz map preserves the complex bilinear +Minkowski form, without conjugation. Its inverse is the complexification +of the original inverse map. These statements use all four coordinates. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- The real spacetime vector formed by taking the real part of each component. -/ +noncomputable def complexSpacetimeRe (z : ComplexSpacetime) : Spacetime := + (z.1.re, WithLp.toLp 2 (fun i => (z.2 i).re)) + +/-- The real spacetime vector formed by taking the imaginary part of each component. -/ +noncomputable def complexSpacetimeIm (z : ComplexSpacetime) : Spacetime := + (z.1.im, WithLp.toLp 2 (fun i => (z.2 i).im)) + +theorem complexSpacetime_re_add_im (z : ComplexSpacetime) : + complexSpacetimeOfReal (complexSpacetimeRe z) + + Complex.I • complexSpacetimeOfReal (complexSpacetimeIm z) = z := by + apply Prod.ext + · apply Complex.ext <;> simp [complexSpacetimeOfReal, complexSpacetimeRe, + complexSpacetimeIm, Complex.mul_re, Complex.mul_im] + · ext i + apply Complex.ext <;> simp [complexSpacetimeOfReal, complexSpacetimeRe, + complexSpacetimeIm, Complex.mul_re, Complex.mul_im] + +/-- Complex Minkowski form given by `z.1 * w.1 - spatialDot z.2 w.2`. -/ +noncomputable def complexMinkowskiForm (z w : ComplexSpacetime) : ℂ := + z.1 * w.1 - spatialDot z.2 w.2 + +theorem complexMinkowskiForm_add_left (x y z : ComplexSpacetime) : + complexMinkowskiForm (x + y) z = complexMinkowskiForm x z + complexMinkowskiForm y z := by + simp only [complexMinkowskiForm, Prod.fst_add, Prod.snd_add, spatialDot_eq, Pi.add_apply] + ring + +theorem complexMinkowskiForm_add_right (x y z : ComplexSpacetime) : + complexMinkowskiForm x (y + z) = complexMinkowskiForm x y + complexMinkowskiForm x z := by + simp only [complexMinkowskiForm, Prod.fst_add, Prod.snd_add, spatialDot_eq, Pi.add_apply] + ring + +theorem complexMinkowskiForm_smul_left (a : ℂ) (x y : ComplexSpacetime) : + complexMinkowskiForm (a • x) y = a * complexMinkowskiForm x y := by + change (a * x.1) * y.1 - spatialDot (fun i => a * x.2 i) y.2 = + a * (x.1 * y.1 - spatialDot x.2 y.2) + simp only [spatialDot_eq] + ring + +theorem complexMinkowskiForm_smul_right (a : ℂ) (x y : ComplexSpacetime) : + complexMinkowskiForm x (a • y) = a * complexMinkowskiForm x y := by + change x.1 * (a * y.1) - spatialDot x.2 (fun i => a * y.2 i) = + a * (x.1 * y.1 - spatialDot x.2 y.2) + simp only [spatialDot_eq] + ring + +theorem complexMinkowskiForm_ofReal (x y : Spacetime) : + complexMinkowskiForm (complexSpacetimeOfReal x) (complexSpacetimeOfReal y) = + (minkowskiForm x y : ℂ) := by + change (x.1 : ℂ) * (y.1 : ℂ) - + spatialDot (fun i => (x.2 i : ℂ)) (fun i => (y.2 i : ℂ)) = _ + rw [real_spatialDot] + simp only [minkowskiForm, Complex.ofReal_sub, Complex.ofReal_mul] + +theorem complexifiedSpacetimeMap_re_im (Λ : Spacetime ≃L[ℝ] Spacetime) (z : ComplexSpacetime) : + complexifiedSpacetimeMap Λ z = + complexSpacetimeOfReal (Λ (complexSpacetimeRe z)) + + Complex.I • complexSpacetimeOfReal (Λ (complexSpacetimeIm z)) := by + rw [← complexifiedSpacetimeMap_ofReal, ← complexifiedSpacetimeMap_ofReal, + ← map_smul, ← map_add, complexSpacetime_re_add_im] + +theorem complexMinkowskiForm_lorentz + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) (z w : ComplexSpacetime) : + complexMinkowskiForm (complexifiedSpacetimeMap Λ z) (complexifiedSpacetimeMap Λ w) = + complexMinkowskiForm z w := by + calc + _ = complexMinkowskiForm + (complexSpacetimeOfReal (complexSpacetimeRe z) + + Complex.I • complexSpacetimeOfReal (complexSpacetimeIm z)) + (complexSpacetimeOfReal (complexSpacetimeRe w) + + Complex.I • complexSpacetimeOfReal (complexSpacetimeIm w)) := by + simp only [complexifiedSpacetimeMap_re_im, complexMinkowskiForm_add_left, + complexMinkowskiForm_add_right, complexMinkowskiForm_smul_left, + complexMinkowskiForm_smul_right, complexMinkowskiForm_ofReal] + rw [hΛ (complexSpacetimeRe z) (complexSpacetimeRe w), + hΛ (complexSpacetimeIm z) (complexSpacetimeRe w), + hΛ (complexSpacetimeRe z) (complexSpacetimeIm w), + hΛ (complexSpacetimeIm z) (complexSpacetimeIm w)] + _ = _ := by rw [complexSpacetime_re_add_im, complexSpacetime_re_add_im] + +theorem complexifiedSpacetimeMap_mem_shell + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) {m : ℝ} {z : ComplexSpacetime} + (hz : z ∈ complexShell m) : complexifiedSpacetimeMap Λ z ∈ complexShell m := by + change (complexifiedSpacetimeMap Λ z).1 ^ 2 - + spatialDot (complexifiedSpacetimeMap Λ z).2 (complexifiedSpacetimeMap Λ z).2 = (m : ℂ) ^ 2 + rw [pow_two] + change complexMinkowskiForm (complexifiedSpacetimeMap Λ z) (complexifiedSpacetimeMap Λ z) = _ + rw [complexMinkowskiForm_lorentz Λ hΛ] + change z.1 ^ 2 - spatialDot z.2 z.2 = (m : ℂ) ^ 2 at hz + simpa only [complexMinkowskiForm, ← pow_two] using hz + +theorem complexifiedSpacetimeMap_inverse (Λ : Spacetime ≃L[ℝ] Spacetime) (z : ComplexSpacetime) : + complexifiedSpacetimeMap Λ.symm (complexifiedSpacetimeMap Λ z) = z := by + rw [complexifiedSpacetimeMap_re_im Λ z, map_add, map_smul, + complexifiedSpacetimeMap_ofReal, complexifiedSpacetimeMap_ofReal, + ContinuousLinearEquiv.symm_apply_apply, ContinuousLinearEquiv.symm_apply_apply, + complexSpacetime_re_add_im] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexSource.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexSource.lean new file mode 100644 index 0000000000..1134c1852a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexSource.lean @@ -0,0 +1,72 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceDefs +public import LeanPool.VacuumBellSeparation.FreeField.SourceInclusion +public import LeanPool.VacuumBellSeparation.Gaussian.SourceGram + +/-! +# Actual complexified local source maps and Gram operators + +This specializes the constructed Hilbert complexification to the completed +literal local source space. The Gram operator is defined as `κ*κ` and its +normalized commutation formula is proved. +-/ + +@[expose] public section + +open MeasureTheory ClosedSubmodule + +namespace VacuumBellSeparation + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +theorem sourceGram_eq_normalized_commutation : + sourceGram hm U = 1 + (Complex.I / 2) • complexSourceCommutation hm U := + Gaussian.sourceMap_adjoint_mul_self (sourceEmbedding hm U) + +theorem complexSourceCommutation_mem_skewAdjoint : + complexSourceCommutation hm U ∈ skewAdjoint + (ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U) := + Gaussian.complexCommutation_mem_skewAdjoint (sourceEmbedding hm U) + +theorem norm_complexSourceCommutation_le_two : ‖complexSourceCommutation hm U‖ ≤ 2 := + Gaussian.norm_complexCommutation_le_two (sourceEmbedding hm U) + +theorem norm_complexSourceMap_le_sqrt_two : ‖complexSourceMap hm U‖ ≤ Real.sqrt 2 := + Gaussian.norm_sourceMap_le_sqrt_two (sourceEmbedding hm U) + +theorem complexSourceMap_ofReal_test (u : SourceTestSpace hm U) : + complexSourceMap hm U + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U)) = timeZeroL2 hm u.1 := by + erw [complexSourceMap, Gaussian.sourceMap_ofReal, sourceEmbedding_coe] + +variable {U} {V : Set (EuclideanSpace ℝ (Fin 3))} (hUV : U ⊆ V) + +/-- The complexification of the actual real source inclusion. -/ +noncomputable def complexSourceInclusion : + ComplexSourceHilbert hm U →ₗᵢ[ℂ] ComplexSourceHilbert hm V := + Gaussian.complexifyIsometry (sourceInclusion hm hUV) + +theorem complexSourceMap_comp_inclusion : + (complexSourceMap hm V).comp (complexSourceInclusion hm hUV).toContinuousLinearMap = + complexSourceMap hm U := by + unfold complexSourceMap complexSourceInclusion + erw [Gaussian.sourceMap_comp_complexifyIsometry, sourceEmbedding_comp_inclusion] + +/-- The smaller physical Gram operator is the compression of the larger one. -/ +theorem sourceGram_compression : + (complexSourceInclusion hm hUV).toContinuousLinearMap.adjoint.comp + ((sourceGram hm V).comp (complexSourceInclusion hm hUV).toContinuousLinearMap) = + sourceGram hm U := by + have hmap := complexSourceMap_comp_inclusion hm hUV + unfold sourceGram + rw [← hmap, ContinuousLinearMap.adjoint_comp] + simp only [ContinuousLinearMap.comp_assoc] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceContinuity.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceContinuity.lean new file mode 100644 index 0000000000..fb05b25658 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceContinuity.lean @@ -0,0 +1,90 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSpacetime +public import Mathlib.MeasureTheory.Integral.Bochner.Set + +/-! +# Joint continuity of the literal complex Fourier wave + +Compact spatial support makes the original Fourier integral continuous +in all three complex coordinates simultaneously. Real map parameters +enter through their actual four coordinate images. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +theorem continuous_complexSpatialFourier (f : SpatialTestFunction) : + Continuous (complexSpatialFourier f) := by + let K : (Fin 3 → ℂ) → EuclideanSpace ℝ (Fin 3) → ℂ := fun z x => + Complex.exp (-(Complex.I * spatialDot z (fun i => (x i : ℂ)))) * (f.1 x : ℂ) + have hf := f.2.1.continuous + have hK : Continuous K.uncurry := by + dsimp [K, Function.uncurry, spatialDot] + fun_prop + have he (z : Fin 3 → ℂ) : (∫ x in tsupport f.1, K z x) = complexSpatialFourier f z := by + apply setIntegral_eq_integral_of_forall_compl_eq_zero + intro x hx + simp only [K, image_eq_zero_of_notMem_tsupport hx, Complex.ofReal_zero, mul_zero] + simpa only [he] using continuous_parametric_integral_of_continuous (μ := volume) hK f.2.2 + +theorem continuous_complexSourceWave (u : TimeZeroSource) : Continuous (complexSourceWave u) := + ((continuous_complexSpatialFourier u.1).comp continuous_snd).add + ((continuous_const.mul continuous_fst).mul + ((continuous_complexSpatialFourier u.2).comp continuous_snd)) + +theorem continuous_complexSpacetimeOfReal : Continuous complexSpacetimeOfReal := by + change Continuous (fun x : Spacetime => ((x.1 : ℂ), fun i => (x.2 i : ℂ))) + fun_prop + +theorem continuous_complexShellBoost (m : ℝ) (ζ : ℂ) : Continuous (complexShellBoost m ζ) := by + unfold complexShellBoost + have hw := continuous_dispersion m + fun_prop + +theorem continuous_complexifiedSpacetimeMap_family + {A : Type*} [TopologicalSpace A] (Λ : A → Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ x : Spacetime, Continuous fun a => Λ a x) : + Continuous (fun q : A × ComplexSpacetime => complexifiedSpacetimeMap (Λ q.1) q.2) := by + simp_rw [complexifiedSpacetimeMap_apply] + apply Continuous.add + · exact continuous_snd.fst.smul + (continuous_complexSpacetimeOfReal.comp ((hΛ (coordDir 0)).comp continuous_fst)) + · apply continuous_finsetSum + intro i _ + exact ((continuous_apply i).comp continuous_snd.snd).smul + (continuous_complexSpacetimeOfReal.comp ((hΛ (coordDir i.succ)).comp continuous_fst)) + +theorem continuous_lorentzContourWave + {A : Type*} [TopologicalSpace A] (Λ : A → Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ x : Spacetime, Continuous fun a => Λ a x) + (m θ : ℝ) (u : TimeZeroSource) : + Continuous (fun q : A × EuclideanSpace ℝ (Fin 3) => + complexSourceWave u (complexifiedSpacetimeMap (Λ q.1) + (complexShellBoost m ((θ : ℂ) * Complex.I) q.2))) := by + have hpair : Continuous (fun q : A × EuclideanSpace ℝ (Fin 3) => + (q.1, complexShellBoost m ((θ : ℂ) * Complex.I) q.2)) := + (continuous_fst : Continuous (Prod.fst : A × EuclideanSpace ℝ (Fin 3) → A)).prodMk + ((continuous_complexShellBoost m ((θ : ℂ) * Complex.I)).comp continuous_snd) + have hmap : Continuous (fun q : A × EuclideanSpace ℝ (Fin 3) => + complexifiedSpacetimeMap (Λ q.1) (complexShellBoost m ((θ : ℂ) * Complex.I) q.2)) := + Continuous.comp' + (f := fun q : A × EuclideanSpace ℝ (Fin 3) => + (q.1, complexShellBoost m ((θ : ℂ) * Complex.I) q.2)) + (g := fun q : A × ComplexSpacetime => complexifiedSpacetimeMap (Λ q.1) q.2) + (continuous_complexifiedSpacetimeMap_family Λ hΛ) hpair + exact Continuous.comp' + (f := fun q : A × EuclideanSpace ℝ (Fin 3) => + complexifiedSpacetimeMap (Λ q.1) (complexShellBoost m ((θ : ℂ) * Complex.I) q.2)) + (g := complexSourceWave u) (continuous_complexSourceWave u) hmap + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceCurve.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceCurve.lean new file mode 100644 index 0000000000..3ed1cfcdd7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceCurve.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSpacetime +public import LeanPool.VacuumBellSeparation.FreeField.SpatialTestParametricIntegral +public import Mathlib.Analysis.Calculus.Deriv.Prod + +/-! +# Entire original source waves along actual complex spacetime curves + +Compact support supplies a genuine local derivative majorant for the +original spatial Fourier integral. This applies to complexified Lorentz +boost curves and to affine null discs without assuming continuation of +the physical L2 representative. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +theorem hasDerivAt_complexSpatialFourier_curve (f : SpatialTestFunction) + (q dq : ℂ → ComplexSpacetime) (hq : Continuous q) (hdq : Continuous dq) + (hd : ∀ ζ, HasDerivAt q (dq ζ) ζ) (ζ : ℂ) : + HasDerivAt (fun z => complexSpatialFourier f (q z).2) + (∫ x : EuclideanSpace ℝ (Fin 3), + ((-Complex.I) * complexSpatialPhase x (dq ζ)) * + Complex.exp ((-Complex.I) * complexSpatialPhase x (q ζ)) * (f.1 x : ℂ)) ζ := by + have h := hasDerivAt_spatialTest_integral f + (fun z x => Complex.exp ((-Complex.I) * complexSpatialPhase x (q z))) + (fun z x => ((-Complex.I) * complexSpatialPhase x (dq z)) * + Complex.exp ((-Complex.I) * complexSpatialPhase x (q z))) + (by simp only [complexSpatialPhase_apply, spatialDot]; fun_prop) + (by simp only [complexSpatialPhase_apply, spatialDot]; fun_prop) + (fun z x => by + have hp := ((complexSpatialPhase x).hasFDerivAt.comp_hasDerivAt z (hd z)).const_mul + (-Complex.I) + convert! hp.cexp using 1; simp only [Function.comp_apply]; ring) ζ + simpa only [complexSpatialFourier, complexSpatialPhase_apply, neg_mul] using h + +theorem analyticOnNhd_complexSourceWave_curve (u : TimeZeroSource) + (q dq : ℂ → ComplexSpacetime) (hq : Continuous q) (hdq : Continuous dq) + (hd : ∀ ζ, HasDerivAt q (dq ζ) ζ) : + AnalyticOnNhd ℂ (fun ζ => complexSourceWave u (q ζ)) Set.univ := by + have hf : Differentiable ℂ (fun ζ => complexSpatialFourier u.1 (q ζ).2) := + fun ζ => (hasDerivAt_complexSpatialFourier_curve u.1 q dq hq hdq hd ζ).differentiableAt + have hg : Differentiable ℂ (fun ζ => complexSpatialFourier u.2 (q ζ).2) := + fun ζ => (hasDerivAt_complexSpatialFourier_curve u.2 q dq hq hdq hd ζ).differentiableAt + have he : Differentiable ℂ (fun ζ => (q ζ).1) := by + intro ζ + exact ((ContinuousLinearMap.fst ℂ ℂ (Fin 3 → ℂ)).hasFDerivAt.comp_hasDerivAt ζ + (hd ζ)).differentiableAt + have hi : Differentiable ℂ (fun _ : ℂ => Complex.I) := differentiable_const _ + have htotal := hf.add ((hi.mul he).mul hg) + intro ζ _ + exact htotal.analyticAt ζ + +/-- Complex shell boost derivative. -/ +noncomputable def complexShellBoostDerivative (m : ℝ) (ζ : ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : ComplexSpacetime := + ((dispersion m p : ℂ) * Complex.sinh ζ + (p 0 : ℂ) * Complex.cosh ζ, + ![(p 0 : ℂ) * Complex.sinh ζ + (dispersion m p : ℂ) * Complex.cosh ζ, 0, 0]) + +theorem hasDerivAt_complexShellBoost (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (ζ : ℂ) : + HasDerivAt (fun z => complexShellBoost m z p) (complexShellBoostDerivative m ζ p) ζ := by + apply HasDerivAt.prodMk + · exact ((Complex.hasDerivAt_cosh ζ).const_mul (dispersion m p : ℂ)).add + ((Complex.hasDerivAt_sinh ζ).const_mul (p 0 : ℂ)) + · apply hasDerivAt_pi.mpr + intro i + fin_cases i + · exact ((Complex.hasDerivAt_cosh ζ).const_mul (p 0 : ℂ)).add + ((Complex.hasDerivAt_sinh ζ).const_mul (dispersion m p : ℂ)) + · exact hasDerivAt_const ζ (p 1 : ℂ) + · exact hasDerivAt_const ζ (p 2 : ℂ) + +theorem analyticOnNhd_complexSourceWave_lorentzBoost (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (u : TimeZeroSource) + (p : EuclideanSpace ℝ (Fin 3)) : + AnalyticOnNhd ℂ (fun ζ => complexSourceWave u + (complexifiedSpacetimeMap Λ (complexShellBoost m ζ p))) Set.univ := by + apply analyticOnNhd_complexSourceWave_curve u + (fun ζ => complexifiedSpacetimeMap Λ (complexShellBoost m ζ p)) + (fun ζ => complexifiedSpacetimeMap Λ (complexShellBoostDerivative m ζ p)) + · apply (complexifiedSpacetimeMap Λ).continuous.comp + unfold complexShellBoost + fun_prop + · apply (complexifiedSpacetimeMap Λ).continuous.comp + unfold complexShellBoostDerivative + fun_prop + · intro ζ + exact (complexifiedSpacetimeMap Λ).hasFDerivAt.comp_hasDerivAt ζ + (hasDerivAt_complexShellBoost m p ζ) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceDefs.lean new file mode 100644 index 0000000000..bc45e64623 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceDefs.lean @@ -0,0 +1,44 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceInclusion +public import LeanPool.VacuumBellSeparation.Gaussian.SourceGram + +/-! +# Literal statement construction extracted from FreeField/ComplexSource + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +open MeasureTheory ClosedSubmodule + +namespace VacuumBellSeparation + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- The actual complex Hilbert space obtained from the completed real sources. -/ +abbrev ComplexSourceHilbert := Gaussian.HilbertComplexification (SourceHilbert hm U) + +/-- Complex-linear extension of the physical source embedding. -/ +noncomputable def complexSourceMap : + ComplexSourceHilbert hm U →L[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + Gaussian.sourceMap (sourceEmbedding hm U) + +/-- Componentwise extension of the actual real commutation operator. -/ +noncomputable def complexSourceCommutation : + ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U := + Gaussian.complexCommutation (sourceEmbedding hm U) + +/-- The physical Gram operator, defined by the map and its genuine Hilbert adjoint. -/ +noncomputable def sourceGram : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U := + (complexSourceMap hm U).adjoint.comp (complexSourceMap hm U) + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceDistributions.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceDistributions.lean new file mode 100644 index 0000000000..e7b7aa4c4b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceDistributions.lean @@ -0,0 +1,164 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSource +public import LeanPool.VacuumBellSeparation.FreeField.SourceDistributionReality + +/-! +# Actual complexified position and momentum distributions + +Continuous real source distribution maps are complexified on the already +constructed Hilbert complexification. The resulting position pair is +injective, has the actual compact-support bound, and obeys the normalized +Fourier identities. The physical complex source kernel gives the genuine +distributional relation `F + iω G = 0`. Showing that this relation forces +both compact position distributions to vanish remains the analytic step. +-/ + +@[expose] public section + +open MeasureTheory +open VacuumBellSeparation.Gaussian.HilbertComplexification +open scoped SchwartzMap + +namespace VacuumBellSeparation + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Complexification into the actual locally convex distribution space; no norm is assigned to +it. -/ +noncomputable def complexifySourceDistribution + (D : SourceHilbert hm U →L[ℝ] TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) : + ComplexSourceHilbert hm U →L[ℂ] TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ where + toFun z := D z.re + Complex.I • D z.im + map_add' z w := by simp [smul_add]; abel + map_smul' c z := by + have hreal (r : ℝ) (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) : + r • T = (r : ℂ) • T := by + ext φ + simp only [smul_apply, Complex.real_smul, smul_eq_mul] + have hre : (c.re : ℂ) + Complex.I * (c.im : ℂ) = c := by + apply Complex.ext <;> simp + have him : -(c.im : ℂ) + Complex.I * (c.re : ℂ) = c * Complex.I := by + apply Complex.ext <;> simp + simp only [re_smul, im_smul, map_sub, map_add, map_smul, + hreal, smul_add, smul_smul] + calc + ((c.re : ℂ) • D z.re - (c.im : ℂ) • D z.im) + + ((Complex.I * (c.im : ℂ)) • D z.re + + (Complex.I * (c.re : ℂ)) • D z.im) = + ((c.re : ℂ) + Complex.I * (c.im : ℂ)) • D z.re + + (-(c.im : ℂ) + Complex.I * (c.re : ℂ)) • D z.im := by module + _ = c • D z.re + (c * Complex.I) • D z.im := by rw [hre, him] + cont := by + have hre : Continuous (fun z : ComplexSourceHilbert hm U => z.re) := WithLp.continuous_fst 2 _ _ + have him : Continuous (fun z : ComplexSourceHilbert hm U => z.im) := WithLp.continuous_snd 2 _ _ + exact (D.continuous.comp hre).add ((D.continuous.comp him).const_smul Complex.I) + +@[simp] theorem complexifySourceDistribution_apply + (D : SourceHilbert hm U →L[ℝ] TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (z : ComplexSourceHilbert hm U) : + complexifySourceDistribution hm U D z = D z.re + Complex.I • D z.im := rfl + +/-- Continuous linear map for the complex source first distribution, of type `ComplexSourceHilbert +hm U →L[ℂ] TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ`. -/ +noncomputable def complexSourceFirstDistribution : ComplexSourceHilbert hm U →L[ℂ] + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := + complexifySourceDistribution hm U (sourceFirstDistribution hm U) + +/-- Continuous linear map for the complex source second distribution, of type `ComplexSourceHilbert +hm U →L[ℂ] TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ`. -/ +noncomputable def complexSourceSecondDistribution : ComplexSourceHilbert hm U →L[ℂ] + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := + complexifySourceDistribution hm U (sourceSecondDistribution hm U) + +/-- Continuous linear map for the complex source first momentum, of type `ComplexSourceHilbert hm U +→L[ℂ] TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ`. -/ +noncomputable def complexSourceFirstMomentum : ComplexSourceHilbert hm U →L[ℂ] + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := + complexifySourceDistribution hm U (sourceFirstMomentum hm U) + +/-- Continuous linear map for the complex source second momentum, of type `ComplexSourceHilbert hm +U →L[ℂ] TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ`. -/ +noncomputable def complexSourceSecondMomentum : ComplexSourceHilbert hm U →L[ℂ] + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := + complexifySourceDistribution hm U (sourceSecondMomentum hm U) + +theorem complexSourceFirstDistribution_fourier (z : ComplexSourceHilbert hm U) : + complexSourceFirstDistribution hm U z = + sourceInverseFourier (complexSourceFirstMomentum hm U z) := by + change sourceInverseFourier (sourceFirstMomentum hm U z.re) + + Complex.I • sourceInverseFourier (sourceFirstMomentum hm U z.im) = + sourceInverseFourier (sourceFirstMomentum hm U z.re + Complex.I • sourceFirstMomentum hm U z.im) + rw [map_add, map_smul] + +theorem complexSourceSecondDistribution_fourier (z : ComplexSourceHilbert hm U) : + complexSourceSecondDistribution hm U z = + sourceInverseFourier (complexSourceSecondMomentum hm U z) := by + change sourceInverseFourier (sourceSecondMomentum hm U z.re) + + Complex.I • sourceInverseFourier (sourceSecondMomentum hm U z.im) = + sourceInverseFourier (sourceSecondMomentum hm U z.re + Complex.I • sourceSecondMomentum hm U + z.im) + rw [map_add, map_smul] + +/-- The actual pair of complex position distributions is faithful to the source complexification. -/ +theorem complexSource_eq_zero_of_distributions_eq_zero (z : ComplexSourceHilbert hm U) + (hf : complexSourceFirstDistribution hm U z = 0) + (hg : complexSourceSecondDistribution hm U z = 0) : z = 0 := by + have h := source_complex_distributions_eq_zero hm U z.re z.im hf hg + apply Gaussian.HilbertComplexification.ext + · simpa using h.1 + · simpa using h.2 + +theorem complexSourceDistributions_injective : + Function.Injective (fun z : ComplexSourceHilbert hm U => + (complexSourceFirstDistribution hm U z, complexSourceSecondDistribution hm U z)) := by + intro z w h + apply sub_eq_zero.mp + apply complexSource_eq_zero_of_distributions_eq_zero hm U (z - w) + · rw [map_sub, (Prod.mk.inj h).1, sub_self] + · rw [map_sub, (Prod.mk.inj h).2, sub_self] + +theorem complexSourceFirstDistribution_isVanishingOn (z : ComplexSourceHilbert hm U) : + Distribution.IsVanishingOn (complexSourceFirstDistribution hm U z) (closure U)ᶜ := by + intro φ hφ + change sourceFirstDistribution hm U z.re φ + Complex.I * sourceFirstDistribution hm U z.im φ = 0 + rw [sourceFirstDistribution_isVanishingOn hm U z.re φ hφ, + sourceFirstDistribution_isVanishingOn hm U z.im φ hφ, mul_zero, add_zero] + +theorem complexSourceSecondDistribution_isVanishingOn (z : ComplexSourceHilbert hm U) : + Distribution.IsVanishingOn (complexSourceSecondDistribution hm U z) (closure U)ᶜ := by + intro φ hφ + change sourceSecondDistribution hm U z.re φ + Complex.I * sourceSecondDistribution hm U z.im φ = 0 + rw [sourceSecondDistribution_isVanishingOn hm U z.re φ hφ, + sourceSecondDistribution_isVanishingOn hm U z.im φ hφ, mul_zero, add_zero] + +/-- Complexification preserves the actual momentum reconstruction formula. -/ +theorem complexSourceMomentum_reconstruction (z : ComplexSourceHilbert hm U) : + unweightedMomentumDistribution hm (complexSourceMap hm U z) = + complexSourceFirstMomentum hm U z + + TemperedDistribution.smulLeftCLM ℂ (sourceSecondInverseMultiplier m) + (complexSourceSecondMomentum hm U z) := by + change unweightedMomentumDistribution hm + (sourceEmbedding hm U z.re + Complex.I • sourceEmbedding hm U z.im) = + (sourceFirstMomentum hm U z.re + Complex.I • sourceFirstMomentum hm U z.im) + + TemperedDistribution.smulLeftCLM ℂ (sourceSecondInverseMultiplier m) + (sourceSecondMomentum hm U z.re + Complex.I • sourceSecondMomentum hm U z.im) + rw [map_add, map_smul, sourceMomentum_reconstruction hm U z.re, + sourceMomentum_reconstruction hm U z.im, map_add, map_smul] + module + +/-- The physical complex kernel produces the genuine compact-source distribution equation. -/ +theorem complexSource_distribution_relation_of_kernel (z : ComplexSourceHilbert hm U) + (hz : complexSourceMap hm U z = 0) : + complexSourceFirstMomentum hm U z + + TemperedDistribution.smulLeftCLM ℂ (sourceSecondInverseMultiplier m) + (complexSourceSecondMomentum hm U z) = 0 := by + rw [← complexSourceMomentum_reconstruction hm U z, hz, map_zero] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceFourierComponents.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceFourierComponents.lean new file mode 100644 index 0000000000..c2e2dc87e9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceFourierComponents.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceReserveWave +public import LeanPool.VacuumBellSeparation.Shell.SpatialFourierEnergyCircle + +/-! +# The actual entire field and momentum Fourier functionals + +The two components are recovered from the original wave at opposite +complex energies. The division identity is stated only for nonzero +energy; the entire momentum component itself is defined everywhere. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification + +/-- Complex-linear spatial Fourier transform on Schwartz functions. -/ +noncomputable def complexSpatialFourierLinear (z : Fin 3 → ℂ) : SpatialTestFunction →ₗ[ℝ] ℂ where + toFun f := complexSpatialFourier f z + map_add' f g := complexSpatialFourier_add f g z + map_smul' a f := complexSpatialFourier_smul a f z + +private theorem differentiable_complexSpatialFourier_spatial (f : SpatialTestFunction) : + Differentiable ℂ (complexSpatialFourier f) := by + have hs : Differentiable ℂ (fun w : ComplexSpacetime => complexSpatialFourier f w.2) := + fun w => (hasFDerivAt_complexSpatialFourier f w).differentiableAt + have hpair : Differentiable ℂ (fun z : Fin 3 → ℂ => ((0 : ℂ), z)) := + (differentiable_const (0 : ℂ)).prodMk differentiable_id + simpa only [Function.comp_def] using + (Differentiable.comp (f := fun z : Fin 3 → ℂ => ((0 : ℂ), z)) + (g := fun w : ComplexSpacetime => complexSpatialFourier f w.2) hs hpair) + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Linear map for the complex source field Fourier, of type `ComplexSourceTestSpace hm U →ₗ[ℂ] +ℂ`. -/ +noncomputable def complexSourceFieldFourier (z : Fin 3 → ℂ) : + ComplexSourceTestSpace hm U →ₗ[ℂ] ℂ := + complexifyFunctional (((complexSpatialFourierLinear z).comp + (LinearMap.fst ℝ SpatialTestFunction SpatialTestFunction)).comp + ((localizedTimeZeroSources U).subtype : SourceTestSpace hm U →ₗ[ℝ] TimeZeroSource)) + +/-- Linear map for the complex source momentum Fourier, of type `ComplexSourceTestSpace hm U →ₗ[ℂ] +ℂ`. -/ +noncomputable def complexSourceMomentumFourier (z : Fin 3 → ℂ) : + ComplexSourceTestSpace hm U →ₗ[ℂ] ℂ := + complexifyFunctional (((complexSpatialFourierLinear z).comp + (LinearMap.snd ℝ SpatialTestFunction SpatialTestFunction)).comp + ((localizedTimeZeroSources U).subtype : SourceTestSpace hm U →ₗ[ℝ] TimeZeroSource)) + +theorem complexSourceFieldFourier_apply (z : Fin 3 → ℂ) (x : ComplexSourceTestSpace hm U) : + complexSourceFieldFourier hm U z x = + complexSpatialFourier x.re.1.1 z + Complex.I * complexSpatialFourier x.im.1.1 z := rfl + +theorem complexSourceMomentumFourier_apply (z : Fin 3 → ℂ) (x : ComplexSourceTestSpace hm U) : + complexSourceMomentumFourier hm U z x = + complexSpatialFourier x.re.1.2 z + Complex.I * complexSpatialFourier x.im.1.2 z := rfl + +theorem complexSourceTestWave_components (z : ComplexSpacetime) + (x : ComplexSourceTestSpace hm U) : + complexSourceTestWave hm U z x = complexSourceFieldFourier hm U z.2 x + + Complex.I * z.1 * complexSourceMomentumFourier hm U z.2 x := by + simp only [complexSourceTestWave_apply, complexSourceWave, + complexSourceFieldFourier_apply, complexSourceMomentumFourier_apply] + ring + +theorem complexSourceFieldFourier_opposite_energy (e : ℂ) (z : Fin 3 → ℂ) + (x : ComplexSourceTestSpace hm U) : + complexSourceFieldFourier hm U z x = + (complexSourceTestWave hm U (e, z) x + complexSourceTestWave hm U (-e, z) x) / 2 := by + simp only [complexSourceTestWave_components] + ring + +theorem complexSourceMomentumFourier_opposite_energy {e : ℂ} (he : e ≠ 0) + (z : Fin 3 → ℂ) (x : ComplexSourceTestSpace hm U) : + complexSourceMomentumFourier hm U z x = + (complexSourceTestWave hm U (e, z) x - complexSourceTestWave hm U (-e, z) x) / + (2 * Complex.I * e) := by + simp only [complexSourceTestWave_components] + field_simp [he] + ring + +theorem complexSourceFieldFourier_norm_bound (e : ℂ) (z : Fin 3 → ℂ) + (x : ComplexSourceTestSpace hm U) {M : ℝ} + (hp : ‖complexSourceTestWave hm U (e, z) x‖ ≤ M) + (hn : ‖complexSourceTestWave hm U (-e, z) x‖ ≤ M) : + ‖complexSourceFieldFourier hm U z x‖ ≤ M := by + rw [complexSourceFieldFourier_opposite_energy hm U e z x, norm_div, Complex.norm_ofNat] + exact (div_le_iff₀ (by norm_num : (0 : ℝ) < 2)).mpr + ((norm_add_le _ _).trans (by linarith)) + +theorem complexSourceMomentumFourier_norm_bound {e : ℂ} (he : e ≠ 0) + (z : Fin 3 → ℂ) (x : ComplexSourceTestSpace hm U) {M : ℝ} + (hp : ‖complexSourceTestWave hm U (e, z) x‖ ≤ M) + (hn : ‖complexSourceTestWave hm U (-e, z) x‖ ≤ M) : + ‖complexSourceMomentumFourier hm U z x‖ ≤ M / ‖e‖ := by + rw [complexSourceMomentumFourier_opposite_energy hm U he z x, + norm_div, norm_mul, norm_mul, Complex.norm_ofNat, Complex.norm_I, mul_one] + have hb := (norm_sub_le _ _).trans (show + ‖complexSourceTestWave hm U (e, z) x‖ + ‖complexSourceTestWave hm U (-e, + z) x‖ ≤ 2 * M by linarith) + calc + _ ≤ (2 * M) / (2 * ‖e‖) := div_le_div_of_nonneg_right hb (by positivity) + _ = _ := by ring + +theorem differentiable_complexSourceFieldFourier (x : ComplexSourceTestSpace hm U) : + Differentiable ℂ (fun z : Fin 3 → ℂ => complexSourceFieldFourier hm U z x) := by + simp only [complexSourceFieldFourier_apply] + exact (differentiable_complexSpatialFourier_spatial x.re.1.1).add + ((differentiable_complexSpatialFourier_spatial x.im.1.1).const_mul Complex.I) + +theorem differentiable_complexSourceMomentumFourier (x : ComplexSourceTestSpace hm U) : + Differentiable ℂ (fun z : Fin 3 → ℂ => complexSourceMomentumFourier hm U z x) := by + simp only [complexSourceMomentumFourier_apply] + exact (differentiable_complexSpatialFourier_spatial x.re.1.2).add + ((differentiable_complexSpatialFourier_spatial x.im.1.2).const_mul Complex.I) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceMomentFunctional.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceMomentFunctional.lean new file mode 100644 index 0000000000..a1dc4922b7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceMomentFunctional.lean @@ -0,0 +1,72 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFourierMomentCoefficients + +/-! +# Literal polynomial moments as complex-linear original-source functionals +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Gaussian Gaussian.HilbertComplexification + +theorem spatialTestMoment_add (f g : SpatialTestFunction) (α : Fin 3 → ℕ) : + spatialTestMoment (f + g) α = spatialTestMoment f α + spatialTestMoment g α := by + unfold spatialTestMoment + change (∫ x, spatialMonomial α x * ((f.1 x + g.1 x : ℝ) : ℂ)) = _ + simp only [Complex.ofReal_add, mul_add] + exact integral_add (integrable_spatialTestMoment f α) (integrable_spatialTestMoment g α) + +theorem spatialTestMoment_smul (a : ℝ) (f : SpatialTestFunction) (α : Fin 3 → ℕ) : + spatialTestMoment (a • f) α = a • spatialTestMoment f α := by + unfold spatialTestMoment + rw [← integral_smul] + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + change spatialMonomial α x * ((a * f.1 x : ℝ) : ℂ) = + a • (spatialMonomial α x * (f.1 x : ℂ)) + rw [Complex.real_smul, Complex.ofReal_mul] + ring + +/-- Linear map for the spatial test moment linear, of type `SpatialTestFunction →ₗ[ℝ] ℂ where toFun +f`. -/ +noncomputable def spatialTestMomentLinear (α : Fin 3 → ℕ) : SpatialTestFunction →ₗ[ℝ] ℂ where + toFun f := spatialTestMoment f α + map_add' f g := spatialTestMoment_add f g α + map_smul' a f := spatialTestMoment_smul a f α + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Linear map for the complex source field moment, of type `ComplexSourceTestSpace hm U →ₗ[ℂ] +ℂ`. -/ +noncomputable def complexSourceFieldMoment (α : Fin 3 → ℕ) : + ComplexSourceTestSpace hm U →ₗ[ℂ] ℂ := + complexifyFunctional (((spatialTestMomentLinear α).comp + (LinearMap.fst ℝ SpatialTestFunction SpatialTestFunction)).comp + ((localizedTimeZeroSources U).subtype : SourceTestSpace hm U →ₗ[ℝ] TimeZeroSource)) + +/-- Linear map for the complex source momentum moment, of type `ComplexSourceTestSpace hm U →ₗ[ℂ] +ℂ`. -/ +noncomputable def complexSourceMomentumMoment (α : Fin 3 → ℕ) : + ComplexSourceTestSpace hm U →ₗ[ℂ] ℂ := + complexifyFunctional (((spatialTestMomentLinear α).comp + (LinearMap.snd ℝ SpatialTestFunction SpatialTestFunction)).comp + ((localizedTimeZeroSources U).subtype : SourceTestSpace hm U →ₗ[ℝ] TimeZeroSource)) + +theorem complexSourceFieldMoment_apply (α : Fin 3 → ℕ) (x : ComplexSourceTestSpace hm U) : + complexSourceFieldMoment hm U α x = + spatialTestMoment x.re.1.1 α + Complex.I * spatialTestMoment x.im.1.1 α := rfl + +theorem complexSourceMomentumMoment_apply (α : Fin 3 → ℕ) (x : ComplexSourceTestSpace hm U) : + complexSourceMomentumMoment hm U α x = + spatialTestMoment x.re.1.2 α + Complex.I * spatialTestMoment x.im.1.2 α := rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceWave.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceWave.lean new file mode 100644 index 0000000000..da79cfc723 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceWave.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveEntire +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroL2 +public import LeanPool.VacuumBellSeparation.Shell.NullDiscs + +/-! +# The literal complex-shell wave of the original Cauchy data + +The spatial Fourier integral uses the complex bilinear spatial product, +with no conjugation. Psi(f,g)(z)=fhat(z_sp)+i z0 ghat(z_sp) is defined on +the original complex four-dimensional space. Its boost argument has all +three spatial coordinates and lies on the original massive quadric. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace + +/-- Complex spatial Fourier given by `∫ x : EuclideanSpace ℝ (Fin 3), Complex.exp (-(Complex.I * +spatialDot z (fun i => (x i : ℂ)))) * (f.1 x : ℂ)`. -/ +noncomputable def complexSpatialFourier (f : SpatialTestFunction) (z : Fin 3 → ℂ) : ℂ := + ∫ x : EuclideanSpace ℝ (Fin 3), + Complex.exp (-(Complex.I * spatialDot z (fun i => (x i : ℂ)))) * (f.1 x : ℂ) + +/-- Complex source wave given by `complexSpatialFourier u.1 z.2 + Complex.I * z.1 * +complexSpatialFourier u.2 z.2`. -/ +noncomputable def complexSourceWave (u : TimeZeroSource) (z : ℂ × (Fin 3 → ℂ)) : ℂ := + complexSpatialFourier u.1 z.2 + Complex.I * z.1 * complexSpatialFourier u.2 z.2 + +theorem real_spatialDot (p x : EuclideanSpace ℝ (Fin 3)) : + spatialDot (fun i => (p i : ℂ)) (fun i => (x i : ℂ)) = (⟪p, x⟫_ℝ : ℂ) := by + simp only [spatialDot, EuclideanSpace.inner_eq_star_dotProduct, dotProduct, + star_trivial, Complex.ofReal_sum, Complex.ofReal_mul, mul_comm] + +theorem complexSpatialFourier_ofReal (f : SpatialTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + complexSpatialFourier f (fun i => (p i : ℂ)) = spatialFourier f p := by + unfold complexSpatialFourier spatialFourier + simp only [real_spatialDot] + +theorem complexSourceWave_onShell (m : ℝ) (u : TimeZeroSource) + (p : EuclideanSpace ℝ (Fin 3)) : + complexSourceWave u ((dispersion m p : ℂ), fun i => (p i : ℂ)) = timeZeroOneParticle m u p := by + simp only [complexSourceWave, complexSpatialFourier_ofReal, timeZeroOneParticle] + +/-- Complexification of a coordinate boost of an on-shell spatial momentum. -/ +noncomputable def complexShellBoost (m : ℝ) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + ℂ × (Fin 3 → ℂ) := + ((dispersion m p : ℂ) * Complex.cosh ζ + (p 0 : ℂ) * Complex.sinh ζ, + ![(p 0 : ℂ) * Complex.cosh ζ + (dispersion m p : ℂ) * Complex.sinh ζ, + (p 1 : ℂ), (p 2 : ℂ)]) + +theorem complexShellBoost_mem_shell (m : ℝ) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + complexShellBoost m ζ p ∈ complexShell m := by + have hd : (dispersion m p : ℂ) ^ 2 = + (m : ℂ) ^ 2 + ((p 0 : ℂ) ^ 2 + (p 1 : ℂ) ^ 2 + (p 2 : ℂ) ^ 2) := by + have h := dispersion_sq m p + rw [EuclideanSpace.real_norm_sq_eq, Fin.sum_univ_three] at h + exact_mod_cast h + change (complexShellBoost m ζ p).1 ^ 2 - + spatialDot (complexShellBoost m ζ p).2 (complexShellBoost m ζ p).2 = (m : ℂ) ^ 2 + simp only [complexShellBoost, spatialDot_eq, Matrix.cons_val_zero, + Matrix.cons_val_one, Matrix.cons_val_two, Matrix.vecHead, Matrix.vecTail, + Function.comp_apply, Matrix.cons_val_one, Matrix.cons_val_succ] + linear_combination hd + ((dispersion m p : ℂ) ^ 2 - (p 0 : ℂ) ^ 2) * + Complex.cosh_sq_sub_sinh_sq ζ + +theorem complexShellBoost_phase (m : ℝ) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) + (x : Spacetime) : + (complexShellBoost m ζ p).1 * (x.1 : ℂ) - + spatialDot (complexShellBoost m ζ p).2 (fun i => (x.2 i : ℂ)) = + boostPhase m (-ζ) p x := by + have he (q : EuclideanSpace ℝ (Fin 3)) : ⟪e₁, q⟫_ℝ = q 0 := by + simp [e₁, EuclideanSpace.inner_single_left] + rw [boostPhase, he p, he x.2, ← real_spatialDot p x.2] + simp only [complexShellBoost, spatialDot_eq, Matrix.cons_val_zero, + Matrix.cons_val_one, Matrix.cons_val_two, Matrix.vecHead, Matrix.vecTail, + Function.comp_apply, Matrix.cons_val_one, Matrix.cons_val_succ, + Complex.cosh_neg, Complex.sinh_neg] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceWaveFunctional.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceWaveFunctional.lean new file mode 100644 index 0000000000..00513ef087 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexSourceWaveFunctional.lean @@ -0,0 +1,93 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluation +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceMomentsTestExtension +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexifiedFunctional + +/-! +# Literal wave evaluation as a complex-linear original-source functional + +Linearity is proved for the actual compact Fourier integral before its +complex extension is formed. No continuity or weighted bound is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Gaussian Gaussian.HilbertComplexification + +theorem integrable_complexSpatialFourier (f : SpatialTestFunction) (z : Fin 3 → ℂ) : + Integrable (fun x : EuclideanSpace ℝ (Fin 3) => + Complex.exp (-(Complex.I * spatialDot z (fun j => (x j : ℂ)))) * (f.1 x : ℂ)) := by + have hc : Continuous (fun x : EuclideanSpace ℝ (Fin 3) => + Complex.exp (-(Complex.I * spatialDot z (fun j => (x j : ℂ))))) := by + unfold spatialDot + fun_prop + exact (hc.mul (Complex.continuous_ofReal.comp f.2.1.continuous)).integrable_of_hasCompactSupport + ((f.2.2.comp_left Complex.ofReal_zero).mul_left) + +theorem complexSpatialFourier_add (f g : SpatialTestFunction) (z : Fin 3 → ℂ) : + complexSpatialFourier (f + g) z = complexSpatialFourier f z + complexSpatialFourier g z := by + unfold complexSpatialFourier + change (∫ x : EuclideanSpace ℝ (Fin 3), + Complex.exp (-(Complex.I * spatialDot z (fun j => (x j : ℂ)))) * + ((f.1 x + g.1 x : ℝ) : ℂ)) = _ + simp only [Complex.ofReal_add, mul_add] + exact integral_add (integrable_complexSpatialFourier f z) (integrable_complexSpatialFourier g z) + +theorem complexSpatialFourier_smul (a : ℝ) (f : SpatialTestFunction) (z : Fin 3 → ℂ) : + complexSpatialFourier (a • f) z = a • complexSpatialFourier f z := by + unfold complexSpatialFourier + rw [← integral_smul] + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + change Complex.exp (-(Complex.I * spatialDot z (fun j => (x j : ℂ)))) * + ((a * f.1 x : ℝ) : ℂ) = a • + (Complex.exp (-(Complex.I * spatialDot z (fun j => (x j : ℂ)))) * (f.1 x : ℂ)) + rw [Complex.real_smul, Complex.ofReal_mul] + ring + +/-- The real-linear map evaluating the complex source wave at the specified mass-shell point. -/ +noncomputable def complexSourceWaveLinear (z : ComplexSpacetime) : TimeZeroSource →ₗ[ℝ] ℂ where + toFun u := complexSourceWave u z + map_add' u v := by + change complexSpatialFourier (u.1 + v.1) z.2 + Complex.I * z.1 * + complexSpatialFourier (u.2 + v.2) z.2 = _ + simp only [complexSpatialFourier_add, complexSourceWave] + ring + map_smul' a u := by + change complexSpatialFourier (a • u.1) z.2 + Complex.I * z.1 * + complexSpatialFourier (a • u.2) z.2 = _ + simp only [complexSpatialFourier_smul, complexSourceWave, Complex.real_smul, + RingHom.id_apply] + ring + +/-- Linear map for the complex source test wave, of type `ComplexSourceTestSpace hm U →ₗ[ℂ] ℂ`. -/ +noncomputable def complexSourceTestWave {m : ℝ} (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) (z : ComplexSpacetime) : + ComplexSourceTestSpace hm U →ₗ[ℂ] ℂ := + complexifyFunctional ((complexSourceWaveLinear z).comp + ((localizedTimeZeroSources U).subtype : SourceTestSpace hm U →ₗ[ℝ] TimeZeroSource)) + +theorem complexSourceTestWave_apply {m : ℝ} (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) (z : ComplexSpacetime) + (x : ComplexSourceTestSpace hm U) : + complexSourceTestWave hm U z x = + complexSourceWave x.re.1 z + Complex.I * complexSourceWave x.im.1 z := rfl + +theorem complexSourceTestInclusion_decompose {m : ℝ} (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) (x : ComplexSourceTestSpace hm U) : + complexSourceTestInclusion hm U x = + ofReal (x.re : SourceHilbert hm U) + Complex.I • ofReal (x.im : SourceHilbert hm U) := by + conv_lhs => rw [← mk_re_im x] + rw [complexSourceTestInclusion_mk] + exact eq_ofReal_add_I_smul (mk (x.re : SourceHilbert hm U) (x.im : SourceHilbert hm U)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexSpacetime.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexSpacetime.lean new file mode 100644 index 0000000000..1b36e8a25f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexSpacetime.lean @@ -0,0 +1,95 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceWave +public import LeanPool.VacuumBellSeparation.FreeField.LorentzMap + +/-! +# Literal complexification of the original spacetime automorphisms + +Complex spacetime has the same one time and three spatial coordinates as +the manuscript's quadric. A real spacetime map is complexified on its +four coordinate vectors. This is an actual continuous complex-linear map, +with its real restriction and composition law proved explicitly. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Complex spacetime with underlying type `ℂ × (Fin 3 → ℂ)`. -/ +abbrev ComplexSpacetime := ℂ × (Fin 3 → ℂ) + +/-- Linear map for the complex spacetime of real, of type `Spacetime →ₗ[ℝ] ComplexSpacetime where +toFun x`. -/ +noncomputable def complexSpacetimeOfReal : Spacetime →ₗ[ℝ] ComplexSpacetime where + toFun x := ((x.1 : ℂ), fun i => (x.2 i : ℂ)) + map_add' x y := by ext <;> simp [Complex.ofReal_add] + map_smul' a x := by ext <;> simp [Complex.ofReal_mul, Complex.real_smul] + +theorem spacetime_coordinate_expansion (x : Spacetime) : + x = x.1 • coordDir 0 + ∑ i : Fin 3, x.2 i • coordDir i.succ := by + apply Prod.ext + · simp [Fin.sum_univ_three, coordDir_zero, coordDir_succ] + · ext i + fin_cases i <;> simp [Fin.sum_univ_three, coordDir_zero, coordDir_succ] + +/-- Complexified spacetime map of type `ComplexSpacetime →L[ℂ] ComplexSpacetime`. -/ +noncomputable def complexifiedSpacetimeMap (Λ : Spacetime ≃L[ℝ] Spacetime) : + ComplexSpacetime →L[ℂ] ComplexSpacetime := + (ContinuousLinearMap.fst ℂ ℂ (Fin 3 → ℂ)).smulRight + (complexSpacetimeOfReal (Λ (coordDir 0))) + + ∑ i : Fin 3, + ((ContinuousLinearMap.proj i).comp (ContinuousLinearMap.snd ℂ ℂ (Fin 3 → ℂ))).smulRight + (complexSpacetimeOfReal (Λ (coordDir i.succ))) + +theorem complexifiedSpacetimeMap_apply (Λ : Spacetime ≃L[ℝ] Spacetime) + (z : ComplexSpacetime) : + complexifiedSpacetimeMap Λ z = + z.1 • complexSpacetimeOfReal (Λ (coordDir 0)) + + ∑ i : Fin 3, z.2 i • complexSpacetimeOfReal (Λ (coordDir i.succ)) := by + simp [complexifiedSpacetimeMap] + +theorem complexifiedSpacetimeMap_ofReal (Λ : Spacetime ≃L[ℝ] Spacetime) + (x : Spacetime) : + complexifiedSpacetimeMap Λ (complexSpacetimeOfReal x) = complexSpacetimeOfReal (Λ x) := by + symm + calc + complexSpacetimeOfReal (Λ x) = complexSpacetimeOfReal + (Λ (x.1 • coordDir 0 + ∑ i : Fin 3, x.2 i • coordDir i.succ)) := + congrArg (fun y => complexSpacetimeOfReal (Λ y)) (spacetime_coordinate_expansion x) + _ = x.1 • complexSpacetimeOfReal (Λ (coordDir 0)) + + ∑ i : Fin 3, x.2 i • complexSpacetimeOfReal (Λ (coordDir i.succ)) := by + simp only [map_add, map_sum, map_smul] + _ = complexifiedSpacetimeMap Λ (complexSpacetimeOfReal x) := by + rw [complexifiedSpacetimeMap_apply] + simp only [complexSpacetimeOfReal, LinearMap.coe_mk, AddHom.coe_mk, + RCLike.real_smul_eq_coe_smul (K := ℂ)] + rfl + +theorem complexifiedSpacetimeMap_trans (Λ Γ : Spacetime ≃L[ℝ] Spacetime) + (z : ComplexSpacetime) : + complexifiedSpacetimeMap (Λ.trans Γ) z = + complexifiedSpacetimeMap Γ (complexifiedSpacetimeMap Λ z) := by + rw [complexifiedSpacetimeMap_apply Λ, map_add, map_sum] + simp only [map_smul, complexifiedSpacetimeMap_ofReal] + rw [complexifiedSpacetimeMap_apply] + rfl + +/-- Spatial bilinear pairing with a real position, as an actual complex dual vector. -/ +noncomputable def complexSpatialPhase (x : EuclideanSpace ℝ (Fin 3)) : + ComplexSpacetime →L[ℂ] ℂ := + ∑ i : Fin 3, (x i : ℂ) • + ((ContinuousLinearMap.proj i).comp (ContinuousLinearMap.snd ℂ ℂ (Fin 3 → ℂ))) + +theorem complexSpatialPhase_apply (x : EuclideanSpace ℝ (Fin 3)) + (z : ComplexSpacetime) : + complexSpatialPhase x z = spatialDot z.2 (fun i => (x i : ℂ)) := by + simp [complexSpatialPhase, spatialDot, mul_comm] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexTestInjectivity.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexTestInjectivity.lean new file mode 100644 index 0000000000..23f6b4b4d1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexTestInjectivity.lean @@ -0,0 +1,104 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFourierSlice +public import LeanPool.VacuumBellSeparation.FreeField.AnalyticOddOrder +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroNondegenerate +public import LeanPool.VacuumBellSeparation.FreeField.Lorentz + +/-! +# Complex injectivity for compact test sources + +The source's entire-function argument is carried out here for actual compactly +supported smooth test pairs. The transverse slice has effective mass +`sqrt (m²+|p_perp|²)>0`, so the odd-order obstruction applies. This does not +extend injectivity to the Hilbert completion: completed source components +must still be embedded into compactly supported distributions. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate + +namespace VacuumBellSeparation + +theorem dispersion_sq_transverse {m : ℝ} (p : EuclideanSpace ℝ (Fin 3)) + (hp : ⟪e₁, p⟫_ℝ = 0) (t : ℝ) : + dispersion m (p + t • e₁) ^ 2 = t ^ 2 + dispersion m p ^ 2 := by + rw [dispersion_sq, dispersion_sq, ← real_inner_self_eq_norm_sq, + inner_add_smul_e₁, hp, real_inner_self_eq_norm_sq] + ring + +/-- Reality separates two real test functions from their vanishing complex Fourier combination. -/ +theorem spatialTestFunctions_eq_zero_of_complex_fourier_eq_zero + (f g : SpatialTestFunction) + (h : ∀ p, spatialFourier f p + Complex.I * spatialFourier g p = 0) : f = 0 ∧ g = 0 := by + have hparts (p : EuclideanSpace ℝ (Fin 3)) : spatialFourier f p = 0 ∧ spatialFourier g p = 0 := by + have hp := h p + have hn := congrArg conj (h (-p)) + simp only [map_add, map_mul, spatialFourier_neg, Complex.conj_conj, + Complex.conj_I, map_zero] at hn + constructor + · linear_combination (1 / 2 : ℂ) * hp + (1 / 2 : ℂ) * hn + · have hi : Complex.I * spatialFourier g p = 0 := by + linear_combination (1 / 2 : ℂ) * hp - (1 / 2 : ℂ) * hn + exact (mul_eq_zero.mp hi).resolve_left Complex.I_ne_zero + exact ⟨spatialTestFunction_eq_zero_of_fourier_eq_zero f (fun p => (hparts p).1), + spatialTestFunction_eq_zero_of_fourier_eq_zero g (fun p => (hparts p).2)⟩ + +/-- The pointwise complexified source map has trivial kernel on compact test pairs. -/ +theorem timeZero_complex_test_injective {m : ℝ} (hm : 0 < m) (u v : TimeZeroSource) + (hκ : ∀ p, timeZeroOneParticle m u p + Complex.I * timeZeroOneParticle m v p = 0) : + u = 0 ∧ v = 0 := by + let F := fun p => spatialFourier u.1 p + Complex.I * spatialFourier v.1 p + let G := fun p => spatialFourier u.2 p + Complex.I * spatialFourier v.2 p + have hlinear (p : EuclideanSpace ℝ (Fin 3)) : + F p = -(Complex.I * (dispersion m p : ℂ) * G p) := by + have h := hκ p + dsimp [F, G, timeZeroOneParticle] at h ⊢ + linear_combination h + have hparts (p : EuclideanSpace ℝ (Fin 3)) : F p = 0 ∧ G p = 0 := by + let pperp := p - ⟪e₁, p⟫_ℝ • e₁ + have hpperp : ⟪e₁, pperp⟫_ℝ = 0 := by + simp [pperp, inner_sub_right, real_inner_smul_right, norm_e₁] + let M := dispersion m pperp + have hM : 0 < M := hm.trans_le (le_dispersion hm.le pperp) + let Fs := fun z => spatialFourierSlice u.1 pperp e₁ z + + Complex.I * spatialFourierSlice v.1 pperp e₁ z + let Gs := fun z => spatialFourierSlice u.2 pperp e₁ z + + Complex.I * spatialFourierSlice v.2 pperp e₁ z + have hFa : AnalyticOnNhd ℂ Fs Set.univ := + (analyticOnNhd_spatialFourierSlice u.1 pperp e₁).add + (analyticOnNhd_const.mul (analyticOnNhd_spatialFourierSlice v.1 pperp e₁)) + have hGa : AnalyticOnNhd ℂ Gs Set.univ := + (analyticOnNhd_spatialFourierSlice u.2 pperp e₁).add + (analyticOnNhd_const.mul (analyticOnNhd_spatialFourierSlice v.2 pperp e₁)) + have hFs (t : ℝ) : Fs (t : ℂ) = F (pperp + t • e₁) := by + simp only [Fs, F, spatialFourierSlice_ofReal] + have hGs (t : ℝ) : Gs (t : ℂ) = G (pperp + t • e₁) := by + simp only [Gs, G, spatialFourierSlice_ofReal] + have hrel (t : ℝ) : Fs (t : ℂ) ^ 2 = + -((t : ℂ) ^ 2 + (M : ℂ) ^ 2) * Gs (t : ℂ) ^ 2 := by + have hω : (dispersion m (pperp + t • e₁) : ℂ) ^ 2 = + (t : ℂ) ^ 2 + (M : ℂ) ^ 2 := by + exact_mod_cast dispersion_sq_transverse pperp hpperp t + rw [hFs, hGs, hlinear, neg_sq, mul_pow, mul_pow, Complex.I_sq, hω] + ring + obtain ⟨hf0, hg0⟩ := entire_massive_square_zero_of_real hM hFa hGa hrel + have hfp := congrFun hf0 (⟪e₁, p⟫_ℝ : ℂ) + have hgp := congrFun hg0 (⟪e₁, p⟫_ℝ : ℂ) + rw [hFs] at hfp + rw [hGs] at hgp + simpa [pperp] using And.intro hfp hgp + obtain ⟨hu1, hv1⟩ := spatialTestFunctions_eq_zero_of_complex_fourier_eq_zero + u.1 v.1 (fun p => (hparts p).1) + obtain ⟨hu2, hv2⟩ := spatialTestFunctions_eq_zero_of_complex_fourier_eq_zero + u.2 v.2 (fun p => (hparts p).2) + exact ⟨Prod.ext hu1 hu2, Prod.ext hv1 hv2⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ComplexTestWedgeContour.lean b/LeanPool/VacuumBellSeparation/FreeField/ComplexTestWedgeContour.lean new file mode 100644 index 0000000000..3bbe8db67c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ComplexTestWedgeContour.lean @@ -0,0 +1,158 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LorentzContainingWedge + +/-! +# Exact Lorentz contours for complexified compact test sources + +The complex source is the literal sum of a real test pair and i times +another real test pair. Linearity of the full maximal graph gives the +contour including cross terms, without an extra norm-loss factor. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +/-- Wedge contour phase. -/ +noncomputable def wedgeContourPhase (m ℓ θ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + Complex.exp (-(Complex.I * spatialDot + (complexShellBoost m ((θ : ℂ) * Complex.I) p).2 + (fun i => ((-(ℓ • e₁)) i : ℂ)))) + +theorem norm_wedgeContourPhase_sq (m ℓ θ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + ‖wedgeContourPhase m ℓ θ p‖ ^ 2 = + Real.exp (-2 * ℓ * dispersion m p * Real.sin θ) := by + rw [wedgeContourPhase, norm_complexTranslation_edge, pow_two, ← Real.exp_add] + congr 1 + ring + +variable {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (hfuture : IsOrthochronousMap Λ) + +/-- Linear isometry equivalence for the lorentz wedge contour unitary, of type `Lp ℂ 2 +(oneParticleMeasure m) ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def lorentzWedgeContourUnitary : + Lp ℂ 2 (oneParticleMeasure m) ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + (oneParticleSpatialTranslation m (ℓ • e₁)).trans (oneParticleLorentz hm Λ hΛ hfuture) + +theorem timeZero_lorentzWedge_graph_ae + (F : RealTestFunction) (u : TimeZeroSource) (heq : oneParticleL2 hm F = timeZeroL2 hm u) + (hF : tsupport F.1 ⊆ Λ '' leftWedge ℓ) + {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + ∃ χ : Lp ℂ 2 (oneParticleMeasure m), + (timeZeroL2 hm u, χ) ∈ + (unitaryPartialTransport (oneParticleLorentz hm Λ hΛ hfuture) + (shiftedWedgeExponential hm ℓ c)).graph ∧ + (lorentzWedgeContourUnitary hm ℓ Λ hΛ hfuture).symm χ =ᵐ[oneParticleMeasure m] + fun p => wedgeContourPhase m ℓ (2 * Real.pi * c) p * + complexSourceWave u (complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p)) := by + let G := spacetimeSpatialTranslate (-(ℓ • e₁)) (F.compCLE Λ) + have hG : tsupport G.1 ⊆ leftWedge 0 := spacetimeSpatialTranslate_support_wedge_zero ℓ + (F.compCLE Λ) (tsupport_compLorentz_subset_wedge Λ ℓ F hF) + let ζ : ℂ := ((2 * Real.pi * c : ℝ) : ℂ) * Complex.I + have hζ := wedgeWave_angle_mem_strip hc hc2 + let ψ := wedgeWaveL2 hm G hG ζ hζ + refine ⟨lorentzWedgeContourUnitary hm ℓ Λ hΛ hfuture ψ, ?_, ?_⟩ + · rw [lorentzWedgeContourUnitary, LinearIsometryEquiv.trans_apply, + unitaryPartialTransport_mem_graph, LinearIsometryEquiv.symm_apply_apply, + ← heq, oneParticleLorentz_symm_oneParticleL2, + shiftedWedgeExponential, unitaryPartialTransport_mem_graph, + LinearIsometryEquiv.symm_apply_apply, oneParticleSpatialTranslation_symm, + ← oneParticleL2_spatialTranslate] + exact wedgeWave_mem_physicalRapidityPower_graph hm G hG hc hc2 + · rw [LinearIsometryEquiv.symm_apply_apply] + filter_upwards [wedgeWaveL2_ae hm G hG ζ hζ] with p hp + rw [hp] + change wedgeWave m (spacetimeSpatialTranslate (-(ℓ • e₁)) (F.compCLE Λ)) ζ p = _ + rw [wedgeWave_spatialTranslate, + wedgeWave_compLorentz_eq_complexSourceWave hm Λ hΛ hfuture F u heq] + rfl + +variable {U : Set (EuclideanSpace ℝ (Fin 3))} {R : ℝ} + (hR : 0 < R) (hU : U ⊆ Metric.ball 0 R) + (hregion : doubleCone (0, (0 : EuclideanSpace ℝ (Fin 3))) R ⊆ Λ '' leftWedge ℓ) + +include hR hU hregion in +theorem complexTest_lorentzWedge_contour_norm + (u v : SourceTestSpace hm U) {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + ∃ χ : Lp ℂ 2 (oneParticleMeasure m), + (timeZeroL2 hm u.1 + Complex.I • timeZeroL2 hm v.1, χ) ∈ + (unitaryPartialTransport (oneParticleLorentz hm Λ hΛ hfuture) + (shiftedWedgeExponential hm ℓ c)).graph ∧ + ‖χ‖ ^ 2 = ∫ p, Real.exp (-2 * ℓ * dispersion m p * Real.sin (2 * Real.pi * c)) * + ‖complexSourceWave u.1 (complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p)) + + Complex.I * complexSourceWave v.1 (complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p))‖ ^ 2 + ∂oneParticleMeasure m := by + obtain ⟨F, hF, hFu⟩ := exists_spacetimeSourceL2_of_timeZeroSource_ball hm hR 0 u.1 + (u.2.1.trans hU) (u.2.2.trans hU) + obtain ⟨G, hG, hGv⟩ := exists_spacetimeSourceL2_of_timeZeroSource_ball hm hR 0 v.1 + (v.2.1.trans hU) (v.2.2.trans hU) + obtain ⟨χ, hχ, haeχ⟩ := timeZero_lorentzWedge_graph_ae hm ℓ Λ hΛ hfuture + F u.1 hFu (hF.trans hregion) hc hc2 + obtain ⟨ψ, hψ, haeψ⟩ := timeZero_lorentzWedge_graph_ae hm ℓ Λ hΛ hfuture + G v.1 hGv (hG.trans hregion) hc hc2 + let A := unitaryPartialTransport (oneParticleLorentz hm Λ hΛ hfuture) + (shiftedWedgeExponential hm ℓ c) + let V := lorentzWedgeContourUnitary hm ℓ Λ hΛ hfuture + refine ⟨χ + Complex.I • ψ, ?_, ?_⟩ + · exact A.graph.add_mem hχ (A.graph.smul_mem Complex.I hψ) + · rw [← V.symm.norm_map (χ + Complex.I • ψ), map_add, map_smul, + norm_L2_sq_eq_integral_norm_sq] + apply integral_congr_ae + filter_upwards [haeχ, haeψ, Lp.coeFn_add (V.symm χ) (Complex.I • V.symm ψ), + Lp.coeFn_smul Complex.I (V.symm ψ)] with p hχp hψp hadd hsmul + rw [hadd, Pi.add_apply, hsmul, Pi.smul_apply] + rw [hχp, hψp] + simp only [smul_eq_mul] + rw [show wedgeContourPhase m ℓ (2 * Real.pi * c) p * + complexSourceWave u.1 (complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p)) + + Complex.I * (wedgeContourPhase m ℓ (2 * Real.pi * c) p * + complexSourceWave v.1 (complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p))) = + wedgeContourPhase m ℓ (2 * Real.pi * c) p * + (complexSourceWave u.1 (complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p)) + + Complex.I * complexSourceWave v.1 (complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p))) by ring, + norm_mul, mul_pow, norm_wedgeContourPhase_sq] + +include hΛ hfuture hR hU hregion in +/-- Exact complex-source estimate retaining all cross terms. -/ +theorem complexTest_lorentzContour_le_sourceWeight + (u v : SourceTestSpace hm U) {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) : + (∫ p, Real.exp (-2 * ℓ * dispersion m p * Real.sin (2 * Real.pi * c)) * + ‖complexSourceWave u.1 (complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p)) + + Complex.I * complexSourceWave v.1 (complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p))‖ ^ 2 + ∂oneParticleMeasure m) ≤ + ‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal (v : SourceHilbert hm U))‖ ^ 2 := by + obtain ⟨χ, hχ, hnorm⟩ := complexTest_lorentzWedge_contour_norm hm ℓ Λ hΛ hfuture + hR hU hregion u v hc.le hc2 + obtain ⟨ψ, hψ, hbound⟩ := lorentzWedgeExponential_containing_ball hm ℓ Λ hΛ hfuture + hR hU hregion hc hc2 + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal (v : SourceHilbert hm U)) + rw [map_add, map_smul, complexSourceMap_ofReal_test, complexSourceMap_ofReal_test] at hψ + have he := (unitaryPartialTransport (oneParticleLorentz hm Λ hΛ hfuture) + (shiftedWedgeExponential hm ℓ c)).mem_graph_snd_inj hχ hψ rfl + rw [← hnorm, he] + exact pow_le_pow_left₀ (norm_nonneg _) hbound 2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ContinuousDistributionSeparation.lean b/LeanPool/VacuumBellSeparation/FreeField/ContinuousDistributionSeparation.lean new file mode 100644 index 0000000000..99525c2177 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ContinuousDistributionSeparation.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionFourier +public import Mathlib.Analysis.Distribution.AEEqOfIntegralContDiff + +/-! +# Continuous functions are separated by the actual Schwartz pairings + +Continuity supplies local integrability. The proved fundamental lemma for +compact smooth tests gives almost-everywhere zero, and Lebesgue open positivity +gives everywhere zero. No polynomial growth of the derivatives is required. +-/ + +@[expose] public section + +open MeasureTheory +open scoped SchwartzMap FourierTransform + +namespace VacuumBellSeparation + +theorem continuous_eq_zero_of_schwartz_pairings + (f : EuclideanSpace ℝ (Fin 3) → ℂ) (hf : Continuous f) + (h : ∀ φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ, + (∫ p, φ p * f p) = 0) : f = 0 := by + have hae : ∀ᵐ p ∂volume, f p = 0 := by + apply ae_eq_zero_of_integral_contDiff_smul_eq_zero hf.locallyIntegrable + intro g hg hgc + have hcompact : HasCompactSupport (fun x => (g x : ℂ)) := + hgc.comp_left Complex.ofReal_zero + have hsmooth : ContDiff ℝ (⊤ : ℕ∞) (fun x => (g x : ℂ)) := + Complex.ofRealCLM.contDiff.comp hg + have ht := h (hcompact.toSchwartzMap hsmooth) + change (∫ x, (g x : ℂ) * f x) = 0 at ht + simpa only [Complex.real_smul] using ht + exact MeasureTheory.Measure.eq_of_ae_eq hae hf continuous_const + +/-- A distributional multiplier equation between actual compact Fourier +representations becomes the literal pointwise equation. -/ +theorem compactDistributionFourier_relation + {K : Set (EuclideanSpace ℝ (Fin 3))} + (T S : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (hT : Distribution.IsVanishingOn T Kᶜ) (hS : Distribution.IsVanishingOn S Kᶜ) + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) + (hχone : ∀ x ∈ K, (fun y => χ y) =ᶠ[nhds x] (fun _ => 1)) + (g : EuclideanSpace ℝ (Fin 3) → ℂ) (hg : Function.HasTemperateGrowth g) + (heq : 𝓕 T + TemperedDistribution.smulLeftCLM ℂ g (𝓕 S) = 0) : + ∀ p, compactDistributionFourier T χ p + g p * compactDistributionFourier S χ p = 0 := by + have hc : Continuous (fun p => compactDistributionFourier T χ p + + g p * compactDistributionFourier S χ p) := + (continuous_compactDistributionFourier T χ hχ).add + (hg.1.continuous.mul (continuous_compactDistributionFourier S χ hχ)) + have hz := continuous_eq_zero_of_schwartz_pairings _ hc (fun φ => by + have hiT := integrable_distribution_cutoffFourierKernel T φ χ hχ + have hiS := integrable_distribution_cutoffFourierKernel S + (SchwartzMap.smulLeftCLM ℂ g φ) χ hχ + have hiS' : Integrable (fun p => φ p * (g p * compactDistributionFourier S χ p)) := by + convert hiS using 1 + funext p + rw [SchwartzMap.smulLeftCLM_apply_apply hg] + change φ p * (g p * S (cutoffFourierKernel χ p)) = (g p * φ p) * S (cutoffFourierKernel χ p) + ring + have hp := DFunLike.congr_fun heq φ + change (𝓕 T) φ + (TemperedDistribution.smulLeftCLM ℂ g (𝓕 S)) φ = 0 at hp + rw [TemperedDistribution.smulLeftCLM_apply_apply] at hp + rw [fourier_distribution_eq_integral_compactDistributionFourier T hT χ hχ hχone, + fourier_distribution_eq_integral_compactDistributionFourier S hS χ hχ hχone] at hp + calc + _ = (∫ p, φ p * compactDistributionFourier T χ p) + + ∫ p, φ p * (g p * compactDistributionFourier S χ p) := by + simp_rw [mul_add] + exact integral_add hiT hiS' + _ = 0 := by + convert hp using 1 + congr 1 + apply integral_congr_ae + exact Filter.Eventually.of_forall fun p => by + dsimp only + rw [SchwartzMap.smulLeftCLM_apply_apply hg] + simp only [smul_eq_mul] + ring) + exact fun p => congrFun hz p + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Corollary.lean b/LeanPool/VacuumBellSeparation/FreeField/Corollary.lean new file mode 100644 index 0000000000..92f1367d29 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Corollary.lean @@ -0,0 +1,234 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Lorentz +public import LeanPool.VacuumBellSeparation.FreeField.Isotony +public import LeanPool.VacuumBellSeparation.FreeField.Statements +public import Mathlib.Analysis.SpecialFunctions.Arsinh + +/-! +# Corollary 1.2 as a consequence of Theorem 1.1 + +The manuscript derives Corollary 1.2 (fixed bounded regions) from Theorem 1.1 by Lorentz +covariance, isotony +and the lower bound `β ≥ 1`. This module formalizes that derivation as the conditional theorem +`corollary_1_2_of_theorem_1_1 : Theorem_1_1 → Corollary_1_2`. Theorem 1.1 itself is proved in +`FreeField/MainTheorems.lean`. + +* `exists_linearIsometryEquiv_apply_eq_norm_smul_e₁`: a reflection of `ℝ³` maps `𝐯` to `|𝐯| 𝐞₁`. +* `boost_arsinh_apply`: the boost of rapidity `arsinh (-t / ℓ)` along `𝐞₁` maps `(t, s 𝐞₁)` to + `(0, ℓ 𝐞₁)` when `s ≥ 0`, `ℓ > 0`, `ℓ² = s² - t²`. +* `exists_lorentz_to_e₁_axis`: a spacelike vector `a` is mapped to `(0, ℓ 𝐞₁)`, + `ℓ = √(|𝐚|² - (a⁰)²) > 0`, by a continuous linear automorphism of spacetime (a spatial + reflection followed by a boost along `𝐞₁`) that preserves the one-particle inner product for + every `m ≠ 0`. +* `FreeFieldVacuum.localAlgebra_lorentz_image`, `FreeFieldVacuum.bellCorrelation_lorentz_image`: + for the transported vacuum system `V' = V.lorentz Λ _` (same vacuum vector), `𝔄'(Λ O) = 𝔄(O)`, + so the vacuum Bell correlation of `(Λ O₁, Λ O₂)` for `V'` equals that of `(O₁, O₂)` for `V`. +* `image_image_add_eq`, `exists_subset_doubleCone_of_isBounded`, `image_add_subset_doubleCone`: + `Λ (O + c) = Λ O + Λ c`; a bounded region lies in a double cone `D_ρ` about the origin, and its + translate by `c` in `D_ρ + c`. +* `corollary_1_2_of_theorem_1_1`: Corollary 1.2, assuming Theorem 1.1. + +The spatial map is a reflection (an improper orthogonal map of `ℝ³`, or the identity if `𝐚` already +points along `+𝐞₁`). The model is covariant +under every linear isometry of `ℝ³` (`oneParticleInner_spatialRotation`), so the transported +system is again a vacuum system of the same mass and Theorem 1.1 applies to it; the formal +statement of Corollary 1.2 does not refer to the transformation. +-/ + +@[expose] public section + +open scoped InnerProductSpace + +namespace VacuumBellSeparation + +/-! ### A Lorentz transformation taking a spacelike vector to the `𝐞₁` axis -/ + +/-- For every `𝐯 ∈ ℝ³` there is a linear isometry of `ℝ³` taking `𝐯` to `|𝐯| 𝐞₁`: the reflection +in the plane orthogonal to `𝐯 - |𝐯| 𝐞₁` (`Submodule.reflection_sub`). -/ +theorem exists_linearIsometryEquiv_apply_eq_norm_smul_e₁ (v : EuclideanSpace ℝ (Fin 3)) : + ∃ R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3), R v = ‖v‖ • e₁ := by + have h : ‖v‖ = ‖‖v‖ • e₁‖ := by + rw [norm_smul, norm_e₁, mul_one, norm_norm] + exact ⟨_, Submodule.reflection_sub h⟩ + +/-- The boost of rapidity `arsinh (-t / ℓ)` along `𝐞₁`, where `s ≥ 0`, `ℓ > 0` and +`ℓ² = s² - t²`, maps the spacelike vector `(t, s 𝐞₁)` to the purely spatial vector `(0, ℓ 𝐞₁)` +(`sinh η = -t / ℓ`, `cosh η = s / ℓ`). -/ +theorem boost_arsinh_apply {t s ℓ : ℝ} (hs : 0 ≤ s) (hℓ : 0 < ℓ) + (hℓ2 : ℓ ^ 2 = s ^ 2 - t ^ 2) : + boost (Real.arsinh (-t / ℓ)) (t, s • e₁) = (0, ℓ • e₁) := by + have h1 : 1 + (-t / ℓ) ^ 2 = (s / ℓ) ^ 2 := by + have h3 : (s / ℓ) ^ 2 - (-t / ℓ) ^ 2 = (s ^ 2 - t ^ 2) / ℓ ^ 2 := by ring + rw [← hℓ2, div_self (pow_ne_zero 2 hℓ.ne')] at h3 + linarith + have hsinh : Real.sinh (Real.arsinh (-t / ℓ)) = -t / ℓ := Real.sinh_arsinh _ + have hcosh : Real.cosh (Real.arsinh (-t / ℓ)) = s / ℓ := by + rw [Real.cosh_arsinh, h1, Real.sqrt_sq (div_nonneg hs hℓ.le)] + have hin : ⟪e₁, s • e₁⟫_ℝ = s := by + rw [real_inner_smul_right, inner_e₁_self, mul_one] + rw [boost_apply, boostCLM_apply] + refine Prod.ext ?_ ?_ + · change Real.cosh (Real.arsinh (-t / ℓ)) * t + + Real.sinh (Real.arsinh (-t / ℓ)) * ⟪e₁, s • e₁⟫_ℝ = 0 + rw [hin, hsinh, hcosh] + ring + · change s • e₁ + (Real.sinh (Real.arsinh (-t / ℓ)) * t + + (Real.cosh (Real.arsinh (-t / ℓ)) - 1) * ⟪e₁, s • e₁⟫_ℝ) • e₁ = ℓ • e₁ + rw [hin, hsinh, hcosh, ← add_smul] + congr 1 + calc s + (-t / ℓ * t + (s / ℓ - 1) * s) = (s ^ 2 - t ^ 2) / ℓ := by ring + _ = ℓ := by rw [← hℓ2, sq, mul_div_assoc, div_self hℓ.ne', mul_one] + +/-- `F ∘ (Λ₂ ∘ Λ₁) = (F ∘ Λ₂) ∘ Λ₁` for real test functions. -/ +theorem RealTestFunction.compCLE_trans (Λ₁ Λ₂ : Spacetime ≃L[ℝ] Spacetime) + (F : RealTestFunction) : F.compCLE (Λ₁.trans Λ₂) = (F.compCLE Λ₂).compCLE Λ₁ := + Subtype.ext (funext fun _ => rfl) + +/-- If `Λ₁` and `Λ₂` preserve the one-particle inner product `⟨κ_m ·, κ_m ·⟩`, so does their +composition `Λ₂ ∘ Λ₁`. -/ +theorem oneParticleInner_compCLE_trans {m : ℝ} {Λ₁ Λ₂ : Spacetime ≃L[ℝ] Spacetime} + (h₁ : ∀ F G : RealTestFunction, + oneParticleInner m (F.compCLE Λ₁) (G.compCLE Λ₁) = oneParticleInner m F G) + (h₂ : ∀ F G : RealTestFunction, + oneParticleInner m (F.compCLE Λ₂) (G.compCLE Λ₂) = oneParticleInner m F G) + (F G : RealTestFunction) : + oneParticleInner m (F.compCLE (Λ₁.trans Λ₂)) (G.compCLE (Λ₁.trans Λ₂)) = + oneParticleInner m F G := by + rw [RealTestFunction.compCLE_trans, RealTestFunction.compCLE_trans, h₁, h₂] + +/-- **A Lorentz transformation taking a spacelike vector to the positive `𝐞₁` axis.** For a +spacelike vector `a` (`(a⁰)² < |𝐚|²`) let `ℓ = √(|𝐚|² - (a⁰)²) > 0`. The continuous linear +automorphism `Λ` of spacetime given by a spatial reflection `R` with `R 𝐚 = |𝐚| 𝐞₁` followed by +the boost of rapidity `arsinh (-a⁰ / ℓ)` along `𝐞₁` satisfies `Λ a = (0, ℓ 𝐞₁)` and preserves +the one-particle inner product for every `m ≠ 0` (that `Λ` also preserves the Minkowski form +belongs to +the construction; the statement records only what the proof of Corollary 1.2 uses). -/ +theorem exists_lorentz_to_e₁_axis (a : Spacetime) (ha : a.1 ^ 2 < ‖a.2‖ ^ 2) : + ∃ (Λ : Spacetime ≃L[ℝ] Spacetime) (ℓ : ℝ), 0 < ℓ ∧ ℓ = Real.sqrt (‖a.2‖ ^ 2 - a.1 ^ 2) ∧ + Λ a = (0, ℓ • e₁) ∧ + ∀ m : ℝ, m ≠ 0 → ∀ F G : RealTestFunction, + oneParticleInner m (F.compCLE Λ) (G.compCLE Λ) = oneParticleInner m F G := by + obtain ⟨R, hR⟩ := exists_linearIsometryEquiv_apply_eq_norm_smul_e₁ a.2 + have hpos : 0 < ‖a.2‖ ^ 2 - a.1 ^ 2 := sub_pos.2 ha + refine ⟨(spatialRotation R).trans + (boost (Real.arsinh (-a.1 / Real.sqrt (‖a.2‖ ^ 2 - a.1 ^ 2)))), + Real.sqrt (‖a.2‖ ^ 2 - a.1 ^ 2), Real.sqrt_pos.2 hpos, rfl, ?_, fun m hm F G => ?_⟩ + · rw [ContinuousLinearEquiv.trans_apply, spatialRotation_apply, hR] + exact boost_arsinh_apply (norm_nonneg _) (Real.sqrt_pos.2 hpos) (Real.sq_sqrt hpos.le) + · exact oneParticleInner_compCLE_trans (oneParticleInner_spatialRotation m R) + (oneParticleInner_boost hm _) F G + +/-! ### Transport of the vacuum Bell correlation -/ + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The local algebras of the transported system at transformed regions: for +`V' = V.lorentz Λ _`, `𝔄'(Λ O) = 𝔄(Λ⁻¹ Λ O) = 𝔄(O)`. -/ +theorem FreeFieldVacuum.localAlgebra_lorentz_image {m : ℝ} (V : FreeFieldVacuum m H) + (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ F G : RealTestFunction, + oneParticleInner m (F.compCLE Λ) (G.compCLE Λ) = oneParticleInner m F G) + (O : Set Spacetime) : + localAlgebra (V.lorentz Λ hΛ) (Λ '' O) = localAlgebra V O := by + rw [V.localAlgebra_lorentz Λ hΛ, Set.preimage_image_eq O Λ.injective] + +/-- **Covariance of the vacuum Bell correlation.** For the transported system +`V' = V.lorentz Λ _` (same vacuum vector), the vacuum Bell correlation of `𝔄'(Λ O₁)` and +`𝔄'(Λ O₂)` equals that of `𝔄(O₁)` and `𝔄(O₂)`. -/ +theorem FreeFieldVacuum.bellCorrelation_lorentz_image {m : ℝ} (V : FreeFieldVacuum m H) + (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ F G : RealTestFunction, + oneParticleInner m (F.compCLE Λ) (G.compCLE Λ) = oneParticleInner m F G) + (O₁ O₂ : Set Spacetime) : + bellCorrelation (vectorState (V.lorentz Λ hΛ).vacuum (V.lorentz Λ hΛ).vacuum_norm) + (localAlgebra (V.lorentz Λ hΛ) (Λ '' O₁)) (localAlgebra (V.lorentz Λ hΛ) (Λ '' O₂)) = + bellCorrelation (vectorState V.vacuum V.vacuum_norm) (localAlgebra V O₁) + (localAlgebra V O₂) := by + change bellCorrelation (vectorState V.vacuum V.vacuum_norm) + (localAlgebra (V.lorentz Λ hΛ) (Λ '' O₁)) (localAlgebra (V.lorentz Λ hΛ) (Λ '' O₂)) = _ + rw [V.localAlgebra_lorentz_image Λ hΛ O₁, V.localAlgebra_lorentz_image Λ hΛ O₂] + +/-! ### Bounded regions, translations and double cones -/ + +/-- A continuous linear automorphism maps translates to translates: `Λ (O + c) = Λ O + Λ c`. -/ +theorem image_image_add_eq (Λ : Spacetime ≃L[ℝ] Spacetime) (O : Set Spacetime) + (c : Spacetime) : Λ '' ((fun x => x + c) '' O) = (fun x => x + Λ c) '' (Λ '' O) := by + rw [Set.image_image, Set.image_image] + simp only [ContinuousLinearEquiv.map_add] + +/-- Every bounded region of spacetime lies in a double cone `D_ρ = {x : |x⁰| + |𝐱| < ρ}` about +the origin with `ρ > 0` (for the max norm `‖x‖ = max |x⁰| |𝐱|` of `Spacetime`, `‖x‖ ≤ r` gives +`|x⁰| + |𝐱| ≤ 2r < 3r`). -/ +theorem exists_subset_doubleCone_of_isBounded {S : Set Spacetime} + (hS : Bornology.IsBounded S) : ∃ ρ : ℝ, 0 < ρ ∧ S ⊆ doubleCone 0 ρ := by + obtain ⟨r, hr, hb⟩ := hS.exists_pos_norm_le + refine ⟨3 * r, by linarith, fun x hx => ?_⟩ + have h1 : |x.1| ≤ r := by + rw [← Real.norm_eq_abs] + exact (norm_fst_le x).trans (hb x hx) + have h2 : ‖x.2‖ ≤ r := (norm_snd_le x).trans (hb x hx) + change |x.1 - 0| + ‖x.2 - 0‖ < 3 * r + simp only [sub_zero] + linarith + +/-- If `S ⊆ D_ρ`, then the translate `S + c` lies in the translated double cone `D_ρ + c`. -/ +theorem image_add_subset_doubleCone {S : Set Spacetime} {ρ : ℝ} (hS : S ⊆ doubleCone 0 ρ) + (c : Spacetime) : (fun x => x + c) '' S ⊆ doubleCone c ρ := by + rintro _ ⟨x, hx, rfl⟩ + have h : |x.1 - 0| + ‖x.2 - 0‖ < ρ := hS hx + change |x.1 + c.1 - c.1| + ‖x.2 + c.2 - c.2‖ < ρ + simp only [add_sub_cancel_right] + simpa only [sub_zero] using h + +/-! ### Corollary 1.2 -/ + +/-- **Corollary 1.2 from Theorem 1.1** (the manuscript's proof of Corollary 1.2). Fix `m > 0`, +bounded regions `O₁, O₂` and a spacelike `a`. A spatial reflection followed by a boost along +`𝐞₁` (`exists_lorentz_to_e₁_axis`) maps `a` to `(0, ℓ 𝐞₁)` with `ℓ > 0`; it transports every +vacuum system `V` to a vacuum system `V'` of the same mass with the same vacuum vector and +`𝔄'(Λ O) = 𝔄(O)`, and maps `O₂ + t a` to `Λ O₂ + (0, tℓ 𝐞₁)`. The bounded set `Λ O₁ ∪ Λ O₂` lies +in a double cone `D_ρ`, so by isotony the Bell correlation of `𝔄(O₁)` and `𝔄(O₂ + t a)` is at +most `β_m(ρ, tℓ)` of `V'`, which equals `1` by Theorem 1.1 as soon as `C_* ρ ≤ tℓ`, i.e. for +`t ≥ T₀ = C_* ρ / ℓ`; `T₀` depends only on `O₁, O₂, a` (not on `m`, the Hilbert space or `V`). +The lower bound `1` holds for every pair of algebras. -/ +theorem corollary_1_2_of_theorem_1_1 (h : Theorem_1_1) : Corollary_1_2 := by + obtain ⟨C, -, hC⟩ := h + intro m hm O₁ O₂ hO₁ hO₂ a ha + obtain ⟨Λ, ℓ, hℓ, -, hΛa, hΛ⟩ := exists_lorentz_to_e₁_axis a ha + obtain ⟨ρ, hρ, hsub⟩ := exists_subset_doubleCone_of_isBounded + ((Λ.lipschitzWith.isBounded_image hO₁).union (Λ.lipschitzWith.isBounded_image hO₂)) + refine ⟨C * ρ / ℓ, ?_⟩ + intro t ht H _ _ _ V + have hΛm := hΛ m hm.ne' + have hL : C * ρ ≤ t * ℓ := (div_le_iff₀ hℓ).1 ht + have hc : Λ (t • a) = (0, (t * ℓ) • e₁) := by + rw [ContinuousLinearEquiv.map_smul, hΛa] + refine Prod.ext ?_ ?_ + · change t • (0 : ℝ) = 0 + exact smul_zero t + · change t • ℓ • e₁ = (t * ℓ) • e₁ + exact smul_smul t ℓ e₁ + have h₁ : Λ '' O₁ ⊆ doubleCone 0 ρ := fun x hx => hsub (Or.inl hx) + have h₂' : Λ '' O₂ ⊆ doubleCone 0 ρ := fun x hx => hsub (Or.inr hx) + have h₂ : Λ '' ((fun x => x + t • a) '' O₂) ⊆ doubleCone (0, (t * ℓ) • e₁) ρ := by + rw [image_image_add_eq Λ O₂ (t • a), hc] + exact image_add_subset_doubleCone h₂' _ + have hle : bellCorrelation + (vectorState (V.lorentz Λ hΛm).vacuum (V.lorentz Λ hΛm).vacuum_norm) + (localAlgebra (V.lorentz Λ hΛm) (Λ '' O₁)) + (localAlgebra (V.lorentz Λ hΛm) (Λ '' ((fun x => x + t • a) '' O₂))) ≤ + freeFieldBell (V.lorentz Λ hΛm) ρ (t * ℓ) := + bellCorrelation_mono _ (localAlgebra_mono (V.lorentz Λ hΛm) h₁) + (localAlgebra_mono (V.lorentz Λ hΛm) h₂) + rw [V.bellCorrelation_lorentz_image Λ hΛm] at hle + exact le_antisymm (hle.trans_eq (hC m ρ (t * ℓ) hm hρ hL H (V.lorentz Λ hΛm))) + (one_le_bellCorrelation _ _ _) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CutoffFourierIntegrability.lean b/LeanPool/VacuumBellSeparation/FreeField/CutoffFourierIntegrability.lean new file mode 100644 index 0000000000..40a0404428 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CutoffFourierIntegrability.lean @@ -0,0 +1,135 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CompactParameterContinuity + +/-! +# Genuine Banach integrability of the cutoff Fourier kernel + +Schwartz decay of the momentum test function controls the polynomial bounds +of every weighted-derivative coordinate. Thus the finite Banach-valued kernel +is Bochner integrable, and the actual distribution evaluation is integrable +after scalar multiplication by the momentum test function. The identification +of this integral with the Fourier transform is a separate step. +-/ + +@[expose] public section + +open MeasureTheory +open scoped SchwartzMap BoundedContinuousFunction + + +noncomputable section + +namespace VacuumBellSeparation + +/-- The canonical `ContinuousENorm (∀ i, E i)` instance used in the construction. -/ +abbrev finitePiBanachContinuousENorm + {ι : Type*} [Fintype ι] {E : ι → Type*} [∀ i, NormedAddCommGroup (E i)] : + ContinuousENorm (∀ i, E i) := inferInstance + +/-- Continuity of the extended norm on the finite family of derivative spaces. -/ +local instance schwartzDerivativeContinuousENorm (s : Finset (ℕ × ℕ)) : + ContinuousENorm (SchwartzDerivativeBanach s) := + finitePiBanachContinuousENorm (ι := s) + (E := fun i : s => EuclideanSpace ℝ (Fin 3) →ᵇ + ContinuousMultilinearMap ℝ (fun _ : Fin i.val.2 => EuclideanSpace ℝ (Fin 3)) ℂ) + +/-- The canonical `NormedSpace ℂ (∀ i, E i)` instance used in the construction. -/ +abbrev finitePiBanachNormedSpace + {ι : Type*} [Fintype ι] {E : ι → Type*} + [∀ i, NormedAddCommGroup (E i)] [∀ i, NormedSpace ℂ (E i)] : + NormedSpace ℂ (∀ i, E i) := inferInstance + +/-- Complex normed-space structure on the finite family of derivatives. -/ +local instance schwartzDerivativeComplexNormedSpace (s : Finset (ℕ × ℕ)) : + NormedSpace ℂ (SchwartzDerivativeBanach s) := + finitePiBanachNormedSpace (ι := s) + (E := fun i : s => EuclideanSpace ℝ (Fin 3) →ᵇ + ContinuousMultilinearMap ℝ (fun _ : Fin i.val.2 => EuclideanSpace ℝ (Fin 3)) ℂ) + +/-- Cutoff Fourier seminorm bound. -/ +noncomputable def cutoffFourierSeminormBound + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (k j : ℕ) + (p : EuclideanSpace ℝ (Fin 3)) : ℝ := + ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * + ((2 * Real.pi * ‖innerSL ℝ (E := EuclideanSpace ℝ (Fin 3))‖) ^ i * ‖p‖ ^ i) * + SchwartzMap.seminorm ℂ k (j - i) χ + +theorem cutoffFourierSeminormBound_nonneg + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (k j : ℕ) + (p : EuclideanSpace ℝ (Fin 3)) : 0 ≤ cutoffFourierSeminormBound χ k j p := by + unfold cutoffFourierSeminormBound + positivity + +theorem integrable_norm_mul_cutoffFourierSeminormBound + (ψ χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (k j : ℕ) : + Integrable (fun p => ‖ψ p‖ * cutoffFourierSeminormBound χ k j p) := by + simp only [cutoffFourierSeminormBound, Finset.mul_sum] + apply integrable_finsetSum + intro i hi + have h := (ψ.integrable_pow_mul volume i).const_mul + ((j.choose i : ℝ) * + (2 * Real.pi * ‖innerSL ℝ (E := EuclideanSpace ℝ (Fin 3))‖) ^ i * + SchwartzMap.seminorm ℂ k (j - i) χ) + convert h using 1 + funext p + ring + +theorem norm_schwartzDerivativeMap_cutoffFourierKernel_le + (s : Finset (ℕ × ℕ)) (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : + ‖schwartzDerivativeMap s (cutoffFourierKernel χ p)‖ ≤ + ∑ i ∈ s, cutoffFourierSeminormBound χ i.1 i.2 p := by + apply (pi_norm_le_iff_of_nonneg (Finset.sum_nonneg fun i hi => + cutoffFourierSeminormBound_nonneg χ i.1 i.2 p)).mpr + intro i + change ‖schwartzWeightedDerivative i.val.1 i.val.2 (cutoffFourierKernel χ p)‖ ≤ _ + rw [norm_schwartzWeightedDerivative] + exact (seminorm_cutoffFourierKernel_le χ p i.val.1 i.val.2).trans + (Finset.single_le_sum (fun a ha => cutoffFourierSeminormBound_nonneg χ a.1 a.2 p) i.property) + +/-- The integral lives in an actual complete normed vector space. -/ +theorem integrable_schwartzDerivativeMap_cutoffFourierKernel + (s : Finset (ℕ × ℕ)) + (ψ χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) : + Integrable (fun p => ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) := by + classical + let _ : SecondCountableTopologyEither (EuclideanSpace ℝ (Fin 3)) + (SchwartzDerivativeBanach s) := secondCountableTopologyEither_of_left _ _ + have hmajorant : Integrable (fun p => + ∑ i ∈ s, ‖ψ p‖ * cutoffFourierSeminormBound χ i.1 i.2 p) := + integrable_finsetSum s (fun i hi => + integrable_norm_mul_cutoffFourierSeminormBound ψ χ i.1 i.2) + apply hmajorant.mono' + (f := fun p => ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) + ((ψ.continuous.smul + (continuous_schwartzDerivativeMap_cutoffFourierKernel s χ hχ)).aestronglyMeasurable) + exact Filter.Eventually.of_forall fun p => by + rw [← Finset.mul_sum] + calc + ‖ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)‖ ≤ + ‖ψ p‖ * ‖schwartzDerivativeMap s (cutoffFourierKernel χ p)‖ := + norm_smul_le (ψ p) (schwartzDerivativeMap s (cutoffFourierKernel χ p)) + _ ≤ ‖ψ p‖ * ∑ i ∈ s, cutoffFourierSeminormBound χ i.1 i.2 p := + mul_le_mul_of_nonneg_left + (norm_schwartzDerivativeMap_cutoffFourierKernel_le s χ p) (norm_nonneg _) + +/-- The actual scalar distributional kernel pairing is absolutely integrable. -/ +theorem integrable_distribution_cutoffFourierKernel + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (ψ χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) : + Integrable (fun p => ψ p * T (cutoffFourierKernel χ p)) := by + obtain ⟨s, L, hL⟩ := temperedDistribution_banach_factorization T + have h : Integrable (fun p => L (ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p))) := + ContinuousLinearMap.integrable_comp (μ := volume) + (φ := fun p => ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) L + (integrable_schwartzDerivativeMap_cutoffFourierKernel s ψ χ hχ) + simpa only [Function.comp_def, map_smul, hL, smul_eq_mul] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CutoffFourierIntegral.lean b/LeanPool/VacuumBellSeparation/FreeField/CutoffFourierIntegral.lean new file mode 100644 index 0000000000..ad59dd0936 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CutoffFourierIntegral.lean @@ -0,0 +1,187 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CutoffFourierIntegrability +public import LeanPool.VacuumBellSeparation.FreeField.IteratedDerivativeIntegral + +/-! +# Identification of the actual cutoff Fourier integral + +Dominated differentiation identifies every weighted-derivative coordinate of +the Banach integral with the corresponding coordinate of `cutoffSchwartzFourier χ ψ`. The +actual Banach factorization of a tempered distribution then justifies moving +that distribution through the integral. This is an identity for the existing +Schwartz Fourier transform and the existing distribution, not a new model. +-/ + +@[expose] public section + +open MeasureTheory Filter +open scoped SchwartzMap FourierTransform BoundedContinuousFunction + + +noncomputable section + +namespace VacuumBellSeparation + +/-- The canonical `ContinuousENorm (∀ i, E i)` instance used in the construction. -/ +abbrev cutoffIntegralFinitePiContinuousENorm + {ι : Type*} [Fintype ι] {E : ι → Type*} [∀ i, NormedAddCommGroup (E i)] : + ContinuousENorm (∀ i, E i) := inferInstance + +/-- Continuity of the extended norm in the space used to integrate the derivatives. -/ +local instance cutoffDerivativeContinuousENorm (s : Finset (ℕ × ℕ)) : + ContinuousENorm (SchwartzDerivativeBanach s) := + cutoffIntegralFinitePiContinuousENorm (ι := s) + (E := fun i : s => EuclideanSpace ℝ (Fin 3) →ᵇ + ContinuousMultilinearMap ℝ (fun _ : Fin i.val.2 => EuclideanSpace ℝ (Fin 3)) ℂ) + +/-- The canonical `NormedSpace ℂ (∀ i, E i)` instance used in the construction. -/ +abbrev cutoffIntegralFinitePiNormedSpace + {ι : Type*} [Fintype ι] {E : ι → Type*} + [∀ i, NormedAddCommGroup (E i)] [∀ i, NormedSpace ℂ (E i)] : + NormedSpace ℂ (∀ i, E i) := inferInstance + +/-- Complex normed-space structure used by the derivative-valued Fourier integral. -/ +local instance cutoffDerivativeComplexNormedSpace (s : Finset (ℕ × ℕ)) : + NormedSpace ℂ (SchwartzDerivativeBanach s) := + cutoffIntegralFinitePiNormedSpace (ι := s) + (E := fun i : s => EuclideanSpace ℝ (Fin 3) →ᵇ + ContinuousMultilinearMap ℝ (fun _ : Fin i.val.2 => EuclideanSpace ℝ (Fin 3)) ℂ) + + +/-- The actual Schwartz product of the cutoff with the Fourier transform. -/ +noncomputable def cutoffSchwartzFourier + (χ ψ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + SchwartzMap.smulLeftCLM ℂ χ (𝓕 ψ) + +@[simp] theorem cutoffSchwartzFourier_apply + (χ ψ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (x : EuclideanSpace ℝ (Fin 3)) : + cutoffSchwartzFourier χ ψ x = χ x * (𝓕 ψ) x := + SchwartzMap.smulLeftCLM_apply_apply χ.hasTemperateGrowth (𝓕 ψ) x + +theorem continuous_iteratedFDeriv_cutoffFourierKernel + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) + (j : ℕ) (x : EuclideanSpace ℝ (Fin 3)) : + Continuous (fun p => iteratedFDeriv ℝ j (cutoffFourierKernel χ p) x) := by + have h := (BoundedContinuousFunction.evalCLM ℂ x).continuous.comp + (continuous_cutoffFourierKernel_weightedDerivative χ hχ 0 j) + simpa only [Function.comp_def, BoundedContinuousFunction.evalCLM_apply, + schwartzWeightedDerivative_apply, + pow_zero, one_smul] using h + +theorem integral_cutoffFourierKernel_apply + (ψ χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (x : EuclideanSpace ℝ (Fin 3)) : + (∫ p, ψ p • cutoffFourierKernel χ p x) = (cutoffSchwartzFourier χ ψ) x := by + rw [cutoffSchwartzFourier_apply] + change (∫ p, ψ p * cutoffFourierKernel χ p x) = χ x * (𝓕 ψ) x + rw [SchwartzMap.fourier_coe, Real.fourier_eq, ← integral_const_mul] + apply integral_congr_ae + exact Eventually.of_forall fun p => by + simp only [cutoffFourierKernel_apply, spatialFourierCharacter, Circle.smul_def, smul_eq_mul] + ring + +/-- Actual differentiation under the cutoff Fourier integral at every order. -/ +theorem iteratedFDeriv_cutoffFourier_integral + (ψ χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) + (j : ℕ) (x : EuclideanSpace ℝ (Fin 3)) : + iteratedFDeriv ℝ j (cutoffSchwartzFourier χ ψ) x = + ∫ p, ψ p • iteratedFDeriv ℝ j (cutoffFourierKernel χ p) x := by + let f := fun p y : EuclideanSpace ℝ (Fin 3) => ψ p • cutoffFourierKernel χ p y + have hf (p : EuclideanSpace ℝ (Fin 3)) : ContDiff ℝ (⊤ : ℕ∞) (f p) := + (cutoffFourierKernel χ p).smooth ⊤ |>.const_smul (ψ p) + have hfd (p y : EuclideanSpace ℝ (Fin 3)) (n : ℕ) : + iteratedFDeriv ℝ n (f p) y = ψ p • iteratedFDeriv ℝ n (cutoffFourierKernel χ p) y := + iteratedFDeriv_const_smul_apply' ((cutoffFourierKernel χ p).smooth n).contDiffAt + have hmeas (n : ℕ) (y : EuclideanSpace ℝ (Fin 3)) : + AEStronglyMeasurable (fun p => iteratedFDeriv ℝ n (f p) y) volume := by + simp_rw [hfd] + exact (ψ.continuous.smul (continuous_iteratedFDeriv_cutoffFourierKernel χ hχ n + y)).aestronglyMeasurable + let b := fun n p => ‖ψ p‖ * cutoffFourierSeminormBound χ 0 n p + have hb (n : ℕ) (p y : EuclideanSpace ℝ (Fin 3)) : + ‖iteratedFDeriv ℝ n (f p) y‖ ≤ b n p := by + rw [hfd, norm_smul] + exact mul_le_mul_of_nonneg_left + (((cutoffFourierKernel χ p).norm_iteratedFDeriv_le_seminorm ℂ n y).trans + (seminorm_cutoffFourierKernel_le χ p 0 n)) (norm_nonneg _) + have h := iteratedFDeriv_integral_of_global_bounds volume f hf hmeas b hb + (fun n => integrable_norm_mul_cutoffFourierSeminormBound ψ χ 0 n) j x + have heq : (fun y => ∫ p, f p y) = (cutoffSchwartzFourier χ ψ) := + funext (integral_cutoffFourierKernel_apply ψ χ) + simpa only [heq, hfd] using h + +/-- The genuine Banach integral equals the weighted derivatives of the actual +Schwartz cutoff Fourier transform. -/ +theorem integral_schwartzDerivativeMap_cutoffFourierKernel + (s : Finset (ℕ × ℕ)) + (ψ χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) : + (∫ p, ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) = + schwartzDerivativeMap s (cutoffSchwartzFourier χ ψ) := by + have hint : Integrable (fun p : EuclideanSpace ℝ (Fin 3) => + ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) volume := + integrable_schwartzDerivativeMap_cutoffFourierKernel s ψ χ hχ + funext i + apply BoundedContinuousFunction.ext + intro x + let E : SchwartzDerivativeBanach s →L[ℂ] + ContinuousMultilinearMap ℝ (fun _ : Fin i.val.2 => EuclideanSpace ℝ (Fin 3)) ℂ := + (BoundedContinuousFunction.evalCLM ℂ x).comp + (ContinuousLinearMap.proj (R := ℂ) (φ := fun a : s => + BoundedContinuousFunction (EuclideanSpace ℝ (Fin 3)) (ContinuousMultilinearMap ℝ + (fun _ : Fin a.val.2 => EuclideanSpace ℝ (Fin 3)) ℂ)) i) + have h := ContinuousLinearMap.integral_comp_comm (μ := volume) + (E := SchwartzDerivativeBanach s) + (φ := fun p : EuclideanSpace ℝ (Fin 3) => + ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) E hint + calc + _ = ∫ p, ‖x‖ ^ i.val.1 • + (ψ p • iteratedFDeriv ℝ i.val.2 (cutoffFourierKernel χ p) x) := by + change E (∫ p, ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) = _ + rw [← h] + apply integral_congr_ae + exact Eventually.of_forall fun p => by + change E (ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) = + ‖x‖ ^ i.val.1 • (ψ p • iteratedFDeriv ℝ i.val.2 (cutoffFourierKernel χ p) x) + rw [map_smul] + change ψ p • (‖x‖ ^ i.val.1 • + iteratedFDeriv ℝ i.val.2 (cutoffFourierKernel χ p) x) = _ + exact smul_comm _ _ _ + _ = ‖x‖ ^ i.val.1 • + (∫ p, ψ p • iteratedFDeriv ℝ i.val.2 (cutoffFourierKernel χ p) x) := integral_smul _ _ + _ = _ := by + rw [← iteratedFDeriv_cutoffFourier_integral ψ χ hχ] + rfl + +/-- Actual distribution/Fourier interchange through the proved Banach integral identity. -/ +theorem distribution_cutoffFourier_integral + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (ψ χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (hχ : HasCompactSupport χ) : + T (cutoffSchwartzFourier χ ψ) = ∫ p, ψ p * T (cutoffFourierKernel χ p) := by + obtain ⟨s, L, hL⟩ := temperedDistribution_banach_factorization T + have hint : Integrable (fun p : EuclideanSpace ℝ (Fin 3) => + ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) volume := + integrable_schwartzDerivativeMap_cutoffFourierKernel s ψ χ hχ + calc + _ = L (schwartzDerivativeMap s (cutoffSchwartzFourier χ ψ)) := (hL _).symm + _ = L (∫ p, ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) := by + rw [integral_schwartzDerivativeMap_cutoffFourierKernel s ψ χ hχ] + _ = ∫ p, L (ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) := + (ContinuousLinearMap.integral_comp_comm (μ := volume) + (E := SchwartzDerivativeBanach s) + (φ := fun p : EuclideanSpace ℝ (Fin 3) => + ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) L hint).symm + _ = _ := integral_congr_ae (Eventually.of_forall fun p => by + change L (ψ p • schwartzDerivativeMap s (cutoffFourierKernel χ p)) = + ψ p * T (cutoffFourierKernel χ p) + rw [map_smul, hL, smul_eq_mul]) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/CutoffFourierKernel.lean b/LeanPool/VacuumBellSeparation/FreeField/CutoffFourierKernel.lean new file mode 100644 index 0000000000..c6930dd2c6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/CutoffFourierKernel.lean @@ -0,0 +1,134 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzBanachFactorization +public import Mathlib.Analysis.Fourier.FourierTransformDeriv + +/-! +# Actual oscillatory kernels and polynomial Schwartz bounds + +These kernels use Mathlib's normalized Fourier character, with the negative +sign of the forward transform. Their derivatives are derived from the actual +Fourier integral against a Dirac measure. The resulting polynomial frequency +bounds are appropriate for integrating against arbitrary Schwartz functions; +no exponential decay of a Schwartz function is assumed. +-/ + +@[expose] public section + +open MeasureTheory +open scoped SchwartzMap FourierTransform InnerProductSpace + +namespace VacuumBellSeparation + +/-- Spatial Fourier character defined as `𝐞 (-⟪p, x⟫_ℝ)`. -/ +noncomputable def spatialFourierCharacter + (p x : EuclideanSpace ℝ (Fin 3)) : ℂ := 𝐞 (-⟪p, x⟫_ℝ) + +@[simp] theorem norm_spatialFourierCharacter (p x : EuclideanSpace ℝ (Fin 3)) : + ‖spatialFourierCharacter p x‖ = 1 := by + simp [spatialFourierCharacter] + +theorem hasTemperateGrowth_spatialFourierCharacter (p : EuclideanSpace ℝ (Fin 3)) : + Function.HasTemperateGrowth (spatialFourierCharacter p) := by + have h : Function.HasTemperateGrowth + (fun x : EuclideanSpace ℝ (Fin 3) => -2 * Real.pi * ⟪p, x⟫_ℝ) := by fun_prop + convert Complex.hasTemperateGrowth_exp_mul_I.comp h using 1 + funext x + simp only [Function.comp_def, spatialFourierCharacter, Real.fourierChar_apply] + congr 1 + push_cast + ring + +theorem iteratedFDeriv_spatialFourierCharacter (p x : EuclideanSpace ℝ (Fin 3)) (j : ℕ) : + iteratedFDeriv ℝ j (spatialFourierCharacter p) x = + (𝐞 (-⟪p, x⟫_ℝ)) • + VectorFourier.fourierPowSMulRight (innerSL ℝ) + (fun _ : EuclideanSpace ℝ (Fin 3) => (1 : ℂ)) p j := by + have h := congrFun (VectorFourier.iteratedFDeriv_fourierIntegral (innerSL ℝ) + (μ := Measure.dirac p) (f := fun _ : EuclideanSpace ℝ (Fin 3) => (1 : ℂ)) + (N := (⊤ : ℕ∞)) + (fun _ _ => integrable_dirac (by simp)) aestronglyMeasurable_const + (n := j) le_top) x + have he : VectorFourier.fourierIntegral 𝐞 (Measure.dirac p) + (innerSL ℝ).toLinearMap₁₂ (fun _ : EuclideanSpace ℝ (Fin 3) => (1 : ℂ)) = + spatialFourierCharacter p := by + funext y + simp [VectorFourier.fourierIntegral, Circle.smul_def, spatialFourierCharacter] + rw [he] at h + simp only [VectorFourier.fourierIntegral, integral_dirac, Circle.smul_def] at h + convert h using 1; rfl + +theorem norm_iteratedFDeriv_spatialFourierCharacter_le + (p x : EuclideanSpace ℝ (Fin 3)) (j : ℕ) : + ‖iteratedFDeriv ℝ j (spatialFourierCharacter p) x‖ ≤ + (2 * Real.pi * ‖innerSL ℝ (E := EuclideanSpace ℝ (Fin 3))‖) ^ j * ‖p‖ ^ j := by + rw [iteratedFDeriv_spatialFourierCharacter, Circle.norm_smul] + simpa only [norm_one, mul_one] using + VectorFourier.norm_fourierPowSMulRight_le (innerSL ℝ) + (fun _ : EuclideanSpace ℝ (Fin 3) => (1 : ℂ)) p j + +/-- Actual multiplication by the normalized forward Fourier character. -/ +noncomputable def cutoffFourierKernel + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + SchwartzMap.smulLeftCLM ℂ (spatialFourierCharacter p) χ + +@[simp] theorem cutoffFourierKernel_apply + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (p x : EuclideanSpace ℝ (Fin 3)) : + cutoffFourierKernel χ p x = spatialFourierCharacter p x * χ x := by + exact SchwartzMap.smulLeftCLM_apply_apply (hasTemperateGrowth_spatialFourierCharacter p) χ x + +theorem tsupport_cutoffFourierKernel_subset + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : tsupport (cutoffFourierKernel χ p) ⊆ tsupport χ := by + have he : (cutoffFourierKernel χ p : EuclideanSpace ℝ (Fin 3) → ℂ) = + fun x => spatialFourierCharacter p x * χ x := funext (cutoffFourierKernel_apply χ p) + rw [he] + exact tsupport_mul_subset_right + +/-- Every kernel seminorm has polynomial, rather than exponential, frequency growth. -/ +theorem seminorm_cutoffFourierKernel_le + (χ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (p : EuclideanSpace ℝ (Fin 3)) (k j : ℕ) : + SchwartzMap.seminorm ℂ k j (cutoffFourierKernel χ p) ≤ + ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * + ((2 * Real.pi * ‖innerSL ℝ (E := EuclideanSpace ℝ (Fin 3))‖) ^ i * ‖p‖ ^ i) * + SchwartzMap.seminorm ℂ k (j - i) χ := by + apply SchwartzMap.seminorm_le_bound + · positivity + · intro x + have h := norm_iteratedFDeriv_smul_le + (hasTemperateGrowth_spatialFourierCharacter p).1 (χ.smooth ⊤) x (n := j) + (by exact_mod_cast (show (j : ℕ∞) ≤ ⊤ from le_top)) + have heq : (fun y => spatialFourierCharacter p y • χ y) = cutoffFourierKernel χ p := by + funext y + exact (cutoffFourierKernel_apply χ p y).symm + rw [heq] at h + calc + _ ≤ ‖x‖ ^ k * ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * + ‖iteratedFDeriv ℝ i (spatialFourierCharacter p) x‖ * + ‖iteratedFDeriv ℝ (j - i) χ x‖ := + mul_le_mul_of_nonneg_left h (by positivity) + _ = ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * + ‖iteratedFDeriv ℝ i (spatialFourierCharacter p) x‖ * + (‖x‖ ^ k * ‖iteratedFDeriv ℝ (j - i) χ x‖) := by + rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro i hi + ring + _ ≤ _ := by + apply Finset.sum_le_sum + intro i hi + exact mul_le_mul + (mul_le_mul_of_nonneg_left + (norm_iteratedFDeriv_spatialFourierCharacter_le p x i) (by positivity)) + (χ.le_seminorm ℂ k (j - i) x) (by positivity) (by positivity) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/DampedShellMoments.lean b/LeanPool/VacuumBellSeparation/FreeField/DampedShellMoments.lean new file mode 100644 index 0000000000..cee060952c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/DampedShellMoments.lean @@ -0,0 +1,118 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMassShellBound +public import LeanPool.VacuumBellSeparation.FreeField.MassShellDistribution +public import LeanPool.VacuumBellSeparation.FreeField.Lorentz +public import Mathlib.MeasureTheory.Constructions.HaarToSphere +public import Mathlib.MeasureTheory.Integral.Asymptotics + +/-! +# Actual exponential damping and all energy moments on the physical mass shell + +The radial Haar integrability theorem and the genuine Gamma-integral estimate +supply exponential norm integrability. The physical measure is dominated by +volume, and massive energy grows at infinity. Thus polynomial energy moments +of every exponentially damped physical L² vector are genuinely integrable. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology Asymptotics +open scoped ComplexConjugate + +theorem integrable_spatial_exp_neg_norm {a : ℝ} (ha : 0 < a) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => Real.exp (-a * ‖p‖)) := by + apply (integrable_fun_norm_addHaar (volume : Measure (EuclideanSpace ℝ (Fin 3))) + (f := fun r : ℝ => Real.exp (-a * r))).mpr + simpa [finrank_euclideanSpace, smul_eq_mul, Real.rpow_two, Real.rpow_one] using + integrableOn_rpow_mul_exp_neg_mul_rpow (p := 1) (s := 2) (b := a) + (by norm_num) (by norm_num) ha + +theorem integrable_massShell_exp_neg_energy {m a : ℝ} (hm : 0 < m) (ha : 0 < a) : + Integrable (fun p => Real.exp (-a * dispersion m p)) (oneParticleMeasure m) := by + have hvol : Integrable (fun p => Real.exp (-a * dispersion m p)) := by + apply (integrable_spatial_exp_neg_norm ha).mono' + · exact ((continuous_const.mul (continuous_dispersion m)).rexp).aestronglyMeasurable + · exact Eventually.of_forall fun p => by + rw [Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] + apply Real.exp_le_exp.mpr + exact mul_le_mul_of_nonpos_left (norm_le_dispersion m p) (by linarith) + exact (hvol.smul_measure + (c := (Real.toNNReal (1 / (2 * (2 * Real.pi) ^ 3 * m)) : ENNReal)) (by simp)).mono_measure + (oneParticleMeasure_le_volume hm) + +theorem tendsto_dispersion_cocompact (m : ℝ) : + Tendsto (dispersion m) (cocompact (EuclideanSpace ℝ (Fin 3))) atTop := + tendsto_atTop_mono (norm_le_dispersion m) tendsto_norm_cocompact_atTop + +theorem integrable_massShell_energy_pow_exp {m a : ℝ} (hm : 0 < m) (ha : 0 < a) + (k : ℕ) : + Integrable (fun p => dispersion m p ^ k * Real.exp (-a * dispersion m p)) + (oneParticleMeasure m) := by + let := oneParticleMeasure_isLocallyFinite hm + have hbig : (fun p => dispersion m p ^ k * Real.exp (-a * dispersion m p)) + =O[cocompact (EuclideanSpace ℝ (Fin 3))] + (fun p => Real.exp (-(a / 2) * dispersion m p)) := by + simpa only [Function.comp_def, Real.rpow_natCast, mul_comm] using + (isLittleO_exp_mul_rpow_of_lt (k : ℝ) (a := -a) (b := -(a / 2)) + (by linarith)).isBigO.comp_tendsto (tendsto_dispersion_cocompact m) + have hc : Continuous + (fun p => dispersion m p ^ k * Real.exp (-a * dispersion m p)) := + ((continuous_dispersion m).pow k).mul ((continuous_const.mul (continuous_dispersion m)).rexp) + exact hc.locallyIntegrable.integrable_of_isBigO_cocompact hbig + ((integrable_massShell_exp_neg_energy hm (half_pos ha)).integrableAtFilter _) + +theorem memLp_massShell_energy_pow_exp {m a : ℝ} (hm : 0 < m) (ha : 0 < a) + (k : ℕ) : + MemLp (fun p => dispersion m p ^ k * Real.exp (-a * dispersion m p)) 2 + (oneParticleMeasure m) := by + have hc : Continuous + (fun p => dispersion m p ^ k * Real.exp (-a * dispersion m p)) := + ((continuous_dispersion m).pow k).mul ((continuous_const.mul (continuous_dispersion m)).rexp) + rw [memLp_two_iff_integrable_sq_norm hc.aestronglyMeasurable] + apply (integrable_massShell_energy_pow_exp hm (show 0 < 2 * a by positivity) (2 * k)).congr + exact Eventually.of_forall fun p => by + dsimp only + rw [Real.norm_eq_abs, sq_abs, mul_pow, ← pow_mul] + have hexp : Real.exp (-(2 * a) * dispersion m p) = + Real.exp (-a * dispersion m p) ^ 2 := by + rw [pow_two, ← Real.exp_add] + congr 1 + ring + rw [hexp] + ring + +/-- Damped shell amplitude given by `(Real.exp (-a * dispersion m p) : ℂ) * conj (ψ p)`. -/ +noncomputable def dampedShellAmplitude {m : ℝ} (a : ℝ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + (Real.exp (-a * dispersion m p) : ℂ) * conj (ψ p) + +theorem integrable_dampedShellAmplitude_moment {m a : ℝ} + (hm : 0 < m) (ha : 0 < a) (ψ : Lp ℂ 2 (oneParticleMeasure m)) (k : ℕ) : + Integrable (fun p => dispersion m p ^ k * ‖dampedShellAmplitude a ψ p‖) + (oneParticleMeasure m) := by + apply ((memLp_massShell_energy_pow_exp hm ha k).integrable_mul (Lp.memLp ψ).norm).congr + exact Eventually.of_forall fun p => by + simp only [Pi.mul_apply, dampedShellAmplitude, norm_mul, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos (Real.exp_pos _), Complex.norm_conj] + ring + +theorem integrable_dampedShellAmplitude {m a : ℝ} + (hm : 0 < m) (ha : 0 < a) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + Integrable (dampedShellAmplitude a ψ) (oneParticleMeasure m) := by + have hnorm : Integrable (fun p => ‖dampedShellAmplitude a ψ p‖) (oneParticleMeasure m) := by + simpa only [pow_zero, one_mul] using integrable_dampedShellAmplitude_moment hm ha ψ 0 + apply (integrable_norm_iff ?_).mp hnorm + have hc : Continuous (fun p => (Real.exp (-a * dispersion m p) : ℂ)) := + Complex.continuous_ofReal.comp ((continuous_const.mul (continuous_dispersion m)).rexp) + exact hc.aestronglyMeasurable.mul (Lp.memLp ψ).aestronglyMeasurable.star + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialAnalytic.lean b/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialAnalytic.lean new file mode 100644 index 0000000000..3b34a3daad --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialAnalytic.lean @@ -0,0 +1,104 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.DampedSpatialKernel +public import Mathlib.Analysis.Calculus.ParametricIntegral +public import Mathlib.Analysis.Complex.CauchyIntegral + +/-! +# Holomorphy of actual damped spatial Fourier integrals on affine strips + +The integral differentiates by the proved half-damping majorant and actual +integrability of every required physical energy moment. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Set +open scoped Topology ComplexConjugate +open scoped InnerProductSpace + +/-- Damped spatial slice given by `∫ p, dampedSpatialKernel m a x v z p * conj (ψ p) +∂oneParticleMeasure m`. -/ +noncomputable def dampedSpatialSlice {m : ℝ} (a : ℝ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) (x v : EuclideanSpace ℝ (Fin 3)) (z : ℂ) : ℂ := + ∫ p, dampedSpatialKernel m a x v z p * conj (ψ p) ∂oneParticleMeasure m + +theorem integrable_dampedSpatialSlice_integrand {m a b : ℝ} + (hm : 0 < m) (ha : 0 < a) (x v : EuclideanSpace ℝ (Fin 3)) + (hbv : b * ‖v‖ ≤ a / 2) (ψ : Lp ℂ 2 (oneParticleMeasure m)) + {z : ℂ} (hz : |z.im| ≤ b) : + Integrable (fun p => dampedSpatialKernel m a x v z p * conj (ψ p)) + (oneParticleMeasure m) := by + apply (integrable_dampedShellAmplitude hm (half_pos ha) ψ).norm.mono' + · exact (continuous_dampedSpatialKernel m a x v z).aestronglyMeasurable.mul + (Lp.memLp ψ).aestronglyMeasurable.star + · exact Eventually.of_forall (norm_dampedSpatialKernel_mul_le hm x v hbv ψ hz) + +theorem hasDerivAt_dampedSpatialSlice {m a b : ℝ} + (hm : 0 < m) (ha : 0 < a) (x v : EuclideanSpace ℝ (Fin 3)) + (hbv : b * ‖v‖ ≤ a / 2) (ψ : Lp ℂ 2 (oneParticleMeasure m)) + {z : ℂ} (hz : |z.im| < b) : + HasDerivAt (dampedSpatialSlice a ψ x v) + (∫ p, dampedSpatialKernel m a x v z p * (-Complex.I * (⟪p, v⟫_ℝ : ℂ)) * + conj (ψ p) ∂oneParticleMeasure m) z := by + have hb : Integrable + (fun p => ‖v‖ * (dispersion m p * ‖dampedShellAmplitude (a / 2) ψ p‖)) + (oneParticleMeasure m) := by + simpa only [pow_one] using + (integrable_dampedShellAmplitude_moment hm (half_pos ha) ψ 1).const_mul ‖v‖ + obtain ⟨_, hd⟩ := hasDerivAt_integral_of_dominated_loc_of_deriv_le + (μ := oneParticleMeasure m) + (F := fun w p => dampedSpatialKernel m a x v w p * conj (ψ p)) + (F' := fun w p => dampedSpatialKernel m a x v w p * + (-Complex.I * (⟪p, v⟫_ℝ : ℂ)) * conj (ψ p)) + (bound := fun p => ‖v‖ * (dispersion m p * ‖dampedShellAmplitude (a / 2) ψ p‖)) + ((isOpen_lt (continuous_abs.comp Complex.continuous_im) continuous_const).mem_nhds hz) + (Eventually.of_forall fun w => + (continuous_dampedSpatialKernel m a x v w).aestronglyMeasurable.mul + (Lp.memLp ψ).aestronglyMeasurable.star) + (integrable_dampedSpatialSlice_integrand hm ha x v hbv ψ hz.le) + (show AEStronglyMeasurable + (fun p => dampedSpatialKernel m a x v z p * (-Complex.I * (⟪p, v⟫_ℝ : ℂ)) * conj (ψ p)) + (oneParticleMeasure m) from + (show Continuous (fun p => dampedSpatialKernel m a x v z p * + (-Complex.I * (⟪p, v⟫_ℝ : ℂ))) by + exact (continuous_dampedSpatialKernel m a x v z).mul (by fun_prop)).aestronglyMeasurable.mul + (Lp.memLp ψ).aestronglyMeasurable.star) + (Eventually.of_forall fun p w hw => + norm_dampedSpatialKernel_derivative_mul_le hm x v hbv ψ hw.le p) + hb + (Eventually.of_forall fun p w _ => (hasDerivAt_dampedSpatialKernel m a x v w p).mul_const _) + exact hd + +theorem analyticOnNhd_dampedSpatialSlice {m a b : ℝ} + (hm : 0 < m) (ha : 0 < a) (x v : EuclideanSpace ℝ (Fin 3)) + (hbv : b * ‖v‖ ≤ a / 2) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + AnalyticOnNhd ℂ (dampedSpatialSlice a ψ x v) {z : ℂ | |z.im| < b} := by + apply DifferentiableOn.analyticOnNhd _ + (isOpen_lt (continuous_abs.comp Complex.continuous_im) continuous_const) + intro z hz + exact (hasDerivAt_dampedSpatialSlice hm ha x v hbv ψ hz).differentiableAt.differentiableWithinAt + +theorem analyticOnNhd_real_dampedSpatialSlice {m a : ℝ} + (hm : 0 < m) (ha : 0 < a) (x v : EuclideanSpace ℝ (Fin 3)) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + AnalyticOnNhd ℝ (fun t : ℝ => dampedSpatialSlice a ψ x v (t : ℂ)) univ := by + let b : ℝ := a / (2 * (‖v‖ + 1)) + have hb : 0 < b := by dsimp [b]; positivity + have heq : b * (2 * (‖v‖ + 1)) = a := by + dsimp [b] + exact div_mul_cancel₀ _ (by positivity) + have hbv : b * ‖v‖ ≤ a / 2 := by nlinarith + intro t _ + have h := analyticOnNhd_dampedSpatialSlice hm ha x v hbv ψ (t : ℂ) (by simpa using hb) + exact (h.restrictScalars (𝕜 := ℝ)).comp (Complex.ofRealCLM.analyticAt t) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialFourier.lean b/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialFourier.lean new file mode 100644 index 0000000000..74416c5b99 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialFourier.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.DampedSpatialAnalytic +public import LeanPool.VacuumBellSeparation.FreeField.ScalarSpatialFourier +public import LeanPool.VacuumBellSeparation.FreeField.LocalAnnihilatorLaplace + +/-! +# The actual damped spatial Fourier transform of a local annihilator + +Scalar Fubini converts its local test pairing to the positive imaginary-time +Laplace transform. The local fundamental lemma and actual continuity then give +pointwise zero throughout the original ball. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Set +open scoped Topology InnerProductSpace ComplexConjugate + +/-- Spatial Fourier integral with an extra exponential weight from the imaginary spatial +displacement. -/ +noncomputable def dampedSpatialFourier {m : ℝ} (a : ℝ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : EuclideanSpace ℝ (Fin 3) → ℂ := + scalarSpatialFourier (oneParticleMeasure m) (dampedShellAmplitude a ψ) + +theorem continuous_dampedSpatialFourier {m a : ℝ} (hm : 0 < m) (ha : 0 < a) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : Continuous (dampedSpatialFourier a ψ) := + continuous_scalarSpatialFourier (integrable_dampedShellAmplitude hm ha ψ) + +theorem dampedSpatialSlice_ofReal {m : ℝ} (a : ℝ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) (x v : EuclideanSpace ℝ (Fin 3)) (t : ℝ) : + dampedSpatialSlice a ψ x v (t : ℂ) = dampedSpatialFourier a ψ (x + t • v) := by + unfold dampedSpatialSlice dampedSpatialFourier scalarSpatialFourier dampedShellAmplitude + apply integral_congr_ae + exact Eventually.of_forall fun p => by + dsimp only + unfold dampedSpatialKernel + rw [Complex.ofReal_exp, ← mul_assoc, ← Complex.exp_add] + congr 2 + simp only [inner_add_right, inner_smul_right] + push_cast + ring + +theorem integral_dampedSpatialFourier_spatialTest {m a : ℝ} (hm : 0 < m) (ha : 0 < a) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) (g : SpatialTestFunction) : + (∫ x, (g.1 x : ℂ) * dampedSpatialFourier a ψ x) = + positiveEnergyLaplace (oneParticleMeasure m) (dispersion m) + (spatialLaplaceAmplitude ψ g) ((a : ℂ) * Complex.I) := by + let := oneParticleMeasure_isLocallyFinite hm + have hg : Integrable (fun x => (g.1 x : ℂ)) := + (Complex.continuous_ofReal.comp g.2.1.continuous).integrable_of_hasCompactSupport + (g.2.2.comp_left Complex.ofReal_zero) + have h := integral_scalarSpatialFourier_pairing + (integrable_dampedShellAmplitude hm ha ψ) hg 1 + simp only [one_smul, one_mul] at h + change (∫ x, (g.1 x : ℂ) * scalarSpatialFourier (oneParticleMeasure m) + (dampedShellAmplitude a ψ) x) = _ + rw [h] + unfold positiveEnergyLaplace + apply integral_congr_ae + exact Eventually.of_forall fun p => by + have he : positiveEnergyPhase (dispersion m p) ((a : ℂ) * Complex.I) = + (Real.exp (-a * dispersion m p) : ℂ) := by + rw [positiveEnergyPhase, Complex.ofReal_exp] + congr 1 + push_cast + calc + _ = (a : ℂ) * (Complex.I * Complex.I) * (dispersion m p : ℂ) := by ring + _ = _ := by rw [Complex.I_mul_I]; ring + simp only [he, spatialLaplaceAmplitude, dampedShellAmplitude, spatialFourier] + ring + +theorem dampedSpatialFourier_eq_zero_on_ball_of_local_annihilator {m R a : ℝ} + (hm : 0 < m) (hR : 0 < R) (ha : 0 < a) (x₀ : EuclideanSpace ℝ (Fin 3)) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) + (hψ : ∀ u ∈ localizedTimeZeroSources (Metric.ball x₀ R), + ⟪ψ, timeZeroL2 hm u⟫_ℂ = 0) : + EqOn (dampedSpatialFourier a ψ) 0 (Metric.ball x₀ R) := by + have hc := continuous_dampedSpatialFourier hm ha ψ + have hae : ∀ᵐ x ∂(volume : Measure (EuclideanSpace ℝ (Fin 3))), + x ∈ Metric.ball x₀ R → dampedSpatialFourier a ψ x = 0 := by + apply Metric.isOpen_ball.ae_eq_zero_of_integral_contDiff_smul_eq_zero + (hc.locallyIntegrable.locallyIntegrableOn _) + intro g hg hgc hgs + let g' : SpatialTestFunction := ⟨g, hg, hgc⟩ + change (∫ x, (g x : ℂ) * dampedSpatialFourier a ψ x) = 0 + rw [integral_dampedSpatialFourier_spatialTest hm ha ψ g'] + exact spatialLaplace_eq_zero_of_local_annihilator hm hR x₀ ψ hψ g' hgs + ((a : ℂ) * Complex.I) (by simpa using ha) + apply Measure.eqOn_open_of_ae_eq (μ := volume) + ((ae_restrict_iff' Metric.isOpen_ball.measurableSet).mpr hae) Metric.isOpen_ball + hc.continuousOn continuous_const.continuousOn + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialKernel.lean b/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialKernel.lean new file mode 100644 index 0000000000..615b68ae2b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialKernel.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.DampedShellMoments + +/-! +# Literal damped spatial Fourier kernels on complex affine lines + +All bounds retain the physical energy, use the real spatial inner product, and +lose only half the damping on a stated strip. They will supply actual dominated +complex differentiation; no analytic continuation theorem is postulated. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter +open scoped InnerProductSpace ComplexConjugate + +/-- Damped spatial kernel defined as `Complex.exp (-(a : ℂ) * (dispersion m p : ℂ) - Complex.I * +((⟪p, x⟫_ℝ : ℂ) + z * (⟪p, v⟫_ℝ : ℂ)))`. -/ +noncomputable def dampedSpatialKernel (m a : ℝ) + (x v : EuclideanSpace ℝ (Fin 3)) (z : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + Complex.exp (-(a : ℂ) * (dispersion m p : ℂ) - + Complex.I * ((⟪p, x⟫_ℝ : ℂ) + z * (⟪p, v⟫_ℝ : ℂ))) + +theorem continuous_dampedSpatialKernel (m a : ℝ) + (x v : EuclideanSpace ℝ (Fin 3)) (z : ℂ) : + Continuous (dampedSpatialKernel m a x v z) := by + unfold dampedSpatialKernel + have hω := continuous_dispersion m + fun_prop + +theorem hasDerivAt_dampedSpatialKernel (m a : ℝ) + (x v : EuclideanSpace ℝ (Fin 3)) (z : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + HasDerivAt (fun w => dampedSpatialKernel m a x v w p) + (dampedSpatialKernel m a x v z p * (-Complex.I * (⟪p, v⟫_ℝ : ℂ))) z := by + have h := ((hasDerivAt_const z (-(a : ℂ) * (dispersion m p : ℂ))).sub + ((hasDerivAt_const z Complex.I).mul + ((hasDerivAt_const z (⟪p, x⟫_ℝ : ℂ)).add + ((hasDerivAt_id z).mul_const (⟪p, v⟫_ℝ : ℂ))))).cexp + simpa [dampedSpatialKernel, mul_neg, neg_mul] using h + +theorem norm_dampedSpatialKernel (m a : ℝ) + (x v : EuclideanSpace ℝ (Fin 3)) (z : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + ‖dampedSpatialKernel m a x v z p‖ = + Real.exp (-a * dispersion m p + z.im * ⟪p, v⟫_ℝ) := by + rw [dampedSpatialKernel, Complex.norm_exp] + congr 1 + simp [Complex.mul_re, Complex.mul_im] + +theorem norm_dampedShellAmplitude {m : ℝ} (a : ℝ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) (p : EuclideanSpace ℝ (Fin 3)) : + ‖dampedShellAmplitude a ψ p‖ = Real.exp (-a * dispersion m p) * ‖ψ p‖ := by + simp only [dampedShellAmplitude, norm_mul, Complex.norm_real, + Real.norm_eq_abs, abs_of_pos (Real.exp_pos _), Complex.norm_conj] + +theorem norm_dampedSpatialKernel_mul_le {m a b : ℝ} (hm : 0 < m) + (x v : EuclideanSpace ℝ (Fin 3)) (hbv : b * ‖v‖ ≤ a / 2) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) {z : ℂ} (hz : |z.im| ≤ b) + (p : EuclideanSpace ℝ (Fin 3)) : + ‖dampedSpatialKernel m a x v z p * conj (ψ p)‖ ≤ + ‖dampedShellAmplitude (a / 2) ψ p‖ := by + have hω : 0 ≤ dispersion m p := hm.le.trans (le_dispersion hm.le p) + have hdot : |⟪p, v⟫_ℝ| ≤ dispersion m p * ‖v‖ := + (abs_real_inner_le_norm p v).trans (mul_le_mul_of_nonneg_right (norm_le_dispersion m p) + (norm_nonneg _)) + have hphase : z.im * ⟪p, v⟫_ℝ ≤ (a / 2) * dispersion m p := by + calc + _ ≤ |z.im| * |⟪p, v⟫_ℝ| := by rw [← abs_mul]; exact le_abs_self _ + _ ≤ b * (dispersion m p * ‖v‖) := + mul_le_mul hz hdot (abs_nonneg _) (le_trans (abs_nonneg _) hz) + _ = (b * ‖v‖) * dispersion m p := by ring + _ ≤ _ := mul_le_mul_of_nonneg_right hbv hω + rw [norm_mul, norm_dampedSpatialKernel, Complex.norm_conj, norm_dampedShellAmplitude] + apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) + apply Real.exp_le_exp.mpr + linarith + +theorem norm_dampedSpatialKernel_derivative_mul_le {m a b : ℝ} (hm : 0 < m) + (x v : EuclideanSpace ℝ (Fin 3)) (hbv : b * ‖v‖ ≤ a / 2) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) {z : ℂ} (hz : |z.im| ≤ b) + (p : EuclideanSpace ℝ (Fin 3)) : + ‖dampedSpatialKernel m a x v z p * (-Complex.I * (⟪p, v⟫_ℝ : ℂ)) * conj (ψ p)‖ ≤ + ‖v‖ * (dispersion m p * ‖dampedShellAmplitude (a / 2) ψ p‖) := by + have hdot : |⟪p, v⟫_ℝ| ≤ dispersion m p * ‖v‖ := + (abs_real_inner_le_norm p v).trans (mul_le_mul_of_nonneg_right (norm_le_dispersion m p) + (norm_nonneg _)) + calc + _ = |⟪p, v⟫_ℝ| * ‖dampedSpatialKernel m a x v z p * conj (ψ p)‖ := by + simp only [norm_mul, norm_neg, Complex.norm_I, one_mul, Complex.norm_real, + Real.norm_eq_abs] + ring + _ ≤ (dispersion m p * ‖v‖) * ‖dampedShellAmplitude (a / 2) ψ p‖ := + mul_le_mul hdot (norm_dampedSpatialKernel_mul_le hm x v hbv ψ hz p) + (norm_nonneg _) (mul_nonneg (hm.le.trans (le_dispersion hm.le p)) (norm_nonneg _)) + _ = _ := by ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialUnique.lean b/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialUnique.lean new file mode 100644 index 0000000000..463f4faa6c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/DampedSpatialUnique.lean @@ -0,0 +1,55 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.DampedSpatialFourier + +/-! +# Spatial continuation of an actual damped local annihilator + +Restricting each genuinely holomorphic affine slice to the real line gives +real analyticity on all ℝ. Its zero interval propagates by the ordinary +analytic identity theorem. This proves global vanishing of the actual +Fourier integral, without an assumed elliptic unique-continuation result. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Set +open scoped Topology InnerProductSpace + +theorem dampedSpatialFourier_eq_zero_of_zero_on_ball {m a R : ℝ} + (hm : 0 < m) (ha : 0 < a) (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) + (hzero : EqOn (dampedSpatialFourier a ψ) 0 (Metric.ball x₀ R)) : + dampedSpatialFourier a ψ = 0 := by + funext y + let v := y - x₀ + have hc : Continuous (fun t : ℝ => x₀ + t • v) := by fun_prop + have hlocal : (fun t : ℝ => dampedSpatialSlice a ψ x₀ v (t : ℂ)) =ᶠ[𝓝 0] 0 := by + have hmem : (0 : ℝ) ∈ (fun t : ℝ => x₀ + t • v) ⁻¹' Metric.ball x₀ R := by + simpa using (Metric.mem_ball_self (x := x₀) hR) + filter_upwards [((Metric.isOpen_ball (x := x₀) (ε := R)).preimage hc).mem_nhds hmem] with t ht + rw [dampedSpatialSlice_ofReal] + exact hzero ht + have hall := (analyticOnNhd_real_dampedSpatialSlice hm ha x₀ v ψ).eq_of_eventuallyEq + (analyticOnNhd_const (𝕜 := ℝ) (v := (0 : ℂ))) hlocal + have h := congrFun hall 1 + have hv : x₀ + (1 : ℝ) • v = y := by simp [v] + simpa only [dampedSpatialSlice_ofReal, hv, Pi.zero_apply] using h + +theorem dampedSpatialFourier_eq_zero_of_local_annihilator {m a R : ℝ} + (hm : 0 < m) (ha : 0 < a) (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) + (hψ : ∀ u ∈ localizedTimeZeroSources (Metric.ball x₀ R), + ⟪ψ, timeZeroL2 hm u⟫_ℂ = 0) : dampedSpatialFourier a ψ = 0 := by + exact dampedSpatialFourier_eq_zero_of_zero_on_ball hm ha hR x₀ ψ + (dampedSpatialFourier_eq_zero_on_ball_of_local_annihilator hm hR ha x₀ ψ hψ) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Decay.lean b/LeanPool/VacuumBellSeparation/FreeField/Decay.lean new file mode 100644 index 0000000000..23ae030ea8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Decay.lean @@ -0,0 +1,249 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.OneParticle +public import Mathlib.Analysis.Calculus.LineDeriv.IntegrationByParts +public import Mathlib.Analysis.SpecialFunctions.ExpDeriv +public import Mathlib.Analysis.SpecialFunctions.JapaneseBracket + +/-! +# Decay of the one-particle wave functions + +Integrability in the one-particle definitions: + +* `spatialDeriv F v`: the spatial directional derivative `∂_v F` of a real test function, again + a real test function; +* `oneParticle_spatialDeriv`: `κ_m(∂_v F)(𝐩) = i ⟪𝐩, v⟫ κ_m F(𝐩)` (integration by parts on + spacetime; the boundary terms vanish by compact support); +* `norm_oneParticle_le_div`: `|κ_m F(𝐩)| ≤ C_F / (1 + |𝐩|²)`; +* `continuous_oneParticle`: `κ_m F` is continuous in `𝐩`; +* `integrable_oneParticleInner_integrand`: for `m > 0` the integrand of `oneParticleInner m F G` + is integrable. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate + +namespace VacuumBellSeparation + +theorem differentiable_testFunction (F : RealTestFunction) : Differentiable ℝ F.1 := by + exact (contDiff_infty_iff_fderiv.1 F.2.1).1 + +/-- The spatial directional derivative `∂_v F` of a real test function, again a test function. -/ +noncomputable def spatialDeriv (F : RealTestFunction) (v : EuclideanSpace ℝ (Fin 3)) : + RealTestFunction := + ⟨fun x => fderiv ℝ F.1 x ((0 : ℝ), v), + (contDiff_infty_iff_fderiv.1 F.2.1).2.clm_apply contDiff_const, + F.2.2.fderiv_apply ℝ ((0 : ℝ), v)⟩ + +theorem spatialDeriv_apply (F : RealTestFunction) (v : EuclideanSpace ℝ (Fin 3)) + (x : Spacetime) : (spatialDeriv F v).1 x = fderiv ℝ F.1 x ((0 : ℝ), v) := rfl + +/-- The phase `x ↦ i (ω_m(𝐩) x⁰ - ⟪𝐩, 𝐱⟫)` of the plane wave, as a real-linear map. -/ +noncomputable def phaseCLM (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : Spacetime →L[ℝ] ℂ := + Complex.I • (Complex.ofRealCLM.comp + (dispersion m p • ContinuousLinearMap.fst ℝ ℝ (EuclideanSpace ℝ (Fin 3)) - + (innerSL ℝ p).comp (ContinuousLinearMap.snd ℝ ℝ (EuclideanSpace ℝ (Fin 3))))) + +theorem phaseCLM_apply (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (x : Spacetime) : + phaseCLM m p x = Complex.I * ((dispersion m p * x.1 - ⟪p, x.2⟫_ℝ : ℝ) : ℂ) := by + simp [phaseCLM] + +/-- `κ_m(∂_v F)(𝐩) = i ⟪𝐩, v⟫ κ_m F(𝐩)`. -/ +theorem oneParticle_spatialDeriv (m : ℝ) (F : RealTestFunction) + (v p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (spatialDeriv F v) p = Complex.I * (⟪p, v⟫_ℝ : ℂ) * oneParticle m F p := by + have hD0 : phaseCLM m p ((0 : ℝ), v) = -(Complex.I * (⟪p, v⟫_ℝ : ℂ)) := by + simp [phaseCLM_apply] + have hg : ∀ x : Spacetime, HasFDerivAt (fun y => ((F.1 y : ℝ) : ℂ)) + (Complex.ofRealCLM.comp (fderiv ℝ F.1 x)) x := fun x => + Complex.ofRealCLM.hasFDerivAt.comp x ((differentiable_testFunction F x).hasFDerivAt) + have he : ∀ x : Spacetime, HasFDerivAt (fun y => Complex.exp (phaseCLM m p y)) + (Complex.exp (phaseCLM m p x) • phaseCLM m p) x := fun x => + (phaseCLM m p).hasFDerivAt.cexp + have hfd : ∀ x : Spacetime, + fderiv ℝ (fun y => Complex.exp (phaseCLM m p y)) x ((0 : ℝ), v) = + -(Complex.I * (⟪p, v⟫_ℝ : ℂ)) * Complex.exp (phaseCLM m p x) := by + intro x + rw [(he x).fderiv, smul_apply, hD0, smul_eq_mul] + ring + have hgd : ∀ x : Spacetime, fderiv ℝ (fun y => ((F.1 y : ℝ) : ℂ)) x ((0 : ℝ), v) = + (((spatialDeriv F v).1 x : ℝ) : ℂ) := by + intro x + rw [(hg x).fderiv] + rfl + have hfun1 : (fun x : Spacetime => + fderiv ℝ (fun y => Complex.exp (phaseCLM m p y)) x ((0 : ℝ), v) * ((F.1 x : ℝ) : ℂ)) = + fun x => -(Complex.I * (⟪p, v⟫_ℝ : ℂ)) * oneParticleIntegrand m F p x := by + funext x + rw [hfd] + simp only [oneParticleIntegrand, phaseCLM_apply] + ring + have hfun2 : (fun x : Spacetime => + Complex.exp (phaseCLM m p x) * fderiv ℝ (fun y => ((F.1 y : ℝ) : ℂ)) x ((0 : ℝ), v)) = + oneParticleIntegrand m (spatialDeriv F v) p := by + funext x + rw [hgd] + simp only [oneParticleIntegrand, phaseCLM_apply] + have hfun3 : (fun x : Spacetime => Complex.exp (phaseCLM m p x) * ((F.1 x : ℝ) : ℂ)) = + oneParticleIntegrand m F p := by + funext x + simp only [oneParticleIntegrand, phaseCLM_apply] + have hint1 : MeasureTheory.Integrable (fun x : Spacetime => + fderiv ℝ (fun y => Complex.exp (phaseCLM m p y)) x ((0 : ℝ), v) * ((F.1 x : ℝ) : ℂ)) := by + rw [hfun1] + exact (integrable_oneParticleIntegrand m F p).const_mul _ + have hint2 : MeasureTheory.Integrable (fun x : Spacetime => + Complex.exp (phaseCLM m p x) * fderiv ℝ (fun y => ((F.1 y : ℝ) : ℂ)) x ((0 : ℝ), v)) := by + rw [hfun2] + exact integrable_oneParticleIntegrand m (spatialDeriv F v) p + have hint3 : MeasureTheory.Integrable + (fun x : Spacetime => Complex.exp (phaseCLM m p x) * ((F.1 x : ℝ) : ℂ)) := by + rw [hfun3] + exact integrable_oneParticleIntegrand m F p + have : (MeasureTheory.volume : MeasureTheory.Measure Spacetime).IsAddHaarMeasure := + MeasureTheory.Measure.prod.instIsAddHaarMeasure _ _ + have key : ∫ x : Spacetime, + Complex.exp (phaseCLM m p x) * fderiv ℝ (fun y => ((F.1 y : ℝ) : ℂ)) x ((0 : ℝ), v) = + - ∫ x : Spacetime, + fderiv ℝ (fun y => Complex.exp (phaseCLM m p y)) x ((0 : ℝ), v) * ((F.1 x : ℝ) : ℂ) := + integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable hint1 hint2 hint3 + (fun x _ => (he x).differentiableAt) (fun x _ => (hg x).differentiableAt) + calc oneParticle m (spatialDeriv F v) p + = ∫ x : Spacetime, + Complex.exp (phaseCLM m p x) * fderiv ℝ (fun y => ((F.1 y : ℝ) : ℂ)) x ((0 : ℝ), v) := by + rw [oneParticle_eq_integral, hfun2] + _ = - ∫ x : Spacetime, + fderiv ℝ (fun y => Complex.exp (phaseCLM m p y)) x ((0 : ℝ), v) * ((F.1 x : ℝ) : ℂ) := + key + _ = - ∫ x : Spacetime, -(Complex.I * (⟪p, v⟫_ℝ : ℂ)) * oneParticleIntegrand m F p x := by + rw [hfun1] + _ = Complex.I * (⟪p, v⟫_ℝ : ℂ) * oneParticle m F p := by + rw [MeasureTheory.integral_const_mul, oneParticle_eq_integral] + ring + +/-! ### Decay in the momentum -/ + +/-- The second spatial derivative `∂_j ∂_j F` along the `j`-th coordinate axis. -/ +noncomputable def spatialDeriv2 (F : RealTestFunction) (j : Fin 3) : RealTestFunction := + spatialDeriv (spatialDeriv F (EuclideanSpace.single j 1)) (EuclideanSpace.single j 1) + +theorem inner_euclideanSingle_one (p : EuclideanSpace ℝ (Fin 3)) (j : Fin 3) : + ⟪p, EuclideanSpace.single j (1 : ℝ)⟫_ℝ = p j := by + simp [EuclideanSpace.inner_single_right] + +/-- `κ_m(∂_j ∂_j F)(𝐩) = -p_j² κ_m F(𝐩)`. -/ +theorem oneParticle_spatialDeriv2 (m : ℝ) (F : RealTestFunction) (j : Fin 3) + (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (spatialDeriv2 F j) p = -(((p j : ℝ) : ℂ) ^ 2) * oneParticle m F p := by + rw [spatialDeriv2, oneParticle_spatialDeriv, oneParticle_spatialDeriv, inner_euclideanSingle_one] + linear_combination (((p j : ℝ) : ℂ) ^ 2 * oneParticle m F p) * Complex.I_sq + +/-- Decay of the one-particle wave function: `|κ_m F(𝐩)| ≤ C / (1 + |𝐩|²)`. -/ +theorem norm_oneParticle_le_div (m : ℝ) (F : RealTestFunction) : + ∃ C : ℝ, 0 ≤ C ∧ ∀ p, ‖oneParticle m F p‖ ≤ C / (1 + ‖p‖ ^ 2) := by + refine ⟨(∫ x, |F.1 x|) + ∑ j : Fin 3, ∫ x, |(spatialDeriv2 F j).1 x|, ?_, ?_⟩ + · exact add_nonneg (MeasureTheory.integral_nonneg fun x => abs_nonneg _) + (Finset.sum_nonneg fun j _ => MeasureTheory.integral_nonneg fun x => abs_nonneg _) + · intro p + rw [le_div_iff₀ (by positivity)] + have h1 : ∀ j : Fin 3, (p j) ^ 2 * ‖oneParticle m F p‖ ≤ + ∫ x, |(spatialDeriv2 F j).1 x| := by + intro j + have h := norm_oneParticle_le m (spatialDeriv2 F j) p + rw [oneParticle_spatialDeriv2, norm_mul, norm_neg, norm_pow, Complex.norm_real, + Real.norm_eq_abs, sq_abs] at h + exact h + have h2 : ‖p‖ ^ 2 * ‖oneParticle m F p‖ ≤ + ∑ j : Fin 3, ∫ x, |(spatialDeriv2 F j).1 x| := by + rw [EuclideanSpace.real_norm_sq_eq, Finset.sum_mul] + exact Finset.sum_le_sum fun j _ => h1 j + have h0 := norm_oneParticle_le m F p + nlinarith [h0, h2] + +/-! ### Integrability of the one-particle inner product -/ + +theorem continuous_dispersion (m : ℝ) : Continuous (dispersion m) := by + change Continuous (fun p : EuclideanSpace ℝ (Fin 3) => Real.sqrt (m ^ 2 + ‖p‖ ^ 2)) + exact (continuous_const.add (continuous_norm.pow 2)).sqrt + +theorem le_dispersion {m : ℝ} (hm : 0 ≤ m) (p : EuclideanSpace ℝ (Fin 3)) : + m ≤ dispersion m p := + calc m = Real.sqrt (m ^ 2) := (Real.sqrt_sq hm).symm + _ ≤ Real.sqrt (m ^ 2 + ‖p‖ ^ 2) := + Real.sqrt_le_sqrt (le_add_of_nonneg_right (sq_nonneg _)) + _ = dispersion m p := rfl + +theorem continuous_oneParticle (m : ℝ) (F : RealTestFunction) : + Continuous (oneParticle m F) := by + change Continuous fun p => ∫ x, oneParticleIntegrand m F p x + refine MeasureTheory.continuous_of_dominated (bound := fun x => |F.1 x|) + (fun p => (integrable_oneParticleIntegrand m F p).aestronglyMeasurable) ?_ ?_ ?_ + · intro p + refine Filter.Eventually.of_forall fun x => le_of_eq ?_ + simp only [oneParticleIntegrand, norm_mul, Complex.norm_exp_I_mul_ofReal, one_mul, + Complex.norm_real, Real.norm_eq_abs] + · exact ((continuous_testFunction F).integrable_of_hasCompactSupport F.2.2).abs + · refine Filter.Eventually.of_forall fun x => ?_ + change Continuous fun p : EuclideanSpace ℝ (Fin 3) => + Complex.exp (Complex.I * ((dispersion m p * x.1 - ⟪p, x.2⟫_ℝ : ℝ) : ℂ)) * ((F.1 x : ℝ) : ℂ) + exact (Complex.continuous_exp.comp (continuous_const.mul (Complex.continuous_ofReal.comp + (((continuous_dispersion m).mul continuous_const).sub + (continuous_id.inner continuous_const))))).mul continuous_const + +/-- For `m > 0` the integrand of `oneParticleInner m F G` is integrable. -/ +theorem integrable_oneParticleInner_integrand {m : ℝ} (hm : 0 < m) (F G : RealTestFunction) : + MeasureTheory.Integrable (fun p => conj (oneParticle m F p) * oneParticle m G p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)) := by + obtain ⟨CF, hCF0, hCF⟩ := norm_oneParticle_le_div m F + obtain ⟨CG, hCG0, hCG⟩ := norm_oneParticle_le_div m G + have hc : 0 < 2 * (2 * Real.pi) ^ 3 := by positivity + have hpos : ∀ p, 0 < dispersion m p := fun p => hm.trans_le (le_dispersion hm.le p) + have hint : MeasureTheory.Integrable + (fun p : EuclideanSpace ℝ (Fin 3) => ((1 : ℝ) + ‖p‖ ^ 2) ^ (-(4 : ℝ) / 2)) := + integrable_rpow_neg_one_add_norm_sq (by rw [finrank_euclideanSpace_fin]; norm_num) + refine (hint.const_mul (CF * CG / (2 * (2 * Real.pi) ^ 3 * m))).mono' ?_ ?_ + · refine Continuous.aestronglyMeasurable ?_ + exact ((Complex.continuous_conj.comp (continuous_oneParticle m F)).mul + (continuous_oneParticle m G)).mul (Complex.continuous_ofReal.comp + (continuous_const.div (continuous_const.mul (continuous_dispersion m)) + fun p => (mul_pos hc (hpos p)).ne')) + · refine Filter.Eventually.of_forall fun p => ?_ + have hq : 0 < 1 + ‖p‖ ^ 2 := by positivity + have hw : 0 < 1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) := + one_div_pos.2 (mul_pos hc (hpos p)) + have hww : 1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) ≤ + 1 / (2 * (2 * Real.pi) ^ 3 * m) := + one_div_le_one_div_of_le (mul_pos hc hm) + (mul_le_mul_of_nonneg_left (le_dispersion hm.le p) hc.le) + have hrw : ((1 : ℝ) + ‖p‖ ^ 2) ^ (-(4 : ℝ) / 2) = ((1 + ‖p‖ ^ 2)⁻¹) ^ 2 := by + rw [show -(4 : ℝ) / 2 = -2 by norm_num, Real.rpow_neg hq.le, Real.rpow_two, inv_pow] + have hab : ‖oneParticle m F p‖ * ‖oneParticle m G p‖ ≤ + CF / (1 + ‖p‖ ^ 2) * (CG / (1 + ‖p‖ ^ 2)) := + mul_le_mul (hCF p) (hCG p) (norm_nonneg _) (div_nonneg hCF0 hq.le) + have habw : ‖oneParticle m F p‖ * ‖oneParticle m G p‖ * + (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p)) ≤ + CF / (1 + ‖p‖ ^ 2) * (CG / (1 + ‖p‖ ^ 2)) * (1 / (2 * (2 * Real.pi) ^ 3 * m)) := + mul_le_mul hab hww hw.le (mul_nonneg (div_nonneg hCF0 hq.le) (div_nonneg hCG0 hq.le)) + have hnorm : ‖conj (oneParticle m F p) * oneParticle m G p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)‖ = + ‖oneParticle m F p‖ * ‖oneParticle m G p‖ * + (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p)) := by + rw [norm_mul, norm_mul, Complex.norm_conj, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos hw] + change ‖conj (oneParticle m F p) * oneParticle m G p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)‖ ≤ + CF * CG / (2 * (2 * Real.pi) ^ 3 * m) * ((1 : ℝ) + ‖p‖ ^ 2) ^ (-(4 : ℝ) / 2) + rw [hnorm, hrw] + refine habw.trans (le_of_eq ?_) + first + | ring + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Defs.lean b/LeanPool/VacuumBellSeparation/FreeField/Defs.lean new file mode 100644 index 0000000000..843cfc8f05 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Defs.lean @@ -0,0 +1,138 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Defs +public import Mathlib.Analysis.Calculus.ContDiff.Operations +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace + +/-! +# The vacuum representation of the massive real free scalar field + +Model definitions for Section 2.1 of the manuscript and for the statement of Theorem 1.1. + +* `Spacetime`: Minkowski space `ℝ^{1+3}`, points `(x⁰, 𝐱)`, signature `(+,-,-,-)`. +* `RealTestFunction`: real smooth compactly supported functions on spacetime. +* `oneParticle m F`: the one-particle wave function of the spacetime test function `F`, + `(κ_m F)(𝐩) = ∫ e^{i(ω_m(𝐩) x⁰ - 𝐩·𝐱)} F(x) d⁴x` with `ω_m(𝐩) = √(m² + |𝐩|²)`; at time + zero it reduces to the manuscript's source map `κ(f, g)(p) = f̂(𝐩) + i p₀ ĝ(𝐩)`, displayed before + (2.6). +* `oneParticleInner m F G`: the inner product of `L²(H_m^+, d𝔪_m)`, + `d𝔪_m = d³p / (2(2π)³ ω_m(𝐩))`, of two such wave functions. +* `FreeFieldVacuum m H`: a vacuum Weyl system of the free field of mass `m` in the Hilbert + space `H`: unitary Weyl operators `W(F) = e^{iφ(F)}` with the Weyl relations + `W(F)W(G) = e^{-i Im⟨κF, κG⟩} W(F + G)` (that is `e^{-iσ/2}` with `σ = 2 Im⟨κ·, κ·⟩`, + (2.1)–(2.6)), a unit vacuum vector `Ω` with `⟨Ω, W(F)Ω⟩ = e^{-‖κF‖²/2}` (the centred + quasi-free vacuum), and `Ω` cyclic. These data determine the vacuum representation up + to unitary equivalence (GNS). The Fock representation is one such system; the + existence of a vacuum Weyl system is proved in `FreeField/Existence.lean`. +* `localAlgebra V O`: the von Neumann algebra generated by the Weyl operators of real test + functions supported in `O` (Section 2.1). +* `doubleCone a R`: the double cone `D_R + a = {x : |x⁰ - a⁰| + |𝐱 - 𝐚| < R}`. +* `freeFieldBell V R L`: `β_m(R, L)`, the Summers–Werner Bell correlation of the vacuum for + `𝔄_m(D_R)` and `𝔄_m(D_R + (0, L𝐞₁))`. + +This module contains definitions only. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate ComplexOrder + +namespace VacuumBellSeparation + +/-- Minkowski spacetime `ℝ^{1+3}`; a point is `(x⁰, 𝐱)`. -/ +abbrev Spacetime : Type := ℝ × EuclideanSpace ℝ (Fin 3) + +/-- Real smooth compactly supported functions on spacetime. -/ +def RealTestFunction : Type := + {F : Spacetime → ℝ // ContDiff ℝ (⊤ : ℕ∞) F ∧ HasCompactSupport F} + +instance : Add RealTestFunction where + add F G := ⟨F.1 + G.1, F.2.1.add G.2.1, F.2.2.add G.2.2⟩ + +/-- The relativistic energy `ω_m(𝐩) = √(m² + |𝐩|²)`. -/ +noncomputable def dispersion (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : ℝ := + Real.sqrt (m ^ 2 + ‖p‖ ^ 2) + +/-- The one-particle wave function `(κ_m F)(𝐩) = ∫ e^{i(ω_m(𝐩) x⁰ - 𝐩·𝐱)} F(x) d⁴x`. -/ +noncomputable def oneParticle (m : ℝ) (F : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + ∫ x : Spacetime, + Complex.exp (Complex.I * ((dispersion m p * x.1 - ⟪p, x.2⟫_ℝ : ℝ) : ℂ)) * (F.1 x : ℂ) + +/-- The one-particle inner product `⟨κ_m F, κ_m G⟩ = ∫ conj(κ_m F) κ_m G d𝔪_m` with the +Lorentz-invariant measure `d𝔪_m = d³p / (2(2π)³ ω_m(𝐩))`. -/ +noncomputable def oneParticleInner (m : ℝ) (F G : RealTestFunction) : ℂ := + ∫ p : EuclideanSpace ℝ (Fin 3), conj (oneParticle m F p) * oneParticle m G p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- A vacuum Weyl system of the real free scalar field of mass `m` in the Hilbert space `H`. -/ +structure FreeFieldVacuum (m : ℝ) (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] + [CompleteSpace H] where + /-- The Weyl operators `W(F) = e^{iφ(F)}` of real spacetime test functions. -/ + weyl : RealTestFunction → (H →L[ℂ] H) + /-- The vacuum vector `Ω`. -/ + vacuum : H + /-- Each Weyl operator is unitary. -/ + weyl_mem_unitary : ∀ F, weyl F ∈ unitary (H →L[ℂ] H) + /-- The Weyl relations `W(F)W(G) = e^{-i Im⟨κF, κG⟩} W(F + G)`. -/ + weyl_mul : ∀ F G, weyl F * weyl G = + Complex.exp (-(Complex.I * ((oneParticleInner m F G).im : ℂ))) • weyl (F + G) + /-- The vacuum vector is a unit vector. -/ + vacuum_norm : ‖vacuum‖ = 1 + /-- The vacuum is the centred quasi-free state: `⟨Ω, W(F)Ω⟩ = e^{-‖κF‖²/2}`. -/ + vacuum_weyl : ∀ F, ⟪vacuum, weyl F vacuum⟫_ℂ = + ((Real.exp (-((oneParticleInner m F F).re / 2)) : ℝ) : ℂ) + /-- The vacuum is cyclic for the Weyl operators. -/ + cyclic : (Submodule.span ℂ (Set.range fun F => weyl F vacuum)).topologicalClosure = ⊤ + +/-- The commutant `S'` of a set `S` of bounded operators, as a von Neumann algebra (it is the +commutant of `S ∪ S*`). -/ +noncomputable def commutantOf (S : Set (H →L[ℂ] H)) : VonNeumannAlgebra H where + toStarSubalgebra := StarSubalgebra.centralizer ℂ S + centralizer_centralizer' := by simp + +/-- The von Neumann algebra `(S ∪ S*)''` generated by a set `S` of bounded operators. -/ +noncomputable def generatedVNA (S : Set (H →L[ℂ] H)) : VonNeumannAlgebra H := + (commutantOf S).commutant + +/-- The local von Neumann algebra `𝔄_m(O)` generated by the Weyl operators of real test +functions supported in `O`. -/ +noncomputable def localAlgebra {m : ℝ} (V : FreeFieldVacuum m H) (O : Set Spacetime) : + VonNeumannAlgebra H := + generatedVNA {T | ∃ F : RealTestFunction, tsupport F.1 ⊆ O ∧ T = V.weyl F} + +/-- The double cone `D_R + a = {x : |x⁰ - a⁰| + |𝐱 - 𝐚| < R}`. -/ +def doubleCone (a : Spacetime) (R : ℝ) : Set Spacetime := + {x | |x.1 - a.1| + ‖x.2 - a.2‖ < R} + +/-- The first spatial unit vector `𝐞₁`. -/ +noncomputable def e₁ : EuclideanSpace ℝ (Fin 3) := EuclideanSpace.single 0 1 + +/-- The vector state `T ↦ ⟨Ω, TΩ⟩` of a unit vector. -/ +noncomputable def vectorState (Ω : H) (hΩ : ‖Ω‖ = 1) : State H where + toLinearMap := + { toFun := fun T => ⟪Ω, T Ω⟫_ℂ + map_add' := fun S T => inner_add_right Ω (S Ω) (T Ω) + map_smul' := fun c T => inner_smul_right Ω (T Ω) c } + map_one' := by + change ⟪Ω, (1 : H →L[ℂ] H) Ω⟫_ℂ = 1 + simp [inner_self_eq_norm_sq_to_K, hΩ] + map_nonneg' := fun T hT => by + have h : (0 : ℂ) ≤ ⟪Ω, T Ω⟫_ℂ := hT.inner_nonneg_right Ω + exact ⟨(Complex.nonneg_iff.mp h).2.symm, (Complex.nonneg_iff.mp h).1⟩ + +/-- `β_m(R, L)`: the vacuum Bell correlation of `𝔄_m(D_R)` and `𝔄_m(D_R + (0, L𝐞₁))`. -/ +noncomputable def freeFieldBell {m : ℝ} (V : FreeFieldVacuum m H) (R L : ℝ) : ℝ := + bellCorrelation (vectorState V.vacuum V.vacuum_norm) + (localAlgebra V (doubleCone 0 R)) (localAlgebra V (doubleCone (0, L • e₁) R)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/DenseRangeFactorization.lean b/LeanPool/VacuumBellSeparation/FreeField/DenseRangeFactorization.lean new file mode 100644 index 0000000000..deefb42d84 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/DenseRangeFactorization.lean @@ -0,0 +1,69 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Normed.Operator.Basic +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.Topology.Algebra.Module.ContinuousLinearMap.Extend +public import Mathlib.LinearAlgebra.Isomorphisms + +/-! +# Bounded factorization through an injective operator with dense range + +A norm bound in the range norm defines a bounded map there and its unique +continuous extension. The inverse of the injective operator is never assumed +bounded. The codomain may be any complete complex normed space. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] + [NormedAddCommGroup F] [NormedSpace ℂ F] [CompleteSpace F] + +theorem existsUnique_factor_of_denseRange_bound (A : E →L[ℂ] E) + (hA : Function.Injective A) (hd : DenseRange A) (T : E →ₗ[ℂ] F) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ z, ‖T z‖ ≤ C * ‖A z‖) : + ∃! L : E →L[ℂ] F, (∀ z, L (A z) = T z) ∧ ‖L‖ ≤ C := by + let e := LinearEquiv.ofInjective A.toLinearMap hA + let l : A.range →ₗ[ℂ] F := T.comp e.symm.toLinearMap + have hl (z : E) : l (e z) = T z := by + change T (e.symm (e z)) = T z + rw [LinearEquiv.symm_apply_apply] + have hbl : ∀ y : A.range, ‖l y‖ ≤ C * ‖y‖ := by + intro y + obtain ⟨z, rfl⟩ := e.surjective y + exact (show ‖l (e z)‖ ≤ C * ‖A z‖ by rw [hl]; exact hb z) + let lc : A.range →L[ℂ] F := l.mkContinuous C hbl + let L : E →L[ℂ] F := lc.extend A.range.subtypeL + have hdom : Dense (A.range : Set E) := hd + have hext (z : E) : L (A z) = T z := by + have hh := lc.extend_eq (e := A.range.subtypeL) hdom.denseRange_val + isUniformEmbedding_subtype_val.isUniformInducing (e z) + exact hh.trans (hl z) + have hbound (x : E) : ‖L x‖ ≤ C * ‖x‖ := by + refine hd.induction_on (p := fun y => ‖L y‖ ≤ C * ‖y‖) x + (isClosed_le L.continuous.norm (continuous_const.mul continuous_norm)) ?_ + intro z + rw [hext] + exact hb z + refine ⟨L, ⟨hext, L.opNorm_le_bound hC hbound⟩, ?_⟩ + intro Q hQ + apply ContinuousLinearMap.coeFn_injective + exact hd.equalizer Q.continuous L.continuous (funext fun z => (hQ.1 z).trans (hext z).symm) + +omit [CompleteSpace F] in +/-- A bounded factorization gives the original range-norm inequality. -/ +theorem bound_of_factor (A : E →L[ℂ] E) (T : E →ₗ[ℂ] F) + (L : E →L[ℂ] F) (hL : ∀ z, L (A z) = T z) {C : ℝ} (hC : ‖L‖ ≤ C) : + ∀ z, ‖T z‖ ≤ C * ‖A z‖ := by + intro z + rw [← hL z] + exact (L.le_opNorm (A z)).trans (mul_le_mul_of_nonneg_right hC (norm_nonneg _)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/DilatedVacuumConstruction.lean b/LeanPool/VacuumBellSeparation/FreeField/DilatedVacuumConstruction.lean new file mode 100644 index 0000000000..fbe7a4d53b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/DilatedVacuumConstruction.lean @@ -0,0 +1,234 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Uniqueness +public import LeanPool.VacuumBellSeparation.FreeField.Statements + +/-! +# Staged literal construction + +Exact original declarations; verification target proofs are staged separately. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +theorem contDiff_dilate (c : ℝ) (F : RealTestFunction) : + ContDiff ℝ (⊤ : ℕ∞) (fun y : Spacetime => c ^ 3 * F.1 (c • y)) := by + exact contDiff_const.mul (F.2.1.comp (contDiff_const_smul c)) + +theorem hasCompactSupport_dilate (c : ℝ) (F : RealTestFunction) : + HasCompactSupport (fun y : Spacetime => c ^ 3 * F.1 (c • y)) := by + by_cases hc : c = 0 + · have h0 : (fun y : Spacetime => c ^ 3 * F.1 (c • y)) = 0 := by + funext y + change c ^ 3 * F.1 (c • y) = 0 + rw [hc] + ring1 + rw [h0] + exact HasCompactSupport.zero + · exact (F.2.2.comp_smul hc).mul_left + +/-- The dilation `(D_c F)(y) = c³ F(c y)` of a real test function. -/ +noncomputable def dilate (c : ℝ) (F : RealTestFunction) : RealTestFunction := + ⟨fun y => c ^ 3 * F.1 (c • y), contDiff_dilate c F, hasCompactSupport_dilate c F⟩ + + +theorem dilate_add (c : ℝ) (F G : RealTestFunction) : + dilate c (F + G) = dilate c F + dilate c G := by + apply Subtype.ext + funext y + change c ^ 3 * (F.1 (c • y) + G.1 (c • y)) = c ^ 3 * F.1 (c • y) + c ^ 3 * G.1 (c • y) + ring + +theorem dilate_inv_dilate {c : ℝ} (hc : c ≠ 0) (F : RealTestFunction) : + dilate c⁻¹ (dilate c F) = F := by + apply Subtype.ext + funext y + change c⁻¹ ^ 3 * (c ^ 3 * F.1 (c • c⁻¹ • y)) = F.1 y + rw [smul_inv_smul₀ hc y, ← mul_assoc, ← mul_pow, inv_mul_cancel₀ hc, one_pow, one_mul] + + +theorem finrank_spacetime : Module.finrank ℝ Spacetime = 4 := by + simp + +theorem finrank_momentum : Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)) = 3 := + finrank_euclideanSpace_fin + +/-- `ω_{mR}(R 𝐩) = R ω_m(𝐩)` for `R ≥ 0`. -/ +theorem dispersion_smul (m : ℝ) {R : ℝ} (hR : 0 ≤ R) (p : EuclideanSpace ℝ (Fin 3)) : + dispersion (m * R) (R • p) = R * dispersion m p := by + change Real.sqrt ((m * R) ^ 2 + ‖R • p‖ ^ 2) = R * Real.sqrt (m ^ 2 + ‖p‖ ^ 2) + rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg hR, + show (m * R) ^ 2 + (R * ‖p‖) ^ 2 = R ^ 2 * (m ^ 2 + ‖p‖ ^ 2) by ring, + Real.sqrt_mul (sq_nonneg R), Real.sqrt_sq hR] + +/-! ### (a) The one-particle wave function of a dilated test function -/ + +/-- `κ_{mR}(D_R F)(R 𝐩) = R⁻¹ κ_m F(𝐩)`. -/ +theorem oneParticle_dilate (m : ℝ) {R : ℝ} (hR : 0 < R) (F : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle (m * R) (dilate R F) (R • p) = ((R⁻¹ : ℝ) : ℂ) * oneParticle m F p := by + have hpt : ∀ y : Spacetime, oneParticleIntegrand (m * R) (dilate R F) (R • p) y = + ((R ^ 3 : ℝ) : ℂ) * oneParticleIntegrand m F p (R • y) := by + intro y + have harg : dispersion (m * R) (R • p) * y.1 - ⟪R • p, y.2⟫_ℝ = + dispersion m p * (R • y).1 - ⟪p, (R • y).2⟫_ℝ := by + rw [dispersion_smul m hR.le p, real_inner_smul_left] + change R * dispersion m p * y.1 - R * ⟪p, y.2⟫_ℝ = + dispersion m p * (R * y.1) - ⟪p, R • y.2⟫_ℝ + rw [real_inner_smul_right] + ring1 + change Complex.exp (Complex.I * ((dispersion (m * R) (R • p) * y.1 - ⟪R • p, y.2⟫_ℝ : ℝ) : ℂ)) * + ((R ^ 3 * F.1 (R • y) : ℝ) : ℂ) = + ((R ^ 3 : ℝ) : ℂ) * (Complex.exp (Complex.I * + ((dispersion m p * (R • y).1 - ⟪p, (R • y).2⟫_ℝ : ℝ) : ℂ)) * ((F.1 (R • y) : ℝ) : ℂ)) + rw [harg, Complex.ofReal_mul] + ring + -- Change of variables `x = R y` in `d⁴x`. The statement keeps `Module.finrank ℝ Spacetime` + -- (elaborated here, so `finrank_spacetime` rewrites it syntactically in `hconst`); `exact` + -- matches the instance paths of `integral_comp_smul` up to defeq. + have hcov : ∫ y : Spacetime, oneParticleIntegrand m F p (R • y) = + |(R ^ Module.finrank ℝ Spacetime)⁻¹| • oneParticle m F p := by + have : (volume : Measure Spacetime).IsAddHaarMeasure := Measure.prod.instIsAddHaarMeasure _ _ + exact Measure.integral_comp_smul (volume : Measure Spacetime) (oneParticleIntegrand m F p) R + have hconst : R ^ 3 * |(R ^ Module.finrank ℝ Spacetime)⁻¹| = R⁻¹ := by + rw [finrank_spacetime, abs_of_pos (inv_pos.mpr (pow_pos hR 4))] + have h4 : R ^ 4 = R ^ 3 * R := by ring + rw [h4, mul_inv, mul_inv_cancel_left₀ (pow_ne_zero 3 hR.ne')] + calc oneParticle (m * R) (dilate R F) (R • p) + = ∫ y : Spacetime, ((R ^ 3 : ℝ) : ℂ) * oneParticleIntegrand m F p (R • y) := by + rw [oneParticle_eq_integral] + refine integral_congr_ae (Filter.Eventually.of_forall fun y => ?_) + exact hpt y + _ = ((R ^ 3 : ℝ) : ℂ) * ∫ y : Spacetime, oneParticleIntegrand m F p (R • y) := + integral_const_mul _ _ + _ = ((R ^ 3 : ℝ) : ℂ) * (|(R ^ Module.finrank ℝ Spacetime)⁻¹| • oneParticle m F p) := by + rw [hcov] + _ = ((R⁻¹ : ℝ) : ℂ) * oneParticle m F p := by + rw [Complex.real_smul, ← mul_assoc, ← Complex.ofReal_mul, hconst] + +/-! ### (b) The one-particle inner product is dilation invariant -/ + + +/-- The integrand of `oneParticleInner m F G`. -/ +noncomputable def oneParticleInnerIntegrand (m : ℝ) (F G : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + conj (oneParticle m F p) * oneParticle m G p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) + + +theorem oneParticleInnerIntegrand_dilate (m : ℝ) {R : ℝ} (hR : 0 < R) (F G : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + oneParticleInnerIntegrand (m * R) (dilate R F) (dilate R G) (R • p) = + ((R ^ 3)⁻¹ : ℝ) • oneParticleInnerIntegrand m F G p := by + have hw : (1 / (2 * (2 * Real.pi) ^ 3 * dispersion (m * R) (R • p)) : ℝ) = + R⁻¹ * (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p)) := by + rw [dispersion_smul m hR.le p] + ring1 + have hc : ((R ^ 3)⁻¹ : ℝ) = R⁻¹ * R⁻¹ * R⁻¹ := by + ring1 + -- `r • z = ↑r * z` for `r : ℝ`, `z : ℂ` (stated here so that `rw [hsmul]` matches syntactically). + have hsmul : ((R ^ 3)⁻¹ : ℝ) • oneParticleInnerIntegrand m F G p = + (((R ^ 3)⁻¹ : ℝ) : ℂ) * oneParticleInnerIntegrand m F G p := + Complex.real_smul + rw [hsmul] + change conj (oneParticle (m * R) (dilate R F) (R • p)) * oneParticle (m * R) (dilate R G) + (R • p) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion (m * R) (R • p)) : ℝ) : ℂ) = + (((R ^ 3)⁻¹ : ℝ) : ℂ) * (conj (oneParticle m F p) * oneParticle m G p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)) + rw [oneParticle_dilate m hR F p, oneParticle_dilate m hR G p, hw, hc, map_mul, + Complex.conj_ofReal] + simp only [Complex.ofReal_mul] + ring1 + +/-- `⟨κ_{mR} D_R F, κ_{mR} D_R G⟩ = ⟨κ_m F, κ_m G⟩` for `R > 0`. -/ +theorem oneParticleInner_dilate (m : ℝ) {R : ℝ} (hR : 0 < R) (F G : RealTestFunction) : + oneParticleInner (m * R) (dilate R F) (dilate R G) = oneParticleInner m F G := by + have hR3 : (R ^ 3 : ℝ) ≠ 0 := pow_ne_zero 3 hR.ne' + -- Change of variables `𝐪 = R 𝐩` in `d³p` (statement elaborated here; `exact`-style term + -- matches `integral_comp_smul` up to defeq, `oneParticleInner` unfolds to the integral). + have hcov : ∫ p : EuclideanSpace ℝ (Fin 3), + oneParticleInnerIntegrand (m * R) (dilate R F) (dilate R G) (R • p) = + |(R ^ Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)))⁻¹| • + oneParticleInner (m * R) (dilate R F) (dilate R G) := + Measure.integral_comp_smul (volume : Measure (EuclideanSpace ℝ (Fin 3))) + (oneParticleInnerIntegrand (m * R) (dilate R F) (dilate R G)) R + have habs : |(R ^ Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)))⁻¹| = (R ^ 3)⁻¹ := by + rw [finrank_momentum] + exact abs_of_pos (inv_pos.mpr (pow_pos hR 3)) + have hpt : ∫ p : EuclideanSpace ℝ (Fin 3), + oneParticleInnerIntegrand (m * R) (dilate R F) (dilate R G) (R • p) = + ((R ^ 3)⁻¹ : ℝ) • oneParticleInner m F G := by + calc ∫ p : EuclideanSpace ℝ (Fin 3), + oneParticleInnerIntegrand (m * R) (dilate R F) (dilate R G) (R • p) + = ∫ p, ((R ^ 3)⁻¹ : ℝ) • oneParticleInnerIntegrand m F G p := by + refine integral_congr_ae (Filter.Eventually.of_forall fun p => ?_) + exact oneParticleInnerIntegrand_dilate m hR F G p + _ = ((R ^ 3)⁻¹ : ℝ) • ∫ p, oneParticleInnerIntegrand m F G p := + integral_smul _ _ + _ = ((R ^ 3)⁻¹ : ℝ) • oneParticleInner m F G := rfl + have key : ((R ^ 3)⁻¹ : ℝ) • oneParticleInner (m * R) (dilate R F) (dilate R G) = + ((R ^ 3)⁻¹ : ℝ) • oneParticleInner m F G := by + rw [← hpt, hcov, habs] + -- Cancel the nonzero real factor `(R³)⁻¹` (needs only the `MulAction ℝ ℂ`). + calc oneParticleInner (m * R) (dilate R F) (dilate R G) + = (R ^ 3 : ℝ) • (((R ^ 3)⁻¹ : ℝ) • oneParticleInner (m * R) (dilate R F) (dilate R G)) := + (smul_inv_smul₀ hR3 (oneParticleInner (m * R) (dilate R F) (dilate R G))).symm + _ = (R ^ 3 : ℝ) • (((R ^ 3)⁻¹ : ℝ) • oneParticleInner m F G) := by rw [key] + _ = oneParticleInner m F G := smul_inv_smul₀ hR3 (oneParticleInner m F G) + +/-- `⟨κ_m D_{R⁻¹} F, κ_m D_{R⁻¹} G⟩ = ⟨κ_{mR} F, κ_{mR} G⟩` for `R > 0`. -/ +theorem oneParticleInner_dilate_inv (m : ℝ) {R : ℝ} (hR : 0 < R) (F G : RealTestFunction) : + oneParticleInner m (dilate R⁻¹ F) (dilate R⁻¹ G) = oneParticleInner (m * R) F G := by + have h := oneParticleInner_dilate (m * R) (inv_pos.mpr hR) F G + rwa [mul_inv_cancel_right₀ hR.ne' m] at h + + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + + +/-- The dilated vacuum system of mass `mR`: `W'(F) = W(D_{R⁻¹} F)`, same vacuum. -/ +noncomputable def FreeFieldVacuum.dilated {m : ℝ} (V : FreeFieldVacuum m H) {R : ℝ} + (hR : 0 < R) : FreeFieldVacuum (m * R) H where + weyl F := V.weyl (dilate R⁻¹ F) + vacuum := V.vacuum + weyl_mem_unitary F := V.weyl_mem_unitary (dilate R⁻¹ F) + weyl_mul F G := by + show V.weyl (dilate R⁻¹ F) * V.weyl (dilate R⁻¹ G) = + Complex.exp (-(Complex.I * ((oneParticleInner (m * R) F G).im : ℂ))) • + V.weyl (dilate R⁻¹ (F + G)) + rw [dilate_add R⁻¹ F G, ← oneParticleInner_dilate_inv m hR F G] + exact V.weyl_mul (dilate R⁻¹ F) (dilate R⁻¹ G) + vacuum_norm := V.vacuum_norm + vacuum_weyl F := by + change ⟪V.vacuum, V.weyl (dilate R⁻¹ F) V.vacuum⟫_ℂ = + ((Real.exp (-((oneParticleInner (m * R) F F).re / 2)) : ℝ) : ℂ) + rw [← oneParticleInner_dilate_inv m hR F F] + exact V.vacuum_weyl (dilate R⁻¹ F) + cyclic := by + have hrange : (Set.range fun F => V.weyl (dilate R⁻¹ F) V.vacuum) = + Set.range fun F => V.weyl F V.vacuum := by + ext x + constructor + · rintro ⟨F, rfl⟩ + exact ⟨dilate R⁻¹ F, rfl⟩ + · rintro ⟨F, rfl⟩ + exact ⟨dilate R F, congrArg (fun K => V.weyl K V.vacuum) (dilate_inv_dilate hR.ne' F)⟩ + change (Submodule.span ℂ (Set.range fun F => V.weyl (dilate R⁻¹ F) V.vacuum)).topologicalClosure + = ⊤ + rw [hrange] + exact V.cyclic + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Dilation.lean b/LeanPool/VacuumBellSeparation/FreeField/Dilation.lean new file mode 100644 index 0000000000..f01fd5abc8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Dilation.lean @@ -0,0 +1,144 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.DilatedVacuumConstruction +public import LeanPool.VacuumBellSeparation.FreeField.Uniqueness +public import LeanPool.VacuumBellSeparation.FreeField.Statements + +/-! +# Lemma 2.1 (dilation) + +For `R > 0` the dilation of a real test function is `(D_R F)(y) = R³ F(R y)`. Then + +* `oneParticle_dilate`: `κ_{mR}(D_R F)(R 𝐩) = R⁻¹ κ_m F(𝐩)` (substitution `x = R y` in `d⁴x`); +* `oneParticleInner_dilate`: `⟨κ_{mR} D_R F, κ_{mR} D_R G⟩ = ⟨κ_m F, κ_m G⟩` (substitution + `𝐪 = R 𝐩` in `d³p`, with `ω_{mR}(R 𝐩) = R ω_m(𝐩)`); +* `FreeFieldVacuum.dilated`: from a vacuum system `V` of mass `m`, the vacuum system of mass + `mR` with `W'(F) = W(D_{R⁻¹} F)` and the same vacuum; +* `FreeFieldVacuum.freeFieldBell_dilated`: `β` of the dilated system for `(1, L/R)` equals + `β_m(R, L)` of `V` (the local algebras of `D_1`, `D_1 + (0, (L/R)𝐞₁)` for `V'` are those of + `D_R`, `D_R + (0, L𝐞₁)` for `V`); +* `lemma_2_1 : Lemma_2_1`, with `FreeFieldVacuum.freeFieldBell_eq`, and + `freeFieldBell_eq_dilated`, the same identity without the hypotheses `0 < m`, `0 < L`. + +The manuscript's source transformation (2.5) acts on time-zero data `(f, g)`; the model uses +spacetime test functions, so the dilation-invariance of the one-particle inner product (its real +part is the vacuum covariance and its imaginary part half the symplectic form, as in (2.6)) and +the vacuum-preserving identification of local algebras are proved here in that formulation. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +/-! ### The dilation of test functions -/ + +theorem dilate_apply (c : ℝ) (F : RealTestFunction) (y : Spacetime) : + (dilate c F).1 y = c ^ 3 * F.1 (c • y) := rfl + +/-- `c x ∈ tsupport F` for every `x ∈ tsupport (D_c F)`. -/ +theorem mem_tsupport_dilate {c : ℝ} {F : RealTestFunction} {x : Spacetime} + (hx : x ∈ tsupport (dilate c F).1) : c • x ∈ tsupport F.1 := by + have h1 : tsupport (dilate c F).1 ⊆ tsupport (fun y : Spacetime => F.1 (c • y)) := + tsupport_mul_subset_right + have h2 : tsupport (fun y : Spacetime => F.1 (c • y)) ⊆ + (fun y : Spacetime => c • y) ⁻¹' tsupport F.1 := + tsupport_comp_subset_preimage F.1 (continuous_const_smul c) + exact h2 (h1 hx) + +/-! ### Dimension of spacetime and the dispersion relation under dilations -/ + +theorem oneParticleInner_eq_integral (m : ℝ) (F G : RealTestFunction) : + oneParticleInner m F G = ∫ p, oneParticleInnerIntegrand m F G p := rfl + +/-! ### (c) Double cones under dilations -/ + +theorem smul_mem_doubleCone_iff {R : ℝ} (hR : 0 < R) (a x : Spacetime) (r : ℝ) : + R • x ∈ doubleCone (R • a) (R * r) ↔ x ∈ doubleCone a r := by + have h1 : |R * x.1 - R * a.1| = R * |x.1 - a.1| := by + rw [← mul_sub, abs_mul, abs_of_pos hR] + have h2 : ‖R • x.2 - R • a.2‖ = R * ‖x.2 - a.2‖ := by + rw [← smul_sub, norm_smul, Real.norm_eq_abs, abs_of_pos hR] + change |R * x.1 - R * a.1| + ‖R • x.2 - R • a.2‖ < R * r ↔ |x.1 - a.1| + ‖x.2 - a.2‖ < r + rw [h1, h2, ← mul_add] + constructor + · intro h + exact lt_of_mul_lt_mul_left h hR.le + · intro h + exact mul_lt_mul_of_pos_left h hR + +theorem smul_centre {R : ℝ} (hR : R ≠ 0) (L : ℝ) : + R • (((0 : ℝ), (L / R) • e₁) : Spacetime) = ((0 : ℝ), L • e₁) := by + refine Prod.ext ?_ ?_ + · change R * 0 = 0 + exact mul_zero R + · change R • (L / R) • e₁ = L • e₁ + rw [smul_smul, mul_div_cancel₀ L hR] + +/-! ### (d) The dilated vacuum system -/ + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem FreeFieldVacuum.localAlgebra_dilated {m : ℝ} (V : FreeFieldVacuum m H) {R : ℝ} + (hR : 0 < R) (a : Spacetime) (r : ℝ) : + localAlgebra (V.dilated hR) (doubleCone a r) = + localAlgebra V (doubleCone (R • a) (R * r)) := by + unfold localAlgebra + congr 1 + ext T + constructor + · rintro ⟨F, hF, rfl⟩ + refine ⟨dilate R⁻¹ F, ?_, rfl⟩ + intro x hx + have h3 := (smul_mem_doubleCone_iff hR a (R⁻¹ • x) r).mpr (hF (mem_tsupport_dilate hx)) + rwa [smul_inv_smul₀ hR.ne' x] at h3 + · rintro ⟨G, hG, rfl⟩ + refine ⟨dilate R G, ?_, ?_⟩ + · intro x hx + exact (smul_mem_doubleCone_iff hR a x r).mp (hG (mem_tsupport_dilate hx)) + · change V.weyl G = V.weyl (dilate R⁻¹ (dilate R G)) + rw [dilate_inv_dilate hR.ne' G] + +/-- `β` of the dilated system for `(1, L/R)` is `β_m(R, L)` of `V`. -/ +theorem FreeFieldVacuum.freeFieldBell_dilated {m : ℝ} (V : FreeFieldVacuum m H) {R : ℝ} + (hR : 0 < R) (L : ℝ) : + freeFieldBell (V.dilated hR) 1 (L / R) = freeFieldBell V R L := by + have hA : localAlgebra (V.dilated hR) (doubleCone 0 1) = localAlgebra V (doubleCone 0 R) := by + rw [V.localAlgebra_dilated hR, smul_zero, mul_one] + have hB : localAlgebra (V.dilated hR) (doubleCone ((0 : ℝ), (L / R) • e₁) 1) = + localAlgebra V (doubleCone ((0 : ℝ), L • e₁) R) := by + rw [V.localAlgebra_dilated hR, mul_one, smul_centre hR.ne' L] + change bellCorrelation (vectorState V.vacuum V.vacuum_norm) + (localAlgebra (V.dilated hR) (doubleCone 0 1)) + (localAlgebra (V.dilated hR) (doubleCone ((0 : ℝ), (L / R) • e₁) 1)) = + bellCorrelation (vectorState V.vacuum V.vacuum_norm) + (localAlgebra V (doubleCone 0 R)) (localAlgebra V (doubleCone ((0 : ℝ), L • e₁) R)) + rw [hA, hB] + +/-! ### (e) Lemma 2.1 -/ + +/-- **Lemma 2.1 (dilation)**: `β_m(R, L) = β_{mR}(1, L/R)` for any vacuum systems. -/ +theorem lemma_2_1 : Lemma_2_1 := by + intro m R L _ hR _ H _ _ _ V H' _ _ _ V' + exact (V.freeFieldBell_dilated hR L).symm.trans + (FreeFieldVacuum.freeFieldBell_eq (V.dilated hR) V' 1 (L / R)) + +/-- Lemma 2.1 without the hypotheses `0 < m` and `0 < L` of `Lemma_2_1` (the manuscript states +the identity for every separation): `β_m(R, L) = β_{mR}(1, L/R)` for `R > 0` and any two vacuum +systems. -/ +theorem freeFieldBell_eq_dilated {m R : ℝ} (hR : 0 < R) (L : ℝ) (V : FreeFieldVacuum m H) + {H' : Type*} [NormedAddCommGroup H'] [InnerProductSpace ℂ H'] [CompleteSpace H'] + (V' : FreeFieldVacuum (m * R) H') : + freeFieldBell V R L = freeFieldBell V' 1 (L / R) := + (V.freeFieldBell_dilated hR L).symm.trans + (FreeFieldVacuum.freeFieldBell_eq (V.dilated hR) V' 1 (L / R)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/DistributionFourierNormalization.lean b/LeanPool/VacuumBellSeparation/FreeField/DistributionFourierNormalization.lean new file mode 100644 index 0000000000..1abedc1e3f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/DistributionFourierNormalization.lean @@ -0,0 +1,94 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFourier +public import Mathlib.Analysis.Distribution.TemperedDistribution + +/-! +# Frequency normalization for actual tempered distributions + +The source convention uses `exp(-i p·x)`. To apply Mathlib's inverse Fourier +transform, its momentum distribution must represent `ξ ↦ F(2πξ)`. The +transpose of inverse test scaling includes the actual three-dimensional +Jacobian; this file proves its value on regular Schwartz distributions. +-/ + +@[expose] public section + +open MeasureTheory +open scoped SchwartzMap FourierTransform + +namespace VacuumBellSeparation + +/-- Actual positive scalar change of coordinates in three-dimensional Schwartz space. -/ +noncomputable def spatialSchwartzScale (c : ℝ) (hc : 0 < c) : + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ →L[ℂ] + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + SchwartzMap.compCLMOfContinuousLinearEquiv ℂ + (ContinuousLinearEquiv.smulLeft (R₁ := ℝ) (M₁ := EuclideanSpace ℝ (Fin 3)) + (Units.mk0 c hc.ne')) + +@[simp] theorem spatialSchwartzScale_apply (c : ℝ) (hc : 0 < c) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + spatialSchwartzScale c hc φ p = φ (c • p) := rfl + +/-- Distributional scaling representing `F(c·)`, including its Jacobian. -/ +noncomputable def spatialDistributionScale (c : ℝ) (hc : 0 < c) : + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ →L[ℂ] + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := + (((c ^ 3)⁻¹ : ℝ) : ℂ) • PointwiseConvergenceCLM.precomp ℂ + (spatialSchwartzScale c⁻¹ (inv_pos.mpr hc)) + +theorem spatialDistributionScale_apply (c : ℝ) (hc : 0 < c) + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + spatialDistributionScale c hc T φ = + (((c ^ 3)⁻¹ : ℝ) : ℂ) * T (spatialSchwartzScale c⁻¹ (inv_pos.mpr hc) φ) := rfl + +/-- The transpose and Jacobian produce the claimed literal regular distribution. -/ +theorem spatialDistributionScale_coe (c : ℝ) (hc : 0 < c) + (f : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + spatialDistributionScale c hc (f : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) = + (spatialSchwartzScale c hc f : + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) := by + ext φ + rw [spatialDistributionScale_apply, SchwartzMap.coe_apply, SchwartzMap.coe_apply] + simp only [spatialSchwartzScale_apply, smul_eq_mul] + have h := Measure.integral_comp_smul volume + (fun p : EuclideanSpace ℝ (Fin 3) => φ (c⁻¹ • p) * f p) c + rw [finrank_momentum, abs_of_pos (inv_pos.mpr (pow_pos hc 3)), Complex.real_smul] at h + simpa only [inv_smul_smul₀ hc.ne'] using h.symm + +/-- Convert the source frequency convention and then apply the actual inverse Fourier map. -/ +noncomputable def sourceInverseFourier : + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ →L[ℂ] + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := + (FourierTransform.fourierInvCLM ℂ _).comp + (spatialDistributionScale (2 * Real.pi) (by positivity)) + +theorem sourceInverseFourier_apply + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) : + sourceInverseFourier T = + 𝓕⁻ (spatialDistributionScale (2 * Real.pi) (by positivity) T) := rfl + +/-- On literal compact sources the complete normalization returns the original +position-space function, as an actual tempered distribution. -/ +theorem sourceInverseFourier_spatialFourier (f : SpatialTestFunction) : + sourceInverseFourier (spatialFourierSchwartz f : + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) = + (spatialSchwartz f : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) := by + have hscale : spatialSchwartzScale (2 * Real.pi) (by positivity) + (spatialFourierSchwartz f) = 𝓕 (spatialSchwartz f) := by + ext ξ + simp only [spatialSchwartzScale_apply, spatialFourierSchwartz_apply, + spatialFourier_two_pi] + rw [sourceInverseFourier_apply, spatialDistributionScale_coe, hscale, + ← TemperedDistribution.fourier_toTemperedDistributionCLM_eq, + FourierTransform.fourierInv_fourier_eq] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/DistributionScalingMultiplier.lean b/LeanPool/VacuumBellSeparation/FreeField/DistributionScalingMultiplier.lean new file mode 100644 index 0000000000..13032d39a7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/DistributionScalingMultiplier.lean @@ -0,0 +1,76 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceDistributions + +/-! +# Normalized Fourier relation for the actual completed source distributions + +Coordinate scaling commutes with a genuine temperate multiplier by scaling +its actual symbol. Thus the kernel equation for the physical source becomes +the equation between the Fourier transforms of its position distributions, +with the energy evaluated at `2πξ`. +-/ + +@[expose] public section + +open scoped SchwartzMap FourierTransform + +namespace VacuumBellSeparation + +theorem hasTemperateGrowth_scale_symbol (c : ℝ) + {g : EuclideanSpace ℝ (Fin 3) → ℂ} (hg : Function.HasTemperateGrowth g) : + Function.HasTemperateGrowth (fun p => g (c • p)) := + hg.comp (by fun_prop) + +theorem spatialDistributionScale_smulLeftCLM + (c : ℝ) (hc : 0 < c) (g : EuclideanSpace ℝ (Fin 3) → ℂ) + (hg : Function.HasTemperateGrowth g) + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) : + spatialDistributionScale c hc (TemperedDistribution.smulLeftCLM ℂ g T) = + TemperedDistribution.smulLeftCLM ℂ (fun p => g (c • p)) + (spatialDistributionScale c hc T) := by + ext φ + rw [spatialDistributionScale_apply, TemperedDistribution.smulLeftCLM_apply_apply, + TemperedDistribution.smulLeftCLM_apply_apply, spatialDistributionScale_apply] + congr 2 + ext p + simp only [SchwartzMap.smulLeftCLM_apply_apply hg, + SchwartzMap.smulLeftCLM_apply_apply (hasTemperateGrowth_scale_symbol c hg), + spatialSchwartzScale_apply, smul_inv_smul₀ hc.ne'] + +theorem fourier_sourceInverseFourier + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) : + 𝓕 (sourceInverseFourier T) = spatialDistributionScale (2 * Real.pi) (by positivity) T := by + rw [sourceInverseFourier_apply, FourierTransform.fourier_fourierInv_eq] + +/-- The exact normalized-frequency multiplier, with no hidden change of mass. -/ +noncomputable def normalizedSourceSecondMultiplier (m : ℝ) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + sourceSecondInverseMultiplier m ((2 * Real.pi) • p) + +theorem hasTemperateGrowth_normalizedSourceSecondMultiplier {m : ℝ} (hm : 0 < m) : + Function.HasTemperateGrowth (normalizedSourceSecondMultiplier m) := + hasTemperateGrowth_scale_symbol (2 * Real.pi) + (hasTemperateGrowth_sourceSecondInverseMultiplier hm) + +theorem complexSource_fourier_distribution_relation_of_kernel + {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + (z : ComplexSourceHilbert hm U) (hz : complexSourceMap hm U z = 0) : + 𝓕 (complexSourceFirstDistribution hm U z) + + TemperedDistribution.smulLeftCLM ℂ (normalizedSourceSecondMultiplier m) + (𝓕 (complexSourceSecondDistribution hm U z)) = 0 := by + have h := congrArg (spatialDistributionScale (2 * Real.pi) (by positivity)) + (complexSource_distribution_relation_of_kernel hm U z hz) + rw [map_add, map_zero, spatialDistributionScale_smulLeftCLM _ _ _ + (hasTemperateGrowth_sourceSecondInverseMultiplier hm)] at h + rw [complexSourceFirstDistribution_fourier, complexSourceSecondDistribution_fourier, + fourier_sourceInverseFourier, fourier_sourceInverseFourier] + exact h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/EuclideanSpacetimeComposition.lean b/LeanPool/VacuumBellSeparation/FreeField/EuclideanSpacetimeComposition.lean new file mode 100644 index 0000000000..b3c69893fa --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/EuclideanSpacetimeComposition.lean @@ -0,0 +1,50 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.EuclideanWedgeContainment +public import Mathlib.Analysis.Normed.Module.FiniteDimension + +/-! +# Composition and continuity of the genuine Euclidean spacetime norm + +All operator norms act on the actual WithLp 2 four-space. Finite +dimensional pointwise continuity is sufficient for operator-norm +continuity, as required for compact Lorentz parameter families. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem euclideanSpacetimeMap_trans_clm (Λ Γ : Spacetime ≃L[ℝ] Spacetime) : + (euclideanSpacetimeMap (Λ.trans Γ)).toContinuousLinearMap = + (euclideanSpacetimeMap Γ).toContinuousLinearMap.comp + (euclideanSpacetimeMap Λ).toContinuousLinearMap := by + ext x + simp only [euclideanSpacetimeMap, ContinuousLinearEquiv.coe_coe, + ContinuousLinearEquiv.trans_apply, ContinuousLinearMap.comp_apply, + ContinuousLinearEquiv.symm_apply_apply] + +theorem spacetimeEuclideanOperatorNorm_trans_le (Λ Γ : Spacetime ≃L[ℝ] Spacetime) : + spacetimeEuclideanOperatorNorm (Λ.trans Γ) ≤ + spacetimeEuclideanOperatorNorm Γ * spacetimeEuclideanOperatorNorm Λ := by + unfold spacetimeEuclideanOperatorNorm + rw [euclideanSpacetimeMap_trans_clm] + exact ContinuousLinearMap.opNorm_comp_le _ _ + +theorem continuous_spacetimeEuclideanOperatorNorm_family + {A : Type*} [TopologicalSpace A] (Λ : A → Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ x : Spacetime, Continuous fun a => Λ a x) : + Continuous (fun a => spacetimeEuclideanOperatorNorm (Λ a)) := by + have h : Continuous (fun a => (euclideanSpacetimeMap (Λ a)).toContinuousLinearMap) := by + apply continuous_clm_apply.mpr + intro x + exact spacetimeEuclideanEquiv.continuous.comp (hΛ (spacetimeEuclideanEquiv.symm x)) + exact h.norm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/EuclideanWedgeContainment.lean b/LeanPool/VacuumBellSeparation/FreeField/EuclideanWedgeContainment.lean new file mode 100644 index 0000000000..d17a5762c2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/EuclideanWedgeContainment.lean @@ -0,0 +1,71 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeGeometry +public import Mathlib.Analysis.Normed.Lp.ProdLp + +/-! +# The true Euclidean operator norm and containing transformed wedges + +The physical spacetime carrier has the product maximum norm. Conjugating +through WithLp 2 gives its genuine Euclidean four-norm and the operator +norm used in Section 5.1, with the manuscript's square-root-two constant. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Euclidean spacetime with underlying type `WithLp 2 (ℝ × EuclideanSpace ℝ (Fin 3))`. -/ +abbrev EuclideanSpacetime := WithLp 2 (ℝ × EuclideanSpace ℝ (Fin 3)) + +/-- Identify spacetime with the Euclidean product of the time axis and three spatial coordinates. -/ +noncomputable def spacetimeEuclideanEquiv : Spacetime ≃L[ℝ] EuclideanSpacetime := + (WithLp.prodContinuousLinearEquiv 2 ℝ ℝ (EuclideanSpace ℝ (Fin 3))).symm + +theorem norm_spacetimeEuclideanEquiv (x : Spacetime) : + ‖spacetimeEuclideanEquiv x‖ = spacetimeEuclideanNorm x := by + rw [WithLp.prod_norm_eq_of_L2] + change Real.sqrt (‖x.1‖ ^ 2 + ‖x.2‖ ^ 2) = _ + rw [Real.norm_eq_abs, sq_abs] + rfl + +/-- Euclidean spacetime map obtained from `spacetimeEuclideanEquiv.symm.trans`. -/ +noncomputable def euclideanSpacetimeMap (Λ : Spacetime ≃L[ℝ] Spacetime) : + EuclideanSpacetime ≃L[ℝ] EuclideanSpacetime := + spacetimeEuclideanEquiv.symm.trans (Λ.trans spacetimeEuclideanEquiv) + +/-- Spacetime Euclidean operator norm. -/ +noncomputable def spacetimeEuclideanOperatorNorm (Λ : Spacetime ≃L[ℝ] Spacetime) : ℝ := + ‖(euclideanSpacetimeMap Λ).toContinuousLinearMap‖ + +theorem spacetimeEuclideanOperatorNorm_nonneg (Λ : Spacetime ≃L[ℝ] Spacetime) : + 0 ≤ spacetimeEuclideanOperatorNorm Λ := norm_nonneg _ + +theorem spacetimeEuclideanNorm_map_le (Λ : Spacetime ≃L[ℝ] Spacetime) (x : Spacetime) : + spacetimeEuclideanNorm (Λ x) ≤ spacetimeEuclideanOperatorNorm Λ * spacetimeEuclideanNorm x := by + have h := (euclideanSpacetimeMap Λ).toContinuousLinearMap.le_opNorm + (spacetimeEuclideanEquiv x) + simpa only [euclideanSpacetimeMap, ContinuousLinearEquiv.trans_apply, + ContinuousLinearEquiv.coe_coe, ContinuousLinearEquiv.symm_apply_apply, + norm_spacetimeEuclideanEquiv, spacetimeEuclideanOperatorNorm] using h + +/-- Exact containing geometry for an arbitrary invertible real spacetime map. -/ +theorem doubleCone_subset_transformed_leftWedge + (Λ : Spacetime ≃L[ℝ] Spacetime) {R ℓ : ℝ} (hR : 0 < R) + (hℓ : Real.sqrt 2 * spacetimeEuclideanOperatorNorm Λ.symm < ℓ) : + doubleCone 0 R ⊆ Λ '' leftWedge (ℓ * R) := by + intro x hx + refine ⟨Λ.symm x, ?_, Λ.apply_symm_apply x⟩ + apply mem_leftWedge_of_euclidean_bound + ((spacetimeEuclideanNorm_map_le Λ.symm x).trans + (mul_le_mul_of_nonneg_left (spacetimeEuclideanNorm_lt_of_mem_doubleCone hx).le + (spacetimeEuclideanOperatorNorm_nonneg Λ.symm))) + simpa only [mul_assoc] using mul_lt_mul_of_pos_right hℓ hR + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/EvolutionGenerator.lean b/LeanPool/VacuumBellSeparation/FreeField/EvolutionGenerator.lean new file mode 100644 index 0000000000..910c5a4308 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/EvolutionGenerator.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionL2Derivative + +/-! +# The genuine massive generator and second derivative on the Schwartz core + +The first L² derivative is `i U(t) h f`. Differentiating the actual evolution of +the Schwartz datum `h f` gives the second derivative `-h² U(t)f`. At positive +mass the previously proved identity `h²=m²-Δ` gives the Klein–Gordon equation +in L². No unbounded-operator domain theorem is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory FourierTransform +open scoped SchwartzMap FourierTransform + +@[simp] theorem spatialSchwartz_toL2_smul (c : ℂ) (f : SpatialSchwartz) : + (c • f).toLp 2 volume = c • f.toLp 2 volume := + (SchwartzMap.toLpCLM ℂ ℂ 2 volume).map_smul c f + +@[simp] theorem spatialSchwartz_toL2_add (f g : SpatialSchwartz) : + (f + g).toLp 2 volume = f.toLp 2 volume + g.toLp 2 volume := + (SchwartzMap.toLpCLM ℂ ℂ 2 volume).map_add f g + +@[simp] theorem spatialSchwartz_toL2_sub (f g : SpatialSchwartz) : + (f - g).toLp 2 volume = f.toLp 2 volume - g.toLp 2 volume := + (SchwartzMap.toLpCLM ℂ ℂ 2 volume).map_sub f g + +@[simp] theorem spatialSchwartz_toL2_neg (f : SpatialSchwartz) : + (-f).toLp 2 volume = -f.toLp 2 volume := + (SchwartzMap.toLpCLM ℂ ℂ 2 volume).map_neg f + +theorem massiveSchwartzEvolution_commute_power (m t r : ℝ) (f : SpatialSchwartz) : + massiveSchwartzEvolution m t (massiveSchwartzPower m r f) = + massiveSchwartzPower m r (massiveSchwartzEvolution m t f) := by + unfold massiveSchwartzEvolution massiveSchwartzPower + rw [SchwartzMap.fourierMultiplierCLM_fourierMultiplierCLM_apply + (hasTemperateGrowth_massiveEvolutionPhase m t) + (hasTemperateGrowth_complex_massiveSchwartzSymbol m r), + SchwartzMap.fourierMultiplierCLM_fourierMultiplierCLM_apply + (hasTemperateGrowth_complex_massiveSchwartzSymbol m r) + (hasTemperateGrowth_massiveEvolutionPhase m t), mul_comm] + +theorem inverseFourier_massiveFrequencyDerivative (m t : ℝ) (f : SpatialSchwartz) : + 𝓕⁻ (massiveFrequencyDerivative m t (𝓕 f)) = + Complex.I • massiveSchwartzEvolution m t (massiveSchwartzPower m 1 f) := by + apply (fourierCLE ℂ SpatialSchwartz).injective + change 𝓕 (𝓕⁻ (massiveFrequencyDerivative m t (𝓕 f))) = + 𝓕 (Complex.I • massiveSchwartzEvolution m t (massiveSchwartzPower m 1 f)) + rw [fourier_fourierInv_eq, fourier_smul] + ext ξ + simp only [massiveFrequencyDerivative, smul_apply, + massiveFrequencyEvolution_apply, massiveFrequencyEnergy_apply, + fourier_massiveSchwartzEvolution, massiveSchwartzPower, + SchwartzMap.fourierMultiplierCLM_apply, fourier_fourierInv_eq, + SchwartzMap.smulLeftCLM_apply_apply (hasTemperateGrowth_complex_massiveSchwartzSymbol m 1), + smul_eq_mul] + +/-- First derivative in the actual physical position L² space. -/ +theorem hasDerivAt_massiveSchwartzEvolution_generator (m t : ℝ) (f : SpatialSchwartz) : + HasDerivAt (fun s => (massiveSchwartzEvolution m s f).toLp 2 volume) + (Complex.I • (massiveSchwartzEvolution m t (massiveSchwartzPower m 1 f)).toLp 2 volume) t + := by + simpa only [inverseFourier_massiveFrequencyDerivative, spatialSchwartz_toL2_smul] using + hasDerivAt_massiveSchwartzEvolution_toL2 m t f + +/-- The derivative field itself has the expected actual second derivative. -/ +theorem hasDerivAt_massiveSchwartzEvolution_generator_twice {m : ℝ} (hm : 0 < m) + (t : ℝ) (f : SpatialSchwartz) : + HasDerivAt + (fun s => Complex.I • + (massiveSchwartzEvolution m s (massiveSchwartzPower m 1 f)).toLp 2 volume) + (-(massiveSchwartzPower m 2 (massiveSchwartzEvolution m t f)).toLp 2 volume) t := by + have ht := (hasDerivAt_massiveSchwartzEvolution_generator m t + (massiveSchwartzPower m 1 f)).const_smul Complex.I + simpa only [Pi.smul_def, smul_smul, Complex.I_mul_I, neg_one_smul, massiveSchwartzPower_add hm, + show (1 : ℝ) + 1 = 2 by norm_num, massiveSchwartzEvolution_commute_power] using ht + +open Laplacian in +/-- The actual L² second derivative satisfies the massive Klein–Gordon equation. -/ +theorem hasDerivAt_massiveSchwartzEvolution_kleinGordon {m : ℝ} (hm : 0 < m) + (t : ℝ) (f : SpatialSchwartz) : + HasDerivAt + (fun s => Complex.I • + (massiveSchwartzEvolution m s (massiveSchwartzPower m 1 f)).toLp 2 volume) + ((Δ (massiveSchwartzEvolution m t f)).toLp 2 volume - + ((m ^ 2 : ℝ) : ℂ) • (massiveSchwartzEvolution m t f).toLp 2 volume) t := by + simpa only [massiveSchwartzPower_two hm, spatialSchwartz_toL2_sub, + spatialSchwartz_toL2_smul, neg_sub] using + hasDerivAt_massiveSchwartzEvolution_generator_twice hm t f + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/EvolutionL2Derivative.lean b/LeanPool/VacuumBellSeparation/FreeField/EvolutionL2Derivative.lean new file mode 100644 index 0000000000..3481fbe525 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/EvolutionL2Derivative.lean @@ -0,0 +1,145 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzL2Differentiation + +/-! +# Genuine L² differentiation of the real-time massive evolution + +The phase difference is bounded by `|s-t| |ω|`. Consequently the squared +difference-quotient residual is dominated by `4 |ω f|²`, an integrable function +for the actual Schwartz datum. The resulting derivative is transported through +the genuine L² Fourier isometry. No uniform spatial Schwartz estimate or +complex-time power series is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology FourierTransform +open scoped SchwartzMap FourierTransform + +theorem norm_massiveEvolutionPhase_sub_le (m s t : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) : + ‖massiveEvolutionPhase m s ξ - massiveEvolutionPhase m t ξ‖ ≤ + |s - t| * |massiveSchwartzSymbol m 1 ξ| := by + have heq : massiveEvolutionPhase m s ξ - massiveEvolutionPhase m t ξ = + massiveEvolutionPhase m t ξ * (massiveEvolutionPhase m (s - t) ξ - 1) := by + rw [mul_sub, mul_one, ← massiveEvolutionPhase_add, add_sub_cancel] + rw [heq, norm_mul, norm_massiveEvolutionPhase, one_mul] + have hb := Real.norm_exp_I_mul_ofReal_sub_one_le + (x := (s - t) * massiveSchwartzSymbol m 1 ξ) + simpa only [massiveEvolutionPhase, mul_comm Complex.I, Real.norm_eq_abs, abs_mul] using hb + +/-- The actual frequency-space Schwartz evolution. -/ +noncomputable def massiveFrequencyEvolution (m t : ℝ) (f : SpatialSchwartz) : SpatialSchwartz := + SchwartzMap.smulLeftCLM ℂ (massiveEvolutionPhase m t) f + +@[simp] theorem massiveFrequencyEvolution_apply (m t : ℝ) (f : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + massiveFrequencyEvolution m t f ξ = massiveEvolutionPhase m t ξ * f ξ := by + rw [massiveFrequencyEvolution, SchwartzMap.smulLeftCLM_apply_apply + (hasTemperateGrowth_massiveEvolutionPhase m t)] + rfl + +/-- Massive frequency energy defined as `SchwartzMap.smulLeftCLM ℂ (fun ξ => (massiveSchwartzSymbol +m 1 ξ : ℂ)) f`. -/ +noncomputable def massiveFrequencyEnergy (m : ℝ) (f : SpatialSchwartz) : SpatialSchwartz := + SchwartzMap.smulLeftCLM ℂ (fun ξ => (massiveSchwartzSymbol m 1 ξ : ℂ)) f + +@[simp] theorem massiveFrequencyEnergy_apply (m : ℝ) (f : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + massiveFrequencyEnergy m f ξ = (massiveSchwartzSymbol m 1 ξ : ℂ) * f ξ := by + rw [massiveFrequencyEnergy, SchwartzMap.smulLeftCLM_apply_apply + (hasTemperateGrowth_complex_massiveSchwartzSymbol m 1)] + rfl + +/-- Massive frequency derivative obtained from `Complex.I`. -/ +noncomputable def massiveFrequencyDerivative (m t : ℝ) (f : SpatialSchwartz) : SpatialSchwartz := + Complex.I • massiveFrequencyEvolution m t (massiveFrequencyEnergy m f) + +theorem norm_massiveFrequencyDerivative (m t : ℝ) (f : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + ‖massiveFrequencyDerivative m t f ξ‖ = ‖massiveFrequencyEnergy m f ξ‖ := by + simp only [massiveFrequencyDerivative, smul_apply, norm_smul, + Complex.norm_I, massiveFrequencyEvolution_apply, norm_mul, norm_massiveEvolutionPhase, + one_mul] + +theorem hasDerivAt_massiveFrequencyEvolution_apply (m t : ℝ) (f : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + HasDerivAt (fun s => massiveFrequencyEvolution m s f ξ) + (massiveFrequencyDerivative m t f ξ) t := by + convert (hasDerivAt_massiveEvolutionPhase m t ξ).mul_const (f ξ) using 1 + · simp only [massiveFrequencyEvolution_apply] + · simp only [massiveFrequencyDerivative, smul_apply, smul_eq_mul, + massiveFrequencyEvolution_apply, massiveFrequencyEnergy_apply] + ring + +theorem norm_slope_massiveFrequencyEvolution_le (m s t : ℝ) (hst : s ≠ t) + (f : SpatialSchwartz) (ξ : EuclideanSpace ℝ (Fin 3)) : + ‖(s - t)⁻¹ • (massiveFrequencyEvolution m s f ξ - + massiveFrequencyEvolution m t f ξ)‖ ≤ ‖massiveFrequencyEnergy m f ξ‖ := by + have hst' : |s - t| ≠ 0 := abs_ne_zero.mpr (sub_ne_zero.mpr hst) + simp only [massiveFrequencyEvolution_apply, ← sub_mul, norm_smul, norm_inv, + Real.norm_eq_abs, norm_mul, massiveFrequencyEnergy_apply, Complex.norm_real] + calc + |s - t|⁻¹ * (‖massiveEvolutionPhase m s ξ - massiveEvolutionPhase m t ξ‖ * ‖f ξ‖) + ≤ |s - t|⁻¹ * ((|s - t| * |massiveSchwartzSymbol m 1 ξ|) * ‖f ξ‖) := by + gcongr + exact norm_massiveEvolutionPhase_sub_le m s t ξ + _ = |massiveSchwartzSymbol m 1 ξ| * ‖f ξ‖ := by + field_simp [hst'] + +theorem integrable_massiveFrequencyDerivative_bound (m : ℝ) (f : SpatialSchwartz) : + Integrable (fun ξ => 4 * ‖massiveFrequencyEnergy m f ξ‖ ^ 2) := by + have h := (memLp_two_iff_integrable_sq_norm + (massiveFrequencyEnergy m f).continuous.aestronglyMeasurable).mp + ((massiveFrequencyEnergy m f).memLp 2) + exact h.const_mul 4 + +/-- The actual frequency evolution is differentiable as an L²-valued curve. -/ +theorem hasDerivAt_massiveFrequencyEvolution_toL2 (m t : ℝ) (f : SpatialSchwartz) : + HasDerivAt (fun s => (massiveFrequencyEvolution m s f).toLp 2) + ((massiveFrequencyDerivative m t f).toLp 2) t := by + apply hasDerivAt_spatialSchwartz_toL2_of_dominated + (fun s => massiveFrequencyEvolution m s f) (massiveFrequencyDerivative m t f) t + (hasDerivAt_massiveFrequencyEvolution_apply m t f) + (fun ξ => 4 * ‖massiveFrequencyEnergy m f ξ‖ ^ 2) + (integrable_massiveFrequencyDerivative_bound m f) + filter_upwards [self_mem_nhdsWithin] with s hs + refine Eventually.of_forall fun ξ => ?_ + have hst : s ≠ t := hs + have hq := norm_slope_massiveFrequencyEvolution_le m s t hst f ξ + have hr := norm_sub_le + ((s - t)⁻¹ • (massiveFrequencyEvolution m s f ξ - massiveFrequencyEvolution m t f ξ)) + (massiveFrequencyDerivative m t f ξ) + rw [norm_massiveFrequencyDerivative] at hr + calc + ‖(s - t)⁻¹ • (massiveFrequencyEvolution m s f ξ - + massiveFrequencyEvolution m t f ξ) - massiveFrequencyDerivative m t f ξ‖ ^ 2 + ≤ (2 * ‖massiveFrequencyEnergy m f ξ‖) ^ 2 := by + gcongr + linarith + _ = 4 * ‖massiveFrequencyEnergy m f ξ‖ ^ 2 := by ring + +/-- In physical position space the same derivative is the actual inverse Fourier +transform of `i ω exp(i t ω) f̂`, interpreted in L². -/ +theorem hasDerivAt_massiveSchwartzEvolution_toL2 (m t : ℝ) (f : SpatialSchwartz) : + HasDerivAt (fun s => (massiveSchwartzEvolution m s f).toLp 2) + ((𝓕⁻ (massiveFrequencyDerivative m t (𝓕 f))).toLp 2) t := by + have ht := (((Lp.fourierTransformₗᵢ (EuclideanSpace ℝ + (Fin 3)) ℂ).symm.toContinuousLinearEquiv.toContinuousLinearMap).restrictScalars + ℝ).hasFDerivAt.comp_hasDerivAt t + (hasDerivAt_massiveFrequencyEvolution_toL2 m t (𝓕 f)) + change HasDerivAt (fun s => 𝓕⁻ ((massiveFrequencyEvolution m s (𝓕 f)).toLp 2)) + (𝓕⁻ ((massiveFrequencyDerivative m t (𝓕 f)).toLp 2)) t at ht + simpa only [SchwartzMap.toLp_fourierInv_eq, massiveFrequencyEvolution, + massiveSchwartzEvolution, SchwartzMap.fourierMultiplierCLM_apply] using ht + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/EvolutionMassShellMeasure.lean b/LeanPool/VacuumBellSeparation/FreeField/EvolutionMassShellMeasure.lean new file mode 100644 index 0000000000..f8fcb9f2c3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/EvolutionMassShellMeasure.lean @@ -0,0 +1,124 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzEvolution +public import Mathlib.Analysis.Fourier.FourierTransformDeriv + +/-! +# The actual dispersion-graph measure for spacetime evolution + +The Fourier frequency graph is `(-h(ξ)/(2π), -ξ)`. Pushing forward Lebesgue +measure onto this graph permits direct reuse of the general Fourier-integral +smoothness theorem. Every required moment is proved integrable using actual +Schwartz multipliers and ordinary Schwartz momentum moments. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter +open scoped FourierTransform InnerProductSpace + +/-- Positive-signature coordinate pairing between two spacetime vectors. -/ +noncomputable def spacetimeEuclideanPairing : Spacetime →L[ℝ] Spacetime →L[ℝ] ℝ := + (ContinuousLinearMap.mul ℝ ℝ).bilinearComp + (ContinuousLinearMap.fst ℝ ℝ (EuclideanSpace ℝ (Fin 3))) + (ContinuousLinearMap.fst ℝ ℝ (EuclideanSpace ℝ (Fin 3))) + + (show Spacetime →L[ℝ] Spacetime →L[ℝ] ℝ from + (innerSL ℝ (E := EuclideanSpace ℝ (Fin 3)) : + EuclideanSpace ℝ (Fin 3) →L[ℝ] EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ).bilinearComp + (ContinuousLinearMap.snd ℝ ℝ (EuclideanSpace ℝ (Fin 3))) + (ContinuousLinearMap.snd ℝ ℝ (EuclideanSpace ℝ (Fin 3)))) + +@[simp] theorem spacetimeEuclideanPairing_apply (p x : Spacetime) : + spacetimeEuclideanPairing p x = p.1 * x.1 + ⟪p.2, x.2⟫_ℝ := rfl + +/-- Evolution graph time. -/ +noncomputable def evolutionGraphTime (m : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : ℝ := + -massiveSchwartzSymbol m 1 ξ / (2 * Real.pi) + +theorem hasTemperateGrowth_evolutionGraphTime (m : ℝ) : + Function.HasTemperateGrowth (evolutionGraphTime m) := by + simpa only [evolutionGraphTime, div_eq_mul_inv, Pi.mul_apply, Pi.neg_apply] using! + (hasTemperateGrowth_massiveSchwartzSymbol m 1).neg.mul + (Function.HasTemperateGrowth.const (2 * Real.pi)⁻¹) + +/-- Evolution frequency graph. -/ +noncomputable def evolutionFrequencyGraph (m : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : Spacetime := + (evolutionGraphTime m ξ, -ξ) + +theorem continuous_evolutionFrequencyGraph (m : ℝ) : Continuous (evolutionFrequencyGraph m) := + (hasTemperateGrowth_evolutionGraphTime m).1.continuous.prodMk continuous_id.neg + +/-- Evolution graph measure obtained from `Measure.map`. -/ +noncomputable def evolutionGraphMeasure (m : ℝ) : Measure Spacetime := + Measure.map (evolutionFrequencyGraph m) volume + +theorem integrable_evolutionGraphTime_moment (m : ℝ) (φ : SpatialSchwartz) (n : ℕ) : + Integrable (fun ξ => ‖evolutionGraphTime m ξ‖ ^ n * ‖φ ξ‖) := by + have ht : Function.HasTemperateGrowth (fun ξ => (evolutionGraphTime m ξ : ℂ) ^ n) := + (Complex.hasTemperateGrowth_ofReal.comp (hasTemperateGrowth_evolutionGraphTime m)).pow n + have hi := (SchwartzMap.smulLeftCLM ℂ (fun ξ => + (evolutionGraphTime m ξ : ℂ) ^ n) φ).integrable (μ := volume) |>.norm + simpa only [SchwartzMap.smulLeftCLM_apply_apply ht, smul_eq_mul, + norm_mul, norm_pow, Complex.norm_real] using hi + +theorem integrable_evolutionFrequencyGraph_moment (m : ℝ) (φ : SpatialSchwartz) (n : ℕ) : + Integrable (fun ξ => ‖evolutionFrequencyGraph m ξ‖ ^ n * ‖φ ξ‖) := by + have hi := (integrable_evolutionGraphTime_moment m φ n).add (φ.integrable_pow_mul volume n) + apply hi.mono' + (((continuous_evolutionFrequencyGraph m).norm.pow n).mul φ.continuous.norm).aestronglyMeasurable + exact Eventually.of_forall fun ξ => by + change ‖(‖evolutionFrequencyGraph m ξ‖ ^ n * ‖φ ξ‖ : ℝ)‖ ≤ + ‖evolutionGraphTime m ξ‖ ^ n * ‖φ ξ‖ + ‖ξ‖ ^ n * ‖φ ξ‖ + rw [Real.norm_eq_abs, abs_of_nonneg (mul_nonneg (pow_nonneg (norm_nonneg _) _) (norm_nonneg _))] + simp only [evolutionFrequencyGraph, Prod.norm_mk, norm_neg] + rcases le_total ‖evolutionGraphTime m ξ‖ ‖ξ‖ with h | h + · rw [max_eq_right h] + exact le_add_of_nonneg_left (by positivity) + · rw [max_eq_left h] + exact le_add_of_nonneg_right (by positivity) + +/-- All actual moments of the amplitude against the pushed-forward graph +measure are finite; no smoothness theorem is assumed in this statement. -/ +theorem integrable_evolutionGraphMeasure_moment (m : ℝ) (φ : SpatialSchwartz) (n : ℕ) : + Integrable (fun p : Spacetime => ‖p‖ ^ n * ‖φ (-p.2)‖) (evolutionGraphMeasure m) := by + have hc : Continuous (fun p : Spacetime => ‖p‖ ^ n * ‖φ (-p.2)‖) := + (continuous_id.norm.pow n).mul (φ.continuous.comp continuous_snd.neg).norm + apply (integrable_map_measure hc.aestronglyMeasurable + (continuous_evolutionFrequencyGraph m).measurable.aemeasurable).mpr + simpa only [Function.comp_def, evolutionFrequencyGraph, neg_neg] using + integrable_evolutionFrequencyGraph_moment m φ n + +/-- Spacetime phase evolution. -/ +noncomputable def spacetimePhaseEvolution (m : ℝ) (φ : SpatialSchwartz) : Spacetime → ℂ := + VectorFourier.fourierIntegral 𝐞 (evolutionGraphMeasure m) + spacetimeEuclideanPairing.toLinearMap₁₂ (fun p => φ (-p.2)) + +/-- Genuine joint spacetime smoothness, obtained from the proved graph moments. -/ +theorem contDiff_spacetimePhaseEvolution (m : ℝ) (φ : SpatialSchwartz) : + ContDiff ℝ (⊤ : ℕ∞) (spacetimePhaseEvolution m φ) := + VectorFourier.contDiff_fourierIntegral spacetimeEuclideanPairing + (fun n _ => integrable_evolutionGraphMeasure_moment m φ n) + +theorem spacetimePhaseEvolution_eq_integral (m : ℝ) (φ : SpatialSchwartz) (x : Spacetime) : + spacetimePhaseEvolution m φ x = + ∫ ξ, (𝐞 (-spacetimeEuclideanPairing (evolutionFrequencyGraph m ξ) x) : ℂ) * φ ξ := by + unfold spacetimePhaseEvolution VectorFourier.fourierIntegral evolutionGraphMeasure + rw [integral_map (continuous_evolutionFrequencyGraph m).measurable.aemeasurable] + · apply integral_congr_ae + exact Eventually.of_forall fun ξ => by + simp only [evolutionFrequencyGraph, neg_neg, Circle.smul_def, smul_eq_mul] + rfl + · apply Continuous.aestronglyMeasurable + exact ((Real.continuous_fourierChar.comp + ((spacetimeEuclideanPairing.flip x).continuous.neg)).smul + (φ.continuous.comp continuous_snd.neg)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/EvolutionPointwiseDerivative.lean b/LeanPool/VacuumBellSeparation/FreeField/EvolutionPointwiseDerivative.lean new file mode 100644 index 0000000000..fd40e0b59e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/EvolutionPointwiseDerivative.lean @@ -0,0 +1,140 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionSpacetimeSmooth +public import Mathlib.Analysis.Calculus.Deriv.Prod + +/-! +# Actual pointwise time derivatives of the massive evolution + +The graph Fourier derivative is differentiated using its proved zeroth and +first absolute moments. Evaluating the resulting continuous linear map in +the time direction gives the actual multiplier `i h`. This supplies scalar +pointwise derivatives independently of the earlier L² argument. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter FourierTransform +open scoped FourierTransform + +theorem integrable_evolutionGraph_amplitude (m : ℝ) (φ : SpatialSchwartz) : + Integrable (fun p : Spacetime => φ (-p.2)) (evolutionGraphMeasure m) := by + apply (integrable_norm_iff + (φ.continuous.comp continuous_snd.neg).aestronglyMeasurable).mp + simpa only [pow_zero, one_mul, Function.comp_apply, Pi.neg_apply] using + integrable_evolutionGraphMeasure_moment m φ 0 + +theorem integrable_evolutionGraph_fourierSMulRight (m : ℝ) (φ : SpatialSchwartz) : + Integrable (VectorFourier.fourierSMulRight spacetimeEuclideanPairing + (fun p : Spacetime => φ (-p.2))) (evolutionGraphMeasure m) := by + have hi : Integrable (fun p : Spacetime => ‖p‖ * ‖φ (-p.2)‖) (evolutionGraphMeasure m) := by + simpa only [pow_one] using integrable_evolutionGraphMeasure_moment m φ 1 + apply (hi.const_mul (2 * Real.pi * ‖spacetimeEuclideanPairing‖)).mono' + (integrable_evolutionGraph_amplitude m φ).1.fourierSMulRight + exact Eventually.of_forall fun p => by + simpa only [mul_assoc] using VectorFourier.norm_fourierSMulRight_le + spacetimeEuclideanPairing (fun p : Spacetime => φ (-p.2)) p + +theorem evolutionGraph_fourierSMulRight_time (m : ℝ) (φ : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + VectorFourier.fourierSMulRight spacetimeEuclideanPairing + (fun p : Spacetime => φ (-p.2)) (evolutionFrequencyGraph m ξ) (1, 0) = + (Complex.I • massiveFrequencyEnergy m φ) ξ := by + simp only [VectorFourier.fourierSMulRight_apply, spacetimeEuclideanPairing_apply, + evolutionFrequencyGraph, evolutionGraphTime, neg_neg, inner_zero_right, + mul_one, add_zero, smul_apply, massiveFrequencyEnergy_apply, + smul_eq_mul, Complex.real_smul] + push_cast + field_simp [Complex.ofReal_ne_zero.mpr Real.pi_ne_zero] + + +theorem evolutionGraph_time_derivative_integral (m t : ℝ) (φ : SpatialSchwartz) + (x : EuclideanSpace ℝ (Fin 3)) : + VectorFourier.fourierIntegral 𝐞 (evolutionGraphMeasure m) + spacetimeEuclideanPairing.toLinearMap₁₂ + (VectorFourier.fourierSMulRight spacetimeEuclideanPairing (fun p : Spacetime => φ (-p.2))) + (t, x) (1, 0) = spacetimePhaseEvolution m (Complex.I • massiveFrequencyEnergy m φ) (t, + x) := by + have hi := integrable_evolutionGraph_fourierSMulRight m φ + rw [Real.fourierIntegral_continuousLinearMap_apply' hi] + have hphase := (Real.fourierIntegral_convergent_iff' spacetimeEuclideanPairing (t, x)).mpr + (hi.apply_continuousLinearMap (1, 0)) + rw [VectorFourier.fourierIntegral, evolutionGraphMeasure] + change (∫ v : Spacetime, 𝐞 (-spacetimeEuclideanPairing v (t, x)) • + (VectorFourier.fourierSMulRight spacetimeEuclideanPairing + (fun p : Spacetime => φ (-p.2)) v) (1, 0) + ∂Measure.map (evolutionFrequencyGraph m) volume) = _ + rw [integral_map (continuous_evolutionFrequencyGraph m).measurable.aemeasurable hphase.1, + spacetimePhaseEvolution_eq_integral] + apply integral_congr_ae + exact Eventually.of_forall fun ξ => by + change (𝐞 (-spacetimeEuclideanPairing (evolutionFrequencyGraph m ξ) (t, x)) : ℂ) * + VectorFourier.fourierSMulRight spacetimeEuclideanPairing + (fun p : Spacetime => φ (-p.2)) (evolutionFrequencyGraph m ξ) (1, 0) = + (𝐞 (-spacetimeEuclideanPairing (evolutionFrequencyGraph m ξ) (t, x)) : ℂ) * + (Complex.I • massiveFrequencyEnergy m φ) ξ + exact congrArg (fun z : ℂ => + (𝐞 (-spacetimeEuclideanPairing (evolutionFrequencyGraph m ξ) (t, x)) : ℂ) * z) + (evolutionGraph_fourierSMulRight_time m φ ξ) + +theorem hasDerivAt_spacetimePhaseEvolution_time (m t : ℝ) (φ : SpatialSchwartz) + (x : EuclideanSpace ℝ (Fin 3)) : + HasDerivAt (fun s => spacetimePhaseEvolution m φ (s, x)) + (spacetimePhaseEvolution m (Complex.I • massiveFrequencyEnergy m φ) (t, x)) t := by + have hi : Integrable (fun p : Spacetime => ‖p‖ * ‖φ (-p.2)‖) (evolutionGraphMeasure m) := by + simpa only [pow_one] using integrable_evolutionGraphMeasure_moment m φ 1 + have h := (VectorFourier.hasFDerivAt_fourierIntegral spacetimeEuclideanPairing + (integrable_evolutionGraph_amplitude m φ) hi (t, x)).comp_hasDerivAt t + ((hasDerivAt_id t).prodMk (hasDerivAt_const t x)) + simp only [Function.comp_def, id_eq, evolutionGraph_time_derivative_integral] at h + change HasDerivAt (fun s => spacetimePhaseEvolution m φ (s, x)) + (spacetimePhaseEvolution m (Complex.I • massiveFrequencyEnergy m φ) (t, x)) t at h + exact h + +theorem spacetimePhaseEvolution_smul (m : ℝ) (c : ℂ) (φ : SpatialSchwartz) (x : Spacetime) : + spacetimePhaseEvolution m (c • φ) x = c * spacetimePhaseEvolution m φ x := by + simp only [spacetimePhaseEvolution_eq_integral, smul_apply, smul_eq_mul] + rw [← integral_const_mul] + apply integral_congr_ae + exact Eventually.of_forall fun _ => by ring + +theorem massiveFrequencyEnergy_fourier (m : ℝ) (f : SpatialSchwartz) : + massiveFrequencyEnergy m (𝓕 f) = 𝓕 (massiveSchwartzPower m 1 f) := by + rw [massiveSchwartzPower, SchwartzMap.fourierMultiplierCLM_apply, fourier_fourierInv_eq] + rfl + +/-- The actual scalar pointwise derivative of the literal spatial evolution. -/ +theorem hasDerivAt_massiveSchwartzEvolution_pointwise (m t : ℝ) (f : SpatialSchwartz) + (x : EuclideanSpace ℝ (Fin 3)) : + HasDerivAt (fun s => massiveSchwartzEvolution m s f x) + (Complex.I * massiveSchwartzEvolution m t (massiveSchwartzPower m 1 f) x) t := by + simpa only [spacetimePhaseEvolution_fourier_eq, spacetimePhaseEvolution_smul, + massiveFrequencyEnergy_fourier] using hasDerivAt_spacetimePhaseEvolution_time m t (𝓕 f) x + +theorem hasDerivAt_massiveSchwartzEvolution_neg_pointwise (m t : ℝ) (f : SpatialSchwartz) + (x : EuclideanSpace ℝ (Fin 3)) : + HasDerivAt (fun s => massiveSchwartzEvolution m (-s) f x) + (-(Complex.I * massiveSchwartzEvolution m (-t) (massiveSchwartzPower m 1 f) x)) t := by + simpa only [Function.comp_def, neg_one_smul] using + (hasDerivAt_massiveSchwartzEvolution_pointwise m (-t) f x).scomp t (hasDerivAt_neg t) + +theorem hasDerivAt_massiveSchwartzCauchy_pointwise (m t : ℝ) (f g : SpatialSchwartz) + (x : EuclideanSpace ℝ (Fin 3)) : + HasDerivAt (fun s => massiveSchwartzCauchy m s f g x) + (massiveSchwartzCauchyVelocity m t f g x) t := by + have h := (hasDerivAt_massiveSchwartzEvolution_pointwise m t (cauchyPositiveData m f g) x).add + (hasDerivAt_massiveSchwartzEvolution_neg_pointwise m t (cauchyNegativeData m f g) x) + simpa only [massiveSchwartzCauchy_eq_phases, add_apply, + massiveSchwartzCauchyVelocity, sub_apply, smul_apply, + smul_eq_mul, sub_eq_add_neg, neg_apply, smul_apply, + smul_eq_mul, Pi.add_def] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/EvolutionSpacetimeSmooth.lean b/LeanPool/VacuumBellSeparation/FreeField/EvolutionSpacetimeSmooth.lean new file mode 100644 index 0000000000..175de4eb93 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/EvolutionSpacetimeSmooth.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionMassShellMeasure +public import LeanPool.VacuumBellSeparation.FreeField.CauchyEvolutionL2 + +/-! +# Joint spacetime smoothness of the actual massive Cauchy solution + +The smooth graph Fourier integral is identified, with all 2π factors and +signs explicit, with the existing literal spatial Fourier-multiplier +evolution. The positive/negative frequency decomposition then proves joint +smoothness of the actual cosine/sine Cauchy solution. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +open MeasureTheory Filter FourierTransform +open scoped FourierTransform + +theorem evolutionFrequencyGraph_character (m : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) (x : Spacetime) : + (𝐞 (-spacetimeEuclideanPairing (evolutionFrequencyGraph m ξ) x) : ℂ) = + (𝐞 ⟪ξ, x.2⟫_ℝ : ℂ) * massiveEvolutionPhase m x.1 ξ := by + have hphase : + 2 * Real.pi * (-spacetimeEuclideanPairing (evolutionFrequencyGraph m ξ) x) = + 2 * Real.pi * ⟪ξ, x.2⟫_ℝ + x.1 * massiveSchwartzSymbol m 1 ξ := by + simp only [spacetimeEuclideanPairing_apply, evolutionFrequencyGraph, evolutionGraphTime, + inner_neg_left] + field_simp [Real.pi_ne_zero]; ring + simp only [Real.fourierChar_apply, massiveEvolutionPhase] + rw [hphase, Complex.ofReal_add, add_mul, Complex.exp_add] + +theorem spacetimePhaseEvolution_fourier_eq (m : ℝ) (f : SpatialSchwartz) (x : Spacetime) : + spacetimePhaseEvolution m (𝓕 f) x = massiveSchwartzEvolution m x.1 f x.2 := by + rw [spacetimePhaseEvolution_eq_integral, massiveSchwartzEvolution, + SchwartzMap.fourierMultiplierCLM_apply] + rw [SchwartzMap.fourierInv_coe, Real.fourierInv_eq] + apply integral_congr_ae + exact Eventually.of_forall fun ξ => by + change (𝐞 (-spacetimeEuclideanPairing (evolutionFrequencyGraph m ξ) x) : ℂ) * (𝓕 f) ξ = + (𝐞 ⟪ξ, x.2⟫_ℝ : ℂ) * + (SchwartzMap.smulLeftCLM ℂ (massiveEvolutionPhase m x.1) (𝓕 f)) ξ + rw [evolutionFrequencyGraph_character m ξ x, + SchwartzMap.smulLeftCLM_apply_apply (hasTemperateGrowth_massiveEvolutionPhase m x.1)] + simp only [smul_eq_mul, mul_assoc] + +/-- Genuine smoothness in all four real spacetime coordinates of the actual +positive-frequency evolution of arbitrary spatial Schwartz data. -/ +theorem contDiff_massiveSchwartzEvolution_spacetime (m : ℝ) (f : SpatialSchwartz) : + ContDiff ℝ (⊤ : ℕ∞) (fun x : Spacetime => massiveSchwartzEvolution m x.1 f x.2) := by + have heq : spacetimePhaseEvolution m (𝓕 f) = + (fun x : Spacetime => massiveSchwartzEvolution m x.1 f x.2) := + funext (spacetimePhaseEvolution_fourier_eq m f) + rw [← heq] + exact contDiff_spacetimePhaseEvolution m (𝓕 f) + +theorem contDiff_massiveSchwartzEvolution_neg_spacetime (m : ℝ) (f : SpatialSchwartz) : + ContDiff ℝ (⊤ : ℕ∞) (fun x : Spacetime => massiveSchwartzEvolution m (-x.1) f x.2) := by + have hneg : ContDiff ℝ (⊤ : ℕ∞) (fun x : Spacetime => (-x.1, x.2)) := + (contDiff_fst.neg).prodMk contDiff_snd + exact ContDiff.fun_comp + (f := fun x : Spacetime => (-x.1, x.2)) + (g := fun x : Spacetime => massiveSchwartzEvolution m x.1 f x.2) + (contDiff_massiveSchwartzEvolution_spacetime m f) hneg + +/-- The actual cosine/sine Cauchy solution is jointly smooth, with no +Schwartz-valued time-differentiability premise. -/ +theorem contDiff_massiveSchwartzCauchy_spacetime (m : ℝ) (f g : SpatialSchwartz) : + ContDiff ℝ (⊤ : ℕ∞) (fun x : Spacetime => massiveSchwartzCauchy m x.1 f g x.2) := by + have h := (contDiff_massiveSchwartzEvolution_spacetime m (cauchyPositiveData m f g)).add + (contDiff_massiveSchwartzEvolution_neg_spacetime m (cauchyNegativeData m f g)) + simpa only [massiveSchwartzCauchy_eq_phases, add_apply] using h + +theorem contDiff_massiveSchwartzCauchyVelocity_spacetime (m : ℝ) (f g : SpatialSchwartz) : + ContDiff ℝ (⊤ : ℕ∞) + (fun x : Spacetime => massiveSchwartzCauchyVelocity m x.1 f g x.2) := by + exact ((contDiff_massiveSchwartzEvolution_spacetime m + (massiveSchwartzPower m 1 (cauchyPositiveData m f g))).const_smul Complex.I).sub + ((contDiff_massiveSchwartzEvolution_neg_spacetime m + (massiveSchwartzPower m 1 (cauchyNegativeData m f g))).const_smul Complex.I) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/EvolvedSpacetimeSlices.lean b/LeanPool/VacuumBellSeparation/FreeField/EvolvedSpacetimeSlices.lean new file mode 100644 index 0000000000..b93412837c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/EvolvedSpacetimeSlices.lean @@ -0,0 +1,73 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeSlices +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroAlgebra + +/-! +# Every evolved spacetime slice is localized in the same time-zero ball + +The shrinking slice radius `r − |t|` and the proved finite propagation +radius `|t|` cancel exactly. Slices outside the compact time interval are +identically zero, so no propagation theorem is applied with negative radius. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +@[simp] theorem spatialCauchyTest_zero_zero {m : ℝ} (hm : 0 < m) (t : ℝ) : + spatialCauchyTest hm t 0 0 = 0 := by + apply Subtype.ext + funext x + change (massiveSchwartzCauchy m t (spatialSchwartz 0) (spatialSchwartz 0) x).re = 0 + simp [massiveSchwartzCauchy, spatialSchwartz_zero] + +@[simp] theorem evolvedSpatialSource_zero {m : ℝ} (hm : 0 < m) (t : ℝ) : + evolvedSpatialSource hm t 0 = 0 := by + simp [evolvedSpatialSource] + +theorem evolvedSpatialSource_spacetimeSlice_mem {m r : ℝ} (hm : 0 < m) + (x₀ : EuclideanSpace ℝ (Fin 3)) (F : RealTestFunction) + (hF : ∀ y ∈ tsupport F.1, |y.1| + ‖y.2 - x₀‖ ≤ r) (t : ℝ) : + evolvedSpatialSource hm t (spacetimeSpatialSlice F t) ∈ + localizedTimeZeroSources (Metric.closedBall x₀ r) := by + by_cases ht : |t| ≤ r + · have hr : 0 ≤ r - |t| := sub_nonneg.mpr ht + have hrad : r - |t| + |t| = r := sub_add_cancel r |t| + have hs := tsupport_spacetimeSpatialSlice_subset x₀ F hF t + constructor + · simpa only [evolvedSpatialSource, hrad] using + tsupport_spatialCauchyTest_subset hm hr t x₀ (spacetimeSpatialSlice F t) 0 hs + (by change tsupport (0 : EuclideanSpace ℝ (Fin 3) → ℝ) ⊆ _; simp) + · simpa only [evolvedSpatialSource, hrad] using + tsupport_spatialCauchyTest_subset hm hr t x₀ 0 (spacetimeSpatialSlice F t) + (by change tsupport (0 : EuclideanSpace ℝ (Fin 3) → ℝ) ⊆ _; simp) hs + · rw [spacetimeSpatialSlice_eq_zero_outside x₀ F hF (lt_of_not_ge ht), + evolvedSpatialSource_zero] + exact (localizedTimeZeroSources _).zero_mem + +theorem evolvedSpatialSource_spacetimeSlice_mem_ball {m r R : ℝ} (hm : 0 < m) + (hrR : r < R) (x₀ : EuclideanSpace ℝ (Fin 3)) (F : RealTestFunction) + (hF : ∀ y ∈ tsupport F.1, |y.1| + ‖y.2 - x₀‖ ≤ r) (t : ℝ) : + evolvedSpatialSource hm t (spacetimeSpatialSlice F t) ∈ + localizedTimeZeroSources (Metric.ball x₀ R) := + localizedTimeZeroSources_mono (Metric.closedBall_subset_ball hrR) + (evolvedSpatialSource_spacetimeSlice_mem hm x₀ F hF t) + +/-- All slices, including their actual evolution, give generators of the +same time-zero algebra. The source F itself is localized in the open cone. -/ +theorem evolvedSpatialSource_spacetimeSlice_mem_ball_of_doubleCone {m R : ℝ} + (hm : 0 < m) (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) + (F : RealTestFunction) (hF : tsupport F.1 ⊆ doubleCone (0, x₀) R) (t : ℝ) : + evolvedSpatialSource hm t (spacetimeSpatialSlice F t) ∈ + localizedTimeZeroSources (Metric.ball x₀ R) := by + obtain ⟨r, _, hrR, hs⟩ := exists_doubleCone_support_margin hR x₀ F hF + exact evolvedSpatialSource_spacetimeSlice_mem_ball hm hrR x₀ F hs t + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Existence.lean b/LeanPool/VacuumBellSeparation/FreeField/Existence.lean new file mode 100644 index 0000000000..e6c6047d62 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Existence.lean @@ -0,0 +1,164 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Decay +public import LeanPool.VacuumBellSeparation.FreeField.Statements +public import LeanPool.VacuumBellSeparation.Weyl.Existence +public import Mathlib.MeasureTheory.Function.L2Space + +/-! +# Existence of the free-field vacuum system (non-vacuity) + +For every mass `m > 0` a vacuum Weyl system `FreeFieldVacuum m H` exists: + +* `RealTestFunction` is an additive commutative group (with the existing `+`); +* `oneParticleMeasure m` is the Lorentz-invariant measure `d³p / (2(2π)³ ω_m(𝐩))` and + `oneParticleL2 hm F ∈ L²(ℝ³, d𝔪_m)` is the class of the one-particle wave function `κ_m F`; +* `oneParticleL2_add`, `inner_oneParticleL2`: this map is additive and its inner product is + `oneParticleInner`; +* `freeFieldVacuum_exists : FreeFieldVacuumExists`, from the abstract Weyl-system existence + theorem `exists_weyl_system` applied to `oneParticleL2 hm`. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +/-! ### The additive group of real test functions -/ + +instance : Zero RealTestFunction where + zero := ⟨0, contDiff_const, + HasCompactSupport.zero⟩ + +instance : Neg RealTestFunction where + neg F := ⟨-F.1, F.2.1.neg, F.2.2.neg⟩ + +instance : AddCommGroup RealTestFunction where + add_assoc F G K := Subtype.ext (add_assoc F.1 G.1 K.1) + zero_add F := Subtype.ext (zero_add F.1) + add_zero F := Subtype.ext (add_zero F.1) + nsmul := nsmulRec + neg_add_cancel F := Subtype.ext (neg_add_cancel F.1) + zsmul := zsmulRec + add_comm F G := Subtype.ext (add_comm F.1 G.1) + +/-! ### The one-particle space `L²(ℝ³, d𝔪_m)` -/ + +theorem oneParticleWeightReal_pos {m : ℝ} (hm : 0 < m) (p : EuclideanSpace ℝ (Fin 3)) : + 0 < 1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) := by + have hc : 0 < 2 * (2 * Real.pi) ^ 3 := by positivity + exact one_div_pos.2 (mul_pos hc (hm.trans_le (le_dispersion hm.le p))) + +theorem continuous_oneParticleWeightReal {m : ℝ} (hm : 0 < m) : + Continuous fun p : EuclideanSpace ℝ (Fin 3) => + 1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) := by + have hc : 0 < 2 * (2 * Real.pi) ^ 3 := by positivity + exact continuous_const.div (continuous_const.mul (continuous_dispersion m)) + fun p => (mul_pos hc (hm.trans_le (le_dispersion hm.le p))).ne' + +/-- The density `1 / (2(2π)³ ω_m(𝐩))` of the Lorentz-invariant measure, `ℝ≥0`-valued. -/ +noncomputable def oneParticleWeight (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : NNReal := + Real.toNNReal (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p)) + +theorem oneParticleWeight_coe {m : ℝ} (hm : 0 < m) (p : EuclideanSpace ℝ (Fin 3)) : + (oneParticleWeight m p : ℝ) = 1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) := + Real.coe_toNNReal _ (oneParticleWeightReal_pos hm p).le + +theorem measurable_oneParticleWeight {m : ℝ} (hm : 0 < m) : + Measurable (oneParticleWeight m) := + (continuous_real_toNNReal.comp (continuous_oneParticleWeightReal hm)).measurable + +/-- The Lorentz-invariant measure `d𝔪_m = d³p / (2(2π)³ ω_m(𝐩))` on momentum space. -/ +noncomputable def oneParticleMeasure (m : ℝ) : Measure (EuclideanSpace ℝ (Fin 3)) := + Measure.withDensity (volume : Measure (EuclideanSpace ℝ (Fin 3))) + fun p => (oneParticleWeight m p : ENNReal) + +theorem memLp_oneParticle {m : ℝ} (hm : 0 < m) (F : RealTestFunction) : + MemLp (oneParticle m F) 2 (oneParticleMeasure m) := by + have hmeas : AEStronglyMeasurable (oneParticle m F) (oneParticleMeasure m) := + (continuous_oneParticle m F).aestronglyMeasurable + rw [memLp_two_iff_integrable_sq_norm hmeas, oneParticleMeasure, + integrable_withDensity_iff_integrable_smul (measurable_oneParticleWeight hm)] + refine (integrable_oneParticleInner_integrand hm F F).norm.congr + (Filter.Eventually.of_forall fun p => ?_) + have hw := oneParticleWeightReal_pos hm p + change ‖conj (oneParticle m F p) * oneParticle m F p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)‖ = + oneParticleWeight m p • ‖oneParticle m F p‖ ^ 2 + first + | (rw [norm_mul, norm_mul, Complex.norm_conj, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos hw, NNReal.smul_def, smul_eq_mul, oneParticleWeight_coe hm p] + ring) + +/-- The one-particle wave function `κ_m F` as an element of `L²(ℝ³, d𝔪_m)`. -/ +noncomputable def oneParticleL2 {m : ℝ} (hm : 0 < m) (F : RealTestFunction) : + Lp ℂ 2 (oneParticleMeasure m) := + (memLp_oneParticle hm F).toLp (oneParticle m F) + +theorem coeFn_oneParticleL2 {m : ℝ} (hm : 0 < m) (F : RealTestFunction) : + (oneParticleL2 hm F : EuclideanSpace ℝ (Fin 3) → ℂ) =ᵐ[oneParticleMeasure m] + oneParticle m F := + (memLp_oneParticle hm F).coeFn_toLp + +/-- `κ_m(F + G) = κ_m F + κ_m G` in `L²(ℝ³, d𝔪_m)`. -/ +theorem oneParticleL2_add {m : ℝ} (hm : 0 < m) (F G : RealTestFunction) : + oneParticleL2 hm (F + G) = oneParticleL2 hm F + oneParticleL2 hm G := + (MemLp.toLp_congr (memLp_oneParticle hm (F + G)) + ((memLp_oneParticle hm F).add (memLp_oneParticle hm G)) + (Filter.Eventually.of_forall fun p => oneParticle_add m F G p)).trans + (MemLp.toLp_add (memLp_oneParticle hm F) (memLp_oneParticle hm G)) + +/-- The `L²(ℝ³, d𝔪_m)` inner product of one-particle wave functions is `oneParticleInner`. -/ +theorem inner_oneParticleL2 {m : ℝ} (hm : 0 < m) (F G : RealTestFunction) : + ⟪oneParticleL2 hm F, oneParticleL2 hm G⟫_ℂ = oneParticleInner m F G := by + refine (L2.inner_def (𝕜 := ℂ) _ _).trans ?_ + refine (integral_congr_ae (g := fun p => conj (oneParticle m F p) * oneParticle m G p) + ?_).trans ?_ + · filter_upwards [coeFn_oneParticleL2 hm F, coeFn_oneParticleL2 hm G] with p hpF hpG + first + | (rw [hpF, hpG]; exact RCLike.inner_apply' _ _) + · rw [oneParticleMeasure, + integral_withDensity_eq_integral_smul (measurable_oneParticleWeight hm)] + unfold oneParticleInner + refine integral_congr_ae (Filter.Eventually.of_forall fun p => ?_) + change oneParticleWeight m p • (conj (oneParticle m F p) * oneParticle m G p) = + conj (oneParticle m F p) * oneParticle m G p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) + first + | (rw [NNReal.smul_def, Complex.real_smul, oneParticleWeight_coe hm p]; ring) + +/-- `‖κ_m F‖² = Re ⟨κ_m F, κ_m F⟩`. -/ +theorem norm_oneParticleL2_sq {m : ℝ} (hm : 0 < m) (F : RealTestFunction) : + ‖oneParticleL2 hm F‖ ^ 2 = (oneParticleInner m F F).re := by + rw [← inner_oneParticleL2 hm F F] + first + | exact (inner_self_eq_norm_sq (𝕜 := ℂ) (oneParticleL2 hm F)).symm + +/-! ### Existence of the vacuum system -/ + +/-- **Non-vacuity**: for every mass `m > 0` a vacuum Weyl system of the free field exists. -/ +theorem freeFieldVacuum_exists : FreeFieldVacuumExists := by + intro m hm + obtain ⟨H, i1, i2, i3, W, Ω, hU, hmul, hΩ, hvac, hcyc⟩ := + exists_weyl_system (X := RealTestFunction) (oneParticleL2 hm) (oneParticleL2_add hm) + have hmul' : ∀ F G : RealTestFunction, W F * W G = + Complex.exp (-(Complex.I * ((oneParticleInner m F G).im : ℂ))) • W (F + G) := by + intro F G + rw [← inner_oneParticleL2 hm F G] + exact hmul F G + have hvac' : ∀ F : RealTestFunction, + ⟪Ω, W F Ω⟫_ℂ = ((Real.exp (-((oneParticleInner m F F).re / 2)) : ℝ) : ℂ) := by + intro F + rw [← norm_oneParticleL2_sq hm F] + exact hvac F + exact ⟨H, i1, i2, i3, ⟨⟨W, Ω, hU, hmul', hΩ, hvac', hcyc⟩⟩⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ExponentialMultiplication.lean b/LeanPool/VacuumBellSeparation/FreeField/ExponentialMultiplication.lean new file mode 100644 index 0000000000..a6772e2891 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ExponentialMultiplication.lean @@ -0,0 +1,128 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LpMultiplication +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioGraph +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioResolvent +public import LeanPool.VacuumBellSeparation.FreeField.PositiveOperatorPowers + +/-! +# Maximal exponential multiplication as an actual selfadjoint partial operator + +The domain is proved to be exactly the L² functions whose pointwise +exponential product is another L² function. A bounded logistic resolvent +constructs the operator, so no boundedness of the exponential is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal InnerProductSpace ComplexConjugate + +variable {α : Type*} [MeasurableSpace α] (μ : Measure α) + +/-- Exponential ratio coefficient given by `1 / (1 + Real.exp t)`. -/ +noncomputable def exponentialRatioCoefficient (t : ℝ) : ℝ := 1 / (1 + Real.exp t) + +theorem exponentialRatioCoefficient_bounds (t : ℝ) : + 0 < exponentialRatioCoefficient t ∧ exponentialRatioCoefficient t ≤ 1 := by + constructor + · unfold exponentialRatioCoefficient + positivity + · rw [exponentialRatioCoefficient, div_le_one (by positivity : 0 < 1 + Real.exp t)] + linarith [Real.exp_pos t] + +theorem exponentialRatioCoefficient_mul (t : ℝ) : + (exponentialRatioCoefficient t : ℂ) * (1 + (Real.exp t : ℂ)) = 1 := by + have h : exponentialRatioCoefficient t * (1 + Real.exp t) = 1 := + div_mul_cancel₀ 1 (by positivity : (1 + Real.exp t : ℝ) ≠ 0) + exact_mod_cast h + +theorem memLp_exponentialRatioCoefficient (w : α → ℝ) (hw : Measurable w) : + MemLp (fun x => (exponentialRatioCoefficient (w x) : ℂ)) ⊤ μ := by + have hm : Measurable (fun x => (exponentialRatioCoefficient (w x) : ℂ)) := by + unfold exponentialRatioCoefficient + fun_prop + apply memLp_top_of_bound hm.aestronglyMeasurable 1 + exact Filter.Eventually.of_forall fun x => by + rw [Complex.norm_real, Real.norm_eq_abs, + abs_of_pos (exponentialRatioCoefficient_bounds (w x)).1] + exact (exponentialRatioCoefficient_bounds (w x)).2 + +/-- Continuous linear map for the exponential resolvent, of type `Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ`. -/ +noncomputable def exponentialResolvent (w : α → ℝ) (hw : Measurable w) : + Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ := + lpMultiplication μ (fun x => (exponentialRatioCoefficient (w x) : ℂ)) + (memLp_exponentialRatioCoefficient μ w hw) + +theorem exponentialResolvent_injective (w : α → ℝ) (hw : Measurable w) : + Function.Injective (exponentialResolvent μ w hw) := + lpMultiplication_injective μ _ _ (Filter.Eventually.of_forall fun x => + Complex.ofReal_ne_zero.mpr (exponentialRatioCoefficient_bounds (w x)).1.ne') + +theorem exponentialResolvent_isSelfAdjoint (w : α → ℝ) (hw : Measurable w) : + IsSelfAdjoint (exponentialResolvent μ w hw) := + lpMultiplication_isSelfAdjoint μ _ _ (Filter.Eventually.of_forall fun _x => + Complex.conj_ofReal _) + +/-- Linear map for the exponential multiplication, of type `Lp ℂ 2 μ →ₗ.[ℂ] Lp ℂ 2 μ`. -/ +noncomputable def exponentialMultiplication (w : α → ℝ) (hw : Measurable w) : + Lp ℂ 2 μ →ₗ.[ℂ] Lp ℂ 2 μ := + boundedRatio (exponentialResolvent μ w hw) (1 - exponentialResolvent μ w hw) + (exponentialResolvent_injective μ w hw) + +theorem exponentialMultiplication_isSelfAdjoint (w : α → ℝ) (hw : Measurable w) : + IsSelfAdjoint (exponentialMultiplication μ w hw) := by + let R := exponentialResolvent μ w hw + have hR := exponentialResolvent_isSelfAdjoint μ w hw + change IsSelfAdjoint (boundedRatio R (1 - R) (exponentialResolvent_injective μ w hw)) + apply boundedRatio_isSelfAdjoint_of_isUnit_add R (1 - R) + (exponentialResolvent_injective μ w hw) + · exact selfAdjoint_denseRange_of_injective R hR (exponentialResolvent_injective μ w hw) + · exact hR + · exact (show IsSelfAdjoint (1 : Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ) by simp).sub hR + · exact (Commute.one_right R).sub_right (Commute.refl R) + · have he : R + (1 - R) = 1 := by abel + rw [he] + exact isUnit_one + +/-- Exact maximal graph: both sides are actual vectors of the full L² space. -/ +theorem exponentialMultiplication_mem_graph (w : α → ℝ) (hw : Measurable w) + (f g : Lp ℂ 2 μ) : + (f, g) ∈ (exponentialMultiplication μ w hw).graph ↔ + g =ᵐ[μ] fun x => (Real.exp (w x) : ℂ) * f x := by + let R := exponentialResolvent μ w hw + have hR (u : Lp ℂ 2 μ) : R u =ᵐ[μ] + fun x => (exponentialRatioCoefficient (w x) : ℂ) * u x := + lpMultiplication_ae μ _ _ u + change (f, g) ∈ (boundedRatio R (1 - R) _).graph ↔ _ + rw [boundedRatio_mem_graph] + constructor + · rintro ⟨u, rfl, rfl⟩ + change (u - R u : Lp ℂ 2 μ) =ᵐ[μ] fun x => (Real.exp (w x) : ℂ) * (R u) x + filter_upwards [Lp.coeFn_sub u (R u), hR u] with x hsub hx + simp only [Pi.sub_apply] at hsub + rw [hsub, hx] + have hc := congrArg (fun z : ℂ => z * u x) (exponentialRatioCoefficient_mul (w x)) + linear_combination -hc + · intro hfg + have he : R (f + g) = f := by + apply Lp.ext + filter_upwards [hR (f + g), Lp.coeFn_add f g, hfg] with x hx hsum he + simp only [Pi.add_apply] at hsum + rw [hx, hsum, he] + have hc := congrArg (fun z : ℂ => z * f x) (exponentialRatioCoefficient_mul (w x)) + linear_combination hc + refine ⟨f + g, he, ?_⟩ + change f + g - R (f + g) = g + rw [he] + abel + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ExponentialMultiplicationPositive.lean b/LeanPool/VacuumBellSeparation/FreeField/ExponentialMultiplicationPositive.lean new file mode 100644 index 0000000000..0a08c3ddfd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ExponentialMultiplicationPositive.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ExponentialMultiplication + +/-! +# Positivity, full domain and exact square of exponential multiplication + +The square-root graph equality includes the intermediate L2 vector. Its +existence follows from the actual bound exp(t/2) ≤ 1+exp(t); no domain +inclusion is assumed. This applies to arbitrary measures and measurable +real weights, including the unbounded rapidity-frequency exponent. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal InnerProductSpace + +variable {α : Type*} [MeasurableSpace α] (μ : Measure α) + +theorem exponentialMultiplication_mem_domain (w : α → ℝ) (hw : Measurable w) + (f : Lp ℂ 2 μ) : + f ∈ (exponentialMultiplication μ w hw).domain ↔ + MemLp (fun x => (Real.exp (w x) : ℂ) * f x) 2 μ := by + rw [LinearPMap.mem_domain_iff] + constructor + · rintro ⟨g, hg⟩ + exact MemLp.ae_eq ((exponentialMultiplication_mem_graph μ w hw f g).mp hg) (Lp.memLp g) + · intro h + refine ⟨h.toLp _, (exponentialMultiplication_mem_graph μ w hw f _).mpr ?_⟩ + exact h.coeFn_toLp + +theorem exponentialMultiplication_dense_domain (w : α → ℝ) (hw : Measurable w) : + Dense ((exponentialMultiplication μ w hw).domain : Set (Lp ℂ 2 μ)) := + selfAdjoint_denseRange_of_injective (exponentialResolvent μ w hw) + (exponentialResolvent_isSelfAdjoint μ w hw) (exponentialResolvent_injective μ w hw) + +/-- Positivity on the full maximal domain, not just on compact test vectors. -/ +theorem exponentialMultiplication_inner_nonneg (w : α → ℝ) (hw : Measurable w) + (f g : Lp ℂ 2 μ) (hfg : (f, g) ∈ (exponentialMultiplication μ w hw).graph) : + 0 ≤ (inner ℂ f g).re := by + have heq := (exponentialMultiplication_mem_graph μ w hw f g).mp hfg + rw [L2.inner_def, ← RCLike.re_eq_complex_re, + ← integral_re (L2.integrable_inner (𝕜 := ℂ) f g)] + apply integral_nonneg_of_ae + filter_upwards [heq] with x hx + rw [hx, show (Real.exp (w x) : ℂ) * f x = (Real.exp (w x) : ℂ) • f x from rfl, + inner_smul_right, inner_self_eq_norm_sq_to_K] + change 0 ≤ ((Real.exp (w x) : ℂ) * ((‖f x‖ : ℂ) ^ 2)).re + rw [← Complex.ofReal_pow, ← Complex.ofReal_mul, Complex.ofReal_re] + exact mul_nonneg (Real.exp_pos _).le (sq_nonneg _) + +theorem exponentialMultiplication_resolvent (w : α → ℝ) (hw : Measurable w) + (x y : Lp ℂ 2 μ) : + (∃ hy : y ∈ (exponentialMultiplication μ w hw).domain, + y + exponentialMultiplication μ w hw ⟨y, hy⟩ = x) ↔ + exponentialResolvent μ w hw x = y := by + let R := exponentialResolvent μ w hw + have he : R + (1 - R) = 1 := by abel + have hQ : IsUnit (R + (1 - R)) := by rw [he]; exact isUnit_one + have h := boundedRatio_resolvent_iff R (1 - R) (exponentialResolvent_injective μ w hw) hQ x y + simpa only [exponentialMultiplication, R, he, Ring.inverse_one, mul_one] using h + +theorem exp_half_sq (t : ℝ) : Real.exp (t / 2) * Real.exp (t / 2) = Real.exp t := by + rw [← Real.exp_add] + congr 1 + ring + +theorem exp_half_le_one_add_exp (t : ℝ) : Real.exp (t / 2) ≤ 1 + Real.exp t := by + have h := exp_half_sq t + nlinarith [sq_nonneg (Real.exp (t / 2) - 1 / 2)] + +/-- The full graph of the exponential is exactly the composition of two +maximal half-exponential graphs. -/ +theorem exponentialMultiplication_graph_half_square (w : α → ℝ) (hw : Measurable w) + (f g : Lp ℂ 2 μ) : + (f, g) ∈ (exponentialMultiplication μ w hw).graph ↔ + ∃ h : Lp ℂ 2 μ, + (f, h) ∈ (exponentialMultiplication μ (fun x => w x / 2) (hw.div_const 2)).graph ∧ + (h, g) ∈ (exponentialMultiplication μ (fun x => w x / 2) (hw.div_const 2)).graph := by + simp only [exponentialMultiplication_mem_graph] + constructor + · intro hfg + have hcoef : Measurable (fun x => (Real.exp (w x / 2) : ℂ)) := by fun_prop + have hmhalf : MemLp (fun x => (Real.exp (w x / 2) : ℂ) * f x) 2 μ := by + apply ((Lp.memLp f).norm.add (Lp.memLp g).norm).mono' + (hcoef.aestronglyMeasurable.mul (Lp.aestronglyMeasurable f)) + filter_upwards [hfg] with x hx + have hgnorm : ‖g x‖ = Real.exp (w x) * ‖f x‖ := by + rw [hx, norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] + change ‖(Real.exp (w x / 2) : ℂ) * f x‖ ≤ ‖f x‖ + ‖g x‖ + rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] + have h := mul_le_mul_of_nonneg_right (exp_half_le_one_add_exp (w x)) (norm_nonneg (f x)) + nlinarith + refine ⟨hmhalf.toLp _, hmhalf.coeFn_toLp, ?_⟩ + filter_upwards [hfg, hmhalf.coeFn_toLp] with x hx hh + rw [hx, hh] + have hc : (Real.exp (w x / 2) : ℂ) * (Real.exp (w x / 2) : ℂ) = (Real.exp (w x) : ℂ) := + by exact_mod_cast exp_half_sq (w x) + rw [← mul_assoc, hc] + · rintro ⟨h, hfh, hhg⟩ + filter_upwards [hfh, hhg] with x hx hy + rw [hy, hx, ← mul_assoc] + have hc : (Real.exp (w x / 2) : ℂ) * (Real.exp (w x / 2) : ℂ) = (Real.exp (w x) : ℂ) := + by exact_mod_cast exp_half_sq (w x) + rw [hc] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ExponentialResolventCalculus.lean b/LeanPool/VacuumBellSeparation/FreeField/ExponentialResolventCalculus.lean new file mode 100644 index 0000000000..055c563e56 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ExponentialResolventCalculus.lean @@ -0,0 +1,133 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LpContinuousFunctionalCalculus +public import LeanPool.VacuumBellSeparation.FreeField.ExponentialMultiplicationPositive +public import LeanPool.VacuumBellSeparation.FreeField.ResolventPowerFunction +public import LeanPool.VacuumBellSeparation.FreeField.RatioRegularizerIndependence + +/-! +# Exact fractional powers of the maximal exponential multiplication operator + +The genuine bounded CFC of the logistic resolvent gives the logistic +resolvent of the scaled exponent. Equality of universal resolvents then +identifies the full partial maps, including all domain vectors. Endpoint +c=0 uses the unital power convention and yields the identity operator. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ContinuousLinearMap +open scoped ENNReal + +theorem continuousOn_powerResolventFunction {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) : + ContinuousOn (powerResolventFunction c) (Set.Icc 0 1) := by + have ha := Real.continuous_rpow_const hc + have hb : Continuous (fun x : ℝ => (1 - x) ^ c) := + ha.comp (continuous_const.sub continuous_id) + apply ha.continuousOn.div (ha.add hb).continuousOn + intro x hx + have h₁ := Real.self_le_rpow_of_le_one hx.1 hx.2 hc1 + have h₂ := Real.self_le_rpow_of_le_one (sub_nonneg.mpr hx.2) + (sub_le_self 1 hx.1) hc1 + change x ^ c + (1 - x) ^ c ≠ 0 + linarith + +theorem powerResolventFunction_exponentialRatio (c t : ℝ) : + powerResolventFunction c (exponentialRatioCoefficient t) = + exponentialRatioCoefficient (c * t) := by + have he : 0 < Real.exp t := Real.exp_pos t + have hd : 0 < 1 + Real.exp t := by positivity + have hs : 1 - exponentialRatioCoefficient t = Real.exp t / (1 + Real.exp t) := by + unfold exponentialRatioCoefficient + field_simp [hd.ne']; ring + have hdcp : 0 < (1 + Real.exp t) ^ c := Real.rpow_pos_of_pos hd c + have ha : exponentialRatioCoefficient t ^ c = 1 / (1 + Real.exp t) ^ c := by + rw [exponentialRatioCoefficient, Real.div_rpow (by norm_num) hd.le, Real.one_rpow] + have hb : (1 - exponentialRatioCoefficient t) ^ c = + Real.exp (c * t) / (1 + Real.exp t) ^ c := by + rw [hs, Real.div_rpow he.le hd.le, ← Real.exp_mul, mul_comm t c] + rw [powerResolventFunction, ha, hb, exponentialRatioCoefficient] + have hct : 0 < 1 + Real.exp (c * t) := by positivity + field_simp [hdcp.ne', hct.ne'] + + +theorem exponentialHilbertOperator_realCFC + {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] : + IsometricContinuousFunctionalCalculus ℝ (E →L[ℂ] E) IsSelfAdjoint := inferInstance + +variable {α : Type*} [MeasurableSpace α] (μ : Measure α) + +local instance : + IsometricContinuousFunctionalCalculus ℝ (Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ) IsSelfAdjoint := + exponentialHilbertOperator_realCFC + +/-- View the exponential ratio coefficient as a point of the closed unit interval. -/ +noncomputable def exponentialRatioInUnitInterval (w : α → ℝ) (x : α) : Set.Icc (0 : ℝ) 1 := + ⟨exponentialRatioCoefficient (w x), + (exponentialRatioCoefficient_bounds (w x)).1.le, + (exponentialRatioCoefficient_bounds (w x)).2⟩ + +theorem measurable_exponentialRatioInUnitInterval (w : α → ℝ) (hw : Measurable w) : + Measurable (exponentialRatioInUnitInterval w) := by + unfold exponentialRatioInUnitInterval exponentialRatioCoefficient + fun_prop + +theorem exponentialResolvent_nonneg (w : α → ℝ) (hw : Measurable w) : + 0 ≤ exponentialResolvent μ w hw := by + apply (StarOrderedRing.nonneg_iff_spectrum_nonneg (R := ℝ) _ + (exponentialResolvent_isSelfAdjoint μ w hw)).mpr + intro x hx + have hs := continuousMultiplier_spectrum_subset μ (exponentialRatioInUnitInterval w) + (measurable_exponentialRatioInUnitInterval w hw) + exact (hs hx).1 + +theorem exponentialResolvent_le_one (w : α → ℝ) (hw : Measurable w) : + exponentialResolvent μ w hw ≤ 1 := by + apply (CStarAlgebra.norm_le_one_iff_of_nonneg _ (exponentialResolvent_nonneg μ w hw)).mp + apply lpMultiplication_norm_le μ _ _ (by norm_num) + exact Filter.Eventually.of_forall fun x => by + rw [Complex.norm_real, Real.norm_eq_abs, + abs_of_pos (exponentialRatioCoefficient_bounds (w x)).1] + exact (exponentialRatioCoefficient_bounds (w x)).2 + +theorem cfc_powerResolventFunction_exponentialResolvent (w : α → ℝ) (hw : Measurable w) + {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) : + cfc (powerResolventFunction c) (exponentialResolvent μ w hw) = + exponentialResolvent μ (fun x => c * w x) (measurable_const.mul hw) := by + have he := cfc_continuousMultiplier μ (exponentialRatioInUnitInterval w) + (measurable_exponentialRatioInUnitInterval w hw) (powerResolventFunction c) + (continuousOn_powerResolventFunction hc hc1) + change cfc (powerResolventFunction c) (exponentialResolvent μ w hw) = + continuousMultiplier μ (exponentialRatioInUnitInterval w) + (measurable_exponentialRatioInUnitInterval w hw) + ⟨fun x => powerResolventFunction c x, (continuousOn_powerResolventFunction hc + hc1).domRestrict⟩ at he + rw [he] + apply lpMultiplication_congr + exact Filter.Eventually.of_forall fun x => by + change (powerResolventFunction c (exponentialRatioCoefficient (w x)) : ℂ) = + (exponentialRatioCoefficient (c * w x) : ℂ) + rw [powerResolventFunction_exponentialRatio] + +theorem resolventPowerRatio_exponentialResolvent (w : α → ℝ) (hw : Measurable w) + {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) : + resolventPowerRatio (exponentialResolvent μ w hw) (exponentialResolvent_nonneg μ w hw) + (exponentialResolvent_injective μ w hw) c hc hc1 = + exponentialMultiplication μ (fun x => c * w x) (measurable_const.mul hw) := by + apply partialOperator_eq_of_resolvent _ _ + (exponentialResolvent μ (fun x => c * w x) (measurable_const.mul hw)) + · intro x y + rw [resolventPowerRatio_resolvent_cfc _ (exponentialResolvent_nonneg μ w hw) + (exponentialResolvent_le_one μ w hw)] + erw [cfc_powerResolventFunction_exponentialResolvent μ w hw hc hc1] + · exact exponentialMultiplication_resolvent μ _ _ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteCanonicalCoordinates.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteCanonicalCoordinates.lean new file mode 100644 index 0000000000..462127ca86 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteCanonicalCoordinates.lean @@ -0,0 +1,150 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourceModes +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceAlgebra + +/-! +# Physical Weyl coordinates of a finite source system + +These operators remain in the original vacuum representation. Their +covariance matrix is the literal Fourier covariance on a genuine basis, +and their multiplication phase is the literal source symplectic form. +The full source algebra is generated by these coordinates. Identifying +its cyclic representation with an oscillator density is a separate theorem. +-/ + +@[expose] public section + +open scoped InnerProductSpace Matrix + +namespace VacuumBellSeparation + +variable {m : ℝ} (hm : 0 < m) (S : Submodule ℝ TimeZeroSource) + [FiniteDimensional ℝ S] {ι : Type*} [Fintype ι] [DecidableEq ι] + (b : Module.Basis ι ℝ (FiniteSourceSpace hm S)) + +/-- Coordinates parameterize the actual smooth compact test pairs in S. -/ +noncomputable def finiteSourceCoordinates : (ι → ℝ) →ₗ[ℝ] TimeZeroSource := + S.subtype.comp b.equivFun.symm.toLinearMap + +omit [FiniteDimensional ℝ ↥S] [DecidableEq ι] in +theorem finiteSourceCoordinates_mem (x : ι → ℝ) : finiteSourceCoordinates hm S b x ∈ S := + (b.equivFun.symm x).2 + +omit [FiniteDimensional ℝ ↥S] [DecidableEq ι] in +theorem range_finiteSourceCoordinates : + Set.range (finiteSourceCoordinates hm S b) = S := by + ext u + constructor + · rintro ⟨x, rfl⟩ + exact finiteSourceCoordinates_mem hm S b x + · intro hu + refine ⟨b.equivFun (⟨u, hu⟩ : FiniteSourceSpace hm S), ?_⟩ + exact congrArg (fun z : FiniteSourceSpace hm S => z.1) + (b.equivFun.symm_apply_apply (⟨u, hu⟩ : FiniteSourceSpace hm S)) + +/-- Finite source covariance matrix given by `fun i j => timeZeroFourierCovariance m (b i).1 (b +j).1`. -/ +noncomputable def finiteSourceCovarianceMatrix : Matrix ι ι ℝ := + fun i j => timeZeroFourierCovariance m (b i).1 (b j).1 + +/-- Finite source symplectic matrix given by `fun i j => timeZeroSymplectic (b i).1 (b j).1`. -/ +noncomputable def finiteSourceSymplecticMatrix : Matrix ι ι ℝ := + fun i j => timeZeroSymplectic (b i).1 (b j).1 + +omit [FiniteDimensional ℝ ↥S] [DecidableEq ι] in +theorem finiteSourceCoordinates_covariance (x y : ι → ℝ) : + timeZeroFourierCovariance m (finiteSourceCoordinates hm S b x) + (finiteSourceCoordinates hm S b y) = + x ⬝ᵥ (finiteSourceCovarianceMatrix hm S b *ᵥ y) := by + change timeZeroFourierCovariance m (b.equivFun.symm x).1 (b.equivFun.symm y).1 = _ + rw [← finiteSourceSpace_inner hm S, b.equivFun_symm_apply, b.equivFun_symm_apply] + simp only [sum_inner, inner_sum, real_inner_smul_left, real_inner_smul_right, + finiteSourceSpace_inner, finiteSourceCovarianceMatrix, dotProduct, Matrix.mulVec, + Finset.mul_sum] + rw [Finset.sum_comm] + apply Finset.sum_congr rfl + intro i hi + apply Finset.sum_congr rfl + intro j hj + ring + +omit [DecidableEq ι] in +theorem finiteSourceCoordinates_symplectic (x y : ι → ℝ) : + timeZeroSymplectic (finiteSourceCoordinates hm S b x) + (finiteSourceCoordinates hm S b y) = + x ⬝ᵥ (finiteSourceSymplecticMatrix hm S b *ᵥ y) := by + change timeZeroSymplectic (b.equivFun.symm x).1 (b.equivFun.symm y).1 = _ + rw [← finiteSourceCommutation_symplectic hm S, + b.equivFun_symm_apply, b.equivFun_symm_apply] + simp only [map_sum, map_smul, sum_inner, inner_sum, + real_inner_smul_left, real_inner_smul_right, + finiteSourceCommutation_symplectic, finiteSourceSymplecticMatrix, + dotProduct, Matrix.mulVec, Finset.mul_sum] + rw [Finset.sum_comm] + apply Finset.sum_congr rfl + intro i hi + apply Finset.sum_congr rfl + intro j hj + ring + +variable {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) + +/-- A coordinate Weyl operator in the original physical vacuum. -/ +noncomputable def finitePhysicalWeyl (x : ι → ℝ) : H →L[ℂ] H := + V.timeZeroWeyl hm (finiteSourceCoordinates hm S b x) + +omit [FiniteDimensional ℝ ↥S] [DecidableEq ι] in +theorem finitePhysicalWeyl_mem_unitary (x : ι → ℝ) : + finitePhysicalWeyl hm S b V x ∈ unitary (H →L[ℂ] H) := + V.timeZeroWeyl_mem_unitary hm _ + +omit [DecidableEq ι] in +theorem finitePhysicalWeyl_mul (x y : ι → ℝ) : + finitePhysicalWeyl hm S b V x * finitePhysicalWeyl hm S b V y = + Complex.exp (-(Complex.I * + ((x ⬝ᵥ (finiteSourceSymplecticMatrix hm S b *ᵥ y) / 2 : ℝ) : ℂ))) • + finitePhysicalWeyl hm S b V (x + y) := by + have hphase : (timeZeroOneParticleInner m (finiteSourceCoordinates hm S b x) + (finiteSourceCoordinates hm S b y)).im = + x ⬝ᵥ (finiteSourceSymplecticMatrix hm S b *ᵥ y) / 2 := by + rw [← inner_timeZeroL2 hm, inner_timeZeroL2_gram, + finiteSourceCoordinates_symplectic] + simp [Complex.mul_im]; ring + unfold finitePhysicalWeyl + rw [V.timeZeroWeyl_mul, hphase, map_add] + +omit [FiniteDimensional ℝ ↥S] [DecidableEq ι] in +/-- The finite characteristic has the manuscript's covariance and 1/2 factor. -/ +theorem vacuum_finitePhysicalWeyl (x : ι → ℝ) : + ⟪V.vacuum, finitePhysicalWeyl hm S b V x V.vacuum⟫_ℂ = + ((Real.exp (-(x ⬝ᵥ (finiteSourceCovarianceMatrix hm S b *ᵥ x) / 2)) : ℝ) : ℂ) := by + rw [finitePhysicalWeyl, V.vacuum_timeZeroWeyl, finiteSourceCoordinates_covariance] + +omit [FiniteDimensional ℝ ↥S] [DecidableEq ι] in +/-- No operators or modes are discarded by the genuine coordinate change. -/ +theorem generatedVNA_finitePhysicalWeyl : + generatedVNA (Set.range (finitePhysicalWeyl hm S b V)) = + canonicalSourceAlgebra V hm S := by + congr 1 + ext A + constructor + · rintro ⟨x, rfl⟩ + exact ⟨finiteSourceCoordinates hm S b x, + finiteSourceCoordinates_mem hm S b x, rfl⟩ + · rintro ⟨u, hu, rfl⟩ + have hmem : u ∈ Set.range (finiteSourceCoordinates hm S b) := by + rw [range_finiteSourceCoordinates] + exact hu + obtain ⟨x, rfl⟩ := hmem + exact ⟨x, rfl⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteForwardRenyiEnvelope.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteForwardRenyiEnvelope.lean new file mode 100644 index 0000000000..5261fd466c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteForwardRenyiEnvelope.lean @@ -0,0 +1,84 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteForwardSpatialBound +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiConsequences + +/-! +# The actual forward high-order Gaussian Rényi envelope + +For r=n+2 the compression exponent is exactly (r-1)/r and k_r=2. +The genuine finite quantity, its logarithm, and its exponential bound +follow from the proved intrinsic Gaussian estimate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped ENNReal Matrix.Norms.L2Operator + +theorem gaussianRenyiTau_sourceHighOrder (n : ℕ) : + gaussianRenyiTau ((n + 2 : ℕ) : ℝ) = sourceHighExponent n := by + unfold gaussianRenyiTau sourceHighExponent + push_cast + congr 1 + ring + +theorem sourceHighOrder_max_inverse (n : ℕ) : + max 2 (gaussianRenyiTau ((n + 2 : ℕ) : ℝ))⁻¹ = 2 := by + rw [gaussianRenyiTau_sourceHighOrder] + have hb := sourceHighExponent_half_le n + have hb0 : 0 < sourceHighExponent n := by linarith + apply max_eq_left + rw [← one_div, div_le_iff₀ hb0] + linarith + +theorem finite_high_order_gaussian_renyi_bound {d : ℕ} + {ρ σ : MultiModeOscillatorSpace d →L[ℂ] MultiModeOscillatorSpace d} + {Vρ Vσ : Matrix (Fin d × Fin 2) (Fin d × Fin 2) ℝ} + (hρ : IsFaithfulDensity ρ) (hσ : IsFaithfulDensity σ) + (hVρ : Vρ.IsHermitian) (hVσ : Vσ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) + (n : ℕ) {ε : ℝ} (hε : ε ≤ 1 / 8) + (hop : ‖intrinsicGaussianRelativePerturbation ρ σ (sourceHighExponent n)‖ ≤ ε) + (htrace : matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ + (sourceHighExponent n)) ≤ ε) : + 0 < sandwichedRenyiQuantity ρ σ ((n + 2 : ℕ) : ℝ) ∧ + sandwichedRenyiQuantity ρ σ ((n + 2 : ℕ) : ℝ) < ∞ ∧ + Real.log (sandwichedRenyiQuantity ρ σ ((n + 2 : ℕ) : ℝ)).toReal ≤ + 8 * ((n + 2 : ℕ) : ℝ) * ε ∧ + sandwichedRenyiQuantity ρ σ ((n + 2 : ℕ) : ℝ) ≤ + ENNReal.ofReal (Real.exp (8 * ((n + 2 : ℕ) : ℝ) * ε)) := by + have hr : (1 : ℝ) < ((n + 2 : ℕ) : ℝ) := by exact_mod_cast (show 1 < n + 2 by omega) + have hε0 : 0 ≤ ε := (norm_nonneg _).trans hop + have hsmall : ‖intrinsicGaussianRelativePerturbation ρ σ + (gaussianRenyiTau ((n + 2 : ℕ) : ℝ))‖ ≤ + (4 * max 2 (gaussianRenyiTau ((n + 2 : ℕ) : ℝ))⁻¹)⁻¹ := by + rw [sourceHighOrder_max_inverse, gaussianRenyiTau_sourceHighOrder] + calc + _ ≤ ε := hop + _ ≤ 1 / 8 := hε + _ = (4 * 2)⁻¹ := by norm_num + obtain ⟨hQ0, hQt, hlog⟩ := faithful_gaussian_renyi_bound hρ hσ hVρ hVσ hGρ hGσ hr hsmall + rw [sourceHighOrder_max_inverse, gaussianRenyiTau_sourceHighOrder] at hlog + have hlog' : Real.log (sandwichedRenyiQuantity ρ σ ((n + 2 : ℕ) : ℝ)).toReal ≤ + 8 * ((n + 2 : ℕ) : ℝ) * ε := by + apply hlog.trans + calc + _ ≤ 2 * ((n + 2 : ℕ) : ℝ) * 2 * ε := + mul_le_mul_of_nonneg_left htrace (by positivity) + _ ≤ _ := by nlinarith + refine ⟨hQ0, hQt, hlog', ?_⟩ + have he := ENNReal.ofReal_le_ofReal + ((Real.log_le_iff_le_exp (ENNReal.toReal_pos hQ0.ne' hQt.ne)).mp hlog') + simpa only [ENNReal.ofReal_toReal hQt.ne] using he + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteForwardSpatialBound.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteForwardSpatialBound.lean new file mode 100644 index 0000000000..fc2c471edc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteForwardSpatialBound.lean @@ -0,0 +1,104 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialForwardReserveFactor +public import LeanPool.VacuumBellSeparation.FreeField.FinitePairForwardNormalization + +/-! +# Uniform intrinsic finite Gaussian bounds from the original spatial sources + +The actual spatial reserve factor discharges the full-source premise of +the high-order compression theorem. Constants precede all masses, finite +systems and densities. Both norms concern the same intrinsic normalized +power covariance perturbation of the actual density operators. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian Matrix +open scoped ENNReal Matrix.Norms.L2Operator + +/-- Source high exponent given by `((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)`. -/ +def sourceHighExponent (n : ℕ) : ℝ := ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) + +theorem sourceHighExponent_half_le (n : ℕ) : 1 / 2 ≤ sourceHighExponent n := by + unfold sourceHighExponent + rw [le_div_iff₀ (by positivity)] + push_cast + nlinarith [Nat.cast_nonneg (α := ℝ) n] + +theorem sourceHighExponent_lt_one (n : ℕ) : sourceHighExponent n < 1 := by + unfold sourceHighExponent + rw [div_lt_one (by positivity)] + exact_mod_cast (show n + 1 < n + 2 by omega) + +theorem sourceHighExponent_thermalConst_inv (n : ℕ) : + (thermalConst (sourceHighExponent n))⁻¹ = (n + 1 : ℕ) := by + rw [thermalConst_of_half_le (sourceHighExponent_half_le n)] + unfold sourceHighExponent + push_cast + field_simp + ring + +theorem exists_uniform_finite_forward_bounds (n : ℕ) : + ∃ Sgeo A : ℝ, 0 < Sgeo ∧ 0 < A ∧ + ∀ (m : ℝ) (hm : 0 < m) (s : ℝ), Sgeo ≤ s → + ∀ (U W : Set (EuclideanSpace ℝ (Fin 3))), + U ⊆ Metric.ball 0 1 → W ⊆ Metric.ball (spatialAxisDisplacement s 0) 1 → + ∀ (hUW : Disjoint U W) (S T : Submodule ℝ TimeZeroSource) + [FiniteDimensional ℝ ↥(S ⊔ T)] + (hS : IsCanonicalSourceSystem U S) (hT : IsCanonicalSourceSystem W T) + (d : ℕ) (c : Module.Basis (Fin d × Fin 2) ℝ (FiniteSourceSpace hm (S ⊔ T))), + finiteSourceSymplecticMatrix hm (S ⊔ T) c = modeSymplecticForm → + ∀ (ρ σ : MultiModeOscillatorSpace d →L[ℂ] MultiModeOscillatorSpace d), + IsFaithfulDensity σ → + HasGaussianPhysicalCharacteristic ρ (finiteSourceCovarianceMatrix hm (S ⊔ T) c) → + HasGaussianPhysicalCharacteristic σ + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) c) + (finiteSourceLabelSubspace hm (S ⊔ T) c S) + (finiteSourceLabelSubspace hm (S ⊔ T) c T) + (canonicalPairLabel_isCompl hm hUW hS hT c)) → + ‖intrinsicGaussianRelativePerturbation ρ σ (sourceHighExponent n)‖ ≤ A / s ^ 2 ∧ + matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ (sourceHighExponent n)) ≤ + A / s ^ 2 := by + have hb := sourceHighExponent_half_le n + have hb1 := sourceHighExponent_lt_one n + have hb0 : 0 < sourceHighExponent n := by linarith + have hc := thermalConst_pos hb0 hb1 + obtain ⟨Sgeo, F, hSgeo, hF, hbound⟩ := exists_uniform_forward_source_factor hb hb1 + refine ⟨Sgeo, (thermalConst (sourceHighExponent n))⁻¹ * F, hSgeo, by positivity, ?_⟩ + intro m hm s hs U W hU hW hUW S T _ hS hT d c hcanonical ρ σ hσ hGρ hGσ + obtain ⟨Y, hfac, hcY, hY, hn, htrace, _⟩ := hbound m hm s hs U W hU hW + obtain ⟨hfinite, hfinite₁⟩ := finitePair_forward_source_factorization_bounds hm hUW hS hT c + hcanonical hσ hGρ hGσ n hfac hcY hY + -- Restate both bounds at the named exponent (definitional unfolding of `sourceHighExponent`). + have hfin : ‖intrinsicGaussianRelativePerturbation ρ σ (sourceHighExponent n)‖ ≤ + (thermalConst (sourceHighExponent n))⁻¹ * ‖Y‖ := hfinite + have hfin₁ : ENNReal.ofReal + (matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ (sourceHighExponent n))) ≤ + ENNReal.ofReal (thermalConst (sourceHighExponent n))⁻¹ * operatorTraceNorm Y := hfinite₁ + constructor + · calc + _ ≤ (thermalConst (sourceHighExponent n))⁻¹ * ‖Y‖ := hfin + _ ≤ (thermalConst (sourceHighExponent n))⁻¹ * (F / s ^ 2) := + mul_le_mul_of_nonneg_left hn (inv_nonneg.mpr hc.le) + _ = (thermalConst (sourceHighExponent n))⁻¹ * F / s ^ 2 := by ring + · have he := hfin₁.trans + (_root_.mul_le_mul_right htrace (ENNReal.ofReal (thermalConst (sourceHighExponent n))⁻¹)) + rw [← ENNReal.ofReal_mul (inv_nonneg.mpr hc.le)] at he + have hh := (ENNReal.ofReal_le_ofReal_iff (show 0 ≤ + (thermalConst (sourceHighExponent n))⁻¹ * (F / s ^ 2) by positivity)).mp he + calc + _ ≤ (thermalConst (sourceHighExponent n))⁻¹ * (F / s ^ 2) := hh + _ = (thermalConst (sourceHighExponent n))⁻¹ * F / s ^ 2 := by ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteGaussianCyclicModel.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteGaussianCyclicModel.lean new file mode 100644 index 0000000000..71395798f5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteGaussianCyclicModel.lean @@ -0,0 +1,118 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteWeylCyclicity +public import LeanPool.VacuumBellSeparation.Bell.PhysicalPurification +public import LeanPool.VacuumBellSeparation.Gaussian.FixedGaussianExistence +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumModePositivity + +/-! +# Actual faithful Gaussian model of each finite physical cyclic subsystem + +The source covariance and commutation operator construct a real canonical +basis. Bounded localization proves strict uncertainty. The constructed +faithful oscillator density has the literal source covariance, and the +proved purified cyclicity gives an actual unitary from the original +physical closed vacuum orbit. Neither a representation equivalence nor a +Gaussian density is assumed. The ambient multiplicity theorem and transfer +of arbitrary effects are separate from this cyclic identification. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap +open scoped Matrix + +variable {m : ℝ} (hm : 0 < m) (S : Submodule ℝ TimeZeroSource) + [FiniteDimensional ℝ S] {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) + +instance finitePhysicalCyclicModelComplete {n : ℕ} + (b : Module.Basis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) : + CompleteSpace (finitePhysicalCyclicSpace hm S b V) := by + unfold finitePhysicalCyclicSpace closedCyclicSpan + infer_instance + +/-- The finite physical subsystem has an actual faithful Gaussian cyclic +model, with literal covariance, symplectic sign, vacuum and generators. -/ +theorem exists_finite_physical_gaussian_cyclic_model + {U₀ : Set (EuclideanSpace ℝ (Fin 3))} (hSU : S ≤ localizedTimeZeroSources U₀) + (hU₀ : Bornology.IsBounded U₀) + (hnd : ∀ u ∈ S, (∀ v ∈ S, timeZeroSymplectic u v = 0) → u = 0) : + ∃ (n : ℕ) (b : Module.Basis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) + (ρ : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n) + (hρ : IsFaithfulDensity ρ), + finiteSourceSymplecticMatrix hm S b = modeSymplecticForm ∧ + HasGaussianPhysicalCharacteristic ρ (finiteSourceCovarianceMatrix hm S b) ∧ + ∃ U : finitePhysicalCyclicSpace hm S b V ≃ₗᵢ[ℂ] + lp (fun _ : operatorEigenIndex ρ => MultiModeOscillatorSpace n) 2, + U (finitePhysicalCyclicVacuum hm S b V) = faithfulDensityPurification hρ ∧ + ∀ z, U.conjStarAlgEquiv + (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ + (finitePhysicalWeyl hm S b V z)) = + hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl z) := by + obtain ⟨n, ν, e, hν, he⟩ := finiteSource_exists_skew_basis hm S hnd + let b := finiteSourceCanonicalBasis hm S ν hν e + have hσ : finiteSourceSymplecticMatrix hm S b = modeSymplecticForm := by + ext i j + exact finiteSourceCanonicalBasis_symplectic hm S ν hν e he i j + have hcov : finiteSourceCovarianceMatrix hm S b = modeDiagonal (fun i => (ν i)⁻¹) := by + ext i j + exact finiteSourceCanonicalBasis_covariance hm S ν hν e i j + have hv (i : Fin n) : (1 / 2 : ℝ) < (ν i)⁻¹ := + reciprocal_finiteSource_frequency_gt_half (hν i) + (finiteSource_skew_frequency_lt_two hm S hSU hU₀ ν e he i) + obtain ⟨ρ, hρ, hG⟩ := exists_fixed_faithful_gaussian_physical_density + (modeDiagonal (fun i => (ν i)⁻¹)) + (modeDiagonal_posDef (fun i => inv_pos.mpr (hν i))) (quantum_mode_posDef hv) + have hG' : HasGaussianPhysicalCharacteristic ρ (finiteSourceCovarianceMatrix hm S b) := by + rw [hcov] + exact hG + have hmultiply (x y : Fin n × Fin 2 → ℝ) : + finitePhysicalWeyl hm S b V x * finitePhysicalWeyl hm S b V y = + Complex.exp (-(Complex.I * ((x ⬝ᵥ (modeSymplecticForm *ᵥ y) / 2 : ℝ) : ℂ))) • + finitePhysicalWeyl hm S b V (x + y) := by + rw [finitePhysicalWeyl_mul, hσ] + obtain ⟨U, hUv, hUw⟩ := exists_physical_gaussian_cyclic_unitary hρ + (finitePhysicalWeyl hm S b V) V.vacuum hmultiply + (finitePhysicalWeyl_star_of_canonical hm S V b hσ) hG' + (vacuum_finitePhysicalWeyl hm S b V) + refine ⟨n, b, ρ, hρ, hσ, hG', U, ?_, ?_⟩ + · have h0 := hUv 0 + have h1 : hilbertAmplification (operatorEigenIndex ρ) + (1 : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n) = 1 := + (hilbertAmplificationHom (operatorEigenIndex ρ)).map_one + have hv0 : cyclicSpanVector (fun x => finitePhysicalWeyl hm S b V x V.vacuum) 0 = + finitePhysicalCyclicVacuum hm S b V := by + apply Subtype.ext + exact congrArg (fun A : H →L[ℂ] H => A V.vacuum) (finitePhysicalWeyl_zero hm S b V) + have hw0 : hilbertAmplification (operatorEigenIndex ρ) + (physicalOscillatorWeyl (0 : Fin n × Fin 2 → ℝ)) = 1 := + (congrArg (hilbertAmplification (operatorEigenIndex ρ)) + (physicalOscillatorWeyl_zero n)).trans h1 + refine (congrArg U hv0).symm.trans (h0.trans ?_) + exact (congrArg (fun A : + lp (fun _ : operatorEigenIndex ρ => MultiModeOscillatorSpace n) 2 →L[ℂ] + lp (fun _ : operatorEigenIndex ρ => MultiModeOscillatorSpace n) 2 => + A (faithfulDensityPurification hρ)) hw0).trans (one_apply_eq_self _) + · intro z + apply ContinuousLinearMap.ext + intro y + have h := congrArg (fun A => A (U.symm y)) (hUw z) + change U ((compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ + (finitePhysicalWeyl hm S b V z)) (U.symm y)) = _ + change U ((compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ + (finitePhysicalWeyl hm S b V z)) (U.symm y)) = + hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl z) + (U (U.symm y)) at h + simpa only [LinearIsometryEquiv.apply_symm_apply] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteGaussianObservables.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteGaussianObservables.lean new file mode 100644 index 0000000000..6e5220f9f9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteGaussianObservables.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteObservableCoordinates + +/-! +# Faithful Gaussian observable model from the physical source assumptions + +This endpoint chooses the actual canonical basis, density, cyclic unitary +and a genuine spectral coordinate. The resulting map acts on every bounded +physical observable, preserves effects and norm bounds, is multiplicative +on the actual finite canonical algebra, and agrees with all its vacuum +expectations. No model-equivalence or extraction premise remains. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped InnerProductSpace + +theorem operatorEigenIndex_nonempty_of_faithfulDensity + {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + {ρ : H →L[ℂ] H} (hρ : IsFaithfulDensity ρ) : Nonempty (operatorEigenIndex ρ) := by + classical + by_contra hn + have : IsEmpty (operatorEigenIndex ρ) := not_nonempty_iff.mp hn + have hz : faithfulDensityPurification hρ = 0 := by + ext i + exact isEmptyElim i + have hnorm := faithfulDensityPurification_norm hρ + simp only [hz, norm_zero, zero_ne_one] at hnorm + +variable {m : ℝ} (hm : 0 < m) (S : Submodule ℝ TimeZeroSource) + [FiniteDimensional ℝ S] {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) + +/-- Every bounded localized finite canonical source algebra has an actual +faithful oscillator density model of all its observables and products. -/ +theorem exists_finite_physical_gaussian_observable_model + {U₀ : Set (EuclideanSpace ℝ (Fin 3))} (hSU : S ≤ localizedTimeZeroSources U₀) + (hU₀ : Bornology.IsBounded U₀) + (hnd : ∀ u ∈ S, (∀ v ∈ S, timeZeroSymplectic u v = 0) → u = 0) : + ∃ (n : ℕ) (b : Module.Basis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) + (ρ : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n) + (T : (H →L[ℂ] H) → (MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n)), + IsFaithfulDensity ρ ∧ + finiteSourceSymplecticMatrix hm S b = modeSymplecticForm ∧ + HasGaussianPhysicalCharacteristic ρ (finiteSourceCovarianceMatrix hm S b) ∧ + T 1 = 1 ∧ + (∀ A, T (star A) = star (T A)) ∧ + (∀ z, T (finitePhysicalWeyl hm S b V z) = physicalOscillatorWeyl z) ∧ + (∀ R : Set (Fin n × Fin 2 → ℝ), ∀ A ∈ generatedVNA (finitePhysicalWeyl hm S b V '' R), + T A ∈ generatedVNA (physicalOscillatorWeyl '' R)) ∧ + (∀ A, 0 ≤ A → 0 ≤ T A) ∧ + (∀ A, A ≤ 1 → T A ≤ 1) ∧ + (∀ A, ‖T A‖ ≤ ‖A‖) ∧ + (∀ A ∈ canonicalSourceAlgebra V hm S, ∀ B ∈ canonicalSourceAlgebra V hm S, + T (A * B) = T A * T B) ∧ + (∀ A ∈ canonicalSourceAlgebra V hm S, + ⟪V.vacuum, A V.vacuum⟫_ℂ = densityExpectation (multiModeNumberBasis n) ρ (T A)) := by + classical + obtain ⟨n, b, ρ, hρ, hσ, hG, U, hUv, hUw⟩ := + exists_finite_physical_gaussian_cyclic_model hm S V hSU hU₀ hnd + obtain ⟨k⟩ := operatorEigenIndex_nonempty_of_faithfulDensity hρ + refine ⟨n, b, ρ, finiteOscillatorObservable hm S b V U k, hρ, hσ, hG, + finiteOscillatorObservable_one hm S b V U k, + finiteOscillatorObservable_star hm S b V U k, + finiteOscillatorObservable_weyl hm S b V U k hσ hUw, + fun R A hA => finiteOscillatorObservable_mem_coordinateAlgebra hm S b V U k hσ hUw R hA, + fun A hA => finiteOscillatorObservable_nonneg hm S b V U k hA, + fun A hA => finiteOscillatorObservable_le_one hm S b V U k hA, + norm_finiteOscillatorObservable_le hm S b V U k, ?_, ?_⟩ + · intro A hA B hB + exact finiteOscillatorObservable_mul hm S b V U k hσ hUw hA hB + · intro A hA + exact vacuum_finiteOscillatorObservable hm S b V U k hσ hUw hρ hUv hA + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteGaussianPairModel.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteGaussianPairModel.lean new file mode 100644 index 0000000000..4c402d69cc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteGaussianPairModel.lean @@ -0,0 +1,150 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourcePairCoordinates +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianProductReference +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianFaithfulRenyiComparison + +/-! +# Actual Gaussian density and product reference for two physical source systems + +The record below packages conclusions of the construction, rather than an +assumed representation theorem. Its existence is proved from bounded spatial +localization, disjoint regions and the literal canonical source conditions. +The same map handles every bounded observable in the joint physical algebra. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped Matrix +open scoped InnerProductSpace + +variable {m : ℝ} (hm : 0 < m) {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) (S T : Submodule ℝ TimeZeroSource) + +/-- A Gaussian oscillator model of the two finite local source algebras, with their joint density +and the product reference on one space. -/ +structure FiniteGaussianPairModel where + /-- Number of canonical oscillator modes in the joint source space. -/ + modes : ℕ + /-- Canonical field and momentum basis for the span of both source spaces. -/ + basis : Module.Basis (Fin modes × Fin 2) ℝ (FiniteSourceSpace hm (S ⊔ T)) + /-- The joint Gaussian density on the oscillator space. -/ + density : MultiModeOscillatorSpace modes →L[ℂ] MultiModeOscillatorSpace modes + /-- The product of the two regional Gaussian densities in the same oscillator representation. -/ + reference : MultiModeOscillatorSpace modes →L[ℂ] MultiModeOscillatorSpace modes + /-- Representation of the original local operators on the joint oscillator space. -/ + toOperator : (H →L[ℂ] H) → + (MultiModeOscillatorSpace modes →L[ℂ] MultiModeOscillatorSpace modes) + faithful_density : IsFaithfulDensity density + faithful_reference : IsFaithfulDensity reference + symplectic : finiteSourceSymplecticMatrix hm (S ⊔ T) basis = modeSymplecticForm + characteristic : HasGaussianPhysicalCharacteristic density + (finiteSourceCovarianceMatrix hm (S ⊔ T) basis) + complementary : IsCompl (finiteSourceLabelSubspace hm (S ⊔ T) basis S) + (finiteSourceLabelSubspace hm (S ⊔ T) basis T) + reference_characteristic : HasGaussianPhysicalCharacteristic reference + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) basis) + (finiteSourceLabelSubspace hm (S ⊔ T) basis S) + (finiteSourceLabelSubspace hm (S ⊔ T) basis T) complementary) + map_one : toOperator 1 = 1 + map_star : ∀ A, toOperator (star A) = star (toOperator A) + map_nonneg : ∀ A, 0 ≤ A → 0 ≤ toOperator A + map_le_one : ∀ A, A ≤ 1 → toOperator A ≤ 1 + map_norm_le : ∀ A, ‖toOperator A‖ ≤ ‖A‖ + map_mul : ∀ A ∈ canonicalSourceAlgebra V hm (S ⊔ T), + ∀ B ∈ canonicalSourceAlgebra V hm (S ⊔ T), + toOperator (A * B) = toOperator A * toOperator B + vacuum_expectation : ∀ A ∈ canonicalSourceAlgebra V hm (S ⊔ T), + ⟪V.vacuum, A V.vacuum⟫_ℂ = + densityExpectation (multiModeNumberBasis modes) density (toOperator A) + left_membership : ∀ A ∈ canonicalSourceAlgebra V hm S, + toOperator A ∈ generatedVNA (regionalWeylGenerators (finiteSourceLabelSubspace hm + (S ⊔ T) basis S)) + right_membership : ∀ B ∈ canonicalSourceAlgebra V hm T, + toOperator B ∈ generatedVNA (regionalWeylGenerators (finiteSourceLabelSubspace hm + (S ⊔ T) basis T)) + left_marginal : ∀ A ∈ canonicalSourceAlgebra V hm S, + densityExpectation (multiModeNumberBasis modes) reference (toOperator A) = + ⟪V.vacuum, A V.vacuum⟫_ℂ + right_marginal : ∀ B ∈ canonicalSourceAlgebra V hm T, + densityExpectation (multiModeNumberBasis modes) reference (toOperator B) = + ⟪V.vacuum, B V.vacuum⟫_ℂ + product_expectation : ∀ A ∈ canonicalSourceAlgebra V hm S, + ∀ B ∈ canonicalSourceAlgebra V hm T, + densityExpectation (multiModeNumberBasis modes) reference (toOperator (A * B)) = + ⟪V.vacuum, A V.vacuum⟫_ℂ * ⟪V.vacuum, B V.vacuum⟫_ℂ + +theorem regionalWeylGenerators_eq_image {n : ℕ} (L : Submodule ℝ (Fin n × Fin 2 → ℝ)) : + regionalWeylGenerators L = physicalOscillatorWeyl '' (L : Set (Fin n × Fin 2 → ℝ)) := by + ext A + constructor + · rintro ⟨x, hx, hA⟩ + exact ⟨x, hx, hA.symm⟩ + · rintro ⟨x, hx, hA⟩ + exact ⟨x, hx, hA.symm⟩ + +/-- No Gaussian representation or reference existence is assumed here. -/ +theorem nonempty_finiteGaussianPairModel + {U W : Set (EuclideanSpace ℝ (Fin 3))} + (hU : Bornology.IsBounded U) (hW : Bornology.IsBounded W) (hUW : Disjoint U W) + (hS : IsCanonicalSourceSystem U S) (hT : IsCanonicalSourceSystem W T) : + Nonempty (FiniteGaussianPairModel hm V S T) := by + classical + have hR := canonicalSourcePair_sup_isCanonical hUW hS hT + let : FiniteDimensional ℝ ↥(S ⊔ T) := hR.1 + obtain ⟨n, b, ρ, Φ, hρ, hΩ, hGρ, hΦ1, hΦstar, hΦW, hΦlocal, + hΦ0, hΦle, hΦnorm, hΦmul, hΦvac⟩ := + exists_finite_physical_gaussian_observable_model hm (S ⊔ T) V hR.2.1 (hU.union hW) hR.2.2 + let L := finiteSourceLabelSubspace hm (S ⊔ T) b S + let M := finiteSourceLabelSubspace hm (S ⊔ T) b T + have hLM : IsCompl L M := finiteSourceLabelSubspace_isCompl hm (S ⊔ T) b rfl + (canonicalSourcePair_disjoint hUW hS hT) + have hcross : ∀ x ∈ L, ∀ y ∈ M, x ⬝ᵥ (modeSymplecticForm *ᵥ y) = 0 := by + intro x hx y hy + exact finiteSourceLabelSubspace_symplectic_cross hm (S ⊔ T) b hΩ S T + (fun u hu v hv => canonicalSourcePair_cross hUW hS hT hu hv) hx hy + have hQ := actual_faithful_gaussian_quantum_posDef hρ + (finiteSourceCovarianceMatrix_isHermitian hm (S ⊔ T) b) hGρ + obtain ⟨σ, hσ, hGσ, hσL, hσM, hσprod⟩ := + exists_faithful_gaussian_product_reference hρ.isPositiveTraceClass hGρ hQ L M hLM hcross + have hleft : ∀ A ∈ canonicalSourceAlgebra V hm S, + Φ A ∈ generatedVNA (regionalWeylGenerators L) := by + intro A hA + rw [regionalWeylGenerators_eq_image] + apply hΦlocal (L : Set (Fin n × Fin 2 → ℝ)) + rwa [generatedVNA_finiteSourceLabelSubspace hm (S ⊔ T) b V S le_sup_left] + have hright : ∀ B ∈ canonicalSourceAlgebra V hm T, + Φ B ∈ generatedVNA (regionalWeylGenerators M) := by + intro B hB + rw [regionalWeylGenerators_eq_image] + apply hΦlocal (M : Set (Fin n × Fin 2 → ℝ)) + rwa [generatedVNA_finiteSourceLabelSubspace hm (S ⊔ T) b V T le_sup_right] + have hSL := canonicalSourceAlgebra_mono V hm (show S ≤ S ⊔ T from le_sup_left) + have hTR := canonicalSourceAlgebra_mono V hm (show T ≤ S ⊔ T from le_sup_right) + refine ⟨{ + modes := n, basis := b, density := ρ, reference := σ, toOperator := Φ + faithful_density := hρ, faithful_reference := hσ, symplectic := hΩ + characteristic := hGρ, complementary := hLM, reference_characteristic := hGσ + map_one := hΦ1, map_star := hΦstar, map_nonneg := hΦ0, map_le_one := hΦle + map_norm_le := hΦnorm, map_mul := hΦmul, vacuum_expectation := hΦvac + left_membership := hleft, right_membership := hright + left_marginal := ?_, right_marginal := ?_, product_expectation := ?_ }⟩ + · intro A hA + rw [hσL _ (hleft A hA), ← hΦvac A (hSL hA)] + · intro B hB + rw [hσM _ (hright B hB), ← hΦvac B (hTR hB)] + · intro A hA B hB + rw [hΦmul A (hSL hA) B (hTR hB), hσprod _ (hleft A hA) _ (hright B hB), + ← hΦvac A (hSL hA), ← hΦvac B (hTR hB)] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteObservableCoordinates.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteObservableCoordinates.lean new file mode 100644 index 0000000000..30f8384cb0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteObservableCoordinates.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteObservableExtraction + +/-! +# Exact generators and regional algebras under physical observable extraction + +Extraction preserves one and adjoints and sends each original physical +Weyl generator to the matching physical oscillator generator. Restricting +the generator labels to any subset also preserves membership in the +corresponding actual generated von Neumann algebra. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian + +private theorem compression_unitary_compression_star + {E F G K : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + [NormedAddCommGroup G] [InnerProductSpace ℂ G] [CompleteSpace G] + [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K] + (ι : E →ₗᵢ[ℂ] F) (U : E ≃ₗᵢ[ℂ] G) (κ : K →ₗᵢ[ℂ] G) (A : F →L[ℂ] F) : + compression κ (U.conjStarAlgEquiv (compression ι (star A))) = + star (compression κ (U.conjStarAlgEquiv (compression ι A))) := by + rw [compression_star, map_star, compression_star] + +variable {m : ℝ} (hm : 0 < m) (S : Submodule ℝ TimeZeroSource) + [FiniteDimensional ℝ S] {n : ℕ} + (b : Module.Basis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) + {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) + {ρ : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n} + (U : finitePhysicalCyclicSpace hm S b V ≃ₗᵢ[ℂ] + lp (fun _ : operatorEigenIndex ρ => MultiModeOscillatorSpace n) 2) + (k : operatorEigenIndex ρ) + +omit [FiniteDimensional ℝ S] in +theorem finiteOscillatorObservable_one : finiteOscillatorObservable hm S b V U k 1 = 1 := by + rw [finiteOscillatorObservable, compression_one, map_one, + hilbertAmplificationBlock_diagonal_eq_compression, compression_one] + +omit [FiniteDimensional ℝ S] in +theorem finiteOscillatorObservable_star (A : H →L[ℂ] H) : + finiteOscillatorObservable hm S b V U k (star A) = + star (finiteOscillatorObservable hm S b V U k A) := by + simp only [finiteOscillatorObservable, + hilbertAmplificationBlock_diagonal_eq_compression] + exact compression_unitary_compression_star + (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ U + (hilbertCoordinateIsometry (operatorEigenIndex ρ) k) A + +variable (hσ : finiteSourceSymplecticMatrix hm S b = modeSymplecticForm) + (hUw : ∀ z, U.conjStarAlgEquiv + (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ (finitePhysicalWeyl hm S b V z)) = + hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl z)) + +include hσ hUw in +theorem finiteOscillatorObservable_weyl (z : Fin n × Fin 2 → ℝ) : + finiteOscillatorObservable hm S b V U k (finitePhysicalWeyl hm S b V z) = + physicalOscillatorWeyl z := by + have hA : finitePhysicalWeyl hm S b V z ∈ canonicalSourceAlgebra V hm S := by + rw [← generatedVNA_finitePhysicalWeyl hm S b V] + exact subset_generatedVNA _ ⟨z, rfl⟩ + apply hilbertAmplification_injective (operatorEigenIndex ρ) k + exact (finiteObservableTransport_eq_amplification hm S b V U k hσ hUw hA).symm.trans (hUw z) + +include hσ hUw in +/-- Arbitrary selected source-coordinate algebras retain their original +label sets after extraction; no regional tensor decomposition is assumed. -/ +theorem finiteOscillatorObservable_mem_coordinateAlgebra + (R : Set (Fin n × Fin 2 → ℝ)) {A : H →L[ℂ] H} + (hA : A ∈ generatedVNA (finitePhysicalWeyl hm S b V '' R)) : + finiteOscillatorObservable hm S b V U k A ∈ generatedVNA (physicalOscillatorWeyl '' R) := by + have hred (B : H →L[ℂ] H) (hB : B ∈ finitePhysicalWeyl hm S b V '' R) : + (∀ x ∈ finitePhysicalCyclicSpace hm S b V, B x ∈ finitePhysicalCyclicSpace hm S b V) ∧ + (∀ x ∈ finitePhysicalCyclicSpace hm S b V, star B x ∈ finitePhysicalCyclicSpace hm S b V) + := by + obtain ⟨z, hz, rfl⟩ := hB + exact finitePhysicalCyclicSpace_reducing hm S V b hσ _ ⟨z, rfl⟩ + have hc := compression_subtype_mem_generatedVNA (finitePhysicalCyclicSpace hm S b V) + (finitePhysicalWeyl hm S b V '' R) hred hA + have ht : U.conjStarAlgEquiv (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ A) ∈ + generatedVNA (hilbertAmplification (operatorEigenIndex ρ) '' + (physicalOscillatorWeyl '' R)) := by + apply (mem_generatedVNA_iff_of_starAlgEquiv U.conjStarAlgEquiv (fun T => ?_) _).mp hc + constructor + · rintro ⟨_, ⟨z, hz, rfl⟩, rfl⟩ + rw [hUw] + exact ⟨physicalOscillatorWeyl z, ⟨z, hz, rfl⟩, rfl⟩ + · rintro ⟨_, ⟨z, hz, rfl⟩, he⟩ + exact ⟨finitePhysicalWeyl hm S b V z, ⟨z, hz, rfl⟩, + U.conjStarAlgEquiv.injective ((hUw z).trans he)⟩ + exact hilbertAmplificationBlock_mem_generatedVNA _ _ k ht + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteObservableExtraction.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteObservableExtraction.lean new file mode 100644 index 0000000000..bbf0cff0d6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteObservableExtraction.lean @@ -0,0 +1,161 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteGaussianCyclicModel +public import LeanPool.VacuumBellSeparation.Bell.HilbertAmplificationFaithful +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalFunctionalCalculus + +/-! +# Actual oscillator observables for finite physical algebras + +The preceding constructed cyclic model supplies the parameters here. The +observable is defined by compression to the literal physical cyclic space, +unitary transport, then one actual coordinate block. Commutant arguments +prove its exact amplified action. Order, norm, products and all vacuum +expectations are preserved in their stated scopes. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap +open scoped InnerProductSpace + +-- Resolve positivity transport over abstract Hilbert spaces before specializing +-- to the nested cyclic-space and oscillator structures. +private theorem unitaryTransport_nonneg + {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + (U : E ≃ₗᵢ[ℂ] F) {T : E →L[ℂ] E} (hT : 0 ≤ T) : + 0 ≤ U.conjStarAlgEquiv T := map_nonneg U.conjStarAlgEquiv hT + +variable {m : ℝ} (hm : 0 < m) (S : Submodule ℝ TimeZeroSource) + [FiniteDimensional ℝ S] {n : ℕ} + (b : Module.Basis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) + {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) + {ρ : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n} + (U : finitePhysicalCyclicSpace hm S b V ≃ₗᵢ[ℂ] + lp (fun _ : operatorEigenIndex ρ => MultiModeOscillatorSpace n) 2) + (k : operatorEigenIndex ρ) + +/-- Continuous linear map for the finite oscillator observable, of type `MultiModeOscillatorSpace n +→L[ℂ] MultiModeOscillatorSpace n`. -/ +noncomputable def finiteOscillatorObservable (A : H →L[ℂ] H) : + MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n := + hilbertAmplificationBlock (operatorEigenIndex ρ) + (U.conjStarAlgEquiv (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ A)) k k + +variable (hσ : finiteSourceSymplecticMatrix hm S b = modeSymplecticForm) + (hUw : ∀ z, U.conjStarAlgEquiv + (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ (finitePhysicalWeyl hm S b V z)) = + hilbertAmplification (operatorEigenIndex ρ) (physicalOscillatorWeyl z)) + +include hσ hUw in +theorem finiteObservableTransport_mem_amplifiedVNA + {A : H →L[ℂ] H} (hA : A ∈ canonicalSourceAlgebra V hm S) : + U.conjStarAlgEquiv (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ A) ∈ + generatedVNA (hilbertAmplification (operatorEigenIndex ρ) '' + Set.range (physicalOscillatorWeyl (n := n))) := by + have ha : A ∈ generatedVNA (Set.range (finitePhysicalWeyl hm S b V)) := by + rw [generatedVNA_finitePhysicalWeyl] + exact hA + have hc := compression_subtype_mem_generatedVNA (finitePhysicalCyclicSpace hm S b V) + (Set.range (finitePhysicalWeyl hm S b V)) + (finitePhysicalCyclicSpace_reducing hm S V b hσ) ha + apply (mem_generatedVNA_iff_of_starAlgEquiv U.conjStarAlgEquiv (fun T => ?_) _).mp hc + constructor + · rintro ⟨_, ⟨z, rfl⟩, rfl⟩ + rw [hUw] + exact ⟨physicalOscillatorWeyl z, ⟨z, rfl⟩, rfl⟩ + · rintro ⟨_, ⟨z, rfl⟩, hz⟩ + exact ⟨finitePhysicalWeyl hm S b V z, ⟨z, rfl⟩, + U.conjStarAlgEquiv.injective ((hUw z).trans hz)⟩ + +include hσ hUw in +theorem finiteObservableTransport_eq_amplification + {A : H →L[ℂ] H} (hA : A ∈ canonicalSourceAlgebra V hm S) : + U.conjStarAlgEquiv (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ A) = + hilbertAmplification (operatorEigenIndex ρ) (finiteOscillatorObservable hm S b V U k A) := + eq_hilbertAmplification_of_mem_generatedVNA _ _ k + (finiteObservableTransport_mem_amplifiedVNA hm S b V U hσ hUw hA) + +omit [FiniteDimensional ℝ S] in +theorem finiteOscillatorObservable_nonneg {A : H →L[ℂ] H} (hA : 0 ≤ A) : + 0 ≤ finiteOscillatorObservable hm S b V U k A := + hilbertAmplificationBlock_nonneg _ (unitaryTransport_nonneg U (compression_nonneg _ hA)) k + +omit [FiniteDimensional ℝ S] in +theorem finiteOscillatorObservable_le_one {A : H →L[ℂ] H} (hA : A ≤ 1) : + finiteOscillatorObservable hm S b V U k A ≤ 1 := by + apply hilbertAmplificationBlock_le_one + have h := unitaryTransport_nonneg U + (compression_nonneg (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ (sub_nonneg.mpr hA)) + simpa only [compression_sub, compression_one, map_sub, map_one, sub_nonneg] using h + +omit [FiniteDimensional ℝ S] in +theorem norm_finiteOscillatorObservable_le (A : H →L[ℂ] H) : + ‖finiteOscillatorObservable hm S b V U k A‖ ≤ ‖A‖ := + (norm_hilbertAmplificationBlock_le _ _ k).trans + ((norm_conjStarAlgEquiv_le U _).trans (norm_compression_le _ A)) + +include hσ hUw in +theorem finiteOscillatorObservable_mul {A B : H →L[ℂ] H} + (hA : A ∈ canonicalSourceAlgebra V hm S) (hB : B ∈ canonicalSourceAlgebra V hm S) : + finiteOscillatorObservable hm S b V U k (A * B) = + finiteOscillatorObservable hm S b V U k A * finiteOscillatorObservable hm S b V U k B := by + have hAB := (canonicalSourceAlgebra V hm S).mul_mem hA hB + have hinv (x : finitePhysicalCyclicSpace hm S b V) : + B ((finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ x) = + (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ + (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ B x) := by + exact (congrArg Subtype.val (compression_subtype_apply _ B + (fun x hx => canonicalSourceAlgebra_invariant_cyclic hm S V b hσ hB hx) x)).symm + apply hilbertAmplification_injective (operatorEigenIndex ρ) k + calc + _ = U.conjStarAlgEquiv (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ (A * B)) := + (finiteObservableTransport_eq_amplification hm S b V U k hσ hUw hAB).symm + _ = U.conjStarAlgEquiv (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ A) * + U.conjStarAlgEquiv (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ B) := by + rw [compression_mul_of_invariant _ A B hinv, map_mul] + _ = hilbertAmplification (operatorEigenIndex ρ) (finiteOscillatorObservable hm S b V U k A) * + hilbertAmplification (operatorEigenIndex ρ) (finiteOscillatorObservable hm S b V U k B) + := by + rw [finiteObservableTransport_eq_amplification hm S b V U k hσ hUw hA, + finiteObservableTransport_eq_amplification hm S b V U k hσ hUw hB] + _ = _ := ((hilbertAmplificationHom (operatorEigenIndex ρ)).map_mul _ _).symm + +include hσ hUw in +theorem vacuum_finiteOscillatorObservable (hρ : IsFaithfulDensity ρ) + (hUv : U (finitePhysicalCyclicVacuum hm S b V) = faithfulDensityPurification hρ) + {A : H →L[ℂ] H} (hA : A ∈ canonicalSourceAlgebra V hm S) : + ⟪V.vacuum, A V.vacuum⟫_ℂ = + densityExpectation (multiModeNumberBasis n) ρ (finiteOscillatorObservable hm S b V U k A) + := by + symm + calc + _ = densityExpectation (positiveTraceClassEigenbasis hρ.isPositiveTraceClass) ρ + (finiteOscillatorObservable hm S b V U k A) := + densityExpectation_eq _ _ hρ.isPositiveTraceClass _ + _ = ⟪faithfulDensityPurification hρ, hilbertAmplification (operatorEigenIndex ρ) + (finiteOscillatorObservable hm S b V U k A) (faithfulDensityPurification hρ)⟫_ℂ := rfl + _ = ⟪U (finitePhysicalCyclicVacuum hm S b V), U + (compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ A + (finitePhysicalCyclicVacuum hm S b V))⟫_ℂ := by + rw [← finiteObservableTransport_eq_amplification hm S b V U k hσ hUw hA, ← hUv] + simp only [LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, + LinearIsometryEquiv.symm_apply_apply] + _ = ⟪finitePhysicalCyclicVacuum hm S b V, + compression (finitePhysicalCyclicSpace hm S b V).subtypeₗᵢ A + (finitePhysicalCyclicVacuum hm S b V)⟫_ℂ := U.inner_map_map _ _ + _ = _ := (finitePhysicalCyclicSpace hm S b + V).subtypeₗᵢ.toContinuousLinearMap.adjoint_inner_right + (finitePhysicalCyclicVacuum hm S b V) (A V.vacuum) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FinitePairForwardNormalization.lean b/LeanPool/VacuumBellSeparation/FreeField/FinitePairForwardNormalization.lean new file mode 100644 index 0000000000..efd026eff0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FinitePairForwardNormalization.lean @@ -0,0 +1,186 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ProductSourceCovariancePerturbation + +/-! +# Forward Gaussian normalization from the actual full source perturbation + +All finite commutation and covariance compression identities are supplied +by the original canonical source construction. The only factorization +input is the full regional product operator D=R^b Y R^b. + +Every declaration states its finite source data and Gaussian hypotheses as +explicit binders, with no section variables or local notation. Test builds +showed that the same Gaussian characteristic hypotheses, introduced as section +variables through `include`, exceed the heartbeat limit even in a trivial +application, while explicit binders +elaborate at once. The statements and +argument order of the public theorems are unchanged. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian Matrix +open scoped ENNReal InnerProductSpace Matrix.Norms.L2Operator + +theorem canonicalPairProductCompression_covariance_perturbation + {m : ℝ} (hm : 0 < m) {U W : Set (EuclideanSpace ℝ (Fin 3))} + {S T : Submodule ℝ TimeZeroSource} + (hUW : Disjoint U W) (hS : IsCanonicalSourceSystem U S) + (hT : IsCanonicalSourceSystem W T) {d : ℕ} + (c : Module.Basis (Fin d × Fin 2) ℝ (FiniteSourceSpace hm (S ⊔ T))) : + compression (canonicalPairProductCompressionIsometry hm hUW hS hT c) + (complexify (productSourceCovariancePerturbation hm U W)) = + realMatrixOperator (relativeCovariancePerturbation + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) c) + (finiteSourceLabelSubspace hm (S ⊔ T) c S) + (finiteSourceLabelSubspace hm (S ⊔ T) c T) + (canonicalPairLabel_isCompl hm hUW hS hT c)) + (finiteSourceCovarianceMatrix hm (S ⊔ T) c - + labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) c) + (finiteSourceLabelSubspace hm (S ⊔ T) c S) + (finiteSourceLabelSubspace hm (S ⊔ T) c T) + (canonicalPairLabel_isCompl hm hUW hS hT c))) := + finiteProductSourceCompression_covariance_perturbation hm U W (S ⊔ T) c _ _ _ _ _ + +/-- Keep covariance positivity in the finite real matrix interface, before +introducing density operators or the full completed source carrier. -/ +private theorem canonicalPairProductCovariance_isHermitian + {m : ℝ} (hm : 0 < m) {U W : Set (EuclideanSpace ℝ (Fin 3))} + {S T : Submodule ℝ TimeZeroSource} + (hUW : Disjoint U W) (hS : IsCanonicalSourceSystem U S) + (hT : IsCanonicalSourceSystem W T) {d : ℕ} + (c : Module.Basis (Fin d × Fin 2) ℝ (FiniteSourceSpace hm (S ⊔ T))) : + Matrix.IsHermitian + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) c) + (finiteSourceLabelSubspace hm (S ⊔ T) c S) + (finiteSourceLabelSubspace hm (S ⊔ T) c T) + (canonicalPairLabel_isCompl hm hUW hS hT c)) := + (labelDecorrelatedCovariance_posDef (V := finiteSourceCovarianceMatrix hm (S ⊔ T) c) + (finiteSourceCovarianceMatrix_posDef hm (S ⊔ T) c) + (finiteSourceLabelSubspace hm (S ⊔ T) c S) + (finiteSourceLabelSubspace hm (S ⊔ T) c T) + (canonicalPairLabel_isCompl hm hUW hS hT c)).isHermitian + +/-- The canonical physical compression, proved before any density operator +or normalized perturbation expression enters the elaboration context. -/ +private theorem canonicalPairProductCompression_commutation_canonical + {m : ℝ} (hm : 0 < m) {U W : Set (EuclideanSpace ℝ (Fin 3))} + {S T : Submodule ℝ TimeZeroSource} [FiniteDimensional ℝ ↥(S ⊔ T)] + (hUW : Disjoint U W) (hS : IsCanonicalSourceSystem U S) + (hT : IsCanonicalSourceSystem W T) {d : ℕ} + (c : Module.Basis (Fin d × Fin 2) ℝ (FiniteSourceSpace hm (S ⊔ T))) + (hcanonical : finiteSourceSymplecticMatrix hm (S ⊔ T) c = modeSymplecticForm) : + compression (canonicalPairProductCompressionIsometry hm hUW hS hT c) + (normalizedCommutation (complexify (productSourceCommutation hm (UA := U) (UB := W)))) = + (Matrix.toEuclideanCLM (n := Fin d × Fin 2) (𝕜 := ℂ)) + (covarianceCommutationMatrix + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) c) + (finiteSourceLabelSubspace hm (S ⊔ T) c S) + (finiteSourceLabelSubspace hm (S ⊔ T) c T) + (canonicalPairLabel_isCompl hm hUW hS hT c)) + modeSymplecticForm) := + (canonicalPairProductCompression_normalized_commutation hm hUW hS hT c).trans + (congrArg + (fun J : Matrix (Fin d × Fin 2) (Fin d × Fin 2) ℝ => + (Matrix.toEuclideanCLM (n := Fin d × Fin 2) (𝕜 := ℂ)) + (covarianceCommutationMatrix + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) c) + (finiteSourceLabelSubspace hm (S ⊔ T) c S) + (finiteSourceLabelSubspace hm (S ⊔ T) c T) + (canonicalPairLabel_isCompl hm hUW hS hT c)) J)) hcanonical) + +/-- Exact comparison with the genuine compressed full-source perturbation. -/ +theorem finitePair_forward_intrinsic_compression_norms + {m : ℝ} (hm : 0 < m) {U W : Set (EuclideanSpace ℝ (Fin 3))} + {S T : Submodule ℝ TimeZeroSource} [FiniteDimensional ℝ ↥(S ⊔ T)] + (hUW : Disjoint U W) (hS : IsCanonicalSourceSystem U S) + (hT : IsCanonicalSourceSystem W T) {d : ℕ} + (c : Module.Basis (Fin d × Fin 2) ℝ (FiniteSourceSpace hm (S ⊔ T))) + (hcanonical : finiteSourceSymplecticMatrix hm (S ⊔ T) c = modeSymplecticForm) + {ρ σ : MultiModeOscillatorSpace d →L[ℂ] MultiModeOscillatorSpace d} + (hσ : IsFaithfulDensity σ) + (hGρ : HasGaussianPhysicalCharacteristic ρ (finiteSourceCovarianceMatrix hm (S ⊔ T) c)) + (hGσ : HasGaussianPhysicalCharacteristic σ + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) c) + (finiteSourceLabelSubspace hm (S ⊔ T) c S) + (finiteSourceLabelSubspace hm (S ⊔ T) c T) + (canonicalPairLabel_isCompl hm hUW hS hT c))) + {τ : ℝ} (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + ‖intrinsicGaussianRelativePerturbation ρ σ τ‖ = + ‖normalizedReserveCompression (canonicalPairProductCompressionIsometry hm hUW hS hT c) + (complexify (productSourceCovariancePerturbation hm U W)) (normalizedThermal τ + (compression (canonicalPairProductCompressionIsometry hm hUW hS hT c) + (normalizedCommutation + (complexify (productSourceCommutation hm (UA := U) (UB := W))))))‖ ∧ + ENNReal.ofReal (matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ τ)) = + operatorTraceNorm + (normalizedReserveCompression (canonicalPairProductCompressionIsometry hm hUW hS hT c) + (complexify (productSourceCovariancePerturbation hm U W)) (normalizedThermal τ + (compression (canonicalPairProductCompressionIsometry hm hUW hS hT c) + (normalizedCommutation + (complexify (productSourceCommutation hm (UA := U) (UB := W))))))) := + intrinsicGaussianRelativePerturbation_compression_norms hσ + (finiteSourceCovarianceMatrix_isHermitian hm (S ⊔ T) c) + (canonicalPairProductCovariance_isHermitian hm hUW hS hT c) hGρ hGσ + (canonicalPairProductCompressionIsometry hm hUW hS hT c) + (canonicalPairProductCompression_commutation_canonical hm hUW hS hT c hcanonical) + (canonicalPairProductCompression_covariance_perturbation hm hUW hS hT c).symm hτ₀ hτ₁ + +/-- A full reserve factorization gives both literal finite Gaussian norms, +without any finite model-identification premise. -/ +theorem finitePair_forward_source_factorization_bounds + {m : ℝ} (hm : 0 < m) {U W : Set (EuclideanSpace ℝ (Fin 3))} + {S T : Submodule ℝ TimeZeroSource} [FiniteDimensional ℝ ↥(S ⊔ T)] + (hUW : Disjoint U W) (hS : IsCanonicalSourceSystem U S) + (hT : IsCanonicalSourceSystem W T) {d : ℕ} + (c : Module.Basis (Fin d × Fin 2) ℝ (FiniteSourceSpace hm (S ⊔ T))) + (hcanonical : finiteSourceSymplecticMatrix hm (S ⊔ T) c = modeSymplecticForm) + {ρ σ : MultiModeOscillatorSpace d →L[ℂ] MultiModeOscillatorSpace d} + (hσ : IsFaithfulDensity σ) + (hGρ : HasGaussianPhysicalCharacteristic ρ (finiteSourceCovarianceMatrix hm (S ⊔ T) c)) + (hGσ : HasGaussianPhysicalCharacteristic σ + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) c) + (finiteSourceLabelSubspace hm (S ⊔ T) c S) + (finiteSourceLabelSubspace hm (S ⊔ T) c T) + (canonicalPairLabel_isCompl hm hUW hS hT c))) + (n : ℕ) + {Y : HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) →L[ℂ] + HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W))} + (hfactor : complexify (productSourceCovariancePerturbation hm U W) = + reserve (normalizedCommutation + (complexify (productSourceCommutation hm (UA := U) (UB := W)))) ^ + (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) * Y * + reserve (normalizedCommutation + (complexify (productSourceCommutation hm (UA := U) (UB := W)))) ^ + (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ))) + (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) : + let b : ℝ := ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) + ‖intrinsicGaussianRelativePerturbation ρ σ b‖ ≤ (thermalConst b)⁻¹ * ‖Y‖ ∧ + ENNReal.ofReal (matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ b)) ≤ + ENNReal.ofReal (thermalConst b)⁻¹ * operatorTraceNorm Y := + gaussian_high_source_factorization_bounds hσ + (finiteSourceCovarianceMatrix_isHermitian hm (S ⊔ T) c) + (canonicalPairProductCovariance_isHermitian hm hUW hS hT c) hGρ hGσ + (canonicalPairProductCompressionIsometry hm hUW hS hT c) + (productSource_normalizedCommutation_isSelfAdjoint hm) + (productSource_normalizedCommutation_norm_le_one hm) + (canonicalPairProductCompression_commutation_canonical hm hUW hS hT c hcanonical) n + ((canonicalPairProductCompression_covariance_perturbation hm hUW hS hT c).symm.trans + (congrArg + (fun Z : HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) + →L[ℂ] HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) => + compression (canonicalPairProductCompressionIsometry hm hUW hS hT c) Z) + hfactor)) hcY hY + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FinitePairSourceCompression.lean b/LeanPool/VacuumBellSeparation/FreeField/FinitePairSourceCompression.lean new file mode 100644 index 0000000000..5df56e7d3c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FinitePairSourceCompression.lean @@ -0,0 +1,151 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteProductSourceCompression + +/-! +# Source compression for an actual disjoint canonical pair + +Both maps start from the same literal joint source basis. The reverse map +lands in the completed source space of the union. The forward map lands +in the actual product of the two regional source spaces. Localization, +complementarity and the vanishing symplectic cross form are derived from +the canonical source hypotheses and spatial disjointness. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian Matrix +open scoped InnerProductSpace MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {m : ℝ} (hm : 0 < m) + {U W : Set (EuclideanSpace ℝ (Fin 3))} + {S T : Submodule ℝ TimeZeroSource} [FiniteDimensional ℝ ↥(S ⊔ T)] + (hUW : Disjoint U W) (hS : IsCanonicalSourceSystem U S) + (hT : IsCanonicalSourceSystem W T) + {ι : Type*} [Fintype ι] [DecidableEq ι] + (b : Module.Basis ι ℝ (FiniteSourceSpace hm (S ⊔ T))) + +include hUW hS hT in +omit [DecidableEq ι] [FiniteDimensional ℝ ↥(S ⊔ T)] in +theorem canonicalPairLabel_isCompl : + IsCompl (finiteSourceLabelSubspace hm (S ⊔ T) b S) + (finiteSourceLabelSubspace hm (S ⊔ T) b T) := + finiteSourceLabelSubspace_isCompl hm (S ⊔ T) b rfl + (canonicalSourcePair_disjoint hUW hS hT) + +include hS in +omit [DecidableEq ι] [FiniteDimensional ℝ ↥(S ⊔ T)] in +theorem canonicalPairLabel_left_localized {x : ι → ℝ} + (hx : x ∈ finiteSourceLabelSubspace hm (S ⊔ T) b S) : + finiteSourceCoordinates hm (S ⊔ T) b x ∈ localizedTimeZeroSources U := + hS.2.1 hx + +include hT in +omit [DecidableEq ι] [FiniteDimensional ℝ ↥(S ⊔ T)] in +theorem canonicalPairLabel_right_localized {x : ι → ℝ} + (hx : x ∈ finiteSourceLabelSubspace hm (S ⊔ T) b T) : + finiteSourceCoordinates hm (S ⊔ T) b x ∈ localizedTimeZeroSources W := + hT.2.1 hx + +include hUW hS hT in +omit [DecidableEq ι] in +theorem canonicalPairLabel_symplectic_cross {x y : ι → ℝ} + (hx : x ∈ finiteSourceLabelSubspace hm (S ⊔ T) b S) + (hy : y ∈ finiteSourceLabelSubspace hm (S ⊔ T) b T) : + x ⬝ᵥ (finiteSourceSymplecticMatrix hm (S ⊔ T) b *ᵥ y) = 0 := by + rw [← finiteSourceCoordinates_symplectic] + exact canonicalSourcePair_cross hUW hS hT hx hy + +omit [DecidableEq ι] [FiniteDimensional ℝ ↥(S ⊔ T)] [Fintype ι] in +theorem finiteSourceSymplecticMatrix_transpose : + (finiteSourceSymplecticMatrix hm (S ⊔ T) b)ᵀ = + -finiteSourceSymplecticMatrix hm (S ⊔ T) b := by + ext i j + exact timeZeroSymplectic_skew _ _ + +/-- The product reference uses the actual two regional completions. -/ +def canonicalPairProductCompressionIsometry : + EuclideanSpace ℂ ι →ₗᵢ[ℂ] + HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) := + finiteProductSourceCompressionIsometry hm (S ⊔ T) b + (finiteSourceLabelSubspace hm (S ⊔ T) b S) + (finiteSourceLabelSubspace hm (S ⊔ T) b T) + (canonicalPairLabel_isCompl hm hUW hS hT b) + (fun _ hx => canonicalPairLabel_left_localized hm hS b hx) + (fun _ hx => canonicalPairLabel_right_localized hm hT b hx) + +theorem canonicalPairProductCompression_normalized_commutation : + compression (canonicalPairProductCompressionIsometry hm hUW hS hT b) + (normalizedCommutation (complexify (productSourceCommutation hm (UA := U) (UB := W)))) = + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (covarianceCommutationMatrix + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) b) + (finiteSourceLabelSubspace hm (S ⊔ T) b S) + (finiteSourceLabelSubspace hm (S ⊔ T) b T) + (canonicalPairLabel_isCompl hm hUW hS hT b)) + (finiteSourceSymplecticMatrix hm (S ⊔ T) b)) := + finiteProductSourceCompression_normalized_commutation hm (S ⊔ T) b _ _ _ _ _ + (finiteSourceSymplecticMatrix_transpose hm b) + (fun _ hx _ hy => canonicalPairLabel_symplectic_cross hm hUW hS hT b hx hy) + +theorem productSource_normalizedCommutation_isSelfAdjoint : + IsSelfAdjoint + (normalizedCommutation (complexify (productSourceCommutation hm (UA := U) (UB := W)))) := + normalizedCommutation_isSelfAdjoint + (complexify_mem_skewAdjoint (productSourceCommutation_mem_skewAdjoint hm)) + +theorem productSource_normalizedCommutation_norm_le_one : + ‖normalizedCommutation (complexify (productSourceCommutation hm (UA := U) (UB := W)))‖ ≤ 1 := by + apply norm_normalizedCommutation_le_one + rw [norm_complexify] + exact norm_productSourceCommutation_le_two hm + +/-- The reverse comparison uses the joint source space in the union. -/ +def canonicalPairJointCompressionIsometry : + EuclideanSpace ℂ ι →ₗᵢ[ℂ] ComplexSourceHilbert hm (U ∪ W) := + finiteSourceCompressionIsometry hm (S ⊔ T) b + (canonicalSourcePair_sup_isCanonical hUW hS hT).2.1 + +omit [FiniteDimensional ℝ ↥(S ⊔ T)] in +theorem canonicalPairJointCompression_normalized_commutation : + compression (canonicalPairJointCompressionIsometry hm hUW hS hT b) + (normalizedCommutation (complexSourceCommutation hm (U ∪ W))) = + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (covarianceCommutationMatrix + (finiteSourceCovarianceMatrix hm (S ⊔ T) b) + (finiteSourceSymplecticMatrix hm (S ⊔ T) b)) := + finiteSourceCompression_normalized_commutation hm (S ⊔ T) b _ + +theorem canonicalPairProductCompression_thermal_weight {n : ℕ} + (c : Module.Basis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm (S ⊔ T))) + (hcanonical : finiteSourceSymplecticMatrix hm (S ⊔ T) c = modeSymplecticForm) + {σ : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n} + (hσ : IsFaithfulDensity σ) + (hG : HasGaussianPhysicalCharacteristic σ + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) c) + (finiteSourceLabelSubspace hm (S ⊔ T) c S) + (finiteSourceLabelSubspace hm (S ⊔ T) c T) + (canonicalPairLabel_isCompl hm hUW hS hT c))) + {τ : ℝ} (hτ : 0 < τ) : + normalizedThermal τ + (compression (canonicalPairProductCompressionIsometry hm hUW hS hT c) + (normalizedCommutation (complexify (productSourceCommutation hm (UA := U) (UB := W))))) = + realMatrixOperator (relativeCovariancePerturbation + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) c) + (finiteSourceLabelSubspace hm (S ⊔ T) c S) + (finiteSourceLabelSubspace hm (S ⊔ T) c T) + (canonicalPairLabel_isCompl hm hUW hS hT c)) (gaussianPowerIncrement σ τ)) := by + rw [canonicalPairProductCompression_normalized_commutation, hcanonical] + apply (gaussian_power_increment_operator_eq_normalizedThermal hσ _ hG hτ).symm + exact (labelDecorrelatedCovariance_posDef + (finiteSourceCovarianceMatrix_posDef hm (S ⊔ T) c) _ _ _).isHermitian + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalEventBounds.lean b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalEventBounds.lean new file mode 100644 index 0000000000..2eeca8336a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalEventBounds.lean @@ -0,0 +1,82 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalGaussianEstimates + +/-! +# Real denominator-free event bounds from actual finite Gaussian comparison + +The conversion retains zero probabilities. No division by a probability +is used, and both comparison coefficients are explicit upper bounds on +the corresponding genuine Rényi quantity. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped InnerProductSpace ENNReal + +theorem real_event_bound_of_ennreal {x y K r : ℝ} + (hx : 0 ≤ x) (hy : 0 ≤ y) (hK : 0 ≤ K) (hr : 1 < r) + (h : ENNReal.ofReal x ^ r ≤ ENNReal.ofReal K * ENNReal.ofReal y ^ (r - 1)) : + x ^ r ≤ K * y ^ (r - 1) := by + rw [ENNReal.ofReal_rpow_of_nonneg hx (lt_trans zero_lt_one hr).le, + ENNReal.ofReal_rpow_of_nonneg hy (sub_pos.mpr hr).le, ← ENNReal.ofReal_mul hK] at h + exact (ENNReal.ofReal_le_ofReal_iff (mul_nonneg hK (Real.rpow_nonneg hy _))).mp h + +variable {m : ℝ} {hm : 0 < m} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + {V : FreeFieldVacuum m H} {S T : Submodule ℝ TimeZeroSource} + +namespace FiniteGaussianPairModel + +variable (X : FiniteGaussianPairModel hm V S T) + +theorem forward_event_bound {r K : ℝ} (hr : 1 < r) (hK : 0 ≤ K) + (hQ : sandwichedRenyiQuantity X.density X.reference r ≤ ENNReal.ofReal K) + {A B : H →L[ℂ] H} (hA : A ∈ effects (canonicalSourceAlgebra V hm S)) + (hB : B ∈ effects (canonicalSourceAlgebra V hm T)) (hAB : A * B = B * A) : + (⟪V.vacuum, (A * B) V.vacuum⟫_ℂ).re ^ r ≤ + K * ((⟪V.vacuum, A V.vacuum⟫_ℂ).re * (⟪V.vacuum, B V.vacuum⟫_ℂ).re) ^ (r - 1) := by + have hA₀ := ContinuousLinearMap.nonneg_iff_isPositive.mpr hA.2.1 + have hA₁ := sub_nonneg.mp (ContinuousLinearMap.nonneg_iff_isPositive.mpr hA.2.2) + have hB₀ := ContinuousLinearMap.nonneg_iff_isPositive.mpr hB.2.1 + have hB₁ := sub_nonneg.mp (ContinuousLinearMap.nonneg_iff_isPositive.mpr hB.2.2) + have hprod := commuting_effect_product hA₀ hA₁ hB₀ hB₁ hAB + have hw : 0 ≤ (⟪V.vacuum, (A * B) V.vacuum⟫_ℂ).re := + (ContinuousLinearMap.nonneg_iff_isPositive.mp hprod.1).re_inner_nonneg_right _ + have hp : 0 ≤ (⟪V.vacuum, A V.vacuum⟫_ℂ).re * (⟪V.vacuum, B V.vacuum⟫_ℂ).re := + mul_nonneg (hA.2.1.re_inner_nonneg_right _) (hB.2.1.re_inner_nonneg_right _) + exact real_event_bound_of_ennreal hw hp hK hr + ((X.effect_renyi_bounds hr hA.1 hB.1 hA₀ hA₁ hB₀ hB₁ hAB).1.trans + (_root_.mul_le_mul_left hQ _)) + +theorem reverse_event_bound {r K : ℝ} (hr : 1 < r) (hK : 0 ≤ K) + (hQ : sandwichedRenyiQuantity X.reference X.density r ≤ ENNReal.ofReal K) + {A B : H →L[ℂ] H} (hA : A ∈ effects (canonicalSourceAlgebra V hm S)) + (hB : B ∈ effects (canonicalSourceAlgebra V hm T)) (hAB : A * B = B * A) : + ((⟪V.vacuum, A V.vacuum⟫_ℂ).re * (⟪V.vacuum, B V.vacuum⟫_ℂ).re) ^ r ≤ + K * (⟪V.vacuum, (A * B) V.vacuum⟫_ℂ).re ^ (r - 1) := by + have hA₀ := ContinuousLinearMap.nonneg_iff_isPositive.mpr hA.2.1 + have hA₁ := sub_nonneg.mp (ContinuousLinearMap.nonneg_iff_isPositive.mpr hA.2.2) + have hB₀ := ContinuousLinearMap.nonneg_iff_isPositive.mpr hB.2.1 + have hB₁ := sub_nonneg.mp (ContinuousLinearMap.nonneg_iff_isPositive.mpr hB.2.2) + have hprod := commuting_effect_product hA₀ hA₁ hB₀ hB₁ hAB + have hw : 0 ≤ (⟪V.vacuum, (A * B) V.vacuum⟫_ℂ).re := + (ContinuousLinearMap.nonneg_iff_isPositive.mp hprod.1).re_inner_nonneg_right _ + have hp : 0 ≤ (⟪V.vacuum, A V.vacuum⟫_ℂ).re * (⟪V.vacuum, B V.vacuum⟫_ℂ).re := + mul_nonneg (hA.2.1.re_inner_nonneg_right _) (hB.2.1.re_inner_nonneg_right _) + exact real_event_bound_of_ennreal hp hw hK hr + ((X.effect_renyi_bounds hr hA.1 hB.1 hA₀ hA₁ hB₀ hB₁ hAB).2.trans + (_root_.mul_le_mul_left hQ _)) + +end FiniteGaussianPairModel + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalForwardSpatial.lean b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalForwardSpatial.lean new file mode 100644 index 0000000000..78c861075e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalForwardSpatial.lean @@ -0,0 +1,94 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteForwardRenyiEnvelope +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalGaussianEstimates +public import LeanPool.VacuumBellSeparation.Gaussian.RenyiExponentialEnvelope + +/-! +# Uniform forward estimates on the actual finite physical algebras + +The constants are independent of mass, physical representation and finite +canonical systems. Actual model existence, source estimates and Rényi +comparison supply both the forward effect inequality and the full complex +contraction covariance bound. Regional exhaustion is a separate step. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped ENNReal InnerProductSpace Matrix.Norms.L2Operator + +theorem exists_uniform_finite_physical_forward (n : ℕ) : + ∃ Sgeo A Q₀ : ℝ, 0 < Sgeo ∧ 0 < A ∧ 0 < Q₀ ∧ + ∀ (m : ℝ) (hm : 0 < m) (s : ℝ), Sgeo ≤ s → + A / s ^ 2 ≤ 1 / (8 * ((n + 2 : ℕ) : ℝ)) → + ∀ (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) (U W : Set (EuclideanSpace ℝ (Fin 3))), + U ⊆ Metric.ball 0 1 → W ⊆ Metric.ball (spatialAxisDisplacement s 0) 1 → + Disjoint U W → ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + (∀ A₀ ∈ canonicalSourceAlgebra V hm S, ∀ B₀ ∈ canonicalSourceAlgebra V hm T, + 0 ≤ A₀ → A₀ ≤ 1 → 0 ≤ B₀ → B₀ ≤ 1 → + ENNReal.ofReal (⟪V.vacuum, (A₀ * B₀) V.vacuum⟫_ℂ).re ^ ((n + 2 : ℕ) : ℝ) ≤ + ENNReal.ofReal (Real.exp (8 * ((n + 2 : ℕ) : ℝ) * (A / s ^ 2))) * + ENNReal.ofReal ((⟪V.vacuum, A₀ V.vacuum⟫_ℂ).re * + (⟪V.vacuum, B₀ V.vacuum⟫_ℂ).re) ^ (((n + 2 : ℕ) : ℝ) - 1)) ∧ + (∀ A₀ ∈ canonicalSourceAlgebra V hm S, ∀ B₀ ∈ canonicalSourceAlgebra V hm T, + ‖A₀‖ ≤ 1 → ‖B₀‖ ≤ 1 → + ‖⟪V.vacuum, (A₀ * B₀) V.vacuum⟫_ℂ - + ⟪V.vacuum, A₀ V.vacuum⟫_ℂ * ⟪V.vacuum, B₀ V.vacuum⟫_ℂ‖ ≤ Q₀ / s) := by + obtain ⟨Sgeo, A, hSgeo, hA, hbound⟩ := exists_uniform_finite_forward_bounds n + let r : ℝ := ((n + 2 : ℕ) : ℝ) + have hr : 2 ≤ r := by + change (2 : ℝ) ≤ ((n + 2 : ℕ) : ℝ) + exact_mod_cast (show 2 ≤ n + 2 by omega) + have hr1 : 1 < r := by linarith + have hr0 : 0 < r := by linarith + refine ⟨Sgeo, A, 4 * Real.sqrt (r * A), hSgeo, hA, by positivity, ?_⟩ + intro m hm s hs hsmall H _ _ _ V U W hU hW hUW S T hS hT + have hs0 : 0 < s := hSgeo.trans_le hs + let _ : FiniteDimensional ℝ ↥(S ⊔ T) := (canonicalSourcePair_sup_isCanonical hUW hS hT).1 + obtain ⟨X⟩ := nonempty_finiteGaussianPairModel hm V S T + (Metric.isBounded_ball.subset hU) (Metric.isBounded_ball.subset hW) hUW hS hT + obtain ⟨hop, htrace⟩ := hbound m hm s hs U W hU hW hUW S T hS hT X.modes X.basis + X.symplectic X.density X.reference X.faithful_reference X.characteristic + X.reference_characteristic + have heps : A / s ^ 2 ≤ 1 / 8 := hsmall.trans (by + change 1 / (8 * r) ≤ (1 / 8 : ℝ) + rw [div_le_div_iff₀ (by positivity) (by norm_num : (0 : ℝ) < 8)] + nlinarith) + obtain ⟨_, _, _, hQ⟩ := finite_high_order_gaussian_renyi_bound + X.faithful_density X.faithful_reference + (finiteSourceCovarianceMatrix_isHermitian hm (S ⊔ T) X.basis) + X.reference_covariance_posDef.isHermitian X.characteristic X.reference_characteristic + n heps hop htrace + constructor + · intro A₀ hA₀ B₀ hB₀ hA0 hA1 hB0 hB1 + have hAB := commuting_canonicalSourceAlgebras hm V S T + (fun u hu v hv => canonicalSourcePair_cross hUW hS hT hu hv) A₀ hA₀ B₀ hB₀ + exact ((X.effect_renyi_bounds hr1 hA₀ hB₀ hA0 hA1 hB0 hB1 hAB).1).trans + (_root_.mul_le_mul_left hQ _) + · intro A₀ hA₀ B₀ hB₀ hAn hBn + have hcov := X.contraction_covariance_le_renyi hr hA₀ hB₀ hAn hBn + have hQroot := ENNReal.rpow_le_rpow + (tsub_le_tsub_right (ENNReal.rpow_le_rpow hQ + (one_div_nonneg.mpr (sub_pos.mpr hr1).le)) 1) (by norm_num : (0 : ℝ) ≤ 1 / 2) + have hx0 : 0 ≤ 8 * r * (A / s ^ 2) := by positivity + have hx1 : 8 * r * (A / s ^ 2) ≤ 1 := by + have h := mul_le_mul_of_nonneg_left hsmall (show 0 ≤ 8 * r by positivity) + have he : (8 * r) * (1 / (8 * r)) = 1 := by field_simp + exact h.trans_eq he + have henv := renyi_exponential_sqrt_envelope hr hx0 hx1 + rw [sqrt_forward_envelope hr0.le hA.le hs0] at henv + exact (ENNReal.ofReal_le_ofReal_iff (by positivity)).mp + ((hcov.trans hQroot).trans henv) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalGaussianEstimates.lean b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalGaussianEstimates.lean new file mode 100644 index 0000000000..7e220d6654 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalGaussianEstimates.lean @@ -0,0 +1,109 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalRenyiEffects +public import LeanPool.VacuumBellSeparation.Gaussian.DensityRenyiCovariance + +/-! +# Gaussian quantitative estimates on the actual finite physical observables + +Both comparison directions use the actual fixed density and reference. +The covariance bound controls the original complex vacuum covariance of +arbitrary bounded contractions. The remaining hypotheses concern the +literal intrinsic covariance perturbation, not representation existence. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped InnerProductSpace ENNReal Matrix.Norms.L2Operator + +variable {m : ℝ} {hm : 0 < m} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + {V : FreeFieldVacuum m H} {S T : Submodule ℝ TimeZeroSource} + +namespace FiniteGaussianPairModel + +variable (X : FiniteGaussianPairModel hm V S T) + +theorem reference_covariance_posDef : + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm (S ⊔ T) X.basis) + (finiteSourceLabelSubspace hm (S ⊔ T) X.basis S) + (finiteSourceLabelSubspace hm (S ⊔ T) X.basis T) X.complementary).PosDef := by + let : FiniteDimensional ℝ ↥(S ⊔ T) := X.basis.finiteDimensional_of_finite + exact labelDecorrelatedCovariance_posDef + (real_posDef_of_quantum_posDef (actual_faithful_gaussian_quantum_posDef + X.faithful_density (finiteSourceCovarianceMatrix_isHermitian hm (S ⊔ T) X.basis) + X.characteristic)) _ _ X.complementary + +theorem renyi_exp_bound {r : ℝ} (hr : 1 < r) + (hsmall : ‖intrinsicGaussianRelativePerturbation X.density X.reference (gaussianRenyiTau r)‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹) : + sandwichedRenyiQuantity X.density X.reference r ≤ + ENNReal.ofReal (Real.exp (gaussianRenyiExponent X.density X.reference r)) := by + let : FiniteDimensional ℝ ↥(S ⊔ T) := X.basis.finiteDimensional_of_finite + exact faithful_gaussian_renyi_exp_bound X.faithful_density X.faithful_reference + (finiteSourceCovarianceMatrix_isHermitian hm (S ⊔ T) X.basis) + X.reference_covariance_posDef.isHermitian X.characteristic X.reference_characteristic hr hsmall + +theorem reverse_renyi_exp_bound {r : ℝ} (hr : 1 < r) + (hsmall : ‖intrinsicGaussianRelativePerturbation X.reference X.density (gaussianRenyiTau r)‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹) : + sandwichedRenyiQuantity X.reference X.density r ≤ + ENNReal.ofReal (Real.exp (gaussianRenyiExponent X.reference X.density r)) := by + let : FiniteDimensional ℝ ↥(S ⊔ T) := X.basis.finiteDimensional_of_finite + exact faithful_gaussian_renyi_exp_bound X.faithful_reference X.faithful_density + X.reference_covariance_posDef.isHermitian + (finiteSourceCovarianceMatrix_isHermitian hm (S ⊔ T) X.basis) + X.reference_characteristic X.characteristic hr hsmall + +/-- Actual original-vacuum covariance, allowing complex nonselfadjoint +contractions and an infinite Rényi quantity. -/ +theorem contraction_covariance_le_renyi {r : ℝ} (hr : 2 ≤ r) + {A B : H →L[ℂ] H} (hA : A ∈ canonicalSourceAlgebra V hm S) + (hB : B ∈ canonicalSourceAlgebra V hm T) (hAn : ‖A‖ ≤ 1) (hBn : ‖B‖ ≤ 1) : + ENNReal.ofReal ‖⟪V.vacuum, (A * B) V.vacuum⟫_ℂ - + ⟪V.vacuum, A V.vacuum⟫_ℂ * ⟪V.vacuum, B V.vacuum⟫_ℂ‖ ≤ + (sandwichedRenyiQuantity X.density X.reference r ^ (1 / (r - 1)) - 1) ^ (1 / 2 : ℝ) := by + have hAS := canonicalSourceAlgebra_mono V hm (show S ≤ S ⊔ T from le_sup_left) hA + have hBT := canonicalSourceAlgebra_mono V hm (show T ≤ S ⊔ T from le_sup_right) hB + have hρ := X.vacuum_expectation (A * B) ((canonicalSourceAlgebra V hm (S ⊔ T)).mul_mem hAS hBT) + have hσ := X.product_expectation A hA B hB + have h := enorm_densityExpectation_sub_le_renyi (multiModeNumberBasis X.modes) + X.faithful_density.1 X.faithful_density.2.1 X.faithful_reference hr (X.toOperator (A * B)) + rw [← hρ, hσ] at h + have hn : ENNReal.ofReal ‖X.toOperator (A * B)‖ ≤ 1 := by + apply ENNReal.ofReal_le_one.mpr + exact (X.map_norm_le _).trans ((norm_mul_le A B).trans + ((mul_le_mul_of_nonneg_right hAn (norm_nonneg B)).trans + (by simpa only [one_mul] using hBn))) + exact h.trans (by + simpa only [mul_one] using + (_root_.mul_le_mul_right hn + ((sandwichedRenyiQuantity X.density X.reference r ^ (1 / (r - 1)) - 1) ^ (1 / 2 : ℝ)))) + +/-- The finite source form of the Gaussian trace-distance covariance estimate. -/ +theorem contraction_covariance_exp_bound {r : ℝ} (hr : 2 ≤ r) + (hsmall : ‖intrinsicGaussianRelativePerturbation X.density X.reference (gaussianRenyiTau r)‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹) + {A B : H →L[ℂ] H} (hA : A ∈ canonicalSourceAlgebra V hm S) + (hB : B ∈ canonicalSourceAlgebra V hm T) (hAn : ‖A‖ ≤ 1) (hBn : ‖B‖ ≤ 1) : + ENNReal.ofReal ‖⟪V.vacuum, (A * B) V.vacuum⟫_ℂ - + ⟪V.vacuum, A V.vacuum⟫_ℂ * ⟪V.vacuum, B V.vacuum⟫_ℂ‖ ≤ + (ENNReal.ofReal (Real.exp (gaussianRenyiExponent X.density X.reference r)) ^ + (1 / (r - 1)) - 1) ^ (1 / 2 : ℝ) := by + have hr1 : 1 < r := lt_of_lt_of_le (by norm_num) hr + exact (X.contraction_covariance_le_renyi hr hA hB hAn hBn).trans + (ENNReal.rpow_le_rpow (tsub_le_tsub_right (ENNReal.rpow_le_rpow + (X.renyi_exp_bound hr1 hsmall) (one_div_nonneg.mpr (sub_pos.mpr hr1).le)) 1) (by norm_num)) + +end FiniteGaussianPairModel + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalRenyiEffects.lean b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalRenyiEffects.lean new file mode 100644 index 0000000000..da1b42e99c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalRenyiEffects.lean @@ -0,0 +1,106 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteGaussianPairModel +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroSourceLocality +public import LeanPool.VacuumBellSeparation.Bell.CommutingEffects +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiConsequences + +/-! +# Both actual Rényi effect inequalities in the original physical vacuum + +The constructed reference is fixed for the two source systems before the +effects or Rényi order are chosen. Its full regional marginals identify the +reference joint effect expectation with the product of physical probabilities. +These estimates retain the true Rényi quantities. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped InnerProductSpace ENNReal + +variable {m : ℝ} {hm : 0 < m} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + {V : FreeFieldVacuum m H} {S T : Submodule ℝ TimeZeroSource} + +omit [CompleteSpace H] in +theorem inner_product_real_of_nonneg {A B : H →L[ℂ] H} + (hA : 0 ≤ A) (v : H) : + (⟪v, A v⟫_ℂ * ⟪v, B v⟫_ℂ).re = (⟪v, A v⟫_ℂ).re * (⟪v, B v⟫_ℂ).re := by + have hAi : (⟪v, A v⟫_ℂ).im = 0 := by + exact (ContinuousLinearMap.nonneg_iff_isPositive.mp + hA).toLinearMap.isSymmetric.im_inner_self_apply v + simp only [Complex.mul_re, hAi, zero_mul, sub_zero] + +namespace FiniteGaussianPairModel + +variable (X : FiniteGaussianPairModel hm V S T) + +theorem effect_renyi_bounds {r : ℝ} (hr : 1 < r) + {A B : H →L[ℂ] H} (hA : A ∈ canonicalSourceAlgebra V hm S) + (hB : B ∈ canonicalSourceAlgebra V hm T) + (hA₀ : 0 ≤ A) (hA₁ : A ≤ 1) (hB₀ : 0 ≤ B) (hB₁ : B ≤ 1) + (hAB : A * B = B * A) : + (ENNReal.ofReal (⟪V.vacuum, (A * B) V.vacuum⟫_ℂ).re ^ r ≤ + sandwichedRenyiQuantity X.density X.reference r * + ENNReal.ofReal ((⟪V.vacuum, A V.vacuum⟫_ℂ).re * + (⟪V.vacuum, B V.vacuum⟫_ℂ).re) ^ (r - 1)) ∧ + (ENNReal.ofReal ((⟪V.vacuum, A V.vacuum⟫_ℂ).re * + (⟪V.vacuum, B V.vacuum⟫_ℂ).re) ^ r ≤ + sandwichedRenyiQuantity X.reference X.density r * + ENNReal.ofReal (⟪V.vacuum, (A * B) V.vacuum⟫_ℂ).re ^ (r - 1)) := by + have hAS := canonicalSourceAlgebra_mono V hm (show S ≤ S ⊔ T from le_sup_left) hA + have hBT := canonicalSourceAlgebra_mono V hm (show T ≤ S ⊔ T from le_sup_right) hB + have hprod := commuting_effect_product hA₀ hA₁ hB₀ hB₁ hAB + have hρ := X.vacuum_expectation (A * B) ((canonicalSourceAlgebra V hm (S ⊔ T)).mul_mem hAS hBT) + have hσ := X.product_expectation A hA B hB + have hσre : (densityExpectation (multiModeNumberBasis X.modes) X.reference + (X.toOperator (A * B))).re = + (⟪V.vacuum, A V.vacuum⟫_ℂ).re * (⟪V.vacuum, B V.vacuum⟫_ℂ).re := by + rw [hσ, inner_product_real_of_nonneg hA₀] + constructor + · have he := faithful_sandwichedRenyi_density_effect_bound (multiModeNumberBasis X.modes) + X.faithful_density.isPositiveTraceClass X.faithful_reference hr + (X.map_nonneg _ hprod.1) (X.map_le_one _ hprod.2) + rwa [← hρ, hσre] at he + · have he := faithful_sandwichedRenyi_density_effect_bound (multiModeNumberBasis X.modes) + X.faithful_reference.isPositiveTraceClass X.faithful_density hr + (X.map_nonneg _ hprod.1) (X.map_le_one _ hprod.2) + rwa [← hρ, hσre] at he + +end FiniteGaussianPairModel + +/-- A single actual model gives both bounds for all physical local effects +and all Rényi orders greater than one. No existence premise remains. -/ +theorem exists_finite_physical_renyi_effect_bounds + (hm : 0 < m) (V : FreeFieldVacuum m H) (S T : Submodule ℝ TimeZeroSource) + {U W : Set (EuclideanSpace ℝ (Fin 3))} + (hU : Bornology.IsBounded U) (hW : Bornology.IsBounded W) (hUW : Disjoint U W) + (hS : IsCanonicalSourceSystem U S) (hT : IsCanonicalSourceSystem W T) : + ∃ X : FiniteGaussianPairModel hm V S T, ∀ r : ℝ, 1 < r → + ∀ A ∈ canonicalSourceAlgebra V hm S, ∀ B ∈ canonicalSourceAlgebra V hm T, + 0 ≤ A → A ≤ 1 → 0 ≤ B → B ≤ 1 → + (ENNReal.ofReal (⟪V.vacuum, (A * B) V.vacuum⟫_ℂ).re ^ r ≤ + sandwichedRenyiQuantity X.density X.reference r * + ENNReal.ofReal ((⟪V.vacuum, A V.vacuum⟫_ℂ).re * + (⟪V.vacuum, B V.vacuum⟫_ℂ).re) ^ (r - 1)) ∧ + (ENNReal.ofReal ((⟪V.vacuum, A V.vacuum⟫_ℂ).re * + (⟪V.vacuum, B V.vacuum⟫_ℂ).re) ^ r ≤ + sandwichedRenyiQuantity X.reference X.density r * + ENNReal.ofReal (⟪V.vacuum, (A * B) V.vacuum⟫_ℂ).re ^ (r - 1)) := by + obtain ⟨X⟩ := nonempty_finiteGaussianPairModel hm V S T hU hW hUW hS hT + refine ⟨X, ?_⟩ + intro r hr A hA B hB hA₀ hA₁ hB₀ hB₁ + exact X.effect_renyi_bounds hr hA hB hA₀ hA₁ hB₀ hB₁ + (commuting_canonicalSourceAlgebras hm V S T + (fun u hu v hv => canonicalSourcePair_cross hUW hS hT hu hv) A hA B hB) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalReverseNormalization.lean b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalReverseNormalization.lean new file mode 100644 index 0000000000..dc9178b564 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalReverseNormalization.lean @@ -0,0 +1,111 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointFiniteCovarianceCompression +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSourceCompressionBounds +public import LeanPool.VacuumBellSeparation.Gaussian.NuclearNormConvergence +public import LeanPool.VacuumBellSeparation.Constants.Parameters + +/-! +# Reverse normalization from the actual joint source difference + +The full operator is product covariance minus joint covariance. Whitening +uses the joint covariance, and the reference density in the reverse Rényi +comparison is the actual joint density. Both identities are constructed. + +The finite source data and Gaussian hypotheses are explicit binders of each +theorem, with no section variables or local notation; Gaussian characteristic +hypotheses brought in as section variables through `include` exceed the +heartbeat limit (see `FinitePairForwardNormalization`). The statements and +argument order are unchanged. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian Matrix +open scoped ENNReal Matrix.Norms.L2Operator + +theorem finite_reverse_source_factorization_bounds + {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + (S : Submodule ℝ TimeZeroSource) + {d : ℕ} (c : Module.Basis (Fin d × Fin 2) ℝ (FiniteSourceSpace hμ S)) + (hSU : S ≤ localizedTimeZeroSources (jointSourceRegion s)) + (L R : Submodule ℝ (Fin d × Fin 2 → ℝ)) (hLR : IsCompl L R) + (hLA : ∀ x ∈ L, finiteSourceCoordinates hμ S c x ∈ + localizedTimeZeroSources (Metric.ball (jointCenterIndex s 0) 1)) + (hRB : ∀ x ∈ R, finiteSourceCoordinates hμ S c x ∈ + localizedTimeZeroSources (Metric.ball (jointCenterIndex s 1) 1)) + (hcanonical : finiteSourceSymplecticMatrix hμ S c = modeSymplecticForm) + {ρ σ : MultiModeOscillatorSpace d →L[ℂ] MultiModeOscillatorSpace d} + (hρ : IsFaithfulDensity ρ) + (hGρ : HasGaussianPhysicalCharacteristic ρ (finiteSourceCovarianceMatrix hμ S c)) + (hGσ : HasGaussianPhysicalCharacteristic σ + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hμ S c) L R hLR)) + {a : ℝ} (ha₀ : 0 < a) (ha₁ : a ≤ 1 / 2) + {Y : ComplexSourceHilbert hμ (jointSourceRegion s) →L[ℂ] + ComplexSourceHilbert hμ (jointSourceRegion s)} + (hfactor : complexify (jointDifferenceKernelOperator hμ hs) = + sourceReserve hμ (jointSourceRegion s) ^ a * Y * sourceReserve hμ (jointSourceRegion s) ^ a) + (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) : + ‖intrinsicGaussianRelativePerturbation σ ρ a‖ ≤ (thermalConst a)⁻¹ * ‖Y‖ ∧ + ENNReal.ofReal (matrixTraceNorm (intrinsicGaussianRelativePerturbation σ ρ a)) ≤ + ENNReal.ofReal (thermalConst a)⁻¹ * operatorTraceNorm Y := by + have hcomp := finiteSourceCompression_normalized_commutation_canonical hμ S hSU c hcanonical + have hD := (finiteSourceCompression_joint_difference hμ hs S c hSU L R hLR hLA hRB).symm + rw [hfactor] at hD + simp only [sourceReserve_eq_normalized_reserve] at hD + exact gaussian_low_source_factorization_bounds hρ + (labelDecorrelatedCovariance_posDef (finiteSourceCovarianceMatrix_posDef hμ S c) L R + hLR).isHermitian + (finiteSourceCovarianceMatrix_posDef hμ S c).isHermitian hGσ hGρ + (finiteSourceCompressionIsometry hμ S c hSU) + (normalizedCommutation_isSelfAdjoint (complexSourceCommutation_mem_skewAdjoint hμ _)) + (norm_normalizedCommutation_le_one (norm_complexSourceCommutation_le_two hμ _)) + hcomp ha₀ ha₁ hD hcY hY + +/-- A single genuine nuclear bound controls both actual finite norms. -/ +theorem finite_reverse_source_nuclear_bound + {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + (S : Submodule ℝ TimeZeroSource) + {d : ℕ} (c : Module.Basis (Fin d × Fin 2) ℝ (FiniteSourceSpace hμ S)) + (hSU : S ≤ localizedTimeZeroSources (jointSourceRegion s)) + (L R : Submodule ℝ (Fin d × Fin 2 → ℝ)) (hLR : IsCompl L R) + (hLA : ∀ x ∈ L, finiteSourceCoordinates hμ S c x ∈ + localizedTimeZeroSources (Metric.ball (jointCenterIndex s 0) 1)) + (hRB : ∀ x ∈ R, finiteSourceCoordinates hμ S c x ∈ + localizedTimeZeroSources (Metric.ball (jointCenterIndex s 1) 1)) + (hcanonical : finiteSourceSymplecticMatrix hμ S c = modeSymplecticForm) + {ρ σ : MultiModeOscillatorSpace d →L[ℂ] MultiModeOscillatorSpace d} + (hρ : IsFaithfulDensity ρ) + (hGρ : HasGaussianPhysicalCharacteristic ρ (finiteSourceCovarianceMatrix hμ S c)) + (hGσ : HasGaussianPhysicalCharacteristic σ + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hμ S c) L R hLR)) + {a ε : ℝ} (ha₀ : 0 < a) (ha₁ : a ≤ 1 / 2) (hε : 0 ≤ ε) + {Y : ComplexSourceHilbert hμ (jointSourceRegion s) →L[ℂ] + ComplexSourceHilbert hμ (jointSourceRegion s)} + (hfactor : complexify (jointDifferenceKernelOperator hμ hs) = + sourceReserve hμ (jointSourceRegion s) ^ a * Y * sourceReserve hμ (jointSourceRegion s) ^ a) + (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) + (htrace : operatorTraceNorm Y ≤ ENNReal.ofReal ε) : + ‖intrinsicGaussianRelativePerturbation σ ρ a‖ ≤ (thermalConst a)⁻¹ * ε ∧ + matrixTraceNorm (intrinsicGaussianRelativePerturbation σ ρ a) ≤ (thermalConst a)⁻¹ * ε := by + have ha1 : a < 1 := by linarith + have hc := thermalConst_pos ha₀ ha1 + have hnorm : ‖Y‖ ≤ ε := (ENNReal.ofReal_le_ofReal_iff hε).mp + ((ofReal_norm_le_operatorTraceNorm Y).trans htrace) + obtain ⟨hop, htr⟩ := finite_reverse_source_factorization_bounds hμ hs S c hSU L R hLR + hLA hRB hcanonical hρ hGρ hGσ ha₀ ha₁ hfactor hcY hY + refine ⟨hop.trans (mul_le_mul_of_nonneg_left hnorm (inv_nonneg.mpr hc.le)), ?_⟩ + have hh := htr.trans (_root_.mul_le_mul_right htrace (ENNReal.ofReal (thermalConst a)⁻¹)) + rw [← ENNReal.ofReal_mul (inv_nonneg.mpr hc.le)] at hh + exact (ENNReal.ofReal_le_ofReal_iff (mul_nonneg (inv_nonneg.mpr hc.le) hε)).mp hh + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalReverseRenyi.lean b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalReverseRenyi.lean new file mode 100644 index 0000000000..1ea5b42e6f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalReverseRenyi.lean @@ -0,0 +1,72 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalReverseNormalization +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiConsequences + +/-! +# The actual reverse Gaussian Rényi envelope + +The manuscript's fixed reverse order has compression exponent exactly aRev. +The low-exponent constant and smallness threshold are retained literally. +The quantity is proved positive and finite before its logarithm is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped ENNReal Matrix.Norms.L2Operator + +theorem gaussianRenyiTau_rMinus : gaussianRenyiTau rMinus = aRev := by + norm_num [gaussianRenyiTau, rMinus, aRev, theta, Lambda0] + +theorem reverseOrder_max_inverse : max 2 (gaussianRenyiTau rMinus)⁻¹ = aRev⁻¹ := by + rw [gaussianRenyiTau_rMinus] + norm_num [aRev, theta, Lambda0] + +theorem reverseOrder_smallness : (4 * max 2 (gaussianRenyiTau rMinus)⁻¹)⁻¹ = aRev / 4 := by + rw [reverseOrder_max_inverse] + norm_num [aRev, theta, Lambda0] + +/-- This applies to either ordered pair of actual faithful Gaussian densities; +the physical reverse application puts the product density first. -/ +theorem finite_reverse_order_gaussian_renyi_bound {d : ℕ} + {ρ σ : MultiModeOscillatorSpace d →L[ℂ] MultiModeOscillatorSpace d} + {Vρ Vσ : Matrix (Fin d × Fin 2) (Fin d × Fin 2) ℝ} + (hρ : IsFaithfulDensity ρ) (hσ : IsFaithfulDensity σ) + (hVρ : Vρ.IsHermitian) (hVσ : Vσ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) + {ε : ℝ} (hε : ε ≤ aRev / 4) + (hop : ‖intrinsicGaussianRelativePerturbation ρ σ aRev‖ ≤ ε) + (htrace : matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ aRev) ≤ ε) : + 0 < sandwichedRenyiQuantity ρ σ rMinus ∧ + sandwichedRenyiQuantity ρ σ rMinus < ∞ ∧ + Real.log (sandwichedRenyiQuantity ρ σ rMinus).toReal ≤ + 2 * rMinus * aRev⁻¹ * ε ∧ + sandwichedRenyiQuantity ρ σ rMinus ≤ + ENNReal.ofReal (Real.exp (2 * rMinus * aRev⁻¹ * ε)) := by + have hsmall : ‖intrinsicGaussianRelativePerturbation ρ σ (gaussianRenyiTau rMinus)‖ ≤ + (4 * max 2 (gaussianRenyiTau rMinus)⁻¹)⁻¹ := by + rw [reverseOrder_smallness, gaussianRenyiTau_rMinus] + exact hop.trans hε + obtain ⟨hQ0, hQt, hlog⟩ := faithful_gaussian_renyi_bound hρ hσ hVρ hVσ hGρ hGσ + one_lt_rMinus_lt_two.1 hsmall + rw [reverseOrder_max_inverse, gaussianRenyiTau_rMinus] at hlog + have hlog' := hlog.trans (mul_le_mul_of_nonneg_left htrace + (show 0 ≤ 2 * rMinus * aRev⁻¹ from + mul_nonneg (mul_nonneg (by norm_num) (by linarith [one_lt_rMinus_lt_two.1])) + (inv_nonneg.mpr aRev_pos_le.1.le))) + refine ⟨hQ0, hQt, hlog', ?_⟩ + have he := ENNReal.ofReal_le_ofReal + ((Real.log_le_iff_le_exp (ENNReal.toReal_pos hQ0.ne' hQt.ne)).mp hlog') + simpa only [ENNReal.ofReal_toReal hQt.ne] using he + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalReverseSpatial.lean b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalReverseSpatial.lean new file mode 100644 index 0000000000..d2a4e59745 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FinitePhysicalReverseSpatial.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalReverseRenyi +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalEventBounds +public import LeanPool.VacuumBellSeparation.FreeField.JointReverseReserveFactor + +/-! +# Reverse estimates on the actual finite physical source algebras + +The original joint-source factor constructs the intrinsic perturbation bound +for every canonical subsystem. The final existence theorem discharges the +factor using the genuine uniform reverse reserve construction. No Gaussian +representation, inverse, or approximation hypothesis remains. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian +open scoped ENNReal InnerProductSpace Matrix.Norms.L2Operator + +variable {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum μ H) + {U W : Set (EuclideanSpace ℝ (Fin 3))} + (hU : U ⊆ Metric.ball 0 1) + (hW : W ⊆ Metric.ball (spatialAxisDisplacement s 0) 1) + (hUW : Disjoint U W) (S T : Submodule ℝ TimeZeroSource) + (hS : IsCanonicalSourceSystem U S) (hT : IsCanonicalSourceSystem W T) + +include hU hW hUW hS hT in +/-- The remaining input here is the literal full-source factorization. +The next theorem constructs that factor uniformly. -/ +theorem finite_physical_reverse_model_of_source_factor + {ε : ℝ} (hε : 0 ≤ ε) (hsmall : (thermalConst aRev)⁻¹ * ε ≤ aRev / 4) + {Y : ComplexSourceHilbert hμ (jointSourceRegion s) →L[ℂ] + ComplexSourceHilbert hμ (jointSourceRegion s)} + (hfactor : complexify (jointDifferenceKernelOperator hμ hs) = + sourceReserve hμ (jointSourceRegion s) ^ aRev * Y * + sourceReserve hμ (jointSourceRegion s) ^ aRev) + (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) + (htrace : operatorTraceNorm Y ≤ ENNReal.ofReal ε) : + ∃ X : FiniteGaussianPairModel hμ V S T, + sandwichedRenyiQuantity X.reference X.density rMinus ≤ + ENNReal.ofReal (Real.exp (2 * rMinus * aRev⁻¹ * ((thermalConst aRev)⁻¹ * ε))) := by + obtain ⟨X⟩ := nonempty_finiteGaussianPairModel hμ V S T + (Metric.isBounded_ball.subset hU) (Metric.isBounded_ball.subset hW) hUW hS hT + have hU' : U ⊆ Metric.ball (jointCenterIndex s 0) 1 + := by simpa only [jointCenterIndex_zero] using hU + have hW' : W ⊆ Metric.ball (jointCenterIndex s 1) 1 + := by simpa only [jointCenterIndex_one] using hW + have hSL := hS.2.1.trans (localizedTimeZeroSources_mono hU') + have hTR := hT.2.1.trans (localizedTimeZeroSources_mono hW') + have hSU : S ⊔ T ≤ localizedTimeZeroSources (jointSourceRegion s) := by + apply sup_le + · exact hSL.trans (localizedTimeZeroSources_mono Set.subset_union_left) + · exact hTR.trans (localizedTimeZeroSources_mono Set.subset_union_right) + obtain ⟨hop, htr⟩ := finite_reverse_source_nuclear_bound hμ hs (S ⊔ T) X.basis hSU + (finiteSourceLabelSubspace hμ (S ⊔ T) X.basis S) + (finiteSourceLabelSubspace hμ (S ⊔ T) X.basis T) X.complementary + (fun x hx => hSL hx) (fun x hx => hTR hx) X.symplectic + X.faithful_density X.characteristic X.reference_characteristic + aRev_pos_le.1 (show aRev ≤ 1 / 2 by linarith [aRev_pos_le.2]) hε hfactor hcY hY htrace + obtain ⟨_, _, _, hQ⟩ := finite_reverse_order_gaussian_renyi_bound + X.faithful_reference X.faithful_density X.reference_covariance_posDef.isHermitian + (finiteSourceCovarianceMatrix_isHermitian hμ (S ⊔ T) X.basis) + X.reference_characteristic X.characteristic hsmall hop htr + exact ⟨X, hQ⟩ + +/-- Universal constants precede the mass, physical vacuum and every finite +canonical subsystem. Only the scalar separation smallness remains. -/ +theorem exists_uniform_finite_physical_reverse : + ∃ Sgeo A : ℝ, 600 ≤ Sgeo ∧ 0 < A ∧ + ∀ (μ : ℝ) (hμ : 0 < μ) (s : ℝ), Sgeo ≤ s → + A * s ^ (-gammaRev) ≤ aRev / 4 → + ∀ (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum μ H) (U W : Set (EuclideanSpace ℝ (Fin 3))), + U ⊆ Metric.ball 0 1 → W ⊆ Metric.ball (spatialAxisDisplacement s 0) 1 → + Disjoint U W → ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∃ X : FiniteGaussianPairModel hμ V S T, + sandwichedRenyiQuantity X.reference X.density rMinus ≤ + ENNReal.ofReal (Real.exp (2 * rMinus * aRev⁻¹ * (A * s ^ (-gammaRev)))) := by + obtain ⟨Sgeo, J, hSgeo, hJ, hfactor⟩ := exists_uniform_joint_reverse_reserve_factor + have hc : 0 < thermalConst aRev := thermalConst_pos aRev_pos_le.1 (by linarith [aRev_pos_le.2]) + refine ⟨Sgeo, (thermalConst aRev)⁻¹ * J, by linarith, mul_pos (inv_pos.mpr hc) hJ, ?_⟩ + intro μ hμ s hs hsmall H _ _ _ V U W hU hW hUW S T hS hT + have hs600 : 600 ≤ s := by linarith + have hs0 : 0 < s := by linarith + obtain ⟨Y, hf, hcompact, hsa, htrace, _⟩ := hfactor μ hμ s hs600 hs + have hsmall' : (thermalConst aRev)⁻¹ * (J * s ^ (-gammaRev)) ≤ aRev / 4 := by + simpa only [mul_assoc] using hsmall + obtain ⟨X, hQ⟩ := finite_physical_reverse_model_of_source_factor hμ hs600 V hU hW hUW + S T hS hT (mul_nonneg hJ.le (Real.rpow_nonneg hs0.le _)) hsmall' hf hcompact hsa htrace + exact ⟨X, by simpa only [mul_assoc] using hQ⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteProductSourceCompression.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteProductSourceCompression.lean new file mode 100644 index 0000000000..b7b15dc971 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteProductSourceCompression.lean @@ -0,0 +1,196 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourceCompressionBridge +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourcePairCoordinates +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertProductOperator +public import LeanPool.VacuumBellSeparation.Gaussian.ComplementaryLabelCovariance + +/-! +# Actual product-source coordinates for the decorrelated finite covariance + +The two projections of each original basis label are literal test sources +in their respective regions. Their pair lies in the genuine L2 product +of the two completed real source spaces. Its Gram is the decorrelated +covariance, and its componentwise source commutation form is the original +symplectic form when the two regional symplectic cross blocks vanish. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian Matrix +open scoped InnerProductSpace MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {m : ℝ} (hm : 0 < m) + +theorem sourceHilbert_test_inner_covariance + {U : Set (EuclideanSpace ℝ (Fin 3))} (u v : SourceTestSpace hm U) : + inner ℝ (u : SourceHilbert hm U) (v : SourceHilbert hm U) = + timeZeroFourierCovariance m u.1 v.1 := by + have hreal : inner ℝ (timeZeroL2 hm u.1) (timeZeroL2 hm v.1) = + (inner ℂ (timeZeroL2 hm u.1) (timeZeroL2 hm v.1)).re := by + rw [MeasureTheory.L2.inner_def, MeasureTheory.L2.inner_def] + calc + _ = ∫ p, RCLike.re (inner ℂ ((timeZeroL2 hm u.1) p) ((timeZeroL2 hm v.1) p)) + ∂oneParticleMeasure m := by + apply MeasureTheory.integral_congr_ae + exact Filter.Eventually.of_forall fun p => by + simp only [Complex.inner, RCLike.inner_apply] + rfl + _ = _ := integral_re + (MeasureTheory.L2.integrable_inner (𝕜 := ℂ) (timeZeroL2 hm u.1) (timeZeroL2 hm v.1)) + calc + _ = inner ℝ (sourceEmbedding hm U (u : SourceHilbert hm U)) + (sourceEmbedding hm U (v : SourceHilbert hm U)) := + ((sourceEmbedding hm U).inner_map_map _ _).symm + _ = inner ℝ (timeZeroL2 hm u.1) (timeZeroL2 hm v.1) := + congrArg₂ (inner ℝ) (sourceEmbedding_coe hm U u) (sourceEmbedding_coe hm U v) + _ = _ := by + rw [hreal, inner_timeZeroL2_gram] + simp [Complex.mul_re] + +variable (S : Submodule ℝ TimeZeroSource) + {ι : Type*} [Fintype ι] [DecidableEq ι] + (b : Module.Basis ι ℝ (FiniteSourceSpace hm S)) + (L R : Submodule ℝ (ι → ℝ)) (hLR : IsCompl L R) + {UA UB : Set (EuclideanSpace ℝ (Fin 3))} + (hLA : ∀ x ∈ L, finiteSourceCoordinates hm S b x ∈ localizedTimeZeroSources UA) + (hRB : ∀ x ∈ R, finiteSourceCoordinates hm S b x ∈ localizedTimeZeroSources UB) + +/-- Projected finite source test. -/ +def projectedFiniteSourceTest (i : ι) : SourceTestSpace hm UA := + ⟨finiteSourceCoordinates hm S b (L.projection R hLR (Pi.single i 1)), + hLA _ (Submodule.projection_apply_mem hLR _)⟩ + +/-- Finite product source family. -/ +def finiteProductSourceFamily (i : ι) : + WithLp 2 (SourceHilbert hm UA × SourceHilbert hm UB) := + WithLp.toLp 2 + ((projectedFiniteSourceTest hm S b L R hLR hLA i : SourceHilbert hm UA), + (projectedFiniteSourceTest hm S b R L hLR.symm hRB i : SourceHilbert hm UB)) + +theorem finiteProductSourceFamily_gram : + realFamilyGram (finiteProductSourceFamily hm S b L R hLR hLA hRB) = + labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm S b) L R hLR := by + ext i j + change inner ℝ (finiteProductSourceFamily hm S b L R hLR hLA hRB i) + (finiteProductSourceFamily hm S b L R hLR hLA hRB j) = _ + rw [finiteProductSourceFamily, finiteProductSourceFamily, WithLp.prod_inner_apply] + change inner ℝ (projectedFiniteSourceTest hm S b L R hLR hLA i : SourceHilbert hm UA) + (projectedFiniteSourceTest hm S b L R hLR hLA j : SourceHilbert hm UA) + + inner ℝ (projectedFiniteSourceTest hm S b R L hLR.symm hRB i : SourceHilbert hm UB) + (projectedFiniteSourceTest hm S b R L hLR.symm hRB j : SourceHilbert hm UB) = _ + rw [sourceHilbert_test_inner_covariance, sourceHilbert_test_inner_covariance] + change timeZeroFourierCovariance m + (finiteSourceCoordinates hm S b (L.projection R hLR (Pi.single i 1))) + (finiteSourceCoordinates hm S b (L.projection R hLR (Pi.single j 1))) + + timeZeroFourierCovariance m + (finiteSourceCoordinates hm S b (R.projection L hLR.symm (Pi.single i 1))) + (finiteSourceCoordinates hm S b (R.projection L hLR.symm (Pi.single j 1))) = _ + rw [finiteSourceCoordinates_covariance, finiteSourceCoordinates_covariance, + ← complementaryLabelProjection_mulVec L R hLR, + ← complementaryLabelProjection_mulVec L R hLR, + ← complementaryLabelProjection_mulVec R L hLR.symm, + ← complementaryLabelProjection_mulVec R L hLR.symm, + bilinear_mixed_congruence, bilinear_mixed_congruence] + simp only [single_one_dotProduct, Matrix.mulVec_single_one, + labelDecorrelatedCovariance, decorrelatedCovariance, Matrix.add_apply, Matrix.col, + Matrix.transpose_apply] + +theorem finiteProductSourceFamily_linearIndependent : + LinearIndependent ℝ (finiteProductSourceFamily hm S b L R hLR hLA hRB) := by + apply Matrix.linearIndependent_of_posDef_gram + change (realFamilyGram (finiteProductSourceFamily hm S b L R hLR hLA hRB)).PosDef + rw [finiteProductSourceFamily_gram] + exact labelDecorrelatedCovariance_posDef (finiteSourceCovarianceMatrix_posDef hm S b) L R hLR + +/-- Product source commutation defined as `realHilbertProductOperator (sourceCommutation hm UA) +(sourceCommutation hm UB)`. -/ +def productSourceCommutation : + WithLp 2 (SourceHilbert hm UA × SourceHilbert hm UB) →L[ℝ] + WithLp 2 (SourceHilbert hm UA × SourceHilbert hm UB) := + realHilbertProductOperator (sourceCommutation hm UA) (sourceCommutation hm UB) + +theorem productSourceCommutation_mem_skewAdjoint : + productSourceCommutation hm (UA := UA) (UB := UB) ∈ skewAdjoint + (WithLp 2 (SourceHilbert hm UA × SourceHilbert hm UB) →L[ℝ] + WithLp 2 (SourceHilbert hm UA × SourceHilbert hm UB)) := + realHilbertProductOperator_mem_skewAdjoint + (sourceCommutation_mem_skewAdjoint hm UA) (sourceCommutation_mem_skewAdjoint hm UB) + +theorem norm_productSourceCommutation_le_two : + ‖productSourceCommutation hm (UA := UA) (UB := UB)‖ ≤ 2 := + norm_realHilbertProductOperator_le _ _ (by norm_num) + (norm_sourceCommutation_le_two hm UA) (norm_sourceCommutation_le_two hm UB) + +theorem finiteProductSourceFamily_commutation_form [FiniteDimensional ℝ S] : + realFamilyForm (finiteProductSourceFamily hm S b L R hLR hLA hRB) + (productSourceCommutation hm) = + labelDecorrelatedCovariance (finiteSourceSymplecticMatrix hm S b) L R hLR := by + ext i j + change inner ℝ (finiteProductSourceFamily hm S b L R hLR hLA hRB i) + (realHilbertProductOperator (sourceCommutation hm UA) (sourceCommutation hm UB) + (finiteProductSourceFamily hm S b L R hLR hLA hRB j)) = _ + rw [realHilbertProductOperator_apply, finiteProductSourceFamily, WithLp.prod_inner_apply] + change inner ℝ (projectedFiniteSourceTest hm S b L R hLR hLA i : SourceHilbert hm UA) + (sourceCommutation hm UA (projectedFiniteSourceTest hm S b L R hLR hLA j : SourceHilbert + hm UA)) + + inner ℝ (projectedFiniteSourceTest hm S b R L hLR.symm hRB i : SourceHilbert hm UB) + (sourceCommutation hm UB + (projectedFiniteSourceTest hm S b R L hLR.symm hRB j : SourceHilbert hm UB)) = _ + rw [sourceCommutation_symplectic, sourceCommutation_symplectic] + change timeZeroSymplectic + (finiteSourceCoordinates hm S b (L.projection R hLR (Pi.single i 1))) + (finiteSourceCoordinates hm S b (L.projection R hLR (Pi.single j 1))) + + timeZeroSymplectic + (finiteSourceCoordinates hm S b (R.projection L hLR.symm (Pi.single i 1))) + (finiteSourceCoordinates hm S b (R.projection L hLR.symm (Pi.single j 1))) = _ + rw [finiteSourceCoordinates_symplectic, finiteSourceCoordinates_symplectic, + ← complementaryLabelProjection_mulVec L R hLR, + ← complementaryLabelProjection_mulVec L R hLR, + ← complementaryLabelProjection_mulVec R L hLR.symm, + ← complementaryLabelProjection_mulVec R L hLR.symm, + bilinear_mixed_congruence, bilinear_mixed_congruence] + simp only [single_one_dotProduct, Matrix.mulVec_single_one, + labelDecorrelatedCovariance, decorrelatedCovariance, Matrix.add_apply, Matrix.col, + Matrix.transpose_apply] + +/-- Finite product source compression isometry. -/ +def finiteProductSourceCompressionIsometry : + EuclideanSpace ℂ ι →ₗᵢ[ℂ] + HilbertComplexification (WithLp 2 (SourceHilbert hm UA × SourceHilbert hm UB)) := + whitenedComplexFamily (finiteProductSourceFamily hm S b L R hLR hLA hRB) + (finiteProductSourceFamily_linearIndependent hm S b L R hLR hLA hRB) + +theorem finiteProductSourceCompression_normalized_commutation [FiniteDimensional ℝ S] + (hskew : (finiteSourceSymplecticMatrix hm S b)ᵀ = -finiteSourceSymplecticMatrix hm S b) + (hcross : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (finiteSourceSymplecticMatrix hm S b *ᵥ y) = 0) : + compression (finiteProductSourceCompressionIsometry hm S b L R hLR hLA hRB) + (normalizedCommutation (complexify (productSourceCommutation hm))) = + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (covarianceCommutationMatrix + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm S b) L R hLR) + (finiteSourceSymplecticMatrix hm S b)) := by + have h := compression_whitened_normalizedCommutation + (finiteProductSourceFamily hm S b L R hLR hLA hRB) + (finiteProductSourceFamily_linearIndependent hm S b L R hLR hLA hRB) + (productSourceCommutation hm) + rw [finiteProductSourceFamily_gram, finiteProductSourceFamily_commutation_form] at h + have hc := complementaryLabelProjection_cross_zero L R hLR + (finiteSourceSymplecticMatrix hm S b) hcross + have hd : labelDecorrelatedCovariance (finiteSourceSymplecticMatrix hm S b) L R hLR = + finiteSourceSymplecticMatrix hm S b := + complementary_symplectic_diagonal (complementaryLabelProjection_add L R hLR) + hc (transpose_cross_zero_of_skew hskew hc) + rw [hd] at h + exact h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceComplex.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceComplex.lean new file mode 100644 index 0000000000..bd62ee53e3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceComplex.lean @@ -0,0 +1,115 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourceSpace +public import LeanPool.VacuumBellSeparation.FreeField.CompletedComplexInjectivity + +/-! +# Strict finite physical Gram forms + +The finite source inclusion into the actual regional completion is an +isometry and intertwines the physical maps. Complex injectivity follows +from the completed compact-support theorem. Thus strictness is proved for +the physical finite system, not postulated as a Gaussian model assumption. +-/ + +@[expose] public section + +open MeasureTheory +open scoped InnerProductSpace + +namespace VacuumBellSeparation + +variable {m : ℝ} (hm : 0 < m) (S : Submodule ℝ TimeZeroSource) + {U : Set (EuclideanSpace ℝ (Fin 3))} (hSU : S ≤ localizedTimeZeroSources U) + +/-- Finite source test inclusion represented by `u.1`. -/ +noncomputable def finiteSourceTestInclusion : + FiniteSourceSpace hm S →ₗᵢ[ℝ] SourceTestSpace hm U where + toFun u := ⟨u.1, hSU u.2⟩ + map_add' _ _ := Subtype.ext rfl + map_smul' _ _ := Subtype.ext rfl + norm_map' _ := rfl + +/-- The canonical inclusion of the genuine finite source space into the completion. -/ +noncomputable def finiteSourceInclusion : + FiniteSourceSpace hm S →ₗᵢ[ℝ] SourceHilbert hm U := + (UniformSpace.Completion.toComplₗᵢ : + SourceTestSpace hm U →ₗᵢ[ℝ] SourceHilbert hm U).comp + (finiteSourceTestInclusion hm S hSU) + +theorem sourceEmbedding_comp_finiteSourceInclusion : + (sourceEmbedding hm U).comp (finiteSourceInclusion hm S hSU) = + finiteSourceIsometry hm S := by + apply LinearIsometry.ext + intro u + exact sourceEmbedding_coe hm U (finiteSourceTestInclusion hm S hSU u) + +variable [FiniteDimensional ℝ S] + +/-- The complex extension of the actual finite physical source map. -/ +noncomputable def finiteComplexSourceMap : + Gaussian.HilbertComplexification (FiniteSourceSpace hm S) →L[ℂ] + Lp ℂ 2 (oneParticleMeasure m) := + Gaussian.sourceMap (finiteSourceIsometry hm S) + +omit [FiniteDimensional ℝ ↥S] in +theorem complexSourceMap_comp_finiteSourceInclusion : + (complexSourceMap hm U).comp + (Gaussian.complexifyIsometry (finiteSourceInclusion hm S hSU)).toContinuousLinearMap = + finiteComplexSourceMap hm S := by + apply ContinuousLinearMap.ext + intro z + change sourceEmbedding hm U (finiteSourceInclusion hm S hSU z.re) + + Complex.I • sourceEmbedding hm U (finiteSourceInclusion hm S hSU z.im) = + finiteSourceIsometry hm S z.re + Complex.I • finiteSourceIsometry hm S z.im + have he (u : FiniteSourceSpace hm S) : + sourceEmbedding hm U (finiteSourceInclusion hm S hSU u) = + finiteSourceIsometry hm S u := + congrArg (fun i : FiniteSourceSpace hm S →ₗᵢ[ℝ] Lp ℂ 2 (oneParticleMeasure m) => i u) + (sourceEmbedding_comp_finiteSourceInclusion hm S hSU) + rw [he, he] + +include hSU in +omit [FiniteDimensional ℝ ↥S] in +/-- Compact localization rules out a complex relation among the actual finite sources. -/ +theorem finiteComplexSourceMap_injective (hU : Bornology.IsBounded U) : + Function.Injective (finiteComplexSourceMap hm S) := by + intro z w h + apply (Gaussian.complexifyIsometry (finiteSourceInclusion hm S hSU)).injective + apply complexSourceMap_injective hm U hU + change ((complexSourceMap hm U).comp + (Gaussian.complexifyIsometry (finiteSourceInclusion hm S hSU)).toContinuousLinearMap) z = + ((complexSourceMap hm U).comp + (Gaussian.complexifyIsometry (finiteSourceInclusion hm S hSU)).toContinuousLinearMap) w + rwa [complexSourceMap_comp_finiteSourceInclusion] + +/-- The finite Gram operator is defined through the actual Hilbert adjoint. -/ +noncomputable def finiteSourceGram : + Gaussian.HilbertComplexification (FiniteSourceSpace hm S) →L[ℂ] + Gaussian.HilbertComplexification (FiniteSourceSpace hm S) := + (finiteComplexSourceMap hm S).adjoint.comp (finiteComplexSourceMap hm S) + +theorem finiteSourceGram_eq_normalized_commutation : + finiteSourceGram hm S = 1 + (Complex.I / 2) • + Gaussian.complexCommutation (finiteSourceIsometry hm S) := + Gaussian.sourceMap_adjoint_mul_self (finiteSourceIsometry hm S) + +include hSU in +theorem inner_finiteSourceGram_pos (hU : Bornology.IsBounded U) + (z : Gaussian.HilbertComplexification (FiniteSourceSpace hm S)) (hz : z ≠ 0) : + 0 < (⟪z, finiteSourceGram hm S z⟫_ℂ).re := by + change 0 < (⟪z, (finiteComplexSourceMap hm S).adjoint (finiteComplexSourceMap hm S z)⟫_ℂ).re + rw [ContinuousLinearMap.adjoint_inner_right, ← RCLike.re_eq_complex_re] + apply re_inner_self_pos.mpr + intro h + apply hz + apply finiteComplexSourceMap_injective hm S hSU hU + simpa only [map_zero] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceCompressionBridge.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceCompressionBridge.lean new file mode 100644 index 0000000000..08e3a7a95a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceCompressionBridge.lean @@ -0,0 +1,129 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourceComplex +public import LeanPool.VacuumBellSeparation.FreeField.FiniteCanonicalCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.SourceReserve +public import LeanPool.VacuumBellSeparation.Gaussian.WhitenedComplexFamily + +/-! +# Actual finite source embeddings in covariance-normalized coordinates + +The vectors are the original finite source basis included in the actual +completed regional source space. Their literal Fourier covariance Gram +matrix supplies the inverse-square-root whitening. The resulting complex +isometry compresses the actual completed source commutation operator to +the finite normalized covariance/symplectic matrix. No compression or +Gaussian model identity is a structure assumption. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian Matrix +open scoped InnerProductSpace MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {m : ℝ} (hm : 0 < m) (S : Submodule ℝ TimeZeroSource) + {ι : Type*} [Fintype ι] [DecidableEq ι] + (b : Module.Basis ι ℝ (FiniteSourceSpace hm S)) + {U : Set (EuclideanSpace ℝ (Fin 3))} (hSU : S ≤ localizedTimeZeroSources U) + +/-- The original finite source family mapped into the joint source space. -/ +def includedFiniteSourceFamily : ι → SourceHilbert hm U := + fun i => finiteSourceInclusion hm S hSU (b i) + +omit [Fintype ι] [DecidableEq ι] in +theorem includedFiniteSourceFamily_linearIndependent : + LinearIndependent ℝ (includedFiniteSourceFamily hm S b hSU) := by + exact b.linearIndependent.map' (finiteSourceInclusion hm S hSU).toLinearMap + (LinearMap.ker_eq_bot.mpr (finiteSourceInclusion hm S hSU).injective) + +omit [Fintype ι] [DecidableEq ι] in +theorem includedFiniteSourceFamily_gram : + realFamilyGram (includedFiniteSourceFamily hm S b hSU) = + finiteSourceCovarianceMatrix hm S b := by + ext i j + change inner ℝ (finiteSourceInclusion hm S hSU (b i)) + (finiteSourceInclusion hm S hSU (b j)) = _ + rw [(finiteSourceInclusion hm S hSU).inner_map_map, finiteSourceSpace_inner] + rfl + +omit [Fintype ι] [DecidableEq ι] in +theorem includedFiniteSourceFamily_commutation_form : + realFamilyForm (includedFiniteSourceFamily hm S b hSU) (sourceCommutation hm U) = + finiteSourceSymplecticMatrix hm S b := by + ext i j + exact sourceCommutation_symplectic hm U + (finiteSourceTestInclusion hm S hSU (b i)) (finiteSourceTestInclusion hm S hSU (b j)) + +omit [Fintype ι] [DecidableEq ι] in +/-- Strict real covariance follows from the original basis and physical +source inclusion, without a quantum-density premise. -/ +theorem finiteSourceCovarianceMatrix_posDef : (finiteSourceCovarianceMatrix hm S b).PosDef := by + have hg : finiteSourceCovarianceMatrix hm S b = Matrix.gram ℝ b := by + ext i j + exact (finiteSourceSpace_inner hm S (b i) (b j)).symm + rw [hg] + exact Matrix.posDef_gram_of_linearIndependent b.linearIndependent + +/-- The actual source isometry in covariance-normalized coordinates. -/ +def finiteSourceCompressionIsometry : + EuclideanSpace ℂ ι →ₗᵢ[ℂ] ComplexSourceHilbert hm U := + whitenedComplexFamily (includedFiniteSourceFamily hm S b hSU) + (includedFiniteSourceFamily_linearIndependent hm S b hSU) + +theorem finiteSourceCompressionIsometry_toCLM : + (finiteSourceCompressionIsometry hm S b hSU).toContinuousLinearMap = + (complexFamilySynthesis (includedFiniteSourceFamily hm S b hSU)).comp + (realMatrixOperator ((CFC.sqrt (finiteSourceCovarianceMatrix hm S b))⁻¹)) := by + rw [finiteSourceCompressionIsometry, whitenedComplexFamily_toCLM, whitenedComplexFamilyMap, + includedFiniteSourceFamily_gram] + +/-- The completed source J is compressed to the literal finite normalized +symplectic form. The i/2 convention is the source Gram convention. -/ +theorem finiteSourceCompression_normalized_commutation : + compression (finiteSourceCompressionIsometry hm S b hSU) + (normalizedCommutation (complexSourceCommutation hm U)) = + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (covarianceCommutationMatrix + (finiteSourceCovarianceMatrix hm S b) + (finiteSourceSymplecticMatrix hm S b)) := by + have h := compression_whitened_normalizedCommutation + (includedFiniteSourceFamily hm S b hSU) + (includedFiniteSourceFamily_linearIndependent hm S b hSU) (sourceCommutation hm U) + rw [includedFiniteSourceFamily_gram, includedFiniteSourceFamily_commutation_form] at h + exact h + +theorem finiteSourceCompression_normalized_commutation_canonical {n : ℕ} + (c : Module.Basis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) + (hcanonical : finiteSourceSymplecticMatrix hm S c = modeSymplecticForm) : + compression (finiteSourceCompressionIsometry hm S c hSU) + (normalizedCommutation (complexSourceCommutation hm U)) = + (Matrix.toEuclideanCLM (n := Fin n × Fin 2) (𝕜 := ℂ)) (covarianceCommutationMatrix + (finiteSourceCovarianceMatrix hm S c) + modeSymplecticForm) := by + rw [finiteSourceCompression_normalized_commutation, hcanonical] + +theorem finiteSourceCompression_thermal_weight {n : ℕ} + (c : Module.Basis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) + (hcanonical : finiteSourceSymplecticMatrix hm S c = modeSymplecticForm) + {σ : MultiModeOscillatorSpace n →L[ℂ] MultiModeOscillatorSpace n} + (hσ : IsFaithfulDensity σ) + (hG : HasGaussianPhysicalCharacteristic σ (finiteSourceCovarianceMatrix hm S c)) + {τ : ℝ} (hτ : 0 < τ) : + normalizedThermal τ (compression (finiteSourceCompressionIsometry hm S c hSU) + (normalizedCommutation (complexSourceCommutation hm U))) = + realMatrixOperator (relativeCovariancePerturbation (finiteSourceCovarianceMatrix hm S c) + (gaussianPowerIncrement σ τ)) := by + rw [finiteSourceCompression_normalized_commutation_canonical hm S hSU c hcanonical] + exact (gaussian_power_increment_operator_eq_normalizedThermal hσ + (finiteSourceCovarianceMatrix_posDef hm S c).isHermitian hG hτ).symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceModes.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceModes.lean new file mode 100644 index 0000000000..f3173a17fd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceModes.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourceComplex +public import Mathlib.LinearAlgebra.Basis.SMul + +/-! +# Genuine canonical coordinates for the finite physical sources + +Strict positivity of the physical Gram gives commutation frequencies less +than two. Scaling the constructed orthonormal skew basis gives an actual +basis of smooth sources with canonical symplectic matrix and covariance +diag(1/ν). In particular every covariance mode is strictly greater than 1/2. +-/ + +@[expose] public section + +open scoped InnerProductSpace + +namespace VacuumBellSeparation + +open Gaussian.HilbertComplexification + +variable {m : ℝ} (hm : 0 < m) (S : Submodule ℝ TimeZeroSource) + [FiniteDimensional ℝ S] + +theorem finiteSource_skew_frequency_lt_two + {U : Set (EuclideanSpace ℝ (Fin 3))} (hSU : S ≤ localizedTimeZeroSources U) + (hU : Bornology.IsBounded U) {n : ℕ} (ν : Fin n → ℝ) + (b : OrthonormalBasis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) + (hb : ∀ i, finiteSourceCommutation hm S (b (i, 0)) = (-ν i) • b (i, 1) ∧ + finiteSourceCommutation hm S (b (i, 1)) = ν i • b (i, 0)) (i : Fin n) : + ν i < 2 := by + let z := mk (b (i, 0)) (b (i, 1)) + have hz : z ≠ 0 := by + intro h + have he : b (i, 0) = 0 := congrArg Gaussian.HilbertComplexification.re h + have hn := b.norm_eq_one (i, 0) + rw [he, norm_zero] at hn + norm_num at hn + have hp := inner_finiteSourceGram_pos hm S hSU hU z hz + have he : (⟪z, finiteSourceGram hm S z⟫_ℂ).re = 2 - ν i := by + rw [finiteSourceGram_eq_normalized_commutation] + change (⟪z, z + (Complex.I / 2) • + Gaussian.complexify (finiteSourceCommutation hm S) z⟫_ℂ).re = _ + simp [Gaussian.HilbertComplexification.inner_eq, z, + (hb i).1, (hb i).2, real_inner_smul_right, + orthonormal_iff_ite.mp b.orthonormal]; + simp [← Complex.ofReal_pow, Gaussian.HilbertComplexification.norm_sq, b.norm_eq_one]; ring + rw [he] at hp + linarith + +/-- Rescaling is through nonzero units, so these vectors are an actual basis. -/ +noncomputable def finiteSourceCanonicalBasis {n : ℕ} (ν : Fin n → ℝ) + (hν : ∀ i, 0 < ν i) + (b : OrthonormalBasis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) : + Module.Basis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S) := + b.toBasis.isUnitSMul (w := fun i => (Real.sqrt (ν i.1))⁻¹) + (fun i => isUnit_iff_ne_zero.mpr (inv_ne_zero (Real.sqrt_pos.mpr (hν i.1)).ne')) + +omit [FiniteDimensional ℝ ↥S] in +theorem finiteSourceCanonicalBasis_apply {n : ℕ} (ν : Fin n → ℝ) + (hν : ∀ i, 0 < ν i) + (b : OrthonormalBasis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) + (i : Fin n × Fin 2) : + finiteSourceCanonicalBasis hm S ν hν b i = (Real.sqrt (ν i.1))⁻¹ • b i := + Module.Basis.isUnitSMul_apply _ _ + +omit [FiniteDimensional ℝ ↥S] in +/-- The literal Fourier covariance in the constructed canonical basis. -/ +theorem finiteSourceCanonicalBasis_covariance {n : ℕ} (ν : Fin n → ℝ) + (hν : ∀ i, 0 < ν i) + (b : OrthonormalBasis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) + (i j : Fin n × Fin 2) : + timeZeroFourierCovariance m (finiteSourceCanonicalBasis hm S ν hν b i).1 + (finiteSourceCanonicalBasis hm S ν hν b j).1 = + Gaussian.modeDiagonal (fun k => (ν k)⁻¹) i j := by + rw [← finiteSourceSpace_inner hm S] + simp only [finiteSourceCanonicalBasis_apply, real_inner_smul_left, + real_inner_smul_right, orthonormal_iff_ite.mp b.orthonormal, + Gaussian.modeDiagonal, Matrix.diagonal_apply] + split_ifs with hij + · subst j + rw [mul_one, ← mul_inv, Real.mul_self_sqrt (hν i.1).le] + · simp + +/-- The exact positive-orientation canonical symplectic matrix. -/ +theorem finiteSourceCanonicalBasis_symplectic {n : ℕ} (ν : Fin n → ℝ) + (hν : ∀ i, 0 < ν i) + (b : OrthonormalBasis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) + (hb : ∀ i, finiteSourceCommutation hm S (b (i, 0)) = (-ν i) • b (i, 1) ∧ + finiteSourceCommutation hm S (b (i, 1)) = ν i • b (i, 0)) + (i j : Fin n × Fin 2) : + timeZeroSymplectic (finiteSourceCanonicalBasis hm S ν hν b i).1 + (finiteSourceCanonicalBasis hm S ν hν b j).1 = Gaussian.modeSymplecticForm i j := by + rw [← finiteSourceCommutation_symplectic hm S] + rcases i with ⟨i, a⟩ + rcases j with ⟨j, c⟩ + by_cases hij : i = j + · subst j + have hs : (Real.sqrt (ν i)) ^ 2 = ν i := Real.sq_sqrt (hν i).le + have hn : Real.sqrt (ν i) ≠ 0 := (Real.sqrt_pos.mpr (hν i)).ne' + fin_cases a <;> fin_cases c <;> + simp [finiteSourceCanonicalBasis_apply, map_smul, (hb i).1, (hb i).2, + real_inner_smul_left, real_inner_smul_right, orthonormal_iff_ite.mp b.orthonormal, + Gaussian.modeSymplecticForm, Gaussian.oneModeSymplecticForm] <;> + field_simp <;> nlinarith + · fin_cases a <;> fin_cases c <;> + simp [finiteSourceCanonicalBasis_apply, map_smul, (hb j).1, (hb j).2, + real_inner_smul_left, real_inner_smul_right, orthonormal_iff_ite.mp b.orthonormal, + Gaussian.modeSymplecticForm, Gaussian.oneModeSymplecticForm, hij, Prod.mk.injEq] + +theorem reciprocal_finiteSource_frequency_gt_half {ν : ℝ} (hν : 0 < ν) (hν2 : ν < 2) : + (1 / 2 : ℝ) < ν⁻¹ := by + rw [inv_eq_one_div, lt_div_iff₀ hν] + linarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteSourcePairCoordinates.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteSourcePairCoordinates.lean new file mode 100644 index 0000000000..b48750147d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteSourcePairCoordinates.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourcePair +public import LeanPool.VacuumBellSeparation.FreeField.FiniteGaussianObservables +public import Mathlib.LinearAlgebra.Projection + +/-! +# Literal regional label subspaces in a joint finite physical system + +Pulling source subspaces back through the actual basis coordinates retains +their exact Weyl algebras. A disjoint direct sum of source systems gives +complementary label subspaces, and its actual symplectic cross form vanishes. +These are algebraic complementary subspaces, not assumed covariance-orthogonal. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped Matrix + +variable {m : ℝ} (hm : 0 < m) (R : Submodule ℝ TimeZeroSource) + [FiniteDimensional ℝ R] {ι : Type*} [Fintype ι] [DecidableEq ι] + (b : Module.Basis ι ℝ (FiniteSourceSpace hm R)) + +omit [DecidableEq ι] [FiniteDimensional ℝ R] in +theorem finiteSourceCoordinates_injective : Function.Injective + (finiteSourceCoordinates hm R b) := by + intro x y h + apply b.equivFun.symm.injective + exact Subtype.ext h + +/-- Coordinate vectors whose corresponding physical source belongs to the indicated subspace. -/ +noncomputable def finiteSourceLabelSubspace (S : Submodule ℝ TimeZeroSource) : Submodule ℝ (ι + → ℝ) := + S.comap (finiteSourceCoordinates hm R b) + +omit [DecidableEq ι] [FiniteDimensional ℝ R] [Fintype ι] in +theorem finiteSourceCovarianceMatrix_isHermitian : + (finiteSourceCovarianceMatrix hm R b).IsHermitian := by + change (finiteSourceCovarianceMatrix hm R b)ᴴ = finiteSourceCovarianceMatrix hm R b + ext i j + simp only [Matrix.conjTranspose_apply, star_trivial, finiteSourceCovarianceMatrix] + rw [← finiteSourceSpace_inner hm R, ← finiteSourceSpace_inner hm R, real_inner_comm] + +omit [DecidableEq ι] [FiniteDimensional ℝ ↥R] in +theorem finiteSourceLabelSubspace_isCompl {S T : Submodule ℝ TimeZeroSource} + (hR : R = S ⊔ T) (hST : Disjoint S T) : + IsCompl (finiteSourceLabelSubspace hm R b S) (finiteSourceLabelSubspace hm R b T) := by + constructor + · apply Submodule.disjoint_def.mpr + intro x hx hy + apply finiteSourceCoordinates_injective hm R b + rw [map_zero] + exact Submodule.disjoint_def.mp hST _ hx hy + · apply codisjoint_iff.mpr + apply top_unique + intro x hx + have hRS : R ≤ S ⊔ T := le_of_eq hR + have hc : finiteSourceCoordinates hm R b x ∈ S ⊔ T := + hRS (finiteSourceCoordinates_mem hm R b x) + obtain ⟨s, hs, t, ht, he⟩ := Submodule.mem_sup.mp hc + have hsR : s ∈ Set.range (finiteSourceCoordinates hm R b) := by + rw [range_finiteSourceCoordinates, hR] + exact Submodule.mem_sup_left hs + have htR : t ∈ Set.range (finiteSourceCoordinates hm R b) := by + rw [range_finiteSourceCoordinates, hR] + exact Submodule.mem_sup_right ht + obtain ⟨y, hy⟩ := hsR + obtain ⟨z, hz⟩ := htR + apply Submodule.mem_sup.mpr + refine ⟨y, ?_, z, ?_, ?_⟩ + · change finiteSourceCoordinates hm R b y ∈ S + rwa [hy] + · change finiteSourceCoordinates hm R b z ∈ T + rwa [hz] + · apply finiteSourceCoordinates_injective hm R b + rw [map_add, hy, hz] + exact he + +omit [DecidableEq ι] [FiniteDimensional ℝ R] in +theorem generatedVNA_finiteSourceLabelSubspace + {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) (S : Submodule ℝ TimeZeroSource) (hSR : S ≤ R) : + generatedVNA (finitePhysicalWeyl hm R b V '' (finiteSourceLabelSubspace hm R b S : Set (ι + → ℝ))) = + canonicalSourceAlgebra V hm S := by + congr 1 + ext A + constructor + · rintro ⟨x, hx, rfl⟩ + exact ⟨finiteSourceCoordinates hm R b x, hx, rfl⟩ + · rintro ⟨u, hu, rfl⟩ + have hr : u ∈ Set.range (finiteSourceCoordinates hm R b) := by + rw [range_finiteSourceCoordinates] + exact hSR hu + obtain ⟨x, hx⟩ := hr + refine ⟨x, ?_, ?_⟩ + · change finiteSourceCoordinates hm R b x ∈ S + rwa [hx] + · change V.timeZeroWeyl hm (finiteSourceCoordinates hm R b x) = V.timeZeroWeyl hm u + rw [hx] + +theorem finiteSourceLabelSubspace_symplectic_cross {n : ℕ} + (c : Module.Basis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm R)) + (hσ : finiteSourceSymplecticMatrix hm R c = modeSymplecticForm) + (S T : Submodule ℝ TimeZeroSource) + (hST : ∀ u ∈ S, ∀ v ∈ T, timeZeroSymplectic u v = 0) + {x y : Fin n × Fin 2 → ℝ} + (hx : x ∈ finiteSourceLabelSubspace hm R c S) + (hy : y ∈ finiteSourceLabelSubspace hm R c T) : + x ⬝ᵥ (modeSymplecticForm *ᵥ y) = 0 := by + rw [← hσ, ← finiteSourceCoordinates_symplectic hm R c] + exact hST _ hx _ hy + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceSpace.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceSpace.lean new file mode 100644 index 0000000000..5f129d13dc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteSourceSpace.lean @@ -0,0 +1,135 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceHull +public import LeanPool.VacuumBellSeparation.Gaussian.SkewMatrixNormalForm + +/-! +# The actual covariance Hilbert space of a finite canonical source system + +The carrier is the given subspace of smooth test pairs. Its norm is induced +by the physical one-particle map, and its commutation operator represents +the literal symplectic integral. Nondegeneracy constructs positive-frequency +orthonormal skew coordinates; no representation or normal-form data are +assumed as part of a source system. +-/ + +@[expose] public section + +open MeasureTheory +open scoped InnerProductSpace + +namespace VacuumBellSeparation + +/-- The mass determines the covariance norm on this copy of the actual sources. -/ +def FiniteSourceSpace {m : ℝ} (_hm : 0 < m) + (S : Submodule ℝ TimeZeroSource) : Type := S + +variable {m : ℝ} (hm : 0 < m) (S : Submodule ℝ TimeZeroSource) + +instance : AddCommGroup (FiniteSourceSpace hm S) := inferInstanceAs (AddCommGroup S) +instance : Module ℝ (FiniteSourceSpace hm S) := inferInstanceAs (Module ℝ S) + +/-- Finite source map of type `FiniteSourceSpace hm S →ₗ[ℝ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def finiteSourceMap : + FiniteSourceSpace hm S →ₗ[ℝ] Lp ℂ 2 (oneParticleMeasure m) := + (timeZeroLinear hm).comp S.subtype + +theorem finiteSourceMap_injective : Function.Injective (finiteSourceMap hm S) := + (timeZeroLinear_injective hm).comp Subtype.val_injective + +noncomputable instance : NormedAddCommGroup (FiniteSourceSpace hm S) := + NormedAddCommGroup.induced _ _ (finiteSourceMap hm S) (finiteSourceMap_injective hm S) + +noncomputable instance : InnerProductSpace ℝ (FiniteSourceSpace hm S) := + InnerProductSpace.induced (finiteSourceMap hm S) + +instance [FiniteDimensional ℝ S] : FiniteDimensional ℝ (FiniteSourceSpace hm S) := + inferInstanceAs (FiniteDimensional ℝ S) + +noncomputable instance [FiniteDimensional ℝ S] : CompleteSpace (FiniteSourceSpace hm S) := + FiniteDimensional.completeSpace ℝ (FiniteSourceSpace hm S) + +/-- Finite source isometry of type `FiniteSourceSpace hm S →ₗᵢ[ℝ] Lp ℂ 2 (oneParticleMeasure m) +where __`. -/ +noncomputable def finiteSourceIsometry : + FiniteSourceSpace hm S →ₗᵢ[ℝ] Lp ℂ 2 (oneParticleMeasure m) where + __ := finiteSourceMap hm S + norm_map' _ := rfl + +theorem finiteSourceSpace_norm_sq (u : FiniteSourceSpace hm S) : + ‖u‖ ^ 2 = timeZeroFourierCovariance m u.1 u.1 := + norm_timeZeroL2_sq hm u.1 + +theorem finiteSourceSpace_inner (u v : FiniteSourceSpace hm S) : + ⟪u, v⟫_ℝ = timeZeroFourierCovariance m u.1 v.1 := by + have hr := norm_add_sq_real u v + have hc := norm_add_sq (𝕜 := ℂ) (finiteSourceMap hm S u) (finiteSourceMap hm S v) + rw [← map_add] at hc + change ‖u + v‖ ^ 2 = ‖u‖ ^ 2 + + 2 * (⟪timeZeroL2 hm u.1, timeZeroL2 hm v.1⟫_ℂ).re + ‖v‖ ^ 2 at hc + have he : ⟪u, v⟫_ℝ = (⟪timeZeroL2 hm u.1, timeZeroL2 hm v.1⟫_ℂ).re := by + linarith + rw [he] + rw [inner_timeZeroL2_gram] + simp [Complex.mul_re] + +variable [FiniteDimensional ℝ S] + +/-- The commutation operator is constructed from the actual physical embedding. -/ +noncomputable def finiteSourceCommutation : + FiniteSourceSpace hm S →L[ℝ] FiniteSourceSpace hm S := + realCommutation (finiteSourceIsometry hm S) + +theorem finiteSourceCommutation_symplectic (u v : FiniteSourceSpace hm S) : + ⟪u, finiteSourceCommutation hm S v⟫_ℝ = timeZeroSymplectic u.1 v.1 := by + erw [finiteSourceCommutation, inner_realCommutation] + change 2 * (⟪timeZeroL2 hm u.1, timeZeroL2 hm v.1⟫_ℂ).im = _ + rw [inner_timeZeroL2_gram] + simp [Complex.mul_im] + +theorem finiteSourceCommutation_adjoint : + (finiteSourceCommutation hm S).adjoint = -(finiteSourceCommutation hm S) := + realCommutation_mem_skewAdjoint (finiteSourceIsometry hm S) + +theorem norm_finiteSourceCommutation_le_two : ‖finiteSourceCommutation hm S‖ ≤ 2 := + norm_realCommutation_le_two (finiteSourceIsometry hm S) + +theorem finiteSourceCommutation_injective + (hnd : ∀ u ∈ S, (∀ v ∈ S, timeZeroSymplectic u v = 0) → u = 0) : + Function.Injective (finiteSourceCommutation hm S) := by + apply (LinearMap.ker_eq_bot).mp + apply LinearMap.ker_eq_bot'.mpr + intro u hu + apply Subtype.ext + apply hnd u.1 u.2 + intro v hv + erw [← finiteSourceCommutation_symplectic hm S u (⟨v, hv⟩ : FiniteSourceSpace hm S)] + have h := realCommutation_skew_inner (finiteSourceIsometry hm S) u ⟨v, hv⟩ + change ⟪finiteSourceCommutation hm S u, (⟨v, hv⟩ : FiniteSourceSpace hm S)⟫_ℝ = + -⟪u, finiteSourceCommutation hm S ⟨v, hv⟩⟫_ℝ at h + change finiteSourceCommutation hm S u = 0 at hu + erw [hu, inner_zero_left] at h + exact neg_eq_zero.mp h.symm + +/-- Positive skew frequencies and an actual orthonormal basis are consequences +of the source symplectic nondegeneracy, including the zero-dimensional case. -/ +theorem finiteSource_exists_skew_basis + (hnd : ∀ u ∈ S, (∀ v ∈ S, timeZeroSymplectic u v = 0) → u = 0) : + ∃ (n : ℕ) (ν : Fin n → ℝ) + (b : OrthonormalBasis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)), + (∀ i, 0 < ν i) ∧ ∀ i, + finiteSourceCommutation hm S (b (i, 0)) = (-ν i) • b (i, 1) ∧ + finiteSourceCommutation hm S (b (i, 1)) = ν i • b (i, 0) := by + apply Gaussian.exists_real_skew_symplectic_basis + (finiteSourceCommutation hm S).toLinearMap + · rw [ContinuousLinearMap.adjoint_toLinearMap, finiteSourceCommutation_adjoint] + rfl + · exact finiteSourceCommutation_injective hm S hnd + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/FiniteWeylCyclicity.lean b/LeanPool/VacuumBellSeparation/FreeField/FiniteWeylCyclicity.lean new file mode 100644 index 0000000000..6a01b97042 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/FiniteWeylCyclicity.lean @@ -0,0 +1,111 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FiniteCanonicalCoordinates +public import LeanPool.VacuumBellSeparation.Bell.ProjectiveCyclicEquivalence +public import LeanPool.VacuumBellSeparation.Gaussian.QuadratureMatrices + +/-! +# The actual finite-source cyclic subspace is reducing + +All operators remain the original physical time-zero Weyl operators. Zero +and adjoint identities are derived from their true unitary Weyl relations. +The closed vacuum orbit and its reduction property are constructed directly. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap +open scoped Matrix InnerProductSpace + +variable {m : ℝ} (hm : 0 < m) (S : Submodule ℝ TimeZeroSource) + [FiniteDimensional ℝ S] {ι : Type*} [Fintype ι] [DecidableEq ι] + (b : Module.Basis ι ℝ (FiniteSourceSpace hm S)) + {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) + +omit [DecidableEq ι] in +theorem finitePhysicalWeyl_zero : finitePhysicalWeyl hm S b V 0 = 1 := by + have he := finitePhysicalWeyl_mul hm S b V 0 0 + simp only [Matrix.mulVec_zero, dotProduct_zero, zero_div, Complex.ofReal_zero, + mul_zero, neg_zero, Complex.exp_zero, one_smul, zero_add] at he + have hu := Unitary.star_mul_self_of_mem (finitePhysicalWeyl_mem_unitary hm S b V 0) + calc + finitePhysicalWeyl hm S b V 0 = + (star (finitePhysicalWeyl hm S b V 0) * finitePhysicalWeyl hm S b V 0) * + finitePhysicalWeyl hm S b V 0 := by rw [hu, one_mul] + _ = star (finitePhysicalWeyl hm S b V 0) * + (finitePhysicalWeyl hm S b V 0 * finitePhysicalWeyl hm S b V 0) := mul_assoc _ _ _ + _ = 1 := by rw [he, hu] + +/-- Finite physical cyclic space defined as `closedCyclicSpan (fun x => finitePhysicalWeyl hm S b V +x V.vacuum)`. -/ +def finitePhysicalCyclicSpace : Submodule ℂ H := + closedCyclicSpan (fun x => finitePhysicalWeyl hm S b V x V.vacuum) + +/-- Finite physical cyclic vacuum. -/ +noncomputable def finitePhysicalCyclicVacuum : finitePhysicalCyclicSpace hm S b V := + ⟨V.vacuum, by + have h := mem_closedCyclicSpan (fun x => finitePhysicalWeyl hm S b V x V.vacuum) 0 + simpa only [finitePhysicalCyclicSpace, finitePhysicalWeyl_zero, one_apply_eq_self] using h⟩ + +omit [DecidableEq ι] in +theorem finitePhysicalCyclicVacuum_norm : ‖finitePhysicalCyclicVacuum hm S b V‖ = 1 := + V.vacuum_norm + +variable {n : ℕ} (c : Module.Basis (Fin n × Fin 2) ℝ (FiniteSourceSpace hm S)) + +theorem finitePhysicalWeyl_star_of_canonical + (hσ : finiteSourceSymplecticMatrix hm S c = modeSymplecticForm) + (x : Fin n × Fin 2 → ℝ) : + star (finitePhysicalWeyl hm S c V x) = finitePhysicalWeyl hm S c V (-x) := by + have hform : x ⬝ᵥ (modeSymplecticForm *ᵥ (-x)) = 0 := by + rw [dotProduct_modeSymplecticForm] + apply Finset.sum_eq_zero + intro j hj + simp only [quadratureSymplectic, modeQuadratureTuple, Pi.neg_apply] + ring + have he := finitePhysicalWeyl_mul hm S c V x (-x) + rw [hσ, hform, zero_div, Complex.ofReal_zero, mul_zero, neg_zero, + Complex.exp_zero, one_smul, add_neg_cancel, finitePhysicalWeyl_zero] at he + have hu := Unitary.star_mul_self_of_mem (finitePhysicalWeyl_mem_unitary hm S c V x) + calc + star (finitePhysicalWeyl hm S c V x) = star (finitePhysicalWeyl hm S c V x) * 1 := + (mul_one _).symm + _ = star (finitePhysicalWeyl hm S c V x) * + (finitePhysicalWeyl hm S c V x * finitePhysicalWeyl hm S c V (-x)) := by rw [he] + _ = (star (finitePhysicalWeyl hm S c V x) * finitePhysicalWeyl hm S c V x) * + finitePhysicalWeyl hm S c V (-x) := (mul_assoc _ _ _).symm + _ = finitePhysicalWeyl hm S c V (-x) := by rw [hu, one_mul] + +theorem finitePhysicalCyclicSpace_reducing + (hσ : finiteSourceSymplecticMatrix hm S c = modeSymplecticForm) + (A : H →L[ℂ] H) (hA : A ∈ Set.range (finitePhysicalWeyl hm S c V)) : + (∀ x ∈ finitePhysicalCyclicSpace hm S c V, A x ∈ finitePhysicalCyclicSpace hm S c V) ∧ + (∀ x ∈ finitePhysicalCyclicSpace hm S c V, star A x ∈ finitePhysicalCyclicSpace hm S c V) := + projective_closedOrbit_reducing _ _ (finitePhysicalWeyl_mul hm S c V) + (finitePhysicalWeyl_star_of_canonical hm S V c hσ) V.vacuum A hA + +/-- Every actual finite-algebra observable preserves the original cyclic subspace. -/ +theorem canonicalSourceAlgebra_invariant_cyclic + (hσ : finiteSourceSymplecticMatrix hm S c = modeSymplecticForm) + {A : H →L[ℂ] H} (hA : A ∈ canonicalSourceAlgebra V hm S) + {x : H} (hx : x ∈ finitePhysicalCyclicSpace hm S c V) : + A x ∈ finitePhysicalCyclicSpace hm S c V := by + let : CompleteSpace (finitePhysicalCyclicSpace hm S c V) := by + unfold finitePhysicalCyclicSpace closedCyclicSpan + infer_instance + rw [← generatedVNA_finitePhysicalWeyl hm S c V] at hA + exact generatedVNA_invariant_of_reducing _ _ + (finitePhysicalCyclicSpace_reducing hm S V c hσ) hA hx + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ForwardTimeSliceClosure.lean b/LeanPool/VacuumBellSeparation/FreeField/ForwardTimeSliceClosure.lean new file mode 100644 index 0000000000..63c7a67e38 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ForwardTimeSliceClosure.lean @@ -0,0 +1,68 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeSlicePairing +public import Mathlib.Analysis.InnerProductSpace.Projection.Submodule +public import Mathlib.Topology.Sequences + +/-! +# Actual forward time-slice inclusion in the real local source closure + +Every real orthogonal annihilator of the local time-zero source range +annihilates each actual evolved slice. The proved scalar Fubini identity +therefore puts κF in the real norm closure. This is enough for the local +von Neumann algebra statement and makes no local cyclicity assertion. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology +open scoped InnerProductSpace + +theorem oneParticleL2_mem_closure_sourceTestMap {m R : ℝ} + (hm : 0 < m) (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) + (F : RealTestFunction) (hF : tsupport F.1 ⊆ doubleCone (0, x₀) R) : + oneParticleL2 hm F ∈ closure (Set.range (sourceTestMap hm (Metric.ball x₀ R))) := by + let K : Submodule ℝ (Lp ℂ 2 (oneParticleMeasure m)) := + (sourceTestMap hm (Metric.ball x₀ R)).range + change oneParticleL2 hm F ∈ K.topologicalClosure + rw [← K.orthogonal_orthogonal_eq_closure] + apply ((Kᗮ).mem_orthogonal _).mpr + intro ψ hψ + rw [real_inner_oneParticleL2_eq_integral_timeZeroL2] + apply integral_eq_zero_of_ae + exact Eventually.of_forall fun t => by + apply (K.mem_orthogonal' ψ).mp hψ + exact ⟨⟨evolvedSpatialSource hm t (spacetimeSpatialSlice F t), + evolvedSpatialSource_spacetimeSlice_mem_ball_of_doubleCone hm hR x₀ F hF t⟩, rfl⟩ + +theorem oneParticleL2_mem_sourceRealSpace {m R : ℝ} + (hm : 0 < m) (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) + (F : RealTestFunction) (hF : tsupport F.1 ⊆ doubleCone (0, x₀) R) : + oneParticleL2 hm F ∈ sourceRealSpace hm (Metric.ball x₀ R) := by + change oneParticleL2 hm F ∈ Set.range (sourceEmbedding hm (Metric.ball x₀ R)) + rw [range_sourceEmbedding_eq_closure] + exact oneParticleL2_mem_closure_sourceTestMap hm hR x₀ F hF + +/-- The approximants are actual local compact test pairs, rather than +arbitrary elements of the completed or complexified source space. -/ +theorem exists_sourceTestSequence_of_mem_closure {m : ℝ} (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) (z : Lp ℂ 2 (oneParticleMeasure m)) + (hz : z ∈ closure (Set.range (sourceTestMap hm U))) : + ∃ us : ℕ → SourceTestSpace hm U, + Tendsto (fun n => timeZeroL2 hm (us n).1) atTop (𝓝 z) := by + obtain ⟨xs, hxs, hlim⟩ := mem_closure_iff_seq_limit.mp hz + have hw : ∀ n, ∃ u : SourceTestSpace hm U, sourceTestMap hm U u = xs n := hxs + choose us hus using hw + refine ⟨us, ?_⟩ + have heq : (fun n => timeZeroL2 hm (us n).1) = xs := funext hus + rwa [heq] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/GaussianBoostFourier.lean b/LeanPool/VacuumBellSeparation/FreeField/GaussianBoostFourier.lean new file mode 100644 index 0000000000..eac173bb8c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/GaussianBoostFourier.lean @@ -0,0 +1,144 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeGaussianAverage +public import LeanPool.VacuumBellSeparation.FreeField.RapidityBoostFourier + +/-! +# Exact Gaussian boost average as a physical Fourier multiplier + +The standard Gaussian characteristic function fixes every constant. The +Bochner integral is identified by scalar Hilbert pairings and genuine Fubini: +the absolute joint integrand is the L1 product of two actual L2 vectors. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ProbabilityTheory Filter +open scoped InnerProductSpace ComplexConjugate ENNReal + +/-- Gaussian rapidity coefficient given by `Real.exp (-2 * Real.pi ^ 2 * ε ^ 2 * ⟪e₁, ξ⟫_ℝ ^ 2)`. -/ +noncomputable def gaussianRapidityCoefficient (ε : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : ℂ := + Real.exp (-2 * Real.pi ^ 2 * ε ^ 2 * ⟪e₁, ξ⟫_ℝ ^ 2) + +theorem measurable_gaussianRapidityCoefficient (ε : ℝ) : + Measurable (gaussianRapidityCoefficient ε) := by + unfold gaussianRapidityCoefficient + fun_prop + +theorem norm_gaussianRapidityCoefficient_le (ε : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : + ‖gaussianRapidityCoefficient ε ξ‖ ≤ 1 := by + rw [gaussianRapidityCoefficient, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos (Real.exp_pos _), Real.exp_le_one_iff] + have h : 0 ≤ 2 * Real.pi ^ 2 * ε ^ 2 * ⟪e₁, ξ⟫_ℝ ^ 2 := by positivity + nlinarith + +theorem memLp_gaussianRapidityCoefficient (ε : ℝ) : + MemLp (gaussianRapidityCoefficient ε) ⊤ rapidityMeasure := + memLp_top_of_bound (measurable_gaussianRapidityCoefficient ε).aestronglyMeasurable 1 + (Eventually.of_forall (norm_gaussianRapidityCoefficient_le ε)) + +/-- Continuous linear map for the gaussian rapidity multiplier, of type `RapidityL2 →L[ℂ] +RapidityL2`. -/ +noncomputable def gaussianRapidityMultiplier (ε : ℝ) : RapidityL2 →L[ℂ] RapidityL2 := + lpMultiplication rapidityMeasure (gaussianRapidityCoefficient ε) + (memLp_gaussianRapidityCoefficient ε) + +theorem integral_gaussian_rapidityBoostPhase (ε : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : + (∫ t : ℝ, rapidityBoostPhase (ε * t) ξ ∂gaussianReal 0 1) = gaussianRapidityCoefficient ε ξ + := by + have h := charFun_gaussianReal (μ := 0) (v := 1) (-2 * Real.pi * ε * ⟪e₁, ξ⟫_ℝ) + rw [charFun_apply_real] at h + have he : (fun t : ℝ => rapidityBoostPhase (ε * t) ξ) = + fun t : ℝ => Complex.exp ((((-2 * Real.pi * ε * ⟪e₁, ξ⟫_ℝ) : ℝ) : ℂ) * t * Complex.I) := by + funext t + unfold rapidityBoostPhase + congr 1 + push_cast + ring + rw [he, h, gaussianRapidityCoefficient, Complex.ofReal_exp] + congr 1 + push_cast + ring + +theorem oneParticleRapidityFourier_gaussianBoostAverage {m : ℝ} (hm : 0 < m) (ε : ℝ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + oneParticleRapidityFourier hm (gaussianBoostAverage hm ε ψ) = + gaussianRapidityMultiplier ε (oneParticleRapidityFourier hm ψ) := by + let V := oneParticleRapidityFourier hm + let f := V ψ + have hint : Integrable (fun t : ℝ => rapidityBoostMultiplier (ε * t) f) (gaussianReal 0 1) := by + have h := (V.toContinuousLinearEquiv.toContinuousLinearMap.integrable_comp + (integrable_gaussian_boost hm ε ψ)) + change Integrable (fun t : ℝ => V (oneParticleBoost hm (ε * t) ψ)) + (gaussianReal 0 1) at h + exact h.congr (Eventually.of_forall fun t => + oneParticleRapidityFourier_boost hm (ε * t) ψ) + have he : V (gaussianBoostAverage hm ε ψ) = + ∫ t : ℝ, rapidityBoostMultiplier (ε * t) f ∂gaussianReal 0 1 := by + calc + V (gaussianBoostAverage hm ε ψ) = + ∫ t : ℝ, V (oneParticleBoost hm (ε * t) ψ) ∂gaussianReal 0 1 := by + rw [gaussianBoostAverage_apply] + exact (V.toLinearIsometry.integral_comp_comm _).symm + _ = _ := integral_congr_ae (Eventually.of_forall fun t => + oneParticleRapidityFourier_boost hm (ε * t) ψ) + rw [he] + apply ext_inner_left ℂ + intro v + rw [← integral_inner hint v] + have hprod : Integrable (fun q : ℝ × EuclideanSpace ℝ (Fin 3) => + conj (v q.2) * (rapidityBoostPhase (ε * q.1) q.2 * f q.2)) + ((gaussianReal 0 1).prod rapidityMeasure) := by + have hbase := (L2.integrable_inner (𝕜 := ℂ) v f).norm.comp_snd (gaussianReal 0 1) + apply hbase.mono' + · have hf : Measurable (fun q : ℝ × EuclideanSpace ℝ (Fin 3) => f q.2) := + (Lp.stronglyMeasurable f).measurable.comp measurable_snd + have hv : Measurable (fun q : ℝ × EuclideanSpace ℝ (Fin 3) => conj (v q.2)) := + Complex.continuous_conj.measurable.comp + ((Lp.stronglyMeasurable v).measurable.comp measurable_snd) + have hp : Measurable (fun q : ℝ × EuclideanSpace ℝ (Fin 3) => + rapidityBoostPhase (ε * q.1) q.2) := by + unfold rapidityBoostPhase + fun_prop + exact (hv.mul (hp.mul hf)).aestronglyMeasurable + · exact Eventually.of_forall fun q => by + simp only [norm_mul, Complex.norm_conj, norm_rapidityBoostPhase, one_mul, + RCLike.inner_apply'] + exact le_rfl + calc + (∫ t : ℝ, inner ℂ v (rapidityBoostMultiplier (ε * t) f) ∂gaussianReal 0 1) = + ∫ t : ℝ, ∫ ξ, conj (v ξ) * (rapidityBoostPhase (ε * t) ξ * f ξ) ∂rapidityMeasure + ∂gaussianReal 0 1 := by + apply integral_congr_ae + exact Eventually.of_forall fun t => by + dsimp only + rw [L2.inner_def] + unfold rapidityBoostMultiplier + apply integral_congr_ae + filter_upwards [lpMultiplication_ae rapidityMeasure (rapidityBoostPhase (ε * t)) + (memLp_rapidityBoostPhase (ε * t)) f] with ξ hξ + rw [hξ, RCLike.inner_apply'] + _ = ∫ ξ, ∫ t : ℝ, conj (v ξ) * (rapidityBoostPhase (ε * t) ξ * f ξ) + ∂gaussianReal 0 1 ∂rapidityMeasure := integral_integral_swap hprod + _ = ∫ ξ, conj (v ξ) * (gaussianRapidityCoefficient ε ξ * f ξ) ∂rapidityMeasure := by + apply integral_congr_ae + exact Eventually.of_forall fun ξ => by + dsimp only + rw [integral_const_mul, integral_mul_const, integral_gaussian_rapidityBoostPhase] + _ = inner ℂ v (gaussianRapidityMultiplier ε f) := by + rw [L2.inner_def] + unfold gaussianRapidityMultiplier + apply integral_congr_ae + filter_upwards [lpMultiplication_ae rapidityMeasure (gaussianRapidityCoefficient ε) + (memLp_gaussianRapidityCoefficient ε) f] with ξ hξ + rw [hξ, RCLike.inner_apply'] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/GaussianRapidityRegularization.lean b/LeanPool/VacuumBellSeparation/FreeField/GaussianRapidityRegularization.lean new file mode 100644 index 0000000000..0797c0a7c0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/GaussianRapidityRegularization.lean @@ -0,0 +1,113 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.GaussianBoostFourier +public import LeanPool.VacuumBellSeparation.FreeField.PhysicalRapidityExponential + +/-! +# Bounded regularization of the full maximal rapidity half-power + +For every nonzero Gaussian width the full product exp(-2π²ξ₁) exp(-2π²ε²ξ₁²) +is bounded by exp(π²/(2ε²)). Its actual bounded multiplication operator supplies +an intermediate vector in the maximal half-power graph for every physical ψ. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter +open scoped InnerProductSpace ENNReal + +/-- Gaussian half coefficient given by `Real.exp (-2 * Real.pi ^ 2 * ⟪e₁, ξ⟫_ℝ - 2 * Real.pi ^ 2 * +ε ^ 2 * ⟪e₁, ξ⟫_ℝ ^ 2)`. -/ +noncomputable def gaussianHalfCoefficient (ε : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : ℂ := + Real.exp (-2 * Real.pi ^ 2 * ⟪e₁, ξ⟫_ℝ - 2 * Real.pi ^ 2 * ε ^ 2 * ⟪e₁, ξ⟫_ℝ ^ 2) + +theorem gaussianHalfCoefficient_eq (ε : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : + gaussianHalfCoefficient ε ξ = (Real.exp (rapidityFrequencyExponent (1 / 2) ξ) : ℂ) * + gaussianRapidityCoefficient ε ξ := by + unfold gaussianHalfCoefficient gaussianRapidityCoefficient rapidityFrequencyExponent + rw [← Complex.ofReal_mul, ← Real.exp_add] + congr 2 + ring + +theorem norm_gaussianHalfCoefficient_le {ε : ℝ} (hε : ε ≠ 0) + (ξ : EuclideanSpace ℝ (Fin 3)) : + ‖gaussianHalfCoefficient ε ξ‖ ≤ Real.exp (Real.pi ^ 2 / (2 * ε ^ 2)) := by + rw [gaussianHalfCoefficient, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] + apply Real.exp_le_exp.mpr + have he : -2 * Real.pi ^ 2 * ⟪e₁, ξ⟫_ℝ - 2 * Real.pi ^ 2 * ε ^ 2 * ⟪e₁, ξ⟫_ℝ ^ 2 = + Real.pi ^ 2 / (2 * ε ^ 2) - 2 * Real.pi ^ 2 * (ε * ⟪e₁, ξ⟫_ℝ + 1 / (2 * ε)) ^ 2 := by + field_simp [hε] + ring + rw [he] + exact sub_le_self _ (by positivity) + +theorem memLp_gaussianHalfCoefficient {ε : ℝ} (hε : ε ≠ 0) : + MemLp (gaussianHalfCoefficient ε) ⊤ rapidityMeasure := by + have hm : Measurable (gaussianHalfCoefficient ε) := by unfold gaussianHalfCoefficient; fun_prop + exact memLp_top_of_bound hm.aestronglyMeasurable (Real.exp (Real.pi ^ 2 / (2 * ε ^ 2))) + (Eventually.of_forall (norm_gaussianHalfCoefficient_le hε)) + +/-- Continuous linear map for the gaussian half multiplier, of type `RapidityL2 →L[ℂ] +RapidityL2`. -/ +noncomputable def gaussianHalfMultiplier {ε : ℝ} (hε : ε ≠ 0) : RapidityL2 →L[ℂ] RapidityL2 := + lpMultiplication rapidityMeasure (gaussianHalfCoefficient ε) (memLp_gaussianHalfCoefficient hε) + +/-- Continuous linear map for the physical Gaussian half, of type `Lp ℂ 2 (oneParticleMeasure m) +→L[ℂ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def physicalGaussianHalf {m : ℝ} (hm : 0 < m) {ε : ℝ} (hε : ε ≠ 0) : + Lp ℂ 2 (oneParticleMeasure m) →L[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + (oneParticleRapidityFourier hm).symm.toContinuousLinearEquiv.toContinuousLinearMap.comp + ((gaussianHalfMultiplier hε).comp + (oneParticleRapidityFourier hm).toContinuousLinearEquiv.toContinuousLinearMap) + +theorem gaussianBoostAverage_mem_physicalHalf_graph {m : ℝ} (hm : 0 < m) {ε : ℝ} + (hε : ε ≠ 0) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + (gaussianBoostAverage hm ε ψ, physicalGaussianHalf hm hε ψ) ∈ + (physicalRapidityExponential hm (1 / 2)).graph := by + rw [physicalRapidityExponential_mem_graph, oneParticleRapidityFourier_gaussianBoostAverage] + have he : oneParticleRapidityFourier hm (physicalGaussianHalf hm hε ψ) = + gaussianHalfMultiplier hε (oneParticleRapidityFourier hm ψ) := by + change oneParticleRapidityFourier hm ((oneParticleRapidityFourier hm).symm + (gaussianHalfMultiplier hε (oneParticleRapidityFourier hm ψ))) = _ + exact (oneParticleRapidityFourier hm).apply_symm_apply _ + rw [he] + filter_upwards [lpMultiplication_ae rapidityMeasure (gaussianHalfCoefficient ε) + (memLp_gaussianHalfCoefficient hε) (oneParticleRapidityFourier hm ψ), + lpMultiplication_ae rapidityMeasure (gaussianRapidityCoefficient ε) + (memLp_gaussianRapidityCoefficient ε) (oneParticleRapidityFourier hm ψ)] with ξ hh hg + change (lpMultiplication rapidityMeasure (gaussianHalfCoefficient ε) + (memLp_gaussianHalfCoefficient hε) (oneParticleRapidityFourier hm ψ)) ξ = + (Real.exp (rapidityFrequencyExponent (1 / 2) ξ) : ℂ) * + (lpMultiplication rapidityMeasure (gaussianRapidityCoefficient ε) + (memLp_gaussianRapidityCoefficient ε) (oneParticleRapidityFourier hm ψ)) ξ + rw [hh, hg, gaussianHalfCoefficient_eq, mul_assoc] + +theorem gaussianBoostAverage_preserves_physicalHalf_graph {m : ℝ} (hm : 0 < m) (ε : ℝ) + {ψ χ : Lp ℂ 2 (oneParticleMeasure m)} + (hψχ : (ψ, χ) ∈ (physicalRapidityExponential hm (1 / 2)).graph) : + (gaussianBoostAverage hm ε ψ, gaussianBoostAverage hm ε χ) ∈ + (physicalRapidityExponential hm (1 / 2)).graph := by + rw [physicalRapidityExponential_mem_graph] at hψχ ⊢ + rw [oneParticleRapidityFourier_gaussianBoostAverage, + oneParticleRapidityFourier_gaussianBoostAverage] + filter_upwards [hψχ, lpMultiplication_ae rapidityMeasure (gaussianRapidityCoefficient ε) + (memLp_gaussianRapidityCoefficient ε) (oneParticleRapidityFourier hm ψ), + lpMultiplication_ae rapidityMeasure (gaussianRapidityCoefficient ε) + (memLp_gaussianRapidityCoefficient ε) (oneParticleRapidityFourier hm χ)] with ξ h hh hg + change (lpMultiplication rapidityMeasure (gaussianRapidityCoefficient ε) + (memLp_gaussianRapidityCoefficient ε) (oneParticleRapidityFourier hm χ)) ξ = + (Real.exp (rapidityFrequencyExponent (1 / 2) ξ) : ℂ) * + (lpMultiplication rapidityMeasure (gaussianRapidityCoefficient ε) + (memLp_gaussianRapidityCoefficient ε) (oneParticleRapidityFourier hm ψ)) ξ + rw [hh, hg, h] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/InjectiveSourceTomita.lean b/LeanPool/VacuumBellSeparation/FreeField/InjectiveSourceTomita.lean new file mode 100644 index 0000000000..78bb20dda6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/InjectiveSourceTomita.lean @@ -0,0 +1,91 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomitaTestCore +public import LeanPool.VacuumBellSeparation.FreeField.WedgeSourceStandardness + +/-! +# Source Tomita operators under actual complex injectivity + +The construction uses precisely complex injectivity, so the separately +proved halfspace case is admissible. The full graph and its compact smooth +core are the same literal graph sets used for bounded regions. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Gaussian.HilbertComplexification + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + (hκ : Function.Injective (complexSourceMap hm U)) + +/-- Injective source range equivalence of type `ComplexSourceHilbert hm U ≃ₗ[ℂ] (complexSourceMap +hm U).range`. -/ +noncomputable def injectiveSourceRangeEquiv : + ComplexSourceHilbert hm U ≃ₗ[ℂ] (complexSourceMap hm U).range := + LinearEquiv.ofInjective (complexSourceMap hm U).toLinearMap hκ + +/-- Injective source Tomita. -/ +noncomputable def injectiveSourceTomita : + Lp ℂ 2 (oneParticleMeasure m) →ₛₗ.[starRingEnd ℂ] Lp ℂ 2 (oneParticleMeasure m) where + domain := (complexSourceMap hm U).range + toFun := (complexSourceMap hm U).toLinearMap.comp + (conjugation.toLinearEquiv.toLinearMap.comp (injectiveSourceRangeEquiv hm U + hκ).symm.toLinearMap) + +theorem injectiveSourceTomita_source (z : ComplexSourceHilbert hm U) : + injectiveSourceTomita hm U hκ (injectiveSourceRangeEquiv hm U hκ z) = + complexSourceMap hm U (conjugation z) := by + change complexSourceMap hm U (conjugation + ((injectiveSourceRangeEquiv hm U hκ).symm (injectiveSourceRangeEquiv hm U hκ z))) = _ + rw [LinearEquiv.symm_apply_apply] + +theorem injectiveSourceTomita_graph (x y : Lp ℂ 2 (oneParticleMeasure m)) : + (x, y) ∈ sourceTomitaGraph hm U ↔ + ∃ hx : x ∈ (injectiveSourceTomita hm U hκ).domain, + injectiveSourceTomita hm U hκ ⟨x, hx⟩ = y := by + constructor + · rintro ⟨z, rfl, hy⟩ + exact ⟨⟨z, rfl⟩, (injectiveSourceTomita_source hm U hκ z).trans hy⟩ + · rintro ⟨hx, hy⟩ + refine ⟨(injectiveSourceRangeEquiv hm U hκ).symm ⟨x, hx⟩, ?_, hy⟩ + exact LinearEquiv.ofInjective_symm_apply _ _ + +theorem injectiveSourceTomita_dense_domain (hU : IsOpen U) (hne : U.Nonempty) : + Dense ((injectiveSourceTomita hm U hκ).domain : Set (Lp ℂ 2 (oneParticleMeasure m))) := + complexSourceMap_denseRange_of_open hm U hU hne + +theorem injectiveSourceTomita_closed_graph : + IsClosed {p : Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m) | + ∃ hp : p.1 ∈ (injectiveSourceTomita hm U hκ).domain, + injectiveSourceTomita hm U hκ ⟨p.1, hp⟩ = p.2} := by + have he : {p : Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m) | + ∃ hp : p.1 ∈ (injectiveSourceTomita hm U hκ).domain, + injectiveSourceTomita hm U hκ ⟨p.1, hp⟩ = p.2} = sourceTomitaGraph hm U := by + ext p + exact (injectiveSourceTomita_graph hm U hκ p.1 p.2).symm + rw [he] + exact sourceTomitaGraph_isClosed hm U + +/-- The actual halfspace Tomita operator; injectivity has already been proved. -/ +noncomputable def leftWedgeSourceTomita (ℓ : ℝ) : + Lp ℂ 2 (oneParticleMeasure m) →ₛₗ.[starRingEnd ℂ] Lp ℂ 2 (oneParticleMeasure m) := + injectiveSourceTomita hm (leftWedgeTimeZero ℓ) (complexSourceMap_injective_leftWedgeTimeZero hm ℓ) + +theorem leftWedgeSourceTomita_core (ℓ : ℝ) : + closure (sourceTomitaTestGraph hm (leftWedgeTimeZero ℓ)) = + {p : Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m) | + ∃ hp : p.1 ∈ (leftWedgeSourceTomita hm ℓ).domain, + leftWedgeSourceTomita hm ℓ ⟨p.1, hp⟩ = p.2} := by + rw [closure_sourceTomitaTestGraph] + ext p + exact injectiveSourceTomita_graph hm (leftWedgeTimeZero ℓ) _ p.1 p.2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Isotony.lean b/LeanPool/VacuumBellSeparation/FreeField/Isotony.lean new file mode 100644 index 0000000000..458d890865 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Isotony.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Defs +public import LeanPool.VacuumBellSeparation.Bell.EventConstants + +/-! +# Isotony of the local algebras and monotonicity of the Bell correlation + +Two ingredients of the proof of Corollary 1.2 of the manuscript (Step 3, isotony: "If one region +is contained in another, its local algebra is contained in that of the other. The supremum (2.4) +can only increase when both algebras are enlarged"): + +* `localAlgebra_mono`: `O ⊆ O'` implies `𝔄(O) ⊆ 𝔄(O')`; +* `bellCorrelation_mono`: the Bell correlation is monotone in both algebras; +* `freeFieldBell`-level consequence `bellCorrelation_localAlgebra_le`. +-/ + +@[expose] public section + +open scoped Pointwise + +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem mem_commutantOf_iff {S : Set (H →L[ℂ] H)} {x : H →L[ℂ] H} : + x ∈ commutantOf S ↔ x ∈ (S ∪ star S).centralizer := by + rw [← SetLike.mem_coe] + exact Set.ext_iff.mp (StarSubalgebra.coe_centralizer (R := ℂ) S) x + +/-- The commutant of a larger set is smaller. -/ +theorem commutantOf_antitone {S T : Set (H →L[ℂ] H)} (h : S ⊆ T) : + commutantOf T ≤ commutantOf S := by + intro x hx + rw [mem_commutantOf_iff] at hx ⊢ + exact Set.centralizer_subset (Set.union_subset_union h (Set.star_subset_star.mpr h)) hx + +/-- The generated von Neumann algebra is monotone in the generating set. -/ +theorem generatedVNA_mono {S T : Set (H →L[ℂ] H)} (h : S ⊆ T) : + generatedVNA S ≤ generatedVNA T := by + intro x hx + rw [generatedVNA, VonNeumannAlgebra.mem_commutant_iff] at hx ⊢ + exact fun g hg => hx g (commutantOf_antitone h hg) + +/-- Isotony: `O ⊆ O'` implies `𝔄(O) ⊆ 𝔄(O')`. -/ +theorem localAlgebra_mono {m : ℝ} (V : FreeFieldVacuum m H) {O O' : Set Spacetime} + (h : O ⊆ O') : localAlgebra V O ≤ localAlgebra V O' := by + apply generatedVNA_mono + rintro T ⟨F, hF, rfl⟩ + exact ⟨F, hF.trans h, rfl⟩ + +/-- Self-adjoint contractions of a smaller algebra are self-adjoint contractions of a larger +one. -/ +theorem saContractions_mono {𝔄 𝔄' : VonNeumannAlgebra H} (h : 𝔄 ≤ 𝔄') : + saContractions 𝔄 ⊆ saContractions 𝔄' := + fun _ hA => ⟨h hA.1, hA.2⟩ + +/-- The CHSH values only grow with the algebras. -/ +theorem chshValues_mono (ω : State H) {𝔄 𝔄' 𝔅 𝔅' : VonNeumannAlgebra H} (hA : 𝔄 ≤ 𝔄') + (hB : 𝔅 ≤ 𝔅') : chshValues ω 𝔄 𝔅 ⊆ chshValues ω 𝔄' 𝔅' := by + rintro x ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, rfl⟩ + exact ⟨A₀, saContractions_mono hA hA₀, A₁, saContractions_mono hA hA₁, + B₀, saContractions_mono hB hB₀, B₁, saContractions_mono hB hB₁, rfl⟩ + +/-- The Bell correlation is monotone in both algebras. -/ +theorem bellCorrelation_mono (ω : State H) {𝔄 𝔄' 𝔅 𝔅' : VonNeumannAlgebra H} (hA : 𝔄 ≤ 𝔄') + (hB : 𝔅 ≤ 𝔅') : bellCorrelation ω 𝔄 𝔅 ≤ bellCorrelation ω 𝔄' 𝔅' := + csSup_le_csSup (bddAbove_chshValues ω 𝔄' 𝔅') ⟨1, one_mem_chshValues ω 𝔄 𝔅⟩ + (chshValues_mono ω hA hB) + +/-- Isotony for the vacuum Bell correlation of a free-field vacuum system: enlarging both +regions can only increase it. -/ +theorem bellCorrelation_localAlgebra_le {m : ℝ} (V : FreeFieldVacuum m H) + {O₁ O₂ O₁' O₂' : Set Spacetime} (h₁ : O₁ ⊆ O₁') (h₂ : O₂ ⊆ O₂') : + bellCorrelation (vectorState V.vacuum V.vacuum_norm) (localAlgebra V O₁) (localAlgebra V O₂) + ≤ bellCorrelation (vectorState V.vacuum V.vacuum_norm) (localAlgebra V O₁') + (localAlgebra V O₂') := + bellCorrelation_mono _ (localAlgebra_mono V h₁) (localAlgebra_mono V h₂) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/IteratedDerivativeIntegral.lean b/LeanPool/VacuumBellSeparation/FreeField/IteratedDerivativeIntegral.lean new file mode 100644 index 0000000000..263f42a946 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/IteratedDerivativeIntegral.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Calculus.ParametricIntegral +public import Mathlib.Analysis.Calculus.ContDiff.Basic +public import Mathlib.MeasureTheory.Integral.Bochner.ContinuousLinearMap + +/-! +# Iterated differentiation under an integral with global derivative bounds + +This is a reusable dominated-differentiation lemma. Every derivative has an +actual integrable majorant, uniform in the differentiated variable. The +hypotheses are proved for the polynomially bounded Fourier cutoff kernel in +`FreeField/CutoffFourierIntegral.lean` (`iteratedFDeriv_cutoffFourier_integral`); +they are not assumptions about the physical field or a distribution model. +-/ + +@[expose] public section + +open MeasureTheory Set Filter +open scoped Topology + +namespace VacuumBellSeparation + +theorem iteratedFDeriv_integral_of_global_bounds + {P E F : Type*} [MeasurableSpace P] + [NormedAddCommGroup E] [NormedSpace ℝ E] + [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] + (μ : Measure P) (f : P → E → F) + (hf : ∀ p, ContDiff ℝ (⊤ : ℕ∞) (f p)) + (hmeas : ∀ j x, AEStronglyMeasurable (fun p => iteratedFDeriv ℝ j (f p) x) μ) + (b : ℕ → P → ℝ) (hb : ∀ j p x, ‖iteratedFDeriv ℝ j (f p) x‖ ≤ b j p) + (hbint : ∀ j, Integrable (b j) μ) (j : ℕ) (x : E) : + iteratedFDeriv ℝ j (fun y => ∫ p, f p y ∂μ) x = + ∫ p, iteratedFDeriv ℝ j (f p) x ∂μ := by + have hint (j : ℕ) (x : E) : Integrable (fun p => iteratedFDeriv ℝ j (f p) x) μ := + (hbint j).mono' (hmeas j x) (Eventually.of_forall fun p => hb j p x) + induction j generalizing x with + | zero => + simp only [iteratedFDeriv_zero_eq_comp, Function.comp_def] + exact ((continuousMultilinearCurryFin0 ℝ E F).symm.toLinearIsometry.integral_comp_comm _).symm + | succ j ih => + let C := continuousMultilinearCurryLeftEquiv ℝ (fun _ : Fin (j + 1) => E) F + have hderivmeas (x : E) : + AEStronglyMeasurable (fun p => fderiv ℝ (iteratedFDeriv ℝ j (f p)) x) μ := by + simpa only [fderiv_iteratedFDeriv, Function.comp_def] using + C.continuous.comp_aestronglyMeasurable (hmeas (j + 1) x) + have hd : HasFDerivAt + (fun y => ∫ p, iteratedFDeriv ℝ j (f p) y ∂μ) + (∫ p, fderiv ℝ (iteratedFDeriv ℝ j (f p)) x ∂μ) x := by + apply hasFDerivAt_integral_of_dominated_of_fderiv_le + (𝕜 := ℝ) (μ := μ) (x₀ := x) + (F := fun y p => iteratedFDeriv ℝ j (f p) y) + (F' := fun y p => fderiv ℝ (iteratedFDeriv ℝ j (f p)) y) + (s := univ) (bound := b (j + 1)) Filter.univ_mem + · exact Eventually.of_forall (hmeas j) + · exact hint j x + · exact hderivmeas x + · exact Eventually.of_forall fun p y hy => by + rw [norm_fderiv_iteratedFDeriv] + exact hb (j + 1) p y + · exact hbint (j + 1) + · exact Eventually.of_forall fun p y hy => + ((hf p).differentiable_iteratedFDeriv (m := j) + (by exact_mod_cast ENat.natCast_lt_top j) y).hasFDerivAt + have heq : iteratedFDeriv ℝ j (fun y => ∫ p, f p y ∂μ) = + (fun y => ∫ p, iteratedFDeriv ℝ j (f p) y ∂μ) := funext ih + rw [iteratedFDeriv_succ_eq_comp_left, Function.comp_apply, heq, hd.fderiv] + change C.symm (∫ p, fderiv ℝ (iteratedFDeriv ℝ j (f p)) x ∂μ) = _ + calc + _ = ∫ p, C.symm (fderiv ℝ (iteratedFDeriv ℝ j (f p)) x) ∂μ := by + exact (LinearIsometry.integral_comp_comm (𝕜 := ℝ) + (E := E →L[ℝ] E [×j]→L[ℝ] F) (F := E [×(j + 1)]→L[ℝ] F) + C.symm.toLinearIsometry + (fun p => fderiv ℝ (iteratedFDeriv ℝ j (f p)) x)).symm + _ = _ := by + apply integral_congr_ae + exact Eventually.of_forall fun p => by + change C.symm (fderiv ℝ (iteratedFDeriv ℝ j (f p)) x) = _ + simp only [fderiv_iteratedFDeriv, Function.comp_apply, C, + LinearIsometryEquiv.symm_apply_apply] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointCenteredPolynomialMoments.lean b/LeanPool/VacuumBellSeparation/FreeField/JointCenteredPolynomialMoments.lean new file mode 100644 index 0000000000..a71ffc70ed --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointCenteredPolynomialMoments.lean @@ -0,0 +1,156 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointNormalizedMomentVectors +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialKernelMoments + +/-! # Literal centered and scaled polynomial test integrals -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian MeasureTheory MvPolynomial + +/-- Normalized centered monomial given by `∏ j, (((x j - a j) / s : ℝ) : ℂ) ^ α j`. -/ +def normalizedCenteredMonomial (a : EuclideanSpace ℝ (Fin 3)) (s : ℝ) + (α : Fin 3 → ℕ) (x : EuclideanSpace ℝ (Fin 3)) : ℂ := + ∏ j, (((x j - a j) / s : ℝ) : ℂ) ^ α j + +theorem continuous_normalizedCenteredMonomial (a : EuclideanSpace ℝ (Fin 3)) + (s : ℝ) (α : Fin 3 → ℕ) : Continuous (normalizedCenteredMonomial a s α) := by + unfold normalizedCenteredMonomial + fun_prop + +theorem centeredSpatialTestMoment_eq_integral (a : EuclideanSpace ℝ (Fin 3)) + (f : SpatialTestFunction) (α : Fin 3 → ℕ) : + centeredSpatialTestMoment a f α = ∫ x, (∏ j, (x j - a j) ^ α j) * f.1 x := by + unfold centeredSpatialTestMoment spatialRealTestMoment + rw [← integral_add_right_eq_self + (fun x : EuclideanSpace ℝ (Fin 3) => (∏ j, (x j - a j) ^ α j) * f.1 x) a] + simp only [spatialTestTranslate, sub_neg_eq_add, PiLp.add_apply, add_sub_cancel_right] + +theorem normalizedCenteredSourceMoment_eq_integral (a : EuclideanSpace ℝ (Fin 3)) + (s : ℝ) (f : SpatialTestFunction) (α : Fin 3 → ℕ) : + (normalizedCenteredSourceMoment a s f α : ℂ) = + ∫ x, normalizedCenteredMonomial a s α x * (f.1 x : ℂ) := by + rw [normalizedCenteredSourceMoment, centeredSpatialTestMoment_eq_integral, + ← integral_const_mul] + rw [← integral_complex_ofReal (μ := volume) + (f := fun x : EuclideanSpace ℝ (Fin 3) => + s⁻¹ ^ (∑ j, α j) * ((∏ j, (x j - a j) ^ α j) * f.1 x))] + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + unfold normalizedCenteredMonomial + push_cast + rw [show (∏ j : Fin 3, (((x j : ℂ) - (a j : ℂ)) / (s : ℂ)) ^ α j) = + (∏ j : Fin 3, ((x j : ℂ) - (a j : ℂ)) ^ α j) * + ((s : ℂ)⁻¹) ^ (∑ j, α j) by + simp only [div_eq_mul_inv, mul_pow, Finset.prod_mul_distrib, + Finset.prod_pow_eq_pow_sum]] + ring + +/-- Joint centered scaled coordinates. -/ +def jointCenteredScaledCoordinates (a : EuclideanSpace ℝ (Fin 3)) (s : ℝ) + (x : JointKernelSpace) (j : Fin 6) : ℂ := + Fin.addCases (fun i : Fin 3 => (((x.fst i - a i) / s : ℝ) : ℂ)) + (fun i : Fin 3 => (((x.snd i - a i) / s : ℝ) : ℂ)) j + +theorem jointCenteredScaled_monomial (a : EuclideanSpace ℝ (Fin 3)) (s : ℝ) + (d : Fin 6 →₀ ℕ) (x : JointKernelSpace) : + (∏ j : Fin 6, jointCenteredScaledCoordinates a s x j ^ d j) = + normalizedCenteredMonomial a s (spatialSixLeftExponent d) x.fst * + normalizedCenteredMonomial a s (spatialSixRightExponent d) x.snd := by + rw [Fin.prod_univ_add (a := 3) (b := 3)] + simp only [jointCenteredScaledCoordinates, Fin.addCases_left, Fin.addCases_right, + normalizedCenteredMonomial, spatialSixLeftExponent, spatialSixRightExponent] + +theorem integral_jointCenteredPolynomial_test (a : EuclideanSpace ℝ (Fin 3)) (s : ℝ) + (P : MvPolynomial (Fin 6) ℂ) (f g : SpatialTestFunction) : + (∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * + eval (jointCenteredScaledCoordinates a s x) P) = + ∑ d ∈ P.support, P.coeff d * + (normalizedCenteredSourceMoment a s f (spatialSixLeftExponent d) : ℂ) * + (normalizedCenteredSourceMoment a s g (spatialSixRightExponent d) : ℂ) := by + let T := fun (d : Fin 6 →₀ ℕ) (x : JointKernelSpace) => + P.coeff d * ((normalizedCenteredMonomial a s (spatialSixLeftExponent d) x.fst * + (f.1 x.fst : ℂ)) * + (normalizedCenteredMonomial a s (spatialSixRightExponent d) x.snd * (g.1 x.snd : ℂ))) + have he (x : JointKernelSpace) : + (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * eval (jointCenteredScaledCoordinates a s x) P = + ∑ d ∈ P.support, T d x := by + rw [eval_eq'] + simp only [Finset.mul_sum, jointCenteredScaled_monomial] + apply Finset.sum_congr rfl + intro d hd + dsimp only [T] + ring + have hi (d : Fin 6 →₀ ℕ) : Integrable (T d) := by + have hc : Continuous (T d) := by + have hα := continuous_normalizedCenteredMonomial a s (spatialSixLeftExponent d) + have hβ := continuous_normalizedCenteredMonomial a s (spatialSixRightExponent d) + have hf := f.2.1.continuous + have hg := g.2.1.continuous + dsimp only [T] + fun_prop + apply hc.integrable_of_hasCompactSupport + apply HasCompactSupport.of_support_subset_isCompact + (hasCompactSupport_jointSpatialTestProduct f g).isCompact + intro x hx + apply subset_tsupport + by_contra hn + have hn' : (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) = 0 := by + simpa only [Function.mem_support, not_not] using hn + rcases mul_eq_zero.mp hn' with hf | hg + · exact hx (by simp only [T, hf, mul_zero, zero_mul]) + · exact hx (by simp only [T, hg, mul_zero]) + simp_rw [he] + rw [integral_finsetSum P.support (fun d _ => hi d)] + apply Finset.sum_congr rfl + intro d hd + dsimp only [T] + rw [integral_const_mul] + change P.coeff d * (∫ x : JointKernelSpace, + (fun p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + (normalizedCenteredMonomial a s (spatialSixLeftExponent d) p.1 * (f.1 p.1 : ℂ)) * + (normalizedCenteredMonomial a s (spatialSixRightExponent d) p.2 * (g.1 p.2 : ℂ))) + (WithLp.ofLp x)) = _ + rw [integral_jointKernel_ofLp (G := ℂ) + (fun p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + (normalizedCenteredMonomial a s (spatialSixLeftExponent d) p.1 * (f.1 p.1 : ℂ)) * + (normalizedCenteredMonomial a s (spatialSixRightExponent d) p.2 * (g.1 p.2 : ℂ)))] + change P.coeff d * (∫ p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3), + (normalizedCenteredMonomial a s (spatialSixLeftExponent d) p.1 * (f.1 p.1 : ℂ)) * + (normalizedCenteredMonomial a s (spatialSixRightExponent d) p.2 * (g.1 p.2 : ℂ)) + ∂(volume.prod volume)) = _ + rw [integral_prod_mul (μ := volume) (ν := volume) + (fun x : EuclideanSpace ℝ (Fin 3) => + normalizedCenteredMonomial a s (spatialSixLeftExponent d) x * (f.1 x : ℂ)) + (fun y : EuclideanSpace ℝ (Fin 3) => + normalizedCenteredMonomial a s (spatialSixRightExponent d) y * (g.1 y : ℂ)), + ← normalizedCenteredSourceMoment_eq_integral, ← normalizedCenteredSourceMoment_eq_integral] + ring + +theorem jointPhysicalMidpoint_eq_centeredScaled {s : ℝ} (hs : s ≠ 0) + (x : JointKernelSpace) : + jointPhysicalMidpoint s (jointComplexCoordinates x) = + jointCenteredScaledCoordinates (spatialAxisDisplacement (s / 2) 0) s x := by + have hs' : (s : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hs + funext j + refine Fin.addCases (m := 3) (n := 3) (fun i => ?_) (fun i => ?_) j + · simp only [jointPhysicalMidpoint, jointComplexCoordinates_left, + jointCenteredScaledCoordinates, Fin.addCases_left] + fin_cases i <;> simp [jointPhysicalMidpointShift, spatialAxisDisplacement] + field_simp [hs'] + · simp only [jointPhysicalMidpoint, jointComplexCoordinates_right, + jointCenteredScaledCoordinates, Fin.addCases_right] + fin_cases i <;> simp [jointPhysicalMidpointShift, spatialAxisDisplacement] + field_simp [hs'] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceComponentPairing.lean b/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceComponentPairing.lean new file mode 100644 index 0000000000..0f8a4898c7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceComponentPairing.lean @@ -0,0 +1,130 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPhysicalKernelRestriction +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelComponentForm + +/-! # The limiting kernel operator has the original physical component pairings -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian MeasureTheory Set Metric +open scoped SchwartzMap InnerProductSpace + +theorem jointIndex_bool_eq (i j : Fin 2) : + (decide (i = 1) = decide (j = 1)) ↔ i = j := by + fin_cases i <;> fin_cases j <;> decide + +theorem jointPolynomialErrorPatch_zero_sum {s : ℝ} (hs : 600 ≤ s) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (a b : Fin 2) (x : JointKernelSpace) + (hx : x.fst ∈ closedBall (jointCenterIndex s a) 1) + (hy : x.snd ∈ closedBall (jointCenterIndex s b) 1) : + (∑ i : Fin 2, ∑ j : Fin 2, jointPolynomialErrorPatch hs F hF 0 i j x) = + jointComponentKernel F (decide (a = 1)) (decide (b = 1)) + (jointPhysicalMidpoint s (jointComplexCoordinates x)) := by + have h := jointSmoothCutoff_four_sum_on_component (jointCenterIndex s) + (jointCenterIndex_separated hs) + (fun i j => jointRealPolynomialError F s 0 (decide (i = 1)) (decide (j = 1))) a b x hx hy + beta_reduce at h + -- Each patch is the cut-off real error kernel, by definition. + have hz (i j : Fin 2) : jointPolynomialErrorPatch hs F hF 0 i j x = + jointSmoothCutoff (jointCenterIndex s i) (jointCenterIndex s j) x * + jointRealPolynomialError F s 0 (decide (i = 1)) (decide (j = 1)) x := rfl + simp only [hz] + rw [h] + simp only [jointRealPolynomialError, Function.comp_apply, jointPhysicalPolynomialError, + jointMidpointPolynomial_zero, map_zero, sub_zero] + +theorem jointFieldErrorPatch_zero_sum {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + (a b : Fin 2) (x : JointKernelSpace) + (hx : x.fst ∈ closedBall (jointCenterIndex s a) 1) + (hy : x.snd ∈ closedBall (jointCenterIndex s b) 1) : + (∑ i : Fin 2, ∑ j : Fin 2, jointPolynomialErrorPatch hs (jointNormalizedFieldKernel μ s) + (jointNormalizedFieldKernel_analyticAt hμ (by linarith)) 0 i j x) = + if a = b then 0 else -(spatialFieldBesselKernel μ (x.fst - x.snd) : ℂ) := by + rw [jointPolynomialErrorPatch_zero_sum hs _ _ a b x hx hy, + jointComponentFieldKernel_physical (by linarith : s ≠ 0)] + by_cases hab : a = b + · subst hab + simp + · have hd : decide (a = 1) ≠ decide (b = 1) := fun h => hab ((jointIndex_bool_eq a b).mp h) + rw [ite_eq_right hd, ite_eq_right hab, spatialFieldBesselKernel_sub_comm μ x.snd x.fst] + +theorem jointMomentumErrorPatch_zero_sum {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + (a b : Fin 2) (x : JointKernelSpace) + (hx : x.fst ∈ closedBall (jointCenterIndex s a) 1) + (hy : x.snd ∈ closedBall (jointCenterIndex s b) 1) : + (∑ i : Fin 2, ∑ j : Fin 2, jointPolynomialErrorPatch hs (jointNormalizedMomentumKernel μ s) + (jointNormalizedMomentumKernel_analyticAt hμ (by linarith)) 0 i j x) = + if a = b then 0 else -(spatialMomentumBesselKernel μ (x.fst - x.snd) : ℂ) := by + rw [jointPolynomialErrorPatch_zero_sum hs _ _ a b x hx hy, + jointComponentMomentumKernel_physical (by linarith : s ≠ 0)] + by_cases hab : a = b + · subst hab + simp + · have hd : decide (a = 1) ≠ decide (b = 1) := fun h => hab ((jointIndex_bool_eq a b).mp h) + rw [ite_eq_right hd, ite_eq_right hab, spatialMomentumBesselKernel_sub_comm μ x.snd x.fst] + +theorem joint_negative_real_kernel_integral + (K : EuclideanSpace ℝ (Fin 3) → ℝ) (f g : SpatialTestFunction) : + (∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * (-(K (x.fst - x.snd) : ℂ))).re = + -(∫ p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3), + K (p.1 - p.2) * f.1 p.1 * g.1 p.2) := by + have he (x : JointKernelSpace) : + (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * (-(K (x.fst - x.snd) : ℂ)) = + ((-(K (x.fst - x.snd) * f.1 x.fst * g.1 x.snd) : ℝ) : ℂ) := by + push_cast + ring + simp_rw [he] + rw [integral_complex_ofReal, Complex.ofReal_re, integral_neg] + congr 1 + exact integral_jointKernel_ofLp (fun p => K (p.1 - p.2) * f.1 p.1 * g.1 p.2) + +theorem jointFieldDifference_pairing_component {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + (a b : Fin 2) (u v : SourceTestSpace hμ (jointSourceRegion s)) + (hu : Function.support u.1.1.1 ⊆ closedBall (jointCenterIndex s a) 1) + (hv : Function.support v.1.1.1 ⊆ closedBall (jointCenterIndex s b) 1) : + inner ℝ (u : SourceHilbert hμ (jointSourceRegion s)) + (jointFieldErrorOperator hμ hs 0 (v : SourceHilbert hμ (jointSourceRegion s))) = + if a = b then 0 else -(∫ p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3), + spatialFieldBesselKernel μ (p.1 - p.2) * u.1.1.1 p.1 * v.1.1.1 p.2) := by + have h := jointFourFieldKernelOperator_pairing_component hμ (jointSourceRegion s) + (jointCenterIndex s a) (jointCenterIndex s b) _ _ + (jointFieldErrorPatch_zero_sum hμ hs a b) u v hu hv + change inner ℝ (u : SourceHilbert hμ (jointSourceRegion s)) + (jointFieldErrorOperator hμ hs 0 (v : SourceHilbert hμ (jointSourceRegion s))) = _ at h + rw [h] + by_cases hab : a = b + · simp only [ite_eq_left hab, mul_zero, integral_zero, Complex.zero_re] + · simp only [ite_eq_right hab] + exact joint_negative_real_kernel_integral _ u.1.1 v.1.1 + +theorem jointMomentumDifference_pairing_component {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + (a b : Fin 2) (u v : SourceTestSpace hμ (jointSourceRegion s)) + (hu : Function.support u.1.2.1 ⊆ closedBall (jointCenterIndex s a) 1) + (hv : Function.support v.1.2.1 ⊆ closedBall (jointCenterIndex s b) 1) : + inner ℝ (u : SourceHilbert hμ (jointSourceRegion s)) + (jointMomentumErrorOperator hμ hs 0 (v : SourceHilbert hμ (jointSourceRegion s))) = + if a = b then 0 else -(∫ p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3), + spatialMomentumBesselKernel μ (p.1 - p.2) * u.1.2.1 p.1 * v.1.2.1 p.2) := by + have h := jointFourMomentumKernelOperator_pairing_component hμ + (jointCenterIndex s 0) (jointCenterIndex s 1) (jointCenterIndex s a) (jointCenterIndex s b) + _ _ (jointMomentumErrorPatch_zero_sum hμ hs a b) u v hu hv + change inner ℝ (u : SourceHilbert hμ (jointSourceRegion s)) + (jointMomentumErrorOperator hμ hs 0 (v : SourceHilbert hμ (jointSourceRegion s))) = _ at h + rw [h] + by_cases hab : a = b + · simp only [ite_eq_left hab, mul_zero, integral_zero, Complex.zero_re] + · simp only [ite_eq_right hab] + exact joint_negative_real_kernel_integral _ u.1.2 v.1.2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceCovariance.lean b/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceCovariance.lean new file mode 100644 index 0000000000..fb61221b08 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceCovariance.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointDifferenceComponentPairing +public import LeanPool.VacuumBellSeparation.FreeField.FiniteProductSourceCompression + +/-! +# Original product-minus-joint covariance in the total source norm + +The zero-order kernel operator has zero same-ball pairings and the +negative original Fourier covariance on opposite balls. Bilinearity then +identifies its form on arbitrary sums of the two original regional tests. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian MeasureTheory Set Metric +open scoped InnerProductSpace + +theorem jointComponent_test_separation {s : ℝ} (hs : 600 ≤ s) + (a b : Fin 2) (hab : a ≠ b) (x y : EuclideanSpace ℝ (Fin 3)) + (hx : x ∈ closedBall (jointCenterIndex s a) 1) + (hy : y ∈ closedBall (jointCenterIndex s b) 1) : 1 ≤ ‖x - y‖ := by + have hc := jointCenterIndex_separated hs + have hc' : 5 ≤ dist (jointCenterIndex s a) (jointCenterIndex s b) := by + fin_cases a <;> fin_cases b + · exact absurd rfl hab + · exact hc + · rw [dist_comm] + exact hc + · exact absurd rfl hab + have hx' : dist (jointCenterIndex s a) x ≤ 1 := by + simpa only [mem_closedBall, dist_comm] using hx + have hy' : dist y (jointCenterIndex s b) ≤ 1 := hy + have h₁ := dist_triangle (jointCenterIndex s a) x (jointCenterIndex s b) + have h₂ := dist_triangle x y (jointCenterIndex s b) + rw [dist_eq_norm x y] at h₂ + linarith + +theorem jointDifferenceKernelOperator_pairing_component {μ s : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) (a b : Fin 2) + (u v : SourceTestSpace hμ (jointSourceRegion s)) + (hu : u.1 ∈ localizedTimeZeroSources (ball (jointCenterIndex s a) 1)) + (hv : v.1 ∈ localizedTimeZeroSources (ball (jointCenterIndex s b) 1)) : + inner ℝ (u : SourceHilbert hμ (jointSourceRegion s)) + (jointDifferenceKernelOperator hμ hs (v : SourceHilbert hμ (jointSourceRegion s))) = + if a = b then 0 else -timeZeroFourierCovariance μ u.1 v.1 := by + have huf : Function.support u.1.1.1 ⊆ closedBall (jointCenterIndex s a) 1 := + ((subset_tsupport _).trans hu.1).trans ball_subset_closedBall + have hug : Function.support u.1.2.1 ⊆ closedBall (jointCenterIndex s a) 1 := + ((subset_tsupport _).trans hu.2).trans ball_subset_closedBall + have hvf : Function.support v.1.1.1 ⊆ closedBall (jointCenterIndex s b) 1 := + ((subset_tsupport _).trans hv.1).trans ball_subset_closedBall + have hvg : Function.support v.1.2.1 ⊆ closedBall (jointCenterIndex s b) 1 := + ((subset_tsupport _).trans hv.2).trans ball_subset_closedBall + unfold jointDifferenceKernelOperator jointErrorOperator + rw [add_apply, inner_add_right, + jointFieldDifference_pairing_component hμ hs a b u v huf hvf, + jointMomentumDifference_pairing_component hμ hs a b u v hug hvg] + by_cases hab : a = b + · simp only [ite_eq_left hab, add_zero] + · simp only [ite_eq_right hab] + have hff (x y : EuclideanSpace ℝ (Fin 3)) (hx : u.1.1.1 x ≠ 0) (hy : v.1.1.1 y ≠ 0) : + (1 : ℝ) ≤ ‖x - y‖ := jointComponent_test_separation hs a b hab x y (huf hx) (hvf hy) + have hgg (x y : EuclideanSpace ℝ (Fin 3)) (hx : u.1.2.1 x ≠ 0) (hy : v.1.2.1 y ≠ 0) : + (1 : ℝ) ≤ ‖x - y‖ := jointComponent_test_separation hs a b hab x y (hug hx) (hvg hy) + have hfi : Integrable (fun p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + spatialFieldBesselKernel μ (p.1 - p.2) * u.1.1.1 p.1 * v.1.1.1 p.2) := by + have h := (integrable_spatialFieldKernel_pairing hμ (by norm_num : (0 : ℝ) < 1) + u.1.1 v.1.1 hff).re + simp only [RCLike.re_eq_complex_re, ← Complex.ofReal_mul, Complex.ofReal_re] at h + exact h + have hgi : Integrable (fun p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + spatialMomentumBesselKernel μ (p.1 - p.2) * u.1.2.1 p.1 * v.1.2.1 p.2) := by + have h := (integrable_spatialMomentumKernel_pairing hμ (by norm_num : (0 : ℝ) < 1) + u.1.2 v.1.2 hgg).re + simp only [RCLike.re_eq_complex_re, ← Complex.ofReal_mul, Complex.ofReal_re] at h + exact h + rw [timeZeroFourierCovariance_eq_bessel_kernel hμ (by norm_num : (0 : ℝ) < 1) + u.1 v.1 hff hgg, ← MeasureTheory.Measure.volume_eq_prod, integral_add hfi hgi] + ring + +/-- No inverse of regional synthesis is assumed: all four inputs are +literal regional test sources in the original total covariance norm. -/ +theorem jointDifferenceKernelOperator_pairing_sum {μ s : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) + (u v : Fin 2 → SourceTestSpace hμ (jointSourceRegion s)) + (hu : ∀ i, (u i).1 ∈ localizedTimeZeroSources (ball (jointCenterIndex s i) 1)) + (hv : ∀ i, (v i).1 ∈ localizedTimeZeroSources (ball (jointCenterIndex s i) 1)) : + inner ℝ ((u 0 : SourceHilbert hμ (jointSourceRegion s)) + (u 1 : SourceHilbert hμ + (jointSourceRegion s))) + (jointDifferenceKernelOperator hμ hs + ((v 0 : SourceHilbert hμ (jointSourceRegion s)) + (v 1 : SourceHilbert hμ + (jointSourceRegion s)))) = + (inner ℝ (u 0 : SourceHilbert hμ (jointSourceRegion s)) (v 0 : SourceHilbert hμ + (jointSourceRegion s)) + + inner ℝ (u 1 : SourceHilbert hμ (jointSourceRegion s)) (v 1 : SourceHilbert hμ + (jointSourceRegion s))) - + inner ℝ ((u 0 : SourceHilbert hμ (jointSourceRegion s)) + (u 1 : SourceHilbert hμ + (jointSourceRegion s))) + ((v 0 : SourceHilbert hμ (jointSourceRegion s)) + (v 1 : SourceHilbert hμ + (jointSourceRegion s))) := by + simp only [map_add, inner_add_left, inner_add_right, + jointDifferenceKernelOperator_pairing_component hμ hs 0 0 (u 0) (v 0) (hu 0) (hv 0), + jointDifferenceKernelOperator_pairing_component hμ hs 0 1 (u 0) (v 1) (hu 0) (hv 1), + jointDifferenceKernelOperator_pairing_component hμ hs 1 0 (u 1) (v 0) (hu 1) (hv 0), + jointDifferenceKernelOperator_pairing_component hμ hs 1 1 (u 1) (v 1) (hu 1) (hv 1), + sourceHilbert_test_inner_covariance, show (0 : Fin 2) ≠ 1 by decide, + show (1 : Fin 2) ≠ 0 by decide, ↓reduceIte] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceOperator.lean b/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceOperator.lean new file mode 100644 index 0000000000..6809d1b215 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceOperator.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointDifferenceOperatorDefs +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialErrorOperators +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialEnvelope + +/-! +# A genuine joint kernel operator and its norm-convergent polynomial approximants + +The order-zero error has zero Taylor polynomial, and supplies the bounded +joint kernel operator. Subtracting the order-n error gives its approximant. +Identification with finite moment sums and the product-minus-joint test +covariance is recorded separately; neither identification is a hypothesis here. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Filter +open scoped Topology + +theorem jointPolynomialErrorConstant_pos : 0 < jointPolynomialErrorConstant := by + unfold jointPolynomialErrorConstant + exact mul_pos (mul_pos (mul_pos (by norm_num) jointSmoothKernelUniversalConstant_pos) + (by norm_num)) (by norm_num) + +@[simp] theorem jointPolynomialKernelOperator_zero {μ s : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) : jointPolynomialKernelOperator hμ hs 0 = 0 := by + simp only [jointPolynomialKernelOperator, jointDifferenceKernelOperator, sub_self] + +theorem norm_jointErrorOperator_le {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + ‖jointErrorOperator hμ hs n‖ ≤ + jointPolynomialErrorConstant * jointCommonEnvelope μ s * (78643200 / s) ^ n := by + have hs₀ : 0 < s := by linarith + have hC := jointSmoothKernelUniversalConstant_pos.le + have hq : 0 ≤ (78643200 / s) ^ n := by positivity + have henv : max 1 μ * jointFieldEnvelope μ s + jointMomentumEnvelope μ s ≤ + 134 * jointCommonEnvelope μ s := by + linarith [jointFieldEnvelope_mass_le hμ (show 1 ≤ s by linarith), + jointMomentumEnvelope_le hμ (show 1 ≤ s by linarith)] + calc + _ ≤ ‖jointFieldErrorOperator hμ hs n‖ + ‖jointMomentumErrorOperator hμ hs n‖ := by + simpa only [jointErrorOperator] using + norm_add_le (jointFieldErrorOperator hμ hs n) (jointMomentumErrorOperator hμ hs n) + _ ≤ (4 * jointSmoothKernelUniversalConstant) * max 1 μ * + (11680000 * jointFieldEnvelope μ s * (78643200 / s) ^ n) + + (4 * jointSmoothKernelUniversalConstant) * + (11680000 * jointMomentumEnvelope μ s * (78643200 / s) ^ n) := + add_le_add (norm_jointFieldErrorOperator_le hμ hs n) + (norm_jointMomentumErrorOperator_le hμ hs n) + _ = (4 * jointSmoothKernelUniversalConstant * 11680000) * + (max 1 μ * jointFieldEnvelope μ s + jointMomentumEnvelope μ s) * (78643200 / s) ^ n + := by ring + _ ≤ (4 * jointSmoothKernelUniversalConstant * 11680000) * + (134 * jointCommonEnvelope μ s) * (78643200 / s) ^ n := by gcongr + _ = _ := by unfold jointPolynomialErrorConstant; ring + +theorem norm_jointDifferenceKernelOperator_le {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) : + ‖jointDifferenceKernelOperator hμ hs‖ ≤ jointPolynomialErrorConstant * jointCommonEnvelope μ + s := by + simpa only [jointDifferenceKernelOperator, pow_zero, mul_one] + using norm_jointErrorOperator_le hμ hs 0 + +theorem norm_jointPolynomialKernelOperator_error_le {μ s : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + ‖jointDifferenceKernelOperator hμ hs - jointPolynomialKernelOperator hμ hs n‖ ≤ + jointPolynomialErrorConstant * jointCommonEnvelope μ s * (78643200 / s) ^ n := by + simpa only [jointPolynomialKernelOperator, sub_sub_cancel] + using norm_jointErrorOperator_le hμ hs n + +theorem jointPolynomialKernelOperator_tendsto {μ s : ℝ} + (hμ : 0 < μ) (hs : 157286400 ≤ s) : + Tendsto (jointPolynomialKernelOperator hμ (show 600 ≤ s by linarith)) atTop + (𝓝 (jointDifferenceKernelOperator hμ (show 600 ≤ s by linarith))) := by + have hs₀ : 0 < s := by linarith + have hq₀ : 0 ≤ 78643200 / s := by positivity + have hq₁ : 78643200 / s < 1 := (div_lt_one hs₀).mpr (by linarith) + have hp := tendsto_pow_atTop_nhds_zero_of_lt_one hq₀ hq₁ + have hn : Tendsto (fun n => ‖jointErrorOperator hμ (show 600 ≤ s by linarith) n‖) atTop (𝓝 0) := + squeeze_zero (fun n => norm_nonneg + (jointErrorOperator hμ (show 600 ≤ s by linarith) n)) (norm_jointErrorOperator_le hμ _) + (by simpa only [mul_zero] using + (tendsto_const_nhds (x := jointPolynomialErrorConstant * jointCommonEnvelope μ s)).mul hp) + have he : Tendsto (jointErrorOperator hμ (show 600 ≤ s by linarith)) + atTop (𝓝 0) := + (tendsto_zero_iff_norm_tendsto_zero + (f := jointErrorOperator hμ (show 600 ≤ s by linarith)) (a := atTop)).mpr hn + change Tendsto (fun n => jointDifferenceKernelOperator hμ (show 600 ≤ s by linarith) - + jointErrorOperator hμ (show 600 ≤ s by linarith) n) atTop + (𝓝 (jointDifferenceKernelOperator hμ (show 600 ≤ s by linarith))) + simpa only [sub_zero] using + (tendsto_const_nhds (x := jointDifferenceKernelOperator hμ (show 600 ≤ s by linarith))).sub he + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceOperatorDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceOperatorDefs.lean new file mode 100644 index 0000000000..749617b3ff --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointDifferenceOperatorDefs.lean @@ -0,0 +1,47 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialErrorOperators +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialEnvelope + +/-! +# Literal statement construction extracted from FreeField/JointDifferenceOperator + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Filter +open scoped Topology + +/-- The actual sum of field and momentum error operators on one joint completion. -/ +def jointErrorOperator {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + SourceHilbert hμ (jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s) := + jointFieldErrorOperator hμ hs n + jointMomentumErrorOperator hμ hs n + +/-- Constructed from the actual zero-order four-patch kernel. -/ +def jointDifferenceKernelOperator {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) : + SourceHilbert hμ (jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s) := + jointErrorOperator hμ hs 0 + +/-- Continuous linear map for the joint polynomial kernel operator, of type `SourceHilbert hμ +(jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s)`. -/ +def jointPolynomialKernelOperator {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + SourceHilbert hμ (jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s) := + jointDifferenceKernelOperator hμ hs - jointErrorOperator hμ hs n + +/-- Joint polynomial error constant defined as `4 * jointSmoothKernelUniversalConstant * 11680000 * +134`. -/ +def jointPolynomialErrorConstant : ℝ := + 4 * jointSmoothKernelUniversalConstant * 11680000 * 134 + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointDispersionComparison.lean b/LeanPool/VacuumBellSeparation/FreeField/JointDispersionComparison.lean new file mode 100644 index 0000000000..c2fe2f5b50 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointDispersionComparison.lean @@ -0,0 +1,71 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointLowFrequency + +/-! # The literal mass comparison for the field component of the joint source -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open MeasureTheory + +/-- ω_μ ≤ max(1,μ) ω_1, with the original spatial dispersion. -/ +theorem dispersion_le_max_one_mass {μ : ℝ} (hμ : 0 ≤ μ) + (p : EuclideanSpace ℝ (Fin 3)) : + dispersion μ p ≤ max 1 μ * dispersion 1 p := by + have hm : μ ≤ max 1 μ := le_max_right _ _ + have h1 : (1 : ℝ) ≤ max 1 μ := le_max_left _ _ + have hsμ := dispersion_sq μ p + have hs1 := dispersion_sq 1 p + have hsqμ := pow_le_pow_left₀ hμ hm 2 + have hsq1 := pow_le_pow_left₀ (by norm_num : (0 : ℝ) ≤ 1) h1 2 + have hp := mul_le_mul_of_nonneg_right hsq1 (sq_nonneg ‖p‖) + have hdμ : 0 ≤ dispersion μ p := Real.sqrt_nonneg _ + have hd1 : 0 ≤ dispersion 1 p := Real.sqrt_nonneg _ + apply (sq_le_sq₀ hdμ (mul_nonneg (by linarith : 0 ≤ max 1 μ) hd1)).mp + rw [mul_pow, dispersion_sq, dispersion_sq] + nlinarith + +/-- The inverse multiplier comparison needed for the field Sobolev norm. -/ +theorem inv_dispersion_one_le {μ : ℝ} (hμ : 0 < μ) + (p : EuclideanSpace ℝ (Fin 3)) : + (dispersion 1 p)⁻¹ ≤ max 1 μ * (dispersion μ p)⁻¹ := by + have hdμ : 0 < dispersion μ p := dispersion_pos hμ.ne' p + have hd1 : 0 < dispersion 1 p := dispersion_pos (by norm_num) p + have hm : 0 < max 1 μ := lt_of_lt_of_le zero_lt_one (le_max_left _ _) + have h := dispersion_le_max_one_mass hμ.le p + rw [← div_eq_mul_inv] + apply (le_div_iff₀ hdμ).mpr + have hi := (div_le_iff₀ hd1).mpr h + simpa only [div_eq_mul_inv, mul_comm] using hi + +theorem integrable_inv_dispersion_fourier_norm_sq {μ : ℝ} (hμ : 0 < μ) + (f : SpatialTestFunction) : + Integrable (fun p => (dispersion μ p)⁻¹ * ‖spatialFourier f p‖ ^ 2) := by + have h := (integrable_inv_dispersion_spatialFourier_product hμ f f).norm + convert h using 1 + funext p + rw [norm_mul, norm_mul, Complex.norm_conj, Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (inv_nonneg.mpr (show 0 ≤ dispersion μ p from Real.sqrt_nonneg _))] + ring + +/-- Squared version of source equation (7.2), preserving all Fourier factors. -/ +theorem joint_field_mass_comparison {μ : ℝ} (hμ : 0 < μ) (f : SpatialTestFunction) : + (∫ p, (dispersion 1 p)⁻¹ * ‖spatialFourier f p‖ ^ 2) ≤ + max 1 μ * ∫ p, (dispersion μ p)⁻¹ * ‖spatialFourier f p‖ ^ 2 := by + rw [← integral_const_mul] + apply integral_mono_ae + (integrable_inv_dispersion_fourier_norm_sq (by norm_num : (0 : ℝ) < 1) f) + ((integrable_inv_dispersion_fourier_norm_sq hμ f).const_mul _) + exact Filter.Eventually.of_forall fun p => by + simpa only [mul_assoc] using mul_le_mul_of_nonneg_right + (inv_dispersion_one_le hμ p) (sq_nonneg ‖spatialFourier f p‖) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointFiniteCovarianceCompression.lean b/LeanPool/VacuumBellSeparation/FreeField/JointFiniteCovarianceCompression.lean new file mode 100644 index 0000000000..77a982dbd8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointFiniteCovarianceCompression.lean @@ -0,0 +1,73 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointFiniteSourceDecomposition + +/-! +# Actual compression of the joint kernel difference to finite covariances + +The isometry is the existing original-source covariance whitening. Its +compression is the literal product-minus-joint covariance normalized by +the joint covariance, as required for the reverse estimate. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian Matrix +open scoped InnerProductSpace Matrix.Norms.L2Operator + +variable {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + (S : Submodule ℝ TimeZeroSource) + {ι : Type*} [Fintype ι] [DecidableEq ι] + (b : Module.Basis ι ℝ (FiniteSourceSpace hμ S)) + (hSU : S ≤ localizedTimeZeroSources (jointSourceRegion s)) + (L R : Submodule ℝ (ι → ℝ)) (hLR : IsCompl L R) + (hLA : ∀ x ∈ L, finiteSourceCoordinates hμ S b x ∈ + localizedTimeZeroSources (Metric.ball (jointCenterIndex s 0) 1)) + (hRB : ∀ x ∈ R, finiteSourceCoordinates hμ S b x ∈ + localizedTimeZeroSources (Metric.ball (jointCenterIndex s 1) 1)) + +include hLA hRB in +theorem includedFiniteSourceFamily_joint_difference_form : + realFamilyForm (includedFiniteSourceFamily hμ S b hSU) (jointDifferenceKernelOperator hμ hs) = + labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hμ S b) L R hLR - + finiteSourceCovarianceMatrix hμ S b := by + ext i j + have h := jointDifferenceKernelOperator_pairing_sum hμ hs + (jointProjectedSourceTests hμ S b L R hLR hLA hRB i) + (jointProjectedSourceTests hμ S b L R hLR hLA hRB j) + (jointProjectedSourceTests_localized hμ S b L R hLR hLA hRB i) + (jointProjectedSourceTests_localized hμ S b L R hLR hLA hRB j) + rw [jointProjectedSourceTests_sum hμ S b L R hLR hLA hRB hSU i, + jointProjectedSourceTests_sum hμ S b L R hLR hLA hRB hSU j, + jointProjectedSourceTests_diagonal_gram hμ S b L R hLR hLA hRB i j] at h + change realFamilyForm (includedFiniteSourceFamily hμ S b hSU) + (jointDifferenceKernelOperator hμ hs) i j = + labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hμ S b) L R hLR i j - + realFamilyGram (includedFiniteSourceFamily hμ S b hSU) i j at h + rw [includedFiniteSourceFamily_gram] at h + exact h + +include hLA hRB in +theorem finiteSourceCompression_joint_difference : + compression (finiteSourceCompressionIsometry hμ S b hSU) + (complexify (jointDifferenceKernelOperator hμ hs)) = + realMatrixOperator (relativeCovariancePerturbation (finiteSourceCovarianceMatrix hμ S b) + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hμ S b) L R hLR - + finiteSourceCovarianceMatrix hμ S b)) := by + have h := compression_whitened_complexify + (includedFiniteSourceFamily hμ S b hSU) + (includedFiniteSourceFamily_linearIndependent hμ S b hSU) + (jointDifferenceKernelOperator hμ hs) + rw [includedFiniteSourceFamily_gram, + includedFiniteSourceFamily_joint_difference_form hμ hs S b hSU L R hLR hLA hRB] at h + exact h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointFiniteSourceDecomposition.lean b/LeanPool/VacuumBellSeparation/FreeField/JointFiniteSourceDecomposition.lean new file mode 100644 index 0000000000..ba27c5aab4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointFiniteSourceDecomposition.lean @@ -0,0 +1,108 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointDifferenceCovariance +public import LeanPool.VacuumBellSeparation.FreeField.SourceInclusion +public import Mathlib.LinearAlgebra.Finsupp.VectorSpace + +/-! # The actual regional decomposition of each original finite source -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian Matrix +open scoped InnerProductSpace + +variable {μ s : ℝ} (hμ : 0 < μ) + (S : Submodule ℝ TimeZeroSource) [FiniteDimensional ℝ S] + {ι : Type*} [Fintype ι] [DecidableEq ι] + (b : Module.Basis ι ℝ (FiniteSourceSpace hμ S)) + (L R : Submodule ℝ (ι → ℝ)) (hLR : IsCompl L R) + (hLA : ∀ x ∈ L, finiteSourceCoordinates hμ S b x ∈ + localizedTimeZeroSources (Metric.ball (jointCenterIndex s 0) 1)) + (hRB : ∀ x ∈ R, finiteSourceCoordinates hμ S b x ∈ + localizedTimeZeroSources (Metric.ball (jointCenterIndex s 1) 1)) + +/-- Joint projected source tests. -/ +def jointProjectedSourceTests (i : ι) : Fin 2 → SourceTestSpace hμ (jointSourceRegion s) := + ![sourceTestInclusion hμ Set.subset_union_left (projectedFiniteSourceTest hμ S b L R hLR hLA i), + sourceTestInclusion hμ Set.subset_union_right (projectedFiniteSourceTest hμ S b R L hLR.symm + hRB i)] + +omit [FiniteDimensional ℝ S] in +theorem jointProjectedSourceTests_localized (i : ι) (a : Fin 2) : + (jointProjectedSourceTests hμ S b L R hLR hLA hRB i a).1 ∈ + localizedTimeZeroSources (Metric.ball (jointCenterIndex s a) 1) := by + fin_cases a + · exact hLA _ (Submodule.projection_apply_mem hLR _) + · exact hRB _ (Submodule.projection_apply_mem hLR.symm _) + +omit [FiniteDimensional ℝ S] in +theorem jointProjectedSourceTests_sum + (hSU : S ≤ localizedTimeZeroSources (jointSourceRegion s)) (i : ι) : + (jointProjectedSourceTests hμ S b L R hLR hLA hRB i 0 : SourceHilbert hμ + (jointSourceRegion s)) + + (jointProjectedSourceTests hμ S b L R hLR hLA hRB i 1 : SourceHilbert hμ + (jointSourceRegion s)) = + includedFiniteSourceFamily hμ S b hSU i := by + have hp := DFunLike.congr_fun (Submodule.projection_add_projection_eq_id hLR) (Pi.single i 1) + have hsum : L.projection R hLR (Pi.single i 1) + R.projection L hLR.symm (Pi.single i 1) = + (Pi.single i 1 : ι → ℝ) := by + simpa only [LinearMap.add_apply, LinearMap.id_apply] using hp + have he : (jointProjectedSourceTests hμ S b L R hLR hLA hRB i 0).1 + + (jointProjectedSourceTests hμ S b L R hLR hLA hRB i 1).1 = (b i).1 := by + calc (jointProjectedSourceTests hμ S b L R hLR hLA hRB i 0).1 + + (jointProjectedSourceTests hμ S b L R hLR hLA hRB i 1).1 + = finiteSourceCoordinates hμ S b (L.projection R hLR (Pi.single i 1)) + + finiteSourceCoordinates hμ S b (R.projection L hLR.symm (Pi.single i 1)) := rfl + _ = finiteSourceCoordinates hμ S b (Pi.single i 1) := by rw [← map_add, hsum] + _ = (b i).1 := by + have hb : b.equivFun.symm (Pi.single i 1) = b i := by + apply b.equivFun.injective + rw [LinearEquiv.apply_symm_apply] + funext j + rw [Module.Basis.equivFun_self, Pi.single_apply] + by_cases h : j = i + · subst h + simp + · rw [ite_eq_right h, ite_eq_right (Ne.symm h)] + change (b.equivFun.symm (Pi.single i 1)).1 = (b i).1 + exact congrArg Subtype.val hb + change _ = (finiteSourceTestInclusion hμ S hSU (b i) : SourceHilbert hμ (jointSourceRegion s)) + rw [← UniformSpace.Completion.coe_add] + congr 1 + exact Subtype.ext he + +omit [FiniteDimensional ℝ ↥S] in +theorem jointProjectedSourceTests_diagonal_gram (i j : ι) : + inner ℝ (jointProjectedSourceTests hμ S b L R hLR hLA hRB i 0 : SourceHilbert hμ + (jointSourceRegion s)) + (jointProjectedSourceTests hμ S b L R hLR hLA hRB j 0 : SourceHilbert hμ + (jointSourceRegion s)) + + inner ℝ (jointProjectedSourceTests hμ S b L R hLR hLA hRB i 1 : SourceHilbert hμ + (jointSourceRegion s)) + (jointProjectedSourceTests hμ S b L R hLR hLA hRB j 1 : SourceHilbert hμ + (jointSourceRegion s)) = + labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hμ S b) L R hLR i j := by + rw [← congrFun (congrFun (finiteProductSourceFamily_gram hμ S b L R hLR hLA hRB) i) j] + change _ = inner ℝ (finiteProductSourceFamily hμ S b L R hLR hLA hRB i) + (finiteProductSourceFamily hμ S b L R hLR hLA hRB j) + rw [finiteProductSourceFamily, finiteProductSourceFamily, WithLp.prod_inner_apply] + change _ = inner ℝ (projectedFiniteSourceTest hμ S b L R hLR hLA i : + SourceHilbert hμ (Metric.ball (jointCenterIndex s 0) 1)) + (projectedFiniteSourceTest hμ S b L R hLR hLA j : + SourceHilbert hμ (Metric.ball (jointCenterIndex s 0) 1)) + + inner ℝ (projectedFiniteSourceTest hμ S b R L hLR.symm hRB i : + SourceHilbert hμ (Metric.ball (jointCenterIndex s 1) 1)) + (projectedFiniteSourceTest hμ S b R L hLR.symm hRB j : + SourceHilbert hμ (Metric.ball (jointCenterIndex s 1) 1)) + simp only [sourceHilbert_test_inner_covariance] + rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointFourierSupportBound.lean b/LeanPool/VacuumBellSeparation/FreeField/JointFourierSupportBound.lean new file mode 100644 index 0000000000..fb323399ed --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointFourierSupportBound.lean @@ -0,0 +1,98 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMassShellBound +public import Mathlib.MeasureTheory.Integral.Bochner.Set +public import Mathlib.MeasureTheory.Measure.Lebesgue.VolumeOfBalls + +/-! +# Actual Fourier bounds from the support volume + +The transform is the original exp(-i p.x) integral. The coefficient is +the actual Lebesgue support volume; no unitary normalization is silently +inserted. This supplies the low-frequency absorption in the joint norm. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open MeasureTheory Set Filter +open scoped InnerProductSpace + +theorem spatialFourier_norm_le_support_integral (f : SpatialTestFunction) + (S : Set (EuclideanSpace ℝ (Fin 3))) (hf : Function.support f.1 ⊆ S) + (p : EuclideanSpace ℝ (Fin 3)) : + ‖spatialFourier f p‖ ≤ ∫ x in S, ‖spatialSchwartz f x‖ := by + have hout (x : EuclideanSpace ℝ (Fin 3)) (hx : x ∉ S) : f.1 x = 0 := by + by_contra h + exact hx (hf h) + have heq := setIntegral_eq_integral_of_forall_compl_eq_zero + (s := S) (μ := volume) + (f := fun x => Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ))) * (f.1 x : ℂ)) + (fun x hx => by simp [hout x hx]) + rw [spatialFourier, ← heq] + apply (norm_integral_le_integral_norm _).trans_eq + apply integral_congr_ae + exact Eventually.of_forall fun x => by + simp [Complex.norm_exp, spatialSchwartz_apply] + +/-- Cauchy-Schwarz on the actual finite support set. -/ +theorem spatialFourier_norm_sq_le_support_volume (f : SpatialTestFunction) + (S : Set (EuclideanSpace ℝ (Fin 3))) (hS : volume S < ⊤) + (hf : Function.support f.1 ⊆ S) (p : EuclideanSpace ℝ (Fin 3)) : + ‖spatialFourier f p‖ ^ 2 ≤ (volume S).toReal * ∫ x, (f.1 x) ^ 2 := by + let : IsFiniteMeasure (volume.restrict S) := ⟨by simpa using hS⟩ + have hf2 : MemLp (spatialSchwartz f) (ENNReal.ofReal 2) (volume.restrict S) := by + simpa using ((spatialSchwartz f).memLp 2).restrict S + have h12 : MemLp (fun _ : EuclideanSpace ℝ (Fin 3) => (1 : ℂ)) + (ENNReal.ofReal 2) (volume.restrict S) := memLp_const 1 + have hcs := integral_mul_norm_le_Lp_mul_Lq Real.HolderConjugate.two_two hf2 h12 + have hout (x : EuclideanSpace ℝ (Fin 3)) (hx : x ∉ S) : f.1 x = 0 := by + by_contra h + exact hx (hf h) + have hsquare : (∫ x in S, (f.1 x) ^ 2) = ∫ x, (f.1 x) ^ 2 := + setIntegral_eq_integral_of_forall_compl_eq_zero (fun x hx => by simp [hout x hx]) + have hcs' : (∫ x in S, ‖spatialSchwartz f x‖) ≤ + Real.sqrt (∫ x, (f.1 x) ^ 2) * Real.sqrt (volume S).toReal := by + simpa only [norm_one, mul_one, Real.rpow_two, Real.one_rpow, one_pow, integral_const, + smul_eq_mul, mul_one, measureReal_def, Measure.restrict_apply_univ, + spatialSchwartz_apply, Complex.norm_real, Real.norm_eq_abs, sq_abs, + hsquare, ← Real.sqrt_eq_rpow] using hcs + have hnorm := (spatialFourier_norm_le_support_integral f S hf p).trans hcs' + have hsq := pow_le_pow_left₀ (norm_nonneg _) hnorm 2 + rw [mul_pow, Real.sq_sqrt (integral_nonneg (fun _ => sq_nonneg _)), + Real.sq_sqrt ENNReal.toReal_nonneg] at hsq + simpa only [mul_comm] using hsq + +/-- Integrating a uniform actual Fourier bound over the unit frequency ball. -/ +theorem spatialFourier_low_frequency_le_support_volume (f : SpatialTestFunction) + (S : Set (EuclideanSpace ℝ (Fin 3))) (hS : volume S < ⊤) + (hf : Function.support f.1 ⊆ S) : + (∫ p in Metric.ball (0 : EuclideanSpace ℝ (Fin 3)) 1, ‖spatialFourier f p‖ ^ 2) ≤ + ((4 * Real.pi / 3) * (volume S).toReal) * ∫ x, (f.1 x) ^ 2 := by + let C := (volume S).toReal * ∫ x, (f.1 x) ^ 2 + let B := Metric.ball (0 : EuclideanSpace ℝ (Fin 3)) 1 + let : IsFiniteMeasure (volume.restrict B) := ⟨by + simpa only [Measure.restrict_apply_univ] using (measure_ball_lt_top (μ := volume) (x := + (0 : EuclideanSpace ℝ (Fin 3))) (r := 1))⟩ + have h : (∫ p in B, ‖spatialFourier f p‖ ^ 2) ≤ ∫ _ in B, C := + integral_mono_ae (integrable_spatialFourier_norm_sq f).integrableOn + (integrable_const C) + (Eventually.of_forall (spatialFourier_norm_sq_le_support_volume f S hS hf)) + calc + _ ≤ ∫ _ in B, C := h + _ = _ := by + rw [integral_const] + simp only [B, C, smul_eq_mul, measureReal_def, Measure.restrict_apply_univ, + EuclideanSpace.volume_ball_fin_three, + ENNReal.ofReal_one, one_pow, one_mul, + ENNReal.toReal_ofReal (by positivity : 0 ≤ Real.pi * 4 / 3)] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointKernelAnalytic.lean b/LeanPool/VacuumBellSeparation/FreeField/JointKernelAnalytic.lean new file mode 100644 index 0000000000..81ec9cbd5e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointKernelAnalytic.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointNormalizedKernels +public import Mathlib.Analysis.Analytic.Polynomial +public import Mathlib.Analysis.Complex.CauchyIntegral + +/-! +# Actual analytic neighborhoods of the normalized Bessel kernels + +One-variable Cauchy analyticity applies to the Bessel functions and the +principal square root on the right half-plane. Their compositions with +the literal polynomial squared radius give several-variable analyticity. +No general unproved several-variable holomorphy principle is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian Set + +private theorem analyticAt_positive_halfPlane {f : ℂ → ℂ} + (hf : ∀ z : ℂ, 0 < z.re → DifferentiableAt ℂ f z) {z : ℂ} (hz : 0 < z.re) : + AnalyticAt ℂ f z := by + have hd : DifferentiableOn ℂ f {w : ℂ | 0 < w.re} := + fun w hw => (hf w hw).differentiableWithinAt + exact hd.analyticOnNhd (isOpen_lt continuous_const Complex.continuous_re) z hz + +theorem analyticAt_spatialSquaredRadius (s : ℝ) (d : EuclideanSpace ℂ (Fin 3)) : + AnalyticAt ℂ (spatialSquaredRadius s) d := by + unfold spatialSquaredRadius + apply Finset.analyticAt_fun_sum + intro j _ + exact (analyticAt_const.add + ((PiLp.proj (𝕜 := ℂ) 2 (fun _ : Fin 3 => ℂ) j : + EuclideanSpace ℂ (Fin 3) →L[ℂ] ℂ).analyticAt d)).pow 2 + +theorem analyticAt_spatialComplexRadius (s : ℝ) (d : EuclideanSpace ℂ (Fin 3)) + (hd : 0 < (spatialSquaredRadius s d).re) : + AnalyticAt ℂ (spatialComplexRadius s) d := by + exact (analyticAt_positive_halfPlane + (fun _ h => Complex.differentiableAt_sqrt (Or.inl h)) hd).comp + (analyticAt_spatialSquaredRadius s d) + +theorem analyticAt_besselFieldKernel {μ : ℝ} (hμ : 0 < μ) {ρ : ℂ} (hρ : 0 < ρ.re) : + AnalyticAt ℂ (besselFieldKernel μ) ρ := + analyticAt_positive_halfPlane (fun _ h => differentiableAt_besselFieldKernel hμ h) hρ + +theorem analyticAt_besselMomentumKernel {μ : ℝ} (hμ : 0 < μ) {ρ : ℂ} (hρ : 0 < ρ.re) : + AnalyticAt ℂ (besselMomentumKernel μ) ρ := + analyticAt_positive_halfPlane (fun _ h => differentiableAt_besselMomentumKernel hμ h) hρ + +theorem analyticAt_spatialSixPair (z : Fin 6 → ℂ) : AnalyticAt ℂ spatialSixPair z := by + have hl : AnalyticAt ℂ (fun w : Fin 6 → ℂ => fun j : Fin 3 => w (Fin.castAdd 3 j)) z := + AnalyticAt.pi (fun j => (ContinuousLinearMap.proj (Fin.castAdd 3 j) : (Fin 6 + → ℂ) →L[ℂ] ℂ).analyticAt z) + have hr : AnalyticAt ℂ (fun w : Fin 6 → ℂ => fun j : Fin 3 => w (Fin.natAdd 3 j)) z := + AnalyticAt.pi (fun j => (ContinuousLinearMap.proj (Fin.natAdd 3 j) : (Fin 6 + → ℂ) →L[ℂ] ℂ).analyticAt z) + exact ((PiLp.continuousLinearEquiv 2 ℂ (fun _ : Fin 3 => ℂ)).symm.analyticAt _ |>.comp hl).prod + ((PiLp.continuousLinearEquiv 2 ℂ (fun _ : Fin 3 => ℂ)).symm.analyticAt _ |>.comp hr) + +theorem analyticAt_spatialPairFieldKernel {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 ≤ R) + (hsep : 8 * Real.sqrt 3 * R ≤ s) {xy : SpatialComplexPair} + (hxy : xy ∈ spatialClosedPolydisc R) : + AnalyticAt ℂ (spatialPairFieldKernel μ s) xy := by + have hq := spatialSquaredRadius_re_pos hs (show 0 ≤ 2 * Real.sqrt 3 * R by positivity) + (show 4 * (2 * Real.sqrt 3 * R) ≤ s by nlinarith) (xy.2 - xy.1) + (spatial_polydisc_difference_norm_le hR hxy) + have hsub : AnalyticAt ℂ (fun p : SpatialComplexPair => p.2 - p.1) xy := + analyticAt_snd.sub analyticAt_fst + have h := ((analyticAt_besselFieldKernel hμ + (spatialComplexRadius_re_pos_of_squared s _ hq)).comp + (analyticAt_spatialComplexRadius s _ hq)).comp + (f := fun p : SpatialComplexPair => p.2 - p.1) hsub + simpa only [spatialPairFieldKernel, Function.comp_def] using! h + +theorem analyticAt_spatialPairMomentumKernel {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 ≤ R) + (hsep : 8 * Real.sqrt 3 * R ≤ s) {xy : SpatialComplexPair} + (hxy : xy ∈ spatialClosedPolydisc R) : + AnalyticAt ℂ (spatialPairMomentumKernel μ s) xy := by + have hq := spatialSquaredRadius_re_pos hs (show 0 ≤ 2 * Real.sqrt 3 * R by positivity) + (show 4 * (2 * Real.sqrt 3 * R) ≤ s by nlinarith) (xy.2 - xy.1) + (spatial_polydisc_difference_norm_le hR hxy) + have hsub : AnalyticAt ℂ (fun p : SpatialComplexPair => p.2 - p.1) xy := + analyticAt_snd.sub analyticAt_fst + have h := ((analyticAt_besselMomentumKernel hμ + (spatialComplexRadius_re_pos_of_squared s _ hq)).comp + (analyticAt_spatialComplexRadius s _ hq)).comp + (f := fun p : SpatialComplexPair => p.2 - p.1) hsub + simpa only [spatialPairMomentumKernel, Function.comp_def] using! h + +theorem jointNormalizedFieldKernel_analyticAt {μ s : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (z : Fin 6 → ℂ) + (hz : z ∈ coordinateClosedPolydisc 6 (1 / 100)) : + AnalyticAt ℂ (jointNormalizedFieldKernel μ s) z := by + have hp := spatialSixPair_mem_polydisc (joint_scaled_coordinate_mem hs hz) + have ha := (analyticAt_spatialPairFieldKernel hμ hs (by positivity) + (joint_fixed_polydisc_separation hs) hp).comp + (analyticAt_spatialSixPair (fun j => (s : ℂ) * z j)) + exact ha.comp (AnalyticAt.pi (fun j => analyticAt_const.mul + ((ContinuousLinearMap.proj j : (Fin 6 → ℂ) →L[ℂ] ℂ).analyticAt z))) + +theorem jointNormalizedMomentumKernel_analyticAt {μ s : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (z : Fin 6 → ℂ) + (hz : z ∈ coordinateClosedPolydisc 6 (1 / 100)) : + AnalyticAt ℂ (jointNormalizedMomentumKernel μ s) z := by + have hp := spatialSixPair_mem_polydisc (joint_scaled_coordinate_mem hs hz) + have ha := (analyticAt_spatialPairMomentumKernel hμ hs (by positivity) + (joint_fixed_polydisc_separation hs) hp).comp + (analyticAt_spatialSixPair (fun j => (s : ℂ) * z j)) + exact ha.comp (AnalyticAt.pi (fun j => analyticAt_const.mul + ((ContinuousLinearMap.proj j : (Fin 6 → ℂ) →L[ℂ] ℂ).analyticAt z))) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointKernelOperatorLinearity.lean b/LeanPool/VacuumBellSeparation/FreeField/JointKernelOperatorLinearity.lean new file mode 100644 index 0000000000..04cda760ea --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointKernelOperatorLinearity.lean @@ -0,0 +1,63 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelFourPatches +public import LeanPool.VacuumBellSeparation.Gaussian.CompletionOperatorDetermination + +/-! # Kernel subtraction on the original source completion -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open MeasureTheory +open scoped SchwartzMap InnerProductSpace + +theorem jointKernelTestPair_sub_kernel (K L : SchwartzMap JointKernelSpace ℂ) + (f g : SpatialTestFunction) : + jointKernelTestPair (K - L) f g = jointKernelTestPair K f g - jointKernelTestPair L f g := by + unfold jointKernelTestPair + change (∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * (K x - L x)).re = _ + simp only [mul_sub] + rw [integral_sub (integrable_jointKernelTest K f g) (integrable_jointKernelTest L f g), + Complex.sub_re] + +theorem jointFieldKernelOperator_sub {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (K L : SchwartzMap JointKernelSpace ℂ) : + jointFieldKernelOperator hμ U (K - L) = + jointFieldKernelOperator hμ U K - jointFieldKernelOperator hμ U L := by + apply Gaussian.completionOperator_eq_of_test_pairings + intro u v + simp only [sub_apply, inner_sub_right, jointFieldKernelOperator_pairing] + exact jointKernelTestPair_sub_kernel K L u.1.1 v.1.1 + +theorem jointMomentumKernelOperator_sub {μ : ℝ} (hμ : 0 < μ) + (p q : EuclideanSpace ℝ (Fin 3)) (K L : SchwartzMap JointKernelSpace ℂ) : + jointMomentumKernelOperator hμ p q (K - L) = + jointMomentumKernelOperator hμ p q K - jointMomentumKernelOperator hμ p q L := by + apply Gaussian.completionOperator_eq_of_test_pairings + intro u v + simp only [sub_apply, inner_sub_right, jointMomentumKernelOperator_pairing] + exact jointKernelTestPair_sub_kernel K L u.1.2 v.1.2 + +theorem jointFourFieldKernelOperator_sub {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) + (K L : Fin 2 → Fin 2 → SchwartzMap JointKernelSpace ℂ) : + jointFourFieldKernelOperator hμ U (fun i j => K i j - L i j) = + jointFourFieldKernelOperator hμ U K - jointFourFieldKernelOperator hμ U L := by + simp only [jointFourFieldKernelOperator, jointFieldKernelOperator_sub, Finset.sum_sub_distrib] + +theorem jointFourMomentumKernelOperator_sub {μ : ℝ} (hμ : 0 < μ) + (p q : EuclideanSpace ℝ (Fin 3)) + (K L : Fin 2 → Fin 2 → SchwartzMap JointKernelSpace ℂ) : + jointFourMomentumKernelOperator hμ p q (fun i j => K i j - L i j) = + jointFourMomentumKernelOperator hμ p q K - jointFourMomentumKernelOperator hμ p q L := by + simp only [jointFourMomentumKernelOperator, jointMomentumKernelOperator_sub, + Finset.sum_sub_distrib] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointLowFrequency.lean b/LeanPool/VacuumBellSeparation/FreeField/JointLowFrequency.lean new file mode 100644 index 0000000000..d0f8bce291 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointLowFrequency.lean @@ -0,0 +1,111 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointFourierSupportBound +public import LeanPool.VacuumBellSeparation.FreeField.Lorentz +public import Mathlib.Analysis.Real.Pi.Bounds + +/-! +# Uniform low-frequency absorption for a union of two unit balls + +The literal support-volume coefficient is 4/(9π) after division by +(2π)^3. Absorption gives the manuscript's g comparison, including mass +zero, without a separation-dependent constant or a source synthesis inverse. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open MeasureTheory Set Filter + +theorem volume_two_unit_balls_lt_top (a b : EuclideanSpace ℝ (Fin 3)) : + volume (Metric.ball a 1 ∪ Metric.ball b 1) < ⊤ := by + exact (measure_union_le _ _).trans_lt (ENNReal.add_lt_top.mpr ⟨measure_ball_lt_top, + measure_ball_lt_top⟩) + +theorem volume_two_unit_balls_toReal_le (a b : EuclideanSpace ℝ (Fin 3)) : + (volume (Metric.ball a 1 ∪ Metric.ball b 1)).toReal ≤ 8 * Real.pi / 3 := by + have h := ENNReal.toReal_mono + (ENNReal.add_ne_top.mpr ⟨measure_ball_ne_top, measure_ball_ne_top⟩) + (measure_union_le (μ := volume) (Metric.ball a 1) (Metric.ball b 1)) + have hp : 0 ≤ Real.pi * 4 / 3 := by positivity + simpa only [EuclideanSpace.volume_ball_fin_three, ENNReal.ofReal_one, one_pow, + one_mul, ← ENNReal.ofReal_add hp hp, ENNReal.toReal_ofReal + (by positivity : 0 ≤ 8 * Real.pi / 3), + show Real.pi * 4 / 3 + Real.pi * 4 / 3 = 8 * Real.pi / 3 by ring] using h + +theorem joint_spatialFourier_low_frequency (f : SpatialTestFunction) + (a b : EuclideanSpace ℝ (Fin 3)) + (hf : Function.support f.1 ⊆ Metric.ball a 1 ∪ Metric.ball b 1) : + (∫ p in Metric.ball (0 : EuclideanSpace ℝ (Fin 3)) 1, ‖spatialFourier f p‖ ^ 2) ≤ + ((2 * Real.pi) ^ 3 * (4 / (9 * Real.pi))) * ∫ x, (f.1 x) ^ 2 := by + have h := spatialFourier_low_frequency_le_support_volume f _ + (volume_two_unit_balls_lt_top a b) hf + calc + _ ≤ ((4 * Real.pi / 3) * + (volume (Metric.ball a 1 ∪ Metric.ball b 1)).toReal) * ∫ x, (f.1 x) ^ 2 := h + _ ≤ ((4 * Real.pi / 3) * (8 * Real.pi / 3)) * ∫ x, (f.1 x) ^ 2 := by + apply mul_le_mul_of_nonneg_right _ (integral_nonneg (fun _ => sq_nonneg _)) + exact mul_le_mul_of_nonneg_left (volume_two_unit_balls_toReal_le a b) (by positivity) + _ = _ := by congr 1; field_simp; ring + +theorem joint_low_frequency_coefficient_lt_half : 4 / (9 * Real.pi) < (1 / 2 : ℝ) := by + apply (div_lt_iff₀ (by positivity : 0 < 9 * Real.pi)).mpr + nlinarith [Real.pi_gt_three] + +theorem integrable_dispersion_fourier_norm_sq {μ : ℝ} (hμ : 0 ≤ μ) + (f : SpatialTestFunction) : Integrable (fun p => dispersion μ p * ‖spatialFourier f p‖ ^ 2) + := by + have h := (integrable_dispersion_spatialFourier_product hμ f f).norm + convert h using 1 + funext p + rw [norm_mul, norm_mul, Complex.norm_conj, Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (show 0 ≤ dispersion μ p from Real.sqrt_nonneg _)] + ring + +/-- The manuscript g estimate in its original Fourier normalization. -/ +theorem joint_position_L2_le_weighted_fourier {μ : ℝ} (hμ : 0 ≤ μ) + (f : SpatialTestFunction) (a b : EuclideanSpace ℝ (Fin 3)) + (hf : Function.support f.1 ⊆ Metric.ball a 1 ∪ Metric.ball b 1) : + (∫ x, (f.1 x) ^ 2) ≤ + (2 / (2 * Real.pi) ^ 3) * ∫ p, dispersion μ p * ‖spatialFourier f p‖ ^ 2 := by + let B := Metric.ball (0 : EuclideanSpace ℝ (Fin 3)) 1 + have hw := integrable_dispersion_fourier_norm_sq hμ f + have hh : (∫ p in Bᶜ, ‖spatialFourier f p‖ ^ 2) ≤ + ∫ p, dispersion μ p * ‖spatialFourier f p‖ ^ 2 := by + apply le_trans (b := ∫ p in Bᶜ, dispersion μ p * ‖spatialFourier f p‖ ^ 2) + · apply integral_mono_ae (integrable_spatialFourier_norm_sq f).integrableOn hw.integrableOn + filter_upwards [ae_restrict_mem (s := Bᶜ) Metric.isOpen_ball.measurableSet.compl] with p hp + have hp1 : 1 ≤ ‖p‖ := by simpa only [B, Set.mem_compl_iff, Metric.mem_ball, + dist_zero_right, not_lt] using hp + have hd : 1 ≤ dispersion μ p := hp1.trans (norm_le_dispersion μ p) + nlinarith [sq_nonneg ‖spatialFourier f p‖] + · exact setIntegral_le_integral hw (Eventually.of_forall (fun p => + mul_nonneg (Real.sqrt_nonneg _) (sq_nonneg _))) + have hl := joint_spatialFourier_low_frequency f a b hf + have hlhalf : (∫ p in B, ‖spatialFourier f p‖ ^ 2) ≤ + ((2 * Real.pi) ^ 3 / 2) * ∫ x, (f.1 x) ^ 2 := by + apply hl.trans + have h := mul_le_mul_of_nonneg_left joint_low_frequency_coefficient_lt_half.le + (show 0 ≤ (2 * Real.pi) ^ 3 by positivity) + exact mul_le_mul_of_nonneg_right (by nlinarith) (integral_nonneg (fun _ => sq_nonneg _)) + have hsplit := integral_add_compl (s := B) Metric.isOpen_ball.measurableSet + (integrable_spatialFourier_norm_sq f) + rw [integral_spatialFourier_norm_sq] at hsplit + have hmain : (2 * Real.pi) ^ 3 * (∫ x, (f.1 x) ^ 2) ≤ + 2 * ∫ p, dispersion μ p * ‖spatialFourier f p‖ ^ 2 := by linarith + have hdiv : (∫ x, (f.1 x) ^ 2) ≤ + (2 * ∫ p, dispersion μ p * ‖spatialFourier f p‖ ^ 2) / (2 * Real.pi) ^ 3 := + (le_div_iff₀ (show 0 < (2 * Real.pi) ^ 3 by positivity)).mpr + (by simpa only [mul_comm] using hmain) + calc + _ ≤ _ := hdiv + _ = _ := by ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointMidpointRegionMoments.lean b/LeanPool/VacuumBellSeparation/FreeField/JointMidpointRegionMoments.lean new file mode 100644 index 0000000000..41e64469be --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointMidpointRegionMoments.lean @@ -0,0 +1,139 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointNormalizedMomentVectors +public import LeanPool.VacuumBellSeparation.FreeField.JointRegionMomentFamily + +/-! +# Actual weighted moments in the midpoint ball of the joint region + +The containing radius is s/2+1. After division by s, the growth base is +independent of the separation. The vectors belong to the original joint +source completion and represent the literal normalized test moments. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification Set Metric + +theorem spatialAxisDisplacement_zero_eq_single (t : ℝ) : + spatialAxisDisplacement t 0 = PiLp.single 2 (0 : Fin 3) t := by + ext j + simp [spatialAxisDisplacement, PiLp.single_apply] + +theorem norm_spatialAxisDisplacement_zero (t : ℝ) : + ‖spatialAxisDisplacement t 0‖ = |t| := by + rw [spatialAxisDisplacement_zero_eq_single, PiLp.norm_single, Real.norm_eq_abs] + +/-- Joint midpoint moment radius given by `s / 2 + 1`. -/ +def jointMidpointMomentRadius (s : ℝ) : ℝ := s / 2 + 1 + +theorem jointMidpointMomentRadius_pos {s : ℝ} (hs : 2 ≤ s) : + 0 < jointMidpointMomentRadius s := by unfold jointMidpointMomentRadius; linarith + +theorem jointMidpointMomentRadius_le {s : ℝ} (hs : 2 ≤ s) : + jointMidpointMomentRadius s ≤ s := by unfold jointMidpointMomentRadius; linarith + +theorem jointSourceRegion_subset_midpoint_ball {s : ℝ} (hs : 2 ≤ s) : + jointSourceRegion s ⊆ ball (spatialAxisDisplacement (s / 2) 0) + (jointMidpointMomentRadius s) := by + have hhalf : 0 ≤ s / 2 := by linarith + have hc : ‖spatialAxisDisplacement (s / 2) 0‖ = s / 2 := by + rw [norm_spatialAxisDisplacement_zero, abs_of_nonneg hhalf] + have hd : spatialAxisDisplacement s 0 - spatialAxisDisplacement (s / 2) 0 = + spatialAxisDisplacement (s / 2) 0 := by + ext j + simp only [PiLp.sub_apply, spatialAxisDisplacement, PiLp.coe_symm_continuousLinearEquiv, + PiLp.zero_apply, add_zero] + split_ifs <;> ring + intro x hx + simp only [jointSourceRegion, jointCenterIndex_zero, jointCenterIndex_one, + mem_union, mem_ball] at hx + rw [mem_ball] + rcases hx with hx | hx + · have ht := dist_triangle x 0 (spatialAxisDisplacement (s / 2) 0) + rw [dist_zero_left, hc] at ht + unfold jointMidpointMomentRadius + linarith + · have ht := dist_triangle x (spatialAxisDisplacement s 0) + (spatialAxisDisplacement (s / 2) 0) + rw [dist_eq_norm (spatialAxisDisplacement s 0), hd, hc] at ht + unfold jointMidpointMomentRadius + linarith + +/-- Joint weighted moment degree base obtained from `max`. -/ +def jointWeightedMomentDegreeBase (b : ℝ) : ℝ := max 1 (sourceMomentBase b) + +/-- Joint weighted field scale. -/ +def jointWeightedFieldScale (C b μ s : ℝ) : ℝ := + C * jointMidpointMomentRadius s / (1 + μ * jointMidpointMomentRadius s) * + Real.exp (sourceMomentLambda b * μ * jointMidpointMomentRadius s) + +/-- Joint weighted momentum scale. -/ +def jointWeightedMomentumScale (C b μ s : ℝ) : ℝ := + C * jointMidpointMomentRadius s ^ 2 / (1 + μ * jointMidpointMomentRadius s) ^ 2 * + Real.exp (sourceMomentLambda b * μ * jointMidpointMomentRadius s) + +/-- Field and momentum moments with the midpoint weight, indexed by spatial monomials. -/ +structure JointWeightedMomentFamily {μ : ℝ} (hμ : 0 < μ) (s b : ℝ) where + /-- Weighted moment vectors in the field component of the joint source space. -/ + field : (Fin 3 → ℕ) → ComplexSourceHilbert hμ (jointSourceRegion s) + /-- Weighted moment vectors in the momentum component of the joint source space. -/ + momentum : (Fin 3 → ℕ) → ComplexSourceHilbert hμ (jointSourceRegion s) + field_pairing : ∀ α (x : SourceTestSpace hμ (jointSourceRegion s)), + inner ℂ (ofReal (x : SourceHilbert hμ (jointSourceRegion s))) + ((sourceReserve hμ (jointSourceRegion s) ^ b) (field α)) = + (normalizedCenteredSourceMoment (spatialAxisDisplacement (s / 2) 0) s x.1.1 α : ℂ) + momentum_pairing : ∀ α (x : SourceTestSpace hμ (jointSourceRegion s)), + inner ℂ (ofReal (x : SourceHilbert hμ (jointSourceRegion s))) + ((sourceReserve hμ (jointSourceRegion s) ^ b) (momentum α)) = + (normalizedCenteredSourceMoment (spatialAxisDisplacement (s / 2) 0) s x.1.2 α : ℂ) + +/-- Existence and degree growth are consequences of the actual modular +moment estimates, with constants fixed before the mass and separation. -/ +theorem exists_jointWeightedMomentFamily {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + ∃ C : ℝ, 0 < C ∧ ∀ (μ : ℝ) (hμ : 0 < μ) (s : ℝ), 2 ≤ s → + ∃ v : JointWeightedMomentFamily hμ s b, + (∀ α, ‖v.field α‖ ≤ jointWeightedFieldScale C b μ s * + jointWeightedMomentDegreeBase b ^ (∑ j, α j)) ∧ + (∀ α, ‖v.momentum α‖ ≤ jointWeightedMomentumScale C b μ s * + jointWeightedMomentDegreeBase b ^ (∑ j, α j)) := by + classical + obtain ⟨C, hC, h⟩ := exists_normalized_centered_weighted_source_moments hb hb1 + refine ⟨C, hC, ?_⟩ + intro μ hμ s hs + have hs₀ : 0 < s := by linarith + have hT := jointMidpointMomentRadius_pos hs + have hB : 0 ≤ sourceMomentBase b := by + unfold sourceMomentBase + exact mul_nonneg (by norm_num) (sourceMomentLambda_pos hb hb1).le + have hbase : sourceMomentBase b * jointMidpointMomentRadius s / s ≤ + jointWeightedMomentDegreeBase b := by + apply le_trans _ (le_max_right _ _) + apply (div_le_iff₀ hs₀).mpr + exact mul_le_mul_of_nonneg_left (jointMidpointMomentRadius_le hs) hB + choose u v hu hv huf hvf using h μ hμ (jointMidpointMomentRadius s) s hT hs₀ + (spatialAxisDisplacement (s / 2) 0) (jointSourceRegion s) + (jointSourceRegion_subset_midpoint_ball hs) + let w : JointWeightedMomentFamily hμ s b := ⟨u, v, huf, hvf⟩ + refine ⟨w, ?_, ?_⟩ + · intro α + apply (hu α).trans + change jointWeightedFieldScale C b μ s * _ ≤ _ + apply mul_le_mul_of_nonneg_left _ (by unfold jointWeightedFieldScale; positivity) + exact pow_le_pow_left₀ (by positivity) hbase _ + · intro α + apply (hv α).trans + change jointWeightedMomentumScale C b μ s * _ ≤ _ + apply mul_le_mul_of_nonneg_left _ (by unfold jointWeightedMomentumScale; positivity) + exact pow_le_pow_left₀ (by positivity) hbase _ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointNormalizedKernels.lean b/LeanPool/VacuumBellSeparation/FreeField/JointNormalizedKernels.lean new file mode 100644 index 0000000000..147404f7b9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointNormalizedKernels.lean @@ -0,0 +1,135 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialKernelCoefficients +public import LeanPool.VacuumBellSeparation.Polynomial.SelectorTaylorBounds + +/-! +# Literal normalized cross kernels for the joint-region construction + +The normalized variables are u=x/s and w=y/s-e₀. Scaling them by s +feeds the already established physical covariance kernels. The fixed +Cauchy radius is 1/100; mass and separation remain in the original kernels. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian + +/-- Normalized cross kernel in the two triples (u,w). -/ +def jointNormalizedFieldKernel (μ s : ℝ) (z : Fin 6 → ℂ) : ℂ := + spatialSixFieldKernel μ s (fun j => (s : ℂ) * z j) + +/-- Joint normalized momentum kernel given by `spatialSixMomentumKernel μ s (fun j => (s : ℂ) * z +j)`. -/ +def jointNormalizedMomentumKernel (μ s : ℝ) (z : Fin 6 → ℂ) : ℂ := + spatialSixMomentumKernel μ s (fun j => (s : ℂ) * z j) + +/-- Joint field envelope given by `(6 / s ^ 2) * Real.sqrt (1 + μ * s) * Real.exp (-μ * s / 2)`. -/ +def jointFieldEnvelope (μ s : ℝ) : ℝ := + (6 / s ^ 2) * Real.sqrt (1 + μ * s) * Real.exp (-μ * s / 2) + +/-- Joint momentum envelope given by `(128 / s ^ 4) * (1 + μ * s) * Real.sqrt (1 + μ * s) * +Real.exp (-μ * s / 2)`. -/ +def jointMomentumEnvelope (μ s : ℝ) : ℝ := + (128 / s ^ 4) * (1 + μ * s) * Real.sqrt (1 + μ * s) * Real.exp (-μ * s / 2) + +theorem joint_fixed_polydisc_separation {s : ℝ} (hs : 0 < s) : + 8 * Real.sqrt 3 * (s / 100) ≤ s := by + have h3 : Real.sqrt 3 ≤ 2 := by + nlinarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 3), Real.sqrt_nonneg 3] + nlinarith + +theorem joint_scaled_coordinate_mem {s : ℝ} (hs : 0 < s) + {z : Fin 6 → ℂ} (hz : z ∈ coordinateClosedPolydisc 6 (1 / 100)) : + (fun j => (s : ℂ) * z j) ∈ coordinateClosedPolydisc 6 (s / 100) := by + intro j + rw [norm_mul, Complex.norm_real, Real.norm_of_nonneg hs.le] + have h := mul_le_mul_of_nonneg_left (hz j) hs.le + nlinarith + +theorem joint_kernel_exponential_le {μ s : ℝ} (hμ : 0 < μ) (hs : 0 < s) : + Real.exp (-μ * s + 4 * μ * Real.sqrt 3 * (s / 100)) ≤ + Real.exp (-μ * s / 2) := by + apply Real.exp_le_exp.mpr + have h3 : Real.sqrt 3 ≤ 2 := by + nlinarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 3), Real.sqrt_nonneg 3] + have h := mul_le_mul_of_nonneg_left h3 (show 0 ≤ μ * s by positivity) + nlinarith + +theorem jointNormalizedFieldKernel_differentiable {μ s : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (z : Fin 6 → ℂ) + (hz : z ∈ coordinateClosedPolydisc 6 (1 / 100)) : + DifferentiableAt ℂ (jointNormalizedFieldKernel μ s) z := by + exact (spatialSixFieldKernel_differentiable hμ hs (by positivity) + (joint_fixed_polydisc_separation hs) _ (joint_scaled_coordinate_mem hs hz)).comp z + (by fun_prop) + +theorem jointNormalizedMomentumKernel_differentiable {μ s : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (z : Fin 6 → ℂ) + (hz : z ∈ coordinateClosedPolydisc 6 (1 / 100)) : + DifferentiableAt ℂ (jointNormalizedMomentumKernel μ s) z := by + exact (spatialSixMomentumKernel_differentiable hμ hs (by positivity) + (joint_fixed_polydisc_separation hs) _ (joint_scaled_coordinate_mem hs hz)).comp z + (by fun_prop) + +theorem jointNormalizedFieldKernel_norm_le {μ s : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (z : Fin 6 → ℂ) + (hz : z ∈ coordinateClosedPolydisc 6 (1 / 100)) : + ‖jointNormalizedFieldKernel μ s z‖ ≤ jointFieldEnvelope μ s := by + apply (spatialSixFieldKernel_norm_le hμ hs (by positivity) + (joint_fixed_polydisc_separation hs) _ (joint_scaled_coordinate_mem hs hz)).trans + exact mul_le_mul_of_nonneg_left (joint_kernel_exponential_le hμ hs) (by positivity) + +theorem jointNormalizedMomentumKernel_norm_le {μ s : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (z : Fin 6 → ℂ) + (hz : z ∈ coordinateClosedPolydisc 6 (1 / 100)) : + ‖jointNormalizedMomentumKernel μ s z‖ ≤ jointMomentumEnvelope μ s := by + apply (spatialSixMomentumKernel_norm_le hμ hs (by positivity) + (joint_fixed_polydisc_separation hs) _ (joint_scaled_coordinate_mem hs hz)).trans + exact mul_le_mul_of_nonneg_left (joint_kernel_exponential_le hμ hs) (by positivity) + +/-- The literal oriented field polynomial; z contains physical offsets divided by s. -/ +def jointOrientedFieldPolynomial (μ s : ℝ) (n : ℕ) (z : Fin 6 → ℂ) : ℂ := + selectedCauchyTaylor n (1 / 100) (jointNormalizedFieldKernel μ s) (z 0) (-z 3) z + +/-- Joint oriented momentum polynomial defined as `selectedCauchyTaylor n (1 / 100) +(jointNormalizedMomentumKernel μ s) (z 0) (-z 3) z`. -/ +def jointOrientedMomentumPolynomial (μ s : ℝ) (n : ℕ) (z : Fin 6 → ℂ) : ℂ := + selectedCauchyTaylor n (1 / 100) (jointNormalizedMomentumKernel μ s) (z 0) (-z 3) z + +theorem jointOrientedFieldPolynomial_cross_error {μ s δ : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hδ : 0 ≤ δ) (hδsmall : δ ≤ 1 / 200) + (n : ℕ) (z : Fin 6 → ℂ) (hz : ∀ j, ‖z j‖ ≤ δ) : + ‖jointNormalizedFieldKernel μ s z - jointOrientedFieldPolynomial μ s n z‖ ≤ + jointFieldEnvelope μ s * (576 * (200 * δ) ^ n + 8 * (8 * δ) ^ (2 * n)) := by + have h := selectedCauchyTaylor_desired_error (n := n) (R := 1 / 100) + (by norm_num) hδ (by linarith) (by linarith) + (show 0 ≤ jointFieldEnvelope μ s by unfold jointFieldEnvelope; positivity) + (jointNormalizedFieldKernel μ s) (jointNormalizedFieldKernel_differentiable hμ hs) + (jointNormalizedFieldKernel_norm_le hμ hs) (z 0) (-z 3) z (hz 0) + (by simpa only [norm_neg] using hz 3) hz + simpa only [jointOrientedFieldPolynomial, show 2 * (δ / (1 / 100 : ℝ)) = 200 * δ by ring] using h + +theorem jointOrientedMomentumPolynomial_cross_error {μ s δ : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hδ : 0 ≤ δ) (hδsmall : δ ≤ 1 / 200) + (n : ℕ) (z : Fin 6 → ℂ) (hz : ∀ j, ‖z j‖ ≤ δ) : + ‖jointNormalizedMomentumKernel μ s z - jointOrientedMomentumPolynomial μ s n z‖ ≤ + jointMomentumEnvelope μ s * (576 * (200 * δ) ^ n + 8 * (8 * δ) ^ (2 * n)) := by + have h := selectedCauchyTaylor_desired_error (n := n) (R := 1 / 100) + (by norm_num) hδ (by linarith) (by linarith) + (show 0 ≤ jointMomentumEnvelope μ s by unfold jointMomentumEnvelope; positivity) + (jointNormalizedMomentumKernel μ s) (jointNormalizedMomentumKernel_differentiable hμ hs) + (jointNormalizedMomentumKernel_norm_le hμ hs) (z 0) (-z 3) z (hz 0) + (by simpa only [norm_neg] using hz 3) hz + simpa only [jointOrientedMomentumPolynomial, show 2 * (δ / + (1 / 100 : ℝ)) = 200 * δ by ring] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointNormalizedMomentVectors.lean b/LeanPool/VacuumBellSeparation/FreeField/JointNormalizedMomentVectors.lean new file mode 100644 index 0000000000..9a22e13c43 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointNormalizedMomentVectors.lean @@ -0,0 +1,71 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CenteredWeightedSourceMoments + +/-! +# Actual normalized centered moments with reserve weights + +The factors s to minus the degree multiply the original Riesz vectors. +The source region, reserve, and centered test moments are unchanged. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification +open scoped InnerProductSpace + +/-- Normalized centered source moment given by `s⁻¹ ^ (∑ j, α j) * centeredSpatialTestMoment a f +α`. -/ +def normalizedCenteredSourceMoment (a : EuclideanSpace ℝ (Fin 3)) (s : ℝ) + (f : SpatialTestFunction) (α : Fin 3 → ℕ) : ℝ := + s⁻¹ ^ (∑ j, α j) * centeredSpatialTestMoment a f α + +theorem exists_normalized_centered_weighted_source_moments {b : ℝ} + (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + ∃ C : ℝ, 0 < C ∧ + ∀ (μ : ℝ) (hμ : 0 < μ) (T s : ℝ) (_ : 0 < T) (_ : 0 < s) + (a : EuclideanSpace ℝ (Fin 3)) (U : Set (EuclideanSpace ℝ (Fin 3))), + U ⊆ Metric.ball a T → ∀ α : Fin 3 → ℕ, + ∃ u v : ComplexSourceHilbert hμ U, + ‖u‖ ≤ C * T / (1 + μ * T) * Real.exp (sourceMomentLambda b * μ * T) * + (sourceMomentBase b * T / s) ^ (∑ j, α j) ∧ + ‖v‖ ≤ C * T ^ 2 / (1 + μ * T) ^ 2 * Real.exp (sourceMomentLambda b * μ * T) * + (sourceMomentBase b * T / s) ^ (∑ j, α j) ∧ + (∀ x : SourceTestSpace hμ U, + inner ℂ (ofReal (x : SourceHilbert hμ U)) ((sourceReserve hμ U ^ b) u) = + (normalizedCenteredSourceMoment a s x.1.1 α : ℂ)) ∧ + (∀ x : SourceTestSpace hμ U, + inner ℂ (ofReal (x : SourceHilbert hμ U)) ((sourceReserve hμ U ^ b) v) = + (normalizedCenteredSourceMoment a s x.1.2 α : ℂ)) := by + obtain ⟨C, hC, h⟩ := exists_centered_weightedSource_moment_vectors hb hb1 + refine ⟨C, hC, ?_⟩ + intro μ hμ T s hT hs a U hU α + obtain ⟨u, v, hu, hv, hueq, hveq⟩ := h μ hμ T hT a U hU α + let c : ℝ := s⁻¹ ^ (∑ j, α j) + have hc : 0 ≤ c := by dsimp only [c]; positivity + have hn (A B : ℝ) : c * (A * B ^ (∑ j, α j)) = A * (B / s) ^ (∑ j, α j) := by + dsimp only [c] + rw [div_eq_mul_inv, mul_pow] + ring + refine ⟨c • u, c • v, ?_, ?_, ?_, ?_⟩ + · rw [norm_smul, Real.norm_of_nonneg hc] + exact (mul_le_mul_of_nonneg_left hu hc).trans_eq (hn _ _) + · rw [norm_smul, Real.norm_of_nonneg hc] + exact (mul_le_mul_of_nonneg_left hv hc).trans_eq (hn _ _) + · intro x + rw [LinearMapClass.map_smul_of_tower, inner_smul_right_eq_smul, hueq] + simp only [normalizedCenteredSourceMoment, c, Complex.real_smul, Complex.ofReal_mul] + · intro x + rw [LinearMapClass.map_smul_of_tower, inner_smul_right_eq_smul, hveq] + simp only [normalizedCenteredSourceMoment, c, Complex.real_smul, Complex.ofReal_mul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPhysicalCoordinates.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPhysicalCoordinates.lean new file mode 100644 index 0000000000..c5352b17bf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPhysicalCoordinates.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.JointComponentGeometry +public import Mathlib.Analysis.Analytic.Polynomial + +/-! # Literal physical centres and midpoint normalization of all six coordinates -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Metric + +/-- Joint physical midpoint shift defined as `if j = 0 ∨ j = 3 then 1 / 2 else 0`. -/ +def jointPhysicalMidpointShift (j : Fin 6) : ℂ := + if j = 0 ∨ j = 3 then 1 / 2 else 0 + +/-- Joint physical midpoint defined as `w j / (s : ℂ) - jointPhysicalMidpointShift j`. -/ +def jointPhysicalMidpoint (s : ℝ) (w : Fin 6 → ℂ) (j : Fin 6) : ℂ := + w j / (s : ℂ) - jointPhysicalMidpointShift j + +/-- The original spatial center corresponding to a normalized joint component. -/ +def jointPhysicalComponentCenter (a b : Bool) (s : ℝ) (j : Fin 6) : ℂ := + (s : ℂ) * (jointComponentCenter a b j + jointPhysicalMidpointShift j) + +/-- These are exactly the original centres zero and s times the first basis vector. -/ +theorem jointPhysicalComponentCenter_eq (a b : Bool) (s : ℝ) (j : Fin 6) : + jointPhysicalComponentCenter a b s j = + if j = 0 then (if a then (s : ℂ) else 0) + else if j = 3 then (if b then (s : ℂ) else 0) else 0 := by + fin_cases j <;> cases a <;> cases b <;> + simp [jointPhysicalComponentCenter, jointComponentCenter, jointPhysicalMidpointShift] <;> ring + +/-- In physical joint component. -/ +def InPhysicalJointComponent (a b : Bool) (s r : ℝ) (w : Fin 6 → ℂ) : Prop := + ∀ j, ‖w j - jointPhysicalComponentCenter a b s j‖ ≤ r + +theorem physicalMidpoint_sub_center {s : ℝ} (hs : 0 < s) + (a b : Bool) (w : Fin 6 → ℂ) (j : Fin 6) : + jointPhysicalMidpoint s w j - jointComponentCenter a b j = + (w j - jointPhysicalComponentCenter a b s j) / (s : ℂ) := by + have hs' : (s : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hs.ne' + unfold jointPhysicalMidpoint jointPhysicalComponentCenter + field_simp; ring + +theorem InPhysicalJointComponent.normalize {a b : Bool} {s r : ℝ} (hs : 0 < s) + {w : Fin 6 → ℂ} (hw : InPhysicalJointComponent a b s r w) : + InJointComponent a b (r / s) (jointPhysicalMidpoint s w) := by + intro j + rw [physicalMidpoint_sub_center hs, norm_div, Complex.norm_real, Real.norm_of_nonneg hs.le] + exact div_le_div_of_nonneg_right (hw j) hs.le + +theorem InPhysicalJointComponent.ball_one {a b : Bool} {s : ℝ} {w : Fin 6 → ℂ} + (hw : InPhysicalJointComponent a b s 2 w) {y : Fin 6 → ℂ} (hy : y ∈ ball w 1) : + InPhysicalJointComponent a b s 3 y := by + have hn : ‖y - w‖ < 1 := by simpa only [mem_ball, dist_eq_norm] using hy + intro j + have hcoord : ‖y j - w j‖ ≤ ‖y - w‖ := norm_le_pi_norm (y - w) j + calc + _ = ‖(y j - w j) + (w j - jointPhysicalComponentCenter a b s j)‖ := by congr 1; ring + _ ≤ ‖y j - w j‖ + ‖w j - jointPhysicalComponentCenter a b s j‖ := norm_add_le _ _ + _ ≤ 3 := by linarith [hw j] + +theorem jointPhysicalMidpoint_analyticAt (s : ℝ) (w : Fin 6 → ℂ) : + AnalyticAt ℂ (jointPhysicalMidpoint s) w := by + apply AnalyticAt.pi + intro j + simpa only [jointPhysicalMidpoint, div_eq_mul_inv, Pi.mul_def, Pi.sub_def, + ContinuousLinearMap.proj_apply] using + ((((ContinuousLinearMap.proj j : (Fin 6 → ℂ) →L[ℂ] ℂ).analyticAt w).mul + analyticAt_const).sub analyticAt_const) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPhysicalKernelRestriction.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPhysicalKernelRestriction.lean new file mode 100644 index 0000000000..554cf5a0b4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPhysicalKernelRestriction.lean @@ -0,0 +1,121 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialSelfAdjoint + +/-! +# The normalized analytic kernels are the original physical kernels + +All midpoint shifts and the apparent separation in the complex radius +cancel literally. This identifies the four component kernels with the +negative original cross covariance kernels and zero on the diagonal. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian + +theorem jointNormalized_coordinate_cancel {s : ℝ} (hs : s ≠ 0) + (z : Fin 6 → ℂ) (j : Fin 6) : + (s : ℂ) * (jointPhysicalMidpoint s z j + jointMidpointShift j) = + z j - if j = 3 then (s : ℂ) else 0 := by + have hs' : (s : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hs + fin_cases j <;> simp [jointPhysicalMidpoint, jointPhysicalMidpointShift, jointMidpointShift] <;> + field_simp + ring + +theorem jointNormalized_spatialSixPair {s : ℝ} (hs : s ≠ 0) (x : JointKernelSpace) : + spatialSixPair (fun j => (s : ℂ) * + (jointPhysicalMidpoint s (jointComplexCoordinates x) j + jointMidpointShift j)) = + (spatialComplexOfReal x.fst, spatialComplexOfReal + (x.snd - spatialAxisDisplacement s 0)) := by + apply Prod.ext + · ext j + change (s : ℂ) * (jointPhysicalMidpoint s (jointComplexCoordinates x) (Fin.castAdd 3 j) + + jointMidpointShift (Fin.castAdd 3 j)) = (x.fst j : ℂ) + rw [jointNormalized_coordinate_cancel hs, jointComplexCoordinates_left] + fin_cases j <;> simp + · ext j + change (s : ℂ) * (jointPhysicalMidpoint s (jointComplexCoordinates x) (Fin.natAdd 3 j) + + jointMidpointShift (Fin.natAdd 3 j)) = ((x.snd - spatialAxisDisplacement s 0) j : ℂ) + rw [jointNormalized_coordinate_cancel hs, jointComplexCoordinates_right] + fin_cases j <;> simp [spatialAxisDisplacement, PiLp.sub_apply] + +theorem spatialAxisDisplacement_cancel (s : ℝ) (x y : EuclideanSpace ℝ (Fin 3)) : + spatialAxisDisplacement s ((y - spatialAxisDisplacement s 0) - x) = y - x := by + ext j + change (if j = 0 then s else 0) + ((y j - ((if j = 0 then s else 0) + 0)) - x j) = y j - x j + ring + +theorem jointNormalizedFieldKernel_physical {s : ℝ} (hs : s ≠ 0) (μ : ℝ) (x : JointKernelSpace) : + jointNormalizedFieldKernel μ s + (fun j => jointPhysicalMidpoint s (jointComplexCoordinates x) j + jointMidpointShift j) = + (spatialFieldBesselKernel μ (x.snd - x.fst) : ℂ) := by + unfold jointNormalizedFieldKernel spatialSixFieldKernel + rw [jointNormalized_spatialSixPair hs, spatialPairFieldKernel_ofReal, + spatialAxisDisplacement_cancel] + +theorem jointNormalizedMomentumKernel_physical {s : ℝ} (hs : s ≠ 0) (μ : ℝ) (x : JointKernelSpace) : + jointNormalizedMomentumKernel μ s + (fun j => jointPhysicalMidpoint s (jointComplexCoordinates x) j + jointMidpointShift j) = + (spatialMomentumBesselKernel μ (x.snd - x.fst) : ℂ) := by + unfold jointNormalizedMomentumKernel spatialSixMomentumKernel + rw [jointNormalized_spatialSixPair hs, spatialPairMomentumKernel_ofReal, + spatialAxisDisplacement_cancel] + +theorem spatialFieldBesselKernel_sub_comm (μ : ℝ) (x y : EuclideanSpace ℝ (Fin 3)) : + spatialFieldBesselKernel μ (x - y) = spatialFieldBesselKernel μ (y - x) := by + simp only [spatialFieldBesselKernel, norm_sub_rev x y] + +theorem spatialMomentumBesselKernel_sub_comm (μ : ℝ) (x y : EuclideanSpace ℝ (Fin 3)) : + spatialMomentumBesselKernel μ (x - y) = spatialMomentumBesselKernel μ (y - x) := by + simp only [spatialMomentumBesselKernel, norm_sub_rev x y] + +theorem jointComponentFieldKernel_physical {s : ℝ} (hs : s ≠ 0) (μ : ℝ) + (a b : Bool) (x : JointKernelSpace) : + jointComponentKernel (jointNormalizedFieldKernel μ s) a b + (jointPhysicalMidpoint s (jointComplexCoordinates x)) = + if a = b then 0 else -(spatialFieldBesselKernel μ (x.snd - x.fst) : ℂ) := by + have ht := jointNormalizedFieldKernel_physical hs μ (jointKernelSwap x) + rw [jointPhysicalMidpoint_swap] at ht + change jointNormalizedFieldKernel μ s + (fun j => (jointPhysicalMidpoint s (jointComplexCoordinates x) ∘ swapSpatialSix) j + + jointMidpointShift j) = + (spatialFieldBesselKernel μ (x.fst - x.snd) : ℂ) at ht + rw [spatialFieldBesselKernel_sub_comm μ x.fst x.snd] at ht + -- The same identity with the composition applied, in the form left by `simp`. + have ht' : jointNormalizedFieldKernel μ s + (fun j => jointPhysicalMidpoint s (jointComplexCoordinates x) (swapSpatialSix j) + + jointMidpointShift j) = (spatialFieldBesselKernel μ (x.snd - x.fst) : ℂ) := ht + cases a <;> cases b <;> + simp [jointComponentKernel, jointOrientedComponentKernel, + jointNormalizedFieldKernel_physical hs, ht'] + +theorem jointComponentMomentumKernel_physical {s : ℝ} (hs : s ≠ 0) (μ : ℝ) + (a b : Bool) (x : JointKernelSpace) : + jointComponentKernel (jointNormalizedMomentumKernel μ s) a b + (jointPhysicalMidpoint s (jointComplexCoordinates x)) = + if a = b then 0 else -(spatialMomentumBesselKernel μ (x.snd - x.fst) : ℂ) := by + have ht := jointNormalizedMomentumKernel_physical hs μ (jointKernelSwap x) + rw [jointPhysicalMidpoint_swap] at ht + change jointNormalizedMomentumKernel μ s + (fun j => (jointPhysicalMidpoint s (jointComplexCoordinates x) ∘ swapSpatialSix) j + + jointMidpointShift j) = + (spatialMomentumBesselKernel μ (x.fst - x.snd) : ℂ) at ht + rw [spatialMomentumBesselKernel_sub_comm μ x.fst x.snd] at ht + -- The same identity with the composition applied, in the form left by `simp`. + have ht' : jointNormalizedMomentumKernel μ s + (fun j => jointPhysicalMidpoint s (jointComplexCoordinates x) (swapSpatialSix j) + + jointMidpointShift j) = (spatialMomentumBesselKernel μ (x.snd - x.fst) : ℂ) := ht + cases a <;> cases b <;> + simp [jointComponentKernel, jointOrientedComponentKernel, + jointNormalizedMomentumKernel_physical hs, ht'] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPhysicalPolynomialError.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPhysicalPolynomialError.lean new file mode 100644 index 0000000000..ad3592fe6b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPhysicalPolynomialError.lean @@ -0,0 +1,99 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPhysicalCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.JointKernelAnalytic +public import LeanPool.VacuumBellSeparation.Polynomial.JointComponentAnalytic +public import LeanPool.VacuumBellSeparation.Polynomial.ComplexBallDerivativeBounds + +/-! +# Physical complex derivative bounds for the actual joint polynomial + +The error is formed from the negative cross kernel on the two cross +components, zero on the two same-region components, and the actual +midpoint polynomial. Physical radius-one neighborhoods give derivative +bounds through order four, uniform in mass after the original envelope. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian MvPolynomial Metric + +/-- Joint physical polynomial error. -/ +def jointPhysicalPolynomialError (F : (Fin 6 → ℂ) → ℂ) (s : ℝ) (n : ℕ) + (a b : Bool) (w : Fin 6 → ℂ) : ℂ := + jointComponentKernel F a b (jointPhysicalMidpoint s w) - + eval (jointPhysicalMidpoint s w) (jointMidpointPolynomial F n) + +theorem jointPhysicalPolynomialError_ball {s M : ℝ} (hs : 600 ≤ s) (hM : 0 ≤ M) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (hbound : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖F z‖ ≤ M) + (n : ℕ) (a b : Bool) (w : Fin 6 → ℂ) (hw : InPhysicalJointComponent a b s 2 w) : + AnalyticOnNhd ℂ (jointPhysicalPolynomialError F s n a b) (ball w 1) ∧ + ∀ y ∈ ball w 1, ‖jointPhysicalPolynomialError F s n a b y‖ ≤ + 1168 * M * (78643200 / s) ^ n := by + have hs₀ : 0 < s := by linarith + have hδ : 0 ≤ 3 / s := by positivity + have hsmall : 3 / s ≤ 1 / 200 := (div_le_iff₀ hs₀).mpr (by linarith) + have hz (y : Fin 6 → ℂ) (hy : y ∈ ball w 1) : + InJointComponent a b (3 / s) (jointPhysicalMidpoint s y) := + (hw.ball_one hy).normalize hs₀ + constructor + · intro y hy + exact ((jointComponentKernel_analyticAt (by linarith) F hF a b + (jointPhysicalMidpoint s y) (hz y hy)).sub + (jointMidpointPolynomial_analyticAt F n (jointPhysicalMidpoint s y))).comp + (jointPhysicalMidpoint_analyticAt s y) + · intro y hy + have h := jointMidpointPolynomial_component_error hM hδ hsmall F + (fun z hz => (hF z hz).differentiableAt) hbound n a b + (jointPhysicalMidpoint s y) (hz y hy) + simpa only [jointPhysicalPolynomialError, + show (26214400 : ℝ) * (3 / s) = 78643200 / s by ring] using h + +/-- Literal physical complex Fréchet derivatives, with no assumed differentiated error. -/ +theorem jointPhysicalPolynomialError_derivative {s M : ℝ} (hs : 600 ≤ s) (hM : 0 ≤ M) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (hbound : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖F z‖ ≤ M) + (n : ℕ) (a b : Bool) (w : Fin 6 → ℂ) (hw : InPhysicalJointComponent a b s 2 w) + {k : ℕ} (hk : k ≤ 4) : + ‖iteratedFDeriv ℂ k (jointPhysicalPolynomialError F s n a b) w‖ ≤ + 11680000 * M * (78643200 / s) ^ n := by + have h := jointPhysicalPolynomialError_ball hs hM F hF hbound n a b w hw + have hs₀ : 0 < s := by linarith + exact (norm_iteratedFDeriv_le_four (by positivity) h.1 h.2 hk).trans_eq (by ring) + +theorem jointFieldPolynomialError_derivative {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + (n : ℕ) (a b : Bool) (w : Fin 6 → ℂ) (hw : InPhysicalJointComponent a b s 2 w) + {k : ℕ} (hk : k ≤ 4) : + ‖iteratedFDeriv ℂ k + (jointPhysicalPolynomialError (jointNormalizedFieldKernel μ s) s n a b) w‖ ≤ + 11680000 * jointFieldEnvelope μ s * (78643200 / s) ^ n := by + have hs₀ : 0 < s := by linarith + exact jointPhysicalPolynomialError_derivative hs + (by unfold jointFieldEnvelope; positivity) (jointNormalizedFieldKernel μ s) + (jointNormalizedFieldKernel_analyticAt hμ hs₀) + (jointNormalizedFieldKernel_norm_le hμ hs₀) n a b w hw hk + +theorem jointMomentumPolynomialError_derivative {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + (n : ℕ) (a b : Bool) (w : Fin 6 → ℂ) (hw : InPhysicalJointComponent a b s 2 w) + {k : ℕ} (hk : k ≤ 4) : + ‖iteratedFDeriv ℂ k + (jointPhysicalPolynomialError (jointNormalizedMomentumKernel μ s) s n a b) w‖ ≤ + 11680000 * jointMomentumEnvelope μ s * (78643200 / s) ^ n := by + have hs₀ : 0 < s := by linarith + exact jointPhysicalPolynomialError_derivative hs + (by unfold jointMomentumEnvelope; positivity) (jointNormalizedMomentumKernel μ s) + (jointNormalizedMomentumKernel_analyticAt hμ hs₀) + (jointNormalizedMomentumKernel_norm_le hμ hs₀) n a b w hw hk + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialCombinedRange.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialCombinedRange.lean new file mode 100644 index 0000000000..a8bbbc6108 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialCombinedRange.lean @@ -0,0 +1,118 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialComplexification +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRankNuclearBound + +/-! +# One cubic moment range controls both sectors and their increments + +Successive polynomials use the same actual moment families. Their +difference therefore remains in the same two-sector degree space; no +extra factor for the number of polynomial terms or increments is needed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian +open scoped ENNReal + +variable {𝕜 E : Type*} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] + +/-- Joint moment degree range. -/ +def jointMomentDegreeRange (u v : (Fin 3 → ℕ) → E) (D : ℕ) : Submodule 𝕜 E := + Submodule.span 𝕜 (Set.range fun p : Bool × (Fin 3 → Fin (D + 1)) => + (if p.1 then v else u) (fun i => (p.2 i).val)) + +instance finiteDimensional_jointMomentDegreeRange (u v : (Fin 3 → ℕ) → E) (D : ℕ) : + FiniteDimensional 𝕜 (jointMomentDegreeRange (𝕜 := 𝕜) u v D) := + FiniteDimensional.span_of_finite 𝕜 (Set.finite_range _) + +theorem spatialMomentDegreeRange_le_joint_left (u v : (Fin 3 → ℕ) → E) (D : ℕ) : + spatialMomentDegreeRange (𝕜 := 𝕜) u D ≤ jointMomentDegreeRange (𝕜 := 𝕜) u v D := by + apply Submodule.span_le.mpr + rintro _ ⟨α, rfl⟩ + exact Submodule.subset_span ⟨(false, α), rfl⟩ + +theorem spatialMomentDegreeRange_le_joint_right (u v : (Fin 3 → ℕ) → E) (D : ℕ) : + spatialMomentDegreeRange (𝕜 := 𝕜) v D ≤ jointMomentDegreeRange (𝕜 := 𝕜) u v D := by + apply Submodule.span_le.mpr + rintro _ ⟨α, rfl⟩ + exact Submodule.subset_span ⟨(true, α), rfl⟩ + +theorem finrank_jointMomentDegreeRange_le (u v : (Fin 3 → ℕ) → E) (D : ℕ) : + Module.finrank 𝕜 (jointMomentDegreeRange (𝕜 := 𝕜) u v D) ≤ 2 * (D + 1) ^ 3 := by + calc + _ ≤ Fintype.card (Bool × (Fin 3 → Fin (D + 1))) := + finrank_range_le_card (R := 𝕜) + (fun p : Bool × (Fin 3 → Fin (D + 1)) => + (if p.1 then v else u) (fun i => (p.2 i).val)) + _ = 2 * (D + 1) ^ 3 := by + simp only [Fintype.card_prod, Fintype.card_bool, Fintype.card_fun, Fintype.card_fin] + +theorem range_jointPolynomial_difference_le + (u v : (Fin 3 → ℕ) → E) (P Q P' Q' : MvPolynomial (Fin 6) ℂ) + {D : ℕ} (hP : P.totalDegree ≤ D) (hQ : Q.totalDegree ≤ D) + (hP' : P'.totalDegree ≤ D) (hQ' : Q'.totalDegree ≤ D) : + ((jointPolynomialMomentOperator (𝕜 := 𝕜) u P + jointPolynomialMomentOperator (𝕜 := 𝕜) v Q) - + (jointPolynomialMomentOperator (𝕜 := 𝕜) u P' + jointPolynomialMomentOperator + (𝕜 := 𝕜) v Q')).toLinearMap.range ≤ + jointMomentDegreeRange (𝕜 := 𝕜) u v D := by + have hp := (range_jointPolynomialMomentOperator_le (𝕜 := 𝕜) u P hP).trans + (spatialMomentDegreeRange_le_joint_left (𝕜 := 𝕜) u v D) + have hq := (range_jointPolynomialMomentOperator_le (𝕜 := 𝕜) v Q hQ).trans + (spatialMomentDegreeRange_le_joint_right (𝕜 := 𝕜) u v D) + have hp' := (range_jointPolynomialMomentOperator_le (𝕜 := 𝕜) u P' hP').trans + (spatialMomentDegreeRange_le_joint_left (𝕜 := 𝕜) u v D) + have hq' := (range_jointPolynomialMomentOperator_le (𝕜 := 𝕜) v Q' hQ').trans + (spatialMomentDegreeRange_le_joint_right (𝕜 := 𝕜) u v D) + rintro _ ⟨x, rfl⟩ + exact Submodule.sub_mem _ + (Submodule.add_mem _ (hp ⟨x, rfl⟩) (hq ⟨x, rfl⟩)) + (Submodule.add_mem _ (hp' ⟨x, rfl⟩) (hq' ⟨x, rfl⟩)) + +theorem finrank_jointPolynomial_difference_le + (u v : (Fin 3 → ℕ) → E) (P Q P' Q' : MvPolynomial (Fin 6) ℂ) + {D : ℕ} (hP : P.totalDegree ≤ D) (hQ : Q.totalDegree ≤ D) + (hP' : P'.totalDegree ≤ D) (hQ' : Q'.totalDegree ≤ D) : + Module.finrank 𝕜 + ((jointPolynomialMomentOperator (𝕜 := 𝕜) u P + jointPolynomialMomentOperator (𝕜 := 𝕜) v Q) - + (jointPolynomialMomentOperator (𝕜 := 𝕜) u P' + jointPolynomialMomentOperator + (𝕜 := 𝕜) v Q')).toLinearMap.range ≤ + 2 * (D + 1) ^ 3 := + (Submodule.finrank_mono (range_jointPolynomial_difference_le u v P Q P' Q' + hP hQ hP' hQ')).trans (finrank_jointMomentDegreeRange_le u v D) + +theorem nuclear_jointPolynomial_difference_le + {F : Type*} [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + (u v : (Fin 3 → ℕ) → F) (P Q P' Q' : MvPolynomial (Fin 6) ℂ) + {D : ℕ} (hP : P.totalDegree ≤ D) (hQ : Q.totalDegree ≤ D) + (hP' : P'.totalDegree ≤ D) (hQ' : Q'.totalDegree ≤ D) + (hA : IsSelfAdjoint + ((jointPolynomialMomentOperator (𝕜 := ℂ) u P + jointPolynomialMomentOperator (𝕜 := ℂ) v Q) - + (jointPolynomialMomentOperator (𝕜 := ℂ) u P' + jointPolynomialMomentOperator + (𝕜 := ℂ) v Q'))) : + operatorTraceNorm + ((jointPolynomialMomentOperator (𝕜 := ℂ) u P + jointPolynomialMomentOperator (𝕜 := ℂ) v Q) - + (jointPolynomialMomentOperator (𝕜 := ℂ) u P' + jointPolynomialMomentOperator + (𝕜 := ℂ) v Q')) ≤ + ENNReal.ofReal ((2 * (D + 1) ^ 3 : ℕ) * + ‖(jointPolynomialMomentOperator (𝕜 := ℂ) u P + jointPolynomialMomentOperator (𝕜 := ℂ) v Q) - + (jointPolynomialMomentOperator (𝕜 := ℂ) u P' + jointPolynomialMomentOperator + (𝕜 := ℂ) v Q')‖) := by + apply (operatorTraceNorm_le_finrank_mul_norm_of_range_le hA + (jointMomentDegreeRange (𝕜 := ℂ) u v D) + (range_jointPolynomial_difference_le u v P Q P' Q' hP hQ hP' hQ')).trans + apply ENNReal.ofReal_le_ofReal + exact mul_le_mul_of_nonneg_right + (by exact_mod_cast finrank_jointMomentDegreeRange_le (𝕜 := ℂ) u v D) (norm_nonneg _) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialComplexification.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialComplexification.lean new file mode 100644 index 0000000000..52f162b14e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialComplexification.lean @@ -0,0 +1,70 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialMidpointForm +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexifiedOperator + +/-! # The complex polynomial operator is the true extension of its real form -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification InnerProductSpace + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + +theorem complexify_rankOne_real (x y : E) : + complexify (rankOne ℝ x y) = rankOne ℂ (ofReal x) (ofReal y) := by + apply ContinuousLinearMap.ext + intro z + apply HilbertComplexification.ext + · simp only [complexify_re, rankOne_apply, re_smul, ofReal_re, ofReal_im, + HilbertComplexification.inner_eq, inner_zero_left, add_zero, sub_zero, + smul_zero, sub_zero] + · simp only [complexify_im, rankOne_apply, im_smul, ofReal_re, ofReal_im, + HilbertComplexification.inner_eq, inner_zero_left, add_zero, sub_zero, + smul_zero, add_zero] + +theorem complexify_finset_sum {ι : Type*} (s : Finset ι) (A : ι → E →L[ℝ] E) : + complexify (∑ i ∈ s, A i) = ∑ i ∈ s, complexify (A i) := by + classical + induction s using Finset.induction_on with + | empty => simp only [Finset.sum_empty, complexify_zero] + | @insert i s hi ih => rw [Finset.sum_insert hi, complexify_add, ih, Finset.sum_insert hi] + +theorem complexify_jointPolynomialMomentOperator (v : (Fin 3 → ℕ) → E) + (P : MvPolynomial (Fin 6) ℂ) : + complexify (jointPolynomialMomentOperator (𝕜 := ℝ) v P) = + jointPolynomialMomentOperator (𝕜 := ℂ) (fun α => ofReal (v α)) P := by + simp only [jointPolynomialMomentOperator, Algebra.algebraMap_self_apply, + complexify_finset_sum, complexify_real_smul, complexify_rankOne_real, + RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal, + RCLike.algebraMap_eq_ofReal] + +theorem norm_complexified_jointPolynomialMomentOperator (v : (Fin 3 → ℕ) → E) + (P : MvPolynomial (Fin 6) ℂ) : + ‖jointPolynomialMomentOperator (𝕜 := ℂ) (fun α => ofReal (v α)) P‖ = + ‖jointPolynomialMomentOperator (𝕜 := ℝ) v P‖ := by + rw [← complexify_jointPolynomialMomentOperator, norm_complexify] + +theorem complexified_jointPolynomialMomentOperator_rank_le + (v : (Fin 3 → ℕ) → E) (P : MvPolynomial (Fin 6) ℂ) {D : ℕ} + (hP : P.totalDegree ≤ D) : + Module.finrank ℂ (complexify (jointPolynomialMomentOperator (𝕜 := ℝ) v P)).toLinearMap.range ≤ + (D + 1) ^ 3 := by + rw [complexify_jointPolynomialMomentOperator] + exact finrank_jointPolynomialMomentOperator_le _ P hP + +theorem complexify_isSelfAdjoint [CompleteSpace E] {A : E →L[ℝ] E} + (hA : IsSelfAdjoint A) : IsSelfAdjoint (complexify A) := by + change (complexify A).adjoint = complexify A + rw [complexify_adjoint, hA.adjoint_eq] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialEnvelope.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialEnvelope.lean new file mode 100644 index 0000000000..fd58035398 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialEnvelope.lean @@ -0,0 +1,56 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointNormalizedKernels + +/-! # The common physical envelope for the two joint polynomial errors -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +/-- Joint common envelope given by `(1 / s ^ 2) * (1 + μ * s) ^ 2 * Real.exp (-μ * s / 2)`. -/ +def jointCommonEnvelope (μ s : ℝ) : ℝ := + (1 / s ^ 2) * (1 + μ * s) ^ 2 * Real.exp (-μ * s / 2) + +theorem jointCommonEnvelope_nonneg (μ s : ℝ) : 0 ≤ jointCommonEnvelope μ s := by + unfold jointCommonEnvelope + positivity + +theorem jointFieldEnvelope_mass_le {μ s : ℝ} (hμ : 0 < μ) (hs : 1 ≤ s) : + max 1 μ * jointFieldEnvelope μ s ≤ 6 * jointCommonEnvelope μ s := by + have hs₀ : 0 < s := by linarith + have ht : 1 ≤ 1 + μ * s := le_add_of_nonneg_right (mul_nonneg hμ.le hs₀.le) + have ht₀ : 0 ≤ 1 + μ * s := by positivity + have hroot : Real.sqrt (1 + μ * s) ≤ 1 + μ * s := by + nlinarith [Real.sq_sqrt ht₀, Real.sqrt_nonneg (1 + μ * s)] + have hm : max 1 μ ≤ 1 + μ * s := max_le ht (by nlinarith) + unfold jointFieldEnvelope jointCommonEnvelope + calc + _ = (6 / s ^ 2) * (max 1 μ * Real.sqrt (1 + μ * s)) * Real.exp (-μ * s / 2) := by ring + _ ≤ (6 / s ^ 2) * ((1 + μ * s) * (1 + μ * s)) * Real.exp (-μ * s / 2) := by gcongr + _ = _ := by ring + +theorem jointMomentumEnvelope_le {μ s : ℝ} (hμ : 0 < μ) (hs : 1 ≤ s) : + jointMomentumEnvelope μ s ≤ 128 * jointCommonEnvelope μ s := by + have hs₀ : 0 < s := by linarith + have ht : 1 ≤ 1 + μ * s := le_add_of_nonneg_right (mul_nonneg hμ.le hs₀.le) + have ht₀ : 0 ≤ 1 + μ * s := by positivity + have hroot : Real.sqrt (1 + μ * s) ≤ 1 + μ * s := by + nlinarith [Real.sq_sqrt ht₀, Real.sqrt_nonneg (1 + μ * s)] + have hs2 : 1 ≤ s ^ 2 := by nlinarith + have hpow : s ^ 2 ≤ s ^ 4 := by nlinarith [sq_nonneg (s ^ 2 - 1)] + have hden : 128 / s ^ 4 ≤ 128 / s ^ 2 := + div_le_div_of_nonneg_left (by norm_num) (by positivity) hpow + unfold jointMomentumEnvelope jointCommonEnvelope + calc + _ ≤ (128 / s ^ 2) * (1 + μ * s) * (1 + μ * s) * Real.exp (-μ * s / 2) := by gcongr + _ = _ := by ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialErrorOperators.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialErrorOperators.lean new file mode 100644 index 0000000000..0320a9fa41 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialErrorOperators.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointRealPolynomialError +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelOriginalForm + +/-! +# Actual polynomial-error operators on the original joint source space + +Each of the four error patches is the literal kernel error on its own +component. The common local derivative bound constructs bounded operators +on one total-source completion, without a regional decomposition inverse. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian Metric Set +open scoped SchwartzMap + +/-- Joint center index obtained from `jointSpatialCenter`. -/ +def jointCenterIndex (s : ℝ) (i : Fin 2) : EuclideanSpace ℝ (Fin 3) := + jointSpatialCenter s (decide (i = 1)) + +@[simp] theorem jointCenterIndex_zero (s : ℝ) : jointCenterIndex s 0 = 0 := by + simp [jointCenterIndex, jointSpatialCenter] + +@[simp] theorem jointCenterIndex_one (s : ℝ) : + jointCenterIndex s 1 = spatialAxisDisplacement s 0 := by + simp [jointCenterIndex, jointSpatialCenter] + +/-- The union of the two unit spatial balls centered at the normalized separation. -/ +def jointSourceRegion (s : ℝ) : Set (EuclideanSpace ℝ (Fin 3)) := + ball (jointCenterIndex s 0) 1 ∪ ball (jointCenterIndex s 1) 1 + +/-- Joint polynomial error patch. -/ +def jointPolynomialErrorPatch {s : ℝ} (hs : 600 ≤ s) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (n : ℕ) (i j : Fin 2) : SchwartzMap JointKernelSpace ℂ := + cutOffJointLocalKernel (jointCenterIndex s i) (jointCenterIndex s j) + (jointRealPolynomialError F s n (decide (i = 1)) (decide (j = 1))) + (jointOpenComponentBox s (decide (i = 1)) (decide (j = 1))) + (isOpen_jointOpenComponentBox s _ _) + (jointKernelBox_subset_openComponent s _ _) + (jointRealPolynomialError_contDiffOn hs F hF n _ _) + +theorem jointPolynomialErrorPatch_eq {s : ℝ} (hs : 600 ≤ s) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (n : ℕ) (i j : Fin 2) (x : JointKernelSpace) + (hx : x.fst ∈ closedBall (jointCenterIndex s i) 1) + (hy : x.snd ∈ closedBall (jointCenterIndex s j) 1) : + jointPolynomialErrorPatch hs F hF n i j x = + jointRealPolynomialError F s n (decide (i = 1)) (decide (j = 1)) x := + cutOffJointLocalKernel_eq _ _ _ _ _ _ _ x hx hy + +/-- Continuous linear map for the joint field error operator, of type `SourceHilbert hμ +(jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s)`. -/ +def jointFieldErrorOperator {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + SourceHilbert hμ (jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s) := + jointFourFieldKernelOperator hμ (jointSourceRegion s) + (jointPolynomialErrorPatch hs (jointNormalizedFieldKernel μ s) + (jointNormalizedFieldKernel_analyticAt hμ (by linarith)) n) + +/-- Continuous linear map for the joint momentum error operator, of type `SourceHilbert hμ +(jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s)`. -/ +def jointMomentumErrorOperator {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + SourceHilbert hμ (jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s) := + jointFourMomentumKernelOperator hμ (jointCenterIndex s 0) (jointCenterIndex s 1) + (jointPolynomialErrorPatch hs (jointNormalizedMomentumKernel μ s) + (jointNormalizedMomentumKernel_analyticAt hμ (by linarith)) n) + +theorem jointPolynomialError_four_operator_bounds {μ s M : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) (hM : 0 ≤ M) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (hbound : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖F z‖ ≤ M) (n : ℕ) : + ‖jointFourFieldKernelOperator hμ (jointSourceRegion s) (jointPolynomialErrorPatch hs F hF n)‖ ≤ + (4 * jointSmoothKernelUniversalConstant) * max 1 μ * + (11680000 * M * (78643200 / s) ^ n) ∧ + ‖jointFourMomentumKernelOperator hμ (jointCenterIndex s 0) (jointCenterIndex s 1) + (jointPolynomialErrorPatch hs F hF n)‖ ≤ + (4 * jointSmoothKernelUniversalConstant) * (11680000 * M * (78643200 / s) ^ n) := by + have hs₀ : 0 < s := by linarith + exact jointLocalKernel_four_operator_bounds hμ (by positivity) (jointCenterIndex s) + (fun i j => jointRealPolynomialError F s n (decide (i = 1)) (decide (j = 1))) + (fun i j => jointOpenComponentBox s (decide (i = 1)) (decide (j = 1))) + (fun i j => isOpen_jointOpenComponentBox s _ _) + (fun i j => jointKernelBox_subset_openComponent s _ _) + (fun i j => jointRealPolynomialError_contDiffOn hs F hF n _ _) + (fun i j k hk x hx => jointRealPolynomialError_derivative hs hM F hF hbound n _ _ x hx + (by omega)) + +theorem norm_jointFieldErrorOperator_le {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + ‖jointFieldErrorOperator hμ hs n‖ ≤ (4 * jointSmoothKernelUniversalConstant) * max 1 μ * + (11680000 * jointFieldEnvelope μ s * (78643200 / s) ^ n) := by + exact (jointPolynomialError_four_operator_bounds hμ hs + (by unfold jointFieldEnvelope; positivity) (jointNormalizedFieldKernel μ s) + (jointNormalizedFieldKernel_analyticAt hμ (by linarith)) + (jointNormalizedFieldKernel_norm_le hμ (by linarith)) n).1 + +theorem norm_jointMomentumErrorOperator_le {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + ‖jointMomentumErrorOperator hμ hs n‖ ≤ (4 * jointSmoothKernelUniversalConstant) * + (11680000 * jointMomentumEnvelope μ s * (78643200 / s) ^ n) := by + exact (jointPolynomialError_four_operator_bounds hμ hs + (by unfold jointMomentumEnvelope; positivity) (jointNormalizedMomentumKernel μ s) + (jointNormalizedMomentumKernel_analyticAt hμ (by linarith)) + (jointNormalizedMomentumKernel_norm_le hμ (by linarith)) n).2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialFormRank.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialFormRank.lean new file mode 100644 index 0000000000..e6b61ff330 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialFormRank.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialMomentRange +public import Mathlib.Algebra.MvPolynomial.Degrees + +/-! +# Actual polynomial moment operators have cubic rank + +Only the left spatial exponent determines a range vector. The number of +six-variable coefficients therefore does not inflate the rank to sixth +order. The result applies equally to real and complex Hilbert spaces. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MvPolynomial InnerProductSpace +open scoped InnerProductSpace + +/-- Spatial six left exponent defined as `d (Fin.castAdd 3 i)`. -/ +def spatialSixLeftExponent (d : Fin 6 →₀ ℕ) (i : Fin 3) : ℕ := d (Fin.castAdd 3 i) +/-- Spatial six right exponent defined as `d (Fin.natAdd 3 i)`. -/ +def spatialSixRightExponent (d : Fin 6 →₀ ℕ) (i : Fin 3) : ℕ := d (Fin.natAdd 3 i) + +variable {𝕜 E : Type*} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] + +/-- The actual finite sum of rank-one moment operators. Real coefficient +parts implement the real restriction of the complex polynomial kernel. -/ +def jointPolynomialMomentOperator (v : (Fin 3 → ℕ) → E) (P : MvPolynomial (Fin 6) ℂ) : + E →L[𝕜] E := + ∑ d ∈ P.support, (algebraMap ℝ 𝕜 (P.coeff d).re) • + rankOne 𝕜 (v (spatialSixLeftExponent d)) (v (spatialSixRightExponent d)) + +theorem range_jointPolynomialMomentOperator_le (v : (Fin 3 → ℕ) → E) + (P : MvPolynomial (Fin 6) ℂ) {D : ℕ} (hP : P.totalDegree ≤ D) : + (jointPolynomialMomentOperator (𝕜 := 𝕜) v P).toLinearMap.range ≤ + spatialMomentDegreeRange (𝕜 := 𝕜) v D := by + rintro _ ⟨x, rfl⟩ + change jointPolynomialMomentOperator (𝕜 := 𝕜) v P x ∈ + spatialMomentDegreeRange (𝕜 := 𝕜) v D + simp only [jointPolynomialMomentOperator, _root_.sum_apply, + smul_apply, rankOne_apply] + apply Submodule.sum_mem + intro d hd + apply Submodule.smul_mem + apply Submodule.smul_mem + exact mem_spatialMomentDegreeRange v D (spatialSixLeftExponent d) (fun i => + (MvPolynomial.le_degreeOf_of_mem_support (Fin.castAdd 3 i) hd).trans + ((MvPolynomial.degreeOf_le_totalDegree P _).trans hP)) + +instance finiteDimensional_range_jointPolynomialMomentOperator + (v : (Fin 3 → ℕ) → E) (P : MvPolynomial (Fin 6) ℂ) : + FiniteDimensional 𝕜 (jointPolynomialMomentOperator (𝕜 := 𝕜) v P).toLinearMap.range := + Submodule.finiteDimensional_of_le (range_jointPolynomialMomentOperator_le v P le_rfl) + +theorem finrank_jointPolynomialMomentOperator_le (v : (Fin 3 → ℕ) → E) + (P : MvPolynomial (Fin 6) ℂ) {D : ℕ} (hP : P.totalDegree ≤ D) : + Module.finrank 𝕜 (jointPolynomialMomentOperator (𝕜 := 𝕜) v P).toLinearMap.range ≤ + (D + 1) ^ 3 := + (Submodule.finrank_mono (range_jointPolynomialMomentOperator_le v P hP)).trans + (finrank_spatialMomentDegreeRange_le v D) + +theorem inner_jointPolynomialMomentOperator_real {F : Type*} + [NormedAddCommGroup F] [InnerProductSpace ℝ F] + (v : (Fin 3 → ℕ) → F) (P : MvPolynomial (Fin 6) ℂ) (x y : F) : + inner ℝ x (jointPolynomialMomentOperator (𝕜 := ℝ) v P y) = + ∑ d ∈ P.support, (P.coeff d).re * inner ℝ x (v (spatialSixLeftExponent d)) * + inner ℝ y (v (spatialSixRightExponent d)) := by + simp only [jointPolynomialMomentOperator, _root_.sum_apply, inner_sum, + smul_apply, rankOne_apply, real_inner_smul_right, + Algebra.algebraMap_self_apply] + apply Finset.sum_congr rfl + intro d hd + rw [real_inner_comm (v (spatialSixRightExponent d)) y] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementNorm.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementNorm.lean new file mode 100644 index 0000000000..5e95064718 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementNorm.lean @@ -0,0 +1,63 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialSelfAdjoint +public import LeanPool.VacuumBellSeparation.FreeField.JointRegionMomentFamily + +/-! # Actual self-adjoint polynomial increments and their geometric norm bound -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian + +/-- Continuous linear map for the joint polynomial increment, of type `SourceHilbert hμ +(jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s)`. -/ +def jointPolynomialIncrement {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + SourceHilbert hμ (jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s) := + jointPolynomialKernelOperator hμ hs (n + 1) - jointPolynomialKernelOperator hμ hs n + +theorem jointPolynomialIncrement_eq_errors {μ s : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + jointPolynomialIncrement hμ hs n = jointErrorOperator hμ hs n - jointErrorOperator hμ hs + (n + 1) := by + unfold jointPolynomialIncrement jointPolynomialKernelOperator + abel + +theorem jointPolynomialIncrement_isSelfAdjoint {μ s : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + IsSelfAdjoint (jointPolynomialIncrement hμ hs n) := + (jointPolynomialKernelOperator_isSelfAdjoint hμ hs (jointRegionMomentFamily hμ s) (n + 1)).sub + (jointPolynomialKernelOperator_isSelfAdjoint hμ hs (jointRegionMomentFamily hμ s) n) + +theorem norm_jointPolynomialIncrement_le {μ s : ℝ} + (hμ : 0 < μ) (hs : 157286400 ≤ s) (n : ℕ) : + ‖jointPolynomialIncrement hμ (show 600 ≤ s by linarith) n‖ ≤ + 2 * jointPolynomialErrorConstant * jointCommonEnvelope μ s * (78643200 / s) ^ n := by + have hs6 : 600 ≤ s := by linarith + have hs₀ : 0 < s := by linarith + have hq₀ : 0 ≤ 78643200 / s := by positivity + have hq₁ : 78643200 / s ≤ 1 := (div_le_one hs₀).mpr (by linarith) + have hp : (78643200 / s) ^ (n + 1) ≤ (78643200 / s) ^ n := by + rw [pow_succ] + exact mul_le_of_le_one_right (pow_nonneg hq₀ n) hq₁ + have hC := jointPolynomialErrorConstant_pos.le + have hE := jointCommonEnvelope_nonneg μ s + rw [jointPolynomialIncrement_eq_errors] + calc + _ ≤ ‖jointErrorOperator hμ hs6 n‖ + ‖jointErrorOperator hμ hs6 (n + 1)‖ := + norm_sub_le (jointErrorOperator hμ hs6 n) (jointErrorOperator hμ hs6 (n + 1)) + _ ≤ jointPolynomialErrorConstant * jointCommonEnvelope μ s * (78643200 / s) ^ n + + jointPolynomialErrorConstant * jointCommonEnvelope μ s * (78643200 / s) ^ (n + 1) := + add_le_add (norm_jointErrorOperator_le hμ hs6 n) (norm_jointErrorOperator_le hμ hs6 (n + 1)) + _ ≤ jointPolynomialErrorConstant * jointCommonEnvelope μ s * (78643200 / s) ^ n + + jointPolynomialErrorConstant * jointCommonEnvelope μ s * (78643200 / s) ^ n := by gcongr + _ = _ := by ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementNuclear.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementNuclear.lean new file mode 100644 index 0000000000..1b63b467a9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementNuclear.lean @@ -0,0 +1,66 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialIncrementRankDefs +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialIncrementNorm +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialCombinedRange + +/-! +# The genuine unweighted nuclear estimate for the polynomial increments + +The complex operator is the isometric complexification of the actual real +kernel operator. One cubic moment range contains both successive orders. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian Gaussian.HilbertComplexification + +theorem complexify_sub_real {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + (A B : E →L[ℝ] E) : complexify (A - B) = complexify A - complexify B := by + simp only [sub_eq_add_neg, complexify_add, complexify_neg] + +theorem nuclear_jointPolynomialIncrement_le_rank {μ s : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) (n : ℕ) : + operatorTraceNorm (complexify (jointPolynomialIncrement hμ hs n)) ≤ + ENNReal.ofReal (jointPolynomialIncrementRank n * ‖jointPolynomialIncrement hμ hs n‖) := by + let v := jointRegionMomentFamily hμ s + let P := fun k => jointPhysicalPolynomial s (jointMidpointPolynomial + (jointNormalizedFieldKernel μ s) k) + let Q := fun k => jointPhysicalPolynomial s (jointMidpointPolynomial + (jointNormalizedMomentumKernel μ s) k) + let u := fun α => ofReal (v.field α) + let w := fun α => ofReal (v.momentum α) + have he : complexify (jointPolynomialIncrement hμ hs n) = + (jointPolynomialMomentOperator u (P (n + 1)) + jointPolynomialMomentOperator w (Q (n + 1))) - + (jointPolynomialMomentOperator u (P n) + jointPolynomialMomentOperator w (Q n)) := by + simp only [jointPolynomialIncrement, jointPolynomialKernelOperator_eq_moments hμ hs v, + complexify_sub_real, complexify_add, complexify_jointPolynomialMomentOperator, u, w, P, Q] + have hp (k : ℕ) : (P k).totalDegree ≤ 9 * k := + (totalDegree_jointPhysicalPolynomial_le s _).trans (jointMidpointPolynomial_degree _ k) + have hq (k : ℕ) : (Q k).totalDegree ≤ 9 * k := + (totalDegree_jointPhysicalPolynomial_le s _).trans (jointMidpointPolynomial_degree _ k) + have ha := complexify_isSelfAdjoint (jointPolynomialIncrement_isSelfAdjoint hμ hs n) + rw [he] at ha + have h := nuclear_jointPolynomial_difference_le u w (P (n + 1)) (Q (n + 1)) (P n) (Q n) + (hp (n + 1)) (hq (n + 1)) ((hp n).trans (by omega)) ((hq n).trans (by omega)) ha + rw [← he, norm_complexify] at h + exact h + +theorem nuclear_jointPolynomialIncrement_le {μ s : ℝ} + (hμ : 0 < μ) (hs : 157286400 ≤ s) (n : ℕ) : + operatorTraceNorm (complexify (jointPolynomialIncrement hμ (show 600 ≤ s by linarith) n)) ≤ + ENNReal.ofReal ((jointPolynomialIncrementRank n : ℝ) * + (2 * jointPolynomialErrorConstant * jointCommonEnvelope μ s * (78643200 / s) ^ n)) := by + apply (nuclear_jointPolynomialIncrement_le_rank hμ _ n).trans + apply ENNReal.ofReal_le_ofReal + exact mul_le_mul_of_nonneg_left (norm_jointPolynomialIncrement_le hμ hs n) (Nat.cast_nonneg _) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementRankDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementRankDefs.lean new file mode 100644 index 0000000000..cf99482015 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementRankDefs.lean @@ -0,0 +1,28 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialIncrementNorm +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialCombinedRange + +/-! +# Literal statement construction extracted from FreeField/JointPolynomialIncrementNuclear + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian Gaussian.HilbertComplexification + +/-- Joint polynomial increment rank given by `2 * (9 * (n + 1) + 1) ^ 3`. -/ +def jointPolynomialIncrementRank (n : ℕ) : ℕ := 2 * (9 * (n + 1) + 1) ^ 3 + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementSeries.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementSeries.lean new file mode 100644 index 0000000000..62259f6c56 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialIncrementSeries.lean @@ -0,0 +1,100 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialIncrementNuclear + +/-! # Genuine summation and a cubic majorant for the actual increments -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian Filter +open scoped Topology + +theorem sum_jointPolynomialIncrement {μ s : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) (N : ℕ) : + (∑ n ∈ Finset.range N, jointPolynomialIncrement hμ hs n) = jointPolynomialKernelOperator hμ + hs N := by + induction N with + | zero => simp only [Finset.sum_range_zero, jointPolynomialKernelOperator_zero] + | succ N ih => + rw [Finset.sum_range_succ, ih, jointPolynomialIncrement] + abel + +theorem summable_norm_jointPolynomialIncrement {μ s : ℝ} + (hμ : 0 < μ) (hs : 157286400 ≤ s) : + Summable (fun n => ‖jointPolynomialIncrement hμ (show 600 ≤ s by linarith) n‖) := by + have hs₀ : 0 < s := by linarith + have hq₀ : 0 ≤ 78643200 / s := by positivity + have hq₁ : 78643200 / s < 1 := (div_lt_one hs₀).mpr (by linarith) + exact ((summable_geometric_of_lt_one hq₀ hq₁).mul_left + (2 * jointPolynomialErrorConstant * jointCommonEnvelope μ s)).of_nonneg_of_le + (fun n => norm_nonneg (jointPolynomialIncrement hμ (show 600 ≤ s by linarith) n)) + (norm_jointPolynomialIncrement_le hμ hs) + +-- The normed-group summation lemma must be matched against the operator-space +-- `HasSum` instances on the completed source space; this instance unification is +-- slow but terminates (about 94 s in a test build). +theorem hasSum_jointPolynomialIncrement {μ s : ℝ} + (hμ : 0 < μ) (hs : 157286400 ≤ s) : + HasSum (jointPolynomialIncrement hμ (show 600 ≤ s by linarith)) + (jointDifferenceKernelOperator hμ (show 600 ≤ s by linarith)) := by + have hsum := summable_norm_jointPolynomialIncrement hμ hs + have htend : Filter.Tendsto + (fun N : ℕ => ∑ n ∈ Finset.range N, jointPolynomialIncrement hμ (show 600 ≤ s by linarith) n) + Filter.atTop (𝓝 (jointDifferenceKernelOperator hμ (show 600 ≤ s by linarith))) := by + simpa only [sum_jointPolynomialIncrement] using jointPolynomialKernelOperator_tendsto hμ hs + -- Fix the normed group first, so its instances are synthesized before unification. + exact (hasSum_iff_tendsto_nat_of_summable_norm + (E := SourceHilbert hμ (jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s)) + hsum).mpr htend + +theorem continuous_complexify_operator {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] : + Continuous (fun A : E →L[ℝ] E => complexify A) := by + have hi : Isometry (fun A : E →L[ℝ] E => complexify A) := + isometry_iff_dist_eq.mpr fun A B => by + rw [dist_eq_norm, dist_eq_norm, ← complexify_sub_real, norm_complexify] + exact hi.continuous + +theorem hasSum_complexified_jointPolynomialIncrement {μ s : ℝ} + (hμ : 0 < μ) (hs : 157286400 ≤ s) : + HasSum (fun n => complexify (jointPolynomialIncrement hμ (show 600 ≤ s by linarith) n)) + (complexify (jointDifferenceKernelOperator hμ (show 600 ≤ s by linarith))) := by + let φ : (SourceHilbert hμ (jointSourceRegion s) →L[ℝ] SourceHilbert hμ (jointSourceRegion s)) →+ + (ComplexSourceHilbert hμ (jointSourceRegion s) →L[ℂ] ComplexSourceHilbert hμ + (jointSourceRegion s)) := + { toFun := complexify, map_zero' := complexify_zero, map_add' := complexify_add } + exact (hasSum_jointPolynomialIncrement hμ hs).map φ continuous_complexify_operator + +theorem jointPolynomialIncrementRank_le (n : ℕ) : + (jointPolynomialIncrementRank n : ℝ) ≤ 2000 * ((n : ℝ) + 1) ^ 3 := by + have h : 9 * ((n : ℝ) + 1) + 1 ≤ 10 * ((n : ℝ) + 1) + := by nlinarith [(Nat.cast_nonneg n : (0 : ℝ) ≤ (n : ℝ))] + have hp := pow_le_pow_left₀ (by positivity : 0 ≤ 9 * ((n : ℝ) + 1) + 1) h 3 + simp only [jointPolynomialIncrementRank, Nat.cast_mul, Nat.cast_pow, Nat.cast_add, + Nat.cast_one, Nat.cast_ofNat] + nlinarith + +theorem nuclear_jointPolynomialIncrement_cubic {μ s : ℝ} + (hμ : 0 < μ) (hs : 157286400 ≤ s) (n : ℕ) : + operatorTraceNorm (complexify (jointPolynomialIncrement hμ (show 600 ≤ s by linarith) n)) ≤ + ENNReal.ofReal ((4000 * jointPolynomialErrorConstant * jointCommonEnvelope μ s) * + ((n : ℝ) + 1) ^ 3 * (78643200 / s) ^ n) := by + apply (nuclear_jointPolynomialIncrement_le hμ hs n).trans + apply ENNReal.ofReal_le_ofReal + have hC := jointPolynomialErrorConstant_pos.le + have hE := jointCommonEnvelope_nonneg μ s + have hs₀ : 0 < s := by linarith + calc + _ ≤ (2000 * ((n : ℝ) + 1) ^ 3) * + (2 * jointPolynomialErrorConstant * jointCommonEnvelope μ s * (78643200 / s) ^ n) := + mul_le_mul_of_nonneg_right (jointPolynomialIncrementRank_le n) (by positivity) + _ = _ := by ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialKernelMoments.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialKernelMoments.lean new file mode 100644 index 0000000000..d1f4aad188 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialKernelMoments.lean @@ -0,0 +1,142 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialFormRank +public import LeanPool.VacuumBellSeparation.FreeField.JointRealCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelProduct +public import Mathlib.Topology.Algebra.MvPolynomial + +/-! +# Polynomial kernel integrals are the actual finite moment pairings + +All integrals use the genuine six-dimensional Euclidean product volume. +Compact support proves convergence before the finite polynomial expansion +is integrated. Complex coefficients are restricted by taking real parts. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory MvPolynomial Gaussian +open scoped InnerProductSpace + +theorem jointPolynomial_monomial_coordinates (d : Fin 6 →₀ ℕ) (x : JointKernelSpace) : + (∏ j : Fin 6, jointComplexCoordinates x j ^ d j) = + spatialMonomial (spatialSixLeftExponent d) x.fst * + spatialMonomial (spatialSixRightExponent d) x.snd := by + rw [Fin.prod_univ_add (a := 3) (b := 3)] + simp only [jointComplexCoordinates_left, jointComplexCoordinates_right, + spatialMonomial, spatialSixLeftExponent, spatialSixRightExponent] + +theorem integrable_jointPolynomial_test (P : MvPolynomial (Fin 6) ℂ) + (f g : SpatialTestFunction) : + Integrable (fun x : JointKernelSpace => + (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * eval (jointComplexCoordinates x) P) := by + have hc : Continuous (fun x : JointKernelSpace => + (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * eval (jointComplexCoordinates x) P) := + (jointSpatialTestProduct f g).continuous.mul + (P.continuous_eval.comp jointComplexCoordinates.continuous) + exact hc.integrable_of_hasCompactSupport + ((hasCompactSupport_jointSpatialTestProduct f g).mul_right) + +theorem integral_jointPolynomial_test (P : MvPolynomial (Fin 6) ℂ) + (f g : SpatialTestFunction) : + (∫ x : JointKernelSpace, + (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * eval (jointComplexCoordinates x) P) = + ∑ d ∈ P.support, P.coeff d * spatialTestMoment f (spatialSixLeftExponent d) * + spatialTestMoment g (spatialSixRightExponent d) := by + let T := fun (d : Fin 6 →₀ ℕ) (x : JointKernelSpace) => + P.coeff d * ((spatialMonomial (spatialSixLeftExponent d) x.fst * (f.1 x.fst : ℂ)) * + (spatialMonomial (spatialSixRightExponent d) x.snd * (g.1 x.snd : ℂ))) + have he (x : JointKernelSpace) : + (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * eval (jointComplexCoordinates x) P = + ∑ d ∈ P.support, T d x := by + rw [eval_eq'] + simp only [Finset.mul_sum, jointPolynomial_monomial_coordinates] + apply Finset.sum_congr rfl + intro d hd + dsimp only [T] + ring + have hi (d : Fin 6 →₀ ℕ) : Integrable (T d) := by + have hc : Continuous (T d) := by + have hα := continuous_spatialMonomial (spatialSixLeftExponent d) + have hβ := continuous_spatialMonomial (spatialSixRightExponent d) + have hf := f.2.1.continuous + have hg := g.2.1.continuous + dsimp only [T] + fun_prop + apply hc.integrable_of_hasCompactSupport + apply HasCompactSupport.of_support_subset_isCompact + (hasCompactSupport_jointSpatialTestProduct f g).isCompact + intro x hx + apply subset_tsupport + by_contra hn + have hn' : (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) = 0 := by + simpa only [Function.mem_support, not_not] using hn + rcases mul_eq_zero.mp hn' with hf | hg + · exact hx (by simp only [T, hf, mul_zero, zero_mul]) + · exact hx (by simp only [T, hg, mul_zero]) + simp_rw [he] + rw [integral_finsetSum P.support (fun d _ => hi d)] + apply Finset.sum_congr rfl + intro d hd + dsimp only [T] + rw [integral_const_mul] + change P.coeff d * (∫ x : JointKernelSpace, + (fun p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + (spatialMonomial (spatialSixLeftExponent d) p.1 * (f.1 p.1 : ℂ)) * + (spatialMonomial (spatialSixRightExponent d) p.2 * (g.1 p.2 : ℂ))) + (WithLp.ofLp x)) = _ + rw [integral_jointKernel_ofLp (G := ℂ) + (fun p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + (spatialMonomial (spatialSixLeftExponent d) p.1 * (f.1 p.1 : ℂ)) * + (spatialMonomial (spatialSixRightExponent d) p.2 * (g.1 p.2 : ℂ)))] + change P.coeff d * (∫ p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3), + (spatialMonomial (spatialSixLeftExponent d) p.1 * (f.1 p.1 : ℂ)) * + (spatialMonomial (spatialSixRightExponent d) p.2 * (g.1 p.2 : ℂ)) + ∂(volume.prod volume)) = _ + rw [integral_prod_mul (μ := volume) (ν := volume) + (fun x : EuclideanSpace ℝ (Fin 3) => + spatialMonomial (spatialSixLeftExponent d) x * (f.1 x : ℂ)) + (fun y : EuclideanSpace ℝ (Fin 3) => + spatialMonomial (spatialSixRightExponent d) y * (g.1 y : ℂ))] + simp only [spatialTestMoment, mul_assoc] + +theorem re_integral_jointPolynomial_test (P : MvPolynomial (Fin 6) ℂ) + (f g : SpatialTestFunction) : + (∫ x : JointKernelSpace, + (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * eval (jointComplexCoordinates x) P).re = + ∑ d ∈ P.support, (P.coeff d).re * spatialRealTestMoment f (spatialSixLeftExponent d) * + spatialRealTestMoment g (spatialSixRightExponent d) := by + rw [integral_jointPolynomial_test] + simp only [Complex.re_sum, spatialTestMoment_eq_ofReal, Complex.mul_re, + Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, mul_zero, sub_zero] + +theorem jointPolynomial_field_pairing {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (v : JointSourceMomentFamily hμ U) + (P : MvPolynomial (Fin 6) ℂ) (x y : SourceTestSpace hμ U) : + inner ℝ (x : SourceHilbert hμ U) + (jointPolynomialMomentOperator (𝕜 := ℝ) v.field P (y : SourceHilbert hμ U)) = + (∫ z : JointKernelSpace, (x.1.1.1 z.fst : ℂ) * (y.1.1.1 z.snd : ℂ) * + eval (jointComplexCoordinates z) P).re := by + rw [inner_jointPolynomialMomentOperator_real, re_integral_jointPolynomial_test] + simp only [v.field_pairing] + +theorem jointPolynomial_momentum_pairing {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (v : JointSourceMomentFamily hμ U) + (P : MvPolynomial (Fin 6) ℂ) (x y : SourceTestSpace hμ U) : + inner ℝ (x : SourceHilbert hμ U) + (jointPolynomialMomentOperator (𝕜 := ℝ) v.momentum P (y : SourceHilbert hμ U)) = + (∫ z : JointKernelSpace, (x.1.2.1 z.fst : ℂ) * (y.1.2.1 z.snd : ℂ) * + eval (jointComplexCoordinates z) P).re := by + rw [inner_jointPolynomialMomentOperator_real, re_integral_jointPolynomial_test] + simp only [v.momentum_pairing] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialMidpointForm.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialMidpointForm.lean new file mode 100644 index 0000000000..0707b9e303 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialMidpointForm.lean @@ -0,0 +1,99 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialKernelMoments +public import LeanPool.VacuumBellSeparation.Polynomial.JointMidpointPolynomial + +/-! +# Physical midpoint polynomials as actual finite-rank source forms + +The affine substitution is performed on the polynomial itself. Its true +total degree does not increase, so the previously constructed moment +operator represents the literal physical kernel with cubic rank. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MvPolynomial MeasureTheory +open scoped InnerProductSpace + +/-- Actual substitution of x/s minus the midpoint shift in every variable. -/ +def jointPhysicalPolynomial (s : ℝ) (P : MvPolynomial (Fin 6) ℂ) : + MvPolynomial (Fin 6) ℂ := + ∑ d ∈ P.support, C (P.coeff d) * + ∏ j : Fin 6, (C ((s : ℂ)⁻¹) * X j - C (jointPhysicalMidpointShift j)) ^ d j + +theorem eval_jointPhysicalPolynomial (s : ℝ) (P : MvPolynomial (Fin 6) ℂ) + (z : Fin 6 → ℂ) : + eval z (jointPhysicalPolynomial s P) = eval (jointPhysicalMidpoint s z) P := by + rw [eval_eq' (jointPhysicalMidpoint s z) P] + simp only [jointPhysicalPolynomial, eval_sum, eval_mul, eval_C, eval_prod, + eval_pow, eval_sub, eval_X, jointPhysicalMidpoint, div_eq_mul_inv] + apply Finset.sum_congr rfl + intro d hd + congr 1 + apply Finset.prod_congr rfl + intro j hj + rw [mul_comm ((s : ℂ)⁻¹)] + +theorem totalDegree_jointPhysicalPolynomial_le (s : ℝ) (P : MvPolynomial (Fin 6) ℂ) : + (jointPhysicalPolynomial s P).totalDegree ≤ P.totalDegree := by + classical + have hlin (j : Fin 6) : + (C ((s : ℂ)⁻¹) * X j - C (jointPhysicalMidpointShift j) : + MvPolynomial (Fin 6) ℂ).totalDegree ≤ 1 := by + apply (totalDegree_sub _ _).trans + apply max_le + · exact (totalDegree_mul _ _).trans (by simp) + · simp + apply totalDegree_finsetSum_le + intro d hd + apply (totalDegree_mul _ _).trans + simp only [totalDegree_C, zero_add] + apply (totalDegree_finsetProd _ _).trans + apply (Finset.sum_le_sum (fun j _ => + (totalDegree_pow _ _).trans (Nat.mul_le_mul_left _ (hlin j)))).trans + have hdegree := le_totalDegree hd + rw [Finsupp.sum_fintype d (fun _ e => e) (fun _ => rfl)] at hdegree + simpa only [mul_one] using hdegree + +theorem jointPhysicalPolynomial_field_pairing {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (v : JointSourceMomentFamily hμ U) + (s : ℝ) (P : MvPolynomial (Fin 6) ℂ) (x y : SourceTestSpace hμ U) : + inner ℝ (x : SourceHilbert hμ U) + (jointPolynomialMomentOperator (𝕜 := ℝ) v.field (jointPhysicalPolynomial s P) + (y : SourceHilbert hμ U)) = + (∫ z : JointKernelSpace, (x.1.1.1 z.fst : ℂ) * (y.1.1.1 z.snd : ℂ) * + eval (jointPhysicalMidpoint s (jointComplexCoordinates z)) P).re := by + simpa only [eval_jointPhysicalPolynomial] using + jointPolynomial_field_pairing hμ U v (jointPhysicalPolynomial s P) x y + +theorem jointPhysicalPolynomial_momentum_pairing {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (v : JointSourceMomentFamily hμ U) + (s : ℝ) (P : MvPolynomial (Fin 6) ℂ) (x y : SourceTestSpace hμ U) : + inner ℝ (x : SourceHilbert hμ U) + (jointPolynomialMomentOperator (𝕜 := ℝ) v.momentum (jointPhysicalPolynomial s P) + (y : SourceHilbert hμ U)) = + (∫ z : JointKernelSpace, (x.1.2.1 z.fst : ℂ) * (y.1.2.1 z.snd : ℂ) * + eval (jointPhysicalMidpoint s (jointComplexCoordinates z)) P).re := by + simpa only [eval_jointPhysicalPolynomial] using + jointPolynomial_momentum_pairing hμ U v (jointPhysicalPolynomial s P) x y + +theorem jointMidpointMomentOperator_rank_le + {𝕜 E : Type*} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] + (v : (Fin 3 → ℕ) → E) (s : ℝ) (F : (Fin 6 → ℂ) → ℂ) (n : ℕ) : + Module.finrank 𝕜 (jointPolynomialMomentOperator (𝕜 := 𝕜) v + (jointPhysicalPolynomial s (jointMidpointPolynomial F n))).toLinearMap.range ≤ + (9 * n + 1) ^ 3 := by + exact finrank_jointPolynomialMomentOperator_le v _ + ((totalDegree_jointPhysicalPolynomial_le s _).trans (jointMidpointPolynomial_degree F n)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialMomentRange.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialMomentRange.lean new file mode 100644 index 0000000000..8c00055167 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialMomentRange.lean @@ -0,0 +1,98 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceMomentVectors +public import Mathlib.LinearAlgebra.Dimension.Constructions +public import Mathlib.Analysis.InnerProductSpace.LinearMap + +/-! +# Actual moment vectors and their finite-dimensional degree ranges + +The original joint source norm is used throughout. The proved weighted +moment theorem supplies genuine Riesz vectors; taking real parts removes +the auxiliary complexification without changing any real test moment. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification +open scoped InnerProductSpace + +/-- Two actual moment families in the original real source completion. -/ +structure JointSourceMomentFamily {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) where + /-- Spatial monomial moments in the field component of the real source space. -/ + field : (Fin 3 → ℕ) → SourceHilbert hμ U + /-- Spatial monomial moments in the momentum component of the real source space. -/ + momentum : (Fin 3 → ℕ) → SourceHilbert hμ U + field_pairing : ∀ α (u : SourceTestSpace hμ U), + inner ℝ (u : SourceHilbert hμ U) (field α) = spatialRealTestMoment u.1.1 α + momentum_pairing : ∀ α (u : SourceTestSpace hμ U), + inner ℝ (u : SourceHilbert hμ U) (momentum α) = spatialRealTestMoment u.1.2 α + +theorem exists_jointSourceMomentFamily {μ T : ℝ} (hμ : 0 < μ) (hT : 0 < T) + (U : Set (EuclideanSpace ℝ (Fin 3))) (hU : U ⊆ Metric.ball 0 T) : + Nonempty (JointSourceMomentFamily hμ U) := by + obtain ⟨C, hC, h⟩ := exists_weightedSource_moment_vectors + (show (1 / 2 : ℝ) ≤ 1 / 2 by rfl) (by norm_num : (1 / 2 : ℝ) < 1) + have hv (α : Fin 3 → ℕ) : ∃ u v : SourceHilbert hμ U, + (∀ x : SourceTestSpace hμ U, + inner ℝ (x : SourceHilbert hμ U) u = spatialRealTestMoment x.1.1 α) ∧ + (∀ x : SourceTestSpace hμ U, + inner ℝ (x : SourceHilbert hμ U) v = spatialRealTestMoment x.1.2 α) := by + obtain ⟨u, v, _, _, hu, hv⟩ := h μ hμ T hT U hU α + refine ⟨((sourceReserve hμ U ^ (1 / 2 : ℝ)) u).re, + ((sourceReserve hμ U ^ (1 / 2 : ℝ)) v).re, ?_, ?_⟩ + · intro x + have hx := congrArg Complex.re (hu x) + simpa only [HilbertComplexification.inner_eq, ofReal_re, ofReal_im, + inner_zero_left, add_zero, Complex.ofReal_re] using hx + · intro x + have hx := congrArg Complex.re (hv x) + simpa only [HilbertComplexification.inner_eq, ofReal_re, ofReal_im, + inner_zero_left, add_zero, Complex.ofReal_re] using hx + choose u v hu hv using hv + exact ⟨⟨u, v, hu, hv⟩⟩ + +/-- A canonical choice from the actual moment-vector existence theorem. -/ +def jointSourceMomentFamily {μ T : ℝ} (hμ : 0 < μ) (hT : 0 < T) + (U : Set (EuclideanSpace ℝ (Fin 3))) (hU : U ⊆ Metric.ball 0 T) : + JointSourceMomentFamily hμ U := + Classical.choice (exists_jointSourceMomentFamily hμ hT U hU) + +section DegreeRange +variable {𝕜 E : Type*} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] + +/-- A coordinate degree box has only cubic cardinality. -/ +def spatialMomentDegreeRange (v : (Fin 3 → ℕ) → E) (D : ℕ) : Submodule 𝕜 E := + Submodule.span 𝕜 (Set.range fun α : Fin 3 → Fin (D + 1) => v (fun i => (α i).val)) + +instance finiteDimensional_spatialMomentDegreeRange + (v : (Fin 3 → ℕ) → E) (D : ℕ) : + FiniteDimensional 𝕜 (spatialMomentDegreeRange (𝕜 := 𝕜) v D) := + FiniteDimensional.span_of_finite 𝕜 (Set.finite_range _) + +theorem mem_spatialMomentDegreeRange (v : (Fin 3 → ℕ) → E) (D : ℕ) + (α : Fin 3 → ℕ) (hα : ∀ i, α i ≤ D) : + v α ∈ spatialMomentDegreeRange (𝕜 := 𝕜) v D := by + apply Submodule.subset_span + refine ⟨fun i => ⟨α i, Nat.lt_succ_of_le (hα i)⟩, rfl⟩ + +theorem finrank_spatialMomentDegreeRange_le (v : (Fin 3 → ℕ) → E) (D : ℕ) : + Module.finrank 𝕜 (spatialMomentDegreeRange (𝕜 := 𝕜) v D) ≤ (D + 1) ^ 3 := by + calc + _ ≤ Fintype.card (Fin 3 → Fin (D + 1)) := + finrank_range_le_card (R := 𝕜) + (fun α : Fin 3 → Fin (D + 1) => v (fun i => (α i).val)) + _ = (D + 1) ^ 3 := by simp only [Fintype.card_fun, Fintype.card_fin] + +end DegreeRange +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialOperatorIdentification.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialOperatorIdentification.lean new file mode 100644 index 0000000000..e8ef4654e2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialOperatorIdentification.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialPatchDifference +public import LeanPool.VacuumBellSeparation.FreeField.JointKernelOperatorLinearity +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialMidpointForm +public import LeanPool.VacuumBellSeparation.FreeField.JointDifferenceOperator + +/-! +# The convergent approximants are the actual finite moment operators + +The identity is established in the original joint source completion by +the literal compact-test integrals. The moment family can be any family +constructed from those same test moments; density makes the answer unique. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian MvPolynomial +open scoped SchwartzMap InnerProductSpace + +theorem jointFieldPolynomial_operator_eq {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + (v : JointSourceMomentFamily hμ (jointSourceRegion s)) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) (n : ℕ) : + jointFourFieldKernelOperator hμ (jointSourceRegion s) (jointPolynomialErrorPatch hs F hF 0) - + jointFourFieldKernelOperator hμ (jointSourceRegion s) (jointPolynomialErrorPatch hs F hF n) = + jointPolynomialMomentOperator (𝕜 := ℝ) v.field (jointPhysicalPolynomial s + (jointMidpointPolynomial F n)) := by + rw [← jointFourFieldKernelOperator_sub] + apply completionOperator_eq_of_test_pairings + intro x y + rw [jointPhysicalPolynomial_field_pairing] + exact jointFourFieldKernelOperator_pairing hμ (jointCenterIndex s) + (fun i j => jointPolynomialErrorPatch hs F hF 0 i j - jointPolynomialErrorPatch hs F hF n i j) + (fun z => eval (jointPhysicalMidpoint s (jointComplexCoordinates z)) + (jointMidpointPolynomial F n)) + (jointPolynomialErrorPatch_sub_sum hs F hF n) x y + +theorem jointMomentumPolynomial_operator_eq {μ s : ℝ} (hμ : 0 < μ) (hs : 600 ≤ s) + (v : JointSourceMomentFamily hμ (jointSourceRegion s)) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) (n : ℕ) : + jointFourMomentumKernelOperator hμ (jointCenterIndex s 0) (jointCenterIndex s 1) + (jointPolynomialErrorPatch hs F hF 0) - + jointFourMomentumKernelOperator hμ (jointCenterIndex s 0) (jointCenterIndex s 1) + (jointPolynomialErrorPatch hs F hF n) = + jointPolynomialMomentOperator (𝕜 := ℝ) v.momentum (jointPhysicalPolynomial s + (jointMidpointPolynomial F n)) := by + rw [← jointFourMomentumKernelOperator_sub] + apply completionOperator_eq_of_test_pairings + intro x y + -- The kernel operator lives on the unfolded union of balls; compose the two + -- pairing identities instead of rewriting across the two spellings of the region. + refine (jointFourMomentumKernelOperator_pairing hμ (jointCenterIndex s) + (fun i j => jointPolynomialErrorPatch hs F hF 0 i j - jointPolynomialErrorPatch hs F hF n i j) + (fun z => eval (jointPhysicalMidpoint s (jointComplexCoordinates z)) + (jointMidpointPolynomial F n)) + (jointPolynomialErrorPatch_sub_sum hs F hF n) x y).trans ?_ + exact (jointPhysicalPolynomial_momentum_pairing hμ (jointSourceRegion s) v s + (jointMidpointPolynomial F n) x y).symm + +/-- Exact equality with two genuine finite sums of original moment vectors. -/ +theorem jointPolynomialKernelOperator_eq_moments {μ s : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) (v : JointSourceMomentFamily hμ (jointSourceRegion s)) (n : ℕ) : + jointPolynomialKernelOperator hμ hs n = + jointPolynomialMomentOperator (𝕜 := ℝ) v.field + (jointPhysicalPolynomial s (jointMidpointPolynomial (jointNormalizedFieldKernel μ s) n)) + + jointPolynomialMomentOperator (𝕜 := ℝ) v.momentum + (jointPhysicalPolynomial s (jointMidpointPolynomial + (jointNormalizedMomentumKernel μ s) n)) := by + have hf := jointFieldPolynomial_operator_eq hμ hs v (jointNormalizedFieldKernel μ s) + (jointNormalizedFieldKernel_analyticAt hμ (by linarith)) n + have hg := jointMomentumPolynomial_operator_eq hμ hs v (jointNormalizedMomentumKernel μ s) + (jointNormalizedMomentumKernel_analyticAt hμ (by linarith)) n + change jointFieldErrorOperator hμ hs 0 - jointFieldErrorOperator hμ hs n = _ at hf + change jointMomentumErrorOperator hμ hs 0 - jointMomentumErrorOperator hμ hs n = _ at hg + rw [← hf, ← hg] + unfold jointPolynomialKernelOperator jointDifferenceKernelOperator jointErrorOperator + abel + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialPatchDifference.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialPatchDifference.lean new file mode 100644 index 0000000000..2df6a601e9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialPatchDifference.lean @@ -0,0 +1,77 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialErrorOperators + +/-! +# The actual polynomial obtained by subtracting two error patches + +The zero-order Taylor polynomial vanishes. Subtraction therefore removes +the component kernel identically, before the genuine cutoff partition +reconstructs the original physical polynomial on the joint test support. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian MvPolynomial Metric Set +open scoped SchwartzMap + +@[simp] theorem jointMidpointPolynomial_zero (F : (Fin 6 → ℂ) → ℂ) : + jointMidpointPolynomial F 0 = 0 := by + simp [jointMidpointPolynomial, jointMidpointOriented, cauchyTaylorPolynomial] + +theorem jointCenterIndex_separated {s : ℝ} (hs : 600 ≤ s) : + 5 ≤ dist (jointCenterIndex s 0) (jointCenterIndex s 1) := by + have h := PiLp.norm_apply_le (jointCenterIndex s 0 - jointCenterIndex s 1) (0 : Fin 3) + have hs₀ : 0 ≤ s := by linarith + change ‖(0 : ℝ) - (s + 0)‖ ≤ ‖jointCenterIndex s 0 - jointCenterIndex s 1‖ at h + simp only [add_zero, zero_sub, norm_neg, Real.norm_eq_abs, abs_of_nonneg hs₀] at h + rw [dist_eq_norm] + linarith + +theorem jointPolynomialErrorPatch_sub_apply {s : ℝ} (hs : 600 ≤ s) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (n : ℕ) (i j : Fin 2) (x : JointKernelSpace) : + (jointPolynomialErrorPatch hs F hF 0 i j - jointPolynomialErrorPatch hs F hF n i j) x = + jointSmoothCutoff (jointCenterIndex s i) (jointCenterIndex s j) x * + eval (jointPhysicalMidpoint s (jointComplexCoordinates x)) + (jointMidpointPolynomial F n) := by + change jointSmoothCutoff (jointCenterIndex s i) (jointCenterIndex s j) x * + jointRealPolynomialError F s 0 (decide (i = 1)) (decide (j = 1)) x - + jointSmoothCutoff (jointCenterIndex s i) (jointCenterIndex s j) x * + jointRealPolynomialError F s n (decide (i = 1)) (decide (j = 1)) x = _ + simp only [jointRealPolynomialError, Function.comp_apply, jointPhysicalPolynomialError, + jointMidpointPolynomial_zero, map_zero, sub_zero] + ring + +theorem jointPolynomialErrorPatch_sub_sum {s : ℝ} (hs : 600 ≤ s) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (n : ℕ) (x : JointKernelSpace) + (hx : x.fst ∈ closedBall (jointCenterIndex s 0) 1 ∪ closedBall (jointCenterIndex s 1) 1) + (hy : x.snd ∈ closedBall (jointCenterIndex s 0) 1 ∪ closedBall (jointCenterIndex s 1) 1) : + (∑ i : Fin 2, ∑ j : Fin 2, + (jointPolynomialErrorPatch hs F hF 0 i j - jointPolynomialErrorPatch hs F hF n i j) x) = + eval (jointPhysicalMidpoint s (jointComplexCoordinates x)) + (jointMidpointPolynomial F n) := by + simp only [jointPolynomialErrorPatch_sub_apply, jointSmoothCutoff_apply] + calc + _ = ((∑ i : Fin 2, ((jointUnitCutoffTest (jointCenterIndex s i)).1 x.fst : ℂ)) * + (∑ j : Fin 2, ((jointUnitCutoffTest (jointCenterIndex s j)).1 x.snd : ℂ))) * + eval (jointPhysicalMidpoint s (jointComplexCoordinates x)) + (jointMidpointPolynomial F n) := by + rw [Fintype.sum_mul_sum] + simp only [Finset.sum_mul] + _ = _ := by + rw [jointUnitCutoffTest_sum_eq_one _ (jointCenterIndex_separated hs) _ hx, + jointUnitCutoffTest_sum_eq_one _ (jointCenterIndex_separated hs) _ hy, one_mul, one_mul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialSelfAdjoint.lean b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialSelfAdjoint.lean new file mode 100644 index 0000000000..0a9eaabf5a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointPolynomialSelfAdjoint.lean @@ -0,0 +1,90 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialOperatorIdentification + +/-! # Self-adjointness from the literal symmetric spatial polynomial -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian MvPolynomial MeasureTheory +open scoped InnerProductSpace + +/-- Exchange the two spatial arguments of the joint kernel. -/ +def jointKernelSwap (x : JointKernelSpace) : JointKernelSpace := WithLp.toLp 2 (x.snd, x.fst) + +theorem integral_jointKernel_swap (F : JointKernelSpace → ℂ) : + (∫ x : JointKernelSpace, F (jointKernelSwap x)) = ∫ x : JointKernelSpace, F x := by + calc + _ = ∫ p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3), + F (WithLp.toLp 2 (p.2, p.1)) := + integral_jointKernel_ofLp (fun p => F (WithLp.toLp 2 (p.2, p.1))) + _ = ∫ p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3), F (WithLp.toLp 2 p) := + integral_prod_swap (fun p => F (WithLp.toLp 2 p)) + _ = _ := (integral_jointKernel_ofLp (fun p => F (WithLp.toLp 2 p))).symm + +theorem jointPhysicalMidpoint_swap (s : ℝ) (x : JointKernelSpace) : + jointPhysicalMidpoint s (jointComplexCoordinates (jointKernelSwap x)) = + jointPhysicalMidpoint s (jointComplexCoordinates x) ∘ swapSpatialSix := by + funext j + fin_cases j <;> rfl + +theorem jointPhysicalPolynomial_kernel_symmetric (F : (Fin 6 → ℂ) → ℂ) + (s : ℝ) (n : ℕ) (x : JointKernelSpace) : + eval (jointPhysicalMidpoint s (jointComplexCoordinates (jointKernelSwap x))) + (jointMidpointPolynomial F n) = + eval (jointPhysicalMidpoint s (jointComplexCoordinates x)) (jointMidpointPolynomial F n) := by + rw [jointPhysicalMidpoint_swap, eval_jointMidpointPolynomial_symmetric] + +theorem jointPhysicalPolynomial_test_integral_swap (F : (Fin 6 → ℂ) → ℂ) + (s : ℝ) (n : ℕ) (f g : SpatialTestFunction) : + (∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * + eval (jointPhysicalMidpoint s (jointComplexCoordinates x)) (jointMidpointPolynomial F n)) = + (∫ x : JointKernelSpace, (g.1 x.fst : ℂ) * (f.1 x.snd : ℂ) * + eval (jointPhysicalMidpoint s (jointComplexCoordinates x)) + (jointMidpointPolynomial F n)) := by + rw [← integral_jointKernel_swap (fun x => (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * + eval (jointPhysicalMidpoint s (jointComplexCoordinates x)) (jointMidpointPolynomial F n))] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + beta_reduce + rw [jointPhysicalPolynomial_kernel_symmetric] + change (f.1 x.snd : ℂ) * (g.1 x.fst : ℂ) * _ = _ + ring + +theorem jointFieldMomentPolynomial_isSelfAdjoint {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (v : JointSourceMomentFamily hμ U) + (F : (Fin 6 → ℂ) → ℂ) (s : ℝ) (n : ℕ) : + IsSelfAdjoint (jointPolynomialMomentOperator (𝕜 := ℝ) v.field + (jointPhysicalPolynomial s (jointMidpointPolynomial F n))) := by + apply completionOperator_isSelfAdjoint_of_test_pairings + intro x y + rw [real_inner_comm, jointPhysicalPolynomial_field_pairing, jointPhysicalPolynomial_field_pairing] + exact congrArg Complex.re (jointPhysicalPolynomial_test_integral_swap F s n y.1.1 x.1.1) + +theorem jointMomentumMomentPolynomial_isSelfAdjoint {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (v : JointSourceMomentFamily hμ U) + (F : (Fin 6 → ℂ) → ℂ) (s : ℝ) (n : ℕ) : + IsSelfAdjoint (jointPolynomialMomentOperator (𝕜 := ℝ) v.momentum + (jointPhysicalPolynomial s (jointMidpointPolynomial F n))) := by + apply completionOperator_isSelfAdjoint_of_test_pairings + intro x y + rw [real_inner_comm, jointPhysicalPolynomial_momentum_pairing, + jointPhysicalPolynomial_momentum_pairing] + exact congrArg Complex.re (jointPhysicalPolynomial_test_integral_swap F s n y.1.2 x.1.2) + +theorem jointPolynomialKernelOperator_isSelfAdjoint {μ s : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) (v : JointSourceMomentFamily hμ (jointSourceRegion s)) (n : ℕ) : + IsSelfAdjoint (jointPolynomialKernelOperator hμ hs n) := by + rw [jointPolynomialKernelOperator_eq_moments hμ hs v n] + exact (jointFieldMomentPolynomial_isSelfAdjoint hμ _ v _ s n).add + (jointMomentumMomentPolynomial_isSelfAdjoint hμ _ v _ s n) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointRealCoordinates.lean b/LeanPool/VacuumBellSeparation/FreeField/JointRealCoordinates.lean new file mode 100644 index 0000000000..69870b0a31 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointRealCoordinates.lean @@ -0,0 +1,93 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPhysicalCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelPlancherel +public import LeanPool.VacuumBellSeparation.FreeField.SpatialKernelTaylorReal + +/-! +# The actual Euclidean pair included in the six complex coordinates + +The domain is the original Euclidean product carrying six-dimensional +Lebesgue measure. Its coordinate inclusion has operator norm at most one. +The component centres are the literal original spatial centres. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Metric + +/-- Real-linear inclusion of the two actual spatial triples in complex coordinates. -/ +def jointComplexCoordinates : JointKernelSpace →L[ℝ] (Fin 6 → ℂ) := + ContinuousLinearMap.pi (fun j => Fin.addCases + (fun i : Fin 3 => Complex.ofRealCLM.comp + ((PiLp.proj 2 (fun _ : Fin 3 => ℝ) i).comp + (WithLp.fstL 2 ℝ (EuclideanSpace ℝ (Fin 3)) (EuclideanSpace ℝ (Fin 3))))) + (fun i : Fin 3 => Complex.ofRealCLM.comp + ((PiLp.proj 2 (fun _ : Fin 3 => ℝ) i).comp + (WithLp.sndL 2 ℝ (EuclideanSpace ℝ (Fin 3)) (EuclideanSpace ℝ (Fin 3))))) j) + +@[simp] theorem jointComplexCoordinates_left (x : JointKernelSpace) (i : Fin 3) : + jointComplexCoordinates x (Fin.castAdd 3 i) = (x.fst i : ℂ) := by + simp [jointComplexCoordinates] + +theorem jointComplexCoordinates_right (x : JointKernelSpace) (i : Fin 3) : + jointComplexCoordinates x (Fin.natAdd 3 i) = (x.snd i : ℂ) := by + simp only [jointComplexCoordinates, ContinuousLinearMap.pi_apply, Fin.addCases_right] + rfl + +theorem norm_jointComplexCoordinates_le : ‖jointComplexCoordinates‖ ≤ 1 := by + apply ContinuousLinearMap.opNorm_le_bound jointComplexCoordinates (by norm_num) + intro x + rw [one_mul] + apply (pi_norm_le_iff_of_nonneg (norm_nonneg x)).mpr + intro j + refine Fin.addCases (m := 3) (n := 3) (fun i => ?_) (fun i => ?_) j + · rw [jointComplexCoordinates_left, Complex.norm_real] + exact (PiLp.norm_apply_le x.fst i).trans + (WithLp.norm_fst_le (EuclideanSpace ℝ (Fin 3)) x) + · rw [jointComplexCoordinates_right, Complex.norm_real] + exact (PiLp.norm_apply_le x.snd i).trans + (WithLp.norm_snd_le (EuclideanSpace ℝ (Fin 3)) x) + +/-- Joint spatial center defined as `if a then spatialAxisDisplacement s 0 else 0`. -/ +def jointSpatialCenter (s : ℝ) (a : Bool) : EuclideanSpace ℝ (Fin 3) := + if a then spatialAxisDisplacement s 0 else 0 + +theorem jointPhysicalComponentCenter_left (s : ℝ) (a b : Bool) (i : Fin 3) : + jointPhysicalComponentCenter a b s (Fin.castAdd 3 i) = (jointSpatialCenter s a i : ℂ) := by + rw [jointPhysicalComponentCenter_eq] + fin_cases i <;> cases a <;> + simp [jointSpatialCenter, spatialAxisDisplacement] + +theorem jointPhysicalComponentCenter_right (s : ℝ) (a b : Bool) (i : Fin 3) : + jointPhysicalComponentCenter a b s (Fin.natAdd 3 i) = (jointSpatialCenter s b i : ℂ) := by + rw [jointPhysicalComponentCenter_eq] + fin_cases i <;> cases b <;> + simp [jointSpatialCenter, spatialAxisDisplacement] + +theorem jointComplexCoordinates_in_component (s r : ℝ) (a b : Bool) (x : JointKernelSpace) + (hx : x.fst ∈ closedBall (jointSpatialCenter s a) r) + (hy : x.snd ∈ closedBall (jointSpatialCenter s b) r) : + InPhysicalJointComponent a b s r (jointComplexCoordinates x) := by + have hx' : ‖x.fst - jointSpatialCenter s a‖ ≤ r := by + simpa only [mem_closedBall, dist_eq_norm] using hx + have hy' : ‖x.snd - jointSpatialCenter s b‖ ≤ r := by + simpa only [mem_closedBall, dist_eq_norm] using hy + intro j + refine Fin.addCases (m := 3) (n := 3) (fun i => ?_) (fun i => ?_) j + · rw [jointComplexCoordinates_left, jointPhysicalComponentCenter_left, + ← Complex.ofReal_sub, Complex.norm_real] + exact (PiLp.norm_apply_le (x.fst - jointSpatialCenter s a) i).trans hx' + · rw [jointComplexCoordinates_right, jointPhysicalComponentCenter_right, + ← Complex.ofReal_sub, Complex.norm_real] + exact (PiLp.norm_apply_le (x.snd - jointSpatialCenter s b) i).trans hy' + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointRealPolynomialError.lean b/LeanPool/VacuumBellSeparation/FreeField/JointRealPolynomialError.lean new file mode 100644 index 0000000000..31d23ccb0c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointRealPolynomialError.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointRealCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.JointPhysicalPolynomialError +public import LeanPool.VacuumBellSeparation.Polynomial.ComplexDerivativeRestriction +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelLocalBound + +/-! +# Actual real Euclidean derivatives of the physical polynomial error + +Complex derivative estimates are transferred by the original real-linear +coordinate inclusion. Smoothness holds on an open radius-three box around +each actual component, so the local cutoff construction applies directly. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian MvPolynomial Metric Set + +/-- Joint real polynomial error defined as `jointPhysicalPolynomialError F s n a b ∘ +jointComplexCoordinates`. -/ +def jointRealPolynomialError (F : (Fin 6 → ℂ) → ℂ) (s : ℝ) (n : ℕ) + (a b : Bool) : JointKernelSpace → ℂ := + jointPhysicalPolynomialError F s n a b ∘ jointComplexCoordinates + +/-- Set of points satisfying the joint open component box condition. -/ +def jointOpenComponentBox (s : ℝ) (a b : Bool) : Set JointKernelSpace := + {x | x.fst ∈ ball (jointSpatialCenter s a) 3 ∧ x.snd ∈ ball (jointSpatialCenter s b) 3} + +theorem isOpen_jointOpenComponentBox (s : ℝ) (a b : Bool) : + IsOpen (jointOpenComponentBox s a b) := + (isOpen_ball.preimage + (WithLp.fstL 2 ℝ (EuclideanSpace ℝ (Fin 3)) (EuclideanSpace ℝ (Fin 3))).continuous).inter + (isOpen_ball.preimage + (WithLp.sndL 2 ℝ (EuclideanSpace ℝ (Fin 3)) (EuclideanSpace ℝ (Fin 3))).continuous) + +theorem jointKernelBox_subset_openComponent (s : ℝ) (a b : Bool) : + jointKernelBox (jointSpatialCenter s a) (jointSpatialCenter s b) 2 ⊆ + jointOpenComponentBox s a b := by + intro x hx + exact ⟨lt_of_le_of_lt hx.1 (by norm_num : (2 : ℝ) < 3), + lt_of_le_of_lt hx.2 (by norm_num : (2 : ℝ) < 3)⟩ + +theorem jointRealPolynomialError_contDiffOn {s : ℝ} (hs : 600 ≤ s) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (n : ℕ) (a b : Bool) : + ContDiffOn ℝ (⊤ : ℕ∞) (jointRealPolynomialError F s n a b) (jointOpenComponentBox s a b) := by + intro x hx + have hs₀ : 0 < s := by linarith + have hsmall : 3 / s ≤ 1 / 100 := (div_le_iff₀ hs₀).mpr (by linarith) + have hw := (jointComplexCoordinates_in_component s 3 a b x + (ball_subset_closedBall hx.1) (ball_subset_closedBall hx.2)).normalize hs₀ + have ha : AnalyticAt ℂ (jointPhysicalPolynomialError F s n a b) (jointComplexCoordinates x) := + ((jointComponentKernel_analyticAt hsmall F hF a b _ hw).sub + (jointMidpointPolynomial_analyticAt F n _)).comp (jointPhysicalMidpoint_analyticAt s _) + have hc : ContDiffAt ℂ (⊤ : ℕ∞) (jointPhysicalPolynomialError F s n a b) + (jointComplexCoordinates x) := ha.contDiffAt + exact ((hc.restrict_scalars ℝ).comp x + jointComplexCoordinates.contDiff.contDiffAt).contDiffWithinAt + +theorem jointRealPolynomialError_derivative {s M : ℝ} (hs : 600 ≤ s) (hM : 0 ≤ M) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (hbound : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖F z‖ ≤ M) + (n : ℕ) (a b : Bool) (x : JointKernelSpace) + (hx : x ∈ jointKernelBox (jointSpatialCenter s a) (jointSpatialCenter s b) 2) + {k : ℕ} (hk : k ≤ 4) : + ‖iteratedFDeriv ℝ k (jointRealPolynomialError F s n a b) x‖ ≤ + 11680000 * M * (78643200 / s) ^ n := by + have hw := jointComplexCoordinates_in_component s 2 a b x hx.1 hx.2 + have h := jointPhysicalPolynomialError_ball hs hM F hF hbound n a b _ hw + have hs₀ : 0 < s := by linarith + exact (norm_iteratedFDeriv_real_comp_le jointComplexCoordinates norm_jointComplexCoordinates_le + x (by positivity) h.1 h.2 hk).trans_eq (by ring) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointRegionMomentFamily.lean b/LeanPool/VacuumBellSeparation/FreeField/JointRegionMomentFamily.lean new file mode 100644 index 0000000000..9e372416b5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointRegionMomentFamily.lean @@ -0,0 +1,51 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialMomentRange +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialErrorOperators + +/-! # A genuine moment family for the actual union of source balls -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Set Metric + +/-- Joint source moment radius given by `2 + ‖spatialAxisDisplacement s 0‖`. -/ +def jointSourceMomentRadius (s : ℝ) : ℝ := 2 + ‖spatialAxisDisplacement s 0‖ + +theorem jointSourceMomentRadius_pos (s : ℝ) : 0 < jointSourceMomentRadius s := by + unfold jointSourceMomentRadius + positivity + +theorem jointSourceRegion_subset_moment_ball (s : ℝ) : + jointSourceRegion s ⊆ ball 0 (jointSourceMomentRadius s) := by + intro x hx + simp only [jointSourceRegion, jointCenterIndex_zero, jointCenterIndex_one, + mem_union, mem_ball, dist_zero_right] at hx + rw [mem_ball, dist_zero_right] + rcases hx with hx | hx + · refine hx.trans ?_ + unfold jointSourceMomentRadius + linarith [norm_nonneg (spatialAxisDisplacement s 0)] + · have hn := norm_add_le (x - spatialAxisDisplacement s 0) (spatialAxisDisplacement s 0) + rw [sub_add_cancel] at hn + rw [dist_eq_norm] at hx + unfold jointSourceMomentRadius + linarith + +/-- Chosen only after the actual moment-vector theorem and region geometry +have discharged existence. The family has no additional assumption. -/ +def jointRegionMomentFamily {μ : ℝ} (hμ : 0 < μ) (s : ℝ) : + JointSourceMomentFamily hμ (jointSourceRegion s) := + jointSourceMomentFamily hμ (jointSourceMomentRadius_pos s) (jointSourceRegion s) + (jointSourceRegion_subset_moment_ball s) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointReverseEnvelope.lean b/LeanPool/VacuumBellSeparation/FreeField/JointReverseEnvelope.lean new file mode 100644 index 0000000000..b6504b8c34 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointReverseEnvelope.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointWeightedIncrement +public import LeanPool.VacuumBellSeparation.Constants.Parameters + +/-! # The manuscript's fixed reverse exponent gives uniform mass decay -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian + +/-- Joint reverse unweighted constant defined as `4000 * jointPolynomialErrorConstant`. -/ +def jointReverseUnweightedConstant : ℝ := 4000 * jointPolynomialErrorConstant +/-- Joint reverse weighted constant defined as `67072 * C ^ 2 * (jointWeightedPolynomialBase (1 / +2) + 1)`. -/ +def jointReverseWeightedConstant (C : ℝ) : ℝ := + 67072 * C ^ 2 * (jointWeightedPolynomialBase (1 / 2) + 1) +/-- Joint reverse bound constant defined as `52 * 256 * jointReverseUnweightedConstant ^ (1 - +theta) * jointReverseWeightedConstant C ^ theta`. -/ +def jointReverseBoundConstant (C : ℝ) : ℝ := + 52 * 256 * jointReverseUnweightedConstant ^ (1 - theta) * jointReverseWeightedConstant C ^ theta + +theorem sourceMomentLambda_half : sourceMomentLambda (1 / 2) = Lambda0 := by + unfold sourceMomentLambda Lambda0 + rw [mul_one_div, Real.sin_pi_div_two, div_one] + +theorem jointReverseBoundConstant_pos {C : ℝ} (hC : 0 < C) : + 0 < jointReverseBoundConstant C := by + have hA : 0 < jointReverseUnweightedConstant := mul_pos + (by norm_num) jointPolynomialErrorConstant_pos + have ht := jointWeightedPolynomialBase_pos (1 / 2) + have hB : 0 < jointReverseWeightedConstant C := by unfold jointReverseWeightedConstant; positivity + unfold jointReverseBoundConstant + exact mul_pos (mul_pos (by norm_num) (Real.rpow_pos_of_pos hA _)) (Real.rpow_pos_of_pos hB _) + +theorem jointReverse_exponential_le {μ s : ℝ} (hμ : 0 < μ) (hs : 4 ≤ s) : + Real.exp (-μ * s / 2) ^ (1 - theta) * + (Real.exp (-μ * s / 2) * + Real.exp (2 * sourceMomentLambda (1 / 2) * μ * jointMidpointMomentRadius s)) ^ theta ≤ + Real.exp (-(μ * s / 8)) := by + have hms := mul_le_mul_of_nonneg_left hs hμ.le + rw [Real.mul_rpow (Real.exp_pos _).le (Real.exp_pos _).le, + ← Real.exp_mul, ← Real.exp_mul, ← Real.exp_mul, ← Real.exp_add, ← Real.exp_add] + apply Real.exp_le_exp.mpr + rw [sourceMomentLambda_half] + unfold jointMidpointMomentRadius theta Lambda0 + norm_num + nlinarith + +theorem jointReverse_envelope_le {C μ s : ℝ} (hμ : 0 < μ) (hs : 4 ≤ s) : + 52 * (4000 * jointPolynomialErrorConstant * jointCommonEnvelope μ s) ^ (1 - theta) * + jointWeightedIncrementEnvelope C μ s ^ theta ≤ jointReverseBoundConstant C * s ^ + (-gammaRev) := by + have hs₀ : 0 < s := by linarith + have hθ := theta_pos_le + have hA : 0 ≤ jointReverseUnweightedConstant := + (mul_pos (by norm_num) jointPolynomialErrorConstant_pos).le + have ht := (jointWeightedPolynomialBase_pos (1 / 2)).le + have hB : 0 ≤ jointReverseWeightedConstant C := by unfold jointReverseWeightedConstant; positivity + have hX : 1 ≤ (1 + μ * s) ^ 2 := one_le_pow₀ (le_add_of_nonneg_right (mul_nonneg hμ.le hs₀.le)) + have hXp : ((1 + μ * s) ^ 2) ^ (1 - theta) ≤ (1 + μ * s) ^ 2 := by + simpa only [Real.rpow_one] using + Real.rpow_le_rpow_of_exponent_le hX (show 1 - theta ≤ 1 by linarith) + have hsp : (1 / s ^ 2) ^ (1 - theta) = s ^ (-gammaRev) := by + rw [one_div, Real.inv_rpow (sq_nonneg s), ← Real.rpow_natCast_mul hs₀.le, + ← Real.rpow_neg hs₀.le] + rfl + have he := jointReverse_exponential_le hμ hs + have hx := one_add_sq_mul_exp_neg_le (mul_nonneg hμ.le hs₀.le) + have hdecay : ((1 + μ * s) ^ 2) ^ (1 - theta) * + (Real.exp (-μ * s / 2) ^ (1 - theta) * + (Real.exp (-μ * s / 2) * + Real.exp (2 * sourceMomentLambda (1 / 2) * μ * jointMidpointMomentRadius s)) ^ theta) + ≤ 256 := + (mul_le_mul hXp he (by positivity) (sq_nonneg _)).trans hx + have heq : + (4000 * jointPolynomialErrorConstant * jointCommonEnvelope μ s) ^ (1 - theta) * + jointWeightedIncrementEnvelope C μ s ^ theta = + (jointReverseUnweightedConstant ^ (1 - theta) * jointReverseWeightedConstant C ^ theta) * + s ^ (-gammaRev) * (((1 + μ * s) ^ 2) ^ (1 - theta) * + (Real.exp (-μ * s / 2) ^ (1 - theta) * + (Real.exp (-μ * s / 2) * + Real.exp (2 * sourceMomentLambda (1 / 2) * μ * jointMidpointMomentRadius s)) ^ + theta)) := by + change (jointReverseUnweightedConstant * + ((1 / s ^ 2) * (1 + μ * s) ^ 2 * Real.exp (-μ * s / 2))) ^ (1 - theta) * + ((jointReverseWeightedConstant C * Real.exp (-μ * s / 2)) * + Real.exp (2 * sourceMomentLambda (1 / 2) * μ * jointMidpointMomentRadius s)) ^ theta = _ + rw [mul_assoc (jointReverseWeightedConstant C), + Real.mul_rpow hA (by positivity), Real.mul_rpow (by positivity) (Real.exp_pos _).le, + Real.mul_rpow (by positivity) (sq_nonneg _), Real.mul_rpow hB (by positivity), hsp] + ring + calc + _ = 52 * ((jointReverseUnweightedConstant ^ (1 - theta) * jointReverseWeightedConstant C ^ + theta) * + s ^ (-gammaRev)) * (((1 + μ * s) ^ 2) ^ (1 - theta) * + (Real.exp (-μ * s / 2) ^ (1 - theta) * + (Real.exp (-μ * s / 2) * + Real.exp (2 * sourceMomentLambda (1 / 2) * μ * jointMidpointMomentRadius s)) ^ + theta)) := by + rw [mul_assoc 52, heq] + ring + _ ≤ 52 * ((jointReverseUnweightedConstant ^ (1 - theta) * jointReverseWeightedConstant C ^ + theta) * + s ^ (-gammaRev)) * 256 := mul_le_mul_of_nonneg_left hdecay (by positivity) + _ = _ := by unfold jointReverseBoundConstant; ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointReverseRatio.lean b/LeanPool/VacuumBellSeparation/FreeField/JointReverseRatio.lean new file mode 100644 index 0000000000..542508ed10 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointReverseRatio.lean @@ -0,0 +1,38 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointReverseEnvelope +public import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics + +/-! # One universal separation threshold controls the interpolated geometric ratio -/ + +@[expose] public section + +namespace VacuumBellSeparation +open Filter +open scoped Topology + +theorem exists_jointReverse_ratio_threshold : + ∃ S : ℝ, 157286400 ≤ S ∧ ∀ s : ℝ, S ≤ s → + (78643200 / s) ^ (1 - theta) * jointWeightedPolynomialBase (1 / 2) ^ theta ≤ 1 / 2 := by + have hu : 0 < 1 - theta := by linarith [theta_pos_le.2] + have hlim : Tendsto (fun s : ℝ => + (78643200 : ℝ) ^ (1 - theta) * s ^ (-(1 - theta)) * + jointWeightedPolynomialBase (1 / 2) ^ theta) atTop (𝓝 0) := by + simpa only [mul_zero, zero_mul] using + ((tendsto_rpow_neg_atTop hu).const_mul ((78643200 : ℝ) ^ (1 - theta))).mul_const + (jointWeightedPolynomialBase (1 / 2) ^ theta) + obtain ⟨S, hS⟩ := eventually_atTop.mp + (hlim.eventually (eventually_le_nhds (by norm_num : (0 : ℝ) < 1 / 2))) + refine ⟨max 157286400 S, le_max_left _ _, ?_⟩ + intro s hs + have hs₀ : 0 < s := lt_of_lt_of_le (by norm_num) ((le_max_left _ _).trans hs) + rw [Real.div_rpow (by norm_num) hs₀.le, div_eq_mul_inv, ← Real.rpow_neg hs₀.le] + exact hS s ((le_max_right _ _).trans hs) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointReverseReserveFactor.lean b/LeanPool/VacuumBellSeparation/FreeField/JointReverseReserveFactor.lean new file mode 100644 index 0000000000..cccde8433c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointReverseReserveFactor.lean @@ -0,0 +1,75 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointReverseRatio +public import LeanPool.VacuumBellSeparation.Gaussian.GeometricInterpolationMajorant +public import LeanPool.VacuumBellSeparation.Gaussian.InterpolatedReserveSeries + +/-! +# The actual physical reverse reserve factor with uniform decay + +The kernel difference is the original product-minus-joint covariance +operator. Its weighted and unweighted polynomial increments are derived +on that same completion; genuine interpolation and summation construct +the compact self-adjoint factor. All constants precede the mass. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian +open scoped ENNReal + +theorem exists_uniform_joint_reverse_reserve_factor : + ∃ S J : ℝ, 157286400 ≤ S ∧ 0 < J ∧ + ∀ (μ : ℝ) (hμ : 0 < μ) (s : ℝ) (hs : 600 ≤ s), S ≤ s → + ∃ Y : ComplexSourceHilbert hμ (jointSourceRegion s) →L[ℂ] + ComplexSourceHilbert hμ (jointSourceRegion s), + complexify (jointDifferenceKernelOperator hμ hs) = + sourceReserve hμ (jointSourceRegion s) ^ aRev * Y * + sourceReserve hμ (jointSourceRegion s) ^ aRev ∧ + IsCompactOperator Y ∧ IsSelfAdjoint Y ∧ + operatorTraceNorm Y ≤ ENNReal.ofReal (J * s ^ (-gammaRev)) ∧ + operatorTraceNorm Y < ∞ := by + obtain ⟨C, hC, hweighted⟩ := exists_jointWeightedIncrements + obtain ⟨S, hS, hratio⟩ := exists_jointReverse_ratio_threshold + refine ⟨S, jointReverseBoundConstant C, hS, jointReverseBoundConstant_pos hC, ?_⟩ + intro μ hμ s hs hSs + have hsbig : 157286400 ≤ s := hS.trans hSs + have hs₀ : 0 < s := by linarith + have hθ : theta ∈ Set.Ioo (0 : ℝ) 1 := ⟨theta_pos_le.1, by linarith [theta_pos_le.2]⟩ + obtain ⟨B, hB⟩ := hweighted μ hμ s hs + let A := 4000 * jointPolynomialErrorConstant * jointCommonEnvelope μ s + let W := jointWeightedIncrementEnvelope C μ s + let q := 78643200 / s + let t := jointWeightedPolynomialBase (1 / 2) + have hA : 0 ≤ A := mul_nonneg (mul_nonneg (by norm_num) jointPolynomialErrorConstant_pos.le) + (jointCommonEnvelope_nonneg μ s) + have hW : 0 ≤ W := jointWeightedIncrementEnvelope_nonneg C μ s + have hq : 0 ≤ q := by dsimp only [q]; positivity + have ht : 0 ≤ t := (jointWeightedPolynomialBase_pos _).le + have hsum := tsum_cubic_geometric_interpolation_le hA hW hq ht + ⟨hθ.1.le, hθ.2.le⟩ (hratio s hSs) + have hsumfin : (∑' n : ℕ, + ENNReal.ofReal (A * ((n : ℝ) + 1) ^ 3 * q ^ n) ^ (1 - theta) * + ENNReal.ofReal (W * t ^ n) ^ theta) < ∞ := hsum.trans_lt ENNReal.ofReal_lt_top + have htrace (n : ℕ) : operatorTraceNorm (B n) < ∞ := + (hB n).2.2.2.trans_lt ENNReal.ofReal_lt_top + obtain ⟨Y, hf, hc, ha, hn, hfin⟩ := exists_reserve_factor_of_interpolated_majorants + (sourceReserve_nonneg hμ (jointSourceRegion s)) + (fun n => (hB n).1) (fun n => (hB n).2.1) htrace + (fun n => (hB n).2.2.1) (hasSum_complexified_jointPolynomialIncrement hμ hsbig) hθ + (fun n => ENNReal.ofReal (A * ((n : ℝ) + 1) ^ 3 * q ^ n)) + (fun n => ENNReal.ofReal (W * t ^ n)) + (nuclear_jointPolynomialIncrement_cubic hμ hsbig) (fun n => (hB n).2.2.2) hsumfin + refine ⟨Y, hf, hc, ha, ?_, hfin⟩ + exact (hn.trans hsum).trans (ENNReal.ofReal_le_ofReal + (jointReverse_envelope_le hμ (show 4 ≤ s by linarith))) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelCauchySchwarz.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelCauchySchwarz.lean new file mode 100644 index 0000000000..d0a5848244 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelCauchySchwarz.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelPlancherel +public import Mathlib.MeasureTheory.Integral.Bochner.Basic + +/-! +# Actual weighted Fourier Cauchy--Schwarz for Schwartz kernels + +The first estimate is a scalar integral statement on the genuine Hilbert +carrier. The polynomial majorant is then the actual mixed-derivative energy. +No source inverse or Hilbert--Schmidt operator is an input. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory FourierTransform +open scoped SchwartzMap FourierTransform ComplexConjugate + +variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] + [FiniteDimensional ℝ V] [MeasurableSpace V] [BorelSpace V] + +/-- Weighted Cauchy--Schwarz after actual Plancherel. The lower bound on +the weight also proves integrability of the inverse-weighted test term. -/ +theorem weighted_schwartz_pairing_le (K H : SchwartzMap V ℂ) + (W : V → ℝ) (hWc : Continuous W) (hW : ∀ ξ, 1 ≤ W ξ) + (hK : Integrable (fun ξ => W ξ * ‖(𝓕 K) ξ‖ ^ 2)) : + ‖∫ x, conj (H x) * K x‖ ≤ + Real.sqrt (∫ ξ, W ξ * ‖(𝓕 K) ξ‖ ^ 2) * + Real.sqrt (∫ ξ, (W ξ)⁻¹ * ‖(𝓕 H) ξ‖ ^ 2) := by + have hWpos (ξ : V) : 0 < W ξ := lt_of_lt_of_le zero_lt_one (hW ξ) + let a : V → ℝ := fun ξ => Real.sqrt (W ξ) * ‖(𝓕 K) ξ‖ + let b : V → ℝ := fun ξ => (Real.sqrt (W ξ))⁻¹ * ‖(𝓕 H) ξ‖ + have hac : Continuous a := (Real.continuous_sqrt.comp hWc).mul (𝓕 K).continuous.norm + have hbc : Continuous b := ((Real.continuous_sqrt.comp hWc).inv₀ + (fun ξ => (Real.sqrt_pos.2 (hWpos ξ)).ne')).mul (𝓕 H).continuous.norm + have ha0 (ξ : V) : 0 ≤ a ξ := mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _) + have hb0 (ξ : V) : 0 ≤ b ξ := mul_nonneg (inv_nonneg.mpr (Real.sqrt_nonneg _)) (norm_nonneg _) + have ha2 (ξ : V) : (a ξ) ^ 2 = W ξ * ‖(𝓕 K) ξ‖ ^ 2 := by + dsimp only [a] + rw [mul_pow, Real.sq_sqrt (hWpos ξ).le] + have hb2 (ξ : V) : (b ξ) ^ 2 = (W ξ)⁻¹ * ‖(𝓕 H) ξ‖ ^ 2 := by + dsimp only [b] + rw [mul_pow, inv_pow, Real.sq_sqrt (hWpos ξ).le] + have hib : Integrable (fun ξ => (W ξ)⁻¹ * ‖(𝓕 H) ξ‖ ^ 2) := by + apply (((𝓕 H).memLp 2).norm.integrable_sq).mono' + (((hWc.inv₀ (fun ξ => (hWpos ξ).ne')).mul ((𝓕 H).continuous.norm.pow 2)).aestronglyMeasurable) + exact Filter.Eventually.of_forall fun ξ => by + change ‖(W ξ)⁻¹ * ‖(𝓕 H) ξ‖ ^ 2‖ ≤ ‖(𝓕 H) ξ‖ ^ 2 + rw [Real.norm_of_nonneg (mul_nonneg (inv_nonneg.mpr (hWpos ξ).le) (sq_nonneg _))] + exact mul_le_of_le_one_left (sq_nonneg _) ((inv_le_one₀ (hWpos ξ)).mpr (hW ξ)) + have haLp : MemLp a (ENNReal.ofReal 2) := by + rw [show ENNReal.ofReal (2 : ℝ) = 2 by norm_num] + apply (memLp_two_iff_integrable_sq hac.aestronglyMeasurable).mpr + simpa only [ha2] using hK + have hbLp : MemLp b (ENNReal.ofReal 2) := by + rw [show ENNReal.ofReal (2 : ℝ) = 2 by norm_num] + apply (memLp_two_iff_integrable_sq hbc.aestronglyMeasurable).mpr + simpa only [hb2] using hib + have hcs := integral_mul_norm_le_Lp_mul_Lq Real.HolderConjugate.two_two haLp hbLp + have haa (ξ : V) : ‖a ξ‖ = a ξ := Real.norm_of_nonneg (ha0 ξ) + have hbb (ξ : V) : ‖b ξ‖ = b ξ := Real.norm_of_nonneg (hb0 ξ) + simp only [haa, hbb, Real.rpow_two, ← Real.sqrt_eq_rpow, ha2, hb2] at hcs + have hab (ξ : V) : a ξ * b ξ = ‖(𝓕 H) ξ‖ * ‖(𝓕 K) ξ‖ := by + dsimp only [a, b] + have hs : Real.sqrt (W ξ) ≠ 0 := (Real.sqrt_pos.2 (hWpos ξ)).ne' + field_simp + have hp : (∫ x, conj (H x) * K x) = ∫ ξ, conj ((𝓕 H) ξ) * (𝓕 K) ξ := by + simpa only [RCLike.inner_apply'] using + (SchwartzMap.integral_inner_fourier_fourier H K).symm + rw [hp] + calc + _ ≤ ∫ ξ, ‖conj ((𝓕 H) ξ) * (𝓕 K) ξ‖ := norm_integral_le_integral_norm _ + _ = ∫ ξ, a ξ * b ξ := by + apply integral_congr_ae + exact Filter.Eventually.of_forall fun ξ => by + change ‖conj ((𝓕 H) ξ) * (𝓕 K) ξ‖ = a ξ * b ξ + rw [norm_mul, Complex.norm_conj, hab] + _ ≤ _ := hcs + +/-- Joint kernel polynomial weight given by `(1 + (2 * Real.pi) ^ 2 * ‖ξ.fst‖ ^ 2) * (1 + (2 * +Real.pi) ^ 2 * ‖ξ.snd‖ ^ 2)`. -/ +def jointKernelPolynomialWeight (ξ : JointKernelSpace) : ℝ := + (1 + (2 * Real.pi) ^ 2 * ‖ξ.fst‖ ^ 2) * + (1 + (2 * Real.pi) ^ 2 * ‖ξ.snd‖ ^ 2) + +theorem jointKernelPolynomialWeight_one_le (ξ : JointKernelSpace) : + 1 ≤ jointKernelPolynomialWeight ξ := by + unfold jointKernelPolynomialWeight + have h1 : 0 ≤ (2 * Real.pi) ^ 2 * ‖ξ.fst‖ ^ 2 := by positivity + have h2 : 0 ≤ (2 * Real.pi) ^ 2 * ‖ξ.snd‖ ^ 2 := by positivity + nlinarith + +theorem continuous_jointKernelPolynomialWeight : Continuous jointKernelPolynomialWeight := by + unfold jointKernelPolynomialWeight + fun_prop + +/-- The actual kernel pairing is bounded by the explicit sixteen-term +mixed energy and the inverse polynomial Fourier weight of the test. -/ +theorem jointKernel_pairing_le (K H : SchwartzMap JointKernelSpace ℂ) : + ‖∫ x, conj (H x) * K x‖ ≤ + Real.sqrt (jointKernelDerivativeEnergy K) * + Real.sqrt (∫ ξ, (jointKernelPolynomialWeight ξ)⁻¹ * ‖(𝓕 H) ξ‖ ^ 2) := by + have h := weighted_schwartz_pairing_le K H jointKernelPolynomialWeight + continuous_jointKernelPolynomialWeight jointKernelPolynomialWeight_one_le + (integrable_jointKernel_frequency_weight K) + simpa only [jointKernelPolynomialWeight, integral_jointKernel_frequency_weight] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelComponentForm.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelComponentForm.lean new file mode 100644 index 0000000000..ff1d67f221 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelComponentForm.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelOriginalForm + +/-! # Original test pairings supported in a single component -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open MeasureTheory Set Metric +open scoped SchwartzMap InnerProductSpace + +theorem jointUnitCutoffTest_eq_ite (c : Fin 2 → EuclideanSpace ℝ (Fin 3)) + (hc : 5 ≤ dist (c 0) (c 1)) (a i : Fin 2) (x : EuclideanSpace ℝ (Fin 3)) + (hx : x ∈ closedBall (c a) 1) : + (jointUnitCutoffTest (c i)).1 x = if i = a then 1 else 0 := by + by_cases hia : i = a + · subst i + rw [ite_eq_left rfl] + exact jointUnitCutoffTest_eq_one _ _ hx + · rw [ite_eq_right hia] + have hd : 5 ≤ dist (c a) (c i) := by + fin_cases a <;> fin_cases i + · exact (hia rfl).elim + · exact hc + · rw [dist_comm] + exact hc + · exact (hia rfl).elim + exact jointUnitCutoffTest_zero_other _ _ _ hd hx + +theorem jointSmoothCutoff_four_sum_on_component (c : Fin 2 → EuclideanSpace ℝ (Fin 3)) + (hc : 5 ≤ dist (c 0) (c 1)) (H : Fin 2 → Fin 2 → JointKernelSpace → ℂ) + (a b : Fin 2) (x : JointKernelSpace) + (hx : x.fst ∈ closedBall (c a) 1) (hy : x.snd ∈ closedBall (c b) 1) : + (∑ i : Fin 2, ∑ j : Fin 2, jointSmoothCutoff (c i) (c j) x * H i j x) = H a b x := by + classical + simp only [jointSmoothCutoff_apply, jointUnitCutoffTest_eq_ite c hc a _ _ hx, + jointUnitCutoffTest_eq_ite c hc b _ _ hy] + fin_cases a <;> fin_cases b <;> norm_num [Fin.sum_univ_two] + +theorem jointKernel_four_integrals_on_component + (p q : EuclideanSpace ℝ (Fin 3)) + (K : Fin 2 → Fin 2 → SchwartzMap JointKernelSpace ℂ) (H : JointKernelSpace → ℂ) + (hK : ∀ x, x.fst ∈ closedBall p 1 → x.snd ∈ closedBall q 1 → + (∑ i : Fin 2, ∑ j : Fin 2, K i j x) = H x) + (f g : SpatialTestFunction) + (hf : Function.support f.1 ⊆ closedBall p 1) (hg : Function.support g.1 ⊆ closedBall q 1) : + (∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * H x) = + ∑ i : Fin 2, ∑ j : Fin 2, + ∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * K i j x := by + have he (x : JointKernelSpace) : + (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * H x = + ∑ i : Fin 2, ∑ j : Fin 2, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * K i j x := by + by_cases hx : f.1 x.fst = 0 + · simp only [hx, Complex.ofReal_zero, zero_mul, Finset.sum_const_zero] + by_cases hy : g.1 x.snd = 0 + · simp only [hy, Complex.ofReal_zero, mul_zero, zero_mul, Finset.sum_const_zero] + rw [← hK x (hf hx) (hg hy)] + simp only [Finset.mul_sum] + simp_rw [he] + rw [integral_finsetSum Finset.univ (fun i _ => + integrable_finsetSum Finset.univ (fun j _ => integrable_jointKernelTest (K i j) f g))] + apply Finset.sum_congr rfl + intro i hi + exact integral_finsetSum Finset.univ (fun j _ => integrable_jointKernelTest (K i j) f g) + +theorem jointFourFieldKernelOperator_pairing_component {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (p q : EuclideanSpace ℝ (Fin 3)) + (K : Fin 2 → Fin 2 → SchwartzMap JointKernelSpace ℂ) (H : JointKernelSpace → ℂ) + (hK : ∀ x, x.fst ∈ closedBall p 1 → x.snd ∈ closedBall q 1 → + (∑ i : Fin 2, ∑ j : Fin 2, K i j x) = H x) + (u v : SourceTestSpace hμ U) + (hu : Function.support u.1.1.1 ⊆ closedBall p 1) + (hv : Function.support v.1.1.1 ⊆ closedBall q 1) : + inner ℝ (u : SourceHilbert hμ U) + (jointFourFieldKernelOperator hμ U K (v : SourceHilbert hμ U)) = + (∫ x : JointKernelSpace, (u.1.1.1 x.fst : ℂ) * (v.1.1.1 x.snd : ℂ) * H x).re := by + rw [jointKernel_four_integrals_on_component p q K H hK u.1.1 v.1.1 hu hv] + simp only [jointFourFieldKernelOperator, sum_apply, inner_sum, + jointFieldKernelOperator_pairing, Complex.re_sum] + +theorem jointFourMomentumKernelOperator_pairing_component {μ : ℝ} (hμ : 0 < μ) + (c₀ c₁ p q : EuclideanSpace ℝ (Fin 3)) + (K : Fin 2 → Fin 2 → SchwartzMap JointKernelSpace ℂ) (H : JointKernelSpace → ℂ) + (hK : ∀ x, x.fst ∈ closedBall p 1 → x.snd ∈ closedBall q 1 → + (∑ i : Fin 2, ∑ j : Fin 2, K i j x) = H x) + (u v : SourceTestSpace hμ (ball c₀ 1 ∪ ball c₁ 1)) + (hu : Function.support u.1.2.1 ⊆ closedBall p 1) + (hv : Function.support v.1.2.1 ⊆ closedBall q 1) : + inner ℝ (u : SourceHilbert hμ (ball c₀ 1 ∪ ball c₁ 1)) + (jointFourMomentumKernelOperator hμ c₀ c₁ K + (v : SourceHilbert hμ (ball c₀ 1 ∪ ball c₁ 1))) = + (∫ x : JointKernelSpace, (u.1.2.1 x.fst : ℂ) * (v.1.2.1 x.snd : ℂ) * H x).re := by + rw [jointKernel_four_integrals_on_component p q K H hK u.1.2 v.1.2 hu hv] + simp only [jointFourMomentumKernelOperator, sum_apply, inner_sum, + jointMomentumKernelOperator_pairing, Complex.re_sum] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelCutoff.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelCutoff.lean new file mode 100644 index 0000000000..e2ab6aa11f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelCutoff.lean @@ -0,0 +1,141 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelForms +public import Mathlib.Analysis.Calculus.BumpFunction.InnerProduct +public import Mathlib.Analysis.Calculus.ContDiff.Bounds + +/-! +# Fixed-size translated cutoffs for the four kernel patches + +Each real cutoff is one on its radius-one ball and supported in the +radius-two ball. Their product is an actual Schwartz map on the Euclidean +six-dimensional carrier. Translation preserves every derivative bound; +the constants below are values of one fixed Schwartz seminorm. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Set Metric +open scoped SchwartzMap + +/-- Joint unit bump represented by `1`. -/ +def jointUnitBump (a : EuclideanSpace ℝ (Fin 3)) : ContDiffBump a := + ⟨1, 2, zero_lt_one, one_lt_two⟩ + +/-- Joint unit cutoff test represented by `jointUnitBump a`. -/ +def jointUnitCutoffTest (a : EuclideanSpace ℝ (Fin 3)) : SpatialTestFunction := + ⟨jointUnitBump a, (jointUnitBump a).contDiff, (jointUnitBump a).hasCompactSupport⟩ + +theorem jointUnitCutoffTest_eq_one (a x : EuclideanSpace ℝ (Fin 3)) + (hx : x ∈ closedBall a 1) : (jointUnitCutoffTest a).1 x = 1 := + (jointUnitBump a).one_of_mem_closedBall hx + +theorem tsupport_jointUnitCutoffTest (a : EuclideanSpace ℝ (Fin 3)) : + tsupport (jointUnitCutoffTest a).1 = closedBall a 2 := + (jointUnitBump a).tsupport_eq + +theorem jointUnitCutoffTest_translate (a x : EuclideanSpace ℝ (Fin 3)) : + (jointUnitCutoffTest a).1 x = (jointUnitCutoffTest 0).1 (x - a) := by + simp only [jointUnitCutoffTest, ContDiffBump.apply, jointUnitBump, sub_zero] + +/-- Joint smooth cutoff obtained from `jointSpatialTestProduct`. -/ +def jointSmoothCutoff (a b : EuclideanSpace ℝ (Fin 3)) : SchwartzMap JointKernelSpace ℂ := + jointSpatialTestProduct (jointUnitCutoffTest a) (jointUnitCutoffTest b) + +@[simp] theorem jointSmoothCutoff_apply (a b : EuclideanSpace ℝ (Fin 3)) + (x : JointKernelSpace) : + jointSmoothCutoff a b x = + ((jointUnitCutoffTest a).1 x.fst : ℂ) * ((jointUnitCutoffTest b).1 x.snd : ℂ) := rfl + +theorem jointSmoothCutoff_eq_one (a b : EuclideanSpace ℝ (Fin 3)) + (x : JointKernelSpace) (hx : x.fst ∈ closedBall a 1) (hy : x.snd ∈ closedBall b 1) : + jointSmoothCutoff a b x = 1 := by + rw [jointSmoothCutoff_apply, jointUnitCutoffTest_eq_one a x.fst hx, + jointUnitCutoffTest_eq_one b x.snd hy, Complex.ofReal_one, one_mul] + +/-- Set of points satisfying the joint kernel box condition with membership specified by `{x | +x.fst ∈ closedBall a r ∧ x.snd ∈ closedBall b r}`. -/ +def jointKernelBox (a b : EuclideanSpace ℝ (Fin 3)) (r : ℝ) : Set JointKernelSpace := + {x | x.fst ∈ closedBall a r ∧ x.snd ∈ closedBall b r} + +theorem isClosed_jointKernelBox (a b : EuclideanSpace ℝ (Fin 3)) (r : ℝ) : + IsClosed (jointKernelBox a b r) := + (isClosed_closedBall.preimage + (WithLp.fstL 2 ℝ (EuclideanSpace ℝ (Fin 3)) (EuclideanSpace ℝ (Fin 3))).continuous).inter + (isClosed_closedBall.preimage + (WithLp.sndL 2 ℝ (EuclideanSpace ℝ (Fin 3)) (EuclideanSpace ℝ (Fin 3))).continuous) + +theorem tsupport_jointSmoothCutoff_subset (a b : EuclideanSpace ℝ (Fin 3)) : + tsupport (jointSmoothCutoff a b) ⊆ jointKernelBox a b 2 := by + apply closure_minimal ?_ (isClosed_jointKernelBox a b 2) + intro x hx + have hh : ((jointUnitCutoffTest a).1 x.fst : ℂ) ≠ 0 ∧ + ((jointUnitCutoffTest b).1 x.snd : ℂ) ≠ 0 := mul_ne_zero_iff.mp hx + have ha : x.fst ∈ tsupport (jointUnitCutoffTest a).1 := subset_tsupport _ (by exact_mod_cast hh.1) + have hb : x.snd ∈ tsupport (jointUnitCutoffTest b).1 := subset_tsupport _ (by exact_mod_cast hh.2) + exact ⟨by rwa [tsupport_jointUnitCutoffTest] at ha, + by rwa [tsupport_jointUnitCutoffTest] at hb⟩ + +theorem jointSmoothCutoff_translate (a b : EuclideanSpace ℝ (Fin 3)) : + (jointSmoothCutoff a b : JointKernelSpace → ℂ) = + fun x => jointSmoothCutoff 0 0 (x - WithLp.toLp 2 (a, b)) := by + funext x + rw [jointSmoothCutoff_apply, jointSmoothCutoff_apply, + jointUnitCutoffTest_translate a, jointUnitCutoffTest_translate b] + rfl + +/-- Finite constants come from one actual fixed compact cutoff. -/ +def jointCutoffDerivativeBound (n : ℕ) : ℝ := + SchwartzMap.seminorm ℝ 0 n (jointSmoothCutoff 0 0) + +theorem jointCutoffDerivativeBound_nonneg (n : ℕ) : 0 ≤ jointCutoffDerivativeBound n := + apply_nonneg _ _ + +/-- Uniformity is exact translation invariance, for every derivative order. -/ +theorem norm_iteratedFDeriv_jointSmoothCutoff_le (a b : EuclideanSpace ℝ (Fin 3)) + (n : ℕ) (x : JointKernelSpace) : + ‖iteratedFDeriv ℝ n (jointSmoothCutoff a b) x‖ ≤ jointCutoffDerivativeBound n := by + rw [jointSmoothCutoff_translate, iteratedFDeriv_comp_sub] + exact (jointSmoothCutoff 0 0).norm_iteratedFDeriv_le_seminorm ℝ n _ + +/-- A genuinely smooth scalar kernel times the actual fixed-size cutoff +is Schwartz, regardless of its behavior at spatial infinity. -/ +def cutOffJointSmoothKernel (a b : EuclideanSpace ℝ (Fin 3)) + (H : JointKernelSpace → ℂ) (hH : ContDiff ℝ (⊤ : ℕ∞) H) : SchwartzMap JointKernelSpace ℂ := + ((hasCompactSupport_jointSpatialTestProduct (jointUnitCutoffTest a) + (jointUnitCutoffTest b)).mul_right (f' := H)).toSchwartzMap + (((jointSmoothCutoff a b).smooth (⊤ : ℕ∞)).mul hH) + +@[simp] theorem cutOffJointSmoothKernel_apply (a b : EuclideanSpace ℝ (Fin 3)) + (H : JointKernelSpace → ℂ) (hH : ContDiff ℝ (⊤ : ℕ∞) H) (x : JointKernelSpace) : + cutOffJointSmoothKernel a b H hH x = jointSmoothCutoff a b x * H x := rfl + +theorem cutOffJointSmoothKernel_eq (a b : EuclideanSpace ℝ (Fin 3)) + (H : JointKernelSpace → ℂ) (hH : ContDiff ℝ (⊤ : ℕ∞) H) + (x : JointKernelSpace) (hx : x.fst ∈ closedBall a 1) (hy : x.snd ∈ closedBall b 1) : + cutOffJointSmoothKernel a b H hH x = H x := by + rw [cutOffJointSmoothKernel_apply, jointSmoothCutoff_eq_one a b x hx hy, one_mul] + +theorem norm_iteratedFDeriv_cutOffJointSmoothKernel_le + (a b : EuclideanSpace ℝ (Fin 3)) (H : JointKernelSpace → ℂ) + (hH : ContDiff ℝ (⊤ : ℕ∞) H) (n : ℕ) (x : JointKernelSpace) : + ‖iteratedFDeriv ℝ n (cutOffJointSmoothKernel a b H hH) x‖ ≤ + ∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * jointCutoffDerivativeBound i * + ‖iteratedFDeriv ℝ (n - i) H x‖ := by + apply (norm_iteratedFDeriv_mul_le ((jointSmoothCutoff a b).smooth (⊤ : ℕ∞)) hH x (by simp)).trans + apply Finset.sum_le_sum + intro i hi + exact mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_left (norm_iteratedFDeriv_jointSmoothCutoff_le a b i x) + (Nat.cast_nonneg _)) (norm_nonneg _) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelEnergyBound.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelEnergyBound.lean new file mode 100644 index 0000000000..54528e2bec --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelEnergyBound.lean @@ -0,0 +1,150 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelCutoff +public import Mathlib.MeasureTheory.Group.Measure + +/-! +# Uniform energy control on actual translated kernel boxes + +The box has genuine Euclidean six-volume. Translation makes that volume +independent of the two centers. The sixteen Plancherel terms are bounded +using the actual first and mixed directional derivatives, with no extra +rank or kernel-operator hypothesis. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory Set Metric LineDeriv +open scoped SchwartzMap LineDeriv + +theorem isCompact_jointKernelBox (a b : EuclideanSpace ℝ (Fin 3)) (r : ℝ) : + IsCompact (jointKernelBox a b r) := by + let e := WithLp.prodContinuousLinearEquiv 2 ℝ + (EuclideanSpace ℝ (Fin 3)) (EuclideanSpace ℝ (Fin 3)) + have he : jointKernelBox a b r = e.symm '' (closedBall a r ×ˢ closedBall b r) := by + ext x + constructor + · intro hx + exact ⟨(x.fst, x.snd), hx, rfl⟩ + · rintro ⟨y, hy, rfl⟩ + exact hy + rw [he] + exact ((isCompact_closedBall a r).prod (isCompact_closedBall b r)).image e.symm.continuous + +theorem volume_jointKernelBox (a b : EuclideanSpace ℝ (Fin 3)) (r : ℝ) : + volume (jointKernelBox a b r) = volume (jointKernelBox 0 0 r) := by + have he : (fun x : JointKernelSpace => x + -(WithLp.toLp 2 (a, b))) ⁻¹' + jointKernelBox 0 0 r = jointKernelBox a b r := by + ext x + change (x.fst - a ∈ closedBall 0 r ∧ x.snd - b ∈ closedBall 0 r) ↔ + (x.fst ∈ closedBall a r ∧ x.snd ∈ closedBall b r) + simp only [mem_closedBall, dist_eq_norm, sub_zero] + rw [← he] + exact measure_preimage_add_right volume _ _ + +/-- Joint kernel box volume obtained from `volume.real`. -/ +def jointKernelBoxVolume : ℝ := volume.real (jointKernelBox 0 0 2) + +theorem jointKernelBoxVolume_nonneg : 0 ≤ jointKernelBoxVolume := ENNReal.toReal_nonneg + +theorem integral_sq_le_jointKernelBox {M : ℝ} (hM : 0 ≤ M) + (a b : EuclideanSpace ℝ (Fin 3)) (L : SchwartzMap JointKernelSpace ℂ) + (hs : tsupport L ⊆ jointKernelBox a b 2) + (hL : ∀ x ∈ jointKernelBox a b 2, ‖L x‖ ≤ M) : + (∫ x, ‖L x‖ ^ 2) ≤ M ^ 2 * jointKernelBoxVolume := by + have he : (∫ x, ‖L x‖ ^ 2) = ∫ x in jointKernelBox a b 2, ‖L x‖ ^ 2 := by + rw [← integral_indicator (isClosed_jointKernelBox a b 2).measurableSet] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + by_cases hx : x ∈ jointKernelBox a b 2 + · simp only [indicator_of_mem hx] + · have hz : L x = 0 := image_eq_zero_of_notMem_tsupport + (fun h => hx (hs h)) + simp only [indicator_of_notMem hx, hz, norm_zero, zero_pow (by decide : 2 ≠ 0)] + rw [he] + have h := norm_setIntegral_le_of_norm_le_const + (μ := (volume : Measure JointKernelSpace)) (isCompact_jointKernelBox a b 2).measure_lt_top + (f := fun x => ‖L x‖ ^ 2) (C := M ^ 2) (fun x hx => by + rw [Real.norm_of_nonneg (sq_nonneg _)] + nlinarith [hL x hx, norm_nonneg (L x)]) + have hi : 0 ≤ ∫ x in jointKernelBox a b 2, ‖L x‖ ^ 2 := integral_nonneg fun x => sq_nonneg _ + rw [Real.norm_of_nonneg hi, measureReal_def, volume_jointKernelBox] at h + exact h + +theorem norm_iteratedLineDerivOp_le_iteratedFDeriv {n : ℕ} + (m : Fin n → JointKernelSpace) (hm : ∀ i, ‖m i‖ ≤ 1) + (K : SchwartzMap JointKernelSpace ℂ) (x : JointKernelSpace) : + ‖(∂^{m} K) x‖ ≤ ‖iteratedFDeriv ℝ n K x‖ := by + rw [SchwartzMap.iteratedLineDerivOp_eq_iteratedFDeriv] + simpa only [Finset.prod_const_one, mul_one] using + (iteratedFDeriv ℝ n K x).le_opNorm_mul_prod_of_le hm + +theorem norm_jointKernelLeftDirection_le_one (i : Fin 3) : ‖jointKernelLeftDirection i‖ ≤ 1 := by + have h := WithLp.prod_norm_sq_eq_of_L2 (jointKernelLeftDirection i) + change ‖jointKernelLeftDirection i‖ ^ 2 = + ‖EuclideanSpace.basisFun (Fin 3) ℝ i‖ ^ 2 + ‖(0 : EuclideanSpace ℝ (Fin 3))‖ ^ 2 at h + rw [(EuclideanSpace.basisFun (Fin 3) ℝ).orthonormal.norm_eq_one i, norm_zero] at h + nlinarith [norm_nonneg (jointKernelLeftDirection i)] + +theorem norm_jointKernelRightDirection_le_one (i : Fin 3) : ‖jointKernelRightDirection i‖ ≤ 1 := by + have h := WithLp.prod_norm_sq_eq_of_L2 (jointKernelRightDirection i) + change ‖jointKernelRightDirection i‖ ^ 2 = + ‖(0 : EuclideanSpace ℝ (Fin 3))‖ ^ 2 + ‖EuclideanSpace.basisFun (Fin 3) ℝ i‖ ^ 2 at h + rw [(EuclideanSpace.basisFun (Fin 3) ℝ).orthonormal.norm_eq_one i, norm_zero] at h + nlinarith [norm_nonneg (jointKernelRightDirection i)] + +/-- Only the actual derivatives of orders zero, one and two are used. -/ +theorem jointKernelDerivativeEnergy_le {M : ℝ} (hM : 0 ≤ M) + (a b : EuclideanSpace ℝ (Fin 3)) (K : SchwartzMap JointKernelSpace ℂ) + (hs : tsupport K ⊆ jointKernelBox a b 2) + (hK : ∀ n ≤ 2, ∀ x ∈ jointKernelBox a b 2, ‖iteratedFDeriv ℝ n K x‖ ≤ M) : + jointKernelDerivativeEnergy K ≤ 16 * jointKernelBoxVolume * M ^ 2 := by + have hline {n : ℕ} (hn : n ≤ 2) (m : Fin n → JointKernelSpace) + (hm : ∀ i, ‖m i‖ ≤ 1) : + (∫ x, ‖(∂^{m} K) x‖ ^ 2) ≤ M ^ 2 * jointKernelBoxVolume := by + apply integral_sq_le_jointKernelBox hM a b _ + ((SchwartzMap.tsupport_iteratedLineDerivOp_subset m K).trans hs) + intro x hx + exact (norm_iteratedLineDerivOp_le_iteratedFDeriv m hm K x).trans (hK n hn x hx) + have h0 : (∫ x, ‖K x‖ ^ 2) ≤ M ^ 2 * jointKernelBoxVolume := by + apply integral_sq_le_jointKernelBox hM a b K hs + intro x hx + simpa only [norm_iteratedFDeriv_zero] using hK 0 (by decide) x hx + have hL (i : Fin 3) : (∫ x, ‖(∂_{jointKernelLeftDirection i} K) x‖ ^ 2) ≤ + M ^ 2 * jointKernelBoxVolume := + hline (n := 1) (by decide) (fun _ => jointKernelLeftDirection i) + (fun _ => norm_jointKernelLeftDirection_le_one i) + have hR (j : Fin 3) : (∫ x, ‖(∂_{jointKernelRightDirection j} K) x‖ ^ 2) ≤ + M ^ 2 * jointKernelBoxVolume := + hline (n := 1) (by decide) (fun _ => jointKernelRightDirection j) + (fun _ => norm_jointKernelRightDirection_le_one j) + have hLR (i j : Fin 3) : + (∫ x, ‖(∂_{jointKernelLeftDirection i} (∂_{jointKernelRightDirection j} K)) x‖ ^ 2) ≤ + M ^ 2 * jointKernelBoxVolume := by + exact hline (n := 2) (by decide) ![jointKernelLeftDirection i, jointKernelRightDirection j] + (by + intro k + fin_cases k + · exact norm_jointKernelLeftDirection_le_one i + · exact norm_jointKernelRightDirection_le_one j) + unfold jointKernelDerivativeEnergy mixedKernelDerivativeEnergy + calc + _ ≤ (M ^ 2 * jointKernelBoxVolume) + + (∑ _ : Fin 3, M ^ 2 * jointKernelBoxVolume) + + (∑ _ : Fin 3, M ^ 2 * jointKernelBoxVolume) + + ∑ _ : Fin 3, ∑ _ : Fin 3, M ^ 2 * jointKernelBoxVolume := + add_le_add (add_le_add (add_le_add h0 (Finset.sum_le_sum fun i _ => hL i)) + (Finset.sum_le_sum fun j _ => hR j)) + (Finset.sum_le_sum fun i _ => Finset.sum_le_sum fun j _ => hLR i j) + _ = _ := by simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul]; ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelForms.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelForms.lean new file mode 100644 index 0000000000..b3ced4c449 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelForms.lean @@ -0,0 +1,162 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelSourceWeights +public import LeanPool.VacuumBellSeparation.Gaussian.RealBilinearCompletion + +/-! +# Genuine smooth-kernel operators in the joint source norm + +The original compact-test double integral first defines a bilinear form. +The proved Fourier estimates bound it in the total-source covariance norm; +completion and Riesz representation then construct the actual bounded +operator. No regional synthesis inverse or form-representation premise is used. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory FourierTransform +open scoped SchwartzMap FourierTransform InnerProductSpace + +theorem integrable_jointKernelTest (K : SchwartzMap JointKernelSpace ℂ) + (f g : SpatialTestFunction) : + Integrable (fun x : JointKernelSpace => (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * K x) := by + have hc : Continuous (fun x : JointKernelSpace => + (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * K x) := + (jointSpatialTestProduct f g).continuous.mul K.continuous + exact hc.integrable_of_hasCompactSupport + ((hasCompactSupport_jointSpatialTestProduct f g).mul_right) + +/-- Joint kernel test pair given by `(∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * K +x).re`. -/ +def jointKernelTestPair (K : SchwartzMap JointKernelSpace ℂ) + (f g : SpatialTestFunction) : ℝ := + (∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * K x).re + +theorem jointKernelTestPair_add_left (K : SchwartzMap JointKernelSpace ℂ) + (f₁ f₂ g : SpatialTestFunction) : + jointKernelTestPair K (f₁ + f₂) g = jointKernelTestPair K f₁ g + jointKernelTestPair K f₂ g + := by + unfold jointKernelTestPair + change (∫ x : JointKernelSpace, ((f₁.1 x.fst + f₂.1 x.fst : ℝ) : ℂ) * + (g.1 x.snd : ℂ) * K x).re = _ + simp only [Complex.ofReal_add, add_mul] + rw [integral_add (integrable_jointKernelTest K f₁ g) (integrable_jointKernelTest K f₂ g), + Complex.add_re] + +theorem jointKernelTestPair_add_right (K : SchwartzMap JointKernelSpace ℂ) + (f g₁ g₂ : SpatialTestFunction) : + jointKernelTestPair K f (g₁ + g₂) = jointKernelTestPair K f g₁ + jointKernelTestPair K f g₂ + := by + unfold jointKernelTestPair + change (∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * + ((g₁.1 x.snd + g₂.1 x.snd : ℝ) : ℂ) * K x).re = _ + simp only [Complex.ofReal_add, mul_add, add_mul] + rw [integral_add (integrable_jointKernelTest K f g₁) (integrable_jointKernelTest K f g₂), + Complex.add_re] + +theorem jointKernelTestPair_smul_left (K : SchwartzMap JointKernelSpace ℂ) + (c : ℝ) (f g : SpatialTestFunction) : + jointKernelTestPair K (c • f) g = c • jointKernelTestPair K f g := by + unfold jointKernelTestPair + change (∫ x : JointKernelSpace, ((c * f.1 x.fst : ℝ) : ℂ) * + (g.1 x.snd : ℂ) * K x).re = _ + simp only [Complex.ofReal_mul, mul_assoc] + rw [integral_const_mul, Complex.mul_re] + simp only [Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero, smul_eq_mul] + +theorem jointKernelTestPair_smul_right (K : SchwartzMap JointKernelSpace ℂ) + (c : ℝ) (f g : SpatialTestFunction) : + jointKernelTestPair K f (c • g) = c • jointKernelTestPair K f g := by + unfold jointKernelTestPair + have he (x : JointKernelSpace) : + (f.1 x.fst : ℂ) * ((c * g.1 x.snd : ℝ) : ℂ) * K x = + (c : ℂ) * ((f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * K x) := by + push_cast + ring + change (∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * + ((c * g.1 x.snd : ℝ) : ℂ) * K x).re = _ + simp_rw [he] + rw [integral_const_mul, Complex.mul_re] + simp only [Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero, smul_eq_mul] + +/-- Linear map for the joint kernel test bilinear, of type `E →ₗ[ℝ] E →ₗ[ℝ] ℝ`. -/ +def jointKernelTestBilinear {E : Type*} [AddCommGroup E] [Module ℝ E] + (P : E →ₗ[ℝ] SpatialTestFunction) (K : SchwartzMap JointKernelSpace ℂ) : E →ₗ[ℝ] E →ₗ[ℝ] ℝ := + LinearMap.mk₂ ℝ (fun u v => jointKernelTestPair K (P u) (P v)) + (by intro u v w; rw [map_add, jointKernelTestPair_add_left]) + (by intro c u v; rw [map_smul, jointKernelTestPair_smul_left]) + (by intro u v w; rw [map_add, jointKernelTestPair_add_right]) + (by intro c u v; rw [map_smul, jointKernelTestPair_smul_right]) + +/-- The source-to-test projection is literal, with its original support. -/ +def sourceFieldTestProjection {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) : SourceTestSpace hμ U →ₗ[ℝ] SpatialTestFunction where + toFun u := u.1.1 + map_add' _ _ := rfl + map_smul' _ _ := rfl + +/-- The linear projection taking the momentum test function of a source pair. -/ +def sourceMomentumTestProjection {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) : SourceTestSpace hμ U →ₗ[ℝ] SpatialTestFunction where + toFun u := u.1.2 + map_add' _ _ := rfl + map_smul' _ _ := rfl + +private theorem sqrt_product_energy_le {a b c x y : ℝ} + (hb : 0 ≤ b) (hc : 0 ≤ c) (hx : 0 ≤ x) (hy : 0 ≤ y) + (hax : a ≤ c * x ^ 2) (hby : b ≤ c * y ^ 2) : + Real.sqrt (a * b) ≤ c * x * y := by + apply Real.sqrt_le_iff.mpr + refine ⟨by positivity, ?_⟩ + calc + a * b ≤ (c * x ^ 2) * (c * y ^ 2) := mul_le_mul hax hby hb (by positivity) + _ = (c * x * y) ^ 2 := by ring + +/-- Generic form estimate after the actual inverse-weighted source bound. -/ +theorem jointKernelTestPair_le_source_bound {E : Type*} + [NormedAddCommGroup E] [NormedSpace ℝ E] + (P : E →ₗ[ℝ] SpatialTestFunction) (K : SchwartzMap JointKernelSpace ℂ) + {c : ℝ} (hc : 0 ≤ c) + (hP : ∀ u, (∫ p, jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz (P u))) p‖ ^ 2) ≤ + c * ‖u‖ ^ 2) (u v : E) : + ‖jointKernelTestBilinear P K u v‖ ≤ + (c * Real.sqrt (jointKernelDerivativeEnergy K)) * ‖u‖ * ‖v‖ := by + have h := jointKernel_real_test_pairing_le K (P u) (P v) + have hs := sqrt_product_energy_le + (integral_nonneg fun p => mul_nonneg (jointTestFrequencyWeight_nonneg p) (sq_nonneg _)) + hc (norm_nonneg u) (norm_nonneg v) (hP u) (hP v) + calc + _ ≤ ‖∫ x : JointKernelSpace, ((P u).1 x.fst : ℂ) * ((P v).1 x.snd : ℂ) * K x‖ := + Complex.abs_re_le_norm _ + _ ≤ _ := h.trans (by + have hh := mul_le_mul_of_nonneg_left hs (Real.sqrt_nonneg (jointKernelDerivativeEnergy K)) + convert hh using 1; ring) + +/-- Actual bounded form on test sources, with no regional decomposition. -/ +def boundedJointKernelTestForm {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + (P : E →ₗ[ℝ] SpatialTestFunction) (K : SchwartzMap JointKernelSpace ℂ) + {c : ℝ} (hc : 0 ≤ c) + (hP : ∀ u, (∫ p, jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz (P u))) p‖ ^ 2) ≤ + c * ‖u‖ ^ 2) : E →L[ℝ] E →L[ℝ] ℝ := + (jointKernelTestBilinear P K).mkContinuous₂ (c * Real.sqrt (jointKernelDerivativeEnergy K)) + (jointKernelTestPair_le_source_bound P K hc hP) + +theorem norm_boundedJointKernelTestForm_le {E : Type*} + [NormedAddCommGroup E] [NormedSpace ℝ E] + (P : E →ₗ[ℝ] SpatialTestFunction) (K : SchwartzMap JointKernelSpace ℂ) + {c : ℝ} (hc : 0 ≤ c) + (hP : ∀ u, (∫ p, jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz (P u))) p‖ ^ 2) ≤ + c * ‖u‖ ^ 2) : + ‖boundedJointKernelTestForm P K hc hP‖ ≤ c * Real.sqrt (jointKernelDerivativeEnergy K) := + (jointKernelTestBilinear P K).mkContinuous₂_norm_le (by positivity) _ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelFourPatches.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelFourPatches.lean new file mode 100644 index 0000000000..1463f245f9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelFourPatches.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelPatchPartition + +/-! +# Actual four-patch operators on one joint completion + +Finite addition is performed on the same original total-source Hilbert +space. Test-integral reconstruction derives integrability of the original +kernel against the supported tests before identifying the bounded form. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory Set Metric +open scoped SchwartzMap InnerProductSpace + +theorem jointKernel_four_integrals (c : Fin 2 → EuclideanSpace ℝ (Fin 3)) + (K : Fin 2 → Fin 2 → SchwartzMap JointKernelSpace ℂ) (F : JointKernelSpace → ℂ) + (hF : ∀ x, x.fst ∈ closedBall (c 0) 1 ∪ closedBall (c 1) 1 → + x.snd ∈ closedBall (c 0) 1 ∪ closedBall (c 1) 1 → (∑ i : Fin 2, ∑ j : Fin 2, K i j x) = F x) + (f g : SpatialTestFunction) + (hf : Function.support f.1 ⊆ closedBall (c 0) 1 ∪ closedBall (c 1) 1) + (hg : Function.support g.1 ⊆ closedBall (c 0) 1 ∪ closedBall (c 1) 1) : + Integrable (fun x : JointKernelSpace => (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * F x) ∧ + (∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * F x) = + ∑ i : Fin 2, ∑ j : Fin 2, + ∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * K i j x := by + have he (x : JointKernelSpace) : + (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * F x = + ∑ i : Fin 2, ∑ j : Fin 2, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * K i j x := by + by_cases hx : f.1 x.fst = 0 + · simp only [hx, Complex.ofReal_zero, zero_mul, Finset.sum_const_zero] + by_cases hy : g.1 x.snd = 0 + · simp only [hy, Complex.ofReal_zero, mul_zero, zero_mul, Finset.sum_const_zero] + rw [← hF x (hf hx) (hg hy)] + simp only [Finset.mul_sum] + have hi (i : Fin 2) := integrable_finsetSum Finset.univ + (fun j _ => integrable_jointKernelTest (K i j) f g) + constructor + · have hh := integrable_finsetSum Finset.univ (fun i _ => hi i) + exact hh.congr (Filter.Eventually.of_forall fun x => (he x).symm) + · simp_rw [he] + rw [integral_finsetSum Finset.univ (fun i _ => hi i)] + apply Finset.sum_congr rfl + intro i hi' + exact integral_finsetSum Finset.univ (fun j _ => integrable_jointKernelTest (K i j) f g) + +/-- Continuous linear map for the joint four field kernel operator, of type `SourceHilbert hμ U +→L[ℝ] SourceHilbert hμ U`. -/ +def jointFourFieldKernelOperator {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) + (K : Fin 2 → Fin 2 → SchwartzMap JointKernelSpace ℂ) : SourceHilbert hμ U →L[ℝ] + SourceHilbert hμ U := + ∑ i : Fin 2, ∑ j : Fin 2, jointFieldKernelOperator hμ U (K i j) + +/-- Continuous linear map for the joint four momentum kernel operator, of type `SourceHilbert hμ +(ball p 1 ∪ ball q 1) →L[ℝ] SourceHilbert hμ (ball p 1 ∪ ball q 1)`. -/ +def jointFourMomentumKernelOperator {μ : ℝ} (hμ : 0 < μ) + (p q : EuclideanSpace ℝ (Fin 3)) (K : Fin 2 → Fin 2 → SchwartzMap JointKernelSpace ℂ) : + SourceHilbert hμ (ball p 1 ∪ ball q 1) →L[ℝ] SourceHilbert hμ (ball p 1 ∪ ball q 1) := + ∑ i : Fin 2, ∑ j : Fin 2, jointMomentumKernelOperator hμ p q (K i j) + +private theorem norm_four_sum_le {E : Type*} [SeminormedAddCommGroup E] + (A : Fin 2 → Fin 2 → E) {M : ℝ} (hA : ∀ i j, ‖A i j‖ ≤ M) : + ‖∑ i : Fin 2, ∑ j : Fin 2, A i j‖ ≤ 4 * M := by + calc + _ ≤ ∑ i : Fin 2, ∑ j : Fin 2, ‖A i j‖ := + (norm_sum_le _ _).trans (Finset.sum_le_sum fun i _ => norm_sum_le _ _) + _ ≤ ∑ _ : Fin 2, ∑ _ : Fin 2, M := + Finset.sum_le_sum fun i _ => Finset.sum_le_sum fun j _ => hA i j + _ = _ := by simp only [Fin.sum_univ_two]; ring + +/-- Four independently localized patches retain one universal constant, +with the explicit finite factor four. -/ +theorem jointLocalKernel_four_operator_bounds {μ M : ℝ} (hμ : 0 < μ) (hM : 0 ≤ M) + (c : Fin 2 → EuclideanSpace ℝ (Fin 3)) + (H : Fin 2 → Fin 2 → JointKernelSpace → ℂ) + (O : Fin 2 → Fin 2 → Set JointKernelSpace) (hO : ∀ i j, IsOpen (O i j)) + (hbox : ∀ i j, jointKernelBox (c i) (c j) 2 ⊆ O i j) + (hH : ∀ i j, ContDiffOn ℝ (⊤ : ℕ∞) (H i j) (O i j)) + (hbound : ∀ i j n, n ≤ 2 → ∀ x ∈ jointKernelBox (c i) (c j) 2, + ‖iteratedFDeriv ℝ n (H i j) x‖ ≤ M) : + let K := fun i j => cutOffJointLocalKernel (c i) (c j) (H i j) (O i j) + (hO i j) (hbox i j) (hH i j) + ‖jointFourFieldKernelOperator hμ (ball (c 0) 1 ∪ ball (c 1) 1) K‖ ≤ + (4 * jointSmoothKernelUniversalConstant) * max 1 μ * M ∧ + ‖jointFourMomentumKernelOperator hμ (c 0) (c 1) K‖ ≤ + (4 * jointSmoothKernelUniversalConstant) * M := by + dsimp only + have hb (i j : Fin 2) := jointLocalKernel_uniform_operator_bounds hμ hM + (c i) (c j) (c 0) (c 1) (ball (c 0) 1 ∪ ball (c 1) 1) + (H i j) (O i j) (hO i j) (hbox i j) (hH i j) (hbound i j) + constructor + · simpa only [jointFourFieldKernelOperator, mul_assoc] using + norm_four_sum_le (E := SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1) →L[ℝ] + SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1)) + (fun i j => jointFieldKernelOperator hμ (ball (c 0) 1 ∪ ball (c 1) 1) + (cutOffJointLocalKernel (c i) (c j) (H i j) (O i j) (hO i j) (hbox i j) (hH i j))) + (fun i j => (hb i j).1) + · simpa only [jointFourMomentumKernelOperator, mul_assoc] using + norm_four_sum_le (E := SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1) →L[ℝ] + SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1)) + (fun i j => jointMomentumKernelOperator hμ (c 0) (c 1) + (cutOffJointLocalKernel (c i) (c j) (H i j) (O i j) (hO i j) (hbox i j) (hH i j))) + (fun i j => (hb i j).2) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelLocalBound.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelLocalBound.lean new file mode 100644 index 0000000000..96d94c2eb5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelLocalBound.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelLocalCutoff + +/-! +# Uniform operators from locally smooth kernel patches + +The cutoff centers and the total source region are independent. This +allows all four patches to act on the same joint-source completion. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Set Metric +open scoped SchwartzMap + +theorem sqrt_jointKernelEnergy_cutOffLocal_le {M : ℝ} (hM : 0 ≤ M) + (a b : EuclideanSpace ℝ (Fin 3)) (H : JointKernelSpace → ℂ) + (O : Set JointKernelSpace) (hO : IsOpen O) (hbox : jointKernelBox a b 2 ⊆ O) + (hH : ContDiffOn ℝ (⊤ : ℕ∞) H O) + (hbound : ∀ n ≤ 2, ∀ x ∈ jointKernelBox a b 2, ‖iteratedFDeriv ℝ n H x‖ ≤ M) : + Real.sqrt (jointKernelDerivativeEnergy (cutOffJointLocalKernel a b H O hO hbox hH)) ≤ + 4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound * M := by + have hD := jointCutoffSecondOrderBound_pos.le + have he := jointKernelDerivativeEnergy_le (mul_nonneg hD hM) a b + (cutOffJointLocalKernel a b H O hO hbox hH) + (tsupport_cutOffJointLocalKernel_subset a b H O hO hbox hH) + (fun n hn x hx => norm_iteratedFDeriv_cutOffLocal_le_uniform hM a b H O hO hbox hH hbound hn hx) + apply Real.sqrt_le_iff.mpr + refine ⟨by positivity, ?_⟩ + calc + _ ≤ 16 * jointKernelBoxVolume * (jointCutoffSecondOrderBound * M) ^ 2 := he + _ = (4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound * M) ^ 2 := by + simp only [mul_pow, Real.sq_sqrt jointKernelBoxVolume_nonneg] + ring + +/-- The same positive constant controls locally smooth patches in the +original total-source norm, including diagonal and off-diagonal patches. -/ +theorem jointLocalKernel_uniform_operator_bounds {μ M : ℝ} (hμ : 0 < μ) (hM : 0 ≤ M) + (a b p q : EuclideanSpace ℝ (Fin 3)) (U : Set (EuclideanSpace ℝ (Fin 3))) + (H : JointKernelSpace → ℂ) (O : Set JointKernelSpace) (hO : IsOpen O) + (hbox : jointKernelBox a b 2 ⊆ O) (hH : ContDiffOn ℝ (⊤ : ℕ∞) H O) + (hbound : ∀ n ≤ 2, ∀ x ∈ jointKernelBox a b 2, ‖iteratedFDeriv ℝ n H x‖ ≤ M) : + ‖jointFieldKernelOperator hμ U (cutOffJointLocalKernel a b H O hO hbox hH)‖ ≤ + jointSmoothKernelUniversalConstant * max 1 μ * M ∧ + ‖jointMomentumKernelOperator hμ p q (cutOffJointLocalKernel a b H O hO hbox hH)‖ ≤ + jointSmoothKernelUniversalConstant * M := by + have hs := sqrt_jointKernelEnergy_cutOffLocal_le hM a b H O hO hbox hH hbound + have hD := jointCutoffSecondOrderBound_pos.le + have hc : 0 ≤ 4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound := by positivity + have h2 : 2 * (4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound) ≤ + jointSmoothKernelUniversalConstant := by + unfold jointSmoothKernelUniversalConstant + nlinarith + have h4 : 4 * (4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound) ≤ + jointSmoothKernelUniversalConstant := by + unfold jointSmoothKernelUniversalConstant + linarith + have hMμ : 0 ≤ max 1 μ := by positivity + constructor + · apply (norm_jointFieldKernelOperator_le hμ U _).trans + calc + _ ≤ (2 * max 1 μ) * + (4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound * M) := + mul_le_mul_of_nonneg_left hs (by positivity) + _ ≤ jointSmoothKernelUniversalConstant * max 1 μ * M := by + have hh := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right h2 hMμ) hM + convert hh using 1; ring + · apply (norm_jointMomentumKernelOperator_le hμ p q _).trans + calc + _ ≤ 4 * (4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound * M) := + mul_le_mul_of_nonneg_left hs (by norm_num) + _ ≤ jointSmoothKernelUniversalConstant * M := by + have hh := mul_le_mul_of_nonneg_right h4 hM + convert hh using 1; ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelLocalCutoff.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelLocalCutoff.lean new file mode 100644 index 0000000000..6453ee03f2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelLocalCutoff.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelUniformBound + +/-! +# Actual cutoff extension from a neighborhood of the kernel patch + +Only the original kernel's smoothness on an open neighborhood of the +cutoff box is used. The literal product is globally smooth: outside the +cutoff's topological support it is locally zero. Thus singularities of +the original totalized kernel elsewhere impose no global hypothesis. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Set Metric Filter +open scoped SchwartzMap Topology + +-- Cache the canonical norm-bounded scalar action on the actual Euclidean product. +local instance jointLocalCutoffContinuousSMul : ContinuousSMul ℝ JointKernelSpace := + IsBoundedSMul.continuousSMul + +theorem contDiff_jointSmoothCutoff_mul_on (a b : EuclideanSpace ℝ (Fin 3)) + (H : JointKernelSpace → ℂ) (O : Set JointKernelSpace) (hO : IsOpen O) + (hbox : jointKernelBox a b 2 ⊆ O) (hH : ContDiffOn ℝ (⊤ : ℕ∞) H O) : + ContDiff ℝ (⊤ : ℕ∞) (fun x => jointSmoothCutoff a b x * H x) := by + apply contDiff_iff_contDiffAt.mpr + intro x + by_cases hx : x ∈ tsupport (jointSmoothCutoff a b) + · exact ((jointSmoothCutoff a b).smooth (⊤ : ℕ∞)).contDiffAt.mul + (hH.contDiffAt (hO.mem_nhds (hbox (tsupport_jointSmoothCutoff_subset a b hx)))) + · have hz := notMem_tsupport_iff_eventuallyEq.mp hx + apply (contDiffAt_const (c := (0 : ℂ))).congr_of_eventuallyEq + filter_upwards [hz] with y hy + simp only [hy, Pi.zero_apply, zero_mul] + +/-- Cut off joint local kernel. -/ +def cutOffJointLocalKernel (a b : EuclideanSpace ℝ (Fin 3)) + (H : JointKernelSpace → ℂ) (O : Set JointKernelSpace) (hO : IsOpen O) + (hbox : jointKernelBox a b 2 ⊆ O) (hH : ContDiffOn ℝ (⊤ : ℕ∞) H O) : + SchwartzMap JointKernelSpace ℂ := + ((hasCompactSupport_jointSpatialTestProduct (jointUnitCutoffTest a) + (jointUnitCutoffTest b)).mul_right (f' := H)).toSchwartzMap + (contDiff_jointSmoothCutoff_mul_on a b H O hO hbox hH) + +@[simp] theorem cutOffJointLocalKernel_apply (a b : EuclideanSpace ℝ (Fin 3)) + (H : JointKernelSpace → ℂ) (O : Set JointKernelSpace) (hO : IsOpen O) + (hbox : jointKernelBox a b 2 ⊆ O) (hH : ContDiffOn ℝ (⊤ : ℕ∞) H O) (x : JointKernelSpace) : + cutOffJointLocalKernel a b H O hO hbox hH x = jointSmoothCutoff a b x * H x := rfl + +theorem cutOffJointLocalKernel_eq (a b : EuclideanSpace ℝ (Fin 3)) + (H : JointKernelSpace → ℂ) (O : Set JointKernelSpace) (hO : IsOpen O) + (hbox : jointKernelBox a b 2 ⊆ O) (hH : ContDiffOn ℝ (⊤ : ℕ∞) H O) + (x : JointKernelSpace) (hx : x.fst ∈ closedBall a 1) (hy : x.snd ∈ closedBall b 1) : + cutOffJointLocalKernel a b H O hO hbox hH x = H x := by + rw [cutOffJointLocalKernel_apply, jointSmoothCutoff_eq_one a b x hx hy, one_mul] + +theorem tsupport_cutOffJointLocalKernel_subset (a b : EuclideanSpace ℝ (Fin 3)) + (H : JointKernelSpace → ℂ) (O : Set JointKernelSpace) (hO : IsOpen O) + (hbox : jointKernelBox a b 2 ⊆ O) (hH : ContDiffOn ℝ (⊤ : ℕ∞) H O) : + tsupport (cutOffJointLocalKernel a b H O hO hbox hH) ⊆ jointKernelBox a b 2 := + tsupport_mul_subset_left.trans (tsupport_jointSmoothCutoff_subset a b) + +theorem norm_iteratedFDeriv_cutOffJointLocalKernel_le + (a b : EuclideanSpace ℝ (Fin 3)) (H : JointKernelSpace → ℂ) + (O : Set JointKernelSpace) (hO : IsOpen O) (hbox : jointKernelBox a b 2 ⊆ O) + (hH : ContDiffOn ℝ (⊤ : ℕ∞) H O) (n : ℕ) + (x : JointKernelSpace) (hx : x ∈ jointKernelBox a b 2) : + ‖iteratedFDeriv ℝ n (cutOffJointLocalKernel a b H O hO hbox hH) x‖ ≤ + ∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * jointCutoffDerivativeBound i * + ‖iteratedFDeriv ℝ (n - i) H x‖ := by + have hχ := (jointSmoothCutoff a b).smooth (⊤ : ℕ∞) + have hHx := hH.contDiffAt (hO.mem_nhds (hbox hx)) + have he (f : JointKernelSpace → ℂ) (hf : ContDiffAt ℝ (⊤ : ℕ∞) f x) (k : ℕ) : + iteratedFDerivWithin ℝ k f O x = iteratedFDeriv ℝ k f x := + iteratedFDerivWithin_eq_iteratedFDeriv hO.uniqueDiffOn (hf.of_le (by simp)) (hbox hx) + have h := norm_iteratedFDerivWithin_mul_le hχ.contDiffOn hH hO.uniqueDiffOn + (hbox hx) (n := n) (by simp) + rw [he _ (hχ.contDiffAt.mul hHx) n] at h + simp_rw [he _ hχ.contDiffAt, he _ hHx] at h + apply h.trans + apply Finset.sum_le_sum + intro i hi + exact mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_left (norm_iteratedFDeriv_jointSmoothCutoff_le a b i x) + (Nat.cast_nonneg _)) (norm_nonneg _) + +/-- The same fixed cutoff constant works when the original kernel is only +smooth near its patch. All derivatives below are its actual derivatives. -/ +theorem norm_iteratedFDeriv_cutOffLocal_le_uniform {M : ℝ} (hM : 0 ≤ M) + (a b : EuclideanSpace ℝ (Fin 3)) (H : JointKernelSpace → ℂ) + (O : Set JointKernelSpace) (hO : IsOpen O) (hbox : jointKernelBox a b 2 ⊆ O) + (hH : ContDiffOn ℝ (⊤ : ℕ∞) H O) + (hbound : ∀ n ≤ 2, ∀ x ∈ jointKernelBox a b 2, ‖iteratedFDeriv ℝ n H x‖ ≤ M) + {n : ℕ} (hn : n ≤ 2) {x : JointKernelSpace} (hx : x ∈ jointKernelBox a b 2) : + ‖iteratedFDeriv ℝ n (cutOffJointLocalKernel a b H O hO hbox hH) x‖ ≤ + jointCutoffSecondOrderBound * M := by + apply (norm_iteratedFDeriv_cutOffJointLocalKernel_le a b H O hO hbox hH n x hx).trans + have hsum : (∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * jointCutoffDerivativeBound i) ≤ + jointCutoffSecondOrderBound := by + have h0 := jointCutoffDerivativeBound_nonneg 0 + have h1 := jointCutoffDerivativeBound_nonneg 1 + have h2 := jointCutoffDerivativeBound_nonneg 2 + unfold jointCutoffSecondOrderBound + interval_cases n <;> simp only [Finset.sum_range_succ, Finset.sum_range_zero, + Nat.choose_zero_right, Nat.choose_self, Nat.cast_one, + Nat.cast_ofNat, Nat.choose_one_right, zero_add, one_mul] <;> nlinarith + calc + _ ≤ ∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * jointCutoffDerivativeBound i * M := by + apply Finset.sum_le_sum + intro i hi + exact mul_le_mul_of_nonneg_left (hbound (n - i) (by omega) x hx) + (mul_nonneg (Nat.cast_nonneg _) (jointCutoffDerivativeBound_nonneg i)) + _ = (∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * jointCutoffDerivativeBound i) * M := + (Finset.sum_mul _ _ _).symm + _ ≤ _ := mul_le_mul_of_nonneg_right hsum hM + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelOriginalForm.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelOriginalForm.lean new file mode 100644 index 0000000000..f31f1baa64 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelOriginalForm.lean @@ -0,0 +1,122 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelFourPatches + +/-! +# Four-patch operators represent the original joint-source kernel + +The identities below use the original test sources in the total covariance +completion. The four-patch integral theorem proves convergence of the +original kernel pairing before the completed operator is identified. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory Set Metric +open scoped SchwartzMap InnerProductSpace + +theorem jointFourFieldKernelOperator_pairing {μ : ℝ} (hμ : 0 < μ) + (c : Fin 2 → EuclideanSpace ℝ (Fin 3)) + (K : Fin 2 → Fin 2 → SchwartzMap JointKernelSpace ℂ) (F : JointKernelSpace → ℂ) + (hF : ∀ x, x.fst ∈ closedBall (c 0) 1 ∪ closedBall (c 1) 1 → + x.snd ∈ closedBall (c 0) 1 ∪ closedBall (c 1) 1 → + (∑ i : Fin 2, ∑ j : Fin 2, K i j x) = F x) + (u v : SourceTestSpace hμ (ball (c 0) 1 ∪ ball (c 1) 1)) : + inner ℝ (u : SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1)) + (jointFourFieldKernelOperator hμ (ball (c 0) 1 ∪ ball (c 1) 1) K + (v : SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1))) = + (∫ x : JointKernelSpace, (u.1.1.1 x.fst : ℂ) * (v.1.1.1 x.snd : ℂ) * F x).re := by + have hu : Function.support u.1.1.1 ⊆ closedBall (c 0) 1 ∪ closedBall (c 1) 1 := + ((subset_tsupport _).trans u.2.1).trans + (union_subset_union ball_subset_closedBall ball_subset_closedBall) + have hv : Function.support v.1.1.1 ⊆ closedBall (c 0) 1 ∪ closedBall (c 1) 1 := + ((subset_tsupport _).trans v.2.1).trans + (union_subset_union ball_subset_closedBall ball_subset_closedBall) + rw [(jointKernel_four_integrals c K F hF u.1.1 v.1.1 hu hv).2] + simp only [jointFourFieldKernelOperator, sum_apply, inner_sum, + jointFieldKernelOperator_pairing, Complex.re_sum] + +theorem jointFourMomentumKernelOperator_pairing {μ : ℝ} (hμ : 0 < μ) + (c : Fin 2 → EuclideanSpace ℝ (Fin 3)) + (K : Fin 2 → Fin 2 → SchwartzMap JointKernelSpace ℂ) (F : JointKernelSpace → ℂ) + (hF : ∀ x, x.fst ∈ closedBall (c 0) 1 ∪ closedBall (c 1) 1 → + x.snd ∈ closedBall (c 0) 1 ∪ closedBall (c 1) 1 → + (∑ i : Fin 2, ∑ j : Fin 2, K i j x) = F x) + (u v : SourceTestSpace hμ (ball (c 0) 1 ∪ ball (c 1) 1)) : + inner ℝ (u : SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1)) + (jointFourMomentumKernelOperator hμ (c 0) (c 1) K + (v : SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1))) = + (∫ x : JointKernelSpace, (u.1.2.1 x.fst : ℂ) * (v.1.2.1 x.snd : ℂ) * F x).re := by + have hu : Function.support u.1.2.1 ⊆ closedBall (c 0) 1 ∪ closedBall (c 1) 1 := + ((subset_tsupport _).trans u.2.2).trans + (union_subset_union ball_subset_closedBall ball_subset_closedBall) + have hv : Function.support v.1.2.1 ⊆ closedBall (c 0) 1 ∪ closedBall (c 1) 1 := + ((subset_tsupport _).trans v.2.2).trans + (union_subset_union ball_subset_closedBall ball_subset_closedBall) + rw [(jointKernel_four_integrals c K F hF u.1.2 v.1.2 hu hv).2] + simp only [jointFourMomentumKernelOperator, sum_apply, inner_sum, + jointMomentumKernelOperator_pairing, Complex.re_sum] + +/-- Actual local kernels suffice to construct a bounded operator for the +original field kernel in the total-source completion. -/ +theorem exists_jointLocalFieldKernelOperator {μ M : ℝ} (hμ : 0 < μ) (hM : 0 ≤ M) + (c : Fin 2 → EuclideanSpace ℝ (Fin 3)) (hc : 5 ≤ dist (c 0) (c 1)) + (H : Fin 2 → Fin 2 → JointKernelSpace → ℂ) + (O : Fin 2 → Fin 2 → Set JointKernelSpace) (hO : ∀ i j, IsOpen (O i j)) + (hbox : ∀ i j, jointKernelBox (c i) (c j) 2 ⊆ O i j) + (hH : ∀ i j, ContDiffOn ℝ (⊤ : ℕ∞) (H i j) (O i j)) + (hbound : ∀ i j n, n ≤ 2 → ∀ x ∈ jointKernelBox (c i) (c j) 2, + ‖iteratedFDeriv ℝ n (H i j) x‖ ≤ M) + (F : JointKernelSpace → ℂ) + (hF : ∀ i j x, x.fst ∈ closedBall (c i) 1 → x.snd ∈ closedBall (c j) 1 → H i j x = F x) : + ∃ A : SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1) →L[ℝ] + SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1), + ‖A‖ ≤ (4 * jointSmoothKernelUniversalConstant) * max 1 μ * M ∧ + ∀ u v : SourceTestSpace hμ (ball (c 0) 1 ∪ ball (c 1) 1), + inner ℝ (u : SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1)) + (A (v : SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1))) = + (∫ x : JointKernelSpace, (u.1.1.1 x.fst : ℂ) * (v.1.1.1 x.snd : ℂ) * F x).re := by + let K := fun i j => cutOffJointLocalKernel (c i) (c j) (H i j) (O i j) + (hO i j) (hbox i j) (hH i j) + refine ⟨jointFourFieldKernelOperator hμ _ K, + (jointLocalKernel_four_operator_bounds hμ hM c H O hO hbox hH hbound).1, ?_⟩ + intro u v + exact jointFourFieldKernelOperator_pairing hμ c K F + (jointLocalKernel_four_patches_eq c hc H O hO hbox hH F hF) u v + +/-- The corresponding momentum operator has a mass-independent norm bound. -/ +theorem exists_jointLocalMomentumKernelOperator {μ M : ℝ} (hμ : 0 < μ) (hM : 0 ≤ M) + (c : Fin 2 → EuclideanSpace ℝ (Fin 3)) (hc : 5 ≤ dist (c 0) (c 1)) + (H : Fin 2 → Fin 2 → JointKernelSpace → ℂ) + (O : Fin 2 → Fin 2 → Set JointKernelSpace) (hO : ∀ i j, IsOpen (O i j)) + (hbox : ∀ i j, jointKernelBox (c i) (c j) 2 ⊆ O i j) + (hH : ∀ i j, ContDiffOn ℝ (⊤ : ℕ∞) (H i j) (O i j)) + (hbound : ∀ i j n, n ≤ 2 → ∀ x ∈ jointKernelBox (c i) (c j) 2, + ‖iteratedFDeriv ℝ n (H i j) x‖ ≤ M) + (F : JointKernelSpace → ℂ) + (hF : ∀ i j x, x.fst ∈ closedBall (c i) 1 → x.snd ∈ closedBall (c j) 1 → H i j x = F x) : + ∃ A : SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1) →L[ℝ] + SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1), + ‖A‖ ≤ (4 * jointSmoothKernelUniversalConstant) * M ∧ + ∀ u v : SourceTestSpace hμ (ball (c 0) 1 ∪ ball (c 1) 1), + inner ℝ (u : SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1)) + (A (v : SourceHilbert hμ (ball (c 0) 1 ∪ ball (c 1) 1))) = + (∫ x : JointKernelSpace, (u.1.2.1 x.fst : ℂ) * (v.1.2.1 x.snd : ℂ) * F x).re := by + let K := fun i j => cutOffJointLocalKernel (c i) (c j) (H i j) (O i j) + (hO i j) (hbox i j) (hH i j) + refine ⟨jointFourMomentumKernelOperator hμ (c 0) (c 1) K, + (jointLocalKernel_four_operator_bounds hμ hM c H O hO hbox hH hbound).2, ?_⟩ + intro u v + exact jointFourMomentumKernelOperator_pairing hμ c K F + (jointLocalKernel_four_patches_eq c hc H O hO hbox hH F hF) u v + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelPatchPartition.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelPatchPartition.lean new file mode 100644 index 0000000000..fe2cb0fde2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelPatchPartition.lean @@ -0,0 +1,97 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelLocalBound + +/-! +# The actual two-ball cutoff partition and four original kernel patches + +On the total source support the two translated cutoffs sum to one. Their +four products therefore reconstruct the original kernel from the actual +local patch values; no decomposition of a completed source is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Set Metric +open scoped SchwartzMap + +theorem jointUnitCutoffTest_zero_other (a b x : EuclideanSpace ℝ (Fin 3)) + (hab : 5 ≤ dist a b) (hx : x ∈ closedBall a 1) : + (jointUnitCutoffTest b).1 x = 0 := by + apply (jointUnitBump b).zero_of_le_dist + change 2 ≤ dist x b + have hax : dist a x ≤ 1 := by simpa only [mem_closedBall, dist_comm] using hx + linarith [dist_triangle a x b] + +theorem jointUnitCutoffTest_sum_eq_one (c : Fin 2 → EuclideanSpace ℝ (Fin 3)) + (hc : 5 ≤ dist (c 0) (c 1)) (x : EuclideanSpace ℝ (Fin 3)) + (hx : x ∈ closedBall (c 0) 1 ∪ closedBall (c 1) 1) : + (∑ i : Fin 2, ((jointUnitCutoffTest (c i)).1 x : ℂ)) = 1 := by + rw [Fin.sum_univ_two] + rcases hx with hx | hx + · rw [jointUnitCutoffTest_eq_one _ _ hx, jointUnitCutoffTest_zero_other _ _ _ hc hx] + norm_num + · rw [jointUnitCutoffTest_eq_one _ _ hx, + jointUnitCutoffTest_zero_other (c 1) (c 0) x (by simpa only [dist_comm] using hc) hx] + norm_num + +theorem jointUnitCutoffTest_nonzero_locates (c : Fin 2 → EuclideanSpace ℝ (Fin 3)) + (hc : 5 ≤ dist (c 0) (c 1)) (x : EuclideanSpace ℝ (Fin 3)) + (hx : x ∈ closedBall (c 0) 1 ∪ closedBall (c 1) 1) + (i : Fin 2) (hi : (jointUnitCutoffTest (c i)).1 x ≠ 0) : + x ∈ closedBall (c i) 1 := by + fin_cases i + · rcases hx with hx | hx + · exact hx + · exact False.elim (hi (jointUnitCutoffTest_zero_other (c 1) (c 0) x + (by simpa only [dist_comm] using hc) hx)) + · rcases hx with hx | hx + · exact False.elim (hi (jointUnitCutoffTest_zero_other (c 0) (c 1) x hc hx)) + · exact hx + +/-- Four literal locally cut off kernels agree with the original scalar +kernel everywhere that both original test sources can be nonzero. -/ +theorem jointLocalKernel_four_patches_eq (c : Fin 2 → EuclideanSpace ℝ (Fin 3)) + (hc : 5 ≤ dist (c 0) (c 1)) (H : Fin 2 → Fin 2 → JointKernelSpace → ℂ) + (O : Fin 2 → Fin 2 → Set JointKernelSpace) (hO : ∀ i j, IsOpen (O i j)) + (hbox : ∀ i j, jointKernelBox (c i) (c j) 2 ⊆ O i j) + (hH : ∀ i j, ContDiffOn ℝ (⊤ : ℕ∞) (H i j) (O i j)) + (F : JointKernelSpace → ℂ) + (hF : ∀ i j x, x.fst ∈ closedBall (c i) 1 → x.snd ∈ closedBall (c j) 1 → H i j x = F x) + (x : JointKernelSpace) + (hx : x.fst ∈ closedBall (c 0) 1 ∪ closedBall (c 1) 1) + (hy : x.snd ∈ closedBall (c 0) 1 ∪ closedBall (c 1) 1) : + (∑ i : Fin 2, ∑ j : Fin 2, + cutOffJointLocalKernel (c i) (c j) (H i j) (O i j) (hO i j) (hbox i j) (hH i j) x) = F x := by + simp only [cutOffJointLocalKernel_apply, jointSmoothCutoff_apply] + calc + _ = ∑ i : Fin 2, ∑ j : Fin 2, + (((jointUnitCutoffTest (c i)).1 x.fst : ℂ) * + ((jointUnitCutoffTest (c j)).1 x.snd : ℂ)) * F x := by + apply Finset.sum_congr rfl + intro i hi + apply Finset.sum_congr rfl + intro j hj + by_cases hi0 : (jointUnitCutoffTest (c i)).1 x.fst = 0 + · simp only [hi0, Complex.ofReal_zero, zero_mul] + by_cases hj0 : (jointUnitCutoffTest (c j)).1 x.snd = 0 + · simp only [hj0, Complex.ofReal_zero, mul_zero, zero_mul] + rw [hF i j x (jointUnitCutoffTest_nonzero_locates c hc x.fst hx i hi0) + (jointUnitCutoffTest_nonzero_locates c hc x.snd hy j hj0)] + _ = ((∑ i : Fin 2, ((jointUnitCutoffTest (c i)).1 x.fst : ℂ)) * + (∑ j : Fin 2, ((jointUnitCutoffTest (c j)).1 x.snd : ℂ))) * F x := by + rw [Fintype.sum_mul_sum] + simp only [Finset.sum_mul] + _ = F x := by rw [jointUnitCutoffTest_sum_eq_one c hc _ hx, + jointUnitCutoffTest_sum_eq_one c hc _ hy, one_mul, one_mul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelPlancherel.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelPlancherel.lean new file mode 100644 index 0000000000..321a0714d8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelPlancherel.lean @@ -0,0 +1,214 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier +public import Mathlib.Analysis.InnerProductSpace.ProdL2 +public import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace + +/-! +# Mixed derivative control of the actual six-dimensional kernel transform + +The carrier is the real Hilbert product, with its actual Euclidean volume. +The two factors of the frequency weight arise from the first derivatives +in each variable and their mixed derivatives. All integrals are genuine +Schwartz integrals; no kernel-operator or source-norm estimate is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory FourierTransform LineDeriv +open scoped SchwartzMap FourierTransform LineDeriv + +section MixedPlancherel + +variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] + [FiniteDimensional ℝ V] [MeasurableSpace V] [BorelSpace V] + {ι κ : Type*} [Fintype ι] [Fintype κ] + +theorem norm_sq_fourier_lineDeriv (K : SchwartzMap V ℂ) (v ξ : V) : + ‖(𝓕 (∂_{v} K)) ξ‖ ^ 2 = + (2 * Real.pi) ^ 2 * (inner ℝ ξ v) ^ 2 * ‖(𝓕 K) ξ‖ ^ 2 := by + have hv : Function.HasTemperateGrowth (inner ℝ · v) := + ((innerSL ℝ).flip v).hasTemperateGrowth + rw [SchwartzMap.fourier_lineDerivOp_eq] + simp only [smul_apply, SchwartzMap.smulLeftCLM_apply_apply hv, + norm_smul, norm_mul, Complex.norm_ofNat, Complex.norm_real, Complex.norm_I, + mul_one, Real.norm_eq_abs, abs_of_pos Real.pi_pos, mul_pow, sq_abs] + ring + +/-- Mixed kernel frequency weight. -/ +def mixedKernelFrequencyWeight (u : ι → V) (v : κ → V) (ξ : V) : ℝ := + (1 + (2 * Real.pi) ^ 2 * ∑ i, (inner ℝ ξ (u i)) ^ 2) * + (1 + (2 * Real.pi) ^ 2 * ∑ j, (inner ℝ ξ (v j)) ^ 2) + +/-- Mixed kernel derivative energy. -/ +def mixedKernelDerivativeEnergy (u : ι → V) (v : κ → V) + (K : SchwartzMap V ℂ) : ℝ := + (∫ x, ‖K x‖ ^ 2) + (∑ i, ∫ x, ‖(∂_{u i} K) x‖ ^ 2) + + (∑ j, ∫ x, ‖(∂_{v j} K) x‖ ^ 2) + + ∑ i, ∑ j, ∫ x, ‖(∂_{u i} (∂_{v j} K)) x‖ ^ 2 + +theorem mixedKernelFrequencyWeight_mul_norm_sq (u : ι → V) (v : κ → V) + (K : SchwartzMap V ℂ) (ξ : V) : + mixedKernelFrequencyWeight u v ξ * ‖(𝓕 K) ξ‖ ^ 2 = + ‖(𝓕 K) ξ‖ ^ 2 + (∑ i, ‖(𝓕 (∂_{u i} K)) ξ‖ ^ 2) + + (∑ j, ‖(𝓕 (∂_{v j} K)) ξ‖ ^ 2) + + ∑ i, ∑ j, ‖(𝓕 (∂_{u i} (∂_{v j} K))) ξ‖ ^ 2 := by + simp only [mixedKernelFrequencyWeight, norm_sq_fourier_lineDeriv] + have hleft : (∑ i, (2 * Real.pi) ^ 2 * (inner ℝ ξ (u i)) ^ 2 * ‖(𝓕 K) ξ‖ ^ 2) = + (2 * Real.pi) ^ 2 * (∑ i, (inner ℝ ξ (u i)) ^ 2) * ‖(𝓕 K) ξ‖ ^ 2 := by + rw [Finset.mul_sum, Finset.sum_mul] + have hright : (∑ j, (2 * Real.pi) ^ 2 * (inner ℝ ξ (v j)) ^ 2 * ‖(𝓕 K) ξ‖ ^ 2) = + (2 * Real.pi) ^ 2 * (∑ j, (inner ℝ ξ (v j)) ^ 2) * ‖(𝓕 K) ξ‖ ^ 2 := by + rw [Finset.mul_sum, Finset.sum_mul] + have hboth : (∑ i, ∑ j, (2 * Real.pi) ^ 2 * (inner ℝ ξ (u i)) ^ 2 * + ((2 * Real.pi) ^ 2 * (inner ℝ ξ (v j)) ^ 2 * ‖(𝓕 K) ξ‖ ^ 2)) = + (2 * Real.pi) ^ 4 * (∑ i, (inner ℝ ξ (u i)) ^ 2) * + (∑ j, (inner ℝ ξ (v j)) ^ 2) * ‖(𝓕 K) ξ‖ ^ 2 := by + calc + _ = ∑ i, ∑ j, ((2 * Real.pi) ^ 4 * ‖(𝓕 K) ξ‖ ^ 2) * + ((inner ℝ ξ (u i)) ^ 2 * (inner ℝ ξ (v j)) ^ 2) := by + apply Finset.sum_congr rfl + intro i hi + apply Finset.sum_congr rfl + intro j hj + ring + _ = ((2 * Real.pi) ^ 4 * ‖(𝓕 K) ξ‖ ^ 2) * + (∑ i, ∑ j, (inner ℝ ξ (u i)) ^ 2 * (inner ℝ ξ (v j)) ^ 2) := by + simp only [Finset.mul_sum] + _ = _ := by rw [← Finset.sum_mul_sum]; ring + rw [hleft, hright, hboth] + ring + +theorem integrable_mixedKernelFrequencyWeight (u : ι → V) (v : κ → V) + (K : SchwartzMap V ℂ) : + Integrable (fun ξ => mixedKernelFrequencyWeight u v ξ * ‖(𝓕 K) ξ‖ ^ 2) := by + have hi (L : SchwartzMap V ℂ) : Integrable (fun ξ => ‖(𝓕 L) ξ‖ ^ 2) := + ((𝓕 L).memLp 2).norm.integrable_sq + simp_rw [mixedKernelFrequencyWeight_mul_norm_sq] + exact (((hi K).add (integrable_finsetSum _ (fun i _ => hi (∂_{u i} K)))).add + (integrable_finsetSum _ (fun j _ => hi (∂_{v j} K)))).add + (integrable_finsetSum _ (fun i _ => + integrable_finsetSum _ (fun j _ => hi (∂_{u i} (∂_{v j} K))))) + +/-- Separate scalar integral linearity from the large Schwartz operator terms. -/ +private theorem integral_four_families + (a : V → ℝ) (b : ι → V → ℝ) (c : κ → V → ℝ) (d : ι → κ → V → ℝ) + (ha : Integrable a) (hb : ∀ i, Integrable (b i)) + (hc : ∀ j, Integrable (c j)) (hd : ∀ i j, Integrable (d i j)) : + (∫ x, a x + (∑ i, b i x) + (∑ j, c j x) + ∑ i, ∑ j, d i j x) = + (∫ x, a x) + (∑ i, ∫ x, b i x) + (∑ j, ∫ x, c j x) + + ∑ i, ∑ j, ∫ x, d i j x := by + have hbs := integrable_finsetSum Finset.univ (fun i _ => hb i) + have hcs := integrable_finsetSum Finset.univ (fun j _ => hc j) + have hds := integrable_finsetSum Finset.univ (fun i _ => + integrable_finsetSum Finset.univ (fun j _ => hd i j)) + have hsplit : (∫ x, a x + (∑ i, b i x) + (∑ j, c j x) + ∑ i, ∑ j, d i j x) = + ((∫ x, a x) + (∫ x, ∑ i, b i x)) + (∫ x, ∑ j, c j x) + + ∫ x, ∑ i, ∑ j, d i j x := by + calc + _ = (∫ x, a x + (∑ i, b i x) + ∑ j, c j x) + + ∫ x, ∑ i, ∑ j, d i j x := integral_add ((ha.add hbs).add hcs) hds + _ = ((∫ x, a x + ∑ i, b i x) + (∫ x, ∑ j, c j x)) + + ∫ x, ∑ i, ∑ j, d i j x := + congrArg (fun z : ℝ => z + ∫ x, ∑ i, ∑ j, d i j x) + (integral_add (ha.add hbs) hcs) + _ = _ := congrArg (fun z : ℝ => z + (∫ x, ∑ j, c j x) + + ∫ x, ∑ i, ∑ j, d i j x) (integral_add ha hbs) + have hbint : (∫ x, ∑ i, b i x) = ∑ i, ∫ x, b i x := + integral_finsetSum _ (fun i _ => hb i) + have hcint : (∫ x, ∑ j, c j x) = ∑ j, ∫ x, c j x := + integral_finsetSum _ (fun j _ => hc j) + have hdint : (∫ x, ∑ i, ∑ j, d i j x) = ∑ i, ∑ j, ∫ x, d i j x := by + calc + _ = ∑ i, ∫ x, ∑ j, d i j x := + integral_finsetSum _ (fun i _ => integrable_finsetSum _ (fun j _ => hd i j)) + _ = _ := Finset.sum_congr rfl (fun i _ => integral_finsetSum _ (fun j _ => hd i j)) + rw [hsplit, hbint, hcint, hdint] + +/-- Exact weighted Plancherel, with the normalization of the actual Mathlib +Fourier transform displayed in the weight. -/ +theorem integral_mixedKernelFrequencyWeight (u : ι → V) (v : κ → V) + (K : SchwartzMap V ℂ) : + (∫ ξ, mixedKernelFrequencyWeight u v ξ * ‖(𝓕 K) ξ‖ ^ 2) = + mixedKernelDerivativeEnergy u v K := by + have hi (L : SchwartzMap V ℂ) : Integrable (fun ξ => ‖(𝓕 L) ξ‖ ^ 2) := + ((𝓕 L).memLp 2).norm.integrable_sq + calc + _ = ∫ ξ, ‖(𝓕 K) ξ‖ ^ 2 + (∑ i, ‖(𝓕 (∂_{u i} K)) ξ‖ ^ 2) + + (∑ j, ‖(𝓕 (∂_{v j} K)) ξ‖ ^ 2) + + ∑ i, ∑ j, ‖(𝓕 (∂_{u i} (∂_{v j} K))) ξ‖ ^ 2 := by + apply integral_congr_ae + exact Filter.Eventually.of_forall (mixedKernelFrequencyWeight_mul_norm_sq u v K) + _ = (∫ ξ, ‖(𝓕 K) ξ‖ ^ 2) + (∑ i, ∫ ξ, ‖(𝓕 (∂_{u i} K)) ξ‖ ^ 2) + + (∑ j, ∫ ξ, ‖(𝓕 (∂_{v j} K)) ξ‖ ^ 2) + + ∑ i, ∑ j, ∫ ξ, ‖(𝓕 (∂_{u i} (∂_{v j} K))) ξ‖ ^ 2 := + integral_four_families _ _ _ _ (hi K) (fun i => hi (∂_{u i} K)) + (fun j => hi (∂_{v j} K)) (fun i j => hi (∂_{u i} (∂_{v j} K))) + _ = _ := by + simp only [SchwartzMap.integral_norm_sq_fourier, mixedKernelDerivativeEnergy] + + +end MixedPlancherel + +/-- The actual real six-dimensional Euclidean space, not the max-norm product. -/ +abbrev JointKernelSpace := WithLp 2 + (EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) + +/-- Joint kernel left direction defined as `WithLp.toLp 2 (EuclideanSpace.basisFun (Fin 3) ℝ i, +0)`. -/ +def jointKernelLeftDirection (i : Fin 3) : JointKernelSpace := + WithLp.toLp 2 (EuclideanSpace.basisFun (Fin 3) ℝ i, 0) + +/-- Joint kernel right direction defined as `WithLp.toLp 2 (0, EuclideanSpace.basisFun (Fin 3) ℝ +i)`. -/ +def jointKernelRightDirection (i : Fin 3) : JointKernelSpace := + WithLp.toLp 2 (0, EuclideanSpace.basisFun (Fin 3) ℝ i) + +theorem jointKernelFrequencyWeight_eq (ξ : JointKernelSpace) : + mixedKernelFrequencyWeight jointKernelLeftDirection jointKernelRightDirection ξ = + (1 + (2 * Real.pi) ^ 2 * ‖ξ.fst‖ ^ 2) * + (1 + (2 * Real.pi) ^ 2 * ‖ξ.snd‖ ^ 2) := by + simp only [mixedKernelFrequencyWeight, jointKernelLeftDirection, + jointKernelRightDirection, WithLp.prod_inner_apply, + inner_zero_right, add_zero, zero_add] + rw [(EuclideanSpace.basisFun (Fin 3) ℝ).sum_sq_inner_left, + (EuclideanSpace.basisFun (Fin 3) ℝ).sum_sq_inner_left] + rfl + +/-- Joint kernel derivative energy defined as `mixedKernelDerivativeEnergy jointKernelLeftDirection +jointKernelRightDirection K`. -/ +def jointKernelDerivativeEnergy (K : SchwartzMap JointKernelSpace ℂ) : ℝ := + mixedKernelDerivativeEnergy jointKernelLeftDirection jointKernelRightDirection K + +theorem jointKernelDerivativeEnergy_nonneg (K : SchwartzMap JointKernelSpace ℂ) : + 0 ≤ jointKernelDerivativeEnergy K := by + unfold jointKernelDerivativeEnergy mixedKernelDerivativeEnergy + positivity + +/-- The sixteen actual position-space L² terms control the full polynomial +frequency weight on the original six-dimensional Hilbert carrier. -/ +theorem integral_jointKernel_frequency_weight (K : SchwartzMap JointKernelSpace ℂ) : + (∫ ξ : JointKernelSpace, + (1 + (2 * Real.pi) ^ 2 * ‖ξ.fst‖ ^ 2) * + (1 + (2 * Real.pi) ^ 2 * ‖ξ.snd‖ ^ 2) * ‖(𝓕 K) ξ‖ ^ 2) = + jointKernelDerivativeEnergy K := by + simpa only [jointKernelFrequencyWeight_eq, jointKernelDerivativeEnergy] using + integral_mixedKernelFrequencyWeight jointKernelLeftDirection jointKernelRightDirection K + +theorem integrable_jointKernel_frequency_weight (K : SchwartzMap JointKernelSpace ℂ) : + Integrable (fun ξ : JointKernelSpace => + (1 + (2 * Real.pi) ^ 2 * ‖ξ.fst‖ ^ 2) * + (1 + (2 * Real.pi) ^ 2 * ‖ξ.snd‖ ^ 2) * ‖(𝓕 K) ξ‖ ^ 2) := by + simpa only [jointKernelFrequencyWeight_eq] using + integrable_mixedKernelFrequencyWeight jointKernelLeftDirection jointKernelRightDirection K + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelProduct.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelProduct.lean new file mode 100644 index 0000000000..9bcb9c677d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelProduct.lean @@ -0,0 +1,158 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelCauchySchwarz +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFourier + +/-! +# Actual compact product tests and their six-dimensional Fourier transform + +The product test is a genuine Schwartz map on the L2 Hilbert product. +Euclidean product volume and the Fourier phase both split without a +Jacobian. The scalar pairing is the original real-test kernel pairing. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory FourierTransform Set +open scoped SchwartzMap FourierTransform ComplexConjugate + +theorem hasCompactSupport_jointSpatialTestProduct (f g : SpatialTestFunction) : + HasCompactSupport (fun x : JointKernelSpace => (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ)) := by + let e := WithLp.prodContinuousLinearEquiv 2 ℝ + (EuclideanSpace ℝ (Fin 3)) (EuclideanSpace ℝ (Fin 3)) + apply HasCompactSupport.of_support_subset_isCompact + ((f.2.2.isCompact.prod g.2.2.isCompact).image e.symm.continuous) + intro x hx + have hfg : (f.1 x.fst : ℂ) ≠ 0 ∧ (g.1 x.snd : ℂ) ≠ 0 := mul_ne_zero_iff.mp hx + refine ⟨(x.fst, x.snd), ⟨subset_tsupport f.1 ?_, subset_tsupport g.1 ?_⟩, rfl⟩ + · exact_mod_cast hfg.1 + · exact_mod_cast hfg.2 + +/-- Joint spatial test product. -/ +def jointSpatialTestProduct (f g : SpatialTestFunction) : SchwartzMap JointKernelSpace ℂ := + (hasCompactSupport_jointSpatialTestProduct f g).toSchwartzMap + (((Complex.ofRealCLM.contDiff.comp f.2.1).comp + (WithLp.fstL 2 ℝ (EuclideanSpace ℝ (Fin 3)) (EuclideanSpace ℝ (Fin 3))).contDiff).mul + ((Complex.ofRealCLM.contDiff.comp g.2.1).comp + (WithLp.sndL 2 ℝ (EuclideanSpace ℝ (Fin 3)) (EuclideanSpace ℝ (Fin 3))).contDiff)) + +@[simp] theorem jointSpatialTestProduct_apply (f g : SpatialTestFunction) + (x : JointKernelSpace) : + jointSpatialTestProduct f g x = (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) := rfl + +theorem integral_jointKernel_ofLp {G : Type*} [NormedAddCommGroup G] [NormedSpace ℝ G] + (F : (EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) → G) : + (∫ x : JointKernelSpace, F (WithLp.ofLp x)) = ∫ x, F x := + (WithLp.volume_preserving_ofLp (EuclideanSpace ℝ (Fin 3)) + (EuclideanSpace ℝ (Fin 3))).integral_comp + (WithLp.prodContinuousLinearEquiv 2 ℝ (EuclideanSpace ℝ (Fin 3)) + (EuclideanSpace ℝ (Fin 3))).toHomeomorph.measurableEmbedding F + +/-- Literal product Fourier formula on the true six-dimensional carrier. -/ +theorem fourier_jointSpatialTestProduct (f g : SpatialTestFunction) (ξ : JointKernelSpace) : + (𝓕 (jointSpatialTestProduct f g)) ξ = + (𝓕 (spatialSchwartz f)) ξ.fst * (𝓕 (spatialSchwartz g)) ξ.snd := by + simp only [SchwartzMap.fourier_coe, Real.fourier_eq', smul_eq_mul] + let a := fun x : EuclideanSpace ℝ (Fin 3) => + Complex.exp (((-2 * Real.pi * inner ℝ x ξ.fst : ℝ) : ℂ) * Complex.I) * (f.1 x : ℂ) + let b := fun y : EuclideanSpace ℝ (Fin 3) => + Complex.exp (((-2 * Real.pi * inner ℝ y ξ.snd : ℝ) : ℂ) * Complex.I) * (g.1 y : ℂ) + have hphase (x : JointKernelSpace) : + Complex.exp (((-2 * Real.pi * inner ℝ x ξ : ℝ) : ℂ) * Complex.I) * + jointSpatialTestProduct f g x = a x.fst * b x.snd := by + rw [WithLp.prod_inner_apply, jointSpatialTestProduct_apply] + have he : (((-2 * Real.pi * + (inner ℝ x.fst ξ.fst + inner ℝ x.snd ξ.snd) : ℝ) : ℂ) * Complex.I) = + (((-2 * Real.pi * inner ℝ x.fst ξ.fst : ℝ) : ℂ) * Complex.I) + + (((-2 * Real.pi * inner ℝ x.snd ξ.snd : ℝ) : ℂ) * Complex.I) := by + push_cast + ring + change Complex.exp (((-2 * Real.pi * + (inner ℝ x.fst ξ.fst + inner ℝ x.snd ξ.snd) : ℝ) : ℂ) * Complex.I) * + ((f.1 x.fst : ℂ) * (g.1 x.snd : ℂ)) = a x.fst * b x.snd + rw [he, Complex.exp_add] + dsimp only [a, b] + ring + simp_rw [hphase] + change (∫ x : JointKernelSpace, (fun y => a y.1 * b y.2) (WithLp.ofLp x)) = _ + rw [integral_jointKernel_ofLp (fun x => a x.1 * b x.2)] + change (∫ x : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3), + a x.1 * b x.2 ∂(volume.prod volume)) = (∫ x, a x) * ∫ y, b y + exact integral_prod_mul a b + +/-- Joint test frequency weight given by `(1 + (2 * Real.pi) ^ 2 * ‖p‖ ^ 2)⁻¹`. -/ +def jointTestFrequencyWeight (p : EuclideanSpace ℝ (Fin 3)) : ℝ := + (1 + (2 * Real.pi) ^ 2 * ‖p‖ ^ 2)⁻¹ + +theorem jointTestFrequencyWeight_nonneg (p : EuclideanSpace ℝ (Fin 3)) : + 0 ≤ jointTestFrequencyWeight p := by unfold jointTestFrequencyWeight; positivity + +theorem jointTestFrequencyWeight_le_one (p : EuclideanSpace ℝ (Fin 3)) : + jointTestFrequencyWeight p ≤ 1 := by + apply (inv_le_one₀ (by positivity : 0 < 1 + (2 * Real.pi) ^ 2 * ‖p‖ ^ 2)).mpr + exact le_add_of_nonneg_right (by positivity) + +theorem integrable_jointTestFrequencyWeight (f : SpatialTestFunction) : + Integrable (fun p => jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz f)) p‖ ^ 2) := by + have hc : Continuous (fun p : EuclideanSpace ℝ (Fin 3) => + jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz f)) p‖ ^ 2) := by + have hden : Continuous (fun p : EuclideanSpace ℝ (Fin 3) => + 1 + (2 * Real.pi) ^ 2 * ‖p‖ ^ 2) := by fun_prop + exact (hden.inv₀ (fun p => + (show 0 < 1 + (2 * Real.pi) ^ 2 * ‖p‖ ^ 2 by positivity).ne')).mul + ((𝓕 (spatialSchwartz f)).continuous.norm.pow 2) + apply (((𝓕 (spatialSchwartz f)).memLp 2).norm.integrable_sq).mono' + hc.aestronglyMeasurable + exact Filter.Eventually.of_forall fun p => by + rw [Real.norm_of_nonneg (mul_nonneg (jointTestFrequencyWeight_nonneg p) (sq_nonneg _))] + exact mul_le_of_le_one_left (sq_nonneg _) (jointTestFrequencyWeight_le_one p) + +/-- Exact factorization of the inverse-weighted test energy. -/ +theorem integral_inverseWeight_jointSpatialTestProduct (f g : SpatialTestFunction) : + (∫ ξ, (jointKernelPolynomialWeight ξ)⁻¹ * ‖(𝓕 (jointSpatialTestProduct f g)) ξ‖ ^ 2) = + (∫ p, jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz f)) p‖ ^ 2) * + (∫ q, jointTestFrequencyWeight q * ‖(𝓕 (spatialSchwartz g)) q‖ ^ 2) := by + have he (ξ : JointKernelSpace) : + (jointKernelPolynomialWeight ξ)⁻¹ * ‖(𝓕 (jointSpatialTestProduct f g)) ξ‖ ^ 2 = + (jointTestFrequencyWeight ξ.fst * ‖(𝓕 (spatialSchwartz f)) ξ.fst‖ ^ 2) * + (jointTestFrequencyWeight ξ.snd * ‖(𝓕 (spatialSchwartz g)) ξ.snd‖ ^ 2) := by + rw [fourier_jointSpatialTestProduct] + simp only [jointKernelPolynomialWeight, jointTestFrequencyWeight, mul_inv_rev, norm_mul, + mul_pow] + ring + simp_rw [he] + change (∫ ξ : JointKernelSpace, + (fun x : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + (jointTestFrequencyWeight x.1 * ‖(𝓕 (spatialSchwartz f)) x.1‖ ^ 2) * + (jointTestFrequencyWeight x.2 * ‖(𝓕 (spatialSchwartz g)) x.2‖ ^ 2)) + (WithLp.ofLp ξ)) = _ + let a : EuclideanSpace ℝ (Fin 3) → ℝ := fun p => + jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz f)) p‖ ^ 2 + let b : EuclideanSpace ℝ (Fin 3) → ℝ := fun p => + jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz g)) p‖ ^ 2 + calc + _ = ∫ x : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3), a x.1 * b x.2 := + integral_jointKernel_ofLp (G := ℝ) (fun x => a x.1 * b x.2) + _ = _ := integral_prod_mul a b + +/-- The real compact-test kernel form, with no abstract pairing hypothesis. -/ +theorem jointKernel_real_test_pairing_le (K : SchwartzMap JointKernelSpace ℂ) + (f g : SpatialTestFunction) : + ‖∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * K x‖ ≤ + Real.sqrt (jointKernelDerivativeEnergy K) * + Real.sqrt ((∫ p, jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz f)) p‖ ^ 2) * + (∫ q, jointTestFrequencyWeight q * ‖(𝓕 (spatialSchwartz g)) q‖ ^ 2)) := by + simpa only [jointSpatialTestProduct_apply, map_mul, Complex.conj_ofReal, + integral_inverseWeight_jointSpatialTestProduct] using + jointKernel_pairing_le K (jointSpatialTestProduct f g) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelSourceOperator.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelSourceOperator.lean new file mode 100644 index 0000000000..9d6b677435 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelSourceOperator.lean @@ -0,0 +1,80 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelForms + +/-! +# Actual smooth-kernel operators on the total-source completion + +These operators are obtained from the literal compact-test integrals in +the original joint covariance norm. The constants retain their explicit +mass dependence; cutoff and derivative estimates are separate inputs to +later applications of the displayed sixteen-term kernel energy. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory FourierTransform +open scoped SchwartzMap FourierTransform InnerProductSpace + +/-- Field form on the genuine source completion of an arbitrary region. -/ +def jointFieldKernelOperator {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (K : SchwartzMap JointKernelSpace ℂ) : + SourceHilbert hμ U →L[ℝ] SourceHilbert hμ U := + Gaussian.completedRealFormOperator + (boundedJointKernelTestForm (sourceFieldTestProjection hμ U) K + (show 0 ≤ 2 * max 1 μ by positivity) (jointTestWeight_first_le_source_norm hμ U)) + +theorem jointFieldKernelOperator_pairing {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (K : SchwartzMap JointKernelSpace ℂ) + (u v : SourceTestSpace hμ U) : + inner ℝ (u : SourceHilbert hμ U) (jointFieldKernelOperator hμ U K (v : SourceHilbert hμ U)) = + (∫ x : JointKernelSpace, (u.1.1.1 x.fst : ℂ) * (v.1.1.1 x.snd : ℂ) * K x).re := by + unfold jointFieldKernelOperator + rw [Gaussian.inner_completedRealFormOperator_coe] + rfl + +theorem norm_jointFieldKernelOperator_le {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (K : SchwartzMap JointKernelSpace ℂ) : + ‖jointFieldKernelOperator hμ U K‖ ≤ + (2 * max 1 μ) * Real.sqrt (jointKernelDerivativeEnergy K) := by + apply (Gaussian.norm_completedRealFormOperator_le _).trans + exact norm_boundedJointKernelTestForm_le (sourceFieldTestProjection hμ U) K _ _ + +/-- Momentum form on the genuine joint completion of the two-ball union. -/ +def jointMomentumKernelOperator {μ : ℝ} (hμ : 0 < μ) + (a b : EuclideanSpace ℝ (Fin 3)) (K : SchwartzMap JointKernelSpace ℂ) : + SourceHilbert hμ (Metric.ball a 1 ∪ Metric.ball b 1) →L[ℝ] + SourceHilbert hμ (Metric.ball a 1 ∪ Metric.ball b 1) := + Gaussian.completedRealFormOperator + (boundedJointKernelTestForm + (sourceMomentumTestProjection hμ (Metric.ball a 1 ∪ Metric.ball b 1)) K + (by norm_num : (0 : ℝ) ≤ 4) (jointTestWeight_second_le_source_norm hμ a b)) + +theorem jointMomentumKernelOperator_pairing {μ : ℝ} (hμ : 0 < μ) + (a b : EuclideanSpace ℝ (Fin 3)) (K : SchwartzMap JointKernelSpace ℂ) + (u v : SourceTestSpace hμ (Metric.ball a 1 ∪ Metric.ball b 1)) : + inner ℝ (u : SourceHilbert hμ (Metric.ball a 1 ∪ Metric.ball b 1)) + (jointMomentumKernelOperator hμ a b K + (v : SourceHilbert hμ (Metric.ball a 1 ∪ Metric.ball b 1))) = + (∫ x : JointKernelSpace, (u.1.2.1 x.fst : ℂ) * (v.1.2.1 x.snd : ℂ) * K x).re := by + unfold jointMomentumKernelOperator + rw [Gaussian.inner_completedRealFormOperator_coe] + rfl + +theorem norm_jointMomentumKernelOperator_le {μ : ℝ} (hμ : 0 < μ) + (a b : EuclideanSpace ℝ (Fin 3)) (K : SchwartzMap JointKernelSpace ℂ) : + ‖jointMomentumKernelOperator hμ a b K‖ ≤ 4 * Real.sqrt (jointKernelDerivativeEnergy K) := by + apply (Gaussian.norm_completedRealFormOperator_le _).trans + exact norm_boundedJointKernelTestForm_le + (sourceMomentumTestProjection hμ (Metric.ball a 1 ∪ Metric.ball b 1)) K _ _ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelSourceWeights.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelSourceWeights.lean new file mode 100644 index 0000000000..97a8c0aeb9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelSourceWeights.lean @@ -0,0 +1,159 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelProduct +public import LeanPool.VacuumBellSeparation.FreeField.JointDispersionComparison +public import LeanPool.VacuumBellSeparation.FreeField.SourceSpace + +/-! +# Actual joint-source control of the product-test Fourier weights + +All energies use the original physical Fourier transform with its exact +normalization. The estimates concern the total real test pair on the union, +and hence require neither a regional decomposition nor a synthesis inverse. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open MeasureTheory FourierTransform Set +open scoped SchwartzMap FourierTransform ComplexConjugate + +/-- Joint field energy given by `((2 * Real.pi) ^ 3)⁻¹ * ∫ p, (dispersion μ p)⁻¹ * ‖spatialFourier +f p‖ ^ 2`. -/ +def jointFieldEnergy (μ : ℝ) (f : SpatialTestFunction) : ℝ := + ((2 * Real.pi) ^ 3)⁻¹ * ∫ p, (dispersion μ p)⁻¹ * ‖spatialFourier f p‖ ^ 2 + +/-- Joint momentum energy given by `((2 * Real.pi) ^ 3)⁻¹ * ∫ p, dispersion μ p * ‖spatialFourier g +p‖ ^ 2`. -/ +def jointMomentumEnergy (μ : ℝ) (g : SpatialTestFunction) : ℝ := + ((2 * Real.pi) ^ 3)⁻¹ * ∫ p, dispersion μ p * ‖spatialFourier g p‖ ^ 2 + +theorem jointFieldEnergy_nonneg (μ : ℝ) (f : SpatialTestFunction) : + 0 ≤ jointFieldEnergy μ f := by unfold jointFieldEnergy dispersion; positivity + +theorem jointMomentumEnergy_nonneg (μ : ℝ) (g : SpatialTestFunction) : + 0 ≤ jointMomentumEnergy μ g := by unfold jointMomentumEnergy dispersion; positivity + +theorem timeZeroFourierCovariance_self_eq_jointEnergies (μ : ℝ) (u : TimeZeroSource) : + timeZeroFourierCovariance μ u u = + (jointFieldEnergy μ u.1 + jointMomentumEnergy μ u.2) / 2 := by + have hi (f : SpatialTestFunction) (w : EuclideanSpace ℝ (Fin 3) → ℝ) : + (∫ p, (conj (spatialFourier f p) * spatialFourier f p) * (w p : ℂ)) = + ((∫ p, w p * ‖spatialFourier f p‖ ^ 2 : ℝ) : ℂ) := by + have he (p : EuclideanSpace ℝ (Fin 3)) : + (conj (spatialFourier f p) * spatialFourier f p) * (w p : ℂ) = + ((w p * ‖spatialFourier f p‖ ^ 2 : ℝ) : ℂ) := by + rw [Complex.conj_mul'] + push_cast + ring + simp_rw [he] + exact integral_ofReal + unfold timeZeroFourierCovariance timeZeroFourierDiagonal + rw [hi, hi] + simp only [← Complex.ofReal_add, ← Complex.ofReal_mul, Complex.ofReal_re, + jointFieldEnergy, jointMomentumEnergy, div_eq_mul_inv, mul_inv_rev] + ring + +theorem jointFieldEnergy_le_sourceTest_norm_sq {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (u : SourceTestSpace hμ U) : + jointFieldEnergy μ u.1.1 ≤ 2 * ‖u‖ ^ 2 := by + rw [sourceTestSpace_norm_sq, timeZeroFourierCovariance_self_eq_jointEnergies] + have h := jointMomentumEnergy_nonneg μ u.1.2 + linarith + +theorem jointMomentumEnergy_le_sourceTest_norm_sq {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (u : SourceTestSpace hμ U) : + jointMomentumEnergy μ u.1.2 ≤ 2 * ‖u‖ ^ 2 := by + rw [sourceTestSpace_norm_sq, timeZeroFourierCovariance_self_eq_jointEnergies] + have h := jointFieldEnergy_nonneg μ u.1.1 + linarith + +theorem jointTestFrequencyWeight_le_inverse_dispersion (p : EuclideanSpace ℝ (Fin 3)) : + jointTestFrequencyWeight p ≤ (dispersion 1 ((2 * Real.pi) • p))⁻¹ := by + have hd : 1 ≤ dispersion 1 ((2 * Real.pi) • p) := le_dispersion (by norm_num) _ + have he : dispersion 1 ((2 * Real.pi) • p) ^ 2 = + 1 + (2 * Real.pi) ^ 2 * ‖p‖ ^ 2 := by + rw [dispersion_sq, norm_smul, Real.norm_of_nonneg (by positivity), mul_pow] + norm_num + unfold jointTestFrequencyWeight + apply inv_anti₀ (by linarith : 0 < dispersion 1 ((2 * Real.pi) • p)) + nlinarith + +theorem normalized_inverse_dispersion_energy (μ : ℝ) (f : SpatialTestFunction) : + (∫ p, (dispersion μ ((2 * Real.pi) • p))⁻¹ * ‖(𝓕 (spatialSchwartz f)) p‖ ^ 2) = + jointFieldEnergy μ f := by + have h := Measure.integral_comp_smul volume + (fun p => (dispersion μ p)⁻¹ * ‖spatialFourier f p‖ ^ 2) (2 * Real.pi) + rw [finrank_momentum, abs_of_pos (by positivity : 0 < ((2 * Real.pi) ^ 3)⁻¹)] at h + simpa only [spatialFourier_two_pi, smul_eq_mul, jointFieldEnergy] using h + +theorem integral_jointTestWeight_le_fieldEnergy {μ : ℝ} (hμ : 0 < μ) + (f : SpatialTestFunction) : + (∫ p, jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz f)) p‖ ^ 2) ≤ + max 1 μ * jointFieldEnergy μ f := by + have hi : Integrable (fun p => (dispersion 1 ((2 * Real.pi) • p))⁻¹ * + ‖(𝓕 (spatialSchwartz f)) p‖ ^ 2) := by + have h := (integrable_comp_smul_iff volume + (fun p => (dispersion 1 p)⁻¹ * ‖spatialFourier f p‖ ^ 2) + (by positivity : 2 * Real.pi ≠ 0)).mpr + (integrable_inv_dispersion_fourier_norm_sq (by norm_num : (0 : ℝ) < 1) f) + simpa only [spatialFourier_two_pi] using h + calc + _ ≤ ∫ p, (dispersion 1 ((2 * Real.pi) • p))⁻¹ * + ‖(𝓕 (spatialSchwartz f)) p‖ ^ 2 := by + apply integral_mono_ae (integrable_jointTestFrequencyWeight f) hi + exact Filter.Eventually.of_forall fun p => mul_le_mul_of_nonneg_right + (jointTestFrequencyWeight_le_inverse_dispersion p) (sq_nonneg _) + _ = jointFieldEnergy 1 f := normalized_inverse_dispersion_energy 1 f + _ ≤ _ := by + unfold jointFieldEnergy + have h := mul_le_mul_of_nonneg_left (joint_field_mass_comparison hμ f) + (by positivity : 0 ≤ ((2 * Real.pi) ^ 3)⁻¹) + simpa only [mul_left_comm] using h + +theorem integral_jointTestWeight_le_position_L2 (f : SpatialTestFunction) : + (∫ p, jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz f)) p‖ ^ 2) ≤ + ∫ x, (f.1 x) ^ 2 := by + calc + _ ≤ ∫ p, ‖(𝓕 (spatialSchwartz f)) p‖ ^ 2 := by + apply integral_mono_ae (integrable_jointTestFrequencyWeight f) + (((𝓕 (spatialSchwartz f)).memLp 2).norm.integrable_sq) + exact Filter.Eventually.of_forall fun p => + mul_le_of_le_one_left (sq_nonneg _) (jointTestFrequencyWeight_le_one p) + _ = _ := by + rw [SchwartzMap.integral_norm_sq_fourier] + simp only [spatialSchwartz_apply, Complex.norm_real, Real.norm_eq_abs, sq_abs] + +/-- Uniform field-test estimate in the actual total-source covariance norm. -/ +theorem jointTestWeight_first_le_source_norm {μ : ℝ} (hμ : 0 < μ) + (U : Set (EuclideanSpace ℝ (Fin 3))) (u : SourceTestSpace hμ U) : + (∫ p, jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz u.1.1)) p‖ ^ 2) ≤ + (2 * max 1 μ) * ‖u‖ ^ 2 := by + apply (integral_jointTestWeight_le_fieldEnergy hμ u.1.1).trans + have h := mul_le_mul_of_nonneg_left (jointFieldEnergy_le_sourceTest_norm_sq hμ U u) + (show 0 ≤ max 1 μ by positivity) + simpa only [← mul_assoc, mul_comm (max 1 μ) 2] using h + +/-- Uniform momentum-test estimate uses the genuine total support volume +bound and the original low-frequency absorption on the two-ball union. -/ +theorem jointTestWeight_second_le_source_norm {μ : ℝ} (hμ : 0 < μ) + (a b : EuclideanSpace ℝ (Fin 3)) + (u : SourceTestSpace hμ (Metric.ball a 1 ∪ Metric.ball b 1)) : + (∫ p, jointTestFrequencyWeight p * ‖(𝓕 (spatialSchwartz u.1.2)) p‖ ^ 2) ≤ + 4 * ‖u‖ ^ 2 := by + apply (integral_jointTestWeight_le_position_L2 u.1.2).trans + have h := joint_position_L2_le_weighted_fourier hμ.le u.1.2 a b + ((subset_tsupport u.1.2.1).trans u.2.2) + have he : (∫ x, (u.1.2.1 x) ^ 2) ≤ 2 * jointMomentumEnergy μ u.1.2 := by + simpa only [jointMomentumEnergy, div_eq_mul_inv, mul_assoc] using h + exact he.trans (by nlinarith [jointMomentumEnergy_le_sourceTest_norm_sq hμ _ u]) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelUniformBound.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelUniformBound.lean new file mode 100644 index 0000000000..78bddf79af --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSmoothKernelUniformBound.lean @@ -0,0 +1,143 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelEnergyBound +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelSourceOperator + +/-! +# Uniform smooth-kernel bounds in the actual joint source norm + +One fixed finite constant controls all translated cutoff boxes. A bound +on derivatives through order two on that box supplies the actual field +and momentum operator bounds. In particular this applies directly to +smooth polynomial increments, without any regional source inverse. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Set Metric +open scoped SchwartzMap + +/-- Joint cutoff second order bound defined as `1 + jointCutoffDerivativeBound 0 + 2 * +jointCutoffDerivativeBound 1 + jointCutoffDerivativeBound 2`. -/ +def jointCutoffSecondOrderBound : ℝ := + 1 + jointCutoffDerivativeBound 0 + 2 * jointCutoffDerivativeBound 1 + jointCutoffDerivativeBound 2 + +theorem jointCutoffSecondOrderBound_pos : 0 < jointCutoffSecondOrderBound := by + have h0 := jointCutoffDerivativeBound_nonneg 0 + have h1 := jointCutoffDerivativeBound_nonneg 1 + have h2 := jointCutoffDerivativeBound_nonneg 2 + unfold jointCutoffSecondOrderBound + linarith + +private theorem jointCutoff_binomial_sum_le {n : ℕ} (hn : n ≤ 2) : + (∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * jointCutoffDerivativeBound i) ≤ + jointCutoffSecondOrderBound := by + have h0 := jointCutoffDerivativeBound_nonneg 0 + have h1 := jointCutoffDerivativeBound_nonneg 1 + have h2 := jointCutoffDerivativeBound_nonneg 2 + unfold jointCutoffSecondOrderBound + interval_cases n <;> simp only [Finset.sum_range_succ, Finset.sum_range_zero, + Nat.choose_zero_right, Nat.choose_self, Nat.cast_one, + Nat.cast_ofNat, Nat.choose_one_right, zero_add, one_mul] <;> nlinarith + +theorem norm_iteratedFDeriv_cutOff_le_uniform {M : ℝ} (hM : 0 ≤ M) + (a b : EuclideanSpace ℝ (Fin 3)) (H : JointKernelSpace → ℂ) + (hH : ContDiff ℝ (⊤ : ℕ∞) H) + (hbound : ∀ n ≤ 2, ∀ x ∈ jointKernelBox a b 2, ‖iteratedFDeriv ℝ n H x‖ ≤ M) + {n : ℕ} (hn : n ≤ 2) {x : JointKernelSpace} (hx : x ∈ jointKernelBox a b 2) : + ‖iteratedFDeriv ℝ n (cutOffJointSmoothKernel a b H hH) x‖ ≤ + jointCutoffSecondOrderBound * M := by + apply (norm_iteratedFDeriv_cutOffJointSmoothKernel_le a b H hH n x).trans + calc + _ ≤ ∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * jointCutoffDerivativeBound i * M := by + apply Finset.sum_le_sum + intro i hi + exact mul_le_mul_of_nonneg_left (hbound (n - i) (by omega) x hx) + (mul_nonneg (Nat.cast_nonneg _) (jointCutoffDerivativeBound_nonneg i)) + _ = (∑ i ∈ Finset.range (n + 1), (n.choose i : ℝ) * jointCutoffDerivativeBound i) * M := + (Finset.sum_mul _ _ _).symm + _ ≤ _ := mul_le_mul_of_nonneg_right (jointCutoff_binomial_sum_le hn) hM + +theorem tsupport_cutOffJointSmoothKernel_subset (a b : EuclideanSpace ℝ (Fin 3)) + (H : JointKernelSpace → ℂ) (hH : ContDiff ℝ (⊤ : ℕ∞) H) : + tsupport (cutOffJointSmoothKernel a b H hH) ⊆ jointKernelBox a b 2 := + tsupport_mul_subset_left.trans (tsupport_jointSmoothCutoff_subset a b) + +theorem sqrt_jointKernelEnergy_cutOff_le {M : ℝ} (hM : 0 ≤ M) + (a b : EuclideanSpace ℝ (Fin 3)) (H : JointKernelSpace → ℂ) + (hH : ContDiff ℝ (⊤ : ℕ∞) H) + (hbound : ∀ n ≤ 2, ∀ x ∈ jointKernelBox a b 2, ‖iteratedFDeriv ℝ n H x‖ ≤ M) : + Real.sqrt (jointKernelDerivativeEnergy (cutOffJointSmoothKernel a b H hH)) ≤ + 4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound * M := by + have he := jointKernelDerivativeEnergy_le + (mul_nonneg jointCutoffSecondOrderBound_pos.le hM) a b + (cutOffJointSmoothKernel a b H hH) (tsupport_cutOffJointSmoothKernel_subset a b H hH) + (fun n hn x hx => norm_iteratedFDeriv_cutOff_le_uniform hM a b H hH hbound hn hx) + have hD := jointCutoffSecondOrderBound_pos.le + apply Real.sqrt_le_iff.mpr + refine ⟨by positivity, ?_⟩ + calc + _ ≤ 16 * jointKernelBoxVolume * (jointCutoffSecondOrderBound * M) ^ 2 := he + _ = (4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound * M) ^ 2 := by + simp only [mul_pow, Real.sq_sqrt jointKernelBoxVolume_nonneg] + ring + +/-- Joint smooth kernel universal constant given by `1 + 16 * Real.sqrt jointKernelBoxVolume * +jointCutoffSecondOrderBound`. -/ +def jointSmoothKernelUniversalConstant : ℝ := + 1 + 16 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound + +theorem jointSmoothKernelUniversalConstant_pos : 0 < jointSmoothKernelUniversalConstant := by + have hD := jointCutoffSecondOrderBound_pos.le + unfold jointSmoothKernelUniversalConstant + positivity + +/-- A single actual constant controls both source components, uniformly +in the centers, separation, mass and original compact test sources. -/ +theorem jointSmoothKernel_uniform_operator_bounds {μ M : ℝ} (hμ : 0 < μ) (hM : 0 ≤ M) + (a b : EuclideanSpace ℝ (Fin 3)) (H : JointKernelSpace → ℂ) + (hH : ContDiff ℝ (⊤ : ℕ∞) H) + (hbound : ∀ n ≤ 2, ∀ x ∈ jointKernelBox a b 2, ‖iteratedFDeriv ℝ n H x‖ ≤ M) : + ‖jointFieldKernelOperator hμ (ball a 1 ∪ ball b 1) (cutOffJointSmoothKernel a b H hH)‖ ≤ + jointSmoothKernelUniversalConstant * max 1 μ * M ∧ + ‖jointMomentumKernelOperator hμ a b (cutOffJointSmoothKernel a b H hH)‖ ≤ + jointSmoothKernelUniversalConstant * M := by + have hs := sqrt_jointKernelEnergy_cutOff_le hM a b H hH hbound + have hD := jointCutoffSecondOrderBound_pos.le + have hc : 0 ≤ 4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound := by positivity + have h2 : 2 * (4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound) ≤ + jointSmoothKernelUniversalConstant := by + unfold jointSmoothKernelUniversalConstant + nlinarith + have h4 : 4 * (4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound) ≤ + jointSmoothKernelUniversalConstant := by + unfold jointSmoothKernelUniversalConstant + linarith + have hMμ : 0 ≤ max 1 μ := by positivity + constructor + · apply (norm_jointFieldKernelOperator_le hμ _ _).trans + calc + _ ≤ (2 * max 1 μ) * + (4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound * M) := + mul_le_mul_of_nonneg_left hs (by positivity) + _ ≤ jointSmoothKernelUniversalConstant * max 1 μ * M := by + have hh := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right h2 hMμ) hM + convert hh using 1; ring + · apply (norm_jointMomentumKernelOperator_le hμ a b _).trans + calc + _ ≤ 4 * (4 * Real.sqrt jointKernelBoxVolume * jointCutoffSecondOrderBound * M) := + mul_le_mul_of_nonneg_left hs (by norm_num) + _ ≤ jointSmoothKernelUniversalConstant * M := by + have hh := mul_le_mul_of_nonneg_right h4 hM + convert hh using 1; ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSymmetricPolynomialOperator.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSymmetricPolynomialOperator.lean new file mode 100644 index 0000000000..d9e79d0d27 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSymmetricPolynomialOperator.lean @@ -0,0 +1,143 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialFormRank +public import LeanPool.VacuumBellSeparation.Gaussian.SymmetricRankOneTrace +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRankNuclearBound +public import LeanPool.VacuumBellSeparation.Polynomial.MultivariateCoefficientNorm + +/-! +# Genuine selfadjoint weighted polynomial operators + +Negative symmetrization implements the manuscript's oriented polynomial +plus its transpose. The nuclear bound uses the actual coefficient sum, +not the number of monomials. No inverse reserve is involved. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap InnerProductSpace MvPolynomial +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Continuous linear map for the joint symmetric polynomial operator, of type `E →L[ℂ] E`. -/ +def jointSymmetricPolynomialOperator (v : (Fin 3 → ℕ) → E) + (P : MvPolynomial (Fin 6) ℂ) : E →L[ℂ] E := + -(∑ d ∈ P.support, (P.coeff d).re • + symmetricRankOne (v (spatialSixLeftExponent d)) (v (spatialSixRightExponent d))) + +theorem jointSymmetricPolynomialOperator_isSelfAdjoint (v : (Fin 3 → ℕ) → E) + (P : MvPolynomial (Fin 6) ℂ) : IsSelfAdjoint (jointSymmetricPolynomialOperator v P) := by + apply IsSelfAdjoint.neg + apply isSelfAdjoint_sum + intro d hd + exact (show IsSelfAdjoint (P.coeff d).re from isSelfAdjoint_iff.mpr rfl).smul + (symmetricRankOne_isSelfAdjoint _ _) + +omit [CompleteSpace E] in +theorem range_jointSymmetricPolynomialOperator_le (v : (Fin 3 → ℕ) → E) + (P : MvPolynomial (Fin 6) ℂ) {D : ℕ} (hP : P.totalDegree ≤ D) : + (jointSymmetricPolynomialOperator v P).toLinearMap.range ≤ + spatialMomentDegreeRange (𝕜 := ℂ) v D := by + rintro _ ⟨x, rfl⟩ + change jointSymmetricPolynomialOperator v P x ∈ spatialMomentDegreeRange (𝕜 := ℂ) v D + simp only [jointSymmetricPolynomialOperator, neg_apply, _root_.sum_apply, smul_apply, + symmetricRankOne, add_apply, rankOne_apply] + apply Submodule.neg_mem + apply Submodule.sum_mem + intro d hd + rw [RCLike.real_smul_eq_coe_smul (K := ℂ)] + apply Submodule.smul_mem + apply Submodule.add_mem + · apply Submodule.smul_mem + exact mem_spatialMomentDegreeRange v D _ (fun i => + (MvPolynomial.le_degreeOf_of_mem_support (Fin.castAdd 3 i) hd).trans + ((MvPolynomial.degreeOf_le_totalDegree P _).trans hP)) + · apply Submodule.smul_mem + exact mem_spatialMomentDegreeRange v D _ (fun i => + (MvPolynomial.le_degreeOf_of_mem_support (Fin.natAdd 3 i) hd).trans + ((MvPolynomial.degreeOf_le_totalDegree P _).trans hP)) + +instance finiteDimensional_range_jointSymmetricPolynomialOperator + (v : (Fin 3 → ℕ) → E) (P : MvPolynomial (Fin 6) ℂ) : + FiniteDimensional ℂ (jointSymmetricPolynomialOperator v P).toLinearMap.range := + Submodule.finiteDimensional_of_le (range_jointSymmetricPolynomialOperator_le v P le_rfl) + +theorem nuclear_jointSymmetricPolynomialOperator_le (v : (Fin 3 → ℕ) → E) + (P : MvPolynomial (Fin 6) ℂ) : + operatorTraceNorm (jointSymmetricPolynomialOperator v P) ≤ + ENNReal.ofReal (2 * ∑ d ∈ P.support, + ‖P.coeff d‖ * (‖v (spatialSixLeftExponent d)‖ * ‖v (spatialSixRightExponent d)‖)) := by + classical + let A := fun d : P.support => (P.coeff d).re • + symmetricRankOne (v (spatialSixLeftExponent d)) (v (spatialSixRightExponent d)) + have hc (d : P.support) : IsCompactOperator (A d) := + (symmetricRankOne_isCompactOperator _ _).smul _ + have ha (d : P.support) : IsSelfAdjoint (A d) := + (show IsSelfAdjoint (P.coeff d).re from isSelfAdjoint_iff.mpr rfl).smul + (symmetricRankOne_isSelfAdjoint _ _) + have hs := operatorTraceNorm_tsum_le hc ha + (Summable.of_finite : Summable fun d : P.support => ‖A d‖) + have ht (d : P.support) : operatorTraceNorm (A d) ≤ + ENNReal.ofReal (2 * ‖P.coeff d‖ * + (‖v (spatialSixLeftExponent d)‖ * ‖v (spatialSixRightExponent d)‖)) := by + dsimp only [A] + rw [operatorTraceNorm_real_smul] + apply (_root_.mul_le_mul_right (operatorTraceNorm_symmetricRankOne_le _ _) _).trans + rw [← ENNReal.ofReal_mul (abs_nonneg _)] + apply ENNReal.ofReal_le_ofReal + have h := mul_le_mul_of_nonneg_right (Complex.abs_re_le_norm (P.coeff d)) + (show 0 ≤ 2 * (‖v (spatialSixLeftExponent d)‖ * ‖v + (spatialSixRightExponent d)‖) by positivity) + nlinarith + have hsumA : (∑ d : P.support, A d) = ∑ d ∈ P.support, + (P.coeff d).re • + symmetricRankOne (v (spatialSixLeftExponent d)) (v (spatialSixRightExponent d)) := + Finset.sum_coe_sort P.support (fun d => (P.coeff d).re • + symmetricRankOne (v (spatialSixLeftExponent d)) (v (spatialSixRightExponent d))) + rw [jointSymmetricPolynomialOperator, operatorTraceNorm_neg] + calc + _ ≤ ∑ d : P.support, operatorTraceNorm (A d) := by + simpa only [tsum_fintype, hsumA] using hs + _ ≤ ∑ d : P.support, ENNReal.ofReal + (2 * ‖P.coeff d‖ * (‖v (spatialSixLeftExponent d)‖ * ‖v (spatialSixRightExponent d)‖)) := + Finset.sum_le_sum fun d _ => ht d + _ = _ := by + rw [← ENNReal.ofReal_sum_of_nonneg (fun _ _ => by positivity), + Finset.sum_coe_sort P.support (fun d => 2 * ‖P.coeff d‖ * + (‖v (spatialSixLeftExponent d)‖ * ‖v (spatialSixRightExponent d)‖))] + congr 1 + rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro d hd + ring + +theorem symmetricRankOne_selfAdjoint_sandwich (R : E →L[ℂ] E) + (hR : IsSelfAdjoint R) (u v : E) : + R * symmetricRankOne u v * R = symmetricRankOne (R u) (R v) := by + apply ContinuousLinearMap.ext + intro x + simp only [mul_apply_eq_comp, symmetricRankOne, add_apply, rankOne_apply, + map_add, map_smul] + have hi (y : E) : inner ℂ y (R x) = inner ℂ (R y) x := by + rw [← adjoint_inner_left, hR.adjoint_eq] + rw [hi u, hi v] + +theorem jointSymmetricPolynomialOperator_sandwich (R : E →L[ℂ] E) + (hR : IsSelfAdjoint R) (v : (Fin 3 → ℕ) → E) (P : MvPolynomial (Fin 6) ℂ) : + R * jointSymmetricPolynomialOperator v P * R = + jointSymmetricPolynomialOperator (fun α => R (v α)) P := by + simp only [jointSymmetricPolynomialOperator, mul_neg, neg_mul, + Finset.mul_sum, Finset.sum_mul, mul_smul_comm, smul_mul_assoc, + symmetricRankOne_selfAdjoint_sandwich R hR] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointSymmetricPolynomialPairing.lean b/LeanPool/VacuumBellSeparation/FreeField/JointSymmetricPolynomialPairing.lean new file mode 100644 index 0000000000..5f8c190bc4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointSymmetricPolynomialPairing.lean @@ -0,0 +1,150 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointCenteredPolynomialMoments +public import LeanPool.VacuumBellSeparation.FreeField.JointWeightedPolynomialGrowth +public import LeanPool.VacuumBellSeparation.Polynomial.JointMidpointPolynomial + +/-! +# The weighted symmetric polynomial reproduces the original kernel pairing + +The inner products are complex, whereas the original source moments and +the restricted polynomial form are real. Every conjugation is explicit. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification MvPolynomial MeasureTheory +open ContinuousLinearMap InnerProductSpace +open scoped InnerProductSpace ComplexConjugate + +theorem jointCenteredScaledCoordinates_swap (a : EuclideanSpace ℝ (Fin 3)) (s : ℝ) + (x : JointKernelSpace) : + jointCenteredScaledCoordinates a s (WithLp.toLp 2 (x.snd, x.fst)) = + jointCenteredScaledCoordinates a s x ∘ swapSpatialSix := by + funext j + fin_cases j <;> rfl + +theorem integrable_jointCenteredPolynomial_test (a : EuclideanSpace ℝ (Fin 3)) (s : ℝ) + (P : MvPolynomial (Fin 6) ℂ) (f g : SpatialTestFunction) : + Integrable (fun x : JointKernelSpace => (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * + eval (jointCenteredScaledCoordinates a s x) P) := by + have hz : Continuous (jointCenteredScaledCoordinates a s) := by + apply continuous_pi + intro j + refine Fin.addCases (m := 3) (n := 3) (fun i => ?_) (fun i => ?_) j <;> + simp only [jointCenteredScaledCoordinates, Fin.addCases_left, Fin.addCases_right] <;> fun_prop + exact ((jointSpatialTestProduct f g).continuous.mul + (P.continuous_eval.comp hz)).integrable_of_hasCompactSupport + ((hasCompactSupport_jointSpatialTestProduct f g).mul_right) + +theorem integral_jointCenteredPolynomial_transpose (a : EuclideanSpace ℝ (Fin 3)) (s : ℝ) + (P : MvPolynomial (Fin 6) ℂ) (f g : SpatialTestFunction) : + (∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * + eval (jointCenteredScaledCoordinates a s x) (rename swapSpatialSix P)) = + (∫ x : JointKernelSpace, (g.1 x.fst : ℂ) * (f.1 x.snd : ℂ) * + eval (jointCenteredScaledCoordinates a s x) P) := by + simp only [eval_rename] + simp_rw [← jointCenteredScaledCoordinates_swap] + calc + _ = ∫ p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3), + (f.1 p.1 : ℂ) * (g.1 p.2 : ℂ) * + eval (jointCenteredScaledCoordinates a s (WithLp.toLp 2 (p.2, p.1))) P := by + simpa only [WithLp.fst, WithLp.snd] using + (integral_jointKernel_ofLp (fun p => (f.1 p.1 : ℂ) * (g.1 p.2 : ℂ) * + eval (jointCenteredScaledCoordinates a s (WithLp.toLp 2 (p.2, p.1))) P)) + _ = ∫ p : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3), + (f.1 p.2 : ℂ) * (g.1 p.1 : ℂ) * + eval (jointCenteredScaledCoordinates a s (WithLp.toLp 2 p)) P := + integral_prod_swap (fun p => (f.1 p.2 : ℂ) * (g.1 p.1 : ℂ) * + eval (jointCenteredScaledCoordinates a s (WithLp.toLp 2 p)) P) + _ = ∫ x : JointKernelSpace, (f.1 x.snd : ℂ) * (g.1 x.fst : ℂ) * + eval (jointCenteredScaledCoordinates a s x) P := by + simpa only [WithLp.fst, WithLp.snd, WithLp.toLp_ofLp] using + (integral_jointKernel_ofLp (fun p => (f.1 p.2 : ℂ) * (g.1 p.1 : ℂ) * + eval (jointCenteredScaledCoordinates a s (WithLp.toLp 2 p)) P)).symm + _ = _ := by + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by ring + +theorem re_integral_jointCenteredPolynomial_symmetrization + (a : EuclideanSpace ℝ (Fin 3)) (s : ℝ) + (P : MvPolynomial (Fin 6) ℂ) (f g : SpatialTestFunction) : + (∫ x : JointKernelSpace, (f.1 x.fst : ℂ) * (g.1 x.snd : ℂ) * + eval (jointCenteredScaledCoordinates a s x) (-(P + rename swapSpatialSix P))).re = + -(∑ d ∈ P.support, (P.coeff d).re * + (normalizedCenteredSourceMoment a s f (spatialSixLeftExponent d) * + normalizedCenteredSourceMoment a s g (spatialSixRightExponent d) + + normalizedCenteredSourceMoment a s f (spatialSixRightExponent d) * + normalizedCenteredSourceMoment a s g (spatialSixLeftExponent d))) := by + simp only [map_neg, map_add, mul_neg, mul_add] + rw [integral_neg, integral_add (integrable_jointCenteredPolynomial_test a s P f g) + (integrable_jointCenteredPolynomial_test a s (rename swapSpatialSix P) f g), + integral_jointCenteredPolynomial_transpose, integral_jointCenteredPolynomial_test, + integral_jointCenteredPolynomial_test] + simp only [Complex.neg_re, Complex.add_re, Complex.re_sum, Complex.mul_re, + Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, mul_zero, + sub_zero] + rw [← Finset.sum_add_distrib] + congr 1 + apply Finset.sum_congr rfl + intro d hd + ring + +theorem inner_jointSymmetricPolynomialOperator_of_real_pairings + {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + (v : (Fin 3 → ℕ) → E) (P : MvPolynomial (Fin 6) ℂ) (x y : E) + (mx my : (Fin 3 → ℕ) → ℝ) + (hx : ∀ α, inner ℂ x (v α) = (mx α : ℂ)) + (hy : ∀ α, inner ℂ y (v α) = (my α : ℂ)) : + inner ℂ x (jointSymmetricPolynomialOperator v P y) = + (-(∑ d ∈ P.support, (P.coeff d).re * + (mx (spatialSixLeftExponent d) * my (spatialSixRightExponent d) + + mx (spatialSixRightExponent d) * my (spatialSixLeftExponent d))) : ℝ) := by + have hy' (α) : inner ℂ (v α) y = (my α : ℂ) := by + rw [← inner_conj_symm (v α) y, hy, Complex.conj_ofReal] + simp only [jointSymmetricPolynomialOperator, neg_apply, sum_apply, smul_apply, + inner_neg_right, inner_sum, inner_smul_right_eq_smul, symmetricRankOne, + add_apply, inner_add_right, rankOne_apply, hx, hy', + Complex.real_smul, smul_eq_mul, Complex.ofReal_neg, Complex.ofReal_sum, Complex.ofReal_mul, + Complex.ofReal_add] + congr 1 + apply Finset.sum_congr rfl + intro d hd + ring + +/-- The actual reserve sandwich agrees with the real polynomial kernel +whenever the supplied vectors are the proved normalized moment vectors. -/ +theorem weighted_jointSymmetricPolynomial_pairing + {μ b : ℝ} (hμ : 0 < μ) (U : Set (EuclideanSpace ℝ (Fin 3))) + (a : EuclideanSpace ℝ (Fin 3)) (s : ℝ) + (v : (Fin 3 → ℕ) → ComplexSourceHilbert hμ U) + (P : MvPolynomial (Fin 6) ℂ) + (π : SourceTestSpace hμ U → SpatialTestFunction) + (hv : ∀ α (x : SourceTestSpace hμ U), + inner ℂ (ofReal (x : SourceHilbert hμ U)) ((sourceReserve hμ U ^ b) (v α)) = + (normalizedCenteredSourceMoment a s (π x) α : ℂ)) + (x y : SourceTestSpace hμ U) : + inner ℂ (ofReal (x : SourceHilbert hμ U)) + ((sourceReserve hμ U ^ b * jointSymmetricPolynomialOperator v P * sourceReserve hμ U ^ b) + (ofReal (y : SourceHilbert hμ U))) = + ((∫ z : JointKernelSpace, ((π x).1 z.fst : ℂ) * ((π y).1 z.snd : ℂ) * + eval (jointCenteredScaledCoordinates a s z) (-(P + rename swapSpatialSix P))).re : ℝ) := by + rw [jointSymmetricPolynomialOperator_sandwich _ (CFC.rpow_nonneg (a := sourceReserve hμ U) + (y := b)).isSelfAdjoint] + rw [inner_jointSymmetricPolynomialOperator_of_real_pairings + (fun α => (sourceReserve hμ U ^ b) (v α)) P _ _ + (fun α => normalizedCenteredSourceMoment a s (π x) α) + (fun α => normalizedCenteredSourceMoment a s (π y) α) + (fun α => hv α x) (fun α => hv α y)] + rw [re_integral_jointCenteredPolynomial_symmetrization] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointWeightedIncrement.lean b/LeanPool/VacuumBellSeparation/FreeField/JointWeightedIncrement.lean new file mode 100644 index 0000000000..1d1589a3c7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointWeightedIncrement.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointWeightedPolynomialEnvelope +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialIncrementSeries + +/-! # Actual weighted increment factors with constants fixed before the mass -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian +open scoped ENNReal + +theorem jointWeightedPolynomialBase_pos (b : ℝ) : 0 < jointWeightedPolynomialBase b := by + unfold jointWeightedPolynomialBase jointWeightedMomentDegreeBase + positivity + +/-- Joint weighted increment envelope. -/ +def jointWeightedIncrementEnvelope (C μ s : ℝ) : ℝ := + (67072 * C ^ 2 * (jointWeightedPolynomialBase (1 / 2) + 1)) * + Real.exp (-μ * s / 2) * + Real.exp (2 * sourceMomentLambda (1 / 2) * μ * jointMidpointMomentRadius s) + +theorem jointWeightedIncrementEnvelope_nonneg (C μ s : ℝ) : + 0 ≤ jointWeightedIncrementEnvelope C μ s := by + have h := jointWeightedPolynomialBase_pos (1 / 2) + unfold jointWeightedIncrementEnvelope + positivity + +theorem exists_jointWeightedIncrements : + ∃ C : ℝ, 0 < C ∧ ∀ (μ : ℝ) (hμ : 0 < μ) (s : ℝ) (hs : 600 ≤ s), + ∃ B : ℕ → (ComplexSourceHilbert hμ (jointSourceRegion s) →L[ℂ] + ComplexSourceHilbert hμ (jointSourceRegion s)), + ∀ n : ℕ, IsCompactOperator (B n) ∧ IsSelfAdjoint (B n) ∧ + sourceReserve hμ (jointSourceRegion s) ^ (1 / 2 : ℝ) * B n * + sourceReserve hμ (jointSourceRegion s) ^ (1 / 2 : ℝ) = + complexify (jointPolynomialIncrement hμ hs n) ∧ + operatorTraceNorm (B n) ≤ ENNReal.ofReal + (jointWeightedIncrementEnvelope C μ s * jointWeightedPolynomialBase (1 / 2) ^ n) := by + obtain ⟨C, hC, h⟩ := exists_jointWeightedPolynomialOperators + (show (1 / 2 : ℝ) ≤ 1 / 2 by rfl) (by norm_num : (1 / 2 : ℝ) < 1) + refine ⟨C, hC, ?_⟩ + intro μ hμ s hs + obtain ⟨P, hP⟩ := h μ hμ s hs + refine ⟨fun n => P (n + 1) - P n, ?_⟩ + intro n + have hc₀ := (hP n).2.1 + have hc₁ := (hP (n + 1)).2.1 + have ha₀ := (hP n).2.2.1 + have ha₁ := (hP (n + 1)).2.2.1 + have hf₀ := (hP n).2.2.2.1 + have hf₁ := (hP (n + 1)).2.2.2.1 + have hb₀ := (hP n).2.2.2.2 + have hb₁ := (hP (n + 1)).2.2.2.2 + refine ⟨hc₁.sub hc₀, ha₁.sub ha₀, ?_, ?_⟩ + · rw [mul_sub, sub_mul, hf₁, hf₀, ← complexify_sub_real] + rfl + · have hbase := (jointWeightedPolynomialBase_pos (1 / 2)).le + have hscale : 0 ≤ jointWeightedPolynomialScale C (1 / 2) μ s := by + have hs₀ : 0 ≤ s := by linarith + unfold jointWeightedPolynomialScale jointFieldEnvelope jointMomentumEnvelope + positivity + apply (operatorTraceNorm_sub_le hc₁ hc₀ ha₁ ha₀).trans + apply (add_le_add hb₁ hb₀).trans + rw [← ENNReal.ofReal_add (mul_nonneg hscale (pow_nonneg hbase _)) + (mul_nonneg hscale (pow_nonneg hbase _))] + apply ENNReal.ofReal_le_ofReal + calc + _ = jointWeightedPolynomialScale C (1 / 2) μ s * + (jointWeightedPolynomialBase (1 / 2) + 1) * jointWeightedPolynomialBase (1 / 2) ^ n := by + rw [pow_succ] + ring + _ ≤ (67072 * C ^ 2 * Real.exp (-μ * s / 2) * + Real.exp (2 * sourceMomentLambda (1 / 2) * μ * jointMidpointMomentRadius s)) * + (jointWeightedPolynomialBase (1 / 2) + 1) * jointWeightedPolynomialBase (1 / 2) ^ n := by + gcongr + exact jointWeightedPolynomialScale_le hμ (show 2 ≤ s by linarith) + _ = _ := by unfold jointWeightedIncrementEnvelope; ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialBounds.lean b/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialBounds.lean new file mode 100644 index 0000000000..fd9d17dd1d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialBounds.lean @@ -0,0 +1,96 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointWeightedPolynomialFactor +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialCombinedRange + +/-! +# Actual finite-rank weighted polynomial bounds on the joint source space + +All vector and coefficient estimates are discharged before the operator +family is chosen. Constants precede the mass, separation and order. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian +open scoped ENNReal + +variable {μ s b : ℝ} {hμ : 0 < μ} + +theorem range_jointWeightedPolynomialOperator_le (v : JointWeightedMomentFamily hμ s b) + (F G : (Fin 6 → ℂ) → ℂ) (n : ℕ) {D : ℕ} (hD : 9 * n ≤ D) : + (jointWeightedPolynomialOperator v F G n).toLinearMap.range ≤ + jointMomentDegreeRange (𝕜 := ℂ) v.field v.momentum D := by + have hf := (range_jointSymmetricPolynomialOperator_le v.field (jointMidpointOriented F n) + ((jointMidpointOriented_degree F n).trans hD)).trans + (spatialMomentDegreeRange_le_joint_left v.field v.momentum D) + have hg := (range_jointSymmetricPolynomialOperator_le v.momentum (jointMidpointOriented G n) + ((jointMidpointOriented_degree G n).trans hD)).trans + (spatialMomentDegreeRange_le_joint_right v.field v.momentum D) + rintro _ ⟨x, rfl⟩ + exact Submodule.add_mem _ (hf ⟨x, rfl⟩) (hg ⟨x, rfl⟩) + +instance finiteDimensional_range_jointWeightedPolynomialOperator + (v : JointWeightedMomentFamily hμ s b) (F G : (Fin 6 → ℂ) → ℂ) (n : ℕ) : + FiniteDimensional ℂ (jointWeightedPolynomialOperator v F G n).toLinearMap.range := + Submodule.finiteDimensional_of_le (range_jointWeightedPolynomialOperator_le v F G n le_rfl) + +theorem rank_jointWeightedPolynomialOperator_le (v : JointWeightedMomentFamily hμ s b) + (F G : (Fin 6 → ℂ) → ℂ) (n : ℕ) : + Module.finrank ℂ (jointWeightedPolynomialOperator v F G n).toLinearMap.range ≤ + 2 * (9 * n + 1) ^ 3 := + (Submodule.finrank_mono (range_jointWeightedPolynomialOperator_le v F G n le_rfl)).trans + (finrank_jointMomentDegreeRange_le v.field v.momentum (9 * n)) + +/-- Joint weighted polynomial base defined as `jointWeightedMomentDegreeBase b ^ 9 * 314572800`. -/ +def jointWeightedPolynomialBase (b : ℝ) : ℝ := + jointWeightedMomentDegreeBase b ^ 9 * 314572800 + +/-- Joint weighted polynomial scale. -/ +def jointWeightedPolynomialScale (C b μ s : ℝ) : ℝ := + 128 * (jointWeightedFieldScale C b μ s ^ 2 * jointFieldEnvelope μ s + + jointWeightedMomentumScale C b μ s ^ 2 * jointMomentumEnvelope μ s) + +theorem exists_jointWeightedPolynomialOperators {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + ∃ C : ℝ, 0 < C ∧ ∀ (μ : ℝ) (hμ : 0 < μ) (s : ℝ) (hs : 600 ≤ s), + ∃ B : ℕ → (ComplexSourceHilbert hμ (jointSourceRegion s) →L[ℂ] + ComplexSourceHilbert hμ (jointSourceRegion s)), + ∀ n : ℕ, FiniteDimensional ℂ (B n).toLinearMap.range ∧ + IsCompactOperator (B n) ∧ IsSelfAdjoint (B n) ∧ + sourceReserve hμ (jointSourceRegion s) ^ b * B n * sourceReserve hμ + (jointSourceRegion s) ^ b = + complexify (jointPolynomialKernelOperator hμ hs n) ∧ + operatorTraceNorm (B n) ≤ ENNReal.ofReal + (jointWeightedPolynomialScale C b μ s * jointWeightedPolynomialBase b ^ n) := by + obtain ⟨C, hC, h⟩ := exists_jointWeightedMomentFamily hb hb1 + refine ⟨C, hC, ?_⟩ + intro μ hμ s hs + have hs₂ : 2 ≤ s := by linarith + have hs₀ : 0 < s := by linarith + have hT := jointMidpointMomentRadius_pos hs₂ + obtain ⟨v, hvf, hvg⟩ := h μ hμ s hs₂ + let B := jointWeightedPolynomialOperator v (jointNormalizedFieldKernel μ s) + (jointNormalizedMomentumKernel μ s) + refine ⟨B, ?_⟩ + intro n + refine ⟨inferInstance, jointWeightedPolynomialOperator_isCompactOperator _ _ _ _, + jointWeightedPolynomialOperator_isSelfAdjoint _ _ _ _, + jointWeightedPolynomialOperator_factor hμ hs v n, ?_⟩ + exact nuclear_jointWeightedPolynomialOperator_le v + (by unfold jointWeightedFieldScale; positivity) + (by unfold jointWeightedMomentumScale; positivity) + (le_max_left _ _) (by unfold jointFieldEnvelope; positivity) + (by unfold jointMomentumEnvelope; positivity) hvf hvg + (jointNormalizedFieldKernel μ s) (jointNormalizedMomentumKernel μ s) + (jointNormalizedFieldKernel_norm_le hμ hs₀) (jointNormalizedMomentumKernel_norm_le hμ hs₀) n + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialEnvelope.lean b/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialEnvelope.lean new file mode 100644 index 0000000000..9065c02117 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialEnvelope.lean @@ -0,0 +1,111 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointWeightedPolynomialBounds + +/-! +# Mass-uniform weighted polynomial prefactor + +The midpoint radius T=s/2+1 is at most s and at least s/2. These two +inequalities cancel every dimensional polynomial factor against the +actual weighted moment denominators. The reserve exponent is unchanged. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian + +theorem joint_midpoint_weighted_ratios {μ s : ℝ} (hμ : 0 < μ) (hs : 2 ≤ s) : + (jointMidpointMomentRadius s / s) ^ 2 * + (Real.sqrt (1 + μ * s) / (1 + μ * jointMidpointMomentRadius s) ^ 2) ≤ 2 ∧ + (jointMidpointMomentRadius s / s) ^ 4 * + ((1 + μ * s) * Real.sqrt (1 + μ * s) / + (1 + μ * jointMidpointMomentRadius s) ^ 4) ≤ 4 := by + let T := jointMidpointMomentRadius s + let d := 1 + μ * T + let X := 1 + μ * s + have hs₀ : 0 < s := by linarith + have hT : 0 < T := jointMidpointMomentRadius_pos hs + have hd : 1 ≤ d := le_add_of_nonneg_right (mul_nonneg hμ.le hT.le) + have hd₀ : 0 < d := lt_of_lt_of_le zero_lt_one hd + have hX : 1 ≤ X := le_add_of_nonneg_right (mul_nonneg hμ.le hs₀.le) + have hX₀ : 0 ≤ X := le_trans zero_le_one hX + have hTX : X ≤ 2 * d := by + dsimp only [X, d, T, jointMidpointMomentRadius] + nlinarith + have hsqrt : Real.sqrt X ≤ X := Real.sqrt_le_self_iff.mpr (Or.inr hX) + have hratio₀ : 0 ≤ T / s := by positivity + have hratio₁ : T / s ≤ 1 := (div_le_one hs₀).mpr (jointMidpointMomentRadius_le hs) + have hp (n : ℕ) : (T / s) ^ n ≤ 1 := by + simpa only [one_pow] using pow_le_pow_left₀ hratio₀ hratio₁ n + have hsf : Real.sqrt X / d ^ 2 ≤ 2 := by + apply (div_le_iff₀ (pow_pos hd₀ 2)).mpr + have hdd : d ≤ d ^ 2 := by nlinarith + exact hsqrt.trans (hTX.trans (mul_le_mul_of_nonneg_left hdd (by norm_num))) + have hsg : X * Real.sqrt X / d ^ 4 ≤ 4 := by + apply (div_le_iff₀ (pow_pos hd₀ 4)).mpr + calc + X * Real.sqrt X ≤ X ^ 2 := by nlinarith [mul_le_mul_of_nonneg_left hsqrt hX₀] + _ ≤ (2 * d) ^ 2 := pow_le_pow_left₀ hX₀ hTX 2 + _ ≤ 4 * d ^ 4 := by + have hpow := pow_le_pow_right₀ hd (show 2 ≤ 4 by norm_num) + nlinarith + constructor + · change (T / s) ^ 2 * (Real.sqrt X / d ^ 2) ≤ 2 + calc + _ ≤ 1 * 2 := mul_le_mul (hp 2) hsf (by positivity) zero_le_one + _ = _ := by norm_num + · change (T / s) ^ 4 * (X * Real.sqrt X / d ^ 4) ≤ 4 + calc + _ ≤ 1 * 4 := mul_le_mul (hp 4) hsg (by positivity) zero_le_one + _ = _ := by norm_num + +theorem jointWeightedPolynomialScale_le {C b μ s : ℝ} + (hμ : 0 < μ) (hs : 2 ≤ s) : + jointWeightedPolynomialScale C b μ s ≤ + 67072 * C ^ 2 * Real.exp (-μ * s / 2) * + Real.exp (2 * sourceMomentLambda b * μ * jointMidpointMomentRadius s) := by + let T := jointMidpointMomentRadius s + have hs₀ : 0 < s := by linarith + have hT : 0 < T := jointMidpointMomentRadius_pos hs + have hd : 0 < 1 + μ * T := by positivity + have he : Real.exp (sourceMomentLambda b * μ * T) ^ 2 = + Real.exp (2 * sourceMomentLambda b * μ * T) := by + rw [pow_two, ← Real.exp_add] + congr 1 + ring + obtain ⟨hf, hg⟩ := joint_midpoint_weighted_ratios hμ hs + have hfeq : jointWeightedFieldScale C b μ s ^ 2 * jointFieldEnvelope μ s = + (6 * C ^ 2 * Real.exp (-μ * s / 2) * Real.exp (2 * sourceMomentLambda b * μ * T)) * + ((T / s) ^ 2 * (Real.sqrt (1 + μ * s) / (1 + μ * T) ^ 2)) := by + change (C * T / (1 + μ * T) * Real.exp (sourceMomentLambda b * μ * T)) ^ 2 * + ((6 / s ^ 2) * Real.sqrt (1 + μ * s) * Real.exp (-μ * s / 2)) = _ + simp only [mul_pow, div_pow, he] + field_simp [hs₀.ne', hd.ne'] + have hgeq : jointWeightedMomentumScale C b μ s ^ 2 * jointMomentumEnvelope μ s = + (128 * C ^ 2 * Real.exp (-μ * s / 2) * Real.exp (2 * sourceMomentLambda b * μ * T)) * + ((T / s) ^ 4 * ((1 + μ * s) * Real.sqrt (1 + μ * s) / (1 + μ * T) ^ 4)) := by + change (C * T ^ 2 / (1 + μ * T) ^ 2 * Real.exp (sourceMomentLambda b * μ * T)) ^ 2 * + ((128 / s ^ 4) * (1 + μ * s) * Real.sqrt (1 + μ * s) * Real.exp (-μ * s / 2)) = _ + simp only [mul_pow, div_pow, he] + field_simp [hs₀.ne', hd.ne'] + have hff := mul_le_mul_of_nonneg_left hf + (show 0 ≤ 6 * C ^ 2 * Real.exp (-μ * s / 2) * + Real.exp (2 * sourceMomentLambda b * μ * T) by positivity) + have hgg := mul_le_mul_of_nonneg_left hg + (show 0 ≤ 128 * C ^ 2 * Real.exp (-μ * s / 2) * + Real.exp (2 * sourceMomentLambda b * μ * T) by positivity) + rw [← hfeq] at hff + rw [← hgeq] at hgg + unfold jointWeightedPolynomialScale + nlinarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialFactor.lean b/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialFactor.lean new file mode 100644 index 0000000000..c50c9165c9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialFactor.lean @@ -0,0 +1,153 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointMidpointRegionMoments +public import LeanPool.VacuumBellSeparation.FreeField.JointSymmetricPolynomialPairing +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialComplexification +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialOperatorIdentification +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexificationDenseExt + +/-! +# Literal reserve factorizations of the actual joint polynomials + +The finite symmetric sums use genuine weighted midpoint moments. Their +sandwiches agree with the existing original-source polynomial operators, +by the same compact-test integrals and completion density. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification MvPolynomial +open scoped InnerProductSpace ENNReal + +private theorem inner_complexification_ofReal {E : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℝ E] (x y : E) : + inner ℂ (ofReal x) (ofReal y) = (inner ℝ x y : ℂ) := by + simp only [HilbertComplexification.inner_eq, ofReal_re, ofReal_im, + inner_zero_left, inner_zero_right, add_zero, sub_zero] + rfl + +theorem jointWeighted_field_factor {μ s b : ℝ} (hμ : 0 < μ) (hs : s ≠ 0) + (v : JointWeightedMomentFamily hμ s b) + (w : JointSourceMomentFamily hμ (jointSourceRegion s)) (P : MvPolynomial (Fin 6) ℂ) : + sourceReserve hμ (jointSourceRegion s) ^ b * jointSymmetricPolynomialOperator v.field P * + sourceReserve hμ (jointSourceRegion s) ^ b = + complexify (jointPolynomialMomentOperator w.field + (jointPhysicalPolynomial s (-(P + rename swapSpatialSix P)))) := by + apply complexification_operator_ext_dense_real + (e := fun x : SourceTestSpace hμ (jointSourceRegion s) => (x : SourceHilbert hμ + (jointSourceRegion s))) + (f := fun x : SourceTestSpace hμ (jointSourceRegion s) => (x : SourceHilbert hμ + (jointSourceRegion s))) + UniformSpace.Completion.denseRange_coe UniformSpace.Completion.denseRange_coe + intro x y + rw [weighted_jointSymmetricPolynomial_pairing hμ (jointSourceRegion s) + (spatialAxisDisplacement (s / 2) 0) s v.field P (fun x => x.1.1) v.field_pairing, + complexify_ofReal, inner_complexification_ofReal, jointPhysicalPolynomial_field_pairing] + simp only [jointPhysicalMidpoint_eq_centeredScaled hs] + +theorem jointWeighted_momentum_factor {μ s b : ℝ} (hμ : 0 < μ) (hs : s ≠ 0) + (v : JointWeightedMomentFamily hμ s b) + (w : JointSourceMomentFamily hμ (jointSourceRegion s)) (P : MvPolynomial (Fin 6) ℂ) : + sourceReserve hμ (jointSourceRegion s) ^ b * jointSymmetricPolynomialOperator v.momentum P * + sourceReserve hμ (jointSourceRegion s) ^ b = + complexify (jointPolynomialMomentOperator w.momentum + (jointPhysicalPolynomial s (-(P + rename swapSpatialSix P)))) := by + apply complexification_operator_ext_dense_real + (e := fun x : SourceTestSpace hμ (jointSourceRegion s) => (x : SourceHilbert hμ + (jointSourceRegion s))) + (f := fun x : SourceTestSpace hμ (jointSourceRegion s) => (x : SourceHilbert hμ + (jointSourceRegion s))) + UniformSpace.Completion.denseRange_coe UniformSpace.Completion.denseRange_coe + intro x y + rw [weighted_jointSymmetricPolynomial_pairing hμ (jointSourceRegion s) + (spatialAxisDisplacement (s / 2) 0) s v.momentum P (fun x => x.1.2) v.momentum_pairing, + complexify_ofReal, inner_complexification_ofReal, jointPhysicalPolynomial_momentum_pairing] + simp only [jointPhysicalMidpoint_eq_centeredScaled hs] + +/-- Joint weighted polynomial operator. -/ +def jointWeightedPolynomialOperator {μ s b : ℝ} {hμ : 0 < μ} + (v : JointWeightedMomentFamily hμ s b) (F G : (Fin 6 → ℂ) → ℂ) (n : ℕ) : + ComplexSourceHilbert hμ (jointSourceRegion s) →L[ℂ] ComplexSourceHilbert hμ + (jointSourceRegion s) := + jointSymmetricPolynomialOperator v.field (jointMidpointOriented F n) + + jointSymmetricPolynomialOperator v.momentum (jointMidpointOriented G n) + +theorem jointWeightedPolynomialOperator_isSelfAdjoint {μ s b : ℝ} {hμ : 0 < μ} + (v : JointWeightedMomentFamily hμ s b) (F G : (Fin 6 → ℂ) → ℂ) (n : ℕ) : + IsSelfAdjoint (jointWeightedPolynomialOperator v F G n) := + (jointSymmetricPolynomialOperator_isSelfAdjoint _ _).add + (jointSymmetricPolynomialOperator_isSelfAdjoint _ _) + +theorem jointSymmetricPolynomialOperator_isCompactOperator + {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + (v : (Fin 3 → ℕ) → E) (P : MvPolynomial (Fin 6) ℂ) : + IsCompactOperator (jointSymmetricPolynomialOperator v P) := + isCompactOperator_of_range_le_finiteDimensional _ _ le_rfl + +theorem jointWeightedPolynomialOperator_isCompactOperator {μ s b : ℝ} {hμ : 0 < μ} + (v : JointWeightedMomentFamily hμ s b) (F G : (Fin 6 → ℂ) → ℂ) (n : ℕ) : + IsCompactOperator (jointWeightedPolynomialOperator v F G n) := + (jointSymmetricPolynomialOperator_isCompactOperator _ _).add + (jointSymmetricPolynomialOperator_isCompactOperator _ _) + +/-- The sandwich is the actual polynomial approximant already defined +from the original error kernels, with no representation premise. -/ +theorem jointWeightedPolynomialOperator_factor {μ s b : ℝ} + (hμ : 0 < μ) (hs : 600 ≤ s) (v : JointWeightedMomentFamily hμ s b) (n : ℕ) : + sourceReserve hμ (jointSourceRegion s) ^ b * + jointWeightedPolynomialOperator v (jointNormalizedFieldKernel μ s) + (jointNormalizedMomentumKernel μ s) n * sourceReserve hμ (jointSourceRegion s) ^ b = + complexify (jointPolynomialKernelOperator hμ hs n) := by + have hs₀ : s ≠ 0 := ne_of_gt (by linarith) + rw [jointPolynomialKernelOperator_eq_moments hμ hs (jointRegionMomentFamily hμ s) n, + complexify_add] + unfold jointWeightedPolynomialOperator + rw [mul_add, add_mul, jointWeighted_field_factor hμ hs₀ v (jointRegionMomentFamily hμ s), + jointWeighted_momentum_factor hμ hs₀ v (jointRegionMomentFamily hμ s)] + rfl + +/-- Exact coefficient growth before any mass-envelope simplification. -/ +theorem nuclear_jointWeightedPolynomialOperator_le + {μ s b : ℝ} {hμ : 0 < μ} (v : JointWeightedMomentFamily hμ s b) + {Af Ag L Mf Mg : ℝ} (hAf : 0 ≤ Af) (hAg : 0 ≤ Ag) (hL : 1 ≤ L) + (hMf : 0 ≤ Mf) (hMg : 0 ≤ Mg) + (hvf : ∀ α, ‖v.field α‖ ≤ Af * L ^ (∑ j, α j)) + (hvg : ∀ α, ‖v.momentum α‖ ≤ Ag * L ^ (∑ j, α j)) + (F G : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖F z‖ ≤ Mf) + (hG : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖G z‖ ≤ Mg) (n : ℕ) : + operatorTraceNorm (jointWeightedPolynomialOperator v F G n) ≤ + ENNReal.ofReal (128 * (Af ^ 2 * Mf + Ag ^ 2 * Mg) * + (L ^ 9 * 314572800) ^ n) := by + have hL₀ : 0 ≤ L := le_trans zero_le_one hL + have hf := nuclear_jointSymmetricPolynomialOperator_growth v.field (jointMidpointOriented F n) + hAf hL (jointMidpointOriented_degree F n) hvf + have hg := nuclear_jointSymmetricPolynomialOperator_growth v.momentum (jointMidpointOriented G n) + hAg hL (jointMidpointOriented_degree G n) hvg + have hcf := jointMidpointOriented_coefficientNorm hMf F hF n + have hcg := jointMidpointOriented_coefficientNorm hMg G hG n + apply (operatorTraceNorm_add_le + (jointSymmetricPolynomialOperator_isCompactOperator _ _) + (jointSymmetricPolynomialOperator_isCompactOperator _ _) + (jointSymmetricPolynomialOperator_isSelfAdjoint _ _) + (jointSymmetricPolynomialOperator_isSelfAdjoint _ _)).trans + apply (add_le_add hf hg).trans + rw [← ENNReal.ofReal_add + (mul_nonneg (by positivity) (mvCoefficientNorm_nonneg _)) + (mul_nonneg (by positivity) (mvCoefficientNorm_nonneg _))] + apply ENNReal.ofReal_le_ofReal + calc + _ ≤ 2 * Af ^ 2 * L ^ (9 * n) * (64 * Mf * (314572800 : ℝ) ^ n) + + 2 * Ag ^ 2 * L ^ (9 * n) * (64 * Mg * (314572800 : ℝ) ^ n) := by gcongr + _ = _ := by simp only [mul_pow, pow_mul]; ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialGrowth.lean b/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialGrowth.lean new file mode 100644 index 0000000000..19f3982064 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/JointWeightedPolynomialGrowth.lean @@ -0,0 +1,65 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.JointSymmetricPolynomialOperator +public import LeanPool.VacuumBellSeparation.FreeField.JointNormalizedMomentVectors + +/-! +# Coefficient-sum nuclear bounds for the actual weighted polynomial + +The monomial degree splits into the two spatial degrees exactly. Hence a +single exponential degree cost controls the full finite rank-one sum. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Gaussian MvPolynomial +open scoped ENNReal + +theorem spatialSixExponent_degree_sum (d : Fin 6 →₀ ℕ) : + (∑ i, spatialSixLeftExponent d i) + (∑ i, spatialSixRightExponent d i) = + d.sum (fun _ n => n) := by + rw [d.sum_fintype (fun _ n => n) (fun _ => rfl), Fin.sum_univ_add (a := 3) (b := 3)] + rfl + +theorem nuclear_jointSymmetricPolynomialOperator_growth + {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + (v : (Fin 3 → ℕ) → E) (P : MvPolynomial (Fin 6) ℂ) + {A L : ℝ} (hA : 0 ≤ A) (hL : 1 ≤ L) {D : ℕ} (hD : P.totalDegree ≤ D) + (hv : ∀ α, ‖v α‖ ≤ A * L ^ (∑ i, α i)) : + operatorTraceNorm (jointSymmetricPolynomialOperator v P) ≤ + ENNReal.ofReal (2 * A ^ 2 * L ^ D * mvCoefficientNorm P) := by + have hL₀ : 0 ≤ L := le_trans zero_le_one hL + have hp (d : Fin 6 →₀ ℕ) (hd : d ∈ P.support) : + ‖v (spatialSixLeftExponent d)‖ * ‖v (spatialSixRightExponent d)‖ ≤ A ^ 2 * L ^ D := by + calc + _ ≤ (A * L ^ (∑ i, spatialSixLeftExponent d i)) * + (A * L ^ (∑ i, spatialSixRightExponent d i)) := + mul_le_mul (hv _) (hv _) (norm_nonneg _) (by positivity) + _ = A ^ 2 * L ^ ((∑ i, spatialSixLeftExponent d i) + + (∑ i, spatialSixRightExponent d i)) := by rw [pow_add]; ring + _ ≤ A ^ 2 * L ^ D := by + apply mul_le_mul_of_nonneg_left _ (sq_nonneg A) + apply pow_le_pow_right₀ hL + rw [spatialSixExponent_degree_sum] + exact (le_totalDegree hd).trans hD + apply (nuclear_jointSymmetricPolynomialOperator_le v P).trans + apply ENNReal.ofReal_le_ofReal + calc + _ ≤ 2 * ∑ d ∈ P.support, ‖P.coeff d‖ * (A ^ 2 * L ^ D) := by + apply mul_le_mul_of_nonneg_left _ (by norm_num) + exact Finset.sum_le_sum fun d hd => mul_le_mul_of_nonneg_left (hp d hd) (norm_nonneg _) + _ = 2 * A ^ 2 * L ^ D * mvCoefficientNorm P := by + rw [← Finset.sum_mul] + unfold mvCoefficientNorm + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/L2BoundedExponential.lean b/LeanPool/VacuumBellSeparation/FreeField/L2BoundedExponential.lean new file mode 100644 index 0000000000..db4e20d2d5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/L2BoundedExponential.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.L2DominatedDifferentiation +public import LeanPool.VacuumBellSeparation.FreeField.LpMultiplication +public import Mathlib.Analysis.Calculus.MeanValue +public import Mathlib.Analysis.SpecialFunctions.Complex.Analytic + +/-! +# Entire exponential evolution by an actual bounded measurable coefficient + +All vectors lie in the original arbitrary-measure L2 space. The entire curve is +literal multiplication by exp(z a(x)); its derivative is proved by dominated +actual difference quotients. No finite measure or point evaluation of L2 limits +is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology +open scoped ENNReal + +variable {α : Type*} [MeasurableSpace α] (μ : Measure α) + +omit [MeasurableSpace α] in +lemma norm_boundedCoefficient_exp_le (a : α → ℂ) {C : ℝ} + (hb : ∀ x, ‖a x‖ ≤ C) (z : ℂ) (x : α) : + ‖Complex.exp (z * a x)‖ ≤ Real.exp (‖z‖ * C) := by + rw [Complex.norm_exp] + apply Real.exp_le_exp.mpr + exact (Complex.re_le_norm _).trans (by + rw [norm_mul] + exact mul_le_mul_of_nonneg_left (hb x) (norm_nonneg _)) + +theorem memLp_boundedCoefficient_exp (a : α → ℂ) (ha : Measurable a) + {C : ℝ} (hb : ∀ x, ‖a x‖ ≤ C) (z : ℂ) : + MemLp (fun x => Complex.exp (z * a x)) ⊤ μ := + memLp_top_of_bound (Complex.continuous_exp.measurable.comp + (measurable_const.mul ha)).aestronglyMeasurable (Real.exp (‖z‖ * C)) + (Eventually.of_forall (norm_boundedCoefficient_exp_le a hb z)) + +/-- Continuous linear map for the l² bounded exponential, of type `Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ`. -/ +noncomputable def l2BoundedExponential (a : α → ℂ) (ha : Measurable a) + {C : ℝ} (hb : ∀ x, ‖a x‖ ≤ C) (z : ℂ) : + Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ := + lpMultiplication μ (fun x => Complex.exp (z * a x)) + (memLp_boundedCoefficient_exp μ a ha hb z) + +theorem l2BoundedExponential_ae (a : α → ℂ) (ha : Measurable a) + {C : ℝ} (hb : ∀ x, ‖a x‖ ≤ C) (z : ℂ) (f : Lp ℂ 2 μ) : + l2BoundedExponential μ a ha hb z f =ᵐ[μ] fun x => Complex.exp (z * a x) * f x := + lpMultiplication_ae μ _ _ f + +theorem hasDerivAt_l2BoundedExponential (a : α → ℂ) (ha : Measurable a) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ x, ‖a x‖ ≤ C) (f : Lp ℂ 2 μ) (z₀ : ℂ) : + HasDerivAt (fun z => l2BoundedExponential μ a ha hb z f) + (lpMultiplication μ a (memLp_top_of_bound ha.aestronglyMeasurable C + (Eventually.of_forall hb)) (l2BoundedExponential μ a ha hb z₀ f)) z₀ := by + let F (z : ℂ) (x : α) : ℂ := Complex.exp (z * a x) * f x + let G (z : ℂ) (x : α) : ℂ := a x * F z x + let D : ℝ := C * Real.exp ((‖z₀‖ + 1) * C) + have hder (z : ℂ) (x : α) : HasDerivAt (fun w => F w x) (G z x) z := by + convert! ((hasDerivAt_id z).mul_const (a x)).cexp.mul_const (f x) using 1; + dsimp [F, G]; ring + have hrepG : lpMultiplication μ a (memLp_top_of_bound ha.aestronglyMeasurable C + (Eventually.of_forall hb)) (l2BoundedExponential μ a ha hb z₀ f) =ᵐ[μ] G z₀ := by + filter_upwards [lpMultiplication_ae μ a _ (l2BoundedExponential μ a ha hb z₀ f), + l2BoundedExponential_ae μ a ha hb z₀ f] with x hx hz + exact hx.trans (by rw [hz]) + have hD (z : ℂ) (hz : z ∈ Metric.ball z₀ 1) (x : α) : ‖G z x‖ ≤ D * ‖f x‖ := by + have hzbound : ‖z‖ ≤ ‖z₀‖ + 1 := by + have hdist : ‖z - z₀‖ < 1 := by simpa only [dist_eq_norm] using Metric.mem_ball.mp hz + have hnorm := norm_add_le (z - z₀) z₀ + rw [sub_add_cancel] at hnorm + linarith + have hExp : ‖Complex.exp (z * a x)‖ ≤ Real.exp ((‖z₀‖ + 1) * C) := + (norm_boundedCoefficient_exp_le a hb z x).trans + (Real.exp_le_exp.mpr (mul_le_mul_of_nonneg_right hzbound hC)) + dsimp [G, F, D] + rw [norm_mul, norm_mul, ← mul_assoc] + exact mul_le_mul_of_nonneg_right + (mul_le_mul (hb x) hExp (norm_nonneg _) hC) (norm_nonneg _) + have hint : Integrable (fun x => ‖f x‖ ^ 2) μ := + (memLp_two_iff_integrable_sq_norm (Lp.aestronglyMeasurable f)).mp (Lp.memLp f) + apply hasDerivAt_L2_of_dominated_representatives μ _ F + (l2BoundedExponential_ae μ a ha hb · f) _ (G z₀) hrepG z₀ + (Eventually.of_forall (hder z₀)) (fun x => (2 * D) ^ 2 * ‖f x‖ ^ 2) + (hint.const_mul _) + filter_upwards [self_mem_nhdsWithin, + nhdsWithin_le_nhds (Metric.ball_mem_nhds z₀ (show (0 : ℝ) < 1 by norm_num))] + with z hne hz + have hzneq : z ≠ z₀ := hne + exact Eventually.of_forall fun x => by + have hz₀ : z₀ ∈ Metric.ball z₀ 1 := Metric.mem_ball_self (by norm_num) + have hd : ‖F z x - F z₀ x‖ ≤ D * ‖f x‖ * ‖z - z₀‖ := + Convex.norm_image_sub_le_of_norm_hasDerivWithin_le + (fun w _ => (hder w x).hasDerivWithinAt) (fun w hw => hD w hw x) + (convex_ball z₀ 1) hz₀ hz + have hs : ‖(z - z₀)⁻¹ • (F z x - F z₀ x)‖ ≤ D * ‖f x‖ := by + rw [norm_smul, norm_inv] + calc + _ ≤ ‖z - z₀‖⁻¹ * (D * ‖f x‖ * ‖z - z₀‖) := + mul_le_mul_of_nonneg_left hd (inv_nonneg.mpr (norm_nonneg _)) + _ = _ := by field_simp [norm_ne_zero_iff.mpr (sub_ne_zero.mpr hzneq)] + have hr : ‖(z - z₀)⁻¹ • (F z x - F z₀ x) - G z₀ x‖ ≤ 2 * D * ‖f x‖ := + (norm_sub_le _ _).trans (by linarith [hD z₀ hz₀ x]) + calc + _ ≤ (2 * D * ‖f x‖) ^ 2 := pow_le_pow_left₀ (norm_nonneg _) hr 2 + _ = _ := by ring + +theorem differentiable_l2BoundedExponential (a : α → ℂ) (ha : Measurable a) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ x, ‖a x‖ ≤ C) (f : Lp ℂ 2 μ) : + Differentiable ℂ (fun z => l2BoundedExponential μ a ha hb z f) := + fun z => (hasDerivAt_l2BoundedExponential μ a ha hC hb f z).differentiableAt + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/L2DominatedDifferentiation.lean b/LeanPool/VacuumBellSeparation/FreeField/L2DominatedDifferentiation.lean new file mode 100644 index 0000000000..f8c2a47f32 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/L2DominatedDifferentiation.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.MeasureTheory.Function.L2Space +public import Mathlib.MeasureTheory.Integral.DominatedConvergence +public import Mathlib.Analysis.Calculus.Deriv.Slope + +/-! +# Dominated limits and complex derivatives in arbitrary actual L2 spaces + +Bounds and pointwise limits are checked on specified almost-everywhere +representatives. The Hilbert-space conclusion follows from the genuine +square-integral norm, for any measure, with no finite-measure assumption. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology +open scoped ENNReal + +variable {α : Type*} [MeasurableSpace α] (μ : Measure α) + +theorem norm_L2_eq_sqrt_integral_of_ae (f : Lp ℂ 2 μ) (g : α → ℂ) + (hfg : f =ᵐ[μ] g) : ‖f‖ = Real.sqrt (∫ x, ‖g x‖ ^ 2 ∂μ) := by + have hsq : ‖f‖ ^ 2 = ∫ x, ‖g x‖ ^ 2 ∂μ := by + rw [norm_sq_eq_re_inner (𝕜 := ℂ), L2.inner_def, + ← integral_re (L2.integrable_inner (𝕜 := ℂ) f f)] + apply integral_congr_ae + filter_upwards [hfg] with x hx + rw [hx, ← norm_sq_eq_re_inner (𝕜 := ℂ)] + rw [← hsq, Real.sqrt_sq (norm_nonneg _)] + +theorem tendsto_L2_zero_of_dominated_representatives + {β : Type*} {l : Filter β} [l.IsCountablyGenerated] + (f : β → Lp ℂ 2 μ) (F : β → α → ℂ) (hrep : ∀ i, f i =ᵐ[μ] F i) + (bound : α → ℝ) (hbound : Integrable bound μ) + (hdom : ∀ᶠ i in l, ∀ᵐ x ∂μ, ‖F i x‖ ^ 2 ≤ bound x) + (hpoint : ∀ᵐ x ∂μ, Tendsto (fun i => F i x) l (𝓝 0)) : + Tendsto f l (𝓝 (0 : Lp ℂ 2 μ)) := by + have hmeas (i : β) : AEStronglyMeasurable (F i) μ := + (Lp.aestronglyMeasurable (f i)).congr (hrep i) + have ht : Tendsto (fun i => ∫ x, ‖F i x‖ ^ 2 ∂μ) l (𝓝 0) := by + have h := tendsto_integral_filter_of_dominated_convergence + (F := fun i x => ‖F i x‖ ^ 2) (f := fun _ => (0 : ℝ)) bound + (Eventually.of_forall fun i => (hmeas i).norm.pow 2) + (hdom.mono fun i hi => hi.mono fun x hx => by + simpa only [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg (‖F i x‖ : ℝ))] using hx) + hbound (hpoint.mono fun x hx => by simpa using hx.norm.pow 2) + simpa only [integral_zero] using h + rw [tendsto_zero_iff_norm_tendsto_zero] + have he (i : β) : ‖f i‖ = Real.sqrt (∫ x, ‖F i x‖ ^ 2 ∂μ) := + norm_L2_eq_sqrt_integral_of_ae μ (f i) (F i) (hrep i) + simpa only [he, Function.comp_def, Real.sqrt_zero] using + Real.continuous_sqrt.continuousAt.tendsto.comp ht + +/-- An actual complex derivative on almost every representative lifts to the +Hilbert space once the squared slope residual has an integrable local bound. -/ +theorem hasDerivAt_L2_of_dominated_representatives + (f : ℂ → Lp ℂ 2 μ) (F : ℂ → α → ℂ) (hrep : ∀ z, f z =ᵐ[μ] F z) + (g : Lp ℂ 2 μ) (G : α → ℂ) (hgrep : g =ᵐ[μ] G) (z₀ : ℂ) + (hpoint : ∀ᵐ x ∂μ, HasDerivAt (fun z => F z x) (G x) z₀) + (bound : α → ℝ) (hbound : Integrable bound μ) + (hdom : ∀ᶠ z in 𝓝[≠] z₀, ∀ᵐ x ∂μ, + ‖(z - z₀)⁻¹ • (F z x - F z₀ x) - G x‖ ^ 2 ≤ bound x) : + HasDerivAt f g z₀ := by + let q (z : ℂ) : Lp ℂ 2 μ := (z - z₀)⁻¹ • (f z - f z₀) - g + let Q (z : ℂ) (x : α) : ℂ := (z - z₀)⁻¹ • (F z x - F z₀ x) - G x + have hqrep (z : ℂ) : q z =ᵐ[μ] Q z := by + filter_upwards [Lp.coeFn_sub ((z - z₀)⁻¹ • (f z - f z₀)) g, + Lp.coeFn_smul (z - z₀)⁻¹ (f z - f z₀), Lp.coeFn_sub (f z) (f z₀), + hrep z, hrep z₀, hgrep] with x hsub hsmul hdiff hz hzero hg + simp only [q, Q, hsub, hsmul, hdiff, hz, hzero, hg, Pi.smul_apply, Pi.sub_apply] + have hq : Tendsto q (𝓝[≠] z₀) (𝓝 (0 : Lp ℂ 2 μ)) := by + apply tendsto_L2_zero_of_dominated_representatives μ q Q hqrep bound hbound hdom + exact hpoint.mono fun x hx => by + simpa only [Q, slope, vsub_eq_sub, sub_self] using + hx.tendsto_slope.sub (tendsto_const_nhds (x := G x)) + rw [hasDerivAt_iff_tendsto_slope, tendsto_iff_norm_sub_tendsto_zero] + simpa only [q, slope, vsub_eq_sub] using (tendsto_zero_iff_norm_tendsto_zero.mp hq) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuum.lean b/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuum.lean new file mode 100644 index 0000000000..284108de04 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuum.lean @@ -0,0 +1,56 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LiteralFockVacuumConstruction +public import LeanPool.VacuumBellSeparation.Fock.PhysicalTestTotality +public import LeanPool.VacuumBellSeparation.FreeField.Uniqueness + +/-! +# The original free-field vacuum on the literal symmetric Fock space + +The carrier is the actual Hilbert sum of symmetric Hilbert tensor powers +of the original mass-shell L2 space. Compact spacetime test cyclicity is +proved using the actual wedge source space. Every previously specified +vacuum Weyl system is genuinely unitarily equivalent, preserving all +original local algebras and vacuum expectations. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open MeasureTheory Fock +open scoped InnerProductSpace + +-- Use the exact completed carrier instance already sealed by the constructor. +attribute [local instance] literalFockConstructionComplete + +variable {m : ℝ} (hm : 0 < m) + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The unitary identifies the original labels, every original regional +algebra, and every bounded vacuum expectation on the full Hilbert space. -/ +theorem FreeFieldVacuum.exists_literalFock_equiv (V : FreeFieldVacuum m H) : + ∃ U : H ≃ₗᵢ[ℂ] LiteralFockSpace (m := m), + U V.vacuum = literalFockVacuumVector ∧ + (∀ F x, U (V.weyl F x) = fockWeyl _ (oneParticleL2 hm F) (U x)) ∧ + (∀ (O : Set Spacetime) (A : H →L[ℂ] H), + A ∈ localAlgebra V O ↔ U.conjStarAlgEquiv A ∈ localAlgebra (literalFockVacuum hm) O) ∧ + (∀ A : H →L[ℂ] H, + vectorState (literalFockVacuum hm).vacuum (literalFockVacuum hm).vacuum_norm + (U.conjStarAlgEquiv A) = vectorState V.vacuum V.vacuum_norm A) := by + obtain ⟨U, hΩ, hU⟩ := FreeFieldVacuum.exists_unitary_equiv + (H := H) (H' := LiteralFockSpace (m := m)) V (literalFockVacuum hm) + refine ⟨U, hΩ, hU, ?_, ?_⟩ + · intro O A + exact V.mem_localAlgebra_iff_of_conj (literalFockVacuum hm) U hU O A + · intro A + exact V.vectorState_conj (literalFockVacuum hm) U hΩ A + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuumConstruction.lean b/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuumConstruction.lean new file mode 100644 index 0000000000..32a8bd7d70 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuumConstruction.lean @@ -0,0 +1,91 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LiteralFockVacuumNorm +public import LeanPool.VacuumBellSeparation.Fock.PhysicalTestTotality +public import LeanPool.VacuumBellSeparation.FreeField.Uniqueness + +/-! +# Construction of the original cyclic free-field vacuum on literal Fock space + +This construction is separated from its later specification proofs. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open MeasureTheory Fock +open scoped InnerProductSpace + +/-- The normed additive group of the square-summable Fock sectors. -/ +local instance literalFockConstructionNormedGroup (m : ℝ) : + NormedAddCommGroup (LiteralFockSpace (m := m)) := + lp.normedAddCommGroup + +/-- The complex normed space of square-summable Fock sectors. -/ +local instance literalFockConstructionNormedSpace (m : ℝ) : + NormedSpace ℂ (LiteralFockSpace (m := m)) := + physicalTotalityFockComplexNormedSpace (Lp ℂ 2 (oneParticleMeasure m)) + +/-- The sectorwise inner product summed over particle numbers. -/ +local instance literalFockConstructionInnerProduct (m : ℝ) : + InnerProductSpace ℂ (LiteralFockSpace (m := m)) := + lp.instInnerProductSpace + +/-- Completeness of the literal Fock space obtained from its complete sectors. -/ +local instance literalFockConstructionComplete (m : ℝ) : + CompleteSpace (LiteralFockSpace (m := m)) := + physicalTotalityFockComplete (Lp ℂ 2 (oneParticleMeasure m)) + +variable {m : ℝ} (hm : 0 < m) + +theorem literalFockWeyl_vacuum (v : Lp ℂ 2 (oneParticleMeasure m)) : + fockWeyl _ v (literalFockVacuumVector (m := m)) = coherentVector _ v := by + rw [literalFockVacuumVector, fockWeyl_coherentVector, + weylPhase_zero_right _ (fun _ _ => rfl), one_smul, add_zero] + +/-- The Weyl operator of a real spacetime test function on literal Fock space. -/ +def literalTestWeyl (F : RealTestFunction) : + LiteralFockSpace (m := m) →L[ℂ] LiteralFockSpace (m := m) := + fockWeyl (Lp ℂ 2 (oneParticleMeasure m)) (oneParticleL2 hm F) + +/-- Construct a free-field vacuum from additive labels preserving the one-particle form +whose coherent vectors are total in symmetric Fock space. -/ +def fockVacuumOfLabel (m : ℝ) (K : Type*) [NormedAddCommGroup K] [InnerProductSpace ℂ K] + (label : RealTestFunction → K) + (hadd : ∀ F G, label (F + G) = label F + label G) + (hinner : ∀ F G, inner ℂ (label F) (label G) = oneParticleInner m F G) + (htotal : (Submodule.span ℂ + (Set.range fun F => coherentVector K (label F))).topologicalClosure = ⊤) : + FreeFieldVacuum m (SymmetricFockSpace K) where + weyl F := fockWeyl K (label F) + vacuum := coherentVector K 0 + weyl_mem_unitary F := fockWeyl_mem_unitary K (label F) + weyl_mul F G := by + rw [fockWeyl_mul, ← hadd] + simp only [weylPhase, id_eq, hinner] + vacuum_norm := by + rw [← weylFockEquiv_weylVec, LinearIsometryEquiv.norm_map] + exact norm_weylVec_zero _ (fun _ _ => rfl) + vacuum_weyl F := by + rw [fockWeyl_coherentVector, weylPhase_zero_right _ (fun _ _ => rfl), + one_smul, add_zero, inner_coherentVector] + have hn : ‖label F‖ ^ 2 = (oneParticleInner m F F).re := by + rw [@norm_sq_eq_re_inner ℂ, hinner] + rfl + simp only [weylKernel, id_eq, norm_zero, zero_pow two_ne_zero, neg_zero, zero_div, + zero_sub, inner_zero_left, add_zero, Complex.ofReal_exp, hn] + cyclic := fockWeyl_cyclic_of_dense_coherentVector K label htotal + +/-- The cyclic vacuum system on the Fock space of the massive one-particle representation. -/ +def literalFockVacuum : FreeFieldVacuum m (LiteralFockSpace (m := m)) := + fockVacuumOfLabel m (Lp ℂ 2 (oneParticleMeasure m)) (oneParticleL2 hm) + (oneParticleL2_add hm) (inner_oneParticleL2 hm) (physical_coherentVector_dense_span hm) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuumDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuumDefs.lean new file mode 100644 index 0000000000..0371cc4d38 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuumDefs.lean @@ -0,0 +1,35 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Fock.WeylFockEquivalence +public import LeanPool.VacuumBellSeparation.FreeField.Existence + +/-! +# Literal symmetric Fock carrier and original vacuum vector + +This construction is separated from its later specification proofs. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open MeasureTheory Fock +open scoped InnerProductSpace + +variable {m : ℝ} (hm : 0 < m) + +/-- Literal Fock space with underlying type `SymmetricFockSpace (Lp ℂ 2 (oneParticleMeasure m))`. -/ +abbrev LiteralFockSpace := SymmetricFockSpace (Lp ℂ 2 (oneParticleMeasure m)) + +/-- Literal Fock vacuum vector. -/ +def literalFockVacuumVector : LiteralFockSpace (m := m) := + coherentVector (Lp ℂ 2 (oneParticleMeasure m)) 0 + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuumNorm.lean b/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuumNorm.lean new file mode 100644 index 0000000000..746467fa61 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LiteralFockVacuumNorm.lean @@ -0,0 +1,31 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LiteralFockVacuumDefs + +/-! +# Norm of the actual literal Fock vacuum vector + +This construction is separated from its later specification proofs. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open MeasureTheory Fock +open scoped InnerProductSpace + +variable {m : ℝ} (hm : 0 < m) + +theorem literalFockVacuumVector_norm : ‖literalFockVacuumVector (m := m)‖ = 1 := by + rw [literalFockVacuumVector, ← weylFockEquiv_weylVec, LinearIsometryEquiv.norm_map] + exact norm_weylVec_zero _ (fun _ _ => rfl) + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LocalAlgebraNonabelian.lean b/LeanPool/VacuumBellSeparation/FreeField/LocalAlgebraNonabelian.lean new file mode 100644 index 0000000000..2639f2cbd5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LocalAlgebraNonabelian.lean @@ -0,0 +1,51 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroNonabelian +public import LeanPool.VacuumBellSeparation.FreeField.TranslatedVacuum +public import LeanPool.VacuumBellSeparation.FreeField.OpenVacuumCyclicity + +/-! +# Nonabelian physical double-cone and open-region algebras + +The witnesses are actual Weyl operators, transported only by the proved +spacetime relabeling. No nonabelianity assumption is added to the vacuum. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Every positive-radius double cone has noncommuting local observables. -/ +theorem FreeFieldVacuum.localAlgebra_doubleCone_nonabelian + (V : FreeFieldVacuum m H) (hm : 0 < m) (a : Spacetime) {R : ℝ} (hR : 0 < R) : + ∃ A ∈ localAlgebra V (doubleCone a R), ∃ B ∈ localAlgebra V (doubleCone a R), + A * B ≠ B * A := by + obtain ⟨A, hA, B, hB, hAB⟩ := (V.translated a).timeZeroLocalAlgebra_nonabelian hm + (U := Metric.ball 0 R) Metric.isOpen_ball (Metric.nonempty_ball.mpr hR) + have hinc : timeZeroLocalAlgebra (V.translated a) hm (Metric.ball 0 R) ≤ + localAlgebra V (doubleCone a R) := by + rw [← V.localAlgebra_translated_doubleCone_zero a R] + exact timeZeroLocalAlgebra_ball_le (V.translated a) hm hR 0 + exact ⟨A, hinc hA, B, hinc hB, hAB⟩ + +/-- Every nonempty open spacetime region has a nonabelian physical local algebra. -/ +theorem FreeFieldVacuum.localAlgebra_open_nonabelian + (V : FreeFieldVacuum m H) (hm : 0 < m) + {O : Set Spacetime} (hO : IsOpen O) (hne : O.Nonempty) : + ∃ A ∈ localAlgebra V O, ∃ B ∈ localAlgebra V O, A * B ≠ B * A := by + obtain ⟨a, ha⟩ := hne + obtain ⟨R, hR, hsub⟩ := exists_doubleCone_subset_of_isOpen_at hO ha + obtain ⟨A, hA, B, hB, hAB⟩ := V.localAlgebra_doubleCone_nonabelian hm a hR + exact ⟨A, localAlgebra_mono V hsub hA, B, localAlgebra_mono V hsub hB, hAB⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LocalAnnihilatorLaplace.lean b/LeanPool/VacuumBellSeparation/FreeField/LocalAnnihilatorLaplace.lean new file mode 100644 index 0000000000..02006b0cd4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LocalAnnihilatorLaplace.lean @@ -0,0 +1,68 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PositiveEnergySpatialAmplitude +public import LeanPool.VacuumBellSeparation.FreeField.SourceSpace + +/-! +# Local complex annihilators vanish on all positive-energy Laplace slices + +Finite propagation supplies an actual open time interval on which each evolved +compact spatial test remains in the original ball. Orthogonality therefore gives +literal zero boundary values. Actual mass-shell integrability and the proved +upper-half-plane uniqueness theorem give vanishing at every positive imaginary +time. This is a step toward density, not an assumed density theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped InnerProductSpace + +theorem evolvedSpatialSource_mem_ball_of_support_margin {m r R : ℝ} + (hm : 0 < m) (hr : 0 ≤ r) (x₀ : EuclideanSpace ℝ (Fin 3)) + (g : SpatialTestFunction) (hg : tsupport g.1 ⊆ Metric.closedBall x₀ r) + {t : ℝ} (ht : r + |t| < R) : + evolvedSpatialSource hm t g ∈ localizedTimeZeroSources (Metric.ball x₀ R) := by + apply localizedTimeZeroSources_mono (Metric.closedBall_subset_ball ht) + constructor + · exact tsupport_spatialCauchyTest_subset hm hr t x₀ g 0 hg (by + change tsupport (0 : EuclideanSpace ℝ (Fin 3) → ℝ) ⊆ _ + simp) + · exact tsupport_spatialCauchyTest_subset hm hr t x₀ 0 g (by + change tsupport (0 : EuclideanSpace ℝ (Fin 3) → ℝ) ⊆ _ + simp) hg + +theorem spatialLaplace_eq_zero_of_local_annihilator {m R : ℝ} + (hm : 0 < m) (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) + (hψ : ∀ u ∈ localizedTimeZeroSources (Metric.ball x₀ R), + ⟪ψ, timeZeroL2 hm u⟫_ℂ = 0) + (g : SpatialTestFunction) (hg : tsupport g.1 ⊆ Metric.ball x₀ R) : + ∀ z : ℂ, 0 < z.im → + positiveEnergyLaplace (oneParticleMeasure m) (dispersion m) + (spatialLaplaceAmplitude ψ g) z = 0 := by + obtain ⟨r, hr, hgr⟩ := exists_pos_lt_subset_ball hR (isClosed_tsupport _) hg + have hδ : 0 < R - r := sub_pos.mpr hr.2 + apply positiveEnergyLaplace_eq_zero_of_boundary_interval + (continuous_dispersion m).aestronglyMeasurable + (fun p => hm.le.trans (le_dispersion hm.le p)) + (integrable_spatialLaplaceAmplitude hm ψ g) + (integrable_spatialLaplaceAmplitude_energy hm ψ g) + (a := -(R - r)) (b := R - r) (by linarith) + intro t ht + rw [spatialLaplace_eq_inner_evolvedSpatialSource hm] + apply hψ + apply evolvedSpatialSource_mem_ball_of_support_margin hm hr.1.le x₀ g + (hgr.trans Metric.ball_subset_closedBall) + have ht' : |t| < R - r := abs_lt.mpr ht + linarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LocalComplexAnnihilator.lean b/LeanPool/VacuumBellSeparation/FreeField/LocalComplexAnnihilator.lean new file mode 100644 index 0000000000..1684ed34cb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LocalComplexAnnihilator.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.DampedSpatialUnique +public import LeanPool.VacuumBellSeparation.FreeField.ScalarFourierInjectivity + +/-! +# No nonzero physical complex annihilator of a nonempty time-zero ball + +Actual bounded exponential damping produces a physical L² ∩ L¹ vector. +The proved spatial Fourier vanishing and distributional injectivity make +that vector zero. Strict positivity of the damping cancels almost everywhere; +there is no domain assertion for an exponentially growing inverse. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter +open scoped InnerProductSpace ComplexConjugate + +theorem memLp_dampedShellAmplitude {m a : ℝ} (hm : 0 < m) (ha : 0 ≤ a) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + MemLp (dampedShellAmplitude a ψ) 2 (oneParticleMeasure m) := by + apply (Lp.memLp ψ).of_le + · have hc : Continuous (fun p => (Real.exp (-a * dispersion m p) : ℂ)) := + Complex.continuous_ofReal.comp ((continuous_const.mul (continuous_dispersion m)).rexp) + exact hc.aestronglyMeasurable.mul (Lp.memLp ψ).aestronglyMeasurable.star + · exact Eventually.of_forall fun p => by + rw [norm_dampedShellAmplitude] + apply mul_le_of_le_one_left (norm_nonneg _) + rw [Real.exp_le_one_iff] + simpa only [neg_mul] using + neg_nonpos.mpr (mul_nonneg ha (hm.le.trans (le_dispersion hm.le p))) + +theorem eq_zero_of_dampedSpatialFourier_eq_zero {m a : ℝ} + (hm : 0 < m) (ha : 0 < a) (ψ : Lp ℂ 2 (oneParticleMeasure m)) + (hzero : dampedSpatialFourier a ψ = 0) : ψ = 0 := by + let u := (memLp_dampedShellAmplitude hm ha.le ψ).toLp (dampedShellAmplitude a ψ) + have hcoe : (fun p => u p) =ᵐ[oneParticleMeasure m] dampedShellAmplitude a ψ := + (memLp_dampedShellAmplitude hm ha.le ψ).coeFn_toLp + have hu : Integrable (fun p => u p) (oneParticleMeasure m) := + (integrable_dampedShellAmplitude hm ha ψ).congr hcoe.symm + have hFu : scalarSpatialFourier (oneParticleMeasure m) (fun p => u p) = 0 := by + calc + _ = dampedSpatialFourier a ψ := by + funext x + apply integral_congr_ae + exact hcoe.mono fun p hp => by + dsimp only at hp ⊢ + rw [hp] + _ = 0 := hzero + have hu0 := physical_L2_eq_zero_of_scalarSpatialFourier_eq_zero hm u hu hFu + have hA : dampedShellAmplitude a ψ =ᵐ[oneParticleMeasure m] 0 := by + exact hcoe.symm.trans (by simpa only [hu0] using Lp.coeFn_zero ℂ 2 (oneParticleMeasure m)) + apply Lp.ext + filter_upwards [hA, Lp.coeFn_zero ℂ 2 (oneParticleMeasure m)] with p hp hz + rw [hz] + have hexp : (Real.exp (-a * dispersion m p) : ℂ) ≠ 0 := + Complex.ofReal_ne_zero.mpr (Real.exp_ne_zero _) + change (Real.exp (-a * dispersion m p) : ℂ) * conj (ψ p) = 0 at hp + have hconj : conj (ψ p) = 0 := (mul_eq_zero.mp hp).resolve_left hexp + simpa using hconj + +theorem eq_zero_of_local_timeZero_complex_annihilator {m R : ℝ} + (hm : 0 < m) (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) + (hψ : ∀ u ∈ localizedTimeZeroSources (Metric.ball x₀ R), + ⟪ψ, timeZeroL2 hm u⟫_ℂ = 0) : ψ = 0 := by + apply eq_zero_of_dampedSpatialFourier_eq_zero hm (show (0 : ℝ) < 1 by norm_num) ψ + exact dampedSpatialFourier_eq_zero_of_local_annihilator hm (by norm_num) hR x₀ ψ hψ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LocalComplexDensity.lean b/LeanPool/VacuumBellSeparation/FreeField/LocalComplexDensity.lean new file mode 100644 index 0000000000..461de89569 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LocalComplexDensity.lean @@ -0,0 +1,60 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LocalComplexAnnihilator +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSource + +/-! +# Dense complex range of actual local source completions + +The scalar positive-energy and spatial Fourier argument proved that every +physical complex annihilator of a positive-radius ball is zero. Hilbert-space +orthogonal complementation now yields density of the constructed complex source +map for every region containing such a ball. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped InnerProductSpace + +theorem complexSourceMap_denseRange_of_contains_ball {m R : ℝ} + (hm : 0 < m) (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) + (U : Set (EuclideanSpace ℝ (Fin 3))) (hU : Metric.ball x₀ R ⊆ U) : + DenseRange (complexSourceMap hm U) := by + let K : Submodule ℂ (Lp ℂ 2 (oneParticleMeasure m)) := (complexSourceMap hm U).range + have horth : Kᗮ = ⊥ := by + apply (Submodule.eq_bot_iff (Kᗮ)).mpr + intro ψ hψ + apply eq_zero_of_local_timeZero_complex_annihilator hm hR x₀ ψ + intro u hu + apply (K.mem_orthogonal' ψ).mp hψ + let u' : SourceTestSpace hm U := ⟨u, localizedTimeZeroSources_mono hU hu⟩ + exact ⟨Gaussian.HilbertComplexification.ofReal (u' : SourceHilbert hm U), + complexSourceMap_ofReal_test hm U u'⟩ + have hK : K.topologicalClosure = ⊤ := K.topologicalClosure_eq_top_iff.mpr horth + rw [denseRange_iff_closure_range] + change (K.topologicalClosure : Set (Lp ℂ 2 (oneParticleMeasure m))) = univ + rw [hK] + rfl + +theorem complexSourceMap_denseRange_of_open {m : ℝ} (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) (hU : IsOpen U) (hne : U.Nonempty) : + DenseRange (complexSourceMap hm U) := by + obtain ⟨x₀, hx₀⟩ := hne + obtain ⟨R, hR, hball⟩ := Metric.isOpen_iff.mp hU x₀ hx₀ + exact complexSourceMap_denseRange_of_contains_ball hm hR x₀ U hball + +theorem complexSourceMap_denseRange_ball {m R : ℝ} (hm : 0 < m) (hR : 0 < R) + (x₀ : EuclideanSpace ℝ (Fin 3)) : + DenseRange (complexSourceMap hm (Metric.ball x₀ R)) := + complexSourceMap_denseRange_of_contains_ball hm hR x₀ _ Subset.rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LocalSourceTotality.lean b/LeanPool/VacuumBellSeparation/FreeField/LocalSourceTotality.lean new file mode 100644 index 0000000000..b78360f7de --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LocalSourceTotality.lean @@ -0,0 +1,50 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Fock.RealLinearCoherentTotality +public import LeanPool.VacuumBellSeparation.FreeField.StandardSourceSpace + +/-! +# Full Fock totality of actual localized compact source pairs + +The labels are the original compact real time-zero pairs with both supports +inside U. Standardness and the completed range/closure equality are proved +physical facts, not hypotheses about an auxiliary representation. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Fock +open MeasureTheory +open scoped InnerProductSpace + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) +variable (hbounded : Bornology.IsBounded U) (hopen : IsOpen U) (hne : U.Nonempty) + +include hbounded hopen hne + +theorem sourceFock_eq_zero_of_coherent_orthogonal + (x : SymmetricFockSpace (Lp ℂ 2 (oneParticleMeasure m))) + (hx : ∀ u : SourceTestSpace hm U, + inner ℂ x (coherentVector _ (timeZeroL2 hm u.1)) = 0) : x = 0 := by + apply fock_eq_zero_of_realLinear_coherent_orthogonal (sourceTestMap hm U) + (physicalSourceStandardSubspace hm U hbounded hopen hne) ?_ x hx + intro v + exact (range_sourceEmbedding_eq_closure hm U).le v.property + +theorem source_coherentVector_dense_span : + (Submodule.span ℂ (Set.range fun u : SourceTestSpace hm U => + coherentVector (Lp ℂ 2 (oneParticleMeasure m)) + (timeZeroL2 hm u.1))).topologicalClosure = ⊤ := by + apply realLinear_coherentVector_dense_span (sourceTestMap hm U) + (physicalSourceStandardSubspace hm U hbounded hopen hne) + intro v + exact (range_sourceEmbedding_eq_closure hm U).le v.property + +end VacuumBellSeparation.Fock diff --git a/LeanPool/VacuumBellSeparation/FreeField/LocalVacuumCyclicity.lean b/LeanPool/VacuumBellSeparation/FreeField/LocalVacuumCyclicity.lean new file mode 100644 index 0000000000..4ab08e1653 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LocalVacuumCyclicity.lean @@ -0,0 +1,40 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroVacuumCyclicity +public import LeanPool.VacuumBellSeparation.FreeField.TranslatedVacuum + +/-! +# Vacuum cyclicity for every original positive-radius double cone + +The local orbit is dense in the original full representation, at arbitrary +temporal and spatial centers. Translation covariance is proved by an actual +relabeling of the compact test functions with the same physical covariance. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The positive-mass free-field vacuum is cyclic for every actual double cone. -/ +theorem FreeFieldVacuum.vacuum_cyclic_doubleCone + {m : ℝ} (hm : 0 < m) (V : FreeFieldVacuum m H) + (a : Spacetime) {R : ℝ} (hR : 0 < R) : + (Submodule.span ℂ {x : H | ∃ A : H →L[ℂ] H, + A ∈ localAlgebra V (doubleCone a R) ∧ x = A V.vacuum}).topologicalClosure = ⊤ := by + have h := (V.translated a).vacuum_cyclic_doubleCone_timeZero hm 0 hR + change (Submodule.span ℂ {x : H | ∃ A : H →L[ℂ] H, + A ∈ localAlgebra (V.translated a) (doubleCone 0 R) ∧ x = A V.vacuum}).topologicalClosure = ⊤ + at h + rw [V.localAlgebra_translated_doubleCone_zero] at h + exact h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Lorentz.lean b/LeanPool/VacuumBellSeparation/FreeField/Lorentz.lean new file mode 100644 index 0000000000..4118a887ab --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Lorentz.lean @@ -0,0 +1,695 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Uniqueness +public import Mathlib.Analysis.InnerProductSpace.Calculus + +/-! +# Lorentz covariance of the free-field model + +Boosts along `𝐞₁` and spatial orthogonal maps (rotations and reflections) act on spacetime test +functions by `F ↦ F ∘ Λ` and on momenta through the mass shell. This module proves the covariance +of the model of `FreeField/Defs.lean` under these maps (hence under their finite compositions, by +applying the results repeatedly). + +* `boost η`: the boost of rapidity `η` along `𝐞₁`, a continuous linear automorphism of + spacetime, `(t, 𝐱) ↦ (t cosh η + x₁ sinh η, 𝐱 + (t sinh η + x₁ (cosh η - 1)) 𝐞₁)` with + `x₁ = ⟪𝐞₁, 𝐱⟫`; `boost_symm`, `boost_neg_boost`: `Λ(η)⁻¹ = Λ(-η)`; `minkowskiForm_boost`: + it preserves the Minkowski form; `det_boost`, `measurePreserving_boost`: it has determinant + `1` and preserves Lebesgue measure on spacetime. +* `shellBoost m η 𝐩 = 𝐩 + (ω_m(𝐩) sinh η + p₁ (cosh η - 1)) 𝐞₁`, the induced map of the mass + shell: `boost_onShell`: `Λ(η)(ω_m(𝐩), 𝐩) = (ω_m(𝐩'), 𝐩')`; `dispersion_shellBoost`: + `ω_m(𝐩') = ω_m(𝐩) cosh η + p₁ sinh η`; `shellBoost_neg_shellBoost`: `S(-η)` inverts `S(η)`. +* `integral_shellBoost_mul_weight` (key step): for `m ≠ 0` the measure `d³p / (2(2π)³ ω_m(𝐩))` + is invariant under `shellBoost m η`, for every integrand (change of variables with Jacobian + `det dS(𝐩) = ω_m(𝐩') / ω_m(𝐩)`, `det_shellBoostDeriv`). +* `RealTestFunction.compCLE`: `F ∘ Λ` for a continuous linear automorphism `Λ` of spacetime; + `oneParticle_boost`: `κ_m(F ∘ Λ(η))(𝐩) = κ_m F(S_η 𝐩)`. +* `oneParticleInner_boost`: `⟨κ_m(F ∘ Λ(η)), κ_m(G ∘ Λ(η))⟩ = ⟨κ_m F, κ_m G⟩` for `m ≠ 0`. +* Rotations `(t, 𝐱) ↦ (t, R𝐱)`: `oneParticle_spatialRotation`, + `oneParticleInner_spatialRotation` (every `m`). +* `FreeFieldVacuum.lorentz`: the vacuum system `W'(F) = W(F ∘ Λ)` (same vacuum) for any + automorphism `Λ` preserving the one-particle inner product, with + `localAlgebra (V.lorentz Λ _) O = localAlgebra V (Λ ⁻¹' O)`; the instances + `FreeFieldVacuum.boosted` (`𝔄'(O) = 𝔄(Λ(-η) O)`) and `FreeFieldVacuum.rotated`. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +/-! ### The first spatial unit vector -/ + +/-- `‖𝐞₁‖ = 1`. -/ +theorem norm_e₁ : ‖e₁‖ = 1 := by + simp [e₁] + +/-- `⟪𝐞₁, 𝐞₁⟫ = 1`. -/ +theorem inner_e₁_self : ⟪e₁, e₁⟫_ℝ = 1 := by + rw [real_inner_self_eq_norm_sq, norm_e₁, one_pow] + +/-- `⟪𝐞₁, 𝐯 + c 𝐞₁⟫ = ⟪𝐞₁, 𝐯⟫ + c`. -/ +theorem inner_e₁_add_smul (v : EuclideanSpace ℝ (Fin 3)) (c : ℝ) : + ⟪e₁, v + c • e₁⟫_ℝ = ⟪e₁, v⟫_ℝ + c := by + rw [inner_add_right, real_inner_smul_right, inner_e₁_self, mul_one] + +/-- `⟪𝐮 + a 𝐞₁, 𝐰 + b 𝐞₁⟫ = ⟪𝐮, 𝐰⟫ + b ⟪𝐞₁, 𝐮⟫ + a ⟪𝐞₁, 𝐰⟫ + a b`. -/ +theorem inner_add_smul_e₁ (u w : EuclideanSpace ℝ (Fin 3)) (a b : ℝ) : + ⟪u + a • e₁, w + b • e₁⟫_ℝ = ⟪u, w⟫_ℝ + b * ⟪e₁, u⟫_ℝ + a * ⟪e₁, w⟫_ℝ + a * b := by + simp only [inner_add_left, inner_add_right, real_inner_smul_left, real_inner_smul_right, + inner_e₁_self, real_inner_comm e₁ u] + ring + +/-! ### Boosts along `𝐞₁` -/ + +/-- The boost of rapidity `η` along `𝐞₁` as a continuous linear map of spacetime: +`(t, 𝐱) ↦ (t cosh η + x₁ sinh η, 𝐱 + (t sinh η + x₁ (cosh η - 1)) 𝐞₁)`, `x₁ = ⟪𝐞₁, 𝐱⟫`. -/ +noncomputable def boostCLM (η : ℝ) : Spacetime →L[ℝ] Spacetime := + ContinuousLinearMap.prod + (Real.cosh η • ContinuousLinearMap.fst ℝ ℝ (EuclideanSpace ℝ (Fin 3)) + + Real.sinh η • (innerSL ℝ e₁).comp (ContinuousLinearMap.snd ℝ ℝ (EuclideanSpace ℝ (Fin 3)))) + (ContinuousLinearMap.snd ℝ ℝ (EuclideanSpace ℝ (Fin 3)) + + ContinuousLinearMap.smulRight + (Real.sinh η • ContinuousLinearMap.fst ℝ ℝ (EuclideanSpace ℝ (Fin 3)) + + (Real.cosh η - 1) • + (innerSL ℝ e₁).comp (ContinuousLinearMap.snd ℝ ℝ (EuclideanSpace ℝ (Fin 3)))) + e₁) + +/-- The boost in coordinates. -/ +theorem boostCLM_apply (η : ℝ) (x : Spacetime) : + boostCLM η x = (Real.cosh η * x.1 + Real.sinh η * ⟪e₁, x.2⟫_ℝ, + x.2 + (Real.sinh η * x.1 + (Real.cosh η - 1) * ⟪e₁, x.2⟫_ℝ) • e₁) := + rfl + +/-- The boosts along `𝐞₁` form a one-parameter group: `Λ(a) Λ(b) = Λ(a + b)`. -/ +theorem boostCLM_boostCLM (a b : ℝ) (x : Spacetime) : + boostCLM a (boostCLM b x) = boostCLM (a + b) x := by + obtain ⟨t, v⟩ := x + have hv : ⟪e₁, v + (Real.sinh b * t + (Real.cosh b - 1) * ⟪e₁, v⟫_ℝ) • e₁⟫_ℝ = + Real.sinh b * t + Real.cosh b * ⟪e₁, v⟫_ℝ := by + rw [inner_e₁_add_smul] + ring + simp only [boostCLM_apply] + refine Prod.ext ?_ ?_ + · change Real.cosh a * (Real.cosh b * t + Real.sinh b * ⟪e₁, v⟫_ℝ) + + Real.sinh a * ⟪e₁, v + (Real.sinh b * t + (Real.cosh b - 1) * ⟪e₁, v⟫_ℝ) • e₁⟫_ℝ = + Real.cosh (a + b) * t + Real.sinh (a + b) * ⟪e₁, v⟫_ℝ + rw [hv, Real.cosh_add, Real.sinh_add] + ring + · change v + (Real.sinh b * t + (Real.cosh b - 1) * ⟪e₁, v⟫_ℝ) • e₁ + + (Real.sinh a * (Real.cosh b * t + Real.sinh b * ⟪e₁, v⟫_ℝ) + + (Real.cosh a - 1) * + ⟪e₁, v + (Real.sinh b * t + (Real.cosh b - 1) * ⟪e₁, v⟫_ℝ) • e₁⟫_ℝ) • e₁ = + v + (Real.sinh (a + b) * t + (Real.cosh (a + b) - 1) * ⟪e₁, v⟫_ℝ) • e₁ + have hc : (Real.sinh b * t + (Real.cosh b - 1) * ⟪e₁, v⟫_ℝ) + + (Real.sinh a * (Real.cosh b * t + Real.sinh b * ⟪e₁, v⟫_ℝ) + + (Real.cosh a - 1) * (Real.sinh b * t + Real.cosh b * ⟪e₁, v⟫_ℝ)) = + Real.sinh (a + b) * t + (Real.cosh (a + b) - 1) * ⟪e₁, v⟫_ℝ := by + rw [Real.cosh_add, Real.sinh_add] + ring + rw [hv, add_assoc, ← add_smul, hc] + +/-- `Λ(0)` is the identity. -/ +theorem boostCLM_zero (x : Spacetime) : boostCLM 0 x = x := by + obtain ⟨t, v⟩ := x + simp [boostCLM_apply] + +/-- `Λ(-η) Λ(η) = 1`. -/ +theorem boostCLM_neg_boostCLM (η : ℝ) (x : Spacetime) : boostCLM (-η) (boostCLM η x) = x := by + rw [boostCLM_boostCLM, neg_add_cancel, boostCLM_zero] + +/-- `Λ(η) Λ(-η) = 1`. -/ +theorem boostCLM_boostCLM_neg (η : ℝ) (x : Spacetime) : boostCLM η (boostCLM (-η) x) = x := by + rw [boostCLM_boostCLM, add_neg_cancel, boostCLM_zero] + +/-- The boost of rapidity `η` along `𝐞₁` as a continuous linear automorphism of spacetime. -/ +noncomputable def boost (η : ℝ) : Spacetime ≃L[ℝ] Spacetime := + ContinuousLinearEquiv.equivOfInverse (boostCLM η) (boostCLM (-η)) + (boostCLM_neg_boostCLM η) (boostCLM_boostCLM_neg η) + +/-- `Λ(η) x = boostCLM η x`. -/ +theorem boost_apply (η : ℝ) (x : Spacetime) : boost η x = boostCLM η x := + rfl + +/-- `Λ(η)⁻¹ = Λ(-η)`. -/ +theorem boost_symm (η : ℝ) : (boost η).symm = boost (-η) := + ContinuousLinearEquiv.ext (funext fun _ => rfl) + +/-- `Λ(-η) Λ(η) x = x`. -/ +theorem boost_neg_boost (η : ℝ) (x : Spacetime) : boost (-η) (boost η x) = x := + boostCLM_neg_boostCLM η x + +/-- `Λ(η) Λ(-η) x = x`. -/ +theorem boost_boost_neg (η : ℝ) (x : Spacetime) : boost η (boost (-η) x) = x := + boostCLM_boostCLM_neg η x + +/-- `Λ(a) Λ(b) = Λ(a + b)`. -/ +theorem boost_boost (a b : ℝ) (x : Spacetime) : boost a (boost b x) = boost (a + b) x := + boostCLM_boostCLM a b x + +/-! ### The Minkowski form -/ + +/-- The Minkowski bilinear form `k⁰x⁰ - ⟪𝐤, 𝐱⟫` of signature `(+,-,-,-)`. -/ +noncomputable def minkowskiForm (k x : Spacetime) : ℝ := + k.1 * x.1 - ⟪k.2, x.2⟫_ℝ + +/-- Boosts preserve the Minkowski form. -/ +theorem minkowskiForm_boost (η : ℝ) (k x : Spacetime) : + minkowskiForm (boost η k) (boost η x) = minkowskiForm k x := by + obtain ⟨k0, kv⟩ := k + obtain ⟨x0, xv⟩ := x + have h1 := Real.cosh_sq_sub_sinh_sq η + simp only [minkowskiForm, boost_apply, boostCLM_apply] + rw [inner_add_smul_e₁] + linear_combination (k0 * x0 - ⟪e₁, kv⟫_ℝ * ⟪e₁, xv⟫_ℝ) * h1 + +/-! ### Determinant and Lebesgue measure -/ + +/-- Time reversal `(t, 𝐱) ↦ (-t, 𝐱)` as a linear map. -/ +noncomputable def timeReversal : Spacetime →ₗ[ℝ] Spacetime where + toFun x := (-x.1, x.2) + map_add' x y := by + refine Prod.ext ?_ rfl + change -(x.1 + y.1) = -x.1 + -y.1 + exact neg_add x.1 y.1 + map_smul' c x := by + refine Prod.ext ?_ rfl + change -(c * x.1) = c * -x.1 + exact (mul_neg c x.1).symm + +/-- Time reversal in coordinates. -/ +theorem timeReversal_apply (x : Spacetime) : timeReversal x = (-x.1, x.2) := + rfl + +/-- Time reversal conjugates `Λ(η)` to `Λ(-η)`. -/ +theorem boostCLM_neg_apply (a : ℝ) (x : Spacetime) : + boostCLM (-a) x = timeReversal (boostCLM a (timeReversal x)) := by + obtain ⟨t, v⟩ := x + simp only [boostCLM_apply, timeReversal_apply] + refine Prod.ext ?_ ?_ + · change Real.cosh (-a) * t + Real.sinh (-a) * ⟪e₁, v⟫_ℝ = + -(Real.cosh a * -t + Real.sinh a * ⟪e₁, v⟫_ℝ) + rw [Real.cosh_neg, Real.sinh_neg] + ring + · change v + (Real.sinh (-a) * t + (Real.cosh (-a) - 1) * ⟪e₁, v⟫_ℝ) • e₁ = + v + (Real.sinh a * -t + (Real.cosh a - 1) * ⟪e₁, v⟫_ℝ) • e₁ + rw [Real.cosh_neg, Real.sinh_neg, neg_mul, mul_neg] + +/-- The boosts along `𝐞₁` have determinant `1`. (`det Λ(a) det Λ(b) = det Λ(a + b)`, time +reversal gives `det Λ(-η) = det Λ(η)`, so `det Λ(η)² = 1`, and `det Λ(η) = det Λ(η/2)² ≥ 0`.) -/ +theorem det_boostCLM (η : ℝ) : + LinearMap.det (boostCLM η : Spacetime →ₗ[ℝ] Spacetime) = 1 := by + have hcomp : ∀ a b : ℝ, LinearMap.det (boostCLM a : Spacetime →ₗ[ℝ] Spacetime) * + LinearMap.det (boostCLM b : Spacetime →ₗ[ℝ] Spacetime) = + LinearMap.det (boostCLM (a + b) : Spacetime →ₗ[ℝ] Spacetime) := by + intro a b + rw [← LinearMap.det_comp] + congr 1 + exact LinearMap.ext fun x => boostCLM_boostCLM a b x + have hzero : LinearMap.det (boostCLM 0 : Spacetime →ₗ[ℝ] Spacetime) = 1 := by + have h0 : (boostCLM 0 : Spacetime →ₗ[ℝ] Spacetime) = LinearMap.id := + LinearMap.ext fun x => boostCLM_zero x + rw [h0, LinearMap.det_id] + have hTT : timeReversal ∘ₗ timeReversal = LinearMap.id := + LinearMap.ext fun x => Prod.ext (neg_neg x.1) rfl + have hT : LinearMap.det timeReversal * LinearMap.det timeReversal = 1 := by + rw [← LinearMap.det_comp, hTT, LinearMap.det_id] + have hneg : LinearMap.det (boostCLM (-η) : Spacetime →ₗ[ℝ] Spacetime) = + LinearMap.det (boostCLM η : Spacetime →ₗ[ℝ] Spacetime) := by + have hconj : (boostCLM (-η) : Spacetime →ₗ[ℝ] Spacetime) = + timeReversal ∘ₗ (boostCLM η : Spacetime →ₗ[ℝ] Spacetime) ∘ₗ timeReversal := + LinearMap.ext fun x => boostCLM_neg_apply η x + rw [hconj, LinearMap.det_comp, LinearMap.det_comp] + linear_combination LinearMap.det (boostCLM η : Spacetime →ₗ[ℝ] Spacetime) * hT + have hsq : LinearMap.det (boostCLM η : Spacetime →ₗ[ℝ] Spacetime) ^ 2 = 1 := by + have h := hcomp (-η) η + rw [neg_add_cancel, hzero, hneg] at h + linear_combination h + have hnonneg : 0 ≤ LinearMap.det (boostCLM η : Spacetime →ₗ[ℝ] Spacetime) := by + have h := hcomp (η / 2) (η / 2) + rw [add_halves] at h + rw [← h] + exact mul_self_nonneg _ + nlinarith [hsq, hnonneg] + +/-- `det Λ(η) = 1`. -/ +theorem det_boost (η : ℝ) : (boost η : Spacetime →L[ℝ] Spacetime).det = 1 := + det_boostCLM η + +/-- Boosts preserve Lebesgue measure on spacetime. -/ +theorem measurePreserving_boost (η : ℝ) : + MeasurePreserving (boost η) (volume : Measure Spacetime) volume := by + have : (volume : Measure Spacetime).IsAddHaarMeasure := Measure.prod.instIsAddHaarMeasure _ _ + refine ⟨(boost η).continuous.measurable, ?_⟩ + have h := Measure.map_linearMap_addHaar_eq_smul_addHaar (volume : Measure Spacetime) + (f := (boostCLM η : Spacetime →ₗ[ℝ] Spacetime)) (by rw [det_boostCLM]; exact one_ne_zero) + rw [det_boostCLM, inv_one, abs_one, ENNReal.ofReal_one, one_smul] at h + exact h + +/-- Change of variables `y = Λ(η) x` in `d⁴x`. -/ +theorem integral_comp_boost {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] (η : ℝ) + (g : Spacetime → E) : ∫ x, g (boost η x) = ∫ x, g x := + (measurePreserving_boost η).integral_comp (boost η).toHomeomorph.measurableEmbedding g + +/-! ### The mass shell and the boosted momentum -/ + +/-- `ω_m(𝐩)² = m² + |𝐩|²`. -/ +theorem dispersion_sq (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + dispersion m p ^ 2 = m ^ 2 + ‖p‖ ^ 2 := + Real.sq_sqrt (add_nonneg (sq_nonneg m) (sq_nonneg ‖p‖)) + +/-- `ω_m(𝐩) > 0` for `m ≠ 0`. -/ +theorem dispersion_pos {m : ℝ} (hm : m ≠ 0) (p : EuclideanSpace ℝ (Fin 3)) : + 0 < dispersion m p := + Real.sqrt_pos.mpr (add_pos_of_pos_of_nonneg (sq_pos_of_ne_zero hm) (sq_nonneg ‖p‖)) + +/-- `|𝐩| ≤ ω_m(𝐩)`. -/ +theorem norm_le_dispersion (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : ‖p‖ ≤ dispersion m p := + calc ‖p‖ = Real.sqrt (‖p‖ ^ 2) := (Real.sqrt_sq (norm_nonneg p)).symm + _ ≤ Real.sqrt (m ^ 2 + ‖p‖ ^ 2) := Real.sqrt_le_sqrt (le_add_of_nonneg_left (sq_nonneg m)) + _ = dispersion m p := rfl + +/-- `|⟪𝐞₁, 𝐩⟫| ≤ |𝐩|`. -/ +theorem abs_inner_e₁_le (p : EuclideanSpace ℝ (Fin 3)) : |⟪e₁, p⟫_ℝ| ≤ ‖p‖ := by + have h := abs_real_inner_le_norm e₁ p + rwa [norm_e₁, one_mul] at h + +/-- `‖𝐩 + c 𝐞₁‖² = ‖𝐩‖² + 2 c ⟪𝐞₁, 𝐩⟫ + c²`. -/ +theorem norm_add_smul_e₁_sq (p : EuclideanSpace ℝ (Fin 3)) (c : ℝ) : + ‖p + c • e₁‖ ^ 2 = ‖p‖ ^ 2 + 2 * c * ⟪e₁, p⟫_ℝ + c ^ 2 := by + rw [norm_add_sq_real, real_inner_smul_right, norm_smul, Real.norm_eq_abs, norm_e₁, mul_one, + sq_abs, real_inner_comm e₁ p] + ring + +/-- The boosted momentum `𝐩' = 𝐩 + (ω_m(𝐩) sinh η + p₁ (cosh η - 1)) 𝐞₁`, `p₁ = ⟪𝐞₁, 𝐩⟫`, so +that `(ω_m(𝐩'), 𝐩') = Λ(η) (ω_m(𝐩), 𝐩)` (`boost_onShell`). -/ +noncomputable def shellBoost (m η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + EuclideanSpace ℝ (Fin 3) := + p + (Real.sinh η * dispersion m p + (Real.cosh η - 1) * ⟪e₁, p⟫_ℝ) • e₁ + +/-- The energy of the boosted momentum: `ω_m(𝐩') = ω_m(𝐩) cosh η + p₁ sinh η`. -/ +theorem dispersion_shellBoost (m η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + dispersion m (shellBoost m η p) = + Real.cosh η * dispersion m p + Real.sinh η * ⟪e₁, p⟫_ℝ := by + have hω2 := dispersion_sq m p + have hch := Real.cosh_sq_sub_sinh_sq η + have hnonneg : 0 ≤ Real.cosh η * dispersion m p + Real.sinh η * ⟪e₁, p⟫_ℝ := by + have hsh : |Real.sinh η| ≤ Real.cosh η := by + refine abs_le.mpr ⟨?_, (Real.sinh_lt_cosh η).le⟩ + have h := Real.sinh_lt_cosh (-η) + rw [Real.sinh_neg, Real.cosh_neg] at h + linarith + have hx : |⟪e₁, p⟫_ℝ| ≤ dispersion m p := + (abs_inner_e₁_le p).trans (norm_le_dispersion m p) + have h1 : |Real.sinh η * ⟪e₁, p⟫_ℝ| ≤ Real.cosh η * dispersion m p := by + rw [abs_mul] + exact mul_le_mul hsh hx (abs_nonneg _) (Real.cosh_pos η).le + linarith [neg_abs_le (Real.sinh η * ⟪e₁, p⟫_ℝ)] + have hsq : m ^ 2 + ‖shellBoost m η p‖ ^ 2 = + (Real.cosh η * dispersion m p + Real.sinh η * ⟪e₁, p⟫_ℝ) ^ 2 := by + rw [shellBoost, norm_add_smul_e₁_sq] + linear_combination (-1 : ℝ) * hω2 + (⟪e₁, p⟫_ℝ ^ 2 - dispersion m p ^ 2) * hch + change Real.sqrt (m ^ 2 + ‖shellBoost m η p‖ ^ 2) = _ + rw [hsq, Real.sqrt_sq hnonneg] + +/-- The point `(ω_m(𝐩), 𝐩)` of the mass shell. -/ +noncomputable def onShell (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : Spacetime := + (dispersion m p, p) + +/-- `Λ(η) (ω_m(𝐩), 𝐩) = (ω_m(𝐩'), 𝐩')` with `𝐩' = shellBoost m η 𝐩`. -/ +theorem boost_onShell (m η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + boost η (onShell m p) = onShell m (shellBoost m η p) := by + refine Prod.ext ?_ rfl + change Real.cosh η * dispersion m p + Real.sinh η * ⟪e₁, p⟫_ℝ = dispersion m (shellBoost m η p) + exact (dispersion_shellBoost m η p).symm + +/-- The boosted momenta form a one-parameter group: `S(a) S(b) = S(a + b)`. -/ +theorem shellBoost_shellBoost (m a b : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + shellBoost m a (shellBoost m b p) = shellBoost m (a + b) p := by + have h : boost a (boost b (onShell m p)) = boost (a + b) (onShell m p) := + boost_boost a b (onShell m p) + rw [boost_onShell, boost_onShell, boost_onShell] at h + exact congrArg Prod.snd h + +/-- `S(0) = 1`. -/ +theorem shellBoost_zero (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : shellBoost m 0 p = p := by + simp [shellBoost] + +/-- `S(-η) S(η) = 1`: `shellBoost m (-η)` inverts `shellBoost m η`. -/ +theorem shellBoost_neg_shellBoost (m η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + shellBoost m (-η) (shellBoost m η p) = p := by + rw [shellBoost_shellBoost, neg_add_cancel, shellBoost_zero] + +/-- `S(η) S(-η) = 1`. -/ +theorem shellBoost_shellBoost_neg (m η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + shellBoost m η (shellBoost m (-η) p) = p := by + rw [shellBoost_shellBoost, add_neg_cancel, shellBoost_zero] + +/-- `shellBoost m η` is injective. -/ +theorem shellBoost_injective (m η : ℝ) : Function.Injective (shellBoost m η) := + Function.LeftInverse.injective (shellBoost_neg_shellBoost m η) + +/-- `shellBoost m η` is surjective. -/ +theorem shellBoost_surjective (m η : ℝ) : Function.Surjective (shellBoost m η) := + Function.RightInverse.surjective (shellBoost_shellBoost_neg m η) + +/-! ### Invariance of the shell measure `d³p / ω_m(𝐩)` -/ + +/-- `det (1 + ℓ(·) 𝐞₁) = 1 + ℓ(𝐞₁)` on `ℝ³`. -/ +theorem det_id_add_smulRight_e₁ (ℓ : EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) : + (ContinuousLinearMap.id ℝ (EuclideanSpace ℝ (Fin 3)) + ℓ.smulRight e₁).det = 1 + ℓ e₁ := by + change LinearMap.det ((ContinuousLinearMap.id ℝ (EuclideanSpace ℝ (Fin 3)) + ℓ.smulRight e₁ : + EuclideanSpace ℝ (Fin 3) →L[ℝ] EuclideanSpace ℝ (Fin 3)) : + EuclideanSpace ℝ (Fin 3) →ₗ[ℝ] EuclideanSpace ℝ (Fin 3)) = 1 + ℓ e₁ + rw [← LinearMap.det_toMatrix (EuclideanSpace.basisFun (Fin 3) ℝ).toBasis, Matrix.det_fin_three] + simp [LinearMap.toMatrix_apply, e₁] + +/-- The derivative of `ω_m` for `m ≠ 0`: `dω_m(𝐩) = ω_m(𝐩)⁻¹ ⟪𝐩, ·⟫`. -/ +theorem hasFDerivAt_dispersion {m : ℝ} (hm : m ≠ 0) (p : EuclideanSpace ℝ (Fin 3)) : + HasFDerivAt (dispersion m) ((dispersion m p)⁻¹ • innerSL ℝ p) p := by + have hu : m ^ 2 + ‖p‖ ^ 2 ≠ 0 := + (add_pos_of_pos_of_nonneg (sq_pos_of_ne_zero hm) (sq_nonneg ‖p‖)).ne' + have h := ((hasStrictFDerivAt_norm_sq p).hasFDerivAt.const_add (m ^ 2)).sqrt hu + refine h.congr_fderiv (ContinuousLinearMap.ext fun v => ?_) + simp only [_root_.smul_apply, innerSL_apply_apply, smul_eq_mul, nsmul_eq_mul, Nat.cast_ofNat, + dispersion] + ring + +/-- The derivative of `shellBoost m η` at `𝐩`: +`𝐯 ↦ 𝐯 + (sinh η ⟪𝐩, 𝐯⟫ / ω_m(𝐩) + (cosh η - 1) ⟪𝐞₁, 𝐯⟫) 𝐞₁`. -/ +noncomputable def shellBoostDeriv (m η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + EuclideanSpace ℝ (Fin 3) →L[ℝ] EuclideanSpace ℝ (Fin 3) := + ContinuousLinearMap.id ℝ (EuclideanSpace ℝ (Fin 3)) + + (Real.sinh η • ((dispersion m p)⁻¹ • innerSL ℝ p) + + (Real.cosh η - 1) • innerSL ℝ e₁).smulRight e₁ + +/-- `shellBoost m η` has derivative `shellBoostDeriv m η 𝐩` at `𝐩` (for `m ≠ 0`). -/ +theorem hasFDerivAt_shellBoost {m : ℝ} (hm : m ≠ 0) (η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + HasFDerivAt (shellBoost m η) (shellBoostDeriv m η p) p := by + have h1 := (hasFDerivAt_dispersion hm p).const_mul (Real.sinh η) + have h2 := ((innerSL ℝ e₁).hasFDerivAt (x := p)).const_mul (Real.cosh η - 1) + exact (hasFDerivAt_id p).add ((h1.add h2).smul_const e₁) + +/-- The value at `𝐞₁` of the linear form in `shellBoostDeriv`. -/ +theorem shellBoostForm_apply_e₁ (m η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + (Real.sinh η • ((dispersion m p)⁻¹ • innerSL ℝ p) + (Real.cosh η - 1) • innerSL ℝ e₁) e₁ = + Real.sinh η * ((dispersion m p)⁻¹ * ⟪p, e₁⟫_ℝ) + (Real.cosh η - 1) := by + simp only [_root_.add_apply, _root_.smul_apply, innerSL_apply_apply, smul_eq_mul, + inner_e₁_self, mul_one] + +/-- The Jacobian of the boosted momentum: `det dS(𝐩) = ω_m(𝐩') / ω_m(𝐩)`. -/ +theorem det_shellBoostDeriv {m : ℝ} (hm : m ≠ 0) (η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + (shellBoostDeriv m η p).det = dispersion m (shellBoost m η p) / dispersion m p := by + have hω : dispersion m p ≠ 0 := (dispersion_pos hm p).ne' + have hinv : (dispersion m p)⁻¹ * dispersion m p = 1 := inv_mul_cancel₀ hω + rw [shellBoostDeriv, det_id_add_smulRight_e₁, shellBoostForm_apply_e₁, dispersion_shellBoost, + real_inner_comm e₁ p, eq_div_iff hω] + linear_combination (Real.sinh η * ⟪e₁, p⟫_ℝ) * hinv + +/-- Pointwise form of the invariance: `|det dS(𝐩)| / ω_m(S𝐩) = 1 / ω_m(𝐩)`. -/ +theorem abs_det_shellBoostDeriv_smul {m : ℝ} (hm : m ≠ 0) (η : ℝ) + (p : EuclideanSpace ℝ (Fin 3)) (z : ℂ) : + |(shellBoostDeriv m η p).det| • + (z * ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m (shellBoost m η p)) : ℝ) : ℂ)) = + z * ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) := by + have h1 := dispersion_pos hm (shellBoost m η p) + have h2 := dispersion_pos hm p + have hK : 0 < 2 * (2 * Real.pi) ^ 3 := by positivity + have hw : |(shellBoostDeriv m η p).det| * + (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m (shellBoost m η p))) = + 1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) := by + rw [det_shellBoostDeriv hm η p, abs_of_pos (div_pos h1 h2), mul_one_div, div_div, + div_eq_div_iff (mul_pos h2 (mul_pos hK h1)).ne' (mul_pos hK h2).ne'] + ring + rw [Complex.real_smul, ← hw, Complex.ofReal_mul] + ring + +/-- **Invariance of the shell measure** `d³p / (2(2π)³ ω_m(𝐩))` under the boosts of the mass +shell: for `m ≠ 0`, every rapidity `η` and every `g`, +`∫ g(S_η 𝐩) d³p / (2(2π)³ω_m(𝐩)) = ∫ g(𝐩) d³p / (2(2π)³ω_m(𝐩))` (no integrability hypothesis: +both sides are change-of-variables images of each other). -/ +theorem integral_shellBoost_mul_weight {m : ℝ} (hm : m ≠ 0) (η : ℝ) + (g : EuclideanSpace ℝ (Fin 3) → ℂ) : + ∫ p, g (shellBoost m η p) * ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) = + ∫ p, g p * ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) := by + have hderiv : ∀ p ∈ (Set.univ : Set (EuclideanSpace ℝ (Fin 3))), + HasFDerivWithinAt (shellBoost m η) (shellBoostDeriv m η p) Set.univ p := + fun p _ => (hasFDerivAt_shellBoost hm η p).hasFDerivWithinAt + have hcov : ∫ q, g q * ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q) : ℝ) : ℂ) = + ∫ p, |(shellBoostDeriv m η p).det| • (g (shellBoost m η p) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m (shellBoost m η p)) : ℝ) : ℂ)) := by + have h := integral_image_eq_integral_abs_det_fderiv_smul volume MeasurableSet.univ hderiv + (shellBoost_injective m η).injOn + (fun q => g q * ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q) : ℝ) : ℂ)) + rw [Set.image_univ, (shellBoost_surjective m η).range_eq, Measure.restrict_univ] at h + exact h + rw [hcov] + refine integral_congr_ae (Filter.Eventually.of_forall fun p => ?_) + exact (abs_det_shellBoostDeriv_smul hm η p (g (shellBoost m η p))).symm + +/-! ### Covariance of the one-particle wave functions -/ + +/-- The composition `F ∘ Λ` of a real test function with a continuous linear automorphism `Λ` +of spacetime, again a real test function. -/ +noncomputable def RealTestFunction.compCLE (Λ : Spacetime ≃L[ℝ] Spacetime) + (F : RealTestFunction) : RealTestFunction := + ⟨F.1 ∘ Λ, F.2.1.comp Λ.contDiff, F.2.2.comp_homeomorph Λ.toHomeomorph⟩ + +/-- `(F ∘ Λ)(x) = F(Λ x)`. -/ +theorem RealTestFunction.compCLE_apply (Λ : Spacetime ≃L[ℝ] Spacetime) (F : RealTestFunction) + (x : Spacetime) : (F.compCLE Λ).1 x = F.1 (Λ x) := + rfl + +/-- `(F + G) ∘ Λ = F ∘ Λ + G ∘ Λ`. -/ +theorem RealTestFunction.compCLE_add (Λ : Spacetime ≃L[ℝ] Spacetime) (F G : RealTestFunction) : + (F + G).compCLE Λ = F.compCLE Λ + G.compCLE Λ := + Subtype.ext (funext fun _ => rfl) + +/-- `(F ∘ Λ⁻¹) ∘ Λ = F`. -/ +theorem RealTestFunction.compCLE_symm_compCLE (Λ : Spacetime ≃L[ℝ] Spacetime) + (F : RealTestFunction) : (F.compCLE Λ.symm).compCLE Λ = F := + Subtype.ext (funext fun x => congrArg F.1 (Λ.symm_apply_apply x)) + +/-- `(F ∘ Λ) ∘ Λ⁻¹ = F`. -/ +theorem RealTestFunction.compCLE_compCLE_symm (Λ : Spacetime ≃L[ℝ] Spacetime) + (F : RealTestFunction) : (F.compCLE Λ).compCLE Λ.symm = F := + Subtype.ext (funext fun x => congrArg F.1 (Λ.apply_symm_apply x)) + +/-- `tsupport (F ∘ Λ) = Λ⁻¹ (tsupport F)`. -/ +theorem RealTestFunction.tsupport_compCLE (Λ : Spacetime ≃L[ℝ] Spacetime) + (F : RealTestFunction) : tsupport (F.compCLE Λ).1 = Λ ⁻¹' tsupport F.1 := + tsupport_comp_eq_preimage F.1 Λ.toHomeomorph + +/-- Covariance of `κ_m` under a volume-preserving automorphism `Λ` of spacetime: if the plane +waves satisfy `ω_m(𝐩) x⁰ - ⟪𝐩, 𝐱⟫ = ω_m(𝐪) y⁰ - ⟪𝐪, 𝐲⟫` with `y = Λ x`, for all `x`, then +`κ_m(F ∘ Λ)(𝐩) = κ_m F(𝐪)` (substitution `y = Λ x` in `d⁴x`). -/ +theorem oneParticle_compCLE {m : ℝ} (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : MeasurePreserving Λ (volume : Measure Spacetime) volume) + {p q : EuclideanSpace ℝ (Fin 3)} + (hphase : ∀ x : Spacetime, dispersion m p * x.1 - ⟪p, x.2⟫_ℝ = + dispersion m q * (Λ x).1 - ⟪q, (Λ x).2⟫_ℝ) + (F : RealTestFunction) : + oneParticle m (F.compCLE Λ) p = oneParticle m F q := by + have hpt : ∀ x : Spacetime, oneParticleIntegrand m (F.compCLE Λ) p x = + oneParticleIntegrand m F q (Λ x) := by + intro x + change Complex.exp (Complex.I * ((dispersion m p * x.1 - ⟪p, x.2⟫_ℝ : ℝ) : ℂ)) * + ((F.1 (Λ x) : ℝ) : ℂ) = + Complex.exp (Complex.I * ((dispersion m q * (Λ x).1 - ⟪q, (Λ x).2⟫_ℝ : ℝ) : ℂ)) * + ((F.1 (Λ x) : ℝ) : ℂ) + rw [hphase x] + calc oneParticle m (F.compCLE Λ) p + = ∫ x : Spacetime, oneParticleIntegrand m F q (Λ x) := by + rw [oneParticle_eq_integral] + exact integral_congr_ae (Filter.Eventually.of_forall hpt) + _ = ∫ y : Spacetime, oneParticleIntegrand m F q y := + hΛ.integral_comp Λ.toHomeomorph.measurableEmbedding (oneParticleIntegrand m F q) + _ = oneParticle m F q := (oneParticle_eq_integral m F q).symm + +/-- **Covariance of `κ_m` under boosts**: `κ_m(F ∘ Λ(η))(𝐩) = κ_m F(S_η 𝐩)`, where +`(ω_m(S_η 𝐩), S_η 𝐩) = Λ(η)(ω_m(𝐩), 𝐩)`. (By the Minkowski invariance +`⟨k, Λ⁻¹y⟩ = ⟨Λk, y⟩` and `d⁴(Λ x) = d⁴x`.) -/ +theorem oneParticle_boost (m η : ℝ) (F : RealTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (F.compCLE (boost η)) p = oneParticle m F (shellBoost m η p) := by + refine oneParticle_compCLE (boost η) (measurePreserving_boost η) (fun x => ?_) F + have h := minkowskiForm_boost η (onShell m p) x + rw [boost_onShell] at h + exact h.symm + +/-! ### Lorentz invariance of the one-particle inner product -/ + +/-- **Lorentz invariance of the one-particle inner product**: for `m ≠ 0`, +`⟨κ_m(F ∘ Λ(η)), κ_m(G ∘ Λ(η))⟩ = ⟨κ_m F, κ_m G⟩`. -/ +theorem oneParticleInner_boost {m : ℝ} (hm : m ≠ 0) (η : ℝ) (F G : RealTestFunction) : + oneParticleInner m (F.compCLE (boost η)) (G.compCLE (boost η)) = + oneParticleInner m F G := by + unfold oneParticleInner + simp only [oneParticle_boost] + exact integral_shellBoost_mul_weight hm η + (fun q => conj (oneParticle m F q) * oneParticle m G q) + +/-! ### Spatial rotations -/ + +/-- The spatial rotation `(t, 𝐱) ↦ (t, R𝐱)` by a linear isometry `R` of `ℝ³`. -/ +noncomputable def spatialRotation + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) : + Spacetime ≃L[ℝ] Spacetime := + (ContinuousLinearEquiv.refl ℝ ℝ).prodCongr R.toContinuousLinearEquiv + +/-- The rotation in coordinates. -/ +theorem spatialRotation_apply (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) + (x : Spacetime) : spatialRotation R x = (x.1, R x.2) := + rfl + +/-- Spatial rotations preserve Lebesgue measure on spacetime. -/ +theorem measurePreserving_spatialRotation + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) : + MeasurePreserving (spatialRotation R) (volume : Measure Spacetime) volume := by + have h := (MeasurePreserving.id (volume : Measure ℝ)).prod R.measurePreserving + exact h + +/-- `ω_m(R𝐩) = ω_m(𝐩)`. -/ +theorem dispersion_linearIsometryEquiv (m : ℝ) + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) + (p : EuclideanSpace ℝ (Fin 3)) : dispersion m (R p) = dispersion m p := by + change Real.sqrt (m ^ 2 + ‖R p‖ ^ 2) = Real.sqrt (m ^ 2 + ‖p‖ ^ 2) + rw [LinearIsometryEquiv.norm_map] + +/-- Covariance of `κ_m` under rotations: `κ_m(F ∘ R)(𝐩) = κ_m F(R𝐩)`. -/ +theorem oneParticle_spatialRotation (m : ℝ) + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) (F : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (F.compCLE (spatialRotation R)) p = oneParticle m F (R p) := by + refine oneParticle_compCLE (spatialRotation R) (measurePreserving_spatialRotation R) + (fun x => ?_) F + change dispersion m p * x.1 - ⟪p, x.2⟫_ℝ = dispersion m (R p) * x.1 - ⟪R p, R x.2⟫_ℝ + rw [dispersion_linearIsometryEquiv, LinearIsometryEquiv.inner_map_map] + +/-- Rotation invariance of the one-particle inner product (for every `m`): +`⟨κ_m(F ∘ R), κ_m(G ∘ R)⟩ = ⟨κ_m F, κ_m G⟩`. -/ +theorem oneParticleInner_spatialRotation (m : ℝ) + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) (F G : RealTestFunction) : + oneParticleInner m (F.compCLE (spatialRotation R)) (G.compCLE (spatialRotation R)) = + oneParticleInner m F G := by + unfold oneParticleInner + simp only [oneParticle_spatialRotation] + have h := R.measurePreserving.integral_comp R.toHomeomorph.measurableEmbedding + (fun q => conj (oneParticle m F q) * oneParticle m G q * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q) : ℝ) : ℂ)) + simp only [dispersion_linearIsometryEquiv] at h + exact h + +/-! ### The transported vacuum system and its local algebras -/ + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The vacuum system transported by a spacetime automorphism `Λ` that leaves the one-particle +inner product invariant: `W'(F) = W(F ∘ Λ)`, same vacuum. -/ +noncomputable def FreeFieldVacuum.lorentz {m : ℝ} (V : FreeFieldVacuum m H) + (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ F G : RealTestFunction, + oneParticleInner m (F.compCLE Λ) (G.compCLE Λ) = oneParticleInner m F G) : + FreeFieldVacuum m H where + weyl F := V.weyl (F.compCLE Λ) + vacuum := V.vacuum + weyl_mem_unitary F := V.weyl_mem_unitary (F.compCLE Λ) + weyl_mul F G := by + show V.weyl (F.compCLE Λ) * V.weyl (G.compCLE Λ) = + Complex.exp (-(Complex.I * ((oneParticleInner m F G).im : ℂ))) • + V.weyl ((F + G).compCLE Λ) + rw [RealTestFunction.compCLE_add, ← hΛ F G] + exact V.weyl_mul (F.compCLE Λ) (G.compCLE Λ) + vacuum_norm := V.vacuum_norm + vacuum_weyl F := by + change ⟪V.vacuum, V.weyl (F.compCLE Λ) V.vacuum⟫_ℂ = + ((Real.exp (-((oneParticleInner m F F).re / 2)) : ℝ) : ℂ) + rw [← hΛ F F] + exact V.vacuum_weyl (F.compCLE Λ) + cyclic := by + have hrange : (Set.range fun F : RealTestFunction => V.weyl (F.compCLE Λ) V.vacuum) = + Set.range fun F : RealTestFunction => V.weyl F V.vacuum := by + ext x + constructor + · rintro ⟨F, rfl⟩ + exact ⟨F.compCLE Λ, rfl⟩ + · rintro ⟨F, rfl⟩ + exact ⟨F.compCLE Λ.symm, congrArg (fun K => V.weyl K V.vacuum) + (RealTestFunction.compCLE_symm_compCLE Λ F)⟩ + change (Submodule.span ℂ + (Set.range fun F : RealTestFunction => V.weyl (F.compCLE Λ) V.vacuum)).topologicalClosure = ⊤ + rw [hrange] + exact V.cyclic + +/-- The transported system has the Weyl operators `W'(F) = W(F ∘ Λ)`. -/ +theorem FreeFieldVacuum.lorentz_weyl {m : ℝ} (V : FreeFieldVacuum m H) + (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ F G : RealTestFunction, + oneParticleInner m (F.compCLE Λ) (G.compCLE Λ) = oneParticleInner m F G) + (F : RealTestFunction) : (V.lorentz Λ hΛ).weyl F = V.weyl (F.compCLE Λ) := + rfl + +/-- The transported system has the same vacuum vector. -/ +theorem FreeFieldVacuum.lorentz_vacuum {m : ℝ} (V : FreeFieldVacuum m H) + (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ F G : RealTestFunction, + oneParticleInner m (F.compCLE Λ) (G.compCLE Λ) = oneParticleInner m F G) : + (V.lorentz Λ hΛ).vacuum = V.vacuum := + rfl + +/-- The local algebras of the transported system: `𝔄'(O) = 𝔄(Λ⁻¹ O)`. -/ +theorem FreeFieldVacuum.localAlgebra_lorentz {m : ℝ} (V : FreeFieldVacuum m H) + (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ F G : RealTestFunction, + oneParticleInner m (F.compCLE Λ) (G.compCLE Λ) = oneParticleInner m F G) + (O : Set Spacetime) : + localAlgebra (V.lorentz Λ hΛ) O = localAlgebra V (Λ ⁻¹' O) := by + unfold localAlgebra + congr 1 + ext T + constructor + · rintro ⟨F, hF, rfl⟩ + refine ⟨F.compCLE Λ, ?_, rfl⟩ + rw [RealTestFunction.tsupport_compCLE] + exact Set.preimage_mono hF + · rintro ⟨G, hG, rfl⟩ + refine ⟨G.compCLE Λ.symm, ?_, ?_⟩ + · intro x hx + rw [RealTestFunction.tsupport_compCLE] at hx + have hx' : Λ.symm x ∈ tsupport G.1 := hx + have h := hG hx' + rwa [Set.mem_preimage, ContinuousLinearEquiv.apply_symm_apply] at h + · change V.weyl G = V.weyl ((G.compCLE Λ.symm).compCLE Λ) + rw [RealTestFunction.compCLE_symm_compCLE] + +/-- The boosted vacuum system (for `m ≠ 0`): `W'(F) = W(F ∘ Λ(η))`, same vacuum. -/ +noncomputable def FreeFieldVacuum.boosted {m : ℝ} (V : FreeFieldVacuum m H) (hm : m ≠ 0) + (η : ℝ) : FreeFieldVacuum m H := + V.lorentz (boost η) (oneParticleInner_boost hm η) + +/-- The local algebras of the boosted system: `𝔄'(O) = 𝔄(Λ(η)⁻¹ O) = 𝔄(Λ(-η) O)`. -/ +theorem FreeFieldVacuum.localAlgebra_boosted {m : ℝ} (V : FreeFieldVacuum m H) (hm : m ≠ 0) + (η : ℝ) (O : Set Spacetime) : + localAlgebra (V.boosted hm η) O = localAlgebra V (boost (-η) '' O) := by + rw [← boost_symm, ContinuousLinearEquiv.image_symm_eq_preimage] + exact V.localAlgebra_lorentz (boost η) (oneParticleInner_boost hm η) O + +/-- The rotated vacuum system: `W'(F) = W(F ∘ R)`, same vacuum. -/ +noncomputable def FreeFieldVacuum.rotated {m : ℝ} (V : FreeFieldVacuum m H) + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) : FreeFieldVacuum m H := + V.lorentz (spatialRotation R) (oneParticleInner_spatialRotation m R) + +/-- The local algebras of the rotated system: `𝔄'(O) = 𝔄(R⁻¹ O)`. -/ +theorem FreeFieldVacuum.localAlgebra_rotated {m : ℝ} (V : FreeFieldVacuum m H) + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) (O : Set Spacetime) : + localAlgebra (V.rotated R) O = localAlgebra V (spatialRotation R ⁻¹' O) := + V.localAlgebra_lorentz (spatialRotation R) (oneParticleInner_spatialRotation m R) O + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LorentzContainingWedge.lean b/LeanPool/VacuumBellSeparation/FreeField/LorentzContainingWedge.lean new file mode 100644 index 0000000000..3e1a8ff600 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LorentzContainingWedge.lean @@ -0,0 +1,110 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceRangeIsometry +public import LeanPool.VacuumBellSeparation.FreeField.LorentzWedgeContour +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceBall + +/-! +# Containing Lorentz wedges for the original completed ball sources + +The range inclusion is proved from the actual ball time-slice theorem and +closedness of the completed wedge source range. Consequently the full +unitarily transported maximal power acts on every original completed +complex source, with the original source-weight bound. For compact real +test pairs this bounds the literal damped complex-shell integral. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +variable {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (hfuture : IsOrthochronousMap Λ) + +theorem oneParticleLorentz_symm_oneParticleL2 (F : RealTestFunction) : + (oneParticleLorentz hm Λ hΛ hfuture).symm (oneParticleL2 hm F) = + oneParticleL2 hm (F.compCLE Λ) := by + apply (oneParticleLorentz hm Λ hΛ hfuture).injective + rw [LinearIsometryEquiv.apply_symm_apply, oneParticleLorentz_oneParticleL2, + RealTestFunction.compCLE_compCLE_symm] + +variable {U : Set (EuclideanSpace ℝ (Fin 3))} {R : ℝ} + (hR : 0 < R) (hU : U ⊆ Metric.ball 0 R) + (hregion : doubleCone (0, (0 : EuclideanSpace ℝ (Fin 3))) R ⊆ Λ '' leftWedge ℓ) + +include hR hU hregion in +theorem sourceEmbedding_mem_lorentzWedge (z : SourceHilbert hm U) : + (oneParticleLorentz hm Λ hΛ hfuture).symm (sourceEmbedding hm U z) ∈ + sourceRealSpace hm (leftWedgeTimeZero ℓ) := by + refine UniformSpace.Completion.induction_on z + ((sourceRealSpace hm (leftWedgeTimeZero ℓ)).isClosed.preimage + ((oneParticleLorentz hm Λ hΛ hfuture).symm.continuous.comp + (sourceEmbedding hm U).continuous)) ?_ + intro u + rw [sourceEmbedding_coe] + obtain ⟨F, hF, heq⟩ := exists_spacetimeSourceL2_of_timeZeroSource_ball hm hR 0 u.1 + (u.2.1.trans hU) (u.2.2.trans hU) + rw [← heq, oneParticleLorentz_symm_oneParticleL2] + exact oneParticleL2_mem_sourceRealSpace_leftWedge hm ℓ (F.compCLE Λ) + (tsupport_compLorentz_subset_wedge Λ ℓ F (hF.trans hregion)) + +include hR hU hregion in +/-- Full-domain containing-wedge estimate on every original completed source. -/ +theorem lorentzWedgeExponential_containing_ball + {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) (z : ComplexSourceHilbert hm U) : + ∃ χ : Lp ℂ 2 (oneParticleMeasure m), + (complexSourceMap hm U z, χ) ∈ + (unitaryPartialTransport (oneParticleLorentz hm Λ hΛ hfuture) + (shiftedWedgeExponential hm ℓ c)).graph ∧ + ‖χ‖ ≤ ‖sourceModularWeight hm U c z‖ := by + let T := oneParticleLorentz hm Λ hΛ hfuture + have hT : ∀ x : SourceHilbert hm U, T.symm (sourceEmbedding hm U x) ∈ + sourceRealSpace hm (leftWedgeTimeZero ℓ) := + sourceEmbedding_mem_lorentzWedge hm ℓ Λ hΛ hfuture hR hU hregion + let J := complexSourceRangeIsometry hm T.symm hT + let ψ := leftWedgeSourcePolarUnitary hm ℓ + (sourceModularWeight hm (leftWedgeTimeZero ℓ) c (J z)) + refine ⟨T ψ, ?_, ?_⟩ + · rw [unitaryPartialTransport_mem_graph, LinearIsometryEquiv.symm_apply_apply] + have hg := shiftedWedgeExponential_source_graph hm ℓ hc.le hc2 (J z) + have he := complexSourceMap_rangeIsometry hm T.symm hT z + change complexSourceMap hm (leftWedgeTimeZero ℓ) (J z) = T.symm (complexSourceMap hm U z) at he + simpa only [he] using hg + · change ‖T (leftWedgeSourcePolarUnitary hm ℓ + (sourceModularWeight hm (leftWedgeTimeZero ℓ) c (J z)))‖ ≤ _ + rw [T.norm_map, LinearIsometryEquiv.norm_map] + exact sourceModularWeight_rangeIsometry_norm hm T.symm hT hc hc2 z + +include hΛ hfuture hR hU hregion in +/-- The exact Lorentz contour estimate, with no spacetime representative premise. -/ +theorem complexSourceWave_lorentzContour_le_sourceWeight + (u : SourceTestSpace hm U) {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) : + (∫ p, Real.exp (-2 * ℓ * dispersion m p * Real.sin (2 * Real.pi * c)) * + ‖complexSourceWave u.1 (complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p))‖ ^ 2 + ∂oneParticleMeasure m) ≤ + ‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U))‖ ^ 2 := by + obtain ⟨F, hF, heq⟩ := exists_spacetimeSourceL2_of_timeZeroSource_ball hm hR 0 u.1 + (u.2.1.trans hU) (u.2.2.trans hU) + obtain ⟨χ, hχ, hnorm⟩ := timeZero_lorentzWedge_contour_norm hm ℓ Λ hΛ hfuture + F u.1 heq (hF.trans hregion) hc.le hc2 + obtain ⟨ψ, hψ, hbound⟩ := lorentzWedgeExponential_containing_ball hm ℓ Λ hΛ hfuture + hR hU hregion hc hc2 (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U)) + rw [complexSourceMap_ofReal_test] at hψ + have he := (unitaryPartialTransport (oneParticleLorentz hm Λ hΛ hfuture) + (shiftedWedgeExponential hm ℓ c)).mem_graph_snd_inj hχ hψ rfl + rw [← hnorm, he] + nlinarith [norm_nonneg ψ, norm_nonneg (sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U)))] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LorentzDecomposition.lean b/LeanPool/VacuumBellSeparation/FreeField/LorentzDecomposition.lean new file mode 100644 index 0000000000..67cd6df790 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LorentzDecomposition.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LorentzMap +public import LeanPool.VacuumBellSeparation.FreeField.Corollary + +/-! +# Full orthochronous Lorentz decomposition in the original spacetime model + +Rotate the spatial part of Lambda e0 onto e1, then use its actual rapidity +to remove the boost. The remaining literal automorphism fixes e0, hence +is a spatial isometry. This proves the decomposition for every future- +oriented Minkowski isometry, including the proper transformations needed +by the manuscript. No connectedness or manifold result is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +theorem lorentz_timeAxis_time_ge_one {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) : 1 ≤ (Λ (1, 0)).1 := by + have hs := lorentz_timeAxis_square hΛ + have hp : 0 < (Λ (1, 0)).1 := hfuture + nlinarith [sq_nonneg ‖(Λ (1, 0)).2‖] + +/-- Every actual future-oriented Lorentz map is a spatial isometry, an +e1 boost, and another spatial isometry, in the stated composition order. -/ +theorem lorentzMap_rotation_boost_rotation (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) : + ∃ (R S : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) (η : ℝ), + Λ = ((spatialRotation R).trans (boost η)).trans (spatialRotation S) := by + let v := (Λ (1, 0)).2 + let t := (Λ (1, 0)).1 + obtain ⟨R, hR⟩ := exists_linearIsometryEquiv_apply_eq_norm_smul_e₁ v + let η := Real.arsinh ‖v‖ + have hc : Real.cosh η = t := by + have hs := lorentz_timeAxis_square hΛ + have hp : 0 < t := hfuture + have he : 1 + ‖v‖ ^ 2 = t ^ 2 := by dsimp [v, t]; linarith + dsimp only [η] + rw [Real.cosh_arsinh, he, Real.sqrt_sq hp.le] + have hs : Real.sinh η = ‖v‖ := Real.sinh_arsinh _ + let B := (boost η).trans (spatialRotation R.symm) + have hB : IsLorentzMap B := (isLorentzMap_boost η).trans (isLorentzMap_spatialRotation R.symm) + have hBe : B (1, 0) = Λ (1, 0) := by + have hv : R.symm (‖v‖ • e₁) = v := by rw [← hR, LinearIsometryEquiv.symm_apply_apply] + apply Prod.ext + · change (boost η (1, 0)).1 = t + simp only [boost_apply, boostCLM_apply, mul_one, inner_zero_right, mul_zero, add_zero, hc] + · change R.symm ((boost η (1, 0)).2) = v + simpa only [boost_apply, boostCLM_apply, mul_one, inner_zero_right, mul_zero, + add_zero, zero_add, hs] using hv + let Q := Λ.trans B.symm + have hQ : IsLorentzMap Q := hΛ.trans hB.symm + have hQe : Q (1, 0) = (1, 0) := by + change B.symm (Λ (1, 0)) = (1, 0) + rw [← hBe, ContinuousLinearEquiv.symm_apply_apply] + let S := lorentzFixedTimeRotation Q hQ hQe + have hQs : Q = spatialRotation S := lorentzFixedTimeRotation_factorization Q hQ hQe + refine ⟨S, R.symm, η, ?_⟩ + apply ContinuousLinearEquiv.ext + funext x + calc + Λ x = B (Q x) := by simp only [Q, ContinuousLinearEquiv.trans_apply, + ContinuousLinearEquiv.apply_symm_apply] + _ = B (spatialRotation S x) := by rw [hQs] + _ = (((spatialRotation S).trans (boost η)).trans (spatialRotation R.symm)) x := rfl + +/-- Covariance of the original one-particle pairing for every actual +orthochronous Lorentz map, derived from the literal boost/rotation proofs. -/ +theorem oneParticleInner_lorentzMap {m : ℝ} (hm : m ≠ 0) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (hfuture : IsOrthochronousMap Λ) (F G : RealTestFunction) : + oneParticleInner m (F.compCLE Λ) (G.compCLE Λ) = oneParticleInner m F G := by + obtain ⟨R, S, η, rfl⟩ := lorentzMap_rotation_boost_rotation Λ hΛ hfuture + exact oneParticleInner_compCLE_trans + (oneParticleInner_compCLE_trans (oneParticleInner_spatialRotation m R) + (oneParticleInner_boost hm η)) (oneParticleInner_spatialRotation m S) F G + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LorentzEuclideanBound.lean b/LeanPool/VacuumBellSeparation/FreeField/LorentzEuclideanBound.lean new file mode 100644 index 0000000000..86477a43c6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LorentzEuclideanBound.lean @@ -0,0 +1,90 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.EuclideanWedgeContainment +public import LeanPool.VacuumBellSeparation.FreeField.LorentzMap +public import Mathlib.Analysis.InnerProductSpace.ProdL2 + +/-! +# Quantitative genuine Euclidean bounds for Lorentz maps + +The time row is the Minkowski pairing with the inverse time axis. +Euclidean Cauchy--Schwarz and preservation of the Minkowski square give +the operator-norm bound 2 gamma for both a future Lorentz map and its +inverse. This avoids assuming a singular-value formula. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +theorem spacetimeEuclideanNorm_sq (x : Spacetime) : + spacetimeEuclideanNorm x ^ 2 = x.1 ^ 2 + ‖x.2‖ ^ 2 := + Real.sq_sqrt (add_nonneg (sq_nonneg _) (sq_nonneg _)) + +theorem minkowskiForm_sq_le_euclidean (x y : Spacetime) : + minkowskiForm x y ^ 2 ≤ spacetimeEuclideanNorm x ^ 2 * spacetimeEuclideanNorm y ^ 2 := by + have h := real_inner_mul_inner_self_le + (WithLp.toLp 2 (x.1, -x.2) : EuclideanSpacetime) (WithLp.toLp 2 y) + rw [spacetimeEuclideanNorm_sq, spacetimeEuclideanNorm_sq] + simpa only [WithLp.prod_inner_apply, WithLp.ofLp_toLp, RCLike.inner_apply', star_trivial, + map_neg, starRingEnd_apply, star_trivial, + inner_neg_left, inner_neg_right, real_inner_self_eq_norm_sq, neg_neg, sub_neg_eq_add, ← pow_two, + ← sub_eq_add_neg, minkowskiForm] using h + +theorem lorentz_timeComponent_eq_form {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (x : Spacetime) : + (Λ x).1 = minkowskiForm (Λ.symm (1, 0)) x := by + have h := hΛ (Λ.symm (1, 0)) x + simpa only [ContinuousLinearEquiv.apply_symm_apply, minkowskiForm, + one_mul, inner_zero_left, sub_zero] using h + +theorem lorentz_inverse_timeAxis_euclidean_sq {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) : + spacetimeEuclideanNorm (Λ.symm (1, 0)) ^ 2 = 2 * (Λ (1, 0)).1 ^ 2 - 1 := by + have h := lorentz_timeAxis_square hΛ.symm + rw [lorentz_timeAxis_inverse_time hΛ] at h + rw [spacetimeEuclideanNorm_sq, lorentz_timeAxis_inverse_time hΛ] + linarith + +theorem spacetimeEuclideanNorm_lorentz_le {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) (x : Spacetime) : + spacetimeEuclideanNorm (Λ x) ≤ 2 * (Λ (1, 0)).1 * spacetimeEuclideanNorm x := by + have hc := minkowskiForm_sq_le_euclidean (Λ.symm (1, 0)) x + rw [← lorentz_timeComponent_eq_form hΛ x, lorentz_inverse_timeAxis_euclidean_sq hΛ] at hc + have hform := hΛ x x + simp only [minkowskiForm, real_inner_self_eq_norm_sq, ← pow_two] at hform + have hx := spacetimeEuclideanNorm_sq x + have hy := spacetimeEuclideanNorm_sq (Λ x) + have hs : spacetimeEuclideanNorm (Λ x) ^ 2 ≤ + (2 * (Λ (1, 0)).1 * spacetimeEuclideanNorm x) ^ 2 := by + nlinarith [sq_nonneg x.1] + have hn : 0 ≤ 2 * (Λ (1, 0)).1 * spacetimeEuclideanNorm x := + mul_nonneg (mul_nonneg (by norm_num) hfuture.le) (spacetimeEuclideanNorm_nonneg x) + nlinarith [spacetimeEuclideanNorm_nonneg (Λ x)] + +theorem spacetimeEuclideanOperatorNorm_lorentz_le {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) : + spacetimeEuclideanOperatorNorm Λ ≤ 2 * (Λ (1, 0)).1 := by + apply ContinuousLinearMap.opNorm_le_bound _ (mul_nonneg (by norm_num) hfuture.le) + intro y + have h := spacetimeEuclideanNorm_lorentz_le hΛ hfuture (spacetimeEuclideanEquiv.symm y) + rw [← norm_spacetimeEuclideanEquiv, ← norm_spacetimeEuclideanEquiv, + ContinuousLinearEquiv.apply_symm_apply] at h + exact h + +theorem spacetimeEuclideanOperatorNorm_lorentz_inverse_le + {Λ : Spacetime ≃L[ℝ] Spacetime} (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) : + spacetimeEuclideanOperatorNorm Λ.symm ≤ 2 * (Λ (1, 0)).1 := by + have h := spacetimeEuclideanOperatorNorm_lorentz_le hΛ.symm + (IsOrthochronousMap.symm hΛ hfuture) + rwa [lorentz_timeAxis_inverse_time hΛ] at h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LorentzMap.lean b/LeanPool/VacuumBellSeparation/FreeField/LorentzMap.lean new file mode 100644 index 0000000000..664ad09391 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LorentzMap.lean @@ -0,0 +1,143 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Lorentz + +/-! +# Literal Minkowski-preserving spacetime automorphisms + +The form and spacetime carrier are those of the original physical model. +The defining condition is preservation of that bilinear form; positive +time-axis orientation and determinant one are separate explicit predicates. +An automorphism fixing the time axis is proved to be a spatial isometry. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +/-- Predicate for Lorentz map. -/ +def IsLorentzMap (Λ : Spacetime ≃L[ℝ] Spacetime) : Prop := + ∀ x y, minkowskiForm (Λ x) (Λ y) = minkowskiForm x y + +/-- Condition that a spacetime map preserves the future time direction. -/ +def IsOrthochronousMap (Λ : Spacetime ≃L[ℝ] Spacetime) : Prop := + 0 < (Λ (1, 0)).1 + +/-- Predicate for proper Lorentz map defined as `IsLorentzMap Λ ∧ LinearMap.det +Λ.toLinearEquiv.toLinearMap = 1`. -/ +def IsProperLorentzMap (Λ : Spacetime ≃L[ℝ] Spacetime) : Prop := + IsLorentzMap Λ ∧ LinearMap.det Λ.toLinearEquiv.toLinearMap = 1 + +theorem IsLorentzMap.symm {Λ : Spacetime ≃L[ℝ] Spacetime} (hΛ : IsLorentzMap Λ) : + IsLorentzMap Λ.symm := by + intro x y + simpa only [ContinuousLinearEquiv.apply_symm_apply] using + (hΛ (Λ.symm x) (Λ.symm y)).symm + +theorem IsLorentzMap.trans {Λ Γ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (hΓ : IsLorentzMap Γ) : IsLorentzMap (Λ.trans Γ) := by + intro x y + exact (hΓ (Λ x) (Λ y)).trans (hΛ x y) + +theorem isLorentzMap_boost (η : ℝ) : IsLorentzMap (boost η) := + minkowskiForm_boost η + +theorem isLorentzMap_spatialRotation + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) : + IsLorentzMap (spatialRotation R) := by + intro x y + simp only [minkowskiForm, spatialRotation_apply, LinearIsometryEquiv.inner_map_map] + +theorem lorentz_timeAxis_square {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) : (Λ (1, 0)).1 ^ 2 - ‖(Λ (1, 0)).2‖ ^ 2 = 1 := by + have h := hΛ (1, 0) (1, 0) + simpa only [minkowskiForm, real_inner_self_eq_norm_sq, one_mul, inner_zero_left, + sub_zero, ← pow_two, one_pow] using h + +theorem lorentz_timeAxis_inverse_time {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) : (Λ.symm (1, 0)).1 = (Λ (1, 0)).1 := by + have h := hΛ (Λ.symm (1, 0)) (1, 0) + simpa only [ContinuousLinearEquiv.apply_symm_apply, minkowskiForm, + one_mul, mul_one, inner_zero_left, inner_zero_right, sub_zero] using h.symm + +theorem IsOrthochronousMap.symm {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) : IsOrthochronousMap Λ.symm := by + change 0 < (Λ.symm (1, 0)).1 + rw [lorentz_timeAxis_inverse_time hΛ] + exact hfuture + +theorem lorentz_fixed_timeAxis_spatial_time_zero {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (he : Λ (1, 0) = (1, 0)) + (x : EuclideanSpace ℝ (Fin 3)) : (Λ (0, x)).1 = 0 := by + have h := hΛ (0, x) (1, 0) + rw [he] at h + simpa only [minkowskiForm, mul_one, zero_mul, inner_zero_right, sub_zero] using h + +theorem lorentz_fixed_timeAxis_spatial_norm {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (he : Λ (1, 0) = (1, 0)) + (x : EuclideanSpace ℝ (Fin 3)) : ‖(Λ (0, x)).2‖ = ‖x‖ := by + have h := hΛ (0, x) (0, x) + simp only [minkowskiForm, lorentz_fixed_timeAxis_spatial_time_zero hΛ he, + zero_mul, real_inner_self_eq_norm_sq, zero_sub] at h + nlinarith [norm_nonneg ((Λ (0, x)).2), norm_nonneg x] + +/-- Linear isometry equivalence for the lorentz fixed time rotation, of type `EuclideanSpace ℝ (Fin +3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)`. -/ +noncomputable def lorentzFixedTimeRotation (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (he : Λ (1, 0) = (1, 0)) : + EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3) := by + have hes : Λ.symm (1, 0) = (1, 0) := by + calc Λ.symm (1, 0) = Λ.symm (Λ (1, 0)) := congrArg Λ.symm he.symm + _ = (1, 0) := Λ.symm_apply_apply _ + let A : EuclideanSpace ℝ (Fin 3) →ₗ[ℝ] EuclideanSpace ℝ (Fin 3) := + (LinearMap.snd ℝ ℝ (EuclideanSpace ℝ (Fin 3))).comp + (Λ.toLinearEquiv.toLinearMap.comp (LinearMap.inr ℝ ℝ (EuclideanSpace ℝ (Fin 3)))) + let B : EuclideanSpace ℝ (Fin 3) →ₗ[ℝ] EuclideanSpace ℝ (Fin 3) := + (LinearMap.snd ℝ ℝ (EuclideanSpace ℝ (Fin 3))).comp + (Λ.symm.toLinearEquiv.toLinearMap.comp (LinearMap.inr ℝ ℝ (EuclideanSpace ℝ (Fin 3)))) + have ha (x : EuclideanSpace ℝ (Fin 3)) : Λ (0, x) = (0, A x) := by + apply Prod.ext + · exact lorentz_fixed_timeAxis_spatial_time_zero hΛ he x + · rfl + have hb (x : EuclideanSpace ℝ (Fin 3)) : Λ.symm (0, x) = (0, B x) := by + apply Prod.ext + · exact lorentz_fixed_timeAxis_spatial_time_zero hΛ.symm hes x + · rfl + exact + { toLinearEquiv := + { A with + invFun := B + left_inv := fun x => by + have h := congrArg (fun q : Spacetime => q.2) (Λ.symm_apply_apply (0, x)) + rw [ha, hb] at h + exact h + right_inv := fun x => by + have h := congrArg (fun q : Spacetime => q.2) (Λ.apply_symm_apply (0, x)) + rw [hb, ha] at h + exact h } + norm_map' := lorentz_fixed_timeAxis_spatial_norm hΛ he } + +theorem lorentzFixedTimeRotation_factorization (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (he : Λ (1, 0) = (1, 0)) : + Λ = spatialRotation (lorentzFixedTimeRotation Λ hΛ he) := by + apply ContinuousLinearEquiv.ext + funext x + have hx : x = x.1 • ((1, 0) : Spacetime) + (0, x.2) := by ext <;> simp + have hs : Λ (0, x.2) = (0, lorentzFixedTimeRotation Λ hΛ he x.2) := + Prod.ext (lorentz_fixed_timeAxis_spatial_time_zero hΛ he x.2) rfl + calc + Λ x = Λ (x.1 • ((1, 0) : Spacetime) + (0, x.2)) := congrArg Λ hx + _ = x.1 • ((1, 0) : Spacetime) + (0, lorentzFixedTimeRotation Λ hΛ he x.2) := by + rw [map_add, map_smul, he, hs] + _ = spatialRotation (lorentzFixedTimeRotation Λ hΛ he) x := by + simp [spatialRotation_apply] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LorentzShellAction.lean b/LeanPool/VacuumBellSeparation/FreeField/LorentzShellAction.lean new file mode 100644 index 0000000000..423ec579d9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LorentzShellAction.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LorentzDecomposition +public import LeanPool.VacuumBellSeparation.FreeField.WedgeReflection + +/-! +# The actual positive-shell action of every orthochronous Lorentz map + +The action is literally the spatial part of Lambda(omega(p),p). The +decomposition theorem proves positive-shell preservation and invariance +of the original positive mass-shell measure, including infinite sets. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +/-- Lorentz shell map. -/ +noncomputable def lorentzShellMap (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (p : EuclideanSpace ℝ (Fin 3)) : EuclideanSpace ℝ (Fin 3) := + (Λ (onShell m p)).2 + +theorem spatialRotation_onShell (m : ℝ) + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) + (p : EuclideanSpace ℝ (Fin 3)) : + spatialRotation R (onShell m p) = onShell m (R p) := by + simp only [spatialRotation_apply, onShell, dispersion_linearIsometryEquiv] + +theorem lorentzMap_onShell (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) + (p : EuclideanSpace ℝ (Fin 3)) : + Λ (onShell m p) = onShell m (lorentzShellMap m Λ p) := by + obtain ⟨R, S, η, rfl⟩ := lorentzMap_rotation_boost_rotation Λ hΛ hfuture + simp only [lorentzShellMap, ContinuousLinearEquiv.trans_apply, + spatialRotation_onShell, boost_onShell] + rfl + +theorem lorentzShellMap_trans (m : ℝ) (Λ Γ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) + (p : EuclideanSpace ℝ (Fin 3)) : + lorentzShellMap m (Λ.trans Γ) p = lorentzShellMap m Γ (lorentzShellMap m Λ p) := by + exact congrArg (fun x : Spacetime => (Γ x).2) + (lorentzMap_onShell m Λ hΛ hfuture p) + +theorem lorentzShellMap_inverse (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) + (p : EuclideanSpace ℝ (Fin 3)) : + lorentzShellMap m Λ.symm (lorentzShellMap m Λ p) = p := by + change (Λ.symm (onShell m (lorentzShellMap m Λ p))).2 = p + rw [← lorentzMap_onShell m Λ hΛ hfuture, ContinuousLinearEquiv.symm_apply_apply] + rfl + +theorem continuous_lorentzShellMap (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) : + Continuous (lorentzShellMap m Λ) := + (continuous_snd.comp Λ.continuous).comp ((continuous_dispersion m).prodMk continuous_id) + +/-- Lorentz shell homeomorph. -/ +noncomputable def lorentzShellHomeomorph (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) : + EuclideanSpace ℝ (Fin 3) ≃ₜ EuclideanSpace ℝ (Fin 3) where + toFun := lorentzShellMap m Λ + invFun := lorentzShellMap m Λ.symm + left_inv := lorentzShellMap_inverse m Λ hΛ hfuture + right_inv := by + intro p + simpa only [ContinuousLinearEquiv.symm_symm] using + lorentzShellMap_inverse m Λ.symm hΛ.symm (IsOrthochronousMap.symm hΛ hfuture) p + continuous_toFun := continuous_lorentzShellMap m Λ + continuous_invFun := continuous_lorentzShellMap m Λ.symm + +theorem measurePreserving_lorentzShellMap {m : ℝ} (hm : 0 < m) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (hfuture : IsOrthochronousMap Λ) : + MeasurePreserving (lorentzShellMap m Λ) (oneParticleMeasure m) (oneParticleMeasure m) := by + obtain ⟨R, S, η, rfl⟩ := lorentzMap_rotation_boost_rotation Λ hΛ hfuture + have he : lorentzShellMap m (((spatialRotation R).trans (boost η)).trans (spatialRotation S)) = + (S : EuclideanSpace ℝ (Fin 3) → EuclideanSpace ℝ (Fin 3)) ∘ shellBoost m η ∘ R := by + funext p + simp only [lorentzShellMap, ContinuousLinearEquiv.trans_apply, + spatialRotation_onShell, boost_onShell, Function.comp_apply] + rfl + rw [he] + exact (measurePreserving_massShell_rotation hm S).comp + ((measurePreserving_shellBoost hm η).comp (measurePreserving_massShell_rotation hm R)) + +/-- The spacetime volume substitution for arbitrary future-oriented Lorentz maps. -/ +theorem measurePreserving_lorentzMap (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) : + MeasurePreserving Λ (volume : Measure Spacetime) volume := by + obtain ⟨R, S, η, rfl⟩ := lorentzMap_rotation_boost_rotation Λ hΛ hfuture + exact (measurePreserving_spatialRotation S).comp + ((measurePreserving_boost η).comp (measurePreserving_spatialRotation R)) + +theorem oneParticle_lorentzMap (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) + (F : RealTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (F.compCLE Λ) p = oneParticle m F (lorentzShellMap m Λ p) := by + apply oneParticle_compCLE Λ (measurePreserving_lorentzMap Λ hΛ hfuture) + intro x + have h := hΛ (onShell m p) x + rw [lorentzMap_onShell m Λ hΛ hfuture] at h + exact h.symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LorentzSourceWave.lean b/LeanPool/VacuumBellSeparation/FreeField/LorentzSourceWave.lean new file mode 100644 index 0000000000..256c223c6c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LorentzSourceWave.lean @@ -0,0 +1,78 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceCurve +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroRapidityWave +public import LeanPool.VacuumBellSeparation.FreeField.OneParticleLorentz + +/-! +# Actual Cauchy-data waves on Lorentz-transformed boost contours + +Physical L2 equality first gives pointwise equality of the continuous real +mass-shell waves. Real Lorentz covariance then identifies the real-rapidity +values, and the genuine entire-function identity theorem proves the full +complex contour identity. No pointwise evaluation of an L2 class is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace + +theorem complexShellBoost_ofReal (m η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + complexShellBoost m (η : ℂ) p = complexSpacetimeOfReal (onShell m (shellBoost m η p)) := by + apply Prod.ext + · exact complexShellBoost_energy_ofReal m η p + · ext i + fin_cases i <;> + simp only [complexShellBoost, ← Complex.ofReal_cosh, Fin.isValue, ← Complex.ofReal_sinh, + Fin.zero_eta, Fin.mk_one, Fin.reduceFinMk, Matrix.cons_val_zero, Matrix.cons_val_one, + Matrix.cons_val, complexSpacetimeOfReal, onShell, shellBoost, e₁, + EuclideanSpace.inner_single_left, conj_trivial, one_mul, LinearMap.coe_mk, AddHom.coe_mk, + PiLp.add_apply, PiLp.smul_apply, PiLp.single_apply, smul_eq_mul, mul_ite, mul_one, + mul_zero, Complex.ofReal_add, one_ne_zero, Fin.reduceEq, ↓reduceIte, Complex.ofReal_mul, + Complex.ofReal_sub, Complex.ofReal_one, Complex.ofReal_zero, add_zero]; push_cast; ring + +theorem complexified_lorentzBoost_ofReal (m η : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (hfuture : IsOrthochronousMap Λ) (p : EuclideanSpace ℝ (Fin 3)) : + complexifiedSpacetimeMap Λ (complexShellBoost m (η : ℂ) p) = + complexSpacetimeOfReal (onShell m (lorentzShellMap m Λ (shellBoost m η p))) := by + rw [complexShellBoost_ofReal, complexifiedSpacetimeMap_ofReal, + lorentzMap_onShell m Λ hΛ hfuture] + +theorem oneParticle_eq_timeZero_of_L2_eq {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (u : TimeZeroSource) (heq : oneParticleL2 hm F = timeZeroL2 hm u) : + oneParticle m F = timeZeroOneParticle m u := by + have hae : oneParticle m F =ᵐ[oneParticleMeasure m] timeZeroOneParticle m u := by + have hF := coeFn_oneParticleL2 hm F + rw [heq] at hF + exact hF.symm.trans (coeFn_timeZeroL2 hm u) + exact Measure.eq_of_ae_eq ((ae_oneParticleMeasure_iff hm).mp hae) + (continuous_oneParticle m F) (continuous_timeZeroOneParticle m u) + +/-- The Lorentz-transformed source-wave identity holds at every complex +rapidity, for the original literal Cauchy-data integral. -/ +theorem wedgeWave_compLorentz_eq_complexSourceWave {m : ℝ} (hm : 0 < m) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (hfuture : IsOrthochronousMap Λ) + (F : RealTestFunction) (u : TimeZeroSource) (heq : oneParticleL2 hm F = timeZeroL2 hm u) + (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + wedgeWave m (F.compCLE Λ) ζ p = + complexSourceWave u (complexifiedSpacetimeMap Λ (complexShellBoost m ζ p)) := by + have hreal := oneParticle_eq_timeZero_of_L2_eq hm F u heq + have hall := entire_eq_of_real_eq (analyticOnNhd_wedgeWave m (F.compCLE Λ) p) + (analyticOnNhd_complexSourceWave_lorentzBoost m Λ u p) (fun η => by + rw [wedgeWave_ofReal, oneParticle_lorentzMap m Λ hΛ hfuture, + complexified_lorentzBoost_ofReal m η Λ hΛ hfuture, hreal] + exact (complexSourceWave_onShell m u _).symm) + exact congrFun hall ζ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LorentzWedgeContour.lean b/LeanPool/VacuumBellSeparation/FreeField/LorentzWedgeContour.lean new file mode 100644 index 0000000000..da50823749 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LorentzWedgeContour.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeSpatialTranslation +public import LeanPool.VacuumBellSeparation.FreeField.LorentzSourceWave +public import LeanPool.VacuumBellSeparation.FreeField.ShiftedWedgeContour + +/-! +# Literal compact-source contours for shifted and Lorentz-transformed wedges + +Spatial translation first gives the exact damping for an original +spacetime test. Actual Lorentz unitarity and the entire-wave identity then +give the original Cauchy-data contour at Lambda b_phi(p). The operator here +is explicitly the unitary transport of the proved full shifted-wedge +power; the generic transformed spacetime graph identification is separate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +theorem wedgeWave_spatialTranslate_edge_norm_sq (m ℓ θ : ℝ) + (F : RealTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + ‖wedgeWave m (spacetimeSpatialTranslate (-(ℓ • e₁)) F) + ((θ : ℂ) * Complex.I) p‖ ^ 2 = + Real.exp (-2 * ℓ * dispersion m p * Real.sin θ) * + ‖wedgeWave m F ((θ : ℂ) * Complex.I) p‖ ^ 2 := by + rw [wedgeWave_spatialTranslate, norm_mul, mul_pow, norm_complexTranslation_edge, + pow_two, ← Real.exp_add] + congr 2 + ring + +theorem spacetime_shiftedWedge_contour_norm {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + (F : RealTestFunction) (hF : tsupport F.1 ⊆ leftWedge ℓ) + {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + ∃ χ : Lp ℂ 2 (oneParticleMeasure m), + (oneParticleL2 hm F, χ) ∈ (shiftedWedgeExponential hm ℓ c).graph ∧ + ‖χ‖ ^ 2 = ∫ p, Real.exp (-2 * ℓ * dispersion m p * Real.sin (2 * Real.pi * c)) * + ‖wedgeWave m F (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p‖ ^ 2 + ∂oneParticleMeasure m := by + let G := spacetimeSpatialTranslate (-(ℓ • e₁)) F + have hG := spacetimeSpatialTranslate_support_wedge_zero ℓ F hF + let ζ : ℂ := ((2 * Real.pi * c : ℝ) : ℂ) * Complex.I + have hζ := wedgeWave_angle_mem_strip hc hc2 + let ψ := wedgeWaveL2 hm G hG ζ hζ + refine ⟨oneParticleSpatialTranslation m (ℓ • e₁) ψ, ?_, ?_⟩ + · rw [shiftedWedgeExponential, unitaryPartialTransport_mem_graph, + LinearIsometryEquiv.symm_apply_apply, oneParticleSpatialTranslation_symm, + ← oneParticleL2_spatialTranslate] + exact wedgeWave_mem_physicalRapidityPower_graph hm G hG hc hc2 + · rw [LinearIsometryEquiv.norm_map, norm_L2_sq_eq_integral_norm_sq] + apply integral_congr_ae + filter_upwards [wedgeWaveL2_ae hm G hG ζ hζ] with p hp + exact (congrArg (fun z : ℂ => ‖z‖ ^ 2) hp).trans + (wedgeWave_spatialTranslate_edge_norm_sq m ℓ (2 * Real.pi * c) F p) + +theorem tsupport_compLorentz_subset_wedge (Λ : Spacetime ≃L[ℝ] Spacetime) + (ℓ : ℝ) (F : RealTestFunction) (hF : tsupport F.1 ⊆ Λ '' leftWedge ℓ) : + tsupport (F.compCLE Λ).1 ⊆ leftWedge ℓ := by + rw [RealTestFunction.tsupport_compCLE] + intro x hx + obtain ⟨y, hy, he⟩ := hF hx + exact (Λ.injective he) ▸ hy + +theorem timeZero_lorentzWedge_contour_norm {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (hfuture : IsOrthochronousMap Λ) + (F : RealTestFunction) (u : TimeZeroSource) (heq : oneParticleL2 hm F = timeZeroL2 hm u) + (hF : tsupport F.1 ⊆ Λ '' leftWedge ℓ) + {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + ∃ χ : Lp ℂ 2 (oneParticleMeasure m), + (timeZeroL2 hm u, χ) ∈ + (unitaryPartialTransport (oneParticleLorentz hm Λ hΛ hfuture) + (shiftedWedgeExponential hm ℓ c)).graph ∧ + ‖χ‖ ^ 2 = ∫ p, Real.exp (-2 * ℓ * dispersion m p * Real.sin (2 * Real.pi * c)) * + ‖complexSourceWave u (complexifiedSpacetimeMap Λ + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p))‖ ^ 2 + ∂oneParticleMeasure m := by + obtain ⟨ψ, hψ, hnorm⟩ := spacetime_shiftedWedge_contour_norm hm ℓ (F.compCLE Λ) + (tsupport_compLorentz_subset_wedge Λ ℓ F hF) hc hc2 + have hsource : (oneParticleLorentz hm Λ hΛ hfuture).symm (timeZeroL2 hm u) = + oneParticleL2 hm (F.compCLE Λ) := by + apply (oneParticleLorentz hm Λ hΛ hfuture).injective + rw [LinearIsometryEquiv.apply_symm_apply, oneParticleLorentz_oneParticleL2, + RealTestFunction.compCLE_compCLE_symm, heq] + refine ⟨oneParticleLorentz hm Λ hΛ hfuture ψ, ?_, ?_⟩ + · rw [unitaryPartialTransport_mem_graph, LinearIsometryEquiv.symm_apply_apply, hsource] + exact hψ + · rw [LinearIsometryEquiv.norm_map, hnorm] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun p => by + dsimp only + rw [wedgeWave_compLorentz_eq_complexSourceWave hm Λ hΛ hfuture F u heq] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LpContinuousFunctionalCalculus.lean b/LeanPool/VacuumBellSeparation/FreeField/LpContinuousFunctionalCalculus.lean new file mode 100644 index 0000000000..4b3d0dea94 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LpContinuousFunctionalCalculus.lean @@ -0,0 +1,166 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LpMultiplication +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Basic +public import Mathlib.Topology.ContinuousMap.StoneWeierstrass +public import Mathlib.Topology.ContinuousMap.Units + +/-! +# Continuous functional calculus of actual bounded L2 multipliers + +A measurable function taking values in a compact real set induces a +contractive unital real algebra homomorphism from the continuous functions +on that set to actual L2 multiplication operators. Polynomial uniqueness +identifies it with Mathlib's CFC on a spectral superset. No assertion that +every pointwise value belongs to the operator spectrum is needed, and the +measure is arbitrary, including zero. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ContinuousLinearMap +open scoped ENNReal InnerProductSpace + +theorem hilbertOperator_realCFC + {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] : + IsometricContinuousFunctionalCalculus ℝ (E →L[ℂ] E) IsSelfAdjoint := inferInstance + +variable {α : Type*} [MeasurableSpace α] (μ : Measure α) +variable {K : Set ℝ} [CompactSpace K] (r : α → K) (hr : Measurable r) + +local instance : + IsometricContinuousFunctionalCalculus ℝ (Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ) IsSelfAdjoint := + hilbertOperator_realCFC + +include hr in +theorem memLp_continuousMultiplier (f : C(K, ℝ)) : + MemLp (fun x => (f (r x) : ℂ)) ⊤ μ := by + apply memLp_top_of_bound + ((Complex.continuous_ofReal.comp f.continuous).measurable.comp hr).aestronglyMeasurable ‖f‖ + exact Filter.Eventually.of_forall fun x => by + simpa only [Function.comp_apply, Complex.norm_real] using f.norm_coe_le_norm (r x) + +/-- Continuous linear map for the continuous multiplier, of type `Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ`. -/ +noncomputable def continuousMultiplier (f : C(K, ℝ)) : Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ := + lpMultiplication μ (fun x => (f (r x) : ℂ)) (memLp_continuousMultiplier μ r hr f) + +theorem continuousMultiplier_ae (f : C(K, ℝ)) (v : Lp ℂ 2 μ) : + continuousMultiplier μ r hr f v =ᵐ[μ] fun x => (f (r x) : ℂ) * v x := + lpMultiplication_ae μ _ _ v + +theorem continuousMultiplier_norm_le (f : C(K, ℝ)) : + ‖continuousMultiplier μ r hr f‖ ≤ ‖f‖ := by + apply lpMultiplication_norm_le μ _ _ (norm_nonneg f) + exact Filter.Eventually.of_forall fun x => by + simpa only [Function.comp_apply, Complex.norm_real] using f.norm_coe_le_norm (r x) + +theorem continuousMultiplier_one : continuousMultiplier μ r hr 1 = 1 := by + exact lpMultiplication_one μ + +theorem continuousMultiplier_add (f g : C(K, ℝ)) : + continuousMultiplier μ r hr (f + g) = + continuousMultiplier μ r hr f + continuousMultiplier μ r hr g := by + unfold continuousMultiplier + calc + _ = lpMultiplication μ ((fun x => (f (r x) : ℂ)) + (fun x => (g (r x) : ℂ))) + ((memLp_continuousMultiplier μ r hr f).add (memLp_continuousMultiplier μ r hr g)) := by + apply lpMultiplication_congr + exact Filter.Eventually.of_forall (fun x => by simp) + _ = _ := lpMultiplication_add μ _ _ _ _ + +theorem continuousMultiplier_mul (f g : C(K, ℝ)) : + continuousMultiplier μ r hr (f * g) = + continuousMultiplier μ r hr f * continuousMultiplier μ r hr g := by + have hw : MemLp ((fun x => (f (r x) : ℂ)) * (fun x => (g (r x) : ℂ))) ⊤ μ := by + change MemLp (fun x => (f (r x) : ℂ) * (g (r x) : ℂ)) ⊤ μ + simpa only [Complex.ofReal_mul, ContinuousMap.mul_apply] using + memLp_continuousMultiplier μ r hr (f * g) + unfold continuousMultiplier + calc + _ = lpMultiplication μ ((fun x => (f (r x) : ℂ)) * (fun x => (g (r x) : ℂ))) hw := by + apply lpMultiplication_congr + exact Filter.Eventually.of_forall (fun x => by simp) + _ = _ := lpMultiplication_mul μ _ _ _ _ hw + +theorem continuousMultiplier_const (c : ℝ) : + continuousMultiplier μ r hr (.const K c) = c • (1 : Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ) := by + apply ContinuousLinearMap.ext + intro v + apply Lp.ext + filter_upwards [continuousMultiplier_ae μ r hr (.const K c) v, Lp.coeFn_smul c v] + with x hx hs + change continuousMultiplier μ r hr (.const K c) v x = (c • v) x + rw [hx, hs] + simp only [ContinuousMap.const_apply, Pi.smul_apply, Complex.real_smul] + +/-- Continuous linear map for the continuous multiplier hom, of type `C(K, ℝ) →ₐ[ℝ] (Lp ℂ 2 μ →L[ℂ] +Lp ℂ 2 μ) where toFun`. -/ +noncomputable def continuousMultiplierHom : C(K, ℝ) →ₐ[ℝ] (Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ) where + toFun := continuousMultiplier μ r hr + map_one' := continuousMultiplier_one μ r hr + map_zero' := by + change continuousMultiplier μ r hr (.const K 0) = 0 + rw [continuousMultiplier_const] + exact zero_smul ℝ (1 : Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ) + map_add' := continuousMultiplier_add μ r hr + map_mul' := continuousMultiplier_mul μ r hr + commutes' c := by + have he : algebraMap ℝ C(K, ℝ) c = .const K c := by ext x; simp + rw [he, continuousMultiplier_const, Algebra.algebraMap_eq_smul_one] + +theorem continuousMultiplierHom_continuous : Continuous (continuousMultiplierHom μ r hr) := by + let L := (continuousMultiplierHom μ r hr).toLinearMap.mkContinuous 1 + (fun f => by + change ‖continuousMultiplier μ r hr f‖ ≤ 1 * ‖f‖ + simpa only [one_mul] using continuousMultiplier_norm_le μ r hr f) + exact L.continuous + +theorem continuousMultiplier_isSelfAdjoint (f : C(K, ℝ)) : + IsSelfAdjoint (continuousMultiplier μ r hr f) := + lpMultiplication_isSelfAdjoint μ _ _ + (Filter.Eventually.of_forall fun _ => Complex.conj_ofReal _) + +theorem continuousMultiplier_spectrum_subset : + spectrum ℝ (continuousMultiplier μ r hr (ContinuousMap.restrict K + (ContinuousMap.id ℝ))) ⊆ K := by + intro t ht + change t ∈ spectrum ℝ ((continuousMultiplierHom μ r hr) (ContinuousMap.restrict K + (ContinuousMap.id ℝ))) at ht + have hh : t ∈ spectrum ℝ (ContinuousMap.restrict K (ContinuousMap.id ℝ)) := + AlgHom.spectrum_apply_subset (continuousMultiplierHom μ r hr) (ContinuousMap.restrict K + (ContinuousMap.id ℝ)) ht + rw [ContinuousMap.spectrum_eq_range] at hh + obtain ⟨x, rfl⟩ := hh + exact x.property + +theorem continuousMultiplierHom_eq_cfcHomSuperset : + continuousMultiplierHom μ r hr = + (cfcHomSuperset (continuousMultiplier_isSelfAdjoint μ r hr (ContinuousMap.restrict K + (ContinuousMap.id ℝ))) + (continuousMultiplier_spectrum_subset μ r hr)).toAlgHom := by + apply ContinuousMap.algHom_ext_map_X (continuousMultiplierHom_continuous μ r hr) + (cfcHomSuperset_continuous _ _) + rw [Polynomial.toContinuousMapOnAlgHom_apply, Polynomial.toContinuousMapOn_X_eq_restrict_id] + exact (cfcHomSuperset_id _ _).symm + +theorem cfc_continuousMultiplier (f : ℝ → ℝ) (hf : ContinuousOn f K) : + cfc f (continuousMultiplier μ r hr (ContinuousMap.restrict K (ContinuousMap.id ℝ))) = + continuousMultiplier μ r hr ⟨fun x => f x, hf.domRestrict⟩ := by + let hA := continuousMultiplier_isSelfAdjoint μ r hr (ContinuousMap.restrict K + (ContinuousMap.id ℝ)) + let hs := continuousMultiplier_spectrum_subset μ r hr + rw [cfc_apply f _ hA (hf.mono hs)] + have he := congrArg (fun φ : C(K, ℝ) →ₐ[ℝ] (Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ) => + φ ⟨fun x => f x, hf.domRestrict⟩) (continuousMultiplierHom_eq_cfcHomSuperset μ r hr) + exact he.symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LpMultiplication.lean b/LeanPool/VacuumBellSeparation/FreeField/LpMultiplication.lean new file mode 100644 index 0000000000..03692d5ea2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LpMultiplication.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.MeasureTheory.Function.Holder +public import Mathlib.MeasureTheory.Function.L2Space +public import Mathlib.Analysis.InnerProductSpace.Adjoint + +/-! +# Actual bounded multiplication on arbitrary complex L² spaces + +No finite-measure hypothesis is imposed. Multiplication is constructed by +Hölder's map, and every algebraic or adjoint identity is proved on actual +almost-everywhere representatives. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal InnerProductSpace ComplexConjugate + +variable {α : Type*} [MeasurableSpace α] (μ : Measure α) + +/-- Continuous linear map for the ℓᵖ multiplication, of type `Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ`. -/ +noncomputable def lpMultiplication (w : α → ℂ) (hw : MemLp w ⊤ μ) : + Lp ℂ 2 μ →L[ℂ] Lp ℂ 2 μ := + (ContinuousLinearMap.mul ℂ ℂ).holderL μ ⊤ 2 2 (hw.toLp w) + +theorem lpMultiplication_ae (w : α → ℂ) (hw : MemLp w ⊤ μ) (f : Lp ℂ 2 μ) : + lpMultiplication μ w hw f =ᵐ[μ] fun x => w x * f x := by + have h := (ContinuousLinearMap.mul ℂ ℂ).coeFn_holder (r := 2) (hw.toLp w) f + filter_upwards [h, hw.coeFn_toLp] with x hx hxw + simpa only [lpMultiplication, ContinuousLinearMap.holderL_apply_apply, hxw, + ContinuousLinearMap.mul_apply'] using hx + +theorem lpMultiplication_norm_le (w : α → ℂ) (hw : MemLp w ⊤ μ) + {C : ℝ} (hC : 0 ≤ C) (hb : ∀ᵐ x ∂μ, ‖w x‖ ≤ C) : + ‖lpMultiplication μ w hw‖ ≤ C := by + apply ContinuousLinearMap.opNorm_le_bound _ hC + intro f + apply Lp.norm_le_mul_norm_of_ae_le_mul + filter_upwards [lpMultiplication_ae μ w hw f, hb] with x hx hbx + rw [hx, norm_mul] + exact mul_le_mul_of_nonneg_right hbx (norm_nonneg _) + +theorem lpMultiplication_congr (w v : α → ℂ) (hw : MemLp w ⊤ μ) (hv : MemLp v ⊤ μ) + (h : w =ᵐ[μ] v) : lpMultiplication μ w hw = lpMultiplication μ v hv := by + apply ContinuousLinearMap.ext + intro f + apply Lp.ext + filter_upwards [lpMultiplication_ae μ w hw f, lpMultiplication_ae μ v hv f, h] with x hx hy hxy + rw [hx, hy, hxy] + +theorem lpMultiplication_one : + lpMultiplication μ (fun _ : α => 1) (memLp_top_const 1) = 1 := by + apply ContinuousLinearMap.ext + intro f + apply Lp.ext + filter_upwards [lpMultiplication_ae μ (fun _ => 1) (memLp_top_const 1) f] with x hx + simpa only [one_mul, one_apply_eq_self] using hx + +theorem lpMultiplication_add (w v : α → ℂ) (hw : MemLp w ⊤ μ) (hv : MemLp v ⊤ μ) : + lpMultiplication μ (w + v) (hw.add hv) = lpMultiplication μ w hw + lpMultiplication μ v hv := by + apply ContinuousLinearMap.ext + intro f + apply Lp.ext + filter_upwards [lpMultiplication_ae μ (w + v) (hw.add hv) f, + lpMultiplication_ae μ w hw f, lpMultiplication_ae μ v hv f, + Lp.coeFn_add (lpMultiplication μ w hw f) (lpMultiplication μ v hv f)] with x hx hwx hvx hsum + change lpMultiplication μ (w + v) (hw.add hv) f x = + (lpMultiplication μ w hw f + lpMultiplication μ v hv f) x + simp only [hx, hsum, Pi.add_apply, hwx, hvx, add_mul] + +theorem lpMultiplication_mul (w v : α → ℂ) (hw : MemLp w ⊤ μ) (hv : MemLp v ⊤ μ) + (hwv : MemLp (w * v) ⊤ μ) : + lpMultiplication μ (w * v) hwv = lpMultiplication μ w hw * lpMultiplication μ v hv := by + apply ContinuousLinearMap.ext + intro f + apply Lp.ext + filter_upwards [lpMultiplication_ae μ (w * v) hwv f, + lpMultiplication_ae μ w hw (lpMultiplication μ v hv f), + lpMultiplication_ae μ v hv f] with x hx hwx hvx + change lpMultiplication μ (w * v) hwv f x = + lpMultiplication μ w hw (lpMultiplication μ v hv f) x + rw [hx, hwx, hvx, Pi.mul_apply, mul_assoc] + +theorem lpMultiplication_isSelfAdjoint (w : α → ℂ) (hw : MemLp w ⊤ μ) + (hreal : ∀ᵐ x ∂μ, conj (w x) = w x) : IsSelfAdjoint (lpMultiplication μ w hw) := by + rw [ContinuousLinearMap.isSelfAdjoint_iff_isSymmetric] + intro f g + rw [L2.inner_def, L2.inner_def] + apply integral_congr_ae + filter_upwards [lpMultiplication_ae μ w hw f, lpMultiplication_ae μ w hw g, hreal] + with x hfx hgx hx + change inner ℂ (lpMultiplication μ w hw f x) (g x) = + inner ℂ (f x) (lpMultiplication μ w hw g x) + simp only [hfx, hgx, RCLike.inner_apply, map_mul, hx] + ring + +theorem lpMultiplication_injective (w : α → ℂ) (hw : MemLp w ⊤ μ) + (hzero : ∀ᵐ x ∂μ, w x ≠ 0) : Function.Injective (lpMultiplication μ w hw) := by + intro f g hfg + apply Lp.ext + have he : (lpMultiplication μ w hw f : α → ℂ) =ᵐ[μ] lpMultiplication μ w hw g := by + rw [hfg] + filter_upwards [lpMultiplication_ae μ w hw f, lpMultiplication_ae μ w hw g, hzero, he] + with x hfx hgx hx heq + rw [hfx, hgx] at heq + exact mul_left_cancel₀ hx heq + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/LpUnitModulus.lean b/LeanPool/VacuumBellSeparation/FreeField/LpUnitModulus.lean new file mode 100644 index 0000000000..269e40eeeb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/LpUnitModulus.lean @@ -0,0 +1,77 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LpMultiplication + +/-! +# Unitary multiplication by an actual measurable unit-modulus function + +This works on arbitrary measures. The inverse is literal conjugate +multiplication, and the norm identity is proved on AE representatives. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ComplexConjugate ENNReal + +variable {α : Type*} [MeasurableSpace α] (μ : Measure α) + (w : α → ℂ) (hw : Measurable w) (hu : ∀ x, ‖w x‖ = 1) + +include hw hu in +theorem memLp_unitModulus : MemLp w ⊤ μ := + memLp_top_of_bound hw.aestronglyMeasurable 1 + (Filter.Eventually.of_forall fun x => (hu x).le) + +theorem norm_lpMultiplication_unitModulus (v : Lp ℂ 2 μ) : + ‖lpMultiplication μ w (memLp_unitModulus μ w hw hu) v‖ = ‖v‖ := by + have hae := lpMultiplication_ae μ w (memLp_unitModulus μ w hw hu) v + apply le_antisymm + · apply Lp.norm_le_norm_of_ae_le + filter_upwards [hae] with x hx + simp only [hx, norm_mul, hu x, one_mul, le_refl] + · apply Lp.norm_le_norm_of_ae_le + filter_upwards [hae] with x hx + simp only [hx, norm_mul, hu x, one_mul, le_refl] + +/-- Linear isometry equivalence for the ℓᵖ unit modulus, of type `Lp ℂ 2 μ ≃ₗᵢ[ℂ] Lp ℂ 2 μ`. -/ +noncomputable def lpUnitModulus : Lp ℂ 2 μ ≃ₗᵢ[ℂ] Lp ℂ 2 μ := by + let A := lpMultiplication μ w (memLp_unitModulus μ w hw hu) + have hwc : Measurable (fun x => conj (w x)) := Complex.continuous_conj.measurable.comp hw + have huc : ∀ x, ‖conj (w x)‖ = 1 := fun x => by rw [Complex.norm_conj, hu x] + let B := lpMultiplication μ (fun x => conj (w x)) + (memLp_unitModulus μ _ hwc huc) + have hBA (v : Lp ℂ 2 μ) : B (A v) = v := by + apply Lp.ext + filter_upwards [lpMultiplication_ae μ _ (memLp_unitModulus μ _ hwc huc) (A v), + lpMultiplication_ae μ w (memLp_unitModulus μ w hw hu) v] with x hB hA + change B (A v) x = v x + rw [hB, hA, ← mul_assoc, Complex.conj_mul', hu x] + simp + have hAB (v : Lp ℂ 2 μ) : A (B v) = v := by + apply Lp.ext + filter_upwards [lpMultiplication_ae μ w (memLp_unitModulus μ w hw hu) (B v), + lpMultiplication_ae μ _ (memLp_unitModulus μ _ hwc huc) v] with x hA hB + change A (B v) x = v x + rw [hA, hB, ← mul_assoc, Complex.mul_conj', hu x] + simp + exact + { toLinearEquiv := + { A.toLinearMap with + invFun := B + left_inv := hBA + right_inv := hAB } + norm_map' := norm_lpMultiplication_unitModulus μ w hw hu } + +theorem lpUnitModulus_ae (v : Lp ℂ 2 μ) : + lpUnitModulus μ w hw hu v =ᵐ[μ] fun x => w x * v x := + lpMultiplication_ae μ w (memLp_unitModulus μ w hw hu) v + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Main.lean b/LeanPool/VacuumBellSeparation/FreeField/Main.lean new file mode 100644 index 0000000000..6aa2b37655 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Main.lean @@ -0,0 +1,39 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Edges +public import LeanPool.VacuumBellSeparation.FreeField.Corollary + +/-! +# Theorem 1.1 and Corollary 1.2 from the estimates of Section 8 + +With locality of the free field proved (`locality`, +`FreeField/Microcausality/`) and Lemma 2.1 proved (`lemma_2_1`), the conditional reduction of the +main theorem (`theorem_1_1_of_section8`, the manuscript's Section 8.4) and of Corollary 1.2 +(`corollary_1_2_of_theorem_1_1`) depend on a single hypothesis, `Section8Estimates`: the +estimates (8.11) and (8.13) for the double-cone algebras, uniformly in the mass. + +The declarations in this module are conditional reductions. +`Section8EstimatesProof` constructs the estimates from the physical regional bounds, +and `MainTheorems` applies these reductions to that witness. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- **Theorem 1.1 from the estimates of Section 8**: `Section8Estimates` implies Theorem 1.1 +(locality and Lemma 2.1 are proved). -/ +theorem theorem_1_1_of_section8Estimates (h8 : Section8Estimates) : Theorem_1_1 := + theorem_1_1_of_section8 h8 locality + +/-- **Corollary 1.2 from the estimates of Section 8**: `Section8Estimates` implies Corollary 1.2. -/ +theorem corollary_1_2_of_section8Estimates (h8 : Section8Estimates) : Corollary_1_2 := + corollary_1_2_of_theorem_1_1 (theorem_1_1_of_section8Estimates h8) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/MainReduction.lean b/LeanPool/VacuumBellSeparation/FreeField/MainReduction.lean new file mode 100644 index 0000000000..6b1ef7919b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/MainReduction.lean @@ -0,0 +1,248 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.Theorem31 +public import LeanPool.VacuumBellSeparation.Constants.Parameters +public import LeanPool.VacuumBellSeparation.FreeField.Existence +public import LeanPool.VacuumBellSeparation.FreeField.Statements +public import LeanPool.VacuumBellSeparation.FreeField.Dilation + +/-! +# The proof of the main theorem as a conditional reduction (Section 8.4) + +The "Proof of the main theorem" of the manuscript (Section 8.4), formalized as a +CONDITIONAL theorem: Theorem 1.1 follows from + +* `Section8Estimates`: the regional estimates (8.11) and (8.13) for the double-cone algebras, + uniformly in the mass (`ε₊(s) = A₊ s⁻²`, `ε₋(s) = A₋ s^{-γ}` as in (8.3)); +* `Locality`: the local algebras of two unit double cones at centre distance `s > 2` commute + (microcausality; a theorem about the model, proved in `FreeField/Microcausality/`, not an + assumption); +* `Lemma_2_1` (dilation). + +This is a reduction, NOT a proof of Theorem 1.1: `Section8Estimates` carries all analytic and +operator-algebraic content of Sections 2.2-8.2 other than Theorem 3.1 (Lemma 2.3 included), the +time-slice identity (2.3) of Section 2.1, Appendix A and the cited literature results; Theorem 3.1 +is applied in `freeFieldBell_unit_eq_one`, and `Locality` and `Lemma_2_1` are separate hypotheses. + +* `probExponent`, `cStar`: the numerator `X = 2 log 2/(ab) + ν₊ + ν₋` of the exponent `X/η` of + `C_prob` in (8.16), and the separation ratio (8.17) (with `3` added to the maximum so that + `C_* > 2`); +* `freeFieldBell_unit_eq_one`: for `s ≥ C_*` the hypotheses of Theorem 3.1 hold for the unit + double cones and `β_μ(1, s) = 1`, for every mass `μ > 0`; +* `theorem_1_1_of_estimates : Section8Estimates → Locality → Lemma_2_1 → Theorem_1_1`. +* `theorem_1_1_of_section8 : Section8Estimates → Locality → Theorem_1_1`, using the proof + `lemma_2_1` of Lemma 2.1 (`FreeField/Dilation.lean`). +-/ + +@[expose] public section + +open scoped ENNReal + +namespace VacuumBellSeparation + +/-- Locality: the local algebras of two unit double cones at centre distance `s > 2` commute, +in every vacuum system of every mass. -/ +def Locality : Prop := + ∀ μ s : ℝ, 0 < μ → 2 < s → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum μ H), + Commuting (localAlgebra V (doubleCone 0 1)) (localAlgebra V (doubleCone (0, s • e₁) 1)) + +/-- The finite-separation estimates of Section 8 for unit double cones, uniform in the mass: +(8.11) `log K_{r₊,+} ≤ 8 r₊ ε₊(s)`, `log K_{r₋,-} ≤ (2 r₋ / a) ε₋(s)` and (8.13) +`|ω(AB) - ω(A)ω(B)| ≤ Q₀ / s`, with `ε₊(s) = A₊ s⁻²`, `ε₋(s) = A₋ s^{-γ}` (8.3), valid for +`s ≥ S_geo` whenever `ε₊(s) ≤ 1/(8 r₊)` and `ε₋(s) ≤ a/4` (the conditions used in the +manuscript's proof). -/ +def Section8Estimates : Prop := + ∃ Ap Am Q0 Sgeo : ℝ, 0 < Ap ∧ 0 < Am ∧ 0 < Q0 ∧ + ∀ μ s : ℝ, 0 < μ → Sgeo ≤ s → 0 < s → + Ap / s ^ 2 ≤ 1 / (8 * rPlus) → Am * s ^ (-gammaRev) ≤ aRev / 4 → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum μ H), + eventConstPlus (vectorState V.vacuum V.vacuum_norm) (localAlgebra V (doubleCone 0 1)) + (localAlgebra V (doubleCone (0, s • e₁) 1)) rPlus + ≤ ENNReal.ofReal (Real.exp (8 * rPlus * (Ap / s ^ 2))) ∧ + eventConstMinus (vectorState V.vacuum V.vacuum_norm) (localAlgebra V (doubleCone 0 1)) + (localAlgebra V (doubleCone (0, s • e₁) 1)) rMinus + ≤ ENNReal.ofReal (Real.exp (2 * rMinus / aRev * (Am * s ^ (-gammaRev)))) ∧ + ∀ A ∈ saContractions (localAlgebra V (doubleCone 0 1)), + ∀ B ∈ saContractions (localAlgebra V (doubleCone (0, s • e₁) 1)), + ‖vectorState V.vacuum V.vacuum_norm (A * B) + - vectorState V.vacuum V.vacuum_norm A * vectorState V.vacuum V.vacuum_norm B‖ + ≤ Q0 / s + +/-- `X = 2 log 2/(ab) + ν₊ + ν₋`, the numerator of the exponent `X/η` of `C_prob` in (8.16). -/ +noncomputable def probExponent : ℝ := + 2 * Real.log 2 / (expA rMinus * expB rPlus) + nuPlus rPlus rMinus + nuMinus rMinus + +/-- The sufficient separation ratio of (8.17) (with `3` added to the maximum so that `C_* > 2`). -/ +noncomputable def cStar (Ap Am Q0 Sgeo : ℝ) : ℝ := + max 3 (max Sgeo (max (Real.sqrt (8 * rPlus * Ap)) + (max ((4 * Am / aRev) ^ (1 / gammaRev)) (Q0 * Real.exp (probExponent / expEta rPlus rMinus))))) + +theorem nuPlus_pos : 0 < nuPlus rPlus rMinus := by + rw [nuPlus_eq, expB_rPlus]; norm_num + +theorem nuMinus_pos : 0 < nuMinus rMinus := by + rw [nuMinus_eq]; norm_num + +/-- Unit-ball step: for `s ≥ C_*`, the hypotheses of Theorem 3.1 hold and `β_μ(1, s) = 1`. -/ +theorem freeFieldBell_unit_eq_one (h8 : Section8Estimates) (hloc : Locality) : + ∃ C : ℝ, 2 < C ∧ ∀ μ s : ℝ, 0 < μ → C ≤ s → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum μ H), freeFieldBell V 1 s = 1 := by + obtain ⟨Ap, Am, Q0, Sgeo, hAp, hAm, hQ0, hest⟩ := h8 + refine ⟨cStar Ap Am Q0 Sgeo, lt_of_lt_of_le (by norm_num) (le_max_left _ _), ?_⟩ + intro μ s hμ hs H _ _ _ V + -- the five lower bounds packed in `cStar` + -- (cStar = max 3 (max Sgeo (max √(8r₊A₊) (max (4A₋/a)^(1/γ) (Q₀ e^{X/η}))))) + have h3 : 3 ≤ s := le_trans (le_max_left _ _) hs + have hspos : 0 < s := by linarith + have hS : Sgeo ≤ s := le_trans (le_trans (le_max_left _ _) (le_max_right _ _)) hs + have hsq : Real.sqrt (8 * rPlus * Ap) ≤ s := + le_trans (le_trans (le_max_left _ _) (le_trans (le_max_right _ _) (le_max_right _ _))) hs + have hpow : (4 * Am / aRev) ^ (1 / gammaRev) ≤ s := + le_trans (le_trans (le_max_left _ _) (le_trans (le_max_right _ _) + (le_trans (le_max_right _ _) (le_max_right _ _)))) hs + have hprob : Q0 * Real.exp (probExponent / expEta rPlus rMinus) ≤ s := + le_trans (le_trans (le_max_right _ _) (le_trans (le_max_right _ _) + (le_trans (le_max_right _ _) (le_max_right _ _)))) hs + have hrp : 2 < rPlus := rPlus_ge.2 + have hrp0 : 0 < rPlus := by linarith + have hrp_ne : rPlus ≠ 0 := hrp0.ne' + have ha : 0 < aRev := aRev_pos_le.1 + have ha_ne : aRev ≠ 0 := ha.ne' + have hγ : 0 < gammaRev := gammaRev_pos + -- ε₊(s) ≤ 1/(8 r₊): √(8 r₊ A₊) ≤ s ⟹ 8 r₊ A₊ ≤ s² + have heps_p : Ap / s ^ 2 ≤ 1 / (8 * rPlus) := by + have h0 : 0 ≤ 8 * rPlus * Ap := + (mul_pos (mul_pos (by norm_num : (0 : ℝ) < 8) hrp0) hAp).le + have h1 : 8 * rPlus * Ap ≤ s ^ 2 := + calc 8 * rPlus * Ap = Real.sqrt (8 * rPlus * Ap) ^ 2 := (Real.sq_sqrt h0).symm + _ ≤ s ^ 2 := pow_le_pow_left₀ (Real.sqrt_nonneg _) hsq 2 + rw [div_le_div_iff₀ (pow_pos hspos 2) (by linarith)] + -- goal: `Ap * (8 * rPlus) ≤ 1 * s ^ 2` + linarith + -- ε₋(s) ≤ a/4: (4A₋/a)^(1/γ) ≤ s ⟹ 4A₋/a ≤ s^γ + have heps_m : Am * s ^ (-gammaRev) ≤ aRev / 4 := by + have h1 : 4 * Am / aRev ≤ s ^ gammaRev := by + have hb : 0 ≤ 4 * Am / aRev := div_nonneg (by linarith) ha.le + calc 4 * Am / aRev = ((4 * Am / aRev) ^ (1 / gammaRev)) ^ gammaRev := by + rw [← Real.rpow_mul hb, one_div, inv_mul_cancel₀ hγ.ne', Real.rpow_one] + _ ≤ s ^ gammaRev := Real.rpow_le_rpow (Real.rpow_nonneg hb _) hpow hγ.le + have hsγ : 0 < s ^ gammaRev := Real.rpow_pos_of_pos hspos _ + rw [Real.rpow_neg hspos.le, ← div_eq_mul_inv, + div_le_div_iff₀ hsγ (by norm_num : (0 : ℝ) < 4)] + -- goal: `Am * 4 ≤ aRev * s ^ gammaRev` + rw [div_le_iff₀ ha] at h1 + -- h1: `4 * Am ≤ s ^ gammaRev * aRev` + linarith + obtain ⟨hKp, hKm, hcl⟩ := hest μ s hμ hS hspos heps_p heps_m H V + -- the constants are at most `e` + have hKp_le : (eventConstPlus (vectorState V.vacuum V.vacuum_norm) + (localAlgebra V (doubleCone 0 1)) (localAlgebra V (doubleCone (0, s • e₁) 1)) rPlus).toReal + ≤ Real.exp 1 := by + refine ENNReal.toReal_le_of_le_ofReal (Real.exp_pos 1).le (hKp.trans + (ENNReal.ofReal_le_ofReal (Real.exp_le_exp.mpr ?_))) + calc 8 * rPlus * (Ap / s ^ 2) ≤ 8 * rPlus * (1 / (8 * rPlus)) := + mul_le_mul_of_nonneg_left heps_p (by linarith) + _ = 1 := mul_one_div_cancel (mul_ne_zero (by norm_num) hrp_ne) + have hKm_le : (eventConstMinus (vectorState V.vacuum V.vacuum_norm) + (localAlgebra V (doubleCone 0 1)) (localAlgebra V (doubleCone (0, s • e₁) 1)) rMinus).toReal + ≤ Real.exp 1 := by + refine ENNReal.toReal_le_of_le_ofReal (Real.exp_pos 1).le (hKm.trans + (ENNReal.ofReal_le_ofReal (Real.exp_le_exp.mpr ?_))) + have hr := one_lt_rMinus_lt_two + calc 2 * rMinus / aRev * (Am * s ^ (-gammaRev)) + ≤ 2 * rMinus / aRev * (aRev / 4) := + mul_le_mul_of_nonneg_left heps_m (div_nonneg (by linarith [hr.1]) ha.le) + _ = rMinus / 2 * (aRev / aRev) := by ring + _ = rMinus / 2 := by rw [div_self ha_ne, mul_one] + _ ≤ 1 := by linarith [hr.2] + -- finiteness + have hKp_ne : eventConstPlus (vectorState V.vacuum V.vacuum_norm) + (localAlgebra V (doubleCone 0 1)) (localAlgebra V (doubleCone (0, s • e₁) 1)) rPlus ≠ ⊤ := + ne_top_of_le_ne_top ENNReal.ofReal_ne_top hKp + have hKm_ne : eventConstMinus (vectorState V.vacuum V.vacuum_norm) + (localAlgebra V (doubleCone 0 1)) (localAlgebra V (doubleCone (0, s • e₁) 1)) rMinus ≠ ⊤ := + ne_top_of_le_ne_top ENNReal.ofReal_ne_top hKm + -- the cutoff (3.5) with q = Q₀/s + have hη := expEta_pos + have hη_ne : expEta rPlus rMinus ≠ 0 := hη.ne' + have hcut : (Q0 / s) ^ expEta rPlus rMinus * + (eventConstPlus (vectorState V.vacuum V.vacuum_norm) (localAlgebra V (doubleCone 0 1)) + (localAlgebra V (doubleCone (0, s • e₁) 1)) rPlus).toReal ^ nuPlus rPlus rMinus * + (eventConstMinus (vectorState V.vacuum V.vacuum_norm) (localAlgebra V (doubleCone 0 1)) + (localAlgebra V (doubleCone (0, s • e₁) 1)) rMinus).toReal ^ nuMinus rMinus + ≤ (2 : ℝ) ^ (-(2 / (expA rMinus * expB rPlus))) := by + have hq0 : 0 ≤ Q0 / s := div_nonneg hQ0.le hspos.le + -- Q₀/s ≤ exp(-X/η), from Q₀ e^{X/η} ≤ s + have hle : Q0 / s ≤ Real.exp (-(probExponent / expEta rPlus rMinus)) := by + have hE : Real.exp (-(probExponent / expEta rPlus rMinus)) * + Real.exp (probExponent / expEta rPlus rMinus) = 1 := by + rw [← Real.exp_add]; simp + rw [div_le_iff₀ hspos] + calc Q0 = Real.exp (-(probExponent / expEta rPlus rMinus)) * + (Q0 * Real.exp (probExponent / expEta rPlus rMinus)) := by + rw [mul_left_comm, hE, mul_one] + _ ≤ Real.exp (-(probExponent / expEta rPlus rMinus)) * s := + mul_le_mul_of_nonneg_left hprob (Real.exp_pos _).le + -- (Q₀/s)^η ≤ exp(-X) + have hq : (Q0 / s) ^ expEta rPlus rMinus ≤ Real.exp (-probExponent) := by + calc (Q0 / s) ^ expEta rPlus rMinus + ≤ (Real.exp (-(probExponent / expEta rPlus rMinus))) ^ expEta rPlus rMinus := + Real.rpow_le_rpow hq0 hle hη.le + _ = Real.exp (-probExponent) := by + rw [← Real.exp_mul, neg_mul, div_mul_cancel₀ _ hη_ne] + -- K₊^{ν₊} ≤ e^{ν₊}, K₋^{ν₋} ≤ e^{ν₋} + have hKp' := Real.rpow_le_rpow ENNReal.toReal_nonneg hKp_le nuPlus_pos.le + have hKm' := Real.rpow_le_rpow ENNReal.toReal_nonneg hKm_le nuMinus_pos.le + rw [← Real.exp_mul, one_mul] at hKp' hKm' + have hB0 := Real.rpow_nonneg (ENNReal.toReal_nonneg (a := eventConstPlus + (vectorState V.vacuum V.vacuum_norm) (localAlgebra V (doubleCone 0 1)) + (localAlgebra V (doubleCone (0, s • e₁) 1)) rPlus)) (nuPlus rPlus rMinus) + have hC0 := Real.rpow_nonneg (ENNReal.toReal_nonneg (a := eventConstMinus + (vectorState V.vacuum V.vacuum_norm) (localAlgebra V (doubleCone 0 1)) + (localAlgebra V (doubleCone (0, s • e₁) 1)) rMinus)) (nuMinus rMinus) + -- 2^{-2/(ab)} = exp(-2 log 2/(ab)) + have hbase : (2 : ℝ) ^ (-(2 / (expA rMinus * expB rPlus))) + = Real.exp (-(2 * Real.log 2 / (expA rMinus * expB rPlus))) := by + rw [Real.rpow_def_of_pos (by norm_num : (0 : ℝ) < 2)]; congr 1; ring + rw [hbase] + -- e^{-X} e^{ν₊} e^{ν₋} = e^{-2 log 2/(ab)} since X = 2 log 2/(ab) + ν₊ + ν₋ + calc _ ≤ Real.exp (-probExponent) * Real.exp (nuPlus rPlus rMinus) * + Real.exp (nuMinus rMinus) := + mul_le_mul (mul_le_mul hq hKp' hB0 (Real.exp_pos _).le) hKm' hC0 (by positivity) + _ = Real.exp (-(2 * Real.log 2 / (expA rMinus * expB rPlus))) := by + rw [← Real.exp_add, ← Real.exp_add]; unfold probExponent; congr 1; ring + -- apply Theorem 3.1 + have hrm := one_lt_rMinus_lt_two + exact probability_criterion (vectorState V.vacuum V.vacuum_norm) (hloc μ s hμ (by linarith) H V) + hrp hrm.1 hrm.2 hη hKp_ne hKm_ne hcl hcut + +/-- **Theorem 1.1, conditional form**: the finite-separation estimates of Section 8, locality and +Lemma 2.1 imply Theorem 1.1 (manuscript, Section 8.4). -/ +theorem theorem_1_1_of_estimates (h8 : Section8Estimates) (hloc : Locality) (h21 : Lemma_2_1) : + Theorem_1_1 := by + obtain ⟨C, hC2, hC⟩ := freeFieldBell_unit_eq_one h8 hloc + refine ⟨C, hC2, ?_⟩ + intro m R L hm hR hL H _ _ _ V + -- L ≥ C R > 0 + have hL0 : 0 < L := lt_of_lt_of_le (mul_pos (by linarith) hR) hL + obtain ⟨H', i1, i2, i3, ⟨V'⟩⟩ := freeFieldVacuum_exists (m * R) (mul_pos hm hR) + -- β_m(R, L) = β_{mR}(1, L/R) (Lemma 2.1), and L/R ≥ C + rw [h21 m R L hm hR hL0 H V H' V'] + exact hC (m * R) (L / R) (mul_pos hm hR) (by rw [le_div_iff₀ hR]; linarith) H' V' + +/-- **Theorem 1.1, conditional form with Lemma 2.1 discharged**: the finite-separation estimates of +Section 8 and locality imply Theorem 1.1. -/ +theorem theorem_1_1_of_section8 (h8 : Section8Estimates) (hloc : Locality) : Theorem_1_1 := + theorem_1_1_of_estimates h8 hloc lemma_2_1 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/MainTheorems.lean b/LeanPool/VacuumBellSeparation/FreeField/MainTheorems.lean new file mode 100644 index 0000000000..d7c85ceb8c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/MainTheorems.lean @@ -0,0 +1,33 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Section8EstimatesProof +public import LeanPool.VacuumBellSeparation.FreeField.Main + +/-! +# The manuscript main theorem and fixed-region corollary + +These theorems use the actual Section 8 estimates, the proved locality +and dilation, and the original physical vacuum Weyl model. Their statements +are `Theorem_1_1` and `Corollary_1_2` of `FreeField/Statements.lean`, retaining all +positive masses, radii, separation quantifiers and local observables. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Theorem 1.1: a mass- and radius-independent separation ratio. -/ +theorem theorem_1_1 : Theorem_1_1 := + theorem_1_1_of_section8Estimates section8Estimates + +/-- Corollary 1.2: arbitrary fixed bounded regions and spacelike direction. -/ +theorem corollary_1_2 : Corollary_1_2 := + corollary_1_2_of_theorem_1_1 theorem_1_1 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/MassShellDistribution.lean b/LeanPool/VacuumBellSeparation/FreeField/MassShellDistribution.lean new file mode 100644 index 0000000000..607761bae1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/MassShellDistribution.lean @@ -0,0 +1,94 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Existence +public import Mathlib.Analysis.Distribution.TemperedDistribution + +/-! +# Physical one-particle vectors as tempered distributions + +The massive shell density is bounded by its value at zero momentum. Consequently +the physical mass-shell measure has temperate growth and is locally finite. +Mathlib's actual `Lp` embedding gives a continuous injective map to tempered +distributions, with the mass-shell density retained in the pairing. Removing +that density, reconstructing the two position-space components, and proving +their compact distributional support are separate steps. +-/ + +@[expose] public section + +open MeasureTheory +open scoped SchwartzMap + +namespace VacuumBellSeparation + +theorem oneParticleWeight_le {m : ℝ} (hm : 0 < m) (p : EuclideanSpace ℝ (Fin 3)) : + oneParticleWeight m p ≤ Real.toNNReal (1 / (2 * (2 * Real.pi) ^ 3 * m)) := by + apply Real.toNNReal_mono + apply one_div_le_one_div_of_le + · positivity + · exact mul_le_mul_of_nonneg_left (le_dispersion hm.le p) (by positivity) + +/-- The massive shell measure is dominated by a finite constant times spatial volume. -/ +theorem oneParticleMeasure_le_volume {m : ℝ} (hm : 0 < m) : + oneParticleMeasure m ≤ + (Real.toNNReal (1 / (2 * (2 * Real.pi) ^ 3 * m)) : ENNReal) • + (volume : Measure (EuclideanSpace ℝ (Fin 3))) := by + rw [← withDensity_const] + apply withDensity_mono + exact Filter.Eventually.of_forall fun p => by + change (oneParticleWeight m p : ENNReal) ≤ + (Real.toNNReal (1 / (2 * (2 * Real.pi) ^ 3 * m)) : ENNReal) + exact ENNReal.coe_le_coe.mpr (oneParticleWeight_le hm p) + +/-- Temperate growth is derived from the actual massive measure, not supplied as a model +assumption. -/ +theorem oneParticleMeasure_hasTemperateGrowth {m : ℝ} (hm : 0 < m) : + (oneParticleMeasure m).HasTemperateGrowth := by + let μ : Measure (EuclideanSpace ℝ (Fin 3)) := volume + refine ⟨⟨μ.integrablePower, ?_⟩⟩ + have h := (Measure.integrable_pow_neg_integrablePower μ).smul_measure + (c := (Real.toNNReal (1 / (2 * (2 * Real.pi) ^ 3 * m)) : ENNReal)) (by simp) + exact h.mono_measure (oneParticleMeasure_le_volume hm) + +theorem oneParticleMeasure_isLocallyFinite {m : ℝ} (hm : 0 < m) : + IsLocallyFiniteMeasure (oneParticleMeasure m) := by + apply MeasureTheory.IsLocallyFiniteMeasure.withDensity_coe + exact continuous_real_toNNReal.comp (continuous_oneParticleWeightReal hm) + +/-- The actual weighted momentum-distribution embedding. -/ +noncomputable def physicalMomentumDistribution {m : ℝ} (hm : 0 < m) : + Lp ℂ 2 (oneParticleMeasure m) →L[ℂ] TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := by + letI := oneParticleMeasure_hasTemperateGrowth hm + exact Lp.toTemperedDistributionCLM ℂ (oneParticleMeasure m) 2 + +theorem physicalMomentumDistribution_apply {m : ℝ} (hm : 0 < m) + (u : Lp ℂ 2 (oneParticleMeasure m)) (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + physicalMomentumDistribution hm u φ = ∫ p, φ p * u p ∂oneParticleMeasure m := by + let := oneParticleMeasure_hasTemperateGrowth hm + exact Lp.toTemperedDistribution_apply u φ + +/-- No physical vector is lost in the distribution embedding. -/ +theorem physicalMomentumDistribution_injective {m : ℝ} (hm : 0 < m) : + Function.Injective (physicalMomentumDistribution hm) := by + let := oneParticleMeasure_hasTemperateGrowth hm + let := oneParticleMeasure_isLocallyFinite hm + exact LinearMap.ker_eq_bot.mp (Lp.ker_toTemperedDistributionCLM_eq_bot + (F := ℂ) (μ := oneParticleMeasure m) (p := 2)) + +/-- On the existing spacetime source vectors the distribution is the literal mass-shell pairing. -/ +theorem physicalMomentumDistribution_oneParticleL2 {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + physicalMomentumDistribution hm (oneParticleL2 hm F) φ = + ∫ p, φ p * oneParticle m F p ∂oneParticleMeasure m := by + rw [physicalMomentumDistribution_apply] + apply integral_congr_ae + filter_upwards [coeFn_oneParticleL2 hm F] with p hp + rw [hp] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Algebra.lean b/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Algebra.lean new file mode 100644 index 0000000000..11307cb78d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Algebra.lean @@ -0,0 +1,159 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.MainReduction +public import LeanPool.VacuumBellSeparation.FreeField.Isotony + +/-! +# Microcausality, stage A: the algebraic reduction + +Stage A of the microcausality proof: two local algebras commute as +soon as the imaginary part of the one-particle inner product `⟨κF, κG⟩` vanishes for all real test +functions `F`, `G` supported in the two regions. No analysis is involved. + +* `oneParticleInner_swap`: `⟨κG, κF⟩ = conj ⟨κF, κG⟩`; +* `FreeFieldVacuum.weyl_mul_comm_of_im_eq_zero`: `Im ⟨κF, κG⟩ = 0` implies `W(F)W(G) = W(G)W(F)` + (the Weyl relations applied twice, and `F + G = G + F`); +* `mul_star_comm_of_mem_unitary`, `commute_union_star_of_subset_unitary`: commutation of unitary + operators passes to their adjoints; +* `commuting_generatedVNA_of_commute`: if every element of `S₁ ∪ S₁*` commutes with every element + of `S₂ ∪ S₂*`, the generated von Neumann algebras commute + (`S₂ ∪ S₂* ⊆ S₁'`, hence `generatedVNA S₂ ⊆ S₁' = (generatedVNA S₁)'`); +* `commuting_localAlgebra_of_im_eq_zero`, `locality_of_im_eq_zero`: the reduction of `Locality` + (`FreeField/MainReduction.lean`) to `Im ⟨κ_μ F, κ_μ G⟩ = 0` for `F` supported in the unit double + cone at the origin and `G` in the unit double cone at `s 𝐞₁`, `s > 2`. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +open scoped Pointwise + +namespace VacuumBellSeparation + +/-! ### Symmetry of the one-particle inner product -/ + +/-- `⟨κ_m G, κ_m F⟩ = conj ⟨κ_m F, κ_m G⟩` (the weight of the inner product is real). -/ +theorem oneParticleInner_swap (m : ℝ) (F G : RealTestFunction) : + oneParticleInner m G F = conj (oneParticleInner m F G) := by + unfold oneParticleInner + rw [← integral_conj] + refine integral_congr_ae (Filter.Eventually.of_forall fun p => ?_) + simp only [map_mul, Complex.conj_conj, Complex.conj_ofReal] + ring + +/-- `Im ⟨κ_m G, κ_m F⟩ = -Im ⟨κ_m F, κ_m G⟩`. -/ +theorem oneParticleInner_swap_im (m : ℝ) (F G : RealTestFunction) : + (oneParticleInner m G F).im = -(oneParticleInner m F G).im := by + rw [oneParticleInner_swap, Complex.conj_im] + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-! ### Commutation of Weyl operators -/ + +/-- If `Im ⟨κ_m F, κ_m G⟩ = 0`, the Weyl operators commute: `W(F) W(G) = W(G) W(F)`. -/ +theorem FreeFieldVacuum.weyl_mul_comm_of_im_eq_zero {m : ℝ} (V : FreeFieldVacuum m H) + {F G : RealTestFunction} (h : (oneParticleInner m F G).im = 0) : + V.weyl F * V.weyl G = V.weyl G * V.weyl F := by + have h' : (oneParticleInner m G F).im = 0 := by + rw [oneParticleInner_swap_im, h, neg_zero] + have hFG : F + G = G + F := Subtype.ext (add_comm F.1 G.1) + rw [V.weyl_mul F G, V.weyl_mul G F, h, h', hFG] + +/-! ### Commutation with adjoints -/ + +/-- If `A` commutes with a unitary `B`, then `A` commutes with `B*`. -/ +theorem mul_star_comm_of_mem_unitary {A B : H →L[ℂ] H} (hB : B ∈ unitary (H →L[ℂ] H)) + (h : A * B = B * A) : A * star B = star B * A := by + have h1 : star B * B = 1 := Unitary.star_mul_self_of_mem hB + have h2 : B * star B = 1 := Unitary.mul_star_self_of_mem hB + calc A * star B = star B * B * A * star B := by rw [h1, one_mul] + _ = star B * (B * A) * star B := by rw [mul_assoc (star B) B A] + _ = star B * (A * B) * star B := by rw [h] + _ = star B * A * (B * star B) := by simp only [mul_assoc] + _ = star B * A := by rw [h2, mul_one] + +/-- If every element of a set `S₁` of unitaries commutes with every element of a set `S₂` of +unitaries, then every element of `S₁ ∪ S₁*` commutes with every element of `S₂ ∪ S₂*`. -/ +theorem commute_union_star_of_subset_unitary {S₁ S₂ : Set (H →L[ℂ] H)} + (hU₁ : S₁ ⊆ unitary (H →L[ℂ] H)) (hU₂ : S₂ ⊆ unitary (H →L[ℂ] H)) + (h : ∀ A ∈ S₁, ∀ B ∈ S₂, A * B = B * A) : + ∀ A ∈ S₁ ∪ star S₁, ∀ B ∈ S₂ ∪ star S₂, A * B = B * A := by + intro A hA B hB + rcases hA with hA | hA <;> rcases hB with hB | hB + · exact h A hA B hB + · have hB' : star B ∈ S₂ := Set.mem_star.1 hB + have h1 := mul_star_comm_of_mem_unitary (hU₂ hB') (h A hA (star B) hB') + rwa [star_star] at h1 + · have hA' : star A ∈ S₁ := Set.mem_star.1 hA + have h1 := mul_star_comm_of_mem_unitary (hU₁ hA') (h (star A) hA' B hB).symm + rw [star_star] at h1 + exact h1.symm + · have hA' : star A ∈ S₁ := Set.mem_star.1 hA + have hB' : star B ∈ S₂ := Set.mem_star.1 hB + have h1 : star (star A * star B) = star (star B * star A) := + congrArg star (h (star A) hA' (star B) hB') + simp only [star_mul, star_star] at h1 + exact h1.symm + +/-! ### Commutation of generated von Neumann algebras -/ + +/-- If every element of `S₁ ∪ S₁*` commutes with every element of `S₂ ∪ S₂*`, the von Neumann +algebras generated by `S₁` and `S₂` commute: `S₁ ∪ S₁* ⊆ S₂'`, so every element of +`generatedVNA S₂ = S₂''` lies in `S₁'`, which commutes with `generatedVNA S₁ = S₁''`. -/ +theorem commuting_generatedVNA_of_commute {S₁ S₂ : Set (H →L[ℂ] H)} + (h : ∀ A ∈ S₁ ∪ star S₁, ∀ B ∈ S₂ ∪ star S₂, A * B = B * A) : + Commuting (generatedVNA S₁) (generatedVNA S₂) := by + intro A hA B hB + have h1 : ∀ a ∈ S₁ ∪ star S₁, a ∈ commutantOf S₂ := by + intro a ha + rw [mem_commutantOf_iff, Set.mem_centralizer_iff] + intro b hb + exact (h a ha b hb).symm + have hB' : B ∈ commutantOf S₁ := by + rw [generatedVNA, VonNeumannAlgebra.mem_commutant_iff] at hB + rw [mem_commutantOf_iff, Set.mem_centralizer_iff] + intro a ha + exact hB a (h1 a ha) + rw [generatedVNA, VonNeumannAlgebra.mem_commutant_iff] at hA + exact (hA B hB').symm + +/-! ### The reduction of locality -/ + +/-- The local algebras of two regions commute if `Im ⟨κ_m F, κ_m G⟩ = 0` for all real test +functions `F` supported in the first region and `G` supported in the second. -/ +theorem commuting_localAlgebra_of_im_eq_zero {m : ℝ} (V : FreeFieldVacuum m H) + {O₁ O₂ : Set Spacetime} + (h : ∀ F G : RealTestFunction, tsupport F.1 ⊆ O₁ → tsupport G.1 ⊆ O₂ → + (oneParticleInner m F G).im = 0) : + Commuting (localAlgebra V O₁) (localAlgebra V O₂) := by + unfold localAlgebra + apply commuting_generatedVNA_of_commute + apply commute_union_star_of_subset_unitary + · rintro T ⟨F, -, rfl⟩ + exact V.weyl_mem_unitary F + · rintro T ⟨G, -, rfl⟩ + exact V.weyl_mem_unitary G + · rintro A ⟨F, hF, rfl⟩ B ⟨G, hG, rfl⟩ + exact V.weyl_mul_comm_of_im_eq_zero (h F G hF hG) + +/-- **Reduction of `Locality` to the one-particle inner product**: if +`Im ⟨κ_μ F, κ_μ G⟩ = 0` for every mass `μ > 0`, every `s > 2` and all real test functions `F` +supported in the unit double cone at the origin and `G` supported in the unit double cone at +`s 𝐞₁`, then `Locality` holds. -/ +theorem locality_of_im_eq_zero + (h : ∀ μ s : ℝ, 0 < μ → 2 < s → ∀ F G : RealTestFunction, + tsupport F.1 ⊆ doubleCone 0 1 → tsupport G.1 ⊆ doubleCone (0, s • e₁) 1 → + (oneParticleInner μ F G).im = 0) : + Locality := by + intro μ s hμ hs H _ _ _ V + exact commuting_localAlgebra_of_im_eq_zero V (h μ s hμ hs) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Decay.lean b/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Decay.lean new file mode 100644 index 0000000000..413eb8cc44 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Decay.lean @@ -0,0 +1,407 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Decay + +/-! +# Microcausality, stage F: integration by parts for complex linear phases + +Stage F of the microcausality proof, independent of the particular +phase. Let `c : Spacetime →L[ℝ] ℂ` be a real-linear map, i.e. a complex linear form in the four +coordinates. The plane wave `y ↦ exp(i c(y - x₀))` may grow, but test functions have compact +support, so integration by parts needs no positivity. + +* `dirDeriv v F`: the directional derivative `∂_v F = DF(·) v` of a real test function, again a + real test function, with `tsupport (∂_v F) ⊆ tsupport F` (`tsupport_dirDeriv_subset`, + `tsupport_iterate_dirDeriv_subset`); +* `integral_expPhase_mul_dirDeriv`: + `∫ e^{i c(y - x₀)} ∂_v F(y) dy = -i c(v) ∫ e^{i c(y - x₀)} F(y) dy`; +* `pow_mul_integral_expPhase_mul`: + `(i c(v))^N ∫ e^{i c(y - x₀)} F(y) dy = (-1)^N ∫ e^{i c(y - x₀)} ∂_v^N F(y) dy`; +* `norm_pow_mul_norm_integral_expPhase_le`: if `Im c(y - x₀) ≥ 0` on `tsupport G`, then + `|c(v)|^N |∫ e^{i c(y - x₀)} G(y) dy| ≤ ‖∂_v^N G‖₁`; +* `norm_pow_mul_norm_doubleIntegral_le`: if `Im c(y - x) ≥ 0` for `x ∈ tsupport F` and + `y ∈ tsupport G`, then `|c(v)|^N |∫∫ e^{i c(y - x)} F(x) G(y) dy dx| ≤ ‖F‖₁ ‖∂_v^N G‖₁`; +* `coordDir`: the coordinate directions `e 0 = (1, 0)`, `e (i + 1) = (0, 𝐞ᵢ)`; + `exists_le_norm_coordDir`: `∑_j |c(e_j)|² ≥ K²` implies `|c(e_j)| ≥ K / 2` for some `j`; +* `norm_doubleIntegral_le`: under both hypotheses and `K > 0`, + `|∫∫ e^{i c(y - x)} F(x) G(y) dy dx| ≤ (2/K)^N ‖F‖₁ max_j ‖∂_{e_j}^N G‖₁` + (the maximum is `maxCoordDerivNorm G N`); +* `integral_prod_expPhase_eq_iterated`, `norm_integral_prod_expPhase_le`: the double integral + over the product measure on `Spacetime × Spacetime` is the iterated one (the integrand + factorizes), so the same bound holds for it. +-/ + +@[expose] public section + +open MeasureTheory + +namespace VacuumBellSeparation + +/-! ### Directional derivatives of test functions -/ + +/-- The directional derivative `∂_v F : x ↦ DF(x) v` of a real test function along a spacetime +vector `v`, again a real test function. -/ +noncomputable def dirDeriv (v : Spacetime) (F : RealTestFunction) : RealTestFunction := + ⟨fun x => fderiv ℝ F.1 x v, + (contDiff_infty_iff_fderiv.1 F.2.1).2.clm_apply contDiff_const, + F.2.2.fderiv_apply ℝ v⟩ + +/-- `(∂_v F)(x) = DF(x) v`. -/ +theorem dirDeriv_apply (v : Spacetime) (F : RealTestFunction) (x : Spacetime) : + (dirDeriv v F).1 x = fderiv ℝ F.1 x v := rfl + +/-- `tsupport (∂_v F) ⊆ tsupport F`. -/ +theorem tsupport_dirDeriv_subset (v : Spacetime) (F : RealTestFunction) : + tsupport (dirDeriv v F).1 ⊆ tsupport F.1 := by + change tsupport (fun x => fderiv ℝ F.1 x v) ⊆ tsupport F.1 + exact tsupport_fderiv_apply_subset ℝ v + +/-- `tsupport (∂_v^N F) ⊆ tsupport F`. -/ +theorem tsupport_iterate_dirDeriv_subset (v : Spacetime) (F : RealTestFunction) (N : ℕ) : + tsupport ((dirDeriv v)^[N] F).1 ⊆ tsupport F.1 := by + induction N with + | zero => exact subset_rfl + | succ n ih => + rw [Function.iterate_succ_apply'] + exact (tsupport_dirDeriv_subset v _).trans ih + +/-! ### Plane waves with a complex linear phase -/ + +/-- The plane wave `y ↦ exp(i c(y - x₀))` of a complex linear phase is continuous. -/ +theorem continuous_expPhase (c : Spacetime →L[ℝ] ℂ) (x₀ : Spacetime) : + Continuous fun y : Spacetime => Complex.exp (Complex.I * c (y - x₀)) := + Complex.continuous_exp.comp + (continuous_const.mul (c.continuous.comp (continuous_id.sub continuous_const))) + +/-- `y ↦ exp(i c(y - x₀)) F(y)` is integrable (continuous with compact support). -/ +theorem integrable_expPhase_mul (c : Spacetime →L[ℝ] ℂ) (x₀ : Spacetime) (F : RealTestFunction) : + Integrable fun y : Spacetime => Complex.exp (Complex.I * c (y - x₀)) * (F.1 y : ℂ) := by + apply Continuous.integrable_of_hasCompactSupport + · exact (continuous_expPhase c x₀).mul + (Complex.continuous_ofReal.comp (continuous_testFunction F)) + · exact (F.2.2.comp_left Complex.ofReal_zero).mul_left + +/-- The phase `y ↦ i c(y - x₀)` has derivative `i c`. -/ +theorem hasFDerivAt_I_mul_phase (c : Spacetime →L[ℝ] ℂ) (x₀ y : Spacetime) : + HasFDerivAt (fun y : Spacetime => Complex.I * c (y - x₀)) (Complex.I • c) y := by + have h1 : HasFDerivAt (fun y : Spacetime => c (y - x₀)) c y := + ((c.hasFDerivAt (x := y)).sub_const (c x₀)).congr_of_eventuallyEq + (Filter.Eventually.of_forall fun z => map_sub c z x₀) + exact h1.const_mul Complex.I + +/-- **Integration by parts for a complex linear phase**: +`∫ e^{i c(y - x₀)} ∂_v F(y) dy = -i c(v) ∫ e^{i c(y - x₀)} F(y) dy`. -/ +theorem integral_expPhase_mul_dirDeriv (c : Spacetime →L[ℝ] ℂ) (x₀ v : Spacetime) + (F : RealTestFunction) : + ∫ y : Spacetime, Complex.exp (Complex.I * c (y - x₀)) * ((dirDeriv v F).1 y : ℂ) = + -(Complex.I * c v) * ∫ y : Spacetime, Complex.exp (Complex.I * c (y - x₀)) * (F.1 y : ℂ) := by + have he : ∀ y : Spacetime, HasFDerivAt (fun y => Complex.exp (Complex.I * c (y - x₀))) + (Complex.exp (Complex.I * c (y - x₀)) • (Complex.I • c)) y := fun y => + (hasFDerivAt_I_mul_phase c x₀ y).cexp + have hg : ∀ y : Spacetime, HasFDerivAt (fun y => ((F.1 y : ℝ) : ℂ)) + (Complex.ofRealCLM.comp (fderiv ℝ F.1 y)) y := fun y => + Complex.ofRealCLM.hasFDerivAt.comp y ((differentiable_testFunction F y).hasFDerivAt) + have hfd : ∀ y : Spacetime, + fderiv ℝ (fun y => Complex.exp (Complex.I * c (y - x₀))) y v = + Complex.I * c v * Complex.exp (Complex.I * c (y - x₀)) := by + intro y + rw [(he y).fderiv] + simp only [smul_apply, smul_eq_mul] + ring + have hgd : ∀ y : Spacetime, fderiv ℝ (fun y => ((F.1 y : ℝ) : ℂ)) y v = + (((dirDeriv v F).1 y : ℝ) : ℂ) := by + intro y + rw [(hg y).fderiv] + rfl + have hfun1 : (fun y : Spacetime => + fderiv ℝ (fun y => Complex.exp (Complex.I * c (y - x₀))) y v * ((F.1 y : ℝ) : ℂ)) = + fun y => Complex.I * c v * (Complex.exp (Complex.I * c (y - x₀)) * ((F.1 y : ℝ) : ℂ)) := by + funext y + rw [hfd] + ring + have hfun2 : (fun y : Spacetime => + Complex.exp (Complex.I * c (y - x₀)) * fderiv ℝ (fun y => ((F.1 y : ℝ) : ℂ)) y v) = + fun y => Complex.exp (Complex.I * c (y - x₀)) * (((dirDeriv v F).1 y : ℝ) : ℂ) := by + funext y + rw [hgd] + have hint1 : Integrable (fun y : Spacetime => + fderiv ℝ (fun y => Complex.exp (Complex.I * c (y - x₀))) y v * ((F.1 y : ℝ) : ℂ)) := by + rw [hfun1] + exact (integrable_expPhase_mul c x₀ F).const_mul _ + have hint2 : Integrable (fun y : Spacetime => + Complex.exp (Complex.I * c (y - x₀)) * fderiv ℝ (fun y => ((F.1 y : ℝ) : ℂ)) y v) := by + rw [hfun2] + exact integrable_expPhase_mul c x₀ (dirDeriv v F) + have hint3 : Integrable (fun y : Spacetime => + Complex.exp (Complex.I * c (y - x₀)) * ((F.1 y : ℝ) : ℂ)) := + integrable_expPhase_mul c x₀ F + have : (volume : Measure Spacetime).IsAddHaarMeasure := Measure.prod.instIsAddHaarMeasure _ _ + have key : ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x₀)) * fderiv ℝ (fun y => ((F.1 y : ℝ) : ℂ)) y v = + - ∫ y : Spacetime, + fderiv ℝ (fun y => Complex.exp (Complex.I * c (y - x₀))) y v * ((F.1 y : ℝ) : ℂ) := + integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable hint1 hint2 hint3 + (fun y _ => (he y).differentiableAt) (fun y _ => (hg y).differentiableAt) + calc ∫ y : Spacetime, Complex.exp (Complex.I * c (y - x₀)) * (((dirDeriv v F).1 y : ℝ) : ℂ) + = ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x₀)) * fderiv ℝ (fun y => ((F.1 y : ℝ) : ℂ)) y v := by + rw [hfun2] + _ = - ∫ y : Spacetime, + fderiv ℝ (fun y => Complex.exp (Complex.I * c (y - x₀))) y v * ((F.1 y : ℝ) : ℂ) := + key + _ = - ∫ y : Spacetime, + Complex.I * c v * (Complex.exp (Complex.I * c (y - x₀)) * ((F.1 y : ℝ) : ℂ)) := by + rw [hfun1] + _ = -(Complex.I * c v) * + ∫ y : Spacetime, Complex.exp (Complex.I * c (y - x₀)) * ((F.1 y : ℝ) : ℂ) := by + rw [integral_const_mul] + ring + +/-- **Iterated integration by parts**: +`(i c(v))^N ∫ e^{i c(y - x₀)} F(y) dy = (-1)^N ∫ e^{i c(y - x₀)} ∂_v^N F(y) dy`. -/ +theorem pow_mul_integral_expPhase_mul (c : Spacetime →L[ℝ] ℂ) (x₀ v : Spacetime) + (F : RealTestFunction) (N : ℕ) : + (Complex.I * c v) ^ N * + ∫ y : Spacetime, Complex.exp (Complex.I * c (y - x₀)) * (F.1 y : ℂ) = + (-1) ^ N * ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x₀)) * (((dirDeriv v)^[N] F).1 y : ℂ) := by + induction N with + | zero => simp + | succ n ih => + rw [Function.iterate_succ_apply', integral_expPhase_mul_dirDeriv] + linear_combination (Complex.I * c v) * ih + +/-! ### Bounds when the phase has nonnegative imaginary part -/ + +/-- `|exp(i w)| ≤ 1` when `Im w ≥ 0`. -/ +theorem norm_exp_I_mul_le_one_of_im_nonneg {w : ℂ} (hw : 0 ≤ w.im) : + ‖Complex.exp (Complex.I * w)‖ ≤ 1 := by + rw [Complex.norm_exp, Complex.I_mul_re] + exact Real.exp_le_one_iff.mpr (neg_nonpos.mpr hw) + +/-- `|F|` is integrable for a real test function `F`. -/ +theorem integrable_abs_testFunction (F : RealTestFunction) : + Integrable fun x : Spacetime => |F.1 x| := + ((continuous_testFunction F).integrable_of_hasCompactSupport F.2.2).abs + +/-- If `Im c(y - x₀) ≥ 0` on `tsupport G`, then +`|c(v)|^N |∫ e^{i c(y - x₀)} G(y) dy| ≤ ∫ |∂_v^N G|`. -/ +theorem norm_pow_mul_norm_integral_expPhase_le (c : Spacetime →L[ℝ] ℂ) (x₀ v : Spacetime) + (G : RealTestFunction) (N : ℕ) (hc : ∀ y ∈ tsupport G.1, 0 ≤ (c (y - x₀)).im) : + ‖c v‖ ^ N * ‖∫ y : Spacetime, Complex.exp (Complex.I * c (y - x₀)) * (G.1 y : ℂ)‖ ≤ + ∫ y : Spacetime, |((dirDeriv v)^[N] G).1 y| := by + have h := pow_mul_integral_expPhase_mul c x₀ v G N + have heq : ‖c v‖ ^ N * ‖∫ y : Spacetime, Complex.exp (Complex.I * c (y - x₀)) * (G.1 y : ℂ)‖ = + ‖∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x₀)) * (((dirDeriv v)^[N] G).1 y : ℂ)‖ := by + calc ‖c v‖ ^ N * ‖∫ y : Spacetime, Complex.exp (Complex.I * c (y - x₀)) * (G.1 y : ℂ)‖ + = ‖(Complex.I * c v) ^ N * + ∫ y : Spacetime, Complex.exp (Complex.I * c (y - x₀)) * (G.1 y : ℂ)‖ := by + rw [norm_mul, norm_pow, norm_mul, Complex.norm_I, one_mul] + _ = ‖(-1 : ℂ) ^ N * ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x₀)) * (((dirDeriv v)^[N] G).1 y : ℂ)‖ := by + rw [h] + _ = ‖∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x₀)) * (((dirDeriv v)^[N] G).1 y : ℂ)‖ := by + rw [norm_mul, norm_pow, norm_neg, norm_one, one_pow, one_mul] + rw [heq] + refine norm_integral_le_of_norm_le (integrable_abs_testFunction _) + (Filter.Eventually.of_forall fun y => ?_) + rw [norm_mul, Complex.norm_real, Real.norm_eq_abs] + by_cases hy : y ∈ tsupport G.1 + · exact mul_le_of_le_one_left (abs_nonneg _) (norm_exp_I_mul_le_one_of_im_nonneg (hc y hy)) + · have h0 : ((dirDeriv v)^[N] G).1 y = 0 := + image_eq_zero_of_notMem_tsupport fun hy' => hy (tsupport_iterate_dirDeriv_subset v G N hy') + simp [h0] + +/-- **The bound for the double integral**: if `Im c(y - x) ≥ 0` for `x ∈ tsupport F` and +`y ∈ tsupport G`, then `|c(v)|^N |∫∫ e^{i c(y - x)} F(x) G(y) dy dx| ≤ ‖F‖₁ ‖∂_v^N G‖₁`. -/ +theorem norm_pow_mul_norm_doubleIntegral_le (c : Spacetime →L[ℝ] ℂ) (v : Spacetime) + (F G : RealTestFunction) (N : ℕ) + (hc : ∀ x ∈ tsupport F.1, ∀ y ∈ tsupport G.1, 0 ≤ (c (y - x)).im) : + ‖c v‖ ^ N * ‖∫ x : Spacetime, ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ)‖ ≤ + (∫ x : Spacetime, |F.1 x|) * ∫ y : Spacetime, |((dirDeriv v)^[N] G).1 y| := by + set B : ℝ := ∫ y : Spacetime, |((dirDeriv v)^[N] G).1 y| + have hcv : 0 ≤ ‖c v‖ ^ N := pow_nonneg (norm_nonneg _) N + have hinner : ∀ x : Spacetime, ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ) = + (F.1 x : ℂ) * ∫ y : Spacetime, Complex.exp (Complex.I * c (y - x)) * (G.1 y : ℂ) := by + intro x + rw [← integral_const_mul] + congr 1 + funext y + ring + have hpt : ∀ x : Spacetime, ‖((‖c v‖ ^ N : ℝ) : ℂ) * ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ)‖ ≤ |F.1 x| * B := by + intro x + rw [hinner x, norm_mul, norm_mul, Complex.norm_real, Complex.norm_real, Real.norm_eq_abs, + Real.norm_eq_abs, abs_of_nonneg hcv] + by_cases hx : x ∈ tsupport F.1 + · have h1 := norm_pow_mul_norm_integral_expPhase_le c x v G N (fun y hy => hc x hx y hy) + have h2 := mul_le_mul_of_nonneg_left h1 (abs_nonneg (F.1 x)) + calc ‖c v‖ ^ N * (|F.1 x| * + ‖∫ y : Spacetime, Complex.exp (Complex.I * c (y - x)) * (G.1 y : ℂ)‖) + = |F.1 x| * (‖c v‖ ^ N * + ‖∫ y : Spacetime, Complex.exp (Complex.I * c (y - x)) * (G.1 y : ℂ)‖) := by ring + _ ≤ |F.1 x| * B := h2 + · have h0 : F.1 x = 0 := image_eq_zero_of_notMem_tsupport hx + simp [h0] + calc ‖c v‖ ^ N * ‖∫ x : Spacetime, ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ)‖ + = ‖((‖c v‖ ^ N : ℝ) : ℂ) * ∫ x : Spacetime, ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ)‖ := by + rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg hcv] + _ = ‖∫ x : Spacetime, ((‖c v‖ ^ N : ℝ) : ℂ) * ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ)‖ := by + rw [integral_const_mul] + _ ≤ ∫ x : Spacetime, |F.1 x| * B := + norm_integral_le_of_norm_le ((integrable_abs_testFunction F).mul_const B) + (Filter.Eventually.of_forall hpt) + _ = (∫ x : Spacetime, |F.1 x|) * B := integral_mul_const B _ + +/-! ### Choice of a direction -/ + +/-- The four coordinate directions of spacetime: `e 0 = (1, 0)` (time) and +`e (i + 1) = (0, 𝐞ᵢ)` (space). -/ +noncomputable def coordDir : Fin 4 → Spacetime := + Fin.cons ((1 : ℝ), (0 : EuclideanSpace ℝ (Fin 3))) + fun i : Fin 3 => ((0 : ℝ), EuclideanSpace.single i (1 : ℝ)) + +/-- `e 0 = (1, 0)`. -/ +@[simp] +theorem coordDir_zero : coordDir 0 = ((1 : ℝ), (0 : EuclideanSpace ℝ (Fin 3))) := + Fin.cons_zero _ _ + +/-- `e (i + 1) = (0, 𝐞ᵢ)`. -/ +@[simp] +theorem coordDir_succ (i : Fin 3) : + coordDir i.succ = ((0 : ℝ), EuclideanSpace.single i (1 : ℝ)) := + Fin.cons_succ _ _ _ + +/-- `∑_j |c(e_j)|² = |c(1, 0)|² + ∑_i |c(0, 𝐞ᵢ)|²`. -/ +theorem sum_norm_sq_coordDir (c : Spacetime →L[ℝ] ℂ) : + ∑ j : Fin 4, ‖c (coordDir j)‖ ^ 2 = + ‖c ((1 : ℝ), (0 : EuclideanSpace ℝ (Fin 3)))‖ ^ 2 + + ∑ i : Fin 3, ‖c ((0 : ℝ), EuclideanSpace.single i (1 : ℝ))‖ ^ 2 := by + rw [Fin.sum_univ_succ, coordDir_zero] + simp only [coordDir_succ] + +/-- If `∑_j |c(e_j)|² ≥ K²`, then `|c(e_j)| ≥ K / 2` for some coordinate direction `e_j`. -/ +theorem exists_le_norm_coordDir {c : Spacetime →L[ℝ] ℂ} {K : ℝ} + (h : K ^ 2 ≤ ∑ j : Fin 4, ‖c (coordDir j)‖ ^ 2) : ∃ j, K / 2 ≤ ‖c (coordDir j)‖ := by + by_contra hcon + simp only [not_exists, not_le] at hcon + rw [Fin.sum_univ_four] at h + have h0 := mul_self_lt_mul_self (norm_nonneg (c (coordDir 0))) (hcon 0) + have h1 := mul_self_lt_mul_self (norm_nonneg (c (coordDir 1))) (hcon 1) + have h2 := mul_self_lt_mul_self (norm_nonneg (c (coordDir 2))) (hcon 2) + have h3 := mul_self_lt_mul_self (norm_nonneg (c (coordDir 3))) (hcon 3) + linarith + +/-- `max_j ‖∂_{e_j}^N G‖₁`: the largest `L¹` norm of the `N`-th derivatives of `G` along the four +coordinate directions. -/ +noncomputable def maxCoordDerivNorm (G : RealTestFunction) (N : ℕ) : ℝ := + Finset.univ.sup' ⟨0, Finset.mem_univ 0⟩ + fun j : Fin 4 => ∫ y : Spacetime, |((dirDeriv (coordDir j))^[N] G).1 y| + +/-- `‖∂_{e_j}^N G‖₁ ≤ max_k ‖∂_{e_k}^N G‖₁`. -/ +theorem le_maxCoordDerivNorm (G : RealTestFunction) (N : ℕ) (j : Fin 4) : + ∫ y : Spacetime, |((dirDeriv (coordDir j))^[N] G).1 y| ≤ maxCoordDerivNorm G N := by + unfold maxCoordDerivNorm + exact Finset.le_sup' (fun j : Fin 4 => ∫ y : Spacetime, |((dirDeriv (coordDir j))^[N] G).1 y|) + (Finset.mem_univ j) + +/-- **Uniform decay bound**: if `Im c(y - x) ≥ 0` for `x ∈ tsupport F`, `y ∈ tsupport G`, and +`∑_j |c(e_j)|² ≥ K²` with `K > 0`, then +`|∫∫ e^{i c(y - x)} F(x) G(y) dy dx| ≤ (2/K)^N ‖F‖₁ max_j ‖∂_{e_j}^N G‖₁`. -/ +theorem norm_doubleIntegral_le (c : Spacetime →L[ℝ] ℂ) (F G : RealTestFunction) (N : ℕ) + {K : ℝ} (hK : 0 < K) (hc : ∀ x ∈ tsupport F.1, ∀ y ∈ tsupport G.1, 0 ≤ (c (y - x)).im) + (hsum : K ^ 2 ≤ ∑ j : Fin 4, ‖c (coordDir j)‖ ^ 2) : + ‖∫ x : Spacetime, ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ)‖ ≤ + (2 / K) ^ N * (∫ x : Spacetime, |F.1 x|) * maxCoordDerivNorm G N := by + obtain ⟨j, hj⟩ := exists_le_norm_coordDir hsum + have h4 := norm_pow_mul_norm_doubleIntegral_le c (coordDir j) F G N hc + have hA : 0 ≤ ∫ x : Spacetime, |F.1 x| := integral_nonneg fun x => abs_nonneg _ + have hpow : (K / 2) ^ N ≤ ‖c (coordDir j)‖ ^ N := + pow_le_pow_left₀ (div_nonneg hK.le zero_le_two) hj N + have hmax := le_maxCoordDerivNorm G N j + have hΦ := norm_nonneg (∫ x : Spacetime, ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ)) + have h5 : (K / 2) ^ N * ‖∫ x : Spacetime, ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ)‖ ≤ + (∫ x : Spacetime, |F.1 x|) * maxCoordDerivNorm G N := + (mul_le_mul_of_nonneg_right hpow hΦ).trans (h4.trans (mul_le_mul_of_nonneg_left hmax hA)) + have hinv : (2 / K) ^ N * (K / 2) ^ N = 1 := by + rw [← mul_pow, div_mul_div_comm, mul_comm (2 : ℝ) K, + div_self (mul_ne_zero hK.ne' two_ne_zero), one_pow] + have h2K : 0 ≤ (2 / K) ^ N := pow_nonneg (div_nonneg zero_le_two hK.le) N + calc ‖∫ x : Spacetime, ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ)‖ + = (2 / K) ^ N * ((K / 2) ^ N * ‖∫ x : Spacetime, ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ)‖) := by + rw [← mul_assoc, hinv, one_mul] + _ ≤ (2 / K) ^ N * ((∫ x : Spacetime, |F.1 x|) * maxCoordDerivNorm G N) := + mul_le_mul_of_nonneg_left h5 h2K + _ = (2 / K) ^ N * (∫ x : Spacetime, |F.1 x|) * maxCoordDerivNorm G N := by ring + +/-! ### The double integral over the product measure -/ + +/-- For a linear phase the integrand factorizes, so the double integral over the product measure +equals the iterated integral (no integrability hypothesis is needed). -/ +theorem integral_prod_expPhase_eq_iterated (c : Spacetime →L[ℝ] ℂ) (F G : RealTestFunction) : + ∫ z : Spacetime × Spacetime, Complex.exp (Complex.I * c (z.2 - z.1)) * (F.1 z.1 : ℂ) * + (G.1 z.2 : ℂ) ∂((volume : Measure Spacetime).prod volume) = + ∫ x : Spacetime, ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ) := by + have hfac : ∀ x y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ) = + (Complex.exp (-(Complex.I * c x)) * (F.1 x : ℂ)) * + (Complex.exp (Complex.I * c y) * (G.1 y : ℂ)) := by + intro x y + have h1 : Complex.I * c (y - x) = -(Complex.I * c x) + Complex.I * c y := by + rw [map_sub] + ring + rw [h1, Complex.exp_add] + ring + calc ∫ z : Spacetime × Spacetime, Complex.exp (Complex.I * c (z.2 - z.1)) * (F.1 z.1 : ℂ) * + (G.1 z.2 : ℂ) ∂((volume : Measure Spacetime).prod volume) + = ∫ z : Spacetime × Spacetime, (Complex.exp (-(Complex.I * c z.1)) * (F.1 z.1 : ℂ)) * + (Complex.exp (Complex.I * c z.2) * (G.1 z.2 : ℂ)) + ∂((volume : Measure Spacetime).prod volume) := by + congr 1 + funext z + exact hfac z.1 z.2 + _ = (∫ x : Spacetime, Complex.exp (-(Complex.I * c x)) * (F.1 x : ℂ)) * + ∫ y : Spacetime, Complex.exp (Complex.I * c y) * (G.1 y : ℂ) := + integral_prod_mul (fun x : Spacetime => Complex.exp (-(Complex.I * c x)) * (F.1 x : ℂ)) + (fun y : Spacetime => Complex.exp (Complex.I * c y) * (G.1 y : ℂ)) + _ = ∫ x : Spacetime, ∫ y : Spacetime, + Complex.exp (Complex.I * c (y - x)) * (F.1 x : ℂ) * (G.1 y : ℂ) := by + rw [← integral_mul_const] + congr 1 + funext x + rw [← integral_const_mul] + congr 1 + funext y + exact (hfac x y).symm + +/-- The uniform decay bound of `norm_doubleIntegral_le` for the double integral over the product +measure on `Spacetime × Spacetime`. -/ +theorem norm_integral_prod_expPhase_le (c : Spacetime →L[ℝ] ℂ) (F G : RealTestFunction) (N : ℕ) + {K : ℝ} (hK : 0 < K) (hc : ∀ x ∈ tsupport F.1, ∀ y ∈ tsupport G.1, 0 ≤ (c (y - x)).im) + (hsum : K ^ 2 ≤ ∑ j : Fin 4, ‖c (coordDir j)‖ ^ 2) : + ‖∫ z : Spacetime × Spacetime, Complex.exp (Complex.I * c (z.2 - z.1)) * (F.1 z.1 : ℂ) * + (G.1 z.2 : ℂ) ∂((volume : Measure Spacetime).prod volume)‖ ≤ + (2 / K) ^ N * (∫ x : Spacetime, |F.1 x|) * maxCoordDerivNorm G N := by + rw [integral_prod_expPhase_eq_iterated] + exact norm_doubleIntegral_le c F G N hK hc hsum + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Edges.lean b/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Edges.lean new file mode 100644 index 0000000000..3c6b7b8703 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Edges.lean @@ -0,0 +1,322 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Strip +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Decay +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Algebra + +/-! +# Microcausality, stages F and G: continuity at the edges of the strip, and locality + +Stages F (continuity at the edges) and G (conclusion) of the microcausality proof. Notation as +in `FreeField/Microcausality/Phase.lean`: +`ψ = boostPhase m`, `Φ = boostPhaseIntegral m F G`, `ω = ω_m(𝐩)`, +`dν(𝐩) = d³p / (2(2π)³ ω_m(𝐩))`, and `𝒢(ζ) = ∫ Φ(𝐩, ζ) dν(𝐩)`. The test functions `F`, `G` +are supported in the unit double cones at the origin and at `s 𝐞₁`, `s ≥ 2` (`s > 2` for G). + +* `boostPhaseCLM m ζ 𝐩`: the phase `w ↦ ψ(ζ, 𝐩, w)` as a continuous real-linear map + `Spacetime →L[ℝ] ℂ` (`boostPhaseCLM_apply`); + `sum_norm_sq_boostPhaseCLM_coordDir`: on the imaginary axis `ζ = iθ`, the coefficients + `c_j = ψ(iθ, 𝐩, e_j)` satisfy `∑_j |c_j|² = ω² + |𝐩|²`; + `im_boostPhaseCLM_nonneg`: `Im ψ(iθ, 𝐩, y - x) ≥ 0` for `θ ∈ [0, π]` on the supports. +* `norm_boostPhaseIntegral_mul_I_le` (uniform decay): for `θ ∈ [0, π]`, `m ≠ 0`, + `|Φ(𝐩, iθ)| ≤ (2/ω)³ ‖F‖₁ max_j ‖∂_{e_j}³ G‖₁` (the bound of + `Microcausality/Decay.lean` with `N = 3`, `K = ω`). +* `integrable_inv_dispersion_pow_four`: `ω_m(𝐩)⁻⁴` is integrable on `ℝ³` for `m ≠ 0`; + `norm_boostPhaseIntegral_mul_weight_le`: the resulting integrable majorant of the integrand of + `𝒢(iθ)`, uniform in `θ ∈ [0, π]`. +* `continuous_boostPhaseIntegral_mul_I`, `continuousOn_boostPhaseIntegral_mul_I`: `Φ(𝐩, iθ)` is + continuous in `𝐩` (for `θ ∈ [0, π]`) and in `θ ∈ [0, π]` (dominated by `|F(x)| |G(y)|`); + `continuousOn_integral_boostPhaseIntegral_mul_I`: `θ ↦ 𝒢(iθ)` is continuous on `[0, π]` for + `m > 0` (dominated convergence), the hypothesis of `im_oneParticleInner_eq_zero_of_continuousOn` + (`Microcausality/Strip.lean`, stage E: `𝒢` is constant on the open strip). +* `im_oneParticleInner_eq_zero_of_doubleCone` (G): `Im ⟨κ_m F, κ_m G⟩ = 0` for `m > 0`, `s > 2`; + `locality : Locality` (via `locality_of_im_eq_zero`, + `Microcausality/Algebra.lean`): the local algebras of the unit double cones at the origin and + at `s 𝐞₁`, `s > 2`, commute, for every mass `μ > 0` and every vacuum system. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +/-! ### The phase as a real-linear map of the spacetime point -/ + +/-- For fixed rapidity `ζ` and momentum `𝐩`, the phase `w ↦ ψ_m(ζ, 𝐩, w)` is real-linear in the +spacetime point `w`. -/ +noncomputable def boostPhaseLinearMap (m : ℝ) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + Spacetime →ₗ[ℝ] ℂ where + toFun := boostPhase m ζ p + map_add' v w := by + simp only [boostPhase, Prod.fst_add, Prod.snd_add, inner_add_right, Complex.ofReal_add] + ring + map_smul' a w := by + simp only [boostPhase, Prod.smul_fst, Prod.smul_snd, smul_eq_mul, real_inner_smul_right, + Complex.ofReal_mul, RingHom.id_apply, Complex.real_smul] + ring + +/-- The phase `w ↦ ψ_m(ζ, 𝐩, w)` as a continuous real-linear map `c_{ζ,𝐩} : Spacetime →L[ℝ] ℂ` +(spacetime is finite-dimensional). -/ +noncomputable def boostPhaseCLM (m : ℝ) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + Spacetime →L[ℝ] ℂ := + LinearMap.toContinuousLinearMap (boostPhaseLinearMap m ζ p) + +/-- `c_{ζ,𝐩}(w) = ψ_m(ζ, 𝐩, w)`. -/ +theorem boostPhaseCLM_apply (m : ℝ) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + boostPhaseCLM m ζ p w = boostPhase m ζ p w := + rfl + +/-- **The coefficients of the phase on the imaginary axis**: for `c = c_{iθ,𝐩}`, +`∑_j |c(e_j)|² = ω_m(𝐩)² + |𝐩|²`, with `c(e₀) = ω cos θ - i p₁ sin θ`, +`c(e₁) = -p₁ cos θ + i ω sin θ`, `c(e₂) = -p₂`, `c(e₃) = -p₃`. -/ +theorem sum_norm_sq_boostPhaseCLM_coordDir (m θ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + ∑ j : Fin 4, ‖boostPhaseCLM m ((θ : ℂ) * Complex.I) p (coordDir j)‖ ^ 2 = + dispersion m p ^ 2 + ‖p‖ ^ 2 := by + have h0 : ⟪e₁, p⟫_ℝ = p 0 := by + rw [real_inner_comm] + exact inner_euclideanSingle_one p 0 + have e0 : e₁ 0 = 1 := by simp [e₁] + have e1 : e₁ 1 = 0 := by simp [e₁] + have e2 : e₁ 2 = 0 := by simp [e₁] + rw [sum_norm_sq_coordDir, Fin.sum_univ_three, EuclideanSpace.real_norm_sq_eq, + Fin.sum_univ_three] + simp only [boostPhaseCLM_apply, boostPhase_ofReal_mul_I, Complex.sq_norm, + Complex.normSq_add_mul_I, inner_zero_right, inner_euclideanSingle_one, h0, e0, e1, e2] + linear_combination (dispersion m p ^ 2 + p 0 ^ 2) * Real.sin_sq_add_cos_sq θ + +/-- **Positivity on the supports**: for `θ ∈ [0, π]`, `F` supported in the unit double cone at +the origin and `G` in the unit double cone at `s 𝐞₁`, `s ≥ 2`, `Im c_{iθ,𝐩}(y - x) ≥ 0` for +`x ∈ tsupport F`, `y ∈ tsupport G`. -/ +theorem im_boostPhaseCLM_nonneg {m s θ : ℝ} (hs : 2 ≤ s) (hθ₀ : 0 ≤ θ) (hθπ : θ ≤ Real.pi) + (p : EuclideanSpace ℝ (Fin 3)) {F G : RealTestFunction} + (hF : tsupport F.1 ⊆ doubleCone 0 1) (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) : + ∀ x ∈ tsupport F.1, ∀ y ∈ tsupport G.1, + 0 ≤ (boostPhaseCLM m ((θ : ℂ) * Complex.I) p (y - x)).im := by + intro x hx y hy + have h := boostPhase_im_nonneg m 0 θ p (y - x) hθ₀ hθπ + (abs_fst_sub_le_of_mem_doubleCone hs (hF hx) (hG hy)) + rw [Complex.ofReal_zero, zero_add] at h + rw [boostPhaseCLM_apply] + exact h + +/-! ### Uniform decay in the momentum -/ + +/-- **Uniform decay of `Φ` on the closed strip**: for `m ≠ 0`, `θ ∈ [0, π]` and test functions +supported in the two unit double cones (`s ≥ 2`), +`|Φ(𝐩, iθ)| ≤ (2/ω_m(𝐩))³ ‖F‖₁ max_j ‖∂_{e_j}³ G‖₁`. -/ +theorem norm_boostPhaseIntegral_mul_I_le {m s θ : ℝ} (hm : m ≠ 0) (hs : 2 ≤ s) (hθ₀ : 0 ≤ θ) + (hθπ : θ ≤ Real.pi) {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) (p : EuclideanSpace ℝ (Fin 3)) : + ‖boostPhaseIntegral m F G p ((θ : ℂ) * Complex.I)‖ ≤ + (2 / dispersion m p) ^ 3 * (∫ x : Spacetime, |F.1 x|) * maxCoordDerivNorm G 3 := by + have hsum : dispersion m p ^ 2 ≤ + ∑ j : Fin 4, ‖boostPhaseCLM m ((θ : ℂ) * Complex.I) p (coordDir j)‖ ^ 2 := by + rw [sum_norm_sq_boostPhaseCLM_coordDir] + exact le_add_of_nonneg_right (sq_nonneg _) + have h := norm_integral_prod_expPhase_le (boostPhaseCLM m ((θ : ℂ) * Complex.I) p) F G 3 + (dispersion_pos hm p) (im_boostPhaseCLM_nonneg hs hθ₀ hθπ p hF hG) hsum + simp only [boostPhaseCLM_apply] at h + unfold boostPhaseIntegral + exact h + +/-- `ω_m(𝐩)⁻⁴` is integrable on `ℝ³` for `m ≠ 0` (it is bounded by +`(1 + m⁻²)² (1 + |𝐩|²)⁻²`, and `3 < 4`). -/ +theorem integrable_inv_dispersion_pow_four {m : ℝ} (hm : m ≠ 0) : + Integrable fun p : EuclideanSpace ℝ (Fin 3) => (dispersion m p ^ 4)⁻¹ := by + have hm2 : 0 < m ^ 2 := by positivity + have hint : Integrable fun p : EuclideanSpace ℝ (Fin 3) => + ((1 : ℝ) + ‖p‖ ^ 2) ^ (-(4 : ℝ) / 2) := + integrable_rpow_neg_one_add_norm_sq (by rw [finrank_euclideanSpace_fin]; norm_num) + refine (hint.const_mul ((1 + (m ^ 2)⁻¹) ^ 2)).mono' ?_ (Filter.Eventually.of_forall fun p => ?_) + · exact (((continuous_dispersion m).pow 4).inv₀ fun p => + pow_ne_zero 4 (dispersion_pos hm p).ne').aestronglyMeasurable + · change ‖(dispersion m p ^ 4)⁻¹‖ ≤ (1 + (m ^ 2)⁻¹) ^ 2 * ((1 : ℝ) + ‖p‖ ^ 2) ^ (-(4 : ℝ) / 2) + have hω := dispersion_pos hm p + have hq : 0 < 1 + ‖p‖ ^ 2 := by positivity + have hW : 0 < dispersion m p ^ 2 := pow_pos hω 2 + have hqW : 1 + ‖p‖ ^ 2 ≤ (1 + (m ^ 2)⁻¹) * dispersion m p ^ 2 := by + rw [dispersion_sq, add_mul, one_mul, mul_add, inv_mul_cancel₀ hm2.ne'] + have : 0 ≤ (m ^ 2)⁻¹ * ‖p‖ ^ 2 := mul_nonneg (inv_nonneg.2 hm2.le) (sq_nonneg _) + linarith + have h1 : (dispersion m p ^ 2)⁻¹ ≤ (1 + (m ^ 2)⁻¹) * (1 + ‖p‖ ^ 2)⁻¹ := by + rw [← div_eq_mul_inv, le_div_iff₀ hq] + calc (dispersion m p ^ 2)⁻¹ * (1 + ‖p‖ ^ 2) + ≤ (dispersion m p ^ 2)⁻¹ * ((1 + (m ^ 2)⁻¹) * dispersion m p ^ 2) := + mul_le_mul_of_nonneg_left hqW (inv_nonneg.2 hW.le) + _ = (1 + (m ^ 2)⁻¹) * ((dispersion m p ^ 2)⁻¹ * dispersion m p ^ 2) := by ring + _ = 1 + (m ^ 2)⁻¹ := by rw [inv_mul_cancel₀ hW.ne', mul_one] + have h2 := pow_le_pow_left₀ (inv_nonneg.2 hW.le) h1 2 + rw [Real.norm_eq_abs, abs_of_pos (inv_pos.2 (pow_pos hω 4)), + show -(4 : ℝ) / 2 = -2 by norm_num, Real.rpow_neg hq.le, Real.rpow_two] + calc (dispersion m p ^ 4)⁻¹ = ((dispersion m p ^ 2)⁻¹) ^ 2 := by ring + _ ≤ ((1 + (m ^ 2)⁻¹) * (1 + ‖p‖ ^ 2)⁻¹) ^ 2 := h2 + _ = (1 + (m ^ 2)⁻¹) ^ 2 * ((1 + ‖p‖ ^ 2) ^ 2)⁻¹ := by rw [mul_pow, inv_pow] + +/-- **The integrable majorant on the closed strip**: for `m ≠ 0`, `θ ∈ [0, π]` and test functions +supported in the two unit double cones (`s ≥ 2`), the integrand of `𝒢(iθ)` is bounded by +`8 ‖F‖₁ max_j ‖∂_{e_j}³ G‖₁ / (2(2π)³) · ω_m(𝐩)⁻⁴`, independently of `θ`. -/ +theorem norm_boostPhaseIntegral_mul_weight_le {m s θ : ℝ} (hm : m ≠ 0) (hs : 2 ≤ s) + (hθ₀ : 0 ≤ θ) (hθπ : θ ≤ Real.pi) {F G : RealTestFunction} + (hF : tsupport F.1 ⊆ doubleCone 0 1) (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) + (p : EuclideanSpace ℝ (Fin 3)) : + ‖boostPhaseIntegral m F G p ((θ : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)‖ ≤ + 8 * (∫ x : Spacetime, |F.1 x|) * maxCoordDerivNorm G 3 / (2 * (2 * Real.pi) ^ 3) * + (dispersion m p ^ 4)⁻¹ := by + have hω := dispersion_pos hm p + have hc : 0 < 2 * (2 * Real.pi) ^ 3 := by positivity + have hwt : 0 < 1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) := one_div_pos.2 (mul_pos hc hω) + rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos hwt] + calc ‖boostPhaseIntegral m F G p ((θ : ℂ) * Complex.I)‖ * + (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p)) + ≤ (2 / dispersion m p) ^ 3 * (∫ x : Spacetime, |F.1 x|) * maxCoordDerivNorm G 3 * + (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p)) := + mul_le_mul_of_nonneg_right (norm_boostPhaseIntegral_mul_I_le hm hs hθ₀ hθπ hF hG p) + hwt.le + _ = 8 * (∫ x : Spacetime, |F.1 x|) * maxCoordDerivNorm G 3 / (2 * (2 * Real.pi) ^ 3) * + (dispersion m p ^ 4)⁻¹ := by + ring + +/-! ### Continuity of `Φ` in the momentum and in `θ ∈ [0, π]` -/ + +/-- `ζ ↦ ψ_m(ζ, 𝐩, w)` is continuous. -/ +theorem continuous_boostPhase_rapidity (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + Continuous fun ζ : ℂ => boostPhase m ζ p w := by + have hc := Complex.continuous_cosh + have hs := Complex.continuous_sinh + unfold boostPhase + exact (continuous_const.mul ((continuous_const.mul hc).add (continuous_const.mul hs))).sub + (((continuous_const.mul ((continuous_const.mul hs).add (continuous_const.mul hc))).add + continuous_const).sub continuous_const) + +/-- `θ ↦ ψ_m(iθ, 𝐩, w)` is continuous. -/ +theorem continuous_boostPhase_mul_I (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + Continuous fun θ : ℝ => boostPhase m ((θ : ℂ) * Complex.I) p w := + (continuous_boostPhase_rapidity m p w).comp (Complex.continuous_ofReal.mul continuous_const) + +/-- `𝐩 ↦ ψ_m(ζ, 𝐩, w)` is continuous. -/ +theorem continuous_boostPhase_momentum (m : ℝ) (ζ : ℂ) (w : Spacetime) : + Continuous fun p : EuclideanSpace ℝ (Fin 3) => boostPhase m ζ p w := by + have h4 : Continuous fun p : EuclideanSpace ℝ (Fin 3) => ((dispersion m p : ℝ) : ℂ) := + Complex.continuous_ofReal.comp (continuous_dispersion m) + have h5 : Continuous fun p : EuclideanSpace ℝ (Fin 3) => ((⟪e₁, p⟫_ℝ : ℝ) : ℂ) := + Complex.continuous_ofReal.comp (continuous_const.inner continuous_id) + have h3 : Continuous fun p : EuclideanSpace ℝ (Fin 3) => ((⟪p, w.2⟫_ℝ : ℝ) : ℂ) := + Complex.continuous_ofReal.comp (continuous_id.inner continuous_const) + unfold boostPhase + exact (h4.mul continuous_const).sub (((h5.mul continuous_const).add h3).sub + (h5.mul continuous_const)) + +/-- Pointwise domination of the integrand of `Φ(𝐩, iθ)` for `θ ∈ [0, π]` and test functions +supported in the two unit double cones (`s ≥ 2`): +`|e^{iψ(iθ, 𝐩, y - x)} F(x) G(y)| ≤ |F(x)| |G(y)|`. -/ +theorem norm_boostPhaseIntegrand_mul_I_le {m s θ : ℝ} (hs : 2 ≤ s) (hθ₀ : 0 ≤ θ) + (hθπ : θ ≤ Real.pi) {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) (p : EuclideanSpace ℝ (Fin 3)) + (z : Spacetime × Spacetime) : + ‖Complex.exp (Complex.I * boostPhase m ((θ : ℂ) * Complex.I) p (z.2 - z.1)) * + ((F.1 z.1 : ℝ) : ℂ) * ((G.1 z.2 : ℝ) : ℂ)‖ ≤ |F.1 z.1| * |G.1 z.2| := by + rw [norm_mul, norm_mul, Complex.norm_real, Complex.norm_real, Real.norm_eq_abs, + Real.norm_eq_abs] + by_cases hx : z.1 ∈ tsupport F.1 + · by_cases hy : z.2 ∈ tsupport G.1 + · have hw := abs_fst_sub_le_of_mem_doubleCone hs (hF hx) (hG hy) + have h1 := norm_exp_I_mul_boostPhase_le_one m 0 θ p (z.2 - z.1) hθ₀ hθπ hw + rw [Complex.ofReal_zero, zero_add] at h1 + have h2 := mul_le_mul_of_nonneg_right h1 (abs_nonneg (F.1 z.1)) + have h3 := mul_le_mul_of_nonneg_right h2 (abs_nonneg (G.1 z.2)) + rwa [one_mul] at h3 + · have h0 : G.1 z.2 = 0 := image_eq_zero_of_notMem_tsupport hy + simp [h0] + · have h0 : F.1 z.1 = 0 := image_eq_zero_of_notMem_tsupport hx + simp [h0] + +/-- For `θ ∈ [0, π]` and test functions supported in the two unit double cones (`s ≥ 2`), +`𝐩 ↦ Φ(𝐩, iθ)` is continuous. -/ +theorem continuous_boostPhaseIntegral_mul_I {m s θ : ℝ} (hs : 2 ≤ s) (hθ₀ : 0 ≤ θ) + (hθπ : θ ≤ Real.pi) {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) : + Continuous fun p : EuclideanSpace ℝ (Fin 3) => + boostPhaseIntegral m F G p ((θ : ℂ) * Complex.I) := by + unfold boostPhaseIntegral + refine continuous_of_dominated + (bound := fun z : Spacetime × Spacetime => |F.1 z.1| * |G.1 z.2|) + (fun p => (integrable_boostPhaseIntegrand m F G p _).aestronglyMeasurable) + (fun p => Filter.Eventually.of_forall fun z => + norm_boostPhaseIntegrand_mul_I_le hs hθ₀ hθπ hF hG p z) + ((integrable_abs_testFunction F).mul_prod (integrable_abs_testFunction G)) + (Filter.Eventually.of_forall fun z => ?_) + exact ((Complex.continuous_exp.comp (continuous_const.mul + (continuous_boostPhase_momentum m _ (z.2 - z.1)))).mul continuous_const).mul + continuous_const + +/-- For test functions supported in the two unit double cones (`s ≥ 2`), `θ ↦ Φ(𝐩, iθ)` is +continuous on `[0, π]` (continuity of a parametric integral with the majorant `|F(x)| |G(y)|`). -/ +theorem continuousOn_boostPhaseIntegral_mul_I {m s : ℝ} (hs : 2 ≤ s) {F G : RealTestFunction} + (hF : tsupport F.1 ⊆ doubleCone 0 1) (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) + (p : EuclideanSpace ℝ (Fin 3)) : + ContinuousOn (fun θ : ℝ => boostPhaseIntegral m F G p ((θ : ℂ) * Complex.I)) + (Set.Icc 0 Real.pi) := by + unfold boostPhaseIntegral + refine continuousOn_of_dominated + (bound := fun z : Spacetime × Spacetime => |F.1 z.1| * |G.1 z.2|) + (fun θ _ => (integrable_boostPhaseIntegrand m F G p _).aestronglyMeasurable) + (fun θ hθ => Filter.Eventually.of_forall fun z => + norm_boostPhaseIntegrand_mul_I_le hs hθ.1 hθ.2 hF hG p z) + ((integrable_abs_testFunction F).mul_prod (integrable_abs_testFunction G)) + (Filter.Eventually.of_forall fun z => ?_) + exact (((Complex.continuous_exp.comp (continuous_const.mul + (continuous_boostPhase_mul_I m p (z.2 - z.1)))).mul continuous_const).mul + continuous_const).continuousOn + +/-! ### Continuity of `𝒢(iθ)` on `[0, π]` -/ + +/-- **Continuity at the edges**: for `m > 0` and test functions supported in the two unit double +cones (`s ≥ 2`), `θ ↦ 𝒢(iθ) = ∫ Φ(𝐩, iθ) dν(𝐩)` is continuous on `[0, π]` (dominated +convergence with the majorant `C ω_m(𝐩)⁻⁴` of `norm_boostPhaseIntegral_mul_weight_le`). -/ +theorem continuousOn_integral_boostPhaseIntegral_mul_I {m s : ℝ} (hm : 0 < m) (hs : 2 ≤ s) + {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) : + ContinuousOn (fun θ : ℝ => ∫ p, boostPhaseIntegral m F G p ((θ : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)) (Set.Icc 0 Real.pi) := by + refine continuousOn_of_dominated + (bound := fun p : EuclideanSpace ℝ (Fin 3) => + 8 * (∫ x : Spacetime, |F.1 x|) * maxCoordDerivNorm G 3 / (2 * (2 * Real.pi) ^ 3) * + (dispersion m p ^ 4)⁻¹) + (fun θ hθ => ((continuous_boostPhaseIntegral_mul_I hs hθ.1 hθ.2 hF hG).mul + (continuous_shellWeight hm.ne')).aestronglyMeasurable) + (fun θ hθ => Filter.Eventually.of_forall fun p => + norm_boostPhaseIntegral_mul_weight_le hm.ne' hs hθ.1 hθ.2 hF hG p) + ((integrable_inv_dispersion_pow_four hm.ne').const_mul _) + (Filter.Eventually.of_forall fun p => + (continuousOn_boostPhaseIntegral_mul_I hs hF hG p).mul continuousOn_const) + +/-! ### G. The conclusion -/ + +/-- **The one-particle inner product is real for test functions in two separated unit double +cones**: for `m > 0`, `s > 2`, `F` supported in the unit double cone at the origin and `G` in the +unit double cone at `s 𝐞₁`, `Im ⟨κ_m F, κ_m G⟩ = 0` (`𝒢` is constant on the open strip, stage E, +and continuous on `[0, π]`, stage F, so `𝒢(0) = 𝒢(iπ)`). -/ +theorem im_oneParticleInner_eq_zero_of_doubleCone {m s : ℝ} (hm : 0 < m) (hs : 2 < s) + {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) : + (oneParticleInner m F G).im = 0 := + im_oneParticleInner_eq_zero_of_continuousOn hm hs hF hG + (continuousOn_integral_boostPhaseIntegral_mul_I hm hs.le hF hG) + +/-- **Microcausality**: `Locality` holds, i.e. for every mass `μ > 0`, every +`s > 2` and every vacuum system of mass `μ`, the local algebras of the unit double cones at the +origin and at `s 𝐞₁` commute. -/ +theorem locality : Locality := + locality_of_im_eq_zero fun _ _ hμ hs _ _ hF hG => + im_oneParticleInner_eq_zero_of_doubleCone hμ hs hF hG + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Phase.lean b/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Phase.lean new file mode 100644 index 0000000000..f20d85dd2c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Phase.lean @@ -0,0 +1,494 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Lorentz + +/-! +# Microcausality, stages B–D: the complexified boost phase + +Stages B, C and D of the microcausality proof. Notation: +`ω = ω_m(𝐩)`, `p₁ = ⟪𝐞₁, 𝐩⟫`, `w₁ = ⟪𝐞₁, 𝐰⟫` for `w = (w⁰, 𝐰)`. + +* `sub_mem_wedge_of_mem_doubleCone` (B): for `x` in the unit double cone at the origin and `y` in + the unit double cone at `s 𝐞₁`, the difference `w = y - x` satisfies `w₁ - |w⁰| > s - 2`. +* `boostPhase m ζ 𝐩 w` (C): the complexified boost phase + `ψ(ζ, 𝐩, w) = ω (w⁰ cosh ζ + w₁ sinh ζ) - (p₁ (w⁰ sinh ζ + w₁ cosh ζ) + ⟪𝐩, 𝐰⟫ - p₁ w₁)`; + `boostPhase_ofReal`: for real `ζ = σ` it is the Minkowski product `⟨(ω, 𝐩), Λ(σ) w⟩`; + `boostPhase_zero`: `ψ(0, 𝐩, w) = ω w⁰ - ⟪𝐩, 𝐰⟫`; + `boostPhase_add_ofReal`: the shift identity `ψ(σ + ζ, 𝐩, w) = ψ(ζ, S(-σ) 𝐩, w)` + (`S = shellBoost m`); + `boostPhase_im`, `boostPhase_im_ge`, `boostPhase_im_nonneg`: + `Im ψ(σ + iθ, 𝐩, w) = sin θ (ω' w₁ - p₁' w⁰) ≥ sin θ ω' (w₁ - |w⁰|)` with `(ω', 𝐩') = S(-σ)` + applied to `𝐩`, nonnegative for `θ ∈ [0, π]` in the right wedge `|w⁰| ≤ w₁`, so + `|exp(iψ)| ≤ 1` there (`norm_exp_I_mul_boostPhase_le_one`), and + `|exp(iψ(σ + iθ, 𝐩, y - x))| ≤ exp(-sin θ ω' (s - 2))` for `x`, `y` in the two double cones + (`norm_exp_I_mul_boostPhase_le_of_mem_doubleCone`); + `axisReflection`: `𝐩 ↦ 2 p₁ 𝐞₁ - 𝐩`, i.e. `(p₁, p₂, p₃) ↦ (p₁, -p₂, -p₃)` + (`axisReflection_apply_coord`), a linear isometry; + `boostPhase_pi_mul_I`, `exp_I_mul_boostPhase_pi_mul_I`: `ψ(iπ, 𝐩, w) = -ψ(0, 𝐩', w)` with the + reflected momentum `𝐩'`, so `exp(iψ(iπ, 𝐩, w)) = conj exp(iψ(0, 𝐩', w))`. +* `boostPhaseIntegral m F G 𝐩 ζ` (B): `Φ(𝐩, ζ) = ∫∫ exp(iψ(ζ, 𝐩, y - x)) F(x) G(y) dx dy` (over + the product measure), whose integrand is integrable (`integrable_boostPhaseIntegrand`); + `conj_oneParticle_mul_oneParticle`: `conj(κF(𝐩)) κG(𝐩) = Φ(𝐩, 0)`; + `oneParticleInner_eq_integral_boostPhaseIntegral`: `⟨κF, κG⟩ = ∫ Φ(𝐩, 0) dν(𝐩)`. +* `integral_boostPhaseIntegral_add_ofReal` (D): `∫ Φ(𝐩, σ + ζ) dν = ∫ Φ(𝐩, ζ) dν` for real `σ`, + every complex `ζ` and `m ≠ 0` (the shift identity and the boost invariance of `dν`); the + instance `ζ = iθ` is `integral_boostPhaseIntegral_add_mul_I`. +* The boundary value at `iπ` (an ingredient of stage G): `boostPhaseIntegral_pi_mul_I`: + `Φ(𝐩, iπ) = conj Φ(𝐩', 0)`; `integral_boostPhaseIntegral_pi_mul_I`: + `∫ Φ(𝐩, iπ) dν = conj ⟨κF, κG⟩`; `im_oneParticleInner_eq_zero_of_boundary_eq`: if + `∫ Φ(𝐩, 0) dν = ∫ Φ(𝐩, iπ) dν` (the content of stages E and F), then `Im ⟨κF, κG⟩ = 0`. + +Here `dν(𝐩) = d³p / (2(2π)³ ω_m(𝐩))` is the weight of `oneParticleInner`. Holomorphy and decay +are proved in `Microcausality/Strip.lean`, `Microcausality/Decay.lean` and +`Microcausality/Edges.lean` (stages E and F). +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +/-! ### B. The wedge geometry of two separated unit double cones -/ + +/-- For `x` in the unit double cone at the origin and `y` in the unit double cone at `s 𝐞₁`, the +difference `w = y - x` lies in the right wedge with margin `s - 2`: `⟪𝐞₁, 𝐰⟫ - |w⁰| > s - 2`. -/ +theorem sub_mem_wedge_of_mem_doubleCone {s : ℝ} {x y : Spacetime} (hx : x ∈ doubleCone 0 1) + (hy : y ∈ doubleCone (0, s • e₁) 1) : + s - 2 < ⟪e₁, (y - x).2⟫_ℝ - |(y - x).1| := by + have hx' : |x.1 - 0| + ‖x.2 - 0‖ < 1 := hx + have hy' : |y.1 - 0| + ‖y.2 - s • e₁‖ < 1 := hy + simp only [sub_zero] at hx' hy' + have h1 : ⟪e₁, (y - x).2⟫_ℝ = ⟪e₁, y.2 - s • e₁⟫_ℝ + s - ⟪e₁, x.2⟫_ℝ := by + rw [Prod.snd_sub, inner_sub_right, inner_sub_right, real_inner_smul_right, inner_e₁_self] + ring + have h2 : |(y - x).1| ≤ |y.1| + |x.1| := by + rw [Prod.fst_sub, abs_le] + constructor <;> linarith [le_abs_self y.1, neg_abs_le y.1, le_abs_self x.1, neg_abs_le x.1] + have h3 : -‖y.2 - s • e₁‖ ≤ ⟪e₁, y.2 - s • e₁⟫_ℝ := by + have := abs_inner_e₁_le (y.2 - s • e₁) + linarith [neg_abs_le ⟪e₁, y.2 - s • e₁⟫_ℝ] + have h4 : ⟪e₁, x.2⟫_ℝ ≤ ‖x.2‖ := by + have := abs_inner_e₁_le x.2 + linarith [le_abs_self ⟪e₁, x.2⟫_ℝ] + linarith + +/-- For `s ≥ 2` the difference of points of the two unit double cones lies in the closed right +wedge `|w⁰| ≤ ⟪𝐞₁, 𝐰⟫`. -/ +theorem abs_fst_sub_le_of_mem_doubleCone {s : ℝ} (hs : 2 ≤ s) {x y : Spacetime} + (hx : x ∈ doubleCone 0 1) (hy : y ∈ doubleCone (0, s • e₁) 1) : + |(y - x).1| ≤ ⟪e₁, (y - x).2⟫_ℝ := by + have h := sub_mem_wedge_of_mem_doubleCone hx hy + linarith + +/-! ### C. The complexified boost phase -/ + +/-- The complexified boost phase `ψ_m(ζ, 𝐩, w)` for a complex rapidity `ζ`: +`ω (w⁰ cosh ζ + w₁ sinh ζ) - (p₁ (w⁰ sinh ζ + w₁ cosh ζ) + ⟪𝐩, 𝐰⟫ - p₁ w₁)` with `ω = ω_m(𝐩)`, +`p₁ = ⟪𝐞₁, 𝐩⟫`, `w₁ = ⟪𝐞₁, 𝐰⟫`. For real `ζ = σ` it is `⟨(ω, 𝐩), Λ(σ) w⟩` +(`boostPhase_ofReal`). -/ +noncomputable def boostPhase (m : ℝ) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : ℂ := + (dispersion m p : ℂ) * ((w.1 : ℂ) * Complex.cosh ζ + (⟪e₁, w.2⟫_ℝ : ℂ) * Complex.sinh ζ) - + ((⟪e₁, p⟫_ℝ : ℂ) * ((w.1 : ℂ) * Complex.sinh ζ + (⟪e₁, w.2⟫_ℝ : ℂ) * Complex.cosh ζ) + + (⟪p, w.2⟫_ℝ : ℂ) - (⟪e₁, p⟫_ℝ : ℂ) * (⟪e₁, w.2⟫_ℝ : ℂ)) + +/-- At `ζ = 0` the phase is the plane-wave phase `ω w⁰ - ⟪𝐩, 𝐰⟫`. -/ +theorem boostPhase_zero (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + boostPhase m 0 p w = ((dispersion m p * w.1 - ⟪p, w.2⟫_ℝ : ℝ) : ℂ) := by + unfold boostPhase + rw [Complex.cosh_zero, Complex.sinh_zero] + push_cast + ring + +/-- The Minkowski product `⟨(ω, 𝐩), Λ(σ) w⟩` in coordinates. -/ +theorem minkowskiForm_onShell_boost (m σ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + minkowskiForm (onShell m p) (boost σ w) = + dispersion m p * (w.1 * Real.cosh σ + ⟪e₁, w.2⟫_ℝ * Real.sinh σ) - + (⟪e₁, p⟫_ℝ * (w.1 * Real.sinh σ + ⟪e₁, w.2⟫_ℝ * Real.cosh σ) + ⟪p, w.2⟫_ℝ - + ⟪e₁, p⟫_ℝ * ⟪e₁, w.2⟫_ℝ) := by + obtain ⟨w0, wv⟩ := w + simp only [minkowskiForm, onShell, boost_apply, boostCLM_apply] + rw [inner_add_right, real_inner_smul_right, real_inner_comm p e₁] + ring + +/-- For real rapidity `σ` the phase is the Minkowski product of the on-shell momentum with the +boosted point: `ψ(σ, 𝐩, w) = ⟨(ω_m(𝐩), 𝐩), Λ(σ) w⟩`. -/ +theorem boostPhase_ofReal (m σ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + boostPhase m (σ : ℂ) p w = ((minkowskiForm (onShell m p) (boost σ w) : ℝ) : ℂ) := by + rw [minkowskiForm_onShell_boost] + unfold boostPhase + push_cast + ring + +/-- **The shift identity**: a real shift of the rapidity is a boost of the momentum, +`ψ(σ + ζ, 𝐩, w) = ψ(ζ, S(-σ) 𝐩, w)` for real `σ` and complex `ζ`, `S = shellBoost m`. -/ +theorem boostPhase_add_ofReal (m σ : ℝ) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + boostPhase m ((σ : ℂ) + ζ) p w = boostPhase m ζ (shellBoost m (-σ) p) w := by + have hω : dispersion m (shellBoost m (-σ) p) = + Real.cosh σ * dispersion m p - Real.sinh σ * ⟪e₁, p⟫_ℝ := by + rw [dispersion_shellBoost, Real.cosh_neg, Real.sinh_neg] + ring + have h1 : ⟪e₁, shellBoost m (-σ) p⟫_ℝ = + Real.cosh σ * ⟪e₁, p⟫_ℝ - Real.sinh σ * dispersion m p := by + rw [shellBoost, inner_e₁_add_smul, Real.cosh_neg, Real.sinh_neg] + ring + have h2 : ⟪shellBoost m (-σ) p, w.2⟫_ℝ = ⟪p, w.2⟫_ℝ + + (-Real.sinh σ * dispersion m p + (Real.cosh σ - 1) * ⟪e₁, p⟫_ℝ) * ⟪e₁, w.2⟫_ℝ := by + rw [shellBoost, inner_add_left, real_inner_smul_left, Real.cosh_neg, Real.sinh_neg] + unfold boostPhase + rw [hω, h1, h2, Complex.cosh_add, Complex.sinh_add] + push_cast + ring + +/-- The shift identity on the line `Im ζ = θ`: `ψ(σ + iθ, 𝐩, w) = ψ(iθ, S(-σ) 𝐩, w)`. -/ +theorem boostPhase_add_mul_I (m σ θ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + boostPhase m ((σ : ℂ) + (θ : ℂ) * Complex.I) p w = + boostPhase m ((θ : ℂ) * Complex.I) (shellBoost m (-σ) p) w := + boostPhase_add_ofReal m σ _ p w + +/-- For real rapidity, `ψ(σ, 𝐩, w) = ψ(0, S(-σ) 𝐩, w)`. -/ +theorem boostPhase_ofReal_eq_zero_shellBoost (m σ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) + (w : Spacetime) : + boostPhase m (σ : ℂ) p w = boostPhase m 0 (shellBoost m (-σ) p) w := by + have h := boostPhase_add_ofReal m σ 0 p w + rwa [add_zero] at h + +/-- The phase on the imaginary axis, split into real and imaginary parts: +`ψ(iθ, 𝐪, w) = ((ω w⁰ - q₁ w₁) cos θ - ⟪𝐪, 𝐰⟫ + q₁ w₁) + i sin θ (ω w₁ - q₁ w⁰)`. -/ +theorem boostPhase_ofReal_mul_I (m θ : ℝ) (q : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + boostPhase m ((θ : ℂ) * Complex.I) q w = + (((dispersion m q * w.1 - ⟪e₁, q⟫_ℝ * ⟪e₁, w.2⟫_ℝ) * Real.cos θ - ⟪q, w.2⟫_ℝ + + ⟪e₁, q⟫_ℝ * ⟪e₁, w.2⟫_ℝ : ℝ) : ℂ) + + ((Real.sin θ * (dispersion m q * ⟪e₁, w.2⟫_ℝ - ⟪e₁, q⟫_ℝ * w.1) : ℝ) : ℂ) * + Complex.I := by + unfold boostPhase + rw [Complex.cosh_mul_I, Complex.sinh_mul_I] + push_cast + ring + +/-- `Im ψ(iθ, 𝐪, w) = sin θ (ω_m(𝐪) w₁ - q₁ w⁰)`. -/ +theorem boostPhase_ofReal_mul_I_im (m θ : ℝ) (q : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + (boostPhase m ((θ : ℂ) * Complex.I) q w).im = + Real.sin θ * (dispersion m q * ⟪e₁, w.2⟫_ℝ - ⟪e₁, q⟫_ℝ * w.1) := by + rw [boostPhase_ofReal_mul_I, Complex.add_im, Complex.ofReal_im, Complex.im_ofReal_mul, + Complex.I_im, mul_one, zero_add] + +/-- `Re ψ(iθ, 𝐪, w) = (ω_m(𝐪) w⁰ - q₁ w₁) cos θ - ⟪𝐪, 𝐰⟫ + q₁ w₁`. -/ +theorem boostPhase_ofReal_mul_I_re (m θ : ℝ) (q : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + (boostPhase m ((θ : ℂ) * Complex.I) q w).re = + (dispersion m q * w.1 - ⟪e₁, q⟫_ℝ * ⟪e₁, w.2⟫_ℝ) * Real.cos θ - ⟪q, w.2⟫_ℝ + + ⟪e₁, q⟫_ℝ * ⟪e₁, w.2⟫_ℝ := by + rw [boostPhase_ofReal_mul_I, Complex.add_re, Complex.ofReal_re, Complex.re_ofReal_mul, + Complex.I_re, mul_zero, add_zero] + +/-- **The imaginary part of the phase** in the strip: `Im ψ(σ + iθ, 𝐩, w) = sin θ (ω' w₁ - p₁' w⁰)` +with `𝐩' = S(-σ) 𝐩`, `ω' = ω_m(𝐩')`, `p₁' = ⟪𝐞₁, 𝐩'⟫` the boosted energy and momentum. -/ +theorem boostPhase_im (m σ θ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + (boostPhase m ((σ : ℂ) + (θ : ℂ) * Complex.I) p w).im = + Real.sin θ * (dispersion m (shellBoost m (-σ) p) * ⟪e₁, w.2⟫_ℝ - + ⟪e₁, shellBoost m (-σ) p⟫_ℝ * w.1) := by + rw [boostPhase_add_ofReal, boostPhase_ofReal_mul_I_im] + +/-- Lower bound of the imaginary part for `θ ∈ [0, π]`: +`Im ψ(σ + iθ, 𝐩, w) ≥ sin θ · ω' · (w₁ - |w⁰|)`, `ω' = ω_m(S(-σ) 𝐩)`. -/ +theorem boostPhase_im_ge (m σ θ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) + (hθ₀ : 0 ≤ θ) (hθπ : θ ≤ Real.pi) : + Real.sin θ * (dispersion m (shellBoost m (-σ) p) * (⟪e₁, w.2⟫_ℝ - |w.1|)) ≤ + (boostPhase m ((σ : ℂ) + (θ : ℂ) * Complex.I) p w).im := by + rw [boostPhase_im] + refine mul_le_mul_of_nonneg_left ?_ (Real.sin_nonneg_of_nonneg_of_le_pi hθ₀ hθπ) + have hq : |⟪e₁, shellBoost m (-σ) p⟫_ℝ| ≤ dispersion m (shellBoost m (-σ) p) := + (abs_inner_e₁_le _).trans (norm_le_dispersion m _) + have h1 : ⟪e₁, shellBoost m (-σ) p⟫_ℝ * w.1 ≤ dispersion m (shellBoost m (-σ) p) * |w.1| := + calc ⟪e₁, shellBoost m (-σ) p⟫_ℝ * w.1 ≤ |⟪e₁, shellBoost m (-σ) p⟫_ℝ * w.1| := + le_abs_self _ + _ = |⟪e₁, shellBoost m (-σ) p⟫_ℝ| * |w.1| := abs_mul _ _ + _ ≤ dispersion m (shellBoost m (-σ) p) * |w.1| := + mul_le_mul_of_nonneg_right hq (abs_nonneg _) + rw [mul_sub] + linarith + +/-- **Positivity of the imaginary part**: for `θ ∈ [0, π]` and `w` in the closed right wedge +`|w⁰| ≤ w₁`, `Im ψ(σ + iθ, 𝐩, w) ≥ 0`. -/ +theorem boostPhase_im_nonneg (m σ θ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) + (hθ₀ : 0 ≤ θ) (hθπ : θ ≤ Real.pi) (hw : |w.1| ≤ ⟪e₁, w.2⟫_ℝ) : + 0 ≤ (boostPhase m ((σ : ℂ) + (θ : ℂ) * Complex.I) p w).im := by + refine le_trans ?_ (boostPhase_im_ge m σ θ p w hθ₀ hθπ) + have hω : 0 ≤ dispersion m (shellBoost m (-σ) p) := Real.sqrt_nonneg _ + exact mul_nonneg (Real.sin_nonneg_of_nonneg_of_le_pi hθ₀ hθπ) + (mul_nonneg hω (sub_nonneg.mpr hw)) + +/-- `|exp(iψ(σ + iθ, 𝐩, w))| ≤ 1` for `θ ∈ [0, π]` and `w` in the closed right wedge. -/ +theorem norm_exp_I_mul_boostPhase_le_one (m σ θ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) + (w : Spacetime) (hθ₀ : 0 ≤ θ) (hθπ : θ ≤ Real.pi) (hw : |w.1| ≤ ⟪e₁, w.2⟫_ℝ) : + ‖Complex.exp (Complex.I * boostPhase m ((σ : ℂ) + (θ : ℂ) * Complex.I) p w)‖ ≤ 1 := by + rw [Complex.norm_exp, Complex.I_mul_re, Real.exp_le_one_iff, neg_nonpos] + exact boostPhase_im_nonneg m σ θ p w hθ₀ hθπ hw + +/-- Exponential decay on the supports: for `x` in the unit double cone at the origin, `y` in the +unit double cone at `s 𝐞₁` and `θ ∈ [0, π]`, +`|exp(iψ(σ + iθ, 𝐩, y - x))| ≤ exp(-sin θ · ω' · (s - 2))` with `ω' = ω_m(S(-σ) 𝐩)`. -/ +theorem norm_exp_I_mul_boostPhase_le_of_mem_doubleCone (m σ θ s : ℝ) + (p : EuclideanSpace ℝ (Fin 3)) {x y : Spacetime} (hx : x ∈ doubleCone 0 1) + (hy : y ∈ doubleCone (0, s • e₁) 1) (hθ₀ : 0 ≤ θ) (hθπ : θ ≤ Real.pi) : + ‖Complex.exp (Complex.I * boostPhase m ((σ : ℂ) + (θ : ℂ) * Complex.I) p (y - x))‖ ≤ + Real.exp (-(Real.sin θ * (dispersion m (shellBoost m (-σ) p) * (s - 2)))) := by + rw [Complex.norm_exp, Complex.I_mul_re, Real.exp_le_exp, neg_le_neg_iff] + refine le_trans ?_ (boostPhase_im_ge m σ θ p (y - x) hθ₀ hθπ) + have hw := sub_mem_wedge_of_mem_doubleCone hx hy + have hω : 0 ≤ dispersion m (shellBoost m (-σ) p) := Real.sqrt_nonneg _ + have hsin : 0 ≤ Real.sin θ := Real.sin_nonneg_of_nonneg_of_le_pi hθ₀ hθπ + exact mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hw.le hω) hsin + +/-! ### The rotation by `π` about the `𝐞₁` axis -/ + +/-- `R(R𝐩) = 𝐩` for `R𝐩 = 2 p₁ 𝐞₁ - 𝐩`. -/ +theorem axisReflection_aux_involutive (p : EuclideanSpace ℝ (Fin 3)) : + (2 * ⟪e₁, (2 * ⟪e₁, p⟫_ℝ) • e₁ - p⟫_ℝ) • e₁ - ((2 * ⟪e₁, p⟫_ℝ) • e₁ - p) = p := by + rw [inner_sub_right, real_inner_smul_right, inner_e₁_self, + show 2 * (2 * ⟪e₁, p⟫_ℝ * 1 - ⟪e₁, p⟫_ℝ) = 2 * ⟪e₁, p⟫_ℝ by ring] + exact sub_sub_cancel _ _ + +/-- `|2 p₁ 𝐞₁ - 𝐩| = |𝐩|`. -/ +theorem axisReflection_aux_norm (p : EuclideanSpace ℝ (Fin 3)) : + ‖(2 * ⟪e₁, p⟫_ℝ) • e₁ - p‖ = ‖p‖ := by + have h : ‖(2 * ⟪e₁, p⟫_ℝ) • e₁ - p‖ ^ 2 = ‖p‖ ^ 2 := by + rw [norm_sub_sq_real, norm_smul, real_inner_smul_left, Real.norm_eq_abs, norm_e₁, mul_one, + sq_abs] + ring + rw [← Real.sqrt_sq (norm_nonneg ((2 * ⟪e₁, p⟫_ℝ) • e₁ - p)), h, Real.sqrt_sq (norm_nonneg p)] + +/-- The rotation by `π` about the `𝐞₁` axis, `𝐩 ↦ 2 p₁ 𝐞₁ - 𝐩`, that is +`(p₁, p₂, p₃) ↦ (p₁, -p₂, -p₃)`, as a linear isometry of `ℝ³` (it is its own inverse). -/ +noncomputable def axisReflection : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3) where + toFun p := (2 * ⟪e₁, p⟫_ℝ) • e₁ - p + map_add' p q := by + change (2 * ⟪e₁, p + q⟫_ℝ) • e₁ - (p + q) = + ((2 * ⟪e₁, p⟫_ℝ) • e₁ - p) + ((2 * ⟪e₁, q⟫_ℝ) • e₁ - q) + rw [inner_add_right, mul_add, add_smul] + abel + map_smul' c p := by + change (2 * ⟪e₁, c • p⟫_ℝ) • e₁ - c • p = c • ((2 * ⟪e₁, p⟫_ℝ) • e₁ - p) + rw [real_inner_smul_right, smul_sub, smul_smul, mul_left_comm] + invFun p := (2 * ⟪e₁, p⟫_ℝ) • e₁ - p + left_inv p := axisReflection_aux_involutive p + right_inv p := axisReflection_aux_involutive p + norm_map' p := axisReflection_aux_norm p + +/-- `R𝐩 = 2 p₁ 𝐞₁ - 𝐩`. -/ +theorem axisReflection_apply (p : EuclideanSpace ℝ (Fin 3)) : + axisReflection p = (2 * ⟪e₁, p⟫_ℝ) • e₁ - p := + rfl + +/-- `⟪𝐞₁, R𝐩⟫ = ⟪𝐞₁, 𝐩⟫`. -/ +theorem inner_e₁_axisReflection (p : EuclideanSpace ℝ (Fin 3)) : + ⟪e₁, axisReflection p⟫_ℝ = ⟪e₁, p⟫_ℝ := by + rw [axisReflection_apply, inner_sub_right, real_inner_smul_right, inner_e₁_self] + ring + +/-- `⟪R𝐩, 𝐯⟫ = 2 p₁ v₁ - ⟪𝐩, 𝐯⟫`. -/ +theorem inner_axisReflection_left (p v : EuclideanSpace ℝ (Fin 3)) : + ⟪axisReflection p, v⟫_ℝ = 2 * ⟪e₁, p⟫_ℝ * ⟪e₁, v⟫_ℝ - ⟪p, v⟫_ℝ := by + rw [axisReflection_apply, inner_sub_left, real_inner_smul_left] + +/-- In coordinates (index `0` is the `𝐞₁` direction), `R(p₁, p₂, p₃) = (p₁, -p₂, -p₃)`. -/ +theorem axisReflection_apply_coord (p : EuclideanSpace ℝ (Fin 3)) (i : Fin 3) : + axisReflection p i = if i = 0 then p i else -p i := by + have h1 : ⟪e₁, p⟫_ℝ = p 0 := by + rw [real_inner_comm] + exact inner_euclideanSingle_one p 0 + have he : e₁ i = if i = 0 then 1 else 0 := by + simp [e₁] + rw [axisReflection_apply, PiLp.sub_apply, PiLp.smul_apply, h1, he, smul_eq_mul] + split_ifs with hi + · subst hi + ring + · ring + +/-- **The phase at `ζ = iπ`**: `ψ(iπ, 𝐩, w) = -ψ(0, R𝐩, w)` with the reflected momentum +`R𝐩 = (p₁, -p₂, -p₃)`. -/ +theorem boostPhase_pi_mul_I (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + boostPhase m ((Real.pi : ℂ) * Complex.I) p w = -boostPhase m 0 (axisReflection p) w := by + unfold boostPhase + rw [dispersion_linearIsometryEquiv, inner_e₁_axisReflection, inner_axisReflection_left, + Complex.cosh_mul_I, Complex.sinh_mul_I, Complex.cos_pi, Complex.sin_pi, Complex.cosh_zero, + Complex.sinh_zero] + push_cast + ring + +/-- `exp(iψ(iπ, 𝐩, w)) = conj exp(iψ(0, R𝐩, w))`. -/ +theorem exp_I_mul_boostPhase_pi_mul_I (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + Complex.exp (Complex.I * boostPhase m ((Real.pi : ℂ) * Complex.I) p w) = + conj (Complex.exp (Complex.I * boostPhase m 0 (axisReflection p) w)) := by + rw [boostPhase_pi_mul_I, boostPhase_zero, ← Complex.exp_conj, map_mul, Complex.conj_I, + Complex.conj_ofReal] + congr 1 + ring + +/-! ### B. The one-particle inner product as a double integral -/ + +/-- `Φ_m(F, G; 𝐩, ζ) = ∫∫ exp(iψ_m(ζ, 𝐩, y - x)) F(x) G(y) dx dy`, an integral over the product +measure on `Spacetime × Spacetime`. -/ +noncomputable def boostPhaseIntegral (m : ℝ) (F G : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) (ζ : ℂ) : ℂ := + ∫ z : Spacetime × Spacetime, Complex.exp (Complex.I * boostPhase m ζ p (z.2 - z.1)) * + ((F.1 z.1 : ℝ) : ℂ) * ((G.1 z.2 : ℝ) : ℂ) ∂((volume : Measure Spacetime).prod volume) + +/-- The phase `w ↦ ψ(ζ, 𝐩, w)` is continuous. -/ +theorem continuous_boostPhase (m : ℝ) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + Continuous fun w : Spacetime => boostPhase m ζ p w := by + have h1 : Continuous fun w : Spacetime => ((w.1 : ℝ) : ℂ) := + Complex.continuous_ofReal.comp continuous_fst + have h2 : Continuous fun w : Spacetime => ((⟪e₁, w.2⟫_ℝ : ℝ) : ℂ) := + Complex.continuous_ofReal.comp (continuous_const.inner continuous_snd) + have h3 : Continuous fun w : Spacetime => ((⟪p, w.2⟫_ℝ : ℝ) : ℂ) := + Complex.continuous_ofReal.comp (continuous_const.inner continuous_snd) + unfold boostPhase + exact (continuous_const.mul ((h1.mul continuous_const).add (h2.mul continuous_const))).sub + (((continuous_const.mul ((h1.mul continuous_const).add (h2.mul continuous_const))).add + h3).sub (continuous_const.mul h2)) + +/-- The integrand of `Φ(𝐩, ζ)` is integrable for the product measure (it is continuous and +vanishes outside `tsupport F × tsupport G`). -/ +theorem integrable_boostPhaseIntegrand (m : ℝ) (F G : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) (ζ : ℂ) : + Integrable (fun z : Spacetime × Spacetime => + Complex.exp (Complex.I * boostPhase m ζ p (z.2 - z.1)) * ((F.1 z.1 : ℝ) : ℂ) * + ((G.1 z.2 : ℝ) : ℂ)) ((volume : Measure Spacetime).prod volume) := by + have hc : Continuous fun z : Spacetime × Spacetime => + Complex.exp (Complex.I * boostPhase m ζ p (z.2 - z.1)) * ((F.1 z.1 : ℝ) : ℂ) * + ((G.1 z.2 : ℝ) : ℂ) := + ((Complex.continuous_exp.comp (continuous_const.mul + ((continuous_boostPhase m ζ p).comp (continuous_snd.sub continuous_fst)))).mul + (Complex.continuous_ofReal.comp ((continuous_testFunction F).comp continuous_fst))).mul + (Complex.continuous_ofReal.comp ((continuous_testFunction G).comp continuous_snd)) + have hs : HasCompactSupport fun z : Spacetime × Spacetime => + Complex.exp (Complex.I * boostPhase m ζ p (z.2 - z.1)) * ((F.1 z.1 : ℝ) : ℂ) * + ((G.1 z.2 : ℝ) : ℂ) := by + refine HasCompactSupport.intro (IsCompact.prod F.2.2 G.2.2) fun z hz => ?_ + rcases not_and_or.mp (Set.mem_prod.not.mp hz) with h | h + · simp [image_eq_zero_of_notMem_tsupport h] + · simp [image_eq_zero_of_notMem_tsupport h] + have : (volume : Measure Spacetime).IsAddHaarMeasure := Measure.prod.instIsAddHaarMeasure _ _ + have : IsFiniteMeasureOnCompacts ((volume : Measure Spacetime).prod + (volume : Measure Spacetime)) := + Measure.prod.instIsFiniteMeasureOnCompacts _ _ + exact hc.integrable_of_hasCompactSupport hs + +/-- Pointwise form of `conj(κF) κG = Φ(·, 0)`: +`conj(e^{i(ω x⁰ - ⟪𝐩, 𝐱⟫)} F(x)) e^{i(ω y⁰ - ⟪𝐩, 𝐲⟫)} G(y) = e^{iψ(0, 𝐩, y - x)} F(x) G(y)`. -/ +theorem conj_oneParticleIntegrand_mul (m : ℝ) (F G : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) (x y : Spacetime) : + conj (oneParticleIntegrand m F p x) * oneParticleIntegrand m G p y = + Complex.exp (Complex.I * boostPhase m 0 p (y - x)) * ((F.1 x : ℝ) : ℂ) * + ((G.1 y : ℝ) : ℂ) := by + have hphase : Complex.I * boostPhase m 0 p (y - x) = + conj (Complex.I * ((dispersion m p * x.1 - ⟪p, x.2⟫_ℝ : ℝ) : ℂ)) + + Complex.I * ((dispersion m p * y.1 - ⟪p, y.2⟫_ℝ : ℝ) : ℂ) := by + rw [boostPhase_zero, map_mul, Complex.conj_I, Complex.conj_ofReal, Prod.fst_sub, + Prod.snd_sub, inner_sub_right] + push_cast + ring + rw [hphase, Complex.exp_add, Complex.exp_conj] + simp only [oneParticleIntegrand, map_mul, Complex.conj_ofReal] + ring + +/-- **`conj(κ_m F(𝐩)) κ_m G(𝐩) = Φ(𝐩, 0)`** (product of two integrals as an integral over the +product measure; no integrability hypothesis is needed). -/ +theorem conj_oneParticle_mul_oneParticle (m : ℝ) (F G : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + conj (oneParticle m F p) * oneParticle m G p = boostPhaseIntegral m F G p 0 := by + rw [oneParticle_eq_integral, oneParticle_eq_integral, ← integral_conj, ← integral_prod_mul] + unfold boostPhaseIntegral + exact integral_congr_ae (Filter.Eventually.of_forall fun z => + conj_oneParticleIntegrand_mul m F G p z.1 z.2) + +/-- **The one-particle inner product as an integral of `Φ`**: +`⟨κ_m F, κ_m G⟩ = ∫ Φ(𝐩, 0) d³p / (2(2π)³ ω_m(𝐩))`. -/ +theorem oneParticleInner_eq_integral_boostPhaseIntegral (m : ℝ) (F G : RealTestFunction) : + oneParticleInner m F G = ∫ p, boostPhaseIntegral m F G p 0 * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) := by + unfold oneParticleInner + congr 1 + funext p + rw [conj_oneParticle_mul_oneParticle] + +/-! ### D. Independence of the real part of the rapidity -/ + +/-- The shift identity for `Φ`: `Φ(𝐩, σ + ζ) = Φ(S(-σ) 𝐩, ζ)` for real `σ`. -/ +theorem boostPhaseIntegral_add_ofReal (m σ : ℝ) (F G : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) (ζ : ℂ) : + boostPhaseIntegral m F G p ((σ : ℂ) + ζ) = + boostPhaseIntegral m F G (shellBoost m (-σ) p) ζ := by + unfold boostPhaseIntegral + simp only [boostPhase_add_ofReal] + +/-- **`∫ Φ(𝐩, ζ) dν(𝐩)` does not depend on `Re ζ`**: for `m ≠ 0`, real `σ` and complex `ζ`, +`∫ Φ(𝐩, σ + ζ) dν = ∫ Φ(𝐩, ζ) dν` (the shift identity and the boost invariance of +`dν = d³p / (2(2π)³ ω_m(𝐩))`; no integrability hypothesis is needed). -/ +theorem integral_boostPhaseIntegral_add_ofReal {m : ℝ} (hm : m ≠ 0) (σ : ℝ) + (F G : RealTestFunction) (ζ : ℂ) : + ∫ p, boostPhaseIntegral m F G p ((σ : ℂ) + ζ) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) = + ∫ p, boostPhaseIntegral m F G p ζ * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) := by + simp only [boostPhaseIntegral_add_ofReal] + exact integral_shellBoost_mul_weight hm (-σ) (fun q => boostPhaseIntegral m F G q ζ) + +/-- The constancy on the line `Im ζ = θ`: `∫ Φ(𝐩, σ + iθ) dν = ∫ Φ(𝐩, iθ) dν` (`m ≠ 0`). -/ +theorem integral_boostPhaseIntegral_add_mul_I {m : ℝ} (hm : m ≠ 0) (σ θ : ℝ) + (F G : RealTestFunction) : + ∫ p, boostPhaseIntegral m F G p ((σ : ℂ) + (θ : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) = + ∫ p, boostPhaseIntegral m F G p ((θ : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) := + integral_boostPhaseIntegral_add_ofReal hm σ F G _ + +/-! ### The boundary value at `ζ = iπ` -/ + +/-- `Φ(𝐩, iπ) = conj Φ(R𝐩, 0)` (`F`, `G` are real). -/ +theorem boostPhaseIntegral_pi_mul_I (m : ℝ) (F G : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + boostPhaseIntegral m F G p ((Real.pi : ℂ) * Complex.I) = + conj (boostPhaseIntegral m F G (axisReflection p) 0) := by + unfold boostPhaseIntegral + rw [← integral_conj] + congr 1 + funext z + rw [exp_I_mul_boostPhase_pi_mul_I] + simp only [map_mul, Complex.conj_ofReal] + +/-- **The boundary value at `iπ` is the conjugate inner product**: +`∫ Φ(𝐩, iπ) dν(𝐩) = conj ⟨κ_m F, κ_m G⟩` (the reflection `𝐩 ↦ R𝐩` preserves `dν`). -/ +theorem integral_boostPhaseIntegral_pi_mul_I (m : ℝ) (F G : RealTestFunction) : + ∫ p, boostPhaseIntegral m F G p ((Real.pi : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) = + conj (oneParticleInner m F G) := by + rw [oneParticleInner_eq_integral_boostPhaseIntegral, ← integral_conj] + simp only [boostPhaseIntegral_pi_mul_I, map_mul, Complex.conj_ofReal] + have h := axisReflection.measurePreserving.integral_comp + axisReflection.toHomeomorph.measurableEmbedding + (fun q => conj (boostPhaseIntegral m F G q 0) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q) : ℝ) : ℂ)) + simp only [dispersion_linearIsometryEquiv] at h + exact h + +/-- **The last step of stage G**: if the boundary values on the two edges of the strip agree, +`∫ Φ(𝐩, 0) dν = ∫ Φ(𝐩, iπ) dν`, then `⟨κ_m F, κ_m G⟩` is real. -/ +theorem im_oneParticleInner_eq_zero_of_boundary_eq (m : ℝ) (F G : RealTestFunction) + (h : ∫ p, boostPhaseIntegral m F G p 0 * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) = + ∫ p, boostPhaseIntegral m F G p ((Real.pi : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)) : + (oneParticleInner m F G).im = 0 := by + rw [← oneParticleInner_eq_integral_boostPhaseIntegral, integral_boostPhaseIntegral_pi_mul_I] at h + exact Complex.conj_eq_iff_im.mp h.symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Strip.lean b/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Strip.lean new file mode 100644 index 0000000000..c01ebfa289 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Microcausality/Strip.lean @@ -0,0 +1,660 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Phase +public import Mathlib.Analysis.SpecialFunctions.Trigonometric.DerivHyp +public import Mathlib.Analysis.Real.Pi.Bounds +public import Mathlib.Analysis.Calculus.ParametricIntegral + +/-! +# Microcausality, stage E: holomorphy and constancy on the open strip + +Stage E of the microcausality proof. Notation as in +`FreeField/Microcausality/Phase.lean`: `ψ = boostPhase m`, `Φ = boostPhaseIntegral m F G`, +`dν(𝐩) = d³p / (2(2π)³ ω_m(𝐩))`. + +* `boostPhaseDeriv`, `hasDerivAt_boostPhase`: `ζ ↦ ψ(ζ, 𝐩, w)` is entire with derivative + `ω (w⁰ sinh ζ + w₁ cosh ζ) - p₁ (w⁰ cosh ζ + w₁ sinh ζ)`; `norm_boostPhaseDeriv_le`: + `|∂_ζ ψ| ≤ 2 ω (|w⁰| + |w₁|) M` if `|cosh ζ|, |sinh ζ| ≤ M`. +* `exp_neg_abs_mul_dispersion_le`: `e^{-|σ|} ω_m(𝐩) ≤ ω_m(S(-σ) 𝐩)`; + `norm_exp_I_mul_boostPhase_le_exp`: for `0 ≤ Im ζ ≤ π` and `x`, `y` in the two double cones, + `|exp(iψ(ζ, 𝐩, y - x))| ≤ exp(-κ (s - 2) ω_m(𝐩))` whenever `κ ≤ sin(Im ζ) e^{-|Re ζ|}`. +* `integrable_exp_neg_mul_dispersion`, `integrable_stripMajorant`: for `c > 0` the majorant + `(𝐩, x, y) ↦ e^{-c ω_m(𝐩)} |F(x)| |G(y)|` is integrable on `ℝ³ × (Spacetime × Spacetime)`. +* `stripIntegral m F G ζ = ∫ Φ(𝐩, ζ) dν(𝐩)`; `stripIntegrand`, `stripIntegrandDeriv`: its + integrand on `ℝ³ × (Spacetime × Spacetime)` and the `ζ`-derivative of that integrand, with the + bounds `norm_stripIntegrand_le`, `norm_stripIntegrandDeriv_le` (the factor `ω` of `∂_ζ ψ` is + cancelled by the weight `1 / ω`); `integrable_stripIntegrand`, + `stripIntegral_eq_integral_prod` (Fubini) for `0 < Im ζ < π`. + +Main results, for `m > 0`, `s > 2`, `tsupport F ⊆ doubleCone 0 1`, +`tsupport G ⊆ doubleCone (0, s 𝐞₁) 1`: + +* `hasDerivAt_stripIntegral`, `differentiableAt_stripIntegral`: `ζ ↦ ∫ Φ(𝐩, ζ) dν(𝐩)` is complex + differentiable at every `ζ` with `0 < Im ζ < π` (differentiation under the integral sign, + dominated by `C e^{-c ω_m(𝐩)} |F(x)| |G(y)|` on a neighbourhood of `ζ`); +* `deriv_stripIntegral_eq_zero`: its derivative vanishes there (it equals the derivative in the + real direction, and `stripIntegral_add_ofReal`, i.e. stage D, says the function is constant in + `Re ζ`); +* `stripIntegral_eq_of_mem_strip`: it is constant on the open strip; + `integral_boostPhaseIntegral_mul_I_eq`, `integral_boostPhaseIntegral_eq_on_strip`: the same on + the imaginary axis, `∫ Φ(𝐩, iθ) dν = ∫ Φ(𝐩, iπ/2) dν` for `θ ∈ (0, π)`; +* `im_oneParticleInner_eq_zero_of_continuousOn`: if moreover `θ ↦ ∫ Φ(𝐩, iθ) dν` is continuous on + `[0, π]` (stage F, proved in `Microcausality/Edges.lean`), then `Im ⟨κ_m F, κ_m G⟩ = 0`. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate Topology +open MeasureTheory Filter + +namespace VacuumBellSeparation + +/-! ### The derivative of the phase in the rapidity -/ + +/-- The complex derivative of the boost phase in the rapidity, +`∂_ζ ψ_m(ζ, 𝐩, w) = ω (w⁰ sinh ζ + w₁ cosh ζ) - p₁ (w⁰ cosh ζ + w₁ sinh ζ)` with `ω = ω_m(𝐩)`, +`p₁ = ⟪𝐞₁, 𝐩⟫`, `w₁ = ⟪𝐞₁, 𝐰⟫` (`hasDerivAt_boostPhase`). -/ +noncomputable def boostPhaseDeriv (m : ℝ) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) + (w : Spacetime) : ℂ := + (dispersion m p : ℂ) * ((w.1 : ℂ) * Complex.sinh ζ + (⟪e₁, w.2⟫_ℝ : ℂ) * Complex.cosh ζ) - + (⟪e₁, p⟫_ℝ : ℂ) * ((w.1 : ℂ) * Complex.cosh ζ + (⟪e₁, w.2⟫_ℝ : ℂ) * Complex.sinh ζ) + +/-- `ζ ↦ ψ_m(ζ, 𝐩, w)` is entire, with derivative `boostPhaseDeriv m ζ 𝐩 w`. -/ +theorem hasDerivAt_boostPhase (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) (ζ : ℂ) : + HasDerivAt (fun ζ => boostPhase m ζ p w) (boostPhaseDeriv m ζ p w) ζ := by + have hc := Complex.hasDerivAt_cosh ζ + have hs := Complex.hasDerivAt_sinh ζ + have h1 := (hc.const_mul (w.1 : ℂ)).add (hs.const_mul (⟪e₁, w.2⟫_ℝ : ℂ)) + have h2 := (hs.const_mul (w.1 : ℂ)).add (hc.const_mul (⟪e₁, w.2⟫_ℝ : ℂ)) + have h3 := (h1.const_mul (dispersion m p : ℂ)).sub + (((h2.const_mul (⟪e₁, p⟫_ℝ : ℂ)).add_const (⟪p, w.2⟫_ℝ : ℂ)).sub_const + ((⟪e₁, p⟫_ℝ : ℂ) * (⟪e₁, w.2⟫_ℝ : ℂ))) + exact h3 + +/-- Joint continuity of the phase in the momentum and the spacetime point. -/ +theorem continuous_boostPhase_comp {α : Type*} [TopologicalSpace α] (m : ℝ) (ζ : ℂ) + {f : α → EuclideanSpace ℝ (Fin 3)} {g : α → Spacetime} (hf : Continuous f) + (hg : Continuous g) : Continuous fun a => boostPhase m ζ (f a) (g a) := by + have h1 : Continuous fun a => (((g a).1 : ℝ) : ℂ) := Complex.continuous_ofReal.comp hg.fst + have h2 : Continuous fun a => ((⟪e₁, (g a).2⟫_ℝ : ℝ) : ℂ) := + Complex.continuous_ofReal.comp (continuous_const.inner hg.snd) + have h3 : Continuous fun a => ((⟪f a, (g a).2⟫_ℝ : ℝ) : ℂ) := + Complex.continuous_ofReal.comp (hf.inner hg.snd) + have h4 : Continuous fun a => ((dispersion m (f a) : ℝ) : ℂ) := + Complex.continuous_ofReal.comp ((continuous_dispersion m).comp hf) + have h5 : Continuous fun a => ((⟪e₁, f a⟫_ℝ : ℝ) : ℂ) := + Complex.continuous_ofReal.comp (continuous_const.inner hf) + unfold boostPhase + exact (h4.mul ((h1.mul continuous_const).add (h2.mul continuous_const))).sub + (((h5.mul ((h1.mul continuous_const).add (h2.mul continuous_const))).add h3).sub (h5.mul h2)) + +/-- Joint continuity of the derivative of the phase in the momentum and the spacetime point. -/ +theorem continuous_boostPhaseDeriv_comp {α : Type*} [TopologicalSpace α] (m : ℝ) (ζ : ℂ) + {f : α → EuclideanSpace ℝ (Fin 3)} {g : α → Spacetime} (hf : Continuous f) + (hg : Continuous g) : Continuous fun a => boostPhaseDeriv m ζ (f a) (g a) := by + have h1 : Continuous fun a => (((g a).1 : ℝ) : ℂ) := Complex.continuous_ofReal.comp hg.fst + have h2 : Continuous fun a => ((⟪e₁, (g a).2⟫_ℝ : ℝ) : ℂ) := + Complex.continuous_ofReal.comp (continuous_const.inner hg.snd) + have h4 : Continuous fun a => ((dispersion m (f a) : ℝ) : ℂ) := + Complex.continuous_ofReal.comp ((continuous_dispersion m).comp hf) + have h5 : Continuous fun a => ((⟪e₁, f a⟫_ℝ : ℝ) : ℂ) := + Complex.continuous_ofReal.comp (continuous_const.inner hf) + unfold boostPhaseDeriv + exact (h4.mul ((h1.mul continuous_const).add (h2.mul continuous_const))).sub + (h5.mul ((h1.mul continuous_const).add (h2.mul continuous_const))) + +/-- `|∂_ζ ψ_m(ζ, 𝐩, w)| ≤ 2 ω_m(𝐩) (|w⁰| + |w₁|) M` whenever `|cosh ζ| ≤ M` and `|sinh ζ| ≤ M`. -/ +theorem norm_boostPhaseDeriv_le (m : ℝ) {ζ : ℂ} {M : ℝ} (hc : ‖Complex.cosh ζ‖ ≤ M) + (hs : ‖Complex.sinh ζ‖ ≤ M) (p : EuclideanSpace ℝ (Fin 3)) (w : Spacetime) : + ‖boostPhaseDeriv m ζ p w‖ ≤ 2 * dispersion m p * (|w.1| + |⟪e₁, w.2⟫_ℝ|) * M := by + have hω : 0 ≤ dispersion m p := Real.sqrt_nonneg _ + have hp : |⟪e₁, p⟫_ℝ| ≤ dispersion m p := (abs_inner_e₁_le p).trans (norm_le_dispersion m p) + have hA : ∀ a b : ℂ, ‖a‖ ≤ M → ‖b‖ ≤ M → + ‖(w.1 : ℂ) * a + (⟪e₁, w.2⟫_ℝ : ℂ) * b‖ ≤ (|w.1| + |⟪e₁, w.2⟫_ℝ|) * M := by + intro a b ha hb + refine (norm_add_le _ _).trans ?_ + rw [norm_mul, norm_mul, Complex.norm_real, Complex.norm_real, Real.norm_eq_abs, + Real.norm_eq_abs, add_mul] + exact add_le_add (mul_le_mul_of_nonneg_left ha (abs_nonneg _)) + (mul_le_mul_of_nonneg_left hb (abs_nonneg _)) + have h1 := hA _ _ hs hc + have h2 := hA _ _ hc hs + unfold boostPhaseDeriv + refine (norm_sub_le _ _).trans ?_ + rw [norm_mul, norm_mul, Complex.norm_real, Complex.norm_real, Real.norm_eq_abs, + Real.norm_eq_abs, abs_of_nonneg hω] + calc dispersion m p * ‖(w.1 : ℂ) * Complex.sinh ζ + (⟪e₁, w.2⟫_ℝ : ℂ) * Complex.cosh ζ‖ + + |⟪e₁, p⟫_ℝ| * ‖(w.1 : ℂ) * Complex.cosh ζ + (⟪e₁, w.2⟫_ℝ : ℂ) * Complex.sinh ζ‖ + ≤ dispersion m p * ((|w.1| + |⟪e₁, w.2⟫_ℝ|) * M) + + dispersion m p * ((|w.1| + |⟪e₁, w.2⟫_ℝ|) * M) := + add_le_add (mul_le_mul_of_nonneg_left h1 hω) (mul_le_mul hp h2 (norm_nonneg _) hω) + _ = 2 * dispersion m p * (|w.1| + |⟪e₁, w.2⟫_ℝ|) * M := by ring + +/-! ### Bounds on the supports -/ + +/-- For `x` in the unit double cone at the origin and `y` in the unit double cone at `s 𝐞₁` +(`s ≥ 0`), the difference `w = y - x` satisfies `|w⁰| + |w₁| ≤ s + 2`. -/ +theorem abs_fst_add_abs_inner_le_of_mem_doubleCone {s : ℝ} (hs : 0 ≤ s) {x y : Spacetime} + (hx : x ∈ doubleCone 0 1) (hy : y ∈ doubleCone (0, s • e₁) 1) : + |(y - x).1| + |⟪e₁, (y - x).2⟫_ℝ| ≤ s + 2 := by + have hx' : |x.1 - 0| + ‖x.2 - 0‖ < 1 := hx + have hy' : |y.1 - 0| + ‖y.2 - s • e₁‖ < 1 := hy + simp only [sub_zero] at hx' hy' + have h1 : |(y - x).1| ≤ |y.1| + |x.1| := by + rw [Prod.fst_sub, abs_le] + constructor <;> linarith [le_abs_self y.1, neg_abs_le y.1, le_abs_self x.1, neg_abs_le x.1] + have hs1 : ‖s • e₁‖ = s := by + rw [norm_smul, norm_e₁, mul_one, Real.norm_eq_abs, abs_of_nonneg hs] + have h2 : ‖(y - x).2‖ ≤ ‖y.2 - s • e₁‖ + s + ‖x.2‖ := by + calc ‖(y - x).2‖ = ‖(y.2 - s • e₁) + s • e₁ - x.2‖ := by rw [Prod.snd_sub, sub_add_cancel] + _ ≤ ‖(y.2 - s • e₁) + s • e₁‖ + ‖x.2‖ := norm_sub_le _ _ + _ ≤ ‖y.2 - s • e₁‖ + ‖s • e₁‖ + ‖x.2‖ := add_le_add (norm_add_le _ _) le_rfl + _ = ‖y.2 - s • e₁‖ + s + ‖x.2‖ := by rw [hs1] + have h3 := abs_inner_e₁_le (y - x).2 + linarith [abs_nonneg x.1, abs_nonneg y.1] + +/-- The boosted energy is bounded below: `e^{-|σ|} ω_m(𝐩) ≤ ω_m(S(-σ) 𝐩)`. -/ +theorem exp_neg_abs_mul_dispersion_le (m σ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + Real.exp (-|σ|) * dispersion m p ≤ dispersion m (shellBoost m (-σ) p) := by + rw [dispersion_shellBoost, Real.cosh_neg, Real.sinh_neg] + have hp : |⟪e₁, p⟫_ℝ| ≤ dispersion m p := (abs_inner_e₁_le p).trans (norm_le_dispersion m p) + have hp1 : ⟪e₁, p⟫_ℝ ≤ dispersion m p := (le_abs_self _).trans hp + have hp2 : -dispersion m p ≤ ⟪e₁, p⟫_ℝ := by linarith [neg_abs_le ⟪e₁, p⟫_ℝ] + rcases le_or_gt 0 σ with hσ | hσ + · rw [abs_of_nonneg hσ, ← Real.cosh_sub_sinh] + have hsh : 0 ≤ Real.sinh σ := Real.sinh_nonneg_iff.mpr hσ + nlinarith [mul_le_mul_of_nonneg_left hp1 hsh] + · rw [abs_of_neg hσ, neg_neg, ← Real.cosh_add_sinh] + have hsh : Real.sinh σ < 0 := Real.sinh_neg_iff.mpr hσ + nlinarith [mul_le_mul_of_nonneg_left hp2 (neg_nonneg.mpr hsh.le)] + +/-- Decay on the supports with an explicit rate: for `0 ≤ Im ζ ≤ π`, `s ≥ 2`, +`κ ≤ sin(Im ζ) e^{-|Re ζ|}`, `x` in the unit double cone at the origin and `y` in the one at +`s 𝐞₁`, `|exp(iψ(ζ, 𝐩, y - x))| ≤ exp(-κ (s - 2) ω_m(𝐩))`. -/ +theorem norm_exp_I_mul_boostPhase_le_exp {m s κ : ℝ} (hs : 2 ≤ s) {ζ : ℂ} (h0 : 0 ≤ ζ.im) + (hπ : ζ.im ≤ Real.pi) (hκ : κ ≤ Real.sin ζ.im * Real.exp (-|ζ.re|)) + (p : EuclideanSpace ℝ (Fin 3)) {x y : Spacetime} (hx : x ∈ doubleCone 0 1) + (hy : y ∈ doubleCone (0, s • e₁) 1) : + ‖Complex.exp (Complex.I * boostPhase m ζ p (y - x))‖ ≤ + Real.exp (-(κ * (s - 2) * dispersion m p)) := by + have h := norm_exp_I_mul_boostPhase_le_of_mem_doubleCone m ζ.re ζ.im s p hx hy h0 hπ + rw [Complex.re_add_im] at h + refine h.trans (Real.exp_le_exp.mpr (neg_le_neg ?_)) + have hω' := exp_neg_abs_mul_dispersion_le m ζ.re p + have hsin : 0 ≤ Real.sin ζ.im := Real.sin_nonneg_of_nonneg_of_le_pi h0 hπ + have hω : 0 ≤ dispersion m p := Real.sqrt_nonneg _ + have hs2 : 0 ≤ s - 2 := by linarith + calc κ * (s - 2) * dispersion m p + ≤ Real.sin ζ.im * Real.exp (-|ζ.re|) * (s - 2) * dispersion m p := + mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hκ hs2) hω + _ = Real.sin ζ.im * (Real.exp (-|ζ.re|) * dispersion m p * (s - 2)) := by ring + _ ≤ Real.sin ζ.im * (dispersion m (shellBoost m (-ζ.re) p) * (s - 2)) := + mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right hω' hs2) hsin + +/-- A pointwise bound needs to be checked only on the supports of `F` and `G`: +if `A ≤ B` whenever `x ∈ U` and `y ∈ V`, then `A |F(x)| |G(y)| ≤ B |F(x)| |G(y)|`. -/ +theorem mul_abs_mul_abs_le_of_tsupport {F G : RealTestFunction} {U V : Set Spacetime} + (hF : tsupport F.1 ⊆ U) (hG : tsupport G.1 ⊆ V) {A B : ℝ} {x y : Spacetime} + (h : x ∈ U → y ∈ V → A ≤ B) : A * (|F.1 x| * |G.1 y|) ≤ B * (|F.1 x| * |G.1 y|) := by + by_cases hx : x ∈ tsupport F.1 + · by_cases hy : y ∈ tsupport G.1 + · exact mul_le_mul_of_nonneg_right (h (hF hx) (hG hy)) + (mul_nonneg (abs_nonneg _) (abs_nonneg _)) + · simp [image_eq_zero_of_notMem_tsupport hy] + · simp [image_eq_zero_of_notMem_tsupport hx] + +/-! ### Integrability of the majorant -/ + +/-- `1 ≤ 2 (2π)³`. -/ +theorem one_le_two_mul_two_pi_pow_three : (1 : ℝ) ≤ 2 * (2 * Real.pi) ^ 3 := by + have h2pi : (1 : ℝ) ≤ 2 * Real.pi := by linarith [Real.pi_gt_three] + have h := one_le_pow₀ (n := 3) h2pi + linarith + +/-- `e^{-ct} ≤ 24 e^c c⁻⁴ (1 + t)⁻⁴` for `c > 0` and `t ≥ 0`. -/ +theorem exp_neg_mul_le_one_add_rpow {c : ℝ} (hc : 0 < c) {t : ℝ} (ht : 0 ≤ t) : + Real.exp (-(c * t)) ≤ 24 * Real.exp c / c ^ 4 * (1 + t) ^ (-(4 : ℝ)) := by + have h1 : 0 < 1 + t := by linarith + have hc0 : c ≠ 0 := hc.ne' + have ht0 : 1 + t ≠ 0 := h1.ne' + have hx : 0 ≤ c * (1 + t) := by positivity + have h := Real.pow_div_factorial_le_exp (c * (1 + t)) hx 4 + have h24 : ((Nat.factorial 4 : ℕ) : ℝ) = 24 := by norm_num [Nat.factorial] + rw [h24] at h + have hpos : 0 < (c * (1 + t)) ^ 4 / 24 := by positivity + have h2 : (Real.exp (c * (1 + t)))⁻¹ ≤ ((c * (1 + t)) ^ 4 / 24)⁻¹ := inv_anti₀ hpos h + have h3 : Real.exp (-(c * t)) = Real.exp c * (Real.exp (c * (1 + t)))⁻¹ := by + rw [← Real.exp_neg, ← Real.exp_add] + congr 1 + ring + have h4 : (1 + t) ^ (-(4 : ℝ)) = ((1 + t) ^ 4)⁻¹ := by + rw [Real.rpow_neg h1.le] + congr 1 + exact Real.rpow_ofNat (1 + t) 4 + have h5 : Real.exp c * ((c * (1 + t)) ^ 4 / 24)⁻¹ = + 24 * Real.exp c / c ^ 4 * ((1 + t) ^ 4)⁻¹ := by + field_simp + rw [h3, h4, ← h5] + exact mul_le_mul_of_nonneg_left h2 (Real.exp_pos c).le + +/-- For `c > 0`, `𝐩 ↦ e^{-c ω_m(𝐩)}` is integrable on `ℝ³`. -/ +theorem integrable_exp_neg_mul_dispersion (m : ℝ) {c : ℝ} (hc : 0 < c) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => Real.exp (-(c * dispersion m p))) := by + have hint : Integrable (fun p : EuclideanSpace ℝ (Fin 3) => (1 + ‖p‖) ^ (-(4 : ℝ))) := + integrable_one_add_norm (by rw [finrank_euclideanSpace_fin]; norm_num) + refine (hint.const_mul (24 * Real.exp c / c ^ 4)).mono' + (Real.continuous_exp.comp ((continuous_const.mul + (continuous_dispersion m)).neg)).aestronglyMeasurable + (Filter.Eventually.of_forall fun p => ?_) + rw [Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] + calc Real.exp (-(c * dispersion m p)) ≤ Real.exp (-(c * ‖p‖)) := + Real.exp_le_exp.mpr (neg_le_neg (mul_le_mul_of_nonneg_left (norm_le_dispersion m p) hc.le)) + _ ≤ 24 * Real.exp c / c ^ 4 * (1 + ‖p‖) ^ (-(4 : ℝ)) := + exp_neg_mul_le_one_add_rpow hc (norm_nonneg p) + +/-- `(x, y) ↦ |F(x)| |G(y)|` is integrable on `Spacetime × Spacetime`. -/ +theorem integrable_abs_mul_abs_testFunction (F G : RealTestFunction) : + Integrable (fun z : Spacetime × Spacetime => |F.1 z.1| * |G.1 z.2|) + ((volume : Measure Spacetime).prod volume) := + ((continuous_testFunction F).integrable_of_hasCompactSupport F.2.2).abs.mul_prod + ((continuous_testFunction G).integrable_of_hasCompactSupport G.2.2).abs + +/-- For `c > 0` the majorant `(𝐩, x, y) ↦ e^{-c ω_m(𝐩)} |F(x)| |G(y)|` is integrable on +`ℝ³ × (Spacetime × Spacetime)`. -/ +theorem integrable_stripMajorant (m : ℝ) {c : ℝ} (hc : 0 < c) (F G : RealTestFunction) : + Integrable (fun q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime) => + Real.exp (-(c * dispersion m q.1)) * (|F.1 q.2.1| * |G.1 q.2.2|)) + ((volume : Measure (EuclideanSpace ℝ (Fin 3))).prod + ((volume : Measure Spacetime).prod volume)) := + (integrable_exp_neg_mul_dispersion m hc).mul_prod (integrable_abs_mul_abs_testFunction F G) + +/-! ### The integrand on `ℝ³ × (Spacetime × Spacetime)` and its derivative -/ + +/-- The integrand `(𝐩, x, y) ↦ e^{iψ_m(ζ, 𝐩, y - x)} F(x) G(y) / (2(2π)³ ω_m(𝐩))` of +`∫ Φ(𝐩, ζ) dν(𝐩)` on `ℝ³ × (Spacetime × Spacetime)` (`stripIntegral_eq_integral_prod`). -/ +noncomputable def stripIntegrand (m : ℝ) (F G : RealTestFunction) (ζ : ℂ) + (q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime)) : ℂ := + Complex.exp (Complex.I * boostPhase m ζ q.1 (q.2.2 - q.2.1)) * ((F.1 q.2.1 : ℝ) : ℂ) * + ((G.1 q.2.2 : ℝ) : ℂ) * ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1) : ℝ) : ℂ) + +/-- The `ζ`-derivative of `stripIntegrand` (`hasDerivAt_stripIntegrand`): +`(𝐩, x, y) ↦ e^{iψ} (i ∂_ζ ψ) F(x) G(y) / (2(2π)³ ω_m(𝐩))` with `ψ = ψ_m(ζ, 𝐩, y - x)`. -/ +noncomputable def stripIntegrandDeriv (m : ℝ) (F G : RealTestFunction) (ζ : ℂ) + (q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime)) : ℂ := + Complex.exp (Complex.I * boostPhase m ζ q.1 (q.2.2 - q.2.1)) * + (Complex.I * boostPhaseDeriv m ζ q.1 (q.2.2 - q.2.1)) * ((F.1 q.2.1 : ℝ) : ℂ) * + ((G.1 q.2.2 : ℝ) : ℂ) * ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1) : ℝ) : ℂ) + +/-- `G(ζ) = ∫ Φ(𝐩, ζ) dν(𝐩)` with `dν = d³p / (2(2π)³ ω_m(𝐩))`, the function of the complex +rapidity `ζ` that is holomorphic (`hasDerivAt_stripIntegral`) and constant +(`stripIntegral_eq_of_mem_strip`) on the open strip `0 < Im ζ < π`. -/ +noncomputable def stripIntegral (m : ℝ) (F G : RealTestFunction) (ζ : ℂ) : ℂ := + ∫ p, boostPhaseIntegral m F G p ζ * ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) + +/-- The weight `𝐩 ↦ 1 / (2(2π)³ ω_m(𝐩))` is continuous for `m ≠ 0`. -/ +theorem continuous_shellWeight {m : ℝ} (hm : m ≠ 0) : + Continuous fun p : EuclideanSpace ℝ (Fin 3) => + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) := by + have hK : 0 < 2 * (2 * Real.pi) ^ 3 := by positivity + exact Complex.continuous_ofReal.comp (continuous_const.div + (continuous_const.mul (continuous_dispersion m)) + fun p => (mul_pos hK (dispersion_pos hm p)).ne') + +/-- `stripIntegrand m F G ζ` is continuous (`m ≠ 0`). -/ +theorem continuous_stripIntegrand {m : ℝ} (hm : m ≠ 0) (F G : RealTestFunction) (ζ : ℂ) : + Continuous (stripIntegrand m F G ζ) := by + have hψ : Continuous fun q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime) => + boostPhase m ζ q.1 (q.2.2 - q.2.1) := + continuous_boostPhase_comp m ζ continuous_fst (continuous_snd.snd.sub continuous_snd.fst) + have hF : Continuous fun q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime) => + ((F.1 q.2.1 : ℝ) : ℂ) := + Complex.continuous_ofReal.comp ((continuous_testFunction F).comp continuous_snd.fst) + have hG : Continuous fun q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime) => + ((G.1 q.2.2 : ℝ) : ℂ) := + Complex.continuous_ofReal.comp ((continuous_testFunction G).comp continuous_snd.snd) + have hw : Continuous fun q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime) => + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1) : ℝ) : ℂ) := + (continuous_shellWeight hm).comp continuous_fst + exact (((Complex.continuous_exp.comp (continuous_const.mul hψ)).mul hF).mul hG).mul hw + +/-- `stripIntegrandDeriv m F G ζ` is continuous (`m ≠ 0`). -/ +theorem continuous_stripIntegrandDeriv {m : ℝ} (hm : m ≠ 0) (F G : RealTestFunction) (ζ : ℂ) : + Continuous (stripIntegrandDeriv m F G ζ) := by + have hψ : Continuous fun q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime) => + boostPhase m ζ q.1 (q.2.2 - q.2.1) := + continuous_boostPhase_comp m ζ continuous_fst (continuous_snd.snd.sub continuous_snd.fst) + have hψ' : Continuous fun q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime) => + boostPhaseDeriv m ζ q.1 (q.2.2 - q.2.1) := + continuous_boostPhaseDeriv_comp m ζ continuous_fst + (continuous_snd.snd.sub continuous_snd.fst) + have hF : Continuous fun q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime) => + ((F.1 q.2.1 : ℝ) : ℂ) := + Complex.continuous_ofReal.comp ((continuous_testFunction F).comp continuous_snd.fst) + have hG : Continuous fun q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime) => + ((G.1 q.2.2 : ℝ) : ℂ) := + Complex.continuous_ofReal.comp ((continuous_testFunction G).comp continuous_snd.snd) + have hw : Continuous fun q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime) => + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1) : ℝ) : ℂ) := + (continuous_shellWeight hm).comp continuous_fst + exact ((((Complex.continuous_exp.comp (continuous_const.mul hψ)).mul + (continuous_const.mul hψ')).mul hF).mul hG).mul hw + +/-- `ζ ↦ stripIntegrand m F G ζ q` is entire with derivative `stripIntegrandDeriv m F G ζ q`. -/ +theorem hasDerivAt_stripIntegrand (m : ℝ) (F G : RealTestFunction) (ζ : ℂ) + (q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime)) : + HasDerivAt (fun ζ => stripIntegrand m F G ζ q) (stripIntegrandDeriv m F G ζ q) ζ := + ((((hasDerivAt_boostPhase m q.1 (q.2.2 - q.2.1) ζ).const_mul Complex.I).cexp.mul_const + ((F.1 q.2.1 : ℝ) : ℂ)).mul_const ((G.1 q.2.2 : ℝ) : ℂ)).mul_const + (((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1) : ℝ) : ℂ)) + +/-- On the closed strip, with `κ ≤ sin(Im ζ) e^{-|Re ζ|}`: +`|stripIntegrand m F G ζ (𝐩, x, y)| ≤ m⁻¹ e^{-κ (s - 2) ω_m(𝐩)} |F(x)| |G(y)|`. -/ +theorem norm_stripIntegrand_le {m s κ : ℝ} (hm : 0 < m) (hs : 2 ≤ s) {F G : RealTestFunction} + (hF : tsupport F.1 ⊆ doubleCone 0 1) (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) + {ζ : ℂ} (h0 : 0 ≤ ζ.im) (hπ : ζ.im ≤ Real.pi) + (hκ : κ ≤ Real.sin ζ.im * Real.exp (-|ζ.re|)) + (q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime)) : + ‖stripIntegrand m F G ζ q‖ ≤ + 1 / m * (Real.exp (-(κ * (s - 2) * dispersion m q.1)) * (|F.1 q.2.1| * |G.1 q.2.2|)) := by + have hK : 0 < 2 * (2 * Real.pi) ^ 3 := by positivity + have hωpos : 0 < dispersion m q.1 := dispersion_pos hm.ne' q.1 + have hwpos : 0 < 1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1) := + one_div_pos.mpr (mul_pos hK hωpos) + have hwle : 1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1) ≤ 1 / m := by + refine one_div_le_one_div_of_le hm ?_ + calc m ≤ dispersion m q.1 := le_dispersion hm.le q.1 + _ = 1 * dispersion m q.1 := (one_mul _).symm + _ ≤ 2 * (2 * Real.pi) ^ 3 * dispersion m q.1 := + mul_le_mul_of_nonneg_right one_le_two_mul_two_pi_pow_three hωpos.le + have hE := mul_abs_mul_abs_le_of_tsupport hF hG + (A := ‖Complex.exp (Complex.I * boostPhase m ζ q.1 (q.2.2 - q.2.1))‖) + (B := Real.exp (-(κ * (s - 2) * dispersion m q.1))) (x := q.2.1) (y := q.2.2) + (fun hx hy => norm_exp_I_mul_boostPhase_le_exp (m := m) hs h0 hπ hκ q.1 hx hy) + have hnorm : ‖stripIntegrand m F G ζ q‖ = + ‖Complex.exp (Complex.I * boostPhase m ζ q.1 (q.2.2 - q.2.1))‖ * + (|F.1 q.2.1| * |G.1 q.2.2|) * (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1)) := by + simp only [stripIntegrand, norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos hwpos] + ring + rw [hnorm] + calc ‖Complex.exp (Complex.I * boostPhase m ζ q.1 (q.2.2 - q.2.1))‖ * + (|F.1 q.2.1| * |G.1 q.2.2|) * (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1)) + ≤ Real.exp (-(κ * (s - 2) * dispersion m q.1)) * (|F.1 q.2.1| * |G.1 q.2.2|) * (1 / m) := + mul_le_mul hE hwle hwpos.le + (mul_nonneg (Real.exp_pos _).le (mul_nonneg (abs_nonneg _) (abs_nonneg _))) + _ = 1 / m * (Real.exp (-(κ * (s - 2) * dispersion m q.1)) * (|F.1 q.2.1| * |G.1 q.2.2|)) := by + ring + +/-- On the closed strip, with `κ ≤ sin(Im ζ) e^{-|Re ζ|}` and `|cosh ζ|, |sinh ζ| ≤ M`: +`|stripIntegrandDeriv m F G ζ (𝐩, x, y)| ≤ 2 (s + 2) M e^{-κ (s - 2) ω_m(𝐩)} |F(x)| |G(y)|` +(the factor `ω_m(𝐩)` of `∂_ζ ψ` is cancelled by the weight). -/ +theorem norm_stripIntegrandDeriv_le {m s κ M : ℝ} (hm : 0 < m) (hs : 2 ≤ s) + {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) {ζ : ℂ} (h0 : 0 ≤ ζ.im) + (hπ : ζ.im ≤ Real.pi) (hκ : κ ≤ Real.sin ζ.im * Real.exp (-|ζ.re|)) + (hc : ‖Complex.cosh ζ‖ ≤ M) (hsh : ‖Complex.sinh ζ‖ ≤ M) + (q : EuclideanSpace ℝ (Fin 3) × (Spacetime × Spacetime)) : + ‖stripIntegrandDeriv m F G ζ q‖ ≤ + 2 * (s + 2) * M * (Real.exp (-(κ * (s - 2) * dispersion m q.1)) * + (|F.1 q.2.1| * |G.1 q.2.2|)) := by + have hK : 0 < 2 * (2 * Real.pi) ^ 3 := by positivity + have hωpos : 0 < dispersion m q.1 := dispersion_pos hm.ne' q.1 + have hwpos : 0 < 1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1) := + one_div_pos.mpr (mul_pos hK hωpos) + have hM : 0 ≤ M := (norm_nonneg _).trans hc + have hs0 : 0 ≤ s := by linarith + have hωw : dispersion m q.1 * (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1)) ≤ 1 := by + rw [mul_one_div, div_le_one (mul_pos hK hωpos)] + calc dispersion m q.1 = 1 * dispersion m q.1 := (one_mul _).symm + _ ≤ 2 * (2 * Real.pi) ^ 3 * dispersion m q.1 := + mul_le_mul_of_nonneg_right one_le_two_mul_two_pi_pow_three hωpos.le + have hE := mul_abs_mul_abs_le_of_tsupport hF hG + (A := ‖Complex.exp (Complex.I * boostPhase m ζ q.1 (q.2.2 - q.2.1))‖ * + ‖boostPhaseDeriv m ζ q.1 (q.2.2 - q.2.1)‖) + (B := Real.exp (-(κ * (s - 2) * dispersion m q.1)) * (2 * dispersion m q.1 * (s + 2) * M)) + (x := q.2.1) (y := q.2.2) (fun hx hy => by + have h1 := norm_exp_I_mul_boostPhase_le_exp (m := m) hs h0 hπ hκ q.1 hx hy + have h2 := norm_boostPhaseDeriv_le m hc hsh q.1 (q.2.2 - q.2.1) + have h3 := abs_fst_add_abs_inner_le_of_mem_doubleCone hs0 hx hy + have h4 : 2 * dispersion m q.1 * (|(q.2.2 - q.2.1).1| + |⟪e₁, (q.2.2 - q.2.1).2⟫_ℝ|) * M ≤ + 2 * dispersion m q.1 * (s + 2) * M := + mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left h3 (mul_pos two_pos hωpos).le) hM + exact mul_le_mul h1 (h2.trans h4) (norm_nonneg _) (Real.exp_pos _).le) + have hnorm : ‖stripIntegrandDeriv m F G ζ q‖ = + ‖Complex.exp (Complex.I * boostPhase m ζ q.1 (q.2.2 - q.2.1))‖ * + ‖boostPhaseDeriv m ζ q.1 (q.2.2 - q.2.1)‖ * (|F.1 q.2.1| * |G.1 q.2.2|) * + (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1)) := by + simp only [stripIntegrandDeriv, norm_mul, Complex.norm_I, one_mul, Complex.norm_real, + Real.norm_eq_abs, abs_of_pos hwpos] + ring + have hB : 0 ≤ 2 * (s + 2) * M * (Real.exp (-(κ * (s - 2) * dispersion m q.1)) * + (|F.1 q.2.1| * |G.1 q.2.2|)) := + mul_nonneg (mul_nonneg (mul_nonneg zero_le_two (by linarith)) hM) + (mul_nonneg (Real.exp_pos _).le (mul_nonneg (abs_nonneg _) (abs_nonneg _))) + rw [hnorm] + calc ‖Complex.exp (Complex.I * boostPhase m ζ q.1 (q.2.2 - q.2.1))‖ * + ‖boostPhaseDeriv m ζ q.1 (q.2.2 - q.2.1)‖ * (|F.1 q.2.1| * |G.1 q.2.2|) * + (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1)) + ≤ Real.exp (-(κ * (s - 2) * dispersion m q.1)) * (2 * dispersion m q.1 * (s + 2) * M) * + (|F.1 q.2.1| * |G.1 q.2.2|) * (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1)) := + mul_le_mul_of_nonneg_right hE hwpos.le + _ = 2 * (s + 2) * M * (Real.exp (-(κ * (s - 2) * dispersion m q.1)) * + (|F.1 q.2.1| * |G.1 q.2.2|)) * + (dispersion m q.1 * (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m q.1))) := by ring + _ ≤ 2 * (s + 2) * M * (Real.exp (-(κ * (s - 2) * dispersion m q.1)) * + (|F.1 q.2.1| * |G.1 q.2.2|)) * 1 := mul_le_mul_of_nonneg_left hωw hB + _ = 2 * (s + 2) * M * (Real.exp (-(κ * (s - 2) * dispersion m q.1)) * + (|F.1 q.2.1| * |G.1 q.2.2|)) := mul_one _ + +/-- For `0 < Im ζ < π`, `stripIntegrand m F G ζ` is integrable on `ℝ³ × (Spacetime × Spacetime)` +(`m > 0`, `s > 2`, supports in the two double cones). -/ +theorem integrable_stripIntegrand {m s : ℝ} (hm : 0 < m) (hs : 2 < s) {F G : RealTestFunction} + (hF : tsupport F.1 ⊆ doubleCone 0 1) (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) + {ζ : ℂ} (h0 : 0 < ζ.im) (hπ : ζ.im < Real.pi) : + Integrable (stripIntegrand m F G ζ) + ((volume : Measure (EuclideanSpace ℝ (Fin 3))).prod + ((volume : Measure Spacetime).prod volume)) := by + have hκ : 0 < Real.sin ζ.im * Real.exp (-|ζ.re|) := + mul_pos (Real.sin_pos_of_pos_of_lt_pi h0 hπ) (Real.exp_pos _) + have hc : 0 < Real.sin ζ.im * Real.exp (-|ζ.re|) * (s - 2) := mul_pos hκ (by linarith) + refine ((integrable_stripMajorant m hc F G).const_mul (1 / m)).mono' + (continuous_stripIntegrand hm.ne' F G ζ).aestronglyMeasurable + (Filter.Eventually.of_forall fun q => ?_) + exact norm_stripIntegrand_le hm hs.le hF hG h0.le hπ.le le_rfl q + +/-- **Fubini**: for `0 < Im ζ < π`, `G(ζ) = ∫ Φ(𝐩, ζ) dν(𝐩)` is the integral of `stripIntegrand` +over the product measure on `ℝ³ × (Spacetime × Spacetime)`. -/ +theorem stripIntegral_eq_integral_prod {m s : ℝ} (hm : 0 < m) (hs : 2 < s) + {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) {ζ : ℂ} (h0 : 0 < ζ.im) + (hπ : ζ.im < Real.pi) : + stripIntegral m F G ζ = ∫ q, stripIntegrand m F G ζ q + ∂((volume : Measure (EuclideanSpace ℝ (Fin 3))).prod + ((volume : Measure Spacetime).prod volume)) := by + rw [integral_prod _ (integrable_stripIntegrand hm hs hF hG h0 hπ)] + unfold stripIntegral + congr 1 + funext p + unfold boostPhaseIntegral + rw [← integral_mul_const] + rfl + +/-! ### E. Holomorphy on the open strip -/ + +/-- **Holomorphy on the open strip** (differentiation under the integral sign): for `m > 0`, +`s > 2`, `F` supported in the unit double cone at the origin and `G` in the unit double cone at +`s 𝐞₁`, `G(ζ) = ∫ Φ(𝐩, ζ) dν(𝐩)` has a complex derivative at every `ζ₀` with +`0 < Im ζ₀ < π`. -/ +theorem hasDerivAt_stripIntegral {m s : ℝ} (hm : 0 < m) (hs : 2 < s) {F G : RealTestFunction} + (hF : tsupport F.1 ⊆ doubleCone 0 1) (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) + {ζ₀ : ℂ} (h0 : 0 < ζ₀.im) (hπ : ζ₀.im < Real.pi) : + HasDerivAt (stripIntegral m F G) + (∫ q, stripIntegrandDeriv m F G ζ₀ q + ∂((volume : Measure (EuclideanSpace ℝ (Fin 3))).prod + ((volume : Measure Spacetime).prod volume))) ζ₀ := by + have hκ0 : 0 < Real.sin ζ₀.im * Real.exp (-|ζ₀.re|) := + mul_pos (Real.sin_pos_of_pos_of_lt_pi h0 hπ) (Real.exp_pos _) + obtain ⟨κ, hκ, hκlt⟩ : ∃ κ : ℝ, 0 < κ ∧ κ < Real.sin ζ₀.im * Real.exp (-|ζ₀.re|) := + ⟨Real.sin ζ₀.im * Real.exp (-|ζ₀.re|) / 2, half_pos hκ0, half_lt_self hκ0⟩ + obtain ⟨M, hMc, hMs⟩ : ∃ M : ℝ, ‖Complex.cosh ζ₀‖ < M ∧ ‖Complex.sinh ζ₀‖ < M := + ⟨‖Complex.cosh ζ₀‖ + ‖Complex.sinh ζ₀‖ + 1, + by linarith [norm_nonneg (Complex.sinh ζ₀)], by linarith [norm_nonneg (Complex.cosh ζ₀)]⟩ + have hrate : Continuous fun ζ : ℂ => Real.sin ζ.im * Real.exp (-|ζ.re|) := + (Real.continuous_sin.comp Complex.continuous_im).mul + (Real.continuous_exp.comp (continuous_abs.comp Complex.continuous_re).neg) + have hopen : IsOpen {ζ : ℂ | κ < Real.sin ζ.im * Real.exp (-|ζ.re|) ∧ + ‖Complex.cosh ζ‖ < M ∧ ‖Complex.sinh ζ‖ < M ∧ 0 < ζ.im ∧ ζ.im < Real.pi} := + (isOpen_lt continuous_const hrate).inter + ((isOpen_lt Complex.continuous_cosh.norm continuous_const).inter + ((isOpen_lt Complex.continuous_sinh.norm continuous_const).inter + ((isOpen_lt continuous_const Complex.continuous_im).inter + (isOpen_lt Complex.continuous_im continuous_const)))) + have hmem : ζ₀ ∈ {ζ : ℂ | κ < Real.sin ζ.im * Real.exp (-|ζ.re|) ∧ + ‖Complex.cosh ζ‖ < M ∧ ‖Complex.sinh ζ‖ < M ∧ 0 < ζ.im ∧ ζ.im < Real.pi} := + ⟨hκlt, hMc, hMs, h0, hπ⟩ + have hc : 0 < κ * (s - 2) := mul_pos hκ (by linarith) + obtain ⟨-, hderiv⟩ := hasDerivAt_integral_of_dominated_loc_of_deriv_le + (μ := (volume : Measure (EuclideanSpace ℝ (Fin 3))).prod + ((volume : Measure Spacetime).prod volume)) + (F := stripIntegrand m F G) (F' := stripIntegrandDeriv m F G) (x₀ := ζ₀) + (bound := fun q => 2 * (s + 2) * M * (Real.exp (-(κ * (s - 2) * dispersion m q.1)) * + (|F.1 q.2.1| * |G.1 q.2.2|))) + (hopen.mem_nhds hmem) + (Filter.Eventually.of_forall fun ζ => + (continuous_stripIntegrand hm.ne' F G ζ).aestronglyMeasurable) + (integrable_stripIntegrand hm hs hF hG h0 hπ) + (continuous_stripIntegrandDeriv hm.ne' F G ζ₀).aestronglyMeasurable + (Filter.Eventually.of_forall fun q ζ hζ => + norm_stripIntegrandDeriv_le hm hs.le hF hG hζ.2.2.2.1.le hζ.2.2.2.2.le hζ.1.le hζ.2.1.le + hζ.2.2.1.le q) + ((integrable_stripMajorant m hc F G).const_mul (2 * (s + 2) * M)) + (Filter.Eventually.of_forall fun q ζ _ => hasDerivAt_stripIntegrand m F G ζ q) + refine hderiv.congr_of_eventuallyEq ?_ + have hstrip : IsOpen {ζ : ℂ | 0 < ζ.im ∧ ζ.im < Real.pi} := + (isOpen_lt continuous_const Complex.continuous_im).inter + (isOpen_lt Complex.continuous_im continuous_const) + filter_upwards [hstrip.mem_nhds ⟨h0, hπ⟩] with ζ hζ + exact stripIntegral_eq_integral_prod hm hs hF hG hζ.1 hζ.2 + +/-- `G(ζ) = ∫ Φ(𝐩, ζ) dν(𝐩)` is complex differentiable at every point of the open strip +`0 < Im ζ < π` (`m > 0`, `s > 2`, supports in the two double cones). -/ +theorem differentiableAt_stripIntegral {m s : ℝ} (hm : 0 < m) (hs : 2 < s) + {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) {ζ : ℂ} (h0 : 0 < ζ.im) + (hπ : ζ.im < Real.pi) : DifferentiableAt ℂ (stripIntegral m F G) ζ := + (hasDerivAt_stripIntegral hm hs hF hG h0 hπ).differentiableAt + +/-! ### E. Constancy on the open strip -/ + +/-- `G(σ + ζ) = G(ζ)` for real `σ` (`m ≠ 0`; stage D). -/ +theorem stripIntegral_add_ofReal {m : ℝ} (hm : m ≠ 0) (σ : ℝ) (F G : RealTestFunction) + (ζ : ℂ) : stripIntegral m F G ((σ : ℂ) + ζ) = stripIntegral m F G ζ := + integral_boostPhaseIntegral_add_ofReal hm σ F G ζ + +/-- The complex derivative of `G` vanishes on the open strip: it equals the derivative in the real +direction, and `G` is constant in `Re ζ`. -/ +theorem deriv_stripIntegral_eq_zero {m s : ℝ} (hm : 0 < m) (hs : 2 < s) {F G : RealTestFunction} + (hF : tsupport F.1 ⊆ doubleCone 0 1) (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) + {ζ₀ : ℂ} (h0 : 0 < ζ₀.im) (hπ : ζ₀.im < Real.pi) : + deriv (stripIntegral m F G) ζ₀ = 0 := by + have hd : HasDerivAt (stripIntegral m F G) (deriv (stripIntegral m F G) ζ₀) ζ₀ := + (differentiableAt_stripIntegral hm hs hF hG h0 hπ).hasDerivAt + have h1 : HasDerivAt (fun x : ℂ => stripIntegral m F G (x + ζ₀)) + (deriv (stripIntegral m F G) ζ₀) 0 := by + refine HasDerivAt.comp_add_const 0 ζ₀ ?_ + rw [zero_add] + exact hd + have h2 : HasDerivAt (fun y : ℝ => stripIntegral m F G ((y : ℂ) + ζ₀)) + (deriv (stripIntegral m F G) ζ₀) 0 := by + refine HasDerivAt.comp_ofReal (e := fun x : ℂ => stripIntegral m F G (x + ζ₀)) ?_ + rw [Complex.ofReal_zero] + exact h1 + have h3 : (fun y : ℝ => stripIntegral m F G ((y : ℂ) + ζ₀)) = + fun _ => stripIntegral m F G ζ₀ := + funext fun y => stripIntegral_add_ofReal hm.ne' y F G ζ₀ + rw [h3] at h2 + exact h2.unique (hasDerivAt_const 0 _) + +/-- **Constancy on the open strip**: for `m > 0`, `s > 2`, `F` supported in the unit double cone +at the origin and `G` in the unit double cone at `s 𝐞₁`, `G(ζ₁) = G(ζ₂)` for all `ζ₁`, `ζ₂` with +`0 < Im ζ₁, Im ζ₂ < π` (`G` is holomorphic with vanishing derivative on the convex open strip). -/ +theorem stripIntegral_eq_of_mem_strip {m s : ℝ} (hm : 0 < m) (hs : 2 < s) + {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) {ζ₁ ζ₂ : ℂ} (h₁0 : 0 < ζ₁.im) + (h₁π : ζ₁.im < Real.pi) (h₂0 : 0 < ζ₂.im) (h₂π : ζ₂.im < Real.pi) : + stripIntegral m F G ζ₁ = stripIntegral m F G ζ₂ := by + have hopen : IsOpen (Complex.im ⁻¹' Set.Ioo 0 Real.pi) := + isOpen_Ioo.preimage Complex.continuous_im + have hconv : Convex ℝ (Complex.im ⁻¹' Set.Ioo 0 Real.pi) := + (convex_Ioo 0 Real.pi).linear_preimage Complex.imLm + refine hopen.is_const_of_deriv_eq_zero hconv.isPreconnected ?_ ?_ ⟨h₁0, h₁π⟩ ⟨h₂0, h₂π⟩ + · intro ζ hζ + exact (differentiableAt_stripIntegral hm hs hF hG hζ.1 hζ.2).differentiableWithinAt + · intro ζ hζ + exact deriv_stripIntegral_eq_zero hm hs hF hG hζ.1 hζ.2 + +/-- **Stage E, on the imaginary axis**: `∫ Φ(𝐩, iθ₁) dν(𝐩) = ∫ Φ(𝐩, iθ₂) dν(𝐩)` for +`θ₁, θ₂ ∈ (0, π)` (`m > 0`, `s > 2`, `F` supported in the unit double cone at the origin, `G` in +the unit double cone at `s 𝐞₁`). -/ +theorem integral_boostPhaseIntegral_mul_I_eq {m s : ℝ} (hm : 0 < m) (hs : 2 < s) + {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) {θ₁ θ₂ : ℝ} (h₁0 : 0 < θ₁) + (h₁π : θ₁ < Real.pi) (h₂0 : 0 < θ₂) (h₂π : θ₂ < Real.pi) : + ∫ p, boostPhaseIntegral m F G p ((θ₁ : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) = + ∫ p, boostPhaseIntegral m F G p ((θ₂ : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) := by + have him : ∀ θ : ℝ, ((θ : ℂ) * Complex.I).im = θ := fun _ => by + rw [Complex.mul_I_im, Complex.ofReal_re] + exact stripIntegral_eq_of_mem_strip hm hs hF hG (ζ₁ := (θ₁ : ℂ) * Complex.I) + (ζ₂ := (θ₂ : ℂ) * Complex.I) (by rw [him]; exact h₁0) (by rw [him]; exact h₁π) + (by rw [him]; exact h₂0) (by rw [him]; exact h₂π) + +/-- **Stage E** (the form used in stage G): for `θ ∈ (0, π)`, +`∫ Φ(𝐩, iθ) dν(𝐩) = ∫ Φ(𝐩, iπ/2) dν(𝐩)`. -/ +theorem integral_boostPhaseIntegral_eq_on_strip {m s : ℝ} (hm : 0 < m) (hs : 2 < s) + {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) : + ∀ θ : ℝ, 0 < θ → θ < Real.pi → + ∫ p, boostPhaseIntegral m F G p ((θ : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) = + ∫ p, boostPhaseIntegral m F G p (((Real.pi / 2 : ℝ) : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) := fun _θ hθ0 hθπ => + integral_boostPhaseIntegral_mul_I_eq hm hs hF hG hθ0 hθπ (half_pos Real.pi_pos) + (half_lt_self Real.pi_pos) + +/-- **Stage G, conditional on the edge continuity of stage F**: if +`θ ↦ ∫ Φ(𝐩, iθ) dν(𝐩)` is continuous on `[0, π]`, then its boundary values at `θ = 0` and +`θ = π` agree (it is constant on `(0, π)`), hence `Im ⟨κ_m F, κ_m G⟩ = 0`. -/ +theorem im_oneParticleInner_eq_zero_of_continuousOn {m s : ℝ} (hm : 0 < m) (hs : 2 < s) + {F G : RealTestFunction} (hF : tsupport F.1 ⊆ doubleCone 0 1) + (hG : tsupport G.1 ⊆ doubleCone (0, s • e₁) 1) + (hcont : ContinuousOn (fun θ : ℝ => ∫ p, boostPhaseIntegral m F G p ((θ : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)) (Set.Icc 0 Real.pi)) : + (oneParticleInner m F G).im = 0 := by + have hconst : Set.EqOn (fun θ : ℝ => ∫ p, boostPhaseIntegral m F G p ((θ : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)) + (fun _ => ∫ p, boostPhaseIntegral m F G p (((Real.pi / 2 : ℝ) : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)) (Set.Ioo 0 Real.pi) := + fun θ hθ => integral_boostPhaseIntegral_eq_on_strip hm hs hF hG θ hθ.1 hθ.2 + have hEq := hconst.of_subset_closure hcont continuousOn_const Set.Ioo_subset_Icc_self + (closure_Ioo Real.pi_pos.ne).symm.subset + have h0 : ∫ p, boostPhaseIntegral m F G p (((0 : ℝ) : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) = + ∫ p, boostPhaseIntegral m F G p (((Real.pi / 2 : ℝ) : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) := + hEq (Set.left_mem_Icc.mpr Real.pi_pos.le) + have hπ : ∫ p, boostPhaseIntegral m F G p ((Real.pi : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) = + ∫ p, boostPhaseIntegral m F G p (((Real.pi / 2 : ℝ) : ℂ) * Complex.I) * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) := + hEq (Set.right_mem_Icc.mpr Real.pi_pos.le) + rw [Complex.ofReal_zero, zero_mul] at h0 + exact im_oneParticleInner_eq_zero_of_boundary_eq m F G (h0.trans hπ.symm) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ModularWeightCompression.lean b/LeanPool/VacuumBellSeparation/FreeField/ModularWeightCompression.lean new file mode 100644 index 0000000000..995f4dcda7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ModularWeightCompression.lean @@ -0,0 +1,108 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCompression + +/-! +# Compression of the bounded modular weight + +The scalar function (1+x)^(1-p)(1-x)^p for 0 cfc (modularWeightSquareFunction p) (t • T)) + (𝓝[<] (1 : ℝ)) (𝓝 (cfc (modularWeightSquareFunction p) T)) := by + have hspec : spectrum ℝ T ⊆ Set.Icc (-1 : ℝ) 1 := + fun _ hx => spectrum_mem_Icc_of_norm_le_one hnorm hx + have hc := continuousOn_cfc (F →L[ℂ] F) (s := Set.Icc (-1 : ℝ) 1) isCompact_Icc + (modularWeightSquareFunction p) (continuous_modularWeightSquareFunction hp0 hp1).continuousOn + have hlim : Tendsto (fun t : ℝ => t • T) (𝓝[<] (1 : ℝ)) (𝓝 T) := by + have hcont : Continuous (fun t : ℝ => t • T) := continuous_id.smul continuous_const + simpa using (hcont.tendsto (1 : ℝ)).mono_left nhdsWithin_le_nhds + apply (hc T ⟨hT, hspec⟩).tendsto.comp + apply tendsto_nhdsWithin_iff.mpr + refine ⟨hlim, ?_⟩ + filter_upwards [Ioo_mem_nhdsLT (show (0 : ℝ) < 1 by norm_num)] with t ht + exact ⟨(show IsSelfAdjoint t by cfc_tac).smul hT, + fun _ hx => spectrum_mem_Icc_of_norm_le_one (norm_smul_lt_one hnorm ht).le hx⟩ + +/-- The full closed-contraction compression inequality for the source modular weight. -/ +theorem modularWeight_compression (ι : E →ₗᵢ[ℂ] F) + {T : F →L[ℂ] F} (hT : IsSelfAdjoint T) (hnorm : ‖T‖ ≤ 1) + {p : ℝ} (hp0 : 0 < p) (hp1 : p ≤ 1) : + compression ι (cfc (modularWeightSquareFunction p) T) ≤ + cfc (modularWeightSquareFunction p) (compression ι T) := by + have hleft := (continuous_compression ι).continuousAt.tendsto.comp + (tendsto_modularWeight_cfc_smul hp0.le hp1 hT hnorm) + have hright := tendsto_modularWeight_cfc_smul hp0.le hp1 + (compression_isSelfAdjoint ι hT) ((norm_compression_le ι T).trans hnorm) + apply le_of_tendsto_of_tendsto hleft hright + filter_upwards [Ioo_mem_nhdsLT (show (0 : ℝ) < 1 by norm_num)] with t ht + simpa only [compression_real_smul, Function.comp_apply] + using modularWeight_compression_of_norm_lt_one ι + ((show IsSelfAdjoint t by cfc_tac).smul hT) (norm_smul_lt_one hnorm ht) hp0 hp1 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ModularWeightInclusion.lean b/LeanPool/VacuumBellSeparation/FreeField/ModularWeightInclusion.lean new file mode 100644 index 0000000000..7827b56cae --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ModularWeightInclusion.lean @@ -0,0 +1,110 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ModularWeightNorm +public import LeanPool.VacuumBellSeparation.FreeField.PhysicalModularPowers + +/-! +# Containing-region bounds for the actual completed source spaces + +The source inclusion is the constructed isometry of the covariance +completions. Compression of its actual Gram identifies the normalized +commutation operator; the weighted-mean inequality then bounds the full +bounded source weight. For bounded nonempty open containing regions this +is transported to the physical modular power, with domain membership. +No wedge modular identification is claimed here. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap Gaussian MeasureTheory +open scoped InnerProductSpace + +variable {m : ℝ} (hm : 0 < m) +variable {U W : Set (EuclideanSpace ℝ (Fin 3))} (hUW : U ⊆ W) + +theorem sourceNormalizedCommutation_compression : + compression (complexSourceInclusion hm hUW) + (normalizedCommutation (complexSourceCommutation hm W)) = + normalizedCommutation (complexSourceCommutation hm U) := by + have heq (V : Set (EuclideanSpace ℝ (Fin 3))) : + normalizedCommutation (complexSourceCommutation hm V) = sourceGram hm V - 1 := by + rw [sourceGram_eq_normalized_commutation] + change (Complex.I / 2) • complexSourceCommutation hm V = + 1 + (Complex.I / 2) • complexSourceCommutation hm V - 1 + abel + rw [heq W, heq U, compression_sub, compression_one] + congr 1 + exact sourceGram_compression hm hUW + +/-- Bounded weight order, with no injectivity or spectral-gap hypothesis. -/ +theorem sourceModularWeight_square_compression {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) : + compression (complexSourceInclusion hm hUW) + ((sourceModularWeight hm W c).adjoint * sourceModularWeight hm W c) ≤ + (sourceModularWeight hm U c).adjoint * sourceModularWeight hm U c := by + rw [sourceModularWeight_adjoint_mul hm W hc.le hc2, + sourceModularWeight_adjoint_mul hm U hc.le hc2, + ← sourceNormalizedCommutation_compression hm hUW] + exact modularWeight_compression (complexSourceInclusion hm hUW) + (normalizedCommutation_isSelfAdjoint (complexSourceCommutation_mem_skewAdjoint hm W)) + (norm_normalizedCommutation_le_one (norm_complexSourceCommutation_le_two hm W)) + (by linarith) (by linarith) + +/-- The exact bounded source inequality for every completed complex source vector. -/ +theorem sourceModularWeight_inclusion_norm {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) + (z : ComplexSourceHilbert hm U) : + ‖sourceModularWeight hm W c (complexSourceInclusion hm hUW z)‖ ≤ + ‖sourceModularWeight hm U c z‖ := by + let J := (complexSourceInclusion hm hUW).toContinuousLinearMap + let A := sourceModularWeight hm W c + let B := sourceModularWeight hm U c + have hleft : ‖A (J z)‖ ^ 2 = + (inner ℂ z (compression (complexSourceInclusion hm hUW) (A.adjoint * A) z)).re := by + change ‖(A ∘L J) z‖ ^ 2 = _ + rw [(A ∘L J).apply_norm_sq_eq_inner_adjoint_right, adjoint_comp] + rfl + have hright : ‖B z‖ ^ 2 = (inner ℂ z ((B.adjoint * B) z)).re := + B.apply_norm_sq_eq_inner_adjoint_right z + have hh := (nonneg_iff_isPositive.mp (sub_nonneg.mpr + (sourceModularWeight_square_compression hm hUW hc hc2))).re_inner_nonneg_right z + change 0 ≤ (inner ℂ z ((B.adjoint * B - + compression (complexSourceInclusion hm hUW) (A.adjoint * A)) z)).re at hh + simp only [sub_apply, inner_sub_right, Complex.sub_re] at hh + rw [← hleft, ← hright] at hh + change ‖A (J z)‖ ≤ ‖B z‖ + nlinarith [norm_nonneg (A (J z)), norm_nonneg (B z)] + +include hUW in +/-- The physical containing-region estimate, including its actual unbounded domain. +The containing region is bounded, nonempty and open so that its constructed polar +source unitary exists. The containing-wedge case is proved in another module +(`physicalRapidityExponential_containing_leftWedge` in `FreeField/WedgeModularInclusion.lean`). -/ +theorem physicalModularPower_containing_region + (hW : Bornology.IsBounded W) (hopen : IsOpen W) (hne : W.Nonempty) + {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) (z : ComplexSourceHilbert hm U) : + ∃ hx : complexSourceMap hm U z ∈ + (physicalModularPower hm W hW hopen hne c hc.le (by linarith)).domain, + ‖physicalModularPower hm W hW hopen hne c hc.le (by linarith) + ⟨complexSourceMap hm U z, hx⟩‖ ≤ ‖sourceModularWeight hm U c z‖ := by + have hmap : complexSourceMap hm W (complexSourceInclusion hm hUW z) = complexSourceMap hm U z := + DFunLike.congr_fun (complexSourceMap_comp_inclusion hm hUW) z + obtain ⟨hx, hv⟩ := physicalModularPower_apply_source hm W hW hopen hne c hc.le hc2 + (complexSourceInclusion hm hUW z) + have hh : ∃ hy : complexSourceMap hm W (complexSourceInclusion hm hUW z) ∈ + (physicalModularPower hm W hW hopen hne c hc.le (by linarith)).domain, + ‖physicalModularPower hm W hW hopen hne c hc.le (by linarith) + ⟨complexSourceMap hm W (complexSourceInclusion hm hUW z), hy⟩‖ ≤ + ‖sourceModularWeight hm U c z‖ := by + refine ⟨hx, ?_⟩ + rw [hv, LinearIsometryEquiv.norm_map] + exact sourceModularWeight_inclusion_norm hm hUW hc hc2 z + simpa only [hmap] using hh + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ModularWeightNorm.lean b/LeanPool/VacuumBellSeparation/FreeField/ModularWeightNorm.lean new file mode 100644 index 0000000000..d4a66bc389 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ModularWeightNorm.lean @@ -0,0 +1,106 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ModularWeightCompression +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularPowers + +/-! +# The actual squared modular source weight + +The product G^(1/2-c) Gbar^c is identified with continuous scalar calculus +of the normalized commutation operator. Its adjoint square has the literal +function used by the compression inequality, including both spectral endpoints. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap Gaussian +open scoped InnerProductSpace + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Modular weight operator given by `(1 + T) ^ (1 / 2 - c) * (1 - T) ^ c`. -/ +noncomputable def modularWeightOperator (T : E →L[ℂ] E) (c : ℝ) : E →L[ℂ] E := + (1 + T) ^ (1 / 2 - c) * (1 - T) ^ c + +theorem modularWeightOperator_eq_cfc {T : E →L[ℂ] E} + (hT : IsSelfAdjoint T) (hnorm : ‖T‖ ≤ 1) + {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + modularWeightOperator T c = + cfc (fun x : ℝ => (1 + x) ^ (1 / 2 - c) * (1 - x) ^ c) T := by + have hp : Continuous (fun x : ℝ => x ^ (1 / 2 - c)) := + Real.continuous_rpow_const (sub_nonneg.mpr hc2) + have hq : Continuous (fun x : ℝ => x ^ c) := Real.continuous_rpow_const hc + have hplus : (1 + T) ^ (1 / 2 - c) = + cfc (fun x : ℝ => (1 + x) ^ (1 / 2 - c)) T := by + rw [CFC.rpow_eq_cfc_real (show 0 ≤ (1 + T) from gramPlus_nonneg hT hnorm), + ← cfc_one_add_id T hT] + simpa only [Function.comp_def] using + (cfc_comp' (fun x : ℝ => x ^ (1 / 2 - c)) (fun x : ℝ => 1 + x) T + hp.continuousOn (continuous_const.add continuous_id).continuousOn hT).symm + have hminus : (1 - T) ^ c = cfc (fun x : ℝ => (1 - x) ^ c) T := by + rw [CFC.rpow_eq_cfc_real (show 0 ≤ (1 - T) from gramMinus_nonneg hT hnorm), + ← cfc_one_sub_id T hT] + simpa only [Function.comp_def] using + (cfc_comp' (fun x : ℝ => x ^ c) (fun x : ℝ => 1 - x) T + hq.continuousOn (continuous_const.sub continuous_id).continuousOn hT).symm + rw [modularWeightOperator, hplus, hminus, + ← cfc_mul (fun x : ℝ => (1 + x) ^ (1 / 2 - c)) + (fun x : ℝ => (1 - x) ^ c) T + (hp.comp (continuous_const.add continuous_id)).continuousOn + (hq.comp (continuous_const.sub continuous_id)).continuousOn] + +theorem modularWeightOperator_adjoint_mul {T : E →L[ℂ] E} + (hT : IsSelfAdjoint T) (hnorm : ‖T‖ ≤ 1) + {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + (modularWeightOperator T c).adjoint * modularWeightOperator T c = + cfc (modularWeightSquareFunction (2 * c)) T := by + let f : ℝ → ℝ := fun x => (1 + x) ^ (1 / 2 - c) * (1 - x) ^ c + have hf : Continuous f := + ((Real.continuous_rpow_const (sub_nonneg.mpr hc2)).comp + (continuous_const.add continuous_id)).mul + ((Real.continuous_rpow_const hc).comp (continuous_const.sub continuous_id)) + have hs (x : ℝ) (hx : x ∈ spectrum ℝ T) : 0 ≤ 1 + x ∧ 0 ≤ 1 - x := by + have hh := spectrum_mem_Icc_of_norm_le_one hnorm hx + constructor <;> linarith [hh.1, hh.2] + have hfpos : 0 ≤ cfc f T := cfc_nonneg fun x hx => + mul_nonneg (Real.rpow_nonneg (hs x hx).1 _) (Real.rpow_nonneg (hs x hx).2 _) + rw [modularWeightOperator_eq_cfc hT hnorm hc hc2, hfpos.isSelfAdjoint.adjoint_eq, + ← cfc_mul f f T hf.continuousOn hf.continuousOn] + apply cfc_congr + intro x hx + change ((1 + x) ^ (1 / 2 - c) * (1 - x) ^ c) * + ((1 + x) ^ (1 / 2 - c) * (1 - x) ^ c) = _ + calc + _ = ((1 + x) ^ (1 / 2 - c) * (1 + x) ^ (1 / 2 - c)) * + ((1 - x) ^ c * (1 - x) ^ c) := by ring + _ = (1 + x) ^ ((1 / 2 - c) + (1 / 2 - c)) * (1 - x) ^ (c + c) := by + rw [← Real.rpow_add_of_nonneg (hs x hx).1 (sub_nonneg.mpr hc2) (sub_nonneg.mpr hc2), + ← Real.rpow_add_of_nonneg (hs x hx).2 hc hc] + _ = _ := by unfold modularWeightSquareFunction; congr 2 <;> ring + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +theorem sourceModularWeight_eq_modularWeightOperator (c : ℝ) : + sourceModularWeight hm U c = + modularWeightOperator (normalizedCommutation (complexSourceCommutation hm U)) c := by + rw [sourceModularWeight, sourceGram_eq_normalized_commutation, conjugateSourceGram_eq] + rfl + +theorem sourceModularWeight_adjoint_mul {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + (sourceModularWeight hm U c).adjoint * sourceModularWeight hm U c = + cfc (modularWeightSquareFunction (2 * c)) + (normalizedCommutation (complexSourceCommutation hm U)) := by + rw [sourceModularWeight_eq_modularWeightOperator] + exact modularWeightOperator_adjoint_mul + (normalizedCommutation_isSelfAdjoint (complexSourceCommutation_mem_skewAdjoint hm U)) + (norm_normalizedCommutation_le_one (norm_complexSourceCommutation_le_two hm U)) hc hc2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/OQP12.lean b/LeanPool/VacuumBellSeparation/FreeField/OQP12.lean new file mode 100644 index 0000000000..674a651b39 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/OQP12.lean @@ -0,0 +1,242 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.MainTheorems +public import LeanPool.VacuumBellSeparation.FreeField.Corollary +public import LeanPool.VacuumBellSeparation.Bell.StateBound +public import LeanPool.VacuumBellSeparation.Bell.EventConstants + +/-! +# Open Quantum Problem 12 for bounded regions: the CHSH inequality at large separation + +Open Quantum Problem 12 of the IQOQI Vienna list ("Bell inequalities for long range vacuum +correlations") asks whether some (necessarily small) violation of the CHSH-Bell inequalities by +the vacuum is possible for regions arbitrarily far apart, for a massive scalar free relativistic +Bose field. For two bounded regions moved apart along a fixed spacelike direction or by a spatial +translation, this module states the plain form of the CHSH inequality, `|⟨Ω, (A₀(B₀ + B₁) + A₁(B₀ +- B₁)) Ω⟩| ≤ 2` for all self-adjoint contractions +`A₀, A₁` and `B₀, B₁` of the two local algebras, without the supremum and the factor `1/2` of +the Bell correlation `β`. + +* `norm_apply_chshOp_le_two_of_bellCorrelation_eq_one`: `β = 1` gives the CHSH inequality for + every choice of local observables. +* `no_chsh_violation_far_apart`: two bounded regions, the second translated by `t a` along a fixed + spacelike vector `a`; there is no CHSH violation once `t ≥ T₀` (from `corollary_1_2`). +* `bellCorrelation_eq_one_of_spatial_separation`: two bounded regions, the second translated by a + spatial vector `𝐱` in any direction; `β = 1` once `|𝐱| ≥ D`, with `D` independent of the + direction (from `theorem_1_1`, a spatial reflection taking `𝐱` to `|𝐱| 𝐞₁`, and isotony). +* `no_chsh_violation_far_apart_uniform`: the same in the plain CHSH form. +* `bellCorrelation_vacuum_eq_sSup`, `theorem_1_1_explicit`, `corollary_1_2_explicit`: the vacuum +Bell + correlation written out as a supremum of CHSH values, and Theorem 1.1 and Corollary 1.2 in that + form + (the form in which `Challenge.lean` states them). +-/ + +@[expose] public section + +open scoped InnerProductSpace + +namespace VacuumBellSeparation + +section CHSH + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- If the Bell correlation of a state for two von Neumann algebras equals its classical value `1`, +then every CHSH expectation `ω(A₀(B₀ + B₁) + A₁(B₀ - B₁))` with self-adjoint contractions +`A₀, A₁ ∈ 𝔄` and `B₀, B₁ ∈ 𝔅` has modulus at most `2`. -/ +theorem norm_apply_chshOp_le_two_of_bellCorrelation_eq_one (ω : State H) + {𝔄 𝔅 : VonNeumannAlgebra H} (h : bellCorrelation ω 𝔄 𝔅 = 1) + {A₀ A₁ B₀ B₁ : H →L[ℂ] H} (hA₀ : A₀ ∈ saContractions 𝔄) (hA₁ : A₁ ∈ saContractions 𝔄) + (hB₀ : B₀ ∈ saContractions 𝔅) (hB₁ : B₁ ∈ saContractions 𝔅) : + ‖ω (chshOp A₀ A₁ B₀ B₁)‖ ≤ 2 := by + have hmem : (1 / 2 : ℝ) * ‖ω (chshOp A₀ A₁ B₀ B₁)‖ ∈ chshValues ω 𝔄 𝔅 := + ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, rfl⟩ + have hle := le_csSup (bddAbove_chshValues ω 𝔄 𝔅) hmem + have hsup : sSup (chshValues ω 𝔄 𝔅) = 1 := h + rw [hsup] at hle + linarith + +end CHSH + +/-- **No CHSH violation for bounded regions far apart along a fixed spacelike direction.** +For every mass `m > 0`, any two bounded regions `O₁, O₂` and any spacelike vector `a`, there is +`T₀` such that for all `t ≥ T₀`, in every vacuum Weyl system of the free field of mass `m`, all +self-adjoint contractions `A₀, A₁ ∈ 𝔄(O₁)` and `B₀, B₁ ∈ 𝔄(O₂ + t a)` satisfy the CHSH inequality +`|⟨Ω, (A₀(B₀ + B₁) + A₁(B₀ - B₁)) Ω⟩| ≤ 2`. -/ +theorem no_chsh_violation_far_apart (m : ℝ) (hm : 0 < m) + (O₁ O₂ : Set Spacetime) (hO₁ : Bornology.IsBounded O₁) (hO₂ : Bornology.IsBounded O₂) + (a : Spacetime) (ha : a.1 ^ 2 < ‖a.2‖ ^ 2) : + ∃ T₀ : ℝ, ∀ t : ℝ, T₀ ≤ t → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) (A₀ A₁ B₀ B₁ : H →L[ℂ] H), + A₀ ∈ localAlgebra V O₁ → A₁ ∈ localAlgebra V O₁ → + B₀ ∈ localAlgebra V ((fun x => x + t • a) '' O₂) → + B₁ ∈ localAlgebra V ((fun x => x + t • a) '' O₂) → + IsSelfAdjoint A₀ → IsSelfAdjoint A₁ → IsSelfAdjoint B₀ → IsSelfAdjoint B₁ → + ‖A₀‖ ≤ 1 → ‖A₁‖ ≤ 1 → ‖B₀‖ ≤ 1 → ‖B₁‖ ≤ 1 → + ‖⟪V.vacuum, (A₀ * (B₀ + B₁) + A₁ * (B₀ - B₁)) V.vacuum⟫_ℂ‖ ≤ 2 := by + obtain ⟨T₀, hT₀⟩ := corollary_1_2 m hm O₁ O₂ hO₁ hO₂ a ha + refine ⟨T₀, ?_⟩ + intro t ht H _ _ _ V A₀ A₁ B₀ B₁ hA₀ hA₁ hB₀ hB₁ sA₀ sA₁ sB₀ sB₁ nA₀ nA₁ nB₀ nB₁ + exact norm_apply_chshOp_le_two_of_bellCorrelation_eq_one _ (hT₀ t ht H V) + ⟨hA₀, sA₀, nA₀⟩ ⟨hA₁, sA₁, nA₁⟩ ⟨hB₀, sB₀, nB₀⟩ ⟨hB₁, sB₁, nB₁⟩ + +/-- **The Bell correlation of bounded regions at large spatial separation, uniformly over the +direction.** For every mass `m > 0` and any two bounded regions `O₁, O₂` there is `D` such that, +for every spatial vector `𝐱` with `|𝐱| ≥ D` (in any direction), the vacuum Bell correlation of +`𝔄(O₁)` and `𝔄(O₂ + (0, 𝐱))` equals `1`, in every vacuum Weyl system of mass `m`. -/ +theorem bellCorrelation_eq_one_of_spatial_separation (m : ℝ) (hm : 0 < m) + (O₁ O₂ : Set Spacetime) (hO₁ : Bornology.IsBounded O₁) (hO₂ : Bornology.IsBounded O₂) : + ∃ D : ℝ, ∀ x : EuclideanSpace ℝ (Fin 3), D ≤ ‖x‖ → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H), + bellCorrelation (vectorState V.vacuum V.vacuum_norm) (localAlgebra V O₁) + (localAlgebra V ((fun y => y + ((0 : ℝ), x)) '' O₂)) = 1 := by + obtain ⟨C, -, hC⟩ := theorem_1_1 + obtain ⟨ρ, hρ, hsub⟩ := exists_subset_doubleCone_of_isBounded (hO₁.union hO₂) + refine ⟨C * ρ, ?_⟩ + intro x hx H _ _ _ V + obtain ⟨R, hR⟩ := exists_linearIsometryEquiv_apply_eq_norm_smul_e₁ x + obtain ⟨Λ, hΛc, hΛx, hΛ⟩ : ∃ Λ : Spacetime ≃L[ℝ] Spacetime, + (∀ y : Spacetime, |(Λ y).1| + ‖(Λ y).2‖ = |y.1| + ‖y.2‖) ∧ + Λ ((0 : ℝ), x) = (0, ‖x‖ • e₁) ∧ + ∀ F G : RealTestFunction, + oneParticleInner m (F.compCLE Λ) (G.compCLE Λ) = oneParticleInner m F G := by + refine ⟨spatialRotation R, fun y => ?_, ?_, oneParticleInner_spatialRotation m R⟩ + · simp only [spatialRotation_apply, LinearIsometryEquiv.norm_map] + · rw [spatialRotation_apply] + exact Prod.ext rfl hR + have hcone : ∀ S : Set Spacetime, S ⊆ doubleCone 0 ρ → Λ '' S ⊆ doubleCone 0 ρ := by + rintro S hS _ ⟨y, hy, rfl⟩ + have h : |y.1 - 0| + ‖y.2 - 0‖ < ρ := hS hy + change |(Λ y).1 - 0| + ‖(Λ y).2 - 0‖ < ρ + simp only [sub_zero] at h ⊢ + rw [hΛc y] + exact h + have h₁ : Λ '' O₁ ⊆ doubleCone 0 ρ := hcone O₁ fun y hy => hsub (Or.inl hy) + have h₂' : Λ '' O₂ ⊆ doubleCone 0 ρ := hcone O₂ fun y hy => hsub (Or.inr hy) + have h₂ : Λ '' ((fun y => y + ((0 : ℝ), x)) '' O₂) ⊆ doubleCone (0, ‖x‖ • e₁) ρ := by + rw [image_image_add_eq Λ O₂ ((0 : ℝ), x), hΛx] + exact image_add_subset_doubleCone h₂' _ + have hle : bellCorrelation + (vectorState (V.lorentz Λ hΛ).vacuum (V.lorentz Λ hΛ).vacuum_norm) + (localAlgebra (V.lorentz Λ hΛ) (Λ '' O₁)) + (localAlgebra (V.lorentz Λ hΛ) (Λ '' ((fun y => y + ((0 : ℝ), x)) '' O₂))) ≤ + freeFieldBell (V.lorentz Λ hΛ) ρ ‖x‖ := + bellCorrelation_mono _ (localAlgebra_mono (V.lorentz Λ hΛ) h₁) + (localAlgebra_mono (V.lorentz Λ hΛ) h₂) + rw [V.bellCorrelation_lorentz_image Λ hΛ] at hle + exact le_antisymm (hle.trans_eq (hC m ρ ‖x‖ hm hρ hx H (V.lorentz Λ hΛ))) + (one_le_bellCorrelation _ _ _) + +/-- **No CHSH violation for bounded regions far apart, uniformly over spatial directions.** +For every mass `m > 0` and any two bounded regions `O₁, O₂` there is `D` such that, for every +spatial vector `𝐱` with `|𝐱| ≥ D` (in any direction), in every vacuum Weyl system of mass `m`, +all self-adjoint contractions `A₀, A₁ ∈ 𝔄(O₁)` and `B₀, B₁ ∈ 𝔄(O₂ + (0, 𝐱))` satisfy the CHSH +inequality `|⟨Ω, (A₀(B₀ + B₁) + A₁(B₀ - B₁)) Ω⟩| ≤ 2`. -/ +theorem no_chsh_violation_far_apart_uniform (m : ℝ) (hm : 0 < m) + (O₁ O₂ : Set Spacetime) (hO₁ : Bornology.IsBounded O₁) (hO₂ : Bornology.IsBounded O₂) : + ∃ D : ℝ, ∀ x : EuclideanSpace ℝ (Fin 3), D ≤ ‖x‖ → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) (A₀ A₁ B₀ B₁ : H →L[ℂ] H), + A₀ ∈ localAlgebra V O₁ → A₁ ∈ localAlgebra V O₁ → + B₀ ∈ localAlgebra V ((fun y => y + ((0 : ℝ), x)) '' O₂) → + B₁ ∈ localAlgebra V ((fun y => y + ((0 : ℝ), x)) '' O₂) → + IsSelfAdjoint A₀ → IsSelfAdjoint A₁ → IsSelfAdjoint B₀ → IsSelfAdjoint B₁ → + ‖A₀‖ ≤ 1 → ‖A₁‖ ≤ 1 → ‖B₀‖ ≤ 1 → ‖B₁‖ ≤ 1 → + ‖⟪V.vacuum, (A₀ * (B₀ + B₁) + A₁ * (B₀ - B₁)) V.vacuum⟫_ℂ‖ ≤ 2 := by + obtain ⟨D, hD⟩ := bellCorrelation_eq_one_of_spatial_separation m hm O₁ O₂ hO₁ hO₂ + refine ⟨D, ?_⟩ + intro x hx H _ _ _ V A₀ A₁ B₀ B₁ hA₀ hA₁ hB₀ hB₁ sA₀ sA₁ sB₀ sB₁ nA₀ nA₁ nB₀ nB₁ + exact norm_apply_chshOp_le_two_of_bellCorrelation_eq_one _ (hD x hx H V) + ⟨hA₀, sA₀, nA₀⟩ ⟨hA₁, sA₁, nA₁⟩ ⟨hB₀, sB₀, nB₀⟩ ⟨hB₁, sB₁, nB₁⟩ + +/-! ### Theorem 1.1 and Corollary 1.2 with the vacuum Bell correlation written out + +`Challenge.lean` copies the definitions of `FreeField/Defs.lean` up to `e₁`, so its statements of +Theorem 1.1 and Corollary 1.2 spell out the vacuum Bell correlation as the supremum of the CHSH +values +`½ |⟨Ω, (A₀(B₀ + B₁) + A₁(B₀ - B₁)) Ω⟩|`. The theorems below have exactly those statements. -/ + +section Explicit + +variable {m : ℝ} {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The vacuum Bell correlation of two local algebras, written out: the supremum of +`½ |⟨Ω, (A₀(B₀ + B₁) + A₁(B₀ - B₁)) Ω⟩|` over self-adjoint contractions `A₀, A₁ ∈ 𝔄(O₁)` and +`B₀, B₁ ∈ 𝔄(O₂)`. -/ +theorem bellCorrelation_vacuum_eq_sSup (V : FreeFieldVacuum m H) (O₁ O₂ : Set Spacetime) : + bellCorrelation (vectorState V.vacuum V.vacuum_norm) (localAlgebra V O₁) (localAlgebra V O₂) = + sSup {v : ℝ | ∃ A₀ A₁ B₀ B₁ : H →L[ℂ] H, + A₀ ∈ localAlgebra V O₁ ∧ A₁ ∈ localAlgebra V O₁ ∧ + B₀ ∈ localAlgebra V O₂ ∧ B₁ ∈ localAlgebra V O₂ ∧ + IsSelfAdjoint A₀ ∧ IsSelfAdjoint A₁ ∧ IsSelfAdjoint B₀ ∧ IsSelfAdjoint B₁ ∧ + ‖A₀‖ ≤ 1 ∧ ‖A₁‖ ≤ 1 ∧ ‖B₀‖ ≤ 1 ∧ ‖B₁‖ ≤ 1 ∧ + v = (1 / 2 : ℝ) * ‖⟪V.vacuum, (A₀ * (B₀ + B₁) + A₁ * (B₀ - B₁)) V.vacuum⟫_ℂ‖} := by + change sSup (chshValues _ _ _) = _ + refine congrArg sSup ?_ + ext v + constructor + · rintro ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, rfl⟩ + obtain ⟨hA₀, sA₀, nA₀⟩ : A₀ ∈ localAlgebra V O₁ ∧ IsSelfAdjoint A₀ ∧ ‖A₀‖ ≤ 1 := hA₀ + obtain ⟨hA₁, sA₁, nA₁⟩ : A₁ ∈ localAlgebra V O₁ ∧ IsSelfAdjoint A₁ ∧ ‖A₁‖ ≤ 1 := hA₁ + obtain ⟨hB₀, sB₀, nB₀⟩ : B₀ ∈ localAlgebra V O₂ ∧ IsSelfAdjoint B₀ ∧ ‖B₀‖ ≤ 1 := hB₀ + obtain ⟨hB₁, sB₁, nB₁⟩ : B₁ ∈ localAlgebra V O₂ ∧ IsSelfAdjoint B₁ ∧ ‖B₁‖ ≤ 1 := hB₁ + exact ⟨A₀, A₁, B₀, B₁, hA₀, hA₁, hB₀, hB₁, sA₀, sA₁, sB₀, sB₁, nA₀, nA₁, nB₀, nB₁, rfl⟩ + · rintro ⟨A₀, A₁, B₀, B₁, hA₀, hA₁, hB₀, hB₁, sA₀, sA₁, sB₀, sB₁, nA₀, nA₁, nB₀, nB₁, rfl⟩ + exact ⟨A₀, ⟨hA₀, sA₀, nA₀⟩, A₁, ⟨hA₁, sA₁, nA₁⟩, B₀, ⟨hB₀, sB₀, nB₀⟩, B₁, ⟨hB₁, sB₁, nB₁⟩, + rfl⟩ + +end Explicit + +/-- **Theorem 1.1**, with the vacuum Bell correlation `β_m(R, L)` written out as the supremum of the +CHSH values. -/ +theorem theorem_1_1_explicit : + ∃ Cstar : ℝ, 2 < Cstar ∧ + ∀ m R L : ℝ, 0 < m → 0 < R → Cstar * R ≤ L → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H), + sSup {v : ℝ | ∃ A₀ A₁ B₀ B₁ : H →L[ℂ] H, + A₀ ∈ localAlgebra V (doubleCone 0 R) ∧ A₁ ∈ localAlgebra V (doubleCone 0 R) ∧ + B₀ ∈ localAlgebra V (doubleCone (0, L • e₁) R) ∧ + B₁ ∈ localAlgebra V (doubleCone (0, L • e₁) R) ∧ + IsSelfAdjoint A₀ ∧ IsSelfAdjoint A₁ ∧ IsSelfAdjoint B₀ ∧ IsSelfAdjoint B₁ ∧ + ‖A₀‖ ≤ 1 ∧ ‖A₁‖ ≤ 1 ∧ ‖B₀‖ ≤ 1 ∧ ‖B₁‖ ≤ 1 ∧ + v = (1 / 2 : ℝ) * ‖⟪V.vacuum, (A₀ * (B₀ + B₁) + A₁ * (B₀ - B₁)) V.vacuum⟫_ℂ‖} = 1 := by + obtain ⟨C, hC2, hC⟩ := theorem_1_1 + refine ⟨C, hC2, ?_⟩ + intro m R L hm hR hL H _ _ _ V + exact (bellCorrelation_vacuum_eq_sSup V (doubleCone 0 R) (doubleCone (0, L • e₁) R)).symm.trans + (hC m R L hm hR hL H V) + +/-- **Corollary 1.2**, with the vacuum Bell correlation written out as the supremum of the CHSH +values. -/ +theorem corollary_1_2_explicit : + ∀ m : ℝ, 0 < m → ∀ O₁ O₂ : Set Spacetime, Bornology.IsBounded O₁ → Bornology.IsBounded O₂ → + ∀ a : Spacetime, a.1 ^ 2 < ‖a.2‖ ^ 2 → + ∃ T₀ : ℝ, ∀ t : ℝ, T₀ ≤ t → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H), + sSup {v : ℝ | ∃ A₀ A₁ B₀ B₁ : H →L[ℂ] H, + A₀ ∈ localAlgebra V O₁ ∧ A₁ ∈ localAlgebra V O₁ ∧ + B₀ ∈ localAlgebra V ((fun x => x + t • a) '' O₂) ∧ + B₁ ∈ localAlgebra V ((fun x => x + t • a) '' O₂) ∧ + IsSelfAdjoint A₀ ∧ IsSelfAdjoint A₁ ∧ IsSelfAdjoint B₀ ∧ IsSelfAdjoint B₁ ∧ + ‖A₀‖ ≤ 1 ∧ ‖A₁‖ ≤ 1 ∧ ‖B₀‖ ≤ 1 ∧ ‖B₁‖ ≤ 1 ∧ + v = (1 / 2 : ℝ) * ‖⟪V.vacuum, (A₀ * (B₀ + B₁) + A₁ * (B₀ - B₁)) V.vacuum⟫_ℂ‖} = + 1 := by + intro m hm O₁ O₂ hO₁ hO₂ a ha + obtain ⟨T₀, hT₀⟩ := corollary_1_2 m hm O₁ O₂ hO₁ hO₂ a ha + refine ⟨T₀, ?_⟩ + intro t ht H _ _ _ V + exact (bellCorrelation_vacuum_eq_sSup V O₁ ((fun x => x + t • a) '' O₂)).symm.trans + (hT₀ t ht H V) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/OneParticle.lean b/LeanPool/VacuumBellSeparation/FreeField/OneParticle.lean new file mode 100644 index 0000000000..18175c2687 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/OneParticle.lean @@ -0,0 +1,76 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Defs +public import Mathlib.MeasureTheory.Function.LocallyIntegrable + +/-! +# Basic properties of the one-particle wave functions + +First steps towards integrability in the one-particle definitions: + +* `integrable_oneParticleIntegrand`: the integrand defining `oneParticle m F 𝐩` is + integrable (it is continuous with compact support), so `oneParticle` is a genuine + integral; +* `oneParticle_add`: `κ_m(F + G) = κ_m F + κ_m G`; +* `norm_oneParticle_le`: `|κ_m F(𝐩)| ≤ ∫ |F|`. + +The decay of `κ_m F` in `𝐩` and the integrability of the integrand of `oneParticleInner` +are proved in `FreeField/Decay.lean`. +-/ + +@[expose] public section + +open scoped InnerProductSpace + +namespace VacuumBellSeparation + +/-- The integrand of `oneParticle m F 𝐩`. -/ +noncomputable def oneParticleIntegrand (m : ℝ) (F : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) (x : Spacetime) : ℂ := + Complex.exp (Complex.I * ((dispersion m p * x.1 - ⟪p, x.2⟫_ℝ : ℝ) : ℂ)) * (F.1 x : ℂ) + +theorem oneParticle_eq_integral (m : ℝ) (F : RealTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m F p = ∫ x, oneParticleIntegrand m F p x := rfl + +theorem continuous_testFunction (F : RealTestFunction) : Continuous F.1 := + F.2.1.continuous + +theorem integrable_oneParticleIntegrand (m : ℝ) (F : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + MeasureTheory.Integrable (oneParticleIntegrand m F p) := by + apply Continuous.integrable_of_hasCompactSupport + · exact (Complex.continuous_exp.comp (continuous_const.mul (Complex.continuous_ofReal.comp + ((continuous_const.mul continuous_fst).sub (continuous_const.inner continuous_snd))))).mul + (Complex.continuous_ofReal.comp (continuous_testFunction F)) + · exact (F.2.2.comp_left Complex.ofReal_zero).mul_left + +/-- `κ_m(F + G) = κ_m F + κ_m G`. -/ +theorem oneParticle_add (m : ℝ) (F G : RealTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (F + G) p = oneParticle m F p + oneParticle m G p := by + simp only [oneParticle_eq_integral] + rw [← MeasureTheory.integral_add (integrable_oneParticleIntegrand m F p) + (integrable_oneParticleIntegrand m G p)] + congr 1 + funext x + simp only [oneParticleIntegrand] + change _ * ((F.1 x + G.1 x : ℝ) : ℂ) = _ + push_cast + ring + +/-- `|κ_m F(𝐩)| ≤ ∫ |F|`. -/ +theorem norm_oneParticle_le (m : ℝ) (F : RealTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + ‖oneParticle m F p‖ ≤ ∫ x, |F.1 x| := by + rw [oneParticle_eq_integral] + refine (MeasureTheory.norm_integral_le_integral_norm _).trans (le_of_eq ?_) + congr 1 + funext x + simp only [oneParticleIntegrand, norm_mul, Complex.norm_exp_I_mul_ofReal, one_mul, + Complex.norm_real, Real.norm_eq_abs] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/OneParticleBoostContinuity.lean b/LeanPool/VacuumBellSeparation/FreeField/OneParticleBoostContinuity.lean new file mode 100644 index 0000000000..0bb622359c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/OneParticleBoostContinuity.lean @@ -0,0 +1,74 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ShellBoostMeasure +public import Mathlib.MeasureTheory.Function.LpSpace.ContinuousCompMeasurePreserving + +/-! +# The actual strongly continuous one-particle boost group + +Local finiteness follows from the continuous physical density. Pinned +Lp pullback continuity then gives strong continuity for every wave function, +not merely for smooth or compactly supported representatives. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +variable {m : ℝ} (hm : 0 < m) + +include hm in +theorem oneParticleBoostMeasure_isLocallyFinite : IsLocallyFiniteMeasure (oneParticleMeasure m) := + IsLocallyFiniteMeasure.withDensity_coe + (continuous_real_toNNReal.comp (continuous_oneParticleWeightReal hm)) + +theorem continuous_shellBoost_joint (m : ℝ) : + Continuous (fun q : ℝ × EuclideanSpace ℝ (Fin 3) => shellBoost m q.1 q.2) := by + have hω := (continuous_dispersion m).comp (continuous_snd : Continuous + (Prod.snd : ℝ × EuclideanSpace ℝ (Fin 3) → EuclideanSpace ℝ (Fin 3))) + unfold shellBoost + fun_prop + +theorem oneParticleBoostIsometry_zero (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + oneParticleBoostIsometry hm 0 ψ = ψ := by + change Lp.compMeasurePreserving (shellBoost m (-0)) _ ψ = ψ + have hz : shellBoost m (-0) = id := by funext p; simp only [neg_zero, shellBoost_zero, id_eq] + simp only [hz, Lp.compMeasurePreserving_id_apply] + +theorem oneParticleBoostIsometry_add (a b : ℝ) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + oneParticleBoostIsometry hm a (oneParticleBoostIsometry hm b ψ) = + oneParticleBoostIsometry hm (a + b) ψ := by + change Lp.compMeasurePreserving (shellBoost m (-a)) _ + (Lp.compMeasurePreserving (shellBoost m (-b)) _ ψ) = + Lp.compMeasurePreserving (shellBoost m (-(a + b))) _ ψ + rw [← Lp.compMeasurePreserving_comp_apply] + have he : shellBoost m (-b) ∘ shellBoost m (-a) = shellBoost m (-(a + b)) := by + funext p + simp only [Function.comp_apply, shellBoost_shellBoost, neg_add_rev] + simp only [he] + +theorem continuous_oneParticleBoostIsometry (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + Continuous (fun η : ℝ => oneParticleBoostIsometry hm η ψ) := by + let : IsLocallyFiniteMeasure (oneParticleMeasure m) := oneParticleBoostMeasure_isLocallyFinite hm + let g : ℝ → C(EuclideanSpace ℝ (Fin 3), EuclideanSpace ℝ (Fin 3)) := + fun η => ⟨shellBoost m (-η), continuous_shellBoost hm (-η)⟩ + have hg : Continuous g := by + apply ContinuousMap.continuous_of_continuous_uncurry + exact (continuous_shellBoost_joint m).comp + (continuous_fst.neg.prodMk continuous_snd) + exact continuous_const.compMeasurePreservingLp hg + (fun η => measurePreserving_shellBoost hm (-η)) (by norm_num) + +theorem continuous_oneParticleBoost (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + Continuous (fun η : ℝ => oneParticleBoost hm η ψ) := + continuous_oneParticleBoostIsometry hm ψ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/OneParticleLorentz.lean b/LeanPool/VacuumBellSeparation/FreeField/OneParticleLorentz.lean new file mode 100644 index 0000000000..d0a0293a76 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/OneParticleLorentz.lean @@ -0,0 +1,80 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LorentzShellAction + +/-! +# The full original one-particle Lorentz representation + +For every actual future-oriented Minkowski automorphism Lambda, +U(Lambda) psi(p) = psi(Lambda^{-1} p) on the full mass-shell L2 space. +Measure invariance and the literal inverse shell map prove unitarity. +Its test-vector intertwining uses the original spacetime Fourier integral. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +variable {m : ℝ} (hm : 0 < m) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (hfuture : IsOrthochronousMap Λ) + +/-- Linear isometry equivalence for the one particle Lorentz, of type `Lp ℂ 2 (oneParticleMeasure +m) ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def oneParticleLorentz : + Lp ℂ 2 (oneParticleMeasure m) ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m) := by + let A : Lp ℂ 2 (oneParticleMeasure m) →ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + Lp.compMeasurePreservingₗᵢ ℂ (lorentzShellMap m Λ.symm) + (measurePreserving_lorentzShellMap hm Λ.symm hΛ.symm (IsOrthochronousMap.symm hΛ hfuture)) + apply LinearIsometryEquiv.ofSurjective A + intro ψ + refine ⟨Lp.compMeasurePreserving (lorentzShellMap m Λ) + (measurePreserving_lorentzShellMap hm Λ hΛ hfuture) ψ, ?_⟩ + change Lp.compMeasurePreserving (lorentzShellMap m Λ.symm) _ + (Lp.compMeasurePreserving (lorentzShellMap m Λ) _ ψ) = ψ + rw [← Lp.compMeasurePreserving_comp_apply] + have he : lorentzShellMap m Λ ∘ lorentzShellMap m Λ.symm = id := by + funext p + simpa only [Function.comp_apply, ContinuousLinearEquiv.symm_symm, id_eq] using + lorentzShellMap_inverse m Λ.symm hΛ.symm (IsOrthochronousMap.symm hΛ hfuture) p + simp only [he, Lp.compMeasurePreserving_id_apply] + +theorem oneParticleLorentz_ae (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + oneParticleLorentz hm Λ hΛ hfuture ψ =ᵐ[oneParticleMeasure m] + fun p => ψ (lorentzShellMap m Λ.symm p) := + Lp.coeFn_compMeasurePreserving ψ + (measurePreserving_lorentzShellMap hm Λ.symm hΛ.symm (IsOrthochronousMap.symm hΛ hfuture)) + +theorem oneParticleLorentz_oneParticleL2 (F : RealTestFunction) : + oneParticleLorentz hm Λ hΛ hfuture (oneParticleL2 hm F) = + oneParticleL2 hm (F.compCLE Λ.symm) := by + apply Lp.ext + have hpull := (measurePreserving_lorentzShellMap hm Λ.symm hΛ.symm + (IsOrthochronousMap.symm hΛ hfuture)).quasiMeasurePreserving.ae_eq_comp + (coeFn_oneParticleL2 hm F) + filter_upwards [oneParticleLorentz_ae hm Λ hΛ hfuture (oneParticleL2 hm F), hpull, + coeFn_oneParticleL2 hm (F.compCLE Λ.symm)] with p hU hF hcomp + dsimp only [Function.comp_apply] at hF + rw [hU, hF, hcomp, oneParticle_lorentzMap m Λ.symm hΛ.symm + (IsOrthochronousMap.symm hΛ hfuture)] + +theorem oneParticleLorentz_inverse_apply (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + oneParticleLorentz hm Λ.symm hΛ.symm (IsOrthochronousMap.symm hΛ hfuture) + (oneParticleLorentz hm Λ hΛ hfuture ψ) = ψ := by + change Lp.compMeasurePreserving (lorentzShellMap m Λ.symm.symm) _ + (Lp.compMeasurePreserving (lorentzShellMap m Λ.symm) _ ψ) = ψ + rw [← Lp.compMeasurePreserving_comp_apply] + have he : lorentzShellMap m Λ.symm ∘ lorentzShellMap m Λ.symm.symm = id := by + funext p + simpa only [Function.comp_apply, ContinuousLinearEquiv.symm_symm, id_eq] using + lorentzShellMap_inverse m Λ hΛ hfuture p + simp only [he, Lp.compMeasurePreserving_id_apply] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/OneParticleTimeSlice.lean b/LeanPool/VacuumBellSeparation/FreeField/OneParticleTimeSlice.lean new file mode 100644 index 0000000000..0f460a7cc0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/OneParticleTimeSlice.lean @@ -0,0 +1,77 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceSource +public import LeanPool.VacuumBellSeparation.FreeField.OneParticle + +/-! +# The actual one-particle integral in time and spatial Fourier variables + +Fubini is justified by the existing compact-support integrability theorem for +the literal one-particle integrand. For genuine Schwartz spatial slices the +spatial integral is exactly the normalized Fourier transform at ξ, with +physical momentum 2πξ. No time-slice source identity is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter FourierTransform +open scoped FourierTransform + +theorem oneParticle_eq_time_fourier {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (S : ℝ → SpatialSchwartz) (hS : ∀ t x, S t x = (F.1 (t, x) : ℂ)) + (ξ : EuclideanSpace ℝ (Fin 3)) : + oneParticle m F ((2 * Real.pi) • ξ) = + ∫ t, massiveEvolutionPhase m t ξ * (𝓕 (S t)) ξ := by + rw [oneParticle_eq_integral] + change (∫ x : ℝ × EuclideanSpace ℝ (Fin 3), + oneParticleIntegrand m F ((2 * Real.pi) • ξ) x ∂volume.prod volume) = _ + rw [integral_prod _ (integrable_oneParticleIntegrand m F ((2 * Real.pi) • ξ))] + apply integral_congr_ae + exact Eventually.of_forall fun t => by + change (∫ y : EuclideanSpace ℝ (Fin 3), + oneParticleIntegrand m F ((2 * Real.pi) • ξ) (t, y)) = + massiveEvolutionPhase m t ξ * + (𝓕 (S t : EuclideanSpace ℝ (Fin 3) → ℂ)) ξ + rw [Real.fourier_eq, ← integral_const_mul] + apply integral_congr_ae + exact Eventually.of_forall fun x => by + dsimp only + rw [hS] + simp only [oneParticleIntegrand, massiveEvolutionPhase, massiveSchwartzSymbol_one hm, + Circle.smul_def, smul_eq_mul, Real.fourierChar_apply, real_inner_smul_left] + rw [← mul_assoc, ← Complex.exp_add] + congr 2 + push_cast + rw [real_inner_comm ξ x] + ring + +/-- Time slice Schwartz source. -/ +noncomputable def timeSliceSchwartzSource (ε m t : ℝ) (f g : SpatialSchwartz) : SpatialSchwartz := + ((deriv (deriv (timeSliceCutoff ε)) t : ℝ) : ℂ) • massiveSchwartzCauchy m t f g + + (2 * ((deriv (timeSliceCutoff ε) t : ℝ) : ℂ)) • massiveSchwartzCauchyVelocity m t f g + +@[simp] theorem timeSliceSchwartzSource_apply (ε m t : ℝ) (f g : SpatialSchwartz) + (x : EuclideanSpace ℝ (Fin 3)) : + timeSliceSchwartzSource ε m t f g x = timeSliceComplexSource ε m f g (t, x) := rfl + +theorem oneParticle_timeSliceTestFunction_eq_time_fourier {m ε r : ℝ} + (hm : 0 < m) (hε : 0 < ε) (hr : 0 ≤ r) (x₀ : EuclideanSpace ℝ (Fin 3)) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ r) + (hg : tsupport g ⊆ Metric.closedBall x₀ r) + (hfr : spatialSchwartzConjugate f = f) (hgr : spatialSchwartzConjugate g = g) + (ξ : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (timeSliceTestFunction hm hε hr x₀ f g hf hg) ((2 * Real.pi) • ξ) = + ∫ t, massiveEvolutionPhase m t ξ * (𝓕 (timeSliceSchwartzSource ε m t f g)) ξ := by + apply oneParticle_eq_time_fourier hm _ (fun t => timeSliceSchwartzSource ε m t f g) + intro t x + exact (timeSliceTestFunction_complex_eq hm hε hr x₀ f g hf hg hfr hgr (t, x)).symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/OpenVacuumCyclicity.lean b/LeanPool/VacuumBellSeparation/FreeField/OpenVacuumCyclicity.lean new file mode 100644 index 0000000000..e2c6367c1d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/OpenVacuumCyclicity.lean @@ -0,0 +1,53 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LocalVacuumCyclicity +public import LeanPool.VacuumBellSeparation.FreeField.Isotony + +/-! +# Local vacuum cyclicity for every nonempty open spacetime region + +Every point of an open region admits a positive-radius double cone contained +in it. Isotony then extends the proved double-cone orbit density on full H. +The region need not be bounded; empty regions are explicitly excluded. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +theorem exists_doubleCone_subset_of_isOpen_at {O : Set Spacetime} + (hO : IsOpen O) {a : Spacetime} (ha : a ∈ O) : + ∃ R : ℝ, 0 < R ∧ doubleCone a R ⊆ O := by + obtain ⟨R, hR, hsub⟩ := Metric.mem_nhds_iff.mp (hO.mem_nhds ha) + refine ⟨R, hR, fun x hx => hsub ?_⟩ + change |x.1 - a.1| + ‖x.2 - a.2‖ < R at hx + rw [Metric.mem_ball, Prod.dist_eq, dist_eq_norm, dist_eq_norm, Real.norm_eq_abs] + exact max_lt (by linarith [norm_nonneg (x.2 - a.2)]) + (by linarith [abs_nonneg (x.1 - a.1)]) + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The massive physical vacuum has a dense local-algebra orbit on every +nonempty open region, in its original full representation space. -/ +theorem FreeFieldVacuum.vacuum_cyclic_open + {m : ℝ} (hm : 0 < m) (V : FreeFieldVacuum m H) + {O : Set Spacetime} (hO : IsOpen O) (hne : O.Nonempty) : + (Submodule.span ℂ {x : H | ∃ A : H →L[ℂ] H, + A ∈ localAlgebra V O ∧ x = A V.vacuum}).topologicalClosure = ⊤ := by + obtain ⟨a, ha⟩ := hne + obtain ⟨R, hR, hsub⟩ := exists_doubleCone_subset_of_isOpen_at hO ha + apply top_unique + rw [← V.vacuum_cyclic_doubleCone hm a hR] + apply Submodule.topologicalClosure_mono + apply Submodule.span_mono + rintro x ⟨A, hA, hx⟩ + exact ⟨A, localAlgebra_mono V hsub hA, hx⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PartialOperatorComposition.lean b/LeanPool/VacuumBellSeparation/FreeField/PartialOperatorComposition.lean new file mode 100644 index 0000000000..e845e8c3d3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PartialOperatorComposition.lean @@ -0,0 +1,68 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.LinearPMap + +/-! +# Composition on the actual maximal partial-operator domain + +Mathlib's `LinearPMap.comp` preserves the entire domain of its right operand +and asks for a range-containment proof. The definition here first restricts +to precisely the vectors whose image belongs to the left operand's domain. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {E F G : Type*} [AddCommGroup E] [Module ℂ E] + [AddCommGroup F] [Module ℂ F] [AddCommGroup G] [Module ℂ G] + +/-- Actual domain of a composition, before restricting either operator. -/ +def partialCompDomain (g : F →ₗ.[ℂ] G) (f : E →ₗ.[ℂ] F) : Submodule ℂ E where + carrier := {x | ∃ hx : x ∈ f.domain, f ⟨x, hx⟩ ∈ g.domain} + zero_mem' := by + refine ⟨f.domain.zero_mem, ?_⟩ + change f 0 ∈ g.domain + rw [LinearPMap.map_zero] + exact g.domain.zero_mem + add_mem' := by + rintro x y ⟨hx, hfx⟩ ⟨hy, hfy⟩ + refine ⟨f.domain.add_mem hx hy, ?_⟩ + change f (⟨x, hx⟩ + ⟨y, hy⟩) ∈ g.domain + rw [LinearPMap.map_add] + exact g.domain.add_mem hfx hfy + smul_mem' := by + rintro c x ⟨hx, hfx⟩ + refine ⟨f.domain.smul_mem c hx, ?_⟩ + change f (c • ⟨x, hx⟩) ∈ g.domain + rw [LinearPMap.map_smul] + exact g.domain.smul_mem c hfx + +theorem partialCompDomain_le (g : F →ₗ.[ℂ] G) (f : E →ₗ.[ℂ] F) : + partialCompDomain g f ≤ f.domain := fun _ hx => hx.choose + +/-- Linear map for the partial comp, of type `E →ₗ.[ℂ] G`. -/ +noncomputable def partialComp (g : F →ₗ.[ℂ] G) (f : E →ₗ.[ℂ] F) : E →ₗ.[ℂ] G := + g.comp (f.domRestrict (partialCompDomain g f)) fun x => by + obtain ⟨hx, hfx⟩ := x.property.1 + change f ⟨(x : E), x.property.2⟩ ∈ g.domain + exact hfx + +theorem partialComp_domain (g : F →ₗ.[ℂ] G) (f : E →ₗ.[ℂ] F) : + (partialComp g f).domain = partialCompDomain g f := by + change partialCompDomain g f ⊓ f.domain = partialCompDomain g f + exact inf_eq_left.mpr (partialCompDomain_le g f) + +/-- Evaluation uses the literal original operators on the actual domain witnesses. -/ +theorem partialComp_apply (g : F →ₗ.[ℂ] G) (f : E →ₗ.[ℂ] F) + (x : (partialComp g f).domain) (hx : (x : E) ∈ f.domain) + (hfx : f ⟨x, hx⟩ ∈ g.domain) : + partialComp g f x = g ⟨f ⟨x, hx⟩, hfx⟩ := rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PhysicalModularPowers.lean b/LeanPool/VacuumBellSeparation/FreeField/PhysicalModularPowers.lean new file mode 100644 index 0000000000..5674689f9a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PhysicalModularPowers.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularHalfPower + +/-! +# Modular operators and whole-source powers in the physical one-particle space + +The transported exponent-one operator has exactly the universal physical +Tomita adjoint-product graph. Every source vector lies in the transported +power domain for 0≤c≤1/2 and satisfies the literal bounded-weight formula. +These powers are the established regularizable continuous construction; +no additional unbounded Borel calculus is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ContinuousLinearMap + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) +variable (hU : Bornology.IsBounded U) (hopen : IsOpen U) (hne : U.Nonempty) + +/-- Linear map for the physical modular operator, of type `Lp ℂ 2 (oneParticleMeasure m) →ₗ.[ℂ] Lp +ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def physicalModularOperator : + Lp ℂ 2 (oneParticleMeasure m) →ₗ.[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + unitaryPartialTransport (sourcePolarUnitary hm U hU hopen hne) (sourceModularOperator hm U hU) + +/-- Linear map for the physical modular power, of type `Lp ℂ 2 (oneParticleMeasure m) →ₗ.[ℂ] Lp ℂ 2 +(oneParticleMeasure m)`. -/ +noncomputable def physicalModularPower (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) : + Lp ℂ 2 (oneParticleMeasure m) →ₗ.[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + unitaryPartialTransport (sourcePolarUnitary hm U hU hopen hne) + (sourceModularPower hm U hU c hc hc1) + +/-- Full graph equality with the literal maximal S*S relation. -/ +theorem physicalModularOperator_graph : + ((physicalModularOperator hm U hU hopen hne).graph : + Set (Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m))) = + sourceTomitaModularGraph hm U hU := by + ext p + rcases p with ⟨x, y⟩ + change (x, y) ∈ (unitaryPartialTransport (sourcePolarUnitary hm U hU hopen hne) + (sourceModularOperator hm U hU)).graph ↔ (x, y) ∈ sourceTomitaModularGraph hm U hU + rw [unitaryPartialTransport_mem_graph, sourceModularOperator, boundedRatio_mem_graph] + simpa only [LinearIsometryEquiv.apply_symm_apply] using + (sourceTomitaModularGraph_polar_iff hm U hU hopen hne + ((sourcePolarUnitary hm U hU hopen hne).symm x) + ((sourcePolarUnitary hm U hU hopen hne).symm y)).symm + +theorem physicalModularPower_one : + physicalModularPower hm U hU hopen hne 1 (by norm_num) (by norm_num) = + physicalModularOperator hm U hU hopen hne := by + rw [physicalModularPower, sourceModularPower_one, physicalModularOperator] + +/-- The source's entire completed complex space is in the composed domain. -/ +theorem physicalModularPower_apply_source (c : ℝ) (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) + (z : ComplexSourceHilbert hm U) : + ∃ hx : complexSourceMap hm U z ∈ + (physicalModularPower hm U hU hopen hne c hc (by linarith)).domain, + physicalModularPower hm U hU hopen hne c hc (by linarith) + ⟨complexSourceMap hm U z, hx⟩ = + sourcePolarUnitary hm U hU hopen hne (sourceModularWeight hm U c z) := by + let V := sourcePolarUnitary hm U hU hopen hne + obtain ⟨hz, hval⟩ := sourceModularPower_apply_sqrt hm U hU c hc hc2 z + have hpre : sourceGramRoot hm U z = V.symm (complexSourceMap hm U z) := by + simpa only [V, sourceGramRoot, LinearIsometryEquiv.symm_apply_apply] using + congrArg V.symm (sourcePolarUnitary_sqrt_gram hm U hU hopen hne z) + have hx : complexSourceMap hm U z ∈ + (physicalModularPower hm U hU hopen hne c hc (by linarith)).domain := by + change V.symm (complexSourceMap hm U z) ∈ (sourceModularPower hm U hU c hc (by linarith)).domain + rw [← hpre] + exact hz + refine ⟨hx, ?_⟩ + change V (sourceModularPower hm U hU c hc (by linarith) + ⟨V.symm (complexSourceMap hm U z), hx⟩) = V (sourceModularWeight hm U c z) + have he : (⟨V.symm (complexSourceMap hm U z), hx⟩ : + (sourceModularPower hm U hU c hc (by linarith)).domain) = + ⟨sourceGramRoot hm U z, hz⟩ := Subtype.ext hpre.symm + rw [he, hval] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PhysicalRapidityExponential.lean b/LeanPool/VacuumBellSeparation/FreeField/PhysicalRapidityExponential.lean new file mode 100644 index 0000000000..d2dab95a9b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PhysicalRapidityExponential.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RapidityBoostFourier +public import LeanPool.VacuumBellSeparation.FreeField.ExponentialMultiplicationPositive +public import LeanPool.VacuumBellSeparation.FreeField.UnitaryPartialAdjoint + +/-! +# The maximal positive rapidity exponentials in the physical Hilbert space + +For the pinned Fourier convention and Δ^(it)=U(2πt), the candidate +real-power multiplier is exp(-4π²c ξ₁). We construct this precise maximal +operator, its full domain, positivity and half-square identity. Equality +with the actual wedge modular operator is a separate theorem, not a field +or assumption in this definition. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace + +/-- Rapidity frequency exponent given by `-4 * Real.pi ^ 2 * c * ⟪e₁, ξ⟫_ℝ`. -/ +noncomputable def rapidityFrequencyExponent (c : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) : ℝ := + -4 * Real.pi ^ 2 * c * ⟪e₁, ξ⟫_ℝ + +theorem measurable_rapidityFrequencyExponent (c : ℝ) : + Measurable (rapidityFrequencyExponent c) := by + unfold rapidityFrequencyExponent + fun_prop + +/-- Linear map for the rapidity exponential, of type `RapidityL2 →ₗ.[ℂ] RapidityL2`. -/ +noncomputable def rapidityExponential (c : ℝ) : RapidityL2 →ₗ.[ℂ] RapidityL2 := + exponentialMultiplication rapidityMeasure (rapidityFrequencyExponent c) + (measurable_rapidityFrequencyExponent c) + +theorem rapidityExponential_mem_graph (c : ℝ) (f g : RapidityL2) : + (f, g) ∈ (rapidityExponential c).graph ↔ + g =ᵐ[rapidityMeasure] fun ξ => (Real.exp (rapidityFrequencyExponent c ξ) : ℂ) * f ξ := + exponentialMultiplication_mem_graph _ _ _ f g + +theorem rapidityExponential_graph_half_square (c : ℝ) (f g : RapidityL2) : + (f, g) ∈ (rapidityExponential c).graph ↔ + ∃ h : RapidityL2, (f, h) ∈ (rapidityExponential (c / 2)).graph ∧ + (h, g) ∈ (rapidityExponential (c / 2)).graph := by + have he : (fun ξ => rapidityFrequencyExponent c ξ / 2) = rapidityFrequencyExponent (c / 2) := by + funext ξ + unfold rapidityFrequencyExponent + ring + simpa only [rapidityExponential, he] using + exponentialMultiplication_graph_half_square rapidityMeasure + (rapidityFrequencyExponent c) (measurable_rapidityFrequencyExponent c) f g + +/-- The exact 4π² generator dictated by the real boost group; this is an +identity of actual scalar phase functions. -/ +theorem rapidityBoostPhase_modular_parameter (t : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : + rapidityBoostPhase (2 * Real.pi * t) ξ = + Complex.exp (Complex.I * (t : ℂ) * (rapidityFrequencyExponent 1 ξ : ℂ)) := by + unfold rapidityBoostPhase rapidityFrequencyExponent + congr 1 + push_cast + ring + +/-- Linear map for the physical rapidity exponential, of type `Lp ℂ 2 (oneParticleMeasure m) →ₗ.[ℂ] +Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def physicalRapidityExponential {m : ℝ} (hm : 0 < m) (c : ℝ) : + Lp ℂ 2 (oneParticleMeasure m) →ₗ.[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + unitaryPartialTransport (oneParticleRapidityFourier hm).symm (rapidityExponential c) + +theorem physicalRapidityExponential_mem_graph_iff {m : ℝ} (hm : 0 < m) (c : ℝ) + (f g : Lp ℂ 2 (oneParticleMeasure m)) : + (f, g) ∈ (physicalRapidityExponential hm c).graph ↔ + (oneParticleRapidityFourier hm f, oneParticleRapidityFourier hm g) ∈ + (rapidityExponential c).graph := + unitaryPartialTransport_mem_graph (oneParticleRapidityFourier hm).symm _ f g + +theorem physicalRapidityExponential_mem_graph {m : ℝ} (hm : 0 < m) (c : ℝ) + (f g : Lp ℂ 2 (oneParticleMeasure m)) : + (f, g) ∈ (physicalRapidityExponential hm c).graph ↔ + oneParticleRapidityFourier hm g =ᵐ[rapidityMeasure] fun ξ => + (Real.exp (rapidityFrequencyExponent c ξ) : ℂ) * oneParticleRapidityFourier hm f ξ := by + rw [physicalRapidityExponential_mem_graph_iff, rapidityExponential_mem_graph] + +theorem physicalRapidityExponential_mem_domain {m : ℝ} (hm : 0 < m) (c : ℝ) + (f : Lp ℂ 2 (oneParticleMeasure m)) : + f ∈ (physicalRapidityExponential hm c).domain ↔ + MemLp (fun ξ => (Real.exp (rapidityFrequencyExponent c ξ) : ℂ) * + oneParticleRapidityFourier hm f ξ) 2 rapidityMeasure := + exponentialMultiplication_mem_domain _ _ _ _ + +theorem physicalRapidityExponential_isSelfAdjoint {m : ℝ} (hm : 0 < m) (c : ℝ) : + IsSelfAdjoint (physicalRapidityExponential hm c) := + unitaryPartialTransport_isSelfAdjoint _ _ (exponentialMultiplication_isSelfAdjoint _ _ _) + +theorem physicalRapidityExponential_inner_nonneg {m : ℝ} (hm : 0 < m) (c : ℝ) + (f g : Lp ℂ 2 (oneParticleMeasure m)) + (hfg : (f, g) ∈ (physicalRapidityExponential hm c).graph) : + 0 ≤ (inner ℂ f g).re := + unitaryPartialTransport_inner_nonneg _ _ (exponentialMultiplication_inner_nonneg _ _ _) f g hfg + +theorem physicalRapidityExponential_graph_half_square {m : ℝ} (hm : 0 < m) (c : ℝ) + (f g : Lp ℂ 2 (oneParticleMeasure m)) : + (f, g) ∈ (physicalRapidityExponential hm c).graph ↔ + ∃ h : Lp ℂ 2 (oneParticleMeasure m), + (f, h) ∈ (physicalRapidityExponential hm (c / 2)).graph ∧ + (h, g) ∈ (physicalRapidityExponential hm (c / 2)).graph := by + constructor + · intro hfg + obtain ⟨h, hfh, hhg⟩ := (rapidityExponential_graph_half_square c _ _).mp + ((physicalRapidityExponential_mem_graph_iff hm c f g).mp hfg) + refine ⟨(oneParticleRapidityFourier hm).symm h, ?_, ?_⟩ + · rw [physicalRapidityExponential_mem_graph_iff, LinearIsometryEquiv.apply_symm_apply] + exact hfh + · rw [physicalRapidityExponential_mem_graph_iff, LinearIsometryEquiv.apply_symm_apply] + exact hhg + · rintro ⟨h, hfh, hhg⟩ + apply (physicalRapidityExponential_mem_graph_iff hm c f g).mpr + apply (rapidityExponential_graph_half_square c _ _).mpr + exact ⟨oneParticleRapidityFourier hm h, + (physicalRapidityExponential_mem_graph_iff hm (c / 2) f h).mp hfh, + (physicalRapidityExponential_mem_graph_iff hm (c / 2) h g).mp hhg⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyFlux.lean b/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyFlux.lean new file mode 100644 index 0000000000..d376561b4a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyFlux.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PlanarEnergyIdentity + +/-! +# Positivity of the actual outward energy flux + +Completing the square in the actual positive weighted form proves the flux +sign for a plane moving at speed one and any normal of norm at most one. +The estimate is valid for complex Schwartz fields, so no realness theorem is +needed for finite propagation. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +open MeasureTheory LineDeriv +open scoped LineDeriv + +theorem planarSlopePairing_add_right + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) (f g h : SpatialSchwartz) : + planarSlopePairing a x₀ R t f (g + h) = + planarSlopePairing a x₀ R t f g + planarSlopePairing a x₀ R t f h := by + simp only [planarSlopePairing, planarSlopeSchwartz, map_add, + spatialSchwartz_toL2_add, inner_add_right] + +theorem planarSlopePairing_real_smul_right + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t c : ℝ) (f g : SpatialSchwartz) : + planarSlopePairing a x₀ R t f ((c : ℂ) • g) = c * planarSlopePairing a x₀ R t f g := by + rw [planarSlopePairing, planarSlopeSchwartz, map_smul, spatialSchwartz_toL2_smul] + have hs : (c : ℂ) • (planarSlopeSchwartz a x₀ R t g).toLp 2 volume = + c • (planarSlopeSchwartz a x₀ R t g).toLp 2 volume := by + exact (RCLike.real_smul_eq_coe_smul (K := ℂ) c _).symm + change ⟪f.toLp 2 volume, (c : ℂ) • (planarSlopeSchwartz a x₀ R t g).toLp 2 volume⟫_ℝ = _ + rw [hs] + exact inner_smul_right _ _ _ + +theorem planarSlopePairing_add_left + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) (f g h : SpatialSchwartz) : + planarSlopePairing a x₀ R t (f + g) h = + planarSlopePairing a x₀ R t f h + planarSlopePairing a x₀ R t g h := by + rw [planarSlopePairing_comm a x₀ R t (f + g) h, planarSlopePairing_add_right, + planarSlopePairing_comm a x₀ R t h f, planarSlopePairing_comm a x₀ R t h g] + +theorem planarSlopePairing_real_smul_left + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t c : ℝ) (f g : SpatialSchwartz) : + planarSlopePairing a x₀ R t ((c : ℂ) • f) g = c * planarSlopePairing a x₀ R t f g := by + rw [planarSlopePairing_comm a x₀ R t ((c : ℂ) • f) g, + planarSlopePairing_real_smul_right, planarSlopePairing_comm a x₀ R t g f] + +theorem planarSlopePairing_complete_square + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t c : ℝ) (f g : SpatialSchwartz) : + planarSlopePairing a x₀ R t (g + (c : ℂ) • f) (g + (c : ℂ) • f) = + planarSlopePairing a x₀ R t g g + + 2 * c * planarSlopePairing a x₀ R t f g + + c ^ 2 * planarSlopePairing a x₀ R t f f := by + simp only [planarSlopePairing_add_right, planarSlopePairing_add_left, + planarSlopePairing_real_smul_right, planarSlopePairing_real_smul_left] + rw [planarSlopePairing_comm a x₀ R t g f] + ring + +/-- Exact sum-of-squares identity for the energy flux. -/ +theorem planarKleinGordonFlux_eq_squares + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R m t : ℝ) (u v : SpatialSchwartz) : + planarKleinGordonFlux a x₀ R m t u v = + (1 / 2 : ℝ) * + ((∑ j, planarSlopePairing a x₀ R t + ((∂_{spatialEnergyBasis j} u) + (⟪a, spatialEnergyBasis j⟫_ℝ : ℂ) • v) + ((∂_{spatialEnergyBasis j} u) + (⟪a, spatialEnergyBasis j⟫_ℝ : ℂ) • v)) + + (1 - ‖a‖ ^ 2) * planarSlopePairing a x₀ R t v v + + m ^ 2 * planarSlopePairing a x₀ R t u u) := by + have hsum : + (∑ j, planarSlopePairing a x₀ R t + ((∂_{spatialEnergyBasis j} u) + (⟪a, spatialEnergyBasis j⟫_ℝ : ℂ) • v) + ((∂_{spatialEnergyBasis j} u) + (⟪a, spatialEnergyBasis j⟫_ℝ : ℂ) • v)) = + (∑ j, planarSlopePairing a x₀ R t (∂_{spatialEnergyBasis j} u) (∂_{spatialEnergyBasis j} u)) + + 2 * (∑ j, ⟪a, spatialEnergyBasis j⟫_ℝ * + planarSlopePairing a x₀ R t v (∂_{spatialEnergyBasis j} u)) + + ‖a‖ ^ 2 * planarSlopePairing a x₀ R t v v := by + simp only [planarSlopePairing_complete_square, Finset.sum_add_distrib, + mul_assoc, ← Finset.mul_sum, ← Finset.sum_mul, + spatialEnergyBasis.sum_sq_inner_left a] + rw [hsum, planarKleinGordonFlux] + ring + +theorem planarKleinGordonFlux_nonneg + {a : EuclideanSpace ℝ (Fin 3)} (ha : ‖a‖ ≤ 1) + (x₀ : EuclideanSpace ℝ (Fin 3)) (R m t : ℝ) (u v : SpatialSchwartz) : + 0 ≤ planarKleinGordonFlux a x₀ R m t u v := by + rw [planarKleinGordonFlux_eq_squares] + have ha₂ : 0 ≤ 1 - ‖a‖ ^ 2 := by nlinarith [norm_nonneg a] + apply mul_nonneg (by norm_num) + exact add_nonneg + (add_nonneg (Finset.sum_nonneg fun j _ => planarSlopePairing_self_nonneg _ _ _ _ _) + (mul_nonneg ha₂ (planarSlopePairing_self_nonneg _ _ _ _ _))) + (mul_nonneg (sq_nonneg m) (planarSlopePairing_self_nonneg _ _ _ _ _)) + +/-- The energy of the actual Cauchy solution decreases for a forward-moving +plane. This theorem uses the proved PDE identity and proved flux sign. -/ +theorem antitone_planarKleinGordonEnergy {m : ℝ} (hm : 0 < m) + {a : EuclideanSpace ℝ (Fin 3)} (ha : ‖a‖ ≤ 1) + (x₀ : EuclideanSpace ℝ (Fin 3)) (R : ℝ) (f g : SpatialSchwartz) : + Antitone (fun t => planarKleinGordonEnergy a x₀ R m t + (massiveSchwartzCauchy m t f g) (massiveSchwartzCauchyVelocity m t f g)) := by + apply antitone_of_hasDerivAt_nonpos + (fun t => hasDerivAt_planarKleinGordonEnergy hm a x₀ R t f g) + intro t + exact neg_nonpos.mpr (planarKleinGordonFlux_nonneg ha x₀ R m t _ _) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyIdentity.lean b/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyIdentity.lean new file mode 100644 index 0000000000..7f84b8c5ea --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyIdentity.lean @@ -0,0 +1,143 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PlanarEnergyIntegrationByParts + +/-! +# The actual Klein–Gordon planar energy identity + +The energy is a finite sum of proved weighted L² forms of the literal Cauchy +solution and its actual velocity and spatial derivatives. Differentiation uses +the actual L² PDE and the spatial derivative theorem. Schwartz integration by +parts supplies the cancellation, including the correctly signed cutoff flux. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +open MeasureTheory LineDeriv Laplacian +open scoped LineDeriv + +/-- Spatial energy basis obtained from `EuclideanSpace.basisFun`. -/ +noncomputable def spatialEnergyBasis : OrthonormalBasis (Fin 3) ℝ (EuclideanSpace ℝ (Fin 3)) := + EuclideanSpace.basisFun (Fin 3) ℝ + +theorem planarPairing_sum_right {ι : Type*} [Fintype ι] + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f : SpatialSchwartz) (g : ι → SpatialSchwartz) : + planarPairing a x₀ R t f (∑ i, g i) = ∑ i, planarPairing a x₀ R t f (g i) := by + change ⟪f.toLp 2, SchwartzMap.toLpCLM ℂ ℂ 2 volume + (SchwartzMap.smulLeftCLM ℂ _ (∑ i, g i))⟫_ℝ = _ + simp only [map_sum, inner_sum] + rfl + +/-- The exact cancellation between the acceleration, gradient and mass terms. -/ +theorem planarEnergy_cancellation + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t m : ℝ) (u v : SpatialSchwartz) : + planarPairing a x₀ R t v (Δ u - ((m ^ 2 : ℝ) : ℂ) • u) + + (∑ j, planarPairing a x₀ R t (∂_{spatialEnergyBasis j} u) (∂_{spatialEnergyBasis j} v)) + + m ^ 2 * planarPairing a x₀ R t u v = + -(∑ j, ⟪a, spatialEnergyBasis j⟫_ℝ * + planarSlopePairing a x₀ R t v (∂_{spatialEnergyBasis j} u)) := by + rw [planarPairing_sub_right, planarPairing_real_smul_right, + SchwartzMap.laplacian_eq_sum spatialEnergyBasis, planarPairing_sum_right] + have hibp : + (∑ j, planarPairing a x₀ R t v + (∂_{spatialEnergyBasis j} (∂_{spatialEnergyBasis j} u))) = + -(∑ j, planarPairing a x₀ R t (∂_{spatialEnergyBasis j} v) + (∂_{spatialEnergyBasis j} u)) - + ∑ j, ⟪a, spatialEnergyBasis j⟫_ℝ * + planarSlopePairing a x₀ R t v (∂_{spatialEnergyBasis j} u) := by + calc + _ = ∑ j, (-planarPairing a x₀ R t (∂_{spatialEnergyBasis j} v) + (∂_{spatialEnergyBasis j} u) - ⟪a, spatialEnergyBasis j⟫_ℝ * + planarSlopePairing a x₀ R t v (∂_{spatialEnergyBasis j} u)) := by + apply Finset.sum_congr rfl + intro j _ + exact planarPairing_lineDeriv_right a x₀ (spatialEnergyBasis j) R t v + (∂_{spatialEnergyBasis j} u) + _ = _ := by rw [Finset.sum_sub_distrib, Finset.sum_neg_distrib] + rw [hibp] + have hsym : (∑ j, planarPairing a x₀ R t (∂_{spatialEnergyBasis j} v) + (∂_{spatialEnergyBasis j} u)) = + ∑ j, planarPairing a x₀ R t (∂_{spatialEnergyBasis j} u) (∂_{spatialEnergyBasis j} v) := by + apply Finset.sum_congr rfl + intro j _ + exact planarPairing_comm _ _ _ _ _ _ + rw [hsym, planarPairing_comm a x₀ R t v u] + ring + +/-- Planar klein gordon energy. -/ +noncomputable def planarKleinGordonEnergy + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R m t : ℝ) (u v : SpatialSchwartz) : ℝ := + (1 / 2 : ℝ) * (planarPairing a x₀ R t v v + + (∑ j, planarPairing a x₀ R t (∂_{spatialEnergyBasis j} u) (∂_{spatialEnergyBasis j} u)) + + m ^ 2 * planarPairing a x₀ R t u u) + +/-- Planar klein gordon flux. -/ +noncomputable def planarKleinGordonFlux + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R m t : ℝ) (u v : SpatialSchwartz) : ℝ := + (1 / 2 : ℝ) * (planarSlopePairing a x₀ R t v v + + (∑ j, planarSlopePairing a x₀ R t (∂_{spatialEnergyBasis j} u) (∂_{spatialEnergyBasis j} u)) + + m ^ 2 * planarSlopePairing a x₀ R t u u + + 2 * ∑ j, ⟪a, spatialEnergyBasis j⟫_ℝ * + planarSlopePairing a x₀ R t v (∂_{spatialEnergyBasis j} u)) + +theorem planarKleinGordonEnergy_nonneg + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R m t : ℝ) (u v : SpatialSchwartz) : + 0 ≤ planarKleinGordonEnergy a x₀ R m t u v := by + unfold planarKleinGordonEnergy + apply mul_nonneg (by norm_num) + exact add_nonneg (add_nonneg (planarPairing_self_nonneg _ _ _ _ _) + (Finset.sum_nonneg fun j _ => planarPairing_self_nonneg _ _ _ _ _)) + (mul_nonneg (sq_nonneg m) (planarPairing_self_nonneg _ _ _ _ _)) + +/-- The weighted energy identity for the actual cosine/sine Cauchy solution. +The sign estimate for the flux, for `‖a‖ ≤ 1`, is proved in another module +(`planarKleinGordonFlux_nonneg` in `FreeField/PlanarEnergyFlux.lean`). -/ +theorem hasDerivAt_planarKleinGordonEnergy {m : ℝ} (hm : 0 < m) + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) (f g : SpatialSchwartz) : + HasDerivAt + (fun s => planarKleinGordonEnergy a x₀ R m s + (massiveSchwartzCauchy m s f g) (massiveSchwartzCauchyVelocity m s f g)) + (-planarKleinGordonFlux a x₀ R m t + (massiveSchwartzCauchy m t f g) (massiveSchwartzCauchyVelocity m t f g)) t := by + let U (s : ℝ) := massiveSchwartzCauchy m s f g + let V (s : ℝ) := massiveSchwartzCauchyVelocity m s f g + have hU := hasDerivAt_massiveSchwartzCauchy_toL2 m t f g + have hV : HasDerivAt (fun s => (V s).toLp 2) + ((Δ (U t) - ((m ^ 2 : ℝ) : ℂ) • U t).toLp 2) t := by + simpa only [spatialSchwartz_toL2_sub, spatialSchwartz_toL2_smul] using + hasDerivAt_massiveSchwartzCauchy_kleinGordon hm t f g + have hv := hasDerivAt_planarPairing_self a x₀ R t V _ hV + have hu := hasDerivAt_planarPairing_self a x₀ R t U _ hU + have hg := HasDerivAt.fun_sum (u := Finset.univ) (fun j _ => + hasDerivAt_planarPairing_self a x₀ R t (fun s => ∂_{spatialEnergyBasis j} (U s)) + (∂_{spatialEnergyBasis j} (V t)) + (hasDerivAt_lineDeriv_massiveSchwartzCauchy_toL2 m t (spatialEnergyBasis j) f g)) + have h := ((hv.add hg).add (hu.const_mul (m ^ 2))).const_mul (1 / 2 : ℝ) + have hc := planarEnergy_cancellation a x₀ R t m (U t) (V t) + have heq : + (1 / 2 : ℝ) * + ((2 * planarPairing a x₀ R t (V t) (Δ (U t) - ((m ^ 2 : ℝ) : ℂ) • U t) - + planarSlopePairing a x₀ R t (V t) (V t) + + (∑ j, (2 * planarPairing a x₀ R t (∂_{spatialEnergyBasis j} (U t)) + (∂_{spatialEnergyBasis j} (V t)) - + planarSlopePairing a x₀ R t (∂_{spatialEnergyBasis j} (U t)) + (∂_{spatialEnergyBasis j} (U t))))) + + m ^ 2 * (2 * planarPairing a x₀ R t (U t) (V t) - + planarSlopePairing a x₀ R t (U t) (U t))) = + -planarKleinGordonFlux a x₀ R m t (U t) (V t) := by + simp only [planarKleinGordonFlux, Finset.sum_sub_distrib, ← Finset.mul_sum] + linarith + exact heq ▸ h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyIntegrationByParts.lean b/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyIntegrationByParts.lean new file mode 100644 index 0000000000..1506cb87fd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyIntegrationByParts.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PlanarWeightedPairing +public import LeanPool.VacuumBellSeparation.FreeField.CauchySpatialDerivatives + +/-! +# Actual integration by parts for the planar energy + +The directional derivative of the literal cutoff is evaluated explicitly. +The weighted integration by parts formula is then the ordinary Schwartz +integration by parts theorem applied to the genuine weighted Schwartz datum. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +open MeasureTheory LineDeriv +open scoped LineDeriv + +theorem lineDeriv_planarWeightedSchwartz + (a x₀ v : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) (f : SpatialSchwartz) : + ∂_{v} (planarWeightedSchwartz a x₀ R t f) = + planarWeightedSchwartz a x₀ R t (∂_{v} f) + + (⟪a, v⟫_ℝ : ℂ) • planarSlopeSchwartz a x₀ R t f := by + ext x + have hw := Complex.ofRealCLM.hasFDerivAt.comp x (hasFDerivAt_planarEnergyWeight a x₀ R t x) + have hprod := hw.mul (f.hasFDerivAt x) + change HasFDerivAt (fun y : EuclideanSpace ℝ (Fin 3) => + (planarEnergyWeight a x₀ R t y : ℂ) * f y) _ x at hprod + have hfun : (planarWeightedSchwartz a x₀ R t f : EuclideanSpace ℝ (Fin 3) → ℂ) = + (fun y => (planarEnergyWeight a x₀ R t y : ℂ) * f y) := + funext (planarWeightedSchwartz_apply a x₀ R t f) + rw [SchwartzMap.lineDerivOp_apply_eq_fderiv, hfun, hprod.fderiv] + simp only [add_apply, smul_apply, planarWeightedSchwartz_apply, + planarSlopeSchwartz_apply, SchwartzMap.lineDerivOp_apply_eq_fderiv, + add_apply, ContinuousLinearMap.comp_apply, + smul_apply, Complex.ofRealCLM_apply, innerSL_apply_apply, + smul_eq_mul, Complex.ofReal_mul, Function.comp_apply, Complex.ofRealCLM_apply] + ring + +theorem real_inner_planarWeightedSchwartz_left + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) (f g : SpatialSchwartz) : + ⟪(planarWeightedSchwartz a x₀ R t f).toLp 2, g.toLp 2⟫_ℝ = + planarPairing a x₀ R t f g := by + rw [real_inner_comm] + exact planarPairing_comm a x₀ R t g f + +theorem real_inner_planarSlopeSchwartz_left + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) (f g : SpatialSchwartz) : + ⟪(planarSlopeSchwartz a x₀ R t f).toLp 2, g.toLp 2⟫_ℝ = + planarSlopePairing a x₀ R t f g := by + rw [real_inner_comm] + exact planarSlopePairing_comm a x₀ R t g f + +theorem real_inner_spatialSchwartz_lineDeriv + (v : EuclideanSpace ℝ (Fin 3)) (f g : SpatialSchwartz) : + ⟪f.toLp 2, (∂_{v} g).toLp 2⟫_ℝ = -⟪(∂_{v} f).toLp 2, g.toLp 2⟫_ℝ := by + simp only [real_inner_spatialSchwartz_toL2] + exact SchwartzMap.integral_bilinear_lineDerivOp_right_eq_neg_left f g (innerSL ℝ) v + +/-- The cutoff-gradient term has the actual positive outward spatial sign. +Its negative sign here comes from integration by parts. -/ +theorem planarPairing_lineDeriv_right + (a x₀ v : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) (f g : SpatialSchwartz) : + planarPairing a x₀ R t f (∂_{v} g) = + -planarPairing a x₀ R t (∂_{v} f) g - + ⟪a, v⟫_ℝ * planarSlopePairing a x₀ R t f g := by + have hsmul : (⟪a, v⟫_ℝ : ℂ) • (planarSlopeSchwartz a x₀ R t f).toLp 2 = + ⟪a, v⟫_ℝ • (planarSlopeSchwartz a x₀ R t f).toLp 2 := by + simpa only [RCLike.ofReal_eq_complex_ofReal] using + (RCLike.real_smul_eq_coe_smul (K := ℂ) ⟪a, v⟫_ℝ + ((planarSlopeSchwartz a x₀ R t f).toLp 2)).symm + rw [← real_inner_planarWeightedSchwartz_left, + real_inner_spatialSchwartz_lineDeriv, lineDeriv_planarWeightedSchwartz, + spatialSchwartz_toL2_add, spatialSchwartz_toL2_smul, inner_add_left, + hsmul, real_inner_smul_left, + real_inner_planarWeightedSchwartz_left, real_inner_planarSlopeSchwartz_left] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyWeight.lean b/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyWeight.lean new file mode 100644 index 0000000000..55edefb8d1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PlanarEnergyWeight.lean @@ -0,0 +1,147 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzEvolution + +/-! +# A genuine smooth planar cutoff for finite-propagation energy + +The cutoff is zero behind the advancing plane, positive at every point ahead +of it, and between zero and one. Its actual derivative has compact support, +is nonnegative and bounded. Temperate growth makes multiplication on the +Schwartz core literal. No support theorem for a wave solution is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology Set +open scoped InnerProductSpace ContDiff + +theorem fderiv_smoothTransition_eq_zero_of_not_mem_Icc {x : ℝ} + (hx : x ∉ Icc (0 : ℝ) 1) : fderiv ℝ Real.smoothTransition x = 0 := by + have hout : x < 0 ∨ 1 < x := by + simpa only [mem_Icc, not_and_or, not_le] using hx + rcases hout with hx | hx + · have heq : Real.smoothTransition =ᶠ[𝓝 x] (fun _ : ℝ => 0) := by + filter_upwards [Iio_mem_nhds hx] with y hy + exact Real.smoothTransition.zero_of_nonpos hy.le + rw [heq.fderiv_eq] + exact fderiv_const_apply _ + · have heq : Real.smoothTransition =ᶠ[𝓝 x] (fun _ : ℝ => 1) := by + filter_upwards [Ioi_mem_nhds hx] with y hy + exact Real.smoothTransition.one_of_one_le hy.le + rw [heq.fderiv_eq] + exact fderiv_const_apply _ + +theorem hasCompactSupport_fderiv_smoothTransition : + HasCompactSupport (fderiv ℝ Real.smoothTransition) := + HasCompactSupport.intro isCompact_Icc fun _ hx => + fderiv_smoothTransition_eq_zero_of_not_mem_Icc hx + +theorem hasCompactSupport_deriv_smoothTransition : + HasCompactSupport (deriv Real.smoothTransition) := by + apply HasCompactSupport.intro (K := Icc (0 : ℝ) 1) isCompact_Icc + intro x hx + rw [deriv, fderiv_smoothTransition_eq_zero_of_not_mem_Icc hx] + rfl + +theorem contDiff_deriv_smoothTransition : + ContDiff ℝ (∞ : ℕ∞ω) (deriv Real.smoothTransition) := + (contDiff_infty_iff_deriv.mp Real.smoothTransition.contDiff).2 + +theorem hasTemperateGrowth_deriv_smoothTransition : + Function.HasTemperateGrowth (deriv Real.smoothTransition) := + hasCompactSupport_deriv_smoothTransition.hasTemperateGrowth contDiff_deriv_smoothTransition + +theorem hasTemperateGrowth_smoothTransition : + Function.HasTemperateGrowth Real.smoothTransition := by + apply Function.HasTemperateGrowth.of_fderiv + (hasCompactSupport_fderiv_smoothTransition.hasTemperateGrowth + (contDiff_infty_iff_fderiv.mp Real.smoothTransition.contDiff).2) + ((contDiff_infty_iff_fderiv.mp Real.smoothTransition.contDiff).1) (k := 0) (C := 1) + intro x + simpa only [pow_zero, mul_one, Real.norm_eq_abs, + abs_of_nonneg (Real.smoothTransition.nonneg x)] using Real.smoothTransition.le_one x + +theorem deriv_smoothTransition_nonneg (x : ℝ) : 0 ≤ deriv Real.smoothTransition x := + Real.smoothTransition.monotone.deriv_nonneg + +theorem exists_bound_deriv_smoothTransition : + ∃ C : ℝ, 0 ≤ C ∧ ∀ x, ‖deriv Real.smoothTransition x‖ ≤ C := by + obtain ⟨x₀, hx₀⟩ := contDiff_deriv_smoothTransition.continuous.norm + |>.exists_forall_ge_of_hasCompactSupport hasCompactSupport_deriv_smoothTransition.norm + exact ⟨‖deriv Real.smoothTransition x₀‖, norm_nonneg _, hx₀⟩ + +/-- Planar energy weight defined as `Real.smoothTransition (⟪a, x - x₀⟫_ℝ - R - t)`. -/ +noncomputable def planarEnergyWeight (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (x : EuclideanSpace ℝ (Fin 3)) : ℝ := + Real.smoothTransition (⟪a, x - x₀⟫_ℝ - R - t) + +/-- Planar energy slope defined as `deriv Real.smoothTransition (⟪a, x - x₀⟫_ℝ - R - t)`. -/ +noncomputable def planarEnergySlope (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (x : EuclideanSpace ℝ (Fin 3)) : ℝ := + deriv Real.smoothTransition (⟪a, x - x₀⟫_ℝ - R - t) + +theorem planarEnergyWeight_nonneg (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (x : EuclideanSpace ℝ (Fin 3)) : 0 ≤ planarEnergyWeight a x₀ R t x := + Real.smoothTransition.nonneg _ + +theorem planarEnergyWeight_le_one (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (x : EuclideanSpace ℝ (Fin 3)) : planarEnergyWeight a x₀ R t x ≤ 1 := + Real.smoothTransition.le_one _ + +theorem planarEnergySlope_nonneg (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (x : EuclideanSpace ℝ (Fin 3)) : 0 ≤ planarEnergySlope a x₀ R t x := + deriv_smoothTransition_nonneg _ + +theorem hasTemperateGrowth_planarEnergyWeight (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) : + Function.HasTemperateGrowth (planarEnergyWeight a x₀ R t) := by + apply hasTemperateGrowth_smoothTransition.comp + change Function.HasTemperateGrowth (fun x => (innerSL ℝ a) (x - x₀) - R - t) + fun_prop + +theorem hasTemperateGrowth_planarEnergySlope (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) : + Function.HasTemperateGrowth (planarEnergySlope a x₀ R t) := by + apply hasTemperateGrowth_deriv_smoothTransition.comp + change Function.HasTemperateGrowth (fun x => (innerSL ℝ a) (x - x₀) - R - t) + fun_prop + +theorem hasDerivAt_planarEnergyWeight (a x₀ x : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) : + HasDerivAt (fun s => planarEnergyWeight a x₀ R s x) + (-planarEnergySlope a x₀ R t x) t := by + have hd := (contDiff_infty_iff_deriv.mp Real.smoothTransition.contDiff).1 + simpa only [planarEnergyWeight, planarEnergySlope, Function.comp_def, + Pi.sub_apply, id_eq, zero_sub, mul_neg, mul_one] using! + (hd _).hasDerivAt.comp t ((hasDerivAt_const t (⟪a, x - x₀⟫_ℝ - R)).sub (hasDerivAt_id t)) + +theorem hasFDerivAt_planarEnergyWeight (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (x : EuclideanSpace ℝ (Fin 3)) : + HasFDerivAt (planarEnergyWeight a x₀ R t) + (planarEnergySlope a x₀ R t x • innerSL ℝ a) x := by + have ha : HasFDerivAt (fun y => ⟪a, y - x₀⟫_ℝ - R - t) (innerSL ℝ a) x := by + simpa only [ContinuousLinearMap.comp_id, Function.comp_def, id_eq] using! + (((innerSL ℝ a).hasFDerivAt.comp x ((hasFDerivAt_id x).sub_const x₀)).sub_const R).sub_const t + exact (((contDiff_infty_iff_deriv.mp Real.smoothTransition.contDiff).1 + _).hasDerivAt).comp_hasFDerivAt x ha + +theorem planarEnergyWeight_zero_of_norm_le {a x₀ x : EuclideanSpace ℝ (Fin 3)} + (ha : ‖a‖ ≤ 1) {R t : ℝ} (hx : ‖x - x₀‖ ≤ R + t) : + planarEnergyWeight a x₀ R t x = 0 := by + apply Real.smoothTransition.zero_of_nonpos + have hi := (real_inner_le_norm a (x - x₀)).trans + (mul_le_mul_of_nonneg_right ha (norm_nonneg (x - x₀))) + linarith + +theorem planarEnergyWeight_pos {a x₀ x : EuclideanSpace ℝ (Fin 3)} {R t : ℝ} + (hx : R + t < ⟪a, x - x₀⟫_ℝ) : 0 < planarEnergyWeight a x₀ R t x := by + apply Real.smoothTransition.pos_of_pos + linarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PlanarWeightedL2.lean b/LeanPool/VacuumBellSeparation/FreeField/PlanarWeightedL2.lean new file mode 100644 index 0000000000..80703d080f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PlanarWeightedL2.lean @@ -0,0 +1,169 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PlanarEnergyWeight +public import LeanPool.VacuumBellSeparation.FreeField.BoundedL2Multiplier +public import LeanPool.VacuumBellSeparation.FreeField.StrongProductDerivative + +/-! +# The actual planar cutoff acting on L² curves + +The fixed-vector derivative follows from a genuine dominated slope estimate +using the proved bound on the transition derivative. The bounded multiplication +operator then acts on a differentiable L² curve by the strong product rule. +No operator-norm differentiability of the cutoff family is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology + +theorem hasTemperateGrowth_complex_planarEnergyWeight + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) : + Function.HasTemperateGrowth (fun x => (planarEnergyWeight a x₀ R t x : ℂ)) := + Complex.hasTemperateGrowth_ofReal.comp (hasTemperateGrowth_planarEnergyWeight a x₀ R t) + +theorem hasTemperateGrowth_complex_planarEnergySlope + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) : + Function.HasTemperateGrowth (fun x => (planarEnergySlope a x₀ R t x : ℂ)) := + Complex.hasTemperateGrowth_ofReal.comp (hasTemperateGrowth_planarEnergySlope a x₀ R t) + +/-- Planar weighted Schwartz defined as `SchwartzMap.smulLeftCLM ℂ (fun x => (planarEnergyWeight a +x₀ R t x : ℂ)) f`. -/ +noncomputable def planarWeightedSchwartz (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f : SpatialSchwartz) : SpatialSchwartz := + SchwartzMap.smulLeftCLM ℂ (fun x => (planarEnergyWeight a x₀ R t x : ℂ)) f + +/-- Planar weighted Schwartz derivative. -/ +noncomputable def planarWeightedSchwartzDerivative (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f : SpatialSchwartz) : SpatialSchwartz := + -(SchwartzMap.smulLeftCLM ℂ (fun x => (planarEnergySlope a x₀ R t x : ℂ)) f) + +@[simp] theorem planarWeightedSchwartz_apply (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f : SpatialSchwartz) (x : EuclideanSpace ℝ (Fin 3)) : + planarWeightedSchwartz a x₀ R t f x = (planarEnergyWeight a x₀ R t x : ℂ) * f x := by + rw [planarWeightedSchwartz, SchwartzMap.smulLeftCLM_apply_apply + (hasTemperateGrowth_complex_planarEnergyWeight a x₀ R t)] + rfl + +theorem planarWeightedSchwartzDerivative_apply (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f : SpatialSchwartz) (x : EuclideanSpace ℝ (Fin 3)) : + planarWeightedSchwartzDerivative a x₀ R t f x = + -((planarEnergySlope a x₀ R t x : ℂ) * f x) := by + rw [planarWeightedSchwartzDerivative, neg_apply, + SchwartzMap.smulLeftCLM_apply_apply (hasTemperateGrowth_complex_planarEnergySlope a x₀ R t)] + rfl + +theorem norm_planarEnergyWeight_sub_le (a x₀ x : EuclideanSpace ℝ (Fin 3)) + (R s t : ℝ) {C : ℝ} (hC : ∀ r, ‖deriv Real.smoothTransition r‖ ≤ C) : + ‖planarEnergyWeight a x₀ R s x - planarEnergyWeight a x₀ R t x‖ ≤ C * ‖s - t‖ := by + apply Convex.norm_image_sub_le_of_norm_deriv_le (s := Set.univ) + (fun r _ => (hasDerivAt_planarEnergyWeight a x₀ x R r).differentiableAt) + (fun r _ => ?_) convex_univ (Set.mem_univ t) (Set.mem_univ s) + rw [(hasDerivAt_planarEnergyWeight a x₀ x R r).deriv, norm_neg] + exact hC _ + +theorem norm_slope_planarWeightedSchwartz_le (a x₀ x : EuclideanSpace ℝ (Fin 3)) + (R s t : ℝ) (hst : s ≠ t) (f : SpatialSchwartz) + {C : ℝ} (hC : ∀ r, ‖deriv Real.smoothTransition r‖ ≤ C) : + ‖(s - t)⁻¹ • (planarWeightedSchwartz a x₀ R s f x - + planarWeightedSchwartz a x₀ R t f x)‖ ≤ C * ‖f x‖ := by + have hst' : ‖s - t‖ ≠ 0 := norm_ne_zero_iff.mpr (sub_ne_zero.mpr hst) + simp only [planarWeightedSchwartz_apply, ← sub_mul, ← Complex.ofReal_sub, + norm_smul, norm_inv, norm_mul, Complex.norm_real] + calc + ‖s - t‖⁻¹ * (‖planarEnergyWeight a x₀ R s x - planarEnergyWeight a x₀ R t x‖ * ‖f x‖) + ≤ ‖s - t‖⁻¹ * ((C * ‖s - t‖) * ‖f x‖) := by + gcongr + exact norm_planarEnergyWeight_sub_le a x₀ x R s t hC + _ = C * ‖f x‖ := by field_simp [hst'] + +theorem hasDerivAt_planarWeightedSchwartz_toL2 + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) (f : SpatialSchwartz) : + HasDerivAt (fun s => (planarWeightedSchwartz a x₀ R s f).toLp 2) + ((planarWeightedSchwartzDerivative a x₀ R t f).toLp 2) t := by + obtain ⟨C, hC₀, hC⟩ := exists_bound_deriv_smoothTransition + refine hasDerivAt_spatialSchwartz_toL2_of_dominated + (fun s => planarWeightedSchwartz a x₀ R s f) + (planarWeightedSchwartzDerivative a x₀ R t f) t ?_ + (fun x => (4 * C ^ 2) * ‖f x‖ ^ 2) ?_ ?_ + · intro x + simpa only [planarWeightedSchwartz_apply, planarWeightedSchwartzDerivative_apply, + Complex.ofReal_neg, neg_mul] using + (hasDerivAt_planarEnergyWeight a x₀ x R t).ofReal_comp.mul_const (f x) + · exact ((memLp_two_iff_integrable_sq_norm f.continuous.aestronglyMeasurable).mp + (f.memLp 2)).const_mul (4 * C ^ 2) + · filter_upwards [self_mem_nhdsWithin] with s hs + refine Eventually.of_forall fun x => ?_ + have hslope := norm_slope_planarWeightedSchwartz_le a x₀ x R s t hs f hC + have hder : ‖planarWeightedSchwartzDerivative a x₀ R t f x‖ ≤ C * ‖f x‖ := by + rw [planarWeightedSchwartzDerivative_apply, norm_neg, norm_mul, Complex.norm_real] + exact mul_le_mul_of_nonneg_right (hC _) (norm_nonneg _) + have hres := norm_sub_le + ((s - t)⁻¹ • (planarWeightedSchwartz a x₀ R s f x - planarWeightedSchwartz a x₀ R t f x)) + (planarWeightedSchwartzDerivative a x₀ R t f x) + calc + ‖(s - t)⁻¹ • (planarWeightedSchwartz a x₀ R s f x - planarWeightedSchwartz a x₀ R t f x) - + planarWeightedSchwartzDerivative a x₀ R t f x‖ ^ 2 ≤ (2 * C * ‖f x‖) ^ 2 := by + gcongr + linarith + _ = (4 * C ^ 2) * ‖f x‖ ^ 2 := by ring + +theorem memLp_top_complex_planarEnergyWeight (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) : + MemLp (fun x => (planarEnergyWeight a x₀ R t x : ℂ)) ⊤ volume := by + apply memLp_top_of_bound + (hasTemperateGrowth_complex_planarEnergyWeight a x₀ R t).1.continuous.aestronglyMeasurable 1 + exact Eventually.of_forall fun x => by + simpa only [Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (planarEnergyWeight_nonneg a x₀ R t x)] + using planarEnergyWeight_le_one a x₀ R t x + +/-- Continuous linear map for the planar weight operator, of type `SpatialL2 →L[ℂ] SpatialL2`. -/ +noncomputable def planarWeightOperator (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) : + SpatialL2 →L[ℂ] SpatialL2 := + boundedL2Multiplier (fun x => (planarEnergyWeight a x₀ R t x : ℂ)) + (memLp_top_complex_planarEnergyWeight a x₀ R t) + +theorem planarWeightOperator_toLp (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f : SpatialSchwartz) : + planarWeightOperator a x₀ R t (f.toLp 2) = (planarWeightedSchwartz a x₀ R t f).toLp 2 := + boundedL2Multiplier_toLp _ _ (hasTemperateGrowth_complex_planarEnergyWeight a x₀ R t) f + +theorem norm_planarWeightOperator_le (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) : + ‖planarWeightOperator a x₀ R t‖ ≤ 1 := by + apply norm_boundedL2Multiplier_le _ _ zero_le_one + exact Eventually.of_forall fun x => by + simpa only [Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (planarEnergyWeight_nonneg a x₀ R t x)] + using planarEnergyWeight_le_one a x₀ R t x + +/-- Product rule for the actual planar cutoff and any actual L²-differentiable +Schwartz curve. The statement does not assume differentiation in Schwartz space. -/ +theorem hasDerivAt_planarWeighted_curve_toL2 + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (F : ℝ → SpatialSchwartz) (G : SpatialSchwartz) + (hF : HasDerivAt (fun s => (F s).toLp 2 volume) (G.toLp 2 volume) t) : + HasDerivAt (fun s => (planarWeightedSchwartz a x₀ R s (F s)).toLp 2 volume) + ((planarWeightedSchwartz a x₀ R t G).toLp 2 volume + + (planarWeightedSchwartzDerivative a x₀ R t (F t)).toLp 2 volume) t := by + have hfixed := hasDerivAt_planarWeightedSchwartz_toL2 a x₀ R t (F t) + have hcont := (hasDerivAt_planarWeightedSchwartz_toL2 a x₀ R t G).continuousAt + have ht := hasDerivAt_strong_operator_apply + (fun s => (planarWeightOperator a x₀ R s).restrictScalars ℝ) hF + (by simpa only [ContinuousLinearMap.coe_restrictScalars', planarWeightOperator_toLp] + using hfixed) + (by simpa only [ContinuousLinearMap.coe_restrictScalars', planarWeightOperator_toLp] + using hcont) + (Eventually.of_forall fun s => by + simpa only [ContinuousLinearMap.norm_restrictScalars] + using norm_planarWeightOperator_le a x₀ R s) + simpa only [ContinuousLinearMap.coe_restrictScalars', planarWeightOperator_toLp] using ht + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PlanarWeightedPairing.lean b/LeanPool/VacuumBellSeparation/FreeField/PlanarWeightedPairing.lean new file mode 100644 index 0000000000..1ade9ee982 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PlanarWeightedPairing.lean @@ -0,0 +1,150 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PlanarWeightedL2 +public import Mathlib.Analysis.InnerProductSpace.Calculus + +/-! +# The genuine weighted energy quadratic form + +The forms below are real L² inner products of actual Schwartz functions and +actual planar multiplication. Their integral formulas, symmetry, positivity, +and time derivative are proved, not supplied as energy assumptions. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace + +theorem real_inner_spatialSchwartz_toL2 (f g : SpatialSchwartz) : + ⟪f.toLp 2, g.toLp 2⟫_ℝ = ∫ x, ⟪f x, g x⟫_ℝ := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [f.coeFn_toLp 2, g.coeFn_toLp 2] with x hf hg + rw [hf, hg] + +/-- Planar slope Schwartz defined as `SchwartzMap.smulLeftCLM ℂ (fun x => (planarEnergySlope a x₀ R +t x : ℂ)) f`. -/ +noncomputable def planarSlopeSchwartz (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f : SpatialSchwartz) : SpatialSchwartz := + SchwartzMap.smulLeftCLM ℂ (fun x => (planarEnergySlope a x₀ R t x : ℂ)) f + +@[simp] theorem planarSlopeSchwartz_apply (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f : SpatialSchwartz) (x : EuclideanSpace ℝ (Fin 3)) : + planarSlopeSchwartz a x₀ R t f x = (planarEnergySlope a x₀ R t x : ℂ) * f x := by + rw [planarSlopeSchwartz, SchwartzMap.smulLeftCLM_apply_apply + (hasTemperateGrowth_complex_planarEnergySlope a x₀ R t)] + rfl + +@[simp] theorem planarWeightedSchwartzDerivative_eq_neg (a x₀ : EuclideanSpace ℝ (Fin 3)) + (R t : ℝ) (f : SpatialSchwartz) : + planarWeightedSchwartzDerivative a x₀ R t f = -planarSlopeSchwartz a x₀ R t f := rfl + +/-- Planar pairing. -/ +noncomputable def planarPairing (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f g : SpatialSchwartz) : ℝ := + ⟪f.toLp 2, (planarWeightedSchwartz a x₀ R t g).toLp 2⟫_ℝ + +/-- Planar slope pairing. -/ +noncomputable def planarSlopePairing (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f g : SpatialSchwartz) : ℝ := + ⟪f.toLp 2, (planarSlopeSchwartz a x₀ R t g).toLp 2⟫_ℝ + +theorem planarPairing_eq_integral (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f g : SpatialSchwartz) : + planarPairing a x₀ R t f g = ∫ x, planarEnergyWeight a x₀ R t x * ⟪f x, g x⟫_ℝ := by + rw [planarPairing, real_inner_spatialSchwartz_toL2] + congr 1 + funext x + rw [planarWeightedSchwartz_apply, ← Complex.real_smul] + exact inner_smul_right _ _ _ + +theorem planarSlopePairing_eq_integral (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f g : SpatialSchwartz) : + planarSlopePairing a x₀ R t f g = ∫ x, planarEnergySlope a x₀ R t x * ⟪f x, g x⟫_ℝ := by + rw [planarSlopePairing, real_inner_spatialSchwartz_toL2] + congr 1 + funext x + rw [planarSlopeSchwartz_apply, ← Complex.real_smul] + exact inner_smul_right _ _ _ + +theorem planarPairing_comm (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f g : SpatialSchwartz) : planarPairing a x₀ R t f g = planarPairing a x₀ R t g f := by + simp only [planarPairing_eq_integral, real_inner_comm] + +theorem planarSlopePairing_comm (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f g : SpatialSchwartz) : + planarSlopePairing a x₀ R t f g = planarSlopePairing a x₀ R t g f := by + simp only [planarSlopePairing_eq_integral, real_inner_comm] + +theorem planarPairing_self_nonneg (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f : SpatialSchwartz) : 0 ≤ planarPairing a x₀ R t f f := by + rw [planarPairing_eq_integral] + apply integral_nonneg + intro x + exact mul_nonneg (planarEnergyWeight_nonneg a x₀ R t x) (inner_self_nonneg) + +theorem planarSlopePairing_self_nonneg (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f : SpatialSchwartz) : 0 ≤ planarSlopePairing a x₀ R t f f := by + rw [planarSlopePairing_eq_integral] + apply integral_nonneg + intro x + exact mul_nonneg (planarEnergySlope_nonneg a x₀ R t x) (inner_self_nonneg) + +theorem planarPairing_add_right (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f g h : SpatialSchwartz) : + planarPairing a x₀ R t f (g + h) = + planarPairing a x₀ R t f g + planarPairing a x₀ R t f h := by + simp only [planarPairing, planarWeightedSchwartz, map_add, + spatialSchwartz_toL2_add, inner_add_right] + +theorem planarPairing_sub_right (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (f g h : SpatialSchwartz) : + planarPairing a x₀ R t f (g - h) = + planarPairing a x₀ R t f g - planarPairing a x₀ R t f h := by + simp only [planarPairing, planarWeightedSchwartz, map_sub, + spatialSchwartz_toL2_sub, inner_sub_right] + +theorem planarPairing_real_smul_right (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t c : ℝ) + (f g : SpatialSchwartz) : + planarPairing a x₀ R t f ((c : ℂ) • g) = c * planarPairing a x₀ R t f g := by + rw [planarPairing, planarWeightedSchwartz, map_smul, spatialSchwartz_toL2_smul] + have hs : (c : ℂ) • (planarWeightedSchwartz a x₀ R t g).toLp 2 volume = + c • (planarWeightedSchwartz a x₀ R t g).toLp 2 volume := by + exact (RCLike.real_smul_eq_coe_smul (K := ℂ) c _).symm + change ⟪f.toLp 2 volume, (c : ℂ) • (planarWeightedSchwartz a x₀ R t g).toLp 2 volume⟫_ℝ = _ + rw [hs] + exact inner_smul_right _ _ _ + +/-- Differentiation of the actual weighted square norm of an L²-differentiable +Schwartz curve, including the negative time derivative of the moving cutoff. -/ +theorem hasDerivAt_planarPairing_self + (a x₀ : EuclideanSpace ℝ (Fin 3)) (R t : ℝ) + (F : ℝ → SpatialSchwartz) (G : SpatialSchwartz) + (hF : HasDerivAt (fun s => (F s).toLp 2) (G.toLp 2) t) : + HasDerivAt (fun s => planarPairing a x₀ R s (F s) (F s)) + (2 * planarPairing a x₀ R t (F t) G - planarSlopePairing a x₀ R t (F t) (F t)) t := by + have hW := hasDerivAt_planarWeighted_curve_toL2 a x₀ R t F G hF + have h := hF.inner ℝ hW + have hvalue : + ⟪(F t).toLp 2 volume, (planarWeightedSchwartz a x₀ R t G).toLp 2 volume + + (planarWeightedSchwartzDerivative a x₀ R t (F t)).toLp 2 volume⟫_ℝ + + ⟪G.toLp 2 volume, (planarWeightedSchwartz a x₀ R t (F t)).toLp 2 volume⟫_ℝ = + 2 * planarPairing a x₀ R t (F t) G - planarSlopePairing a x₀ R t (F t) (F t) := by + rw [inner_add_right, planarWeightedSchwartzDerivative_eq_neg, + spatialSchwartz_toL2_neg, inner_neg_right] + change (planarPairing a x₀ R t (F t) G - planarSlopePairing a x₀ R t (F t) (F t)) + + planarPairing a x₀ R t G (F t) = _ + rw [planarPairing_comm a x₀ R t G (F t)] + ring + exact hvalue ▸ h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PolarUnitary.lean b/LeanPool/VacuumBellSeparation/FreeField/PolarUnitary.lean new file mode 100644 index 0000000000..2143fa1e7b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PolarUnitary.lean @@ -0,0 +1,110 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap +public import Mathlib.Analysis.InnerProductSpace.StarOrder +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Rpow.Basic +public import Mathlib.Tactic.TypeStar +public import Mathlib.Analysis.Normed.Operator.Extend + +/-! +# The actual polar unitary of an injective bounded map with dense range + +The norm identity for the CFC square root of K* K gives an isometry on its +range. Mathlib's dense isometric extension constructs the full map. Dense +range of K and closed range of an isometry make this extension surjective. +No bounded inverse of the Gram square root is required. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap +open scoped InnerProductSpace + +variable {E H : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Polar gram root obtained from `CFC.sqrt`. -/ +noncomputable def polarGramRoot (K : E →L[ℂ] H) : E →L[ℂ] E := + CFC.sqrt (K.adjoint.comp K) + +theorem polarGramRoot_adjoint_comp_self (K : E →L[ℂ] H) : + (polarGramRoot K).adjoint.comp (polarGramRoot K) = K.adjoint.comp K := by + have hp : 0 ≤ K.adjoint.comp K := nonneg_iff_isPositive.mpr (isPositive_adjoint_comp_self K) + change star (CFC.sqrt (K.adjoint.comp K)) * CFC.sqrt (K.adjoint.comp K) = _ + rw [(CFC.sqrt_nonneg _).isSelfAdjoint.star_eq, ← pow_two, CFC.sq_sqrt _ hp] + +theorem norm_polarGramRoot (K : E →L[ℂ] H) (x : E) : + ‖polarGramRoot K x‖ = ‖K x‖ := by + apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp + rw [(polarGramRoot K).apply_norm_sq_eq_inner_adjoint_right, + K.apply_norm_sq_eq_inner_adjoint_right, polarGramRoot_adjoint_comp_self] + +theorem polarGramRoot_injective (K : E →L[ℂ] H) (hK : Function.Injective K) : + Function.Injective (polarGramRoot K) := by + intro x y hxy + apply sub_eq_zero.mp + apply hK + rw [map_zero] + apply norm_eq_zero.mp + rw [← norm_polarGramRoot K, map_sub, hxy, sub_self, norm_zero] + +theorem polarGramRoot_denseRange (K : E →L[ℂ] H) (hK : Function.Injective K) : + DenseRange (polarGramRoot K) := by + have hs : IsSelfAdjoint (polarGramRoot K) := (CFC.sqrt_nonneg _).isSelfAdjoint + have hker : (polarGramRoot K).ker = ⊥ := LinearMap.ker_eq_bot.mpr (polarGramRoot_injective K hK) + have horth : (polarGramRoot K).rangeᗮ = ⊥ := by + rw [(polarGramRoot K).orthogonal_range] + change (star (polarGramRoot K)).ker = ⊥ + rw [hs.star_eq, hker] + have hclose := (polarGramRoot K).range.topologicalClosure_eq_top_iff.mpr horth + rw [denseRange_iff_closure_range] + change ((polarGramRoot K).range.topologicalClosure : Set E) = Set.univ + rw [hclose] + rfl + +/-- Polar isometry of type `E →ₗᵢ[ℂ] H`. -/ +noncomputable def polarIsometry (K : E →L[ℂ] H) (hK : Function.Injective K) : E →ₗᵢ[ℂ] H := + K.toLinearMap.extendOfIsometry (e := (polarGramRoot K).toLinearMap) + (polarGramRoot_denseRange K hK) (fun x => (norm_polarGramRoot K x).symm) + +@[simp] theorem polarIsometry_polarGramRoot (K : E →L[ℂ] H) (hK : Function.Injective K) + (x : E) : polarIsometry K hK (polarGramRoot K x) = K x := + LinearMap.extendOfIsometry_eq _ _ _ _ + +theorem polarIsometry_surjective (K : E →L[ℂ] H) (hK : Function.Injective K) + (hd : DenseRange K) : Function.Surjective (polarIsometry K hK) := by + have hr : Set.range K ⊆ Set.range (polarIsometry K hK) := by + rintro _ ⟨x, rfl⟩ + exact ⟨polarGramRoot K x, polarIsometry_polarGramRoot K hK x⟩ + have hdU : DenseRange (polarIsometry K hK) := hd.mono hr + intro y + have hy := hdU y + rw [(polarIsometry K hK).isometry.isClosedEmbedding.isClosed_range.closure_eq] at hy + exact hy + +/-- Linear isometry equivalence for the polar unitary, of type `E ≃ₗᵢ[ℂ] H`. -/ +noncomputable def polarUnitary (K : E →L[ℂ] H) (hK : Function.Injective K) + (hd : DenseRange K) : E ≃ₗᵢ[ℂ] H := + LinearIsometryEquiv.ofSurjective (polarIsometry K hK) (polarIsometry_surjective K hK hd) + +@[simp] theorem polarUnitary_polarGramRoot (K : E →L[ℂ] H) (hK : Function.Injective K) + (hd : DenseRange K) (x : E) : polarUnitary K hK hd (polarGramRoot K x) = K x := + polarIsometry_polarGramRoot K hK x + +theorem polarUnitary_factorization (K : E →L[ℂ] H) (hK : Function.Injective K) + (hd : DenseRange K) : + (polarUnitary K hK hd).toContinuousLinearEquiv.toContinuousLinearMap.comp + (polarGramRoot K) = K := by + ext x + exact polarUnitary_polarGramRoot K hK hd x + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PositiveContractionPowers.lean b/LeanPool/VacuumBellSeparation/FreeField/PositiveContractionPowers.lean new file mode 100644 index 0000000000..407fd5ee44 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PositiveContractionPowers.lean @@ -0,0 +1,114 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PositiveOperatorPowers +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioResolvent +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Commute +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order + +/-! +# Positive contraction powers and the associated maximal ratios + +For an injective positive contraction R and 0≤c≤1, the operators R^c +and (1-R)^c have a boundedly invertible sum. Their actual partial ratio +is positive selfadjoint, and its full resolvent is explicitly computed. +This is a construction step for extended continuous calculus: compatibility +with bounded powers and independence of regularizers are separate results. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap +open scoped InnerProductSpace + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem positiveContraction_le_rpow (R : E →L[ℂ] E) (hR : 0 ≤ R) (hR1 : R ≤ 1) + {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) : R ≤ R ^ c := by + rw [CFC.rpow_eq_cfc_real hR] + conv_lhs => rw [← cfc_id' ℝ R hR.isSelfAdjoint] + apply cfc_mono (hf := continuous_id.continuousOn) + (hg := (Real.continuous_rpow_const hc).continuousOn) + intro x hx + have hx0 : 0 ≤ x := + (StarOrderedRing.nonneg_iff_spectrum_nonneg R hR.isSelfAdjoint).mp hR x hx + have hx1 : x ≤ 1 := (Real.le_norm_self x).trans + ((IsometricContinuousFunctionalCalculus.norm_spectrum_le R hx hR.isSelfAdjoint).trans + ((CStarAlgebra.norm_le_one_iff_of_nonneg R hR).mpr hR1)) + exact Real.self_le_rpow_of_le_one hx0 hx1 hc1 + +theorem positiveContraction_power_sum_isUnit (R : E →L[ℂ] E) + (hR : 0 ≤ R) (hR1 : R ≤ 1) {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) : + IsUnit (R ^ c + (1 - R) ^ c) := by + have hB : 0 ≤ 1 - R := sub_nonneg.mpr hR1 + have hB1 : 1 - R ≤ 1 := sub_le_self _ hR + have hsum : 1 ≤ R ^ c + (1 - R) ^ c := by + calc + 1 = R + (1 - R) := by abel + _ ≤ R ^ c + (1 - R) ^ c := add_le_add + (positiveContraction_le_rpow R hR hR1 hc hc1) + (positiveContraction_le_rpow (1 - R) hB hB1 hc hc1) + exact CStarAlgebra.isUnit_of_le 1 hsum + +theorem positiveContraction_powers_commute (R : E →L[ℂ] E) (c : ℝ) : + Commute (R ^ c) ((1 - R) ^ c) := by + have h : Commute R (1 - R) := (Commute.one_right R).sub_right (Commute.refl R) + exact ((h.cfc_nnreal (fun x => x ^ c)).symm.cfc_nnreal (fun x => x ^ c)).symm + +/-- The actual ratio associated with a positive contraction's real powers. +The name records its construction; spectral-power compatibility must be proved. -/ +noncomputable def resolventPowerRatio (R : E →L[ℂ] E) (hR : 0 ≤ R) + (hi : Function.Injective R) (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) : E →ₗ.[ℂ] E := + boundedRatio (R ^ c) ((1 - R) ^ c) (positiveOperator_rpow_injective R hR hi hc hc1) + +@[simp] theorem resolventPowerRatio_apply (R : E →L[ℂ] E) (hR : 0 ≤ R) + (hi : Function.Injective R) (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) (x : E) : + resolventPowerRatio R hR hi c hc hc1 ⟨(R ^ c) x, ⟨x, rfl⟩⟩ = ((1 - R) ^ c) x := + boundedRatio_apply_range _ _ _ x + +theorem resolventPowerRatio_isSelfAdjoint (R : E →L[ℂ] E) + (hR : 0 ≤ R) (hR1 : R ≤ 1) (hi : Function.Injective R) + (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) : + IsSelfAdjoint (resolventPowerRatio R hR hi c hc hc1) := + boundedRatio_isSelfAdjoint_of_isUnit_add _ _ _ + (positiveOperator_rpow_denseRange R hR hi hc hc1) + CFC.rpow_nonneg.isSelfAdjoint CFC.rpow_nonneg.isSelfAdjoint + (positiveContraction_powers_commute R c) + (positiveContraction_power_sum_isUnit R hR hR1 hc hc1) + +theorem resolventPowerRatio_inner_nonneg (R : E →L[ℂ] E) + (hR : 0 ≤ R) (hi : Function.Injective R) + (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) + (x : (resolventPowerRatio R hR hi c hc hc1).domain) : + 0 ≤ (inner ℂ (x : E) (resolventPowerRatio R hR hi c hc hc1 x)).re := by + obtain ⟨z, hz, hv⟩ := boundedRatio_representation (R ^ c) ((1 - R) ^ c) + (positiveOperator_rpow_injective R hR hi hc hc1) x + change 0 ≤ (inner ℂ (x : E) + (boundedRatio (R ^ c) ((1 - R) ^ c) (positiveOperator_rpow_injective R hR hi hc hc1) x)).re + rw [← hz, ← hv] + have hs := (CFC.rpow_nonneg (a := R) (y := c)).isSelfAdjoint.isSymmetric + z (((1 - R) ^ c) z) + change inner ℂ ((R ^ c) z) (((1 - R) ^ c) z) = + inner ℂ z ((R ^ c) (((1 - R) ^ c) z)) at hs + rw [hs] + exact (nonneg_iff_isPositive.mp + (Commute.mul_nonneg CFC.rpow_nonneg CFC.rpow_nonneg + (positiveContraction_powers_commute R c))).re_inner_nonneg_right z + +/-- The intrinsic inverse (1+L)⁻¹ is an everywhere-defined bounded operator. -/ +theorem resolventPowerRatio_resolvent (R : E →L[ℂ] E) + (hR : 0 ≤ R) (hR1 : R ≤ 1) (hi : Function.Injective R) + (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) (x y : E) : + (∃ hy : y ∈ (resolventPowerRatio R hR hi c hc hc1).domain, + y + resolventPowerRatio R hR hi c hc hc1 ⟨y, hy⟩ = x) ↔ + (R ^ c * Ring.inverse (R ^ c + (1 - R) ^ c)) x = y := + boundedRatio_resolvent_iff _ _ _ (positiveContraction_power_sum_isUnit R hR hR1 hc hc1) x y + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PositiveEnergyLaplace.lean b/LeanPool/VacuumBellSeparation/FreeField/PositiveEnergyLaplace.lean new file mode 100644 index 0000000000..3c7b8ce0ad --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PositiveEnergyLaplace.lean @@ -0,0 +1,113 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PositiveEnergyPhase +public import Mathlib.Analysis.Complex.CauchyIntegral + +/-! +# Actual positive-energy Laplace transforms, including boundary derivatives + +The transform is the literal Bochner integral. Integrability of the +amplitude and its first energy moment suffice for a complex derivative +within the closed upper half-plane, and hence holomorphy in its interior. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Set +open scoped Topology + +variable {α : Type*} [MeasurableSpace α] {μ : Measure α} + +/-- Positive energy Laplace given by `∫ a, positiveEnergyPhase (ω a) z * A a ∂μ`. -/ +noncomputable def positiveEnergyLaplace (μ : Measure α) (ω : α → ℝ) + (A : α → ℂ) (z : ℂ) : ℂ := + ∫ a, positiveEnergyPhase (ω a) z * A a ∂μ + +theorem aestronglyMeasurable_positiveEnergyPhase + {ω : α → ℝ} (hω : AEStronglyMeasurable ω μ) (z : ℂ) : + AEStronglyMeasurable (fun a => positiveEnergyPhase (ω a) z) μ := by + have hc : Continuous (fun r : ℝ => positiveEnergyPhase r z) := by + unfold positiveEnergyPhase + fun_prop + exact hc.comp_aestronglyMeasurable hω + +theorem integrable_positiveEnergyLaplace_integrand + {ω : α → ℝ} {A : α → ℂ} (hω : AEStronglyMeasurable ω μ) + (hω₀ : ∀ a, 0 ≤ ω a) (hA : Integrable A μ) {z : ℂ} (hz : 0 ≤ z.im) : + Integrable (fun a => positiveEnergyPhase (ω a) z * A a) μ := by + apply hA.norm.mono' + · exact (aestronglyMeasurable_positiveEnergyPhase hω z).mul hA.aestronglyMeasurable + · exact Eventually.of_forall fun a => by + rw [norm_mul] + exact mul_le_of_le_one_left (norm_nonneg _) (norm_positiveEnergyPhase_le_one (hω₀ a) hz) + +theorem integrable_positiveEnergyLaplace_derivative + {ω : α → ℝ} {A : α → ℂ} (hω : AEStronglyMeasurable ω μ) + (hω₀ : ∀ a, 0 ≤ ω a) (hA : AEStronglyMeasurable A μ) + (hωA : Integrable (fun a => ω a * ‖A a‖) μ) {z : ℂ} (hz : 0 ≤ z.im) : + Integrable (fun a => positiveEnergyPhase (ω a) z * (Complex.I * (ω a : ℂ)) * A a) μ := by + apply hωA.mono' + · exact ((aestronglyMeasurable_positiveEnergyPhase hω z).mul + ((Complex.continuous_ofReal.comp_aestronglyMeasurable hω).const_mul Complex.I)).mul hA + · exact Eventually.of_forall fun a => by + simp only [norm_mul, Complex.norm_I, one_mul, Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (hω₀ a)] + calc + _ = ‖positiveEnergyPhase (ω a) z‖ * (ω a * ‖A a‖) := by ring + _ ≤ _ := mul_le_of_le_one_left (mul_nonneg (hω₀ a) (norm_nonneg _)) + (norm_positiveEnergyPhase_le_one (hω₀ a) hz) + +theorem hasDerivWithinAt_positiveEnergyLaplace + {ω : α → ℝ} {A : α → ℂ} (hω : AEStronglyMeasurable ω μ) + (hω₀ : ∀ a, 0 ≤ ω a) (hA : Integrable A μ) + (hωA : Integrable (fun a => ω a * ‖A a‖) μ) {z : ℂ} (hz : 0 ≤ z.im) : + HasDerivWithinAt (positiveEnergyLaplace μ ω A) + (∫ a, positiveEnergyPhase (ω a) z * (Complex.I * (ω a : ℂ)) * A a ∂μ) + {w : ℂ | 0 ≤ w.im} z := by + apply hasDerivWithinAt_integral_of_dominated_slope + (F := fun w a => positiveEnergyPhase (ω a) w * A a) + (D := fun a => positiveEnergyPhase (ω a) z * (Complex.I * (ω a : ℂ)) * A a) + (s := {w : ℂ | 0 ≤ w.im}) (z₀ := z) (hz₀ := hz) + (B := fun a => 2 * (ω a * ‖A a‖)) + · intro w hw + exact integrable_positiveEnergyLaplace_integrand hω hω₀ hA hw + · intro a + exact ((hasDerivAt_positiveEnergyPhase (ω a) z).mul_const (A a)).hasDerivWithinAt + · exact hωA.const_mul 2 + · intro w hw a + rw [← sub_mul, norm_mul] + calc + _ ≤ (2 * ω a * ‖w - z‖) * ‖A a‖ := + mul_le_mul_of_nonneg_right (norm_positiveEnergyPhase_sub_le (hω₀ a) hw hz) + (norm_nonneg _) + _ = _ := by ring + +theorem hasDerivAt_positiveEnergyLaplace + {ω : α → ℝ} {A : α → ℂ} (hω : AEStronglyMeasurable ω μ) + (hω₀ : ∀ a, 0 ≤ ω a) (hA : Integrable A μ) + (hωA : Integrable (fun a => ω a * ‖A a‖) μ) {z : ℂ} (hz : 0 < z.im) : + HasDerivAt (positiveEnergyLaplace μ ω A) + (∫ a, positiveEnergyPhase (ω a) z * (Complex.I * (ω a : ℂ)) * A a ∂μ) z := by + apply (hasDerivWithinAt_positiveEnergyLaplace hω hω₀ hA hωA hz.le).hasDerivAt + exact Filter.mem_of_superset + ((isOpen_lt continuous_const Complex.continuous_im).mem_nhds hz) (fun w (h : + (0 : ℝ) < w.im) => show w ∈ {w : ℂ | 0 ≤ w.im} from h.le) + +theorem analyticOnNhd_positiveEnergyLaplace + {ω : α → ℝ} {A : α → ℂ} (hω : AEStronglyMeasurable ω μ) + (hω₀ : ∀ a, 0 ≤ ω a) (hA : Integrable A μ) + (hωA : Integrable (fun a => ω a * ‖A a‖) μ) : + AnalyticOnNhd ℂ (positiveEnergyLaplace μ ω A) {z : ℂ | 0 < z.im} := by + apply DifferentiableOn.analyticOnNhd _ (isOpen_lt continuous_const Complex.continuous_im) + intro z hz + exact (hasDerivAt_positiveEnergyLaplace hω hω₀ hA hωA hz).differentiableAt.differentiableWithinAt + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PositiveEnergyPhase.lean b/LeanPool/VacuumBellSeparation/FreeField/PositiveEnergyPhase.lean new file mode 100644 index 0000000000..1185851870 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PositiveEnergyPhase.lean @@ -0,0 +1,94 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WithinIntegralDerivative +public import Mathlib.Analysis.Calculus.Deriv.Mul +public import Mathlib.Analysis.SpecialFunctions.ExpDeriv + +/-! +# Uniform positive-energy phase bounds on the closed upper half-plane + +These bounds use the sign of the real exponential and hold up to the +boundary. In particular the dominating slope has only one power of the +energy; it does not require an unjustified exponential moment. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem norm_exp_sub_one_le_two_norm_of_re_nonpos {z : ℂ} (hz : z.re ≤ 0) : + ‖Complex.exp z - 1‖ ≤ 2 * ‖z‖ := by + by_cases hsmall : ‖z‖ ≤ 1 + · exact Complex.norm_exp_sub_one_le hsmall + · have he : ‖Complex.exp z‖ ≤ 1 := by + rw [Complex.norm_exp] + exact Real.exp_le_one_iff.mpr hz + have htri := norm_sub_le (Complex.exp z) (1 : ℂ) + norm_num only [norm_one] at htri + linarith + +theorem norm_exp_sub_exp_le_two_norm_of_re_nonpos {z w : ℂ} + (hz : z.re ≤ 0) (hw : w.re ≤ 0) : + ‖Complex.exp z - Complex.exp w‖ ≤ 2 * ‖z - w‖ := by + have hone {a b : ℂ} (hab : a.re ≤ b.re) (hb : b.re ≤ 0) : + ‖Complex.exp a - Complex.exp b‖ ≤ 2 * ‖a - b‖ := by + have heq : Complex.exp a - Complex.exp b = + Complex.exp b * (Complex.exp (a - b) - 1) := by + rw [mul_sub, ← Complex.exp_add, mul_one] + congr 2 + ring + have hbexp : ‖Complex.exp b‖ ≤ 1 := by + rw [Complex.norm_exp] + exact Real.exp_le_one_iff.mpr hb + have hd := norm_exp_sub_one_le_two_norm_of_re_nonpos + (z := a - b) (by simpa only [Complex.sub_re] using sub_nonpos.mpr hab) + rw [heq, norm_mul] + calc + _ ≤ 1 * (2 * ‖a - b‖) := + mul_le_mul hbexp hd (norm_nonneg _) (by norm_num) + _ = _ := one_mul _ + rcases le_total z.re w.re with h | h + · exact hone h hw + · simpa only [norm_sub_rev] using hone h hz + +/-- Positive energy phase given by `Complex.exp (z * (Complex.I * (ω : ℂ)))`. -/ +noncomputable def positiveEnergyPhase (ω : ℝ) (z : ℂ) : ℂ := + Complex.exp (z * (Complex.I * (ω : ℂ))) + +theorem positiveEnergyExponent_re (ω : ℝ) (z : ℂ) : + (z * (Complex.I * (ω : ℂ))).re = -z.im * ω := by + simp [Complex.mul_re, Complex.mul_im] + +theorem norm_positiveEnergyPhase_le_one {ω : ℝ} (hω : 0 ≤ ω) + {z : ℂ} (hz : 0 ≤ z.im) : ‖positiveEnergyPhase ω z‖ ≤ 1 := by + rw [positiveEnergyPhase, Complex.norm_exp, positiveEnergyExponent_re] + exact Real.exp_le_one_iff.mpr (mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr hz) hω) + +theorem norm_positiveEnergyPhase_sub_le {ω : ℝ} (hω : 0 ≤ ω) + {z w : ℂ} (hz : 0 ≤ z.im) (hw : 0 ≤ w.im) : + ‖positiveEnergyPhase ω z - positiveEnergyPhase ω w‖ ≤ 2 * ω * ‖z - w‖ := by + have h := norm_exp_sub_exp_le_two_norm_of_re_nonpos + (z := z * (Complex.I * (ω : ℂ))) (w := w * (Complex.I * (ω : ℂ))) + (by + rw [positiveEnergyExponent_re] + exact mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr hz) hω) + (by + rw [positiveEnergyExponent_re] + exact mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr hw) hω) + rw [← sub_mul, norm_mul, norm_mul, Complex.norm_I, one_mul, + Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg hω] at h + simpa only [positiveEnergyPhase, mul_comm, mul_left_comm, mul_assoc] using h + +theorem hasDerivAt_positiveEnergyPhase (ω : ℝ) (z : ℂ) : + HasDerivAt (positiveEnergyPhase ω) + (positiveEnergyPhase ω z * (Complex.I * (ω : ℂ))) z := by + simpa only [positiveEnergyPhase, id_eq, one_mul] using! + ((hasDerivAt_id z).mul_const (Complex.I * (ω : ℂ))).cexp + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PositiveEnergySpatialAmplitude.lean b/LeanPool/VacuumBellSeparation/FreeField/PositiveEnergySpatialAmplitude.lean new file mode 100644 index 0000000000..52f776deeb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PositiveEnergySpatialAmplitude.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMassShellBound +public import LeanPool.VacuumBellSeparation.FreeField.CauchySpatialTest +public import LeanPool.VacuumBellSeparation.FreeField.UpperHalfPlaneUniqueness + +/-! +# Physical scalar Laplace amplitudes + +The amplitude is the literal product of an arbitrary physical mass-shell L² +vector with the Fourier transform of an actual compact real spatial test. +Its first energy moment is integrable because the momentum-smearing time-zero +source is itself a physical L² vector. No extra regularity of ψ is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter FourierTransform +open scoped ComplexConjugate InnerProductSpace FourierTransform + +/-- Spatial Laplace amplitude given by `conj (ψ p) * spatialFourier g p`. -/ +noncomputable def spatialLaplaceAmplitude {m : ℝ} + (ψ : Lp ℂ 2 (oneParticleMeasure m)) (g : SpatialTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + conj (ψ p) * spatialFourier g p + +theorem integrable_spatialLaplaceAmplitude {m : ℝ} (hm : 0 < m) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) (g : SpatialTestFunction) : + Integrable (spatialLaplaceAmplitude ψ g) (oneParticleMeasure m) := by + exact (Lp.memLp ψ).star.integrable_mul (memLp_spatialFourier_massShell hm g) + +theorem integrable_spatialLaplaceAmplitude_energy {m : ℝ} (hm : 0 < m) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) (g : SpatialTestFunction) : + Integrable (fun p => dispersion m p * ‖spatialLaplaceAmplitude ψ g p‖) + (oneParticleMeasure m) := by + have hi : Integrable + (fun p => conj (ψ p) * timeZeroOneParticle m (0, g) p) (oneParticleMeasure m) := by + apply (L2.integrable_inner (𝕜 := ℂ) ψ (timeZeroL2 hm (0, g))).congr + filter_upwards [coeFn_timeZeroL2 hm (0, g)] with p hp + rw [hp, RCLike.inner_apply'] + apply hi.norm.congr + exact Eventually.of_forall fun p => by + simp only [spatialLaplaceAmplitude, timeZeroOneParticle] + have hz : spatialFourier (0 : SpatialTestFunction) p = 0 := by + change (∫ x : EuclideanSpace ℝ (Fin 3), + Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ))) * (0 : ℂ)) = 0 + simp + rw [hz, zero_add] + simp only [norm_mul, Complex.norm_I, one_mul, Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (hm.le.trans (le_dispersion hm.le p))] + ring + +theorem timeZeroOneParticle_evolvedSpatialSource_physical {m : ℝ} (hm : 0 < m) + (t : ℝ) (g : SpatialTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + timeZeroOneParticle m (evolvedSpatialSource hm t g) p = + positiveEnergyPhase (dispersion m p) (t : ℂ) * spatialFourier g p := by + let ξ : EuclideanSpace ℝ (Fin 3) := (2 * Real.pi)⁻¹ • p + have hξ : (2 * Real.pi) • ξ = p := by + simp only [ξ, smul_smul, mul_inv_cancel₀ (by positivity : 2 * Real.pi ≠ 0), one_smul] + have hphase : massiveEvolutionPhase m t ξ = positiveEnergyPhase (dispersion m p) (t : ℂ) := by + rw [massiveEvolutionPhase, massiveSchwartzSymbol_one hm, hξ, positiveEnergyPhase] + congr 1 + push_cast + ring + have hfourier : (𝓕 (spatialSchwartz g)) ξ = spatialFourier g p := by + rw [← spatialFourier_two_pi, hξ] + simpa only [hξ, hphase, hfourier] using timeZeroOneParticle_evolvedSpatialSource hm t g ξ + +theorem spatialLaplace_eq_inner_evolvedSpatialSource {m : ℝ} (hm : 0 < m) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) (g : SpatialTestFunction) (t : ℝ) : + positiveEnergyLaplace (oneParticleMeasure m) (dispersion m) + (spatialLaplaceAmplitude ψ g) (t : ℂ) = + ⟪ψ, timeZeroL2 hm (evolvedSpatialSource hm t g)⟫_ℂ := by + rw [L2.inner_def] + unfold positiveEnergyLaplace spatialLaplaceAmplitude + apply integral_congr_ae + filter_upwards [coeFn_timeZeroL2 hm (evolvedSpatialSource hm t g)] with p hp + rw [hp, RCLike.inner_apply', timeZeroOneParticle_evolvedSpatialSource_physical] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/PositiveOperatorPowers.lean b/LeanPool/VacuumBellSeparation/FreeField/PositiveOperatorPowers.lean new file mode 100644 index 0000000000..50253da671 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/PositiveOperatorPowers.lean @@ -0,0 +1,70 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.StarOrder +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Rpow.Order +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap + +/-! +# Nonnegative powers without an invertibility hypothesis + +The actual continuous functional calculus allows zero in the spectrum. +Nonnegative exponent addition, injectivity for exponents in [0,1], and +dense range are proved without replacing pointwise injectivity by a +uniform positive lower bound. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap +open scoped NNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem positiveOperator_rpow_add (A : E →L[ℂ] E) + {p q : ℝ} (hp : 0 ≤ p) (hq : 0 ≤ q) : + A ^ (p + q) = A ^ p * A ^ q := by + simp only [CFC.rpow_def] + rw [← cfc_mul (fun x : ℝ≥0 => x ^ p) (fun x : ℝ≥0 => x ^ q) A + (NNReal.continuous_rpow_const hp).continuousOn + (NNReal.continuous_rpow_const hq).continuousOn] + congr 1 + funext x + exact NNReal.rpow_add_of_nonneg x hp hq + +theorem positiveOperator_rpow_injective (A : E →L[ℂ] E) (hA : 0 ≤ A) + (hi : Function.Injective A) {p : ℝ} (hp : 0 ≤ p) (hp1 : p ≤ 1) : + Function.Injective (A ^ p) := by + have hf : A = A ^ (1 - p) * A ^ p := by + rw [← positiveOperator_rpow_add A (sub_nonneg.mpr hp1) hp, + sub_add_cancel, CFC.rpow_one A hA] + intro x y hxy + apply hi + rw [hf] + change (A ^ (1 - p)) ((A ^ p) x) = (A ^ (1 - p)) ((A ^ p) y) + rw [hxy] + +theorem selfAdjoint_denseRange_of_injective (A : E →L[ℂ] E) + (hA : IsSelfAdjoint A) (hi : Function.Injective A) : DenseRange A := by + have hker : A.ker = ⊥ := LinearMap.ker_eq_bot.mpr hi + have horth : A.rangeᗮ = ⊥ := by rw [A.orthogonal_range, hA.adjoint_eq, hker] + have hclose := A.range.topologicalClosure_eq_top_iff.mpr horth + rw [denseRange_iff_closure_range] + change (A.range.topologicalClosure : Set E) = Set.univ + rw [hclose] + rfl + +theorem positiveOperator_rpow_denseRange (A : E →L[ℂ] E) (hA : 0 ≤ A) + (hi : Function.Injective A) {p : ℝ} (hp : 0 ≤ p) (hp1 : p ≤ 1) : + DenseRange (A ^ p) := + selfAdjoint_denseRange_of_injective _ CFC.rpow_nonneg.isSelfAdjoint + (positiveOperator_rpow_injective A hA hi hp hp1) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ProductSourceCovariancePerturbation.lean b/LeanPool/VacuumBellSeparation/FreeField/ProductSourceCovariancePerturbation.lean new file mode 100644 index 0000000000..2ed6faf461 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ProductSourceCovariancePerturbation.lean @@ -0,0 +1,169 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FinitePairSourceCompression +public import LeanPool.VacuumBellSeparation.FreeField.SourceInclusion + +/-! +# The actual product-source covariance perturbation + +The sum of the two original source inclusions is a bounded map into the +joint completion. Its Gram minus the product identity is the full +off-diagonal covariance perturbation. Compression by the actual whitened +finite source family gives the literal normalized covariance difference. +No compactness, reserve factorization or spatial decay is asserted here. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap Matrix +open scoped InnerProductSpace Matrix.Norms.L2Operator + +variable {m : ℝ} (hm : 0 < m) (U W : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Continuous linear map for the product source sum, of type `WithLp 2 (SourceHilbert hm U × +SourceHilbert hm W) →L[ℝ] SourceHilbert hm (U ∪ W)`. -/ +def productSourceSum : WithLp 2 (SourceHilbert hm U × SourceHilbert hm W) →L[ℝ] + SourceHilbert hm (U ∪ W) := + ((sourceInclusion hm (show U ⊆ U ∪ W from Set.subset_union_left)).toContinuousLinearMap.coprod + (sourceInclusion hm (show W ⊆ U ∪ W from Set.subset_union_right)).toContinuousLinearMap).comp + (WithLp.prodContinuousLinearEquiv 2 ℝ (SourceHilbert hm U) + (SourceHilbert hm W)).toContinuousLinearMap + +@[simp] theorem productSourceSum_apply (z : WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) : + productSourceSum hm U W z = + sourceInclusion hm Set.subset_union_left z.fst + + sourceInclusion hm Set.subset_union_right z.snd := rfl + +theorem sourceEmbedding_productSourceSum + (z : WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) : + sourceEmbedding hm (U ∪ W) (productSourceSum hm U W z) = + sourceEmbedding hm U z.fst + sourceEmbedding hm W z.snd := by + rw [productSourceSum_apply, map_add, sourceEmbedding_inclusion, sourceEmbedding_inclusion] + +/-- This is the actual covariance Gram difference on the full product space. -/ +def productSourceCovariancePerturbation : + WithLp 2 (SourceHilbert hm U × SourceHilbert hm W) →L[ℝ] + WithLp 2 (SourceHilbert hm U × SourceHilbert hm W) := + (productSourceSum hm U W).adjoint.comp (productSourceSum hm U W) - 1 + +theorem productSourceCovariancePerturbation_isSelfAdjoint : + IsSelfAdjoint (productSourceCovariancePerturbation hm U W) := by + change (productSourceCovariancePerturbation hm U W).adjoint = _ + simp only [productSourceCovariancePerturbation, map_sub, adjoint_comp, + adjoint_adjoint, adjoint_one] + +theorem complexify_productSourceCovariancePerturbation_isSelfAdjoint : + IsSelfAdjoint (complexify (productSourceCovariancePerturbation hm U W)) := by + change (complexify (productSourceCovariancePerturbation hm U W)).adjoint = _ + rw [complexify_adjoint, (productSourceCovariancePerturbation_isSelfAdjoint hm U W).adjoint_eq] + +theorem inner_productSourceCovariancePerturbation + (x y : WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) : + inner ℝ x (productSourceCovariancePerturbation hm U W y) = + inner ℝ (sourceEmbedding hm U x.fst) (sourceEmbedding hm W y.snd) + + inner ℝ (sourceEmbedding hm W x.snd) (sourceEmbedding hm U y.fst) := by + rw [productSourceCovariancePerturbation, _root_.sub_apply, inner_sub_right, + one_apply_eq_self, ContinuousLinearMap.comp_apply, adjoint_inner_right, + ← (sourceEmbedding hm (U ∪ W)).inner_map_map, + sourceEmbedding_productSourceSum, sourceEmbedding_productSourceSum, + inner_add_left, inner_add_right, inner_add_right, + (sourceEmbedding hm U).inner_map_map, (sourceEmbedding hm W).inner_map_map, + WithLp.prod_inner_apply] + dsimp only [WithLp.fst, WithLp.snd] + ring + +variable (S : Submodule ℝ TimeZeroSource) + {ι : Type*} [Fintype ι] [DecidableEq ι] + (b : Module.Basis ι ℝ (FiniteSourceSpace hm S)) + (L R : Submodule ℝ (ι → ℝ)) (hLR : IsCompl L R) + (hLA : ∀ x ∈ L, finiteSourceCoordinates hm S b x ∈ localizedTimeZeroSources U) + (hRB : ∀ x ∈ R, finiteSourceCoordinates hm S b x ∈ localizedTimeZeroSources W) + +theorem productSourceSum_finiteFamily_physical (i : ι) : + sourceEmbedding hm (U ∪ W) + (productSourceSum hm U W (finiteProductSourceFamily hm S b L R hLR hLA hRB i)) = + timeZeroL2 hm (finiteSourceCoordinates hm S b (Pi.single i 1)) := by + rw [sourceEmbedding_productSourceSum] + change sourceEmbedding hm U (projectedFiniteSourceTest hm S b L R hLR hLA i : SourceHilbert hm + U) + + sourceEmbedding hm W (projectedFiniteSourceTest hm S b R L hLR.symm hRB i : SourceHilbert hm + W) = _ + rw [sourceEmbedding_coe, sourceEmbedding_coe] + change timeZeroL2 hm (finiteSourceCoordinates hm S b (L.projection R hLR (Pi.single i 1))) + + timeZeroL2 hm (finiteSourceCoordinates hm S b (R.projection L hLR.symm (Pi.single i 1))) = _ + rw [← timeZeroL2_add, ← map_add] + congr 2 + exact DFunLike.congr_fun (Submodule.projection_add_projection_eq_id hLR) (Pi.single i 1) + +theorem productSourceSum_finiteFamily_gram : + realFamilyGram (fun i => productSourceSum hm U W + (finiteProductSourceFamily hm S b L R hLR hLA hRB i)) = + finiteSourceCovarianceMatrix hm S b := by + have hreal (u v : TimeZeroSource) : + inner ℝ (timeZeroL2 hm u) (timeZeroL2 hm v) = timeZeroFourierCovariance m u v := by + have hre : inner ℝ (timeZeroL2 hm u) (timeZeroL2 hm v) = + (inner ℂ (timeZeroL2 hm u) (timeZeroL2 hm v)).re := by + rw [MeasureTheory.L2.inner_def, MeasureTheory.L2.inner_def] + calc + _ = ∫ p, RCLike.re (inner ℂ ((timeZeroL2 hm u) p) ((timeZeroL2 hm v) p)) + ∂oneParticleMeasure m := by + apply MeasureTheory.integral_congr_ae + exact Filter.Eventually.of_forall fun p => by + simp only [Complex.inner, RCLike.inner_apply] + rfl + _ = _ := integral_re + (MeasureTheory.L2.integrable_inner (𝕜 := ℂ) (timeZeroL2 hm u) (timeZeroL2 hm v)) + rw [hre, inner_timeZeroL2_gram] + simp [Complex.mul_re] + ext i j + change inner ℝ + (productSourceSum hm U W (finiteProductSourceFamily hm S b L R hLR hLA hRB i)) + (productSourceSum hm U W (finiteProductSourceFamily hm S b L R hLR hLA hRB j)) = _ + rw [← (sourceEmbedding hm (U ∪ W)).inner_map_map, + productSourceSum_finiteFamily_physical, productSourceSum_finiteFamily_physical, + hreal, finiteSourceCoordinates_covariance] + simp only [single_one_dotProduct, Matrix.mulVec_single_one, Matrix.col_apply] + +theorem finiteProductSourceFamily_covariance_perturbation_form : + realFamilyForm (finiteProductSourceFamily hm S b L R hLR hLA hRB) + (productSourceCovariancePerturbation hm U W) = + finiteSourceCovarianceMatrix hm S b - + labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm S b) L R hLR := by + ext i j + change inner ℝ (finiteProductSourceFamily hm S b L R hLR hLA hRB i) + (((productSourceSum hm U W).adjoint.comp (productSourceSum hm U W) - 1) + (finiteProductSourceFamily hm S b L R hLR hLA hRB j)) = _ + rw [_root_.sub_apply, inner_sub_right, ContinuousLinearMap.comp_apply, adjoint_inner_right, + one_apply_eq_self] + change realFamilyGram (fun i => productSourceSum hm U W + (finiteProductSourceFamily hm S b L R hLR hLA hRB i)) i j - + realFamilyGram (finiteProductSourceFamily hm S b L R hLR hLA hRB) i j = _ + rw [productSourceSum_finiteFamily_gram, finiteProductSourceFamily_gram]; rfl + +/-- The desired finite perturbation is a proved compression of the actual +full product Gram difference, prior to any reserve estimate. -/ +theorem finiteProductSourceCompression_covariance_perturbation : + compression (finiteProductSourceCompressionIsometry hm S b L R hLR hLA hRB) + (complexify (productSourceCovariancePerturbation hm U W)) = + realMatrixOperator (relativeCovariancePerturbation + (labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm S b) L R hLR) + (finiteSourceCovarianceMatrix hm S b - + labelDecorrelatedCovariance (finiteSourceCovarianceMatrix hm S b) L R hLR)) := by + have h := compression_whitened_complexify + (finiteProductSourceFamily hm S b L R hLR hLA hRB) + (finiteProductSourceFamily_linearIndependent hm S b L R hLR hLA hRB) + (productSourceCovariancePerturbation hm U W) + rw [finiteProductSourceFamily_gram, finiteProductSourceFamily_covariance_perturbation_form] at h + exact h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ProductSourceNuclearSeries.lean b/LeanPool/VacuumBellSeparation/FreeField/ProductSourceNuclearSeries.lean new file mode 100644 index 0000000000..d987794cca --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ProductSourceNuclearSeries.lean @@ -0,0 +1,98 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ProductSourceReserveTransport +public import LeanPool.VacuumBellSeparation.FreeField.ProductSourceCovariancePerturbation +public import LeanPool.VacuumBellSeparation.Gaussian.CrossRankOneSeries +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryNuclearTrace + +/-! +# Actual full-source reserve factors from regional cross-kernel series + +An actual expansion of the original cross covariance, together with +summable weighted regional vectors, constructs the bounded compact factor +on the source space used by finite compression. Both operator and nuclear +bounds refer to that same factor. The weighted moment and Fourier-kernel +estimates supplying these vectors are proved in other modules for regions in two +separated balls (`exists_spatial_source_reserve_estimate` in +`FreeField/SpatialSourceReserveEstimate.lean`). +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian +open scoped ENNReal + +variable {m : ℝ} (hm : 0 < m) (U W : Set (EuclideanSpace ℝ (Fin 3))) + {ι : Type*} + +theorem exists_productSource_reserve_factor_of_cross_series + {b : ℝ} (hb : 0 ≤ b) + (u : ι → ComplexSourceHilbert hm U) (v : ι → ComplexSourceHilbert hm W) + (hs : Summable fun i => ‖u i‖ * ‖v i‖) + (hseries : HasSum + (fun i => crossRankOne ((sourceReserve hm U ^ b) (u i)) ((sourceReserve hm W ^ b) (v i))) + ((productSourceComplexEquiv hm U W).conjStarAlgEquiv + (complexify (productSourceCovariancePerturbation hm U W)))) : + ∃ Y : HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) →L[ℂ] + HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)), + complexify (productSourceCovariancePerturbation hm U W) = + reserve (normalizedCommutation (complexify (productSourceCommutation hm (UA := U) + (UB := W)))) ^ b * + Y * reserve (normalizedCommutation (complexify (productSourceCommutation hm (UA := U) + (UB := W)))) ^ b ∧ + IsCompactOperator Y ∧ IsSelfAdjoint Y ∧ + ‖Y‖ ≤ ∑' i, ‖u i‖ * ‖v i‖ ∧ + operatorTraceNorm Y ≤ ENNReal.ofReal (2 * ∑' i, ‖u i‖ * ‖v i‖) ∧ + operatorTraceNorm Y < ∞ := by + let e := productSourceComplexEquiv hm U W + let X := ∑' i, crossRankOne (u i) (v i) + let R := complexHilbertProductOperator (sourceReserve hm U ^ b) (sourceReserve hm W ^ b) + let Y := e.symm.conjStarAlgEquiv X + have hn := summable_norm_crossRankOne hs + have hXc : IsCompactOperator X := + isCompactOperator_tsum_of_summable (fun i => crossRankOne_isCompactOperator _ _) hn.of_norm + have hXa : IsSelfAdjoint X := isSelfAdjoint_tsum fun i => crossRankOne_isSelfAdjoint _ _ + have hterm (i : ι) : R * crossRankOne (u i) (v i) * R = + crossRankOne ((sourceReserve hm U ^ b) (u i)) ((sourceReserve hm W ^ b) (v i)) := + crossRankOne_block_factorization CFC.rpow_nonneg.isSelfAdjoint CFC.rpow_nonneg.isSelfAdjoint _ _ + have hsum : HasSum + (fun i => crossRankOne ((sourceReserve hm U ^ b) (u i)) ((sourceReserve hm W ^ b) (v i))) + (R * X * R) := by + simpa only [hterm] using (hn.of_norm.hasSum.mul_left R).mul_right R + have hD := hseries.unique hsum + have hYn : ‖Y‖ ≤ ∑' i, ‖u i‖ * ‖v i‖ := by + dsimp only [Y] + rw [norm_conjStarAlgEquiv] + exact norm_crossRankOne_tsum_le hs + have hYt : operatorTraceNorm Y ≤ ENNReal.ofReal (2 * ∑' i, ‖u i‖ * ‖v i‖) := by + dsimp only [Y] + rw [operatorTraceNorm_conjStarAlgEquiv] + exact operatorTraceNorm_crossRankOne_tsum_le hs + refine ⟨Y, ?_, isCompactOperator_conjStarAlgEquiv e.symm hXc, + isSelfAdjoint_conjStarAlgEquiv e.symm hXa, hYn, hYt, hYt.trans_lt ENNReal.ofReal_lt_top⟩ + apply e.conjStarAlgEquiv.injective + rw [map_mul, map_mul] + change e.conjStarAlgEquiv (complexify (productSourceCovariancePerturbation hm U W)) = + e.conjStarAlgEquiv + (reserve (normalizedCommutation (complexify (productSourceCommutation hm (UA := U) + (UB := W)))) ^ b) * + e.conjStarAlgEquiv (e.symm.conjStarAlgEquiv X) * + e.conjStarAlgEquiv + (reserve (normalizedCommutation (complexify (productSourceCommutation hm (UA := U) + (UB := W)))) ^ b) + rw [← LinearIsometryEquiv.symm_conjStarAlgEquiv, StarAlgEquiv.apply_symm_apply] + dsimp only [e] + simp only [productSourceComplexEquiv_reserve_rpow hm U W hb] + exact hD + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ProductSourceReserveTransport.lean b/LeanPool/VacuumBellSeparation/FreeField/ProductSourceReserveTransport.lean new file mode 100644 index 0000000000..81e64ef06d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ProductSourceReserveTransport.lean @@ -0,0 +1,106 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FinitePairSourceCompression +public import LeanPool.VacuumBellSeparation.FreeField.SourceReserve +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertProductFunctionalCalculus + +/-! +# Separate regional reserves in the actual product-source coordinates + +The full source compression uses the complexification of a real Hilbert +product. The explicit coordinate unitary identifies its commutation +operator and reserve powers with the blocks of the original regional +source operators. This is valid at a zero spectral endpoint and assumes +no bounded inverse of a reserve. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap + +variable {m : ℝ} (hm : 0 < m) (U W : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Product source complex equivalence defined as `complexificationProductEquiv`. -/ +def productSourceComplexEquiv : + HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) ≃ₗᵢ[ℂ] + WithLp 2 (ComplexSourceHilbert hm U × ComplexSourceHilbert hm W) := + complexificationProductEquiv + +theorem productSourceComplexEquiv_commutation : + (productSourceComplexEquiv hm U W).conjStarAlgEquiv + (complexify (productSourceCommutation hm (UA := U) (UB := W))) = + complexHilbertProductOperator (complexSourceCommutation hm U) + (complexSourceCommutation hm W) := + complexificationProductEquiv_conjugate (sourceCommutation hm U) (sourceCommutation hm W) + +theorem productSourceComplexEquiv_normalized_commutation : + (productSourceComplexEquiv hm U W).conjStarAlgEquiv + (normalizedCommutation (complexify (productSourceCommutation hm (UA := U) (UB := W)))) = + complexHilbertProductOperator (normalizedCommutation (complexSourceCommutation hm U)) + (normalizedCommutation (complexSourceCommutation hm W)) := by + have hs := (productSourceComplexEquiv hm U W).conjStarAlgEquiv.toAlgEquiv.toLinearEquiv.map_smul + (Complex.I / 2) (complexify (productSourceCommutation hm (UA := U) (UB := W))) + change (productSourceComplexEquiv hm U W).conjStarAlgEquiv + ((Complex.I / 2) • complexify (productSourceCommutation hm (UA := U) (UB := W))) = + (Complex.I / 2) • (productSourceComplexEquiv hm U W).conjStarAlgEquiv + (complexify (productSourceCommutation hm (UA := U) (UB := W))) at hs + rw [normalizedCommutation, hs, productSourceComplexEquiv_commutation] + ext z + rfl + +theorem productSourceComplexEquiv_reserve : + (productSourceComplexEquiv hm U W).conjStarAlgEquiv + (reserve (normalizedCommutation (complexify (productSourceCommutation hm (UA := U) + (UB := W))))) = + complexHilbertProductOperator (sourceReserve hm U) (sourceReserve hm W) := by + let B := normalizedCommutation (complexify (productSourceCommutation hm (UA := U) (UB := W))) + have hB : IsSelfAdjoint B := productSource_normalizedCommutation_isSelfAdjoint hm + have hn : ‖B‖ ≤ 1 := productSource_normalizedCommutation_norm_le_one hm + have hmap : (productSourceComplexEquiv hm U W).conjStarAlgEquiv (reserve B) = + reserve ((productSourceComplexEquiv hm U W).conjStarAlgEquiv B) := by + rw [reserve, CFC.sqrt_eq_rpow, + conjStarAlgEquiv_rpow _ (reserveSquare_nonneg hB hn) (by norm_num : (0 : ℝ) ≤ 1 / 2), + reserveSquare, map_sub, map_one, map_pow] + rw [reserve, CFC.sqrt_eq_rpow] + rfl + change (productSourceComplexEquiv hm U W).conjStarAlgEquiv (reserve B) = _ + rw [hmap] + dsimp only [B] + rw [productSourceComplexEquiv_normalized_commutation, + complexHilbertProductOperator_reserve + (normalizedCommutation_isSelfAdjoint (complexSourceCommutation_mem_skewAdjoint hm U)) + (norm_normalizedCommutation_le_one (norm_complexSourceCommutation_le_two hm U)) + (normalizedCommutation_isSelfAdjoint (complexSourceCommutation_mem_skewAdjoint hm W)) + (norm_normalizedCommutation_le_one (norm_complexSourceCommutation_le_two hm W)), + ← sourceReserve_eq_normalized_reserve, ← sourceReserve_eq_normalized_reserve] + +theorem productSourceComplexEquiv_reserve_rpow {b : ℝ} (hb : 0 ≤ b) : + (productSourceComplexEquiv hm U W).conjStarAlgEquiv + (reserve (normalizedCommutation (complexify (productSourceCommutation hm (UA := U) + (UB := W)))) ^ b) = + complexHilbertProductOperator (sourceReserve hm U ^ b) (sourceReserve hm W ^ b) := by + let B : HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) →L[ℂ] + HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) := + normalizedCommutation (complexify (productSourceCommutation hm (UA := U) (UB := W))) + have hR : 0 ≤ reserve B := CFC.sqrt_nonneg (reserveSquare B) + have hp := conjStarAlgEquiv_rpow (productSourceComplexEquiv hm U W) + (A := reserve B) (τ := b) hR hb + change (productSourceComplexEquiv hm U W).conjStarAlgEquiv (reserve B ^ b) = _ + rw [hp] + dsimp only [B] + rw [productSourceComplexEquiv_reserve] + exact complexHilbertProductOperator_rpow + (A := sourceReserve hm U) (B := sourceReserve hm W) (p := b) + (sourceReserve_nonneg hm U) (sourceReserve_nonneg hm W) hb + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RapidityBoostFourier.lean b/LeanPool/VacuumBellSeparation/FreeField/RapidityBoostFourier.lean new file mode 100644 index 0000000000..5d0ab44929 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RapidityBoostFourier.lean @@ -0,0 +1,100 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RapidityTranslation +public import LeanPool.VacuumBellSeparation.FreeField.LpMultiplication + +/-! +# Exact Fourier diagonalization of the physical boost group + +The pinned normalized Fourier transform has kernel exp(-2πi x·ξ). +Translation by negative rapidity therefore has multiplier +exp(-2πi η ξ₁). The identity is extended from actual Schwartz functions +to the complete physical one-particle space by density and boundedness. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory SchwartzMap FourierTransform +open scoped SchwartzMap FourierTransform InnerProductSpace ENNReal + +/-- Rapidity boost phase given by `Complex.exp ((-2 * Real.pi * η * ⟪e₁, ξ⟫_ℝ : ℝ) * Complex.I)`. -/ +noncomputable def rapidityBoostPhase (η : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : ℂ := + Complex.exp ((-2 * Real.pi * η * ⟪e₁, ξ⟫_ℝ : ℝ) * Complex.I) + +theorem measurable_rapidityBoostPhase (η : ℝ) : Measurable (rapidityBoostPhase η) := by + unfold rapidityBoostPhase + fun_prop + +theorem norm_rapidityBoostPhase (η : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : + ‖rapidityBoostPhase η ξ‖ = 1 := by + rw [rapidityBoostPhase, Complex.norm_exp] + simp + +theorem memLp_rapidityBoostPhase (η : ℝ) : MemLp (rapidityBoostPhase η) ⊤ rapidityMeasure := + memLp_top_of_bound (measurable_rapidityBoostPhase η).aestronglyMeasurable 1 + (Filter.Eventually.of_forall fun ξ => (norm_rapidityBoostPhase η ξ).le) + +/-- Continuous linear map for the rapidity boost multiplier, of type `RapidityL2 →L[ℂ] +RapidityL2`. -/ +noncomputable def rapidityBoostMultiplier (η : ℝ) : RapidityL2 →L[ℂ] RapidityL2 := + lpMultiplication rapidityMeasure (rapidityBoostPhase η) (memLp_rapidityBoostPhase η) + +theorem fourier_compSubConst_rapidity (η : ℝ) + (f : 𝓢(EuclideanSpace ℝ (Fin 3), ℂ)) (ξ : EuclideanSpace ℝ (Fin 3)) : + 𝓕 (f.compSubConstCLM ℂ (η • e₁)) ξ = rapidityBoostPhase η ξ * 𝓕 f ξ := by + have hf : (f.compSubConstCLM ℂ (η • e₁) : EuclideanSpace ℝ (Fin 3) → ℂ) = + (f : EuclideanSpace ℝ (Fin 3) → ℂ) ∘ (fun x => x + -(η • e₁)) := by + funext x + simp only [compSubConstCLM_apply, Function.comp_apply, sub_eq_add_neg] + have h := congrFun (VectorFourier.fourierIntegral_comp_add_right Real.fourierChar volume + (innerₗ (EuclideanSpace ℝ (Fin 3))) (f : EuclideanSpace ℝ (Fin 3) → ℂ) (-(η • e₁))) ξ + rw [← hf] at h + change 𝓕 (f.compSubConstCLM ℂ (η • e₁)) ξ = + Real.fourierChar ⟪-(η • e₁), ξ⟫_ℝ • 𝓕 f ξ at h + rw [inner_neg_left, real_inner_smul_left, Circle.smul_def, Real.fourierChar_apply, + smul_eq_mul] at h + have he : 2 * Real.pi * -(η * ⟪e₁, ξ⟫_ℝ) = -2 * Real.pi * η * ⟪e₁, ξ⟫_ℝ := by ring + simpa only [he, rapidityBoostPhase] using h + +theorem rapidityFourier_translation_toLp (η : ℝ) + (f : 𝓢(EuclideanSpace ℝ (Fin 3), ℂ)) : + rapidityFourier (rapidityTranslation η (f.toLp 2 rapidityMeasure)) = + rapidityBoostMultiplier η (rapidityFourier (f.toLp 2 rapidityMeasure)) := by + rw [rapidityTranslation_toLp, rapidityFourier_toLp, rapidityFourier_toLp, + rapidityBoostMultiplier] + apply Lp.ext + filter_upwards [(𝓕 (f.compSubConstCLM ℂ (η • e₁))).coeFn_toLp 2 rapidityMeasure, + lpMultiplication_ae rapidityMeasure (rapidityBoostPhase η) (memLp_rapidityBoostPhase η) + ((𝓕 f).toLp 2 rapidityMeasure), (𝓕 f).coeFn_toLp 2 rapidityMeasure] + with ξ hf hm hbase + rw [hf, hm, hbase, fourier_compSubConst_rapidity] + +theorem rapidityFourier_translation (η : ℝ) (f : RapidityL2) : + rapidityFourier (rapidityTranslation η f) = + rapidityBoostMultiplier η (rapidityFourier f) := by + have hd : DenseRange (fun g : 𝓢(EuclideanSpace ℝ (Fin 3), ℂ) => + g.toLp 2 rapidityMeasure) := denseRange_toLpCLM ENNReal.ofNat_ne_top + refine hd.induction_on (p := fun g => rapidityFourier (rapidityTranslation η g) = + rapidityBoostMultiplier η (rapidityFourier g)) f ?_ ?_ + · exact isClosed_eq (rapidityFourier.continuous.comp (rapidityTranslation η).continuous) + ((rapidityBoostMultiplier η).continuous.comp rapidityFourier.continuous) + · exact rapidityFourier_translation_toLp η + +/-- The full physical boost group with the exact Fourier normalization. -/ +theorem oneParticleRapidityFourier_boost {m : ℝ} (hm : 0 < m) (η : ℝ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + oneParticleRapidityFourier hm (oneParticleBoost hm η ψ) = + rapidityBoostMultiplier η (oneParticleRapidityFourier hm ψ) := by + change rapidityFourier (rapidityUnitary hm (oneParticleBoost hm η ψ)) = + rapidityBoostMultiplier η (rapidityFourier (rapidityUnitary hm ψ)) + rw [rapidityUnitary_boost, rapidityFourier_translation] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RapidityCoordinates.lean b/LeanPool/VacuumBellSeparation/FreeField/RapidityCoordinates.lean new file mode 100644 index 0000000000..c5a0b5ccd1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RapidityCoordinates.lean @@ -0,0 +1,158 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Lorentz +public import Mathlib.Analysis.SpecialFunctions.Arsinh + +/-! +# Actual rapidity coordinates on the massive three-dimensional shell + +The first coordinate is rapidity and the remaining two are unchanged transverse +momenta. This is a homeomorphism of the original Euclidean momentum space, not +a restriction to a longitudinal slice. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +/-- Transverse mass given by `Real.sqrt (m ^ 2 + (x 1) ^ 2 + (x 2) ^ 2)`. -/ +noncomputable def transverseMass (m : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : ℝ := + Real.sqrt (m ^ 2 + (x 1) ^ 2 + (x 2) ^ 2) + +theorem transverseMass_pos {m : ℝ} (hm : 0 < m) (x : EuclideanSpace ℝ (Fin 3)) : + 0 < transverseMass m x := by + apply Real.sqrt_pos.mpr + positivity + +theorem transverseMass_sq (m : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + transverseMass m x ^ 2 = m ^ 2 + (x 1) ^ 2 + (x 2) ^ 2 := by + exact Real.sq_sqrt (by positivity) + +/-- Rapidity momentum given by `!₂[transverseMass m x * Real.sinh (x 0), x 1, x 2]`. -/ +noncomputable def rapidityMomentum (m : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + EuclideanSpace ℝ (Fin 3) := + !₂[transverseMass m x * Real.sinh (x 0), x 1, x 2] + +/-- Momentum rapidity given by `!₂[Real.arsinh (p 0 / transverseMass m p), p 1, p 2]`. -/ +noncomputable def momentumRapidity (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + EuclideanSpace ℝ (Fin 3) := + !₂[Real.arsinh (p 0 / transverseMass m p), p 1, p 2] + +@[simp] theorem transverseMass_rapidityMomentum (m : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + transverseMass m (rapidityMomentum m x) = transverseMass m x := rfl + +@[simp] theorem transverseMass_momentumRapidity (m : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + transverseMass m (momentumRapidity m x) = transverseMass m x := rfl + +theorem momentumRapidity_rapidityMomentum {m : ℝ} (hm : 0 < m) + (x : EuclideanSpace ℝ (Fin 3)) : momentumRapidity m (rapidityMomentum m x) = x := by + have hM := (transverseMass_pos hm x).ne' + ext i + fin_cases i + · change Real.arsinh ((transverseMass m x * Real.sinh (x 0)) / transverseMass m x) = x 0 + rw [mul_div_cancel_left₀ _ hM, Real.arsinh_sinh] + · rfl + · rfl + +theorem rapidityMomentum_momentumRapidity {m : ℝ} (hm : 0 < m) + (p : EuclideanSpace ℝ (Fin 3)) : rapidityMomentum m (momentumRapidity m p) = p := by + have hM := (transverseMass_pos hm p).ne' + ext i + fin_cases i + · change transverseMass m p * Real.sinh (Real.arsinh (p 0 / transverseMass m p)) = p 0 + rw [Real.sinh_arsinh, mul_div_cancel₀ _ hM] + · rfl + · rfl + +@[fun_prop] theorem continuous_transverseMass (m : ℝ) : Continuous (transverseMass m) := by + unfold transverseMass + fun_prop + +@[fun_prop] theorem continuous_rapidityMomentum (m : ℝ) : Continuous (rapidityMomentum m) := by + unfold rapidityMomentum + fun_prop + +@[fun_prop] theorem continuous_momentumRapidity {m : ℝ} (hm : 0 < m) : + Continuous (momentumRapidity m) := by + have hM : ∀ x, transverseMass m x ≠ 0 := fun x => (transverseMass_pos hm x).ne' + have hcoord : Continuous (fun p : EuclideanSpace ℝ (Fin 3) => p 0 / transverseMass m p) := + (by fun_prop : Continuous (fun p : EuclideanSpace ℝ (Fin 3) => p 0)).div + (continuous_transverseMass m) hM + change Continuous (fun p : EuclideanSpace ℝ (Fin 3) => WithLp.toLp 2 + ![Real.arsinh (p 0 / transverseMass m p), p 1, p 2]) + have hv : Continuous (fun p : EuclideanSpace ℝ (Fin 3) => + (![Real.arsinh (p 0 / transverseMass m p), p 1, p 2] : Fin 3 → ℝ)) := by + apply continuous_pi + intro i + fin_cases i + · change Continuous (fun p : EuclideanSpace ℝ (Fin 3) => + Real.arsinh (p 0 / transverseMass m p)) + exact Real.continuous_arsinh.comp hcoord + · change Continuous (fun p : EuclideanSpace ℝ (Fin 3) => p 1) + exact (continuous_apply 1).comp (PiLp.continuous_ofLp 2 _) + · change Continuous (fun p : EuclideanSpace ℝ (Fin 3) => p 2) + exact (continuous_apply 2).comp (PiLp.continuous_ofLp 2 _) + exact (PiLp.continuous_toLp 2 (fun _ : Fin 3 => ℝ)).comp hv + +/-- The full massive shell parametrization, retaining both transverse momenta. -/ +noncomputable def rapidityHomeomorph {m : ℝ} (hm : 0 < m) : + EuclideanSpace ℝ (Fin 3) ≃ₜ EuclideanSpace ℝ (Fin 3) where + toFun := rapidityMomentum m + invFun := momentumRapidity m + left_inv := momentumRapidity_rapidityMomentum hm + right_inv := rapidityMomentum_momentumRapidity hm + continuous_toFun := continuous_rapidityMomentum m + continuous_invFun := continuous_momentumRapidity hm + +theorem dispersion_rapidityMomentum {m : ℝ} (hm : 0 < m) + (x : EuclideanSpace ℝ (Fin 3)) : + dispersion m (rapidityMomentum m x) = transverseMass m x * Real.cosh (x 0) := by + have hsq := dispersion_sq m (rapidityMomentum m x) + rw [EuclideanSpace.real_norm_sq_eq, Fin.sum_univ_three] at hsq + change dispersion m (rapidityMomentum m x) ^ 2 = + m ^ 2 + ((transverseMass m x * Real.sinh (x 0)) ^ 2 + (x 1) ^ 2 + (x 2) ^ 2) at hsq + have hM := transverseMass_sq m x + have hch := Real.cosh_sq_sub_sinh_sq (x 0) + have hnonneg := (dispersion_pos hm.ne' (rapidityMomentum m x)).le + have hright := mul_pos (transverseMass_pos hm x) (Real.cosh_pos (x 0)) + have hmult := congrArg (fun t : ℝ => transverseMass m x ^ 2 * t) hch + have heq : dispersion m (rapidityMomentum m x) ^ 2 = + (transverseMass m x * Real.cosh (x 0)) ^ 2 := by nlinarith + nlinarith + +/-- Rapidity translate given by `!₂[x 0 + η, x 1, x 2]`. -/ +noncomputable def rapidityTranslate (η : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + EuclideanSpace ℝ (Fin 3) := !₂[x 0 + η, x 1, x 2] + +@[simp] theorem transverseMass_rapidityTranslate (m η : ℝ) + (x : EuclideanSpace ℝ (Fin 3)) : + transverseMass m (rapidityTranslate η x) = transverseMass m x := rfl + +/-- The physical shell boost is literal translation of the rapidity coordinate. -/ +theorem shellBoost_rapidityMomentum {m : ℝ} (hm : 0 < m) (η : ℝ) + (x : EuclideanSpace ℝ (Fin 3)) : + shellBoost m η (rapidityMomentum m x) = rapidityMomentum m (rapidityTranslate η x) := by + have he (p : EuclideanSpace ℝ (Fin 3)) : ⟪e₁, p⟫_ℝ = p 0 := by + simp [e₁, EuclideanSpace.inner_single_left] + rw [shellBoost, he, dispersion_rapidityMomentum hm] + ext i + fin_cases i <;> simp [rapidityMomentum, rapidityTranslate, transverseMass, e₁, + Real.sinh_add]; ring + +theorem momentumRapidity_shellBoost {m : ℝ} (hm : 0 < m) (η : ℝ) + (p : EuclideanSpace ℝ (Fin 3)) : + momentumRapidity m (shellBoost m η p) = rapidityTranslate η (momentumRapidity m p) := by + calc + _ = momentumRapidity m (shellBoost m η (rapidityMomentum m (momentumRapidity m p))) := by + rw [rapidityMomentum_momentumRapidity hm] + _ = _ := by rw [shellBoost_rapidityMomentum hm, momentumRapidity_rapidityMomentum hm] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RapidityFourier.lean b/LeanPool/VacuumBellSeparation/FreeField/RapidityFourier.lean new file mode 100644 index 0000000000..17c0662549 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RapidityFourier.lean @@ -0,0 +1,61 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RapidityHilbertTransport +public import Mathlib.Analysis.Fourier.LpSpace + +/-! +# The normalized Fourier transform on the actual rapidity Hilbert space + +Both Hilbert norms use the same constant multiple of Lebesgue measure. +The pointwise Fourier transform is the pinned normalized Lebesgue Fourier +transform; Plancherel therefore extends it to a unitary on this weighted +Hilbert space without changing its 2π convention. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory SchwartzMap FourierTransform +open scoped FourierTransform ENNReal SchwartzMap + +instance rapidityMeasure_hasTemperateGrowth : rapidityMeasure.HasTemperateGrowth := by + obtain ⟨n, hn⟩ := (inferInstance : + (volume : Measure (EuclideanSpace ℝ (Fin 3))).HasTemperateGrowth).exists_integrable + exact ⟨⟨n, hn.smul_measure (by simp [rapidityDensity])⟩⟩ + +instance rapidityMeasure_isFiniteMeasureOnCompacts : IsFiniteMeasureOnCompacts rapidityMeasure := + IsFiniteMeasureOnCompacts.smul volume (by simp [rapidityDensity]) + +theorem norm_fourier_toRapidityL2 (f : 𝓢(EuclideanSpace ℝ (Fin 3), ℂ)) : + ‖(𝓕 f).toLp 2 rapidityMeasure‖ = ‖f.toLp 2 rapidityMeasure‖ := by + rw [SchwartzMap.norm_toLp' (by norm_num : (2 : ℝ≥0∞) ≠ 0) + (by norm_num : (2 : ℝ≥0∞) ≠ ⊤), + SchwartzMap.norm_toLp' (by norm_num : (2 : ℝ≥0∞) ≠ 0) + (by norm_num : (2 : ℝ≥0∞) ≠ ⊤)] + norm_num [Real.rpow_two, rapidityMeasure, integral_smul_measure, + SchwartzMap.integral_norm_sq_fourier] + +/-- The actual normalized Fourier transform, extended from dense Schwartz vectors. -/ +noncomputable def rapidityFourier : RapidityL2 ≃ₗᵢ[ℂ] RapidityL2 := + (fourierEquiv ℂ 𝓢(EuclideanSpace ℝ (Fin 3), ℂ)).extendOfIsometry + (toLpCLM ℂ ℂ 2 rapidityMeasure) (toLpCLM ℂ ℂ 2 rapidityMeasure) + (denseRange_toLpCLM ENNReal.ofNat_ne_top) (denseRange_toLpCLM ENNReal.ofNat_ne_top) + norm_fourier_toRapidityL2 + +theorem rapidityFourier_toLp (f : 𝓢(EuclideanSpace ℝ (Fin 3), ℂ)) : + rapidityFourier (f.toLp 2 rapidityMeasure) = (𝓕 f).toLp 2 rapidityMeasure := + LinearEquiv.extendOfIsometry_eq _ _ _ _ _ _ f + +/-- Full physical mass-shell transport followed by the actual Fourier unitary. -/ +noncomputable def oneParticleRapidityFourier {m : ℝ} (hm : 0 < m) : + Lp ℂ 2 (oneParticleMeasure m) ≃ₗᵢ[ℂ] RapidityL2 := + (rapidityUnitary hm).trans rapidityFourier + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RapidityFrequencyCutoff.lean b/LeanPool/VacuumBellSeparation/FreeField/RapidityFrequencyCutoff.lean new file mode 100644 index 0000000000..3483f1c363 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RapidityFrequencyCutoff.lean @@ -0,0 +1,152 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.L2BoundedExponential +public import LeanPool.VacuumBellSeparation.FreeField.RapidityBoostFourier + +/-! +# Actual bounded frequency cutoffs and their entire rapidity evolution + +The cutoff only restricts the first rapidity Fourier coordinate; the two +transverse directions and the physical scaled measure are unchanged. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter +open scoped ENNReal InnerProductSpace + +/-- Rapidity frequency cutoff. -/ +noncomputable def rapidityFrequencyCutoff (N : ℕ) (ξ : EuclideanSpace ℝ (Fin 3)) : ℂ := by + classical + exact if |⟪e₁, ξ⟫_ℝ| ≤ N then 1 else 0 + +/-- Rapidity bounded frequency. -/ +noncomputable def rapidityBoundedFrequency (N : ℕ) (ξ : EuclideanSpace ℝ (Fin 3)) : ℂ := by + classical + exact if |⟪e₁, ξ⟫_ℝ| ≤ N then (2 * Real.pi * ⟪e₁, ξ⟫_ℝ : ℝ) * Complex.I else 0 + +theorem measurable_rapidityFrequencyCutoff (N : ℕ) : Measurable (rapidityFrequencyCutoff N) := by + unfold rapidityFrequencyCutoff + exact Measurable.ite (measurableSet_le (continuous_const.inner continuous_id).abs.measurable + measurable_const) measurable_const measurable_const + +theorem measurable_rapidityBoundedFrequency (N : ℕ) : Measurable (rapidityBoundedFrequency N) := by + unfold rapidityBoundedFrequency + apply Measurable.ite (measurableSet_le (continuous_const.inner continuous_id).abs.measurable + measurable_const) _ measurable_const + fun_prop + +theorem norm_rapidityFrequencyCutoff_le (N : ℕ) (ξ : EuclideanSpace ℝ (Fin 3)) : + ‖rapidityFrequencyCutoff N ξ‖ ≤ 1 := by + classical + unfold rapidityFrequencyCutoff + split_ifs <;> simp + +theorem norm_rapidityBoundedFrequency_le (N : ℕ) (ξ : EuclideanSpace ℝ (Fin 3)) : + ‖rapidityBoundedFrequency N ξ‖ ≤ 2 * Real.pi * N := by + classical + unfold rapidityBoundedFrequency + split_ifs with h + · simp only [norm_mul, Complex.norm_real, Real.norm_eq_abs, Complex.norm_I, mul_one, + abs_of_pos (show (0 : ℝ) < 2 by norm_num), abs_of_pos Real.pi_pos] + exact mul_le_mul_of_nonneg_left h (by positivity) + · simp only [norm_zero] + positivity + +theorem memLp_rapidityFrequencyCutoff (N : ℕ) : + MemLp (rapidityFrequencyCutoff N) ⊤ rapidityMeasure := + memLp_top_of_bound (measurable_rapidityFrequencyCutoff N).aestronglyMeasurable 1 + (Eventually.of_forall (norm_rapidityFrequencyCutoff_le N)) + +/-- Continuous linear map for the rapidity cutoff, of type `RapidityL2 →L[ℂ] RapidityL2`. -/ +noncomputable def rapidityCutoff (N : ℕ) : RapidityL2 →L[ℂ] RapidityL2 := + lpMultiplication rapidityMeasure (rapidityFrequencyCutoff N) (memLp_rapidityFrequencyCutoff N) + +theorem rapidityCutoff_ae (N : ℕ) (f : RapidityL2) : + rapidityCutoff N f =ᵐ[rapidityMeasure] fun ξ => rapidityFrequencyCutoff N ξ * f ξ := + lpMultiplication_ae rapidityMeasure _ _ f + +theorem norm_rapidityCutoff_apply_le (N : ℕ) (f : RapidityL2) : ‖rapidityCutoff N f‖ ≤ ‖f‖ := by + have h := lpMultiplication_norm_le rapidityMeasure (rapidityFrequencyCutoff N) + (memLp_rapidityFrequencyCutoff N) zero_le_one + (Eventually.of_forall (norm_rapidityFrequencyCutoff_le N)) + exact ((rapidityCutoff N).le_opNorm f).trans (by + simpa only [rapidityCutoff, one_mul] using mul_le_mul_of_nonneg_right h (norm_nonneg f)) + +/-- Rapidity cutoff evolution. -/ +noncomputable def rapidityCutoffEvolution (N : ℕ) (f : RapidityL2) (z : ℂ) : RapidityL2 := + l2BoundedExponential rapidityMeasure (rapidityBoundedFrequency N) + (measurable_rapidityBoundedFrequency N) + (norm_rapidityBoundedFrequency_le N) z (rapidityCutoff N f) + +theorem differentiable_rapidityCutoffEvolution (N : ℕ) (f : RapidityL2) : + Differentiable ℂ (rapidityCutoffEvolution N f) := + differentiable_l2BoundedExponential rapidityMeasure (rapidityBoundedFrequency N) + (measurable_rapidityBoundedFrequency N) (by positivity) + (norm_rapidityBoundedFrequency_le N) (rapidityCutoff N f) + +theorem rapidityCutoffEvolution_ae (N : ℕ) (f : RapidityL2) (z : ℂ) : + rapidityCutoffEvolution N f z =ᵐ[rapidityMeasure] fun ξ => + rapidityFrequencyCutoff N ξ * + (Complex.exp (z * ((2 * Real.pi * ⟪e₁, ξ⟫_ℝ : ℝ) * Complex.I)) * f ξ) := by + classical + filter_upwards [l2BoundedExponential_ae rapidityMeasure (rapidityBoundedFrequency N) + (measurable_rapidityBoundedFrequency N) + (norm_rapidityBoundedFrequency_le N) z (rapidityCutoff N f), rapidityCutoff_ae N f] + with ξ he hc + unfold rapidityCutoffEvolution + rw [he, hc] + unfold rapidityFrequencyCutoff rapidityBoundedFrequency + split_ifs <;> simp + +theorem rapidityCutoffEvolution_ofReal (N : ℕ) (f : RapidityL2) (t : ℝ) : + rapidityCutoffEvolution N f t = rapidityCutoff N (rapidityBoostMultiplier (-t) f) := by + apply Lp.ext + filter_upwards [rapidityCutoffEvolution_ae N f t, + rapidityCutoff_ae N (rapidityBoostMultiplier (-t) f), + lpMultiplication_ae rapidityMeasure (rapidityBoostPhase (-t)) (memLp_rapidityBoostPhase (-t)) f] + with ξ he hc hb + rw [he, hc] + change rapidityFrequencyCutoff N ξ * + (Complex.exp ((t : ℂ) * ((2 * Real.pi * ⟪e₁, ξ⟫_ℝ : ℝ) * Complex.I)) * f ξ) = + rapidityFrequencyCutoff N ξ * + (lpMultiplication rapidityMeasure (rapidityBoostPhase (-t)) + (memLp_rapidityBoostPhase (-t)) f) ξ + rw [hb] + congr 2 + unfold rapidityBoostPhase + congr 1 + push_cast + ring + +theorem norm_rapidityCutoffEvolution_le (N : ℕ) (f : RapidityL2) {z : ℂ} + (hz₀ : 0 ≤ z.im) (hzπ : z.im ≤ Real.pi) : + ‖rapidityCutoffEvolution N f z‖ ≤ Real.exp (2 * Real.pi ^ 2 * N) * ‖f‖ := by + apply Lp.norm_le_mul_norm_of_ae_le_mul + filter_upwards [rapidityCutoffEvolution_ae N f z] with ξ hξ + rw [hξ] + by_cases hk : |⟪e₁, ξ⟫_ℝ| ≤ N + · have he : ‖Complex.exp (z * ((2 * Real.pi * ⟪e₁, ξ⟫_ℝ : ℝ) * Complex.I))‖ ≤ + Real.exp (2 * Real.pi ^ 2 * N) := by + rw [Complex.norm_exp] + apply Real.exp_le_exp.mpr + have hl := (abs_le.mp hk).1 + have hu := mul_le_mul_of_nonneg_left (neg_le_neg hl) hz₀ + have hv := mul_le_mul_of_nonneg_right hzπ (Nat.cast_nonneg N) + simp only [Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, + Complex.I_re, Complex.I_im, mul_zero, mul_one, sub_zero, zero_sub] + nlinarith [Real.pi_pos] + simp only [rapidityFrequencyCutoff, ite_eq_left hk, one_mul, norm_mul] + exact mul_le_mul_of_nonneg_right he (norm_nonneg _) + · simp only [rapidityFrequencyCutoff, ite_eq_right hk, zero_mul, norm_zero] + positivity + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RapidityHilbertTransport.lean b/LeanPool/VacuumBellSeparation/FreeField/RapidityHilbertTransport.lean new file mode 100644 index 0000000000..06d531b7c9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RapidityHilbertTransport.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RapidityJacobian +public import LeanPool.VacuumBellSeparation.FreeField.ShellBoostMeasure + +/-! +# Exact Hilbert transport to rapidity coordinates + +The target measure is explicitly [2(2π)^3]⁻¹ times three-dimensional +Lebesgue measure. Thus the unitary is literal pullback, with no omitted +normalizing factor. No statement here identifies the modular operator. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +/-- Rapidity L² with underlying type `Lp ℂ 2 rapidityMeasure`. -/ +noncomputable abbrev RapidityL2 := Lp ℂ 2 rapidityMeasure + +theorem measurePreserving_momentumRapidity {m : ℝ} (hm : 0 < m) : + MeasurePreserving (momentumRapidity m) (oneParticleMeasure m) rapidityMeasure := + MeasurePreserving.symm (rapidityHomeomorph hm).toMeasurableEquiv + (measurePreserving_rapidityMomentum hm) + +/-- Linear isometry for the rapidity pullback, of type `Lp ℂ 2 (oneParticleMeasure m) →ₗᵢ[ℂ] +RapidityL2`. -/ +noncomputable def rapidityPullback {m : ℝ} (hm : 0 < m) : + Lp ℂ 2 (oneParticleMeasure m) →ₗᵢ[ℂ] RapidityL2 := + Lp.compMeasurePreservingₗᵢ ℂ (rapidityMomentum m) (measurePreserving_rapidityMomentum hm) + +/-- Linear isometry for the momentum pullback, of type `RapidityL2 →ₗᵢ[ℂ] Lp ℂ 2 +(oneParticleMeasure m)`. -/ +noncomputable def momentumPullback {m : ℝ} (hm : 0 < m) : + RapidityL2 →ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + Lp.compMeasurePreservingₗᵢ ℂ (momentumRapidity m) (measurePreserving_momentumRapidity hm) + +theorem rapidityPullback_momentumPullback {m : ℝ} (hm : 0 < m) (ψ : RapidityL2) : + rapidityPullback hm (momentumPullback hm ψ) = ψ := by + change Lp.compMeasurePreserving (rapidityMomentum m) _ + (Lp.compMeasurePreserving (momentumRapidity m) _ ψ) = ψ + rw [← Lp.compMeasurePreserving_comp_apply] + have he : momentumRapidity m ∘ rapidityMomentum m = id := + funext (momentumRapidity_rapidityMomentum hm) + simp only [he, Lp.compMeasurePreserving_id_apply] + +/-- The actual full one-particle Hilbert space in rapidity coordinates. -/ +noncomputable def rapidityUnitary {m : ℝ} (hm : 0 < m) : + Lp ℂ 2 (oneParticleMeasure m) ≃ₗᵢ[ℂ] RapidityL2 := + LinearIsometryEquiv.ofSurjective (rapidityPullback hm) + (fun ψ => ⟨momentumPullback hm ψ, rapidityPullback_momentumPullback hm ψ⟩) + +theorem rapidityUnitary_ae {m : ℝ} (hm : 0 < m) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + rapidityUnitary hm ψ =ᵐ[rapidityMeasure] ψ ∘ rapidityMomentum m := + Lp.coeFn_compMeasurePreserving ψ (measurePreserving_rapidityMomentum hm) + +/-- The inverse-label physical boost becomes translation by negative rapidity. -/ +theorem rapidityUnitary_boost_ae {m : ℝ} (hm : 0 < m) (η : ℝ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + rapidityUnitary hm (oneParticleBoost hm η ψ) =ᵐ[rapidityMeasure] + fun x => ψ (rapidityMomentum m (rapidityTranslate (-η) x)) := by + have hcomp := (measurePreserving_rapidityMomentum hm).quasiMeasurePreserving.ae_eq_comp + (oneParticleBoostIsometry_ae hm η ψ) + filter_upwards [rapidityUnitary_ae hm (oneParticleBoost hm η ψ), hcomp] with x hx hx' + rw [hx] + change oneParticleBoostIsometry hm η ψ (rapidityMomentum m x) = _ + dsimp only [Function.comp_apply] at hx' + rw [hx'] + exact congrArg ψ (shellBoost_rapidityMomentum hm (-η) x) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RapidityJacobian.lean b/LeanPool/VacuumBellSeparation/FreeField/RapidityJacobian.lean new file mode 100644 index 0000000000..0be95d9d44 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RapidityJacobian.lean @@ -0,0 +1,133 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RapidityCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.Existence + +/-! +# Jacobian of the genuine massive-shell rapidity coordinates + +The shell density times the positive Jacobian is the constant 1/(2(2π)^3). +Both transverse coordinates remain present throughout. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal InnerProductSpace + +/-- Rapidity coordinate given by `PiLp.proj 2 (fun _ : Fin 3 => ℝ) i`. -/ +noncomputable def rapidityCoordinate (i : Fin 3) : + EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ := PiLp.proj 2 (fun _ : Fin 3 => ℝ) i + +/-- Continuous linear map for the transverse mass deriv, of type `EuclideanSpace ℝ (Fin 3) →L[ℝ] +ℝ`. -/ +noncomputable def transverseMassDeriv (m : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ := + (1 / (2 * transverseMass m x)) • + ((2 * x 1) • rapidityCoordinate 1 + (2 * x 2) • rapidityCoordinate 2) + +theorem hasFDerivAt_transverseMass {m : ℝ} (hm : 0 < m) + (x : EuclideanSpace ℝ (Fin 3)) : + HasFDerivAt (transverseMass m) (transverseMassDeriv m x) x := by + have h1 := ((rapidityCoordinate 1).hasFDerivAt (x := x)).pow 2 + have h2 := ((rapidityCoordinate 2).hasFDerivAt (x := x)).pow 2 + have hn : m ^ 2 + ((x 1) ^ 2 + (x 2) ^ 2) ≠ 0 := by positivity + have h := ((h1.add h2).const_add (m ^ 2)).sqrt hn + change HasFDerivAt + (fun y : EuclideanSpace ℝ (Fin 3) => Real.sqrt (m ^ 2 + (y 1) ^ 2 + (y 2) ^ 2)) + (transverseMassDeriv m x) x + simpa only [transverseMass, transverseMassDeriv, rapidityCoordinate, PiLp.proj_apply, + Nat.reduceSub, pow_one, nsmul_eq_mul, Nat.cast_ofNat, add_assoc, Pi.add_apply] using h + +theorem transverseMassDeriv_e₁ (m : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + transverseMassDeriv m x e₁ = 0 := by + simp [transverseMassDeriv, rapidityCoordinate, e₁] + +/-- Continuous linear map for the rapidity momentum deriv, of type `EuclideanSpace ℝ (Fin 3) →L[ℝ] +EuclideanSpace ℝ (Fin 3)`. -/ +noncomputable def rapidityMomentumDeriv (m : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + EuclideanSpace ℝ (Fin 3) →L[ℝ] EuclideanSpace ℝ (Fin 3) := + ContinuousLinearMap.id ℝ (EuclideanSpace ℝ (Fin 3)) + + (Real.sinh (x 0) • transverseMassDeriv m x + + (transverseMass m x * Real.cosh (x 0) - 1) • rapidityCoordinate 0).smulRight e₁ + +theorem rapidityMomentum_eq_add_smul (m : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + rapidityMomentum m x = x + (transverseMass m x * Real.sinh (x 0) - x 0) • e₁ := by + ext i + fin_cases i <;> simp [rapidityMomentum, e₁] + +theorem hasFDerivAt_rapidityMomentum {m : ℝ} (hm : 0 < m) + (x : EuclideanSpace ℝ (Fin 3)) : + HasFDerivAt (rapidityMomentum m) (rapidityMomentumDeriv m x) x := by + have h0 := (rapidityCoordinate 0).hasFDerivAt (x := x) + have h := (hasFDerivAt_id x).add + ((((hasFDerivAt_transverseMass hm x).mul h0.sinh).sub h0).smul_const e₁) + have he : rapidityMomentum m = fun y : EuclideanSpace ℝ (Fin 3) => + y + (transverseMass m y * Real.sinh (y 0) - y 0) • e₁ := + funext (rapidityMomentum_eq_add_smul m) + rw [he] + refine h.congr_fderiv ?_ + ext v i + simp only [rapidityMomentumDeriv, _root_.add_apply, + ContinuousLinearMap.id_apply, ContinuousLinearMap.smulRight_apply, + _root_.sub_apply, _root_.smul_apply, rapidityCoordinate, PiLp.proj_apply, smul_eq_mul] + ring_nf + +theorem det_rapidityMomentumDeriv (m : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + (rapidityMomentumDeriv m x).det = transverseMass m x * Real.cosh (x 0) := by + rw [rapidityMomentumDeriv, det_id_add_smulRight_e₁] + simp [transverseMassDeriv, rapidityCoordinate, e₁] + + +theorem det_rapidityMomentumDeriv_eq_dispersion {m : ℝ} (hm : 0 < m) + (x : EuclideanSpace ℝ (Fin 3)) : + (rapidityMomentumDeriv m x).det = dispersion m (rapidityMomentum m x) := by + rw [det_rapidityMomentumDeriv, dispersion_rapidityMomentum hm] + +/-- The constant density of the one-particle measure in rapidity and transverse momentum +coordinates. -/ +noncomputable def rapidityDensity : ℝ≥0∞ := ENNReal.ofReal (1 / (2 * (2 * Real.pi) ^ 3)) + +theorem rapidity_jacobian_weight {m : ℝ} (hm : 0 < m) + (x : EuclideanSpace ℝ (Fin 3)) : + ENNReal.ofReal |(rapidityMomentumDeriv m x).det| * + (oneParticleWeight m (rapidityMomentum m x) : ℝ≥0∞) = rapidityDensity := by + have hω := dispersion_pos hm.ne' (rapidityMomentum m x) + have hK : (2 * (2 * Real.pi) ^ 3 : ℝ) ≠ 0 := by positivity + have he : |(rapidityMomentumDeriv m x).det| * + (oneParticleWeight m (rapidityMomentum m x) : ℝ) = 1 / (2 * (2 * Real.pi) ^ 3) := by + rw [det_rapidityMomentumDeriv_eq_dispersion hm, abs_of_pos hω, oneParticleWeight_coe hm] + field_simp [hω.ne', hK] + rw [← ENNReal.ofReal_coe_nnreal, ← ENNReal.ofReal_mul (abs_nonneg _), he] + rfl + +/-- The exact rapidity measure. The physical normalization is retained explicitly. -/ +noncomputable def rapidityMeasure : Measure (EuclideanSpace ℝ (Fin 3)) := + rapidityDensity • volume + +theorem measurePreserving_rapidityMomentum {m : ℝ} (hm : 0 < m) : + MeasurePreserving (rapidityMomentum m) rapidityMeasure (oneParticleMeasure m) := by + have hmeas := (continuous_rapidityMomentum m).measurable + refine ⟨hmeas, ?_⟩ + apply Measure.ext + intro s hs + have hpre := hs.preimage hmeas + rw [Measure.map_apply hmeas hs, oneParticleMeasure, withDensity_apply _ hs] + have hj := lintegral_image_eq_lintegral_abs_det_fderiv_mul volume hpre + (fun x hx => (hasFDerivAt_rapidityMomentum hm x).hasFDerivWithinAt) + (rapidityHomeomorph hm).injective.injOn + (fun p => (oneParticleWeight m p : ℝ≥0∞)) + have hsurj : Function.Surjective (rapidityMomentum m) := (rapidityHomeomorph hm).surjective + rw [Set.image_preimage_eq s hsurj] at hj + rw [hj] + simp [rapidityMeasure, rapidity_jacobian_weight hm] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RapidityTranslation.lean b/LeanPool/VacuumBellSeparation/FreeField/RapidityTranslation.lean new file mode 100644 index 0000000000..a4f77bd53f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RapidityTranslation.lean @@ -0,0 +1,70 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RapidityFourier + +/-! +# Full rapidity translation and the physical boost group + +Translations preserve the actual constant multiple of Lebesgue measure. +The complete one-particle boost group is intertwined with translation by +negative rapidity on this L2 space, including arbitrary L2 vectors. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory SchwartzMap +open scoped SchwartzMap + +theorem rapidityTranslate_eq_add (η : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + rapidityTranslate η x = x + η • e₁ := by + ext i + fin_cases i <;> simp [rapidityTranslate, e₁] + +theorem measurePreserving_rapidityShift (η : ℝ) : + MeasurePreserving (fun x : EuclideanSpace ℝ (Fin 3) => x - η • e₁) + rapidityMeasure rapidityMeasure := by + simpa only [rapidityMeasure, sub_eq_add_neg] using + (measurePreserving_add_right (volume : Measure (EuclideanSpace ℝ (Fin 3))) + (-(η • e₁))).smul_measure rapidityDensity + +/-- Linear isometry for the rapidity translation, of type `RapidityL2 →ₗᵢ[ℂ] RapidityL2`. -/ +noncomputable def rapidityTranslation (η : ℝ) : RapidityL2 →ₗᵢ[ℂ] RapidityL2 := + Lp.compMeasurePreservingₗᵢ ℂ (fun x => x - η • e₁) (measurePreserving_rapidityShift η) + +theorem rapidityTranslation_ae (η : ℝ) (f : RapidityL2) : + rapidityTranslation η f =ᵐ[rapidityMeasure] fun x => f (x - η • e₁) := + Lp.coeFn_compMeasurePreserving f (measurePreserving_rapidityShift η) + +theorem rapidityTranslation_toLp (η : ℝ) + (f : 𝓢(EuclideanSpace ℝ (Fin 3), ℂ)) : + rapidityTranslation η (f.toLp 2 rapidityMeasure) = + (f.compSubConstCLM ℂ (η • e₁)).toLp 2 rapidityMeasure := by + apply Lp.ext + have hpull := (measurePreserving_rapidityShift η).quasiMeasurePreserving.ae_eq_comp + (f.coeFn_toLp 2 rapidityMeasure) + filter_upwards [rapidityTranslation_ae η (f.toLp 2 rapidityMeasure), hpull, + (f.compSubConstCLM ℂ (η • e₁)).coeFn_toLp 2 rapidityMeasure] with x hx hf ht + exact hx.trans (hf.trans ht.symm) + +theorem rapidityUnitary_boost {m : ℝ} (hm : 0 < m) (η : ℝ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + rapidityUnitary hm (oneParticleBoost hm η ψ) = + rapidityTranslation η (rapidityUnitary hm ψ) := by + apply Lp.ext + have hpull := (measurePreserving_rapidityShift η).quasiMeasurePreserving.ae_eq_comp + (rapidityUnitary_ae hm ψ) + filter_upwards [rapidityUnitary_boost_ae hm η ψ, + rapidityTranslation_ae η (rapidityUnitary hm ψ), hpull] with x hx ht hp + rw [hx, ht] + simpa only [Function.comp_apply, rapidityTranslate_eq_add, neg_smul, + sub_eq_add_neg] using hp.symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RatioRegularizerIndependence.lean b/LeanPool/VacuumBellSeparation/FreeField/RatioRegularizerIndependence.lean new file mode 100644 index 0000000000..b56af6b4d1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RatioRegularizerIndependence.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioResolvent + +/-! +# A full partial operator is determined by its bounded resolvent + +The universal resolvent equation retains the entire graph, including its +domain. We use it to prove independence of two bounded ratio representations +whose numerators and denominators give the same cross product. This is the +regularizer-independence step for an extended continuous functional calculus. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +omit [CompleteSpace E] in +theorem partialOperator_eq_of_resolvent (T S : E →ₗ.[ℂ] E) (R : E →L[ℂ] E) + (hT : ∀ x y : E, (∃ hy : y ∈ T.domain, y + T ⟨y, hy⟩ = x) ↔ R x = y) + (hS : ∀ x y : E, (∃ hy : y ∈ S.domain, y + S ⟨y, hy⟩ = x) ↔ R x = y) : T = S := by + have hTS (x : E) (hx : x ∈ T.domain) : + ∃ hy : x ∈ S.domain, S ⟨x, hy⟩ = T ⟨x, hx⟩ := by + have hr := (hT (x + T ⟨x, hx⟩) x).mp ⟨hx, rfl⟩ + obtain ⟨hy, hh⟩ := (hS (x + T ⟨x, hx⟩) x).mpr hr + exact ⟨hy, add_left_cancel hh⟩ + have hST (x : E) (hx : x ∈ S.domain) : x ∈ T.domain := by + have hr := (hS (x + S ⟨x, hx⟩) x).mp ⟨hx, rfl⟩ + exact ((hT (x + S ⟨x, hx⟩) x).mpr hr).choose + apply LinearPMap.ext + · ext x + exact ⟨fun hx => (hTS x hx).choose, hST x⟩ + · intro x hx hy + obtain ⟨hy', hh⟩ := hTS x hx + exact hh.symm + +omit [CompleteSpace E] in +/-- Equal bounded resolvents imply equality of the full ratio operators. -/ +theorem boundedRatio_eq_of_resolvent_eq (A B C D : E →L[ℂ] E) + (hA : Function.Injective A) (hC : Function.Injective C) + (hAB : IsUnit (A + B)) (hCD : IsUnit (C + D)) + (heq : A * Ring.inverse (A + B) = C * Ring.inverse (C + D)) : + boundedRatio A B hA = boundedRatio C D hC := by + apply partialOperator_eq_of_resolvent _ _ (A * Ring.inverse (A + B)) + (boundedRatio_resolvent_iff A B hA hAB) + intro x y + rw [boundedRatio_resolvent_iff C D hC hCD, heq] + +omit [CompleteSpace E] in +/-- Actual regularizer independence. The cross-product identity is literal +bounded-operator equality; it can be supplied by bounded CFC scalar equality. -/ +theorem boundedRatio_eq_of_cross_product (A B C D : E →L[ℂ] E) + (hA : Function.Injective A) (hC : Function.Injective C) + (hc : Commute A B) (hAB : IsUnit (A + B)) (hCD : IsUnit (C + D)) + (hcross : A * D = B * C) : + boundedRatio A B hA = boundedRatio C D hC := by + apply boundedRatio_eq_of_resolvent_eq A B C D hA hC hAB hCD + have hAi : Commute A (Ring.inverse (A + B)) := by + rw [Ring.inverse_of_isUnit hAB] + apply Commute.units_inv_right + simpa only [IsUnit.unit_spec] using (Commute.refl A).add_right hc + have hprod : A * (C + D) = (A + B) * C := by + rw [mul_add, add_mul, hcross] + calc + A * Ring.inverse (A + B) = + A * Ring.inverse (A + B) * ((C + D) * Ring.inverse (C + D)) := by + rw [Ring.mul_inverse_cancel _ hCD, mul_one] + _ = Ring.inverse (A + B) * (A * (C + D)) * Ring.inverse (C + D) := by + rw [hAi.eq] + simp only [mul_assoc] + _ = Ring.inverse (A + B) * ((A + B) * C) * Ring.inverse (C + D) := by rw [hprod] + _ = C * Ring.inverse (C + D) := by + rw [← mul_assoc (Ring.inverse (A + B)), Ring.inverse_mul_cancel _ hAB, one_mul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RealCommutation.lean b/LeanPool/VacuumBellSeparation/FreeField/RealCommutation.lean new file mode 100644 index 0000000000..172ac76887 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RealCommutation.lean @@ -0,0 +1,95 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.StandardSubspace +public import Mathlib.Analysis.InnerProductSpace.Adjoint + +/-! +# The real source commutation operator + +For a real Hilbert space isometrically embedded in the physical complex +one-particle space, the symplectic form is twice the imaginary part of the +physical inner product. Its representing operator is constructed here as +`J = -2 K* i K`. The minus sign follows from the conjugate-linear-first +inner-product convention. Neither standardness nor complex injectivity is +assumed. Complexification and the complex Gram operator are separate steps. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open ClosedSubmodule + +namespace VacuumBellSeparation + +variable {E H : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- The real-linear operator representing twice the imaginary physical inner product. -/ +noncomputable def realCommutation (K : E →ₗᵢ[ℝ] H) : E →L[ℝ] E := + (-2 : ℝ) • (K.toContinuousLinearMap.adjoint.comp + ((scalarSMulCLE H Complex.UnitI).toContinuousLinearMap.comp K.toContinuousLinearMap)) + +theorem realCommutation_apply (K : E →ₗᵢ[ℝ] H) (x : E) : + realCommutation K x = (-2 : ℝ) • K.toContinuousLinearMap.adjoint (Complex.I • K x) := by + simp [realCommutation, scalarSMulCLE, Complex.UnitI] + +/-- The Riesz representation identity, with the manuscript's normalization. -/ +theorem inner_realCommutation (K : E →ₗᵢ[ℝ] H) (x y : E) : + ⟪x, realCommutation K y⟫_ℝ = 2 * (⟪K x, K y⟫_ℂ).im := by + rw [realCommutation_apply, real_inner_smul_right, + ContinuousLinearMap.adjoint_inner_right] + rw [ClosedSubmodule.inner_real_eq_re_inner, inner_smul_right] + simp [Complex.mul_re] + +theorem realCommutation_skew_inner (K : E →ₗᵢ[ℝ] H) (x y : E) : + ⟪realCommutation K x, y⟫_ℝ = -⟪x, realCommutation K y⟫_ℝ := by + rw [real_inner_comm, inner_realCommutation, inner_realCommutation] + have h : (⟪K y, K x⟫_ℂ).im = -(⟪K x, K y⟫_ℂ).im := by + rw [← inner_conj_symm (K y) (K x)] + rfl + rw [h] + ring + +theorem realCommutation_mem_skewAdjoint (K : E →ₗᵢ[ℝ] H) : + realCommutation K ∈ skewAdjoint (E →L[ℝ] E) := by + change (realCommutation K).adjoint = -(realCommutation K) + ext x + apply ext_inner_left ℝ + intro y + rw [ContinuousLinearMap.adjoint_inner_right, neg_apply, + inner_neg_right] + exact realCommutation_skew_inner K y x + +/-- The commutation bound follows from the isometry, with no spectral hypothesis. -/ +theorem norm_realCommutation_le_two (K : E →ₗᵢ[ℝ] H) : ‖realCommutation K‖ ≤ 2 := by + have hK : ‖K.toContinuousLinearMap.adjoint‖ ≤ 1 := by + simpa using K.norm_toContinuousLinearMap_le + apply ContinuousLinearMap.opNorm_le_bound _ (by norm_num) + intro x + rw [realCommutation_apply, norm_smul] + norm_num only [norm_neg, Real.norm_ofNat] + calc + 2 * ‖K.toContinuousLinearMap.adjoint (Complex.I • K x)‖ ≤ + 2 * (‖K.toContinuousLinearMap.adjoint‖ * ‖Complex.I • K x‖) := + mul_le_mul_of_nonneg_left (ContinuousLinearMap.le_opNorm _ _) (by norm_num) + _ ≤ 2 * (1 * ‖Complex.I • K x‖) := by gcongr + _ = 2 * ‖x‖ := by simp [norm_smul] + +/-- The physical Gram identity for the real embedding and its constructed operator. -/ +theorem inner_realEmbedding_gram (K : E →ₗᵢ[ℝ] H) (x y : E) : + ⟪K x, K y⟫_ℂ = (⟪x, y⟫_ℝ : ℂ) + + (Complex.I / 2) * (⟪x, realCommutation K y⟫_ℝ : ℂ) := by + have hre : (⟪K x, K y⟫_ℂ).re = ⟪x, y⟫_ℝ := K.inner_map_map x y + rw [inner_realCommutation] + apply Complex.ext + · simp [Complex.mul_re, hre] + · simp [Complex.mul_im] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RegionalBallSeparation.lean b/LeanPool/VacuumBellSeparation/FreeField/RegionalBallSeparation.lean new file mode 100644 index 0000000000..f0b1749a5b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RegionalBallSeparation.lean @@ -0,0 +1,37 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialKernelTaylorReal + +/-! Separation of the actual unit balls used by both regional estimates. -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Metric + +theorem regionalForward_unit_balls_disjoint {s : ℝ} (hs : 2 ≤ s) : + Disjoint (ball (0 : EuclideanSpace ℝ (Fin 3)) 1) + (ball (spatialAxisDisplacement s 0) 1) := by + apply Set.disjoint_left.mpr + intro x hx hy + have hx' : ‖x‖ < 1 := by simpa only [mem_ball, dist_zero_right] using hx + have hy' : ‖x - spatialAxisDisplacement s 0‖ < 1 := by + simpa only [mem_ball, dist_eq_norm] using hy + have h0 := lt_of_le_of_lt (PiLp.norm_apply_le x (0 : Fin 3)) hx' + have h1 := lt_of_le_of_lt + (PiLp.norm_apply_le (x - spatialAxisDisplacement s 0) (0 : Fin 3)) hy' + simp only [Real.norm_eq_abs] at h0 + simp only [Real.norm_eq_abs, PiLp.sub_apply, spatialAxisDisplacement, + PiLp.coe_symm_continuousLinearEquiv, PiLp.zero_apply, ite_true, add_zero] at h1 + have ha := (abs_lt.mp h0).2 + have hb := (abs_lt.mp h1).1 + linarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RegionalEventExtension.lean b/LeanPool/VacuumBellSeparation/FreeField/RegionalEventExtension.lean new file mode 100644 index 0000000000..9dc1ded605 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RegionalEventExtension.lean @@ -0,0 +1,75 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalEffectExhaustion +public import LeanPool.VacuumBellSeparation.Bell.EventConstantUpper + +/-! +# Actual regional Rényi event inequalities from uniform finite estimates + +Positive powers are continuous even at zero. Thus the established canonical +effect exhaustion passes both denominator-free inequalities to the full +physical algebras. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace ENNReal + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem canonical_forward_event_bound_extends_to_local + (V : FreeFieldVacuum m H) (hm : 0 < m) + (U W : Set (EuclideanSpace ℝ (Fin 3))) {r K : ℝ} (hr : 1 < r) + (hfinite : ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∀ E ∈ effects (canonicalSourceAlgebra V hm S), + ∀ P ∈ effects (canonicalSourceAlgebra V hm T), + (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ r ≤ + K * ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ (r - 1)) + {E P : H →L[ℂ] H} (hE : E ∈ effects (timeZeroLocalAlgebra V hm U)) + (hP : P ∈ effects (timeZeroLocalAlgebra V hm W)) : + (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ r ≤ + K * ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ (r - 1) := by + let f : ℝ × ℝ × ℝ → ℝ := fun p => p.2.2 ^ r - K * (p.1 * p.2.1) ^ (r - 1) + have hf : Continuous f := by + exact ((Real.continuous_rpow_const (lt_trans zero_lt_one hr).le).comp + (continuous_snd.comp continuous_snd)).sub + (continuous_const.mul ((Real.continuous_rpow_const (sub_pos.mpr hr).le).comp + (continuous_fst.mul (continuous_fst.comp continuous_snd)))) + have h := canonical_effect_inequality_extends_to_local V hm U W f hf + (fun S T hS hT E hE P hP => sub_nonpos.mpr (hfinite S T hS hT E hE P hP)) hE hP + exact sub_nonpos.mp h + +theorem canonical_reverse_event_bound_extends_to_local + (V : FreeFieldVacuum m H) (hm : 0 < m) + (U W : Set (EuclideanSpace ℝ (Fin 3))) {r K : ℝ} (hr : 1 < r) + (hfinite : ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∀ E ∈ effects (canonicalSourceAlgebra V hm S), + ∀ P ∈ effects (canonicalSourceAlgebra V hm T), + ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ r ≤ + K * (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ (r - 1)) + {E P : H →L[ℂ] H} (hE : E ∈ effects (timeZeroLocalAlgebra V hm U)) + (hP : P ∈ effects (timeZeroLocalAlgebra V hm W)) : + ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ r ≤ + K * (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ (r - 1) := by + let f : ℝ × ℝ × ℝ → ℝ := fun p => (p.1 * p.2.1) ^ r - K * p.2.2 ^ (r - 1) + have hf : Continuous f := by + exact ((Real.continuous_rpow_const (lt_trans zero_lt_one hr).le).comp + (continuous_fst.mul (continuous_fst.comp continuous_snd))).sub + (continuous_const.mul ((Real.continuous_rpow_const (sub_pos.mpr hr).le).comp + (continuous_snd.comp continuous_snd))) + have h := canonical_effect_inequality_extends_to_local V hm U W f hf + (fun S T hS hT E hE P hP => sub_nonpos.mpr (hfinite S T hS hT E hE P hP)) hE hP + exact sub_nonpos.mp h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardContractions.lean b/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardContractions.lean new file mode 100644 index 0000000000..89a6e56366 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardContractions.lean @@ -0,0 +1,103 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalContractionExhaustion +public import Mathlib.Analysis.Complex.Basic + +/-! +# Regional covariance for arbitrary complex contractions + +The actual selfadjoint exhaustion suffices: real and imaginary parts of +a contraction are selfadjoint contractions in the same von Neumann +algebra. Bilinearity gives four terms and a universal factor four. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open ContinuousLinearMap +open scoped InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem realPart_mem_saContractions {M : VonNeumannAlgebra H} + {A : H →L[ℂ] H} (hA : A ∈ M) (hAn : ‖A‖ ≤ 1) : + (realPart A : H →L[ℂ] H) ∈ saContractions M := by + refine ⟨?_, (realPart A).2, (realPart.norm_le A).trans hAn⟩ + rw [realPart_apply_coe] + exact starSubalgebra_real_smul_mem M.toStarSubalgebra + (M.toStarSubalgebra.add_mem hA (M.toStarSubalgebra.star_mem' hA)) _ + +theorem imaginaryPart_mem_saContractions {M : VonNeumannAlgebra H} + {A : H →L[ℂ] H} (hA : A ∈ M) (hAn : ‖A‖ ≤ 1) : + (imaginaryPart A : H →L[ℂ] H) ∈ saContractions M := by + refine ⟨?_, (imaginaryPart A).2, (imaginaryPart.norm_le A).trans hAn⟩ + rw [imaginaryPart_apply_coe] + exact M.toStarSubalgebra.smul_mem + (starSubalgebra_real_smul_mem M.toStarSubalgebra + (M.toStarSubalgebra.sub_mem hA (M.toStarSubalgebra.star_mem' hA)) _) _ + +theorem vacuumComplexCovariance_real_imaginary (Ω : H) (A B : H →L[ℂ] H) : + vacuumComplexCovariance Ω A B = + (vacuumComplexCovariance Ω (realPart A) (realPart B) + + Complex.I * vacuumComplexCovariance Ω (realPart A) (imaginaryPart B)) + + (Complex.I * vacuumComplexCovariance Ω (imaginaryPart A) (realPart B) + + Complex.I * Complex.I * vacuumComplexCovariance Ω (imaginaryPart A) (imaginaryPart B)) := by + conv_lhs => rw [← realPart_add_I_smul_imaginaryPart A, ← realPart_add_I_smul_imaginaryPart B] + simp only [vacuumComplexCovariance, add_mul, mul_add, smul_mul_assoc, + mul_smul_comm, add_apply, smul_apply, inner_add_right, inner_smul_right] + ring + +/-- Full complex contractions, with no selfadjointness or approximation +hypothesis in the conclusion. -/ +theorem covariance_bound_all_contractions_of_selfAdjoint + (Ω : H) (M N : VonNeumannAlgebra H) (C : ℝ) + (hbound : ∀ A ∈ saContractions M, ∀ B ∈ saContractions N, + ‖vacuumComplexCovariance Ω A B‖ ≤ C) + {A B : H →L[ℂ] H} (hA : A ∈ M) (hB : B ∈ N) + (hAn : ‖A‖ ≤ 1) (hBn : ‖B‖ ≤ 1) : + ‖vacuumComplexCovariance Ω A B‖ ≤ 4 * C := by + have har := realPart_mem_saContractions hA hAn + have hai := imaginaryPart_mem_saContractions hA hAn + have hbr := realPart_mem_saContractions hB hBn + have hbi := imaginaryPart_mem_saContractions hB hBn + have hrr := hbound _ har _ hbr + have hri := hbound _ har _ hbi + have hir := hbound _ hai _ hbr + have hii := hbound _ hai _ hbi + rw [vacuumComplexCovariance_real_imaginary] + calc + _ ≤ (‖vacuumComplexCovariance Ω (realPart A) (realPart B)‖ + + ‖Complex.I * vacuumComplexCovariance Ω (realPart A) (imaginaryPart B)‖) + + (‖Complex.I * vacuumComplexCovariance Ω (imaginaryPart A) (realPart B)‖ + + ‖Complex.I * Complex.I * vacuumComplexCovariance Ω (imaginaryPart A) + (imaginaryPart B)‖) := + (norm_add_le _ _).trans (add_le_add (norm_add_le _ _) (norm_add_le _ _)) + _ ≤ 4 * C := by + simp only [norm_mul, Complex.norm_I, one_mul] + linarith + +theorem canonical_covariance_bound_extends_to_all_local_contractions + {m : ℝ} (V : FreeFieldVacuum m H) (hm : 0 < m) + (U W : Set (EuclideanSpace ℝ (Fin 3))) (C : ℝ) + (hfinite : ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∀ A ∈ canonicalSourceAlgebra V hm S, ∀ B ∈ canonicalSourceAlgebra V hm T, + ‖A‖ ≤ 1 → ‖B‖ ≤ 1 → ‖vacuumComplexCovariance V.vacuum A B‖ ≤ C) + {A B : H →L[ℂ] H} (hA : A ∈ timeZeroLocalAlgebra V hm U) + (hB : B ∈ timeZeroLocalAlgebra V hm W) (hAn : ‖A‖ ≤ 1) (hBn : ‖B‖ ≤ 1) : + ‖vacuumComplexCovariance V.vacuum A B‖ ≤ 4 * C := by + apply covariance_bound_all_contractions_of_selfAdjoint V.vacuum + (timeZeroLocalAlgebra V hm U) (timeZeroLocalAlgebra V hm W) C _ hA hB hAn hBn + intro A hA B hB + exact canonical_covariance_bound_extends_to_local V hm U W C + (fun S T hS hT A hA B hB => hfinite S T hS hT A hA.1 B hB.1 hA.2.2 hB.2.2) hA hB + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardDoubleCones.lean b/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardDoubleCones.lean new file mode 100644 index 0000000000..777199ee81 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardDoubleCones.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RegionalForwardSpatial +public import LeanPool.VacuumBellSeparation.FreeField.RegionalBallSeparation + +/-! +# Unconditional eventual forward estimates on the physical double cones + +The geometric separation proves disjointness and the chosen threshold +implies the finite scalar smallness condition. The established time-slice +identity identifies the same physical spacetime algebras. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Metric +open scoped ENNReal InnerProductSpace + +theorem regionalForward_smallness_of_threshold {A s r : ℝ} + (hA : 0 < A) (hr : 0 < r) (hs : 0 < s) + (hsmall : Real.sqrt (8 * r * A) ≤ s) : A / s ^ 2 ≤ 1 / (8 * r) := by + have hp := pow_le_pow_left₀ (Real.sqrt_nonneg (8 * r * A)) hsmall 2 + rw [Real.sq_sqrt (by positivity)] at hp + rw [div_le_div_iff₀ (pow_pos hs 2) (by positivity : 0 < 8 * r)] + nlinarith + +/-- For each order, one universal separation threshold gives the actual +forward event and covariance bounds on both full double-cone algebras. -/ +theorem exists_uniform_doubleCone_forward (n : ℕ) : + ∃ S A Q₀ : ℝ, 0 < S ∧ 0 < A ∧ 0 < Q₀ ∧ + ∀ (m : ℝ) (_ : 0 < m) (s : ℝ), S ≤ s → + ∀ (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H), + (∀ E ∈ effects (localAlgebra V (doubleCone (0, 0) 1)), + ∀ P ∈ effects (localAlgebra V (doubleCone (0, spatialAxisDisplacement s 0) 1)), + (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ ((n + 2 : ℕ) : ℝ) ≤ + Real.exp (8 * ((n + 2 : ℕ) : ℝ) * (A / s ^ 2)) * + ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * + (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ (((n + 2 : ℕ) : ℝ) - 1)) ∧ + eventConstPlus (vectorState V.vacuum V.vacuum_norm) + (localAlgebra V (doubleCone (0, 0) 1)) + (localAlgebra V (doubleCone (0, spatialAxisDisplacement s 0) 1)) ((n + 2 : ℕ) : ℝ) ≤ + ENNReal.ofReal (Real.exp (8 * ((n + 2 : ℕ) : ℝ) * (A / s ^ 2))) ∧ + (∀ A₀ ∈ localAlgebra V (doubleCone (0, 0) 1), + ∀ B₀ ∈ localAlgebra V (doubleCone (0, spatialAxisDisplacement s 0) 1), + ‖A₀‖ ≤ 1 → ‖B₀‖ ≤ 1 → ‖vacuumComplexCovariance V.vacuum A₀ B₀‖ ≤ Q₀ / s) := by + obtain ⟨Sgeo, A, Q₀, hSgeo, hA, hQ₀, hbound⟩ := exists_uniform_regional_forward n + let r : ℝ := ((n + 2 : ℕ) : ℝ) + have hr : 0 < r := by + change (0 : ℝ) < ((n + 2 : ℕ) : ℝ) + exact_mod_cast (show 0 < n + 2 by omega) + let S := max 3 (max Sgeo (Real.sqrt (8 * r * A))) + have hS : 0 < S := lt_of_lt_of_le (by norm_num : (0 : ℝ) < 3) (le_max_left _ _) + refine ⟨S, A, Q₀, hS, hA, hQ₀, ?_⟩ + intro m hm s hs H _ _ _ V + have hs₀ : 0 < s := hS.trans_le hs + have hs₂ : 2 ≤ s := by + have h3 : 3 ≤ s := (le_max_left _ _).trans hs + linarith + have hgeo : Sgeo ≤ s := (le_max_left _ _).trans ((le_max_right _ _).trans hs) + have hroot : Real.sqrt (8 * r * A) ≤ s := + (le_max_right _ _).trans ((le_max_right _ _).trans hs) + have hsmall := regionalForward_smallness_of_threshold hA hr hs₀ hroot + have h := hbound m hm s hgeo hsmall H V + (ball 0 1) (ball (spatialAxisDisplacement s 0) 1) (Set.Subset.refl _) (Set.Subset.refl _) + (regionalForward_unit_balls_disjoint hs₂) + simpa only [← localAlgebra_doubleCone_eq_timeZeroLocalAlgebra V hm (by norm_num : (0 : ℝ) < 1) 0, + ← localAlgebra_doubleCone_eq_timeZeroLocalAlgebra V hm (by norm_num : (0 : ℝ) < 1) + (spatialAxisDisplacement s 0)] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardExactConstant.lean b/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardExactConstant.lean new file mode 100644 index 0000000000..ad2075ad08 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardExactConstant.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RegionalForwardDoubleCones +public import LeanPool.VacuumBellSeparation.Constants.Parameters + +/-! +# The literal forward cluster constant + +A single enlargement of the universal forward envelope gives the exact +manuscript relation Q₀ = 4 sqrt(A₊/b). The same A₊ controls the event +estimate. All bounds concern the original full double-cone algebras. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped ENNReal InnerProductSpace + +theorem le_four_sqrt_enlarged_forward {Q b A : ℝ} + (hQ : 0 ≤ Q) (hb : 0 < b) (hA : b * (Q / 4) ^ 2 ≤ A) : + Q ≤ 4 * Real.sqrt (A / b) := by + have hsq : (Q / 4) ^ 2 ≤ A / b := + (le_div_iff₀ hb).mpr (by simpa only [mul_comm] using hA) + have hroot := Real.sqrt_le_sqrt hsq + rw [Real.sqrt_sq_eq_abs, abs_of_nonneg (div_nonneg hQ (by norm_num))] at hroot + linarith + +/-- The existential forward constant is fixed once, before mass, +separation and representation. Its literal cluster constant also bounds +arbitrary complex contractions. -/ +theorem exists_uniform_doubleCone_forward_exact_constant : + ∃ S Aplus : ℝ, 0 < S ∧ 0 < Aplus ∧ + ∀ (m : ℝ) (_ : 0 < m) (s : ℝ), S ≤ s → + ∀ (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H), + (∀ E ∈ effects (localAlgebra V (doubleCone (0, 0) 1)), + ∀ P ∈ effects (localAlgebra V (doubleCone (0, spatialAxisDisplacement s 0) 1)), + (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ rPlus ≤ + Real.exp (8 * rPlus * (Aplus / s ^ 2)) * + ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * + (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ (rPlus - 1)) ∧ + eventConstPlus (vectorState V.vacuum V.vacuum_norm) + (localAlgebra V (doubleCone (0, 0) 1)) + (localAlgebra V (doubleCone (0, spatialAxisDisplacement s 0) 1)) rPlus ≤ + ENNReal.ofReal (Real.exp (8 * rPlus * (Aplus / s ^ 2))) ∧ + (∀ A₀ ∈ localAlgebra V (doubleCone (0, 0) 1), + ∀ B₀ ∈ localAlgebra V (doubleCone (0, spatialAxisDisplacement s 0) 1), + ‖A₀‖ ≤ 1 → ‖B₀‖ ≤ 1 → ‖vacuumComplexCovariance V.vacuum A₀ B₀‖ ≤ + (4 * Real.sqrt (Aplus / expB rPlus)) / s) := by + obtain ⟨S, A, Q, hS, hA, hQ, hbound⟩ := exists_uniform_doubleCone_forward 1048574 + have hr : (((1048574 + 2 : ℕ) : ℝ)) = rPlus := by norm_num [rPlus] + have hb : 0 < expB rPlus := by norm_num [expB, rPlus] + let Aplus := max A (expB rPlus * (Q / 4) ^ 2) + have hAA : A ≤ Aplus := le_max_left _ _ + have hAplus : 0 < Aplus := hA.trans_le hAA + have hQQ : Q ≤ 4 * Real.sqrt (Aplus / expB rPlus) := + le_four_sqrt_enlarged_forward hQ.le hb (le_max_right _ _) + refine ⟨S, Aplus, hS, hAplus, ?_⟩ + intro m hm s hs H _ _ _ V + have hs₀ := hS.trans_le hs + obtain ⟨he, hk, hc⟩ := hbound m hm s hs H V + rw [hr] at he hk + have hexp : Real.exp (8 * rPlus * (A / s ^ 2)) ≤ + Real.exp (8 * rPlus * (Aplus / s ^ 2)) := by + apply Real.exp_le_exp.mpr + exact mul_le_mul_of_nonneg_left (div_le_div_of_nonneg_right hAA (sq_nonneg s)) + (by norm_num [rPlus]) + refine ⟨?_, hk.trans (ENNReal.ofReal_le_ofReal hexp), ?_⟩ + · intro E hE P hP + apply (he E hE P hP).trans + apply mul_le_mul_of_nonneg_right hexp + exact Real.rpow_nonneg (mul_nonneg + (hE.2.1.re_inner_nonneg_right V.vacuum) (hP.2.1.re_inner_nonneg_right V.vacuum)) _ + · intro A₀ hA₀ B₀ hB₀ hAn hBn + exact (hc A₀ hA₀ B₀ hB₀ hAn hBn).trans + (div_le_div_of_nonneg_right hQQ hs₀.le) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardSpatial.lean b/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardSpatial.lean new file mode 100644 index 0000000000..7f83453266 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RegionalForwardSpatial.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalForwardSpatial +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalEventBounds +public import LeanPool.VacuumBellSeparation.FreeField.RegionalEventExtension +public import LeanPool.VacuumBellSeparation.FreeField.RegionalForwardContractions + +/-! +# Genuine forward estimates on the full physical regional algebras + +Uniform actual finite Gaussian estimates are passed through the proved +canonical exhaustion. All local effects, their actual event constant, +and all complex contractions are included. No finite-dimensionality or +approximation premise is imposed on the local algebras. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped ENNReal InnerProductSpace + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem regional_forward_effects_of_finite_ennreal + (V : FreeFieldVacuum m H) (hm : 0 < m) + (U W : Set (EuclideanSpace ℝ (Fin 3))) (hUW : Disjoint U W) + {r K : ℝ} (hr : 1 < r) (hK : 0 ≤ K) + (hfinite : ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∀ E ∈ canonicalSourceAlgebra V hm S, ∀ P ∈ canonicalSourceAlgebra V hm T, + 0 ≤ E → E ≤ 1 → 0 ≤ P → P ≤ 1 → + ENNReal.ofReal (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ r ≤ + ENNReal.ofReal K * ENNReal.ofReal + ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ (r - 1)) + {E P : H →L[ℂ] H} (hE : E ∈ effects (timeZeroLocalAlgebra V hm U)) + (hP : P ∈ effects (timeZeroLocalAlgebra V hm W)) : + (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ r ≤ + K * ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ (r - 1) := by + apply canonical_forward_event_bound_extends_to_local V hm U W hr _ hE hP + intro S T hS hT E hE P hP + have hE₀ := ContinuousLinearMap.nonneg_iff_isPositive.mpr hE.2.1 + have hE₁ := sub_nonneg.mp (ContinuousLinearMap.nonneg_iff_isPositive.mpr hE.2.2) + have hP₀ := ContinuousLinearMap.nonneg_iff_isPositive.mpr hP.2.1 + have hP₁ := sub_nonneg.mp (ContinuousLinearMap.nonneg_iff_isPositive.mpr hP.2.2) + have hcomm := commuting_canonicalSourceAlgebras hm V S T + (fun u hu v hv => canonicalSourcePair_cross hUW hS hT hu hv) E hE.1 P hP.1 + have hprod := commuting_effect_product hE₀ hE₁ hP₀ hP₁ hcomm + have hw := (ContinuousLinearMap.nonneg_iff_isPositive.mp hprod.1).re_inner_nonneg_right V.vacuum + have hp := mul_nonneg (hE.2.1.re_inner_nonneg_right V.vacuum) + (hP.2.1.re_inner_nonneg_right V.vacuum) + exact real_event_bound_of_ennreal hw hp hK hr + (hfinite S T hS hT E hE.1 P hP.1 hE₀ hE₁ hP₀ hP₁) + +/-- Constants are fixed before the mass, physical representation, regions, +and effects or contractions. The original infinite-dimensional algebras +are used in every conclusion. -/ +theorem exists_uniform_regional_forward (n : ℕ) : + ∃ Sgeo A Q₀ : ℝ, 0 < Sgeo ∧ 0 < A ∧ 0 < Q₀ ∧ + ∀ (m : ℝ) (hm : 0 < m) (s : ℝ), Sgeo ≤ s → + A / s ^ 2 ≤ 1 / (8 * ((n + 2 : ℕ) : ℝ)) → + ∀ (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) (U W : Set (EuclideanSpace ℝ (Fin 3))), + U ⊆ Metric.ball 0 1 → W ⊆ Metric.ball (spatialAxisDisplacement s 0) 1 → Disjoint U W → + (∀ E ∈ effects (timeZeroLocalAlgebra V hm U), ∀ P ∈ effects (timeZeroLocalAlgebra V hm W), + (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ ((n + 2 : ℕ) : ℝ) ≤ + Real.exp (8 * ((n + 2 : ℕ) : ℝ) * (A / s ^ 2)) * + ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * + (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ (((n + 2 : ℕ) : ℝ) - 1)) ∧ + eventConstPlus (vectorState V.vacuum V.vacuum_norm) + (timeZeroLocalAlgebra V hm U) (timeZeroLocalAlgebra V hm W) ((n + 2 : ℕ) : ℝ) ≤ + ENNReal.ofReal (Real.exp (8 * ((n + 2 : ℕ) : ℝ) * (A / s ^ 2))) ∧ + (∀ A₀ ∈ timeZeroLocalAlgebra V hm U, ∀ B₀ ∈ timeZeroLocalAlgebra V hm W, + ‖A₀‖ ≤ 1 → ‖B₀‖ ≤ 1 → ‖vacuumComplexCovariance V.vacuum A₀ B₀‖ ≤ Q₀ / s) := by + obtain ⟨Sgeo, A, Q₀, hSgeo, hA, hQ₀, hfinite⟩ := exists_uniform_finite_physical_forward n + refine ⟨Sgeo, A, 4 * Q₀, hSgeo, hA, by positivity, ?_⟩ + intro m hm s hs hsmall H _ _ _ V U W hU hW hUW + have hr : 1 < ((n + 2 : ℕ) : ℝ) := by exact_mod_cast (show 1 < n + 2 by omega) + have hfin := hfinite m hm s hs hsmall H V U W hU hW hUW + have heffects : ∀ E ∈ effects (timeZeroLocalAlgebra V hm U), + ∀ P ∈ effects (timeZeroLocalAlgebra V hm W), + (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ ((n + 2 : ℕ) : ℝ) ≤ + Real.exp (8 * ((n + 2 : ℕ) : ℝ) * (A / s ^ 2)) * + ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ + (((n + 2 : ℕ) : ℝ) - 1) := by + intro E hE P hP + exact regional_forward_effects_of_finite_ennreal V hm U W hUW hr (Real.exp_nonneg _) + (fun S T hS hT => (hfin S T hS hT).1) hE hP + refine ⟨heffects, ?_, ?_⟩ + · exact eventConstPlus_le_of_effect_bound (vectorState V.vacuum V.vacuum_norm) + (timeZeroLocalAlgebra V hm U) (timeZeroLocalAlgebra V hm W) heffects + · intro A₀ hA₀ B₀ hB₀ hAn hBn + have h := canonical_covariance_bound_extends_to_all_local_contractions V hm U W (Q₀ / s) + (fun S T hS hT => (hfin S T hS hT).2) hA₀ hB₀ hAn hBn + simpa only [mul_div_assoc] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RegionalGaussianBounds.lean b/LeanPool/VacuumBellSeparation/FreeField/RegionalGaussianBounds.lean new file mode 100644 index 0000000000..cb6440e418 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RegionalGaussianBounds.lean @@ -0,0 +1,107 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalEventBounds +public import LeanPool.VacuumBellSeparation.FreeField.RegionalEventExtension +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalContractionExhaustion + +/-! +# Passage of actual finite Gaussian comparisons to the full local algebras + +The remaining finite hypotheses specify upper bounds on the real constructed +Gaussian quantities. Representation, product-reference marginals, positivity, +and canonical exhaustion are all supplied by proved earlier modules. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped InnerProductSpace ENNReal + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) (hm : 0 < m) + (U W : Set (EuclideanSpace ℝ (Fin 3))) + +theorem regional_forward_events_of_finite_gaussian (hUW : Disjoint U W) + {r K : ℝ} (hr : 1 < r) (hK : 0 ≤ K) + (hfinite : ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∃ X : FiniteGaussianPairModel hm V S T, + sandwichedRenyiQuantity X.density X.reference r ≤ ENNReal.ofReal K) + {E P : H →L[ℂ] H} (hE : E ∈ effects (timeZeroLocalAlgebra V hm U)) + (hP : P ∈ effects (timeZeroLocalAlgebra V hm W)) : + (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ r ≤ + K * ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ (r - 1) := by + apply canonical_forward_event_bound_extends_to_local V hm U W hr _ hE hP + intro S T hS hT E hE P hP + obtain ⟨X, hQ⟩ := hfinite S T hS hT + exact X.forward_event_bound hr hK hQ hE hP + (commuting_canonicalSourceAlgebras hm V S T + (fun u hu v hv => canonicalSourcePair_cross hUW hS hT hu hv) E hE.1 P hP.1) + +theorem regional_reverse_events_of_finite_gaussian (hUW : Disjoint U W) + {r K : ℝ} (hr : 1 < r) (hK : 0 ≤ K) + (hfinite : ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∃ X : FiniteGaussianPairModel hm V S T, + sandwichedRenyiQuantity X.reference X.density r ≤ ENNReal.ofReal K) + {E P : H →L[ℂ] H} (hE : E ∈ effects (timeZeroLocalAlgebra V hm U)) + (hP : P ∈ effects (timeZeroLocalAlgebra V hm W)) : + ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ r ≤ + K * (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ (r - 1) := by + apply canonical_reverse_event_bound_extends_to_local V hm U W hr _ hE hP + intro S T hS hT E hE P hP + obtain ⟨X, hQ⟩ := hfinite S T hS hT + exact X.reverse_event_bound hr hK hQ hE hP + (commuting_canonicalSourceAlgebras hm V S T + (fun u hu v hv => canonicalSourcePair_cross hUW hS hT hu hv) E hE.1 P hP.1) + +theorem regional_eventConstPlus_le_of_finite_gaussian (hUW : Disjoint U W) + {r K : ℝ} (hr : 1 < r) (hK : 0 ≤ K) + (hfinite : ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∃ X : FiniteGaussianPairModel hm V S T, + sandwichedRenyiQuantity X.density X.reference r ≤ ENNReal.ofReal K) : + eventConstPlus (vectorState V.vacuum V.vacuum_norm) + (timeZeroLocalAlgebra V hm U) (timeZeroLocalAlgebra V hm W) r ≤ ENNReal.ofReal K := by + apply eventConstPlus_le_of_effect_bound _ _ _ + intro E hE P hP + exact regional_forward_events_of_finite_gaussian V hm U W hUW hr hK hfinite hE hP + +theorem regional_eventConstMinus_le_of_finite_gaussian (hUW : Disjoint U W) + {r K : ℝ} (hr : 1 < r) (hK : 0 ≤ K) + (hfinite : ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∃ X : FiniteGaussianPairModel hm V S T, + sandwichedRenyiQuantity X.reference X.density r ≤ ENNReal.ofReal K) : + eventConstMinus (vectorState V.vacuum V.vacuum_norm) + (timeZeroLocalAlgebra V hm U) (timeZeroLocalAlgebra V hm W) r ≤ ENNReal.ofReal K := by + apply eventConstMinus_le_of_effect_bound _ _ _ hK + intro E hE P hP + exact regional_reverse_events_of_finite_gaussian V hm U W hUW hr hK hfinite hE hP + +theorem regional_covariance_le_of_finite_gaussian + {r C : ℝ} (hr : 2 ≤ r) (hC : 0 ≤ C) + (hfinite : ∀ S T : Submodule ℝ TimeZeroSource, + IsCanonicalSourceSystem U S → IsCanonicalSourceSystem W T → + ∃ X : FiniteGaussianPairModel hm V S T, + (sandwichedRenyiQuantity X.density X.reference r ^ (1 / (r - 1)) - 1) ^ + (1 / 2 : ℝ) ≤ ENNReal.ofReal C) + {A B : H →L[ℂ] H} (hA : A ∈ saContractions (timeZeroLocalAlgebra V hm U)) + (hB : B ∈ saContractions (timeZeroLocalAlgebra V hm W)) : + ‖vacuumComplexCovariance V.vacuum A B‖ ≤ C := by + apply canonical_covariance_bound_extends_to_local V hm U W C _ hA hB + intro S T hS hT A hA B hB + obtain ⟨X, hQ⟩ := hfinite S T hS hT + exact (ENNReal.ofReal_le_ofReal_iff hC).mp + ((X.contraction_covariance_le_renyi hr hA.1 hB.1 hA.2.2 hB.2.2).trans hQ) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RegionalReverseDoubleCones.lean b/LeanPool/VacuumBellSeparation/FreeField/RegionalReverseDoubleCones.lean new file mode 100644 index 0000000000..7eaad663f7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RegionalReverseDoubleCones.lean @@ -0,0 +1,66 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RegionalReverseSpatial +public import LeanPool.VacuumBellSeparation.FreeField.RegionalBallSeparation +public import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics + +/-! +# Unconditional eventual reverse estimates on the physical double cones + +The true inverse-power decay supplies one mass-independent smallness +threshold. Actual disjointness and the proved time-slice equality then +give the reverse event bound on the full spacetime algebras. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Metric Filter +open scoped ENNReal InnerProductSpace Topology + +theorem exists_reverse_smallness_threshold (A : ℝ) : + ∃ S : ℝ, 1 ≤ S ∧ ∀ s : ℝ, S ≤ s → A * s ^ (-gammaRev) ≤ aRev / 4 := by + have hlim : Tendsto (fun s : ℝ => A * s ^ (-gammaRev)) atTop (𝓝 0) := by + simpa only [mul_zero] using (tendsto_rpow_neg_atTop gammaRev_pos).const_mul A + obtain ⟨S, hS⟩ := eventually_atTop.mp + (hlim.eventually (eventually_le_nhds (div_pos aRev_pos_le.1 (by norm_num : (0 : ℝ) < 4)))) + exact ⟨max 1 S, le_max_left _ _, fun s hs => hS s ((le_max_right _ _).trans hs)⟩ + +/-- No source factor, Gaussian, approximation, disjointness or scalar +smallness premise remains in this full physical statement. -/ +theorem exists_uniform_doubleCone_reverse : + ∃ S A : ℝ, 600 ≤ S ∧ 0 < A ∧ + ∀ (μ : ℝ) (_ : 0 < μ) (s : ℝ), S ≤ s → + ∀ (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum μ H), + (∀ E ∈ effects (localAlgebra V (doubleCone (0, 0) 1)), + ∀ P ∈ effects (localAlgebra V (doubleCone (0, spatialAxisDisplacement s 0) 1)), + ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ rMinus ≤ + Real.exp (2 * rMinus * aRev⁻¹ * (A * s ^ (-gammaRev))) * + (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ (rMinus - 1)) ∧ + eventConstMinus (vectorState V.vacuum V.vacuum_norm) + (localAlgebra V (doubleCone (0, 0) 1)) + (localAlgebra V (doubleCone (0, spatialAxisDisplacement s 0) 1)) rMinus ≤ + ENNReal.ofReal (Real.exp (2 * rMinus * aRev⁻¹ * (A * s ^ (-gammaRev)))) := by + obtain ⟨Sgeo, A, hSgeo, hA, hbound⟩ := exists_uniform_regional_reverse + obtain ⟨Ssmall, _, hsmall⟩ := exists_reverse_smallness_threshold A + refine ⟨max Sgeo Ssmall, A, hSgeo.trans (le_max_left _ _), hA, ?_⟩ + intro μ hμ s hs H _ _ _ V + have hgeo : Sgeo ≤ s := (le_max_left _ _).trans hs + have hs₂ : 2 ≤ s := by linarith + have heps := hsmall s ((le_max_right _ _).trans hs) + have h := hbound μ hμ s hgeo heps H V + (ball 0 1) (ball (spatialAxisDisplacement s 0) 1) (Set.Subset.refl _) (Set.Subset.refl _) + (regionalForward_unit_balls_disjoint hs₂) + simpa only [← localAlgebra_doubleCone_eq_timeZeroLocalAlgebra V hμ (by norm_num : (0 : ℝ) < 1) 0, + ← localAlgebra_doubleCone_eq_timeZeroLocalAlgebra V hμ (by norm_num : (0 : ℝ) < 1) + (spatialAxisDisplacement s 0)] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/RegionalReverseSpatial.lean b/LeanPool/VacuumBellSeparation/FreeField/RegionalReverseSpatial.lean new file mode 100644 index 0000000000..fc716fb1f4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/RegionalReverseSpatial.lean @@ -0,0 +1,52 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalReverseSpatial +public import LeanPool.VacuumBellSeparation.FreeField.RegionalGaussianBounds + +/-! +# Reverse estimates on the full physical regional algebras + +The actual finite reverse Gaussian quantities obey one uniform bound. +Canonical exhaustion passes it to every regional effect and to the true +extended event constant, including zero-probability events. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped ENNReal InnerProductSpace + +theorem exists_uniform_regional_reverse : + ∃ Sgeo A : ℝ, 600 ≤ Sgeo ∧ 0 < A ∧ + ∀ (μ : ℝ) (hμ : 0 < μ) (s : ℝ), Sgeo ≤ s → + A * s ^ (-gammaRev) ≤ aRev / 4 → + ∀ (H : Type*) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum μ H) (U W : Set (EuclideanSpace ℝ (Fin 3))), + U ⊆ Metric.ball 0 1 → W ⊆ Metric.ball (spatialAxisDisplacement s 0) 1 → Disjoint U W → + (∀ E ∈ effects (timeZeroLocalAlgebra V hμ U), ∀ P ∈ effects (timeZeroLocalAlgebra V hμ W), + ((⟪V.vacuum, E V.vacuum⟫_ℂ).re * (⟪V.vacuum, P V.vacuum⟫_ℂ).re) ^ rMinus ≤ + Real.exp (2 * rMinus * aRev⁻¹ * (A * s ^ (-gammaRev))) * + (⟪V.vacuum, (E * P) V.vacuum⟫_ℂ).re ^ (rMinus - 1)) ∧ + eventConstMinus (vectorState V.vacuum V.vacuum_norm) + (timeZeroLocalAlgebra V hμ U) (timeZeroLocalAlgebra V hμ W) rMinus ≤ + ENNReal.ofReal (Real.exp (2 * rMinus * aRev⁻¹ * (A * s ^ (-gammaRev)))) := by + obtain ⟨Sgeo, A, hSgeo, hA, hfinite⟩ := exists_uniform_finite_physical_reverse + refine ⟨Sgeo, A, hSgeo, hA, ?_⟩ + intro μ hμ s hs hsmall H _ _ _ V U W hU hW hUW + have hfin := hfinite μ hμ s hs hsmall H V U W hU hW hUW + refine ⟨?_, ?_⟩ + · intro E hE P hP + exact regional_reverse_events_of_finite_gaussian V hμ U W hUW + one_lt_rMinus_lt_two.1 (Real.exp_nonneg _) hfin hE hP + · exact regional_eventConstMinus_le_of_finite_gaussian V hμ U W hUW + one_lt_rMinus_lt_two.1 (Real.exp_nonneg _) hfin + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ResolventPowerBounded.lean b/LeanPool/VacuumBellSeparation/FreeField/ResolventPowerBounded.lean new file mode 100644 index 0000000000..78597c892c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ResolventPowerBounded.lean @@ -0,0 +1,78 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PositiveContractionPowers +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioTotal + +/-! +# Agreement of the resolvent power construction with bounded CFC + +When the intrinsic positive resolvent has a bounded inverse, its associated +operator T=(1-R)R⁻¹ is bounded and positive. The constructed full-domain +partial power agrees exactly with the ordinary bounded continuous functional +calculus T^c. The proof uses scalar identities on the actual spectrum and +retains c=0 and possible kernel of T. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Bounded functional calculus compatibility, including equality of domains. -/ +theorem resolventPowerRatio_eq_bounded_power (R : E →L[ℂ] E) + (hR : IsStrictlyPositive R) (hR1 : R ≤ 1) (hi : Function.Injective R) + (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) : + resolventPowerRatio R hR.nonneg hi c hc hc1 = + (((1 - R) * Ring.inverse R) ^ c).toPMap ⊤ := by + let f : ℝ → ℝ := fun x => (1 - x) / x + have hs (x : ℝ) (hx : x ∈ spectrum ℝ R) : 0 < x ∧ x ≤ 1 := by + refine ⟨hR.spectrum_pos hx, ?_⟩ + exact (Real.le_norm_self x).trans + ((IsometricContinuousFunctionalCalculus.norm_spectrum_le R hx hR.nonneg.isSelfAdjoint).trans + ((CStarAlgebra.norm_le_one_iff_of_nonneg R hR.nonneg).mpr hR1)) + have hf : ContinuousOn f (spectrum ℝ R) := + (continuous_const.sub continuous_id).continuousOn.div continuous_id.continuousOn + (fun x hx => (hs x hx).1.ne') + have hsub : cfc (fun x : ℝ => 1 - x) R = 1 - R := by + rw [cfc_sub (fun _ : ℝ => 1) (fun x : ℝ => x) R + continuous_const.continuousOn continuous_id.continuousOn, + cfc_const_one ℝ R hR.nonneg.isSelfAdjoint, cfc_id' ℝ R hR.nonneg.isSelfAdjoint] + have hT : cfc f R = (1 - R) * Ring.inverse R := by + rw [show f = fun x : ℝ => (1 - x) / x from rfl, + cfc_map_div (fun x : ℝ => 1 - x) (fun x : ℝ => x) R + (fun x hx => (hs x hx).1.ne') + (continuous_const.sub continuous_id).continuousOn continuous_id.continuousOn + hR.nonneg.isSelfAdjoint, hsub, cfc_id' ℝ R hR.nonneg.isSelfAdjoint] + have hT0 : 0 ≤ cfc f R := by + apply (cfc_nonneg_iff f R hf hR.nonneg.isSelfAdjoint).mpr + intro x hx + exact div_nonneg (sub_nonneg.mpr (hs x hx).2) (hs x hx).1.le + have hp : Continuous (fun x : ℝ => x ^ c) := Real.continuous_rpow_const hc + have hTc : ((1 - R) * Ring.inverse R) ^ c = cfc (fun x : ℝ => f x ^ c) R := by + rw [← hT, CFC.rpow_eq_cfc_real hT0, + ← cfc_comp' (fun x : ℝ => x ^ c) f R hp.continuousOn hf hR.nonneg.isSelfAdjoint] + have hBc : (1 - R) ^ c = cfc (fun x : ℝ => (1 - x) ^ c) R := by + rw [CFC.rpow_eq_cfc_real (sub_nonneg.mpr hR1), ← hsub, + ← cfc_comp' (fun x : ℝ => x ^ c) (fun x : ℝ => 1 - x) R hp.continuousOn + (continuous_const.sub continuous_id).continuousOn hR.nonneg.isSelfAdjoint] + apply boundedRatio_eq_toPMap_of_factorization (R ^ c) ((1 - R) ^ c) + (((1 - R) * Ring.inverse R) ^ c) _ (IsStrictlyPositive.rpow R c hR).isUnit + rw [hTc, CFC.rpow_eq_cfc_real hR.nonneg, hBc, + ← cfc_mul (fun x : ℝ => f x ^ c) (fun x : ℝ => x ^ c) R + (hp.comp_continuousOn' hf) hp.continuousOn] + apply cfc_congr + intro x hx + dsimp [f] + rw [Real.div_rpow (sub_nonneg.mpr (hs x hx).2) (hs x hx).1.le c, + div_mul_cancel₀ _ (Real.rpow_pos_of_pos (hs x hx).1 c).ne'] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ResolventPowerFunction.lean b/LeanPool/VacuumBellSeparation/FreeField/ResolventPowerFunction.lean new file mode 100644 index 0000000000..5ecdbb4f78 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ResolventPowerFunction.lean @@ -0,0 +1,69 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PositiveContractionPowers + +/-! +# The intrinsic bounded function of the resolvent for positive powers + +The full resolvent of the constructed power is the genuine bounded CFC +of r ↦ r^c/(r^c+(1-r)^c). The denominator is at least one on [0,1] +for 0≤c≤1. All endpoint conventions are those of unital real powers. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- The bounded scalar transform `x ^ c / (x ^ c + (1 - x) ^ c)` used for modular powers. -/ +noncomputable def powerResolventFunction (c x : ℝ) : ℝ := x ^ c / (x ^ c + (1 - x) ^ c) + +theorem powerResolventFunction_cfc (R : E →L[ℂ] E) (hR : 0 ≤ R) (hR1 : R ≤ 1) + (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) : + cfc (powerResolventFunction c) R = R ^ c * Ring.inverse (R ^ c + (1 - R) ^ c) := by + have hs (x : ℝ) (hx : x ∈ spectrum ℝ R) : 0 ≤ x ∧ x ≤ 1 := by + refine ⟨(StarOrderedRing.nonneg_iff_spectrum_nonneg R hR.isSelfAdjoint).mp hR x hx, ?_⟩ + exact (Real.le_norm_self x).trans + ((IsometricContinuousFunctionalCalculus.norm_spectrum_le R hx hR.isSelfAdjoint).trans + ((CStarAlgebra.norm_le_one_iff_of_nonneg R hR).mpr hR1)) + have hp : Continuous (fun x : ℝ => x ^ c) := Real.continuous_rpow_const hc + have hb : Continuous (fun x : ℝ => (1 - x) ^ c) := hp.comp (continuous_const.sub continuous_id) + have hden (x : ℝ) (hx : x ∈ spectrum ℝ R) : x ^ c + (1 - x) ^ c ≠ 0 := by + have h₁ := Real.self_le_rpow_of_le_one (hs x hx).1 (hs x hx).2 hc1 + have h₂ := Real.self_le_rpow_of_le_one (sub_nonneg.mpr (hs x hx).2) + (sub_le_self _ (hs x hx).1) hc1 + linarith + have hsub : cfc (fun x : ℝ => 1 - x) R = 1 - R := by + rw [cfc_sub (fun _ : ℝ => 1) (fun x : ℝ => x) R + continuous_const.continuousOn continuous_id.continuousOn, + cfc_const_one ℝ R hR.isSelfAdjoint, cfc_id' ℝ R hR.isSelfAdjoint] + have hBc : (1 - R) ^ c = cfc (fun x : ℝ => (1 - x) ^ c) R := by + rw [CFC.rpow_eq_cfc_real (sub_nonneg.mpr hR1), ← hsub, + ← cfc_comp' (fun x : ℝ => x ^ c) (fun x : ℝ => 1 - x) R hp.continuousOn + (continuous_const.sub continuous_id).continuousOn hR.isSelfAdjoint] + unfold powerResolventFunction + rw [cfc_map_div (fun x : ℝ => x ^ c) + (fun x : ℝ => x ^ c + (1 - x) ^ c) R hden hp.continuousOn + (hp.add hb).continuousOn hR.isSelfAdjoint, + cfc_add R (fun x : ℝ => x ^ c) (fun x : ℝ => (1 - x) ^ c) + hp.continuousOn hb.continuousOn, ← CFC.rpow_eq_cfc_real hR, ← hBc] + +theorem resolventPowerRatio_resolvent_cfc (R : E →L[ℂ] E) + (hR : 0 ≤ R) (hR1 : R ≤ 1) (hi : Function.Injective R) + (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) (x y : E) : + (∃ hy : y ∈ (resolventPowerRatio R hR hi c hc hc1).domain, + y + resolventPowerRatio R hR hi c hc hc1 ⟨y, hy⟩ = x) ↔ + cfc (powerResolventFunction c) R x = y := by + rw [powerResolventFunction_cfc R hR hR1 c hc hc1] + exact resolventPowerRatio_resolvent R hR hR1 hi c hc hc1 x y + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ScalarFourierInjectivity.lean b/LeanPool/VacuumBellSeparation/FreeField/ScalarFourierInjectivity.lean new file mode 100644 index 0000000000..870c160c91 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ScalarFourierInjectivity.lean @@ -0,0 +1,60 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ScalarSpatialFourier +public import LeanPool.VacuumBellSeparation.FreeField.MassShellDistribution + +/-! +# Injectivity of the actual scalar Fourier integral on physical L² ∩ L¹ + +The normalized Schwartz Fourier pairing is recovered with scale 2π. Its +actual tempered Fourier inverse and the injective physical distribution +embedding prove injectivity. No reciprocal growing multiplier is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter FourierTransform +open scoped FourierTransform InnerProductSpace + +theorem schwartzFourier_eq_scaled_spatialIntegral + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + (𝓕 φ) p = ∫ x, Complex.exp (-(Complex.I * + (((2 * Real.pi) * ⟪p, x⟫_ℝ : ℝ) : ℂ))) * φ x := by + rw [SchwartzMap.fourier_coe, Real.fourier_eq] + apply integral_congr_ae + exact Eventually.of_forall fun x => by + dsimp only + rw [Circle.smul_def, Real.fourierChar_apply, smul_eq_mul] + congr 2 + rw [real_inner_comm x p] + push_cast + ring + +theorem physical_L2_eq_zero_of_scalarSpatialFourier_eq_zero {m : ℝ} (hm : 0 < m) + (u : Lp ℂ 2 (oneParticleMeasure m)) + (hu : Integrable (fun p => u p) (oneParticleMeasure m)) + (hzero : scalarSpatialFourier (oneParticleMeasure m) (fun p => u p) = 0) : u = 0 := by + let := oneParticleMeasure_isLocallyFinite hm + have hFT : 𝓕 (physicalMomentumDistribution hm u) = 0 := by + ext φ + rw [TemperedDistribution.fourier_apply, physicalMomentumDistribution_apply] + have h := integral_scalarSpatialFourier_pairing hu φ.integrable (2 * Real.pi) + simp only [hzero, Pi.zero_apply, mul_zero, integral_zero, + ← schwartzFourier_eq_scaled_spatialIntegral] at h + exact h.symm + have hd : physicalMomentumDistribution hm u = 0 := by + calc + _ = 𝓕⁻ (𝓕 (physicalMomentumDistribution hm u)) := (fourierInv_fourier_eq _).symm + _ = 0 := by rw [hFT, fourierInv_zero] + apply physicalMomentumDistribution_injective hm + simpa only [map_zero] using hd + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ScalarSpatialFourier.lean b/LeanPool/VacuumBellSeparation/FreeField/ScalarSpatialFourier.lean new file mode 100644 index 0000000000..395b6b718b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ScalarSpatialFourier.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.CStarAlgebra.Classes +public import Mathlib.Tactic.ReduceModChar +public import Mathlib.Analysis.InnerProductSpace.PiL2 +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace +public import Mathlib.MeasureTheory.Integral.Prod + +/-! +# Literal scalar spatial Fourier integrals and absolutely convergent pairing + +The measure may be infinite. Every use of Fubini is backed by the product +majorant |g(x)| |A(p)| with both factors genuinely integrable. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter +open scoped InnerProductSpace + +/-- Scalar spatial Fourier given by `∫ p, Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ))) * A p ∂μ`. -/ +noncomputable def scalarSpatialFourier + (μ : Measure (EuclideanSpace ℝ (Fin 3))) + (A : EuclideanSpace ℝ (Fin 3) → ℂ) (x : EuclideanSpace ℝ (Fin 3)) : ℂ := + ∫ p, Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ))) * A p ∂μ + +theorem norm_scalarSpatialFourierCharacter (p x : EuclideanSpace ℝ (Fin 3)) : + ‖Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ)))‖ = 1 := by + rw [Complex.norm_exp] + simp + +theorem continuous_scalarSpatialFourier + {μ : Measure (EuclideanSpace ℝ (Fin 3))} + {A : EuclideanSpace ℝ (Fin 3) → ℂ} (hA : Integrable A μ) : + Continuous (scalarSpatialFourier μ A) := by + apply continuous_of_dominated (bound := fun p => ‖A p‖) + · intro x + exact (show Continuous (fun p : EuclideanSpace ℝ (Fin 3) => + Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ)))) by fun_prop).aestronglyMeasurable.mul + hA.aestronglyMeasurable + · intro x + exact Eventually.of_forall fun p => by rw [norm_mul, norm_scalarSpatialFourierCharacter, + one_mul] + · exact hA.norm + · exact Eventually.of_forall fun p => by fun_prop + +theorem integrable_scalarSpatialFourier_pairing + {μ : Measure (EuclideanSpace ℝ (Fin 3))} + {A g : EuclideanSpace ℝ (Fin 3) → ℂ} + (hA : Integrable A μ) (hg : Integrable g) (c : ℝ) : + Integrable (fun q : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + g q.1 * (Complex.exp (-(Complex.I * ((c * ⟪q.2, q.1⟫_ℝ : ℝ) : ℂ))) * A q.2)) + (volume.prod μ) := by + apply (hg.norm.mul_prod hA.norm).mono' + · exact hg.aestronglyMeasurable.comp_fst.mul + ((show Continuous (fun q : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + Complex.exp (-(Complex.I * ((c * ⟪q.2, q.1⟫_ℝ : ℝ) : ℂ)))) by + fun_prop).aestronglyMeasurable.mul hA.aestronglyMeasurable.comp_snd) + · exact Eventually.of_forall fun q => by + rw [norm_mul, norm_mul, Complex.norm_exp] + simp + +theorem integral_scalarSpatialFourier_pairing + {μ : Measure (EuclideanSpace ℝ (Fin 3))} [SFinite μ] + {A g : EuclideanSpace ℝ (Fin 3) → ℂ} + (hA : Integrable A μ) (hg : Integrable g) (c : ℝ) : + (∫ x, g x * scalarSpatialFourier μ A (c • x)) = + ∫ p, (∫ x, Complex.exp (-(Complex.I * ((c * ⟪p, x⟫_ℝ : ℝ) : ℂ))) * g x) * A p ∂μ := by + have h := integral_integral_swap + (f := fun (x p : EuclideanSpace ℝ (Fin 3)) => + g x * (Complex.exp (-(Complex.I * ((c * ⟪p, x⟫_ℝ : ℝ) : ℂ))) * A p)) + (integrable_scalarSpatialFourier_pairing hA hg c) + calc + _ = ∫ x, ∫ p, g x * + (Complex.exp (-(Complex.I * ((c * ⟪p, x⟫_ℝ : ℝ) : ℂ))) * A p) ∂μ := by + apply integral_congr_ae + exact Eventually.of_forall fun x => by + dsimp only + unfold scalarSpatialFourier + rw [← integral_const_mul] + simp only [inner_smul_right, Complex.ofReal_mul] + _ = ∫ p, (∫ x, g x * + (Complex.exp (-(Complex.I * ((c * ⟪p, x⟫_ℝ : ℝ) : ℂ))) * A p)) ∂μ := h + _ = _ := by + apply integral_congr_ae + exact Eventually.of_forall fun p => by + dsimp only + rw [← integral_mul_const] + apply integral_congr_ae + exact Eventually.of_forall fun x => by ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SchwartzBanachFactorization.lean b/LeanPool/VacuumBellSeparation/FreeField/SchwartzBanachFactorization.lean new file mode 100644 index 0000000000..99a542f972 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SchwartzBanachFactorization.lean @@ -0,0 +1,156 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionBounds +public import Mathlib.Analysis.Normed.Module.HahnBanach +public import Mathlib.LinearAlgebra.Isomorphisms + +/-! +# A genuine Banach factorization of each tempered distribution + +Weighted derivatives of a Schwartz function are actual bounded continuous +functions. Finitely many such coordinates form a Banach space. Continuity of +a tempered distribution bounds it by finitely many coordinates; descent to +the actual range and complex Hahn–Banach then factor the distribution through +this Banach space. This does not assume a norm or Bochner integral on Schwartz +space, and does not assert the cutoff Fourier integral identity, which is proved from this +factorization as `distribution_cutoffFourier_integral` in `FreeField/CutoffFourierIntegral.lean`. +-/ + +@[expose] public section + +open scoped SchwartzMap BoundedContinuousFunction + +namespace VacuumBellSeparation + +/-- A bounded scalar functional on the range of a linear map extends to its +actual normed codomain. Injectivity of the map is unnecessary. -/ +theorem exists_functional_factor_of_bound + {A B : Type*} [AddCommGroup A] [Module ℂ A] + [NormedAddCommGroup B] [NormedSpace ℂ B] + (J : A →ₗ[ℂ] B) (T : A →ₗ[ℂ] ℂ) (C : ℝ) + (hb : ∀ x, ‖T x‖ ≤ C * ‖J x‖) : + ∃ L : B →L[ℂ] ℂ, ∀ x, L (J x) = T x := by + have hk : LinearMap.ker J.rangeRestrict ≤ LinearMap.ker T := by + intro x hx + apply LinearMap.mem_ker.mpr + have hz : J x = 0 := congrArg Subtype.val (LinearMap.mem_ker.mp hx) + exact norm_eq_zero.mp (le_antisymm (by simpa [hz] using hb x) (norm_nonneg _)) + let l : J.range →ₗ[ℂ] ℂ := + J.rangeRestrict.liftOfSurjective J.surjective_rangeRestrict ⟨T, hk⟩ + have hl : ∀ x, l (J.rangeRestrict x) = T x := fun x => + LinearMap.equivOfSurjective_apply J.surjective_rangeRestrict hk + have hbl : ∀ y : J.range, ‖l y‖ ≤ C * ‖y‖ := by + intro y + obtain ⟨x, rfl⟩ := J.surjective_rangeRestrict y + change ‖l (J.rangeRestrict x)‖ ≤ C * ‖J x‖ + rw [hl] + exact hb x + let lc : J.range →L[ℂ] ℂ := l.mkContinuous C hbl + obtain ⟨L, hL, _⟩ := exists_extension_norm_eq J.range lc + refine ⟨L, fun x => ?_⟩ + exact (hL (J.rangeRestrict x)).trans (hl x) + +/-- One actual weighted derivative, with the supremum norm of bounded continuous functions. -/ +noncomputable def schwartzWeightedDerivative (k j : ℕ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + EuclideanSpace ℝ (Fin 3) →ᵇ + ContinuousMultilinearMap ℝ (fun _ : Fin j => EuclideanSpace ℝ (Fin 3)) ℂ := + BoundedContinuousFunction.ofNormedAddCommGroup + (fun x => ‖x‖ ^ k • iteratedFDeriv ℝ j φ x) + ((continuous_norm.pow k).smul + ((φ.smooth ⊤).continuous_iteratedFDeriv (mod_cast le_top))) + (SchwartzMap.seminorm ℂ k j φ) (fun x => by + simpa only [norm_smul, Real.norm_eq_abs, abs_of_nonneg (by positivity : 0 ≤ ‖x‖ ^ k)] + using φ.le_seminorm ℂ k j x) + +@[simp] theorem schwartzWeightedDerivative_apply (k j : ℕ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (x : EuclideanSpace ℝ (Fin 3)) : + schwartzWeightedDerivative k j φ x = ‖x‖ ^ k • iteratedFDeriv ℝ j φ x := rfl + +/-- These are exactly the genuine Schwartz seminorms, not replacement norms. -/ +theorem norm_schwartzWeightedDerivative (k j : ℕ) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + ‖schwartzWeightedDerivative k j φ‖ = SchwartzMap.seminorm ℂ k j φ := by + apply le_antisymm + · apply (BoundedContinuousFunction.norm_le (apply_nonneg _ _)).mpr + intro x + simpa only [schwartzWeightedDerivative_apply, norm_smul, Real.norm_eq_abs, + abs_of_nonneg (by positivity : 0 ≤ ‖x‖ ^ k)] using φ.le_seminorm ℂ k j x + · apply SchwartzMap.seminorm_le_bound ℂ k j φ + (norm_nonneg (schwartzWeightedDerivative k j φ)) + intro x + simpa only [schwartzWeightedDerivative_apply, norm_smul, Real.norm_eq_abs, + abs_of_nonneg (by positivity : 0 ≤ ‖x‖ ^ k)] using + (schwartzWeightedDerivative k j φ).norm_coe_le_norm x + +/-- The finite product is complete by the actual bounded-continuous-function instances. -/ +abbrev SchwartzDerivativeBanach (s : Finset (ℕ × ℕ)) := + ∀ i : s, EuclideanSpace ℝ (Fin 3) →ᵇ + ContinuousMultilinearMap ℝ (fun _ : Fin i.val.2 => EuclideanSpace ℝ (Fin 3)) ℂ + +/-- The actual finite weighted-derivative map. -/ +noncomputable def schwartzDerivativeMap (s : Finset (ℕ × ℕ)) : + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ →ₗ[ℂ] SchwartzDerivativeBanach s where + toFun φ i := schwartzWeightedDerivative i.val.1 i.val.2 φ + map_add' φ ψ := by + funext i + apply BoundedContinuousFunction.ext + intro x + change ‖x‖ ^ i.val.1 • iteratedFDeriv ℝ i.val.2 (φ + ψ) x = _ + rw [show (⇑(φ + ψ)) = (⇑φ + ⇑ψ) by rfl, + iteratedFDeriv_add_apply (φ.smooth _).contDiffAt (ψ.smooth _).contDiffAt, + smul_add] + rfl + map_smul' c φ := by + funext i + apply BoundedContinuousFunction.ext + intro x + change ‖x‖ ^ i.val.1 • iteratedFDeriv ℝ i.val.2 (c • φ) x = _ + rw [show (⇑(c • φ)) = c • ⇑φ by rfl, + iteratedFDeriv_const_smul_apply (φ.smooth _).contDiffAt, smul_comm] + rfl + +theorem seminorm_le_norm_schwartzDerivativeMap (s : Finset (ℕ × ℕ)) + (i : ℕ × ℕ) (hi : i ∈ s) (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + SchwartzMap.seminorm ℂ i.1 i.2 φ ≤ ‖schwartzDerivativeMap s φ‖ := by + rw [← norm_schwartzWeightedDerivative] + exact norm_le_pi_norm (schwartzDerivativeMap s φ) ⟨i, hi⟩ + +/-- Every actual tempered distribution factors through a genuine finite Banach +product of weighted derivatives. Fourier integration through this factor still +requires actual integrability and equality of the derivative coordinates. -/ +theorem temperedDistribution_banach_factorization + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) : + ∃ s : Finset (ℕ × ℕ), ∃ L : SchwartzDerivativeBanach s →L[ℂ] ℂ, + ∀ φ, L (schwartzDerivativeMap s φ) = T φ := by + obtain ⟨s, C, _, hb⟩ := temperedDistribution_finite_seminorm_bound T + refine ⟨s, ?_⟩ + apply exists_functional_factor_of_bound + (A := SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (B := SchwartzDerivativeBanach s) (schwartzDerivativeMap s) T.toLinearMap + ((C : ℝ) * s.card) + intro φ + have hs := Seminorm.finset_sup_le_sum + (schwartzSeminormFamily ℂ (EuclideanSpace ℝ (Fin 3)) ℂ) s φ + have hsum : (∑ i ∈ s, SchwartzMap.seminorm ℂ i.1 i.2 φ) ≤ + (s.card : ℝ) * ‖schwartzDerivativeMap s φ‖ := by + calc + _ ≤ ∑ _i ∈ s, ‖schwartzDerivativeMap s φ‖ := + Finset.sum_le_sum (fun i hi => seminorm_le_norm_schwartzDerivativeMap s i hi φ) + _ = _ := by simp [nsmul_eq_mul] + calc + ‖T φ‖ ≤ C * (s.sup (schwartzSeminormFamily ℂ (EuclideanSpace ℝ (Fin 3)) ℂ)) φ := hb φ + _ ≤ C * (∑ i ∈ s, SchwartzMap.seminorm ℂ i.1 i.2 φ) := by + apply mul_le_mul_of_nonneg_left _ C.coe_nonneg + simpa only [sum_apply, schwartzSeminormFamily] using hs + _ ≤ C * ((s.card : ℝ) * ‖schwartzDerivativeMap s φ‖) := + mul_le_mul_of_nonneg_left hsum C.coe_nonneg + _ = _ := by ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SchwartzEvolution.lean b/LeanPool/VacuumBellSeparation/FreeField/SchwartzEvolution.lean new file mode 100644 index 0000000000..1acfaa0143 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SchwartzEvolution.lean @@ -0,0 +1,165 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzEvolutionDefs +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzKleinGordon + +/-! +# Actual real-time massive evolution on the Schwartz core + +These are literal Fourier multipliers in the normalized frequency convention. +Temperate growth is proved for every real time, so the multipliers do not use +the default zero branch. This file establishes the group law, the actual +frequency formula, its scalar time derivative and Plancherel norm conservation. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped SchwartzMap FourierTransform +open FourierTransform MeasureTheory + + + + + +theorem hasTemperateGrowth_massiveEvolutionPhase (m t : ℝ) : + Function.HasTemperateGrowth (massiveEvolutionPhase m t) := by + exact Complex.hasTemperateGrowth_exp_mul_I.comp + ((Function.HasTemperateGrowth.const t).mul (hasTemperateGrowth_massiveSchwartzSymbol m 1)) + +@[simp] theorem norm_massiveEvolutionPhase (m t : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : + ‖massiveEvolutionPhase m t ξ‖ = 1 := + Complex.norm_exp_ofReal_mul_I _ + +@[simp] theorem massiveEvolutionPhase_zero (m : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : + massiveEvolutionPhase m 0 ξ = 1 := by simp [massiveEvolutionPhase] + +theorem massiveEvolutionPhase_add (m s t : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : + massiveEvolutionPhase m (s + t) ξ = + massiveEvolutionPhase m s ξ * massiveEvolutionPhase m t ξ := by + simp only [massiveEvolutionPhase, add_mul, Complex.ofReal_add, Complex.exp_add] + +theorem hasDerivAt_massiveEvolutionPhase (m t : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : + HasDerivAt (fun s => massiveEvolutionPhase m s ξ) + (massiveEvolutionPhase m t ξ * ((massiveSchwartzSymbol m 1 ξ : ℂ) * Complex.I)) t := by + have h := (((hasDerivAt_id t).mul_const (massiveSchwartzSymbol m 1 ξ)).ofReal_comp.mul_const + Complex.I).cexp + simpa only [one_mul, id_eq, massiveEvolutionPhase] using! h + + + +theorem fourier_massiveSchwartzEvolution (m t : ℝ) (f : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + (𝓕 (massiveSchwartzEvolution m t f)) ξ = massiveEvolutionPhase m t ξ * (𝓕 f) ξ := by + rw [massiveSchwartzEvolution, SchwartzMap.fourierMultiplierCLM_apply, + fourier_fourierInv_eq, SchwartzMap.smulLeftCLM_apply_apply + (hasTemperateGrowth_massiveEvolutionPhase m t)] + rfl + +@[simp] theorem massiveSchwartzEvolution_zero (m : ℝ) (f : SpatialSchwartz) : + massiveSchwartzEvolution m 0 f = f := by + have hphase : massiveEvolutionPhase m 0 = fun _ => 1 := + funext (massiveEvolutionPhase_zero m) + simp [massiveSchwartzEvolution, hphase] + +theorem massiveSchwartzEvolution_add (m s t : ℝ) (f : SpatialSchwartz) : + massiveSchwartzEvolution m s (massiveSchwartzEvolution m t f) = + massiveSchwartzEvolution m (s + t) f := by + unfold massiveSchwartzEvolution + rw [SchwartzMap.fourierMultiplierCLM_fourierMultiplierCLM_apply + (hasTemperateGrowth_massiveEvolutionPhase m s) + (hasTemperateGrowth_massiveEvolutionPhase m t)] + congr 2 + funext ξ + exact (massiveEvolutionPhase_add m s t ξ).symm + +theorem massiveSchwartzEvolution_neg (m t : ℝ) (f : SpatialSchwartz) : + massiveSchwartzEvolution m (-t) (massiveSchwartzEvolution m t f) = f := by + rw [massiveSchwartzEvolution_add, neg_add_cancel, massiveSchwartzEvolution_zero] + +/-- The genuine scalar derivative of each Fourier coefficient. -/ +theorem hasDerivAt_fourier_massiveSchwartzEvolution (m t : ℝ) (f : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + HasDerivAt (fun s => (𝓕 (massiveSchwartzEvolution m s f)) ξ) + ((massiveEvolutionPhase m t ξ * + ((massiveSchwartzSymbol m 1 ξ : ℂ) * Complex.I)) * (𝓕 f) ξ) t := by + simpa only [fourier_massiveSchwartzEvolution] using + (hasDerivAt_massiveEvolutionPhase m t ξ).mul_const ((𝓕 f) ξ) + +/-- Plancherel norm conservation for the actual real-time evolution. -/ +theorem integral_norm_sq_massiveSchwartzEvolution (m t : ℝ) (f : SpatialSchwartz) : + ∫ x, ‖massiveSchwartzEvolution m t f x‖ ^ 2 = ∫ x, ‖f x‖ ^ 2 := by + rw [← SchwartzMap.integral_norm_sq_fourier (massiveSchwartzEvolution m t f), + ← SchwartzMap.integral_norm_sq_fourier f] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun ξ => by + change ‖(𝓕 (massiveSchwartzEvolution m t f)) ξ‖ ^ 2 = ‖(𝓕 f) ξ‖ ^ 2 + rw [fourier_massiveSchwartzEvolution, norm_mul, norm_massiveEvolutionPhase, one_mul] + + + +theorem hasTemperateGrowth_massiveCosine (m t : ℝ) : + Function.HasTemperateGrowth + (fun ξ => (Real.cos (t * massiveSchwartzSymbol m 1 ξ) : ℂ)) := + Complex.hasTemperateGrowth_ofReal.comp (Real.hasTemperateGrowth_cos.comp + ((Function.HasTemperateGrowth.const t).mul (hasTemperateGrowth_massiveSchwartzSymbol m 1))) + + + +theorem hasTemperateGrowth_massiveSine (m t : ℝ) : + Function.HasTemperateGrowth (fun ξ => + ((massiveSchwartzSymbol m (-1) ξ * Real.sin (t * massiveSchwartzSymbol m 1 ξ) : ℝ) : ℂ)) := + Complex.hasTemperateGrowth_ofReal.comp ((hasTemperateGrowth_massiveSchwartzSymbol m (-1)).mul + (Real.hasTemperateGrowth_sin.comp ((Function.HasTemperateGrowth.const t).mul + (hasTemperateGrowth_massiveSchwartzSymbol m 1)))) + +theorem fourier_massiveSchwartzCosine (m t : ℝ) (f : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + (𝓕 (massiveSchwartzCosine m t f)) ξ = + (Real.cos (t * massiveSchwartzSymbol m 1 ξ) : ℂ) * (𝓕 f) ξ := by + rw [massiveSchwartzCosine, SchwartzMap.fourierMultiplierCLM_apply, + fourier_fourierInv_eq, SchwartzMap.smulLeftCLM_apply_apply + (hasTemperateGrowth_massiveCosine m t)] + rfl + +theorem fourier_massiveSchwartzSine (m t : ℝ) (f : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + (𝓕 (massiveSchwartzSine m t f)) ξ = + ((massiveSchwartzSymbol m (-1) ξ * Real.sin (t * massiveSchwartzSymbol m 1 ξ) : ℝ) : ℂ) + * (𝓕 f) ξ := by + rw [massiveSchwartzSine, SchwartzMap.fourierMultiplierCLM_apply, + fourier_fourierInv_eq, SchwartzMap.smulLeftCLM_apply_apply + (hasTemperateGrowth_massiveSine m t)] + rfl + + + +@[simp] theorem massiveSchwartzCauchy_zero (m : ℝ) (f g : SpatialSchwartz) : + massiveSchwartzCauchy m 0 f g = f := by + simp [massiveSchwartzCauchy, massiveSchwartzCosine, massiveSchwartzSine] + +/-- At positive mass this is exactly the manuscript's physical dispersion, +with the frequency change `p = 2πξ` made explicit. -/ +theorem fourier_massiveSchwartzCauchy {m : ℝ} (hm : 0 < m) (t : ℝ) + (f g : SpatialSchwartz) (ξ : EuclideanSpace ℝ (Fin 3)) : + (𝓕 (massiveSchwartzCauchy m t f g)) ξ = + (Real.cos (t * dispersion m ((2 * Real.pi) • ξ)) : ℂ) * (𝓕 f) ξ + + (((dispersion m ((2 * Real.pi) • ξ))⁻¹ * + Real.sin (t * dispersion m ((2 * Real.pi) • ξ)) : ℝ) : ℂ) * (𝓕 g) ξ := by + change ((SchwartzMap.fourierTransformCLM ℂ) + (massiveSchwartzCosine m t f + massiveSchwartzSine m t g)) ξ = _ + rw [map_add] + change (𝓕 (massiveSchwartzCosine m t f)) ξ + + (𝓕 (massiveSchwartzSine m t g)) ξ = _ + simp only [ + fourier_massiveSchwartzCosine, fourier_massiveSchwartzSine, + massiveSchwartzSymbol_one hm, massiveSchwartzSymbol_neg_one hm] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SchwartzEvolutionDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/SchwartzEvolutionDefs.lean new file mode 100644 index 0000000000..7f0a10a282 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SchwartzEvolutionDefs.lean @@ -0,0 +1,46 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzKleinGordon + +/-! # Free real-time evolution of spatial Schwartz functions -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped SchwartzMap FourierTransform +open FourierTransform MeasureTheory + +/-- Spatial Schwartz with underlying type `SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ`. -/ +abbrev SpatialSchwartz := SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ + +/-- For positive mass, the phase is `exp(i t sqrt(m²+|2πξ|²))`. +For other masses this definition retains the existing massive-symbol convention. -/ +noncomputable def massiveEvolutionPhase (m t : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : ℂ := + Complex.exp (((t * massiveSchwartzSymbol m 1 ξ : ℝ) : ℂ) * Complex.I) + +/-- The actual real-time Fourier evolution, acting on spatial Schwartz data. -/ +noncomputable def massiveSchwartzEvolution (m t : ℝ) : SpatialSchwartz →L[ℂ] SpatialSchwartz := + SchwartzMap.fourierMultiplierCLM ℂ (massiveEvolutionPhase m t) + +/-- The real cosine propagator on the Schwartz core. -/ +noncomputable def massiveSchwartzCosine (m t : ℝ) : SpatialSchwartz →L[ℂ] SpatialSchwartz := + SchwartzMap.fourierMultiplierCLM ℂ + (fun ξ => (Real.cos (t * massiveSchwartzSymbol m 1 ξ) : ℂ)) + +/-- At positive mass, the sine propagator divided by the strictly positive energy. -/ +noncomputable def massiveSchwartzSine (m t : ℝ) : SpatialSchwartz →L[ℂ] SpatialSchwartz := + SchwartzMap.fourierMultiplierCLM ℂ (fun ξ => + ((massiveSchwartzSymbol m (-1) ξ * Real.sin (t * massiveSchwartzSymbol m 1 ξ) : ℝ) : ℂ)) + +/-- Literal solution candidate for initial position `f` and velocity `g`. -/ +noncomputable def massiveSchwartzCauchy (m t : ℝ) (f g : SpatialSchwartz) : SpatialSchwartz := + massiveSchwartzCosine m t f + massiveSchwartzSine m t g + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SchwartzKleinGordon.lean b/LeanPool/VacuumBellSeparation/FreeField/SchwartzKleinGordon.lean new file mode 100644 index 0000000000..644567f02f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SchwartzKleinGordon.lean @@ -0,0 +1,157 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Defs +public import Mathlib.Analysis.Distribution.FourierMultiplier + +/-! +# Massive Klein–Gordon powers on the Schwartz core + +The symbols use Mathlib's normalized Fourier frequency. Their temperate growth +is proved, so `fourierMultiplierCLM` is actual multiplication, not its default +zero branch. The positive square-root symbol is the source energy evaluated at +`2πξ`. +-/ + +@[expose] public section + +open scoped SchwartzMap FourierTransform +open MeasureTheory + +namespace VacuumBellSeparation + +/-- A scaled Bessel-potential symbol for the `s`th power of the massive energy. +Theorems identifying it with the energy use `m > 0`. -/ +noncomputable def massiveSchwartzSymbol (m s : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : ℝ := + m ^ s * (1 + ‖((2 * Real.pi) / m) • ξ‖ ^ 2) ^ (s / 2) + +theorem hasTemperateGrowth_massiveSchwartzSymbol (m s : ℝ) : + Function.HasTemperateGrowth (massiveSchwartzSymbol m s) := by + unfold massiveSchwartzSymbol + apply Function.HasTemperateGrowth.mul (Function.HasTemperateGrowth.const _) + exact (Function.hasTemperateGrowth_one_add_norm_sq_rpow + (EuclideanSpace ℝ (Fin 3)) (s / 2)).comp (by fun_prop) + +theorem massiveSchwartzSymbol_pos {m : ℝ} (hm : 0 < m) (s : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) : 0 < massiveSchwartzSymbol m s ξ := by + unfold massiveSchwartzSymbol + positivity + +theorem massiveSchwartzSymbol_add {m : ℝ} (hm : 0 < m) (s t : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) : + massiveSchwartzSymbol m (s + t) ξ = + massiveSchwartzSymbol m s ξ * massiveSchwartzSymbol m t ξ := by + unfold massiveSchwartzSymbol + rw [Real.rpow_add hm, add_div, Real.rpow_add (by positivity)] + ring + +@[simp] theorem massiveSchwartzSymbol_zero (m : ℝ) (ξ : EuclideanSpace ℝ (Fin 3)) : + massiveSchwartzSymbol m 0 ξ = 1 := by + simp [massiveSchwartzSymbol] + +theorem massiveSchwartzSymbol_two {m : ℝ} (hm : 0 < m) + (ξ : EuclideanSpace ℝ (Fin 3)) : + massiveSchwartzSymbol m 2 ξ = m ^ 2 + (2 * Real.pi) ^ 2 * ‖ξ‖ ^ 2 := by + have hc : 0 ≤ 2 * Real.pi / m := by positivity + simp only [massiveSchwartzSymbol, div_self (by norm_num : (2 : ℝ) ≠ 0), + Real.rpow_two, Real.rpow_one, + norm_smul, Real.norm_eq_abs, abs_of_nonneg hc] + field_simp [hm.ne'] + +/-- The positive first-power symbol is exactly the relativistic energy. -/ +theorem massiveSchwartzSymbol_one {m : ℝ} (hm : 0 < m) + (ξ : EuclideanSpace ℝ (Fin 3)) : + massiveSchwartzSymbol m 1 ξ = dispersion m ((2 * Real.pi) • ξ) := by + have hsq : (massiveSchwartzSymbol m 1 ξ) ^ 2 = + m ^ 2 + (2 * Real.pi) ^ 2 * ‖ξ‖ ^ 2 := by + rw [pow_two, ← massiveSchwartzSymbol_add hm, show (1 : ℝ) + 1 = 2 by norm_num, + massiveSchwartzSymbol_two hm] + have hd : (dispersion m ((2 * Real.pi) • ξ)) ^ 2 = + m ^ 2 + (2 * Real.pi) ^ 2 * ‖ξ‖ ^ 2 := by + rw [dispersion, Real.sq_sqrt (by positivity), norm_smul, Real.norm_eq_abs, + abs_of_pos (by positivity : 0 < 2 * Real.pi)] + ring + have hp := massiveSchwartzSymbol_pos hm 1 ξ + have hq : 0 ≤ dispersion m ((2 * Real.pi) • ξ) := Real.sqrt_nonneg _ + nlinarith + +theorem massiveSchwartzSymbol_neg_one {m : ℝ} (hm : 0 < m) + (ξ : EuclideanSpace ℝ (Fin 3)) : + massiveSchwartzSymbol m (-1) ξ = (dispersion m ((2 * Real.pi) • ξ))⁻¹ := by + have h := massiveSchwartzSymbol_add hm (-1) 1 ξ + rw [neg_add_cancel, massiveSchwartzSymbol_zero, massiveSchwartzSymbol_one hm] at h + exact eq_inv_of_mul_eq_one_left h.symm + +/-- Powers of the position-space massive energy on the Schwartz core. -/ +noncomputable def massiveSchwartzPower (m s : ℝ) : + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ →L[ℂ] + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + SchwartzMap.fourierMultiplierCLM ℂ (fun ξ => (massiveSchwartzSymbol m s ξ : ℂ)) + +theorem hasTemperateGrowth_complex_massiveSchwartzSymbol (m s : ℝ) : + Function.HasTemperateGrowth (fun ξ => (massiveSchwartzSymbol m s ξ : ℂ)) := + Complex.ofRealCLM.hasTemperateGrowth.comp (hasTemperateGrowth_massiveSchwartzSymbol m s) + +/-- Powers compose by addition of their exponents on the Schwartz core. -/ +theorem massiveSchwartzPower_add {m : ℝ} (hm : 0 < m) (s t : ℝ) + (f : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + massiveSchwartzPower m s (massiveSchwartzPower m t f) = massiveSchwartzPower m (s + t) f := by + unfold massiveSchwartzPower + rw [SchwartzMap.fourierMultiplierCLM_fourierMultiplierCLM_apply + (hasTemperateGrowth_complex_massiveSchwartzSymbol m s) + (hasTemperateGrowth_complex_massiveSchwartzSymbol m t)] + congr 2 + funext ξ + simp only [Pi.mul_apply, massiveSchwartzSymbol_add hm, Complex.ofReal_mul] + +@[simp] theorem massiveSchwartzPower_zero (m : ℝ) : + massiveSchwartzPower m 0 = ContinuousLinearMap.id ℂ _ := by + simp [massiveSchwartzPower, massiveSchwartzSymbol_zero] + +/-- The reciprocal and square-root energy multipliers are genuine inverses on this core. -/ +theorem massiveSchwartzPower_inv {m : ℝ} (hm : 0 < m) (s : ℝ) + (f : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + massiveSchwartzPower m (-s) (massiveSchwartzPower m s f) = f := by + rw [massiveSchwartzPower_add hm, neg_add_cancel, massiveSchwartzPower_zero] + rfl + +open Laplacian + +/-- The second energy power is the actual massive spatial Klein–Gordon +differential operator, with the Laplacian sign fixed by Fourier normalization. -/ +theorem massiveSchwartzPower_two {m : ℝ} (hm : 0 < m) + (f : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + massiveSchwartzPower m 2 f = ((m ^ 2 : ℝ) : ℂ) • f - Δ f := by + apply (FourierTransform.fourierCLE ℂ + (SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ)).injective + change 𝓕 (massiveSchwartzPower m 2 f) = 𝓕 (((m ^ 2 : ℝ) : ℂ) • f - Δ f) + rw [SchwartzMap.laplacian_eq_fourierMultiplierCLM] + simp only [massiveSchwartzPower, SchwartzMap.fourierMultiplierCLM_apply, + sub_eq_add_neg, FourierTransform.fourier_add, FourierTransform.fourier_neg, + FourierTransform.fourier_smul, + FourierTransform.fourier_fourierInv_eq] + ext ξ + rw [SchwartzMap.smulLeftCLM_apply_apply + (hasTemperateGrowth_complex_massiveSchwartzSymbol m 2)] + simp only [ + SchwartzMap.smulLeftCLM_apply_apply + (Function.hasTemperateGrowth_norm_sq (EuclideanSpace ℝ (Fin 3))), + smul_apply, add_apply, neg_apply, smul_eq_mul, Complex.real_smul, + massiveSchwartzSymbol_two hm] + push_cast + ring + +/-- The positive-energy first-power multiplier squares to `-Δ + m²` on Schwartz space. -/ +theorem massiveSchwartzPower_one_sq {m : ℝ} (hm : 0 < m) + (f : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + massiveSchwartzPower m 1 (massiveSchwartzPower m 1 f) = + ((m ^ 2 : ℝ) : ℂ) • f - Δ f := by + rw [massiveSchwartzPower_add hm, show (1 : ℝ) + 1 = 2 by norm_num, + massiveSchwartzPower_two hm] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SchwartzL2Differentiation.lean b/LeanPool/VacuumBellSeparation/FreeField/SchwartzL2Differentiation.lean new file mode 100644 index 0000000000..c08514a7ef --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SchwartzL2Differentiation.lean @@ -0,0 +1,83 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzEvolution +public import Mathlib.Analysis.Fourier.LpSpace + +/-! +# Dominated real-time differentiation of Schwartz curves in L² + +Pointwise scalar derivatives and an actual integrable bound on the squared +slope residual give a derivative of the corresponding L² curve. No topology +on the curve in Schwartz space is assumed. This is useful for real-time wave +evolution, where a complex-time Schwartz power series need not converge. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology +open scoped SchwartzMap ENNReal + +/-- The actual L² norm of a Schwartz function, in square-integral form. -/ +theorem norm_spatialSchwartz_toL2 (f : SpatialSchwartz) : + ‖f.toLp 2‖ = Real.sqrt (∫ x, ‖f x‖ ^ 2) := by + rw [SchwartzMap.norm_toLp' (by norm_num : (2 : ℝ≥0∞) ≠ 0) + (by norm_num : (2 : ℝ≥0∞) ≠ ⊤), Real.sqrt_eq_rpow] + norm_num [Real.rpow_two, one_div] + +/-- A dominated pointwise limit of actual Schwartz functions converges in L². +The domination is on the squared norm, against an actual integrable function. -/ +theorem tendsto_spatialSchwartz_toL2_zero_of_dominated + {α : Type*} {l : Filter α} [l.IsCountablyGenerated] + (F : α → SpatialSchwartz) (bound : EuclideanSpace ℝ (Fin 3) → ℝ) + (hbound : Integrable bound) + (hdom : ∀ᶠ i in l, ∀ᵐ x, ‖F i x‖ ^ 2 ≤ bound x) + (hpoint : ∀ᵐ x, Tendsto (fun i => F i x) l (𝓝 0)) : + Tendsto (fun i => (F i).toLp 2) l (𝓝 (0 : Lp ℂ 2 (volume : Measure (EuclideanSpace ℝ + (Fin 3))))) := by + have ht : Tendsto (fun i => ∫ x, ‖F i x‖ ^ 2) l (𝓝 0) := by + have h := tendsto_integral_filter_of_dominated_convergence + (F := fun i x => ‖F i x‖ ^ 2) (f := fun _ => (0 : ℝ)) bound + (Eventually.of_forall fun i => ((F i).continuous.norm.pow 2).aestronglyMeasurable) + (hdom.mono fun i hi => hi.mono fun x hx => by + simpa only [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg ‖F i x‖)] using hx) + hbound (hpoint.mono fun x hx => by simpa using hx.norm.pow 2) + simpa only [integral_zero] using h + rw [tendsto_zero_iff_norm_tendsto_zero] + simpa only [norm_spatialSchwartz_toL2, Function.comp_def, Real.sqrt_zero] using + Real.continuous_sqrt.continuousAt.tendsto.comp ht + +/-- A scalar derivative on every spatial point lifts to a genuine L² derivative +when the squared slope residual has an integrable majorant near the time. -/ +theorem hasDerivAt_spatialSchwartz_toL2_of_dominated + (F : ℝ → SpatialSchwartz) (G : SpatialSchwartz) (t : ℝ) + (hpoint : ∀ x, HasDerivAt (fun s => F s x) (G x) t) + (bound : EuclideanSpace ℝ (Fin 3) → ℝ) (hbound : Integrable bound) + (hdom : ∀ᶠ s in 𝓝[≠] t, ∀ᵐ x, + ‖(s - t)⁻¹ • (F s x - F t x) - G x‖ ^ 2 ≤ bound x) : + HasDerivAt (fun s => (F s).toLp 2) (G.toLp 2) t := by + let Q (s : ℝ) : SpatialSchwartz := (s - t)⁻¹ • (F s - F t) - G + have hQ : Tendsto (fun s => (Q s).toLp 2) (𝓝[≠] t) (𝓝 (0 : Lp ℂ 2 (volume : Measure + (EuclideanSpace ℝ (Fin 3))))) := by + apply tendsto_spatialSchwartz_toL2_zero_of_dominated Q bound hbound + · simpa only [Q, sub_apply, smul_apply] using hdom + · exact Eventually.of_forall fun x => by + simpa only [Q, sub_apply, smul_apply, slope, vsub_eq_sub, + sub_self] using + (hpoint x).tendsto_slope.sub (tendsto_const_nhds (x := G x)) + rw [hasDerivAt_iff_tendsto_slope, tendsto_iff_norm_sub_tendsto_zero] + have hnorm := (tendsto_zero_iff_norm_tendsto_zero.mp hQ) + have hQeq (s : ℝ) : (Q s).toLp 2 (μ := volume) = + slope (fun s => (F s).toLp 2 (μ := volume)) t s - G.toLp 2 (μ := volume) := by + change SchwartzMap.toLpCLM ℝ ℂ 2 volume (Q s) = _ + simp only [Q, map_sub, map_smul, SchwartzMap.toLpCLM_apply, slope, vsub_eq_sub] + simpa only [hQeq] using hnorm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SchwartzSeries.lean b/LeanPool/VacuumBellSeparation/FreeField/SchwartzSeries.lean new file mode 100644 index 0000000000..57b874f029 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SchwartzSeries.lean @@ -0,0 +1,111 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Distribution.SchwartzSpace.Basic +public import Mathlib.Analysis.Calculus.SmoothSeries + +/-! +# Convergence of absolutely bounded Schwartz series + +The limit is constructed as the actual pointwise sum. Mathlib's smooth-series +theorem identifies all of its derivatives, and the summable Schwartz +seminorm bounds prove rapid decay and convergence in the actual Schwartz +topology. No completeness instance or normed structure on Schwartz space is +assumed. The convergence assertion below is for natural partial sums. +-/ + +@[expose] public section + +open Filter Topology +open scoped SchwartzMap + +namespace VacuumBellSeparation + +variable (f : ℕ → SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (hf : ∀ k j, Summable (fun n => SchwartzMap.seminorm ℂ k j (f n))) + +include hf + +theorem summable_schwartzSeries_iteratedFDeriv (j : ℕ) (x : EuclideanSpace ℝ (Fin 3)) : + Summable (fun n => iteratedFDeriv ℝ j (f n) x) := + (hf 0 j).of_norm_bounded fun n => by + simpa only [pow_zero, one_mul] using (f n).le_seminorm ℂ 0 j x + +theorem schwartzSeries_iteratedFDeriv (j : ℕ) (x : EuclideanSpace ℝ (Fin 3)) : + iteratedFDeriv ℝ j (fun y => ∑' n, f n y) x = + ∑' n, iteratedFDeriv ℝ j (f n) x := by + apply iteratedFDeriv_tsum_apply (N := (⊤ : ℕ∞)) + (v := fun j n => SchwartzMap.seminorm ℂ 0 j (f n)) + (fun n => (f n).smooth ⊤) (fun j _ => hf 0 j) ?_ le_top x + intro j n y hj + simpa only [pow_zero, one_mul] using (f n).le_seminorm ℂ 0 j y + +theorem schwartzSeries_weighted_derivative_bound (k j : ℕ) + (x : EuclideanSpace ℝ (Fin 3)) : + ‖x‖ ^ k * ‖iteratedFDeriv ℝ j (fun y => ∑' n, f n y) x‖ ≤ + ∑' n, SchwartzMap.seminorm ℂ k j (f n) := by + rw [schwartzSeries_iteratedFDeriv f hf j x] + have hs := (summable_schwartzSeries_iteratedFDeriv f hf j x).hasSum.const_smul (‖x‖ ^ k) + have hb := hs.norm_le_of_bounded (hf k j).hasSum (fun n => + show ‖‖x‖ ^ k • iteratedFDeriv ℝ j (f n) x‖ ≤ SchwartzMap.seminorm ℂ k j (f n) from by + simpa only [norm_smul, Real.norm_eq_abs, abs_of_nonneg (pow_nonneg (norm_nonneg x) k)] + using (f n).le_seminorm ℂ k j x) + simpa only [norm_smul, Real.norm_eq_abs, abs_of_nonneg (pow_nonneg (norm_nonneg x) k)] using hb + +/-- The actual pointwise series is a Schwartz function under summable seminorm bounds. -/ +noncomputable def schwartzSeries : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ where + toFun x := ∑' n, f n x + smooth' := by + apply contDiff_tsum (N := (⊤ : ℕ∞)) + (v := fun j n => SchwartzMap.seminorm ℂ 0 j (f n)) + (fun n => (f n).smooth ⊤) (fun j _ => hf 0 j) + intro j n x hj + simpa only [pow_zero, one_mul] using (f n).le_seminorm ℂ 0 j x + decay' k j := ⟨∑' n, SchwartzMap.seminorm ℂ k j (f n), + schwartzSeries_weighted_derivative_bound f hf k j⟩ + +@[simp] theorem schwartzSeries_apply (x : EuclideanSpace ℝ (Fin 3)) : + schwartzSeries f hf x = ∑' n, f n x := rfl + +theorem seminorm_schwartzSeries_le (k j : ℕ) : + SchwartzMap.seminorm ℂ k j (schwartzSeries f hf) ≤ + ∑' n, SchwartzMap.seminorm ℂ k j (f n) := + SchwartzMap.seminorm_le_bound ℂ k j _ (tsum_nonneg fun n => by positivity) + (schwartzSeries_weighted_derivative_bound f hf k j) + +theorem schwartzSeries_tail_summable (N k j : ℕ) : + Summable (fun n => SchwartzMap.seminorm ℂ k j (f (n + N))) := + (summable_nat_add_iff N).mpr (hf k j) + +theorem schwartzSeries_split (N : ℕ) : + (∑ n ∈ Finset.range N, f n) + + schwartzSeries (fun n => f (n + N)) (schwartzSeries_tail_summable f hf N) = + schwartzSeries f hf := by + ext x + have hs : Summable (fun n => f n x) := + (hf 0 0).of_norm_bounded fun n => (f n).norm_le_seminorm ℂ x + simpa only [add_apply, sum_apply, schwartzSeries_apply] using + hs.sum_add_tsum_nat_add N + +/-- Natural partial sums converge in every Schwartz seminorm to the explicitly constructed sum. -/ +theorem tendsto_schwartzSeries_partialSums : + Tendsto (fun N => ∑ n ∈ Finset.range N, f n) atTop (𝓝 (schwartzSeries f hf)) := by + rw [(schwartz_withSeminorms ℂ (EuclideanSpace ℝ (Fin 3)) ℂ).tendsto_nhds] + intro kj ε hε + have ht := (tendsto_sum_nat_add + (fun n => SchwartzMap.seminorm ℂ kj.1 kj.2 (f n))).eventually (gt_mem_nhds hε) + filter_upwards [ht] with N hN + have heq : (∑ n ∈ Finset.range N, f n) - schwartzSeries f hf = + -schwartzSeries (fun n => f (n + N)) (schwartzSeries_tail_summable f hf N) := by + rw [← schwartzSeries_split f hf N] + abel + rw [heq, map_neg_eq_map] + exact (seminorm_schwartzSeries_le (fun n => f (n + N)) + (schwartzSeries_tail_summable f hf N) kj.1 kj.2).trans_lt hN + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Section8EstimatesProof.lean b/LeanPool/VacuumBellSeparation/FreeField/Section8EstimatesProof.lean new file mode 100644 index 0000000000..768fab88b0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Section8EstimatesProof.lean @@ -0,0 +1,54 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RegionalForwardExactConstant +public import LeanPool.VacuumBellSeparation.FreeField.RegionalReverseDoubleCones +public import LeanPool.VacuumBellSeparation.FreeField.MainReduction + +/-! +# The actual physical estimates used in Section 8 + +The forward and reverse constructions supply constants before the mass, +separation and vacuum representation. Taking the maximum of their eventual +thresholds gives the existing Section8Estimates statement. The original +double cones, their full von Neumann algebras and all local contractions are +retained. No estimate is supplied as a premise. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem spatialAxisDisplacement_zero_eq_axis (s : ℝ) : + spatialAxisDisplacement s 0 = s • e₁ := by + ext i + fin_cases i <;> simp [spatialAxisDisplacement, e₁] + +/-- The Section 8 hypothesis of the previously established reduction is +discharged by the actual regional estimates. -/ +theorem section8Estimates : Section8Estimates := by + obtain ⟨Sp, Ap, hSp, hAp, hp⟩ := + exists_uniform_doubleCone_forward_exact_constant + let Q₀ := 4 * Real.sqrt (Ap / expB rPlus) + have hb : 0 < expB rPlus := by norm_num [expB, rPlus] + have hQ₀ : 0 < Q₀ := mul_pos (by norm_num) (Real.sqrt_pos.2 (div_pos hAp hb)) + obtain ⟨Sm, Am, hSm, hAm, hm⟩ := exists_uniform_doubleCone_reverse + refine ⟨Ap, Am, Q₀, max Sp Sm, hAp, hAm, hQ₀, ?_⟩ + intro μ s hμ hs _ _ _ H _ _ _ V + have hforward := hp μ hμ s ((le_max_left _ _).trans hs) H V + have hreverse := hm μ hμ s ((le_max_right _ _).trans hs) H V + simp only [spatialAxisDisplacement_zero_eq_axis] at hforward hreverse + refine ⟨hforward.2.1, ?_, ?_⟩ + · have h := hreverse.2 + rw [← div_eq_mul_inv] at h + exact h + · intro A hA B hB + change ‖vacuumComplexCovariance V.vacuum A B‖ ≤ Q₀ / s + exact hforward.2.2 A hA.1 B hB.1 hA.2.2 hB.2.2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ShellBoostMeasure.lean b/LeanPool/VacuumBellSeparation/FreeField/ShellBoostMeasure.lean new file mode 100644 index 0000000000..3f9250b307 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ShellBoostMeasure.lean @@ -0,0 +1,94 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Lorentz +public import LeanPool.VacuumBellSeparation.FreeField.Existence + +/-! +# Boost invariance of the actual positive one-particle measure + +The old complex integral identity is strengthened to equality of measures. +The genuine Jacobian theorem applies to arbitrary measurable sets, so the +result supports pullback on the entire one-particle L2 space, without any +integrability or compact-support condition on the input wave function. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +variable {m : ℝ} (hm : 0 < m) + +include hm + +theorem continuous_shellBoost (η : ℝ) : Continuous (shellBoost m η) := + continuous_iff_continuousAt.mpr fun p => (hasFDerivAt_shellBoost hm.ne' η p).continuousAt + +theorem shellBoost_jacobian_weight (η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + ENNReal.ofReal |(shellBoostDeriv m η p).det| * + (oneParticleWeight m (shellBoost m η p) : ℝ≥0∞) = (oneParticleWeight m p : ℝ≥0∞) := by + have hw : |(shellBoostDeriv m η p).det| * + (oneParticleWeight m (shellBoost m η p) : ℝ) = (oneParticleWeight m p : ℝ) := by + have h := congrArg Complex.re (abs_det_shellBoostDeriv_smul hm.ne' η p 1) + simpa only [one_mul, Complex.smul_re, smul_eq_mul, Complex.ofReal_re, + oneParticleWeight_coe hm] using h + calc + _ = ENNReal.ofReal (|(shellBoostDeriv m η p).det| * + (oneParticleWeight m (shellBoost m η p) : ℝ)) := by + rw [ENNReal.ofReal_mul (abs_nonneg _), ENNReal.ofReal_coe_nnreal] + _ = _ := by rw [hw, ENNReal.ofReal_coe_nnreal] + +/-- Genuine invariance of the positive measure, including sets of infinite measure. -/ +theorem measurePreserving_shellBoost (η : ℝ) : + MeasurePreserving (shellBoost m η) (oneParticleMeasure m) (oneParticleMeasure m) := by + have hmeas := (continuous_shellBoost hm η).measurable + refine ⟨hmeas, ?_⟩ + apply Measure.ext + intro s hs + have hpre := hs.preimage hmeas + rw [Measure.map_apply hmeas hs, oneParticleMeasure, + withDensity_apply _ hpre, withDensity_apply _ hs] + have hj := lintegral_image_eq_lintegral_abs_det_fderiv_mul volume hpre + (fun p hp => (hasFDerivAt_shellBoost hm.ne' η p).hasFDerivWithinAt) + (shellBoost_injective m η).injOn (fun p => (oneParticleWeight m p : ℝ≥0∞)) + rw [Set.image_preimage_eq s (shellBoost_surjective m η)] at hj + simpa only [shellBoost_jacobian_weight hm η] using hj.symm + +/-- The boost action with the manuscript's inverse-label convention +U(Λη)ψ(p)=ψ(Λ(-η)p), on the complete one-particle Hilbert space. -/ +noncomputable def oneParticleBoostIsometry (η : ℝ) : + Lp ℂ 2 (oneParticleMeasure m) →ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + Lp.compMeasurePreservingₗᵢ ℂ (shellBoost m (-η)) (measurePreserving_shellBoost hm (-η)) + +theorem oneParticleBoostIsometry_ae (η : ℝ) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + oneParticleBoostIsometry hm η ψ =ᵐ[oneParticleMeasure m] ψ ∘ shellBoost m (-η) := + Lp.coeFn_compMeasurePreserving ψ (measurePreserving_shellBoost hm (-η)) + +theorem oneParticleBoostIsometry_neg_apply (η : ℝ) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + oneParticleBoostIsometry hm (-η) (oneParticleBoostIsometry hm η ψ) = ψ := by + change Lp.compMeasurePreserving (shellBoost m (- -η)) _ + (Lp.compMeasurePreserving (shellBoost m (-η)) _ ψ) = ψ + rw [← Lp.compMeasurePreserving_comp_apply] + have hcomp : shellBoost m (-η) ∘ shellBoost m (- -η) = id := by + funext p + simp only [Function.comp_apply, neg_neg, shellBoost_neg_shellBoost, id_eq] + simp only [hcomp, Lp.compMeasurePreserving_id_apply] + +/-- Linear isometry equivalence for the one particle boost, of type `Lp ℂ 2 (oneParticleMeasure m) +≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def oneParticleBoost (η : ℝ) : + Lp ℂ 2 (oneParticleMeasure m) ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + LinearIsometryEquiv.ofSurjective (oneParticleBoostIsometry hm η) (by + intro ψ + refine ⟨oneParticleBoostIsometry hm (-η) ψ, ?_⟩ + simpa only [neg_neg] using oneParticleBoostIsometry_neg_apply hm (-η) ψ) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ShiftedWedgeContour.lean b/LeanPool/VacuumBellSeparation/FreeField/ShiftedWedgeContour.lean new file mode 100644 index 0000000000..725d70a48a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ShiftedWedgeContour.lean @@ -0,0 +1,109 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroWedgeContour +public import LeanPool.VacuumBellSeparation.FreeField.ShiftedWedgeModularPowers + +/-! +# The translated wedge contour with the manuscript's exact damping + +The source translated by -ell e1 has complex Fourier factor exp(i ell z1). +On the actual imaginary boost its squared modulus is +exp(-2 ell omega sin(2 pi c)). The outer physical translation is unitary. +Every graph and norm below refers to the original source and maximal power. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace + +theorem spatialDot_edge (z : Fin 3 → ℂ) (ℓ : ℝ) : + spatialDot z (fun i => ((ℓ • e₁) i : ℂ)) = (ℓ : ℂ) * z 0 := by + simp [spatialDot_eq, e₁, mul_comm] + +theorem complexShellBoost_first_im (m θ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + ((complexShellBoost m ((θ : ℂ) * Complex.I) p).2 0).im = + dispersion m p * Real.sin θ := by + simp [complexShellBoost, Complex.cosh_mul_I, Complex.sinh_mul_I, + ← Complex.ofReal_cos, ← Complex.ofReal_sin, Complex.mul_im] + +theorem norm_complexTranslation_edge (m ℓ θ : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + ‖Complex.exp (-(Complex.I * spatialDot + (complexShellBoost m ((θ : ℂ) * Complex.I) p).2 + (fun i => ((-(ℓ • e₁)) i : ℂ))))‖ = + Real.exp (-ℓ * dispersion m p * Real.sin θ) := by + rw [← neg_smul, spatialDot_edge, Complex.norm_exp] + congr 1 + simp only [Complex.neg_re, Complex.mul_re, Complex.I_re, Complex.I_im, + zero_mul, one_mul, zero_sub, neg_neg, Complex.ofReal_re, Complex.ofReal_im, + Complex.mul_im, Complex.neg_im, Complex.ofReal_neg, neg_zero, add_zero, + complexShellBoost_first_im] + ring + +theorem complexSourceWave_translate_edge_norm_sq (m ℓ θ : ℝ) + (u : TimeZeroSource) (p : EuclideanSpace ℝ (Fin 3)) : + ‖complexSourceWave (timeZeroTranslate (-(ℓ • e₁)) u) + (complexShellBoost m ((θ : ℂ) * Complex.I) p)‖ ^ 2 = + Real.exp (-2 * ℓ * dispersion m p * Real.sin θ) * + ‖complexSourceWave u (complexShellBoost m ((θ : ℂ) * Complex.I) p)‖ ^ 2 := by + rw [complexSourceWave_translate, norm_mul, mul_pow, norm_complexTranslation_edge, + pow_two, ← Real.exp_add] + congr 2 + ring + +/-- Equation wedge-contour for literal compact Cauchy data, including full +maximal-domain membership, at every translated left wedge. -/ +theorem timeZero_shiftedWedge_contour_norm {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + (u : TimeZeroSource) + (hf : tsupport u.1.1 ⊆ leftWedgeTimeZero ℓ) + (hg : tsupport u.2.1 ⊆ leftWedgeTimeZero ℓ) + {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + ∃ χ : Lp ℂ 2 (oneParticleMeasure m), + (timeZeroL2 hm u, χ) ∈ (shiftedWedgeExponential hm ℓ c).graph ∧ + ‖χ‖ ^ 2 = ∫ p, Real.exp (-2 * ℓ * dispersion m p * Real.sin (2 * Real.pi * c)) * + ‖complexSourceWave u + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p)‖ ^ 2 + ∂oneParticleMeasure m := by + let v := timeZeroTranslate (-(ℓ • e₁)) u + have hvf : tsupport v.1.1 ⊆ leftWedgeTimeZero 0 := + spatialTestTranslate_support_subset (leftWedgeTimeZero_sub_edge ℓ) u.1 hf + have hvg : tsupport v.2.1 ⊆ leftWedgeTimeZero 0 := + spatialTestTranslate_support_subset (leftWedgeTimeZero_sub_edge ℓ) u.2 hg + obtain ⟨ψ, hψ, _, hnorm⟩ := timeZero_wedgePower_contour_norm hm v hvf hvg hc hc2 + refine ⟨oneParticleSpatialTranslation m (ℓ • e₁) ψ, ?_, ?_⟩ + · rw [shiftedWedgeExponential, unitaryPartialTransport_mem_graph, + LinearIsometryEquiv.symm_apply_apply, oneParticleSpatialTranslation_symm, + ← timeZeroL2_translate] + exact hψ + · rw [LinearIsometryEquiv.norm_map, hnorm] + exact integral_congr_ae (Filter.Eventually.of_forall fun p => + complexSourceWave_translate_edge_norm_sq m ℓ (2 * Real.pi * c) u p) + +/-- The literal damped contour estimate for sources in any contained region. -/ +theorem shifted_complexSourceWave_contour_le_sourceWeight {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + {U : Set (EuclideanSpace ℝ (Fin 3))} (hU : U ⊆ leftWedgeTimeZero ℓ) + (u : SourceTestSpace hm U) {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) : + (∫ p, Real.exp (-2 * ℓ * dispersion m p * Real.sin (2 * Real.pi * c)) * + ‖complexSourceWave u.1 + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p)‖ ^ 2 + ∂oneParticleMeasure m) ≤ + ‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U))‖ ^ 2 := by + obtain ⟨χ, hχ, hnorm⟩ := timeZero_shiftedWedge_contour_norm hm ℓ u.1 + (u.2.1.trans hU) (u.2.2.trans hU) hc.le hc2 + obtain ⟨ψ, hψ, hbound⟩ := shiftedWedgeExponential_containing_wedge hm ℓ hU hc hc2 + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U)) + rw [complexSourceMap_ofReal_test] at hψ + have he := (shiftedWedgeExponential hm ℓ c).mem_graph_snd_inj hχ hψ rfl + rw [← hnorm, he] + exact pow_le_pow_left₀ (norm_nonneg _) hbound 2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ShiftedWedgeModularGraph.lean b/LeanPool/VacuumBellSeparation/FreeField/ShiftedWedgeModularGraph.lean new file mode 100644 index 0000000000..f1388838a2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ShiftedWedgeModularGraph.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceTranslation +public import LeanPool.VacuumBellSeparation.FreeField.AntilinearGraphTransport +public import LeanPool.VacuumBellSeparation.FreeField.WedgePhysicalResolvent + +/-! +# The full physical modular graph and resolvent of each shifted wedge + +The source graph is the literal graph of the translated completed source +space. Its universal S*S is proved equal to the unitary translate of the +maximal rapidity exponential. The original kappa kappa*/2 resolvent then +has the exact logistic multiplier in shifted Fourier coordinates. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +variable {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + +/-- Linear isometry equivalence for the shifted wedge Fourier, of type `Lp ℂ 2 (oneParticleMeasure +m) ≃ₗᵢ[ℂ] RapidityL2`. -/ +noncomputable def shiftedWedgeFourier : Lp ℂ 2 (oneParticleMeasure m) ≃ₗᵢ[ℂ] RapidityL2 := + (oneParticleSpatialTranslation m (ℓ • e₁)).symm.trans (oneParticleRapidityFourier hm) + +/-- Linear map for the shifted wedge exponential, of type `Lp ℂ 2 (oneParticleMeasure m) →ₗ.[ℂ] Lp +ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def shiftedWedgeExponential (c : ℝ) : + Lp ℂ 2 (oneParticleMeasure m) →ₗ.[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + unitaryPartialTransport (oneParticleSpatialTranslation m (ℓ • e₁)) + (physicalRapidityExponential hm c) + +theorem shiftedWedgeExponential_mem_graph (c : ℝ) + (ψ χ : Lp ℂ 2 (oneParticleMeasure m)) : + (ψ, χ) ∈ (shiftedWedgeExponential hm ℓ c).graph ↔ + (shiftedWedgeFourier hm ℓ ψ, shiftedWedgeFourier hm ℓ χ) ∈ + (rapidityExponential c).graph := by + rw [shiftedWedgeExponential, unitaryPartialTransport_mem_graph, + physicalRapidityExponential_mem_graph_iff] + rfl + +/-- Literal full S*S identification, for every real edge position. -/ +theorem shiftedWedgeTomitaModularGraph_iff (ψ χ : Lp ℂ 2 (oneParticleMeasure m)) : + (ψ, χ) ∈ antilinearGraphSquare (sourceTomitaGraph hm (leftWedgeTimeZero ℓ)) ↔ + (ψ, χ) ∈ (shiftedWedgeExponential hm ℓ 1).graph := by + rw [shiftedWedgeExponential, unitaryPartialTransport_mem_graph] + have h := antilinearGraphSquare_unitary (oneParticleSpatialTranslation m (ℓ • e₁)) + (sourceTomitaGraph hm (leftWedgeTimeZero 0)) + (sourceTomitaGraph hm (leftWedgeTimeZero ℓ)) + (leftWedge_sourceTomitaGraph_translation hm ℓ) + ((oneParticleSpatialTranslation m (ℓ • e₁)).symm ψ) + ((oneParticleSpatialTranslation m (ℓ • e₁)).symm χ) + simp only [LinearIsometryEquiv.apply_symm_apply] at h + exact h.trans (leftWedgeTomitaModularGraph_iff hm _ _) + +theorem shiftedWedgePhysicalResolvent_fourier (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + shiftedWedgeFourier hm ℓ (sourcePhysicalResolvent hm (leftWedgeTimeZero ℓ) ψ) = + exponentialResolvent rapidityMeasure (rapidityFrequencyExponent 1) + (measurable_rapidityFrequencyExponent 1) (shiftedWedgeFourier hm ℓ ψ) := by + have hg := (shiftedWedgeExponential_mem_graph hm ℓ 1 _ _).mp + ((shiftedWedgeTomitaModularGraph_iff hm ℓ _ _).mp + (sourcePhysicalResolvent_mem_square hm (leftWedgeTimeZero ℓ) ψ)) + rw [LinearPMap.mem_graph_iff] at hg + obtain ⟨y, hy, hv⟩ := hg + change (y : RapidityL2) = shiftedWedgeFourier hm ℓ + (sourcePhysicalResolvent hm (leftWedgeTimeZero ℓ) ψ) at hy + change rapidityExponential 1 y = shiftedWedgeFourier hm ℓ + (ψ - sourcePhysicalResolvent hm (leftWedgeTimeZero ℓ) ψ) at hv + symm + have hr : exponentialResolvent rapidityMeasure (rapidityFrequencyExponent 1) + (measurable_rapidityFrequencyExponent 1) (shiftedWedgeFourier hm ℓ ψ) = y := by + apply (exponentialMultiplication_resolvent rapidityMeasure (rapidityFrequencyExponent 1) + (measurable_rapidityFrequencyExponent 1) _ _).mp + refine ⟨y.property, ?_⟩ + change (y : RapidityL2) + rapidityExponential 1 y = shiftedWedgeFourier hm ℓ ψ + rw [hv, map_sub, hy] + abel + exact hr.trans hy + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/ShiftedWedgeModularPowers.lean b/LeanPool/VacuumBellSeparation/FreeField/ShiftedWedgeModularPowers.lean new file mode 100644 index 0000000000..1f75aca730 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/ShiftedWedgeModularPowers.lean @@ -0,0 +1,192 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ShiftedWedgeModularGraph +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularResolvent +public import LeanPool.VacuumBellSeparation.FreeField.UnitaryResolventPowers +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularPowers +public import LeanPool.VacuumBellSeparation.FreeField.ModularWeightInclusion + +/-! +# Full original source powers for every translated left wedge + +The actual polar unitary and the proved shifted logistic resolvent identify +all fractional powers in [0,1] with the translated maximal exponential. +The whole original source satisfies the bounded Gram-weight graph formula +for exponents in [0,1/2]. No boundedness of the halfspace is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ContinuousLinearMap + +variable {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + +theorem shiftedWedgeSourceMap_adjoint (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + (complexSourceMap hm (leftWedgeTimeZero ℓ)).adjoint ψ = + CFC.sqrt (sourceGram hm (leftWedgeTimeZero ℓ)) + ((leftWedgeSourcePolarUnitary hm ℓ).symm ψ) := by + apply ext_inner_right ℂ + intro z + rw [(complexSourceMap hm (leftWedgeTimeZero ℓ)).adjoint_inner_left] + rw [← leftWedgeSourcePolarUnitary_factorization hm ℓ z] + have hi := (leftWedgeSourcePolarUnitary hm ℓ).inner_map_map + ((leftWedgeSourcePolarUnitary hm ℓ).symm ψ) + (CFC.sqrt (sourceGram hm (leftWedgeTimeZero ℓ)) z) + rw [LinearIsometryEquiv.apply_symm_apply] at hi + rw [hi] + exact ((CFC.sqrt_nonneg (sourceGram hm (leftWedgeTimeZero ℓ))).isSelfAdjoint.isSymmetric _ _).symm + +theorem shiftedWedgeSourcePolar_resolvent : + (leftWedgeSourcePolarUnitary hm ℓ).conjStarAlgEquiv + (sourceModularResolvent hm (leftWedgeTimeZero ℓ)) = + sourcePhysicalResolvent hm (leftWedgeTimeZero ℓ) := by + apply ContinuousLinearMap.ext + intro ψ + change leftWedgeSourcePolarUnitary hm ℓ + ((1 / 2 : ℝ) • sourceGram hm (leftWedgeTimeZero ℓ) + ((leftWedgeSourcePolarUnitary hm ℓ).symm ψ)) = + (1 / 2 : ℝ) • complexSourceMap hm (leftWedgeTimeZero ℓ) + ((complexSourceMap hm (leftWedgeTimeZero ℓ)).adjoint ψ) + have hsmul := (leftWedgeSourcePolarUnitary hm ℓ).toLinearEquiv.toLinearMap.map_smul_of_tower + (1 / 2 : ℝ) (sourceGram hm (leftWedgeTimeZero ℓ) + ((leftWedgeSourcePolarUnitary hm ℓ).symm ψ)) + change leftWedgeSourcePolarUnitary hm ℓ + ((1 / 2 : ℝ) • sourceGram hm (leftWedgeTimeZero ℓ) + ((leftWedgeSourcePolarUnitary hm ℓ).symm ψ)) = + (1 / 2 : ℝ) • leftWedgeSourcePolarUnitary hm ℓ + (sourceGram hm (leftWedgeTimeZero ℓ) + ((leftWedgeSourcePolarUnitary hm ℓ).symm ψ)) at hsmul + rw [hsmul, shiftedWedgeSourceMap_adjoint, + ← leftWedgeSourcePolarUnitary_factorization] + congr 2 + exact (congrArg (fun A : ComplexSourceHilbert hm (leftWedgeTimeZero ℓ) →L[ℂ] + ComplexSourceHilbert hm (leftWedgeTimeZero ℓ) => + A ((leftWedgeSourcePolarUnitary hm ℓ).symm ψ)) + (CFC.sqrt_mul_sqrt_self (sourceGram hm (leftWedgeTimeZero ℓ)) + (nonneg_iff_isPositive.mpr (sourceGram_isPositive hm (leftWedgeTimeZero ℓ))))).symm + +/-- Linear isometry equivalence for the shifted wedge source Fourier unitary, of type +`ComplexSourceHilbert hm (leftWedgeTimeZero ℓ) ≃ₗᵢ[ℂ] RapidityL2`. -/ +noncomputable def shiftedWedgeSourceFourierUnitary : + ComplexSourceHilbert hm (leftWedgeTimeZero ℓ) ≃ₗᵢ[ℂ] RapidityL2 := + (leftWedgeSourcePolarUnitary hm ℓ).trans (shiftedWedgeFourier hm ℓ) + +theorem shiftedWedgeSourceFourier_resolvent : + (shiftedWedgeSourceFourierUnitary hm ℓ).conjStarAlgEquiv + (sourceModularResolvent hm (leftWedgeTimeZero ℓ)) = + exponentialResolvent rapidityMeasure (rapidityFrequencyExponent 1) + (measurable_rapidityFrequencyExponent 1) := by + rw [shiftedWedgeSourceFourierUnitary, LinearIsometryEquiv.conjStarAlgEquiv_trans] + change (shiftedWedgeFourier hm ℓ).conjStarAlgEquiv + ((leftWedgeSourcePolarUnitary hm ℓ).conjStarAlgEquiv + (sourceModularResolvent hm (leftWedgeTimeZero ℓ))) = _ + rw [shiftedWedgeSourcePolar_resolvent] + apply ContinuousLinearMap.ext + intro f + change shiftedWedgeFourier hm ℓ (sourcePhysicalResolvent hm (leftWedgeTimeZero ℓ) + ((shiftedWedgeFourier hm ℓ).symm f)) = _ + rw [shiftedWedgePhysicalResolvent_fourier, LinearIsometryEquiv.apply_symm_apply] + +theorem shiftedWedgeSourceModularResolvent_injective : + Function.Injective (sourceModularResolvent hm (leftWedgeTimeZero ℓ)) := by + have hG : Function.Injective (sourceGram hm (leftWedgeTimeZero ℓ)) := + (complexSourceMap hm (leftWedgeTimeZero ℓ)).adjoint_comp_self_injective_iff.mpr + (complexSourceMap_injective_leftWedgeTimeZero hm ℓ) + intro x y hxy + apply hG + change (1 / 2 : ℝ) • sourceGram hm (leftWedgeTimeZero ℓ) x = + (1 / 2 : ℝ) • sourceGram hm (leftWedgeTimeZero ℓ) y at hxy + exact (smul_right_injective _ (by norm_num : (1 / 2 : ℝ) ≠ 0)) hxy + + +/-- Shifted wedge source power. -/ +noncomputable def shiftedWedgeSourcePower (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) : + ComplexSourceHilbert hm (leftWedgeTimeZero ℓ) →ₗ.[ℂ] + ComplexSourceHilbert hm (leftWedgeTimeZero ℓ) := + resolventPowerRatio (sourceModularResolvent hm (leftWedgeTimeZero ℓ)) + (sourceModularResolvent_nonneg hm (leftWedgeTimeZero ℓ)) + (shiftedWedgeSourceModularResolvent_injective hm ℓ) c hc hc1 + +theorem shiftedWedgeSourcePower_fourier {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) : + unitaryPartialTransport (shiftedWedgeSourceFourierUnitary hm ℓ) + (shiftedWedgeSourcePower hm ℓ c hc hc1) = rapidityExponential c := by + rw [shiftedWedgeSourcePower, + unitaryPartialTransport_resolventPowerRatio (shiftedWedgeSourceFourierUnitary hm ℓ) + _ (sourceModularResolvent_nonneg hm (leftWedgeTimeZero ℓ)) + (sourceModularResolvent_le_one hm (leftWedgeTimeZero ℓ)) + (shiftedWedgeSourceModularResolvent_injective hm ℓ) + _ (exponentialResolvent_nonneg rapidityMeasure _ _) + (exponentialResolvent_le_one rapidityMeasure _ _) + (exponentialResolvent_injective rapidityMeasure _ _) + (shiftedWedgeSourceFourier_resolvent hm ℓ) hc hc1, + resolventPowerRatio_exponentialResolvent rapidityMeasure _ _ hc hc1] + have he : (fun ξ => c * rapidityFrequencyExponent 1 ξ) = rapidityFrequencyExponent c := by + ext ξ + unfold rapidityFrequencyExponent + ring + simp only [he, rapidityExponential] + +theorem shiftedWedgeSourcePower_graph_fourier {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) + (x y : ComplexSourceHilbert hm (leftWedgeTimeZero ℓ)) : + (x, y) ∈ (shiftedWedgeSourcePower hm ℓ c hc hc1).graph ↔ + (shiftedWedgeSourceFourierUnitary hm ℓ x, shiftedWedgeSourceFourierUnitary hm ℓ y) ∈ + (rapidityExponential c).graph := by + rw [← shiftedWedgeSourcePower_fourier hm ℓ hc hc1, unitaryPartialTransport_mem_graph, + LinearIsometryEquiv.symm_apply_apply, LinearIsometryEquiv.symm_apply_apply] + +theorem shiftedWedgeSourcePower_physical {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) : + unitaryPartialTransport (leftWedgeSourcePolarUnitary hm ℓ) + (shiftedWedgeSourcePower hm ℓ c hc hc1) = shiftedWedgeExponential hm ℓ c := by + apply LinearPMap.eq_of_eq_graph + ext p + rcases p with ⟨x, y⟩ + rw [unitaryPartialTransport_mem_graph, shiftedWedgeExponential_mem_graph, + shiftedWedgeSourcePower_graph_fourier hm ℓ hc hc1] + simp only [shiftedWedgeSourceFourierUnitary, LinearIsometryEquiv.trans_apply, + LinearIsometryEquiv.apply_symm_apply] + +theorem shiftedWedgeSourcePower_sqrt_graph {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) + (z : ComplexSourceHilbert hm (leftWedgeTimeZero ℓ)) : + (sourceGramRoot hm (leftWedgeTimeZero ℓ) z, + sourceModularWeight hm (leftWedgeTimeZero ℓ) c z) ∈ + (shiftedWedgeSourcePower hm ℓ c hc (by linarith)).graph := by + rw [shiftedWedgeSourcePower, resolventPowerRatio, boundedRatio_mem_graph] + exact sourceModularWeight_range_witness hm (leftWedgeTimeZero ℓ) hc hc2 z + +/-- Whole-source equality in the actual maximal physical power graph. -/ +theorem shiftedWedgeExponential_source_graph {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) + (z : ComplexSourceHilbert hm (leftWedgeTimeZero ℓ)) : + (complexSourceMap hm (leftWedgeTimeZero ℓ) z, + leftWedgeSourcePolarUnitary hm ℓ (sourceModularWeight hm (leftWedgeTimeZero ℓ) c z)) ∈ + (shiftedWedgeExponential hm ℓ c).graph := by + rw [← shiftedWedgeSourcePower_physical hm ℓ hc (by linarith), unitaryPartialTransport_mem_graph, + ← leftWedgeSourcePolarUnitary_factorization hm ℓ z, + LinearIsometryEquiv.symm_apply_apply, LinearIsometryEquiv.symm_apply_apply] + exact shiftedWedgeSourcePower_sqrt_graph hm ℓ hc hc2 z + +/-- Literal containing-wedge estimate on every original completed source. -/ +theorem shiftedWedgeExponential_containing_wedge + {U : Set (EuclideanSpace ℝ (Fin 3))} (hU : U ⊆ leftWedgeTimeZero ℓ) + {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) (z : ComplexSourceHilbert hm U) : + ∃ χ : Lp ℂ 2 (oneParticleMeasure m), + (complexSourceMap hm U z, χ) ∈ (shiftedWedgeExponential hm ℓ c).graph ∧ + ‖χ‖ ≤ ‖sourceModularWeight hm U c z‖ := by + refine ⟨leftWedgeSourcePolarUnitary hm ℓ + (sourceModularWeight hm (leftWedgeTimeZero ℓ) c (complexSourceInclusion hm hU z)), ?_, ?_⟩ + · have h := shiftedWedgeExponential_source_graph hm ℓ hc.le hc2 (complexSourceInclusion hm hU z) + have he : complexSourceMap hm (leftWedgeTimeZero ℓ) (complexSourceInclusion hm hU z) = + complexSourceMap hm U z := + DFunLike.congr_fun (complexSourceMap_comp_inclusion hm hU) z + simpa only [he] using h + · rw [LinearIsometryEquiv.norm_map] + exact sourceModularWeight_inclusion_norm hm hU hc hc2 z + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceComplementStandardness.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceComplementStandardness.lean new file mode 100644 index 0000000000..202320855f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceComplementStandardness.lean @@ -0,0 +1,114 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.StandardSourceSpace +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroSymplecticAlgebra + +/-! +# Standardness from an actual open spatial complement + +Completed source vectors in disjoint regions have zero imaginary pairing. +The complex density of any nonempty open complementary region then makes +the original real source space separating. This applies to unbounded +halfspaces and does not assume a wedge modular identification. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ClosedSubmodule +open scoped InnerProductSpace ComplexConjugate + +variable {m : ℝ} (hm : 0 < m) + {U W : Set (EuclideanSpace ℝ (Fin 3))} (hUW : Disjoint U W) + +include hUW in +theorem sourceEmbedding_cross_im_zero (u : SourceHilbert hm U) (v : SourceHilbert hm W) : + (⟪sourceEmbedding hm U u, sourceEmbedding hm W v⟫_ℂ).im = 0 := by + refine UniformSpace.Completion.induction_on u (isClosed_eq (by fun_prop) continuous_const) ?_ + intro u + refine UniformSpace.Completion.induction_on v (isClosed_eq (by fun_prop) continuous_const) ?_ + intro v + rw [sourceEmbedding_coe, sourceEmbedding_coe, inner_timeZeroL2_gram] + simp [timeZeroSymplectic_eq_zero_of_disjoint hUW u.2 v.2] + +include hUW in +theorem sourceRealSpace_cross_im_zero + {x y : Lp ℂ 2 (oneParticleMeasure m)} + (hx : x ∈ sourceRealSpace hm U) (hy : y ∈ sourceRealSpace hm W) : + (⟪x, y⟫_ℂ).im = 0 := by + obtain ⟨u, rfl⟩ := hx + obtain ⟨v, rfl⟩ := hy + exact sourceEmbedding_cross_im_zero hm hUW u v + +include hUW in +theorem sourceRealSpace_separating_of_open_complement + (hW : IsOpen W) (hne : W.Nonempty) + (x : Lp ℂ 2 (oneParticleMeasure m)) + (hx : x ∈ sourceRealSpace hm U) (hix : Complex.I • x ∈ sourceRealSpace hm U) : x = 0 := by + have hreal (v : SourceHilbert hm W) : ⟪x, sourceEmbedding hm W v⟫_ℂ = 0 := by + have hi := sourceRealSpace_cross_im_zero hm hUW hx (show sourceEmbedding hm W v ∈ + sourceRealSpace hm W from ⟨v, rfl⟩) + have hr := sourceRealSpace_cross_im_zero hm hUW hix (show sourceEmbedding hm W v ∈ + sourceRealSpace hm W from ⟨v, rfl⟩) + rw [inner_smul_left, Complex.conj_I, neg_mul, Complex.neg_im, Complex.I_mul_im] at hr + exact Complex.ext (neg_eq_zero.mp hr) hi + have hcomplex (z : ComplexSourceHilbert hm W) : ⟪x, complexSourceMap hm W z⟫_ℂ = 0 := by + change ⟪x, sourceEmbedding hm W z.re + Complex.I • sourceEmbedding hm W z.im⟫_ℂ = 0 + rw [inner_add_right, inner_smul_right, hreal, hreal, mul_zero, add_zero] + have hall (y : Lp ℂ 2 (oneParticleMeasure m)) : ⟪x, y⟫_ℂ = 0 := + (complexSourceMap_denseRange_of_open hm W hW hne).induction_on y + (isClosed_eq (by fun_prop) continuous_const) hcomplex + exact inner_self_eq_zero.mp (hall x) + +include hUW in +theorem complexSourceMap_injective_of_open_complement + (hW : IsOpen W) (hne : W.Nonempty) : Function.Injective (complexSourceMap hm U) := by + apply LinearMap.ker_eq_bot.mp + apply LinearMap.ker_eq_bot'.mpr + intro z hz + change sourceEmbedding hm U z.re + Complex.I • sourceEmbedding hm U z.im = 0 at hz + have him : sourceEmbedding hm U z.im = 0 := by + apply sourceRealSpace_separating_of_open_complement hm hUW hW hne _ ⟨z.im, rfl⟩ + refine ⟨-z.re, ?_⟩ + rw [map_neg] + change -(sourceEmbedding hm U z.re) = Complex.I • sourceEmbedding hm U z.im + apply add_left_cancel (a := sourceEmbedding hm U z.re) + rw [add_neg_cancel, hz] + have hre : sourceEmbedding hm U z.re = 0 := by simpa only [him, smul_zero, add_zero] using hz + apply Gaussian.HilbertComplexification.ext + · exact (sourceEmbedding hm U).injective (by simpa only + [Gaussian.HilbertComplexification.re_zero, map_zero] using hre) + · exact (sourceEmbedding hm U).injective (by simpa only + [Gaussian.HilbertComplexification.im_zero, map_zero] using him) + +include hUW in +theorem sourceRealSpace_inf_mulI_eq_bot_of_open_complement + (hW : IsOpen W) (hne : W.Nonempty) : + sourceRealSpace hm U ⊓ (sourceRealSpace hm U).mulI = ⊥ := by + apply bot_unique + intro x hx + change x = 0 + apply sourceRealSpace_separating_of_open_complement hm hUW hW hne x hx.1 + have h := (ClosedSubmodule.mem_mapEquiv_iff + (scalarSMulCLE _ Complex.UnitI) (sourceRealSpace hm U) x).mp hx.2 + have hn := (sourceRealSpace hm U).neg_mem h + simpa [scalarSMulCLE_symm_apply, Units.smul_def, Complex.UnitI, Complex.inv_I, neg_smul] using hn + +/-- The literal actual source standard subspace, including unbounded regions +whose spatial complement contains a nonempty open region. -/ +noncomputable def physicalSourceStandardSubspaceOfComplement + (hU : IsOpen U) (hneU : U.Nonempty) (hW : IsOpen W) (hneW : W.Nonempty) : + StandardSubspace (Lp ℂ 2 (oneParticleMeasure m)) where + toClosedSubmodule := sourceRealSpace hm U + IsSeparating := sourceRealSpace_inf_mulI_eq_bot_of_open_complement hm hUW hW hneW + IsCyclic := sourceRealSpace_sup_mulI_eq_top hm U + (complexSourceMap_denseRange_of_open hm U hU hneU) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceComponents.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceComponents.lean new file mode 100644 index 0000000000..0d47956150 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceComponents.lean @@ -0,0 +1,207 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceSpace +public import Mathlib.Topology.Algebra.LinearMapCompletion + +/-! +# The two components of the completed source space + +The literal maps `(f,g) ↦ (f,0)` and `(f,g) ↦ (0,g)` preserve support. +Their boundedness follows from the actual diagonal covariance, so their +extensions are defined on the actual source completion. The completed norm +retains the Pythagorean decomposition. No distributional support or Sobolev +identification is inferred merely from these projection identities. +-/ + +@[expose] public section + +open scoped InnerProductSpace + +namespace VacuumBellSeparation + +@[simp] theorem spatialFourier_zero (p : EuclideanSpace ℝ (Fin 3)) : + spatialFourier 0 p = 0 := by + change (∫ x, Complex.exp (-(Complex.I * ↑(inner ℝ p x))) * (0 : ℂ)) = 0 + simp + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- First literal source component, with unchanged localization. -/ +def sourceTestFirst : SourceTestSpace hm U →ₗ[ℝ] SourceTestSpace hm U where + toFun u := ⟨(u.1.1, 0), u.2.1, by + change tsupport (0 : EuclideanSpace ℝ (Fin 3) → ℝ) ⊆ U + simp⟩ + map_add' u v := by + apply Subtype.ext + change (u.1.1 + v.1.1, 0) = (u.1.1 + v.1.1, 0 + 0) + simp + map_smul' a u := by + apply Subtype.ext + change (a • u.1.1, 0) = (a • u.1.1, a • (0 : SpatialTestFunction)) + simp + +/-- Second literal source component, with unchanged localization. -/ +def sourceTestSecond : SourceTestSpace hm U →ₗ[ℝ] SourceTestSpace hm U where + toFun u := ⟨(0, u.1.2), by + change tsupport (0 : EuclideanSpace ℝ (Fin 3) → ℝ) ⊆ U + simp, u.2.2⟩ + map_add' u v := by + apply Subtype.ext + change (0, u.1.2 + v.1.2) = (0 + 0, u.1.2 + v.1.2) + simp + map_smul' a u := by + apply Subtype.ext + change (0, a • u.1.2) = (a • (0 : SpatialTestFunction), a • u.1.2) + simp + +@[simp] theorem sourceTestFirst_val (u : SourceTestSpace hm U) : + (sourceTestFirst hm U u).1 = (u.1.1, 0) := rfl + +@[simp] theorem sourceTestSecond_val (u : SourceTestSpace hm U) : + (sourceTestSecond hm U u).1 = (0, u.1.2) := rfl + +theorem sourceTestFirst_add_second (u : SourceTestSpace hm U) : + sourceTestFirst hm U u + sourceTestSecond hm U u = u := by + apply Subtype.ext + change (u.1.1, 0) + (0, u.1.2) = u.1 + simp + +/-- The exact covariance has no mixed real term between the two source components. -/ +theorem sourceTestComponents_norm_sq (u : SourceTestSpace hm U) : + ‖u‖ ^ 2 = ‖sourceTestFirst hm U u‖ ^ 2 + ‖sourceTestSecond hm U u‖ ^ 2 := by + rw [sourceTestSpace_norm_sq, sourceTestSpace_norm_sq, sourceTestSpace_norm_sq] + simp [timeZeroFourierCovariance, timeZeroFourierDiagonal, add_mul, Complex.add_re] + +theorem norm_sourceTestFirst_le (u : SourceTestSpace hm U) : + ‖sourceTestFirst hm U u‖ ≤ ‖u‖ := by + have h := sourceTestComponents_norm_sq hm U u + nlinarith [sq_nonneg ‖sourceTestSecond hm U u‖, norm_nonneg u, + norm_nonneg (sourceTestFirst hm U u)] + +theorem norm_sourceTestSecond_le (u : SourceTestSpace hm U) : + ‖sourceTestSecond hm U u‖ ≤ ‖u‖ := by + have h := sourceTestComponents_norm_sq hm U u + nlinarith [sq_nonneg ‖sourceTestFirst hm U u‖, norm_nonneg u, + norm_nonneg (sourceTestSecond hm U u)] + +/-- Source test first continuous linear map of type `SourceTestSpace hm U →L[ℝ] SourceTestSpace hm +U`. -/ +noncomputable def sourceTestFirstCLM : SourceTestSpace hm U →L[ℝ] SourceTestSpace hm U := + (sourceTestFirst hm U).mkContinuous 1 fun u => by + simpa using norm_sourceTestFirst_le hm U u + +/-- Source test second continuous linear map of type `SourceTestSpace hm U →L[ℝ] SourceTestSpace hm +U`. -/ +noncomputable def sourceTestSecondCLM : SourceTestSpace hm U →L[ℝ] SourceTestSpace hm U := + (sourceTestSecond hm U).mkContinuous 1 fun u => by + simpa using norm_sourceTestSecond_le hm U u + +/-- The first component of the actual covariance completion. -/ +noncomputable def sourceFirst : SourceHilbert hm U →L[ℝ] SourceHilbert hm U := + (sourceTestFirstCLM hm U).completion + +/-- The second component of the actual covariance completion. -/ +noncomputable def sourceSecond : SourceHilbert hm U →L[ℝ] SourceHilbert hm U := + (sourceTestSecondCLM hm U).completion + +@[simp] theorem sourceFirst_coe (u : SourceTestSpace hm U) : + sourceFirst hm U (u : SourceHilbert hm U) = + (sourceTestFirst hm U u : SourceHilbert hm U) := + (sourceTestFirstCLM hm U).completion_apply_coe u + +@[simp] theorem sourceSecond_coe (u : SourceTestSpace hm U) : + sourceSecond hm U (u : SourceHilbert hm U) = + (sourceTestSecond hm U u : SourceHilbert hm U) := + (sourceTestSecondCLM hm U).completion_apply_coe u + +theorem sourceFirst_add_second (u : SourceHilbert hm U) : + sourceFirst hm U u + sourceSecond hm U u = u := by + refine UniformSpace.Completion.induction_on u + (isClosed_eq ((sourceFirst hm U).continuous.add (sourceSecond hm U).continuous) + continuous_id) ?_ + intro v + rw [sourceFirst_coe, sourceSecond_coe, ← UniformSpace.Completion.coe_add, + sourceTestFirst_add_second] + +/-- Pythagoras survives completion because both component maps are continuous. -/ +theorem sourceComponents_norm_sq (u : SourceHilbert hm U) : + ‖u‖ ^ 2 = ‖sourceFirst hm U u‖ ^ 2 + ‖sourceSecond hm U u‖ ^ 2 := by + refine UniformSpace.Completion.induction_on u + (isClosed_eq (continuous_norm.pow 2) + (((sourceFirst hm U).continuous.norm.pow 2).add + ((sourceSecond hm U).continuous.norm.pow 2))) ?_ + intro v + simpa only [sourceFirst_coe, sourceSecond_coe, UniformSpace.Completion.norm_coe] using + sourceTestComponents_norm_sq hm U v + +theorem norm_sourceFirst_apply_le (u : SourceHilbert hm U) : + ‖sourceFirst hm U u‖ ≤ ‖u‖ := by + have h := sourceComponents_norm_sq hm U u + nlinarith [sq_nonneg ‖sourceSecond hm U u‖, norm_nonneg u, + norm_nonneg (sourceFirst hm U u)] + +theorem norm_sourceSecond_apply_le (u : SourceHilbert hm U) : + ‖sourceSecond hm U u‖ ≤ ‖u‖ := by + have h := sourceComponents_norm_sq hm U u + nlinarith [sq_nonneg ‖sourceFirst hm U u‖, norm_nonneg u, + norm_nonneg (sourceSecond hm U u)] + +theorem norm_sourceFirst_le_one : ‖sourceFirst hm U‖ ≤ 1 := + ContinuousLinearMap.opNorm_le_bound _ zero_le_one fun u => by + simpa using norm_sourceFirst_apply_le hm U u + +theorem norm_sourceSecond_le_one : ‖sourceSecond hm U‖ ≤ 1 := + ContinuousLinearMap.opNorm_le_bound _ zero_le_one fun u => by + simpa using norm_sourceSecond_apply_le hm U u + +theorem sourceFirst_idempotent (u : SourceHilbert hm U) : + sourceFirst hm U (sourceFirst hm U u) = sourceFirst hm U u := by + refine UniformSpace.Completion.induction_on u + (isClosed_eq ((sourceFirst hm U).continuous.comp (sourceFirst hm U).continuous) + (sourceFirst hm U).continuous) ?_ + intro v + simp only [sourceFirst_coe] + rfl + +theorem sourceSecond_idempotent (u : SourceHilbert hm U) : + sourceSecond hm U (sourceSecond hm U u) = sourceSecond hm U u := by + refine UniformSpace.Completion.induction_on u + (isClosed_eq ((sourceSecond hm U).continuous.comp (sourceSecond hm U).continuous) + (sourceSecond hm U).continuous) ?_ + intro v + simp only [sourceSecond_coe] + rfl + +theorem sourceFirst_second_eq_zero (u : SourceHilbert hm U) : + sourceFirst hm U (sourceSecond hm U u) = 0 := by + have h := sourceFirst_add_second hm U (sourceSecond hm U u) + rw [sourceSecond_idempotent] at h + exact add_right_cancel (h.trans (zero_add _).symm) + +theorem sourceSecond_first_eq_zero (u : SourceHilbert hm U) : + sourceSecond hm U (sourceFirst hm U u) = 0 := by + have h := sourceFirst_add_second hm U (sourceFirst hm U u) + rw [sourceFirst_idempotent] at h + exact add_left_cancel (h.trans (add_zero _).symm) + +/-- The completed first component agrees with the literal `f` vector on tests. -/ +theorem sourceEmbedding_first_coe (u : SourceTestSpace hm U) : + sourceEmbedding hm U (sourceFirst hm U (u : SourceHilbert hm U)) = + timeZeroL2 hm (u.1.1, 0) := by + rw [sourceFirst_coe, sourceEmbedding_coe] + rfl + +/-- The completed second component agrees with the literal `iωg` vector on tests. -/ +theorem sourceEmbedding_second_coe (u : SourceTestSpace hm U) : + sourceEmbedding hm U (sourceSecond hm U (u : SourceHilbert hm U)) = + timeZeroL2 hm (0, u.1.2) := by + rw [sourceSecond_coe, sourceEmbedding_coe] + rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceConjugateRoots.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceConjugateRoots.lean new file mode 100644 index 0000000000..a0b9fed2b3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceConjugateRoots.lean @@ -0,0 +1,165 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceReserve +public import LeanPool.VacuumBellSeparation.FreeField.SourcePolarUnitary +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioOperator +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Commute + +/-! +# Conjugate Gram square roots and their actual selfadjoint ratio + +Conjugation preserves positivity by the actual inner-product identity, so +uniqueness of the positive square root proves C sqrt(G) C = sqrt(Gbar). +The unbounded ratio on range sqrt(G) is constructed as a LinearPMap and +proved selfadjoint from the exact identity G+Gbar=2I. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap Gaussian Gaussian.HilbertComplexification +open scoped InnerProductSpace ComplexConjugate + +section Conjugation +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] + +omit [CompleteSpace E] in +/-- The literal source conjugation is antiunitary for the constructed complex inner product. -/ +theorem sourceConjugation_inner (z w : HilbertComplexification E) : + inner ℂ (conjugation z) (conjugation w) = conj (inner ℂ z w) := by + apply Complex.ext <;> + simp [HilbertComplexification.inner_eq]; ring + +omit [CompleteSpace E] in +theorem sourceConjugateOperator_mul + (A B : HilbertComplexification E →L[ℂ] HilbertComplexification E) : + conjugateOperator (A * B) = conjugateOperator A * conjugateOperator B := by + apply ContinuousLinearMap.ext + intro z + simp only [conjugateOperator_apply, mul_apply_eq_comp, conjugation_conjugation] + +omit [CompleteSpace E] in +theorem sourceConjugateOperator_isPositive + {A : HilbertComplexification E →L[ℂ] HilbertComplexification E} + (hA : A.IsPositive) : (conjugateOperator A).IsPositive := by + refine ⟨?_, ?_⟩ + · intro x y + change inner ℂ (conjugation (A (conjugation x))) y = + inner ℂ x (conjugation (A (conjugation y))) + calc + _ = conj (inner ℂ (A (conjugation x)) (conjugation y)) := by + simpa only [conjugation_conjugation] using + sourceConjugation_inner (A (conjugation x)) (conjugation y) + _ = conj (inner ℂ (conjugation x) (A (conjugation y))) := + congrArg conj (hA.isSymmetric (conjugation x) (conjugation y)) + _ = _ := by + simpa only [conjugation_conjugation] using + (sourceConjugation_inner (conjugation x) (A (conjugation y))).symm + · intro x + have hi := sourceConjugation_inner (A (conjugation x)) (conjugation x) + have hir : (inner ℂ (conjugation (A (conjugation x))) x).re = + (inner ℂ (A (conjugation x)) (conjugation x)).re := by + simpa only [conjugation_conjugation, Complex.conj_re] using congrArg Complex.re hi + change 0 ≤ (inner ℂ (conjugation (A (conjugation x))) x).re + rw [hir] + exact hA.re_inner_nonneg_left (conjugation x) + +theorem sourceConjugateOperator_sqrt + (A : HilbertComplexification E →L[ℂ] HilbertComplexification E) (hA : 0 ≤ A) : + conjugateOperator (CFC.sqrt A) = CFC.sqrt (conjugateOperator A) := by + symm + apply CFC.sqrt_unique + · rw [← sourceConjugateOperator_mul, CFC.sqrt_mul_sqrt_self A hA] + · exact nonneg_iff_isPositive.mpr + (sourceConjugateOperator_isPositive (nonneg_iff_isPositive.mp (CFC.sqrt_nonneg A))) +end Conjugation + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Continuous linear map for the source gram root, of type `ComplexSourceHilbert hm U →L[ℂ] +ComplexSourceHilbert hm U`. -/ +noncomputable def sourceGramRoot : + ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U := CFC.sqrt (sourceGram hm U) + +/-- Continuous linear map for the conjugate source gram root, of type `ComplexSourceHilbert hm U +→L[ℂ] ComplexSourceHilbert hm U`. -/ +noncomputable def conjugateSourceGramRoot : + ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U := + CFC.sqrt (conjugateSourceGram hm U) + +theorem conjugate_sourceGramRoot : + conjugateOperator (sourceGramRoot hm U) = conjugateSourceGramRoot hm U := + sourceConjugateOperator_sqrt _ (nonneg_iff_isPositive.mpr (sourceGram_isPositive hm U)) + +theorem sourceGramRoot_conjugation (z : ComplexSourceHilbert hm U) : + sourceGramRoot hm U (conjugation z) = conjugation (conjugateSourceGramRoot hm U z) := by + have hh := congrArg (fun A : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U => + conjugation (A z)) (conjugate_sourceGramRoot hm U) + simpa only [conjugateOperator_apply, conjugation_conjugation] using hh + +theorem sourceGramRoot_commute_conjugateSourceGramRoot : + Commute (sourceGramRoot hm U) (conjugateSourceGramRoot hm U) := by + exact (((sourceGram_commute_conjugateSourceGram hm U).cfcₙ_nnreal NNReal.sqrt).symm.cfcₙ_nnreal + NNReal.sqrt).symm + +theorem sourceGramRoot_sq_add_conjugateSourceGramRoot_sq : + sourceGramRoot hm U * sourceGramRoot hm U + + conjugateSourceGramRoot hm U * conjugateSourceGramRoot hm U = 2 := by + rw [sourceGramRoot, conjugateSourceGramRoot, + CFC.sqrt_mul_sqrt_self _ (nonneg_iff_isPositive.mpr (sourceGram_isPositive hm U)), + CFC.sqrt_mul_sqrt_self _ (conjugateSourceGram_nonneg hm U), conjugateSourceGram_eq_two_sub] + noncomm_ring + +theorem sourceGramRoot_injective (hU : Bornology.IsBounded U) : + Function.Injective (sourceGramRoot hm U) := + polarGramRoot_injective (complexSourceMap hm U) (complexSourceMap_injective hm U hU) + +theorem sourceGramRoot_denseRange (hU : Bornology.IsBounded U) : + DenseRange (sourceGramRoot hm U) := + polarGramRoot_denseRange (complexSourceMap hm U) (complexSourceMap_injective hm U hU) + +/-- The actual positive-square-root modular ratio in source polar coordinates. -/ +noncomputable def sourceModularRoot (hU : Bornology.IsBounded U) : + ComplexSourceHilbert hm U →ₗ.[ℂ] ComplexSourceHilbert hm U := + boundedRatio (sourceGramRoot hm U) (conjugateSourceGramRoot hm U) + (sourceGramRoot_injective hm U hU) + +@[simp] theorem sourceModularRoot_apply (hU : Bornology.IsBounded U) + (z : ComplexSourceHilbert hm U) : + sourceModularRoot hm U hU ⟨sourceGramRoot hm U z, ⟨z, rfl⟩⟩ = + conjugateSourceGramRoot hm U z := + boundedRatio_apply_range _ _ _ z + +theorem sourceModularRoot_isSelfAdjoint (hU : Bornology.IsBounded U) : + IsSelfAdjoint (sourceModularRoot hm U hU) := + boundedRatio_isSelfAdjoint _ _ _ (sourceGramRoot_denseRange hm U hU) + (CFC.sqrt_nonneg _).isSelfAdjoint (CFC.sqrt_nonneg _).isSelfAdjoint + (sourceGramRoot_commute_conjugateSourceGramRoot hm U) + (sourceGramRoot_sq_add_conjugateSourceGramRoot_sq hm U) + +/-- Positivity on the actual unbounded domain. -/ +theorem sourceModularRoot_inner_nonneg (hU : Bornology.IsBounded U) + (x : (sourceModularRoot hm U hU).domain) : + 0 ≤ (inner ℂ (x : ComplexSourceHilbert hm U) (sourceModularRoot hm U hU x)).re := by + obtain ⟨z, hz, hBz⟩ := boundedRatio_representation (sourceGramRoot hm U) + (conjugateSourceGramRoot hm U) (sourceGramRoot_injective hm U hU) x + have hroot : conjugateSourceGramRoot hm U z = sourceModularRoot hm U hU x := hBz + rw [← hz, ← hroot] + have hp : 0 ≤ sourceGramRoot hm U * conjugateSourceGramRoot hm U := + Commute.mul_nonneg (CFC.sqrt_nonneg _) (CFC.sqrt_nonneg _) + (sourceGramRoot_commute_conjugateSourceGramRoot hm U) + have hi := (CFC.sqrt_nonneg (sourceGram hm U)).isSelfAdjoint.isSymmetric + z (conjugateSourceGramRoot hm U z) + change inner ℂ (sourceGramRoot hm U z) (conjugateSourceGramRoot hm U z) = + inner ℂ z (sourceGramRoot hm U (conjugateSourceGramRoot hm U z)) at hi + rw [hi] + exact (nonneg_iff_isPositive.mp hp).re_inner_nonneg_right z + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceCrossSeriesReconstruction.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceCrossSeriesReconstruction.lean new file mode 100644 index 0000000000..ebd2986a58 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceCrossSeriesReconstruction.lean @@ -0,0 +1,109 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ProductSourceNuclearSeries +public import LeanPool.VacuumBellSeparation.Gaussian.CrossRankOneMatrixElements + +/-! +# Reconstructing the original source covariance operator from test moments + +Norm summability first constructs a bounded cross operator. The scalar +series on the literal dense real source tests identifies its full complex +extension with the already defined product-source Gram difference. +The vector-representation and scalar-kernel identities are explicit here; +the latter is supplied by the actual localized moment calculation. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification + +variable {m : ℝ} (hm : 0 < m) (U W : Set (EuclideanSpace ℝ (Fin 3))) + {ι : Type*} + +/-- Product source real test defined as `WithLp.toLp 2 ((x.1 : SourceHilbert hm U), (x.2 : +SourceHilbert hm W))`. -/ +def productSourceRealTest (x : SourceTestSpace hm U × SourceTestSpace hm W) : + WithLp 2 (SourceHilbert hm U × SourceHilbert hm W) := + WithLp.toLp 2 ((x.1 : SourceHilbert hm U), (x.2 : SourceHilbert hm W)) + +theorem denseRange_productSourceRealTest : DenseRange (productSourceRealTest hm U W) := by + have hd := (UniformSpace.Completion.denseRange_coe (α := SourceTestSpace hm U)).prodMap + (UniformSpace.Completion.denseRange_coe (α := SourceTestSpace hm W)) + exact (WithLp.homeomorphProd 2 (SourceHilbert hm U) + (SourceHilbert hm W)).symm.surjective.denseRange.comp + hd (WithLp.homeomorphProd 2 (SourceHilbert hm U) (SourceHilbert hm W)).symm.continuous + +theorem hasSum_productSource_cross_of_test_moments + (u : ι → ComplexSourceHilbert hm U) (v : ι → ComplexSourceHilbert hm W) + (L : ι → SourceTestSpace hm U → ℝ) (M : ι → SourceTestSpace hm W → ℝ) + (hs : Summable fun i => ‖u i‖ * ‖v i‖) + (hu : ∀ i (x : SourceTestSpace hm U), + inner ℂ (ofReal (x : SourceHilbert hm U)) (u i) = (L i x : ℂ)) + (hv : ∀ i (y : SourceTestSpace hm W), + inner ℂ (ofReal (y : SourceHilbert hm W)) (v i) = (M i y : ℂ)) + (hkernel : ∀ x y, HasSum (fun i => L i x * M i y) + (inner ℝ (sourceEmbedding hm U (x : SourceHilbert hm U)) + (sourceEmbedding hm W (y : SourceHilbert hm W)))) : + HasSum (fun i => crossRankOne (u i) (v i)) + ((productSourceComplexEquiv hm U W).conjStarAlgEquiv + (complexify (productSourceCovariancePerturbation hm U W))) := by + let e := productSourceComplexEquiv hm U W + let X := ∑' i, crossRankOne (u i) (v i) + have hX : HasSum (fun i => crossRankOne (u i) (v i)) X := + (summable_norm_crossRankOne hs).of_norm.hasSum + have heq : e.symm.conjStarAlgEquiv X = + complexify (productSourceCovariancePerturbation hm U W) := by + apply complexification_operator_ext_dense_real + (denseRange_productSourceRealTest hm U W) (denseRange_productSourceRealTest hm U W) + intro x y + let tx := e (ofReal (productSourceRealTest hm U W x)) + let ty := e (ofReal (productSourceRealTest hm U W y)) + have hi := (hX.mapL (ContinuousLinearMap.apply ℂ + (WithLp 2 (ComplexSourceHilbert hm U × ComplexSourceHilbert hm W)) tx)).mapL (innerSL ℂ ty) + have hk := ((hkernel y.1 x.2).add (hkernel x.1 y.2)).mapL Complex.ofRealCLM + have ht (i : ι) : inner ℂ ty (crossRankOne (u i) (v i) tx) = + ((L i y.1 * M i x.2 + L i x.1 * M i y.2 : ℝ) : ℂ) := by + change inner ℂ (WithLp.toLp 2 (ofReal (y.1 : SourceHilbert hm U), + ofReal (y.2 : SourceHilbert hm W))) + (crossRankOne (u i) (v i) (WithLp.toLp 2 (ofReal (x.1 : SourceHilbert hm U), + ofReal (x.2 : SourceHilbert hm W)))) = _ + rw [inner_crossRankOne_real_moments _ _ _ _ _ _ _ _ _ _ + (hu i y.1) (hu i x.1) (hv i y.2) (hv i x.2)] + congr 1 + ring + have hscl := (hi.congr_fun (fun i => (ht i).symm)).unique hk + calc + _ = inner ℂ ty (X tx) := by + rw [LinearIsometryEquiv.conjStarAlgEquiv_apply_apply] + rw [← e.inner_map_map] + simp only [LinearIsometryEquiv.apply_symm_apply] + rfl + _ = ((inner ℝ (sourceEmbedding hm U (y.1 : SourceHilbert hm U)) + (sourceEmbedding hm W (x.2 : SourceHilbert hm W)) + + inner ℝ (sourceEmbedding hm U (x.1 : SourceHilbert hm U)) + (sourceEmbedding hm W (y.2 : SourceHilbert hm W)) : ℝ) : ℂ) := hscl + _ = _ := by + rw [complexify_ofReal, inner_complexification_ofReal, + inner_productSourceCovariancePerturbation] + congr 1 + change _ = inner ℝ (sourceEmbedding hm U (y.1 : SourceHilbert hm U)) + (sourceEmbedding hm W (x.2 : SourceHilbert hm W)) + + inner ℝ (sourceEmbedding hm W (y.2 : SourceHilbert hm W)) + (sourceEmbedding hm U (x.1 : SourceHilbert hm U)) + rw [real_inner_comm (sourceEmbedding hm W (y.2 : SourceHilbert hm W))] + have hfinal : e.conjStarAlgEquiv (complexify (productSourceCovariancePerturbation hm U W)) = X + := by + rw [← heq, ← LinearIsometryEquiv.symm_conjStarAlgEquiv, StarAlgEquiv.apply_symm_apply] + rwa [← hfinal] at hX + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceDistributionReality.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceDistributionReality.lean new file mode 100644 index 0000000000..bc543bb0e2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceDistributionReality.lean @@ -0,0 +1,122 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceDistributionReconstruction + +/-! +# Reality of the completed position distributions + +Real literal sources obey conjugation of test pairings. Continuity extends +this identity to the actual real source completion. Consequently a complex +combination of two such real distributions vanishes only when both vanish. +This fact concerns position distributions, not injectivity of the physical +complex source map, which additionally needs the compact Fourier argument. +-/ + +@[expose] public section + +open MeasureTheory +open scoped SchwartzMap ComplexConjugate + +namespace VacuumBellSeparation + +/-- Pointwise complex conjugation as an actual real-linear Schwartz map. -/ +noncomputable def spatialSchwartzConjugate : + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ →L[ℝ] + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + SchwartzMap.postcompCLM Complex.conjCLE.toContinuousLinearMap + +@[simp] theorem spatialSchwartzConjugate_apply + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) (x : EuclideanSpace ℝ (Fin 3)) : + spatialSchwartzConjugate φ x = conj (φ x) := rfl + +/-- A complex-linear distribution is real if conjugating its test conjugates its value. -/ +def IsRealSpatialDistribution (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) : Prop := + ∀ φ, T (spatialSchwartzConjugate φ) = conj (T φ) + +theorem isRealSpatialDistribution_spatialSchwartz (f : SpatialTestFunction) : + IsRealSpatialDistribution (spatialSchwartz f : + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) := by + intro φ + rw [SchwartzMap.coe_apply, SchwartzMap.coe_apply, ← integral_conj] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + simp only [spatialSchwartzConjugate_apply, spatialSchwartz_apply, smul_eq_mul, + map_mul, Complex.conj_ofReal] + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +theorem isReal_sourceFirstDistribution (u : SourceHilbert hm U) : + IsRealSpatialDistribution (sourceFirstDistribution hm U u) := by + intro φ + have hleft : Continuous (fun v : SourceHilbert hm U => + sourceFirstDistribution hm U v (spatialSchwartzConjugate φ)) := + (PointwiseConvergenceCLM.evalCLM (RingHom.id ℂ) ℂ + (spatialSchwartzConjugate φ)).continuous.comp (sourceFirstDistribution hm U).continuous + have hright : Continuous (fun v : SourceHilbert hm U => + conj (sourceFirstDistribution hm U v φ)) := + Complex.continuous_conj.comp + ((PointwiseConvergenceCLM.evalCLM (RingHom.id ℂ) ℂ φ).continuous.comp + (sourceFirstDistribution hm U).continuous) + refine UniformSpace.Completion.induction_on u (isClosed_eq hleft hright) ?_ + intro v + rw [sourceFirstDistribution_coe] + exact isRealSpatialDistribution_spatialSchwartz v.1.1 φ + +theorem isReal_sourceSecondDistribution (u : SourceHilbert hm U) : + IsRealSpatialDistribution (sourceSecondDistribution hm U u) := by + intro φ + have hleft : Continuous (fun v : SourceHilbert hm U => + sourceSecondDistribution hm U v (spatialSchwartzConjugate φ)) := + (PointwiseConvergenceCLM.evalCLM (RingHom.id ℂ) ℂ + (spatialSchwartzConjugate φ)).continuous.comp (sourceSecondDistribution hm U).continuous + have hright : Continuous (fun v : SourceHilbert hm U => + conj (sourceSecondDistribution hm U v φ)) := + Complex.continuous_conj.comp + ((PointwiseConvergenceCLM.evalCLM (RingHom.id ℂ) ℂ φ).continuous.comp + (sourceSecondDistribution hm U).continuous) + refine UniformSpace.Completion.induction_on u (isClosed_eq hleft hright) ?_ + intro v + rw [sourceSecondDistribution_coe] + exact isRealSpatialDistribution_spatialSchwartz v.1.2 φ + +/-- The real and imaginary distribution components cannot cancel each other. -/ +theorem real_distributions_add_I_smul_eq_zero + {T S : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ} + (hT : IsRealSpatialDistribution T) (hS : IsRealSpatialDistribution S) + (h : T + Complex.I • S = 0) : T = 0 ∧ S = 0 := by + have hpoint (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : T φ = 0 ∧ S φ = 0 := by + have hp : T φ + Complex.I * S φ = 0 := DFunLike.congr_fun h φ + have hn := congrArg conj (DFunLike.congr_fun h (spatialSchwartzConjugate φ)) + change conj (T (spatialSchwartzConjugate φ) + Complex.I * + S (spatialSchwartzConjugate φ)) = conj 0 at hn + rw [hT φ, hS φ, map_add, map_mul, Complex.conj_conj, + Complex.conj_I, Complex.conj_conj, map_zero] at hn + have ht : T φ = 0 := by linear_combination (1 / 2 : ℂ) * hp + (1 / 2 : ℂ) * hn + have hs : Complex.I * S φ = 0 := by rw [ht, zero_add] at hp; exact hp + exact ⟨ht, (mul_eq_zero.mp hs).resolve_left Complex.I_ne_zero⟩ + constructor + · ext φ + exact (hpoint φ).1 + · ext φ + exact (hpoint φ).2 + +/-- Joint position-distribution injectivity also separates real and imaginary +completed sources. No physical complex-source injectivity is assumed here. -/ +theorem source_complex_distributions_eq_zero (u v : SourceHilbert hm U) + (hf : sourceFirstDistribution hm U u + Complex.I • sourceFirstDistribution hm U v = 0) + (hg : sourceSecondDistribution hm U u + Complex.I • sourceSecondDistribution hm U v = 0) : + u = 0 ∧ v = 0 := by + have hf' := real_distributions_add_I_smul_eq_zero + (isReal_sourceFirstDistribution hm U u) (isReal_sourceFirstDistribution hm U v) hf + have hg' := real_distributions_add_I_smul_eq_zero + (isReal_sourceSecondDistribution hm U u) (isReal_sourceSecondDistribution hm U v) hg + exact ⟨source_eq_zero_of_distributions_eq_zero hm U u hf'.1 hg'.1, + source_eq_zero_of_distributions_eq_zero hm U v hf'.2 hg'.2⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceDistributionReconstruction.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceDistributionReconstruction.lean new file mode 100644 index 0000000000..4fd5093e62 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceDistributionReconstruction.lean @@ -0,0 +1,120 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceDistributions + +/-! +# Reconstruction from the two completed source distributions + +The normalized inverse Fourier map is injective. The second momentum +multiplier is invertible on actual tempered distributions, with temperate +growth proved for both factors. These identities reconstruct the physical +one-particle vector from the two component distributions, hence the completed +real source map into pairs of distributions is injective. +-/ + +@[expose] public section + +open MeasureTheory +open scoped SchwartzMap FourierTransform + +namespace VacuumBellSeparation + +theorem spatialDistributionScale_injective (c : ℝ) (hc : 0 < c) : + Function.Injective (spatialDistributionScale c hc) := by + intro T S h + ext φ + have he := DFunLike.congr_fun h (spatialSchwartzScale c hc φ) + have hinv : spatialSchwartzScale c⁻¹ (inv_pos.mpr hc) + (spatialSchwartzScale c hc φ) = φ := by + ext x + simp only [spatialSchwartzScale_apply, smul_inv_smul₀ hc.ne'] + rw [spatialDistributionScale_apply, spatialDistributionScale_apply, hinv] at he + exact mul_left_cancel₀ (Complex.ofReal_ne_zero.mpr (inv_ne_zero (pow_ne_zero 3 hc.ne'))) he + +theorem sourceInverseFourier_injective : Function.Injective sourceInverseFourier := by + intro T S h + apply spatialDistributionScale_injective (2 * Real.pi) (by positivity) + have hf := congrArg (fun X : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ => 𝓕 X) h + simpa only [sourceInverseFourier_apply, FourierTransform.fourier_fourierInv_eq] using hf + +/-- The actual inverse multiplier to the second component extraction. -/ +noncomputable def sourceSecondInverseMultiplier (m : ℝ) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := Complex.I * (dispersion m p : ℂ) + +theorem hasTemperateGrowth_sourceSecondInverseMultiplier {m : ℝ} (hm : 0 < m) : + Function.HasTemperateGrowth (sourceSecondInverseMultiplier m) := + (Function.HasTemperateGrowth.const _).mul + (Complex.ofRealCLM.hasTemperateGrowth.comp (hasTemperateGrowth_dispersion hm)) + +theorem sourceSecondMultiplier_mul_inverse {m : ℝ} (hm : 0 < m) + (p : EuclideanSpace ℝ (Fin 3)) : + sourceSecondMultiplier m p * sourceSecondInverseMultiplier m p = 1 := by + have hω : (dispersion m p : ℂ) ≠ 0 := + Complex.ofReal_ne_zero.mpr (hm.trans_le (le_dispersion hm.le p)).ne' + simp only [sourceSecondMultiplier, sourceSecondInverseMultiplier, Complex.ofReal_inv] + calc + _ = -(Complex.I ^ 2) * ((dispersion m p : ℂ)⁻¹ * (dispersion m p : ℂ)) := by ring + _ = 1 := by rw [Complex.I_sq, inv_mul_cancel₀ hω]; norm_num + +theorem sourceSecondMultiplier_recover {m : ℝ} (hm : 0 < m) + (T : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) : + TemperedDistribution.smulLeftCLM ℂ (sourceSecondInverseMultiplier m) + (TemperedDistribution.smulLeftCLM ℂ (sourceSecondMultiplier m) T) = T := by + rw [TemperedDistribution.smulLeftCLM_smulLeftCLM_apply + (hasTemperateGrowth_sourceSecondMultiplier hm) + (hasTemperateGrowth_sourceSecondInverseMultiplier hm)] + have hprod : sourceSecondMultiplier m * sourceSecondInverseMultiplier m = fun _ => 1 := by + funext p + exact sourceSecondMultiplier_mul_inverse hm p + rw [hprod, TemperedDistribution.smulLeftCLM_const, one_smul] + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- The distributional formula `κ = f̂ + iω ĝ` holds on the actual completed source space. -/ +theorem sourceMomentum_reconstruction (u : SourceHilbert hm U) : + unweightedMomentumDistribution hm (sourceEmbedding hm U u) = + sourceFirstMomentum hm U u + + TemperedDistribution.smulLeftCLM ℂ (sourceSecondInverseMultiplier m) + (sourceSecondMomentum hm U u) := by + change unweightedMomentumDistribution hm (sourceEmbedding hm U u) = + unweightedMomentumDistribution hm (sourceEmbedding hm U (sourceFirst hm U u)) + + TemperedDistribution.smulLeftCLM ℂ (sourceSecondInverseMultiplier m) + (TemperedDistribution.smulLeftCLM ℂ (sourceSecondMultiplier m) + (unweightedMomentumDistribution hm (sourceEmbedding hm U (sourceSecond hm U u)))) + rw [sourceSecondMultiplier_recover hm, ← map_add, ← map_add, sourceFirst_add_second] + +/-- Vanishing of both actual position distributions forces the completed source to vanish. -/ +theorem source_eq_zero_of_distributions_eq_zero (u : SourceHilbert hm U) + (hf : sourceFirstDistribution hm U u = 0) + (hg : sourceSecondDistribution hm U u = 0) : u = 0 := by + have hf' : sourceFirstMomentum hm U u = 0 := by + apply sourceInverseFourier_injective + change sourceInverseFourier (sourceFirstMomentum hm U u) = 0 at hf + simpa only [map_zero] using hf + have hg' : sourceSecondMomentum hm U u = 0 := by + apply sourceInverseFourier_injective + change sourceInverseFourier (sourceSecondMomentum hm U u) = 0 at hg + simpa only [map_zero] using hg + have hk : unweightedMomentumDistribution hm (sourceEmbedding hm U u) = 0 := by + rw [sourceMomentum_reconstruction hm U u, hf', hg', map_zero, add_zero] + apply (sourceEmbedding hm U).injective + apply unweightedMomentumDistribution_injective hm + simpa only [map_zero] using hk + +/-- The two actual position distributions faithfully represent the real source completion. -/ +theorem sourceDistributions_injective : + Function.Injective (fun u : SourceHilbert hm U => + (sourceFirstDistribution hm U u, sourceSecondDistribution hm U u)) := by + intro u v h + apply sub_eq_zero.mp + apply source_eq_zero_of_distributions_eq_zero hm U (u - v) + · rw [map_sub, (Prod.mk.inj h).1, sub_self] + · rw [map_sub, (Prod.mk.inj h).2, sub_self] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceDistributions.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceDistributions.lean new file mode 100644 index 0000000000..08639d7b5f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceDistributions.lean @@ -0,0 +1,171 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceComponents +public import LeanPool.VacuumBellSeparation.FreeField.UnweightedMomentumDistribution +public import LeanPool.VacuumBellSeparation.FreeField.DistributionFourierNormalization +public import Mathlib.Analysis.Distribution.Support + +/-! +# Actual position distributions of completed local sources + +The two component projections are mapped to physical `L²`, the mass-shell +density is removed, and the second component's `iω` is inverted by a genuine +temperate multiplier. The normalized inverse Fourier transform reconstructs +the two original test functions. Continuity of every test pairing then proves +that completed local sources have distributional support in `closure U`. +-/ + +@[expose] public section + +open MeasureTheory +open scoped SchwartzMap FourierTransform + +namespace VacuumBellSeparation + +/-- The literal multiplier recovering `ĝ` from `iω ĝ`. -/ +noncomputable def sourceSecondMultiplier (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + -Complex.I * ((dispersion m p)⁻¹ : ℝ) + +theorem hasTemperateGrowth_sourceSecondMultiplier {m : ℝ} (hm : 0 < m) : + Function.HasTemperateGrowth (sourceSecondMultiplier m) := + (Function.HasTemperateGrowth.const _).mul + (Complex.ofRealCLM.hasTemperateGrowth.comp (hasTemperateGrowth_inv_dispersion hm)) + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- The first component's actual unweighted momentum distribution. -/ +noncomputable def sourceFirstMomentum : SourceHilbert hm U →L[ℝ] + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := + ((unweightedMomentumDistribution hm).restrictScalars ℝ).comp + ((sourceEmbedding hm U).toContinuousLinearMap.comp (sourceFirst hm U)) + +/-- The second component's actual unweighted momentum distribution. -/ +noncomputable def sourceSecondMomentum : SourceHilbert hm U →L[ℝ] + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := + ((TemperedDistribution.smulLeftCLM ℂ (sourceSecondMultiplier m)).restrictScalars ℝ).comp + (((unweightedMomentumDistribution hm).restrictScalars ℝ).comp + ((sourceEmbedding hm U).toContinuousLinearMap.comp (sourceSecond hm U))) + +theorem sourceFirstMomentum_coe (u : SourceTestSpace hm U) : + sourceFirstMomentum hm U (u : SourceHilbert hm U) = + (spatialFourierSchwartz u.1.1 : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) := by + ext φ + change unweightedMomentumDistribution hm + (sourceEmbedding hm U (sourceFirst hm U (u : SourceHilbert hm U))) φ = _ + rw [sourceEmbedding_first_coe, unweightedMomentumDistribution_apply, SchwartzMap.coe_apply] + apply integral_congr_ae + filter_upwards [(ae_oneParticleMeasure_iff hm).mp (coeFn_timeZeroL2 hm (u.1.1, 0))] + with p hp + simp only [hp, timeZeroOneParticle, spatialFourier_zero, mul_zero, add_zero, + spatialFourierSchwartz_apply, smul_eq_mul] + +theorem sourceSecondMomentum_coe (u : SourceTestSpace hm U) : + sourceSecondMomentum hm U (u : SourceHilbert hm U) = + (spatialFourierSchwartz u.1.2 : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) := by + ext φ + change unweightedMomentumDistribution hm + (sourceEmbedding hm U (sourceSecond hm U (u : SourceHilbert hm U))) + (SchwartzMap.smulLeftCLM ℂ (sourceSecondMultiplier m) φ) = _ + rw [sourceEmbedding_second_coe, unweightedMomentumDistribution_apply, SchwartzMap.coe_apply] + apply integral_congr_ae + filter_upwards [(ae_oneParticleMeasure_iff hm).mp (coeFn_timeZeroL2 hm (0, u.1.2))] + with p hp + rw [SchwartzMap.smulLeftCLM_apply_apply (hasTemperateGrowth_sourceSecondMultiplier hm)] + simp only [hp, timeZeroOneParticle, spatialFourier_zero, zero_add, + spatialFourierSchwartz_apply, smul_eq_mul, sourceSecondMultiplier, Complex.ofReal_inv] + have hω : (dispersion m p : ℂ) ≠ 0 := + Complex.ofReal_ne_zero.mpr (hm.trans_le (le_dispersion hm.le p)).ne' + field_simp [hω] + linear_combination -φ p * spatialFourier u.1.2 p * Complex.I_sq + +/-- The completed first position component, as an actual tempered distribution. -/ +noncomputable def sourceFirstDistribution : SourceHilbert hm U →L[ℝ] + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := + (sourceInverseFourier.restrictScalars ℝ).comp (sourceFirstMomentum hm U) + +/-- The completed second position component, as an actual tempered distribution. -/ +noncomputable def sourceSecondDistribution : SourceHilbert hm U →L[ℝ] + TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := + (sourceInverseFourier.restrictScalars ℝ).comp (sourceSecondMomentum hm U) + +theorem sourceFirstDistribution_coe (u : SourceTestSpace hm U) : + sourceFirstDistribution hm U (u : SourceHilbert hm U) = + (spatialSchwartz u.1.1 : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) := by + change sourceInverseFourier (sourceFirstMomentum hm U (u : SourceHilbert hm U)) = _ + rw [sourceFirstMomentum_coe, sourceInverseFourier_spatialFourier] + +theorem sourceSecondDistribution_coe (u : SourceTestSpace hm U) : + sourceSecondDistribution hm U (u : SourceHilbert hm U) = + (spatialSchwartz u.1.2 : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) := by + change sourceInverseFourier (sourceSecondMomentum hm U (u : SourceHilbert hm U)) = _ + rw [sourceSecondMomentum_coe, sourceInverseFourier_spatialFourier] + +private theorem spatialSchwartz_pairing_eq_zero_of_support (f : SpatialTestFunction) + (hf : tsupport f.1 ⊆ U) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (hφ : tsupport φ ⊆ (closure U)ᶜ) : + (spatialSchwartz f : TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ) φ = 0 := by + rw [SchwartzMap.coe_apply] + apply integral_eq_zero_of_ae + refine Filter.Eventually.of_forall fun x => ?_ + by_cases hx : φ x = 0 + · simp [hx] + · have hxout : x ∉ closure U := hφ (subset_tsupport φ hx) + have hfx : x ∉ tsupport f.1 := fun h => hxout (subset_closure (hf h)) + simp [spatialSchwartz_apply, image_eq_zero_of_notMem_tsupport hfx] + +/-- Continuity propagates vanishing of every exterior test pairing through the actual completion. -/ +theorem sourceFirstDistribution_isVanishingOn (u : SourceHilbert hm U) : + Distribution.IsVanishingOn (sourceFirstDistribution hm U u) (closure U)ᶜ := by + intro φ hφ + have hcont : Continuous (fun v : SourceHilbert hm U => sourceFirstDistribution hm U v φ) := + (PointwiseConvergenceCLM.evalCLM (RingHom.id ℂ) ℂ φ).continuous.comp + (sourceFirstDistribution hm U).continuous + refine UniformSpace.Completion.induction_on u (isClosed_eq hcont continuous_const) ?_ + intro v + rw [sourceFirstDistribution_coe] + exact spatialSchwartz_pairing_eq_zero_of_support U v.1.1 v.2.1 φ hφ + +theorem sourceSecondDistribution_isVanishingOn (u : SourceHilbert hm U) : + Distribution.IsVanishingOn (sourceSecondDistribution hm U u) (closure U)ᶜ := by + intro φ hφ + have hcont : Continuous (fun v : SourceHilbert hm U => sourceSecondDistribution hm U v φ) := + (PointwiseConvergenceCLM.evalCLM (RingHom.id ℂ) ℂ φ).continuous.comp + (sourceSecondDistribution hm U).continuous + refine UniformSpace.Completion.induction_on u (isClosed_eq hcont continuous_const) ?_ + intro v + rw [sourceSecondDistribution_coe] + exact spatialSchwartz_pairing_eq_zero_of_support U v.1.2 v.2.2 φ hφ + +/-- Completion enlarges the support bound to `closure U`, exactly as required. -/ +theorem dsupport_sourceFirstDistribution_subset (u : SourceHilbert hm U) : + Distribution.dsupport (sourceFirstDistribution hm U u) ⊆ closure U := by + intro x hx + exact (Distribution.mem_dsupport_iff x).mp hx (closure U) + (sourceFirstDistribution_isVanishingOn hm U u) isClosed_closure + +theorem dsupport_sourceSecondDistribution_subset (u : SourceHilbert hm U) : + Distribution.dsupport (sourceSecondDistribution hm U u) ⊆ closure U := by + intro x hx + exact (Distribution.mem_dsupport_iff x).mp hx (closure U) + (sourceSecondDistribution_isVanishingOn hm U u) isClosed_closure + +/-- Bounded localization gives genuinely compact distributional support. -/ +theorem isCompact_dsupport_sourceFirstDistribution (hU : Bornology.IsBounded U) + (u : SourceHilbert hm U) : IsCompact (Distribution.dsupport (sourceFirstDistribution hm U u)) := + hU.isCompact_closure.of_isClosed_subset Distribution.isClosed_dsupport + (dsupport_sourceFirstDistribution_subset hm U u) + +theorem isCompact_dsupport_sourceSecondDistribution (hU : Bornology.IsBounded U) + (u : SourceHilbert hm U) : IsCompact (Distribution.dsupport + (sourceSecondDistribution hm U u)) := + hU.isCompact_closure.of_isClosed_subset Distribution.isClosed_dsupport + (dsupport_sourceSecondDistribution_subset hm U u) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceEmbeddingConstruction.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceEmbeddingConstruction.lean new file mode 100644 index 0000000000..1b748ff149 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceEmbeddingConstruction.lean @@ -0,0 +1,140 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroNondegenerate +public import LeanPool.VacuumBellSeparation.FreeField.RealCommutation +public import Mathlib.Analysis.InnerProductSpace.Completion +public import Mathlib.Analysis.Normed.Operator.Extend + +/-! +# Staged literal construction + +Exact original declarations; verification target proofs are staged separately. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory ClosedSubmodule + +namespace VacuumBellSeparation + +instance : SMul ℝ SpatialTestFunction where + smul a f := ⟨fun x => a * f.1 x, contDiff_const.mul f.2.1, f.2.2.mul_left⟩ + +instance : Module ℝ SpatialTestFunction := + Function.Injective.module ℝ + ({ toFun := Subtype.val, map_zero' := rfl, map_add' := fun _ _ => rfl } : + SpatialTestFunction →+ (EuclideanSpace ℝ (Fin 3) → ℝ)) + Subtype.val_injective (fun _ _ => rfl) + +theorem spatialFourier_smul (a : ℝ) (f : SpatialTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + spatialFourier (a • f) p = a • spatialFourier f p := by + unfold spatialFourier + rw [← integral_smul] + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + change Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ))) * (a * f.1 x : ℝ) = + a • (Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ))) * (f.1 x : ℂ)) + rw [Complex.real_smul, Complex.ofReal_mul] + ring + +theorem timeZeroOneParticle_smul (m a : ℝ) (u : TimeZeroSource) + (p : EuclideanSpace ℝ (Fin 3)) : + timeZeroOneParticle m (a • u) p = a • timeZeroOneParticle m u p := by + change spatialFourier (a • u.1) p + Complex.I * (dispersion m p : ℂ) * + spatialFourier (a • u.2) p = _ + rw [spatialFourier_smul, spatialFourier_smul] + simp only [timeZeroOneParticle, Complex.real_smul] + ring + +theorem timeZeroL2_smul {m : ℝ} (hm : 0 < m) (a : ℝ) (u : TimeZeroSource) : + timeZeroL2 hm (a • u) = a • timeZeroL2 hm u := + (MemLp.toLp_congr (memLp_timeZeroOneParticle hm (a • u)) + ((memLp_timeZeroOneParticle hm u).const_smul a) + (Filter.Eventually.of_forall fun p => timeZeroOneParticle_smul m a u p)).trans + (MemLp.toLp_const_smul a (memLp_timeZeroOneParticle hm u)) + +/-- The actual time-zero source map, now bundled as a real linear map. -/ +noncomputable def timeZeroLinear {m : ℝ} (hm : 0 < m) : + TimeZeroSource →ₗ[ℝ] Lp ℂ 2 (oneParticleMeasure m) where + toFun := timeZeroL2 hm + map_add' := timeZeroL2_add hm + map_smul' := timeZeroL2_smul hm + +theorem timeZeroLinear_injective {m : ℝ} (hm : 0 < m) : + Function.Injective (timeZeroLinear hm) := by + apply (LinearMap.ker_eq_bot).mp + apply LinearMap.ker_eq_bot'.mpr + exact timeZeroSource_eq_zero_of_L2_eq_zero hm + +/-- Both real test functions have their support inside `U`, as in Section 2.1. -/ +def localizedTimeZeroSources (U : Set (EuclideanSpace ℝ (Fin 3))) : + Submodule ℝ TimeZeroSource where + carrier := {u | tsupport u.1.1 ⊆ U ∧ tsupport u.2.1 ⊆ U} + zero_mem' := by + change tsupport (fun _ : EuclideanSpace ℝ (Fin 3) => (0 : ℝ)) ⊆ U ∧ + tsupport (fun _ : EuclideanSpace ℝ (Fin 3) => (0 : ℝ)) ⊆ U + simp + add_mem' := by + intro u v hu hv + constructor + · exact (tsupport_add u.1.1 v.1.1).trans (Set.union_subset hu.1 hv.1) + · exact (tsupport_add u.2.1 v.2.1).trans (Set.union_subset hu.2 hv.2) + smul_mem' := by + intro a u hu + constructor + · exact (tsupport_smul_subset_right (fun _ => a) u.1.1).trans hu.1 + · exact (tsupport_smul_subset_right (fun _ => a) u.2.1).trans hu.2 + + +/-- A type copy records the mass used by the covariance norm. -/ +def SourceTestSpace {m : ℝ} (_hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) : Type := + localizedTimeZeroSources U + + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + + +instance : AddCommGroup (SourceTestSpace hm U) := + inferInstanceAs (AddCommGroup (localizedTimeZeroSources U)) + +instance : Module ℝ (SourceTestSpace hm U) := + inferInstanceAs (Module ℝ (localizedTimeZeroSources U)) + +/-- Source test map of type `SourceTestSpace hm U →ₗ[ℝ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def sourceTestMap : SourceTestSpace hm U →ₗ[ℝ] Lp ℂ 2 (oneParticleMeasure m) := + (timeZeroLinear hm).comp (localizedTimeZeroSources U).subtype + +theorem sourceTestMap_injective : Function.Injective (sourceTestMap hm U) := + (timeZeroLinear_injective hm).comp Subtype.val_injective + +noncomputable instance : NormedAddCommGroup (SourceTestSpace hm U) := + NormedAddCommGroup.induced _ _ (sourceTestMap hm U) (sourceTestMap_injective hm U) + +noncomputable instance : InnerProductSpace ℝ (SourceTestSpace hm U) := + InnerProductSpace.induced (sourceTestMap hm U) + + +/-- Source test isometry of type `SourceTestSpace hm U →ₗᵢ[ℝ] Lp ℂ 2 (oneParticleMeasure m) where +__`. -/ +noncomputable def sourceTestIsometry : SourceTestSpace hm U →ₗᵢ[ℝ] Lp ℂ 2 + (oneParticleMeasure m) where + __ := sourceTestMap hm U + norm_map' _ := rfl + +/-- The real Hilbert completion specified in Section 2.2. -/ +abbrev SourceHilbert := UniformSpace.Completion (SourceTestSpace hm U) + +/-- The source embedding extends the literal time-zero map isometrically. -/ +noncomputable def sourceEmbedding : SourceHilbert hm U →ₗᵢ[ℝ] Lp ℂ 2 (oneParticleMeasure m) := + (sourceTestIsometry hm U).fromCompletion + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceGramStrictness.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceGramStrictness.lean new file mode 100644 index 0000000000..f31bc08198 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceGramStrictness.lean @@ -0,0 +1,83 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CompletedComplexInjectivity +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexConjugation + +/-! +# Strict source Gram forms and the separating real subspace + +Injectivity of the actual completed complex source map gives a strictly +positive quadratic form and injective Gram operators, without asserting a +uniform spectral gap or bounded inverse. The closed real source space is +separating. Cyclicity/dense range, and hence full standardness, are proved in other modules +for bounded open nonempty regions (`complexSourceMap_denseRange_of_open` in +`FreeField/LocalComplexDensity.lean`; `sourceRealSpace_sup_mulI_eq_top` and +`physicalSourceStandardSubspace` in `FreeField/StandardSourceSpace.lean`). +-/ + +@[expose] public section + +open MeasureTheory +open VacuumBellSeparation.Gaussian.HilbertComplexification +open scoped InnerProductSpace + +namespace VacuumBellSeparation + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +theorem sourceGram_isPositive : (sourceGram hm U).IsPositive := + ContinuousLinearMap.isPositive_adjoint_comp_self (complexSourceMap hm U) + +theorem inner_sourceGram_re_eq_norm_sq (z : ComplexSourceHilbert hm U) : + (inner ℂ z (sourceGram hm U z)).re = ‖complexSourceMap hm U z‖ ^ 2 := + ((complexSourceMap hm U).apply_norm_sq_eq_inner_adjoint_right z).symm + +theorem inner_sourceGram_pos (hU : Bornology.IsBounded U) + (z : ComplexSourceHilbert hm U) (hz : z ≠ 0) : + 0 < (inner ℂ z (sourceGram hm U z)).re := by + rw [inner_sourceGram_re_eq_norm_sq] + exact sq_pos_of_pos (norm_pos_iff.mpr (fun h => + hz (complexSource_eq_zero_of_map_eq_zero hm U hU z h))) + +theorem sourceGram_injective (hU : Bornology.IsBounded U) : + Function.Injective (sourceGram hm U) := by + intro z w h + apply sub_eq_zero.mp + have hg : sourceGram hm U (z - w) = 0 := by rw [map_sub, h, sub_self] + by_contra hz + have hp := inner_sourceGram_pos hm U hU (z - w) hz + simp only [hg, inner_zero_right, Complex.zero_re, lt_self_iff_false] at hp + +theorem conjugateSourceGram_injective (hU : Bornology.IsBounded U) : + Function.Injective (Gaussian.conjugateOperator (sourceGram hm U)) := by + intro z w h + apply (conjugation (E := SourceHilbert hm U)).injective + apply sourceGram_injective hm U hU + exact (conjugation (E := SourceHilbert hm U)).injective h + +/-- The actual real range has trivial intersection with its imaginary multiple. -/ +theorem sourceRealSpace_separating (hU : Bornology.IsBounded U) + (x : Lp ℂ 2 (oneParticleMeasure m)) + (hx : x ∈ sourceRealSpace hm U) (hix : Complex.I • x ∈ sourceRealSpace hm U) : x = 0 := by + change ∃ u, sourceEmbedding hm U u = x at hx + change ∃ v, sourceEmbedding hm U v = Complex.I • x at hix + obtain ⟨u, hu⟩ := hx + obtain ⟨v, hv⟩ := hix + let z : ComplexSourceHilbert hm U := Gaussian.HilbertComplexification.mk v (-u) + have hz : complexSourceMap hm U z = 0 := by + change sourceEmbedding hm U v + Complex.I • sourceEmbedding hm U (-u) = 0 + rw [map_neg, hu, hv, smul_neg, add_neg_cancel] + have hz0 := complexSource_eq_zero_of_map_eq_zero hm U hU z hz + have hu0 : u = 0 := by + have h := congrArg (fun w : ComplexSourceHilbert hm U => w.im) hz0 + simpa [z] using h + rw [hu0, map_zero] at hu + exact hu.symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceInclusion.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceInclusion.lean new file mode 100644 index 0000000000..4ba9618afe --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceInclusion.lean @@ -0,0 +1,71 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceSpace + +/-! +# Isometric inclusion of localized source completions + +Region inclusion acts on the literal test pairs, preserves their covariance +norm, and therefore extends to an isometry of the real Hilbert completions. +The physical source embeddings intertwine this constructed inclusion. +-/ + +@[expose] public section + +open MeasureTheory ClosedSubmodule + +namespace VacuumBellSeparation + +variable {m : ℝ} (hm : 0 < m) + {U V : Set (EuclideanSpace ℝ (Fin 3))} (hUV : U ⊆ V) + +/-- Inclusion of localized test pairs with their actual covariance norms. -/ +noncomputable def sourceTestInclusion : SourceTestSpace hm U →ₗᵢ[ℝ] SourceTestSpace hm V where + toFun u := ⟨u.1, localizedTimeZeroSources_mono hUV u.2⟩ + map_add' _ _ := Subtype.ext rfl + map_smul' _ _ := Subtype.ext rfl + norm_map' _ := rfl + +/-- The uniquely extended inclusion of real source Hilbert spaces. -/ +noncomputable def sourceInclusion : SourceHilbert hm U →ₗᵢ[ℝ] SourceHilbert hm V := + ((UniformSpace.Completion.toComplₗᵢ : + SourceTestSpace hm V →ₗᵢ[ℝ] SourceHilbert hm V).comp + (sourceTestInclusion hm hUV)).fromCompletion + +theorem sourceInclusion_coe (u : SourceTestSpace hm U) : + sourceInclusion hm hUV (u : SourceHilbert hm U) = + (sourceTestInclusion hm hUV u : SourceHilbert hm V) := + ((UniformSpace.Completion.toComplₗᵢ : + SourceTestSpace hm V →ₗᵢ[ℝ] SourceHilbert hm V).comp + (sourceTestInclusion hm hUV)).fromCompletion_apply_coe u + +/-- The physical vector is unchanged under the actual localized source inclusion. -/ +theorem sourceEmbedding_comp_inclusion : + (sourceEmbedding hm V).comp (sourceInclusion hm hUV) = sourceEmbedding hm U := by + apply LinearIsometry.ext + intro z + refine UniformSpace.Completion.induction_on z + (isClosed_eq ((sourceEmbedding hm V).continuous.comp (sourceInclusion hm hUV).continuous) + (sourceEmbedding hm U).continuous) ?_ + intro u + change sourceEmbedding hm V (sourceInclusion hm hUV (u : SourceHilbert hm U)) = _ + rw [sourceInclusion_coe, sourceEmbedding_coe, sourceEmbedding_coe] + rfl + +theorem sourceEmbedding_inclusion (z : SourceHilbert hm U) : + sourceEmbedding hm V (sourceInclusion hm hUV z) = sourceEmbedding hm U z := + DFunLike.congr_fun (sourceEmbedding_comp_inclusion hm hUV) z + +include hUV in +/-- Isotony of the actual closed real one-particle source subspaces. -/ +theorem sourceRealSpace_mono : sourceRealSpace hm U ≤ sourceRealSpace hm V := by + rintro _ ⟨z, rfl⟩ + exact ⟨sourceInclusion hm hUV z, sourceEmbedding_inclusion hm hUV z⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceModularHalfPower.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceModularHalfPower.lean new file mode 100644 index 0000000000..c7673177bb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceModularHalfPower.lean @@ -0,0 +1,64 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularPowers +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioGraph + +/-! +# The full half-power is the actual positive modular root + +This is equality of partial maps, not merely agreement on source vectors. +It identifies the regularized continuous half-power with the independently +constructed positive selfadjoint root whose maximal square is the modular +operator. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +theorem sourceModularPower_half (hU : Bornology.IsBounded U) : + sourceModularPower hm U hU (1 / 2) (by norm_num) (by norm_num) = + sourceModularRoot hm U hU := by + let a : ℝ := (1 / 2 : ℝ) ^ (1 / 2 : ℝ) + have ha : a ≠ 0 := (Real.rpow_pos_of_pos (by norm_num : (0 : ℝ) < 1 / 2) _).ne' + have hG : 0 ≤ sourceGram hm U := nonneg_iff_isPositive.mpr (sourceGram_isPositive hm U) + have hR : sourceModularResolvent hm U ^ (1 / 2 : ℝ) = a • sourceGramRoot hm U := by + rw [sourceModularResolvent, Gaussian.positiveOperator_real_smul_rpow hG + (by norm_num) (by norm_num), ← CFC.sqrt_eq_rpow] + rfl + have hB : (1 - sourceModularResolvent hm U) ^ (1 / 2 : ℝ) = + a • conjugateSourceGramRoot hm U := by + rw [one_sub_sourceModularResolvent, Gaussian.positiveOperator_real_smul_rpow + (conjugateSourceGram_nonneg hm U) (by norm_num) (by norm_num), ← CFC.sqrt_eq_rpow] + rfl + unfold sourceModularPower resolventPowerRatio sourceModularRoot + apply LinearPMap.eq_of_eq_graph + ext p + rcases p with ⟨x, y⟩ + rw [boundedRatio_mem_graph, boundedRatio_mem_graph, hR, hB] + constructor + · rintro ⟨z, hz, hv⟩ + refine ⟨a • z, ?_, ?_⟩ + · simpa only [map_smul_of_tower, smul_apply] using hz + · simpa only [map_smul_of_tower, smul_apply] using hv + · rintro ⟨z, rfl, rfl⟩ + refine ⟨a⁻¹ • z, ?_, ?_⟩ <;> + simp only [smul_apply, map_smul_of_tower, smul_smul, mul_inv_cancel₀ ha, one_smul] + +theorem sourceModularPower_half_square (hU : Bornology.IsBounded U) : + partialComp (sourceModularPower hm U hU (1 / 2) (by norm_num) (by norm_num)) + (sourceModularPower hm U hU (1 / 2) (by norm_num) (by norm_num)) = + sourceModularOperator hm U hU := by + rw [sourceModularPower_half, sourceModularRoot_square] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceModularOperator.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceModularOperator.lean new file mode 100644 index 0000000000..229089e4ad --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceModularOperator.lean @@ -0,0 +1,82 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceConjugateRoots +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioSquare +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioSum + +/-! +# The source modular ratio as an actual positive selfadjoint operator + +The domain is range G, and the action is Gz ↦ Gbar z. It equals the +maximal square of the previously constructed positive selfadjoint root. +Transport to the physical antlinear Tomita adjoint product is separate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap +open scoped InnerProductSpace + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) +variable (hU : Bornology.IsBounded U) + +/-- Linear map for the source modular operator, of type `ComplexSourceHilbert hm U →ₗ.[ℂ] +ComplexSourceHilbert hm U`. -/ +noncomputable def sourceModularOperator : + ComplexSourceHilbert hm U →ₗ.[ℂ] ComplexSourceHilbert hm U := + boundedRatio (sourceGram hm U) (conjugateSourceGram hm U) (sourceGram_injective hm U hU) + +@[simp] theorem sourceModularOperator_apply (z : ComplexSourceHilbert hm U) : + sourceModularOperator hm U hU ⟨sourceGram hm U z, ⟨z, rfl⟩⟩ = conjugateSourceGram hm U z := + boundedRatio_apply_range _ _ _ z + +theorem sourceModularRoot_square : + partialComp (sourceModularRoot hm U hU) (sourceModularRoot hm U hU) = + sourceModularOperator hm U hU := by + rw [sourceModularRoot, boundedRatio_square_eq _ _ _ + (sourceGramRoot_commute_conjugateSourceGramRoot hm U) + (sourceGramRoot_sq_add_conjugateSourceGramRoot_sq hm U)] + have hA : sourceGramRoot hm U * sourceGramRoot hm U = sourceGram hm U := + CFC.sqrt_mul_sqrt_self _ (nonneg_iff_isPositive.mpr (sourceGram_isPositive hm U)) + have hB : conjugateSourceGramRoot hm U * conjugateSourceGramRoot hm U = + conjugateSourceGram hm U := CFC.sqrt_mul_sqrt_self _ (conjugateSourceGram_nonneg hm U) + simp only [hA, hB, sourceModularOperator] + +include hU in +theorem sourceGram_denseRange : DenseRange (sourceGram hm U) := by + have hker : (sourceGram hm U).ker = ⊥ := LinearMap.ker_eq_bot.mpr (sourceGram_injective hm U hU) + have horth : (sourceGram hm U).rangeᗮ = ⊥ := by + rw [(sourceGram hm U).orthogonal_range, + (sourceGram_isPositive hm U).isSelfAdjoint.adjoint_eq, hker] + have hclose := (sourceGram hm U).range.topologicalClosure_eq_top_iff.mpr horth + exact Submodule.dense_iff_topologicalClosure_eq_top.mpr hclose + +theorem sourceModularOperator_isSelfAdjoint : IsSelfAdjoint (sourceModularOperator hm U hU) := by + apply boundedRatio_isSelfAdjoint_of_sum_eq_two _ _ _ (sourceGram_denseRange hm U hU) + (sourceGram_isPositive hm U).isSelfAdjoint (conjugateSourceGram_nonneg hm U).isSelfAdjoint + (sourceGram_commute_conjugateSourceGram hm U) + rw [conjugateSourceGram_eq_two_sub] + noncomm_ring + +theorem sourceModularOperator_inner_nonneg (x : (sourceModularOperator hm U hU).domain) : + 0 ≤ (inner ℂ (x : ComplexSourceHilbert hm U) (sourceModularOperator hm U hU x)).re := by + obtain ⟨z, hz, hBz⟩ := boundedRatio_representation (sourceGram hm U) + (conjugateSourceGram hm U) (sourceGram_injective hm U hU) x + change conjugateSourceGram hm U z = sourceModularOperator hm U hU x at hBz + rw [← hz, ← hBz] + have hsym : inner ℂ (sourceGram hm U z) (conjugateSourceGram hm U z) = + inner ℂ z (sourceGram hm U (conjugateSourceGram hm U z)) := + (sourceGram_isPositive hm U).isSelfAdjoint.isSymmetric z (conjugateSourceGram hm U z) + rw [hsym] + exact (nonneg_iff_isPositive.mp (sourceGram_mul_conjugateSourceGram_nonneg hm + U)).re_inner_nonneg_right z + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceModularPowers.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceModularPowers.lean new file mode 100644 index 0000000000..8e2a4a9f53 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceModularPowers.lean @@ -0,0 +1,78 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourcePowerRangeWitness +public import LeanPool.VacuumBellSeparation.FreeField.ResolventPowerBounded +public import LeanPool.VacuumBellSeparation.FreeField.UnitaryPartialTransport +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomitaAdjoint + +/-! +# Resolvent functional calculus and the bounded whole-source modular weights + +The intrinsic resolvent of the actual source modular operator is G/2. +The positive powers below use the constructed regularizable continuous +calculus on that resolvent. They are actual positive selfadjoint partial +operators. At exponent one they equal the original modular ratio, with +full domain equality. For 0≤c≤1/2, an explicit range witness proves that +every sqrt(G)z lies in the power domain and its image is the literal +bounded operator h_c=G^(1/2-c)Gbar^c applied to z. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap +open scoped InnerProductSpace + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- The regularizable continuous power associated with the intrinsic resolvent. -/ +noncomputable def sourceModularPower (hU : Bornology.IsBounded U) + (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) : + ComplexSourceHilbert hm U →ₗ.[ℂ] ComplexSourceHilbert hm U := + resolventPowerRatio (sourceModularResolvent hm U) (sourceModularResolvent_nonneg hm U) + (sourceModularResolvent_injective hm U hU) c hc hc1 + +theorem sourceModularPower_isSelfAdjoint (hU : Bornology.IsBounded U) + (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) : + IsSelfAdjoint (sourceModularPower hm U hU c hc hc1) := + resolventPowerRatio_isSelfAdjoint _ (sourceModularResolvent_nonneg hm U) + (sourceModularResolvent_le_one hm U) _ c hc hc1 + +theorem sourceModularPower_one (hU : Bornology.IsBounded U) : + sourceModularPower hm U hU 1 (by norm_num) (by norm_num) = sourceModularOperator hm U hU := by + apply partialOperator_eq_of_resolvent _ _ (sourceModularResolvent hm U) + · intro x y + rw [sourceModularPower, resolventPowerRatio_resolvent _ + (sourceModularResolvent_nonneg hm U) (sourceModularResolvent_le_one hm U)] + have hb : 0 ≤ 1 - sourceModularResolvent hm U := sub_nonneg.mpr + (sourceModularResolvent_le_one hm U) + rw [CFC.rpow_one _ (sourceModularResolvent_nonneg hm U), CFC.rpow_one _ hb, + show sourceModularResolvent hm U + (1 - sourceModularResolvent hm U) = 1 by abel, + Ring.inverse_one, mul_one] + · exact sourceModularResolvent_spec hm U hU + +/-- Every source vector is in the true partial power domain after sqrt(G). +The witness remains valid at c=0 and c=1/2, with no inverse of G. -/ +theorem sourceModularPower_apply_sqrt (hU : Bornology.IsBounded U) + (c : ℝ) (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) (z : ComplexSourceHilbert hm U) : + ∃ hx : sourceGramRoot hm U z ∈ (sourceModularPower hm U hU c hc (by linarith)).domain, + sourceModularPower hm U hU c hc (by linarith) ⟨sourceGramRoot hm U z, hx⟩ = + sourceModularWeight hm U c z := by + let R := sourceModularResolvent hm U + obtain ⟨w, hAw, hBw⟩ := sourceModularWeight_range_witness hm U hc hc2 z + refine ⟨⟨w, hAw⟩, ?_⟩ + have hh : (⟨sourceGramRoot hm U z, ⟨w, hAw⟩⟩ : + (sourceModularPower hm U hU c hc (by linarith)).domain) = + ⟨(R ^ c) w, ⟨w, rfl⟩⟩ := Subtype.ext hAw.symm + rw [hh] + exact (resolventPowerRatio_apply R (sourceModularResolvent_nonneg hm U) + (sourceModularResolvent_injective hm U hU) c hc (by linarith) w).trans hBw + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceModularResolvent.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceModularResolvent.lean new file mode 100644 index 0000000000..eb7679ee6e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceModularResolvent.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularOperator +public import LeanPool.VacuumBellSeparation.FreeField.PositiveContractionPowers + +/-! +# The intrinsic source modular resolvent + +The universal equation y+Delta y=x has the unique solution Gx/2. +Consequently the source ratio has the actual injective positive contraction +R=G/2 as its resolvent. This supplies the intrinsic input for the extended +continuous calculus, while allowing spectrum at zero. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Continuous linear map for the source modular resolvent, of type `ComplexSourceHilbert hm U +→L[ℂ] ComplexSourceHilbert hm U`. -/ +noncomputable def sourceModularResolvent : + ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U := + (1 / 2 : ℝ) • sourceGram hm U + +theorem sourceModularResolvent_nonneg : 0 ≤ sourceModularResolvent hm U := + smul_nonneg (by norm_num) (nonneg_iff_isPositive.mpr (sourceGram_isPositive hm U)) + +theorem sourceModularResolvent_le_one : sourceModularResolvent hm U ≤ 1 := by + have hG : sourceGram hm U ≤ 2 := by + exact sub_nonneg.mp ((conjugateSourceGram_eq_two_sub hm U) ▸ conjugateSourceGram_nonneg hm U) + have hh := smul_le_smul_of_nonneg_left hG (by norm_num : (0 : ℝ) ≤ 1 / 2) + have htwo : (1 / 2 : ℝ) • (2 : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U) = 1 + := by + rw [show (2 : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U) = + (2 : ℝ) • 1 by norm_num [two_smul], smul_smul] + norm_num + change (1 / 2 : ℝ) • sourceGram hm U ≤ 1 + rwa [htwo] at hh + +theorem sourceModularResolvent_injective (hU : Bornology.IsBounded U) : + Function.Injective (sourceModularResolvent hm U) := by + intro x y h + apply sourceGram_injective hm U hU + change (1 / 2 : ℝ) • sourceGram hm U x = (1 / 2 : ℝ) • sourceGram hm U y at h + exact (smul_right_injective _ (by norm_num : (1 / 2 : ℝ) ≠ 0)) h + +theorem sourceModularResolvent_spec (hU : Bornology.IsBounded U) + (x y : ComplexSourceHilbert hm U) : + (∃ hy : y ∈ (sourceModularOperator hm U hU).domain, + y + sourceModularOperator hm U hU ⟨y, hy⟩ = x) ↔ + sourceModularResolvent hm U x = y := by + have hsum (z : ComplexSourceHilbert hm U) : + sourceGram hm U z + conjugateSourceGram hm U z = (2 : ℝ) • z := by + rw [conjugateSourceGram_eq_two_sub] + simp only [sub_apply, ofNat_apply, two_smul] + abel + constructor + · rintro ⟨hy, heq⟩ + obtain ⟨z, hz, hv⟩ := boundedRatio_representation (sourceGram hm U) + (conjugateSourceGram hm U) (sourceGram_injective hm U hU) ⟨y, hy⟩ + have hx : (2 : ℝ) • z = x := by + rw [← hsum, hz, hv] + exact heq + rw [← hx] + change (1 / 2 : ℝ) • sourceGram hm U ((2 : ℝ) • z) = y + simpa only [map_smul_of_tower, smul_smul, show (1 / 2 : ℝ) * 2 = 1 by norm_num, + one_smul] using hz + · intro heq + let z := (1 / 2 : ℝ) • x + have hz : sourceGram hm U z = y := by + simpa only [z, map_smul_of_tower, sourceModularResolvent, smul_apply] using heq + refine ⟨⟨z, hz⟩, ?_⟩ + have hh : (⟨y, ⟨z, hz⟩⟩ : (sourceModularOperator hm U hU).domain) = + ⟨sourceGram hm U z, ⟨z, rfl⟩⟩ := Subtype.ext hz.symm + rw [hh, sourceModularOperator_apply, ← hz, hsum] + dsimp [z] + norm_num [smul_smul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourcePhysicalResolvent.lean b/LeanPool/VacuumBellSeparation/FreeField/SourcePhysicalResolvent.lean new file mode 100644 index 0000000000..945781bf0b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourcePhysicalResolvent.lean @@ -0,0 +1,71 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomita +public import LeanPool.VacuumBellSeparation.FreeField.SourceConjugateRoots +public import LeanPool.VacuumBellSeparation.FreeField.AntilinearGraphAdjoint + +/-! +# A resolvent vector in the full original source Tomita square + +The literal source map κ and its actual Hilbert adjoint give R=κκ*/2. +For every physical vector ψ, (Rψ,ψ-Rψ) belongs to the universal S*S +relation of the full original source graph. No bounded-region, inverse, +core or modular-identification premise enters this statement. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ContinuousLinearMap Gaussian Gaussian.HilbertComplexification +open scoped InnerProductSpace ComplexConjugate + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Continuous linear map for the source physical resolvent, of type `Lp ℂ 2 (oneParticleMeasure m) +→L[ℂ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def sourcePhysicalResolvent : + Lp ℂ 2 (oneParticleMeasure m) →L[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + (1 / 2 : ℝ) • (complexSourceMap hm U).comp (complexSourceMap hm U).adjoint + +theorem sourceGram_conjugation (z : ComplexSourceHilbert hm U) : + sourceGram hm U (conjugation z) = conjugation (conjugateSourceGram hm U z) := by + simp only [conjugateSourceGram, conjugateOperator_apply, conjugation_conjugation] + +theorem sourceConjugatePair_inner (v w : ComplexSourceHilbert hm U) : + inner ℂ (complexSourceMap hm U (conjugation v)) + (complexSourceMap hm U (conjugation w)) = + inner ℂ (conjugateSourceGram hm U w) v := by + rw [← (complexSourceMap hm U).adjoint_inner_right] + change inner ℂ (conjugation v) (sourceGram hm U (conjugation w)) = _ + rw [sourceGram_conjugation, sourceConjugation_inner, inner_conj_symm] + +theorem sourcePhysicalResolvent_mem_square (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + (sourcePhysicalResolvent hm U ψ, ψ - sourcePhysicalResolvent hm U ψ) ∈ + antilinearGraphSquare (sourceTomitaGraph hm U) := by + let w : ComplexSourceHilbert hm U := (1 / 2 : ℝ) • (complexSourceMap hm U).adjoint ψ + have hw : complexSourceMap hm U w = sourcePhysicalResolvent hm U ψ := by + simp only [w, sourcePhysicalResolvent, map_smul_of_tower, smul_apply, comp_apply] + have htwo : (2 : ℝ) • w = (complexSourceMap hm U).adjoint ψ := by + simp only [w, smul_smul, show (2 : ℝ) * (1 / 2) = 1 by norm_num, one_smul] + have hH : conjugateSourceGram hm U w = + (complexSourceMap hm U).adjoint (ψ - complexSourceMap hm U w) := by + rw [conjugateSourceGram_eq_two_sub] + simp only [sub_apply, ofNat_apply, map_sub] + change (2 : ℕ) • w - sourceGram hm U w = + (complexSourceMap hm U).adjoint ψ - sourceGram hm U w + rw [show (2 : ℕ) • w = (2 : ℝ) • w by simp only [two_smul], htwo] + refine ⟨complexSourceMap hm U (conjugation w), ⟨w, hw, rfl⟩, ?_⟩ + rintro x y ⟨v, rfl, rfl⟩ + change inner ℂ (complexSourceMap hm U (conjugation v)) + (complexSourceMap hm U (conjugation w)) = + inner ℂ (ψ - sourcePhysicalResolvent hm U ψ) (complexSourceMap hm U v) + rw [sourceConjugatePair_inner, hH, (complexSourceMap hm U).adjoint_inner_left, hw] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourcePolarUnitary.lean b/LeanPool/VacuumBellSeparation/FreeField/SourcePolarUnitary.lean new file mode 100644 index 0000000000..4f4a0bf41b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourcePolarUnitary.lean @@ -0,0 +1,43 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourcePolarUnitaryDefs +public import LeanPool.VacuumBellSeparation.FreeField.PolarUnitary +public import LeanPool.VacuumBellSeparation.FreeField.StandardSourceSpace + +/-! +# Polar decomposition of the actual completed local source map + +The constructed unitary is obtained from the proved source-map injectivity +and dense range. The factorization uses the literal physical source Gram +operator and its CFC square root, including spectra accumulating at zero. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +theorem sourcePolarUnitary_sqrt_gram (hU : Bornology.IsBounded U) + (hopen : IsOpen U) (hne : U.Nonempty) (z : ComplexSourceHilbert hm U) : + sourcePolarUnitary hm U hU hopen hne (CFC.sqrt (sourceGram hm U) z) = + complexSourceMap hm U z := + polarUnitary_polarGramRoot (complexSourceMap hm U) _ _ z + +theorem sourcePolarUnitary_factorization (hU : Bornology.IsBounded U) + (hopen : IsOpen U) (hne : U.Nonempty) : + (sourcePolarUnitary hm U hU hopen hne).toContinuousLinearEquiv.toContinuousLinearMap.comp + (CFC.sqrt (sourceGram hm U)) = complexSourceMap hm U := by + apply ContinuousLinearMap.ext + intro z + exact sourcePolarUnitary_sqrt_gram hm U hU hopen hne z + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourcePolarUnitaryDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/SourcePolarUnitaryDefs.lean new file mode 100644 index 0000000000..a1ff55cb45 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourcePolarUnitaryDefs.lean @@ -0,0 +1,35 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PolarUnitary +public import LeanPool.VacuumBellSeparation.FreeField.StandardSourceSpace + +/-! +# Literal statement construction extracted from FreeField/SourcePolarUnitary + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Linear isometry equivalence for the source polar unitary, of type `ComplexSourceHilbert hm U +≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def sourcePolarUnitary (hU : Bornology.IsBounded U) + (hopen : IsOpen U) (hne : U.Nonempty) : + ComplexSourceHilbert hm U ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + polarUnitary (complexSourceMap hm U) (complexSourceMap_injective hm U hU) + (complexSourceMap_denseRange_of_open hm U hopen hne) + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourcePowerRangeWitness.lean b/LeanPool/VacuumBellSeparation/FreeField/SourcePowerRangeWitness.lean new file mode 100644 index 0000000000..7eeb4936a1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourcePowerRangeWitness.lean @@ -0,0 +1,81 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularResolvent +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedDensityPowers + +/-! +# A whole-source range witness without a bounded-region premise + +The explicit witness uses only nonnegative CFC powers, and requires neither +injectivity nor an inverse of the Gram operator. It therefore also applies +to the original unbounded halfspace source completion. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- The bounded source weight, made from the actual positive Gram operators. -/ +noncomputable def sourceModularWeight (c : ℝ) : + ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U := + sourceGram hm U ^ (1 / 2 - c) * conjugateSourceGram hm U ^ c + +theorem one_sub_sourceModularResolvent : + 1 - sourceModularResolvent hm U = (1 / 2 : ℝ) • conjugateSourceGram hm U := by + rw [sourceModularResolvent, conjugateSourceGram_eq_two_sub, smul_sub] + have htwo : (1 / 2 : ℝ) • (2 : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U) = 1 + := by + rw [show (2 : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U) = + (2 : ℝ) • 1 by norm_num [two_smul], smul_smul] + norm_num + rw [htwo] + +theorem sourceModularWeight_range_witness {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) + (z : ComplexSourceHilbert hm U) : + ∃ w : ComplexSourceHilbert hm U, + (sourceModularResolvent hm U ^ c) w = sourceGramRoot hm U z ∧ + ((1 - sourceModularResolvent hm U) ^ c) w = sourceModularWeight hm U c z := by + let G := sourceGram hm U + let H := conjugateSourceGram hm U + let R := sourceModularResolvent hm U + let a : ℝ := (1 / 2 : ℝ) ^ c + have ha : a ≠ 0 := (Real.rpow_pos_of_pos (by norm_num : (0 : ℝ) < 1 / 2) c).ne' + have hG : 0 ≤ G := nonneg_iff_isPositive.mpr (sourceGram_isPositive hm U) + have hH : 0 ≤ H := conjugateSourceGram_nonneg hm U + have hRp : R ^ c = a • G ^ c := + Gaussian.positiveOperator_real_smul_rpow hG (by norm_num) hc + have hHp : (1 - R) ^ c = a • H ^ c := by + rw [show 1 - R = (1 / 2 : ℝ) • H from one_sub_sourceModularResolvent hm U] + exact Gaussian.positiveOperator_real_smul_rpow hH (by norm_num) hc + have hGG : G ^ c * G ^ (1 / 2 - c) = sourceGramRoot hm U := by + rw [← positiveOperator_rpow_add G hc (sub_nonneg.mpr hc2), + show c + (1 / 2 - c) = 1 / 2 by ring] + exact (CFC.sqrt_eq_rpow (a := G)).symm + have hcomm : Commute (G ^ (1 / 2 - c)) (H ^ c) := + (((sourceGram_commute_conjugateSourceGram hm U).cfc_nnreal + (fun x => x ^ (1 / 2 - c))).symm.cfc_nnreal (fun x => x ^ c)).symm + let w := a⁻¹ • ((G ^ (1 / 2 - c)) z) + have hAw : (R ^ c) w = sourceGramRoot hm U z := by + rw [hRp] + change a • (G ^ c) (a⁻¹ • ((G ^ (1 / 2 - c)) z)) = _ + rw [map_smul_of_tower, smul_smul, mul_inv_cancel₀ ha, one_smul] + exact congrArg (fun Q : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U => Q z) hGG + have hBw : ((1 - R) ^ c) w = sourceModularWeight hm U c z := by + rw [hHp] + change a • (H ^ c) (a⁻¹ • ((G ^ (1 / 2 - c)) z)) = _ + rw [map_smul_of_tower, smul_smul, mul_inv_cancel₀ ha, one_smul] + exact congrArg (fun Q : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U => Q z) + hcomm.eq.symm + exact ⟨w, hAw, hBw⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceRangeIsometry.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceRangeIsometry.lean new file mode 100644 index 0000000000..a41dd025ae --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceRangeIsometry.lean @@ -0,0 +1,135 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ModularWeightInclusion + +/-! +# Source isometries induced by physical unitaries + +A physical unitary carrying the actual completed real source range into +another such range induces an isometry of the original completions. Its +complexification compresses the actual Gram operator exactly. The source +weight estimate follows from operator concavity, including zero spectrum. +The range inclusion is an explicit hypothesis here, to be proved from +localization in each application. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ContinuousLinearMap Gaussian + +variable {m : ℝ} (hm : 0 < m) + {U W : Set (EuclideanSpace ℝ (Fin 3))} + (T : Lp ℂ 2 (oneParticleMeasure m) ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m)) + (hT : ∀ z : SourceHilbert hm U, + T (sourceEmbedding hm U z) ∈ sourceRealSpace hm W) + +/-- Source range map. -/ +noncomputable def sourceRangeMap : SourceHilbert hm U →ₗᵢ[ℝ] sourceRealSpace hm W where + toFun z := ⟨T (sourceEmbedding hm U z), hT z⟩ + map_add' x y := Subtype.ext (by simp) + map_smul' a x := by + apply Subtype.ext + change T (sourceEmbedding hm U (a • x)) = a • T (sourceEmbedding hm U x) + rw [map_smul] + exact T.toLinearEquiv.toLinearMap.map_smul_of_tower a (sourceEmbedding hm U x) + norm_map' z := by + change ‖T (sourceEmbedding hm U z)‖ = ‖z‖ + rw [T.norm_map, (sourceEmbedding hm U).norm_map] + +/-- Source range isometry of type `SourceHilbert hm U →ₗᵢ[ℝ] SourceHilbert hm W`. -/ +noncomputable def sourceRangeIsometry : SourceHilbert hm U →ₗᵢ[ℝ] SourceHilbert hm W := + (sourceEmbedding hm W).equivRange.symm.toLinearIsometry.comp (sourceRangeMap hm T hT) + +theorem sourceEmbedding_rangeIsometry (z : SourceHilbert hm U) : + sourceEmbedding hm W (sourceRangeIsometry hm T hT z) = T (sourceEmbedding hm U z) := by + exact congrArg Subtype.val ((sourceEmbedding hm W).equivRange.apply_symm_apply + (sourceRangeMap hm T hT z)) + +/-- Complex source range isometry of type `ComplexSourceHilbert hm U →ₗᵢ[ℂ] ComplexSourceHilbert hm +W`. -/ +noncomputable def complexSourceRangeIsometry : + ComplexSourceHilbert hm U →ₗᵢ[ℂ] ComplexSourceHilbert hm W := + complexifyIsometry (sourceRangeIsometry hm T hT) + +theorem complexSourceMap_rangeIsometry (z : ComplexSourceHilbert hm U) : + complexSourceMap hm W (complexSourceRangeIsometry hm T hT z) = + T (complexSourceMap hm U z) := by + change sourceEmbedding hm W (sourceRangeIsometry hm T hT z.re) + + Complex.I • sourceEmbedding hm W (sourceRangeIsometry hm T hT z.im) = + T (sourceEmbedding hm U z.re + Complex.I • sourceEmbedding hm U z.im) + rw [sourceEmbedding_rangeIsometry, sourceEmbedding_rangeIsometry, map_add, map_smul] + +theorem sourceGram_rangeIsometry_compression : + compression (complexSourceRangeIsometry hm T hT) (sourceGram hm W) = sourceGram hm U := by + apply ContinuousLinearMap.ext + intro z + apply ext_inner_left ℂ + intro w + change inner ℂ w ((complexSourceRangeIsometry hm T hT).toContinuousLinearMap.adjoint + ((complexSourceMap hm W).adjoint + (complexSourceMap hm W (complexSourceRangeIsometry hm T hT z)))) = + inner ℂ w ((complexSourceMap hm U).adjoint (complexSourceMap hm U z)) + rw [adjoint_inner_right, adjoint_inner_right, adjoint_inner_right] + change inner ℂ (complexSourceMap hm W (complexSourceRangeIsometry hm T hT w)) + (complexSourceMap hm W (complexSourceRangeIsometry hm T hT z)) = + inner ℂ (complexSourceMap hm U w) (complexSourceMap hm U z) + rw [complexSourceMap_rangeIsometry, complexSourceMap_rangeIsometry, T.inner_map_map] + +theorem sourceNormalizedCommutation_rangeIsometry_compression : + compression (complexSourceRangeIsometry hm T hT) + (normalizedCommutation (complexSourceCommutation hm W)) = + normalizedCommutation (complexSourceCommutation hm U) := by + have heq (V : Set (EuclideanSpace ℝ (Fin 3))) : + normalizedCommutation (complexSourceCommutation hm V) = sourceGram hm V - 1 := by + rw [sourceGram_eq_normalized_commutation] + change (Complex.I / 2) • complexSourceCommutation hm V = + 1 + (Complex.I / 2) • complexSourceCommutation hm V - 1 + abel + rw [heq W, heq U, compression_sub, compression_one, + sourceGram_rangeIsometry_compression] + +theorem sourceModularWeight_rangeIsometry_square_compression + {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) : + compression (complexSourceRangeIsometry hm T hT) + ((sourceModularWeight hm W c).adjoint * sourceModularWeight hm W c) ≤ + (sourceModularWeight hm U c).adjoint * sourceModularWeight hm U c := by + rw [sourceModularWeight_adjoint_mul hm W hc.le hc2, + sourceModularWeight_adjoint_mul hm U hc.le hc2, + ← sourceNormalizedCommutation_rangeIsometry_compression hm T hT] + exact modularWeight_compression (complexSourceRangeIsometry hm T hT) + (normalizedCommutation_isSelfAdjoint (complexSourceCommutation_mem_skewAdjoint hm W)) + (norm_normalizedCommutation_le_one (norm_complexSourceCommutation_le_two hm W)) + (by linarith) (by linarith) + +theorem sourceModularWeight_rangeIsometry_norm + {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) (z : ComplexSourceHilbert hm U) : + ‖sourceModularWeight hm W c (complexSourceRangeIsometry hm T hT z)‖ ≤ + ‖sourceModularWeight hm U c z‖ := by + let J := (complexSourceRangeIsometry hm T hT).toContinuousLinearMap + let A := sourceModularWeight hm W c + let B := sourceModularWeight hm U c + have hleft : ‖A (J z)‖ ^ 2 = + (inner ℂ z (compression (complexSourceRangeIsometry hm T hT) (A.adjoint * A) z)).re := by + change ‖(A ∘L J) z‖ ^ 2 = _ + rw [(A ∘L J).apply_norm_sq_eq_inner_adjoint_right, adjoint_comp] + rfl + have hright : ‖B z‖ ^ 2 = (inner ℂ z ((B.adjoint * B) z)).re := + B.apply_norm_sq_eq_inner_adjoint_right z + have hh := (nonneg_iff_isPositive.mp (sub_nonneg.mpr + (sourceModularWeight_rangeIsometry_square_compression hm T hT hc hc2))).re_inner_nonneg_right z + change 0 ≤ (inner ℂ z ((B.adjoint * B - + compression (complexSourceRangeIsometry hm T hT) (A.adjoint * A)) z)).re at hh + simp only [sub_apply, inner_sub_right, Complex.sub_re] at hh + rw [← hleft, ← hright] at hh + change ‖A (J z)‖ ≤ ‖B z‖ + nlinarith [norm_nonneg (A (J z)), norm_nonneg (B z)] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceReserve.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceReserve.lean new file mode 100644 index 0000000000..64f991066a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceReserve.lean @@ -0,0 +1,125 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceReserveDefs +public import LeanPool.VacuumBellSeparation.FreeField.SourceGramStrictness +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedCommutation + +/-! +# The physical source uncertainty reserve + +The reserve is the actual positive square root of G times its conjugate, +where G is the Gram operator of the completed physical source map. Bounded +regions give injectivity, not a uniform spectral gap or a bounded inverse. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap +open scoped InnerProductSpace + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +theorem conjugateSourceGram_eq : + conjugateSourceGram hm U = 1 - (Complex.I / 2) • complexSourceCommutation hm U := + Gaussian.conjugate_sourceMap_gram (sourceEmbedding hm U) + +theorem conjugateSourceGram_eq_two_sub : + conjugateSourceGram hm U = 2 - sourceGram hm U := by + rw [conjugateSourceGram_eq, sourceGram_eq_normalized_commutation] + rw [show (2 : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U) = 1 + 1 from + (one_add_one_eq_two).symm] + abel + +theorem sourceGram_commute_conjugateSourceGram : + Commute (sourceGram hm U) (conjugateSourceGram hm U) := by + rw [sourceGram_eq_normalized_commutation, conjugateSourceGram_eq] + exact Gaussian.gramPlus_commute_gramMinus _ + +theorem conjugateSourceGram_nonneg : 0 ≤ conjugateSourceGram hm U := by + rw [conjugateSourceGram_eq] + exact Gaussian.gramMinus_nonneg + (Gaussian.normalizedCommutation_isSelfAdjoint + (complexSourceCommutation_mem_skewAdjoint hm U)) + (Gaussian.norm_normalizedCommutation_le_one (norm_complexSourceCommutation_le_two hm U)) + +theorem sourceGram_mul_conjugateSourceGram_eq : + sourceGram hm U * conjugateSourceGram hm U = + Gaussian.reserveSquare (Gaussian.normalizedCommutation (complexSourceCommutation hm U)) := by + rw [sourceGram_eq_normalized_commutation, conjugateSourceGram_eq] + exact Gaussian.gramPlus_mul_gramMinus _ + +theorem sourceGram_mul_conjugateSourceGram_nonneg : + 0 ≤ sourceGram hm U * conjugateSourceGram hm U := by + rw [sourceGram_mul_conjugateSourceGram_eq] + exact Gaussian.reserveSquare_nonneg + (Gaussian.normalizedCommutation_isSelfAdjoint + (complexSourceCommutation_mem_skewAdjoint hm U)) + (Gaussian.norm_normalizedCommutation_le_one (norm_complexSourceCommutation_le_two hm U)) + +theorem sourceReserve_eq_normalized_reserve : + sourceReserve hm U = + Gaussian.reserve (Gaussian.normalizedCommutation (complexSourceCommutation hm U)) := by + rw [sourceReserve, sourceGram_mul_conjugateSourceGram_eq] + rfl + +theorem sourceReserve_nonneg : 0 ≤ sourceReserve hm U := CFC.sqrt_nonneg _ + +theorem sourceReserve_isSelfAdjoint : IsSelfAdjoint (sourceReserve hm U) := + (sourceReserve_nonneg hm U).isSelfAdjoint + +theorem sourceReserve_mul_self : + sourceReserve hm U * sourceReserve hm U = sourceGram hm U * conjugateSourceGram hm U := + CFC.sqrt_mul_sqrt_self _ (sourceGram_mul_conjugateSourceGram_nonneg hm U) + +theorem sourceReserve_le_one : sourceReserve hm U ≤ 1 := by + have hB := Gaussian.normalizedCommutation_isSelfAdjoint + (complexSourceCommutation_mem_skewAdjoint hm U) + have hsq : 0 ≤ (Gaussian.normalizedCommutation (complexSourceCommutation hm U)) ^ 2 := by + simpa only [pow_two, hB.star_eq] using + star_mul_self_nonneg (Gaussian.normalizedCommutation (complexSourceCommutation hm U)) + have hle : sourceGram hm U * conjugateSourceGram hm U ≤ 1 := by + rw [sourceGram_mul_conjugateSourceGram_eq, Gaussian.reserveSquare] + exact sub_le_self _ hsq + simpa only [sourceReserve, CFC.sqrt_one] using CFC.sqrt_le_sqrt _ _ hle + +/-- The physical bounded-region reserve is injective even when zero is in its spectrum. -/ +theorem sourceReserve_injective (hU : Bornology.IsBounded U) : + Function.Injective (sourceReserve hm U) := by + intro x y hxy + apply conjugateSourceGram_injective hm U hU + apply sourceGram_injective hm U hU + change (sourceGram hm U * conjugateSourceGram hm U) x = + (sourceGram hm U * conjugateSourceGram hm U) y + rw [← sourceReserve_mul_self] + change sourceReserve hm U (sourceReserve hm U x) = sourceReserve hm U (sourceReserve hm U y) + rw [hxy] + +/-- Strict positivity here is positivity on each nonzero vector, with no uniform lower bound. -/ +theorem inner_sourceReserve_pos (hU : Bornology.IsBounded U) + (x : ComplexSourceHilbert hm U) (hx : x ≠ 0) : + 0 < (inner ℂ x (sourceReserve hm U x)).re := by + let T := CFC.sqrt (sourceReserve hm U) + have hTT : T.adjoint.comp T = sourceReserve hm U := by + change star T * T = sourceReserve hm U + rw [(CFC.sqrt_nonneg (sourceReserve hm U)).isSelfAdjoint.star_eq] + exact CFC.sqrt_mul_sqrt_self _ (sourceReserve_nonneg hm U) + have hTx : T x ≠ 0 := by + intro h + apply hx + apply sourceReserve_injective hm U hU + rw [map_zero, ← hTT] + change T.adjoint (T x) = 0 + rw [h, map_zero] + change 0 < RCLike.re (inner ℂ x (sourceReserve hm U x)) + rw [← hTT, ← T.apply_norm_sq_eq_inner_adjoint_right] + exact sq_pos_of_pos (norm_pos_iff.mpr hTx) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceReserveDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceReserveDefs.lean new file mode 100644 index 0000000000..5fb6fc0e93 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceReserveDefs.lean @@ -0,0 +1,40 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceGramStrictness +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedCommutation + +/-! +# Literal statement construction extracted from FreeField/SourceReserve + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap +open scoped InnerProductSpace + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Continuous linear map for the conjugate source gram, of type `ComplexSourceHilbert hm U →L[ℂ] +ComplexSourceHilbert hm U`. -/ +noncomputable def conjugateSourceGram : + ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U := + Gaussian.conjugateOperator (sourceGram hm U) + +/-- Continuous linear map for the source reserve, of type `ComplexSourceHilbert hm U →L[ℂ] +ComplexSourceHilbert hm U`. -/ +noncomputable def sourceReserve : + ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U := + CFC.sqrt (sourceGram hm U * conjugateSourceGram hm U) + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceReserveFactorization.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceReserveFactorization.lean new file mode 100644 index 0000000000..aaa07f667b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceReserveFactorization.lean @@ -0,0 +1,53 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.DenseRangeFactorization +public import LeanPool.VacuumBellSeparation.FreeField.SourceReserve +public import LeanPool.VacuumBellSeparation.FreeField.PositiveOperatorPowers + +/-! +# Literal negative-reserve factorization convention + +For 0≤b≤1 the positive reserve power is injective with dense range, +even if its spectrum accumulates at zero. A norm bound against R^b +is equivalent to a unique bounded factor on the whole source Hilbert +space. This is the continuous-extension meaning of T R^(-b). +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) +variable {F : Type*} [NormedAddCommGroup F] [NormedSpace ℂ F] [CompleteSpace F] + +theorem sourceReserve_rpow_injective (hU : Bornology.IsBounded U) + {b : ℝ} (hb0 : 0 ≤ b) (hb1 : b ≤ 1) : Function.Injective (sourceReserve hm U ^ b) := + positiveOperator_rpow_injective _ (sourceReserve_nonneg hm U) + (sourceReserve_injective hm U hU) hb0 hb1 + +theorem sourceReserve_rpow_denseRange (hU : Bornology.IsBounded U) + {b : ℝ} (hb0 : 0 ≤ b) (hb1 : b ≤ 1) : DenseRange (sourceReserve hm U ^ b) := + positiveOperator_rpow_denseRange _ (sourceReserve_nonneg hm U) + (sourceReserve_injective hm U hU) hb0 hb1 + +/-- Exact range-norm interpretation, for vector maps and hence for scalar functionals. -/ +theorem sourceReserve_factorization_iff (hU : Bornology.IsBounded U) + (T : ComplexSourceHilbert hm U →ₗ[ℂ] F) {b C : ℝ} + (hb0 : 0 ≤ b) (hb1 : b ≤ 1) (hC : 0 ≤ C) : + (∀ z, ‖T z‖ ≤ C * ‖(sourceReserve hm U ^ b) z‖) ↔ + ∃! L : ComplexSourceHilbert hm U →L[ℂ] F, + (∀ z, L ((sourceReserve hm U ^ b) z) = T z) ∧ ‖L‖ ≤ C := by + constructor + · exact existsUnique_factor_of_denseRange_bound _ + (sourceReserve_rpow_injective hm U hU hb0 hb1) + (sourceReserve_rpow_denseRange hm U hU hb0 hb1) T hC + · rintro ⟨L, ⟨hL, hnorm⟩, _⟩ + exact bound_of_factor _ T L hL hnorm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceSpace.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceSpace.lean new file mode 100644 index 0000000000..09d993c0f6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceSpace.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceEmbeddingConstruction +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroNondegenerate +public import LeanPool.VacuumBellSeparation.FreeField.RealCommutation +public import Mathlib.Analysis.InnerProductSpace.Completion +public import Mathlib.Analysis.Normed.Operator.Extend + +/-! +# The real localized source completion + +The test pairs have both compact supports inside the specified spatial set. +Their norm is the actual physical one-particle norm, whose square is the +independently defined Fourier covariance. The completion is a real Hilbert +space with an isometric embedding in the same physical mass-shell `L²`. +Its image is the closure of the local test-vector image. No assertion of +complexified injectivity, cyclicity, time-slice equality or standardness is made. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory ClosedSubmodule + +namespace VacuumBellSeparation + +theorem localizedTimeZeroSources_mono {U V : Set (EuclideanSpace ℝ (Fin 3))} + (hUV : U ⊆ V) : localizedTimeZeroSources U ≤ localizedTimeZeroSources V := + fun _ hu => ⟨hu.1.trans hUV, hu.2.trans hUV⟩ + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- The completed norm is the covariance norm, not an auxiliary test-function norm. -/ +theorem sourceTestSpace_norm_sq (u : SourceTestSpace hm U) : + ‖u‖ ^ 2 = timeZeroFourierCovariance m u.1 u.1 := + norm_timeZeroL2_sq hm u.1 + +theorem sourceEmbedding_coe (u : SourceTestSpace hm U) : + sourceEmbedding hm U (u : SourceHilbert hm U) = timeZeroL2 hm u.1 := + (sourceTestIsometry hm U).fromCompletion_apply_coe u + +theorem isClosed_range_sourceEmbedding : IsClosed (Set.range (sourceEmbedding hm U)) := + (sourceEmbedding hm U).isometry.isClosedEmbedding.isClosed_range + +/-- The completed image is exactly the closure of the local test-vector image. -/ +theorem range_sourceEmbedding_eq_closure : + Set.range (sourceEmbedding hm U) = closure (Set.range (sourceTestMap hm U)) := by + apply Set.Subset.antisymm + · rintro _ ⟨z, rfl⟩ + refine UniformSpace.Completion.induction_on z + (isClosed_closure.preimage (sourceEmbedding hm U).continuous) ?_ + intro u + apply subset_closure + exact ⟨u, (sourceEmbedding_coe hm U u).symm⟩ + · apply closure_minimal ?_ (isClosed_range_sourceEmbedding hm U) + rintro _ ⟨u, rfl⟩ + exact ⟨(u : SourceHilbert hm U), sourceEmbedding_coe hm U u⟩ + +/-- The physical closed real subspace generated by the local time-zero sources. -/ +noncomputable def sourceRealSpace : ClosedSubmodule ℝ (Lp ℂ 2 (oneParticleMeasure m)) where + toSubmodule := (sourceEmbedding hm U).toLinearMap.range + isClosed' := isClosed_range_sourceEmbedding hm U + +/-- The actual commutation operator of the completed real source space. -/ +noncomputable def sourceCommutation : SourceHilbert hm U →L[ℝ] SourceHilbert hm U := + realCommutation (sourceEmbedding hm U) + +theorem sourceCommutation_mem_skewAdjoint : + sourceCommutation hm U ∈ skewAdjoint (SourceHilbert hm U →L[ℝ] SourceHilbert hm U) := + realCommutation_mem_skewAdjoint (sourceEmbedding hm U) + +theorem norm_sourceCommutation_le_two : ‖sourceCommutation hm U‖ ≤ 2 := + norm_realCommutation_le_two (sourceEmbedding hm U) + +/-- On test sources the completed operator represents the position-space symplectic integral. -/ +theorem sourceCommutation_symplectic (u v : SourceTestSpace hm U) : + ⟪(u : SourceHilbert hm U), sourceCommutation hm U (v : SourceHilbert hm U)⟫_ℝ = + timeZeroSymplectic u.1 v.1 := by + erw [sourceCommutation, inner_realCommutation, sourceEmbedding_coe, sourceEmbedding_coe, + inner_timeZeroL2_gram] + simp [Complex.mul_im] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceTomita.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceTomita.lean new file mode 100644 index 0000000000..04a1b7eead --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceTomita.lean @@ -0,0 +1,150 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.StandardSourceSpace +public import Mathlib.Analysis.InnerProductSpace.LinearPMap + +/-! +# The actual densely defined source Tomita operator + +Its domain is the literal complex source range, and its action is +κ z ↦ κ (conj z). Injectivity of κ makes this a genuine partial antilinear +map, rather than a multivalued relation. The graph description in closed +real source coordinates proves closedness without a bounded inverse of κ. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ClosedSubmodule +open Gaussian.HilbertComplexification +open scoped ComplexConjugate + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Linear equivalence between the source completion and its range in the one-particle space. -/ +noncomputable def sourceRangeEquiv (hU : Bornology.IsBounded U) : + ComplexSourceHilbert hm U ≃ₗ[ℂ] (complexSourceMap hm U).range := + LinearEquiv.ofInjective (complexSourceMap hm U).toLinearMap + (complexSourceMap_injective hm U hU) + +@[simp] theorem sourceRangeEquiv_apply (hU : Bornology.IsBounded U) + (z : ComplexSourceHilbert hm U) : + (sourceRangeEquiv hm U hU z : Lp ℂ 2 (oneParticleMeasure m)) = complexSourceMap hm U z := rfl + +@[simp] theorem sourceRangeEquiv_symm_apply (hU : Bornology.IsBounded U) + (x : (complexSourceMap hm U).range) : + complexSourceMap hm U ((sourceRangeEquiv hm U hU).symm x) = x := + LinearEquiv.ofInjective_symm_apply _ _ + +/-- The actual antilinear partial operator on the physical one-particle Hilbert space. -/ +noncomputable def sourceTomita (hU : Bornology.IsBounded U) : + Lp ℂ 2 (oneParticleMeasure m) →ₛₗ.[starRingEnd ℂ] Lp ℂ 2 (oneParticleMeasure m) where + domain := (complexSourceMap hm U).range + toFun := (complexSourceMap hm U).toLinearMap.comp + (conjugation.toLinearEquiv.toLinearMap.comp (sourceRangeEquiv hm U hU).symm.toLinearMap) + +@[simp] theorem sourceTomita_source (hU : Bornology.IsBounded U) + (z : ComplexSourceHilbert hm U) : + sourceTomita hm U hU (sourceRangeEquiv hm U hU z) = + complexSourceMap hm U (conjugation z) := by + change complexSourceMap hm U + (conjugation ((sourceRangeEquiv hm U hU).symm (sourceRangeEquiv hm U hU z))) = _ + rw [LinearEquiv.symm_apply_apply] + +theorem sourceTomita_dense_domain (hU : Bornology.IsBounded U) + (hopen : IsOpen U) (hne : U.Nonempty) : + Dense ((sourceTomita hm U hU).domain : Set (Lp ℂ 2 (oneParticleMeasure m))) := + complexSourceMap_denseRange_of_open hm U hopen hne + +/-- Actual graph of the antilinear operator, kept as a set to avoid treating it +as a complex-linear subspace of the ordinary product. -/ +def sourceTomitaGraph : Set (Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m)) := + {p | ∃ z : ComplexSourceHilbert hm U, + complexSourceMap hm U z = p.1 ∧ complexSourceMap hm U (conjugation z) = p.2} + +theorem sourceTomitaGraph_iff (hU : Bornology.IsBounded U) + (x y : Lp ℂ 2 (oneParticleMeasure m)) : + (x, y) ∈ sourceTomitaGraph hm U ↔ + ∃ hx : x ∈ (sourceTomita hm U hU).domain, sourceTomita hm U hU ⟨x, hx⟩ = y := by + constructor + · rintro ⟨z, rfl, hy⟩ + refine ⟨⟨z, rfl⟩, ?_⟩ + exact (sourceTomita_source hm U hU z).trans hy + · rintro ⟨hx, hy⟩ + refine ⟨(sourceRangeEquiv hm U hU).symm ⟨x, hx⟩, ?_, hy⟩ + exact sourceRangeEquiv_symm_apply hm U hU _ + +theorem sourceTomitaGraph_flip {x y : Lp ℂ 2 (oneParticleMeasure m)} + (h : (x, y) ∈ sourceTomitaGraph hm U) : (y, x) ∈ sourceTomitaGraph hm U := by + obtain ⟨z, hx, hy⟩ := h + exact ⟨conjugation z, hy, by simpa only [conjugation_conjugation] using hx⟩ + +theorem sourceTomitaGraph_coordinates (x y : Lp ℂ 2 (oneParticleMeasure m)) : + (x, y) ∈ sourceTomitaGraph hm U ↔ + (1 / 2 : ℝ) • (x + y) ∈ sourceRealSpace hm U ∧ + (-(Complex.I / 2)) • (x - y) ∈ sourceRealSpace hm U := by + constructor + · rintro ⟨z, rfl, rfl⟩ + have hplus : (1 / 2 : ℝ) • + (complexSourceMap hm U z + complexSourceMap hm U (conjugation z)) = + sourceEmbedding hm U z.re := by + change (1 / 2 : ℝ) • ((sourceEmbedding hm U z.re + Complex.I • sourceEmbedding hm U z.im) + + (sourceEmbedding hm U z.re + Complex.I • sourceEmbedding hm U (-z.im))) = _ + simp only [map_neg, smul_neg, RCLike.real_smul_eq_coe_smul (K := ℂ)] + push_cast + module + have hminus : (-(Complex.I / 2)) • + (complexSourceMap hm U z - complexSourceMap hm U (conjugation z)) = + sourceEmbedding hm U z.im := by + change (-(Complex.I / 2)) • ((sourceEmbedding hm U z.re + Complex.I • sourceEmbedding hm U + z.im) - + (sourceEmbedding hm U z.re + Complex.I • sourceEmbedding hm U (-z.im))) = _ + simp only [map_neg, smul_neg, smul_sub, smul_add, smul_smul] + have hc : -(Complex.I / 2) * Complex.I = (1 / 2 : ℂ) := by + linear_combination (-1 / 2 : ℂ) * Complex.I_sq + rw [hc] + module + rw [hplus, hminus] + exact ⟨⟨z.re, rfl⟩, ⟨z.im, rfl⟩⟩ + · rintro ⟨hu, hv⟩ + obtain ⟨u, hu⟩ := hu + obtain ⟨v, hv⟩ := hv + change sourceEmbedding hm U u = (1 / 2 : ℝ) • (x + y) at hu + change sourceEmbedding hm U v = (-(Complex.I / 2)) • (x - y) at hv + refine ⟨mk u v, ?_, ?_⟩ + · change sourceEmbedding hm U u + Complex.I • sourceEmbedding hm U v = x + rw [hu, hv, RCLike.real_smul_eq_coe_smul (K := ℂ), smul_smul] + have hc : Complex.I * -(Complex.I / 2) = (1 / 2 : ℂ) := by + linear_combination (-1 / 2 : ℂ) * Complex.I_sq + rw [hc] + push_cast + module + · change sourceEmbedding hm U u + Complex.I • sourceEmbedding hm U (-v) = y + rw [map_neg, smul_neg, hu, hv, RCLike.real_smul_eq_coe_smul (K := ℂ), smul_smul] + have hc : Complex.I * -(Complex.I / 2) = (1 / 2 : ℂ) := by + linear_combination (-1 / 2 : ℂ) * Complex.I_sq + rw [hc] + push_cast + module + +/-- Closedness of the actual graph, not closedness of the generally nonclosed domain. -/ +theorem sourceTomitaGraph_isClosed : IsClosed (sourceTomitaGraph hm U) := by + have heq : sourceTomitaGraph hm U = + (fun p : Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m) => + (1 / 2 : ℝ) • (p.1 + p.2)) ⁻¹' (sourceRealSpace hm U : Set _) ∩ + (fun p : Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m) => + (-(Complex.I / 2)) • (p.1 - p.2)) ⁻¹' (sourceRealSpace hm U : Set _) := by + ext p + exact sourceTomitaGraph_coordinates hm U p.1 p.2 + rw [heq] + exact ((sourceRealSpace hm U).isClosed.preimage (by fun_prop)).inter + ((sourceRealSpace hm U).isClosed.preimage (by fun_prop)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceTomitaAdjoint.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceTomitaAdjoint.lean new file mode 100644 index 0000000000..0cbd4f509b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceTomitaAdjoint.lean @@ -0,0 +1,150 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomitaPolar +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularOperator + +/-! +# The maximal adjoint graph of the physical antilinear Tomita operator + +For a conjugate-linear S and a conjugate-first inner product, the adjoint +relation is ⟨Sx,y⟩=⟨S*y,x⟩. We use that universal relation as the definition +of its full graph. The resulting coordinate equation and the full graph +of S*S are proved on the actual physical domain, without inverse notation. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ContinuousLinearMap Gaussian.HilbertComplexification +open scoped InnerProductSpace ComplexConjugate + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) +variable (hU : Bornology.IsBounded U) (hopen : IsOpen U) (hne : U.Nonempty) + +/-- Full antilinear adjoint relation, quantified over every actual domain vector. -/ +def sourceTomitaAdjointGraph : + Set (Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m)) := + {p | ∀ x : (sourceTomita hm U hU).domain, + inner ℂ (sourceTomita hm U hU x) p.1 = inner ℂ p.2 (x : Lp ℂ 2 (oneParticleMeasure m))} + +include hopen hne in +/-- Density makes the universal adjoint relation single-valued. -/ +theorem sourceTomitaAdjointGraph_unique {y z w : Lp ℂ 2 (oneParticleMeasure m)} + (hz : (y, z) ∈ sourceTomitaAdjointGraph hm U hU) + (hw : (y, w) ∈ sourceTomitaAdjointGraph hm U hU) : z = w := by + apply (sourceTomita_dense_domain hm U hU hopen hne).eq_of_inner_left ℂ + intro x hx + exact (hz ⟨x, hx⟩).symm.trans (hw ⟨x, hx⟩) + +private theorem sourceConjugation_inner_swap (x y : ComplexSourceHilbert hm U) : + inner ℂ (conjugation x) y = inner ℂ (conjugation y) x := by + calc + _ = conj (inner ℂ x (conjugation y)) := by + simpa only [conjugation_conjugation] using sourceConjugation_inner x (conjugation y) + _ = _ := inner_conj_symm _ _ + +/-- The full adjoint graph is exactly the weak bounded-root equation. -/ +theorem sourceTomitaAdjointGraph_polar_iff (y z : ComplexSourceHilbert hm U) : + (sourcePolarUnitary hm U hU hopen hne y, + sourcePolarUnitary hm U hU hopen hne z) ∈ sourceTomitaAdjointGraph hm U hU ↔ + conjugateSourceGramRoot hm U (conjugation y) = sourceGramRoot hm U z := by + constructor + · intro h + apply ext_inner_right ℂ + intro v + have hh := h (sourceRangeEquiv hm U hU v) + rw [sourceTomita_polar_action hm U hU hopen hne, sourceRangeEquiv_apply, + ← sourcePolarUnitary_sqrt_gram hm U hU hopen hne, + LinearIsometryEquiv.inner_map_map, LinearIsometryEquiv.inner_map_map] at hh + calc + _ = inner ℂ (conjugation y) (conjugateSourceGramRoot hm U v) := + (CFC.sqrt_nonneg (conjugateSourceGram hm U)).isSelfAdjoint.isSymmetric _ _ + _ = inner ℂ (conjugation (conjugateSourceGramRoot hm U v)) y := + sourceConjugation_inner_swap hm U _ _ + _ = inner ℂ z (sourceGramRoot hm U v) := hh + _ = _ := ((CFC.sqrt_nonneg (sourceGram hm U)).isSelfAdjoint.isSymmetric _ _).symm + · intro heq x + let v := (sourceRangeEquiv hm U hU).symm x + have hx : x = sourceRangeEquiv hm U hU v := + (sourceRangeEquiv hm U hU).apply_symm_apply x |>.symm + rw [hx, sourceTomita_polar_action hm U hU hopen hne, sourceRangeEquiv_apply, + ← sourcePolarUnitary_sqrt_gram hm U hU hopen hne, + LinearIsometryEquiv.inner_map_map, LinearIsometryEquiv.inner_map_map] + calc + _ = inner ℂ (conjugation y) (conjugateSourceGramRoot hm U v) := + sourceConjugation_inner_swap hm U _ _ + _ = inner ℂ (conjugateSourceGramRoot hm U (conjugation y)) v := + ((CFC.sqrt_nonneg (conjugateSourceGram hm U)).isSelfAdjoint.isSymmetric _ _).symm + _ = inner ℂ (sourceGramRoot hm U z) v := by rw [heq] + _ = _ := (CFC.sqrt_nonneg (sourceGram hm U)).isSelfAdjoint.isSymmetric _ _ + +/-- Maximal graph composition S*S, with the actual intermediate-domain condition. -/ +def sourceTomitaModularGraph : + Set (Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m)) := + {p | ∃ hx : p.1 ∈ (sourceTomita hm U hU).domain, + (sourceTomita hm U hU ⟨p.1, hx⟩, p.2) ∈ sourceTomitaAdjointGraph hm U hU} + +/-- The literal S*S graph has domain U(range G) and value U(Gbar z) at U(Gz). -/ +theorem sourceTomitaModularGraph_polar_iff (x y : ComplexSourceHilbert hm U) : + (sourcePolarUnitary hm U hU hopen hne x, + sourcePolarUnitary hm U hU hopen hne y) ∈ sourceTomitaModularGraph hm U hU ↔ + ∃ z, sourceGram hm U z = x ∧ conjugateSourceGram hm U z = y := by + let A := sourceGramRoot hm U + let B := conjugateSourceGramRoot hm U + have hA (v : ComplexSourceHilbert hm U) : A (A v) = sourceGram hm U v := + congrArg (fun Q : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U => Q v) + (CFC.sqrt_mul_sqrt_self _ (nonneg_iff_isPositive.mpr (sourceGram_isPositive hm U))) + have hB (v : ComplexSourceHilbert hm U) : B (B v) = conjugateSourceGram hm U v := + congrArg (fun Q : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U => Q v) + (CFC.sqrt_mul_sqrt_self _ (conjugateSourceGram_nonneg hm U)) + have hc (v : ComplexSourceHilbert hm U) : A (B v) = B (A v) := + congrArg (fun Q : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U => Q v) + (sourceGramRoot_commute_conjugateSourceGramRoot hm U).eq + have hsum (v : ComplexSourceHilbert hm U) : A (A v) + B (B v) = (2 : ℂ) • v := by + simpa only [add_apply, mul_apply_eq_comp, ofNat_apply, two_smul] using + congrArg (fun Q : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U => Q v) + (sourceGramRoot_sq_add_conjugateSourceGramRoot_sq hm U) + constructor + · rintro ⟨hx, hs⟩ + have hxcopy := hx + obtain ⟨v, hv⟩ := hxcopy + have hvx : A v = x := (sourcePolarUnitary hm U hU hopen hne).injective + ((sourcePolarUnitary_sqrt_gram hm U hU hopen hne v).trans hv) + have hsub : (⟨sourcePolarUnitary hm U hU hopen hne x, hx⟩ : + (sourceTomita hm U hU).domain) = sourceRangeEquiv hm U hU v := Subtype.ext hv.symm + rw [hsub, sourceTomita_polar_action hm U hU hopen hne, + sourceTomitaAdjointGraph_polar_iff hm U hU hopen hne, conjugation_conjugation] at hs + have heq : B (B v) = A y := hs + let w := (1 / 2 : ℂ) • (A v + y) + have hw : A w = v := by + dsimp [w] + rw [map_smul, map_add, ← heq, hsum] + norm_num [smul_smul] + refine ⟨w, ?_, ?_⟩ + · rw [← hA, hw, hvx] + · rw [← hB] + apply sourceGramRoot_injective hm U hU + change A (B (B w)) = A y + rw [hc, hc, hw, heq] + · rintro ⟨z, rfl, rfl⟩ + have hphys : sourcePolarUnitary hm U hU hopen hne (sourceGram hm U z) = + complexSourceMap hm U (A z) := by + rw [← hA] + exact sourcePolarUnitary_sqrt_gram hm U hU hopen hne (A z) + refine ⟨⟨A z, hphys.symm⟩, ?_⟩ + have hsub : (⟨sourcePolarUnitary hm U hU hopen hne (sourceGram hm U z), + ⟨A z, hphys.symm⟩⟩ : (sourceTomita hm U hU).domain) = + sourceRangeEquiv hm U hU (A z) := Subtype.ext hphys + rw [hsub, sourceTomita_polar_action hm U hU hopen hne, + sourceTomitaAdjointGraph_polar_iff hm U hU hopen hne, conjugation_conjugation] + change B (B (A z)) = A (conjugateSourceGram hm U z) + rw [← hB, hc, hc] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceTomitaPolar.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceTomitaPolar.lean new file mode 100644 index 0000000000..35f74802b4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceTomitaPolar.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceConjugateRoots +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomita + +/-! +# The physical Tomita operator in the constructed source polar coordinates + +The antiunitary C₀=U C U* is an actual isometric involution. On its full +source-range domain the physical Tomita operator is exactly U C L U*, +where L is the proved positive selfadjoint ratio sqrt(Gbar)/sqrt(G). +This is a domain-sensitive factorization; modular fractional powers are +not inferred merely from it. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Gaussian.HilbertComplexification +open scoped InnerProductSpace ComplexConjugate + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) +variable (hU : Bornology.IsBounded U) (hopen : IsOpen U) (hne : U.Nonempty) + +/-- Actual conjugation transported by the constructed physical polar unitary. -/ +noncomputable def physicalSourceConjugation : + Lp ℂ 2 (oneParticleMeasure m) ≃ₗᵢ⋆[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + (sourcePolarUnitary hm U hU hopen hne).symm.trans + (conjugation.trans (sourcePolarUnitary hm U hU hopen hne)) + +@[simp] theorem physicalSourceConjugation_apply_polar (z : ComplexSourceHilbert hm U) : + physicalSourceConjugation hm U hU hopen hne + (sourcePolarUnitary hm U hU hopen hne z) = + sourcePolarUnitary hm U hU hopen hne (conjugation z) := by + simp only [physicalSourceConjugation, LinearIsometryEquiv.trans_apply, + LinearIsometryEquiv.symm_apply_apply] + +@[simp] theorem physicalSourceConjugation_involutive (x : Lp ℂ 2 (oneParticleMeasure m)) : + physicalSourceConjugation hm U hU hopen hne + (physicalSourceConjugation hm U hU hopen hne x) = x := by + simp only [physicalSourceConjugation, LinearIsometryEquiv.trans_apply, + LinearIsometryEquiv.symm_apply_apply, conjugation_conjugation, + LinearIsometryEquiv.apply_symm_apply] + +theorem physicalSourceConjugation_inner (x y : Lp ℂ 2 (oneParticleMeasure m)) : + inner ℂ (physicalSourceConjugation hm U hU hopen hne x) + (physicalSourceConjugation hm U hU hopen hne y) = conj (inner ℂ x y) := by + simp only [physicalSourceConjugation, LinearIsometryEquiv.trans_apply, + LinearIsometryEquiv.inner_map_map, sourceConjugation_inner] + +/-- Exact action on every point of the actual domain range κ. -/ +theorem sourceTomita_polar_action (z : ComplexSourceHilbert hm U) : + sourceTomita hm U hU (sourceRangeEquiv hm U hU z) = + sourcePolarUnitary hm U hU hopen hne + (conjugation (conjugateSourceGramRoot hm U z)) := by + rw [sourceTomita_source, ← sourcePolarUnitary_sqrt_gram hm U hU hopen hne] + change sourcePolarUnitary hm U hU hopen hne (sourceGramRoot hm U (conjugation z)) = _ + rw [sourceGramRoot_conjugation] + +/-- Multiplication by C₀ makes the physical Tomita action linear. -/ +theorem physicalSourceConjugation_sourceTomita (z : ComplexSourceHilbert hm U) : + physicalSourceConjugation hm U hU hopen hne + (sourceTomita hm U hU (sourceRangeEquiv hm U hU z)) = + sourcePolarUnitary hm U hU hopen hne (conjugateSourceGramRoot hm U z) := by + rw [sourceTomita_polar_action hm U hU hopen hne, + physicalSourceConjugation_apply_polar, conjugation_conjugation] + +/-- The domain equality includes both directions, before using the unbounded ratio. -/ +theorem sourceTomita_domain_polar : + ((sourceTomita hm U hU).domain : Set (Lp ℂ 2 (oneParticleMeasure m))) = + sourcePolarUnitary hm U hU hopen hne '' + ((sourceModularRoot hm U hU).domain : Set (ComplexSourceHilbert hm U)) := by + ext x + constructor + · rintro ⟨z, rfl⟩ + exact ⟨sourceGramRoot hm U z, ⟨z, rfl⟩, + sourcePolarUnitary_sqrt_gram hm U hU hopen hne z⟩ + · rintro ⟨y, ⟨z, rfl⟩, rfl⟩ + change sourcePolarUnitary hm U hU hopen hne (sourceGramRoot hm U z) ∈ + (sourceTomita hm U hU).domain + rw [show sourcePolarUnitary hm U hU hopen hne (sourceGramRoot hm U z) = + complexSourceMap hm U z from sourcePolarUnitary_sqrt_gram hm U hU hopen hne z] + exact ⟨z, rfl⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceTomitaTestCore.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceTomitaTestCore.lean new file mode 100644 index 0000000000..fcfc8e8d27 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceTomitaTestCore.lean @@ -0,0 +1,73 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomita + +/-! +# Compact smooth sources form the actual Tomita graph core + +The equality is between closed graph sets in the original one-particle +Hilbert space. The dense source completions approximate both graph +coordinates simultaneously. It holds before any boundedness or separating +hypothesis, and in particular for the genuine halfspace source graph. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Gaussian.HilbertComplexification + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Source Tomita test graph. -/ +def sourceTomitaTestGraph : Set (Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m)) := + {p | ∃ u v : SourceTestSpace hm U, + p = (timeZeroL2 hm u.1 + Complex.I • timeZeroL2 hm v.1, + timeZeroL2 hm u.1 - Complex.I • timeZeroL2 hm v.1)} + +theorem sourceTomitaTestGraph_subset : sourceTomitaTestGraph hm U ⊆ sourceTomitaGraph hm U := by + rintro p ⟨u, v, rfl⟩ + refine ⟨mk (u : SourceHilbert hm U) (v : SourceHilbert hm U), ?_, ?_⟩ + · change sourceEmbedding hm U (u : SourceHilbert hm U) + + Complex.I • sourceEmbedding hm U (v : SourceHilbert hm U) = _ + rw [sourceEmbedding_coe, sourceEmbedding_coe] + · change sourceEmbedding hm U (u : SourceHilbert hm U) + + Complex.I • sourceEmbedding hm U (-(v : SourceHilbert hm U)) = _ + rw [map_neg, smul_neg, sourceEmbedding_coe, sourceEmbedding_coe, sub_eq_add_neg] + +theorem sourceTomita_pair_mem_closure_test (u v : SourceHilbert hm U) : + (sourceEmbedding hm U u + Complex.I • sourceEmbedding hm U v, + sourceEmbedding hm U u - Complex.I • sourceEmbedding hm U v) ∈ + closure (sourceTomitaTestGraph hm U) := by + refine UniformSpace.Completion.induction_on u + (isClosed_closure.preimage (by fun_prop)) ?_ + intro u + refine UniformSpace.Completion.induction_on v + (isClosed_closure.preimage (by fun_prop)) ?_ + intro v + apply subset_closure + exact ⟨u, v, by rw [sourceEmbedding_coe, sourceEmbedding_coe]⟩ + +/-- Literal graph-core equality, rather than density of only the first projection. -/ +theorem closure_sourceTomitaTestGraph : + closure (sourceTomitaTestGraph hm U) = sourceTomitaGraph hm U := by + apply Set.Subset.antisymm + · exact closure_minimal (sourceTomitaTestGraph_subset hm U) (sourceTomitaGraph_isClosed hm U) + · rintro p ⟨z, hx, hy⟩ + have h := sourceTomita_pair_mem_closure_test hm U z.re z.im + have hp : p = (sourceEmbedding hm U z.re + Complex.I • sourceEmbedding hm U z.im, + sourceEmbedding hm U z.re - Complex.I • sourceEmbedding hm U z.im) := by + apply Prod.ext + · exact hx.symm + · rw [← hy] + change sourceEmbedding hm U z.re + Complex.I • sourceEmbedding hm U (-z.im) = _ + rw [map_neg, smul_neg, sub_eq_add_neg] + rwa [hp] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceTranslation.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceTranslation.lean new file mode 100644 index 0000000000..1ba47ade65 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceTranslation.lean @@ -0,0 +1,126 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialTestTranslation +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomita +public import LeanPool.VacuumBellSeparation.FreeField.WedgeGeometry + +/-! +# Translation covariance of the full original closed source spaces + +Actual translated test pairs and continuity give covariance of the completed +real source ranges. The universal real-coordinate description of the Tomita +graph then gives covariance of its entire domain and graph. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ClosedSubmodule +open scoped InnerProductSpace + +theorem oneParticleSpatialTranslation_neg_apply (m : ℝ) + (a : EuclideanSpace ℝ (Fin 3)) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + oneParticleSpatialTranslation m (-a) (oneParticleSpatialTranslation m a ψ) = ψ := by + apply Lp.ext + filter_upwards [oneParticleSpatialTranslation_ae m (-a) (oneParticleSpatialTranslation m a ψ), + oneParticleSpatialTranslation_ae m a ψ] with p hneg hpos + rw [hneg, hpos, ← mul_assoc, spatialTranslationPhase, spatialTranslationPhase, + ← Complex.exp_add, inner_neg_right, Complex.ofReal_neg] + have hz : -(Complex.I * -(⟪p, a⟫_ℝ : ℂ)) + -(Complex.I * (⟪p, a⟫_ℝ : ℂ)) = 0 := by ring + rw [hz, Complex.exp_zero, one_mul] + +theorem oneParticleSpatialTranslation_symm (m : ℝ) (a : EuclideanSpace ℝ (Fin 3)) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + (oneParticleSpatialTranslation m a).symm ψ = oneParticleSpatialTranslation m (-a) ψ := by + apply (oneParticleSpatialTranslation m a).injective + rw [LinearIsometryEquiv.apply_symm_apply] + simpa only [neg_neg] using (oneParticleSpatialTranslation_neg_apply m (-a) ψ).symm + +theorem spatialTestTranslate_support_subset {a : EuclideanSpace ℝ (Fin 3)} + {U V : Set (EuclideanSpace ℝ (Fin 3))} (hUV : ∀ x ∈ U, x + a ∈ V) + (f : SpatialTestFunction) (hf : tsupport f.1 ⊆ U) : + tsupport (spatialTestTranslate a f).1 ⊆ V := by + rw [tsupport_spatialTestTranslate] + intro x hx + have h := hUV (x - a) (hf hx) + simpa only [sub_add_cancel] using h + +theorem oneParticleSpatialTranslation_mem_sourceRealSpace {m : ℝ} (hm : 0 < m) + (a : EuclideanSpace ℝ (Fin 3)) + {U V : Set (EuclideanSpace ℝ (Fin 3))} (hUV : ∀ x ∈ U, x + a ∈ V) + {ψ : Lp ℂ 2 (oneParticleMeasure m)} (hψ : ψ ∈ sourceRealSpace hm U) : + oneParticleSpatialTranslation m a ψ ∈ sourceRealSpace hm V := by + have hs : Set.range (sourceTestMap hm U) ⊆ + (oneParticleSpatialTranslation m a) ⁻¹' (sourceRealSpace hm V : Set _) := by + rintro _ ⟨u, rfl⟩ + let v : SourceTestSpace hm V := ⟨timeZeroTranslate a u.1, + spatialTestTranslate_support_subset hUV u.1.1 u.2.1, + spatialTestTranslate_support_subset hUV u.1.2 u.2.2⟩ + refine ⟨(v : SourceHilbert hm V), ?_⟩ + change sourceEmbedding hm V (v : SourceHilbert hm V) = _ + rw [sourceEmbedding_coe] + exact timeZeroL2_translate hm a u.1 + have hc := closure_minimal hs + ((sourceRealSpace hm V).isClosed.preimage (oneParticleSpatialTranslation m a).continuous) + change ψ ∈ Set.range (sourceEmbedding hm U) at hψ + rw [range_sourceEmbedding_eq_closure] at hψ + exact hc hψ + +theorem oneParticleSpatialTranslation_mem_sourceTomitaGraph {m : ℝ} (hm : 0 < m) + (a : EuclideanSpace ℝ (Fin 3)) + {U V : Set (EuclideanSpace ℝ (Fin 3))} (hUV : ∀ x ∈ U, x + a ∈ V) + {ψ χ : Lp ℂ 2 (oneParticleMeasure m)} (h : (ψ, χ) ∈ sourceTomitaGraph hm U) : + (oneParticleSpatialTranslation m a ψ, oneParticleSpatialTranslation m a χ) ∈ + sourceTomitaGraph hm V := by + rw [sourceTomitaGraph_coordinates] at h ⊢ + constructor + · have hh := oneParticleSpatialTranslation_mem_sourceRealSpace hm a hUV h.1 + change (oneParticleSpatialTranslation m a).toLinearEquiv.toLinearMap.restrictScalars ℝ + ((1 / 2 : ℝ) • (ψ + χ)) ∈ sourceRealSpace hm V at hh + simp only [map_smul, map_add] at hh + change (1 / 2 : ℝ) • + (oneParticleSpatialTranslation m a ψ + oneParticleSpatialTranslation m a χ) ∈ + sourceRealSpace hm V at hh + exact hh + · have hh := oneParticleSpatialTranslation_mem_sourceRealSpace hm a hUV h.2 + simpa only [map_smul, map_sub] using hh + +theorem leftWedgeTimeZero_add_edge (ℓ : ℝ) : + ∀ x ∈ leftWedgeTimeZero 0, x + ℓ • e₁ ∈ leftWedgeTimeZero ℓ := by + intro x hx + change ⟪e₁, x + ℓ • e₁⟫_ℝ < ℓ + rw [inner_e₁_add_smul] + change ⟪e₁, x⟫_ℝ < 0 at hx + linarith + +theorem leftWedgeTimeZero_sub_edge (ℓ : ℝ) : + ∀ x ∈ leftWedgeTimeZero ℓ, x + -(ℓ • e₁) ∈ leftWedgeTimeZero 0 := by + intro x hx + change ⟪e₁, x + -(ℓ • e₁)⟫_ℝ < 0 + rw [← neg_smul, inner_e₁_add_smul] + change ⟪e₁, x⟫_ℝ < ℓ at hx + linarith + +/-- Exact translation covariance of the entire actual source Tomita graph. -/ +theorem leftWedge_sourceTomitaGraph_translation {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + (ψ χ : Lp ℂ 2 (oneParticleMeasure m)) : + (oneParticleSpatialTranslation m (ℓ • e₁) ψ, + oneParticleSpatialTranslation m (ℓ • e₁) χ) ∈ + sourceTomitaGraph hm (leftWedgeTimeZero ℓ) ↔ + (ψ, χ) ∈ sourceTomitaGraph hm (leftWedgeTimeZero 0) := by + constructor + · intro h + have hh := oneParticleSpatialTranslation_mem_sourceTomitaGraph hm (-(ℓ • e₁)) + (leftWedgeTimeZero_sub_edge ℓ) h + simpa only [oneParticleSpatialTranslation_neg_apply] using hh + · exact oneParticleSpatialTranslation_mem_sourceTomitaGraph hm (ℓ • e₁) + (leftWedgeTimeZero_add_edge ℓ) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceTranslationEquivalence.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceTranslationEquivalence.lean new file mode 100644 index 0000000000..3a8ec37cf2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceTranslationEquivalence.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceUnitaryRangeEquivalence +public import LeanPool.VacuumBellSeparation.FreeField.SourceTranslation + +/-! +# Translation of the actual completed sources and reserve powers + +Both regional inclusions are discharged directly for the physical +translation by a and its inverse. Test agreement uses the original +translated compact Cauchy data, not an abstract covariance premise. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification + +variable {m : ℝ} (hm : 0 < m) (a : EuclideanSpace ℝ (Fin 3)) + {U W : Set (EuclideanSpace ℝ (Fin 3))} + (hUW : ∀ x ∈ U, x + a ∈ W) (hWU : ∀ x ∈ W, x - a ∈ U) + +/-- Translated source test. -/ +noncomputable def translatedSourceTest (x : SourceTestSpace hm U) : SourceTestSpace hm W := + ⟨timeZeroTranslate a x.1, + spatialTestTranslate_support_subset hUW x.1.1 x.2.1, + spatialTestTranslate_support_subset hUW x.1.2 x.2.2⟩ + +include hUW in +theorem sourceTranslation_forward_range (z : SourceHilbert hm U) : + oneParticleSpatialTranslation m a (sourceEmbedding hm U z) ∈ sourceRealSpace hm W := + oneParticleSpatialTranslation_mem_sourceRealSpace hm a hUW ⟨z, rfl⟩ + +include hWU in +theorem sourceTranslation_inverse_range (z : SourceHilbert hm W) : + (oneParticleSpatialTranslation m a).symm (sourceEmbedding hm W z) ∈ sourceRealSpace hm U := by + rw [oneParticleSpatialTranslation_symm] + exact oneParticleSpatialTranslation_mem_sourceRealSpace hm (-a) + (fun x hx => by simpa only [sub_eq_add_neg] using hWU x hx) ⟨z, rfl⟩ + +/-- Linear isometry equivalence for the source spatial translation, of type `SourceHilbert hm U +≃ₗᵢ[ℝ] SourceHilbert hm W`. -/ +noncomputable def sourceSpatialTranslation : SourceHilbert hm U ≃ₗᵢ[ℝ] SourceHilbert hm W := + sourceUnitaryRangeEquiv hm (oneParticleSpatialTranslation m a) + (sourceTranslation_forward_range hm a hUW) (sourceTranslation_inverse_range hm a hWU) + +/-- Linear isometry equivalence for the complex source spatial translation, of type +`ComplexSourceHilbert hm U ≃ₗᵢ[ℂ] ComplexSourceHilbert hm W`. -/ +noncomputable def complexSourceSpatialTranslation : + ComplexSourceHilbert hm U ≃ₗᵢ[ℂ] ComplexSourceHilbert hm W := + complexSourceUnitaryRangeEquiv hm (oneParticleSpatialTranslation m a) + (sourceTranslation_forward_range hm a hUW) (sourceTranslation_inverse_range hm a hWU) + +theorem sourceSpatialTranslation_coe (x : SourceTestSpace hm U) : + sourceSpatialTranslation hm a hUW hWU (x : SourceHilbert hm U) = + (translatedSourceTest hm a hUW x : SourceHilbert hm W) := by + apply (sourceEmbedding hm W).injective + rw [sourceSpatialTranslation, sourceEmbedding_unitaryRangeEquiv, sourceEmbedding_coe, + sourceEmbedding_coe] + exact (timeZeroL2_translate hm a x.1).symm + +theorem complexSourceSpatialTranslation_ofReal (z : SourceHilbert hm U) : + complexSourceSpatialTranslation hm a hUW hWU (ofReal z) = + ofReal (sourceSpatialTranslation hm a hUW hWU z) := by + apply HilbertComplexification.ext <;> + simp [complexSourceSpatialTranslation, sourceSpatialTranslation, + complexSourceUnitaryRangeEquiv, complexSourceRangeIsometry, sourceUnitaryRangeEquiv] + +theorem complexSourceSpatialTranslation_test (x : SourceTestSpace hm U) : + complexSourceSpatialTranslation hm a hUW hWU (ofReal (x : SourceHilbert hm U)) = + ofReal (translatedSourceTest hm a hUW x : SourceHilbert hm W) := by + rw [complexSourceSpatialTranslation_ofReal, sourceSpatialTranslation_coe] + +theorem sourceReserve_rpow_spatialTranslation {b : ℝ} (hb : 0 ≤ b) + (z : ComplexSourceHilbert hm U) : + (sourceReserve hm W ^ b) (complexSourceSpatialTranslation hm a hUW hWU z) = + complexSourceSpatialTranslation hm a hUW hWU ((sourceReserve hm U ^ b) z) := + sourceReserve_rpow_unitaryRangeEquiv_apply hm (oneParticleSpatialTranslation m a) + (sourceTranslation_forward_range hm a hUW) (sourceTranslation_inverse_range hm a hWU) hb z + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SourceUnitaryRangeEquivalence.lean b/LeanPool/VacuumBellSeparation/FreeField/SourceUnitaryRangeEquivalence.lean new file mode 100644 index 0000000000..52deed3110 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SourceUnitaryRangeEquivalence.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceRangeIsometry +public import LeanPool.VacuumBellSeparation.FreeField.SourceReserve +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryTrace + +/-! +# Actual source and reserve equivalence under a physical unitary + +Both actual completed real-range inclusions are required. Surjectivity, +the complex Gram identity and every nonnegative reserve power then follow. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification MeasureTheory ContinuousLinearMap + +variable {m : ℝ} (hm : 0 < m) + {U W : Set (EuclideanSpace ℝ (Fin 3))} + (T : Lp ℂ 2 (oneParticleMeasure m) ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m)) + (hT : ∀ z : SourceHilbert hm U, T (sourceEmbedding hm U z) ∈ sourceRealSpace hm W) + (hTi : ∀ z : SourceHilbert hm W, T.symm (sourceEmbedding hm W z) ∈ sourceRealSpace hm U) + +include hTi in +theorem sourceRangeIsometry_surjective : Function.Surjective (sourceRangeIsometry hm T hT) := by + intro y + refine ⟨sourceRangeIsometry hm T.symm hTi y, ?_⟩ + apply (sourceEmbedding hm W).injective + rw [sourceEmbedding_rangeIsometry, sourceEmbedding_rangeIsometry, + LinearIsometryEquiv.apply_symm_apply] + +/-- Source unitary range equivalence of type `SourceHilbert hm U ≃ₗᵢ[ℝ] SourceHilbert hm W`. -/ +noncomputable def sourceUnitaryRangeEquiv : SourceHilbert hm U ≃ₗᵢ[ℝ] SourceHilbert hm W := + LinearIsometryEquiv.ofSurjective (sourceRangeIsometry hm T hT) + (sourceRangeIsometry_surjective hm T hT hTi) + +theorem sourceEmbedding_unitaryRangeEquiv (z : SourceHilbert hm U) : + sourceEmbedding hm W (sourceUnitaryRangeEquiv hm T hT hTi z) = + T (sourceEmbedding hm U z) := sourceEmbedding_rangeIsometry hm T hT z + +include hTi in +theorem complexSourceRangeIsometry_surjective : + Function.Surjective (complexSourceRangeIsometry hm T hT) := by + intro z + let e := sourceUnitaryRangeEquiv hm T hT hTi + refine ⟨mk (e.symm z.re) (e.symm z.im), ?_⟩ + apply HilbertComplexification.ext + · exact e.apply_symm_apply z.re + · exact e.apply_symm_apply z.im + +/-- Complex source unitary range equivalence of type `ComplexSourceHilbert hm U ≃ₗᵢ[ℂ] +ComplexSourceHilbert hm W`. -/ +noncomputable def complexSourceUnitaryRangeEquiv : + ComplexSourceHilbert hm U ≃ₗᵢ[ℂ] ComplexSourceHilbert hm W := + LinearIsometryEquiv.ofSurjective (complexSourceRangeIsometry hm T hT) + (complexSourceRangeIsometry_surjective hm T hT hTi) + +theorem complexSourceMap_unitaryRangeEquiv (z : ComplexSourceHilbert hm U) : + complexSourceMap hm W (complexSourceUnitaryRangeEquiv hm T hT hTi z) = + T (complexSourceMap hm U z) := complexSourceMap_rangeIsometry hm T hT z + +theorem sourceGram_unitaryRangeEquiv : + (complexSourceUnitaryRangeEquiv hm T hT hTi).conjStarAlgEquiv (sourceGram hm U) = + sourceGram hm W := by + let e := complexSourceUnitaryRangeEquiv hm T hT hTi + apply ContinuousLinearMap.ext + intro z + obtain ⟨x, rfl⟩ := e.surjective z + apply ext_inner_left ℂ + intro w + obtain ⟨y, rfl⟩ := e.surjective w + change inner ℂ (e y) (e ((sourceGram hm U) (e.symm (e x)))) = + inner ℂ (e y) ((sourceGram hm W) (e x)) + rw [e.symm_apply_apply, e.inner_map_map] + change inner ℂ y ((complexSourceMap hm U).adjoint (complexSourceMap hm U x)) = + inner ℂ (e y) ((complexSourceMap hm W).adjoint (complexSourceMap hm W (e x))) + rw [adjoint_inner_right, adjoint_inner_right] + dsimp only [e] + rw [complexSourceMap_unitaryRangeEquiv, complexSourceMap_unitaryRangeEquiv, T.inner_map_map] + +theorem conjugateSourceGram_unitaryRangeEquiv : + (complexSourceUnitaryRangeEquiv hm T hT hTi).conjStarAlgEquiv (conjugateSourceGram hm U) = + conjugateSourceGram hm W := by + rw [conjugateSourceGram_eq_two_sub, conjugateSourceGram_eq_two_sub, + map_sub, map_ofNat, sourceGram_unitaryRangeEquiv] + +theorem sourceReserve_unitaryRangeEquiv : + (complexSourceUnitaryRangeEquiv hm T hT hTi).conjStarAlgEquiv (sourceReserve hm U) = + sourceReserve hm W := by + rw [sourceReserve, CFC.sqrt_eq_rpow, + conjStarAlgEquiv_rpow _ (sourceGram_mul_conjugateSourceGram_nonneg hm U) + (by norm_num : (0 : ℝ) ≤ 1 / 2), map_mul, + sourceGram_unitaryRangeEquiv, conjugateSourceGram_unitaryRangeEquiv, + sourceReserve, CFC.sqrt_eq_rpow] + +theorem sourceReserve_rpow_unitaryRangeEquiv {b : ℝ} (hb : 0 ≤ b) : + (complexSourceUnitaryRangeEquiv hm T hT hTi).conjStarAlgEquiv (sourceReserve hm U ^ b) = + sourceReserve hm W ^ b := by + rw [conjStarAlgEquiv_rpow _ (sourceReserve_nonneg hm U) hb, sourceReserve_unitaryRangeEquiv] + +theorem sourceReserve_rpow_unitaryRangeEquiv_apply {b : ℝ} (hb : 0 ≤ b) + (z : ComplexSourceHilbert hm U) : + (sourceReserve hm W ^ b) (complexSourceUnitaryRangeEquiv hm T hT hTi z) = + complexSourceUnitaryRangeEquiv hm T hT hTi ((sourceReserve hm U ^ b) z) := by + rw [← sourceReserve_rpow_unitaryRangeEquiv hm T hT hTi hb, + LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, LinearIsometryEquiv.symm_apply_apply] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpacetimePartialFourier.lean b/LeanPool/VacuumBellSeparation/FreeField/SpacetimePartialFourier.lean new file mode 100644 index 0000000000..43b541d0ed --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpacetimePartialFourier.lean @@ -0,0 +1,75 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeSlices +public import Mathlib.MeasureTheory.Integral.Bochner.Set + +/-! +# Joint continuity of the actual partial spatial Fourier transform + +The common compact spatial support comes from the original spacetime source. +The parametric integral theorem is applied to the literal Fourier integrand. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped InnerProductSpace + +/-- Spacetime partial Fourier obtained from `spatialFourier`. -/ +noncomputable def spacetimePartialFourier (F : RealTestFunction) (t : ℝ) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + spatialFourier (spacetimeSpatialSlice F t) p + +theorem continuous_spacetimePartialFourier (F : RealTestFunction) : + Continuous (fun z : ℝ × EuclideanSpace ℝ (Fin 3) => spacetimePartialFourier F z.1 z.2) := by + rw [← continuousOn_univ] + apply continuousOn_integral_of_compact_support (F.2.2.image continuous_snd) + · exact (by + change ContinuousOn (fun z : (ℝ × EuclideanSpace ℝ (Fin 3)) × + EuclideanSpace ℝ (Fin 3) => + Complex.exp (-(Complex.I * (⟪z.1.2, z.2⟫_ℝ : ℂ))) * (F.1 (z.1.1, z.2) : ℂ)) _ + have hF := F.2.1.continuous + fun_prop) + · intro z x _ hx + have hz : F.1 (z.1, x) = 0 := by + apply image_eq_zero_of_notMem_tsupport + exact fun h => hx ⟨(z.1, x), h, rfl⟩ + change _ * (F.1 (z.1, x) : ℂ) = 0 + rw [hz, Complex.ofReal_zero, mul_zero] + +theorem spacetimePartialFourier_eq_zero_of_slice_zero (F : RealTestFunction) + {t : ℝ} (ht : spacetimeSpatialSlice F t = 0) + (p : EuclideanSpace ℝ (Fin 3)) : spacetimePartialFourier F t p = 0 := by + change spatialFourier (spacetimeSpatialSlice F t) p = 0 + rw [ht] + change (∫ x : EuclideanSpace ℝ (Fin 3), + Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ))) * (0 : ℂ)) = 0 + simp + +/-- The literal mass-shell phase applied to the actual slice Fourier transform. -/ +noncomputable def spacetimeEvolvedFourier (m : ℝ) (F : RealTestFunction) (t : ℝ) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + Complex.exp (Complex.I * ((t * dispersion m p : ℝ) : ℂ)) * spacetimePartialFourier F t p + +theorem continuous_spacetimeEvolvedFourier (m : ℝ) (F : RealTestFunction) : + Continuous (fun z : ℝ × EuclideanSpace ℝ (Fin 3) => spacetimeEvolvedFourier m F z.1 z.2) := by + unfold spacetimeEvolvedFourier + exact (Complex.continuous_exp.comp (continuous_const.mul + (Complex.continuous_ofReal.comp (continuous_fst.mul + ((continuous_dispersion m).comp continuous_snd))))).mul + (continuous_spacetimePartialFourier F) + +@[simp] theorem norm_spacetimeEvolvedFourier (m : ℝ) (F : RealTestFunction) (t : ℝ) + (p : EuclideanSpace ℝ (Fin 3)) : + ‖spacetimeEvolvedFourier m F t p‖ = ‖spacetimePartialFourier F t p‖ := by + rw [spacetimeEvolvedFourier, norm_mul, Complex.norm_exp_I_mul_ofReal, one_mul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSlicePairing.lean b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSlicePairing.lean new file mode 100644 index 0000000000..b4ebc56d9a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSlicePairing.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeSlicePairingIntegrability +public import LeanPool.VacuumBellSeparation.FreeField.EvolvedSpacetimeSlices + +/-! +# Exact scalar pairing identity for the forward time-slice direction + +The original one-particle integral equals the time integral of the actual +evolved spatial slices. Absolute integrability was proved on the full +product measure, so scalar Fubini applies to every physical L² test vector. +Both the complex identity and its real-Hilbert-space form are recorded. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter FourierTransform +open scoped ComplexConjugate FourierTransform InnerProductSpace + +theorem oneParticle_eq_integral_spacetimeEvolvedFourier (m : ℝ) + (F : RealTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m F p = ∫ t, spacetimeEvolvedFourier m F t p := by + rw [oneParticle_eq_integral] + change (∫ x : ℝ × EuclideanSpace ℝ (Fin 3), + oneParticleIntegrand m F p x ∂volume.prod volume) = _ + rw [integral_prod _ (integrable_oneParticleIntegrand m F p)] + apply integral_congr_ae + exact Eventually.of_forall fun t => by + unfold spacetimeEvolvedFourier spacetimePartialFourier spatialFourier + dsimp only + rw [← integral_const_mul] + apply integral_congr_ae + exact Eventually.of_forall fun x => by + simp only [oneParticleIntegrand, spacetimeSpatialSlice_apply] + rw [← mul_assoc, ← Complex.exp_add] + congr 2 + push_cast + ring + +theorem timeZeroOneParticle_evolvedSpacetimeSlice {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (t : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + timeZeroOneParticle m (evolvedSpatialSource hm t (spacetimeSpatialSlice F t)) p = + spacetimeEvolvedFourier m F t p := by + let ξ : EuclideanSpace ℝ (Fin 3) := (2 * Real.pi)⁻¹ • p + have hξ : (2 * Real.pi) • ξ = p := by + simp only [ξ, smul_smul, mul_inv_cancel₀ (by positivity : 2 * Real.pi ≠ 0), one_smul] + have hphase : massiveEvolutionPhase m t ξ = + Complex.exp (Complex.I * ((t * dispersion m p : ℝ) : ℂ)) := by + rw [massiveEvolutionPhase, massiveSchwartzSymbol_one hm, hξ] + congr 1 + exact mul_comm _ _ + have hfourier : (𝓕 (spatialSchwartz (spacetimeSpatialSlice F t))) ξ = + spacetimePartialFourier F t p := by + rw [← spatialFourier_two_pi, hξ] + rfl + simpa only [hξ, hphase, hfourier, spacetimeEvolvedFourier] using + timeZeroOneParticle_evolvedSpatialSource hm t (spacetimeSpatialSlice F t) ξ + +theorem inner_timeZeroL2_evolvedSpacetimeSlice {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (t : ℝ) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + ⟪ψ, timeZeroL2 hm (evolvedSpatialSource hm t (spacetimeSpatialSlice F t))⟫_ℂ = + ∫ p, conj (ψ p) * spacetimeEvolvedFourier m F t p ∂oneParticleMeasure m := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [coeFn_timeZeroL2 hm (evolvedSpatialSource hm t (spacetimeSpatialSlice F t))] + with p hp + rw [hp, RCLike.inner_apply', timeZeroOneParticle_evolvedSpacetimeSlice] + +theorem integrable_inner_evolvedSpacetimeSlice {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + Integrable (fun t => + ⟪ψ, timeZeroL2 hm (evolvedSpatialSource hm t (spacetimeSpatialSlice F t))⟫_ℂ) := by + let := oneParticleMeasure_isLocallyFinite hm + simpa only [inner_timeZeroL2_evolvedSpacetimeSlice] using + (integrable_spacetimeSlicePairing hm F ψ).integral_prod_left + +/-- Exact scalar Fubini identity against every vector in the physical +one-particle Hilbert space. -/ +theorem inner_oneParticleL2_eq_integral_timeZeroL2 {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + ⟪ψ, oneParticleL2 hm F⟫_ℂ = ∫ t, + ⟪ψ, timeZeroL2 hm (evolvedSpatialSource hm t (spacetimeSpatialSlice F t))⟫_ℂ := by + let := oneParticleMeasure_isLocallyFinite hm + rw [L2.inner_def] + calc + (∫ p, ⟪ψ p, oneParticleL2 hm F p⟫_ℂ ∂oneParticleMeasure m) = + ∫ p, conj (ψ p) * oneParticle m F p ∂oneParticleMeasure m := by + apply integral_congr_ae + filter_upwards [coeFn_oneParticleL2 hm F] with p hp + rw [hp, RCLike.inner_apply'] + _ = ∫ p, (∫ t, conj (ψ p) * spacetimeEvolvedFourier m F t p) + ∂oneParticleMeasure m := by + simp only [oneParticle_eq_integral_spacetimeEvolvedFourier, integral_const_mul] + _ = ∫ t, ∫ p, conj (ψ p) * spacetimeEvolvedFourier m F t p + ∂oneParticleMeasure m := + (integral_integral_swap (integrable_spacetimeSlicePairing hm F ψ)).symm + _ = _ := by simp only [inner_timeZeroL2_evolvedSpacetimeSlice] + +/-- The real part is essential for local source closure. This is a real +orthogonality statement, with no assumption of complex-local density. -/ +theorem real_inner_oneParticleL2_eq_integral_timeZeroL2 {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + ⟪ψ, oneParticleL2 hm F⟫_ℝ = ∫ t, + ⟪ψ, timeZeroL2 hm (evolvedSpatialSource hm t (spacetimeSpatialSlice F t))⟫_ℝ := by + have hr (u v : Lp ℂ 2 (oneParticleMeasure m)) : + ⟪u, v⟫_ℝ = (⟪u, v⟫_ℂ).re := by + rw [L2.inner_def, L2.inner_def] + calc + _ = ∫ p, RCLike.re (⟪u p, v p⟫_ℂ) ∂oneParticleMeasure m := by + apply integral_congr_ae + exact Eventually.of_forall fun p => by + simp only [Complex.inner, RCLike.inner_apply] + rfl + _ = _ := integral_re (L2.integrable_inner (𝕜 := ℂ) u v) + simp only [hr] + rw [inner_oneParticleL2_eq_integral_timeZeroL2] + exact (integral_re (integrable_inner_evolvedSpacetimeSlice hm F ψ)).symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSlicePairingIntegrability.lean b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSlicePairingIntegrability.lean new file mode 100644 index 0000000000..9eadd0feda --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSlicePairingIntegrability.lean @@ -0,0 +1,67 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeSliceSquareIntegrability + +/-! +# Actual absolute integrability for scalar time-slice pairings + +The first factor is an arbitrary vector of the physical mass-shell L² +space. Compact time support and the elementary product-square inequality +give a genuine integrable majorant on the product measure. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Set +open scoped ComplexConjugate + +theorem exists_spacetimeEvolvedFourier_timeSupport (m : ℝ) (F : RealTestFunction) : + ∃ T : ℝ, 0 < T ∧ ∀ t ∉ Icc (-T) T, ∀ p, + spacetimeEvolvedFourier m F t p = 0 := by + obtain ⟨T, hT, hs⟩ := (F.2.2.image continuous_fst).isBounded.subset_closedBall_lt 0 (0 : ℝ) + refine ⟨T, hT, ?_⟩ + intro t ht p + have hz : spacetimeSpatialSlice F t = 0 := by + apply Subtype.ext + funext x + apply image_eq_zero_of_notMem_tsupport + intro hx + have h := hs ⟨(t, x), tsupport_spatialSlice_subset F t hx, rfl⟩ + have habs : |t| ≤ T := by simpa only [Metric.mem_closedBall, Real.dist_eq, sub_zero] using h + exact ht (abs_le.mp habs) + rw [spacetimeEvolvedFourier, spacetimePartialFourier_eq_zero_of_slice_zero F hz, mul_zero] + +theorem integrable_spacetimeSlicePairing {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + Integrable (fun z : ℝ × EuclideanSpace ℝ (Fin 3) => + conj (ψ z.2) * spacetimeEvolvedFourier m F z.1 z.2) + (volume.prod (oneParticleMeasure m)) := by + let := oneParticleMeasure_isLocallyFinite hm + obtain ⟨T, _, hT⟩ := exists_spacetimeEvolvedFourier_timeSupport m F + have hi : Integrable ((Icc (-T) T).indicator (fun _ : ℝ => (1 : ℝ))) := + (integrable_indicator_iff measurableSet_Icc).mpr + (integrableOn_const isCompact_Icc.measure_ne_top) + have hdom := (hi.mul_prod (Lp.memLp ψ).norm.integrable_sq).add + (integrable_spacetimeEvolvedFourier_sq hm F) + apply hdom.mono' + · exact ((Lp.memLp ψ).aestronglyMeasurable.comp_snd.star).mul + (continuous_spacetimeEvolvedFourier m F).aestronglyMeasurable + · exact Eventually.of_forall fun z => by + dsimp only [Pi.add_apply] + by_cases ht : z.1 ∈ Icc (-T) T + · simp only [Set.indicator_of_mem ht, one_mul, norm_mul, Complex.norm_conj] + nlinarith [sq_nonneg (‖ψ z.2‖ - ‖spacetimeEvolvedFourier m F z.1 z.2‖), + mul_nonneg (norm_nonneg (ψ z.2)) + (norm_nonneg (spacetimeEvolvedFourier m F z.1 z.2))] + · simp only [Set.indicator_of_notMem ht, hT z.1 ht z.2, mul_zero, norm_zero, + zero_pow (by decide : 2 ≠ 0), zero_mul, add_zero, le_refl] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSliceSquareIntegrability.lean b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSliceSquareIntegrability.lean new file mode 100644 index 0000000000..62a63ca8f7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSliceSquareIntegrability.lean @@ -0,0 +1,69 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimePartialFourier +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMassShellBound + +/-! +# Actual joint square integrability of the evolved spatial slices + +The physical mass-shell Parseval bound is integrated in time. Compactness +and continuity of the original spacetime source prove integrability of its +square before Fubini is applied. No uniform Fourier derivative estimate or +Schwartz-valued integral is required. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter + +private theorem integrable_sq_of_continuous_compact + {X : Type*} [TopologicalSpace X] [MeasurableSpace X] [OpensMeasurableSpace X] + (μ : Measure X) [IsFiniteMeasureOnCompacts μ] + (f : X → ℝ) (hf : Continuous f) (hs : HasCompactSupport f) : + Integrable (fun y => f y ^ 2) μ := + (hf.pow 2).integrable_of_hasCompactSupport + (hs.comp_left (g := fun a : ℝ => a ^ 2) (zero_pow (by decide))) + +theorem integrable_spacetimeTest_sq (F : RealTestFunction) : + Integrable (fun y : Spacetime => F.1 y ^ 2) := + integrable_sq_of_continuous_compact volume F.1 F.2.1.continuous F.2.2 + +theorem integrable_spacetimePartialFourier_sq {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) : + Integrable (fun z : ℝ × EuclideanSpace ℝ (Fin 3) => + ‖spacetimePartialFourier F z.1 z.2‖ ^ 2) (volume.prod (oneParticleMeasure m)) := by + let := oneParticleMeasure_isLocallyFinite hm + have hmeas : AEStronglyMeasurable + (fun z : ℝ × EuclideanSpace ℝ (Fin 3) => ‖spacetimePartialFourier F z.1 z.2‖ ^ 2) + (volume.prod (oneParticleMeasure m)) := + ((continuous_spacetimePartialFourier F).norm.pow 2).aestronglyMeasurable + have hbound : Integrable (fun t : ℝ => (1 / (2 * m)) * + ∫ x : EuclideanSpace ℝ (Fin 3), F.1 (t, x) ^ 2) := + (integrable_spacetimeTest_sq F).integral_prod_left.const_mul _ + have hout : Integrable (fun t : ℝ => + ∫ p, ‖spacetimePartialFourier F t p‖ ^ 2 ∂oneParticleMeasure m) := by + apply hbound.mono' hmeas.integral_prod_right' + exact Eventually.of_forall fun t => by + rw [Real.norm_of_nonneg (integral_nonneg fun p => sq_nonneg _)] + exact integral_spatialFourier_norm_sq_massShell_le hm (spacetimeSpatialSlice F t) + apply (integrable_prod_iff hmeas).mpr + constructor + · exact Eventually.of_forall fun t => + integrable_spatialFourier_norm_sq_massShell hm (spacetimeSpatialSlice F t) + · simpa only [Real.norm_of_nonneg (sq_nonneg _)] using hout + +theorem integrable_spacetimeEvolvedFourier_sq {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) : + Integrable (fun z : ℝ × EuclideanSpace ℝ (Fin 3) => + ‖spacetimeEvolvedFourier m F z.1 z.2‖ ^ 2) (volume.prod (oneParticleMeasure m)) := by + simpa only [norm_spacetimeEvolvedFourier] using integrable_spacetimePartialFourier_sq hm F + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSlices.lean b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSlices.lean new file mode 100644 index 0000000000..23d89a632e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSlices.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CauchySpatialTest + +/-! +# Literal spatial slices and their common double-cone support margin + +Each fixed-time slice of a real spacetime test function is itself a genuine +spatial test function. Compact support in an open double cone supplies one +strictly smaller radius for all slices, including their subsequent finite +propagation to time zero. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem tsupport_spatialSlice_subset (F : RealTestFunction) (t : ℝ) : + tsupport (fun x => F.1 (t, x)) ⊆ (fun x => (t, x)) ⁻¹' tsupport F.1 := + tsupport_comp_subset_preimage F.1 (by fun_prop) + +theorem hasCompactSupport_spatialSlice (F : RealTestFunction) (t : ℝ) : + HasCompactSupport (fun x => F.1 (t, x)) := by + apply (F.2.2.image continuous_snd).of_isClosed_subset (isClosed_tsupport _) + intro x hx + exact ⟨(t, x), tsupport_spatialSlice_subset F t hx, rfl⟩ + +/-- The spatial Schwartz function obtained by fixing the time coordinate of a spacetime test +function. -/ +noncomputable def spacetimeSpatialSlice (F : RealTestFunction) (t : ℝ) : + SpatialTestFunction := + ⟨fun x => F.1 (t, x), F.2.1.comp (contDiff_const.prodMk contDiff_id), + hasCompactSupport_spatialSlice F t⟩ + +@[simp] theorem spacetimeSpatialSlice_apply (F : RealTestFunction) (t : ℝ) + (x : EuclideanSpace ℝ (Fin 3)) : (spacetimeSpatialSlice F t).1 x = F.1 (t, x) := rfl + +/-- The same smaller cone controls every actual slice. Adding the center +to the compact set also handles the identically zero source. -/ +theorem exists_doubleCone_support_margin {R : ℝ} (hR : 0 < R) + (x₀ : EuclideanSpace ℝ (Fin 3)) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ doubleCone (0, x₀) R) : + ∃ r : ℝ, 0 ≤ r ∧ r < R ∧ + ∀ y ∈ tsupport F.1, |y.1| + ‖y.2 - x₀‖ ≤ r := by + let K : Set Spacetime := tsupport F.1 ∪ {(0, x₀)} + have hK : IsCompact K := F.2.2.union isCompact_singleton + have hne : K.Nonempty := ⟨(0, x₀), Set.mem_union_right _ rfl⟩ + have hc : Continuous (fun y : Spacetime => |y.1| + ‖y.2 - x₀‖) := by fun_prop + obtain ⟨y, hy, hmax⟩ := hK.exists_isMaxOn hne hc.continuousOn + refine ⟨|y.1| + ‖y.2 - x₀‖, by positivity, ?_, ?_⟩ + · rcases hy with hy | hy + · simpa only [doubleCone, Set.mem_ofPred_eq, sub_zero] using hF hy + · have hy' : y = (0, x₀) := Set.mem_singleton_iff.mp hy + simpa only [hy', abs_zero, sub_self, norm_zero, add_zero] using hR + · intro z hz + exact hmax (Set.mem_union_left _ hz) + +theorem tsupport_spacetimeSpatialSlice_subset {r : ℝ} + (x₀ : EuclideanSpace ℝ (Fin 3)) (F : RealTestFunction) + (hF : ∀ y ∈ tsupport F.1, |y.1| + ‖y.2 - x₀‖ ≤ r) (t : ℝ) : + tsupport (spacetimeSpatialSlice F t).1 ⊆ Metric.closedBall x₀ (r - |t|) := by + intro x hx + have h := hF (t, x) (tsupport_spatialSlice_subset F t hx) + change dist x x₀ ≤ r - |t| + rw [dist_eq_norm] + linarith + +theorem spacetimeSpatialSlice_eq_zero_outside {r : ℝ} + (x₀ : EuclideanSpace ℝ (Fin 3)) (F : RealTestFunction) + (hF : ∀ y ∈ tsupport F.1, |y.1| + ‖y.2 - x₀‖ ≤ r) + {t : ℝ} (ht : r < |t|) : spacetimeSpatialSlice F t = 0 := by + apply Subtype.ext + funext x + apply image_eq_zero_of_notMem_tsupport + intro hx + have h := tsupport_spacetimeSpatialSlice_subset x₀ F hF t hx + have hd : dist x x₀ ≤ r - |t| := h + linarith [(dist_nonneg : 0 ≤ dist x x₀)] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSpatialTranslation.lean b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSpatialTranslation.lean new file mode 100644 index 0000000000..efd34f46b0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeSpatialTranslation.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialTestTranslation +public import LeanPool.VacuumBellSeparation.FreeField.SourceTranslation + +/-! +# Literal spatial translation of spacetime tests and entire wedge waves + +The same physical translation unitary acts on original spacetime test +vectors. Its full complex-rapidity wave acquires the actual complex +Fourier phase, proved by a volume-preserving translation of the integral. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace + +/-- Spacetime spatial translate. -/ +noncomputable def spacetimeSpatialTranslate (a : EuclideanSpace ℝ (Fin 3)) + (F : RealTestFunction) : RealTestFunction := + ⟨fun x => F.1 (x - (0, a)), F.2.1.comp (contDiff_id.sub contDiff_const), + F.2.2.comp_homeomorph (Homeomorph.subRight (0, a))⟩ + +theorem tsupport_spacetimeSpatialTranslate (a : EuclideanSpace ℝ (Fin 3)) + (F : RealTestFunction) : + tsupport (spacetimeSpatialTranslate a F).1 = + (fun x => x - (0, a)) ⁻¹' tsupport F.1 := + tsupport_comp_eq_preimage F.1 (Homeomorph.subRight (0, a)) + +theorem boostPhase_add (m : ℝ) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) + (x y : Spacetime) : boostPhase m ζ p (x + y) = boostPhase m ζ p x + boostPhase m ζ p y := by + rw [← boostPhaseCLM_apply, map_add, boostPhaseCLM_apply, boostPhaseCLM_apply] + +theorem wedgeWave_spatialTranslate (m : ℝ) (a : EuclideanSpace ℝ (Fin 3)) + (F : RealTestFunction) (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + wedgeWave m (spacetimeSpatialTranslate a F) ζ p = + Complex.exp (-(Complex.I * spatialDot (complexShellBoost m ζ p).2 + (fun i => (a i : ℂ)))) * wedgeWave m F ζ p := by + have : (volume : Measure Spacetime).IsAddHaarMeasure := + Measure.prod.instIsAddHaarMeasure _ _ + unfold wedgeWave + rw [← integral_add_right_eq_self + (fun x : Spacetime => Complex.exp (Complex.I * boostPhase m (-ζ) p x) * + ((spacetimeSpatialTranslate a F).1 x : ℂ)) (0, a)] + simp only [spacetimeSpatialTranslate, add_sub_cancel_right, boostPhase_add] + have ha : boostPhase m (-ζ) p (0, a) = + -spatialDot (complexShellBoost m ζ p).2 (fun i => (a i : ℂ)) := by + rw [← complexShellBoost_phase] + simp + rw [← integral_const_mul] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + dsimp only + rw [ha, mul_add, Complex.exp_add, mul_neg] + ring + +theorem oneParticle_spatialTranslate (m : ℝ) (a : EuclideanSpace ℝ (Fin 3)) + (F : RealTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (spacetimeSpatialTranslate a F) p = + spatialTranslationPhase a p * oneParticle m F p := by + rw [← wedgeWave_zero, wedgeWave_spatialTranslate, wedgeWave_zero] + congr 1 + simp only [complexShellBoost, Complex.cosh_zero, Complex.sinh_zero, + mul_one, mul_zero, add_zero] + have hp : ![(p 0 : ℂ), (p 1 : ℂ), (p 2 : ℂ)] = (fun i => (p i : ℂ)) := by + ext i + fin_cases i <;> rfl + rw [hp, real_spatialDot] + rfl + +theorem oneParticleL2_spatialTranslate {m : ℝ} (hm : 0 < m) + (a : EuclideanSpace ℝ (Fin 3)) (F : RealTestFunction) : + oneParticleL2 hm (spacetimeSpatialTranslate a F) = + oneParticleSpatialTranslation m a (oneParticleL2 hm F) := by + apply Lp.ext + filter_upwards [coeFn_oneParticleL2 hm (spacetimeSpatialTranslate a F), + oneParticleSpatialTranslation_ae m a (oneParticleL2 hm F), coeFn_oneParticleL2 hm F] + with p hT hU hF + rw [hT, hU, hF, oneParticle_spatialTranslate] + +theorem spacetimeSpatialTranslate_support_wedge_zero (ℓ : ℝ) + (F : RealTestFunction) (hF : tsupport F.1 ⊆ leftWedge ℓ) : + tsupport (spacetimeSpatialTranslate (-(ℓ • e₁)) F).1 ⊆ leftWedge 0 := by + rw [tsupport_spacetimeSpatialTranslate] + intro x hx + have h := hF hx + change ⟪e₁, x.2 - -(ℓ • e₁)⟫_ℝ + |x.1 - 0| < ℓ at h + rw [sub_neg_eq_add, inner_e₁_add_smul, sub_zero] at h + change ⟪e₁, x.2⟫_ℝ + |x.1| < 0 + linarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpacetimeTestTranslation.lean b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeTestTranslation.lean new file mode 100644 index 0000000000..b8773336b6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpacetimeTestTranslation.lean @@ -0,0 +1,108 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Defs +public import Mathlib.MeasureTheory.Group.Integral + +/-! +# Translation of the actual compact spacetime test functions + +Translation by a sends F(x) to F(x-a). Its physical mass-shell Fourier +transform gains the phase exp(i(omega(p) a.time - p dot a.space)). The +modulus-one phase cancels from the physical one-particle inner product. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open MeasureTheory +open scoped InnerProductSpace ComplexConjugate + +/-- Spacetime translate. -/ +def spacetimeTranslate (a : Spacetime) (F : RealTestFunction) : RealTestFunction := + ⟨fun x => F.1 (x - a), F.2.1.comp (contDiff_id.sub contDiff_const), + F.2.2.comp_homeomorph (Homeomorph.subRight a)⟩ + +theorem tsupport_spacetimeTranslate (a : Spacetime) (F : RealTestFunction) : + tsupport (spacetimeTranslate a F).1 = (fun x => x - a) ⁻¹' tsupport F.1 := + tsupport_comp_eq_preimage F.1 (Homeomorph.subRight a) + +theorem spacetimeTranslate_add (a : Spacetime) (F G : RealTestFunction) : + spacetimeTranslate a (F + G) = spacetimeTranslate a F + spacetimeTranslate a G := by + apply Subtype.ext + rfl + +theorem spacetimeTranslate_cancel_neg (a : Spacetime) (F : RealTestFunction) : + spacetimeTranslate a (spacetimeTranslate (-a) F) = F := by + apply Subtype.ext + funext x + simp only [spacetimeTranslate, sub_neg_eq_add, sub_add_cancel] + +/-- Spacetime translation phase given by `Complex.exp (Complex.I * ((dispersion m p * a.1 - ⟪p, +a.2⟫_ℝ : ℝ) : ℂ))`. -/ +def spacetimeTranslationPhase (m : ℝ) (a : Spacetime) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + Complex.exp (Complex.I * ((dispersion m p * a.1 - ⟪p, a.2⟫_ℝ : ℝ) : ℂ)) + +theorem norm_spacetimeTranslationPhase (m : ℝ) (a : Spacetime) + (p : EuclideanSpace ℝ (Fin 3)) : ‖spacetimeTranslationPhase m a p‖ = 1 := by + rw [spacetimeTranslationPhase, Complex.norm_exp] + simp + +theorem oneParticle_spacetimeTranslate (m : ℝ) (a : Spacetime) + (F : RealTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (spacetimeTranslate a F) p = + spacetimeTranslationPhase m a p * oneParticle m F p := by + have harg (x : Spacetime) : + dispersion m p * (x + a).1 - ⟪p, (x + a).2⟫_ℝ = + (dispersion m p * x.1 - ⟪p, x.2⟫_ℝ) + + (dispersion m p * a.1 - ⟪p, a.2⟫_ℝ) := by + change dispersion m p * (x.1 + a.1) - ⟪p, x.2 + a.2⟫_ℝ = _ + rw [inner_add_right] + ring + have : (volume : Measure Spacetime).IsAddHaarMeasure := + Measure.prod.instIsAddHaarMeasure _ _ + unfold oneParticle + rw [← integral_add_right_eq_self + (fun x : Spacetime => + Complex.exp (Complex.I * ((dispersion m p * x.1 - ⟪p, x.2⟫_ℝ : ℝ) : ℂ)) * + ((spacetimeTranslate a F).1 x : ℂ)) a] + rw [← integral_const_mul] + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + change Complex.exp (Complex.I * + ((dispersion m p * (x + a).1 - ⟪p, (x + a).2⟫_ℝ : ℝ) : ℂ)) * + (F.1 ((x + a) - a) : ℂ) = _ + rw [add_sub_cancel_right, harg, Complex.ofReal_add, mul_add, Complex.exp_add] + unfold spacetimeTranslationPhase + ring + +theorem oneParticleInner_spacetimeTranslate (m : ℝ) (a : Spacetime) + (F G : RealTestFunction) : + oneParticleInner m (spacetimeTranslate a F) (spacetimeTranslate a G) = + oneParticleInner m F G := by + unfold oneParticleInner + apply integral_congr_ae + refine Filter.Eventually.of_forall fun p => ?_ + change conj (oneParticle m (spacetimeTranslate a F) p) * + oneParticle m (spacetimeTranslate a G) p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) = + conj (oneParticle m F p) * oneParticle m G p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) + rw [oneParticle_spacetimeTranslate, oneParticle_spacetimeTranslate, map_mul] + have hc : conj (spacetimeTranslationPhase m a p) * spacetimeTranslationPhase m a p = 1 := by + rw [Complex.conj_mul', norm_spacetimeTranslationPhase] + norm_num + calc + _ = (conj (spacetimeTranslationPhase m a p) * spacetimeTranslationPhase m a p) * + (conj (oneParticle m F p) * oneParticle m G p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)) := by ring + _ = _ := by rw [hc, one_mul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialBesselMomentExpansion.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialBesselMomentExpansion.lean new file mode 100644 index 0000000000..0dbca388a4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialBesselMomentExpansion.lean @@ -0,0 +1,61 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialKernelMomentSeries + +/-! +# Original covariance kernels as actual sums of test moments + +Both the coefficient bound and the full pointwise series are discharged +by the Bessel/Cauchy construction. The hypotheses specify only the +actual compact tests, coordinate support and geometric separation. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory + +theorem hasSum_spatialFieldBessel_moments {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (f g : SpatialTestFunction) + (hf : ∀ x, f.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hg : ∀ y, g.1 y ≠ 0 → ∀ j, ‖y j‖ ≤ R / 2) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + spatialFieldMultiCoefficient μ s R k.1 k.2 * spatialTestMoment f k.1 * spatialTestMoment g + k.2) + (∫ xy, (spatialFieldBesselKernel μ (spatialAxisDisplacement s (xy.2 - xy.1)) : ℂ) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) ∂volume.prod volume) := by + apply hasSum_spatialKernelMoments hR + (show 0 ≤ spatialFieldPolydiscBound μ s R by unfold spatialFieldPolydiscBound; positivity) + (fun k => spatialFieldMultiCoefficient μ s R k.1 k.2) + (fun x y => (spatialFieldBesselKernel μ (spatialAxisDisplacement s (y - x)) : ℂ)) + (fun k => spatialFieldMultiCoefficient_norm_le hμ hs hR hsep k.1 k.2) + (fun x y hx hy => spatialFieldMultiCoefficient_real_expansion hμ hs hR hsep x y hx hy) + f g hf hg + +theorem hasSum_spatialMomentumBessel_moments {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (f g : SpatialTestFunction) + (hf : ∀ x, f.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hg : ∀ y, g.1 y ≠ 0 → ∀ j, ‖y j‖ ≤ R / 2) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + spatialMomentumMultiCoefficient μ s R k.1 k.2 * spatialTestMoment f k.1 * + spatialTestMoment g k.2) + (∫ xy, (spatialMomentumBesselKernel μ (spatialAxisDisplacement s (xy.2 - xy.1)) : ℂ) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) ∂volume.prod volume) := by + apply hasSum_spatialKernelMoments hR + (show 0 ≤ spatialMomentumPolydiscBound μ s R by unfold spatialMomentumPolydiscBound; positivity) + (fun k => spatialMomentumMultiCoefficient μ s R k.1 k.2) + (fun x y => (spatialMomentumBesselKernel μ (spatialAxisDisplacement s (y - x)) : ℂ)) + (fun k => spatialMomentumMultiCoefficient_norm_le hμ hs hR hsep k.1 k.2) + (fun x y hx hy => spatialMomentumMultiCoefficient_real_expansion hμ hs hR hsep x y hx hy) + f g hf hg + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialCovarianceMomentExpansion.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialCovarianceMomentExpansion.lean new file mode 100644 index 0000000000..ba67fa2508 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialCovarianceMomentExpansion.lean @@ -0,0 +1,93 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialKernelTranslation + +/-! +# Actual original Fourier covariance as a convergent moment series + +The kernels, Cauchy coefficients, moments, translation and Fourier +normalization all refer to the original source definitions. No kernel +expansion or covariance factorization appears as a hypothesis here. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory +open scoped ComplexConjugate + +theorem hasSum_spatialFourier_field_moments {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (f g : SpatialTestFunction) + (hf : ∀ x, f.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hg : ∀ y, g.1 y ≠ 0 → ∀ j, ‖y j‖ ≤ R / 2) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + spatialFieldMultiCoefficient μ s R k.1 k.2 * spatialTestMoment f k.1 * spatialTestMoment g + k.2) + (((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) * + (∫ p : EuclideanSpace ℝ (Fin 3), ((dispersion μ p)⁻¹ : ℝ) * + (conj (spatialFourier f p) * + spatialFourier (spatialTestTranslate (spatialAxisDisplacement s 0) g) p))) := by + rw [spatialFourier_translated_field_kernel hμ hR hsep f g hf hg] + exact hasSum_spatialFieldBessel_moments hμ hs hR hsep f g hf hg + +theorem hasSum_spatialFourier_momentum_moments {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (f g : SpatialTestFunction) + (hf : ∀ x, f.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hg : ∀ y, g.1 y ≠ 0 → ∀ j, ‖y j‖ ≤ R / 2) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + spatialMomentumMultiCoefficient μ s R k.1 k.2 * spatialTestMoment f k.1 * + spatialTestMoment g k.2) + (((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) * + (∫ p : EuclideanSpace ℝ (Fin 3), (dispersion μ p : ℂ) * + (conj (spatialFourier f p) * + spatialFourier (spatialTestTranslate (spatialAxisDisplacement s 0) g) p))) := by + rw [spatialFourier_translated_momentum_kernel hμ hR hsep f g hf hg] + exact hasSum_spatialMomentumBessel_moments hμ hs hR hsep f g hf hg + +theorem hasSum_timeZeroCovariance_moments {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (u v : TimeZeroSource) + (huf : ∀ x, u.1.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hug : ∀ x, u.2.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hvf : ∀ x, v.1.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hvg : ∀ x, v.2.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + (spatialFieldMultiCoefficient μ s R k.1 k.2 * spatialTestMoment u.1 k.1 * + spatialTestMoment v.1 k.2 + + spatialMomentumMultiCoefficient μ s R k.1 k.2 * spatialTestMoment u.2 k.1 * + spatialTestMoment v.2 k.2).re) + (timeZeroFourierCovariance μ u (timeZeroTranslate (spatialAxisDisplacement s 0) v)) := by + have hf := hasSum_spatialFourier_field_moments hμ hs hR hsep u.1 v.1 huf hvf + have hg := hasSum_spatialFourier_momentum_moments hμ hs hR hsep u.2 v.2 hug hvg + have h := Complex.hasSum_re (hf.add hg) + convert h using 1 + unfold timeZeroFourierCovariance timeZeroFourierDiagonal timeZeroTranslate + congr 1 + simp only [mul_add, mul_comm] + +theorem hasSum_timeZeroOneParticle_real_moments {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (u v : TimeZeroSource) + (huf : ∀ x, u.1.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hug : ∀ x, u.2.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hvf : ∀ x, v.1.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hvg : ∀ x, v.2.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + (spatialFieldMultiCoefficient μ s R k.1 k.2 * spatialTestMoment u.1 k.1 * + spatialTestMoment v.1 k.2 + + spatialMomentumMultiCoefficient μ s R k.1 k.2 * spatialTestMoment u.2 k.1 * + spatialTestMoment v.2 k.2).re) + (timeZeroOneParticleInner μ u (timeZeroTranslate (spatialAxisDisplacement s 0) v)).re := by + rw [timeZeroGram_identity hμ] + simpa using hasSum_timeZeroCovariance_moments hμ hs hR hsep u v huf hug hvf hvg + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialCrossCoefficientBounds.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialCrossCoefficientBounds.lean new file mode 100644 index 0000000000..c9dbfb3b1e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialCrossCoefficientBounds.lean @@ -0,0 +1,81 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialCrossMomentIndex +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialWeightedCoefficientSeries + +/-! +# Full coefficient bounds for both literal spatial kernels + +The vector estimates remain the weighted-moment interface. The complete +coefficient sum, including both field and momentum sectors, is proved. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian + +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] + [NormedAddCommGroup F] + +theorem spatialCross_weighted_vector_series {μ s B Af Ap Cf Cp : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hB : 0 < B) + (hAf : 0 ≤ Af) (hAp : 0 ≤ Ap) + (hsep : 16 * Real.sqrt 3 * B ≤ s) + (u : SpatialCrossIndex → E) (v : SpatialCrossIndex → F) + (huf : ∀ k, ‖u (.inl k)‖ ≤ Af * B ^ (∑ j, k.1 j)) + (hup : ∀ k, ‖u (.inr k)‖ ≤ Ap * B ^ (∑ j, k.1 j)) + (hvf : ∀ k, ‖v (.inl k)‖ ≤ Cf * B ^ (∑ j, k.2 j)) + (hvp : ∀ k, ‖v (.inr k)‖ ≤ Cp * B ^ (∑ j, k.2 j)) : + Summable (fun i => ‖(spatialCrossCoefficient μ s (2 * B) i : ℂ) • u i‖ * ‖v i‖) ∧ + (∑' i, ‖(spatialCrossCoefficient μ s (2 * B) i : ℂ) • u i‖ * ‖v i‖) ≤ + 64 * spatialFieldPolydiscBound μ s (2 * B) * Af * Cf + + 64 * spatialMomentumPolydiscBound μ s (2 * B) * Ap * Cp := by + let f : SpatialMomentIndex → ℝ := fun k => + ‖((spatialFieldMultiCoefficient μ s (2 * B) k.1 k.2).re : ℂ) • u (.inl k)‖ * ‖v (.inl k)‖ + let g : SpatialMomentIndex → ℝ := fun k => + ‖((spatialMomentumMultiCoefficient μ s (2 * B) k.1 k.2).re : ℂ) • u (.inr k)‖ * ‖v (.inr k)‖ + have hfbound (k : SpatialMomentIndex) : f k ≤ + (spatialFieldPolydiscBound μ s (2 * B) * Af * Cf) * + (1 / 2 : ℝ) ^ ((∑ j, k.1 j) + ∑ j, k.2 j) := by + apply coefficient_weighted_vector_product_le hB + (by unfold spatialFieldPolydiscBound; positivity) hAf k.1 k.2 _ _ _ _ (huf k) (hvf k) + apply (show ‖((spatialFieldMultiCoefficient μ s (2 * B) k.1 k.2).re : ℂ)‖ ≤ + ‖spatialFieldMultiCoefficient μ s (2 * B) k.1 k.2‖ by + simpa only [Complex.norm_real, Real.norm_eq_abs] using Complex.abs_re_le_norm + (spatialFieldMultiCoefficient μ s (2 * B) k.1 k.2)).trans + exact spatialFieldMultiCoefficient_norm_le hμ hs (by positivity) (by nlinarith) _ _ + have hgbound (k : SpatialMomentIndex) : g k ≤ + (spatialMomentumPolydiscBound μ s (2 * B) * Ap * Cp) * + (1 / 2 : ℝ) ^ ((∑ j, k.1 j) + ∑ j, k.2 j) := by + apply coefficient_weighted_vector_product_le hB + (by unfold spatialMomentumPolydiscBound; positivity) hAp k.1 k.2 _ _ _ _ (hup k) (hvp k) + apply (show ‖((spatialMomentumMultiCoefficient μ s (2 * B) k.1 k.2).re : ℂ)‖ ≤ + ‖spatialMomentumMultiCoefficient μ s (2 * B) k.1 k.2‖ by + simpa only [Complex.norm_real, Real.norm_eq_abs] using Complex.abs_re_le_norm + (spatialMomentumMultiCoefficient μ s (2 * B) k.1 k.2)).trans + exact spatialMomentumMultiCoefficient_norm_le hμ hs (by positivity) (by nlinarith) _ _ + have hmf := hasSum_six_moment_geometric.mul_left + (spatialFieldPolydiscBound μ s (2 * B) * Af * Cf) + have hmp := hasSum_six_moment_geometric.mul_left + (spatialMomentumPolydiscBound μ s (2 * B) * Ap * Cp) + have hf : Summable f := hmf.summable.of_nonneg_of_le + (fun k => mul_nonneg (norm_nonneg _) (norm_nonneg _)) hfbound + have hg : Summable g := hmp.summable.of_nonneg_of_le + (fun k => mul_nonneg (norm_nonneg _) (norm_nonneg _)) hgbound + have hj : HasSum (fun i => ‖(spatialCrossCoefficient μ s (2 * B) i : ℂ) • u i‖ * ‖v i‖) + ((∑' k, f k) + ∑' k, g k) := hf.hasSum.sum hg.hasSum + refine ⟨hj.summable, hj.tsum_eq.trans_le ?_⟩ + apply (add_le_add (hf.tsum_le_tsum hfbound hmf.summable) + (hg.tsum_le_tsum hgbound hmp.summable)).trans_eq + rw [hmf.tsum_eq, hmp.tsum_eq] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialCrossMomentIndex.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialCrossMomentIndex.lean new file mode 100644 index 0000000000..6aaee05d36 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialCrossMomentIndex.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialLocalizedMomentSeries + +/-! +# The actual field-and-momentum index for the source cross series +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian + +/-- Spatial moment index. -/ +abbrev SpatialMomentIndex := (Fin 3 → ℕ) × (Fin 3 → ℕ) +/-- A disjoint sum recording whether a spatial moment comes from the field or momentum kernel. -/ +abbrev SpatialCrossIndex := SpatialMomentIndex ⊕ SpatialMomentIndex + +/-- Spatial cross coefficient. -/ +noncomputable def spatialCrossCoefficient (μ s R : ℝ) : SpatialCrossIndex → ℝ := + Sum.elim (fun k => (spatialFieldMultiCoefficient μ s R k.1 k.2).re) + (fun k => (spatialMomentumMultiCoefficient μ s R k.1 k.2).re) + +/-- Spatial cross left moment defined as `Sum.elim (fun k => spatialRealTestMoment u.1 k.1) (fun k +=> spatialRealTestMoment u.2 k.1) i`. -/ +noncomputable def spatialCrossLeftMoment (i : SpatialCrossIndex) (u : TimeZeroSource) : ℝ := + Sum.elim (fun k => spatialRealTestMoment u.1 k.1) (fun k => spatialRealTestMoment u.2 k.1) i + +/-- Spatial cross right moment. -/ +noncomputable def spatialCrossRightMoment (s : ℝ) (i : SpatialCrossIndex) + (v : TimeZeroSource) : ℝ := + Sum.elim (fun k => centeredSpatialTestMoment (spatialAxisDisplacement s 0) v.1 k.2) + (fun k => centeredSpatialTestMoment (spatialAxisDisplacement s 0) v.2 k.2) i + +theorem hasSum_localized_source_cross_index {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + {U W : Set (EuclideanSpace ℝ (Fin 3))} + (hU : ∀ x ∈ U, ∀ j, ‖x j‖ ≤ R / 2) + (hW : ∀ x ∈ W, ∀ j, ‖(x - spatialAxisDisplacement s 0) j‖ ≤ R / 2) + (u : SourceTestSpace hμ U) (v : SourceTestSpace hμ W) : + HasSum (fun i => spatialCrossCoefficient μ s R i * + spatialCrossLeftMoment i u.1 * spatialCrossRightMoment s i v.1) + (inner ℝ (sourceEmbedding hμ U (u : SourceHilbert hμ U)) + (sourceEmbedding hμ W (v : SourceHilbert hμ W))) := by + let f : SpatialMomentIndex → ℝ := fun k => + (spatialFieldMultiCoefficient μ s R k.1 k.2).re * spatialRealTestMoment u.1.1 k.1 * + centeredSpatialTestMoment (spatialAxisDisplacement s 0) v.1.1 k.2 + let g : SpatialMomentIndex → ℝ := fun k => + (spatialMomentumMultiCoefficient μ s R k.1 k.2).re * spatialRealTestMoment u.1.2 k.1 * + centeredSpatialTestMoment (spatialAxisDisplacement s 0) v.1.2 k.2 + have hf : Summable f := by + have ht := (hasSum_spatialFourier_field_moments hμ hs hR hsep u.1.1 + (spatialTestTranslate (-(spatialAxisDisplacement s 0)) v.1.1) + (fun x hx j => hU x (u.2.1 (subset_tsupport _ hx)) j) + (spatialTestTranslate_back_coordinate_bound hW v.1.1 v.2.1)).summable + simpa only [f, spatialTestMoment_eq_ofReal, centeredSpatialTestMoment, + Complex.reCLM_apply, Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, + mul_zero, zero_mul, sub_zero, add_zero] using ht.mapL Complex.reCLM + have hg : Summable g := by + have ht := (hasSum_spatialFourier_momentum_moments hμ hs hR hsep u.1.2 + (spatialTestTranslate (-(spatialAxisDisplacement s 0)) v.1.2) + (fun x hx j => hU x (u.2.2 (subset_tsupport _ hx)) j) + (spatialTestTranslate_back_coordinate_bound hW v.1.2 v.2.2)).summable + simpa only [g, spatialTestMoment_eq_ofReal, centeredSpatialTestMoment, + Complex.reCLM_apply, Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, + mul_zero, zero_mul, sub_zero, add_zero] using ht.mapL Complex.reCLM + have hk : HasSum (fun k => f k + g k) + (inner ℝ (sourceEmbedding hμ U (u : SourceHilbert hμ U)) + (sourceEmbedding hμ W (v : SourceHilbert hμ W))) := + hasSum_localized_source_realMoments hμ hs hR hsep hU hW u v + have heq := (hf.hasSum.add hg.hasSum).unique hk + have hj : HasSum (Sum.elim f g) ((∑' k, f k) + ∑' k, g k) := hf.hasSum.sum hg.hasSum + rw [heq] at hj + convert hj using 1 + funext i + cases i <;> rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialFieldCovarianceKernel.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialFieldCovarianceKernel.lean new file mode 100644 index 0000000000..ff51f09c93 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialFieldCovarianceKernel.lean @@ -0,0 +1,81 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFieldCovarianceKernelDefs +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatSeparatedIntegrability + +/-! +# The actual separated field covariance kernel + +Both required Fubini exchanges have proved joint integrability. The +literal reciprocal-energy Fourier pairing therefore equals the actual +Bessel kernel pairing of the original real spatial tests. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory Set +open scoped ComplexConjugate + +theorem spatialHeat_scalar_normalization (A B : ℂ) : + (((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) * ((Real.sqrt Real.pi)⁻¹ : ℂ)) * (A * B) = + ((1 / (2 * Real.sqrt Real.pi) : ℝ) : ℂ) * A * ((((2 * Real.pi) ^ 3 : ℝ) : ℂ)⁻¹ * B) := by + push_cast + field_simp + + +theorem integrable_spatialFieldKernel_pairing {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + Integrable (fun xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + (spatialFieldBesselKernel m (xy.1 - xy.2) : ℂ) * (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ)) + (volume.prod volume) := by + have h := (integrable_separatedHeatPairing hm hd f g hsep).integral_prod_right + simpa only [integral_separatedHeatPairing_time hm hd f g hsep, spatialFieldBesselKernel] using h + +theorem spatialFourier_field_covariance_kernel {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + ((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) * + (∫ p : EuclideanSpace ℝ (Fin 3), ((dispersion m p)⁻¹ : ℝ) * + (conj (spatialFourier f p) * spatialFourier g p)) = + ∫ xy, (spatialFieldBesselKernel m (xy.1 - xy.2) : ℂ) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) ∂volume.prod volume := by + have hj := integrable_separatedHeatPairing hm hd f g hsep + rw [spatialFourier_reciprocal_energy_heat hm f g, ← mul_assoc, ← integral_const_mul] + calc + _ = ∫ t in Ioi (0 : ℝ), ∫ xy, separatedHeatPairing m f g (t, xy) ∂volume.prod volume := by + apply integral_congr_ae + filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + rw [spatialHeat_scalar_normalization, spatialFourier_heat_convolution ht f g, + ← integral_const_mul] + apply integral_congr_ae + refine Filter.Eventually.of_forall (fun xy => ?_) + simp only [separatedHeatPairing, Complex.ofReal_mul] + ring + _ = ∫ xy, (∫ t in Ioi (0 : ℝ), separatedHeatPairing m f g (t, xy)) ∂volume.prod volume := + integral_integral_swap (f := fun t xy => separatedHeatPairing m f g (t, xy)) hj + _ = _ := by simp_rw [integral_separatedHeatPairing_time hm hd f g hsep, + spatialFieldBesselKernel] + +theorem spatialFourier_field_covariance_real_kernel {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + (((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) * + (∫ p : EuclideanSpace ℝ (Fin 3), ((dispersion m p)⁻¹ : ℝ) * + (conj (spatialFourier f p) * spatialFourier g p))).re = + ∫ xy, spatialFieldBesselKernel m (xy.1 - xy.2) * f.1 xy.1 * g.1 xy.2 ∂volume.prod volume := by + rw [spatialFourier_field_covariance_kernel hm hd f g hsep, ← RCLike.re_eq_complex_re, + ← integral_re (integrable_spatialFieldKernel_pairing hm hd f g hsep)] + apply integral_congr_ae + exact Filter.Eventually.of_forall (fun xy => by + simp only [RCLike.re_eq_complex_re, ← Complex.ofReal_mul, Complex.ofReal_re]) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialFieldCovarianceKernelDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialFieldCovarianceKernelDefs.lean new file mode 100644 index 0000000000..5c0d85ea8e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialFieldCovarianceKernelDefs.lean @@ -0,0 +1,30 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Special.BesselKDefs +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDefs + +/-! +# Statement seed extracted from FreeField/SpatialFieldCovarianceKernel + +Literal declarations are unchanged; theorem conclusions remain in the implementation module. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped ComplexConjugate + +/-- Spatial field Bessel kernel given by `m / (4 * Real.pi ^ 2 * ‖w‖) * besselKReal 1 (m * ‖w‖)`. -/ +noncomputable def spatialFieldBesselKernel (m : ℝ) (w : EuclideanSpace ℝ (Fin 3)) : ℝ := + m / (4 * Real.pi ^ 2 * ‖w‖) * besselKReal 1 (m * ‖w‖) + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialForwardDecay.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialForwardDecay.lean new file mode 100644 index 0000000000..78b9eb8920 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialForwardDecay.lean @@ -0,0 +1,118 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialSourceReserveEstimate + +/-! +# Literal mass-uniform forward decay for unit balls + +The threshold is exactly the three geometric requirements of Section 6. +The true source-series bound is reduced to s^(-2), uniformly in positive +mass, by the already proved scalar exponential envelope. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian + +/-- Source forward kappa given by `2 * sourceMomentLambda b + 8 * Real.sqrt 3 * sourceMomentBase +b`. -/ +def sourceForwardKappa (b : ℝ) : ℝ := + 2 * sourceMomentLambda b + 8 * Real.sqrt 3 * sourceMomentBase b + +/-- Source forward threshold given by `max 4 (max (16 * Real.sqrt 3 * sourceMomentBase b) (2 * +sourceForwardKappa b))`. -/ +def sourceForwardThreshold (b : ℝ) : ℝ := + max 4 (max (16 * Real.sqrt 3 * sourceMomentBase b) (2 * sourceForwardKappa b)) + +/-- Source forward envelope constant given by `64 * (6 + 128) * 256 * C ^ 2`. -/ +def sourceForwardEnvelopeConstant (C : ℝ) : ℝ := 64 * (6 + 128) * 256 * C ^ 2 + +theorem spatial_forward_polynomial_exponential {x : ℝ} (hx : 0 ≤ x) : + Real.sqrt (1 + x) * Real.exp (-x / 2) ≤ 256 ∧ + (1 + x) * Real.sqrt (1 + x) * Real.exp (-x / 2) ≤ 256 := by + have hsq : Real.sqrt (1 + x) ≤ 1 + x := by + nlinarith [Real.sq_sqrt (show 0 ≤ 1 + x by positivity), Real.sqrt_nonneg (1 + x)] + have he : Real.exp (-x / 2) ≤ Real.exp (-x / 8) := + Real.exp_le_exp.mpr (by linarith) + have hp := spatial_polynomial_exp_bound hx + constructor + · apply (mul_le_mul hsq he (Real.exp_nonneg _) (by positivity)).trans + exact (mul_le_mul_of_nonneg_right (by nlinarith : 1 + x ≤ (1 + x) ^ 2) + (Real.exp_nonneg _)).trans hp + · apply (mul_le_mul + (mul_le_mul_of_nonneg_left hsq (by positivity)) he + (Real.exp_nonneg _) (by positivity)).trans + simpa only [pow_two] using hp + +theorem spatialSourceFactorBound_one_eq (C b m s : ℝ) : + spatialSourceFactorBound C b m s 1 = + C ^ 2 * Real.exp (sourceForwardKappa b * m - m * s) * + (384 * Real.sqrt (1 + m * s) / (s ^ 2 * (1 + m) ^ 2) + + 8192 * (1 + m * s) * Real.sqrt (1 + m * s) / (s ^ 4 * (1 + m) ^ 4)) := by + have he : Real.exp (-m * s + 4 * m * Real.sqrt 3 * (2 * sourceMomentBase b)) * + Real.exp (sourceMomentLambda b * m) ^ 2 = + Real.exp (sourceForwardKappa b * m - m * s) := by + rw [pow_two, ← Real.exp_add, ← Real.exp_add] + congr 1 + unfold sourceForwardKappa + ring + unfold spatialSourceFactorBound sourceFieldMomentEnvelope sourceMomentumMomentEnvelope + spatialFieldPolydiscBound spatialMomentumPolydiscBound + simp only [mul_one, one_pow, mul_pow, div_pow] + calc + _ = C ^ 2 * + (Real.exp (-m * s + 4 * m * Real.sqrt 3 * (2 * sourceMomentBase b)) * + Real.exp (sourceMomentLambda b * m) ^ 2) * + (384 * Real.sqrt (1 + m * s) / (s ^ 2 * (1 + m) ^ 2) + + 8192 * (1 + m * s) * Real.sqrt (1 + m * s) / (s ^ 4 * (1 + m) ^ 4)) + := by simp only [div_eq_mul_inv, mul_inv_rev]; ring + _ = _ := by rw [he] + +theorem spatialSourceFactorBound_one_le {C b m s : ℝ} + (hm : 0 < m) (hs : sourceForwardThreshold b ≤ s) : + spatialSourceFactorBound C b m s 1 ≤ sourceForwardEnvelopeConstant C / s ^ 2 := by + have hs4 : 4 ≤ s := (le_max_left _ _).trans hs + have hs0 : 0 < s := by linarith + have hk : 2 * sourceForwardKappa b ≤ s := + (le_max_right _ _).trans ((le_max_right _ _).trans hs) + have hx : 0 ≤ m * s := by positivity + have he : Real.exp (sourceForwardKappa b * m - m * s) ≤ Real.exp (-(m * s) / 2) := by + apply Real.exp_le_exp.mpr + nlinarith [mul_le_mul_of_nonneg_right hk hm.le] + obtain ⟨hf, hp⟩ := spatial_forward_polynomial_exponential hx + have hfield : Real.sqrt (1 + m * s) * Real.exp (sourceForwardKappa b * m - m * s) ≤ 256 := + (mul_le_mul_of_nonneg_left he (Real.sqrt_nonneg _)).trans hf + have hmom : (1 + m * s) * Real.sqrt (1 + m * s) * + Real.exp (sourceForwardKappa b * m - m * s) ≤ 256 := + (mul_le_mul_of_nonneg_left he (by positivity)).trans hp + have hd2 : 1 ≤ (1 + m) ^ 2 := by nlinarith + have hd4 : 1 ≤ (1 + m) ^ 4 := by nlinarith [sq_nonneg ((1 + m) ^ 2 - 1)] + have hs24 : s ^ 2 ≤ s ^ 4 := by nlinarith [sq_nonneg (s ^ 2 - 1)] + rw [spatialSourceFactorBound_one_eq] + calc + _ = (384 * C ^ 2 / s ^ 2) * + ((Real.sqrt (1 + m * s) * Real.exp (sourceForwardKappa b * m - m * s)) / (1 + m) ^ 2) + + (8192 * C ^ 2 / s ^ 4) * + (((1 + m * s) * Real.sqrt (1 + m * s) * + Real.exp (sourceForwardKappa b * m - m * s)) / (1 + m) ^ 4) + := by simp only [div_eq_mul_inv, mul_inv_rev]; ring + _ ≤ (384 * C ^ 2 / s ^ 2) * 256 + (8192 * C ^ 2 / s ^ 4) * 256 := by + exact add_le_add + (mul_le_mul_of_nonneg_left ((div_le_self (by positivity) hd2).trans hfield) (by positivity)) + (mul_le_mul_of_nonneg_left ((div_le_self (by positivity) hd4).trans hmom) (by positivity)) + _ ≤ (384 * C ^ 2 / s ^ 2) * 256 + (8192 * C ^ 2 / s ^ 2) * 256 := by + exact _root_.add_le_add_right (mul_le_mul_of_nonneg_right + (div_le_div_of_nonneg_left (by positivity) (by positivity) hs24) (by norm_num)) _ + _ = _ := by unfold sourceForwardEnvelopeConstant; ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialForwardReserveFactor.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialForwardReserveFactor.lean new file mode 100644 index 0000000000..6c58f22c43 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialForwardReserveFactor.lean @@ -0,0 +1,63 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialForwardDecay + +/-! +# Mass-uniform forward factor on the actual pair source space + +The same compact selfadjoint factor has both the genuine operator norm +and the full extended nuclear norm bounded by F_b/s². The constants are +independent of the mass and of the selected subregions of the unit balls. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped ENNReal + +theorem exists_uniform_forward_source_factor {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + ∃ S F : ℝ, 0 < S ∧ 0 < F ∧ + ∀ (m : ℝ) (hm : 0 < m) (s : ℝ), S ≤ s → + ∀ (U W : Set (EuclideanSpace ℝ (Fin 3))), + U ⊆ Metric.ball 0 1 → W ⊆ Metric.ball (spatialAxisDisplacement s 0) 1 → + ∃ Y : HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) →L[ℂ] + HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)), + complexify (productSourceCovariancePerturbation hm U W) = + reserve (normalizedCommutation + (complexify (productSourceCommutation hm (UA := U) (UB := W)))) ^ b * + Y * reserve (normalizedCommutation + (complexify (productSourceCommutation hm (UA := U) (UB := W)))) ^ b ∧ + IsCompactOperator Y ∧ IsSelfAdjoint Y ∧ + ‖Y‖ ≤ F / s ^ 2 ∧ operatorTraceNorm Y ≤ ENNReal.ofReal (F / s ^ 2) ∧ + operatorTraceNorm Y < ∞ := by + obtain ⟨C, hC, hbound⟩ := exists_spatial_source_reserve_estimate hb hb1 + refine ⟨sourceForwardThreshold b, 2 * sourceForwardEnvelopeConstant C, ?_, ?_, ?_⟩ + · exact (by norm_num : (0 : ℝ) < 4).trans_le (le_max_left _ _) + · unfold sourceForwardEnvelopeConstant + positivity + · intro m hm s hs U W hU hW + have hsep : 16 * Real.sqrt 3 * (sourceMomentBase b * 1) ≤ s := by + simpa only [mul_one] using + (le_max_left (16 * Real.sqrt 3 * sourceMomentBase b) (2 * sourceForwardKappa b)).trans + ((le_max_right _ _).trans hs) + obtain ⟨Y, hfac, hc, hsa, hY, hY₁, hfin⟩ := hbound m hm 1 (by norm_num) s hsep U W hU hW + have hd := spatialSourceFactorBound_one_le (C := C) hm hs + have hconst : 0 ≤ sourceForwardEnvelopeConstant C / s ^ 2 := by + unfold sourceForwardEnvelopeConstant + positivity + refine ⟨Y, hfac, hc, hsa, (hY.trans hd).trans ?_, hY₁.trans ?_, hfin⟩ + · calc + _ ≤ 2 * (sourceForwardEnvelopeConstant C / s ^ 2) := by linarith + _ = _ := by ring + · apply ENNReal.ofReal_le_ofReal + convert mul_le_mul_of_nonneg_left hd (by norm_num : (0 : ℝ) ≤ 2) using 1; ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialFourier.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialFourier.lean new file mode 100644 index 0000000000..fef44bd620 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialFourier.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDilation +public import Mathlib.Analysis.Distribution.SchwartzSpace.Fourier + +/-! +# Spatial Fourier normalization and Parseval + +The source uses `exp(-i p·x)`, whereas Mathlib uses `exp(-2π i p·x)`. +We prove the exact conversion and its three-dimensional Parseval factor. +These are analytic ingredients of (2.6); no time-slice or covariance identity +is an input to the definitions or proofs. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate FourierTransform SchwartzMap +open MeasureTheory + +namespace VacuumBellSeparation + +/-- A spatial test function, complexified as a genuine Schwartz function. -/ +noncomputable def spatialSchwartz (f : SpatialTestFunction) : + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + (f.2.2.comp_left Complex.ofReal_zero).toSchwartzMap + (Complex.ofRealCLM.contDiff.comp f.2.1) + +@[simp] theorem spatialSchwartz_apply (f : SpatialTestFunction) + (x : EuclideanSpace ℝ (Fin 3)) : spatialSchwartz f x = (f.1 x : ℂ) := rfl + +/-- Exact conversion from the source Fourier convention to Mathlib's convention. -/ +theorem spatialFourier_two_pi (f : SpatialTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + spatialFourier f ((2 * Real.pi) • p) = (𝓕 (spatialSchwartz f)) p := by + rw [SchwartzMap.fourier_coe, Real.fourier_eq'] + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + simp only [spatialSchwartz_apply, smul_eq_mul, real_inner_smul_left] + congr 2 + rw [real_inner_comm x p] + push_cast + ring + +/-- The source Fourier transform itself is Schwartz, with the normalization +implemented by an invertible continuous linear change of frequency. -/ +noncomputable def spatialFourierSchwartz (f : SpatialTestFunction) : + SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ := + SchwartzMap.compCLMOfContinuousLinearEquiv ℂ + (ContinuousLinearEquiv.smulLeft (R₁ := ℝ) (M₁ := EuclideanSpace ℝ (Fin 3)) + (Units.mk0 ((2 * Real.pi)⁻¹) (by positivity))) (𝓕 (spatialSchwartz f)) + +@[simp] theorem spatialFourierSchwartz_apply (f : SpatialTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : spatialFourierSchwartz f p = spatialFourier f p := by + have h := spatialFourier_two_pi f ((2 * Real.pi)⁻¹ • p) + change (𝓕 (spatialSchwartz f)) ((2 * Real.pi)⁻¹ • p) = spatialFourier f p + simpa only [smul_smul, mul_inv_cancel₀ (by positivity : 2 * Real.pi ≠ 0), + one_smul] using h.symm + +theorem continuous_spatialFourier (f : SpatialTestFunction) : Continuous (spatialFourier f) := by + exact (spatialFourierSchwartz f).continuous.congr + (fun p => spatialFourierSchwartz_apply f p) + +/-- Every polynomially weighted Fourier norm is integrable. -/ +theorem integrable_pow_norm_spatialFourier (f : SpatialTestFunction) (k : ℕ) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => ‖p‖ ^ k * ‖spatialFourier f p‖) := by + simpa only [spatialFourierSchwartz_apply] using + (spatialFourierSchwartz f).integrable_pow_mul volume k + +/-- Polynomial weights times products of Fourier norms remain integrable. -/ +theorem integrable_pow_norm_spatialFourier_product (f g : SpatialTestFunction) (k : ℕ) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => + (‖p‖ ^ k * ‖spatialFourier f p‖) * ‖spatialFourier g p‖) := by + apply (integrable_pow_norm_spatialFourier f k).mul_bdd + (continuous_spatialFourier g).norm.aestronglyMeasurable + · refine Filter.Eventually.of_forall fun p => ?_ + simpa only [norm_norm, spatialFourierSchwartz_apply] using + (spatialFourierSchwartz g).norm_le_seminorm ℝ p + +/-- Fourier products in the source convention are integrable. -/ +theorem integrable_spatialFourier_product (f g : SpatialTestFunction) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => + conj (spatialFourier f p) * spatialFourier g p) := by + apply (integrable_comp_smul_iff volume _ (show 2 * Real.pi ≠ 0 by positivity)).mp + simp_rw [spatialFourier_two_pi] + simpa using ((𝓕 (spatialSchwartz f)).memLp 2).star.integrable_mul + ((𝓕 (spatialSchwartz g)).memLp 2) + +/-- Parseval with the manuscript's unnormalized transform and Lebesgue measures. -/ +theorem integral_spatialFourier_product (f g : SpatialTestFunction) : + (∫ p : EuclideanSpace ℝ (Fin 3), + conj (spatialFourier f p) * spatialFourier g p) = + (((2 * Real.pi) ^ 3 : ℝ) : ℂ) * + (∫ x : EuclideanSpace ℝ (Fin 3), (f.1 x : ℂ) * (g.1 x : ℂ)) := by + have hparseval : (∫ p : EuclideanSpace ℝ (Fin 3), + conj ((𝓕 (spatialSchwartz f)) p) * (𝓕 (spatialSchwartz g)) p) = + ∫ x : EuclideanSpace ℝ (Fin 3), (f.1 x : ℂ) * (g.1 x : ℂ) := by + simpa only [RCLike.inner_apply', spatialSchwartz_apply, Complex.conj_ofReal] using + SchwartzMap.integral_inner_fourier_fourier (spatialSchwartz f) (spatialSchwartz g) + have hcov := Measure.integral_comp_smul volume + (fun p : EuclideanSpace ℝ (Fin 3) => + conj (spatialFourier f p) * spatialFourier g p) (2 * Real.pi) + have hpos : 0 < (2 * Real.pi) ^ 3 := by positivity + rw [finrank_momentum, abs_of_pos (inv_pos.mpr hpos)] at hcov + simp_rw [spatialFourier_two_pi] at hcov + rw [hparseval, Complex.real_smul] at hcov + calc + _ = ((((2 * Real.pi) ^ 3 : ℝ) : ℂ) * + (((2 * Real.pi) ^ 3)⁻¹ : ℝ)) * + (∫ p : EuclideanSpace ℝ (Fin 3), + conj (spatialFourier f p) * spatialFourier g p) := by + rw [← Complex.ofReal_mul, mul_inv_cancel₀ hpos.ne', Complex.ofReal_one, one_mul] + _ = _ := by rw [mul_assoc, ← hcov] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialFourierMomentCoefficients.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialFourierMomentCoefficients.lean new file mode 100644 index 0000000000..8eb19dc0c7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialFourierMomentCoefficients.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCoefficientLinearity +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceFourierComponents +public import LeanPool.VacuumBellSeparation.FreeField.SpatialTestMoments + +/-! +# Actual Fourier contour coefficients are the literal spatial moments + +The original Fourier phase is -i z dot x, with no 2 pi rescaling. +Compact-test Fubini evaluates its genuine nested contour coefficients. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory +open scoped BigOperators + +/-- Spatial moment phase given by `(-Complex.I) ^ (∑ j, α j) / ∏ j, ((α j).factorial : ℂ)`. -/ +noncomputable def spatialMomentPhase (α : Fin 3 → ℕ) : ℂ := + (-Complex.I) ^ (∑ j, α j) / ∏ j, ((α j).factorial : ℂ) + +theorem spatialMomentPhase_ne_zero (α : Fin 3 → ℕ) : spatialMomentPhase α ≠ 0 := by + unfold spatialMomentPhase + exact div_ne_zero (pow_ne_zero _ (neg_ne_zero.mpr Complex.I_ne_zero)) + (Finset.prod_ne_zero_iff.mpr fun j _ => Nat.cast_ne_zero.mpr (α j).factorial_ne_zero) + +theorem spatialFourier_phase_sum (z : Fin 3 → ℂ) (x : EuclideanSpace ℝ (Fin 3)) : + -(Complex.I * spatialDot z (fun j => (x j : ℂ))) = + ∑ j, (-Complex.I * (x j : ℂ)) * z j := by + rw [spatialDot, Finset.mul_sum, ← Finset.sum_neg_distrib] + apply Finset.sum_congr rfl + intro j _ + ring + +theorem polydiscCoefficient_spatialFourier_kernel {R : ℝ} (hR : 0 < R) + (α : Fin 3 → ℕ) (x : EuclideanSpace ℝ (Fin 3)) : + polydiscCoefficient 3 R + (fun z => Complex.exp (-(Complex.I * spatialDot z (fun j => (x j : ℂ))))) α = + spatialMomentPhase α * spatialMonomial α x := by + simp_rw [spatialFourier_phase_sum] + rw [polydiscCoefficient_exp_sum 3 hR] + simp only [mul_pow, Finset.prod_div_distrib, Finset.prod_mul_distrib, + Finset.prod_pow_eq_pow_sum, spatialMomentPhase, spatialMonomial] + ring + +theorem polydiscCoefficient_complexSpatialFourier {R : ℝ} (hR : 0 < R) + (f : SpatialTestFunction) (α : Fin 3 → ℕ) : + polydiscCoefficient 3 R (complexSpatialFourier f) α = + spatialMomentPhase α * spatialTestMoment f α := by + have hK : Continuous (fun y : (Fin 3 → ℂ) × EuclideanSpace ℝ (Fin 3) => + Complex.exp (-(Complex.I * spatialDot y.1 (fun j => (y.2 j : ℂ))))) := by + unfold spatialDot + fun_prop + have hfc : HasCompactSupport (fun x => (f.1 x : ℂ)) := + f.2.2.comp_left (g := fun r : ℝ => (r : ℂ)) (by simp) + change polydiscCoefficient 3 R + (fun z => ∫ x, Complex.exp (-(Complex.I * spatialDot z (fun j => (x j : ℂ)))) * + (f.1 x : ℂ)) α = _ + have hIntegral := polydiscCoefficient_compact_integral 3 hR _ hK + (fun x => (f.1 x : ℂ)) + (show Continuous (fun x => (f.1 x : ℂ)) from + Complex.continuous_ofReal.comp f.2.1.continuous) hfc + (continuous_complexSpatialFourier f) α + change polydiscCoefficient 3 R + (fun z => ∫ x, Complex.exp (-(Complex.I * spatialDot z (fun j => (x j : ℂ)))) * + (f.1 x : ℂ)) α = _ at hIntegral + rw [hIntegral] + simp_rw [polydiscCoefficient_spatialFourier_kernel hR, mul_assoc] + exact integral_const_mul _ _ + +theorem spatialMomentPhase_norm (α : Fin 3 → ℕ) : + ‖spatialMomentPhase α‖ = (∏ j, ((α j).factorial : ℝ))⁻¹ := by + simp [spatialMomentPhase, norm_prod, norm_pow] + +theorem spatialMomentPhase_norm_cancel (α : Fin 3 → ℕ) (a : ℂ) : + (∏ j, ((α j).factorial : ℝ)) * ‖spatialMomentPhase α * a‖ = ‖a‖ := by + have hfac : (∏ j, ((α j).factorial : ℝ)) ≠ 0 := + Finset.prod_ne_zero_iff.mpr fun j _ => Nat.cast_ne_zero.mpr (α j).factorial_ne_zero + rw [norm_mul, spatialMomentPhase_norm, ← mul_assoc, mul_inv_cancel₀ hfac, one_mul] + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +theorem polydiscCoefficient_complexSourceFieldFourier {R : ℝ} (hR : 0 < R) + (x : ComplexSourceTestSpace hm U) (α : Fin 3 → ℕ) : + polydiscCoefficient 3 R (fun z => complexSourceFieldFourier hm U z x) α = + spatialMomentPhase α * (spatialTestMoment x.re.1.1 α + + Complex.I * spatialTestMoment x.im.1.1 α) := by + simp only [complexSourceFieldFourier_apply] + rw [polydiscCoefficient_add_of_continuous 3 hR _ _ + (continuous_complexSpatialFourier _) ((continuous_complexSpatialFourier _).const_mul _), + polydiscCoefficient_const_mul, polydiscCoefficient_complexSpatialFourier hR, + polydiscCoefficient_complexSpatialFourier hR] + ring + +theorem polydiscCoefficient_complexSourceMomentumFourier {R : ℝ} (hR : 0 < R) + (x : ComplexSourceTestSpace hm U) (α : Fin 3 → ℕ) : + polydiscCoefficient 3 R (fun z => complexSourceMomentumFourier hm U z x) α = + spatialMomentPhase α * (spatialTestMoment x.re.1.2 α + + Complex.I * spatialTestMoment x.im.1.2 α) := by + simp only [complexSourceMomentumFourier_apply] + rw [polydiscCoefficient_add_of_continuous 3 hR _ _ + (continuous_complexSpatialFourier _) ((continuous_complexSpatialFourier _).const_mul _), + polydiscCoefficient_const_mul, polydiscCoefficient_complexSpatialFourier hR, + polydiscCoefficient_complexSpatialFourier hR] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialFourierSlice.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialFourierSlice.lean new file mode 100644 index 0000000000..732a23a7e5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialFourierSlice.lean @@ -0,0 +1,57 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CompactLaplace +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDilation + +/-! +# Entire slices of the literal spatial Fourier transform + +The real axis of this entire function is exactly `spatialFourier f (p + t a)` +in the manuscript's unnormalized Fourier convention. This constructs the +analytic function used in the odd-order argument for compact test sources. +-/ + +@[expose] public section + +open scoped InnerProductSpace +open MeasureTheory + +namespace VacuumBellSeparation + +/-- Spatial Fourier slice. -/ +noncomputable def spatialFourierSlice (f : SpatialTestFunction) + (p a : EuclideanSpace ℝ (Fin 3)) : ℂ → ℂ := + compactExpTransform (fun x => -(Complex.I * (⟪a, x⟫_ℝ : ℂ))) + (fun x => Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ))) * (f.1 x : ℂ)) + +theorem analyticOnNhd_spatialFourierSlice (f : SpatialTestFunction) + (p a : EuclideanSpace ℝ (Fin 3)) : + AnalyticOnNhd ℂ (spatialFourierSlice f p a) Set.univ := by + apply analyticOnNhd_compactExpTransform + · exact (continuous_const.mul + (Complex.continuous_ofReal.comp (continuous_const.inner continuous_id))).neg + · exact (Complex.continuous_exp.comp + (continuous_const.mul (Complex.continuous_ofReal.comp + (continuous_const.inner continuous_id))).neg).mul + (Complex.continuous_ofReal.comp f.2.1.continuous) + · exact (f.2.2.comp_left Complex.ofReal_zero).mul_left + +theorem spatialFourierSlice_ofReal (f : SpatialTestFunction) + (p a : EuclideanSpace ℝ (Fin 3)) (t : ℝ) : + spatialFourierSlice f p a (t : ℂ) = spatialFourier f (p + t • a) := by + unfold spatialFourierSlice compactExpTransform spatialFourier + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + dsimp only + rw [← mul_assoc, ← Complex.exp_add, inner_add_left, real_inner_smul_left] + congr 2 + push_cast + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatBoundary.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatBoundary.lean new file mode 100644 index 0000000000..6417394dac --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatBoundary.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatTimeDerivative +public import Mathlib.Analysis.SpecialFunctions.Pow.Asymptotics + +/-! +# Vanishing boundary terms for the separated heat pairing + +The original Fourier pairing has a linear difference bound at time zero. +Disjoint test supports make its value at zero vanish by Parseval. Thus +the singular half-power primitive tends to zero at both endpoints. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set Filter +open scoped ComplexConjugate Topology + +theorem spatialHeatFourierPairing_sub_zero_norm_le {t : ℝ} (ht : 0 ≤ t) + (f g : SpatialTestFunction) : + ‖spatialHeatFourierPairing f g t - spatialHeatFourierPairing f g 0‖ ≤ + t * ∫ p : EuclideanSpace ℝ (Fin 3), + (‖p‖ ^ 2 * ‖spatialFourier f p‖) * ‖spatialFourier g p‖ := by + unfold spatialHeatFourierPairing + rw [← integral_sub (integrable_spatialHeatFourier_pairing ht f g) + (integrable_spatialHeatFourier_pairing le_rfl f g), ← integral_const_mul] + apply norm_integral_le_of_norm_le + ((integrable_pow_norm_spatialFourier_product f g 2).const_mul t) + refine Eventually.of_forall (fun p => ?_) + simp only [neg_zero, zero_mul, Real.exp_zero, Complex.ofReal_one, one_mul] + rw [← sub_one_mul, norm_mul, ← Complex.ofReal_one, ← Complex.ofReal_sub, + Complex.norm_real, Real.norm_eq_abs] + have he : Real.exp (-t * ‖p‖ ^ 2) ≤ 1 := + Real.exp_le_one_iff.mpr (mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr ht) (sq_nonneg _)) + rw [abs_of_nonpos (sub_nonpos.mpr he), norm_mul, Complex.norm_conj] + have hb : -(Real.exp (-t * ‖p‖ ^ 2) - 1) ≤ t * ‖p‖ ^ 2 := by + linarith [Real.add_one_le_exp (-t * ‖p‖ ^ 2)] + calc + _ ≤ (t * ‖p‖ ^ 2) * (‖spatialFourier f p‖ * ‖spatialFourier g p‖) := + mul_le_mul_of_nonneg_right hb (by positivity) + _ = _ := by ring + +/-- Spatial heat mass primitive. -/ +noncomputable def spatialHeatMassPrimitive (m : ℝ) (f g : SpatialTestFunction) (t : ℝ) : ℂ := + ((t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ) * + spatialHeatFourierPairing f g t + +theorem spatialHeatMassPrimitive_norm_le (m : ℝ) {t : ℝ} (ht : 0 < t) + (f g : SpatialTestFunction) : + ‖spatialHeatMassPrimitive m f g t‖ ≤ + (t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t)) * + ∫ p : EuclideanSpace ℝ (Fin 3), ‖conj (spatialFourier f p) * spatialFourier g p‖ := by + rw [spatialHeatMassPrimitive, norm_mul, Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (by positivity)] + exact mul_le_mul_of_nonneg_left (spatialHeatFourierPairing_norm_le ht.le f g) (by positivity) + +theorem spatialHeatMassPrimitive_norm_le_at_zero (m : ℝ) {t d : ℝ} + (ht : 0 < t) (hd : 0 < d) (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + ‖spatialHeatMassPrimitive m f g t‖ ≤ + t ^ (1 / 2 : ℝ) * ∫ p : EuclideanSpace ℝ (Fin 3), + (‖p‖ ^ 2 * ‖spatialFourier f p‖) * ‖spatialFourier g p‖ := by + have hC := spatialHeatFourierPairing_sub_zero_norm_le ht.le f g + rw [spatialHeatFourierPairing_zero_of_separated hd f g hsep, sub_zero] at hC + have he : Real.exp (-(m ^ 2) * t) ≤ 1 := + Real.exp_le_one_iff.mpr (mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr (sq_nonneg m)) ht.le) + have hpower : t ^ (-(1 / 2 : ℝ)) * t = t ^ (1 / 2 : ℝ) := by + calc + _ = t ^ (-(1 / 2 : ℝ)) * t ^ (1 : ℝ) := by rw [Real.rpow_one] + _ = t ^ (-(1 / 2 : ℝ) + 1) := (Real.rpow_add ht _ _).symm + _ = _ := by norm_num + rw [spatialHeatMassPrimitive, norm_mul, Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (by positivity)] + calc + _ ≤ t ^ (-(1 / 2 : ℝ)) * ‖spatialHeatFourierPairing f g t‖ := by + apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) + exact mul_le_of_le_one_right (Real.rpow_nonneg ht.le _) he + _ ≤ t ^ (-(1 / 2 : ℝ)) * (t * ∫ p : EuclideanSpace ℝ (Fin 3), + (‖p‖ ^ 2 * ‖spatialFourier f p‖) * ‖spatialFourier g p‖) := + mul_le_mul_of_nonneg_left hC (Real.rpow_nonneg ht.le _) + _ = _ := by rw [← mul_assoc, hpower] + +theorem spatialHeatMassPrimitive_tendsto_zero_right (m : ℝ) {d : ℝ} (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + Tendsto (spatialHeatMassPrimitive m f g) (𝓝[>] (0 : ℝ)) (𝓝 0) := by + have hp : Tendsto (fun t : ℝ => t ^ (1 / 2 : ℝ)) (𝓝[>] 0) (𝓝 0) := by + simpa only [Real.zero_rpow (by norm_num : (1 / 2 : ℝ) ≠ 0)] using + (Real.continuousAt_rpow_const 0 (1 / 2 : ℝ) (Or.inr (by positivity))).tendsto.mono_left + nhdsWithin_le_nhds + apply squeeze_zero_norm' _ (by simpa only [zero_mul] using + (hp.mul_const (∫ p : EuclideanSpace ℝ (Fin 3), + (‖p‖ ^ 2 * ‖spatialFourier f p‖) * ‖spatialFourier g p‖))) + filter_upwards [self_mem_nhdsWithin] with t ht + exact spatialHeatMassPrimitive_norm_le_at_zero m ht hd f g hsep + +theorem spatialHeatMassPrimitive_tendsto_zero_atTop {m : ℝ} (hm : 0 < m) + (f g : SpatialTestFunction) : + Tendsto (spatialHeatMassPrimitive m f g) atTop (𝓝 0) := by + have hp := tendsto_rpow_mul_exp_neg_mul_atTop_nhds_zero (-(1 / 2 : ℝ)) + (m ^ 2) (by positivity) + apply squeeze_zero_norm' _ (by simpa only [zero_mul] using + (hp.mul_const (∫ p : EuclideanSpace ℝ (Fin 3), ‖conj + (spatialFourier f p) * spatialFourier g p‖))) + filter_upwards [eventually_gt_atTop (0 : ℝ)] with t ht + exact spatialHeatMassPrimitive_norm_le m ht f g + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatConvolution.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatConvolution.lean new file mode 100644 index 0000000000..1deb733870 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatConvolution.lean @@ -0,0 +1,129 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatFourierKernel +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroGram + +/-! +# Actual Gaussian convolution of two spatial Fourier tests + +The full momentum/position joint integral is absolutely convergent. +Fubini and the proved normalized Gaussian transform identify the fixed +positive-time pairing with the actual spatial heat kernel. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace ComplexConjugate + +/-- Spatial heat joint. -/ +noncomputable def spatialHeatJoint (t : ℝ) (f g : SpatialTestFunction) + (q : EuclideanSpace ℝ (Fin 3) × + (EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3))) : ℂ := + Complex.exp (-(t : ℂ) * (‖q.1‖ : ℂ) ^ 2 + + Complex.I * (inner ℝ (q.2.1 - q.2.2) q.1 : ℂ)) * (f.1 q.2.1 : ℂ) * (g.1 q.2.2 : ℂ) + +theorem norm_spatialHeatJoint (t : ℝ) (f g : SpatialTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) : + ‖spatialHeatJoint t f g (p, xy)‖ = + Real.exp (-t * ‖p‖ ^ 2) * (‖f.1 xy.1‖ * ‖g.1 xy.2‖) := by + simp only [spatialHeatJoint, norm_mul, Complex.norm_exp, Complex.norm_real, + Complex.add_re, Complex.neg_re, Complex.neg_im, Complex.mul_re, Complex.mul_im, + Complex.ofReal_re, Complex.ofReal_im, + Complex.I_re, Complex.I_im, pow_two, mul_zero, zero_mul, sub_zero, + add_zero, mul_assoc] + +theorem integrable_spatialHeatJoint {t : ℝ} (ht : 0 < t) (f g : SpatialTestFunction) : + Integrable (spatialHeatJoint t f g) (volume.prod (volume.prod volume)) := by + have hf : Integrable f.1 := f.2.1.continuous.integrable_of_hasCompactSupport f.2.2 + have hg : Integrable g.1 := g.2.1.continuous.integrable_of_hasCompactSupport g.2.2 + have hh : Integrable (fun p : EuclideanSpace ℝ (Fin 3) => Real.exp (-t * ‖p‖ ^ 2)) := by + simpa only [inner_zero_left, Complex.ofReal_zero, mul_zero, add_zero, + Complex.norm_exp, Complex.mul_re, Complex.mul_im, Complex.neg_re, Complex.neg_im, + Complex.ofReal_re, + Complex.ofReal_im, pow_two, zero_mul, mul_zero, sub_zero] using + (integrable_spatialHeatFourierIntegrand ht 0).norm + apply (hh.mul_prod (hf.norm.mul_prod hg.norm)).mono' + · exact (show Continuous (spatialHeatJoint t f g) by + unfold spatialHeatJoint + have hfc := f.2.1.continuous + have hgc := g.2.1.continuous + fun_prop).aestronglyMeasurable + · exact Filter.Eventually.of_forall (fun q => (norm_spatialHeatJoint t f g q.1 q.2).le) + +theorem spatialHeatJoint_factor (t : ℝ) (f g : SpatialTestFunction) + (p x y : EuclideanSpace ℝ (Fin 3)) : + spatialHeatJoint t f g (p, (x, y)) = (Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + ((Complex.exp (-(Complex.I * (inner ℝ (-p) x : ℂ))) * (f.1 x : ℂ)) * + (Complex.exp (-(Complex.I * (inner ℝ p y : ℂ))) * (g.1 y : ℂ))) := by + unfold spatialHeatJoint + rw [Complex.ofReal_exp] + have he : -(t : ℂ) * (‖p‖ : ℂ) ^ 2 + Complex.I * (inner ℝ (x - y) p : ℂ) = + ((-t * ‖p‖ ^ 2 : ℝ) : ℂ) - Complex.I * (inner ℝ (-p) x : ℂ) - + Complex.I * (inner ℝ p y : ℂ) := by + rw [inner_sub_left, inner_neg_left, real_inner_comm x p, real_inner_comm y p] + push_cast + ring + rw [he, Complex.exp_sub, Complex.exp_sub] + simp only [Complex.exp_neg] + ring + +theorem integral_spatialHeatJoint_positions (t : ℝ) (f g : SpatialTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + (∫ xy, spatialHeatJoint t f g (p, xy) ∂volume.prod volume) = + (Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p) := by + have he (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) : + spatialHeatJoint t f g (p, xy) = (Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + ((Complex.exp (-(Complex.I * (inner ℝ (-p) xy.1 : ℂ))) * (f.1 xy.1 : ℂ)) * + (Complex.exp (-(Complex.I * (inner ℝ p xy.2 : ℂ))) * (g.1 xy.2 : ℂ))) := + spatialHeatJoint_factor t f g p xy.1 xy.2 + simp_rw [he] + rw [integral_const_mul, integral_prod_mul + (fun x : EuclideanSpace ℝ (Fin 3) => + Complex.exp (-(Complex.I * (inner ℝ (-p) x : ℂ))) * (f.1 x : ℂ)) + (fun y : EuclideanSpace ℝ (Fin 3) => + Complex.exp (-(Complex.I * (inner ℝ p y : ℂ))) * (g.1 y : ℂ))] + change _ * (spatialFourier f (-p) * spatialFourier g p) = _ + rw [spatialFourier_neg] + +theorem integral_spatialHeatJoint_momentum {t : ℝ} (ht : 0 < t) (f g : SpatialTestFunction) + (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) : + (∫ p : EuclideanSpace ℝ (Fin 3), spatialHeatJoint t f g (p, xy)) = + (((2 * Real.pi) ^ 3 : ℝ) : ℂ) * (spatialHeatKernel t (xy.1 - xy.2) : ℂ) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) := by + simp only [spatialHeatJoint] + rw [integral_mul_const, integral_mul_const, integral_spatialHeatFourierIntegrand ht] + simp only [spatialHeatKernel, Complex.ofReal_mul, Complex.ofReal_div] + field_simp [Real.pi_ne_zero] + +theorem spatialFourier_heat_convolution {t : ℝ} (ht : 0 < t) (f g : SpatialTestFunction) : + (((2 * Real.pi) ^ 3 : ℝ) : ℂ)⁻¹ * + (∫ p : EuclideanSpace ℝ (Fin 3), (Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p)) = + ∫ xy, (spatialHeatKernel t (xy.1 - xy.2) : ℂ) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) ∂volume.prod volume := by + have hj := integrable_spatialHeatJoint ht f g + calc + _ = (((2 * Real.pi) ^ 3 : ℝ) : ℂ)⁻¹ * + ∫ p : EuclideanSpace ℝ (Fin 3), ∫ xy, spatialHeatJoint t f g (p, + xy) ∂volume.prod volume := by + simp_rw [integral_spatialHeatJoint_positions] + _ = (((2 * Real.pi) ^ 3 : ℝ) : ℂ)⁻¹ * + ∫ xy, (∫ p : EuclideanSpace ℝ (Fin 3), spatialHeatJoint t f g (p, + xy)) ∂volume.prod volume := by + rw [integral_integral_swap (f := fun p xy => spatialHeatJoint t f g (p, xy)) hj] + _ = _ := by + simp_rw [integral_spatialHeatJoint_momentum ht, mul_assoc] + rw [integral_const_mul, ← mul_assoc, + inv_mul_cancel₀ (by exact_mod_cast (show (2 * Real.pi) ^ 3 ≠ 0 by positivity)), one_mul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatFourierFubini.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatFourierFubini.lean new file mode 100644 index 0000000000..be49a54bcb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatFourierFubini.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatSubordination +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFourier + +/-! +# Genuine heat-parameter Fubini for the reciprocal-energy Fourier pairing + +A product of the integrable mass-only Gamma weight and the absolute +Fourier pairing dominates the actual joint integrand. This discharges +the first interchange in the heat-kernel covariance proof. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory Set +open scoped ComplexConjugate + +/-- Reciprocal energy heat pairing given by `((tp.1 ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2 + ‖tp.2‖ ^ +2) * tp.1) : ℝ) : ℂ) * g tp.2`. -/ +noncomputable def reciprocalEnergyHeatPairing (m : ℝ) + (g : EuclideanSpace ℝ (Fin 3) → ℂ) (tp : ℝ × EuclideanSpace ℝ (Fin 3)) : ℂ := + ((tp.1 ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2 + ‖tp.2‖ ^ 2) * tp.1) : ℝ) : ℂ) * g tp.2 + +theorem integrable_reciprocalEnergyHeatPairing {m : ℝ} (hm : 0 < m) + {g : EuclideanSpace ℝ (Fin 3) → ℂ} (hgc : Continuous g) (hgi : Integrable g) : + Integrable (reciprocalEnergyHeatPairing m g) + ((volume.restrict (Ioi (0 : ℝ))).prod volume) := by + have ht : IntegrableOn (fun t : ℝ => t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t)) + (Ioi 0) := integrableOn_laplace_rpow (by positivity) (by norm_num) + have hmajor := ht.mul_prod hgi.norm + apply hmajor.mono' + · exact (show Measurable (reciprocalEnergyHeatPairing m g) by + unfold reciprocalEnergyHeatPairing + have hg := hgc.measurable + fun_prop).aestronglyMeasurable + · have htpos : ∀ᵐ tp : ℝ × EuclideanSpace ℝ (Fin 3) + ∂((volume.restrict (Ioi (0 : ℝ))).prod volume), 0 < tp.1 := by + apply (Measure.ae_prod_iff_ae_ae (by measurability)).mpr + filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + exact Filter.Eventually.of_forall (fun _ => ht) + filter_upwards [htpos] with tp htp + have htexp : Real.exp (-(m ^ 2 + ‖tp.2‖ ^ 2) * tp.1) ≤ Real.exp (-(m ^ 2) * tp.1) := by + apply Real.exp_le_exp.mpr + have hsq := mul_nonneg (sq_nonneg ‖tp.2‖) htp.le + nlinarith + simp only [reciprocalEnergyHeatPairing, norm_mul, Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (Real.rpow_nonneg htp.le _), abs_of_pos (Real.exp_pos _)] + exact mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_left htexp (Real.rpow_nonneg htp.le _)) (norm_nonneg _) + +theorem reciprocal_dispersion_integral_heat {m : ℝ} (hm : 0 < m) + {g : EuclideanSpace ℝ (Fin 3) → ℂ} (hgc : Continuous g) (hgi : Integrable g) : + (∫ p : EuclideanSpace ℝ (Fin 3), ((dispersion m p)⁻¹ : ℝ) * g p) = + ((Real.sqrt Real.pi)⁻¹ : ℂ) * + ∫ t in Ioi (0 : ℝ), ∫ p : EuclideanSpace ℝ (Fin 3), + reciprocalEnergyHeatPairing m g (t, p) := by + have hj := integrable_reciprocalEnergyHeatPairing hm hgc hgi + calc + _ = ((Real.sqrt Real.pi)⁻¹ : ℂ) * + ∫ p : EuclideanSpace ℝ (Fin 3), ∫ t in Ioi (0 : ℝ), + reciprocalEnergyHeatPairing m g (t, p) := by + rw [← integral_const_mul] + apply integral_congr_ae + refine Filter.Eventually.of_forall (fun p => ?_) + simp only [reciprocalEnergyHeatPairing] + rw [integral_mul_const, integral_complex_ofReal, reciprocal_dispersion_heat hm] + push_cast + ring + _ = _ := by + congr 1 + exact (integral_integral_swap (f := fun t p => reciprocalEnergyHeatPairing m g (t, + p)) hj).symm + +theorem reciprocal_dispersion_integral_heat_separated {m : ℝ} (hm : 0 < m) + {g : EuclideanSpace ℝ (Fin 3) → ℂ} (hgc : Continuous g) (hgi : Integrable g) : + (∫ p : EuclideanSpace ℝ (Fin 3), ((dispersion m p)⁻¹ : ℝ) * g p) = + ((Real.sqrt Real.pi)⁻¹ : ℂ) * + ∫ t in Ioi (0 : ℝ), + ((t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ) * + ∫ p : EuclideanSpace ℝ (Fin 3), (Real.exp (-t * ‖p‖ ^ 2) : ℂ) * g p := by + rw [reciprocal_dispersion_integral_heat hm hgc hgi] + congr 1 + apply integral_congr_ae + refine Filter.Eventually.of_forall (fun t => ?_) + dsimp only + rw [← integral_const_mul] + apply integral_congr_ae + refine Filter.Eventually.of_forall (fun p => ?_) + simp only [reciprocalEnergyHeatPairing] + rw [show -(m ^ 2 + ‖p‖ ^ 2) * t = -(m ^ 2) * t + -t * ‖p‖ ^ 2 by ring, Real.exp_add] + push_cast + ring + +theorem spatialFourier_reciprocal_energy_heat {m : ℝ} (hm : 0 < m) + (f g : SpatialTestFunction) : + (∫ p : EuclideanSpace ℝ (Fin 3), ((dispersion m p)⁻¹ : ℝ) * + (conj (spatialFourier f p) * spatialFourier g p)) = + ((Real.sqrt Real.pi)⁻¹ : ℂ) * + ∫ t in Ioi (0 : ℝ), + ((t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ) * + ∫ p : EuclideanSpace ℝ (Fin 3), (Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p) := + reciprocal_dispersion_integral_heat_separated hm + ((continuous_spatialFourier f).star.mul (continuous_spatialFourier g)) + (integrable_spatialFourier_product f g) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatFourierKernel.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatFourierKernel.lean new file mode 100644 index 0000000000..e01eaf4e0f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatFourierKernel.lean @@ -0,0 +1,124 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatSubordination +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselHeatParameter + +/-! +# The actual scalar Fourier transform of the spatial heat multiplier + +This uses the source phase exp(i p.w), and its exact (2π)^(-3) +normalization. The heat/Bessel scalar identity is compatible with the +reciprocal-energy Gamma factor. Exchanges with source tests are proved in other modules +(`spatialFourier_heat_convolution` in `FreeField/SpatialHeatConvolution.lean`; for tests with +separated supports, `spatialFourier_field_covariance_kernel` in +`FreeField/SpatialFieldCovarianceKernel.lean`). +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory Set +open scoped InnerProductSpace + +theorem integrable_spatialHeatFourierIntegrand {t : ℝ} (ht : 0 < t) + (w : EuclideanSpace ℝ (Fin 3)) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => + Complex.exp (-(t : ℂ) * (‖p‖ : ℂ) ^ 2 + Complex.I * (inner ℝ w p : ℂ))) := + GaussianFourier.integrable_cexp_neg_mul_sq_norm_add + (show 0 < (t : ℂ).re from ht) Complex.I w + +theorem integral_spatialHeatFourierIntegrand {t : ℝ} (ht : 0 < t) + (w : EuclideanSpace ℝ (Fin 3)) : + (∫ p : EuclideanSpace ℝ (Fin 3), + Complex.exp (-(t : ℂ) * (‖p‖ : ℂ) ^ 2 + Complex.I * (inner ℝ w p : ℂ))) = + (((Real.pi / t) ^ (3 / 2 : ℝ) * Real.exp (-‖w‖ ^ 2 / (4 * t)) : ℝ) : ℂ) := by + rw [GaussianFourier.integral_cexp_neg_mul_sq_norm_add + (show 0 < (t : ℂ).re from ht) Complex.I w] + simp only [finrank_euclideanSpace_fin, Nat.cast_ofNat, Complex.I_sq, neg_one_mul] + rw [Complex.ofReal_mul, Complex.ofReal_cpow (by positivity)] + push_cast + rfl + +/-- Three-dimensional Gaussian heat kernel in the Fourier normalization used for the source +covariance. -/ +noncomputable def spatialHeatKernel (t : ℝ) (w : EuclideanSpace ℝ (Fin 3)) : ℝ := + (Real.pi / t) ^ (3 / 2 : ℝ) / (2 * Real.pi) ^ 3 * Real.exp (-‖w‖ ^ 2 / (4 * t)) + +theorem spatialHeatKernel_fourier {t : ℝ} (ht : 0 < t) + (w : EuclideanSpace ℝ (Fin 3)) : + (spatialHeatKernel t w : ℂ) = (((2 * Real.pi) ^ 3 : ℝ) : ℂ)⁻¹ * + ∫ p : EuclideanSpace ℝ (Fin 3), + Complex.exp (-(t : ℂ) * (‖p‖ : ℂ) ^ 2 + Complex.I * (inner ℝ w p : ℂ)) := by + rw [integral_spatialHeatFourierIntegrand ht] + simp only [spatialHeatKernel, Complex.ofReal_mul, Complex.ofReal_div] + ring + +theorem spatialHeatKernel_nonneg {t : ℝ} (ht : 0 < t) + (w : EuclideanSpace ℝ (Fin 3)) : 0 ≤ spatialHeatKernel t w := by + unfold spatialHeatKernel + positivity + +theorem heat_subordination_prefactor {t : ℝ} (ht : 0 < t) : + (1 / (2 * Real.sqrt Real.pi)) * t ^ (-(1 / 2 : ℝ)) * + ((Real.pi / t) ^ (3 / 2 : ℝ) / (2 * Real.pi) ^ 3) = + (1 / (16 * Real.pi ^ 2)) * t ^ (-2 : ℤ) := by + have hpow : (Real.pi / t) ^ (3 / 2 : ℝ) = + (Real.pi / t) * Real.sqrt (Real.pi / t) := by + rw [show (3 / 2 : ℝ) = 1 + 1 / 2 by norm_num, + Real.rpow_add (by positivity), Real.rpow_one, ← Real.sqrt_eq_rpow] + rw [hpow, Real.rpow_neg ht.le, ← Real.sqrt_eq_rpow, + Real.sqrt_div Real.pi_pos.le, zpow_neg, zpow_ofNat] + field_simp [ht.ne', Real.pi_ne_zero, ne_of_gt (Real.sqrt_pos.mpr ht), + ne_of_gt (Real.sqrt_pos.mpr Real.pi_pos)] + ring_nf + rw [Real.sq_sqrt ht.le] + +theorem spatialHeat_subordination_integrand {μ t : ℝ} (ht : 0 < t) + (w : EuclideanSpace ℝ (Fin 3)) : + (1 / (2 * Real.sqrt Real.pi)) * + (t ^ (-(1 / 2 : ℝ)) * Real.exp (-(μ ^ 2) * t)) * spatialHeatKernel t w = + (1 / (16 * Real.pi ^ 2)) * heatBesselIntegrand 1 μ ‖w‖ t := by + have hp := heat_subordination_prefactor ht + unfold spatialHeatKernel heatBesselIntegrand + change (1 / (2 * Real.sqrt Real.pi)) * + (t ^ (-(1 / 2 : ℝ)) * Real.exp (-(μ ^ 2) * t)) * + ((Real.pi / t) ^ (3 / 2 : ℝ) / (2 * Real.pi) ^ 3 * Real.exp (-‖w‖ ^ 2 / (4 * t))) = + (1 / (16 * Real.pi ^ 2)) * + (t ^ (-2 : ℤ) * Real.exp (-(μ ^ 2 * t) - ‖w‖ ^ 2 / (4 * t))) + rw [show -(μ ^ 2 * t) - ‖w‖ ^ 2 / (4 * t) = -(μ ^ 2) * t + -‖w‖ ^ 2 / (4 * t) by ring, + Real.exp_add] + calc + _ = ((1 / (2 * Real.sqrt Real.pi)) * t ^ (-(1 / 2 : ℝ)) * + ((Real.pi / t) ^ (3 / 2 : ℝ) / (2 * Real.pi) ^ 3)) * + (Real.exp (-(μ ^ 2) * t) * Real.exp (-‖w‖ ^ 2 / (4 * t))) := by ring + _ = _ := by rw [hp]; ring + +theorem spatialHeat_integral_eq_fieldBessel {μ : ℝ} (hμ : 0 < μ) + (w : EuclideanSpace ℝ (Fin 3)) (hw : w ≠ 0) : + (∫ t in Ioi (0 : ℝ), (1 / (2 * Real.sqrt Real.pi)) * + (t ^ (-(1 / 2 : ℝ)) * Real.exp (-(μ ^ 2) * t)) * spatialHeatKernel t w) = + μ / (4 * Real.pi ^ 2 * ‖w‖) * besselKReal 1 (μ * ‖w‖) := by + have heq : (∫ t in Ioi (0 : ℝ), (1 / (2 * Real.sqrt Real.pi)) * + (t ^ (-(1 / 2 : ℝ)) * Real.exp (-(μ ^ 2) * t)) * spatialHeatKernel t w) = + ∫ t in Ioi (0 : ℝ), (1 / (16 * Real.pi ^ 2)) * heatBesselIntegrand 1 μ ‖w‖ t := + setIntegral_congr_fun measurableSet_Ioi + (fun t ht => spatialHeat_subordination_integrand (μ := μ) ht w) + rw [heq, integral_const_mul, heatFieldKernel_eq_bessel hμ (norm_pos_iff.mpr hw)] + +theorem integrableOn_spatialHeat_subordination {μ : ℝ} (hμ : 0 < μ) + (w : EuclideanSpace ℝ (Fin 3)) (hw : w ≠ 0) : + IntegrableOn (fun t : ℝ => (1 / (2 * Real.sqrt Real.pi)) * + (t ^ (-(1 / 2 : ℝ)) * Real.exp (-(μ ^ 2) * t)) * spatialHeatKernel t w) (Ioi 0) := by + apply ((integrableOn_heatBesselIntegrand 1 hμ (norm_pos_iff.mpr hw)).const_mul + (1 / (16 * Real.pi ^ 2))).congr + filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + exact (spatialHeat_subordination_integrand (μ := μ) ht w).symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatIntegrationByParts.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatIntegrationByParts.lean new file mode 100644 index 0000000000..37a5cb21fc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatIntegrationByParts.lean @@ -0,0 +1,122 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatTimeIntegrability +public import Mathlib.MeasureTheory.Integral.IntegralEqImproper + +/-! +# Actual heat-time integration by parts for separated tests + +Both boundary limits and all terms' absolute convergence are proved in +the preceding modules. This gives the negative three-halves heat weight +needed for the momentum covariance kernel. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set Filter +open scoped ComplexConjugate Topology + +/-- Spatial heat mass weight given by `((t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ)`. -/ +noncomputable def spatialHeatMassWeight (m t : ℝ) : ℂ := + ((t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ) + +/-- Spatial heat mass weight derivative. -/ +noncomputable def spatialHeatMassWeightDerivative (m t : ℝ) : ℂ := + ((-(1 / 2 : ℝ) * (t ^ (-(3 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t)) - + m ^ 2 * (t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t)) : ℝ) : ℂ) + +theorem hasDerivAt_spatialHeatMassWeight (m : ℝ) {t : ℝ} (ht : 0 < t) : + HasDerivAt (spatialHeatMassWeight m) (spatialHeatMassWeightDerivative m t) t := by + have hp := Real.hasDerivAt_rpow_const (p := -(1 / 2 : ℝ)) (Or.inl ht.ne') + have he := ((hasDerivAt_id t).const_mul (-(m ^ 2))).exp + have h := (hp.mul he).ofReal_comp + convert h using 1 + · rfl + · simp only [spatialHeatMassWeightDerivative, + show -(1 / 2 : ℝ) - 1 = -(3 / 2 : ℝ) by norm_num, id_eq] + push_cast + ring + +theorem integrableOn_spatialHeat_weight_derivative_pairing {m d : ℝ} + (hm : 0 < m) (hd : 0 < d) (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + IntegrableOn (fun t : ℝ => spatialHeatMassWeightDerivative m t * + spatialHeatFourierPairing f g t) (Ioi 0) := by + have h1 := (integrableOn_spatialHeat_three_halves hm hd f g hsep).const_mul + (-(1 / 2 : ℂ)) + have h2 := (integrableOn_spatialHeatMassPrimitive hm f g).const_mul ((m ^ 2 : ℝ) : ℂ) + apply (h1.sub h2).congr + exact Eventually.of_forall fun t => by + simp only [Pi.sub_apply, spatialHeatMassWeightDerivative, spatialHeatMassPrimitive] + push_cast + ring + +theorem spatialHeat_weighted_derivative_integral {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + (∫ t in Ioi (0 : ℝ), spatialHeatMassWeight m t * spatialHeatFourierDerivative f g t) = + (1 / 2 : ℂ) * (∫ t in Ioi (0 : ℝ), + ((t ^ (-(3 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ) * + spatialHeatFourierPairing f g t) + + ((m ^ 2 : ℝ) : ℂ) * (∫ t in Ioi (0 : ℝ), spatialHeatMassPrimitive m f g t) := by + have h := integral_Ioi_mul_deriv_eq_deriv_mul + (u := spatialHeatMassWeight m) (u' := spatialHeatMassWeightDerivative m) + (v := spatialHeatFourierPairing f g) (v' := spatialHeatFourierDerivative f g) + (fun t ht => hasDerivAt_spatialHeatMassWeight m ht) + (fun t ht => hasDerivAt_spatialHeatFourier_pairing ht f g) + (integrableOn_spatialHeat_weighted_derivative hm f g) + (integrableOn_spatialHeat_weight_derivative_pairing hm hd f g hsep) + (spatialHeatMassPrimitive_tendsto_zero_right m hd f g hsep) + (spatialHeatMassPrimitive_tendsto_zero_atTop hm f g) + have heq : (fun t : ℝ => spatialHeatMassWeightDerivative m t * + spatialHeatFourierPairing f g t) = fun t => + (-(1 / 2 : ℂ)) * (((t ^ (-(3 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ) * + spatialHeatFourierPairing f g t) - + ((m ^ 2 : ℝ) : ℂ) * spatialHeatMassPrimitive m f g t := by + funext t + simp only [spatialHeatMassWeightDerivative, spatialHeatMassPrimitive] + push_cast + ring + rw [heq, integral_sub + ((integrableOn_spatialHeat_three_halves hm hd f g hsep).const_mul (-(1 / 2 : ℂ))) + ((integrableOn_spatialHeatMassPrimitive hm f g).const_mul ((m ^ 2 : ℝ) : ℂ)), + integral_const_mul, integral_const_mul] at h + calc + _ = _ := h + _ = _ := by ring + +theorem spatialHeat_time_integration_by_parts {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + (∫ t in Ioi (0 : ℝ), spatialHeatMassWeight m t * + (((m ^ 2 : ℝ) : ℂ) * spatialHeatFourierPairing f g t - + spatialHeatFourierDerivative f g t)) = + (-(1 / 2 : ℂ)) * ∫ t in Ioi (0 : ℝ), + ((t ^ (-(3 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ) * + spatialHeatFourierPairing f g t := by + have heq : (fun t : ℝ => spatialHeatMassWeight m t * + (((m ^ 2 : ℝ) : ℂ) * spatialHeatFourierPairing f g t - + spatialHeatFourierDerivative f g t)) = fun t => + ((m ^ 2 : ℝ) : ℂ) * spatialHeatMassPrimitive m f g t - + spatialHeatMassWeight m t * spatialHeatFourierDerivative f g t := by + funext t + unfold spatialHeatMassPrimitive spatialHeatMassWeight + ring + have hi : IntegrableOn (fun t : ℝ => + spatialHeatMassWeight m t * spatialHeatFourierDerivative f g t) (Ioi 0) := + integrableOn_spatialHeat_weighted_derivative hm f g + rw [heq, integral_sub + ((integrableOn_spatialHeatMassPrimitive hm f g).const_mul ((m ^ 2 : ℝ) : ℂ)) + hi, integral_const_mul, + spatialHeat_weighted_derivative_integral hm hd f g hsep] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatSeparatedIntegrability.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatSeparatedIntegrability.lean new file mode 100644 index 0000000000..c539313e9c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatSeparatedIntegrability.lean @@ -0,0 +1,110 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatConvolution +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatFourierFubini + +/-! +# Absolute convergence of the separated heat/spatial covariance integral + +Actual separation is used only where both original tests are nonzero. +It bounds the full joint integrand by the product of a convergent +off-diagonal heat moment and the two absolute test functions. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory Set + +/-- Separated heat pairing. -/ +noncomputable def separatedHeatPairing (m : ℝ) (f g : SpatialTestFunction) + (txy : ℝ × (EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3))) : ℂ := + (((1 / (2 * Real.sqrt Real.pi)) * + (txy.1 ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * txy.1)) * + spatialHeatKernel txy.1 (txy.2.1 - txy.2.2) : ℝ) : ℂ) * + (f.1 txy.2.1 : ℂ) * (g.1 txy.2.2 : ℂ) + +theorem heatBesselIntegrand_one_nonneg (m r : ℝ) {t : ℝ} (ht : 0 < t) : + 0 ≤ heatBesselIntegrand 1 m r t := by + unfold heatBesselIntegrand + positivity + +theorem heatBesselIntegrand_one_mono_radius (m : ℝ) {d r t : ℝ} + (hd : 0 ≤ d) (hdr : d ≤ r) (ht : 0 < t) : + heatBesselIntegrand 1 m r t ≤ heatBesselIntegrand 1 m d t := by + unfold heatBesselIntegrand + apply mul_le_mul_of_nonneg_left _ (by positivity) + apply Real.exp_le_exp.mpr + have hsq : d ^ 2 ≤ r ^ 2 := by nlinarith + have hdiv := div_le_div_of_nonneg_right hsq (show 0 ≤ 4 * t by positivity) + linarith + +theorem norm_separatedHeatPairing_le {m d : ℝ} (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) + {t : ℝ} (ht : 0 < t) + (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) : + ‖separatedHeatPairing m f g (t, xy)‖ ≤ + ((1 / (16 * Real.pi ^ 2)) * heatBesselIntegrand 1 m d t) * + (‖f.1 xy.1‖ * ‖g.1 xy.2‖) := by + simp only [separatedHeatPairing, spatialHeat_subordination_integrand ht, + norm_mul, Complex.norm_real, Real.norm_eq_abs] + rw [abs_of_nonneg (show 0 ≤ 1 / (16 * Real.pi ^ 2) by positivity), + abs_of_nonneg (heatBesselIntegrand_one_nonneg _ _ ht)] + by_cases hf : f.1 xy.1 = 0 + · simp [hf] + by_cases hg : g.1 xy.2 = 0 + · simp [hg] + have h := heatBesselIntegrand_one_mono_radius m hd.le (hsep _ _ hf hg) ht + have hc := mul_le_mul_of_nonneg_left h (show 0 ≤ 1 / (16 * Real.pi ^ 2) by positivity) + simpa only [Real.norm_eq_abs, mul_assoc] using + mul_le_mul_of_nonneg_right hc (mul_nonneg (abs_nonneg _) (abs_nonneg _)) + +theorem integrable_separatedHeatPairing {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + Integrable (separatedHeatPairing m f g) + ((volume.restrict (Ioi (0 : ℝ))).prod (volume.prod volume)) := by + have hf : Integrable f.1 := f.2.1.continuous.integrable_of_hasCompactSupport f.2.2 + have hg : Integrable g.1 := g.2.1.continuous.integrable_of_hasCompactSupport g.2.2 + have hmajor := ((integrableOn_heatBesselIntegrand 1 hm hd).const_mul + (1 / (16 * Real.pi ^ 2))).mul_prod (hf.norm.mul_prod hg.norm) + apply hmajor.mono' + · exact (show Measurable (separatedHeatPairing m f g) by + unfold separatedHeatPairing spatialHeatKernel + have hfm := f.2.1.continuous.measurable + have hgm := g.2.1.continuous.measurable + fun_prop).aestronglyMeasurable + · have htpos : ∀ᵐ txy : ℝ × (EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) + ∂((volume.restrict (Ioi (0 : ℝ))).prod (volume.prod volume)), 0 < txy.1 := by + apply (Measure.ae_prod_iff_ae_ae (by measurability)).mpr + filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + exact Filter.Eventually.of_forall (fun _ => ht) + filter_upwards [htpos] with txy ht + exact norm_separatedHeatPairing_le hd f g hsep ht txy.2 + +theorem integral_separatedHeatPairing_time {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) + (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) : + (∫ t in Ioi (0 : ℝ), separatedHeatPairing m f g (t, xy)) = + ((m / (4 * Real.pi ^ 2 * ‖xy.1 - xy.2‖) * + besselKReal 1 (m * ‖xy.1 - xy.2‖) : ℝ) : ℂ) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) := by + by_cases hf : f.1 xy.1 = 0 + · simp [separatedHeatPairing, hf] + by_cases hg : g.1 xy.2 = 0 + · simp [separatedHeatPairing, hg] + have hxy : xy.1 - xy.2 ≠ 0 := norm_pos_iff.mp (hd.trans_le (hsep _ _ hf hg)) + simp only [separatedHeatPairing] + rw [integral_mul_const, integral_mul_const, integral_complex_ofReal, + spatialHeat_integral_eq_fieldBessel hm _ hxy] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatSubordination.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatSubordination.lean new file mode 100644 index 0000000000..6e243987aa --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatSubordination.lean @@ -0,0 +1,68 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzKleinGordon +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialLaplaceMoments + +/-! +# Actual heat subordination of the reciprocal spatial energy + +The Gamma integral is identified with the literal massive Schwartz +symbol in Mathlib's normalized Fourier coordinates. No exchange with a +spatial or momentum integral is assumed here. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory Set + +theorem reciprocal_sqrt_laplace {a : ℝ} (ha : 0 < a) : + (Real.sqrt a)⁻¹ = (Real.sqrt Real.pi)⁻¹ * + ∫ t in Ioi (0 : ℝ), t ^ (-(1 / 2 : ℝ)) * Real.exp (-a * t) := by + rw [integral_laplace_rpow ha (by norm_num), + show -(1 / 2 : ℝ) + 1 = 1 / 2 by norm_num, + Real.Gamma_one_half_eq, Real.rpow_neg ha.le, ← Real.sqrt_eq_rpow] + field_simp [ne_of_gt (Real.sqrt_pos.mpr Real.pi_pos)] + +theorem integrableOn_reciprocal_energy_heat {m : ℝ} (hm : 0 < m) + (p : EuclideanSpace ℝ (Fin 3)) : + IntegrableOn (fun t : ℝ => t ^ (-(1 / 2 : ℝ)) * + Real.exp (-(m ^ 2 + ‖p‖ ^ 2) * t)) (Ioi 0) := + integrableOn_laplace_rpow (by positivity) (by norm_num) + +theorem reciprocal_dispersion_heat {m : ℝ} (hm : 0 < m) + (p : EuclideanSpace ℝ (Fin 3)) : + (dispersion m p)⁻¹ = (Real.sqrt Real.pi)⁻¹ * + ∫ t in Ioi (0 : ℝ), t ^ (-(1 / 2 : ℝ)) * + Real.exp (-(m ^ 2 + ‖p‖ ^ 2) * t) := + reciprocal_sqrt_laplace (by positivity) + +theorem massiveSchwartzSymbol_neg_one_heat {m : ℝ} (hm : 0 < m) + (ξ : EuclideanSpace ℝ (Fin 3)) : + massiveSchwartzSymbol m (-1) ξ = (Real.sqrt Real.pi)⁻¹ * + ∫ t in Ioi (0 : ℝ), t ^ (-(1 / 2 : ℝ)) * + Real.exp (-(m ^ 2 + (2 * Real.pi) ^ 2 * ‖ξ‖ ^ 2) * t) := by + rw [massiveSchwartzSymbol_neg_one hm, reciprocal_dispersion_heat hm] + simp only [norm_smul, Real.norm_eq_abs, abs_of_pos (by positivity : 0 < 2 * Real.pi), mul_pow] + +theorem reciprocal_dispersion_heat_separated {m : ℝ} (hm : 0 < m) + (p : EuclideanSpace ℝ (Fin 3)) : + (dispersion m p)⁻¹ = (Real.sqrt Real.pi)⁻¹ * + ∫ t in Ioi (0 : ℝ), (t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t)) * + Real.exp (-t * ‖p‖ ^ 2) := by + rw [reciprocal_dispersion_heat hm] + congr 1 + apply integral_congr_ae + exact Filter.Eventually.of_forall (fun t => by + dsimp only + rw [show -(m ^ 2 + ‖p‖ ^ 2) * t = -(m ^ 2) * t + -t * ‖p‖ ^ 2 by ring, + Real.exp_add, mul_assoc]) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatTimeDerivative.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatTimeDerivative.lean new file mode 100644 index 0000000000..ee710b5aaa --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatTimeDerivative.lean @@ -0,0 +1,138 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMomentumHeatSubordination +public import Mathlib.Analysis.Calculus.ParametricIntegral +public import Mathlib.Analysis.Complex.RealDeriv + +/-! +# Genuine time derivative of the spatial heat pairing + +The derivative is taken under the original momentum integral using the +integrable quadratic Fourier moment. No differentiability or boundary +condition is assumed for a putative kernel representation. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set Filter +open scoped ComplexConjugate Topology + +/-- Spatial heat Fourier pairing given by `∫ p : EuclideanSpace ℝ (Fin 3), (Real.exp (-t * ‖p‖ ^ 2) +: ℂ) * (conj (spatialFourier f p) * spatialFourier g p)`. -/ +noncomputable def spatialHeatFourierPairing (f g : SpatialTestFunction) (t : ℝ) : ℂ := + ∫ p : EuclideanSpace ℝ (Fin 3), (Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p) + +/-- Spatial heat Fourier derivative. -/ +noncomputable def spatialHeatFourierDerivative (f g : SpatialTestFunction) (t : ℝ) : ℂ := + ∫ p : EuclideanSpace ℝ (Fin 3), (-(‖p‖ ^ 2 : ℝ) : ℂ) * + ((Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p)) + +theorem integrable_spatialHeatFourier_pairing {t : ℝ} (ht : 0 ≤ t) + (f g : SpatialTestFunction) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => (Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p)) := by + apply (integrable_spatialFourier_product f g).norm.mono' + · exact (show Continuous (fun p : EuclideanSpace ℝ (Fin 3) => + (Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p)) by + have hf := continuous_spatialFourier f + have hg := continuous_spatialFourier g + fun_prop).aestronglyMeasurable + · refine Eventually.of_forall (fun p => ?_) + rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] + exact mul_le_of_le_one_left (norm_nonneg _) + (Real.exp_le_one_iff.mpr (mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr ht) (sq_nonneg _))) + +theorem spatialHeatFourier_derivative_integrand_bound {t : ℝ} (ht : 0 ≤ t) + (f g : SpatialTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + ‖(-(‖p‖ ^ 2 : ℝ) : ℂ) * ((Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p))‖ ≤ + (‖p‖ ^ 2 * ‖spatialFourier f p‖) * ‖spatialFourier g p‖ := by + simp only [norm_mul, norm_neg, Complex.norm_conj, Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (sq_nonneg ‖p‖), abs_of_pos (Real.exp_pos _)] + have he : Real.exp (-t * ‖p‖ ^ 2) ≤ 1 := Real.exp_le_one_iff.mpr + (mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr ht) (sq_nonneg _)) + calc + _ ≤ ‖p‖ ^ 2 * (1 * (‖spatialFourier f p‖ * ‖spatialFourier g p‖)) := + mul_le_mul_of_nonneg_left + (mul_le_mul_of_nonneg_right he (by positivity)) (sq_nonneg _) + _ = _ := by ring + +theorem hasDerivAt_spatialHeatFourier_pairing {t : ℝ} (ht : 0 < t) + (f g : SpatialTestFunction) : + HasDerivAt (spatialHeatFourierPairing f g) (spatialHeatFourierDerivative f g t) t := by + have hc : ∀ s : ℝ, Continuous (fun p : EuclideanSpace ℝ (Fin 3) => + (Real.exp (-s * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p)) := by + intro s + have hf := continuous_spatialFourier f + have hg := continuous_spatialFourier g + fun_prop + have hd : ∀ p : EuclideanSpace ℝ (Fin 3), ∀ s : ℝ, + HasDerivAt (fun x : ℝ => (Real.exp (-x * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p)) + ((-(‖p‖ ^ 2 : ℝ) : ℂ) * ((Real.exp (-s * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p))) s := by + intro p s + have h := (((hasDerivAt_id s).neg.mul_const (‖p‖ ^ 2)).exp.ofReal_comp).mul_const + (conj (spatialFourier f p) * spatialFourier g p) + simpa only [Pi.neg_def, id_eq, neg_one_mul, Complex.ofReal_mul, Complex.ofReal_neg, + mul_assoc, mul_comm, mul_left_comm] using h + have h := hasDerivAt_integral_of_dominated_loc_of_deriv_le + (F := fun s p => (Real.exp (-s * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p)) + (F' := fun s p => (-(‖p‖ ^ 2 : ℝ) : ℂ) * + ((Real.exp (-s * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p))) + (bound := fun p => (‖p‖ ^ 2 * ‖spatialFourier f p‖) * ‖spatialFourier g p‖) + (Ioi_mem_nhds ht) (Eventually.of_forall (fun s => (hc s).aestronglyMeasurable)) + (integrable_spatialHeatFourier_pairing ht.le f g) + (show AEStronglyMeasurable (fun p : EuclideanSpace ℝ (Fin 3) => + (-(‖p‖ ^ 2 : ℝ) : ℂ) * ((Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p))) volume from + ((Complex.continuous_ofReal.comp (continuous_norm.pow 2)).neg.mul + (hc t)).aestronglyMeasurable) + (Eventually.of_forall (fun p s hs => spatialHeatFourier_derivative_integrand_bound hs.le f g p)) + (integrable_pow_norm_spatialFourier_product f g 2) + (Eventually.of_forall (fun p s _ => hd p s)) + exact h.2 + +theorem spatialHeatFourierPairing_norm_le {t : ℝ} (ht : 0 ≤ t) + (f g : SpatialTestFunction) : + ‖spatialHeatFourierPairing f g t‖ ≤ + ∫ p : EuclideanSpace ℝ (Fin 3), ‖conj (spatialFourier f p) * spatialFourier g p‖ := by + apply norm_integral_le_of_norm_le (integrable_spatialFourier_product f g).norm + refine Eventually.of_forall (fun p => ?_) + rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_pos (Real.exp_pos _)] + exact mul_le_of_le_one_left (norm_nonneg _) (Real.exp_le_one_iff.mpr + (mul_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr ht) (sq_nonneg _))) + +theorem spatialHeatFourierPairing_zero_of_separated {d : ℝ} (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + spatialHeatFourierPairing f g 0 = 0 := by + simp only [spatialHeatFourierPairing, neg_zero, zero_mul, Real.exp_zero, + Complex.ofReal_one, one_mul] + rw [integral_spatialFourier_product] + have hfg : (fun x : EuclideanSpace ℝ (Fin 3) => (f.1 x : ℂ) * (g.1 x : ℂ)) = 0 := by + funext x + by_cases hf : f.1 x = 0 + · simp [hf] + by_cases hg : g.1 x = 0 + · simp [hg] + have h := hsep x x hf hg + simp only [sub_self, norm_zero] at h + exact (not_le_of_gt hd h).elim + rw [hfg, integral_zero', mul_zero] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatTimeIntegrability.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatTimeIntegrability.lean new file mode 100644 index 0000000000..d685a2834e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialHeatTimeIntegrability.lean @@ -0,0 +1,126 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatBoundary + +/-! +# Integrability of the actual heat-time integration-by-parts terms + +The singular three-halves weight is controlled by the actual linear +zero-time estimate for separated tests. All time integrals are therefore +absolutely convergent before integration by parts is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory Set Filter +open scoped ComplexConjugate + +theorem stronglyMeasurable_spatialHeatFourierPairing (f g : SpatialTestFunction) : + StronglyMeasurable (spatialHeatFourierPairing f g) := by + have hc : Continuous (fun tp : ℝ × EuclideanSpace ℝ (Fin 3) => + (Real.exp (-tp.1 * ‖tp.2‖ ^ 2) : ℂ) * + (conj (spatialFourier f tp.2) * spatialFourier g tp.2)) := by + have hf := continuous_spatialFourier f + have hg := continuous_spatialFourier g + fun_prop + exact hc.stronglyMeasurable.integral_prod_right' + +theorem stronglyMeasurable_spatialHeatFourierDerivative (f g : SpatialTestFunction) : + StronglyMeasurable (spatialHeatFourierDerivative f g) := by + have hc : Continuous (fun tp : ℝ × EuclideanSpace ℝ (Fin 3) => + (-(‖tp.2‖ ^ 2 : ℝ) : ℂ) * ((Real.exp (-tp.1 * ‖tp.2‖ ^ 2) : ℂ) * + (conj (spatialFourier f tp.2) * spatialFourier g tp.2))) := by + have hf := continuous_spatialFourier f + have hg := continuous_spatialFourier g + fun_prop + exact hc.stronglyMeasurable.integral_prod_right' + +theorem spatialHeatFourierDerivative_norm_le {t : ℝ} (ht : 0 ≤ t) + (f g : SpatialTestFunction) : + ‖spatialHeatFourierDerivative f g t‖ ≤ + ∫ p : EuclideanSpace ℝ (Fin 3), + (‖p‖ ^ 2 * ‖spatialFourier f p‖) * ‖spatialFourier g p‖ := + norm_integral_le_of_norm_le (integrable_pow_norm_spatialFourier_product f g 2) + (Eventually.of_forall (spatialHeatFourier_derivative_integrand_bound ht f g)) + +theorem integrableOn_spatialHeatMassPrimitive {m : ℝ} (hm : 0 < m) + (f g : SpatialTestFunction) : + IntegrableOn (spatialHeatMassPrimitive m f g) (Ioi 0) := by + have hmajor := (integrableOn_laplace_rpow (show 0 < m ^ 2 by positivity) + (show -1 < -(1 / 2 : ℝ) by norm_num)).mul_const + (∫ p : EuclideanSpace ℝ (Fin 3), ‖conj (spatialFourier f p) * spatialFourier g p‖) + apply hmajor.mono' + · exact ((show Measurable (fun t : ℝ => + ((t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ)) by + fun_prop).aestronglyMeasurable.mul + (stronglyMeasurable_spatialHeatFourierPairing f g).aestronglyMeasurable) + · filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + change 0 < t at ht + exact spatialHeatMassPrimitive_norm_le m ht f g + +theorem integrableOn_spatialHeat_weighted_derivative {m : ℝ} (hm : 0 < m) + (f g : SpatialTestFunction) : + IntegrableOn (fun t : ℝ => + ((t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ) * + spatialHeatFourierDerivative f g t) (Ioi 0) := by + have hmajor := (integrableOn_laplace_rpow (show 0 < m ^ 2 by positivity) + (show -1 < -(1 / 2 : ℝ) by norm_num)).mul_const + (∫ p : EuclideanSpace ℝ (Fin 3), + (‖p‖ ^ 2 * ‖spatialFourier f p‖) * ‖spatialFourier g p‖) + apply hmajor.mono' + · exact ((show Measurable (fun t : ℝ => + ((t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ)) by + fun_prop).aestronglyMeasurable.mul + (stronglyMeasurable_spatialHeatFourierDerivative f g).aestronglyMeasurable) + · filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + change 0 < t at ht + rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (by positivity)] + exact mul_le_mul_of_nonneg_left (spatialHeatFourierDerivative_norm_le ht.le f g) + (by positivity) + +theorem integrableOn_spatialHeat_three_halves {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + IntegrableOn (fun t : ℝ => + ((t ^ (-(3 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ) * + spatialHeatFourierPairing f g t) (Ioi 0) := by + have hmajor := (integrableOn_laplace_rpow (show 0 < m ^ 2 by positivity) + (show -1 < -(1 / 2 : ℝ) by norm_num)).mul_const + (∫ p : EuclideanSpace ℝ (Fin 3), + (‖p‖ ^ 2 * ‖spatialFourier f p‖) * ‖spatialFourier g p‖) + apply hmajor.mono' + · exact ((show Measurable (fun t : ℝ => + ((t ^ (-(3 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ)) by + fun_prop).aestronglyMeasurable.mul + (stronglyMeasurable_spatialHeatFourierPairing f g).aestronglyMeasurable) + · filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + change 0 < t at ht + have hC := spatialHeatFourierPairing_sub_zero_norm_le ht.le f g + rw [spatialHeatFourierPairing_zero_of_separated hd f g hsep, sub_zero] at hC + have hpower : t ^ (-(3 / 2 : ℝ)) * t = t ^ (-(1 / 2 : ℝ)) := by + calc + _ = t ^ (-(3 / 2 : ℝ)) * t ^ (1 : ℝ) := by rw [Real.rpow_one] + _ = t ^ (-(3 / 2 : ℝ) + 1) := (Real.rpow_add ht _ _).symm + _ = _ := by norm_num + rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (by positivity)] + calc + _ ≤ (t ^ (-(3 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t)) * + (t * ∫ p : EuclideanSpace ℝ (Fin 3), + (‖p‖ ^ 2 * ‖spatialFourier f p‖) * ‖spatialFourier g p‖) := + mul_le_mul_of_nonneg_left hC (by positivity) + _ = _ := by + calc + _ = (t ^ (-(3 / 2 : ℝ)) * t) * Real.exp (-(m ^ 2) * t) * + (∫ p : EuclideanSpace ℝ (Fin 3), + (‖p‖ ^ 2 * ‖spatialFourier f p‖) * ‖spatialFourier g p‖) := by ring + _ = _ := by rw [hpower] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialKernelMomentSeries.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialKernelMomentSeries.lean new file mode 100644 index 0000000000..65b859575f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialKernelMomentSeries.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialTestMoments + +/-! +# Actual termwise integration of a separated spatial kernel series + +The full six-index geometric majorant has sum 64. The compact test +factors are kept in the dominating function, so the product spatial +measure need not be finite. Pointwise reconstruction is used only where +both tests are nonzero, before any half-polydisc domain argument. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory +open scoped BigOperators + +theorem hasSum_spatialKernelMoments {R M : ℝ} (hR : 0 < R) (hM : 0 ≤ M) + (c : (Fin 3 → ℕ) × (Fin 3 → ℕ) → ℂ) + (K : EuclideanSpace ℝ (Fin 3) → EuclideanSpace ℝ (Fin 3) → ℂ) + (hc : ∀ k, ‖c k‖ ≤ M * R⁻¹ ^ ((∑ j, k.1 j) + ∑ j, k.2 j)) + (hseries : ∀ x y, (∀ j, ‖x j‖ < R) → (∀ j, ‖y j‖ < R) → + HasSum (fun k => c k * spatialMonomial k.1 x * spatialMonomial k.2 y) (K x y)) + (f g : SpatialTestFunction) + (hf : ∀ x, f.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hg : ∀ y, g.1 y ≠ 0 → ∀ j, ‖y j‖ ≤ R / 2) : + HasSum (fun k => c k * spatialTestMoment f k.1 * spatialTestMoment g k.2) + (∫ xy, K xy.1 xy.2 * (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) ∂volume.prod volume) := by + let F := fun (k : (Fin 3 → ℕ) × (Fin 3 → ℕ)) + (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) => + c k * spatialMonomial k.1 xy.1 * spatialMonomial k.2 xy.2 * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) + let b := fun (k : (Fin 3 → ℕ) × (Fin 3 → ℕ)) + (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) => + M * (1 / 2 : ℝ) ^ ((∑ j, k.1 j) + ∑ j, k.2 j) * ‖f.1 xy.1‖ * ‖g.1 xy.2‖ + have hfn : Integrable f.1 := f.2.1.continuous.integrable_of_hasCompactSupport f.2.2 + have hgn : Integrable g.1 := g.2.1.continuous.integrable_of_hasCompactSupport g.2.2 + have hb (k) (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) : + ‖F k xy‖ ≤ b k xy := by + by_cases hfx : f.1 xy.1 = 0 + · simp [F, b, hfx] + by_cases hgy : g.1 xy.2 = 0 + · simp [F, b, hgy] + dsimp only [F, b] + rw [norm_mul, norm_mul, Complex.norm_real, Complex.norm_real] + exact mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_right (spatialMonomial_pair_half_bound hR hM k.1 k.2 (c k) + (hc k) xy.1 xy.2 (hf xy.1 hfx) (hg xy.2 hgy)) (norm_nonneg _)) (norm_nonneg _) + have hbs (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) : + HasSum (fun k => b k xy) (M * 64 * ‖f.1 xy.1‖ * ‖g.1 xy.2‖) := + ((hasSum_six_moment_geometric.mul_left M).mul_right ‖f.1 xy.1‖).mul_right ‖g.1 xy.2‖ + have hbint : Integrable (fun xy => ∑' k, b k xy) (volume.prod volume) := by + simp_rw [(hbs _).tsum_eq] + convert (hfn.norm.mul_prod hgn.norm).const_mul (M * 64) using 1 + funext xy + ring + have hsum := MeasureTheory.hasSum_integral_of_dominated_convergence + (μ := volume.prod volume) + (f := fun xy => K xy.1 xy.2 * (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ)) b + (fun k => (show Continuous (F k) by + have hfc := f.2.1.continuous + have hgc := g.2.1.continuous + have hα := continuous_spatialMonomial k.1 + have hβ := continuous_spatialMonomial k.2 + dsimp only [F] + fun_prop).aestronglyMeasurable) + (fun k => Filter.Eventually.of_forall (hb k)) + (Filter.Eventually.of_forall (fun xy => (hbs xy).summable)) hbint + (Filter.Eventually.of_forall (fun xy => by + by_cases hfx : f.1 xy.1 = 0 + · simp [F, hfx] + by_cases hgy : g.1 xy.2 = 0 + · simp [F, hgy] + exact ((hseries xy.1 xy.2 + (fun j => (hf xy.1 hfx j).trans_lt (by linarith)) + (fun j => (hg xy.2 hgy j).trans_lt (by linarith))).mul_right + (f.1 xy.1 : ℂ)).mul_right (g.1 xy.2 : ℂ))) + have hi (k : (Fin 3 → ℕ) × (Fin 3 → ℕ)) : + (∫ xy, F k xy ∂volume.prod volume) = + c k * spatialTestMoment f k.1 * spatialTestMoment g k.2 := by + have heq (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) : + F k xy = c k * ((spatialMonomial k.1 xy.1 * (f.1 xy.1 : ℂ)) * + (spatialMonomial k.2 xy.2 * (g.1 xy.2 : ℂ))) := by dsimp only [F]; ring + simp_rw [heq] + rw [integral_const_mul, integral_prod_mul + (fun x => spatialMonomial k.1 x * (f.1 x : ℂ)) + (fun y => spatialMonomial k.2 y * (g.1 y : ℂ))] + change c k * (spatialTestMoment f k.1 * spatialTestMoment g k.2) = + c k * spatialTestMoment f k.1 * spatialTestMoment g k.2 + exact (mul_assoc _ _ _).symm + simpa only [hi] using hsum + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialKernelTaylorReal.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialKernelTaylorReal.lean new file mode 100644 index 0000000000..f68ee784be --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialKernelTaylorReal.lean @@ -0,0 +1,125 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialKernelMultiIndex +public import LeanPool.VacuumBellSeparation.FreeField.SpatialSeparatedCovarianceKernel + +/-! +# The actual Taylor series restricts to the original real covariance kernels + +The principal complex radius on real triples is exactly the Euclidean +norm of s e_0 + y - x. Thus the full contour series is a series for the +same field and momentum kernels already identified with the original +Fourier covariance, not a separate analytic kernel model. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped BigOperators ComplexOrder + +/-- Embed the real spatial coordinates into their complex Euclidean space component by component. -/ +noncomputable def spatialComplexOfReal (x : EuclideanSpace ℝ (Fin 3)) : + EuclideanSpace ℂ (Fin 3) := + (PiLp.continuousLinearEquiv 2 ℂ (fun _ : Fin 3 => ℂ)).symm (fun j => (x j : ℂ)) + +/-- Spatial axis displacement. -/ +noncomputable def spatialAxisDisplacement (s : ℝ) (δ : EuclideanSpace ℝ (Fin 3)) : + EuclideanSpace ℝ (Fin 3) := + (PiLp.continuousLinearEquiv 2 ℝ (fun _ : Fin 3 => ℝ)).symm + (fun j => (if j = 0 then s else 0) + δ j) + +@[simp] theorem spatialComplexOfReal_apply (x : EuclideanSpace ℝ (Fin 3)) (j : Fin 3) : + spatialComplexOfReal x j = (x j : ℂ) := rfl + +theorem spatialComplexOfReal_sub (x y : EuclideanSpace ℝ (Fin 3)) : + spatialComplexOfReal (x - y) = spatialComplexOfReal x - spatialComplexOfReal y := by + ext j + simp + +theorem spatialSquaredRadius_ofReal (s : ℝ) (δ : EuclideanSpace ℝ (Fin 3)) : + spatialSquaredRadius s (spatialComplexOfReal δ) = + (‖spatialAxisDisplacement s δ‖ ^ 2 : ℝ) := by + rw [PiLp.norm_sq_eq_of_L2] + simp only [spatialSquaredRadius, spatialComplexOfReal_apply, + spatialAxisDisplacement, PiLp.coe_symm_continuousLinearEquiv, + PiLp.toLp_apply, Real.norm_eq_abs, sq_abs, Complex.ofReal_sum, + Complex.ofReal_pow, Complex.ofReal_add] + apply Finset.sum_congr rfl + intro j _ + split_ifs <;> simp + +theorem spatialComplexRadius_ofReal (s : ℝ) (δ : EuclideanSpace ℝ (Fin 3)) : + spatialComplexRadius s (spatialComplexOfReal δ) = (‖spatialAxisDisplacement s δ‖ : ℂ) := by + rw [spatialComplexRadius, spatialSquaredRadius_ofReal, + Complex.sqrt_of_nonneg (by exact_mod_cast (sq_nonneg ‖spatialAxisDisplacement s δ‖)), + Complex.ofReal_re, Real.sqrt_sq (norm_nonneg _)] + +theorem besselFieldKernel_ofReal (μ r : ℝ) : + besselFieldKernel μ (r : ℂ) = + (μ / (4 * Real.pi ^ 2 * r) * besselKReal 1 (μ * r) : ℝ) := by + unfold besselFieldKernel + rw [← Complex.ofReal_mul μ r, modifiedBesselComplexIntegral_ofReal, + modifiedBesselIntegral_eq_besselKReal] + push_cast + rfl + +theorem besselMomentumKernel_ofReal (μ r : ℝ) : + besselMomentumKernel μ (r : ℂ) = + (-(μ ^ 2) / (4 * Real.pi ^ 2 * r ^ 2) * besselKReal 2 (μ * r) : ℝ) := by + unfold besselMomentumKernel + rw [← Complex.ofReal_mul μ r, modifiedBesselComplexIntegral_ofReal, + modifiedBesselIntegral_eq_besselKReal] + push_cast + rfl + +theorem spatialPairFieldKernel_ofReal (μ s : ℝ) (x y : EuclideanSpace ℝ (Fin 3)) : + spatialPairFieldKernel μ s (spatialComplexOfReal x, spatialComplexOfReal y) = + (spatialFieldBesselKernel μ (spatialAxisDisplacement s (y - x)) : ℂ) := by + rw [spatialPairFieldKernel, ← spatialComplexOfReal_sub, spatialComplexRadius_ofReal, + besselFieldKernel_ofReal] + rfl + +theorem spatialPairMomentumKernel_ofReal (μ s : ℝ) (x y : EuclideanSpace ℝ (Fin 3)) : + spatialPairMomentumKernel μ s (spatialComplexOfReal x, spatialComplexOfReal y) = + (spatialMomentumBesselKernel μ (spatialAxisDisplacement s (y - x)) : ℂ) := by + rw [spatialPairMomentumKernel, ← spatialComplexOfReal_sub, spatialComplexRadius_ofReal, + besselMomentumKernel_ofReal] + rfl + +theorem spatialFieldMultiCoefficient_real_expansion {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (x y : EuclideanSpace ℝ (Fin 3)) + (hx : ∀ j, ‖x j‖ < R) (hy : ∀ j, ‖y j‖ < R) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + spatialFieldMultiCoefficient μ s R k.1 k.2 * + (∏ j, (x j : ℂ) ^ k.1 j) * ∏ j, (y j : ℂ) ^ k.2 j) + (spatialFieldBesselKernel μ (spatialAxisDisplacement s (y - x)) : ℂ) := by + have h := (spatialFieldMultiCoefficient_expansion hμ hs hR hsep + (spatialComplexOfReal x) (spatialComplexOfReal y) + (by simpa only [spatialComplexOfReal_apply, Complex.norm_real] using hx) + (by simpa only [spatialComplexOfReal_apply, Complex.norm_real] using hy)).1 + simpa only [spatialComplexOfReal_apply, spatialPairFieldKernel_ofReal] using h + +theorem spatialMomentumMultiCoefficient_real_expansion {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (x y : EuclideanSpace ℝ (Fin 3)) + (hx : ∀ j, ‖x j‖ < R) (hy : ∀ j, ‖y j‖ < R) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + spatialMomentumMultiCoefficient μ s R k.1 k.2 * + (∏ j, (x j : ℂ) ^ k.1 j) * ∏ j, (y j : ℂ) ^ k.2 j) + (spatialMomentumBesselKernel μ (spatialAxisDisplacement s (y - x)) : ℂ) := by + have h := (spatialMomentumMultiCoefficient_expansion hμ hs hR hsep + (spatialComplexOfReal x) (spatialComplexOfReal y) + (by simpa only [spatialComplexOfReal_apply, Complex.norm_real] using hx) + (by simpa only [spatialComplexOfReal_apply, Complex.norm_real] using hy)).1 + simpa only [spatialComplexOfReal_apply, spatialPairMomentumKernel_ofReal] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialKernelTranslation.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialKernelTranslation.lean new file mode 100644 index 0000000000..974e396d7c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialKernelTranslation.lean @@ -0,0 +1,120 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialBesselMomentExpansion +public import LeanPool.VacuumBellSeparation.FreeField.SpatialTestTranslation + +/-! +# Original translated tests and the displaced covariance kernel +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory +open scoped ComplexConjugate + +theorem spatialAxisDisplacement_eq_add (s : ℝ) (δ : EuclideanSpace ℝ (Fin 3)) : + spatialAxisDisplacement s δ = spatialAxisDisplacement s 0 + δ := by + ext j + simp [spatialAxisDisplacement] + +theorem spatialAxisDisplacement_zero_apply (s : ℝ) : + spatialAxisDisplacement s 0 0 = s := by + simp [spatialAxisDisplacement] + +theorem spatialFieldBesselKernel_neg (μ : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + spatialFieldBesselKernel μ (-x) = spatialFieldBesselKernel μ x := by + simp only [spatialFieldBesselKernel, norm_neg] + +theorem spatialMomentumBesselKernel_neg (μ : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + spatialMomentumBesselKernel μ (-x) = spatialMomentumBesselKernel μ x := by + simp only [spatialMomentumBesselKernel, norm_neg] + +theorem integral_spatialKernel_translate + (K : EuclideanSpace ℝ (Fin 3) → ℂ) (hK : ∀ w, K (-w) = K w) + (s : ℝ) (f g : SpatialTestFunction) : + (∫ xy, K (xy.1 - xy.2) * (f.1 xy.1 : ℂ) * + ((spatialTestTranslate (spatialAxisDisplacement s 0) g).1 xy.2 : ℂ) + ∂volume.prod volume) = + ∫ xy, K (spatialAxisDisplacement s (xy.2 - xy.1)) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) ∂volume.prod volume := by + rw [← integral_add_right_eq_self (μ := volume.prod volume) + (fun xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + K (xy.1 - xy.2) * (f.1 xy.1 : ℂ) * + ((spatialTestTranslate (spatialAxisDisplacement s 0) g).1 xy.2 : ℂ)) + (0, spatialAxisDisplacement s 0)] + apply integral_congr_ae + filter_upwards with xy + simp only [Prod.fst_add, Prod.snd_add, add_zero, spatialTestTranslate, add_sub_cancel_right] + have harg : xy.1 - (xy.2 + spatialAxisDisplacement s 0) = + -spatialAxisDisplacement s (xy.2 - xy.1) := by + rw [spatialAxisDisplacement_eq_add s (xy.2 - xy.1)] + abel + rw [harg, hK] + +theorem coordinate_support_translated_separation {R s : ℝ} + (f g : SpatialTestFunction) + (hf : ∀ x, f.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hg : ∀ y, g.1 y ≠ 0 → ∀ j, ‖y j‖ ≤ R / 2) : + ∀ x y, f.1 x ≠ 0 → (spatialTestTranslate (spatialAxisDisplacement s 0) g).1 y ≠ 0 → + s - R ≤ ‖x - y‖ := by + intro x y hx hy + have hfx := hf x hx 0 + have hgy := hg (y - spatialAxisDisplacement s 0) hy 0 + simp only [PiLp.sub_apply, spatialAxisDisplacement_zero_apply, Real.norm_eq_abs] at hfx hgy + have hxy := PiLp.norm_apply_le (x - y) (0 : Fin 3) + simp only [PiLp.sub_apply, Real.norm_eq_abs] at hxy + have hx' := (abs_le.mp hfx).2 + have hy' := (abs_le.mp hgy).1 + have habs := neg_le_abs (x 0 - y 0) + linarith + +theorem polydisc_separation_positive {R s : ℝ} + (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) : 0 < s - R := by + have h3 : 1 ≤ Real.sqrt 3 := by + nlinarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 3), Real.sqrt_nonneg 3] + have hmul := mul_le_mul_of_nonneg_right h3 hR.le + nlinarith + +theorem spatialFourier_translated_field_kernel {μ s R : ℝ} + (hμ : 0 < μ) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (f g : SpatialTestFunction) + (hf : ∀ x, f.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hg : ∀ y, g.1 y ≠ 0 → ∀ j, ‖y j‖ ≤ R / 2) : + ((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) * + (∫ p : EuclideanSpace ℝ (Fin 3), ((dispersion μ p)⁻¹ : ℝ) * + (conj (spatialFourier f p) * + spatialFourier (spatialTestTranslate (spatialAxisDisplacement s 0) g) p)) = + ∫ xy, (spatialFieldBesselKernel μ (spatialAxisDisplacement s (xy.2 - xy.1)) : ℂ) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) ∂volume.prod volume := by + rw [spatialFourier_field_covariance_kernel hμ (polydisc_separation_positive hR hsep) + f (spatialTestTranslate (spatialAxisDisplacement s 0) g) + (coordinate_support_translated_separation f g hf hg)] + exact integral_spatialKernel_translate (fun w => (spatialFieldBesselKernel μ w : ℂ)) + (fun w => by rw [spatialFieldBesselKernel_neg]) s f g + +theorem spatialFourier_translated_momentum_kernel {μ s R : ℝ} + (hμ : 0 < μ) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (f g : SpatialTestFunction) + (hf : ∀ x, f.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hg : ∀ y, g.1 y ≠ 0 → ∀ j, ‖y j‖ ≤ R / 2) : + ((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) * + (∫ p : EuclideanSpace ℝ (Fin 3), (dispersion μ p : ℂ) * + (conj (spatialFourier f p) * + spatialFourier (spatialTestTranslate (spatialAxisDisplacement s 0) g) p)) = + ∫ xy, (spatialMomentumBesselKernel μ (spatialAxisDisplacement s (xy.2 - xy.1)) : ℂ) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) ∂volume.prod volume := by + rw [spatialFourier_momentum_covariance_kernel hμ (polydisc_separation_positive hR hsep) + f (spatialTestTranslate (spatialAxisDisplacement s 0) g) + (coordinate_support_translated_separation f g hf hg)] + exact integral_spatialKernel_translate (fun w => (spatialMomentumBesselKernel μ w : ℂ)) + (fun w => by rw [spatialMomentumBesselKernel_neg]) s f g + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialLocalizedMomentSeries.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialLocalizedMomentSeries.lean new file mode 100644 index 0000000000..0bd0943555 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialLocalizedMomentSeries.lean @@ -0,0 +1,91 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialRealMomentSeries +public import LeanPool.VacuumBellSeparation.FreeField.SourceSpace + +/-! +# Literal localized source covariance and centered regional moments + +The right-region moments use the original test translated back to its +center. Region geometry discharges every support condition in the actual +Fourier-to-Bessel-to-moment calculation. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian ClosedSubmodule + +/-- Centered spatial test moment obtained from `spatialRealTestMoment`. -/ +noncomputable def centeredSpatialTestMoment (a : EuclideanSpace ℝ (Fin 3)) + (f : SpatialTestFunction) (α : Fin 3 → ℕ) : ℝ := + spatialRealTestMoment (spatialTestTranslate (-a) f) α + +theorem timeZeroTranslate_neg_cancel (a : EuclideanSpace ℝ (Fin 3)) (v : TimeZeroSource) : + timeZeroTranslate (-a) (timeZeroTranslate a v) = v := by + apply Prod.ext <;> exact spatialTestTranslate_neg_cancel a _ + +theorem spatialTestTranslate_back_coordinate_bound {a : EuclideanSpace ℝ (Fin 3)} + {W : Set (EuclideanSpace ℝ (Fin 3))} {R : ℝ} + (hW : ∀ x ∈ W, ∀ j, ‖(x - a) j‖ ≤ R) + (f : SpatialTestFunction) (hf : tsupport f.1 ⊆ W) : + ∀ x, (spatialTestTranslate (-a) f).1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R := by + intro x hx j + have hx' : f.1 (x + a) ≠ 0 := by simpa only [spatialTestTranslate, sub_neg_eq_add] using hx + simpa only [add_sub_cancel_right] using hW (x + a) (hf (subset_tsupport _ hx')) j + +theorem hasSum_localized_source_realMoments {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + {U W : Set (EuclideanSpace ℝ (Fin 3))} + (hU : ∀ x ∈ U, ∀ j, ‖x j‖ ≤ R / 2) + (hW : ∀ x ∈ W, ∀ j, ‖(x - spatialAxisDisplacement s 0) j‖ ≤ R / 2) + (u : SourceTestSpace hμ U) (v : SourceTestSpace hμ W) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + (spatialFieldMultiCoefficient μ s R k.1 k.2).re * spatialRealTestMoment u.1.1 k.1 * + centeredSpatialTestMoment (spatialAxisDisplacement s 0) v.1.1 k.2 + + (spatialMomentumMultiCoefficient μ s R k.1 k.2).re * spatialRealTestMoment u.1.2 k.1 * + centeredSpatialTestMoment (spatialAxisDisplacement s 0) v.1.2 k.2) + (inner ℝ (sourceEmbedding hμ U (u : SourceHilbert hμ U)) + (sourceEmbedding hμ W (v : SourceHilbert hμ W))) := by + have h := hasSum_timeZeroCovariance_realMoments hμ hs hR hsep u.1 + (timeZeroTranslate (-(spatialAxisDisplacement s 0)) v.1) + (fun x hx j => hU x (u.2.1 (subset_tsupport _ hx)) j) + (fun x hx j => hU x (u.2.2 (subset_tsupport _ hx)) j) + (spatialTestTranslate_back_coordinate_bound hW v.1.1 v.2.1) + (spatialTestTranslate_back_coordinate_bound hW v.1.2 v.2.2) + have hv : timeZeroTranslate (spatialAxisDisplacement s 0) + (timeZeroTranslate (-(spatialAxisDisplacement s 0)) v.1) = v.1 := by + simpa only [neg_neg] using timeZeroTranslate_neg_cancel (-(spatialAxisDisplacement s 0)) v.1 + rw [hv] at h + have hreal (x y : TimeZeroSource) : + inner ℝ (timeZeroL2 hμ x) (timeZeroL2 hμ y) = timeZeroFourierCovariance μ x y := by + have hinner : inner ℝ (timeZeroL2 hμ x) (timeZeroL2 hμ y) = + (inner ℂ (timeZeroL2 hμ x) (timeZeroL2 hμ y)).re := by + rw [MeasureTheory.L2.inner_def, MeasureTheory.L2.inner_def] + calc + _ = ∫ p, RCLike.re (inner ℂ ((timeZeroL2 hμ x) p) ((timeZeroL2 hμ y) p)) + ∂oneParticleMeasure μ := by + apply MeasureTheory.integral_congr_ae + exact Filter.Eventually.of_forall fun p => by + simp only [Complex.inner, RCLike.inner_apply] + rfl + _ = _ := integral_re + (MeasureTheory.L2.integrable_inner (𝕜 := ℂ) (timeZeroL2 hμ x) (timeZeroL2 hμ y)) + rw [hinner, inner_timeZeroL2_gram] + simp [Complex.mul_re] + have hcov : inner ℝ (sourceEmbedding hμ U (u : SourceHilbert hμ U)) + (sourceEmbedding hμ W (v : SourceHilbert hμ W)) = + timeZeroFourierCovariance μ u.1 v.1 := + (congrArg₂ (inner ℝ) (sourceEmbedding_coe hμ U u) + (sourceEmbedding_coe hμ W v)).trans (hreal u.1 v.1) + rw [hcov] + simpa only [centeredSpatialTestMoment, timeZeroTranslate] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialMassShellBound.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialMassShellBound.lean new file mode 100644 index 0000000000..43e60fa8e7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialMassShellBound.lean @@ -0,0 +1,96 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroL2 + +/-! +# Physical mass-shell L² bound for actual spatial Fourier transforms + +The bound uses the literal density `1 / (2(2π)^3 ω)` and Parseval in +the manuscript's Fourier convention. Actual integrability is proved +separately, so no default value of a nonintegrable integral is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter +open scoped ComplexConjugate + +theorem integrable_spatialFourier_norm_sq (f : SpatialTestFunction) : + Integrable (fun p => ‖spatialFourier f p‖ ^ 2) := by + simpa only [spatialFourierSchwartz_apply] using + ((spatialFourierSchwartz f).memLp 2).norm.integrable_sq + +theorem integral_spatialFourier_norm_sq (f : SpatialTestFunction) : + (∫ p, ‖spatialFourier f p‖ ^ 2) = + (2 * Real.pi) ^ 3 * ∫ x, (f.1 x) ^ 2 := by + apply Complex.ofReal_injective + calc + ((∫ p, ‖spatialFourier f p‖ ^ 2 : ℝ) : ℂ) = + ∫ p, ((‖spatialFourier f p‖ ^ 2 : ℝ) : ℂ) := integral_ofReal.symm + _ = ∫ p, conj (spatialFourier f p) * spatialFourier f p := by + apply integral_congr_ae + exact Eventually.of_forall fun p => by + change ((‖spatialFourier f p‖ ^ 2 : ℝ) : ℂ) = + conj (spatialFourier f p) * spatialFourier f p + rw [mul_comm, Complex.mul_conj, Complex.normSq_eq_norm_sq] + _ = (((2 * Real.pi) ^ 3 : ℝ) : ℂ) * + ∫ x, (f.1 x : ℂ) * (f.1 x : ℂ) := integral_spatialFourier_product f f + _ = (((2 * Real.pi) ^ 3 * ∫ x, (f.1 x) ^ 2 : ℝ) : ℂ) := by + rw [Complex.ofReal_mul] + congr 1 + rw [← integral_complex_ofReal] + apply integral_congr_ae + exact Eventually.of_forall fun x => by push_cast; ring + +theorem memLp_spatialFourier_massShell {m : ℝ} (hm : 0 < m) + (f : SpatialTestFunction) : MemLp (spatialFourier f) 2 (oneParticleMeasure m) := by + have h : timeZeroOneParticle m (f, 0) = spatialFourier f := by + funext p + have hz : spatialFourier (0 : SpatialTestFunction) p = 0 := by + change (∫ x, Complex.exp (-(Complex.I * ↑(inner ℝ p x))) * (0 : ℂ)) = 0 + simp + simp only [timeZeroOneParticle, hz, mul_zero, add_zero] + simpa only [h] using memLp_timeZeroOneParticle hm (f, 0) + +theorem integrable_spatialFourier_norm_sq_massShell {m : ℝ} (hm : 0 < m) + (f : SpatialTestFunction) : + Integrable (fun p => ‖spatialFourier f p‖ ^ 2) (oneParticleMeasure m) := + (memLp_spatialFourier_massShell hm f).norm.integrable_sq + +theorem oneParticleWeight_le_mass {m : ℝ} (hm : 0 < m) + (p : EuclideanSpace ℝ (Fin 3)) : + (oneParticleWeight m p : ℝ) ≤ 1 / (2 * (2 * Real.pi) ^ 3 * m) := by + rw [oneParticleWeight_coe hm] + apply one_div_le_one_div_of_le (by positivity) + exact mul_le_mul_of_nonneg_left (le_dispersion hm.le p) (by positivity) + +/-- Exact physical normalization: the Fourier L² norm on the mass shell is +at most `(2m)⁻¹` times the spatial real L² norm squared. -/ +theorem integral_spatialFourier_norm_sq_massShell_le {m : ℝ} (hm : 0 < m) + (f : SpatialTestFunction) : + (∫ p, ‖spatialFourier f p‖ ^ 2 ∂oneParticleMeasure m) ≤ + (1 / (2 * m)) * ∫ x, (f.1 x) ^ 2 := by + rw [oneParticleMeasure, + integral_withDensity_eq_integral_smul (measurable_oneParticleWeight hm)] + have h : (∫ p, oneParticleWeight m p • ‖spatialFourier f p‖ ^ 2) ≤ + ∫ p, (1 / (2 * (2 * Real.pi) ^ 3 * m)) * ‖spatialFourier f p‖ ^ 2 := by + apply integral_mono_of_nonneg + · exact Eventually.of_forall fun p => by positivity + · exact (integrable_spatialFourier_norm_sq f).const_mul _ + · exact Eventually.of_forall fun p => + mul_le_mul_of_nonneg_right (oneParticleWeight_le_mass hm p) (sq_nonneg _) + refine h.trans_eq ?_ + rw [integral_const_mul, integral_spatialFourier_norm_sq] + have hm0 : m ≠ 0 := hm.ne' + have hpi : Real.pi ≠ 0 := Real.pi_ne_zero + field_simp + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumCovarianceKernel.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumCovarianceKernel.lean new file mode 100644 index 0000000000..c1157522e3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumCovarianceKernel.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMomentumCovarianceKernelDefs +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMomentumHeatIdentity +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMomentumHeatKernel + +/-! +# The actual separated momentum covariance kernel + +The genuine heat-time integration by parts supplies the negative weight. +Absolute time/position convergence then identifies the original energy +Fourier pairing with the manuscript's negative K2 kernel. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory Set +open scoped ComplexConjugate + +theorem spatialMomentumHeat_scalar_normalization (A B : ℂ) : + (((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) * + ((-1 / (2 * Real.sqrt Real.pi) : ℝ) : ℂ)) * (A * B) = + ((-1 / (4 * Real.sqrt Real.pi) : ℝ) : ℂ) * A * + ((((2 * Real.pi) ^ 3 : ℝ) : ℂ)⁻¹ * B) := by + push_cast + field_simp; ring + +theorem integrable_spatialMomentumKernel_pairing {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + Integrable (fun xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + (spatialMomentumBesselKernel m (xy.1 - xy.2) : ℂ) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ)) (volume.prod volume) := by + have h := (integrable_separatedMomentumHeatPairing hm hd f g hsep).integral_prod_right + simpa only [integral_separatedMomentumHeatPairing_time hm hd f g hsep, + spatialMomentumBesselKernel] using h + +theorem spatialFourier_momentum_covariance_kernel {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + ((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) * + (∫ p : EuclideanSpace ℝ (Fin 3), (dispersion m p : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p)) = + ∫ xy, (spatialMomentumBesselKernel m (xy.1 - xy.2) : ℂ) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) ∂volume.prod volume := by + have hj := integrable_separatedMomentumHeatPairing hm hd f g hsep + rw [spatialFourier_momentum_negative_heat hm hd f g hsep, + ← mul_assoc, ← integral_const_mul] + calc + _ = ∫ t in Ioi (0 : ℝ), ∫ xy, separatedMomentumHeatPairing m f g (t, xy) + ∂volume.prod volume := by + apply integral_congr_ae + filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + rw [spatialMomentumHeat_scalar_normalization, spatialHeatFourierPairing, + spatialFourier_heat_convolution ht f g, ← integral_const_mul] + apply integral_congr_ae + refine Filter.Eventually.of_forall (fun xy => ?_) + simp only [separatedMomentumHeatPairing, Complex.ofReal_mul] + ring + _ = ∫ xy, (∫ t in Ioi (0 : ℝ), separatedMomentumHeatPairing m f g (t, xy)) + ∂volume.prod volume := integral_integral_swap hj + _ = _ := by + simp_rw [integral_separatedMomentumHeatPairing_time hm hd f g hsep, + spatialMomentumBesselKernel] + +theorem spatialFourier_momentum_covariance_real_kernel {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + (((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) * + (∫ p : EuclideanSpace ℝ (Fin 3), (dispersion m p : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p))).re = + ∫ xy, spatialMomentumBesselKernel m (xy.1 - xy.2) * f.1 xy.1 * g.1 xy.2 + ∂volume.prod volume := by + rw [spatialFourier_momentum_covariance_kernel hm hd f g hsep, ← RCLike.re_eq_complex_re, + ← integral_re (integrable_spatialMomentumKernel_pairing hm hd f g hsep)] + apply integral_congr_ae + exact Filter.Eventually.of_forall (fun xy => by + simp only [RCLike.re_eq_complex_re, ← Complex.ofReal_mul, Complex.ofReal_re]) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumCovarianceKernelDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumCovarianceKernelDefs.lean new file mode 100644 index 0000000000..d5a30d9665 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumCovarianceKernelDefs.lean @@ -0,0 +1,31 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Special.BesselKDefs +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDefs + +/-! +# Statement seed extracted from FreeField/SpatialMomentumCovarianceKernel + +Literal declarations are unchanged; theorem conclusions remain in the implementation module. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped ComplexConjugate + +/-- Spatial momentum Bessel kernel given by `-(m ^ 2) / (4 * Real.pi ^ 2 * ‖w‖ ^ 2) * besselKReal 2 +(m * ‖w‖)`. -/ +noncomputable def spatialMomentumBesselKernel (m : ℝ) (w : EuclideanSpace ℝ (Fin 3)) : ℝ := + -(m ^ 2) / (4 * Real.pi ^ 2 * ‖w‖ ^ 2) * besselKReal 2 (m * ‖w‖) + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumHeatIdentity.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumHeatIdentity.lean new file mode 100644 index 0000000000..76cfc27638 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumHeatIdentity.lean @@ -0,0 +1,75 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatIntegrationByParts + +/-! +# The actual negative heat representation of the momentum pairing + +The squared-dispersion Fourier integral is the mass term minus the +proved time derivative. All time integration-by-parts conditions have +been discharged, including the separated-support boundary at zero. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped ComplexConjugate + +theorem integrable_spatialHeatFourier_derivative {t : ℝ} (ht : 0 ≤ t) + (f g : SpatialTestFunction) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => (-(‖p‖ ^ 2 : ℝ) : ℂ) * + ((Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p))) := by + apply (integrable_pow_norm_spatialFourier_product f g 2).mono' + · exact (show Continuous (fun p : EuclideanSpace ℝ (Fin 3) => + (-(‖p‖ ^ 2 : ℝ) : ℂ) * ((Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p))) by + have hf := continuous_spatialFourier f + have hg := continuous_spatialFourier g + fun_prop).aestronglyMeasurable + · exact Filter.Eventually.of_forall (spatialHeatFourier_derivative_integrand_bound ht f g) + +theorem spatialHeat_squared_energy_eq_mass_sub_derivative (m : ℝ) {t : ℝ} + (ht : 0 ≤ t) (f g : SpatialTestFunction) : + (∫ p : EuclideanSpace ℝ (Fin 3), (Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (((m ^ 2 + ‖p‖ ^ 2 : ℝ) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p))) = + ((m ^ 2 : ℝ) : ℂ) * spatialHeatFourierPairing f g t - + spatialHeatFourierDerivative f g t := by + unfold spatialHeatFourierPairing spatialHeatFourierDerivative + rw [← integral_const_mul, ← integral_sub + ((integrable_spatialHeatFourier_pairing ht f g).const_mul ((m ^ 2 : ℝ) : ℂ)) + (integrable_spatialHeatFourier_derivative ht f g)] + apply integral_congr_ae + refine Filter.Eventually.of_forall (fun p => ?_) + push_cast + ring + +theorem spatialFourier_momentum_negative_heat {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + (∫ p : EuclideanSpace ℝ (Fin 3), (dispersion m p : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p)) = + ((-1 / (2 * Real.sqrt Real.pi) : ℝ) : ℂ) * + ∫ t in Ioi (0 : ℝ), + ((t ^ (-(3 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ) * + spatialHeatFourierPairing f g t := by + rw [spatialFourier_momentum_energy_heat hm f g] + have heq := setIntegral_congr_fun (μ := volume) measurableSet_Ioi (fun t (ht : t ∈ Ioi (0 : ℝ)) => + congrArg (fun z : ℂ => spatialHeatMassWeight m t * z) + (spatialHeat_squared_energy_eq_mass_sub_derivative m ht.le f g)) + change ((Real.sqrt Real.pi)⁻¹ : ℂ) * + (∫ t in Ioi (0 : ℝ), spatialHeatMassWeight m t * _) = _ + rw [heq, spatialHeat_time_integration_by_parts hm hd f g hsep] + push_cast + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumHeatKernel.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumHeatKernel.lean new file mode 100644 index 0000000000..dcef25fdeb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumHeatKernel.lean @@ -0,0 +1,142 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatSeparatedIntegrability + +/-! +# Actual separated momentum heat-kernel integrability + +The negative three-halves heat weight has the prefactor −1/(32π²) in +this derivation. Its full time/position integral is absolutely convergent for +separated original tests, and its scalar time integral is the actual K2 +kernel. The Fourier identification is assembled separately. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory Set + +theorem spatialHeat_momentum_subordination_integrand {μ t : ℝ} (ht : 0 < t) + (w : EuclideanSpace ℝ (Fin 3)) : + (-1 / (4 * Real.sqrt Real.pi)) * + (t ^ (-(3 / 2 : ℝ)) * Real.exp (-(μ ^ 2) * t)) * spatialHeatKernel t w = + -(1 / (32 * Real.pi ^ 2)) * heatBesselIntegrand 2 μ ‖w‖ t := by + have hp : t ^ (-(3 / 2 : ℝ)) = t ^ (-(1 / 2 : ℝ)) * t⁻¹ := by + rw [show -(3 / 2 : ℝ) = -(1 / 2 : ℝ) + (-1 : ℝ) by norm_num, + Real.rpow_add ht, Real.rpow_neg_one] + calc + _ = (-1 / (2 * t)) * ((1 / (2 * Real.sqrt Real.pi)) * + (t ^ (-(1 / 2 : ℝ)) * Real.exp (-(μ ^ 2) * t)) * spatialHeatKernel t w) := by + rw [hp] + field_simp; ring + _ = (-1 / (2 * t)) * ((1 / (16 * Real.pi ^ 2)) * heatBesselIntegrand 1 μ ‖w‖ t) := by + rw [spatialHeat_subordination_integrand ht] + _ = _ := by + unfold heatBesselIntegrand + norm_num only [Int.reduceNeg, Int.reduceAdd, zpow_neg, zpow_ofNat] + field_simp [ht.ne', Real.pi_ne_zero]; ring + +theorem spatialHeat_integral_eq_momentumBessel {μ : ℝ} (hμ : 0 < μ) + (w : EuclideanSpace ℝ (Fin 3)) (hw : w ≠ 0) : + (∫ t in Ioi (0 : ℝ), (-1 / (4 * Real.sqrt Real.pi)) * + (t ^ (-(3 / 2 : ℝ)) * Real.exp (-(μ ^ 2) * t)) * spatialHeatKernel t w) = + -(μ ^ 2) / (4 * Real.pi ^ 2 * ‖w‖ ^ 2) * besselKReal 2 (μ * ‖w‖) := by + have heq : (∫ t in Ioi (0 : ℝ), (-1 / (4 * Real.sqrt Real.pi)) * + (t ^ (-(3 / 2 : ℝ)) * Real.exp (-(μ ^ 2) * t)) * spatialHeatKernel t w) = + ∫ t in Ioi (0 : ℝ), -(1 / (32 * Real.pi ^ 2)) * heatBesselIntegrand 2 μ ‖w‖ t := + setIntegral_congr_fun measurableSet_Ioi + (fun t ht => spatialHeat_momentum_subordination_integrand (μ := μ) ht w) + rw [heq, integral_const_mul, heatMomentumKernel_eq_bessel hμ (norm_pos_iff.mpr hw)] + +/-- Separated momentum heat pairing. -/ +noncomputable def separatedMomentumHeatPairing (m : ℝ) (f g : SpatialTestFunction) + (txy : ℝ × (EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3))) : ℂ := + (((-1 / (4 * Real.sqrt Real.pi)) * + (txy.1 ^ (-(3 / 2 : ℝ)) * Real.exp (-(m ^ 2) * txy.1)) * + spatialHeatKernel txy.1 (txy.2.1 - txy.2.2) : ℝ) : ℂ) * + (f.1 txy.2.1 : ℂ) * (g.1 txy.2.2 : ℂ) + +theorem heatBesselIntegrand_two_nonneg (m r : ℝ) {t : ℝ} (ht : 0 < t) : + 0 ≤ heatBesselIntegrand 2 m r t := by + unfold heatBesselIntegrand + positivity + +theorem heatBesselIntegrand_two_mono_radius (m : ℝ) {d r t : ℝ} + (hd : 0 ≤ d) (hdr : d ≤ r) (ht : 0 < t) : + heatBesselIntegrand 2 m r t ≤ heatBesselIntegrand 2 m d t := by + unfold heatBesselIntegrand + apply mul_le_mul_of_nonneg_left _ (by positivity) + apply Real.exp_le_exp.mpr + have hsq : d ^ 2 ≤ r ^ 2 := by nlinarith + have hdiv := div_le_div_of_nonneg_right hsq (show 0 ≤ 4 * t by positivity) + linarith + +theorem norm_separatedMomentumHeatPairing_le {m d : ℝ} (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) + {t : ℝ} (ht : 0 < t) + (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) : + ‖separatedMomentumHeatPairing m f g (t, xy)‖ ≤ + ((1 / (32 * Real.pi ^ 2)) * heatBesselIntegrand 2 m d t) * + (‖f.1 xy.1‖ * ‖g.1 xy.2‖) := by + simp only [separatedMomentumHeatPairing, spatialHeat_momentum_subordination_integrand ht, + norm_mul, Complex.norm_real, Real.norm_eq_abs] + rw [abs_neg, abs_of_nonneg (show 0 ≤ 1 / (32 * Real.pi ^ 2) by positivity), + abs_of_nonneg (heatBesselIntegrand_two_nonneg _ _ ht)] + by_cases hf : f.1 xy.1 = 0 + · simp [hf] + by_cases hg : g.1 xy.2 = 0 + · simp [hg] + have h := heatBesselIntegrand_two_mono_radius m hd.le (hsep _ _ hf hg) ht + have hc := mul_le_mul_of_nonneg_left h (show 0 ≤ 1 / (32 * Real.pi ^ 2) by positivity) + simpa only [Real.norm_eq_abs, mul_assoc] using + mul_le_mul_of_nonneg_right hc (mul_nonneg (abs_nonneg _) (abs_nonneg _)) + +theorem integrable_separatedMomentumHeatPairing {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) : + Integrable (separatedMomentumHeatPairing m f g) + ((volume.restrict (Ioi (0 : ℝ))).prod (volume.prod volume)) := by + have hf : Integrable f.1 := f.2.1.continuous.integrable_of_hasCompactSupport f.2.2 + have hg : Integrable g.1 := g.2.1.continuous.integrable_of_hasCompactSupport g.2.2 + have hmajor := ((integrableOn_heatBesselIntegrand 2 hm hd).const_mul + (1 / (32 * Real.pi ^ 2))).mul_prod (hf.norm.mul_prod hg.norm) + apply hmajor.mono' + · exact (show Measurable (separatedMomentumHeatPairing m f g) by + unfold separatedMomentumHeatPairing spatialHeatKernel + have hfm := f.2.1.continuous.measurable + have hgm := g.2.1.continuous.measurable + fun_prop).aestronglyMeasurable + · have htpos : ∀ᵐ txy : ℝ × (EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) + ∂((volume.restrict (Ioi (0 : ℝ))).prod (volume.prod volume)), 0 < txy.1 := by + apply (Measure.ae_prod_iff_ae_ae (by measurability)).mpr + filter_upwards [ae_restrict_mem measurableSet_Ioi] with t ht + exact Filter.Eventually.of_forall (fun _ => ht) + filter_upwards [htpos] with txy ht + exact norm_separatedMomentumHeatPairing_le hd f g hsep ht txy.2 + +theorem integral_separatedMomentumHeatPairing_time {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (f g : SpatialTestFunction) + (hsep : ∀ x y, f.1 x ≠ 0 → g.1 y ≠ 0 → d ≤ ‖x - y‖) + (xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3)) : + (∫ t in Ioi (0 : ℝ), separatedMomentumHeatPairing m f g (t, xy)) = + ((-(m ^ 2) / (4 * Real.pi ^ 2 * ‖xy.1 - xy.2‖ ^ 2) * + besselKReal 2 (m * ‖xy.1 - xy.2‖) : ℝ) : ℂ) * + (f.1 xy.1 : ℂ) * (g.1 xy.2 : ℂ) := by + by_cases hf : f.1 xy.1 = 0 + · simp [separatedMomentumHeatPairing, hf] + by_cases hg : g.1 xy.2 = 0 + · simp [separatedMomentumHeatPairing, hg] + have hxy : xy.1 - xy.2 ≠ 0 := norm_pos_iff.mp (hd.trans_le (hsep _ _ hf hg)) + simp only [separatedMomentumHeatPairing] + rw [integral_mul_const, integral_mul_const, integral_complex_ofReal, + spatialHeat_integral_eq_momentumBessel hm _ hxy] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumHeatSubordination.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumHeatSubordination.lean new file mode 100644 index 0000000000..15b23149d7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialMomentumHeatSubordination.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatFourierFubini +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroInner +public import LeanPool.VacuumBellSeparation.FreeField.Lorentz + +/-! +# Actual heat subordination of the momentum covariance pairing + +Multiplication by the squared dispersion preserves integrability for the +original compact spatial tests, by their proved Schwartz decay. The +reciprocal-energy Fubini theorem therefore applies to this actual weighted +pairing, with no interchange assumed as a hypothesis. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped ComplexConjugate + +theorem integrable_dispersion_sq_spatialFourier_product (m : ℝ) + (f g : SpatialTestFunction) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => + ((dispersion m p) ^ 2 : ℝ) * + (conj (spatialFourier f p) * spatialFourier g p)) := by + have h0 := (integrable_spatialFourier_product f g).norm.const_mul (m ^ 2) + have h2 := integrable_pow_norm_spatialFourier_product f g 2 + refine (h0.add h2).mono' ?_ ?_ + · exact ((Complex.continuous_ofReal.comp ((continuous_dispersion m).pow 2)).mul + ((continuous_spatialFourier f).star.mul (continuous_spatialFourier g))).aestronglyMeasurable + · refine Filter.Eventually.of_forall (fun p => ?_) + simp only [norm_mul, Complex.norm_conj, Complex.norm_real, Real.norm_eq_abs, + dispersion_sq, Pi.add_apply] + rw [abs_of_nonneg (add_nonneg (sq_nonneg _) (sq_nonneg _))] + exact le_of_eq (by ring) + +theorem integrable_momentumEnergyHeatPairing {m : ℝ} (hm : 0 < m) + (f g : SpatialTestFunction) : + Integrable (reciprocalEnergyHeatPairing m (fun p => + ((dispersion m p) ^ 2 : ℝ) * + (conj (spatialFourier f p) * spatialFourier g p))) + ((volume.restrict (Ioi (0 : ℝ))).prod volume) := + integrable_reciprocalEnergyHeatPairing hm + ((Complex.continuous_ofReal.comp ((continuous_dispersion m).pow 2)).mul + ((continuous_spatialFourier f).star.mul (continuous_spatialFourier g))) + (integrable_dispersion_sq_spatialFourier_product m f g) + +theorem spatialFourier_momentum_energy_heat {m : ℝ} (hm : 0 < m) + (f g : SpatialTestFunction) : + (∫ p : EuclideanSpace ℝ (Fin 3), (dispersion m p : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p)) = + ((Real.sqrt Real.pi)⁻¹ : ℂ) * + ∫ t in Ioi (0 : ℝ), + ((t ^ (-(1 / 2 : ℝ)) * Real.exp (-(m ^ 2) * t) : ℝ) : ℂ) * + ∫ p : EuclideanSpace ℝ (Fin 3), (Real.exp (-t * ‖p‖ ^ 2) : ℂ) * + (((m ^ 2 + ‖p‖ ^ 2 : ℝ) : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p)) := by + have h := reciprocal_dispersion_integral_heat_separated hm + ((Complex.continuous_ofReal.comp ((continuous_dispersion m).pow 2)).mul + ((continuous_spatialFourier f).star.mul (continuous_spatialFourier g))) + (integrable_dispersion_sq_spatialFourier_product m f g) + have hleft : (fun p : EuclideanSpace ℝ (Fin 3) => + (((dispersion m p)⁻¹ : ℝ) : ℂ) * + (((dispersion m p) ^ 2 : ℝ) * + (conj (spatialFourier f p) * spatialFourier g p))) = + fun p => (dispersion m p : ℂ) * + (conj (spatialFourier f p) * spatialFourier g p) := by + funext p + have hp : (dispersion m p : ℂ) ≠ 0 := + Complex.ofReal_ne_zero.mpr (dispersion_pos hm.ne' p).ne' + push_cast + field_simp + simp only [Function.comp_apply, Pi.mul_apply, Pi.pow_apply, Pi.star_apply, + starRingEnd_apply] at h hleft + rw [hleft] at h + simpa only [dispersion_sq, starRingEnd_apply] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialRealMomentSeries.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialRealMomentSeries.lean new file mode 100644 index 0000000000..53eafa4cbf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialRealMomentSeries.lean @@ -0,0 +1,62 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialCovarianceMomentExpansion + +/-! +# Real moments and the real part of the actual kernel coefficients + +The original tests are real. Their moments are real, so the true covariance +series uses the real parts of the contour coefficients without requiring an +additional coefficient-reality theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory +open scoped BigOperators + +/-- Spatial real test moment given by `∫ x, (∏ j, x j ^ α j) * f.1 x`. -/ +noncomputable def spatialRealTestMoment (f : SpatialTestFunction) (α : Fin 3 → ℕ) : ℝ := + ∫ x, (∏ j, x j ^ α j) * f.1 x + +theorem spatialTestMoment_eq_ofReal (f : SpatialTestFunction) (α : Fin 3 → ℕ) : + spatialTestMoment f α = (spatialRealTestMoment f α : ℂ) := by + unfold spatialTestMoment spatialMonomial spatialRealTestMoment + rw [← integral_complex_ofReal] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by push_cast; rfl + +theorem spatialRealTestMoment_norm_le {a : ℝ} + (f : SpatialTestFunction) (hf : ∀ x, f.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ a) + (α : Fin 3 → ℕ) : + |spatialRealTestMoment f α| ≤ a ^ (∑ j, α j) * ∫ x, ‖f.1 x‖ := by + simpa only [spatialTestMoment_eq_ofReal, Complex.norm_real, Real.norm_eq_abs] using + spatialTestMoment_norm_le f hf α + +theorem hasSum_timeZeroCovariance_realMoments {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (u v : TimeZeroSource) + (huf : ∀ x, u.1.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hug : ∀ x, u.2.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hvf : ∀ x, v.1.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) + (hvg : ∀ x, v.2.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ R / 2) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + (spatialFieldMultiCoefficient μ s R k.1 k.2).re * spatialRealTestMoment u.1 k.1 * + spatialRealTestMoment v.1 k.2 + + (spatialMomentumMultiCoefficient μ s R k.1 k.2).re * spatialRealTestMoment u.2 k.1 * + spatialRealTestMoment v.2 k.2) + (timeZeroFourierCovariance μ u (timeZeroTranslate (spatialAxisDisplacement s 0) v)) := by + simpa only [spatialTestMoment_eq_ofReal, Complex.add_re, Complex.mul_re, + Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, mul_zero, zero_mul, + sub_zero, add_zero] using + hasSum_timeZeroCovariance_moments hμ hs hR hsep u v huf hug hvf hvg + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialSeparatedCovarianceKernel.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialSeparatedCovarianceKernel.lean new file mode 100644 index 0000000000..d378ede3d6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialSeparatedCovarianceKernel.lean @@ -0,0 +1,95 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFieldCovarianceKernel +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMomentumCovarianceKernel + +/-! +# The actual two-component separated spatial covariance + +Both literal Fourier multipliers are now identified with their Bessel +kernels, including all convergence and normalization factors. This is a +statement about the original compact spatial sources and their actual +one-particle Gram covariance. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ComplexConjugate + +theorem integrable_timeZeroBesselCovariance {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (u v : TimeZeroSource) + (hff : ∀ x y, u.1.1 x ≠ 0 → v.1.1 y ≠ 0 → d ≤ ‖x - y‖) + (hgg : ∀ x y, u.2.1 x ≠ 0 → v.2.1 y ≠ 0 → d ≤ ‖x - y‖) : + Integrable (fun xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + spatialFieldBesselKernel m (xy.1 - xy.2) * u.1.1 xy.1 * v.1.1 xy.2 + + spatialMomentumBesselKernel m (xy.1 - xy.2) * u.2.1 xy.1 * v.2.1 xy.2) + (volume.prod volume) := by + have hf := (integrable_spatialFieldKernel_pairing hm hd u.1 v.1 hff).re + have hg := (integrable_spatialMomentumKernel_pairing hm hd u.2 v.2 hgg).re + apply (hf.add hg).congr + filter_upwards with xy + simp only [Pi.add_apply, RCLike.re_eq_complex_re, ← Complex.ofReal_mul, + Complex.ofReal_re] + +theorem timeZeroFourierCovariance_eq_bessel_kernel {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (u v : TimeZeroSource) + (hff : ∀ x y, u.1.1 x ≠ 0 → v.1.1 y ≠ 0 → d ≤ ‖x - y‖) + (hgg : ∀ x y, u.2.1 x ≠ 0 → v.2.1 y ≠ 0 → d ≤ ‖x - y‖) : + timeZeroFourierCovariance m u v = + ∫ xy, spatialFieldBesselKernel m (xy.1 - xy.2) * u.1.1 xy.1 * v.1.1 xy.2 + + spatialMomentumBesselKernel m (xy.1 - xy.2) * u.2.1 xy.1 * v.2.1 xy.2 + ∂volume.prod volume := by + have hf := spatialFourier_field_covariance_real_kernel hm hd u.1 v.1 hff + have hg := spatialFourier_momentum_covariance_real_kernel hm hd u.2 v.2 hgg + have hfi : Integrable (fun xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + spatialFieldBesselKernel m (xy.1 - xy.2) * u.1.1 xy.1 * v.1.1 xy.2) + (volume.prod volume) := by + simpa only [RCLike.re_eq_complex_re, ← Complex.ofReal_mul, + Complex.ofReal_re, Pi.add_apply] using + (integrable_spatialFieldKernel_pairing hm hd u.1 v.1 hff).re + have hgi : Integrable (fun xy : EuclideanSpace ℝ (Fin 3) × EuclideanSpace ℝ (Fin 3) => + spatialMomentumBesselKernel m (xy.1 - xy.2) * u.2.1 xy.1 * v.2.1 xy.2) + (volume.prod volume) := by + simpa only [RCLike.re_eq_complex_re, ← Complex.ofReal_mul, + Complex.ofReal_re, Pi.add_apply] using + (integrable_spatialMomentumKernel_pairing hm hd u.2 v.2 hgg).re + unfold timeZeroFourierCovariance timeZeroFourierDiagonal + rw [add_mul, Complex.add_re, integral_add hfi hgi] + have hfc : (∫ p : EuclideanSpace ℝ (Fin 3), + (conj (spatialFourier u.1 p) * spatialFourier v.1 p) * ((dispersion m p)⁻¹ : ℝ)) = + ∫ p : EuclideanSpace ℝ (Fin 3), ((dispersion m p)⁻¹ : ℝ) * + (conj (spatialFourier u.1 p) * spatialFourier v.1 p) := by + apply integral_congr_ae + exact Filter.Eventually.of_forall (fun _ => mul_comm _ _) + have hgc : (∫ p : EuclideanSpace ℝ (Fin 3), + (conj (spatialFourier u.2 p) * spatialFourier v.2 p) * (dispersion m p : ℂ)) = + ∫ p : EuclideanSpace ℝ (Fin 3), (dispersion m p : ℂ) * + (conj (spatialFourier u.2 p) * spatialFourier v.2 p) := by + apply integral_congr_ae + exact Filter.Eventually.of_forall (fun _ => mul_comm _ _) + rw [hfc, hgc, mul_comm _ (((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ)), + mul_comm _ (((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ)), hf, hg] + +theorem timeZeroOneParticleInner_re_eq_bessel_kernel {m d : ℝ} (hm : 0 < m) (hd : 0 < d) + (u v : TimeZeroSource) + (hff : ∀ x y, u.1.1 x ≠ 0 → v.1.1 y ≠ 0 → d ≤ ‖x - y‖) + (hgg : ∀ x y, u.2.1 x ≠ 0 → v.2.1 y ≠ 0 → d ≤ ‖x - y‖) : + (timeZeroOneParticleInner m u v).re = + ∫ xy, spatialFieldBesselKernel m (xy.1 - xy.2) * u.1.1 xy.1 * v.1.1 xy.2 + + spatialMomentumBesselKernel m (xy.1 - xy.2) * u.2.1 xy.1 * v.2.1 xy.2 + ∂volume.prod volume := by + rw [timeZeroGram_identity hm] + simp only [Complex.add_re, Complex.ofReal_re, Complex.mul_re, Complex.div_ofNat_re, + Complex.I_re, zero_div, zero_mul, Complex.ofReal_im, mul_zero, sub_zero, add_zero] + exact timeZeroFourierCovariance_eq_bessel_kernel hm hd u v hff hgg + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialSourceReserveEstimate.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialSourceReserveEstimate.lean new file mode 100644 index 0000000000..0b60e25a86 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialSourceReserveEstimate.lean @@ -0,0 +1,132 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CenteredWeightedSourceMoments +public import LeanPool.VacuumBellSeparation.FreeField.SpatialSourceReserveFactor + +/-! +# Actual separated-source reserve factor and its quantitative norms + +The original polynomial moment vectors are now constructed from the +completed weighted evaluation theorem. Combined with the actual kernel +series they give the factorization without any analytic moment or +kernel-series hypotheses. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification +open scoped BigOperators ENNReal + +/-- Source field moment envelope given by `C * T / (1 + m * T) * Real.exp (sourceMomentLambda b * m +* T)`. -/ +def sourceFieldMomentEnvelope (C b m T : ℝ) : ℝ := + C * T / (1 + m * T) * Real.exp (sourceMomentLambda b * m * T) + +/-- Source momentum moment envelope given by `C * T ^ 2 / (1 + m * T) ^ 2 * Real.exp +(sourceMomentLambda b * m * T)`. -/ +def sourceMomentumMomentEnvelope (C b m T : ℝ) : ℝ := + C * T ^ 2 / (1 + m * T) ^ 2 * Real.exp (sourceMomentLambda b * m * T) + +/-- Spatial source factor bound. -/ +def spatialSourceFactorBound (C b m s T : ℝ) : ℝ := + 64 * spatialFieldPolydiscBound m s (2 * (sourceMomentBase b * T)) * + sourceFieldMomentEnvelope C b m T ^ 2 + + 64 * spatialMomentumPolydiscBound m s (2 * (sourceMomentBase b * T)) * + sourceMomentumMomentEnvelope C b m T ^ 2 + +theorem centeredSpatialTestMoment_zero (f : SpatialTestFunction) (α : Fin 3 → ℕ) : + centeredSpatialTestMoment 0 f α = spatialRealTestMoment f α := by + have hf : spatialTestTranslate (-(0 : EuclideanSpace ℝ (Fin 3))) f = f := by + apply Subtype.ext + funext x + simp only [spatialTestTranslate, neg_zero, sub_zero] + rw [centeredSpatialTestMoment, hf] + +theorem exists_spatial_source_reserve_estimate {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + ∃ C : ℝ, 0 < C ∧ + ∀ (m : ℝ) (hm : 0 < m) (T : ℝ) (_ : 0 < T) (s : ℝ), + 16 * Real.sqrt 3 * (sourceMomentBase b * T) ≤ s → + ∀ (U W : Set (EuclideanSpace ℝ (Fin 3))), + U ⊆ Metric.ball 0 T → W ⊆ Metric.ball (spatialAxisDisplacement s 0) T → + ∃ Y : HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)) →L[ℂ] + HilbertComplexification (WithLp 2 (SourceHilbert hm U × SourceHilbert hm W)), + complexify (productSourceCovariancePerturbation hm U W) = + reserve (normalizedCommutation + (complexify (productSourceCommutation hm (UA := U) (UB := W)))) ^ b * + Y * reserve (normalizedCommutation + (complexify (productSourceCommutation hm (UA := U) (UB := W)))) ^ b ∧ + IsCompactOperator Y ∧ IsSelfAdjoint Y ∧ + ‖Y‖ ≤ spatialSourceFactorBound C b m s T ∧ + operatorTraceNorm Y ≤ ENNReal.ofReal (2 * spatialSourceFactorBound C b m s T) ∧ + operatorTraceNorm Y < ∞ := by + obtain ⟨C, hC, hvec⟩ := exists_centered_weightedSource_moment_vectors hb hb1 + refine ⟨C, hC, ?_⟩ + intro m hm T hT s hsep U W hU hW + let B := sourceMomentBase b * T + have hB : 0 < B := by + dsimp [B, sourceMomentBase] + exact mul_pos (mul_pos (by norm_num) (sourceMomentLambda_pos hb hb1)) hT + have hTB : T ≤ B := by + have hΛ := one_le_sourceMomentLambda hb hb1 + dsimp [B, sourceMomentBase] + nlinarith + have hs : 0 < s := (show 0 < 16 * Real.sqrt 3 * B by positivity).trans_le hsep + have hAf : 0 ≤ sourceFieldMomentEnvelope C b m T := by + unfold sourceFieldMomentEnvelope + positivity + have hAp : 0 ≤ sourceMomentumMomentEnvelope C b m T := by + unfold sourceMomentumMomentEnvelope + positivity + choose uf ug huf hug heuf heug using hvec m hm T hT 0 U hU + choose vf vg hvf hvg hevf hevg using hvec m hm T hT (spatialAxisDisplacement s 0) W hW + let u : SpatialCrossIndex → ComplexSourceHilbert hm U := + Sum.elim (fun k => uf k.1) (fun k => ug k.1) + let v : SpatialCrossIndex → ComplexSourceHilbert hm W := + Sum.elim (fun k => vf k.2) (fun k => vg k.2) + have hun (i : SpatialCrossIndex) (x : SourceTestSpace hm U) : + inner ℂ (ofReal (x : SourceHilbert hm U)) ((sourceReserve hm U ^ b) (u i)) = + (spatialCrossLeftMoment i x.1 : ℂ) := by + cases i with + | inl k => simpa only [u, Sum.elim_inl, spatialCrossLeftMoment, + centeredSpatialTestMoment_zero] using heuf k.1 x + | inr k => simpa only [u, Sum.elim_inr, spatialCrossLeftMoment, + centeredSpatialTestMoment_zero] using heug k.1 x + have hvn (i : SpatialCrossIndex) (x : SourceTestSpace hm W) : + inner ℂ (ofReal (x : SourceHilbert hm W)) ((sourceReserve hm W ^ b) (v i)) = + (spatialCrossRightMoment s i x.1 : ℂ) := by + cases i with + | inl k => exact hevf k.2 x + | inr k => exact hevg k.2 x + obtain ⟨hsum, hnorm⟩ := spatialCross_weighted_vector_series hm hs hB hAf hAp + hsep u v (fun k => huf k.1) (fun k => hug k.1) + (fun k => hvf k.2) (fun k => hvg k.2) + have hnorm' : (∑' i, ‖(spatialCrossCoefficient m s (2 * B) i : ℂ) • u i‖ * ‖v i‖) ≤ + spatialSourceFactorBound C b m s T := by + simpa only [spatialSourceFactorBound, B, sourceFieldMomentEnvelope, + sourceMomentumMomentEnvelope, pow_two, mul_assoc] using hnorm + have hUc : ∀ x ∈ U, ∀ j, ‖x j‖ ≤ (2 * B) / 2 := by + intro x hx j + have hn : ‖x‖ < T := by simpa only [Metric.mem_ball, dist_zero_right] using hU hx + exact (PiLp.norm_apply_le x j).trans (hn.le.trans (by linarith)) + have hWc : ∀ x ∈ W, ∀ j, ‖(x - spatialAxisDisplacement s 0) j‖ ≤ (2 * B) / 2 := by + intro x hx j + have hn : ‖x - spatialAxisDisplacement s 0‖ < T := by + simpa only [Metric.mem_ball, dist_eq_norm] using hW hx + exact (PiLp.norm_apply_le _ j).trans (hn.le.trans (by linarith)) + obtain ⟨Y, hfac, hc, hsa, hY, hY₁, hfin⟩ := exists_spatial_source_reserve_factor hm hs + (show 0 < 2 * B by positivity) (show 8 * Real.sqrt 3 * (2 * B) ≤ s by nlinarith) + (show 0 ≤ b by linarith) hUc hWc u v hsum hun hvn + refine ⟨Y, hfac, hc, hsa, hY.trans hnorm', hY₁.trans ?_, hfin⟩ + exact ENNReal.ofReal_le_ofReal (mul_le_mul_of_nonneg_left hnorm' (by norm_num)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialSourceReserveFactor.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialSourceReserveFactor.lean new file mode 100644 index 0000000000..b8a2311ee8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialSourceReserveFactor.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceCrossSeriesReconstruction +public import LeanPool.VacuumBellSeparation.FreeField.SpatialCrossCoefficientBounds +public import LeanPool.VacuumBellSeparation.Gaussian.CrossSeriesSummability + +/-! +# The actual spatial reserve factor from weighted original moments + +The actual scalar Taylor expansion, density of the original test pairs and +norm convergence now discharge the operator-series hypothesis. The only +analytic inputs left are weighted moment vectors representing the literal +polynomial functionals, and their norm-product summability. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification +open scoped ENNReal + +variable {μ s R b : ℝ} (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) + (hsep : 8 * Real.sqrt 3 * R ≤ s) (hb : 0 ≤ b) + {U W : Set (EuclideanSpace ℝ (Fin 3))} + (hU : ∀ x ∈ U, ∀ j, ‖x j‖ ≤ R / 2) + (hW : ∀ x ∈ W, ∀ j, ‖(x - spatialAxisDisplacement s 0) j‖ ≤ R / 2) + +include hs hR hsep hU hW in +theorem hasSum_spatial_source_weighted_cross + (u : SpatialCrossIndex → ComplexSourceHilbert hμ U) + (v : SpatialCrossIndex → ComplexSourceHilbert hμ W) + (hn : Summable fun i => ‖(spatialCrossCoefficient μ s R i : ℂ) • u i‖ * ‖v i‖) + (hu : ∀ i (x : SourceTestSpace hμ U), + inner ℂ (ofReal (x : SourceHilbert hμ U)) ((sourceReserve hμ U ^ b) (u i)) = + (spatialCrossLeftMoment i x.1 : ℂ)) + (hv : ∀ i (y : SourceTestSpace hμ W), + inner ℂ (ofReal (y : SourceHilbert hμ W)) ((sourceReserve hμ W ^ b) (v i)) = + (spatialCrossRightMoment s i y.1 : ℂ)) : + HasSum (fun i => crossRankOne + ((sourceReserve hμ U ^ b) ((spatialCrossCoefficient μ s R i : ℂ) • u i)) + ((sourceReserve hμ W ^ b) (v i))) + ((productSourceComplexEquiv hμ U W).conjStarAlgEquiv + (complexify (productSourceCovariancePerturbation hμ U W))) := by + apply hasSum_productSource_cross_of_test_moments hμ U W _ _ + (fun i x => spatialCrossCoefficient μ s R i * spatialCrossLeftMoment i x.1) + (fun i y => spatialCrossRightMoment s i y.1) + (summable_norm_product_map hn (sourceReserve hμ U ^ b) (sourceReserve hμ W ^ b)) + · intro i x + rw [map_smul, inner_smul_right, hu, Complex.ofReal_mul] + · exact hv + · intro x y + exact hasSum_localized_source_cross_index hμ hs hR hsep hU hW x y + +include hs hR hsep hb hU hW in +/-- The actual full-source factor, with its true operator and nuclear norms. +No scalar or operator kernel expansion is supplied as an assumption. -/ +theorem exists_spatial_source_reserve_factor + (u : SpatialCrossIndex → ComplexSourceHilbert hμ U) + (v : SpatialCrossIndex → ComplexSourceHilbert hμ W) + (hn : Summable fun i => ‖(spatialCrossCoefficient μ s R i : ℂ) • u i‖ * ‖v i‖) + (hu : ∀ i (x : SourceTestSpace hμ U), + inner ℂ (ofReal (x : SourceHilbert hμ U)) ((sourceReserve hμ U ^ b) (u i)) = + (spatialCrossLeftMoment i x.1 : ℂ)) + (hv : ∀ i (y : SourceTestSpace hμ W), + inner ℂ (ofReal (y : SourceHilbert hμ W)) ((sourceReserve hμ W ^ b) (v i)) = + (spatialCrossRightMoment s i y.1 : ℂ)) : + ∃ Y : HilbertComplexification (WithLp 2 (SourceHilbert hμ U × SourceHilbert hμ W)) →L[ℂ] + HilbertComplexification (WithLp 2 (SourceHilbert hμ U × SourceHilbert hμ W)), + complexify (productSourceCovariancePerturbation hμ U W) = + reserve (normalizedCommutation (complexify (productSourceCommutation hμ (UA := U) + (UB := W)))) ^ b * + Y * reserve (normalizedCommutation (complexify (productSourceCommutation hμ (UA := U) + (UB := W)))) ^ b ∧ + IsCompactOperator Y ∧ IsSelfAdjoint Y ∧ + ‖Y‖ ≤ ∑' i, ‖(spatialCrossCoefficient μ s R i : ℂ) • u i‖ * ‖v i‖ ∧ + operatorTraceNorm Y ≤ ENNReal.ofReal + (2 * ∑' i, ‖(spatialCrossCoefficient μ s R i : ℂ) • u i‖ * ‖v i‖) ∧ + operatorTraceNorm Y < ∞ := by + exact exists_productSource_reserve_factor_of_cross_series hμ U W hb + (fun i => (spatialCrossCoefficient μ s R i : ℂ) • u i) v hn + (hasSum_spatial_source_weighted_cross hμ hs hR hsep hU hW u v hn hu hv) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialTestMoments.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialTestMoments.lean new file mode 100644 index 0000000000..b1bf81f7d7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialTestMoments.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialKernelTaylorReal + +/-! +# Literal polynomial moments of the original compact spatial tests +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian MeasureTheory +open scoped BigOperators + +/-- Spatial monomial given by `∏ j, (x j : ℂ) ^ α j`. -/ +noncomputable def spatialMonomial (α : Fin 3 → ℕ) (x : EuclideanSpace ℝ (Fin 3)) : ℂ := + ∏ j, (x j : ℂ) ^ α j + +/-- Spatial test moment given by `∫ x, spatialMonomial α x * (f.1 x : ℂ)`. -/ +noncomputable def spatialTestMoment (f : SpatialTestFunction) (α : Fin 3 → ℕ) : ℂ := + ∫ x, spatialMonomial α x * (f.1 x : ℂ) + +theorem continuous_spatialMonomial (α : Fin 3 → ℕ) : Continuous (spatialMonomial α) := by + unfold spatialMonomial + fun_prop + +theorem integrable_spatialTestMoment (f : SpatialTestFunction) (α : Fin 3 → ℕ) : + Integrable (fun x => spatialMonomial α x * (f.1 x : ℂ)) := by + have hc := (continuous_spatialMonomial α).mul (Complex.continuous_ofReal.comp f.2.1.continuous) + apply hc.integrable_of_hasCompactSupport + exact (f.2.2.comp_left (g := fun r : ℝ => (r : ℂ)) (by simp)).mul_left + +theorem spatialMonomial_norm_le {a : ℝ} (α : Fin 3 → ℕ) + (x : EuclideanSpace ℝ (Fin 3)) (hx : ∀ j, ‖x j‖ ≤ a) : + ‖spatialMonomial α x‖ ≤ a ^ (∑ j, α j) := by + simp only [spatialMonomial, norm_prod, norm_pow, Complex.norm_real] + rw [← Finset.prod_pow_eq_pow_sum] + exact Finset.prod_le_prod₀ (fun _ _ => by positivity) + (fun j _ => pow_le_pow_left₀ (norm_nonneg _) (hx j) _) + +theorem spatialTestMoment_norm_le {a : ℝ} + (f : SpatialTestFunction) (hf : ∀ x, f.1 x ≠ 0 → ∀ j, ‖x j‖ ≤ a) + (α : Fin 3 → ℕ) : + ‖spatialTestMoment f α‖ ≤ a ^ (∑ j, α j) * ∫ x, ‖f.1 x‖ := by + have hint : Integrable f.1 := f.2.1.continuous.integrable_of_hasCompactSupport f.2.2 + have hb (x : EuclideanSpace ℝ (Fin 3)) : + ‖spatialMonomial α x * (f.1 x : ℂ)‖ ≤ a ^ (∑ j, α j) * ‖f.1 x‖ := by + by_cases hx : f.1 x = 0 + · simp [hx] + · rw [norm_mul, Complex.norm_real] + exact mul_le_mul_of_nonneg_right (spatialMonomial_norm_le α x (hf x hx)) (norm_nonneg _) + apply (norm_integral_le_of_norm_le (hint.norm.const_mul _) + (Filter.Eventually.of_forall hb)).trans_eq + exact integral_const_mul _ _ + +theorem spatialMonomial_pair_half_bound {R M : ℝ} (hR : 0 < R) (hM : 0 ≤ M) + (α β : Fin 3 → ℕ) (c : ℂ) + (hc : ‖c‖ ≤ M * R⁻¹ ^ ((∑ j, α j) + ∑ j, β j)) + (x y : EuclideanSpace ℝ (Fin 3)) + (hx : ∀ j, ‖x j‖ ≤ R / 2) (hy : ∀ j, ‖y j‖ ≤ R / 2) : + ‖c * spatialMonomial α x * spatialMonomial β y‖ ≤ + M * (1 / 2 : ℝ) ^ ((∑ j, α j) + ∑ j, β j) := by + rw [norm_mul, norm_mul] + calc + _ ≤ (M * R⁻¹ ^ ((∑ j, α j) + ∑ j, β j)) * + (R / 2) ^ (∑ j, α j) * (R / 2) ^ (∑ j, β j) := by + exact mul_le_mul + (mul_le_mul hc (spatialMonomial_norm_le α x hx) + (norm_nonneg _) (by positivity)) + (spatialMonomial_norm_le β y hy) (norm_nonneg _) (by positivity) + _ = M * (1 / 2 : ℝ) ^ ((∑ j, α j) + ∑ j, β j) := by + rw [show (M * R⁻¹ ^ ((∑ j, α j) + ∑ j, β j)) * + (R / 2) ^ (∑ j, α j) * (R / 2) ^ (∑ j, β j) = + M * (R⁻¹ ^ ((∑ j, α j) + ∑ j, β j) * + ((R / 2) ^ (∑ j, α j) * (R / 2) ^ (∑ j, β j))) by ring, + ← pow_add, ← mul_pow] + congr 2 + field_simp + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialTestParametricIntegral.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialTestParametricIntegral.lean new file mode 100644 index 0000000000..5d33eabd1a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialTestParametricIntegral.lean @@ -0,0 +1,60 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDefs +public import Mathlib.Analysis.Calculus.ParametricIntegral + +/-! +# Differentiation of actual compact spatial-test integrals + +Joint continuity and a scalar derivative of the kernel give a local +integrable derivative majorant on the literal compact support. The +integral and its derivative are ordinary three-dimensional integrals. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter + +theorem hasDerivAt_spatialTest_integral + (f : SpatialTestFunction) + (K D : ℂ → EuclideanSpace ℝ (Fin 3) → ℂ) + (hK : Continuous (fun q : ℂ × EuclideanSpace ℝ (Fin 3) => K q.1 q.2)) + (hD : Continuous (fun q : ℂ × EuclideanSpace ℝ (Fin 3) => D q.1 q.2)) + (hd : ∀ ζ x, HasDerivAt (fun z => K z x) (D ζ x) ζ) (ζ₀ : ℂ) : + HasDerivAt (fun ζ => ∫ x, K ζ x * (f.1 x : ℂ)) + (∫ x, D ζ₀ x * (f.1 x : ℂ)) ζ₀ := by + have hint (ζ : ℂ) : Integrable (fun x => K ζ x * (f.1 x : ℂ)) := + ((hK.comp (continuous_const.prodMk continuous_id)).mul + (Complex.continuous_ofReal.comp f.2.1.continuous)).integrable_of_hasCompactSupport + ((f.2.2.comp_left Complex.ofReal_zero).mul_left) + have hdf : Continuous (fun x => D ζ₀ x * (f.1 x : ℂ)) := + (hD.comp (continuous_const.prodMk continuous_id)).mul + (Complex.continuous_ofReal.comp f.2.1.continuous) + obtain ⟨C, hC⟩ := ((isCompact_closedBall ζ₀ 1).prod f.2.2).exists_bound_of_continuousOn + hD.continuousOn + have hb (x : EuclideanSpace ℝ (Fin 3)) (ζ : ℂ) (hζ : ζ ∈ Metric.ball ζ₀ 1) : + ‖D ζ x * (f.1 x : ℂ)‖ ≤ C * |f.1 x| := by + by_cases hx : x ∈ tsupport f.1 + · rw [norm_mul, Complex.norm_real, Real.norm_eq_abs] + exact mul_le_mul_of_nonneg_right + (hC (ζ, x) ⟨Metric.ball_subset_closedBall hζ, hx⟩) (abs_nonneg _) + · simp only [image_eq_zero_of_notMem_tsupport hx, Complex.ofReal_zero, + mul_zero, norm_zero, abs_zero, le_refl] + exact (hasDerivAt_integral_of_dominated_loc_of_deriv_le + (F := fun ζ x => K ζ x * (f.1 x : ℂ)) + (F' := fun ζ x => D ζ x * (f.1 x : ℂ)) (bound := fun x => C * |f.1 x|) + (Metric.ball_mem_nhds ζ₀ (by norm_num)) + (Eventually.of_forall fun ζ => (hint ζ).aestronglyMeasurable) + (hint ζ₀) hdf.aestronglyMeasurable (Eventually.of_forall hb) + ((f.2.1.continuous.integrable_of_hasCompactSupport f.2.2).abs.const_mul C) + (Eventually.of_forall fun x ζ _ => (hd ζ x).mul_const (f.1 x : ℂ))).2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/SpatialTestTranslation.lean b/LeanPool/VacuumBellSeparation/FreeField/SpatialTestTranslation.lean new file mode 100644 index 0000000000..2506550e4c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/SpatialTestTranslation.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceWave +public import LeanPool.VacuumBellSeparation.FreeField.LpUnitModulus +public import Mathlib.MeasureTheory.Group.Integral + +/-! +# Literal spatial translation of compact Cauchy data and physical vectors + +Translation by a sends f(x) to f(x-a). The original unnormalized Fourier +transform therefore acquires exp(-i p.a), including at complex momenta. +The corresponding map on the entire physical L2 space is unitary. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace + +/-- Spatial test translate. -/ +noncomputable def spatialTestTranslate (a : EuclideanSpace ℝ (Fin 3)) + (f : SpatialTestFunction) : SpatialTestFunction := + ⟨fun x => f.1 (x - a), f.2.1.comp (contDiff_id.sub contDiff_const), + f.2.2.comp_homeomorph (Homeomorph.subRight a)⟩ + +theorem tsupport_spatialTestTranslate (a : EuclideanSpace ℝ (Fin 3)) + (f : SpatialTestFunction) : + tsupport (spatialTestTranslate a f).1 = (fun x => x - a) ⁻¹' tsupport f.1 := + tsupport_comp_eq_preimage f.1 (Homeomorph.subRight a) + +theorem spatialTestTranslate_neg_cancel (a : EuclideanSpace ℝ (Fin 3)) + (f : SpatialTestFunction) : spatialTestTranslate (-a) (spatialTestTranslate a f) = f := by + apply Subtype.ext + funext x + simp only [spatialTestTranslate, sub_neg_eq_add, add_sub_cancel_right] + +theorem spatialDot_ofReal_add (z : Fin 3 → ℂ) (x a : EuclideanSpace ℝ (Fin 3)) : + spatialDot z (fun i => ((x + a) i : ℂ)) = + spatialDot z (fun i => (x i : ℂ)) + spatialDot z (fun i => (a i : ℂ)) := by + simp only [spatialDot, PiLp.add_apply, Complex.ofReal_add, mul_add, Finset.sum_add_distrib] + +theorem complexSpatialFourier_translate (a : EuclideanSpace ℝ (Fin 3)) + (f : SpatialTestFunction) (z : Fin 3 → ℂ) : + complexSpatialFourier (spatialTestTranslate a f) z = + Complex.exp (-(Complex.I * spatialDot z (fun i => (a i : ℂ)))) * + complexSpatialFourier f z := by + unfold complexSpatialFourier + rw [← integral_add_right_eq_self + (fun x : EuclideanSpace ℝ (Fin 3) => + Complex.exp (-(Complex.I * spatialDot z (fun i => (x i : ℂ)))) * + ((spatialTestTranslate a f).1 x : ℂ)) a] + simp only [spatialTestTranslate, add_sub_cancel_right, spatialDot_ofReal_add] + rw [← integral_const_mul] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + dsimp only + rw [mul_add, neg_add, Complex.exp_add] + ring + +/-- Time zero translate. -/ +noncomputable def timeZeroTranslate (a : EuclideanSpace ℝ (Fin 3)) + (u : TimeZeroSource) : TimeZeroSource := + (spatialTestTranslate a u.1, spatialTestTranslate a u.2) + +theorem complexSourceWave_translate (a : EuclideanSpace ℝ (Fin 3)) + (u : TimeZeroSource) (z : ℂ × (Fin 3 → ℂ)) : + complexSourceWave (timeZeroTranslate a u) z = + Complex.exp (-(Complex.I * spatialDot z.2 (fun i => (a i : ℂ)))) * + complexSourceWave u z := by + simp only [complexSourceWave, timeZeroTranslate, complexSpatialFourier_translate] + ring + +/-- Spatial translation phase given by `Complex.exp (-(Complex.I * (⟪p, a⟫_ℝ : ℂ)))`. -/ +noncomputable def spatialTranslationPhase (a p : EuclideanSpace ℝ (Fin 3)) : ℂ := + Complex.exp (-(Complex.I * (⟪p, a⟫_ℝ : ℂ))) + +theorem measurable_spatialTranslationPhase (a : EuclideanSpace ℝ (Fin 3)) : + Measurable (spatialTranslationPhase a) := by + unfold spatialTranslationPhase + fun_prop + +theorem norm_spatialTranslationPhase (a p : EuclideanSpace ℝ (Fin 3)) : + ‖spatialTranslationPhase a p‖ = 1 := by + rw [spatialTranslationPhase, Complex.norm_exp] + simp + +/-- Linear isometry equivalence for the one particle spatial translation, of type `Lp ℂ 2 +(oneParticleMeasure m) ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def oneParticleSpatialTranslation (m : ℝ) + (a : EuclideanSpace ℝ (Fin 3)) : + Lp ℂ 2 (oneParticleMeasure m) ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + lpUnitModulus (oneParticleMeasure m) (spatialTranslationPhase a) + (measurable_spatialTranslationPhase a) (norm_spatialTranslationPhase a) + +theorem oneParticleSpatialTranslation_ae (m : ℝ) (a : EuclideanSpace ℝ (Fin 3)) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + oneParticleSpatialTranslation m a ψ =ᵐ[oneParticleMeasure m] + fun p => spatialTranslationPhase a p * ψ p := + lpUnitModulus_ae _ _ _ _ ψ + +theorem timeZeroOneParticle_translate (m : ℝ) (a : EuclideanSpace ℝ (Fin 3)) + (u : TimeZeroSource) (p : EuclideanSpace ℝ (Fin 3)) : + timeZeroOneParticle m (timeZeroTranslate a u) p = + spatialTranslationPhase a p * timeZeroOneParticle m u p := by + rw [← complexSourceWave_onShell, complexSourceWave_translate, + real_spatialDot, complexSourceWave_onShell] + rfl + +theorem timeZeroL2_translate {m : ℝ} (hm : 0 < m) + (a : EuclideanSpace ℝ (Fin 3)) (u : TimeZeroSource) : + timeZeroL2 hm (timeZeroTranslate a u) = oneParticleSpatialTranslation m a + (timeZeroL2 hm u) := by + apply Lp.ext + filter_upwards [coeFn_timeZeroL2 hm (timeZeroTranslate a u), + oneParticleSpatialTranslation_ae m a (timeZeroL2 hm u), coeFn_timeZeroL2 hm u] + with p hT hU hu + rw [hT, hU, hu, timeZeroOneParticle_translate] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/StandardSourceSpace.lean b/LeanPool/VacuumBellSeparation/FreeField/StandardSourceSpace.lean new file mode 100644 index 0000000000..590f60c106 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/StandardSourceSpace.lean @@ -0,0 +1,75 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LocalComplexDensity +public import LeanPool.VacuumBellSeparation.FreeField.SourceGramStrictness + +/-! +# The actual local one-particle source space is standard + +For every bounded region with nonempty interior, complex injectivity gives +separation and the positive-energy argument gives cyclicity of its closed real +one-particle subspace. This packages precisely Mathlib's StandardSubspace. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ClosedSubmodule Set + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +theorem sourceRealSpace_inf_mulI_eq_bot (hU : Bornology.IsBounded U) : + sourceRealSpace hm U ⊓ (sourceRealSpace hm U).mulI = ⊥ := by + apply bot_unique + intro x hx + change x = 0 + apply sourceRealSpace_separating hm U hU x hx.1 + have h := (ClosedSubmodule.mem_mapEquiv_iff + (scalarSMulCLE _ Complex.UnitI) (sourceRealSpace hm U) x).mp hx.2 + have hn := (sourceRealSpace hm U).neg_mem h + simpa [scalarSMulCLE_symm_apply, Units.smul_def, Complex.UnitI, Complex.inv_I, + neg_smul] using hn + +theorem sourceRealSpace_sup_mulI_eq_top + (hd : DenseRange (complexSourceMap hm U)) : + sourceRealSpace hm U ⊔ (sourceRealSpace hm U).mulI = ⊤ := by + let S := sourceRealSpace hm U + let T : ClosedSubmodule ℝ (Lp ℂ 2 (oneParticleMeasure m)) := S ⊔ S.mulI + have hsub : Set.range (complexSourceMap hm U) ⊆ (T : Set _) := by + rintro _ ⟨z, rfl⟩ + change sourceEmbedding hm U z.re + Complex.I • sourceEmbedding hm U z.im ∈ T + apply T.add_mem + · exact (show S ≤ T from le_sup_left) + (show sourceEmbedding hm U z.re ∈ S from ⟨z.re, rfl⟩) + · apply ClosedSubmodule.mem_sup.mpr + apply subset_closure + apply Submodule.mem_sup_right + exact ⟨sourceEmbedding hm U z.im, ⟨z.im, rfl⟩, rfl⟩ + apply top_unique + intro x _ + apply closure_minimal hsub T.isClosed + rw [hd.closure_range] + trivial + +/-- The underlying real closed subspace remains the actual physical source range. -/ +noncomputable def physicalSourceStandardSubspace + (hU : Bornology.IsBounded U) (hopen : IsOpen U) (hne : U.Nonempty) : + StandardSubspace (Lp ℂ 2 (oneParticleMeasure m)) where + toClosedSubmodule := sourceRealSpace hm U + IsSeparating := sourceRealSpace_inf_mulI_eq_bot hm U hU + IsCyclic := sourceRealSpace_sup_mulI_eq_top hm U + (complexSourceMap_denseRange_of_open hm U hopen hne) + +@[simp] theorem physicalSourceStandardSubspace_toClosedSubmodule + (hU : Bornology.IsBounded U) (hopen : IsOpen U) (hne : U.Nonempty) : + (physicalSourceStandardSubspace hm U hU hopen hne).toClosedSubmodule = sourceRealSpace hm U + := rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Statements.lean b/LeanPool/VacuumBellSeparation/FreeField/Statements.lean new file mode 100644 index 0000000000..6d6aa7e390 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Statements.lean @@ -0,0 +1,68 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Defs + +/-! +# Formal statements of Theorem 1.1 and Corollary 1.2 + +The main result of the manuscript and its corollary, as `Prop`-valued definitions stated +separately from their proofs, which are in `FreeField/MainTheorems.lean` (`theorem_1_1`, +`corollary_1_2`). + +The statements quantify over every vacuum Weyl system `V : FreeFieldVacuum m H` in every +Hilbert space `H : Type`; by uniqueness of the GNS representation all such systems are +unitarily equivalent, and the Fock representation is one of them. The existence of a +`FreeFieldVacuum` for every mass `m > 0` (non-vacuity of these statements) is proved in +`FreeField/Existence.lean` (`freeFieldVacuum_exists`). +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- **Theorem 1.1 (separation threshold).** There is a finite constant `C_* > 2`, +independent of `m` and `R`, such that for all `m, R > 0` and `L ≥ C_* R`, the vacuum Bell +correlation `β_m(R, L)` of `𝔄_m(D_R)` and `𝔄_m(D_R + (0, L𝐞₁))` equals `1`. -/ +def Theorem_1_1 : Prop := + ∃ Cstar : ℝ, 2 < Cstar ∧ + ∀ m R L : ℝ, 0 < m → 0 < R → Cstar * R ≤ L → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H), freeFieldBell V R L = 1 + +/-- **Corollary 1.2 (fixed bounded regions).** For every `m > 0`, any two bounded regions +`O₁, O₂` and any spacelike vector `a`, the vacuum Bell correlation of `𝔄_m(O₁)` and +`𝔄_m(O₂ + t a)` equals `1` for all sufficiently large `t`. -/ +def Corollary_1_2 : Prop := + ∀ m : ℝ, 0 < m → ∀ O₁ O₂ : Set Spacetime, Bornology.IsBounded O₁ → Bornology.IsBounded O₂ → + ∀ a : Spacetime, a.1 ^ 2 < ‖a.2‖ ^ 2 → + ∃ T₀ : ℝ, ∀ t : ℝ, T₀ ≤ t → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H), + bellCorrelation (vectorState V.vacuum V.vacuum_norm) (localAlgebra V O₁) + (localAlgebra V ((fun x => x + t • a) '' O₂)) = 1 + +/-- **Lemma 2.1 (dilation)**, in the realization-independent form: for all `m, R, L > 0`, the +Bell correlation `β_m(R, L)` of any vacuum system of mass `m` equals `β_{mR}(1, L/R)` of any +vacuum system of mass `mR`. (This also contains the independence of `β` from the chosen +vacuum system, i.e. GNS uniqueness.) -/ +def Lemma_2_1 : Prop := + ∀ m R L : ℝ, 0 < m → 0 < R → 0 < L → + ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) + (H' : Type) [NormedAddCommGroup H'] [InnerProductSpace ℂ H'] [CompleteSpace H'] + (V' : FreeFieldVacuum (m * R) H'), + freeFieldBell V R L = freeFieldBell V' 1 (L / R) + +/-- Non-vacuity: a vacuum Weyl system of the free field of every mass `m > 0` +exists (the Fock vacuum representation). -/ +def FreeFieldVacuumExists : Prop := + ∀ m : ℝ, 0 < m → ∃ (H : Type) (_ : NormedAddCommGroup H) (_ : InnerProductSpace ℂ H) + (_ : CompleteSpace H), Nonempty (FreeFieldVacuum m H) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/StrongContinuity.lean b/LeanPool/VacuumBellSeparation/FreeField/StrongContinuity.lean new file mode 100644 index 0000000000..20f19f8a44 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/StrongContinuity.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Weyl.StrongContinuity +public import LeanPool.VacuumBellSeparation.FreeField.Uniqueness +public import LeanPool.VacuumBellSeparation.FreeField.Isotony +public import LeanPool.VacuumBellSeparation.Bell.StrongClosure + +/-! +# Strong continuity in every free-field vacuum representation + +An explicit Gaussian-kernel vacuum model transports the actual strong +continuity theorem to any `FreeFieldVacuum` by the proved GNS uniqueness +theorem. Thus convergence in the physical mass-shell L² norm is sufficient. +The local-algebra corollary states a genuine sufficient approximation +criterion; the time-slice identity (2.3) is proved without it, in +`FreeField/TimeSliceTheorem.lean` (`localAlgebra_doubleCone_eq_timeZeroLocalAlgebra`). +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology +open scoped InnerProductSpace + +variable {m : ℝ} + +/-- The explicit kernel model, rather than a chosen witness of existence. -/ +noncomputable def canonicalFreeFieldVacuum (hm : 0 < m) : + FreeFieldVacuum m (WeylSpace (oneParticleL2 hm)) where + weyl := weylCLM (oneParticleL2 hm) (oneParticleL2_add hm) + vacuum := weylVec (oneParticleL2 hm) 0 + weyl_mem_unitary := weylCLM_mem_unitary (oneParticleL2 hm) (oneParticleL2_add hm) + weyl_mul F G := by + rw [← inner_oneParticleL2 hm F G] + exact weylCLM_mul (oneParticleL2 hm) (oneParticleL2_add hm) F G + vacuum_norm := norm_weylVec_zero (oneParticleL2 hm) (oneParticleL2_add hm) + vacuum_weyl F := by + rw [← norm_oneParticleL2_sq hm F] + exact weyl_vacuum (oneParticleL2 hm) (oneParticleL2_add hm) F + cyclic := weyl_cyclic (oneParticleL2 hm) (oneParticleL2_add hm) + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Norm convergence of the actual one-particle vectors gives strong +convergence of the Weyl operators in every vacuum representation. -/ +theorem FreeFieldVacuum.tendsto_weyl_of_oneParticleL2 (V : FreeFieldVacuum m H) + (hm : 0 < m) {α : Type*} {l : Filter α} + {Fs : α → RealTestFunction} {F : RealTestFunction} + (hF : Tendsto (fun i => oneParticleL2 hm (Fs i)) l (𝓝 (oneParticleL2 hm F))) + (x : H) : Tendsto (fun i => V.weyl (Fs i) x) l (𝓝 (V.weyl F x)) := by + obtain ⟨U, hΩ, hW⟩ := V.exists_unitary_equiv (canonicalFreeFieldVacuum hm) + have ht := U.symm.continuous.continuousAt.tendsto.comp + (tendsto_weylCLM_strong (oneParticleL2 hm) (oneParticleL2_add hm) hF (U x)) + change Tendsto (fun i => U.symm ((canonicalFreeFieldVacuum hm).weyl (Fs i) (U x))) l + (𝓝 (U.symm ((canonicalFreeFieldVacuum hm).weyl F (U x)))) at ht + simpa only [← hW, U.symm_apply_apply] using ht + +theorem FreeFieldVacuum.weyl_eq_of_oneParticleL2_eq (V : FreeFieldVacuum m H) + (hm : 0 < m) {F G : RealTestFunction} + (hFG : oneParticleL2 hm F = oneParticleL2 hm G) : V.weyl F = V.weyl G := by + apply ContinuousLinearMap.ext + intro x + have ht := V.tendsto_weyl_of_oneParticleL2 hm + (l := atTop) (Fs := fun _ : ℕ => F) (F := G) + (by rw [hFG]; exact tendsto_const_nhds) x + exact tendsto_nhds_unique tendsto_const_nhds ht + +theorem subset_generatedVNA (S : Set (H →L[ℂ] H)) : S ⊆ generatedVNA S := by + intro T hT + change T ∈ (commutantOf S).commutant + rw [VonNeumannAlgebra.mem_commutant_iff] + intro B hB + have hb := mem_commutantOf_iff.mp hB + exact (Set.mem_centralizer_iff.mp hb T (Set.mem_union_left _ hT)).symm + +theorem FreeFieldVacuum.weyl_mem_localAlgebra (V : FreeFieldVacuum m H) + {O : Set Spacetime} (F : RealTestFunction) (hF : tsupport F.1 ⊆ O) : + V.weyl F ∈ localAlgebra V O := + subset_generatedVNA _ ⟨F, hF, rfl⟩ + +/-- The local algebra contains any Weyl operator whose actual one-particle +vector is a limit of vectors of sources supported in that region. -/ +theorem FreeFieldVacuum.weyl_mem_localAlgebra_of_oneParticleL2_tendsto + (V : FreeFieldVacuum m H) (hm : 0 < m) + {α : Type*} {l : Filter α} [l.NeBot] {O : Set Spacetime} + {Fs : α → RealTestFunction} {F : RealTestFunction} + (hsupp : ∀ᶠ i in l, tsupport (Fs i).1 ⊆ O) + (hF : Tendsto (fun i => oneParticleL2 hm (Fs i)) l (𝓝 (oneParticleL2 hm F))) : + V.weyl F ∈ localAlgebra V O := by + apply mem_vonNeumannAlgebra_of_strong_tendsto (localAlgebra V O) + (l := l) (Ts := fun i => V.weyl (Fs i)) + · exact hsupp.mono fun i hi => V.weyl_mem_localAlgebra (Fs i) hi + · exact V.tendsto_weyl_of_oneParticleL2 hm hF + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/StrongProductDerivative.lean b/LeanPool/VacuumBellSeparation/FreeField/StrongProductDerivative.lean new file mode 100644 index 0000000000..bcc32d78de --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/StrongProductDerivative.lean @@ -0,0 +1,61 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.LocallyConvex.AbsConvexOpen +public import Mathlib.Tactic.ReduceModChar +public import Mathlib.Tactic.TypeStar +public import Mathlib.Analysis.Calculus.Deriv.Basic +public import Mathlib.Analysis.Calculus.Deriv.Slope + +/-! +# Differentiating a strongly varying operator on a differentiable vector + +Only the fixed-vector derivative and continuity needed by the product rule +are assumed. A local uniform operator bound controls the moving-vector +residual. Operator-norm differentiability is not required. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology + +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + [NormedAddCommGroup F] [NormedSpace ℝ F] + +theorem hasDerivAt_strong_operator_apply (A : ℝ → E →L[ℝ] F) + {u : ℝ → E} {u' : E} {t : ℝ} {d : F} {C : ℝ} + (hu : HasDerivAt u u' t) + (hfixed : HasDerivAt (fun s => A s (u t)) d t) + (hcont : ContinuousAt (fun s => A s u') t) + (hbound : ∀ᶠ s in 𝓝 t, ‖A s‖ ≤ C) : + HasDerivAt (fun s => A s (u s)) (A t u' + d) t := by + let l := 𝓝[≠] t + have hres : Tendsto (fun s => slope u t s - u') l (𝓝 0) := by + simpa only [sub_self] using hu.tendsto_slope.sub (tendsto_const_nhds (x := u')) + have hterm₁ : Tendsto (fun s => A s (slope u t s - u')) l (𝓝 0) := by + rw [tendsto_zero_iff_norm_tendsto_zero] + apply squeeze_zero' (Eventually.of_forall fun _ => norm_nonneg _) + ((hbound.filter_mono nhdsWithin_le_nhds).mono fun s hs => + (A s).le_opNorm (slope u t s - u') |>.trans + (mul_le_mul_of_nonneg_right hs (norm_nonneg _))) + simpa only [norm_zero, mul_zero] using hres.norm.const_mul C + have hterm₂ : Tendsto (fun s => A s u') l (𝓝 (A t u')) := + hcont.tendsto.mono_left nhdsWithin_le_nhds + have hterm₃ : Tendsto (fun s => slope (fun r => A r (u t)) t s) l (𝓝 d) := + hfixed.tendsto_slope + rw [hasDerivAt_iff_tendsto_slope] + have ht := (hterm₁.add hterm₂).add hterm₃ + have heq (s : ℝ) : A s (slope u t s - u') + A s u' + + slope (fun r => A r (u t)) t s = slope (fun r => A r (u r)) t s := by + simp only [slope_def_module, map_sub, map_smul, smul_sub] + abel + simpa only [zero_add] using ht.congr' (Eventually.of_forall heq) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeSliceBall.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceBall.lean new file mode 100644 index 0000000000..5b41dadf71 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceBall.lean @@ -0,0 +1,80 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroToSpacetime +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroL2 +public import Mathlib.Topology.MetricSpace.ProperSpace.Lemmas + +/-! +# Reverse time-slice correspondence for the manuscript's open spatial balls + +Compact supports contained in the open ball admit one common strictly smaller +radius. The actual construction therefore realizes every such physical +time-zero vector by a real spacetime source in the corresponding double cone. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem exists_spacetimeSource_of_timeZeroSource_ball {m R : ℝ} + (hm : 0 < m) (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) + (u : TimeZeroSource) + (hf : tsupport u.1.1 ⊆ Metric.ball x₀ R) + (hg : tsupport u.2.1 ⊆ Metric.ball x₀ R) : + ∃ F : RealTestFunction, tsupport F.1 ⊆ doubleCone (0, x₀) R ∧ + ∀ p, oneParticle m F p = timeZeroOneParticle m u p := by + obtain ⟨r, hr, hs⟩ := exists_pos_lt_subset_ball hR + ((isClosed_tsupport u.1.1).union (isClosed_tsupport u.2.1)) + (Set.union_subset hf hg) + apply exists_spacetimeSource_of_timeZeroSource_radius_lt hm hr.1.le hr.2 x₀ u + · exact (Set.subset_union_left.trans hs).trans Metric.ball_subset_closedBall + · exact (Set.subset_union_right.trans hs).trans Metric.ball_subset_closedBall + +theorem oneParticleL2_eq_timeZeroL2_of_eq {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (u : TimeZeroSource) + (h : ∀ p, oneParticle m F p = timeZeroOneParticle m u p) : + oneParticleL2 hm F = timeZeroL2 hm u := by + apply MeasureTheory.Lp.ext + filter_upwards [coeFn_oneParticleL2 hm F, coeFn_timeZeroL2 hm u] with p hpF hpu + rw [hpF, hpu, h p] + +theorem exists_spacetimeSourceL2_of_timeZeroSource_ball {m R : ℝ} + (hm : 0 < m) (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) + (u : TimeZeroSource) + (hf : tsupport u.1.1 ⊆ Metric.ball x₀ R) + (hg : tsupport u.2.1 ⊆ Metric.ball x₀ R) : + ∃ F : RealTestFunction, tsupport F.1 ⊆ doubleCone (0, x₀) R ∧ + oneParticleL2 hm F = timeZeroL2 hm u := by + obtain ⟨F, hs, heq⟩ := exists_spacetimeSource_of_timeZeroSource_ball hm hR x₀ u hf hg + exact ⟨F, hs, oneParticleL2_eq_timeZeroL2_of_eq hm F u heq⟩ + +/-- Pointwise physical representative existence for every compact test pair. -/ +theorem exists_spacetimeSource_of_timeZeroSource_any {m : ℝ} + (hm : 0 < m) (u : TimeZeroSource) : + ∃ F : RealTestFunction, ∀ p, oneParticle m F p = timeZeroOneParticle m u p := by + have hs : IsCompact (tsupport u.1.1 ∪ tsupport u.2.1) := u.1.2.2.union u.2.2.2 + obtain ⟨R, hR, hsub⟩ := hs.isBounded.subset_ball_lt 0 + (0 : EuclideanSpace ℝ (Fin 3)) + obtain ⟨F, _, heq⟩ := exists_spacetimeSource_of_timeZeroSource_ball hm hR 0 u + (Set.subset_union_left.trans hsub) (Set.subset_union_right.trans hsub) + exact ⟨F, heq⟩ + +/-- No spatial localization assumption is needed for existence of some +spacetime representative of an actual compact time-zero test pair. -/ +theorem exists_spacetimeSourceL2_of_timeZeroSource {m : ℝ} + (hm : 0 < m) (u : TimeZeroSource) : + ∃ F : RealTestFunction, oneParticleL2 hm F = timeZeroL2 hm u := by + have hs : IsCompact (tsupport u.1.1 ∪ tsupport u.2.1) := u.1.2.2.union u.2.2.2 + obtain ⟨R, hR, hsub⟩ := hs.isBounded.subset_ball_lt 0 + (0 : EuclideanSpace ℝ (Fin 3)) + obtain ⟨F, _, heq⟩ := exists_spacetimeSourceL2_of_timeZeroSource_ball hm hR 0 u + (Set.subset_union_left.trans hsub) (Set.subset_union_right.trans hsub) + exact ⟨F, heq⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeSliceCutoff.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceCutoff.lean new file mode 100644 index 0000000000..2bf30e1837 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceCutoff.lean @@ -0,0 +1,77 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PlanarEnergyWeight +public import Mathlib.Analysis.Calculus.Deriv.Support + +/-! # An actual smooth time-slice switching function -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology Set +open scoped ContDiff + +/-- Time slice cutoff defined as `Real.smoothTransition ((t + ε) / (2 * ε))`. -/ +noncomputable def timeSliceCutoff (ε t : ℝ) : ℝ := + Real.smoothTransition ((t + ε) / (2 * ε)) + +theorem contDiff_timeSliceCutoff (ε : ℝ) : ContDiff ℝ (∞ : ℕ∞ω) (timeSliceCutoff ε) := + Real.smoothTransition.contDiff.comp + (((contDiff_id : ContDiff ℝ (∞ : ℕ∞ω) (fun t : ℝ => t)).add contDiff_const).div_const (2 * ε)) + +theorem timeSliceCutoff_zero {ε t : ℝ} (hε : 0 < ε) (ht : t ≤ -ε) : + timeSliceCutoff ε t = 0 := by + apply Real.smoothTransition.zero_of_nonpos + exact div_nonpos_of_nonpos_of_nonneg (by linarith) (by positivity) + +theorem timeSliceCutoff_one {ε t : ℝ} (hε : 0 < ε) (ht : ε ≤ t) : + timeSliceCutoff ε t = 1 := by + apply Real.smoothTransition.one_of_one_le + exact (le_div_iff₀ (by positivity : 0 < 2 * ε)).mpr (by linarith) + +theorem deriv_timeSliceCutoff_eq_zero_of_not_mem {ε : ℝ} (hε : 0 < ε) {t : ℝ} + (ht : t ∉ Icc (-ε) ε) : deriv (timeSliceCutoff ε) t = 0 := by + have hout : t < -ε ∨ ε < t := by simpa only [mem_Icc, not_and_or, not_le] using ht + rcases hout with ht | ht + · have heq : timeSliceCutoff ε =ᶠ[𝓝 t] (fun _ => 0) := by + filter_upwards [Iio_mem_nhds ht] with s hs + exact timeSliceCutoff_zero hε hs.le + rw [heq.deriv_eq] + exact deriv_const _ _ + · have heq : timeSliceCutoff ε =ᶠ[𝓝 t] (fun _ => 1) := by + filter_upwards [Ioi_mem_nhds ht] with s hs + exact timeSliceCutoff_one hε hs.le + rw [heq.deriv_eq] + exact deriv_const _ _ + +theorem tsupport_deriv_timeSliceCutoff_subset {ε : ℝ} (hε : 0 < ε) : + tsupport (deriv (timeSliceCutoff ε)) ⊆ Icc (-ε) ε := by + apply closure_minimal _ isClosed_Icc + intro t ht + by_contra hout + exact ht (deriv_timeSliceCutoff_eq_zero_of_not_mem hε hout) + +theorem tsupport_deriv_twice_timeSliceCutoff_subset {ε : ℝ} (hε : 0 < ε) : + tsupport (deriv (deriv (timeSliceCutoff ε))) ⊆ Icc (-ε) ε := + tsupport_deriv_subset.trans (tsupport_deriv_timeSliceCutoff_subset hε) + +theorem hasCompactSupport_deriv_timeSliceCutoff {ε : ℝ} (hε : 0 < ε) : + HasCompactSupport (deriv (timeSliceCutoff ε)) := + isCompact_Icc.of_isClosed_subset (isClosed_tsupport _) (tsupport_deriv_timeSliceCutoff_subset hε) + +theorem contDiff_deriv_timeSliceCutoff (ε : ℝ) : + ContDiff ℝ (∞ : ℕ∞ω) (deriv (timeSliceCutoff ε)) := + (contDiff_infty_iff_deriv.mp (contDiff_timeSliceCutoff ε)).2 + +theorem contDiff_deriv_twice_timeSliceCutoff (ε : ℝ) : + ContDiff ℝ (∞ : ℕ∞ω) (deriv (deriv (timeSliceCutoff ε))) := + (contDiff_infty_iff_deriv.mp (contDiff_deriv_timeSliceCutoff ε)).2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeSliceOscillator.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceOscillator.lean new file mode 100644 index 0000000000..1504696e59 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceOscillator.lean @@ -0,0 +1,139 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceCutoff +public import Mathlib.MeasureTheory.Integral.IntegralEqImproper + +/-! +# The exact scalar oscillator time-slice integral + +The integrand is a compactly supported smooth function. An explicit primitive +has past limit zero and future limit `-2 i h b`; the actual whole-line +fundamental theorem of calculus proves the integral. The phase products are +reduced using their proved group law, not an assumed on-shell identity. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology Set + +/-- Time slice oscillator reduced. -/ +noncomputable def timeSliceOscillatorReduced (ε m : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) (a b : ℂ) (t : ℝ) : ℂ := + ((deriv (deriv (timeSliceCutoff ε)) t : ℝ) : ℂ) * (massiveEvolutionPhase m (2 * t) ξ * a + b) + + 2 * ((deriv (timeSliceCutoff ε) t : ℝ) : ℂ) * ((massiveSchwartzSymbol m 1 ξ : ℂ) * Complex.I) * + (massiveEvolutionPhase m (2 * t) ξ * a - b) + +/-- Time slice oscillator primitive. -/ +noncomputable def timeSliceOscillatorPrimitive (ε m : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) (a b : ℂ) (t : ℝ) : ℂ := + ((deriv (timeSliceCutoff ε) t : ℝ) : ℂ) * (massiveEvolutionPhase m (2 * t) ξ * a + b) - + 2 * ((massiveSchwartzSymbol m 1 ξ : ℂ) * Complex.I) * (timeSliceCutoff ε t : ℂ) * b + +theorem hasDerivAt_timeSliceOscillatorPrimitive (ε m : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) (a b : ℂ) (t : ℝ) : + HasDerivAt (timeSliceOscillatorPrimitive ε m ξ a b) + (timeSliceOscillatorReduced ε m ξ a b t) t := by + have hχ := ((contDiff_timeSliceCutoff ε).differentiable (by simp) t).hasDerivAt + have hχ' := ((contDiff_deriv_timeSliceCutoff ε).differentiable (by simp) t).hasDerivAt + have hp := (hasDerivAt_massiveEvolutionPhase m (2 * t) ξ).scomp t + ((hasDerivAt_id t).const_mul 2) + have h := (hχ'.ofReal_comp.mul ((hp.mul_const a).add_const b)).sub + ((hχ.ofReal_comp.const_mul (2 * ((massiveSchwartzSymbol m 1 ξ : ℂ) * Complex.I))).mul_const b) + convert h using 1 + · rfl + · simp only [timeSliceOscillatorReduced, Function.comp_apply, mul_one, + Complex.real_smul, Complex.ofReal_ofNat] + ring + +theorem continuous_timeSliceOscillatorReduced (ε m : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) (a b : ℂ) : + Continuous (timeSliceOscillatorReduced ε m ξ a b) := by + have hχ := (contDiff_deriv_timeSliceCutoff ε).continuous + have hχ' := (contDiff_deriv_twice_timeSliceCutoff ε).continuous + have hp : Continuous (fun t => massiveEvolutionPhase m (2 * t) ξ) := by + unfold massiveEvolutionPhase + fun_prop + exact ((Complex.continuous_ofReal.comp hχ').mul ((hp.mul_const a).add_const b)).add + (((continuous_const.mul (Complex.continuous_ofReal.comp hχ)).mul_const _).mul + ((hp.mul_const a).sub continuous_const)) + +theorem hasCompactSupport_timeSliceOscillatorReduced {ε : ℝ} (hε : 0 < ε) (m : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) (a b : ℂ) : + HasCompactSupport (timeSliceOscillatorReduced ε m ξ a b) := by + apply HasCompactSupport.intro (K := Icc (-ε) ε) isCompact_Icc + intro t ht + have h₁ := deriv_timeSliceCutoff_eq_zero_of_not_mem hε ht + have h₂ : deriv (deriv (timeSliceCutoff ε)) t = 0 := + image_eq_zero_of_notMem_tsupport (fun h => ht (tsupport_deriv_twice_timeSliceCutoff_subset + hε h)) + simp only [timeSliceOscillatorReduced, h₁, h₂, Complex.ofReal_zero, zero_mul, mul_zero, add_zero] + +theorem timeSliceOscillatorPrimitive_past {ε : ℝ} (hε : 0 < ε) (m : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) (a b : ℂ) {t : ℝ} (ht : t < -ε) : + timeSliceOscillatorPrimitive ε m ξ a b t = 0 := by + have hout : t ∉ Icc (-ε) ε := fun h => (not_lt_of_ge h.1) ht + simp only [timeSliceOscillatorPrimitive, deriv_timeSliceCutoff_eq_zero_of_not_mem hε hout, + timeSliceCutoff_zero hε ht.le, Complex.ofReal_zero, zero_mul, mul_zero, sub_zero] + +theorem timeSliceOscillatorPrimitive_future {ε : ℝ} (hε : 0 < ε) (m : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) (a b : ℂ) {t : ℝ} (ht : ε < t) : + timeSliceOscillatorPrimitive ε m ξ a b t = + -2 * ((massiveSchwartzSymbol m 1 ξ : ℂ) * Complex.I) * b := by + have hout : t ∉ Icc (-ε) ε := fun h => (not_lt_of_ge h.2) ht + simp only [timeSliceOscillatorPrimitive, deriv_timeSliceCutoff_eq_zero_of_not_mem hε hout, + timeSliceCutoff_one hε ht.le, Complex.ofReal_zero, Complex.ofReal_one, zero_mul, mul_one, + zero_sub, neg_mul] + +theorem integral_timeSliceOscillatorReduced {ε : ℝ} (hε : 0 < ε) (m : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) (a b : ℂ) : + ∫ t, timeSliceOscillatorReduced ε m ξ a b t = + -2 * ((massiveSchwartzSymbol m 1 ξ : ℂ) * Complex.I) * b := by + have hi := (continuous_timeSliceOscillatorReduced ε m ξ a b).integrable_of_hasCompactSupport + (μ := volume) + (hasCompactSupport_timeSliceOscillatorReduced hε m ξ a b) + have hbot : Tendsto (timeSliceOscillatorPrimitive ε m ξ a b) atBot (𝓝 0) := by + apply tendsto_const_nhds.congr' + filter_upwards [eventually_lt_atBot (-ε)] with t ht + exact (timeSliceOscillatorPrimitive_past hε m ξ a b ht).symm + have htop : Tendsto (timeSliceOscillatorPrimitive ε m ξ a b) atTop + (𝓝 (-2 * ((massiveSchwartzSymbol m 1 ξ : ℂ) * Complex.I) * b)) := by + apply tendsto_const_nhds.congr' + filter_upwards [eventually_gt_atTop ε] with t ht + exact (timeSliceOscillatorPrimitive_future hε m ξ a b ht).symm + simpa only [sub_zero] using integral_of_hasDerivAt_of_tendsto + (hasDerivAt_timeSliceOscillatorPrimitive ε m ξ a b) hi hbot htop + +theorem timeSliceOscillator_reduction (ε m : ℝ) + (ξ : EuclideanSpace ℝ (Fin 3)) (a b : ℂ) (t : ℝ) : + massiveEvolutionPhase m t ξ * + (((deriv (deriv (timeSliceCutoff ε)) t : ℝ) : ℂ) * + (massiveEvolutionPhase m t ξ * a + massiveEvolutionPhase m (-t) ξ * b) + + 2 * ((deriv (timeSliceCutoff ε) t : ℝ) : ℂ) * ((massiveSchwartzSymbol m 1 ξ : ℂ) * + Complex.I) * + (massiveEvolutionPhase m t ξ * a - massiveEvolutionPhase m (-t) ξ * b)) = + timeSliceOscillatorReduced ε m ξ a b t := by + have hsq : massiveEvolutionPhase m t ξ * massiveEvolutionPhase m t ξ = + massiveEvolutionPhase m (2 * t) ξ := by + rw [← massiveEvolutionPhase_add, two_mul] + have hinv : massiveEvolutionPhase m t ξ * massiveEvolutionPhase m (-t) ξ = 1 := by + rw [← massiveEvolutionPhase_add, add_neg_cancel] + simp [massiveEvolutionPhase] + calc + _ = ((deriv (deriv (timeSliceCutoff ε)) t : ℝ) : ℂ) * + (massiveEvolutionPhase m t ξ * massiveEvolutionPhase m t ξ * a + + massiveEvolutionPhase m t ξ * massiveEvolutionPhase m (-t) ξ * b) + + 2 * ((deriv (timeSliceCutoff ε) t : ℝ) : ℂ) * ((massiveSchwartzSymbol m 1 ξ : ℂ) * + Complex.I) * + (massiveEvolutionPhase m t ξ * massiveEvolutionPhase m t ξ * a - + massiveEvolutionPhase m t ξ * massiveEvolutionPhase m (-t) ξ * b) := by ring + _ = _ := by rw [hsq, hinv]; simp only [one_mul, timeSliceOscillatorReduced] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeSliceRecovery.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceRecovery.lean new file mode 100644 index 0000000000..94a22b41ce --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceRecovery.lean @@ -0,0 +1,103 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.OneParticleTimeSlice +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceOscillator + +/-! +# Exact one-particle recovery from the actual time-slice source + +With the manuscript's positive time exponential, initial Cauchy data `(f,g)` +produce `ĝ - i h f̂`. The physical time-zero pair is therefore recovered by +using Cauchy data `(-g,f)`, in a separate source-pair construction. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter FourierTransform +open scoped FourierTransform + +theorem fourier_massiveSchwartzPower_one_apply (m : ℝ) (f : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + (𝓕 (massiveSchwartzPower m 1 f)) ξ = (massiveSchwartzSymbol m 1 ξ : ℂ) * (𝓕 f) ξ := by + rw [← massiveFrequencyEnergy_fourier, massiveFrequencyEnergy_apply] + +theorem fourier_timeSliceSchwartzSource (ε m t : ℝ) (f g : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + (𝓕 (timeSliceSchwartzSource ε m t f g)) ξ = + ((deriv (deriv (timeSliceCutoff ε)) t : ℝ) : ℂ) * + (massiveEvolutionPhase m t ξ * (𝓕 (cauchyPositiveData m f g)) ξ + + massiveEvolutionPhase m (-t) ξ * (𝓕 (cauchyNegativeData m f g)) ξ) + + 2 * ((deriv (timeSliceCutoff ε) t : ℝ) : ℂ) * ((massiveSchwartzSymbol m 1 ξ : ℂ) * + Complex.I) * + (massiveEvolutionPhase m t ξ * (𝓕 (cauchyPositiveData m f g)) ξ - + massiveEvolutionPhase m (-t) ξ * (𝓕 (cauchyNegativeData m f g)) ξ) := by + change (FourierTransform.fourierCLM ℂ SpatialSchwartz + (timeSliceSchwartzSource ε m t f g)) ξ = _ + simp only [timeSliceSchwartzSource, massiveSchwartzCauchy_eq_phases, + massiveSchwartzCauchyVelocity, map_add, map_sub, map_smul] + simp only [add_apply, sub_apply, smul_apply, + FourierTransform.fourierCLM_apply, smul_eq_mul, + fourier_massiveSchwartzEvolution, fourier_massiveSchwartzPower_one_apply] + ring + +theorem negativeFrequencyData_recovery {m : ℝ} (hm : 0 < m) (f g : SpatialSchwartz) + (ξ : EuclideanSpace ℝ (Fin 3)) : + -2 * ((massiveSchwartzSymbol m 1 ξ : ℂ) * Complex.I) * (𝓕 (cauchyNegativeData m f g)) ξ = + (𝓕 g) ξ - Complex.I * (massiveSchwartzSymbol m 1 ξ : ℂ) * (𝓕 f) ξ := by + have hinv : (massiveSchwartzSymbol m 1 ξ : ℂ) * (massiveSchwartzSymbol m (-1) ξ : ℂ) = 1 := by + rw [← Complex.ofReal_mul, ← massiveSchwartzSymbol_add hm, + show (1 : ℝ) + -1 = 0 by norm_num, massiveSchwartzSymbol_zero, Complex.ofReal_one] + have hp : (𝓕 (massiveSchwartzPower m (-1) g)) ξ = + (massiveSchwartzSymbol m (-1) ξ : ℂ) * (𝓕 g) ξ := by + simp only [massiveSchwartzPower, SchwartzMap.fourierMultiplierCLM_apply, + FourierTransform.fourier_fourierInv_eq, + SchwartzMap.smulLeftCLM_apply_apply + (hasTemperateGrowth_complex_massiveSchwartzSymbol m (-1)), smul_eq_mul] + have hd : (𝓕 (cauchyNegativeData m f g)) ξ = + (1 / 2 : ℂ) * ((𝓕 f) ξ + Complex.I * + ((massiveSchwartzSymbol m (-1) ξ : ℂ) * (𝓕 g) ξ)) := by + change (FourierTransform.fourierCLM ℂ SpatialSchwartz + ((1 / 2 : ℂ) • (f + Complex.I • massiveSchwartzPower m (-1) g))) ξ = _ + rw [map_smul, map_add, map_smul] + simp only [smul_apply, add_apply, + FourierTransform.fourierCLM_apply, smul_eq_mul, hp] + calc + _ = -Complex.I * (massiveSchwartzSymbol m 1 ξ : ℂ) * (𝓕 f) ξ - + (Complex.I * Complex.I) * + ((massiveSchwartzSymbol m 1 ξ : ℂ) * (massiveSchwartzSymbol m (-1) ξ : ℂ)) * + (𝓕 g) ξ := by rw [hd]; ring + _ = (massiveSchwartzSymbol m 1 ξ : ℂ) * (massiveSchwartzSymbol m (-1) ξ : ℂ) * (𝓕 g) ξ - + Complex.I * (massiveSchwartzSymbol m 1 ξ : ℂ) * (𝓕 f) ξ := by + rw [Complex.I_mul_I] + ring + _ = _ := by rw [hinv, one_mul] + +/-- Exact, unconditional one-particle formula for the constructed source, +under the actual support and real-data assumptions needed to construct it. -/ +theorem oneParticle_timeSliceTestFunction {m ε r : ℝ} + (hm : 0 < m) (hε : 0 < ε) (hr : 0 ≤ r) (x₀ : EuclideanSpace ℝ (Fin 3)) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ r) + (hg : tsupport g ⊆ Metric.closedBall x₀ r) + (hfr : spatialSchwartzConjugate f = f) (hgr : spatialSchwartzConjugate g = g) + (ξ : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (timeSliceTestFunction hm hε hr x₀ f g hf hg) ((2 * Real.pi) • ξ) = + (𝓕 g) ξ - Complex.I * (massiveSchwartzSymbol m 1 ξ : ℂ) * (𝓕 f) ξ := by + rw [oneParticle_timeSliceTestFunction_eq_time_fourier hm hε hr x₀ f g hf hg hfr hgr] + have heq : (fun t => massiveEvolutionPhase m t ξ * (𝓕 (timeSliceSchwartzSource ε m t f g)) ξ) = + timeSliceOscillatorReduced ε m ξ (𝓕 (cauchyPositiveData m f g) ξ) + (𝓕 (cauchyNegativeData m f g) ξ) := by + funext t + rw [fourier_timeSliceSchwartzSource] + exact timeSliceOscillator_reduction ε m ξ _ _ t + rw [heq, integral_timeSliceOscillatorReduced hε] + exact negativeFrequencyData_recovery hm f g ξ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeSliceSource.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceSource.lean new file mode 100644 index 0000000000..641b2c393c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceSource.lean @@ -0,0 +1,134 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CauchyVelocitySupport +public import LeanPool.VacuumBellSeparation.FreeField.CauchyReality +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceCutoff + +/-! +# An actual smooth compactly supported time-slice source + +The literal source is `χ''u + 2χ′u_t`, using the actual Cauchy solution and +actual derivatives of the switching function. Its smoothness, reality and +compact double-cone support are proved. Identifying its one-particle vector +with the initial data is a further integral identity, not a field of this +construction or a hypothesis hidden in the definition. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Set +open scoped ComplexConjugate + +/-- Time slice complex source. -/ +noncomputable def timeSliceComplexSource (ε m : ℝ) (f g : SpatialSchwartz) (x : Spacetime) : ℂ := + ((deriv (deriv (timeSliceCutoff ε)) x.1 : ℝ) : ℂ) * massiveSchwartzCauchy m x.1 f g x.2 + + 2 * ((deriv (timeSliceCutoff ε) x.1 : ℝ) : ℂ) * massiveSchwartzCauchyVelocity m x.1 f g x.2 + +theorem contDiff_timeSliceComplexSource (ε m : ℝ) (f g : SpatialSchwartz) : + ContDiff ℝ (⊤ : ℕ∞) (timeSliceComplexSource ε m f g) := by + exact ((Complex.ofRealCLM.contDiff.comp + ((contDiff_deriv_twice_timeSliceCutoff ε).comp contDiff_fst)).mul + (contDiff_massiveSchwartzCauchy_spacetime m f g)).add + ((contDiff_const.mul (Complex.ofRealCLM.contDiff.comp + ((contDiff_deriv_timeSliceCutoff ε).comp contDiff_fst))).mul + (contDiff_massiveSchwartzCauchyVelocity_spacetime m f g)) + +theorem timeSliceComplexSource_real (ε m : ℝ) (f g : SpatialSchwartz) + (hf : spatialSchwartzConjugate f = f) (hg : spatialSchwartzConjugate g = g) + (x : Spacetime) : + conj (timeSliceComplexSource ε m f g x) = timeSliceComplexSource ε m f g x := by + simp only [timeSliceComplexSource, map_add, map_mul, map_ofNat, Complex.conj_ofReal, + massiveSchwartzCauchy_real m x.1 f g hf hg x.2, + massiveSchwartzCauchyVelocity_real m x.1 f g hf hg x.2] + +theorem timeSliceComplexSource_eq_zero_outside_box {m ε r : ℝ} + (hm : 0 < m) (hε : 0 < ε) (hr : 0 ≤ r) (x₀ : EuclideanSpace ℝ (Fin 3)) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ r) + (hg : tsupport g ⊆ Metric.closedBall x₀ r) (x : Spacetime) + (hx : x ∉ Icc (-ε) ε ×ˢ Metric.closedBall x₀ (r + ε)) : + timeSliceComplexSource ε m f g x = 0 := by + by_cases ht : x.1 ∈ Icc (-ε) ε + · have hx' : x.2 ∉ Metric.closedBall x₀ (r + ε) := fun h => hx ⟨ht, h⟩ + have ht' : |x.1| ≤ ε := abs_le.mpr ht + have hnorm : r + |x.1| < ‖x.2 - x₀‖ := by + have h := hx' + simp only [Metric.mem_closedBall, dist_eq_norm, not_le] at h + linarith + have hu : massiveSchwartzCauchy m x.1 f g x.2 = 0 := by + apply image_eq_zero_of_notMem_tsupport + intro hmem + have h := tsupport_massiveSchwartzCauchy_subset hm hr x.1 f g hf hg hmem + have hle : ‖x.2 - x₀‖ ≤ r + |x.1| := by + simpa only [Metric.mem_closedBall, dist_eq_norm] using h + exact (not_lt_of_ge hle) hnorm + have hv := massiveSchwartzCauchyVelocity_eq_zero_outside_cone hm hr x.1 f g hf hg hnorm + simp only [timeSliceComplexSource, hu, hv, mul_zero, add_zero] + · have h₁ := deriv_timeSliceCutoff_eq_zero_of_not_mem hε ht + have h₂ : deriv (deriv (timeSliceCutoff ε)) x.1 = 0 := + image_eq_zero_of_notMem_tsupport + (fun h => ht (tsupport_deriv_twice_timeSliceCutoff_subset hε h)) + simp only [timeSliceComplexSource, h₁, h₂, Complex.ofReal_zero, zero_mul, mul_zero, add_zero] + +theorem tsupport_timeSliceComplexSource_subset_box {m ε r : ℝ} + (hm : 0 < m) (hε : 0 < ε) (hr : 0 ≤ r) (x₀ : EuclideanSpace ℝ (Fin 3)) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ r) + (hg : tsupport g ⊆ Metric.closedBall x₀ r) : + tsupport (timeSliceComplexSource ε m f g) ⊆ Icc (-ε) ε ×ˢ Metric.closedBall x₀ (r + ε) := by + apply closure_minimal _ (isClosed_Icc.prod Metric.isClosed_closedBall) + intro x hx + by_contra hout + exact hx (timeSliceComplexSource_eq_zero_outside_box hm hε hr x₀ f g hf hg x hout) + +theorem hasCompactSupport_timeSliceComplexSource {m ε r : ℝ} + (hm : 0 < m) (hε : 0 < ε) (hr : 0 ≤ r) (x₀ : EuclideanSpace ℝ (Fin 3)) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ r) + (hg : tsupport g ⊆ Metric.closedBall x₀ r) : + HasCompactSupport (timeSliceComplexSource ε m f g) := + (isCompact_Icc.prod (isCompact_closedBall x₀ (r + ε))).of_isClosed_subset + (isClosed_tsupport _) (tsupport_timeSliceComplexSource_subset_box hm hε hr x₀ f g hf hg) + +/-- Time slice test function. -/ +noncomputable def timeSliceTestFunction {m ε r : ℝ} + (hm : 0 < m) (hε : 0 < ε) (hr : 0 ≤ r) (x₀ : EuclideanSpace ℝ (Fin 3)) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ r) + (hg : tsupport g ⊆ Metric.closedBall x₀ r) : RealTestFunction := + ⟨fun x => (timeSliceComplexSource ε m f g x).re, + Complex.reCLM.contDiff.comp (contDiff_timeSliceComplexSource ε m f g), + (hasCompactSupport_timeSliceComplexSource hm hε hr x₀ f g hf hg).comp_left (by simp)⟩ + +theorem timeSliceTestFunction_complex_eq {m ε r : ℝ} + (hm : 0 < m) (hε : 0 < ε) (hr : 0 ≤ r) (x₀ : EuclideanSpace ℝ (Fin 3)) + (f g : SpatialSchwartz) (hf : tsupport f ⊆ Metric.closedBall x₀ r) + (hg : tsupport g ⊆ Metric.closedBall x₀ r) + (hfr : spatialSchwartzConjugate f = f) (hgr : spatialSchwartzConjugate g = g) (x : Spacetime) : + ((timeSliceTestFunction hm hε hr x₀ f g hf hg).1 x : ℂ) = timeSliceComplexSource ε m f g x := + Complex.conj_eq_iff_re.mp (timeSliceComplexSource_real ε m f g hfr hgr x) + +/-- The actual source lies strictly inside any larger double cone satisfying +the precise radius margin `r + 2ε < R`. -/ +theorem tsupport_timeSliceTestFunction_subset_doubleCone {m ε r R : ℝ} + (hm : 0 < m) (hε : 0 < ε) (hr : 0 ≤ r) (hR : r + 2 * ε < R) + (x₀ : EuclideanSpace ℝ (Fin 3)) (f g : SpatialSchwartz) + (hf : tsupport f ⊆ Metric.closedBall x₀ r) (hg : tsupport g ⊆ Metric.closedBall x₀ r) : + tsupport (timeSliceTestFunction hm hε hr x₀ f g hf hg).1 ⊆ doubleCone (0, x₀) R := by + have hsub : tsupport (timeSliceTestFunction hm hε hr x₀ f g hf hg).1 ⊆ + tsupport (timeSliceComplexSource ε m f g) := + tsupport_comp_subset (g := Complex.re) (by simp) _ + intro x hx + have hb := tsupport_timeSliceComplexSource_subset_box hm hε hr x₀ f g hf hg (hsub hx) + have ht : |x.1| ≤ ε := abs_le.mpr hb.1 + have hs : ‖x.2 - x₀‖ ≤ r + ε := by + simpa only [Metric.mem_closedBall, dist_eq_norm] using hb.2 + change |x.1 - 0| + ‖x.2 - x₀‖ < R + rw [sub_zero] + linarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeSliceTheorem.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceTheorem.lean new file mode 100644 index 0000000000..e52e6a036b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeSliceTheorem.lean @@ -0,0 +1,64 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ForwardTimeSliceClosure + +/-! +# The actual local-algebra time-slice identity + +Both algebras act in the original physical vacuum Hilbert space. The +reverse inclusion uses actual compact spacetime representatives. The +forward inclusion uses actual localized time-zero approximants, physical +one-particle convergence, proved strong Weyl continuity and strong closure +of the original double commutant. No time-slice or cyclicity premise is +added to the vacuum model. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem FreeFieldVacuum.weyl_mem_timeZeroLocalAlgebra_of_mem_closure + (V : FreeFieldVacuum m H) (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) (F : RealTestFunction) + (hF : oneParticleL2 hm F ∈ closure (Set.range (sourceTestMap hm U))) : + V.weyl F ∈ timeZeroLocalAlgebra V hm U := by + obtain ⟨us, hlim⟩ := exists_sourceTestSequence_of_mem_closure hm U (oneParticleL2 hm F) hF + apply mem_vonNeumannAlgebra_of_strong_tendsto (timeZeroLocalAlgebra V hm U) + (Ts := fun n => V.timeZeroWeyl hm (us n).1) (l := atTop) + · exact Eventually.of_forall fun n => + V.timeZeroWeyl_mem_timeZeroLocalAlgebra hm (us n).1 (us n).2.1 (us n).2.2 + · intro x + apply V.tendsto_weyl_of_oneParticleL2 hm + simpa only [oneParticleL2_timeZeroSpacetimeRepresentative] using hlim + +/-- Forward time-slice inclusion for the genuine spacetime local algebra. -/ +theorem localAlgebra_doubleCone_le_timeZeroLocalAlgebra (V : FreeFieldVacuum m H) + (hm : 0 < m) {R : ℝ} (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) : + localAlgebra V (doubleCone (0, x₀) R) ≤ + timeZeroLocalAlgebra V hm (Metric.ball x₀ R) := by + apply generatedVNA_le_of_subset + rintro T ⟨F, hF, rfl⟩ + exact V.weyl_mem_timeZeroLocalAlgebra_of_mem_closure hm _ F + (oneParticleL2_mem_closure_sourceTestMap hm hR x₀ F hF) + +/-- Manuscript (2.3), in every actual positive-mass vacuum representation +and for every positive-radius spatial ball and its double cone. -/ +theorem localAlgebra_doubleCone_eq_timeZeroLocalAlgebra (V : FreeFieldVacuum m H) + (hm : 0 < m) {R : ℝ} (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) : + localAlgebra V (doubleCone (0, x₀) R) = + timeZeroLocalAlgebra V hm (Metric.ball x₀ R) := + le_antisymm (localAlgebra_doubleCone_le_timeZeroLocalAlgebra V hm hR x₀) + (timeZeroLocalAlgebra_ball_le V hm hR x₀) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroAlgebra.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroAlgebra.lean new file mode 100644 index 0000000000..42ec346ea6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroAlgebra.lean @@ -0,0 +1,73 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroWeyl + +/-! +# Time-zero local algebras inside the original spacetime algebras + +The generators are actual time-zero Weyl operators in the same physical +vacuum representation. The inclusion is the proved reverse time-slice +direction. Equality still requires the forward time-slice direction. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem generatedVNA_coe (A : VonNeumannAlgebra H) : + generatedVNA (A : Set (H →L[ℂ] H)) = A := by + change A.commutant.commutant = A + exact A.commutant_commutant + +theorem generatedVNA_le_of_subset {S : Set (H →L[ℂ] H)} (A : VonNeumannAlgebra H) + (hS : S ⊆ A) : generatedVNA S ≤ A := by + rw [← generatedVNA_coe A] + exact generatedVNA_mono hS + +variable {m : ℝ} + +theorem timeZeroLocalAlgebra_mono (V : FreeFieldVacuum m H) (hm : 0 < m) + {U U' : Set (EuclideanSpace ℝ (Fin 3))} (h : U ⊆ U') : + timeZeroLocalAlgebra V hm U ≤ timeZeroLocalAlgebra V hm U' := by + apply generatedVNA_mono + rintro T ⟨u, hf, hg, rfl⟩ + exact ⟨u, hf.trans h, hg.trans h, rfl⟩ + +theorem FreeFieldVacuum.timeZeroWeyl_mem_timeZeroLocalAlgebra + (V : FreeFieldVacuum m H) (hm : 0 < m) + {U : Set (EuclideanSpace ℝ (Fin 3))} (u : TimeZeroSource) + (hf : tsupport u.1.1 ⊆ U) (hg : tsupport u.2.1 ⊆ U) : + V.timeZeroWeyl hm u ∈ timeZeroLocalAlgebra V hm U := + subset_generatedVNA _ ⟨u, hf, hg, rfl⟩ + +/-- The actual time-zero ball algebra embeds in the original double-cone +algebra, in every physical vacuum representation. -/ +theorem timeZeroLocalAlgebra_ball_le (V : FreeFieldVacuum m H) (hm : 0 < m) + {R : ℝ} (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) : + timeZeroLocalAlgebra V hm (Metric.ball x₀ R) ≤ + localAlgebra V (doubleCone (0, x₀) R) := by + apply generatedVNA_le_of_subset + rintro T ⟨u, hf, hg, rfl⟩ + exact V.timeZeroWeyl_mem_localAlgebra hm hR x₀ u hf hg + +/-- Strong continuity depends on the actual physical time-zero norm. -/ +theorem FreeFieldVacuum.tendsto_timeZeroWeyl (V : FreeFieldVacuum m H) + (hm : 0 < m) {α : Type*} {l : Filter α} + {us : α → TimeZeroSource} {u : TimeZeroSource} + (hu : Tendsto (fun i => timeZeroL2 hm (us i)) l (𝓝 (timeZeroL2 hm u))) + (x : H) : Tendsto (fun i => V.timeZeroWeyl hm (us i) x) l + (𝓝 (V.timeZeroWeyl hm u x)) := by + apply V.tendsto_weyl_of_oneParticleL2 hm + simpa only [oneParticleL2_timeZeroSpacetimeRepresentative] using hu + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroCovarianceDilation.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroCovarianceDilation.lean new file mode 100644 index 0000000000..71067e57f0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroCovarianceDilation.lean @@ -0,0 +1,76 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroGram + +/-! +# Time-zero covariance dilation in Fourier variables + +This completes the literal source-pair scaling calculation for the Fourier +covariance. The library states the covariance (2.2) in Fourier variables, with the multiplier +`(μ² + |𝐩|²)^{1/2}` in place of the position-space operator `h_μ = (-∇² + μ²)^{1/2}`; the +time-slice identification (2.3) is proved in `FreeField/TimeSliceTheorem.lean` +(`localAlgebra_doubleCone_eq_timeZeroLocalAlgebra`). +-/ + +@[expose] public section + +open scoped ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +theorem timeZeroOneParticleInner_dilate (m : ℝ) {R : ℝ} (hR : 0 < R) + (u v : TimeZeroSource) : + timeZeroOneParticleInner (m * R) (timeZeroDilate R hR.ne' u) + (timeZeroDilate R hR.ne' v) = timeZeroOneParticleInner m u v := by + let F (m : ℝ) (u v : TimeZeroSource) (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + conj (timeZeroOneParticle m u p) * timeZeroOneParticle m v p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) + have hpt (p : EuclideanSpace ℝ (Fin 3)) : + F (m * R) (timeZeroDilate R hR.ne' u) (timeZeroDilate R hR.ne' v) (R • p) = + ((R ^ 3)⁻¹ : ℝ) • F m u v p := by + have hw : (1 / (2 * (2 * Real.pi) ^ 3 * dispersion (m * R) (R • p)) : ℝ) = + R⁻¹ * (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p)) := by + rw [dispersion_smul m hR.le p] + ring1 + have hc : ((R ^ 3)⁻¹ : ℝ) = R⁻¹ * R⁻¹ * R⁻¹ := by ring1 + dsimp only [F] + rw [timeZeroOneParticle_dilate m hR u p, timeZeroOneParticle_dilate m hR v p, + hw, hc, Complex.real_smul, map_mul, Complex.conj_ofReal] + simp only [Complex.ofReal_mul] + ring + have hcov : (∫ p : EuclideanSpace ℝ (Fin 3), + F (m * R) (timeZeroDilate R hR.ne' u) (timeZeroDilate R hR.ne' v) (R • p)) = + |(R ^ Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)))⁻¹| • + timeZeroOneParticleInner (m * R) (timeZeroDilate R hR.ne' u) + (timeZeroDilate R hR.ne' v) := + Measure.integral_comp_smul volume + (F (m * R) (timeZeroDilate R hR.ne' u) (timeZeroDilate R hR.ne' v)) R + have habs : |(R ^ Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)))⁻¹| = (R ^ 3)⁻¹ := by + rw [finrank_momentum] + exact abs_of_pos (inv_pos.mpr (pow_pos hR 3)) + simp_rw [hpt] at hcov + rw [integral_smul, habs] at hcov + have h := congrArg (fun z : ℂ => (R ^ 3 : ℝ) • z) hcov + simpa only [smul_inv_smul₀ (pow_ne_zero 3 hR.ne'), F, timeZeroOneParticleInner] using h.symm + +theorem timeZeroOneParticleInner_re {m : ℝ} (hm : 0 < m) (u v : TimeZeroSource) : + (timeZeroOneParticleInner m u v).re = timeZeroFourierCovariance m u v := by + have h := congrArg Complex.re (timeZeroGram_identity hm u v) + simpa [Complex.mul_re, Complex.div_re] using h + +/-- Covariance preservation under the literal `(R² f(R·), R g(R·))` dilation. -/ +theorem timeZeroFourierCovariance_dilate {m R : ℝ} (hm : 0 < m) (hR : 0 < R) + (u v : TimeZeroSource) : + timeZeroFourierCovariance (m * R) (timeZeroDilate R hR.ne' u) + (timeZeroDilate R hR.ne' v) = timeZeroFourierCovariance m u v := by + rw [← timeZeroOneParticleInner_re (mul_pos hm hR), + timeZeroOneParticleInner_dilate m hR, timeZeroOneParticleInner_re hm] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroDefs.lean new file mode 100644 index 0000000000..316aeda7f7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroDefs.lean @@ -0,0 +1,77 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Defs + +/-! +# Primitive time-zero source definitions + +Literal compact real spatial tests and their physical one-particle map. +This module has no local proof-module imports. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +/-- Real smooth compactly supported time-zero test functions in three dimensions. -/ +abbrev SpatialTestFunction : Type := + {f : EuclideanSpace ℝ (Fin 3) → ℝ // ContDiff ℝ (⊤ : ℕ∞) f ∧ HasCompactSupport f} + +/-- The position and momentum smearing pair `(f,g)` of Section 2.1. -/ +abbrev TimeZeroSource := SpatialTestFunction × SpatialTestFunction + +instance : Add SpatialTestFunction where + add f g := ⟨f.1 + g.1, f.2.1.add g.2.1, f.2.2.add g.2.2⟩ + +instance : Zero SpatialTestFunction where + zero := ⟨0, contDiff_const, HasCompactSupport.zero⟩ + +instance : Neg SpatialTestFunction where + neg f := ⟨-f.1, f.2.1.neg, f.2.2.neg⟩ + +instance : AddCommGroup SpatialTestFunction where + add_assoc f g h := Subtype.ext (add_assoc f.1 g.1 h.1) + zero_add f := Subtype.ext (zero_add f.1) + add_zero f := Subtype.ext (add_zero f.1) + nsmul := nsmulRec + neg_add_cancel f := Subtype.ext (neg_add_cancel f.1) + zsmul := zsmulRec + add_comm f g := Subtype.ext (add_comm f.1 g.1) + +/-- The manuscript's unnormalized spatial Fourier transform. -/ +noncomputable def spatialFourier (f : SpatialTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + ∫ x : EuclideanSpace ℝ (Fin 3), + Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ))) * (f.1 x : ℂ) + +/-- The time-zero source map appearing before (2.6). -/ +noncomputable def timeZeroOneParticle (m : ℝ) (u : TimeZeroSource) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + spatialFourier u.1 p + Complex.I * (dispersion m p : ℂ) * spatialFourier u.2 p + +/-- The mass-shell pairing of literal time-zero sources. -/ +noncomputable def timeZeroOneParticleInner (m : ℝ) (u v : TimeZeroSource) : ℂ := + ∫ p : EuclideanSpace ℝ (Fin 3), + conj (timeZeroOneParticle m u p) * timeZeroOneParticle m v p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) + +/-- The two Fourier multiplier terms, with the exact `1/(2(2π)^3)` normalization. -/ +noncomputable def timeZeroFourierDiagonal (m : ℝ) (u v : TimeZeroSource) : ℂ := + ((∫ p, (conj (spatialFourier u.1 p) * spatialFourier v.1 p) * + ((dispersion m p)⁻¹ : ℝ)) + + (∫ p, (conj (spatialFourier u.2 p) * spatialFourier v.2 p) * (dispersion m p : ℂ))) * + ((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) + +/-- The real covariance expressed by the energy Fourier multipliers. -/ +noncomputable def timeZeroFourierCovariance (m : ℝ) (u v : TimeZeroSource) : ℝ := + (timeZeroFourierDiagonal m u v).re + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroDilation.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroDilation.lean new file mode 100644 index 0000000000..8dddb77afd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroDilation.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDilationDefs +public import LeanPool.VacuumBellSeparation.FreeField.Dilation +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDefs + +/-! +# Literal time-zero source dilation + +The source pair in (2.5) is `(R² f(R·), R g(R·))`, with smooth compactly +supported real functions on three-dimensional space. This module proves its +symplectic invariance and the scaling of its mass-shell source wave function. +It complements the spacetime dilation already used by the Bell theorem. + +The time-slice identification (2.3) and the Gram identity (2.6) between the +position-space symplectic form and the mass-shell integral are proved in other +modules (`localAlgebra_doubleCone_eq_timeZeroLocalAlgebra` in `FreeField/TimeSliceTheorem.lean`, +`timeZeroGram_identity` in `FreeField/TimeZeroGram.lean`); no such identification is assumed here. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +theorem integrable_timeZeroSymplectic (u v : TimeZeroSource) : + Integrable (fun x : EuclideanSpace ℝ (Fin 3) => + u.1.1 x * v.2.1 x - u.2.1 x * v.1.1 x) := by + apply Continuous.integrable_of_hasCompactSupport + · exact (u.1.2.1.continuous.mul v.2.2.1.continuous).sub + (u.2.2.1.continuous.mul v.1.2.1.continuous) + · exact u.1.2.2.mul_right.sub u.2.2.2.mul_right + +/-- The literal time-zero transformation preserves the symplectic form. -/ +theorem timeZeroSymplectic_dilate {R : ℝ} (hR : 0 < R) (u v : TimeZeroSource) : + timeZeroSymplectic (timeZeroDilate R hR.ne' u) (timeZeroDilate R hR.ne' v) = + timeZeroSymplectic u v := by + have hcov : (∫ x : EuclideanSpace ℝ (Fin 3), + u.1.1 (R • x) * v.2.1 (R • x) - u.2.1 (R • x) * v.1.1 (R • x)) = + |(R ^ Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)))⁻¹| • timeZeroSymplectic u v := + Measure.integral_comp_smul volume + (fun x => u.1.1 x * v.2.1 x - u.2.1 x * v.1.1 x) R + have habs : |(R ^ Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)))⁻¹| = (R ^ 3)⁻¹ := by + rw [finrank_momentum] + exact abs_of_pos (inv_pos.mpr (pow_pos hR 3)) + change (∫ x : EuclideanSpace ℝ (Fin 3), + R ^ 2 * u.1.1 (R • x) * (R * v.2.1 (R • x)) - + R * u.2.1 (R • x) * (R ^ 2 * v.1.1 (R • x))) = _ + calc + _ = ∫ x : EuclideanSpace ℝ (Fin 3), R ^ 3 * + (u.1.1 (R • x) * v.2.1 (R • x) - u.2.1 (R • x) * v.1.1 (R • x)) := by + apply integral_congr_ae + exact Filter.Eventually.of_forall (fun x => by ring) + _ = R ^ 3 * (∫ x : EuclideanSpace ℝ (Fin 3), + u.1.1 (R • x) * v.2.1 (R • x) - u.2.1 (R • x) * v.1.1 (R • x)) := + integral_const_mul _ _ + _ = timeZeroSymplectic u v := by + rw [hcov, habs, smul_eq_mul, ← mul_assoc, mul_inv_cancel₀ (pow_ne_zero 3 hR.ne'), one_mul] + +theorem integrable_spatialFourier (f : SpatialTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + Integrable (fun x : EuclideanSpace ℝ (Fin 3) => + Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ))) * (f.1 x : ℂ)) := by + apply Continuous.integrable_of_hasCompactSupport + · exact (Complex.continuous_exp.comp + (continuous_const.mul (Complex.continuous_ofReal.comp + (continuous_const.inner continuous_id))).neg).mul + (Complex.continuous_ofReal.comp f.2.1.continuous) + · exact (f.2.2.comp_left Complex.ofReal_zero).mul_left + +/-- Change of variables in the exact Fourier convention of Section 2.1. -/ +theorem spatialFourier_scale (R : ℝ) (hR : R ≠ 0) (a : ℝ) + (f : SpatialTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + spatialFourier (spatialScale R hR a f) (R • p) = + ((a * |(R ^ 3)⁻¹| : ℝ) : ℂ) * spatialFourier f p := by + have hcov : (∫ x : EuclideanSpace ℝ (Fin 3), + Complex.exp (-(Complex.I * (⟪p, R • x⟫_ℝ : ℂ))) * (f.1 (R • x) : ℂ)) = + |(R ^ Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)))⁻¹| • spatialFourier f p := + Measure.integral_comp_smul volume + (fun x => Complex.exp (-(Complex.I * (⟪p, x⟫_ℝ : ℂ))) * (f.1 x : ℂ)) R + calc + spatialFourier (spatialScale R hR a f) (R • p) = + ∫ x : EuclideanSpace ℝ (Fin 3), (a : ℂ) * + (Complex.exp (-(Complex.I * (⟪p, R • x⟫_ℝ : ℂ))) * (f.1 (R • x) : ℂ)) := by + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + change Complex.exp (-(Complex.I * (⟪R • p, x⟫_ℝ : ℂ))) * (a * f.1 (R • x) : ℝ) = + (a : ℂ) * (Complex.exp (-(Complex.I * (⟪p, R • x⟫_ℝ : ℂ))) * (f.1 (R • x) : ℂ)) + rw [real_inner_smul_left, real_inner_smul_right] + push_cast + ring + _ = (a : ℂ) * (∫ x : EuclideanSpace ℝ (Fin 3), + Complex.exp (-(Complex.I * (⟪p, R • x⟫_ℝ : ℂ))) * (f.1 (R • x) : ℂ)) := + integral_const_mul _ _ + _ = ((a * |(R ^ 3)⁻¹| : ℝ) : ℂ) * spatialFourier f p := by + rw [hcov, finrank_momentum, Complex.real_smul, ← mul_assoc, ← Complex.ofReal_mul] + +/-- The time-zero source map has the same mass-shell scaling as the spacetime source map. -/ +theorem timeZeroOneParticle_dilate (m : ℝ) {R : ℝ} (hR : 0 < R) + (u : TimeZeroSource) (p : EuclideanSpace ℝ (Fin 3)) : + timeZeroOneParticle (m * R) (timeZeroDilate R hR.ne' u) (R • p) = + ((R⁻¹ : ℝ) : ℂ) * timeZeroOneParticle m u p := by + have habs : |(R ^ 3)⁻¹| = (R ^ 3)⁻¹ := abs_of_pos (inv_pos.mpr (pow_pos hR 3)) + have h2 : R ^ 2 * (R ^ 3)⁻¹ = R⁻¹ := by field_simp [hR.ne'] + have h1 : R * (R ^ 3)⁻¹ = R⁻¹ * R⁻¹ := by field_simp [hR.ne'] + unfold timeZeroOneParticle timeZeroDilate + rw [spatialFourier_scale, spatialFourier_scale, dispersion_smul m hR.le p, habs, h2, h1] + push_cast + have hRc : (R : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hR.ne' + field_simp [hRc] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroDilationDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroDilationDefs.lean new file mode 100644 index 0000000000..c88e95aaa0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroDilationDefs.lean @@ -0,0 +1,40 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDefs + +/-! +# Statement seed extracted from FreeField/TimeZeroDilation + +Literal declarations are unchanged; theorem conclusions remain in the implementation module. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +/-- Spatial rescaling with explicit amplitude; the nonzero scale preserves compact support. -/ +noncomputable def spatialScale (R : ℝ) (hR : R ≠ 0) (a : ℝ) + (f : SpatialTestFunction) : SpatialTestFunction := + ⟨fun x => a * f.1 (R • x), + contDiff_const.mul (f.2.1.comp (contDiff_const_smul R)), + (f.2.2.comp_smul hR).mul_left⟩ + +/-- Exactly the pair transformation (2.5), without a spacetime substitution. -/ +noncomputable def timeZeroDilate (R : ℝ) (hR : R ≠ 0) (u : TimeZeroSource) : TimeZeroSource := + (spatialScale R hR (R ^ 2) u.1, spatialScale R hR R u.2) + +/-- The position-space symplectic form (2.1). -/ +noncomputable def timeZeroSymplectic (u v : TimeZeroSource) : ℝ := + ∫ x : EuclideanSpace ℝ (Fin 3), u.1.1 x * v.2.1 x - u.2.1 x * v.1.1 x + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroGram.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroGram.lean new file mode 100644 index 0000000000..b25fa2b79a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroGram.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroInner + +/-! +# The time-zero Gram identity in Fourier variables + +The covariance below uses precisely the multipliers `ωₘ⁻¹` and `ωₘ`. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +/-- Reality of the source gives the usual conjugation symmetry of its transform. -/ +theorem spatialFourier_neg (f : SpatialTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + spatialFourier f (-p) = conj (spatialFourier f p) := by + unfold spatialFourier + rw [← integral_conj] + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + simp only [inner_neg_left, Complex.ofReal_neg, map_mul, map_neg, + ← Complex.exp_conj, Complex.conj_I, Complex.conj_ofReal] + congr 2; ring + +/-- A real even Fourier multiplier pairs two real sources to a real number. +This symmetry identity holds for the Bochner integral; applications establish +integrability separately in `TimeZeroInner`. -/ +theorem conj_integral_spatialFourier_even_weight (f g : SpatialTestFunction) + (w : EuclideanSpace ℝ (Fin 3) → ℝ) (hw : ∀ p, w (-p) = w p) : + conj (∫ p, (conj (spatialFourier f p) * spatialFourier g p) * (w p : ℂ)) = + ∫ p, (conj (spatialFourier f p) * spatialFourier g p) * (w p : ℂ) := by + calc + _ = ∫ p, conj ((conj (spatialFourier f p) * spatialFourier g p) * (w p : ℂ)) := + integral_conj.symm + _ = ∫ p, (conj (spatialFourier f (-p)) * spatialFourier g (-p)) * (w (-p) : ℂ) := by + apply integral_congr_ae + exact Filter.Eventually.of_forall fun p => by + simp only [spatialFourier_neg, hw, map_mul, Complex.conj_conj, Complex.conj_ofReal] + _ = _ := by + simpa [finrank_momentum] using + Measure.integral_comp_smul volume + (fun p => (conj (spatialFourier f p) * spatialFourier g p) * (w p : ℂ)) (-1 : ℝ) + +theorem conj_timeZeroFourierDiagonal (m : ℝ) (u v : TimeZeroSource) : + conj (timeZeroFourierDiagonal m u v) = timeZeroFourierDiagonal m u v := by + have hw : ∀ p, dispersion m (-p) = dispersion m p := by + intro p + simp only [dispersion, norm_neg] + unfold timeZeroFourierDiagonal + rw [map_mul, map_add, Complex.conj_ofReal, + conj_integral_spatialFourier_even_weight u.1 v.1 _ (fun p => congrArg Inv.inv (hw p)), + conj_integral_spatialFourier_even_weight u.2 v.2 _ hw] + +theorem timeZeroFourierDiagonal_eq_covariance (m : ℝ) (u v : TimeZeroSource) : + timeZeroFourierDiagonal m u v = (timeZeroFourierCovariance m u v : ℂ) := by + have h := congrArg Complex.im (conj_timeZeroFourierDiagonal m u v) + have him : (timeZeroFourierDiagonal m u v).im = 0 := by + simp only [Complex.conj_im] at h + linarith + apply Complex.ext + · rfl + · simpa using him + +/-- Equation (2.6) for the explicit, integrable Fourier-multiplier covariance. -/ +theorem timeZeroGram_identity {m : ℝ} (hm : 0 < m) (u v : TimeZeroSource) : + timeZeroOneParticleInner m u v = (timeZeroFourierCovariance m u v : ℂ) + + (Complex.I / 2) * (timeZeroSymplectic u v : ℂ) := by + have hff := integrable_inv_dispersion_spatialFourier_product hm u.1 v.1 + have hgg := integrable_dispersion_spatialFourier_product hm.le u.2 v.2 + have hfg := integrable_spatialFourier_product u.1 v.2 + have hgf := integrable_spatialFourier_product u.2 v.1 + have hcross : (∫ p, conj (spatialFourier u.1 p) * spatialFourier v.2 p - + conj (spatialFourier u.2 p) * spatialFourier v.1 p) = + (((2 * Real.pi) ^ 3 : ℝ) : ℂ) * (timeZeroSymplectic u v : ℂ) := by + rw [integral_sub hfg hgf, integral_spatialFourier_product, + integral_spatialFourier_product, ← mul_sub] + congr 1 + have hi1 := u.1.2.1.continuous.mul v.2.2.1.continuous + have hi2 := u.2.2.1.continuous.mul v.1.2.1.continuous + have hint1 := hi1.integrable_of_hasCompactSupport (μ := volume) u.1.2.2.mul_right + have hint2 := hi2.integrable_of_hasCompactSupport (μ := volume) u.2.2.2.mul_right + simp_rw [← Complex.ofReal_mul] + change (∫ x, ((u.1.1 x * v.2.1 x : ℝ) : ℂ)) - + (∫ x, ((u.2.1 x * v.1.1 x : ℝ) : ℂ)) = (timeZeroSymplectic u v : ℂ) + rw [integral_complex_ofReal (f := fun x => u.1.1 x * v.2.1 x), + integral_complex_ofReal (f := fun x => u.2.1 x * v.1.1 x), ← Complex.ofReal_sub] + congr 1 + exact (integral_sub hint1 hint2).symm + unfold timeZeroOneParticleInner + simp_rw [timeZeroOneParticle_product_expand hm] + have hsum := integral_add (hff.add hgg) ((hfg.sub hgf).const_mul Complex.I) + have hdiag := integral_add hff hgg + simp only [Pi.add_apply, Pi.sub_apply] at hsum hdiag + rw [integral_mul_const, hsum, hdiag, integral_const_mul, hcross, add_mul] + change timeZeroFourierDiagonal m u v + _ = _ + rw [timeZeroFourierDiagonal_eq_covariance] + congr 1 + have hpi : (Real.pi : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr Real.pi_ne_zero + push_cast + field_simp [hpi] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroInner.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroInner.lean new file mode 100644 index 0000000000..cb4ea2a7c9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroInner.lean @@ -0,0 +1,110 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFourier + +/-! +# Integrability of time-zero mass-shell pairings + +The smooth compactly supported sources are evaluated in the manuscript's +mass-shell measure, with no integrability supplied as a model assumption. +The weighted Fourier pairings below are the ingredients of the Gram identity. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +theorem dispersion_le_mass_add_norm {m : ℝ} (hm : 0 ≤ m) + (p : EuclideanSpace ℝ (Fin 3)) : dispersion m p ≤ m + ‖p‖ := by + have hs := Real.sq_sqrt (show 0 ≤ m ^ 2 + ‖p‖ ^ 2 by positivity) + have hp := Real.sqrt_nonneg (m ^ 2 + ‖p‖ ^ 2) + have hn := norm_nonneg p + unfold dispersion + nlinarith [mul_nonneg hm hn] + +theorem integrable_inv_dispersion_spatialFourier_product {m : ℝ} (hm : 0 < m) + (f g : SpatialTestFunction) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => + (conj (spatialFourier f p) * spatialFourier g p) * ((dispersion m p)⁻¹ : ℝ)) := by + refine (integrable_spatialFourier_product f g).mul_bdd (c := m⁻¹) + (Complex.continuous_ofReal.comp ((continuous_dispersion m).inv₀ + (fun p => (hm.trans_le (le_dispersion hm.le p)).ne'))).aestronglyMeasurable ?_ + refine Filter.Eventually.of_forall fun p => ?_ + have hd : 0 < dispersion m p := hm.trans_le (le_dispersion hm.le p) + change ‖(((dispersion m p)⁻¹ : ℝ) : ℂ)‖ ≤ _ + rw [Complex.norm_real, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr hd)] + exact inv_anti₀ hm (le_dispersion hm.le p) + +theorem integrable_dispersion_spatialFourier_product {m : ℝ} (hm : 0 ≤ m) + (f g : SpatialTestFunction) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => + (conj (spatialFourier f p) * spatialFourier g p) * (dispersion m p : ℂ)) := by + have h0 : Integrable (fun p : EuclideanSpace ℝ (Fin 3) => + ‖spatialFourier f p‖ * ‖spatialFourier g p‖) := by + simpa only [pow_zero, one_mul] using integrable_pow_norm_spatialFourier_product f g 0 + have h1 : Integrable (fun p : EuclideanSpace ℝ (Fin 3) => + (‖p‖ * ‖spatialFourier f p‖) * ‖spatialFourier g p‖) := by + simpa only [pow_one] using integrable_pow_norm_spatialFourier_product f g 1 + refine ((h0.const_mul m).add h1).mono' ?_ ?_ + · exact (((Complex.continuous_conj.comp (continuous_spatialFourier f)).mul + (continuous_spatialFourier g)).mul + (Complex.continuous_ofReal.comp (continuous_dispersion m))).aestronglyMeasurable + · refine Filter.Eventually.of_forall fun p => ?_ + rw [norm_mul, norm_mul, Complex.norm_conj, Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg (show 0 ≤ dispersion m p from Real.sqrt_nonneg _)] + have h := mul_le_mul_of_nonneg_left (dispersion_le_mass_add_norm hm p) + (mul_nonneg (norm_nonneg (spatialFourier f p)) (norm_nonneg (spatialFourier g p))) + change _ ≤ m * (‖spatialFourier f p‖ * ‖spatialFourier g p‖) + + ‖p‖ * ‖spatialFourier f p‖ * ‖spatialFourier g p‖ + nlinarith + +/-- Pointwise expansion separating the two diagonal terms and symplectic cross term. -/ +theorem timeZeroOneParticle_product_expand {m : ℝ} (hm : 0 < m) + (u v : TimeZeroSource) (p : EuclideanSpace ℝ (Fin 3)) : + conj (timeZeroOneParticle m u p) * timeZeroOneParticle m v p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ) = + ((conj (spatialFourier u.1 p) * spatialFourier v.1 p) * ((dispersion m p)⁻¹ : ℝ) + + (conj (spatialFourier u.2 p) * spatialFourier v.2 p) * (dispersion m p : ℂ) + + Complex.I * (conj (spatialFourier u.1 p) * spatialFourier v.2 p - + conj (spatialFourier u.2 p) * spatialFourier v.1 p)) * + ((1 / (2 * (2 * Real.pi) ^ 3) : ℝ) : ℂ) := by + have hd : (dispersion m p : ℂ) ≠ 0 := + Complex.ofReal_ne_zero.mpr (hm.trans_le (le_dispersion hm.le p)).ne' + have hc : (2 * (2 * (Real.pi : ℂ)) ^ 3) ≠ 0 := by + exact mul_ne_zero two_ne_zero (pow_ne_zero 3 + (mul_ne_zero two_ne_zero (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero))) + have hnum : conj (timeZeroOneParticle m u p) * timeZeroOneParticle m v p = + conj (spatialFourier u.1 p) * spatialFourier v.1 p + + (dispersion m p : ℂ) ^ 2 * conj (spatialFourier u.2 p) * spatialFourier v.2 p + + Complex.I * (dispersion m p : ℂ) * + (conj (spatialFourier u.1 p) * spatialFourier v.2 p - + conj (spatialFourier u.2 p) * spatialFourier v.1 p) := by + simp only [timeZeroOneParticle, map_add, map_mul, Complex.conj_I, Complex.conj_ofReal] + linear_combination (-(dispersion m p : ℂ) ^ 2 * + conj (spatialFourier u.2 p) * spatialFourier v.2 p) * Complex.I_sq + rw [hnum] + push_cast + field_simp [hd, hc] + +/-- Integrability is derived from Schwartz decay, including the energy-weighted term. -/ +theorem integrable_timeZeroOneParticleInner_integrand {m : ℝ} (hm : 0 < m) + (u v : TimeZeroSource) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => + conj (timeZeroOneParticle m u p) * timeZeroOneParticle m v p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)) := by + simp_rw [timeZeroOneParticle_product_expand hm] + exact (((integrable_inv_dispersion_spatialFourier_product hm u.1 v.1).add + (integrable_dispersion_spatialFourier_product hm.le u.2 v.2)).add + (((integrable_spatialFourier_product u.1 v.2).sub + (integrable_spatialFourier_product u.2 v.1)).const_mul Complex.I)).mul_const _ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroL2.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroL2.lean new file mode 100644 index 0000000000..6382b5a839 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroL2.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroCovarianceDilation +public import LeanPool.VacuumBellSeparation.FreeField.Existence + +/-! +# Literal time-zero sources in the physical one-particle Hilbert space + +The same mass-shell measure used by the spacetime model is used here. This +bundles the proved integrability and Gram identity into genuine `L²` vectors. +No source completion, density, complex injectivity or time-slice result is assumed. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate +open MeasureTheory + +namespace VacuumBellSeparation + +theorem spatialFourier_add (f g : SpatialTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + spatialFourier (f + g) p = spatialFourier f p + spatialFourier g p := by + unfold spatialFourier + rw [← integral_add (integrable_spatialFourier f p) (integrable_spatialFourier g p)] + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + change _ * ((f.1 x + g.1 x : ℝ) : ℂ) = _ + push_cast + ring + +theorem timeZeroOneParticle_add (m : ℝ) (u v : TimeZeroSource) + (p : EuclideanSpace ℝ (Fin 3)) : + timeZeroOneParticle m (u + v) p = timeZeroOneParticle m u p + timeZeroOneParticle m v p := by + change spatialFourier (u.1 + v.1) p + Complex.I * (dispersion m p : ℂ) * + spatialFourier (u.2 + v.2) p = _ + rw [spatialFourier_add, spatialFourier_add] + unfold timeZeroOneParticle + ring + +theorem continuous_timeZeroOneParticle (m : ℝ) (u : TimeZeroSource) : + Continuous (timeZeroOneParticle m u) := + (continuous_spatialFourier u.1).add + ((continuous_const.mul (Complex.continuous_ofReal.comp (continuous_dispersion m))).mul + (continuous_spatialFourier u.2)) + +/-- The literal time-zero source map belongs to the physical one-particle `L²` space. -/ +theorem memLp_timeZeroOneParticle {m : ℝ} (hm : 0 < m) (u : TimeZeroSource) : + MemLp (timeZeroOneParticle m u) 2 (oneParticleMeasure m) := by + have hmeas : AEStronglyMeasurable (timeZeroOneParticle m u) (oneParticleMeasure m) := + (continuous_timeZeroOneParticle m u).aestronglyMeasurable + rw [memLp_two_iff_integrable_sq_norm hmeas, oneParticleMeasure, + integrable_withDensity_iff_integrable_smul (measurable_oneParticleWeight hm)] + refine (integrable_timeZeroOneParticleInner_integrand hm u u).norm.congr + (Filter.Eventually.of_forall fun p => ?_) + change ‖conj (timeZeroOneParticle m u p) * timeZeroOneParticle m u p * + ((1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p) : ℝ) : ℂ)‖ = + oneParticleWeight m p • ‖timeZeroOneParticle m u p‖ ^ 2 + rw [norm_mul, norm_mul, Complex.norm_conj, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos (oneParticleWeightReal_pos hm p), NNReal.smul_def, smul_eq_mul, + oneParticleWeight_coe hm p] + ring + +/-- The time-zero source vector in the existing physical mass-shell Hilbert space. -/ +noncomputable def timeZeroL2 {m : ℝ} (hm : 0 < m) (u : TimeZeroSource) : + Lp ℂ 2 (oneParticleMeasure m) := + (memLp_timeZeroOneParticle hm u).toLp (timeZeroOneParticle m u) + +theorem coeFn_timeZeroL2 {m : ℝ} (hm : 0 < m) (u : TimeZeroSource) : + (timeZeroL2 hm u : EuclideanSpace ℝ (Fin 3) → ℂ) =ᵐ[oneParticleMeasure m] + timeZeroOneParticle m u := + (memLp_timeZeroOneParticle hm u).coeFn_toLp + +theorem timeZeroL2_add {m : ℝ} (hm : 0 < m) (u v : TimeZeroSource) : + timeZeroL2 hm (u + v) = timeZeroL2 hm u + timeZeroL2 hm v := + (MemLp.toLp_congr (memLp_timeZeroOneParticle hm (u + v)) + ((memLp_timeZeroOneParticle hm u).add (memLp_timeZeroOneParticle hm v)) + (Filter.Eventually.of_forall fun p => timeZeroOneParticle_add m u v p)).trans + (MemLp.toLp_add (memLp_timeZeroOneParticle hm u) (memLp_timeZeroOneParticle hm v)) + +theorem inner_timeZeroL2 {m : ℝ} (hm : 0 < m) (u v : TimeZeroSource) : + ⟪timeZeroL2 hm u, timeZeroL2 hm v⟫_ℂ = timeZeroOneParticleInner m u v := by + refine (L2.inner_def (𝕜 := ℂ) _ _).trans ?_ + refine (integral_congr_ae + (g := fun p => conj (timeZeroOneParticle m u p) * timeZeroOneParticle m v p) ?_).trans ?_ + · filter_upwards [coeFn_timeZeroL2 hm u, coeFn_timeZeroL2 hm v] with p hpu hpv + rw [hpu, hpv, RCLike.inner_apply'] + · rw [oneParticleMeasure, integral_withDensity_eq_integral_smul (measurable_oneParticleWeight hm)] + unfold timeZeroOneParticleInner + refine integral_congr_ae (Filter.Eventually.of_forall fun p => ?_) + change oneParticleWeight m p • (conj (timeZeroOneParticle m u p) * timeZeroOneParticle m v + p) = _ + rw [NNReal.smul_def, Complex.real_smul, oneParticleWeight_coe hm p] + ring + +/-- The Gram formula now describes actual inner products of Hilbert-space vectors. -/ +theorem inner_timeZeroL2_gram {m : ℝ} (hm : 0 < m) (u v : TimeZeroSource) : + ⟪timeZeroL2 hm u, timeZeroL2 hm v⟫_ℂ = (timeZeroFourierCovariance m u v : ℂ) + + (Complex.I / 2) * (timeZeroSymplectic u v : ℂ) := by + rw [inner_timeZeroL2 hm, timeZeroGram_identity hm] + +theorem norm_timeZeroL2_sq {m : ℝ} (hm : 0 < m) (u : TimeZeroSource) : + ‖timeZeroL2 hm u‖ ^ 2 = timeZeroFourierCovariance m u u := by + rw [← timeZeroOneParticleInner_re hm, ← inner_timeZeroL2 hm] + exact (inner_self_eq_norm_sq (𝕜 := ℂ) (timeZeroL2 hm u)).symm + +theorem timeZeroFourierCovariance_self_nonneg {m : ℝ} (hm : 0 < m) (u : TimeZeroSource) : + 0 ≤ timeZeroFourierCovariance m u u := by + rw [← norm_timeZeroL2_sq hm] + positivity + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroNonabelian.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroNonabelian.lean new file mode 100644 index 0000000000..43f9c2e426 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroNonabelian.lean @@ -0,0 +1,99 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroSymplecticNondegenerate +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroSymplecticAlgebra +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroWeylRelations +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroAlgebra + +/-! +# Noncommuting actual local Weyl operators + +A smooth bump supplies a nonzero localized real source. Its literal +quarter-turn supplies a nonzero symplectic partner. Real rescaling sets +the symplectic pairing to pi, so the two Weyl phases are opposite. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +/-- A nonempty open spatial region contains an actual nonzero compact source. -/ +theorem exists_nonzero_localizedTimeZeroSource + {U : Set (EuclideanSpace ℝ (Fin 3))} (hU : IsOpen U) (hne : U.Nonempty) : + ∃ u : TimeZeroSource, u ∈ localizedTimeZeroSources U ∧ u ≠ 0 := by + obtain ⟨x, hx⟩ := hne + obtain ⟨f, hf, hcompact, hsmooth, _, hfx⟩ := + exists_contDiff_tsupport_subset (n := (⊤ : ℕ∞)) (hU.mem_nhds hx) + let g : SpatialTestFunction := ⟨f, hsmooth, hcompact⟩ + refine ⟨(g, 0), ⟨hf, ?_⟩, ?_⟩ + · change tsupport (0 : EuclideanSpace ℝ (Fin 3) → ℝ) ⊆ U + simp + · intro hzero + have hz := congrArg (fun u : TimeZeroSource => u.1.1 x) hzero + change f x = 0 at hz + rw [hfx] at hz + exact one_ne_zero hz + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem FreeFieldVacuum.timeZeroWeyl_not_commute_of_symplectic_pi + (V : FreeFieldVacuum m H) (hm : 0 < m) (u v : TimeZeroSource) + (huv : timeZeroSymplectic u v = Real.pi) : + V.timeZeroWeyl hm u * V.timeZeroWeyl hm v ≠ + V.timeZeroWeyl hm v * V.timeZeroWeyl hm u := by + have hvu : timeZeroSymplectic v u = -Real.pi := by + rw [timeZeroSymplectic_skew v u, huv] + have hminus : Complex.exp (-(Complex.I * (Real.pi : ℂ) / 2)) = -Complex.I := by + have he : -(Complex.I * (Real.pi : ℂ) / 2) = -(Real.pi : ℂ) / 2 * Complex.I := by ring + rw [he] + exact Complex.exp_neg_pi_div_two_mul_I + have hplus : Complex.exp (-(Complex.I * ((-Real.pi : ℝ) : ℂ) / 2)) = Complex.I := by + rw [Complex.ofReal_neg] + have he : -(Complex.I * -(Real.pi : ℂ) / 2) = (Real.pi : ℂ) / 2 * Complex.I := by ring + rw [he] + exact Complex.exp_pi_div_two_mul_I + intro hcomm + rw [V.timeZeroWeyl_mul_symplectic hm u v, V.timeZeroWeyl_mul_symplectic hm v u, + huv, hvu, hminus, hplus, add_comm v u] at hcomm + have hvec := congrArg (fun A : H →L[ℂ] H => A V.vacuum) hcomm + change (-Complex.I) • (V.timeZeroWeyl hm (u + v) V.vacuum) = + Complex.I • (V.timeZeroWeyl hm (u + v) V.vacuum) at hvec + have hz : V.timeZeroWeyl hm (u + v) V.vacuum ≠ 0 := by + intro hzero + have hn := ContinuousLinearMap.norm_map_of_mem_unitary + (V.timeZeroWeyl_mem_unitary hm (u + v)) V.vacuum + rw [hzero, norm_zero, V.vacuum_norm] at hn + exact zero_ne_one hn + have hi : -Complex.I = Complex.I := smul_left_injective ℂ hz hvec + have him := congrArg Complex.im hi + norm_num at him + +/-- Nonabelianity is proved from physical source pairs in the original H. -/ +theorem FreeFieldVacuum.timeZeroLocalAlgebra_nonabelian + (V : FreeFieldVacuum m H) (hm : 0 < m) + {U : Set (EuclideanSpace ℝ (Fin 3))} (hU : IsOpen U) (hne : U.Nonempty) : + ∃ A ∈ timeZeroLocalAlgebra V hm U, ∃ B ∈ timeZeroLocalAlgebra V hm U, + A * B ≠ B * A := by + obtain ⟨u, hu, hune⟩ := exists_nonzero_localizedTimeZeroSource hU hne + obtain ⟨v, hv, hσ⟩ := exists_local_symplectic_partner hu hune + let w := (Real.pi / timeZeroSymplectic u v) • u + have hw : w ∈ localizedTimeZeroSources U := + (localizedTimeZeroSources U).smul_mem _ hu + have hwv : timeZeroSymplectic w v = Real.pi := by + dsimp only [w] + rw [timeZeroSymplectic_smul_left, div_mul_cancel₀ _ hσ] + exact ⟨V.timeZeroWeyl hm w, + V.timeZeroWeyl_mem_timeZeroLocalAlgebra hm w hw.1 hw.2, + V.timeZeroWeyl hm v, + V.timeZeroWeyl_mem_timeZeroLocalAlgebra hm v hv.1 hv.2, + V.timeZeroWeyl_not_commute_of_symplectic_pi hm w v hwv⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroNondegenerate.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroNondegenerate.lean new file mode 100644 index 0000000000..920345961d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroNondegenerate.lean @@ -0,0 +1,96 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroL2 + +/-! +# Nondegeneracy of the real time-zero covariance + +Reality of both source components recovers each Fourier transform from κ(p) +and the conjugate of κ(-p). This proves injectivity on real test pairs. It is +not the complexified completed-source injectivity/standardness theorem. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate FourierTransform +open MeasureTheory + +namespace VacuumBellSeparation + +theorem spatialTestFunction_eq_zero_of_fourier_eq_zero (f : SpatialTestFunction) + (hf : ∀ p, spatialFourier f p = 0) : f = 0 := by + have hFT : 𝓕 (spatialSchwartz f) = (0 : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) := by + ext p + change (𝓕 (spatialSchwartz f)) p = 0 + simpa only [← spatialFourier_two_pi] using hf ((2 * Real.pi) • p) + have hS : spatialSchwartz f = 0 := by + apply (FourierTransform.fourierCLE ℂ + (SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ)).injective + simpa using hFT + apply Subtype.ext + funext x + have hx := DFunLike.congr_fun hS x + change f.1 x = 0 + change (f.1 x : ℂ) = 0 at hx + exact Complex.ofReal_injective hx + +theorem timeZeroSource_eq_zero_of_oneParticle_eq_zero {m : ℝ} (hm : 0 < m) + (u : TimeZeroSource) (hu : ∀ p, timeZeroOneParticle m u p = 0) : u = 0 := by + have hcomponents (p : EuclideanSpace ℝ (Fin 3)) : + spatialFourier u.1 p = 0 ∧ spatialFourier u.2 p = 0 := by + have hp := hu p + have hn := congrArg conj (hu (-p)) + have hw : dispersion m (-p) = dispersion m p := by simp only [dispersion, norm_neg] + simp only [timeZeroOneParticle, hw, spatialFourier_neg, map_add, map_mul, + Complex.conj_conj, Complex.conj_I, Complex.conj_ofReal, map_zero] at hp hn + have hf : spatialFourier u.1 p = 0 := by + linear_combination (1 / 2 : ℂ) * hp + (1 / 2 : ℂ) * hn + have hg : Complex.I * (dispersion m p : ℂ) * spatialFourier u.2 p = 0 := by + linear_combination (1 / 2 : ℂ) * hp - (1 / 2 : ℂ) * hn + refine ⟨hf, (mul_eq_zero.mp hg).resolve_left ?_⟩ + exact mul_ne_zero Complex.I_ne_zero + (Complex.ofReal_ne_zero.mpr (hm.trans_le (le_dispersion hm.le p)).ne') + apply Prod.ext + · exact spatialTestFunction_eq_zero_of_fourier_eq_zero u.1 (fun p => (hcomponents p).1) + · exact spatialTestFunction_eq_zero_of_fourier_eq_zero u.2 (fun p => (hcomponents p).2) + +/-- The positive massive shell density has the same null sets as spatial volume. -/ +theorem ae_oneParticleMeasure_iff {m : ℝ} (hm : 0 < m) + {P : EuclideanSpace ℝ (Fin 3) → Prop} : + (∀ᵐ p ∂oneParticleMeasure m, P p) ↔ ∀ᵐ p, P p := by + rw [oneParticleMeasure, ae_withDensity_iff (measurable_oneParticleWeight hm).coe_nnreal_ennreal] + have hw (p : EuclideanSpace ℝ (Fin 3)) : (oneParticleWeight m p : ENNReal) ≠ 0 := by + have hp : 0 < oneParticleWeight m p := Real.toNNReal_pos.mpr (oneParticleWeightReal_pos hm p) + exact_mod_cast hp.ne' + constructor + · intro h + filter_upwards [h] with p hp + exact hp (hw p) + · intro h + filter_upwards [h] with p hp + exact fun _ => hp + +/-- Real test pairs cannot vanish as physical one-particle vectors unless both sources vanish. -/ +theorem timeZeroSource_eq_zero_of_L2_eq_zero {m : ℝ} (hm : 0 < m) + (u : TimeZeroSource) (hu : timeZeroL2 hm u = 0) : u = 0 := by + have hae : timeZeroOneParticle m u =ᵐ[oneParticleMeasure m] 0 := by + have hcoe := coeFn_timeZeroL2 hm u + rw [hu] at hcoe + exact hcoe.symm.trans (Lp.coeFn_zero ℂ 2 (oneParticleMeasure m)) + have hvol : timeZeroOneParticle m u =ᵐ[volume] 0 := (ae_oneParticleMeasure_iff hm).mp hae + have hfun := Measure.eq_of_ae_eq hvol (continuous_timeZeroOneParticle m u) continuous_const + exact timeZeroSource_eq_zero_of_oneParticle_eq_zero hm u (fun p => congrFun hfun p) + +/-- The explicitly defined real covariance is positive definite on the test-source space. -/ +theorem timeZeroFourierCovariance_self_pos {m : ℝ} (hm : 0 < m) + (u : TimeZeroSource) (hu : u ≠ 0) : 0 < timeZeroFourierCovariance m u u := by + rw [← norm_timeZeroL2_sq hm] + exact sq_pos_of_pos (norm_pos_iff.mpr (fun h => hu (timeZeroSource_eq_zero_of_L2_eq_zero hm u h))) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroRapidityWave.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroRapidityWave.lean new file mode 100644 index 0000000000..f25f9318c8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroRapidityWave.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceWave +public import LeanPool.VacuumBellSeparation.FreeField.SpatialTestParametricIntegral +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroNondegenerate +public import LeanPool.VacuumBellSeparation.FreeField.AnalyticOddOrder + +/-! +# Entire Cauchy-data waves on the literal complex boost orbit + +Original spatial test integrals supply genuine entire functions of +rapidity. Equality of the original physical L2 vectors implies equality +of these entire waves with the spacetime test waves. The identity theorem +is applied to actual integrals, with no analytic-continuation premise. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +/-- Spatial rapidity wave given by `∫ x : EuclideanSpace ℝ (Fin 3), Complex.exp (Complex.I * +boostPhase m (-ζ) p (0, x)) * (f.1 x : ℂ)`. -/ +noncomputable def spatialRapidityWave (m : ℝ) (f : SpatialTestFunction) (ζ : ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + ∫ x : EuclideanSpace ℝ (Fin 3), + Complex.exp (Complex.I * boostPhase m (-ζ) p (0, x)) * (f.1 x : ℂ) + +theorem spatialRapidityWave_eq_complexSpatialFourier (m : ℝ) (f : SpatialTestFunction) + (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + spatialRapidityWave m f ζ p = complexSpatialFourier f (complexShellBoost m ζ p).2 := by + unfold spatialRapidityWave complexSpatialFourier + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + dsimp only + rw [← complexShellBoost_phase m ζ p (0, x)] + simp only [Complex.ofReal_zero, mul_zero, zero_sub, mul_neg] + +theorem spatialRapidityWave_ofReal (m η : ℝ) (f : SpatialTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + spatialRapidityWave m f (η : ℂ) p = spatialFourier f (shellBoost m η p) := by + unfold spatialRapidityWave spatialFourier + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + dsimp only + rw [← Complex.ofReal_neg, boostPhase_ofReal_eq_zero_shellBoost, neg_neg, boostPhase_zero] + simp only [mul_zero, zero_sub, Complex.ofReal_neg, mul_neg] + +theorem complexShellBoost_energy_ofReal (m η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + (complexShellBoost m (η : ℂ) p).1 = (dispersion m (shellBoost m η p) : ℂ) := by + have h := complexShellBoost_phase m (η : ℂ) p (1, 0) + rw [← Complex.ofReal_neg, boostPhase_ofReal_eq_zero_shellBoost, neg_neg, boostPhase_zero] at h + simpa only [Complex.ofReal_one, mul_one, spatialDot, PiLp.zero_apply, + Complex.ofReal_zero, mul_zero, Finset.sum_const_zero, sub_zero, + inner_zero_right] using h + +theorem hasDerivAt_spatialRapidityWave (m : ℝ) (f : SpatialTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) (ζ : ℂ) : + HasDerivAt (fun z => spatialRapidityWave m f z p) + (∫ x : EuclideanSpace ℝ (Fin 3), wedgeWavePhaseDerivative m p ζ (0, x) * (f.1 x : ℂ)) ζ := by + apply hasDerivAt_spatialTest_integral f + (fun z x => Complex.exp (Complex.I * boostPhase m (-z) p (0, x))) + (fun z x => wedgeWavePhaseDerivative m p z (0, x)) + · unfold boostPhase + fun_prop + · have hinc : Continuous (fun q : ℂ × EuclideanSpace ℝ (Fin 3) => + (q.1, ((0 : ℝ), q.2))) := + (continuous_fst : Continuous (Prod.fst : ℂ × EuclideanSpace ℝ (Fin 3) → ℂ)).prodMk + ((continuous_const : Continuous (fun _ : ℂ × EuclideanSpace ℝ (Fin 3) => (0 : ℝ))).prodMk + continuous_snd) + change Continuous (fun q : ℂ × EuclideanSpace ℝ (Fin 3) => + wedgeWavePhaseDerivative m p q.1 (0, q.2)) + exact Continuous.comp' + (f := fun q : ℂ × EuclideanSpace ℝ (Fin 3) => (q.1, ((0 : ℝ), q.2))) + (g := fun q : ℂ × Spacetime => wedgeWavePhaseDerivative m p q.1 q.2) + (continuous_wedgeWavePhaseDerivative m p) hinc + · intro z x + have hd := ((hasDerivAt_boostPhase m p (0, x) (-z)).comp z + (hasDerivAt_neg z)).const_mul Complex.I + simpa only [wedgeWavePhaseDerivative, Function.comp_apply, mul_neg_one, mul_neg, mul_one] + using hd.cexp + +theorem analyticOnNhd_complexSourceWave_boost (m : ℝ) (u : TimeZeroSource) + (p : EuclideanSpace ℝ (Fin 3)) : + AnalyticOnNhd ℂ (fun ζ => complexSourceWave u (complexShellBoost m ζ p)) Set.univ := by + have hf : Differentiable ℂ (fun ζ => spatialRapidityWave m u.1 ζ p) := + fun ζ => (hasDerivAt_spatialRapidityWave m u.1 p ζ).differentiableAt + have hg : Differentiable ℂ (fun ζ => spatialRapidityWave m u.2 ζ p) := + fun ζ => (hasDerivAt_spatialRapidityWave m u.2 p ζ).differentiableAt + have he : Differentiable ℂ (fun ζ => (complexShellBoost m ζ p).1) := by + unfold complexShellBoost + fun_prop + have hi : Differentiable ℂ (fun _ : ℂ => Complex.I) := differentiable_const _ + have hd := hf.add ((hi.mul he).mul hg) + intro ζ hζ + simpa only [complexSourceWave, spatialRapidityWave_eq_complexSpatialFourier, + Pi.add_def, Pi.mul_def] using hd.analyticAt ζ + +theorem complexSourceWave_boost_ofReal (m η : ℝ) (u : TimeZeroSource) + (p : EuclideanSpace ℝ (Fin 3)) : + complexSourceWave u (complexShellBoost m (η : ℂ) p) = + timeZeroOneParticle m u (shellBoost m η p) := by + rw [complexSourceWave, ← spatialRapidityWave_eq_complexSpatialFourier, + ← spatialRapidityWave_eq_complexSpatialFourier, spatialRapidityWave_ofReal, + spatialRapidityWave_ofReal, complexShellBoost_energy_ofReal] + rfl + +theorem wedgeWave_eq_complexSourceWave_of_L2_eq {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (u : TimeZeroSource) (heq : oneParticleL2 hm F = timeZeroL2 hm u) + (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + wedgeWave m F ζ p = complexSourceWave u (complexShellBoost m ζ p) := by + have hae : oneParticle m F =ᵐ[oneParticleMeasure m] timeZeroOneParticle m u := by + have hF := coeFn_oneParticleL2 hm F + rw [heq] at hF + exact hF.symm.trans (coeFn_timeZeroL2 hm u) + have hreal : oneParticle m F = timeZeroOneParticle m u := + Measure.eq_of_ae_eq ((ae_oneParticleMeasure_iff hm).mp hae) + (continuous_oneParticle m F) (continuous_timeZeroOneParticle m u) + have hall := entire_eq_of_real_eq (analyticOnNhd_wedgeWave m F p) + (analyticOnNhd_complexSourceWave_boost m u p) (fun η => by + rw [wedgeWave_ofReal, complexSourceWave_boost_ofReal, hreal]) + exact congrFun hall ζ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroSourceLocality.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroSourceLocality.lean new file mode 100644 index 0000000000..32dbef3b13 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroSourceLocality.lean @@ -0,0 +1,65 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourcePair +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceAlgebra +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Algebra + +/-! +# Commutation of the actual time-zero source algebras + +The literal source symplectic form is the imaginary one-particle pairing. +Its vanishing gives commutation of the original spacetime representatives, +then of their actual generated von Neumann algebras. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {m : ℝ} (hm : 0 < m) {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (V : FreeFieldVacuum m H) + +theorem timeZeroWeyl_mul_comm_of_symplectic_zero {u v : TimeZeroSource} + (huv : timeZeroSymplectic u v = 0) : + V.timeZeroWeyl hm u * V.timeZeroWeyl hm v = V.timeZeroWeyl hm v * V.timeZeroWeyl hm u := by + change V.weyl (timeZeroSpacetimeRepresentative hm u) * V.weyl + (timeZeroSpacetimeRepresentative hm v) = _ + apply V.weyl_mul_comm_of_im_eq_zero + rw [oneParticleInner_timeZeroSpacetimeRepresentative, ← inner_timeZeroL2 hm, + inner_timeZeroL2_gram] + simp [huv] + +theorem commuting_canonicalSourceAlgebras (S T : Submodule ℝ TimeZeroSource) + (hST : ∀ u ∈ S, ∀ v ∈ T, timeZeroSymplectic u v = 0) : + Commuting (canonicalSourceAlgebra V hm S) (canonicalSourceAlgebra V hm T) := by + apply commuting_generatedVNA_of_commute + apply commute_union_star_of_subset_unitary + · rintro A ⟨u, hu, rfl⟩ + exact V.timeZeroWeyl_mem_unitary hm u + · rintro B ⟨v, hv, rfl⟩ + exact V.timeZeroWeyl_mem_unitary hm v + · rintro A ⟨u, hu, rfl⟩ B ⟨v, hv, rfl⟩ + exact timeZeroWeyl_mul_comm_of_symplectic_zero hm V (hST u hu v hv) + +/-- Actual local time-zero algebras commute for arbitrary disjoint regions. -/ +theorem commuting_timeZeroLocalAlgebras_of_disjoint + {U W : Set (EuclideanSpace ℝ (Fin 3))} (hUW : Disjoint U W) : + Commuting (timeZeroLocalAlgebra V hm U) (timeZeroLocalAlgebra V hm W) := by + apply commuting_generatedVNA_of_commute + apply commute_union_star_of_subset_unitary + · rintro A ⟨u, hu, h'u, rfl⟩ + exact V.timeZeroWeyl_mem_unitary hm u + · rintro B ⟨v, hv, h'v, rfl⟩ + exact V.timeZeroWeyl_mem_unitary hm v + · rintro A ⟨u, hu, h'u, rfl⟩ B ⟨v, hv, h'v, rfl⟩ + exact timeZeroWeyl_mul_comm_of_symplectic_zero hm V + (timeZeroSymplectic_eq_zero_of_disjoint hUW ⟨hu, h'u⟩ ⟨hv, h'v⟩) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroSymplecticAlgebra.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroSymplecticAlgebra.lean new file mode 100644 index 0000000000..e31209af35 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroSymplecticAlgebra.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceHull + +/-! +# Bilinearity and disjoint-support locality of the literal source form + +All equalities are derived from the actual integral of f g' - g f'. The +locality statement uses disjoint spatial supports and has no covariance or +representation premise. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +theorem timeZeroSymplectic_add_left (u v w : TimeZeroSource) : + timeZeroSymplectic (u + v) w = timeZeroSymplectic u w + timeZeroSymplectic v w := by + rw [timeZeroSymplectic, timeZeroSymplectic, timeZeroSymplectic, + ← integral_add (integrable_timeZeroSymplectic u w) (integrable_timeZeroSymplectic v w)] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + change (u.1.1 x + v.1.1 x) * w.2.1 x - (u.2.1 x + v.2.1 x) * w.1.1 x = _ + ring + +theorem timeZeroSymplectic_skew (u v : TimeZeroSource) : + timeZeroSymplectic u v = -timeZeroSymplectic v u := by + rw [timeZeroSymplectic, timeZeroSymplectic, ← integral_neg] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by ring + +theorem timeZeroSymplectic_add_right (u v w : TimeZeroSource) : + timeZeroSymplectic u (v + w) = timeZeroSymplectic u v + timeZeroSymplectic u w := by + rw [timeZeroSymplectic_skew u (v + w), timeZeroSymplectic_add_left, + timeZeroSymplectic_skew v u, timeZeroSymplectic_skew w u] + ring + +theorem timeZeroSymplectic_smul_left (a : ℝ) (u v : TimeZeroSource) : + timeZeroSymplectic (a • u) v = a * timeZeroSymplectic u v := by + rw [timeZeroSymplectic, timeZeroSymplectic, ← integral_const_mul] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + change (a * u.1.1 x) * v.2.1 x - (a * u.2.1 x) * v.1.1 x = _ + ring + +theorem timeZeroSymplectic_zero_left (u : TimeZeroSource) : timeZeroSymplectic 0 u = 0 := by + change (∫ x : EuclideanSpace ℝ (Fin 3), + (0 : ℝ) * u.2.1 x - (0 : ℝ) * u.1.1 x) = 0 + simp + +theorem timeZeroSymplectic_zero_right (u : TimeZeroSource) : timeZeroSymplectic u 0 = 0 := by + rw [timeZeroSymplectic_skew, timeZeroSymplectic_zero_left, neg_zero] + +/-- Disjoint spatial localization makes the actual symplectic cross form vanish. -/ +theorem timeZeroSymplectic_eq_zero_of_disjoint + {U W : Set (EuclideanSpace ℝ (Fin 3))} (hUW : Disjoint U W) + {u v : TimeZeroSource} (hu : u ∈ localizedTimeZeroSources U) + (hv : v ∈ localizedTimeZeroSources W) : timeZeroSymplectic u v = 0 := by + rw [timeZeroSymplectic] + apply integral_eq_zero_of_ae + exact Filter.Eventually.of_forall fun x => by + by_cases hx : x ∈ U + · have hxW : x ∉ W := fun h => Set.disjoint_left.mp hUW hx h + have hv₁ : v.1.1 x = 0 := image_eq_zero_of_notMem_tsupport (fun h => hxW (hv.1 h)) + have hv₂ : v.2.1 x = 0 := image_eq_zero_of_notMem_tsupport (fun h => hxW (hv.2 h)) + simp only [hv₁, hv₂, mul_zero, sub_zero, Pi.zero_apply] + · have hu₁ : u.1.1 x = 0 := image_eq_zero_of_notMem_tsupport (fun h => hx (hu.1 h)) + have hu₂ : u.2.1 x = 0 := image_eq_zero_of_notMem_tsupport (fun h => hx (hu.2 h)) + simp only [hu₁, hu₂, zero_mul, sub_zero, Pi.zero_apply] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroSymplecticNondegenerate.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroSymplecticNondegenerate.lean new file mode 100644 index 0000000000..23bf8e8924 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroSymplecticNondegenerate.lean @@ -0,0 +1,97 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourceSpace + +/-! +# Explicit local symplectic partners + +The quarter-turn (f,g) ↦ (-g,f) preserves local support. Its pairing +with (f,g) is the actual integral of f²+g², which vanishes only for the +zero smooth compact source. This supplies local partners constructively. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +/-- The support-preserving quarter-turn on the literal test pairs. -/ +def timeZeroQuarterTurn : TimeZeroSource →ₗ[ℝ] TimeZeroSource where + toFun u := (-u.2, u.1) + map_add' u v := by + apply Prod.ext + · change -(u.2 + v.2) = -u.2 + -v.2 + exact neg_add u.2 v.2 + · rfl + map_smul' a u := by ext <;> simp + +@[simp] theorem timeZeroQuarterTurn_apply (u : TimeZeroSource) : + timeZeroQuarterTurn u = (-u.2, u.1) := rfl + +theorem timeZeroQuarterTurn_sq (u : TimeZeroSource) : + timeZeroQuarterTurn (timeZeroQuarterTurn u) = -u := by + apply Prod.ext <;> rfl + +theorem timeZeroQuarterTurn_local {U : Set (EuclideanSpace ℝ (Fin 3))} + {u : TimeZeroSource} (hu : u ∈ localizedTimeZeroSources U) : + timeZeroQuarterTurn u ∈ localizedTimeZeroSources U := by + refine ⟨?_, hu.1⟩ + change tsupport (fun x => -(u.2.1 x)) ⊆ U + change tsupport (-u.2.1) ⊆ U + simpa only [tsupport_neg] using hu.2 + +theorem timeZeroSymplectic_quarterTurn (u : TimeZeroSource) : + timeZeroSymplectic u (timeZeroQuarterTurn u) = + ∫ x : EuclideanSpace ℝ (Fin 3), (u.1.1 x) ^ 2 + (u.2.1 x) ^ 2 := by + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + change u.1.1 x * u.1.1 x - u.2.1 x * (-(u.2.1 x)) = _ + ring + +theorem timeZeroSymplectic_quarterTurn_eq_zero_iff (u : TimeZeroSource) : + timeZeroSymplectic u (timeZeroQuarterTurn u) = 0 ↔ u = 0 := by + have hint : Integrable (fun x : EuclideanSpace ℝ (Fin 3) => + (u.1.1 x) ^ 2 + (u.2.1 x) ^ 2) := by + have he : (fun x : EuclideanSpace ℝ (Fin 3) => + u.1.1 x * (timeZeroQuarterTurn u).2.1 x - + u.2.1 x * (timeZeroQuarterTurn u).1.1 x) = + (fun x => (u.1.1 x) ^ 2 + (u.2.1 x) ^ 2) := by + funext x + change u.1.1 x * u.1.1 x - u.2.1 x * (-(u.2.1 x)) = _ + ring + exact he ▸ integrable_timeZeroSymplectic u (timeZeroQuarterTurn u) + rw [timeZeroSymplectic_quarterTurn] + constructor + · intro hz + have hae := (integral_eq_zero_iff_of_nonneg + (fun x => add_nonneg (sq_nonneg _) (sq_nonneg _)) hint).mp hz + have h₁ : u.1.1 =ᵐ[volume] 0 := hae.mono fun x hx => by + have hp := sq_nonneg (u.2.1 x) + dsimp only [Pi.zero_apply] at hx ⊢ + nlinarith [sq_nonneg (u.1.1 x)] + have h₂ : u.2.1 =ᵐ[volume] 0 := hae.mono fun x hx => by + have hp := sq_nonneg (u.1.1 x) + dsimp only [Pi.zero_apply] at hx ⊢ + nlinarith [sq_nonneg (u.2.1 x)] + apply Prod.ext + · exact Subtype.ext (Measure.eq_of_ae_eq h₁ u.1.2.1.continuous continuous_const) + · exact Subtype.ext (Measure.eq_of_ae_eq h₂ u.2.2.1.continuous continuous_const) + · rintro rfl + change (∫ x : EuclideanSpace ℝ (Fin 3), (0 : ℝ) ^ 2 + (0 : ℝ) ^ 2) = 0 + simp + +/-- Actual nondegeneracy on every local smooth source space, with an explicit partner. -/ +theorem exists_local_symplectic_partner {U : Set (EuclideanSpace ℝ (Fin 3))} + {u : TimeZeroSource} (hu : u ∈ localizedTimeZeroSources U) (hne : u ≠ 0) : + ∃ v ∈ localizedTimeZeroSources U, timeZeroSymplectic u v ≠ 0 := + ⟨timeZeroQuarterTurn u, timeZeroQuarterTurn_local hu, + fun h => hne ((timeZeroSymplectic_quarterTurn_eq_zero_iff u).mp h)⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroToSpacetime.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroToSpacetime.lean new file mode 100644 index 0000000000..8165fa9693 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroToSpacetime.lean @@ -0,0 +1,81 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceRecovery + +/-! +# Actual reverse time-slice construction for compact time-zero sources + +For the physical pair `(f,g)`, choose the genuine Cauchy data `(-g,f)`. +The constructed real spacetime test function has exactly the physical +one-particle vector `f̂+iωĝ`, and lies inside the prescribed larger double +cone. This direction of the time-slice correspondence is proved from the +actual wave evolution, support theorem and one-particle integrals. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped FourierTransform +open FourierTransform + +theorem tsupport_spatialSchwartz_subset (f : SpatialTestFunction) : + tsupport (spatialSchwartz f) ⊆ tsupport f.1 := + tsupport_comp_subset Complex.ofReal_zero f.1 + +@[simp] theorem spatialSchwartzConjugate_spatialSchwartz (f : SpatialTestFunction) : + spatialSchwartzConjugate (spatialSchwartz f) = spatialSchwartz f := by + ext x + simp only [spatialSchwartzConjugate_apply, spatialSchwartz_apply, Complex.conj_ofReal] + +/-- Exact reverse time-slice theorem, with a quantitative support margin. -/ +theorem exists_spacetimeSource_of_timeZeroSource {m r R ε : ℝ} + (hm : 0 < m) (hr : 0 ≤ r) (hε : 0 < ε) (hR : r + 2 * ε < R) + (x₀ : EuclideanSpace ℝ (Fin 3)) (u : TimeZeroSource) + (hf : tsupport u.1.1 ⊆ Metric.closedBall x₀ r) + (hg : tsupport u.2.1 ⊆ Metric.closedBall x₀ r) : + ∃ F : RealTestFunction, tsupport F.1 ⊆ doubleCone (0, x₀) R ∧ + ∀ p, oneParticle m F p = timeZeroOneParticle m u p := by + let f : SpatialSchwartz := -spatialSchwartz u.2 + let g : SpatialSchwartz := spatialSchwartz u.1 + have hfs : tsupport f ⊆ Metric.closedBall x₀ r := by + simpa only [f, FunLike.coe_neg, tsupport_neg] using + (tsupport_spatialSchwartz_subset u.2).trans hg + have hgs : tsupport g ⊆ Metric.closedBall x₀ r := + (tsupport_spatialSchwartz_subset u.1).trans hf + have hfr : spatialSchwartzConjugate f = f := by + simp only [f, map_neg, spatialSchwartzConjugate_spatialSchwartz] + have hgr : spatialSchwartzConjugate g = g := spatialSchwartzConjugate_spatialSchwartz u.1 + let F := timeSliceTestFunction hm hε hr x₀ f g hfs hgs + refine ⟨F, tsupport_timeSliceTestFunction_subset_doubleCone hm hε hr hR x₀ f g hfs hgs, ?_⟩ + intro p + let ξ : EuclideanSpace ℝ (Fin 3) := (2 * Real.pi)⁻¹ • p + have hξ : (2 * Real.pi) • ξ = p := by + simp only [ξ, smul_smul, mul_inv_cancel₀ (by positivity : 2 * Real.pi ≠ 0), one_smul] + have h := oneParticle_timeSliceTestFunction hm hε hr x₀ f g hfs hgs hfr hgr ξ + have hneg : (𝓕 (-spatialSchwartz u.2)) ξ = -(𝓕 (spatialSchwartz u.2)) ξ := by + change (FourierTransform.fourierCLM ℂ SpatialSchwartz (-spatialSchwartz u.2)) ξ = _ + rw [map_neg, neg_apply, FourierTransform.fourierCLM_apply] + simp only [f, g, hneg, mul_neg, sub_neg_eq_add, + ← spatialFourier_two_pi, massiveSchwartzSymbol_one hm, hξ] at h + exact h + +/-- Any positive radius margin admits an actual compact spacetime source. -/ +theorem exists_spacetimeSource_of_timeZeroSource_radius_lt {m r R : ℝ} + (hm : 0 < m) (hr : 0 ≤ r) (hR : r < R) + (x₀ : EuclideanSpace ℝ (Fin 3)) (u : TimeZeroSource) + (hf : tsupport u.1.1 ⊆ Metric.closedBall x₀ r) + (hg : tsupport u.2.1 ⊆ Metric.closedBall x₀ r) : + ∃ F : RealTestFunction, tsupport F.1 ⊆ doubleCone (0, x₀) R ∧ + ∀ p, oneParticle m F p = timeZeroOneParticle m u p := by + apply exists_spacetimeSource_of_timeZeroSource hm hr + (show 0 < (R - r) / 4 by linarith) (show r + 2 * ((R - r) / 4) < R by linarith) + x₀ u hf hg + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroVacuumCyclicity.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroVacuumCyclicity.lean new file mode 100644 index 0000000000..cc3fae5de4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroVacuumCyclicity.lean @@ -0,0 +1,80 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LocalSourceTotality +public import LeanPool.VacuumBellSeparation.FreeField.LiteralFockVacuum +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroAlgebra + +/-! +# Local vacuum cyclicity for actual time-zero algebras + +The full original Hilbert space is used throughout. The unitary equivalence +with literal Fock space preserves the physical Weyl labels and the vacuum. +The double-cone conclusion here has time-zero center; arbitrary temporal +centers require a separate covariance proof. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open MeasureTheory Fock +open scoped InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] +variable {m : ℝ} (hm : 0 < m) (V : FreeFieldVacuum m H) + +theorem FreeFieldVacuum.vacuum_cyclic_timeZero + (U : Set (EuclideanSpace ℝ (Fin 3))) + (hbounded : Bornology.IsBounded U) (hopen : IsOpen U) (hne : U.Nonempty) : + (Submodule.span ℂ {x : H | ∃ A : H →L[ℂ] H, + A ∈ timeZeroLocalAlgebra V hm U ∧ x = A V.vacuum}).topologicalClosure = ⊤ := by + let K := Submodule.span ℂ {x : H | ∃ A : H →L[ℂ] H, + A ∈ timeZeroLocalAlgebra V hm U ∧ x = A V.vacuum} + obtain ⟨T, hΩ, hW, _, _⟩ := V.exists_literalFock_equiv hm + have horth : Kᗮ = ⊥ := by + apply (Submodule.eq_bot_iff _).mpr + intro x hx + have hz : T x = 0 := by + apply sourceFock_eq_zero_of_coherent_orthogonal hm U hbounded hopen hne + intro u + have he : T (V.timeZeroWeyl hm u.1 V.vacuum) = + coherentVector _ (timeZeroL2 hm u.1) := by + change T (V.weyl (timeZeroSpacetimeRepresentative hm u.1) V.vacuum) = _ + rw [hW, hΩ, oneParticleL2_timeZeroSpacetimeRepresentative, + literalFockWeyl_vacuum] + rw [← he, T.inner_map_map] + apply K.inner_left_of_mem_orthogonal ?_ hx + apply Submodule.subset_span + exact ⟨V.timeZeroWeyl hm u.1, + V.timeZeroWeyl_mem_timeZeroLocalAlgebra hm u.1 u.2.1 u.2.2, rfl⟩ + apply T.injective + simpa only [map_zero] using hz + apply Submodule.orthogonal_eq_bot_iff.mp + rw [Submodule.orthogonal_closure, horth] + +theorem FreeFieldVacuum.vacuum_cyclic_timeZero_ball + (x₀ : EuclideanSpace ℝ (Fin 3)) {R : ℝ} (hR : 0 < R) : + (Submodule.span ℂ {x : H | ∃ A : H →L[ℂ] H, + A ∈ timeZeroLocalAlgebra V hm (Metric.ball x₀ R) ∧ x = A V.vacuum}).topologicalClosure = ⊤ := + V.vacuum_cyclic_timeZero hm (Metric.ball x₀ R) + Metric.isBounded_ball Metric.isOpen_ball (Metric.nonempty_ball.mpr hR) + +include hm in +theorem FreeFieldVacuum.vacuum_cyclic_doubleCone_timeZero + (x₀ : EuclideanSpace ℝ (Fin 3)) {R : ℝ} (hR : 0 < R) : + (Submodule.span ℂ {x : H | ∃ A : H →L[ℂ] H, + A ∈ localAlgebra V (doubleCone (0, x₀) R) ∧ x = A V.vacuum}).topologicalClosure = ⊤ := by + apply top_unique + rw [← V.vacuum_cyclic_timeZero_ball hm x₀ hR] + apply Submodule.topologicalClosure_mono + apply Submodule.span_mono + rintro x ⟨A, hA, hx⟩ + exact ⟨A, timeZeroLocalAlgebra_ball_le V hm hR x₀ hA, hx⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWedgeContour.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWedgeContour.lean new file mode 100644 index 0000000000..1610ec4a2e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWedgeContour.lean @@ -0,0 +1,94 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroRapidityWave +public import LeanPool.VacuumBellSeparation.FreeField.WedgeFractionalWave +public import LeanPool.VacuumBellSeparation.FreeField.WedgeModularInclusion + +/-! +# The literal unshifted wedge contour for original Cauchy data + +The time-slice theorem produces an actual compact spacetime test function. +The entire-wave identity then identifies the maximal modular-power graph +vector with Psi on the complex boosted mass shell. The resulting integral +is the genuine physical Hilbert norm. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace + +theorem norm_L2_sq_eq_integral_norm_sq {α : Type*} [MeasurableSpace α] + {μ : Measure α} (v : Lp ℂ 2 μ) : + ‖v‖ ^ 2 = ∫ x, ‖v x‖ ^ 2 ∂μ := by + rw [← inner_self_eq_norm_sq (𝕜 := ℂ), L2.inner_def, + ← integral_re (L2.integrable_inner v v)] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => inner_self_eq_norm_sq (𝕜 := ℂ) (v x) + +theorem timeZero_mem_wedgePower_graph_contour {m : ℝ} (hm : 0 < m) + (u : TimeZeroSource) + (hf : tsupport u.1.1 ⊆ leftWedgeTimeZero 0) + (hg : tsupport u.2.1 ⊆ leftWedgeTimeZero 0) + {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + ∃ χ : Lp ℂ 2 (oneParticleMeasure m), + (timeZeroL2 hm u, χ) ∈ (physicalRapidityExponential hm c).graph ∧ + χ =ᵐ[oneParticleMeasure m] (fun p => complexSourceWave u + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p)) := by + obtain ⟨F, hF, heq⟩ := + exists_spacetimeSourceL2_of_timeZeroSource_leftWedge hm 0 u hf hg + let ζ : ℂ := ((2 * Real.pi * c : ℝ) : ℂ) * Complex.I + have hζ := wedgeWave_angle_mem_strip hc hc2 + refine ⟨wedgeWaveL2 hm F hF ζ hζ, ?_, ?_⟩ + · simpa only [heq] using wedgeWave_mem_physicalRapidityPower_graph hm F hF hc hc2 + · filter_upwards [wedgeWaveL2_ae hm F hF ζ hζ] with p hp + exact hp.trans (wedgeWave_eq_complexSourceWave_of_L2_eq hm F u heq ζ p) + +/-- The actual square-integrable contour and exact graph norm. -/ +theorem timeZero_wedgePower_contour_norm {m : ℝ} (hm : 0 < m) + (u : TimeZeroSource) + (hf : tsupport u.1.1 ⊆ leftWedgeTimeZero 0) + (hg : tsupport u.2.1 ⊆ leftWedgeTimeZero 0) + {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + ∃ χ : Lp ℂ 2 (oneParticleMeasure m), + (timeZeroL2 hm u, χ) ∈ (physicalRapidityExponential hm c).graph ∧ + MemLp (fun p => complexSourceWave u + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p)) + 2 (oneParticleMeasure m) ∧ + ‖χ‖ ^ 2 = ∫ p, ‖complexSourceWave u + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p)‖ ^ 2 + ∂oneParticleMeasure m := by + obtain ⟨χ, hχ, hae⟩ := timeZero_mem_wedgePower_graph_contour hm u hf hg hc hc2 + refine ⟨χ, hχ, ?_, ?_⟩ + · exact MemLp.ae_eq hae (Lp.memLp χ) + · rw [norm_L2_sq_eq_integral_norm_sq] + exact integral_congr_ae (hae.mono fun _ hp => + congrArg (fun z : ℂ => ‖z‖ ^ 2) hp) + +/-- The containing-wedge norm bound for original localized real test pairs. -/ +theorem complexSourceWave_contour_le_sourceWeight {m : ℝ} (hm : 0 < m) + {U : Set (EuclideanSpace ℝ (Fin 3))} (hU : U ⊆ leftWedgeTimeZero 0) + (u : SourceTestSpace hm U) {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) : + (∫ p, ‖complexSourceWave u.1 + (complexShellBoost m (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) p)‖ ^ 2 + ∂oneParticleMeasure m) ≤ + ‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U))‖ ^ 2 := by + obtain ⟨χ, hχ, _, hnorm⟩ := timeZero_wedgePower_contour_norm hm u.1 + (u.2.1.trans hU) (u.2.2.trans hU) hc.le hc2 + obtain ⟨ψ, hψ, hbound⟩ := physicalRapidityExponential_containing_leftWedge hm hU hc hc2 + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U)) + rw [complexSourceMap_ofReal_test] at hψ + have he := (physicalRapidityExponential hm c).mem_graph_snd_inj hχ hψ rfl + rw [← hnorm, he] + exact pow_le_pow_left₀ (norm_nonneg _) hbound 2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWeyl.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWeyl.lean new file mode 100644 index 0000000000..8ed7cb073d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWeyl.lean @@ -0,0 +1,95 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceBall +public import LeanPool.VacuumBellSeparation.FreeField.StrongContinuity +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroWeylDefs + +/-! +# Actual time-zero Weyl operators in the physical vacuum representation + +The spacetime representative exists by the proved reverse time-slice +construction. Equality of its actual one-particle vector makes the resulting +operator independent of the chosen representative. Localization uses a +separate, locally constructed witness in the same representation. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +theorem oneParticle_timeZeroSpacetimeRepresentative {m : ℝ} (hm : 0 < m) + (u : TimeZeroSource) (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m (timeZeroSpacetimeRepresentative hm u) p = timeZeroOneParticle m u p := by + let : Nonempty RealTestFunction := ⟨0⟩ + exact Classical.epsilon_spec (exists_spacetimeSource_of_timeZeroSource_any hm u) p + +theorem oneParticleL2_timeZeroSpacetimeRepresentative {m : ℝ} (hm : 0 < m) + (u : TimeZeroSource) : + oneParticleL2 hm (timeZeroSpacetimeRepresentative hm u) = timeZeroL2 hm u := + oneParticleL2_eq_timeZeroL2_of_eq hm _ u (oneParticle_timeZeroSpacetimeRepresentative hm u) + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem FreeFieldVacuum.timeZeroWeyl_eq_weyl (V : FreeFieldVacuum m H) + (hm : 0 < m) (u : TimeZeroSource) (F : RealTestFunction) + (hF : oneParticleL2 hm F = timeZeroL2 hm u) : + V.timeZeroWeyl hm u = V.weyl F := + V.weyl_eq_of_oneParticleL2_eq hm + ((oneParticleL2_timeZeroSpacetimeRepresentative hm u).trans hF.symm) + +theorem FreeFieldVacuum.timeZeroWeyl_mem_unitary (V : FreeFieldVacuum m H) + (hm : 0 < m) (u : TimeZeroSource) : + V.timeZeroWeyl hm u ∈ unitary (H →L[ℂ] H) := + V.weyl_mem_unitary _ + +theorem oneParticleInner_timeZeroSpacetimeRepresentative (hm : 0 < m) + (u v : TimeZeroSource) : + oneParticleInner m (timeZeroSpacetimeRepresentative hm u) + (timeZeroSpacetimeRepresentative hm v) = timeZeroOneParticleInner m u v := by + rw [← inner_oneParticleL2 hm, oneParticleL2_timeZeroSpacetimeRepresentative, + oneParticleL2_timeZeroSpacetimeRepresentative, inner_timeZeroL2] + +theorem FreeFieldVacuum.timeZeroWeyl_mul (V : FreeFieldVacuum m H) + (hm : 0 < m) (u v : TimeZeroSource) : + V.timeZeroWeyl hm u * V.timeZeroWeyl hm v = + Complex.exp (-(Complex.I * ((timeZeroOneParticleInner m u v).im : ℂ))) • + V.timeZeroWeyl hm (u + v) := by + have hadd : oneParticleL2 hm + (timeZeroSpacetimeRepresentative hm u + timeZeroSpacetimeRepresentative hm v) = + timeZeroL2 hm (u + v) := by + rw [oneParticleL2_add, oneParticleL2_timeZeroSpacetimeRepresentative, + oneParticleL2_timeZeroSpacetimeRepresentative, timeZeroL2_add] + change V.weyl _ * V.weyl _ = _ + rw [V.weyl_mul, oneParticleInner_timeZeroSpacetimeRepresentative, + ← V.timeZeroWeyl_eq_weyl hm (u + v) _ hadd] + +theorem FreeFieldVacuum.vacuum_timeZeroWeyl (V : FreeFieldVacuum m H) + (hm : 0 < m) (u : TimeZeroSource) : + ⟪V.vacuum, V.timeZeroWeyl hm u V.vacuum⟫_ℂ = + ((Real.exp (-(timeZeroFourierCovariance m u u / 2)) : ℝ) : ℂ) := by + change ⟪V.vacuum, V.weyl _ V.vacuum⟫_ℂ = _ + rw [V.vacuum_weyl, oneParticleInner_timeZeroSpacetimeRepresentative, + timeZeroOneParticleInner_re hm] + +/-- The time-zero test pair gives an operator in the original spacetime +double-cone algebra, with no new representation or localization axiom. -/ +theorem FreeFieldVacuum.timeZeroWeyl_mem_localAlgebra (V : FreeFieldVacuum m H) + (hm : 0 < m) {R : ℝ} (hR : 0 < R) (x₀ : EuclideanSpace ℝ (Fin 3)) + (u : TimeZeroSource) + (hf : tsupport u.1.1 ⊆ Metric.ball x₀ R) + (hg : tsupport u.2.1 ⊆ Metric.ball x₀ R) : + V.timeZeroWeyl hm u ∈ localAlgebra V (doubleCone (0, x₀) R) := by + obtain ⟨F, hs, heq⟩ := exists_spacetimeSourceL2_of_timeZeroSource_ball hm hR x₀ u hf hg + rw [V.timeZeroWeyl_eq_weyl hm u F heq] + exact V.weyl_mem_localAlgebra F hs + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWeylDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWeylDefs.lean new file mode 100644 index 0000000000..34f95819ce --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWeylDefs.lean @@ -0,0 +1,48 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDefs + +/-! +# Primitive time-zero Weyl and local-algebra definitions + +A source is selected by its literal pointwise physical κ predicate. The +existence and representation independence of such a source are proved in +TimeZeroWeyl, separately from these definitions. Thus the statement closure +of the time-slice identity contains no local existence theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- A purely specified representative; the predicate is satisfied by the +proved actual reverse time-slice construction at positive mass. -/ +noncomputable def timeZeroSpacetimeRepresentative {m : ℝ} (_hm : 0 < m) + (u : TimeZeroSource) : RealTestFunction := by + letI : Nonempty RealTestFunction := + ⟨⟨0, contDiff_const, HasCompactSupport.zero⟩⟩ + exact Classical.epsilon (fun F : RealTestFunction => + ∀ p, oneParticle m F p = timeZeroOneParticle m u p) + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Continuous linear map for the time zero Weyl, of type `H →L[ℂ] H`. -/ +noncomputable def FreeFieldVacuum.timeZeroWeyl (V : FreeFieldVacuum m H) + (hm : 0 < m) (u : TimeZeroSource) : H →L[ℂ] H := + V.weyl (timeZeroSpacetimeRepresentative hm u) + +/-- Time-zero localization uses the literal compact supports of both real +test functions and operators acting in the existing vacuum Hilbert space. -/ +noncomputable def timeZeroLocalAlgebra (V : FreeFieldVacuum m H) (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) : VonNeumannAlgebra H := + generatedVNA {T | ∃ u : TimeZeroSource, + tsupport u.1.1 ⊆ U ∧ tsupport u.2.1 ⊆ U ∧ T = V.timeZeroWeyl hm u} + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWeylRelations.lean b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWeylRelations.lean new file mode 100644 index 0000000000..daad8a7ce7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TimeZeroWeylRelations.lean @@ -0,0 +1,83 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroWeyl +public import LeanPool.VacuumBellSeparation.FreeField.SourceEmbeddingConstruction + +/-! +# The literal time-zero Weyl relations + +These are the multiplication and adjoint identities in Section 2.1, +on the original vacuum Hilbert space and with the integral symplectic form. +The exact Gram identity supplies the factor one half in the phase. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +theorem timeZeroOneParticleInner_im {m : ℝ} (hm : 0 < m) (u v : TimeZeroSource) : + (timeZeroOneParticleInner m u v).im = timeZeroSymplectic u v / 2 := by + rw [timeZeroGram_identity hm] + simp [Complex.mul_im]; ring + +/-- The manuscript's exact Weyl phase in the literal integral symplectic form. -/ +theorem FreeFieldVacuum.timeZeroWeyl_mul_symplectic (V : FreeFieldVacuum m H) + (hm : 0 < m) (u v : TimeZeroSource) : + V.timeZeroWeyl hm u * V.timeZeroWeyl hm v = + Complex.exp (-(Complex.I * (timeZeroSymplectic u v : ℂ) / 2)) • + V.timeZeroWeyl hm (u + v) := by + rw [V.timeZeroWeyl_mul hm, timeZeroOneParticleInner_im hm] + simp only [Complex.ofReal_div, Complex.ofReal_ofNat, mul_div_assoc] + +theorem FreeFieldVacuum.timeZeroWeyl_zero (V : FreeFieldVacuum m H) + (hm : 0 < m) : V.timeZeroWeyl hm 0 = 1 := by + have hinner : timeZeroOneParticleInner m 0 0 = 0 := by + rw [← inner_timeZeroL2 hm] + change ⟪timeZeroLinear hm 0, timeZeroLinear hm 0⟫_ℂ = 0 + rw [map_zero, inner_zero_left] + have hidem : V.timeZeroWeyl hm 0 * V.timeZeroWeyl hm 0 = V.timeZeroWeyl hm 0 := by + simpa only [hinner, Complex.zero_im, Complex.ofReal_zero, mul_zero, neg_zero, + Complex.exp_zero, one_smul, add_zero] using V.timeZeroWeyl_mul hm 0 0 + have hu := Unitary.star_mul_self_of_mem (V.timeZeroWeyl_mem_unitary hm 0) + calc + V.timeZeroWeyl hm 0 = + (star (V.timeZeroWeyl hm 0) * V.timeZeroWeyl hm 0) * V.timeZeroWeyl hm 0 := by + rw [hu, one_mul] + _ = star (V.timeZeroWeyl hm 0) * (V.timeZeroWeyl hm 0 * V.timeZeroWeyl hm 0) := + mul_assoc _ _ _ + _ = 1 := by rw [hidem, hu] + +/-- Adjoint reverses the actual compact real source label. -/ +theorem FreeFieldVacuum.timeZeroWeyl_star_eq_neg (V : FreeFieldVacuum m H) + (hm : 0 < m) (u : TimeZeroSource) : + star (V.timeZeroWeyl hm u) = V.timeZeroWeyl hm (-u) := by + have him : (timeZeroOneParticleInner m u (-u)).im = 0 := by + rw [← inner_timeZeroL2 hm] + change (⟪timeZeroLinear hm u, timeZeroLinear hm (-u)⟫_ℂ).im = 0 + rw [map_neg, inner_neg_right, Complex.neg_im] + change -RCLike.im (⟪timeZeroLinear hm u, timeZeroLinear hm u⟫_ℂ) = 0 + rw [inner_self_im, neg_zero] + have hinv : V.timeZeroWeyl hm u * V.timeZeroWeyl hm (-u) = 1 := by + rw [V.timeZeroWeyl_mul hm, him, Complex.ofReal_zero, mul_zero, neg_zero, + Complex.exp_zero, one_smul, add_neg_cancel, V.timeZeroWeyl_zero hm] + have hu := Unitary.star_mul_self_of_mem (V.timeZeroWeyl_mem_unitary hm u) + calc + star (V.timeZeroWeyl hm u) = star (V.timeZeroWeyl hm u) * 1 := (mul_one _).symm + _ = star (V.timeZeroWeyl hm u) * (V.timeZeroWeyl hm u * V.timeZeroWeyl hm (-u)) := by + rw [hinv] + _ = (star (V.timeZeroWeyl hm u) * V.timeZeroWeyl hm u) * V.timeZeroWeyl hm (-u) := + (mul_assoc _ _ _).symm + _ = V.timeZeroWeyl hm (-u) := by rw [hu, one_mul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/TranslatedVacuum.lean b/LeanPool/VacuumBellSeparation/FreeField/TranslatedVacuum.lean new file mode 100644 index 0000000000..77b0d6c146 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/TranslatedVacuum.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeTestTranslation + +/-! +# The translated physical vacuum system on the same Hilbert space + +Translation relabels the original Weyl operators and keeps the same unit +vacuum. Every model field is proved from the literal test transformation. +The resulting local algebra is the original algebra of the translated set. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open scoped InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] +variable {m : ℝ} + +/-- Translated. -/ +def FreeFieldVacuum.translated (V : FreeFieldVacuum m H) (a : Spacetime) : + FreeFieldVacuum m H where + weyl F := V.weyl (spacetimeTranslate a F) + vacuum := V.vacuum + weyl_mem_unitary F := V.weyl_mem_unitary _ + weyl_mul F G := by + rw [spacetimeTranslate_add, ← oneParticleInner_spacetimeTranslate m a F G] + exact V.weyl_mul _ _ + vacuum_norm := V.vacuum_norm + vacuum_weyl F := by + rw [V.vacuum_weyl, oneParticleInner_spacetimeTranslate] + cyclic := by + have hrange : (Set.range fun F => V.weyl (spacetimeTranslate a F) V.vacuum) = + Set.range fun F => V.weyl F V.vacuum := by + ext x + constructor + · rintro ⟨F, rfl⟩ + exact ⟨spacetimeTranslate a F, rfl⟩ + · rintro ⟨F, rfl⟩ + exact ⟨spacetimeTranslate (-a) F, + congrArg (fun G => V.weyl G V.vacuum) (spacetimeTranslate_cancel_neg a F)⟩ + change (Submodule.span ℂ (Set.range fun F => + V.weyl (spacetimeTranslate a F) V.vacuum)).topologicalClosure = ⊤ + rw [hrange] + exact V.cyclic + +theorem FreeFieldVacuum.localAlgebra_translated (V : FreeFieldVacuum m H) + (a : Spacetime) (O : Set Spacetime) : + localAlgebra (V.translated a) O = localAlgebra V ((fun x => x - a) ⁻¹' O) := by + unfold localAlgebra + congr 1 + ext A + constructor + · rintro ⟨F, hF, rfl⟩ + refine ⟨spacetimeTranslate a F, ?_, rfl⟩ + intro x hx + rw [tsupport_spacetimeTranslate] at hx + exact hF hx + · rintro ⟨G, hG, rfl⟩ + refine ⟨spacetimeTranslate (-a) G, ?_, ?_⟩ + · intro x hx + rw [tsupport_spacetimeTranslate] at hx + have h := hG hx + change (x - -a) - a ∈ O at h + simpa only [sub_neg_eq_add, add_sub_cancel_right] using h + · change V.weyl G = V.weyl (spacetimeTranslate a (spacetimeTranslate (-a) G)) + rw [spacetimeTranslate_cancel_neg] + +theorem FreeFieldVacuum.localAlgebra_translated_doubleCone_zero + (V : FreeFieldVacuum m H) (a : Spacetime) (R : ℝ) : + localAlgebra (V.translated a) (doubleCone 0 R) = localAlgebra V (doubleCone a R) := by + rw [V.localAlgebra_translated] + congr 1 + ext x + simp only [Set.mem_preimage, doubleCone, Set.mem_ofPred_eq, + Prod.fst_sub, Prod.snd_sub, Prod.fst_zero, Prod.snd_zero, sub_zero] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/Uniqueness.lean b/LeanPool/VacuumBellSeparation/FreeField/Uniqueness.lean new file mode 100644 index 0000000000..8f16d6e35d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/Uniqueness.lean @@ -0,0 +1,337 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Existence + +/-! +# Uniqueness of the free-field vacuum system (GNS uniqueness) + +Any two vacuum Weyl systems `V : FreeFieldVacuum m H` and `V' : FreeFieldVacuum m H'` of the +same mass are unitarily equivalent: there is a surjective linear isometry `U : H ≃ₗᵢ[ℂ] H'` +with `U Ω = Ω'` and `U W(F) = W'(F) U` for every real test function `F`. + +* `FreeFieldVacuum.weyl_zero`: `W(0) = 1`. +* `FreeFieldVacuum.inner_weyl_vacuum` (Gram formula): + `⟪W(F)Ω, W(G)Ω⟫ = exp(i Im⟨κF, κ(G-F)⟩) · exp(-Re⟨κ(G-F), κ(G-F)⟩/2)`; the right side + depends only on `m`, `F`, `G`. +* `FreeFieldVacuum.norm_linearCombination_eq`: `‖Σ c_F W'(F)Ω'‖ = ‖Σ c_F W(F)Ω‖`. +* `FreeFieldVacuum.intertwiner`: the linear isometry `H → H'` extending + `Σ c_F W(F)Ω ↦ Σ c_F W'(F)Ω'` (by density of the span, `cyclic`). +* `FreeFieldVacuum.exists_unitary_equiv`: the unitary equivalence of the two systems. +-/ + +@[expose] public section + +open scoped InnerProductSpace ComplexConjugate + +namespace VacuumBellSeparation + +/-! ### The one-particle data of the zero test function -/ + +theorem oneParticle_zero (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + oneParticle m 0 p = 0 := by + have h : ∀ x : Spacetime, (((0 : RealTestFunction).1 x : ℝ) : ℂ) = 0 := fun x => by + have h0 : (0 : RealTestFunction).1 x = 0 := rfl + rw [h0, Complex.ofReal_zero] + unfold oneParticle + simp only [h, mul_zero, MeasureTheory.integral_zero] + +theorem oneParticleInner_zero_zero (m : ℝ) : oneParticleInner m 0 0 = 0 := by + unfold oneParticleInner + simp only [oneParticle_zero, map_zero, zero_mul, MeasureTheory.integral_zero] + +/-! ### Gram matrices of linear combinations -/ + +/-- Two families with the same Gram matrix have the same Gram matrix of linear combinations. -/ +theorem inner_linearCombination_eq_of_inner_eq {ι E E' : Type*} [NormedAddCommGroup E] + [InnerProductSpace ℂ E] [NormedAddCommGroup E'] [InnerProductSpace ℂ E'] + (v : ι → E) (v' : ι → E') (h : ∀ i j, ⟪v i, v j⟫_ℂ = ⟪v' i, v' j⟫_ℂ) (c d : ι →₀ ℂ) : + ⟪Finsupp.linearCombination ℂ v c, Finsupp.linearCombination ℂ v d⟫_ℂ = + ⟪Finsupp.linearCombination ℂ v' c, Finsupp.linearCombination ℂ v' d⟫_ℂ := by + induction c using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_left] + | add c₁ c₂ h₁ h₂ => simp only [map_add, inner_add_left, h₁, h₂] + | single i a => + induction d using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_right] + | add d₁ d₂ h₁ h₂ => simp only [map_add, inner_add_right, h₁, h₂] + | single j b => + simp only [Finsupp.linearCombination_single, inner_smul_left, inner_smul_right, h] + +variable {m : ℝ} {H H' : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + [NormedAddCommGroup H'] [InnerProductSpace ℂ H'] [CompleteSpace H'] + +namespace FreeFieldVacuum + +/-! ### Elementary consequences of the Weyl relations -/ + +/-- The Weyl operators preserve inner products. -/ +theorem inner_weyl_weyl (V : FreeFieldVacuum m H) (F : RealTestFunction) (x y : H) : + ⟪V.weyl F x, V.weyl F y⟫_ℂ = ⟪x, y⟫_ℂ := + ContinuousLinearMap.inner_map_map_of_mem_unitary (V.weyl_mem_unitary F) x y + +/-- The Weyl relation applied to a vector: `W(F) W(G) x = e^{-i Im⟨κF, κG⟩} W(F + G) x`. -/ +theorem weyl_apply_weyl (V : FreeFieldVacuum m H) (F G : RealTestFunction) (x : H) : + V.weyl F (V.weyl G x) = + Complex.exp (-(Complex.I * ((oneParticleInner m F G).im : ℂ))) • V.weyl (F + G) x := by + have h := congrArg (fun T : H →L[ℂ] H => T x) (V.weyl_mul F G) + first + | exact h + +/-- `W(0) = 1`. -/ +theorem weyl_zero (V : FreeFieldVacuum m H) : V.weyl 0 = 1 := by + have h : V.weyl 0 * V.weyl 0 = V.weyl 0 := by + have h1 := V.weyl_mul 0 0 + have h2 : Complex.exp (-(Complex.I * ((oneParticleInner m 0 0).im : ℂ))) = 1 := by + rw [oneParticleInner_zero_zero, Complex.zero_im, Complex.ofReal_zero, mul_zero, neg_zero, + Complex.exp_zero] + rw [h2, one_smul] at h1 + exact h1.trans (congrArg V.weyl (add_zero (0 : RealTestFunction))) + have hs := Unitary.star_mul_self_of_mem (V.weyl_mem_unitary 0) + calc V.weyl 0 = (star (V.weyl 0) * V.weyl 0) * V.weyl 0 := by rw [hs, one_mul] + _ = star (V.weyl 0) * (V.weyl 0 * V.weyl 0) := mul_assoc _ _ _ + _ = 1 := by rw [h, hs] + +theorem weyl_zero_apply (V : FreeFieldVacuum m H) (x : H) : V.weyl 0 x = x := + (congrArg (fun T : H →L[ℂ] H => T x) V.weyl_zero).trans rfl + +/-! ### The Gram formula -/ + +/-- **Gram formula**: `⟪W(F)Ω, W(G)Ω⟫ = exp(i Im⟨κF, κ(G-F)⟩) · exp(-Re⟨κ(G-F), κ(G-F)⟩/2)`. +The right side depends only on `m`, `F` and `G`, not on the system. -/ +theorem inner_weyl_vacuum (V : FreeFieldVacuum m H) (F G : RealTestFunction) : + ⟪V.weyl F V.vacuum, V.weyl G V.vacuum⟫_ℂ = + Complex.exp (Complex.I * ((oneParticleInner m F (G - F)).im : ℂ)) * + ((Real.exp (-((oneParticleInner m (G - F) (G - F)).re / 2)) : ℝ) : ℂ) := by + have h2 : V.weyl F (V.weyl (G - F) V.vacuum) = + Complex.exp (-(Complex.I * ((oneParticleInner m F (G - F)).im : ℂ))) • + V.weyl G V.vacuum := by + rw [V.weyl_apply_weyl] + exact congrArg (fun K => Complex.exp (-(Complex.I * ((oneParticleInner m F (G - F)).im : ℂ))) • + V.weyl K V.vacuum) (add_sub_cancel F G) + have h1 : ⟪V.weyl F V.vacuum, V.weyl F (V.weyl (G - F) V.vacuum)⟫_ℂ = + ((Real.exp (-((oneParticleInner m (G - F) (G - F)).re / 2)) : ℝ) : ℂ) := by + rw [V.inner_weyl_weyl, V.vacuum_weyl] + rw [h2, inner_smul_right] at h1 + rw [← h1, ← mul_assoc, ← Complex.exp_add, add_neg_cancel, Complex.exp_zero, one_mul] + +/-- The norms of linear combinations of the vectors `W(F)Ω` agree in any two systems. -/ +theorem norm_linearCombination_eq (V : FreeFieldVacuum m H) (V' : FreeFieldVacuum m H') + (c : RealTestFunction →₀ ℂ) : + ‖Finsupp.linearCombination ℂ (fun F => V'.weyl F V'.vacuum) c‖ = + ‖Finsupp.linearCombination ℂ (fun F => V.weyl F V.vacuum) c‖ := by + have h := inner_linearCombination_eq_of_inner_eq (fun F => V'.weyl F V'.vacuum) + (fun F => V.weyl F V.vacuum) + (fun F G => (V'.inner_weyl_vacuum F G).trans (V.inner_weyl_vacuum F G).symm) c c + rw [norm_eq_sqrt_re_inner (𝕜 := ℂ), norm_eq_sqrt_re_inner (𝕜 := ℂ), h] + +/-! ### The intertwining isometry -/ + +/-- The vectors `W(F)Ω` span a dense subspace (cyclicity of the vacuum). -/ +theorem denseRange_linearCombination (V : FreeFieldVacuum m H) : + DenseRange (Finsupp.linearCombination ℂ (fun F => V.weyl F V.vacuum)) := by + have hd : Dense ((Submodule.span ℂ (Set.range fun F => V.weyl F V.vacuum) : Submodule ℂ H) : + Set H) := Submodule.dense_iff_topologicalClosure_eq_top.mpr V.cyclic + refine Dense.mono ?_ hd + intro x hx + have hx' : x ∈ LinearMap.range (Finsupp.linearCombination ℂ (fun F => V.weyl F V.vacuum)) := by + rw [Finsupp.range_linearCombination] + exact hx + obtain ⟨c, hc⟩ := LinearMap.mem_range.mp hx' + exact ⟨c, hc⟩ + +/-- The linear isometry `H → H'` extending `Σ c_F W(F)Ω ↦ Σ c_F W'(F)Ω'`. -/ +noncomputable def intertwiner (V : FreeFieldVacuum m H) (V' : FreeFieldVacuum m H') : + H →ₗᵢ[ℂ] H' := + (Finsupp.linearCombination ℂ (fun F => V'.weyl F V'.vacuum)).extendOfIsometry + V.denseRange_linearCombination (V.norm_linearCombination_eq V') + +theorem intertwiner_linearCombination (V : FreeFieldVacuum m H) (V' : FreeFieldVacuum m H') + (c : RealTestFunction →₀ ℂ) : + V.intertwiner V' (Finsupp.linearCombination ℂ (fun F => V.weyl F V.vacuum) c) = + Finsupp.linearCombination ℂ (fun F => V'.weyl F V'.vacuum) c := + LinearMap.extendOfIsometry_eq (Finsupp.linearCombination ℂ (fun F => V'.weyl F V'.vacuum)) + V.denseRange_linearCombination (V.norm_linearCombination_eq V') c + +theorem intertwiner_weyl_vacuum (V : FreeFieldVacuum m H) (V' : FreeFieldVacuum m H') + (F : RealTestFunction) : + V.intertwiner V' (V.weyl F V.vacuum) = V'.weyl F V'.vacuum := by + have h := V.intertwiner_linearCombination V' (Finsupp.single F 1) + simp only [Finsupp.linearCombination_single, one_smul] at h + exact h + +/-- **Uniqueness of the vacuum representation** (GNS): two vacuum Weyl systems of the same +mass are unitarily equivalent, by a unitary mapping vacuum to vacuum and intertwining the +Weyl operators. -/ +theorem exists_unitary_equiv (V : FreeFieldVacuum m H) (V' : FreeFieldVacuum m H') : + ∃ U : H ≃ₗᵢ[ℂ] H', U V.vacuum = V'.vacuum ∧ ∀ F x, U (V.weyl F x) = V'.weyl F (U x) := by + have hsurj : Function.Surjective (V.intertwiner V') := by + have hclosed : IsClosed (Set.range (V.intertwiner V')) := + (V.intertwiner V').isometry.isClosedEmbedding.isClosed_range + have hsub : Set.range (Finsupp.linearCombination ℂ (fun F => V'.weyl F V'.vacuum)) ⊆ + Set.range (V.intertwiner V') := by + rintro _ ⟨c, rfl⟩ + exact ⟨Finsupp.linearCombination ℂ (fun F => V.weyl F V.vacuum) c, + V.intertwiner_linearCombination V' c⟩ + have h1 := closure_minimal hsub hclosed + rw [V'.denseRange_linearCombination.closure_range] at h1 + intro y + exact h1 (Set.mem_univ y) + refine ⟨LinearIsometryEquiv.ofSurjective (V.intertwiner V') hsurj, ?_, ?_⟩ + · rw [LinearIsometryEquiv.coe_ofSurjective] + calc V.intertwiner V' V.vacuum = V.intertwiner V' (V.weyl 0 V.vacuum) := by + rw [V.weyl_zero_apply] + _ = V'.weyl 0 V'.vacuum := V.intertwiner_weyl_vacuum V' 0 + _ = V'.vacuum := V'.weyl_zero_apply V'.vacuum + · intro F x + rw [LinearIsometryEquiv.coe_ofSurjective] + have hext : (V.intertwiner V').toContinuousLinearMap.comp (V.weyl F) = + (V'.weyl F).comp (V.intertwiner V').toContinuousLinearMap := by + refine ContinuousLinearMap.ext_on + (Submodule.dense_iff_topologicalClosure_eq_top.mpr V.cyclic) ?_ + rintro _ ⟨G, rfl⟩ + change V.intertwiner V' (V.weyl F (V.weyl G V.vacuum)) = + V'.weyl F (V.intertwiner V' (V.weyl G V.vacuum)) + rw [V.weyl_apply_weyl, LinearIsometry.map_smul, V.intertwiner_weyl_vacuum, + V.intertwiner_weyl_vacuum, V'.weyl_apply_weyl] + exact DFunLike.congr_fun hext x + +end FreeFieldVacuum + +/-! ### Invariance of the vacuum Bell correlation under unitary equivalence -/ + +theorem mem_commutantOf_iff_of_starAlgEquiv (Φ : (H →L[ℂ] H) ≃⋆ₐ[ℂ] (H' →L[ℂ] H')) + {S : Set (H →L[ℂ] H)} {S' : Set (H' →L[ℂ] H')} (hS : ∀ T, T ∈ S ↔ Φ T ∈ S') + (T : H →L[ℂ] H) : T ∈ commutantOf S ↔ Φ T ∈ commutantOf S' := by + have hstar : ∀ X : H →L[ℂ] H, Φ (star X) = star (Φ X) := fun X => Φ.map_star' X + change T ∈ StarSubalgebra.centralizer ℂ S ↔ Φ T ∈ StarSubalgebra.centralizer ℂ S' + rw [StarSubalgebra.mem_centralizer_iff, StarSubalgebra.mem_centralizer_iff] + constructor + · intro h g' hg' + have hg : Φ.symm g' ∈ S := (hS _).mpr (by rwa [StarAlgEquiv.apply_symm_apply]) + obtain ⟨h1, h2⟩ := h _ hg + have e1 := congrArg (⇑Φ) h1 + have e2 := congrArg (⇑Φ) h2 + simp only [map_mul, hstar, StarAlgEquiv.apply_symm_apply] at e1 e2 + exact ⟨e1, e2⟩ + · intro h g hg + obtain ⟨h1, h2⟩ := h (Φ g) ((hS g).mp hg) + refine ⟨EquivLike.injective Φ ?_, EquivLike.injective Φ ?_⟩ + · simpa only [map_mul] using h1 + · simpa only [map_mul, hstar] using h2 + +theorem mem_generatedVNA_iff_of_starAlgEquiv (Φ : (H →L[ℂ] H) ≃⋆ₐ[ℂ] (H' →L[ℂ] H')) + {S : Set (H →L[ℂ] H)} {S' : Set (H' →L[ℂ] H')} (hS : ∀ T, T ∈ S ↔ Φ T ∈ S') + (T : H →L[ℂ] H) : T ∈ generatedVNA S ↔ Φ T ∈ generatedVNA S' := by + have hc := mem_commutantOf_iff_of_starAlgEquiv Φ hS + change T ∈ (commutantOf S).commutant ↔ Φ T ∈ (commutantOf S').commutant + rw [VonNeumannAlgebra.mem_commutant_iff, VonNeumannAlgebra.mem_commutant_iff] + constructor + · intro h g' hg' + have hg : Φ.symm g' ∈ commutantOf S := (hc _).mpr (by rwa [StarAlgEquiv.apply_symm_apply]) + have e1 := congrArg (⇑Φ) (h _ hg) + simp only [map_mul, StarAlgEquiv.apply_symm_apply] at e1 + exact e1 + · intro h g hg + exact EquivLike.injective Φ (by simpa only [map_mul] using h (Φ g) ((hc g).mp hg)) + +theorem norm_conjStarAlgEquiv_le (U : H ≃ₗᵢ[ℂ] H') (A : H →L[ℂ] H) : + ‖U.conjStarAlgEquiv A‖ ≤ ‖A‖ := by + refine ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg A) fun y => ?_ + rw [LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, LinearIsometryEquiv.norm_map] + calc ‖A (U.symm y)‖ ≤ ‖A‖ * ‖U.symm y‖ := A.le_opNorm _ + _ = ‖A‖ * ‖y‖ := by rw [LinearIsometryEquiv.norm_map] + +theorem mem_saContractions_iff_of_conj (U : H ≃ₗᵢ[ℂ] H') {M : VonNeumannAlgebra H} + {M' : VonNeumannAlgebra H'} (hM : ∀ T, T ∈ M ↔ U.conjStarAlgEquiv T ∈ M') + (A : H →L[ℂ] H) : A ∈ saContractions M ↔ U.conjStarAlgEquiv A ∈ saContractions M' := by + constructor + · rintro ⟨hA, hsa, hn⟩ + exact ⟨(hM A).mp hA, IsSelfAdjoint.map U.conjStarAlgEquiv hsa, + (norm_conjStarAlgEquiv_le U A).trans hn⟩ + · rintro ⟨hA, hsa, hn⟩ + have e : U.conjStarAlgEquiv.symm (U.conjStarAlgEquiv A) = A := + StarAlgEquiv.symm_apply_apply _ A + refine ⟨(hM A).mpr hA, ?_, ?_⟩ + · rw [← e] + exact IsSelfAdjoint.map U.conjStarAlgEquiv.symm hsa + · rw [← e] + exact (norm_conjStarAlgEquiv_le U.symm _).trans hn + +theorem conjStarAlgEquiv_chshOp (U : H ≃ₗᵢ[ℂ] H') (A₀ A₁ B₀ B₁ : H →L[ℂ] H) : + U.conjStarAlgEquiv (chshOp A₀ A₁ B₀ B₁) = + chshOp (U.conjStarAlgEquiv A₀) (U.conjStarAlgEquiv A₁) (U.conjStarAlgEquiv B₀) + (U.conjStarAlgEquiv B₁) := by + simp only [chshOp, map_add, map_mul, map_sub] + +/-- The Bell correlation is invariant under a unitary equivalence of states and algebras. -/ +theorem bellCorrelation_eq_of_conj (U : H ≃ₗᵢ[ℂ] H') (ω : State H) (ω' : State H') + (hω : ∀ T, ω' (U.conjStarAlgEquiv T) = ω T) {𝔄 𝔅 : VonNeumannAlgebra H} + {𝔄' 𝔅' : VonNeumannAlgebra H'} (h𝔄 : ∀ T, T ∈ 𝔄 ↔ U.conjStarAlgEquiv T ∈ 𝔄') + (h𝔅 : ∀ T, T ∈ 𝔅 ↔ U.conjStarAlgEquiv T ∈ 𝔅') : + bellCorrelation ω' 𝔄' 𝔅' = bellCorrelation ω 𝔄 𝔅 := by + unfold bellCorrelation + congr 1 + ext x + constructor + · rintro ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, rfl⟩ + refine ⟨U.conjStarAlgEquiv.symm A₀, ?_, U.conjStarAlgEquiv.symm A₁, ?_, + U.conjStarAlgEquiv.symm B₀, ?_, U.conjStarAlgEquiv.symm B₁, ?_, ?_⟩ + · rwa [mem_saContractions_iff_of_conj U h𝔄, StarAlgEquiv.apply_symm_apply] + · rwa [mem_saContractions_iff_of_conj U h𝔄, StarAlgEquiv.apply_symm_apply] + · rwa [mem_saContractions_iff_of_conj U h𝔅, StarAlgEquiv.apply_symm_apply] + · rwa [mem_saContractions_iff_of_conj U h𝔅, StarAlgEquiv.apply_symm_apply] + · rw [← hω, conjStarAlgEquiv_chshOp, StarAlgEquiv.apply_symm_apply, + StarAlgEquiv.apply_symm_apply, StarAlgEquiv.apply_symm_apply, + StarAlgEquiv.apply_symm_apply] + · rintro ⟨A₀, hA₀, A₁, hA₁, B₀, hB₀, B₁, hB₁, rfl⟩ + refine ⟨U.conjStarAlgEquiv A₀, (mem_saContractions_iff_of_conj U h𝔄 A₀).mp hA₀, + U.conjStarAlgEquiv A₁, (mem_saContractions_iff_of_conj U h𝔄 A₁).mp hA₁, + U.conjStarAlgEquiv B₀, (mem_saContractions_iff_of_conj U h𝔅 B₀).mp hB₀, + U.conjStarAlgEquiv B₁, (mem_saContractions_iff_of_conj U h𝔅 B₁).mp hB₁, ?_⟩ + rw [← conjStarAlgEquiv_chshOp, hω] + +namespace FreeFieldVacuum + +theorem conjStarAlgEquiv_weyl (V : FreeFieldVacuum m H) (V' : FreeFieldVacuum m H') + (U : H ≃ₗᵢ[ℂ] H') (hU : ∀ F x, U (V.weyl F x) = V'.weyl F (U x)) (F : RealTestFunction) : + U.conjStarAlgEquiv (V.weyl F) = V'.weyl F := by + ext y + rw [LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, hU, LinearIsometryEquiv.apply_symm_apply] + +theorem mem_localAlgebra_iff_of_conj (V : FreeFieldVacuum m H) (V' : FreeFieldVacuum m H') + (U : H ≃ₗᵢ[ℂ] H') (hU : ∀ F x, U (V.weyl F x) = V'.weyl F (U x)) (O : Set Spacetime) + (T : H →L[ℂ] H) : T ∈ localAlgebra V O ↔ U.conjStarAlgEquiv T ∈ localAlgebra V' O := by + refine mem_generatedVNA_iff_of_starAlgEquiv U.conjStarAlgEquiv (fun X => ?_) T + constructor + · rintro ⟨F, hF, rfl⟩ + exact ⟨F, hF, conjStarAlgEquiv_weyl V V' U hU F⟩ + · rintro ⟨F, hF, hX⟩ + refine ⟨F, hF, EquivLike.injective U.conjStarAlgEquiv ?_⟩ + rw [hX, conjStarAlgEquiv_weyl V V' U hU F] + +theorem vectorState_conj (V : FreeFieldVacuum m H) (V' : FreeFieldVacuum m H') + (U : H ≃ₗᵢ[ℂ] H') (hΩ : U V.vacuum = V'.vacuum) (T : H →L[ℂ] H) : + vectorState V'.vacuum V'.vacuum_norm (U.conjStarAlgEquiv T) = + vectorState V.vacuum V.vacuum_norm T := by + change ⟪V'.vacuum, U.conjStarAlgEquiv T V'.vacuum⟫_ℂ = ⟪V.vacuum, T V.vacuum⟫_ℂ + rw [LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, ← hΩ, + LinearIsometryEquiv.symm_apply_apply, LinearIsometryEquiv.inner_map_map] + +/-- The vacuum Bell correlation `β_m(R, L)` does not depend on the choice of the vacuum Weyl +system of mass `m`. -/ +theorem freeFieldBell_eq (V : FreeFieldVacuum m H) (V' : FreeFieldVacuum m H') (R L : ℝ) : + freeFieldBell V R L = freeFieldBell V' R L := by + obtain ⟨U, hΩ, hU⟩ := V.exists_unitary_equiv V' + symm + exact bellCorrelation_eq_of_conj U _ _ (vectorState_conj V V' U hΩ) + (mem_localAlgebra_iff_of_conj V V' U hU _) (mem_localAlgebra_iff_of_conj V V' U hU _) + +end FreeFieldVacuum + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/UnitaryPartialAdjoint.lean b/LeanPool/VacuumBellSeparation/FreeField/UnitaryPartialAdjoint.lean new file mode 100644 index 0000000000..a4bdbb2834 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/UnitaryPartialAdjoint.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioGraph + +/-! +# Selfadjointness under full-domain unitary transport + +The adjoint graph is characterized against every pair of the original +graph. Transport preserves those pairings and the complete domain, hence +preserves selfadjointness without a bounded-operator assumption. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {E F : Type*} +variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] +variable [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +omit [CompleteSpace E] [CompleteSpace F] in +theorem unitaryPartialTransport_dense_domain (V : E ≃ₗᵢ[ℂ] F) (T : E →ₗ.[ℂ] E) + (hT : Dense (T.domain : Set E)) : + Dense ((unitaryPartialTransport V T).domain : Set F) := by + have he : ((unitaryPartialTransport V T).domain : Set F) = + Set.range (fun x : T.domain => V (x : E)) := by + ext y + constructor + · intro hy + exact ⟨⟨V.symm y, hy⟩, V.apply_symm_apply y⟩ + · rintro ⟨x, rfl⟩ + change V.symm (V (x : E)) ∈ T.domain + rw [V.symm_apply_apply] + exact x.property + rw [he] + exact V.surjective.denseRange.comp hT.denseRange_val V.continuous + +theorem unitaryPartialTransport_isSelfAdjoint (V : E ≃ₗᵢ[ℂ] F) (T : E →ₗ.[ℂ] E) + (hT : IsSelfAdjoint T) : IsSelfAdjoint (unitaryPartialTransport V T) := by + have hd := hT.dense_domain + have hD := unitaryPartialTransport_dense_domain V T hd + have hTeq : T.adjoint = T := hT + change (unitaryPartialTransport V T).adjoint = unitaryPartialTransport V T + apply LinearPMap.eq_of_eq_graph + rw [LinearPMap.adjoint_graph_eq_graph_adjoint hD] + ext p + rcases p with ⟨x, y⟩ + rw [Submodule.mem_adjoint_iff, unitaryPartialTransport_mem_graph] + constructor + · intro hxy + have hp : (V.symm x, V.symm y) ∈ T.graph.adjoint := by + rw [Submodule.mem_adjoint_iff] + intro a b hab + have hab' : (V a, V b) ∈ (unitaryPartialTransport V T).graph := by + rw [unitaryPartialTransport_mem_graph, V.symm_apply_apply, V.symm_apply_apply] + exact hab + have h := hxy (V a) (V b) hab' + have hx : inner ℂ b (V.symm x) = inner ℂ (V b) x := by + simpa only [LinearIsometryEquiv.apply_symm_apply] using + (V.inner_map_map b (V.symm x)).symm + have hy : inner ℂ a (V.symm y) = inner ℂ (V a) y := by + simpa only [LinearIsometryEquiv.apply_symm_apply] using + (V.inner_map_map a (V.symm y)).symm + simpa only [hx, hy] using h + rwa [← LinearPMap.adjoint_graph_eq_graph_adjoint hd, hTeq] at hp + · intro hxy a b hab + have hp : (V.symm x, V.symm y) ∈ T.graph.adjoint := by + rw [← LinearPMap.adjoint_graph_eq_graph_adjoint hd, hTeq] + exact hxy + have hab' := (unitaryPartialTransport_mem_graph V T a b).mp hab + have h := (Submodule.mem_adjoint_iff _ _).mp hp (V.symm a) (V.symm b) hab' + simpa only [LinearIsometryEquiv.inner_map_map] using h + +omit [CompleteSpace E] [CompleteSpace F] in +theorem unitaryPartialTransport_inner_nonneg (V : E ≃ₗᵢ[ℂ] F) (T : E →ₗ.[ℂ] E) + (hT : ∀ x y : E, (x, y) ∈ T.graph → 0 ≤ (inner ℂ x y).re) + (x y : F) (hxy : (x, y) ∈ (unitaryPartialTransport V T).graph) : + 0 ≤ (inner ℂ x y).re := by + have h := hT (V.symm x) (V.symm y) ((unitaryPartialTransport_mem_graph V T x y).mp hxy) + simpa only [LinearIsometryEquiv.inner_map_map] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/UnitaryPartialTransport.lean b/LeanPool/VacuumBellSeparation/FreeField/UnitaryPartialTransport.lean new file mode 100644 index 0000000000..7034adc18d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/UnitaryPartialTransport.lean @@ -0,0 +1,69 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.RatioRegularizerIndependence + +/-! +# Full-domain unitary transport of partial operators + +Transport uses the actual inverse-image domain. The universal resolvent +equation is invariant under this construction, hence it identifies both +the domain and values of the transported operator. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {E F : Type*} +variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] +variable [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Linear map for the unitary partial transport, of type `F →ₗ.[ℂ] F`. -/ +noncomputable def unitaryPartialTransport (V : E ≃ₗᵢ[ℂ] F) (T : E →ₗ.[ℂ] E) : F →ₗ.[ℂ] F := + V.toLinearEquiv.toLinearMap.compPMap + (T.comp (V.symm.toLinearEquiv.toLinearMap.toPMap + (T.domain.comap V.symm.toLinearEquiv.toLinearMap)) (fun x => x.property)) + +omit [CompleteSpace E] [CompleteSpace F] in +@[simp] theorem unitaryPartialTransport_domain (V : E ≃ₗᵢ[ℂ] F) (T : E →ₗ.[ℂ] E) : + (unitaryPartialTransport V T).domain = T.domain.comap V.symm.toLinearEquiv.toLinearMap := rfl + +omit [CompleteSpace E] [CompleteSpace F] in +@[simp] theorem unitaryPartialTransport_apply (V : E ≃ₗᵢ[ℂ] F) (T : E →ₗ.[ℂ] E) + (x : (unitaryPartialTransport V T).domain) : + unitaryPartialTransport V T x = V (T ⟨V.symm x, x.property⟩) := rfl + +omit [CompleteSpace E] [CompleteSpace F] in +theorem unitaryPartialTransport_resolvent (V : E ≃ₗᵢ[ℂ] F) (T : E →ₗ.[ℂ] E) + (R : E →L[ℂ] E) + (hR : ∀ x y : E, (∃ hy : y ∈ T.domain, y + T ⟨y, hy⟩ = x) ↔ R x = y) + (x y : F) : + (∃ hy : y ∈ (unitaryPartialTransport V T).domain, + y + unitaryPartialTransport V T ⟨y, hy⟩ = x) ↔ + V (R (V.symm x)) = y := by + constructor + · rintro ⟨hy, hh⟩ + have heq : V.symm y + T ⟨V.symm y, hy⟩ = V.symm x := by + apply V.injective + simpa only [map_add, LinearIsometryEquiv.apply_symm_apply, + unitaryPartialTransport_apply] using hh + rw [(hR (V.symm x) (V.symm y)).mp ⟨hy, heq⟩, + LinearIsometryEquiv.apply_symm_apply] + · intro hh + have heq : R (V.symm x) = V.symm y := by + apply V.injective + simpa only [LinearIsometryEquiv.apply_symm_apply] using hh + obtain ⟨hy, ht⟩ := (hR (V.symm x) (V.symm y)).mpr heq + refine ⟨hy, ?_⟩ + simpa only [map_add, LinearIsometryEquiv.apply_symm_apply, + unitaryPartialTransport_apply] using congrArg V ht + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/UnitaryResolventPowers.lean b/LeanPool/VacuumBellSeparation/FreeField/UnitaryResolventPowers.lean new file mode 100644 index 0000000000..b9b4405fa2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/UnitaryResolventPowers.lean @@ -0,0 +1,62 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ExponentialResolventCalculus +public import LeanPool.VacuumBellSeparation.FreeField.UnitaryPartialTransport + +/-! +# Unitary naturality of the full resolvent power construction + +Bounded real CFC naturality and universal resolvent uniqueness transport +the entire partial operator, including its range domain. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open ContinuousLinearMap + +variable {E F : Type*} +variable [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] +variable [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem positiveContraction_spectrum_subset_unitInterval (R : E →L[ℂ] E) + (hR : 0 ≤ R) (hR1 : R ≤ 1) : spectrum ℝ R ⊆ Set.Icc 0 1 := by + intro x hx + refine ⟨(StarOrderedRing.nonneg_iff_spectrum_nonneg R hR.isSelfAdjoint).mp hR x hx, ?_⟩ + exact (Real.le_norm_self x).trans + ((IsometricContinuousFunctionalCalculus.norm_spectrum_le R hx hR.isSelfAdjoint).trans + ((CStarAlgebra.norm_le_one_iff_of_nonneg R hR).mpr hR1)) + +theorem unitaryPartialTransport_resolventPowerRatio (V : E ≃ₗᵢ[ℂ] F) + (R : E →L[ℂ] E) (hR : 0 ≤ R) (hR1 : R ≤ 1) (hiR : Function.Injective R) + (S : F →L[ℂ] F) (hS : 0 ≤ S) (hS1 : S ≤ 1) (hiS : Function.Injective S) + (hRS : V.conjStarAlgEquiv R = S) {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) : + unitaryPartialTransport V (resolventPowerRatio R hR hiR c hc hc1) = + resolventPowerRatio S hS hiS c hc hc1 := by + have hm : V.conjStarAlgEquiv (cfc (powerResolventFunction c) R) = + cfc (powerResolventFunction c) S := by + have hs : IsSelfAdjoint (V.conjStarAlgEquiv R) := hRS.symm ▸ hS.isSelfAdjoint + have hh := StarAlgHomClass.map_cfc V.conjStarAlgEquiv (powerResolventFunction c) R + ((continuousOn_powerResolventFunction hc hc1).mono + (positiveContraction_spectrum_subset_unitInterval R hR hR1)) + (by + change Continuous V.toContinuousLinearEquiv.conjContinuousAlgEquiv + exact V.toContinuousLinearEquiv.conjContinuousAlgEquiv.continuous) + hR.isSelfAdjoint hs + rwa [hRS] at hh + apply partialOperator_eq_of_resolvent _ _ (cfc (powerResolventFunction c) S) + · intro x y + rw [unitaryPartialTransport_resolvent V _ (cfc (powerResolventFunction c) R) + (resolventPowerRatio_resolvent_cfc R hR hR1 hiR c hc hc1)] + change (V.conjStarAlgEquiv (cfc (powerResolventFunction c) R)) x = y ↔ _ + rw [hm] + · exact resolventPowerRatio_resolvent_cfc S hS hS1 hiS c hc hc1 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/UnweightedMomentumDistribution.lean b/LeanPool/VacuumBellSeparation/FreeField/UnweightedMomentumDistribution.lean new file mode 100644 index 0000000000..8c3f2a3e96 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/UnweightedMomentumDistribution.lean @@ -0,0 +1,149 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.MassShellDistribution +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzKleinGordon + +/-! +# Removing the physical mass-shell density + +The reciprocal density is a genuine temperate multiplier for positive mass. +Multiplying the physical distribution by it gives a continuous, injective +embedding whose pairing is the unweighted momentum integral. Integrability of +that pairing is proved separately from the identity for the Bochner integral. +-/ + +@[expose] public section + +open MeasureTheory +open scoped SchwartzMap + +namespace VacuumBellSeparation + +theorem hasTemperateGrowth_dispersion {m : ℝ} (hm : 0 < m) : + Function.HasTemperateGrowth (dispersion m) := by + have h := (hasTemperateGrowth_massiveSchwartzSymbol m 1).comp + (show Function.HasTemperateGrowth + (fun p : EuclideanSpace ℝ (Fin 3) => (2 * Real.pi)⁻¹ • p) by fun_prop) + have hc : (2 * Real.pi : ℝ) ≠ 0 := by positivity + simpa only [Function.comp_def, massiveSchwartzSymbol_one hm, + smul_inv_smul₀ hc] using h + +theorem hasTemperateGrowth_inv_dispersion {m : ℝ} (hm : 0 < m) : + Function.HasTemperateGrowth (fun p => (dispersion m p)⁻¹) := by + have h := (hasTemperateGrowth_massiveSchwartzSymbol m (-1)).comp + (show Function.HasTemperateGrowth + (fun p : EuclideanSpace ℝ (Fin 3) => (2 * Real.pi)⁻¹ • p) by fun_prop) + have hc : (2 * Real.pi : ℝ) ≠ 0 := by positivity + simpa only [Function.comp_def, massiveSchwartzSymbol_neg_one hm, + smul_inv_smul₀ hc] using h + +/-- The reciprocal of the literal physical mass-shell density. -/ +noncomputable def inverseShellDensity (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + ((2 * (2 * Real.pi) ^ 3 : ℝ) : ℂ) * (dispersion m p : ℂ) + +/-- The literal physical mass-shell density, viewed as a complex multiplier. -/ +noncomputable def complexShellDensity (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + (((2 * (2 * Real.pi) ^ 3)⁻¹ : ℝ) : ℂ) * ((dispersion m p)⁻¹ : ℝ) + +theorem hasTemperateGrowth_inverseShellDensity {m : ℝ} (hm : 0 < m) : + Function.HasTemperateGrowth (inverseShellDensity m) := + (Function.HasTemperateGrowth.const _).mul + (Complex.ofRealCLM.hasTemperateGrowth.comp (hasTemperateGrowth_dispersion hm)) + +theorem hasTemperateGrowth_complexShellDensity {m : ℝ} (hm : 0 < m) : + Function.HasTemperateGrowth (complexShellDensity m) := + (Function.HasTemperateGrowth.const _).mul + (Complex.ofRealCLM.hasTemperateGrowth.comp (hasTemperateGrowth_inv_dispersion hm)) + +theorem complexShellDensity_eq_weight {m : ℝ} (hm : 0 < m) + (p : EuclideanSpace ℝ (Fin 3)) : + complexShellDensity m p = ((oneParticleWeight m p : ℝ) : ℂ) := by + rw [oneParticleWeight_coe hm] + simp [complexShellDensity, one_div, mul_inv_rev, mul_comm] + +theorem inverseShellDensity_mul_density {m : ℝ} (hm : 0 < m) + (p : EuclideanSpace ℝ (Fin 3)) : + inverseShellDensity m p * complexShellDensity m p = 1 := by + have hω : dispersion m p ≠ 0 := (hm.trans_le (le_dispersion hm.le p)).ne' + have hc : (2 * (2 * Real.pi) ^ 3 : ℝ) ≠ 0 := by positivity + simp only [inverseShellDensity, complexShellDensity, Complex.ofReal_inv] + field_simp [Complex.ofReal_ne_zero.mpr hc, Complex.ofReal_ne_zero.mpr hω] + +/-- The actual unweighted momentum distribution of a physical one-particle vector. -/ +noncomputable def unweightedMomentumDistribution {m : ℝ} (hm : 0 < m) : + Lp ℂ 2 (oneParticleMeasure m) →L[ℂ] TemperedDistribution (EuclideanSpace ℝ (Fin 3)) ℂ := + (TemperedDistribution.smulLeftCLM ℂ (inverseShellDensity m)).comp + (physicalMomentumDistribution hm) + +theorem reweight_unweightedMomentumDistribution {m : ℝ} (hm : 0 < m) + (u : Lp ℂ 2 (oneParticleMeasure m)) : + TemperedDistribution.smulLeftCLM ℂ (complexShellDensity m) + (unweightedMomentumDistribution hm u) = physicalMomentumDistribution hm u := by + change TemperedDistribution.smulLeftCLM ℂ (complexShellDensity m) + (TemperedDistribution.smulLeftCLM ℂ (inverseShellDensity m) + (physicalMomentumDistribution hm u)) = _ + rw [TemperedDistribution.smulLeftCLM_smulLeftCLM_apply + (hasTemperateGrowth_inverseShellDensity hm) (hasTemperateGrowth_complexShellDensity hm)] + have hprod : inverseShellDensity m * complexShellDensity m = fun _ => 1 := by + funext p + exact inverseShellDensity_mul_density hm p + rw [hprod, TemperedDistribution.smulLeftCLM_const, one_smul] + +theorem unweightedMomentumDistribution_injective {m : ℝ} (hm : 0 < m) : + Function.Injective (unweightedMomentumDistribution hm) := by + intro u v h + apply physicalMomentumDistribution_injective hm + rw [← reweight_unweightedMomentumDistribution hm u, + ← reweight_unweightedMomentumDistribution hm v, h] + +private theorem density_cancel_pairing {m : ℝ} (hm : 0 < m) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) + (u : Lp ℂ 2 (oneParticleMeasure m)) (p : EuclideanSpace ℝ (Fin 3)) : + oneParticleWeight m p • + ((SchwartzMap.smulLeftCLM ℂ (inverseShellDensity m) φ) p * u p) = φ p * u p := by + rw [SchwartzMap.smulLeftCLM_apply_apply (hasTemperateGrowth_inverseShellDensity hm), + NNReal.smul_def, Complex.real_smul, ← complexShellDensity_eq_weight hm] + change complexShellDensity m p * ((inverseShellDensity m p * φ p) * u p) = _ + calc + _ = (inverseShellDensity m p * complexShellDensity m p) * (φ p * u p) := by ring + _ = _ := by rw [inverseShellDensity_mul_density hm, one_mul] + +/-- Every Schwartz test has an absolutely integrable unweighted pairing with a +physical mass-shell `L²` vector. -/ +theorem integrable_unweightedMomentum_pairing {m : ℝ} (hm : 0 < m) + (u : Lp ℂ 2 (oneParticleMeasure m)) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + Integrable (fun p => φ p * u p) := by + let := oneParticleMeasure_hasTemperateGrowth hm + have h := ((SchwartzMap.smulLeftCLM ℂ (inverseShellDensity m) φ).memLp + 2 (oneParticleMeasure m)).integrable_mul (Lp.memLp u) + change Integrable (fun p => + (SchwartzMap.smulLeftCLM ℂ (inverseShellDensity m) φ) p * u p) + (oneParticleMeasure m) at h + change Integrable (fun p => + (SchwartzMap.smulLeftCLM ℂ (inverseShellDensity m) φ) p * u p) + (volume.withDensity (fun p => (oneParticleWeight m p : ENNReal))) at h + rw [integrable_withDensity_iff_integrable_smul (measurable_oneParticleWeight hm)] at h + simpa only [density_cancel_pairing hm φ u] using h + +/-- The normalization is exactly the ordinary spatial volume pairing. -/ +theorem unweightedMomentumDistribution_apply {m : ℝ} (hm : 0 < m) + (u : Lp ℂ 2 (oneParticleMeasure m)) + (φ : SchwartzMap (EuclideanSpace ℝ (Fin 3)) ℂ) : + unweightedMomentumDistribution hm u φ = ∫ p, φ p * u p := by + change physicalMomentumDistribution hm u + (SchwartzMap.smulLeftCLM ℂ (inverseShellDensity m) φ) = _ + rw [physicalMomentumDistribution_apply] + change (∫ p, (SchwartzMap.smulLeftCLM ℂ (inverseShellDensity m) φ) p * u p + ∂volume.withDensity (fun p => (oneParticleWeight m p : ENNReal))) = _ + rw [integral_withDensity_eq_integral_smul (measurable_oneParticleWeight hm)] + apply integral_congr_ae + exact Filter.Eventually.of_forall (density_cancel_pairing hm φ u) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/UpperHalfPlaneUniqueness.lean b/LeanPool/VacuumBellSeparation/FreeField/UpperHalfPlaneUniqueness.lean new file mode 100644 index 0000000000..8e7422def8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/UpperHalfPlaneUniqueness.lean @@ -0,0 +1,138 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.PositiveEnergyLaplace + +/-! +# Boundary uniqueness from actual complex derivatives on the closed half-plane + +A zero boundary interval gives zero tangential derivative. Gluing the function +above the real axis to zero below therefore gives an actual holomorphic function +on the union of the upper half-plane and a vertical strip. The ordinary analytic +identity theorem proves uniqueness. No reflection or boundary uniqueness axiom +is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Set +open scoped Topology + +/-- Upper zero extension defined as `if 0 ≤ z.im then F z else 0`. -/ +noncomputable def upperZeroExtension (F : ℂ → ℂ) (z : ℂ) : ℂ := + if 0 ≤ z.im then F z else 0 + +theorem HasDerivWithinAt.comp_ofReal_upper {F : ℂ → ℂ} {d : ℂ} {x : ℝ} + (h : HasDerivWithinAt F d {z : ℂ | 0 ≤ z.im} (x : ℂ)) : + HasDerivAt (fun t : ℝ => F (t : ℂ)) d x := by + simpa only [Function.comp_def, Complex.ofRealCLM_apply, Complex.ofReal_one, one_smul] + using h.scomp_hasDerivAt x Complex.ofRealCLM.hasDerivAt (by intro t; simp) + +theorem upper_derivative_eq_zero_of_boundary_zero + {F : ℂ → ℂ} {d : ℂ} {x : ℝ} + (h : HasDerivWithinAt F d {z : ℂ | 0 ≤ z.im} (x : ℂ)) + (hzero : (fun t : ℝ => F (t : ℂ)) =ᶠ[𝓝 x] 0) : d = 0 := by + exact (HasDerivWithinAt.comp_ofReal_upper h).unique ((hasDerivAt_const x + (0 : ℂ)).congr_of_eventuallyEq hzero) + +theorem differentiableAt_upperZeroExtension + {F D : ℂ → ℂ} {a b : ℝ} + (hF : ∀ z, 0 ≤ z.im → HasDerivWithinAt F (D z) {w : ℂ | 0 ≤ w.im} z) + (hzero : ∀ x ∈ Ioo a b, F (x : ℂ) = 0) + {z : ℂ} (hz : 0 < z.im ∨ z.re ∈ Ioo a b) : + DifferentiableAt ℂ (upperZeroExtension F) z := by + by_cases hp : 0 < z.im + · have hd := (hF z hp.le).hasDerivAt + (Filter.mem_of_superset + ((isOpen_lt continuous_const Complex.continuous_im).mem_nhds hp) (fun w + (hw : 0 < w.im) => hw.le)) + apply (hd.congr_of_eventuallyEq ?_).differentiableAt + filter_upwards [(isOpen_lt continuous_const Complex.continuous_im).mem_nhds hp] with w hw + simp [upperZeroExtension, hw.le] + by_cases hn : z.im < 0 + · apply ((hasDerivAt_const z (0 : ℂ)).congr_of_eventuallyEq ?_).differentiableAt + filter_upwards [(isOpen_lt Complex.continuous_im continuous_const).mem_nhds hn] with w hw + simp [upperZeroExtension, not_le.mpr hw] + have hi : z.im = 0 := le_antisymm (le_of_not_gt hp) (le_of_not_gt hn) + have hr : z.re ∈ Ioo a b := hz.resolve_left hp + have hzreal : (z.re : ℂ) = z := by apply Complex.ext <;> simp [hi] + have hd0 : D z = 0 := by + apply upper_derivative_eq_zero_of_boundary_zero + (x := z.re) (by simpa only [hzreal] using hF z (by rw [hi])) + filter_upwards [isOpen_Ioo.mem_nhds hr] with t ht + exact hzero t ht + have hupper : HasDerivWithinAt (upperZeroExtension F) 0 {w : ℂ | 0 ≤ w.im} z := by + apply ((hF z (by rw [hi])).congr_deriv hd0).congr + · intro w hw + exact ite_eq_left hw + · simp [upperZeroExtension, hi] + have hlower : HasDerivWithinAt (upperZeroExtension F) 0 {w : ℂ | w.im ≤ 0} z := by + apply (hasDerivAt_const z (0 : ℂ)).hasDerivWithinAt.congr_of_eventuallyEq + · filter_upwards [self_mem_nhdsWithin, + nhdsWithin_le_nhds ((isOpen_Ioo.preimage Complex.continuous_re).mem_nhds hr)] with w hw hwr + by_cases hw0 : 0 ≤ w.im + · have hwi : w.im = 0 := le_antisymm hw hw0 + have hwreal : (w.re : ℂ) = w := by apply Complex.ext <;> simp [hwi] + simp only [upperZeroExtension, ite_eq_left hw0] + exact hwreal ▸ hzero w.re hwr + · simp [upperZeroExtension, hw0] + · simp only [upperZeroExtension, hi, le_refl, ite_eq_left] + exact hzreal ▸ hzero z.re hr + have hu : {w : ℂ | 0 ≤ w.im} ∪ {w : ℂ | w.im ≤ 0} = univ := by + ext w + simp only [mem_union, mem_ofPred_eq, mem_univ, iff_true] + exact le_total 0 w.im + exact (hasDerivWithinAt_univ.mp (hu ▸ hupper.union hlower)).differentiableAt + +theorem upper_halfPlane_eq_zero_of_boundary_interval + {F D : ℂ → ℂ} {a b : ℝ} (hab : a < b) + (hF : ∀ z, 0 ≤ z.im → HasDerivWithinAt F (D z) {w : ℂ | 0 ≤ w.im} z) + (hzero : ∀ x ∈ Ioo a b, F (x : ℂ) = 0) : + ∀ z : ℂ, 0 < z.im → F z = 0 := by + let U : Set ℂ := {z | 0 < z.im} + let S : Set ℂ := {z | z.re ∈ Ioo a b} + have hUopen : IsOpen U := isOpen_lt continuous_const Complex.continuous_im + have hSopen : IsOpen S := isOpen_Ioo.preimage Complex.continuous_re + have hUconvex : Convex ℝ U := (convex_Ioi (0 : ℝ)).linear_preimage Complex.imCLM.toLinearMap + have hSconvex : Convex ℝ S := (convex_Ioo a b).linear_preimage Complex.reCLM.toLinearMap + let c : ℝ := (a + b) / 2 + have hc : c ∈ Ioo a b := by dsimp [c]; constructor <;> linarith + have hjoin : ((c : ℂ) + Complex.I) ∈ U ∩ S := by + change 0 < ((c : ℂ) + Complex.I).im ∧ ((c : ℂ) + Complex.I).re ∈ Ioo a b + simpa using And.intro (show (0 : ℝ) < 1 by norm_num) hc + have hconn : IsPreconnected (U ∪ S) := + IsPreconnected.union' ⟨_, hjoin⟩ hUconvex.isPreconnected hSconvex.isPreconnected + have hhol : AnalyticOnNhd ℂ (upperZeroExtension F) (U ∪ S) := by + apply DifferentiableOn.analyticOnNhd _ (hUopen.union hSopen) + intro z hz + exact (differentiableAt_upperZeroExtension hF hzero hz).differentiableWithinAt + have hbelow : ((c : ℂ) - Complex.I) ∈ U ∪ S := by + exact Or.inr (by simpa [S] using hc) + have hneg : ((c : ℂ) - Complex.I).im < 0 := by simp + have hlocal : upperZeroExtension F =ᶠ[𝓝 ((c : ℂ) - Complex.I)] 0 := by + filter_upwards [(isOpen_lt Complex.continuous_im continuous_const).mem_nhds hneg] with w hw + simp [upperZeroExtension, not_le.mpr hw] + have hall := hhol.eqOn_zero_of_preconnected_of_eventuallyEq_zero hconn hbelow hlocal + intro z hz + simpa [upperZeroExtension, hz.le] using hall (Or.inl hz) + +theorem positiveEnergyLaplace_eq_zero_of_boundary_interval + {α : Type*} [MeasurableSpace α] {μ : MeasureTheory.Measure α} + {ω : α → ℝ} {A : α → ℂ} + (hω : MeasureTheory.AEStronglyMeasurable ω μ) (hω₀ : ∀ x, 0 ≤ ω x) + (hA : MeasureTheory.Integrable A μ) + (hωA : MeasureTheory.Integrable (fun x => ω x * ‖A x‖) μ) + {a b : ℝ} (hab : a < b) + (hzero : ∀ t ∈ Ioo a b, positiveEnergyLaplace μ ω A (t : ℂ) = 0) : + ∀ z : ℂ, 0 < z.im → positiveEnergyLaplace μ ω A z = 0 := by + exact upper_halfPlane_eq_zero_of_boundary_interval hab + (fun _ hz => hasDerivWithinAt_positiveEnergyLaplace hω hω₀ hA hωA hz) hzero + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/VacuumComplexCovarianceDefs.lean b/LeanPool/VacuumBellSeparation/FreeField/VacuumComplexCovarianceDefs.lean new file mode 100644 index 0000000000..946ec875e6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/VacuumComplexCovarianceDefs.lean @@ -0,0 +1,33 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.CStarAlgebra.Module.Constructions +public import Mathlib.Tactic.TypeStar + +/-! +# Statement seed extracted from FreeField/CanonicalContractionExhaustion + +Literal declarations are unchanged; theorem conclusions remain in the implementation module. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology +open scoped InnerProductSpace + +variable {m : ℝ} {H : Type*} + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Vacuum complex covariance given by `⟪Ω, (A * B) Ω⟫_ℂ - ⟪Ω, A Ω⟫_ℂ * ⟪Ω, B Ω⟫_ℂ`. -/ +noncomputable def vacuumComplexCovariance (Ω : H) (A B : H →L[ℂ] H) : ℂ := + ⟪Ω, (A * B) Ω⟫_ℂ - ⟪Ω, A Ω⟫_ℂ * ⟪Ω, B Ω⟫_ℂ + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeCompactExhaustion.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeCompactExhaustion.lean new file mode 100644 index 0000000000..25f550c7de --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeCompactExhaustion.lean @@ -0,0 +1,113 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeGeometry +public import Mathlib.Topology.Order.Compact +public import Mathlib.Analysis.Normed.Group.Bounded + +/-! +# Compact exhaustion of the literal left wedge by double cones + +A cone tangent to the wedge edge, with its center sufficiently far along +the negative first spatial axis, contains any prescribed compact subset of +the wedge. This also supplies a single contained ball for any compact +subset of the time-zero halfspace, without a transverse size restriction. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +theorem tangent_doubleCone_subset_leftWedge (ℓ L : ℝ) : + doubleCone (0, (ℓ - L) • e₁) L ⊆ leftWedge ℓ := by + intro x hx + have hi := (le_abs_self _).trans (abs_inner_e₁_le (x.2 - (ℓ - L) • e₁)) + rw [inner_sub_right, real_inner_smul_right, inner_e₁_self, mul_one] at hi + change |x.1 - 0| + ‖x.2 - (ℓ - L) • e₁‖ < L at hx + rw [sub_zero] at hx + change ⟪e₁, x.2⟫_ℝ + |x.1| < ℓ + linarith + +theorem tangent_ball_subset_leftWedgeTimeZero (ℓ L : ℝ) : + Metric.ball ((ℓ - L) • e₁) L ⊆ leftWedgeTimeZero ℓ := by + intro x hx + apply (mem_leftWedge_zero_time ℓ x).mp + apply tangent_doubleCone_subset_leftWedge ℓ L + simpa only [doubleCone, Set.mem_ofPred_eq, sub_self, abs_zero, zero_add, + Metric.mem_ball, dist_eq_norm] using hx + +theorem mem_tangent_doubleCone_of_margin {ℓ L δ M : ℝ} {x : Spacetime} + (hL : |x.1| < L) (hlarge : M < 2 * L * δ) + (hM : ‖x.2 - ℓ • e₁‖ ^ 2 ≤ M) + (hδ : δ ≤ ℓ - (⟪e₁, x.2⟫_ℝ + |x.1|)) : + x ∈ doubleCone (0, (ℓ - L) • e₁) L := by + have hL₀ : 0 < L := (abs_nonneg _).trans_lt hL + have heq : x.2 - (ℓ - L) • e₁ = (x.2 - ℓ • e₁) + L • e₁ := by + rw [sub_smul] + module + have hsquare : ‖x.2 - (ℓ - L) • e₁‖ ^ 2 = + ‖x.2 - ℓ • e₁‖ ^ 2 + 2 * L * (⟪e₁, x.2⟫_ℝ - ℓ) + L ^ 2 := by + rw [heq, norm_add_sq_real, real_inner_smul_right, + inner_sub_left, real_inner_smul_left, inner_e₁_self, mul_one, + norm_smul, Real.norm_eq_abs, abs_of_pos hL₀, norm_e₁, mul_one] + rw [real_inner_comm x.2 e₁] + ring + have hmul := mul_le_mul_of_nonneg_left hδ (show 0 ≤ 2 * L by positivity) + have hsq : ‖x.2 - (ℓ - L) • e₁‖ ^ 2 < (L - |x.1|) ^ 2 := by + nlinarith [sq_nonneg |x.1|] + have hn : ‖x.2 - (ℓ - L) • e₁‖ < L - |x.1| := by + nlinarith [norm_nonneg (x.2 - (ℓ - L) • e₁)] + change |x.1 - 0| + ‖x.2 - (ℓ - L) • e₁‖ < L + rw [sub_zero] + linarith + +/-- Every actual compact subset fits inside one double cone contained in the +same wedge. Empty compact sets are included. -/ +theorem IsCompact.exists_tangent_doubleCone {K : Set Spacetime} (hK : IsCompact K) + {ℓ : ℝ} (hKW : K ⊆ leftWedge ℓ) : + ∃ L : ℝ, 0 < L ∧ K ⊆ doubleCone (0, (ℓ - L) • e₁) L := by + have hcδ : Continuous (fun x : Spacetime => ℓ - (⟪e₁, x.2⟫_ℝ + |x.1|)) := by + fun_prop + obtain ⟨δ, hδ₀, hδ⟩ := hK.exists_forall_le' hcδ.continuousOn + (a := (0 : ℝ)) (fun x hx => sub_pos.mpr (hKW hx)) + have hcM : Continuous (fun x : Spacetime => ‖x.2 - ℓ • e₁‖ ^ 2 + |x.1|) := by + fun_prop + obtain ⟨M, hM⟩ := hK.exists_bound_of_continuousOn hcM.continuousOn + obtain ⟨L, hL⟩ := exists_gt (max (M / (2 * δ)) (max M 0)) + have hL₀ : 0 < L := (le_max_right M 0).trans_lt ((le_max_right _ _).trans_lt hL) + have hML : M < L := (le_max_left M 0).trans_lt ((le_max_right _ _).trans_lt hL) + have hlarge : M < 2 * L * δ := by + have hdiv : M / (2 * δ) < L := (le_max_left _ _).trans_lt hL + have h := (div_lt_iff₀ (show 0 < 2 * δ by positivity)).mp hdiv + nlinarith + refine ⟨L, hL₀, ?_⟩ + intro x hx + have hb : ‖x.2 - ℓ • e₁‖ ^ 2 + |x.1| ≤ M := by + simpa only [Real.norm_eq_abs, abs_of_nonneg (add_nonneg (sq_nonneg (‖x.2 - ℓ • e₁‖ : ℝ)) + (abs_nonneg x.1))] + using hM x hx + exact mem_tangent_doubleCone_of_margin (by nlinarith [sq_nonneg ‖x.2 - ℓ • e₁‖]) + hlarge (by linarith [abs_nonneg x.1]) (hδ x hx) + +theorem IsCompact.exists_tangent_ball {K : Set (EuclideanSpace ℝ (Fin 3))} + (hK : IsCompact K) {ℓ : ℝ} (hKW : K ⊆ leftWedgeTimeZero ℓ) : + ∃ L : ℝ, 0 < L ∧ K ⊆ Metric.ball ((ℓ - L) • e₁) L := by + have hc : Continuous (fun x : EuclideanSpace ℝ (Fin 3) => ((0 : ℝ), x)) := by fun_prop + have hW : (fun x : EuclideanSpace ℝ (Fin 3) => ((0 : ℝ), x)) '' K ⊆ leftWedge ℓ := by + rintro _ ⟨x, hx, rfl⟩ + exact (mem_leftWedge_zero_time ℓ x).mpr (hKW hx) + obtain ⟨L, hL, hsub⟩ := IsCompact.exists_tangent_doubleCone (hK.image hc) hW + refine ⟨L, hL, ?_⟩ + intro x hx + have h := hsub ⟨x, hx, rfl⟩ + simpa only [doubleCone, Set.mem_ofPred_eq, sub_self, abs_zero, zero_add, + Metric.mem_ball, dist_eq_norm] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeFractionalWave.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeFractionalWave.lean new file mode 100644 index 0000000000..a1119d0773 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeFractionalWave.lean @@ -0,0 +1,56 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeModularPowers +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveMultiplierDomain + +/-! +# The full imaginary-rapidity strip as genuine wedge power graph vectors + +The same entire original spacetime test wave used for the Tomita boundary +gives every real power in [0,1/2], with the manuscript angle 2πc and the +maximal physical domain. No analytic continuation identity is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +theorem wedgeWave_angle_mem_strip {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) ∈ closedRapidityStrip := by + change 0 ≤ (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I).im ∧ + (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I).im ≤ Real.pi + simp only [Complex.mul_im, Complex.ofReal_re, Complex.I_im, mul_one, + Complex.ofReal_im, Complex.I_re, mul_zero, add_zero] + constructor + · positivity + · nlinarith [Real.pi_pos] + +theorem wedgeWave_mem_physicalRapidityPower_graph {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (hF : tsupport F.1 ⊆ leftWedge 0) + {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) : + (oneParticleL2 hm F, wedgeWaveL2 hm F hF + (((2 * Real.pi * c : ℝ) : ℂ) * Complex.I) (wedgeWave_angle_mem_strip hc hc2)) ∈ + (physicalRapidityExponential hm c).graph := by + rw [physicalRapidityExponential_mem_graph] + have hz := wedgeWave_angle_mem_strip hc hc2 + have h := oneParticleRapidityFourier_wedgeWave_ae hm F hF hz + simp only [wedgeWaveExtendedL2, dite_eq_left hz] at h + filter_upwards [h] with ξ hξ + rw [hξ] + congr 1 + rw [Complex.ofReal_exp] + congr 1 + unfold rapidityFrequencyExponent + push_cast + rw [mul_mul_mul_comm, Complex.I_mul_I] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeGaussianAverage.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeGaussianAverage.lean new file mode 100644 index 0000000000..0e3133a80f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeGaussianAverage.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeSpacetimeTomitaCore +public import LeanPool.VacuumBellSeparation.FreeField.OneParticleBoostContinuity +public import Mathlib.Probability.Distributions.Gaussian.Real +public import Mathlib.Analysis.Convex.Integral + +/-! +# Genuine Gaussian averages preserving the entire original wedge graph + +A fixed standard real Gaussian probability measure averages U(εt). The Bochner +integral is a bounded complex-linear contraction. Its graph action preserves +the closed real-convex source Tomita graph, and it converges strongly to the +identity as ε tends to zero. No spectral-domain assertion is assumed here. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ProbabilityTheory Filter Topology ClosedSubmodule + Gaussian.HilbertComplexification +open scoped ComplexConjugate + +variable {m : ℝ} (hm : 0 < m) + +theorem integrable_gaussian_boost (ε : ℝ) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + Integrable (fun t : ℝ => oneParticleBoost hm (ε * t) ψ) (gaussianReal 0 1) := by + apply (integrable_const ‖ψ‖).mono' + ((continuous_oneParticleBoost hm ψ).comp (continuous_const.mul + continuous_id)).aestronglyMeasurable + exact Eventually.of_forall fun t => (oneParticleBoost hm (ε * t)).norm_map ψ |>.le + +/-- Continuous linear map for the gaussian boost average, of type `Lp ℂ 2 (oneParticleMeasure m) +→L[ℂ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def gaussianBoostAverage (ε : ℝ) : + Lp ℂ 2 (oneParticleMeasure m) →L[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + LinearMap.mkContinuous + { toFun := fun ψ => ∫ t : ℝ, oneParticleBoost hm (ε * t) ψ ∂gaussianReal 0 1 + map_add' := by + intro ψ χ + simp only [map_add] + exact integral_add (integrable_gaussian_boost hm ε ψ) (integrable_gaussian_boost hm ε χ) + map_smul' := by + intro c ψ + simp only [map_smul, integral_smul, RingHom.id_apply] } + 1 (fun ψ => by + simpa using (norm_integral_le_of_norm_le_const + (μ := gaussianReal 0 1) (f := fun t : ℝ => oneParticleBoost hm (ε * t) ψ) + (C := ‖ψ‖) (Eventually.of_forall fun t => (oneParticleBoost hm (ε * t)).norm_map ψ |>.le))) + +theorem gaussianBoostAverage_apply (ε : ℝ) (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + gaussianBoostAverage hm ε ψ = ∫ t : ℝ, oneParticleBoost hm (ε * t) ψ ∂gaussianReal 0 1 := rfl + +theorem tendsto_gaussianBoostAverage (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + Tendsto (fun ε : ℝ => gaussianBoostAverage hm ε ψ) (𝓝 0) (𝓝 ψ) := by + have h := tendsto_integral_filter_of_dominated_convergence + (μ := gaussianReal 0 1) (F := fun ε t : ℝ => oneParticleBoost hm (ε * t) ψ) + (f := fun _ => ψ) (fun _ => ‖ψ‖) + (Eventually.of_forall fun ε => (integrable_gaussian_boost hm ε ψ).aestronglyMeasurable) + (Eventually.of_forall fun ε => Eventually.of_forall fun t => + (oneParticleBoost hm (ε * t)).norm_map ψ |>.le) + (integrable_const _) (Eventually.of_forall fun t => by + have ht := (continuous_oneParticleBoost hm ψ).continuousAt.tendsto.comp + (show Tendsto (fun ε : ℝ => ε * t) (𝓝 0) (𝓝 0) by + simpa using (tendsto_id.mul_const t : Tendsto (fun ε : ℝ => ε * t) (𝓝 0) (𝓝 (0 * t)))) + simpa only [Function.comp_def, show oneParticleBoost hm 0 ψ = ψ from + oneParticleBoostIsometry_zero hm ψ] using ht) + simpa only [gaussianBoostAverage_apply, integral_const, probReal_univ, one_smul] using h + +theorem sourceTomitaGraph_convex (U : Set (EuclideanSpace ℝ (Fin 3))) : + Convex ℝ (sourceTomitaGraph hm U) := by + intro p hp q hq a b ha hb hab + obtain ⟨z, hz₁, hz₂⟩ := hp + obtain ⟨w, hw₁, hw₂⟩ := hq + refine ⟨(a : ℂ) • z + (b : ℂ) • w, ?_, ?_⟩ + · rw [map_add, map_smul, map_smul, hz₁, hw₁] + change (a : ℂ) • p.1 + (b : ℂ) • q.1 = a • p.1 + b • q.1 + rfl + · rw [map_add] + rw [conjugation.map_smulₛₗ, conjugation.map_smulₛₗ] + rw [show starRingEnd ℂ (a : ℂ) = (a : ℂ) from Complex.conj_ofReal a, + show starRingEnd ℂ (b : ℂ) = (b : ℂ) from Complex.conj_ofReal b] + rw [map_add, map_smul, map_smul, hz₂, hw₂] + change (a : ℂ) • p.2 + (b : ℂ) • q.2 = a • p.2 + b • q.2 + rfl + +theorem sourceTomitaGraph_boost_invariant (η : ℝ) + {p : Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m)} + (hp : p ∈ sourceTomitaGraph hm (leftWedgeTimeZero 0)) : + (oneParticleBoost hm η p.1, oneParticleBoost hm η p.2) ∈ + sourceTomitaGraph hm (leftWedgeTimeZero 0) := by + have hc : IsClosed {q : Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m) | + (oneParticleBoost hm η q.1, oneParticleBoost hm η q.2) ∈ + sourceTomitaGraph hm (leftWedgeTimeZero 0)} := + (sourceTomitaGraph_isClosed hm (leftWedgeTimeZero 0)).preimage + (((oneParticleBoost hm η).continuous.comp continuous_fst).prodMk + ((oneParticleBoost hm η).continuous.comp continuous_snd)) + have hs : wedgeSpacetimeTomitaTestGraph hm 0 ⊆ + {q | (oneParticleBoost hm η q.1, oneParticleBoost hm η q.2) ∈ + sourceTomitaGraph hm (leftWedgeTimeZero 0)} := by + intro q hq + exact wedgeSpacetimeTomitaTestGraph_subset hm 0 + (wedgeSpacetimeTomitaTestGraph_boost_invariant hm η hq) + have h := closure_minimal hs hc + rw [closure_wedgeSpacetimeTomitaTestGraph] at h + exact h hp + +theorem gaussianBoostAverage_preserves_sourceTomitaGraph (ε : ℝ) + {ψ χ : Lp ℂ 2 (oneParticleMeasure m)} + (hψχ : (ψ, χ) ∈ sourceTomitaGraph hm (leftWedgeTimeZero 0)) : + (gaussianBoostAverage hm ε ψ, gaussianBoostAverage hm ε χ) ∈ + sourceTomitaGraph hm (leftWedgeTimeZero 0) := by + have h := (sourceTomitaGraph_convex hm (leftWedgeTimeZero 0)).integral_mem + (μ := gaussianReal 0 1) (sourceTomitaGraph_isClosed hm (leftWedgeTimeZero 0)) + (Eventually.of_forall fun t => sourceTomitaGraph_boost_invariant hm (ε * t) hψχ) + ((integrable_gaussian_boost hm ε ψ).prodMk (integrable_gaussian_boost hm ε χ)) + simpa only [integral_pair (integrable_gaussian_boost hm ε ψ) + (integrable_gaussian_boost hm ε χ), gaussianBoostAverage_apply] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeGeometry.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeGeometry.lean new file mode 100644 index 0000000000..1b0d8f3686 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeGeometry.lean @@ -0,0 +1,135 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Lorentz + +/-! +# The actual left wedges and their containing geometry + +The ambient product norm on Spacetime is not its Euclidean four-norm. +The latter is defined explicitly here, preserving the square-root-two +constant in the manuscript's containing-wedge estimate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +/-- Left wedge with membership specified by `{x | ⟪e₁, x.2⟫_ℝ + |x.1| < ℓ}`. -/ +def leftWedge (ℓ : ℝ) : Set Spacetime := + {x | ⟪e₁, x.2⟫_ℝ + |x.1| < ℓ} + +/-- Left wedge time zero with membership specified by `{x | ⟪e₁, x⟫_ℝ < ℓ}`. -/ +def leftWedgeTimeZero (ℓ : ℝ) : Set (EuclideanSpace ℝ (Fin 3)) := + {x | ⟪e₁, x⟫_ℝ < ℓ} + +/-- Spacetime Euclidean norm given by `Real.sqrt (x.1 ^ 2 + ‖x.2‖ ^ 2)`. -/ +noncomputable def spacetimeEuclideanNorm (x : Spacetime) : ℝ := + Real.sqrt (x.1 ^ 2 + ‖x.2‖ ^ 2) + +theorem mem_leftWedge_iff (ℓ : ℝ) (x : Spacetime) : + x ∈ leftWedge ℓ ↔ ⟪e₁, x.2⟫_ℝ + x.1 < ℓ ∧ ⟪e₁, x.2⟫_ℝ - x.1 < ℓ := by + change ⟪e₁, x.2⟫_ℝ + |x.1| < ℓ ↔ _ + constructor + · intro h + constructor <;> linarith [le_abs_self x.1, neg_abs_le x.1] + · rintro ⟨hp, hm⟩ + by_cases hx : 0 ≤ x.1 + · rwa [abs_of_nonneg hx] + · rw [abs_of_neg (lt_of_not_ge hx)] + linarith + +theorem mem_leftWedge_zero_time (ℓ : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + (0, x) ∈ leftWedge ℓ ↔ x ∈ leftWedgeTimeZero ℓ := by + simp only [leftWedge, leftWedgeTimeZero, Set.mem_ofPred_eq, abs_zero, add_zero] + +theorem boost_light_coordinate_plus (η : ℝ) (x : Spacetime) : + ⟪e₁, (boost η x).2⟫_ℝ + (boost η x).1 = + Real.exp η * (⟪e₁, x.2⟫_ℝ + x.1) := by + rw [boost_apply, boostCLM_apply, inner_e₁_add_smul, ← Real.cosh_add_sinh] + ring + +theorem boost_light_coordinate_minus (η : ℝ) (x : Spacetime) : + ⟪e₁, (boost η x).2⟫_ℝ - (boost η x).1 = + Real.exp (-η) * (⟪e₁, x.2⟫_ℝ - x.1) := by + rw [boost_apply, boostCLM_apply, inner_e₁_add_smul, ← Real.cosh_sub_sinh] + ring + +theorem boost_mem_leftWedge_zero_iff (η : ℝ) (x : Spacetime) : + boost η x ∈ leftWedge 0 ↔ x ∈ leftWedge 0 := by + rw [mem_leftWedge_iff, mem_leftWedge_iff, boost_light_coordinate_plus, + boost_light_coordinate_minus] + simp only [mul_neg_iff, Real.exp_pos, true_and, + not_lt_of_ge (Real.exp_pos η).le, not_lt_of_ge (Real.exp_pos (-η)).le, + false_and, or_false] + +theorem leftWedge_eq_translate (ℓ : ℝ) : + leftWedge ℓ = (fun x : Spacetime => x + (0, ℓ • e₁)) '' leftWedge 0 := by + ext x + constructor + · intro hx + refine ⟨x - (0, ℓ • e₁), ?_, sub_add_cancel _ _⟩ + change ⟪e₁, x.2 - ℓ • e₁⟫_ℝ + |x.1 - 0| < 0 + rw [inner_sub_right, real_inner_smul_right, inner_e₁_self, mul_one, sub_zero] + change ⟪e₁, x.2⟫_ℝ + |x.1| < ℓ at hx + linarith + · rintro ⟨y, hy, rfl⟩ + change ⟪e₁, y.2 + ℓ • e₁⟫_ℝ + |y.1 + 0| < ℓ + rw [inner_e₁_add_smul, add_zero] + change ⟪e₁, y.2⟫_ℝ + |y.1| < 0 at hy + linarith + +theorem spacetimeEuclideanNorm_nonneg (x : Spacetime) : 0 ≤ spacetimeEuclideanNorm x := + Real.sqrt_nonneg _ + +theorem spacetimeEuclideanNorm_le_time_add_space (x : Spacetime) : + spacetimeEuclideanNorm x ≤ |x.1| + ‖x.2‖ := by + calc + spacetimeEuclideanNorm x ≤ Real.sqrt ((|x.1| + ‖x.2‖) ^ 2) := by + apply Real.sqrt_le_sqrt + nlinarith [sq_abs x.1, mul_nonneg (abs_nonneg x.1) (norm_nonneg x.2)] + _ = |x.1| + ‖x.2‖ := Real.sqrt_sq (add_nonneg (abs_nonneg _) (norm_nonneg _)) + +theorem wedge_coordinate_le_euclidean (x : Spacetime) : + ⟪e₁, x.2⟫_ℝ + |x.1| ≤ Real.sqrt 2 * spacetimeEuclideanNorm x := by + have hcoord : ⟪e₁, x.2⟫_ℝ ≤ ‖x.2‖ := + (le_abs_self _).trans (abs_inner_e₁_le _) + calc + ⟪e₁, x.2⟫_ℝ + |x.1| ≤ |x.1| + ‖x.2‖ := by linarith + _ = Real.sqrt ((|x.1| + ‖x.2‖) ^ 2) := + (Real.sqrt_sq (add_nonneg (abs_nonneg _) (norm_nonneg _))).symm + _ ≤ Real.sqrt (2 * (x.1 ^ 2 + ‖x.2‖ ^ 2)) := by + apply Real.sqrt_le_sqrt + nlinarith [sq_nonneg (|x.1| - ‖x.2‖), sq_abs x.1] + _ = Real.sqrt 2 * spacetimeEuclideanNorm x := by + rw [Real.sqrt_mul (by norm_num : (0 : ℝ) ≤ 2)] + rfl + +theorem spacetimeEuclideanNorm_lt_of_mem_doubleCone {R : ℝ} {x : Spacetime} + (hx : x ∈ doubleCone 0 R) : spacetimeEuclideanNorm x < R := by + have hx' : |x.1| + ‖x.2‖ < R := by simpa only [doubleCone, Set.mem_ofPred_eq, + Prod.fst_zero, Prod.snd_zero, sub_zero] using hx + exact (spacetimeEuclideanNorm_le_time_add_space x).trans_lt hx' + +/-- The source's containing-wedge estimate with an explicit true Euclidean +bound on the transformed point. -/ +theorem mem_leftWedge_of_euclidean_bound {x : Spacetime} {r ℓ : ℝ} + (hx : spacetimeEuclideanNorm x ≤ r) (hℓ : Real.sqrt 2 * r < ℓ) : x ∈ leftWedge ℓ := + (wedge_coordinate_le_euclidean x).trans_lt + ((mul_le_mul_of_nonneg_left hx (Real.sqrt_nonneg 2)).trans_lt hℓ) + +theorem doubleCone_subset_leftWedge {R ℓ : ℝ} + (hℓ : Real.sqrt 2 * R ≤ ℓ) : doubleCone 0 R ⊆ leftWedge ℓ := by + intro x hx + have hnorm := spacetimeEuclideanNorm_lt_of_mem_doubleCone hx + exact (wedge_coordinate_le_euclidean x).trans_lt + ((mul_lt_mul_of_pos_left hnorm (Real.sqrt_pos.mpr (by norm_num))).trans_le hℓ) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeModularGraph.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeModularGraph.lean new file mode 100644 index 0000000000..b66735449d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeModularGraph.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeTomitaMultiplierEquality +public import LeanPool.VacuumBellSeparation.FreeField.AntilinearGraphAdjoint + +/-! +# The actual full S*S graph of the original left wedge + +The adjoint is defined by its universal antilinear pairing condition on the +entire original source graph. Exact Tomita graph equality and the genuine +maximal half-square identity identify S*S with exp(-4π²ξ₁). +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ComplexConjugate + +variable {m : ℝ} (hm : 0 < m) + +theorem physicalWedgeReflection_inner (ψ χ : Lp ℂ 2 (oneParticleMeasure m)) : + inner ℂ (physicalWedgeReflection hm ψ) (physicalWedgeReflection hm χ) = + conj (inner ℂ ψ χ) := by + rw [L2.inner_def, L2.inner_def, ← integral_conj] + calc + (∫ p, inner ℂ (physicalWedgeReflection hm ψ p) (physicalWedgeReflection hm χ p) + ∂oneParticleMeasure m) = + ∫ p, conj (inner ℂ (ψ (axisReflection p)) (χ (axisReflection p))) ∂oneParticleMeasure m := by + apply integral_congr_ae + filter_upwards [physicalWedgeReflection_ae hm ψ, physicalWedgeReflection_ae hm χ] + with p hψ hχ + simp only [hψ, hχ, RCLike.inner_apply, map_mul, Complex.conj_conj] + _ = _ := (measurePreserving_massShell_rotation hm axisReflection).integral_comp + axisReflection.toHomeomorph.measurableEmbedding (fun p => conj (inner ℂ (ψ p) (χ p))) + +theorem physicalWedgeReflection_inner_swap (ψ χ : Lp ℂ 2 (oneParticleMeasure m)) : + inner ℂ (physicalWedgeReflection hm ψ) χ = inner ℂ (physicalWedgeReflection hm χ) ψ := by + have h := physicalWedgeReflection_inner hm ψ (physicalWedgeReflection hm χ) + simpa only [physicalWedgeReflection_involutive, inner_conj_symm] using h + +/-- Left wedge Tomita adjoint graph defined as `antilinearGraphAdjoint (sourceTomitaGraph hm +(leftWedgeTimeZero 0))`. -/ +noncomputable def leftWedgeTomitaAdjointGraph : + Set (Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m)) := + antilinearGraphAdjoint (sourceTomitaGraph hm (leftWedgeTimeZero 0)) + +/-- Left wedge Tomita modular graph defined as `antilinearGraphSquare (sourceTomitaGraph hm +(leftWedgeTimeZero 0))`. -/ +noncomputable def leftWedgeTomitaModularGraph : + Set (Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m)) := + antilinearGraphSquare (sourceTomitaGraph hm (leftWedgeTimeZero 0)) + +theorem leftWedgeTomitaAdjointGraph_iff (ψ χ : Lp ℂ 2 (oneParticleMeasure m)) : + (ψ, χ) ∈ leftWedgeTomitaAdjointGraph hm ↔ + (physicalWedgeReflection hm ψ, χ) ∈ (physicalRapidityExponential hm (1 / 2)).graph := by + rw [leftWedgeTomitaAdjointGraph, sourceTomitaGraph_eq_wedgeRapidityTomitaGraph] + exact antilinearGraphAdjoint_reflected_selfAdjoint _ + (physicalRapidityExponential_isSelfAdjoint hm (1 / 2)) (physicalWedgeReflection hm) + (physicalWedgeReflection_involutive hm) (physicalWedgeReflection_inner_swap hm) ψ χ + +/-- Literal full-domain S*S, including its intermediate Tomita-domain vector. -/ +theorem leftWedgeTomitaModularGraph_iff (ψ χ : Lp ℂ 2 (oneParticleMeasure m)) : + (ψ, χ) ∈ leftWedgeTomitaModularGraph hm ↔ + (ψ, χ) ∈ (physicalRapidityExponential hm 1).graph := by + rw [leftWedgeTomitaModularGraph, sourceTomitaGraph_eq_wedgeRapidityTomitaGraph] + rw [wedgeRapidityTomitaGraph] + rw [antilinearGraphSquare_reflected_selfAdjoint _ + (physicalRapidityExponential_isSelfAdjoint hm (1 / 2)) (physicalWedgeReflection hm) + (physicalWedgeReflection_involutive hm) (physicalWedgeReflection_inner_swap hm)] + exact (physicalRapidityExponential_graph_half_square hm 1 ψ χ).symm + +theorem leftWedgeTomitaModularGraph_eq : + leftWedgeTomitaModularGraph hm = (physicalRapidityExponential hm 1).graph := by + ext p + exact leftWedgeTomitaModularGraph_iff hm p.1 p.2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeModularInclusion.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeModularInclusion.lean new file mode 100644 index 0000000000..8dda684be4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeModularInclusion.lean @@ -0,0 +1,45 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeModularPowers +public import LeanPool.VacuumBellSeparation.FreeField.ModularWeightInclusion + +/-! +# The genuine containing-left-wedge estimate on original completed sources + +The bounded Gram compression estimate and the proved full wedge modular +identification yield an actual graph vector, with its norm bounded by the +smaller region's source weight. The region and source may be arbitrary; +the only localization premise is literal containment in the halfspace. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +variable {m : ℝ} (hm : 0 < m) + +theorem physicalRapidityExponential_containing_leftWedge + {U : Set (EuclideanSpace ℝ (Fin 3))} (hU : U ⊆ leftWedgeTimeZero 0) + {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) (z : ComplexSourceHilbert hm U) : + ∃ χ : Lp ℂ 2 (oneParticleMeasure m), + (complexSourceMap hm U z, χ) ∈ (physicalRapidityExponential hm c).graph ∧ + ‖χ‖ ≤ ‖sourceModularWeight hm U c z‖ := by + refine ⟨leftWedgeSourcePolarUnitary hm 0 + (sourceModularWeight hm (leftWedgeTimeZero 0) c (complexSourceInclusion hm hU z)), ?_, ?_⟩ + · have h := physicalRapidityExponential_source_graph hm hc.le hc2 (complexSourceInclusion hm hU z) + have he : complexSourceMap hm (leftWedgeTimeZero 0) (complexSourceInclusion hm hU z) = + complexSourceMap hm U z := + DFunLike.congr_fun (complexSourceMap_comp_inclusion hm hU) z + simpa only [he] using h + · rw [LinearIsometryEquiv.norm_map] + exact sourceModularWeight_inclusion_norm hm hU hc hc2 z + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeModularPowers.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeModularPowers.lean new file mode 100644 index 0000000000..6d38e421d7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeModularPowers.lean @@ -0,0 +1,95 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgePolarResolvent +public import LeanPool.VacuumBellSeparation.FreeField.UnitaryResolventPowers +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularPowers + +/-! +# Original wedge source powers and the full physical exponential domain + +The halfspace uses its proved injectivity, not a false boundedness premise. +The actual Gram-resolvent calculus is identified with the full rapidity +multiplier for 0≤c≤1. Every original completed source vector satisfies the +bounded Gram weight identity for 0≤c≤1/2. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +variable {m : ℝ} (hm : 0 < m) + +/-- Left wedge source power. -/ +noncomputable def leftWedgeSourcePower (c : ℝ) (hc : 0 ≤ c) (hc1 : c ≤ 1) : + ComplexSourceHilbert hm (leftWedgeTimeZero 0) →ₗ.[ℂ] + ComplexSourceHilbert hm (leftWedgeTimeZero 0) := + resolventPowerRatio (sourceModularResolvent hm (leftWedgeTimeZero 0)) + (sourceModularResolvent_nonneg hm (leftWedgeTimeZero 0)) + (leftWedgeSourceModularResolvent_injective hm) c hc hc1 + +theorem leftWedgeSourcePower_fourier {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) : + unitaryPartialTransport (leftWedgeSourceFourierUnitary hm) + (leftWedgeSourcePower hm c hc hc1) = rapidityExponential c := by + rw [leftWedgeSourcePower, + unitaryPartialTransport_resolventPowerRatio (leftWedgeSourceFourierUnitary hm) + _ (sourceModularResolvent_nonneg hm (leftWedgeTimeZero 0)) + (sourceModularResolvent_le_one hm (leftWedgeTimeZero 0)) + (leftWedgeSourceModularResolvent_injective hm) + _ (exponentialResolvent_nonneg rapidityMeasure _ _) + (exponentialResolvent_le_one rapidityMeasure _ _) + (exponentialResolvent_injective rapidityMeasure _ _) + (leftWedgeSourceFourier_resolvent hm) hc hc1, + resolventPowerRatio_exponentialResolvent rapidityMeasure _ _ hc hc1] + have he : (fun ξ => c * rapidityFrequencyExponent 1 ξ) = rapidityFrequencyExponent c := by + ext ξ + unfold rapidityFrequencyExponent + ring + simp only [he, rapidityExponential] + +theorem leftWedgeSourcePower_graph_fourier {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) + (x y : ComplexSourceHilbert hm (leftWedgeTimeZero 0)) : + (x, y) ∈ (leftWedgeSourcePower hm c hc hc1).graph ↔ + (leftWedgeSourceFourierUnitary hm x, leftWedgeSourceFourierUnitary hm y) ∈ + (rapidityExponential c).graph := by + rw [← leftWedgeSourcePower_fourier hm hc hc1, unitaryPartialTransport_mem_graph, + LinearIsometryEquiv.symm_apply_apply, LinearIsometryEquiv.symm_apply_apply] + +theorem leftWedgeSourcePower_physical {c : ℝ} (hc : 0 ≤ c) (hc1 : c ≤ 1) : + unitaryPartialTransport (leftWedgeSourcePolarUnitary hm 0) + (leftWedgeSourcePower hm c hc hc1) = physicalRapidityExponential hm c := by + apply LinearPMap.eq_of_eq_graph + ext p + rcases p with ⟨x, y⟩ + rw [unitaryPartialTransport_mem_graph, physicalRapidityExponential_mem_graph_iff, + leftWedgeSourcePower_graph_fourier hm hc hc1] + simp only [leftWedgeSourceFourierUnitary, LinearIsometryEquiv.trans_apply, + LinearIsometryEquiv.apply_symm_apply] + +theorem leftWedgeSourcePower_sqrt_graph {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) + (z : ComplexSourceHilbert hm (leftWedgeTimeZero 0)) : + (sourceGramRoot hm (leftWedgeTimeZero 0) z, + sourceModularWeight hm (leftWedgeTimeZero 0) c z) ∈ + (leftWedgeSourcePower hm c hc (by linarith)).graph := by + rw [leftWedgeSourcePower, resolventPowerRatio, boundedRatio_mem_graph] + exact sourceModularWeight_range_witness hm (leftWedgeTimeZero 0) hc hc2 z + +/-- Whole-source equality in the actual maximal physical power graph. -/ +theorem physicalRapidityExponential_source_graph {c : ℝ} (hc : 0 ≤ c) (hc2 : c ≤ 1 / 2) + (z : ComplexSourceHilbert hm (leftWedgeTimeZero 0)) : + (complexSourceMap hm (leftWedgeTimeZero 0) z, + leftWedgeSourcePolarUnitary hm 0 (sourceModularWeight hm (leftWedgeTimeZero 0) c z)) ∈ + (physicalRapidityExponential hm c).graph := by + rw [← leftWedgeSourcePower_physical hm hc (by linarith), unitaryPartialTransport_mem_graph, + ← leftWedgeSourcePolarUnitary_factorization hm 0 z, + LinearIsometryEquiv.symm_apply_apply, LinearIsometryEquiv.symm_apply_apply] + exact leftWedgeSourcePower_sqrt_graph hm hc hc2 z + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgePhysicalResolvent.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgePhysicalResolvent.lean new file mode 100644 index 0000000000..75cf55f7fb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgePhysicalResolvent.lean @@ -0,0 +1,59 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.SourcePhysicalResolvent +public import LeanPool.VacuumBellSeparation.FreeField.WedgeModularGraph + +/-! +# The actual wedge source resolvent in rapidity Fourier coordinates + +The proved full original Tomita square and its universal resolvent +identify κκ*/2 with the literal logistic frequency multiplier. This +retains the original completed halfspace source map and the maximal +exponential domain. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +variable {m : ℝ} (hm : 0 < m) + +theorem leftWedgePhysicalResolvent_mem_graph (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + (sourcePhysicalResolvent hm (leftWedgeTimeZero 0) ψ, + ψ - sourcePhysicalResolvent hm (leftWedgeTimeZero 0) ψ) ∈ + (physicalRapidityExponential hm 1).graph := + (leftWedgeTomitaModularGraph_iff hm _ _).mp + (sourcePhysicalResolvent_mem_square hm (leftWedgeTimeZero 0) ψ) + +theorem leftWedgePhysicalResolvent_fourier (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + oneParticleRapidityFourier hm (sourcePhysicalResolvent hm (leftWedgeTimeZero 0) ψ) = + exponentialResolvent rapidityMeasure (rapidityFrequencyExponent 1) + (measurable_rapidityFrequencyExponent 1) (oneParticleRapidityFourier hm ψ) := by + have hg := (physicalRapidityExponential_mem_graph_iff hm 1 _ _).mp + (leftWedgePhysicalResolvent_mem_graph hm ψ) + rw [LinearPMap.mem_graph_iff] at hg + obtain ⟨y, hy, hv⟩ := hg + change (y : RapidityL2) = oneParticleRapidityFourier hm + (sourcePhysicalResolvent hm (leftWedgeTimeZero 0) ψ) at hy + change rapidityExponential 1 y = oneParticleRapidityFourier hm + (ψ - sourcePhysicalResolvent hm (leftWedgeTimeZero 0) ψ) at hv + symm + have hr : exponentialResolvent rapidityMeasure (rapidityFrequencyExponent 1) + (measurable_rapidityFrequencyExponent 1) (oneParticleRapidityFourier hm ψ) = y := by + apply (exponentialMultiplication_resolvent rapidityMeasure (rapidityFrequencyExponent 1) + (measurable_rapidityFrequencyExponent 1) _ _).mp + refine ⟨y.property, ?_⟩ + change (y : RapidityL2) + rapidityExponential 1 y = oneParticleRapidityFourier hm ψ + rw [hv, map_sub, hy] + abel + exact hr.trans hy + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgePolarResolvent.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgePolarResolvent.lean new file mode 100644 index 0000000000..6119263980 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgePolarResolvent.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgePhysicalResolvent +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularResolvent + +/-! +# The original wedge source Gram resolvent in physical and Fourier coordinates + +Only the actual polar factorization κ=U sqrt(G) is used. The full +unitary exists by proved source injectivity and density; no inverse of +sqrt(G) as a bounded operator is introduced. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory ContinuousLinearMap + +variable {m : ℝ} (hm : 0 < m) + +theorem leftWedgeSourceMap_adjoint (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + (complexSourceMap hm (leftWedgeTimeZero 0)).adjoint ψ = + CFC.sqrt (sourceGram hm (leftWedgeTimeZero 0)) + ((leftWedgeSourcePolarUnitary hm 0).symm ψ) := by + apply ext_inner_right ℂ + intro z + rw [(complexSourceMap hm (leftWedgeTimeZero 0)).adjoint_inner_left] + rw [← leftWedgeSourcePolarUnitary_factorization hm 0 z] + have hi := (leftWedgeSourcePolarUnitary hm 0).inner_map_map + ((leftWedgeSourcePolarUnitary hm 0).symm ψ) + (CFC.sqrt (sourceGram hm (leftWedgeTimeZero 0)) z) + rw [LinearIsometryEquiv.apply_symm_apply] at hi + rw [hi] + exact ((CFC.sqrt_nonneg (sourceGram hm (leftWedgeTimeZero 0))).isSelfAdjoint.isSymmetric _ _).symm + +theorem leftWedgeSourcePolar_resolvent : + (leftWedgeSourcePolarUnitary hm 0).conjStarAlgEquiv + (sourceModularResolvent hm (leftWedgeTimeZero 0)) = + sourcePhysicalResolvent hm (leftWedgeTimeZero 0) := by + apply ContinuousLinearMap.ext + intro ψ + change leftWedgeSourcePolarUnitary hm 0 + ((1 / 2 : ℝ) • sourceGram hm (leftWedgeTimeZero 0) + ((leftWedgeSourcePolarUnitary hm 0).symm ψ)) = + (1 / 2 : ℝ) • complexSourceMap hm (leftWedgeTimeZero 0) + ((complexSourceMap hm (leftWedgeTimeZero 0)).adjoint ψ) + have hsmul := (leftWedgeSourcePolarUnitary hm 0).toLinearEquiv.toLinearMap.map_smul_of_tower + (1 / 2 : ℝ) (sourceGram hm (leftWedgeTimeZero 0) + ((leftWedgeSourcePolarUnitary hm 0).symm ψ)) + change leftWedgeSourcePolarUnitary hm 0 + ((1 / 2 : ℝ) • sourceGram hm (leftWedgeTimeZero 0) + ((leftWedgeSourcePolarUnitary hm 0).symm ψ)) = + (1 / 2 : ℝ) • leftWedgeSourcePolarUnitary hm 0 + (sourceGram hm (leftWedgeTimeZero 0) + ((leftWedgeSourcePolarUnitary hm 0).symm ψ)) at hsmul + rw [hsmul, leftWedgeSourceMap_adjoint, + ← leftWedgeSourcePolarUnitary_factorization] + congr 2 + exact (congrArg (fun A : ComplexSourceHilbert hm (leftWedgeTimeZero 0) →L[ℂ] + ComplexSourceHilbert hm (leftWedgeTimeZero 0) => + A ((leftWedgeSourcePolarUnitary hm 0).symm ψ)) + (CFC.sqrt_mul_sqrt_self (sourceGram hm (leftWedgeTimeZero 0)) + (nonneg_iff_isPositive.mpr (sourceGram_isPositive hm (leftWedgeTimeZero 0))))).symm + +/-- Linear isometry equivalence for the left wedge source Fourier unitary, of type +`ComplexSourceHilbert hm (leftWedgeTimeZero 0) ≃ₗᵢ[ℂ] RapidityL2`. -/ +noncomputable def leftWedgeSourceFourierUnitary : + ComplexSourceHilbert hm (leftWedgeTimeZero 0) ≃ₗᵢ[ℂ] RapidityL2 := + (leftWedgeSourcePolarUnitary hm 0).trans (oneParticleRapidityFourier hm) + +theorem leftWedgeSourceFourier_resolvent : + (leftWedgeSourceFourierUnitary hm).conjStarAlgEquiv + (sourceModularResolvent hm (leftWedgeTimeZero 0)) = + exponentialResolvent rapidityMeasure (rapidityFrequencyExponent 1) + (measurable_rapidityFrequencyExponent 1) := by + rw [leftWedgeSourceFourierUnitary, LinearIsometryEquiv.conjStarAlgEquiv_trans] + change (oneParticleRapidityFourier hm).conjStarAlgEquiv + ((leftWedgeSourcePolarUnitary hm 0).conjStarAlgEquiv + (sourceModularResolvent hm (leftWedgeTimeZero 0))) = _ + rw [leftWedgeSourcePolar_resolvent] + apply ContinuousLinearMap.ext + intro f + change oneParticleRapidityFourier hm (sourcePhysicalResolvent hm (leftWedgeTimeZero 0) + ((oneParticleRapidityFourier hm).symm f)) = _ + rw [leftWedgePhysicalResolvent_fourier, LinearIsometryEquiv.apply_symm_apply] + +theorem leftWedgeSourceModularResolvent_injective : + Function.Injective (sourceModularResolvent hm (leftWedgeTimeZero 0)) := by + have hG : Function.Injective (sourceGram hm (leftWedgeTimeZero 0)) := + (complexSourceMap hm (leftWedgeTimeZero 0)).adjoint_comp_self_injective_iff.mpr + (complexSourceMap_injective_leftWedgeTimeZero hm 0) + intro x y hxy + apply hG + change (1 / 2 : ℝ) • sourceGram hm (leftWedgeTimeZero 0) x = + (1 / 2 : ℝ) • sourceGram hm (leftWedgeTimeZero 0) y at hxy + exact (smul_right_injective _ (by norm_num : (1 / 2 : ℝ) ≠ 0)) hxy + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeReflection.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeReflection.lean new file mode 100644 index 0000000000..d7e40a0dda --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeReflection.lean @@ -0,0 +1,118 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveL2 + +/-! +# Actual antiunitary wedge reflection on the full physical Hilbert space + +Jψ(p)=conj(ψ(p₁,-p₂,-p₃)). Measure preservation uses the true positive mass-shell +density. The construction is a bounded real-linear map with proved involution, +norm preservation and complex antilinearity. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal ComplexConjugate InnerProductSpace + +theorem measurePreserving_massShell_rotation {m : ℝ} (hm : 0 < m) + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) : + MeasurePreserving R (oneParticleMeasure m) (oneParticleMeasure m) := by + refine ⟨R.continuous.measurable, ?_⟩ + apply Measure.ext + intro s hs + rw [Measure.map_apply R.continuous.measurable hs, oneParticleMeasure, + withDensity_apply _ (hs.preimage R.continuous.measurable), withDensity_apply _ hs] + have h := R.measurePreserving.setLIntegral_comp_preimage hs + ((measurable_oneParticleWeight hm).coe_nnreal_ennreal) + simpa only [oneParticleWeight, dispersion_linearIsometryEquiv] using h + +/-- Continuous linear map for the physical wedge reflection, of type `Lp ℂ 2 (oneParticleMeasure m) +→L[ℝ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def physicalWedgeReflection {m : ℝ} (hm : 0 < m) : + Lp ℂ 2 (oneParticleMeasure m) →L[ℝ] Lp ℂ 2 (oneParticleMeasure m) := + let reflected := (Lp.compMeasurePreservingₗᵢ ℂ axisReflection + (measurePreserving_massShell_rotation hm axisReflection)).toContinuousLinearMap + (Complex.conjCLE.toContinuousLinearMap.compLpL 2 (oneParticleMeasure m)).comp + (reflected.restrictScalars ℝ) + +theorem physicalWedgeReflection_ae {m : ℝ} (hm : 0 < m) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + physicalWedgeReflection hm ψ =ᵐ[oneParticleMeasure m] fun p => conj (ψ (axisReflection p)) := by + filter_upwards [Complex.conjCLE.toContinuousLinearMap.coeFn_compLpL + (Lp.compMeasurePreserving axisReflection (measurePreserving_massShell_rotation hm + axisReflection) ψ), + Lp.coeFn_compMeasurePreserving ψ (measurePreserving_massShell_rotation hm axisReflection)] + with p hc hr + exact hc.trans (by rw [hr]; rfl) + +theorem axisReflection_involutive (p : EuclideanSpace ℝ (Fin 3)) : + axisReflection (axisReflection p) = p := axisReflection_aux_involutive p + +theorem physicalWedgeReflection_involutive {m : ℝ} (hm : 0 < m) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + physicalWedgeReflection hm (physicalWedgeReflection hm ψ) = ψ := by + apply Lp.ext + have hpull := (measurePreserving_massShell_rotation hm + axisReflection).quasiMeasurePreserving.ae_eq_comp + (physicalWedgeReflection_ae hm ψ) + filter_upwards [physicalWedgeReflection_ae hm (physicalWedgeReflection hm ψ), hpull] + with p h₁ h₂ + simp only [Function.comp_apply] at h₂ + rw [h₁, h₂, axisReflection_involutive, Complex.conj_conj] + +theorem physicalWedgeReflection_smul {m : ℝ} (hm : 0 < m) (c : ℂ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + physicalWedgeReflection hm (c • ψ) = conj c • physicalWedgeReflection hm ψ := by + apply Lp.ext + have hpull := (measurePreserving_massShell_rotation hm + axisReflection).quasiMeasurePreserving.ae_eq_comp + (Lp.coeFn_smul c ψ) + filter_upwards [physicalWedgeReflection_ae hm (c • ψ), hpull, + Lp.coeFn_smul (conj c) (physicalWedgeReflection hm ψ), physicalWedgeReflection_ae hm ψ] + with p h₁ h₂ h₃ h₄ + simp only [h₁, h₃, h₄, Function.comp_apply, Pi.smul_apply] at h₂ ⊢ + rw [h₂, smul_eq_mul, map_mul, smul_eq_mul] + +theorem norm_physicalWedgeReflection {m : ℝ} (hm : 0 < m) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : ‖physicalWedgeReflection hm ψ‖ = ‖ψ‖ := by + let R : Lp ℂ 2 (oneParticleMeasure m) →ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + Lp.compMeasurePreservingₗᵢ ℂ axisReflection + (measurePreserving_massShell_rotation hm axisReflection) + have he : ∀ᵐ p ∂oneParticleMeasure m, ‖physicalWedgeReflection hm ψ p‖ = ‖R ψ p‖ := by + filter_upwards [physicalWedgeReflection_ae hm ψ, + Lp.coeFn_compMeasurePreserving ψ (measurePreserving_massShell_rotation hm axisReflection)] + with p h₁ h₂ + change ‖physicalWedgeReflection hm ψ p‖ = + ‖Lp.compMeasurePreserving axisReflection + (measurePreserving_massShell_rotation hm axisReflection) ψ p‖ + rw [h₁, h₂, Function.comp_apply, Complex.norm_conj] + have hn : ‖physicalWedgeReflection hm ψ‖ = ‖R ψ‖ := + le_antisymm (Lp.norm_le_norm_of_ae_le (he.mono fun _ h => h.le)) + (Lp.norm_le_norm_of_ae_le (he.mono fun _ h => h.ge)) + exact hn.trans (R.norm_map ψ) + +theorem wedgeWaveL2_upper_eq_reflection {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) : + wedgeWaveL2 hm F hF ((Real.pi : ℂ) * Complex.I) (by simp [Real.pi_pos.le]) = + physicalWedgeReflection hm (oneParticleL2 hm F) := by + apply Lp.ext + have hpull := (measurePreserving_massShell_rotation hm + axisReflection).quasiMeasurePreserving.ae_eq_comp + (coeFn_oneParticleL2 hm F) + filter_upwards [wedgeWaveL2_ae hm F hF ((Real.pi : ℂ) * Complex.I) + (by simp [Real.pi_pos.le]), physicalWedgeReflection_ae hm (oneParticleL2 hm F), hpull] + with p h₁ h₂ h₃ + rw [h₁, h₂, wedgeWave_pi_mul_I] + exact congrArg conj (show (oneParticle m F) (axisReflection p) = + (oneParticleL2 hm F) (axisReflection p) from h₃.symm) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeReflectionBoost.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeReflectionBoost.lean new file mode 100644 index 0000000000..d508381f84 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeReflectionBoost.lean @@ -0,0 +1,58 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeReflection +public import LeanPool.VacuumBellSeparation.FreeField.WedgeGaussianAverage + +/-! # The actual wedge reflection commutes with real boosts and their Gaussian averages -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter +open scoped InnerProductSpace ComplexConjugate + +theorem axisReflection_e₁ : axisReflection e₁ = e₁ := by + rw [axisReflection_apply, inner_e₁_self] + module + +theorem axisReflection_shellBoost (m η : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + axisReflection (shellBoost m η p) = shellBoost m η (axisReflection p) := by + simp only [shellBoost, map_add, map_smul, axisReflection_e₁, + dispersion_linearIsometryEquiv, inner_e₁_axisReflection] + +theorem physicalWedgeReflection_boost {m : ℝ} (hm : 0 < m) (η : ℝ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + physicalWedgeReflection hm (oneParticleBoost hm η ψ) = + oneParticleBoost hm η (physicalWedgeReflection hm ψ) := by + apply Lp.ext + have h₁ := (measurePreserving_massShell_rotation hm + axisReflection).quasiMeasurePreserving.ae_eq_comp + (oneParticleBoostIsometry_ae hm η ψ) + have h₂ := (measurePreserving_shellBoost hm (-η)).quasiMeasurePreserving.ae_eq_comp + (physicalWedgeReflection_ae hm ψ) + filter_upwards [physicalWedgeReflection_ae hm (oneParticleBoost hm η ψ), h₁, + oneParticleBoostIsometry_ae hm η (physicalWedgeReflection hm ψ), h₂] + with p hj hU hUj hJ + simp only [Function.comp_apply] at hU hJ hUj + rw [hj] + change conj ((oneParticleBoostIsometry hm η ψ) (axisReflection p)) = + (oneParticleBoostIsometry hm η (physicalWedgeReflection hm ψ)) p + rw [hU, hUj, hJ, axisReflection_shellBoost] + +theorem physicalWedgeReflection_gaussianBoostAverage {m : ℝ} (hm : 0 < m) (ε : ℝ) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + physicalWedgeReflection hm (gaussianBoostAverage hm ε ψ) = + gaussianBoostAverage hm ε (physicalWedgeReflection hm ψ) := by + rw [gaussianBoostAverage_apply, gaussianBoostAverage_apply, + ← (physicalWedgeReflection hm).integral_comp_comm (integrable_gaussian_boost hm ε ψ)] + apply integral_congr_ae + exact Eventually.of_forall fun t => physicalWedgeReflection_boost hm (ε * t) ψ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeSourceStandardness.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeSourceStandardness.lean new file mode 100644 index 0000000000..10ebb6c7ad --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeSourceStandardness.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeGeometry +public import LeanPool.VacuumBellSeparation.FreeField.SourceComplementStandardness +public import LeanPool.VacuumBellSeparation.FreeField.PolarUnitary + +/-! +# Actual standard one-particle halfspace source spaces + +The unbounded time-zero halfspaces are handled by their opposite open +halfspaces. Their real spaces are the literal completed source ranges. +The polar unitary is constructed from proved injectivity and density; +no modular boost or wedge duality premise is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace + +/-- Right wedge time zero with membership specified by `{x | ℓ < ⟪e₁, x⟫_ℝ}`. -/ +def rightWedgeTimeZero (ℓ : ℝ) : Set (EuclideanSpace ℝ (Fin 3)) := + {x | ℓ < ⟪e₁, x⟫_ℝ} + +theorem isOpen_leftWedgeTimeZero (ℓ : ℝ) : IsOpen (leftWedgeTimeZero ℓ) := + isOpen_lt (by fun_prop) continuous_const + +theorem isOpen_rightWedgeTimeZero (ℓ : ℝ) : IsOpen (rightWedgeTimeZero ℓ) := + isOpen_lt continuous_const (by fun_prop) + +theorem leftWedgeTimeZero_nonempty (ℓ : ℝ) : (leftWedgeTimeZero ℓ).Nonempty := by + refine ⟨(ℓ - 1) • e₁, ?_⟩ + change ⟪e₁, (ℓ - 1) • e₁⟫_ℝ < ℓ + rw [real_inner_smul_right, inner_e₁_self, mul_one] + linarith + +theorem rightWedgeTimeZero_nonempty (ℓ : ℝ) : (rightWedgeTimeZero ℓ).Nonempty := by + refine ⟨(ℓ + 1) • e₁, ?_⟩ + change ℓ < ⟪e₁, (ℓ + 1) • e₁⟫_ℝ + rw [real_inner_smul_right, inner_e₁_self, mul_one] + linarith + +theorem disjoint_wedgeTimeZero (ℓ : ℝ) : Disjoint (leftWedgeTimeZero ℓ) (rightWedgeTimeZero ℓ) := by + apply Set.disjoint_left.mpr + intro x hx hy + change ⟪e₁, x⟫_ℝ < ℓ at hx + change ℓ < ⟪e₁, x⟫_ℝ at hy + exact lt_asymm hx hy + +variable {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + +theorem complexSourceMap_injective_leftWedgeTimeZero : + Function.Injective (complexSourceMap hm (leftWedgeTimeZero ℓ)) := + complexSourceMap_injective_of_open_complement hm (disjoint_wedgeTimeZero ℓ) + (isOpen_rightWedgeTimeZero ℓ) (rightWedgeTimeZero_nonempty ℓ) + +/-- Left wedge source standard subspace. -/ +noncomputable def leftWedgeSourceStandardSubspace : + StandardSubspace (Lp ℂ 2 (oneParticleMeasure m)) := + physicalSourceStandardSubspaceOfComplement hm (disjoint_wedgeTimeZero ℓ) + (isOpen_leftWedgeTimeZero ℓ) (leftWedgeTimeZero_nonempty ℓ) + (isOpen_rightWedgeTimeZero ℓ) (rightWedgeTimeZero_nonempty ℓ) + +/-- Linear isometry equivalence for the left wedge source polar unitary, of type +`ComplexSourceHilbert hm (leftWedgeTimeZero ℓ) ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def leftWedgeSourcePolarUnitary : + ComplexSourceHilbert hm (leftWedgeTimeZero ℓ) ≃ₗᵢ[ℂ] Lp ℂ 2 (oneParticleMeasure m) := + polarUnitary (complexSourceMap hm (leftWedgeTimeZero ℓ)) + (complexSourceMap_injective_leftWedgeTimeZero hm ℓ) + (complexSourceMap_denseRange_of_open hm _ (isOpen_leftWedgeTimeZero ℓ) + (leftWedgeTimeZero_nonempty ℓ)) + +theorem leftWedgeSourcePolarUnitary_factorization (z : ComplexSourceHilbert hm + (leftWedgeTimeZero ℓ)) : + leftWedgeSourcePolarUnitary hm ℓ (CFC.sqrt (sourceGram hm (leftWedgeTimeZero ℓ)) z) = + complexSourceMap hm (leftWedgeTimeZero ℓ) z := + polarUnitary_polarGramRoot (complexSourceMap hm (leftWedgeTimeZero ℓ)) _ _ z + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeSpacetimeTomitaCore.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeSpacetimeTomitaCore.lean new file mode 100644 index 0000000000..9926d8d69e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeSpacetimeTomitaCore.lean @@ -0,0 +1,100 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeTimeSlice +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomitaTestCore +public import LeanPool.VacuumBellSeparation.FreeField.ShellBoostMeasure + +/-! +# A boost-invariant spacetime test core for the actual wedge Tomita graph + +The graph pairs are formed from original real compact spacetime sources. +Time-slice equality identifies their full graph closure, and the literal +inverse-label boost action preserves this test graph at wedge position zero. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Gaussian.HilbertComplexification + +variable {m : ℝ} (hm : 0 < m) + +/-- Wedge spacetime Tomita test graph. -/ +def wedgeSpacetimeTomitaTestGraph (ℓ : ℝ) : + Set (Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m)) := + {p | ∃ F G : RealTestFunction, + tsupport F.1 ⊆ leftWedge ℓ ∧ tsupport G.1 ⊆ leftWedge ℓ ∧ + p = (oneParticleL2 hm F + Complex.I • oneParticleL2 hm G, + oneParticleL2 hm F - Complex.I • oneParticleL2 hm G)} + +theorem wedgeSpacetimeTomitaTestGraph_subset (ℓ : ℝ) : + wedgeSpacetimeTomitaTestGraph hm ℓ ⊆ sourceTomitaGraph hm (leftWedgeTimeZero ℓ) := by + rintro _ ⟨F, G, hF, hG, rfl⟩ + obtain ⟨u, hu⟩ := oneParticleL2_mem_sourceRealSpace_leftWedge hm ℓ F hF + obtain ⟨v, hv⟩ := oneParticleL2_mem_sourceRealSpace_leftWedge hm ℓ G hG + change sourceEmbedding hm (leftWedgeTimeZero ℓ) u = oneParticleL2 hm F at hu + change sourceEmbedding hm (leftWedgeTimeZero ℓ) v = oneParticleL2 hm G at hv + refine ⟨mk u v, ?_, ?_⟩ + · change sourceEmbedding hm (leftWedgeTimeZero ℓ) u + + Complex.I • sourceEmbedding hm (leftWedgeTimeZero ℓ) v = _ + rw [hu, hv] + · change sourceEmbedding hm (leftWedgeTimeZero ℓ) u + + Complex.I • sourceEmbedding hm (leftWedgeTimeZero ℓ) (-v) = _ + rw [map_neg, smul_neg, hu, hv, sub_eq_add_neg] + +theorem sourceTomitaTestGraph_subset_wedgeSpacetime (ℓ : ℝ) : + sourceTomitaTestGraph hm (leftWedgeTimeZero ℓ) ⊆ wedgeSpacetimeTomitaTestGraph hm ℓ := by + rintro _ ⟨u, v, rfl⟩ + obtain ⟨F, hF, heqF⟩ := exists_spacetimeSourceL2_of_timeZeroSource_leftWedge + hm ℓ u.1 u.2.1 u.2.2 + obtain ⟨G, hG, heqG⟩ := exists_spacetimeSourceL2_of_timeZeroSource_leftWedge + hm ℓ v.1 v.2.1 v.2.2 + exact ⟨F, G, hF, hG, by rw [heqF, heqG]⟩ + +theorem closure_wedgeSpacetimeTomitaTestGraph (ℓ : ℝ) : + closure (wedgeSpacetimeTomitaTestGraph hm ℓ) = + sourceTomitaGraph hm (leftWedgeTimeZero ℓ) := by + apply Set.Subset.antisymm + · exact closure_minimal (wedgeSpacetimeTomitaTestGraph_subset hm ℓ) + (sourceTomitaGraph_isClosed hm (leftWedgeTimeZero ℓ)) + · rw [← closure_sourceTomitaTestGraph] + exact closure_mono (sourceTomitaTestGraph_subset_wedgeSpacetime hm ℓ) + +theorem oneParticleBoostIsometry_oneParticleL2 (η : ℝ) (F : RealTestFunction) : + oneParticleBoostIsometry hm η (oneParticleL2 hm F) = + oneParticleL2 hm (F.compCLE (boost (-η))) := by + apply Lp.ext + have hpull := (measurePreserving_shellBoost hm (-η)).quasiMeasurePreserving.ae_eq_comp + (coeFn_oneParticleL2 hm F) + filter_upwards [oneParticleBoostIsometry_ae hm η (oneParticleL2 hm F), hpull, + coeFn_oneParticleL2 hm (F.compCLE (boost (-η)))] with p hU hF hboost + exact hU.trans (hF.trans (hboost.trans (oneParticle_boost m (-η) F p)).symm) + +theorem tsupport_compCLE_boost_subset_leftWedge_zero (η : ℝ) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) : + tsupport (F.compCLE (boost η)).1 ⊆ leftWedge 0 := by + rw [RealTestFunction.tsupport_compCLE] + intro x hx + exact (boost_mem_leftWedge_zero_iff η x).mp (hF hx) + +/-- Both coordinates of the literal smooth graph core transform by the same +physical unitary. The inverse-label sign is retained in the test functions. -/ +theorem wedgeSpacetimeTomitaTestGraph_boost_invariant (η : ℝ) + {p : Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m)} + (hp : p ∈ wedgeSpacetimeTomitaTestGraph hm 0) : + (oneParticleBoostIsometry hm η p.1, oneParticleBoostIsometry hm η p.2) ∈ + wedgeSpacetimeTomitaTestGraph hm 0 := by + obtain ⟨F, G, hF, hG, rfl⟩ := hp + refine ⟨F.compCLE (boost (-η)), G.compCLE (boost (-η)), + tsupport_compCLE_boost_subset_leftWedge_zero (-η) F hF, + tsupport_compCLE_boost_subset_leftWedge_zero (-η) G hG, ?_⟩ + simp only [map_add, map_sub, map_smul, oneParticleBoostIsometry_oneParticleL2] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeTimeSlice.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeTimeSlice.lean new file mode 100644 index 0000000000..f98bd988de --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeTimeSlice.lean @@ -0,0 +1,68 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeCompactExhaustion +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceBall +public import LeanPool.VacuumBellSeparation.FreeField.ForwardTimeSliceClosure +public import LeanPool.VacuumBellSeparation.FreeField.SourceInclusion + +/-! +# Time-slice equality for the actual halfspace and spacetime wedge + +Compact exhaustion by contained tangent double cones lets the established +ball time-slice construction apply to every wedge test source. Both sides +use the original massive mass-shell Hilbert space and original source maps. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +variable {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + +theorem exists_spacetimeSourceL2_of_timeZeroSource_leftWedge + (u : TimeZeroSource) + (hf : tsupport u.1.1 ⊆ leftWedgeTimeZero ℓ) + (hg : tsupport u.2.1 ⊆ leftWedgeTimeZero ℓ) : + ∃ F : RealTestFunction, tsupport F.1 ⊆ leftWedge ℓ ∧ + oneParticleL2 hm F = timeZeroL2 hm u := by + have hK : IsCompact (tsupport u.1.1 ∪ tsupport u.2.1) := u.1.2.2.union u.2.2.2 + obtain ⟨L, hL, hs⟩ := IsCompact.exists_tangent_ball hK (Set.union_subset hf hg) + obtain ⟨F, hF, heq⟩ := exists_spacetimeSourceL2_of_timeZeroSource_ball hm hL + ((ℓ - L) • e₁) u (Set.subset_union_left.trans hs) (Set.subset_union_right.trans hs) + exact ⟨F, hF.trans (tangent_doubleCone_subset_leftWedge ℓ L), heq⟩ + +theorem oneParticleL2_mem_sourceRealSpace_leftWedge + (F : RealTestFunction) (hF : tsupport F.1 ⊆ leftWedge ℓ) : + oneParticleL2 hm F ∈ sourceRealSpace hm (leftWedgeTimeZero ℓ) := by + obtain ⟨L, hL, hs⟩ := IsCompact.exists_tangent_doubleCone F.2.2 hF + exact sourceRealSpace_mono hm (tangent_ball_subset_leftWedgeTimeZero ℓ L) + (oneParticleL2_mem_sourceRealSpace hm hL ((ℓ - L) • e₁) F hs) + +/-- Wedge spacetime test vectors with membership specified by `{z | ∃ F : RealTestFunction, +tsupport F.1 ⊆ leftWedge ℓ ∧ oneParticleL2 hm F = z}`. -/ +def wedgeSpacetimeTestVectors : Set (Lp ℂ 2 (oneParticleMeasure m)) := + {z | ∃ F : RealTestFunction, tsupport F.1 ⊆ leftWedge ℓ ∧ oneParticleL2 hm F = z} + +/-- Equality of real closed source sets, with no bounded-wedge hypothesis. -/ +theorem closure_wedgeSpacetimeTestVectors : + closure (wedgeSpacetimeTestVectors hm ℓ) = + (sourceRealSpace hm (leftWedgeTimeZero ℓ) : Set (Lp ℂ 2 (oneParticleMeasure m))) := by + apply Set.Subset.antisymm + · apply closure_minimal ?_ (sourceRealSpace hm (leftWedgeTimeZero ℓ)).isClosed' + rintro _ ⟨F, hF, rfl⟩ + exact oneParticleL2_mem_sourceRealSpace_leftWedge hm ℓ F hF + · change Set.range (sourceEmbedding hm (leftWedgeTimeZero ℓ)) ⊆ _ + rw [range_sourceEmbedding_eq_closure] + apply closure_mono + rintro _ ⟨u, rfl⟩ + exact exists_spacetimeSourceL2_of_timeZeroSource_leftWedge hm ℓ u.1 u.2.1 u.2.2 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeTomitaMultiplierEquality.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeTomitaMultiplierEquality.lean new file mode 100644 index 0000000000..08ae980031 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeTomitaMultiplierEquality.lean @@ -0,0 +1,128 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeTomitaMultiplierInclusion +public import LeanPool.VacuumBellSeparation.FreeField.WedgeReflectionBoost +public import LeanPool.VacuumBellSeparation.FreeField.GaussianRapidityRegularization +public import LeanPool.VacuumBellSeparation.FreeField.InjectiveSourceTomita + +/-! +# Full original wedge Tomita graph equals the maximal reflected half-power + +Gaussian regularization has two proved properties: it preserves the original +closed source graph, and its maximal half-power is bounded on the entire Hilbert +space. Density extends each regularized graph to every input; strong Gaussian +convergence then gives the reverse inclusion with the entire maximal domain. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology Gaussian.HilbertComplexification + +variable {m : ℝ} (hm : 0 < m) + +theorem wedgeRapidityTomitaGraph_snd_unique {ψ χ χ' : Lp ℂ 2 (oneParticleMeasure m)} + (h : (ψ, χ) ∈ wedgeRapidityTomitaGraph hm) + (h' : (ψ, χ') ∈ wedgeRapidityTomitaGraph hm) : χ = χ' := by + have he := (physicalRapidityExponential hm (1 / 2)).mem_graph_snd_inj h h' rfl + have hj := congrArg (physicalWedgeReflection hm) he + simpa only [physicalWedgeReflection_involutive] using hj + +/-- Continuous linear map for the physical Gaussian Tomita, of type `Lp ℂ 2 (oneParticleMeasure m) +→L[ℝ] Lp ℂ 2 (oneParticleMeasure m)`. -/ +noncomputable def physicalGaussianTomita {ε : ℝ} (hε : ε ≠ 0) : + Lp ℂ 2 (oneParticleMeasure m) →L[ℝ] Lp ℂ 2 (oneParticleMeasure m) := + (physicalWedgeReflection hm).comp ((physicalGaussianHalf hm hε).restrictScalars ℝ) + +theorem gaussian_regularized_mem_wedgeRapidityTomitaGraph {ε : ℝ} (hε : ε ≠ 0) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + (gaussianBoostAverage hm ε ψ, physicalGaussianTomita hm hε ψ) ∈ + wedgeRapidityTomitaGraph hm := by + change (gaussianBoostAverage hm ε ψ, + physicalWedgeReflection hm (physicalWedgeReflection hm (physicalGaussianHalf hm hε ψ))) ∈ + (physicalRapidityExponential hm (1 / 2)).graph + rw [physicalWedgeReflection_involutive] + exact gaussianBoostAverage_mem_physicalHalf_graph hm hε ψ + +/-- Every regularized vector is in the actual original source domain. The +bounded second coordinate and source-domain density discharge the extension. -/ +theorem gaussian_regularized_mem_sourceTomitaGraph {ε : ℝ} (hε : ε ≠ 0) + (ψ : Lp ℂ 2 (oneParticleMeasure m)) : + (gaussianBoostAverage hm ε ψ, physicalGaussianTomita hm hε ψ) ∈ + sourceTomitaGraph hm (leftWedgeTimeZero 0) := by + have hd := complexSourceMap_denseRange_of_open hm (leftWedgeTimeZero 0) + (isOpen_leftWedgeTimeZero 0) (leftWedgeTimeZero_nonempty 0) + refine hd.induction_on (p := fun ψ => + (gaussianBoostAverage hm ε ψ, physicalGaussianTomita hm hε ψ) ∈ + sourceTomitaGraph hm (leftWedgeTimeZero 0)) ψ ?_ ?_ + · exact (sourceTomitaGraph_isClosed hm (leftWedgeTimeZero 0)).preimage + ((gaussianBoostAverage hm ε).continuous.prodMk (physicalGaussianTomita hm hε).continuous) + · intro z + have hΓ : (complexSourceMap hm (leftWedgeTimeZero 0) z, + complexSourceMap hm (leftWedgeTimeZero 0) (conjugation z)) ∈ + sourceTomitaGraph hm (leftWedgeTimeZero 0) := ⟨z, rfl, rfl⟩ + have hA := gaussianBoostAverage_preserves_sourceTomitaGraph hm ε hΓ + have he := wedgeRapidityTomitaGraph_snd_unique hm + (sourceTomitaGraph_subset_wedgeRapidityTomitaGraph hm hA) + (gaussian_regularized_mem_wedgeRapidityTomitaGraph hm hε + (complexSourceMap hm (leftWedgeTimeZero 0) z)) + rwa [he] at hA + +theorem gaussianBoostAverage_preserves_wedgeRapidityTomitaGraph (ε : ℝ) + {ψ χ : Lp ℂ 2 (oneParticleMeasure m)} + (hψχ : (ψ, χ) ∈ wedgeRapidityTomitaGraph hm) : + (gaussianBoostAverage hm ε ψ, gaussianBoostAverage hm ε χ) ∈ + wedgeRapidityTomitaGraph hm := by + change (gaussianBoostAverage hm ε ψ, + physicalWedgeReflection hm (gaussianBoostAverage hm ε χ)) ∈ + (physicalRapidityExponential hm (1 / 2)).graph + rw [physicalWedgeReflection_gaussianBoostAverage] + exact gaussianBoostAverage_preserves_physicalHalf_graph hm ε hψχ + +theorem wedgeRapidityTomitaGraph_subset_sourceTomitaGraph : + wedgeRapidityTomitaGraph hm ⊆ sourceTomitaGraph hm (leftWedgeTimeZero 0) := by + rintro ⟨ψ, χ⟩ hψχ + have hA (ε : ℝ) (hε : ε ≠ 0) : + (gaussianBoostAverage hm ε ψ, gaussianBoostAverage hm ε χ) ∈ + sourceTomitaGraph hm (leftWedgeTimeZero 0) := by + have hΓ := gaussian_regularized_mem_sourceTomitaGraph hm hε ψ + have he := wedgeRapidityTomitaGraph_snd_unique hm + (gaussian_regularized_mem_wedgeRapidityTomitaGraph hm hε ψ) + (gaussianBoostAverage_preserves_wedgeRapidityTomitaGraph hm ε hψχ) + rwa [he] at hΓ + have ht : Tendsto (fun ε : ℝ => + (gaussianBoostAverage hm ε ψ, gaussianBoostAverage hm ε χ)) + (𝓝[≠] (0 : ℝ)) (𝓝 (ψ, χ)) := + ((tendsto_gaussianBoostAverage hm ψ).mono_left nhdsWithin_le_nhds).prodMk_nhds + ((tendsto_gaussianBoostAverage hm χ).mono_left nhdsWithin_le_nhds) + apply (sourceTomitaGraph_isClosed hm (leftWedgeTimeZero 0)).mem_of_tendsto ht + filter_upwards [self_mem_nhdsWithin] with ε hε + exact hA ε hε + +/-- Equality retains the maximal multiplier domain and the full original +halfspace source graph, with no BW, strip-domain or core-density assumption. -/ +theorem sourceTomitaGraph_eq_wedgeRapidityTomitaGraph : + sourceTomitaGraph hm (leftWedgeTimeZero 0) = wedgeRapidityTomitaGraph hm := + Set.Subset.antisymm (sourceTomitaGraph_subset_wedgeRapidityTomitaGraph hm) + (wedgeRapidityTomitaGraph_subset_sourceTomitaGraph hm) + +theorem leftWedgeSourceTomita_full_graph (ψ χ : Lp ℂ 2 (oneParticleMeasure m)) : + (∃ hψ : ψ ∈ (leftWedgeSourceTomita hm 0).domain, + leftWedgeSourceTomita hm 0 ⟨ψ, hψ⟩ = χ) ↔ + (ψ, physicalWedgeReflection hm χ) ∈ (physicalRapidityExponential hm (1 / 2)).graph := by + calc + _ ↔ (ψ, χ) ∈ sourceTomitaGraph hm (leftWedgeTimeZero 0) := + (injectiveSourceTomita_graph hm (leftWedgeTimeZero 0) + (complexSourceMap_injective_leftWedgeTimeZero hm 0) ψ χ).symm + _ ↔ _ := by + rw [sourceTomitaGraph_eq_wedgeRapidityTomitaGraph] + rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeTomitaMultiplierInclusion.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeTomitaMultiplierInclusion.lean new file mode 100644 index 0000000000..5876a1996f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeTomitaMultiplierInclusion.lean @@ -0,0 +1,93 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveMultiplierDomain +public import LeanPool.VacuumBellSeparation.FreeField.WedgeReflection +public import LeanPool.VacuumBellSeparation.FreeField.WedgeSpacetimeTomitaCore + +/-! +# One full graph inclusion for the actual wedge Tomita operator + +The literal spacetime test graph is contained in J times the maximal positive +rapidity half-power. Closedness and the actual test-core theorem extend this +inclusion to the whole original source graph. The reverse inclusion, by Gaussian +regularization, is proved in another module (`wedgeRapidityTomitaGraph_subset_sourceTomitaGraph` +in `FreeField/WedgeTomitaMultiplierEquality.lean`). +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ComplexConjugate + +/-- Set of points satisfying the wedge rapidity Tomita graph condition. -/ +def wedgeRapidityTomitaGraph {m : ℝ} (hm : 0 < m) : + Set (Lp ℂ 2 (oneParticleMeasure m) × Lp ℂ 2 (oneParticleMeasure m)) := + {p | (p.1, physicalWedgeReflection hm p.2) ∈ (physicalRapidityExponential hm (1 / 2)).graph} + +theorem wedgeRapidityTomitaGraph_isClosed {m : ℝ} (hm : 0 < m) : + IsClosed (wedgeRapidityTomitaGraph hm) := + (physicalRapidityExponential_isSelfAdjoint hm (1 / 2)).isClosed.preimage + (continuous_fst.prodMk ((physicalWedgeReflection hm).continuous.comp continuous_snd)) + +private theorem conjugate_submodule_add_I_mem {E : Type*} + [AddCommGroup E] [Module ℂ E] (P : Submodule ℂ (E × E)) + (J : E → E) {x y : E} + (hJ : J (x - Complex.I • y) = J x + Complex.I • J y) + (hx : (x, J x) ∈ P) (hy : (y, J y) ∈ P) : + (x + Complex.I • y, J (x - Complex.I • y)) ∈ P := by + rw [hJ] + exact P.add_mem hx (P.smul_mem Complex.I hy) + +private theorem physicalWedgeReflection_sub_I {m : ℝ} (hm : 0 < m) + (ψ χ : Lp ℂ 2 (oneParticleMeasure m)) : + physicalWedgeReflection hm (ψ - Complex.I • χ) = + physicalWedgeReflection hm ψ + Complex.I • physicalWedgeReflection hm χ := by + rw [map_sub, physicalWedgeReflection_smul, Complex.conj_I, neg_smul, sub_neg_eq_add] + +private theorem wedgeWave_reflection_mem_physicalRapidityHalf_graph + {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) : + (oneParticleL2 hm F, physicalWedgeReflection hm (oneParticleL2 hm F)) ∈ + (physicalRapidityExponential hm (1 / 2)).graph := + Eq.mp (congrArg (fun ψ => (oneParticleL2 hm F, ψ) ∈ + (physicalRapidityExponential hm (1 / 2)).graph) + (wedgeWaveL2_upper_eq_reflection hm F hF)) + (wedgeWave_upper_mem_physicalRapidityHalf_graph hm F hF) + +private theorem conjugate_submodule_testGraph_subset {α E : Type*} + [AddCommGroup E] [Module ℂ E] (P : Submodule ℂ (E × E)) + (J : E → E) (f : α → E) (Q : α → Prop) + (hJ : ∀ x y, J (x - Complex.I • y) = J x + Complex.I • J y) + (hf : ∀ a, Q a → (f a, J (f a)) ∈ P) : + {p | ∃ a b, Q a ∧ Q b ∧ p = (f a + Complex.I • f b, f a - Complex.I • f b)} ⊆ + {p | (p.1, J p.2) ∈ P} := by + rintro _ ⟨a, b, ha, hb, rfl⟩ + exact conjugate_submodule_add_I_mem P J (hJ (f a) (f b)) (hf a ha) (hf b hb) + +theorem wedgeSpacetimeTomitaTestGraph_subset_rapidityGraph {m : ℝ} (hm : 0 < m) : + wedgeSpacetimeTomitaTestGraph hm 0 ⊆ wedgeRapidityTomitaGraph hm := + conjugate_submodule_testGraph_subset + (α := RealTestFunction) (E := Lp ℂ 2 (oneParticleMeasure m)) + (physicalRapidityExponential hm (1 / 2)).graph + (physicalWedgeReflection hm) (oneParticleL2 hm) + (fun F => tsupport F.1 ⊆ leftWedge 0) + (physicalWedgeReflection_sub_I hm) + (wedgeWave_reflection_mem_physicalRapidityHalf_graph hm) + +/-- This is a full graph inclusion for the actual original halfspace source; +no modular formula or multiplier-domain premise occurs in the hypotheses. -/ +theorem sourceTomitaGraph_subset_wedgeRapidityTomitaGraph {m : ℝ} (hm : 0 < m) : + sourceTomitaGraph hm (leftWedgeTimeZero 0) ⊆ wedgeRapidityTomitaGraph hm := by + rw [← closure_wedgeSpacetimeTomitaTestGraph hm 0] + exact closure_minimal (wedgeSpacetimeTomitaTestGraph_subset_rapidityGraph hm) + (wedgeRapidityTomitaGraph_isClosed hm) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeWave.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeWave.lean new file mode 100644 index 0000000000..dbefcc3d4a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeWave.lean @@ -0,0 +1,145 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeGeometry +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Edges + +/-! +# The actual complex-rapidity wave of a compact left-wedge source + +The integral uses the original spacetime source and the original massive +shell phase. Negative phase rapidity is essential: real ζ gives momentum +boost +ζ, so positive imaginary ζ is the decaying strip for the left wedge. +Integration by parts gives polynomial decay uniform up to both strip edges. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace ComplexConjugate + +/-- Wedge wave given by `∫ x : Spacetime, Complex.exp (Complex.I * boostPhase m (-ζ) p x) * (F.1 x +: ℂ)`. -/ +noncomputable def wedgeWave (m : ℝ) (F : RealTestFunction) (ζ : ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + ∫ x : Spacetime, Complex.exp (Complex.I * boostPhase m (-ζ) p x) * (F.1 x : ℂ) + +theorem integrable_wedgeWave_integrand (m : ℝ) (F : RealTestFunction) (ζ : ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : + Integrable (fun x : Spacetime => + Complex.exp (Complex.I * boostPhase m (-ζ) p x) * (F.1 x : ℂ)) := by + simpa only [sub_zero, boostPhaseCLM_apply] using + integrable_expPhase_mul (boostPhaseCLM m (-ζ) p) 0 F + +theorem wedgeWave_ofReal (m η : ℝ) (F : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + wedgeWave m F (η : ℂ) p = oneParticle m F (shellBoost m η p) := by + rw [wedgeWave, oneParticle_eq_integral] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + have hp : boostPhase m (-(η : ℂ)) p x = + ((dispersion m (shellBoost m η p) * x.1 - ⟪shellBoost m η p, x.2⟫_ℝ : ℝ) : ℂ) := by + rw [← Complex.ofReal_neg, boostPhase_ofReal_eq_zero_shellBoost, neg_neg, boostPhase_zero] + exact congrArg (fun a : ℂ => Complex.exp (Complex.I * a) * (F.1 x : ℂ)) hp + +theorem wedgeWave_zero (m : ℝ) (F : RealTestFunction) (p : EuclideanSpace ℝ (Fin 3)) : + wedgeWave m F 0 p = oneParticle m F p := by + simpa only [Complex.ofReal_zero, shellBoost_zero] using wedgeWave_ofReal m 0 F p + +theorem boostPhase_neg_pi_mul_I_eq (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) (x : Spacetime) : + boostPhase m (-((Real.pi : ℂ) * Complex.I)) p x = + boostPhase m ((Real.pi : ℂ) * Complex.I) p x := by + unfold boostPhase + rw [Complex.cosh_neg, Complex.sinh_neg, Complex.cosh_mul_I, Complex.sinh_mul_I, + Complex.cos_pi, Complex.sin_pi] + ring + +/-- The upper boundary involves transverse reflection, not full momentum +reflection. This is the literal complex conjugate of the original source wave. -/ +theorem wedgeWave_pi_mul_I (m : ℝ) (F : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + wedgeWave m F ((Real.pi : ℂ) * Complex.I) p = + conj (oneParticle m F (axisReflection p)) := by + rw [wedgeWave, oneParticle_eq_integral, ← integral_conj] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + have he : Complex.exp (Complex.I * boostPhase m (-((Real.pi : ℂ) * Complex.I)) p x) = + conj (Complex.exp (Complex.I * + ((dispersion m (axisReflection p) * x.1 - ⟪axisReflection p, x.2⟫_ℝ : ℝ) : ℂ))) := by + rw [boostPhase_neg_pi_mul_I_eq, exp_I_mul_boostPhase_pi_mul_I, boostPhase_zero] + simpa only [oneParticleIntegrand, map_mul, Complex.conj_ofReal] using + congrArg (fun a : ℂ => a * (F.1 x : ℂ)) he + +theorem wedgeWave_add_ofReal (m η : ℝ) (F : RealTestFunction) (ζ : ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : + wedgeWave m F ((η : ℂ) + ζ) p = wedgeWave m F ζ (shellBoost m η p) := by + unfold wedgeWave + apply integral_congr_ae + exact Filter.Eventually.of_forall fun x => by + have hp : boostPhase m (-((η : ℂ) + ζ)) p x = + boostPhase m (-ζ) (shellBoost m η p) x := by + rw [neg_add, ← Complex.ofReal_neg, boostPhase_add_ofReal, neg_neg] + exact congrArg (fun a : ℂ => Complex.exp (Complex.I * a) * (F.1 x : ℂ)) hp + +theorem im_boostPhase_neg_mul_I_nonneg_of_leftWedge (m θ : ℝ) + (hθ₀ : 0 ≤ θ) (hθπ : θ ≤ Real.pi) (p : EuclideanSpace ℝ (Fin 3)) + {x : Spacetime} (hx : x ∈ leftWedge 0) : + 0 ≤ (boostPhase m (-((θ : ℂ) * Complex.I)) p x).im := by + rw [← neg_mul, ← Complex.ofReal_neg, boostPhase_ofReal_mul_I_im, Real.sin_neg] + have hω : 0 ≤ dispersion m p := Real.sqrt_nonneg _ + have hp : |⟪e₁, p⟫_ℝ| ≤ dispersion m p := + (abs_inner_e₁_le p).trans (norm_le_dispersion m p) + have hprod : |⟪e₁, p⟫_ℝ * x.1| ≤ dispersion m p * |x.1| := by + rw [abs_mul] + exact mul_le_mul_of_nonneg_right hp (abs_nonneg _) + change ⟪e₁, x.2⟫_ℝ + |x.1| < 0 at hx + have harg : dispersion m p * ⟪e₁, x.2⟫_ℝ - ⟪e₁, p⟫_ℝ * x.1 ≤ 0 := by + have hb := mul_le_mul_of_nonneg_left hx.le hω + nlinarith [neg_abs_le (⟪e₁, p⟫_ℝ * x.1)] + exact mul_nonneg_of_nonpos_of_nonpos + (neg_nonpos.mpr (Real.sin_nonneg_of_nonneg_of_le_pi hθ₀ hθπ)) + harg + +/-- Uniform polynomial decay on the entire closed imaginary strip, obtained +from the already proved integration-by-parts identity for the actual source. -/ +theorem norm_wedgeWave_mul_I_le {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) (N : ℕ) {θ : ℝ} + (hθ₀ : 0 ≤ θ) (hθπ : θ ≤ Real.pi) (p : EuclideanSpace ℝ (Fin 3)) : + ‖wedgeWave m F ((θ : ℂ) * Complex.I) p‖ ≤ + (2 / dispersion m p) ^ N * maxCoordDerivNorm F N := by + let c := boostPhaseCLM m (-((θ : ℂ) * Complex.I)) p + have hsum : dispersion m p ^ 2 ≤ ∑ j : Fin 4, ‖c (coordDir j)‖ ^ 2 := by + have he : -((θ : ℂ) * Complex.I) = ((-θ : ℝ) : ℂ) * Complex.I := by simp + simp only [c, he, sum_norm_sq_boostPhaseCLM_coordDir] + exact le_add_of_nonneg_right (sq_nonneg _) + obtain ⟨j, hj⟩ := exists_le_norm_coordDir hsum + have hc : ∀ x ∈ tsupport F.1, 0 ≤ (c (x - 0)).im := by + intro x hx + simpa only [c, sub_zero, boostPhaseCLM_apply] using + im_boostPhase_neg_mul_I_nonneg_of_leftWedge m θ hθ₀ hθπ p (hF hx) + have hb := norm_pow_mul_norm_integral_expPhase_le c 0 (coordDir j) F N hc + simp only [sub_zero] at hb + change ‖c (coordDir j)‖ ^ N * ‖wedgeWave m F ((θ : ℂ) * Complex.I) p‖ ≤ _ at hb + have hω := dispersion_pos hm.ne' p + have hp : (dispersion m p / 2) ^ N ≤ ‖c (coordDir j)‖ ^ N := + pow_le_pow_left₀ (by positivity) hj N + have hbound : (dispersion m p / 2) ^ N * ‖wedgeWave m F ((θ : ℂ) * Complex.I) p‖ ≤ + maxCoordDerivNorm F N := + (mul_le_mul_of_nonneg_right hp (norm_nonneg _)).trans + (hb.trans (le_maxCoordDerivNorm F N j)) + have hinv : (2 / dispersion m p) ^ N * (dispersion m p / 2) ^ N = 1 := by + rw [← mul_pow] + have he : (2 / dispersion m p) * (dispersion m p / 2) = 1 := by field_simp [hω.ne'] + rw [he, one_pow] + have hh := mul_le_mul_of_nonneg_left hbound + (show 0 ≤ (2 / dispersion m p) ^ N by positivity) + simpa only [← mul_assoc, hinv, one_mul] using hh + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveContinuity.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveContinuity.lean new file mode 100644 index 0000000000..809ab16405 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveContinuity.lean @@ -0,0 +1,90 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveL2 +public import LeanPool.VacuumBellSeparation.FreeField.L2DominatedDifferentiation + +/-! +# Strong L2 continuity of the actual wave on the closed rapidity strip + +Continuity is in the original mass-shell Hilbert norm, including both +edges. A bounded neighborhood in real rapidity has a common integrable +square majorant, obtained from the full-strip integration-by-parts bound. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology + +/-- Closed rapidity strip with membership specified by `{ζ | 0 ≤ ζ.im ∧ ζ.im ≤ Real.pi}`. -/ +def closedRapidityStrip : Set ℂ := {ζ | 0 ≤ ζ.im ∧ ζ.im ≤ Real.pi} + +/-- Wedge wave closed strip L² defined as `wedgeWaveL2 hm F hF ζ.1 ζ.2`. -/ +noncomputable def wedgeWaveClosedStripL2 {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) (ζ : closedRapidityStrip) : + Lp ℂ 2 (oneParticleMeasure m) := wedgeWaveL2 hm F hF ζ.1 ζ.2 + +theorem continuous_wedgeWaveClosedStripL2 {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) : Continuous (wedgeWaveClosedStripL2 hm F hF) := by + rw [continuous_iff_continuousAt] + intro ζ₀ + let B : ℝ := |ζ₀.1.re| + 1 + let A (p : EuclideanSpace ℝ (Fin 3)) : ℝ := + (2 * Real.exp B / dispersion m p) ^ 2 * maxCoordDerivNorm F 2 + let bound (p : EuclideanSpace ℝ (Fin 3)) : ℝ := + (64 * Real.exp B ^ 4 * maxCoordDerivNorm F 2 ^ 2) * (dispersion m p ^ 4)⁻¹ + have hbound : Integrable bound (oneParticleMeasure m) := + (integrable_inv_dispersion_pow_four_massShell hm).const_mul _ + have hB : ∀ᶠ ζ : closedRapidityStrip in 𝓝 ζ₀, |ζ.1.re| ≤ B := by + have hc : Continuous (fun ζ : closedRapidityStrip => |ζ.1.re|) := + (Complex.continuous_re.comp continuous_subtype_val).abs + exact (hc.continuousAt.eventually_lt_const (show |ζ₀.1.re| < B by + dsimp [B]; linarith)).mono fun ζ hζ => hζ.le + have hrep (ζ : closedRapidityStrip) : + (wedgeWaveClosedStripL2 hm F hF ζ - wedgeWaveClosedStripL2 hm F hF ζ₀ : + Lp ℂ 2 (oneParticleMeasure m)) =ᵐ[oneParticleMeasure m] + fun p => wedgeWave m F ζ.1 p - wedgeWave m F ζ₀.1 p := by + filter_upwards [Lp.coeFn_sub (wedgeWaveClosedStripL2 hm F hF ζ) + (wedgeWaveClosedStripL2 hm F hF ζ₀), wedgeWaveL2_ae hm F hF ζ.1 ζ.2, + wedgeWaveL2_ae hm F hF ζ₀.1 ζ₀.2] with p hsub hζ hzero + apply hsub.trans + change wedgeWaveL2 hm F hF ζ.1 ζ.2 p - wedgeWaveL2 hm F hF ζ₀.1 ζ₀.2 p = _ + rw [hζ, hzero] + have hlim : Tendsto + (fun ζ => wedgeWaveClosedStripL2 hm F hF ζ - wedgeWaveClosedStripL2 hm F hF ζ₀) + (𝓝 ζ₀) (𝓝 (0 : Lp ℂ 2 (oneParticleMeasure m))) := by + apply tendsto_L2_zero_of_dominated_representatives (oneParticleMeasure m) + (β := closedRapidityStrip) (l := 𝓝 ζ₀) + (fun ζ : closedRapidityStrip => + wedgeWaveClosedStripL2 hm F hF ζ - wedgeWaveClosedStripL2 hm F hF ζ₀) + (fun (ζ : closedRapidityStrip) (p : EuclideanSpace ℝ + (Fin 3)) => wedgeWave m F ζ.1 p - wedgeWave m F ζ₀.1 p) hrep bound hbound + · filter_upwards [hB] with ζ hζ + exact Eventually.of_forall fun p => by + have h₁ : ‖wedgeWave m F ζ.1 p‖ ≤ A p := + norm_wedgeWave_closedStrip_le hm F hF ζ.2 hζ p + have h₂ : ‖wedgeWave m F ζ₀.1 p‖ ≤ A p := + norm_wedgeWave_closedStrip_le hm F hF ζ₀.2 + (show |ζ₀.1.re| ≤ B by dsimp [B]; linarith) p + have hd : ‖wedgeWave m F ζ.1 p - wedgeWave m F ζ₀.1 p‖ ≤ 2 * A p := + (norm_sub_le _ _).trans (by linarith) + calc + ‖wedgeWave m F ζ.1 p - wedgeWave m F ζ₀.1 p‖ ^ 2 ≤ (2 * A p) ^ 2 := + pow_le_pow_left₀ (norm_nonneg _) hd 2 + _ = bound p := by dsimp [A, bound]; ring + · exact Eventually.of_forall fun p => by + have ht := (hasDerivAt_wedgeWave m F p ζ₀.1).continuousAt.tendsto.comp + continuous_subtype_val.continuousAt.tendsto + simpa only [sub_self, Function.comp_apply] using ht.sub (tendsto_const_nhds + (x := wedgeWave m F ζ₀.1 p)) + have h := hlim.add_const (wedgeWaveClosedStripL2 hm F hF ζ₀) + simpa only [ContinuousAt, sub_add_cancel, zero_add] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveEntire.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveEntire.lean new file mode 100644 index 0000000000..8a772d6626 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveEntire.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWave +public import Mathlib.Analysis.Calculus.ParametricIntegral +public import Mathlib.Analysis.Complex.CauchyIntegral + +/-! +# Entire dependence of the original wedge wave on complex rapidity + +For each actual momentum, compact support supplies a local integrable +majorant for the exact rapidity derivative. The statement is scalar +entireness; L2-valued strip analyticity is a separate subsequent step. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology + +/-- Wedge wave phase derivative defined as `Complex.exp (Complex.I * boostPhase m (-ζ) p x) * +(-(Complex.I * boostPhaseDeriv m (-ζ) p x))`. -/ +noncomputable def wedgeWavePhaseDerivative (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) + (ζ : ℂ) (x : Spacetime) : ℂ := + Complex.exp (Complex.I * boostPhase m (-ζ) p x) * + (-(Complex.I * boostPhaseDeriv m (-ζ) p x)) + +theorem continuous_wedgeWavePhaseDerivative (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + Continuous (fun q : ℂ × Spacetime => wedgeWavePhaseDerivative m p q.1 q.2) := by + unfold wedgeWavePhaseDerivative boostPhase boostPhaseDeriv + fun_prop + +theorem hasDerivAt_wedgeWave_integrand (m : ℝ) (F : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) (x : Spacetime) (ζ : ℂ) : + HasDerivAt (fun z => Complex.exp (Complex.I * boostPhase m (-z) p x) * (F.1 x : ℂ)) + (wedgeWavePhaseDerivative m p ζ x * (F.1 x : ℂ)) ζ := by + have hd := ((hasDerivAt_boostPhase m p x (-ζ)).comp ζ (hasDerivAt_neg ζ)).const_mul Complex.I + convert! hd.cexp.mul_const (F.1 x : ℂ) using 1 + simp only [wedgeWavePhaseDerivative, Function.comp_apply]; ring + +theorem hasDerivAt_wedgeWave (m : ℝ) (F : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) (ζ₀ : ℂ) : + HasDerivAt (fun ζ => wedgeWave m F ζ p) + (∫ x : Spacetime, wedgeWavePhaseDerivative m p ζ₀ x * (F.1 x : ℂ)) ζ₀ := by + have hc := continuous_wedgeWavePhaseDerivative m p + have hK : IsCompact (Metric.closedBall ζ₀ 1 ×ˢ tsupport F.1) := + (isCompact_closedBall ζ₀ 1).prod F.2.2 + obtain ⟨C, hC⟩ := hK.exists_bound_of_continuousOn hc.continuousOn + have hD : Continuous (fun x : Spacetime => + wedgeWavePhaseDerivative m p ζ₀ x * (F.1 x : ℂ)) := + (hc.comp (continuous_const.prodMk continuous_id)).mul + (Complex.continuous_ofReal.comp (continuous_testFunction F)) + have hbound : ∀ x : Spacetime, ∀ ζ ∈ Metric.ball ζ₀ 1, + ‖wedgeWavePhaseDerivative m p ζ x * (F.1 x : ℂ)‖ ≤ C * |F.1 x| := by + intro x ζ hζ + by_cases hx : x ∈ tsupport F.1 + · rw [norm_mul, Complex.norm_real, Real.norm_eq_abs] + exact mul_le_mul_of_nonneg_right + (hC (ζ, x) ⟨Metric.ball_subset_closedBall hζ, hx⟩) (abs_nonneg _) + · simp only [image_eq_zero_of_notMem_tsupport hx, Complex.ofReal_zero, + mul_zero, norm_zero, abs_zero, le_refl] + exact (hasDerivAt_integral_of_dominated_loc_of_deriv_le + (F := fun ζ x => Complex.exp (Complex.I * boostPhase m (-ζ) p x) * (F.1 x : ℂ)) + (F' := fun ζ x => wedgeWavePhaseDerivative m p ζ x * (F.1 x : ℂ)) + (bound := fun x => C * |F.1 x|) + (Metric.ball_mem_nhds ζ₀ (by norm_num)) + (Filter.Eventually.of_forall fun ζ => (integrable_wedgeWave_integrand m F ζ + p).aestronglyMeasurable) + (integrable_wedgeWave_integrand m F ζ₀ p) hD.aestronglyMeasurable + (Filter.Eventually.of_forall hbound) ((integrable_abs_testFunction F).const_mul C) + (Filter.Eventually.of_forall fun x ζ _ => hasDerivAt_wedgeWave_integrand m F p x ζ)).2 + +theorem analyticOnNhd_wedgeWave (m : ℝ) (F : RealTestFunction) + (p : EuclideanSpace ℝ (Fin 3)) : + AnalyticOnNhd ℂ (fun ζ => wedgeWave m F ζ p) Set.univ := by + have hd : Differentiable ℂ (fun ζ => wedgeWave m F ζ p) := + fun ζ => (hasDerivAt_wedgeWave m F p ζ).differentiableAt + exact fun ζ _ => hd.analyticAt ζ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveHolomorphic.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveHolomorphic.lean new file mode 100644 index 0000000000..0ec7a3fd49 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveHolomorphic.lean @@ -0,0 +1,207 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveContinuity +public import Mathlib.Analysis.Complex.Liouville +public import Mathlib.Analysis.Calculus.MeanValue + +/-! +# Genuine Hilbert-space holomorphy inside the wedge strip + +The extension by zero is only a device for using the ordinary derivative on an +open neighborhood. On the closed strip it is exactly the physical wave. Cauchy's +scalar estimate and the original square-integrable slab bound dominate the +actual difference quotients in the original mass-shell Hilbert space. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology + +/-- The rapidity strip with imaginary part strictly between zero and π. -/ +def openRapidityStrip : Set ℂ := {ζ | 0 < ζ.im ∧ ζ.im < Real.pi} + +/-- Wedge wave extended L². -/ +noncomputable def wedgeWaveExtendedL2 {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) (ζ : ℂ) : Lp ℂ 2 (oneParticleMeasure m) := by + classical + exact if hζ : ζ ∈ closedRapidityStrip then wedgeWaveL2 hm F hF ζ hζ else 0 + +/-- Wedge wave extended. -/ +noncomputable def wedgeWaveExtended (m : ℝ) (F : RealTestFunction) (ζ : ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := by + classical + exact if ζ ∈ closedRapidityStrip then wedgeWave m F ζ p else 0 + +theorem wedgeWaveExtendedL2_ae {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) (ζ : ℂ) : + wedgeWaveExtendedL2 hm F hF ζ =ᵐ[oneParticleMeasure m] wedgeWaveExtended m F ζ := by + classical + by_cases hζ : ζ ∈ closedRapidityStrip + · have he : wedgeWaveExtended m F ζ = wedgeWave m F ζ := by + funext p + simp only [wedgeWaveExtended, ite_eq_left hζ] + rw [he] + simpa only [wedgeWaveExtendedL2, dite_eq_left hζ] using wedgeWaveL2_ae hm F hF ζ hζ + · have he : wedgeWaveExtended m F ζ = 0 := by + funext p + simp only [wedgeWaveExtended, ite_eq_right hζ, Pi.zero_apply] + rw [he] + simpa only [wedgeWaveExtendedL2, dite_eq_right hζ] using + (Lp.coeFn_zero ℂ 2 (oneParticleMeasure m)) + +/-- Wedge wave derivative given by `∫ x : Spacetime, wedgeWavePhaseDerivative m p ζ x * (F.1 x : +ℂ)`. -/ +noncomputable def wedgeWaveDerivative (m : ℝ) (F : RealTestFunction) (ζ : ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : ℂ := + ∫ x : Spacetime, wedgeWavePhaseDerivative m p ζ x * (F.1 x : ℂ) + +theorem continuous_wedgeWaveDerivative_momentum (m : ℝ) (F : RealTestFunction) (ζ : ℂ) : + Continuous (wedgeWaveDerivative m F ζ) := by + have hc : Continuous (fun q : EuclideanSpace ℝ (Fin 3) × Spacetime => + wedgeWavePhaseDerivative m q.1 ζ q.2 * (F.1 q.2 : ℂ)) := by + unfold wedgeWavePhaseDerivative + exact ((Complex.continuous_exp.comp (continuous_const.mul + (continuous_boostPhase_comp m (-ζ) continuous_fst continuous_snd))).mul + ((continuous_const.mul (continuous_boostPhaseDeriv_comp m (-ζ) + continuous_fst continuous_snd)).neg)).mul + (Complex.continuous_ofReal.comp ((continuous_testFunction F).comp continuous_snd)) + apply continuousOn_univ.mp + exact continuousOn_integral_of_compact_support F.2.2 hc.continuousOn + (fun p x _ hx => by simp only [image_eq_zero_of_notMem_tsupport hx, + Complex.ofReal_zero, mul_zero]) + +theorem norm_wedgeWaveDerivative_disk_le {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) {ζ₀ : ℂ} {r B : ℝ} (hr : 0 < r) + (hs : Metric.closedBall ζ₀ (3 * r) ⊆ closedRapidityStrip) + (hB : ∀ ζ ∈ Metric.closedBall ζ₀ (3 * r), |ζ.re| ≤ B) + {ζ : ℂ} (hζ : ζ ∈ Metric.ball ζ₀ r) (p : EuclideanSpace ℝ (Fin 3)) : + ‖wedgeWaveDerivative m F ζ p‖ ≤ + ((2 * Real.exp B / dispersion m p) ^ 2 * maxCoordDerivNorm F 2) / r := by + have hd : Differentiable ℂ (fun z => wedgeWave m F z p) := + fun z => (hasDerivAt_wedgeWave m F p z).differentiableAt + unfold wedgeWaveDerivative + rw [← (hasDerivAt_wedgeWave m F p ζ).deriv] + apply Complex.norm_deriv_le_of_forall_mem_sphere_norm_le hr hd.diffContOnCl + intro z hz + have hz₀ : z ∈ Metric.closedBall ζ₀ (3 * r) := by + have h₁ := Metric.mem_sphere.mp hz + have h₂ := Metric.mem_ball.mp hζ + have h₃ := dist_triangle z ζ ζ₀ + rw [Metric.mem_closedBall] + linarith + exact norm_wedgeWave_closedStrip_le hm F hF (hs hz₀) (hB z hz₀) p + +/-- A local disk estimate supplies the actual mass-shell Hilbert derivative. -/ +theorem hasDerivAt_wedgeWaveExtendedL2_on_disk {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (hF : tsupport F.1 ⊆ leftWedge 0) + {ζ₀ : ℂ} {r B : ℝ} (hr : 0 < r) + (hs : Metric.closedBall ζ₀ (3 * r) ⊆ closedRapidityStrip) + (hB : ∀ ζ ∈ Metric.closedBall ζ₀ (3 * r), |ζ.re| ≤ B) : + ∃ g : Lp ℂ 2 (oneParticleMeasure m), + g =ᵐ[oneParticleMeasure m] wedgeWaveDerivative m F ζ₀ ∧ + HasDerivAt (wedgeWaveExtendedL2 hm F hF) g ζ₀ := by + classical + let A (p : EuclideanSpace ℝ (Fin 3)) : ℝ := + (2 * Real.exp B / dispersion m p) ^ 2 * maxCoordDerivNorm F 2 + have hz₀ : ζ₀ ∈ Metric.ball ζ₀ r := Metric.mem_ball_self hr + have hsmall : Metric.ball ζ₀ r ⊆ closedRapidityStrip := by + intro z hz + apply hs + rw [Metric.mem_closedBall] + have := Metric.mem_ball.mp hz + linarith + have hd (z : ℂ) (hz : z ∈ Metric.ball ζ₀ r) (p : EuclideanSpace ℝ (Fin 3)) : + ‖wedgeWaveDerivative m F z p‖ ≤ A p / r := + norm_wedgeWaveDerivative_disk_le hm F hF hr hs hB hz p + let C (p : EuclideanSpace ℝ (Fin 3)) : ℝ := + (16 * Real.exp B ^ 4 * maxCoordDerivNorm F 2 ^ 2 / r ^ 2) * + (dispersion m p ^ 4)⁻¹ + have hC : Integrable C (oneParticleMeasure m) := + (integrable_inv_dispersion_pow_four_massShell hm).const_mul _ + have hD : MemLp (wedgeWaveDerivative m F ζ₀) 2 (oneParticleMeasure m) := by + have hc := continuous_wedgeWaveDerivative_momentum m F ζ₀ + rw [memLp_two_iff_integrable_sq_norm hc.aestronglyMeasurable] + apply hC.mono' (hc.norm.pow 2).aestronglyMeasurable + exact Eventually.of_forall fun p => by + rw [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg _)] + calc + ‖wedgeWaveDerivative m F ζ₀ p‖ ^ 2 ≤ (A p / r) ^ 2 := + pow_le_pow_left₀ (norm_nonneg _) (hd ζ₀ hz₀ p) 2 + _ = C p := by dsimp [A, C]; ring + refine ⟨hD.toLp (wedgeWaveDerivative m F ζ₀), hD.coeFn_toLp, ?_⟩ + apply hasDerivAt_L2_of_dominated_representatives (oneParticleMeasure m) _ + (wedgeWaveExtended m F) (wedgeWaveExtendedL2_ae hm F hF) _ + (wedgeWaveDerivative m F ζ₀) hD.coeFn_toLp ζ₀ + (bound := fun p => 4 * C p) + · exact Eventually.of_forall fun p => + (hasDerivAt_wedgeWave m F p ζ₀).congr_of_eventuallyEq + (Filter.Eventually.mono (Metric.ball_mem_nhds ζ₀ hr) fun z hz => by + simp only [wedgeWaveExtended, ite_eq_left (hsmall hz)]) + · exact hC.const_mul 4 + · filter_upwards [self_mem_nhdsWithin, + Filter.Eventually.filter_mono nhdsWithin_le_nhds (Metric.ball_mem_nhds ζ₀ hr)] with z hne hz + have hzneq : z ≠ ζ₀ := hne + exact Eventually.of_forall fun p => by + have hslope : ‖(z - ζ₀)⁻¹ • (wedgeWave m F z p - wedgeWave m F ζ₀ p)‖ ≤ A p / r := by + have hdiff : ‖wedgeWave m F z p - wedgeWave m F ζ₀ p‖ ≤ A p / r * ‖z - ζ₀‖ := by + apply Convex.norm_image_sub_le_of_norm_hasDerivWithin_le + (fun w _ => (hasDerivAt_wedgeWave m F p w).hasDerivWithinAt) + (fun w hw => hd w hw p) (convex_ball ζ₀ r) hz₀ hz + rw [norm_smul, norm_inv] + calc + ‖z - ζ₀‖⁻¹ * ‖wedgeWave m F z p - wedgeWave m F ζ₀ p‖ ≤ + ‖z - ζ₀‖⁻¹ * (A p / r * ‖z - ζ₀‖) := + mul_le_mul_of_nonneg_left hdiff (inv_nonneg.mpr (norm_nonneg _)) + _ = A p / r := by + field_simp [norm_ne_zero_iff.mpr (sub_ne_zero.mpr hzneq)] + simp only [wedgeWaveExtended, ite_eq_left (hsmall hz), ite_eq_left (hsmall hz₀)] + have hres : ‖(z - ζ₀)⁻¹ • (wedgeWave m F z p - wedgeWave m F ζ₀ p) - + wedgeWaveDerivative m F ζ₀ p‖ ≤ 2 * (A p / r) := + (norm_sub_le _ _).trans (by linarith [hd ζ₀ hz₀ p]) + calc + _ ≤ (2 * (A p / r)) ^ 2 := pow_le_pow_left₀ (norm_nonneg _) hres 2 + _ = 4 * C p := by dsimp [A, C]; ring + +theorem differentiableOn_wedgeWaveExtendedL2 {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (hF : tsupport F.1 ⊆ leftWedge 0) : + DifferentiableOn ℂ (wedgeWaveExtendedL2 hm F hF) openRapidityStrip := by + intro ζ₀ hζ₀ + let r : ℝ := min ζ₀.im (Real.pi - ζ₀.im) / 4 + have hr : 0 < r := div_pos (lt_min hζ₀.1 (sub_pos.mpr hζ₀.2)) (by norm_num) + have hlow : 3 * r ≤ ζ₀.im := by + have h := min_le_left ζ₀.im (Real.pi - ζ₀.im) + dsimp [r]; linarith [hζ₀.1] + have hupp : ζ₀.im + 3 * r ≤ Real.pi := by + have h := min_le_right ζ₀.im (Real.pi - ζ₀.im) + dsimp [r]; linarith [hζ₀.2] + have hs : Metric.closedBall ζ₀ (3 * r) ⊆ closedRapidityStrip := by + intro z hz + have hi := Complex.abs_im_le_norm (z - ζ₀) + simp only [Complex.sub_im] at hi + have hn : ‖z - ζ₀‖ ≤ 3 * r := by + simpa only [dist_eq_norm] using Metric.mem_closedBall.mp hz + have hlo := (abs_le.mp (hi.trans hn)).1 + have hup := (abs_le.mp (hi.trans hn)).2 + exact ⟨by linarith, by linarith⟩ + have hB : ∀ z ∈ Metric.closedBall ζ₀ (3 * r), |z.re| ≤ |ζ₀.re| + 3 * r := by + intro z hz + have hi := Complex.abs_re_le_norm (z - ζ₀) + simp only [Complex.sub_re] at hi + have hn : ‖z - ζ₀‖ ≤ 3 * r := by + simpa only [dist_eq_norm] using Metric.mem_closedBall.mp hz + calc + |z.re| = |(z.re - ζ₀.re) + ζ₀.re| := by rw [sub_add_cancel] + _ ≤ |z.re - ζ₀.re| + |ζ₀.re| := abs_add_le _ _ + _ ≤ _ := by linarith + obtain ⟨g, _, hg⟩ := hasDerivAt_wedgeWaveExtendedL2_on_disk hm F hF hr hs hB + exact hg.differentiableAt.differentiableWithinAt + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveL2.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveL2.lean new file mode 100644 index 0000000000..96639f8df3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveL2.lean @@ -0,0 +1,129 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveEntire +public import LeanPool.VacuumBellSeparation.FreeField.MassShellDistribution +public import LeanPool.VacuumBellSeparation.FreeField.ShellBoostMeasure + +/-! +# Actual mass-shell L2 integrability throughout the closed wedge strip + +The uniform integration-by-parts bound gives an integrable square majorant +against the original positive mass-shell measure. Real rapidity shifts +are then handled by the proved full measure-preserving shell boost. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +theorem continuous_wedgeWave_momentum (m : ℝ) (F : RealTestFunction) (ζ : ℂ) : + Continuous (wedgeWave m F ζ) := by + have hc : Continuous (fun q : EuclideanSpace ℝ (Fin 3) × Spacetime => + Complex.exp (Complex.I * boostPhase m (-ζ) q.1 q.2) * (F.1 q.2 : ℂ)) := + (Complex.continuous_exp.comp (continuous_const.mul + (continuous_boostPhase_comp m (-ζ) continuous_fst continuous_snd))).mul + (Complex.continuous_ofReal.comp ((continuous_testFunction F).comp continuous_snd)) + apply continuousOn_univ.mp + exact continuousOn_integral_of_compact_support F.2.2 hc.continuousOn + (fun p x _ hx => by simp only [image_eq_zero_of_notMem_tsupport hx, + Complex.ofReal_zero, mul_zero]) + +theorem integrable_inv_dispersion_pow_four_massShell {m : ℝ} (hm : 0 < m) : + Integrable (fun p : EuclideanSpace ℝ (Fin 3) => (dispersion m p ^ 4)⁻¹) + (oneParticleMeasure m) := + ((integrable_inv_dispersion_pow_four hm.ne').smul_measure + (c := (Real.toNNReal (1 / (2 * (2 * Real.pi) ^ 3 * m)) : ENNReal)) (by simp)).mono_measure + (oneParticleMeasure_le_volume hm) + +theorem maxCoordDerivNorm_nonneg (F : RealTestFunction) (N : ℕ) : + 0 ≤ maxCoordDerivNorm F N := + (integral_nonneg fun x => abs_nonneg (((dirDeriv (coordDir 0))^[N] F).1 x)).trans + (le_maxCoordDerivNorm F N 0) + +theorem memLp_wedgeWave_mul_I {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) {θ : ℝ} (hθ₀ : 0 ≤ θ) (hθπ : θ ≤ Real.pi) : + MemLp (wedgeWave m F ((θ : ℂ) * Complex.I)) 2 (oneParticleMeasure m) := by + have hc := continuous_wedgeWave_momentum m F ((θ : ℂ) * Complex.I) + rw [memLp_two_iff_integrable_sq_norm hc.aestronglyMeasurable] + apply ((integrable_inv_dispersion_pow_four_massShell hm).const_mul + (16 * maxCoordDerivNorm F 2 ^ 2)).mono' (hc.norm.pow 2).aestronglyMeasurable + exact Filter.Eventually.of_forall fun p => by + rw [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg _)] + calc + ‖wedgeWave m F ((θ : ℂ) * Complex.I) p‖ ^ 2 ≤ + ((2 / dispersion m p) ^ 2 * maxCoordDerivNorm F 2) ^ 2 := + pow_le_pow_left₀ (norm_nonneg _) (norm_wedgeWave_mul_I_le hm F hF 2 hθ₀ hθπ p) 2 + _ = (16 * maxCoordDerivNorm F 2 ^ 2) * (dispersion m p ^ 4)⁻¹ := by ring + +theorem wedgeWave_eq_imaginary_boost (m : ℝ) (F : RealTestFunction) (ζ : ℂ) + (p : EuclideanSpace ℝ (Fin 3)) : + wedgeWave m F ζ p = wedgeWave m F ((ζ.im : ℂ) * Complex.I) (shellBoost m ζ.re p) := by + simpa only [Complex.re_add_im] using + wedgeWave_add_ofReal m ζ.re F ((ζ.im : ℂ) * Complex.I) p + +theorem memLp_wedgeWave_closedStrip {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) {ζ : ℂ} (hζ : 0 ≤ ζ.im ∧ ζ.im ≤ Real.pi) : + MemLp (wedgeWave m F ζ) 2 (oneParticleMeasure m) := by + have he : wedgeWave m F ζ = + wedgeWave m F ((ζ.im : ℂ) * Complex.I) ∘ shellBoost m ζ.re := + funext (wedgeWave_eq_imaginary_boost m F ζ) + rw [he] + exact (memLp_wedgeWave_mul_I hm F hF hζ.1 hζ.2).comp_measurePreserving + (measurePreserving_shellBoost hm ζ.re) + +/-- Wedge wave L². -/ +noncomputable def wedgeWaveL2 {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) (ζ : ℂ) (hζ : 0 ≤ ζ.im ∧ ζ.im ≤ Real.pi) : + Lp ℂ 2 (oneParticleMeasure m) := + (memLp_wedgeWave_closedStrip hm F hF hζ).toLp (wedgeWave m F ζ) + +theorem wedgeWaveL2_ae {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) (ζ : ℂ) (hζ : 0 ≤ ζ.im ∧ ζ.im ≤ Real.pi) : + wedgeWaveL2 hm F hF ζ hζ =ᵐ[oneParticleMeasure m] wedgeWave m F ζ := + (memLp_wedgeWave_closedStrip hm F hF hζ).coeFn_toLp + +theorem wedgeWaveL2_zero {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) : + wedgeWaveL2 hm F hF 0 ⟨le_rfl, Real.pi_pos.le⟩ = oneParticleL2 hm F := by + apply Lp.ext + filter_upwards [wedgeWaveL2_ae hm F hF 0 ⟨le_rfl, Real.pi_pos.le⟩, + coeFn_oneParticleL2 hm F] with p hp hF + rw [hp, hF, wedgeWave_zero] + +/-- A bounded real-rapidity slab retains one common polynomial majorant. +This is the bound needed for local L2 continuity and holomorphy. -/ +theorem norm_wedgeWave_closedStrip_le {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) {ζ : ℂ} (hζ : 0 ≤ ζ.im ∧ ζ.im ≤ Real.pi) + {B : ℝ} (hB : |ζ.re| ≤ B) (p : EuclideanSpace ℝ (Fin 3)) : + ‖wedgeWave m F ζ p‖ ≤ + (2 * Real.exp B / dispersion m p) ^ 2 * maxCoordDerivNorm F 2 := by + have hE := dispersion_pos hm.ne' (shellBoost m ζ.re p) + have hω := dispersion_pos hm.ne' p + have he : Real.exp (-B) * dispersion m p ≤ dispersion m (shellBoost m ζ.re p) := by + have h := exp_neg_abs_mul_dispersion_le m (-ζ.re) p + simp only [abs_neg, neg_neg] at h + exact (mul_le_mul_of_nonneg_right (Real.exp_le_exp.mpr (neg_le_neg hB)) hω.le).trans h + have henergy : dispersion m p ≤ Real.exp B * dispersion m (shellBoost m ζ.re p) := by + calc + dispersion m p = Real.exp B * (Real.exp (-B) * dispersion m p) := by + rw [← mul_assoc, ← Real.exp_add, add_neg_cancel, Real.exp_zero, one_mul] + _ ≤ _ := mul_le_mul_of_nonneg_left he (Real.exp_pos _).le + have hratio : 2 / dispersion m (shellBoost m ζ.re p) ≤ + 2 * Real.exp B / dispersion m p := by + apply (div_le_div_iff₀ hE hω).mpr + nlinarith + rw [wedgeWave_eq_imaginary_boost] + exact (norm_wedgeWave_mul_I_le hm F hF 2 hζ.1 hζ.2 _).trans + (mul_le_mul_of_nonneg_right (pow_le_pow_left₀ (by positivity) hratio 2) + (maxCoordDerivNorm_nonneg F 2)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveMultiplierDomain.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveMultiplierDomain.lean new file mode 100644 index 0000000000..f8ce33cd50 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveMultiplierDomain.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveStripBound +public import LeanPool.VacuumBellSeparation.FreeField.BoundedStripUniqueness +public import LeanPool.VacuumBellSeparation.FreeField.RapidityFrequencyCutoff +public import LeanPool.VacuumBellSeparation.FreeField.PhysicalRapidityExponential + +/-! +# Full multiplier domain for original compact wedge waves + +Bounded frequency cutoffs allow the genuine Hilbert-valued three-lines theorem. +Taking their countable union identifies the actual Fourier representatives, +including the upper boundary. The resulting graph statement uses the maximal +physical exponential; its domain is not supplied as a hypothesis. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter +open scoped InnerProductSpace + +theorem wedgeWaveExtendedL2_ofReal {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) (t : ℝ) : + wedgeWaveExtendedL2 hm F hF t = oneParticleBoost hm (-t) (oneParticleL2 hm F) := by + have ht : (t : ℂ) ∈ closedRapidityStrip := ⟨by simp, by simpa using Real.pi_pos.le⟩ + rw [wedgeWaveExtendedL2, dite_eq_left ht, wedgeWaveL2_eq_boost_imaginary hm F hF t ht] + simp only [Complex.ofReal_re, Complex.ofReal_im, Complex.ofReal_zero, zero_mul, + wedgeWaveL2_zero] + rfl + +theorem rapidityCutoff_wedgeWave {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) (N : ℕ) {z : ℂ} (hz : z ∈ closedRapidityStrip) : + rapidityCutoff N (oneParticleRapidityFourier hm (wedgeWaveExtendedL2 hm F hF z)) = + rapidityCutoffEvolution N (oneParticleRapidityFourier hm (oneParticleL2 hm F)) z := by + let T := (rapidityCutoff N).comp (oneParticleRapidityFourier + hm).toContinuousLinearEquiv.toContinuousLinearMap + let ψ := oneParticleRapidityFourier hm (oneParticleL2 hm F) + let g : ℂ → RapidityL2 := fun w => + T (wedgeWaveExtendedL2 hm F hF w) - rapidityCutoffEvolution N ψ w + have hd : DiffContOnCl ℂ g openRapidityStrip := + (T.differentiable.comp_diffContOnCl (diffContOnCl_wedgeWaveExtendedL2 hm F hF)).sub + (differentiable_rapidityCutoffEvolution N ψ).diffContOnCl + obtain ⟨M, hM⟩ := exists_uniform_norm_wedgeWaveExtendedL2 hm F hF + have hb (w : ℂ) (hw₀ : 0 ≤ w.im) (hwπ : w.im ≤ Real.pi) : + ‖g w‖ ≤ M + Real.exp (2 * Real.pi ^ 2 * N) * ‖ψ‖ := by + have h₁ : ‖T (wedgeWaveExtendedL2 hm F hF w)‖ ≤ M := by + change ‖rapidityCutoff N + (oneParticleRapidityFourier hm (wedgeWaveExtendedL2 hm F hF w))‖ ≤ M + exact (norm_rapidityCutoff_apply_le N _).trans + ((oneParticleRapidityFourier hm).norm_map _ |>.le.trans (hM w ⟨hw₀, hwπ⟩)) + exact (norm_sub_le _ _).trans (add_le_add h₁ + (norm_rapidityCutoffEvolution_le N ψ hw₀ hwπ)) + have hzero (t : ℝ) : g t = 0 := by + dsimp [g, T, ψ] + rw [wedgeWaveExtendedL2_ofReal, + oneParticleRapidityFourier_boost, rapidityCutoffEvolution_ofReal, sub_self] + exact sub_eq_zero.mp + (eq_zero_on_horizontalClosedStrip_of_bounded_lower_zero Real.pi_pos g hd hb hzero hz.1 hz.2) + +theorem oneParticleRapidityFourier_wedgeWave_ae {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) {z : ℂ} (hz : z ∈ closedRapidityStrip) : + oneParticleRapidityFourier hm (wedgeWaveExtendedL2 hm F hF z) =ᵐ[rapidityMeasure] + fun ξ => Complex.exp (z * ((2 * Real.pi * ⟪e₁, ξ⟫_ℝ : ℝ) * Complex.I)) * + oneParticleRapidityFourier hm (oneParticleL2 hm F) ξ := by + have hN (N : ℕ) : ∀ᵐ ξ ∂rapidityMeasure, + rapidityFrequencyCutoff N ξ * + oneParticleRapidityFourier hm (wedgeWaveExtendedL2 hm F hF z) ξ = + rapidityFrequencyCutoff N ξ * + (Complex.exp (z * ((2 * Real.pi * ⟪e₁, ξ⟫_ℝ : ℝ) * Complex.I)) * + oneParticleRapidityFourier hm (oneParticleL2 hm F) ξ) := by + have he := rapidityCutoff_wedgeWave hm F hF N hz + filter_upwards [rapidityCutoff_ae N + (oneParticleRapidityFourier hm (wedgeWaveExtendedL2 hm F hF z)), + rapidityCutoffEvolution_ae N (oneParticleRapidityFourier hm (oneParticleL2 hm F)) z] + with ξ hc hevol + rw [he] at hc + exact hc.symm.trans hevol + filter_upwards [ae_all_iff.mpr hN] with ξ hξ + obtain ⟨N, hN⟩ := exists_nat_ge |⟪e₁, ξ⟫_ℝ| + simpa only [rapidityFrequencyCutoff, ite_eq_left hN, one_mul] using hξ N + +/-- Actual domain membership and exact upper boundary for every original compact +left-wedge test source, in the maximal physical half-power graph. -/ +theorem wedgeWave_upper_mem_physicalRapidityHalf_graph {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (hF : tsupport F.1 ⊆ leftWedge 0) : + (oneParticleL2 hm F, + wedgeWaveL2 hm F hF ((Real.pi : ℂ) * Complex.I) (by simp [Real.pi_pos.le])) ∈ + (physicalRapidityExponential hm (1 / 2)).graph := by + rw [physicalRapidityExponential_mem_graph] + have hz : ((Real.pi : ℂ) * Complex.I) ∈ closedRapidityStrip := by + simp [closedRapidityStrip, Real.pi_pos.le] + have h := oneParticleRapidityFourier_wedgeWave_ae hm F hF hz + simp only [wedgeWaveExtendedL2, dite_eq_left hz] at h + filter_upwards [h] with ξ hξ + rw [hξ] + congr 1 + rw [Complex.ofReal_exp] + congr 1 + unfold rapidityFrequencyExponent + push_cast + rw [mul_mul_mul_comm, Complex.I_mul_I] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveStripBound.lean b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveStripBound.lean new file mode 100644 index 0000000000..fef835a5b3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WedgeWaveStripBound.lean @@ -0,0 +1,80 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveHolomorphic + +/-! +# Uniform Hilbert bound on the complete closed rapidity strip + +Real shifts act by the actual isometric physical boost. The imaginary segment +is compact and the physical wave is strongly continuous there. Thus its Hilbert +norm is bounded uniformly even as the real part tends to either infinity. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Topology + +theorem wedgeWaveL2_eq_boost_imaginary {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) (ζ : ℂ) (hζ : ζ ∈ closedRapidityStrip) : + wedgeWaveL2 hm F hF ζ hζ = oneParticleBoostIsometry hm (-ζ.re) + (wedgeWaveL2 hm F hF ((ζ.im : ℂ) * Complex.I) (by simpa [closedRapidityStrip] using hζ)) := by + apply Lp.ext + have hre := (measurePreserving_shellBoost hm ζ.re).quasiMeasurePreserving.ae_eq_comp + (wedgeWaveL2_ae hm F hF ((ζ.im : ℂ) * Complex.I) (by simpa [closedRapidityStrip] using hζ)) + filter_upwards [wedgeWaveL2_ae hm F hF ζ hζ, + oneParticleBoostIsometry_ae hm (-ζ.re) + (wedgeWaveL2 hm F hF ((ζ.im : ℂ) * Complex.I) (by simpa [closedRapidityStrip] using hζ)), hre] + with p hp hboost himag + dsimp only [Function.comp_apply] at himag + rw [hp, hboost] + simp only [neg_neg, Function.comp_apply] + exact (wedgeWave_eq_imaginary_boost m F ζ p).trans himag.symm + +theorem continuousOn_wedgeWaveExtendedL2 {m : ℝ} (hm : 0 < m) (F : RealTestFunction) + (hF : tsupport F.1 ⊆ leftWedge 0) : + ContinuousOn (wedgeWaveExtendedL2 hm F hF) closedRapidityStrip := by + rw [continuousOn_iff_continuous_domRestrict] + convert continuous_wedgeWaveClosedStripL2 hm F hF using 1 + funext ζ + simp only [Set.domRestrict_apply, wedgeWaveExtendedL2, dite_eq_left ζ.2, + wedgeWaveClosedStripL2] + +theorem exists_uniform_norm_wedgeWaveExtendedL2 {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (hF : tsupport F.1 ⊆ leftWedge 0) : + ∃ M : ℝ, ∀ ζ ∈ closedRapidityStrip, ‖wedgeWaveExtendedL2 hm F hF ζ‖ ≤ M := by + let γ : ℝ → ℂ := fun θ => (θ : ℂ) * Complex.I + have hcγ : Continuous γ := Complex.continuous_ofReal.mul continuous_const + have hγ : Set.MapsTo γ (Set.Icc 0 Real.pi) closedRapidityStrip := by + intro θ hθ + simpa [γ, closedRapidityStrip] using hθ + have hc : ContinuousOn (fun θ => wedgeWaveExtendedL2 hm F hF (γ θ)) (Set.Icc 0 Real.pi) := + (continuousOn_wedgeWaveExtendedL2 hm F hF).comp hcγ.continuousOn hγ + obtain ⟨M, hM⟩ := isCompact_Icc.exists_bound_of_continuousOn hc + refine ⟨M, fun ζ hζ => ?_⟩ + have hi : γ ζ.im ∈ closedRapidityStrip := hγ hζ + have h := hM ζ.im hζ + simp only [wedgeWaveExtendedL2, dite_eq_left hi] at h + simp only [wedgeWaveExtendedL2, dite_eq_left hζ] + rw [wedgeWaveL2_eq_boost_imaginary hm F hF ζ hζ, + (oneParticleBoostIsometry hm (-ζ.re)).norm_map] + exact h + +theorem diffContOnCl_wedgeWaveExtendedL2 {m : ℝ} (hm : 0 < m) + (F : RealTestFunction) (hF : tsupport F.1 ⊆ leftWedge 0) : + DiffContOnCl ℂ (wedgeWaveExtendedL2 hm F hF) openRapidityStrip := by + refine ⟨differentiableOn_wedgeWaveExtendedL2 hm F hF, ?_⟩ + have he : closure openRapidityStrip = closedRapidityStrip := by + change closure (Complex.im ⁻¹' Set.Ioo 0 Real.pi) = Complex.im ⁻¹' Set.Icc 0 Real.pi + rw [Complex.closure_preimage_im, closure_Ioo Real.pi_pos.ne] + rw [he] + exact continuousOn_wedgeWaveExtendedL2 hm F hF + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluation.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluation.lean new file mode 100644 index 0000000000..2fa2a35641 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluation.lean @@ -0,0 +1,71 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationRegular +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationDiscs + +/-! +# Weighted evaluation of the original wave on the full physical shell + +The actual normalized-target estimate is transported back to physical +mass and extended by the genuine null discs. The same constant and +the exact manuscript exponential rate are preserved. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem smul_scaleBy {E : ℝ} (hE : E ≠ 0) (z : ComplexSpacetime) : + (E : ℂ) • scaleBy E z = z := by + have hEc : (E : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hE + apply Prod.ext + · change (E : ℂ) * (z.1 / (E : ℂ)) = z.1 + field_simp [hEc] + · funext j + change (E : ℂ) * (z.2 j / (E : ℂ)) = z.2 j + field_simp [hEc] + +theorem weightedSource_fullShell_evaluation + {c : ℝ} (hc : 0 < c) (hc2 : c < 1 / 2) : + ∃ C : ℝ, 0 < C ∧ + ∀ (m : ℝ) (hm : 0 < m) (T : ℝ) (_ : 0 < T) + (U : Set (EuclideanSpace ℝ (Fin 3))), U ⊆ Metric.ball 0 T → + ∀ u v : SourceTestSpace hm U, ∀ E : ℝ, m ≤ E → + ∀ z : ComplexSpacetime, z ∈ complexShell m → euclidSq z ≤ (2 * E) ^ 2 → + ‖complexSourceWave u.1 z + Complex.I * complexSourceWave v.1 z‖ ^ 2 ≤ + C / E ^ 2 * Real.exp (2 * (2048 / Real.sin (2 * Real.pi * c)) * T * E) * + ‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal + (v : SourceHilbert hm U))‖ ^ 2 := by + obtain ⟨C, hC, hregular⟩ := normalizedTarget_weightedSource_evaluation hc hc2 + refine ⟨C, hC, ?_⟩ + intro m hm T hT U hU u v E hmE z hz hsize + have hE : 0 < E := hm.trans_le hmE + have heq : m / E * E = m := div_mul_cancel₀ m hE.ne' + -- Rewrite while the mass-positivity proof is still quantified, so the + -- source carriers and their proof parameter change together. + have hreg := hregular (m / E) E hE + rw [heq] at hreg + specialize hreg hm T hT U hU + apply complexSourceWave_bound_of_normalizedTarget hm hmE (by positivity) u.1 v.1 ?_ hz hsize + intro w hw + have hb := hreg u v (scaleBy E w) hw + simp only [scaledComplexTestWave, smul_scaleBy hE.ne'] at hb + have hdiv : ‖complexSourceWave u.1 w + Complex.I * complexSourceWave v.1 w‖ ^ 2 ≤ + (C * Real.exp (2 * (2048 / Real.sin (2 * Real.pi * c)) * T * E) * + ‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal + (v : SourceHilbert hm U))‖ ^ 2) / E ^ 2 := + (le_div_iff₀ (sq_pos_of_pos hE)).mpr (by simpa only [mul_comm] using hb) + convert hdiv using 1 + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationContourAE.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationContourAE.lean new file mode 100644 index 0000000000..498fa2aff4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationContourAE.lean @@ -0,0 +1,61 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.AveragedWedgeContourAE +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationContourNorm + +/-! +# The extended contour bound under actual almost-everywhere geometry + +The compactly supported parameter probability need not satisfy the +containing-wedge estimate outside its support. Inner Bochner integrals +are therefore converted to nonnegative integrals only almost everywhere. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +theorem averaged_complexTestContour_lintegral_le_sourceWeight_ae + {A : Type*} [TopologicalSpace A] [MeasurableSpace A] [BorelSpace A] + (ν : Measure A) [IsProbabilityMeasure ν] + {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + (Λ : A → Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ a, IsLorentzMap (Λ a)) (hfuture : ∀ a, IsOrthochronousMap (Λ a)) + (hcont : ∀ x : Spacetime, Continuous fun a => Λ a x) + (hbound : ∀ᵐ a ∂ν, Real.sqrt 2 * spacetimeEuclideanOperatorNorm (Λ a).symm < ℓ) + {U : Set (EuclideanSpace ℝ (Fin 3))} {T : ℝ} (hT : 0 < T) + (hU : U ⊆ Metric.ball 0 T) (u v : SourceTestSpace hm U) + {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) : + (∫⁻ a, ∫⁻ p, ENNReal.ofReal + (complexTestContourIntegrand m (ℓ * T) (2 * Real.pi * c) (Λ a) u.1 v.1 p) + ∂oneParticleMeasure m ∂ν) ≤ + ENNReal.ofReal (‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal (v : SourceHilbert hm U))‖ ^ 2) := by + obtain ⟨hi, hb⟩ := averaged_complexTestContour_le_sourceWeight_ae ν hm ℓ Λ hΛ hfuture + hcont hbound hT hU u v hc hc2 + have hnonneg (a : A) : 0 ≤ ∫ p, + complexTestContourIntegrand m (ℓ * T) (2 * Real.pi * c) (Λ a) u.1 v.1 p + ∂oneParticleMeasure m := + integral_nonneg (complexTestContourIntegrand_nonneg _ _ _ _ _ _) + have h := ENNReal.ofReal_le_ofReal hb + rw [ofReal_integral_eq_lintegral_ofReal hi (Filter.Eventually.of_forall hnonneg)] at h + convert h using 1 + apply lintegral_congr_ae + filter_upwards [hbound] with a ha + have hin := integrable_complexTestContour hm (ℓ * T) (Λ a) (hΛ a) (hfuture a) + hT hU (doubleCone_subset_transformed_leftWedge (Λ a) hT ha) u v hc.le hc2 + exact (ofReal_integral_eq_lintegral_ofReal hin + (Filter.Eventually.of_forall + (complexTestContourIntegrand_nonneg _ _ _ _ _ _))).symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationContourNorm.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationContourNorm.lean new file mode 100644 index 0000000000..6f2e68cd94 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationContourNorm.lean @@ -0,0 +1,113 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.AveragedWedgeContour +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationMassScaling +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationScaling + +/-! +# The actual nonnegative averaged contour bound + +The already established Bochner integral estimate is converted only +after its genuine inner and outer integrability has been supplied. The +literal scaled contour and the E² mass-shell factor are then identified. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +theorem complexShellBoost_dilation (t : ℝ) {E : ℝ} (hE : 0 ≤ E) + (ζ : ℂ) (p : EuclideanSpace ℝ (Fin 3)) : + complexShellBoost (t * E) ζ (E • p) = (E : ℂ) • complexShellBoost t ζ p := by + apply Prod.ext + · simp only [complexShellBoost, dispersion_smul t hE, PiLp.smul_apply, + Complex.ofReal_mul, Prod.smul_fst, smul_eq_mul] + ring + · funext i + fin_cases i <;> norm_num [complexShellBoost, dispersion_smul t hE, + PiLp.smul_apply, Complex.ofReal_mul, Prod.smul_snd, Pi.smul_apply, smul_eq_mul, + Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_two] + ring + +/-- Scaled complex test contour integrand. -/ +noncomputable def scaledComplexTestContourIntegrand (t E L θ : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (u v : TimeZeroSource) + (p : EuclideanSpace ℝ (Fin 3)) : ℝ := + Real.exp (-2 * L * E * dispersion t p * Real.sin θ) * + ‖scaledComplexTestWave E u v (complexifiedSpacetimeMap Λ + (complexShellBoost t ((θ : ℂ) * Complex.I) p))‖ ^ 2 + +theorem complexTestContourIntegrand_dilation (t : ℝ) {E : ℝ} (hE : 0 < E) + (L θ : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) (u v : TimeZeroSource) + (p : EuclideanSpace ℝ (Fin 3)) : + complexTestContourIntegrand (t * E) L θ Λ u v (E • p) = + scaledComplexTestContourIntegrand t E L θ Λ u v p := by + unfold complexTestContourIntegrand scaledComplexTestContourIntegrand scaledComplexTestWave + rw [complexShellBoost_dilation t hE.le, map_smul, dispersion_smul t hE.le] + congr 2 + ring + +theorem averaged_complexTestContour_lintegral_le_sourceWeight + {A : Type*} [TopologicalSpace A] [MeasurableSpace A] [BorelSpace A] + (ν : Measure A) [IsProbabilityMeasure ν] + {m : ℝ} (hm : 0 < m) (ℓ : ℝ) + (Λ : A → Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ a, IsLorentzMap (Λ a)) (hfuture : ∀ a, IsOrthochronousMap (Λ a)) + (hcont : ∀ x : Spacetime, Continuous fun a => Λ a x) + (hbound : ∀ a, Real.sqrt 2 * spacetimeEuclideanOperatorNorm (Λ a).symm < ℓ) + {U : Set (EuclideanSpace ℝ (Fin 3))} {T : ℝ} (hT : 0 < T) + (hU : U ⊆ Metric.ball 0 T) (u v : SourceTestSpace hm U) + {c : ℝ} (hc : 0 < c) (hc2 : c ≤ 1 / 2) : + (∫⁻ a, ∫⁻ p, ENNReal.ofReal + (complexTestContourIntegrand m (ℓ * T) (2 * Real.pi * c) (Λ a) u.1 v.1 p) + ∂oneParticleMeasure m ∂ν) ≤ + ENNReal.ofReal (‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal (v : SourceHilbert hm U))‖ ^ 2) := by + obtain ⟨hi, hb⟩ := averaged_complexTestContour_le_sourceWeight ν hm ℓ Λ hΛ hfuture + hcont hbound hT hU u v hc hc2 + have hin (a : A) : Integrable + (complexTestContourIntegrand m (ℓ * T) (2 * Real.pi * c) (Λ a) u.1 v.1) + (oneParticleMeasure m) := + integrable_complexTestContour hm (ℓ * T) (Λ a) (hΛ a) (hfuture a) hT hU + (doubleCone_subset_transformed_leftWedge (Λ a) hT (hbound a)) u v hc.le hc2 + have hnonneg (a : A) : 0 ≤ ∫ p, + complexTestContourIntegrand m (ℓ * T) (2 * Real.pi * c) (Λ a) u.1 v.1 p + ∂oneParticleMeasure m := + integral_nonneg (complexTestContourIntegrand_nonneg _ _ _ _ _ _) + have h := ENNReal.ofReal_le_ofReal hb + rw [ofReal_integral_eq_lintegral_ofReal hi (Filter.Eventually.of_forall hnonneg)] at h + convert h using 1 + apply lintegral_congr + intro a + exact (ofReal_integral_eq_lintegral_ofReal (hin a) + (Filter.Eventually.of_forall + (complexTestContourIntegrand_nonneg _ _ _ _ _ _))).symm + +theorem averaged_scaledComplexTestContour_lintegral (t : ℝ) {E : ℝ} (hE : 0 < E) + {A : Type*} [MeasurableSpace A] (ν : Measure A) + (Λ : A → Spacetime ≃L[ℝ] Spacetime) (L θ : ℝ) (u v : TimeZeroSource) : + ENNReal.ofReal (E ^ 2) * (∫⁻ a, ∫⁻ p, + ENNReal.ofReal (scaledComplexTestContourIntegrand t E L θ (Λ a) u v p) + ∂oneParticleMeasure t ∂ν) = + ∫⁻ a, ∫⁻ p, ENNReal.ofReal + (complexTestContourIntegrand (t * E) L θ (Λ a) u v p) + ∂oneParticleMeasure (t * E) ∂ν := by + have h := averaged_lintegral_oneParticle_dilation ν t hE + (fun a p => ENNReal.ofReal (complexTestContourIntegrand (t * E) L θ (Λ a) u v p)) + (fun a => ENNReal.measurable_ofReal.comp + ((continuous_complexTestContourIntegrand (fun _ : Unit => Λ a) + (fun _ => continuous_const) (t * E) L θ u v).comp + ((continuous_const (y := ())).prodMk continuous_id)).measurable) + simpa only [complexTestContourIntegrand_dilation t hE] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationCutoff.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationCutoff.lean new file mode 100644 index 0000000000..41177012bb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationCutoff.lean @@ -0,0 +1,93 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationContourAE +public import LeanPool.VacuumBellSeparation.Shell.UniformContourSubmean + +/-! +# Removing the actual shell energy cutoff by the exact damping factor + +This comparison uses the physical cutoff omega <= 32/sin(theta). +All integrals are nonnegative extended integrals, so no finiteness is +assumed before the source-weight estimate is applied. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped ENNReal + +theorem cutoff_damping_bound {θ E L t : ℝ} (hθ : 0 < Real.sin θ) + (hE : 0 ≤ E) (hL : 0 ≤ L) {N : ℕ} + (D : Fin N → ControlledContourPatch θ) (u v : TimeZeroSource) + (y : (Fin N × (Fin 6 → ℝ)) × EuclideanSpace ℝ (Fin 3)) : + contourMixtureCutoffWeight t D + (fun z => ENNReal.ofReal (‖scaledComplexTestWave E u v z‖ ^ 2)) y ≤ + ENNReal.ofReal (Real.exp (2 * L * E * (32 / Real.sin θ) * Real.sin θ)) * + ENNReal.ofReal (scaledComplexTestContourIntegrand t E L θ + (contourMixtureFamily D y.1) u v y.2) := by + classical + by_cases hy : dispersion t y.2 ≤ 32 / Real.sin θ + · rw [contourMixtureCutoffWeight, Set.indicator_of_mem (s := {z : (Fin N × (Fin 6 + → ℝ)) × EuclideanSpace ℝ (Fin 3) | + dispersion t z.2 ≤ 32 / Real.sin θ}) hy] + rw [← ENNReal.ofReal_mul (Real.exp_nonneg _)] + apply ENNReal.ofReal_le_ofReal + unfold scaledComplexTestContourIntegrand + have hb : 2 * L * E * dispersion t y.2 * Real.sin θ ≤ + 2 * L * E * (32 / Real.sin θ) * Real.sin θ := + mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_left hy (by positivity)) hθ.le + have he : 1 ≤ Real.exp (2 * L * E * (32 / Real.sin θ) * Real.sin θ) * + Real.exp (-2 * L * E * dispersion t y.2 * Real.sin θ) := by + rw [← Real.exp_add, Real.one_le_exp_iff] + linarith + simpa only [contourMixturePoint, mul_assoc, one_mul] using + mul_le_mul_of_nonneg_right he + (sq_nonneg ‖scaledComplexTestWave E u v (contourMixturePoint t D y)‖) + · rw [contourMixtureCutoffWeight, Set.indicator_of_notMem (s := {z : (Fin N × (Fin 6 + → ℝ)) × EuclideanSpace ℝ (Fin 3) | + dispersion t z.2 ≤ 32 / Real.sin θ}) hy] + exact bot_le + +theorem contourMixture_cutoff_lintegral_le_damped {θ E L t : ℝ} + (hθ : 0 < Real.sin θ) (hE : 0 ≤ E) (hL : 0 ≤ L) {N : ℕ} + (D : Fin N → ControlledContourPatch θ) (u v : TimeZeroSource) : + (∫⁻ y, contourMixtureCutoffWeight t D + (fun z => ENNReal.ofReal (‖scaledComplexTestWave E u v z‖ ^ 2)) y + ∂(contourMixtureProbability D).prod (oneParticleMeasure t)) ≤ + ENNReal.ofReal (Real.exp (2 * L * E * (32 / Real.sin θ) * Real.sin θ)) * + ∫⁻ a, ∫⁻ p, ENNReal.ofReal (scaledComplexTestContourIntegrand t E L θ + (contourMixtureFamily D a) u v p) ∂oneParticleMeasure t + ∂contourMixtureProbability D := by + let _ : SigmaFinite (oneParticleMeasure t) := by unfold oneParticleMeasure; infer_instance + have hm : Measurable (fun y : (Fin N × (Fin 6 → ℝ)) × EuclideanSpace ℝ (Fin 3) => + ENNReal.ofReal (scaledComplexTestContourIntegrand t E L θ + (contourMixtureFamily D y.1) u v y.2)) := by + apply ENNReal.measurable_ofReal.comp + apply Continuous.measurable + unfold scaledComplexTestContourIntegrand + have hd := (continuous_dispersion t).comp + (continuous_snd : Continuous fun y : + (Fin N × (Fin 6 → ℝ)) × EuclideanSpace ℝ (Fin 3) => y.2) + have he : Continuous (fun y : (Fin N × (Fin 6 → ℝ)) × EuclideanSpace ℝ (Fin 3) => + Real.exp (-2 * L * E * dispersion t y.2 * Real.sin θ)) := by fun_prop + exact he.mul (((differentiable_scaledComplexTestWave E u v).continuous.comp + (continuous_contourMixturePoint t D)).norm.pow 2) + calc + _ ≤ ∫⁻ y, ENNReal.ofReal (Real.exp (2 * L * E * (32 / Real.sin θ) * Real.sin θ)) * + ENNReal.ofReal (scaledComplexTestContourIntegrand t E L θ + (contourMixtureFamily D y.1) u v y.2) + ∂(contourMixtureProbability D).prod (oneParticleMeasure t) := + lintegral_mono (cutoff_damping_bound hθ hE hL D u v) + _ = _ := by + rw [lintegral_const_mul _ hm, lintegral_prod _ hm.aemeasurable] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationDiscs.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationDiscs.lean new file mode 100644 index 0000000000..94ab8c9246 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationDiscs.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceCurve +public import LeanPool.VacuumBellSeparation.Shell.NullDiscs +public import Mathlib.Analysis.Complex.AbsMax + +/-! +# The actual null-disc step for weighted source evaluation + +The original compact-source Fourier wave is entire along the actual +affine null discs. The maximum modulus principle transfers any uniform +squared bound on the normalized regular target to every shell point +of Euclidean norm at most twice the energy, with no loss of constant. +The regular-target bound is an explicit hypothesis here; it is proved as +`normalizedTarget_weightedSource_evaluation` in `FreeField/WeightedShellEvaluationRegular.lean`. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Set Metric + +/-- Null disc derivative given by `(0, fun j => (8 * En : ℂ) * n j)`. -/ +noncomputable def nullDiscDerivative (En : ℝ) (n : Fin 3 → ℂ) : ComplexSpacetime := + (0, fun j => (8 * En : ℂ) * n j) + +theorem hasDerivAt_nullDisc (z : ComplexSpacetime) (En : ℝ) (n : Fin 3 → ℂ) (ζ : ℂ) : + HasDerivAt (nullDisc z En n) (nullDiscDerivative En n) ζ := by + apply HasDerivAt.prodMk + · exact hasDerivAt_const ζ z.1 + · apply hasDerivAt_pi.mpr + intro j + convert (((hasDerivAt_id ζ).const_mul (8 * En : ℂ)).mul_const (n j)).const_add (z.2 j) + using 1 <;> first | rfl | simp only [mul_one] + +theorem analyticOnNhd_complexSourceWave_nullDisc (u : TimeZeroSource) + (z : ComplexSpacetime) (En : ℝ) (n : Fin 3 → ℂ) : + AnalyticOnNhd ℂ (fun ζ => complexSourceWave u (nullDisc z En n ζ)) Set.univ := by + apply analyticOnNhd_complexSourceWave_curve u (nullDisc z En n) + (fun _ => nullDiscDerivative En n) + · unfold nullDisc + fun_prop + · exact continuous_const + · exact hasDerivAt_nullDisc z En n + +/-- Literal complexified compact test waves inherit the regular-patch +bound at all requested shell points. The source and all cross terms +are unchanged, and the squared estimate has the same constant. -/ +theorem complexSourceWave_bound_of_normalizedTarget + {m En B : ℝ} (hm : 0 < m) (hEn : m ≤ En) (hB : 0 ≤ B) + (u v : TimeZeroSource) + (hregular : ∀ w : ComplexSpacetime, (m / En, scaleBy En w) ∈ normalizedTarget → + ‖complexSourceWave u w + Complex.I * complexSourceWave v w‖ ^ 2 ≤ B) + {z : ComplexSpacetime} (hz : z ∈ complexShell m) (hsize : euclidSq z ≤ (2 * En) ^ 2) : + ‖complexSourceWave u z + Complex.I * complexSourceWave v z‖ ^ 2 ≤ B := by + obtain ⟨n, hzero, _, hboundary⟩ := exists_null_disc hm hEn hz hsize + let f : ℂ → ℂ := fun ζ => complexSourceWave u (nullDisc z En n ζ) + + Complex.I * complexSourceWave v (nullDisc z En n ζ) + have hfu := analyticOnNhd_complexSourceWave_nullDisc u z En n + have hfv := analyticOnNhd_complexSourceWave_nullDisc v z En n + have hf : Differentiable ℂ f := by + intro ζ + exact (hfu ζ (mem_univ ζ)).differentiableAt.add + ((hfv ζ (mem_univ ζ)).differentiableAt.const_mul Complex.I) + have hb : ∀ ζ ∈ frontier (ball (0 : ℂ) 1), ‖f ζ‖ ≤ Real.sqrt B := by + intro ζ hζ + have hnorm : ‖ζ‖ = 1 := by + simpa only [frontier_ball _ one_ne_zero, mem_sphere, dist_zero_right] using hζ + have hh := hregular (nullDisc z En n ζ) (hboundary ζ hnorm).2.2.2.2 + exact (Real.le_sqrt (norm_nonneg _) hB).2 hh + have h0 : ‖f 0‖ ≤ Real.sqrt B := + Complex.norm_le_of_forall_mem_frontier_norm_le isBounded_ball hf.diffContOnCl hb + (subset_closure (by simp : (0 : ℂ) ∈ ball 0 1)) + have hsq := pow_le_pow_left₀ (norm_nonneg (f 0)) h0 2 + rw [Real.sq_sqrt hB] at hsq + simpa only [f, hzero] using hsq + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationHolomorphic.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationHolomorphic.lean new file mode 100644 index 0000000000..bd6a89e58b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationHolomorphic.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceCurve +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeCoordinates + +/-! +# Actual multivariable holomorphy of compact-source evaluation + +The compact-support differentiation argument is the Fréchet version +of SpatialTestParametricIntegral. It constructs the derivative of the +literal Fourier integral and then restricts the resulting holomorphic +wave to each actual shell chart. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter + +theorem hasFDerivAt_spatialTest_integral + {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [ProperSpace E] + (f : SpatialTestFunction) + (K : E → EuclideanSpace ℝ (Fin 3) → ℂ) + (D : E → EuclideanSpace ℝ (Fin 3) → E →L[ℂ] ℂ) + (hK : Continuous (fun q : E × EuclideanSpace ℝ (Fin 3) => K q.1 q.2)) + (hD : Continuous (fun q : E × EuclideanSpace ℝ (Fin 3) => D q.1 q.2)) + (hd : ∀ z x, HasFDerivAt (fun w => K w x) (D z x) z) (z₀ : E) : + HasFDerivAt (fun z => ∫ x, K z x * (f.1 x : ℂ)) + (∫ x, (f.1 x : ℂ) • D z₀ x) z₀ := by + have hint (z : E) : Integrable (fun x => K z x * (f.1 x : ℂ)) := + ((hK.comp (continuous_const.prodMk continuous_id)).mul + (Complex.continuous_ofReal.comp f.2.1.continuous)).integrable_of_hasCompactSupport + ((f.2.2.comp_left Complex.ofReal_zero).mul_left) + have hdf : Continuous (fun x => (f.1 x : ℂ) • D z₀ x) := + (Complex.continuous_ofReal.comp f.2.1.continuous).smul + (hD.comp (continuous_const.prodMk continuous_id)) + obtain ⟨C, hC⟩ := ((isCompact_closedBall z₀ 1).prod f.2.2).exists_bound_of_continuousOn + hD.continuousOn + have hb (x : EuclideanSpace ℝ (Fin 3)) (z : E) (hz : z ∈ Metric.ball z₀ 1) : + ‖(f.1 x : ℂ) • D z x‖ ≤ C * |f.1 x| := by + by_cases hx : x ∈ tsupport f.1 + · rw [norm_smul, Complex.norm_real, Real.norm_eq_abs, mul_comm] + exact mul_le_mul_of_nonneg_right + (hC (z, x) ⟨Metric.ball_subset_closedBall hz, hx⟩) (abs_nonneg _) + · rw [norm_smul] + simp only [image_eq_zero_of_notMem_tsupport hx, Complex.ofReal_zero, + norm_zero, zero_mul, abs_zero, mul_zero, le_refl] + exact hasFDerivAt_integral_of_dominated_of_fderiv_le + (F := fun z x => K z x * (f.1 x : ℂ)) + (F' := fun z x => (f.1 x : ℂ) • D z x) (bound := fun x => C * |f.1 x|) + (Metric.ball_mem_nhds z₀ (by norm_num)) + (Eventually.of_forall fun z => (hint z).aestronglyMeasurable) + (hint z₀) hdf.aestronglyMeasurable (Eventually.of_forall hb) + ((f.2.1.continuous.integrable_of_hasCompactSupport f.2.2).abs.const_mul C) + (Eventually.of_forall fun x z _ => (hd z x).mul_const (f.1 x : ℂ)) + +theorem continuous_complexSpatialPhase_map : + Continuous (complexSpatialPhase : EuclideanSpace ℝ (Fin 3) → + ComplexSpacetime →L[ℂ] ℂ) := by + unfold complexSpatialPhase + fun_prop + +theorem hasFDerivAt_complexSpatialFourier (f : SpatialTestFunction) (z : ComplexSpacetime) : + HasFDerivAt (fun w : ComplexSpacetime => complexSpatialFourier f w.2) + (∫ x : EuclideanSpace ℝ (Fin 3), (f.1 x : ℂ) • + ((Complex.exp ((-Complex.I) * complexSpatialPhase x z) * (-Complex.I)) • + complexSpatialPhase x)) z := by + have h := hasFDerivAt_spatialTest_integral f + (fun w x => Complex.exp ((-Complex.I) * complexSpatialPhase x w)) + (fun w x => (Complex.exp ((-Complex.I) * complexSpatialPhase x w) * (-Complex.I)) • + complexSpatialPhase x) + (by simp only [complexSpatialPhase_apply, spatialDot]; fun_prop) + (by + have hp := continuous_complexSpatialPhase_map.comp + (continuous_snd : Continuous + (Prod.snd : ComplexSpacetime × EuclideanSpace ℝ (Fin 3) → _)) + have hc : Continuous (fun q : ComplexSpacetime × EuclideanSpace ℝ (Fin 3) => + Complex.exp (-Complex.I * complexSpatialPhase q.2 q.1) * (-Complex.I)) := by + simp only [complexSpatialPhase_apply, spatialDot] + fun_prop + simpa only [Function.comp_def, Pi.smul_def] using! hc.smul hp) + (fun w x => by + convert ((complexSpatialPhase x).hasFDerivAt.const_mul (-Complex.I)).cexp using 1 + simp only [smul_smul]) z + simpa only [complexSpatialFourier, complexSpatialPhase_apply, neg_mul] using h + +theorem differentiable_complexSourceWave (u : TimeZeroSource) : + Differentiable ℂ (complexSourceWave u) := by + have hf : Differentiable ℂ (fun z : ComplexSpacetime => complexSpatialFourier u.1 z.2) := + fun z => (hasFDerivAt_complexSpatialFourier u.1 z).differentiableAt + have hg : Differentiable ℂ (fun z : ComplexSpacetime => complexSpatialFourier u.2 z.2) := + fun z => (hasFDerivAt_complexSpatialFourier u.2 z).differentiableAt + exact hf.add (((ContinuousLinearMap.fst ℂ ℂ (Fin 3 → ℂ)).differentiable.const_mul + Complex.I).mul hg) + +theorem differentiableAt_complexSourceWave_shellChart {m : ℝ} + (u : TimeZeroSource) (Λ : Spacetime ≃L[ℝ] Spacetime) {w : ShellEuclideanDomain} + (hw : w ∈ euclideanShellChartDomain m) : + DifferentiableAt ℂ (fun v => complexSourceWave u + (lorentzComplexShellChart m Λ (shellEuclideanCoordinates v))) w := + (differentiable_complexSourceWave u _).comp w + ((differentiableAt_lorentzComplexShellChart Λ hw).comp w + shellEuclideanCoordinates.differentiableAt) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationMassScaling.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationMassScaling.lean new file mode 100644 index 0000000000..704909a31d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationMassScaling.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.Dilation +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourDensity +public import Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar + +/-! +# The actual mass-shell E² scaling + +The original density is retained, including its zero value at the +zero-energy point when the normalized mass is zero. Positive dilation +of the real three-dimensional momentum volume and the exact reciprocal +dispersion scaling give the mass-shell factor E². All integrals are +nonnegative extended integrals, so no finiteness is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +theorem oneParticleWeight_dilation (m : ℝ) {E : ℝ} (hE : 0 < E) + (p : EuclideanSpace ℝ (Fin 3)) : + (oneParticleWeight (m * E) (E • p) : ℝ≥0∞) = + ENNReal.ofReal E⁻¹ * (oneParticleWeight m p : ℝ≥0∞) := by + rw [oneParticleWeight_ennreal, oneParticleWeight_ennreal, + dispersion_smul m hE.le] + have hreal : 1 / (2 * (2 * Real.pi) ^ 3 * (E * dispersion m p)) = + E⁻¹ * (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p)) := by + simp only [div_eq_mul_inv, mul_inv_rev] + ring + rw [hreal, ENNReal.ofReal_mul (inv_nonneg.mpr hE.le)] + +theorem lintegral_oneParticle_dilation (m : ℝ) {E : ℝ} (hE : 0 < E) + (f : EuclideanSpace ℝ (Fin 3) → ℝ≥0∞) (hf : Measurable f) : + ENNReal.ofReal (E ^ 2) * + (∫⁻ p, f (E • p) ∂oneParticleMeasure m) = + ∫⁻ p, f p ∂oneParticleMeasure (m * E) := by + have hw (t : ℝ) : Measurable (fun p : EuclideanSpace ℝ (Fin 3) => + (oneParticleWeight t p : ℝ≥0∞)) := + (measurable_oneParticleWeight_all_mass t).coe_nnreal_ennreal + have hdil : Measurable (fun p : EuclideanSpace ℝ (Fin 3) => E • p) := + measurable_const_smul E + have hcov : (∫⁻ p : EuclideanSpace ℝ (Fin 3), + (oneParticleWeight (m * E) (E • p) : ℝ≥0∞) * f (E • p)) = + ENNReal.ofReal ((E ^ 3)⁻¹) * + (∫⁻ p : EuclideanSpace ℝ (Fin 3), (oneParticleWeight (m * E) p : ℝ≥0∞) * f p) := by + calc + _ = ∫⁻ p : EuclideanSpace ℝ (Fin 3), + (oneParticleWeight (m * E) p : ℝ≥0∞) * f p + ∂Measure.map (fun p : EuclideanSpace ℝ (Fin 3) => E • p) volume := by + simpa only [Pi.mul_apply] using + (lintegral_map (μ := volume) ((hw (m * E)).mul hf) hdil).symm + _ = _ := by + rw [Measure.map_addHaar_smul volume hE.ne', lintegral_smul_measure, + finrank_momentum, abs_of_pos (inv_pos.mpr (pow_pos hE 3)), smul_eq_mul] + simp_rw [oneParticleWeight_dilation m hE, mul_assoc] at hcov + rw [lintegral_const_mul' _ _ ENNReal.ofReal_ne_top] at hcov + have hleft : ENNReal.ofReal (E ^ 3) * ENNReal.ofReal E⁻¹ = ENNReal.ofReal (E ^ 2) := by + rw [← ENNReal.ofReal_mul (pow_nonneg hE.le 3)] + congr 1 + rw [show E ^ 3 = E ^ 2 * E by ring, mul_assoc, mul_inv_cancel₀ hE.ne', mul_one] + have hright : ENNReal.ofReal (E ^ 3) * ENNReal.ofReal ((E ^ 3)⁻¹) = 1 := by + rw [← ENNReal.ofReal_mul (pow_nonneg hE.le 3), + mul_inv_cancel₀ (pow_ne_zero 3 hE.ne'), ENNReal.ofReal_one] + have h := congrArg (fun x : ℝ≥0∞ => ENNReal.ofReal (E ^ 3) * x) hcov + rw [← mul_assoc, hleft, ← mul_assoc, hright, one_mul] at h + have hwm : (∫⁻ p, f (E • p) ∂oneParticleMeasure m) = + ∫⁻ p : EuclideanSpace ℝ (Fin 3), (oneParticleWeight m p : ℝ≥0∞) * f (E • p) := by + simpa only [oneParticleMeasure, Function.comp_def, Pi.mul_apply] using + lintegral_withDensity_eq_lintegral_mul volume (hw m) (hf.comp hdil) + have hwme : (∫⁻ p, f p ∂oneParticleMeasure (m * E)) = + ∫⁻ p : EuclideanSpace ℝ (Fin 3), (oneParticleWeight (m * E) p : ℝ≥0∞) * f p := by + simpa only [oneParticleMeasure, Pi.mul_apply] using + lintegral_withDensity_eq_lintegral_mul volume (hw (m * E)) hf + rw [hwm, hwme] + exact h + +/-- The physical scaling survives averaging over any actual parameter +measure; no product-measure finiteness is needed for this iterated form. -/ +theorem averaged_lintegral_oneParticle_dilation {A : Type*} [MeasurableSpace A] + (ν : Measure A) (m : ℝ) {E : ℝ} (hE : 0 < E) + (f : A → EuclideanSpace ℝ (Fin 3) → ℝ≥0∞) + (hf : ∀ a, Measurable (f a)) : + ENNReal.ofReal (E ^ 2) * + (∫⁻ a, ∫⁻ p, f a (E • p) ∂oneParticleMeasure m ∂ν) = + ∫⁻ a, ∫⁻ p, f a p ∂oneParticleMeasure (m * E) ∂ν := by + rw [← lintegral_const_mul' _ _ ENNReal.ofReal_ne_top] + apply lintegral_congr + intro a + exact lintegral_oneParticle_dilation m hE (f a) (hf a) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationMeasure.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationMeasure.lean new file mode 100644 index 0000000000..488b603ef3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationMeasure.lean @@ -0,0 +1,100 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationSubmean +public import LeanPool.VacuumBellSeparation.Shell.InducedRegularShellVolume + +/-! +# From actual local induced volume to a shell-measure evaluation bound + +The regular-shell measure and the literal source wave are fixed. A +quantitative lower bound for another actual measure on a specified +patch is an explicit geometric premise. No final contour lower bound +is assumed in the definition of a measure or a source space. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Metric Set +open scoped ENNReal + +/-- Complex test shell wave given by `complexSourceWave u z.1 + Complex.I * complexSourceWave v +z.1`. -/ +noncomputable def complexTestShellWave (m : ℝ) (u v : TimeZeroSource) + (z : complexShell m) : ℂ := complexSourceWave u z.1 + Complex.I * complexSourceWave v z.1 + +theorem continuous_complexTestShellWave (m : ℝ) (u v : TimeZeroSource) : + Continuous (complexTestShellWave m u v) := + ((differentiable_complexSourceWave u).continuous.comp continuous_subtype_val).add + (((differentiable_complexSourceWave v).continuous.comp continuous_subtype_val).const_mul + Complex.I) + +theorem complexTestShellChartWave_patch_submean {m R d : ℝ} + (u v : TimeZeroSource) (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (c : ShellEuclideanDomain) (hR : 0 < R) + (hsub : ball c (2 * R) ⊆ euclideanShellChartDomain m) + (hJ : ∀ w ∈ ball c (2 * R), d ≤ inducedShellChartDensity m Λ w) + {S : Set (complexShell m)} (hS : MeasurableSet S) + (hpatch : S ⊆ inducedShellPatch m Λ) + (himage : ∀ w ∈ ball c (2 * R), shellPatchPoint m Λ hΛ w ∈ S) : + ENNReal.ofReal d * (ENNReal.ofReal (‖complexTestShellChartWave u v m Λ c‖ ^ 2) * + volume (ball (0 : ℂ) R) ^ 3) ≤ + ∫⁻ z in S, ENNReal.ofReal (‖complexTestShellWave m u v z‖ ^ 2) + ∂inducedRegularShellVolume m := by + let g : complexShell m → ℝ≥0∞ := fun z => ENNReal.ofReal (‖complexTestShellWave m u v z‖ ^ 2) + have hg : Measurable g := ENNReal.measurable_ofReal.comp + ((continuous_complexTestShellWave m u v).measurable.norm.pow_const 2) + have hrestrict : (inducedRegularShellVolume m).restrict S = + (inducedShellPatchVolume m Λ hΛ).restrict S := by + rw [← inducedRegularShellVolume_restrict_chart m Λ hΛ, + Measure.restrict_restrict hS, inter_eq_left.mpr hpatch] + have hmap : (∫⁻ z in S, g z ∂inducedShellPatchVolume m Λ hΛ) = + ∫⁻ w, S.indicator g (shellPatchPoint m Λ hΛ w) ∂inducedShellCoordinateVolume m Λ := by + rw [← lintegral_indicator hS g, inducedShellPatchVolume] + exact lintegral_map' (hg.indicator hS).aemeasurable + (aemeasurable_shellPatchPoint m Λ hΛ) + calc + _ ≤ ∫⁻ w in ball c (2 * R), + ENNReal.ofReal (‖complexTestShellChartWave u v m Λ w‖ ^ 2) + ∂inducedShellCoordinateVolume m Λ := + complexTestShellChartWave_induced_submean u v Λ c hR hsub hJ + _ = ∫⁻ w in ball c (2 * R), S.indicator g (shellPatchPoint m Λ hΛ w) + ∂inducedShellCoordinateVolume m Λ := by + apply setLIntegral_congr_fun measurableSet_ball + intro w hw + dsimp only + rw [indicator_of_mem (himage w hw)] + rfl + _ ≤ ∫⁻ w, S.indicator g (shellPatchPoint m Λ hΛ w) + ∂inducedShellCoordinateVolume m Λ := + lintegral_mono' Measure.restrict_le_self le_rfl + _ = ∫⁻ z in S, g z ∂inducedShellPatchVolume m Λ hΛ := hmap.symm + _ = _ := by rw [hrestrict] + +theorem complexTestShellWave_measure_bound {m R d δ : ℝ} + (u v : TimeZeroSource) (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (c : ShellEuclideanDomain) (hR : 0 < R) + (hsub : ball c (2 * R) ⊆ euclideanShellChartDomain m) + (hJ : ∀ w ∈ ball c (2 * R), d ≤ inducedShellChartDensity m Λ w) + {S : Set (complexShell m)} (hS : MeasurableSet S) + (hpatch : S ⊆ inducedShellPatch m Λ) + (himage : ∀ w ∈ ball c (2 * R), shellPatchPoint m Λ hΛ w ∈ S) + (ν : Measure (complexShell m)) + (hlower : ENNReal.ofReal δ • (inducedRegularShellVolume m).restrict S ≤ ν) : + ENNReal.ofReal δ * (ENNReal.ofReal d * + (ENNReal.ofReal (‖complexTestShellChartWave u v m Λ c‖ ^ 2) * + volume (ball (0 : ℂ) R) ^ 3)) ≤ + ∫⁻ z, ENNReal.ofReal (‖complexTestShellWave m u v z‖ ^ 2) ∂ν := by + apply (_root_.mul_le_mul_right + (complexTestShellChartWave_patch_submean u v Λ hΛ c hR hsub hJ hS hpatch himage) _).trans + rw [← smul_eq_mul, ← lintegral_smul_measure] + exact lintegral_mono' hlower le_rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationRegular.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationRegular.lean new file mode 100644 index 0000000000..bf5c6ad49d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationRegular.lean @@ -0,0 +1,106 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationCutoff + +/-! +# The actual weighted source evaluation on the normalized regular target + +The constant depends only on the modular exponent. The geometric +domination, chart bounds, contour probability, cutoff comparison and +physical mass scaling are all discharged. The wave is the literal +complexified compact-source Fourier wave, retaining its cross terms. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +theorem modularAngle_sin_pos {c : ℝ} (hc : 0 < c) (hc2 : c < 1 / 2) : + 0 < Real.sin (2 * Real.pi * c) := + Real.sin_pos_of_pos_of_lt_pi (by positivity) + (by nlinarith [Real.pi_pos]) + +theorem normalizedTarget_weightedSource_evaluation + {c : ℝ} (hc : 0 < c) (hc2 : c < 1 / 2) : + ∃ C : ℝ, 0 < C ∧ + ∀ (t E : ℝ) (_ : 0 < E) (hm : 0 < t * E) + (T : ℝ) (_ : 0 < T) (U : Set (EuclideanSpace ℝ (Fin 3))), + U ⊆ Metric.ball 0 T → ∀ u v : SourceTestSpace hm U, + ∀ z : ComplexSpacetime, (t, z) ∈ normalizedTarget → + E ^ 2 * ‖scaledComplexTestWave E u.1 v.1 z‖ ^ 2 ≤ + C * Real.exp (2 * (2048 / Real.sin (2 * Real.pi * c)) * T * E) * + ‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal + (v : SourceHilbert hm U))‖ ^ 2 := by + have hs := modularAngle_sin_pos hc hc2 + obtain ⟨N, hN, D, hp, C, hC, hCt, hsub⟩ := normalizedTarget_uniform_contour_submean hs + let _ : IsProbabilityMeasure (contourMixtureProbability D) := hp + refine ⟨C.toReal, ENNReal.toReal_pos hC.ne' hCt.ne, ?_⟩ + intro t E hE hm T hT U hU u v z hz + let ℓ : ℝ := 64 / Real.sin (2 * Real.pi * c) + have hℓ : 0 < ℓ := div_pos (by norm_num) hs + have hgeo : ∀ᵐ a ∂contourMixtureProbability D, + Real.sqrt 2 * spacetimeEuclideanOperatorNorm (contourMixtureFamily D a).symm < ℓ := by + filter_upwards [contourMixtureProbability_ae_norm_bounds D] with a ha + have hsqrt : Real.sqrt 2 < 2 := by + nlinarith [Real.sq_sqrt (show (0 : ℝ) ≤ 2 by norm_num), Real.sqrt_nonneg 2] + calc + _ < Real.sqrt 2 * (32 / Real.sin (2 * Real.pi * c)) := + mul_lt_mul_of_pos_left ha.2 (Real.sqrt_pos.mpr (by norm_num)) + _ < 2 * (32 / Real.sin (2 * Real.pi * c)) := + mul_lt_mul_of_pos_right hsqrt (div_pos (by norm_num) hs) + _ = ℓ := by dsimp [ℓ]; ring + have hsource := averaged_complexTestContour_lintegral_le_sourceWeight_ae + (contourMixtureProbability D) hm ℓ (contourMixtureFamily D) + (fun a => (contourMixtureFamily_isProper D a).1) + (contourMixtureFamily_isOrthochronous D) + (continuous_contourMixtureFamily_apply D) hgeo hT hU u v hc hc2.le + have hscale := averaged_scaledComplexTestContour_lintegral t hE + (contourMixtureProbability D) (contourMixtureFamily D) (ℓ * T) + (2 * Real.pi * c) u.1 v.1 + have hsub' := hsub t z hz (scaledComplexTestWave E u.1 v.1) + (differentiable_scaledComplexTestWave E u.1 v.1) + have hcut := contourMixture_cutoff_lintegral_le_damped hs hE.le + (mul_pos hℓ hT).le D u.1 v.1 (t := t) + have hexp : 2 * (ℓ * T) * E * (32 / Real.sin (2 * Real.pi * c)) * + Real.sin (2 * Real.pi * c) = + 2 * (2048 / Real.sin (2 * Real.pi * c)) * T * E := by + dsimp [ℓ] + field_simp [hs.ne'] + ring + rw [hexp] at hcut + have hb := hsub'.trans (_root_.mul_le_mul_right hcut C) + have hb' := _root_.mul_le_mul_right hb (ENNReal.ofReal (E ^ 2)) + have hfinal : ENNReal.ofReal (E ^ 2) * + ENNReal.ofReal (‖scaledComplexTestWave E u.1 v.1 z‖ ^ 2) ≤ + C * ENNReal.ofReal (Real.exp (2 * (2048 / Real.sin (2 * Real.pi * c)) * T * E)) * + ENNReal.ofReal (‖sourceModularWeight hm U c + (Gaussian.HilbertComplexification.ofReal (u : SourceHilbert hm U) + + Complex.I • Gaussian.HilbertComplexification.ofReal + (v : SourceHilbert hm U))‖ ^ 2) := by + calc + _ ≤ (C * ENNReal.ofReal (Real.exp + (2 * (2048 / Real.sin (2 * Real.pi * c)) * T * E))) * + (ENNReal.ofReal (E ^ 2) * ∫⁻ a, ∫⁻ p, + ENNReal.ofReal (scaledComplexTestContourIntegrand t E (ℓ * T) + (2 * Real.pi * c) (contourMixtureFamily D a) u.1 v.1 p) + ∂oneParticleMeasure t ∂contourMixtureProbability D) := by + simpa only [mul_assoc, mul_comm, mul_left_comm] using hb' + _ ≤ _ := _root_.mul_le_mul_right (hscale.trans_le hsource) _ + rw [← ENNReal.ofReal_mul (sq_nonneg E)] at hfinal + have hCof : ENNReal.ofReal C.toReal = C := ENNReal.ofReal_toReal hCt.ne + rw [← hCof, ← ENNReal.ofReal_mul ENNReal.toReal_nonneg, + ← ENNReal.ofReal_mul (by positivity)] at hfinal + exact (ENNReal.ofReal_le_ofReal_iff (by positivity)).mp hfinal + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationScaling.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationScaling.lean new file mode 100644 index 0000000000..2d618eeeec --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationScaling.lean @@ -0,0 +1,68 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.HolomorphicInducedMeasureSubmean + +/-! +# Literal scaled source waves on the normalized shell + +The test functions are unchanged. Scaling acts on the actual complex +four-vector before evaluation, so all u/i v cross terms are retained. +The chart-measure estimate therefore applies at normalized mass m/E +without replacing the source by a surrogate kernel. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Metric Set +open scoped ENNReal + +/-- Scaled complex test wave given by `complexSourceWave u ((E : ℂ) • z) + Complex.I * +complexSourceWave v ((E : ℂ) • z)`. -/ +noncomputable def scaledComplexTestWave (E : ℝ) (u v : TimeZeroSource) + (z : ComplexSpacetime) : ℂ := + complexSourceWave u ((E : ℂ) • z) + Complex.I * complexSourceWave v ((E : ℂ) • z) + +theorem differentiable_scaledComplexTestWave (E : ℝ) (u v : TimeZeroSource) : + Differentiable ℂ (scaledComplexTestWave E u v) := by + have hs : Differentiable ℂ (fun z : ComplexSpacetime => (E : ℂ) • z) := + differentiable_id.const_smul (E : ℂ) + exact ((differentiable_complexSourceWave u).comp hs).add + (((differentiable_complexSourceWave v).comp hs).const_mul Complex.I) + +theorem scaledComplexTestWave_measure_submean {t E R d δ : ℝ} + (u v : TimeZeroSource) (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (c : ShellEuclideanDomain) (hR : 0 < R) + (hsub : ball c (2 * R) ⊆ euclideanShellChartDomain t) + (hJ : ∀ w ∈ ball c (2 * R), d ≤ inducedShellChartDensity t Λ w) + {S : Set (complexShell t)} (hS : MeasurableSet S) + (hpatch : S ⊆ inducedShellPatch t Λ) + (himage : ∀ w ∈ ball c (2 * R), shellPatchPoint t Λ hΛ w ∈ S) + (ν : Measure (complexShell t)) + (hlower : ENNReal.ofReal δ • (inducedRegularShellVolume t).restrict S ≤ ν) : + ENNReal.ofReal δ * (ENNReal.ofReal d * + (ENNReal.ofReal (‖scaledComplexTestWave E u v + (lorentzComplexShellChart t Λ (shellEuclideanCoordinates c))‖ ^ 2) * + volume (ball (0 : ℂ) R) ^ 3)) ≤ + ∫⁻ z : complexShell t, ENNReal.ofReal (‖scaledComplexTestWave E u v z.1‖ ^ 2) ∂ν := by + apply holomorphicShellWave_measure_submean + (fun z : complexShell t => scaledComplexTestWave E u v z.1) + (((differentiable_scaledComplexTestWave E u v).continuous.comp + continuous_subtype_val).measurable) Λ hΛ ?_ c hR hsub hJ hS hpatch himage ν hlower + intro w hw + exact (differentiable_scaledComplexTestWave E u v _).comp w + ((differentiableAt_lorentzComplexShellChart Λ hw).comp w + shellEuclideanCoordinates.differentiableAt) + +theorem scaledComplexTestWave_at_one (u v : TimeZeroSource) (z : ComplexSpacetime) : + scaledComplexTestWave 1 u v z = complexSourceWave u z + Complex.I * complexSourceWave v z := by + simp only [scaledComplexTestWave, Complex.ofReal_one, one_smul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationSubmean.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationSubmean.lean new file mode 100644 index 0000000000..00e1fddf36 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedShellEvaluationSubmean.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationHolomorphic +public import LeanPool.VacuumBellSeparation.Shell.LocalHolomorphicVolumeSubmean +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeCompatibility + +/-! +# Actual source-wave submean against the induced shell Gram density + +The wave is the literal complexified Cauchy-data expression, including +the cross terms between two real tests. Holomorphy and genuine Euclidean +volume yield the estimate; a lower chart-density bound is kept explicit +for the quantitative regular-patch geometry to supply. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Metric Set +open scoped ENNReal + +/-- Complex test shell chart wave. -/ +noncomputable def complexTestShellChartWave (u v : TimeZeroSource) (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (w : ShellEuclideanDomain) : ℂ := + complexSourceWave u (lorentzComplexShellChart m Λ (shellEuclideanCoordinates w)) + + Complex.I * complexSourceWave v + (lorentzComplexShellChart m Λ (shellEuclideanCoordinates w)) + +theorem differentiableAt_complexTestShellChartWave {m : ℝ} + (u v : TimeZeroSource) (Λ : Spacetime ≃L[ℝ] Spacetime) + {w : ShellEuclideanDomain} (hw : w ∈ euclideanShellChartDomain m) : + DifferentiableAt ℂ (complexTestShellChartWave u v m Λ) w := + (differentiableAt_complexSourceWave_shellChart u Λ hw).add + ((differentiableAt_complexSourceWave_shellChart v Λ hw).const_mul Complex.I) + +theorem complexTestShellChartWave_volume_submean {m R : ℝ} + (u v : TimeZeroSource) (Λ : Spacetime ≃L[ℝ] Spacetime) + (c : ShellEuclideanDomain) (hR : 0 < R) + (hsub : ball c (2 * R) ⊆ euclideanShellChartDomain m) : + ENNReal.ofReal (‖complexTestShellChartWave u v m Λ c‖ ^ 2) * + volume (ball (0 : ℂ) R) ^ 3 ≤ + ∫⁻ w in ball c (2 * R), ENNReal.ofReal (‖complexTestShellChartWave u v m Λ w‖ ^ 2) := + local_shellEuclidean_submean_sq (isOpen_euclideanShellChartDomain m) + (complexTestShellChartWave u v m Λ) + (fun _ hw => differentiableAt_complexTestShellChartWave u v Λ hw) hR hsub + +theorem inducedShellCoordinateVolume_lintegral {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {s : Set ShellEuclideanDomain} + (hs : MeasurableSet s) (hsub : s ⊆ euclideanShellChartDomain m) + (g : ShellEuclideanDomain → ℝ≥0∞) : + (∫⁻ w in s, g w ∂inducedShellCoordinateVolume m Λ) = + ∫⁻ w in s, ENNReal.ofReal (inducedShellChartDensity m Λ w) * g w := by + have hJ : AEMeasurable (fun w => ENNReal.ofReal (inducedShellChartDensity m Λ w)) + (volume.restrict s) := + ENNReal.measurable_ofReal.comp_aemeasurable + (((continuousOn_inducedShellChartDensity m Λ).mono hsub).aemeasurable hs) + rw [inducedShellCoordinateVolume, Measure.restrict_restrict hs, + inter_eq_left.mpr hsub] + exact setLIntegral_withDensity_eq_setLIntegral_mul_non_measurable₀' volume s hJ g + (Filter.Eventually.of_forall fun _ => ENNReal.ofReal_lt_top) + +theorem complexTestShellChartWave_induced_submean {m R d : ℝ} + (u v : TimeZeroSource) (Λ : Spacetime ≃L[ℝ] Spacetime) + (c : ShellEuclideanDomain) (hR : 0 < R) + (hsub : ball c (2 * R) ⊆ euclideanShellChartDomain m) + (hJ : ∀ w ∈ ball c (2 * R), d ≤ inducedShellChartDensity m Λ w) : + ENNReal.ofReal d * (ENNReal.ofReal (‖complexTestShellChartWave u v m Λ c‖ ^ 2) * + volume (ball (0 : ℂ) R) ^ 3) ≤ + ∫⁻ w in ball c (2 * R), ENNReal.ofReal (‖complexTestShellChartWave u v m Λ w‖ ^ 2) + ∂inducedShellCoordinateVolume m Λ := by + calc + _ ≤ ENNReal.ofReal d * (∫⁻ w in ball c (2 * R), + ENNReal.ofReal (‖complexTestShellChartWave u v m Λ w‖ ^ 2)) := + _root_.mul_le_mul_right (complexTestShellChartWave_volume_submean u v Λ c hR hsub) _ + _ = ∫⁻ w in ball c (2 * R), ENNReal.ofReal d * + ENNReal.ofReal (‖complexTestShellChartWave u v m Λ w‖ ^ 2) := + (lintegral_const_mul' _ _ ENNReal.ofReal_ne_top).symm + _ ≤ ∫⁻ w in ball c (2 * R), ENNReal.ofReal (inducedShellChartDensity m Λ w) * + ENNReal.ofReal (‖complexTestShellChartWave u v m Λ w‖ ^ 2) := by + apply lintegral_mono_ae + filter_upwards [ae_restrict_mem measurableSet_ball] with w hw + exact _root_.mul_le_mul_left (ENNReal.ofReal_le_ofReal (hJ w hw)) _ + _ = _ := (inducedShellCoordinateVolume_lintegral Λ measurableSet_ball hsub _).symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceEnergyChoice.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceEnergyChoice.lean new file mode 100644 index 0000000000..61f399b1c0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceEnergyChoice.lean @@ -0,0 +1,72 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceFourierBounds + +/-! +# The literal energy choice and dimensional moment prefactors +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem sourceMomentLambda_pos {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + 0 < sourceMomentLambda b := by + rw [sourceMomentLambda_eq] + exact mul_pos (by norm_num) (sourceEvaluationRate_pos hb hb1) + +theorem one_le_sourceMomentLambda {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + 1 ≤ sourceMomentLambda b := by + have hs : 0 < Real.sin (Real.pi * b) := + Real.sin_pos_of_pos_of_lt_pi (mul_pos Real.pi_pos (by linarith)) + (by nlinarith [Real.pi_pos]) + unfold sourceMomentLambda + apply (le_div_iff₀ hs).mpr + nlinarith [Real.sin_le_one (Real.pi * b)] + +/-- Source moment energy given by `m + 1 / (sourceMomentLambda b * T) + ‖z‖`. -/ +noncomputable def sourceMomentEnergy (m T b : ℝ) (z : EuclideanSpace ℂ (Fin 3)) : ℝ := + m + 1 / (sourceMomentLambda b * T) + ‖z‖ + +theorem sourceMomentEnergy_lower {b m T : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) + (hT : 0 < T) (z : EuclideanSpace ℂ (Fin 3)) : + m + ‖z‖ ≤ sourceMomentEnergy m T b z := by + have hΛ := sourceMomentLambda_pos hb hb1 + have hp : 0 < 1 / (sourceMomentLambda b * T) := by positivity + unfold sourceMomentEnergy + linarith + +theorem sourceMomentEnergy_pos {b m T : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) + (hm : 0 < m) (hT : 0 < T) (z : EuclideanSpace ℂ (Fin 3)) : + 0 < sourceMomentEnergy m T b z := by + have h := sourceMomentEnergy_lower (m := m) hb hb1 hT z + linarith [norm_nonneg z] + +theorem sourceMomentEnergy_exponent {b m T : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) + (hT : 0 < T) (z : EuclideanSpace ℂ (Fin 3)) : + sourceMomentLambda b * T * sourceMomentEnergy m T b z = + sourceMomentLambda b * m * T + 1 + sourceMomentLambda b * T * ‖z‖ := by + have hn : sourceMomentLambda b * T ≠ 0 := (mul_pos (sourceMomentLambda_pos hb hb1) hT).ne' + unfold sourceMomentEnergy + field_simp [hn, (sourceMomentLambda_pos hb hb1).ne', hT.ne'] + +theorem sourceMomentEnergy_inv_le {b m T : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) + (hm : 0 < m) (hT : 0 < T) (z : EuclideanSpace ℂ (Fin 3)) : + 1 / sourceMomentEnergy m T b z ≤ sourceMomentLambda b * T / (1 + m * T) := by + have hE := sourceMomentEnergy_pos hb hb1 hm hT z + have hd : 0 < 1 + m * T := by positivity + apply (div_le_div_iff₀ hE hd).mpr + have he := sourceMomentEnergy_exponent (m := m) hb hb1 hT z + have hΛ := one_le_sourceMomentLambda hb hb1 + have hΛpos := sourceMomentLambda_pos hb hb1 + have hmT := mul_le_mul_of_nonneg_right hΛ (show 0 ≤ m * T by positivity) + have hsp : 0 ≤ sourceMomentLambda b * T * ‖z‖ := by positivity + nlinarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceEntireGrowth.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceEntireGrowth.lean new file mode 100644 index 0000000000..e8211580be --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceEntireGrowth.lean @@ -0,0 +1,91 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceEnergyChoice + +/-! +# Actual entire growth with the manuscript dimensional prefactors + +The common constant depends only on b. Both literal entire Fourier +components are controlled by the original reserve-power norm, with the +correct T/(1+mT) and T²/(1+mT)² factors. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem weightedSource_entire_growth {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + ∃ M : ℝ, 0 < M ∧ + ∀ (m : ℝ) (hm : 0 < m) (T : ℝ) (_ : 0 < T) + (U : Set (EuclideanSpace ℝ (Fin 3))), U ⊆ Metric.ball 0 T → + ∀ (z : EuclideanSpace ℂ (Fin 3)) (x : ComplexSourceTestSpace hm U), + ‖complexSourceFieldFourier hm U (WithLp.ofLp z) x‖ ≤ + M * T / (1 + m * T) * Real.exp (sourceMomentLambda b * m * T) * + Real.exp (sourceMomentLambda b * T * ‖z‖) * + ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ ∧ + ‖complexSourceMomentumFourier hm U (WithLp.ofLp z) x‖ ≤ + M * T ^ 2 / (1 + m * T) ^ 2 * Real.exp (sourceMomentLambda b * m * T) * + Real.exp (sourceMomentLambda b * T * ‖z‖) * + ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ := by + obtain ⟨C, hC, hbound⟩ := weightedSource_fourier_bounds hb hb1 + have hΛ := sourceMomentLambda_pos hb hb1 + have hΛone := one_le_sourceMomentLambda hb hb1 + refine ⟨C * sourceMomentLambda b ^ 2 * Real.exp 1, by positivity, ?_⟩ + intro m hm T hT U hU z x + let E := sourceMomentEnergy m T b z + have hE : 0 < E := sourceMomentEnergy_pos hb hb1 hm hT z + have hden : 0 < 1 + m * T := by positivity + obtain ⟨hf, hg⟩ := hbound m hm T hT U hU E z + (sourceMomentEnergy_lower (m := m) hb hb1 hT z) x + have hi : 1 / E ≤ sourceMomentLambda b * T / (1 + m * T) := + sourceMomentEnergy_inv_le hb hb1 hm hT z + have he : Real.exp (sourceMomentLambda b * T * E) = + Real.exp (sourceMomentLambda b * m * T) * Real.exp 1 * + Real.exp (sourceMomentLambda b * T * ‖z‖) := by + rw [sourceMomentEnergy_exponent hb hb1 hT z, Real.exp_add, Real.exp_add] + have hcf : C / E ≤ C * (sourceMomentLambda b * T / (1 + m * T)) := by + simpa only [div_eq_mul_inv, one_mul] using mul_le_mul_of_nonneg_left hi hC.le + have hcg : C / E ^ 2 ≤ C * (sourceMomentLambda b * T / (1 + m * T)) ^ 2 := by + have hs := pow_le_pow_left₀ (by positivity : 0 ≤ 1 / E) hi 2 + simpa only [div_pow, one_pow, div_eq_mul_inv, one_mul, inv_pow] using + mul_le_mul_of_nonneg_left hs hC.le + have hconst : C * sourceMomentLambda b * Real.exp 1 ≤ + C * sourceMomentLambda b ^ 2 * Real.exp 1 := by + apply mul_le_mul_of_nonneg_right _ (Real.exp_nonneg _) + apply mul_le_mul_of_nonneg_left _ hC.le + nlinarith + constructor + · calc + _ ≤ (C / E * Real.exp (sourceMomentLambda b * T * E)) * + ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ := hf + _ ≤ (C * (sourceMomentLambda b * T / (1 + m * T)) * + Real.exp (sourceMomentLambda b * T * E)) * + ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ := by + exact mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_right hcf (Real.exp_nonneg _)) (norm_nonneg _) + _ = (C * sourceMomentLambda b * Real.exp 1) * T / (1 + m * T) * + Real.exp (sourceMomentLambda b * m * T) * Real.exp (sourceMomentLambda b * T * ‖z‖) * + ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ := by + rw [he] + ring + _ ≤ _ := by gcongr + · calc + _ ≤ (C / E ^ 2 * Real.exp (sourceMomentLambda b * T * E)) * + ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ := hg + _ ≤ (C * (sourceMomentLambda b * T / (1 + m * T)) ^ 2 * + Real.exp (sourceMomentLambda b * T * E)) * + ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ := by + exact mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_right hcg (Real.exp_nonneg _)) (norm_nonneg _) + _ = _ := by + rw [he] + simp only [div_eq_mul_inv, ← inv_pow] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceFourierBounds.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceFourierBounds.lean new file mode 100644 index 0000000000..7683ff7f40 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceFourierBounds.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceFourierComponents + +/-! +# Entire Fourier component bounds from the actual reserve wave estimate + +The momentum estimate uses the actual displaced coordinate circle and +the maximum modulus principle for the entire momentum Fourier transform. +Thus its center may have zero complex energy. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Metric Set + +theorem weightedSource_fourier_bounds {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + ∃ C : ℝ, 0 < C ∧ + ∀ (m : ℝ) (hm : 0 < m) (T : ℝ) (_ : 0 < T) + (U : Set (EuclideanSpace ℝ (Fin 3))), U ⊆ ball 0 T → + ∀ (E : ℝ) (z : EuclideanSpace ℂ (Fin 3)), m + ‖z‖ ≤ E → + ∀ x : ComplexSourceTestSpace hm U, + ‖complexSourceFieldFourier hm U (WithLp.ofLp z) x‖ ≤ + (C / E * Real.exp (sourceMomentLambda b * T * E)) * + ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ ∧ + ‖complexSourceMomentumFourier hm U (WithLp.ofLp z) x‖ ≤ + (C / E ^ 2 * Real.exp (sourceMomentLambda b * T * E)) * + ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ := by + obtain ⟨C, hC, hwave⟩ := weightedSource_reserveWave_bound hb hb1 + refine ⟨C, hC, ?_⟩ + intro m hm T hT U hU E z hz x + have hmE : m ≤ E := by linarith [norm_nonneg z] + have hE : 0 < E := hm.trans_le hmE + let R : ℝ := ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ + have hR : 0 ≤ R := norm_nonneg _ + have hRate : 0 < sourceEvaluationRate b := sourceEvaluationRate_pos hb hb1 + have hW (E' : ℝ) (hmE' : m ≤ E') (w : ComplexSpacetime) + (hw : w ∈ complexShell m) (hsize : euclidSq w ≤ (2 * E') ^ 2) : + ‖complexSourceTestWave hm U w x‖ ≤ + (C / E' * Real.exp (sourceEvaluationRate b * T * E')) * R := by + obtain ⟨heq, hbound⟩ := hwave m hm T hT U hU E' hmE' w hw hsize + rw [← heq x] + exact hbound (complexSourceTestInclusion hm U x) + have hfield : ‖complexSourceFieldFourier hm U (WithLp.ofLp z) x‖ ≤ + (C / E * Real.exp (sourceEvaluationRate b * T * E)) * R := by + apply complexSourceFieldFourier_norm_bound hm U (spatialFourierEnergy m z) + · exact hW E hmE _ (spatialFourierEnergy_pair_in_shell m z).1 + (actualSpatialEnergy_in_ball hm.le z hz (spatialFourierEnergy_sq m z)) + · exact hW E hmE _ (spatialFourierEnergy_pair_in_shell m z).2 + (actualSpatialEnergy_in_ball hm.le z hz (by rw [neg_sq, spatialFourierEnergy_sq])) + have hmomentum : ‖complexSourceMomentumFourier hm U (WithLp.ofLp z) x‖ ≤ + (C / E ^ 2 * Real.exp (7 * sourceEvaluationRate b * T * E)) * R := by + let f : ℂ → ℂ := fun ζ => complexSourceMomentumFourier hm U + (WithLp.ofLp (spatialEnergyCircle z E ζ)) x + have hcurve : Differentiable ℂ + (fun ζ : ℂ => WithLp.ofLp (spatialEnergyCircle z E ζ)) := by + apply differentiable_pi.mpr + intro j + simp only [spatialEnergyCircle, PiLp.add_apply, PiLp.single_apply] + split_ifs <;> fun_prop + have hf : Differentiable ℂ f := + (differentiable_complexSourceMomentumFourier hm U x).comp hcurve + have hcircle : ∀ ζ ∈ frontier (ball (0 : ℂ) 1), + ‖f ζ‖ ≤ (C / E ^ 2 * Real.exp (7 * sourceEvaluationRate b * T * E)) * R := by + intro ζ hζ + have hnζ : ‖ζ‖ = 1 := by + simpa only [frontier_ball _ one_ne_zero, mem_sphere, dist_zero_right] using hζ + let w := spatialEnergyCircle z E ζ + let e := spatialFourierEnergy m w + have he : e ^ 2 = spatialFourierEnergySquared m w := spatialFourierEnergy_sq m w + obtain ⟨hebound, hene⟩ := spatialEnergyCircle_energy_norm_lower hm.le hE z hz hnζ he + have h7 : m ≤ 7 * E := by linarith + have hp := hW (7 * E) h7 (e, WithLp.ofLp w) + (actualSpatialEnergy_shell m w he) + (by have h := spatialEnergyCircle_shell_size hm.le hE z hz hnζ he + convert h.le using 1; ring) + have hn := hW (7 * E) h7 (-e, WithLp.ofLp w) + (actualSpatialEnergy_shell m w (by rw [neg_sq, he])) + (by have h := spatialEnergyCircle_shell_size hm.le hE z hz hnζ + (show (-e) ^ 2 = spatialFourierEnergySquared m w by rw [neg_sq, he]) + convert h.le using 1; ring) + have hcomp := complexSourceMomentumFourier_norm_bound hm U hene (WithLp.ofLp w) x hp hn + have hdiv := div_le_div_of_nonneg_left + (show 0 ≤ (C / (7 * E) * Real.exp (sourceEvaluationRate b * T * (7 * E))) * R by positivity) + hE hebound + have halg : ((C / (7 * E) * Real.exp (sourceEvaluationRate b * T * (7 * E))) * R) / E = + (1 / 7 : ℝ) * ((C / E ^ 2 * Real.exp (7 * sourceEvaluationRate b * T * E)) * R) := by + rw [show sourceEvaluationRate b * T * (7 * E) = 7 * sourceEvaluationRate b * T * E by ring] + ring + have hh := hcomp.trans hdiv + rw [halg] at hh + exact hh.trans (mul_le_of_le_one_left (by positivity) (by norm_num)) + have hzero := Complex.norm_le_of_forall_mem_frontier_norm_le isBounded_ball + hf.diffContOnCl hcircle (subset_closure (by simp : (0 : ℂ) ∈ ball 0 1)) + have hc0 : spatialEnergyCircle z E 0 = z := by + ext j + simp [spatialEnergyCircle, PiLp.single_apply] + simpa only [f, hc0] using hzero + have hexp₁ : Real.exp (sourceEvaluationRate b * T * E) ≤ + Real.exp (sourceMomentLambda b * T * E) := by + apply Real.exp_le_exp.mpr + rw [sourceMomentLambda_eq] + nlinarith [mul_pos (mul_pos hRate hT) hE] + have hexp₇ : Real.exp (7 * sourceEvaluationRate b * T * E) ≤ + Real.exp (sourceMomentLambda b * T * E) := by + apply Real.exp_le_exp.mpr + rw [sourceMomentLambda_eq] + nlinarith [mul_pos (mul_pos hRate hT) hE] + constructor + · exact hfield.trans (mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_left hexp₁ (by positivity)) hR) + · exact hmomentum.trans (mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_left hexp₇ (by positivity)) hR) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentBounds.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentBounds.lean new file mode 100644 index 0000000000..13b870b5a0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentBounds.lean @@ -0,0 +1,70 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceMomentFunctional +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceEntireGrowth +public import LeanPool.VacuumBellSeparation.Gaussian.EntireMomentCoefficientBound + +/-! +# Actual weighted polynomial moment estimates + +The exact Cauchy coefficient identity and the entire Fourier growth +bound give the manuscript base 5 Lambda and dimensional prefactors. +No moment representation or moment bound is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian +open scoped BigOperators + +theorem weightedSource_moment_bounds {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + ∃ C : ℝ, 0 < C ∧ + ∀ (m : ℝ) (hm : 0 < m) (T : ℝ) (_ : 0 < T) + (U : Set (EuclideanSpace ℝ (Fin 3))), U ⊆ Metric.ball 0 T → + ∀ (α : Fin 3 → ℕ) (x : ComplexSourceTestSpace hm U), + ‖complexSourceFieldMoment hm U α x‖ ≤ + C * T / (1 + m * T) * Real.exp (sourceMomentLambda b * m * T) * + (sourceMomentBase b * T) ^ (∑ j, α j) * + ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ ∧ + ‖complexSourceMomentumMoment hm U α x‖ ≤ + C * T ^ 2 / (1 + m * T) ^ 2 * Real.exp (sourceMomentLambda b * m * T) * + (sourceMomentBase b * T) ^ (∑ j, α j) * + ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ := by + obtain ⟨M, hM, hbound⟩ := weightedSource_entire_growth hb hb1 + refine ⟨Real.exp 1 * M, by positivity, ?_⟩ + intro m hm T hT U hU α x + have ha : 0 < sourceMomentLambda b * T := + mul_pos (sourceMomentLambda_pos hb hb1) hT + have hR : 0 < momentCauchyRadius (sourceMomentLambda b * T) α := by + unfold momentCauchyRadius + positivity + let N := ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖ + have hf := entire_moment_coefficient_bound ha + (show 0 ≤ M * T / (1 + m * T) * Real.exp (sourceMomentLambda b * m * T) * N by + dsimp [N]; positivity) + (fun z => complexSourceFieldFourier hm U z x) (fun z => ?_) α + · have hg := entire_moment_coefficient_bound ha + (show 0 ≤ M * T ^ 2 / (1 + m * T) ^ 2 * + Real.exp (sourceMomentLambda b * m * T) * N by dsimp [N]; positivity) + (fun z => complexSourceMomentumFourier hm U z x) (fun z => ?_) α + · rw [polydiscCoefficient_complexSourceFieldFourier hm U hR, + spatialMomentPhase_norm_cancel] at hf + rw [polydiscCoefficient_complexSourceMomentumFourier hm U hR, + spatialMomentPhase_norm_cancel] at hg + constructor + · convert hf using 1 <;> + simp only [complexSourceFieldMoment_apply, N, sourceMomentBase]; ring + · convert hg using 1 <;> + simp only [complexSourceMomentumMoment_apply, N, sourceMomentBase]; ring + · convert (hbound m hm T hT U hU z x).2 using 1; dsimp [N]; ring + · convert (hbound m hm T hT U hU z x).1 using 1; dsimp [N]; ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentVectors.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentVectors.lean new file mode 100644 index 0000000000..5e051f69dc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentVectors.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceMomentBounds +public import LeanPool.VacuumBellSeparation.FreeField.SpatialRealMomentSeries + +/-! +# Genuine weighted moment vectors in the completed original source space + +The actual test moments extend by density. The true dense-range reserve +factorization and Riesz theorem construct the vectors with the estimates +of Lemma 5.4. No whole-space bounded inverse of the reserve is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification +open scoped BigOperators ComplexConjugate + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +theorem exists_sourceReserve_riesz_of_test_bound + (hU : Bornology.IsBounded U) (L : ComplexSourceTestSpace hm U →ₗ[ℂ] ℂ) + {b C : ℝ} (hb : 0 ≤ b) (hb1 : b ≤ 1) (hC : 0 ≤ C) + (hL : ∀ x, ‖L x‖ ≤ C * ‖(sourceReserve hm U ^ b) (complexSourceTestInclusion hm U x)‖) : + ∃ v : ComplexSourceHilbert hm U, ‖v‖ ≤ C ∧ + ∀ x, inner ℂ (complexSourceTestInclusion hm U x) ((sourceReserve hm U ^ b) v) = + conj (L x) := by + let T := extendComplexSourceTestFunctional hm U L + obtain ⟨v, hv, _, heq⟩ := exists_sourceReserve_riesz_of_bound hm U hU + T.toLinearMap hb hb1 hC + (extendComplexSourceTestFunctional_weight_bound hm U L _ hC hL) + refine ⟨v, hv, fun x => ?_⟩ + rw [heq] + congr 1 + exact extendComplexSourceTestFunctional_eq hm U L _ hC hL x + +@[simp] +theorem complexSourceFieldMoment_ofReal (α : Fin 3 → ℕ) (x : SourceTestSpace hm U) : + complexSourceFieldMoment hm U α (ofReal x) = (spatialRealTestMoment x.1.1 α : ℂ) := by + rw [complexSourceFieldMoment, complexifyFunctional_ofReal] + change spatialTestMoment x.1.1 α = _ + exact spatialTestMoment_eq_ofReal x.1.1 α + +@[simp] +theorem complexSourceMomentumMoment_ofReal (α : Fin 3 → ℕ) (x : SourceTestSpace hm U) : + complexSourceMomentumMoment hm U α (ofReal x) = (spatialRealTestMoment x.1.2 α : ℂ) := by + rw [complexSourceMomentumMoment, complexifyFunctional_ofReal] + change spatialTestMoment x.1.2 α = _ + exact spatialTestMoment_eq_ofReal x.1.2 α + +theorem exists_weightedSource_moment_vectors {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + ∃ C : ℝ, 0 < C ∧ + ∀ (m : ℝ) (hm : 0 < m) (T : ℝ) (_ : 0 < T) + (U : Set (EuclideanSpace ℝ (Fin 3))), U ⊆ Metric.ball 0 T → + ∀ α : Fin 3 → ℕ, + ∃ u v : ComplexSourceHilbert hm U, + ‖u‖ ≤ C * T / (1 + m * T) * Real.exp (sourceMomentLambda b * m * T) * + (sourceMomentBase b * T) ^ (∑ j, α j) ∧ + ‖v‖ ≤ C * T ^ 2 / (1 + m * T) ^ 2 * Real.exp (sourceMomentLambda b * m * T) * + (sourceMomentBase b * T) ^ (∑ j, α j) ∧ + (∀ x : SourceTestSpace hm U, + inner ℂ (ofReal (x : SourceHilbert hm U)) ((sourceReserve hm U ^ b) u) = + (spatialRealTestMoment x.1.1 α : ℂ)) ∧ + (∀ x : SourceTestSpace hm U, + inner ℂ (ofReal (x : SourceHilbert hm U)) ((sourceReserve hm U ^ b) v) = + (spatialRealTestMoment x.1.2 α : ℂ)) := by + obtain ⟨C, hC, hbound⟩ := weightedSource_moment_bounds hb hb1 + refine ⟨C, hC, ?_⟩ + intro m hm T hT U hU α + have hUb : Bornology.IsBounded U := Metric.isBounded_ball.subset hU + have hb0 : 0 ≤ b := by linarith + have hbase : 0 ≤ sourceMomentBase b := by + unfold sourceMomentBase + exact mul_nonneg (by norm_num) (sourceMomentLambda_pos hb hb1).le + obtain ⟨u, hu, hueq⟩ := exists_sourceReserve_riesz_of_test_bound hm U hUb + (C := C * T / (1 + m * T) * Real.exp (sourceMomentLambda b * m * T) * + (sourceMomentBase b * T) ^ (∑ j, α j)) + (complexSourceFieldMoment hm U α) hb0 hb1.le (by positivity) + (fun x => (hbound m hm T hT U hU α x).1) + obtain ⟨v, hv, hveq⟩ := exists_sourceReserve_riesz_of_test_bound hm U hUb + (C := C * T ^ 2 / (1 + m * T) ^ 2 * Real.exp (sourceMomentLambda b * m * T) * + (sourceMomentBase b * T) ^ (∑ j, α j)) + (complexSourceMomentumMoment hm U α) hb0 hb1.le (by positivity) + (fun x => (hbound m hm T hT U hU α x).2) + refine ⟨u, v, hu, hv, ?_, ?_⟩ + · intro x + simpa only [complexSourceTestInclusion_ofReal, complexSourceFieldMoment_ofReal, + Complex.conj_ofReal] using hueq (ofReal x) + · intro x + simpa only [complexSourceTestInclusion_ofReal, complexSourceMomentumMoment_ofReal, + Complex.conj_ofReal] using hveq (ofReal x) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentsFactorization.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentsFactorization.lean new file mode 100644 index 0000000000..185d3adc80 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentsFactorization.lean @@ -0,0 +1,103 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplementaryGramPartition +public import LeanPool.VacuumBellSeparation.FreeField.ModularWeightNorm +public import LeanPool.VacuumBellSeparation.FreeField.SourceReserveFactorization +public import Mathlib.Analysis.InnerProductSpace.Dual + +/-! +# Reserve factors and Riesz vectors from the two actual source weights + +The two estimates are genuine hypotheses on the given linear map. Their +combination uses a bounded continuous-calculus partition, followed by the +proved dense-range factorization of the actual reserve. No inverse of the +reserve on the whole Hilbert space is asserted. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian ContinuousLinearMap +open scoped ComplexConjugate InnerProductSpace + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) +variable {F : Type*} [NormedAddCommGroup F] [NormedSpace ℂ F] + +theorem sourceReserve_bound_of_two_modular_weights + (T : ComplexSourceHilbert hm U →ₗ[ℂ] F) {b C₁ C₂ : ℝ} + (hb : 1 / 2 ≤ b) (hb1 : b ≤ 1) (hC₁ : 0 ≤ C₁) (hC₂ : 0 ≤ C₂) + (h₁ : ∀ z, ‖T z‖ ≤ C₁ * ‖sourceModularWeight hm U ((1 - b) / 2) z‖) + (h₂ : ∀ z, ‖T z‖ ≤ C₂ * ‖sourceModularWeight hm U (b / 2) z‖) : + ∀ z, ‖T z‖ ≤ (C₁ + C₂) * ‖(sourceReserve hm U ^ b) z‖ := by + rw [sourceReserve_eq_normalized_reserve] + apply bound_reserve_of_complementary_weights + (normalizedCommutation_isSelfAdjoint (complexSourceCommutation_mem_skewAdjoint hm U)) + (norm_normalizedCommutation_le_one (norm_complexSourceCommutation_le_two hm U)) + T hb hb1 hC₁ hC₂ + · intro z + simpa only [sourceModularWeight, sourceGram_eq_normalized_commutation, + conjugateSourceGram_eq, gramPlus, gramMinus, normalizedCommutation, + show (1 / 2 : ℝ) - (1 - b) / 2 = b / 2 by ring] using h₁ z + · intro z + simpa only [sourceModularWeight, sourceGram_eq_normalized_commutation, + conjugateSourceGram_eq, gramPlus, gramMinus, normalizedCommutation, + show (1 / 2 : ℝ) - b / 2 = (1 - b) / 2 by ring] using h₂ z + +theorem existsUnique_sourceReserve_factor_of_two_modular_weights [CompleteSpace F] + (hU : Bornology.IsBounded U) (T : ComplexSourceHilbert hm U →ₗ[ℂ] F) + {b C₁ C₂ : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b ≤ 1) (hC₁ : 0 ≤ C₁) (hC₂ : 0 ≤ C₂) + (h₁ : ∀ z, ‖T z‖ ≤ C₁ * ‖sourceModularWeight hm U ((1 - b) / 2) z‖) + (h₂ : ∀ z, ‖T z‖ ≤ C₂ * ‖sourceModularWeight hm U (b / 2) z‖) : + ∃! L : ComplexSourceHilbert hm U →L[ℂ] F, + (∀ z, L ((sourceReserve hm U ^ b) z) = T z) ∧ ‖L‖ ≤ C₁ + C₂ := by + apply (sourceReserve_factorization_iff hm U hU T + (by linarith : 0 ≤ b) hb1 (add_nonneg hC₁ hC₂)).mp + exact sourceReserve_bound_of_two_modular_weights hm U T hb hb1 hC₁ hC₂ h₁ h₂ + +/-- The Riesz vector represents the actual linear functional after the reserve. +The second identity is the conjugate-first convention needed for real moments. -/ +theorem exists_sourceReserve_riesz_of_bound (hU : Bornology.IsBounded U) + (T : ComplexSourceHilbert hm U →ₗ[ℂ] ℂ) {b C : ℝ} + (hb : 0 ≤ b) (hb1 : b ≤ 1) (hC : 0 ≤ C) + (hT : ∀ z, ‖T z‖ ≤ C * ‖(sourceReserve hm U ^ b) z‖) : + ∃ v : ComplexSourceHilbert hm U, ‖v‖ ≤ C ∧ + (∀ z, inner ℂ v ((sourceReserve hm U ^ b) z) = T z) ∧ + (∀ z, inner ℂ z ((sourceReserve hm U ^ b) v) = conj (T z)) := by + obtain ⟨L, ⟨hL, hnorm⟩, _⟩ := + (sourceReserve_factorization_iff hm U hU T hb hb1 hC).mp hT + let v := (InnerProductSpace.toDual ℂ (ComplexSourceHilbert hm U)).symm L + have hv (z : ComplexSourceHilbert hm U) : + inner ℂ v ((sourceReserve hm U ^ b) z) = T z := by + rw [InnerProductSpace.toDual_symm_apply, hL] + refine ⟨v, ?_, hv, ?_⟩ + · exact ((InnerProductSpace.toDual ℂ (ComplexSourceHilbert hm U)).symm.norm_map L).le.trans hnorm + · intro z + have hs : (sourceReserve hm U ^ b).adjoint = sourceReserve hm U ^ b := + (CFC.rpow_nonneg (a := sourceReserve hm U) (y := b)).isSelfAdjoint.adjoint_eq + calc + inner ℂ z ((sourceReserve hm U ^ b) v) = + inner ℂ ((sourceReserve hm U ^ b) z) v := by + rw [← adjoint_inner_left, hs] + _ = conj (inner ℂ v ((sourceReserve hm U ^ b) z)) := (inner_conj_symm _ _).symm + _ = conj (T z) := by rw [hv] + +theorem exists_sourceReserve_riesz_of_two_modular_weights + (hU : Bornology.IsBounded U) (T : ComplexSourceHilbert hm U →ₗ[ℂ] ℂ) + {b C₁ C₂ : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b ≤ 1) (hC₁ : 0 ≤ C₁) (hC₂ : 0 ≤ C₂) + (h₁ : ∀ z, ‖T z‖ ≤ C₁ * ‖sourceModularWeight hm U ((1 - b) / 2) z‖) + (h₂ : ∀ z, ‖T z‖ ≤ C₂ * ‖sourceModularWeight hm U (b / 2) z‖) : + ∃ v : ComplexSourceHilbert hm U, ‖v‖ ≤ C₁ + C₂ ∧ + (∀ z, inner ℂ v ((sourceReserve hm U ^ b) z) = T z) ∧ + (∀ z, inner ℂ z ((sourceReserve hm U ^ b) v) = conj (T z)) := + exists_sourceReserve_riesz_of_bound hm U hU T (by linarith) hb1 + (add_nonneg hC₁ hC₂) + (sourceReserve_bound_of_two_modular_weights hm U T hb hb1 hC₁ hC₂ h₁ h₂) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentsTestExtension.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentsTestExtension.lean new file mode 100644 index 0000000000..1223ce9f16 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceMomentsTestExtension.lean @@ -0,0 +1,126 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceMomentsFactorization +public import Mathlib.Analysis.Normed.Operator.Extend + +/-! +# Extending actual complex test functionals with weighted bounds + +The domain is the concrete complexification of the original local test +space. Its embedding into the completed source space is proved dense. +Every weighted estimate is preserved in the extension, so applying the +bounded Gram partition does not require the partition to preserve tests. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification + +/-- Complex source test space with underlying type `HilbertComplexification (SourceTestSpace hm +U)`. -/ +abbrev ComplexSourceTestSpace {m : ℝ} (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) := HilbertComplexification (SourceTestSpace hm U) + +variable {m : ℝ} (hm : 0 < m) (U : Set (EuclideanSpace ℝ (Fin 3))) + +/-- Linear isometry for the complex source test inclusion, of type `ComplexSourceTestSpace hm U +→ₗᵢ[ℂ] ComplexSourceHilbert hm U`. -/ +noncomputable def complexSourceTestInclusion : + ComplexSourceTestSpace hm U →ₗᵢ[ℂ] ComplexSourceHilbert hm U := + complexifyIsometry (UniformSpace.Completion.toComplₗᵢ : + SourceTestSpace hm U →ₗᵢ[ℝ] SourceHilbert hm U) + +@[simp] +theorem complexSourceTestInclusion_mk (u v : SourceTestSpace hm U) : + complexSourceTestInclusion hm U (mk u v) = + mk (u : SourceHilbert hm U) (v : SourceHilbert hm U) := rfl + +@[simp] +theorem complexSourceTestInclusion_ofReal (u : SourceTestSpace hm U) : + complexSourceTestInclusion hm U (ofReal u) = ofReal (u : SourceHilbert hm U) := by + ext <;> simp [complexSourceTestInclusion] + +theorem complexSourceTestInclusion_denseRange : DenseRange (complexSourceTestInclusion hm U) := by + let e : ComplexSourceTestSpace hm U ≃ₜ (SourceTestSpace hm U × SourceTestSpace hm U) := + (realEquiv.toHomeomorph).trans (WithLp.homeomorphProd 2 _ _) + let f : ComplexSourceHilbert hm U ≃ₜ (SourceHilbert hm U × SourceHilbert hm U) := + (realEquiv.toHomeomorph).trans (WithLp.homeomorphProd 2 _ _) + have hd : DenseRange (Prod.map + ((↑) : SourceTestSpace hm U → SourceHilbert hm U) + ((↑) : SourceTestSpace hm U → SourceHilbert hm U)) := + UniformSpace.Completion.denseRange_coe.prodMap UniformSpace.Completion.denseRange_coe + have hdf := f.symm.surjective.denseRange.comp hd f.symm.continuous + have hcoe : Continuous ((↑) : SourceTestSpace hm U → SourceHilbert hm U) := + UniformSpace.Completion.continuous_coe (SourceTestSpace hm U) + have hc : Continuous (f.symm ∘ Prod.map + ((↑) : SourceTestSpace hm U → SourceHilbert hm U) + ((↑) : SourceTestSpace hm U → SourceHilbert hm U)) := + f.symm.continuous.comp (Continuous.prodMap hcoe hcoe) + exact hdf.comp e.surjective.denseRange hc + +variable {F : Type*} [NormedAddCommGroup F] [NormedSpace ℂ F] [CompleteSpace F] + +/-- Continuous linear map for the extend complex source test functional, of type +`ComplexSourceHilbert hm U →L[ℂ] F`. -/ +noncomputable def extendComplexSourceTestFunctional + (T : ComplexSourceTestSpace hm U →ₗ[ℂ] F) : ComplexSourceHilbert hm U →L[ℂ] F := + T.extendOfNorm (complexSourceTestInclusion hm U).toLinearMap + +theorem extendComplexSourceTestFunctional_eq + (T : ComplexSourceTestSpace hm U →ₗ[ℂ] F) + (A : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U) + {C : ℝ} (hC : 0 ≤ C) + (hT : ∀ z, ‖T z‖ ≤ C * ‖A (complexSourceTestInclusion hm U z)‖) + (z : ComplexSourceTestSpace hm U) : + extendComplexSourceTestFunctional hm U T (complexSourceTestInclusion hm U z) = T z := by + apply LinearMap.extendOfNorm_eq (complexSourceTestInclusion_denseRange hm U) + refine ⟨C * ‖A‖, fun z => ?_⟩ + exact (hT z).trans ((mul_le_mul_of_nonneg_left (A.le_opNorm _) hC).trans_eq + (mul_assoc _ _ _).symm) + +theorem extendComplexSourceTestFunctional_weight_bound + (T : ComplexSourceTestSpace hm U →ₗ[ℂ] F) + (A : ComplexSourceHilbert hm U →L[ℂ] ComplexSourceHilbert hm U) + {C : ℝ} (hC : 0 ≤ C) + (hT : ∀ z, ‖T z‖ ≤ C * ‖A (complexSourceTestInclusion hm U z)‖) : + ∀ z, ‖extendComplexSourceTestFunctional hm U T z‖ ≤ C * ‖A z‖ := by + intro z + refine (complexSourceTestInclusion_denseRange hm U).induction_on + (p := fun z => ‖extendComplexSourceTestFunctional hm U T z‖ ≤ C * ‖A z‖) z + (isClosed_le (by fun_prop) (by fun_prop)) ?_ + intro w + rw [extendComplexSourceTestFunctional_eq hm U T A hC hT] + exact hT w + +/-- The literal test-domain estimates suffice for a weighted moment vector. +Neither a completed functional nor a reserve inverse is supplied as input. -/ +theorem exists_sourceReserve_riesz_of_test_modular_weights + (hU : Bornology.IsBounded U) (T : ComplexSourceTestSpace hm U →ₗ[ℂ] ℂ) + {b C₁ C₂ : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b ≤ 1) (hC₁ : 0 ≤ C₁) (hC₂ : 0 ≤ C₂) + (h₁ : ∀ z, ‖T z‖ ≤ C₁ * + ‖sourceModularWeight hm U ((1 - b) / 2) (complexSourceTestInclusion hm U z)‖) + (h₂ : ∀ z, ‖T z‖ ≤ C₂ * + ‖sourceModularWeight hm U (b / 2) (complexSourceTestInclusion hm U z)‖) : + ∃ v : ComplexSourceHilbert hm U, ‖v‖ ≤ C₁ + C₂ ∧ + ∀ z, inner ℂ (complexSourceTestInclusion hm U z) ((sourceReserve hm U ^ b) v) = + star (T z) := by + let L := extendComplexSourceTestFunctional hm U T + obtain ⟨v, hv, _, heq⟩ := exists_sourceReserve_riesz_of_two_modular_weights hm U hU + L.toLinearMap hb hb1 hC₁ hC₂ + (extendComplexSourceTestFunctional_weight_bound hm U T _ hC₁ h₁) + (extendComplexSourceTestFunctional_weight_bound hm U T _ hC₂ h₂) + refine ⟨v, hv, fun z => ?_⟩ + have hext := extendComplexSourceTestFunctional_eq hm U T + (sourceModularWeight hm U ((1 - b) / 2)) hC₁ h₁ z + exact (heq (complexSourceTestInclusion hm U z)).trans + (congrArg (starRingEnd ℂ) hext) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceReserveWave.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceReserveWave.lean new file mode 100644 index 0000000000..0ae76be6aa --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceReserveWave.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceWaveExtension + +/-! +# Actual symmetric-reserve wave bounds + +The two genuine modular estimates are combined by the already proved +bounded complementary-Gram partition. Both exponents have the same +sine, so the actual reserve estimate has the manuscript rate exactly. +No spectral projection or unbounded whole-space inverse is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian + +/-- Source evaluation rate defined as `2048 / Real.sin (Real.pi * b)`. -/ +noncomputable def sourceEvaluationRate (b : ℝ) : ℝ := 2048 / Real.sin (Real.pi * b) +/-- Source moment lambda defined as `2 ^ 15 / Real.sin (Real.pi * b)`. -/ +noncomputable def sourceMomentLambda (b : ℝ) : ℝ := 2 ^ 15 / Real.sin (Real.pi * b) +/-- Source moment base given by `5 * sourceMomentLambda b`. -/ +noncomputable def sourceMomentBase (b : ℝ) : ℝ := 5 * sourceMomentLambda b + +theorem sourceMomentLambda_eq (b : ℝ) : sourceMomentLambda b = 16 * sourceEvaluationRate b := by + unfold sourceMomentLambda sourceEvaluationRate + norm_num + ring + +theorem sourceEvaluationRate_pos {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + 0 < sourceEvaluationRate b := by + apply div_pos (by norm_num) + apply Real.sin_pos_of_pos_of_lt_pi + · exact mul_pos Real.pi_pos (by linarith) + · nlinarith [Real.pi_pos] + +theorem sourceEvaluationRate_left (b : ℝ) : + 2048 / Real.sin (2 * Real.pi * ((1 - b) / 2)) = sourceEvaluationRate b := by + rw [show 2 * Real.pi * ((1 - b) / 2) = Real.pi - Real.pi * b by ring, Real.sin_pi_sub] + rfl + +theorem sourceEvaluationRate_right (b : ℝ) : + 2048 / Real.sin (2 * Real.pi * (b / 2)) = sourceEvaluationRate b := by + rw [show 2 * Real.pi * (b / 2) = Real.pi * b by ring] + rfl + +theorem weightedSource_reserveWave_bound {b : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b < 1) : + ∃ C : ℝ, 0 < C ∧ + ∀ (m : ℝ) (hm : 0 < m) (T : ℝ) (_ : 0 < T) + (U : Set (EuclideanSpace ℝ (Fin 3))), U ⊆ Metric.ball 0 T → + ∀ E : ℝ, m ≤ E → ∀ z : ComplexSpacetime, + z ∈ complexShell m → euclidSq z ≤ (2 * E) ^ 2 → + (∀ x : ComplexSourceTestSpace hm U, + completedSourceWave hm U z (complexSourceTestInclusion hm U x) = + complexSourceTestWave hm U z x) ∧ + ∀ x : ComplexSourceHilbert hm U, ‖completedSourceWave hm U z x‖ ≤ + (C / E * Real.exp (sourceEvaluationRate b * T * E)) * + ‖(sourceReserve hm U ^ b) x‖ := by + obtain ⟨C₁, hC₁, h₁⟩ := weightedSource_completedShell_evaluation + (show 0 < (1 - b) / 2 by linarith) (show (1 - b) / 2 < 1 / 2 by linarith) + obtain ⟨C₂, hC₂, h₂⟩ := weightedSource_completedShell_evaluation + (show 0 < b / 2 by linarith) (show b / 2 < 1 / 2 by linarith) + refine ⟨C₁ + C₂, add_pos hC₁ hC₂, ?_⟩ + intro m hm T hT U hU E hmE z hz hsize + have hE : 0 < E := hm.trans_le hmE + obtain ⟨heq, hbound₁⟩ := h₁ m hm T hT U hU E hmE z hz hsize + obtain ⟨_, hbound₂⟩ := h₂ m hm T hT U hU E hmE z hz hsize + rw [sourceEvaluationRate_left] at hbound₁ + rw [sourceEvaluationRate_right] at hbound₂ + refine ⟨heq, ?_⟩ + have h := sourceReserve_bound_of_two_modular_weights hm U + (completedSourceWave hm U z).toLinearMap hb hb1.le + (by positivity) (by positivity) hbound₁ hbound₂ + intro x + convert h x using 1; ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceWaveExtension.lean b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceWaveExtension.lean new file mode 100644 index 0000000000..bc0fdecf8a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WeightedSourceWaveExtension.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceWaveFunctional + +/-! +# Genuine completed weighted source-wave evaluation + +The norm bound first applies to the actual complexified test space. +Its dense isometric inclusion then constructs the continuous extension +and preserves the same weighted bound. The extension is independent of +the auxiliary energy and modular exponent used to prove its bound. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Gaussian Gaussian.HilbertComplexification + +theorem weightedSource_testWave_bound {c : ℝ} (hc : 0 < c) (hc2 : c < 1 / 2) : + ∃ C : ℝ, 0 < C ∧ + ∀ (m : ℝ) (hm : 0 < m) (T : ℝ) (_ : 0 < T) + (U : Set (EuclideanSpace ℝ (Fin 3))), U ⊆ Metric.ball 0 T → + ∀ E : ℝ, m ≤ E → ∀ z : ComplexSpacetime, + z ∈ complexShell m → euclidSq z ≤ (2 * E) ^ 2 → + ∀ x : ComplexSourceTestSpace hm U, + ‖complexSourceTestWave hm U z x‖ ≤ + (C / E * Real.exp ((2048 / Real.sin (2 * Real.pi * c)) * T * E)) * + ‖sourceModularWeight hm U c (complexSourceTestInclusion hm U x)‖ := by + obtain ⟨C, hC, hb⟩ := weightedSource_fullShell_evaluation hc hc2 + refine ⟨Real.sqrt C, Real.sqrt_pos.mpr hC, ?_⟩ + intro m hm T hT U hU E hmE z hz hsize x + have hE : 0 < E := hm.trans_le hmE + have h := hb m hm T hT U hU x.re x.im E hmE z hz hsize + rw [← complexSourceTestInclusion_decompose hm U x, + ← complexSourceTestWave_apply hm U z x] at h + let a : ℝ := (2048 / Real.sin (2 * Real.pi * c)) * T * E + have hexp : Real.exp (2 * a) = (Real.exp a) ^ 2 := by + rw [pow_two, ← Real.exp_add] + congr 1 + ring + have heq : ((Real.sqrt C / E * Real.exp a) * + ‖sourceModularWeight hm U c (complexSourceTestInclusion hm U x)‖) ^ 2 = + C / E ^ 2 * Real.exp (2 * a) * + ‖sourceModularWeight hm U c (complexSourceTestInclusion hm U x)‖ ^ 2 := by + rw [mul_pow, mul_pow, div_pow, Real.sq_sqrt hC.le, hexp] + apply nonneg_le_nonneg_of_sq_le_sq (by positivity) + rw [← pow_two, ← pow_two] + rw [heq] + simpa only [a, mul_assoc] using h + +/-- Continuous linear map for the completed source wave, of type `ComplexSourceHilbert hm U →L[ℂ] +ℂ`. -/ +noncomputable def completedSourceWave {m : ℝ} (hm : 0 < m) + (U : Set (EuclideanSpace ℝ (Fin 3))) (z : ComplexSpacetime) : + ComplexSourceHilbert hm U →L[ℂ] ℂ := + extendComplexSourceTestFunctional hm U (complexSourceTestWave hm U z) + +theorem weightedSource_completedShell_evaluation + {c : ℝ} (hc : 0 < c) (hc2 : c < 1 / 2) : + ∃ C : ℝ, 0 < C ∧ + ∀ (m : ℝ) (hm : 0 < m) (T : ℝ) (_ : 0 < T) + (U : Set (EuclideanSpace ℝ (Fin 3))), U ⊆ Metric.ball 0 T → + ∀ E : ℝ, m ≤ E → ∀ z : ComplexSpacetime, + z ∈ complexShell m → euclidSq z ≤ (2 * E) ^ 2 → + (∀ x : ComplexSourceTestSpace hm U, + completedSourceWave hm U z (complexSourceTestInclusion hm U x) = + complexSourceTestWave hm U z x) ∧ + ∀ x : ComplexSourceHilbert hm U, ‖completedSourceWave hm U z x‖ ≤ + (C / E * Real.exp ((2048 / Real.sin (2 * Real.pi * c)) * T * E)) * + ‖sourceModularWeight hm U c x‖ := by + obtain ⟨C, hC, hb⟩ := weightedSource_testWave_bound hc hc2 + refine ⟨C, hC, ?_⟩ + intro m hm T hT U hU E hmE z hz hsize + have hE : 0 < E := hm.trans_le hmE + have hbound := hb m hm T hT U hU E hmE z hz hsize + constructor + · exact fun x => extendComplexSourceTestFunctional_eq hm U + (complexSourceTestWave hm U z) (sourceModularWeight hm U c) (by positivity) hbound x + · exact extendComplexSourceTestFunctional_weight_bound hm U + (complexSourceTestWave hm U z) (sourceModularWeight hm U c) (by positivity) hbound + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/FreeField/WithinIntegralDerivative.lean b/LeanPool/VacuumBellSeparation/FreeField/WithinIntegralDerivative.lean new file mode 100644 index 0000000000..52ed42edcc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/FreeField/WithinIntegralDerivative.lean @@ -0,0 +1,58 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.CStarAlgebra.Classes +public import Mathlib.Tactic.Basify +public import Mathlib.Tactic.ENatToNat +public import Mathlib.Tactic.TypeStar +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.Analysis.Calculus.Deriv.Basic +public import Mathlib.MeasureTheory.Integral.DominatedConvergence +public import Mathlib.Analysis.Calculus.Deriv.Slope + +/-! +# A genuine dominated derivative of a scalar integral within a set + +This is the closed-half-plane variant needed by the positive-energy +Laplace argument. It follows directly from actual integrability, the +complex difference-quotient characterization and dominated convergence. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Filter Set +open scoped Topology + +theorem hasDerivWithinAt_integral_of_dominated_slope + {α : Type*} [MeasurableSpace α] {μ : Measure α} + (F : ℂ → α → ℂ) (D : α → ℂ) (s : Set ℂ) (z₀ : ℂ) (hz₀ : z₀ ∈ s) + (hF : ∀ z ∈ s, Integrable (F z) μ) + (hD : ∀ a, HasDerivWithinAt (fun z => F z a) (D a) s z₀) + (B : α → ℝ) (hB : Integrable B μ) + (hbound : ∀ z ∈ s, ∀ a, ‖F z a - F z₀ a‖ ≤ B a * ‖z - z₀‖) : + HasDerivWithinAt (fun z => ∫ a, F z a ∂μ) (∫ a, D a ∂μ) s z₀ := by + have hs : ∀ᶠ z in 𝓝[s \ {z₀}] z₀, z ∈ s \ {z₀} := self_mem_nhdsWithin + have ht := tendsto_integral_filter_of_dominated_convergence + (l := 𝓝[s \ {z₀}] z₀) (F := fun z a => slope (fun w => F w a) z₀ z) + (f := D) B + (hs.mono fun z hz => by + simp only [slope_def_field] + exact ((hF z hz.1).sub (hF z₀ hz₀)).div_const (z - z₀) |>.aestronglyMeasurable) + (hs.mono fun z hz => Eventually.of_forall fun a => by + have hne : z - z₀ ≠ 0 := sub_ne_zero.mpr (by simpa using hz.2) + rw [slope_def_field, norm_div] + exact (div_le_iff₀ (norm_pos_iff.mpr hne)).mpr (hbound z hz.1 a)) + hB (Eventually.of_forall fun a => hasDerivWithinAt_iff_tendsto_slope.mp (hD a)) + rw [hasDerivWithinAt_iff_tendsto_slope] + apply (tendsto_congr' (hs.mono fun z hz => ?_)).mp ht + simp only [slope_def_field] + rw [integral_div, integral_sub (hF z hz.1) (hF z₀ hz₀)] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Gaussian/BargmannBlockCoordinates.lean b/LeanPool/VacuumBellSeparation/Gaussian/BargmannBlockCoordinates.lean new file mode 100644 index 0000000000..2490aef6c6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/BargmannBlockCoordinates.lean @@ -0,0 +1,163 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianBargmannFourier +public import LeanPool.VacuumBellSeparation.Gaussian.BargmannCoordinates + +/-! +# Explicit interleaved-to-grouped Bargmann quadratures + +The manuscript orders all q coordinates before all p coordinates. The +oscillator construction uses mode/quadrature pairs. This actual finite +bijection and the literal D_B matrix relate those conventions, including +the complex Fourier coefficient and its bilinear inverse quadratic form. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexConjugate + +/-- Reindex grouped position and momentum coordinates into adjacent pairs for each mode. -/ +def groupedToMode (m : ℕ) : (Fin m ⊕ Fin m) ≃ (Fin m × Fin 2) where + toFun := Sum.elim (fun j => (j, 0)) (fun j => (j, 1)) + invFun i := if i.2 = 0 then Sum.inl i.1 else Sum.inr i.1 + left_inv := by intro i; cases i <;> simp + right_inv := by rintro ⟨j, k⟩; fin_cases k <;> simp + +/-- Bargmann pair given by `Sum.elim (fun j => conj (a j)) (fun j => b j)`. -/ +def bargmannPair {m : ℕ} (a b : MultiModePhaseSpace m) : Fin m ⊕ Fin m → ℂ := + Sum.elim (fun j => conj (a j)) (fun j => b j) + +/-- Interleaved Bargmann quadratures given by `(bargmannD *ᵥ bargmannPair a b) ∘ (groupedToMode +m).symm`. -/ +def interleavedBargmannQuadratures {m : ℕ} (a b : MultiModePhaseSpace m) : Fin m × Fin 2 → ℂ := + (bargmannD *ᵥ bargmannPair a b) ∘ (groupedToMode m).symm + +theorem bargmannD_mulVec_pair_left {m : ℕ} (a b : MultiModePhaseSpace m) (j : Fin m) : + (bargmannD *ᵥ bargmannPair a b) (Sum.inl j) = + (((Real.sqrt 2)⁻¹ : ℝ) : ℂ) * (conj (a j) + b j) := by + simp only [bargmannD, unscaledBargmannD, bargmannPair, smul_mulVec, + fromBlocks_mulVec, one_mulVec, Pi.smul_apply, Pi.add_apply, + Function.comp_apply, Sum.elim_inl, Sum.elim_inr, smul_eq_mul] + +theorem bargmannD_mulVec_pair_right {m : ℕ} (a b : MultiModePhaseSpace m) (j : Fin m) : + (bargmannD *ᵥ bargmannPair a b) (Sum.inr j) = + (((Real.sqrt 2)⁻¹ : ℝ) : ℂ) * Complex.I * (conj (a j) - b j) := by + simp only [bargmannD, unscaledBargmannD, bargmannPair, smul_mulVec, + fromBlocks_mulVec, one_mulVec, Pi.smul_apply, Pi.add_apply, + Function.comp_apply, Sum.elim_inl, Sum.elim_inr, smul_eq_mul] + ring + +theorem complex_modeSymplectic_mulVec_zero {m : ℕ} (r : Fin m × Fin 2 → ℂ) (j : Fin m) : + (complexifyMatrix modeSymplecticForm *ᵥ r) (j, 0) = r (j, 1) := by + simp [Matrix.mulVec, dotProduct, Fintype.sum_prod_type, Fin.sum_univ_two, + complexifyMatrix, modeSymplecticForm, oneModeSymplecticForm, + Matrix.one_apply, apply_ite, ite_mul] + +theorem complex_modeSymplectic_mulVec_one {m : ℕ} (r : Fin m × Fin 2 → ℂ) (j : Fin m) : + (complexifyMatrix modeSymplecticForm *ᵥ r) (j, 1) = -r (j, 0) := by + simp [Matrix.mulVec, dotProduct, Fintype.sum_prod_type, Fin.sum_univ_two, + complexifyMatrix, modeSymplecticForm, oneModeSymplecticForm, + Matrix.one_apply, apply_ite, ite_mul] + +theorem bargmannFourierCoefficient_eq_rotated {m : ℕ} (a b : MultiModePhaseSpace m) : + bargmannFourierCoefficient a b = + (Complex.I * (Real.sqrt 2 : ℂ)) • + (complexifyMatrix modeSymplecticForm *ᵥ interleavedBargmannQuadratures a b) := by + have hs : (Real.sqrt 2 : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr + (ne_of_gt (Real.sqrt_pos.mpr (by norm_num : (0 : ℝ) < 2))) + have hzero (j : Fin m) : interleavedBargmannQuadratures a b (j, 0) = + (((Real.sqrt 2)⁻¹ : ℝ) : ℂ) * (conj (a j) + b j) := by + change (bargmannD *ᵥ bargmannPair a b) (Sum.inl j) = _ + exact bargmannD_mulVec_pair_left a b j + have hone (j : Fin m) : interleavedBargmannQuadratures a b (j, 1) = + (((Real.sqrt 2)⁻¹ : ℝ) : ℂ) * Complex.I * (conj (a j) - b j) := by + change (bargmannD *ᵥ bargmannPair a b) (Sum.inr j) = _ + exact bargmannD_mulVec_pair_right a b j + funext i + obtain ⟨j, k⟩ := i + fin_cases k + · change b j - conj (a j) = (Complex.I * (Real.sqrt 2 : ℂ)) * + (complexifyMatrix modeSymplecticForm *ᵥ interleavedBargmannQuadratures a b) (j, 0) + rw [complex_modeSymplectic_mulVec_zero, hone] + simp only [Complex.ofReal_inv] + field_simp [hs]; ring_nf; simp [Complex.I_sq, sub_eq_add_neg] + · change -Complex.I * (b j + conj (a j)) = (Complex.I * (Real.sqrt 2 : ℂ)) * + (complexifyMatrix modeSymplecticForm *ᵥ interleavedBargmannQuadratures a b) (j, 1) + rw [complex_modeSymplectic_mulVec_one, hzero] + simp only [Complex.ofReal_inv] + field_simp [hs]; ring + +theorem complex_dotProduct_congruence {ι κ : Type*} [Fintype ι] [Fintype κ] + (S : Matrix ι κ ℂ) (A : Matrix κ κ ℂ) (x y : ι → ℂ) : + (Sᵀ *ᵥ x) ⬝ᵥ (A *ᵥ (Sᵀ *ᵥ y)) = x ⬝ᵥ ((S * A * Sᵀ) *ᵥ y) := by + calc + _ = (A *ᵥ (Sᵀ *ᵥ y)) ⬝ᵥ (Sᵀ *ᵥ x) := dotProduct_comm _ _ + _ = x ⬝ᵥ (S *ᵥ (A *ᵥ (Sᵀ *ᵥ y))) := Matrix.dotProduct_transpose_mulVec S _ x + _ = _ := by rw [Matrix.mulVec_mulVec, Matrix.mulVec_mulVec] + +theorem complex_physicalDisplacementCovariance_quadratic {m : ℕ} + (C : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (r : Fin m × Fin 2 → ℂ) : + (complexifyMatrix modeSymplecticForm *ᵥ r) ⬝ᵥ + (complexifyMatrix (physicalDisplacementCovariance C) *ᵥ + (complexifyMatrix modeSymplecticForm *ᵥ r)) = + r ⬝ᵥ (complexifyMatrix C *ᵥ r) := by + let O := complexifyMatrix (modeSymplecticForm (ι := Fin m)) + have hOt : Oᵀ = -O := by + dsimp only [O] + rw [complexifyMatrix_transpose_bilinear, transpose_modeSymplecticForm] + ext i j + simp [complexifyMatrix] + have hOO : O * O = -1 := by + dsimp only [O] + rw [← complexifyMatrix_mul, modeSymplecticForm_mul_self] + ext i j + by_cases h : i = j <;> simp [complexifyMatrix, h] + have hB : complexifyMatrix (physicalDisplacementCovariance C) = Oᵀ * complexifyMatrix C * O := by + rw [physicalDisplacementCovariance, complexifyMatrix_mul, complexifyMatrix_mul, + ← complexifyMatrix_transpose_bilinear] + have hr := complex_dotProduct_congruence Oᵀ + (complexifyMatrix (physicalDisplacementCovariance C)) r r + rw [Matrix.transpose_transpose, hB] at hr + have hm : Oᵀ * (Oᵀ * complexifyMatrix C * O) * O = complexifyMatrix C := by + calc + _ = (Oᵀ * Oᵀ) * complexifyMatrix C * (O * O) := by noncomm_ring + _ = _ := by rw [hOt, neg_mul_neg, hOO]; simp + rw [hm] at hr + simpa only [hB, O] using hr + +theorem bargmannFourierCoefficient_quadratic {m : ℕ} + (C : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (a b : MultiModePhaseSpace m) : + (1 / 4 : ℂ) * (bargmannFourierCoefficient a b ⬝ᵥ + (complexifyMatrix (physicalDisplacementCovariance C) *ᵥ bargmannFourierCoefficient a b)) = + -(1 / 2 : ℂ) * (interleavedBargmannQuadratures a b ⬝ᵥ + (complexifyMatrix C *ᵥ interleavedBargmannQuadratures a b)) := by + rw [bargmannFourierCoefficient_eq_rotated] + simp only [Matrix.mulVec_smul, smul_dotProduct, dotProduct_smul, smul_eq_mul] + rw [complex_physicalDisplacementCovariance_quadratic] + have hs : (Complex.I * (Real.sqrt 2 : ℂ)) ^ 2 = -2 := by + rw [mul_pow, Complex.I_sq, ← Complex.ofReal_pow, Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2)] + norm_num + calc + _ = (1 / 4 : ℂ) * (Complex.I * (Real.sqrt 2 : ℂ)) ^ 2 * + (interleavedBargmannQuadratures a b ⬝ᵥ + (complexifyMatrix C *ᵥ interleavedBargmannQuadratures a b)) := by ring + _ = _ := by rw [hs]; ring + +theorem reindexed_complex_quadratic {ι κ : Type*} [Fintype ι] [Fintype κ] + (e : ι ≃ κ) (M : Matrix κ κ ℂ) (u : ι → ℂ) : + u ⬝ᵥ (M.submatrix e e *ᵥ u) = (u ∘ e.symm) ⬝ᵥ (M *ᵥ (u ∘ e.symm)) := by + rw [Matrix.submatrix_mulVec_equiv] + exact dotProduct_comp_equiv_symm _ _ e.symm + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/BargmannCoordinates.lean b/LeanPool/VacuumBellSeparation/Gaussian/BargmannCoordinates.lean new file mode 100644 index 0000000000..aed2d001a5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/BargmannCoordinates.lean @@ -0,0 +1,122 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.CStarAlgebra.Classes +public import Mathlib.Tactic.Polynomial.Basic +public import Mathlib.Tactic.ReduceModChar +public import Mathlib.Tactic.TypeStar + +/-! +# Bargmann quadrature coordinates + +The explicit complex coordinate transformation at the start of Appendix A of +the manuscript. The two +copies of the index type label first the `q` and then the `p` coordinates. + +This module proves the matrix identities for `D_B` and the real-vector identity +`D_B (conj z, z) = sqrt 2 (Re z, Im z)`. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Complex + +variable {n : Type*} [Fintype n] [DecidableEq n] + +/-- The exchange matrix `S_B = [0,I; I,0]`. -/ +def bargmannSwap : Matrix (n ⊕ n) (n ⊕ n) ℂ := + Matrix.fromBlocks 0 1 1 0 + +/-- The unscaled Bargmann coordinate matrix `[I,I; iI,-iI]`. -/ +def unscaledBargmannD : Matrix (n ⊕ n) (n ⊕ n) ℂ := + Matrix.fromBlocks 1 1 (Complex.I • 1) ((-Complex.I) • 1) + +/-- The Appendix A coordinate transformation +`D_B = (1 / sqrt 2) [I,I; iI,-iI]`. -/ +noncomputable def bargmannD : Matrix (n ⊕ n) (n ⊕ n) ℂ := + (((Real.sqrt 2)⁻¹ : ℝ) : ℂ) • unscaledBargmannD + +/-- The bilinear Gram matrix of the unscaled transformation. -/ +theorem unscaledBargmannD_transpose_mul : + (unscaledBargmannD (n := n))ᵀ * unscaledBargmannD = + (2 : ℂ) • bargmannSwap := by + simp only [unscaledBargmannD, bargmannSwap, fromBlocks_transpose, + fromBlocks_multiply, fromBlocks_smul, transpose_one, transpose_smul, + Matrix.mul_smul, smul_smul, mul_one] + congr 1 <;> simp [two_smul ℂ] + +/-- The Hermitian Gram matrix of the unscaled transformation. -/ +theorem unscaledBargmannD_conjTranspose_mul : + (unscaledBargmannD (n := n))ᴴ * unscaledBargmannD = (2 : ℂ) • 1 := by + rw [unscaledBargmannD, fromBlocks_conjTranspose, fromBlocks_multiply, + ← fromBlocks_one, fromBlocks_smul] + congr 1 <;> simp [conjTranspose_smul, smul_smul, two_smul ℂ] + +private theorem bargmann_scale_sq : + (((Real.sqrt 2)⁻¹ : ℝ) : ℂ) * (((Real.sqrt 2)⁻¹ : ℝ) : ℂ) * 2 = 1 := by + have hs : (((Real.sqrt 2 : ℝ) : ℂ)) ^ 2 = 2 := by + exact_mod_cast Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2) + simp only [Complex.ofReal_inv] + rw [← mul_inv, ← pow_two, hs] + norm_num + +/-- The identity `D_Bᵀ D_B = S_B` used to derive the Bargmann kernel from +the coherent-state diagonal. The transpose here is deliberately bilinear, +not conjugate-transpose. -/ +theorem bargmannD_transpose_mul : + (bargmannD (n := n))ᵀ * bargmannD = bargmannSwap := by + rw [bargmannD, transpose_smul, Matrix.smul_mul, Matrix.mul_smul, + unscaledBargmannD_transpose_mul, smul_smul, smul_smul, + bargmann_scale_sq, one_smul] + +/-- The coordinate transformation is unitary. -/ +theorem bargmannD_conjTranspose_mul : + (bargmannD (n := n))ᴴ * bargmannD = 1 := by + rw [bargmannD, conjTranspose_smul, Matrix.smul_mul, Matrix.mul_smul, + unscaledBargmannD_conjTranspose_mul] + have hs : star (((Real.sqrt 2)⁻¹ : ℝ) : ℂ) = (((Real.sqrt 2)⁻¹ : ℝ) : ℂ) := + RCLike.conj_ofReal _ + simp only [hs, smul_smul, ← mul_assoc, + bargmann_scale_sq, one_smul] + +/-- A conjugate pair of complex coordinates `(conj z, z)`. -/ +def conjugatePair (z : n → ℂ) : n ⊕ n → ℂ := + Sum.elim (fun j => star (z j)) z + +/-- The real phase-space coordinate vector `sqrt 2 (Re z, Im z)`, included +in complex coordinate space. -/ +noncomputable def coherentQuadratures (z : n → ℂ) : n ⊕ n → ℂ := + Sum.elim (fun j => ((Real.sqrt 2 * (z j).re : ℝ) : ℂ)) + (fun j => ((Real.sqrt 2 * (z j).im : ℝ) : ℂ)) + +/-- The manuscript's exact real-coordinate identity +`D_B (conj z, z) = sqrt 2 (Re z, Im z)`. -/ +theorem bargmannD_mulVec_conjugatePair (z : n → ℂ) : + bargmannD *ᵥ conjugatePair z = coherentQuadratures z := by + have hs : Real.sqrt 2 * Real.sqrt 2 = 2 := Real.mul_self_sqrt (by norm_num) + have hn : Real.sqrt 2 ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr (by norm_num)) + have hscale : (Real.sqrt 2)⁻¹ * 2 = Real.sqrt 2 := by + calc + _ = (Real.sqrt 2)⁻¹ * (Real.sqrt 2 * Real.sqrt 2) := by rw [hs] + _ = _ := by rw [← mul_assoc, inv_mul_cancel₀ hn, one_mul] + ext j + rcases j with j | j + · simp only [bargmannD, unscaledBargmannD, smul_mulVec, fromBlocks_mulVec, + one_mulVec, conjugatePair, coherentQuadratures, Pi.smul_apply, Pi.add_apply, + Function.comp_apply, Sum.elim_inl, Sum.elim_inr, smul_eq_mul] + apply Complex.ext <;> simp [Complex.mul_re, Complex.mul_im]; + nlinarith [hscale] + · simp only [bargmannD, unscaledBargmannD, smul_mulVec, fromBlocks_mulVec, + one_mulVec, conjugatePair, coherentQuadratures, Pi.smul_apply, Pi.add_apply, + Function.comp_apply, Sum.elim_inl, Sum.elim_inr, smul_eq_mul] + apply Complex.ext <;> simp [Complex.mul_re, Complex.mul_im]; + nlinarith [hscale] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/BargmannL2.lean b/LeanPool/VacuumBellSeparation/Gaussian/BargmannL2.lean new file mode 100644 index 0000000000..40073e0095 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/BargmannL2.lean @@ -0,0 +1,135 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentGaussianMoments +public import Mathlib.MeasureTheory.Function.L2Space + +/-! +# The actual Gaussian monomials in complex-plane L² + +Normalized Gaussian monomials form an orthonormal family for complex +Lebesgue measure. The pinned Hilbert-sum construction therefore supplies +an actual isometry from the infinite oscillator ℓ² space into this L² +space. No surjectivity onto all L², pointwise evaluation theorem, or +Gaussian sandwich formula is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate + +/-- Bargmann monomial given by `(Real.exp (-‖z‖ ^ 2 / 2) / Real.sqrt (Real.pi * (n.factorial : ℝ)) +: ℝ) * z ^ n`. -/ +noncomputable def bargmannMonomial (n : ℕ) (z : ℂ) : ℂ := + (Real.exp (-‖z‖ ^ 2 / 2) / Real.sqrt (Real.pi * (n.factorial : ℝ)) : ℝ) * z ^ n + +theorem bargmannMonomial_norm_sq (n : ℕ) (z : ℂ) : + ‖bargmannMonomial n z‖ ^ 2 = + (‖z‖ ^ (2 * n) * Real.exp (-‖z‖ ^ 2)) / (Real.pi * (n.factorial : ℝ)) := by + have hexp : Real.exp (-‖z‖ ^ 2 / 2) ^ 2 = Real.exp (-‖z‖ ^ 2) := by + rw [pow_two, ← Real.exp_add] + congr 1 + ring + rw [bargmannMonomial, norm_mul, Complex.norm_real, Real.norm_eq_abs, mul_pow, + sq_abs, div_pow, Real.sq_sqrt (by positivity), hexp, norm_pow, ← pow_mul] + rw [Nat.mul_comm n 2] + ring + +theorem memLp_bargmannMonomial (n : ℕ) : + MemLp (bargmannMonomial n) 2 (volume : Measure ℂ) := by + apply (memLp_two_iff_integrable_sq_norm ?_).mpr + · have h := (integrable_gaussian_radial_even_moment (a := 1) (by norm_num) n).div_const + (Real.pi * (n.factorial : ℝ)) + simpa only [bargmannMonomial_norm_sq, neg_mul, one_mul] using h + · have hc : Continuous (bargmannMonomial n) := by unfold bargmannMonomial; fun_prop + exact hc.aestronglyMeasurable + +theorem integral_bargmannMonomial_norm_sq (n : ℕ) : + (∫ z : ℂ, ‖bargmannMonomial n z‖ ^ 2) = 1 := by + simp_rw [bargmannMonomial_norm_sq] + rw [integral_div] + have h := integral_gaussian_radial_even_moment (a := 1) (by norm_num) n + simp only [neg_mul, one_mul, one_pow, div_one] at h + rw [h, div_self (by positivity : Real.pi * (n.factorial : ℝ) ≠ 0)] + +theorem bargmannMonomial_inner (m n : ℕ) (z : ℂ) : + inner ℂ (bargmannMonomial m z) (bargmannMonomial n z) = + (Real.sqrt (Real.pi * (m.factorial : ℝ)) * + Real.sqrt (Real.pi * (n.factorial : ℝ)) : ℂ)⁻¹ * + ((Real.exp (-‖z‖ ^ 2) : ℂ) * conj z ^ m * z ^ n) := by + have hexp : Real.exp (-‖z‖ ^ 2 / 2) * Real.exp (-‖z‖ ^ 2 / 2) = + Real.exp (-‖z‖ ^ 2) := by rw [← Real.exp_add]; congr 1; ring + rw [RCLike.inner_apply', bargmannMonomial, bargmannMonomial, + map_mul, map_pow, Complex.conj_ofReal] + push_cast + calc + _ = (((Real.exp (-‖z‖ ^ 2 / 2) * Real.exp (-‖z‖ ^ 2 / 2) : ℝ) : ℂ) / + ((Real.sqrt (Real.pi * (m.factorial : ℝ)) : ℂ) * + (Real.sqrt (Real.pi * (n.factorial : ℝ)) : ℂ))) * + conj z ^ m * z ^ n := by push_cast; ring + _ = _ := by + have hc : Complex.exp (-((‖z‖ : ℝ) : ℂ) ^ 2) = + ((Real.exp (-‖z‖ ^ 2) : ℝ) : ℂ) := by + rw [Complex.ofReal_exp] + congr 1 + push_cast + rfl + rw [hexp, hc] + ring + +/-- The Gaussian monomial as an actual L² equivalence class. -/ +noncomputable def bargmannBasisVector (n : ℕ) : Lp ℂ 2 (volume : Measure ℂ) := + (memLp_bargmannMonomial n).toLp (bargmannMonomial n) + +theorem inner_bargmannBasisVector (m n : ℕ) : + inner ℂ (bargmannBasisVector m) (bargmannBasisVector n) = + if m = n then 1 else 0 := by + rw [L2.inner_def] + have hae : (fun z => inner ℂ (bargmannBasisVector m z) (bargmannBasisVector n z)) + =ᵐ[volume] fun z => inner ℂ (bargmannMonomial m z) (bargmannMonomial n z) := by + filter_upwards [(memLp_bargmannMonomial m).coeFn_toLp, + (memLp_bargmannMonomial n).coeFn_toLp] with z hm hn + change inner ℂ (((memLp_bargmannMonomial m).toLp (bargmannMonomial m) : + Lp ℂ 2 (volume : Measure ℂ)) z) + (((memLp_bargmannMonomial n).toLp (bargmannMonomial n) : + Lp ℂ 2 (volume : Measure ℂ)) z) = _ + rw [hm, hn] + rw [integral_congr_ae hae] + by_cases hmn : m = n + · subst m + simp only [ite_true, inner_self_eq_norm_sq_to_K, RCLike.ofReal_eq_complex_ofReal, + ← Complex.ofReal_pow] + rw [integral_complex_ofReal, integral_bargmannMonomial_norm_sq, Complex.ofReal_one] + · simp only [hmn, ite_false] + simp_rw [bargmannMonomial_inner] + rw [integral_const_mul] + have h := integral_gaussian_monomial (a := 1) (by norm_num) m n + simp only [neg_mul, one_mul, hmn, ite_false] at h + rw [h, mul_zero] + +theorem orthonormal_bargmannBasisVector : Orthonormal ℂ bargmannBasisVector := + orthonormal_iff_ite.mpr inner_bargmannBasisVector + +/-- A genuine infinite-dimensional Bargmann isometry into complex-plane L². +Its range is the closed span of the Gaussian monomials; no assertion that +this range is the whole L² space is made here. -/ +noncomputable def bargmannL2 : OscillatorSpace →ₗᵢ[ℂ] Lp ℂ 2 (volume : Measure ℂ) := + orthonormal_bargmannBasisVector.orthogonalFamily.linearIsometry + +theorem bargmannL2_apply_single (n : ℕ) (c : ℂ) : + bargmannL2 (lp.single 2 n c) = c • bargmannBasisVector n := by + rw [bargmannL2, OrthogonalFamily.linearIsometry_apply_single, + LinearIsometry.toSpanSingleton_apply] + +theorem norm_bargmannL2 (x : OscillatorSpace) : ‖bargmannL2 x‖ = ‖x‖ := + bargmannL2.norm_map x + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/BargmannPointwise.lean b/LeanPool/VacuumBellSeparation/Gaussian/BargmannPointwise.lean new file mode 100644 index 0000000000..939c84b974 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/BargmannPointwise.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.BargmannL2 + +/-! +# Pointwise realization of the Bargmann isometry + +The pointwise entire-series expression is identified almost everywhere +with the genuine L² isometry using L² convergence, an almost-everywhere +convergent subsequence, and the convergent scalar coherent series. This +proves an actual integral inner-product identity for arbitrary oscillator +vectors without interchanging an uncontrolled infinite sum and integral. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Filter Topology +open scoped ComplexConjugate + +/-- Bargmann function. -/ +noncomputable def bargmannFunction (x : OscillatorSpace) (z : ℂ) : ℂ := + (Real.exp (-‖z‖ ^ 2 / 2) / Real.sqrt Real.pi : ℝ) * + inner ℂ (exponentialVector (conj z)) x + +theorem bargmannMonomial_eq_coherentCoefficient (n : ℕ) (z : ℂ) : + bargmannMonomial n z = + (Real.exp (-‖z‖ ^ 2 / 2) / Real.sqrt Real.pi : ℝ) * coherentCoefficient z n := by + rw [bargmannMonomial, coherentCoefficient, Real.sqrt_mul Real.pi_pos.le] + push_cast + ring + +theorem hasSum_bargmannFunction (x : OscillatorSpace) (z : ℂ) : + HasSum (fun n => x n * bargmannMonomial n z) (bargmannFunction x z) := by + have h := (lp.hasSum_inner (exponentialVector (conj z)) x).mul_left + ((Real.exp (-‖z‖ ^ 2 / 2) / Real.sqrt Real.pi : ℝ) : ℂ) + have he (c a w : ℂ) (n : ℕ) : + c * (a * coherentCoefficient w n) = + a * (conj (coherentCoefficient (conj w) n) * c) := by + simp only [coherentCoefficient, map_div₀, map_pow, starRingEnd_self_apply, + Complex.conj_ofReal] + ring + change HasSum _ (((Real.exp (-‖z‖ ^ 2 / 2) / Real.sqrt Real.pi : ℝ) : ℂ) * + inner ℂ (exponentialVector (conj z)) x) + apply h.congr_fun + intro n + simp only [exponentialVector_apply, RCLike.inner_apply'] + exact ((congrArg (fun a : ℂ => x n * a) + (bargmannMonomial_eq_coherentCoefficient n z)).trans (he _ _ _ _)) + +theorem hasSum_bargmannL2 (x : OscillatorSpace) : + HasSum (fun n => x n • bargmannBasisVector n) (bargmannL2 x) := by + simpa only [bargmannL2, LinearIsometry.toSpanSingleton_apply] using + orthonormal_bargmannBasisVector.orthogonalFamily.hasSum_linearIsometry x + +theorem bargmannL2_ae_eq_function (x : OscillatorSpace) : + (bargmannL2 x : ℂ → ℂ) =ᵐ[volume] bargmannFunction x := by + let F : ℕ → Lp ℂ 2 (volume : Measure ℂ) := fun n => x n • bargmannBasisVector n + have hsum : Tendsto (fun N => ∑ n ∈ Finset.range N, F n) atTop (𝓝 (bargmannL2 x)) := + (hasSum_bargmannL2 x).tendsto_sum_nat + obtain ⟨ns, hns, hlim⟩ := + (tendstoInMeasure_of_tendsto_Lp hsum).exists_seq_tendsto_ae + have hterms : ∀ᵐ z ∂(volume : Measure ℂ), ∀ n, + F n z = x n * bargmannMonomial n z := by + apply ae_all_iff.mpr + intro n + filter_upwards [Lp.coeFn_smul (x n) (bargmannBasisVector n), + (memLp_bargmannMonomial n).coeFn_toLp] with z hsmul hmono + change (x n • bargmannBasisVector n) z = _ + change bargmannBasisVector n z = bargmannMonomial n z at hmono + exact hsmul.trans (congrArg (fun a : ℂ => x n * a) hmono) + have hsums : ∀ᵐ z ∂(volume : Measure ℂ), ∀ N, + (∑ n ∈ Finset.range N, F n) z = ∑ n ∈ Finset.range N, F n z := + ae_all_iff.mpr fun N => Lp.coeFn_fun_finsetSum (Finset.range N) F + filter_upwards [hlim, hterms, hsums] with z hz hterm hpartial + have hscalar := (hasSum_bargmannFunction x z).tendsto_sum_nat.comp hns.tendsto_atTop + have hscalar' : Tendsto + (fun N => (∑ n ∈ Finset.range (ns N), F n) z) atTop (𝓝 (bargmannFunction x z)) := by + have heq : (fun N => (∑ n ∈ Finset.range (ns N), F n) z) = + (fun N => ∑ n ∈ Finset.range N, x n * bargmannMonomial n z) ∘ ns := by + funext N + change (∑ n ∈ Finset.range (ns N), F n) z = + ∑ n ∈ Finset.range (ns N), x n * bargmannMonomial n z + rw [hpartial] + exact Finset.sum_congr rfl fun n _ => hterm n + rw [heq] + exact hscalar + exact tendsto_nhds_unique hz hscalar' + +theorem memLp_bargmannFunction (x : OscillatorSpace) : + MemLp (bargmannFunction x) 2 (volume : Measure ℂ) := + (Lp.memLp (bargmannL2 x)).ae_eq (bargmannL2_ae_eq_function x) + +theorem integral_inner_bargmannFunction (x y : OscillatorSpace) : + (∫ z : ℂ, inner ℂ (bargmannFunction x z) (bargmannFunction y z)) = inner ℂ x y := by + calc + (∫ z : ℂ, inner ℂ (bargmannFunction x z) (bargmannFunction y z)) = + inner ℂ (bargmannL2 x) (bargmannL2 y) := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [bargmannL2_ae_eq_function x, bargmannL2_ae_eq_function y] with z hx hy + rw [hx, hy] + _ = inner ℂ x y := bargmannL2.inner_map_map x y + +theorem integrable_inner_bargmannFunction (x y : OscillatorSpace) : + Integrable (fun z : ℂ => inner ℂ (bargmannFunction x z) (bargmannFunction y z)) := by + have h := L2.integrable_inner (𝕜 := ℂ) (bargmannL2 x) (bargmannL2 y) + apply h.congr + filter_upwards [bargmannL2_ae_eq_function x, bargmannL2_ae_eq_function y] with z hx hy + rw [hx, hy] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CanonicalThermalModel.lean b/LeanPool/VacuumBellSeparation/Gaussian/CanonicalThermalModel.lean new file mode 100644 index 0000000000..9fef34569c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CanonicalThermalModel.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WeylCoherentRepresentation +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryTrace +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowers + +/-! +# Actual one-mode Weyl action and transported thermal density + +The constructed unitary transports the existing Weyl operators to ℓ² and +the actual thermal density back to the existing Weyl Hilbert space. The +Weyl relations, coherent action, density normalization and fractional trace +formula follow through that unitary. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem id_add (z w : ℂ) : (id : ℂ → ℂ) (z + w) = id z + id w := rfl + +/-- Actual Weyl displacement on the number-basis Hilbert space. -/ +noncomputable def oscillatorWeyl (z : ℂ) : OscillatorSpace →L[ℂ] OscillatorSpace := + weylCoherentEquiv.conjStarAlgEquiv (weylCLM (id : ℂ → ℂ) id_add z) + +theorem oscillatorWeyl_mem_unitary (z : ℂ) : + oscillatorWeyl z ∈ unitary (OscillatorSpace →L[ℂ] OscillatorSpace) := + Unitary.map_mem weylCoherentEquiv.conjStarAlgEquiv + (weylCLM_mem_unitary (id : ℂ → ℂ) id_add z) + +theorem oscillatorWeyl_mul (z w : ℂ) : + oscillatorWeyl z * oscillatorWeyl w = + weylPhase (id : ℂ → ℂ) z w • oscillatorWeyl (z + w) := by + unfold oscillatorWeyl + rw [← map_mul, weylCLM_mul] + exact weylCoherentEquiv.conjStarAlgEquiv.toAlgEquiv.toLinearEquiv.map_smul _ _ + +theorem oscillatorWeyl_coherentVector (z w : ℂ) : + oscillatorWeyl z (coherentVector w) = + weylPhase (id : ℂ → ℂ) z w • coherentVector (z + w) := by + rw [oscillatorWeyl, LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, + ← weylCoherentEquiv_weylVec w, weylCoherentEquiv.symm_apply_apply, + weylCLM_apply, weylOp_weylVec, map_smul, weylCoherentEquiv_weylVec] + +theorem norm_coherentVector_zero : ‖coherentVector 0‖ = 1 := by + rw [← weylCoherentEquiv_weylVec 0, weylCoherentEquiv.norm_map] + exact norm_weylVec_zero (id : ℂ → ℂ) id_add + +theorem oscillatorWeyl_vacuum (z : ℂ) : + inner ℂ (coherentVector 0) (oscillatorWeyl z (coherentVector 0)) = + ((Real.exp (-(‖z‖ ^ 2 / 2)) : ℝ) : ℂ) := by + rw [oscillatorWeyl_coherentVector, weylPhase_zero_right (id : ℂ → ℂ) id_add, + one_smul, add_zero, ← weylCoherentEquiv_weylVec 0, + ← weylCoherentEquiv_weylVec z, weylCoherentEquiv.inner_map_map] + exact inner_weylVec_zero_left (id : ℂ → ℂ) id_add z + +/-- The actual thermal density on the existing one-mode Weyl Hilbert space. -/ +noncomputable def weylThermalDensity (q : ℝ) : + WeylSpace (id : ℂ → ℂ) →L[ℂ] WeylSpace (id : ℂ → ℂ) := + weylCoherentEquiv.symm.conjStarAlgEquiv (thermalDensity q) + +theorem weylThermalDensity_isFaithfulDensity {q : ℝ} (hq₀ : 0 < q) (hq₁ : q < 1) : + IsFaithfulDensity (weylThermalDensity q) := + IsFaithfulDensity.conjStarAlgEquiv weylCoherentEquiv.symm + (thermalDensity_isFaithfulDensity hq₀ hq₁) + +theorem positiveTrace_weylThermalDensity {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) : + positiveTrace (weylThermalDensity q) = 1 := by + rw [weylThermalDensity, + positiveTrace_conjStarAlgEquiv weylCoherentEquiv.symm (thermalDensity_nonneg hq₀ hq₁), + positiveTrace_thermalDensity hq₀ hq₁] + +theorem positiveTrace_weylThermalDensity_rpow {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + positiveTrace (weylThermalDensity q ^ τ) = + ENNReal.ofReal ((1 - q) ^ τ / (1 - q ^ τ)) := by + rw [weylThermalDensity, + positiveTrace_conjStarAlgEquiv_rpow weylCoherentEquiv.symm + (thermalDensity_nonneg hq₀ hq₁) hτ.le] + exact positiveTrace_thermalDensity_rpow hq₀ hq₁ hτ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CoherentCoordinates.lean b/LeanPool/VacuumBellSeparation/Gaussian/CoherentCoordinates.lean new file mode 100644 index 0000000000..cae52d88da --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CoherentCoordinates.lean @@ -0,0 +1,108 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalDensity + +/-! +# Coherent coordinates on the actual one-mode oscillator space + +The exponential vector has coefficients `z^k / sqrt(k!)` in ℓ². Its inner +product and the thermal operator's coherent kernel follow from convergent +series. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal ComplexConjugate + +/-- Coherent coefficient given by `z ^ k / (Real.sqrt (k.factorial : ℝ) : ℂ)`. -/ +noncomputable def coherentCoefficient (z : ℂ) (k : ℕ) : ℂ := + z ^ k / (Real.sqrt (k.factorial : ℝ) : ℂ) + +theorem coherentCoefficient_norm_sq (z : ℂ) (k : ℕ) : + ‖coherentCoefficient z k‖ ^ 2 = (‖z‖ ^ 2) ^ k / (k.factorial : ℝ) := by + rw [coherentCoefficient, norm_div, norm_pow, + Complex.norm_of_nonneg (Real.sqrt_nonneg _), div_pow, + Real.sq_sqrt (Nat.cast_nonneg _)] + rw [← pow_mul, ← pow_mul, Nat.mul_comm k 2] + +theorem coherentCoefficient_memℓp (z : ℂ) : Memℓp (coherentCoefficient z) 2 := by + apply (memℓp_gen_iff (by norm_num : 0 < (2 : ℝ≥0∞).toReal)).mpr + have h : Summable fun k => ‖coherentCoefficient z k‖ ^ 2 := by + simpa only [coherentCoefficient_norm_sq] using Real.summable_pow_div_factorial (‖z‖ ^ 2) + simpa [Real.rpow_two] using h + +/-- The unnormalized coherent (exponential) vector in ℓ². -/ +noncomputable def exponentialVector (z : ℂ) : OscillatorSpace := + ⟨coherentCoefficient z, coherentCoefficient_memℓp z⟩ + +@[simp] +theorem exponentialVector_apply (z : ℂ) (k : ℕ) : + exponentialVector z k = coherentCoefficient z k := rfl + +theorem coherentCoefficient_inner (z w : ℂ) (k : ℕ) : + inner ℂ (coherentCoefficient z k) (coherentCoefficient w k) = + (conj z * w) ^ k / (k.factorial : ℂ) := by + have hden : (Real.sqrt (k.factorial : ℝ) : ℂ) ^ 2 = (k.factorial : ℂ) := by + exact_mod_cast Real.sq_sqrt (Nat.cast_nonneg k.factorial : 0 ≤ (k.factorial : ℝ)) + rw [RCLike.inner_apply', coherentCoefficient, coherentCoefficient, map_div₀, + map_pow, Complex.conj_ofReal, div_mul_div_comm, ← mul_pow, ← pow_two, hden] + +theorem inner_exponentialVector (z w : ℂ) : + inner ℂ (exponentialVector z) (exponentialVector w) = Complex.exp (conj z * w) := by + rw [lp.inner_eq_tsum] + simp_rw [exponentialVector_apply, coherentCoefficient_inner] + rw [Complex.exp_eq_exp_ℂ] + exact (NormedSpace.expSeries_div_hasSum_exp (conj z * w)).tsum_eq + +theorem norm_exponentialVector_sq (z : ℂ) : + ‖exponentialVector z‖ ^ 2 = Real.exp (‖z‖ ^ 2) := by + have h := lp.norm_rpow_eq_tsum (p := 2) (by norm_num) (exponentialVector z) + have hn : ‖exponentialVector z‖ ^ 2 = + ∑' k, (‖z‖ ^ 2) ^ k / (k.factorial : ℝ) := by + simpa [Real.rpow_two, coherentCoefficient_norm_sq] using h + rw [hn, Real.exp_eq_exp_ℝ] + exact (NormedSpace.expSeries_div_hasSum_exp (‖z‖ ^ 2)).tsum_eq + +theorem numberBasis_inner (x : OscillatorSpace) (k : ℕ) : + inner ℂ (numberBasis k) x = x k := by + rw [← numberBasis.repr_apply_apply] + rfl + +theorem thermalDensity_apply_coordinate {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) + (x : OscillatorSpace) (k : ℕ) : + thermalDensity q x k = (thermalWeight q k : ℂ) * x k := by + have h := diagonalOperator_inner numberBasis (hasSum_thermalWeight hq₀ hq₁).summable + (fun j => mul_nonneg (sub_nonneg.mpr hq₁.le) (pow_nonneg hq₀ j)) x k + simpa only [thermalDensity, numberBasis_inner] using h + +theorem thermalDensity_apply_exponentialVector {q : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (z : ℂ) : + thermalDensity q (exponentialVector z) = (1 - q) • exponentialVector ((q : ℂ) * z) := by + ext k + rw [thermalDensity_apply_coordinate hq₀ hq₁] + change (thermalWeight q k : ℂ) * coherentCoefficient z k = + (1 - q) • coherentCoefficient ((q : ℂ) * z) k + simp only [coherentCoefficient, thermalWeight, Complex.ofReal_mul, Complex.ofReal_pow, + Complex.ofReal_sub, Complex.ofReal_one, RCLike.real_smul_eq_coe_mul, + RCLike.ofReal_eq_complex_ofReal, mul_pow] + ring + +/-- The thermal Bargmann kernel in actual ℓ² coherent coordinates. -/ +theorem thermalDensity_coherent_kernel {q : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (z w : ℂ) : + inner ℂ (exponentialVector z) (thermalDensity q (exponentialVector w)) = + ((1 - q : ℝ) : ℂ) * Complex.exp ((q : ℂ) * (conj z * w)) := by + rw [thermalDensity_apply_exponentialVector hq₀ hq₁, + inner_smul_right_eq_smul, inner_exponentialVector, RCLike.real_smul_eq_coe_mul] + congr 2 + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CoherentFrameFourier.lean b/LeanPool/VacuumBellSeparation/Gaussian/CoherentFrameFourier.lean new file mode 100644 index 0000000000..457e0ef0f6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CoherentFrameFourier.lean @@ -0,0 +1,231 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentPositiveTrace +public import LeanPool.VacuumBellSeparation.Gaussian.WeylCoherentInversion +public import Mathlib.MeasureTheory.Function.Holder + +/-! +# Fourier multipliers of the actual coherent frame + +The frame is the actual Bargmann L² isometry followed by measure-preserving +complex conjugation. Bounded Fourier multiplication on L² and the adjoint +frame give a bounded operator. Its exponential-vector matrix elements are +actual Gaussian integrals, which identify it with a Gaussian multiple of +Weyl displacement. No operator-valued integral over the infinite-volume +coherent frame is asserted. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory ContinuousLinearMap +open scoped ComplexConjugate + +/-- Multi coherent frame L². -/ +def multiCoherentFrameL2 (m : ℕ) : MultiModeOscillatorSpace m →ₗᵢ[ℂ] + Lp ℂ 2 (volume : Measure (Fin m → ℂ)) := + (Lp.compMeasurePreservingₗᵢ ℂ (multiConjugation m) + (multiConjugation_measurePreserving m)).comp (multiBargmannL2 m) + +theorem multiCoherentFrameL2_ae_eq_coordinate {m : ℕ} (x : MultiModeOscillatorSpace m) : + (multiCoherentFrameL2 m x : (Fin m → ℂ) → ℂ) =ᵐ[volume] + multiCoherentFrameCoordinate x := by + have h₁ := Lp.coeFn_compMeasurePreserving (multiBargmannL2 m x) + (multiConjugation_measurePreserving m) + have h₂ := (multiConjugation_measurePreserving m).quasiMeasurePreserving.ae_eq_comp + (multiBargmannL2_ae_eq_function x) + filter_upwards [h₁, h₂] with z hz hz' + change Lp.compMeasurePreserving (multiConjugation m) + (multiConjugation_measurePreserving m) (multiBargmannL2 m x) z = _ + rw [hz, hz'] + exact multiBargmannFunction_conj x z + +theorem continuous_coherentFourierPhase {m : ℕ} (z : MultiModePhaseSpace m) : + Continuous (fun w : Fin m → ℂ => coherentFourierPhase z (WithLp.toLp 2 w)) := by + unfold coherentFourierPhase + fun_prop + +theorem memLp_top_coherentFourierPhase {m : ℕ} (z : MultiModePhaseSpace m) : + MemLp (fun w : Fin m → ℂ => coherentFourierPhase z (WithLp.toLp 2 w)) ⊤ volume := + memLp_top_of_bound (continuous_coherentFourierPhase z).aestronglyMeasurable 1 + (Filter.Eventually.of_forall fun _w => (norm_coherentFourierPhase z _).le) + +/-- Coherent Fourier multiplier. -/ +def coherentFourierMultiplier {m : ℕ} (z : MultiModePhaseSpace m) : + Lp ℂ 2 (volume : Measure (Fin m → ℂ)) →L[ℂ] + Lp ℂ 2 (volume : Measure (Fin m → ℂ)) := + (ContinuousLinearMap.mul ℂ ℂ).holderL volume ⊤ 2 2 + ((memLp_top_coherentFourierPhase z).toLp _) + +theorem coeFn_coherentFourierMultiplier {m : ℕ} (z : MultiModePhaseSpace m) + (f : Lp ℂ 2 (volume : Measure (Fin m → ℂ))) : + (coherentFourierMultiplier z f : (Fin m → ℂ) → ℂ) =ᵐ[volume] + fun w => coherentFourierPhase z (WithLp.toLp 2 w) * f w := by + have h := (ContinuousLinearMap.mul ℂ ℂ).coeFn_holder (r := 2) + ((memLp_top_coherentFourierPhase z).toLp _) f + filter_upwards [h, (memLp_top_coherentFourierPhase z).coeFn_toLp] with w hw hw' + simpa only [coherentFourierMultiplier, ContinuousLinearMap.holderL_apply_apply, + hw', ContinuousLinearMap.mul_apply'] using hw + +/-- The Weyl displacement in the coherent frame, with the Fourier change of phase-space +variables. -/ +def coherentFrameFourier {m : ℕ} (z : MultiModePhaseSpace m) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + (multiCoherentFrameL2 m).toContinuousLinearMap.adjoint.comp + ((coherentFourierMultiplier z).comp (multiCoherentFrameL2 m).toContinuousLinearMap) + +theorem integrable_coherentFrameFourier_kernel {m : ℕ} (z : MultiModePhaseSpace m) + (x y : MultiModeOscillatorSpace m) : + Integrable (fun w : Fin m → ℂ => coherentFourierPhase z (WithLp.toLp 2 w) * + inner ℂ (multiCoherentFrameCoordinate x w) (multiCoherentFrameCoordinate y w)) := by + have h := (ContinuousLinearMap.mul ℂ ℂ).integrable_of_bilin_of_bdd_left 1 + (continuous_coherentFourierPhase z).aestronglyMeasurable + (Filter.Eventually.of_forall fun w => (norm_coherentFourierPhase z _).le) + (integrable_inner_multiCoherentFrameCoordinate x y) + simpa only [ContinuousLinearMap.mul_apply'] using h + +theorem inner_coherentFrameFourier {m : ℕ} (z : MultiModePhaseSpace m) + (x y : MultiModeOscillatorSpace m) : + inner ℂ x (coherentFrameFourier z y) = + ∫ w : Fin m → ℂ, coherentFourierPhase z (WithLp.toLp 2 w) * + inner ℂ (multiCoherentFrameCoordinate x w) (multiCoherentFrameCoordinate y w) := by + change inner ℂ x ((multiCoherentFrameL2 m).toContinuousLinearMap.adjoint + (coherentFourierMultiplier z (multiCoherentFrameL2 m y))) = _ + rw [(multiCoherentFrameL2 m).toContinuousLinearMap.adjoint_inner_right, L2.inner_def] + apply integral_congr_ae + filter_upwards [multiCoherentFrameL2_ae_eq_coordinate x, + multiCoherentFrameL2_ae_eq_coordinate y, + coeFn_coherentFourierMultiplier z (multiCoherentFrameL2 m y)] with w hx hy hmul + change inner ℂ ((multiCoherentFrameL2 m x : (Fin m → ℂ) → ℂ) w) + ((coherentFourierMultiplier z (multiCoherentFrameL2 m y) : (Fin m → ℂ) → ℂ) w) = _ + rw [hx, hmul, hy] + simp only [RCLike.inner_apply'] + ring + +theorem coherentFourierPhase_eq_exp_inner {m : ℕ} (z w : MultiModePhaseSpace m) : + coherentFourierPhase z w = Complex.exp (inner ℂ w z - inner ℂ z w) := by + rw [coherentFourierPhase] + congr 1 + have h : inner ℂ w z = conj (inner ℂ z w) := (inner_conj_symm w z).symm + rw [h] + apply Complex.ext <;> + simp only [Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, + Complex.I_re, Complex.I_im, Complex.sub_re, Complex.sub_im, + Complex.conj_re, Complex.conj_im, Complex.neg_re, Complex.neg_im] <;> + norm_num; ring + +theorem coherentFrame_normalization_sq (m : ℕ) : + conj (((Real.sqrt Real.pi : ℂ) ^ m)⁻¹) * ((Real.sqrt Real.pi : ℂ) ^ m)⁻¹ = + ((Real.pi : ℂ) ^ m)⁻¹ := by + simp only [map_inv₀, map_pow, Complex.conj_ofReal, ← mul_inv_rev, ← mul_pow] + congr 2 + rw [← pow_two, ← Complex.ofReal_pow, Real.sq_sqrt Real.pi_pos.le] + +theorem coherentFrameFourier_exponential_product {m : ℕ} + (z : MultiModePhaseSpace m) (a b w : Fin m → ℂ) : + coherentFourierPhase z (WithLp.toLp 2 w) * + inner ℂ (multiCoherentFrameCoordinate (multiExponentialVector a) w) + (multiCoherentFrameCoordinate (multiExponentialVector b) w) = + ((Real.pi : ℂ) ^ m)⁻¹ * ∏ j, + Complex.exp (((-‖w j‖ ^ 2 : ℝ) : ℂ) + + (conj (a j) - conj (z j)) * w j + (b j + z j) * conj (w j)) := by + rw [coherentFourierPhase_eq_exp_inner] + simp only [multiCoherentFrameCoordinate, RCLike.inner_apply', map_mul, + multiCoherentVector, inner_smul_left, + ← Complex.exp_conj, Complex.conj_ofReal, inner_multiExponentialVector] + calc + _ = (conj (((Real.sqrt Real.pi : ℂ) ^ m)⁻¹) * + ((Real.sqrt Real.pi : ℂ) ^ m)⁻¹) * + Complex.exp ((inner ℂ (WithLp.toLp 2 w : MultiModePhaseSpace m) z - + inner ℂ z (WithLp.toLp 2 w)) + + ((-(‖(WithLp.toLp 2 w : MultiModePhaseSpace m)‖ ^ 2 / 2) : ℝ) : ℂ) + + ((-(‖(WithLp.toLp 2 w : MultiModePhaseSpace m)‖ ^ 2 / 2) : ℝ) : ℂ) + + (∑ j, conj (a j) * w j) + (∑ j, conj (w j) * b j)) := by + simp only [Complex.exp_add, map_sum, map_mul, starRingEnd_self_apply] + have haSum : (∑ j, w j * conj (a j)) = ∑ j, conj (a j) * w j := by + apply Finset.sum_congr rfl + intro j _ + exact mul_comm _ _ + rw [haSum] + ring + _ = _ := by + rw [coherentFrame_normalization_sq, ← Complex.exp_sum] + congr 2 + simp only [PiLp.inner_apply, RCLike.inner_apply', + EuclideanSpace.norm_sq_eq, Complex.ofReal_neg, Complex.ofReal_div, + Complex.ofReal_sum, Complex.ofReal_ofNat, Finset.sum_add_distrib, Finset.sum_sub_distrib, + sub_mul, add_mul, Finset.sum_neg_distrib] + have hcomm : (∑ j, conj (w j) * z j) = ∑ j, z j * conj (w j) := by + apply Finset.sum_congr rfl + intro j _ + ring + have hcomm' : (∑ j, conj (w j) * b j) = ∑ j, b j * conj (w j) := by + apply Finset.sum_congr rfl + intro j _ + ring + rw [hcomm, hcomm'] + ring + +theorem inner_coherentFrameFourier_exponential {m : ℕ} + (z : MultiModePhaseSpace m) (a b : Fin m → ℂ) : + inner ℂ (multiExponentialVector a) (coherentFrameFourier z (multiExponentialVector b)) = + weylVacuumWeight m (fun j => z j) * + inner ℂ (multiExponentialVector a) (multiOscillatorWeyl z (multiExponentialVector b)) := by + rw [inner_coherentFrameFourier] + simp_rw [coherentFrameFourier_exponential_product] + rw [integral_const_mul] + have h := integral_multiComplexGaussianBilinear (s := fun _ : Fin m => 1) + (fun _ => zero_lt_one) (fun j => conj (a j) - conj (z j)) (fun j => b j + z j) + simp only [neg_one_mul, div_one, Complex.ofReal_one] at h + rw [h, Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ, + Fintype.card_fin, ← Complex.exp_sum, ← mul_assoc, + inv_mul_cancel₀ (pow_ne_zero _ (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero)), one_mul] + rw [multiOscillatorWeyl_exponential_kernel z (WithLp.toLp 2 a) (WithLp.toLp 2 b), + weylVacuumWeight, ← Complex.exp_add] + congr 1 + simp only [PiLp.inner_apply, PiLp.add_apply, RCLike.inner_apply', + EuclideanSpace.norm_sq_eq, sub_mul, mul_add, Finset.sum_sub_distrib, + Finset.sum_add_distrib, Complex.ofReal_neg, Complex.ofReal_div, Complex.ofReal_sum, + Complex.ofReal_ofNat] + have hn : (∑ j, conj (z j) * z j) = ∑ j, ((‖z j‖ ^ 2 : ℝ) : ℂ) := by + apply Finset.sum_congr rfl + intro j _ + rw [← RCLike.inner_apply', inner_self_eq_norm_sq_to_K, + RCLike.ofReal_eq_complex_ofReal, ← Complex.ofReal_pow] + rw [hn] + ring + +/-- An actual bounded operator identity obtained from the actual coherent +L² frame. Its scalar integral is defined and integrable on every pair of vectors. -/ +theorem coherentFrameFourier_eq_weyl {m : ℕ} (z : MultiModePhaseSpace m) : + coherentFrameFourier z = weylVacuumWeight m (fun j => z j) • multiOscillatorWeyl z := by + apply continuousLinearMap_eq_of_dense_span (multiExponentialVector (m := m)) + (multiExponentialVector_dense_span m) + intro b + apply (innerSL_inj (𝕜 := ℂ)).mp + apply continuousLinearMap_eq_of_dense_span (multiExponentialVector (m := m)) + (multiExponentialVector_dense_span m) + intro a + have h := inner_coherentFrameFourier_exponential z a b + simpa only [innerSL_apply_apply, smul_apply, inner_smul_right, inner_smul_left, + map_mul, inner_conj_symm] using + congrArg conj h + +theorem integral_coherentFrameFourier_kernel {m : ℕ} (z : MultiModePhaseSpace m) + (x y : MultiModeOscillatorSpace m) : + (∫ w : Fin m → ℂ, coherentFourierPhase z (WithLp.toLp 2 w) * + inner ℂ (multiCoherentFrameCoordinate x w) (multiCoherentFrameCoordinate y w)) = + weylVacuumWeight m (fun j => z j) * inner ℂ x (multiOscillatorWeyl z y) := by + rw [← inner_coherentFrameFourier, coherentFrameFourier_eq_weyl, + smul_apply, inner_smul_right] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CoherentGaussianComplexLinear.lean b/LeanPool/VacuumBellSeparation/Gaussian/CoherentGaussianComplexLinear.lean new file mode 100644 index 0000000000..0f014b07a9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CoherentGaussianComplexLinear.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixGaussianComplexLinear +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixGaussianIntegral + +/-! +# Complex-linear Gaussian integration in genuine coherent coordinates + +The real/imaginary coordinate equivalence preserves the actual product +Lebesgue measures. Applying the actual matrix Gaussian formula at 2C gives +π^m/sqrt(det C) and the bilinear complex exponent aᵀC⁻¹a/4. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory +open scoped MatrixOrder Matrix.Norms.L2Operator + +theorem complexifyMatrix_real_smul {ι κ : Type*} + (c : ℝ) (M : Matrix ι κ ℝ) : + complexifyMatrix (c • M) = (c : ℂ) • complexifyMatrix M := by + classical + ext i j + simp only [complexifyMatrix_apply, Matrix.smul_apply, smul_eq_mul, Complex.ofReal_mul] + +/-- Coherent Gaussian complex linear. -/ +def coherentGaussianComplexLinear {m : ℕ} + (C : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (a : Fin m × Fin 2 → ℂ) + (z : Fin m → ℂ) : ℂ := + Complex.exp ((-(complexRealCoordinates m z ⬝ᵥ (C *ᵥ complexRealCoordinates m z)) : ℝ) + + a ⬝ᵥ (fun i => (complexRealCoordinates m z i : ℂ))) + +theorem coherentGaussianComplexLinear_eq {m : ℕ} + (C : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (a : Fin m × Fin 2 → ℂ) + (z : Fin m → ℂ) : + coherentGaussianComplexLinear C a z = + matrixGaussianComplexLinear ((2 : ℝ) • C) a (complexRealCoordinates m z) := by + simp only [coherentGaussianComplexLinear, matrixGaussianComplexLinear, + Matrix.smul_mulVec, dotProduct_smul, smul_eq_mul] + congr 1 + push_cast + ring + +theorem integrable_coherentGaussianComplexLinear {m : ℕ} + {C : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hC : C.PosDef) + (a : Fin m × Fin 2 → ℂ) : Integrable (coherentGaussianComplexLinear C a) := by + have h := (complexRealCoordinates_measurePreserving m).integrable_comp_of_integrable + (integrable_matrixGaussianComplexLinear (hC.smul (by norm_num : (0 : ℝ) < 2)) a) + simpa only [Function.comp_def, ← coherentGaussianComplexLinear_eq] using h + +theorem integral_coherentGaussianComplexLinear {m : ℕ} + {C : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hC : C.PosDef) + (a : Fin m × Fin 2 → ℂ) : + (∫ z : Fin m → ℂ, coherentGaussianComplexLinear C a z) = + ((Real.pi ^ m / Real.sqrt C.det : ℝ) : ℂ) * + Complex.exp ((1 / 4 : ℂ) * (a ⬝ᵥ (complexifyMatrix C⁻¹ *ᵥ a))) := by + let : Invertible (2 : ℝ) := invertibleOfNonzero (by norm_num) + have hi : ((2 : ℝ) • C)⁻¹ = (1 / 2 : ℝ) • C⁻¹ := by + simpa only [invOf_eq_inv, inv_eq_one_div] using + Matrix.inv_smul (A := C) (2 : ℝ) ((Matrix.isUnit_iff_isUnit_det C).mp hC.isUnit) + have hquad : (1 / 2 : ℂ) * (a ⬝ᵥ (complexifyMatrix ((2 : ℝ) • C)⁻¹ *ᵥ a)) = + (1 / 4 : ℂ) * (a ⬝ᵥ (complexifyMatrix C⁻¹ *ᵥ a)) := by + rw [hi, complexifyMatrix_real_smul] + simp only [Matrix.smul_mulVec, dotProduct_smul, smul_eq_mul, + Complex.ofReal_div, Complex.ofReal_one, Complex.ofReal_ofNat] + ring + have h := (complexRealCoordinates_measurePreserving m).integral_comp + (complexRealCoordinates m).measurableEmbedding + (matrixGaussianComplexLinear ((2 : ℝ) • C) a) + simp only [← coherentGaussianComplexLinear_eq] at h + rw [h, integral_matrixGaussianComplexLinear (hC.smul (by norm_num : (0 : ℝ) < 2)), + hquad, Matrix.det_smul, Fintype.card_prod] + simp only [Fintype.card_fin] + have hn : Real.sqrt (2 * Real.pi) ^ (m * 2) = (2 * Real.pi) ^ m := by + rw [Nat.mul_comm m 2, pow_mul, Real.sq_sqrt (by positivity)] + have hd : Real.sqrt (2 ^ (m * 2) * C.det) = (2 : ℝ) ^ m * Real.sqrt C.det := by + rw [Real.sqrt_mul (by positivity), pow_mul, Real.sqrt_sq (by positivity)] + rw [hn, hd, mul_pow] + congr 2 + field_simp [show (2 : ℝ) ^ m ≠ 0 by positivity, ne_of_gt (Real.sqrt_pos.mpr hC.det_pos)] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CoherentGaussianMoments.lean b/LeanPool/VacuumBellSeparation/Gaussian/CoherentGaussianMoments.lean new file mode 100644 index 0000000000..dd6d1e72fa --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CoherentGaussianMoments.lean @@ -0,0 +1,124 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentCoordinates +public import Mathlib.Analysis.Complex.Isometry +public import Mathlib.Analysis.Complex.Polynomial.Basic +public import Mathlib.MeasureTheory.Integral.Gamma +public import Mathlib.Analysis.SpecialFunctions.Gaussian.GaussianIntegral + +/-! +# Actual complex-plane Gaussian moments + +The radial moment is the pinned Gamma integral over complex Lebesgue +measure. Off-diagonal moments vanish by a genuine measure-preserving +rotation: a root of minus one changes the monomial's sign. These are +scalar integral foundations for coherent resolution and Gaussian density +identification, not an assumed resolution-of-identity formula. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate + +theorem integral_radial_monomial_eq_zero_of_lt (g : ℝ → ℝ) {m n : ℕ} + (hmn : m < n) : + (∫ z : ℂ, (g ‖z‖ : ℂ) * conj z ^ m * z ^ n) = 0 := by + obtain ⟨u, hu⟩ := IsAlgClosed.exists_pow_nat_eq (-1 : ℂ) (Nat.sub_pos_of_lt hmn) + have hunorm : ‖u‖ = 1 := by + apply (pow_eq_one_iff_of_nonneg (norm_nonneg u) + (Nat.ne_of_gt (Nat.sub_pos_of_lt hmn))).mp + simpa only [norm_pow, norm_neg, norm_one] using congrArg norm hu + let c : Circle := ⟨u, mem_sphere_zero_iff_norm.mpr hunorm⟩ + have hunit : conj u * u = 1 := by rw [Complex.conj_mul', hunorm]; norm_num + have hphase : conj u ^ m * u ^ n = -1 := by + calc + conj u ^ m * u ^ n = conj u ^ m * (u ^ m * u ^ (n - m)) := by + rw [← pow_add, Nat.add_sub_of_le hmn.le] + _ = (conj u * u) ^ m * u ^ (n - m) := by rw [mul_pow]; ring + _ = -1 := by rw [hunit, one_pow, one_mul, hu] + let f : ℂ → ℂ := fun z => (g ‖z‖ : ℂ) * conj z ^ m * z ^ n + have hrotate (z : ℂ) : f (rotation c z) = -f z := by + change (g ‖u * z‖ : ℂ) * conj (u * z) ^ m * (u * z) ^ n = + -((g ‖z‖ : ℂ) * conj z ^ m * z ^ n) + rw [norm_mul, hunorm, one_mul, map_mul, mul_pow, mul_pow] + calc + (g ‖z‖ : ℂ) * (conj u ^ m * conj z ^ m) * (u ^ n * z ^ n) = + (conj u ^ m * u ^ n) * ((g ‖z‖ : ℂ) * conj z ^ m * z ^ n) := by ring + _ = _ := by rw [hphase]; ring + have hrot := (rotation c).measurePreserving.integral_comp + (rotation c).toHomeomorph.measurableEmbedding f + simp_rw [hrotate] at hrot + rw [integral_neg] at hrot + have hz : (2 : ℂ) * (∫ z : ℂ, f z) = 0 := by linear_combination -hrot + exact (mul_eq_zero.mp hz).resolve_left (by norm_num) + +theorem integral_radial_monomial_eq_zero (g : ℝ → ℝ) {m n : ℕ} (hmn : m ≠ n) : + (∫ z : ℂ, (g ‖z‖ : ℂ) * conj z ^ m * z ^ n) = 0 := by + rcases lt_or_gt_of_ne hmn with hlt | hgt + · exact integral_radial_monomial_eq_zero_of_lt g hlt + · have h := congrArg conj (integral_radial_monomial_eq_zero_of_lt g hgt) + rw [← integral_conj] at h + simpa only [map_mul, map_pow, Complex.conj_ofReal, starRingEnd_self_apply, + map_zero, mul_comm, mul_left_comm, mul_assoc] using h + +theorem integral_gaussian_radial_even_moment {a : ℝ} (ha : 0 < a) (n : ℕ) : + (∫ z : ℂ, ‖z‖ ^ (2 * n) * Real.exp (-a * ‖z‖ ^ 2)) = + Real.pi * (n.factorial : ℝ) / a ^ (n + 1) := by + have h := Complex.integral_rpow_mul_exp_neg_mul_rpow + (p := 2) (q := (2 * n : ℕ)) (b := a) (by norm_num) + (by have hn : (0 : ℝ) ≤ ((2 * n : ℕ) : ℝ) := Nat.cast_nonneg _; linarith) ha + have hquot : (((2 * n : ℕ) : ℝ) + 2) / 2 = (n : ℝ) + 1 := by push_cast; ring + have hneg : -(((2 * n : ℕ) : ℝ) + 2) / 2 = -((n + 1 : ℕ) : ℝ) := by + push_cast; ring + rw [hquot, hneg, Real.Gamma_nat_eq_factorial, Real.rpow_neg ha.le, + Real.rpow_natCast] at h + simp only [Real.rpow_natCast, Real.rpow_two] at h + calc + (∫ z : ℂ, ‖z‖ ^ (2 * n) * Real.exp (-a * ‖z‖ ^ 2)) = + (2 * Real.pi / 2) * (a ^ (n + 1))⁻¹ * (n.factorial : ℝ) := h + _ = _ := by ring + +theorem integrable_gaussian_radial_even_moment {a : ℝ} (ha : 0 < a) (n : ℕ) : + Integrable (fun z : ℂ => ‖z‖ ^ (2 * n) * Real.exp (-a * ‖z‖ ^ 2)) := by + apply Integrable.of_integral_ne_zero + rw [integral_gaussian_radial_even_moment ha] + exact ne_of_gt (div_pos (mul_pos Real.pi_pos (by positivity)) (pow_pos ha _)) + +theorem integral_gaussian_monomial {a : ℝ} (ha : 0 < a) (m n : ℕ) : + (∫ z : ℂ, (Real.exp (-a * ‖z‖ ^ 2) : ℂ) * conj z ^ m * z ^ n) = + if m = n then ((Real.pi * (n.factorial : ℝ) / a ^ (n + 1) : ℝ) : ℂ) else 0 := by + split_ifs with hmn + · subst m + have hfun (z : ℂ) : + (Real.exp (-a * ‖z‖ ^ 2) : ℂ) * conj z ^ n * z ^ n = + ((‖z‖ ^ (2 * n) * Real.exp (-a * ‖z‖ ^ 2) : ℝ) : ℂ) := by + rw [mul_assoc, ← mul_pow, Complex.conj_mul', ← pow_mul, + Complex.ofReal_mul, Complex.ofReal_pow] + ring + simp_rw [hfun] + rw [integral_complex_ofReal, integral_gaussian_radial_even_moment ha] + · exact integral_radial_monomial_eq_zero (fun r => Real.exp (-a * r ^ 2)) hmn + +theorem integral_coherentCoefficient_norm_sq {a : ℝ} (ha : 0 < a) (n : ℕ) : + (∫ z : ℂ, Real.exp (-a * ‖z‖ ^ 2) * ‖coherentCoefficient z n‖ ^ 2) = + Real.pi / a ^ (n + 1) := by + have hn : (n.factorial : ℝ) ≠ 0 := by positivity + have hfun (z : ℂ) : + Real.exp (-a * ‖z‖ ^ 2) * ‖coherentCoefficient z n‖ ^ 2 = + (‖z‖ ^ (2 * n) * Real.exp (-a * ‖z‖ ^ 2)) / (n.factorial : ℝ) := by + rw [coherentCoefficient_norm_sq, ← pow_mul] + ring + simp_rw [hfun] + rw [integral_div, integral_gaussian_radial_even_moment ha] + field_simp + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CoherentMatrixFourier.lean b/LeanPool/VacuumBellSeparation/Gaussian/CoherentMatrixFourier.lean new file mode 100644 index 0000000000..eca968a582 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CoherentMatrixFourier.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixGaussianFourier +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixGaussianIntegral + +/-! +# Gaussian Fourier integration in actual complex coherent coordinates + +The phase is `2 i y·u(z)`, where u gives real and imaginary coordinates. +The genuine complex product measure gives π^m/sqrt(det C) and inverse +quadratic form y·C⁻¹y, with explicit integrability. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory +open scoped MatrixOrder Matrix.Norms.L2Operator + +/-- Coherent matrix Fourier. -/ +def coherentMatrixFourier {m : ℕ} + (C : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (y : Fin m × Fin 2 → ℝ) + (z : Fin m → ℂ) : ℂ := + Complex.exp ((-(complexRealCoordinates m z ⬝ᵥ (C *ᵥ complexRealCoordinates m z)) : ℝ) + + 2 * Complex.I * ((y ⬝ᵥ complexRealCoordinates m z : ℝ) : ℂ)) + +theorem coherentMatrixFourier_eq {m : ℕ} + (C : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (y : Fin m × Fin 2 → ℝ) + (z : Fin m → ℂ) : + coherentMatrixFourier C y z = + matrixGaussianFourier ((2 : ℝ) • C) ((2 : ℝ) • y) (complexRealCoordinates m z) := by + simp only [coherentMatrixFourier, matrixGaussianFourier, Matrix.smul_mulVec, + dotProduct_smul, smul_dotProduct, smul_eq_mul] + congr 1 + push_cast + ring + +theorem integrable_coherentMatrixFourier {m : ℕ} + {C : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hC : C.PosDef) + (y : Fin m × Fin 2 → ℝ) : Integrable (coherentMatrixFourier C y) := by + have h := (complexRealCoordinates_measurePreserving m).integrable_comp_of_integrable + (integrable_matrixGaussianFourier (hC.smul (by norm_num : (0 : ℝ) < 2)) ((2 : ℝ) • y)) + simpa only [Function.comp_def, ← coherentMatrixFourier_eq] using h + +theorem integral_coherentMatrixFourier {m : ℕ} + {C : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hC : C.PosDef) + (y : Fin m × Fin 2 → ℝ) : + (∫ z : Fin m → ℂ, coherentMatrixFourier C y z) = + ((Real.pi ^ m / Real.sqrt C.det : ℝ) : ℂ) * + Complex.exp ((-(y ⬝ᵥ (C⁻¹ *ᵥ y)) : ℝ) : ℂ) := by + let : Invertible (2 : ℝ) := invertibleOfNonzero (by norm_num) + have hi : ((2 : ℝ) • C)⁻¹ = (1 / 2 : ℝ) • C⁻¹ := by + simpa only [invOf_eq_inv, inv_eq_one_div] using + Matrix.inv_smul (A := C) (2 : ℝ) ((Matrix.isUnit_iff_isUnit_det C).mp hC.isUnit) + have hquad : -(1 / 2 : ℝ) * (((2 : ℝ) • y) ⬝ᵥ + (((2 : ℝ) • C)⁻¹ *ᵥ ((2 : ℝ) • y))) = -(y ⬝ᵥ (C⁻¹ *ᵥ y)) := by + rw [hi] + simp only [Matrix.smul_mulVec, Matrix.mulVec_smul, dotProduct_smul, + smul_dotProduct, smul_eq_mul] + ring + have h := (complexRealCoordinates_measurePreserving m).integral_comp + (complexRealCoordinates m).measurableEmbedding + (matrixGaussianFourier ((2 : ℝ) • C) ((2 : ℝ) • y)) + simp only [← coherentMatrixFourier_eq] at h + rw [h, integral_matrixGaussianFourier (hC.smul (by norm_num : (0 : ℝ) < 2)), + hquad, Matrix.det_smul, Fintype.card_prod] + simp only [Fintype.card_fin] + have hn : Real.sqrt (2 * Real.pi) ^ (m * 2) = (2 * Real.pi) ^ m := by + rw [Nat.mul_comm m 2, pow_mul, Real.sq_sqrt (by positivity)] + have hd : Real.sqrt (2 ^ (m * 2) * C.det) = (2 : ℝ) ^ m * Real.sqrt C.det := by + rw [Real.sqrt_mul (by positivity), pow_mul, Real.sqrt_sq (by positivity)] + rw [hn, hd, mul_pow] + congr 2 + field_simp [show (2 : ℝ) ^ m ≠ 0 by positivity, + ne_of_gt (Real.sqrt_pos.mpr hC.det_pos)] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CoherentResolution.lean b/LeanPool/VacuumBellSeparation/Gaussian/CoherentResolution.lean new file mode 100644 index 0000000000..9d21865b3f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CoherentResolution.lean @@ -0,0 +1,67 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.BargmannPointwise +public import LeanPool.VacuumBellSeparation.Gaussian.WeylCoherentRepresentation + +/-! +# Actual weak coherent resolution of the identity + +The normalized coherent frame coordinate is `⟨z|x⟩/sqrt(π)` for complex +Lebesgue measure. It preserves the inner product after integration. The +identity follows from the constructed Bargmann isometry and the genuine +measure-preserving conjugation of the plane. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate + +/-- Coherent frame coordinate. -/ +noncomputable def coherentFrameCoordinate (x : OscillatorSpace) (z : ℂ) : ℂ := + (Real.sqrt Real.pi : ℂ)⁻¹ * inner ℂ (coherentVector z) x + +theorem bargmannFunction_conj (x : OscillatorSpace) (z : ℂ) : + bargmannFunction x (conj z) = coherentFrameCoordinate x z := by + rw [bargmannFunction, Complex.norm_conj, starRingEnd_self_apply, + coherentFrameCoordinate, coherentVector, inner_smul_left, + ← Complex.exp_conj, Complex.conj_ofReal, ← Complex.ofReal_exp, + Complex.ofReal_div] + ring_nf + +theorem integral_inner_coherentFrameCoordinate (x y : OscillatorSpace) : + (∫ z : ℂ, inner ℂ (coherentFrameCoordinate x z) (coherentFrameCoordinate y z)) = + inner ℂ x y := by + have h := Complex.conjLIE.measurePreserving.integral_comp + Complex.conjLIE.toHomeomorph.measurableEmbedding + (fun z : ℂ => inner ℂ (bargmannFunction x z) (bargmannFunction y z)) + simpa only [Complex.conjLIE_apply, bargmannFunction_conj, + integral_inner_bargmannFunction] using h + +theorem integrable_inner_coherentFrameCoordinate (x y : OscillatorSpace) : + Integrable (fun z : ℂ => + inner ℂ (coherentFrameCoordinate x z) (coherentFrameCoordinate y z)) := by + have h := Complex.conjLIE.measurePreserving.integrable_comp_of_integrable + (integrable_inner_bargmannFunction x y) + simpa only [Function.comp_def, Complex.conjLIE_apply, bargmannFunction_conj] using h + +theorem integral_coherentFrameCoordinate_norm_sq (x : OscillatorSpace) : + (∫ z : ℂ, ‖coherentFrameCoordinate x z‖ ^ 2) = ‖x‖ ^ 2 := by + have h := congrArg (RCLike.re : ℂ → ℝ) (integral_inner_coherentFrameCoordinate x x) + rw [← integral_re (integrable_inner_coherentFrameCoordinate x x)] at h + simpa only [inner_self_eq_norm_sq] using h + +theorem integrable_coherentFrameCoordinate_norm_sq (x : OscillatorSpace) : + Integrable (fun z : ℂ => ‖coherentFrameCoordinate x z‖ ^ 2) := by + have h := (integrable_inner_coherentFrameCoordinate x x).re + simpa only [inner_self_eq_norm_sq] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CoherentRotationAveraging.lean b/LeanPool/VacuumBellSeparation/Gaussian/CoherentRotationAveraging.lean new file mode 100644 index 0000000000..2f9ff9c86a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CoherentRotationAveraging.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.TorusCoherentExpansion +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeWeylRepresentation +public import LeanPool.VacuumBellSeparation.Weyl.StrongContinuity +public import Mathlib.Analysis.Complex.Isometry + +/-! +# Coherent continuity and actual rotation averaging + +The constructed Weyl/coherent unitary transports genuine continuity of +kernel vectors. Coordinatewise complex rotations preserve actual +Lebesgue measure. Averaging a nonnegative measurable function over the +probability torus therefore leaves its integral unchanged, even when the +integral is infinite. This avoids an implicit polar-coordinate constant. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Filter Topology +open scoped ComplexConjugate ENNReal + +/-- Measure-space instance for `UnitAddCircle`. -/ +local instance coherentRotationMeasureSpace : MeasureSpace UnitAddCircle := + ⟨AddCircle.haarAddCircle⟩ +local instance coherentRotationProbabilityMeasure : IsProbabilityMeasure + (volume : Measure UnitAddCircle) := + inferInstanceAs (IsProbabilityMeasure AddCircle.haarAddCircle) + +theorem continuous_multiCoherentVector (m : ℕ) : Continuous (multiCoherentVector (m := m)) := by + rw [continuous_iff_continuousAt] + intro z + have hv := tendsto_weylVec (id : MultiModePhaseSpace m → MultiModePhaseSpace m) + (F := id) (F₀ := z) tendsto_id + change Tendsto multiCoherentVector (𝓝 z) (𝓝 (multiCoherentVector z)) + simpa only [Function.comp_def, id_eq, multiWeylCoherentEquiv_weylVec] using + (multiWeylCoherentEquiv m).continuous.continuousAt.tendsto.comp hv + +theorem multiExponentialVector_eq_normalized {m : ℕ} (z : Fin m → ℂ) : + multiExponentialVector z = Complex.exp ((‖WithLp.toLp 2 z‖ ^ 2 / 2 : ℝ) : ℂ) • + multiCoherentVector (WithLp.toLp 2 z) := by + rw [multiCoherentVector, smul_smul, ← Complex.exp_add] + simp only [← Complex.ofReal_add, add_neg_cancel, Complex.ofReal_zero, + Complex.exp_zero, one_smul] + +theorem continuous_multiExponentialVector (m : ℕ) : + Continuous (multiExponentialVector (m := m)) := by + have h := (continuous_multiCoherentVector m).comp (PiLp.continuous_toLp 2 _) + have hexp : Continuous (fun z : Fin m → ℂ => + Complex.exp ((‖WithLp.toLp 2 z‖ ^ 2 / 2 : ℝ) : ℂ)) := by fun_prop + simpa only [Pi.smul_def', Function.comp_def, ← multiExponentialVector_eq_normalized] using + hexp.smul h + +/-- Torus coordinate rotation. -/ +def torusCoordinateRotation {m : ℕ} (θ : UnitAddTorus (Fin m)) : + (Fin m → ℂ) ≃ᵐ (Fin m → ℂ) := + MeasurableEquiv.piCongrRight fun j => + (rotation (AddCircle.toCircle (θ j))).toHomeomorph.toMeasurableEquiv + +theorem torusCoordinateRotation_apply {m : ℕ} (θ : UnitAddTorus (Fin m)) (z : Fin m → ℂ) : + torusCoordinateRotation θ z = torusCoherentLabel z θ := by + funext j + change rotation (AddCircle.toCircle (θ j)) (z j) = z j * fourier 1 (θ j) + rw [rotation_apply, fourier_one, mul_comm] + +theorem torusCoordinateRotation_measurePreserving {m : ℕ} (θ : UnitAddTorus (Fin m)) : + MeasurePreserving (torusCoordinateRotation θ) := + volume_preserving_pi (fun j => (rotation (AddCircle.toCircle (θ j))).measurePreserving) + +theorem continuous_torusCoherentLabel (m : ℕ) : + Continuous (fun p : UnitAddTorus (Fin m) × (Fin m → ℂ) => torusCoherentLabel p.2 p.1) := by + unfold torusCoherentLabel + fun_prop + +/-- Rotation averaging is an exact nonnegative-integral identity, with +the normalized torus measure and no finiteness premise. -/ +theorem lintegral_eq_rotation_average {m : ℕ} (f : (Fin m → ℂ) → ℝ≥0∞) (hf : Measurable f) : + (∫⁻ z : Fin m → ℂ, f z) = + ∫⁻ z : Fin m → ℂ, ∫⁻ θ : UnitAddTorus (Fin m), f (torusCoherentLabel z θ) := by + have hinv (θ : UnitAddTorus (Fin m)) : + (∫⁻ z : Fin m → ℂ, f (torusCoherentLabel z θ)) = ∫⁻ z, f z := by + simpa only [torusCoordinateRotation_apply] using + (torusCoordinateRotation_measurePreserving θ).lintegral_comp_emb + (torusCoordinateRotation θ).measurableEmbedding f + calc + _ = ∫⁻ θ : UnitAddTorus (Fin m), ∫⁻ z : Fin m → ℂ, f (torusCoherentLabel z θ) := by + simp only [hinv, lintegral_const, measure_univ, mul_one] + _ = _ := lintegral_lintegral_swap + (hf.comp (continuous_torusCoherentLabel m).measurable).aemeasurable + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CoherentTotality.lean b/LeanPool/VacuumBellSeparation/Gaussian/CoherentTotality.lean new file mode 100644 index 0000000000..c8c45cb29c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CoherentTotality.lean @@ -0,0 +1,82 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentCoordinates +public import Mathlib.Analysis.Analytic.Uniqueness + +/-! +# Totality of the actual coherent family + +An ℓ² vector orthogonal to all exponential vectors has a scalar power +series identically zero. Analytic power-series uniqueness proves that all +its coordinates vanish. Thus coherent totality is derived, not assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Filter Topology +open scoped ComplexConjugate + +/-- Coherent analysis series defined as `FormalMultilinearSeries.ofScalars ℂ (fun k => conj (x k) / +(Real.sqrt (k.factorial : ℝ) : ℂ))`. -/ +noncomputable def coherentAnalysisSeries (x : OscillatorSpace) : + FormalMultilinearSeries ℂ ℂ ℂ := + FormalMultilinearSeries.ofScalars ℂ + (fun k => conj (x k) / (Real.sqrt (k.factorial : ℝ) : ℂ)) + +theorem hasSum_coherentAnalysis (x : OscillatorSpace) (z : ℂ) : + HasSum (fun k => z ^ k • (coherentAnalysisSeries x).coeff k) + (inner ℂ x (exponentialVector z)) := by + have h := lp.hasSum_inner (𝕜 := ℂ) x (exponentialVector z) + convert h using 1 + funext k + simp only [coherentAnalysisSeries, FormalMultilinearSeries.coeff_ofScalars, + smul_eq_mul, exponentialVector_apply, RCLike.inner_apply', coherentCoefficient] + ring + +theorem hasFPowerSeriesAt_coherentAnalysis (x : OscillatorSpace) : + HasFPowerSeriesAt (fun z => inner ℂ x (exponentialVector z)) + (coherentAnalysisSeries x) 0 := by + apply hasFPowerSeriesAt_iff.mpr + exact Eventually.of_forall fun z => by simpa only [zero_add] using hasSum_coherentAnalysis x z + +theorem eq_zero_of_inner_exponentialVector_eq_zero (x : OscillatorSpace) + (hx : ∀ z, inner ℂ x (exponentialVector z) = 0) : x = 0 := by + have hf : (fun z => inner ℂ x (exponentialVector z)) = (0 : ℂ → ℂ) := funext hx + have hp : HasFPowerSeriesAt (0 : ℂ → ℂ) (coherentAnalysisSeries x) 0 := by + rw [← hf] + exact hasFPowerSeriesAt_coherentAnalysis x + have hseries := hp.eq_zero + apply lp.ext + funext k + have hk : (FormalMultilinearSeries.ofScalars ℂ + (fun j => conj (x j) / (Real.sqrt (j.factorial : ℝ) : ℂ))) k = 0 := + congrFun hseries k + have hc : conj (x k) / (Real.sqrt (k.factorial : ℝ) : ℂ) = 0 := + (FormalMultilinearSeries.ofScalars_eq_zero ℂ k).mp hk + have hfac : (0 : ℝ) < (k.factorial : ℝ) := by exact_mod_cast Nat.factorial_pos k + have hden : (Real.sqrt (k.factorial : ℝ) : ℂ) ≠ 0 := + Complex.ofReal_ne_zero.mpr (ne_of_gt (Real.sqrt_pos.mpr hfac)) + have hz : conj (x k) = 0 := (div_eq_zero_iff).mp hc |>.resolve_right hden + simpa using hz + +theorem exponentialVector_dense_span : + (Submodule.span ℂ (Set.range exponentialVector)).topologicalClosure = ⊤ := by + let K := Submodule.span ℂ (Set.range exponentialVector) + have horth : Kᗮ = ⊥ := by + apply (Submodule.eq_bot_iff _).mpr + intro x hx + apply eq_zero_of_inner_exponentialVector_eq_zero x + intro z + exact K.inner_left_of_mem_orthogonal (Submodule.subset_span ⟨z, rfl⟩) hx + apply Submodule.orthogonal_eq_bot_iff.mp + rw [Submodule.orthogonal_closure, horth] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CoherentTraceSeries.lean b/LeanPool/VacuumBellSeparation/Gaussian/CoherentTraceSeries.lean new file mode 100644 index 0000000000..e793502465 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CoherentTraceSeries.lean @@ -0,0 +1,60 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentResolution + +/-! +# Justified coherent integral interchange + +The actual L² frame gives the integral Cauchy--Schwarz bound. A summable +series of products of vector norms then justifies exchanging a series of +frame inner products and a Bochner integral. No formal trace interchange +or implicit integrability assumption is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory + +theorem memLp_coherentFrameCoordinate (x : OscillatorSpace) : + MemLp (coherentFrameCoordinate x) 2 (volume : Measure ℂ) := by + have h := (memLp_bargmannFunction x).comp_measurePreserving + Complex.conjLIE.measurePreserving + have he : bargmannFunction x ∘ Complex.conjLIE = coherentFrameCoordinate x := by + funext z + exact bargmannFunction_conj x z + rw [he] at h + exact h + +theorem integral_norm_inner_coherentFrameCoordinate_le (x y : OscillatorSpace) : + (∫ z : ℂ, ‖inner ℂ (coherentFrameCoordinate x z) (coherentFrameCoordinate y z)‖) ≤ + ‖x‖ * ‖y‖ := by + have h := integral_mul_norm_le_Lp_mul_Lq Real.HolderConjugate.two_two + (f := coherentFrameCoordinate x) (g := coherentFrameCoordinate y) + (by simpa using memLp_coherentFrameCoordinate x) + (by simpa using memLp_coherentFrameCoordinate y) + simp only [Real.rpow_two, integral_coherentFrameCoordinate_norm_sq, + ← Real.sqrt_eq_rpow, Real.sqrt_sq (norm_nonneg _)] at h + simpa only [RCLike.inner_apply', norm_mul, Complex.norm_conj] using h + +theorem hasSum_integral_inner_coherentFrameCoordinate {u v : ℕ → OscillatorSpace} + (huv : Summable fun n => ‖u n‖ * ‖v n‖) : + HasSum (fun n => inner ℂ (u n) (v n)) + (∫ z : ℂ, ∑' n, inner ℂ (coherentFrameCoordinate (u n) z) + (coherentFrameCoordinate (v n) z)) := by + have hs : Summable fun n => ∫ z : ℂ, + ‖inner ℂ (coherentFrameCoordinate (u n) z) (coherentFrameCoordinate (v n) z)‖ := + Summable.of_nonneg_of_le (fun n => integral_nonneg fun z => norm_nonneg _) + (fun n => integral_norm_inner_coherentFrameCoordinate_le (u n) (v n)) huv + simpa only [integral_inner_coherentFrameCoordinate] using + hasSum_integral_of_summable_integral_norm + (fun n => integrable_inner_coherentFrameCoordinate (u n) (v n)) hs + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CommutingAppendixA.lean b/LeanPool/VacuumBellSeparation/Gaussian/CommutingAppendixA.lean new file mode 100644 index 0000000000..714b2df98e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CommutingAppendixA.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalSandwichNormalization + +/-! +# Literal Appendix A formulas for the commuting one-mode model + +The actual inverse-power density sandwich has already been constructed on +its dense inverse domain. Here its trace is rewritten in the manuscript's +determinant form, with the actual two-dimensional real covariance gap +matrix. The covariance of its normalized density agrees with the Appendix +A rational formula. This is a specialization, not an assumption of the +general noncommuting Gaussian sandwich theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem thermalQuadratureVariance_sub {p q : ℝ} (hp : p < 1) (hq : q < 1) : + thermalQuadratureVariance p - thermalQuadratureVariance q = + (p - q) / ((1 - p) * (1 - q)) := by + unfold thermalQuadratureVariance + field_simp [ne_of_gt (sub_pos.mpr hp), ne_of_gt (sub_pos.mpr hq)] + ring + +/-- Thermal relative gap. -/ +noncomputable def thermalRelativeGap (p q t : ℝ) : ℝ := + (thermalQuadratureVariance p - thermalQuadratureVariance q) / + (thermalQuadratureVariance t - thermalQuadratureVariance q) + +theorem thermalRelativeGap_lt_one {p q t : ℝ} + (hp : p < 1) (hq : q < 1) (ht : t < 1) (hqt : q < t) (hpt : p < t) : + thermalRelativeGap p q t < 1 := by + have hH : 0 < thermalQuadratureVariance t - thermalQuadratureVariance q := + sub_pos.mpr ((thermalQuadratureVariance_lt_iff hq ht).mpr hqt) + have hV := (thermalQuadratureVariance_lt_iff hp ht).mpr hpt + unfold thermalRelativeGap + rw [div_lt_one hH] + linarith + +theorem one_sub_thermalRelativeGap {p q t : ℝ} + (hp : p < 1) (hq : q < 1) (ht : t < 1) (hqt : q < t) : + 1 - thermalRelativeGap p q t = + ((t - p) * (1 - q)) / ((1 - p) * (t - q)) := by + rw [thermalRelativeGap, thermalQuadratureVariance_sub hp hq, + thermalQuadratureVariance_sub ht hq] + field_simp [ne_of_gt (sub_pos.mpr hp), ne_of_gt (sub_pos.mpr hq), + ne_of_gt (sub_pos.mpr ht), ne_of_gt (sub_pos.mpr hqt)] + ring + +/-- The actual real `2×2` relative covariance gap matrix of a single +isotropic mode in the manuscript's ordering of quadratures. -/ +noncomputable def thermalRelativeGapMatrix (p q t : ℝ) : Matrix (Fin 2) (Fin 2) ℝ := + thermalRelativeGap p q t • 1 + +theorem det_one_sub_thermalRelativeGapMatrix (p q t : ℝ) : + (1 - thermalRelativeGapMatrix p q t).det = (1 - thermalRelativeGap p q t) ^ 2 := by + norm_num [thermalRelativeGapMatrix, Matrix.det_fin_two, Matrix.sub_apply, + Matrix.smul_apply, Matrix.one_apply]; ring + +theorem sqrt_det_one_sub_thermalRelativeGapMatrix {p q t : ℝ} + (hp : p < 1) (hq : q < 1) (ht : t < 1) (hqt : q < t) (hpt : p < t) : + Real.sqrt (1 - thermalRelativeGapMatrix p q t).det = + 1 - thermalRelativeGap p q t := by + rw [det_one_sub_thermalRelativeGapMatrix, + Real.sqrt_sq (sub_nonneg.mpr (thermalRelativeGap_lt_one hp hq ht hqt hpt).le)] + +theorem thermal_parameter_lt_rpow {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ₁ : τ < 1) : q < q ^ τ := by + have hqt : 0 < q ^ τ := Real.rpow_pos_of_pos hq₀ _ + have hrem : q ^ (1 - τ) < 1 := Real.rpow_lt_one hq₀.le hq₁ (sub_pos.mpr hτ₁) + have hprod : q ^ τ * q ^ (1 - τ) = q := by + rw [← Real.rpow_add hq₀, show τ + (1 - τ) = 1 by ring, Real.rpow_one] + nlinarith + +/-- The Appendix A determinant trace formula for the genuine commuting +one-mode sandwich. Both traces are the proved finite positive traces. -/ +theorem positiveTrace_thermalSandwich_appendixA {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) + (hτ₀ : 0 < τ) (hτ₁ : τ < 1) (hpq : p < q ^ τ) : + (positiveTrace (thermalSandwich p q τ)).toReal = + (positiveTrace (thermalDensity q ^ (1 - τ))).toReal / + Real.sqrt (1 - thermalRelativeGapMatrix p q (q ^ τ)).det := by + have ht₀ : 0 < q ^ τ := Real.rpow_pos_of_pos hq₀ _ + have ht₁ : q ^ τ < 1 := Real.rpow_lt_one hq₀.le hq₁ hτ₀ + have hqt : q < q ^ τ := thermal_parameter_lt_rpow hq₀ hq₁ hτ₁ + have hrem : 0 < (1 - q) ^ (1 - τ) / (1 - q ^ (1 - τ)) := + div_pos (Real.rpow_pos_of_pos (sub_pos.mpr hq₁) _) + (sub_pos.mpr (Real.rpow_lt_one hq₀.le hq₁ (sub_pos.mpr hτ₁))) + rw [positiveTrace_thermalSandwich hp₀ hp₁ hq₀ hq₁ hpq, + ENNReal.toReal_ofReal (thermalSandwich_traceValue_pos hp₁ hq₀ hq₁ hpq).le, + positiveTrace_thermalDensity_rpow hq₀.le hq₁ (sub_pos.mpr hτ₁), + ENNReal.toReal_ofReal hrem.le, + sqrt_det_one_sub_thermalRelativeGapMatrix hp₁ hq₁ ht₁ hqt hpq, + one_sub_thermalRelativeGap hp₁ hq₁ ht₁ hqt, + Real.rpow_sub (sub_pos.mpr hq₁), Real.rpow_one, + Real.rpow_sub hq₀, Real.rpow_one] + field_simp [ht₀.ne', ne_of_gt (sub_pos.mpr hq₁), + ne_of_gt (sub_pos.mpr hp₁), ne_of_gt (sub_pos.mpr hqt), + ne_of_gt (sub_pos.mpr hpq), + ne_of_gt (Real.rpow_pos_of_pos (sub_pos.mpr hq₁) τ)] + +/-- The normalized actual sandwich is `thermalDensity (p/t)` by the +operator identity in `ThermalSandwichNormalization`. Its covariance is +the exact Appendix A one-mode rational expression. -/ +theorem thermalSandwich_covariance_appendixA {p t : ℝ} + (hp : p < 1) (ht₀ : 0 < t) (ht₁ : t < 1) (hpt : p < t) : + thermalQuadratureVariance (p / t) = + -thermalQuadratureVariance t + + (thermalQuadratureVariance t ^ 2 - 1 / 4) / + (thermalQuadratureVariance t - thermalQuadratureVariance p) := by + rw [thermalQuadratureVariance_sub ht₁ hp] + unfold thermalQuadratureVariance + have hratio : 1 - p / t ≠ 0 := + ne_of_gt (sub_pos.mpr ((div_lt_one ht₀).mpr hpt)) + field_simp [ht₀.ne', hratio, ne_of_gt (sub_pos.mpr hp), + ne_of_gt (sub_pos.mpr ht₁), ne_of_gt (sub_pos.mpr hpt)] + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CompactPolydiscCoefficientIntegral.lean b/LeanPool/VacuumBellSeparation/Gaussian/CompactPolydiscCoefficientIntegral.lean new file mode 100644 index 0000000000..8d82587cc2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CompactPolydiscCoefficientIntegral.lean @@ -0,0 +1,158 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscAngularRecursion +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscExponentialCoefficients + +/-! +# Genuine compact-test Fubini for actual polydisc coefficients + +The joint contour/test integral is absolutely integrable: continuity on +the compact coordinate ball times the actual test support supplies a +uniform kernel bound, and the angular inverse monomial has constant +norm. No coefficient/interchange identity is supplied as a premise. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Metric Set +open scoped BigOperators + +private theorem compact_polydisc_kernel_bound (n : ℕ) (R : ℝ) + (K : (Fin n → ℂ) → EuclideanSpace ℝ (Fin 3) → ℂ) + (hK : Continuous (fun y : (Fin n → ℂ) × EuclideanSpace ℝ (Fin 3) => K y.1 y.2)) + (f : EuclideanSpace ℝ (Fin 3) → ℂ) (hfc : HasCompactSupport f) : + ∃ M : ℝ, 0 ≤ M ∧ ∀ z ∈ closedBall (0 : Fin n → ℂ) R, + ∀ x ∈ tsupport f, ‖K z x‖ ≤ M := by + obtain ⟨C, hC⟩ := ((isCompact_closedBall (0 : Fin n → ℂ) R).prod hfc).exists_bound_of_continuousOn + hK.continuousOn + refine ⟨max C 0, le_max_right _ _, ?_⟩ + intro z hz x hx + have hraw : ‖K z x‖ ≤ C := hC (z, x) ⟨hz, hx⟩ + exact hraw.trans (le_max_left C 0) + +private theorem norm_polydisc_inverse_monomial (n : ℕ) {R : ℝ} (hR : 0 ≤ R) + (k : Fin n → ℕ) (θ : Fin n → ℝ) : + ‖∏ j, (polydiscBoundaryPoint n R θ j)⁻¹ ^ k j‖ = ∏ j, R⁻¹ ^ k j := by + simp only [norm_prod, norm_pow, norm_inv, norm_polydiscBoundaryPoint n hR] + +private theorem norm_scalar_coefficient_product_le {a b w : ℂ} {M W : ℝ} + (ha : ‖a‖ ≤ M) (hw : ‖w‖ = W) (hW : 0 ≤ W) : + ‖a * b * w‖ ≤ (M * W) * ‖b‖ := by + rw [norm_mul, norm_mul, hw] + calc + ‖a‖ * ‖b‖ * W ≤ M * ‖b‖ * W := + mul_le_mul_of_nonneg_right + (mul_le_mul_of_nonneg_right ha (norm_nonneg b)) hW + _ = (M * W) * ‖b‖ := by ring + +private theorem compact_polydisc_coefficient_pointwise_bound (n : ℕ) {R : ℝ} (hR : 0 < R) + (K : (Fin n → ℂ) → EuclideanSpace ℝ (Fin 3) → ℂ) + (f : EuclideanSpace ℝ (Fin 3) → ℂ) (M : ℝ) + (hK : ∀ z ∈ closedBall (0 : Fin n → ℂ) R, ∀ x ∈ tsupport f, ‖K z x‖ ≤ M) + (k : Fin n → ℕ) (y : (Fin n → ℝ) × EuclideanSpace ℝ (Fin 3)) : + ‖K (polydiscBoundaryPoint n R y.1) y.2 * f y.2 * + ∏ j, (polydiscBoundaryPoint n R y.1 j)⁻¹ ^ k j‖ ≤ + (M * ∏ j, R⁻¹ ^ k j) * ‖f y.2‖ := by + by_cases hx : y.2 ∈ tsupport f + · have hz : polydiscBoundaryPoint n R y.1 ∈ closedBall (0 : Fin n → ℂ) R := by + rw [mem_closedBall_zero_iff, pi_norm_le_iff_of_nonneg hR.le] + exact fun j => (norm_polydiscBoundaryPoint n hR.le y.1 j).le + exact norm_scalar_coefficient_product_le + (hK (polydiscBoundaryPoint n R y.1) hz y.2 hx) + (norm_polydisc_inverse_monomial n hR.le k y.1) + (Finset.prod_nonneg fun j _ => pow_nonneg (inv_nonneg.mpr hR.le) (k j)) + · simp only [image_eq_zero_of_notMem_tsupport hx, mul_zero, zero_mul, norm_zero, le_refl] + +theorem integrable_compact_polydisc_coefficient_kernel (n : ℕ) {R : ℝ} (hR : 0 < R) + (K : (Fin n → ℂ) → EuclideanSpace ℝ (Fin 3) → ℂ) + (hK : Continuous (fun y : (Fin n → ℂ) × EuclideanSpace ℝ (Fin 3) => K y.1 y.2)) + (f : EuclideanSpace ℝ (Fin 3) → ℂ) (hf : Continuous f) (hfc : HasCompactSupport f) + (k : Fin n → ℕ) : + Integrable (fun y : (Fin n → ℝ) × EuclideanSpace ℝ (Fin 3) => + K (polydiscBoundaryPoint n R y.1) y.2 * f y.2 * + ∏ j, (polydiscBoundaryPoint n R y.1 j)⁻¹ ^ k j) + ((polydiscAngleMeasure n).prod volume) := by + obtain ⟨M, hM, hbound⟩ := compact_polydisc_kernel_bound n R K hK f hfc + have hw : Continuous (fun θ : Fin n → ℝ => + ∏ j, (polydiscBoundaryPoint n R θ j)⁻¹ ^ k j) := by + simpa only [one_mul] using continuous_boundary_coefficient_weight n hR + (fun _ => (1 : ℂ)) continuous_const k + have hg : Continuous (fun y : (Fin n → ℝ) × EuclideanSpace ℝ (Fin 3) => + K (polydiscBoundaryPoint n R y.1) y.2 * f y.2 * + ∏ j, (polydiscBoundaryPoint n R y.1 j)⁻¹ ^ k j) := + ((hK.comp (((continuous_polydiscBoundaryPoint n R).comp continuous_fst).prodMk + continuous_snd)).mul (hf.comp continuous_snd)).mul (hw.comp continuous_fst) + have hi : Integrable + (fun y : (Fin n → ℝ) × EuclideanSpace ℝ (Fin 3) => + (M * ∏ j, R⁻¹ ^ k j) * ‖f y.2‖) ((polydiscAngleMeasure n).prod volume) := + (integrable_const (M * ∏ j, R⁻¹ ^ k j) (μ := polydiscAngleMeasure n)).mul_prod + (hf.integrable_of_hasCompactSupport (μ := volume) hfc).norm + apply hi.mono' hg.aestronglyMeasurable + exact Filter.Eventually.of_forall + (compact_polydisc_coefficient_pointwise_bound n hR K f M hbound k) + +theorem angularPolydiscCoefficient_compact_integral (n : ℕ) {R : ℝ} (hR : 0 < R) + (K : (Fin n → ℂ) → EuclideanSpace ℝ (Fin 3) → ℂ) + (hK : Continuous (fun y : (Fin n → ℂ) × EuclideanSpace ℝ (Fin 3) => K y.1 y.2)) + (f : EuclideanSpace ℝ (Fin 3) → ℂ) (hf : Continuous f) (hfc : HasCompactSupport f) + (k : Fin n → ℕ) : + angularPolydiscCoefficient n R (fun z => ∫ x, K z x * f x) k = + ∫ x, angularPolydiscCoefficient n R (fun z => K z x) k * f x := by + have hi := integrable_compact_polydisc_coefficient_kernel n hR K hK f hf hfc k + let w := fun θ : Fin n → ℝ => ∏ j, (polydiscBoundaryPoint n R θ j)⁻¹ ^ k j + change ((2 * Real.pi : ℂ) ^ n)⁻¹ * + (∫ θ, (∫ x, K (polydiscBoundaryPoint n R θ) x * f x) * w θ ∂polydiscAngleMeasure n) = _ + simp_rw [← integral_mul_const] + rw [integral_integral_swap hi] + rw [← integral_const_mul] + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + change ((2 * Real.pi : ℂ) ^ n)⁻¹ * + (∫ θ, K (polydiscBoundaryPoint n R θ) x * f x * w θ ∂polydiscAngleMeasure n) = _ + have he (θ : Fin n → ℝ) : + K (polydiscBoundaryPoint n R θ) x * f x * w θ = + (K (polydiscBoundaryPoint n R θ) x * w θ) * f x := by ring + simp_rw [he] + rw [integral_mul_const] + simp only [angularPolydiscCoefficient, polydiscAngularIntegral, w] + ring + +theorem polydiscCoefficient_eq_angular_of_continuous (n : ℕ) {R : ℝ} (hR : 0 < R) + (F : (Fin n → ℂ) → ℂ) (hF : Continuous F) (k : Fin n → ℕ) : + polydiscCoefficient n R F k = angularPolydiscCoefficient n R F k := by + obtain ⟨M, hM⟩ := (isCompact_closedBall (0 : Fin n → ℂ) R).exists_bound_of_continuousOn + hF.continuousOn + apply (angularPolydiscCoefficient_eq n hR (M := max M 0) F + (hF.comp (continuous_polydiscBoundaryPoint n R)) ?_ k).symm + intro z hz + have hzball : z ∈ closedBall (0 : Fin n → ℂ) R := by + rw [mem_closedBall_zero_iff, pi_norm_le_iff_of_nonneg hR.le] + exact fun j => (hz j).le + exact (hM z hzball).trans (le_max_left _ _) + +theorem polydiscCoefficient_compact_integral (n : ℕ) {R : ℝ} (hR : 0 < R) + (K : (Fin n → ℂ) → EuclideanSpace ℝ (Fin 3) → ℂ) + (hK : Continuous (fun y : (Fin n → ℂ) × EuclideanSpace ℝ (Fin 3) => K y.1 y.2)) + (f : EuclideanSpace ℝ (Fin 3) → ℂ) (hf : Continuous f) (hfc : HasCompactSupport f) + (hF : Continuous (fun z => ∫ x, K z x * f x)) (k : Fin n → ℕ) : + polydiscCoefficient n R (fun z => ∫ x, K z x * f x) k = + ∫ x, polydiscCoefficient n R (fun z => K z x) k * f x := by + rw [polydiscCoefficient_eq_angular_of_continuous n hR _ hF, + angularPolydiscCoefficient_compact_integral n hR K hK f hf hfc] + apply integral_congr_ae + refine Filter.Eventually.of_forall fun x => ?_ + change angularPolydiscCoefficient n R (fun z => K z x) k * f x = + polydiscCoefficient n R (fun z => K z x) k * f x + have hKx : Continuous (fun z => K z x) := + hK.comp (continuous_id.prodMk continuous_const) + rw [polydiscCoefficient_eq_angular_of_continuous n hR (fun z => K z x) hKx k] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CompactPositiveEigenbasis.lean b/LeanPool/VacuumBellSeparation/Gaussian/CompactPositiveEigenbasis.lean new file mode 100644 index 0000000000..262bb48b2f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CompactPositiveEigenbasis.lean @@ -0,0 +1,140 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtCompact +public import Mathlib.LinearAlgebra.Eigenspace.ContinuousLinearMap + +/-! +# A genuine Hilbert eigenbasis for a compact positive operator + +Choose Hilbert bases of the actual closed eigenspaces and take their +orthogonal union. The pinned compact self-adjoint spectral theorem proves +totality. Zero eigenspaces are included, so no injectivity or inverse is +assumed. Positivity supplies real nonnegative eigenvalues. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Module.End +open scoped ComplexConjugate ENNReal Topology + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Index type for orthonormal basis vectors in the eigenspaces of a compact operator. -/ +def operatorEigenspaceIndex (A : E →L[ℂ] E) (μ : ℂ) : + Set (eigenspace A.toLinearMap μ) := + Classical.choose (exists_hilbertBasis (𝕜 := ℂ) (E := eigenspace A.toLinearMap μ)) + +/-- Operator eigenspace basis. -/ +def operatorEigenspaceBasis (A : E →L[ℂ] E) (μ : ℂ) : + HilbertBasis (operatorEigenspaceIndex A μ) ℂ (eigenspace A.toLinearMap μ) := + Classical.choose (Classical.choose_spec + (exists_hilbertBasis (𝕜 := ℂ) (E := eigenspace A.toLinearMap μ))) + +/-- Continuous linear map for the operator eigen index, of type `E →L[ℂ] E)`. -/ +def operatorEigenIndex (A : E →L[ℂ] E) := Σ μ : ℂ, operatorEigenspaceIndex A μ + +/-- Operator eigen family obtained from `operatorEigenspaceBasis`. -/ +def operatorEigenFamily (A : E →L[ℂ] E) (i : operatorEigenIndex A) : E := + operatorEigenspaceBasis A i.1 i.2 + +theorem operatorEigenFamily_mem (A : E →L[ℂ] E) (i : operatorEigenIndex A) : + operatorEigenFamily A i ∈ eigenspace A.toLinearMap i.1 := + (operatorEigenspaceBasis A i.1 i.2).property + +theorem operatorEigenFamily_orthonormal {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) : + Orthonormal ℂ (operatorEigenFamily A) := + hA.isSymmetric.orthogonalFamily_eigenspaces.orthonormal_sigma_orthonormal + (fun μ => (operatorEigenspaceBasis A μ).orthonormal) + +theorem operatorEigenFamily_orthogonal_eq_bot {A : E →L[ℂ] E} + (hc : IsCompactOperator A) (hA : IsSelfAdjoint A) : + (Submodule.span ℂ (Set.range (operatorEigenFamily A)))ᗮ = ⊥ := by + apply (Submodule.eq_bot_iff _).mpr + intro x hx + have hx' : x ∈ (⨆ μ : ℂ, eigenspace A.toLinearMap μ)ᗮ := by + rw [← Submodule.iInf_orthogonal] + apply (Submodule.mem_iInf _).mpr + intro μ + apply (Submodule.mem_orthogonal' _ x).mpr + intro y hy + let y' : eigenspace A.toLinearMap μ := ⟨y, hy⟩ + have hz (j : operatorEigenspaceIndex A μ) : + inner ℂ x (operatorEigenspaceBasis A μ j : E) = 0 := + (Submodule.span ℂ (Set.range (operatorEigenFamily A))).inner_left_of_mem_orthogonal + (Submodule.subset_span ⟨⟨μ, j⟩, rfl⟩) hx + have hs := ((innerSL ℂ x).comp (eigenspace A.toLinearMap μ).subtypeL).hasSum + ((operatorEigenspaceBasis A μ).hasSum_repr y') + have hs' : HasSum (fun _ : operatorEigenspaceIndex A μ => (0 : ℂ)) (inner ℂ x y) := by + simpa [ContinuousLinearMap.comp_apply, map_smul, hz, y'] using hs + exact hs'.unique hasSum_zero + rw [ContinuousLinearMap.orthogonalComplement_iSup_eigenspaces_eq_bot hc hA.isSymmetric] at hx' + exact hx' + +/-- Compact self adjoint basis. -/ +def compactSelfAdjointBasis {A : E →L[ℂ] E} (hc : IsCompactOperator A) + (hA : IsSelfAdjoint A) : HilbertBasis (operatorEigenIndex A) ℂ E := + HilbertBasis.mkOfOrthogonalEqBot (operatorEigenFamily_orthonormal hA) + (operatorEigenFamily_orthogonal_eq_bot hc hA) + +@[simp] theorem compactSelfAdjointBasis_apply {A : E →L[ℂ] E} (hc : IsCompactOperator A) + (hA : IsSelfAdjoint A) (i : operatorEigenIndex A) : + compactSelfAdjointBasis hc hA i = operatorEigenFamily A i := by + exact congrFun (HilbertBasis.coe_mkOfOrthogonalEqBot _ _) i + +theorem operatorEigenFamily_eigenvalue_real {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) + (i : operatorEigenIndex A) : (i.1.re : ℂ) = i.1 := by + have hn : operatorEigenFamily A i ≠ 0 := by + intro hz + have h := (operatorEigenFamily_orthonormal hA).norm_eq_one i + simp [hz] at h + have hc := hA.isSymmetric.conj_eigenvalue_eq_self + (hasEigenvalue_of_hasEigenvector ⟨operatorEigenFamily_mem A i, hn⟩) + simpa only [RCLike.re_eq_complex_re, RCLike.ofReal_eq_complex_ofReal] using + (RCLike.conj_eq_iff_re.mp hc) + +theorem compactSelfAdjointBasis_apply_operator {A : E →L[ℂ] E} + (hc : IsCompactOperator A) (hA : IsSelfAdjoint A) (i : operatorEigenIndex A) : + A (compactSelfAdjointBasis hc hA i) = + (i.1.re : ℂ) • compactSelfAdjointBasis hc hA i := by + rw [compactSelfAdjointBasis_apply, operatorEigenFamily_eigenvalue_real hA] + exact mem_eigenspace_iff.mp (operatorEigenFamily_mem A i) + +theorem operatorEigenFamily_eigenvalue_nonneg {A : E →L[ℂ] E} (hA : 0 ≤ A) + (i : operatorEigenIndex A) : 0 ≤ i.1.re := by + have hi := (ContinuousLinearMap.nonneg_iff_isPositive.mp hA).re_inner_nonneg_right + (operatorEigenFamily A i) + have heig : A (operatorEigenFamily A i) = i.1 • operatorEigenFamily A i := + mem_eigenspace_iff.mp (operatorEigenFamily_mem A i) + rw [heig, + ← operatorEigenFamily_eigenvalue_real hA.isSelfAdjoint i, inner_smul_right, + inner_self_eq_norm_sq_to_K, + (operatorEigenFamily_orthonormal hA.isSelfAdjoint).norm_eq_one i] at hi + simpa only [one_pow, RCLike.ofReal_one, mul_one, RCLike.re_eq_complex_re, + Complex.ofReal_re] using hi + +/-- An orthonormal eigenbasis of a positive trace-class operator, indexed by its compact spectral +decomposition. -/ +def positiveTraceClassEigenbasis {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) : + HilbertBasis (operatorEigenIndex A) ℂ E := + compactSelfAdjointBasis (positiveTraceClass_isCompactOperator hA) hA.1.isSelfAdjoint + +theorem positiveTrace_eq_eigenvalue_sum {A : E →L[ℂ] E} (hc : IsCompactOperator A) + (hA : 0 ≤ A) : positiveTrace A = ∑' i : operatorEigenIndex A, ENNReal.ofReal i.1.re := by + rw [positiveTrace_eq_tsum_diagonal (compactSelfAdjointBasis hc hA.isSelfAdjoint) hA] + apply tsum_congr + intro i + rw [compactSelfAdjointBasis_apply_operator, inner_smul_right, inner_self_eq_norm_sq_to_K, + (compactSelfAdjointBasis hc hA.isSelfAdjoint).orthonormal.norm_eq_one] + simp only [one_pow, RCLike.ofReal_one, mul_one, Complex.ofReal_re] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CompactPositivePowers.lean b/LeanPool/VacuumBellSeparation/Gaussian/CompactPositivePowers.lean new file mode 100644 index 0000000000..5f6d2feab1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CompactPositivePowers.lean @@ -0,0 +1,76 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPowerIntertwining + +/-! +# Compactness of genuine positive functional-calculus powers + +The zero-preserving continuous functional calculus of a compact +self-adjoint operator stays compact, by Stone--Weierstrass induction and +operator-norm closedness. Thus every positive power of a compact positive +operator is compact. Conversely a finite positive power trace implies +compactness of the original positive operator. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Filter +open scoped Topology ENNReal ContinuousFunctionalCalculus ContinuousMapZero + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem isCompactOperator_cfcₙHom {A : E →L[ℂ] E} (hc : IsCompactOperator A) + (hA : IsSelfAdjoint A) (f : C(quasispectrum ℝ A, ℝ)₀) : + IsCompactOperator (cfcₙHom hA f) := by + induction f using ContinuousMapZero.induction_on_of_compact with + | zero => simpa only [map_zero, FunLike.coe_zero] using + (isCompactOperator_zero : IsCompactOperator (0 : E → E)) + | id => simpa only [cfcₙHom_id] using hc + | star_id => simpa only [map_star, cfcₙHom_id, hA.star_eq] using hc + | add f g hf hg => simpa only [map_add, FunLike.coe_add] using hf.add hg + | mul f g hf hg => + rw [map_mul] + exact hf.comp_clm (cfcₙHom hA g) + | smul r f hf => simpa only [map_smul, FunLike.coe_smul] using hf.smul r + | frequently f hf => + exact (isClosed_setOfPred_isCompactOperator.preimage + (cfcₙHom_continuous hA)).mem_of_frequently_of_tendsto + hf tendsto_id + +theorem isCompactOperator_cfcₙ {A : E →L[ℂ] E} (hc : IsCompactOperator A) + (hA : IsSelfAdjoint A) (f : ℝ → ℝ) (hf : ContinuousOn f (quasispectrum ℝ A)) + (hf₀ : f 0 = 0) : IsCompactOperator (cfcₙ (A := E →L[ℂ] E) f A) := by + rw [cfcₙ_apply (A := E →L[ℂ] E) f A hf hf₀ hA] + exact isCompactOperator_cfcₙHom hc hA _ + +theorem isCompactOperator_positive_rpow {A : E →L[ℂ] E} (hc : IsCompactOperator A) + (hA : 0 ≤ A) {p : ℝ} (hp : 0 < p) : IsCompactOperator (A ^ p) := by + have hf : Continuous (fun x : ℝ => x ^ p) := Real.continuous_rpow_const hp.le + have hf₀ : (0 : ℝ) ^ p = 0 := Real.zero_rpow hp.ne' + rw [CFC.rpow_eq_cfc_real hA, ← cfcₙ_eq_cfc hf.continuousOn hf₀] + exact isCompactOperator_cfcₙ hc hA.isSelfAdjoint _ hf.continuousOn hf₀ + +theorem isCompactOperator_of_positive_rpow {A : E →L[ℂ] E} + (hA : 0 ≤ A) {p : ℝ} (hp : 0 < p) (hc : IsCompactOperator (A ^ p)) : + IsCompactOperator A := by + have h := isCompactOperator_positive_rpow hc CFC.rpow_nonneg (one_div_pos.mpr hp) + rwa [CFC.rpow_rpow_of_exponent_nonneg A p (1 / p) hp.le (one_div_pos.mpr hp).le hA, + mul_one_div_cancel hp.ne', CFC.rpow_one A hA] at h + +theorem isCompactOperator_of_finite_positive_power_trace {A : E →L[ℂ] E} + (hA : 0 ≤ A) {p : ℝ} (hp : 0 < p) (ht : positiveTrace (A ^ p) < ∞) : + IsCompactOperator A := + isCompactOperator_of_positive_rpow hA hp + (positiveTraceClass_isCompactOperator ⟨CFC.rpow_nonneg, ht⟩) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CompactPowerIntertwining.lean b/LeanPool/VacuumBellSeparation/Gaussian/CompactPowerIntertwining.lean new file mode 100644 index 0000000000..a6f710cd96 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CompactPowerIntertwining.lean @@ -0,0 +1,109 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertEigenTrace + +/-! +# Actual CFC intertwining and cyclic positive power traces + +A bounded map intertwining positive operators also intertwines their +positive powers when the source operator is compact. This follows on its +actual Hilbert eigenbasis, with zero image vectors handled explicitly. +The Hilbert--Schmidt cyclic trace then identifies Tr((T†T)^q) and +Tr((TT†)^q) for q >= 1. No polar decomposition or bounded inverse is assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem positiveOperator_rpow_add_nonneg {A : E →L[ℂ] E} (hA : 0 ≤ A) + {s t : ℝ} (hs : 0 ≤ s) (ht : 0 ≤ t) : A ^ (s + t) = A ^ s * A ^ t := by + rw [CFC.rpow_eq_cfc_real hA, CFC.rpow_eq_cfc_real hA, CFC.rpow_eq_cfc_real hA, + ← cfc_mul _ _ A (Real.continuous_rpow_const hs).continuousOn + (Real.continuous_rpow_const ht).continuousOn] + exact cfc_congr fun x hx => Real.rpow_add_of_nonneg + (spectrum_nonneg_of_nonneg hA hx) hs ht + +theorem compact_positive_rpow_intertwine {A : E →L[ℂ] E} {B : F →L[ℂ] F} + (hcA : IsCompactOperator A) (hA : 0 ≤ A) (hB : 0 ≤ B) + (S : E →L[ℂ] F) (hS : B.comp S = S.comp A) {p : ℝ} (hp : 0 < p) : + (B ^ p).comp S = S.comp (A ^ p) := by + let b := compactSelfAdjointBasis hcA hA.isSelfAdjoint + have heig (i : operatorEigenIndex A) : A (b i) = i.1.re • b i := by + simpa only [RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal] using + compactSelfAdjointBasis_apply_operator hcA hA.isSelfAdjoint i + apply continuousLinearMap_eq_of_dense_span b b.dense_span + intro i + have hBi : B (S (b i)) = i.1.re • S (b i) := by + have h := DFunLike.congr_fun hS (b i) + simpa only [comp_apply, heig, map_smul_of_tower] using h + rw [comp_apply, comp_apply, hilbertEigenbasis_rpow_apply b hA heig hp, + map_smul_of_tower] + by_cases hi : S (b i) = 0 + · simp only [hi, map_zero, smul_zero] + · exact rpow_apply_eigenvector hB (eigenvalue_mem_real_spectrum hi hBi) hBi hp + +theorem positiveTrace_star_mul_self_rpow (T : E →L[ℂ] E) + (hc : IsCompactOperator (star T * T)) {q : ℝ} (hq : 1 ≤ q) : + positiveTrace ((star T * T) ^ q) = positiveTrace ((T * star T) ^ q) := by + let A := star T * T + let B := T * star T + have hA : 0 ≤ A := nonneg_iff_isPositive.mpr (isPositive_adjoint_comp_self T) + have hB : 0 ≤ B := nonneg_iff_isPositive.mpr (isPositive_self_comp_adjoint T) + rcases eq_or_lt_of_le hq with hq | hq + · subst q + rw [CFC.rpow_one _ hA, CFC.rpow_one _ hB] + exact positiveTrace_adjoint_comp_eq_comp_adjoint T + let s := (q - 1) / 2 + have hs : 0 ≤ s := by dsimp only [s]; positivity + have hp : 0 < q - 1 := sub_pos.mpr hq + have hI := compact_positive_rpow_intertwine hc hA hB T + (show B.comp T = T.comp A by + change (T * star T) * T = T * (star T * T) + exact mul_assoc _ _ _) hp + change B ^ (q - 1) * T = T * A ^ (q - 1) at hI + let S := T * A ^ s + have hAs : star (A ^ s) = A ^ s := CFC.rpow_nonneg.isSelfAdjoint.star_eq + have hSS : S.adjoint.comp S = A ^ q := by + change star (T * A ^ s) * (T * A ^ s) = A ^ q + rw [star_mul, hAs] + calc + _ = A ^ s * A * A ^ s := by dsimp only [A]; noncomm_ring + _ = A ^ s * A ^ (1 : ℝ) * A ^ s := by rw [CFC.rpow_one A hA] + _ = A ^ (s + 1) * A ^ s := by rw [positiveOperator_rpow_add_nonneg hA hs zero_le_one] + _ = A ^ (s + 1 + s) := (positiveOperator_rpow_add_nonneg hA (by positivity) hs).symm + _ = A ^ q := by congr 1; dsimp only [s]; ring + have hSS' : S.comp S.adjoint = B ^ q := by + change (T * A ^ s) * star (T * A ^ s) = B ^ q + rw [star_mul, hAs] + calc + _ = T * (A ^ s * A ^ s) * star T := by noncomm_ring + _ = T * A ^ (s + s) * star T := by rw [positiveOperator_rpow_add_nonneg hA hs hs] + _ = T * A ^ (q - 1) * star T := by + have hs' : s + s = q - 1 := by + dsimp only [s] + ring + rw [hs'] + _ = B ^ (q - 1) * B := by rw [← hI, mul_assoc] + _ = B ^ (q - 1) * B ^ (1 : ℝ) := by rw [CFC.rpow_one B hB] + _ = B ^ (q - 1 + 1) := (positiveOperator_rpow_add_nonneg hB hp.le zero_le_one).symm + _ = B ^ q := by rw [sub_add_cancel] + rw [← hSS, ← hSS'] + exact positiveTrace_adjoint_comp_eq_comp_adjoint S + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CompactTraceNorm.lean b/LeanPool/VacuumBellSeparation/Gaussian/CompactTraceNorm.lean new file mode 100644 index 0000000000..9c0aeb91e8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CompactTraceNorm.lean @@ -0,0 +1,136 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPositivePowers +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceHolder +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceOrder +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Abs + +/-! +# The actual extended trace norm and self-adjoint order bounds + +This is the trace of the genuine operator absolute value on the full +Hilbert space. Compact self-adjoint operators have an actual Hilbert +eigenbasis, which identifies this trace with the extended absolute +eigenvalue sum. The order estimate uses diagonal quadratic forms and +never asserts the false implication `-B ≤ A ≤ B → |A| ≤ B`. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- The genuine extended Schatten one norm, allowed to be infinite. -/ +def operatorTraceNorm (A : E →L[ℂ] E) : ℝ≥0∞ := positiveTrace (CFC.abs A) + +theorem isCompactOperator_abs {A : E →L[ℂ] E} (hc : IsCompactOperator A) + (hA : IsSelfAdjoint A) : IsCompactOperator (CFC.abs A : E →L[ℂ] E) := by + have he : CFC.abs A = cfcₙ (A := E →L[ℂ] E) (fun x : ℝ => ‖x‖) A := + CFC.abs_eq_cfcₙ_norm A hA + rw [he] + exact isCompactOperator_cfcₙ hc hA (fun x : ℝ => ‖x‖) + continuous_norm.continuousOn (norm_zero : ‖(0 : ℝ)‖ = 0) + +theorem operatorTraceNorm_eq_eigenvalue_sum {A : E →L[ℂ] E} + (hc : IsCompactOperator A) (hA : IsSelfAdjoint A) : + operatorTraceNorm A = ∑' i : operatorEigenIndex A, ENNReal.ofReal |i.1.re| := by + let b := compactSelfAdjointBasis hc hA + have heig (i : operatorEigenIndex A) : A (b i) = i.1.re • b i := by + simpa only [RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal] using + compactSelfAdjointBasis_apply_operator hc hA i + have habs (i : operatorEigenIndex A) : CFC.abs A (b i) = |i.1.re| • b i := by + have hn : b i ≠ 0 := by + intro h + simpa [h] using b.orthonormal.norm_eq_one i + rw [CFC.abs_eq_cfc_norm A hA] + simpa only [Real.norm_eq_abs] using cfc_apply_eigenvector hA + (eigenvalue_mem_real_spectrum hn (heig i)) (heig i) (fun x : ℝ => ‖x‖) + continuous_norm.continuousOn + rw [operatorTraceNorm, positiveTrace_eq_tsum_diagonal b (CFC.abs_nonneg A)] + apply tsum_congr + intro i + change ENNReal.ofReal (RCLike.re (inner ℂ (b i) (CFC.abs A (b i)))) = _ + rw [habs, inner_smul_right_eq_smul, RCLike.smul_re, inner_self_eq_norm_sq, + b.orthonormal.norm_eq_one] + simp + +theorem operator_abs_sub_nonneg {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) : + 0 ≤ CFC.abs A - A := by + rw [CFC.abs_sub_self A hA, two_smul] + exact add_nonneg (CFC.negPart_nonneg A) (CFC.negPart_nonneg A) + +theorem operator_abs_add_nonneg {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) : + 0 ≤ CFC.abs A + A := by + rw [CFC.abs_add_self A hA, two_smul] + exact add_nonneg (CFC.posPart_nonneg A) (CFC.posPart_nonneg A) + +theorem operatorTraceNorm_le_positiveTrace_of_order_bounds + {A B : E →L[ℂ] E} (hc : IsCompactOperator A) (hA : IsSelfAdjoint A) + (hB : 0 ≤ B) (hlo : -B ≤ A) (hhi : A ≤ B) : + operatorTraceNorm A ≤ positiveTrace B := by + let b := compactSelfAdjointBasis hc hA + have heig (i : operatorEigenIndex A) : (inner ℂ (b i) (A (b i))).re = i.1.re := by + rw [compactSelfAdjointBasis_apply_operator, inner_smul_right, inner_self_eq_norm_sq_to_K, + b.orthonormal.norm_eq_one] + simp only [one_pow, RCLike.ofReal_one, mul_one, Complex.ofReal_re] + rw [operatorTraceNorm_eq_eigenvalue_sum hc hA, positiveTrace_eq_tsum_diagonal b hB] + apply tsum_le_tsum + intro i + apply ENNReal.ofReal_le_ofReal + have hh := (ContinuousLinearMap.nonneg_iff_isPositive.mp + (sub_nonneg.mpr hhi)).re_inner_nonneg_right (b i) + have hl := (ContinuousLinearMap.nonneg_iff_isPositive.mp + (neg_le_iff_add_nonneg'.mp hlo)).re_inner_nonneg_right (b i) + simp only [sub_apply, add_apply, inner_sub_right, inner_add_right, + RCLike.re_eq_complex_re, Complex.sub_re, Complex.add_re, heig] at hh hl + exact abs_le.mpr ⟨by linarith, by linarith⟩ + +theorem operatorTraceNorm_add_le {A B : E →L[ℂ] E} + (hcA : IsCompactOperator A) (hcB : IsCompactOperator B) + (hA : IsSelfAdjoint A) (hB : IsSelfAdjoint B) : + operatorTraceNorm (A + B) ≤ operatorTraceNorm A + operatorTraceNorm B := by + have hu := add_le_add (sub_nonneg.mp (operator_abs_sub_nonneg hA)) + (sub_nonneg.mp (operator_abs_sub_nonneg hB)) + have hl : -(CFC.abs A + CFC.abs B) ≤ A + B := by + simpa only [neg_add] using add_le_add + (neg_le_iff_add_nonneg'.mpr (operator_abs_add_nonneg hA)) + (neg_le_iff_add_nonneg'.mpr (operator_abs_add_nonneg hB)) + have h := operatorTraceNorm_le_positiveTrace_of_order_bounds (hcA.add hcB) (hA.add hB) + (add_nonneg (CFC.abs_nonneg A) (CFC.abs_nonneg B)) hl hu + simpa only [positiveTrace_add (CFC.abs_nonneg A) (CFC.abs_nonneg B), operatorTraceNorm] using h + +@[simp] theorem operatorTraceNorm_of_nonneg {A : E →L[ℂ] E} (hA : 0 ≤ A) : + operatorTraceNorm A = positiveTrace A := by + rw [operatorTraceNorm, CFC.abs_of_nonneg A hA] + +@[simp] theorem operatorTraceNorm_neg (A : E →L[ℂ] E) : + operatorTraceNorm (-A) = operatorTraceNorm A := by simp only [operatorTraceNorm, CFC.abs_neg] + +theorem operatorTraceNorm_sub_le {A B : E →L[ℂ] E} + (hcA : IsCompactOperator A) (hcB : IsCompactOperator B) + (hA : IsSelfAdjoint A) (hB : IsSelfAdjoint B) : + operatorTraceNorm (A - B) ≤ operatorTraceNorm A + operatorTraceNorm B := by + simpa only [sub_eq_add_neg, operatorTraceNorm_neg] using + operatorTraceNorm_add_le hcA hcB.neg hA hB.neg + +theorem operatorTraceNorm_density_difference_lt_top {ρ σ : E →L[ℂ] E} + (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) : + operatorTraceNorm (ρ - σ) < ∞ := by + exact (operatorTraceNorm_sub_le (positiveTraceClass_isCompactOperator hρ) + (positiveTraceClass_isCompactOperator hσ) hρ.1.isSelfAdjoint hσ.1.isSelfAdjoint).trans_lt + (by simpa only [operatorTraceNorm_of_nonneg hρ.1, operatorTraceNorm_of_nonneg hσ.1] + using ENNReal.add_lt_top.mpr ⟨hρ.2, hσ.2⟩) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplementaryGramPartition.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplementaryGramPartition.lean new file mode 100644 index 0000000000..4ba51980e4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplementaryGramPartition.lean @@ -0,0 +1,130 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplementaryGramPowers + +/-! +# A bounded partition for the two complementary source weights + +The partition uses only nonnegative continuous powers and the inverse of +G^a+H^a ≥ I. It therefore includes b=1/2 and singular Gram operators. +No inverse of the reserve is introduced. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Complementary gram part left given by `gramMinus B ^ (b - 1 / 2) * Ring.inverse +(complementaryGramPowerSum (b - 1 / 2) B)`. -/ +noncomputable def complementaryGramPartLeft (b : ℝ) (B : E →L[ℂ] E) : E →L[ℂ] E := + gramMinus B ^ (b - 1 / 2) * Ring.inverse (complementaryGramPowerSum (b - 1 / 2) B) + +/-- Complementary gram part right given by `gramPlus B ^ (b - 1 / 2) * Ring.inverse +(complementaryGramPowerSum (b - 1 / 2) B)`. -/ +noncomputable def complementaryGramPartRight (b : ℝ) (B : E →L[ℂ] E) : E →L[ℂ] E := + gramPlus B ^ (b - 1 / 2) * Ring.inverse (complementaryGramPowerSum (b - 1 / 2) B) + +theorem complementaryGramPart_add {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {b : ℝ} (hb : 1 / 2 ≤ b) : + complementaryGramPartLeft b B + complementaryGramPartRight b B = 1 := by + rw [complementaryGramPartLeft, complementaryGramPartRight, ← add_mul, add_comm] + exact Ring.mul_inverse_cancel _ + (complementaryGramPowerSum_isStrictlyPositive hB hn (sub_nonneg.mpr hb)).isUnit + +theorem gram_powers_commute {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {p q : ℝ} (hp : 0 ≤ p) (hq : 0 ≤ q) : + Commute (gramPlus B ^ p) (gramMinus B ^ q) := by + rw [gramPlus_rpow_eq_cfc hB hn hp, gramMinus_rpow_eq_cfc hB hn hq] + exact cfc_commute_cfc _ _ B + +theorem complementaryGramPartLeft_weight {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {b : ℝ} + (hb : 1 / 2 ≤ b) (hb1 : b ≤ 1) : + (gramPlus B ^ (b / 2) * gramMinus B ^ ((1 - b) / 2)) * + complementaryGramPartLeft b B = + reserve B ^ b * Ring.inverse (complementaryGramPowerSum (b - 1 / 2) B) := by + have ha : 0 ≤ b - 1 / 2 := sub_nonneg.mpr hb + have hc : 0 ≤ (1 - b) / 2 := by linarith + have hsum : (1 - b) / 2 + (b - 1 / 2) = b / 2 := by ring + rw [complementaryGramPartLeft, ← mul_assoc, mul_assoc (gramPlus B ^ (b / 2)), + ← positiveOperator_rpow_add (gramMinus B) hc ha, hsum, + ← reserve_rpow_eq_gram_powers hB hn (by linarith : 0 ≤ b)] + +theorem complementaryGramPartRight_weight {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {b : ℝ} + (hb : 1 / 2 ≤ b) (hb1 : b ≤ 1) : + (gramPlus B ^ ((1 - b) / 2) * gramMinus B ^ (b / 2)) * + complementaryGramPartRight b B = + reserve B ^ b * Ring.inverse (complementaryGramPowerSum (b - 1 / 2) B) := by + have ha : 0 ≤ b - 1 / 2 := sub_nonneg.mpr hb + have hc : 0 ≤ (1 - b) / 2 := by linarith + have hd : 0 ≤ b / 2 := by linarith + have hsum : (1 - b) / 2 + (b - 1 / 2) = b / 2 := by ring + rw [complementaryGramPartRight, ← mul_assoc, mul_assoc (gramPlus B ^ ((1 - b) / 2)), + (gram_powers_commute hB hn ha hd).eq.symm, ← mul_assoc, + ← positiveOperator_rpow_add (gramPlus B) hc ha, hsum, + ← reserve_rpow_eq_gram_powers hB hn (by linarith : 0 ≤ b)] + +theorem reserve_rpow_commute_complementaryGramPowerSum_inverse {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {a b : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) : + Commute (reserve B ^ b) (Ring.inverse (complementaryGramPowerSum a B)) := by + have hh : 0 ≤ b / 2 := div_nonneg hb (by norm_num) + rw [reserve_rpow_eq_gram_powers hB hn hb, gramPlus_rpow_eq_cfc hB hn hh, + gramMinus_rpow_eq_cfc hB hn hh, complementaryGramPowerSum_inverse_eq_cfc hB hn ha] + exact (cfc_commute_cfc _ _ B).mul_left (cfc_commute_cfc _ _ B) + +theorem complementaryGramPart_weight_norm_le {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {b : ℝ} + (hb : 1 / 2 ≤ b) (hb1 : b ≤ 1) (x : E) : + ‖(gramPlus B ^ (b / 2) * gramMinus B ^ ((1 - b) / 2)) + (complementaryGramPartLeft b B x)‖ ≤ ‖(reserve B ^ b) x‖ ∧ + ‖(gramPlus B ^ ((1 - b) / 2) * gramMinus B ^ (b / 2)) + (complementaryGramPartRight b B x)‖ ≤ ‖(reserve B ^ b) x‖ := by + have hcommon : ‖(reserve B ^ b * + Ring.inverse (complementaryGramPowerSum (b - 1 / 2) B)) x‖ ≤ + ‖(reserve B ^ b) x‖ := by + rw [(reserve_rpow_commute_complementaryGramPowerSum_inverse hB hn + (sub_nonneg.mpr hb) (by linarith : 0 ≤ b)).eq, mul_apply_eq_comp] + exact (le_opNorm _ _).trans ((mul_le_mul_of_nonneg_right + (norm_complementaryGramPowerSum_inverse_le_one hB hn (sub_nonneg.mpr hb)) + (norm_nonneg _)).trans_eq (one_mul _)) + constructor + · simpa only [← mul_apply_eq_comp, complementaryGramPartLeft_weight hB hn hb hb1] using hcommon + · simpa only [← mul_apply_eq_comp, complementaryGramPartRight_weight hB hn hb hb1] using hcommon + +/-- Two genuine weighted bounds imply the reserve bound. The map need not +already be continuous, and the reserve need not have a bounded inverse. -/ +theorem bound_reserve_of_complementary_weights + {F : Type*} [NormedAddCommGroup F] [NormedSpace ℂ F] + {B : E →L[ℂ] E} (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) + (T : E →ₗ[ℂ] F) {b C₁ C₂ : ℝ} (hb : 1 / 2 ≤ b) (hb1 : b ≤ 1) + (hC₁ : 0 ≤ C₁) (hC₂ : 0 ≤ C₂) + (h₁ : ∀ x, ‖T x‖ ≤ C₁ * ‖(gramPlus B ^ (b / 2) * gramMinus B ^ ((1 - b) / 2)) x‖) + (h₂ : ∀ x, ‖T x‖ ≤ C₂ * ‖(gramPlus B ^ ((1 - b) / 2) * gramMinus B ^ (b / 2)) x‖) : + ∀ x, ‖T x‖ ≤ (C₁ + C₂) * ‖(reserve B ^ b) x‖ := by + intro x + have hsplit : x = complementaryGramPartLeft b B x + complementaryGramPartRight b B x := by + simpa only [add_apply, _root_.one_apply_eq_self] using + (congrArg (fun A : E →L[ℂ] E => A x) (complementaryGramPart_add hB hn hb)).symm + have hw := complementaryGramPart_weight_norm_le hB hn hb hb1 x + calc + ‖T x‖ = ‖T (complementaryGramPartLeft b B x) + T (complementaryGramPartRight b B x)‖ := by + conv_lhs => rw [hsplit, map_add] + _ ≤ ‖T (complementaryGramPartLeft b B x)‖ + ‖T + (complementaryGramPartRight b B x)‖ := norm_add_le _ _ + _ ≤ C₁ * ‖(reserve B ^ b) x‖ + C₂ * ‖(reserve B ^ b) x‖ := + add_le_add ((h₁ _).trans (mul_le_mul_of_nonneg_left hw.1 hC₁)) + ((h₂ _).trans (mul_le_mul_of_nonneg_left hw.2 hC₂)) + _ = _ := (add_mul _ _ _).symm + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplementaryGramPowers.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplementaryGramPowers.lean new file mode 100644 index 0000000000..be5b453293 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplementaryGramPowers.lean @@ -0,0 +1,141 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedCommutation +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalOperator +public import LeanPool.VacuumBellSeparation.FreeField.PositiveOperatorPowers + +/-! +# Bounded power calculus for complementary Gram operators + +For the actual complementary pair I+B,I-B, nonnegative powers retain +zero spectral endpoints. Their sum is bounded below by I. Consequently +its inverse is a genuine bounded contraction, including exponent zero +and the zero-dimensional Hilbert space. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem gramPlus_rpow_eq_cfc {B : E →L[ℂ] E} (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) + {p : ℝ} (hp : 0 ≤ p) : + gramPlus B ^ p = cfc (fun x : ℝ => (1 + x) ^ p) B := by + rw [CFC.rpow_eq_cfc_real (gramPlus_nonneg hB hn)] + change cfc (fun x : ℝ => x ^ p) (1 + B) = _ + rw [← cfc_one_add_id B hB, + ← cfc_comp' (fun x : ℝ => x ^ p) (fun x : ℝ => 1 + x) B + (Real.continuous_rpow_const hp).continuousOn (by fun_prop) hB] + +theorem gramMinus_rpow_eq_cfc {B : E →L[ℂ] E} (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) + {p : ℝ} (hp : 0 ≤ p) : + gramMinus B ^ p = cfc (fun x : ℝ => (1 - x) ^ p) B := by + rw [CFC.rpow_eq_cfc_real (gramMinus_nonneg hB hn)] + change cfc (fun x : ℝ => x ^ p) (1 - B) = _ + rw [← cfc_one_sub_id B hB, + ← cfc_comp' (fun x : ℝ => x ^ p) (fun x : ℝ => 1 - x) B + (Real.continuous_rpow_const hp).continuousOn (by fun_prop) hB] + +theorem continuous_gramPlusPower {p : ℝ} (hp : 0 ≤ p) : + Continuous (fun x : ℝ => (1 + x) ^ p) := + (continuous_const.add continuous_id).rpow_const (fun _ => Or.inr hp) + +theorem continuous_gramMinusPower {p : ℝ} (hp : 0 ≤ p) : + Continuous (fun x : ℝ => (1 - x) ^ p) := + (continuous_const.sub continuous_id).rpow_const (fun _ => Or.inr hp) + +theorem reserve_rpow_eq_gram_powers {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {p : ℝ} (hp : 0 ≤ p) : + reserve B ^ p = gramPlus B ^ (p / 2) * gramMinus B ^ (p / 2) := by + have hs : ∀ x ∈ spectrum ℝ B, x ^ 2 ≤ 1 := by + intro x hx + have hi := spectrum_mem_Icc_of_norm_le_one hn hx + nlinarith [hi.1, hi.2] + have hhalf : 0 ≤ p / 2 := div_nonneg hp (by norm_num) + have hr : reserve B ^ p = (1 - B ^ 2) ^ (p / 2) := by + have htwice : (2 : ℝ) * (p / 2) = p := by ring + simpa only [reserve, reserveSquare, htwice] using + sqrt_one_sub_sq_rpow (a := B) hhalf (reserveSquare_nonneg hB hn) + rw [hr, one_sub_sq_rpow_eq_cfc hhalf hB hs, + gramPlus_rpow_eq_cfc hB hn hhalf, gramMinus_rpow_eq_cfc hB hn hhalf, + ← cfc_mul _ _ B (continuous_gramPlusPower hhalf).continuousOn + (continuous_gramMinusPower hhalf).continuousOn] + apply cfc_congr + intro x hx + dsimp only + have hi := spectrum_mem_Icc_of_norm_le_one hn hx + rw [show 1 - x ^ 2 = (1 + x) * (1 - x) by ring, + Real.mul_rpow (by linarith [hi.1]) (by linarith [hi.2])] + +/-- Complementary power sum given by `(1 + x) ^ a + (1 - x) ^ a`. -/ +noncomputable def complementaryPowerSum (a x : ℝ) : ℝ := (1 + x) ^ a + (1 - x) ^ a + +theorem continuous_complementaryPowerSum {a : ℝ} (ha : 0 ≤ a) : + Continuous (complementaryPowerSum a) := + (continuous_gramPlusPower ha).add (continuous_gramMinusPower ha) + +theorem complementaryPowerSum_ge_one {a x : ℝ} (ha : 0 ≤ a) (hx : x ∈ Set.Icc (-1 : ℝ) 1) : + 1 ≤ complementaryPowerSum a x := by + unfold complementaryPowerSum + rcases le_total 0 x with h | h + · have hp := Real.one_le_rpow (show 1 ≤ 1 + x by linarith) ha + have hm := Real.rpow_nonneg (show 0 ≤ 1 - x by linarith [hx.2]) a + linarith + · have hm := Real.one_le_rpow (show 1 ≤ 1 - x by linarith) ha + have hp := Real.rpow_nonneg (show 0 ≤ 1 + x by linarith [hx.1]) a + linarith + +/-- Complementary gram power sum given by `gramPlus B ^ a + gramMinus B ^ a`. -/ +noncomputable def complementaryGramPowerSum (a : ℝ) (B : E →L[ℂ] E) : E →L[ℂ] E := + gramPlus B ^ a + gramMinus B ^ a + +theorem complementaryGramPowerSum_eq_cfc {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {a : ℝ} (ha : 0 ≤ a) : + complementaryGramPowerSum a B = cfc (complementaryPowerSum a) B := by + rw [complementaryGramPowerSum, gramPlus_rpow_eq_cfc hB hn ha, + gramMinus_rpow_eq_cfc hB hn ha, + ← cfc_add B _ _ (continuous_gramPlusPower ha).continuousOn + (continuous_gramMinusPower ha).continuousOn] + rfl + +theorem one_le_complementaryGramPowerSum {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {a : ℝ} (ha : 0 ≤ a) : + 1 ≤ complementaryGramPowerSum a B := by + rw [complementaryGramPowerSum_eq_cfc hB hn ha] + simpa only [map_one] using algebraMap_le_cfc (complementaryPowerSum a) 1 B + (fun x hx => complementaryPowerSum_ge_one ha (spectrum_mem_Icc_of_norm_le_one hn hx)) + (continuous_complementaryPowerSum ha).continuousOn hB + +theorem complementaryGramPowerSum_isStrictlyPositive {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {a : ℝ} (ha : 0 ≤ a) : + IsStrictlyPositive (complementaryGramPowerSum a B) := + isStrictlyPositive_one.of_le (one_le_complementaryGramPowerSum hB hn ha) + +theorem complementaryGramPowerSum_inverse_eq_cfc {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {a : ℝ} (ha : 0 ≤ a) : + Ring.inverse (complementaryGramPowerSum a B) = + cfc (fun x => (complementaryPowerSum a x)⁻¹) B := by + rw [complementaryGramPowerSum_eq_cfc hB hn ha] + exact (cfc_inv _ B + (fun x hx => ne_of_gt (lt_of_lt_of_le zero_lt_one + (complementaryPowerSum_ge_one ha (spectrum_mem_Icc_of_norm_le_one hn hx)))) + (continuous_complementaryPowerSum ha).continuousOn hB).symm + +theorem norm_complementaryGramPowerSum_inverse_le_one {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hn : ‖B‖ ≤ 1) {a : ℝ} (ha : 0 ≤ a) : + ‖Ring.inverse (complementaryGramPowerSum a B)‖ ≤ 1 := by + rw [complementaryGramPowerSum_inverse_eq_cfc hB hn ha] + apply norm_cfc_le (by norm_num) + intro x hx + have hs := complementaryPowerSum_ge_one ha (spectrum_mem_Icc_of_norm_le_one hn hx) + rw [Real.norm_eq_abs, abs_of_nonneg (inv_nonneg.mpr (by linarith))] + exact inv_le_one_of_one_le₀ hs + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplementaryLabelCovariance.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplementaryLabelCovariance.lean new file mode 100644 index 0000000000..172928fbca --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplementaryLabelCovariance.lean @@ -0,0 +1,160 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DecorrelatedCovariance + +/-! +# Decorrelation from actual complementary real label subspaces + +The matrices are constructed from the genuine projections along the other +subspace. Their sum, idempotence, symplectic cross blocks and covariance +restrictions are proved. No orthogonal coordinate decomposition is assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Complementary label projection defined as `LinearMap.toMatrix' (L.projection R h)`. -/ +def complementaryLabelProjection (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) : + Matrix ι ι ℝ := LinearMap.toMatrix' (L.projection R h) + +@[simp] theorem complementaryLabelProjection_mulVec + (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) (x : ι → ℝ) : + complementaryLabelProjection L R h *ᵥ x = L.projection R h x := + LinearMap.toMatrix'_mulVec _ _ + +theorem complementaryLabelProjection_add + (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) : + complementaryLabelProjection L R h + complementaryLabelProjection R L h.symm = 1 := by + have he := congrArg LinearMap.toMatrix' (Submodule.projection_add_projection_eq_id h) + simpa only [complementaryLabelProjection, map_add, LinearMap.toMatrix'_id] using he + +theorem complementaryLabelProjection_idempotent + (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) : + complementaryLabelProjection L R h * complementaryLabelProjection L R h = + complementaryLabelProjection L R h := by + have he : L.projection R h * L.projection R h = L.projection R h := + Submodule.isIdempotentElem_projection h + have hm := congrArg LinearMap.toMatrix' he + simpa only [complementaryLabelProjection, LinearMap.toMatrix'_mul] using hm + +omit [DecidableEq ι] in +theorem bilinear_mixed_congruence (P M Q : Matrix ι ι ℝ) (x y : ι → ℝ) : + (P *ᵥ x) ⬝ᵥ (M *ᵥ (Q *ᵥ y)) = x ⬝ᵥ ((Pᵀ * M * Q) *ᵥ y) := by + calc + (P *ᵥ x) ⬝ᵥ (M *ᵥ (Q *ᵥ y)) = + (M *ᵥ (Q *ᵥ y)) ⬝ᵥ ((Pᵀ)ᵀ *ᵥ x) := by + rw [Matrix.transpose_transpose, dotProduct_comm] + _ = x ⬝ᵥ (Pᵀ *ᵥ (M *ᵥ (Q *ᵥ y))) := + Matrix.dotProduct_transpose_mulVec Pᵀ _ x + _ = x ⬝ᵥ ((Pᵀ * M * Q) *ᵥ y) := by + rw [Matrix.mulVec_mulVec, Matrix.mulVec_mulVec] + +theorem complementaryLabelProjection_cross_zero + (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) (M : Matrix ι ι ℝ) + (hcross : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (M *ᵥ y) = 0) : + (complementaryLabelProjection L R h)ᵀ * M * complementaryLabelProjection R L h.symm = 0 := by + ext i j + have hc := hcross (L.projection R h (Pi.single i 1)) (Submodule.projection_apply_mem h _) + (R.projection L h.symm (Pi.single j 1)) (Submodule.projection_apply_mem h.symm _) + rw [← complementaryLabelProjection_mulVec L R h, + ← complementaryLabelProjection_mulVec R L h.symm, + bilinear_mixed_congruence] at hc + simpa only [single_one_dotProduct, Matrix.mulVec_single_one, Matrix.col_apply, + Matrix.zero_apply] using hc + +omit [DecidableEq ι] in +theorem transpose_cross_zero_of_skew {Ω P Q : Matrix ι ι ℝ} + (hΩ : Ωᵀ = -Ω) (hcross : Pᵀ * Ω * Q = 0) : Qᵀ * Ω * P = 0 := by + have ht := congrArg Matrix.transpose hcross + simpa only [Matrix.transpose_mul, Matrix.transpose_transpose, hΩ, Matrix.mul_neg, + Matrix.neg_mul, Matrix.transpose_zero, neg_eq_zero, Matrix.mul_assoc] using ht + +/-- Label decorrelated covariance defined as `decorrelatedCovariance V +(complementaryLabelProjection L R h) (complementaryLabelProjection R L h.symm)`. -/ +def labelDecorrelatedCovariance (V : Matrix ι ι ℝ) + (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) : Matrix ι ι ℝ := + decorrelatedCovariance V (complementaryLabelProjection L R h) + (complementaryLabelProjection R L h.symm) + +theorem labelDecorrelatedCovariance_posDef {V : Matrix ι ι ℝ} (hV : V.PosDef) + (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) : + (labelDecorrelatedCovariance V L R h).PosDef := + decorrelatedCovariance_posDef hV (complementaryLabelProjection_add L R h) + +theorem labelDecorrelatedCovariance_quantum_posDef {V Ω : Matrix ι ι ℝ} + (hV : (quantumCovariance V Ω).PosDef) (hΩ : Ωᵀ = -Ω) + (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) + (hcross : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (Ω *ᵥ y) = 0) : + (quantumCovariance (labelDecorrelatedCovariance V L R h) Ω).PosDef := by + have hc := complementaryLabelProjection_cross_zero L R h Ω hcross + exact quantumCovariance_decorrelated_posDef hV (complementaryLabelProjection_add L R h) + hc (transpose_cross_zero_of_skew hΩ hc) + +theorem labelDecorrelatedCovariance_left_restriction (V : Matrix ι ι ℝ) + (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) + {x y : ι → ℝ} (hx : x ∈ L) (hy : y ∈ L) : + x ⬝ᵥ (labelDecorrelatedCovariance V L R h *ᵥ y) = x ⬝ᵥ (V *ᵥ y) := by + let P := complementaryLabelProjection L R h + let Q := complementaryLabelProjection R L h.symm + have hPx : P *ᵥ x = x := by + simpa only [P, complementaryLabelProjection_mulVec] using + Submodule.projection_apply_of_mem_left h hx + have hPy : P *ᵥ y = y := by + simpa only [P, complementaryLabelProjection_mulVec] using + Submodule.projection_apply_of_mem_left h hy + have hr := decorrelatedCovariance_left_restriction V + (complementaryLabelProjection_idempotent L R h) (complementaryLabelProjection_add L R h) + calc + _ = (P *ᵥ x) ⬝ᵥ (decorrelatedCovariance V P Q *ᵥ (P *ᵥ y)) := by rw [hPx, hPy]; rfl + _ = x ⬝ᵥ ((Pᵀ * decorrelatedCovariance V P Q * P) *ᵥ y) := + bilinear_mixed_congruence P _ P x y + _ = x ⬝ᵥ ((Pᵀ * V * P) *ᵥ y) := by rw [hr] + _ = _ := by rw [← bilinear_mixed_congruence, hPx, hPy] + +theorem labelDecorrelatedCovariance_right_restriction (V : Matrix ι ι ℝ) + (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) + {x y : ι → ℝ} (hx : x ∈ R) (hy : y ∈ R) : + x ⬝ᵥ (labelDecorrelatedCovariance V L R h *ᵥ y) = x ⬝ᵥ (V *ᵥ y) := by + have hr := labelDecorrelatedCovariance_left_restriction V R L h.symm hx hy + change x ⬝ᵥ (((complementaryLabelProjection R L h.symm)ᵀ * V * + complementaryLabelProjection R L h.symm + + (complementaryLabelProjection L R h)ᵀ * V * complementaryLabelProjection L R h) *ᵥ y) = + x ⬝ᵥ (V *ᵥ y) at hr + rw [add_comm] at hr + exact hr + +theorem labelDecorrelatedCovariance_cross (V : Matrix ι ι ℝ) + (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) + {x y : ι → ℝ} (hx : x ∈ L) (hy : y ∈ R) : + x ⬝ᵥ (labelDecorrelatedCovariance V L R h *ᵥ y) = 0 := by + let P := complementaryLabelProjection L R h + let Q := complementaryLabelProjection R L h.symm + have hPx : P *ᵥ x = x := by + simpa only [P, complementaryLabelProjection_mulVec] using + Submodule.projection_apply_of_mem_left h hx + have hQy : Q *ᵥ y = y := by + simpa only [Q, complementaryLabelProjection_mulVec] using + Submodule.projection_apply_of_mem_left h.symm hy + have hc := decorrelatedCovariance_cross V + (complementaryLabelProjection_idempotent L R h) (complementaryLabelProjection_add L R h) + calc + _ = (P *ᵥ x) ⬝ᵥ (decorrelatedCovariance V P Q *ᵥ (Q *ᵥ y)) := by rw [hPx, hQy]; rfl + _ = x ⬝ᵥ ((Pᵀ * decorrelatedCovariance V P Q * Q) *ᵥ y) := + bilinear_mixed_congruence P _ Q x y + _ = 0 := by rw [hc]; simp + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CompletionOperatorDetermination.lean b/LeanPool/VacuumBellSeparation/Gaussian/CompletionOperatorDetermination.lean new file mode 100644 index 0000000000..9a01b4376a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CompletionOperatorDetermination.lean @@ -0,0 +1,49 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.Completion +public import Mathlib.Analysis.InnerProductSpace.Adjoint + +/-! # Bounded operators are determined by original test pairings -/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open UniformSpace +open scoped InnerProductSpace + +variable {𝕜 E : Type*} [RCLike 𝕜] [NormedAddCommGroup E] [InnerProductSpace 𝕜 E] + +theorem completionOperator_eq_of_test_pairings + (A B : Completion E →L[𝕜] Completion E) + (h : ∀ x y : E, inner 𝕜 (x : Completion E) (A (y : Completion E)) = + inner 𝕜 (x : Completion E) (B (y : Completion E))) : A = B := by + have he (x y : Completion E) : inner 𝕜 x (A y) = inner 𝕜 x (B y) := by + refine Completion.induction_on x (isClosed_eq (by fun_prop) (by fun_prop)) ?_ + intro u + refine Completion.induction_on y (isClosed_eq (by fun_prop) (by fun_prop)) ?_ + intro v + exact h u v + apply ContinuousLinearMap.ext + intro y + exact ext_inner_left 𝕜 (fun x => he x y) + +theorem completionOperator_isSelfAdjoint_of_test_pairings + (A : Completion E →L[𝕜] Completion E) + (h : ∀ x y : E, inner 𝕜 (A (x : Completion E)) (y : Completion E) = + inner 𝕜 (x : Completion E) (A (y : Completion E))) : IsSelfAdjoint A := by + apply ContinuousLinearMap.isSelfAdjoint_iff_isSymmetric.mpr + intro x y + refine Completion.induction_on x (isClosed_eq (by fun_prop) (by fun_prop)) ?_ + intro u + refine Completion.induction_on y (isClosed_eq (by fun_prop) (by fun_prop)) ?_ + intro v + exact h u v + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplexConjugation.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplexConjugation.lean new file mode 100644 index 0000000000..71608082e5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplexConjugation.lean @@ -0,0 +1,128 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SourceGram + +/-! +# Real conjugation and the conjugate source Gram operator + +Conjugation is the actual antilinear isometric involution `(x,y) ↦ (x,-y)`. +The conjugate of an operator is `C A C`. For the physical source Gram +operator this proves the second expression `1-(i/2)J_C`. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap HilbertComplexification +open scoped ComplexConjugate + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + +namespace HilbertComplexification + +/-- The canonical conjugation associated with the original real space. -/ +noncomputable def conjugation : HilbertComplexification E ≃ₗᵢ⋆[ℂ] HilbertComplexification E where + toFun z := mk z.re (-z.im) + invFun z := mk z.re (-z.im) + left_inv z := by ext <;> simp + right_inv z := by ext <;> simp + map_add' z w := by + apply HilbertComplexification.ext + · rfl + · change -(z.im + w.im) = -z.im + -w.im + abel + map_smul' c z := by + apply HilbertComplexification.ext + · change c.re • z.re - c.im • z.im = + (conj c).re • z.re - (conj c).im • (-z.im) + simp only [Complex.conj_re, Complex.conj_im, neg_smul, smul_neg, neg_neg] + · change -(c.im • z.re + c.re • z.im) = + (conj c).im • z.re + (conj c).re • (-z.im) + simp only [Complex.conj_re, Complex.conj_im, neg_smul, smul_neg] + abel + norm_map' z := by + apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp + rw [norm_sq, norm_sq] + simp + +@[simp] theorem conjugation_re (z : HilbertComplexification E) : + (conjugation z).re = z.re := rfl + +@[simp] theorem conjugation_im (z : HilbertComplexification E) : + (conjugation z).im = -z.im := rfl + +@[simp] theorem conjugation_conjugation (z : HilbertComplexification E) : + conjugation (conjugation z) = z := by ext <;> simp + +@[simp] theorem conjugation_ofReal (x : E) : conjugation (ofReal x) = ofReal x := by + ext <;> simp + +end HilbertComplexification + +/-- Actual conjugation of a bounded complex-linear operator by the real +antilinear involution, giving another bounded complex-linear operator. -/ +noncomputable def conjugateOperator + (A : HilbertComplexification E →L[ℂ] HilbertComplexification E) : + HilbertComplexification E →L[ℂ] HilbertComplexification E := + conjugation.toContinuousLinearEquiv.toContinuousLinearMap.comp + (A.comp conjugation.toContinuousLinearEquiv.toContinuousLinearMap) + +@[simp] +theorem conjugateOperator_apply + (A : HilbertComplexification E →L[ℂ] HilbertComplexification E) + (z : HilbertComplexification E) : + conjugateOperator A z = conjugation (A (conjugation z)) := rfl + +@[simp] +theorem conjugateOperator_one : conjugateOperator (1 : + HilbertComplexification E →L[ℂ] HilbertComplexification E) = 1 := by + apply ContinuousLinearMap.ext + intro z + simp [one_apply_eq_self] + +@[simp] +theorem conjugateOperator_add + (A B : HilbertComplexification E →L[ℂ] HilbertComplexification E) : + conjugateOperator (A + B) = conjugateOperator A + conjugateOperator B := by + apply ContinuousLinearMap.ext + intro z + simp + +@[simp] +theorem conjugateOperator_smul (c : ℂ) + (A : HilbertComplexification E →L[ℂ] HilbertComplexification E) : + conjugateOperator (c • A) = conj c • conjugateOperator A := by + apply ContinuousLinearMap.ext + intro z + change conjugation (c • A (conjugation z)) = conj c • conjugation (A (conjugation z)) + exact conjugation.map_smulₛₗ c (A (conjugation z)) + +@[simp] +theorem conjugateOperator_complexify (A : E →L[ℝ] E) : + conjugateOperator (complexify A) = complexify A := by + apply ContinuousLinearMap.ext + intro z + apply HilbertComplexification.ext <;> simp + +/-- The conjugate Gram is computed from the actual physical Gram operator; +it is not a separately stipulated covariance expression. -/ +theorem conjugate_sourceMap_gram + {H : Type*} [CompleteSpace E] + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + (K : E →ₗᵢ[ℝ] H) : + conjugateOperator ((sourceMap K).adjoint.comp (sourceMap K)) = + 1 - (Complex.I / 2) • complexCommutation K := by + rw [sourceMap_adjoint_mul_self, conjugateOperator_add, conjugateOperator_one, + conjugateOperator_smul] + have hc : conj (Complex.I / 2) = -(Complex.I / 2) := by + simp only [map_div₀, Complex.conj_I, map_ofNat, neg_div] + simp only [complexCommutation, conjugateOperator_complexify, hc, neg_smul, sub_eq_add_neg] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplexGaussianBilinear.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplexGaussianBilinear.lean new file mode 100644 index 0000000000..bc1b61d2df --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplexGaussianBilinear.lean @@ -0,0 +1,91 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.SpecialFunctions.Gaussian.FourierTransform +public import Mathlib.MeasureTheory.Measure.Lebesgue.Complex +public import Mathlib.MeasureTheory.Integral.Pi + +/-! +# Complex Gaussian integration with independent holomorphic coefficients + +The two coefficients need not be conjugates or imaginary phases. The +literal Lebesgue integral and integrability follow from the pinned real +two-dimensional Gaussian theorem. This is used for weak Weyl inversion +on exponential vectors, before any trace or representation uniqueness. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate + +private theorem complex_gaussian_bilinear_coordinates (s : ℝ) (a b z : ℂ) : + -(s : ℂ) * ∑ i : Fin 2, ((Complex.measurableEquivPi z i : ℝ) : ℂ) ^ 2 + + ∑ i : Fin 2, (![a + b, Complex.I * (a - b)] i) * + ((Complex.measurableEquivPi z i : ℝ) : ℂ) = + ((-s * ‖z‖ ^ 2 : ℝ) : ℂ) + a * z + b * conj z := by + simp only [Fin.sum_univ_two, Complex.measurableEquivPi_apply, + Matrix.cons_val_zero, Matrix.cons_val_one, Complex.sq_norm, + Complex.normSq_apply] + apply Complex.ext <;> + simp only [Complex.add_re, Complex.add_im, Complex.sub_re, Complex.sub_im, + Complex.neg_re, Complex.neg_im, Complex.mul_re, Complex.mul_im, + Complex.ofReal_re, Complex.ofReal_im, Complex.conj_re, Complex.conj_im, + Complex.I_re, Complex.I_im, pow_two] <;> ring + +theorem integrable_complex_gaussian_bilinear {s : ℝ} (hs : 0 < s) (a b : ℂ) : + Integrable (fun z : ℂ => + Complex.exp (((-s * ‖z‖ ^ 2 : ℝ) : ℂ) + a * z + b * conj z)) := by + have h := Complex.volume_preserving_equiv_pi.integrable_comp_of_integrable + (GaussianFourier.integrable_cexp_neg_mul_sum_add + (b := (s : ℂ)) (show 0 < (s : ℂ).re from hs) ![a + b, Complex.I * (a - b)]) + simpa only [Function.comp_def, complex_gaussian_bilinear_coordinates] using h + +theorem integral_complex_gaussian_bilinear {s : ℝ} (hs : 0 < s) (a b : ℂ) : + (∫ z : ℂ, Complex.exp (((-s * ‖z‖ ^ 2 : ℝ) : ℂ) + a * z + b * conj z)) = + ((Real.pi / s : ℝ) : ℂ) * Complex.exp (a * b / (s : ℂ)) := by + have hc := Complex.volume_preserving_equiv_pi.integral_comp + Complex.measurableEquivPi.measurableEmbedding + (fun x : Fin 2 → ℝ => Complex.exp (-(s : ℂ) * ∑ i, (x i : ℂ) ^ 2 + + ∑ i, (![a + b, Complex.I * (a - b)] i) * (x i : ℂ))) + simp only [complex_gaussian_bilinear_coordinates] at hc + rw [hc, GaussianFourier.integral_cexp_neg_mul_sum_add + (show 0 < (s : ℂ).re from hs)] + norm_num only [Fintype.card_fin, Nat.cast_ofNat, + div_self (by norm_num : (2 : ℂ) ≠ 0), Complex.cpow_one] + rw [Complex.ofReal_div] + congr 2 + simp only [Fin.sum_univ_two, Matrix.cons_val_zero, Matrix.cons_val_one] + field_simp [show (s : ℂ) ≠ 0 by exact_mod_cast hs.ne'] + ring_nf + simp [Complex.I_sq]; ring + +theorem integrable_multiComplexGaussianBilinear {m : ℕ} {s : Fin m → ℝ} + (hs : ∀ j, 0 < s j) (a b : Fin m → ℂ) : + Integrable (fun z : Fin m → ℂ => ∏ j, + Complex.exp (((-s j * ‖z j‖ ^ 2 : ℝ) : ℂ) + a j * z j + b j * conj (z j))) := + Integrable.fintype_prod fun j => integrable_complex_gaussian_bilinear (hs j) (a j) (b j) + +theorem integral_multiComplexGaussianBilinear {m : ℕ} {s : Fin m → ℝ} + (hs : ∀ j, 0 < s j) (a b : Fin m → ℂ) : + (∫ z : Fin m → ℂ, ∏ j, + Complex.exp (((-s j * ‖z j‖ ^ 2 : ℝ) : ℂ) + a j * z j + b j * conj (z j))) = + ∏ j, ((Real.pi / s j : ℝ) : ℂ) * Complex.exp (a j * b j / (s j : ℂ)) := by + calc + _ = ∏ j, ∫ z : ℂ, + Complex.exp (((-s j * ‖z‖ ^ 2 : ℝ) : ℂ) + a j * z + b j * conj z) := + integral_fintype_prod_volume_eq_prod (fun j (z : ℂ) => + Complex.exp (((-s j * ‖z‖ ^ 2 : ℝ) : ℂ) + a j * z + b j * conj z)) + _ = _ := ?_ + apply Finset.prod_congr rfl + intro j _ + exact integral_complex_gaussian_bilinear (hs j) (a j) (b j) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplexGaussianPhase.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplexGaussianPhase.lean new file mode 100644 index 0000000000..064fcfd791 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplexGaussianPhase.lean @@ -0,0 +1,68 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.CStarAlgebra.Classes +public import Mathlib.Analysis.SpecialFunctions.Gaussian.FourierTransform +public import Mathlib.Tactic.Polynomial.Basic +public import Mathlib.Tactic.ReduceModChar +public import Mathlib.LinearAlgebra.Complex.FiniteDimensional + +/-! +# The actual complex-plane Gaussian phase integral + +This is a specialization of the pinned finite-dimensional real Gaussian +Fourier integral to the real Hilbert space underlying `ℂ`. Both the phase +integral and its actual integrability are obtained from that theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate + +theorem real_inner_neg_I_mul (z w : ℂ) : + inner ℝ (-Complex.I * z) w = (conj w * z).im := by + rw [real_inner_eq_re_inner ℂ] + rw [RCLike.inner_apply', RCLike.re_eq_complex_re] + simp only [Complex.mul_re, Complex.mul_im, Complex.conj_re, + Complex.conj_im, Complex.neg_re, Complex.neg_im, Complex.I_re, Complex.I_im] + ring + +theorem integral_complex_gaussian_phase {a : ℝ} (ha : 0 < a) (t : ℝ) (z : ℂ) : + (∫ w : ℂ, Complex.exp (((-a * ‖w‖ ^ 2 : ℝ) : ℂ) + + 2 * Complex.I * (t : ℂ) * ((conj w * z).im : ℂ))) = + ((Real.pi / a : ℝ) : ℂ) * + Complex.exp (((-t ^ 2 * ‖z‖ ^ 2 / a : ℝ) : ℂ)) := by + have h := GaussianFourier.integral_cexp_neg_mul_sq_norm_add + (b := (a : ℂ)) (show 0 < (a : ℂ).re from ha) + (2 * Complex.I * (t : ℂ)) (-Complex.I * z) + simp only [real_inner_neg_I_mul, norm_neg, norm_mul, Complex.norm_I, one_mul, + Complex.finrank_real_complex] at h + norm_num only [Nat.cast_ofNat, div_self (by norm_num : (2 : ℂ) ≠ 0), + Complex.cpow_one] at h + have he : (2 * Complex.I * (t : ℂ)) ^ 2 * (‖z‖ : ℂ) ^ 2 / (4 * (a : ℂ)) = + ((-t ^ 2 * ‖z‖ ^ 2 / a : ℝ) : ℂ) := by + push_cast + ring_nf + simp [Complex.I_sq] + rw [he] at h + simpa only [Complex.ofReal_div, Complex.ofReal_mul, Complex.ofReal_neg, + Complex.ofReal_pow] using h + +theorem integrable_complex_gaussian_phase {a : ℝ} (ha : 0 < a) (t : ℝ) (z : ℂ) : + Integrable (fun w : ℂ => Complex.exp (((-a * ‖w‖ ^ 2 : ℝ) : ℂ) + + 2 * Complex.I * (t : ℂ) * ((conj w * z).im : ℂ))) := by + have h := GaussianFourier.integrable_cexp_neg_mul_sq_norm_add + (b := (a : ℂ)) (show 0 < (a : ℂ).re from ha) + (2 * Complex.I * (t : ℂ)) (-Complex.I * z) + simpa only [real_inner_neg_I_mul, Complex.ofReal_mul, Complex.ofReal_neg, + Complex.ofReal_pow] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixFunctionalCalculus.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixFunctionalCalculus.lean new file mode 100644 index 0000000000..e24e3d3542 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixFunctionalCalculus.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HermitianTraceDerivative +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Pi +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Basic +public import Mathlib.Algebra.Algebra.Spectrum.Pi + +/-! +# Genuine finite complex-matrix functional calculus identities + +Real diagonal matrices and actual unitary conjugations commute with the +continuous functional calculus. Finite spectra justify arbitrary scalar +functions here. In particular, the even scalar trace can be evaluated +on the actual operator absolute value without choosing signed eigenvectors. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Complex diagonal star alg hom. -/ +def complexDiagonalStarAlgHom : (ι → ℂ) →⋆ₐ[ℂ] Matrix ι ι ℂ := + { Matrix.diagonalAlgHom ℂ with + map_star' := by + intro d + ext i j + by_cases h : i = j + · subst j + simp [] + · simp [h, Ne.symm h] } + +theorem cfc_complex_real_diagonal (f : ℝ → ℝ) (d : ι → ℝ) : + cfc f (Matrix.diagonal (fun i => (d i : ℂ))) = + Matrix.diagonal (fun i => (f (d i) : ℂ)) := by + let : CStarAlgebra (ι → ℂ) := {} + let : IsometricContinuousFunctionalCalculus ℝ (ι → ℂ) IsSelfAdjoint := + IsSelfAdjoint.instIsometricContinuousFunctionalCalculus + let a : ι → ℂ := fun i => (d i : ℂ) + have ha : IsSelfAdjoint a := by + change star a = a + funext i + simp [a] + have hdiag : IsSelfAdjoint (complexDiagonalStarAlgHom (ι := ι) a) := + (Matrix.isHermitian_diagonal_of_self_adjoint a ha).isSelfAdjoint + have hs : (⋃ i, spectrum ℝ (a i)).Finite := + Set.finite_iUnion fun i => (Set.finite_singleton (d i)).subset + (CFC.spectrum_algebraMap_subset (A := ℂ) (d i)) + have hm := StarAlgHomClass.map_cfc (complexDiagonalStarAlgHom (ι := ι)) f a + (by rw [Pi.spectrum_eq]; exact hs.continuousOn f) + (complexDiagonalStarAlgHom.toAlgHom.toLinearMap.continuous_of_finiteDimensional) + ha hdiag + rw [cfc_map_pi (S := ℂ) f a (hs.continuousOn f) ha + (fun i => by change star (d i : ℂ) = (d i : ℂ); simp)] at hm + have he : (fun i => cfc f (a i)) = fun i => (f (d i) : ℂ) := by + funext i + exact cfc_algebraMap (A := ℂ) (d i) f + rw [he] at hm + exact hm.symm + +theorem cfc_complex_unitary_conjugate (U : unitary (Matrix ι ι ℂ)) + {A : Matrix ι ι ℂ} (hA : A.IsHermitian) (f : ℝ → ℝ) : + cfc f ((U : Matrix ι ι ℂ) * A * (U : Matrix ι ι ℂ)ᴴ) = + (U : Matrix ι ι ℂ) * cfc f A * (U : Matrix ι ι ℂ)ᴴ := by + let φ := Unitary.conjStarAlgAut ℂ (Matrix ι ι ℂ) U + have hφ : IsSelfAdjoint (φ A) := by + simpa only [φ, Unitary.conjStarAlgAut_apply, Matrix.star_eq_conjTranspose] using + (Matrix.isHermitian_mul_mul_conjTranspose (U : Matrix ι ι ℂ) hA).isSelfAdjoint + have hcφ : Continuous φ := by + change Continuous (fun B : Matrix ι ι ℂ => + (U : Matrix ι ι ℂ) * B * star (U : Matrix ι ι ℂ)) + exact (continuous_const.mul continuous_id).mul continuous_const + have hm := StarAlgHomClass.map_cfc φ f A (A.finite_real_spectrum.continuousOn f) + hcφ hA.isSelfAdjoint hφ + simpa only [φ, Unitary.conjStarAlgAut_apply, Matrix.star_eq_conjTranspose] using hm.symm + +theorem real_trace_cfc_unitary_conjugate (U : unitary (Matrix ι ι ℂ)) + {A : Matrix ι ι ℂ} (hA : A.IsHermitian) (f : ℝ → ℝ) : + (cfc f ((U : Matrix ι ι ℂ) * A * (U : Matrix ι ι ℂ)ᴴ)).trace.re = + (cfc f A).trace.re := by + rw [cfc_complex_unitary_conjugate U hA f, Matrix.trace_mul_cycle] + change (star (U : Matrix ι ι ℂ) * (U : Matrix ι ι ℂ) * cfc f A).trace.re = _ + rw [Unitary.coe_star_mul_self, Matrix.one_mul] + +theorem cfc_complex_abs_composition {A : Matrix ι ι ℂ} + (hA : A.IsHermitian) (f : ℝ → ℝ) : + cfc (fun x : ℝ => f |x|) A = cfc f (CFC.abs A) := by + have hf : ContinuousOn f ((fun x : ℝ => ‖x‖) '' spectrum ℝ A) := + (A.finite_real_spectrum.image _).continuousOn f + have h := cfc_comp' f (fun x : ℝ => ‖x‖) A hf continuous_norm.continuousOn hA.isSelfAdjoint + simpa only [Real.norm_eq_abs, CFC.abs_eq_cfc_norm A hA.isSelfAdjoint] using h + +theorem cfc_trace_even_of_abs_unitary_diagonal {A : Matrix ι ι ℂ} + (hA : A.IsHermitian) (U : unitary (Matrix ι ι ℂ)) (d : ι → ℝ) + (habs : CFC.abs A = (U : Matrix ι ι ℂ) * Matrix.diagonal (fun i => (d i : ℂ)) * + (U : Matrix ι ι ℂ)ᴴ) (f : ℝ → ℝ) : + (cfc (fun x : ℝ => f |x|) A).trace.re = ∑ i, f (d i) := by + have hd : (Matrix.diagonal (fun i => (d i : ℂ))).IsHermitian := + Matrix.isHermitian_diagonal_of_self_adjoint _ (by + change star (fun i => (d i : ℂ)) = _ + funext i + simp) + rw [cfc_complex_abs_composition hA f, habs, real_trace_cfc_unitary_conjugate U hd f, + cfc_complex_real_diagonal, Matrix.trace_diagonal, Complex.re_sum] + simp only [Complex.ofReal_re] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixGaussianIntegral.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixGaussianIntegral.lean new file mode 100644 index 0000000000..cf5e50210a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixGaussianIntegral.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixGaussianIntegral +public import Mathlib.MeasureTheory.Measure.Lebesgue.Complex + +/-! +# Complex coherent-coordinate Gaussian measure and normalization + +The coordinate map z↦(Re z_j, Im z_j) is a proved measurable, +volume-preserving equivalence. Consequently the coherent Gaussian +exp(-u(z)ᵀ P u(z)) has complex-plane integral π^m / sqrt(det P). +Equivalently its exponent is -r(z)ᵀ P r(z)/2 for r=√2 u. +All measures are actual product Lebesgue measures, including m=0. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory +open scoped MatrixOrder Matrix.Norms.L2Operator + +theorem volume_preserving_real_uncurry (ι κ : Type*) [Fintype ι] [Fintype κ] : + MeasurePreserving (MeasurableEquiv.curry ι κ ℝ).symm := by + refine ⟨(MeasurableEquiv.curry ι κ ℝ).symm.measurable, ?_⟩ + change Measure.map (MeasurableEquiv.curry ι κ ℝ).symm volume = + Measure.pi (fun _ : ι × κ => (volume : Measure ℝ)) + symm + apply Measure.pi_eq + intro s hs + rw [Measure.map_apply (MeasurableEquiv.curry ι κ ℝ).symm.measurable + (MeasurableSet.pi Set.countable_univ fun i _ => hs i)] + have heq : (MeasurableEquiv.curry ι κ ℝ).symm ⁻¹' Set.pi Set.univ s = + Set.pi Set.univ (fun i => Set.pi Set.univ (fun j => s (i, j))) := by + ext x + simp only [Set.mem_preimage, Set.mem_pi, Set.mem_univ, forall_true_left, + MeasurableEquiv.coe_curry_symm, Function.uncurry_apply_pair, Prod.forall] + rw [heq, volume_pi_pi] + simp_rw [volume_pi_pi] + exact (Fintype.prod_prod_type (fun i : ι × κ => volume (s i))).symm + +/-- Complex real coordinates. -/ +def complexRealCoordinates (m : ℕ) : (Fin m → ℂ) ≃ᵐ (Fin m × Fin 2 → ℝ) := + (MeasurableEquiv.piCongrRight (fun _ : Fin m => Complex.measurableEquivPi)).trans + (MeasurableEquiv.curry (Fin m) (Fin 2) ℝ).symm + +@[simp] theorem complexRealCoordinates_apply (m : ℕ) (z : Fin m → ℂ) (i : Fin m) : + complexRealCoordinates m z (i, 0) = (z i).re := rfl + +@[simp] theorem complexRealCoordinates_apply_one (m : ℕ) (z : Fin m → ℂ) (i : Fin m) : + complexRealCoordinates m z (i, 1) = (z i).im := rfl + +theorem complexRealCoordinates_measurePreserving (m : ℕ) : + MeasurePreserving (complexRealCoordinates m) := + (volume_preserving_real_uncurry (Fin m) (Fin 2)).comp + (volume_preserving_pi (fun _ : Fin m => Complex.volume_preserving_equiv_pi)) + +/-- Coherent matrix Gaussian given by `Real.exp (-(complexRealCoordinates m z ⬝ᵥ (P *ᵥ +complexRealCoordinates m z)))`. -/ +def coherentMatrixGaussian {m : ℕ} (P : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (z : Fin m → ℂ) : ℝ := + Real.exp (-(complexRealCoordinates m z ⬝ᵥ (P *ᵥ complexRealCoordinates m z))) + +theorem coherentMatrixGaussian_eq {m : ℕ} + (P : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (z : Fin m → ℂ) : + coherentMatrixGaussian P z = matrixGaussian ((2 : ℝ) • P) (complexRealCoordinates m z) := by + simp only [coherentMatrixGaussian, matrixGaussian, Matrix.smul_mulVec, dotProduct_smul, + smul_eq_mul] + congr 1 + ring + +theorem integrable_coherentMatrixGaussian {m : ℕ} + {P : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hP : P.PosDef) : + Integrable (coherentMatrixGaussian P) := by + have h := (complexRealCoordinates_measurePreserving m).integrable_comp_of_integrable + (integrable_matrixGaussian (hP.smul (by norm_num : (0 : ℝ) < 2))) + simpa only [Function.comp_def, ← coherentMatrixGaussian_eq] using h + +/-- The literal π^m normalization used with normalized coherent vectors. -/ +theorem integral_coherentMatrixGaussian {m : ℕ} + {P : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hP : P.PosDef) : + (∫ z : Fin m → ℂ, coherentMatrixGaussian P z) = Real.pi ^ m / Real.sqrt P.det := by + have h := (complexRealCoordinates_measurePreserving m).integral_comp + (complexRealCoordinates m).measurableEmbedding (matrixGaussian ((2 : ℝ) • P)) + simp only [← coherentMatrixGaussian_eq] at h + rw [h, integral_matrixGaussian (hP.smul (by norm_num : (0 : ℝ) < 2)), + Matrix.det_smul, Fintype.card_prod] + simp only [Fintype.card_fin] + have hn : Real.sqrt (2 * Real.pi) ^ (m * 2) = (2 * Real.pi) ^ m := by + rw [Nat.mul_comm m 2, pow_mul, Real.sq_sqrt (by positivity)] + have hd : Real.sqrt (2 ^ (m * 2) * P.det) = (2 : ℝ) ^ m * Real.sqrt P.det := by + rw [Real.sqrt_mul (by positivity), pow_mul, Real.sqrt_sq (by positivity)] + rw [hn, hd, mul_pow] + field_simp [show (2 : ℝ) ^ m ≠ 0 by positivity, + ne_of_gt (Real.sqrt_pos.mpr hP.det_pos)] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixInverseOrder.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixInverseOrder.lean new file mode 100644 index 0000000000..d6e1b0ad1c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixInverseOrder.lean @@ -0,0 +1,114 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixPositivity + +/-! +# Strict inverse order for actual complex Hermitian matrices + +The two actual Schur complements prove inverse order, and invertibility +upgrades it to strict positivity. This extends the real covariance lemma +to the literal complex quantum uncertainty matrices; no commutation is +assumed and zero-dimensional matrices remain covered. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder + +variable {n : Type*} [Fintype n] [DecidableEq n] + +theorem complex_matrix_inv_sub_inv_posSemidef_iff {A B : Matrix n n ℂ} + (hA : A.PosDef) (hB : B.PosDef) : + (A⁻¹ - B⁻¹).PosSemidef ↔ (B - A).PosSemidef := by + let : Invertible B := hB.isUnit.invertible + let : Invertible A⁻¹ := hA.inv.isUnit.invertible + have h₁ := Matrix.PosDef.fromBlocks₁₁ (1 : Matrix n n ℂ) A⁻¹ hB + have h₂ := Matrix.PosDef.fromBlocks₂₂ B (1 : Matrix n n ℂ) hA.inv + have hi : (A⁻¹)⁻¹ = A := + A.nonsing_inv_nonsing_inv ((Matrix.isUnit_iff_isUnit_det A).mp hA.isUnit) + simpa only [conjTranspose_one, one_mul, mul_one, hi] using h₁.symm.trans h₂ + +theorem complex_matrix_inv_difference_factorization {A B : Matrix n n ℂ} + (hA : IsUnit A) (hB : IsUnit B) : + A⁻¹ - B⁻¹ = A⁻¹ * (B - A) * B⁻¹ := by + have hAi := A.nonsing_inv_mul ((Matrix.isUnit_iff_isUnit_det A).mp hA) + have hBi := B.mul_nonsing_inv ((Matrix.isUnit_iff_isUnit_det B).mp hB) + rw [mul_sub, sub_mul, mul_assoc, hBi, mul_one, hAi, one_mul] + +theorem complex_matrix_difference_factorization {A B : Matrix n n ℂ} + (hA : IsUnit A) (hB : IsUnit B) : + B - A = A * (A⁻¹ - B⁻¹) * B := by + have hAi := A.mul_nonsing_inv ((Matrix.isUnit_iff_isUnit_det A).mp hA) + have hBi := B.nonsing_inv_mul ((Matrix.isUnit_iff_isUnit_det B).mp hB) + rw [mul_sub, sub_mul, hAi, one_mul, mul_assoc, hBi, mul_one] + +theorem complex_matrix_inv_sub_inv_isUnit_iff {A B : Matrix n n ℂ} + (hA : IsUnit A) (hB : IsUnit B) : + IsUnit (A⁻¹ - B⁻¹) ↔ IsUnit (B - A) := by + constructor + · intro h + rw [complex_matrix_difference_factorization hA hB] + exact (hA.mul h).mul hB + · intro h + rw [complex_matrix_inv_difference_factorization hA hB] + exact ((Matrix.isUnit_nonsing_inv_iff.mpr hA).mul h).mul + (Matrix.isUnit_nonsing_inv_iff.mpr hB) + +/-- Actual positive-definite inverse order, including zero-dimensional +matrices, proved from the pinned positive-semidefinite Schur theorem. -/ +theorem complex_matrix_inv_sub_inv_posDef_iff {A B : Matrix n n ℂ} + (hA : A.PosDef) (hB : B.PosDef) : + (A⁻¹ - B⁻¹).PosDef ↔ (B - A).PosDef := by + constructor + · intro h + have hs := (complex_matrix_inv_sub_inv_posSemidef_iff hA hB).mp h.posSemidef + exact hs.posDef_iff_isUnit.mpr + ((complex_matrix_inv_sub_inv_isUnit_iff hA.isUnit hB.isUnit).mp h.isUnit) + · intro h + have hs := (complex_matrix_inv_sub_inv_posSemidef_iff hA hB).mpr h.posSemidef + exact hs.posDef_iff_isUnit.mpr + ((complex_matrix_inv_sub_inv_isUnit_iff hA.isUnit hB.isUnit).mpr h.isUnit) + + +/-- A strict inverse-order criterion after an actual invertible Hermitian +congruence. The calibration is an explicit matrix equality, not a +commutation assumption on the variable D. -/ +theorem complex_matrix_congruence_inverse_gap_iff + {D C L A : Matrix n n ℂ} (hD : D.PosDef) (hC : C.PosDef) + (hL : L.PosDef) (hcal : L * C⁻¹ * L = A) : + (L * D⁻¹ * L - A).PosDef ↔ (C - D).PosDef := by + have he : L * D⁻¹ * L - A = L * (D⁻¹ - C⁻¹) * star L := by + rw [Matrix.star_eq_conjTranspose, hL.isHermitian.eq, ← hcal] + noncomm_ring + rw [he, hL.isUnit.posDef_star_right_conjugate_iff] + exact complex_matrix_inv_sub_inv_posDef_iff hD hC + +/-- Exact calibration from a square identity. Only the fixed matrices +C and L commute; the later covariance gap remains unrestricted. -/ +theorem complex_matrix_inverse_calibration + {C L A : Matrix n n ℂ} (hC : IsUnit C) (hcomm : C * L = L * C) + (hsq : L * L = C * A) : L * C⁻¹ * L = A := by + have hCi := C.nonsing_inv_mul ((Matrix.isUnit_iff_isUnit_det C).mp hC) + have hiC := C.mul_nonsing_inv ((Matrix.isUnit_iff_isUnit_det C).mp hC) + have he : C * (L * C⁻¹ * L) = C * A := by + calc + _ = (C * L) * C⁻¹ * L := by noncomm_ring + _ = (L * C) * C⁻¹ * L := by rw [hcomm] + _ = L * (C * C⁻¹) * L := by noncomm_ring + _ = L * L := by rw [hiC, Matrix.mul_one] + _ = _ := hsq + have hh := congrArg (fun X => C⁻¹ * X) he + simpa only [← Matrix.mul_assoc, hCi, Matrix.one_mul] using hh + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixPositivity.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixPositivity.lean new file mode 100644 index 0000000000..fd813856c0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplexMatrixPositivity.lean @@ -0,0 +1,106 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticHamiltonian +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixFunctionalCalculus + +/-! +# Real positive matrices and orthogonal maps inside complex matrix calculus + +Real covariance matrices embed as genuine positive complex matrices by +their actual square-root Gram factorization. Real orthogonal matrices +give actual complex unitaries. Positive square roots and absolute values +then transform by genuine unitary conjugation. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +omit [DecidableEq ι] [Fintype ι] in +theorem complexifyMatrix_posSemidef [Finite ι] {A : Matrix ι ι ℝ} (hA : A.PosSemidef) : + (complexifyMatrix A).PosSemidef := by + classical + let _ : Fintype ι := Fintype.ofFinite ι + have hR : (CFC.sqrt A)ᵀ = CFC.sqrt A := by + simpa only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial] using + (CFC.sqrt_nonneg A).isSelfAdjoint.star_eq + have he : complexifyMatrix A = complexifyMatrix (CFC.sqrt A) * + (complexifyMatrix (CFC.sqrt A))ᴴ := by + rw [← complexifyMatrix_transpose, hR, ← complexifyMatrix_mul, + CFC.sqrt_mul_sqrt_self A hA.nonneg] + rw [he] + exact Matrix.posSemidef_self_mul_conjTranspose _ + +theorem complexifyMatrix_isUnit {A : Matrix ι ι ℝ} (hA : IsUnit A) : + IsUnit (complexifyMatrix A) := by + apply IsUnit.of_mul_eq_one (complexifyMatrix A⁻¹) + rw [← complexifyMatrix_mul, A.mul_nonsing_inv ((Matrix.isUnit_iff_isUnit_det A).mp hA), + complexifyMatrix_one] + +omit [DecidableEq ι] [Fintype ι] in +theorem complexifyMatrix_posDef [Finite ι] {A : Matrix ι ι ℝ} (hA : A.PosDef) : + (complexifyMatrix A).PosDef := by + classical + let _ : Fintype ι := Fintype.ofFinite ι + exact (complexifyMatrix_posSemidef hA.posSemidef).posDef_iff_isUnit.mpr + (complexifyMatrix_isUnit hA.isUnit) + +/-- Orthogonal complex unitary. -/ +def orthogonalComplexUnitary (O : Matrix ι ι ℝ) (hO : Oᵀ * O = 1) : + unitary (Matrix ι ι ℂ) := + ⟨complexifyMatrix O, by + have hO' : O * Oᵀ = 1 := mul_eq_one_comm.mp hO + constructor + · change (complexifyMatrix O)ᴴ * complexifyMatrix O = 1 + rw [← complexifyMatrix_transpose, ← complexifyMatrix_mul, hO, complexifyMatrix_one] + · change complexifyMatrix O * (complexifyMatrix O)ᴴ = 1 + rw [← complexifyMatrix_transpose, ← complexifyMatrix_mul, hO', complexifyMatrix_one]⟩ + +@[simp] theorem orthogonalComplexUnitary_coe (O : Matrix ι ι ℝ) (hO : Oᵀ * O = 1) : + (orthogonalComplexUnitary O hO : Matrix ι ι ℂ) = complexifyMatrix O := rfl + +theorem complex_matrix_sqrt_unitary_conjugate (U : unitary (Matrix ι ι ℂ)) + {A : Matrix ι ι ℂ} (hA : 0 ≤ A) : + CFC.sqrt ((U : Matrix ι ι ℂ) * A * (U : Matrix ι ι ℂ)ᴴ) = + (U : Matrix ι ι ℂ) * CFC.sqrt A * (U : Matrix ι ι ℂ)ᴴ := by + have hU : (U : Matrix ι ι ℂ)ᴴ * (U : Matrix ι ι ℂ) = 1 := U.property.1 + have hpos : 0 ≤ (U : Matrix ι ι ℂ) * CFC.sqrt A * (U : Matrix ι ι ℂ)ᴴ := + ((CFC.sqrt_nonneg A).posSemidef.mul_mul_conjTranspose_same (U : Matrix ι ι ℂ)).nonneg + apply CFC.sqrt_unique (hb := hpos) + calc + _ = (U : Matrix ι ι ℂ) * (CFC.sqrt A * + ((U : Matrix ι ι ℂ)ᴴ * U) * CFC.sqrt A) * (U : Matrix ι ι ℂ)ᴴ := by noncomm_ring + _ = _ := by + rw [hU, Matrix.mul_one, CFC.sqrt_mul_sqrt_self A hA] + +theorem complex_matrix_abs_unitary_conjugate (U : unitary (Matrix ι ι ℂ)) + (A : Matrix ι ι ℂ) : + CFC.abs ((U : Matrix ι ι ℂ) * A * (U : Matrix ι ι ℂ)ᴴ) = + (U : Matrix ι ι ℂ) * CFC.abs A * (U : Matrix ι ι ℂ)ᴴ := by + have hU : (U : Matrix ι ι ℂ)ᴴ * (U : Matrix ι ι ℂ) = 1 := U.property.1 + have hg : ((U : Matrix ι ι ℂ) * A * (U : Matrix ι ι ℂ)ᴴ)ᴴ * + ((U : Matrix ι ι ℂ) * A * (U : Matrix ι ι ℂ)ᴴ) = + (U : Matrix ι ι ℂ) * (Aᴴ * A) * (U : Matrix ι ι ℂ)ᴴ := by + simp only [Matrix.conjTranspose_mul, Matrix.conjTranspose_conjTranspose] + calc + _ = (U : Matrix ι ι ℂ) * Aᴴ * ((U : Matrix ι ι ℂ)ᴴ * U) * A * + (U : Matrix ι ι ℂ)ᴴ := by noncomm_ring + _ = _ := by rw [hU, Matrix.mul_one]; noncomm_ring + simp only [CFC.abs, Matrix.star_eq_conjTranspose] + rw [hg, complex_matrix_sqrt_unitary_conjugate U + (Matrix.posSemidef_conjTranspose_mul_self A).nonneg] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplexificationDenseExt.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplexificationDenseExt.lean new file mode 100644 index 0000000000..6b63a5efc0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplexificationDenseExt.lean @@ -0,0 +1,59 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertComplexification +public import Mathlib.Analysis.InnerProductSpace.Continuous + +/-! +# Bounded operator equality from the dense original real tests + +The complex span is derived from the literal real and imaginary coordinates. +No complex density or complexified physical injectivity is an assumption. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open HilbertComplexification + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℝ E] + [NormedAddCommGroup F] [InnerProductSpace ℝ F] + {α β : Type*} + +theorem complexification_operator_ext_real + {A B : HilbertComplexification E →L[ℂ] HilbertComplexification F} + (h : ∀ x : E, ∀ y : F, inner ℂ (ofReal y) (A (ofReal x)) = + inner ℂ (ofReal y) (B (ofReal x))) : A = B := by + have hr (x : E) : A (ofReal x) = B (ofReal x) := by + apply ext_inner_left ℂ + intro z + rw [eq_ofReal_add_I_smul z, inner_add_left, inner_add_left, + inner_smul_left, inner_smul_left, h x z.re, h x z.im] + apply ContinuousLinearMap.ext + intro z + rw [eq_ofReal_add_I_smul z, map_add, map_add, map_smul, map_smul, hr, hr] + +theorem complexification_operator_ext_dense_real + {e : α → E} {f : β → F} (he : DenseRange e) (hf : DenseRange f) + {A B : HilbertComplexification E →L[ℂ] HilbertComplexification F} + (h : ∀ x : α, ∀ y : β, inner ℂ (ofReal (f y)) (A (ofReal (e x))) = + inner ℂ (ofReal (f y)) (B (ofReal (e x)))) : A = B := by + apply complexification_operator_ext_real + have hy (x : α) (y : F) : inner ℂ (ofReal y) (A (ofReal (e x))) = + inner ℂ (ofReal y) (B (ofReal (e x))) := by + exact congrFun (hf.equalizer + ((ofReal.continuous).inner continuous_const) + ((ofReal.continuous).inner continuous_const) (funext (fun y => h x y))) y + intro x y + exact congrFun (he.equalizer + (continuous_const.inner (A.continuous.comp ofReal.continuous)) + (continuous_const.inner (B.continuous.comp ofReal.continuous)) (funext (fun u => hy u y))) x + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplexifiedFunctional.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplexifiedFunctional.lean new file mode 100644 index 0000000000..ddd0561abb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplexifiedFunctional.lean @@ -0,0 +1,46 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertComplexification + +/-! +# The actual complex-linear extension of a real-linear functional +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open HilbertComplexification + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + +/-- Extend a real-linear functional to the canonical complexification of its source. -/ +noncomputable def complexifyFunctional (L : E →ₗ[ℝ] ℂ) : + HilbertComplexification E →ₗ[ℂ] ℂ where + toFun z := L z.re + Complex.I * L z.im + map_add' z w := by simp only [re_add, im_add, map_add]; ring + map_smul' c z := by + simp only [re_smul, im_smul, map_sub, map_add, map_smul, Complex.real_smul, + smul_eq_mul, RingHom.id_apply] + conv_rhs => rw [← Complex.re_add_im c] + ring_nf + rw [Complex.I_sq] + ring + +@[simp] +theorem complexifyFunctional_mk (L : E →ₗ[ℝ] ℂ) (x y : E) : + complexifyFunctional L (mk x y) = L x + Complex.I * L y := rfl + +@[simp] +theorem complexifyFunctional_ofReal (L : E →ₗ[ℝ] ℂ) (x : E) : + complexifyFunctional L (ofReal x) = L x := by + simp only [complexifyFunctional, LinearMap.coe_mk, AddHom.coe_mk, + ofReal_re, ofReal_im, map_zero, mul_zero, add_zero] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplexifiedHilbertProduct.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplexifiedHilbertProduct.lean new file mode 100644 index 0000000000..8dcb4947be --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplexifiedHilbertProduct.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertProductOperator + +/-! +# Complexification commutes with the actual Hilbert product + +The unitary below explicitly rearranges four real coordinates. It relates +the product of the two regional complex Hilbert spaces to the complexified +real product used in the full-source covariance compression. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap HilbertComplexification + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℝ E] + [NormedAddCommGroup F] [InnerProductSpace ℝ F] + +/-- Complexification product equivalence. -/ +def complexificationProductEquiv : + HilbertComplexification (WithLp 2 (E × F)) ≃ₗᵢ[ℂ] + WithLp 2 (HilbertComplexification E × HilbertComplexification F) where + toFun z := WithLp.toLp 2 + (mk z.re.fst z.im.fst, mk z.re.snd z.im.snd) + invFun w := mk (WithLp.toLp 2 (w.fst.re, w.snd.re)) + (WithLp.toLp 2 (w.fst.im, w.snd.im)) + left_inv z := by + apply HilbertComplexification.ext <;> apply WithLp.ofLp_injective 2 <;> rfl + right_inv w := by + apply WithLp.ofLp_injective 2 + apply Prod.ext <;> apply HilbertComplexification.ext <;> rfl + map_add' z w := rfl + map_smul' c z := by + apply WithLp.ofLp_injective 2 + apply Prod.ext <;> apply HilbertComplexification.ext <;> rfl + norm_map' z := by + apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp + rw [WithLp.prod_norm_sq_eq_of_L2, HilbertComplexification.norm_sq, + HilbertComplexification.norm_sq, HilbertComplexification.norm_sq, + WithLp.prod_norm_sq_eq_of_L2, WithLp.prod_norm_sq_eq_of_L2] + change (‖z.re.fst‖ ^ 2 + ‖z.im.fst‖ ^ 2) + + (‖z.re.snd‖ ^ 2 + ‖z.im.snd‖ ^ 2) = + (‖z.re.fst‖ ^ 2 + ‖z.re.snd‖ ^ 2) + (‖z.im.fst‖ ^ 2 + ‖z.im.snd‖ ^ 2) + ring + +@[simp] theorem complexificationProductEquiv_fst + (z : HilbertComplexification (WithLp 2 (E × F))) : + (complexificationProductEquiv z).fst = mk z.re.fst z.im.fst := rfl + +@[simp] theorem complexificationProductEquiv_snd + (z : HilbertComplexification (WithLp 2 (E × F))) : + (complexificationProductEquiv z).snd = mk z.re.snd z.im.snd := rfl + +section ComplexOperators + +variable {G H : Type*} + [NormedAddCommGroup G] [InnerProductSpace ℂ G] + [NormedAddCommGroup H] [InnerProductSpace ℂ H] + +/-- Continuous linear map for the complex Hilbert product operator, of type `WithLp 2 (G × H) →L[ℂ] +WithLp 2 (G × H)`. -/ +def complexHilbertProductOperator (A : G →L[ℂ] G) (B : H →L[ℂ] H) : + WithLp 2 (G × H) →L[ℂ] WithLp 2 (G × H) := + (WithLp.prodContinuousLinearEquiv 2 ℂ G H).symm.toContinuousLinearMap.comp + ((A.prodMap B).comp (WithLp.prodContinuousLinearEquiv 2 ℂ G H).toContinuousLinearMap) + +@[simp] theorem complexHilbertProductOperator_apply (A : G →L[ℂ] G) (B : H →L[ℂ] H) + (z : WithLp 2 (G × H)) : + complexHilbertProductOperator A B z = WithLp.toLp 2 (A z.fst, B z.snd) := rfl + +theorem norm_complexHilbertProductOperator_le (A : G →L[ℂ] G) (B : H →L[ℂ] H) + {c : ℝ} (hc : 0 ≤ c) (hA : ‖A‖ ≤ c) (hB : ‖B‖ ≤ c) : + ‖complexHilbertProductOperator A B‖ ≤ c := by + apply ContinuousLinearMap.opNorm_le_bound _ hc + intro z + apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg hc (norm_nonneg _))).mp + rw [complexHilbertProductOperator_apply, WithLp.prod_norm_sq_eq_of_L2, mul_pow, + WithLp.prod_norm_sq_eq_of_L2] + change ‖A z.fst‖ ^ 2 + ‖B z.snd‖ ^ 2 ≤ c ^ 2 * (‖z.fst‖ ^ 2 + ‖z.snd‖ ^ 2) + have ha := (A.le_opNorm z.fst).trans (mul_le_mul_of_nonneg_right hA (norm_nonneg _)) + have hb := (B.le_opNorm z.snd).trans (mul_le_mul_of_nonneg_right hB (norm_nonneg _)) + calc + _ ≤ (c * ‖z.fst‖) ^ 2 + (c * ‖z.snd‖) ^ 2 := by gcongr + _ = _ := by ring + +end ComplexOperators + +variable [CompleteSpace E] [CompleteSpace F] + +omit [CompleteSpace E] [CompleteSpace F] in +theorem complexificationProductEquiv_intertwines (A : E →L[ℝ] E) (B : F →L[ℝ] F) + (z : HilbertComplexification (WithLp 2 (E × F))) : + complexificationProductEquiv (complexify (realHilbertProductOperator A B) z) = + complexHilbertProductOperator (complexify A) (complexify B) + (complexificationProductEquiv z) := rfl + +theorem complexificationProductEquiv_conjugate (A : E →L[ℝ] E) (B : F →L[ℝ] F) : + (complexificationProductEquiv (E := E) (F := F)).conjStarAlgEquiv + (complexify (realHilbertProductOperator A B)) = + complexHilbertProductOperator (complexify A) (complexify B) := by + ext z + rw [LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, + complexificationProductEquiv_intertwines, LinearIsometryEquiv.apply_symm_apply] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ComplexifiedOperator.lean b/LeanPool/VacuumBellSeparation/Gaussian/ComplexifiedOperator.lean new file mode 100644 index 0000000000..a054104fb6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ComplexifiedOperator.lean @@ -0,0 +1,169 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertComplexification +public import Mathlib.Analysis.InnerProductSpace.Adjoint + +/-! +# Complex extensions of real Hilbert-space operators + +Real bounded operators extend componentwise, with exactly the same operator +norm. This extension preserves adjoints, skew-adjointness, and real +isometries. All maps use the concrete Hilbert complexification. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap HilbertComplexification + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℝ E] + [NormedAddCommGroup F] [InnerProductSpace ℝ F] + +/-- Complexify linear map obtained from `mk`. -/ +noncomputable def complexifyLinearMap (A : E →L[ℝ] F) : + HilbertComplexification E →ₗ[ℂ] HilbertComplexification F where + toFun z := mk (A z.re) (A z.im) + map_add' z w := by ext <;> simp + map_smul' c z := by ext <;> simp + +@[simp] +theorem complexifyLinearMap_re (A : E →L[ℝ] F) (z : HilbertComplexification E) : + (complexifyLinearMap A z).re = A z.re := rfl + +@[simp] +theorem complexifyLinearMap_im (A : E →L[ℝ] F) (z : HilbertComplexification E) : + (complexifyLinearMap A z).im = A z.im := rfl + +theorem norm_complexifyLinearMap_le (A : E →L[ℝ] F) (z : HilbertComplexification E) : + ‖complexifyLinearMap A z‖ ≤ ‖A‖ * ‖z‖ := by + apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (norm_nonneg A) (norm_nonneg z))).mp + rw [HilbertComplexification.norm_sq, mul_pow, HilbertComplexification.norm_sq] + simp only [complexifyLinearMap_re, complexifyLinearMap_im] + calc + ‖A z.re‖ ^ 2 + ‖A z.im‖ ^ 2 ≤ + (‖A‖ * ‖z.re‖) ^ 2 + (‖A‖ * ‖z.im‖) ^ 2 := by + gcongr <;> exact A.le_opNorm _ + _ = ‖A‖ ^ 2 * (‖z.re‖ ^ 2 + ‖z.im‖ ^ 2) := by ring + +/-- The genuine bounded complex-linear extension of a real bounded map. -/ +noncomputable def complexify (A : E →L[ℝ] F) : + HilbertComplexification E →L[ℂ] HilbertComplexification F := + (complexifyLinearMap A).mkContinuous ‖A‖ (norm_complexifyLinearMap_le A) + +@[simp] +theorem complexify_re (A : E →L[ℝ] F) (z : HilbertComplexification E) : + (complexify A z).re = A z.re := rfl + +@[simp] +theorem complexify_im (A : E →L[ℝ] F) (z : HilbertComplexification E) : + (complexify A z).im = A z.im := rfl + +@[simp] +theorem complexify_ofReal (A : E →L[ℝ] F) (x : E) : + complexify A (ofReal x) = ofReal (A x) := by ext <;> simp + +theorem norm_complexify_le (A : E →L[ℝ] F) : ‖complexify A‖ ≤ ‖A‖ := + ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _) (norm_complexifyLinearMap_le A) + +theorem norm_complexify (A : E →L[ℝ] F) : ‖complexify A‖ = ‖A‖ := by + apply le_antisymm (norm_complexify_le A) + apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg _) + intro x + calc + ‖A x‖ = ‖ofReal (A x)‖ := (ofReal.norm_map (A x)).symm + _ = ‖complexify A (ofReal x)‖ := by rw [complexify_ofReal] + _ ≤ ‖complexify A‖ * ‖ofReal x‖ := (complexify A).le_opNorm _ + _ = ‖complexify A‖ * ‖x‖ := by rw [ofReal.norm_map] + +@[simp] +theorem complexify_zero : complexify (0 : E →L[ℝ] F) = 0 := by + apply ContinuousLinearMap.ext + intro z + apply HilbertComplexification.ext <;> simp + +@[simp] +theorem complexify_add (A B : E →L[ℝ] F) : + complexify (A + B) = complexify A + complexify B := by + apply ContinuousLinearMap.ext + intro z + apply HilbertComplexification.ext <;> simp + +@[simp] +theorem complexify_neg (A : E →L[ℝ] F) : complexify (-A) = -complexify A := by + apply ContinuousLinearMap.ext + intro z + apply HilbertComplexification.ext <;> simp + +@[simp] +theorem complexify_real_smul (r : ℝ) (A : E →L[ℝ] F) : + complexify (r • A) = r • complexify A := by + apply ContinuousLinearMap.ext + intro z + apply HilbertComplexification.ext <;> simp + +@[simp] +theorem complexify_one : complexify (1 : E →L[ℝ] E) = 1 := by + apply ContinuousLinearMap.ext + intro z + apply HilbertComplexification.ext <;> simp [one_apply_eq_self] + +@[simp] +theorem complexify_mul (A B : E →L[ℝ] E) : + complexify (A * B) = complexify A * complexify B := by + apply ContinuousLinearMap.ext + intro z + apply HilbertComplexification.ext <;> simp [mul_apply_eq_comp] + +section Adjoint + +variable [CompleteSpace E] [CompleteSpace F] + +theorem complexify_adjoint (A : E →L[ℝ] F) : + (complexify A).adjoint = complexify A.adjoint := by + have hinner (z : HilbertComplexification E) (w : HilbertComplexification F) : + inner ℂ (complexify A z) w = inner ℂ z (complexify A.adjoint w) := by + apply Complex.ext <;> + simp only [HilbertComplexification.inner_eq, complexify_re, complexify_im, + A.adjoint_inner_right] + apply ContinuousLinearMap.ext + intro w + apply ext_inner_left ℂ + intro z + rw [ContinuousLinearMap.adjoint_inner_right] + exact hinner z w + +theorem complexify_mem_skewAdjoint {J : E →L[ℝ] E} + (hJ : J ∈ skewAdjoint (E →L[ℝ] E)) : + complexify J ∈ skewAdjoint (HilbertComplexification E →L[ℂ] HilbertComplexification E) := by + change (complexify J).adjoint = -complexify J + change J.adjoint = -J at hJ + rw [complexify_adjoint, hJ, complexify_neg] + +end Adjoint + +/-- Isometric real source inclusions extend to actual complex isometries. -/ +noncomputable def complexifyIsometry (i : E →ₗᵢ[ℝ] F) : + HilbertComplexification E →ₗᵢ[ℂ] HilbertComplexification F where + toLinearMap := complexifyLinearMap i.toContinuousLinearMap + norm_map' z := by + apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp + rw [HilbertComplexification.norm_sq, HilbertComplexification.norm_sq] + simp + +@[simp] +theorem complexifyIsometry_re (i : E →ₗᵢ[ℝ] F) (z : HilbertComplexification E) : + (complexifyIsometry i z).re = i z.re := rfl + +@[simp] +theorem complexifyIsometry_im (i : E →ₗᵢ[ℝ] F) (z : HilbertComplexification E) : + (complexifyIsometry i z).im = i z.im := rfl + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/Compression.lean b/LeanPool/VacuumBellSeparation/Gaussian/Compression.lean new file mode 100644 index 0000000000..08ae4797a0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/Compression.lean @@ -0,0 +1,182 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Aesop.Main +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap +public import Mathlib.Analysis.InnerProductSpace.StarOrder +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Rpow.Order +public import Mathlib.Tactic.TypeStar + +/-! +# Algebraic reserve compression + +The direct square comparison in Lemma 4.4, "Compression of thermal weights", +of the manuscript. + +For a self-adjoint operator `B = i J / 2` and an isometric embedding `ι`, the +difference between the compressed reserve square and the compression of the +reserve square is + +`1 - (ι* B ι)² - ι* (1 - B²) ι = ι* B (1 - ι ι*) B ι ≥ 0`. + +This identity holds for arbitrary complex Hilbert spaces. The definitions here +are the explicit operators in this equation, with no Gaussian or compression +theorem assumed as a structure field. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Compression `ι* A ι` along an isometric embedding. -/ +noncomputable def compression (ι : E →ₗᵢ[ℂ] F) (A : F →L[ℂ] F) : E →L[ℂ] E := + ι.toContinuousLinearMap.adjoint ∘L A ∘L ι.toContinuousLinearMap + +/-- The orthogonal projection `ι ι*` onto the image of an isometric embedding. -/ +noncomputable def imageProjection (ι : E →ₗᵢ[ℂ] F) : F →L[ℂ] F := + ι.toContinuousLinearMap ∘L ι.toContinuousLinearMap.adjoint + +/-- The square of the manuscript's reserve, `1 - B²`, before imposing positivity. -/ +def reserveSquare (B : F →L[ℂ] F) : F →L[ℂ] F := 1 - B ^ 2 + +/-- The positive reserve `sqrt (1 - B²)`. Its intended domain is the +self-adjoint contractions, for which the argument is positive. -/ +noncomputable def reserve (B : F →L[ℂ] F) : F →L[ℂ] F := + CFC.sqrt (reserveSquare B) + +@[simp] +theorem adjoint_embedding_apply (ι : E →ₗᵢ[ℂ] F) (x : E) : + ι.toContinuousLinearMap.adjoint (ι x) = x := by + simpa only [comp_apply, one_apply_eq_self, LinearIsometry.coe_toContinuousLinearMap] using + DFunLike.congr_fun ι.adjoint_comp_self x + +@[simp] +theorem compression_one (ι : E →ₗᵢ[ℂ] F) : + compression ι 1 = 1 := by + ext x + simp [compression] + +@[simp] +theorem compression_sub (ι : E →ₗᵢ[ℂ] F) (A B : F →L[ℂ] F) : + compression ι (A - B) = compression ι A - compression ι B := by + ext x + simp [compression] + +/-- Compression preserves positivity. -/ +theorem compression_nonneg (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} (h : 0 ≤ A) : + 0 ≤ compression ι A := + nonneg_iff_isPositive.mpr ((nonneg_iff_isPositive.mp h).adjoint_conj + ι.toContinuousLinearMap) + +/-- Compression preserves self-adjointness. -/ +theorem compression_isSelfAdjoint (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} + (hA : IsSelfAdjoint A) : IsSelfAdjoint (compression ι A) := + hA.adjoint_conj ι.toContinuousLinearMap + +/-- A self-adjoint contraction has positive reserve square. -/ +theorem reserveSquare_nonneg {B : F →L[ℂ] F} + (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) : 0 ≤ reserveSquare B := by + rw [reserveSquare, sub_nonneg, ← CStarAlgebra.norm_le_one_iff_of_nonneg (B ^ 2), + pow_two, hB.norm_mul_self] + nlinarith [norm_nonneg B] + +/-- Compression preserves the operator order. -/ +theorem compression_mono (ι : E →ₗᵢ[ℂ] F) {A B : F →L[ℂ] F} (h : A ≤ B) : + compression ι A ≤ compression ι B := by + rw [le_def, ← compression_sub] + exact (le_def.mp h).adjoint_conj ι.toContinuousLinearMap + +/-- The operator `ι ι*` really is a star projection. -/ +theorem imageProjection_isStarProjection (ι : E →ₗᵢ[ℂ] F) : + IsStarProjection (imageProjection ι) := by + constructor + · change imageProjection ι * imageProjection ι = imageProjection ι + ext x + simp [imageProjection, mul_apply_eq_comp] + · change star (imageProjection ι) = imageProjection ι + simp [imageProjection, star_eq_adjoint] + +/-- The orthogonal complement of the image projection is positive. -/ +theorem one_sub_imageProjection_nonneg (ι : E →ₗᵢ[ℂ] F) : + 0 ≤ 1 - imageProjection ι := by + exact nonneg_iff_isPositive.mpr + (.of_isStarProjection (imageProjection_isStarProjection ι).one_sub) + +/-- The direct reserve-square identity in the proof of manuscript Lemma 4.4. -/ +theorem reserveSquare_compression_sub (ι : E →ₗᵢ[ℂ] F) (B : F →L[ℂ] F) : + reserveSquare (compression ι B) - compression ι (reserveSquare B) = + compression ι (B * (1 - imageProjection ι) * B) := by + ext x + simp only [reserveSquare, compression, imageProjection, pow_two, comp_apply, + mul_apply_eq_comp, sub_apply, one_apply_eq_self, map_sub, + LinearIsometry.coe_toContinuousLinearMap, adjoint_embedding_apply] + abel + +/-- The square reserve increases under compression, for self-adjoint `B`. +No finite-dimensionality or strict contraction assumption is needed for this +algebraic inequality. -/ +theorem compression_reserveSquare_le (ι : E →ₗᵢ[ℂ] F) {B : F →L[ℂ] F} + (hB : IsSelfAdjoint B) : + compression ι (reserveSquare B) ≤ reserveSquare (compression ι B) := by + rw [← sub_nonneg, reserveSquare_compression_sub, nonneg_iff_isPositive] + have hP := (nonneg_iff_isPositive.mp (one_sub_imageProjection_nonneg ι)).adjoint_conj + (B ∘L ι.toContinuousLinearMap) + have hBadj : B.adjoint = B := by simpa only [star_eq_adjoint] using hB.star_eq + simpa only [compression, adjoint_comp, hBadj, mul_def, comp_assoc] using hP + +/-- If the full reserve square is positive, so is the compressed reserve square. -/ +theorem reserveSquare_compression_nonneg (ι : E →ₗᵢ[ℂ] F) {B : F →L[ℂ] F} + (hB : IsSelfAdjoint B) (hR : 0 ≤ reserveSquare B) : + 0 ≤ reserveSquare (compression ι B) := by + have hcomp : 0 ≤ compression ι (reserveSquare B) := + nonneg_iff_isPositive.mpr ((nonneg_iff_isPositive.mp hR).adjoint_conj + ι.toContinuousLinearMap) + exact hcomp.trans (compression_reserveSquare_le ι hB) + +/-- The quadratic compression inequality, obtained from the reserve-square +identity by cancelling the identity operators. -/ +theorem compression_sq_le (ι : E →ₗᵢ[ℂ] F) {B : F →L[ℂ] F} + (hB : IsSelfAdjoint B) : + (compression ι B) ^ 2 ≤ compression ι (B ^ 2) := by + have h := compression_reserveSquare_le ι hB + simpa only [reserveSquare, compression_sub, compression_one, sub_le_sub_iff_left] using h + +/-- Square-root Jensen inequality for a Hilbert-space compression. This is +derived from the quadratic compression inequality and Mathlib's operator +monotonicity of the square root. -/ +theorem compression_sqrt_le (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} (hA : 0 ≤ A) : + compression ι (CFC.sqrt A) ≤ CFC.sqrt (compression ι A) := by + have h := compression_sq_le ι (CFC.sqrt_nonneg A).isSelfAdjoint + rw [CFC.sq_sqrt A hA] at h + have hs := CFC.sqrt_le_sqrt _ _ h + rwa [CFC.sqrt_sq _ (compression_nonneg ι (CFC.sqrt_nonneg A))] at hs + +/-- The low-compression claim of Lemma 4.4 at `a = 1/2`: +`ι* R ι ≤ R_F`. This is valid also for infinite-dimensional source spaces and +noninvertible reserve operators. -/ +theorem compression_reserve_le (ι : E →ₗᵢ[ℂ] F) {B : F →L[ℂ] F} + (hB : IsSelfAdjoint B) (hR : 0 ≤ reserveSquare B) : + compression ι (reserve B) ≤ reserve (compression ι B) := by + exact (compression_sqrt_le ι hR).trans + (CFC.sqrt_le_sqrt _ _ (compression_reserveSquare_le ι hB)) + +/-- The `a = 1/2` low-compression bound in the manuscript's natural domain of +self-adjoint contractions. -/ +theorem compression_reserve_le_of_norm_le_one (ι : E →ₗᵢ[ℂ] F) {B : F →L[ℂ] F} + (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) : + compression ι (reserve B) ≤ reserve (compression ι B) := + compression_reserve_le ι hB (reserveSquare_nonneg hB hnorm) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CompressionPower.lean b/LeanPool/VacuumBellSeparation/Gaussian/CompressionPower.lean new file mode 100644 index 0000000000..51f6e98910 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CompressionPower.lean @@ -0,0 +1,221 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.Compression + +/-! +# Powers under compression + +The full low-compression claim (4.10) of manuscript Lemma 4.4. On an algebra +commuting with the image projection, compression is a unital star-algebra +homomorphism. Mathlib's functional-calculus naturality and operator concavity, +applied to the reflection average, yield the power compression inequality. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped NNReal + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem imageProjection_apply_embedding (ι : E →ₗᵢ[ℂ] F) (x : E) : + imageProjection ι (ι x) = ι x := by + simp [imageProjection] + +/-- An operator commuting with the image projection preserves the image. -/ +theorem imageProjection_apply_of_commute (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} + (hA : Commute A (imageProjection ι)) (x : E) : + imageProjection ι (A (ι x)) = A (ι x) := by + have h := DFunLike.congr_fun hA.eq (ι x) + simpa only [mul_apply_eq_comp, imageProjection_apply_embedding] using h.symm + +/-- Compression is multiplicative when the right factor preserves the image. -/ +theorem compression_mul_of_commute (ι : E →ₗᵢ[ℂ] F) (A : F →L[ℂ] F) + {B : F →L[ℂ] F} (hB : Commute B (imageProjection ι)) : + compression ι (A * B) = compression ι A * compression ι B := by + ext x + change ι.toContinuousLinearMap.adjoint (A (B (ι x))) = + ι.toContinuousLinearMap.adjoint (A (imageProjection ι (B (ι x)))) + rw [imageProjection_apply_of_commute ι hB] + +theorem elemental_commute_imageProjection (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} + (hA : IsSelfAdjoint A) (hAP : Commute A (imageProjection ι)) + (X : StarAlgebra.elemental ℂ A) : Commute (X : F →L[ℂ] F) (imageProjection ι) := by + have hP : imageProjection ι ∈ StarSubalgebra.centralizer ℂ ({A} : Set (F →L[ℂ] F)) := by + rw [StarSubalgebra.mem_centralizer_iff] + intro g hg + rcases Set.mem_singleton_iff.mp hg with rfl + exact ⟨hAP.eq, by simpa only [hA.star_eq] using hAP.eq⟩ + have hX := StarAlgebra.elemental.le_centralizer_centralizer ℂ A X.property + exact (((StarSubalgebra.mem_centralizer_iff ℂ).mp hX) _ hP).1.symm + +/-- On the closed star algebra generated by a self-adjoint operator commuting +with the image projection, compression is an actual unital star homomorphism. -/ +noncomputable def compressionOnElemental (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} + (hA : IsSelfAdjoint A) (hAP : Commute A (imageProjection ι)) : + StarAlgebra.elemental ℂ A →⋆ₐ[ℂ] (E →L[ℂ] E) where + toFun X := compression ι X + map_one' := compression_one ι + map_mul' X Y := compression_mul_of_commute ι X (elemental_commute_imageProjection ι hA hAP Y) + map_zero' := by ext x; simp [compression] + map_add' X Y := by ext x; simp [compression] + commutes' r := by + ext x + simp [compression, Algebra.algebraMap_eq_smul_one] + map_star' X := by + change compression ι (star (X : F →L[ℂ] F)) = star (compression ι X) + ext x + simp [compression, star_eq_adjoint] + +/-- Functional calculus commutes with compression when the operator commutes +with the image projection. This statement concerns positive real powers and +requires neither finite dimension nor invertibility. -/ +theorem compression_rpow_of_commute (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} + (hA : 0 ≤ A) (hAP : Commute A (imageProjection ι)) {p : ℝ} (hp : 0 < p) : + compression ι (A ^ p) = (compression ι A) ^ p := by + let : IsClosed (StarAlgebra.elemental ℂ A : Set (F →L[ℂ] F)) := + StarAlgebra.elemental.isClosed ℂ A + let X : StarAlgebra.elemental ℂ A := ⟨A, StarAlgebra.elemental.self_mem ℂ A⟩ + let φ := compressionOnElemental ι hA.isSelfAdjoint hAP + have hX : IsSelfAdjoint X := by + apply Subtype.ext + exact hA.isSelfAdjoint.star_eq + have hi := (StarAlgebra.elemental ℂ A).subtype.map_cfc + (fun x : ℝ => x ^ p) X + (hf := (Real.continuous_rpow_const hp.le).continuousOn) + (hφ := continuous_subtype_val) + (ha := hX) (hφa := hA.isSelfAdjoint) + have hφ : Continuous φ := by + change Continuous (fun X : StarAlgebra.elemental ℂ A => + ι.toContinuousLinearMap.adjoint ∘L (X : F →L[ℂ] F) ∘L ι.toContinuousLinearMap) + fun_prop + have hc := φ.map_cfc (fun x : ℝ => x ^ p) X + (hf := (Real.continuous_rpow_const hp.le).continuousOn) + (hφ := hφ) (ha := hX) (hφa := (compression_nonneg ι hA).isSelfAdjoint) + change compression ι ((cfc (fun x : ℝ => x ^ p) X : StarAlgebra.elemental ℂ A) : + F →L[ℂ] F) = cfc (fun x : ℝ => x ^ p) (compression ι A) at hc + change ((cfc (fun x : ℝ => x ^ p) X : StarAlgebra.elemental ℂ A) : + F →L[ℂ] F) = cfc (fun x : ℝ => x ^ p) A at hi + rw [hi] at hc + rw [CFC.rpow_eq_cfc_real hA, CFC.rpow_eq_cfc_real (compression_nonneg ι hA)] + exact hc + +/-- Reflection across the image of an isometric embedding. -/ +noncomputable def imageReflection (ι : E →ₗᵢ[ℂ] F) : F →L[ℂ] F := + 2 * imageProjection ι - 1 + +theorem imageReflection_isSelfAdjoint (ι : E →ₗᵢ[ℂ] F) : + IsSelfAdjoint (imageReflection ι) := by + change star (2 * imageProjection ι - 1) = 2 * imageProjection ι - 1 + simp only [two_mul, star_sub, star_add, + (imageProjection_isStarProjection ι).isSelfAdjoint.star_eq, star_one] + +theorem imageReflection_mem_unitary (ι : E →ₗᵢ[ℂ] F) : + imageReflection ι ∈ unitary (F →L[ℂ] F) := + (imageProjection_isStarProjection ι).two_mul_sub_one_mem_unitary + +theorem imageReflection_mul_self (ι : E →ₗᵢ[ℂ] F) : + imageReflection ι * imageReflection ι = 1 := by + simpa only [(imageReflection_isSelfAdjoint ι).star_eq] using + (imageReflection_mem_unitary ι).1 + +/-- Average with conjugation by the image reflection; equivalently, erase the +off-diagonal blocks between the image and its orthogonal complement. -/ +noncomputable def pinching (ι : E →ₗᵢ[ℂ] F) (A : F →L[ℂ] F) : F →L[ℂ] F := + (1 / 2 : ℝ) • A + (1 / 2 : ℝ) • (imageReflection ι * A * imageReflection ι) + +theorem pinching_nonneg (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} (hA : 0 ≤ A) : + 0 ≤ pinching ι A := by + apply add_nonneg (smul_nonneg (by norm_num) hA) + exact smul_nonneg (by norm_num) ((imageReflection_isSelfAdjoint ι).conjugate_nonneg hA) + +theorem pinching_commute_imageProjection (ι : E →ₗᵢ[ℂ] F) (A : F →L[ℂ] F) : + Commute (pinching ι A) (imageProjection ι) := by + let U := imageReflection ι + have hU : U * U = 1 := imageReflection_mul_self ι + have hcomm : Commute (pinching ι A) U := by + change ((1 / 2 : ℝ) • A + (1 / 2 : ℝ) • (U * A * U)) * U = + U * ((1 / 2 : ℝ) • A + (1 / 2 : ℝ) • (U * A * U)) + have hr : U * A * U * U = U * A := by rw [mul_assoc (U * A), hU, mul_one] + have hl : U * (U * A * U) = A * U := by rw [← mul_assoc, ← mul_assoc, hU, one_mul] + simp only [add_mul, mul_add, smul_mul_assoc, mul_smul_comm, hr, hl] + abel + have hP : imageProjection ι = (1 / 2 : ℝ) • (U + 1) := by + dsimp [U, imageReflection] + rw [two_mul] + module + rw [hP] + exact (hcomm.add_right (Commute.one_right _)).smul_right _ + +theorem compression_pinching (ι : E →ₗᵢ[ℂ] F) (A : F →L[ℂ] F) : + compression ι (pinching ι A) = compression ι A := by + have hright (x : E) : imageReflection ι (ι x) = ι x := by + simp [imageReflection, two_mul, imageProjection_apply_embedding] + have hleft (x : F) : ι.toContinuousLinearMap.adjoint (imageReflection ι x) = + ι.toContinuousLinearMap.adjoint x := by + simp [imageReflection, imageProjection, two_mul] + ext x + change ι.toContinuousLinearMap.adjoint + ((1 / 2 : ℝ) • A (ι x) + (1 / 2 : ℝ) • + imageReflection ι (A (imageReflection ι (ι x)))) = + ι.toContinuousLinearMap.adjoint (A (ι x)) + rw [hright, map_add, map_smul_of_tower, map_smul_of_tower, hleft, ← add_smul] + norm_num + +/-- Real powers commute with unitary conjugation, by Mathlib's CFC naturality. -/ +theorem unitary_conjugate_rpow (U : unitary (F →L[ℂ] F)) {A : F →L[ℂ] F} + (hA : 0 ≤ A) {p : ℝ} (hp : 0 < p) : + ((U : F →L[ℂ] F) * A * star (U : F →L[ℂ] F)) ^ p = + (U : F →L[ℂ] F) * A ^ p * star (U : F →L[ℂ] F) := by + let φ := (Unitary.conjStarAlgAut ℂ (F →L[ℂ] F) U).toStarAlgHom + have hφ : Continuous φ := by + change Continuous (fun X : F →L[ℂ] F => (U : F →L[ℂ] F) * X * star (U : F →L[ℂ] F)) + exact (continuous_const.mul continuous_id).mul continuous_const + have h := φ.map_cfc (fun x : ℝ≥0 => x ^ p) A + (ha := hA) (hφa := star_right_conjugate_nonneg hA U) (hφ := hφ) + exact h.symm + +/-- Jensen's inequality for positive real powers under a Hilbert-space +compression, proved from the reflection average and operator concavity. -/ +theorem compression_rpow_le (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} (hA : 0 ≤ A) + {p : ℝ} (hp0 : 0 < p) (hp1 : p ≤ 1) : + compression ι (A ^ p) ≤ (compression ι A) ^ p := by + let U : unitary (F →L[ℂ] F) := ⟨imageReflection ι, imageReflection_mem_unitary ι⟩ + have hUstar : star (U : F →L[ℂ] F) = U := (imageReflection_isSelfAdjoint ι).star_eq + have hconj : (0 : F →L[ℂ] F) ≤ (U : F →L[ℂ] F) * A * U := by + simpa only [hUstar] using star_right_conjugate_nonneg hA (U : F →L[ℂ] F) + have hc := (CFC.concaveOn_rpow (A := F →L[ℂ] F) ⟨hp0.le, hp1⟩).2 + hA hconj (by norm_num : (0 : ℝ) ≤ 1 / 2) (by norm_num : (0 : ℝ) ≤ 1 / 2) + (by norm_num : (1 / 2 : ℝ) + 1 / 2 = 1) + have hnat := unitary_conjugate_rpow U hA hp0 + rw [hUstar] at hnat + have hc' : pinching ι (A ^ p) ≤ (pinching ι A) ^ p := by + simpa only [pinching, hnat] using hc + have h := compression_mono ι hc' + rw [compression_pinching, + compression_rpow_of_commute ι (pinching_nonneg ι hA) + (pinching_commute_imageProjection ι A) hp0, + compression_pinching] at h + exact h + +/-- The entire low-compression claim (4.10), in normalized commutation +coordinates: `ι* R^(2a) ι ≤ R_F^(2a)` for `0 < a ≤ 1/2`. -/ +theorem low_compression (ι : E →ₗᵢ[ℂ] F) {B : F →L[ℂ] F} + (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) {a : ℝ} + (ha0 : 0 < a) (ha1 : a ≤ 1 / 2) : + compression ι ((reserve B) ^ (2 * a)) ≤ (reserve (compression ι B)) ^ (2 * a) := by + have hp : 2 * a ∈ Set.Icc (0 : ℝ) 1 := ⟨by linarith, by linarith⟩ + exact (compression_rpow_le ι (CFC.sqrt_nonneg _) (by linarith) hp.2).trans + (CFC.rpow_le_rpow hp (compression_reserve_le_of_norm_le_one ι hB hnorm)) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CompressionPowerTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/CompressionPowerTrace.lean new file mode 100644 index 0000000000..ce9d414a4f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CompressionPowerTrace.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTracePowerOrder +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtIdeal + +/-! +# Actual trace-power bounds under Hilbert-space compression + +Unit-vector Jensen and a genuine eigenbasis of the compact compressed +operator give Tr((i† A i)^p) <= Tr(i† A^p i), p>=1. The Hilbert--Schmidt +ideal bound and the actual isometry norm then give Tr(i† A^p i)<=Tr(A^p). +No operator convexity at p>2 or finite-dimensional trace substitute occurs. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem compression_inner (ι : E →ₗᵢ[ℂ] F) (A : F →L[ℂ] F) (x y : E) : + inner ℂ x (compression ι A y) = inner ℂ (ι x) (A (ι y)) := by + change inner ℂ x (ι.toContinuousLinearMap.adjoint (A (ι y))) = _ + exact ι.toContinuousLinearMap.adjoint_inner_right x (A (ι y)) + +theorem positiveTrace_compression_le (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} + (hA : 0 ≤ A) : positiveTrace (compression ι A) ≤ positiveTrace A := by + have hn : ‖ι.toContinuousLinearMap‖ ≤ 1 := by + apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one + intro x + simp only [LinearIsometry.coe_toContinuousLinearMap, ι.norm_map, one_mul, le_refl] + have hn₂ : ‖ι.toContinuousLinearMap‖ ^ 2 ≤ 1 := by + nlinarith [norm_nonneg ι.toContinuousLinearMap] + have he : ENNReal.ofReal (‖ι.toContinuousLinearMap‖ ^ 2) ≤ 1 := + (ENNReal.ofReal_le_ofReal hn₂).trans_eq (by norm_num) + have h := positiveTrace_adjoint_sandwich_le hA ι.toContinuousLinearMap + have hh : positiveTrace (compression ι A) ≤ + ENNReal.ofReal (‖ι.toContinuousLinearMap‖ ^ 2) * positiveTrace A := by + simpa only [compression, comp_assoc] using h + exact hh.trans (by simpa only [one_mul] using _root_.mul_le_mul_left he (positiveTrace A)) + +theorem unit_inner_pow_le_inner_rpow {A : E →L[ℂ] E} (hA : 0 ≤ A) + {x : E} (hx : ‖x‖ = 1) {p : ℝ} (hp : 1 ≤ p) : + (inner ℂ x (A x)).re ^ p ≤ (inner ℂ x ((A ^ p) x)).re := by + have hp₀ : 0 < p := lt_of_lt_of_le zero_lt_one hp + have hj := unit_inner_rpow_le (CFC.rpow_nonneg (a := A) (y := p)) hx + (one_div_pos.mpr hp₀) ((div_le_iff₀ hp₀).mpr (by simpa using hp)) + rw [CFC.rpow_rpow_of_exponent_nonneg A p (1 / p) hp₀.le (one_div_pos.mpr hp₀).le hA, + mul_one_div_cancel hp₀.ne', CFC.rpow_one A hA] at hj + have hbase : 0 ≤ (inner ℂ x (A x)).re := + (nonneg_iff_isPositive.mp hA).re_inner_nonneg_right _ + have htarget : 0 ≤ (inner ℂ x ((A ^ p) x)).re := + (nonneg_iff_isPositive.mp (CFC.rpow_nonneg (a := A) (y := p))).re_inner_nonneg_right _ + have hh := Real.rpow_le_rpow hbase hj hp₀.le + rwa [← Real.rpow_mul htarget, one_div_mul_cancel hp₀.ne', Real.rpow_one] at hh + +theorem positiveTrace_compression_rpow_le_compression (ι : E →ₗᵢ[ℂ] F) + {A : F →L[ℂ] F} (hc : IsCompactOperator (compression ι A)) (hA : 0 ≤ A) + {p : ℝ} (hp : 1 ≤ p) : + positiveTrace (compression ι A ^ p) ≤ positiveTrace (compression ι (A ^ p)) := by + let C := compression ι A + have hC : 0 ≤ C := compression_nonneg ι hA + let b := compactSelfAdjointBasis hc hC.isSelfAdjoint + have heig (i : operatorEigenIndex C) : C (b i) = i.1.re • b i := by + simpa only [RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal] using + compactSelfAdjointBasis_apply_operator hc hC.isSelfAdjoint i + have hdiag (i : operatorEigenIndex C) : (inner ℂ (ι (b i)) (A (ι (b i)))).re = i.1.re := by + rw [← compression_inner ι A] + change RCLike.re (inner ℂ (b i) (C (b i))) = _ + rw [heig, inner_smul_right_eq_smul, RCLike.smul_re, inner_self_eq_norm_sq, + b.orthonormal.norm_eq_one] + simp + rw [positiveTrace_rpow_eq_hilbertEigenvalue_sum b hC heig (lt_of_lt_of_le zero_lt_one hp), + positiveTrace_eq_tsum_diagonal b (compression_nonneg ι (CFC.rpow_nonneg (a := A) (y := p)))] + apply tsum_le_tsum + intro i + apply ENNReal.ofReal_le_ofReal + rw [compression_inner] + have h := unit_inner_pow_le_inner_rpow hA + (show ‖ι (b i)‖ = 1 by rw [ι.norm_map, b.orthonormal.norm_eq_one]) hp + rwa [hdiag] at h + +theorem positiveTrace_compression_rpow_le (ι : E →ₗᵢ[ℂ] F) + {A : F →L[ℂ] F} (hcA : IsCompactOperator A) (hA : 0 ≤ A) + {p : ℝ} (hp : 1 ≤ p) : + positiveTrace (compression ι A ^ p) ≤ positiveTrace (A ^ p) := by + have hc : IsCompactOperator (compression ι A) := + (hcA.comp_clm ι.toContinuousLinearMap).clm_comp ι.toContinuousLinearMap.adjoint + exact (positiveTrace_compression_rpow_le_compression ι hc hA hp).trans + (positiveTrace_compression_le ι (CFC.rpow_nonneg (a := A) (y := p))) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ContractionDilation.lean b/LeanPool/VacuumBellSeparation/Gaussian/ContractionDilation.lean new file mode 100644 index 0000000000..b6c8c66cfa --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ContractionDilation.lean @@ -0,0 +1,109 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.IsometricCorner +public import Mathlib.Analysis.InnerProductSpace.ProdL2 + +/-! +# Actual Hilbert-space dilation of a contraction + +The map x ↦ (C x, sqrt(I−C†C) x) is an isometry into the genuine Hilbert +product. Its compression of the first corner of A is C†AC. Together with +the previously proved isometric compression inequality and nonunital +corner calculus, this proves operator concavity under a contraction. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Linear isometry for the hilbert product left, of type `E →ₗᵢ[ℂ] WithLp 2 (E × E)`. -/ +def hilbertProductLeft : E →ₗᵢ[ℂ] WithLp 2 (E × E) := + ((WithLp.linearEquiv 2 ℂ (E × E)).symm.toLinearMap.comp (LinearMap.inl ℂ E E)).isometryOfInner + (by intro x y; simp [WithLp.prod_inner_apply]) + +omit [CompleteSpace E] in +@[simp] theorem hilbertProductLeft_apply (x : E) : + hilbertProductLeft x = WithLp.toLp 2 (x, (0 : E)) := rfl + +@[simp] theorem hilbertProductLeft_adjoint_apply (z : WithLp 2 (E × E)) : + (hilbertProductLeft (E := E)).toContinuousLinearMap.adjoint z = (WithLp.ofLp z).1 := by + apply ext_inner_left ℂ + intro x + rw [ContinuousLinearMap.adjoint_inner_right] + simp only [LinearIsometry.coe_toContinuousLinearMap, hilbertProductLeft_apply, + WithLp.prod_inner_apply, inner_zero_left, add_zero] + +/-- Linear isometry for the contraction dilation, of type `E →ₗᵢ[ℂ] WithLp 2 (E × E)`. -/ +def contractionDilation (C : E →L[ℂ] E) (hC : star C * C ≤ 1) : + E →ₗᵢ[ℂ] WithLp 2 (E × E) := by + let D := CFC.sqrt (1 - star C * C) + let f : E →ₗ[ℂ] WithLp 2 (E × E) := + (WithLp.linearEquiv 2 ℂ (E × E)).symm.toLinearMap.comp + (C.toLinearMap.prod D.toLinearMap) + apply f.isometryOfInner + intro x y + change inner ℂ (C x) (C y) + inner ℂ (D x) (D y) = inner ℂ x y + have hDD : D * D = 1 - star C * C := by + dsimp only [D] + rw [← pow_two, CFC.sq_sqrt _ (sub_nonneg.mpr hC)] + have hD : D.adjoint = D := (CFC.sqrt_nonneg _).isSelfAdjoint.adjoint_eq + have hsum : star C * C + D * D = 1 := by rw [hDD]; abel + rw [← C.adjoint_inner_right, ← D.adjoint_inner_right, hD] + change inner ℂ x ((star C * C) y) + inner ℂ x ((D * D) y) = inner ℂ x y + rw [← inner_add_right, ← add_apply, hsum, one_apply_eq_self] + +@[simp] theorem contractionDilation_apply (C : E →L[ℂ] E) + (hC : star C * C ≤ 1) (x : E) : + contractionDilation C hC x = + WithLp.toLp 2 (C x, CFC.sqrt (1 - star C * C) x) := rfl + +theorem compression_contraction_corner (C : E →L[ℂ] E) (hC : star C * C ≤ 1) + (A : E →L[ℂ] E) : + compression (contractionDilation C hC) (isometricCorner hilbertProductLeft A) = + star C * A * C := by + ext y + apply ext_inner_left ℂ + intro x + change inner ℂ x ((contractionDilation C hC).toContinuousLinearMap.adjoint + (isometricCorner hilbertProductLeft A (contractionDilation C hC y))) = + inner ℂ x ((star C * A * C) y) + rw [ContinuousLinearMap.adjoint_inner_right, isometricCorner_apply, + hilbertProductLeft_adjoint_apply, hilbertProductLeft_apply] + simp only [contractionDilation_apply, WithLp.prod_inner_apply, WithLp.ofLp_toLp, + inner_zero_right, add_zero, mul_apply_eq_comp] + exact (C.adjoint_inner_right x (A (C y))).symm + +/-- Hansen's power inequality on the actual infinite-dimensional Hilbert +space, derived by dilation from the proved isometric Jensen inequality. -/ +theorem contraction_rpow_le (C : E →L[ℂ] E) (hC : star C * C ≤ 1) + {A : E →L[ℂ] E} (hA : 0 ≤ A) {p : ℝ} (hp₀ : 0 < p) (hp₁ : p ≤ 1) : + star C * A ^ p * C ≤ (star C * A * C) ^ p := by + have h := compression_rpow_le (contractionDilation C hC) + (isometricCorner_nonneg hilbertProductLeft hA) hp₀ hp₁ + rw [← isometricCorner_rpow hilbertProductLeft hA hp₀, + compression_contraction_corner, compression_contraction_corner] at h + exact h + +/-- The exact contraction-concavity step used for the source effect bound. -/ +theorem effect_sqrt_rpow_le {M A : E →L[ℂ] E} (hM₀ : 0 ≤ M) (hM₁ : M ≤ 1) + (hA : 0 ≤ A) {p : ℝ} (hp₀ : 0 < p) (hp₁ : p ≤ 1) : + CFC.sqrt M * A ^ p * CFC.sqrt M ≤ (CFC.sqrt M * A * CFC.sqrt M) ^ p := by + have hs := (CFC.sqrt_nonneg M).isSelfAdjoint.star_eq + have hc : star (CFC.sqrt M) * CFC.sqrt M ≤ 1 := by + rw [hs, ← pow_two, CFC.sq_sqrt M hM₀] + exact hM₁ + simpa only [hs] using contraction_rpow_le (CFC.sqrt M) hc hA hp₀ hp₁ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CovarianceResolventPerturbation.lean b/LeanPool/VacuumBellSeparation/Gaussian/CovarianceResolventPerturbation.lean new file mode 100644 index 0000000000..60207c874b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CovarianceResolventPerturbation.lean @@ -0,0 +1,136 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixResolventBounds +public import LeanPool.VacuumBellSeparation.Gaussian.RelativeCovarianceCongruence +public import LeanPool.VacuumBellSeparation.Gaussian.SandwichAlgebra + +/-! +# Actual covariance perturbations as resolvent sandwiches + +The source covariance difference L(H-Δ)⁻¹L-LH⁻¹L is expressed through +Z=H^(-1/2)ΔH^(-1/2) and the genuine resolvent (I-Z)⁻¹-I. Normalizing by +a second positive covariance gives B[(I-Z)⁻¹-I]Bᵀ with an explicit B. +The resulting operator/trace norm estimates are proved, rather than +assumed as fields of a covariance perturbation structure. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Inverse sandwich perturbation given by `L * (H - Δ)⁻¹ * L - L * H⁻¹ * L`. -/ +def inverseSandwichPerturbation (H L Δ : Matrix ι ι ℝ) : Matrix ι ι ℝ := + L * (H - Δ)⁻¹ * L - L * H⁻¹ * L + +/-- Covariance perturbation multiplier given by `(CFC.sqrt V)⁻¹ * L * (CFC.sqrt H)⁻¹`. -/ +def covariancePerturbationMultiplier (V H L : Matrix ι ι ℝ) : Matrix ι ι ℝ := + (CFC.sqrt V)⁻¹ * L * (CFC.sqrt H)⁻¹ + +theorem relativeCovariancePerturbation_isHermitian + {H Δ : Matrix ι ι ℝ} (hH : H.PosDef) (hΔ : Δ.IsHermitian) : + (relativeCovariancePerturbation H Δ).IsHermitian := by + have hi : ((CFC.sqrt H)⁻¹)ᵀ = (CFC.sqrt H)⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hH).inv.isHermitian.eq + simpa only [relativeCovariancePerturbation, + Matrix.conjTranspose_eq_transpose_of_trivial, hi] using + Matrix.isHermitian_mul_mul_conjTranspose (CFC.sqrt H)⁻¹ hΔ + +theorem covariance_gap_factorization {H : Matrix ι ι ℝ} (hH : H.PosDef) (Δ : Matrix ι ι ℝ) : + H - Δ = CFC.sqrt H * (1 - relativeCovariancePerturbation H Δ) * CFC.sqrt H := by + have h := perturbation_factorization (CFC.sqrt H) Δ (matrix_sqrt_posDef hH).isUnit + rw [CFC.sqrt_mul_sqrt_self H hH.posSemidef.nonneg] at h + exact h + +theorem covariance_gap_posDef_of_relative_norm + {H Δ : Matrix ι ι ℝ} (hH : H.PosDef) (hΔ : Δ.IsHermitian) + (hδ : ‖relativeCovariancePerturbation H Δ‖ < 1) : (H - Δ).PosDef := by + have hR := matrix_sqrt_posDef hH + have hp := matrix_one_sub_posDef_of_norm_lt_one + (relativeCovariancePerturbation_isHermitian hH hΔ) hδ + have h := hR.isUnit.posDef_star_right_conjugate_iff.mpr hp + simpa only [Matrix.star_eq_conjTranspose, hR.isHermitian.eq, + ← covariance_gap_factorization hH Δ] using h + +theorem inverseSandwichPerturbation_resolvent + {H : Matrix ι ι ℝ} (hH : H.PosDef) (L Δ : Matrix ι ι ℝ) : + inverseSandwichPerturbation H L Δ = + (L * (CFC.sqrt H)⁻¹) * matrixResolventPerturbation (relativeCovariancePerturbation H Δ) * + ((CFC.sqrt H)⁻¹ * L) := by + have hHinv : H⁻¹ = (CFC.sqrt H)⁻¹ * (CFC.sqrt H)⁻¹ := by + calc + H⁻¹ = (CFC.sqrt H * CFC.sqrt H)⁻¹ := + congrArg (fun M : Matrix ι ι ℝ => M⁻¹) + (CFC.sqrt_mul_sqrt_self H hH.posSemidef.nonneg).symm + _ = _ := Matrix.mul_inv_rev _ _ + rw [inverseSandwichPerturbation, covariance_gap_factorization hH Δ, + Matrix.mul_inv_rev, Matrix.mul_inv_rev, hHinv, matrixResolventPerturbation] + noncomm_ring + +theorem relative_inverseSandwichPerturbation_eq + {V H L : Matrix ι ι ℝ} (hV : V.PosDef) (hH : H.PosDef) (hL : L.IsHermitian) + (Δ : Matrix ι ι ℝ) : + relativeCovariancePerturbation V (inverseSandwichPerturbation H L Δ) = + covariancePerturbationMultiplier V H L * + matrixResolventPerturbation (relativeCovariancePerturbation H Δ) * + (covariancePerturbationMultiplier V H L)ᵀ := by + have hVi : ((CFC.sqrt V)⁻¹)ᵀ = (CFC.sqrt V)⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hV).inv.isHermitian.eq + have hHi : ((CFC.sqrt H)⁻¹)ᵀ = (CFC.sqrt H)⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hH).inv.isHermitian.eq + have hLt : Lᵀ = L := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hL.eq + rw [relativeCovariancePerturbation, inverseSandwichPerturbation_resolvent hH L Δ] + simp only [covariancePerturbationMultiplier, Matrix.transpose_mul, hVi, hHi, hLt] + noncomm_ring + +theorem norm_relative_inverseSandwichPerturbation_le + {V H L Δ : Matrix ι ι ℝ} (hV : V.PosDef) (hH : H.PosDef) (hL : L.IsHermitian) + (hΔ : Δ.IsHermitian) (hδ : ‖relativeCovariancePerturbation H Δ‖ < 1) : + ‖relativeCovariancePerturbation V (inverseSandwichPerturbation H L Δ)‖ ≤ + ‖covariancePerturbationMultiplier V H L‖ ^ 2 * + (‖relativeCovariancePerturbation H Δ‖ / (1 - ‖relativeCovariancePerturbation H Δ‖)) := by + let B := covariancePerturbationMultiplier V H L + let Z := relativeCovariancePerturbation H Δ + have ht : ‖Bᵀ‖ = ‖B‖ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using Matrix.l2_opNorm_conjTranspose B + rw [relative_inverseSandwichPerturbation_eq hV hH hL Δ] + calc + ‖B * matrixResolventPerturbation Z * Bᵀ‖ ≤ + ‖B‖ * ‖matrixResolventPerturbation Z‖ * ‖Bᵀ‖ := norm_mul₃_le + _ = ‖B‖ ^ 2 * ‖matrixResolventPerturbation Z‖ := by rw [ht]; ring + _ ≤ _ := mul_le_mul_of_nonneg_left + (norm_matrixResolventPerturbation_le (relativeCovariancePerturbation_isHermitian hH hΔ) hδ) + (sq_nonneg _) + +theorem matrixTraceNorm_relative_inverseSandwichPerturbation_le + {V H L Δ : Matrix ι ι ℝ} (hV : V.PosDef) (hH : H.PosDef) (hL : L.IsHermitian) + (hΔ : Δ.IsHermitian) (hδ : ‖relativeCovariancePerturbation H Δ‖ < 1) : + matrixTraceNorm (relativeCovariancePerturbation V (inverseSandwichPerturbation H L Δ)) ≤ + ‖covariancePerturbationMultiplier V H L‖ ^ 2 * + ((1 - ‖relativeCovariancePerturbation H Δ‖)⁻¹ * + matrixTraceNorm (relativeCovariancePerturbation H Δ)) := by + rw [relative_inverseSandwichPerturbation_eq hV hH hL Δ] + exact (matrixTraceNorm_sandwich_le + (matrixResolventPerturbation_isHermitian (relativeCovariancePerturbation_isHermitian hH hΔ)) + (covariancePerturbationMultiplier V H L)).trans + (mul_le_mul_of_nonneg_left + (matrixTraceNorm_matrixResolventPerturbation_le + (relativeCovariancePerturbation_isHermitian hH hΔ) hδ) (sq_nonneg _)) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CovarianceSegmentBounds.lean b/LeanPool/VacuumBellSeparation/Gaussian/CovarianceSegmentBounds.lean new file mode 100644 index 0000000000..6c87faeac8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CovarianceSegmentBounds.lean @@ -0,0 +1,167 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CovarianceResolventPerturbation + +/-! +# Relative trace norm along an actual covariance segment + +The positive segment V+tΔ has a genuine inverse square root. Its +normalized tangent is a matrix sandwich of the tangent normalized at V. +The exact Gram matrix of that transport is (I+tY)⁻¹, giving the uniform +factor 1/(1-‖Y‖) used when integrating the source purity differential. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem norm_inverse_one_sub_le_of_bound {Z : Matrix ι ι ℝ} {δ : ℝ} + (hZ : Z.IsHermitian) (hδ : δ < 1) (hbound : ‖Z‖ ≤ δ) : + ‖(1 - Z)⁻¹‖ ≤ (1 - δ)⁻¹ := by + have hz : ‖Z‖ < 1 := hbound.trans_lt hδ + have hc : ContinuousOn (fun x : ℝ => 1 - x) (spectrum ℝ Z) := + continuousOn_const.sub continuousOn_id + have hn : ∀ x ∈ spectrum ℝ Z, 1 - x ≠ 0 := + fun x hx => (spectrum_one_sub_pos hZ hz hx).ne' + have he : (1 - Z)⁻¹ = cfc (fun x : ℝ => (1 - x)⁻¹) Z := by + symm + rw [cfc_inv _ Z hn hc hZ.isSelfAdjoint, matrix_one_sub_cfc hZ, + ← Matrix.nonsing_inv_eq_ringInverse] + rw [he] + apply norm_cfc_le (inv_nonneg.mpr (sub_pos.mpr hδ).le) + intro x hx + have hb : |x| ≤ δ := by + have h := IsometricContinuousFunctionalCalculus.norm_spectrum_le Z hx hZ.isSelfAdjoint + have hxnorm : |x| ≤ ‖Z‖ := by simpa only [Real.norm_eq_abs] using h + exact hxnorm.trans hbound + have hp : 0 < 1 - x := spectrum_one_sub_pos hZ hz hx + rw [Real.norm_eq_abs, abs_inv, abs_of_pos hp] + simpa only [one_div] using one_div_le_one_div_of_le (sub_pos.mpr hδ) + (show 1 - δ ≤ 1 - x by linarith [le_abs_self x]) + +/-- Covariance segment given by `V + t • Δ`. -/ +def covarianceSegment (V Δ : Matrix ι ι ℝ) (t : ℝ) : Matrix ι ι ℝ := V + t • Δ + +/-- Covariance segment transport given by `(CFC.sqrt (covarianceSegment V Δ t))⁻¹ * CFC.sqrt V`. -/ +def covarianceSegmentTransport (V Δ : Matrix ι ι ℝ) (t : ℝ) : Matrix ι ι ℝ := + (CFC.sqrt (covarianceSegment V Δ t))⁻¹ * CFC.sqrt V + +theorem covarianceSegment_factorization {V : Matrix ι ι ℝ} (hV : V.PosDef) + (Δ : Matrix ι ι ℝ) (t : ℝ) : + covarianceSegment V Δ t = CFC.sqrt V * + (1 + t • relativeCovariancePerturbation V Δ) * CFC.sqrt V := by + have h := covariance_gap_factorization hV (-(t • Δ)) + simpa only [covarianceSegment, sub_neg_eq_add, relativeCovariancePerturbation, + Matrix.mul_neg, Matrix.neg_mul, Matrix.mul_smul, Matrix.smul_mul] using h + +theorem covarianceSegment_posDef {V Δ : Matrix ι ι ℝ} + (hV : V.PosDef) (hΔ : Δ.IsHermitian) {t : ℝ} (ht₀ : 0 ≤ t) (ht₁ : t ≤ 1) + (hδ : ‖relativeCovariancePerturbation V Δ‖ < 1) : + (covarianceSegment V Δ t).PosDef := by + have hscale : ‖relativeCovariancePerturbation V (-(t • Δ))‖ ≤ + ‖relativeCovariancePerturbation V Δ‖ := by + simp only [relativeCovariancePerturbation, Matrix.mul_neg, Matrix.neg_mul, + Matrix.mul_smul, Matrix.smul_mul, norm_neg, norm_smul, Real.norm_eq_abs, abs_of_nonneg ht₀] + exact mul_le_of_le_one_left (norm_nonneg _) ht₁ + have h := covariance_gap_posDef_of_relative_norm hV + ((hΔ.smul (IsSelfAdjoint.all t)).neg) (hscale.trans_lt hδ) + simpa only [sub_neg_eq_add, covarianceSegment] using h + +theorem covarianceSegmentTransport_gram {V Δ : Matrix ι ι ℝ} (hV : V.PosDef) + {t : ℝ} (hW : (covarianceSegment V Δ t).PosDef) : + (covarianceSegmentTransport V Δ t)ᵀ * covarianceSegmentTransport V Δ t = + (1 + t • relativeCovariancePerturbation V Δ)⁻¹ := by + let R := CFC.sqrt V + let Q := CFC.sqrt (covarianceSegment V Δ t) + have hR := matrix_sqrt_posDef hV + have hQ := matrix_sqrt_posDef hW + have hRt : Rᵀ = R := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hR.isHermitian.eq + have hQit : (Q⁻¹)ᵀ = Q⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hQ.inv.isHermitian.eq + have hRdet : IsUnit R.det := (Matrix.isUnit_iff_isUnit_det R).mp hR.isUnit + have hRiR : R⁻¹ * R = 1 := R.nonsing_inv_mul hRdet + have hRRi : R * R⁻¹ = 1 := R.mul_nonsing_inv hRdet + have hWi : (covarianceSegment V Δ t)⁻¹ = Q⁻¹ * Q⁻¹ := by + rw [← CFC.sqrt_mul_sqrt_self (covarianceSegment V Δ t) hW.posSemidef.nonneg, + Matrix.mul_inv_rev] + change (Q⁻¹ * R)ᵀ * (Q⁻¹ * R) = _ + rw [Matrix.transpose_mul, hRt, hQit] + calc + _ = R * (Q⁻¹ * Q⁻¹) * R := by noncomm_ring + _ = R * (covarianceSegment V Δ t)⁻¹ * R := by rw [hWi] + _ = (R * R⁻¹) * (1 + t • relativeCovariancePerturbation V Δ)⁻¹ * (R⁻¹ * R) := by + rw [covarianceSegment_factorization hV Δ t, Matrix.mul_inv_rev, Matrix.mul_inv_rev] + change R * (R⁻¹ * ((1 + t • relativeCovariancePerturbation V Δ)⁻¹ * R⁻¹)) * R = _ + noncomm_ring + _ = _ := by rw [hRRi, hRiR, Matrix.one_mul, Matrix.mul_one] + +theorem relativeCovariancePerturbation_segment_transport + {V Δ : Matrix ι ι ℝ} (hV : V.PosDef) {t : ℝ} + (hW : (covarianceSegment V Δ t).PosDef) : + relativeCovariancePerturbation (covarianceSegment V Δ t) Δ = + covarianceSegmentTransport V Δ t * relativeCovariancePerturbation V Δ * + (covarianceSegmentTransport V Δ t)ᵀ := by + let R := CFC.sqrt V + let Q := CFC.sqrt (covarianceSegment V Δ t) + have hR := matrix_sqrt_posDef hV + have hQ := matrix_sqrt_posDef hW + have hRt : Rᵀ = R := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hR.isHermitian.eq + have hQit : (Q⁻¹)ᵀ = Q⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hQ.inv.isHermitian.eq + have hRdet : IsUnit R.det := (Matrix.isUnit_iff_isUnit_det R).mp hR.isUnit + have hRiR : R⁻¹ * R = 1 := R.nonsing_inv_mul hRdet + have hRRi : R * R⁻¹ = 1 := R.mul_nonsing_inv hRdet + change Q⁻¹ * Δ * Q⁻¹ = (Q⁻¹ * R) * (R⁻¹ * Δ * R⁻¹) * (Q⁻¹ * R)ᵀ + rw [Matrix.transpose_mul, hRt, hQit] + calc + _ = Q⁻¹ * (R * R⁻¹) * Δ * (R⁻¹ * R) * Q⁻¹ := by + rw [hRRi, hRiR, Matrix.mul_one, Matrix.mul_one] + _ = _ := by noncomm_ring + +theorem norm_sq_covarianceSegmentTransport_le {V Δ : Matrix ι ι ℝ} + (hV : V.PosDef) (hΔ : Δ.IsHermitian) {t : ℝ} (ht₀ : 0 ≤ t) (ht₁ : t ≤ 1) + (hδ : ‖relativeCovariancePerturbation V Δ‖ < 1) : + ‖covarianceSegmentTransport V Δ t‖ ^ 2 ≤ + (1 - ‖relativeCovariancePerturbation V Δ‖)⁻¹ := by + have hW := covarianceSegment_posDef hV hΔ ht₀ ht₁ hδ + rw [pow_two, ← Matrix.l2_opNorm_conjTranspose_mul_self, + Matrix.conjTranspose_eq_transpose_of_trivial, covarianceSegmentTransport_gram hV hW] + have hZ := ((relativeCovariancePerturbation_isHermitian hV hΔ).smul + (IsSelfAdjoint.all t)).neg + have hn : ‖-(t • relativeCovariancePerturbation V Δ)‖ ≤ + ‖relativeCovariancePerturbation V Δ‖ := by + rw [norm_neg, norm_smul, Real.norm_eq_abs, abs_of_nonneg ht₀] + exact mul_le_of_le_one_left (norm_nonneg _) ht₁ + simpa only [sub_neg_eq_add] using norm_inverse_one_sub_le_of_bound hZ hδ hn + +/-- Uniform bound on the actual normalized tangent along the full segment. -/ +theorem matrixTraceNorm_relativeCovariancePerturbation_segment_le + {V Δ : Matrix ι ι ℝ} (hV : V.PosDef) (hΔ : Δ.IsHermitian) + {t : ℝ} (ht₀ : 0 ≤ t) (ht₁ : t ≤ 1) + (hδ : ‖relativeCovariancePerturbation V Δ‖ < 1) : + matrixTraceNorm (relativeCovariancePerturbation (covarianceSegment V Δ t) Δ) ≤ + (1 - ‖relativeCovariancePerturbation V Δ‖)⁻¹ * + matrixTraceNorm (relativeCovariancePerturbation V Δ) := by + rw [relativeCovariancePerturbation_segment_transport hV + (covarianceSegment_posDef hV hΔ ht₀ ht₁ hδ)] + exact (matrixTraceNorm_sandwich_le (relativeCovariancePerturbation_isHermitian hV hΔ) + (covarianceSegmentTransport V Δ t)).trans + (mul_le_mul_of_nonneg_right (norm_sq_covarianceSegmentTransport_le hV hΔ ht₀ ht₁ hδ) + (matrixTraceNorm_nonneg _)) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CrossRankOneMatrixElements.lean b/LeanPool/VacuumBellSeparation/Gaussian/CrossRankOneMatrixElements.lean new file mode 100644 index 0000000000..35c0b0a596 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CrossRankOneMatrixElements.lean @@ -0,0 +1,56 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CrossRankOneSeries +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexificationDenseExt + +/-! +# Actual cross-rank-one matrix elements on real test vectors +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open HilbertComplexification +open scoped ComplexConjugate + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] + +omit [CompleteSpace E] in +@[simp] theorem inner_complexification_ofReal (x y : E) : + inner ℂ (ofReal x) (ofReal y) = (inner ℝ x y : ℂ) := by + apply Complex.ext <;> simp [HilbertComplexification.inner_eq] + +omit [CompleteSpace E] [CompleteSpace F] in +theorem inner_crossRankOne_real_moments + (u : HilbertComplexification E) (v : HilbertComplexification F) + (x y : E) (x' y' : F) (lx ly rx ry : ℝ) + (hx : inner ℂ (ofReal x) u = (lx : ℂ)) + (hy : inner ℂ (ofReal y) u = (ly : ℂ)) + (hx' : inner ℂ (ofReal x') v = (rx : ℂ)) + (hy' : inner ℂ (ofReal y') v = (ry : ℂ)) : + inner ℂ (WithLp.toLp 2 (ofReal x, ofReal x')) + (crossRankOne u v (WithLp.toLp 2 (ofReal y, ofReal y'))) = + ((lx * ry + rx * ly : ℝ) : ℂ) := by + have huv : inner ℂ u (ofReal y) = (ly : ℂ) := by + rw [← inner_conj_symm, hy] + simp + have hvv : inner ℂ v (ofReal y') = (ry : ℂ) := by + rw [← inner_conj_symm, hy'] + simp + rw [crossRankOne_apply, WithLp.prod_inner_apply] + change inner ℂ (ofReal x) (inner ℂ v (ofReal y') • u) + + inner ℂ (ofReal x') (inner ℂ u (ofReal y) • v) = _ + rw [inner_smul_right, inner_smul_right, hx, hx', huv, hvv] + simp only [Complex.ofReal_add, Complex.ofReal_mul] + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CrossRankOneSeries.lean b/LeanPool/VacuumBellSeparation/Gaussian/CrossRankOneSeries.lean new file mode 100644 index 0000000000..8c5dfdc954 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CrossRankOneSeries.lean @@ -0,0 +1,122 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SymmetricRankOneTrace +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertProductFunctionalCalculus + +/-! +# Cross-kernel series on the actual regional Hilbert product + +Each term is a rank-one cross map and its adjoint. Orthogonality of the +two factors gives the operator-norm bound without a factor two; the +genuine nuclear bound has the factor two required by the manuscript. +Actual block reserves reconstruct the unweighted vectors term by term. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap InnerProductSpace +open scoped ENNReal + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + {ι : Type*} + +/-- Continuous linear map for the cross rank one, of type `WithLp 2 (E × F) →L[ℂ] WithLp 2 (E × +F)`. -/ +def crossRankOne (u : E) (v : F) : WithLp 2 (E × F) →L[ℂ] WithLp 2 (E × F) := + symmetricRankOne (WithLp.toLp 2 (u, (0 : F))) (WithLp.toLp 2 ((0 : E), v)) + +omit [InnerProductSpace ℂ E] [CompleteSpace E] [InnerProductSpace ℂ F] [CompleteSpace F] in +theorem norm_hilbertProduct_left (u : E) : ‖WithLp.toLp 2 (u, (0 : F))‖ = ‖u‖ := by + apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp + rw [WithLp.prod_norm_sq_eq_of_L2] + simp + +omit [InnerProductSpace ℂ E] [CompleteSpace E] [InnerProductSpace ℂ F] [CompleteSpace F] in +theorem norm_hilbertProduct_right (v : F) : ‖WithLp.toLp 2 ((0 : E), v)‖ = ‖v‖ := by + apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp + rw [WithLp.prod_norm_sq_eq_of_L2] + simp + +omit [CompleteSpace E] [CompleteSpace F] in +@[simp] theorem crossRankOne_apply (u : E) (v : F) (z : WithLp 2 (E × F)) : + crossRankOne u v z = WithLp.toLp 2 (inner ℂ v z.snd • u, inner ℂ u z.fst • v) := by + apply WithLp.ofLp_injective 2 + simp [crossRankOne, symmetricRankOne, rankOne_apply, WithLp.prod_inner_apply] + +omit [CompleteSpace E] [CompleteSpace F] in +theorem norm_crossRankOne_le (u : E) (v : F) : ‖crossRankOne u v‖ ≤ ‖u‖ * ‖v‖ := by + apply ContinuousLinearMap.opNorm_le_bound _ (mul_nonneg (norm_nonneg _) (norm_nonneg _)) + intro z + apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (mul_nonneg (norm_nonneg _) (norm_nonneg _)) + (norm_nonneg _))).mp + rw [crossRankOne_apply, WithLp.prod_norm_sq_eq_of_L2, mul_pow, + WithLp.prod_norm_sq_eq_of_L2] + change ‖inner ℂ v z.snd • u‖ ^ 2 + ‖inner ℂ u z.fst • v‖ ^ 2 ≤ + (‖u‖ * ‖v‖) ^ 2 * (‖z.fst‖ ^ 2 + ‖z.snd‖ ^ 2) + have hu := norm_inner_le_norm (𝕜 := ℂ) u z.fst + have hv := norm_inner_le_norm (𝕜 := ℂ) v z.snd + rw [norm_smul, norm_smul] + calc + _ ≤ (‖v‖ * ‖z.snd‖ * ‖u‖) ^ 2 + (‖u‖ * ‖z.fst‖ * ‖v‖) ^ 2 := by gcongr + _ = _ := by ring + +omit [CompleteSpace E] [CompleteSpace F] in +theorem crossRankOne_isCompactOperator (u : E) (v : F) : IsCompactOperator (crossRankOne u v) := + symmetricRankOne_isCompactOperator _ _ + +theorem crossRankOne_isSelfAdjoint (u : E) (v : F) : IsSelfAdjoint (crossRankOne u v) := + symmetricRankOne_isSelfAdjoint _ _ + +theorem operatorTraceNorm_crossRankOne_le (u : E) (v : F) : + operatorTraceNorm (crossRankOne u v) ≤ ENNReal.ofReal (2 * (‖u‖ * ‖v‖)) := by + simpa only [crossRankOne, norm_hilbertProduct_left, norm_hilbertProduct_right] using + operatorTraceNorm_symmetricRankOne_le + (WithLp.toLp 2 (u, (0 : F))) (WithLp.toLp 2 ((0 : E), v)) + +omit [CompleteSpace E] [CompleteSpace F] in +theorem summable_norm_crossRankOne {u : ι → E} {v : ι → F} + (hs : Summable fun i => ‖u i‖ * ‖v i‖) : Summable fun i => ‖crossRankOne (u i) (v i)‖ := + Summable.of_nonneg_of_le (fun _i => norm_nonneg _) (fun _i => norm_crossRankOne_le _ _) hs + +omit [CompleteSpace E] [CompleteSpace F] in +theorem norm_crossRankOne_tsum_le {u : ι → E} {v : ι → F} + (hs : Summable fun i => ‖u i‖ * ‖v i‖) : + ‖∑' i, crossRankOne (u i) (v i)‖ ≤ ∑' i, ‖u i‖ * ‖v i‖ := by + have hn := summable_norm_crossRankOne hs + exact (norm_tsum_le_tsum_norm hn).trans (hn.tsum_le_tsum (fun i => norm_crossRankOne_le _ _) hs) + +theorem operatorTraceNorm_crossRankOne_tsum_le {u : ι → E} {v : ι → F} + (hs : Summable fun i => ‖u i‖ * ‖v i‖) : + operatorTraceNorm (∑' i, crossRankOne (u i) (v i)) ≤ + ENNReal.ofReal (2 * ∑' i, ‖u i‖ * ‖v i‖) := by + have hs' : Summable fun i => + ‖WithLp.toLp 2 (u i, (0 : F))‖ * ‖WithLp.toLp 2 ((0 : E), v i)‖ := by + simpa only [norm_hilbertProduct_left, norm_hilbertProduct_right] using hs + simpa only [crossRankOne, norm_hilbertProduct_left, norm_hilbertProduct_right] using + operatorTraceNorm_symmetricRankOne_tsum_le hs' + +theorem crossRankOne_block_factorization {R : E →L[ℂ] E} {S : F →L[ℂ] F} + (hR : IsSelfAdjoint R) (hS : IsSelfAdjoint S) (u : E) (v : F) : + complexHilbertProductOperator R S * crossRankOne u v * complexHilbertProductOperator R S = + crossRankOne (R u) (S v) := by + ext z + simp only [mul_apply_eq_comp, crossRankOne_apply, complexHilbertProductOperator_apply] + apply WithLp.ofLp_injective 2 + change (R (inner ℂ v (S z.snd) • u), S (inner ℂ u (R z.fst) • v)) = + (inner ℂ (S v) z.snd • R u, inner ℂ (R u) z.fst • S v) + rw [map_smul, map_smul, ← S.adjoint_inner_left, ← R.adjoint_inner_left, + hS.adjoint_eq, hR.adjoint_eq] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/CrossSeriesSummability.lean b/LeanPool/VacuumBellSeparation/Gaussian/CrossSeriesSummability.lean new file mode 100644 index 0000000000..8bb9138635 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/CrossSeriesSummability.lean @@ -0,0 +1,47 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CrossRankOneSeries + +/-! +# Summability preserved by bounded regional maps and matrix elements +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +variable {E F G H ι : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] + [NormedAddCommGroup G] [InnerProductSpace ℂ G] + [NormedAddCommGroup H] [InnerProductSpace ℂ H] + +theorem summable_norm_product_map {u : ι → E} {v : ι → F} + (hs : Summable fun i => ‖u i‖ * ‖v i‖) (R : E →L[ℂ] G) (S : F →L[ℂ] H) : + Summable fun i => ‖R (u i)‖ * ‖S (v i)‖ := by + apply Summable.of_nonneg_of_le (fun i => mul_nonneg (norm_nonneg _) (norm_nonneg _)) + (f := fun i => (‖R‖ * ‖S‖) * (‖u i‖ * ‖v i‖)) _ (hs.mul_left _) + intro i + calc + _ ≤ (‖R‖ * ‖u i‖) * (‖S‖ * ‖v i‖) := + mul_le_mul (R.le_opNorm _) (S.le_opNorm _) (norm_nonneg _) (by positivity) + _ = _ := by ring + +theorem summable_inner_product {u : ι → E} {v : ι → F} + (hs : Summable fun i => ‖u i‖ * ‖v i‖) (x : E) (y : F) : + Summable fun i => inner ℂ x (u i) * inner ℂ (v i) y := by + apply Summable.of_norm_bounded (hs.mul_left (‖x‖ * ‖y‖)) + intro i + rw [norm_mul] + calc + _ ≤ (‖x‖ * ‖u i‖) * (‖v i‖ * ‖y‖) := + mul_le_mul (norm_inner_le_norm _ _) (norm_inner_le_norm _ _) (norm_nonneg _) (by positivity) + _ = _ := by ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DecorrelatedCovariance.lean b/LeanPool/VacuumBellSeparation/Gaussian/DecorrelatedCovariance.lean new file mode 100644 index 0000000000..afd2e1b711 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DecorrelatedCovariance.lean @@ -0,0 +1,153 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumRealCovariance + +/-! +# Actual covariance decorrelation by complementary label projections + +The reference covariance is Pᵀ V P + Qᵀ V Q. Complementarity P+Q=I +preserves strict positivity of the sum of congruences; orthogonality in +the Euclidean norm is unnecessary. Vanishing symplectic cross blocks +preserves the literal strict quantum uncertainty matrix. Idempotence is +used only for the regional restrictions and zero covariance cross block. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem posDef_sum_complementary_congruences {𝕜 : Type*} + [CommRing 𝕜] [PartialOrder 𝕜] [StarRing 𝕜] [StarOrderedRing 𝕜] + {M P Q : Matrix ι ι 𝕜} (hM : M.PosDef) (hPQ : P + Q = 1) : + (Pᴴ * M * P + Qᴴ * M * Q).PosDef := by + apply Matrix.posDef_iff_dotProduct_mulVec.mpr + refine ⟨(hM.posSemidef.conjTranspose_mul_mul_same P).isHermitian.add + (hM.posSemidef.conjTranspose_mul_mul_same Q).isHermitian, ?_⟩ + intro x hx + have hsplit : P *ᵥ x + Q *ᵥ x = x := by + rw [← Matrix.add_mulVec, hPQ, Matrix.one_mulVec] + have hform : star x ⬝ᵥ ((Pᴴ * M * P + Qᴴ * M * Q) *ᵥ x) = + star (P *ᵥ x) ⬝ᵥ (M *ᵥ (P *ᵥ x)) + + star (Q *ᵥ x) ⬝ᵥ (M *ᵥ (Q *ᵥ x)) := by + simp only [Matrix.add_mulVec, dotProduct_add, Matrix.star_mulVec, + Matrix.dotProduct_mulVec, Matrix.vecMul_vecMul] + rw [hform] + by_cases hPx : P *ᵥ x = 0 + · have hQx : Q *ᵥ x ≠ 0 := by + intro hQx + apply hx + simpa only [hPx, hQx, add_zero] using hsplit.symm + simpa only [hPx, star_zero, zero_dotProduct, zero_add] using hM.dotProduct_mulVec_pos hQx + · exact add_pos_of_pos_of_nonneg (hM.dotProduct_mulVec_pos hPx) + (hM.posSemidef.dotProduct_mulVec_nonneg _) + +/-- Decorrelated covariance given by `Pᵀ * V * P + Qᵀ * V * Q`. -/ +def decorrelatedCovariance (V P Q : Matrix ι ι ℝ) : Matrix ι ι ℝ := + Pᵀ * V * P + Qᵀ * V * Q + +theorem decorrelatedCovariance_posDef {V P Q : Matrix ι ι ℝ} + (hV : V.PosDef) (hPQ : P + Q = 1) : (decorrelatedCovariance V P Q).PosDef := by + simpa only [decorrelatedCovariance, Matrix.conjTranspose_eq_transpose_of_trivial] using + posDef_sum_complementary_congruences hV hPQ + +theorem complementary_symplectic_diagonal {Ω P Q : Matrix ι ι ℝ} + (hPQ : P + Q = 1) (hcross : Pᵀ * Ω * Q = 0) (hcross' : Qᵀ * Ω * P = 0) : + Pᵀ * Ω * P + Qᵀ * Ω * Q = Ω := by + have h := congrArg (fun T : Matrix ι ι ℝ => Tᵀ * Ω * T) hPQ + simp only [Matrix.transpose_add, Matrix.mul_add, Matrix.add_mul, + Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one, hcross, hcross', + add_zero, zero_add] at h + exact h + +theorem quantumCovariance_decorrelated {V Ω P Q : Matrix ι ι ℝ} + (hPQ : P + Q = 1) (hcross : Pᵀ * Ω * Q = 0) (hcross' : Qᵀ * Ω * P = 0) : + quantumCovariance (decorrelatedCovariance V P Q) Ω = + (complexifyMatrix P)ᴴ * quantumCovariance V Ω * complexifyMatrix P + + (complexifyMatrix Q)ᴴ * quantumCovariance V Ω * complexifyMatrix Q := by + have hΩ := complementary_symplectic_diagonal hPQ hcross hcross' + calc + quantumCovariance (decorrelatedCovariance V P Q) Ω = + quantumCovariance (Pᵀ * V * P) (Pᵀ * Ω * P) + + quantumCovariance (Qᵀ * V * Q) (Qᵀ * Ω * Q) := by + nth_rw 1 [← hΩ] + simp only [quantumCovariance, decorrelatedCovariance, complexifyMatrix, + Matrix.map_add (algebraMap ℝ ℂ) (map_add (algebraMap ℝ ℂ)), smul_add] + abel + _ = _ := by + have hP := quantumCovariance_congruence V Ω Pᵀ + have hQ := quantumCovariance_congruence V Ω Qᵀ + simpa only [Matrix.transpose_transpose, complexifyMatrix_transpose, + Matrix.conjTranspose_conjTranspose] using congrArg₂ (· + ·) hP hQ + +theorem quantumCovariance_decorrelated_posDef {V Ω P Q : Matrix ι ι ℝ} + (hV : (quantumCovariance V Ω).PosDef) (hPQ : P + Q = 1) + (hcross : Pᵀ * Ω * Q = 0) (hcross' : Qᵀ * Ω * P = 0) : + (quantumCovariance (decorrelatedCovariance V P Q) Ω).PosDef := by + rw [quantumCovariance_decorrelated hPQ hcross hcross'] + apply posDef_sum_complementary_congruences hV + have h := congrArg complexifyMatrix hPQ + simpa only [complexifyMatrix, + Matrix.map_add (algebraMap ℝ ℂ) (map_add (algebraMap ℝ ℂ)), + Matrix.map_one (algebraMap ℝ ℂ) (map_zero _) (map_one _)] using h + +theorem complementary_projection_cross {P Q : Matrix ι ι ℝ} + (hP : P * P = P) (hPQ : P + Q = 1) : P * Q = 0 ∧ Q * P = 0 := by + constructor + · calc + P * Q = P * (P + Q) - P * P := by noncomm_ring + _ = 0 := by rw [hPQ, Matrix.mul_one, hP, sub_self] + · calc + Q * P = (P + Q) * P - P * P := by noncomm_ring + _ = 0 := by rw [hPQ, Matrix.one_mul, hP, sub_self] + +theorem complementary_projection_right_idempotent {P Q : Matrix ι ι ℝ} + (hP : P * P = P) (hPQ : P + Q = 1) : Q * Q = Q := by + have hcross := (complementary_projection_cross hP hPQ).2 + calc + Q * Q = Q * (P + Q) - Q * P := by noncomm_ring + _ = Q := by rw [hPQ, Matrix.mul_one, hcross, sub_zero] + +theorem decorrelatedCovariance_left_restriction (V : Matrix ι ι ℝ) + {P Q : Matrix ι ι ℝ} (hP : P * P = P) (hPQ : P + Q = 1) : + Pᵀ * decorrelatedCovariance V P Q * P = Pᵀ * V * P := by + have hcross := (complementary_projection_cross hP hPQ).2 + calc + _ = (P * P)ᵀ * V * (P * P) + (Q * P)ᵀ * V * (Q * P) := by + unfold decorrelatedCovariance + simp only [Matrix.transpose_mul] + noncomm_ring + _ = _ := by rw [hP, hcross]; simp + +theorem decorrelatedCovariance_right_restriction (V : Matrix ι ι ℝ) + {P Q : Matrix ι ι ℝ} (hP : P * P = P) (hPQ : P + Q = 1) : + Qᵀ * decorrelatedCovariance V P Q * Q = Qᵀ * V * Q := by + have hQ := complementary_projection_right_idempotent hP hPQ + have h := decorrelatedCovariance_left_restriction V (P := Q) (Q := P) hQ + ((add_comm Q P).trans hPQ) + simpa only [decorrelatedCovariance, add_comm] using h + +theorem decorrelatedCovariance_cross (V : Matrix ι ι ℝ) + {P Q : Matrix ι ι ℝ} (hP : P * P = P) (hPQ : P + Q = 1) : + Pᵀ * decorrelatedCovariance V P Q * Q = 0 := by + have hcross := complementary_projection_cross hP hPQ + calc + _ = (P * P)ᵀ * V * (P * Q) + (Q * P)ᵀ * V * (Q * Q) := by + unfold decorrelatedCovariance + simp only [Matrix.transpose_mul] + noncomm_ring + _ = 0 := by rw [hcross.1, hcross.2]; simp + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityBargmannInversion.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityBargmannInversion.lean new file mode 100644 index 0000000000..8dd42b048a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityBargmannInversion.lean @@ -0,0 +1,194 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityOffDiagonalInversion +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeInverseBargmann + +/-! +# Actual Bargmann inversion from the complex Weyl characteristic + +A genuine Lebesgue translation of mixed coherent inversion gives the +independent-label exponential-vector kernel. Its Gaussian weight has an +arbitrary holomorphic/antiholomorphic linear part and is integrable. +This supplies off-diagonal information directly, without assuming an +entire-kernel polarization theorem. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory ContinuousLinearMap +open scoped ComplexConjugate + +theorem densityExpectation_smul {ι E : Type*} [NormedAddCommGroup E] + [InnerProductSpace ℂ E] [CompleteSpace E] (b : HilbertBasis ι ℂ E) + (A B : E →L[ℂ] E) (c : ℂ) : + densityExpectation b A (c • B) = c * densityExpectation b A B := by + simp only [densityExpectation, familyExpectation, smul_apply, inner_smul_right, tsum_mul_left] + +/-- Bargmann inversion weight given by `Complex.exp (((-‖z‖ ^ 2 / 2 : ℝ) : ℂ) + inner ℂ z b - inner +ℂ a z)`. -/ +def bargmannInversionWeight {m : ℕ} (a b z : MultiModePhaseSpace m) : ℂ := + Complex.exp (((-‖z‖ ^ 2 / 2 : ℝ) : ℂ) + inner ℂ z b - inner ℂ a z) + +theorem bargmannInversionWeight_product {m : ℕ} (a b : MultiModePhaseSpace m) + (z : Fin m → ℂ) : + bargmannInversionWeight a b (WithLp.toLp 2 z) = + ∏ j, Complex.exp (((-(1 / 2) * ‖z j‖ ^ 2 : ℝ) : ℂ) + + (-conj (a j)) * z j + b j * conj (z j)) := by + rw [bargmannInversionWeight, ← Complex.exp_sum] + congr 1 + simp only [EuclideanSpace.norm_sq_eq, PiLp.inner_apply, + RCLike.inner_apply', Complex.ofReal_div, Complex.ofReal_neg, Complex.ofReal_sum, + Complex.ofReal_mul, Complex.ofReal_one, Complex.ofReal_ofNat, + Finset.sum_add_distrib, Finset.sum_neg_distrib, neg_mul] + have hc : (∑ j, conj (z j) * b j) = ∑ j, b j * conj (z j) := by + apply Finset.sum_congr rfl + intro j _ + ring + rw [hc] + simp only [← Finset.mul_sum] + ring + +theorem integrable_bargmannInversionWeight {m : ℕ} (a b : MultiModePhaseSpace m) : + Integrable (fun z : Fin m → ℂ => bargmannInversionWeight a b (WithLp.toLp 2 z)) := by + simp_rw [bargmannInversionWeight_product] + exact integrable_multiComplexGaussianBilinear (s := fun _ : Fin m => 1 / 2) + (fun _ => by norm_num) (fun j => -conj (a j)) (fun j => b j) + +theorem mixedDisplacement_shift {m : ℕ} (b a z : MultiModePhaseSpace m) : + mixedDisplacement b a (z + a - b) = + (weylPhase id b (z + a - b) * weylPhase id (z + a) (-a)) • multiOscillatorWeyl z := by + rw [mixedDisplacement, multiOscillatorWeyl_adjoint, multiOscillatorWeyl_mul, + smul_mul_assoc, multiOscillatorWeyl_mul, smul_smul, + show b + (z + a - b) = z + a by abel, + show z + a + -a = z by abel] + +theorem shiftedMixedWeyl_weight {m : ℕ} (a b z : MultiModePhaseSpace m) : + weylVacuumWeight m (fun j => (z + a - b) j) * + (weylPhase id b (z + a - b) * weylPhase id (z + a) (-a)) = + Complex.exp (((-(‖a‖ ^ 2 + ‖b‖ ^ 2) / 2 : ℝ) : ℂ) + inner ℂ a b) * + bargmannInversionWeight a b z := by + rw [weylVacuumWeight, weylPhase, weylPhase, bargmannInversionWeight] + have hz : (WithLp.toLp 2 (fun j => (z + a - b) j) : MultiModePhaseSpace m) = z + a - b := rfl + rw [hz] + simp only [id_eq, ← Complex.exp_add] + congr 1 + rw [norm_sub_sq (𝕜 := ℂ) (z + a) b, norm_add_sq (𝕜 := ℂ) z a] + simp only [inner_sub_right, inner_add_left, inner_add_right, inner_neg_right, + Complex.sub_im, Complex.add_im, Complex.neg_im, + Complex.add_re, RCLike.re_to_complex] + have hr : (inner ℂ a z).re = (inner ℂ z a).re := inner_re_symm (𝕜 := ℂ) a z + have hi₁ : (inner ℂ b z).im = -(inner ℂ z b).im := inner_im_symm (𝕜 := ℂ) b z + have hi₂ : (inner ℂ b a).im = -(inner ℂ a b).im := inner_im_symm (𝕜 := ℂ) b a + have hi₃ : (inner ℂ a z).im = -(inner ℂ z a).im := inner_im_symm (𝕜 := ℂ) a z + have hia : (inner ℂ a a).im = 0 := inner_self_im (𝕜 := ℂ) a + have hib : (inner ℂ b b).im = 0 := inner_self_im (𝕜 := ℂ) b + apply Complex.ext <;> + simp only [Complex.add_re, Complex.add_im, Complex.sub_re, Complex.sub_im, + Complex.neg_re, Complex.neg_im, Complex.mul_re, Complex.mul_im, + Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, + hr, hi₁, hi₂, hi₃, hia, hib] <;> ring + +theorem multiCoherent_density_kernel {m : ℕ} + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (a b : MultiModePhaseSpace m) : + inner ℂ (multiCoherentVector a) (A (multiCoherentVector b)) = + Complex.exp ((-(‖a‖ ^ 2 + ‖b‖ ^ 2) / 2 : ℝ) : ℂ) * + multiBargmannKernel A (fun j => a j) (fun j => b j) := by + rw [multiCoherentVector, multiCoherentVector, map_smul, inner_smul_left, inner_smul_right] + simp only [← Complex.exp_conj, Complex.conj_ofReal] + rw [← mul_assoc, ← Complex.exp_add] + congr 1 + congr 1 + push_cast + ring + +theorem integrable_densityBargmannInversion {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (a b : MultiModePhaseSpace m) : + Integrable (fun z : Fin m → ℂ => bargmannInversionWeight a b (WithLp.toLp 2 z) * + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl (WithLp.toLp 2 z))) := by + have hc : Continuous (fun z : Fin m → ℂ => + densityExpectation (multiModeNumberBasis m) A + (multiOscillatorWeyl (WithLp.toLp 2 z))) := by + change Continuous ((fun w : MultiModePhaseSpace m => + familyExpectation (fun k => CFC.sqrt A (multiModeNumberBasis m k)) + (multiOscillatorWeyl w)) ∘ + (WithLp.toLp 2 : (Fin m → ℂ) → MultiModePhaseSpace m)) + exact (continuous_familyExpectation_weyl + (fun k => CFC.sqrt A (multiModeNumberBasis m k)) + (summable_sqrt_basis_norm_sq (multiModeNumberBasis m) hA)).comp + (PiLp.continuous_toLp 2 (fun _ : Fin m => ℂ)) + have hw : Continuous (fun z : Fin m → ℂ => bargmannInversionWeight a b (WithLp.toLp 2 z)) := by + unfold bargmannInversionWeight + fun_prop + have hi : Continuous (fun z : Fin m → ℂ => + bargmannInversionWeight a b (WithLp.toLp 2 z) * + densityExpectation (multiModeNumberBasis m) A + (multiOscillatorWeyl (WithLp.toLp 2 z))) := hw.mul hc + apply ((integrable_bargmannInversionWeight a b).norm.mul_const + (∑' k, ‖CFC.sqrt A (multiModeNumberBasis m k)‖ ^ 2)).mono' hi.aestronglyMeasurable + exact Filter.Eventually.of_forall fun z => by + change ‖bargmannInversionWeight a b (WithLp.toLp 2 z) * + densityExpectation (multiModeNumberBasis m) A + (multiOscillatorWeyl (WithLp.toLp 2 z))‖ ≤ _ + rw [norm_mul] + exact mul_le_mul_of_nonneg_left (norm_familyExpectation_weyl_le _ + (summable_sqrt_basis_norm_sq (multiModeNumberBasis m) hA) _) (norm_nonneg _) + +/-- The actual independent-label Bargmann kernel recovered from the +actual complex Weyl characteristic by a genuinely integrable formula. -/ +theorem integral_densityBargmannInversion {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (a b : MultiModePhaseSpace m) : + Complex.exp (inner ℂ a b) * + (∫ z : Fin m → ℂ, bargmannInversionWeight a b (WithLp.toLp 2 z) * + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl (WithLp.toLp 2 z))) = + (Real.pi : ℂ) ^ m * multiBargmannKernel A (fun j => a j) (fun j => b j) := by + let f (z : Fin m → ℂ) := weylVacuumWeight m z * + densityExpectation (multiModeNumberBasis m) A (mixedDisplacement b a (WithLp.toLp 2 z)) + have h := integral_densityMixedWeyl hA b a + change (∫ z : Fin m → ℂ, f z) = _ at h + rw [← integral_add_right_eq_self f (fun j => a j - b j)] at h + have he (z : Fin m → ℂ) : f (z + fun j => a j - b j) = + Complex.exp (((-(‖a‖ ^ 2 + ‖b‖ ^ 2) / 2 : ℝ) : ℂ) + inner ℂ a b) * + (bargmannInversionWeight a b (WithLp.toLp 2 z) * + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl + (WithLp.toLp 2 z))) := by + have hz : (WithLp.toLp 2 (z + fun j => a j - b j) : MultiModePhaseSpace m) = + WithLp.toLp 2 z + a - b := by + ext j + simp only [PiLp.add_apply, PiLp.sub_apply, Pi.add_apply] + ring + dsimp only [f] + rw [hz, mixedDisplacement_shift, densityExpectation_smul] + have hz' : z + (fun j => a j - b j) = fun j => (WithLp.toLp 2 z + a - b) j := by + ext j + simp only [Pi.add_apply, PiLp.add_apply, PiLp.sub_apply] + ring + rw [hz', ← mul_assoc, shiftedMixedWeyl_weight] + ring + simp_rw [he] at h + rw [integral_const_mul, multiCoherent_density_kernel, Complex.exp_add] at h + have hn : Complex.exp ((-(‖a‖ ^ 2 + ‖b‖ ^ 2) / 2 : ℝ) : ℂ) ≠ 0 := Complex.exp_ne_zero _ + apply mul_left_cancel₀ hn + exact (by + calc + _ = (Complex.exp ((-(‖a‖ ^ 2 + ‖b‖ ^ 2) / 2 : ℝ) : ℂ) * + Complex.exp (inner ℂ a b)) * + (∫ z : Fin m → ℂ, bargmannInversionWeight a b (WithLp.toLp 2 z) * + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl + (WithLp.toLp 2 z))) := by ring + _ = _ := h + _ = _ := by ring) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityCharacteristicUniqueness.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityCharacteristicUniqueness.lean new file mode 100644 index 0000000000..466bc6540c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityCharacteristicUniqueness.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianBargmannKernel + +/-! +# Actual density operators are determined by their Weyl characteristic + +The proved integrable Bargmann inversion and the dense span of the actual +exponential vectors separate bounded positive trace-class operators. +Consequently the physical Gaussian characteristic determines at most one +density in this fixed oscillator representation. No equivalence between +different CCR representations or symplectic implementer is assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Matrix +open scoped ComplexConjugate + +theorem continuousLinearMap_eq_of_multiBargmannKernel {m : ℕ} + {A B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (h : ∀ z w : Fin m → ℂ, multiBargmannKernel A z w = multiBargmannKernel B z w) : + A = B := by + apply continuousLinearMap_eq_of_dense_span (multiExponentialVector (m := m)) + (multiExponentialVector_dense_span m) + intro w + apply (innerSL_inj (𝕜 := ℂ)).mp + apply continuousLinearMap_eq_of_dense_span (multiExponentialVector (m := m)) + (multiExponentialVector_dense_span m) + intro z + simpa only [multiBargmannKernel, innerSL_apply_apply, inner_conj_symm] using + congrArg conj (h z w) + +/-- Weyl characteristic uniqueness for actual positive trace-class +operators in the fixed full multi-mode oscillator space. -/ +theorem positiveTraceClass_eq_of_weyl_characteristic {m : ℕ} + {A B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (hB : IsPositiveTraceClass B) + (h : ∀ z : Fin m → ℂ, + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl (WithLp.toLp 2 z)) = + densityExpectation (multiModeNumberBasis m) B (multiOscillatorWeyl (WithLp.toLp 2 z))) : + A = B := by + apply continuousLinearMap_eq_of_multiBargmannKernel + intro z w + have hAi := integral_densityBargmannInversion hA (WithLp.toLp 2 z) (WithLp.toLp 2 w) + have hBi := integral_densityBargmannInversion hB (WithLp.toLp 2 z) (WithLp.toLp 2 w) + simp_rw [h] at hAi + have hp : (Real.pi : ℂ) ^ m ≠ 0 := + pow_ne_zero _ (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero) + exact mul_left_cancel₀ hp (hAi.symm.trans hBi) + +theorem gaussianDisplacement_density_unique {m : ℕ} + {A B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (hB : IsPositiveTraceClass B) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hGA : HasGaussianDisplacementCharacteristic A V) + (hGB : HasGaussianDisplacementCharacteristic B V) : A = B := by + apply positiveTraceClass_eq_of_weyl_characteristic hA hB + intro z + exact (hGA z).trans (hGB z).symm + +theorem gaussianPhysical_density_unique {m : ℕ} + {A B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (hB : IsPositiveTraceClass B) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hGA : HasGaussianPhysicalCharacteristic A V) + (hGB : HasGaussianPhysicalCharacteristic B V) : A = B := + gaussianDisplacement_density_unique hA hB hGA hGB + +theorem gaussianDisplacement_positiveTrace_eq_one {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianDisplacementCharacteristic A V) : positiveTrace A = 1 := by + have hz : complexRealCoordinates m (0 : Fin m → ℂ) = 0 := by + ext ⟨j, k⟩ + fin_cases k <;> simp + have h := hG 0 + rw [hz, Matrix.mulVec_zero, dotProduct_zero, neg_zero, Complex.ofReal_zero, + Complex.exp_zero, WithLp.toLp_zero, multiOscillatorWeyl_zero, + densityExpectation_one (multiModeNumberBasis m) hA] at h + exact (ENNReal.toReal_eq_one_iff _).mp (Complex.ofReal_injective (by simpa using h)) + +theorem gaussianPhysical_positiveTrace_eq_one {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) : positiveTrace A = 1 := + gaussianDisplacement_positiveTrace_eq_one hA hG + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityCoherentFourier.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityCoherentFourier.lean new file mode 100644 index 0000000000..11318183f9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityCoherentFourier.lean @@ -0,0 +1,145 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentFrameFourier +public import LeanPool.VacuumBellSeparation.Gaussian.DensityWeylInversion + +/-! +# The actual Husimi density recovers the actual Weyl characteristic + +The square-root number-basis family has summable squared norms. Its +coherent-frame matrix elements have exactly those integral norms, so the +series/integral exchange is absolute. The result applies to every actual +positive trace-class operator and uses its complex density expectation. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory ContinuousLinearMap InnerProductSpace +open scoped ComplexConjugate ComplexOrder + +theorem coherentFrame_self_eq_rankOne {m : ℕ} (x : MultiModeOscillatorSpace m) + (w : Fin m → ℂ) : + inner ℂ (multiCoherentFrameCoordinate x w) (multiCoherentFrameCoordinate x w) = + ((Real.pi : ℂ) ^ m)⁻¹ * inner ℂ x + (rankOne ℂ (multiCoherentVector (WithLp.toLp 2 w)) + (multiCoherentVector (WithLp.toLp 2 w)) x) := by + simp only [multiCoherentFrameCoordinate, RCLike.inner_apply', map_mul, + inner_conj_symm, rankOne_apply, inner_smul_right] + have h := coherentFrame_normalization_sq m + calc + _ = (conj (((Real.sqrt Real.pi : ℂ) ^ m)⁻¹) * + ((Real.sqrt Real.pi : ℂ) ^ m)⁻¹) * + (inner ℂ (multiCoherentVector (WithLp.toLp 2 w)) x * + inner ℂ x (multiCoherentVector (WithLp.toLp 2 w))) := by ring + _ = _ := by rw [h] + +theorem multiCoherentPositiveDiagonal_complex {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : 0 ≤ A) (w : Fin m → ℂ) : + (multiCoherentPositiveDiagonal A w : ℂ) = + ((Real.pi : ℂ) ^ m)⁻¹ * inner ℂ (multiCoherentVector (WithLp.toLp 2 w)) + (A (multiCoherentVector (WithLp.toLp 2 w))) := by + have hi := (Complex.nonneg_iff.mp + ((nonneg_iff_isPositive.mp hA).inner_nonneg_right + (multiCoherentVector (WithLp.toLp 2 w)))).2 + have hr : (((inner ℂ (multiCoherentVector (WithLp.toLp 2 w)) + (A (multiCoherentVector (WithLp.toLp 2 w)))).re : ℝ) : ℂ) = + inner ℂ (multiCoherentVector (WithLp.toLp 2 w)) + (A (multiCoherentVector (WithLp.toLp 2 w))) := by + apply Complex.ext + · rfl + · exact hi + simp only [multiCoherentPositiveDiagonal, Complex.ofReal_mul, + Complex.ofReal_inv, Complex.ofReal_pow, hr] + +theorem continuous_multiCoherentPositiveDiagonal {m : ℕ} + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) : + Continuous (multiCoherentPositiveDiagonal A) := by + have hc := (continuous_multiCoherentVector m).comp (PiLp.continuous_toLp 2 _) + unfold multiCoherentPositiveDiagonal + exact continuous_const.mul + (Complex.continuous_re.comp (hc.inner (𝕜 := ℂ) (A.continuous.comp hc))) + +theorem integrable_multiCoherentPositiveDiagonal {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) : Integrable (multiCoherentPositiveDiagonal A) := by + refine ⟨(continuous_multiCoherentPositiveDiagonal A).aestronglyMeasurable, ?_⟩ + rw [hasFiniteIntegral_iff_ofReal + (Filter.Eventually.of_forall fun w => multiCoherentPositiveDiagonal_nonneg hA.1 w), + ← positiveTrace_eq_lintegral_multiCoherentDiagonal hA.1] + exact hA.2 + +theorem hasSum_sqrt_coherentFrame_self {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (w : Fin m → ℂ) : + HasSum (fun k => inner ℂ + (multiCoherentFrameCoordinate (CFC.sqrt A (multiModeNumberBasis m k)) w) + (multiCoherentFrameCoordinate (CFC.sqrt A (multiModeNumberBasis m k)) w)) + (multiCoherentPositiveDiagonal A w : ℂ) := by + have h := (summable_familyExpectation_terms + (fun k => CFC.sqrt A (multiModeNumberBasis m k)) + (summable_sqrt_basis_norm_sq (multiModeNumberBasis m) hA) + (rankOne ℂ (multiCoherentVector (WithLp.toLp 2 w)) + (multiCoherentVector (WithLp.toLp 2 w)))).hasSum.mul_left ((Real.pi : ℂ) ^ m)⁻¹ + change HasSum _ (((Real.pi : ℂ) ^ m)⁻¹ * + densityExpectation (multiModeNumberBasis m) A + (rankOne ℂ (multiCoherentVector (WithLp.toLp 2 w)) + (multiCoherentVector (WithLp.toLp 2 w)))) at h + simpa only [← coherentFrame_self_eq_rankOne, densityExpectation_rankOne _ hA.1, + ← multiCoherentPositiveDiagonal_complex hA.1] using h + +theorem integrable_densityCoherentFourier {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (z : MultiModePhaseSpace m) : + Integrable (fun w : Fin m → ℂ => coherentFourierPhase z (WithLp.toLp 2 w) * + (multiCoherentPositiveDiagonal A w : ℂ)) := by + have h := (ContinuousLinearMap.mul ℂ ℂ).integrable_of_bilin_of_bdd_left + (μ := (volume : Measure (Fin m → ℂ))) 1 + (continuous_coherentFourierPhase z).aestronglyMeasurable + (Filter.Eventually.of_forall fun w => (norm_coherentFourierPhase z _).le) + (integrable_multiCoherentPositiveDiagonal hA).ofReal + simpa only [ContinuousLinearMap.mul_apply'] using! h + +/-- Literal Fourier transform of the actual normalized coherent diagonal. +The Gaussian factor is nonzero, so this determines the complex characteristic. -/ +theorem integral_densityCoherentFourier {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (z : MultiModePhaseSpace m) : + (∫ w : Fin m → ℂ, coherentFourierPhase z (WithLp.toLp 2 w) * + (multiCoherentPositiveDiagonal A w : ℂ)) = + weylVacuumWeight m (fun j => z j) * + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl z) := by + let v (k : Fin m → ℕ) := CFC.sqrt A (multiModeNumberBasis m k) + let F (k : Fin m → ℕ) (w : Fin m → ℂ) := + coherentFourierPhase z (WithLp.toLp 2 w) * + inner ℂ (multiCoherentFrameCoordinate (v k) w) (multiCoherentFrameCoordinate (v k) w) + have hnorm (k : Fin m → ℕ) : (∫ w : Fin m → ℂ, ‖F k w‖) = ‖v k‖ ^ 2 := by + simp only [F, norm_mul, norm_coherentFourierPhase, one_mul, + inner_self_eq_norm_sq_to_K, RCLike.ofReal_eq_complex_ofReal, ← Complex.ofReal_pow, + Complex.norm_of_nonneg (sq_nonneg _)] + exact integral_multiCoherentFrameCoordinate_norm_sq (v k) + have hs : Summable fun k => ∫ w : Fin m → ℂ, ‖F k w‖ := by + simpa only [hnorm, v] using! summable_sqrt_basis_norm_sq (multiModeNumberBasis m) hA + have h := hasSum_integral_of_summable_integral_norm + (fun k => integrable_coherentFrameFourier_kernel z (v k) (v k)) hs + have hpoint (w : Fin m → ℂ) : (∑' k, F k w) = + coherentFourierPhase z (WithLp.toLp 2 w) * (multiCoherentPositiveDiagonal A w : ℂ) := + ((hasSum_sqrt_coherentFrame_self hA w).mul_left + (coherentFourierPhase z (WithLp.toLp 2 w))).tsum_eq + change HasSum (fun k => ∫ w : Fin m → ℂ, F k w) (∫ w : Fin m → ℂ, ∑' k, F k w) at h + simp_rw [hpoint] at h + rw [← h.tsum_eq] + simp only [F, integral_coherentFrameFourier_kernel, tsum_mul_left] + rfl + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationAdditivity.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationAdditivity.lean new file mode 100644 index 0000000000..0fe8e0538b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationAdditivity.lean @@ -0,0 +1,68 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityExpectationIndependence +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceOrder + +/-! +# Additivity of the actual density expectation in positive densities + +For positive observables, the genuine square-root sandwich trace is +additive in the density after the proved positive trace interchange. +The actual complex-linear span of positive observables then proves the +identity for every bounded observable. No complex trace on nonpositive +operators or unproved cyclicity is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ComplexOrder ENNReal + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem densityExpectation_add_of_nonneg (b : HilbertBasis ι ℂ E) + {ρ σ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) + {B : E →L[ℂ] E} (hB : 0 ≤ B) : + densityExpectation b (ρ + σ) B = densityExpectation b ρ B + densityExpectation b σ B := by + have he (A : E →L[ℂ] E) (hA : IsPositiveTraceClass A) : + positiveTrace (CFC.sqrt B * A * CFC.sqrt B) = ENNReal.ofReal + (densityExpectation b A B).re := by + rw [positiveTrace_sqrt_sandwich_swap hB hA.1] + exact positiveTrace_density_sandwich b hA hB + have hρn := Complex.nonneg_iff.mp (densityExpectation_nonneg b ρ hB) + have hσn := Complex.nonneg_iff.mp (densityExpectation_nonneg b σ hB) + have hsum := Complex.nonneg_iff.mp (densityExpectation_nonneg b (ρ + σ) hB) + have ht : ENNReal.ofReal (densityExpectation b (ρ + σ) B).re = + ENNReal.ofReal (densityExpectation b ρ B).re + ENNReal.ofReal + (densityExpectation b σ B).re := by + rw [← he (ρ + σ) (hρ.add hσ), mul_add, add_mul, + positiveTrace_add (conjugate_nonneg_of_nonneg hρ.1 (CFC.sqrt_nonneg B)) + (conjugate_nonneg_of_nonneg hσ.1 (CFC.sqrt_nonneg B)), he ρ hρ, he σ hσ] + rw [← ENNReal.ofReal_add hρn.1 hσn.1] at ht + apply Complex.ext + · have hr := congrArg ENNReal.toReal ht + simpa only [ENNReal.toReal_ofReal hsum.1, + ENNReal.toReal_ofReal (add_nonneg hρn.1 hσn.1), Complex.add_re] using hr + · rw [Complex.add_im, ← hsum.2, ← hρn.2, ← hσn.2, zero_add] + +/-- Genuine density additivity for arbitrary bounded observables. -/ +theorem densityExpectation_add (b : HilbertBasis ι ℂ E) + {ρ σ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) + (B : E →L[ℂ] E) : + densityExpectation b (ρ + σ) B = densityExpectation b ρ B + densityExpectation b σ B := by + have heq : (densityExpectationCLM b (hρ.add hσ)).toLinearMap = + (densityExpectationCLM b hρ).toLinearMap + (densityExpectationCLM b hσ).toLinearMap := by + apply LinearMap.ext_on CStarAlgebra.span_nonneg + intro A hA + exact densityExpectation_add_of_nonneg b hρ hσ hA + exact DFunLike.congr_fun heq B + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationContinuity.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationContinuity.lean new file mode 100644 index 0000000000..e73d85be28 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationContinuity.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityExpectationIndependence +public import Mathlib.Analysis.Normed.Group.Tannery + +/-! +# Bounded weak and strong continuity of actual density expectations + +The absolutely convergent square-root basis series is continuous along +uniformly bounded weakly convergent families, for arbitrary filters and +arbitrary Hilbert basis index types. Strong convergence is a direct +corollary. Neither a separability hypothesis nor an assumed normal-state +field is used. The common operator norm bound need hold only eventually. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Filter Topology + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] + +omit [CompleteSpace E] in +theorem tendsto_familyExpectation_of_weak (v : ι → E) + (hv : Summable fun j => ‖v j‖ ^ 2) {α : Type*} {l : Filter α} + {As : α → E →L[ℂ] E} {A : E →L[ℂ] E} {C : ℝ} + (hweak : ∀ x y, Tendsto (fun i => inner ℂ x (As i y)) l (𝓝 (inner ℂ x (A y)))) + (hbounded : ∀ᶠ i in l, ‖As i‖ ≤ C) : + Tendsto (fun i => familyExpectation v (As i)) l (𝓝 (familyExpectation v A)) := by + apply tendsto_tsum_of_dominated_convergence (hv.mul_right C) + · intro j + exact hweak (v j) (v j) + · filter_upwards [hbounded] with i hi j + exact (norm_familyExpectation_term_le v (As i) j).trans + (mul_le_mul_of_nonneg_left hi (sq_nonneg _)) + +omit [CompleteSpace E] in +theorem tendsto_familyExpectation_of_strong (v : ι → E) + (hv : Summable fun j => ‖v j‖ ^ 2) {α : Type*} {l : Filter α} + {As : α → E →L[ℂ] E} {A : E →L[ℂ] E} {C : ℝ} + (hstrong : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) + (hbounded : ∀ᶠ i in l, ‖As i‖ ≤ C) : + Tendsto (fun i => familyExpectation v (As i)) l (𝓝 (familyExpectation v A)) := + tendsto_familyExpectation_of_weak v hv + (fun _x y => tendsto_const_nhds.inner (hstrong y)) hbounded + +/-- A genuine positive trace-class density yields continuity on every +operator-norm bounded weakly convergent net. -/ +theorem tendsto_densityExpectation_of_weak (b : HilbertBasis ι ℂ E) + {ρ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) + {α : Type*} {l : Filter α} {As : α → E →L[ℂ] E} + {A : E →L[ℂ] E} {C : ℝ} + (hweak : ∀ x y, Tendsto (fun i => inner ℂ x (As i y)) l (𝓝 (inner ℂ x (A y)))) + (hbounded : ∀ᶠ i in l, ‖As i‖ ≤ C) : + Tendsto (fun i => densityExpectation b ρ (As i)) l (𝓝 (densityExpectation b ρ A)) := + tendsto_familyExpectation_of_weak _ (summable_sqrt_basis_norm_sq b hρ) hweak hbounded + +/-- Strong continuity in the exact bounded-net form used by Kaplansky +approximations. The density may have kernel and need not have trace one. -/ +theorem tendsto_densityExpectation_of_strong (b : HilbertBasis ι ℂ E) + {ρ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) + {α : Type*} {l : Filter α} {As : α → E →L[ℂ] E} + {A : E →L[ℂ] E} {C : ℝ} + (hstrong : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) + (hbounded : ∀ᶠ i in l, ‖As i‖ ≤ C) : + Tendsto (fun i => densityExpectation b ρ (As i)) l (𝓝 (densityExpectation b ρ A)) := + tendsto_familyExpectation_of_strong _ (summable_sqrt_basis_norm_sq b hρ) hstrong hbounded + +theorem tendsto_positiveDensityState_of_strong (b : HilbertBasis ι ℂ E) + {ρ : E →L[ℂ] E} (hρ : 0 ≤ ρ) (ht : positiveTrace ρ = 1) + {α : Type*} {l : Filter α} {As : α → E →L[ℂ] E} + {A : E →L[ℂ] E} {C : ℝ} + (hstrong : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) + (hbounded : ∀ᶠ i in l, ‖As i‖ ≤ C) : + Tendsto (fun i => positiveDensityState b hρ ht (As i)) l + (𝓝 (positiveDensityState b hρ ht A)) := + tendsto_densityExpectation_of_strong b ⟨hρ, by rw [ht]; exact ENNReal.one_lt_top⟩ + hstrong hbounded + +/-- Multiplication by a fixed bounded operator preserves the bounded +strong convergence needed by the actual density expectation. -/ +theorem tendsto_densityExpectation_mul_right_of_strong (b : HilbertBasis ι ℂ E) + {ρ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) (B : E →L[ℂ] E) + {α : Type*} {l : Filter α} {As : α → E →L[ℂ] E} + {A : E →L[ℂ] E} {C : ℝ} + (hstrong : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) + (hbounded : ∀ᶠ i in l, ‖As i‖ ≤ C) : + Tendsto (fun i => densityExpectation b ρ (As i * B)) l + (𝓝 (densityExpectation b ρ (A * B))) := by + apply tendsto_densityExpectation_of_strong b hρ + (C := C * ‖B‖) (fun x => hstrong (B x)) + filter_upwards [hbounded] with i hi + exact (norm_mul_le _ _).trans (mul_le_mul_of_nonneg_right hi (norm_nonneg _)) + +theorem tendsto_densityExpectation_mul_left_of_strong (b : HilbertBasis ι ℂ E) + {ρ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) (B : E →L[ℂ] E) + {α : Type*} {l : Filter α} {As : α → E →L[ℂ] E} + {A : E →L[ℂ] E} {C : ℝ} + (hstrong : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) + (hbounded : ∀ᶠ i in l, ‖As i‖ ≤ C) : + Tendsto (fun i => densityExpectation b ρ (B * As i)) l + (𝓝 (densityExpectation b ρ (B * A))) := by + apply tendsto_densityExpectation_of_strong b hρ + (As := fun i => B * As i) (A := B * A) (C := ‖B‖ * C) + (fun x => B.continuous.continuousAt.tendsto.comp (hstrong x)) + filter_upwards [hbounded] with i hi + exact (norm_mul_le _ _).trans (mul_le_mul_of_nonneg_left hi (norm_nonneg _)) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationGram.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationGram.lean new file mode 100644 index 0000000000..cd2ba302a8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationGram.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveDensityState +public import Mathlib.Analysis.Matrix.Order + +/-! +# Actual positive density expectations give positive finite Gram matrices + +The matrix entries are expectations of X_i† X_j in the genuine density +functional. Complex linearity and actual operator positivity prove its +positive quadratic forms, and the adjoint expectation identity proves +Hermitian symmetry. No positive-kernel hypothesis is introduced. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix ContinuousLinearMap +open scoped ComplexOrder ComplexConjugate + +variable {ι κ E : Type*} [Fintype κ] [DecidableEq κ] + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem densityExpectation_star (b : HilbertBasis ι ℂ E) (A B : E →L[ℂ] E) : + densityExpectation b A (star B) = star (densityExpectation b A B) := by + simp only [densityExpectation, familyExpectation, tsum_star] + apply tsum_congr + intro i + change inner ℂ _ (B.adjoint _) = star (inner ℂ _ (B _)) + rw [B.adjoint_inner_right] + exact (inner_conj_symm _ _).symm + +/-- Density expectation gram given by `fun i j => densityExpectation b A (star (X i) * X j)`. -/ +def densityExpectationGram (b : HilbertBasis ι ℂ E) (A : E →L[ℂ] E) + (X : κ → E →L[ℂ] E) : Matrix κ κ ℂ := + fun i j => densityExpectation b A (star (X i) * X j) + +omit [Fintype κ] [DecidableEq κ] in +theorem densityExpectationGram_isHermitian (b : HilbertBasis ι ℂ E) + (A : E →L[ℂ] E) (X : κ → E →L[ℂ] E) : + (densityExpectationGram b A X).IsHermitian := by + change (densityExpectationGram b A X)ᴴ = densityExpectationGram b A X + ext i j + simp only [Matrix.conjTranspose_apply, densityExpectationGram, + ← densityExpectation_star, star_mul, star_star] + +omit [DecidableEq κ] in +theorem densityExpectationGram_quadratic (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) + (X : κ → E →L[ℂ] E) (c : κ → ℂ) : + star c ⬝ᵥ (densityExpectationGram b A X *ᵥ c) = + densityExpectation b A (star (∑ i, c i • X i) * (∑ j, c j • X j)) := by + let φ := densityExpectationCLM b hA + change _ = φ _ + simp only [map_sum, star_sum, star_smul, Finset.sum_mul, Finset.mul_sum, + smul_mul_assoc, mul_smul_comm, map_smul, smul_eq_mul, + dotProduct, Matrix.mulVec, densityExpectationGram, Pi.star_apply] + conv_rhs => rw [Finset.sum_comm] + apply Finset.sum_congr rfl + intro i _ + apply Finset.sum_congr rfl + intro j _ + change star (c i) * (densityExpectation b A (star (X i) * X j) * c j) = + c j * (star (c i) * densityExpectation b A (star (X i) * X j)) + ring + +omit [DecidableEq κ] [Fintype κ] in +theorem densityExpectationGram_posSemidef [Finite κ] (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) (X : κ → E →L[ℂ] E) : + (densityExpectationGram b A X).PosSemidef := by + let _ : Fintype κ := Fintype.ofFinite κ + apply Matrix.posSemidef_iff_dotProduct_mulVec.mpr + refine ⟨densityExpectationGram_isHermitian b A X, ?_⟩ + intro c + rw [densityExpectationGram_quadratic b hA X c] + exact densityExpectation_nonneg b A (star_mul_self_nonneg _) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationIndependence.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationIndependence.lean new file mode 100644 index 0000000000..86eaa4f672 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityExpectationIndependence.lean @@ -0,0 +1,58 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveDensityState + +/-! +# Basis independence of the actual complex density expectation + +For positive inputs, the expectation is real and agrees with the proved +basis-independent positive trace. Mathlib's proved fact that nonnegative +elements span a complex C-star algebra extends this equality to every +bounded operator. Thus no cyclic complex trace identity is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ComplexOrder + +variable {ι κ E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem densityExpectation_eq_of_nonneg (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) {B : E →L[ℂ] E} (hB : 0 ≤ B) : + densityExpectation b A B = densityExpectation c A B := by + have hb := Complex.nonneg_iff.mp (densityExpectation_nonneg b A hB) + have hc := Complex.nonneg_iff.mp (densityExpectation_nonneg c A hB) + have ht : ENNReal.ofReal (densityExpectation b A B).re = + ENNReal.ofReal (densityExpectation c A B).re := + (positiveTrace_density_sandwich b hA hB).symm.trans (positiveTrace_density_sandwich c hA hB) + apply Complex.ext + · have hr := congrArg ENNReal.toReal ht + simpa only [ENNReal.toReal_ofReal hb.1, ENNReal.toReal_ofReal hc.1] using hr + · exact hb.2.symm.trans hc.2 + +/-- The complex expectation of every bounded operator is independent of +the Hilbert basis used for the absolutely convergent series. -/ +theorem densityExpectation_eq (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) (B : E →L[ℂ] E) : + densityExpectation b A B = densityExpectation c A B := by + have hlin : (densityExpectationCLM b hA).toLinearMap = + (densityExpectationCLM c hA).toLinearMap := by + apply LinearMap.ext_on CStarAlgebra.span_nonneg + intro T hT + exact densityExpectation_eq_of_nonneg b c hA hT + exact DFunLike.congr_fun hlin B + +theorem positiveDensityState_apply_eq (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ E) + {A : E →L[ℂ] E} (hA : 0 ≤ A) (htrace : positiveTrace A = 1) (B : E →L[ℂ] E) : + positiveDensityState b hA htrace B = positiveDensityState c hA htrace B := + densityExpectation_eq b c ⟨hA, by rw [htrace]; exact ENNReal.one_lt_top⟩ B + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityOffDiagonalInversion.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityOffDiagonalInversion.lean new file mode 100644 index 0000000000..2ca8236bb7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityOffDiagonalInversion.lean @@ -0,0 +1,196 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityWeylInversion + +/-! +# Actual off-diagonal coherent matrix elements from Weyl expectations + +Left and right displacement of the proved weak vacuum inversion gives +mixed coherent projectors. Absolute square-root-basis dominated convergence +then gives the actual off-diagonal density kernel. The left and right +labels are independent, and the complex density expectation is used on +the nonpositive Weyl product. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory ContinuousLinearMap Filter Topology InnerProductSpace +open scoped ComplexConjugate + +theorem densityExpectation_rankOne_mixed {ι E : Type*} [NormedAddCommGroup E] + [InnerProductSpace ℂ E] [CompleteSpace E] (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : 0 ≤ A) (u v : E) : + densityExpectation b A (rankOne ℂ u v) = inner ℂ v (A u) := by + let S := CFC.sqrt A + have hS : IsSelfAdjoint S := (CFC.sqrt_nonneg A).isSelfAdjoint + have ht (i : ι) : inner ℂ (S (b i)) (rankOne ℂ u v (S (b i))) = + inner ℂ (S v) (b i) * inner ℂ (b i) (S u) := by + rw [rankOne_apply, inner_smul_right, + ← S.adjoint_inner_left (b i) v, ← S.adjoint_inner_right (b i) u, hS.adjoint_eq] + change (∑' i, inner ℂ (S (b i)) (rankOne ℂ u v (S (b i)))) = _ + simp_rw [ht] + rw [(b.hasSum_inner_mul_inner (S v) (S u)).tsum_eq, + ← S.adjoint_inner_right, hS.adjoint_eq, ← mul_apply_eq_comp] + change inner ℂ v ((CFC.sqrt A * CFC.sqrt A) u) = _ + rw [← pow_two, CFC.sq_sqrt A hA] + +/-- Mixed displacement given by `multiOscillatorWeyl b * multiOscillatorWeyl z * +(multiOscillatorWeyl a).adjoint`. -/ +def mixedDisplacement {m : ℕ} (b a z : MultiModePhaseSpace m) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + multiOscillatorWeyl b * multiOscillatorWeyl z * (multiOscillatorWeyl a).adjoint + +theorem inner_mixedDisplacement {m : ℕ} (b a z : MultiModePhaseSpace m) + (x y : MultiModeOscillatorSpace m) : + inner ℂ x (mixedDisplacement b a z y) = + inner ℂ ((multiOscillatorWeyl b).adjoint x) + (multiOscillatorWeyl z ((multiOscillatorWeyl a).adjoint y)) := by + rw [(multiOscillatorWeyl b).adjoint_inner_left] + rfl + +theorem norm_mixedDisplacement_apply {m : ℕ} (b a z : MultiModePhaseSpace m) + (x : MultiModeOscillatorSpace m) : ‖mixedDisplacement b a z x‖ = ‖x‖ := by + simp only [mixedDisplacement, mul_apply_eq_comp, multiOscillatorWeyl_adjoint, + norm_multiOscillatorWeyl_apply] + +theorem integrable_mixedWeyl_kernel {m : ℕ} (b a : MultiModePhaseSpace m) + (x y : MultiModeOscillatorSpace m) : + Integrable (fun z : Fin m → ℂ => weylVacuumWeight m z * + inner ℂ x (mixedDisplacement b a (WithLp.toLp 2 z) y)) := by + have h := (integrable_weylVacuumOrbit ((multiOscillatorWeyl a).adjoint y)).const_inner (𝕜 := ℂ) + ((multiOscillatorWeyl b).adjoint x) + simpa only [inner_smul_right, ← inner_mixedDisplacement] using h + +theorem integral_mixedWeyl_kernel {m : ℕ} (b a : MultiModePhaseSpace m) + (x y : MultiModeOscillatorSpace m) : + (∫ z : Fin m → ℂ, weylVacuumWeight m z * + inner ℂ x (mixedDisplacement b a (WithLp.toLp 2 z) y)) = + (Real.pi : ℂ) ^ m * inner ℂ x (multiCoherentVector b) * + inner ℂ (multiCoherentVector a) y := by + simp_rw [inner_mixedDisplacement] + rw [integral_gaussianWeyl_kernel, + (multiOscillatorWeyl b).adjoint_inner_left, + (multiOscillatorWeyl a).adjoint_inner_right, + multiOscillatorWeyl_exponential_zero, multiOscillatorWeyl_exponential_zero] + +theorem norm_familyMixedWeyl_term_le {ι : Type*} {m : ℕ} + (v : ι → MultiModeOscillatorSpace m) (b a z : MultiModePhaseSpace m) (i : ι) : + ‖inner ℂ (v i) (mixedDisplacement b a z (v i))‖ ≤ ‖v i‖ ^ 2 := by + calc + _ ≤ ‖v i‖ * ‖mixedDisplacement b a z (v i)‖ := norm_inner_le_norm _ _ + _ = _ := by rw [norm_mixedDisplacement_apply, pow_two] + +theorem continuous_familyExpectation_mixedDisplacement {ι : Type*} {m : ℕ} + (v : ι → MultiModeOscillatorSpace m) (hv : Summable fun i => ‖v i‖ ^ 2) + (b a : MultiModePhaseSpace m) : + Continuous (fun z : MultiModePhaseSpace m => familyExpectation v + (mixedDisplacement b a z)) := by + rw [continuous_iff_continuousAt] + intro z + apply tendsto_tsum_of_dominated_convergence hv + · intro i + have hc := (multiOscillatorWeyl b).continuous.comp + (continuous_multiOscillatorWeyl_apply ((multiOscillatorWeyl a).adjoint (v i))) + exact tendsto_const_nhds.inner hc.continuousAt + · exact Filter.Eventually.of_forall fun z i => norm_familyMixedWeyl_term_le v b a z i + +theorem integrable_familyMixedWeyl {ι : Type*} {m : ℕ} + (v : ι → MultiModeOscillatorSpace m) (hv : Summable fun i => ‖v i‖ ^ 2) + (b a : MultiModePhaseSpace m) : + Integrable (fun z : Fin m → ℂ => weylVacuumWeight m z * + familyExpectation v (mixedDisplacement b a (WithLp.toLp 2 z))) := by + have hc : Continuous (fun z : Fin m → ℂ => weylVacuumWeight m z * + familyExpectation v (mixedDisplacement b a (WithLp.toLp 2 z))) := by + have hf := (continuous_familyExpectation_mixedDisplacement v hv b a).comp + (PiLp.continuous_toLp 2 _) + have hw : Continuous (weylVacuumWeight m) := by unfold weylVacuumWeight; fun_prop + exact hw.mul hf + apply ((integrable_weylVacuumWeight m).norm.mul_const (∑' i, ‖v i‖ ^ 2)).mono' + hc.aestronglyMeasurable + exact Filter.Eventually.of_forall fun z => by + rw [norm_mul] + exact mul_le_mul_of_nonneg_left + (tsum_of_norm_bounded hv.hasSum (norm_familyMixedWeyl_term_le v b a _)) (norm_nonneg _) + +theorem integral_familyMixedWeyl {ι : Type*} [Countable ι] {m : ℕ} + (v : ι → MultiModeOscillatorSpace m) (hv : Summable fun i => ‖v i‖ ^ 2) + (b a : MultiModePhaseSpace m) : + (∫ z : Fin m → ℂ, weylVacuumWeight m z * + familyExpectation v (mixedDisplacement b a (WithLp.toLp 2 z))) = + (Real.pi : ℂ) ^ m * familyExpectation v + (rankOne ℂ (multiCoherentVector b) (multiCoherentVector a)) := by + let F (i : ι) (z : Fin m → ℂ) := weylVacuumWeight m z * + inner ℂ (v i) (mixedDisplacement b a (WithLp.toLp 2 z) (v i)) + have hs := hasSum_integral_of_dominated_convergence + (fun i z => ‖weylVacuumWeight m z‖ * ‖v i‖ ^ 2) + (fun i => (integrable_mixedWeyl_kernel b a (v i) (v i)).aestronglyMeasurable) + (fun i => Filter.Eventually.of_forall fun z => by + change ‖F i z‖ ≤ _ + dsimp only [F] + rw [norm_mul] + exact mul_le_mul_of_nonneg_left (norm_familyMixedWeyl_term_le v b a _ i) (norm_nonneg _)) + (Filter.Eventually.of_forall fun z => hv.mul_left ‖weylVacuumWeight m z‖) + (by + simp only [tsum_mul_left] + exact (integrable_weylVacuumWeight m).norm.mul_const _) + (Filter.Eventually.of_forall fun z => + (summable_familyExpectation_terms v hv (mixedDisplacement b a + (WithLp.toLp 2 z))).hasSum.mul_left + (weylVacuumWeight m z)) + have hsum : (∫ z : Fin m → ℂ, weylVacuumWeight m z * + familyExpectation v (mixedDisplacement b a (WithLp.toLp 2 z))) = + ∑' i, ∫ z : Fin m → ℂ, weylVacuumWeight m z * + inner ℂ (v i) (mixedDisplacement b a (WithLp.toLp 2 z) (v i)) := + hs.tsum_eq.symm + rw [hsum] + simp only [integral_mixedWeyl_kernel] + have he (i : ι) : (Real.pi : ℂ) ^ m * inner ℂ (v i) (multiCoherentVector b) * + inner ℂ (multiCoherentVector a) (v i) = + (Real.pi : ℂ) ^ m * inner ℂ (v i) + (rankOne ℂ (multiCoherentVector b) (multiCoherentVector a) (v i)) := by + rw [rankOne_apply, inner_smul_right] + ring + simp_rw [he] + exact tsum_mul_left + +/-- Actual off-diagonal coherent density kernel, with independent labels. -/ +theorem integral_densityMixedWeyl {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (b a : MultiModePhaseSpace m) : + (∫ z : Fin m → ℂ, weylVacuumWeight m z * + densityExpectation (multiModeNumberBasis m) A + (mixedDisplacement b a (WithLp.toLp 2 z))) = + (Real.pi : ℂ) ^ m * inner ℂ (multiCoherentVector a) (A (multiCoherentVector b)) := by + change (∫ z : Fin m → ℂ, weylVacuumWeight m z * + familyExpectation (fun i => CFC.sqrt A (multiModeNumberBasis m i)) + (mixedDisplacement b a (WithLp.toLp 2 z))) = _ + calc + _ = (Real.pi : ℂ) ^ m * familyExpectation + (fun i => CFC.sqrt A (multiModeNumberBasis m i)) + (rankOne ℂ (multiCoherentVector b) (multiCoherentVector a)) := + integral_familyMixedWeyl _ + (summable_sqrt_basis_norm_sq (multiModeNumberBasis m) hA) b a + _ = _ := by + change (Real.pi : ℂ) ^ m * densityExpectation (multiModeNumberBasis m) A + (rankOne ℂ (multiCoherentVector b) (multiCoherentVector a)) = _ + rw [densityExpectation_rankOne_mixed _ hA.1] + +theorem integrable_densityMixedWeyl {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (b a : MultiModePhaseSpace m) : + Integrable (fun z : Fin m → ℂ => weylVacuumWeight m z * + densityExpectation (multiModeNumberBasis m) A + (mixedDisplacement b a (WithLp.toLp 2 z))) := + integrable_familyMixedWeyl _ (summable_sqrt_basis_norm_sq (multiModeNumberBasis m) hA) b a + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityProductExtension.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityProductExtension.lean new file mode 100644 index 0000000000..a54858a0b0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityProductExtension.lean @@ -0,0 +1,96 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityExpectationContinuity + +/-! +# Extending genuine density factorization through linear spans and closures + +These lemmas extend an established equality of actual joint expectations. +They do not infer independence from commutation. The norm closure step +uses the actual bounded functional; the strong limit step uses its proved +bounded strong continuity for an arbitrary positive trace-class density. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Filter Topology + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +omit [CompleteSpace E] in +theorem linearFunctional_factorization_span + (φ : (E →L[ℂ] E) →ₗ[ℂ] ℂ) (S T : Set (E →L[ℂ] E)) + (h : ∀ A ∈ S, ∀ B ∈ T, φ (A * B) = φ A * φ B) + {A B : E →L[ℂ] E} (hA : A ∈ Submodule.span ℂ S) + (hB : B ∈ Submodule.span ℂ T) : φ (A * B) = φ A * φ B := by + induction hA using Submodule.span_induction with + | mem A hA => + induction hB using Submodule.span_induction with + | mem B hB => exact h A hA B hB + | zero => simp + | add B C hB hC ihB ihC => simp only [mul_add, map_add, ihB, ihC] + | smul c B hB ih => + simp only [mul_smul_comm, map_smul, smul_eq_mul, ih] + ring + | zero => simp + | add A C hA hC ihA ihC => simp only [add_mul, map_add, ihA, ihC] + | smul c A hA ih => + simp only [smul_mul_assoc, map_smul, smul_eq_mul, ih] + ring + +theorem continuousLinearFunctional_factorization_closure + (φ : (E →L[ℂ] E) →L[ℂ] ℂ) (S T : Set (E →L[ℂ] E)) + (h : ∀ A ∈ S, ∀ B ∈ T, φ (A * B) = φ A * φ B) + {A B : E →L[ℂ] E} (hA : A ∈ closure S) (hB : B ∈ closure T) : + φ (A * B) = φ A * φ B := by + have hleft (B : E →L[ℂ] E) (hB : B ∈ T) : ∀ A ∈ closure S, + φ (A * B) = φ A * φ B := by + have hs : closure S ⊆ {P | φ (P * B) = φ P * φ B} := + closure_minimal (fun P hP => h P hP B hB) + (isClosed_eq (φ.continuous.comp (continuous_id.mul_const B)) + (φ.continuous.mul_const (φ B))) + exact fun P hP => hs hP + have hright : closure T ⊆ {B | φ (A * B) = φ A * φ B} := by + apply closure_minimal (fun B hB => hleft B hB A hA) + exact isClosed_eq (φ.continuous.comp (continuous_const.mul continuous_id)) + (continuous_const.mul φ.continuous) + exact hright hB + +theorem densityExpectation_factorization_of_strong_left (b : HilbertBasis ι ℂ E) + {ρ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) + {α : Type*} {l : Filter α} [l.NeBot] {As : α → E →L[ℂ] E} + {A B : E →L[ℂ] E} {C : ℝ} + (hstrong : ∀ x, Tendsto (fun i => As i x) l (𝓝 (A x))) + (hbounded : ∀ᶠ i in l, ‖As i‖ ≤ C) + (hfactor : ∀ᶠ i in l, densityExpectation b ρ (As i * B) = + densityExpectation b ρ (As i) * densityExpectation b ρ B) : + densityExpectation b ρ (A * B) = densityExpectation b ρ A * densityExpectation b ρ B := by + apply tendsto_nhds_unique + (tendsto_densityExpectation_mul_right_of_strong b hρ B hstrong hbounded) + exact ((tendsto_densityExpectation_of_strong b hρ hstrong hbounded).mul + tendsto_const_nhds).congr' (Filter.EventuallyEq.symm hfactor) + +theorem densityExpectation_factorization_of_strong_right (b : HilbertBasis ι ℂ E) + {ρ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) + {α : Type*} {l : Filter α} [l.NeBot] {Bs : α → E →L[ℂ] E} + {A B : E →L[ℂ] E} {C : ℝ} + (hstrong : ∀ x, Tendsto (fun i => Bs i x) l (𝓝 (B x))) + (hbounded : ∀ᶠ i in l, ‖Bs i‖ ≤ C) + (hfactor : ∀ᶠ i in l, densityExpectation b ρ (A * Bs i) = + densityExpectation b ρ A * densityExpectation b ρ (Bs i)) : + densityExpectation b ρ (A * B) = densityExpectation b ρ A * densityExpectation b ρ B := by + apply tendsto_nhds_unique + (tendsto_densityExpectation_mul_left_of_strong b hρ A hstrong hbounded) + exact (tendsto_const_nhds.mul + (tendsto_densityExpectation_of_strong b hρ hstrong hbounded)).congr' + (Filter.EventuallyEq.symm hfactor) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityProductVNA.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityProductVNA.lean new file mode 100644 index 0000000000..ba7f01cf87 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityProductVNA.lean @@ -0,0 +1,74 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityProductExtension +public import LeanPool.VacuumBellSeparation.Bell.KaplanskyEffects +public import LeanPool.VacuumBellSeparation.Bell.DirectedAlgebraUnion +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroAlgebra + +/-! +# Genuine density factorization on generated von Neumann algebra effects + +Norm-closed star algebras have the proved real-CFC stability required by +Kaplansky approximation. Two actual effect nets and bounded strong density +continuity extend an already established product expectation identity. +No normality, tensor product, or independence field is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Filter Topology + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem generatedVNA_closed_star_adjoin (X : Set (E →L[ℂ] E)) : + generatedVNA ((StarAlgebra.adjoin ℂ X).topologicalClosure : Set (E →L[ℂ] E)) = + generatedVNA X := by + apply le_antisymm + · apply generatedVNA_le_of_subset + exact StarSubalgebra.topologicalClosure_minimal + (s := StarAlgebra.adjoin ℂ X) (t := (generatedVNA X).toStarSubalgebra) + (StarAlgebra.adjoin_le (subset_generatedVNA X)) + (vonNeumannAlgebra_isClosed (generatedVNA X)) + · apply generatedVNA_mono + intro A hA + exact (StarAlgebra.adjoin ℂ X).le_topologicalClosure + (StarAlgebra.subset_adjoin ℂ X hA) + +theorem densityExpectation_product_generatedVNA_effects + (b : HilbertBasis ι ℂ E) {ρ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) + (S T : StarSubalgebra ℂ (E →L[ℂ] E)) + (hS : IsClosed (S : Set (E →L[ℂ] E))) + (hT : IsClosed (T : Set (E →L[ℂ] E))) + (hfactor : ∀ A ∈ S, ∀ B ∈ T, densityExpectation b ρ (A * B) = + densityExpectation b ρ A * densityExpectation b ρ B) + {A B : E →L[ℂ] E} + (hA : A ∈ generatedVNA (S : Set (E →L[ℂ] E))) (hA0 : 0 ≤ A) (hA1 : A ≤ 1) + (hB : B ∈ generatedVNA (T : Set (E →L[ℂ] E))) (hB0 : 0 ≤ B) (hB1 : B ≤ 1) : + densityExpectation b ρ (A * B) = densityExpectation b ρ A * densityExpectation b ρ B := by + classical + let : IsClosed (S : Set (E →L[ℂ] E)) := hS + let : IsClosed (T : Set (E →L[ℂ] E)) := hT + obtain ⟨As, hAs, hlimA⟩ := exists_effect_strong_approximation S + (fun f A hA => cfc_mem (𝕜' := ℂ) (s := S) f hA) hA hA0 hA1 + obtain ⟨Bs, hBs, hlimB⟩ := exists_effect_strong_approximation T + (fun f B hB => cfc_mem (𝕜' := ℂ) (s := T) f hB) hB hB0 hB1 + have hbA : ∀ᶠ i in atTop, ‖As i‖ ≤ (1 : ℝ) := Eventually.of_forall fun i => + (CStarAlgebra.norm_le_one_iff_of_nonneg _ (hAs i).2.1).mpr (hAs i).2.2 + have hbB : ∀ᶠ i in atTop, ‖Bs i‖ ≤ (1 : ℝ) := Eventually.of_forall fun i => + (CStarAlgebra.norm_le_one_iff_of_nonneg _ (hBs i).2.1).mpr (hBs i).2.2 + have hfixed (j : Finset E × ℕ) : densityExpectation b ρ (A * Bs j) = + densityExpectation b ρ A * densityExpectation b ρ (Bs j) := + densityExpectation_factorization_of_strong_left b hρ hlimA hbA + (Eventually.of_forall fun i => hfactor _ (hAs i).1 _ (hBs j).1) + exact densityExpectation_factorization_of_strong_right b hρ hlimB hbB + (Eventually.of_forall hfixed) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityRenyiCovariance.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityRenyiCovariance.lean new file mode 100644 index 0000000000..15d91294d2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityRenyiCovariance.lean @@ -0,0 +1,75 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityTraceNormDual +public import LeanPool.VacuumBellSeparation.Gaussian.SemidefiniteRenyiComparison + +/-! +# True bounded-observable and covariance transfer from Rényi comparison + +The actual trace-norm dual bound and the proved full-Hilbert-space r>=2 +comparison control arbitrary bounded complex observables. When the actual +reference joint expectation equals the input marginal product, the same +estimate controls the literal covariance. No commutativity or assumed +trace-duality theorem is used in these transfer identities. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem enorm_densityExpectation_sub_le_renyi (b : HilbertBasis ι ℂ E) + {ρ σ : E →L[ℂ] E} (hρ : 0 ≤ ρ) (hρt : positiveTrace ρ = 1) + (hσ : IsFaithfulDensity σ) {r : ℝ} (hr : 2 ≤ r) (B : E →L[ℂ] E) : + ENNReal.ofReal ‖densityExpectation b ρ B - densityExpectation b σ B‖ ≤ + (sandwichedRenyiQuantity ρ σ r ^ (1 / (r - 1)) - 1) ^ (1 / 2 : ℝ) * + ENNReal.ofReal ‖B‖ := by + have hρtc : IsPositiveTraceClass ρ := + ⟨hρ, by rw [hρt]; exact ENNReal.one_lt_top⟩ + exact (enorm_densityExpectation_sub_le_traceNorm b hρtc hσ.isPositiveTraceClass B).trans + (_root_.mul_le_mul_left (renyi_trace_distance hρ hρt hσ hr) _) + +theorem enorm_densityCovariance_le_renyi (b : HilbertBasis ι ℂ E) + {ρ σ A B : E →L[ℂ] E} (hρ : 0 ≤ ρ) (hρt : positiveTrace ρ = 1) + (hσ : IsFaithfulDensity σ) {r : ℝ} (hr : 2 ≤ r) + (hproduct : densityExpectation b σ (A * B) = + densityExpectation b ρ A * densityExpectation b ρ B) : + ENNReal.ofReal ‖densityExpectation b ρ (A * B) - + densityExpectation b ρ A * densityExpectation b ρ B‖ ≤ + (sandwichedRenyiQuantity ρ σ r ^ (1 / (r - 1)) - 1) ^ (1 / 2 : ℝ) * + (ENNReal.ofReal ‖A‖ * ENNReal.ofReal ‖B‖) := by + rw [← hproduct] + exact (enorm_densityExpectation_sub_le_renyi b hρ hρt hσ hr (A * B)).trans + (_root_.mul_le_mul_right (by + simpa only [ENNReal.ofReal_mul (norm_nonneg A)] using + ENNReal.ofReal_le_ofReal (norm_mul_le A B)) _) + +theorem enorm_contraction_densityCovariance_le_renyi (b : HilbertBasis ι ℂ E) + {ρ σ A B : E →L[ℂ] E} (hρ : 0 ≤ ρ) (hρt : positiveTrace ρ = 1) + (hσ : IsFaithfulDensity σ) {r : ℝ} (hr : 2 ≤ r) + (hA : ‖A‖ ≤ 1) (hB : ‖B‖ ≤ 1) + (hproduct : densityExpectation b σ (A * B) = + densityExpectation b ρ A * densityExpectation b ρ B) : + ENNReal.ofReal ‖densityExpectation b ρ (A * B) - + densityExpectation b ρ A * densityExpectation b ρ B‖ ≤ + (sandwichedRenyiQuantity ρ σ r ^ (1 / (r - 1)) - 1) ^ (1 / 2 : ℝ) := by + have h := enorm_densityCovariance_le_renyi b hρ hρt hσ hr hproduct + have hn : ENNReal.ofReal ‖A‖ * ENNReal.ofReal ‖B‖ ≤ 1 := by + calc + _ ≤ 1 * ENNReal.ofReal ‖B‖ := _root_.mul_le_mul_left (ENNReal.ofReal_le_one.mpr hA) _ + _ = ENNReal.ofReal ‖B‖ := one_mul _ + _ ≤ 1 := ENNReal.ofReal_le_one.mpr hB + have ht := _root_.mul_le_mul_right hn + ((sandwichedRenyiQuantity ρ σ r ^ (1 / (r - 1)) - 1) ^ (1 / 2 : ℝ)) + exact h.trans (by simpa only [mul_one] using ht) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityTraceNormDual.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityTraceNormDual.lean new file mode 100644 index 0000000000..5b89ed5daf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityTraceNormDual.lean @@ -0,0 +1,93 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityExpectationAdditivity +public import LeanPool.VacuumBellSeparation.Gaussian.CompactTraceNorm + +/-! +# Actual trace-norm dual estimate for density expectations + +The positive and negative CFC parts of the genuine compact selfadjoint +density difference are trace class. Additivity of actual density +expectations identifies their signed expectation with the original +functional difference. Its norm bound follows from the two proved positive +functional bounds and Tr(D_+)+Tr(D_-)=Tr|D|. No trace duality is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem density_difference_parts_traceClass {ρ σ : E →L[ℂ] E} + (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) : + IsPositiveTraceClass ((ρ - σ)⁺) ∧ IsPositiveTraceClass ((ρ - σ)⁻) := by + have hD : IsSelfAdjoint (ρ - σ) := hρ.1.isSelfAdjoint.sub hσ.1.isSelfAdjoint + have hAbs : IsPositiveTraceClass (CFC.abs (ρ - σ)) := + ⟨CFC.abs_nonneg _, operatorTraceNorm_density_difference_lt_top hρ hσ⟩ + constructor + · apply hAbs.of_le (CFC.posPart_nonneg _) + rw [← CFC.posPart_add_negPart (ρ - σ) hD] + exact le_add_of_nonneg_right (CFC.negPart_nonneg _) + · apply hAbs.of_le (CFC.negPart_nonneg _) + rw [← CFC.posPart_add_negPart (ρ - σ) hD] + exact le_add_of_nonneg_left (CFC.posPart_nonneg _) + +theorem densityExpectation_difference_jordan (b : HilbertBasis ι ℂ E) + {ρ σ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) + (B : E →L[ℂ] E) : + densityExpectation b ρ B - densityExpectation b σ B = + densityExpectation b ((ρ - σ)⁺) B - + densityExpectation b ((ρ - σ)⁻) B := by + obtain ⟨hp, hn⟩ := density_difference_parts_traceClass hρ hσ + have hD : IsSelfAdjoint (ρ - σ) := hρ.1.isSelfAdjoint.sub hσ.1.isSelfAdjoint + have he : ρ + (ρ - σ)⁻ = σ + (ρ - σ)⁺ := by + have h := (sub_eq_sub_iff_add_eq_add).mp (CFC.posPart_sub_negPart (ρ - σ) hD) + exact h.symm.trans (add_comm _ _) + have hf := congrArg (fun A => densityExpectation b A B) he + rw [densityExpectation_add b hρ hn B, densityExpectation_add b hσ hp B] at hf + apply (sub_eq_sub_iff_add_eq_add).mpr + exact hf.trans (add_comm _ _) + +/-- The actual bounded-observable trace dual bound, for arbitrary positive +trace-class densities and arbitrary bounded complex observables. -/ +theorem norm_densityExpectation_sub_le_traceNorm (b : HilbertBasis ι ℂ E) + {ρ σ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) + (B : E →L[ℂ] E) : + ‖densityExpectation b ρ B - densityExpectation b σ B‖ ≤ + (operatorTraceNorm (ρ - σ)).toReal * ‖B‖ := by + obtain ⟨hp, hn⟩ := density_difference_parts_traceClass hρ hσ + have hD : IsSelfAdjoint (ρ - σ) := hρ.1.isSelfAdjoint.sub hσ.1.isSelfAdjoint + have ht : (operatorTraceNorm (ρ - σ)).toReal = + (positiveTrace ((ρ - σ)⁺)).toReal + + (positiveTrace ((ρ - σ)⁻)).toReal := by + rw [operatorTraceNorm, ← CFC.posPart_add_negPart (ρ - σ) hD, + positiveTrace_add hp.1 hn.1, ENNReal.toReal_add hp.2.ne hn.2.ne] + rw [densityExpectation_difference_jordan b hρ hσ B, ht] + calc + _ ≤ ‖densityExpectation b ((ρ - σ)⁺) B‖ + + ‖densityExpectation b ((ρ - σ)⁻) B‖ := norm_sub_le _ _ + _ ≤ (positiveTrace ((ρ - σ)⁺)).toReal * ‖B‖ + + (positiveTrace ((ρ - σ)⁻)).toReal * ‖B‖ := + add_le_add (norm_densityExpectation_le b hp B) (norm_densityExpectation_le b hn B) + _ = _ := (add_mul _ _ _).symm + +theorem enorm_densityExpectation_sub_le_traceNorm (b : HilbertBasis ι ℂ E) + {ρ σ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) + (B : E →L[ℂ] E) : + ENNReal.ofReal ‖densityExpectation b ρ B - densityExpectation b σ B‖ ≤ + operatorTraceNorm (ρ - σ) * ENNReal.ofReal ‖B‖ := by + have h := ENNReal.ofReal_le_ofReal (norm_densityExpectation_sub_le_traceNorm b hρ hσ B) + simpa only [ENNReal.ofReal_mul (ENNReal.toReal_nonneg), + ENNReal.ofReal_toReal (operatorTraceNorm_density_difference_lt_top hρ hσ).ne] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DensityWeylInversion.lean b/LeanPool/VacuumBellSeparation/Gaussian/DensityWeylInversion.lean new file mode 100644 index 0000000000..6e2894fbfe --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DensityWeylInversion.lean @@ -0,0 +1,163 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WeylCoherentInversion +public import LeanPool.VacuumBellSeparation.Gaussian.DensityExpectationIndependence +public import Mathlib.Analysis.Normed.Group.Tannery + +/-! +# Actual density characteristic determines the coherent diagonal + +The square-root basis series is absolutely summable. Unitary vector-norm +bounds justify exchange with the scalar Gaussian-weighted Weyl integral. +Weak inversion therefore gives the actual coherent diagonal of every +positive trace-class operator. The characteristic is its previously +constructed complex density expectation, not a positive-trace totalization. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory ContinuousLinearMap Filter Topology InnerProductSpace +open scoped ComplexConjugate + +theorem densityExpectation_rankOne {ι E : Type*} [NormedAddCommGroup E] + [InnerProductSpace ℂ E] [CompleteSpace E] (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : 0 ≤ A) (w : E) : + densityExpectation b A (rankOne ℂ w w) = inner ℂ w (A w) := by + let S := CFC.sqrt A + have hS : IsSelfAdjoint S := (CFC.sqrt_nonneg A).isSelfAdjoint + have ht (i : ι) : inner ℂ (S (b i)) (rankOne ℂ w w (S (b i))) = + inner ℂ (S w) (b i) * inner ℂ (b i) (S w) := by + rw [rankOne_apply, inner_smul_right, + ← S.adjoint_inner_left (b i) w, ← S.adjoint_inner_right (b i) w, hS.adjoint_eq] + change (∑' i, inner ℂ (S (b i)) (rankOne ℂ w w (S (b i)))) = _ + simp_rw [ht] + rw [(b.hasSum_inner_mul_inner (S w) (S w)).tsum_eq, + ← S.adjoint_inner_right, hS.adjoint_eq, ← mul_apply_eq_comp] + change inner ℂ w ((CFC.sqrt A * CFC.sqrt A) w) = _ + rw [← pow_two, CFC.sq_sqrt A hA] + +theorem norm_familyWeyl_term_le {ι : Type*} {m : ℕ} + (v : ι → MultiModeOscillatorSpace m) (z : MultiModePhaseSpace m) (i : ι) : + ‖inner ℂ (v i) (multiOscillatorWeyl z (v i))‖ ≤ ‖v i‖ ^ 2 := by + calc + _ ≤ ‖v i‖ * ‖multiOscillatorWeyl z (v i)‖ := norm_inner_le_norm _ _ + _ = _ := by rw [norm_multiOscillatorWeyl_apply, pow_two] + +theorem continuous_familyExpectation_weyl {ι : Type*} {m : ℕ} + (v : ι → MultiModeOscillatorSpace m) (hv : Summable fun i => ‖v i‖ ^ 2) : + Continuous (fun z : MultiModePhaseSpace m => familyExpectation v (multiOscillatorWeyl z)) := by + rw [continuous_iff_continuousAt] + intro z + apply tendsto_tsum_of_dominated_convergence hv + · intro i + exact tendsto_const_nhds.inner (continuous_multiOscillatorWeyl_apply (v i)).continuousAt + · exact Filter.Eventually.of_forall fun z i => norm_familyWeyl_term_le v z i + +theorem norm_familyExpectation_weyl_le {ι : Type*} {m : ℕ} + (v : ι → MultiModeOscillatorSpace m) (hv : Summable fun i => ‖v i‖ ^ 2) + (z : MultiModePhaseSpace m) : + ‖familyExpectation v (multiOscillatorWeyl z)‖ ≤ ∑' i, ‖v i‖ ^ 2 := + tsum_of_norm_bounded hv.hasSum (norm_familyWeyl_term_le v z) + +theorem integrable_familyWeyl_convolution {ι : Type*} {m : ℕ} + (v : ι → MultiModeOscillatorSpace m) (hv : Summable fun i => ‖v i‖ ^ 2) + (w : MultiModePhaseSpace m) : + Integrable (fun z : Fin m → ℂ => weylVacuumWeight m z * + coherentFourierPhase w (WithLp.toLp 2 z) * + familyExpectation v (multiOscillatorWeyl (WithLp.toLp 2 z))) := by + have hc : Continuous (fun z : Fin m → ℂ => weylVacuumWeight m z * + coherentFourierPhase w (WithLp.toLp 2 z) * + familyExpectation v (multiOscillatorWeyl (WithLp.toLp 2 z))) := by + have hf := (continuous_familyExpectation_weyl v hv).comp (PiLp.continuous_toLp 2 _) + unfold weylVacuumWeight coherentFourierPhase + fun_prop + apply ((integrable_weylVacuumWeight m).norm.mul_const (∑' i, ‖v i‖ ^ 2)).mono' + hc.aestronglyMeasurable + exact Filter.Eventually.of_forall fun z => by + rw [norm_mul, norm_mul, norm_coherentFourierPhase, mul_one] + exact mul_le_mul_of_nonneg_left (norm_familyExpectation_weyl_le v hv _) (norm_nonneg _) + +theorem integral_familyWeyl_convolution {ι : Type*} [Countable ι] {m : ℕ} + (v : ι → MultiModeOscillatorSpace m) (hv : Summable fun i => ‖v i‖ ^ 2) + (w : MultiModePhaseSpace m) : + (∫ z : Fin m → ℂ, weylVacuumWeight m z * + coherentFourierPhase w (WithLp.toLp 2 z) * + familyExpectation v (multiOscillatorWeyl (WithLp.toLp 2 z))) = + (Real.pi : ℂ) ^ m * familyExpectation v + (rankOne ℂ (multiCoherentVector w) (multiCoherentVector w)) := by + let F (i : ι) (z : Fin m → ℂ) := weylVacuumWeight m z * + coherentFourierPhase w (WithLp.toLp 2 z) * + inner ℂ (v i) (multiOscillatorWeyl (WithLp.toLp 2 z) (v i)) + have hs := hasSum_integral_of_dominated_convergence + (fun i z => ‖weylVacuumWeight m z‖ * ‖v i‖ ^ 2) + (fun i => (integrable_coherentWeyl_kernel w (v i) (v i)).aestronglyMeasurable) + (fun i => Filter.Eventually.of_forall fun z => by + change ‖F i z‖ ≤ _ + simp only [F, norm_mul, norm_coherentFourierPhase, mul_one] + exact mul_le_mul_of_nonneg_left (norm_familyWeyl_term_le v _ i) (norm_nonneg _)) + (Filter.Eventually.of_forall fun z => hv.mul_left ‖weylVacuumWeight m z‖) + (by + simp only [tsum_mul_left] + exact (integrable_weylVacuumWeight m).norm.mul_const _) + (Filter.Eventually.of_forall fun z => + (summable_familyExpectation_terms v hv (multiOscillatorWeyl + (WithLp.toLp 2 z))).hasSum.mul_left + (weylVacuumWeight m z * coherentFourierPhase w (WithLp.toLp 2 z))) + change (∫ z : Fin m → ℂ, weylVacuumWeight m z * + coherentFourierPhase w (WithLp.toLp 2 z) * + ∑' i, inner ℂ (v i) (multiOscillatorWeyl (WithLp.toLp 2 z) (v i))) = _ + rw [← hs.tsum_eq] + simp only [integral_coherentWeyl_kernel] + have he (i : ι) : (Real.pi : ℂ) ^ m * inner ℂ (v i) (multiCoherentVector w) * + inner ℂ (multiCoherentVector w) (v i) = + (Real.pi : ℂ) ^ m * inner ℂ (v i) + (rankOne ℂ (multiCoherentVector w) (multiCoherentVector w) (v i)) := by + rw [rankOne_apply, inner_smul_right] + ring + simp_rw [he] + rw [tsum_mul_left] + rfl + +/-- Actual Gaussian convolution of the complex characteristic equals +the actual coherent diagonal. This holds for every positive trace-class +input before any Gaussian characteristic assumption is imposed. -/ +theorem integral_densityWeyl_convolution {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (w : MultiModePhaseSpace m) : + (∫ z : Fin m → ℂ, weylVacuumWeight m z * + coherentFourierPhase w (WithLp.toLp 2 z) * + densityExpectation (multiModeNumberBasis m) A + (multiOscillatorWeyl (WithLp.toLp 2 z))) = + (Real.pi : ℂ) ^ m * inner ℂ (multiCoherentVector w) (A (multiCoherentVector w)) := by + rw [show (fun z : Fin m → ℂ => weylVacuumWeight m z * + coherentFourierPhase w (WithLp.toLp 2 z) * + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl (WithLp.toLp 2 z))) = + fun z => weylVacuumWeight m z * coherentFourierPhase w (WithLp.toLp 2 z) * + familyExpectation (fun i => CFC.sqrt A (multiModeNumberBasis m i)) + (multiOscillatorWeyl (WithLp.toLp 2 z)) from rfl, + integral_familyWeyl_convolution (fun i => CFC.sqrt A (multiModeNumberBasis m i)) + (summable_sqrt_basis_norm_sq (multiModeNumberBasis m) hA) w] + change (Real.pi : ℂ) ^ m * densityExpectation (multiModeNumberBasis m) A + (rankOne ℂ (multiCoherentVector w) (multiCoherentVector w)) = _ + rw [densityExpectation_rankOne _ hA.1] + +theorem integrable_densityWeyl_convolution {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (w : MultiModePhaseSpace m) : + Integrable (fun z : Fin m → ℂ => weylVacuumWeight m z * + coherentFourierPhase w (WithLp.toLp 2 z) * + densityExpectation (multiModeNumberBasis m) A + (multiOscillatorWeyl (WithLp.toLp 2 z))) := + integrable_familyWeyl_convolution _ (summable_sqrt_basis_norm_sq (multiModeNumberBasis m) hA) w + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/DirectedStrongLimit.lean b/LeanPool/VacuumBellSeparation/Gaussian/DirectedStrongLimit.lean new file mode 100644 index 0000000000..a7a22a1273 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/DirectedStrongLimit.lean @@ -0,0 +1,126 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MonotoneStrongLimit + +/-! +# Bounded increasing positive operator nets + +The index is an arbitrary nonempty directed preorder. No countable cofinal +subset or sequential normality assumption is used. Vectorwise Cauchy filters +are obtained from the supremum of each real quadratic form. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Filter +open scoped Topology + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] +variable {ι : Type*} [Preorder ι] [IsDirectedOrder ι] [Nonempty ι] + +/-- A bounded increasing positive operator net is Cauchy on every vector. -/ +theorem cauchy_map_apply_of_monotone_nonneg_bounded + (A : ι → E →L[ℂ] E) (hmono : Monotone A) (hpos : ∀ i, 0 ≤ A i) + (C : E →L[ℂ] E) (hbound : ∀ i, A i ≤ C) (x : E) : + Cauchy (Filter.map (fun i => A i x) atTop) := by + let q : ι → ℝ := fun i => (inner ℂ x (A i x)).re + have hqmono : Monotone q := by + intro i j hij + have h := (ContinuousLinearMap.le_def.mp (hmono hij)).re_inner_nonneg_right x + simpa [q, inner_sub_right, sub_nonneg] using h + have hqb : BddAbove (Set.range q) := by + refine ⟨(inner ℂ x (C x)).re, ?_⟩ + rintro _ ⟨i, rfl⟩ + have h := (ContinuousLinearMap.le_def.mp (hbound i)).re_inner_nonneg_right x + simpa [q, inner_sub_right, sub_nonneg] using h + have hqle (i : ι) : q i ≤ sSup (Set.range q) := le_csSup hqb ⟨i, rfl⟩ + apply Metric.cauchy_iff.mpr + refine ⟨inferInstance, ?_⟩ + intro ε hε + let K : ℝ := ‖C‖ + 1 + have hK : 0 < K := by dsimp [K]; positivity + have hεhalf : 0 < ε / 2 := half_pos hε + have hδ : 0 < (ε / 2) ^ 2 / K := by positivity + obtain ⟨_, ⟨N, rfl⟩, hN⟩ := exists_lt_of_lt_csSup (Set.range_nonempty q) + (show sSup (Set.range q) - (ε / 2) ^ 2 / K < sSup (Set.range q) by linarith) + have hnear (i : ι) (hi : N ≤ i) : dist (A i x) (A N x) < ε / 2 := by + have hD : 0 ≤ A i - A N := sub_nonneg.mpr (hmono hi) + have hDC : A i - A N ≤ C := (sub_le_self _ (hpos N)).trans (hbound i) + have hDn : ‖A i - A N‖ ≤ ‖C‖ := + CStarAlgebra.norm_le_norm_of_le_of_nonneg hDC hD + have hq : 0 ≤ q i - q N := sub_nonneg.mpr (hqmono hi) + have hsmall : q i - q N < (ε / 2) ^ 2 / K := by linarith [hqle i] + have he : (inner ℂ x ((A i - A N) x)).re = q i - q N := by + simp [q] + have hsq : ‖(A i - A N) x‖ ^ 2 < (ε / 2) ^ 2 := calc + _ ≤ ‖A i - A N‖ * (q i - q N) := by + simpa only [he] using norm_apply_sq_le_norm_mul_inner hD x + _ ≤ ‖C‖ * (q i - q N) := mul_le_mul_of_nonneg_right hDn hq + _ ≤ K * (q i - q N) := by dsimp [K]; nlinarith + _ < (ε / 2) ^ 2 := by + have hh := mul_lt_mul_of_pos_left hsmall hK + rwa [mul_div_cancel₀ _ hK.ne'] at hh + have hn : ‖(A i - A N) x‖ < ε / 2 := + (sq_lt_sq₀ (norm_nonneg _) hεhalf.le).mp hsq + simpa only [dist_eq_norm, sub_apply] using hn + refine ⟨(fun i => A i x) '' Set.Ici N, ?_, ?_⟩ + · apply Filter.mem_map.mpr + exact Filter.eventually_atTop.mpr ⟨N, fun i hi => ⟨i, hi, rfl⟩⟩ + · rintro _ ⟨i, hi, rfl⟩ _ ⟨j, hj, rfl⟩ + have hj' : dist (A N x) (A j x) < ε / 2 := by + rw [dist_comm] + exact hnear j hj + calc + dist (A i x) (A j x) ≤ dist (A i x) (A N x) + dist (A N x) (A j x) := + dist_triangle _ _ _ + _ < ε / 2 + ε / 2 := add_lt_add (hnear i hi) hj' + _ = ε := add_halves ε + +/-- The actual strong limit is the supremum in the full operator order. -/ +theorem exists_strongLimit_of_monotone_nonneg_bounded + (A : ι → E →L[ℂ] E) (hmono : Monotone A) (hpos : ∀ i, 0 ≤ A i) + (C : E →L[ℂ] E) (hbound : ∀ i, A i ≤ C) : + ∃ B : E →L[ℂ] E, (∀ x, Tendsto (fun i => A i x) atTop (𝓝 (B x))) ∧ + 0 ≤ B ∧ IsLUB (Set.range A) B := by + classical + have hex (x : E) : ∃ y, Tendsto (fun i => A i x) atTop (𝓝 y) := + cauchy_map_iff_exists_tendsto.mp + (cauchy_map_apply_of_monotone_nonneg_bounded A hmono hpos C hbound x) + let f : E → E := fun x => Classical.choose (hex x) + have hf (x : E) : Tendsto (fun i => A i x) atTop (𝓝 (f x)) := + Classical.choose_spec (hex x) + let L : E →ₗ[ℂ] E := + { toFun := f + map_add' := fun x y => tendsto_nhds_unique (hf (x + y)) + (by simpa using (hf x).add (hf y)) + map_smul' := fun c x => tendsto_nhds_unique (hf (c • x)) + (by simpa using (hf x).const_smul c) } + have hb (x : E) : ‖L x‖ ≤ ‖C‖ * ‖x‖ := by + apply le_of_tendsto (hf x).norm + exact Filter.Eventually.of_forall fun i => (A i).le_opNorm x |>.trans + (mul_le_mul_of_nonneg_right + (CStarAlgebra.norm_le_norm_of_le_of_nonneg (hbound i) (hpos i)) + (norm_nonneg x)) + let B : E →L[ℂ] E := L.mkContinuous ‖C‖ hb + have hB (x : E) : Tendsto (fun i => A i x) atTop (𝓝 (B x)) := hf x + refine ⟨B, hB, ?_, ?_⟩ + · exact operator_le_of_strong_tendsto (fun _ => tendsto_const_nhds) hB + (Filter.Eventually.of_forall hpos) + · constructor + · rintro _ ⟨i, rfl⟩ + exact operator_le_of_strong_tendsto (fun _ => tendsto_const_nhds) hB + (Filter.eventually_atTop.mpr ⟨i, fun j hij => hmono hij⟩) + · intro D hD + exact operator_le_of_strong_tendsto hB (fun _ => tendsto_const_nhds) + (Filter.Eventually.of_forall fun i => hD ⟨i, rfl⟩) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/EffectPowerTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/EffectPowerTrace.lean new file mode 100644 index 0000000000..35089fc36c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/EffectPowerTrace.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTracePowerOrder +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPositivePowers +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceOrder + +/-! +# The source effect power-trace estimate + +For an actual compact positive reference sigma and 0 h.conjStarAlgEquiv e + +variable {m : ℕ} + +theorem physicalWilliamsonDensity_isFaithfulDensity_iff + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) : + IsFaithfulDensity (physicalWilliamsonDensity S hS ν) ↔ ∀ j, 1 / 2 < ν j := by + rw [← physicalDensityPullback_covarianceProductDensity S hS hν] + change IsFaithfulDensity + ((physicalCongruenceUnitary S hS).symm.conjStarAlgEquiv (covarianceProductDensity ν)) ↔ _ + rw [isFaithfulDensity_conjStarAlgEquiv_iff, covarianceProductDensity_isFaithfulDensity_iff hν] + +theorem faithful_gaussian_quantum_posDef + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsFaithfulDensity A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) + (hQ : (quantumCovariance V modeSymplecticForm).PosSemidef) : + (quantumCovariance V modeSymplecticForm).PosDef := by + have hV := real_posDef_of_quantum_posSemidef hQ (modeSymplecticForm_isUnit m) + obtain ⟨n, ν, S, T, hcard, hν, hST, hTS, hS, hcov⟩ := + exists_quantum_williamson_factorization V modeSymplecticForm hV + transpose_modeSymplecticForm (modeSymplecticForm_isUnit m) hQ + have hnm : n = m := by + simp only [Fintype.card_prod, Fintype.card_fin] at hcard + omega + subst n + have hG' : HasGaussianPhysicalCharacteristic A (S * modeDiagonal ν * Sᵀ) := hcov.symm ▸ hG + have he := gaussianPhysical_eq_physicalWilliamsonDensity hA.isPositiveTraceClass S hS hν hG' + have hfaith : IsFaithfulDensity (physicalWilliamsonDensity S hS ν) := he ▸ hA + have hν' := (physicalWilliamsonDensity_isFaithfulDensity_iff S hS hν).mp hfaith + rw [← hcov] + exact quantumCovariance_symplectic_congruence_posDef S hS (quantum_mode_posDef hν') + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FaithfulPowerDomain.lean b/LeanPool/VacuumBellSeparation/Gaussian/FaithfulPowerDomain.lean new file mode 100644 index 0000000000..d4063c6402 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FaithfulPowerDomain.lean @@ -0,0 +1,69 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SandwichRangeForm +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowers + +/-! +# Positive powers of an actual faithful operator + +Positive real powers of an injective positive bounded operator remain +injective and have dense range. The inverse exists only on that actual +range. The proof uses genuine continuous functional calculus and the +zero-eigenvector implication, without a bounded-inverse assumption. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem positive_rpow_injective {A : E →L[ℂ] E} (hA : 0 ≤ A) + (hinj : Function.Injective A) {s : ℝ} (hs : 0 < s) : + Function.Injective (A ^ s) := by + have hz : ∀ x : E, (A ^ s) x = 0 → x = 0 := by + intro x hx + by_contra hne + have heig : (A ^ s) x = (0 : ℝ) • x := by simpa only [zero_smul] using hx + have hh := rpow_apply_eigenvector (CFC.rpow_nonneg (a := A) (y := s)) + (eigenvalue_mem_real_spectrum hne heig) heig (inv_pos.mpr hs) + rw [CFC.rpow_rpow_of_exponent_nonneg A s s⁻¹ hs.le (inv_nonneg.mpr hs.le) hA, + mul_inv_cancel₀ hs.ne', CFC.rpow_one A hA, + Real.zero_rpow (inv_ne_zero hs.ne'), zero_smul] at hh + exact hne (hinj (hh.trans (map_zero A).symm)) + intro x y hxy + apply sub_eq_zero.mp + apply hz + rw [map_sub, hxy, sub_self] + +theorem selfAdjoint_injective_denseRange {A : E →L[ℂ] E} + (hs : IsSelfAdjoint A) (hinj : Function.Injective A) : DenseRange A := by + have hk : A.ker = ⊥ := LinearMap.ker_eq_bot.mpr hinj + have hc := A.orthogonal_ker + rw [hk, Submodule.bot_orthogonal_eq_top, hs.adjoint_eq] at hc + exact Submodule.dense_iff_topologicalClosure_eq_top.mpr hc.symm + +theorem positive_rpow_denseRange {A : E →L[ℂ] E} (hA : 0 ≤ A) + (hinj : Function.Injective A) {s : ℝ} (hs : 0 < s) : + DenseRange (A ^ s) := + selfAdjoint_injective_denseRange (CFC.rpow_nonneg (a := A) (y := s)).isSelfAdjoint + (positive_rpow_injective hA hinj hs) + +theorem faithful_power_sandwich_unique {σ : E →L[ℂ] E} + (hσ : IsFaithfulDensity σ) {s : ℝ} (hs : 0 < s) + {Θ Ξ : E →L[ℂ] E} (h : σ ^ s * Θ * σ ^ s = σ ^ s * Ξ * σ ^ s) : Θ = Ξ := + sandwich_factorization_unique (σ ^ s) + (positive_rpow_injective hσ.1 hσ.2.2 hs) + (positive_rpow_denseRange hσ.1 hσ.2.2 hs) h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FaithfulPurityDerivative.lean b/LeanPool/VacuumBellSeparation/Gaussian/FaithfulPurityDerivative.lean new file mode 100644 index 0000000000..95f8c568e9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FaithfulPurityDerivative.lean @@ -0,0 +1,170 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PurityScalarTaylor +public import LeanPool.VacuumBellSeparation.Gaussian.HamiltonianSpectralDerivative +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticHamiltonianNormalForm +public import Mathlib.Topology.Semicontinuity.Hemicontinuity + +/-! +# Actual purity differentiation on the faithful covariance domain + +Upper hemicontinuity of the actual spectrum preserves a strict spectral +gap. The proved disconnected scalar Taylor bound therefore supplies the +actual Hermitian spectral trace derivative even at repeated eigenvalues. +The genuine Williamson normal form proves the required gap when every +mode variance is strictly greater than 1/2. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Filter Set +open scoped MatrixOrder Matrix.Norms.L2Operator Topology + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +omit [Fintype ι] [DecidableEq ι] in +theorem finite_common_strict_lower_bound [Finite ι] (v : ι → ℝ) {b : ℝ} + (hv : ∀ i, b < v i) : ∃ a : ℝ, b < a ∧ ∀ i, a < v i := by + classical + let _ : Fintype ι := Fintype.ofFinite ι + have hfin : ∀ s : Finset ι, ∃ a : ℝ, b < a ∧ ∀ i ∈ s, a < v i := by + intro s + induction s using Finset.induction_on with + | empty => exact ⟨b + 1, by linarith, by simp⟩ + | @insert i s hi ih => + obtain ⟨a, hba, ha⟩ := ih + obtain ⟨c, hbc, hci⟩ := exists_between (hv i) + refine ⟨min a c, lt_min hba hbc, ?_⟩ + intro j hj + rcases Finset.mem_insert.mp hj with rfl | hj + · exact (min_le_right _ _).trans_lt hci + · exact (min_le_left _ _).trans_lt (ha j hj) + obtain ⟨a, ha, h⟩ := hfin Finset.univ + exact ⟨a, ha, fun i => h i (Finset.mem_univ i)⟩ + +theorem eventually_eigenvalues_in_signed_interval + (A : HermitianMatrixSpace ι) {a M : ℝ} + (hA : ∀ i, a < |(hermitianMatrix_isHermitian A).eigenvalues i| ∧ + |(hermitianMatrix_isHermitian A).eigenvalues i| < M) : + ∀ᶠ B : HermitianMatrixSpace ι in 𝓝 A, ∀ j, + a < |(hermitianMatrix_isHermitian B).eigenvalues j| ∧ + |(hermitianMatrix_isHermitian B).eigenvalues j| < M := by + let G : Set ℝ := {x | a < |x| ∧ |x| < M} + have hG : IsOpen G := + (isOpen_lt continuous_const continuous_abs).inter + (isOpen_lt continuous_abs continuous_const) + have hspec : spectrum ℝ (A : Matrix ι ι ℂ) ⊆ G := by + rw [(hermitianMatrix_isHermitian A).spectrum_real_eq_range_eigenvalues] + rintro _ ⟨i, rfl⟩ + exact hA i + have he := (upperHemicontinuous_spectrum ℝ (Matrix ι ι ℂ)).forall_isOpen + (A : Matrix ι ι ℂ) G hG hspec + have hc : Continuous (fun B : HermitianMatrixSpace ι => (B : Matrix ι ι ℂ)) := + continuous_subtype_val + filter_upwards [(hc.tendsto A).eventually he] with B hB j + exact hB ((hermitianMatrix_isHermitian B).eigenvalues_mem_spectrum_real j) + +/-- The actual spectral trace derivative, with no local scalar Taylor +hypothesis left and no differentiability of eigenvalue branches required. -/ +theorem hasFDerivAt_faithfulHermitianPurity + (A : HermitianMatrixSpace ι) {r : ℝ} (hr : 0 < r) + (hgap : ∀ i, 1 / 2 < |(hermitianMatrix_isHermitian A).eigenvalues i|) : + HasFDerivAt (hermitianSpectralTrace (fun x => logPurityFactor r |x|)) + (hermitianTraceDerivative A (evenScalarSlope (logPurityFactor r))) A := by + obtain ⟨a, ha, hlow⟩ := finite_common_strict_lower_bound + (fun i => |(hermitianMatrix_isHermitian A).eigenvalues i|) hgap + let M := ‖(A : Matrix ι ι ℂ)‖ + 1 + have hbounds (i : ι) : a < |(hermitianMatrix_isHermitian A).eigenvalues i| ∧ + |(hermitianMatrix_isHermitian A).eigenvalues i| < M := by + refine ⟨hlow i, ?_⟩ + have h := IsometricContinuousFunctionalCalculus.norm_spectrum_le + (A : Matrix ι ι ℂ) ((hermitianMatrix_isHermitian A).eigenvalues_mem_spectrum_real i) + (hermitianMatrix_isHermitian A).isSelfAdjoint + simpa only [Real.norm_eq_abs] using h.trans_lt (lt_add_one _) + obtain ⟨C, hC, hrem⟩ := exists_even_logPurityFactor_quadratic_remainder + (M := M) hr ha + apply hasFDerivAt_hermitianSpectralTrace_of_scalar_remainder A _ _ hC + filter_upwards [eventually_eigenvalues_in_signed_interval A hbounds] with B hB i j + exact hrem _ _ (hbounds i).1.le (hbounds i).2.le (hB j).1.le (hB j).2.le + +theorem abs_eigenvalue_symplecticHamiltonian_williamson + {m : ℕ} (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 0 < ν j) + {x : ℝ} (hx : x ∈ spectrum ℝ + (symplecticHamiltonian modeSymplecticForm (S * modeDiagonal ν * Sᵀ))) : + ∃ j : Fin m, |x| = ν j := by + let H := symplecticHamiltonian modeSymplecticForm (S * modeDiagonal ν * Sᵀ) + have hH : H.IsHermitian := symplecticHamiltonian_isHermitian + transpose_modeSymplecticForm _ + have habs : |x| ∈ spectrum ℝ (CFC.abs H) := by + rw [CFC.abs_eq_cfc_norm H hH.isSelfAdjoint, + cfc_map_spectrum (fun y : ℝ => ‖y‖) H hH.isSelfAdjoint continuous_norm.continuousOn] + exact ⟨x, hx, by simp only [Real.norm_eq_abs]⟩ + have hw := canonical_williamson_covariance_posDef S hS hν + rw [show H = _ from symplecticHamiltonian_eq_williamson_conjugate S hS hν hw, + complex_matrix_abs_unitary_conjugate, + abs_modeHamiltonian (fun j => (hν j).le)] at habs + have hs : spectrum ℝ + ((williamsonHamiltonianUnitary S ν hν hw : Matrix _ _ ℂ) * + complexifyMatrix (modeDiagonal ν) * + (williamsonHamiltonianUnitary S ν hν hw : Matrix _ _ ℂ)ᴴ) = + spectrum ℝ (complexifyMatrix (modeDiagonal ν)) := by + simpa only [Unitary.coe_star, Matrix.star_eq_conjTranspose] using + (Unitary.spectrum_star_right_conjugate (R := ℝ) + (a := complexifyMatrix (modeDiagonal ν)) + (U := williamsonHamiltonianUnitary S ν hν hw)) + rw [hs] at habs + have hc : ((|x| : ℝ) : ℂ) ∈ spectrum ℂ (complexifyMatrix (modeDiagonal ν)) := + spectrum.algebraMap_mem ℂ habs + rw [complexifyMatrix_modeDiagonal, _root_.spectrum_diagonal] at hc + obtain ⟨j, hj⟩ := hc + exact ⟨j.1, (Complex.ofReal_injective hj).symm⟩ + +theorem faithful_williamson_hamiltonian_gap + {m : ℕ} (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 < ν j) : + ∀ x ∈ spectrum ℝ (symplecticHamiltonian modeSymplecticForm + (S * modeDiagonal ν * Sᵀ)), 1 / 2 < |x| := by + intro x hx + obtain ⟨j, hj⟩ := abs_eigenvalue_symplecticHamiltonian_williamson S hS + (fun j => by linarith [hν j]) hx + rw [hj] + exact hν j + +/-- Continuous linear map for the covariance purity derivative, of type `RealSymmetricMatrixSpace +(Fin m × Fin 2) →L[ℝ] ℝ`. -/ +def covariancePurityDerivative {m : ℕ} (r : ℝ) + (V : RealSymmetricMatrixSpace (Fin m × Fin 2)) + (hV : (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ).PosDef) : + RealSymmetricMatrixSpace (Fin m × Fin 2) →L[ℝ] ℝ := + (-(1 / 2) : ℝ) • hamiltonianSpectralDerivative modeSymplecticForm + transpose_modeSymplecticForm V hV (evenScalarSlope (logPurityFactor r)) + +theorem hasFDerivAt_covariancePurityTrace_of_spectral_gap + {m : ℕ} {r : ℝ} (hr : 0 < r) + (V : RealSymmetricMatrixSpace (Fin m × Fin 2)) + (hV : (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ).PosDef) + (hgap : ∀ x ∈ spectrum ℝ (symplecticHamiltonian modeSymplecticForm + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)), 1 / 2 < |x|) : + HasFDerivAt (fun X : RealSymmetricMatrixSpace (Fin m × Fin 2) => + covariancePurityTrace r (X : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)) + (covariancePurityDerivative r V hV) V := by + let H := symmetricHamiltonian modeSymplecticForm transpose_modeSymplecticForm V + have hh := hasFDerivAt_faithfulHermitianPurity H hr + (fun i => hgap _ ((hermitianMatrix_isHermitian H).eigenvalues_mem_spectrum_real i)) + have hc := hh.comp V (hasFDerivAt_symmetricHamiltonian transpose_modeSymplecticForm V hV) + exact hc.const_smul (-(1 / 2) : ℝ) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FaithfulRenyiEffectBound.lean b/LeanPool/VacuumBellSeparation/Gaussian/FaithfulRenyiEffectBound.lean new file mode 100644 index 0000000000..54c2fa13a2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FaithfulRenyiEffectBound.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.RenyiEffectBound + +/-! +# The extended arbitrary-effect Rényi bound, including infinity + +Faithfulness forces every positive effect with zero reference expectation +to vanish. This handles the zero-times-infinity endpoint and removes the +finite-quantity premise from the genuine effect inequality. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +@[simp] theorem positiveEffectExpectation_zero (ρ : E →L[ℂ] E) : + positiveEffectExpectation ρ 0 = 0 := by + simp [positiveEffectExpectation, positiveTrace_zero] + +theorem positiveEffectExpectation_eq_zero_iff {σ M : E →L[ℂ] E} + (hσ : 0 ≤ σ) (hinj : Function.Injective σ) (hM : 0 ≤ M) : + positiveEffectExpectation σ M = 0 ↔ M = 0 := by + constructor + · intro hz + have hGram : CFC.sqrt M * σ * CFC.sqrt M = 0 := + (positiveTrace_eq_zero_iff (conjugate_nonneg_of_nonneg hσ (CFC.sqrt_nonneg M))).mp hz + let T := CFC.sqrt σ * CFC.sqrt M + have hTGram : T.adjoint.comp T = 0 := by + change star (CFC.sqrt σ * CFC.sqrt M) * (CFC.sqrt σ * CFC.sqrt M) = 0 + rw [star_mul, (CFC.sqrt_nonneg σ).isSelfAdjoint.star_eq, + (CFC.sqrt_nonneg M).isSelfAdjoint.star_eq] + calc + _ = CFC.sqrt M * (CFC.sqrt σ * CFC.sqrt σ) * CFC.sqrt M := by noncomm_ring + _ = 0 := by rw [← pow_two, CFC.sq_sqrt σ hσ, hGram] + have hT : T = 0 := adjoint_comp_self_eq_zero_iff.mp hTGram + have hi : Function.Injective (CFC.sqrt σ : E →L[ℂ] E) := by + rw [CFC.sqrt_eq_rpow] + exact positive_rpow_injective hσ hinj (by norm_num) + have hs : CFC.sqrt M = 0 := by + ext x + apply hi + have hx := DFunLike.congr_fun hT x + simpa only [T, mul_apply_eq_comp, zero_apply, map_zero] using hx + calc + M = CFC.sqrt M * CFC.sqrt M := by rw [← pow_two, CFC.sq_sqrt M hM] + _ = 0 := by rw [hs, zero_mul] + · rintro rfl + exact positiveEffectExpectation_zero σ + +theorem faithful_sandwichedRenyi_effect_bound {ρ σ M : E →L[ℂ] E} + (hσ : IsFaithfulDensity σ) {r : ℝ} (hr : 1 < r) (hM₀ : 0 ≤ M) (hM₁ : M ≤ 1) : + positiveEffectExpectation ρ M ^ r ≤ + sandwichedRenyiQuantity ρ σ r * positiveEffectExpectation σ M ^ (r - 1) := by + by_cases hM : M = 0 + · subst M + simp only [positiveEffectExpectation_zero, + ENNReal.zero_rpow_of_pos (lt_trans zero_lt_one hr), + ENNReal.zero_rpow_of_pos (sub_pos.mpr hr), mul_zero, le_refl] + · have he : positiveEffectExpectation σ M ≠ 0 := + mt (positiveEffectExpectation_eq_zero_iff hσ.1 hσ.2.2 hM₀).mp hM + by_cases hQ : sandwichedRenyiQuantity ρ σ r = ∞ + · rw [hQ, ENNReal.top_mul + (ENNReal.rpow_pos_of_nonneg (pos_iff_ne_zero.mpr he) (sub_pos.mpr hr).le).ne'] + exact le_top + · exact finite_sandwichedRenyi_effect_bound hσ hr (lt_top_iff_ne_top.mpr hQ) hM₀ hM₁ + +theorem faithful_sandwichedRenyi_density_effect_bound (b : HilbertBasis ι ℂ E) + {ρ σ M : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) (hσ : IsFaithfulDensity σ) + {r : ℝ} (hr : 1 < r) (hM₀ : 0 ≤ M) (hM₁ : M ≤ 1) : + ENNReal.ofReal (densityExpectation b ρ M).re ^ r ≤ + sandwichedRenyiQuantity ρ σ r * ENNReal.ofReal (densityExpectation b σ M).re ^ (r - 1) := by + have hσtc : IsPositiveTraceClass σ := + ⟨hσ.1, by rw [hσ.2.1]; exact ENNReal.one_lt_top⟩ + simpa only [positiveEffectExpectation_eq_densityExpectation b hρ hM₀, + positiveEffectExpectation_eq_densityExpectation b hσtc hM₀] using + faithful_sandwichedRenyi_effect_bound (ρ := ρ) hσ hr hM₀ hM₁ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FamilyExpectation.lean b/LeanPool/VacuumBellSeparation/Gaussian/FamilyExpectation.lean new file mode 100644 index 0000000000..075c4c6ce3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FamilyExpectation.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SquareSummableFamily +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalState + +/-! +# Actual complex expectations from a square-summable vector family + +The series Σ⟨v_i,Bv_i⟩ converges absolutely for every bounded B. Its norm +is bounded by the summed squared norms times ‖B‖. It is a genuine bounded +complex-linear positive functional, and total squared norm one gives a +state on the actual bounded-operator algebra. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ComplexOrder + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Family expectation given by `∑' i, inner ℂ (v i) (B (v i))`. -/ +def familyExpectation (v : ι → E) (B : E →L[ℂ] E) : ℂ := ∑' i, inner ℂ (v i) (B (v i)) + +omit [CompleteSpace E] in +theorem norm_familyExpectation_term_le (v : ι → E) (B : E →L[ℂ] E) (i : ι) : + ‖inner ℂ (v i) (B (v i))‖ ≤ ‖v i‖ ^ 2 * ‖B‖ := by + calc + _ ≤ ‖v i‖ * ‖B (v i)‖ := norm_inner_le_norm _ _ + _ ≤ ‖v i‖ * (‖B‖ * ‖v i‖) := mul_le_mul_of_nonneg_left (B.le_opNorm _) (norm_nonneg _) + _ = _ := by ring + +omit [CompleteSpace E] in +theorem summable_familyExpectation_terms (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) + (B : E →L[ℂ] E) : Summable fun i => inner ℂ (v i) (B (v i)) := + (hv.mul_right ‖B‖).of_norm_bounded (norm_familyExpectation_term_le v B) + +omit [CompleteSpace E] in +theorem norm_familyExpectation_le (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) + (B : E →L[ℂ] E) : ‖familyExpectation v B‖ ≤ (∑' i, ‖v i‖ ^ 2) * ‖B‖ := + tsum_of_norm_bounded (hv.hasSum.mul_right ‖B‖) (norm_familyExpectation_term_le v B) + +/-- Continuous linear map for the family expectation linear, of type `(E →L[ℂ] E) →ₗ[ℂ] ℂ where +toFun`. -/ +def familyExpectationLinear (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) : + (E →L[ℂ] E) →ₗ[ℂ] ℂ where + toFun := familyExpectation v + map_add' A B := by + simp only [familyExpectation, add_apply, inner_add_right] + exact (summable_familyExpectation_terms v hv A).tsum_add + (summable_familyExpectation_terms v hv B) + map_smul' c A := by + simp only [familyExpectation, smul_apply, inner_smul_right, RingHom.id_apply, smul_eq_mul] + exact tsum_mul_left + +/-- Family expectation continuous linear map of type `(E →L[ℂ] E) →L[ℂ] ℂ`. -/ +def familyExpectationCLM (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) : + (E →L[ℂ] E) →L[ℂ] ℂ := + (familyExpectationLinear v hv).mkContinuous (∑' i, ‖v i‖ ^ 2) (norm_familyExpectation_le v hv) + +omit [CompleteSpace E] in +theorem familyExpectation_one (v : ι → E) : + familyExpectation v 1 = (∑' i, ‖v i‖ ^ 2 : ℝ) := by + unfold familyExpectation + calc + _ = ∑' i, ((‖v i‖ ^ 2 : ℝ) : ℂ) := by + apply tsum_congr + intro i + change inner ℂ (v i) (v i) = ((‖v i‖ ^ 2 : ℝ) : ℂ) + have hi : inner ℂ (v i) (v i) = (‖v i‖ : ℂ) ^ 2 := inner_self_eq_norm_sq_to_K _ + exact hi.trans (Complex.ofReal_pow ‖v i‖ 2).symm + _ = _ := (Complex.ofReal_tsum (L := .unconditional ι) (fun i => ‖v i‖ ^ 2)).symm + +omit [CompleteSpace E] in +theorem familyExpectation_nonneg (v : ι → E) {B : E →L[ℂ] E} (hB : 0 ≤ B) : + 0 ≤ familyExpectation v B := + tsum_nonneg fun i => (ContinuousLinearMap.nonneg_iff_isPositive.mp hB).inner_nonneg_right (v i) + +/-- Family state. -/ +def familyState (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) + (hunit : ∑' i, ‖v i‖ ^ 2 = 1) : State E where + toLinearMap := familyExpectationLinear v hv + map_one' := by + change familyExpectation v 1 = 1 + simpa only [hunit, Complex.ofReal_one] using familyExpectation_one v + map_nonneg' B hB := by + have h := Complex.nonneg_iff.mp + (familyExpectation_nonneg v (ContinuousLinearMap.nonneg_iff_isPositive.mpr hB)) + exact ⟨h.2.symm, h.1⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteBasisCompression.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteBasisCompression.lean new file mode 100644 index 0000000000..00e18a5873 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteBasisCompression.lean @@ -0,0 +1,135 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteMatrixPositiveTrace +public import LeanPool.VacuumBellSeparation.Gaussian.CompressionPowerTrace + +/-! +# Genuine finite coordinate compressions of a Hilbert-space operator + +A finite injective selection from an actual Hilbert basis gives an +isometric embedding of Euclidean Hilbert space. The associated finite +matrix is exactly the actual adjoint compression, not a replacement +state. Positivity, strict positivity for injective input, and the full +positive trace/power-trace bounds are proved for these matrices. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Matrix +open scoped ENNReal ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {ι κ E F : Type*} [Fintype κ] [DecidableEq κ] + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Linear map for the finite basis embedding linear, of type `EuclideanSpace ℂ κ →ₗ[ℂ] E`. -/ +def finiteBasisEmbeddingLinear (b : HilbertBasis ι ℂ E) (f : κ → ι) : + EuclideanSpace ℂ κ →ₗ[ℂ] E := + (EuclideanSpace.basisFun κ ℂ).toBasis.constr ℂ (b ∘ f) + +omit [DecidableEq κ] [CompleteSpace E] in +theorem finiteBasisEmbeddingLinear_basis (b : HilbertBasis ι ℂ E) + (f : κ → ι) (i : κ) : + finiteBasisEmbeddingLinear b f (EuclideanSpace.basisFun κ ℂ i) = b (f i) := + (EuclideanSpace.basisFun κ ℂ).toBasis.constr_basis ℂ (b ∘ f) i + +/-- Linear isometry for the finite basis embedding, of type `EuclideanSpace ℂ κ →ₗᵢ[ℂ] E`. -/ +def finiteBasisEmbedding (b : HilbertBasis ι ℂ E) (f : κ → ι) + (hf : Function.Injective f) : EuclideanSpace ℂ κ →ₗᵢ[ℂ] E := + (finiteBasisEmbeddingLinear b f).isometryOfOrthonormal + (v := (EuclideanSpace.basisFun κ ℂ).toBasis) + (EuclideanSpace.basisFun κ ℂ).orthonormal (by + have he : (finiteBasisEmbeddingLinear b f) ∘ + (EuclideanSpace.basisFun κ ℂ).toBasis = b ∘ f := by + funext i + exact finiteBasisEmbeddingLinear_basis b f i + rw [he] + exact b.orthonormal.comp f hf) + +omit [DecidableEq κ] [CompleteSpace E] in +theorem finiteBasisEmbedding_basis (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) (i : κ) : + finiteBasisEmbedding b f hf (EuclideanSpace.basisFun κ ℂ i) = b (f i) := + finiteBasisEmbeddingLinear_basis b f i + +/-- Compress an operator to the span of the chosen orthonormal family. -/ +def finiteBasisCompression (b : HilbertBasis ι ℂ E) (f : κ → ι) + (hf : Function.Injective f) (A : E →L[ℂ] E) : Matrix κ κ ℂ := + (Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)).symm (compression (finiteBasisEmbedding b f hf) A) + +@[simp] theorem toEuclideanCLM_finiteBasisCompression (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) (A : E →L[ℂ] E) : + (Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)) (finiteBasisCompression b f hf A) = + compression (finiteBasisEmbedding b f hf) A := + (Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)).apply_symm_apply _ + +theorem finiteBasisCompression_entry (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) (A : E →L[ℂ] E) (i j : κ) : + finiteBasisCompression b f hf A i j = inner ℂ (b (f i)) (A (b (f j))) := by + rw [← euclidean_coordinate_inner_matrix (finiteBasisCompression b f hf A) i j, + toEuclideanCLM_finiteBasisCompression, + compression_inner, finiteBasisEmbedding_basis, finiteBasisEmbedding_basis] + +theorem finiteBasisCompression_posSemidef (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) {A : E →L[ℂ] E} (hA : 0 ≤ A) : + (finiteBasisCompression b f hf A).PosSemidef := by + apply Matrix.nonneg_iff_posSemidef.mp + exact map_nonneg (Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)).symm (compression_nonneg _ hA) + +theorem compression_injective_of_positive_injective (i : F →ₗᵢ[ℂ] E) + {A : E →L[ℂ] E} (hA : 0 ≤ A) (hinj : Function.Injective A) : + Function.Injective (compression i A) := by + have hz (x : F) (hx : compression i A x = 0) : x = 0 := by + have hd : (inner ℂ (i x) (A (i x))).re = 0 := by + rw [← compression_inner i A, hx, inner_zero_right, Complex.zero_re] + have hs : CFC.sqrt A (i x) = 0 := by + apply norm_eq_zero.mp + have he := sqrt_norm_sq_eq_diagonal hA (i x) + rw [hd] at he + nlinarith [norm_nonneg (CFC.sqrt A (i x))] + have ha : A (i x) = 0 := by + rw [← CFC.sq_sqrt A hA, pow_two, mul_apply_eq_comp, hs, map_zero] + have hi : i x = 0 := hinj (ha.trans (map_zero A).symm) + exact i.injective (hi.trans (map_zero i).symm) + intro x y hxy + apply sub_eq_zero.mp + apply hz + rw [map_sub, hxy, sub_self] + +theorem finiteBasisCompression_posDef (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) {A : E →L[ℂ] E} + (hA : 0 ≤ A) (hinj : Function.Injective A) : + (finiteBasisCompression b f hf A).PosDef := by + apply (finiteBasisCompression_posSemidef b f hf hA).posDef_iff_isUnit.mpr + have hc := compression_injective_of_positive_injective (finiteBasisEmbedding b f hf) hA hinj + have hu : IsUnit (compression (finiteBasisEmbedding b f hf) A) := + ContinuousLinearMap.isUnit_iff_bijective.mpr + ⟨hc, LinearMap.injective_iff_surjective.mp hc⟩ + exact hu.map (Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)).symm + +theorem finiteBasisCompression_trace_le (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) {A : E →L[ℂ] E} (hA : 0 ≤ A) : + ENNReal.ofReal (finiteBasisCompression b f hf A).trace.re ≤ positiveTrace A := by + rw [← positiveTrace_toEuclideanCLM (finiteBasisCompression_posSemidef b f hf hA), + toEuclideanCLM_finiteBasisCompression] + exact positiveTrace_compression_le _ hA + +theorem finiteBasisCompression_power_trace_le (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) {A : E →L[ℂ] E} + (hc : IsCompactOperator A) (hA : 0 ≤ A) {p : ℝ} (hp : 1 ≤ p) : + finitePositivePowerTrace (finiteBasisCompression b f hf A) p ≤ positiveTrace (A ^ p) := by + rw [← positiveTrace_toEuclideanCLM_rpow (finiteBasisCompression_posSemidef b f hf hA), + toEuclideanCLM_finiteBasisCompression] + exact positiveTrace_compression_rpow_le _ hc hA hp + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteComplexProductSeries.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteComplexProductSeries.lean new file mode 100644 index 0000000000..4020288db3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteComplexProductSeries.lean @@ -0,0 +1,55 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteProductSeries +public import Mathlib.Analysis.Complex.Basic + +/-! +# Absolute finite-product Fubini for complex series + +The index consists of all occupation tuples. Absolute convergence is +proved from the finite product of the norm series before any rearrangement. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem summable_norm_fin_complex_product (m : ℕ) (f : Fin m → ℕ → ℂ) + (hf : ∀ j, Summable (fun n => ‖f j n‖)) : + Summable (fun k : Fin m → ℕ => ‖∏ j, f j (k j)‖) := by + simpa only [norm_prod] using + (hasSum_fin_product_nonneg m (fun j n => ‖f j n‖) (fun j => ∑' n, ‖f j n‖) + (fun j n => norm_nonneg _) (fun j => (hf j).hasSum)).summable + +theorem hasSum_fin_complex_product (m : ℕ) (f : Fin m → ℕ → ℂ) (s : Fin m → ℂ) + (hf : ∀ j, Summable (fun n => ‖f j n‖)) (hs : ∀ j, HasSum (f j) (s j)) : + HasSum (fun k : Fin m → ℕ => ∏ j, f j (k j)) (∏ j, s j) := by + classical + induction m with + | zero => + let : Fintype (Fin 0 → ℕ) := Fintype.ofSubsingleton (fun i => Fin.elim0 i) + simp + | succ m ih => + have htail : HasSum (fun k : Fin m → ℕ => ∏ j, f j.succ (k j)) + (∏ j : Fin m, s j.succ) := + ih (fun j => f j.succ) (fun j => s j.succ) + (fun j => hf j.succ) (fun j => hs j.succ) + have habs : Summable (fun k : Fin m → ℕ => ‖∏ j, f j.succ (k j)‖) := + summable_norm_fin_complex_product m (fun j => f j.succ) (fun j => hf j.succ) + have hsum : HasSum (fun k : ℕ × (Fin m → ℕ) => + f 0 k.1 * ∏ j, f j.succ (k.2 j)) (s 0 * ∏ j : Fin m, s j.succ) := by + have hprod := (summable_mul_of_summable_norm (R := ℂ) (hf 0) habs).hasSum + have heq := tsum_mul_tsum_of_summable_norm (R := ℂ) (hf 0) habs + rw [(hs 0).tsum_eq, htail.tsum_eq] at heq + exact heq.symm ▸ hprod + apply (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).hasSum_iff.mp + simpa only [Function.comp_def, Fin.consEquiv_apply, Fin.prod_univ_succ, + Fin.cons_zero, Fin.cons_succ] using hsum + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteGaussianRealization.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteGaussianRealization.lean new file mode 100644 index 0000000000..3af5a46b4c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteGaussianRealization.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.QuadratureMatrices +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumWilliamson +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeFaithfulness + +/-! +# A concrete finite Gaussian realization for every admissible covariance + +The Hilbert space is the actual full occupation space. The density is the +actual product thermal density, and the Weyl labels are transformed by +the transpose of the proved Williamson matrix. Their characteristic is +literally `exp (-ξᵀ V ξ / 2)` and their multiplication phase is literally +`exp (-i ξᵀ Ω η / 2)`. The state agrees with the positive density trace on +positive square-root sandwiches. + +This constructs a Gaussian representation of the specified real phase +space. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] {m : ℕ} + +/-- Finite Gaussian Weyl given by `multiQuadratureWeyl (modeQuadratureTuple (Sᵀ *ᵥ x))`. -/ +def finiteGaussianWeyl (S : Matrix ι (Fin m × Fin 2) ℝ) (x : ι → ℝ) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + multiQuadratureWeyl (modeQuadratureTuple (Sᵀ *ᵥ x)) + +/-- Covariance product state. -/ +def covarianceProductState {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) : + State (MultiModeOscillatorSpace m) := + multiThermalState (fun j => covarianceThermalParameter_nonneg (hν j)) + (fun j => covarianceThermalParameter_lt_one (hν j)) + +omit [DecidableEq ι] in +theorem finiteGaussianWeyl_mem_unitary (S : Matrix ι (Fin m × Fin 2) ℝ) (x : ι → ℝ) : + finiteGaussianWeyl S x ∈ + unitary (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) := + multiQuadratureWeyl_mem_unitary _ + +omit [DecidableEq ι] in +/-- Literal Weyl multiplication for the transformed real phase space. -/ +theorem finiteGaussianWeyl_mul (S : Matrix ι (Fin m × Fin 2) ℝ) + (Ω : Matrix ι ι ℝ) + (hΩ : (S * modeSymplecticForm : Matrix ι (Fin m × Fin 2) ℝ) * Sᵀ = Ω) + (x y : ι → ℝ) : + finiteGaussianWeyl S x * finiteGaussianWeyl S y = + Complex.exp (-(Complex.I * (((x ⬝ᵥ (Ω *ᵥ y)) / 2 : ℝ) : ℂ))) • + finiteGaussianWeyl S (x + y) := by + subst Ω + simp only [finiteGaussianWeyl, multiQuadratureWeyl_mul, + Matrix.mulVec_add, modeQuadratureTuple_add] + rw [← dotProduct_modeSymplecticForm, dotProduct_congruence] + +omit [DecidableEq ι] in +/-- The characteristic of the actual density state has the prescribed +covariance after the genuine Williamson coordinate change. -/ +theorem covarianceProductState_finiteGaussianWeyl {ν : Fin m → ℝ} + (hν : ∀ j, 1 / 2 ≤ ν j) (S : Matrix ι (Fin m × Fin 2) ℝ) + (V : Matrix ι ι ℝ) (hV : S * modeDiagonal ν * Sᵀ = V) (x : ι → ℝ) : + covarianceProductState hν (finiteGaussianWeyl S x) = + Complex.exp ((-(1 / 2) * (x ⬝ᵥ (V *ᵥ x)) : ℝ) : ℂ) := by + rw [covarianceProductState, finiteGaussianWeyl, multiThermalState_quadratureWeyl] + simp only [thermalQuadratureVariance_covarianceParameter (hν _), modeQuadratureTuple] + rw [← dotProduct_modeDiagonal, dotProduct_congruence, hV] + +/-- The constructed complex state is the actual density functional on +positive operators, where the positive extended trace is applicable. -/ +theorem positiveTrace_covarianceProduct_sandwich {ν : Fin m → ℝ} + (hν : ∀ j, 1 / 2 ≤ ν j) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) : + positiveTrace (CFC.sqrt (covarianceProductDensity ν) * A * + CFC.sqrt (covarianceProductDensity ν)) = + ENNReal.ofReal (covarianceProductState hν A).re := + positiveTrace_multiThermal_sandwich + (fun j => covarianceThermalParameter_nonneg (hν j)) + (fun j => covarianceThermalParameter_lt_one (hν j)) hA + +/-- Quantum uncertainty supplies an actual finite Gaussian realization. +The matrix inverse and dimension relation are retained explicitly. -/ +theorem exists_finite_gaussian_realization (V Ω : Matrix ι ι ℝ) + (hV : V.PosDef) (hΩ : Ωᵀ = -Ω) (hΩunit : IsUnit Ω) + (hquantum : (quantumCovariance V Ω).PosSemidef) : + ∃ (m : ℕ) (ν : Fin m → ℝ) (hν : ∀ j, 1 / 2 ≤ ν j) + (S : Matrix ι (Fin m × Fin 2) ℝ) (T : Matrix (Fin m × Fin 2) ι ℝ), + Fintype.card ι = 2 * m ∧ S * T = 1 ∧ T * S = 1 ∧ + 0 ≤ covarianceProductDensity ν ∧ positiveTrace (covarianceProductDensity ν) = 1 ∧ + (∀ x, finiteGaussianWeyl S x ∈ + unitary (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m)) ∧ + (∀ x y, finiteGaussianWeyl S x * finiteGaussianWeyl S y = + Complex.exp (-(Complex.I * (((x ⬝ᵥ (Ω *ᵥ y)) / 2 : ℝ) : ℂ))) • + finiteGaussianWeyl S (x + y)) ∧ + (∀ x, covarianceProductState hν (finiteGaussianWeyl S x) = + Complex.exp ((-(1 / 2) * (x ⬝ᵥ (V *ᵥ x)) : ℝ) : ℂ)) := by + obtain ⟨m, ν, S, T, hcard, hν, hST, hTS, hsymp, hcov⟩ := + exists_quantum_williamson_factorization V Ω hV hΩ hΩunit hquantum + exact ⟨m, ν, hν, S, T, hcard, hST, hTS, covarianceProductDensity_nonneg hν, + positiveTrace_covarianceProductDensity hν, finiteGaussianWeyl_mem_unitary S, + finiteGaussianWeyl_mul S Ω hsymp, + covarianceProductState_finiteGaussianWeyl hν S V hcov⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteHilbertSchmidtDual.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteHilbertSchmidtDual.lean new file mode 100644 index 0000000000..258a6da17a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteHilbertSchmidtDual.lean @@ -0,0 +1,93 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRenyiThreeLines + +/-! +# The actual normalized positive Hilbert--Schmidt dual matrix + +For a strictly positive matrix in nonzero finite dimension, the positive +matrix divided by sqrt(Tr(A^2)) is the genuine Hilbert--Schmidt norm-one +dual test. The trace pairing equals sqrt(Tr(A^2)). Empty matrices will be +handled separately at the finite interpolation endpoint. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexConjugate ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +private theorem hilbertSchmidt_rpow_two (A : Matrix ι ι ℂ) (hA : 0 ≤ A) : + A ^ (2 : ℝ) = A * A := by + simpa only [Nat.cast_ofNat, pow_two] using CFC.rpow_natCast A 2 hA + +/-- Finite Hilbert schmidt dual given by `(Real.sqrt ((A ^ (2 : ℝ)).trace.re))⁻¹ • A`. -/ +def finiteHilbertSchmidtDual (A : Matrix ι ι ℂ) : Matrix ι ι ℂ := + (Real.sqrt ((A ^ (2 : ℝ)).trace.re))⁻¹ • A + +theorem real_trace_positive_square_pos [Nonempty ι] {A : Matrix ι ι ℂ} (hA : A.PosDef) : + 0 < (A ^ (2 : ℝ)).trace.re := by + rw [complex_trace_positive_rpow hA 2, Complex.ofReal_re] + let i : ι := Classical.arbitrary ι + exact (Real.rpow_pos_of_pos (hA.eigenvalues_pos i) 2).trans_le + (Finset.single_le_sum (fun j (_ : j ∈ Finset.univ) => + Real.rpow_nonneg (hA.eigenvalues_pos j).le 2) (Finset.mem_univ i)) + +theorem finiteHilbertSchmidtDual_posDef [Nonempty ι] {A : Matrix ι ι ℂ} (hA : A.PosDef) : + (finiteHilbertSchmidtDual A).PosDef := + hA.smul (inv_pos.mpr (Real.sqrt_pos.mpr (real_trace_positive_square_pos hA))) + +theorem finiteHilbertSchmidtDual_square_trace [Nonempty ι] {A : Matrix ι ι ℂ} + (hA : A.PosDef) : ((finiteHilbertSchmidtDual A) ^ (2 : ℝ)).trace.re = 1 := by + let N := (A ^ (2 : ℝ)).trace.re + let c := (Real.sqrt N)⁻¹ + have hN : 0 < N := real_trace_positive_square_pos hA + have hNs : Real.sqrt N ≠ 0 := (Real.sqrt_pos.mpr hN).ne' + have hX := finiteHilbertSchmidtDual_posDef hA + have hn : (A * A).trace.re = N := by + dsimp only [N] + rw [hilbertSchmidt_rpow_two A hA.posSemidef.nonneg] + have hc : c * c * N = 1 := by + dsimp only [c] + field_simp [hNs] + nlinarith [Real.sq_sqrt hN.le] + rw [hilbertSchmidt_rpow_two _ hX.posSemidef.nonneg] + change ((c • A) * (c • A)).trace.re = 1 + rw [smul_mul_smul_comm, Matrix.trace_smul, ← RCLike.re_eq_complex_re, + RCLike.smul_re, RCLike.re_eq_complex_re, hn] + exact hc + +theorem norm_trace_finiteHilbertSchmidtDual_mul [Nonempty ι] {A : Matrix ι ι ℂ} + (hA : A.PosDef) : ‖(finiteHilbertSchmidtDual A * A).trace‖ = + Real.sqrt ((A ^ (2 : ℝ)).trace.re) := by + let N := (A ^ (2 : ℝ)).trace.re + let c := (Real.sqrt N)⁻¹ + have hN : 0 < N := real_trace_positive_square_pos hA + have hNs : Real.sqrt N ≠ 0 := (Real.sqrt_pos.mpr hN).ne' + have hc : 0 < c := inv_pos.mpr (Real.sqrt_pos.mpr hN) + have ht : (A * A).trace = (N : ℂ) := by + have h := complex_trace_positive_rpow hA 2 + have hr := congrArg Complex.re h + rw [Complex.ofReal_re] at hr + rw [hilbertSchmidt_rpow_two A hA.posSemidef.nonneg] at h + exact h.trans (congrArg (fun x : ℝ => (x : ℂ)) hr.symm) + change ‖((c • A) * A).trace‖ = Real.sqrt N + rw [smul_mul_assoc, Matrix.trace_smul, ht, norm_smul, Real.norm_eq_abs, + abs_of_pos hc, Complex.norm_real, Real.norm_eq_abs, abs_of_pos hN] + dsimp only [c] + apply (mul_left_cancel₀ hNs) + rw [← mul_assoc, mul_inv_cancel₀ hNs, one_mul] + nlinarith [Real.sq_sqrt hN.le] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteMatrixPositiveTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteMatrixPositiveTrace.lean new file mode 100644 index 0000000000..db286618b7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteMatrixPositiveTrace.lean @@ -0,0 +1,84 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRenyiInterpolation +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTrace + +/-! +# Finite matrix traces are the actual Hilbert-space positive trace + +The pinned star-algebra equivalence sends a matrix to its bounded operator +on genuine Euclidean Hilbert space. Computing in the actual coordinate +Hilbert basis identifies the full positiveTrace with the finite matrix +trace, and genuine functional calculus transports every real power. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix ContinuousLinearMap +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem euclidean_coordinate_inner_matrix (A : Matrix ι ι ℂ) (i j : ι) : + inner ℂ (EuclideanSpace.basisFun ι ℂ i) + ((Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) A (EuclideanSpace.basisFun ι ℂ j)) = A i j := by + rw [EuclideanSpace.basisFun_apply, EuclideanSpace.basisFun_apply, + EuclideanSpace.inner_single_left, map_one, one_mul] + change (WithLp.ofLp ((Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) A + (EuclideanSpace.single j 1))) i = A i j + rw [Matrix.ofLp_toEuclideanCLM, PiLp.ofLp_single, Matrix.mulVec_single_one] + rfl + +theorem positiveTrace_toEuclideanCLM {A : Matrix ι ι ℂ} (hA : A.PosSemidef) : + positiveTrace ((Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) A) = ENNReal.ofReal A.trace.re := by + let b := (EuclideanSpace.basisFun ι ℂ).toHilbertBasis + rw [positiveTrace_eq_tsum_diagonal b (map_nonneg (Matrix.toEuclideanCLM (n := ι) + (𝕜 := ℂ)) hA.nonneg)] + have he (i : ι) : inner ℂ (b i) ((Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) A (b i)) = A i i := by + simpa only [b, OrthonormalBasis.coe_toHilbertBasis] + using euclidean_coordinate_inner_matrix A i i + simp only [he, tsum_fintype] + rw [← ENNReal.ofReal_sum_of_nonneg (fun i _ => + (Complex.nonneg_iff.mp (hA.diag_nonneg (i := i))).1)] + congr 1 + simp only [Matrix.trace, Matrix.diag_apply, Complex.re_sum] + +theorem toEuclideanCLM_rpow {A : Matrix ι ι ℂ} (hA : A.PosSemidef) (p : ℝ) : + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (A ^ p) = ((Matrix.toEuclideanCLM (n := ι) + (𝕜 := ℂ)) A) ^ p := by + have hmap := map_nonneg (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) hA.nonneg + rw [CFC.rpow_eq_cfc_real hA.nonneg, CFC.rpow_eq_cfc_real hmap] + let euclideanLinear := + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)).toAlgEquiv.toLinearEquiv.toLinearMap + exact StarAlgHomClass.map_cfc (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (fun x : ℝ => x ^ p) A + (A.finite_real_spectrum.continuousOn _) + euclideanLinear.continuous_of_finiteDimensional + hA.isHermitian.isSelfAdjoint hmap.isSelfAdjoint + +theorem positiveTrace_toEuclideanCLM_rpow {A : Matrix ι ι ℂ} + (hA : A.PosSemidef) (p : ℝ) : + positiveTrace (((Matrix.toEuclideanCLM (n := ι) + (𝕜 := ℂ)) A) ^ p) = finitePositivePowerTrace A p := by + rw [← toEuclideanCLM_rpow hA p, + positiveTrace_toEuclideanCLM (CFC.rpow_nonneg (a := A) (y := p)).posSemidef] + rfl + +theorem toEuclideanCLM_finiteRenyiSandwich {ρ σ : Matrix ι ι ℂ} + (hσ : σ.PosSemidef) (τ : ℝ) : + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (finiteRenyiSandwich ρ σ τ) = + ((Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) σ) ^ (-τ / 2) * (Matrix.toEuclideanCLM (n := ι) + (𝕜 := ℂ)) ρ * + ((Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) σ) ^ (-τ / 2) := by + simp only [finiteRenyiSandwich, map_mul, toEuclideanCLM_rpow hσ] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FinitePowerBounds.lean b/LeanPool/VacuumBellSeparation/Gaussian/FinitePowerBounds.lean new file mode 100644 index 0000000000..d3eaf108c5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FinitePowerBounds.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FinitePowerTraceHolder + +/-! +# Actual strip bounds for finite spectral complex powers + +Imaginary powers are unitary, so the norm depends only on the real part +of the exponent. Compact real intervals therefore give uniform bounds +on complete vertical strips. A separate genuine trace-norm endpoint +bounds Tr(A^z U) by Tr(A^(Re z)). +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Set +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexConjugate ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem complex_trace_positive_rpow {A : Matrix ι ι ℂ} (hA : A.PosDef) (p : ℝ) : + (A ^ p).trace = (∑ i, hA.isHermitian.eigenvalues i ^ p : ℝ) := by + rw [CFC.rpow_eq_cfc_real hA.posSemidef.nonneg, hA.isHermitian.cfc_eq, + Matrix.IsHermitian.cfc, Unitary.conjStarAlgAut_apply, Matrix.trace_mul_cycle, + Unitary.coe_star_mul_self, Matrix.one_mul, Matrix.trace_diagonal] + simp only [Function.comp_apply, RCLike.ofReal_eq_complex_ofReal, Complex.ofReal_sum] + +theorem real_trace_positive_rpow_nonneg {A : Matrix ι ι ℂ} (hA : A.PosDef) (p : ℝ) : + 0 ≤ (A ^ p).trace.re := by + rw [complex_trace_positive_rpow hA p, Complex.ofReal_re] + exact Finset.sum_nonneg fun i _ => Real.rpow_nonneg (hA.eigenvalues_pos i).le p + +theorem norm_unitary_entry_le_one (U : unitary (Matrix ι ι ℂ)) (i j : ι) : + ‖(U : Matrix ι ι ℂ) i j‖ ≤ 1 := by + have hs := Finset.single_le_sum (fun k (_ : k ∈ Finset.univ) => + unitaryOverlapWeight_nonneg U i k) (Finset.mem_univ j) + rw [sum_unitaryOverlapWeight_row] at hs + dsimp only [unitaryOverlapWeight] at hs + nlinarith [norm_nonneg ((U : Matrix ι ι ℂ) i j)] + +theorem norm_trace_diagonal_mul_unitary_le (U : unitary (Matrix ι ι ℂ)) (a : ι → ℂ) : + ‖(Matrix.diagonal a * (U : Matrix ι ι ℂ)).trace‖ ≤ ∑ i, ‖a i‖ := by + simp only [Matrix.trace, Matrix.diag_apply, Matrix.diagonal_mul] + apply (norm_sum_le _ _).trans + apply Finset.sum_le_sum + intro i _ + rw [norm_mul] + simpa only [mul_one] using mul_le_mul_of_nonneg_left (norm_unitary_entry_le_one U i i) + (norm_nonneg _) + +theorem norm_trace_complexPower_mul_unitary_le {A : Matrix ι ι ℂ} (hA : A.PosDef) + (z : ℂ) (U : unitary (Matrix ι ι ℂ)) : + ‖(positiveMatrixComplexPower hA z * (U : Matrix ι ι ℂ)).trace‖ ≤ (A ^ z.re).trace.re := by + let W := hA.isHermitian.eigenvectorUnitary + let a : ι → ℂ := fun i => Complex.exp (z * (Real.log (hA.isHermitian.eigenvalues i) : ℂ)) + have he : (positiveMatrixComplexPower hA z * (U : Matrix ι ι ℂ)).trace = + (Matrix.diagonal a * ((star W * U * W : unitary (Matrix ι ι ℂ)) : Matrix ι ι ℂ)).trace := by + change (((W : Matrix ι ι ℂ) * Matrix.diagonal a * star (W : Matrix ι ι ℂ)) * + (U : Matrix ι ι ℂ)).trace = _ + simp only [Submonoid.coe_mul, Unitary.coe_star] + calc + _ = ((W : Matrix ι ι ℂ) * (Matrix.diagonal a * (star (W : Matrix ι ι ℂ) * + (U : Matrix ι ι ℂ)))).trace := by + congr 1 + noncomm_ring + _ = _ := by rw [Matrix.trace_mul_comm]; congr 1; noncomm_ring + rw [he, complex_trace_positive_rpow hA z.re, Complex.ofReal_re] + have h := norm_trace_diagonal_mul_unitary_le (star W * U * W) a + simpa only [a, norm_positiveMatrixComplexPower_eigenvalue hA z] using h + +theorem norm_trace_positive_mul_unitary_le {A : Matrix ι ι ℂ} (hA : A.PosDef) + (U : unitary (Matrix ι ι ℂ)) : ‖(A * (U : Matrix ι ι ℂ)).trace‖ ≤ A.trace.re := by + simpa only [positiveMatrixComplexPower_one, Complex.one_re, + CFC.rpow_one A hA.posSemidef.nonneg] using + norm_trace_complexPower_mul_unitary_le hA 1 U + +theorem norm_positiveMatrixComplexPower_re {A : Matrix ι ι ℂ} (hA : A.PosDef) (z : ℂ) : + ‖positiveMatrixComplexPower hA z‖ = ‖positiveMatrixComplexPower hA (z.re : ℂ)‖ := by + rw [positiveMatrixComplexPower_split, CStarRing.norm_mul_coe_unitary, + positiveMatrixComplexPower_real] + +theorem exists_bound_positiveMatrixComplexPower_strip {A : Matrix ι ι ℂ} + (hA : A.PosDef) (a b : ℝ) : + ∃ C : ℝ, 0 ≤ C ∧ ∀ z : ℂ, z.re ∈ Icc a b → ‖positiveMatrixComplexPower hA z‖ ≤ C := by + have hc : Continuous (fun t : ℝ => ‖positiveMatrixComplexPower hA (t : ℂ)‖) := + ((differentiable_positiveMatrixComplexPower hA).continuous.comp Complex.continuous_ofReal).norm + obtain ⟨C, hC⟩ := isCompact_Icc.bddAbove_image hc.continuousOn + refine ⟨max C 0, le_max_right _ _, ?_⟩ + intro z hz + rw [norm_positiveMatrixComplexPower_re] + exact (hC ⟨z.re, hz, rfl⟩).trans (le_max_left _ _) + +theorem exists_bound_positiveMatrixComplexPower_real_mul_strip {A : Matrix ι ι ℂ} + (hA : A.PosDef) (c : ℝ) : + ∃ C : ℝ, 0 ≤ C ∧ ∀ z : ℂ, z.re ∈ Icc 0 1 → + ‖positiveMatrixComplexPower hA ((c : ℂ) * z)‖ ≤ C := by + obtain ⟨C, hC, hb⟩ := exists_bound_positiveMatrixComplexPower_strip hA (min 0 c) (max 0 c) + refine ⟨C, hC, ?_⟩ + intro z hz + apply hb + simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] + by_cases hc : 0 ≤ c + · rw [min_eq_left hc, max_eq_right hc] + exact ⟨mul_nonneg hc hz.1, by nlinarith [hz.2]⟩ + · have hc' := le_of_lt (lt_of_not_ge hc) + rw [min_eq_right hc', max_eq_left hc'] + exact ⟨by nlinarith [hz.2], mul_nonpos_of_nonpos_of_nonneg hc' hz.1⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FinitePowerTraceHolder.lean b/LeanPool/VacuumBellSeparation/Gaussian/FinitePowerTraceHolder.lean new file mode 100644 index 0000000000..78beaffc1c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FinitePowerTraceHolder.lean @@ -0,0 +1,109 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveMatrixComplexPowers + +/-! +# Finite positive power traces and unitary Holder bounds + +These genuine finite matrix trace identities are the endpoint estimates +for spectral compression interpolation. The arbitrary unitary factors +and complex exponents retain all boundary phases. No passage to the full +infinite-dimensional density is asserted here. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexConjugate ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- The extended nonnegative real trace of the matrix power, obtained from the real part of the +ordinary matrix trace. -/ +def finitePositivePowerTrace (A : Matrix ι ι ℂ) (p : ℝ) : ℝ≥0∞ := + ENNReal.ofReal (A ^ p).trace.re + +theorem finitePositivePowerTrace_eq_eigenvalue_sum {A : Matrix ι ι ℂ} + (hA : A.PosDef) (p : ℝ) : + finitePositivePowerTrace A p = + ∑ i, ENNReal.ofReal (hA.isHermitian.eigenvalues i ^ p) := by + rw [finitePositivePowerTrace, CFC.rpow_eq_cfc_real hA.posSemidef.nonneg, + hA.isHermitian.cfc_eq, Matrix.IsHermitian.cfc, Unitary.conjStarAlgAut_apply, + Matrix.trace_mul_cycle, Unitary.coe_star_mul_self, Matrix.one_mul, Matrix.trace_diagonal, + Complex.re_sum] + simp only [Function.comp_apply, RCLike.ofReal_eq_complex_ofReal, Complex.ofReal_re] + exact ENNReal.ofReal_sum_of_nonneg fun i _ => Real.rpow_nonneg (hA.eigenvalues_pos i).le p + +theorem finitePositivePowerTrace_lt_top (A : Matrix ι ι ℂ) (p : ℝ) : + finitePositivePowerTrace A p < ∞ := ENNReal.ofReal_lt_top + +theorem trace_unitary_conjugates_product (U V W X : unitary (Matrix ι ι ℂ)) + (a b : ι → ℂ) : + (((U : Matrix ι ι ℂ) * Matrix.diagonal a * star (U : Matrix ι ι ℂ)) * + (W : Matrix ι ι ℂ) * + ((V : Matrix ι ι ℂ) * Matrix.diagonal b * star (V : Matrix ι ι ℂ)) * + (X : Matrix ι ι ℂ)).trace = + (Matrix.diagonal a * ((star U * W * V : unitary (Matrix ι ι ℂ)) : Matrix ι ι ℂ) * + Matrix.diagonal b * ((star V * X * U : unitary (Matrix ι ι ℂ)) : Matrix ι ι ℂ)).trace := by + simp only [Submonoid.coe_mul, Unitary.coe_star] + calc + _ = ((U : Matrix ι ι ℂ) * + (Matrix.diagonal a * (star (U : Matrix ι ι ℂ) * (W : Matrix ι ι ℂ) * (V : Matrix ι ι ℂ)) * + Matrix.diagonal b * (star (V : Matrix ι ι ℂ) * (X : Matrix ι ι ℂ)))).trace := by + congr 1 + noncomm_ring + _ = _ := by rw [Matrix.trace_mul_comm]; congr 1; noncomm_ring + +theorem finiteComplexPower_trace_holder {A B : Matrix ι ι ℂ} + (hA : A.PosDef) (hB : B.PosDef) (U V : unitary (Matrix ι ι ℂ)) + (z w : ℂ) {p q : ℝ} (hpq : p.HolderConjugate q) : + ENNReal.ofReal ‖(positiveMatrixComplexPower hA z * (U : Matrix ι ι ℂ) * + positiveMatrixComplexPower hB w * (V : Matrix ι ι ℂ)).trace‖ ≤ + finitePositivePowerTrace A (z.re * p) ^ (1 / p) * + finitePositivePowerTrace B (w.re * q) ^ (1 / q) := by + let UA := hA.isHermitian.eigenvectorUnitary + let UB := hB.isHermitian.eigenvectorUnitary + let a : ι → ℂ := fun i => Complex.exp (z * (Real.log (hA.isHermitian.eigenvalues i) : ℂ)) + let b : ι → ℂ := fun i => Complex.exp (w * (Real.log (hB.isHermitian.eigenvalues i) : ℂ)) + have ht : (positiveMatrixComplexPower hA z * (U : Matrix ι ι ℂ) * + positiveMatrixComplexPower hB w * (V : Matrix ι ι ℂ)).trace = + (Matrix.diagonal a * ((star UA * U * UB : unitary (Matrix ι ι ℂ)) : Matrix ι ι ℂ) * + Matrix.diagonal b * ((star UB * V * UA : unitary + (Matrix ι ι ℂ)) : Matrix ι ι ℂ)).trace := by + exact trace_unitary_conjugates_product UA UB U V a b + have ha (i : ι) : ENNReal.ofReal ‖a i‖ ^ p = + ENNReal.ofReal (hA.isHermitian.eigenvalues i ^ (z.re * p)) := by + dsimp only [a] + rw [norm_positiveMatrixComplexPower_eigenvalue hA z i, + ENNReal.ofReal_rpow_of_nonneg (Real.rpow_nonneg (hA.eigenvalues_pos i).le _) hpq.nonneg, + Real.rpow_mul (hA.eigenvalues_pos i).le] + have hb (i : ι) : ENNReal.ofReal ‖b i‖ ^ q = + ENNReal.ofReal (hB.isHermitian.eigenvalues i ^ (w.re * q)) := by + dsimp only [b] + rw [norm_positiveMatrixComplexPower_eigenvalue hB w i, + ENNReal.ofReal_rpow_of_nonneg (Real.rpow_nonneg (hB.eigenvalues_pos i).le _) hpq.symm.nonneg, + Real.rpow_mul (hB.eigenvalues_pos i).le] + rw [ht, finitePositivePowerTrace_eq_eigenvalue_sum hA, + finitePositivePowerTrace_eq_eigenvalue_sum hB] + simpa only [ha, hb] using ennreal_trace_two_unitary_diagonals_holder + (star UA * U * UB) (star UB * V * UA) a b hpq + +theorem finitePositive_trace_unitary_holder {A B : Matrix ι ι ℂ} + (hA : A.PosDef) (hB : B.PosDef) (U V : unitary (Matrix ι ι ℂ)) + {p q : ℝ} (hpq : p.HolderConjugate q) : + ENNReal.ofReal ‖(A * (U : Matrix ι ι ℂ) * B * (V : Matrix ι ι ℂ)).trace‖ ≤ + finitePositivePowerTrace A p ^ (1 / p) * finitePositivePowerTrace B q ^ (1 / q) := by + simpa only [positiveMatrixComplexPower_one, Complex.one_re, one_mul] using + finiteComplexPower_trace_holder hA hB U V 1 1 hpq + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteProductSeries.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteProductSeries.lean new file mode 100644 index 0000000000..44e4ec1119 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteProductSeries.lean @@ -0,0 +1,52 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Tactic.Linter.HaveILetI +public import Mathlib.Topology.Separation.CompletelyRegular +public import Mathlib.Algebra.BigOperators.Fin +public import Mathlib.Topology.Algebra.InfiniteSum.Ring +public import Mathlib.Basic.Real.Basic +public import Mathlib.Analysis.Normed.Ring.InfiniteSum + +/-! +# Absolutely convergent finite products of nonnegative series + +The multi-index series is over all tuples of natural numbers, not a finite +cutoff. Its convergence and value follow inductively from nonnegative +Fubini and the finite-tuple equivalence. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem hasSum_fin_product_nonneg (m : ℕ) (f : Fin m → ℕ → ℝ) (s : Fin m → ℝ) + (hf : ∀ j n, 0 ≤ f j n) (hs : ∀ j, HasSum (f j) (s j)) : + HasSum (fun k : Fin m → ℕ => ∏ j, f j (k j)) (∏ j, s j) := by + classical + induction m with + | zero => + let : Fintype (Fin 0 → ℕ) := Fintype.ofSubsingleton (fun i => Fin.elim0 i) + simp + | succ m ih => + have htail : HasSum (fun k : Fin m → ℕ => ∏ j, f j.succ (k j)) (∏ j : Fin m, s j.succ) := + ih (fun j => f j.succ) (fun j => s j.succ) + (fun j n => hf j.succ n) (fun j => hs j.succ) + have hnonneg (k : Fin m → ℕ) : 0 ≤ ∏ j, f j.succ (k j) := + Finset.prod_nonneg fun j _ => hf j.succ (k j) + have habs : Summable (fun k : ℕ × (Fin m → ℕ) => + f 0 k.1 * ∏ j, f j.succ (k.2 j)) := + (hs 0).summable.mul_of_nonneg htail.summable (hf 0) hnonneg + have hsum : HasSum (fun k : ℕ × (Fin m → ℕ) => + f 0 k.1 * ∏ j, f j.succ (k.2 j)) (s 0 * ∏ j : Fin m, s j.succ) := + (hs 0).mul htail habs + apply (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).hasSum_iff.mp + simpa only [Function.comp_def, Fin.consEquiv_apply, Fin.prod_univ_succ, + Fin.cons_zero, Fin.cons_succ] using hsum + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteRankNuclearBound.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteRankNuclearBound.lean new file mode 100644 index 0000000000..178344073d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteRankNuclearBound.lean @@ -0,0 +1,110 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompactTraceNorm +public import Mathlib.Analysis.Normed.Operator.Compact.FiniteDimension +public import Mathlib.LinearAlgebra.Dimension.Finite + +/-! +# The genuine nuclear norm is bounded by rank times operator norm + +Only nonzero eigenvectors occur in the range. Their actual linear +independence bounds each finite spectral sum by the dimension of the +given finite-dimensional range space, including a possibly infinite +kernel and a nonseparable ambient Hilbert space. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +omit [CompleteSpace E] in +theorem isCompactOperator_of_range_le_finiteDimensional + (A : E →L[ℂ] E) (K : Submodule ℂ E) [FiniteDimensional ℂ K] + (hK : A.toLinearMap.range ≤ K) : IsCompactOperator A := by + let T := A.codRestrict K (fun x => hK ⟨x, rfl⟩) + have hc : IsCompactOperator T := isCompactOperator_of_locallyCompactSpace_dom T + convert hc.clm_comp K.subtypeL using 1 + funext x + rfl + +theorem compactSelfAdjoint_eigenvalue_abs_le_norm {A : E →L[ℂ] E} + (hc : IsCompactOperator A) (hA : IsSelfAdjoint A) (i : operatorEigenIndex A) : + |i.1.re| ≤ ‖A‖ := by + have h := A.le_opNorm (compactSelfAdjointBasis hc hA i) + rw [compactSelfAdjointBasis_apply_operator, norm_smul, + (compactSelfAdjointBasis hc hA).orthonormal.norm_eq_one, + Complex.norm_real, Real.norm_eq_abs, mul_one, mul_one] at h + exact h + +theorem compactSelfAdjoint_nonzero_eigenvector_mem_range {A : E →L[ℂ] E} + (hc : IsCompactOperator A) (hA : IsSelfAdjoint A) + (i : operatorEigenIndex A) (hi : i.1.re ≠ 0) : + compactSelfAdjointBasis hc hA i ∈ A.toLinearMap.range := by + refine ⟨(i.1.re : ℂ)⁻¹ • compactSelfAdjointBasis hc hA i, ?_⟩ + change A ((i.1.re : ℂ)⁻¹ • compactSelfAdjointBasis hc hA i) = + compactSelfAdjointBasis hc hA i + rw [A.map_smul, compactSelfAdjointBasis_apply_operator hc hA i, smul_smul, + inv_mul_cancel₀ (Complex.ofReal_ne_zero.mpr hi), one_smul] + +theorem operatorTraceNorm_le_finrank_mul_norm_of_range_le + {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) + (K : Submodule ℂ E) [FiniteDimensional ℂ K] + (hK : A.toLinearMap.range ≤ K) : + operatorTraceNorm A ≤ ENNReal.ofReal ((Module.finrank ℂ K : ℝ) * ‖A‖) := by + classical + have hc := isCompactOperator_of_range_le_finiteDimensional A K hK + let b := compactSelfAdjointBasis hc hA + rw [operatorTraceNorm_eq_eigenvalue_sum hc hA, tsum_eq_iSup_sum] + apply iSup_le + intro s + let t := s.filter (fun i : operatorEigenIndex A => i.1.re ≠ 0) + have hm (i : t) : b i ∈ K := + hK (compactSelfAdjoint_nonzero_eigenvector_mem_range hc hA i + (Finset.mem_filter.mp i.property).2) + have hl : LinearIndependent ℂ (fun i : t => b i) := + b.orthonormal.linearIndependent.comp _ Subtype.val_injective + have hlK : LinearIndependent ℂ (fun i : t => (⟨b i, hm i⟩ : K)) := + hl.codRestrict K hm + have hcard : t.card ≤ Module.finrank ℂ K := by + simpa only [Fintype.card_coe] using hlK.fintype_card_le_finrank + have he : (∑ i ∈ s, |i.1.re|) = ∑ i ∈ t, |i.1.re| := by + symm + apply Finset.sum_subset (Finset.filter_subset _ _) + intro i his hit + have hz : i.1.re = 0 := by + by_contra hn + exact hit (Finset.mem_filter.mpr ⟨his, hn⟩) + rw [hz, abs_zero] + rw [← ENNReal.ofReal_sum_of_nonneg (fun i _ => abs_nonneg i.1.re), he] + apply ENNReal.ofReal_le_ofReal + calc + _ ≤ ∑ _ ∈ t, ‖A‖ := Finset.sum_le_sum + (fun i _ => compactSelfAdjoint_eigenvalue_abs_le_norm hc hA i) + _ = (t.card : ℝ) * ‖A‖ := by simp only [Finset.sum_const, nsmul_eq_mul] + _ ≤ (Module.finrank ℂ K : ℝ) * ‖A‖ := + mul_le_mul_of_nonneg_right (by exact_mod_cast hcard) (norm_nonneg A) + +theorem operatorTraceNorm_le_rank_mul_norm {A : E →L[ℂ] E} + (hA : IsSelfAdjoint A) [FiniteDimensional ℂ A.toLinearMap.range] : + operatorTraceNorm A ≤ ENNReal.ofReal + ((Module.finrank ℂ A.toLinearMap.range : ℝ) * ‖A‖) := + operatorTraceNorm_le_finrank_mul_norm_of_range_le hA A.toLinearMap.range le_rfl + +theorem finiteRank_selfAdjoint_traceNorm_lt_top {A : E →L[ℂ] E} + (hA : IsSelfAdjoint A) [FiniteDimensional ℂ A.toLinearMap.range] : + operatorTraceNorm A < ∞ := + (operatorTraceNorm_le_rank_mul_norm hA).trans_lt ENNReal.ofReal_lt_top + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiInterpolation.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiInterpolation.lean new file mode 100644 index 0000000000..8c8910cbef --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiInterpolation.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteHilbertSchmidtDual + +/-! +# The actual finite sandwiched Renyi interpolation comparison + +For strictly positive finite matrices with Tr(rho)<=1, genuine entire +spectral powers, actual Schatten Holder boundary bounds, and Hadamard +three-lines prove Q_2 <= Q_r^(1/(r-1)), r>=2. The normalized dual matrix +is constructed from the actual middle sandwich. Empty index types are +handled separately. No infinite spectral-compression limit is claimed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Set +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexConjugate ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem finite_sandwichedRenyi_interpolation {ρ σ : Matrix ι ι ℂ} + (hρ : ρ.PosDef) (hσ : σ.PosDef) (hρt : ρ.trace.re ≤ 1) {r : ℝ} (hr : 2 ≤ r) : + ((finiteRenyiSandwich ρ σ (1 / 2)) ^ (2 : ℝ)).trace.re ≤ + ((finiteRenyiSandwich ρ σ ((r - 1) / r)) ^ r).trace.re ^ (1 / (r - 1)) := by + classical + cases isEmpty_or_nonempty ι with + | inl hi => + let : IsEmpty ι := hi + rw [Matrix.trace_eq_zero_of_isEmpty, Complex.zero_re] + exact Real.rpow_nonneg (real_trace_positive_rpow_nonneg + (finiteRenyiSandwich_posDef hρ hσ _) r) _ + | inr hi => + let : Nonempty ι := hi + let τ : ℝ := (r - 1) / r + let q : ℝ := r / (r - 1) + let θ : ℝ := r / (2 * (r - 1)) + let A := finiteRenyiSandwich ρ σ (1 / 2) + have hr₀ : 0 < r := by linarith + have hr₁ : 0 < r - 1 := by linarith + have hτq : 2 * τ * q = 2 := by + dsimp only [τ, q] + field_simp [hr₀.ne', hr₁.ne'] + have hτθ : 2 * τ * θ = 1 := by + dsimp only [τ, θ] + field_simp [hr₀.ne', hr₁.ne'] + have hθ : θ ∈ Icc (0 : ℝ) 1 := by + refine ⟨(div_pos hr₀ (mul_pos (by norm_num) hr₁)).le, ?_⟩ + dsimp only [θ] + apply (div_le_iff₀ (mul_pos (by norm_num : (0 : ℝ) < 2) hr₁)).mpr + nlinarith + have hpq : r.HolderConjugate q := by + apply Real.holderConjugate_iff.mpr + refine ⟨by linarith, ?_⟩ + dsimp only [q] + field_simp [hr₀.ne', hr₁.ne']; ring + have hA : A.PosDef := finiteRenyiSandwich_posDef hρ hσ _ + have hd := finiteRenyi_dual_interpolation hρ hσ (finiteHilbertSchmidtDual_posDef hA) + hpq hτq hθ hτθ (finiteHilbertSchmidtDual_square_trace hA) + rw [norm_trace_finiteHilbertSchmidtDual_mul hA] at hd + have hρ₀ : 0 ≤ ρ.trace.re := by + simpa only [CFC.rpow_one ρ hρ.posSemidef.nonneg] using real_trace_positive_rpow_nonneg hρ 1 + have hNr : 0 ≤ ((finiteRenyiSandwich ρ σ τ) ^ r).trace.re := + real_trace_positive_rpow_nonneg (finiteRenyiSandwich_posDef hρ hσ τ) r + have hsimple : Real.sqrt ((A ^ (2 : ℝ)).trace.re) ≤ + ((finiteRenyiSandwich ρ σ τ) ^ r).trace.re ^ (θ / r) := by + have hcρ : ρ.trace.re ^ (1 - θ) ≤ 1 := + Real.rpow_le_one hρ₀ hρt (sub_nonneg.mpr hθ.2) + have hb := mul_le_mul_of_nonneg_right hcρ (Real.rpow_nonneg hNr (θ / r)) + exact hd.trans (by simpa only [one_mul] using hb) + calc + _ = (Real.sqrt ((A ^ (2 : ℝ)).trace.re)) ^ 2 := + (Real.sq_sqrt (real_trace_positive_square_pos hA).le).symm + _ ≤ (((finiteRenyiSandwich ρ σ τ) ^ r).trace.re ^ (θ / r)) ^ 2 := + pow_le_pow_left₀ (Real.sqrt_nonneg _) hsimple 2 + _ = _ := by + rw [← Real.rpow_natCast _ 2, ← Real.rpow_mul hNr] + congr 1 + dsimp only [θ] + field_simp [hr₀.ne', hr₁.ne']; ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiStrip.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiStrip.lean new file mode 100644 index 0000000000..12f45aa1f0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiStrip.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FinitePowerBounds +public import Mathlib.Analysis.Complex.Hadamard + +/-! +# The actual finite spectral interpolation function + +This file constructs the scalar trace function used in the source +Schatten interpolation argument and proves its entire regularity and +uniform vertical-strip boundedness. These hypotheses are established +from genuine finite spectral powers, rather than packaged as assumptions. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Set +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexConjugate ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Finite Rényi strip function. -/ +def finiteRenyiStripFunction {σ X : Matrix ι ι ℂ} (hσ : σ.PosDef) (hX : X.PosDef) + (ρ : Matrix ι ι ℂ) (τ : ℝ) (z : ℂ) : ℂ := + (positiveMatrixComplexPower hX (((2 * τ : ℝ) : ℂ) * z) * + positiveMatrixComplexPower hσ (((-τ / 2 : ℝ) : ℂ) * z) * ρ * + positiveMatrixComplexPower hσ (((-τ / 2 : ℝ) : ℂ) * z)).trace + +theorem differentiable_finiteRenyiStripFunction {σ X : Matrix ι ι ℂ} + (hσ : σ.PosDef) (hX : X.PosDef) (ρ : Matrix ι ι ℂ) (τ : ℝ) : + Differentiable ℂ (finiteRenyiStripFunction hσ hX ρ τ) := by + let T : Matrix ι ι ℂ →L[ℂ] ℂ := (Matrix.traceLinearMap ι ℂ ℂ).toContinuousLinearMap + have hx := (differentiable_positiveMatrixComplexPower hX).comp + (differentiable_id.const_mul (((2 * τ : ℝ) : ℂ)) : + Differentiable ℂ (fun z : ℂ => ((2 * τ : ℝ) : ℂ) * z)) + have hs := (differentiable_positiveMatrixComplexPower hσ).comp + (differentiable_id.const_mul (((-τ / 2 : ℝ) : ℂ)) : + Differentiable ℂ (fun z : ℂ => ((-τ / 2 : ℝ) : ℂ) * z)) + exact T.differentiable.comp (((hx.mul hs).mul_const ρ).mul hs) + +theorem finiteRenyiStripFunction_bounded {σ X : Matrix ι ι ℂ} + (hσ : σ.PosDef) (hX : X.PosDef) (ρ : Matrix ι ι ℂ) (τ : ℝ) : + BddAbove ((norm ∘ finiteRenyiStripFunction hσ hX ρ τ) '' + Complex.HadamardThreeLines.verticalClosedStrip 0 1) := by + let T : Matrix ι ι ℂ →L[ℂ] ℂ := (Matrix.traceLinearMap ι ℂ ℂ).toContinuousLinearMap + obtain ⟨CX, hCX, hx⟩ := exists_bound_positiveMatrixComplexPower_real_mul_strip hX (2 * τ) + obtain ⟨CS, hCS, hs⟩ := exists_bound_positiveMatrixComplexPower_real_mul_strip hσ (-τ / 2) + refine ⟨‖T‖ * (CX * CS * ‖ρ‖ * CS), ?_⟩ + rintro y ⟨z, hz, rfl⟩ + have hprod : ‖positiveMatrixComplexPower hX (((2 * τ : ℝ) : ℂ) * z) * + positiveMatrixComplexPower hσ (((-τ / 2 : ℝ) : ℂ) * z) * ρ * + positiveMatrixComplexPower hσ (((-τ / 2 : ℝ) : ℂ) * z)‖ ≤ CX * CS * ‖ρ‖ * CS := + norm_mul_le_of_le (norm_mul_le_of_le (norm_mul_le_of_le (hx z hz) (hs z hz)) le_rfl) (hs z hz) + exact (T.le_opNorm _).trans (mul_le_mul_of_nonneg_left hprod (norm_nonneg T)) + +theorem positiveMatrixComplexPower_real_mul_imaginary {A : Matrix ι ι ℂ} + (hA : A.PosDef) (c : ℝ) {z : ℂ} (hz : z.re = 0) : + positiveMatrixComplexPower hA ((c : ℂ) * z) = + (positiveMatrixImaginaryPower hA (c * z.im) : Matrix ι ι ℂ) := by + rw [positiveMatrixImaginaryPower_coe] + congr 1 + have hz' : z = (z.im : ℂ) * Complex.I := by + simpa only [hz, Complex.ofReal_zero, zero_add] using (Complex.re_add_im z).symm + calc + (c : ℂ) * z = (c : ℂ) * ((z.im : ℂ) * Complex.I) := + congrArg (fun w : ℂ => (c : ℂ) * w) hz' + _ = ((c * z.im : ℝ) : ℂ) * Complex.I := by rw [Complex.ofReal_mul]; ring + +theorem positiveMatrixComplexPower_real_mul_one_re {A : Matrix ι ι ℂ} + (hA : A.PosDef) (c : ℝ) {z : ℂ} (hz : z.re = 1) : + positiveMatrixComplexPower hA ((c : ℂ) * z) = + A ^ c * (positiveMatrixImaginaryPower hA (c * z.im) : Matrix ι ι ℂ) := by + rw [positiveMatrixComplexPower_split] + simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero, + Complex.mul_im, add_zero, hz, mul_one] + +theorem norm_finiteRenyiStripFunction_zero_edge {ρ σ X : Matrix ι ι ℂ} + (hρ : ρ.PosDef) (hσ : σ.PosDef) (hX : X.PosDef) (τ : ℝ) {z : ℂ} (hz : z.re = 0) : + ‖finiteRenyiStripFunction hσ hX ρ τ z‖ ≤ ρ.trace.re := by + let UX := positiveMatrixImaginaryPower hX (2 * τ * z.im) + let US := positiveMatrixImaginaryPower hσ ((-τ / 2) * z.im) + have he : finiteRenyiStripFunction hσ hX ρ τ z = + (ρ * ((US * UX * US : unitary (Matrix ι ι ℂ)) : Matrix ι ι ℂ)).trace := by + unfold finiteRenyiStripFunction + rw [positiveMatrixComplexPower_real_mul_imaginary hX _ hz, + positiveMatrixComplexPower_real_mul_imaginary hσ _ hz] + change (((UX : Matrix ι ι ℂ) * (US : Matrix ι ι ℂ)) * ρ * (US : Matrix ι ι ℂ)).trace = + (ρ * ((US : Matrix ι ι ℂ) * (UX : Matrix ι ι ℂ) * (US : Matrix ι ι ℂ))).trace + rw [Matrix.trace_mul_cycle ((UX : Matrix ι ι ℂ) * (US : Matrix ι ι ℂ)) ρ (US : Matrix ι ι ℂ), + Matrix.trace_mul_comm ((US : Matrix ι ι ℂ) * ((UX : Matrix ι ι ℂ) * (US : Matrix ι ι ℂ))) ρ] + simp only [Matrix.mul_assoc] + rw [he] + exact norm_trace_positive_mul_unitary_le hρ _ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiStripBoundary.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiStripBoundary.lean new file mode 100644 index 0000000000..b6b48b381f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiStripBoundary.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRenyiStrip + +/-! +# The actual high boundary of finite Schatten interpolation + +The finite reference sandwich is strictly positive because every real +power of a strictly positive matrix is invertible. The imaginary phases +are actual unitaries; keeping their order gives the genuine complex +trace Holder bound on the right boundary of the strip. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexConjugate ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem positiveMatrix_rpow_isUnit {A : Matrix ι ι ℂ} (hA : A.PosDef) (p : ℝ) : + IsUnit (A ^ p) := by + apply IsUnit.of_mul_eq_one (A ^ (-p : ℝ)) + rw [← positiveMatrixComplexPower_real hA p, ← positiveMatrixComplexPower_real hA (-p), + ← positiveMatrixComplexPower_add, ← Complex.ofReal_add, add_neg_cancel, + Complex.ofReal_zero, positiveMatrixComplexPower_zero] + +theorem positiveMatrix_rpow_posDef {A : Matrix ι ι ℂ} (hA : A.PosDef) (p : ℝ) : + (A ^ p).PosDef := + (CFC.rpow_nonneg (a := A) (y := p)).posSemidef.posDef_iff_isUnit.mpr + (positiveMatrix_rpow_isUnit hA p) + +/-- Finite Rényi sandwich given by `σ ^ (-τ / 2) * ρ * σ ^ (-τ / 2)`. -/ +def finiteRenyiSandwich (ρ σ : Matrix ι ι ℂ) (τ : ℝ) : Matrix ι ι ℂ := + σ ^ (-τ / 2) * ρ * σ ^ (-τ / 2) + +theorem finiteRenyiSandwich_posDef {ρ σ : Matrix ι ι ℂ} + (hρ : ρ.PosDef) (hσ : σ.PosDef) (τ : ℝ) : (finiteRenyiSandwich ρ σ τ).PosDef := by + have h := (positiveMatrix_rpow_isUnit hσ (-τ / 2)).posDef_star_left_conjugate_iff.mpr hρ + simpa only [(CFC.rpow_nonneg (a := σ) (y := -τ / 2)).isSelfAdjoint.star_eq, + finiteRenyiSandwich] using h + +theorem positiveMatrix_real_imaginary_power_commute {A : Matrix ι ι ℂ} + (hA : A.PosDef) (s t : ℝ) : + A ^ s * (positiveMatrixImaginaryPower hA t : Matrix ι ι ℂ) = + (positiveMatrixImaginaryPower hA t : Matrix ι ι ℂ) * A ^ s := by + rw [← positiveMatrixComplexPower_real hA s, positiveMatrixImaginaryPower_coe, + ← positiveMatrixComplexPower_add, ← positiveMatrixComplexPower_add] + congr 1 + exact add_comm _ _ + +omit [DecidableEq ι] in +private theorem trace_one_edge_cycle (R S X U V : Matrix ι ι ℂ) + (hSV : S * V = V * S) : + ((X * U) * (S * V) * R * (S * V)).trace = + ((S * R * S) * V * X * (U * V)).trace := by + nth_rw 1 [hSV] + calc + _ = ((X * U * V) * ((S * R * S) * V)).trace := by + simp only [mul_assoc] + _ = (((S * R * S) * V) * (X * U * V)).trace := Matrix.trace_mul_comm _ _ + _ = _ := by simp only [mul_assoc] + +theorem finiteRenyiStripFunction_one_edge_identity {ρ σ X : Matrix ι ι ℂ} + (hσ : σ.PosDef) (hX : X.PosDef) (τ : ℝ) {z : ℂ} (hz : z.re = 1) : + finiteRenyiStripFunction hσ hX ρ τ z = + (finiteRenyiSandwich ρ σ τ * + (positiveMatrixImaginaryPower hσ ((-τ / 2) * z.im) : Matrix ι ι ℂ) * + positiveMatrixComplexPower hX (2 * τ : ℝ) * + ((positiveMatrixImaginaryPower hX (2 * τ * z.im) * + positiveMatrixImaginaryPower hσ ((-τ / 2) * z.im) : unitary (Matrix ι ι ℂ)) : + Matrix ι ι ℂ)).trace := by + rw [finiteRenyiStripFunction, + positiveMatrixComplexPower_real_mul_one_re hX (2 * τ) hz, + positiveMatrixComplexPower_real_mul_one_re hσ (-τ / 2) hz, + positiveMatrixComplexPower_real hX (2 * τ), Submonoid.coe_mul, finiteRenyiSandwich] + exact trace_one_edge_cycle ρ (σ ^ (-τ / 2)) (X ^ (2 * τ)) + (positiveMatrixImaginaryPower hX (2 * τ * z.im)) + (positiveMatrixImaginaryPower hσ ((-τ / 2) * z.im)) + (positiveMatrix_real_imaginary_power_commute hσ _ _) + +theorem ennreal_finiteRenyiStripFunction_one_edge {ρ σ X : Matrix ι ι ℂ} + (hρ : ρ.PosDef) (hσ : σ.PosDef) (hX : X.PosDef) (τ : ℝ) + {p q : ℝ} (hpq : p.HolderConjugate q) {z : ℂ} (hz : z.re = 1) : + ENNReal.ofReal ‖finiteRenyiStripFunction hσ hX ρ τ z‖ ≤ + finitePositivePowerTrace (finiteRenyiSandwich ρ σ τ) p ^ (1 / p) * + finitePositivePowerTrace X (2 * τ * q) ^ (1 / q) := by + rw [finiteRenyiStripFunction_one_edge_identity hσ hX τ hz] + have h := finiteComplexPower_trace_holder (finiteRenyiSandwich_posDef hρ hσ τ) hX + (positiveMatrixImaginaryPower hσ ((-τ / 2) * z.im)) + (positiveMatrixImaginaryPower hX (2 * τ * z.im) * + positiveMatrixImaginaryPower hσ ((-τ / 2) * z.im)) 1 (2 * τ : ℝ) hpq + simpa only [positiveMatrixComplexPower_one, Complex.one_re, Complex.ofReal_re, one_mul] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiThreeLines.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiThreeLines.lean new file mode 100644 index 0000000000..5b7a60b651 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteRenyiThreeLines.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRenyiStripBoundary + +/-! +# Actual finite Schatten interpolation by the three-lines theorem + +For an actual strictly positive dual test X of Hilbert--Schmidt norm one, +the constructed entire strip function has the correct boundary norms. +Applying the pinned Hadamard theorem gives the dual interpolation bound. +The dual-test normalization is explicit here; choosing the actual +normalized positive middle sandwich is a separate finite algebra step. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Set +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexConjugate ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem norm_finiteRenyiStripFunction_one_edge_normalized {ρ σ X : Matrix ι ι ℂ} + (hρ : ρ.PosDef) (hσ : σ.PosDef) (hX : X.PosDef) (τ : ℝ) + {p q : ℝ} (hpq : p.HolderConjugate q) (hτq : 2 * τ * q = 2) + (hXt : (X ^ (2 : ℝ)).trace.re = 1) {z : ℂ} (hz : z.re = 1) : + ‖finiteRenyiStripFunction hσ hX ρ τ z‖ ≤ + ((finiteRenyiSandwich ρ σ τ ^ p).trace.re) ^ (1 / p) := by + have h := ennreal_finiteRenyiStripFunction_one_edge hρ hσ hX τ hpq hz + simp only [hτq, finitePositivePowerTrace, hXt, ENNReal.ofReal_one, ENNReal.one_rpow, mul_one] at h + have hfin : finitePositivePowerTrace (finiteRenyiSandwich ρ σ τ) p ^ (1 / p) ≠ ∞ := + (ENNReal.rpow_lt_top_of_nonneg hpq.one_div_nonneg (finitePositivePowerTrace_lt_top _ _).ne).ne + have hreal := ENNReal.toReal_mono hfin h + simpa only [ENNReal.toReal_ofReal (norm_nonneg _), ← ENNReal.toReal_rpow, + finitePositivePowerTrace, + ENNReal.toReal_ofReal (real_trace_positive_rpow_nonneg + (finiteRenyiSandwich_posDef hρ hσ τ) p)] using hreal + +theorem finiteRenyiStripFunction_at_interpolation {ρ σ X : Matrix ι ι ℂ} + (hσ : σ.PosDef) (hX : X.PosDef) {τ θ : ℝ} (hτθ : 2 * τ * θ = 1) : + finiteRenyiStripFunction hσ hX ρ τ (θ : ℂ) = + (X * finiteRenyiSandwich ρ σ (1 / 2)).trace := by + have hx : ((2 * τ : ℝ) : ℂ) * (θ : ℂ) = 1 := by exact_mod_cast hτθ + have hs : ((-τ / 2 : ℝ) : ℂ) * (θ : ℂ) = ((-(1 / 2 : ℝ) / 2 : ℝ) : ℂ) := by + have h : (-τ / 2) * θ = -(1 / 2 : ℝ) / 2 := by nlinarith [hτθ] + exact_mod_cast h + unfold finiteRenyiStripFunction finiteRenyiSandwich + rw [hx, hs, positiveMatrixComplexPower_one, positiveMatrixComplexPower_real] + congr 1 + noncomm_ring + +theorem finiteRenyi_dual_interpolation {ρ σ X : Matrix ι ι ℂ} + (hρ : ρ.PosDef) (hσ : σ.PosDef) (hX : X.PosDef) + {p q τ θ : ℝ} (hpq : p.HolderConjugate q) (hτq : 2 * τ * q = 2) + (hθ : θ ∈ Icc (0 : ℝ) 1) (hτθ : 2 * τ * θ = 1) + (hXt : (X ^ (2 : ℝ)).trace.re = 1) : + ‖(X * finiteRenyiSandwich ρ σ (1 / 2)).trace‖ ≤ + ρ.trace.re ^ (1 - θ) * + ((finiteRenyiSandwich ρ σ τ ^ p).trace.re) ^ (θ / p) := by + have h := Complex.HadamardThreeLines.norm_le_interp_of_mem_verticalClosedStrip₀₁' + (finiteRenyiStripFunction hσ hX ρ τ) + (z := (θ : ℂ)) (a := ρ.trace.re) + (b := ((finiteRenyiSandwich ρ σ τ ^ p).trace.re) ^ (1 / p)) + (by simpa only [Complex.HadamardThreeLines.verticalClosedStrip, mem_preimage, + Complex.ofReal_re] using hθ) + (differentiable_finiteRenyiStripFunction hσ hX ρ τ).diffContOnCl + (finiteRenyiStripFunction_bounded hσ hX ρ τ) + (fun z hz => norm_finiteRenyiStripFunction_zero_edge hρ hσ hX τ (Set.mem_singleton_iff.mp hz)) + (fun z hz => norm_finiteRenyiStripFunction_one_edge_normalized hρ hσ hX τ hpq hτq hXt + (Set.mem_singleton_iff.mp hz)) + rw [finiteRenyiStripFunction_at_interpolation hσ hX hτθ, Complex.ofReal_re] at h + have hN := real_trace_positive_rpow_nonneg (finiteRenyiSandwich_posDef hρ hσ τ) p + have he : (((finiteRenyiSandwich ρ σ τ ^ p).trace.re) ^ (1 / p)) ^ θ = + ((finiteRenyiSandwich ρ σ τ ^ p).trace.re) ^ (θ / p) := by + rw [← Real.rpow_mul hN] + congr 1 + ring + rwa [he] at h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteSemidefiniteRenyiInterpolation.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteSemidefiniteRenyiInterpolation.lean new file mode 100644 index 0000000000..ad86a943da --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteSemidefiniteRenyiInterpolation.lean @@ -0,0 +1,132 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRenyiInterpolation +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Rpow.Isometric + +/-! +# Finite interpolation with semidefinite input + +Mixing the positive input with the strictly positive reference preserves +the trace bound and gives a strictly positive input. Actual matrix-norm +continuity, including positive-power CFC at singular semidefinite matrices, +then proves the same interpolation inequality in the limit epsilon->0+. +No injectivity of the input or uniform bound on its inverse is assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Filter Set +open scoped ENNReal NNReal Topology MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Finite reference mixture given by `(1 / (1 + ε)) • ρ + (ε / (1 + ε)) • σ`. -/ +def finiteReferenceMixture (ρ σ : Matrix ι ι ℂ) (ε : ℝ) : Matrix ι ι ℂ := + (1 / (1 + ε)) • ρ + (ε / (1 + ε)) • σ + +omit [Fintype ι] [DecidableEq ι] in +theorem finiteReferenceMixture_posDef {ρ σ : Matrix ι ι ℂ} + (hρ : ρ.PosSemidef) (hσ : σ.PosDef) {ε : ℝ} (hε : 0 < ε) : + (finiteReferenceMixture ρ σ ε).PosDef := by + have hd : 0 < 1 + ε := by linarith + exact Matrix.PosDef.posSemidef_add (hρ.smul (one_div_pos.mpr hd).le) + (hσ.smul (div_pos hε hd)) + +omit [DecidableEq ι] in +theorem finiteReferenceMixture_trace (ρ σ : Matrix ι ι ℂ) (ε : ℝ) : + (finiteReferenceMixture ρ σ ε).trace.re = + (1 / (1 + ε)) * ρ.trace.re + (ε / (1 + ε)) * σ.trace.re := by + change Complex.reCLM (finiteReferenceMixture ρ σ ε).trace = _ + rw [finiteReferenceMixture, Matrix.trace_add, Matrix.trace_smul, Matrix.trace_smul, + map_add, map_smul, map_smul] + rfl + +omit [DecidableEq ι] in +theorem finiteReferenceMixture_trace_le {ρ σ : Matrix ι ι ℂ} + (hρ : ρ.trace.re ≤ 1) (hσ : σ.trace.re ≤ 1) {ε : ℝ} (hε : 0 ≤ ε) : + (finiteReferenceMixture ρ σ ε).trace.re ≤ 1 := by + have hd : 0 < 1 + ε := by linarith + rw [finiteReferenceMixture_trace] + calc + _ ≤ (1 / (1 + ε)) * 1 + (ε / (1 + ε)) * 1 := + add_le_add (mul_le_mul_of_nonneg_left hρ (one_div_pos.mpr hd).le) + (mul_le_mul_of_nonneg_left hσ (div_nonneg hε hd.le)) + _ = 1 := by field_simp [hd.ne'] + +omit [Fintype ι] [DecidableEq ι] in +theorem finiteReferenceMixture_tendsto (ρ σ : Matrix ι ι ℂ) : + Tendsto (finiteReferenceMixture ρ σ) (𝓝[>] (0 : ℝ)) (𝓝 ρ) := by + have hc : ContinuousAt (finiteReferenceMixture ρ σ) (0 : ℝ) := by + unfold finiteReferenceMixture + fun_prop (disch := norm_num) + simpa only [finiteReferenceMixture, add_zero, div_one, one_smul, zero_smul] using + hc.tendsto.mono_left nhdsWithin_le_nhds + +theorem continuousOn_positiveMatrix_rpow {p : ℝ} (hp : 0 < p) : + ContinuousOn (fun A : Matrix ι ι ℂ => A ^ p) {A | 0 ≤ A} := by + have h := CFC.continuousOn_nnrpow (A := Matrix ι ι ℂ) (NNReal.mk p hp.le : ℝ≥0) + have hpow (T : Matrix ι ι ℂ) : T ^ (NNReal.mk p hp.le : NNReal) = T ^ p := + CFC.nnrpow_eq_rpow (a := T) (show (0 : NNReal) < NNReal.mk p hp.le from hp) + simpa only [hpow] using h + +theorem tendsto_positiveMatrix_power_trace {α : Type*} {l : Filter α} + {A : α → Matrix ι ι ℂ} {B : Matrix ι ι ℂ} (hB : B.PosSemidef) + (hlim : Tendsto A l (𝓝 B)) (hA : ∀ᶠ x in l, (A x).PosSemidef) + {p : ℝ} (hp : 0 < p) : + Tendsto (fun x => ((A x) ^ p).trace.re) l (𝓝 (B ^ p).trace.re) := by + have hw : Tendsto A l (𝓝[{X : Matrix ι ι ℂ | 0 ≤ X}] B) := + tendsto_nhdsWithin_iff.mpr ⟨hlim, hA.mono fun _ h => h.nonneg⟩ + have hpow : Tendsto (fun x => (A x) ^ p) l (𝓝 (B ^ p)) := + Filter.Tendsto.comp (continuousOn_positiveMatrix_rpow hp B hB.nonneg) hw + have hc : Continuous (fun X : Matrix ι ι ℂ => X.trace.re) := by + unfold Matrix.trace + fun_prop + exact (hc.tendsto _).comp hpow + +theorem finiteRenyiSandwich_posSemidef {ρ σ : Matrix ι ι ℂ} + (hρ : ρ.PosSemidef) (τ : ℝ) : (finiteRenyiSandwich ρ σ τ).PosSemidef := by + apply Matrix.nonneg_iff_posSemidef.mp + exact conjugate_nonneg_of_nonneg hρ.nonneg CFC.rpow_nonneg + +theorem finiteRenyiSandwich_referenceMixture_tendsto (ρ σ : Matrix ι ι ℂ) (τ : ℝ) : + Tendsto (fun ε => finiteRenyiSandwich (finiteReferenceMixture ρ σ ε) σ τ) + (𝓝[>] (0 : ℝ)) (𝓝 (finiteRenyiSandwich ρ σ τ)) := by + exact (tendsto_const_nhds.mul (finiteReferenceMixture_tendsto ρ σ)).mul tendsto_const_nhds + +/-- The finite comparison needed for reference spectral compressions, +with semidefinite input and both genuine compression trace bounds. -/ +theorem finite_semidefinite_sandwichedRenyi_interpolation {ρ σ : Matrix ι ι ℂ} + (hρ : ρ.PosSemidef) (hσ : σ.PosDef) (hρt : ρ.trace.re ≤ 1) (hσt : σ.trace.re ≤ 1) + {r : ℝ} (hr : 2 ≤ r) : + ((finiteRenyiSandwich ρ σ (1 / 2)) ^ (2 : ℝ)).trace.re ≤ + ((finiteRenyiSandwich ρ σ ((r - 1) / r)) ^ r).trace.re ^ (1 / (r - 1)) := by + have hr₀ : 0 < r := by linarith + have he : 0 < 1 / (r - 1) := one_div_pos.mpr (by linarith) + have hm : ∀ᶠ ε : ℝ in 𝓝[>] (0 : ℝ), (finiteReferenceMixture ρ σ ε).PosDef := by + filter_upwards [self_mem_nhdsWithin] with ε hε + exact finiteReferenceMixture_posDef hρ hσ hε + have htwo := tendsto_positiveMatrix_power_trace (finiteRenyiSandwich_posSemidef hρ (1 / 2)) + (finiteRenyiSandwich_referenceMixture_tendsto ρ σ (1 / 2)) + (hm.mono fun ε h => (finiteRenyiSandwich_posDef h hσ (1 / 2)).posSemidef) + (by norm_num : (0 : ℝ) < 2) + have hhigh := tendsto_positiveMatrix_power_trace + (finiteRenyiSandwich_posSemidef hρ ((r - 1) / r)) + (finiteRenyiSandwich_referenceMixture_tendsto ρ σ ((r - 1) / r)) + (hm.mono fun ε h => (finiteRenyiSandwich_posDef h hσ ((r - 1) / r)).posSemidef) hr₀ + apply le_of_tendsto_of_tendsto htwo + (((Real.continuous_rpow_const he.le).tendsto _).comp hhigh) + filter_upwards [self_mem_nhdsWithin] with ε hε + exact finite_sandwichedRenyi_interpolation (finiteReferenceMixture_posDef hρ hσ hε) hσ + (finiteReferenceMixture_trace_le hρt hσt hε.le) hr + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteSignedTraceTests.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteSignedTraceTests.lean new file mode 100644 index 0000000000..8d5d288b6a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteSignedTraceTests.lean @@ -0,0 +1,149 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityTraceNormDual +public import LeanPool.VacuumBellSeparation.Gaussian.DensityOffDiagonalInversion + +/-! +# Actual finite signed trace tests on a Hilbert space + +A finite weighted orthonormal projection is a contraction when its scalar +weights have modulus at most one. Its pairing against a two-sided product +is identified with the actual Jordan density expectation. This gives the +nuclear dual upper bound without assuming a complex trace or cyclicity. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap InnerProductSpace +open scoped ComplexConjugate ENNReal + +variable {ι κ E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Finite trace test operator given by `∑ i ∈ s, w i • rankOne ℂ (u i) (u i)`. -/ +def finiteTraceTestOperator (u : ι → E) (s : Finset ι) (w : ι → ℂ) : E →L[ℂ] E := + ∑ i ∈ s, w i • rankOne ℂ (u i) (u i) + +/-- Finite trace test given by `∑ i ∈ s, w i • ((innerSL ℂ (u i)).comp (ContinuousLinearMap.apply ℂ +E (u i)))`. -/ +def finiteTraceTest (u : ι → E) (s : Finset ι) (w : ι → ℂ) : + (E →L[ℂ] E) →L[ℂ] ℂ := + ∑ i ∈ s, w i • ((innerSL ℂ (u i)).comp (ContinuousLinearMap.apply ℂ E (u i))) + +omit [CompleteSpace E] in +@[simp] theorem finiteTraceTest_apply (u : ι → E) (s : Finset ι) (w : ι → ℂ) + (A : E →L[ℂ] E) : finiteTraceTest u s w A = ∑ i ∈ s, w i * inner ℂ (u i) (A (u i)) := by + simp only [finiteTraceTest, sum_apply, smul_apply, comp_apply, innerSL_apply_apply, + apply_apply, smul_eq_mul] + +omit [CompleteSpace E] in +@[simp] theorem finiteTraceTestOperator_apply (u : ι → E) (s : Finset ι) (w : ι → ℂ) + (x : E) : finiteTraceTestOperator u s w x = + ∑ i ∈ s, (w i * inner ℂ (u i) x) • u i := by + simp only [finiteTraceTestOperator, sum_apply, smul_apply, rankOne_apply, smul_smul] + +omit [CompleteSpace E] in +theorem norm_finiteTraceTestOperator_le_one {u : ι → E} (hu : Orthonormal ℂ u) + (s : Finset ι) (w : ι → ℂ) (hw : ∀ i ∈ s, ‖w i‖ ≤ 1) : + ‖finiteTraceTestOperator u s w‖ ≤ 1 := by + apply ContinuousLinearMap.opNorm_le_bound _ (by norm_num) + intro x + have he : ‖finiteTraceTestOperator u s w x‖ ^ 2 = + ∑ i ∈ s, ‖w i * inner ℂ (u i) x‖ ^ 2 := by + rw [finiteTraceTestOperator_apply, norm_sq_eq_re_inner (𝕜 := ℂ), hu.inner_sum] + simp only [map_sum, Complex.conj_mul', ← Complex.ofReal_pow, + RCLike.re_eq_complex_re, Complex.ofReal_re] + have hs : ‖finiteTraceTestOperator u s w x‖ ^ 2 ≤ ‖x‖ ^ 2 := by + rw [he] + apply (Finset.sum_le_sum fun i hi => ?_).trans (hu.sum_inner_products_le x) + apply pow_le_pow_left₀ (norm_nonneg _) _ 2 + rw [norm_mul] + simpa only [one_mul] using mul_le_mul_of_nonneg_right (hw i hi) (norm_nonneg _) + rw [one_mul] + nlinarith [norm_nonneg (finiteTraceTestOperator u s w x), norm_nonneg x] + +theorem selfAdjoint_parts_traceClass {B : E →L[ℂ] E} (hB : IsSelfAdjoint B) + (ht : operatorTraceNorm B < ∞) : + IsPositiveTraceClass B⁺ ∧ IsPositiveTraceClass B⁻ := by + have ha : IsPositiveTraceClass (CFC.abs B) := ⟨CFC.abs_nonneg B, ht⟩ + constructor + · apply ha.of_le (CFC.posPart_nonneg B) + rw [← CFC.posPart_add_negPart B hB] + exact le_add_of_nonneg_right (CFC.negPart_nonneg B) + · apply ha.of_le (CFC.negPart_nonneg B) + rw [← CFC.posPart_add_negPart B hB] + exact le_add_of_nonneg_left (CFC.posPart_nonneg B) + +/-- Jordan expectation given by `densityExpectation b B⁺ A - densityExpectation b B⁻ A`. -/ +def jordanExpectation (b : HilbertBasis κ ℂ E) (B A : E →L[ℂ] E) : ℂ := + densityExpectation b B⁺ A - densityExpectation b B⁻ A + +/-- Jordan expectation continuous linear map of type `(E →L[ℂ] E) →L[ℂ] ℂ`. -/ +def jordanExpectationCLM (b : HilbertBasis κ ℂ E) {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (ht : operatorTraceNorm B < ∞) : + (E →L[ℂ] E) →L[ℂ] ℂ := + densityExpectationCLM b (selfAdjoint_parts_traceClass hB ht).1 - + densityExpectationCLM b (selfAdjoint_parts_traceClass hB ht).2 + +@[simp] theorem jordanExpectationCLM_apply (b : HilbertBasis κ ℂ E) {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (ht : operatorTraceNorm B < ∞) (A : E →L[ℂ] E) : + jordanExpectationCLM b hB ht A = jordanExpectation b B A := rfl + +theorem norm_jordanExpectation_le (b : HilbertBasis κ ℂ E) {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (ht : operatorTraceNorm B < ∞) (A : E →L[ℂ] E) : + ‖jordanExpectation b B A‖ ≤ (operatorTraceNorm B).toReal * ‖A‖ := by + obtain ⟨hp, hn⟩ := selfAdjoint_parts_traceClass hB ht + simpa only [jordanExpectation, CFC.posPart_sub_negPart B hB] using + norm_densityExpectation_sub_le_traceNorm b hp hn A + +theorem jordanExpectation_rankOne (b : HilbertBasis κ ℂ E) {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (x y : E) : + jordanExpectation b B (rankOne ℂ x y) = inner ℂ y (B x) := by + rw [jordanExpectation, densityExpectation_rankOne_mixed b (CFC.posPart_nonneg B), + densityExpectation_rankOne_mixed b (CFC.negPart_nonneg B), ← inner_sub_right, + ← sub_apply, CFC.posPart_sub_negPart B hB] + +theorem finiteTraceTestOperator_two_sided (u : ι → E) (s : Finset ι) (w : ι → ℂ) + (L R : E →L[ℂ] E) : R * finiteTraceTestOperator u s w * L = + ∑ i ∈ s, w i • rankOne ℂ (R (u i)) (L.adjoint (u i)) := by + ext x + simp only [mul_apply_eq_comp, finiteTraceTestOperator_apply, map_sum, map_smul, + sum_apply, smul_apply, rankOne_apply, smul_smul, adjoint_inner_left] + +theorem finiteTraceTest_two_sided (b : HilbertBasis κ ℂ E) (u : ι → E) + (s : Finset ι) (w : ι → ℂ) {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (ht : operatorTraceNorm B < ∞) (L R : E →L[ℂ] E) : + finiteTraceTest u s w (L * B * R) = + jordanExpectation b B (R * finiteTraceTestOperator u s w * L) := by + rw [← jordanExpectationCLM_apply b hB ht, + finiteTraceTestOperator_two_sided, map_sum] + simp only [map_smul, jordanExpectationCLM_apply, jordanExpectation_rankOne b hB, + finiteTraceTest_apply, mul_apply_eq_comp, adjoint_inner_left, smul_eq_mul] + +theorem norm_finiteTraceTest_two_sided_le (b : HilbertBasis κ ℂ E) {u : ι → E} + (hu : Orthonormal ℂ u) (s : Finset ι) (w : ι → ℂ) + (hw : ∀ i ∈ s, ‖w i‖ ≤ 1) {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (ht : operatorTraceNorm B < ∞) (L R : E →L[ℂ] E) : + ‖finiteTraceTest u s w (L * B * R)‖ ≤ + (operatorTraceNorm B).toReal * (‖R‖ * ‖L‖) := by + rw [finiteTraceTest_two_sided b u s w hB ht] + apply (norm_jordanExpectation_le b hB ht _).trans + apply mul_le_mul_of_nonneg_left _ ENNReal.toReal_nonneg + calc + ‖R * finiteTraceTestOperator u s w * L‖ ≤ + ‖R‖ * ‖finiteTraceTestOperator u s w‖ * ‖L‖ := norm_mul₃_le + _ ≤ ‖R‖ * 1 * ‖L‖ := by + gcongr + exact norm_finiteTraceTestOperator_le_one hu s w hw + _ = ‖R‖ * ‖L‖ := by rw [mul_one] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteSpectralTraceRecovery.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteSpectralTraceRecovery.lean new file mode 100644 index 0000000000..23f7339e5b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteSpectralTraceRecovery.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteSignedTraceTests +public import LeanPool.VacuumBellSeparation.Gaussian.TraceNormCompression + +/-! +# Finite spectral sign tests recover the genuine extended nuclear trace + +The actual compact selfadjoint eigenbasis includes the kernel. Finite sign +projections recover finite absolute eigenvalue sums, and their supremum is +the full trace norm, without prior trace finiteness or separability. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {ι κ E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Real spectral sign defined as `if 0 ≤ x then 1 else -1`. -/ +def realSpectralSign (x : ℝ) : ℂ := if 0 ≤ x then 1 else -1 + +@[simp] theorem norm_realSpectralSign (x : ℝ) : ‖realSpectralSign x‖ = 1 := by + unfold realSpectralSign + split_ifs <;> simp + +@[simp] theorem realSpectralSign_mul (x : ℝ) : realSpectralSign x * (x : ℂ) = ((|x| : ℝ) : ℂ) := by + unfold realSpectralSign + split_ifs with hx + · rw [one_mul, abs_of_nonneg hx] + · rw [neg_one_mul, abs_of_neg (lt_of_not_ge hx), Complex.ofReal_neg] + +theorem finite_spectral_sign_trace {B : E →L[ℂ] E} + (hc : IsCompactOperator B) (hB : IsSelfAdjoint B) (s : Finset (operatorEigenIndex B)) : + finiteTraceTest (compactSelfAdjointBasis hc hB) s + (fun i => realSpectralSign i.1.re) B = ((∑ i ∈ s, |i.1.re| : ℝ) : ℂ) := by + rw [finiteTraceTest_apply, Complex.ofReal_sum] + apply Finset.sum_congr rfl + intro i hi + rw [compactSelfAdjointBasis_apply_operator, inner_smul_right, + inner_self_eq_norm_sq_to_K, (compactSelfAdjointBasis hc hB).orthonormal.norm_eq_one] + simp only [one_pow, RCLike.ofReal_one, mul_one, realSpectralSign_mul] + +theorem operatorTraceNorm_le_of_finite_tests {B : E →L[ℂ] E} + (hc : IsCompactOperator B) (hB : IsSelfAdjoint B) {C : ℝ} + (h : ∀ s : Finset (operatorEigenIndex B), + ‖finiteTraceTest (compactSelfAdjointBasis hc hB) s + (fun i => realSpectralSign i.1.re) B‖ ≤ C) : + operatorTraceNorm B ≤ ENNReal.ofReal C := by + classical + rw [operatorTraceNorm_eq_eigenvalue_sum hc hB, tsum_eq_iSup_sum] + apply iSup_le + intro s + rw [← ENNReal.ofReal_sum_of_nonneg (fun i _ => abs_nonneg i.1.re)] + apply ENNReal.ofReal_le_ofReal + have hs := h s + rw [finite_spectral_sign_trace, Complex.norm_real, + Real.norm_eq_abs, abs_of_nonneg (Finset.sum_nonneg fun _ _ => abs_nonneg _)] at hs + exact hs + +theorem norm_finiteTraceTest_unitary_sandwich_le (b : HilbertBasis κ ℂ E) + {u : ι → E} (hu : Orthonormal ℂ u) (s : Finset ι) (w : ι → ℂ) + (hw : ∀ i ∈ s, ‖w i‖ ≤ 1) {B : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (ht : operatorTraceNorm B < ∞) + (U : unitary (E →L[ℂ] E)) : + ‖finiteTraceTest u s w ((U : E →L[ℂ] E) * B * U)‖ ≤ (operatorTraceNorm B).toReal := by + rw [finiteTraceTest_two_sided b u s w hB ht] + apply (norm_jordanExpectation_le b hB ht _).trans + rw [CStarRing.norm_mul_coe_unitary, CStarRing.norm_coe_unitary_mul] + simpa only [mul_one] using mul_le_mul_of_nonneg_left + (norm_finiteTraceTestOperator_le_one hu s w hw) ENNReal.toReal_nonneg + +theorem selfAdjoint_sandwich_isSelfAdjoint {B S : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (hS : IsSelfAdjoint S) : IsSelfAdjoint (S * B * S) := by + simpa only [hS.adjoint_eq, ContinuousLinearMap.mul_def, ContinuousLinearMap.comp_assoc] + using hB.adjoint_conj S + +theorem operatorTraceNorm_selfAdjoint_sandwich_le {B S : E →L[ℂ] E} + (hc : IsCompactOperator B) (hB : IsSelfAdjoint B) (hS : IsSelfAdjoint S) : + operatorTraceNorm (S * B * S) ≤ ENNReal.ofReal (‖S‖ ^ 2) * operatorTraceNorm B := by + simpa only [hS.adjoint_eq, ContinuousLinearMap.mul_def, ContinuousLinearMap.comp_assoc] + using operatorTraceNorm_adjoint_sandwich_le hc hB S + +theorem operatorTraceNorm_selfAdjoint_sandwich_lt_top {B S : E →L[ℂ] E} + (hc : IsCompactOperator B) (hB : IsSelfAdjoint B) + (ht : operatorTraceNorm B < ∞) (hS : IsSelfAdjoint S) : + operatorTraceNorm (S * B * S) < ∞ := + (operatorTraceNorm_selfAdjoint_sandwich_le hc hB hS).trans_lt + (ENNReal.mul_lt_top ENNReal.ofReal_lt_top ht) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FiniteUnitaryTraceHolder.lean b/LeanPool/VacuumBellSeparation/Gaussian/FiniteUnitaryTraceHolder.lean new file mode 100644 index 0000000000..8a86cb12e4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FiniteUnitaryTraceHolder.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SubstochasticHolder +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryEigenbasisOverlap + +/-! +# Actual finite unitary trace Holder for two complex diagonals + +Products of entries from two independent unitaries give substochastic +weights. This proves the true complex trace estimate, including phases, +needed on finite spectral compressions in the interpolation argument. +No infinite-dimensional conclusion is inferred from this finite lemma. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ENNReal Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Unitary cross weight given by `‖(U : Matrix ι ι ℂ) i j‖ * ‖(V : Matrix ι ι ℂ) j i‖`. -/ +def unitaryCrossWeight (U V : unitary (Matrix ι ι ℂ)) (i j : ι) : ℝ := + ‖(U : Matrix ι ι ℂ) i j‖ * ‖(V : Matrix ι ι ℂ) j i‖ + +theorem unitaryCrossWeight_nonneg (U V : unitary (Matrix ι ι ℂ)) (i j : ι) : + 0 ≤ unitaryCrossWeight U V i j := mul_nonneg (norm_nonneg _) (norm_nonneg _) + +theorem sum_unitaryCrossWeight_row_le (U V : unitary (Matrix ι ι ℂ)) (i : ι) : + ∑ j, unitaryCrossWeight U V i j ≤ 1 := by + have hu := sum_unitaryOverlapWeight_row U i + have hv := sum_unitaryOverlapWeight_col V i + simp only [unitaryOverlapWeight] at hu hv + calc + _ ≤ ∑ j, (‖(U : Matrix ι ι ℂ) i j‖ ^ 2 + ‖(V : Matrix ι ι ℂ) j i‖ ^ 2) / 2 := by + apply Finset.sum_le_sum + intro j _ + dsimp only [unitaryCrossWeight] + nlinarith [sq_nonneg (‖(U : Matrix ι ι ℂ) i j‖ - ‖(V : Matrix ι ι ℂ) j i‖)] + _ = 1 := by rw [← Finset.sum_div, Finset.sum_add_distrib, hu, hv]; norm_num + +theorem sum_unitaryCrossWeight_col_le (U V : unitary (Matrix ι ι ℂ)) (j : ι) : + ∑ i, unitaryCrossWeight U V i j ≤ 1 := by + have hu := sum_unitaryOverlapWeight_col U j + have hv := sum_unitaryOverlapWeight_row V j + simp only [unitaryOverlapWeight] at hu hv + calc + _ ≤ ∑ i, (‖(U : Matrix ι ι ℂ) i j‖ ^ 2 + ‖(V : Matrix ι ι ℂ) j i‖ ^ 2) / 2 := by + apply Finset.sum_le_sum + intro i _ + dsimp only [unitaryCrossWeight] + nlinarith [sq_nonneg (‖(U : Matrix ι ι ℂ) i j‖ - ‖(V : Matrix ι ι ℂ) j i‖)] + _ = 1 := by rw [← Finset.sum_div, Finset.sum_add_distrib, hu, hv]; norm_num + +theorem norm_trace_two_unitary_diagonals_le (U V : unitary (Matrix ι ι ℂ)) + (a b : ι → ℂ) : + ‖(Matrix.diagonal a * (U : Matrix ι ι ℂ) * Matrix.diagonal b * + (V : Matrix ι ι ℂ)).trace‖ ≤ + ∑ i, ∑ j, ‖a i‖ * ‖b j‖ * unitaryCrossWeight U V i j := by + simp only [Matrix.trace, Matrix.diag_apply] + apply (norm_sum_le _ _).trans + apply Finset.sum_le_sum + intro i _ + rw [Matrix.mul_apply] + simp only [Matrix.mul_diagonal, Matrix.diagonal_mul] + apply (norm_sum_le _ _).trans + apply Finset.sum_le_sum + intro j _ + simp only [norm_mul, unitaryCrossWeight] + exact le_of_eq (by ring) + +theorem ennreal_trace_two_unitary_diagonals_holder + (U V : unitary (Matrix ι ι ℂ)) (a b : ι → ℂ) + {p q : ℝ} (hpq : p.HolderConjugate q) : + ENNReal.ofReal ‖(Matrix.diagonal a * (U : Matrix ι ι ℂ) * Matrix.diagonal b * + (V : Matrix ι ι ℂ)).trace‖ ≤ + (∑ i, ENNReal.ofReal ‖a i‖ ^ p) ^ (1 / p) * + (∑ j, ENNReal.ofReal ‖b j‖ ^ q) ^ (1 / q) := by + let w : ι → ι → ℝ≥0∞ := fun i j => ENNReal.ofReal (unitaryCrossWeight U V i j) + have hrow (i : ι) : ∑' j, w i j ≤ 1 := by + rw [tsum_fintype] + change ∑ j, ENNReal.ofReal (unitaryCrossWeight U V i j) ≤ 1 + rw [← ENNReal.ofReal_sum_of_nonneg (fun j _ => unitaryCrossWeight_nonneg U V i j)] + exact (ENNReal.ofReal_le_ofReal (sum_unitaryCrossWeight_row_le U V i)).trans_eq (by norm_num) + have hcol (j : ι) : ∑' i, w i j ≤ 1 := by + rw [tsum_fintype] + change ∑ i, ENNReal.ofReal (unitaryCrossWeight U V i j) ≤ 1 + rw [← ENNReal.ofReal_sum_of_nonneg (fun i _ => unitaryCrossWeight_nonneg U V i j)] + exact (ENNReal.ofReal_le_ofReal (sum_unitaryCrossWeight_col_le U V j)).trans_eq (by norm_num) + have hh := ennreal_substochastic_holder w hrow hcol + (fun i => ENNReal.ofReal ‖a i‖) (fun j => ENNReal.ofReal ‖b j‖) hpq + simp only [tsum_fintype] at hh + apply le_trans _ hh + have h := ENNReal.ofReal_le_ofReal (norm_trace_two_unitary_diagonals_le U V a b) + convert h using 1 + rw [ENNReal.ofReal_sum_of_nonneg (fun i _ => Finset.sum_nonneg fun j _ => + mul_nonneg (mul_nonneg (norm_nonneg _) (norm_nonneg _)) (unitaryCrossWeight_nonneg U V i j))] + apply Finset.sum_congr rfl + intro i _ + rw [ENNReal.ofReal_sum_of_nonneg (fun j _ => + mul_nonneg (mul_nonneg (norm_nonneg _) (norm_nonneg _)) (unitaryCrossWeight_nonneg U V i j))] + apply Finset.sum_congr rfl + intro j _ + rw [ENNReal.ofReal_mul (mul_nonneg (norm_nonneg _) (norm_nonneg _)), + ENNReal.ofReal_mul (norm_nonneg _)] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/FixedGaussianExistence.lean b/LeanPool/VacuumBellSeparation/Gaussian/FixedGaussianExistence.lean new file mode 100644 index 0000000000..066b19672d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/FixedGaussianExistence.lean @@ -0,0 +1,150 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianUnitaryTransport +public import LeanPool.VacuumBellSeparation.Gaussian.StrictQuantumWilliamson +public import LeanPool.VacuumBellSeparation.Gaussian.DensityCharacteristicUniqueness + +/-! +# Actual Gaussian density existence and uniqueness in a fixed representation + +The proved finite Williamson factorization and the constructed symplectic +implementer transport an actual product thermal density onto the original +canonical Weyl representation. An explicit Ω rotation distinguishes +physical covariance from displacement-label covariance. Strict quantum +uncertainty yields actual injectivity of the resulting density; no bounded +inverse is asserted. Characteristic uniqueness identifies every density +with the same covariance with this construction. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder + +variable {m : ℕ} + +theorem exists_fixed_gaussian_displacement_density + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (hV : V.PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosSemidef) : + ∃ A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass A ∧ HasGaussianDisplacementCharacteristic A V := by + obtain ⟨n, ν, S, T, hcard, hν, hST, hTS, hsymp, hcov⟩ := + exists_quantum_williamson_factorization V modeSymplecticForm hV + transpose_modeSymplecticForm (modeSymplecticForm_isUnit m) hQ + have hnm : n = m := by + simp only [Fintype.card_prod, Fintype.card_fin] at hcard + omega + subst n + have hS : Sᵀᵀ * modeSymplecticForm * Sᵀ = modeSymplecticForm := by + simpa only [Matrix.transpose_transpose] using hsymp + refine ⟨matrixDensityPullback Sᵀ hS (covarianceProductDensity ν), + matrixDensityPullback_isPositiveTraceClass Sᵀ hS + (covarianceProductDensity_isPositiveTraceClass hν), ?_⟩ + have h := williamsonDensity_hasGaussianDisplacementCharacteristic hν S hsymp + rwa [hcov] at h + +theorem exists_fixed_faithful_gaussian_displacement_density + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (hV : V.PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) : + ∃ A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsFaithfulDensity A ∧ HasGaussianDisplacementCharacteristic A V := by + obtain ⟨n, ν, S, T, hcard, _, hST, hTS, hsymp, hcov⟩ := + exists_quantum_williamson_factorization V modeSymplecticForm hV + transpose_modeSymplecticForm (modeSymplecticForm_isUnit m) hQ.posSemidef + have hν := strict_quantum_williamson_variances V modeSymplecticForm ν S T hTS hsymp hcov hQ + have hnm : n = m := by + simp only [Fintype.card_prod, Fintype.card_fin] at hcard + omega + subst n + have hS : Sᵀᵀ * modeSymplecticForm * Sᵀ = modeSymplecticForm := by + simpa only [Matrix.transpose_transpose] using hsymp + refine ⟨matrixDensityPullback Sᵀ hS (covarianceProductDensity ν), + matrixDensityPullback_isFaithfulDensity Sᵀ hS + (covarianceProductDensity_isFaithfulDensity hν), ?_⟩ + have h := williamsonDensity_hasGaussianDisplacementCharacteristic (fun j => (hν j).le) S hsymp + rwa [hcov] at h + +theorem quantumCovariance_physical_rotation + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + quantumCovariance (physicalDisplacementCovariance V) modeSymplecticForm = + complexifyMatrix modeSymplecticFormᵀ * quantumCovariance V modeSymplecticForm * + (complexifyMatrix modeSymplecticFormᵀ)ᴴ := by + have h := quantumCovariance_congruence V modeSymplecticForm modeSymplecticFormᵀ + simpa only [Matrix.transpose_transpose, modeSymplecticForm_transpose_mul, + Matrix.one_mul, physicalDisplacementCovariance] using h + +theorem quantumCovariance_physical_rotation_posSemidef + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hQ : (quantumCovariance V modeSymplecticForm).PosSemidef) : + (quantumCovariance (physicalDisplacementCovariance V) modeSymplecticForm).PosSemidef := by + rw [quantumCovariance_physical_rotation] + exact hQ.mul_mul_conjTranspose_same _ + +theorem quantumCovariance_physical_rotation_posDef + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) : + (quantumCovariance (physicalDisplacementCovariance V) modeSymplecticForm).PosDef := by + have hright : complexifyMatrix (modeSymplecticForm (ι := Fin m))ᵀ * + complexifyMatrix modeSymplecticForm = 1 := by + rw [← complexifyMatrix_mul, modeSymplecticForm_transpose_mul] + ext i j + by_cases hij : i = j <;> simp [complexifyMatrix, Matrix.one_apply, hij] + have hinj : Function.Injective (complexifyMatrix (modeSymplecticForm (ι := Fin m))ᵀ).vecMul := by + intro x y hxy + have h := congrArg (fun z => z ᵥ* complexifyMatrix (modeSymplecticForm (ι := Fin m))) hxy + simpa only [Matrix.vecMul_vecMul, hright, Matrix.vecMul_one] using h + rw [quantumCovariance_physical_rotation] + exact hQ.mul_mul_conjTranspose_same hinj + +/-- Actual positive trace-class Gaussian density on the fixed canonical +Weyl representation for every strictly positive quantum covariance. Pure +modes are included when the uncertainty matrix is only semidefinite. -/ +theorem exists_fixed_gaussian_physical_density + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (hV : V.PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosSemidef) : + ∃ A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass A ∧ HasGaussianPhysicalCharacteristic A V := + exists_fixed_gaussian_displacement_density (physicalDisplacementCovariance V) + (physicalDisplacementCovariance_posDef hV) (quantumCovariance_physical_rotation_posSemidef hQ) + +theorem exists_fixed_faithful_gaussian_physical_density + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (hV : V.PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) : + ∃ A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsFaithfulDensity A ∧ HasGaussianPhysicalCharacteristic A V := + exists_fixed_faithful_gaussian_displacement_density (physicalDisplacementCovariance V) + (physicalDisplacementCovariance_posDef hV) (quantumCovariance_physical_rotation_posDef hQ) + +/-- The density is unique on this fixed Hilbert space, not just unique +up to an unproved equivalence of representations. -/ +theorem exists_unique_fixed_gaussian_physical_density + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (hV : V.PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosSemidef) : + ∃! A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass A ∧ HasGaussianPhysicalCharacteristic A V := by + obtain ⟨A, hA, hGA⟩ := exists_fixed_gaussian_physical_density V hV hQ + refine ⟨A, ⟨hA, hGA⟩, ?_⟩ + rintro B ⟨hB, hGB⟩ + exact gaussianPhysical_density_unique hB hA hGB hGA + +theorem gaussianPhysical_isFaithfulDensity_of_strict_uncertainty + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) + (hG : HasGaussianPhysicalCharacteristic A V) : IsFaithfulDensity A := by + obtain ⟨B, hB, hGB⟩ := exists_fixed_faithful_gaussian_physical_density V hV hQ + have he := gaussianPhysical_density_unique hA hB.isPositiveTraceClass hG hGB + exact he.symm ▸ hB + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianAppendixA.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianAppendixA.lean new file mode 100644 index 0000000000..7317a90ea2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianAppendixA.lean @@ -0,0 +1,130 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRelativePerturbationDefs +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSandwichTraceRatio + +/-! +# Actual Appendix A sandwich identities in faithful thermal coordinates + +The relative perturbation is literally H^(-1/2)(Vρ-Vσ)H^(-1/2), with +H positive definite. Matrix factorization gives the normalized determinant +and its positive domain. The source trace and covariance identities are +then bundled for the actual positive trace-class inverse-domain extension. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} +variable {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +theorem gaussianRelativePerturbation_factorization + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V = + CFC.sqrt (thermalReferenceGap q τ) * (1 - gaussianRelativePerturbation q τ V) * + CFC.sqrt (thermalReferenceGap q τ) := by + have hH := thermalReferenceGap_posDef hq₀ hq₁ hτ₀ hτ₁ + have hR := matrix_sqrt_posDef hH + have hRR : CFC.sqrt (thermalReferenceGap q τ) * CFC.sqrt (thermalReferenceGap q τ) = + thermalReferenceGap q τ := by + simpa only [pow_two] using CFC.sq_sqrt (thermalReferenceGap q τ) hH.posSemidef.nonneg + have h := perturbation_factorization (CFC.sqrt (thermalReferenceGap q τ)) + (V - thermalReferenceCovariance q) hR.isUnit + rw [hRR] at h + change thermalReferenceGap q τ - (V - thermalReferenceCovariance q) = + CFC.sqrt (thermalReferenceGap q τ) * (1 - gaussianRelativePerturbation q τ V) * + CFC.sqrt (thermalReferenceGap q τ) at h + have he : thermalReferenceGap q τ - (V - thermalReferenceCovariance q) = + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V := by + unfold thermalReferenceGap + abel + rwa [he] at h + +theorem one_sub_gaussianRelativePerturbation_posDef + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + (1 - gaussianRelativePerturbation q τ V).PosDef := by + have hR := matrix_sqrt_posDef (thermalReferenceGap_posDef hq₀ hq₁ hτ₀ hτ₁) + have h := hR.isUnit.posDef_star_right_conjugate_iff + (x := 1 - gaussianRelativePerturbation q τ V) + simp only [Matrix.star_eq_conjTranspose, hR.isHermitian.eq] at h + exact h.mp (by rwa [← gaussianRelativePerturbation_factorization hq₀ hq₁ hτ₀ hτ₁]) + +theorem gaussianRelativePerturbation_det_ratio + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + (thermalReferenceGap q τ).det / + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).det = + 1 / (1 - gaussianRelativePerturbation q τ V).det := by + have hH := thermalReferenceGap_posDef hq₀ hq₁ hτ₀ hτ₁ + have hR := matrix_sqrt_posDef hH + have hRR : CFC.sqrt (thermalReferenceGap q τ) * CFC.sqrt (thermalReferenceGap q τ) = + thermalReferenceGap q τ := by + simpa only [pow_two] using CFC.sq_sqrt (thermalReferenceGap q τ) hH.posSemidef.nonneg + have h := det_div_det_perturbation (CFC.sqrt (thermalReferenceGap q τ)) + (V - thermalReferenceCovariance q) hR.isUnit + rw [hRR] at h + have he : thermalReferenceGap q τ - (V - thermalReferenceCovariance q) = + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V := by + unfold thermalReferenceGap + abel + rwa [he] at h + +theorem positiveTrace_gaussian_factorization_appendixA + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + {A Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) + (hΘ : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) : + (positiveTrace Θ).toReal = + (positiveTrace (multiModeThermalDensity q ^ (1 - τ))).toReal / + Real.sqrt (1 - gaussianRelativePerturbation q τ V).det := by + rw [positiveTrace_gaussian_factorization_appendixA_ratio hq₀ hq₁ hτ₀ hτ₁ hA hG hC hgap hΘ, + gaussianRelativePerturbation_det_ratio hq₀ hq₁ hτ₀ hτ₁, + Real.sqrt_div zero_le_one, Real.sqrt_one] + ring + +/-- The actual source sandwich in faithful thermal coordinates, with +its normalized Gaussian covariance and determinant trace. All operator +existence and Gaussianity have been derived from the actual characteristic. -/ +theorem gaussian_sandwich_appendixA + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + ∃ Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass Θ ∧ + (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A ∧ + positiveTrace (normalizedPositiveDensity Θ) = 1 ∧ + HasGaussianPhysicalCharacteristic (normalizedPositiveDensity Θ) + (-modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) + + CFC.sqrt (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) ^ 2 - + (1 / 4 : ℝ) • 1) * + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V)⁻¹ * + CFC.sqrt (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) ^ 2 - + (1 / 4 : ℝ) • 1)) ∧ + (positiveTrace Θ).toReal = + (positiveTrace (multiModeThermalDensity q ^ (1 - τ))).toReal / + Real.sqrt (1 - gaussianRelativePerturbation q τ V).det := by + obtain ⟨Θ, hΘtc, hΘ, ht, hn, hchar⟩ := + exists_gaussian_sandwich_with_normalized_covariance hq₀ hq₁ hτ₀ hA hG hC hgap + refine ⟨Θ, hΘtc, hΘ, hn, ?_, ?_⟩ + · rwa [gaussianThermalCovariance_appendixA hq₀ hq₁ hτ₀ hC hgap] at hchar + · exact positiveTrace_gaussian_factorization_appendixA hq₀ hq₁ hτ₀ hτ₁ hA hG hC hgap hΘ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannDiagonal.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannDiagonal.lean new file mode 100644 index 0000000000..b130bdeef3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannDiagonal.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PhysicalGaussianHusimi +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeInverseBargmann +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPrecisionDomain + +/-! +# The actual Gaussian Bargmann diagonal and thermal precision algebra + +The physical characteristic determines the actual exponential-vector +diagonal. Literal inverse thermal labels act by the real block dilation. +Their Gaussian exponent is precisely the source precision matrix. These +facts precede all bounded inverse-sandwich existence assertions. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexConjugate MatrixOrder Matrix.Norms.L2Operator + +theorem gaussianPhysical_bargmann_diagonal {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) (z : Fin m → ℂ) : + multiBargmannKernel A z z = + ((Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹ : ℂ) * + Complex.exp (((‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 - + complexRealCoordinates m z ⬝ᵥ + ((V + (1 / 2 : ℝ) • 1)⁻¹ *ᵥ complexRealCoordinates m z)) : ℝ) : ℂ) := by + rw [multiBargmannKernel, multiExponentialVector_eq_normalized, + map_smul, inner_smul_left, inner_smul_right, + gaussianPhysical_coherent_diagonal hA hG hC] + simp only [← Complex.exp_conj, Complex.conj_ofReal] + calc + _ = ((Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹ : ℂ) * + (Complex.exp ((‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 / 2 : ℝ) : ℂ) * + Complex.exp ((‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 / 2 : ℝ) : ℂ) * + Complex.exp ((-(complexRealCoordinates m z ⬝ᵥ + ((V + (1 / 2 : ℝ) • 1)⁻¹ *ᵥ complexRealCoordinates m z)) : ℝ) : ℂ)) := by ring + _ = _ := by + rw [← Complex.exp_add, ← Complex.exp_add] + congr 2 + push_cast + ring + +theorem complexRealCoordinates_inverseThermalLabel {m : ℕ} + (q : Fin m → ℝ) (τ : ℝ) (z : Fin m → ℂ) : + complexRealCoordinates m (multiModeInversePowerLabel q (τ / 2) z) = + thermalQuadratureDilation q τ *ᵥ complexRealCoordinates m z := by + funext ⟨j, a⟩ + simp only [thermalQuadratureDilation, modeDiagonal, Matrix.mulVec_diagonal] + fin_cases a + · change (((q j ^ (-(τ / 2)) : ℝ) : ℂ) * z j).re = + q j ^ (-(τ / 2)) * (z j).re + simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] + · change (((q j ^ (-(τ / 2)) : ℝ) : ℂ) * z j).im = + q j ^ (-(τ / 2)) * (z j).im + simp only [Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, zero_mul, add_zero] + +theorem thermalCoherentPrecision_quadratic {m : ℕ} + (q : Fin m → ℝ) (τ : ℝ) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (u : Fin m × Fin 2 → ℝ) : + u ⬝ᵥ (thermalCoherentPrecision q τ V *ᵥ u) = + u ⬝ᵥ u - (thermalQuadratureDilation q τ *ᵥ u) ⬝ᵥ (thermalQuadratureDilation q τ *ᵥ u) + + (thermalQuadratureDilation q τ *ᵥ u) ⬝ᵥ + ((V + (1 / 2 : ℝ) • 1)⁻¹ *ᵥ (thermalQuadratureDilation q τ *ᵥ u)) := by + let T := thermalQuadratureDilation q τ + have hT : Tᵀ = T := transpose_modeDiagonal _ + have hsq := dotProduct_congruence T (1 : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) u u + rw [hT, one_mulVec, mul_one] at hsq + have hC := dotProduct_congruence T (V + (1 / 2 : ℝ) • 1)⁻¹ u u + rw [hT] at hC + rw [thermalCoherentPrecision, Matrix.add_mulVec, Matrix.sub_mulVec, + dotProduct_add, dotProduct_sub, one_mulVec] + rw [← hsq, ← hC] + +theorem thermalCoherentPrecision_coherent_exponent {m : ℕ} + (q : Fin m → ℝ) (τ : ℝ) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (z : Fin m → ℂ) : + -‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 + + (‖(WithLp.toLp 2 (multiModeInversePowerLabel q (τ / 2) z) : MultiModePhaseSpace m)‖ ^ 2 - + complexRealCoordinates m (multiModeInversePowerLabel q (τ / 2) z) ⬝ᵥ + ((V + (1 / 2 : ℝ) • 1)⁻¹ *ᵥ + complexRealCoordinates m (multiModeInversePowerLabel q (τ / 2) z))) = + -(complexRealCoordinates m z ⬝ᵥ (thermalCoherentPrecision q τ V *ᵥ + complexRealCoordinates m z)) := by + rw [← complexRealCoordinates_dot_self z, + ← complexRealCoordinates_dot_self (multiModeInversePowerLabel q (τ / 2) z)] + simp only [complexRealCoordinates_inverseThermalLabel] + rw [thermalCoherentPrecision_quadratic] + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannFourier.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannFourier.lean new file mode 100644 index 0000000000..1b4d160983 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannFourier.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityBargmannInversion +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentGaussianComplexLinear +public import LeanPool.VacuumBellSeparation.Gaussian.PhysicalGaussianHusimi + +/-! +# Actual independent-label Gaussian Bargmann kernel + +The actual Weyl characteristic is inserted in the proved integrable +Bargmann inversion. The genuine complex-linear Gaussian integral gives +the off-diagonal exponential-vector matrix element. A literal coefficient +vector records the real/imaginary coordinates; the next algebraic step +rewrites it into the manuscript D_B block notation. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory +open scoped ComplexConjugate MatrixOrder Matrix.Norms.L2Operator + +/-- Bargmann Fourier coefficient defined by `fun i => if i.2 = 0 then b i.1 - conj (a i.1) else +-Complex.I * (b i.1 + conj (a i.1))`. -/ +def bargmannFourierCoefficient {m : ℕ} (a b : MultiModePhaseSpace m) : Fin m × Fin 2 → ℂ := + fun i => if i.2 = 0 then b i.1 - conj (a i.1) else -Complex.I * (b i.1 + conj (a i.1)) + +theorem bargmannFourierCoefficient_dot {m : ℕ} (a b : MultiModePhaseSpace m) + (z : Fin m → ℂ) : + bargmannFourierCoefficient a b ⬝ᵥ (fun i => (complexRealCoordinates m z i : ℂ)) = + inner ℂ (WithLp.toLp 2 z : MultiModePhaseSpace m) b - inner ℂ a (WithLp.toLp 2 z) := by + simp only [dotProduct, Fintype.sum_prod_type, Fin.sum_univ_two, bargmannFourierCoefficient, + ite_true, Fin.isValue, (by decide : (1 : Fin 2) ≠ 0), ite_false, + complexRealCoordinates_apply, complexRealCoordinates_apply_one, + PiLp.inner_apply, RCLike.inner_apply'] + rw [← Finset.sum_sub_distrib] + apply Finset.sum_congr rfl + intro j _ + apply Complex.ext <;> + simp only [Complex.add_re, Complex.add_im, Complex.sub_re, Complex.sub_im, + Complex.neg_re, Complex.neg_im, Complex.mul_re, Complex.mul_im, + Complex.ofReal_re, Complex.ofReal_im, Complex.conj_re, Complex.conj_im, + Complex.I_re, Complex.I_im] <;> ring + +theorem gaussianDensity_bargmannIntegral_integrand {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianDisplacementCharacteristic A V) + (a b : MultiModePhaseSpace m) (z : Fin m → ℂ) : + bargmannInversionWeight a b (WithLp.toLp 2 z) * + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl (WithLp.toLp 2 z)) = + coherentGaussianComplexLinear (V + (1 / 2 : ℝ) • 1) (bargmannFourierCoefficient a b) z := by + rw [hG z, bargmannInversionWeight, coherentGaussianComplexLinear, + ← Complex.exp_add, bargmannFourierCoefficient_dot] + congr 1 + simp only [Matrix.add_mulVec, Matrix.smul_mulVec, one_mulVec, + dotProduct_add, dotProduct_smul, smul_eq_mul, complexRealCoordinates_dot_self] + push_cast + ring + +/-- Off-diagonal kernel obtained from the actual Gaussian displacement +characteristic; no diagonal-polarization or formal kernel hypothesis occurs. -/ +theorem gaussianDisplacement_bargmannKernel {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianDisplacementCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) (a b : MultiModePhaseSpace m) : + multiBargmannKernel A (fun j => a j) (fun j => b j) = + ((Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹ : ℂ) * + Complex.exp (inner ℂ a b + (1 / 4 : ℂ) * + (bargmannFourierCoefficient a b ⬝ᵥ + (complexifyMatrix (V + (1 / 2 : ℝ) • 1)⁻¹ *ᵥ bargmannFourierCoefficient a b))) := by + have h := integral_densityBargmannInversion hA a b + simp_rw [gaussianDensity_bargmannIntegral_integrand hG] at h + rw [integral_coherentGaussianComplexLinear hC] at h + have hp : (Real.pi : ℂ) ^ m ≠ 0 := pow_ne_zero _ (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero) + apply mul_left_cancel₀ hp + calc + _ = Complex.exp (inner ℂ a b) * + (((Real.pi ^ m / Real.sqrt (V + (1 / 2 : ℝ) • 1).det : ℝ) : ℂ) * + Complex.exp ((1 / 4 : ℂ) * (bargmannFourierCoefficient a b ⬝ᵥ + (complexifyMatrix (V + (1 / 2 : ℝ) • 1)⁻¹ *ᵥ bargmannFourierCoefficient a b)))) := + h.symm + _ = _ := by + rw [Complex.exp_add] + push_cast + ring + +theorem gaussianPhysical_bargmannKernel_fourier {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) (a b : MultiModePhaseSpace m) : + multiBargmannKernel A (fun j => a j) (fun j => b j) = + ((Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹ : ℂ) * + Complex.exp (inner ℂ a b + (1 / 4 : ℂ) * + (bargmannFourierCoefficient a b ⬝ᵥ + (complexifyMatrix (physicalDisplacementCovariance (V + (1 / 2 : ℝ) • 1)⁻¹) *ᵥ + bargmannFourierCoefficient a b))) := by + have hc : (physicalDisplacementCovariance V + (1 / 2 : ℝ) • 1).PosDef := by + rw [← physicalDisplacementCovariance_add_scalar] + exact physicalDisplacementCovariance_posDef hC + have h := gaussianDisplacement_bargmannKernel hA hG hc a b + rw [← physicalDisplacementCovariance_add_scalar, physicalDisplacementCovariance_det, + physicalDisplacementCovariance_inv] at h + exact h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannKernel.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannKernel.lean new file mode 100644 index 0000000000..b6e0392cb7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannKernel.lean @@ -0,0 +1,109 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianBargmannMatrixDefs +public import LeanPool.VacuumBellSeparation.Gaussian.BargmannBlockCoordinates + +/-! +# The manuscript's literal Bargmann matrix kernel + +The actual Gaussian characteristic and actual exponential vectors give +the independent-label kernel in the manuscript's grouped quadrature +coordinates. The matrix is literally S_B - D_Bᵀ (V + I/2)⁻¹ D_B. +The covariance hypothesis concerns the actual state, and positivity of +V + I/2 justifies the Gaussian integral used upstream. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexConjugate MatrixOrder Matrix.Norms.L2Operator + +theorem groupedPhysicalCovariance_add_scalar {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (c : ℝ) : + groupedPhysicalCovariance (V + c • 1) = groupedPhysicalCovariance V + c • 1 := by + simp only [groupedPhysicalCovariance, Matrix.submatrix_add, Matrix.submatrix_smul, + Pi.add_apply, Pi.smul_apply, Matrix.submatrix_one_equiv] + +theorem groupedPhysicalCovariance_det {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + (groupedPhysicalCovariance V).det = V.det := + Matrix.det_submatrix_equiv_self (groupedToMode m) V + +theorem groupedPhysicalCovariance_inv {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + (groupedPhysicalCovariance V)⁻¹ = groupedPhysicalCovariance V⁻¹ := + Matrix.inv_submatrix_equiv V (groupedToMode m) (groupedToMode m) + +theorem bargmannPair_swap_quadratic {m : ℕ} (a b : MultiModePhaseSpace m) : + bargmannPair a b ⬝ᵥ (bargmannSwap *ᵥ bargmannPair a b) = 2 * inner ℂ a b := by + simp only [bargmannSwap, bargmannPair, Matrix.fromBlocks_mulVec, + Matrix.zero_mulVec, Matrix.one_mulVec, + zero_add, add_zero, sumElim_dotProduct_sumElim] + change (fun j => conj (a j)) ⬝ᵥ (fun j => b j) + + (fun j => b j) ⬝ᵥ (fun j => conj (a j)) = 2 * inner ℂ a b + rw [dotProduct_comm (fun j => b j) (fun j => conj (a j))] + have hi : (fun j => conj (a j)) ⬝ᵥ (fun j => b j) = inner ℂ a b := by + simp only [dotProduct, PiLp.inner_apply, RCLike.inner_apply'] + rw [hi] + ring + +theorem interleavedBargmannQuadratures_inverse_quadratic {m : ℕ} + (C : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (a b : MultiModePhaseSpace m) : + interleavedBargmannQuadratures a b ⬝ᵥ + (complexifyMatrix C⁻¹ *ᵥ interleavedBargmannQuadratures a b) = + bargmannPair a b ⬝ᵥ + ((bargmannDᵀ * complexifyMatrix (groupedPhysicalCovariance C)⁻¹ * bargmannD) *ᵥ + bargmannPair a b) := by + have hr := reindexed_complex_quadratic (groupedToMode m) (complexifyMatrix C⁻¹) + (bargmannD *ᵥ bargmannPair a b) + have hc : complexifyMatrix (groupedPhysicalCovariance C)⁻¹ = + (complexifyMatrix C⁻¹).submatrix (groupedToMode m) (groupedToMode m) := by + rw [groupedPhysicalCovariance_inv] + rfl + have hd := complex_dotProduct_congruence bargmannDᵀ + (complexifyMatrix (groupedPhysicalCovariance C)⁻¹) (bargmannPair a b) (bargmannPair a b) + rw [Matrix.transpose_transpose, hc] at hd + rw [hc] + exact hr.symm.trans hd + +theorem bargmannGaussianMatrix_quadratic {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (a b : MultiModePhaseSpace m) : + inner ℂ a b + (1 / 4 : ℂ) * (bargmannFourierCoefficient a b ⬝ᵥ + (complexifyMatrix (physicalDisplacementCovariance (V + (1 / 2 : ℝ) • 1)⁻¹) *ᵥ + bargmannFourierCoefficient a b)) = + (1 / 2 : ℂ) * (bargmannPair a b ⬝ᵥ + (bargmannGaussianMatrix V *ᵥ bargmannPair a b)) := by + rw [bargmannFourierCoefficient_quadratic, + interleavedBargmannQuadratures_inverse_quadratic, groupedPhysicalCovariance_add_scalar] + simp only [bargmannGaussianMatrix, Matrix.sub_mulVec, dotProduct_sub, + bargmannPair_swap_quadratic] + ring + +/-- The exact Appendix A Bargmann formula for actual exponential vectors +and an actual positive trace-class density with Gaussian physical +characteristic. The labels are independent, not just equal-label values. -/ +theorem gaussianPhysical_bargmannKernel {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) (a b : MultiModePhaseSpace m) : + multiBargmannKernel A (fun j => a j) (fun j => b j) = + ((Real.sqrt (groupedPhysicalCovariance V + (1 / 2 : ℝ) • 1).det)⁻¹ : ℂ) * + Complex.exp ((1 / 2 : ℂ) * (bargmannPair a b ⬝ᵥ + (bargmannGaussianMatrix V *ᵥ bargmannPair a b))) := by + rw [gaussianPhysical_bargmannKernel_fourier hA hG hC, + bargmannGaussianMatrix_quadratic, + ← groupedPhysicalCovariance_add_scalar, groupedPhysicalCovariance_det] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannMatrixDefs.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannMatrixDefs.lean new file mode 100644 index 0000000000..21c3c55352 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianBargmannMatrixDefs.lean @@ -0,0 +1,43 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.BargmannBlockCoordinates + +/-! +# Literal statement construction extracted from Gaussian/GaussianBargmannKernel + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexConjugate MatrixOrder Matrix.Norms.L2Operator + +/-- Reorder mode/quadrature pairs into all q coordinates followed by all p +coordinates, as in Appendix A. -/ +def groupedPhysicalCovariance {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Matrix (Fin m ⊕ Fin m) (Fin m ⊕ Fin m) ℝ := + V.submatrix (groupedToMode m) (groupedToMode m) + + +/-- Literal matrix M_ρ in equation (Bargmann), with real covariance first +put into the source's grouped quadrature order. -/ +def bargmannGaussianMatrix {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Matrix (Fin m ⊕ Fin m) (Fin m ⊕ Fin m) ℂ := + bargmannSwap - bargmannDᵀ * + complexifyMatrix (groupedPhysicalCovariance V + (1 / 2 : ℝ) • 1)⁻¹ * bargmannD + + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianCoordinateTransport.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianCoordinateTransport.lean new file mode 100644 index 0000000000..e3ccf7894f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianCoordinateTransport.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianWilliamsonSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumRealCovariance +public import LeanPool.VacuumBellSeparation.Gaussian.RelativeCovarianceCongruence +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticPurityCongruence + +/-! +# Actual covariance coordinates for a common canonical Gaussian system + +Both the operator norm and the nuclear norm of the normalized covariance +perturbation are invariant under the genuine orthogonal change induced +by a real congruence. Actual inverse symplectic coordinates pull a Gaussian +density back into thermal coordinates, and characteristic uniqueness +recovers the original operator without a metaplectic group-law premise. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem norm_real_orthogonal_conjugate (O A : Matrix ι ι ℝ) (hO : Oᵀ * O = 1) : + ‖O * A * Oᵀ‖ = ‖A‖ := by + let U : unitary (Matrix ι ι ℝ) := ⟨O, by + change Oᵀ * O = 1 ∧ O * Oᵀ = 1 + exact ⟨hO, mul_eq_one_comm.mp hO⟩⟩ + change ‖(U : Matrix ι ι ℝ) * A * ((star U : unitary (Matrix ι ι ℝ)) : Matrix ι ι ℝ)‖ = ‖A‖ + rw [CStarRing.norm_mul_coe_unitary, CStarRing.norm_coe_unitary_mul] + +theorem norm_relativeCovariancePerturbation_congruence + (S : Matrix ι ι ℝ) {V : Matrix ι ι ℝ} + (hV : V.PosDef) (hW : (S * V * Sᵀ).PosDef) (Δ : Matrix ι ι ℝ) : + ‖relativeCovariancePerturbation (S * V * Sᵀ) (S * Δ * Sᵀ)‖ = + ‖relativeCovariancePerturbation V Δ‖ := by + rw [relativeCovariancePerturbation_congruence S hV hW, + norm_real_orthogonal_conjugate _ _ (relativeCongruenceOrthogonal_transpose_mul S hV hW)] + +variable {m : ℕ} + +theorem canonical_symplectic_inv + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) : + S⁻¹ * modeSymplecticForm * (S⁻¹)ᵀ = modeSymplecticForm := by + have hiS := S.nonsing_inv_mul ((Matrix.isUnit_iff_isUnit_det S).mp + (canonical_symplectic_isUnit S hS)) + calc + _ = S⁻¹ * (S * modeSymplecticForm * Sᵀ) * (S⁻¹)ᵀ := by rw [hS] + _ = (S⁻¹ * S) * modeSymplecticForm * (S⁻¹ * S)ᵀ := by + simp only [Matrix.transpose_mul] + noncomm_ring + _ = _ := by rw [hiS, Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one] + +theorem canonical_congruence_inverse_cancel + (S V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) : + S * (S⁻¹ * V * (S⁻¹)ᵀ) * Sᵀ = V := by + have hSi := S.mul_nonsing_inv ((Matrix.isUnit_iff_isUnit_det S).mp + (canonical_symplectic_isUnit S hS)) + calc + _ = (S * S⁻¹) * V * (S * S⁻¹)ᵀ := by + simp only [Matrix.transpose_mul] + noncomm_ring + _ = _ := by rw [hSi, Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one] + +theorem quantumCovariance_symplectic_congruence_posDef + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) : + (quantumCovariance (S * V * Sᵀ) modeSymplecticForm).PosDef := by + have h := hQ.mul_mul_conjTranspose_same (Matrix.vecMul_injective_of_isUnit + (complexifyMatrix_isUnit (canonical_symplectic_isUnit S hS))) + rwa [← quantumCovariance_congruence, hS] at h + +/-- Continuous linear map for the gaussian inverse coordinates, of type `MultiModeOscillatorSpace m +→L[ℂ] MultiModeOscillatorSpace m`. -/ +def gaussianInverseCoordinates + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + physicalDensityPullback S⁻¹ (canonical_symplectic_inv S hS) A + +theorem gaussianInverseCoordinates_isPositiveTraceClass + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) : IsPositiveTraceClass (gaussianInverseCoordinates S hS A) := + physicalDensityPullback_isPositiveTraceClass _ _ hA + +theorem gaussianInverseCoordinates_hasGaussianPhysicalCharacteristic + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) : + HasGaussianPhysicalCharacteristic (gaussianInverseCoordinates S hS A) + (S⁻¹ * V * (S⁻¹)ᵀ) := + physicalDensityPullback_hasGaussianPhysicalCharacteristic _ _ hA hG + +theorem physicalDensityPullback_gaussianInverseCoordinates + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) : + physicalDensityPullback S hS (gaussianInverseCoordinates S hS A) = A := by + have hB := gaussianInverseCoordinates_isPositiveTraceClass S hS hA + apply gaussianPhysical_density_unique + (physicalDensityPullback_isPositiveTraceClass S hS hB) hA + · have h := physicalDensityPullback_hasGaussianPhysicalCharacteristic S hS hB + (gaussianInverseCoordinates_hasGaussianPhysicalCharacteristic S hS hA hG) + rwa [canonical_congruence_inverse_cancel S V hS] at h + · exact hG + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianCovarianceNormalization.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianCovarianceNormalization.lean new file mode 100644 index 0000000000..6b0abc280f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianCovarianceNormalization.lean @@ -0,0 +1,130 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedCovarianceThermal +public import LeanPool.VacuumBellSeparation.Gaussian.RealMatrixOperatorNorms +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedCommutation + +/-! +# From actual Gaussian covariances to source normalization coordinates + +Whitening by the actual inverse square root preserves both perturbation +norms. On genuine Euclidean Hilbert space the normalized actual Gaussian +power increment equals the thermal CFC of the normalized commutation +matrix. These are coordinate identities, independent of how a source +subspace is embedded in a larger real Hilbert space. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem matrix_inverse_sqrt_transpose {V : Matrix ι ι ℝ} (hV : V.PosDef) : + ((CFC.sqrt V)⁻¹)ᵀ = (CFC.sqrt V)⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hV).inv.isHermitian.eq + +theorem relativeCovariancePerturbation_posDef + {V H : Matrix ι ι ℝ} (hV : V.PosDef) (hH : H.PosDef) : + (relativeCovariancePerturbation V H).PosDef := by + have h := hH.mul_mul_conjTranspose_same + (Matrix.vecMul_injective_of_isUnit (matrix_sqrt_posDef hV).inv.isUnit) + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial, + matrix_inverse_sqrt_transpose hV, relativeCovariancePerturbation] using h + +/-- No symplectic assumption is needed for this simultaneous coordinate +change of the increment and perturbation matrices. -/ +theorem relativeCovariancePerturbation_whitening_norms + {V H : Matrix ι ι ℝ} (hV : V.PosDef) (hH : H.PosDef) (Δ : Matrix ι ι ℝ) : + ‖relativeCovariancePerturbation (relativeCovariancePerturbation V H) + (relativeCovariancePerturbation V Δ)‖ = ‖relativeCovariancePerturbation H Δ‖ ∧ + matrixTraceNorm (relativeCovariancePerturbation (relativeCovariancePerturbation V H) + (relativeCovariancePerturbation V Δ)) = matrixTraceNorm + (relativeCovariancePerturbation H Δ) := by + let S := (CFC.sqrt V)⁻¹ + have ht : Sᵀ = S := matrix_inverse_sqrt_transpose hV + have hW : (S * H * Sᵀ).PosDef := by + rw [ht] + exact relativeCovariancePerturbation_posDef hV hH + have hn := norm_relativeCovariancePerturbation_congruence S hH hW Δ + have htr := matrixTraceNorm_relativeCovariancePerturbation_congruence S hH hW Δ + simpa only [ht, S, relativeCovariancePerturbation] using And.intro hn htr + +theorem toEuclideanCLM_cfc_abs (A : Matrix ι ι ℂ) (f : ℝ → ℝ) : + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (cfc f (CFC.abs A)) = + cfc f (CFC.abs ((Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) A)) := by + let euclideanLinear := + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)).toAlgEquiv.toLinearEquiv.toLinearMap + have hm := StarAlgHomClass.map_cfc (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) f (CFC.abs A) + ((CFC.abs A).finite_real_spectrum.continuousOn f) + euclideanLinear.continuous_of_finiteDimensional + (CFC.abs_nonneg A).isSelfAdjoint + (map_nonneg (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (CFC.abs_nonneg A)).isSelfAdjoint + simpa only [toEuclideanCLM_abs] using hm + +variable {m : ℕ} + +theorem gaussian_power_increment_operator_eq_normalizedThermal + {σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hσ : IsFaithfulDensity σ) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hG : HasGaussianPhysicalCharacteristic σ V) + {τ : ℝ} (hτ : 0 < τ) : + realMatrixOperator (relativeCovariancePerturbation V (gaussianPowerIncrement σ τ)) = + normalizedThermal τ ((Matrix.toEuclideanCLM (n := Fin m × Fin 2) (𝕜 := ℂ)) + (covarianceCommutationMatrix V modeSymplecticForm)) := by + rw [realMatrixOperator, gaussian_power_increment_eq_cfc_commutation hσ hV hG hτ, + toEuclideanCLM_cfc_abs] + rfl + +theorem gaussian_thermal_weight_isStrictlyPositive + {σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hσ : IsFaithfulDensity σ) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hG : HasGaussianPhysicalCharacteristic σ V) + {τ : ℝ} (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + IsStrictlyPositive (normalizedThermal τ + ((Matrix.toEuclideanCLM (n := Fin m × Fin 2) (𝕜 := ℂ)) + (covarianceCommutationMatrix V modeSymplecticForm))) := by + rw [← gaussian_power_increment_operator_eq_normalizedThermal hσ hV hG hτ₀, + realMatrixOperator] + have hp := complexifyMatrix_posDef (relativeCovariancePerturbation_posDef + (real_posDef_of_quantum_posDef (actual_faithful_gaussian_quantum_posDef hσ hV hG)) + (faithful_gaussian_power_increment_posDef hσ hV hG hτ₀ hτ₁)) + exact (hp.isUnit.map + (Matrix.toEuclideanCLM (n := Fin m × Fin 2) (𝕜 := + ℂ)).toAlgEquiv.toRingEquiv.toMonoidHom).isStrictlyPositive + (map_nonneg (Matrix.toEuclideanCLM (n := Fin m × Fin 2) (𝕜 := ℂ)) hp.posSemidef.nonneg) + +theorem intrinsicGaussianRelativePerturbation_whitening_norms + {ρ σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hσ : IsFaithfulDensity σ) + {Vρ Vσ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hVρ : Vρ.IsHermitian) (hVσ : Vσ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) + {τ : ℝ} (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + let H := relativeCovariancePerturbation Vσ (gaussianPowerIncrement σ τ) + let Δ := relativeCovariancePerturbation Vσ (Vρ - Vσ) + ‖relativeCovariancePerturbation H Δ‖ = ‖intrinsicGaussianRelativePerturbation ρ σ τ‖ ∧ + matrixTraceNorm (relativeCovariancePerturbation H Δ) = + matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ τ) := by + rw [intrinsicGaussianRelativePerturbation, gaussianPhysicalCovariance_eq hVρ hGρ, + gaussianPhysicalCovariance_eq hVσ hGσ] + exact relativeCovariancePerturbation_whitening_norms + (real_posDef_of_quantum_posDef (actual_faithful_gaussian_quantum_posDef hσ hVσ hGσ)) + (faithful_gaussian_power_increment_posDef hσ hVσ hGσ hτ₀ hτ₁) (Vρ - Vσ) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianCovarianceUniqueness.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianCovarianceUniqueness.lean new file mode 100644 index 0000000000..1a948f7a8f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianCovarianceUniqueness.lean @@ -0,0 +1,111 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianUncertaintyNecessity + +/-! +# Intrinsic covariance from the actual Gaussian characteristic + +The symmetric real covariance in the genuine Weyl expectation is unique. +The physical covariance below chooses that unique matrix when it exists; +its zero fallback is never used in Gaussian evaluation theorems. Symmetry +is essential because a quadratic characteristic cannot detect an +antisymmetric addition. Normalized power covariance uses the actual CFC +power and actual positive-trace normalization of the density. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {m : ℕ} + +theorem real_symmetric_matrix_eq_of_quadratic_eq + {V W : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hW : W.IsHermitian) + (h : ∀ x : Fin m × Fin 2 → ℝ, x ⬝ᵥ (V *ᵥ x) = x ⬝ᵥ (W *ᵥ x)) : V = W := by + ext i j + have hi := h (Pi.single i 1) + have hj := h (Pi.single j 1) + have hij := h (Pi.single i 1 + Pi.single j 1) + have hv : V j i = V i j := by simpa only [star_trivial] using hV.apply i j + have hw : W j i = W i j := by simpa only [star_trivial] using hW.apply i j + simp only [Matrix.mulVec_add, add_dotProduct, dotProduct_add, + real_coordinate_basis_bilinear, hv, hw] at hi hj hij + linarith + +theorem gaussianDisplacement_covariance_unique + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + {V W : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hW : W.IsHermitian) + (hGV : HasGaussianDisplacementCharacteristic A V) + (hGW : HasGaussianDisplacementCharacteristic A W) : V = W := by + apply real_symmetric_matrix_eq_of_quadratic_eq hV hW + intro x + have he := (gaussianDisplacement_realCoordinateWeyl hGV x).symm.trans + (gaussianDisplacement_realCoordinateWeyl hGW x) + have hre := congrArg Complex.re he + simp only [Complex.exp_ofReal_re] at hre + exact neg_injective (Real.exp_injective hre) + +theorem physicalDisplacementCovariance_isHermitian + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.IsHermitian) : + (physicalDisplacementCovariance V).IsHermitian := by + simpa only [physicalDisplacementCovariance, Matrix.conjTranspose_eq_transpose_of_trivial] using + Matrix.isHermitian_conjTranspose_mul_mul modeSymplecticForm hV + +theorem gaussianPhysical_covariance_unique + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + {V W : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hW : W.IsHermitian) + (hGV : HasGaussianPhysicalCharacteristic A V) + (hGW : HasGaussianPhysicalCharacteristic A W) : V = W := by + have he := gaussianDisplacement_covariance_unique + (physicalDisplacementCovariance_isHermitian hV) + (physicalDisplacementCovariance_isHermitian hW) hGV hGW + have hh := congrArg (fun B => modeSymplecticForm * B * modeSymplecticFormᵀ) he + have hc (B : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + modeSymplecticForm * physicalDisplacementCovariance B * modeSymplecticFormᵀ = B := by + unfold physicalDisplacementCovariance + calc + _ = (modeSymplecticForm * modeSymplecticFormᵀ) * B * + (modeSymplecticForm * modeSymplecticFormᵀ) := by noncomm_ring + _ = B := by rw [modeSymplecticForm_mul_transpose, Matrix.one_mul, Matrix.mul_one] + simpa only [hc] using hh + +open scoped Classical in +/-- Hermitian covariance of the physical Gaussian characteristic function. +Use zero when no such covariance exists. -/ +def gaussianPhysicalCovariance + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + if h : ∃ V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ, + V.IsHermitian ∧ HasGaussianPhysicalCharacteristic A V then h.choose else 0 + +theorem gaussianPhysicalCovariance_eq + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hG : HasGaussianPhysicalCharacteristic A V) : + gaussianPhysicalCovariance A = V := by + let h : ∃ W : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ, + W.IsHermitian ∧ HasGaussianPhysicalCharacteristic A W := ⟨V, hV, hG⟩ + rw [gaussianPhysicalCovariance, dite_eq_left h] + exact gaussianPhysical_covariance_unique h.choose_spec.1 hV h.choose_spec.2 hG + +/-- Normalized Gaussian power covariance defined as `gaussianPhysicalCovariance +(normalizedPositiveDensity (A ^ a))`. -/ +def normalizedGaussianPowerCovariance + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) (a : ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + gaussianPhysicalCovariance (normalizedPositiveDensity (A ^ a)) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianDiagonalCharacteristic.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianDiagonalCharacteristic.lean new file mode 100644 index 0000000000..d68cd22e1f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianDiagonalCharacteristic.lean @@ -0,0 +1,122 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityCoherentFourier +public import LeanPool.VacuumBellSeparation.Gaussian.PhysicalGaussianHusimi + +/-! +# Actual Gaussian coherent diagonal determines Gaussian characteristic + +The proved coherent-frame Fourier identity recovers the actual Weyl +expectation from the actual Husimi density. A positive real precision +matrix is sufficient for the genuine matrix Fourier integral. The +physical covariance is the inverse precision minus half the identity, +with the displacement-label symplectic rotation kept explicit. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory +open scoped MatrixOrder Matrix.Norms.L2Operator + +theorem physicalDisplacementCovariance_sub_scalar {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (c : ℝ) : + physicalDisplacementCovariance (V - c • 1) = physicalDisplacementCovariance V - c • 1 := by + simpa only [sub_eq_add_neg, neg_smul] using + physicalDisplacementCovariance_add_scalar V (-c) + +theorem physicalDisplacementCovariance_quadratic {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (u : Fin m × Fin 2 → ℝ) : + (modeSymplecticForm *ᵥ u) ⬝ᵥ (V *ᵥ (modeSymplecticForm *ᵥ u)) = + u ⬝ᵥ (physicalDisplacementCovariance V *ᵥ u) := by + simpa only [Matrix.transpose_transpose, physicalDisplacementCovariance] using + dotProduct_congruence modeSymplecticFormᵀ V u u + +theorem coherentGaussian_phase_eq_fourier {m : ℕ} + (P : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (z : MultiModePhaseSpace m) (w : Fin m → ℂ) : + coherentFourierPhase z (WithLp.toLp 2 w) * (coherentMatrixGaussian P w : ℂ) = + coherentMatrixFourier P (modeSymplecticForm *ᵥ complexRealCoordinates m + (fun j => z j)) w := by + rw [coherentFourierPhase, coherentMatrixGaussian, Complex.ofReal_exp, + coherentMatrixFourier, ← Complex.exp_add, symplectic_rotated_dot_complexRealCoordinates] + congr 1 + push_cast + ring + +theorem gaussianPhysical_characteristic_weight {m : ℕ} + (P : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (z : Fin m → ℂ) : + weylVacuumWeight m z * Complex.exp ((-(complexRealCoordinates m z ⬝ᵥ + (physicalDisplacementCovariance (P⁻¹ - (1 / 2 : ℝ) • 1) *ᵥ + complexRealCoordinates m z)) : ℝ) : ℂ) = + Complex.exp ((-((modeSymplecticForm *ᵥ complexRealCoordinates m z) ⬝ᵥ + (P⁻¹ *ᵥ (modeSymplecticForm *ᵥ complexRealCoordinates m z))) : ℝ) : ℂ) := by + rw [weylVacuumWeight, ← Complex.exp_add, ← Complex.ofReal_add, + physicalDisplacementCovariance_quadratic, physicalDisplacementCovariance_sub_scalar] + congr 2 + simp only [Matrix.sub_mulVec, Matrix.smul_mulVec, one_mulVec, + dotProduct_sub, dotProduct_smul, smul_eq_mul, complexRealCoordinates_dot_self] + ring + +theorem densityExpectation_of_gaussian_coherentDiagonal {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {P : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hP : P.PosDef) (c : ℝ) + (hdiag : ∀ w : Fin m → ℂ, + multiCoherentPositiveDiagonal A w = c * coherentMatrixGaussian P w) + (z : Fin m → ℂ) : + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl (WithLp.toLp 2 z)) = + ((c * Real.pi ^ m / Real.sqrt P.det : ℝ) : ℂ) * + Complex.exp ((-(complexRealCoordinates m z ⬝ᵥ + (physicalDisplacementCovariance (P⁻¹ - (1 / 2 : ℝ) • 1) *ᵥ + complexRealCoordinates m z)) : ℝ) : ℂ) := by + have h := integral_densityCoherentFourier hA (WithLp.toLp 2 z) + have he (w : Fin m → ℂ) : + coherentFourierPhase (WithLp.toLp 2 z) (WithLp.toLp 2 w) * + (multiCoherentPositiveDiagonal A w : ℂ) = + (c : ℂ) * coherentMatrixFourier P + (modeSymplecticForm *ᵥ complexRealCoordinates m z) w := by + rw [hdiag, Complex.ofReal_mul] + calc + _ = (c : ℂ) * (coherentFourierPhase (WithLp.toLp 2 z) (WithLp.toLp 2 w) * + (coherentMatrixGaussian P w : ℂ)) := by ring + _ = _ := by rw [coherentGaussian_phase_eq_fourier] + simp_rw [he] at h + rw [integral_const_mul, integral_coherentMatrixFourier hP] at h + apply mul_left_cancel₀ (show weylVacuumWeight m z ≠ 0 from Complex.exp_ne_zero _) + calc + _ = (c : ℂ) * (((Real.pi ^ m / Real.sqrt P.det : ℝ) : ℂ) * + Complex.exp ((-((modeSymplecticForm *ᵥ complexRealCoordinates m z) ⬝ᵥ + (P⁻¹ *ᵥ (modeSymplecticForm *ᵥ complexRealCoordinates m z))) : ℝ) : ℂ)) := h.symm + _ = _ := by + rw [← gaussianPhysical_characteristic_weight] + push_cast + ring + +/-- A normalized actual Gaussian coherent diagonal forces the actual +physical Gaussian characteristic, rather than serving as its definition. -/ +theorem hasGaussianPhysicalCharacteristic_of_coherentDiagonal {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {P : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hP : P.PosDef) + (hdiag : ∀ w : Fin m → ℂ, + multiCoherentPositiveDiagonal A w = + (Real.sqrt P.det / Real.pi ^ m) * coherentMatrixGaussian P w) : + HasGaussianPhysicalCharacteristic A (P⁻¹ - (1 / 2 : ℝ) • 1) := by + intro z + have h := densityExpectation_of_gaussian_coherentDiagonal hA hP + (Real.sqrt P.det / Real.pi ^ m) hdiag z + have hc : (Real.sqrt P.det / Real.pi ^ m) * Real.pi ^ m / Real.sqrt P.det = 1 := by + field_simp [show Real.pi ^ m ≠ 0 by positivity, ne_of_gt (Real.sqrt_pos.mpr hP.det_pos)] + simpa only [hc, Complex.ofReal_one, one_mul] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianDifferenceQuotient.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianDifferenceQuotient.lean new file mode 100644 index 0000000000..00c0c172d4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianDifferenceQuotient.lean @@ -0,0 +1,57 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Calculus.Deriv.Slope +public import Mathlib.Analysis.SpecialFunctions.ExpDeriv +public import Mathlib.Analysis.Calculus.Deriv.Linear + +/-! +# Genuine exponential difference quotients for quantum uncertainty + +The real-parameter derivative of three actual complex exponentials gives +the finite-difference limit used for Weyl Gram matrices. Positive times +will be inserted as squared displacement amplitudes, avoiding any assumed +differentiability of unbounded quadrature generators. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Filter +open scoped Topology + +theorem hasDerivAt_complex_exp_real_mul (a : ℂ) : + HasDerivAt (fun s : ℝ => Complex.exp ((s : ℂ) * a)) a 0 := by + have hc : HasDerivAt (fun s : ℝ => (s : ℂ) * a) a 0 := by + simpa using (Complex.ofRealCLM.hasDerivAt (x := (0 : ℝ))).mul_const a + simpa using hc.cexp + +/-- Gaussian gram difference given by `Complex.exp ((s : ℂ) * a) - Complex.exp ((s : ℂ) * b) - +Complex.exp ((s : ℂ) * c) + 1`. -/ +def gaussianGramDifference (a b c : ℂ) (s : ℝ) : ℂ := + Complex.exp ((s : ℂ) * a) - Complex.exp ((s : ℂ) * b) - + Complex.exp ((s : ℂ) * c) + 1 + +@[simp] theorem gaussianGramDifference_zero (a b c : ℂ) : gaussianGramDifference a b c 0 = 0 := by + simp [gaussianGramDifference] + +theorem hasDerivAt_gaussianGramDifference (a b c : ℂ) : + HasDerivAt (gaussianGramDifference a b c) (a - b - c) 0 := + (((hasDerivAt_complex_exp_real_mul a).sub (hasDerivAt_complex_exp_real_mul b)).sub + (hasDerivAt_complex_exp_real_mul c)).add_const 1 + +theorem tendsto_gaussianGramDifference_quotient (a b c : ℂ) : + Tendsto (fun s : ℝ => s⁻¹ • gaussianGramDifference a b c s) + (𝓝[>] (0 : ℝ)) (𝓝 (a - b - c)) := by + simpa only [zero_add, gaussianGramDifference_zero, sub_zero] using + (hasDerivAt_gaussianGramDifference a b c).tendsto_slope_zero_right + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianFaithfulRenyiComparison.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianFaithfulRenyiComparison.lean new file mode 100644 index 0000000000..7dfae4d7b7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianFaithfulRenyiComparison.lean @@ -0,0 +1,73 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiComparison +public import LeanPool.VacuumBellSeparation.Gaussian.FaithfulGaussianUncertainty +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianUncertaintyNecessity +public import LeanPool.VacuumBellSeparation.Gaussian.SandwichedRenyiQuantity + +/-! +# Rényi comparison for actual faithful Gaussian densities + +Symmetric physical covariance and the actual Gaussian characteristic +imply the genuine quantum uncertainty inequality. Actual injectivity then +excludes every pure mode. Consequently the source comparison applies +without a separate quantum-positivity premise. The conclusion is about +the uniquely determined inverse-domain sandwiched Rényi quantity. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder Matrix.Norms.L2Operator + +variable {m : ℕ} +variable {ρ σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} +variable {Vρ Vσ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +theorem actual_faithful_gaussian_quantum_posDef + (hρ : IsFaithfulDensity ρ) (hVρ : Vρ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) : + (quantumCovariance Vρ modeSymplecticForm).PosDef := + faithful_gaussian_quantum_posDef hρ hGρ + (gaussianPhysical_quantum_posSemidef hρ.isPositiveTraceClass hVρ hGρ) + +theorem exists_faithful_gaussian_renyi_comparison + (hρ : IsFaithfulDensity ρ) (hσ : IsFaithfulDensity σ) + (hVρ : Vρ.IsHermitian) (hVσ : Vσ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) : + ∃ (q : Fin m → ℝ) (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (_hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm), + (∀ j, 0 < q j) ∧ (∀ j, q j < 1) ∧ + S * thermalReferenceCovariance q * Sᵀ = Vσ ∧ + (∀ a : ℝ, 0 < a → HasGaussianPhysicalCharacteristic (normalizedPositiveDensity (σ ^ a)) + (S * thermalPowerCovariance q a * Sᵀ)) ∧ + ∀ r : ℝ, 1 < r → + ‖transportedGaussianRelativePerturbation S q (gaussianRenyiTau r) Vρ‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹ → + 0 < sandwichedRenyiQuantity ρ σ r ∧ sandwichedRenyiQuantity ρ σ r < ⊤ ∧ + Real.log (sandwichedRenyiQuantity ρ σ r).toReal ≤ + 2 * r * max 2 (gaussianRenyiTau r)⁻¹ * + matrixTraceNorm (transportedGaussianRelativePerturbation S q + (gaussianRenyiTau r) Vρ) := by + obtain ⟨q, S, hS, hq₀, hq₁, hcov, hpower, hcomp⟩ := + exists_gaussian_renyi_comparison hρ.isPositiveTraceClass hσ.isPositiveTraceClass hGρ hGσ + (actual_faithful_gaussian_quantum_posDef hρ hVρ hGρ) + (actual_faithful_gaussian_quantum_posDef hσ hVσ hGσ) + refine ⟨q, S, hS, hq₀, hq₁, hcov, hpower, ?_⟩ + intro r hr hsmall + obtain ⟨Θ, hΘ, hf, hp, hfin, hb⟩ := hcomp r hr hsmall + rw [sandwichedRenyiQuantity_eq_power_trace hσ hr hΘ.1 hf] + exact ⟨hp, hfin, hb⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianHusimi.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianHusimi.lean new file mode 100644 index 0000000000..c2869d024d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianHusimi.lean @@ -0,0 +1,99 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.DensityWeylInversion +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentMatrixFourier + +/-! +# Actual Gaussian characteristic implies the coherent Gaussian diagonal + +Gaussianity is defined by the actual complex density expectation of the +constructed Weyl operators. Weak inversion and the genuine matrix Fourier +integral derive its Husimi diagonal. The displacement-label covariance +and the physical position/momentum covariance differ by the explicit +symplectic rotation, which is retained in this theorem. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory +open scoped ComplexConjugate MatrixOrder Matrix.Norms.L2Operator + +/-- Condition that the data have Gaussian displacement characteristic. -/ +def HasGaussianDisplacementCharacteristic {m : ℕ} + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : Prop := + ∀ z : Fin m → ℂ, + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl (WithLp.toLp 2 z)) = + Complex.exp ((-(complexRealCoordinates m z ⬝ᵥ + (V *ᵥ complexRealCoordinates m z)) : ℝ) : ℂ) + +theorem complexRealCoordinates_dot_self {m : ℕ} (z : Fin m → ℂ) : + complexRealCoordinates m z ⬝ᵥ complexRealCoordinates m z = + ‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 := by + simp only [dotProduct, Fintype.sum_prod_type, Fin.sum_univ_two, + complexRealCoordinates_apply, complexRealCoordinates_apply_one, + EuclideanSpace.norm_sq_eq, Complex.sq_norm, Complex.normSq_apply] + +theorem symplectic_rotated_dot_complexRealCoordinates {m : ℕ} + (w : MultiModePhaseSpace m) (z : Fin m → ℂ) : + (modeSymplecticForm *ᵥ complexRealCoordinates m (fun j => w j)) ⬝ᵥ + complexRealCoordinates m z = -(inner ℂ w (WithLp.toLp 2 z)).im := by + simp only [dotProduct, Fintype.sum_prod_type, Fin.sum_univ_two, + modeSymplecticForm_mulVec_zero, modeSymplecticForm_mulVec_one, + complexRealCoordinates_apply, complexRealCoordinates_apply_one, + PiLp.inner_apply, RCLike.inner_apply', Complex.im_sum, + Complex.mul_im, Complex.conj_re, Complex.conj_im, ← Finset.sum_neg_distrib] + apply Finset.sum_congr rfl + intro j _ + ring + +theorem gaussianDensity_convolution_integrand {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianDisplacementCharacteristic A V) (w : MultiModePhaseSpace m) + (z : Fin m → ℂ) : + weylVacuumWeight m z * coherentFourierPhase w (WithLp.toLp 2 z) * + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl (WithLp.toLp 2 z)) = + coherentMatrixFourier (V + (1 / 2 : ℝ) • 1) + (modeSymplecticForm *ᵥ complexRealCoordinates m (fun j => w j)) z := by + rw [hG z, weylVacuumWeight, coherentFourierPhase, coherentMatrixFourier, + ← Complex.exp_add, ← Complex.exp_add, + symplectic_rotated_dot_complexRealCoordinates] + congr 1 + simp only [Matrix.add_mulVec, Matrix.smul_mulVec, one_mulVec, + dotProduct_add, dotProduct_smul, smul_eq_mul, complexRealCoordinates_dot_self] + push_cast + ring + +/-- The actual Husimi diagonal. V is explicitly the covariance in +displacement labels, hence the two symplectic rotations in its inverse +quadratic form. No Bargmann-kernel or coherent-diagonal hypothesis is used. -/ +theorem gaussianDensity_coherent_diagonal {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianDisplacementCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) (w : MultiModePhaseSpace m) : + inner ℂ (multiCoherentVector w) (A (multiCoherentVector w)) = + ((Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹ : ℂ) * + Complex.exp ((-((modeSymplecticForm *ᵥ complexRealCoordinates m (fun j => w j)) ⬝ᵥ + ((V + (1 / 2 : ℝ) • 1)⁻¹ *ᵥ + (modeSymplecticForm *ᵥ complexRealCoordinates m (fun j => w j)))) : ℝ) : ℂ) := by + have h := integral_densityWeyl_convolution hA w + simp_rw [gaussianDensity_convolution_integrand hG] at h + rw [integral_coherentMatrixFourier hC] at h + have hp : (Real.pi : ℂ) ^ m ≠ 0 := pow_ne_zero _ (by exact_mod_cast Real.pi_pos.ne') + apply (mul_left_cancel₀ hp) + exact h.symm.trans (by push_cast; ring) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianNormalizedPowers.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianNormalizedPowers.lean new file mode 100644 index 0000000000..9e9a364d3d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianNormalizedPowers.lean @@ -0,0 +1,137 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianPurityTrace +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeThermalPowers +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceScaling + +/-! +# Actual normalized powers of a physical Gaussian density + +The same constructed symplectic unitary diagonalizes the density and every +positive CFC power. Dividing by the actual positive finite trace changes +each thermal parameter q to q^r and gives the stated physical covariance. +This is an operator equality on the full oscillator space, including pure +factors, rather than a definition of a new state by its target covariance. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem conjStarAlgEquiv_real_smul (e : E ≃ₗᵢ[ℂ] F) (c : ℝ) (A : E →L[ℂ] E) : + e.conjStarAlgEquiv (c • A) = c • e.conjStarAlgEquiv A := by + ext x + simp only [LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, smul_apply] + exact LinearMapClass.map_smul_of_tower e c _ + +theorem normalizedPositiveDensity_conjStarAlgEquiv + (e : E ≃ₗᵢ[ℂ] F) {A : E →L[ℂ] E} (hA : 0 ≤ A) : + normalizedPositiveDensity (e.conjStarAlgEquiv A) = + e.conjStarAlgEquiv (normalizedPositiveDensity A) := by + rw [normalizedPositiveDensity, positiveTrace_conjStarAlgEquiv e hA, + normalizedPositiveDensity, conjStarAlgEquiv_real_smul] + +variable {m : ℕ} + +theorem normalizedPositiveDensity_matrixDensityPullback_rpow + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : Sᵀ * modeSymplecticForm * S = modeSymplecticForm) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : 0 ≤ A) {r : ℝ} (hr : 0 ≤ r) : + normalizedPositiveDensity (matrixDensityPullback S hS A ^ r) = + matrixDensityPullback S hS (normalizedPositiveDensity (A ^ r)) := by + let e : MultiModeOscillatorSpace m ≃ₗᵢ[ℂ] MultiModeOscillatorSpace m := + (symplecticWeylImplementer (matrixWeylLabelMap_preservesWeylForm S hS)).symm + change normalizedPositiveDensity ((e.conjStarAlgEquiv A) ^ r) = + e.conjStarAlgEquiv (normalizedPositiveDensity (A ^ r)) + calc + _ = normalizedPositiveDensity (e.conjStarAlgEquiv (A ^ r)) := + congrArg normalizedPositiveDensity + (conjStarAlgEquiv_rpow (E := MultiModeOscillatorSpace m) + (F := MultiModeOscillatorSpace m) e (A := A) hA (τ := r) hr).symm + _ = _ := normalizedPositiveDensity_conjStarAlgEquiv e CFC.rpow_nonneg + +/-- Powered mode variance defined as `thermalQuadratureVariance (covarianceThermalParameter v ^ +r)`. -/ +def poweredModeVariance (r v : ℝ) : ℝ := + thermalQuadratureVariance (covarianceThermalParameter v ^ r) + +theorem poweredModeVariance_half_le {r v : ℝ} (hr : 0 < r) (hv : 1 / 2 ≤ v) : + 1 / 2 ≤ poweredModeVariance r v := by + unfold poweredModeVariance + exact half_le_thermalQuadratureVariance + (Real.rpow_nonneg (covarianceThermalParameter_nonneg hv) _) + (Real.rpow_lt_one (covarianceThermalParameter_nonneg hv) + (covarianceThermalParameter_lt_one hv) hr) + +theorem normalizedPositiveDensity_covarianceProductDensity_rpow + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) {r : ℝ} (hr : 0 < r) : + normalizedPositiveDensity (covarianceProductDensity ν ^ r) = + covarianceProductDensity (fun j => poweredModeVariance r (ν j)) := by + change normalizedMultiThermalPower (fun j => covarianceThermalParameter (ν j)) r = _ + rw [normalizedMultiThermalPower_eq_density + (fun j => covarianceThermalParameter_nonneg (hν j)) + (fun j => covarianceThermalParameter_lt_one (hν j)) hr] + unfold covarianceProductDensity poweredModeVariance + congr 1 + funext j + exact (covarianceThermalParameter_variance + (Real.rpow_nonneg (covarianceThermalParameter_nonneg (hν j)) _) + (Real.rpow_lt_one (covarianceThermalParameter_nonneg (hν j)) + (covarianceThermalParameter_lt_one (hν j)) hr)).symm + +/-- Actual full-space equality after normalization by the actual power trace. -/ +theorem normalizedPositiveDensity_physicalWilliamsonDensity_rpow + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) {r : ℝ} (hr : 0 < r) : + normalizedPositiveDensity (physicalWilliamsonDensity S hS ν ^ r) = + physicalWilliamsonDensity S hS (fun j => poweredModeVariance r (ν j)) := by + rw [physicalWilliamsonDensity, + normalizedPositiveDensity_matrixDensityPullback_rpow _ _ + (covarianceProductDensity_nonneg hν) hr.le, + normalizedPositiveDensity_covarianceProductDensity_rpow hν hr] + rfl + +theorem normalizedPositiveDensity_gaussianPhysical_rpow_eq + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) + (hG : HasGaussianPhysicalCharacteristic A (S * modeDiagonal ν * Sᵀ)) + {r : ℝ} (hr : 0 < r) : + normalizedPositiveDensity (A ^ r) = + physicalWilliamsonDensity S hS (fun j => poweredModeVariance r (ν j)) := by + rw [gaussianPhysical_eq_physicalWilliamsonDensity hA S hS hν hG] + exact normalizedPositiveDensity_physicalWilliamsonDensity_rpow S hS hν hr + +theorem normalizedPositiveDensity_gaussianPhysical_rpow_characteristic + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) + (hG : HasGaussianPhysicalCharacteristic A (S * modeDiagonal ν * Sᵀ)) + {r : ℝ} (hr : 0 < r) : + HasGaussianPhysicalCharacteristic (normalizedPositiveDensity (A ^ r)) + (S * modeDiagonal (fun j => poweredModeVariance r (ν j)) * Sᵀ) := by + rw [normalizedPositiveDensity_gaussianPhysical_rpow_eq hA S hS hν hG hr] + exact physicalWilliamsonDensity_hasGaussianPhysicalCharacteristic S hS + (fun j => poweredModeVariance_half_le hr (hν j)) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianProductReference.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianProductReference.lean new file mode 100644 index 0000000000..7317dde3ad --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianProductReference.lean @@ -0,0 +1,100 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplementaryLabelCovariance +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRegionalMarginal +public import LeanPool.VacuumBellSeparation.Gaussian.FixedGaussianExistence + +/-! +# Actual faithful Gaussian product reference with the original marginals + +Complementary symplectically orthogonal real label subspaces determine +literal projection matrices and a strictly quantum-positive decorrelated +covariance. The proved fixed-representation Gaussian existence theorem +constructs its actual faithful density. On the full regional von Neumann +algebras, its marginals agree with the original density and its joint +expectation is their product. No reference-state existence or independence +is inserted as a structure field or a hypothesis. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder + +variable {m : ℕ} + +/-- A genuine product reference on the original canonical oscillator +Hilbert space, with both true regional marginals preserved. -/ +theorem exists_faithful_gaussian_product_reference + {ρ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hρ : IsPositiveTraceClass ρ) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hGρ : HasGaussianPhysicalCharacteristic ρ V) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) + (L R : Submodule ℝ (Fin m × Fin 2 → ℝ)) (h : IsCompl L R) + (hΩ : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (modeSymplecticForm *ᵥ y) = 0) : + ∃ σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsFaithfulDensity σ ∧ + HasGaussianPhysicalCharacteristic σ (labelDecorrelatedCovariance V L R h) ∧ + (∀ A ∈ generatedVNA (regionalWeylGenerators L), + densityExpectation (multiModeNumberBasis m) σ A = + densityExpectation (multiModeNumberBasis m) ρ A) ∧ + (∀ B ∈ generatedVNA (regionalWeylGenerators R), + densityExpectation (multiModeNumberBasis m) σ B = + densityExpectation (multiModeNumberBasis m) ρ B) ∧ + (∀ A ∈ generatedVNA (regionalWeylGenerators L), + ∀ B ∈ generatedVNA (regionalWeylGenerators R), + densityExpectation (multiModeNumberBasis m) σ (A * B) = + densityExpectation (multiModeNumberBasis m) ρ A * + densityExpectation (multiModeNumberBasis m) ρ B) := by + let W := labelDecorrelatedCovariance V L R h + have hWQ : (quantumCovariance W modeSymplecticForm).PosDef := + labelDecorrelatedCovariance_quantum_posDef hQ transpose_modeSymplecticForm L R h hΩ + have hW : W.PosDef := real_posDef_of_quantum_posDef hWQ + obtain ⟨σ, hσ, hGσ⟩ := exists_fixed_faithful_gaussian_physical_density W hW hWQ + have hleft : ∀ A ∈ generatedVNA (regionalWeylGenerators L), + densityExpectation (multiModeNumberBasis m) σ A = + densityExpectation (multiModeNumberBasis m) ρ A := by + intro A hA + exact gaussianPhysical_regional_vna_marginal hσ.isPositiveTraceClass hρ hGσ hGρ L + (fun x hx => labelDecorrelatedCovariance_left_restriction V L R h hx hx) hA + have hright : ∀ B ∈ generatedVNA (regionalWeylGenerators R), + densityExpectation (multiModeNumberBasis m) σ B = + densityExpectation (multiModeNumberBasis m) ρ B := by + intro B hB + exact gaussianPhysical_regional_vna_marginal hσ.isPositiveTraceClass hρ hGσ hGρ R + (fun y hy => labelDecorrelatedCovariance_right_restriction V L R h hy hy) hB + refine ⟨σ, hσ, hGσ, hleft, hright, ?_⟩ + intro A hA B hB + rw [gaussianPhysical_regional_vna_product hσ.isPositiveTraceClass hW.isHermitian hGσ + L R hΩ (fun x hx y hy => labelDecorrelatedCovariance_cross V L R h hx hy) hA hB, + hleft A hA, hright B hB] + +theorem covariance_sub_decorrelated {ι : Type*} [Fintype ι] [DecidableEq ι] + (V : Matrix ι ι ℝ) {P Q : Matrix ι ι ℝ} (hPQ : P + Q = 1) : + V - decorrelatedCovariance V P Q = Pᵀ * V * Q + Qᵀ * V * P := by + have hV : V = (P + Q)ᵀ * V * (P + Q) := by + rw [hPQ, Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one] + calc + V - decorrelatedCovariance V P Q = + (P + Q)ᵀ * V * (P + Q) - (Pᵀ * V * P + Qᵀ * V * Q) := by + rw [← hV] + rfl + _ = _ := by rw [Matrix.transpose_add]; noncomm_ring + +theorem covariance_sub_labelDecorrelated {ι : Type*} [Fintype ι] [DecidableEq ι] + (V : Matrix ι ι ℝ) (L R : Submodule ℝ (ι → ℝ)) (h : IsCompl L R) : + V - labelDecorrelatedCovariance V L R h = + (complementaryLabelProjection L R h)ᵀ * V * complementaryLabelProjection R L h.symm + + (complementaryLabelProjection R L h.symm)ᵀ * V * complementaryLabelProjection L R h := + covariance_sub_decorrelated V (complementaryLabelProjection_add L R h) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianPurityDifferential.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianPurityDifferential.lean new file mode 100644 index 0000000000..d4ce719cd5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianPurityDifferential.lean @@ -0,0 +1,130 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticPurityCongruence + +/-! +# The actual Gaussian purity differential at a faithful covariance + +Fixed symplectic congruence transports the proved derivative and the +actual relative matrix trace norm. The final estimate applies to every +symmetric perturbation at a covariance with genuine faithful Williamson +data, without differentiating any Williamson eigenvectors or eigenvalues. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Filter +open scoped MatrixOrder Matrix.Norms.L2Operator Topology + +variable {m : ℕ} + +theorem symplecticHamiltonian_gap_congruence + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.PosDef) + (hgap : ∀ x ∈ spectrum ℝ (symplecticHamiltonian modeSymplecticForm V), 1 / 2 < |x|) : + ∀ x ∈ spectrum ℝ (symplecticHamiltonian modeSymplecticForm (S * V * Sᵀ)), + 1 / 2 < |x| := by + rw [symplecticHamiltonian_congruence S hS hV, ← Matrix.star_eq_conjTranspose, + Unitary.spectrum_star_right_conjugate] + exact hgap + +theorem covariancePurityDerivative_symplectic_congruence + {r : ℝ} (hr : 0 < r) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + (V Δ : RealSymmetricMatrixSpace (Fin m × Fin 2)) + (hV : (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ).PosDef) + (hgap : ∀ x ∈ spectrum ℝ (symplecticHamiltonian modeSymplecticForm + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)), 1 / 2 < |x|) : + covariancePurityDerivative r (symmetricCongruenceCLM S V) + (canonical_symplectic_congruence_posDef S hS hV) (symmetricCongruenceCLM S Δ) = + covariancePurityDerivative r V hV Δ := by + have hW := canonical_symplectic_congruence_posDef S hS hV + have hw := hasFDerivAt_covariancePurityTrace_of_spectral_gap hr + (symmetricCongruenceCLM S V) hW (symplecticHamiltonian_gap_congruence S hS hV hgap) + have hc := hw.comp V (symmetricCongruenceCLM S).hasFDerivAt + have he := covariancePurityTrace_symplectic_congruence_eventually r S hS V hV + have he' : + (fun X : RealSymmetricMatrixSpace (Fin m × Fin 2) => + covariancePurityTrace r (X : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)) =ᶠ[𝓝 V] + ((fun X : RealSymmetricMatrixSpace (Fin m × Fin 2) => + covariancePurityTrace r (X : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)) ∘ + symmetricCongruenceCLM S) := by + filter_upwards [he] with X hX + exact hX.symm + have hd := hc.congr_of_eventuallyEq he' + have hv := hasFDerivAt_covariancePurityTrace_of_spectral_gap hr V hV hgap + exact DFunLike.congr_fun (hd.unique hv) Δ + +theorem symmetricCongruenceCLM_inverse_apply + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (hS : IsUnit S) + (Δ : RealSymmetricMatrixSpace (Fin m × Fin 2)) : + symmetricCongruenceCLM S (symmetricCongruenceCLM S⁻¹ Δ) = Δ := by + have hdet : IsUnit S.det := (Matrix.isUnit_iff_isUnit_det S).mp hS + have hSSi : S * S⁻¹ = 1 := S.mul_nonsing_inv hdet + apply Subtype.ext + change S * (S⁻¹ * (Δ : Matrix _ _ ℝ) * (S⁻¹)ᵀ) * Sᵀ = + (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + calc + _ = (S * S⁻¹) * (Δ : Matrix _ _ ℝ) * (S * S⁻¹)ᵀ := by + rw [Matrix.transpose_mul] + noncomm_ring + _ = _ := by rw [hSSi, Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one] + +/-- The source purity differential estimate for arbitrary symmetric +directions, at a faithful covariance in its actual Williamson form. -/ +theorem abs_covariancePurityDerivative_williamson_le + {r : ℝ} (hr : 1 < r) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 < ν j) + (Δ : RealSymmetricMatrixSpace (Fin m × Fin 2)) : + |covariancePurityDerivative r + (symmetricCongruenceCLM S (modeCovarianceSpace ν)) + (canonical_williamson_covariance_posDef S hS (fun j => by linarith [hν j])) Δ| ≤ + (r / 2) * matrixTraceNorm + (relativeCovariancePerturbation (S * modeDiagonal ν * Sᵀ) Δ) := by + have hν0 (j : Fin m) : 0 < ν j := by linarith [hν j] + let D := modeCovarianceSpace ν + let X := symmetricCongruenceCLM S⁻¹ Δ + have hD : (D : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ).PosDef := + modeDiagonal_posDef hν0 + have hW := canonical_symplectic_congruence_posDef S hS hD + have hundo : symmetricCongruenceCLM S X = Δ := + symmetricCongruenceCLM_inverse_apply S (canonical_symplectic_isUnit S hS) Δ + have hgap : ∀ x ∈ spectrum ℝ (symplecticHamiltonian modeSymplecticForm + (D : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)), + 1 / 2 < |x| := by + change ∀ x ∈ spectrum ℝ (symplecticHamiltonian modeSymplecticForm (modeDiagonal ν)), + 1 / 2 < |x| + simpa only [Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one] using + faithful_williamson_hamiltonian_gap + (1 : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (by simp) hν + have hd := covariancePurityDerivative_symplectic_congruence + (by linarith : 0 < r) S hS D X hD hgap + rw [hundo] at hd + have hnorm := matrixTraceNorm_relativeCovariancePerturbation_congruence S hD hW + (X : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + have hundo' : S * (X : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) * Sᵀ = + (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) := + congrArg Subtype.val hundo + rw [hundo'] at hnorm + change matrixTraceNorm (relativeCovariancePerturbation (S * modeDiagonal ν * Sᵀ) + (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)) = + matrixTraceNorm (relativeCovariancePerturbation (modeDiagonal ν) + (X : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)) at hnorm + rw [hd, hnorm] + exact abs_covariancePurityDerivative_mode_le hr (fun j => (hν j).le) X + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianPurityPerturbation.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianPurityPerturbation.lean new file mode 100644 index 0000000000..58b1b5ca3b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianPurityPerturbation.lean @@ -0,0 +1,136 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumPurityCalculus + +/-! +# The actual Gaussian log-purity perturbation estimate + +The true aggregate derivative is integrated along V+tΔ by the real mean +value bound. Literal strict quantum uncertainty at the two endpoints +supplies the faithful spectral domain throughout the segment. The final +operator statement concerns the true extended traces of actual Gaussian +density powers, using the previously proved spectral trace identity. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Set +open scoped ComplexOrder MatrixOrder Matrix.Norms.L2Operator Topology + +variable {m : ℕ} + +/-- Symmetric covariance segment given by `V + t • Δ`. -/ +def symmetricCovarianceSegment + (V Δ : RealSymmetricMatrixSpace (Fin m × Fin 2)) (t : ℝ) : + RealSymmetricMatrixSpace (Fin m × Fin 2) := V + t • Δ + +@[simp] theorem symmetricCovarianceSegment_coe + (V Δ : RealSymmetricMatrixSpace (Fin m × Fin 2)) (t : ℝ) : + ((symmetricCovarianceSegment V Δ t : RealSymmetricMatrixSpace (Fin m × Fin 2)) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) = covarianceSegment (V : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℝ) (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) t := rfl + +theorem hasDerivAt_covariancePurityTrace_segment {r : ℝ} (hr : 0 < r) + (V Δ : RealSymmetricMatrixSpace (Fin m × Fin 2)) (t : ℝ) + (hW : (covarianceSegment (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (Δ : Matrix + (Fin m × Fin 2) (Fin m × Fin 2) ℝ) t).PosDef) + (hQ : (quantumCovariance (covarianceSegment (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) t) + modeSymplecticForm).PosDef) : + HasDerivAt (fun s : ℝ => covariancePurityTrace r (symmetricCovarianceSegment V Δ s : Matrix + (Fin m × Fin 2) (Fin m × Fin 2) ℝ)) + (covariancePurityDerivative r (symmetricCovarianceSegment V Δ t) hW Δ) t := by + have hc : HasDerivAt (symmetricCovarianceSegment V Δ) Δ t := by + change HasDerivAt (fun s : ℝ => V + s • Δ) Δ t + convert! ((hasDerivAt_id t).smul_const Δ).const_add V using 1; + simp only [one_smul] + exact (hasFDerivAt_covariancePurityTrace_of_strict_quantum hr + (symmetricCovarianceSegment V Δ t) hW hQ).comp_hasDerivAt t hc + +theorem covariancePurityTrace_segment_bound {r : ℝ} (hr : 1 < r) + (V Δ : RealSymmetricMatrixSpace (Fin m × Fin 2)) + (hV : (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ).PosDef) + (hQ₀ : (quantumCovariance (V : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℝ) modeSymplecticForm).PosDef) + (hQ₁ : (quantumCovariance ((V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (Δ : Matrix + (Fin m × Fin 2) (Fin m × Fin 2) ℝ)) modeSymplecticForm).PosDef) + (hδ : ‖relativeCovariancePerturbation (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)‖ < 1) : + |covariancePurityTrace r ((V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (Δ : Matrix + (Fin m × Fin 2) (Fin m × Fin 2) ℝ)) - covariancePurityTrace r (V : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℝ)| ≤ + (r / 2) / (1 - ‖relativeCovariancePerturbation (V : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℝ) (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)‖) * + matrixTraceNorm (relativeCovariancePerturbation (V : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℝ) (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)) := by + let F : ℝ → ℝ := fun t => covariancePurityTrace r (symmetricCovarianceSegment V Δ t : Matrix + (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + let C := (r / 2) * ((1 - ‖relativeCovariancePerturbation (V : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℝ) (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)‖)⁻¹ * + matrixTraceNorm (relativeCovariancePerturbation (V : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℝ) (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ))) + have hW (t : ℝ) (ht : t ∈ Icc (0 : ℝ) 1) : + (covarianceSegment (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (Δ : Matrix + (Fin m × Fin 2) (Fin m × Fin 2) ℝ) t).PosDef := + covarianceSegment_posDef hV (realSymmetricMatrix_isHermitian Δ) ht.1 ht.2 hδ + have hQ (t : ℝ) (ht : t ∈ Icc (0 : ℝ) 1) : + (quantumCovariance (covarianceSegment (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) t) + modeSymplecticForm).PosDef := + quantumCovariance_segment_posDef hQ₀ hQ₁ ht.1 ht.2 + have hd (t : ℝ) (ht : t ∈ Icc (0 : ℝ) 1) : + HasDerivAt F (covariancePurityDerivative r (symmetricCovarianceSegment V Δ t) + (hW t ht) Δ) t := + hasDerivAt_covariancePurityTrace_segment (by linarith) V Δ t (hW t ht) (hQ t ht) + have hb (t : ℝ) (ht : t ∈ Icc (0 : ℝ) 1) : ‖deriv F t‖ ≤ C := by + rw [(hd t ht).deriv, Real.norm_eq_abs] + exact (abs_covariancePurityDerivative_le_of_strict_quantum hr + (symmetricCovarianceSegment V Δ t) Δ (hW t ht) (hQ t ht)).trans + (mul_le_mul_of_nonneg_left + (matrixTraceNorm_relativeCovariancePerturbation_segment_le hV + (realSymmetricMatrix_isHermitian Δ) ht.1 ht.2 hδ) (by linarith : 0 ≤ r / 2)) + have h := (convex_Icc (0 : ℝ) 1).norm_image_sub_le_of_norm_deriv_le + (fun t ht => (hd t ht).differentiableAt) hb + (left_mem_Icc.mpr (by norm_num : (0 : ℝ) ≤ 1)) + (right_mem_Icc.mpr (by norm_num : (0 : ℝ) ≤ 1)) + simpa only [F, C, symmetricCovarianceSegment, one_smul, zero_smul, add_zero, + Submodule.coe_add, Submodule.coe_zero, Real.norm_eq_abs, sub_zero, abs_one, mul_one, + div_eq_mul_inv, + mul_assoc] using h + +/-- Actual infinite-dimensional Gaussian density powers satisfy the +source log-purity estimate, with the genuine covariance perturbation. +Both literal strict uncertainty hypotheses are explicit. -/ +theorem abs_log_positiveTrace_gaussian_rpow_sub_le + {A B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (hB : IsPositiveTraceClass B) + {V Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.PosDef) (hΔ : Δ.IsHermitian) + (hQ₀ : (quantumCovariance (V : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℝ) modeSymplecticForm).PosDef) + (hQ₁ : (quantumCovariance (V + Δ) modeSymplecticForm).PosDef) + (hGA : HasGaussianPhysicalCharacteristic A V) + (hGB : HasGaussianPhysicalCharacteristic B (V + Δ)) + {r : ℝ} (hr : 1 < r) (hδ : ‖relativeCovariancePerturbation V Δ‖ < 1) : + |Real.log (positiveTrace (B ^ r)).toReal - Real.log (positiveTrace (A ^ r)).toReal| ≤ + (r / 2) / (1 - ‖relativeCovariancePerturbation V Δ‖) * + matrixTraceNorm (relativeCovariancePerturbation V Δ) := by + have hW : (V + Δ).PosDef := by + simpa only [covarianceSegment, one_smul] using + covarianceSegment_posDef hV hΔ (t := 1) zero_le_one le_rfl hδ + rw [log_positiveTrace_gaussianPhysical_rpow_eq_purity hB hW hQ₁ hGB (by linarith), + log_positiveTrace_gaussianPhysical_rpow_eq_purity hA hV hQ₀ hGA (by linarith)] + exact covariancePurityTrace_segment_bound hr ⟨V, hV.isHermitian.isSelfAdjoint⟩ + ⟨Δ, hΔ.isSelfAdjoint⟩ hV hQ₀ hQ₁ hδ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianPurityTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianPurityTrace.lean new file mode 100644 index 0000000000..e11b5dd60c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianPurityTrace.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PhysicalWilliamsonDensity +public import LeanPool.VacuumBellSeparation.Gaussian.PurityScalar + +/-! +# The actual Gaussian power trace in manuscript purity coordinates + +This identifies the actual positive trace of a genuine CFC power with the +product of the source factors fᵣ(ν)⁻¹. The pure boundary ν = 1/2 and the +zero-mode product are included. Positivity and finiteness precede taking +the real logarithm. No eigenvalue differentiability is assumed here. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +theorem covarianceThermalParameter_half_ratio {v : ℝ} (hv : 1 / 2 ≤ v) : + covarianceThermalParameter v = (v - 1 / 2) / (v + 1 / 2) := by + have hp : v + 1 / 2 ≠ 0 := by linarith + have hq : 2 * v + 1 ≠ 0 := by linarith + unfold covarianceThermalParameter + field_simp [hp, hq] + +theorem one_sub_covarianceThermalParameter {v : ℝ} (hv : 1 / 2 ≤ v) : + 1 - covarianceThermalParameter v = (v + 1 / 2)⁻¹ := by + rw [covarianceThermalParameter_half_ratio hv] + have hp : v + 1 / 2 ≠ 0 := by linarith + field_simp [hp] + ring + +theorem thermalPowerTrace_covariance_eq_inv_purityFactor + {r v : ℝ} (hr : 0 < r) (hv : 1 / 2 ≤ v) : + (1 - covarianceThermalParameter v) ^ r / + (1 - covarianceThermalParameter v ^ r) = (purityFactor r v)⁻¹ := by + have hp : 0 < (v + 1 / 2) ^ r := Real.rpow_pos_of_pos (by linarith) _ + have hd : 0 < (v + 1 / 2) ^ r - (v - 1 / 2) ^ r := purityFactor_pos hr hv + have hden : 1 - (v - 1 / 2) ^ r / (v + 1 / 2) ^ r ≠ 0 := by + rw [← Real.div_rpow (by linarith : 0 ≤ v - 1 / 2) (by linarith : 0 ≤ v + 1 / 2), + ← covarianceThermalParameter_half_ratio hv] + exact ne_of_gt (sub_pos.mpr (Real.rpow_lt_one (covarianceThermalParameter_nonneg hv) + (covarianceThermalParameter_lt_one hv) hr)) + rw [one_sub_covarianceThermalParameter hv, Real.inv_rpow (by linarith : 0 ≤ v + 1 / 2), + covarianceThermalParameter_half_ratio hv, + Real.div_rpow (by linarith : 0 ≤ v - 1 / 2) (by linarith : 0 ≤ v + 1 / 2), purityFactor] + field_simp [hp.ne', hd.ne', hden] + +/-- Gaussian purity product given by `∏ j, (purityFactor r (ν j))⁻¹`. -/ +def gaussianPurityProduct {m : ℕ} (r : ℝ) (ν : Fin m → ℝ) : ℝ := + ∏ j, (purityFactor r (ν j))⁻¹ + +theorem gaussianPurityProduct_pos {m : ℕ} {r : ℝ} {ν : Fin m → ℝ} + (hr : 0 < r) (hν : ∀ j, 1 / 2 ≤ ν j) : 0 < gaussianPurityProduct r ν := + Finset.prod_pos fun j _ => inv_pos.mpr (purityFactor_pos hr (hν j)) + +variable {m : ℕ} + +/-- The source product formula for the trace of the actual Gaussian power. -/ +theorem positiveTrace_gaussianPhysical_rpow_purity + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) + (hG : HasGaussianPhysicalCharacteristic A (S * modeDiagonal ν * Sᵀ)) + {r : ℝ} (hr : 0 < r) : + positiveTrace (A ^ r) = ENNReal.ofReal (gaussianPurityProduct r ν) := by + rw [positiveTrace_gaussianPhysical_rpow hA S hS hν hG hr] + congr 1 + exact Finset.prod_congr rfl fun j _ => thermalPowerTrace_covariance_eq_inv_purityFactor hr (hν j) + +theorem gaussianPhysical_rpow_trace_pos_finite + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) + (hG : HasGaussianPhysicalCharacteristic A (S * modeDiagonal ν * Sᵀ)) + {r : ℝ} (hr : 0 < r) : + 0 < positiveTrace (A ^ r) ∧ positiveTrace (A ^ r) < ⊤ := by + rw [positiveTrace_gaussianPhysical_rpow_purity hA S hS hν hG hr] + exact ⟨ENNReal.ofReal_pos.mpr (gaussianPurityProduct_pos hr hν), ENNReal.ofReal_lt_top⟩ + +theorem log_gaussianPurityProduct {r : ℝ} {ν : Fin m → ℝ} + (hr : 0 < r) (hν : ∀ j, 1 / 2 ≤ ν j) : + Real.log (gaussianPurityProduct r ν) = - ∑ j, logPurityFactor r (ν j) := by + rw [gaussianPurityProduct, Real.log_prod (fun j _ => + inv_ne_zero (purityFactor_pos hr (hν j)).ne')] + simp only [Real.log_inv, logPurityFactor, Finset.sum_neg_distrib] + +/-- The real logarithm of a finite strictly positive actual operator trace. -/ +theorem log_positiveTrace_gaussianPhysical_rpow + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) + (hG : HasGaussianPhysicalCharacteristic A (S * modeDiagonal ν * Sᵀ)) + {r : ℝ} (hr : 0 < r) : + Real.log (positiveTrace (A ^ r)).toReal = - ∑ j, logPurityFactor r (ν j) := by + rw [positiveTrace_gaussianPhysical_rpow_purity hA S hS hν hG hr, + ENNReal.toReal_ofReal (gaussianPurityProduct_pos hr hν).le] + exact log_gaussianPurityProduct hr hν + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianReferenceCoordinates.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianReferenceCoordinates.lean new file mode 100644 index 0000000000..0353808eb7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianReferenceCoordinates.lean @@ -0,0 +1,147 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianCoordinateTransport +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPartitionCancellation +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCovariancePerturbation + +/-! +# Thermal coordinates of an actual strictly quantum Gaussian reference + +Actual Williamson factorization and density-characteristic uniqueness +identify the original reference with a unitary transport of the genuine +product thermal density. The same coordinates describe its actual +normalized CFC powers and their thermal increment. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} + +/-- Transported thermal increment defined as `S * thermalReferenceGap q τ * Sᵀ`. -/ +def transportedThermalIncrement + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (q : Fin m → ℝ) (τ : ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := S * thermalReferenceGap q τ * Sᵀ + +/-- Transported Gaussian relative perturbation. -/ +def transportedGaussianRelativePerturbation + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (q : Fin m → ℝ) (τ : ℝ) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + relativeCovariancePerturbation (transportedThermalIncrement S q τ) + (V - S * thermalReferenceCovariance q * Sᵀ) + +theorem transportedThermalIncrement_eq_difference + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (q : Fin m → ℝ) (τ : ℝ) : + transportedThermalIncrement S q τ = + S * thermalPowerCovariance q τ * Sᵀ - S * thermalReferenceCovariance q * Sᵀ := by + unfold transportedThermalIncrement thermalReferenceGap thermalPowerCovariance + noncomm_ring + +theorem transportedThermalIncrement_posDef + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {q : Fin m → ℝ} {τ : ℝ} (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) + (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : (transportedThermalIncrement S q τ).PosDef := + canonical_symplectic_congruence_posDef S hS (thermalReferenceGap_posDef hq₀ hq₁ hτ₀ hτ₁) + +theorem transportedGaussianRelativePerturbation_norms + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {q : Fin m → ℝ} {τ : ℝ} (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) + (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + ‖transportedGaussianRelativePerturbation S q τ V‖ = + ‖gaussianRelativePerturbation q τ (S⁻¹ * V * (S⁻¹)ᵀ)‖ ∧ + matrixTraceNorm (transportedGaussianRelativePerturbation S q τ V) = + matrixTraceNorm (gaussianRelativePerturbation q τ (S⁻¹ * V * (S⁻¹)ᵀ)) := by + have hH := thermalReferenceGap_posDef hq₀ hq₁ hτ₀ hτ₁ + have hW := transportedThermalIncrement_posDef S hS hq₀ hq₁ hτ₀ hτ₁ + have hΔ : V - S * thermalReferenceCovariance q * Sᵀ = + S * ((S⁻¹ * V * (S⁻¹)ᵀ) - thermalReferenceCovariance q) * Sᵀ := by + rw [Matrix.mul_sub, Matrix.sub_mul, canonical_congruence_inverse_cancel S V hS] + rw [transportedGaussianRelativePerturbation, transportedThermalIncrement, hΔ, + gaussianRelativePerturbation_eq_relative] + exact ⟨norm_relativeCovariancePerturbation_congruence S hH hW _, + matrixTraceNorm_relativeCovariancePerturbation_congruence S hH hW _⟩ + +theorem multiModeThermalDensity_isPositiveTraceClass + {q : Fin m → ℝ} (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) : + IsPositiveTraceClass (multiModeThermalDensity q) := by + refine ⟨multiModeThermalDensity_nonneg hq₀ hq₁, ?_⟩ + rw [positiveTrace_multiModeThermalDensity hq₀ hq₁] + exact ENNReal.one_lt_top + +theorem gaussian_reference_eq_thermal_pullback + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {q : Fin m → ℝ} (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) + {σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hσ : IsPositiveTraceClass σ) + (hG : HasGaussianPhysicalCharacteristic σ (S * thermalReferenceCovariance q * Sᵀ)) : + σ = physicalDensityPullback S hS (multiModeThermalDensity q) := by + apply gaussianPhysical_density_unique hσ + (physicalDensityPullback_isPositiveTraceClass S hS + (multiModeThermalDensity_isPositiveTraceClass hq₀ hq₁)) + · exact hG + · exact physicalDensityPullback_hasGaussianPhysicalCharacteristic S hS + (multiModeThermalDensity_isPositiveTraceClass hq₀ hq₁) + (multiModeThermalDensity_hasGaussianPhysicalCharacteristic hq₀ hq₁) + +theorem gaussian_reference_normalized_power_characteristic + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {q : Fin m → ℝ} (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) + {σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hσ : IsPositiveTraceClass σ) + (hG : HasGaussianPhysicalCharacteristic σ (S * thermalReferenceCovariance q * Sᵀ)) + {a : ℝ} (ha : 0 < a) : + HasGaussianPhysicalCharacteristic (normalizedPositiveDensity (σ ^ a)) + (S * thermalPowerCovariance q a * Sᵀ) := by + let e := (physicalCongruenceUnitary S hS).symm + have he := gaussian_reference_eq_thermal_pullback S hS hq₀ hq₁ hσ hG + change σ = e.conjStarAlgEquiv (multiModeThermalDensity q) at he + rw [he] + erw [← conjStarAlgEquiv_rpow e (multiModeThermalDensity_nonneg hq₀ hq₁) ha.le, + normalizedPositiveDensity_conjStarAlgEquiv e CFC.rpow_nonneg] + exact physicalDensityPullback_hasGaussianPhysicalCharacteristic S hS + (normalizedPositiveDensity_isPositiveTraceClass (multiModeNumberBasis m) + (multiModeThermalDensity_rpow_isPositiveTraceClass hq₀ hq₁ ha)) + (normalizedPositiveDensity_thermal_power_characteristic hq₀ hq₁ ha) + +theorem exists_gaussian_reference_thermal_coordinates + {σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hσ : IsPositiveTraceClass σ) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) + (hG : HasGaussianPhysicalCharacteristic σ V) : + ∃ (q : Fin m → ℝ) (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm), + (∀ j, 0 < q j) ∧ (∀ j, q j < 1) ∧ + S * thermalReferenceCovariance q * Sᵀ = V ∧ + σ = physicalDensityPullback S hS (multiModeThermalDensity q) := by + obtain ⟨ν, S, hν, hS, hcov⟩ := + exists_faithful_canonical_williamson V (real_posDef_of_quantum_posDef hQ) hQ + let q : Fin m → ℝ := fun j => covarianceThermalParameter (ν j) + have hq₀ : ∀ j, 0 < q j := fun j => covarianceThermalParameter_pos (hν j) + have hq₁ : ∀ j, q j < 1 := fun j => covarianceThermalParameter_lt_one (hν j).le + have hD : thermalReferenceCovariance q = modeDiagonal ν := by + unfold thermalReferenceCovariance q + simp_rw [thermalQuadratureVariance_covarianceParameter (hν _).le] + have hc : S * thermalReferenceCovariance q * Sᵀ = V := by rw [hD, hcov] + refine ⟨q, S, hS, hq₀, hq₁, hc, ?_⟩ + exact gaussian_reference_eq_thermal_pullback S hS (fun j => (hq₀ j).le) hq₁ hσ (hc.symm ▸ hG) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianRegionalMarginal.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRegionalMarginal.lean new file mode 100644 index 0000000000..e64d921d76 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRegionalMarginal.lean @@ -0,0 +1,115 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.RegionalProductAllOperators + +/-! +# Equal Gaussian covariance restrictions give equal regional marginals + +Equality of the actual Gaussian characteristic on a real label subspace +extends through its Weyl span, norm closure, and genuine bounded Kaplansky +nets. Thus both density expectations agree on every bounded operator in +the generated regional algebra, not only on Weyl generators. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Filter Topology + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem densityExpectations_eq_on_generatedVNA_effects + (b : HilbertBasis ι ℂ E) {ρ σ : E →L[ℂ] E} + (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) + (S : StarSubalgebra ℂ (E →L[ℂ] E)) (hS : IsClosed (S : Set (E →L[ℂ] E))) + (hagree : ∀ A ∈ S, densityExpectation b ρ A = densityExpectation b σ A) + {A : E →L[ℂ] E} (hA : A ∈ generatedVNA (S : Set (E →L[ℂ] E))) + (hA0 : 0 ≤ A) (hA1 : A ≤ 1) : + densityExpectation b ρ A = densityExpectation b σ A := by + classical + let : IsClosed (S : Set (E →L[ℂ] E)) := hS + obtain ⟨As, hAs, hlim⟩ := exists_effect_strong_approximation S + (fun f A hA => cfc_mem (𝕜' := ℂ) (s := S) f hA) hA hA0 hA1 + have hb : ∀ᶠ i : Finset E × ℕ in atTop, ‖As i‖ ≤ (1 : ℝ) := Eventually.of_forall fun i => + (CStarAlgebra.norm_le_one_iff_of_nonneg _ (hAs i).2.1).mpr (hAs i).2.2 + have hρlim := tendsto_densityExpectation_of_strong b hρ + (α := Finset E × ℕ) (l := atTop) (As := As) (A := A) hlim hb + have hσlim := tendsto_densityExpectation_of_strong b hσ + (α := Finset E × ℕ) (l := atTop) (As := As) (A := A) hlim hb + exact tendsto_nhds_unique hρlim (hσlim.congr' + (Eventually.of_forall fun i => (hagree _ (hAs i).1).symm)) + +theorem densityExpectations_eq_on_generatedVNA + (b : HilbertBasis ι ℂ E) {ρ σ : E →L[ℂ] E} + (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) + (S : StarSubalgebra ℂ (E →L[ℂ] E)) (hS : IsClosed (S : Set (E →L[ℂ] E))) + (hagree : ∀ A ∈ S, densityExpectation b ρ A = densityExpectation b σ A) + {A : E →L[ℂ] E} (hA : A ∈ generatedVNA (S : Set (E →L[ℂ] E))) : + densityExpectation b ρ A = densityExpectation b σ A := by + let M := generatedVNA (S : Set (E →L[ℂ] E)) + apply LinearMap.eqOn_span (f := (densityExpectationCLM b hρ).toLinearMap) + (g := (densityExpectationCLM b hσ).toLinearMap) + (s := {A | A ∈ M ∧ 0 ≤ A ∧ A ≤ 1}) ?_ + (mem_span_effects_of_mem_closed_starSubalgebra M.toStarSubalgebra + (vonNeumannAlgebra_isClosed M) hA) + intro B hB + exact densityExpectations_eq_on_generatedVNA_effects b hρ hσ S hS hagree hB.1 hB.2.1 hB.2.2 + +theorem gaussianPhysical_regional_cstar_marginal {m : ℕ} + {ρ σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) + {V W : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hGρ : HasGaussianPhysicalCharacteristic ρ V) + (hGσ : HasGaussianPhysicalCharacteristic σ W) + (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) + (hcov : ∀ x ∈ L, x ⬝ᵥ (V *ᵥ x) = x ⬝ᵥ (W *ᵥ x)) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : A ∈ regionalWeylCStarAlgebra L) : + densityExpectation (multiModeNumberBasis m) ρ A = + densityExpectation (multiModeNumberBasis m) σ A := by + have hpoly : ∀ B ∈ regionalWeylPolynomialAlgebra L, + densityExpectation (multiModeNumberBasis m) ρ B = + densityExpectation (multiModeNumberBasis m) σ B := by + intro B hB + apply LinearMap.eqOn_span + (f := (densityExpectationCLM (multiModeNumberBasis m) hρ).toLinearMap) + (g := (densityExpectationCLM (multiModeNumberBasis m) hσ).toLinearMap) ?_ hB + rintro _ ⟨x, hx, rfl⟩ + change densityExpectation (multiModeNumberBasis m) ρ (physicalOscillatorWeyl x) = + densityExpectation (multiModeNumberBasis m) σ (physicalOscillatorWeyl x) + rw [gaussianPhysical_physicalOscillatorWeyl hGρ, + gaussianPhysical_physicalOscillatorWeyl hGσ, hcov x hx] + have hsubset : (regionalWeylPolynomialAlgebra L : Set _) ⊆ + {B | densityExpectation (multiModeNumberBasis m) ρ B = + densityExpectation (multiModeNumberBasis m) σ B} := + fun _ hB => hpoly _ hB + exact (closure_minimal hsubset + (isClosed_eq (densityExpectationCLM (multiModeNumberBasis m) hρ).continuous + (densityExpectationCLM (multiModeNumberBasis m) hσ).continuous)) hA + +/-- Every bounded regional observable has the same actual marginal. -/ +theorem gaussianPhysical_regional_vna_marginal {m : ℕ} + {ρ σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) + {V W : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hGρ : HasGaussianPhysicalCharacteristic ρ V) + (hGσ : HasGaussianPhysicalCharacteristic σ W) + (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) + (hcov : ∀ x ∈ L, x ⬝ᵥ (V *ᵥ x) = x ⬝ᵥ (W *ᵥ x)) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : A ∈ generatedVNA (regionalWeylGenerators L)) : + densityExpectation (multiModeNumberBasis m) ρ A = + densityExpectation (multiModeNumberBasis m) σ A := by + apply densityExpectations_eq_on_generatedVNA (multiModeNumberBasis m) hρ hσ + (regionalWeylCStarAlgebra L) (regionalWeylPolynomialAlgebra L).isClosed_topologicalClosure + (fun B hB => gaussianPhysical_regional_cstar_marginal hρ hσ hGρ hGσ L hcov hB) + simpa only [generatedVNA_regionalWeylCStarAlgebra] using hA + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianRegionalProduct.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRegionalProduct.lean new file mode 100644 index 0000000000..7bf0c5d32a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRegionalProduct.lean @@ -0,0 +1,97 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.RegionalWeylAlgebra +public import LeanPool.VacuumBellSeparation.Gaussian.DensityProductExtension + +/-! +# Gaussian block covariance gives actual regional product expectations + +The symplectic cross form removes the Weyl phase, while the covariance +cross form removes both cross terms in the Gaussian quadratic form. This +proves genuine factorization on Weyl generators, their polynomial algebras +and their operator-norm closures. Symplectic commutation alone is not used +as a substitute for the independent covariance condition. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {m : ℕ} + +theorem gaussianPhysical_weyl_product + {ρ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hG : HasGaussianPhysicalCharacteristic ρ V) + (x y : Fin m × Fin 2 → ℝ) + (hΩ : x ⬝ᵥ (modeSymplecticForm *ᵥ y) = 0) + (hcov : x ⬝ᵥ (V *ᵥ y) = 0) : + densityExpectation (multiModeNumberBasis m) ρ + (physicalOscillatorWeyl x * physicalOscillatorWeyl y) = + densityExpectation (multiModeNumberBasis m) ρ (physicalOscillatorWeyl x) * + densityExpectation (multiModeNumberBasis m) ρ (physicalOscillatorWeyl y) := by + have hsym : Vᵀ = V := by + simpa only [Matrix.IsHermitian, Matrix.conjTranspose_eq_transpose_of_trivial] using hV + have hcov' : y ⬝ᵥ (V *ᵥ x) = 0 := by + rw [← Matrix.dotProduct_transpose_mulVec V x y, hsym, hcov] + have hquad : (x + y) ⬝ᵥ (V *ᵥ (x + y)) = + x ⬝ᵥ (V *ᵥ x) + y ⬝ᵥ (V *ᵥ y) := by + simp only [Matrix.mulVec_add, add_dotProduct, dotProduct_add, hcov, hcov', add_zero, zero_add] + rw [physicalOscillatorWeyl_mul, hΩ] + simp only [zero_div, Complex.ofReal_zero, mul_zero, neg_zero, Complex.exp_zero, one_smul] + rw [gaussianPhysical_physicalOscillatorWeyl hG, + gaussianPhysical_physicalOscillatorWeyl hG, + gaussianPhysical_physicalOscillatorWeyl hG, hquad, ← Complex.ofReal_mul, + ← Real.exp_add] + congr 2 + ring + +theorem gaussianPhysical_regional_polynomial_product + {ρ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hρ : IsPositiveTraceClass ρ) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hG : HasGaussianPhysicalCharacteristic ρ V) + (L R : Submodule ℝ (Fin m × Fin 2 → ℝ)) + (hΩ : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (modeSymplecticForm *ᵥ y) = 0) + (hcov : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (V *ᵥ y) = 0) + {A B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : A ∈ regionalWeylPolynomialAlgebra L) + (hB : B ∈ regionalWeylPolynomialAlgebra R) : + densityExpectation (multiModeNumberBasis m) ρ (A * B) = + densityExpectation (multiModeNumberBasis m) ρ A * + densityExpectation (multiModeNumberBasis m) ρ B := by + apply linearFunctional_factorization_span + (densityExpectationCLM (multiModeNumberBasis m) hρ).toLinearMap + (regionalWeylGenerators L) (regionalWeylGenerators R) ?_ hA hB + rintro _ ⟨x, hx, rfl⟩ _ ⟨y, hy, rfl⟩ + exact gaussianPhysical_weyl_product hV hG x y (hΩ x hx y hy) (hcov x hx y hy) + +theorem gaussianPhysical_regional_cstar_product + {ρ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hρ : IsPositiveTraceClass ρ) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hG : HasGaussianPhysicalCharacteristic ρ V) + (L R : Submodule ℝ (Fin m × Fin 2 → ℝ)) + (hΩ : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (modeSymplecticForm *ᵥ y) = 0) + (hcov : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (V *ᵥ y) = 0) + {A B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : A ∈ regionalWeylCStarAlgebra L) + (hB : B ∈ regionalWeylCStarAlgebra R) : + densityExpectation (multiModeNumberBasis m) ρ (A * B) = + densityExpectation (multiModeNumberBasis m) ρ A * + densityExpectation (multiModeNumberBasis m) ρ B := by + apply continuousLinearFunctional_factorization_closure + (densityExpectationCLM (multiModeNumberBasis m) hρ) + (regionalWeylPolynomialAlgebra L) (regionalWeylPolynomialAlgebra R) ?_ hA hB + intro A hA B hB + exact gaussianPhysical_regional_polynomial_product hρ hV hG L R hΩ hcov hA hB + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianRegionalVNAProduct.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRegionalVNAProduct.lean new file mode 100644 index 0000000000..34015084be --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRegionalVNAProduct.lean @@ -0,0 +1,63 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRegionalProduct +public import LeanPool.VacuumBellSeparation.Gaussian.DensityProductVNA + +/-! +# Gaussian product state on actual regional von Neumann algebra effects + +The regional algebras are generated by the literal physical oscillator +Weyl operators. Symplectically orthogonal label spaces and zero covariance +cross block imply product expectations for all their actual effects. +The result passes through proved polynomial, norm-closure and bounded +strong limits; no operator-algebra independence hypothesis is introduced. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {m : ℕ} + +theorem generatedVNA_regionalWeylCStarAlgebra + (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) : + generatedVNA (regionalWeylCStarAlgebra L : Set + (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m)) = + generatedVNA (regionalWeylGenerators L) := by + rw [regionalWeylCStarAlgebra, regionalWeylPolynomialAlgebra_eq_adjoin, + generatedVNA_closed_star_adjoin] + +/-- The actual joint probability factors for every pair of regional effects. +Both vanishing cross forms are essential explicit hypotheses. -/ +theorem gaussianPhysical_regional_vna_effect_product + {ρ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hρ : IsPositiveTraceClass ρ) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hG : HasGaussianPhysicalCharacteristic ρ V) + (L R : Submodule ℝ (Fin m × Fin 2 → ℝ)) + (hΩ : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (modeSymplecticForm *ᵥ y) = 0) + (hcov : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (V *ᵥ y) = 0) + {A B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : A ∈ generatedVNA (regionalWeylGenerators L)) (hA0 : 0 ≤ A) (hA1 : A ≤ 1) + (hB : B ∈ generatedVNA (regionalWeylGenerators R)) (hB0 : 0 ≤ B) (hB1 : B ≤ 1) : + densityExpectation (multiModeNumberBasis m) ρ (A * B) = + densityExpectation (multiModeNumberBasis m) ρ A * + densityExpectation (multiModeNumberBasis m) ρ B := by + apply densityExpectation_product_generatedVNA_effects (multiModeNumberBasis m) hρ + (regionalWeylCStarAlgebra L) (regionalWeylCStarAlgebra R) + (regionalWeylPolynomialAlgebra L).isClosed_topologicalClosure + (regionalWeylPolynomialAlgebra R).isClosed_topologicalClosure + (fun A hA B hB => gaussianPhysical_regional_cstar_product hρ hV hG L R hΩ hcov hA hB) + ?_ hA0 hA1 ?_ hB0 hB1 + · simpa only [generatedVNA_regionalWeylCStarAlgebra] using hA + · simpa only [generatedVNA_regionalWeylCStarAlgebra] using hB + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianRelativePerturbationDefs.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRelativePerturbationDefs.lean new file mode 100644 index 0000000000..f61a9773fc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRelativePerturbationDefs.lean @@ -0,0 +1,38 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSandwichTraceRatio + +/-! +# Literal statement construction extracted from Gaussian/GaussianAppendixA + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} +variable {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +/-- Gaussian relative perturbation defined as `normalizedPerturbation (CFC.sqrt +(thermalReferenceGap q τ)) (V - thermalReferenceCovariance q)`. -/ +def gaussianRelativePerturbation (q : Fin m → ℝ) (τ : ℝ) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + normalizedPerturbation (CFC.sqrt (thermalReferenceGap q τ)) + (V - thermalReferenceCovariance q) + + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiComparison.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiComparison.lean new file mode 100644 index 0000000000..466550faa9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiComparison.lean @@ -0,0 +1,130 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianThermalRenyiBound +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianReferenceCoordinates + +/-! +# Gaussian Rényi comparison on the original canonical oscillator system + +Actual inverse symplectic coordinates transform the input and the +reference on the same Hilbert space. The unique Gaussian characteristic +recovers both original density operators after the same actual unitary +transport. Orthogonal similarity preserves the operator and nuclear norms +of the literal normalized covariance perturbation. + +The covariance hypotheses are genuine strict quantum matrix positivity. +The result concerns the actual bounded extension of the inverse-domain +sandwich and its positive finite r-th power trace. No scalar kernel or +abstract state is substituted for either density operator. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} +variable {ρ σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} +variable {Vρ Vσ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +theorem gaussian_renyi_comparison_in_coordinates + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {q : Fin m → ℝ} (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) + (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ (S * thermalReferenceCovariance q * Sᵀ)) + (hQρ : (quantumCovariance Vρ modeSymplecticForm).PosDef) + {r : ℝ} (hr : 1 < r) + (hδ : ‖transportedGaussianRelativePerturbation S q (gaussianRenyiTau r) Vρ‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹) : + ∃ Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass Θ ∧ + (σ ^ (gaussianRenyiTau r / 2)) * Θ * (σ ^ (gaussianRenyiTau r / 2)) = ρ ∧ + 0 < positiveTrace (Θ ^ r) ∧ positiveTrace (Θ ^ r) < ⊤ ∧ + Real.log (positiveTrace (Θ ^ r)).toReal ≤ + 2 * r * max 2 (gaussianRenyiTau r)⁻¹ * + matrixTraceNorm (transportedGaussianRelativePerturbation S q + (gaussianRenyiTau r) Vρ) := by + let A := gaussianInverseCoordinates S hS ρ + let V := S⁻¹ * Vρ * (S⁻¹)ᵀ + have hA := gaussianInverseCoordinates_isPositiveTraceClass S hS hρ + have hGA := gaussianInverseCoordinates_hasGaussianPhysicalCharacteristic S hS hρ hGρ + have hQ : (quantumCovariance V modeSymplecticForm).PosDef := + quantumCovariance_symplectic_congruence_posDef S⁻¹ (canonical_symplectic_inv S hS) hQρ + have hV := real_posDef_of_quantum_posDef hQ + have hn := transportedGaussianRelativePerturbation_norms S hS hq₀ hq₁ + (gaussianRenyiTau_pos hr) (gaussianRenyiTau_lt_one hr) Vρ + have hsmall : ‖gaussianRelativePerturbation q (gaussianRenyiTau r) V‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹ := by + rwa [hn.1] at hδ + obtain ⟨Θ₀, htc, hf, hp, hfin, hb⟩ := exists_gaussian_thermal_renyi_bound + hq₀ hq₁ hr hA hGA hV.isHermitian (quantum_covariance_shift_posDef hQ) hQ hsmall + let e := (physicalCongruenceUnitary S hS).symm + have hσeq : σ = e.conjStarAlgEquiv (multiModeThermalDensity q) := + gaussian_reference_eq_thermal_pullback S hS (fun j => (hq₀ j).le) hq₁ hσ hGσ + have hρeq : e.conjStarAlgEquiv A = ρ := + physicalDensityPullback_gaussianInverseCoordinates S hS hρ hGρ + have hpower : positiveTrace ((e.conjStarAlgEquiv Θ₀) ^ r) = positiveTrace (Θ₀ ^ r) := + positiveTrace_conjStarAlgEquiv_rpow e htc.1 (by linarith) + refine ⟨e.conjStarAlgEquiv Θ₀, IsPositiveTraceClass.conjStarAlgEquiv e htc, ?_, + hpower.symm ▸ hp, hpower.symm ▸ hfin, ?_⟩ + · rw [hσeq] + exact (conjStarAlgEquiv_sandwich + (E := MultiModeOscillatorSpace m) (F := MultiModeOscillatorSpace m) + e (σ := multiModeThermalDensity q) + (multiModeThermalDensity_nonneg (fun j => (hq₀ j).le) hq₁) + (τ := gaussianRenyiTau r) (gaussianRenyiTau_pos hr).le Θ₀).symm.trans + ((congrArg e.conjStarAlgEquiv hf).trans hρeq) + · rw [hpower, hn.2] + exact hb + +/-- Every actual strictly quantum Gaussian reference admits the source +comparison in coordinates whose increment is also identified by the +actual normalized reference powers. Both densities stay on the original +canonical oscillator Hilbert space. -/ +theorem exists_gaussian_renyi_comparison + (hρ : IsPositiveTraceClass ρ) (hσ : IsPositiveTraceClass σ) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) + (hQρ : (quantumCovariance Vρ modeSymplecticForm).PosDef) + (hQσ : (quantumCovariance Vσ modeSymplecticForm).PosDef) : + ∃ (q : Fin m → ℝ) (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (_hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm), + (∀ j, 0 < q j) ∧ (∀ j, q j < 1) ∧ + S * thermalReferenceCovariance q * Sᵀ = Vσ ∧ + (∀ a : ℝ, 0 < a → HasGaussianPhysicalCharacteristic (normalizedPositiveDensity (σ ^ a)) + (S * thermalPowerCovariance q a * Sᵀ)) ∧ + ∀ r : ℝ, 1 < r → + ‖transportedGaussianRelativePerturbation S q (gaussianRenyiTau r) Vρ‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹ → + ∃ Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass Θ ∧ + (σ ^ (gaussianRenyiTau r / 2)) * Θ * (σ ^ (gaussianRenyiTau r / 2)) = ρ ∧ + 0 < positiveTrace (Θ ^ r) ∧ positiveTrace (Θ ^ r) < ⊤ ∧ + Real.log (positiveTrace (Θ ^ r)).toReal ≤ + 2 * r * max 2 (gaussianRenyiTau r)⁻¹ * + matrixTraceNorm (transportedGaussianRelativePerturbation S q + (gaussianRenyiTau r) Vρ) := by + obtain ⟨q, S, hS, hq₀, hq₁, hcov, _⟩ := + exists_gaussian_reference_thermal_coordinates hσ hQσ hGσ + have hGσ' : HasGaussianPhysicalCharacteristic σ (S * thermalReferenceCovariance q * Sᵀ) := + hcov.symm ▸ hGσ + refine ⟨q, S, hS, hq₀, hq₁, hcov, ?_, ?_⟩ + · intro a ha + exact gaussian_reference_normalized_power_characteristic S hS + (fun j => (hq₀ j).le) hq₁ hσ hGσ' ha + · intro r hr hδ + exact gaussian_renyi_comparison_in_coordinates S hS hq₀ hq₁ hρ hσ hGρ hGσ' hQρ hr hδ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiConsequences.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiConsequences.lean new file mode 100644 index 0000000000..3bb4a34c44 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiConsequences.lean @@ -0,0 +1,82 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiExponentDefs +public import LeanPool.VacuumBellSeparation.Gaussian.IntrinsicGaussianRenyiBound +public import LeanPool.VacuumBellSeparation.Gaussian.FaithfulRenyiEffectBound +public import LeanPool.VacuumBellSeparation.Gaussian.SemidefiniteRenyiComparison + +/-! +# Actual Gaussian exponential Rényi, effect and trace-distance bounds + +The proved finite positive Gaussian quantity permits honest exponentiation +of its logarithmic estimate. The genuine full-Hilbert-space effect and +interpolation theorems then give the source consequences. The covariance +perturbation is still the literal normalized-power covariance difference. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal Matrix.Norms.L2Operator + +variable {m : ℕ} + {ρ σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + {Vρ Vσ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +theorem faithful_gaussian_renyi_exp_bound + (hρ : IsFaithfulDensity ρ) (hσ : IsFaithfulDensity σ) + (hVρ : Vρ.IsHermitian) (hVσ : Vσ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) + {r : ℝ} (hr : 1 < r) + (hsmall : ‖intrinsicGaussianRelativePerturbation ρ σ (gaussianRenyiTau r)‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹) : + sandwichedRenyiQuantity ρ σ r ≤ ENNReal.ofReal (Real.exp (gaussianRenyiExponent ρ σ r)) := by + obtain ⟨hQ0, hQt, hlog⟩ := faithful_gaussian_renyi_bound hρ hσ hVρ hVσ hGρ hGσ hr hsmall + have hreal : 0 < (sandwichedRenyiQuantity ρ σ r).toReal := + ENNReal.toReal_pos hQ0.ne' hQt.ne + have he := ENNReal.ofReal_le_ofReal ((Real.log_le_iff_le_exp hreal).mp hlog) + simpa only [ENNReal.ofReal_toReal hQt.ne, gaussianRenyiExponent] using he + +theorem faithful_gaussian_density_effect_bound + (hρ : IsFaithfulDensity ρ) (hσ : IsFaithfulDensity σ) + (hVρ : Vρ.IsHermitian) (hVσ : Vσ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) + {r : ℝ} (hr : 1 < r) + (hsmall : ‖intrinsicGaussianRelativePerturbation ρ σ (gaussianRenyiTau r)‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹) + {M : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hM0 : 0 ≤ M) (hM1 : M ≤ 1) : + ENNReal.ofReal (densityExpectation (multiModeNumberBasis m) ρ M).re ^ r ≤ + ENNReal.ofReal (Real.exp (gaussianRenyiExponent ρ σ r)) * + ENNReal.ofReal (densityExpectation (multiModeNumberBasis m) σ M).re ^ (r - 1) := by + exact (faithful_sandwichedRenyi_density_effect_bound (multiModeNumberBasis m) + hρ.isPositiveTraceClass hσ hr hM0 hM1).trans (_root_.mul_le_mul_left + (faithful_gaussian_renyi_exp_bound hρ hσ hVρ hVσ hGρ hGσ hr hsmall) _) + +theorem faithful_gaussian_trace_distance_bound + (hρ : IsFaithfulDensity ρ) (hσ : IsFaithfulDensity σ) + (hVρ : Vρ.IsHermitian) (hVσ : Vσ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) + {r : ℝ} (hr : 2 ≤ r) + (hsmall : ‖intrinsicGaussianRelativePerturbation ρ σ (gaussianRenyiTau r)‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹) : + operatorTraceNorm (ρ - σ) ≤ + (ENNReal.ofReal (Real.exp (gaussianRenyiExponent ρ σ r)) ^ (1 / (r - 1)) - 1) ^ + (1 / 2 : ℝ) := by + have hr1 : 1 < r := lt_of_lt_of_le (by norm_num) hr + exact (renyi_trace_distance hρ.1 hρ.2.1 hσ hr).trans (ENNReal.rpow_le_rpow + (tsub_le_tsub_right (ENNReal.rpow_le_rpow + (faithful_gaussian_renyi_exp_bound hρ hσ hVρ hVσ hGρ hGσ hr1 hsmall) + (one_div_nonneg.mpr (sub_pos.mpr hr1).le)) 1) (by norm_num)) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiExponentDefs.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiExponentDefs.lean new file mode 100644 index 0000000000..f8b5716784 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiExponentDefs.lean @@ -0,0 +1,36 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.IntrinsicGaussianPerturbationDefs +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiParameters + +/-! +# Literal Gaussian Renyi exponential coefficient + +This construction is separated from its later specification proofs. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal Matrix.Norms.L2Operator + +variable {m : ℕ} + {ρ σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + {Vρ Vσ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +/-- Gaussian Rényi exponent. -/ +noncomputable def gaussianRenyiExponent (ρ σ : MultiModeOscillatorSpace m →L[ℂ] + MultiModeOscillatorSpace m) + (r : ℝ) : ℝ := + 2 * r * max 2 (gaussianRenyiTau r)⁻¹ * + matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ (gaussianRenyiTau r)) + + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiParameters.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiParameters.lean new file mode 100644 index 0000000000..abf0e28280 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianRenyiParameters.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCovariancePerturbation + +/-! +# The manuscript's Rényi parameters and numerical perturbation bounds + +These scalar identities identify the actual thermal multiplier constant +with max(2,1/τ), and give the bounds δ≤1/8 and ‖Y‖≤2/7 from the source +smallness assumption. No purity differential is assumed here. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped Matrix.Norms.L2Operator + +/-- Gaussian Rényi tau given by `(r - 1) / r`. -/ +def gaussianRenyiTau (r : ℝ) : ℝ := (r - 1) / r + +theorem gaussianRenyiTau_pos {r : ℝ} (hr : 1 < r) : 0 < gaussianRenyiTau r := + div_pos (sub_pos.mpr hr) (by linarith) + +theorem gaussianRenyiTau_lt_one {r : ℝ} (hr : 1 < r) : gaussianRenyiTau r < 1 := by + unfold gaussianRenyiTau + exact (div_lt_one (by linarith : 0 < r)).mpr (by linarith) + +theorem mul_one_sub_gaussianRenyiTau {r : ℝ} (hr : 1 < r) : + r * (1 - gaussianRenyiTau r) = 1 := by + unfold gaussianRenyiTau + field_simp [ne_of_gt (show 0 < r by linarith)] + ring + +theorem thermalPerturbationConstant_eq_max {τ : ℝ} (hτ : 0 < τ) : + thermalPerturbationConstant τ = max 2 τ⁻¹ := by + unfold thermalPerturbationConstant + rw [add_max] + congr 1 + · norm_num + · field_simp [hτ.ne'] + ring + +theorem two_le_thermalPerturbationConstant (τ : ℝ) : + 2 ≤ thermalPerturbationConstant τ := by + unfold thermalPerturbationConstant + linarith [le_max_left (1 : ℝ) ((1 - τ) / τ)] + +theorem thermal_smallness_bounds {τ δ : ℝ} (hδ₀ : 0 ≤ δ) + (hδ : δ ≤ (4 * thermalPerturbationConstant τ)⁻¹) : + δ ≤ 1 / 8 ∧ thermalPerturbationConstant τ * δ / (1 - δ) ≤ 2 / 7 := by + have hk : 2 ≤ thermalPerturbationConstant τ := two_le_thermalPerturbationConstant τ + have hk₀ : 0 < thermalPerturbationConstant τ := by linarith + have hfour : 0 < 4 * thermalPerturbationConstant τ := mul_pos (by norm_num) hk₀ + have hmul : δ * (4 * thermalPerturbationConstant τ) ≤ 1 := by + exact (le_div_iff₀ hfour).mp (by simpa only [one_div] using hδ) + have hd : δ ≤ 1 / 8 := by nlinarith + refine ⟨hd, ?_⟩ + apply (div_le_iff₀ (show 0 < 1 - δ by linarith)).mpr + nlinarith + +theorem thermal_smallness_norm_bounds {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + (hV : V.IsHermitian) + (hδ : ‖gaussianRelativePerturbation q τ V‖ ≤ + (4 * thermalPerturbationConstant τ)⁻¹) : + ‖gaussianRelativePerturbation q τ V‖ ≤ 1 / 8 ∧ + ‖thermalSandwichRelativePerturbation q τ V‖ ≤ 2 / 7 := by + have hb := thermal_smallness_bounds (norm_nonneg _) hδ + refine ⟨hb.1, ?_⟩ + have hlt : ‖gaussianRelativePerturbation q τ V‖ < 1 := by linarith [hb.1] + have hn := norm_thermalSandwichRelativePerturbation_le hq₀ hq₁ hτ₀ hτ₁ hV hlt + exact hn.trans (by simpa only [mul_div_assoc] using hb.2) + +theorem renyi_final_numeric_bound {r k δ η : ℝ} + (hr : 0 ≤ r) (hk : 2 ≤ k) (hδ : δ ≤ 1 / 8) (hη : η ≤ 2 / 7) : + r / 2 * ((1 - δ)⁻¹ + k / ((1 - δ) * (1 - η))) ≤ 2 * r * k := by + have hd : 0 < 1 - δ := by linarith + have he : 0 < 1 - η := by linarith + have hdi : (1 - δ)⁻¹ ≤ 8 / 7 := by + apply (inv_le_iff_one_le_mul₀ hd).mpr + linarith + have hprod : 5 / 8 ≤ (1 - δ) * (1 - η) := by + have := mul_le_mul (show 7 / 8 ≤ 1 - δ by linarith) + (show 5 / 7 ≤ 1 - η by linarith) (by norm_num : (0 : ℝ) ≤ 5 / 7) hd.le + nlinarith + have hkdiv : k / ((1 - δ) * (1 - η)) ≤ 8 * k / 5 := by + apply (div_le_iff₀ (mul_pos hd he)).mpr + nlinarith + have hsum : (1 - δ)⁻¹ + k / ((1 - δ) * (1 - η)) ≤ 4 * k := by + linarith + calc + _ ≤ r / 2 * (4 * k) := mul_le_mul_of_nonneg_left hsum (by positivity) + _ = _ := by ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichCriterion.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichCriterion.lean new file mode 100644 index 0000000000..498a308878 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichCriterion.lean @@ -0,0 +1,104 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSandwichTrace +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixGaussianCriterion + +/-! +# Exact noncommuting Gaussian inverse-sandwich trace-class criterion + +The actual Gaussian characteristic yields the true inverse-domain +coherent diagonal. Its extended integral is finite precisely for a +positive precision matrix, including necessity at singular and indefinite +boundaries. The proved matrix order equivalence then gives the source +strict covariance gap and an actual positive trace-class factorization. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal + +open Matrix MeasureTheory +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} +variable {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} +variable {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +theorem thermalCoherentPrecision_isHermitian + (hq₀ : ∀ j, 0 < q j) (τ : ℝ) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) : + (thermalCoherentPrecision q τ V).IsHermitian := by + let T := thermalQuadratureDilation q τ + have hT : T.PosDef := thermalQuadratureDilation_posDef hq₀ τ + have hTT : (T * T).IsHermitian := by + simpa only [hT.isHermitian.eq] using Matrix.isHermitian_mul_conjTranspose_self T + have hmid : (T * (V + (1 / 2 : ℝ) • 1)⁻¹ * T).PosDef := by + have h := hT.isUnit.posDef_star_right_conjugate_iff (x := (V + (1 / 2 : ℝ) • 1)⁻¹) + simpa only [Matrix.star_eq_conjTranspose, hT.isHermitian.eq] using h.mpr hC.inv + exact (Matrix.isHermitian_one.sub hTT).add hmid.isHermitian + +theorem lintegral_gaussianThermalSandwich_lt_top_iff + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) : + (∫⁻ z : Fin m → ℂ, ENNReal.ofReal (multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A z)) < ⊤ ↔ + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef := by + let c : ℝ := (Real.pi ^ m)⁻¹ * (∏ j, (1 - q j)) ^ (-τ) * + (Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹ + have hZ : 0 < ∏ j, (1 - q j) := Finset.prod_pos fun j _ => sub_pos.mpr (hq₁ j) + have hc : 0 < c := mul_pos + (mul_pos (inv_pos.mpr (pow_pos Real.pi_pos m)) (Real.rpow_pos_of_pos hZ _)) + (inv_pos.mpr (Real.sqrt_pos.mpr hC.det_pos)) + simp_rw [gaussianThermalSandwich_coherent_diagonal hq₀ hq₁ hτ hA hG hC] + change (∫⁻ z : Fin m → ℂ, ENNReal.ofReal (c * + coherentMatrixGaussian (thermalCoherentPrecision q τ V) z)) < ⊤ ↔ _ + simp_rw [ENNReal.ofReal_mul hc.le] + rw [lintegral_const_mul' _ _ ENNReal.ofReal_ne_top] + have hfinite (t : ℝ≥0∞) : ENNReal.ofReal c * t < ⊤ ↔ t < ⊤ := by + constructor + · intro h + by_contra! ht + have he : t = ⊤ := top_le_iff.mp ht + rw [he, ENNReal.mul_top (ne_of_gt (ENNReal.ofReal_pos.mpr hc))] at h + exact lt_irrefl _ h + · intro h + exact ENNReal.mul_lt_top ENNReal.ofReal_lt_top h + rw [hfinite, lintegral_coherentMatrixGaussian_lt_top_iff + (thermalCoherentPrecision_isHermitian hq₀ τ hC), + thermalCoherentPrecision_posDef_iff hq₀ hq₁ hτ V hC] + +/-- Exact source domain criterion for an actual noncommuting Gaussian +operator relative to the faithful product thermal reference. -/ +theorem exists_gaussian_positiveTraceClass_sandwich_iff + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) : + (∃ Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass Θ ∧ + (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) ↔ + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef := by + rw [exists_positiveTraceClass_multiThermal_factorization_iff_coherentIntegral hq₀ hq₁ hτ hA.1, + lintegral_gaussianThermalSandwich_lt_top_iff hq₀ hq₁ hτ hA hG hC] + +theorem gaussianThermalSandwich_infinite_diagonal_of_not_gap + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : ¬ (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + (∑' k, ENNReal.ofReal (multiInverseThermalDiagonal q τ A k)) = ⊤ := by + rw [← lintegral_multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ hA.1] + exact top_le_iff.mp (not_lt.mp (fun h => hgap + ((lintegral_gaussianThermalSandwich_lt_top_iff hq₀ hq₁ hτ hA hG hC).mp h))) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichNormalization.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichNormalization.lean new file mode 100644 index 0000000000..c1dd8c4e66 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichNormalization.lean @@ -0,0 +1,187 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSandwichCriterion +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianDiagonalCharacteristic +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceScaling + +/-! +# Actual Gaussian covariance of the normalized inverse sandwich + +Every bounded solution of the thermal factorization equals the constructed +range-domain extension. Its actual positive trace is the determinant +factor, strictly positive and finite under the covariance gap. Normalizing +the actual operator gives trace one and an actual Gaussian characteristic +with physical covariance `P⁻¹-I/2`, where P is the derived precision. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory ContinuousLinearMap +open scoped MatrixOrder Matrix.Norms.L2Operator + +-- Prove the captured real-scalar normalization on an abstract Hilbert +-- carrier before specializing to the concrete multimode lp carrier. +private theorem re_inner_normalizedPositiveDensity + {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + (B : E →L[ℂ] E) (x : E) : + (inner ℂ x (normalizedPositiveDensity B x)).re = + (positiveTrace B).toReal⁻¹ * (inner ℂ x (B x)).re := by + simp only [normalizedPositiveDensity, smul_apply, + inner_smul_right_eq_smul, ← RCLike.re_eq_complex_re, RCLike.smul_re] + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} +variable {A Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} +variable {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +/-- Gaussian thermal covariance. -/ +def gaussianThermalCovariance (q : Fin m → ℝ) (τ : ℝ) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + (thermalCoherentPrecision q τ V)⁻¹ - (1 / 2 : ℝ) • 1 + +theorem gaussianThermalTraceFactor_pos + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + 0 < gaussianThermalTraceFactor q τ V := by + have hP := (thermalCoherentPrecision_posDef_iff hq₀ hq₁ hτ V hC).mpr hgap + exact div_pos (Real.rpow_pos_of_pos + (Finset.prod_pos fun j _ => sub_pos.mpr (hq₁ j)) _) + (mul_pos (Real.sqrt_pos.mpr hC.det_pos) (Real.sqrt_pos.mpr hP.det_pos)) + +theorem gaussian_factorization_isPositiveTraceClass + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) + (hΘ : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) : IsPositiveTraceClass Θ := by + let hs := summable_gaussianInverseThermalDiagonal hq₀ hq₁ hτ hA hG hC hgap + rw [multiThermalSandwichOperator_unique hq₀ hq₁ hτ hA.1 hs hΘ] + exact multiThermalSandwichOperator_isPositiveTraceClass hq₀ hq₁ hA.1 hs + +theorem positiveTrace_gaussian_factorization + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) + (hΘ : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) : + positiveTrace Θ = ENNReal.ofReal (gaussianThermalTraceFactor q τ V) := by + let hs := summable_gaussianInverseThermalDiagonal hq₀ hq₁ hτ hA hG hC hgap + rw [multiThermalSandwichOperator_unique hq₀ hq₁ hτ hA.1 hs hΘ, + positiveTrace_multiThermalSandwichOperator, + ENNReal.ofReal_tsum_of_nonneg (multiInverseThermalDiagonal_nonneg hq₀ hq₁ τ hA.1) hs, + ← lintegral_multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ hA.1] + exact lintegral_gaussianThermalSandwich_coherent_diagonal hq₀ hq₁ hτ hA hG hC hgap + +theorem gaussian_factorization_coherentDiagonal + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) + (hΘ : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) (z : Fin m → ℂ) : + multiCoherentPositiveDiagonal Θ z = + ((Real.pi ^ m)⁻¹ * (∏ j, (1 - q j)) ^ (-τ) * + (Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹) * + coherentMatrixGaussian (thermalCoherentPrecision q τ V) z := by + let hs := summable_gaussianInverseThermalDiagonal hq₀ hq₁ hτ hA hG hC hgap + have heq := multiThermalSandwichOperator_unique hq₀ hq₁ hτ hA.1 hs hΘ + have hform := multiThermalSandwichForm_eq_inner hq₀ hq₁ hτ hA.1 hs + (multiDomainCoherentVector hq₀ hq₁ (half_pos hτ) (WithLp.toLp 2 z)) + (multiDomainCoherentVector hq₀ hq₁ (half_pos hτ) (WithLp.toLp 2 z)) + have hd : multiCoherentPositiveDiagonal Θ z = + multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A z := by + rw [heq, multiCoherentPositiveDiagonal, multiThermalSandwichCoherentDiagonal, hform] + rfl + rw [hd] + exact gaussianThermalSandwich_coherent_diagonal hq₀ hq₁ hτ hA hG hC z + +theorem multiCoherentPositiveDiagonal_real_smul (c : ℝ) + (B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) (z : Fin m → ℂ) : + multiCoherentPositiveDiagonal (c • B) z = c * multiCoherentPositiveDiagonal B z := by + simp only [multiCoherentPositiveDiagonal, smul_apply, + inner_smul_right_eq_smul, + ← RCLike.re_eq_complex_re, RCLike.smul_re] + ring + +theorem normalized_gaussian_factorization_coherentDiagonal + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) + (hΘ : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) (z : Fin m → ℂ) : + multiCoherentPositiveDiagonal (normalizedPositiveDensity Θ) z = + (Real.sqrt (thermalCoherentPrecision q τ V).det / Real.pi ^ m) * + coherentMatrixGaussian (thermalCoherentPrecision q τ V) z := by + have hP := (thermalCoherentPrecision_posDef_iff hq₀ hq₁ hτ V hC).mpr hgap + have ht := gaussianThermalTraceFactor_pos hq₀ hq₁ hτ hC hgap + have hscale : multiCoherentPositiveDiagonal (normalizedPositiveDensity Θ) z = + (positiveTrace Θ).toReal⁻¹ * multiCoherentPositiveDiagonal Θ z := by + simp only [multiCoherentPositiveDiagonal, re_inner_normalizedPositiveDensity] + ring + rw [hscale, positiveTrace_gaussian_factorization hq₀ hq₁ hτ hA hG hC hgap hΘ, + ENNReal.toReal_ofReal ht.le, + gaussian_factorization_coherentDiagonal hq₀ hq₁ hτ hA hG hC hgap hΘ] + rw [← mul_assoc] + congr 1 + unfold gaussianThermalTraceFactor + have hZ : 0 < (∏ j, (1 - q j)) ^ (-τ) := Real.rpow_pos_of_pos + (Finset.prod_pos fun j _ => sub_pos.mpr (hq₁ j)) _ + field_simp [show Real.pi ^ m ≠ 0 by positivity, hZ.ne', + ne_of_gt (Real.sqrt_pos.mpr hC.det_pos), ne_of_gt (Real.sqrt_pos.mpr hP.det_pos)] + exact div_self (Real.sqrt_pos.mpr hC.det_pos).ne' + +/-- Actual normalized operator Gaussianity, derived from its coherent +integral and actual Weyl expectation. The inverse precision is a genuine +matrix inverse because the strict source covariance gap implies PosDef. -/ +theorem normalized_gaussian_factorization_hasGaussianPhysicalCharacteristic + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) + (hΘ : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) : + HasGaussianPhysicalCharacteristic (normalizedPositiveDensity Θ) + (gaussianThermalCovariance q τ V) := by + have hΘtc := gaussian_factorization_isPositiveTraceClass hq₀ hq₁ hτ hA hG hC hgap hΘ + exact hasGaussianPhysicalCharacteristic_of_coherentDiagonal + (normalizedPositiveDensity_isPositiveTraceClass (multiModeNumberBasis m) hΘtc) + ((thermalCoherentPrecision_posDef_iff hq₀ hq₁ hτ V hC).mpr hgap) + (normalized_gaussian_factorization_coherentDiagonal hq₀ hq₁ hτ hA hG hC hgap hΘ) + +theorem exists_gaussian_sandwich_with_normalized_covariance + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + ∃ Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass Θ ∧ + (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A ∧ + positiveTrace Θ = ENNReal.ofReal (gaussianThermalTraceFactor q τ V) ∧ + positiveTrace (normalizedPositiveDensity Θ) = 1 ∧ + HasGaussianPhysicalCharacteristic (normalizedPositiveDensity Θ) + (gaussianThermalCovariance q τ V) := by + obtain ⟨Θ, hΘtc, hΘ, ht⟩ := + exists_gaussian_positiveTraceClass_sandwich hq₀ hq₁ hτ hA hG hC hgap + refine ⟨Θ, hΘtc, hΘ, ht, ?_, ?_⟩ + · apply positiveTrace_normalizedPositiveDensity (multiModeNumberBasis m) hΘtc + rw [ht] + exact ENNReal.ofReal_pos.mpr (gaussianThermalTraceFactor_pos hq₀ hq₁ hτ hC hgap) + · exact normalized_gaussian_factorization_hasGaussianPhysicalCharacteristic + hq₀ hq₁ hτ hA hG hC hgap hΘ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichPerturbation.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichPerturbation.lean new file mode 100644 index 0000000000..4bfd9c8eba --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichPerturbation.lean @@ -0,0 +1,82 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiParameters +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixLogDetBound + +/-! +# Actual Gaussian sandwiches under the manuscript's norm hypothesis + +The norm hypothesis yields a genuine positive covariance gap, hence an +actual positive trace-class range-domain sandwich. Its normalized state +has the derived physical covariance, and that covariance satisfies both +perturbation bounds. The determinant logarithm is controlled separately. +No spectral purity differential or Rényi comparison is assumed or claimed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} +variable {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +theorem gaussianRelativePerturbation_isHermitian (hV : V.IsHermitian) + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + (gaussianRelativePerturbation q τ V).IsHermitian := + relativeCovariancePerturbation_isHermitian + (thermalReferenceGap_posDef hq₀ hq₁ hτ₀ hτ₁) + (hV.sub (Matrix.isHermitian_diagonal _)) + +/-- The smallness hypothesis constructs an actual operator and identifies +its actual normalized physical covariance, with the source norm bounds. -/ +theorem gaussian_sandwich_of_small_relative_norm + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hV : V.IsHermitian) (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hδ : ‖gaussianRelativePerturbation q τ V‖ ≤ + (4 * thermalPerturbationConstant τ)⁻¹) : + ∃ Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass Θ ∧ + (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A ∧ + positiveTrace (normalizedPositiveDensity Θ) = 1 ∧ + HasGaussianPhysicalCharacteristic (normalizedPositiveDensity Θ) + (thermalSandwichCovariance q τ V) ∧ + (positiveTrace Θ).toReal = + (positiveTrace (multiModeThermalDensity q ^ (1 - τ))).toReal / + Real.sqrt (1 - gaussianRelativePerturbation q τ V).det ∧ + ‖gaussianRelativePerturbation q τ V‖ ≤ 1 / 8 ∧ + ‖thermalSandwichRelativePerturbation q τ V‖ ≤ 2 / 7 ∧ + matrixTraceNorm (thermalSandwichRelativePerturbation q τ V) ≤ + thermalPerturbationConstant τ / (1 - ‖gaussianRelativePerturbation q τ V‖) * + matrixTraceNorm (gaussianRelativePerturbation q τ V) ∧ + |(cfc Real.log (1 - gaussianRelativePerturbation q τ V)).trace| ≤ + matrixTraceNorm (gaussianRelativePerturbation q τ V) / + (1 - ‖gaussianRelativePerturbation q τ V‖) := by + have hb := thermal_smallness_norm_bounds hq₀ hq₁ hτ₀ hτ₁ hV hδ + have hlt : ‖gaussianRelativePerturbation q τ V‖ < 1 := by linarith [hb.1] + have hgap := thermal_covariance_gap_posDef_of_relative_norm hq₀ hq₁ hτ₀ hτ₁ hV hlt + obtain ⟨Θ, hΘtc, hΘ, ht, hn, hchar⟩ := + exists_gaussian_sandwich_with_normalized_covariance hq₀ hq₁ hτ₀ hA hG hC hgap + have hc : gaussianThermalCovariance q τ V = thermalSandwichCovariance q τ V := + gaussianThermalCovariance_woodbury hq₀ hq₁ hτ₀ hC hgap + rw [hc] at hchar + refine ⟨Θ, hΘtc, hΘ, hn, hchar, ?_, hb.1, hb.2, ?_, ?_⟩ + · exact positiveTrace_gaussian_factorization_appendixA hq₀ hq₁ hτ₀ hτ₁ hA hG hC hgap hΘ + · exact matrixTraceNorm_thermalSandwichRelativePerturbation_le hq₀ hq₁ hτ₀ hτ₁ hV hlt + · exact abs_trace_log_one_sub_le + (gaussianRelativePerturbation_isHermitian hV hq₀ hq₁ hτ₀ hτ₁) hlt + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichTrace.lean new file mode 100644 index 0000000000..4c0781909d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichTrace.lean @@ -0,0 +1,155 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianBargmannDiagonal +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeSandwichCoherentTrace + +/-! +# Actual noncommuting Gaussian sandwich existence and determinant trace + +The input Gaussian property is the actual Weyl characteristic. The derived +coherent diagonal is integrated before any extension exists. The resulting +weighted summability constructs the genuine positive trace-class inverse +sandwich and gives its determinant trace. Covariance gap positivity is the +proved finite-matrix criterion, rather than an assumed operator theorem. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} +variable {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} +variable {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +/-- Gaussian thermal trace factor. -/ +def gaussianThermalTraceFactor (q : Fin m → ℝ) (τ : ℝ) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : ℝ := + (∏ j, (1 - q j)) ^ (-τ) / + (Real.sqrt (V + (1 / 2 : ℝ) • 1).det * Real.sqrt (thermalCoherentPrecision q τ V).det) + +theorem gaussianThermalSandwich_coherent_diagonal + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) (z : Fin m → ℂ) : + multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A z = + ((Real.pi ^ m)⁻¹ * (∏ j, (1 - q j)) ^ (-τ) * + (Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹) * + coherentMatrixGaussian (thermalCoherentPrecision q τ V) z := by + have h := multiThermalSandwichForm_coherent_diagonal hq₀ hq₁ hτ A + (WithLp.toLp 2 z) + simp only [] at h + rw [gaussianPhysical_bargmann_diagonal hA hG hC] at h + have he : Complex.exp ((-‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 : ℝ) : ℂ) * + (((∏ j, (1 - q j)) ^ (-τ) : ℝ) : ℂ) * + (((Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹ : ℂ) * + Complex.exp (((‖(WithLp.toLp 2 (multiModeInversePowerLabel q (τ / 2) z) : + MultiModePhaseSpace m)‖ ^ 2 - + complexRealCoordinates m (multiModeInversePowerLabel q (τ / 2) z) ⬝ᵥ + ((V + (1 / 2 : ℝ) • 1)⁻¹ *ᵥ + complexRealCoordinates m (multiModeInversePowerLabel q (τ / 2) z))) : ℝ) : ℂ)) = + (((∏ j, (1 - q j)) ^ (-τ) * (Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹ : ℝ) : ℂ) * + Complex.exp ((-(complexRealCoordinates m z ⬝ᵥ + (thermalCoherentPrecision q τ V *ᵥ complexRealCoordinates m z)) : ℝ) : ℂ) := by + rw [Complex.ofReal_mul] + calc + _ = ((((∏ j, (1 - q j)) ^ (-τ) : ℝ) : ℂ) * + ((Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹ : ℂ)) * + (Complex.exp ((-‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 : ℝ) : ℂ) * + Complex.exp (((‖(WithLp.toLp 2 (multiModeInversePowerLabel q (τ / 2) z) : + MultiModePhaseSpace m)‖ ^ 2 - + complexRealCoordinates m (multiModeInversePowerLabel q (τ / 2) z) ⬝ᵥ + ((V + (1 / 2 : ℝ) • 1)⁻¹ *ᵥ + complexRealCoordinates m (multiModeInversePowerLabel q + (τ / 2) z))) : ℝ) : ℂ)) := by ring + _ = _ := by + rw [← Complex.exp_add, ← Complex.ofReal_add, thermalCoherentPrecision_coherent_exponent] + simp only [Complex.ofReal_inv] + rw [he] at h + rw [multiThermalSandwichCoherentDiagonal, h] + simp only [← Complex.ofReal_exp, Complex.mul_re, Complex.ofReal_re, + Complex.ofReal_im, zero_mul, sub_zero, coherentMatrixGaussian] + ring + +theorem integrable_gaussianThermalSandwich_coherent_diagonal + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + Integrable (multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A) := by + have heq : multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A = + fun z => ((Real.pi ^ m)⁻¹ * (∏ j, (1 - q j)) ^ (-τ) * + (Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹) * + coherentMatrixGaussian (thermalCoherentPrecision q τ V) z := + funext (gaussianThermalSandwich_coherent_diagonal hq₀ hq₁ hτ hA hG hC) + rw [heq] + exact (integrable_coherentMatrixGaussian + ((thermalCoherentPrecision_posDef_iff hq₀ hq₁ hτ V hC).mpr hgap)).const_mul _ + +theorem integral_gaussianThermalSandwich_coherent_diagonal + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + (∫ z : Fin m → ℂ, multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A z) = + gaussianThermalTraceFactor q τ V := by + have hP := (thermalCoherentPrecision_posDef_iff hq₀ hq₁ hτ V hC).mpr hgap + simp_rw [gaussianThermalSandwich_coherent_diagonal hq₀ hq₁ hτ hA hG hC] + rw [integral_const_mul, integral_coherentMatrixGaussian hP, gaussianThermalTraceFactor] + field_simp [show Real.pi ^ m ≠ 0 by positivity, + ne_of_gt (Real.sqrt_pos.mpr hC.det_pos), ne_of_gt (Real.sqrt_pos.mpr hP.det_pos)] + +theorem lintegral_gaussianThermalSandwich_coherent_diagonal + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + (∫⁻ z : Fin m → ℂ, ENNReal.ofReal (multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A z)) = + ENNReal.ofReal (gaussianThermalTraceFactor q τ V) := by + rw [← ofReal_integral_eq_lintegral_ofReal + (integrable_gaussianThermalSandwich_coherent_diagonal hq₀ hq₁ hτ hA hG hC hgap) + (Filter.Eventually.of_forall (multiThermalSandwichCoherentDiagonal_nonneg hq₀ hq₁ hτ hA.1)), + integral_gaussianThermalSandwich_coherent_diagonal hq₀ hq₁ hτ hA hG hC hgap] + +theorem summable_gaussianInverseThermalDiagonal + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + Summable (multiInverseThermalDiagonal q τ A) := by + apply (lintegral_multiThermalSandwichCoherentDiagonal_lt_top_iff hq₀ hq₁ hτ hA.1).mp + rw [lintegral_gaussianThermalSandwich_coherent_diagonal hq₀ hq₁ hτ hA hG hC hgap] + exact ENNReal.ofReal_lt_top + +/-- Actual positive trace-class extension and determinant trace under the +source covariance gap, derived from the genuine Gaussian characteristic. -/ +theorem exists_gaussian_positiveTraceClass_sandwich + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + ∃ Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass Θ ∧ + (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A ∧ + positiveTrace Θ = ENNReal.ofReal (gaussianThermalTraceFactor q τ V) := by + let hs := summable_gaussianInverseThermalDiagonal hq₀ hq₁ hτ hA hG hC hgap + refine ⟨multiThermalSandwichOperator hq₀ hq₁ hA.1 hs, + multiThermalSandwichOperator_isPositiveTraceClass hq₀ hq₁ hA.1 hs, + multiThermalSandwichOperator_factorization hq₀ hq₁ hτ hA.1 hs, ?_⟩ + rw [positiveTrace_multiThermalSandwichOperator, + ENNReal.ofReal_tsum_of_nonneg (multiInverseThermalDiagonal_nonneg hq₀ hq₁ τ hA.1) hs, + ← lintegral_multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ hA.1] + exact lintegral_gaussianThermalSandwich_coherent_diagonal hq₀ hq₁ hτ hA hG hC hgap + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichTraceRatio.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichTraceRatio.lean new file mode 100644 index 0000000000..1883bc685f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSandwichTraceRatio.lean @@ -0,0 +1,164 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalWoodburyCovariance +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalDensityCharacteristic + +/-! +# Appendix A trace calibrated by the actual thermal reference + +Determinant factorization isolates the covariance gap. The remaining +constant is evaluated at the actual reference density, where the actual +CFC-power factorization has already been proved. Thus the final ratio +uses the actual positive trace of σ^(1-τ), not a formal calibration value. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} +variable {V W : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +theorem thermalCoherentPrecision_det_product + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) : + (V + (1 / 2 : ℝ) • 1).det * (thermalCoherentPrecision q τ V).det = + (thermalDilationExcess q τ).det * + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).det := by + let S := thermalDilationExcess q τ + let T := thermalQuadratureDilation q τ + let C := V + (1 / 2 : ℝ) • 1 + have hS := (thermalDilationExcess_posDef hq₀ hq₁ hτ).isUnit + have hT := (thermalQuadratureDilation_posDef hq₀ τ).isUnit + have hP : thermalCoherentPrecision q τ V = sandwichPrecision S T C := by + dsimp only [S, T, C] + rw [thermalCoherentPrecision, sandwichPrecision, ← thermalQuadratureDilation_sq hq₀] + abel + have hG : sandwichGap S T C = + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V := by + dsimp only [S, T, C] + rw [sandwichGap, thermalDilationExcess_inverse_congruence hq₀ hq₁ hτ] + abel + have h := congrArg Matrix.det (sandwichPrecision_factorization S T C hS hT hC.isUnit) + rw [← hP, hG] at h + simp only [Matrix.det_mul, Matrix.det_nonsing_inv, Ring.inverse_eq_inv] at h + change C.det * (thermalCoherentPrecision q τ V).det = S.det * _ + rw [h] + have hCd : C.det ≠ 0 := hC.det_pos.ne' + have hTd : T.det ≠ 0 := ((Matrix.isUnit_iff_isUnit_det T).mp hT).ne_zero + field_simp [hTd, hCd] + +theorem gaussianThermalTraceFactor_gap + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) : + gaussianThermalTraceFactor q τ V = + (∏ j, (1 - q j)) ^ (-τ) / + (Real.sqrt (thermalDilationExcess q τ).det * + Real.sqrt (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).det) := by + rw [gaussianThermalTraceFactor, ← Real.sqrt_mul hC.det_pos.le, + thermalCoherentPrecision_det_product hq₀ hq₁ hτ hC, + Real.sqrt_mul (thermalDilationExcess_posDef hq₀ hq₁ hτ).det_pos.le] + +theorem gaussianThermalTraceFactor_ratio + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hD : (W + (1 / 2 : ℝ) • 1).PosDef) + (hgapV : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) + (hgapW : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - W).PosDef) : + gaussianThermalTraceFactor q τ V = gaussianThermalTraceFactor q τ W * + Real.sqrt ((modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - W).det / + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).det) := by + rw [gaussianThermalTraceFactor_gap hq₀ hq₁ hτ hC, + gaussianThermalTraceFactor_gap hq₀ hq₁ hτ hD, + Real.sqrt_div hgapW.det_pos.le] + field_simp [ne_of_gt (Real.sqrt_pos.mpr (thermalDilationExcess_posDef hq₀ hq₁ hτ).det_pos), + ne_of_gt (Real.sqrt_pos.mpr hgapV.det_pos), ne_of_gt (Real.sqrt_pos.mpr hgapW.det_pos)] + +/-- Covariance of the product thermal reference with one occupation parameter per mode. -/ +def thermalReferenceCovariance (q : Fin m → ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + modeDiagonal (fun j => thermalQuadratureVariance (q j)) + +/-- Thermal reference gap defined as `modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - +thermalReferenceCovariance q`. -/ +def thermalReferenceGap (q : Fin m → ℝ) (τ : ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - thermalReferenceCovariance q + +theorem thermalReferenceCovariance_add_half_posDef + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) : + (thermalReferenceCovariance q + (1 / 2 : ℝ) • 1).PosDef := by + change (Matrix.diagonal (fun i : Fin m × Fin 2 => thermalQuadratureVariance (q i.1)) + _).PosDef + rw [Matrix.smul_one_eq_diagonal, Matrix.diagonal_add] + apply Matrix.PosDef.diagonal + intro i + have hv : 0 < thermalQuadratureVariance (q i.1) := by + unfold thermalQuadratureVariance + exact div_pos (by linarith [hq₀ i.1]) (mul_pos (by norm_num) (sub_pos.mpr (hq₁ i.1))) + linarith + +theorem thermalReferenceGap_posDef + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + (thermalReferenceGap q τ).PosDef := by + change (Matrix.diagonal (fun i : Fin m × Fin 2 => thermalQuadratureVariance (q i.1 ^ τ)) - + Matrix.diagonal (fun i : Fin m × Fin 2 => thermalQuadratureVariance (q i.1))).PosDef + rw [Matrix.diagonal_sub] + apply Matrix.PosDef.diagonal + intro i + exact sub_pos.mpr ((thermalQuadratureVariance_lt_iff (hq₁ i.1) + (Real.rpow_lt_one (hq₀ i.1).le (hq₁ i.1) hτ₀)).mpr + (thermal_parameter_lt_rpow (hq₀ i.1) (hq₁ i.1) hτ₁)) + +theorem gaussianThermalTraceFactor_reference + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + gaussianThermalTraceFactor q τ (thermalReferenceCovariance q) = + (positiveTrace (multiModeThermalDensity q ^ (1 - τ))).toReal := by + have hA : IsPositiveTraceClass (multiModeThermalDensity q) := by + refine ⟨multiModeThermalDensity_nonneg (fun j => (hq₀ j).le) hq₁, ?_⟩ + rw [positiveTrace_multiModeThermalDensity (fun j => (hq₀ j).le) hq₁] + exact ENNReal.one_lt_top + have hC := thermalReferenceCovariance_add_half_posDef (fun j => (hq₀ j).le) hq₁ + have hg := thermalReferenceGap_posDef hq₀ hq₁ hτ₀ hτ₁ + have h := positiveTrace_gaussian_factorization hq₀ hq₁ hτ₀ hA + (multiModeThermalDensity_hasGaussianPhysicalCharacteristic (fun j => (hq₀ j).le) hq₁) + hC hg (multiModeThermalDensity_reference_factorization hq₀ hq₁ hτ₀ hτ₁) + have hr := congrArg ENNReal.toReal h + change (positiveTrace (multiModeThermalDensity q ^ (1 - τ))).toReal = + (ENNReal.ofReal (gaussianThermalTraceFactor q τ (thermalReferenceCovariance q))).toReal at hr + rw [ENNReal.toReal_ofReal (gaussianThermalTraceFactor_pos hq₀ hq₁ hτ₀ hC hg).le] at hr + exact hr.symm + +/-- The source determinant-ratio trace formula for the actual inverse +sandwich, calibrated against the actual CFC power of the reference density. -/ +theorem positiveTrace_gaussian_factorization_appendixA_ratio + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + {A Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) + (hΘ : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) : + (positiveTrace Θ).toReal = + (positiveTrace (multiModeThermalDensity q ^ (1 - τ))).toReal * + Real.sqrt ((thermalReferenceGap q τ).det / + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).det) := by + rw [positiveTrace_gaussian_factorization hq₀ hq₁ hτ₀ hA hG hC hgap hΘ, + ENNReal.toReal_ofReal (gaussianThermalTraceFactor_pos hq₀ hq₁ hτ₀ hC hgap).le, + gaussianThermalTraceFactor_ratio hq₀ hq₁ hτ₀ hC + (thermalReferenceCovariance_add_half_posDef (fun j => (hq₀ j).le) hq₁) + hgap (thermalReferenceGap_posDef hq₀ hq₁ hτ₀ hτ₁), + gaussianThermalTraceFactor_reference hq₀ hq₁ hτ₀ hτ₁] + rfl + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianSourceCompressionBounds.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSourceCompressionBounds.lean new file mode 100644 index 0000000000..76844ba8ad --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianSourceCompressionBounds.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianCovarianceNormalization +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixNormalizationOperator +public import LeanPool.VacuumBellSeparation.Gaussian.ReserveThermalCompression + +/-! +# Actual Gaussian perturbation bounds from source reserve factorizations + +The hypotheses identify the actual compressed commutation operator and +the actual covariance-normalized perturbation. All thermal positivity, +normalization, compression estimates, and both perturbation norm bounds +are then derived. The physical source embedding and its full-space +reserve factorization remain explicit model identifications; the desired +finite perturbation estimates are not assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {m : ℕ} +variable {F : Type*} [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] +variable {ρ σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} +variable {Vρ Vσ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +theorem intrinsicGaussianRelativePerturbation_compression_norms + (hσ : IsFaithfulDensity σ) (hVρ : Vρ.IsHermitian) (hVσ : Vσ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) + (e : EuclideanSpace ℂ (Fin m × Fin 2) →ₗᵢ[ℂ] F) + {B T : F →L[ℂ] F} + (hB : compression e B = (Matrix.toEuclideanCLM (n := Fin m × Fin 2) (𝕜 := ℂ)) + (covarianceCommutationMatrix Vσ modeSymplecticForm)) + (hD : realMatrixOperator (relativeCovariancePerturbation Vσ (Vρ - Vσ)) = compression e T) + {τ : ℝ} (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + ‖intrinsicGaussianRelativePerturbation ρ σ τ‖ = + ‖normalizedReserveCompression e T (normalizedThermal τ (compression e B))‖ ∧ + ENNReal.ofReal (matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ τ)) = + operatorTraceNorm (normalizedReserveCompression e T (normalizedThermal τ + (compression e B))) := by + have hH := relativeCovariancePerturbation_posDef + (real_posDef_of_quantum_posDef (actual_faithful_gaussian_quantum_posDef hσ hVσ hGσ)) + (faithful_gaussian_power_increment_posDef hσ hVσ hGσ hτ₀ hτ₁) + have hh : realMatrixOperator (relativeCovariancePerturbation Vσ (gaussianPowerIncrement σ τ)) = + normalizedThermal τ (compression e B) := by + rw [hB] + exact gaussian_power_increment_operator_eq_normalizedThermal hσ hVσ hGσ hτ₀ + have hm := matrix_normalized_compression_norms e hH hD + rw [hh] at hm + have hw := intrinsicGaussianRelativePerturbation_whitening_norms + hσ hVρ hVσ hGρ hGσ hτ₀ hτ₁ + dsimp only at hw + exact ⟨hw.1.symm.trans hm.1, (congrArg ENNReal.ofReal hw.2).symm.trans hm.2⟩ + +/-- The reverse/low-parameter source normalization estimate for the +literal intrinsic actual Gaussian perturbation. -/ +theorem gaussian_low_source_factorization_bounds + (hσ : IsFaithfulDensity σ) (hVρ : Vρ.IsHermitian) (hVσ : Vσ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) + (e : EuclideanSpace ℂ (Fin m × Fin 2) →ₗᵢ[ℂ] F) + {B Y : F →L[ℂ] F} (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) + (hcomp : compression e B = (Matrix.toEuclideanCLM (n := Fin m × Fin 2) (𝕜 := ℂ)) + (covarianceCommutationMatrix Vσ modeSymplecticForm)) + {a : ℝ} (ha₀ : 0 < a) (ha₁ : a ≤ 1 / 2) + (hD : realMatrixOperator (relativeCovariancePerturbation Vσ (Vρ - Vσ)) = + compression e (reserve B ^ a * Y * reserve B ^ a)) + (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) : + ‖intrinsicGaussianRelativePerturbation ρ σ a‖ ≤ (thermalConst a)⁻¹ * ‖Y‖ ∧ + ENNReal.ofReal (matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ a)) ≤ + ENNReal.ofReal (thermalConst a)⁻¹ * operatorTraceNorm Y := by + have ha1 : a < 1 := by linarith + have hH : IsStrictlyPositive (normalizedThermal a (compression e B)) := by + rw [hcomp] + exact gaussian_thermal_weight_isStrictlyPositive hσ hVσ hGσ ha₀ ha1 + have hn := intrinsicGaussianRelativePerturbation_compression_norms + hσ hVρ hVσ hGρ hGσ e hcomp hD ha₀ ha1 + rw [hn.1, hn.2] + exact low_thermal_normalized_factorization_bounds e hB hnorm ha₀ ha₁ hH hcY hY + +/-- The forward/high-parameter source normalization estimate. Endpoint +spectra of the full source B are allowed; the actual Gaussian finite +reference supplies target strict positivity. -/ +theorem gaussian_high_source_factorization_bounds + (hσ : IsFaithfulDensity σ) (hVρ : Vρ.IsHermitian) (hVσ : Vσ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) + (e : EuclideanSpace ℂ (Fin m × Fin 2) →ₗᵢ[ℂ] F) + {B Y : F →L[ℂ] F} (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) + (hcomp : compression e B = (Matrix.toEuclideanCLM (n := Fin m × Fin 2) (𝕜 := ℂ)) + (covarianceCommutationMatrix Vσ modeSymplecticForm)) + (n : ℕ) + (hD : realMatrixOperator (relativeCovariancePerturbation Vσ (Vρ - Vσ)) = + compression e (reserve B ^ (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) * Y * + reserve B ^ (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)))) + (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) : + let b : ℝ := ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) + ‖intrinsicGaussianRelativePerturbation ρ σ b‖ ≤ (thermalConst b)⁻¹ * ‖Y‖ ∧ + ENNReal.ofReal (matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ b)) ≤ + ENNReal.ofReal (thermalConst b)⁻¹ * operatorTraceNorm Y := by + dsimp only + have hb₀ : (0 : ℝ) < ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) := by positivity + have hb₁ : ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) < 1 := by + apply (div_lt_one (by positivity)).mpr + exact_mod_cast (show n + 1 < n + 2 by omega) + have hH : IsStrictlyPositive (normalizedThermal + (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) (compression e B)) := by + rw [hcomp] + exact gaussian_thermal_weight_isStrictlyPositive hσ hVσ hGσ hb₀ hb₁ + have hn := intrinsicGaussianRelativePerturbation_compression_norms + hσ hVρ hVσ hGρ hGσ e hcomp hD hb₀ hb₁ + rw [hn.1, hn.2] + exact high_thermal_normalized_factorization_bounds e hB hnorm n hH hcY hY + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianThermalRenyiBound.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianThermalRenyiBound.lean new file mode 100644 index 0000000000..2089ca8435 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianThermalRenyiBound.lean @@ -0,0 +1,166 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPurityPerturbation +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPartitionCancellation + +/-! +# Actual Gaussian sandwich power trace and the Rényi bound + +For the source relative-norm hypothesis, every actual solution of the +faithful thermal factorization is the unique positive trace-class inverse +sandwich. Its genuine r-th CFC power has strictly positive finite trace. +Partition cancellation and the aggregate purity estimate give the source +constant 2 r max(2,1/τ), with no commuting covariance assumption. + +The theorem retains the actual input strict quantum condition explicitly. +It is stated for the bounded extension of the inverse-domain sandwich; +no totalized inverse of the faithful density is used. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} {q : Fin m → ℝ} {τ r : ℝ} +variable {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} +variable {A Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + +theorem gaussian_thermal_factorization_power_log + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) + (hτ₀ : 0 < τ) (hτ₁ : τ < 1) (hr : 1 < r) (hrτ : r * (1 - τ) = 1) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hV : V.IsHermitian) (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) + (hδ : ‖gaussianRelativePerturbation q τ V‖ ≤ + (4 * thermalPerturbationConstant τ)⁻¹) + (hΘ : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) : + (0 < positiveTrace (Θ ^ r) ∧ positiveTrace (Θ ^ r) < ⊤) ∧ + Real.log (positiveTrace (Θ ^ r)).toReal = + -(r / 2) * Real.log (1 - gaussianRelativePerturbation q τ V).det + + covariancePurityTrace r (thermalSandwichCovariance q τ V) - + covariancePurityTrace r (thermalPowerCovariance q (1 - τ)) := by + have hb := thermal_smallness_norm_bounds hq₀ hq₁ hτ₀ hτ₁ hV hδ + have hz : ‖gaussianRelativePerturbation q τ V‖ < 1 := by linarith [hb.1] + have hgap := thermal_covariance_gap_posDef_of_relative_norm hq₀ hq₁ hτ₀ hτ₁ hV hz + have hΘtc := gaussian_factorization_isPositiveTraceClass hq₀ hq₁ hτ₀ hA hG hC hgap hΘ + have ht : 0 < positiveTrace Θ := by + rw [positiveTrace_gaussian_factorization hq₀ hq₁ hτ₀ hA hG hC hgap hΘ] + exact ENNReal.ofReal_pos.mpr (gaussianThermalTraceFactor_pos hq₀ hq₁ hτ₀ hC hgap) + have hntc := normalizedPositiveDensity_isPositiveTraceClass (multiModeNumberBasis m) hΘtc + have hK := thermalSandwichCovariance_posDef_of_small_relative_norm hq₀ hq₁ hτ₀ hτ₁ hV hδ + have hQK := (thermalSandwichCovariance_quantum_posDef_iff hq₀ hq₁ hτ₀ hgap).mpr hQ + have hGK : HasGaussianPhysicalCharacteristic (normalizedPositiveDensity Θ) + (thermalSandwichCovariance q τ V) := by + have h := normalized_gaussian_factorization_hasGaussianPhysicalCharacteristic + hq₀ hq₁ hτ₀ hA hG hC hgap hΘ + rwa [gaussianThermalCovariance_woodbury hq₀ hq₁ hτ₀ hC hgap] at h + have hnr := gaussianPhysical_rpow_trace_pos_finite_of_strict_quantum hntc hK hQK hGK + (by linarith : 0 < r) + refine ⟨positiveDensity_rpow_trace_pos_finite_of_normalized (multiModeNumberBasis m) + hΘtc ht (by linarith) hnr, ?_⟩ + have hnormalization : Real.log (positiveTrace (Θ ^ r)).toReal = + r * Real.log (positiveTrace Θ).toReal + + Real.log (positiveTrace (normalizedPositiveDensity Θ ^ r)).toReal := + log_positiveTrace_rpow_normalization (multiModeNumberBasis m) hΘtc ht + (r := r) (by linarith) hnr + have hpurity : Real.log (positiveTrace (normalizedPositiveDensity Θ ^ r)).toReal = + covariancePurityTrace r (thermalSandwichCovariance q τ V) := + log_positiveTrace_gaussianPhysical_rpow_eq_purity hntc hK hQK hGK (r := r) (by linarith) + rw [hnormalization, hpurity] + have htrace := positiveTrace_gaussian_factorization_appendixA hq₀ hq₁ hτ₀ hτ₁ hA hG hC hgap hΘ + have href := positiveTrace_multiModeThermalDensity_rpow_pos_finite + (fun j => (hq₀ j).le) hq₁ (sub_pos.mpr hτ₁) + have hrefR := ENNReal.toReal_pos href.1.ne' href.2.ne + have hdet := (one_sub_gaussianRelativePerturbation_posDef hq₀ hq₁ hτ₀ hτ₁ hgap).det_pos + have hpart := thermalPowerCovariance_partition_cancellation hq₀ hq₁ (sub_pos.mpr hτ₁) + (by linarith : 0 < r) (by simpa only [mul_comm] using hrτ) + rw [htrace, Real.log_div hrefR.ne' (Real.sqrt_pos.mpr hdet).ne', Real.log_sqrt hdet.le] + nlinarith [hpart] + +theorem gaussian_thermal_factorization_renyi_bound + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) + (hτ₀ : 0 < τ) (hτ₁ : τ < 1) (hr : 1 < r) (hrτ : r * (1 - τ) = 1) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hV : V.IsHermitian) (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) + (hδ : ‖gaussianRelativePerturbation q τ V‖ ≤ + (4 * thermalPerturbationConstant τ)⁻¹) + (hΘ : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) : + Real.log (positiveTrace (Θ ^ r)).toReal ≤ + 2 * r * thermalPerturbationConstant τ * matrixTraceNorm + (gaussianRelativePerturbation q τ V) := by + have hb := thermal_smallness_norm_bounds hq₀ hq₁ hτ₀ hτ₁ hV hδ + have hz : ‖gaussianRelativePerturbation q τ V‖ < 1 := by linarith [hb.1] + have hlog := abs_log_det_one_sub_le + (gaussianRelativePerturbation_isHermitian hV hq₀ hq₁ hτ₀ hτ₁) hz + have hp := thermalSandwichCovariance_purity_bound hq₀ hq₁ hτ₀ hτ₁ hr hV hQ hδ + rw [(gaussian_thermal_factorization_power_log hq₀ hq₁ hτ₀ hτ₁ hr hrτ + hA hG hV hC hQ hδ hΘ).2] + calc + _ ≤ (r / 2) * |Real.log (1 - gaussianRelativePerturbation q τ V).det| + + |covariancePurityTrace r (thermalSandwichCovariance q τ V) - + covariancePurityTrace r (thermalPowerCovariance q (1 - τ))| := by + have := neg_le_abs (Real.log (1 - gaussianRelativePerturbation q τ V).det) + have := le_abs_self (covariancePurityTrace r (thermalSandwichCovariance q τ V) - + covariancePurityTrace r (thermalPowerCovariance q (1 - τ))) + nlinarith + _ ≤ (r / 2) * (matrixTraceNorm (gaussianRelativePerturbation q τ V) / + (1 - ‖gaussianRelativePerturbation q τ V‖)) + + (r / 2) * (thermalPerturbationConstant τ / + ((1 - ‖gaussianRelativePerturbation q τ V‖) * + (1 - ‖thermalSandwichRelativePerturbation q τ V‖))) * + matrixTraceNorm (gaussianRelativePerturbation q τ V) := + add_le_add (mul_le_mul_of_nonneg_left hlog (by linarith)) hp + _ = (r / 2) * ((1 - ‖gaussianRelativePerturbation q τ V‖)⁻¹ + + thermalPerturbationConstant τ / ((1 - ‖gaussianRelativePerturbation q τ V‖) * + (1 - ‖thermalSandwichRelativePerturbation q τ V‖))) * + matrixTraceNorm (gaussianRelativePerturbation q τ V) := by ring + _ ≤ _ := mul_le_mul_of_nonneg_right + (renyi_final_numeric_bound (by linarith) (two_le_thermalPerturbationConstant τ) hb.1 hb.2) + (matrixTraceNorm_nonneg _) + +/-- Source-normalized order r and constant max(2,τ⁻¹), with an actual +positive trace-class inverse sandwich and a finite genuine power trace. -/ +theorem exists_gaussian_thermal_renyi_bound + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hr : 1 < r) + (hA : IsPositiveTraceClass A) (hG : HasGaussianPhysicalCharacteristic A V) + (hV : V.IsHermitian) (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) + (hδ : ‖gaussianRelativePerturbation q (gaussianRenyiTau r) V‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹) : + ∃ Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass Θ ∧ + (multiModeThermalDensity q ^ (gaussianRenyiTau r / 2)) * Θ * + (multiModeThermalDensity q ^ (gaussianRenyiTau r / 2)) = A ∧ + 0 < positiveTrace (Θ ^ r) ∧ positiveTrace (Θ ^ r) < ⊤ ∧ + Real.log (positiveTrace (Θ ^ r)).toReal ≤ + 2 * r * max 2 (gaussianRenyiTau r)⁻¹ * + matrixTraceNorm (gaussianRelativePerturbation q (gaussianRenyiTau r) V) := by + have hτ₀ := gaussianRenyiTau_pos hr + have hτ₁ := gaussianRenyiTau_lt_one hr + have hsmall : ‖gaussianRelativePerturbation q (gaussianRenyiTau r) V‖ ≤ + (4 * thermalPerturbationConstant (gaussianRenyiTau r))⁻¹ := by + rwa [thermalPerturbationConstant_eq_max hτ₀] + obtain ⟨Θ, hΘtc, hΘ, _⟩ := gaussian_sandwich_of_small_relative_norm + hq₀ hq₁ hτ₀ hτ₁ hA hG hV hC hsmall + have hp := (gaussian_thermal_factorization_power_log hq₀ hq₁ hτ₀ hτ₁ hr + (mul_one_sub_gaussianRenyiTau hr) hA hG hV hC hQ hsmall hΘ).1 + refine ⟨Θ, hΘtc, hΘ, hp.1, hp.2, ?_⟩ + have hb := gaussian_thermal_factorization_renyi_bound hq₀ hq₁ hτ₀ hτ₁ hr + (mul_one_sub_gaussianRenyiTau hr) hA hG hV hC hQ hsmall hΘ + rwa [thermalPerturbationConstant_eq_max hτ₀] at hb + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianUncertaintyNecessity.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianUncertaintyNecessity.lean new file mode 100644 index 0000000000..ab4c273acd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianUncertaintyNecessity.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianWeylGram +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumNondegenerateCovariance + +/-! +# Actual Gaussian characteristic forces quantum uncertainty + +The positive finite density Gram of Weyl differences is divided by 2s. +Its exact exponential quotient converges entrywise to V+iΩ/2 in raw +real displacement coordinates. Closedness of the genuine matrix positive +cone proves uncertainty. The actual orthogonal Ω rotation then recovers +the physical covariance convention. No quadrature-domain assumptions or +positive-kernel surrogate are used. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Filter Set +open scoped Topology ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} + +theorem real_coordinate_basis_bilinear + (M : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (i j : Fin m × Fin 2) : + (Pi.single i 1 : Fin m × Fin 2 → ℝ) ⬝ᵥ (M *ᵥ Pi.single j 1) = M i j := by + simp [dotProduct, Matrix.mulVec, Pi.single_apply] + +theorem gaussianWeylCrossExponent_basis_limit + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.IsHermitian) + (i j : Fin m × Fin 2) : + (1 / 2 : ℝ) • (gaussianWeylCrossExponent V (Pi.single i 1) (Pi.single j 1) - + ((-(V i i) : ℝ) : ℂ) - ((-(V j j) : ℝ) : ℂ)) = + quantumCovariance V modeSymplecticForm i j := by + have hs : V j i = V i j := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial, Matrix.transpose_apply] using + congrFun (congrFun hV.eq i) j + simp only [gaussianWeylCrossExponent, Matrix.mulVec_sub, sub_dotProduct, + dotProduct_sub, real_coordinate_basis_bilinear, hs, quantumCovariance, + Matrix.add_apply, Matrix.smul_apply, complexifyMatrix_apply, + Complex.real_smul, smul_eq_mul] + push_cast + ring + +/-- Necessity for the actual raw displacement characteristic. The matrix +V must be symmetric because its quadratic form alone cannot distinguish +an added antisymmetric part. -/ +theorem gaussianDisplacement_quantum_posSemidef + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.IsHermitian) + (hG : HasGaussianDisplacementCharacteristic A V) : + (quantumCovariance V modeSymplecticForm).PosSemidef := by + let M : ℝ → Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ := fun s => + (1 / 2 : ℝ) • (s⁻¹ • densityExpectationGram (multiModeNumberBasis m) A + (fun i => gaussianWeylDifference s (Pi.single i 1))) + have hpos : ∀ᶠ s in 𝓝[>] (0 : ℝ), (M s).PosSemidef := by + filter_upwards [self_mem_nhdsWithin] with s hs + exact ((densityExpectationGram_posSemidef (multiModeNumberBasis m) hA + (fun i => gaussianWeylDifference s (Pi.single i 1))).smul + (inv_nonneg.mpr (le_of_lt hs))).smul (by norm_num : (0 : ℝ) ≤ 1 / 2) + have hlim : Tendsto M (𝓝[>] (0 : ℝ)) (𝓝 (quantumCovariance V modeSymplecticForm)) := by + apply tendsto_pi_nhds.mpr + intro i + apply tendsto_pi_nhds.mpr + intro j + let a := gaussianWeylCrossExponent V (Pi.single i 1) (Pi.single j 1) + let b : ℂ := ((-(V i i) : ℝ) : ℂ) + let c : ℂ := ((-(V j j) : ℝ) : ℂ) + have he : (1 / 2 : ℝ) • (a - b - c) = quantumCovariance V modeSymplecticForm i j := + gaussianWeylCrossExponent_basis_limit hV i j + have h := (tendsto_gaussianGramDifference_quotient a b c).const_smul (1 / 2 : ℝ) + rw [he] at h + apply h.congr' + filter_upwards [self_mem_nhdsWithin] with s hs + simp only [M, Matrix.smul_apply, densityExpectationGram, + gaussianWeylDifference_expectation hA hG (le_of_lt hs), real_coordinate_basis_bilinear] + rfl + exact isClosed_setOfPred_posSemidef.mem_of_tendsto hlim hpos + +/-- Literal physical uncertainty is necessary for an actual positive +Gaussian density, with the canonical displacement rotation retained. -/ +theorem gaussianPhysical_quantum_posSemidef + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.IsHermitian) + (hG : HasGaussianPhysicalCharacteristic A V) : + (quantumCovariance V modeSymplecticForm).PosSemidef := by + have hB : (physicalDisplacementCovariance V).IsHermitian := by + simpa only [physicalDisplacementCovariance, Matrix.conjTranspose_eq_transpose_of_trivial] using + Matrix.isHermitian_conjTranspose_mul_mul modeSymplecticForm hV + have h := gaussianDisplacement_quantum_posSemidef hA hB hG + have hh := h.mul_mul_conjTranspose_same (complexifyMatrix (modeSymplecticForm (ι := Fin m))) + rw [← quantumCovariance_congruence] at hh + have hcov : modeSymplecticForm * physicalDisplacementCovariance V * modeSymplecticFormᵀ = V := by + unfold physicalDisplacementCovariance + calc + _ = (modeSymplecticForm * modeSymplecticFormᵀ) * V * + (modeSymplecticForm * modeSymplecticFormᵀ) := by noncomm_ring + _ = V := by rw [modeSymplecticForm_mul_transpose, Matrix.one_mul, Matrix.mul_one] + have hform : (modeSymplecticForm (ι := Fin m)) * modeSymplecticForm * modeSymplecticFormᵀ = + modeSymplecticForm := by rw [Matrix.mul_assoc, modeSymplecticForm_mul_transpose, + Matrix.mul_one] + rwa [hcov, hform] at hh + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianUnitaryTransport.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianUnitaryTransport.lean new file mode 100644 index 0000000000..50eced738f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianUnitaryTransport.lean @@ -0,0 +1,125 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixWeylLabels +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryDensityExpectation +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalDensityCharacteristic +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCovarianceParameters + +/-! +# Actual Gaussian densities transported in the fixed oscillator representation + +Pulling an actual density back by the constructed symplectic unitary +pulls its displacement covariance back by the literal real label matrix. +The direction is explicit: label S gives covariance Sᵀ V S for U_S† A U_S. +Thermal product densities then realize every Williamson congruence on +the original canonical Weyl family, not a separately relabeled family. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {m : ℕ} + +/-- Pull back a finite matrix density along the chosen orthonormal coordinate map. -/ +def matrixDensityPullback + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : Sᵀ * modeSymplecticForm * S = modeSymplecticForm) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + (symplecticWeylImplementer (matrixWeylLabelMap_preservesWeylForm S hS)).symm.conjStarAlgEquiv A + +theorem matrixDensityPullback_isPositiveTraceClass + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : Sᵀ * modeSymplecticForm * S = modeSymplecticForm) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) : IsPositiveTraceClass (matrixDensityPullback S hS A) := + IsPositiveTraceClass.conjStarAlgEquiv _ hA + +theorem matrixDensityPullback_isFaithfulDensity + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : Sᵀ * modeSymplecticForm * S = modeSymplecticForm) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsFaithfulDensity A) : IsFaithfulDensity (matrixDensityPullback S hS A) := + IsFaithfulDensity.conjStarAlgEquiv _ hA + +theorem densityExpectation_matrixDensityPullback_weyl + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : Sᵀ * modeSymplecticForm * S = modeSymplecticForm) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (z : MultiModePhaseSpace m) : + densityExpectation (multiModeNumberBasis m) (matrixDensityPullback S hS A) + (multiOscillatorWeyl z) = + densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl + (matrixWeylLabelMap S z)) := by + rw [matrixDensityPullback, densityExpectation_symm_conjStarAlgEquiv_left _ + (multiModeNumberBasis m) (multiModeNumberBasis m) hA, + symplecticWeylImplementer_conj_weyl] + +theorem matrixDensityPullback_hasGaussianDisplacementCharacteristic + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : Sᵀ * modeSymplecticForm * S = modeSymplecticForm) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianDisplacementCharacteristic A V) : + HasGaussianDisplacementCharacteristic (matrixDensityPullback S hS A) (Sᵀ * V * S) := by + intro z + rw [densityExpectation_matrixDensityPullback_weyl S hS hA] + have hg := hG (fun j => matrixWeylLabelMap S (WithLp.toLp 2 z) j) + change densityExpectation (multiModeNumberBasis m) A + (multiOscillatorWeyl (matrixWeylLabelMap S (WithLp.toLp 2 z))) = + Complex.exp ((-(complexRealLinearEquiv m (matrixWeylLabelMap S (WithLp.toLp 2 z)) ⬝ᵥ + (V *ᵥ complexRealLinearEquiv m (matrixWeylLabelMap S (WithLp.toLp 2 z)))) : ℝ) : ℂ) at hg + rw [hg] + simp only [complexRealLinearEquiv_matrixWeylLabelMap] + have hquad := dotProduct_congruence Sᵀ V + (complexRealLinearEquiv m (WithLp.toLp 2 z)) (complexRealLinearEquiv m (WithLp.toLp 2 z)) + rw [Matrix.transpose_transpose] at hquad + rw [hquad] + rfl + +theorem covarianceProductDensity_isPositiveTraceClass {ν : Fin m → ℝ} + (hν : ∀ j, 1 / 2 ≤ ν j) : IsPositiveTraceClass (covarianceProductDensity ν) := by + refine ⟨covarianceProductDensity_nonneg hν, ?_⟩ + rw [positiveTrace_covarianceProductDensity hν] + exact ENNReal.one_lt_top + +theorem covarianceProductDensity_hasGaussianDisplacementCharacteristic {ν : Fin m → ℝ} + (hν : ∀ j, 1 / 2 ≤ ν j) : + HasGaussianDisplacementCharacteristic (covarianceProductDensity ν) (modeDiagonal ν) := by + have h := multiModeThermalDensity_hasGaussianPhysicalCharacteristic + (fun j => covarianceThermalParameter_nonneg (hν j)) + (fun j => covarianceThermalParameter_lt_one (hν j)) + change HasGaussianDisplacementCharacteristic (covarianceProductDensity ν) + (physicalDisplacementCovariance + (modeDiagonal (fun j => thermalQuadratureVariance (covarianceThermalParameter (ν j))))) at h + simpa only [physicalDisplacementCovariance_modeDiagonal, + thermalQuadratureVariance_covarianceParameter (hν _)] using h + +/-- Genuine fixed-representation realization of a Williamson congruence, +by the constructed unitary acting on the actual full oscillator density. -/ +theorem williamsonDensity_hasGaussianDisplacementCharacteristic + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) : + HasGaussianDisplacementCharacteristic + (matrixDensityPullback Sᵀ (by simpa only [Matrix.transpose_transpose] using hS) + (covarianceProductDensity ν)) (S * modeDiagonal ν * Sᵀ) := by + simpa only [Matrix.transpose_transpose] using + matrixDensityPullback_hasGaussianDisplacementCharacteristic Sᵀ + (by simpa only [Matrix.transpose_transpose] using hS) + (covarianceProductDensity_isPositiveTraceClass hν) + (covarianceProductDensity_hasGaussianDisplacementCharacteristic hν) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianWeylGram.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianWeylGram.lean new file mode 100644 index 0000000000..ef9a78406c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianWeylGram.lean @@ -0,0 +1,99 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.RealCoordinateWeyl +public import LeanPool.VacuumBellSeparation.Gaussian.DensityExpectationGram +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianDifferenceQuotient + +/-! +# Actual Gaussian finite differences of Weyl operators + +At positive time s the displacement amplitude is sqrt(s). The actual +positive density Gram of W(sqrt(s)x)-I has the exact three-exponential +formula. Thus its divided limit can establish uncertainty without using +unbounded position/momentum operators or postulating a positive kernel. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexConjugate + +variable {m : ℕ} + +/-- Gaussian Weyl difference given by `realCoordinateWeyl (Real.sqrt s • x) - 1`. -/ +def gaussianWeylDifference (s : ℝ) (x : Fin m × Fin 2 → ℝ) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + realCoordinateWeyl (Real.sqrt s • x) - 1 + +/-- Gaussian Weyl cross exponent. -/ +def gaussianWeylCrossExponent + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (x y : Fin m × Fin 2 → ℝ) : ℂ := + ((-((y - x) ⬝ᵥ (V *ᵥ (y - x))) : ℝ) : ℂ) + + Complex.I * ((x ⬝ᵥ (modeSymplecticForm *ᵥ y) : ℝ) : ℂ) + +theorem gaussianWeylDifference_expectation + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianDisplacementCharacteristic A V) + {s : ℝ} (hs : 0 ≤ s) (x y : Fin m × Fin 2 → ℝ) : + densityExpectation (multiModeNumberBasis m) A + (star (gaussianWeylDifference s x) * gaussianWeylDifference s y) = + gaussianGramDifference (gaussianWeylCrossExponent V x y) + ((-(x ⬝ᵥ (V *ᵥ x)) : ℝ) : ℂ) ((-(y ⬝ᵥ (V *ᵥ y)) : ℝ) : ℂ) s := by + let φ := densityExpectationCLM (multiModeNumberBasis m) hA + let t := Real.sqrt s + have htt : t * t = s := Real.mul_self_sqrt hs + have hφ (v : Fin m × Fin 2 → ℝ) : + φ (realCoordinateWeyl v) = Complex.exp ((-(v ⬝ᵥ (V *ᵥ v)) : ℝ) : ℂ) := + gaussianDisplacement_realCoordinateWeyl hG v + have hφ₁ : φ 1 = 1 := by + change densityExpectation (multiModeNumberBasis m) A 1 = 1 + rw [densityExpectation_one _ hA, gaussianDisplacement_positiveTrace_eq_one hA hG, + ENNReal.toReal_one, Complex.ofReal_one] + have hplus : -(t • x) + t • y = t • (y - x) := by module + have hphase : (-(t • x)) ⬝ᵥ (modeSymplecticForm *ᵥ (t • y)) = + -s * (x ⬝ᵥ (modeSymplecticForm *ᵥ y)) := by + rw [← neg_smul, real_bilinear_smul, neg_mul, htt] + have hquad (v : Fin m × Fin 2 → ℝ) : + (t • v) ⬝ᵥ (V *ᵥ (t • v)) = s * (v ⬝ᵥ (V *ᵥ v)) := by + rw [real_bilinear_smul, htt] + have hfirst : φ (realCoordinateWeyl (-(t • x)) * realCoordinateWeyl (t • y)) = + Complex.exp ((s : ℂ) * gaussianWeylCrossExponent V x y) := by + rw [realCoordinateWeyl_mul, map_smul, hφ, hplus, hquad, hphase, + smul_eq_mul, ← Complex.exp_add] + congr 1 + unfold gaussianWeylCrossExponent + push_cast + ring + have hx : φ (realCoordinateWeyl (-(t • x))) = + Complex.exp ((s : ℂ) * ((-(x ⬝ᵥ (V *ᵥ x)) : ℝ) : ℂ)) := by + rw [hφ] + simp only [Matrix.mulVec_neg, neg_dotProduct, dotProduct_neg, neg_neg, hquad] + congr 1 + push_cast + ring + have hy : φ (realCoordinateWeyl (t • y)) = + Complex.exp ((s : ℂ) * ((-(y ⬝ᵥ (V *ᵥ y)) : ℝ) : ℂ)) := by + rw [hφ, hquad] + congr 1 + push_cast + ring + change φ (star (realCoordinateWeyl (t • x) - 1) * (realCoordinateWeyl (t • y) - 1)) = _ + rw [star_sub, star_one, realCoordinateWeyl_star, sub_mul, mul_sub, one_mul, + mul_one, map_sub, map_sub, map_sub, hfirst, hx, hy, hφ₁] + unfold gaussianGramDifference + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GaussianWilliamsonSandwich.lean b/LeanPool/VacuumBellSeparation/Gaussian/GaussianWilliamsonSandwich.lean new file mode 100644 index 0000000000..8a30193446 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GaussianWilliamsonSandwich.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WilliamsonSandwichCovarianceDefs +public import LeanPool.VacuumBellSeparation.Gaussian.PhysicalGaussianTransport +public import LeanPool.VacuumBellSeparation.Gaussian.UnitarySandwich +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianAppendixA + +/-! +# Actual Appendix A sandwiches for a general faithful Gaussian reference + +The reference is the constructed physical Williamson density on the +original oscillator space. A common actual unitary transports both input +and reference, so noncommuting covariance matrices are retained. The +strict gap and determinant are expressed in the manuscript's Williamson +coordinates; the normalized output covariance is transported back. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} + +theorem physicalWilliamsonDensity_isFaithfulDensity + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 < ν j) : + IsFaithfulDensity (physicalWilliamsonDensity S hS ν) := + matrixDensityPullback_isFaithfulDensity _ _ (covarianceProductDensity_isFaithfulDensity hν) + +theorem gaussianPhysical_eq_physicalDensityPullback + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {A B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) (hB : IsPositiveTraceClass B) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hGA : HasGaussianPhysicalCharacteristic A (S * V * Sᵀ)) + (hGB : HasGaussianPhysicalCharacteristic B V) : + A = physicalDensityPullback S hS B := + gaussianPhysical_density_unique hA (physicalDensityPullback_isPositiveTraceClass S hS hB) + hGA (physicalDensityPullback_hasGaussianPhysicalCharacteristic S hS hB hGB) + +theorem gaussian_physical_pullback_sandwich_iff + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 < ν j) {τ : ℝ} (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) : + HasPositiveTraceClassSandwich (physicalWilliamsonDensity S hS ν) + (physicalDensityPullback S hS A) τ ↔ + (modeDiagonal (fun j => poweredModeVariance τ (ν j)) - V).PosDef := by + rw [← physicalDensityPullback_covarianceProductDensity S hS (fun j => (hν j).le)] + change HasPositiveTraceClassSandwich + ((physicalCongruenceUnitary S hS).symm.conjStarAlgEquiv (covarianceProductDensity ν)) + ((physicalCongruenceUnitary S hS).symm.conjStarAlgEquiv A) τ ↔ _ + rw [hasPositiveTraceClassSandwich_conjStarAlgEquiv_iff _ + (covarianceProductDensity_nonneg (fun j => (hν j).le)) hτ.le] + exact exists_gaussian_positiveTraceClass_sandwich_iff + (fun j => covarianceThermalParameter_pos (hν j)) + (fun j => covarianceThermalParameter_lt_one (hν j).le) hτ hA hG hC + +/-- The source formulas in Williamson coordinates, realized by actual +operators and then transported to the original canonical Weyl family. -/ +theorem gaussian_physical_pullback_sandwich_appendixA + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 < ν j) {τ : ℝ} (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => poweredModeVariance τ (ν j)) - V).PosDef) : + ∃ Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass Θ ∧ + (physicalWilliamsonDensity S hS ν ^ (τ / 2)) * Θ * + (physicalWilliamsonDensity S hS ν ^ (τ / 2)) = physicalDensityPullback S hS A ∧ + positiveTrace (normalizedPositiveDensity Θ) = 1 ∧ + HasGaussianPhysicalCharacteristic (normalizedPositiveDensity Θ) + (S * williamsonSandwichCovariance (fun j => covarianceThermalParameter (ν j)) τ V * Sᵀ) ∧ + (positiveTrace Θ).toReal = + (positiveTrace (physicalWilliamsonDensity S hS ν ^ (1 - τ))).toReal / + Real.sqrt (1 - gaussianRelativePerturbation + (fun j => covarianceThermalParameter (ν j)) τ V).det := by + let q : Fin m → ℝ := fun j => covarianceThermalParameter (ν j) + have hq₀ : ∀ j, 0 < q j := fun j => covarianceThermalParameter_pos (hν j) + have hq₁ : ∀ j, q j < 1 := fun j => covarianceThermalParameter_lt_one (hν j).le + obtain ⟨Θ₀, htc, hf, hn, hg, ht⟩ := + gaussian_sandwich_appendixA hq₀ hq₁ hτ₀ hτ₁ hA hG hC hgap + let e := (physicalCongruenceUnitary S hS).symm + have href : physicalWilliamsonDensity S hS ν = e.conjStarAlgEquiv (multiModeThermalDensity q) := + (physicalDensityPullback_covarianceProductDensity S hS (fun j => (hν j).le)).symm + have hσ : 0 ≤ multiModeThermalDensity q := multiModeThermalDensity_nonneg (fun j => + (hq₀ j).le) hq₁ + have hnorm : normalizedPositiveDensity (e.conjStarAlgEquiv Θ₀) = + e.conjStarAlgEquiv (normalizedPositiveDensity Θ₀) := + normalizedPositiveDensity_conjStarAlgEquiv e htc.1 + have hntc := normalizedPositiveDensity_isPositiveTraceClass (multiModeNumberBasis m) htc + refine ⟨e.conjStarAlgEquiv Θ₀, IsPositiveTraceClass.conjStarAlgEquiv e htc, ?_, ?_, ?_, ?_⟩ + · rw [href] + exact (conjStarAlgEquiv_sandwich + (E := MultiModeOscillatorSpace m) (F := MultiModeOscillatorSpace m) + e (σ := multiModeThermalDensity q) hσ (τ := τ) hτ₀.le Θ₀).symm.trans + (congrArg e.conjStarAlgEquiv hf) + · rw [hnorm, positiveTrace_conjStarAlgEquiv e hntc.1, hn] + · rw [hnorm] + exact physicalDensityPullback_hasGaussianPhysicalCharacteristic S hS hntc hg + · rw [positiveTrace_conjStarAlgEquiv e htc.1, href] + have hp : positiveTrace ((e.conjStarAlgEquiv (multiModeThermalDensity q)) ^ (1 - τ)) = + positiveTrace (multiModeThermalDensity q ^ (1 - τ)) := + positiveTrace_conjStarAlgEquiv_rpow + (E := MultiModeOscillatorSpace m) (F := MultiModeOscillatorSpace m) + e (A := multiModeThermalDensity q) hσ (τ := 1 - τ) (sub_nonneg.mpr hτ₁.le) + rw [hp] + exact ht + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/GeometricInterpolationMajorant.lean b/LeanPool/VacuumBellSeparation/Gaussian/GeometricInterpolationMajorant.lean new file mode 100644 index 0000000000..b988710458 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/GeometricInterpolationMajorant.lean @@ -0,0 +1,70 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Constants.Series +public import Mathlib.Analysis.SpecialFunctions.Pow.NNReal +public import Mathlib.Topology.Algebra.InfiniteSum.ENNReal + +/-! # The actual cubic geometric sum after interpolation -/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian +open scoped ENNReal + +theorem cubic_geometric_interpolation_term {A B q t θ : ℝ} + (hA : 0 ≤ A) (hB : 0 ≤ B) (hq : 0 ≤ q) (ht : 0 ≤ t) + (hθ : θ ∈ Set.Icc (0 : ℝ) 1) + (hratio : q ^ (1 - θ) * t ^ θ ≤ 1 / 2) (n : ℕ) : + (A * ((n : ℝ) + 1) ^ 3 * q ^ n) ^ (1 - θ) * (B * t ^ n) ^ θ ≤ + (A ^ (1 - θ) * B ^ θ) * (((n : ℝ) + 1) ^ 3 * (1 / 2 : ℝ) ^ n) := by + have hn : 1 ≤ ((n : ℝ) + 1) ^ 3 := one_le_pow₀ (le_add_of_nonneg_left (Nat.cast_nonneg n)) + have hp : (((n : ℝ) + 1) ^ 3) ^ (1 - θ) ≤ ((n : ℝ) + 1) ^ 3 := by + simpa only [Real.rpow_one] using + Real.rpow_le_rpow_of_exponent_le hn (show 1 - θ ≤ 1 by linarith [hθ.1]) + have hratio₀ : 0 ≤ q ^ (1 - θ) * t ^ θ := + mul_nonneg (Real.rpow_nonneg hq _) (Real.rpow_nonneg ht _) + calc + _ = (A ^ (1 - θ) * B ^ θ) * (((n : ℝ) + 1) ^ 3) ^ (1 - θ) * + (q ^ (1 - θ) * t ^ θ) ^ n := by + rw [Real.mul_rpow (mul_nonneg hA (by positivity)) (pow_nonneg hq _), + Real.mul_rpow hA (by positivity), Real.mul_rpow hB (pow_nonneg ht _), + ← Real.rpow_pow_comm hq, ← Real.rpow_pow_comm ht, mul_pow] + ring + _ ≤ (A ^ (1 - θ) * B ^ θ) * ((n : ℝ) + 1) ^ 3 * (1 / 2 : ℝ) ^ n := by + apply mul_le_mul + (mul_le_mul_of_nonneg_left hp (mul_nonneg (Real.rpow_nonneg hA _) (Real.rpow_nonneg hB _))) + (pow_le_pow_left₀ hratio₀ hratio n) (pow_nonneg hratio₀ _) + (by positivity) + _ = _ := by ring + +theorem tsum_cubic_geometric_interpolation_le {A B q t θ : ℝ} + (hA : 0 ≤ A) (hB : 0 ≤ B) (hq : 0 ≤ q) (ht : 0 ≤ t) + (hθ : θ ∈ Set.Icc (0 : ℝ) 1) + (hratio : q ^ (1 - θ) * t ^ θ ≤ 1 / 2) : + (∑' n : ℕ, + ENNReal.ofReal (A * ((n : ℝ) + 1) ^ 3 * q ^ n) ^ (1 - θ) * + ENNReal.ofReal (B * t ^ n) ^ θ) ≤ + ENNReal.ofReal (52 * A ^ (1 - θ) * B ^ θ) := by + let C := A ^ (1 - θ) * B ^ θ + have hC : 0 ≤ C := mul_nonneg (Real.rpow_nonneg hA _) (Real.rpow_nonneg hB _) + have hs := VacuumBellSeparation.hasSum_cube_mul_half_pow.mul_left C + calc + _ ≤ ∑' n : ℕ, ENNReal.ofReal (C * (((n : ℝ) + 1) ^ 3 * (1 / 2 : ℝ) ^ n)) := by + apply tsum_le_tsum + intro n + dsimp only + rw [ENNReal.ofReal_rpow_of_nonneg (by positivity) (sub_nonneg.mpr hθ.2), + ENNReal.ofReal_rpow_of_nonneg (by positivity) hθ.1, + ← ENNReal.ofReal_mul (Real.rpow_nonneg (by positivity) _)] + exact ENNReal.ofReal_le_ofReal (cubic_geometric_interpolation_term hA hB hq ht hθ hratio n) + _ = ENNReal.ofReal (C * 52) := by + rw [← ENNReal.ofReal_tsum_of_nonneg (fun n => by positivity) hs.summable, hs.tsum_eq] + _ = _ := by congr 1; dsimp only [C]; ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HamiltonianSpectralDerivative.lean b/LeanPool/VacuumBellSeparation/Gaussian/HamiltonianSpectralDerivative.lean new file mode 100644 index 0000000000..3c64c13f87 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HamiltonianSpectralDerivative.lean @@ -0,0 +1,136 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticHamiltonian + +/-! +# Differentiation into the genuine Hermitian matrix space + +The derivative of i sqrt(V) Ω sqrt(V) is itself Hermitian. Projecting the +already proved ambient derivative therefore gives its derivative in the +actual self-adjoint subspace, where the spectral trace derivative applies. +The scalar spectral remainder is explicit in the generic composition +theorem; this file does not assume a Gaussian purity differential. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Filter +open scoped MatrixOrder Matrix.Norms.L2Operator Topology + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem symplecticHamiltonianDerivative_isHermitian + {Ω : Matrix ι ι ℝ} (hΩ : Ωᵀ = -Ω) + (V X : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) : + (symplecticHamiltonianDerivative Ω V hV X).IsHermitian := by + let R := CFC.sqrt (V : Matrix ι ι ℝ) + let Y : RealSymmetricMatrixSpace ι := + (positiveSylvesterSelfAdjointContinuousEquiv (matrix_sqrt_posDef hV)).symm X + have hR : Rᵀ = R := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hV).isHermitian.eq + have hY : (Y : Matrix ι ι ℝ)ᵀ = Y := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (realSymmetricMatrix_isHermitian Y).eq + have hK : ((Y : Matrix ι ι ℝ) * Ω * R + R * Ω * (Y : Matrix ι ι ℝ))ᵀ = + -((Y : Matrix ι ι ℝ) * Ω * R + R * Ω * (Y : Matrix ι ι ℝ)) := by + simp only [Matrix.transpose_add, Matrix.transpose_mul, hR, hY, hΩ, + Matrix.neg_mul, Matrix.mul_neg] + noncomm_ring + change (Complex.I • complexifyMatrix ((Y : Matrix ι ι ℝ) * Ω * R + R * Ω * + (Y : Matrix ι ι ℝ)))ᴴ = _ + rw [Matrix.conjTranspose_smul, ← complexifyMatrix_transpose, hK, complexifyMatrix_neg] + simp [R, Y] + +/-- The same self-adjoint projection, with the genuine real submodule as codomain. -/ +def hermitianMatrixPartL : Matrix ι ι ℂ →L[ℝ] HermitianMatrixSpace ι := + LinearMap.toContinuousLinearMap + { toFun := fun A => ⟨selfAdjointPart ℝ A, (selfAdjointPart ℝ A).property⟩ + map_add' := by + intro A B + apply Subtype.ext + exact congrArg (fun X : selfAdjoint (Matrix ι ι ℂ) => (X : Matrix ι ι ℂ)) + (map_add (selfAdjointPart ℝ (A := Matrix ι ι ℂ)) A B) + map_smul' := by + intro c A + apply Subtype.ext + exact congrArg (fun X : selfAdjoint (Matrix ι ι ℂ) => (X : Matrix ι ι ℂ)) + (map_smul (selfAdjointPart ℝ (A := Matrix ι ι ℂ)) c A) } + +/-- Continuous linear map for the symmetric Hamiltonian derivative, of type +`RealSymmetricMatrixSpace ι →L[ℝ] HermitianMatrixSpace ι`. -/ +def symmetricHamiltonianDerivative (Ω : Matrix ι ι ℝ) + (V : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) : + RealSymmetricMatrixSpace ι →L[ℝ] HermitianMatrixSpace ι := + (hermitianMatrixPartL (ι := ι)).comp (symplecticHamiltonianDerivative Ω V hV) + +theorem symmetricHamiltonianDerivative_coe + {Ω : Matrix ι ι ℝ} (hΩ : Ωᵀ = -Ω) + (V X : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) : + ((symmetricHamiltonianDerivative Ω V hV X : HermitianMatrixSpace ι) : Matrix ι ι ℂ) = + symplecticHamiltonianDerivative Ω V hV X := by + exact (symplecticHamiltonianDerivative_isHermitian hΩ V X + hV).isSelfAdjoint.coe_selfAdjointPart_apply ℝ + +theorem hasFDerivAt_symmetricHamiltonian + {Ω : Matrix ι ι ℝ} (hΩ : Ωᵀ = -Ω) + (V : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) : + HasFDerivAt (symmetricHamiltonian Ω hΩ) + (symmetricHamiltonianDerivative Ω V hV) V := by + have h := (hermitianMatrixPartL (ι := ι)).hasFDerivAt.comp V + (hasFDerivAt_symplecticHamiltonian Ω V hV) + convert h using 1 + · funext X + apply Subtype.ext + exact ((symplecticHamiltonian_isHermitian hΩ X).isSelfAdjoint.coe_selfAdjointPart_apply ℝ).symm + · rfl + +/-- Continuous linear map for the hamiltonian spectral derivative, of type +`RealSymmetricMatrixSpace ι →L[ℝ] ℝ`. -/ +def hamiltonianSpectralDerivative (Ω : Matrix ι ι ℝ) (hΩ : Ωᵀ = -Ω) + (V : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) (d : ℝ → ℝ) : + RealSymmetricMatrixSpace ι →L[ℝ] ℝ := + (hermitianTraceDerivative (symmetricHamiltonian Ω hΩ V) d).comp + (symmetricHamiltonianDerivative Ω V hV) + +theorem hamiltonianSpectralDerivative_apply + (Ω : Matrix ι ι ℝ) (hΩ : Ωᵀ = -Ω) + (V X : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) (d : ℝ → ℝ) : + hamiltonianSpectralDerivative Ω hΩ V hV d X = + (cfc d (symplecticHamiltonian Ω V) * + symplecticHamiltonianDerivative Ω V hV X).trace.re := by + change (cfc d (symplecticHamiltonian Ω V) * + ((symmetricHamiltonianDerivative Ω V hV X : HermitianMatrixSpace ι) : Matrix ι ι + ℂ)).trace.re = _ + rw [symmetricHamiltonianDerivative_coe hΩ V X hV] + +theorem hasFDerivAt_hamiltonianSpectralTrace_of_scalar_remainder + (Ω : Matrix ι ι ℝ) (hΩ : Ωᵀ = -Ω) + (V : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) + (f d : ℝ → ℝ) {C : ℝ} (hC : 0 ≤ C) + (hrem : ∀ᶠ B : HermitianMatrixSpace ι in 𝓝 (symmetricHamiltonian Ω hΩ V), ∀ i j, + |f ((hermitianMatrix_isHermitian B).eigenvalues j) - + f ((hermitianMatrix_isHermitian (symmetricHamiltonian Ω hΩ V)).eigenvalues i) - + d ((hermitianMatrix_isHermitian (symmetricHamiltonian Ω hΩ V)).eigenvalues i) * + ((hermitianMatrix_isHermitian B).eigenvalues j - + (hermitianMatrix_isHermitian (symmetricHamiltonian Ω hΩ V)).eigenvalues i)| ≤ + C * ((hermitianMatrix_isHermitian B).eigenvalues j - + (hermitianMatrix_isHermitian (symmetricHamiltonian Ω hΩ V)).eigenvalues i) ^ 2) : + HasFDerivAt (fun X : RealSymmetricMatrixSpace ι => + (cfc f (symplecticHamiltonian Ω X)).trace.re) + (hamiltonianSpectralDerivative Ω hΩ V hV d) V := by + exact (hasFDerivAt_hermitianSpectralTrace_of_scalar_remainder + (symmetricHamiltonian Ω hΩ V) f d hC hrem).comp V + (hasFDerivAt_symmetricHamiltonian hΩ V hV) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HermitianTraceDerivative.lean b/LeanPool/VacuumBellSeparation/Gaussian/HermitianTraceDerivative.lean new file mode 100644 index 0000000000..67d07abff3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HermitianTraceDerivative.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HermitianTraceTaylorBound +public import Mathlib.Analysis.Calculus.FDeriv.Basic +public import Mathlib.Analysis.Asymptotics.Lemmas +public import Mathlib.Analysis.Normed.Module.FiniteDimension +public import Mathlib.Topology.Algebra.Module.Star + +/-! +# Actual Fréchet differentiation of finite Hermitian spectral traces + +On the genuine real self-adjoint subspace, a local scalar second-order +remainder gives the actual Fréchet derivative H ↦ Re Tr(f'(A) H). +The hypothesis is an explicit scalar bound at spectral pairs, not an +assumption that eigenbranches or the matrix trace are differentiable. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Filter Asymptotics +open scoped Matrix.Norms.L2Operator Topology + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Hermitian matrix space with underlying type `selfAdjoint.submodule ℝ (Matrix ι ι ℂ)`. -/ +abbrev HermitianMatrixSpace (ι : Type*) := + selfAdjoint.submodule ℝ (Matrix ι ι ℂ) + +omit [DecidableEq ι] [Fintype ι] in +theorem hermitianMatrix_isHermitian (A : HermitianMatrixSpace ι) : + (A : Matrix ι ι ℂ).IsHermitian := A.property + +/-- Real part of the trace of the continuous functional calculus on a Hermitian matrix. -/ +def hermitianSpectralTrace (f : ℝ → ℝ) (A : HermitianMatrixSpace ι) : ℝ := + (cfc f (A : Matrix ι ι ℂ)).trace.re + +/-- The continuous linear directional derivative of a Hermitian spectral trace. -/ +def hermitianTraceDerivative (A : HermitianMatrixSpace ι) (d : ℝ → ℝ) : + HermitianMatrixSpace ι →L[ℝ] ℝ := + LinearMap.toContinuousLinearMap + { toFun := fun H => (cfc d (A : Matrix ι ι ℂ) * (H : Matrix ι ι ℂ)).trace.re + map_add' := by + intro H K + change (cfc d (A : Matrix ι ι ℂ) * ((H : Matrix ι ι ℂ) + K)).trace.re = _ + simp only [Matrix.mul_add, Matrix.trace_add, Complex.add_re] + map_smul' := by + intro c H + change (cfc d (A : Matrix ι ι ℂ) * (c • (H : Matrix ι ι ℂ))).trace.re = _ + simp only [Matrix.mul_smul, Matrix.trace_smul, Complex.smul_re, smul_eq_mul, + RingHom.id_apply] } + +@[simp] theorem hermitianTraceDerivative_apply + (A H : HermitianMatrixSpace ι) (d : ℝ → ℝ) : + hermitianTraceDerivative A d H = + (cfc d (A : Matrix ι ι ℂ) * (H : Matrix ι ι ℂ)).trace.re := rfl + +/-- A proved scalar Taylor bound near the actual finite spectra yields +the true derivative of the actual continuous-functional-calculus trace. -/ +theorem hasFDerivAt_hermitianSpectralTrace_of_scalar_remainder + (A : HermitianMatrixSpace ι) (f d : ℝ → ℝ) {C : ℝ} (hC : 0 ≤ C) + (hrem : ∀ᶠ B : HermitianMatrixSpace ι in 𝓝 A, ∀ i j, + |f ((hermitianMatrix_isHermitian B).eigenvalues j) - + f ((hermitianMatrix_isHermitian A).eigenvalues i) - + d ((hermitianMatrix_isHermitian A).eigenvalues i) * + ((hermitianMatrix_isHermitian B).eigenvalues j - + (hermitianMatrix_isHermitian A).eigenvalues i)| ≤ + C * ((hermitianMatrix_isHermitian B).eigenvalues j - + (hermitianMatrix_isHermitian A).eigenvalues i) ^ 2) : + HasFDerivAt (hermitianSpectralTrace f) (hermitianTraceDerivative A d) A := by + apply HasFDerivAt.of_isLittleO + have hb : (fun B : HermitianMatrixSpace ι => hermitianSpectralTrace f B - + hermitianSpectralTrace f A - hermitianTraceDerivative A d (B - A)) =O[𝓝 A] + (fun B => ‖B - A‖ ^ 2) := by + apply isBigO_iff.mpr + refine ⟨C * Fintype.card ι, ?_⟩ + filter_upwards [hrem] with B hB + have h := abs_real_trace_cfc_remainder_le_norm_sq + (hermitianMatrix_isHermitian A) (hermitianMatrix_isHermitian B) f d hC hB + change |(cfc f (B : Matrix ι ι ℂ)).trace.re - + (cfc f (A : Matrix ι ι ℂ)).trace.re - + (cfc d (A : Matrix ι ι ℂ) * ((B - A : HermitianMatrixSpace ι) : Matrix ι ι ℂ)).trace.re| ≤ + (C * Fintype.card ι) * |‖B - A‖ ^ 2| + rw [abs_of_nonneg (sq_nonneg (‖B - A‖ : ℝ))] + have hn : ‖(B : Matrix ι ι ℂ) - (A : Matrix ι ι ℂ)‖ = + ‖B - A‖ := rfl + rw [hn] at h + simpa only [Matrix.trace_sub, Complex.sub_re, Submodule.coe_sub] using h + exact hb.trans_isLittleO (isLittleO_pow_sub_sub A (by norm_num : 1 < (2 : ℕ))) + +/-- An unconditional example at arbitrary, possibly degenerate, Hermitian +matrices: the actual trace-square derivative is H ↦ Re Tr(2 A H). -/ +theorem hasFDerivAt_hermitianSpectralTrace_square (A : HermitianMatrixSpace ι) : + HasFDerivAt (hermitianSpectralTrace (fun x => x ^ 2)) + (hermitianTraceDerivative A (fun x => 2 * x)) A := by + apply hasFDerivAt_hermitianSpectralTrace_of_scalar_remainder A _ _ (C := 1) zero_le_one + exact Filter.Eventually.of_forall fun B i j => by + have he : + (hermitianMatrix_isHermitian B).eigenvalues j ^ 2 - + (hermitianMatrix_isHermitian A).eigenvalues i ^ 2 - + (2 * (hermitianMatrix_isHermitian A).eigenvalues i) * + ((hermitianMatrix_isHermitian B).eigenvalues j - + (hermitianMatrix_isHermitian A).eigenvalues i) = + ((hermitianMatrix_isHermitian B).eigenvalues j - + (hermitianMatrix_isHermitian A).eigenvalues i) ^ 2 := by ring + rw [he, abs_of_nonneg (sq_nonneg _), one_mul] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HermitianTraceRemainder.lean b/LeanPool/VacuumBellSeparation/Gaussian/HermitianTraceRemainder.lean new file mode 100644 index 0000000000..ac5c213dbf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HermitianTraceRemainder.lean @@ -0,0 +1,154 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryEigenbasisOverlap + +/-! +# An exact spectral trace remainder without eigenvalue derivatives + +The change-of-eigenbasis unitary is constructed from the actual spectral +bases of two Hermitian matrices. Its nonnegative overlap weights give an +exact scalar remainder formula for the actual CFC trace. Repeated +eigenvalues require no choice of differentiable eigenvalue branches. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Change of coordinates between two orthonormal eigenbases. -/ +def eigenbasisOverlapUnitary {A B : Matrix ι ι ℂ} + (hA : A.IsHermitian) (hB : B.IsHermitian) : unitary (Matrix ι ι ℂ) := + star hA.eigenvectorUnitary * hB.eigenvectorUnitary + +theorem real_matrix_trace_cfc {A : Matrix ι ι ℂ} (hA : A.IsHermitian) (f : ℝ → ℝ) : + (cfc f A).trace.re = ∑ i, f (hA.eigenvalues i) := by + rw [hA.cfc_eq, Matrix.IsHermitian.cfc, Unitary.conjStarAlgAut_apply, + Matrix.trace_mul_cycle, Unitary.coe_star_mul_self, Matrix.one_mul, + Matrix.trace_diagonal] + simp only [Complex.re_sum, Function.comp_apply, RCLike.ofReal_eq_complex_ofReal, + Complex.ofReal_re] + +omit [DecidableEq ι] in +theorem trace_conjugated_product (P Q X Y : Matrix ι ι ℂ) : + ((P * X * Pᴴ) * (Q * Y * Qᴴ)).trace = + (X * ((Pᴴ * Q) * Y * (Pᴴ * Q)ᴴ)).trace := by + calc + _ = (P * (X * Pᴴ * Q * Y * Qᴴ)).trace := congrArg Matrix.trace (by noncomm_ring) + _ = ((X * Pᴴ * Q * Y * Qᴴ) * P).trace := Matrix.trace_mul_comm _ _ + _ = _ := by + simp only [Matrix.conjTranspose_mul, Matrix.conjTranspose_conjTranspose] + congr 1 + noncomm_ring + +theorem real_trace_cfc_mul_cfc {A B : Matrix ι ι ℂ} + (hA : A.IsHermitian) (hB : B.IsHermitian) (f g : ℝ → ℝ) : + (cfc f A * cfc g B).trace.re = + ∑ i, ∑ j, f (hA.eigenvalues i) * g (hB.eigenvalues j) * + unitaryOverlapWeight (eigenbasisOverlapUnitary hA hB) i j := by + rw [hA.cfc_eq, hB.cfc_eq, Matrix.IsHermitian.cfc, Matrix.IsHermitian.cfc, + Unitary.conjStarAlgAut_apply, Unitary.conjStarAlgAut_apply] + simp only [Matrix.star_eq_conjTranspose] + rw [trace_conjugated_product] + exact real_trace_mixed_unitary_diagonals (eigenbasisOverlapUnitary hA hB) + (f ∘ hA.eigenvalues) (g ∘ hB.eigenvalues) + +theorem unitaryOverlapWeight_same_eigenbasis {A : Matrix ι ι ℂ} + (hA : A.IsHermitian) (i j : ι) : + unitaryOverlapWeight (eigenbasisOverlapUnitary hA hA) i j = if i = j then 1 else 0 := by + by_cases hij : i = j <;> + simp [eigenbasisOverlapUnitary, unitaryOverlapWeight, hij] + +theorem real_trace_cfc_mul_self {A : Matrix ι ι ℂ} + (hA : A.IsHermitian) (f : ℝ → ℝ) : + (cfc f A * A).trace.re = ∑ i, f (hA.eigenvalues i) * hA.eigenvalues i := by + have h := real_trace_cfc_mul_cfc hA hA f id + rw [cfc_id ℝ A hA.isSelfAdjoint] at h + simpa only [unitaryOverlapWeight_same_eigenbasis, mul_ite, mul_one, mul_zero, + Finset.sum_ite_eq, Finset.mem_univ, ite_true, id_eq] using h + +theorem unitary_weighted_scalar_remainder (U : unitary (Matrix ι ι ℂ)) + (a b : ι → ℝ) (f d : ℝ → ℝ) : + (∑ j, f (b j)) - (∑ i, f (a i)) - + ((∑ i, ∑ j, d (a i) * b j * unitaryOverlapWeight U i j) - + ∑ i, d (a i) * a i) = + ∑ i, ∑ j, unitaryOverlapWeight U i j * + (f (b j) - f (a i) - d (a i) * (b j - a i)) := by + have hreorder : (∑ i, ∑ j, unitaryOverlapWeight U i j * d (a i) * b j) = + ∑ i, ∑ j, d (a i) * b j * unitaryOverlapWeight U i j := by + apply Finset.sum_congr rfl + intro i _ + apply Finset.sum_congr rfl + intro j _ + ring + have hleft : (∑ i, ∑ j, unitaryOverlapWeight U i j * d (a i) * a i) = + ∑ i, d (a i) * a i := by + simpa only [mul_assoc] using unitaryOverlapWeight_sum_left U (fun i => d (a i) * a i) + simp only [mul_sub, Finset.sum_sub_distrib, ← mul_assoc] + rw [unitaryOverlapWeight_sum_right, unitaryOverlapWeight_sum_left, hreorder, hleft] + +/-- The exact actual-CFC trace remainder, valid with arbitrary repeated +eigenvalues and arbitrary scalar functions on the finite spectra. -/ +theorem real_trace_cfc_remainder {A B : Matrix ι ι ℂ} + (hA : A.IsHermitian) (hB : B.IsHermitian) (f d : ℝ → ℝ) : + (cfc f B - cfc f A - cfc d A * (B - A)).trace.re = + ∑ i, ∑ j, unitaryOverlapWeight (eigenbasisOverlapUnitary hA hB) i j * + (f (hB.eigenvalues j) - f (hA.eigenvalues i) - + d (hA.eigenvalues i) * (hB.eigenvalues j - hA.eigenvalues i)) := by + have hcross := real_trace_cfc_mul_cfc hA hB d id + rw [cfc_id ℝ B hB.isSelfAdjoint] at hcross + simp only [id_eq] at hcross + rw [Matrix.mul_sub, Matrix.trace_sub, Matrix.trace_sub, Matrix.trace_sub, + Complex.sub_re, Complex.sub_re, Complex.sub_re, + real_matrix_trace_cfc hA, real_matrix_trace_cfc hB, + hcross, real_trace_cfc_mul_self hA] + exact unitary_weighted_scalar_remainder (eigenbasisOverlapUnitary hA hB) + hA.eigenvalues hB.eigenvalues f d + +theorem abs_real_trace_cfc_remainder_le {A B : Matrix ι ι ℂ} + (hA : A.IsHermitian) (hB : B.IsHermitian) (f d : ℝ → ℝ) (C : ℝ) + (hrem : ∀ i j, |f (hB.eigenvalues j) - f (hA.eigenvalues i) - + d (hA.eigenvalues i) * (hB.eigenvalues j - hA.eigenvalues i)| ≤ + C * (hB.eigenvalues j - hA.eigenvalues i) ^ 2) : + |(cfc f B - cfc f A - cfc d A * (B - A)).trace.re| ≤ + C * ∑ i, ∑ j, unitaryOverlapWeight (eigenbasisOverlapUnitary hA hB) i j * + (hB.eigenvalues j - hA.eigenvalues i) ^ 2 := by + rw [real_trace_cfc_remainder hA hB f d] + calc + _ ≤ ∑ i, |∑ j, unitaryOverlapWeight (eigenbasisOverlapUnitary hA hB) i j * + (f (hB.eigenvalues j) - f (hA.eigenvalues i) - + d (hA.eigenvalues i) * (hB.eigenvalues j - hA.eigenvalues i))| := + Finset.abs_sum_le_sum_abs _ _ + _ ≤ ∑ i, ∑ j, |unitaryOverlapWeight (eigenbasisOverlapUnitary hA hB) i j * + (f (hB.eigenvalues j) - f (hA.eigenvalues i) - + d (hA.eigenvalues i) * (hB.eigenvalues j - hA.eigenvalues i))| := + Finset.sum_le_sum fun i _ => Finset.abs_sum_le_sum_abs _ _ + _ ≤ ∑ i, ∑ j, unitaryOverlapWeight (eigenbasisOverlapUnitary hA hB) i j * + (C * (hB.eigenvalues j - hA.eigenvalues i) ^ 2) := by + apply Finset.sum_le_sum + intro i _ + apply Finset.sum_le_sum + intro j _ + rw [abs_mul, abs_of_nonneg (unitaryOverlapWeight_nonneg _ _ _)] + exact mul_le_mul_of_nonneg_left (hrem i j) (unitaryOverlapWeight_nonneg _ _ _) + _ = _ := by + simp only [Finset.mul_sum] + apply Finset.sum_congr rfl + intro i _ + apply Finset.sum_congr rfl + intro j _ + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HermitianTraceTaylorBound.lean b/LeanPool/VacuumBellSeparation/Gaussian/HermitianTraceTaylorBound.lean new file mode 100644 index 0000000000..3e254e346f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HermitianTraceTaylorBound.lean @@ -0,0 +1,97 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HermitianTraceRemainder + +/-! +# A quadratic norm remainder for an actual Hermitian spectral trace + +The overlap-weighted squared eigenvalue differences equal the actual +trace of (B-A)². Spectral calculus bounds that trace by dimension times +the squared operator norm. A scalar Taylor remainder therefore gives a +genuine quadratic remainder for Tr f(B), including repeated eigenvalues. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem real_trace_sq_sub_eq_overlap {A B : Matrix ι ι ℂ} + (hA : A.IsHermitian) (hB : B.IsHermitian) : + ((B - A) ^ 2).trace.re = + ∑ i, ∑ j, unitaryOverlapWeight (eigenbasisOverlapUnitary hA hB) i j * + (hB.eigenvalues j - hA.eigenvalues i) ^ 2 := by + have h := real_trace_cfc_remainder hA hB (fun x => x ^ 2) (fun x => 2 * x) + rw [cfc_pow_id B 2 hB.isSelfAdjoint, cfc_pow_id A 2 hA.isSelfAdjoint, + cfc_const_mul_id (2 : ℝ) A hA.isSelfAdjoint] at h + have ht : (B ^ 2 - A ^ 2 - (2 : ℝ) • A * (B - A)).trace = + ((B - A) ^ 2).trace := by + simp only [two_smul, pow_two, Matrix.sub_mul, Matrix.mul_sub, Matrix.add_mul, + Matrix.trace_sub, Matrix.trace_add] + rw [Matrix.trace_mul_comm B A] + abel + rw [ht] at h + calc + _ = _ := h + _ = _ := by + apply Finset.sum_congr rfl + intro i _ + apply Finset.sum_congr rfl + intro j _ + ring + +theorem real_trace_sq_le_card_norm_sq {A : Matrix ι ι ℂ} (hA : A.IsHermitian) : + (A ^ 2).trace.re ≤ (Fintype.card ι : ℝ) * ‖A‖ ^ 2 := by + have h := real_matrix_trace_cfc hA (fun x => x ^ 2) + rw [cfc_pow_id A 2 hA.isSelfAdjoint] at h + rw [h] + calc + ∑ i, hA.eigenvalues i ^ 2 ≤ ∑ _i : ι, ‖A‖ ^ 2 := by + apply Finset.sum_le_sum + intro i _ + have hb : |hA.eigenvalues i| ≤ ‖A‖ := by + simpa only [Real.norm_eq_abs] using + IsometricContinuousFunctionalCalculus.norm_spectrum_le A + (hA.eigenvalues_mem_spectrum_real i) hA.isSelfAdjoint + nlinarith [sq_abs (hA.eigenvalues i), abs_nonneg (hA.eigenvalues i), norm_nonneg A] + _ = _ := by simp + +theorem abs_real_trace_cfc_remainder_le_trace_sq {A B : Matrix ι ι ℂ} + (hA : A.IsHermitian) (hB : B.IsHermitian) (f d : ℝ → ℝ) (C : ℝ) + (hrem : ∀ i j, |f (hB.eigenvalues j) - f (hA.eigenvalues i) - + d (hA.eigenvalues i) * (hB.eigenvalues j - hA.eigenvalues i)| ≤ + C * (hB.eigenvalues j - hA.eigenvalues i) ^ 2) : + |(cfc f B - cfc f A - cfc d A * (B - A)).trace.re| ≤ + C * ((B - A) ^ 2).trace.re := by + rw [real_trace_sq_sub_eq_overlap hA hB] + exact abs_real_trace_cfc_remainder_le hA hB f d C hrem + +/-- A scalar second-order bound controls the actual matrix trace in the +operator norm; no differentiable eigenvalue enumeration is required. -/ +theorem abs_real_trace_cfc_remainder_le_norm_sq {A B : Matrix ι ι ℂ} + (hA : A.IsHermitian) (hB : B.IsHermitian) (f d : ℝ → ℝ) {C : ℝ} (hC : 0 ≤ C) + (hrem : ∀ i j, |f (hB.eigenvalues j) - f (hA.eigenvalues i) - + d (hA.eigenvalues i) * (hB.eigenvalues j - hA.eigenvalues i)| ≤ + C * (hB.eigenvalues j - hA.eigenvalues i) ^ 2) : + |(cfc f B - cfc f A - cfc d A * (B - A)).trace.re| ≤ + (C * Fintype.card ι) * ‖B - A‖ ^ 2 := by + calc + _ ≤ C * ((B - A) ^ 2).trace.re := + abs_real_trace_cfc_remainder_le_trace_sq hA hB f d C hrem + _ ≤ C * ((Fintype.card ι : ℝ) * ‖B - A‖ ^ 2) := + mul_le_mul_of_nonneg_left (real_trace_sq_le_card_norm_sq (hB.sub hA)) hC + _ = _ := by ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HilbertComplexification.lean b/LeanPool/VacuumBellSeparation/Gaussian/HilbertComplexification.lean new file mode 100644 index 0000000000..4dfb62394e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HilbertComplexification.lean @@ -0,0 +1,194 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Algebra.Order.Archimedean.Real.Hom +public import Mathlib.Analysis.CStarAlgebra.Module.Constructions +public import Mathlib.Tactic.Basify +public import Mathlib.Tactic.ENatToNat +public import Mathlib.Tactic.ReduceModChar +public import Mathlib.Tactic.TypeStar +public import Mathlib.Analysis.Normed.Lp.ProdLp +public import Mathlib.Analysis.InnerProductSpace.Basic + +/-! +# The Hilbert complexification of a real Hilbert space + +The underlying normed additive group is the actual `WithLp 2 (E × E)`. +Complex multiplication and the Hermitian inner product are constructed +explicitly. In particular the norm and completeness are inherited from +the real L² product, rather than supplied as assumptions. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +/-- The real L² product, equipped below with its complex Hilbert structure. -/ +def HilbertComplexification (E : Type*) := WithLp 2 (E × E) + +namespace HilbertComplexification + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + +noncomputable instance : NormedAddCommGroup (HilbertComplexification E) := + inferInstanceAs (NormedAddCommGroup (WithLp 2 (E × E))) + +/-- Re. -/ +def re (z : HilbertComplexification E) : E := (WithLp.ofLp z).1 +/-- Im. -/ +def im (z : HilbertComplexification E) : E := (WithLp.ofLp z).2 +/-- Mk defined as `WithLp.toLp 2 (x, y)`. -/ +def mk (x y : E) : HilbertComplexification E := WithLp.toLp 2 (x, y) + +omit [NormedAddCommGroup E] [InnerProductSpace ℝ E] in +@[ext] +theorem ext {z w : HilbertComplexification E} (hre : z.re = w.re) (him : z.im = w.im) : + z = w := WithLp.ofLp_injective 2 (Prod.ext hre him) + +omit [NormedAddCommGroup E] [InnerProductSpace ℝ E] in +@[simp] theorem re_mk (x y : E) : (mk x y).re = x := rfl +omit [NormedAddCommGroup E] [InnerProductSpace ℝ E] in +@[simp] theorem im_mk (x y : E) : (mk x y).im = y := rfl +omit [NormedAddCommGroup E] [InnerProductSpace ℝ E] in +@[simp] theorem mk_re_im (z : HilbertComplexification E) : mk z.re z.im = z := rfl +omit [InnerProductSpace ℝ E] in +@[simp] theorem re_zero : (0 : HilbertComplexification E).re = 0 := rfl +omit [InnerProductSpace ℝ E] in +@[simp] theorem im_zero : (0 : HilbertComplexification E).im = 0 := rfl +omit [InnerProductSpace ℝ E] in +@[simp] theorem re_add (z w : HilbertComplexification E) : (z + w).re = z.re + w.re := rfl +omit [InnerProductSpace ℝ E] in +@[simp] theorem im_add (z w : HilbertComplexification E) : (z + w).im = z.im + w.im := rfl +omit [InnerProductSpace ℝ E] in +@[simp] theorem re_neg (z : HilbertComplexification E) : (-z).re = -z.re := rfl +omit [InnerProductSpace ℝ E] in +@[simp] theorem im_neg (z : HilbertComplexification E) : (-z).im = -z.im := rfl +omit [InnerProductSpace ℝ E] in +@[simp] theorem re_sub (z w : HilbertComplexification E) : (z - w).re = z.re - w.re := rfl +omit [InnerProductSpace ℝ E] in +@[simp] theorem im_sub (z w : HilbertComplexification E) : (z - w).im = z.im - w.im := rfl + +noncomputable instance : SMul ℂ (HilbertComplexification E) := + ⟨fun c z => mk (c.re • z.re - c.im • z.im) (c.im • z.re + c.re • z.im)⟩ + +@[simp] +theorem re_smul (c : ℂ) (z : HilbertComplexification E) : + (c • z).re = c.re • z.re - c.im • z.im := rfl + +@[simp] +theorem im_smul (c : ℂ) (z : HilbertComplexification E) : + (c • z).im = c.im • z.re + c.re • z.im := rfl + +noncomputable instance : Module ℂ (HilbertComplexification E) where + one_smul z := by ext <;> simp + mul_smul c d z := by + ext <;> simp only [re_smul, im_smul, Complex.mul_re, Complex.mul_im, + sub_smul, add_smul, smul_sub, smul_add, smul_smul] <;> abel + smul_zero c := by ext <;> simp + smul_add c z w := by + ext <;> simp only [re_smul, im_smul, re_add, im_add, smul_add] <;> abel + add_smul c d z := by + ext <;> simp only [re_smul, im_smul, Complex.add_re, Complex.add_im, + re_add, im_add, add_smul] <;> abel + zero_smul z := by ext <;> simp + +/-- Real scalar multiplication is the restriction of the constructed +complex action; these coordinate lemmas avoid a second real module instance. -/ +@[simp] +theorem re_real_smul (r : ℝ) (z : HilbertComplexification E) : + (r • z).re = r • z.re := by + change ((r : ℂ) • z).re = _ + simp only [re_smul, Complex.ofReal_re, Complex.ofReal_im, zero_smul, sub_zero] + +@[simp] +theorem im_real_smul (r : ℝ) (z : HilbertComplexification E) : + (r • z).im = r • z.im := by + change ((r : ℂ) • z).im = _ + simp only [im_smul, Complex.ofReal_re, Complex.ofReal_im, zero_smul, zero_add] + +omit [InnerProductSpace ℝ E] in +theorem norm_sq (z : HilbertComplexification E) : + ‖z‖ ^ 2 = ‖z.re‖ ^ 2 + ‖z.im‖ ^ 2 := + WithLp.prod_norm_sq_eq_of_L2 z + +theorem norm_sq_inner (z : HilbertComplexification E) : + ‖z‖ ^ 2 = inner ℝ z.re z.re + inner ℝ z.im z.im := by + rw [norm_sq, real_inner_self_eq_norm_sq, real_inner_self_eq_norm_sq] + +theorem norm_complex_smul_sq (c : ℂ) (z : HilbertComplexification E) : + ‖c • z‖ ^ 2 = (‖c‖ * ‖z‖) ^ 2 := by + rw [mul_pow, norm_sq_inner, norm_sq_inner] + simp only [re_smul, im_smul, inner_sub_left, inner_sub_right, inner_add_left, + inner_add_right, real_inner_smul_left, real_inner_smul_right] + rw [Complex.sq_norm, Complex.normSq_apply] + ring + +noncomputable instance : NormedSpace ℂ (HilbertComplexification E) where + norm_smul_le c z := by + apply nonneg_le_nonneg_of_sq_le_sq (mul_nonneg (norm_nonneg c) (norm_nonneg z)) + simpa only [pow_two] using (le_of_eq (norm_complex_smul_sq c z)) + +/-- The Hermitian inner product, conjugate-linear in its first argument. -/ +def complexInner (z w : HilbertComplexification E) : ℂ := + ⟨inner ℝ z.re w.re + inner ℝ z.im w.im, + inner ℝ z.re w.im - inner ℝ z.im w.re⟩ + +noncomputable instance : InnerProductSpace ℂ (HilbertComplexification E) where + inner := complexInner + norm_sq_eq_re_inner z := norm_sq_inner z + conj_inner_symm z w := by + apply Complex.ext <;> simp [complexInner, real_inner_comm] + add_left z w v := by + apply Complex.ext <;> simp [complexInner, inner_add_left] <;> ring + smul_left z w c := by + apply Complex.ext <;> + simp [complexInner, inner_sub_left, inner_add_left, real_inner_smul_left, + Complex.mul_re, Complex.mul_im] <;> ring + +theorem inner_eq (z w : HilbertComplexification E) : + inner ℂ z w = + ⟨inner ℝ z.re w.re + inner ℝ z.im w.im, + inner ℝ z.re w.im - inner ℝ z.im w.re⟩ := rfl + +/-- Completeness is inherited from the L² product, with its unchanged norm. -/ +noncomputable instance [CompleteSpace E] : CompleteSpace (HilbertComplexification E) := + inferInstanceAs (CompleteSpace (WithLp 2 (E × E))) + +/-- Explicit comparison with the original real L² product. The real +scalar actions agree by theorem, not by a duplicate module instance. -/ +noncomputable def realEquiv : HilbertComplexification E ≃ₗᵢ[ℝ] WithLp 2 (E × E) where + toFun z := WithLp.toLp 2 (z.re, z.im) + invFun z := mk z.fst z.snd + left_inv z := rfl + right_inv z := rfl + map_add' z w := rfl + map_smul' r z := by + apply WithLp.ofLp_injective 2 + change ((r • z).re, (r • z).im) = (r • z.re, r • z.im) + rw [re_real_smul, im_real_smul] + norm_map' z := rfl + +/-- The canonical real isometric embedding. -/ +noncomputable def ofReal : E →ₗᵢ[ℝ] HilbertComplexification E where + toFun x := mk x 0 + map_add' x y := by ext <;> simp + map_smul' r x := by ext <;> simp + norm_map' x := by + apply (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp + rw [norm_sq] + simp + +@[simp] theorem ofReal_re (x : E) : (ofReal x).re = x := rfl +@[simp] theorem ofReal_im (x : E) : (ofReal x).im = 0 := rfl + +theorem eq_ofReal_add_I_smul (z : HilbertComplexification E) : + z = ofReal z.re + Complex.I • ofReal z.im := by + ext <;> simp + +end HilbertComplexification +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HilbertEigenTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/HilbertEigenTrace.lean new file mode 100644 index 0000000000..ffe8795e7b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HilbertEigenTrace.lean @@ -0,0 +1,120 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPositiveEigenbasis +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowers + +/-! +# Power traces and two-basis overlap sums + +All formulas concern actual bounded operators and their actual CFC powers. +The extended sums allow infinite traces. An explicit Hilbert eigenbasis is +used in the generic formulas; compact positive operators obtain one from +the preceding construction, rather than from a new spectral assumption. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus + +variable {ι κ E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem hilbertEigenbasis_rpow_apply (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : 0 ≤ A) {a : ι → ℝ} + (ha : ∀ i, A (b i) = a i • b i) {p : ℝ} (hp : 0 < p) (i : ι) : + (A ^ p) (b i) = (a i ^ p) • b i := by + have hi : b i ≠ 0 := by + intro h + simpa [h] using b.orthonormal.norm_eq_one i + exact rpow_apply_eigenvector hA (eigenvalue_mem_real_spectrum hi (ha i)) (ha i) hp + +theorem hilbertEigenbasis_sqrt_apply (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : 0 ≤ A) {a : ι → ℝ} + (ha : ∀ i, A (b i) = a i • b i) (i : ι) : + CFC.sqrt A (b i) = Real.sqrt (a i) • b i := by + rw [CFC.sqrt_eq_rpow, Real.sqrt_eq_rpow] + exact hilbertEigenbasis_rpow_apply b hA ha (by norm_num) i + +theorem positiveTrace_rpow_eq_hilbertEigenvalue_sum (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : 0 ≤ A) {a : ι → ℝ} + (ha : ∀ i, A (b i) = a i • b i) {p : ℝ} (hp : 0 < p) : + positiveTrace (A ^ p) = ∑' i, ENNReal.ofReal (a i ^ p) := by + rw [positiveTrace_eq_tsum_diagonal b (CFC.rpow_nonneg (a := A) (y := p))] + apply tsum_congr + intro i + change ENNReal.ofReal (RCLike.re (inner ℂ (b i) ((A ^ p) (b i)))) = _ + rw [hilbertEigenbasis_rpow_apply b hA ha hp, inner_smul_right_eq_smul, + RCLike.smul_re, inner_self_eq_norm_sq, b.orthonormal.norm_eq_one] + simp + +/-- Hilbert basis overlap given by `ENNReal.ofReal (‖inner ℂ (b i) (c j)‖ ^ 2)`. -/ +def hilbertBasisOverlap (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ E) + (i : ι) (j : κ) : ℝ≥0∞ := ENNReal.ofReal (‖inner ℂ (b i) (c j)‖ ^ 2) + +omit [CompleteSpace E] in +theorem hilbertBasisOverlap_tsum_left (b : HilbertBasis ι ℂ E) + (c : HilbertBasis κ ℂ E) (j : κ) : ∑' i, hilbertBasisOverlap b c i j = 1 := by + simp only [hilbertBasisOverlap] + rw [tsum_basis_inner_norm_sq b (c j), c.orthonormal.norm_eq_one] + norm_num + +omit [CompleteSpace E] in +theorem hilbertBasisOverlap_tsum_right (b : HilbertBasis ι ℂ E) + (c : HilbertBasis κ ℂ E) (i : ι) : ∑' j, hilbertBasisOverlap b c i j = 1 := by + have hterm (j : κ) : hilbertBasisOverlap b c i j = hilbertBasisOverlap c b j i := by + unfold hilbertBasisOverlap + rw [norm_inner_symm] + simp only [hterm, hilbertBasisOverlap_tsum_left] + +theorem positiveTrace_sandwich_eq_hilbertEigenvalue_overlap + (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ E) + {A B : E →L[ℂ] E} (hA : 0 ≤ A) (hB : 0 ≤ B) + {a : ι → ℝ} {d : κ → ℝ} (ha₀ : ∀ i, 0 ≤ a i) (hd₀ : ∀ j, 0 ≤ d j) + (ha : ∀ i, A (b i) = a i • b i) (hd : ∀ j, B (c j) = d j • c j) : + positiveTrace (CFC.sqrt B * A * CFC.sqrt B) = + ∑' i, ∑' j, ENNReal.ofReal (a i) * ENNReal.ofReal (d j) * + hilbertBasisOverlap b c i j := by + let T := CFC.sqrt A * CFC.sqrt B + have hT : T.adjoint.comp T = CFC.sqrt B * A * CFC.sqrt B := by + change star (CFC.sqrt A * CFC.sqrt B) * (CFC.sqrt A * CFC.sqrt B) = _ + rw [star_mul, (CFC.sqrt_nonneg A).isSelfAdjoint.star_eq, + (CFC.sqrt_nonneg B).isSelfAdjoint.star_eq] + calc + _ = CFC.sqrt B * (CFC.sqrt A * CFC.sqrt A) * CFC.sqrt B := by noncomm_ring + _ = _ := by rw [← pow_two, CFC.sq_sqrt A hA] + have hentry (i : ι) (j : κ) : ‖inner ℂ (b i) (T (c j))‖ ^ 2 = + a i * d j * ‖inner ℂ (b i) (c j)‖ ^ 2 := by + dsimp only [T] + rw [mul_apply_eq_comp, ← adjoint_inner_left, + (CFC.sqrt_nonneg A).isSelfAdjoint.adjoint_eq, + hilbertEigenbasis_sqrt_apply b hA ha, hilbertEigenbasis_sqrt_apply c hB hd, + inner_smul_left_eq_smul, inner_smul_right_eq_smul, norm_smul, norm_smul, + Real.norm_eq_abs, Real.norm_eq_abs, abs_of_nonneg (Real.sqrt_nonneg _), + abs_of_nonneg (Real.sqrt_nonneg _), mul_pow, mul_pow, + Real.sq_sqrt (ha₀ i), Real.sq_sqrt (hd₀ j)] + ring + rw [← hT, positiveTrace_adjoint_comp c T, basisHilbertSchmidtSquare] + calc + _ = ∑' j, ∑' i, ENNReal.ofReal (‖inner ℂ (b i) (T (c j))‖ ^ 2) := by + exact tsum_congr fun j => (tsum_basis_inner_norm_sq b (T (c j))).symm + _ = ∑' i, ∑' j, ENNReal.ofReal (‖inner ℂ (b i) (T (c j))‖ ^ 2) := tsum_comm + _ = _ := by + apply tsum_congr + intro i + apply tsum_congr + intro j + rw [hentry, ENNReal.ofReal_mul (mul_nonneg (ha₀ i) (hd₀ j)), + ENNReal.ofReal_mul (ha₀ i)] + rfl + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HilbertProductFunctionalCalculus.lean b/LeanPool/VacuumBellSeparation/Gaussian/HilbertProductFunctionalCalculus.lean new file mode 100644 index 0000000000..b79aa31b57 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HilbertProductFunctionalCalculus.lean @@ -0,0 +1,151 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexifiedHilbertProduct +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedCommutation +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryTrace +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Pi + +/-! +# Actual functional calculus on the Hilbert product + +The block map is a continuous unital star-algebra homomorphism, so actual +positive powers and reserve square roots act separately in the two +regional Hilbert spaces. All exponents here are nonnegative; zero in a +reserve spectrum is allowed throughout. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +-- Resolve the native real scalar algebra before specializing its carrier to +-- the completed Hilbert product. This is the existing CLM algebra instance. +/-- Hilbert product native real algebra with underlying type `ContinuousLinearMap.algebra`. -/ +noncomputable abbrev hilbertProductNativeRealAlgebra {G : Type*} + [NormedAddCommGroup G] [InnerProductSpace ℂ G] : + Algebra ℝ (G →L[ℂ] G) := ContinuousLinearMap.algebra + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Real algebra obtained by restricting scalars on the operators on a Hilbert product. -/ +local instance hilbertProductOperatorRealAlgebra : + Algebra ℝ (WithLp 2 (E × F) →L[ℂ] WithLp 2 (E × F)) := + hilbertProductNativeRealAlgebra + +theorem complexHilbertProductOperator_adjoint (A : E →L[ℂ] E) (B : F →L[ℂ] F) : + (complexHilbertProductOperator A B).adjoint = complexHilbertProductOperator A.adjoint + B.adjoint := by + ext y + apply ext_inner_left ℂ + intro x + rw [adjoint_inner_right] + simp only [complexHilbertProductOperator_apply, WithLp.prod_inner_apply, + adjoint_inner_right, + WithLp.ofLp_fst, WithLp.ofLp_snd] + +/-- Continuous linear map for the hilbert product star alg hom, of type `((E →L[ℂ] E) × (F →L[ℂ] +F)) →⋆ₐ[ℂ] (WithLp 2 (E × F) →L[ℂ] WithLp 2 (E × F)) where toFun p`. -/ +def hilbertProductStarAlgHom : ((E →L[ℂ] E) × (F →L[ℂ] F)) →⋆ₐ[ℂ] + (WithLp 2 (E × F) →L[ℂ] WithLp 2 (E × F)) where + toFun p := complexHilbertProductOperator p.1 p.2 + map_zero' := by ext x; rfl + map_one' := by ext x; rfl + map_add' p q := by ext x; rfl + map_mul' p q := by ext x; rfl + commutes' c := by ext x; rfl + map_star' p := (complexHilbertProductOperator_adjoint p.1 p.2).symm + +private theorem hilbertProductStarAlgHom_apply (p : (E →L[ℂ] E) × (F →L[ℂ] F)) : + hilbertProductStarAlgHom p = complexHilbertProductOperator p.1 p.2 := rfl + +theorem hilbertProductStarAlgHom_continuous : + Continuous (hilbertProductStarAlgHom (E := E) (F := F)) := by + apply AddMonoidHomClass.continuous_of_bound _ 1 + intro p + simpa only [one_mul, Prod.norm_def, hilbertProductStarAlgHom_apply] using + norm_complexHilbertProductOperator_le p.1 p.2 + ((norm_nonneg p.1).trans (le_max_left _ _)) (le_max_left _ _) (le_max_right _ _) + +theorem complexHilbertProductOperator_nonneg {A : E →L[ℂ] E} {B : F →L[ℂ] F} + (hA : 0 ≤ A) (hB : 0 ≤ B) : 0 ≤ complexHilbertProductOperator A B := + map_nonneg hilbertProductStarAlgHom (show (0 : (E →L[ℂ] E) × (F →L[ℂ] F)) ≤ (A, B) from ⟨hA, hB⟩) + +theorem complexHilbertProductOperator_isSelfAdjoint {A : E →L[ℂ] E} {B : F →L[ℂ] F} + (hA : IsSelfAdjoint A) (hB : IsSelfAdjoint B) : + IsSelfAdjoint (complexHilbertProductOperator A B) := by + change (complexHilbertProductOperator A B).adjoint = _ + rw [complexHilbertProductOperator_adjoint, hA.adjoint_eq, hB.adjoint_eq] + +theorem cfc_complexHilbertProductOperator (f : ℝ → ℝ) (hf : Continuous f) + {A : E →L[ℂ] E} {B : F →L[ℂ] F} (hA : IsSelfAdjoint A) (hB : IsSelfAdjoint B) : + cfc f (complexHilbertProductOperator A B) = complexHilbertProductOperator (cfc f A) + (cfc f B) := by + let : CStarAlgebra ((E →L[ℂ] E) × (F →L[ℂ] F)) := {} + let : IsometricContinuousFunctionalCalculus ℝ + ((E →L[ℂ] E) × (F →L[ℂ] F)) IsSelfAdjoint := + IsSelfAdjoint.instIsometricContinuousFunctionalCalculus + have hp : IsSelfAdjoint (A, B) := by + change (star A, star B) = (A, B) + rw [hA.star_eq, hB.star_eq] + have hm := StarAlgHomClass.map_cfc (hilbertProductStarAlgHom (E := E) (F := F)) f (A, B) + hf.continuousOn hilbertProductStarAlgHom_continuous hp + (complexHilbertProductOperator_isSelfAdjoint hA hB) + rw [cfc_map_prod (S := ℂ) f A B hf.continuousOn hp hA hB] at hm + simpa only [hilbertProductStarAlgHom_apply] using hm.symm + +theorem complexHilbertProductOperator_rpow {A : E →L[ℂ] E} {B : F →L[ℂ] F} + (hA : 0 ≤ A) (hB : 0 ≤ B) {p : ℝ} (hp : 0 ≤ p) : + (complexHilbertProductOperator A B) ^ p = complexHilbertProductOperator (A ^ p) (B ^ p) := by + rw [CFC.rpow_eq_cfc_real (complexHilbertProductOperator_nonneg hA hB), + CFC.rpow_eq_cfc_real hA, CFC.rpow_eq_cfc_real hB] + exact cfc_complexHilbertProductOperator _ (Real.continuous_rpow_const hp) + hA.isSelfAdjoint hB.isSelfAdjoint + +theorem complexHilbertProductOperator_sqrt {A : E →L[ℂ] E} {B : F →L[ℂ] F} + (hA : 0 ≤ A) (hB : 0 ≤ B) : + CFC.sqrt (complexHilbertProductOperator A B) = + complexHilbertProductOperator (CFC.sqrt A) (CFC.sqrt B) := by + simp only [CFC.sqrt_eq_rpow] + exact complexHilbertProductOperator_rpow (p := (1 / 2 : ℝ)) hA hB (by norm_num) + +theorem complexHilbertProductOperator_reserveSquare (A : E →L[ℂ] E) (B : F →L[ℂ] F) : + reserveSquare (complexHilbertProductOperator A B) = + complexHilbertProductOperator (reserveSquare A) (reserveSquare B) := by + have hm := map_sub (hilbertProductStarAlgHom (E := E) (F := F)) 1 ((A, B) ^ 2) + have hp : (1 : (E →L[ℂ] E) × (F →L[ℂ] F)) - (A, B) ^ 2 = + (1 - A ^ 2, 1 - B ^ 2) := rfl + rw [map_one, map_pow, hp] at hm + simpa only [hilbertProductStarAlgHom_apply, reserveSquare] using hm.symm + +theorem complexHilbertProductOperator_reserve {A : E →L[ℂ] E} {B : F →L[ℂ] F} + (hA : IsSelfAdjoint A) (hAn : ‖A‖ ≤ 1) (hB : IsSelfAdjoint B) (hBn : ‖B‖ ≤ 1) : + reserve (complexHilbertProductOperator A B) = complexHilbertProductOperator (reserve A) + (reserve B) := by + rw [reserve, complexHilbertProductOperator_reserveSquare, + complexHilbertProductOperator_sqrt (reserveSquare_nonneg hA hAn) (reserveSquare_nonneg hB hBn)] + simp only [reserve] + +theorem complexHilbertProductOperator_reserve_rpow {A : E →L[ℂ] E} {B : F →L[ℂ] F} + (hA : IsSelfAdjoint A) (hAn : ‖A‖ ≤ 1) (hB : IsSelfAdjoint B) (hBn : ‖B‖ ≤ 1) + {p : ℝ} (hp : 0 ≤ p) : + reserve (complexHilbertProductOperator A B) ^ p = + complexHilbertProductOperator (reserve A ^ p) (reserve B ^ p) := by + rw [complexHilbertProductOperator_reserve hA hAn hB hBn] + have hRA : 0 ≤ reserve A := CFC.sqrt_nonneg (reserveSquare A) + have hRB : 0 ≤ reserve B := CFC.sqrt_nonneg (reserveSquare B) + exact complexHilbertProductOperator_rpow (A := reserve A) (B := reserve B) + (p := p) hRA hRB hp + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HilbertProductOperator.lean b/LeanPool/VacuumBellSeparation/Gaussian/HilbertProductOperator.lean new file mode 100644 index 0000000000..9b189c5972 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HilbertProductOperator.lean @@ -0,0 +1,75 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WhitenedComplexFamily + +/-! # Actual real Hilbert product operators + +The norm is the genuine L2 product norm. Componentwise skew operators +remain skew and retain a common operator-norm bound. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] + +/-- Continuous linear map for the real Hilbert product operator, of type `WithLp 2 (E × F) →L[ℝ] +WithLp 2 (E × F)`. -/ +def realHilbertProductOperator (A : E →L[ℝ] E) (B : F →L[ℝ] F) : + WithLp 2 (E × F) →L[ℝ] WithLp 2 (E × F) := + (WithLp.prodContinuousLinearEquiv 2 ℝ E F).symm.toContinuousLinearMap.comp + ((A.prodMap B).comp (WithLp.prodContinuousLinearEquiv 2 ℝ E F).toContinuousLinearMap) + +omit [CompleteSpace E] [CompleteSpace F] in +@[simp] theorem realHilbertProductOperator_apply (A : E →L[ℝ] E) (B : F →L[ℝ] F) + (z : WithLp 2 (E × F)) : + realHilbertProductOperator A B z = WithLp.toLp 2 (A z.fst, B z.snd) := rfl + +omit [CompleteSpace E] [CompleteSpace F] in +theorem norm_realHilbertProductOperator_le (A : E →L[ℝ] E) (B : F →L[ℝ] F) + {c : ℝ} (hc : 0 ≤ c) (hA : ‖A‖ ≤ c) (hB : ‖B‖ ≤ c) : + ‖realHilbertProductOperator A B‖ ≤ c := by + apply ContinuousLinearMap.opNorm_le_bound _ hc + intro z + apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg hc (norm_nonneg _))).mp + rw [realHilbertProductOperator_apply, WithLp.prod_norm_sq_eq_of_L2, mul_pow, + WithLp.prod_norm_sq_eq_of_L2] + change ‖A z.fst‖ ^ 2 + ‖B z.snd‖ ^ 2 ≤ c ^ 2 * (‖z.fst‖ ^ 2 + ‖z.snd‖ ^ 2) + have ha := (A.le_opNorm z.fst).trans (mul_le_mul_of_nonneg_right hA (norm_nonneg _)) + have hb := (B.le_opNorm z.snd).trans (mul_le_mul_of_nonneg_right hB (norm_nonneg _)) + calc + _ ≤ (c * ‖z.fst‖) ^ 2 + (c * ‖z.snd‖) ^ 2 := by gcongr + _ = _ := by ring + +theorem realHilbertProductOperator_mem_skewAdjoint + {A : E →L[ℝ] E} {B : F →L[ℝ] F} + (hA : A ∈ skewAdjoint (E →L[ℝ] E)) (hB : B ∈ skewAdjoint (F →L[ℝ] F)) : + realHilbertProductOperator A B ∈ skewAdjoint + (WithLp 2 (E × F) →L[ℝ] WithLp 2 (E × F)) := by + change (realHilbertProductOperator A B).adjoint = -realHilbertProductOperator A B + change A.adjoint = -A at hA + change B.adjoint = -B at hB + ext y + apply ext_inner_left ℝ + intro x + rw [adjoint_inner_right, neg_apply, inner_neg_right] + simp only [realHilbertProductOperator_apply, WithLp.prod_inner_apply] + rw [← A.adjoint_inner_right, ← B.adjoint_inner_right, hA, hB, + neg_apply, neg_apply, inner_neg_right, inner_neg_right] + simp only [WithLp.ofLp_fst, WithLp.ofLp_snd] + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtCompact.lean b/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtCompact.lean new file mode 100644 index 0000000000..882c7092a0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtCompact.lean @@ -0,0 +1,142 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SquareSummableFamily + +/-! +# Compactness from the actual Hilbert--Schmidt sum + +Finite sums of actual rank-one operators converge in operator norm when +the squared norms of the basis images are summable. Consequently every +bounded operator with finite Hilbert--Schmidt sum is compact. In particular +the square root, and hence the operator itself, of a positive trace-class +operator is compact. No eigenbasis or finite-rank hypothesis is assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap InnerProductSpace Filter +open scoped ENNReal lp Topology + +variable {ι E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem norm_le_sqrt_basis_image_sum (b : HilbertBasis ι ℂ E) (T : E →L[ℂ] F) + (hT : Summable fun i => ‖T (b i)‖ ^ 2) : + ‖T‖ ≤ Real.sqrt (∑' i, ‖T (b i)‖ ^ 2) := by + have hrepr (x : F) : + b.repr (T.adjoint x) = familyAnalysisVector (fun i => T (b i)) hT x := by + ext i + rw [b.repr_apply_apply, adjoint_inner_right, familyAnalysisVector_apply] + calc + ‖T‖ = ‖T.adjoint‖ := (adjoint.norm_map T).symm + _ ≤ Real.sqrt (∑' i, ‖T (b i)‖ ^ 2) := by + apply T.adjoint.opNorm_le_bound (Real.sqrt_nonneg _) + intro x + rw [← b.repr.norm_map (T.adjoint x), hrepr] + exact norm_familyAnalysisVector_le (fun i => T (b i)) hT x + +/-- Basis finite rank given by `∑ i ∈ s, rankOne ℂ (T (b i)) (b i)`. -/ +def basisFiniteRank (b : HilbertBasis ι ℂ E) (T : E →L[ℂ] F) (s : Finset ι) : + E →L[ℂ] F := ∑ i ∈ s, rankOne ℂ (T (b i)) (b i) + +omit [CompleteSpace E] [CompleteSpace F] in +theorem basisFiniteRank_apply_basis [DecidableEq ι] (b : HilbertBasis ι ℂ E) (T : E →L[ℂ] F) + (s : Finset ι) (i : ι) : basisFiniteRank b T s (b i) = if i ∈ s then T (b i) else 0 := by + classical + have hb := orthonormal_iff_ite.mp b.orthonormal + simp [basisFiniteRank, sum_apply, rankOne_apply, hb] + +omit [CompleteSpace E] [CompleteSpace F] in +theorem isCompactOperator_rankOne (x : F) (y : E) : + IsCompactOperator (rankOne ℂ x y) := by + rw [rankOne_def'] + exact (isCompactOperator_of_locallyCompactSpace_dom (innerSL ℂ y)).clm_comp + (toSpanSingleton ℂ x) + +omit [CompleteSpace E] [CompleteSpace F] in +theorem basisFiniteRank_isCompactOperator (b : HilbertBasis ι ℂ E) + (T : E →L[ℂ] F) (s : Finset ι) : IsCompactOperator (basisFiniteRank b T s) := by + exact (compactOperator (RingHom.id ℂ) E F).sum_mem fun i _ => + isCompactOperator_rankOne (T (b i)) (b i) + +theorem norm_sub_basisFiniteRank_le (b : HilbertBasis ι ℂ E) (T : E →L[ℂ] F) + (hT : Summable fun i => ‖T (b i)‖ ^ 2) (s : Finset ι) : + ‖T - basisFiniteRank b T s‖ ≤ Real.sqrt (∑' i : {i // i ∉ s}, ‖T (b i)‖ ^ 2) := by + classical + have hterm (i : ι) : ‖(T - basisFiniteRank b T s) (b i)‖ ^ 2 = + if i ∉ s then ‖T (b i)‖ ^ 2 else 0 := by + rw [sub_apply, basisFiniteRank_apply_basis] + split_ifs <;> simp_all + have hs : Summable fun i => ‖(T - basisFiniteRank b T s) (b i)‖ ^ 2 := by + apply Summable.of_nonneg_of_le + (f := fun i => ‖T (b i)‖ ^ 2) + (g := fun i => ‖(T - basisFiniteRank b T s) (b i)‖ ^ 2) + (fun i => sq_nonneg _) _ hT + intro i + by_cases hi : i ∉ s + · simp only [hterm, ite_eq_left hi, le_refl] + · simpa only [hterm, ite_eq_right hi] using (sq_nonneg ‖T (b i)‖) + have hsum : (∑' i, ‖(T - basisFiniteRank b T s) (b i)‖ ^ 2) = + ∑' i : {i // i ∉ s}, ‖T (b i)‖ ^ 2 := by + calc + _ = ∑' i, Set.indicator {i | i ∉ s} (fun i => ‖T (b i)‖ ^ 2) i := by + apply tsum_congr + intro i + simp only [hterm, Set.indicator_apply, Set.mem_ofPred_eq] + _ = _ := (tsum_subtype {i | i ∉ s} (fun i => ‖T (b i)‖ ^ 2)).symm + simpa only [hsum] using norm_le_sqrt_basis_image_sum b (T - basisFiniteRank b T s) hs + +theorem basisFiniteRank_tendsto (b : HilbertBasis ι ℂ E) (T : E →L[ℂ] F) + (hT : Summable fun i => ‖T (b i)‖ ^ 2) : + Tendsto (basisFiniteRank b T) atTop (𝓝 T) := by + have htail : Tendsto (fun s : Finset ι => + Real.sqrt (∑' i : {i // i ∉ s}, ‖T (b i)‖ ^ 2)) atTop (𝓝 0) := by + simpa only [Real.sqrt_zero, Function.comp_def] using + (Real.continuous_sqrt.tendsto 0).comp + (tendsto_tsum_compl_atTop_zero fun i => ‖T (b i)‖ ^ 2) + apply tendsto_iff_norm_sub_tendsto_zero.mpr + apply squeeze_zero (fun _ => norm_nonneg _) _ htail + intro s + rw [norm_sub_rev] + exact norm_sub_basisFiniteRank_le b T hT s + +theorem isCompactOperator_of_summable_basis_image (b : HilbertBasis ι ℂ E) + (T : E →L[ℂ] F) (hT : Summable fun i => ‖T (b i)‖ ^ 2) : + IsCompactOperator T := + isCompactOperator_of_tendsto (basisFiniteRank_tendsto b T hT) + (Eventually.of_forall fun s => basisFiniteRank_isCompactOperator b T s) + +theorem isCompactOperator_of_hilbertSchmidt (b : HilbertBasis ι ℂ E) + (T : E →L[ℂ] F) (hT : basisHilbertSchmidtSquare b T < ∞) : + IsCompactOperator T := by + apply isCompactOperator_of_summable_basis_image b T + have hs := ENNReal.summable_toReal hT.ne + simpa only [basisHilbertSchmidtSquare, ENNReal.toReal_ofReal (sq_nonneg _)] using hs + +theorem positiveTraceClass_sqrt_isCompactOperator {A : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) : IsCompactOperator (CFC.sqrt A : E →L[ℂ] E) := by + obtain ⟨ι, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + apply isCompactOperator_of_hilbertSchmidt b + simpa only [positiveTrace_eq_basisSquareTrace b, basisSquareTrace, + basisHilbertSchmidtSquare] using hA.2 + +theorem positiveTraceClass_isCompactOperator {A : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) : IsCompactOperator A := by + have h := (positiveTraceClass_sqrt_isCompactOperator hA).clm_comp (CFC.sqrt A) + have heq : (CFC.sqrt A).comp (CFC.sqrt A) = A := by + change CFC.sqrt A * CFC.sqrt A = A + rw [← pow_two, CFC.sq_sqrt A hA.1] + simpa only [← ContinuousLinearMap.coe_comp, heq] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtIdeal.lean b/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtIdeal.lean new file mode 100644 index 0000000000..0ad493618a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtIdeal.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtTrace + +/-! +# Operator-ideal bounds for the actual extended trace + +Composition with a bounded operator multiplies a squared Hilbert--Schmidt +sum by at most its squared norm. The rectangular adjoint identity provides +the right-composition bound and the usual positive trace-class sandwich +bound, including infinite extended traces. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {E F G : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + [NormedAddCommGroup G] [InnerProductSpace ℂ G] [CompleteSpace G] + {ι κ : Type*} + +omit [CompleteSpace E] [CompleteSpace F] [CompleteSpace G] in +theorem basisHilbertSchmidtSquare_comp_left_le (b : HilbertBasis ι ℂ E) + (T : E →L[ℂ] F) (B : F →L[ℂ] G) : + basisHilbertSchmidtSquare b (B.comp T) ≤ + ENNReal.ofReal (‖B‖ ^ 2) * basisHilbertSchmidtSquare b T := by + unfold basisHilbertSchmidtSquare + rw [← ENNReal.tsum_mul_left] + apply tsum_le_tsum + intro i + dsimp only + rw [← ENNReal.ofReal_mul (sq_nonneg _)] + apply ENNReal.ofReal_le_ofReal + calc + ‖(B.comp T) (b i)‖ ^ 2 ≤ (‖B‖ * ‖T (b i)‖) ^ 2 := + pow_le_pow_left₀ (norm_nonneg _) (B.le_opNorm _) 2 + _ = ‖B‖ ^ 2 * ‖T (b i)‖ ^ 2 := mul_pow _ _ _ + +theorem basisHilbertSchmidtSquare_comp_right_le (b : HilbertBasis ι ℂ E) + (c : HilbertBasis κ ℂ F) (A : E →L[ℂ] F) (T : F →L[ℂ] G) : + basisHilbertSchmidtSquare b (T.comp A) ≤ + ENNReal.ofReal (‖A‖ ^ 2) * basisHilbertSchmidtSquare c T := by + obtain ⟨s, d, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := G) + rw [basisHilbertSchmidtSquare_adjoint b d, adjoint_comp] + have h := basisHilbertSchmidtSquare_comp_left_le d T.adjoint A.adjoint + rw [basisHilbertSchmidtSquare_adjoint d c, adjoint_adjoint, adjoint.norm_map] at h + exact h + +theorem positiveTrace_adjoint_sandwich_le {S : F →L[ℂ] F} (hS : 0 ≤ S) + (A : E →L[ℂ] F) : + positiveTrace (A.adjoint.comp (S.comp A)) ≤ + ENNReal.ofReal (‖A‖ ^ 2) * positiveTrace S := by + obtain ⟨s, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + obtain ⟨t, c, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := F) + have hs : IsSelfAdjoint (CFC.sqrt S) := (CFC.sqrt_nonneg S).isSelfAdjoint + have heq : (CFC.sqrt S).comp (CFC.sqrt S) = S := by + change CFC.sqrt S * CFC.sqrt S = S + rw [← pow_two, CFC.sq_sqrt S hS] + have hfactor : ((CFC.sqrt S).comp A).adjoint.comp ((CFC.sqrt S).comp A) = + A.adjoint.comp (S.comp A) := by + rw [adjoint_comp, hs.adjoint_eq] + calc + (A.adjoint.comp (CFC.sqrt S)).comp ((CFC.sqrt S).comp A) = + A.adjoint.comp (((CFC.sqrt S).comp (CFC.sqrt S)).comp A) := by + simp only [comp_assoc] + _ = _ := by rw [heq] + rw [← hfactor, positiveTrace_adjoint_comp b] + have h := basisHilbertSchmidtSquare_comp_right_le b c A (CFC.sqrt S) + rw [positiveTrace_eq_basisSquareTrace c] + exact h + +theorem IsPositiveTraceClass.adjoint_sandwich {S : F →L[ℂ] F} + (hS : IsPositiveTraceClass S) (A : E →L[ℂ] F) : + IsPositiveTraceClass (A.adjoint.comp (S.comp A)) := by + refine ⟨?_, (positiveTrace_adjoint_sandwich_le hS.1 A).trans_lt ?_⟩ + · apply ContinuousLinearMap.nonneg_iff_isPositive.mpr + simpa only [comp_assoc] using + (ContinuousLinearMap.nonneg_iff_isPositive.mp hS.1).adjoint_conj A + · exact ENNReal.mul_lt_top ENNReal.ofReal_lt_top hS.2 + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtMatrixExtension.lean b/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtMatrixExtension.lean new file mode 100644 index 0000000000..fd58b03204 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtMatrixExtension.lean @@ -0,0 +1,199 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveMatrixExtension +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtCompact + +/-! +# Actual operators from square-summable infinite matrix coefficients + +A matrix whose full squared coefficient sum is finite defines an actual +Hilbert--Schmidt operator on the full coordinate Hilbert space. Positivity +of its finitely supported form implies positivity of this operator by +density and continuity. Only the square trace is finite: no summability +of the original diagonal and no trace-class assumption on the operator +are imposed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal lp ComplexConjugate ComplexOrder + +variable {ι : Type*} + +/-- Matrix Hilbert schmidt square given by `∑' i, ∑' j, ENNReal.ofReal (‖K i j‖ ^ 2)`. -/ +def matrixHilbertSchmidtSquare (K : Matrix ι ι ℂ) : ℝ≥0∞ := + ∑' i, ∑' j, ENNReal.ofReal (‖K i j‖ ^ 2) + +theorem matrix_row_norm_sq_summable (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) (i : ι) : + Summable fun j => ‖K i j‖ ^ 2 := by + have hi : (∑' j, ENNReal.ofReal (‖K i j‖ ^ 2)) < ∞ := + lt_of_le_of_lt + (le_tsum (f := fun i => ∑' j, ENNReal.ofReal (‖K i j‖ ^ 2)) i) hK + simpa only [ENNReal.toReal_ofReal (sq_nonneg _)] using ENNReal.summable_toReal hi.ne + +/-- The conjugated row is the vector representing the corresponding +complex-linear coordinate functional. -/ +def matrixRowVector (K : Matrix ι ι ℂ) (hK : matrixHilbertSchmidtSquare K < ∞) + (i : ι) : ℓ²(ι, ℂ) := + ⟨fun j => conj (K i j), by + apply (memℓp_gen_iff (by norm_num : 0 < (2 : ℝ≥0∞).toReal)).mpr + simpa only [ENNReal.toReal_ofNat, Complex.norm_conj, Real.rpow_two] + using matrix_row_norm_sq_summable K hK i⟩ + +@[simp] theorem matrixRowVector_apply (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) (i j : ι) : + matrixRowVector K hK i j = conj (K i j) := rfl + +theorem matrixRowVector_norm_sq (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) (i : ι) : + ‖matrixRowVector K hK i‖ ^ 2 = ∑' j, ‖K i j‖ ^ 2 := by + simpa only [ENNReal.toReal_ofNat, Real.rpow_two, matrixRowVector_apply, Complex.norm_conj] using + (lp.hasSum_norm (p := 2) (by norm_num) (matrixRowVector K hK i)).tsum_eq.symm + +theorem ofReal_matrixRowVector_norm_sq (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) (i : ι) : + ENNReal.ofReal (‖matrixRowVector K hK i‖ ^ 2) = + ∑' j, ENNReal.ofReal (‖K i j‖ ^ 2) := by + rw [matrixRowVector_norm_sq] + exact ENNReal.ofReal_tsum_of_nonneg (fun _ => sq_nonneg _) + (matrix_row_norm_sq_summable K hK i) + +theorem matrixRowVector_summable_norm_sq (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) : + Summable fun i => ‖matrixRowVector K hK i‖ ^ 2 := by + have hs := ENNReal.summable_toReal hK.ne + change Summable (fun i => (∑' j, ENNReal.ofReal (‖K i j‖ ^ 2)).toReal) at hs + simpa only [← ofReal_matrixRowVector_norm_sq K hK, + ENNReal.toReal_ofReal (sq_nonneg _)] using hs + +/-- Continuous linear map for the hilbert schmidt matrix operator, of type `ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, +ℂ)`. -/ +def hilbertSchmidtMatrixOperator (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ) := + familyAnalysis (matrixRowVector K hK) (matrixRowVector_summable_norm_sq K hK) + +theorem hilbertSchmidtMatrixOperator_matrix (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) (i j : ι) : + inner ℂ (coordinateHilbertBasis ι i) + (hilbertSchmidtMatrixOperator K hK (coordinateHilbertBasis ι j)) = K i j := by + rw [coordinateHilbertBasis_inner] + change inner ℂ (matrixRowVector K hK i) (coordinateHilbertBasis ι j) = _ + rw [← inner_conj_symm, coordinateHilbertBasis_inner, matrixRowVector_apply] + simp + +theorem hilbertSchmidtMatrixOperator_square (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) : + basisHilbertSchmidtSquare (coordinateHilbertBasis ι) (hilbertSchmidtMatrixOperator K hK) = + matrixHilbertSchmidtSquare K := by + rw [basisHilbertSchmidtSquare_adjoint (coordinateHilbertBasis ι) (coordinateHilbertBasis ι)] + unfold basisHilbertSchmidtSquare matrixHilbertSchmidtSquare hilbertSchmidtMatrixOperator + simp only [familyAnalysis_adjoint_basis, ofReal_matrixRowVector_norm_sq] + +theorem positiveTrace_hilbertSchmidtMatrixOperator_square (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) : + positiveTrace ((hilbertSchmidtMatrixOperator K hK).adjoint.comp + (hilbertSchmidtMatrixOperator K hK)) = matrixHilbertSchmidtSquare K := by + rw [positiveTrace_adjoint_comp (coordinateHilbertBasis ι), hilbertSchmidtMatrixOperator_square] + +theorem hilbertSchmidtMatrixOperator_isCompact (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) : + IsCompactOperator (hilbertSchmidtMatrixOperator K hK) := by + apply isCompactOperator_of_hilbertSchmidt (coordinateHilbertBasis ι) + rwa [hilbertSchmidtMatrixOperator_square] + +theorem coordinate_operator_finite_form (T : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) + (K : Matrix ι ι ℂ) + (hT : ∀ i j, inner ℂ (coordinateHilbertBasis ι i) (T (coordinateHilbertBasis ι j)) = K i j) + (c d : ι →₀ ℂ) : + inner ℂ (Finsupp.linearCombination ℂ (coordinateHilbertBasis ι) c) + (T (Finsupp.linearCombination ℂ (coordinateHilbertBasis ι) d)) = + c.sum fun i ci => d.sum fun j dj => conj ci * K i j * dj := by + classical + induction c using Finsupp.induction_linear with + | zero => simp + | add c₁ c₂ h₁ h₂ => + simp only [map_add, inner_add_left, h₁, h₂] + simp [Finsupp.sum_add_index, add_mul, map_add] + | single i a => + induction d using Finsupp.induction_linear with + | zero => simp + | add d₁ d₂ h₁ h₂ => + simp only [map_add, inner_add_right, h₁, h₂] + simp [Finsupp.sum_add_index, mul_add] + | single j b => + simp [Finsupp.linearCombination_single, map_smul, + hT, mul_comm, mul_left_comm] + +theorem operator_nonneg_of_positive_coordinate_matrix + (T : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) (K : Matrix ι ι ℂ) (hK : K.PosSemidef) + (hT : ∀ i j, inner ℂ (coordinateHilbertBasis ι i) (T (coordinateHilbertBasis ι j)) = K i j) : + 0 ≤ T := by + have hquad (x : ℓ²(ι, ℂ)) : + 0 ≤ (inner ℂ x (T x)).re ∧ (inner ℂ x (T x)).im = 0 := by + have hd := Submodule.dense_iff_topologicalClosure_eq_top.mpr + (coordinateHilbertBasis ι).dense_span + apply hd.induction + (P := fun x => 0 ≤ (inner ℂ x (T x)).re ∧ (inner ℂ x (T x)).im = 0) ?_ ?_ x + · intro y hy + rw [← Finsupp.range_linearCombination] at hy + obtain ⟨c, rfl⟩ := hy + rw [coordinate_operator_finite_form T K hT] + have hc := Complex.nonneg_iff.mp (hK.2 c) + exact ⟨hc.1, hc.2.symm⟩ + · have hre : Continuous (fun x : ℓ²(ι, ℂ) => (inner ℂ x (T x)).re) := by + fun_prop + have him : Continuous (fun x : ℓ²(ι, ℂ) => (inner ℂ x (T x)).im) := by + fun_prop + exact (isClosed_le continuous_const hre).inter + (isClosed_eq him continuous_const) + apply nonneg_iff_isPositive.mpr + apply (ContinuousLinearMap.isPositive_iff_complex T).mpr + intro x + have hre : 0 ≤ (inner ℂ (T x) x).re := by + change 0 ≤ RCLike.re (inner ℂ (T x) x) + rw [inner_re_symm] + exact (hquad x).1 + have him : (inner ℂ (T x) x).im = 0 := by + change RCLike.im (inner ℂ (T x) x) = 0 + rw [inner_im_symm] + exact neg_eq_zero.mpr (hquad x).2 + refine ⟨?_, hre⟩ + apply Complex.ext <;> simp [him] + +theorem hilbertSchmidtMatrixOperator_nonneg (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) (hpos : K.PosSemidef) : + 0 ≤ hilbertSchmidtMatrixOperator K hK := + operator_nonneg_of_positive_coordinate_matrix _ K hpos + (hilbertSchmidtMatrixOperator_matrix K hK) + +/-- The positive extension is unique among bounded operators, and its +actual square trace is the full squared matrix-coefficient sum. -/ +theorem existsUnique_positive_hilbertSchmidt_matrix_extension (K : Matrix ι ι ℂ) + (hK : matrixHilbertSchmidtSquare K < ∞) (hpos : K.PosSemidef) : + ∃! T : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ), 0 ≤ T ∧ + (∀ i j, inner ℂ (coordinateHilbertBasis ι i) (T (coordinateHilbertBasis ι j)) = K i j) ∧ + positiveTrace (T * T) = matrixHilbertSchmidtSquare K := by + let T := hilbertSchmidtMatrixOperator K hK + have hT : 0 ≤ T := hilbertSchmidtMatrixOperator_nonneg K hK hpos + refine ⟨T, ⟨hT, hilbertSchmidtMatrixOperator_matrix K hK, ?_⟩, ?_⟩ + · have hs := positiveTrace_hilbertSchmidtMatrixOperator_square K hK + change positiveTrace (star T * T) = _ at hs + rwa [hT.isSelfAdjoint.star_eq] at hs + · intro A hA + apply operator_eq_of_coordinate_matrix A T + intro i j + rw [hA.2.1 i j, hilbertSchmidtMatrixOperator_matrix] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtTrace.lean new file mode 100644 index 0000000000..17b6d37518 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/HilbertSchmidtTrace.lean @@ -0,0 +1,107 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTrace + +/-! +# Hilbert--Schmidt sums and cyclic positive traces + +The squared Hilbert--Schmidt sum is allowed to be infinite and applies to +bounded maps between different Hilbert spaces. Parseval and Tonelli prove +the adjoint identity and hence `Tr(T†T)=Tr(TT†)`, without finite-rank or +finite-trace assumptions. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + {ι κ : Type*} + +/-- Basis Hilbert schmidt square given by `∑' i, ENNReal.ofReal (‖T (b i)‖ ^ 2)`. -/ +noncomputable def basisHilbertSchmidtSquare (b : HilbertBasis ι ℂ E) (T : E →L[ℂ] F) : + ℝ≥0∞ := ∑' i, ENNReal.ofReal (‖T (b i)‖ ^ 2) + +theorem basisHilbertSchmidtSquare_adjoint (b : HilbertBasis ι ℂ E) + (c : HilbertBasis κ ℂ F) (T : E →L[ℂ] F) : + basisHilbertSchmidtSquare b T = basisHilbertSchmidtSquare c T.adjoint := by + have hentry (i : ι) (j : κ) : + ‖inner ℂ (c j) (T (b i))‖ = ‖inner ℂ (b i) (T.adjoint (c j))‖ := by + rw [← T.adjoint_inner_left, norm_inner_symm] + unfold basisHilbertSchmidtSquare + calc + (∑' i, ENNReal.ofReal (‖T (b i)‖ ^ 2)) = + ∑' i, ∑' j, ENNReal.ofReal (‖inner ℂ (c j) (T (b i))‖ ^ 2) := by + exact tsum_congr fun i => (tsum_basis_inner_norm_sq c (T (b i))).symm + _ = ∑' j, ∑' i, ENNReal.ofReal (‖inner ℂ (c j) (T (b i))‖ ^ 2) := + tsum_comm + _ = ∑' j, ∑' i, ENNReal.ofReal (‖inner ℂ (b i) (T.adjoint (c j))‖ ^ 2) := by + exact tsum_congr fun j => tsum_congr fun i => by rw [hentry] + _ = ∑' j, ENNReal.ofReal (‖T.adjoint (c j)‖ ^ 2) := by + exact tsum_congr fun j => tsum_basis_inner_norm_sq b (T.adjoint (c j)) + +theorem basisHilbertSchmidtSquare_eq (b : HilbertBasis ι ℂ E) + (c : HilbertBasis κ ℂ E) (T : E →L[ℂ] F) : + basisHilbertSchmidtSquare b T = basisHilbertSchmidtSquare c T := by + obtain ⟨s, d, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := F) + rw [basisHilbertSchmidtSquare_adjoint b d T, + basisHilbertSchmidtSquare_adjoint d c T.adjoint, adjoint_adjoint] + +theorem positiveTrace_adjoint_comp (b : HilbertBasis ι ℂ E) (T : E →L[ℂ] F) : + positiveTrace (T.adjoint.comp T) = basisHilbertSchmidtSquare b T := by + rw [positiveTrace_eq_tsum_diagonal b + (ContinuousLinearMap.nonneg_iff_isPositive.mpr (isPositive_adjoint_comp_self T))] + unfold basisHilbertSchmidtSquare + apply tsum_congr + intro i + rw [comp_apply, adjoint_inner_right, inner_self_eq_norm_sq_to_K] + simp only [RCLike.ofReal_eq_complex_ofReal, ← Complex.ofReal_pow, Complex.ofReal_re] + +/-- The positive cyclic trace identity on genuine possibly different +infinite-dimensional Hilbert spaces. -/ +theorem positiveTrace_adjoint_comp_eq_comp_adjoint (T : E →L[ℂ] F) : + positiveTrace (T.adjoint.comp T) = positiveTrace (T.comp T.adjoint) := by + obtain ⟨s, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + obtain ⟨t, c, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := F) + rw [positiveTrace_adjoint_comp b T, basisHilbertSchmidtSquare_adjoint b c T] + have h := positiveTrace_adjoint_comp c T.adjoint + simpa only [adjoint_adjoint] using h.symm + +theorem positiveTrace_sqrt_sandwich_swap {A B : E →L[ℂ] E} + (hA : 0 ≤ A) (hB : 0 ≤ B) : + positiveTrace (CFC.sqrt A * B * CFC.sqrt A) = + positiveTrace (CFC.sqrt B * A * CFC.sqrt B) := by + have hsA := (CFC.sqrt_nonneg A).isSelfAdjoint + have hsB := (CFC.sqrt_nonneg B).isSelfAdjoint + have hAA : CFC.sqrt A * CFC.sqrt A = A := by rw [← pow_two, CFC.sq_sqrt A hA] + have hBB : CFC.sqrt B * CFC.sqrt B = B := by rw [← pow_two, CFC.sq_sqrt B hB] + have hleft : (CFC.sqrt B * CFC.sqrt A).adjoint.comp (CFC.sqrt B * CFC.sqrt A) = + CFC.sqrt A * B * CFC.sqrt A := by + change star (CFC.sqrt B * CFC.sqrt A) * (CFC.sqrt B * CFC.sqrt A) = _ + rw [star_mul, hsA.star_eq, hsB.star_eq] + calc + (CFC.sqrt A * CFC.sqrt B) * (CFC.sqrt B * CFC.sqrt A) = + CFC.sqrt A * (CFC.sqrt B * CFC.sqrt B) * CFC.sqrt A := by noncomm_ring + _ = _ := by rw [hBB] + have hright : (CFC.sqrt B * CFC.sqrt A).comp (CFC.sqrt B * CFC.sqrt A).adjoint = + CFC.sqrt B * A * CFC.sqrt B := by + change (CFC.sqrt B * CFC.sqrt A) * star (CFC.sqrt B * CFC.sqrt A) = _ + rw [star_mul, hsA.star_eq, hsB.star_eq] + calc + (CFC.sqrt B * CFC.sqrt A) * (CFC.sqrt A * CFC.sqrt B) = + CFC.sqrt B * (CFC.sqrt A * CFC.sqrt A) * CFC.sqrt B := by noncomm_ring + _ = _ := by rw [hAA] + rw [← hleft, positiveTrace_adjoint_comp_eq_comp_adjoint, hright] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/IndexedDiagonalDensity.lean b/LeanPool/VacuumBellSeparation/Gaussian/IndexedDiagonalDensity.lean new file mode 100644 index 0000000000..cafe6b654d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/IndexedDiagonalDensity.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowers + +/-! +# Summable diagonal densities indexed by an arbitrary Hilbert basis + +This generalizes the number-sequence rank-one construction to arbitrary +basis indices, including the multi-indices of a finite-mode oscillator. +All evaluation and trace statements require actual summability. The +sequence construction agrees definitionally at index ℕ. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap InnerProductSpace +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] {ι : Type*} + +/-- A diagonal operator specified by an absolutely summable real family. +The convergence hypothesis is required in the evaluation theorems. -/ +noncomputable def indexedDiagonalOperator (b : HilbertBasis ι ℂ E) (w : ι → ℝ) : + E →L[ℂ] E := ∑' k, w k • rankOne ℂ (b k) (b k) + +theorem summable_indexedDiagonalOperator_terms (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) : + Summable fun k => w k • rankOne ℂ (b k) (b k) := by + apply Summable.of_norm + simpa only [norm_smul, norm_rankOne, b.orthonormal.norm_eq_one, mul_one] using hw.norm + +theorem indexedDiagonalOperator_nonneg (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : ∀ k, 0 ≤ w k) : 0 ≤ indexedDiagonalOperator b w := by + apply tsum_nonneg + intro k + exact smul_nonneg (hw k) + (ContinuousLinearMap.nonneg_iff_isPositive.mpr (isPositive_rankOne_self (b k))) + +theorem indexedDiagonalOperator_apply_basis (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) (k : ι) : + indexedDiagonalOperator b w (b k) = w k • b k := by + classical + rw [indexedDiagonalOperator, tsum_apply (summable_indexedDiagonalOperator_terms b hw)] + rw [tsum_eq_single k] + · simp [rankOne_apply, inner_self_eq_norm_sq_to_K, b.orthonormal.norm_eq_one] + · intro j hj + simp [rankOne_apply, b.orthonormal.inner_eq_zero hj] + +theorem indexedDiagonalOperator_inner (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) (hw₀ : ∀ k, 0 ≤ w k) (x : E) (k : ι) : + inner ℂ (b k) (indexedDiagonalOperator b w x) = + (w k : ℂ) * inner ℂ (b k) x := by + have hA := (indexedDiagonalOperator_nonneg b hw₀).isSelfAdjoint + simpa only [hA.adjoint_eq, indexedDiagonalOperator_apply_basis b hw, + inner_smul_left_eq_smul, Algebra.smul_def, Complex.coe_algebraMap] using + ((indexedDiagonalOperator b w).adjoint_inner_left x (b k)).symm + +theorem indexedDiagonalOperator_injective (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) (hwpos : ∀ k, 0 < w k) : + Function.Injective (indexedDiagonalOperator b w) := by + intro x y hxy + apply b.repr.injective + ext k + rw [b.repr_apply_apply, b.repr_apply_apply] + have h := congrArg (fun z => inner ℂ (b k) z) hxy + rw [indexedDiagonalOperator_inner b hw (fun k => (hwpos k).le), + indexedDiagonalOperator_inner b hw (fun k => (hwpos k).le)] at h + exact mul_left_cancel₀ (Complex.ofReal_ne_zero.mpr (ne_of_gt (hwpos k))) h + +theorem positiveTrace_indexedDiagonalOperator (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) (hw₀ : ∀ k, 0 ≤ w k) : + positiveTrace (indexedDiagonalOperator b w) = ENNReal.ofReal (∑' k, w k) := by + rw [positiveTrace_eq_tsum_diagonal b (indexedDiagonalOperator_nonneg b hw₀), + ENNReal.ofReal_tsum_of_nonneg hw₀ hw] + apply tsum_congr + intro k + rw [indexedDiagonalOperator_apply_basis b hw, inner_smul_right_eq_smul, + inner_self_eq_norm_sq_to_K, b.orthonormal.norm_eq_one] + simp [Algebra.smul_def] + +omit [CompleteSpace E] in +theorem indexedDiagonalOperator_nat_eq (b : HilbertBasis ℕ ℂ E) (w : ℕ → ℝ) : + indexedDiagonalOperator b w = diagonalOperator b w := rfl + +theorem indexedDiagonalOperator_rpow_apply_basis (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) (hw₀ : ∀ i, 0 ≤ w i) + {τ : ℝ} (hτ : 0 < τ) (i : ι) : + (indexedDiagonalOperator b w ^ τ) (b i) = w i ^ τ • b i := by + have hi : b i ≠ 0 := by + intro hz + have hn := b.orthonormal.norm_eq_one i + rw [hz, norm_zero] at hn + norm_num at hn + have heig := indexedDiagonalOperator_apply_basis b hw i + exact rpow_apply_eigenvector (indexedDiagonalOperator_nonneg b hw₀) + (eigenvalue_mem_real_spectrum hi heig) heig hτ + +theorem positiveTrace_indexedDiagonalOperator_rpow (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) (hw₀ : ∀ i, 0 ≤ w i) + {τ : ℝ} (hτ : 0 < τ) (hs : Summable fun i => w i ^ τ) : + positiveTrace (indexedDiagonalOperator b w ^ τ) = ENNReal.ofReal (∑' i, w i ^ τ) := by + rw [positiveTrace_eq_tsum_diagonal b CFC.rpow_nonneg, + ENNReal.ofReal_tsum_of_nonneg (fun i => Real.rpow_nonneg (hw₀ i) τ) hs] + apply tsum_congr + intro i + rw [indexedDiagonalOperator_rpow_apply_basis b hw hw₀ hτ, + inner_smul_right_eq_smul, inner_self_eq_norm_sq_to_K, b.orthonormal.norm_eq_one] + simp [Algebra.smul_def] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/IndexedDiagonalState.lean b/LeanPool/VacuumBellSeparation/Gaussian/IndexedDiagonalState.lean new file mode 100644 index 0000000000..3aa7d960b4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/IndexedDiagonalState.lean @@ -0,0 +1,168 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.IndexedDiagonalDensity +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalState + +/-! +# Probability-weighted diagonal states on arbitrary Hilbert bases + +This extends the actual number-basis series construction to arbitrary +Hilbert-basis indices. Absolute convergence defines the complex state; +positive inputs agree with the positive trace of the actual square-root +sandwich. The existing natural-index proof is reused with index generality, +without treating the positive trace as a complex trace on arbitrary inputs. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ComplexOrder ENNReal + +variable {ι : Type*} + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] + +/-- Indexed diagonal expectation given by `∑' k, (w k : ℂ) * inner ℂ (b k) (A (b k))`. -/ +noncomputable def indexedDiagonalExpectation (b : HilbertBasis ι ℂ E) (w : ι → ℝ) + (A : E →L[ℂ] E) : ℂ := ∑' k, (w k : ℂ) * inner ℂ (b k) (A (b k)) + +omit [CompleteSpace E] in +theorem norm_indexedDiagonalExpectation_term_le (b : HilbertBasis ι ℂ E) + (w : ι → ℝ) (A : E →L[ℂ] E) (k : ι) : + ‖(w k : ℂ) * inner ℂ (b k) (A (b k))‖ ≤ |w k| * ‖A‖ := by + rw [norm_mul, Complex.norm_real, Real.norm_eq_abs] + apply mul_le_mul_of_nonneg_left _ (abs_nonneg _) + calc + ‖inner ℂ (b k) (A (b k))‖ ≤ ‖b k‖ * ‖A (b k)‖ := norm_inner_le_norm _ _ + _ ≤ ‖b k‖ * (‖A‖ * ‖b k‖) := mul_le_mul_of_nonneg_left (A.le_opNorm _) (norm_nonneg _) + _ = ‖A‖ := by rw [b.orthonormal.norm_eq_one]; ring + +omit [CompleteSpace E] in +theorem summable_indexedDiagonalExpectation_terms (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) (A : E →L[ℂ] E) : + Summable fun k => (w k : ℂ) * inner ℂ (b k) (A (b k)) := by + have hwabs : Summable fun k => |w k| := by + simpa only [Real.norm_eq_abs] using hw.norm + apply (hwabs.mul_right ‖A‖).of_norm_bounded + exact norm_indexedDiagonalExpectation_term_le b w A + +omit [CompleteSpace E] in +theorem norm_indexedDiagonalExpectation_le (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) (A : E →L[ℂ] E) : + ‖indexedDiagonalExpectation b w A‖ ≤ (∑' k, |w k|) * ‖A‖ := by + have hwabs : Summable fun k => |w k| := by + simpa only [Real.norm_eq_abs] using hw.norm + exact tsum_of_norm_bounded (hwabs.hasSum.mul_right ‖A‖) + (norm_indexedDiagonalExpectation_term_le b w A) + +/-- Continuous linear map for the indexed diagonal expectation linear, of type `(E →L[ℂ] E) →ₗ[ℂ] ℂ +where toFun`. -/ +noncomputable def indexedDiagonalExpectationLinear (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) : (E →L[ℂ] E) →ₗ[ℂ] ℂ where + toFun := indexedDiagonalExpectation b w + map_add' A B := by + simp only [indexedDiagonalExpectation, add_apply, inner_add_right, mul_add] + exact Summable.tsum_add (summable_indexedDiagonalExpectation_terms b hw A) + (summable_indexedDiagonalExpectation_terms b hw B) + map_smul' c A := by + simp only [indexedDiagonalExpectation, smul_apply, inner_smul_right, RingHom.id_apply, + smul_eq_mul] + simp_rw [mul_left_comm (w _ : ℂ) c] + exact tsum_mul_left + +/-- Indexed diagonal expectation continuous linear map of type `(E →L[ℂ] E) →L[ℂ] ℂ`. -/ +noncomputable def indexedDiagonalExpectationCLM (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) : (E →L[ℂ] E) →L[ℂ] ℂ := + (indexedDiagonalExpectationLinear b hw).mkContinuous (∑' k, |w k|) + (norm_indexedDiagonalExpectation_le b hw) + +omit [CompleteSpace E] in +@[simp] theorem indexedDiagonalExpectationCLM_apply (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) (A : E →L[ℂ] E) : + indexedDiagonalExpectationCLM b hw A = indexedDiagonalExpectation b w A := rfl + +omit [CompleteSpace E] in +theorem indexedDiagonalExpectation_one (b : HilbertBasis ι ℂ E) (w : ι → ℝ) : + indexedDiagonalExpectation b w 1 = (∑' k, w k : ℝ) := by + simp only [indexedDiagonalExpectation, one_apply_eq_self, inner_self_eq_norm_sq_to_K, + b.orthonormal.norm_eq_one, RCLike.ofReal_one, one_pow, mul_one] + exact (Complex.ofReal_tsum w).symm + +omit [CompleteSpace E] in +theorem indexedDiagonalExpectation_nonneg (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : ∀ k, 0 ≤ w k) {A : E →L[ℂ] E} (hA : 0 ≤ A) : + 0 ≤ indexedDiagonalExpectation b w A := by + apply tsum_nonneg + intro k + exact mul_nonneg (Complex.zero_le_real.mpr (hw k)) + ((ContinuousLinearMap.nonneg_iff_isPositive.mp hA).inner_nonneg_right (b k)) + +/-- A probability-weighted diagonal series is a state on the actual bounded +operator algebra. Normality is not being asserted by this bundled type. -/ +noncomputable def indexedDiagonalState (b : HilbertBasis ι ℂ E) {w : ι → ℝ} + (hw : Summable w) (hw₀ : ∀ k, 0 ≤ w k) (hw₁ : ∑' k, w k = 1) : State E where + toLinearMap := indexedDiagonalExpectationLinear b hw + map_one' := by + change indexedDiagonalExpectation b w 1 = 1 + simpa only [hw₁, Complex.ofReal_one] using indexedDiagonalExpectation_one b w + map_nonneg' A hA := by + have h := Complex.nonneg_iff.mp (indexedDiagonalExpectation_nonneg b hw₀ + (ContinuousLinearMap.nonneg_iff_isPositive.mpr hA)) + exact ⟨h.2.symm, h.1⟩ + +theorem sqrt_indexedDiagonalOperator_apply_basis (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) (hw₀ : ∀ k, 0 ≤ w k) (k : ι) : + CFC.sqrt (indexedDiagonalOperator b w) (b k) = Real.sqrt (w k) • b k := by + have hk : b k ≠ 0 := by + intro hz + have hn := b.orthonormal.norm_eq_one k + rw [hz, norm_zero] at hn + norm_num at hn + have heig := indexedDiagonalOperator_apply_basis b hw k + rw [CFC.sqrt_eq_rpow, Real.sqrt_eq_rpow] + exact rpow_apply_eigenvector (indexedDiagonalOperator_nonneg b hw₀) + (eigenvalue_mem_real_spectrum hk heig) heig (by norm_num) + +theorem positiveTrace_indexedDiagonal_sandwich (b : HilbertBasis ι ℂ E) + {w : ι → ℝ} (hw : Summable w) (hw₀ : ∀ k, 0 ≤ w k) + {A : E →L[ℂ] E} (hA : 0 ≤ A) : + positiveTrace (CFC.sqrt (indexedDiagonalOperator b w) * A * CFC.sqrt + (indexedDiagonalOperator b w)) = + ENNReal.ofReal (indexedDiagonalExpectation b w A).re := by + let S := CFC.sqrt (indexedDiagonalOperator b w) + have hs : IsSelfAdjoint S := (CFC.sqrt_nonneg _).isSelfAdjoint + have hdiag (k : ι) : inner ℂ (b k) ((S * A * S) (b k)) = + (w k : ℂ) * inner ℂ (b k) (A (b k)) := by + calc + inner ℂ (b k) ((S * A * S) (b k)) = + inner ℂ (S (b k)) (A (S (b k))) := by + rw [mul_apply_eq_comp, mul_apply_eq_comp, + ← S.adjoint_inner_left, hs.adjoint_eq] + _ = _ := by + change inner ℂ (CFC.sqrt (indexedDiagonalOperator b w) (b k)) + (A (CFC.sqrt (indexedDiagonalOperator b w) (b k))) = _ + rw [sqrt_indexedDiagonalOperator_apply_basis b hw hw₀, + map_smul_of_tower, inner_smul_left_eq_smul, inner_smul_right_eq_smul] + simp only [Algebra.smul_def, Complex.coe_algebraMap] + rw [← mul_assoc, ← Complex.ofReal_mul, Real.mul_self_sqrt (hw₀ k)] + rw [positiveTrace_eq_tsum_diagonal b + (conjugate_nonneg_of_nonneg hA (CFC.sqrt_nonneg _))] + change (∑' k, ENNReal.ofReal (inner ℂ (b k) ((S * A * S) (b k))).re) = _ + simp_rw [hdiag] + have hnonneg (k : ι) : 0 ≤ ((w k : ℂ) * inner ℂ (b k) (A (b k))).re := + (Complex.nonneg_iff.mp (mul_nonneg (Complex.zero_le_real.mpr (hw₀ k)) + ((ContinuousLinearMap.nonneg_iff_isPositive.mp hA).inner_nonneg_right _))).1 + have hsum := Complex.hasSum_re (summable_indexedDiagonalExpectation_terms b hw A).hasSum + rw [← ENNReal.ofReal_tsum_of_nonneg hnonneg hsum.summable, hsum.tsum_eq] + rfl + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/InfiniteRenyiInterpolation.lean b/LeanPool/VacuumBellSeparation/Gaussian/InfiniteRenyiInterpolation.lean new file mode 100644 index 0000000000..e08e178d28 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/InfiniteRenyiInterpolation.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpectralBasisCompression +public import LeanPool.VacuumBellSeparation.Gaussian.SquareTraceFiniteBlocks +public import LeanPool.VacuumBellSeparation.Gaussian.LowerPowerSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPositivePowers + +/-! +# Actual infinite-dimensional sandwiched Renyi interpolation + +For faithful densities and r>=2, finite spectral reference compressions, +the genuine finite Hadamard theorem, compression trace-power Jensen and +nonnegative full square-block convergence prove Q2<=Qr^(1/(r-1)). The Q2 +sandwich is constructed directly from the Qr sandwich by a nonnegative +reference power. No finite-dimensional substitute, bounded inverse of the +density, trace-class sandwich or assumed interpolation premise occurs. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Matrix +open scoped ENNReal ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem finite_spectral_sandwich_square_bound + {κ : Type*} [Fintype κ] [DecidableEq κ] (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hfinj : Function.Injective f) {ρ σ Θ Ξ : E →L[ℂ] E} + (hρ : IsFaithfulDensity ρ) (hσ : IsFaithfulDensity σ) + {a : ι → ℝ} (ha : ∀ j, σ (b j) = a j • b j) {r : ℝ} (hr : 2 ≤ r) + (hΘ : 0 ≤ Θ) (hcΘ : IsCompactOperator Θ) + (hfΘ : σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ) + (hfΞ : σ ^ ((1 / 2 : ℝ) / 2) * Ξ * σ ^ ((1 / 2 : ℝ) / 2) = ρ) : + finitePositivePowerTrace (finiteBasisCompression b f hfinj Ξ) 2 ≤ + positiveTrace (Θ ^ r) ^ (1 / (r - 1)) := by + have hr₁ : 1 < r := by linarith + have hexp : 0 ≤ 1 / (r - 1) := (one_div_pos.mpr (sub_pos.mpr hr₁)).le + let R := finiteBasisCompression b f hfinj ρ + let S := finiteBasisCompression b f hfinj σ + have hR : R.PosDef := finiteBasisCompression_posDef b f hfinj hρ.1 hρ.2.2 + have hS : S.PosDef := finiteBasisCompression_posDef b f hfinj hσ.1 hσ.2.2 + have hRt : R.trace.re ≤ 1 := by + apply ENNReal.ofReal_le_one.mp + have h := finiteBasisCompression_trace_le b f hfinj hρ.1 + simpa only [hρ.2.1] using h + have hfinite := finite_sandwichedRenyi_interpolation hR hS hRt hr + have hbase : 0 ≤ ((finiteRenyiSandwich R S (gaussianRenyiTau r)) ^ r).trace.re := + real_trace_positive_rpow_nonneg (finiteRenyiSandwich_posDef hR hS _) r + have hbound := ENNReal.ofReal_le_ofReal hfinite + change finitePositivePowerTrace (finiteRenyiSandwich R S (1 / 2)) 2 ≤ + ENNReal.ofReal (((finiteRenyiSandwich R S (gaussianRenyiTau r)) ^ r).trace.re ^ + (1 / (r - 1))) at hbound + rw [← ENNReal.ofReal_rpow_of_nonneg hbase hexp] at hbound + change finitePositivePowerTrace (finiteRenyiSandwich R S (1 / 2)) 2 ≤ + finitePositivePowerTrace (finiteRenyiSandwich R S (gaussianRenyiTau r)) r ^ + (1 / (r - 1)) at hbound + have htwo := finiteBasisCompression_eq_finiteRenyiSandwich b f hfinj hσ.1 hσ.2.2 ha + (by norm_num : (0 : ℝ) < 1 / 2) hfΞ + have hhigh := finiteBasisCompression_eq_finiteRenyiSandwich b f hfinj hσ.1 hσ.2.2 ha + (gaussianRenyiTau_pos hr₁) hfΘ + change finiteRenyiSandwich R S (1 / 2) = _ at htwo + change finiteRenyiSandwich R S (gaussianRenyiTau r) = _ at hhigh + rw [htwo, hhigh] at hbound + exact hbound.trans (ENNReal.rpow_le_rpow + (finiteBasisCompression_power_trace_le b f hfinj hcΘ hΘ (by linarith)) hexp) + +theorem lowerPowerSandwich_square_trace_bound (b : HilbertBasis ι ℂ E) + {ρ σ Θ : E →L[ℂ] E} (hρ : IsFaithfulDensity ρ) (hσ : IsFaithfulDensity σ) + {a : ι → ℝ} (ha : ∀ j, σ (b j) = a j • b j) {r : ℝ} (hr : 2 ≤ r) + (hΘ : 0 ≤ Θ) (hcΘ : IsCompactOperator Θ) + (hfΘ : σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ) : + positiveTrace ((lowerPowerSandwich σ Θ (gaussianRenyiTau r) (1 / 2)) ^ (2 : ℝ)) ≤ + positiveTrace (Θ ^ r) ^ (1 / (r - 1)) := by + classical + apply positiveTrace_square_le_of_finite_compressions b (lowerPowerSandwich_nonneg hΘ _ _) + intro s + exact finite_spectral_sandwich_square_bound b (fun i : s => (i : ι)) Subtype.val_injective + hρ hσ ha hr hΘ hcΘ hfΘ + (lowerPowerSandwich_factorization hσ.1 (by norm_num) (gaussianRenyiTau_ge_half hr) hfΘ) + +/-- The actual full Hilbert-space interpolation comparison for faithful +input/reference densities, including infinite Qr. -/ +theorem faithful_sandwichedRenyi_interpolation {ρ σ : E →L[ℂ] E} + (hρ : IsFaithfulDensity ρ) (hσ : IsFaithfulDensity σ) {r : ℝ} (hr : 2 ≤ r) : + sandwichedRenyiQuantity ρ σ 2 ≤ sandwichedRenyiQuantity ρ σ r ^ (1 / (r - 1)) := by + have hr₁ : 1 < r := by linarith + by_cases hQ : sandwichedRenyiQuantity ρ σ r = ∞ + · rw [hQ, ENNReal.top_rpow_of_pos (one_div_pos.mpr (sub_pos.mpr hr₁))] + exact le_top + have hext : ∃ Θ : E →L[ℂ] E, 0 ≤ Θ ∧ + σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ := by + by_contra hn + exact hQ (sandwichedRenyiQuantity_eq_top_of_no_extension hn) + obtain ⟨Θ, hΘ, hfΘ⟩ := hext + have hQt := sandwichedRenyiQuantity_eq_power_trace hσ hr₁ hΘ hfΘ + have htΘ : positiveTrace (Θ ^ r) < ∞ := by + rw [← hQt] + exact lt_top_iff_ne_top.mpr hQ + have hcΘ := isCompactOperator_of_finite_positive_power_trace hΘ + (lt_trans zero_lt_one hr₁) htΘ + have hcσ := positiveTraceClass_isCompactOperator hσ.isPositiveTraceClass + let b := compactSelfAdjointBasis hcσ hσ.1.isSelfAdjoint + have heig (j : operatorEigenIndex σ) : σ (b j) = j.1.re • b j := by + simpa only [RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal] using + compactSelfAdjointBasis_apply_operator hcσ hσ.1.isSelfAdjoint j + rw [hQt, renyiTwo_lowerPowerSandwich hσ hr hΘ hfΘ] + exact lowerPowerSandwich_square_trace_bound b hρ hσ heig hr hΘ hcΘ hfΘ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/InterpolatedReserveSeries.lean b/LeanPool/VacuumBellSeparation/Gaussian/InterpolatedReserveSeries.lean new file mode 100644 index 0000000000..0b0703721b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/InterpolatedReserveSeries.lean @@ -0,0 +1,81 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ReserveTraceInterpolation +public import LeanPool.VacuumBellSeparation.Gaussian.ReserveNuclearSeries + +/-! +# Actual nuclear summation after reserve interpolation + +The same explicit interpolated operators are summed in the true operator +norm. Their nuclear estimates are consequences of the proved interpolation +theorem, and the original series identifies the resulting reserve factor. +Only the numerical endpoint bounds and their genuine summability remain +inputs for the polynomial approximation application. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem exists_reserve_factor_of_interpolated_series + {R D : E →L[ℂ] E} {B G : ι → E →L[ℂ] E} + (hR : 0 ≤ R) (hcB : ∀ i, IsCompactOperator (B i)) + (hB : ∀ i, IsSelfAdjoint (B i)) (htB : ∀ i, operatorTraceNorm (B i) < ∞) + (hfactor : ∀ i, R ^ (1 / 2 : ℝ) * B i * R ^ (1 / 2 : ℝ) = G i) + (hG : HasSum G D) {θ : ℝ} (hθ : θ ∈ Set.Ioo (0 : ℝ) 1) + (ht : (∑' i, operatorTraceNorm (G i) ^ (1 - θ) * operatorTraceNorm (B i) ^ θ) < ∞) : + ∃ Y : E →L[ℂ] E, D = R ^ (θ / 2) * Y * R ^ (θ / 2) ∧ + IsCompactOperator Y ∧ IsSelfAdjoint Y ∧ + operatorTraceNorm Y ≤ ∑' i, operatorTraceNorm (G i) ^ (1 - θ) * operatorTraceNorm (B i) ^ θ ∧ + operatorTraceNorm Y < ∞ := by + classical + let Z (i : ι) := R ^ ((1 - θ) / 2) * B i * R ^ ((1 - θ) / 2) + have hS : IsSelfAdjoint (R ^ ((1 - θ) / 2)) := CFC.rpow_nonneg.isSelfAdjoint + have hcZ (i : ι) : IsCompactOperator (Z i) := + ((hcB i).clm_comp (R ^ ((1 - θ) / 2))).comp_clm (R ^ ((1 - θ) / 2)) + have hsZ (i : ι) : IsSelfAdjoint (Z i) := selfAdjoint_sandwich_isSelfAdjoint (hB i) hS + have hZi (i : ι) : operatorTraceNorm (Z i) ≤ + operatorTraceNorm (G i) ^ (1 - θ) * operatorTraceNorm (B i) ^ θ := by + simpa only [hfactor i] using operatorTraceNorm_reserve_interpolation hR (hcB i) (hB i) + (htB i) hθ + have hsum : (∑' i, operatorTraceNorm (Z i)) ≤ + ∑' i, operatorTraceNorm (G i) ^ (1 - θ) * operatorTraceNorm (B i) ^ θ := + tsum_le_tsum hZi + obtain ⟨Y, hf, hc, hs, hn, hfin⟩ := exists_reserve_factor_of_nuclear_series (R ^ (θ / 2)) + hG (fun i => ((reserve_power_interpolation_factorization hR (B i) ⟨hθ.1.le, hθ.2.le⟩).trans + (hfactor i)).symm) hcZ hsZ (hsum.trans_lt ht) + exact ⟨Y, hf, hc, hs, hn.trans hsum, hfin⟩ + +theorem exists_reserve_factor_of_interpolated_majorants + {R D : E →L[ℂ] E} {B G : ι → E →L[ℂ] E} + (hR : 0 ≤ R) (hcB : ∀ i, IsCompactOperator (B i)) + (hB : ∀ i, IsSelfAdjoint (B i)) (htB : ∀ i, operatorTraceNorm (B i) < ∞) + (hfactor : ∀ i, R ^ (1 / 2 : ℝ) * B i * R ^ (1 / 2 : ℝ) = G i) + (hG : HasSum G D) {θ : ℝ} (hθ : θ ∈ Set.Ioo (0 : ℝ) 1) + (a b : ι → ℝ≥0∞) (ha : ∀ i, operatorTraceNorm (G i) ≤ a i) + (hb : ∀ i, operatorTraceNorm (B i) ≤ b i) + (ht : (∑' i, a i ^ (1 - θ) * b i ^ θ) < ∞) : + ∃ Y : E →L[ℂ] E, D = R ^ (θ / 2) * Y * R ^ (θ / 2) ∧ + IsCompactOperator Y ∧ IsSelfAdjoint Y ∧ + operatorTraceNorm Y ≤ ∑' i, a i ^ (1 - θ) * b i ^ θ ∧ operatorTraceNorm Y < ∞ := by + have hm : (∑' i, operatorTraceNorm (G i) ^ (1 - θ) * operatorTraceNorm (B i) ^ θ) ≤ + ∑' i, a i ^ (1 - θ) * b i ^ θ := by + apply tsum_le_tsum + intro i + exact mul_le_mul' (ENNReal.rpow_le_rpow (ha i) (sub_nonneg.mpr hθ.2.le)) + (ENNReal.rpow_le_rpow (hb i) hθ.1.le) + obtain ⟨Y, hf, hc, hs, hn, hfin⟩ := exists_reserve_factor_of_interpolated_series + hR hcB hB htB hfactor hG hθ (hm.trans_lt ht) + exact ⟨Y, hf, hc, hs, hn.trans hm, hfin⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/IntrinsicGaussianPerturbationDefs.lean b/LeanPool/VacuumBellSeparation/Gaussian/IntrinsicGaussianPerturbationDefs.lean new file mode 100644 index 0000000000..6017fc345d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/IntrinsicGaussianPerturbationDefs.lean @@ -0,0 +1,46 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianCovarianceUniqueness +public import LeanPool.VacuumBellSeparation.Gaussian.RelativeCovarianceCongruence + +/-! +# Actual normalized-power covariance increment and intrinsic perturbation + +This construction is separated from its later specification proofs. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped Matrix.Norms.L2Operator + +variable {m : ℕ} +variable {ρ σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} +variable {Vρ Vσ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +/-- Gaussian power increment defined as `normalizedGaussianPowerCovariance σ τ - +gaussianPhysicalCovariance σ`. -/ +def gaussianPowerIncrement + (σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) (τ : ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + normalizedGaussianPowerCovariance σ τ - gaussianPhysicalCovariance σ + +/-- Intrinsic Gaussian relative perturbation. -/ +def intrinsicGaussianRelativePerturbation + (ρ σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) (τ : ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + relativeCovariancePerturbation (gaussianPowerIncrement σ τ) + (gaussianPhysicalCovariance ρ - gaussianPhysicalCovariance σ) + + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/IntrinsicGaussianRenyiBound.lean b/LeanPool/VacuumBellSeparation/Gaussian/IntrinsicGaussianRenyiBound.lean new file mode 100644 index 0000000000..d6fe57635d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/IntrinsicGaussianRenyiBound.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.IntrinsicGaussianPerturbationDefs +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianFaithfulRenyiComparison +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianCovarianceUniqueness + +/-! +# Intrinsic finite-mode Gaussian Rényi bound + +The perturbation uses the unique physical covariances of the actual +states and of the actual normalized reference power. The final statement +contains no chosen Williamson coordinates, no separately assumed quantum +uncertainty, and no derivative premise. The reference power increment is +proved positive definite for 0 (hq₀ j).le) hq₁ + hσ.isPositiveTraceClass hVσ hGσ hcov hτ₀] + exact transportedThermalIncrement_posDef S hS hq₀ hq₁ hτ₀ hτ₁ + +/-- The finite-mode source Gaussian Rényi estimate for the actual faithful +states and their intrinsic normalized-power covariance perturbation. -/ +theorem faithful_gaussian_renyi_bound + (hρ : IsFaithfulDensity ρ) (hσ : IsFaithfulDensity σ) + (hVρ : Vρ.IsHermitian) (hVσ : Vσ.IsHermitian) + (hGρ : HasGaussianPhysicalCharacteristic ρ Vρ) + (hGσ : HasGaussianPhysicalCharacteristic σ Vσ) + {r : ℝ} (hr : 1 < r) + (hsmall : ‖intrinsicGaussianRelativePerturbation ρ σ (gaussianRenyiTau r)‖ ≤ + (4 * max 2 (gaussianRenyiTau r)⁻¹)⁻¹) : + 0 < sandwichedRenyiQuantity ρ σ r ∧ sandwichedRenyiQuantity ρ σ r < ⊤ ∧ + Real.log (sandwichedRenyiQuantity ρ σ r).toReal ≤ + 2 * r * max 2 (gaussianRenyiTau r)⁻¹ * + matrixTraceNorm (intrinsicGaussianRelativePerturbation ρ σ (gaussianRenyiTau r)) := by + obtain ⟨q, S, hS, hq₀, hq₁, hcov, hpower, hcomp⟩ := + exists_faithful_gaussian_renyi_comparison hρ hσ hVρ hVσ hGρ hGσ + have he := intrinsicGaussianRelativePerturbation_in_coordinates S hS + (fun j => (hq₀ j).le) hq₁ hσ.isPositiveTraceClass hVρ hVσ hGρ hGσ hcov + (gaussianRenyiTau_pos hr) + rw [he] at hsmall ⊢ + exact hcomp r hr hsmall + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/IsometricCorner.lean b/LeanPool/VacuumBellSeparation/Gaussian/IsometricCorner.lean new file mode 100644 index 0000000000..ae437915d1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/IsometricCorner.lean @@ -0,0 +1,76 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompressionPower + +/-! +# Actual isometric corners and positive functional calculus + +An isometric embedding defines a genuine nonunital star-algebra map +A ↦ i A i†. Positive real powers commute with this map because they vanish +at zero. This keeps the complementary zero block, including infinite +Hilbert spaces, rather than replacing a corner by a unital map. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped NNReal + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Isometric corner obtained from `ι.toContinuousLinearMap`. -/ +def isometricCorner (ι : E →ₗᵢ[ℂ] F) (A : E →L[ℂ] E) : F →L[ℂ] F := + ι.toContinuousLinearMap ∘L A ∘L ι.toContinuousLinearMap.adjoint + +@[simp] theorem isometricCorner_apply (ι : E →ₗᵢ[ℂ] F) (A : E →L[ℂ] E) (x : F) : + isometricCorner ι A x = ι (A (ι.toContinuousLinearMap.adjoint x)) := rfl + +/-- Continuous linear map for the isometric corner hom, of type `(E →L[ℂ] E) →⋆ₙₐ[ℂ] (F →L[ℂ] F) +where toFun`. -/ +def isometricCornerHom (ι : E →ₗᵢ[ℂ] F) : + (E →L[ℂ] E) →⋆ₙₐ[ℂ] (F →L[ℂ] F) where + toFun := isometricCorner ι + map_zero' := by ext x; simp + map_add' A B := by ext x; simp + map_mul' A B := by + ext x + simp only [isometricCorner_apply, mul_apply_eq_comp, adjoint_embedding_apply] + map_smul' c A := by ext x; simp + map_star' A := by + change isometricCorner ι A.adjoint = (isometricCorner ι A).adjoint + simp only [isometricCorner, adjoint_comp, adjoint_adjoint, comp_assoc] + +theorem isometricCorner_nonneg (ι : E →ₗᵢ[ℂ] F) {A : E →L[ℂ] E} (hA : 0 ≤ A) : + 0 ≤ isometricCorner ι A := + nonneg_iff_isPositive.mpr ((nonneg_iff_isPositive.mp hA).conj_adjoint + ι.toContinuousLinearMap) + +theorem isometricCorner_continuous (ι : E →ₗᵢ[ℂ] F) : Continuous (isometricCorner ι) := by + unfold isometricCorner + fun_prop + +theorem isometricCorner_rpow (ι : E →ₗᵢ[ℂ] F) {A : E →L[ℂ] E} + (hA : 0 ≤ A) {p : ℝ} (hp : 0 < p) : + isometricCorner ι (A ^ p) = isometricCorner ι A ^ p := by + let f : ℝ≥0 → ℝ≥0 := fun t => t ^ p + have hf : Continuous f := NNReal.continuous_rpow_const hp.le + have hf₀ : f 0 = 0 := NNReal.zero_rpow hp.ne' + have hh := (isometricCornerHom ι).map_cfcₙ f A + (hf := hf.continuousOn) (hf₀ := hf₀) (hφ := isometricCorner_continuous ι) + (ha := hA) (hφa := isometricCorner_nonneg ι hA) + rw [cfcₙ_eq_cfc hf.continuousOn hf₀, cfcₙ_eq_cfc hf.continuousOn hf₀] at hh + exact hh + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/L2ProductInner.lean b/LeanPool/VacuumBellSeparation/Gaussian/L2ProductInner.lean new file mode 100644 index 0000000000..a5148b5fd2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/L2ProductInner.lean @@ -0,0 +1,78 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.L2ProductTotality + +/-! +# Inner products and bounded bilinear extension from total families + +These use actual absolutely convergent ℓ² inner-product series. Equality +of bounded bilinear maps follows from equality on two total families by +two closed-subspace arguments. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped lp + +open scoped ComplexConjugate + +theorem inner_l2ProductVector {ι κ η : Type*} (e : κ ≃ ι × η) + (x x' : ℓ²(ι, ℂ)) (y y' : ℓ²(η, ℂ)) : + inner ℂ (l2ProductVector e x y) (l2ProductVector e x' y') = + inner ℂ x x' * inner ℂ y y' := by + have hx : HasSum (fun i : ι => inner ℂ (x i) (x' i)) (inner ℂ x x') := + lp.hasSum_inner (𝕜 := ℂ) x x' + have hy : HasSum (fun j : η => inner ℂ (y j) (y' j)) (inner ℂ y y') := + lp.hasSum_inner (𝕜 := ℂ) y y' + have hxn : Summable (fun i : ι => ‖inner ℂ (x i) (x' i)‖) := hx.summable.norm + have hyn : Summable (fun j : η => ‖inner ℂ (y j) (y' j)‖) := hy.summable.norm + have hp : HasSum (fun k : ι × η => + inner ℂ (x k.1) (x' k.1) * inner ℂ (y k.2) (y' k.2)) + (inner ℂ x x' * inner ℂ y y') := by + have hsum := (summable_mul_of_summable_norm (R := ℂ) hxn hyn).hasSum + have heq := tsum_mul_tsum_of_summable_norm (R := ℂ) hxn hyn + rw [hx.tsum_eq, hy.tsum_eq] at heq + exact heq.symm ▸ hsum + have hp' := e.hasSum_iff.mpr hp + have hactual := lp.hasSum_inner (𝕜 := ℂ) (l2ProductVector e x y) (l2ProductVector e x' y') + apply hactual.unique + convert hp' using 1 + funext k + simp only [Function.comp_def, l2ProductVector_apply, RCLike.inner_apply', map_mul] + ring + +variable {E F G : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] + [NormedAddCommGroup F] [NormedSpace ℂ F] [NormedAddCommGroup G] [NormedSpace ℂ G] + +theorem continuousLinearMap_eq_of_dense_span {α : Type*} (f : α → E) + (hf : (Submodule.span ℂ (Set.range f)).topologicalClosure = ⊤) + (L M : E →L[ℂ] F) (h : ∀ a, L (f a) = M (f a)) : L = M := by + have hz := continuousLinearMap_mem_of_dense_span f hf (⊥ : Submodule ℂ F) + (by + have hbot : ((⊥ : Submodule ℂ F) : Set F) = {0} := by + ext x + exact Submodule.mem_bot ℂ + rw [hbot] + exact isClosed_singleton) + (L - M) (fun a => by simpa only [sub_apply, + Submodule.mem_bot, sub_eq_zero] using h a) + ext x + exact sub_eq_zero.mp (show L x - M x = 0 from hz x) + +theorem continuousBilinear_eq_of_dense_spans {α β : Type*} (f : α → E) (g : β → F) + (hf : (Submodule.span ℂ (Set.range f)).topologicalClosure = ⊤) + (hg : (Submodule.span ℂ (Set.range g)).topologicalClosure = ⊤) + (L M : E →L[ℂ] F →L[ℂ] G) (h : ∀ a b, L (f a) (g b) = M (f a) (g b)) : L = M := by + apply continuousLinearMap_eq_of_dense_span f hf + intro a + exact continuousLinearMap_eq_of_dense_span g hg (L (f a)) (M (f a)) (h a) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/L2ProductTotality.lean b/LeanPool/VacuumBellSeparation/Gaussian/L2ProductTotality.lean new file mode 100644 index 0000000000..1981323d60 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/L2ProductTotality.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.L2ProductVectors +public import Mathlib.Analysis.InnerProductSpace.l2Space + +/-! +# Totality of actual products of total ℓ² families + +A bounded linear map taking a dense spanning family into a closed subspace +takes the whole space into it. Applying this twice to the actual product +bilinear map, followed by the actual coordinate Hilbert basis, proves +product totality without assuming a Hilbert tensor-product equivalence. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped lp + +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] + [NormedAddCommGroup F] [NormedSpace ℂ F] + +/-- Closed-subspace membership extends from a dense spanning family along +an actual bounded linear map. -/ +theorem continuousLinearMap_mem_of_dense_span {α : Type*} (f : α → E) + (hf : (Submodule.span ℂ (Set.range f)).topologicalClosure = ⊤) + (P : Submodule ℂ F) (hP : IsClosed (P : Set F)) (L : E →L[ℂ] F) + (hL : ∀ a, L (f a) ∈ P) : ∀ x, L x ∈ P := by + have hspan : Submodule.span ℂ (Set.range f) ≤ P.comap L.toLinearMap := by + apply Submodule.span_le.mpr + rintro _ ⟨a, rfl⟩ + exact hL a + have hclosed : IsClosed ((P.comap L.toLinearMap : Submodule ℂ E) : Set E) := + hP.preimage L.continuous + have h := (Submodule.span ℂ (Set.range f)).topologicalClosure_minimal hspan hclosed + rw [hf] at h + exact fun x => h (Submodule.mem_top : x ∈ (⊤ : Submodule ℂ E)) + +/-- Products of two total families are total in the genuine full ℓ² product +index space. The arbitrary index equivalence permits occupation tuples. -/ +theorem l2Product_dense_span {ι κ η α β : Type*} (e : κ ≃ ι × η) + (f : α → ℓ²(ι, ℂ)) (g : β → ℓ²(η, ℂ)) + (hf : (Submodule.span ℂ (Set.range f)).topologicalClosure = ⊤) + (hg : (Submodule.span ℂ (Set.range g)).topologicalClosure = ⊤) : + (Submodule.span ℂ (Set.range (fun p : α × β => + l2ProductVector e (f p.1) (g p.2)))).topologicalClosure = ⊤ := by + classical + let P := (Submodule.span ℂ (Set.range (fun p : α × β => + l2ProductVector e (f p.1) (g p.2)))).topologicalClosure + have hP : IsClosed (P : Set ℓ²(κ, ℂ)) := Submodule.isClosed_topologicalClosure _ + have hfixed (a : α) : ∀ y, l2ProductVector e (f a) y ∈ P := by + apply continuousLinearMap_mem_of_dense_span g hg P hP (l2ProductContinuous e (f a)) + intro b + exact Submodule.le_topologicalClosure _ (Submodule.subset_span ⟨(a, b), rfl⟩) + have hall (x : ℓ²(ι, ℂ)) (y : ℓ²(η, ℂ)) : l2ProductVector e x y ∈ P := by + exact continuousLinearMap_mem_of_dense_span f hf P hP + ((l2ProductContinuous e).flip y) (fun a => hfixed a y) x + let b : HilbertBasis κ ℂ ℓ²(κ, ℂ) := + HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _) + have hspan : Submodule.span ℂ (Set.range b) ≤ P := by + apply Submodule.span_le.mpr + rintro _ ⟨k, rfl⟩ + change lp.single 2 k (1 : ℂ) ∈ P + have h := hall (lp.single 2 (e k).1 1) (lp.single 2 (e k).2 1) + simpa only [l2ProductVector_single, Prod.eta, Equiv.symm_apply_apply] using h + have h := (Submodule.span ℂ (Set.range b)).topologicalClosure_minimal hspan hP + rw [b.dense_span] at h + exact top_unique h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/L2ProductVectors.lean b/LeanPool/VacuumBellSeparation/Gaussian/L2ProductVectors.lean new file mode 100644 index 0000000000..6998d06673 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/L2ProductVectors.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Algebra.Order.Star.Real +public import Mathlib.Analysis.CStarAlgebra.Classes +public import Mathlib.Analysis.Normed.Lp.lpSpace +public import Mathlib.Tactic.Basify +public import Mathlib.Tactic.ENatToNat +public import Mathlib.Tactic.Polynomial.Basic +public import Mathlib.Tactic.ReduceModChar +public import Mathlib.Tactic.TypeStar +public import Mathlib.Topology.Separation.CompletelyRegular +public import Mathlib.Analysis.Normed.Operator.Bilinear +public import Mathlib.LinearAlgebra.BilinearMap + +/-! +# Actual products of square-summable vectors + +An index equivalence turns the pointwise product into a vector in the +full ℓ² space. Its norm is the product of the norms, by nonnegative Fubini. +The resulting map is a genuine bounded bilinear map, not a tensor-product +identification assumed as additional data. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped lp ENNReal + +variable {ι κ η : Type*} + +theorem hasSum_l2_product_norm_sq (e : κ ≃ ι × η) (x : ℓ²(ι, ℂ)) (y : ℓ²(η, ℂ)) : + HasSum (fun k => ‖x (e k).1 * y (e k).2‖ ^ 2) (‖x‖ ^ 2 * ‖y‖ ^ 2) := by + have hx : HasSum (fun i => ‖x i‖ ^ 2) (‖x‖ ^ 2) := by + simpa [Real.rpow_two] using lp.hasSum_norm (p := 2) (by norm_num) x + have hy : HasSum (fun j => ‖y j‖ ^ 2) (‖y‖ ^ 2) := by + simpa [Real.rpow_two] using lp.hasSum_norm (p := 2) (by norm_num) y + have hp := hx.mul hy + (hx.summable.mul_of_nonneg hy.summable (fun _ => sq_nonneg _) (fun _ => sq_nonneg _)) + simpa only [Function.comp_def, norm_mul, mul_pow] using e.hasSum_iff.mpr hp + +theorem l2_product_memℓp (e : κ ≃ ι × η) (x : ℓ²(ι, ℂ)) (y : ℓ²(η, ℂ)) : + Memℓp (fun k => x (e k).1 * y (e k).2) 2 := by + apply (memℓp_gen_iff (by norm_num : 0 < (2 : ℝ≥0∞).toReal)).mpr + simpa [Real.rpow_two] using (hasSum_l2_product_norm_sq e x y).summable + +/-- L² product vector represented by `fun k => x (e k).1 * y (e k).2`. -/ +def l2ProductVector (e : κ ≃ ι × η) (x : ℓ²(ι, ℂ)) (y : ℓ²(η, ℂ)) : ℓ²(κ, ℂ) := + ⟨fun k => x (e k).1 * y (e k).2, l2_product_memℓp e x y⟩ + +@[simp] theorem l2ProductVector_apply (e : κ ≃ ι × η) (x : ℓ²(ι, ℂ)) + (y : ℓ²(η, ℂ)) (k : κ) : + l2ProductVector e x y k = x (e k).1 * y (e k).2 := rfl + +theorem norm_l2ProductVector (e : κ ≃ ι × η) (x : ℓ²(ι, ℂ)) (y : ℓ²(η, ℂ)) : + ‖l2ProductVector e x y‖ = ‖x‖ * ‖y‖ := by + apply (sq_eq_sq₀ (norm_nonneg _) (mul_nonneg (norm_nonneg _) (norm_nonneg _))).mp + have h : HasSum (fun k => ‖l2ProductVector e x y k‖ ^ 2) + (‖l2ProductVector e x y‖ ^ 2) := by + simpa [Real.rpow_two] using lp.hasSum_norm (p := 2) (by norm_num) (l2ProductVector e x y) + rw [mul_pow] + exact h.unique (hasSum_l2_product_norm_sq e x y) + +/-- Linear map for the l² product bilinear, of type `ℓ²(ι, ℂ) →ₗ[ℂ] ℓ²(η, ℂ) →ₗ[ℂ] ℓ²(κ, ℂ)`. -/ +def l2ProductBilinear (e : κ ≃ ι × η) : ℓ²(ι, ℂ) →ₗ[ℂ] ℓ²(η, ℂ) →ₗ[ℂ] ℓ²(κ, ℂ) := + LinearMap.mk₂ ℂ (l2ProductVector e) + (by intro x₁ x₂ y; ext k; simp [add_mul]) + (by intro c x y; ext k; simp [mul_assoc]) + (by intro x y₁ y₂; ext k; simp [mul_add]) + (by intro c x y; ext k; simp [mul_left_comm]) + +/-- Continuous linear map for the l² product continuous, of type `ℓ²(ι, ℂ) →L[ℂ] ℓ²(η, ℂ) →L[ℂ] +ℓ²(κ, ℂ)`. -/ +def l2ProductContinuous (e : κ ≃ ι × η) : + ℓ²(ι, ℂ) →L[ℂ] ℓ²(η, ℂ) →L[ℂ] ℓ²(κ, ℂ) := + (l2ProductBilinear e).mkContinuous₂ 1 (by + intro x y + simpa only [l2ProductBilinear, LinearMap.mk₂_apply, norm_l2ProductVector, one_mul] + using le_rfl (a := ‖x‖ * ‖y‖)) + +@[simp] theorem l2ProductContinuous_apply (e : κ ≃ ι × η) (x : ℓ²(ι, ℂ)) + (y : ℓ²(η, ℂ)) : l2ProductContinuous e x y = l2ProductVector e x y := rfl + +/-- Actual coordinate unit vectors are products of coordinate unit vectors. -/ +theorem l2ProductVector_single [DecidableEq ι] [DecidableEq κ] [DecidableEq η] + (e : κ ≃ ι × η) (i : ι) (j : η) : + l2ProductVector e (lp.single 2 i (1 : ℂ)) (lp.single 2 j (1 : ℂ)) = + lp.single 2 (e.symm (i, j)) 1 := by + classical + ext k + simp only [l2ProductVector_apply, lp.single_apply] + have h : k = e.symm (i, j) ↔ (e k).1 = i ∧ (e k).2 = j := by + rw [e.eq_symm_apply, Prod.ext_iff] + by_cases hi : (e k).1 = i <;> by_cases hj : (e k).2 = j <;> + simp [Pi.single_apply, hi, hj, h] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/LowerPowerSandwich.lean b/LeanPool/VacuumBellSeparation/Gaussian/LowerPowerSandwich.lean new file mode 100644 index 0000000000..a9e72bc9cc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/LowerPowerSandwich.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPowerIntertwining +public import LeanPool.VacuumBellSeparation.Gaussian.SandwichedRenyiQuantity + +/-! +# Actual sandwiches at smaller inverse-reference exponents + +If a positive bounded sandwich exists at exponent tau, every smaller +nonnegative exponent s is obtained by conjugating with the genuine +nonnegative CFC power sigma^((tau-s)/2). This proves bounded extension +existence directly, including s=tau; no trace-class assumption on the +sandwich or bounded inverse of the faithful density is used. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Lower power sandwich given by `σ ^ ((τ - s) / 2) * Θ * σ ^ ((τ - s) / 2)`. -/ +def lowerPowerSandwich (σ Θ : E →L[ℂ] E) (τ s : ℝ) : E →L[ℂ] E := + σ ^ ((τ - s) / 2) * Θ * σ ^ ((τ - s) / 2) + +theorem lowerPowerSandwich_nonneg {σ Θ : E →L[ℂ] E} (hΘ : 0 ≤ Θ) (τ s : ℝ) : + 0 ≤ lowerPowerSandwich σ Θ τ s := by + exact conjugate_nonneg_of_nonneg hΘ CFC.rpow_nonneg + +theorem lowerPowerSandwich_factorization {ρ σ Θ : E →L[ℂ] E} + (hσ : 0 ≤ σ) {τ s : ℝ} (hs : 0 ≤ s) (hst : s ≤ τ) + (hf : σ ^ (τ / 2) * Θ * σ ^ (τ / 2) = ρ) : + σ ^ (s / 2) * lowerPowerSandwich σ Θ τ s * σ ^ (s / 2) = ρ := by + have ha : 0 ≤ (τ - s) / 2 := div_nonneg (sub_nonneg.mpr hst) (by norm_num) + have hb : 0 ≤ s / 2 := by positivity + have hleft : σ ^ (s / 2) * σ ^ ((τ - s) / 2) = σ ^ (τ / 2) := by + rw [← positiveOperator_rpow_add_nonneg hσ hb ha] + congr 1 + ring + have hright : σ ^ ((τ - s) / 2) * σ ^ (s / 2) = σ ^ (τ / 2) := by + rw [← positiveOperator_rpow_add_nonneg hσ ha hb] + congr 1 + ring + calc + _ = (σ ^ (s / 2) * σ ^ ((τ - s) / 2)) * Θ * + (σ ^ ((τ - s) / 2) * σ ^ (s / 2)) := by + unfold lowerPowerSandwich + noncomm_ring + _ = ρ := by rw [hleft, hright, hf] + +theorem gaussianRenyiTau_ge_half {r : ℝ} (hr : 2 ≤ r) : 1 / 2 ≤ gaussianRenyiTau r := by + have hr₀ : 0 < r := by linarith + unfold gaussianRenyiTau + apply (le_div_iff₀ hr₀).mpr + linarith + +theorem renyiTwo_lowerPowerSandwich {ρ σ Θ : E →L[ℂ] E} + (hσ : IsFaithfulDensity σ) {r : ℝ} (hr : 2 ≤ r) (hΘ : 0 ≤ Θ) + (hf : σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ) : + sandwichedRenyiQuantity ρ σ 2 = + positiveTrace ((lowerPowerSandwich σ Θ (gaussianRenyiTau r) (1 / 2)) ^ (2 : ℝ)) := by + apply sandwichedRenyiQuantity_eq_power_trace hσ (by norm_num) + (lowerPowerSandwich_nonneg hΘ _ _) + have h := lowerPowerSandwich_factorization hσ.1 (by norm_num : (0 : ℝ) ≤ 1 / 2) + (gaussianRenyiTau_ge_half hr) hf + simpa only [gaussianRenyiTau, show (2 - 1) / (2 : ℝ) = 1 / 2 by norm_num] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianComplexLinear.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianComplexLinear.lean new file mode 100644 index 0000000000..2d316c8476 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianComplexLinear.lean @@ -0,0 +1,186 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixGaussianFourier +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumWilliamson + +/-! +# Matrix Gaussian integration with arbitrary complex linear coefficient + +The real positive-definite quadratic form is integrated against a complex +linear exponential. Its actual integrability and value follow from the +positive square-root change of coordinates and the pinned complex scalar +Gaussian formula. This extends the imaginary-frequency calculation without +assuming a formal analytic continuation or an unproved Gaussian kernel. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Matrix Gaussian complex linear given by `Complex.exp (((-(1 / 2) * (x ⬝ᵥ (P *ᵥ x)) : ℝ) : ℂ) + +a ⬝ᵥ (fun i => (x i : ℂ)))`. -/ +def matrixGaussianComplexLinear (P : Matrix ι ι ℝ) (a : ι → ℂ) (x : ι → ℝ) : ℂ := + Complex.exp (((-(1 / 2) * (x ⬝ᵥ (P *ᵥ x)) : ℝ) : ℂ) + + a ⬝ᵥ (fun i => (x i : ℂ))) + +omit [DecidableEq ι] in +theorem complexifyMatrix_mulVec_real (P : Matrix ι ι ℝ) (x : ι → ℝ) : + complexifyMatrix P *ᵥ (fun i => (x i : ℂ)) = fun i => ((P *ᵥ x) i : ℂ) := by + funext i + exact ((algebraMap ℝ ℂ).map_mulVec P x i).symm + +omit [Fintype ι] [DecidableEq ι] in +theorem complexifyMatrix_transpose_bilinear (P : Matrix ι ι ℝ) : + (complexifyMatrix P)ᵀ = complexifyMatrix Pᵀ := rfl + +private theorem standard_matrixGaussianComplexLinear_eq (a : ι → ℂ) (x : ι → ℝ) : + matrixGaussianComplexLinear 1 a x = + Complex.exp (-(1 / 2 : ℂ) * ∑ i, (x i : ℂ) ^ 2 + ∑ i, a i * (x i : ℂ)) := by + unfold matrixGaussianComplexLinear + rw [one_mulVec] + congr 1 + simp only [dotProduct, ← pow_two, Complex.ofReal_mul, Complex.ofReal_neg, + Complex.ofReal_div, Complex.ofReal_one, Complex.ofReal_ofNat, + Complex.ofReal_sum, Complex.ofReal_pow] + +private theorem integrable_standard_matrixGaussianComplexLinear (a : ι → ℂ) : + Integrable (matrixGaussianComplexLinear 1 a) := by + apply (GaussianFourier.integrable_cexp_neg_mul_sum_add + (by norm_num : 0 < (1 / 2 : ℂ).re) a).congr + exact Filter.Eventually.of_forall fun x => + (standard_matrixGaussianComplexLinear_eq a x).symm + +private theorem integral_standard_matrixGaussianComplexLinear (a : ι → ℂ) : + (∫ x : ι → ℝ, matrixGaussianComplexLinear 1 a x) = + ((Real.sqrt (2 * Real.pi) ^ Fintype.card ι : ℝ) : ℂ) * + Complex.exp ((1 / 2 : ℂ) * (a ⬝ᵥ a)) := by + have h := GaussianFourier.integral_cexp_neg_mul_sum_add + (by norm_num : 0 < (1 / 2 : ℂ).re) a + have hz := GaussianFourier.integral_cexp_neg_mul_sum_add + (by norm_num : 0 < (1 / 2 : ℂ).re) (fun _ : ι => (0 : ℂ)) + have he₀ : (fun x : ι → ℝ => + Complex.exp (-(1 / 2 : ℂ) * ∑ i, (x i : ℂ) ^ 2 + ∑ i, (0 : ℂ) * (x i : ℂ))) = + fun x => (matrixGaussian (1 : Matrix ι ι ℝ) x : ℂ) := by + funext x + simp only [zero_mul, Finset.sum_const_zero, add_zero, matrixGaussian, one_mulVec, + dotProduct, ← pow_two, Complex.ofReal_exp, Complex.ofReal_mul, Complex.ofReal_neg, + Complex.ofReal_div, Complex.ofReal_one, Complex.ofReal_ofNat, + Complex.ofReal_sum, Complex.ofReal_pow] + rw [he₀] at hz + have hreal := integral_complex_ofReal + (μ := (volume : Measure (ι → ℝ))) (f := matrixGaussian (1 : Matrix ι ι ℝ)) + rw [integral_matrixGaussian (Matrix.PosDef.one : + (1 : Matrix ι ι ℝ).PosDef)] at hreal + have hconstant := hreal.symm.trans hz + simp only [Matrix.det_one, Real.sqrt_one, div_one, zero_pow (by norm_num : (2 : ℕ) ≠ 0), + Finset.sum_const_zero, zero_div, Complex.exp_zero, mul_one] at hconstant + have hphase : (∑ i, a i ^ 2) / (4 * (1 / 2 : ℂ)) = (1 / 2 : ℂ) * (a ⬝ᵥ a) := by + simp only [dotProduct, ← pow_two] + ring + rw [hphase, ← hconstant] at h + simpa only [standard_matrixGaussianComplexLinear_eq] using h + +theorem matrix_sqrt_complex_linear {P : Matrix ι ι ℝ} (hP : P.PosDef) + (a : ι → ℂ) (x : ι → ℝ) : + (complexifyMatrix (CFC.sqrt P)⁻¹ *ᵥ a) ⬝ᵥ (fun i => ((CFC.sqrt P *ᵥ x) i : ℂ)) = + a ⬝ᵥ (fun i => (x i : ℂ)) := by + let S := CFC.sqrt P + have hSi : S⁻¹ * S = 1 := S.nonsing_inv_mul + ((Matrix.isUnit_iff_isUnit_det S).mp (matrix_sqrt_posDef hP).isUnit) + have hSit : (S⁻¹)ᵀ = S⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hP).inv.isHermitian.eq + have h := Matrix.dotProduct_transpose_mulVec (complexifyMatrix S⁻¹) + (complexifyMatrix S *ᵥ (fun i => (x i : ℂ))) a + rw [complexifyMatrix_transpose_bilinear, hSit, Matrix.mulVec_mulVec, + ← complexifyMatrix_mul, hSi, complexifyMatrix_one, one_mulVec] at h + rw [← complexifyMatrix_mulVec_real] + exact (dotProduct_comm _ _).trans h + +theorem matrix_sqrt_complex_inverse_quadratic {P : Matrix ι ι ℝ} (hP : P.PosDef) + (a : ι → ℂ) : + (complexifyMatrix (CFC.sqrt P)⁻¹ *ᵥ a) ⬝ᵥ (complexifyMatrix (CFC.sqrt P)⁻¹ *ᵥ a) = + a ⬝ᵥ (complexifyMatrix P⁻¹ *ᵥ a) := by + let S := CFC.sqrt P + have hSS : S * S = P := by simpa only [pow_two] using CFC.sq_sqrt P hP.posSemidef.nonneg + have hSit : (S⁻¹)ᵀ = S⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hP).inv.isHermitian.eq + have h := Matrix.dotProduct_transpose_mulVec (complexifyMatrix S⁻¹) + (complexifyMatrix S⁻¹ *ᵥ a) a + rw [complexifyMatrix_transpose_bilinear, hSit, Matrix.mulVec_mulVec, + ← complexifyMatrix_mul, ← Matrix.mul_inv_rev, hSS] at h + exact h + +theorem matrixGaussianComplexLinear_eq_sqrt {P : Matrix ι ι ℝ} (hP : P.PosDef) + (a : ι → ℂ) (x : ι → ℝ) : + matrixGaussianComplexLinear P a x = + matrixGaussianComplexLinear 1 (complexifyMatrix (CFC.sqrt P)⁻¹ *ᵥ a) (CFC.sqrt P *ᵥ x) := by + let S := CFC.sqrt P + have hSS : S * S = P := by simpa only [pow_two] using CFC.sq_sqrt P hP.posSemidef.nonneg + have hSt : Sᵀ = S := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hP).isHermitian.eq + have hq := dotProduct_congruence S (1 : Matrix ι ι ℝ) x x + rw [hSt, one_mulVec, mul_one, hSS] at hq + simp only [matrixGaussianComplexLinear, one_mulVec, matrix_sqrt_complex_linear hP] + exact congrArg (fun t : ℝ => Complex.exp (((-(1 / 2) * t : ℝ) : ℂ) + + a ⬝ᵥ (fun i => (x i : ℂ)))) hq.symm + +omit [DecidableEq ι] in +theorem integrable_matrixGaussianComplexLinear {P : Matrix ι ι ℝ} (hP : P.PosDef) + (a : ι → ℂ) : Integrable (matrixGaussianComplexLinear P a) := by + classical + let S := CFC.sqrt P + let f := matrixGaussianComplexLinear 1 (complexifyMatrix S⁻¹ *ᵥ a) + have hSmeas : Measurable (Matrix.toLin' S) := (LinearMap.continuous_on_pi _).measurable + have hf : Integrable f (Measure.map (Matrix.toLin' S) volume) := by + rw [Real.map_matrix_volume_pi_eq_smul_volume_pi (matrix_sqrt_posDef hP).det_pos.ne'] + exact (integrable_standard_matrixGaussianComplexLinear _).smul_measure ENNReal.ofReal_ne_top + have hcomp := hf.comp_measurable hSmeas + have heq : f ∘ Matrix.toLin' S = matrixGaussianComplexLinear P a := by + funext x + exact (matrixGaussianComplexLinear_eq_sqrt hP a x).symm + rwa [heq] at hcomp + +/-- Genuine complex-linear Gaussian integral; the matrix inverse and the +quadratic form in the complex coefficient are bilinear, without conjugation. -/ +theorem integral_matrixGaussianComplexLinear {P : Matrix ι ι ℝ} (hP : P.PosDef) + (a : ι → ℂ) : + (∫ x : ι → ℝ, matrixGaussianComplexLinear P a x) = + ((Real.sqrt (2 * Real.pi) ^ Fintype.card ι / Real.sqrt P.det : ℝ) : ℂ) * + Complex.exp ((1 / 2 : ℂ) * (a ⬝ᵥ (complexifyMatrix P⁻¹ *ᵥ a))) := by + let S := CFC.sqrt P + let f := matrixGaussianComplexLinear 1 (complexifyMatrix S⁻¹ *ᵥ a) + have hSmeas : Measurable (Matrix.toLin' S) := (LinearMap.continuous_on_pi _).measurable + have hdetpos : 0 < S.det := (matrix_sqrt_posDef hP).det_pos + have hf : StronglyMeasurable f := by unfold f matrixGaussianComplexLinear; fun_prop + have h := integral_map_of_stronglyMeasurable + (μ := (volume : Measure (ι → ℝ))) hSmeas hf + rw [Real.map_matrix_volume_pi_eq_smul_volume_pi hdetpos.ne', integral_smul_measure, + ENNReal.toReal_ofReal (by positivity)] at h + simp only [abs_inv, abs_of_pos hdetpos, RCLike.real_smul_eq_coe_mul] at h + have heq : (fun x => f (Matrix.toLin' S x)) = matrixGaussianComplexLinear P a := by + funext x + exact (matrixGaussianComplexLinear_eq_sqrt hP a x).symm + rw [heq] at h + change ((S.det⁻¹ : ℝ) : ℂ) * (∫ x, matrixGaussianComplexLinear 1 + (complexifyMatrix S⁻¹ *ᵥ a) x) = _ at h + rw [integral_standard_matrixGaussianComplexLinear, + matrix_sqrt_complex_inverse_quadratic hP, matrix_sqrt_det hP] at h + exact h.symm.trans (by push_cast; ring) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianCriterion.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianCriterion.lean new file mode 100644 index 0000000000..903a29cf14 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianCriterion.lean @@ -0,0 +1,126 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ProductGaussianIntegrability +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixGaussianIntegral +public import Mathlib.Analysis.Matrix.PosDef + +/-! +# Exact integrability criterion for a real symmetric matrix Gaussian + +Actual Hermitian diagonalization changes Lebesgue measure by a finite +nonzero determinant. Scalar slice integrability excludes zero and negative +eigenvalues. The criterion also holds for the extended nonnegative integral, +which is essential before a positive inverse sandwich has any extension. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem matrixGaussian_eigenvector_coordinates {P : Matrix ι ι ℝ} + (hP : P.IsHermitian) (x : ι → ℝ) : + matrixGaussian P ((hP.eigenvectorUnitary : Matrix ι ι ℝ) *ᵥ x) = + ∏ i, Real.exp (-(hP.eigenvalues i / 2) * (x i) ^ 2) := by + let U : Matrix ι ι ℝ := hP.eigenvectorUnitary + have hd : Uᵀ * P * U = Matrix.diagonal hP.eigenvalues := by + have h := hP.conjStarAlgAut_star_eigenvectorUnitary + rw [Unitary.conjStarAlgAut_star_apply] at h + simpa only [U, Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial, + RCLike.ofReal_real_eq_id, Function.id_comp] using h + have hq := dotProduct_congruence Uᵀ P x x + rw [Matrix.transpose_transpose, hd] at hq + rw [matrixGaussian, hq, ← Real.exp_sum] + congr 1 + simp only [dotProduct, Matrix.mulVec_diagonal, Finset.mul_sum] + apply Finset.sum_congr rfl + intro i _ + ring + +omit [DecidableEq ι] in +/-- Symmetry is essential: a quadratic form otherwise sees only the +symmetric part, so it cannot detect positive definiteness of P itself. -/ +theorem integrable_matrixGaussian_iff {P : Matrix ι ι ℝ} (hP : P.IsHermitian) : + Integrable (matrixGaussian P) ↔ P.PosDef := by + classical + constructor + · intro h + let U : Matrix ι ι ℝ := hP.eigenvectorUnitary + have hU : IsUnit U := Unitary.isUnit_coe + have hd : U.det ≠ 0 := isUnit_iff_ne_zero.mp ((Matrix.isUnit_iff_isUnit_det U).mp hU) + have hmap : Measurable (Matrix.toLin' U) := (LinearMap.continuous_on_pi _).measurable + have hi : Integrable (matrixGaussian P) (Measure.map (Matrix.toLin' U) volume) := by + rw [Real.map_matrix_volume_pi_eq_smul_volume_pi hd] + exact h.smul_measure ENNReal.ofReal_ne_top + have hc := hi.comp_measurable hmap + have heq : matrixGaussian P ∘ Matrix.toLin' U = + fun x : ι → ℝ => ∏ i, Real.exp (-(hP.eigenvalues i / 2) * (x i) ^ 2) := by + funext x + exact matrixGaussian_eigenvector_coordinates hP x + rw [heq] at hc + have he := (integrable_productGaussian_iff (fun i => hP.eigenvalues i / 2)).mp hc + apply hP.posDef_iff_eigenvalues_pos.mpr + intro i + linarith [he i] + · exact integrable_matrixGaussian + +theorem integrable_coherentMatrixGaussian_iff {m : ℕ} + {P : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hP : P.IsHermitian) : + Integrable (coherentMatrixGaussian P) ↔ P.PosDef := by + constructor + · intro h + have heq : matrixGaussian ((2 : ℝ) • P) ∘ complexRealCoordinates m = + coherentMatrixGaussian P := by + funext z + exact (coherentMatrixGaussian_eq P z).symm + have hc : Integrable (matrixGaussian ((2 : ℝ) • P) ∘ complexRealCoordinates m) := by + rwa [heq] + have hi := ((complexRealCoordinates_measurePreserving m).integrable_comp_emb + (complexRealCoordinates m).measurableEmbedding).mp hc + have hp := (integrable_matrixGaussian_iff (hP.smul (by simp : IsSelfAdjoint (2 : ℝ)))).mp hi + have hh := hp.smul (by norm_num : (0 : ℝ) < 1 / 2) + simpa only [smul_smul, show (1 / 2 : ℝ) * 2 = 1 by norm_num, one_smul] using hh + · exact integrable_coherentMatrixGaussian + +theorem continuous_coherentMatrixGaussian {m : ℕ} + (P : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Continuous (coherentMatrixGaussian P) := by + have hc : Continuous (complexRealCoordinates m) := by + apply continuous_pi + rintro ⟨j, a⟩ + fin_cases a + · change Continuous (fun z : Fin m → ℂ => (z j).re) + fun_prop + · change Continuous (fun z : Fin m → ℂ => (z j).im) + fun_prop + unfold coherentMatrixGaussian + fun_prop + +theorem lintegral_coherentMatrixGaussian_lt_top_iff {m : ℕ} + {P : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hP : P.IsHermitian) : + (∫⁻ z : Fin m → ℂ, ENNReal.ofReal (coherentMatrixGaussian P z)) < ⊤ ↔ P.PosDef := by + have hi : Integrable (coherentMatrixGaussian P) ↔ + (∫⁻ z : Fin m → ℂ, ENNReal.ofReal (coherentMatrixGaussian P z)) < ⊤ := by + have hn : 0 ≤ᵐ[volume] coherentMatrixGaussian P := + Filter.Eventually.of_forall fun z => (Real.exp_pos _).le + constructor + · intro h + exact (hasFiniteIntegral_iff_ofReal hn).mp h.2 + · intro h + exact ⟨(continuous_coherentMatrixGaussian P).aestronglyMeasurable, + (hasFiniteIntegral_iff_ofReal hn).mpr h⟩ + exact hi.symm.trans (integrable_coherentMatrixGaussian_iff hP) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianFourier.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianFourier.lean new file mode 100644 index 0000000000..5463f933ae --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianFourier.lean @@ -0,0 +1,162 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixGaussianIntegral +public import Mathlib.Analysis.SpecialFunctions.Gaussian.FourierTransform + +/-! +# Genuine Fourier integral of a positive matrix Gaussian + +The actual positive square root changes coordinates, its determinant gives +the Lebesgue Jacobian, and the pinned Gaussian Fourier theorem supplies the +linear phase. The inverse covariance and determinant are actual matrix +operations justified by positive definiteness, including dimension zero. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Matrix Gaussian Fourier given by `Complex.exp (((-(1 / 2) * (x ⬝ᵥ (P *ᵥ x)) : ℝ) : ℂ) + +Complex.I * ((y ⬝ᵥ x : ℝ) : ℂ))`. -/ +def matrixGaussianFourier (P : Matrix ι ι ℝ) (y x : ι → ℝ) : ℂ := + Complex.exp (((-(1 / 2) * (x ⬝ᵥ (P *ᵥ x)) : ℝ) : ℂ) + + Complex.I * ((y ⬝ᵥ x : ℝ) : ℂ)) + +private theorem standard_matrixGaussianFourier_eq (y x : ι → ℝ) : + matrixGaussianFourier 1 y x = + Complex.exp (-(1 / 2 : ℂ) * ∑ i, (x i : ℂ) ^ 2 + + ∑ i, (Complex.I * (y i : ℂ)) * (x i : ℂ)) := by + unfold matrixGaussianFourier + rw [one_mulVec] + congr 1 + simp only [dotProduct, ← pow_two, Complex.ofReal_mul, Complex.ofReal_neg, + Complex.ofReal_div, Complex.ofReal_one, Complex.ofReal_ofNat, + Complex.ofReal_sum, Complex.ofReal_pow, Finset.mul_sum, mul_assoc] + +private theorem integrable_standard_matrixGaussianFourier (y : ι → ℝ) : + Integrable (matrixGaussianFourier 1 y) := by + exact (GaussianFourier.integrable_cexp_neg_mul_sum_add + (by norm_num : 0 < (1 / 2 : ℂ).re) (fun i => Complex.I * (y i : ℂ))).congr + (Filter.Eventually.of_forall fun x => (standard_matrixGaussianFourier_eq y x).symm) + +private theorem integral_standard_matrixGaussianFourier (y : ι → ℝ) : + (∫ x : ι → ℝ, matrixGaussianFourier 1 y x) = + ((Real.sqrt (2 * Real.pi) ^ Fintype.card ι : ℝ) : ℂ) * + Complex.exp (((-(1 / 2) * (∑ i, y i ^ 2) : ℝ) : ℂ)) := by + have h := GaussianFourier.integral_cexp_neg_mul_sum_add + (by norm_num : 0 < (1 / 2 : ℂ).re) (fun i => Complex.I * (y i : ℂ)) + have hz := GaussianFourier.integral_cexp_neg_mul_sum_add + (by norm_num : 0 < (1 / 2 : ℂ).re) (fun _ : ι => (0 : ℂ)) + have he₀ : (fun x : ι → ℝ => + Complex.exp (-(1 / 2 : ℂ) * ∑ i, (x i : ℂ) ^ 2 + ∑ i, (0 : ℂ) * (x i : ℂ))) = + fun x => (matrixGaussian (1 : Matrix ι ι ℝ) x : ℂ) := by + funext x + simp only [zero_mul, Finset.sum_const_zero, add_zero, matrixGaussian, one_mulVec, + dotProduct, ← pow_two, Complex.ofReal_exp, Complex.ofReal_mul, Complex.ofReal_neg, + Complex.ofReal_div, Complex.ofReal_one, Complex.ofReal_ofNat, + Complex.ofReal_sum, Complex.ofReal_pow] + rw [he₀, integral_complex_ofReal, integral_matrixGaussian (Matrix.PosDef.one : + (1 : Matrix ι ι ℝ).PosDef)] at hz + simp only [Matrix.det_one, Real.sqrt_one, div_one, zero_pow (by norm_num : (2 : ℕ) ≠ 0), + Finset.sum_const_zero, zero_div, Complex.exp_zero, mul_one] at hz + have hphase : (∑ i, (Complex.I * (y i : ℂ)) ^ 2) / (4 * (1 / 2 : ℂ)) = + ((-(1 / 2) * (∑ i, y i ^ 2) : ℝ) : ℂ) := by + simp only [mul_pow, Complex.I_sq, neg_one_mul, Finset.sum_neg_distrib, + Complex.ofReal_mul, Complex.ofReal_neg, Complex.ofReal_div, Complex.ofReal_one, + Complex.ofReal_ofNat, Complex.ofReal_sum, Complex.ofReal_pow] + ring + rw [hphase, ← hz] at h + simpa only [standard_matrixGaussianFourier_eq] using h + +theorem matrix_sqrt_fourier_linear {P : Matrix ι ι ℝ} (hP : P.PosDef) (y x : ι → ℝ) : + (CFC.sqrt P)⁻¹ *ᵥ y ⬝ᵥ (CFC.sqrt P *ᵥ x) = y ⬝ᵥ x := by + let S := CFC.sqrt P + have hSi : S⁻¹ * S = 1 := S.nonsing_inv_mul + ((Matrix.isUnit_iff_isUnit_det S).mp (matrix_sqrt_posDef hP).isUnit) + have hSit : (S⁻¹)ᵀ = S⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hP).inv.isHermitian.eq + have h := Matrix.dotProduct_transpose_mulVec S⁻¹ (S *ᵥ x) y + rw [hSit, Matrix.mulVec_mulVec, hSi, one_mulVec] at h + exact (dotProduct_comm _ _).trans h + +theorem matrix_sqrt_inverse_quadratic {P : Matrix ι ι ℝ} (hP : P.PosDef) (y : ι → ℝ) : + (∑ i, ((CFC.sqrt P)⁻¹ *ᵥ y) i ^ 2) = y ⬝ᵥ (P⁻¹ *ᵥ y) := by + let S := CFC.sqrt P + have hSS : S * S = P := by simpa only [pow_two] using CFC.sq_sqrt P hP.posSemidef.nonneg + have hSit : (S⁻¹)ᵀ = S⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hP).inv.isHermitian.eq + have h := dotProduct_congruence S⁻¹ (1 : Matrix ι ι ℝ) y y + rw [hSit, one_mulVec, mul_one, ← Matrix.mul_inv_rev, hSS] at h + simpa only [dotProduct, pow_two] using h + +theorem matrixGaussianFourier_eq_sqrt {P : Matrix ι ι ℝ} (hP : P.PosDef) + (y x : ι → ℝ) : + matrixGaussianFourier P y x = + matrixGaussianFourier 1 ((CFC.sqrt P)⁻¹ *ᵥ y) (CFC.sqrt P *ᵥ x) := by + let S := CFC.sqrt P + have hSS : S * S = P := by simpa only [pow_two] using CFC.sq_sqrt P hP.posSemidef.nonneg + have hSt : Sᵀ = S := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hP).isHermitian.eq + have hq := dotProduct_congruence S (1 : Matrix ι ι ℝ) x x + rw [hSt, one_mulVec, mul_one, hSS] at hq + simp only [matrixGaussianFourier, one_mulVec, matrix_sqrt_fourier_linear hP] + exact congrArg (fun t : ℝ => Complex.exp (((-(1 / 2) * t : ℝ) : ℂ) + + Complex.I * ((y ⬝ᵥ x : ℝ) : ℂ))) hq.symm + +omit [DecidableEq ι] in +theorem integrable_matrixGaussianFourier {P : Matrix ι ι ℝ} (hP : P.PosDef) (y : ι → ℝ) : + Integrable (matrixGaussianFourier P y) := by + classical + let S := CFC.sqrt P + let f := matrixGaussianFourier 1 (S⁻¹ *ᵥ y) + have hSmeas : Measurable (Matrix.toLin' S) := (LinearMap.continuous_on_pi _).measurable + have hf : Integrable f (Measure.map (Matrix.toLin' S) volume) := by + rw [Real.map_matrix_volume_pi_eq_smul_volume_pi (matrix_sqrt_posDef hP).det_pos.ne'] + exact (integrable_standard_matrixGaussianFourier _).smul_measure ENNReal.ofReal_ne_top + have hcomp := hf.comp_measurable hSmeas + have heq : f ∘ Matrix.toLin' S = matrixGaussianFourier P y := by + funext x + exact (matrixGaussianFourier_eq_sqrt hP y x).symm + rwa [heq] at hcomp + +/-- Actual Fourier integral, with inverse quadratic form and determinant +normalization justified by a genuine positive matrix square root. -/ +theorem integral_matrixGaussianFourier {P : Matrix ι ι ℝ} (hP : P.PosDef) (y : ι → ℝ) : + (∫ x : ι → ℝ, matrixGaussianFourier P y x) = + ((Real.sqrt (2 * Real.pi) ^ Fintype.card ι / Real.sqrt P.det : ℝ) : ℂ) * + Complex.exp (((-(1 / 2) * (y ⬝ᵥ (P⁻¹ *ᵥ y)) : ℝ) : ℂ)) := by + let S := CFC.sqrt P + let f := matrixGaussianFourier 1 (S⁻¹ *ᵥ y) + have hSmeas : Measurable (Matrix.toLin' S) := (LinearMap.continuous_on_pi _).measurable + have hdetpos : 0 < S.det := (matrix_sqrt_posDef hP).det_pos + have hf : StronglyMeasurable f := by unfold f matrixGaussianFourier; fun_prop + have h := integral_map_of_stronglyMeasurable (μ := (volume : Measure (ι → ℝ))) hSmeas hf + rw [Real.map_matrix_volume_pi_eq_smul_volume_pi hdetpos.ne', integral_smul_measure, + ENNReal.toReal_ofReal (by positivity)] at h + simp only [abs_inv, abs_of_pos hdetpos, RCLike.real_smul_eq_coe_mul] at h + have heq : (fun x => f (Matrix.toLin' S x)) = matrixGaussianFourier P y := by + funext x + exact (matrixGaussianFourier_eq_sqrt hP y x).symm + rw [heq] at h + change ((S.det⁻¹ : ℝ) : ℂ) * (∫ x, matrixGaussianFourier 1 (S⁻¹ *ᵥ y) x) = _ at h + rw [integral_standard_matrixGaussianFourier, + matrix_sqrt_inverse_quadratic hP, matrix_sqrt_det hP] at h + exact h.symm.trans (by push_cast; ring) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianIntegral.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianIntegral.lean new file mode 100644 index 0000000000..b3a75b4c4a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixGaussianIntegral.lean @@ -0,0 +1,125 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.QuadratureMatrices +public import Mathlib.MeasureTheory.Measure.Lebesgue.Basic +public import Mathlib.Analysis.SpecialFunctions.Gaussian.GaussianIntegral +public import Mathlib.MeasureTheory.Integral.Pi + +/-! +# The genuine positive-definite matrix Gaussian integral + +The positive CFC square root changes the actual matrix quadratic form to +a product of scalar Gaussians. Mathlib's determinant change of Lebesgue +measure and its scalar Gaussian integral give the determinant formula and +explicit integrability. Empty index types are included. This concerns an +ordinary scalar integral and assumes no Gaussian operator representation. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix MeasureTheory +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] + +/-- Matrix Gaussian given by `Real.exp (-(1 / 2) * (x ⬝ᵥ (P *ᵥ x)))`. -/ +def matrixGaussian (P : Matrix ι ι ℝ) (x : ι → ℝ) : ℝ := + Real.exp (-(1 / 2) * (x ⬝ᵥ (P *ᵥ x))) + +theorem matrixGaussian_pos (P : Matrix ι ι ℝ) (x : ι → ℝ) : 0 < matrixGaussian P x := + Real.exp_pos _ + +theorem matrix_sqrt_posDef {P : Matrix ι ι ℝ} (hP : P.PosDef) : + open scoped Classical in (CFC.sqrt P).PosDef := by + classical + exact (CFC.sqrt_nonneg P).posSemidef.posDef_iff_isUnit.mpr + ((CFC.isUnit_sqrt_iff P hP.posSemidef.nonneg).mpr hP.isUnit) + +theorem matrix_sqrt_det [DecidableEq ι] {P : Matrix ι ι ℝ} (hP : P.PosDef) : + (CFC.sqrt P).det = Real.sqrt P.det := by + have hS := matrix_sqrt_posDef hP + have hsq : (CFC.sqrt P).det ^ 2 = P.det := by + rw [pow_two, ← Matrix.det_mul] + exact congrArg Matrix.det (by simpa only [pow_two] using CFC.sq_sqrt P hP.posSemidef.nonneg) + rw [← hsq, Real.sqrt_sq hS.det_pos.le] + +theorem matrixGaussian_eq_product_sqrt {P : Matrix ι ι ℝ} (hP : P.PosDef) (x : ι → ℝ) : + open scoped Classical in + matrixGaussian P x = ∏ i, Real.exp (-(1 / 2) * ((CFC.sqrt P *ᵥ x) i) ^ 2) := by + classical + let S := CFC.sqrt P + have hSS : S * S = P := by + simpa only [pow_two] using CFC.sq_sqrt P hP.posSemidef.nonneg + have hSt : Sᵀ = S := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (matrix_sqrt_posDef hP).isHermitian.eq + have hquad : x ⬝ᵥ (P *ᵥ x) = ∑ i, (S *ᵥ x) i ^ 2 := by + have h := dotProduct_congruence S (1 : Matrix ι ι ℝ) x x + rw [hSt, one_mulVec, mul_one, hSS] at h + simpa only [dotProduct, pow_two] using h.symm + rw [matrixGaussian, ← Real.exp_sum, hquad, Finset.mul_sum] + +private theorem integrable_standard_product_gaussian : + Integrable (fun x : ι → ℝ => ∏ i, Real.exp (-(1 / 2) * (x i) ^ 2)) := + Integrable.fintype_prod fun _ => integrable_exp_neg_mul_sq (by norm_num : (0 : ℝ) < 1 / 2) + +private theorem integral_standard_product_gaussian : + (∫ x : ι → ℝ, ∏ i, Real.exp (-(1 / 2) * (x i) ^ 2)) = + Real.sqrt (2 * Real.pi) ^ Fintype.card ι := by + rw [integral_fintype_prod_volume_eq_prod + (fun (_ : ι) (t : ℝ) => Real.exp (-(1 / 2) * t ^ 2))] + have hhalf : Real.pi / (1 / 2) = 2 * Real.pi := by ring + simp only [integral_gaussian, hhalf, + Finset.prod_const, Finset.card_univ] + +theorem integrable_matrixGaussian {P : Matrix ι ι ℝ} (hP : P.PosDef) : + Integrable (matrixGaussian P) := by + classical + let S := CFC.sqrt P + let f : (ι → ℝ) → ℝ := fun x => ∏ i, Real.exp (-(1 / 2) * (x i) ^ 2) + have hSmeas : Measurable (Matrix.toLin' S) := + (LinearMap.continuous_on_pi _).measurable + have hdet : S.det ≠ 0 := (matrix_sqrt_posDef hP).det_pos.ne' + have hf : Integrable f (Measure.map (Matrix.toLin' S) volume) := by + rw [Real.map_matrix_volume_pi_eq_smul_volume_pi hdet] + exact integrable_standard_product_gaussian.smul_measure ENNReal.ofReal_ne_top + have hcomp := hf.comp_measurable hSmeas + have heq : f ∘ Matrix.toLin' S = matrixGaussian P := by + funext x + exact (matrixGaussian_eq_product_sqrt hP x).symm + rwa [heq] at hcomp + +/-- Actual Lebesgue integral of the full, non-diagonal matrix Gaussian. -/ +theorem integral_matrixGaussian [DecidableEq ι] {P : Matrix ι ι ℝ} (hP : P.PosDef) : + (∫ x : ι → ℝ, matrixGaussian P x) = + Real.sqrt (2 * Real.pi) ^ Fintype.card ι / Real.sqrt P.det := by + let S := CFC.sqrt P + let f : (ι → ℝ) → ℝ := fun x => ∏ i, Real.exp (-(1 / 2) * (x i) ^ 2) + have hSmeas : Measurable (Matrix.toLin' S) := + (LinearMap.continuous_on_pi _).measurable + have hdetpos : 0 < S.det := (matrix_sqrt_posDef hP).det_pos + have hf : StronglyMeasurable f := by fun_prop + have h := integral_map_of_stronglyMeasurable + (μ := (volume : Measure (ι → ℝ))) hSmeas hf + rw [Real.map_matrix_volume_pi_eq_smul_volume_pi hdetpos.ne', integral_smul_measure, + ENNReal.toReal_ofReal (by positivity)] at h + simp only [abs_inv, abs_of_pos hdetpos, smul_eq_mul] at h + have heq : (fun x => f (Matrix.toLin' S x)) = matrixGaussian P := by + funext x + exact (matrixGaussian_eq_product_sqrt hP x).symm + rw [heq] at h + rw [show (∫ x, f x) = Real.sqrt (2 * Real.pi) ^ Fintype.card ι from + integral_standard_product_gaussian, matrix_sqrt_det hP] at h + exact h.symm.trans (by ring) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixLogDetBound.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixLogDetBound.lean new file mode 100644 index 0000000000..1cb7891395 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixLogDetBound.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixResolventBounds +public import Mathlib.Analysis.SpecialFunctions.Log.Deriv + +/-! +# The genuine matrix logarithm and determinant perturbation bound + +Finite spectral calculus identifies Tr log A with log det A on the +strict positive cone. The scalar logarithm estimate then proves the +source bound for I-Z using the actual nuclear norm of the symmetric Z. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem matrix_trace_cfc {A : Matrix ι ι ℝ} (hA : A.IsHermitian) (f : ℝ → ℝ) : + (cfc f A).trace = ∑ i, f (hA.eigenvalues i) := by + rw [hA.cfc_eq, Matrix.IsHermitian.cfc, Unitary.conjStarAlgAut_apply, + Matrix.trace_mul_cycle, Unitary.coe_star_mul_self, Matrix.one_mul, + Matrix.trace_diagonal] + simp only [Function.comp_apply, RCLike.ofReal_real_eq_id, id_eq] + +theorem matrix_det_cfc {A : Matrix ι ι ℝ} (hA : A.IsHermitian) (f : ℝ → ℝ) : + (cfc f A).det = ∏ i, f (hA.eigenvalues i) := by + rw [hA.cfc_eq] + simp [Matrix.IsHermitian.cfc, -Unitary.conjStarAlgAut_apply] + +theorem matrix_trace_log_eq_log_det {A : Matrix ι ι ℝ} (hA : A.PosDef) : + (cfc Real.log A).trace = Real.log A.det := by + rw [matrix_trace_cfc hA.isHermitian, hA.isHermitian.det_eq_prod_eigenvalues] + simp only [RCLike.ofReal_real_eq_id, id_eq] + rw [Real.log_prod (fun i _ => (hA.eigenvalues_pos i).ne')] + +theorem real_log_one_sub_bound {x δ : ℝ} (hδ : δ < 1) (hx : |x| ≤ δ) : + |Real.log (1 - x)| ≤ |x| / (1 - δ) := by + have h := Real.abs_log_sub_add_sum_range_le (hx.trans_lt hδ) 0 + simp only [Finset.range_zero, Finset.sum_empty, zero_add, zero_add, pow_one] at h + exact h.trans (div_le_div_of_nonneg_left (abs_nonneg x) (sub_pos.mpr hδ) + (by linarith)) + +theorem abs_log_det_one_sub_le {Z : Matrix ι ι ℝ} + (hZ : Z.IsHermitian) (hδ : ‖Z‖ < 1) : + |Real.log (1 - Z).det| ≤ matrixTraceNorm Z / (1 - ‖Z‖) := by + have h_eig (i : ι) : |hZ.eigenvalues i| ≤ ‖Z‖ := by + simpa only [Real.norm_eq_abs] using + IsometricContinuousFunctionalCalculus.norm_spectrum_le Z + (hZ.eigenvalues_mem_spectrum_real i) hZ.isSelfAdjoint + have hpos (i : ι) : 0 < 1 - hZ.eigenvalues i := by + linarith [le_abs_self (hZ.eigenvalues i), h_eig i] + rw [← matrix_one_sub_cfc hZ, matrix_det_cfc hZ, + Real.log_prod (fun i _ => (hpos i).ne'), matrixTraceNorm_eq_sum_abs_eigenvalues hZ, + Finset.sum_div] + calc + |∑ i, Real.log (1 - hZ.eigenvalues i)| ≤ + ∑ i, |Real.log (1 - hZ.eigenvalues i)| := Finset.abs_sum_le_sum_abs _ _ + _ ≤ _ := Finset.sum_le_sum fun i _ => real_log_one_sub_bound hδ (h_eig i) + +theorem abs_trace_log_one_sub_le {Z : Matrix ι ι ℝ} + (hZ : Z.IsHermitian) (hδ : ‖Z‖ < 1) : + |(cfc Real.log (1 - Z)).trace| ≤ matrixTraceNorm Z / (1 - ‖Z‖) := by + rw [matrix_trace_log_eq_log_det (matrix_one_sub_posDef_of_norm_lt_one hZ hδ)] + exact abs_log_det_one_sub_le hZ hδ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixNormalizationOperator.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixNormalizationOperator.lean new file mode 100644 index 0000000000..d66752e104 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixNormalizationOperator.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.RealMatrixOperatorNorms +public import LeanPool.VacuumBellSeparation.Gaussian.ReserveNormalization + +/-! +# Matrix inverse-square-root normalization is the actual operator power + +Every inverse here is justified by finite positive definiteness. The +actual matrix normalized perturbation is identified with the bounded +operator expression H^(-1/2) D H^(-1/2), rather than defined to stand in +for it. This joins the matrix Gaussian estimate to source compression. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +@[simp] theorem realMatrixOperator_mul (A B : Matrix ι ι ℝ) : + realMatrixOperator (A * B) = realMatrixOperator A * realMatrixOperator B := by + simp only [realMatrixOperator, complexifyMatrix_mul, map_mul] + +@[simp] theorem realMatrixOperator_one : + realMatrixOperator (1 : Matrix ι ι ℝ) = 1 := by + simp only [realMatrixOperator, complexifyMatrix_one, map_one] + +theorem realMatrixOperator_isStrictlyPositive {H : Matrix ι ι ℝ} (hH : H.PosDef) : + IsStrictlyPositive (realMatrixOperator H) := by + have hp := complexifyMatrix_posDef hH + exact (hp.isUnit.map (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)).toMonoidHom).isStrictlyPositive + (map_nonneg (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) hp.posSemidef.nonneg) + +theorem realMatrixOperator_sqrt {H : Matrix ι ι ℝ} (hH : H.PosSemidef) : + realMatrixOperator (CFC.sqrt H) = CFC.sqrt (realMatrixOperator H) := by + rw [realMatrixOperator, complexifyMatrix_sqrt hH, + toEuclideanCLM_sqrt (complexifyMatrix_posSemidef hH)] + rfl + +theorem realMatrixOperator_inverse_sqrt {H : Matrix ι ι ℝ} (hH : H.PosDef) : + realMatrixOperator ((CFC.sqrt H)⁻¹) = realMatrixOperator H ^ (-(1 / 2) : ℝ) := by + let R := realMatrixOperator (CFC.sqrt H) + let L := realMatrixOperator ((CFC.sqrt H)⁻¹) + let N := realMatrixOperator H ^ (-(1 / 2) : ℝ) + have hdet := (Matrix.isUnit_iff_isUnit_det (CFC.sqrt H)).mp (matrix_sqrt_posDef hH).isUnit + have hLR : L * R = 1 := by + dsimp only [L, R] + rw [← realMatrixOperator_mul, Matrix.nonsing_inv_mul _ hdet, realMatrixOperator_one] + have hRN : R * N = 1 := by + dsimp only [R, N] + rw [realMatrixOperator_sqrt hH.posSemidef, CFC.sqrt_eq_rpow] + exact CFC.rpow_mul_rpow_neg (1 / 2 : ℝ) (realMatrixOperator_isStrictlyPositive hH) + change L = N + calc + L = L * (R * N) := by rw [hRN, mul_one] + _ = N := by rw [← mul_assoc, hLR, one_mul] + +theorem realMatrixOperator_relativeCovariancePerturbation + {H : Matrix ι ι ℝ} (hH : H.PosDef) (D : Matrix ι ι ℝ) : + realMatrixOperator (relativeCovariancePerturbation H D) = + realMatrixOperator H ^ (-(1 / 2) : ℝ) * realMatrixOperator D * + realMatrixOperator H ^ (-(1 / 2) : ℝ) := by + rw [relativeCovariancePerturbation, realMatrixOperator_mul, realMatrixOperator_mul, + realMatrixOperator_inverse_sqrt hH] + +variable {F : Type*} [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem realMatrixOperator_normalized_compression + (e : EuclideanSpace ℂ ι →ₗᵢ[ℂ] F) + {H D : Matrix ι ι ℝ} (hH : H.PosDef) + {T : F →L[ℂ] F} (hD : realMatrixOperator D = compression e T) : + realMatrixOperator (relativeCovariancePerturbation H D) = + normalizedReserveCompression e T (realMatrixOperator H) := by + rw [realMatrixOperator_relativeCovariancePerturbation hH D, hD] + rfl + +theorem matrix_normalized_compression_norms + (e : EuclideanSpace ℂ ι →ₗᵢ[ℂ] F) + {H D : Matrix ι ι ℝ} (hH : H.PosDef) + {T : F →L[ℂ] F} (hD : realMatrixOperator D = compression e T) : + ‖relativeCovariancePerturbation H D‖ = + ‖normalizedReserveCompression e T (realMatrixOperator H)‖ ∧ + ENNReal.ofReal (matrixTraceNorm (relativeCovariancePerturbation H D)) = + operatorTraceNorm (normalizedReserveCompression e T (realMatrixOperator H)) := by + have he := realMatrixOperator_normalized_compression e hH hD + constructor + · rw [← he, norm_realMatrixOperator] + · rw [← he, operatorTraceNorm_realMatrixOperator] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixResolventBounds.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixResolventBounds.lean new file mode 100644 index 0000000000..4882904f57 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixResolventBounds.lean @@ -0,0 +1,121 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixTraceNormSandwich + +/-! +# Operator and trace-norm bounds for the actual covariance resolvent + +For a symmetric matrix Z with ‖Z‖<1, the matrix I-Z is genuinely positive +definite. Its actual inverse satisfies the two estimates +‖(I-Z)⁻¹-I‖ ≤ ‖Z‖/(1-‖Z‖) and ‖(I-Z)⁻¹-I‖₁ ≤ ‖Z‖₁/(1-‖Z‖), which give the manuscript's +bounds (4.5). Finite spectral calculus proves both, including the empty +index case; no entrywise inverse or norm is used. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem matrixTraceNorm_cfc {A : Matrix ι ι ℝ} (hA : A.IsHermitian) (f : ℝ → ℝ) : + matrixTraceNorm (cfc f A) = ∑ i, |f (hA.eigenvalues i)| := by + have hU : ((hA.eigenvectorUnitary : Matrix ι ι ℝ))ᵀ * hA.eigenvectorUnitary = 1 := by + simpa only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial] using + Unitary.coe_star_mul_self hA.eigenvectorUnitary + rw [hA.cfc_eq, Matrix.IsHermitian.cfc, Unitary.conjStarAlgAut_apply] + simp only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial] + rw [matrixTraceNorm_orthogonal_conjugate _ hU, matrixTraceNorm_diagonal] + simp only [Function.comp_apply, RCLike.ofReal_real_eq_id, id_eq] + +theorem real_resolvent_perturbation_bound {x δ : ℝ} (hδ : δ < 1) (hx : |x| ≤ δ) : + |(1 - x)⁻¹ - 1| ≤ (1 - δ)⁻¹ * |x| := by + have hx₁ : x < 1 := (le_abs_self x).trans_lt (hx.trans_lt hδ) + have hden : 0 < 1 - x := sub_pos.mpr hx₁ + have hid : (1 - x)⁻¹ - 1 = x / (1 - x) := by + field_simp [hden.ne'] + ring + rw [hid, abs_div, abs_of_pos hden, ← div_eq_inv_mul] + exact div_le_div_of_nonneg_left (abs_nonneg x) (sub_pos.mpr hδ) + (by linarith [le_abs_self x]) + +/-- Matrix resolvent perturbation given by `(1 - Z)⁻¹ - 1`. -/ +def matrixResolventPerturbation (Z : Matrix ι ι ℝ) : Matrix ι ι ℝ := (1 - Z)⁻¹ - 1 + +theorem spectrum_one_sub_pos {Z : Matrix ι ι ℝ} (hZ : Z.IsHermitian) (hδ : ‖Z‖ < 1) + {x : ℝ} (hx : x ∈ spectrum ℝ Z) : 0 < 1 - x := by + have hb : |x| ≤ ‖Z‖ := by + simpa only [Real.norm_eq_abs] using + IsometricContinuousFunctionalCalculus.norm_spectrum_le Z hx hZ.isSelfAdjoint + linarith [le_abs_self x] + +theorem matrix_one_sub_cfc {Z : Matrix ι ι ℝ} (hZ : Z.IsHermitian) : + cfc (fun x : ℝ => 1 - x) Z = 1 - Z := by + rw [cfc_sub (fun _ : ℝ => 1) (fun x : ℝ => x) Z + continuousOn_const continuousOn_id, cfc_const_one ℝ Z, + cfc_id' ℝ Z hZ.isSelfAdjoint] + +theorem matrix_one_sub_posDef_of_norm_lt_one + {Z : Matrix ι ι ℝ} (hZ : Z.IsHermitian) (hδ : ‖Z‖ < 1) : (1 - Z).PosDef := by + have hp : 0 ≤ 1 - Z := by + rw [← matrix_one_sub_cfc hZ] + exact cfc_nonneg (f := fun x : ℝ => 1 - x) (a := Z) + fun x hx => (spectrum_one_sub_pos hZ hδ hx).le + exact hp.posSemidef.posDef_iff_isUnit.mpr (isUnit_one_sub_of_norm_lt_one hδ) + +theorem matrixResolventPerturbation_eq_cfc + {Z : Matrix ι ι ℝ} (hZ : Z.IsHermitian) (hδ : ‖Z‖ < 1) : + matrixResolventPerturbation Z = cfc (fun x : ℝ => (1 - x)⁻¹ - 1) Z := by + have hc : ContinuousOn (fun x : ℝ => 1 - x) (spectrum ℝ Z) := + continuousOn_const.sub continuousOn_id + have hn : ∀ x ∈ spectrum ℝ Z, 1 - x ≠ 0 := + fun x hx => (spectrum_one_sub_pos hZ hδ hx).ne' + symm + rw [cfc_sub (fun x : ℝ => (1 - x)⁻¹) (fun _ : ℝ => 1) Z + (hc.inv₀ hn) continuousOn_const, + cfc_inv (fun x : ℝ => 1 - x) Z hn hc hZ.isSelfAdjoint, cfc_const_one ℝ Z, + matrix_one_sub_cfc hZ, ← Matrix.nonsing_inv_eq_ringInverse] + rfl + +theorem matrixResolventPerturbation_isHermitian + {Z : Matrix ι ι ℝ} (hZ : Z.IsHermitian) : (matrixResolventPerturbation Z).IsHermitian := + (Matrix.isHermitian_one.sub hZ).inv.sub Matrix.isHermitian_one + +theorem norm_matrixResolventPerturbation_le + {Z : Matrix ι ι ℝ} (hZ : Z.IsHermitian) (hδ : ‖Z‖ < 1) : + ‖matrixResolventPerturbation Z‖ ≤ ‖Z‖ / (1 - ‖Z‖) := by + rw [matrixResolventPerturbation_eq_cfc hZ hδ] + apply norm_cfc_le (div_nonneg (norm_nonneg _) (sub_pos.mpr hδ).le) + intro x hx + have hb : |x| ≤ ‖Z‖ := by + simpa only [Real.norm_eq_abs] using + IsometricContinuousFunctionalCalculus.norm_spectrum_le Z hx hZ.isSelfAdjoint + rw [Real.norm_eq_abs, div_eq_inv_mul] + exact (real_resolvent_perturbation_bound hδ hb).trans + (mul_le_mul_of_nonneg_left hb (inv_nonneg.mpr (sub_pos.mpr hδ).le)) + +theorem matrixTraceNorm_matrixResolventPerturbation_le + {Z : Matrix ι ι ℝ} (hZ : Z.IsHermitian) (hδ : ‖Z‖ < 1) : + matrixTraceNorm (matrixResolventPerturbation Z) ≤ + (1 - ‖Z‖)⁻¹ * matrixTraceNorm Z := by + rw [matrixResolventPerturbation_eq_cfc hZ hδ, matrixTraceNorm_cfc hZ, + matrixTraceNorm_eq_sum_abs_eigenvalues hZ, Finset.mul_sum] + apply Finset.sum_le_sum + intro i _ + apply real_resolvent_perturbation_bound hδ + simpa only [Real.norm_eq_abs] using + IsometricContinuousFunctionalCalculus.norm_spectrum_le Z + (hZ.eigenvalues_mem_spectrum_real i) hZ.isSelfAdjoint + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixSandwichOrder.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixSandwichOrder.lean new file mode 100644 index 0000000000..e9005191db --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixSandwichOrder.lean @@ -0,0 +1,111 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SandwichAlgebra +import Mathlib.Tactic.NoncommRing +public import Mathlib.LinearAlgebra.Matrix.PosDef +public import Mathlib.Algebra.Order.Star.Real + +/-! +# Positive matrix domain of the inverse Gaussian sandwich + +The two Schur complements of the same actual block matrix prove inverse +order reversal. Invertibility of the two differences upgrades the result +to positive definiteness. Congruence then proves the Appendix A precision +criterion without a commutativity assumption on the covariance matrix. +No operator sandwich or Gaussian trace formula is assumed here. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {n : Type*} [Fintype n] [DecidableEq n] + +theorem matrix_inv_sub_inv_posSemidef_iff {A B : Matrix n n ℝ} + (hA : A.PosDef) (hB : B.PosDef) : + (A⁻¹ - B⁻¹).PosSemidef ↔ (B - A).PosSemidef := by + let : Invertible B := hB.isUnit.invertible + let : Invertible A⁻¹ := hA.inv.isUnit.invertible + have h₁ := Matrix.PosDef.fromBlocks₁₁ (1 : Matrix n n ℝ) A⁻¹ hB + have h₂ := Matrix.PosDef.fromBlocks₂₂ B (1 : Matrix n n ℝ) hA.inv + have hi : (A⁻¹)⁻¹ = A := + A.nonsing_inv_nonsing_inv ((Matrix.isUnit_iff_isUnit_det A).mp hA.isUnit) + simpa only [conjTranspose_one, one_mul, mul_one, hi] using h₁.symm.trans h₂ + +theorem matrix_inv_difference_factorization {A B : Matrix n n ℝ} + (hA : IsUnit A) (hB : IsUnit B) : + A⁻¹ - B⁻¹ = A⁻¹ * (B - A) * B⁻¹ := by + have hAi := A.nonsing_inv_mul ((Matrix.isUnit_iff_isUnit_det A).mp hA) + have hBi := B.mul_nonsing_inv ((Matrix.isUnit_iff_isUnit_det B).mp hB) + rw [mul_sub, sub_mul, mul_assoc, hBi, mul_one, hAi, one_mul] + +theorem matrix_difference_factorization {A B : Matrix n n ℝ} + (hA : IsUnit A) (hB : IsUnit B) : + B - A = A * (A⁻¹ - B⁻¹) * B := by + have hAi := A.mul_nonsing_inv ((Matrix.isUnit_iff_isUnit_det A).mp hA) + have hBi := B.nonsing_inv_mul ((Matrix.isUnit_iff_isUnit_det B).mp hB) + rw [mul_sub, sub_mul, hAi, one_mul, mul_assoc, hBi, mul_one] + +theorem matrix_inv_sub_inv_isUnit_iff {A B : Matrix n n ℝ} + (hA : IsUnit A) (hB : IsUnit B) : + IsUnit (A⁻¹ - B⁻¹) ↔ IsUnit (B - A) := by + constructor + · intro h + rw [matrix_difference_factorization hA hB] + exact (hA.mul h).mul hB + · intro h + rw [matrix_inv_difference_factorization hA hB] + exact ((Matrix.isUnit_nonsing_inv_iff.mpr hA).mul h).mul + (Matrix.isUnit_nonsing_inv_iff.mpr hB) + +/-- Actual positive-definite inverse order, including zero-dimensional +matrices, proved from the pinned positive-semidefinite Schur theorem. -/ +theorem matrix_inv_sub_inv_posDef_iff {A B : Matrix n n ℝ} + (hA : A.PosDef) (hB : B.PosDef) : + (A⁻¹ - B⁻¹).PosDef ↔ (B - A).PosDef := by + constructor + · intro h + have hs := (matrix_inv_sub_inv_posSemidef_iff hA hB).mp h.posSemidef + exact hs.posDef_iff_isUnit.mpr + ((matrix_inv_sub_inv_isUnit_iff hA.isUnit hB.isUnit).mp h.isUnit) + · intro h + have hs := (matrix_inv_sub_inv_posSemidef_iff hA hB).mpr h.posSemidef + exact hs.posDef_iff_isUnit.mpr + ((matrix_inv_sub_inv_isUnit_iff hA.isUnit hB.isUnit).mpr h.isUnit) + +/-- The actual precision is positive definite exactly on the positive +covariance gap. `S=T²-I` is the later thermal specialization. -/ +theorem sandwichPrecision_posDef_iff (S T C : Matrix n n ℝ) + (hS : S.PosDef) (hT : T.PosDef) (hC : C.PosDef) : + (sandwichPrecision S T C).PosDef ↔ (sandwichGap S T C).PosDef := by + let B := T * S⁻¹ * T + have hB : B.PosDef := by + simpa only [hT.isHermitian.eq] using + hS.inv.mul_mul_conjTranspose_same (Matrix.vecMul_injective_of_isUnit hT.isUnit) + have hTi := T.mul_nonsing_inv ((Matrix.isUnit_iff_isUnit_det T).mp hT.isUnit) + have hiT := T.nonsing_inv_mul ((Matrix.isUnit_iff_isUnit_det T).mp hT.isUnit) + have hBi : B⁻¹ = T⁻¹ * S * T⁻¹ := by + simp only [B, Matrix.mul_inv_rev, + S.nonsing_inv_nonsing_inv ((Matrix.isUnit_iff_isUnit_det S).mp hS.isUnit), mul_assoc] + have hconj : sandwichPrecision S T C = T * (C⁻¹ - B⁻¹) * star T := by + rw [Matrix.star_eq_conjTranspose, hT.isHermitian.eq, hBi] + calc + sandwichPrecision S T C = T * C⁻¹ * T - S := by + unfold sandwichPrecision + abel + _ = T * C⁻¹ * T - (T * T⁻¹) * S * (T⁻¹ * T) := by rw [hTi, hiT, one_mul, mul_one] + _ = T * (C⁻¹ - (T⁻¹ * S * T⁻¹)) * T := by noncomm_ring + rw [hconj, hT.isUnit.posDef_star_right_conjugate_iff] + exact matrix_inv_sub_inv_posDef_iff hC hB + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNorm.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNorm.lean new file mode 100644 index 0000000000..0ad8c0ab7d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNorm.lean @@ -0,0 +1,80 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixGaussianIntegral +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Abs + +/-! +# The actual finite-dimensional matrix trace norm + +The trace norm is trace |A|, where |A| is the genuine positive CFC square +root of AᵀA. Its orthogonal invariance is proved through positive square +root uniqueness and the ordinary matrix trace. No entrywise norm is +substituted for the manuscript's nuclear norm. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Matrix trace norm. -/ +def matrixTraceNorm (A : Matrix ι ι ℝ) : ℝ := (CFC.abs A).trace + +theorem matrixTraceNorm_eq_sqrt_trace (A : Matrix ι ι ℝ) : + matrixTraceNorm A = (CFC.sqrt (Aᵀ * A)).trace := by + simp only [matrixTraceNorm, CFC.abs, Matrix.star_eq_conjTranspose, + Matrix.conjTranspose_eq_transpose_of_trivial] + +theorem matrixTraceNorm_nonneg (A : Matrix ι ι ℝ) : 0 ≤ matrixTraceNorm A := + (CFC.abs_nonneg A).posSemidef.trace_nonneg + +theorem matrixTraceNorm_eq_zero_iff (A : Matrix ι ι ℝ) : matrixTraceNorm A = 0 ↔ A = 0 := by + rw [matrixTraceNorm, (CFC.abs_nonneg A).posSemidef.trace_eq_zero_iff, CFC.abs_eq_zero_iff] + +theorem matrix_sqrt_orthogonal_conjugate + (U : Matrix ι ι ℝ) (hU : Uᵀ * U = 1) + {A : Matrix ι ι ℝ} (hA : 0 ≤ A) : + CFC.sqrt (U * A * Uᵀ) = U * CFC.sqrt A * Uᵀ := by + have hpos : 0 ≤ U * CFC.sqrt A * Uᵀ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + ((CFC.sqrt_nonneg A).posSemidef.mul_mul_conjTranspose_same U).nonneg + apply CFC.sqrt_unique (hb := hpos) + calc + (U * CFC.sqrt A * Uᵀ) * (U * CFC.sqrt A * Uᵀ) = + U * (CFC.sqrt A * (Uᵀ * U) * CFC.sqrt A) * Uᵀ := by noncomm_ring + _ = U * A * Uᵀ := by + rw [hU, Matrix.mul_one, CFC.sqrt_mul_sqrt_self A hA] + +theorem matrix_abs_orthogonal_conjugate + (U : Matrix ι ι ℝ) (hU : Uᵀ * U = 1) (A : Matrix ι ι ℝ) : + CFC.abs (U * A * Uᵀ) = U * CFC.abs A * Uᵀ := by + have hgram : (U * A * Uᵀ)ᵀ * (U * A * Uᵀ) = U * (Aᵀ * A) * Uᵀ := by + simp only [Matrix.transpose_mul, Matrix.transpose_transpose] + calc + _ = U * Aᵀ * (Uᵀ * U) * A * Uᵀ := by noncomm_ring + _ = _ := by rw [hU, Matrix.mul_one]; noncomm_ring + simp only [CFC.abs, Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial] + rw [hgram, matrix_sqrt_orthogonal_conjugate U hU] + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (Matrix.posSemidef_conjTranspose_mul_self A).nonneg + +theorem matrixTraceNorm_orthogonal_conjugate + (U : Matrix ι ι ℝ) (hU : Uᵀ * U = 1) (A : Matrix ι ι ℝ) : + matrixTraceNorm (U * A * Uᵀ) = matrixTraceNorm A := by + rw [matrixTraceNorm, matrix_abs_orthogonal_conjugate U hU, + Matrix.trace_mul_cycle, hU, Matrix.one_mul] + rfl + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNormDiagonal.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNormDiagonal.lean new file mode 100644 index 0000000000..bdb5debff7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNormDiagonal.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixTraceNorm + +/-! +# Diagonal estimates for the actual matrix trace norm + +For a self-adjoint perturbation H, its absolute diagonal sum is bounded +by trace |H|. Bounded scalar weights therefore bound any diagonal trace +functional. This supplies the algebraic estimate used by the source +purity differential without assuming that differential formula. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] + +theorem matrix_abs_sub_nonneg {A : Matrix ι ι ℝ} (hA : A.IsHermitian) : + open scoped Classical in 0 ≤ CFC.abs A - A := by + classical + rw [CFC.abs_sub_self A hA.isSelfAdjoint, two_smul] + exact add_nonneg (CFC.negPart_nonneg A) (CFC.negPart_nonneg A) + +theorem matrix_abs_add_nonneg {A : Matrix ι ι ℝ} (hA : A.IsHermitian) : + open scoped Classical in 0 ≤ CFC.abs A + A := by + classical + rw [CFC.abs_add_self A hA.isSelfAdjoint, two_smul] + exact add_nonneg (CFC.posPart_nonneg A) (CFC.posPart_nonneg A) + +theorem abs_matrix_diagonal_le_abs_diagonal {A : Matrix ι ι ℝ} + (hA : A.IsHermitian) (i : ι) : open scoped Classical in |A i i| ≤ CFC.abs A i i := by + classical + have hm := (matrix_abs_sub_nonneg hA).posSemidef.diag_nonneg (i := i) + have hp := (matrix_abs_add_nonneg hA).posSemidef.diag_nonneg (i := i) + simp only [Matrix.sub_apply, Matrix.add_apply] at hm hp + exact abs_le.mpr ⟨by linarith, by linarith⟩ + +variable [DecidableEq ι] + +theorem sum_abs_diagonal_le_matrixTraceNorm {A : Matrix ι ι ℝ} + (hA : A.IsHermitian) : ∑ i, |A i i| ≤ matrixTraceNorm A := by + change ∑ i, |A i i| ≤ ∑ i, CFC.abs A i i + exact Finset.sum_le_sum fun i _ => abs_matrix_diagonal_le_abs_diagonal hA i + +theorem abs_weighted_diagonal_le_matrixTraceNorm {A : Matrix ι ι ℝ} + (hA : A.IsHermitian) {c : ℝ} (hc : 0 ≤ c) (w : ι → ℝ) + (hw : ∀ i, |w i| ≤ c) : + |∑ i, w i * A i i| ≤ c * matrixTraceNorm A := by + calc + |∑ i, w i * A i i| ≤ ∑ i, |w i * A i i| := Finset.abs_sum_le_sum_abs _ _ + _ ≤ ∑ i, c * |A i i| := by + apply Finset.sum_le_sum + intro i _ + rw [abs_mul] + exact mul_le_mul_of_nonneg_right (hw i) (abs_nonneg _) + _ = c * ∑ i, |A i i| := (Finset.mul_sum _ _ _).symm + _ ≤ c * matrixTraceNorm A := mul_le_mul_of_nonneg_left + (sum_abs_diagonal_le_matrixTraceNorm hA) hc + +theorem matrix_abs_diagonal (d : ι → ℝ) : + CFC.abs (Matrix.diagonal d) = Matrix.diagonal (fun i => |d i|) := by + have hp : 0 ≤ Matrix.diagonal (fun i => |d i|) := + (Matrix.PosSemidef.diagonal (fun i => abs_nonneg (d i))).nonneg + rw [CFC.abs] + apply CFC.sqrt_unique (hb := hp) + simp only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial, + Matrix.diagonal_transpose, Matrix.diagonal_mul_diagonal] + congr 1 + funext i + simpa only [pow_two] using sq_abs (d i) + +theorem matrixTraceNorm_diagonal (d : ι → ℝ) : + matrixTraceNorm (Matrix.diagonal d) = ∑ i, |d i| := by + rw [matrixTraceNorm, matrix_abs_diagonal, Matrix.trace_diagonal] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNormOrder.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNormOrder.lean new file mode 100644 index 0000000000..b63278842f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNormOrder.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixTraceNormDiagonal + +/-! +# Order bounds for the actual trace norm of a symmetric matrix + +Spectral diagonalization identifies trace |A| with the sum of absolute +eigenvalues. If -B ≤ A ≤ B, positivity of both conjugated differences +bounds each eigenvalue by the corresponding diagonal entry of B. This +gives trace |A| ≤ trace B without an operator absolute-value monotonicity +claim (which would in general be false). +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem matrixTraceNorm_eq_sum_abs_eigenvalues {A : Matrix ι ι ℝ} + (hA : A.IsHermitian) : matrixTraceNorm A = ∑ i, |hA.eigenvalues i| := by + rw [matrixTraceNorm, CFC.abs_eq_cfc_norm A hA.isSelfAdjoint, hA.cfc_eq, + Matrix.IsHermitian.cfc, Unitary.conjStarAlgAut_apply, Matrix.trace_mul_cycle, + Unitary.coe_star_mul_self, Matrix.one_mul, Matrix.trace_diagonal] + simp only [Function.comp_apply, RCLike.ofReal_real_eq_id, id_eq, Real.norm_eq_abs] + +theorem matrixTraceNorm_le_trace_of_order_bounds + {A B : Matrix ι ι ℝ} (hA : A.IsHermitian) (hlo : -B ≤ A) (hhi : A ≤ B) : + matrixTraceNorm A ≤ B.trace := by + let U := (hA.eigenvectorUnitary : Matrix ι ι ℝ) + have hdiag : Uᵀ * A * U = Matrix.diagonal hA.eigenvalues := by + simpa only [Unitary.conjStarAlgAut_star_apply, Matrix.star_eq_conjTranspose, + Matrix.conjTranspose_eq_transpose_of_trivial, RCLike.ofReal_real_eq_id, Function.id_comp] + using hA.conjStarAlgAut_star_eigenvectorUnitary + have hleft : (Uᵀ * (B + A) * U).PosSemidef := by + have hp : 0 ≤ B + A := by + have := _root_.add_le_add_right hlo B + simpa only [add_neg_cancel] using this + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + hp.posSemidef.conjTranspose_mul_mul_same U + have hright : (Uᵀ * (B - A) * U).PosSemidef := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (sub_nonneg.mpr hhi).posSemidef.conjTranspose_mul_mul_same U + have hbound : ∀ i, |hA.eigenvalues i| ≤ (Uᵀ * B * U) i i := by + intro i + have hl := hleft.diag_nonneg (i := i) + have hr := hright.diag_nonneg (i := i) + simp only [Matrix.mul_add, Matrix.add_mul, Matrix.mul_sub, Matrix.sub_mul, + hdiag, Matrix.add_apply, Matrix.sub_apply, Matrix.diagonal_apply_eq] at hl hr + exact abs_le.mpr ⟨by linarith, by linarith⟩ + have hUU : U * Uᵀ = 1 := by + simpa only [Unitary.coe_star, Matrix.star_eq_conjTranspose, + Matrix.conjTranspose_eq_transpose_of_trivial, U] using + Unitary.coe_mul_star_self hA.eigenvectorUnitary + rw [matrixTraceNorm_eq_sum_abs_eigenvalues hA] + calc + ∑ i, |hA.eigenvalues i| ≤ (Uᵀ * B * U).trace := Finset.sum_le_sum fun i _ => hbound i + _ = B.trace := by rw [Matrix.trace_mul_cycle, hUU, Matrix.one_mul] + +theorem matrixTraceNorm_add_le {A B : Matrix ι ι ℝ} + (hA : A.IsHermitian) (hB : B.IsHermitian) : + matrixTraceNorm (A + B) ≤ matrixTraceNorm A + matrixTraceNorm B := by + have hupper : A + B ≤ CFC.abs A + CFC.abs B := + add_le_add (sub_nonneg.mp (matrix_abs_sub_nonneg hA)) + (sub_nonneg.mp (matrix_abs_sub_nonneg hB)) + have hlower : -(CFC.abs A + CFC.abs B) ≤ A + B := by + have ha : -CFC.abs A ≤ A := by + have h := matrix_abs_add_nonneg hA + exact neg_le_iff_add_nonneg'.mpr h + have hb : -CFC.abs B ≤ B := by + have h := matrix_abs_add_nonneg hB + exact neg_le_iff_add_nonneg'.mpr h + simpa only [neg_add] using add_le_add ha hb + have h := matrixTraceNorm_le_trace_of_order_bounds (hA.add hB) hlower hupper + simpa only [Matrix.trace_add, matrixTraceNorm] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNormSandwich.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNormSandwich.lean new file mode 100644 index 0000000000..81e294104f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixTraceNormSandwich.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixTraceNormOrder + +/-! +# The actual trace-norm ideal bound for a symmetric sandwich + +The positive trace estimate follows from BᵀB ≤ ‖B‖² I and the genuine +square root of the positive input. The symmetric case uses the proved +two-sided trace order bound, giving ‖B A Bᵀ‖₁ ≤ ‖B‖² ‖A‖₁. The norm of B +is the actual Euclidean operator norm selected by the matrix scope. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +theorem trace_positive_sandwich_le_norm_sq + {A : Matrix ι ι ℝ} (hA : 0 ≤ A) (B : Matrix ι ι ℝ) : + (B * A * Bᵀ).trace ≤ ‖B‖ ^ 2 * A.trace := by + let Q := CFC.sqrt A + have hQ : 0 ≤ Q := CFC.sqrt_nonneg A + have hQt : Qᵀ = Q := by + simpa only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial] using + hQ.isSelfAdjoint.star_eq + have hQQ : Q * Q = A := CFC.sqrt_mul_sqrt_self A hA + have hbound : Bᵀ * B ≤ ‖B‖ ^ 2 • (1 : Matrix ι ι ℝ) := by + rcases isEmpty_or_nonempty ι with hi | hi + · let := hi + exact le_of_eq (Subsingleton.elim _ _) + · let := hi + have hs : IsSelfAdjoint (Bᴴ * B) := IsSelfAdjoint.star_mul_self B + have hb : Bᴴ * B ≤ algebraMap ℝ (Matrix ι ι ℝ) ‖Bᴴ * B‖ := + le_algebraMap_of_spectrum_le (ha := hs) fun x hx => + (Real.le_norm_self x).trans (spectrum.norm_le_norm_of_mem hx) + rw [Matrix.l2_opNorm_conjTranspose_mul_self] at hb + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial, + Algebra.algebraMap_eq_smul_one, pow_two] using hb + have hp : 0 ≤ Q * (‖B‖ ^ 2 • (1 : Matrix ι ι ℝ) - Bᵀ * B) * Q := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial, hQt] using + ((sub_nonneg.mpr hbound).posSemidef.mul_mul_conjTranspose_same Q).nonneg + have he : Q * (‖B‖ ^ 2 • (1 : Matrix ι ι ℝ) - Bᵀ * B) * Q = + ‖B‖ ^ 2 • A - Q * (Bᵀ * B) * Q := by + rw [Matrix.mul_sub, Matrix.sub_mul, Matrix.mul_smul, Matrix.mul_one, + Matrix.smul_mul, hQQ] + have ht : (B * A * Bᵀ).trace = (Q * (Bᵀ * B) * Q).trace := by + rw [← hQQ] + calc + _ = ((B * Q) * (Q * Bᵀ)).trace := congrArg Matrix.trace (by noncomm_ring) + _ = ((Q * Bᵀ) * (B * Q)).trace := Matrix.trace_mul_comm _ _ + _ = _ := congrArg Matrix.trace (by noncomm_ring) + have htr := hp.posSemidef.trace_nonneg + rw [he, Matrix.trace_sub, Matrix.trace_smul, smul_eq_mul] at htr + rw [ht] + linarith + +theorem matrixTraceNorm_sandwich_le + {A : Matrix ι ι ℝ} (hA : A.IsHermitian) (B : Matrix ι ι ℝ) : + matrixTraceNorm (B * A * Bᵀ) ≤ ‖B‖ ^ 2 * matrixTraceNorm A := by + have hBA : (B * A * Bᵀ).IsHermitian := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + Matrix.isHermitian_mul_mul_conjTranspose B hA + have hupper : B * A * Bᵀ ≤ B * CFC.abs A * Bᵀ := by + apply sub_nonneg.mp + have h := (matrix_abs_sub_nonneg hA).posSemidef.mul_mul_conjTranspose_same B + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial, + Matrix.mul_sub, Matrix.sub_mul] using h.nonneg + have hlower : -(B * CFC.abs A * Bᵀ) ≤ B * A * Bᵀ := by + apply neg_le_iff_add_nonneg'.mpr + have h := (matrix_abs_add_nonneg hA).posSemidef.mul_mul_conjTranspose_same B + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial, + Matrix.mul_add, Matrix.add_mul] using h.nonneg + exact (matrixTraceNorm_le_trace_of_order_bounds hBA hlower hupper).trans + (trace_positive_sandwich_le_norm_sq (CFC.abs_nonneg A) B) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MatrixWeylLabels.lean b/LeanPool/VacuumBellSeparation/Gaussian/MatrixWeylLabels.lean new file mode 100644 index 0000000000..88f2498e81 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MatrixWeylLabels.lean @@ -0,0 +1,95 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticWeylImplementer +public import LeanPool.VacuumBellSeparation.Gaussian.QuadratureMatrices +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixGaussianIntegral + +/-! +# Actual real matrix coordinates for the constructed Weyl implementer + +The coordinate equivalence sends a complex mode vector to its interleaved +real and imaginary parts. Conjugating literal real matrix multiplication +by this equivalence gives a genuine bounded real linear label map. The +matrix identity Sᵀ Ω S = Ω proves preservation of the actual Weyl form. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +/-- Complex real linear equivalence of type `MultiModePhaseSpace m ≃ₗ[ℝ] (Fin m × Fin 2 → ℝ) where +toEquiv`. -/ +def complexRealLinearEquiv (m : ℕ) : + MultiModePhaseSpace m ≃ₗ[ℝ] (Fin m × Fin 2 → ℝ) where + toEquiv := (WithLp.equiv 2 (Fin m → ℂ)).trans (complexRealCoordinates m).toEquiv + map_add' z w := by + ext ⟨j, k⟩ + fin_cases k <;> + simp [complexRealCoordinates_apply, complexRealCoordinates_apply_one] + map_smul' c z := by + ext ⟨j, k⟩ + fin_cases k <;> + simp [complexRealCoordinates_apply, complexRealCoordinates_apply_one] + +@[simp] theorem complexRealLinearEquiv_apply (m : ℕ) (z : MultiModePhaseSpace m) : + complexRealLinearEquiv m z = complexRealCoordinates m (fun j => z j) := rfl + +theorem inner_im_eq_real_symplectic {m : ℕ} (z w : MultiModePhaseSpace m) : + (inner ℂ z w).im = complexRealLinearEquiv m z ⬝ᵥ + (modeSymplecticForm *ᵥ complexRealLinearEquiv m w) := by + rw [dotProduct_modeSymplecticForm] + simp only [PiLp.inner_apply, RCLike.inner_apply', Complex.im_sum, Complex.mul_im, + Complex.conj_re, Complex.conj_im, complexRealLinearEquiv_apply, + modeQuadratureTuple, complexRealCoordinates_apply, complexRealCoordinates_apply_one, + quadratureSymplectic] + apply Finset.sum_congr rfl + intro j _ + ring + +/-- Matrix Weyl label map of type `MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m`. -/ +def matrixWeylLabelMap {m : ℕ} + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m := + ((complexRealLinearEquiv m).symm.toLinearMap.comp + (S.mulVecLin.comp (complexRealLinearEquiv m).toLinearMap)).toContinuousLinearMap + +theorem complexRealLinearEquiv_matrixWeylLabelMap {m : ℕ} + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (z : MultiModePhaseSpace m) : + complexRealLinearEquiv m (matrixWeylLabelMap S z) = S *ᵥ complexRealLinearEquiv m z := by + change complexRealLinearEquiv m + ((complexRealLinearEquiv m).symm (S *ᵥ complexRealLinearEquiv m z)) = _ + exact (complexRealLinearEquiv m).apply_symm_apply _ + +theorem matrixWeylLabelMap_preservesWeylForm {m : ℕ} + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : Sᵀ * modeSymplecticForm * S = modeSymplecticForm) : + PreservesWeylForm (matrixWeylLabelMap S) := by + intro z w + rw [inner_im_eq_real_symplectic, inner_im_eq_real_symplectic, + complexRealLinearEquiv_matrixWeylLabelMap, complexRealLinearEquiv_matrixWeylLabelMap] + have h := dotProduct_congruence Sᵀ modeSymplecticForm + (complexRealLinearEquiv m z) (complexRealLinearEquiv m w) + simpa only [Matrix.transpose_transpose, hS] using h + +/-- A real symplectic matrix has an actual constructed oscillator unitary +implementer on the fixed representation. -/ +theorem exists_matrix_weyl_implementer {m : ℕ} + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : Sᵀ * modeSymplecticForm * S = modeSymplecticForm) : + ∃ U : MultiModeOscillatorSpace m ≃ₗᵢ[ℂ] MultiModeOscillatorSpace m, + ∀ z, U.conjStarAlgEquiv (multiOscillatorWeyl z) = multiOscillatorWeyl + (matrixWeylLabelMap S z) := + ⟨symplecticWeylImplementer (matrixWeylLabelMap_preservesWeylForm S hS), + symplecticWeylImplementer_conj_weyl (matrixWeylLabelMap_preservesWeylForm S hS)⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ModeHamiltonianAbsoluteValue.lean b/LeanPool/VacuumBellSeparation/Gaussian/ModeHamiltonianAbsoluteValue.lean new file mode 100644 index 0000000000..c732ef7168 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ModeHamiltonianAbsoluteValue.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixPositivity +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPerturbationMultiplier + +/-! +# The actual absolute symplectic Hamiltonian in Williamson coordinates + +For the literal canonical form Ω, H=iDΩ has absolute value D whenever +the mode variances are nonnegative. Actual CFC composition therefore +evaluates every even scalar trace as twice the sum over mode variances. +No signed eigenvector enumeration or simplicity assumption is needed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {m : ℕ} + +/-- Mode Hamiltonian given by `Complex.I • complexifyMatrix (modeDiagonal ν * +modeSymplecticForm)`. -/ +def modeHamiltonian (ν : Fin m → ℝ) : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ := + Complex.I • complexifyMatrix (modeDiagonal ν * modeSymplecticForm) + +theorem complexifyMatrix_modeDiagonal (ν : Fin m → ℝ) : + complexifyMatrix (modeDiagonal ν) = Matrix.diagonal (fun i : Fin m × Fin 2 => (ν i.1 : ℂ)) := by + ext i j + by_cases h : i = j + · subst j + simp [complexifyMatrix, modeDiagonal] + · simp [complexifyMatrix, modeDiagonal, h] + +theorem symplecticHamiltonian_modeDiagonal {ν : Fin m → ℝ} (hν : ∀ i, 0 ≤ ν i) : + symplecticHamiltonian modeSymplecticForm (modeDiagonal ν) = modeHamiltonian ν := by + rw [symplecticHamiltonian, modeDiagonal_sqrt hν, modeSqrt_symplectic_congruence ν hν] + rfl + +theorem modeHamiltonian_isHermitian {ν : Fin m → ℝ} (hν : ∀ i, 0 ≤ ν i) : + (modeHamiltonian ν).IsHermitian := by + rw [← symplecticHamiltonian_modeDiagonal hν] + exact symplecticHamiltonian_isHermitian transpose_modeSymplecticForm _ + +theorem modeHamiltonian_square (ν : Fin m → ℝ) : + modeHamiltonian ν * modeHamiltonian ν = + complexifyMatrix (modeDiagonal ν) * complexifyMatrix (modeDiagonal ν) := by + have hK : (modeDiagonal ν * modeSymplecticForm) * + (modeDiagonal ν * modeSymplecticForm) = -(modeDiagonal ν * modeDiagonal ν) := by + calc + _ = modeDiagonal ν * (modeSymplecticForm * modeDiagonal ν) * modeSymplecticForm := by + noncomm_ring + _ = modeDiagonal ν * (modeDiagonal ν * modeSymplecticForm) * modeSymplecticForm := by + rw [← (modeDiagonal_commute_symplectic ν).eq] + _ = modeDiagonal ν * modeDiagonal ν * (modeSymplecticForm * modeSymplecticForm) := by + noncomm_ring + _ = _ := by rw [modeSymplecticForm_mul_self, Matrix.mul_neg, Matrix.mul_one] + rw [modeHamiltonian, Matrix.smul_mul, Matrix.mul_smul, smul_smul, Complex.I_mul_I, + neg_one_smul, ← complexifyMatrix_mul, hK, complexifyMatrix_neg, neg_neg, + complexifyMatrix_mul] + +/-- The absolute value is the genuine positive CFC square root of H†H. -/ +theorem abs_modeHamiltonian {ν : Fin m → ℝ} (hν : ∀ i, 0 ≤ ν i) : + CFC.abs (modeHamiltonian ν) = complexifyMatrix (modeDiagonal ν) := by + have hD : (complexifyMatrix (modeDiagonal ν)).PosSemidef := + complexifyMatrix_posSemidef (Matrix.PosSemidef.diagonal (fun i => hν i.1)) + rw [CFC.abs, (modeHamiltonian_isHermitian hν).isSelfAdjoint.star_eq, + modeHamiltonian_square, CFC.sqrt_mul_self _ hD.nonneg] + +theorem real_trace_even_modeHamiltonian {ν : Fin m → ℝ} (hν : ∀ i, 0 ≤ ν i) (f : ℝ → ℝ) : + (cfc (fun x : ℝ => f |x|) (modeHamiltonian ν)).trace.re = 2 * ∑ i, f (ν i) := by + rw [cfc_complex_abs_composition (modeHamiltonian_isHermitian hν) f, + abs_modeHamiltonian hν, complexifyMatrix_modeDiagonal, cfc_complex_real_diagonal, + Matrix.trace_diagonal, Complex.re_sum] + simp only [Complex.ofReal_re, Fintype.sum_prod_type, Fin.sum_univ_two] + rw [Finset.sum_add_distrib] + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ModePurityDifferential.lean b/LeanPool/VacuumBellSeparation/Gaussian/ModePurityDifferential.lean new file mode 100644 index 0000000000..160c72e33a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ModePurityDifferential.lean @@ -0,0 +1,193 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FaithfulPurityDerivative +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixTraceNormDiagonal + +/-! +# The actual aggregate purity differential in Williamson coordinates + +The odd CFC slope is computed through the actual absolute Hamiltonian. +A trace identity and the genuine Sylvester inverse then eliminate the +square-root derivative. This gives the source's weighted diagonal formula +and its dimension-independent bound by the actual relative trace norm. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator Topology + +variable {m : ℕ} + +theorem evenScalarSlope_eq_ratio_mul (f : ℝ → ℝ) {x : ℝ} (hx : x ≠ 0) : + evenScalarSlope f x = (deriv f |x| / |x|) * x := by + by_cases hp : 0 ≤ x + · rw [evenScalarSlope, ite_eq_left hp, abs_of_nonneg hp, div_mul_cancel₀ _ hx] + · rw [evenScalarSlope, ite_eq_right hp, abs_of_neg (lt_of_not_ge hp)] + field_simp [hx] + +theorem cfc_evenScalarSlope_modeHamiltonian (f : ℝ → ℝ) + {ν : Fin m → ℝ} (hν : ∀ j, 0 < ν j) : + cfc (evenScalarSlope f) (modeHamiltonian ν) = + Complex.I • complexifyMatrix (modeDiagonal (fun j => deriv f + (ν j)) * modeSymplecticForm) := by + have hH := modeHamiltonian_isHermitian (fun j => (hν j).le) + have hne : ∀ x ∈ spectrum ℝ (modeHamiltonian ν), x ≠ 0 := by + intro x hx hx0 + have hspec : x ∈ spectrum ℝ + (symplecticHamiltonian modeSymplecticForm + ((1 : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) * modeDiagonal ν * 1ᵀ)) := by + simpa only [Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one, + symplecticHamiltonian_modeDiagonal (fun j => (hν j).le)] using hx + obtain ⟨j, hj⟩ := abs_eigenvalue_symplecticHamiltonian_williamson 1 + (by simp) hν hspec + rw [hx0, abs_zero] at hj + linarith [hν j] + have he : cfc (evenScalarSlope f) (modeHamiltonian ν) = + cfc (fun x : ℝ => (deriv f |x| / |x|) * x) (modeHamiltonian ν) := + cfc_congr fun x hx => evenScalarSlope_eq_ratio_mul f (hne x hx) + rw [he, cfc_mul (fun x : ℝ => deriv f |x| / |x|) (fun x : ℝ => x) + (modeHamiltonian ν) ((modeHamiltonian ν).finite_real_spectrum.continuousOn _) continuousOn_id, + cfc_id' ℝ (modeHamiltonian ν) hH.isSelfAdjoint, + cfc_complex_abs_composition hH (fun x => deriv f x / x), + abs_modeHamiltonian (fun j => (hν j).le), complexifyMatrix_modeDiagonal, + cfc_complex_real_diagonal, + ← complexifyMatrix_modeDiagonal (fun j => deriv f (ν j) / ν j), modeHamiltonian, + Matrix.mul_smul, ← complexifyMatrix_mul] + congr 1 + congr 1 + rw [← Matrix.mul_assoc, modeDiagonal_mul] + congr 2 + funext j + exact div_mul_cancel₀ _ (hν j).ne' + +theorem real_trace_complexifyMatrix {ι : Type*} [Fintype ι] + (A : Matrix ι ι ℝ) : (complexifyMatrix A).trace.re = A.trace := by + simp only [Matrix.trace, Complex.re_sum, Matrix.diag_apply, complexifyMatrix, + Matrix.map_apply, RCLike.algebraMap_eq_ofReal, RCLike.ofReal_eq_complex_ofReal, + Complex.ofReal_re] + +theorem trace_skew_sylvester_identity {ι : Type*} [Fintype ι] [DecidableEq ι] + (Ω R W X : Matrix ι ι ℝ) (hΩ : Ω * Ω = -1) + (hR : Commute R Ω) (hW : Commute W Ω) : + (-(W * Ω) * (X * Ω * R + R * Ω * X)).trace = + (W * (R * X + X * R)).trace := by + have hΩRΩ : Ω * R * Ω = -R := by + rw [← hR.eq, Matrix.mul_assoc, hΩ, Matrix.mul_neg, Matrix.mul_one] + have hΩRWΩ : (Ω * R) * (W * Ω) = -(R * W) := by + calc + _ = R * (Ω * W) * Ω := by rw [← hR.eq]; noncomm_ring + _ = R * (W * Ω) * Ω := by rw [← hW.eq] + _ = R * W * (Ω * Ω) := by noncomm_ring + _ = _ := by rw [hΩ, Matrix.mul_neg, Matrix.mul_one] + have ht : (W * Ω * X * Ω * R).trace = -(W * X * R).trace := by + calc + _ = ((W * Ω) * X * (Ω * R)).trace := by congr 1; noncomm_ring + _ = ((Ω * R) * (W * Ω) * X).trace := Matrix.trace_mul_cycle _ _ _ + _ = -(R * W * X).trace := by rw [hΩRWΩ, Matrix.neg_mul, Matrix.trace_neg] + _ = _ := congrArg Neg.neg (Matrix.trace_mul_cycle W X R).symm + have halg : -(W * Ω) * (X * Ω * R + R * Ω * X) = + -(W * Ω * X * Ω * R) - W * (Ω * R * Ω) * X := by noncomm_ring + rw [halg, Matrix.trace_sub, Matrix.trace_neg, ht, hΩRΩ, + Matrix.mul_neg, Matrix.neg_mul, Matrix.trace_neg, Matrix.mul_add, Matrix.trace_add] + simp only [← Matrix.mul_assoc] + ring + +/-- Mode covariance space represented by `modeDiagonal ν`. -/ +def modeCovarianceSpace (ν : Fin m → ℝ) : RealSymmetricMatrixSpace (Fin m × Fin 2) := + ⟨modeDiagonal ν, (Matrix.isHermitian_diagonal _).isSelfAdjoint⟩ + +theorem covariancePurityDerivative_mode (r : ℝ) {ν : Fin m → ℝ} + (hν : ∀ j, 0 < ν j) (Δ : RealSymmetricMatrixSpace (Fin m × Fin 2)) : + covariancePurityDerivative r (modeCovarianceSpace ν) (modeDiagonal_posDef hν) Δ = + -(1 / 2) * ∑ i : Fin m × Fin 2, deriv (logPurityFactor r) (ν i.1) * + (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) i i := by + let R := CFC.sqrt (modeDiagonal ν) + let X : RealSymmetricMatrixSpace (Fin m × Fin 2) := + (positiveSylvesterSelfAdjointContinuousEquiv + (matrix_sqrt_posDef (modeDiagonal_posDef hν))).symm Δ + have hsolve : R * (X : Matrix _ _ ℝ) + (X : Matrix _ _ ℝ) * R = + (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) := + positiveSylvester_inverse_solves (matrix_sqrt_posDef (modeDiagonal_posDef hν)) Δ + have hR : Commute R modeSymplecticForm := by + dsimp only [R] + rw [modeDiagonal_sqrt (fun j => (hν j).le)] + exact modeDiagonal_commute_symplectic _ + change -(1 / 2) * hamiltonianSpectralDerivative modeSymplecticForm + transpose_modeSymplecticForm (modeCovarianceSpace ν) (modeDiagonal_posDef hν) + (evenScalarSlope (logPurityFactor r)) Δ = _ + have hV : (modeCovarianceSpace ν : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ).PosDef := + modeDiagonal_posDef hν + have happly := hamiltonianSpectralDerivative_apply modeSymplecticForm + transpose_modeSymplecticForm (modeCovarianceSpace ν) Δ hV + (evenScalarSlope (logPurityFactor r)) + refine (congrArg (fun z : ℝ => -(1 / 2) * z) happly).trans ?_ + change -(1 / 2) * (cfc (evenScalarSlope (logPurityFactor r)) + (symplecticHamiltonian modeSymplecticForm (modeDiagonal ν)) * + (Complex.I • complexifyMatrix ((X : Matrix _ _ ℝ) * modeSymplecticForm * R + + R * modeSymplecticForm * (X : Matrix _ _ ℝ)))).trace.re = _ + rw [symplecticHamiltonian_modeDiagonal (fun j => (hν j).le), + cfc_evenScalarSlope_modeHamiltonian _ hν, + Matrix.smul_mul, Matrix.mul_smul, smul_smul, Complex.I_mul_I, + neg_one_smul, ← complexifyMatrix_mul, ← complexifyMatrix_neg, + real_trace_complexifyMatrix, ← Matrix.neg_mul, + trace_skew_sylvester_identity _ _ _ _ modeSymplecticForm_mul_self hR + (modeDiagonal_commute_symplectic _), hsolve] + congr 1 + simp only [modeDiagonal, Matrix.trace, Matrix.diag_apply, Matrix.diagonal_mul] + +theorem mode_relativeCovariancePerturbation_diagonal {ν : Fin m → ℝ} + (hν : ∀ j, 0 < ν j) + (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (i : Fin m × Fin 2) : + ν i.1 * relativeCovariancePerturbation (modeDiagonal ν) Δ i i = Δ i i := by + rw [relativeCovariancePerturbation, modeDiagonal_sqrt (fun j => (hν j).le), + modeDiagonal_inv (fun j => (Real.sqrt_pos.mpr (hν j)).ne')] + simp only [modeDiagonal, Matrix.diagonal_mul, Matrix.mul_diagonal] + have hsq := Real.sq_sqrt (hν i.1).le + have hne := (Real.sqrt_pos.mpr (hν i.1)).ne' + field_simp [hne] + rw [hsq] + +/-- The source coefficient r/2 multiplies the actual finite matrix trace +norm; the proof does not introduce a dimension factor. -/ +theorem abs_covariancePurityDerivative_mode_le {r : ℝ} (hr : 1 < r) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) + (Δ : RealSymmetricMatrixSpace (Fin m × Fin 2)) : + |covariancePurityDerivative r (modeCovarianceSpace ν) + (modeDiagonal_posDef (fun j => by linarith [hν j])) Δ| ≤ + (r / 2) * matrixTraceNorm (relativeCovariancePerturbation (modeDiagonal ν) Δ) := by + have hν0 (j : Fin m) : 0 < ν j := by linarith [hν j] + let Z := relativeCovariancePerturbation (modeDiagonal ν) (Δ : Matrix _ _ ℝ) + have hZ : Z.IsHermitian := relativeCovariancePerturbation_isHermitian + (modeDiagonal_posDef hν0) (realSymmetricMatrix_isHermitian Δ) + have hw (i : Fin m × Fin 2) : + |ν i.1 * deriv (logPurityFactor r) (ν i.1)| ≤ r := by + obtain ⟨hl, hu⟩ := logPurityFactor_derivative_bound hr (hν i.1) + rwa [abs_of_nonneg hl] + have h := abs_weighted_diagonal_le_matrixTraceNorm hZ (by linarith : 0 ≤ r) + (fun i => ν i.1 * deriv (logPurityFactor r) (ν i.1)) hw + have he : (∑ i : Fin m × Fin 2, + (ν i.1 * deriv (logPurityFactor r) (ν i.1)) * Z i i) = + ∑ i : Fin m × Fin 2, deriv (logPurityFactor r) (ν i.1) * + (Δ : Matrix _ _ ℝ) i i := by + apply Finset.sum_congr rfl + intro i _ + calc + _ = deriv (logPurityFactor r) (ν i.1) * (ν i.1 * Z i i) := by ring + _ = _ := by rw [mode_relativeCovariancePerturbation_diagonal hν0] + rw [he] at h + rw [covariancePurityDerivative_mode r hν0, abs_mul] + norm_num only [abs_neg, abs_div, abs_one] + nlinarith + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MonotoneStrongLimit.lean b/LeanPool/VacuumBellSeparation/Gaussian/MonotoneStrongLimit.lean new file mode 100644 index 0000000000..e42c17442b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MonotoneStrongLimit.lean @@ -0,0 +1,147 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTrace +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order + +/-! +# Decreasing positive bounded operators + +The strong limit is constructed from Cauchy sequences on every Hilbert-space +vector. Positivity, the operator order and isometric compression pass to the +actual pointwise limit. This supplies the analytic limit step for singular +operator means, independently of any finite-dimensional spectral model. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Filter +open scoped Topology + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- A positive operator controls its squared action by its quadratic form. -/ +theorem norm_apply_sq_le_norm_mul_inner {A : E →L[ℂ] E} (hA : 0 ≤ A) (x : E) : + ‖A x‖ ^ 2 ≤ ‖A‖ * (inner ℂ x (A x)).re := by + have hnorm : ‖A x‖ ≤ ‖CFC.sqrt A‖ * ‖CFC.sqrt A x‖ := by + conv_lhs => rw [← CFC.sqrt_mul_sqrt_self A hA] + exact (CFC.sqrt A).le_opNorm _ + have hs : ‖CFC.sqrt A‖ ^ 2 = ‖A‖ := by + rw [← (CFC.sqrt_nonneg A).isSelfAdjoint.norm_mul_self, + CFC.sqrt_mul_sqrt_self A hA] + calc + ‖A x‖ ^ 2 ≤ (‖CFC.sqrt A‖ * ‖CFC.sqrt A x‖) ^ 2 := + (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (norm_nonneg _) (norm_nonneg _))).2 hnorm + _ = _ := by rw [mul_pow, hs, sqrt_norm_sq_eq_diagonal hA] + +omit [CompleteSpace E] in +/-- Loewner order is closed under pointwise norm convergence. -/ +theorem operator_le_of_strong_tendsto {ι : Type*} {l : Filter ι} [l.NeBot] + {A B : ι → E →L[ℂ] E} {C D : E →L[ℂ] E} + (hA : ∀ x, Tendsto (fun i => A i x) l (𝓝 (C x))) + (hB : ∀ x, Tendsto (fun i => B i x) l (𝓝 (D x))) + (hAB : ∀ᶠ i in l, A i ≤ B i) : C ≤ D := by + apply ContinuousLinearMap.le_def.mpr + rw [isPositive_iff_complex] + intro x + have ht : Tendsto (fun i => inner ℂ ((B i - A i) x) x) l + (𝓝 (inner ℂ ((D - C) x) x)) := (hB x |>.sub (hA x)).inner tendsto_const_nhds + have he := hAB.mono fun i hi => + (isPositive_iff_complex (B i - A i)).mp (ContinuousLinearMap.le_def.mp hi) x + have htre : Tendsto (fun i => (inner ℂ ((B i - A i) x) x).re) l + (𝓝 (inner ℂ ((D - C) x) x).re) := Complex.continuous_re.continuousAt.tendsto.comp ht + constructor + · exact tendsto_nhds_unique (Complex.continuous_ofReal.continuousAt.tendsto.comp htre) + (ht.congr' (he.mono fun _ h => h.1.symm)) + · exact ge_of_tendsto htre (he.mono fun _ h => h.2) + +/-- A decreasing sequence of positive operators is Cauchy on each vector. -/ +theorem cauchySeq_apply_of_antitone_nonneg (A : ℕ → E →L[ℂ] E) + (hanti : Antitone A) (hpos : ∀ n, 0 ≤ A n) (x : E) : + CauchySeq (fun n => A n x) := by + let q : ℕ → ℝ := fun n => (inner ℂ x (A n x)).re + have hqanti : Antitone q := by + intro n m hnm + have h := (ContinuousLinearMap.le_def.mp (hanti hnm)).re_inner_nonneg_right x + simpa [q, inner_sub_right, sub_nonneg] using h + have hqpos (n : ℕ) : 0 ≤ q n := + (nonneg_iff_isPositive.mp (hpos n)).re_inner_nonneg_right x + have hqc : CauchySeq q := (tendsto_atTop_ciInf hqanti + ⟨0, by rintro _ ⟨n, rfl⟩; exact hqpos n⟩).cauchySeq + rw [Metric.cauchySeq_iff'] + intro ε hε + let K : ℝ := ‖A 0‖ + 1 + have hK : 0 < K := by dsimp [K]; positivity + obtain ⟨N, hN⟩ := Metric.cauchySeq_iff.mp hqc (ε ^ 2 / K) (by positivity) + refine ⟨N, fun n hn => ?_⟩ + have hD : 0 ≤ A N - A n := sub_nonneg.mpr (hanti hn) + have hDle : A N - A n ≤ A 0 := + (sub_le_self _ (hpos n)).trans (hanti (Nat.zero_le N)) + have hDn : ‖A N - A n‖ ≤ ‖A 0‖ := + CStarAlgebra.norm_le_norm_of_le_of_nonneg hDle hD + have hq : 0 ≤ q N - q n := sub_nonneg.mpr (hqanti hn) + have hsmall : q N - q n < ε ^ 2 / K := by + have hh := hN N le_rfl n hn + simpa [Real.dist_eq, abs_of_nonneg hq] using hh + have hbound := norm_apply_sq_le_norm_mul_inner hD x + have he : (inner ℂ x ((A N - A n) x)).re = q N - q n := by + simp [q] + rw [he] at hbound + have hsq : ‖(A N - A n) x‖ ^ 2 < ε ^ 2 := calc + _ ≤ ‖A 0‖ * (q N - q n) := + hbound.trans (mul_le_mul_of_nonneg_right hDn hq) + _ ≤ K * (q N - q n) := by dsimp [K]; nlinarith + _ < ε ^ 2 := by + have hh := mul_lt_mul_of_pos_left hsmall hK + rwa [mul_div_cancel₀ _ (ne_of_gt hK)] at hh + have hnorm : ‖(A N - A n) x‖ < ε := + (sq_lt_sq₀ (norm_nonneg _) hε.le).mp hsq + simpa only [dist_eq_norm, sub_apply, norm_sub_rev] using hnorm + +/-- Every decreasing positive sequence has a bounded strong limit, which is +its greatest lower bound in the Loewner order. -/ +theorem exists_strongLimit_of_antitone_nonneg (A : ℕ → E →L[ℂ] E) + (hanti : Antitone A) (hpos : ∀ n, 0 ≤ A n) : + ∃ B : E →L[ℂ] E, (∀ x, Tendsto (fun n => A n x) atTop (𝓝 (B x))) ∧ + 0 ≤ B ∧ IsGLB (Set.range A) B := by + classical + have hex (x : E) : ∃ y, Tendsto (fun n => A n x) atTop (𝓝 y) := + cauchySeq_tendsto_of_complete (cauchySeq_apply_of_antitone_nonneg A hanti hpos x) + let f : E → E := fun x => Classical.choose (hex x) + have hf (x : E) : Tendsto (fun n => A n x) atTop (𝓝 (f x)) := + Classical.choose_spec (hex x) + let L : E →ₗ[ℂ] E := + { toFun := f + map_add' := fun x y => tendsto_nhds_unique (hf (x + y)) + (by simpa using (hf x).add (hf y)) + map_smul' := fun c x => tendsto_nhds_unique (hf (c • x)) + (by simpa using (hf x).const_smul c) } + have hb (x : E) : ‖L x‖ ≤ ‖A 0‖ * ‖x‖ := by + apply le_of_tendsto (hf x).norm + exact Filter.Eventually.of_forall fun n => (A n).le_opNorm x |>.trans + (mul_le_mul_of_nonneg_right + (CStarAlgebra.norm_le_norm_of_le_of_nonneg (hanti (Nat.zero_le n)) (hpos n)) + (norm_nonneg x)) + let B : E →L[ℂ] E := L.mkContinuous ‖A 0‖ hb + have hB (x : E) : Tendsto (fun n => A n x) atTop (𝓝 (B x)) := hf x + refine ⟨B, hB, ?_, ?_⟩ + · exact operator_le_of_strong_tendsto (fun _ => tendsto_const_nhds) hB + (Filter.Eventually.of_forall hpos) + · constructor + · rintro _ ⟨n, rfl⟩ + exact operator_le_of_strong_tendsto hB (fun _ => tendsto_const_nhds) + (Filter.eventually_atTop.mpr ⟨n, fun m hm => hanti hm⟩) + · intro C hC + exact operator_le_of_strong_tendsto (fun _ => tendsto_const_nhds) hB + (Filter.Eventually.of_forall fun n => hC ⟨n, rfl⟩) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeBargmannL2.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeBargmannL2.lean new file mode 100644 index 0000000000..81ff127db3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeBargmannL2.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.BargmannPointwise +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentCoordinates +public import Mathlib.MeasureTheory.Integral.Pi + +/-! +# The actual finite-mode Bargmann isometry + +Products of the proved one-mode Gaussian monomials are actual orthonormal +vectors in L² of complex product Lebesgue measure. The Hilbert-sum API +constructs an isometry from the full occupation space. All finite mode +counts are included, including the empty product and its one-dimensional +occupation space. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate + +theorem integrable_bargmannMonomial_norm_sq (n : ℕ) : + Integrable (fun z : ℂ => ‖bargmannMonomial n z‖ ^ 2) := + (memLp_two_iff_integrable_sq_norm (memLp_bargmannMonomial n).aestronglyMeasurable).mp + (memLp_bargmannMonomial n) + +theorem integral_inner_bargmannMonomial (n k : ℕ) : + (∫ z : ℂ, inner ℂ (bargmannMonomial n z) (bargmannMonomial k z)) = + if n = k then 1 else 0 := by + calc + _ = inner ℂ (bargmannBasisVector n) (bargmannBasisVector k) := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [(memLp_bargmannMonomial n).coeFn_toLp, + (memLp_bargmannMonomial k).coeFn_toLp] with z hn hk + simp only [bargmannBasisVector, hn, hk] + _ = _ := inner_bargmannBasisVector n k + +/-- Multi Bargmann monomial given by `∏ j, bargmannMonomial (k j) (z j)`. -/ +def multiBargmannMonomial {m : ℕ} (k : Fin m → ℕ) (z : Fin m → ℂ) : ℂ := + ∏ j, bargmannMonomial (k j) (z j) + +theorem multiBargmannMonomial_norm_sq {m : ℕ} (k : Fin m → ℕ) (z : Fin m → ℂ) : + ‖multiBargmannMonomial k z‖ ^ 2 = ∏ j, ‖bargmannMonomial (k j) (z j)‖ ^ 2 := by + rw [multiBargmannMonomial, norm_prod, ← Finset.prod_pow] + +theorem memLp_multiBargmannMonomial {m : ℕ} (k : Fin m → ℕ) : + MemLp (multiBargmannMonomial k) 2 (volume : Measure (Fin m → ℂ)) := by + have hc : Continuous (multiBargmannMonomial k) := by + unfold multiBargmannMonomial bargmannMonomial + fun_prop + apply (memLp_two_iff_integrable_sq_norm hc.aestronglyMeasurable).mpr + simpa only [multiBargmannMonomial_norm_sq, MeasureTheory.volume_pi] using + (Integrable.fintype_prod (fun j => integrable_bargmannMonomial_norm_sq (k j))) + +theorem inner_multiBargmannMonomial {m : ℕ} (k l : Fin m → ℕ) (z : Fin m → ℂ) : + inner ℂ (multiBargmannMonomial k z) (multiBargmannMonomial l z) = + ∏ j, inner ℂ (bargmannMonomial (k j) (z j)) (bargmannMonomial (l j) (z j)) := by + simp only [multiBargmannMonomial, RCLike.inner_apply', map_prod, Finset.prod_mul_distrib] + +theorem integral_inner_multiBargmannMonomial {m : ℕ} (k l : Fin m → ℕ) : + (∫ z : Fin m → ℂ, inner ℂ (multiBargmannMonomial k z) (multiBargmannMonomial l z)) = + if k = l then 1 else 0 := by + simp_rw [inner_multiBargmannMonomial] + rw [MeasureTheory.volume_pi, integral_fintype_prod_eq_prod + (fun j z => inner ℂ (bargmannMonomial (k j) z) (bargmannMonomial (l j) z))] + simp_rw [integral_inner_bargmannMonomial] + by_cases h : k = l + · subst l + simp + · simp only [h, ite_false] + obtain ⟨j, hj⟩ : ∃ j, k j ≠ l j := by + by_contra hnone + push Not at hnone + exact h (funext hnone) + exact Finset.prod_eq_zero (Finset.mem_univ j) (ite_eq_right hj) + +/-- Multi Bargmann basis vector. -/ +def multiBargmannBasisVector {m : ℕ} (k : Fin m → ℕ) : Lp ℂ 2 (volume : Measure (Fin m → ℂ)) := + (memLp_multiBargmannMonomial k).toLp (multiBargmannMonomial k) + +theorem inner_multiBargmannBasisVector {m : ℕ} (k l : Fin m → ℕ) : + inner ℂ (multiBargmannBasisVector k) (multiBargmannBasisVector l) = + if k = l then 1 else 0 := by + rw [L2.inner_def] + calc + _ = ∫ z : Fin m → ℂ, inner ℂ (multiBargmannMonomial k z) (multiBargmannMonomial l z) := by + apply integral_congr_ae + filter_upwards [(memLp_multiBargmannMonomial k).coeFn_toLp, + (memLp_multiBargmannMonomial l).coeFn_toLp] with z hk hl + simp only [multiBargmannBasisVector, hk, hl] + _ = _ := integral_inner_multiBargmannMonomial k l + +theorem orthonormal_multiBargmannBasisVector (m : ℕ) : + Orthonormal ℂ (@multiBargmannBasisVector m) := + orthonormal_iff_ite.mpr inner_multiBargmannBasisVector + +/-- Multi Bargmann L². -/ +def multiBargmannL2 (m : ℕ) : + MultiModeOscillatorSpace m →ₗᵢ[ℂ] Lp ℂ 2 (volume : Measure (Fin m → ℂ)) := + (orthonormal_multiBargmannBasisVector m).orthogonalFamily.linearIsometry + +theorem multiBargmannL2_apply_single {m : ℕ} (k : Fin m → ℕ) (c : ℂ) : + multiBargmannL2 m (lp.single 2 k c) = c • multiBargmannBasisVector k := by + rw [multiBargmannL2, OrthogonalFamily.linearIsometry_apply_single, + LinearIsometry.toSpanSingleton_apply] + +theorem hasSum_multiBargmannL2 {m : ℕ} (x : MultiModeOscillatorSpace m) : + HasSum (fun k => x k • multiBargmannBasisVector k) (multiBargmannL2 m x) := by + simpa only [multiBargmannL2, LinearIsometry.toSpanSingleton_apply] using + (orthonormal_multiBargmannBasisVector m).orthogonalFamily.hasSum_linearIsometry x + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeBargmannPointwise.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeBargmannPointwise.lean new file mode 100644 index 0000000000..3eb3341415 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeBargmannPointwise.lean @@ -0,0 +1,122 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeBargmannL2 + +/-! +# Pointwise realization of the finite-mode Bargmann isometry + +The genuine ℓ² inner-product series gives the pointwise coherent formula. +L² convergence over all finite occupation-index subsets and a cofinal +almost-everywhere convergent subsequence identify it with the actual +L² isometry. Countability, not a finite-volume assumption, supplies the +subsequence. The zero-mode index set is handled by the same argument. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Filter Topology +open scoped ComplexConjugate + +/-- Multi Bargmann prefactor given by `∏ j, ((Real.exp (-‖z j‖ ^ 2 / 2) / Real.sqrt Real.pi : ℝ) : +ℂ)`. -/ +def multiBargmannPrefactor {m : ℕ} (z : Fin m → ℂ) : ℂ := + ∏ j, ((Real.exp (-‖z j‖ ^ 2 / 2) / Real.sqrt Real.pi : ℝ) : ℂ) + +/-- Multi Bargmann function given by `multiBargmannPrefactor z * inner ℂ (multiExponentialVector +(fun j => conj (z j))) x`. -/ +def multiBargmannFunction {m : ℕ} (x : MultiModeOscillatorSpace m) (z : Fin m → ℂ) : ℂ := + multiBargmannPrefactor z * inner ℂ (multiExponentialVector (fun j => conj (z j))) x + +theorem multiBargmannMonomial_eq_coherentCoefficient {m : ℕ} + (k : Fin m → ℕ) (z : Fin m → ℂ) : + multiBargmannMonomial k z = multiBargmannPrefactor z * multiCoherentCoefficient z k := by + simp only [multiBargmannMonomial, bargmannMonomial_eq_coherentCoefficient, + multiBargmannPrefactor, multiCoherentCoefficient, Finset.prod_mul_distrib] + +theorem conj_multiCoherentCoefficient {m : ℕ} (z : Fin m → ℂ) (k : Fin m → ℕ) : + conj (multiCoherentCoefficient (fun j => conj (z j)) k) = multiCoherentCoefficient z k := by + simp only [multiCoherentCoefficient, map_prod, coherentCoefficient, map_div₀, map_pow, + starRingEnd_self_apply, Complex.conj_ofReal] + +theorem hasSum_multiBargmannFunction {m : ℕ} (x : MultiModeOscillatorSpace m) (z : Fin m → ℂ) : + HasSum (fun k => x k * multiBargmannMonomial k z) (multiBargmannFunction x z) := by + have h := (lp.hasSum_inner (multiExponentialVector (fun j => conj (z j))) x).mul_left + (multiBargmannPrefactor z) + change HasSum _ (multiBargmannPrefactor z * + inner ℂ (multiExponentialVector (fun j => conj (z j))) x) + apply h.congr_fun + intro k + rw [multiBargmannMonomial_eq_coherentCoefficient, multiExponentialVector_apply, + RCLike.inner_apply', conj_multiCoherentCoefficient] + ring + +theorem multiBargmannL2_ae_eq_function {m : ℕ} (x : MultiModeOscillatorSpace m) : + (multiBargmannL2 m x : (Fin m → ℂ) → ℂ) =ᵐ[volume] multiBargmannFunction x := by + classical + let F : (Fin m → ℕ) → Lp ℂ 2 (volume : Measure (Fin m → ℂ)) := + fun k => x k • multiBargmannBasisVector k + have hsum : Tendsto (fun s : Finset (Fin m → ℕ) => ∑ k ∈ s, F k) + atTop (𝓝 (multiBargmannL2 m x)) := hasSum_multiBargmannL2 x + obtain ⟨ns, hns, hlim⟩ := + (tendstoInMeasure_of_tendsto_Lp hsum).exists_seq_tendsto_ae' + have hterms : ∀ᵐ z ∂(volume : Measure (Fin m → ℂ)), ∀ k, + F k z = x k * multiBargmannMonomial k z := by + apply ae_all_iff.mpr + intro k + filter_upwards [Lp.coeFn_smul (x k) (multiBargmannBasisVector k), + (memLp_multiBargmannMonomial k).coeFn_toLp] with z hsmul hmono + change (x k • multiBargmannBasisVector k) z = _ + change multiBargmannBasisVector k z = multiBargmannMonomial k z at hmono + exact hsmul.trans (congrArg (fun a : ℂ => x k * a) hmono) + have hsums : ∀ᵐ z ∂(volume : Measure (Fin m → ℂ)), ∀ s : Finset (Fin m → ℕ), + (∑ k ∈ s, F k) z = ∑ k ∈ s, F k z := + ae_all_iff.mpr fun s => Lp.coeFn_fun_finsetSum s F + filter_upwards [hlim, hterms, hsums] with z hz hterm hpartial + have hscalar := (hasSum_multiBargmannFunction x z).comp hns + have hscalar' : Tendsto (fun N => (∑ k ∈ ns N, F k) z) + atTop (𝓝 (multiBargmannFunction x z)) := by + have heq : (fun N => (∑ k ∈ ns N, F k) z) = + (fun s => ∑ k ∈ s, x k * multiBargmannMonomial k z) ∘ ns := by + funext N + change (∑ k ∈ ns N, F k) z = ∑ k ∈ ns N, x k * multiBargmannMonomial k z + rw [hpartial] + exact Finset.sum_congr rfl fun k _ => hterm k + rw [heq] + exact hscalar + exact tendsto_nhds_unique hz hscalar' + +theorem memLp_multiBargmannFunction {m : ℕ} (x : MultiModeOscillatorSpace m) : + MemLp (multiBargmannFunction x) 2 (volume : Measure (Fin m → ℂ)) := + (Lp.memLp (multiBargmannL2 m x)).ae_eq (multiBargmannL2_ae_eq_function x) + +theorem integral_inner_multiBargmannFunction {m : ℕ} (x y : MultiModeOscillatorSpace m) : + (∫ z : Fin m → ℂ, inner ℂ (multiBargmannFunction x z) (multiBargmannFunction y z)) = + inner ℂ x y := by + calc + _ = inner ℂ (multiBargmannL2 m x) (multiBargmannL2 m y) := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [multiBargmannL2_ae_eq_function x, + multiBargmannL2_ae_eq_function y] with z hx hy + rw [hx, hy] + _ = inner ℂ x y := (multiBargmannL2 m).inner_map_map x y + +theorem integrable_inner_multiBargmannFunction {m : ℕ} (x y : MultiModeOscillatorSpace m) : + Integrable (fun z : Fin m → ℂ => inner ℂ (multiBargmannFunction x z) + (multiBargmannFunction y z)) := by + have h := L2.integrable_inner (𝕜 := ℂ) (multiBargmannL2 m x) (multiBargmannL2 m y) + apply h.congr + filter_upwards [multiBargmannL2_ae_eq_function x, multiBargmannL2_ae_eq_function y] with z hx hy + rw [hx, hy] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCanonicalThermalModel.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCanonicalThermalModel.lean new file mode 100644 index 0000000000..b378dd1442 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCanonicalThermalModel.lean @@ -0,0 +1,99 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeWeylRepresentation +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryTrace + +/-! +# Actual finite-mode Weyl action and transported thermal density + +The constructed unitary realizes the existing Weyl action on the full +occupation Hilbert space. Actual product densities and their CFC powers +transport back to the existing Weyl representation with their trace and +faithfulness properties. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem multi_id_add {m : ℕ} (z w : MultiModePhaseSpace m) : + (id : MultiModePhaseSpace m → MultiModePhaseSpace m) (z + w) = id z + id w := rfl + +/-- Continuous linear map for the multi oscillator Weyl, of type `MultiModeOscillatorSpace m →L[ℂ] +MultiModeOscillatorSpace m`. -/ +noncomputable def multiOscillatorWeyl {m : ℕ} (z : MultiModePhaseSpace m) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + (multiWeylCoherentEquiv m).conjStarAlgEquiv + (weylCLM (id : MultiModePhaseSpace m → MultiModePhaseSpace m) multi_id_add z) + +theorem multiOscillatorWeyl_mem_unitary {m : ℕ} (z : MultiModePhaseSpace m) : + multiOscillatorWeyl z ∈ unitary (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) := + Unitary.map_mem + (R := WeylSpace (id : MultiModePhaseSpace m → MultiModePhaseSpace m) →L[ℂ] + WeylSpace (id : MultiModePhaseSpace m → MultiModePhaseSpace m)) + (S := MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (multiWeylCoherentEquiv m).conjStarAlgEquiv.toStarAlgHom + (weylCLM_mem_unitary (id : MultiModePhaseSpace m → MultiModePhaseSpace m) multi_id_add z) + +theorem multiOscillatorWeyl_mul {m : ℕ} (z w : MultiModePhaseSpace m) : + multiOscillatorWeyl z * multiOscillatorWeyl w = + weylPhase (id : MultiModePhaseSpace m → MultiModePhaseSpace m) z w • + multiOscillatorWeyl (z + w) := by + unfold multiOscillatorWeyl + rw [← map_mul, weylCLM_mul] + exact (multiWeylCoherentEquiv m).conjStarAlgEquiv.toAlgEquiv.toLinearEquiv.map_smul _ _ + +theorem multiOscillatorWeyl_coherentVector {m : ℕ} (z w : MultiModePhaseSpace m) : + multiOscillatorWeyl z (multiCoherentVector w) = + weylPhase (id : MultiModePhaseSpace m → MultiModePhaseSpace m) z w • + multiCoherentVector (z + w) := by + rw [multiOscillatorWeyl, LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, + ← multiWeylCoherentEquiv_weylVec w, (multiWeylCoherentEquiv m).symm_apply_apply, + weylCLM_apply, weylOp_weylVec, map_smul, multiWeylCoherentEquiv_weylVec] + +theorem multiOscillatorWeyl_vacuum {m : ℕ} (z : MultiModePhaseSpace m) : + inner ℂ (multiCoherentVector (0 : MultiModePhaseSpace m)) + (multiOscillatorWeyl z (multiCoherentVector 0)) = + ((Real.exp (-(‖z‖ ^ 2 / 2)) : ℝ) : ℂ) := by + rw [multiOscillatorWeyl_coherentVector, + weylPhase_zero_right (id : MultiModePhaseSpace m → MultiModePhaseSpace m) multi_id_add, + one_smul, add_zero, ← multiWeylCoherentEquiv_weylVec (0 : MultiModePhaseSpace m), + ← multiWeylCoherentEquiv_weylVec z, (multiWeylCoherentEquiv m).inner_map_map] + exact inner_weylVec_zero_left (id : MultiModePhaseSpace m → MultiModePhaseSpace m) multi_id_add z + +/-- Multi Weyl thermal density. -/ +noncomputable def multiWeylThermalDensity {m : ℕ} (q : Fin m → ℝ) : + WeylSpace (id : MultiModePhaseSpace m → MultiModePhaseSpace m) →L[ℂ] + WeylSpace (id : MultiModePhaseSpace m → MultiModePhaseSpace m) := + (multiWeylCoherentEquiv m).symm.conjStarAlgEquiv (multiModeThermalDensity q) + +theorem multiWeylThermalDensity_isFaithfulDensity {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) : + IsFaithfulDensity (multiWeylThermalDensity q) := + IsFaithfulDensity.conjStarAlgEquiv (multiWeylCoherentEquiv m).symm + (multiModeThermalDensity_isFaithfulDensity hq₀ hq₁) + +theorem positiveTrace_multiWeylThermalDensity {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) : + positiveTrace (multiWeylThermalDensity q) = 1 := by + rw [multiWeylThermalDensity, + positiveTrace_conjStarAlgEquiv (multiWeylCoherentEquiv m).symm + (multiModeThermalDensity_nonneg hq₀ hq₁), + positiveTrace_multiModeThermalDensity hq₀ hq₁] + +theorem positiveTrace_multiWeylThermalDensity_rpow {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + positiveTrace (multiWeylThermalDensity q ^ τ) = + ENNReal.ofReal (∏ j, (1 - q j) ^ τ / (1 - q j ^ τ)) := by + rw [multiWeylThermalDensity, + positiveTrace_conjStarAlgEquiv_rpow (multiWeylCoherentEquiv m).symm + (multiModeThermalDensity_nonneg hq₀ hq₁) hτ.le] + exact positiveTrace_multiModeThermalDensity_rpow hq₀ hq₁ hτ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentCoordinates.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentCoordinates.lean new file mode 100644 index 0000000000..4497205d22 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentCoordinates.lean @@ -0,0 +1,138 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeThermalDensity +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentCoordinates +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteComplexProductSeries + +/-! +# Actual coherent coordinates on the full finite-mode oscillator space + +All occupation tuples occur in the coefficient series. Absolute finite +product Fubini proves membership in ℓ² and the exponential inner-product +kernel; the thermal density acts coordinatewise and has its genuine +finite-mode Bargmann kernel. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal + +open scoped ComplexConjugate + +/-- Multi coherent coefficient given by `∏ j, coherentCoefficient (z j) (k j)`. -/ +noncomputable def multiCoherentCoefficient {m : ℕ} (z : Fin m → ℂ) + (k : Fin m → ℕ) : ℂ := ∏ j, coherentCoefficient (z j) (k j) + +theorem hasSum_multiCoherent_norm_sq {m : ℕ} (z : Fin m → ℂ) : + HasSum (fun k => ‖multiCoherentCoefficient z k‖ ^ 2) + (Real.exp (∑ j, ‖z j‖ ^ 2)) := by + have hs (j : Fin m) : HasSum (fun n => ‖coherentCoefficient (z j) n‖ ^ 2) + (Real.exp (‖z j‖ ^ 2)) := by + simpa only [coherentCoefficient_norm_sq, Real.exp_eq_exp_ℝ] using + NormedSpace.expSeries_div_hasSum_exp (‖z j‖ ^ 2) + have hp := hasSum_fin_product_nonneg m (fun j n => ‖coherentCoefficient (z j) n‖ ^ 2) + (fun j => Real.exp (‖z j‖ ^ 2)) (fun j n => sq_nonneg _) hs + convert hp using 1 + · funext k + rw [multiCoherentCoefficient, norm_prod, ← Finset.prod_pow] + · exact Real.exp_sum _ _ + +theorem multiCoherentCoefficient_memℓp {m : ℕ} (z : Fin m → ℂ) : + Memℓp (multiCoherentCoefficient z) 2 := by + apply (memℓp_gen_iff (by norm_num : 0 < (2 : ℝ≥0∞).toReal)).mpr + simpa [Real.rpow_two] using + (hasSum_multiCoherent_norm_sq z).summable + +/-- Multi exponential vector represented by `multiCoherentCoefficient z`. -/ +noncomputable def multiExponentialVector {m : ℕ} (z : Fin m → ℂ) : + MultiModeOscillatorSpace m := + ⟨multiCoherentCoefficient z, multiCoherentCoefficient_memℓp z⟩ + +@[simp] theorem multiExponentialVector_apply {m : ℕ} (z : Fin m → ℂ) (k : Fin m → ℕ) : + multiExponentialVector z k = multiCoherentCoefficient z k := rfl + +theorem multiCoherentCoefficient_inner {m : ℕ} (z w : Fin m → ℂ) (k : Fin m → ℕ) : + inner ℂ (multiCoherentCoefficient z k) (multiCoherentCoefficient w k) = + ∏ j, (conj (z j) * w j) ^ (k j) / ((k j).factorial : ℂ) := by + rw [RCLike.inner_apply', multiCoherentCoefficient, multiCoherentCoefficient, + map_prod, ← Finset.prod_mul_distrib] + apply Finset.prod_congr rfl + intro j _ + simpa only [RCLike.inner_apply'] using coherentCoefficient_inner (z j) (w j) (k j) + +theorem inner_multiExponentialVector {m : ℕ} (z w : Fin m → ℂ) : + inner ℂ (multiExponentialVector z) (multiExponentialVector w) = + Complex.exp (∑ j, conj (z j) * w j) := by + have habs (j : Fin m) : + Summable (fun n : ℕ => ‖(conj (z j) * w j) ^ n / (n.factorial : ℂ)‖) := by + simpa only [norm_div, norm_pow, Complex.norm_natCast] using + Real.summable_pow_div_factorial ‖conj (z j) * w j‖ + have hs (j : Fin m) : HasSum (fun n : ℕ => (conj (z j) * w j) ^ n / (n.factorial : ℂ)) + (Complex.exp (conj (z j) * w j)) := by + rw [Complex.exp_eq_exp_ℂ] + exact NormedSpace.expSeries_div_hasSum_exp _ + rw [lp.inner_eq_tsum] + simp_rw [multiExponentialVector_apply, multiCoherentCoefficient_inner] + rw [(hasSum_fin_complex_product m _ _ habs hs).tsum_eq, ← Complex.exp_sum] + +theorem norm_multiExponentialVector_sq {m : ℕ} (z : Fin m → ℂ) : + ‖multiExponentialVector z‖ ^ 2 = Real.exp (∑ j, ‖z j‖ ^ 2) := by + have h := lp.norm_rpow_eq_tsum (p := 2) (by norm_num) (multiExponentialVector z) + have heq : ‖multiExponentialVector z‖ ^ 2 = + ∑' k, ‖multiCoherentCoefficient z k‖ ^ 2 := by + simpa [Real.rpow_two] using h + exact heq.trans (hasSum_multiCoherent_norm_sq z).tsum_eq + +theorem multiModeNumberBasis_inner {m : ℕ} (x : MultiModeOscillatorSpace m) (k : Fin m → ℕ) : + inner ℂ (multiModeNumberBasis m k) x = x k := by + rw [← (multiModeNumberBasis m).repr_apply_apply] + rfl + +theorem multiModeThermalDensity_apply_coordinate {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) + (x : MultiModeOscillatorSpace m) (k : Fin m → ℕ) : + multiModeThermalDensity q x k = (multiModeThermalWeight q k : ℂ) * x k := by + have h := indexedDiagonalOperator_inner (multiModeNumberBasis m) + (hasSum_multiModeThermalWeight hq₀ hq₁).summable + (multiModeThermalWeight_nonneg hq₀ hq₁) x k + simpa only [multiModeNumberBasis_inner, multiModeThermalDensity] using h + +theorem multiModeThermalDensity_apply_exponentialVector {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (z : Fin m → ℂ) : + multiModeThermalDensity q (multiExponentialVector z) = + (∏ j, (1 - q j)) • multiExponentialVector (fun j => (q j : ℂ) * z j) := by + ext k + rw [multiModeThermalDensity_apply_coordinate hq₀ hq₁] + change (multiModeThermalWeight q k : ℂ) * multiCoherentCoefficient z k = + (∏ j, (1 - q j)) • multiCoherentCoefficient (fun j => (q j : ℂ) * z j) k + simp only [multiModeThermalWeight, multiCoherentCoefficient, + RCLike.real_smul_eq_coe_mul, RCLike.ofReal_eq_complex_ofReal, + Complex.ofReal_prod, ← Finset.prod_mul_distrib] + apply Finset.prod_congr rfl + intro j _ + simp only [thermalWeight, coherentCoefficient, Complex.ofReal_mul, Complex.ofReal_pow, + Complex.ofReal_sub, Complex.ofReal_one, mul_pow] + ring + +/-- The genuine finite-mode thermal Bargmann kernel. -/ +theorem multiModeThermalDensity_coherent_kernel {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (z w : Fin m → ℂ) : + inner ℂ (multiExponentialVector z) (multiModeThermalDensity q (multiExponentialVector w)) = + ((∏ j, (1 - q j) : ℝ) : ℂ) * + Complex.exp (∑ j, (q j : ℂ) * (conj (z j) * w j)) := by + rw [multiModeThermalDensity_apply_exponentialVector hq₀ hq₁, + inner_smul_right_eq_smul, inner_multiExponentialVector, RCLike.real_smul_eq_coe_mul] + congr 2 + apply Finset.sum_congr rfl + intro j _ + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentInverseDomains.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentInverseDomains.lean new file mode 100644 index 0000000000..5f54e64297 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentInverseDomains.lean @@ -0,0 +1,133 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModePowerDomains + +/-! +# Coherent vectors in the genuine inverse thermal-power domain + +All exponential and normalized coherent vectors belong to the range of +every positive power of a faithful thermal density. The inverse on that +actual range scales the labels by `q_j^(-τ)`. This is a domain statement, +not a bounded-inverse assertion, and is valid for every finite number of +modes, including zero. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +/-- The product of the geometric mode prefactors raised to the same thermal power. -/ +def multiModePowerPartition {m : ℕ} (q : Fin m → ℝ) (τ : ℝ) : ℝ := + ∏ j, (1 - q j) ^ τ + +theorem multiModePowerPartition_pos {m : ℕ} {q : Fin m → ℝ} + (hq₁ : ∀ j, q j < 1) (τ : ℝ) : 0 < multiModePowerPartition q τ := + Finset.prod_pos fun j _ => Real.rpow_pos_of_pos (sub_pos.mpr (hq₁ j)) _ + +theorem multiModeThermalDensity_rpow_apply_coordinate {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (x : MultiModeOscillatorSpace m) (k : Fin m → ℕ) : + (multiModeThermalDensity q ^ τ) x k = ((multiModeThermalWeight q k ^ τ : ℝ) : ℂ) * x k := by + let B := multiModeThermalDensity q ^ τ + have hB : IsSelfAdjoint B := CFC.rpow_nonneg.isSelfAdjoint + have h := B.adjoint_inner_left x (multiModeNumberBasis m k) + rw [hB.adjoint_eq, multiModeThermalDensity_rpow_apply_numberBasis hq₀ hq₁ hτ, + inner_smul_left_eq_smul, multiModeNumberBasis_inner, multiModeNumberBasis_inner, + Algebra.smul_def] at h + simpa only [Complex.coe_algebraMap] using h.symm + +theorem multiModeThermalDensity_rpow_apply_exponentialVector {m : ℕ} + {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) (z : Fin m → ℂ) : + (multiModeThermalDensity q ^ τ) (multiExponentialVector z) = + multiModePowerPartition q τ • + multiExponentialVector (fun j => ((q j ^ τ : ℝ) : ℂ) * z j) := by + ext k + rw [multiModeThermalDensity_rpow_apply_coordinate hq₀ hq₁ hτ] + change ((multiModeThermalWeight q k ^ τ : ℝ) : ℂ) * multiCoherentCoefficient z k = + multiModePowerPartition q τ • + multiCoherentCoefficient (fun j => ((q j ^ τ : ℝ) : ℂ) * z j) k + simp only [RCLike.real_smul_eq_coe_mul, RCLike.ofReal_eq_complex_ofReal] + simp only [multiModeThermalWeight_rpow hq₀ hq₁, multiModePowerPartition, + multiCoherentCoefficient, Complex.ofReal_prod, ← Finset.prod_mul_distrib] + apply Finset.prod_congr rfl + intro j _ + rw [thermalWeight_rpow (hq₀ j) (hq₁ j)] + simp only [coherentCoefficient, Complex.ofReal_mul, Complex.ofReal_pow, mul_pow] + ring + +/-- Multi mode inverse power label given by `fun j => ((q j ^ (-τ) : ℝ) : ℂ) * z j`. -/ +def multiModeInversePowerLabel {m : ℕ} (q : Fin m → ℝ) (τ : ℝ) + (z : Fin m → ℂ) : Fin m → ℂ := fun j => ((q j ^ (-τ) : ℝ) : ℂ) * z j + +theorem multiModePower_inverseLabel {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 < q j) (τ : ℝ) (z : Fin m → ℂ) : + (fun j => ((q j ^ τ : ℝ) : ℂ) * multiModeInversePowerLabel q τ z j) = z := by + funext j + simp only [multiModeInversePowerLabel, ← mul_assoc, ← Complex.ofReal_mul] + rw [← Real.rpow_add (hq₀ j), add_neg_cancel, Real.rpow_zero, Complex.ofReal_one, one_mul] + +theorem multiModeThermalPower_inverse_exponentialVector {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) (z : Fin m → ℂ) : + (multiModeThermalDensity q ^ τ) + ((multiModePowerPartition q τ)⁻¹ • + multiExponentialVector (multiModeInversePowerLabel q τ z)) = multiExponentialVector z := by + rw [LinearMapClass.map_smul_of_tower, + multiModeThermalDensity_rpow_apply_exponentialVector (fun j => (hq₀ j).le) hq₁ hτ, + multiModePower_inverseLabel hq₀, + inv_smul_smul₀ (ne_of_gt (multiModePowerPartition_pos hq₁ τ))] + +theorem multiExponentialVector_mem_powerDomain {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) (z : Fin m → ℂ) : + multiExponentialVector z ∈ multiThermalPowerDomain q τ := + ⟨(multiModePowerPartition q τ)⁻¹ • + multiExponentialVector (multiModeInversePowerLabel q τ z), + multiModeThermalPower_inverse_exponentialVector hq₀ hq₁ hτ z⟩ + +/-- Multi domain exponential vector represented by `multiExponentialVector z`. -/ +def multiDomainExponentialVector {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) (z : Fin m → ℂ) : + multiThermalPowerDomain q τ := + ⟨multiExponentialVector z, multiExponentialVector_mem_powerDomain hq₀ hq₁ hτ z⟩ + +theorem multiThermalInversePower_exponentialVector {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) (z : Fin m → ℂ) : + multiThermalInversePower hq₀ hq₁ hτ (multiDomainExponentialVector hq₀ hq₁ hτ z) = + (multiModePowerPartition q τ)⁻¹ • + multiExponentialVector (multiModeInversePowerLabel q τ z) := by + apply multiModeThermalDensity_rpow_injective hq₀ hq₁ hτ + rw [multiThermalPower_apply_inversePower, + multiModeThermalPower_inverse_exponentialVector hq₀ hq₁ hτ] + rfl + +theorem multiCoherentVector_mem_powerDomain {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (z : MultiModePhaseSpace m) : multiCoherentVector z ∈ multiThermalPowerDomain q τ := + Submodule.smul_mem _ _ (multiExponentialVector_mem_powerDomain hq₀ hq₁ hτ (fun j => z j)) + +/-- Multi domain coherent vector represented by `multiCoherentVector z`. -/ +def multiDomainCoherentVector {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) (z : MultiModePhaseSpace m) : + multiThermalPowerDomain q τ := + ⟨multiCoherentVector z, multiCoherentVector_mem_powerDomain hq₀ hq₁ hτ z⟩ + +theorem multiThermalInversePower_coherentVector {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) (z : MultiModePhaseSpace m) : + multiThermalInversePower hq₀ hq₁ hτ (multiDomainCoherentVector hq₀ hq₁ hτ z) = + Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) • + ((multiModePowerPartition q τ)⁻¹ • + multiExponentialVector (multiModeInversePowerLabel q τ (fun j => z j))) := by + have heq : multiDomainCoherentVector hq₀ hq₁ hτ z = + Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) • + multiDomainExponentialVector hq₀ hq₁ hτ (fun j => z j) := rfl + rw [heq, map_smul, multiThermalInversePower_exponentialVector hq₀ hq₁ hτ] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentPositiveTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentPositiveTrace.lean new file mode 100644 index 0000000000..400baeeb1f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentPositiveTrace.lean @@ -0,0 +1,98 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentResolution +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveMatrixExtension + +/-! +# Extended positive trace from the actual finite-mode coherent diagonal + +Parseval and nonnegative Tonelli turn the proved weak coherent resolution +into an extended trace identity. The operator may have infinite trace. +The normalization is π^(-m) against complex product Lebesgue measure; +no Bochner integral of operators or finite-trace assumption is used. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ENNReal + +theorem multiCoherentFrameCoordinate_norm_sq {m : ℕ} + (x : MultiModeOscillatorSpace m) (z : Fin m → ℂ) : + ‖multiCoherentFrameCoordinate x z‖ ^ 2 = (Real.pi ^ m)⁻¹ * + ‖inner ℂ (multiCoherentVector (WithLp.toLp 2 z)) x‖ ^ 2 := by + rw [multiCoherentFrameCoordinate, norm_mul, norm_inv, norm_pow, + Complex.norm_of_nonneg (Real.sqrt_nonneg _), mul_pow, inv_pow, + ← pow_mul, Nat.mul_comm m 2, pow_mul, Real.sq_sqrt Real.pi_pos.le] + +/-- Multi coherent positive diagonal. -/ +def multiCoherentPositiveDiagonal {m : ℕ} + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) (z : Fin m → ℂ) : ℝ := + (Real.pi ^ m)⁻¹ * (inner ℂ (multiCoherentVector (WithLp.toLp 2 z)) + (A (multiCoherentVector (WithLp.toLp 2 z)))).re + +theorem multiCoherentPositiveDiagonal_nonneg {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : 0 ≤ A) (z : Fin m → ℂ) : 0 ≤ multiCoherentPositiveDiagonal A z := + mul_nonneg (inv_nonneg.mpr (pow_nonneg Real.pi_pos.le _)) + ((ContinuousLinearMap.nonneg_iff_isPositive.mp hA).re_inner_nonneg_right _) + +theorem tsum_multiCoherent_sqrt_basis {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : 0 ≤ A) (z : Fin m → ℂ) : + (∑' k, ENNReal.ofReal (‖multiCoherentFrameCoordinate + (CFC.sqrt A (multiModeNumberBasis m k)) z‖ ^ 2)) = + ENNReal.ofReal (multiCoherentPositiveDiagonal A z) := by + let S := CFC.sqrt A + let v := multiCoherentVector (WithLp.toLp 2 z) + have hS : IsSelfAdjoint S := (CFC.sqrt_nonneg A).isSelfAdjoint + have hnorm (k : Fin m → ℕ) : ‖inner ℂ v (S (multiModeNumberBasis m k))‖ = + ‖inner ℂ (multiModeNumberBasis m k) (S v)‖ := by + rw [← S.adjoint_inner_left, hS.adjoint_eq, norm_inner_symm] + simp only [multiCoherentFrameCoordinate_norm_sq, + ENNReal.ofReal_mul (inv_nonneg.mpr (pow_nonneg Real.pi_pos.le m))] + change (∑' k, ENNReal.ofReal ((Real.pi ^ m)⁻¹) * + ENNReal.ofReal (‖inner ℂ v (S (multiModeNumberBasis m k))‖ ^ 2)) = _ + simp_rw [hnorm] + rw [ENNReal.tsum_mul_left, tsum_basis_inner_norm_sq (multiModeNumberBasis m), + ← ENNReal.ofReal_mul (inv_nonneg.mpr (pow_nonneg Real.pi_pos.le m))] + change ENNReal.ofReal ((Real.pi ^ m)⁻¹ * ‖CFC.sqrt A v‖ ^ 2) = _ + exact congrArg (fun t : ℝ => ENNReal.ofReal ((Real.pi ^ m)⁻¹ * t)) + (sqrt_norm_sq_eq_diagonal hA v) + +/-- Coherent resolution evaluates the actual extended positive trace, +including infinity, on the full finite-mode oscillator Hilbert space. -/ +theorem positiveTrace_eq_lintegral_multiCoherentDiagonal {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) : + positiveTrace A = ∫⁻ z : Fin m → ℂ, ENNReal.ofReal (multiCoherentPositiveDiagonal A z) := by + let f : (Fin m → ℕ) → (Fin m → ℂ) → ℝ := fun k z => + ‖multiCoherentFrameCoordinate (CFC.sqrt A (multiModeNumberBasis m k)) z‖ ^ 2 + have hint (k : Fin m → ℕ) : Integrable (f k) := + integrable_multiCoherentFrameCoordinate_norm_sq _ + have heval (k : Fin m → ℕ) : + (∫⁻ z, ENNReal.ofReal (f k z)) = ENNReal.ofReal (‖CFC.sqrt A + (multiModeNumberBasis m k)‖ ^ 2) := by + rw [← ofReal_integral_eq_lintegral_ofReal (hint k) + (Filter.Eventually.of_forall (fun _ => sq_nonneg _))] + exact congrArg ENNReal.ofReal (integral_multiCoherentFrameCoordinate_norm_sq _) + rw [positiveTrace_eq_basisSquareTrace (multiModeNumberBasis m), basisSquareTrace] + calc + _ = ∑' k, ∫⁻ z, ENNReal.ofReal (f k z) := tsum_congr fun k => (heval k).symm + _ = ∫⁻ z, ∑' k, ENNReal.ofReal (f k z) := + (lintegral_tsum (fun k => (hint k).aemeasurable.ennreal_ofReal)).symm + _ = _ := by + apply lintegral_congr + intro z + exact tsum_multiCoherent_sqrt_basis hA z + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentResolution.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentResolution.lean new file mode 100644 index 0000000000..4abb482082 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentResolution.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeBargmannPointwise +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeWeylRepresentation + +/-! +# Actual finite-mode weak coherent resolution + +Complex product Lebesgue measure and the normalization π^(-m/2) turn +coherent coordinates into an actual inner-product-preserving integral. +The theorem is a weak resolution, with explicit scalar integrability. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate + +/-- Multi coherent frame coordinate. -/ +def multiCoherentFrameCoordinate {m : ℕ} (x : MultiModeOscillatorSpace m) (z : Fin m → ℂ) : ℂ := + ((Real.sqrt Real.pi : ℂ) ^ m)⁻¹ * + inner ℂ (multiCoherentVector (WithLp.toLp 2 z)) x + +theorem multiBargmannPrefactor_eq {m : ℕ} (z : Fin m → ℂ) : + multiBargmannPrefactor z = + Complex.exp ((-(∑ j, ‖z j‖ ^ 2) / 2 : ℝ) : ℂ) / (Real.sqrt Real.pi : ℂ) ^ m := by + simp only [multiBargmannPrefactor, Complex.ofReal_div, Complex.ofReal_exp, + Finset.prod_div_distrib, ← Complex.exp_sum, ← Complex.ofReal_sum, + Finset.prod_const, Finset.card_univ, Fintype.card_fin, ← Finset.sum_div, + Finset.sum_neg_distrib] + +theorem multiBargmannFunction_conj {m : ℕ} (x : MultiModeOscillatorSpace m) (z : Fin m → ℂ) : + multiBargmannFunction x (fun j => conj (z j)) = multiCoherentFrameCoordinate x z := by + rw [multiBargmannFunction, multiBargmannPrefactor_eq] + simp only [Complex.norm_conj, starRingEnd_self_apply, multiCoherentFrameCoordinate, + multiCoherentVector, inner_smul_left, ← Complex.exp_conj, Complex.conj_ofReal, + EuclideanSpace.norm_sq_eq] + ring_nf + +/-- Multi conjugation defined as `MeasurableEquiv.piCongrRight fun _ : Fin m => +Complex.conjLIE.toHomeomorph.toMeasurableEquiv`. -/ +def multiConjugation (m : ℕ) : (Fin m → ℂ) ≃ᵐ (Fin m → ℂ) := + MeasurableEquiv.piCongrRight fun _ : Fin m => Complex.conjLIE.toHomeomorph.toMeasurableEquiv + +@[simp] theorem multiConjugation_apply {m : ℕ} (z : Fin m → ℂ) : + multiConjugation m z = fun j => conj (z j) := rfl + +theorem multiConjugation_measurePreserving (m : ℕ) : MeasurePreserving (multiConjugation m) := + volume_preserving_pi (fun _ : Fin m => Complex.conjLIE.measurePreserving) + +theorem integral_inner_multiCoherentFrameCoordinate {m : ℕ} (x y : MultiModeOscillatorSpace m) : + (∫ z : Fin m → ℂ, inner ℂ (multiCoherentFrameCoordinate x z) + (multiCoherentFrameCoordinate y z)) = + inner ℂ x y := by + have h := (multiConjugation_measurePreserving m).integral_comp + (multiConjugation m).measurableEmbedding + (fun z : Fin m → ℂ => inner ℂ (multiBargmannFunction x z) (multiBargmannFunction y z)) + simpa only [multiConjugation_apply, multiBargmannFunction_conj, + integral_inner_multiBargmannFunction] using h + +theorem integrable_inner_multiCoherentFrameCoordinate {m : ℕ} (x y : MultiModeOscillatorSpace m) : + Integrable (fun z : Fin m → ℂ => + inner ℂ (multiCoherentFrameCoordinate x z) (multiCoherentFrameCoordinate y z)) := by + have h := (multiConjugation_measurePreserving m).integrable_comp_of_integrable + (integrable_inner_multiBargmannFunction x y) + simpa only [Function.comp_def, multiConjugation_apply, multiBargmannFunction_conj] using h + +theorem integral_multiCoherentFrameCoordinate_norm_sq {m : ℕ} (x : MultiModeOscillatorSpace m) : + (∫ z : Fin m → ℂ, ‖multiCoherentFrameCoordinate x z‖ ^ 2) = ‖x‖ ^ 2 := by + have h := congrArg (RCLike.re : ℂ → ℝ) (integral_inner_multiCoherentFrameCoordinate x x) + rw [← integral_re (integrable_inner_multiCoherentFrameCoordinate x x)] at h + simpa only [inner_self_eq_norm_sq] using h + +theorem integrable_multiCoherentFrameCoordinate_norm_sq {m : ℕ} (x : MultiModeOscillatorSpace m) : + Integrable (fun z : Fin m → ℂ => ‖multiCoherentFrameCoordinate x z‖ ^ 2) := by + have h := (integrable_inner_multiCoherentFrameCoordinate x x).re + simpa only [inner_self_eq_norm_sq] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentTotality.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentTotality.lean new file mode 100644 index 0000000000..2ccf8fe8b2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeCoherentTotality.lean @@ -0,0 +1,77 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentCoordinates +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentTotality +public import LeanPool.VacuumBellSeparation.Gaussian.L2ProductTotality + +/-! +# Totality of the actual finite-mode coherent family + +The successor coherent vector is the genuine product of a one-mode vector +and its tail. The product totality theorem and mode induction prove density +of the actual coherent span, including the zero-mode Hilbert space. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem multiExponentialVector_cons {m : ℕ} (z : ℂ) (w : Fin m → ℂ) : + l2ProductVector (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).symm + (exponentialVector z) (multiExponentialVector w) = + multiExponentialVector (Fin.cons z w) := by + ext k + change coherentCoefficient z (k 0) * multiCoherentCoefficient w (Fin.tail k) = + multiCoherentCoefficient (Fin.cons z w) k + simp only [multiCoherentCoefficient, Fin.prod_univ_succ, Fin.cons_zero, Fin.cons_succ, Fin.tail] + +/-- The unnormalized coherent vectors span a dense subspace of the true +full multi-mode oscillator Hilbert space. -/ +theorem multiExponentialVector_dense_span (m : ℕ) : + (Submodule.span ℂ (Set.range (multiExponentialVector (m := m)))).topologicalClosure = ⊤ := by + classical + induction m with + | zero => + let z : Fin 0 → ℂ := fun i => Fin.elim0 i + have hsingle (k : Fin 0 → ℕ) : + multiModeNumberBasis 0 k = multiExponentialVector z := by + ext l + have hkl : l = k := Subsingleton.elim _ _ + subst l + rw [← multiModeNumberBasis_inner, multiExponentialVector_apply] + simp [inner_self_eq_norm_sq_to_K, (multiModeNumberBasis 0).orthonormal.norm_eq_one, + multiCoherentCoefficient] + have hspan : Submodule.span ℂ (Set.range (multiModeNumberBasis 0)) ≤ + Submodule.span ℂ (Set.range (multiExponentialVector (m := 0))) := by + apply Submodule.span_le.mpr + rintro _ ⟨k, rfl⟩ + rw [hsingle k] + exact Submodule.subset_span ⟨z, rfl⟩ + have h := Submodule.topologicalClosure_mono hspan + rw [(multiModeNumberBasis 0).dense_span] at h + exact top_unique h + | succ m ih => + let e := (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).symm + have hp := l2Product_dense_span e exponentialVector (multiExponentialVector (m := m)) + exponentialVector_dense_span ih + have hspan : Submodule.span ℂ (Set.range (fun p : ℂ × (Fin m → ℂ) => + l2ProductVector e (exponentialVector p.1) (multiExponentialVector p.2))) ≤ + Submodule.span ℂ (Set.range (multiExponentialVector (m := m + 1))) := by + apply Submodule.span_le.mpr + rintro _ ⟨⟨z, w⟩, rfl⟩ + change l2ProductVector e (exponentialVector z) (multiExponentialVector w) ∈ + Submodule.span ℂ (Set.range (multiExponentialVector (m := m + 1))) + rw [show l2ProductVector e (exponentialVector z) (multiExponentialVector w) = + multiExponentialVector (Fin.cons z w) from multiExponentialVector_cons z w] + exact Submodule.subset_span ⟨Fin.cons z w, rfl⟩ + have h := Submodule.topologicalClosure_mono hspan + rw [hp] at h + exact top_unique h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeFaithfulness.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeFaithfulness.lean new file mode 100644 index 0000000000..61a6cf307d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeFaithfulness.lean @@ -0,0 +1,75 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCovarianceParameters + +/-! +# Exact faithfulness criterion for the actual finite-mode density + +A pure thermal factor has an explicit nonzero occupation vector in the +kernel. Together with positivity of every weight in the strict domain, +this proves the converse as well as sufficiency of the covariance bound. +Faithfulness means injectivity of the actual infinite-dimensional density. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +/-- A pure mode supplies a genuine nonzero vector killed by the density. -/ +theorem multiModeThermalDensity_has_kernel_of_zero_mode {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (j : Fin m) (hj : q j = 0) : + ∃ x : MultiModeOscillatorSpace m, x ≠ 0 ∧ multiModeThermalDensity q x = 0 := by + classical + let k : Fin m → ℕ := Function.update (fun _ => 0) j 1 + have hw : multiModeThermalWeight q k = 0 := by + apply Finset.prod_eq_zero (Finset.mem_univ j) + simp [thermalWeight, k, hj] + refine ⟨multiModeNumberBasis m k, ?_, ?_⟩ + · intro hx + have hn := (multiModeNumberBasis m).orthonormal.norm_eq_one k + rw [hx, norm_zero] at hn + norm_num at hn + · rw [multiModeThermalDensity_apply_numberBasis hq₀ hq₁, hw, zero_smul] + +theorem multiModeThermalDensity_injective_iff {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) : + Function.Injective (multiModeThermalDensity q) ↔ ∀ j, 0 < q j := by + constructor + · intro hinj j + by_contra hj + have hz : q j = 0 := le_antisymm (le_of_not_gt hj) (hq₀ j) + obtain ⟨x, hx, hDx⟩ := multiModeThermalDensity_has_kernel_of_zero_mode hq₀ hq₁ j hz + exact hx (hinj (hDx.trans (map_zero (multiModeThermalDensity q)).symm)) + · intro hq + exact (multiModeThermalDensity_isFaithfulDensity hq hq₁).2.2 + +theorem multiModeThermalDensity_isFaithfulDensity_iff {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) : + IsFaithfulDensity (multiModeThermalDensity q) ↔ ∀ j, 0 < q j := by + constructor + · exact fun h => (multiModeThermalDensity_injective_iff hq₀ hq₁).mp h.2.2 + · exact fun h => multiModeThermalDensity_isFaithfulDensity h hq₁ + +theorem covarianceThermalParameter_pos_iff {v : ℝ} (hv : 1 / 2 ≤ v) : + 0 < covarianceThermalParameter v ↔ 1 / 2 < v := by + unfold covarianceThermalParameter + rw [div_pos_iff_of_pos_right (by linarith : 0 < 2 * v + 1)] + constructor <;> intro h <;> linarith + +/-- The covariance-product density is faithful exactly when every actual +mode variance is strictly larger than the vacuum value. -/ +theorem covarianceProductDensity_isFaithfulDensity_iff {m : ℕ} {ν : Fin m → ℝ} + (hν : ∀ j, 1 / 2 ≤ ν j) : + IsFaithfulDensity (covarianceProductDensity ν) ↔ ∀ j, 1 / 2 < ν j := by + rw [covarianceProductDensity, multiModeThermalDensity_isFaithfulDensity_iff + (fun j => covarianceThermalParameter_nonneg (hν j)) + (fun j => covarianceThermalParameter_lt_one (hν j))] + exact forall_congr' fun j => covarianceThermalParameter_pos_iff (hν j) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeInverseBargmann.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeInverseBargmann.lean new file mode 100644 index 0000000000..a13c30f751 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeInverseBargmann.lean @@ -0,0 +1,121 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentInverseDomains +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeSandwich + +/-! +# The actual inverse-domain sandwich Bargmann kernel + +The kernel is evaluated on vectors in the true range domain before any +bounded extension is constructed. For an arbitrary bounded A it is the +kernel of A at the rescaled labels, with the literal thermal prefactor +`(∏ (1-q_j))^(-τ)`. Positivity needs only A≥0. Summability is required +only for the later identification with the constructed bounded operator. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped ComplexConjugate ComplexOrder + +/-- Multi Bargmann kernel obtained from `inner`. -/ +def multiBargmannKernel {m : ℕ} + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (z w : Fin m → ℂ) : ℂ := + inner ℂ (multiExponentialVector z) (A (multiExponentialVector w)) + +theorem multiModePowerPartition_eq {m : ℕ} {q : Fin m → ℝ} + (hq₁ : ∀ j, q j < 1) (τ : ℝ) : + multiModePowerPartition q τ = (∏ j, (1 - q j)) ^ τ := by + exact (Real.finsetProd_rpow Finset.univ (fun j => 1 - q j) + (fun j _ => sub_nonneg.mpr (hq₁ j).le) τ) + +theorem multiModePowerPartition_half_inverse_sq {m : ℕ} {q : Fin m → ℝ} + (hq₁ : ∀ j, q j < 1) (τ : ℝ) : + ((multiModePowerPartition q (τ / 2))⁻¹) ^ 2 = (∏ j, (1 - q j)) ^ (-τ) := by + have hZ : 0 < ∏ j, (1 - q j) := Finset.prod_pos fun j _ => sub_pos.mpr (hq₁ j) + rw [multiModePowerPartition_eq hq₁, ← Real.rpow_neg hZ.le, + pow_two, ← Real.rpow_add hZ] + congr 1 + ring + +/-- This identity holds on the actual inverse domain even when its +positive form has no bounded extension. -/ +theorem multiThermalSandwichForm_exponential_kernel {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (z w : Fin m → ℂ) : + multiThermalSandwichForm hq₀ hq₁ hτ A + (multiDomainExponentialVector hq₀ hq₁ (half_pos hτ) z) + (multiDomainExponentialVector hq₀ hq₁ (half_pos hτ) w) = + (((∏ j, (1 - q j)) ^ (-τ) : ℝ) : ℂ) * + multiBargmannKernel A (multiModeInversePowerLabel q (τ / 2) z) + (multiModeInversePowerLabel q (τ / 2) w) := by + rw [multiThermalSandwichForm, + multiThermalInversePower_exponentialVector hq₀ hq₁ (half_pos hτ), + multiThermalInversePower_exponentialVector hq₀ hq₁ (half_pos hτ), + LinearMapClass.map_smul_of_tower, inner_smul_left_eq_smul, inner_smul_right_eq_smul] + simp only [Algebra.smul_def, Complex.coe_algebraMap] + rw [← mul_assoc, ← pow_two, ← Complex.ofReal_pow, + multiModePowerPartition_half_inverse_sq hq₁] + rfl + +theorem multiThermalSandwichForm_coherent_diagonal {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (z : MultiModePhaseSpace m) : + multiThermalSandwichForm hq₀ hq₁ hτ A + (multiDomainCoherentVector hq₀ hq₁ (half_pos hτ) z) + (multiDomainCoherentVector hq₀ hq₁ (half_pos hτ) z) = + Complex.exp ((-‖z‖ ^ 2 : ℝ) : ℂ) * (((∏ j, (1 - q j)) ^ (-τ) : ℝ) : ℂ) * + multiBargmannKernel A + (multiModeInversePowerLabel q (τ / 2) (fun j => z j)) + (multiModeInversePowerLabel q (τ / 2) (fun j => z j)) := by + let a := Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) + have hcoh : multiDomainCoherentVector hq₀ hq₁ (half_pos hτ) z = + a • multiDomainExponentialVector hq₀ hq₁ (half_pos hτ) (fun j => z j) := rfl + have haa : conj a * a = Complex.exp ((-‖z‖ ^ 2 : ℝ) : ℂ) := by + rw [show conj a = a by + dsimp only [a] + rw [← Complex.exp_conj, Complex.conj_ofReal], ← Complex.exp_add] + congr 1 + push_cast + ring + rw [hcoh, multiThermalSandwichForm, map_smul, map_smul, + inner_smul_left, inner_smul_right] + change conj a * (a * multiThermalSandwichForm hq₀ hq₁ hτ A + (multiDomainExponentialVector hq₀ hq₁ (half_pos hτ) (fun j => z j)) + (multiDomainExponentialVector hq₀ hq₁ (half_pos hτ) (fun j => z j))) = _ + rw [← mul_assoc, haa, multiThermalSandwichForm_exponential_kernel hq₀ hq₁ hτ] + ring + +theorem multiThermalSandwichForm_nonneg {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (x : multiThermalPowerDomain q (τ / 2)) : + 0 ≤ multiThermalSandwichForm hq₀ hq₁ hτ A x x := + (ContinuousLinearMap.nonneg_iff_isPositive.mp hA).inner_nonneg_right _ + +theorem multiThermalSandwichOperator_bargmannKernel {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (hsum : Summable (multiInverseThermalDiagonal q τ A)) (z w : Fin m → ℂ) : + multiBargmannKernel (multiThermalSandwichOperator hq₀ hq₁ hA hsum) z w = + (((∏ j, (1 - q j)) ^ (-τ) : ℝ) : ℂ) * + multiBargmannKernel A (multiModeInversePowerLabel q (τ / 2) z) + (multiModeInversePowerLabel q (τ / 2) w) := by + exact (multiThermalSandwichForm_eq_inner hq₀ hq₁ hτ hA hsum + (multiDomainExponentialVector hq₀ hq₁ (half_pos hτ) z) + (multiDomainExponentialVector hq₀ hq₁ (half_pos hτ) w)).symm.trans + (multiThermalSandwichForm_exponential_kernel hq₀ hq₁ hτ A z w) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModePowerDomains.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModePowerDomains.lean new file mode 100644 index 0000000000..ddcab28ad6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModePowerDomains.lean @@ -0,0 +1,108 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeThermalPowers + +/-! +# Actual dense inverse-power domains for faithful product densities + +Strict positivity of all occupation weights gives injectivity and dense +range of positive CFC powers on the full multi-index Hilbert space. Their +inverse is a linear map on that actual range, with no boundedness claim. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem injective_of_positive_indexed_basis_eigenvalues (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) {w : ι → ℝ} + (hw : ∀ k, 0 < w k) (heig : ∀ k, A (b k) = w k • b k) : Function.Injective A := by + have hcoord (x : E) (k : ι) : inner ℂ (b k) (A x) = (w k : ℂ) * inner ℂ (b k) x := by + simpa only [hA.adjoint_eq, heig, inner_smul_left_eq_smul, Algebra.smul_def, + RCLike.algebraMap_eq_ofReal, RCLike.ofReal_eq_complex_ofReal] using + (A.adjoint_inner_left x (b k)).symm + intro x y hxy + apply b.repr.injective + ext k + rw [b.repr_apply_apply, b.repr_apply_apply] + have h := congrArg (fun z => inner ℂ (b k) z) hxy + rw [hcoord, hcoord] at h + exact mul_left_cancel₀ (Complex.ofReal_ne_zero.mpr (ne_of_gt (hw k))) h + +omit [CompleteSpace E] in +theorem denseRange_of_nonzero_indexed_basis_eigenvalues (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} {w : ι → ℝ} (hw : ∀ k, w k ≠ 0) + (heig : ∀ k, A (b k) = w k • b k) : DenseRange A := by + have hb : Submodule.span ℂ (Set.range b) ≤ A.range := by + apply Submodule.span_le.mpr + rintro _ ⟨k, rfl⟩ + refine ⟨(w k)⁻¹ • b k, ?_⟩ + change A ((w k)⁻¹ • b k) = b k + calc + A ((w k)⁻¹ • b k) = (w k)⁻¹ • A (b k) := + LinearMapClass.map_smul_of_tower A (w k)⁻¹ (b k) + _ = (w k)⁻¹ • (w k • b k) := + congrArg (fun y : E => (w k)⁻¹ • y) (heig k) + _ = b k := inv_smul_smul₀ (hw k) (b k) + have hd : A.range.topologicalClosure = ⊤ := by + apply top_unique + rw [← b.dense_span] + exact Submodule.topologicalClosure_mono hb + exact Submodule.dense_iff_topologicalClosure_eq_top.mpr hd + +theorem multiModeThermalDensity_rpow_injective {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + Function.Injective (multiModeThermalDensity q ^ τ) := + injective_of_positive_indexed_basis_eigenvalues (multiModeNumberBasis m) + (CFC.rpow_nonneg (a := multiModeThermalDensity q) (y := τ)).isSelfAdjoint + (fun k => Real.rpow_pos_of_pos (multiModeThermalWeight_pos hq₀ hq₁ k) τ) + (multiModeThermalDensity_rpow_apply_numberBasis (fun j => (hq₀ j).le) hq₁ hτ) + +theorem multiModeThermalDensity_rpow_denseRange {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + DenseRange (multiModeThermalDensity q ^ τ) := + denseRange_of_nonzero_indexed_basis_eigenvalues (multiModeNumberBasis m) + (fun k => ne_of_gt (Real.rpow_pos_of_pos (multiModeThermalWeight_pos hq₀ hq₁ k) τ)) + (multiModeThermalDensity_rpow_apply_numberBasis (fun j => (hq₀ j).le) hq₁ hτ) + +/-- Multi thermal power domain. -/ +def multiThermalPowerDomain {m : ℕ} (q : Fin m → ℝ) (τ : ℝ) : + Submodule ℂ (MultiModeOscillatorSpace m) := (multiModeThermalDensity q ^ τ).range + +/-- Linear map for the multi thermal inverse power, of type `multiThermalPowerDomain q τ →ₗ[ℂ] +MultiModeOscillatorSpace m`. -/ +def multiThermalInversePower {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + multiThermalPowerDomain q τ →ₗ[ℂ] MultiModeOscillatorSpace m := + (LinearEquiv.ofInjective (multiModeThermalDensity q ^ τ).toLinearMap + (multiModeThermalDensity_rpow_injective hq₀ hq₁ hτ)).symm.toLinearMap + +theorem multiThermalInversePower_apply_power {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) (x : MultiModeOscillatorSpace m) : + multiThermalInversePower hq₀ hq₁ hτ ⟨(multiModeThermalDensity q ^ τ) x, ⟨x, rfl⟩⟩ = x := + (LinearEquiv.ofInjective (multiModeThermalDensity q ^ τ).toLinearMap + (multiModeThermalDensity_rpow_injective hq₀ hq₁ hτ)).symm_apply_apply x + +theorem multiThermalPower_apply_inversePower {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (x : multiThermalPowerDomain q τ) : + (multiModeThermalDensity q ^ τ) (multiThermalInversePower hq₀ hq₁ hτ x) = x := + congrArg Subtype.val ((LinearEquiv.ofInjective (multiModeThermalDensity q ^ τ).toLinearMap + (multiModeThermalDensity_rpow_injective hq₀ hq₁ hτ)).apply_symm_apply x) + +theorem multiThermalPowerDomain_dense {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + Dense (multiThermalPowerDomain q τ : Set (MultiModeOscillatorSpace m)) := + multiModeThermalDensity_rpow_denseRange hq₀ hq₁ hτ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSandwich.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSandwich.lean new file mode 100644 index 0000000000..26e04b18c8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSandwich.lean @@ -0,0 +1,153 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WeightedSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModePowerDomains + +/-! +# Actual noncommuting sandwiches with a faithful thermal reference + +An arbitrary positive bounded operator A is sandwiched by inverse powers +of the actual faithful product thermal density. Summability of its exact +weighted diagonal constructs the positive trace-class extension, proves +the actual density factorization, and identifies it with the inverse-power +quadratic form on the actual dense range domain. Uniqueness follows from +injectivity and dense range. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + +/-- Multi inverse thermal scale defined as `multiModeThermalWeight q k ^ (-(τ / 2))`. -/ +def multiInverseThermalScale (q : Fin m → ℝ) (τ : ℝ) (k : Fin m → ℕ) : ℝ := + multiModeThermalWeight q k ^ (-(τ / 2)) + +/-- Multi inverse thermal diagonal. -/ +def multiInverseThermalDiagonal (q : Fin m → ℝ) (τ : ℝ) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) (k : Fin m → ℕ) : ℝ := + multiModeThermalWeight q k ^ (-τ) * + (inner ℂ (multiModeNumberBasis m k) (A (multiModeNumberBasis m k))).re + +theorem multiInverseThermalScale_sq (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) + (τ : ℝ) (k : Fin m → ℕ) : + multiInverseThermalScale q τ k ^ 2 = multiModeThermalWeight q k ^ (-τ) := by + rw [multiInverseThermalScale, pow_two, ← Real.rpow_add (multiModeThermalWeight_pos hq₀ hq₁ k)] + congr 1 + ring + +theorem weightedSandwichDiagonal_multiInverseThermalScale + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (τ : ℝ) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) : + weightedSandwichDiagonal A (multiInverseThermalScale q τ) = multiInverseThermalDiagonal q τ + A := by + funext k + rw [weightedSandwichDiagonal, multiInverseThermalScale_sq hq₀ hq₁] + rfl + +/-- Continuous linear map for the multi thermal sandwich operator, of type +`MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m`. -/ +def multiThermalSandwichOperator (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (hsum : Summable (multiInverseThermalDiagonal q τ A)) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + weightedSandwichOperator hA (multiInverseThermalScale q τ) + (by rwa [weightedSandwichDiagonal_multiInverseThermalScale hq₀ hq₁]) + +theorem multiThermalSandwichOperator_isPositiveTraceClass + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (hsum : Summable (multiInverseThermalDiagonal q τ A)) : + IsPositiveTraceClass (multiThermalSandwichOperator hq₀ hq₁ hA hsum) := + weightedSandwichOperator_isPositiveTraceClass _ _ _ + +theorem positiveTrace_multiThermalSandwichOperator + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (hsum : Summable (multiInverseThermalDiagonal q τ A)) : + positiveTrace (multiThermalSandwichOperator hq₀ hq₁ hA hsum) = + ENNReal.ofReal (∑' k, multiInverseThermalDiagonal q τ A k) := by + rw [multiThermalSandwichOperator, positiveTrace_weightedSandwichOperator, + weightedSandwichDiagonal_multiInverseThermalScale hq₀ hq₁] + +theorem multiThermalSandwichOperator_factorization + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (hsum : Summable (multiInverseThermalDiagonal q τ A)) : + (multiModeThermalDensity q ^ (τ / 2)) * multiThermalSandwichOperator hq₀ hq₁ hA hsum * + (multiModeThermalDensity q ^ (τ / 2)) = A := by + apply weightedSandwichOperator_factorization hA (multiInverseThermalScale q τ) _ + (multiModeThermalDensity q ^ (τ / 2)) CFC.rpow_nonneg.isSelfAdjoint + (fun k => multiModeThermalWeight q k ^ (τ / 2)) + · intro k + exact multiModeThermalDensity_rpow_apply_numberBasis (fun j => (hq₀ j).le) hq₁ (half_pos hτ) k + · intro k + rw [multiInverseThermalScale, ← Real.rpow_add (multiModeThermalWeight_pos hq₀ hq₁ k), + add_neg_cancel, Real.rpow_zero] + +/-- Multi thermal sandwich form. -/ +def multiThermalSandwichForm (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (x y : multiThermalPowerDomain q (τ / 2)) : ℂ := + inner ℂ (multiThermalInversePower hq₀ hq₁ (half_pos hτ) x) + (A (multiThermalInversePower hq₀ hq₁ (half_pos hτ) y)) + +/-- Equality on the entire actual inverse-power domain, not only on +finitely supported vectors. -/ +theorem multiThermalSandwichForm_eq_inner + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (hsum : Summable (multiInverseThermalDiagonal q τ A)) + (x y : multiThermalPowerDomain q (τ / 2)) : + multiThermalSandwichForm hq₀ hq₁ hτ A x y = + inner ℂ (x : MultiModeOscillatorSpace m) + (multiThermalSandwichOperator hq₀ hq₁ hA hsum (y : MultiModeOscillatorSpace m)) := by + let S := multiModeThermalDensity q ^ (τ / 2) + let Θ := multiThermalSandwichOperator hq₀ hq₁ hA hsum + let u := multiThermalInversePower hq₀ hq₁ (half_pos hτ) x + let v := multiThermalInversePower hq₀ hq₁ (half_pos hτ) y + have hS : IsSelfAdjoint S := CFC.rpow_nonneg.isSelfAdjoint + have hx : S u = (x : MultiModeOscillatorSpace m) := + multiThermalPower_apply_inversePower hq₀ hq₁ (half_pos hτ) x + have hy : S v = (y : MultiModeOscillatorSpace m) := + multiThermalPower_apply_inversePower hq₀ hq₁ (half_pos hτ) y + change inner ℂ u (A v) = _ + calc + _ = inner ℂ u (S (Θ (S v))) := by + rw [← multiThermalSandwichOperator_factorization hq₀ hq₁ hτ hA hsum] + rfl + _ = inner ℂ (S u) (Θ (S v)) := by + simpa only [hS.adjoint_eq] using S.adjoint_inner_right u (Θ (S v)) + _ = _ := by rw [hx, hy] + +theorem multiThermalSandwichOperator_unique + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (hsum : Summable (multiInverseThermalDiagonal q τ A)) + {Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hΘ : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) : + Θ = multiThermalSandwichOperator hq₀ hq₁ hA hsum := by + let S := multiModeThermalDensity q ^ (τ / 2) + have hS : Function.Injective S := multiModeThermalDensity_rpow_injective hq₀ hq₁ (half_pos hτ) + have heq : S * Θ * S = S * multiThermalSandwichOperator hq₀ hq₁ hA hsum * S := + hΘ.trans (multiThermalSandwichOperator_factorization hq₀ hq₁ hτ hA hsum).symm + have hcomp : (fun z => Θ (S z)) = fun z => multiThermalSandwichOperator hq₀ hq₁ hA hsum + (S z) := by + funext z + apply hS + simpa only [mul_apply_eq_comp] using DFunLike.congr_fun heq z + have hfun := (multiModeThermalDensity_rpow_denseRange hq₀ hq₁ (half_pos hτ)).equalizer + Θ.continuous (multiThermalSandwichOperator hq₀ hq₁ hA hsum).continuous hcomp + exact DFunLike.coe_injective hfun + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSandwichCoherentTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSandwichCoherentTrace.lean new file mode 100644 index 0000000000..f19f888435 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSandwichCoherentTrace.lean @@ -0,0 +1,167 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ScaledCoherentIntegral +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeInverseBargmann +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeSandwichCriterion +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentResolution + +/-! +# Actual inverse thermal form: coherent integral and extension criterion + +The form is evaluated on normalized coherent vectors in the actual range +domain of the thermal half power. Rotation averaging identifies its +extended integral with the weighted diagonal before any bounded extension +is assumed. Finiteness is exactly the existence criterion for a positive +trace-class extension, including noncommuting positive inputs. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate ENNReal + +theorem multiBargmannPrefactor_norm_sq {m : ℕ} (z : Fin m → ℂ) : + ‖multiBargmannPrefactor z‖ ^ 2 = + (Real.pi ^ m)⁻¹ * Real.exp (-(∑ j, ‖z j‖ ^ 2)) := by + rw [multiBargmannPrefactor_eq, norm_div, Complex.norm_exp_ofReal, norm_pow, + Complex.norm_of_nonneg (Real.sqrt_nonneg _), div_pow, + ← pow_mul, Nat.mul_comm m 2, pow_mul, Real.sq_sqrt Real.pi_pos.le, + pow_two, ← Real.exp_add] + have he : -(∑ j, ‖z j‖ ^ 2) / 2 + -(∑ j, ‖z j‖ ^ 2) / 2 = + -(∑ j, ‖z j‖ ^ 2) := by ring + rw [he] + ring + +theorem thermal_occupationScale {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (τ : ℝ) (k : Fin m → ℕ) : + (∏ j, (1 - q j)) ^ (-τ) * + occupationScale (fun j => ((q j ^ (-(τ / 2)) : ℝ) : ℂ)) k = + multiModeThermalWeight q k ^ (-τ) := by + rw [← Real.finsetProd_rpow Finset.univ (fun j => 1 - q j) + (fun j _ => sub_nonneg.mpr (hq₁ j).le), occupationScale, + multiModeThermalWeight_rpow (fun j => (hq₀ j).le) hq₁, + ← Finset.prod_mul_distrib] + apply Finset.prod_congr rfl + intro j _ + rw [Complex.norm_of_nonneg (Real.rpow_nonneg (hq₀ j).le _), + thermalWeight_rpow (hq₀ j).le (hq₁ j)] + congr 1 + rw [pow_mul, pow_two, ← Real.rpow_add (hq₀ j)] + congr 2 + ring + +/-- Multi thermal sandwich coherent diagonal. -/ +def multiThermalSandwichCoherentDiagonal {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (z : Fin m → ℂ) : ℝ := + (Real.pi ^ m)⁻¹ * + (multiThermalSandwichForm hq₀ hq₁ hτ A + (multiDomainCoherentVector hq₀ hq₁ (half_pos hτ) (WithLp.toLp 2 z)) + (multiDomainCoherentVector hq₀ hq₁ (half_pos hτ) (WithLp.toLp 2 z))).re + +theorem multiThermalSandwichCoherentDiagonal_conj {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (z : Fin m → ℂ) : + multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A (multiConjugation m z) = + (∏ j, (1 - q j)) ^ (-τ) * scaledCoherentGaussianDiagonal A + (fun j => ((q j ^ (-(τ / 2)) : ℝ) : ℂ)) z := by + have hl : multiModeInversePowerLabel q (τ / 2) + (fun j => (WithLp.toLp 2 (multiConjugation m z) : MultiModePhaseSpace m) j) = + fun j => conj (((q j ^ (-(τ / 2)) : ℝ) : ℂ) * z j) := by + funext j + simp only [multiModeInversePowerLabel, multiConjugation_apply, + map_mul, Complex.conj_ofReal] + have hn : ‖(WithLp.toLp 2 (multiConjugation m z) : MultiModePhaseSpace m)‖ ^ 2 = + ∑ j, ‖z j‖ ^ 2 := by + simp only [EuclideanSpace.norm_sq_eq, multiConjugation_apply, + Complex.norm_conj] + rw [multiThermalSandwichCoherentDiagonal, + multiThermalSandwichForm_coherent_diagonal hq₀ hq₁ hτ, hn, hl, + ← Complex.ofReal_exp, scaledCoherentGaussianDiagonal, multiBargmannPrefactor_norm_sq] + simp only [multiBargmannKernel, Complex.mul_re, Complex.mul_im, Complex.ofReal_re, + Complex.ofReal_im, mul_zero, zero_mul, sub_zero] + ring + +theorem multiThermalSandwichCoherentDiagonal_nonneg {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (z : Fin m → ℂ) : 0 ≤ multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A z := by + unfold multiThermalSandwichCoherentDiagonal multiThermalSandwichForm + exact mul_nonneg (inv_nonneg.mpr (pow_nonneg Real.pi_pos.le _)) + ((ContinuousLinearMap.nonneg_iff_isPositive.mp hA).re_inner_nonneg_right _) + +theorem multiInverseThermalDiagonal_nonneg {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (τ : ℝ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (k : Fin m → ℕ) : 0 ≤ multiInverseThermalDiagonal q τ A k := + mul_nonneg (Real.rpow_nonneg (multiModeThermalWeight_pos hq₀ hq₁ k).le _) + ((ContinuousLinearMap.nonneg_iff_isPositive.mp hA).re_inner_nonneg_right _) + +/-- A pre-extension identity on the actual inverse domain; either side +may be infinite. In particular, finiteness is not a premise. -/ +theorem lintegral_multiThermalSandwichCoherentDiagonal {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) : + (∫⁻ z : Fin m → ℂ, + ENNReal.ofReal (multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A z)) = + ∑' k, ENNReal.ofReal (multiInverseThermalDiagonal q τ A k) := by + have hZ : 0 ≤ (∏ j, (1 - q j)) ^ (-τ) := + Real.rpow_nonneg (Finset.prod_nonneg fun j _ => sub_nonneg.mpr (hq₁ j).le) _ + rw [← (multiConjugation_measurePreserving m).lintegral_comp_emb + (multiConjugation m).measurableEmbedding + (fun z => ENNReal.ofReal (multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A z))] + simp_rw [multiThermalSandwichCoherentDiagonal_conj hq₀ hq₁ hτ, + ENNReal.ofReal_mul hZ] + rw [lintegral_const_mul' _ _ ENNReal.ofReal_ne_top, + lintegral_scaledCoherentGaussianDiagonal hA, ← ENNReal.tsum_mul_left] + apply tsum_congr + intro k + rw [← ENNReal.ofReal_mul hZ, ← mul_assoc, thermal_occupationScale hq₀ hq₁] + rfl + +/-- The literal inverse-coherent integral is finite exactly when the +weighted number-state diagonal is summable. -/ +theorem lintegral_multiThermalSandwichCoherentDiagonal_lt_top_iff {m : ℕ} + {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) : + (∫⁻ z : Fin m → ℂ, + ENNReal.ofReal (multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A z)) < ⊤ ↔ + Summable (multiInverseThermalDiagonal q τ A) := by + rw [lintegral_multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ hA] + have hn := multiInverseThermalDiagonal_nonneg hq₀ hq₁ τ hA + constructor + · intro h + simpa only [ENNReal.toReal_ofReal (hn _)] using ENNReal.summable_toReal h.ne + · intro hs + rw [← ENNReal.ofReal_tsum_of_nonneg hn hs] + exact ENNReal.ofReal_lt_top + +/-- Noncommuting positive trace-class sandwich existence, decided by the +actual inverse-domain coherent integral with its full π normalization. -/ +theorem exists_positiveTraceClass_multiThermal_factorization_iff_coherentIntegral + {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) : + (∃ Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass Θ ∧ + (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) ↔ + (∫⁻ z : Fin m → ℂ, + ENNReal.ofReal (multiThermalSandwichCoherentDiagonal hq₀ hq₁ hτ A z)) < ⊤ := by + rw [exists_positiveTraceClass_multiThermal_factorization_iff hq₀ hq₁ hτ hA, + lintegral_multiThermalSandwichCoherentDiagonal_lt_top_iff hq₀ hq₁ hτ hA] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSandwichCriterion.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSandwichCriterion.lean new file mode 100644 index 0000000000..35fa8559a3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSandwichCriterion.lean @@ -0,0 +1,90 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalSandwichCriterion + +/-! +# Exact weighted-diagonal criterion for a noncommuting inverse sandwich + +Every bounded factorization has the forced weighted diagonal. Therefore +the existence of a positive trace-class factorization is equivalent to +summability of that diagonal. The arbitrary positive input A need not +commute with the faithful product thermal reference. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + +theorem multiThermal_factorization_diagonal + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hfactor : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) (k : Fin m → ℕ) : + (inner ℂ (multiModeNumberBasis m k) (Θ (multiModeNumberBasis m k))).re = + multiInverseThermalDiagonal q τ A k := by + let b : (Fin m → ℕ) → ℝ := fun k => multiModeThermalWeight q k ^ (τ / 2) + let B := multiModeThermalDensity q ^ (τ / 2) + have hB : IsSelfAdjoint B := CFC.rpow_nonneg.isSelfAdjoint + have heig : B (multiModeNumberBasis m k) = b k • multiModeNumberBasis m k := + multiModeThermalDensity_rpow_apply_numberBasis (fun j => (hq₀ j).le) hq₁ (half_pos hτ) k + have hentry : inner ℂ (multiModeNumberBasis m k) (A (multiModeNumberBasis m k)) = + (b k : ℂ) * (b k : ℂ) * + inner ℂ (multiModeNumberBasis m k) (Θ (multiModeNumberBasis m k)) := by + rw [← hfactor] + change inner ℂ (multiModeNumberBasis m k) (B (Θ (B (multiModeNumberBasis m k)))) = _ + have hmove : inner ℂ (multiModeNumberBasis m k) (B (Θ (B (multiModeNumberBasis m k)))) = + inner ℂ (B (multiModeNumberBasis m k)) (Θ (B (multiModeNumberBasis m k))) := by + simpa only [hB.adjoint_eq] using + B.adjoint_inner_right (multiModeNumberBasis m k) (Θ (B (multiModeNumberBasis m k))) + rw [hmove, heig, LinearMapClass.map_smul_of_tower, + inner_smul_left_eq_smul, inner_smul_right_eq_smul] + simp only [Algebra.smul_def, Complex.coe_algebraMap] + ring + have hreal : (inner ℂ (multiModeNumberBasis m k) (A (multiModeNumberBasis m k))).re = + b k * b k * (inner ℂ (multiModeNumberBasis m k) (Θ (multiModeNumberBasis m k))).re := by + simpa only [Complex.mul_re, Complex.mul_im, Complex.ofReal_re, + Complex.ofReal_im, mul_zero, zero_mul, zero_add, sub_zero] using congrArg Complex.re hentry + have hpow : b k * b k = multiModeThermalWeight q k ^ τ := by + dsimp [b] + rw [← Real.rpow_add (multiModeThermalWeight_pos hq₀ hq₁ k), add_halves] + have hcancel : multiModeThermalWeight q k ^ (-τ) * multiModeThermalWeight q k ^ τ = 1 := by + rw [← Real.rpow_add (multiModeThermalWeight_pos hq₀ hq₁ k), neg_add_cancel, Real.rpow_zero] + rw [multiInverseThermalDiagonal, hreal, hpow, ← mul_assoc, hcancel, one_mul] + +theorem multiThermal_factorization_traceClass_implies_summable + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hfactor : (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) (htrace : IsPositiveTraceClass Θ) : + Summable (multiInverseThermalDiagonal q τ A) := by + simpa only [multiThermal_factorization_diagonal hq₀ hq₁ hτ hfactor] using + htrace.summable_diagonal (multiModeNumberBasis m) + +/-- Exact criterion for an actual positive trace-class inverse sandwich, +prior to any Gaussian evaluation of its diagonal sum. -/ +theorem exists_positiveTraceClass_multiThermal_factorization_iff + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) : + (∃ Θ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m, + IsPositiveTraceClass Θ ∧ + (multiModeThermalDensity q ^ (τ / 2)) * Θ * + (multiModeThermalDensity q ^ (τ / 2)) = A) ↔ + Summable (multiInverseThermalDiagonal q τ A) := by + constructor + · rintro ⟨Θ, htrace, hfactor⟩ + exact multiThermal_factorization_traceClass_implies_summable hq₀ hq₁ hτ hfactor htrace + · intro hsum + exact ⟨multiThermalSandwichOperator hq₀ hq₁ hA hsum, + multiThermalSandwichOperator_isPositiveTraceClass hq₀ hq₁ hA hsum, + multiThermalSandwichOperator_factorization hq₀ hq₁ hτ hA hsum⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSplit.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSplit.lean new file mode 100644 index 0000000000..fde5ee6f35 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeSplit.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCanonicalThermalModel +public import LeanPool.VacuumBellSeparation.Gaussian.CanonicalThermalModel +public import LeanPool.VacuumBellSeparation.Gaussian.L2ProductInner + +/-! +# Splitting one actual mode from the finite-mode representation + +The phase-space norm, Weyl phase and normalized coherent vector all +factor through the literal first coordinate and tail. These identities +prepare operator factorization on the full occupation Hilbert space. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped lp + +/-- Prepend the first complex coordinate to the phase-space coordinates of the remaining modes. -/ +noncomputable def multiPhaseCons {m : ℕ} (z : ℂ) (w : MultiModePhaseSpace m) : + MultiModePhaseSpace (m + 1) := WithLp.toLp 2 (Fin.cons z (fun j => w j)) + +theorem multiPhaseCons_add {m : ℕ} (z a : ℂ) (w b : MultiModePhaseSpace m) : + multiPhaseCons z w + multiPhaseCons a b = multiPhaseCons (z + a) (w + b) := by + ext i + induction i using Fin.cases <;> rfl + +theorem multiPhaseCons_norm_sq {m : ℕ} (z : ℂ) (w : MultiModePhaseSpace m) : + ‖multiPhaseCons z w‖ ^ 2 = ‖z‖ ^ 2 + ‖w‖ ^ 2 := by + simp only [EuclideanSpace.norm_sq_eq, multiPhaseCons, Fin.sum_univ_succ, + Fin.cons_zero, Fin.cons_succ] + +theorem inner_multiPhaseCons {m : ℕ} (z a : ℂ) (w b : MultiModePhaseSpace m) : + inner ℂ (multiPhaseCons z w) (multiPhaseCons a b) = inner ℂ z a + inner ℂ w b := by + simp only [PiLp.inner_apply, multiPhaseCons, Fin.sum_univ_succ, + Fin.cons_zero, Fin.cons_succ] + +theorem weylPhase_multiPhaseCons {m : ℕ} (z a : ℂ) (w b : MultiModePhaseSpace m) : + weylPhase (id : MultiModePhaseSpace (m + 1) → MultiModePhaseSpace (m + 1)) + (multiPhaseCons z w) (multiPhaseCons a b) = + weylPhase (id : ℂ → ℂ) z a * + weylPhase (id : MultiModePhaseSpace m → MultiModePhaseSpace m) w b := by + simp only [weylPhase, id_eq, inner_multiPhaseCons, Complex.add_im, + Complex.ofReal_add, mul_add, neg_add, Complex.exp_add] + +theorem l2ProductVector_smul_smul {ι κ η : Type*} (e : κ ≃ ι × η) + (a b : ℂ) (x : ℓ²(ι, ℂ)) (y : ℓ²(η, ℂ)) : + l2ProductVector e (a • x) (b • y) = (a * b) • l2ProductVector e x y := by + change l2ProductContinuous e (a • x) (b • y) = (a * b) • l2ProductContinuous e x y + rw [(l2ProductContinuous e).map_smul a x, smul_apply, + ((l2ProductContinuous e) x).map_smul b y, smul_smul] + +theorem multiCoherentVector_cons {m : ℕ} (z : ℂ) (w : MultiModePhaseSpace m) : + multiCoherentVector (multiPhaseCons z w) = + l2ProductVector (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).symm + (coherentVector z) (multiCoherentVector w) := by + rw [multiCoherentVector, multiPhaseCons_norm_sq] + have hsplit : -((‖z‖ ^ 2 + ‖w‖ ^ 2) / 2) = -(‖z‖ ^ 2 / 2) + -(‖w‖ ^ 2 / 2) := by ring + rw [hsplit, Complex.ofReal_add, Complex.exp_add] + rw [coherentVector, multiCoherentVector, l2ProductVector_smul_smul] + congr 1 + exact (multiExponentialVector_cons z (fun j => w j)).symm + +/-- Splitting the occupation number is compatible with the actual number +basis, not just with the coherent family. -/ +theorem multiModeNumberBasis_cons {m : ℕ} (n : ℕ) (k : Fin m → ℕ) : + multiModeNumberBasis (m + 1) (Fin.cons n k) = + l2ProductVector (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).symm + (numberBasis n) (multiModeNumberBasis m k) := by + classical + rw [← (multiModeNumberBasis (m + 1)).repr_symm_single (Fin.cons n k), + ← numberBasis.repr_symm_single n, ← (multiModeNumberBasis m).repr_symm_single k] + change lp.single 2 (Fin.cons n k) (1 : ℂ) = + l2ProductVector (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).symm + (lp.single 2 n 1) (lp.single 2 k 1) + rw [l2ProductVector_single] + rfl + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalCharacteristic.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalCharacteristic.lean new file mode 100644 index 0000000000..20926d74a3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalCharacteristic.lean @@ -0,0 +1,80 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeThermalState +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeWeylProduct +public import LeanPool.VacuumBellSeparation.Gaussian.QuadratureNormalization + +/-! +# The actual finite-mode thermal characteristic function + +The genuine Weyl operator's number-basis diagonal factors over all modes. +Absolute finite-tuple Fubini therefore evaluates the actual complex thermal +state as a product of the already proved one-mode expectations. This is a +statement about the constructed infinite-dimensional operators and states, +including pure factors and the zero-mode case. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem multiThermalState_oscillatorWeyl_product {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (z : MultiModePhaseSpace m) : + multiThermalState hq₀ hq₁ (multiOscillatorWeyl z) = + ∏ j, thermalState (hq₀ j) (hq₁ j) (oscillatorWeyl (z j)) := by + let f : Fin m → ℕ → ℂ := fun j n => + (thermalWeight (q j) n : ℂ) * inner ℂ (numberBasis n) (oscillatorWeyl (z j) (numberBasis n)) + have hs (j : Fin m) : HasSum (f j) (thermalState (hq₀ j) (hq₁ j) (oscillatorWeyl (z j))) := + (summable_diagonalExpectation_terms numberBasis + (hasSum_thermalWeight (hq₀ j) (hq₁ j)).summable (oscillatorWeyl (z j))).hasSum + have hp := hasSum_fin_complex_product m f _ (fun j => (hs j).summable.norm) hs + apply (hasSum_multiThermalState hq₀ hq₁ (multiOscillatorWeyl z)).unique + convert hp using 1 + funext k + rw [multiOscillatorWeyl_number_diagonal, multiModeThermalWeight, + Complex.ofReal_prod, ← Finset.prod_mul_distrib] + +/-- The characteristic of the actual product thermal density in canonical +complex phase coordinates. The physical quadrature variance is `v(q)`. -/ +theorem multiThermalState_oscillatorWeyl {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (z : MultiModePhaseSpace m) : + multiThermalState hq₀ hq₁ (multiOscillatorWeyl z) = + Complex.exp ((-∑ j, thermalQuadratureVariance (q j) * ‖z j‖ ^ 2 : ℝ) : ℂ) := by + rw [multiThermalState_oscillatorWeyl_product hq₀ hq₁] + simp_rw [thermalState_oscillatorWeyl] + rw [← Complex.exp_sum, ← Complex.ofReal_sum] + congr 2 + simp only [thermalQuadratureVariance, neg_mul, Finset.sum_neg_distrib] + +/-- Multi quadrature label defined as `WithLp.toLp 2 (fun j => quadratureLabel (v j))`. -/ +noncomputable def multiQuadratureLabel {m : ℕ} (v : Fin m → ℝ × ℝ) : MultiModePhaseSpace m := + WithLp.toLp 2 (fun j => quadratureLabel (v j)) + +/-- Multi quadrature Weyl obtained from `multiOscillatorWeyl`. -/ +noncomputable def multiQuadratureWeyl {m : ℕ} (v : Fin m → ℝ × ℝ) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + multiOscillatorWeyl (multiQuadratureLabel v) + +/-- Literal real-quadrature normalization of the actual finite-mode +characteristic, with vacuum variance `1/2` in every pure mode. -/ +theorem multiThermalState_quadratureWeyl {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (v : Fin m → ℝ × ℝ) : + multiThermalState hq₀ hq₁ (multiQuadratureWeyl v) = + Complex.exp ((-(1 / 2) * ∑ j, thermalQuadratureVariance (q j) * + ((v j).1 ^ 2 + (v j).2 ^ 2) : ℝ) : ℂ) := by + rw [multiQuadratureWeyl, multiThermalState_oscillatorWeyl hq₀ hq₁] + apply congrArg (fun r : ℝ => Complex.exp (r : ℂ)) + simp only [multiQuadratureLabel, PiLp.toLp_apply, quadratureLabel_norm_sq] + rw [Finset.mul_sum] + rw [← Finset.sum_neg_distrib] + apply Finset.sum_congr rfl + intro j _ + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalDensity.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalDensity.lean new file mode 100644 index 0000000000..4902ba647b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalDensity.lean @@ -0,0 +1,191 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.IndexedDiagonalDensity +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteProductSeries + +/-! +# The actual finite-mode thermal product density + +The Hilbert space is the full `ℓ²(Fin m → ℕ, ℂ)`, with no occupation-number +cutoff. The density is its convergent rank-one expansion with product +geometric weights. Trace one, faithfulness, and the genuine CFC power +trace are proved by multi-index Fubini. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped lp + +open ContinuousLinearMap +open scoped ENNReal + +/-- Multi mode oscillator space with underlying type `ℓ²(Fin m → ℕ, ℂ)`. -/ +noncomputable abbrev MultiModeOscillatorSpace (m : ℕ) := ℓ²(Fin m → ℕ, ℂ) + +/-- Resolve the existing Hilbert-operator calculus before specializing the lp alias. -/ +theorem multiHilbert_realCFC {E : Type*} [NormedAddCommGroup E] + [InnerProductSpace ℂ E] [CompleteSpace E] : + IsometricContinuousFunctionalCalculus ℝ (E →L[ℂ] E) IsSelfAdjoint := inferInstance + +theorem multiHilbert_starOrder {E : Type*} [NormedAddCommGroup E] + [InnerProductSpace ℂ E] [CompleteSpace E] : StarOrderedRing (E →L[ℂ] E) := inferInstance + +theorem multiHilbert_nonnegSpectrum {E : Type*} [NormedAddCommGroup E] + [InnerProductSpace ℂ E] [CompleteSpace E] : + NonnegSpectrumClass ℝ (E →L[ℂ] E) := inferInstance + +noncomputable instance multiModeOscillatorNormedAddCommGroup (m : ℕ) : + NormedAddCommGroup (MultiModeOscillatorSpace m) := + inferInstanceAs (NormedAddCommGroup (lp (fun _ : Fin m → ℕ => ℂ) 2)) + +noncomputable instance multiModeOscillatorInnerProductSpace (m : ℕ) : + InnerProductSpace ℂ (MultiModeOscillatorSpace m) := + inferInstanceAs (InnerProductSpace ℂ (lp (fun _ : Fin m → ℕ => ℂ) 2)) + +noncomputable instance multiModeOscillator_completeSpace (m : ℕ) : + CompleteSpace (MultiModeOscillatorSpace m) := + inferInstanceAs (CompleteSpace (lp (fun _ : Fin m → ℕ => ℂ) 2)) + +noncomputable instance multiModeOscillatorOperatorCStarAlgebra (m : ℕ) : + CStarAlgebra (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) := + inferInstanceAs (CStarAlgebra + ((lp (fun _ : Fin m → ℕ => ℂ) 2) →L[ℂ] (lp (fun _ : Fin m → ℕ => ℂ) 2))) + +instance multiModeOscillator_realCFC (m : ℕ) : + IsometricContinuousFunctionalCalculus ℝ + (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) IsSelfAdjoint := + multiHilbert_realCFC (E := MultiModeOscillatorSpace m) + +instance multiModeOscillator_starOrder (m : ℕ) : + StarOrderedRing (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) := + multiHilbert_starOrder (E := MultiModeOscillatorSpace m) + +instance multiModeOscillator_nonnegSpectrum (m : ℕ) : + NonnegSpectrumClass ℝ (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) := + multiHilbert_nonnegSpectrum (E := MultiModeOscillatorSpace m) + +/-- Multi mode number basis obtained from `HilbertBasis.ofRepr`. -/ +noncomputable def multiModeNumberBasis (m : ℕ) : + HilbertBasis (Fin m → ℕ) ℂ (MultiModeOscillatorSpace m) := + HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _) + +/-- Multi mode thermal weight given by `∏ j, thermalWeight (q j) (k j)`. -/ +def multiModeThermalWeight {m : ℕ} (q : Fin m → ℝ) (k : Fin m → ℕ) : ℝ := + ∏ j, thermalWeight (q j) (k j) + +theorem multiModeThermalWeight_nonneg {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (k : Fin m → ℕ) : + 0 ≤ multiModeThermalWeight q k := + Finset.prod_nonneg fun j _ => + mul_nonneg (sub_nonneg.mpr (hq₁ j).le) (pow_nonneg (hq₀ j) (k j)) + +theorem multiModeThermalWeight_pos {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (k : Fin m → ℕ) : + 0 < multiModeThermalWeight q k := + Finset.prod_pos fun j _ => thermalWeight_pos (hq₀ j) (hq₁ j) (k j) + +theorem hasSum_multiModeThermalWeight {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) : + HasSum (multiModeThermalWeight q) 1 := by + change HasSum (fun k : Fin m → ℕ => ∏ j, thermalWeight (q j) (k j)) 1 + simpa only [Finset.prod_const_one] using + hasSum_fin_product_nonneg m (fun j => thermalWeight (q j)) (fun _ => 1) + (fun j n => mul_nonneg (sub_nonneg.mpr (hq₁ j).le) (pow_nonneg (hq₀ j) n)) + (fun j => hasSum_thermalWeight (hq₀ j) (hq₁ j)) + +/-- Continuous linear map for the multi mode thermal density, of type `MultiModeOscillatorSpace m +→L[ℂ] MultiModeOscillatorSpace m`. -/ +noncomputable def multiModeThermalDensity {m : ℕ} (q : Fin m → ℝ) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + indexedDiagonalOperator (multiModeNumberBasis m) (multiModeThermalWeight q) + +theorem multiModeThermalDensity_nonneg {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) : + 0 ≤ multiModeThermalDensity q := + indexedDiagonalOperator_nonneg (multiModeNumberBasis m) + (multiModeThermalWeight_nonneg hq₀ hq₁) + +theorem multiModeThermalDensity_apply_numberBasis {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (k : Fin m → ℕ) : + multiModeThermalDensity q (multiModeNumberBasis m k) = + multiModeThermalWeight q k • multiModeNumberBasis m k := + indexedDiagonalOperator_apply_basis (multiModeNumberBasis m) + (hasSum_multiModeThermalWeight hq₀ hq₁).summable k + +theorem positiveTrace_multiModeThermalDensity {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) : + positiveTrace (multiModeThermalDensity q) = 1 := by + rw [multiModeThermalDensity, positiveTrace_indexedDiagonalOperator (multiModeNumberBasis m) + (hasSum_multiModeThermalWeight hq₀ hq₁).summable + (multiModeThermalWeight_nonneg hq₀ hq₁), + (hasSum_multiModeThermalWeight hq₀ hq₁).tsum_eq, ENNReal.ofReal_one] + +theorem multiModeThermalDensity_isFaithfulDensity {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) : + IsFaithfulDensity (multiModeThermalDensity q) := by + refine ⟨multiModeThermalDensity_nonneg (fun j => (hq₀ j).le) hq₁, + positiveTrace_multiModeThermalDensity (fun j => (hq₀ j).le) hq₁, ?_⟩ + exact indexedDiagonalOperator_injective (multiModeNumberBasis m) + (hasSum_multiModeThermalWeight (fun j => (hq₀ j).le) hq₁).summable + (multiModeThermalWeight_pos hq₀ hq₁) + +theorem multiModeThermalWeight_rpow {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (τ : ℝ) (k : Fin m → ℕ) : + multiModeThermalWeight q k ^ τ = ∏ j, thermalWeight (q j) (k j) ^ τ := by + exact (Real.finsetProd_rpow Finset.univ (fun j => thermalWeight (q j) (k j)) + (fun j _ => mul_nonneg (sub_nonneg.mpr (hq₁ j).le) (pow_nonneg (hq₀ j) (k j))) τ).symm + +theorem hasSum_multiModeThermalWeight_rpow {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + HasSum (fun k => multiModeThermalWeight q k ^ τ) + (∏ j, (1 - q j) ^ τ / (1 - q j ^ τ)) := by + simpa only [multiModeThermalWeight_rpow hq₀ hq₁] using + hasSum_fin_product_nonneg m (fun j n => thermalWeight (q j) n ^ τ) + (fun j => (1 - q j) ^ τ / (1 - q j ^ τ)) + (fun j n => Real.rpow_nonneg + (mul_nonneg (sub_nonneg.mpr (hq₁ j).le) (pow_nonneg (hq₀ j) n)) τ) + (fun j => hasSum_thermalWeight_rpow (hq₀ j) (hq₁ j) hτ) + +theorem multiModeThermalDensity_rpow_apply_numberBasis {m : ℕ} {q : Fin m → ℝ} + {τ : ℝ} (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (k : Fin m → ℕ) : + (multiModeThermalDensity q ^ τ) (multiModeNumberBasis m k) = + multiModeThermalWeight q k ^ τ • multiModeNumberBasis m k := + indexedDiagonalOperator_rpow_apply_basis (multiModeNumberBasis m) + (hasSum_multiModeThermalWeight hq₀ hq₁).summable + (multiModeThermalWeight_nonneg hq₀ hq₁) hτ k + +theorem positiveTrace_multiModeThermalDensity_rpow {m : ℕ} {q : Fin m → ℝ} + {τ : ℝ} (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + positiveTrace (multiModeThermalDensity q ^ τ) = + ENNReal.ofReal (∏ j, (1 - q j) ^ τ / (1 - q j ^ τ)) := by + calc + _ = ENNReal.ofReal (∑' k, multiModeThermalWeight q k ^ τ) := by + rw [positiveTrace_eq_tsum_diagonal (multiModeNumberBasis m) CFC.rpow_nonneg, + ENNReal.ofReal_tsum_of_nonneg + (fun k => Real.rpow_nonneg (multiModeThermalWeight_nonneg hq₀ hq₁ k) τ) + (hasSum_multiModeThermalWeight_rpow hq₀ hq₁ hτ).summable] + apply tsum_congr + intro k + rw [multiModeThermalDensity_rpow_apply_numberBasis hq₀ hq₁ hτ, + inner_smul_right_eq_smul, inner_self_eq_norm_sq_to_K, + (multiModeNumberBasis m).orthonormal.norm_eq_one] + simp [Algebra.smul_def] + _ = _ := congrArg ENNReal.ofReal (hasSum_multiModeThermalWeight_rpow hq₀ hq₁ hτ).tsum_eq + +theorem multiModeThermalDensity_rpow_isPositiveTraceClass {m : ℕ} {q : Fin m → ℝ} + {τ : ℝ} (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + IsPositiveTraceClass (multiModeThermalDensity q ^ τ) := by + refine ⟨CFC.rpow_nonneg, ?_⟩ + rw [positiveTrace_multiModeThermalDensity_rpow hq₀ hq₁ hτ] + exact ENNReal.ofReal_lt_top + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalPowers.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalPowers.lean new file mode 100644 index 0000000000..b80726bb43 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalPowers.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteGaussianRealization +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowerNormalization + +/-! +# Normalized genuine powers of the finite-mode thermal density + +The positive trace is finite and strictly positive before its real inverse +is used. Normalizing the actual CFC power gives the actual product density +with parameters `q_j^τ`, including pure factors and the empty product. +The associated state is tied to this density by its positive sandwich +trace and has the explicitly transformed covariance in fixed labels. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +/-- Multi thermal power trace given by `∏ j, (1 - q j) ^ τ / (1 - q j ^ τ)`. -/ +def multiThermalPowerTrace {m : ℕ} (q : Fin m → ℝ) (τ : ℝ) : ℝ := + ∏ j, (1 - q j) ^ τ / (1 - q j ^ τ) + +theorem multiThermalPowerTrace_pos {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + 0 < multiThermalPowerTrace q τ := + Finset.prod_pos fun j _ => thermalPowerTrace_pos (hq₀ j) (hq₁ j) hτ + +/-- Continuous linear map for the normalized multi thermal power, of type `MultiModeOscillatorSpace +m →L[ℂ] MultiModeOscillatorSpace m`. -/ +def normalizedMultiThermalPower {m : ℕ} (q : Fin m → ℝ) (τ : ℝ) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + (positiveTrace (multiModeThermalDensity q ^ τ)).toReal⁻¹ • (multiModeThermalDensity q ^ τ) + +theorem thermalWeight_power_normalization {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) (n : ℕ) : + ((1 - q) ^ τ / (1 - q ^ τ))⁻¹ * thermalWeight q n ^ τ = + thermalWeight (q ^ τ) n := by + have hc : (1 - q) ^ τ ≠ 0 := ne_of_gt (Real.rpow_pos_of_pos (sub_pos.mpr hq₁) _) + have hd : 1 - q ^ τ ≠ 0 := ne_of_gt (sub_pos.mpr (Real.rpow_lt_one hq₀ hq₁ hτ)) + rw [thermalWeight_rpow hq₀ hq₁, thermalWeight] + field_simp [hc, hd] + +theorem multiModeThermalWeight_power_normalization {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) (k : Fin m → ℕ) : + (multiThermalPowerTrace q τ)⁻¹ * multiModeThermalWeight q k ^ τ = + multiModeThermalWeight (fun j => q j ^ τ) k := by + rw [multiThermalPowerTrace, multiModeThermalWeight_rpow hq₀ hq₁, + ← Finset.prod_inv_distrib, ← Finset.prod_mul_distrib, multiModeThermalWeight] + exact Finset.prod_congr rfl fun j _ => thermalWeight_power_normalization (hq₀ j) (hq₁ j) hτ _ + +/-- Equality of actual bounded operators on the entire occupation space. -/ +theorem normalizedMultiThermalPower_eq_density {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + normalizedMultiThermalPower q τ = multiModeThermalDensity (fun j => q j ^ τ) := by + unfold normalizedMultiThermalPower + rw [positiveTrace_multiModeThermalDensity_rpow hq₀ hq₁ hτ] + change (ENNReal.ofReal (multiThermalPowerTrace q τ)).toReal⁻¹ • + multiModeThermalDensity q ^ τ = _ + rw [ENNReal.toReal_ofReal (multiThermalPowerTrace_pos hq₀ hq₁ hτ).le] + apply continuousLinearMap_eq_of_dense_span (multiModeNumberBasis _) + (multiModeNumberBasis _).dense_span + intro k + rw [smul_apply, multiModeThermalDensity_rpow_apply_numberBasis hq₀ hq₁ hτ, + multiModeThermalDensity_apply_numberBasis (fun j => Real.rpow_nonneg (hq₀ j) _) + (fun j => Real.rpow_lt_one (hq₀ j) (hq₁ j) hτ), smul_smul] + exact congrArg (fun r : ℝ => r • multiModeNumberBasis _ k) + (multiModeThermalWeight_power_normalization hq₀ hq₁ hτ k) + +theorem positiveTrace_normalizedMultiThermalPower {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + positiveTrace (normalizedMultiThermalPower q τ) = 1 := by + rw [normalizedMultiThermalPower_eq_density hq₀ hq₁ hτ] + exact positiveTrace_multiModeThermalDensity (fun j => Real.rpow_nonneg (hq₀ j) _) + (fun j => Real.rpow_lt_one (hq₀ j) (hq₁ j) hτ) + +/-- Normalized multi thermal state defined as `multiThermalState (fun j => Real.rpow_nonneg (hq₀ j) +_) (fun j => Real.rpow_lt_one (hq₀ j) (hq₁ j) hτ)`. -/ +def normalizedMultiThermalState {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + State (MultiModeOscillatorSpace m) := + multiThermalState (fun j => Real.rpow_nonneg (hq₀ j) _) + (fun j => Real.rpow_lt_one (hq₀ j) (hq₁ j) hτ) + +theorem positiveTrace_normalizedMultiThermal_sandwich {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) : + positiveTrace (CFC.sqrt (normalizedMultiThermalPower q τ) * A * + CFC.sqrt (normalizedMultiThermalPower q τ)) = + ENNReal.ofReal (normalizedMultiThermalState hq₀ hq₁ hτ A).re := by + rw [normalizedMultiThermalPower_eq_density hq₀ hq₁ hτ] + exact positiveTrace_multiThermal_sandwich (fun j => Real.rpow_nonneg (hq₀ j) _) + (fun j => Real.rpow_lt_one (hq₀ j) (hq₁ j) hτ) hA + +/-- Normalized positive powers keep the actual Weyl labels fixed, while +the variances change by `q_j ↦ q_j^τ`. -/ +theorem normalizedMultiThermalState_finiteGaussianWeyl + {ι : Type*} [Fintype ι] {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (S : Matrix ι (Fin m × Fin 2) ℝ) (x : ι → ℝ) : + normalizedMultiThermalState hq₀ hq₁ hτ (finiteGaussianWeyl S x) = + Complex.exp ((-(1 / 2) * (x ⬝ᵥ ((S * + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) * Sᵀ) *ᵥ x)) : ℝ) : ℂ) := by + classical + rw [normalizedMultiThermalState, finiteGaussianWeyl, multiThermalState_quadratureWeyl] + simp only [modeQuadratureTuple] + rw [← dotProduct_modeDiagonal, dotProduct_congruence] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalState.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalState.lean new file mode 100644 index 0000000000..3a32764fb1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeThermalState.lean @@ -0,0 +1,65 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.IndexedDiagonalState +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCanonicalThermalModel + +/-! +# The actual finite-mode thermal state + +The state is the absolutely convergent full occupation-basis series of the +actual product density. Positive inputs agree with the extended positive +trace of the square-root sandwich. This gives a genuine complex functional +for Weyl expectations; the positive trace is not applied to `ρ W`. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +/-- Multi thermal state. -/ +noncomputable def multiThermalState {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) : State (MultiModeOscillatorSpace m) := + indexedDiagonalState (multiModeNumberBasis m) (hasSum_multiModeThermalWeight hq₀ hq₁).summable + (multiModeThermalWeight_nonneg hq₀ hq₁) (hasSum_multiModeThermalWeight hq₀ hq₁).tsum_eq + +theorem multiThermalState_apply {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) : + multiThermalState hq₀ hq₁ A = ∑' k, (multiModeThermalWeight q k : ℂ) * + inner ℂ (multiModeNumberBasis m k) (A (multiModeNumberBasis m k)) := rfl + +theorem hasSum_multiThermalState {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) : + HasSum (fun k => (multiModeThermalWeight q k : ℂ) * + inner ℂ (multiModeNumberBasis m k) (A (multiModeNumberBasis m k))) + (multiThermalState hq₀ hq₁ A) := + (summable_indexedDiagonalExpectation_terms (multiModeNumberBasis m) + (hasSum_multiModeThermalWeight hq₀ hq₁).summable A).hasSum + +theorem norm_multiThermalState_le {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) : + ‖multiThermalState hq₀ hq₁ A‖ ≤ ‖A‖ := by + change ‖indexedDiagonalExpectation (multiModeNumberBasis m) (multiModeThermalWeight q) A‖ ≤ ‖A‖ + have h := norm_indexedDiagonalExpectation_le (multiModeNumberBasis m) + (hasSum_multiModeThermalWeight hq₀ hq₁).summable A + simpa only [abs_of_nonneg (multiModeThermalWeight_nonneg hq₀ hq₁ _), + (hasSum_multiModeThermalWeight hq₀ hq₁).tsum_eq, one_mul] using h + +theorem positiveTrace_multiThermal_sandwich {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) : + positiveTrace (CFC.sqrt (multiModeThermalDensity q) * A * CFC.sqrt + (multiModeThermalDensity q)) = + ENNReal.ofReal (multiThermalState hq₀ hq₁ A).re := + positiveTrace_indexedDiagonal_sandwich (multiModeNumberBasis m) + (hasSum_multiModeThermalWeight hq₀ hq₁).summable (multiModeThermalWeight_nonneg hq₀ hq₁) hA + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeWeylProduct.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeWeylProduct.lean new file mode 100644 index 0000000000..3eac270485 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeWeylProduct.lean @@ -0,0 +1,103 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeSplit + +/-! +# Actual mode factorization of the oscillator Weyl operator + +The bounded bilinear maps agree on two total coherent families. Their +extension proves the operator product action on all square-summable vectors, +then the number-basis diagonal factors exactly. No tensor implementation +is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +/-- The actual multi-mode Weyl operator acts as the product of the actual +one-mode and tail Weyl operators on every genuine product vector. -/ +theorem multiOscillatorWeyl_product {m : ℕ} (z : ℂ) (w : MultiModePhaseSpace m) + (x : OscillatorSpace) (y : MultiModeOscillatorSpace m) : + multiOscillatorWeyl (multiPhaseCons z w) + (l2ProductVector (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).symm x y) = + l2ProductVector (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).symm + (oscillatorWeyl z x) (multiOscillatorWeyl w y) := by + let P := l2ProductContinuous (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).symm + let A := multiOscillatorWeyl (multiPhaseCons z w) + let L : OscillatorSpace →L[ℂ] MultiModeOscillatorSpace m →L[ℂ] + MultiModeOscillatorSpace (m + 1) := + (ContinuousLinearMap.compL ℂ (MultiModeOscillatorSpace m) + (MultiModeOscillatorSpace (m + 1)) (MultiModeOscillatorSpace (m + 1)) A).comp P + let M : OscillatorSpace →L[ℂ] MultiModeOscillatorSpace m →L[ℂ] + MultiModeOscillatorSpace (m + 1) := + ((P.comp (oscillatorWeyl z)).flip.comp (multiOscillatorWeyl w)).flip + have hLM : L = M := by + apply continuousBilinear_eq_of_dense_spans coherentVector (multiCoherentVector (m := m)) + coherentVector_dense_span (multiCoherentVector_dense_span m) + intro a b + change multiOscillatorWeyl (multiPhaseCons z w) + (l2ProductVector (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).symm + (coherentVector a) (multiCoherentVector b)) = + l2ProductVector (Fin.consEquiv (fun _ : Fin (m + 1) => ℕ)).symm + (oscillatorWeyl z (coherentVector a)) (multiOscillatorWeyl w (multiCoherentVector b)) + rw [← multiCoherentVector_cons, multiOscillatorWeyl_coherentVector, multiPhaseCons_add, + weylPhase_multiPhaseCons, multiCoherentVector_cons, oscillatorWeyl_coherentVector, + multiOscillatorWeyl_coherentVector, l2ProductVector_smul_smul] + exact congrArg (fun f : OscillatorSpace →L[ℂ] MultiModeOscillatorSpace m →L[ℂ] + MultiModeOscillatorSpace (m + 1) => f x y) hLM + +/-- The number-basis diagonal factors through the actual product Weyl action. -/ +theorem multiOscillatorWeyl_number_diagonal_cons {m : ℕ} (z : ℂ) (w : MultiModePhaseSpace m) + (n : ℕ) (k : Fin m → ℕ) : + inner ℂ (multiModeNumberBasis (m + 1) (Fin.cons n k)) + (multiOscillatorWeyl (multiPhaseCons z w) (multiModeNumberBasis (m + 1) (Fin.cons n k))) = + inner ℂ (numberBasis n) (oscillatorWeyl z (numberBasis n)) * + inner ℂ (multiModeNumberBasis m k) (multiOscillatorWeyl w (multiModeNumberBasis m k)) := by + rw [multiModeNumberBasis_cons, multiOscillatorWeyl_product, inner_l2ProductVector] + +theorem multiOscillatorWeyl_zero (m : ℕ) : + multiOscillatorWeyl (0 : MultiModePhaseSpace m) = 1 := by + apply continuousLinearMap_eq_of_dense_span (multiCoherentVector (m := m)) + (multiCoherentVector_dense_span m) + intro z + rw [multiOscillatorWeyl_coherentVector, + weylPhase_zero_left (id : MultiModePhaseSpace m → MultiModePhaseSpace m) (fun _ _ => rfl), + one_smul, zero_add, one_apply_eq_self] + +/-- Full factorization of the actual Weyl number-basis diagonal over all modes. -/ +theorem multiOscillatorWeyl_number_diagonal {m : ℕ} (z : MultiModePhaseSpace m) + (k : Fin m → ℕ) : + inner ℂ (multiModeNumberBasis m k) (multiOscillatorWeyl z (multiModeNumberBasis m k)) = + ∏ j, inner ℂ (numberBasis (k j)) (oscillatorWeyl (z j) (numberBasis (k j))) := by + induction m with + | zero => + have hz : z = 0 := Subsingleton.elim _ _ + rw [hz, multiOscillatorWeyl_zero] + simp only [one_apply_eq_self, inner_self_eq_norm_sq_to_K, + (multiModeNumberBasis 0).orthonormal.norm_eq_one, RCLike.ofReal_one, one_pow, + Fin.prod_univ_zero] + | succ m ih => + let w : MultiModePhaseSpace m := WithLp.toLp 2 (Fin.tail (fun j => z j)) + have hz : multiPhaseCons (z 0) w = z := by + ext i + induction i using Fin.cases <;> rfl + calc + inner ℂ (multiModeNumberBasis (m + 1) k) + (multiOscillatorWeyl z (multiModeNumberBasis (m + 1) k)) = + inner ℂ (numberBasis (k 0)) (oscillatorWeyl (z 0) (numberBasis (k 0))) * + inner ℂ (multiModeNumberBasis m (Fin.tail k)) + (multiOscillatorWeyl w (multiModeNumberBasis m (Fin.tail k))) := by + simpa only [Fin.cons_self_tail, hz] using + multiOscillatorWeyl_number_diagonal_cons (z 0) w (k 0) (Fin.tail k) + _ = _ := by + rw [ih, Fin.prod_univ_succ] + rfl + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/MultiModeWeylRepresentation.lean b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeWeylRepresentation.lean new file mode 100644 index 0000000000..e2a1e4cdf2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/MultiModeWeylRepresentation.lean @@ -0,0 +1,151 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentTotality +public import LeanPool.VacuumBellSeparation.Weyl.Existence + +/-! +# A genuine finite-mode Weyl/coherent unitary realization + +The actual full occupation-space coherent vectors realize the Gaussian +kernel on finite-dimensional complex Euclidean phase space. The map on +RKHS point masses extends through the null quotient and completion and +is onto by the proved coherent totality. Thus the unitary equivalence is +constructed, including the zero-mode case. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped ComplexConjugate + +/-- Multi mode phase space with underlying type `EuclideanSpace ℂ (Fin m)`. -/ +abbrev MultiModePhaseSpace (m : ℕ) := EuclideanSpace ℂ (Fin m) + +/-- Multi coherent vector given by `Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) • multiExponentialVector +(fun j => z j)`. -/ +def multiCoherentVector {m : ℕ} (z : MultiModePhaseSpace m) : MultiModeOscillatorSpace m := + Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) • multiExponentialVector (fun j => z j) + +theorem inner_multiCoherentVector {m : ℕ} (z w : MultiModePhaseSpace m) : + inner ℂ (multiCoherentVector z) (multiCoherentVector w) = + weylKernel (id : MultiModePhaseSpace m → MultiModePhaseSpace m) z w := by + rw [multiCoherentVector, multiCoherentVector, inner_smul_left, inner_smul_right, + inner_multiExponentialVector, weylKernel_eq] + simp only [id_eq, PiLp.inner_apply, RCLike.inner_apply'] + ring + +theorem multiCoherentVector_dense_span (m : ℕ) : + (Submodule.span ℂ (Set.range (multiCoherentVector (m := m)))).topologicalClosure = ⊤ := by + have hspan : Submodule.span ℂ (Set.range (multiExponentialVector (m := m))) ≤ + Submodule.span ℂ (Set.range (multiCoherentVector (m := m))) := by + apply Submodule.span_le.mpr + rintro _ ⟨z, rfl⟩ + let w : MultiModePhaseSpace m := WithLp.toLp 2 z + have hmem : multiCoherentVector w ∈ + Submodule.span ℂ (Set.range (multiCoherentVector (m := m))) := + Submodule.subset_span ⟨w, rfl⟩ + have h := Submodule.smul_mem + (Submodule.span ℂ (Set.range (multiCoherentVector (m := m)))) + (Complex.exp ((-(‖w‖ ^ 2 / 2) : ℝ) : ℂ))⁻¹ hmem + have hw : (fun j => w j) = z := by + funext j + rfl + have hcancel : (Complex.exp ((-(‖w‖ ^ 2 / 2) : ℝ) : ℂ))⁻¹ • + multiCoherentVector w = multiExponentialVector z := by + calc + _ = multiExponentialVector (fun j => w j) := + inv_smul_smul₀ (Complex.exp_ne_zero _) _ + _ = _ := congrArg (multiExponentialVector (m := m)) hw + rw [hcancel] at h + exact h + have h := Submodule.topologicalClosure_mono hspan + rw [multiExponentialVector_dense_span] at h + exact top_unique h + +/-- Linear map for the multi coherent realization₀, of type `MultiModePhaseSpace m → +MultiModePhaseSpace m)) →ₗ[ℂ] MultiModeOscillatorSpace m`. -/ +def multiCoherentRealization₀ (m : ℕ) : + RKHS.H₀ (weylRKHSKernel (id : MultiModePhaseSpace m → MultiModePhaseSpace m)) →ₗ[ℂ] + MultiModeOscillatorSpace m := + Finsupp.linearCombination ℂ + (fun p : MultiModePhaseSpace m × ℂ => p.2 • multiCoherentVector p.1) + +@[simp] theorem multiCoherentRealization₀_single {m : ℕ} (z : MultiModePhaseSpace m) (v a : ℂ) : + multiCoherentRealization₀ m (Finsupp.single (z, v) a) = a • (v • multiCoherentVector z) := by + simp [multiCoherentRealization₀] + +theorem inner_multiCoherentRealization₀ {m : ℕ} + (f g : RKHS.H₀ (weylRKHSKernel (id : MultiModePhaseSpace m → MultiModePhaseSpace m))) : + inner ℂ (multiCoherentRealization₀ m f) (multiCoherentRealization₀ m g) = inner ℂ f g := by + induction f using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_left] + | add f₁ f₂ h₁ h₂ => simp only [map_add, inner_add_left, h₁, h₂] + | single p a => + induction g using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_right] + | add g₁ g₂ h₁ h₂ => simp only [map_add, inner_add_right, h₁, h₂] + | single q b => + obtain ⟨z, v⟩ := p + obtain ⟨w, u⟩ := q + rw [multiCoherentRealization₀_single, multiCoherentRealization₀_single, inner_H₀_single] + simp only [inner_smul_left, inner_smul_right, inner_multiCoherentVector] + ring + +/-- Linear isometry for the multi coherent realization iso₀, of type `MultiModePhaseSpace m → +MultiModePhaseSpace m)) →ₗᵢ[ℂ] MultiModeOscillatorSpace m`. -/ +def multiCoherentRealizationIso₀ (m : ℕ) : + RKHS.H₀ (weylRKHSKernel (id : MultiModePhaseSpace m → MultiModePhaseSpace m)) →ₗᵢ[ℂ] + MultiModeOscillatorSpace m := + (multiCoherentRealization₀ m).isometryOfInner inner_multiCoherentRealization₀ + +/-- Linear isometry for the multi coherent realization, of type `MultiModePhaseSpace m → +MultiModePhaseSpace m) →ₗᵢ[ℂ] MultiModeOscillatorSpace m`. -/ +def multiCoherentRealization (m : ℕ) : + WeylSpace (id : MultiModePhaseSpace m → MultiModePhaseSpace m) →ₗᵢ[ℂ] + MultiModeOscillatorSpace m := + (multiCoherentRealizationIso₀ m).fromCompletion + +theorem multiCoherentRealization_weylVec {m : ℕ} (z : MultiModePhaseSpace m) : + multiCoherentRealization m (weylVec (id : MultiModePhaseSpace m → MultiModePhaseSpace m) z) = + multiCoherentVector z := by + rw [weylVec_def, multiCoherentRealization, LinearIsometry.fromCompletion_apply_coe] + change multiCoherentRealization₀ m (Finsupp.single (z, 1) 1) = multiCoherentVector z + simp + +theorem multiCoherentRealization_surjective (m : ℕ) : + Function.Surjective (multiCoherentRealization m) := by + have hclosed : IsClosed (Set.range (multiCoherentRealization m)) := + (multiCoherentRealization m).isometry.isClosedEmbedding.isClosed_range + have hspan : Submodule.span ℂ (Set.range (multiCoherentVector (m := m))) ≤ + (multiCoherentRealization m).toLinearMap.range := by + apply Submodule.span_le.mpr + rintro _ ⟨z, rfl⟩ + exact ⟨weylVec (id : MultiModePhaseSpace m → MultiModePhaseSpace m) z, + multiCoherentRealization_weylVec z⟩ + have hclosure := (Submodule.span ℂ (Set.range (multiCoherentVector + (m := m)))).topologicalClosure_minimal + hspan hclosed + rw [multiCoherentVector_dense_span] at hclosure + exact LinearMap.range_eq_top.mp (top_unique hclosure) + +/-- Unitary identification of the multimode Weyl representation with its coherent-vector model. -/ +def multiWeylCoherentEquiv (m : ℕ) : + WeylSpace (id : MultiModePhaseSpace m → MultiModePhaseSpace m) ≃ₗᵢ[ℂ] + MultiModeOscillatorSpace m := + LinearIsometryEquiv.ofSurjective (multiCoherentRealization m) + (multiCoherentRealization_surjective m) + +theorem multiWeylCoherentEquiv_weylVec {m : ℕ} (z : MultiModePhaseSpace m) : + multiWeylCoherentEquiv m (weylVec (id : MultiModePhaseSpace m → MultiModePhaseSpace m) z) = + multiCoherentVector z := multiCoherentRealization_weylVec z + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/NormalizedCommutation.lean b/LeanPool/VacuumBellSeparation/Gaussian/NormalizedCommutation.lean new file mode 100644 index 0000000000..4aa2474f2e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/NormalizedCommutation.lean @@ -0,0 +1,130 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCompression +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Abs + +/-! +# Normalized commutation coordinates + +Algebraic transport from a bounded complex skew-adjoint `J`, with norm at +most two, to `B=iJ/2`, `G±=1±B`, `d=|B|` and the manuscript's reserve and +thermal operators. Constructing this complex `J` from the real source +covariance/symplectic form is done in other modules (`complexCommutation_mem_skewAdjoint` and +`norm_complexCommutation_le_two` in `Gaussian/SourceGram.lean`; for the free field, +`sourceCommutation_symplectic` in `FreeField/SourceSpace.lean`). +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- The normalized commutation operator `iJ/2`. -/ +noncomputable def normalizedCommutation (J : F →L[ℂ] F) : F →L[ℂ] F := + (Complex.I / 2) • J + +theorem normalizedCommutation_isSelfAdjoint {J : F →L[ℂ] F} + (hJ : J ∈ skewAdjoint (F →L[ℂ] F)) : IsSelfAdjoint (normalizedCommutation J) := by + apply isSelfAdjoint_smul_of_mem_skewAdjoint _ hJ + change star (Complex.I / 2) = -(Complex.I / 2) + simp [neg_div] + +theorem norm_normalizedCommutation_le_one {J : F →L[ℂ] F} (hJ : ‖J‖ ≤ 2) : + ‖normalizedCommutation J‖ ≤ 1 := by + rw [normalizedCommutation, norm_smul, norm_div] + norm_num + linarith + +/-- The two normalized Gram expressions. -/ +def gramPlus (B : F →L[ℂ] F) : F →L[ℂ] F := 1 + B + +/-- Gram minus given by `1 - B`. -/ +def gramMinus (B : F →L[ℂ] F) : F →L[ℂ] F := 1 - B + +omit [CompleteSpace F] in +theorem gramPlus_add_gramMinus (B : F →L[ℂ] F) : gramPlus B + gramMinus B = 2 := by + unfold gramPlus gramMinus + calc + (1 : F →L[ℂ] F) + B + (1 - B) = 1 + 1 := by abel + _ = 2 := by norm_num + +omit [CompleteSpace F] in +theorem gramPlus_mul_gramMinus (B : F →L[ℂ] F) : + gramPlus B * gramMinus B = reserveSquare B := by + unfold gramPlus gramMinus reserveSquare + noncomm_ring + +omit [CompleteSpace F] in +theorem gramPlus_commute_gramMinus (B : F →L[ℂ] F) : Commute (gramPlus B) (gramMinus B) := by + change (1 + B) * (1 - B) = (1 - B) * (1 + B) + noncomm_ring + +theorem gramPlus_nonneg {B : F →L[ℂ] F} (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) : + 0 ≤ gramPlus B := by + change 0 ≤ 1 + B + rw [← cfc_one_add_id B hB] + apply cfc_nonneg + intro x hx + have h := spectrum_mem_Icc_of_norm_le_one hnorm hx + linarith [h.1] + +theorem gramMinus_nonneg {B : F →L[ℂ] F} (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) : + 0 ≤ gramMinus B := by + change 0 ≤ 1 - B + rw [← cfc_one_sub_id B hB] + apply cfc_nonneg + intro x hx + have h := spectrum_mem_Icc_of_norm_le_one hnorm hx + linarith [h.2] + +theorem reserve_eq_sqrt_gramProduct (B : F →L[ℂ] F) : + reserve B = CFC.sqrt (gramPlus B * gramMinus B) := by + rw [gramPlus_mul_gramMinus] + rfl + +theorem reserve_eq_sqrt_one_sub_abs_sq {B : F →L[ℂ] F} (hB : IsSelfAdjoint B) : + reserve B = CFC.sqrt (1 - (CFC.abs B) ^ 2) := by + rw [CFC.abs_sq, hB.star_eq, ← pow_two] + rfl + +/-- The thermal operator, the manuscript's `H_b(I)` written as a function of `d=|B|`. -/ +noncomputable def normalizedThermal (b : ℝ) (B : F →L[ℂ] F) : F →L[ℂ] F := + cfc (thermalIncrement b) (CFC.abs B) + +theorem normalizedThermal_eq_cfc_abs {b : ℝ} (hb : 0 < b) + {B : F →L[ℂ] F} (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) : + normalizedThermal b B = cfc (fun x : ℝ => thermalIncrement b |x|) B := by + have himage : (fun x : ℝ => ‖x‖) '' spectrum ℝ B ⊆ Set.Icc (0 : ℝ) 1 := by + rintro _ ⟨x, hx, rfl⟩ + exact ⟨norm_nonneg x, (IsometricContinuousFunctionalCalculus.norm_spectrum_le B hx hB).trans + hnorm⟩ + rw [normalizedThermal, CFC.abs_eq_cfc_norm B hB, + ← cfc_comp' (thermalIncrement b) (fun x : ℝ => ‖x‖) B + ((continuousOn_thermalIncrement hb).mono himage) continuous_norm.continuousOn hB] + simp only [Real.norm_eq_abs] + +/-- The high-compression chain (4.11), with the manuscript's `H_b` written as a function of +`|B|`. -/ +theorem normalizedThermal_compression_chain (ι : E →ₗᵢ[ℂ] F) + {B : F →L[ℂ] F} (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) (n : ℕ) : + let b : ℝ := ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) + thermalConst b • compression ι ((reserve B) ^ (2 * b)) ≤ + compression ι (normalizedThermal b B) ∧ + compression ι (normalizedThermal b B) ≤ normalizedThermal b (compression ι B) := by + dsimp only + have hb : (0 : ℝ) < ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) := by positivity + rw [normalizedThermal_eq_cfc_abs hb hB hnorm, + normalizedThermal_eq_cfc_abs hb (compression_isSelfAdjoint ι hB) + ((norm_compression_le ι B).trans hnorm)] + exact high_compression_chain ι hB hnorm n + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/NormalizedCovarianceThermal.lean b/LeanPool/VacuumBellSeparation/Gaussian/NormalizedCovarianceThermal.lean new file mode 100644 index 0000000000..54157301e2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/NormalizedCovarianceThermal.lean @@ -0,0 +1,196 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.IntrinsicGaussianRenyiBound +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticHamiltonianNormalForm +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCovarianceBridge + +/-! +# The actual normalized covariance increment as a thermal CFC + +The normalized commutation matrix is literally i V^(-1/2) Ω V^(-1/2)/2. +Its thermal functional calculus is the covariance-normalized difference +between the actual normalized density power covariance and V. The proof +uses genuine Williamson coordinates and their orthogonal normalization; +no covariance power rule is assumed. Pure mode parameters remain allowed +in this identity, although later inverse thermal normalization needs a +faithful reference and an exponent strictly below one. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Covariance commutation matrix given by `(Complex.I / 2) • complexifyMatrix +(relativeCovariancePerturbation V Ω)`. -/ +def covarianceCommutationMatrix (V Ω : Matrix ι ι ℝ) : Matrix ι ι ℂ := + (Complex.I / 2) • complexifyMatrix (relativeCovariancePerturbation V Ω) + +theorem covarianceCommutationMatrix_congruence + (S Ω : Matrix ι ι ℝ) {V : Matrix ι ι ℝ} + (hV : V.PosDef) (hW : (S * V * Sᵀ).PosDef) : + covarianceCommutationMatrix (S * V * Sᵀ) (S * Ω * Sᵀ) = + complexifyMatrix (relativeCongruenceOrthogonal S V) * + covarianceCommutationMatrix V Ω * + (complexifyMatrix (relativeCongruenceOrthogonal S V))ᴴ := by + rw [covarianceCommutationMatrix, + relativeCovariancePerturbation_congruence S hV hW Ω, + complexifyMatrix_mul, complexifyMatrix_mul, complexifyMatrix_transpose, + covarianceCommutationMatrix, Matrix.mul_smul, Matrix.smul_mul] + +variable {m : ℕ} + +theorem relativeCovariancePerturbation_mode_diagonal + {ν : Fin m → ℝ} (hν : ∀ j, 0 < ν j) (d : Fin m → ℝ) : + relativeCovariancePerturbation (modeDiagonal ν) (modeDiagonal d) = + modeDiagonal (fun j => d j / ν j) := by + rw [relativeCovariancePerturbation, modeDiagonal_sqrt (fun j => (hν j).le), + modeDiagonal_inv (fun j => (Real.sqrt_pos.mpr (hν j)).ne'), + modeDiagonal_mul, modeDiagonal_mul] + congr 1 + funext j + have hs : (Real.sqrt (ν j)) ^ 2 = ν j := Real.sq_sqrt (hν j).le + calc + _ = d j / (Real.sqrt (ν j)) ^ 2 := by ring + _ = _ := by rw [hs] + +theorem relativeCovariancePerturbation_mode_symplectic + {ν : Fin m → ℝ} (hν : ∀ j, 0 < ν j) : + relativeCovariancePerturbation (modeDiagonal ν) modeSymplecticForm = + modeDiagonal (fun j => (ν j)⁻¹) * modeSymplecticForm := by + let R := modeDiagonal (fun j => (Real.sqrt (ν j))⁻¹) + have hc : Commute R modeSymplecticForm := modeDiagonal_commute_symplectic _ + have hRR : R * R = modeDiagonal (fun j => (ν j)⁻¹) := by + dsimp only [R] + rw [modeDiagonal_mul] + congr 1 + funext j + rw [← mul_inv, Real.mul_self_sqrt (hν j).le] + rw [relativeCovariancePerturbation, modeDiagonal_sqrt (fun j => (hν j).le), + modeDiagonal_inv (fun j => (Real.sqrt_pos.mpr (hν j)).ne')] + change R * modeSymplecticForm * R = _ + rw [mul_assoc, ← hc.eq, ← mul_assoc, hRR] + +theorem covarianceCommutationMatrix_mode_diagonal + {ν : Fin m → ℝ} (hν : ∀ j, 0 < ν j) : + covarianceCommutationMatrix (modeDiagonal ν) modeSymplecticForm = + modeHamiltonian (fun j => (2 * ν j)⁻¹) := by + rw [covarianceCommutationMatrix, relativeCovariancePerturbation_mode_symplectic hν, + modeHamiltonian, complexifyMatrix_mul, complexifyMatrix_mul, + complexifyMatrix_modeDiagonal, complexifyMatrix_modeDiagonal] + rw [← Matrix.smul_mul, ← Matrix.smul_mul] + congr 1 + ext i j + by_cases h : i = j + · subst j + simp only [Matrix.smul_apply, Matrix.diagonal_apply_eq, smul_eq_mul, + Complex.ofReal_inv, Complex.ofReal_mul, Complex.ofReal_ofNat, _root_.mul_inv_rev] + ring + · simp [Matrix.diagonal_apply_ne _ h] + +theorem covarianceCommutationMatrix_thermal_coordinates + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {q : Fin m → ℝ} (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) : + covarianceCommutationMatrix (S * thermalReferenceCovariance q * Sᵀ) + modeSymplecticForm = + complexifyMatrix (relativeCongruenceOrthogonal S (thermalReferenceCovariance q)) * + modeHamiltonian (fun j => thermalCommutationMagnitude (q j)) * + (complexifyMatrix (relativeCongruenceOrthogonal S (thermalReferenceCovariance q)))ᴴ := by + have hv (j : Fin m) : 0 < thermalQuadratureVariance (q j) := by + have h := half_le_thermalQuadratureVariance (hq₀ j) (hq₁ j) + linarith + have hD : (thermalReferenceCovariance q).PosDef := modeDiagonal_posDef hv + have hW := canonical_symplectic_congruence_posDef S hS hD + rw [← hS, covarianceCommutationMatrix_congruence S modeSymplecticForm hD hW] + congr 2 + change covarianceCommutationMatrix (modeDiagonal _) modeSymplecticForm = _ + rw [covarianceCommutationMatrix_mode_diagonal hv] + congr 1 + funext j + exact (thermalCommutationMagnitude_eq_inv_twice_variance (hq₀ j) (hq₁ j)).symm + +theorem relativeCovariancePerturbation_thermal_gap + {q : Fin m → ℝ} (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) + {τ : ℝ} (hτ : 0 < τ) : + relativeCovariancePerturbation (thermalReferenceCovariance q) (thermalReferenceGap q τ) = + modeDiagonal (fun j => thermalIncrement τ (thermalCommutationMagnitude (q j))) := by + have hv (j : Fin m) : 0 < thermalQuadratureVariance (q j) := by + have h := half_le_thermalQuadratureVariance (hq₀ j) (hq₁ j) + linarith + have hg : thermalReferenceGap q τ = + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ) - + thermalQuadratureVariance (q j)) := Matrix.diagonal_sub _ _ + rw [hg, thermalReferenceCovariance, relativeCovariancePerturbation_mode_diagonal hv] + congr 1 + funext j + rw [thermalIncrement_eq_relative_covariance (hq₀ j) (hq₁ j) hτ, + sub_div, div_self (hv j).ne'] + +/-- Actual matrix equality before any inverse thermal weight is introduced. -/ +theorem transported_thermal_gap_eq_cfc_commutation + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {q : Fin m → ℝ} (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) + {τ : ℝ} (hτ : 0 < τ) : + complexifyMatrix (relativeCovariancePerturbation + (S * thermalReferenceCovariance q * Sᵀ) (transportedThermalIncrement S q τ)) = + cfc (thermalIncrement τ) (CFC.abs + (covarianceCommutationMatrix (S * thermalReferenceCovariance q * Sᵀ) + modeSymplecticForm)) := by + have hv (j : Fin m) : 0 < thermalQuadratureVariance (q j) := by + have h := half_le_thermalQuadratureVariance (hq₀ j) (hq₁ j) + linarith + have hD : (thermalReferenceCovariance q).PosDef := modeDiagonal_posDef hv + have hW := canonical_symplectic_congruence_posDef S hS hD + let U := orthogonalComplexUnitary + (relativeCongruenceOrthogonal S (thermalReferenceCovariance q)) + (relativeCongruenceOrthogonal_transpose_mul S hD hW) + have hn := covarianceCommutationMatrix_thermal_coordinates S hS hq₀ hq₁ + change covarianceCommutationMatrix (S * thermalReferenceCovariance q * Sᵀ) + modeSymplecticForm = (U : Matrix _ _ ℂ) * + modeHamiltonian (fun j => thermalCommutationMagnitude (q j)) * (U : Matrix _ _ ℂ)ᴴ at hn + have hmag : (complexifyMatrix + (modeDiagonal (fun j => thermalCommutationMagnitude (q j)))).IsHermitian := + (complexifyMatrix_posSemidef (modeDiagonal_posDef + (fun j => thermalCommutationMagnitude_pos (hq₀ j) (hq₁ j))).posSemidef).isHermitian + rw [hn, complex_matrix_abs_unitary_conjugate, + abs_modeHamiltonian (fun j => (thermalCommutationMagnitude_pos (hq₀ j) (hq₁ j)).le), + cfc_complex_unitary_conjugate U hmag (thermalIncrement τ), + complexifyMatrix_modeDiagonal, cfc_complex_real_diagonal] + rw [transportedThermalIncrement, relativeCovariancePerturbation_congruence S hD hW, + relativeCovariancePerturbation_thermal_gap hq₀ hq₁ hτ, + complexifyMatrix_mul, complexifyMatrix_mul, complexifyMatrix_transpose, + complexifyMatrix_modeDiagonal] + rfl + +/-- The thermal matrix is the normalized increment of the actual density +power covariance, with no assumed covariance power rule. -/ +theorem gaussian_power_increment_eq_cfc_commutation + {σ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hσ : IsFaithfulDensity σ) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hG : HasGaussianPhysicalCharacteristic σ V) + {τ : ℝ} (hτ : 0 < τ) : + complexifyMatrix (relativeCovariancePerturbation V (gaussianPowerIncrement σ τ)) = + cfc (thermalIncrement τ) (CFC.abs (covarianceCommutationMatrix V modeSymplecticForm)) := by + obtain ⟨q, S, hS, hq₀, hq₁, hcov, _⟩ := + exists_gaussian_reference_thermal_coordinates hσ.isPositiveTraceClass + (actual_faithful_gaussian_quantum_posDef hσ hV hG) hG + rw [gaussianPowerIncrement_in_coordinates S hS (fun j => (hq₀ j).le) hq₁ + hσ.isPositiveTraceClass hV hG hcov hτ, ← hcov] + exact transported_thermal_gap_eq_cfc_commutation S hS (fun j => (hq₀ j).le) hq₁ hτ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/NormalizedDensityPowers.lean b/LeanPool/VacuumBellSeparation/Gaussian/NormalizedDensityPowers.lean new file mode 100644 index 0000000000..4004e01437 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/NormalizedDensityPowers.lean @@ -0,0 +1,96 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceScaling +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumPurityCalculus + +/-! +# Actual positive powers and normalization of density operators + +The scalar power law is derived from the genuine continuous functional +calculus. Trace normalization then separates the actual logarithmic power +trace into the partition term and the normalized density term, only after +strict positivity and finiteness of the relevant traces have been proved. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ComplexOrder + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem positiveOperator_real_smul_rpow {A : E →L[ℂ] E} (hA : 0 ≤ A) + {c r : ℝ} (hc : 0 ≤ c) (hr : 0 ≤ r) : + (c • A) ^ r = c ^ r • (A ^ r) := by + have hf : Continuous (fun x : ℝ => x ^ r) := Real.continuous_rpow_const hr + rw [CFC.rpow_eq_cfc_real (smul_nonneg hc hA), CFC.rpow_eq_cfc_real hA, + ← cfc_comp_const_mul c (fun x : ℝ => x ^ r) A hf.continuousOn hA.isSelfAdjoint] + calc + _ = cfc (fun x : ℝ => c ^ r * x ^ r) A := + cfc_congr fun x hx => Real.mul_rpow hc (spectrum_nonneg_of_nonneg hA hx) + _ = _ := cfc_const_mul (c ^ r) (fun x : ℝ => x ^ r) A hf.continuousOn + +theorem positiveDensity_eq_trace_smul_normalized {A : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) (ht : 0 < positiveTrace A) : + A = (positiveTrace A).toReal • normalizedPositiveDensity A := by + have hr : (positiveTrace A).toReal ≠ 0 := + (ENNReal.toReal_pos ht.ne' hA.2.ne).ne' + rw [normalizedPositiveDensity, smul_smul, mul_inv_cancel₀ hr, one_smul] + +theorem positiveDensity_rpow_eq_trace_smul_normalized_rpow {A : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) (ht : 0 < positiveTrace A) {r : ℝ} (hr : 0 ≤ r) : + A ^ r = (positiveTrace A).toReal ^ r • (normalizedPositiveDensity A ^ r) := by + conv_lhs => rw [positiveDensity_eq_trace_smul_normalized hA ht] + exact positiveOperator_real_smul_rpow + (smul_nonneg (inv_nonneg.mpr ENNReal.toReal_nonneg) hA.1) + ENNReal.toReal_nonneg hr + +theorem positiveDensity_rpow_trace_pos_finite_of_normalized (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) (ht : 0 < positiveTrace A) + {r : ℝ} (hr : 0 ≤ r) + (hn : 0 < positiveTrace (normalizedPositiveDensity A ^ r) ∧ + positiveTrace (normalizedPositiveDensity A ^ r) < ⊤) : + 0 < positiveTrace (A ^ r) ∧ positiveTrace (A ^ r) < ⊤ := by + have hp := Real.rpow_pos_of_pos (ENNReal.toReal_pos ht.ne' hA.2.ne) r + rw [positiveDensity_rpow_eq_trace_smul_normalized_rpow hA ht hr, + positiveTrace_real_smul b CFC.rpow_nonneg hp.le] + exact ⟨bot_lt_iff_ne_bot.mpr (mul_ne_zero (ENNReal.ofReal_pos.mpr hp).ne' hn.1.ne'), + ENNReal.mul_lt_top ENNReal.ofReal_lt_top hn.2⟩ + +theorem log_positiveTrace_rpow_normalization (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) (ht : 0 < positiveTrace A) + {r : ℝ} (hr : 0 ≤ r) + (hn : 0 < positiveTrace (normalizedPositiveDensity A ^ r) ∧ + positiveTrace (normalizedPositiveDensity A ^ r) < ⊤) : + Real.log (positiveTrace (A ^ r)).toReal = + r * Real.log (positiveTrace A).toReal + + Real.log (positiveTrace (normalizedPositiveDensity A ^ r)).toReal := by + have htR := ENNReal.toReal_pos ht.ne' hA.2.ne + have hnR := ENNReal.toReal_pos hn.1.ne' hn.2.ne + rw [positiveDensity_rpow_eq_trace_smul_normalized_rpow hA ht hr, + positiveTrace_real_smul b CFC.rpow_nonneg (Real.rpow_pos_of_pos htR r).le, + ENNReal.toReal_mul, ENNReal.toReal_ofReal (Real.rpow_pos_of_pos htR r).le, + Real.log_mul (Real.rpow_pos_of_pos htR r).ne' hnR.ne', Real.log_rpow htR] + +theorem gaussianPhysical_rpow_trace_pos_finite_of_strict_quantum {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) + (hG : HasGaussianPhysicalCharacteristic A V) {r : ℝ} (hr : 0 < r) : + 0 < positiveTrace (A ^ r) ∧ positiveTrace (A ^ r) < ⊤ := by + obtain ⟨ν, S, hν, hS, hcov⟩ := exists_faithful_canonical_williamson V hV hQ + rw [← hcov] at hG + exact gaussianPhysical_rpow_trace_pos_finite hA S hS (fun j => (hν j).le) hG hr + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/NuclearNormConvergence.lean b/LeanPool/VacuumBellSeparation/Gaussian/NuclearNormConvergence.lean new file mode 100644 index 0000000000..2558d76d6a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/NuclearNormConvergence.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.NuclearSelfAdjointSeries + +/-! +# A finite nuclear sum constructs the actual operator-norm sum + +The genuine extended trace dominates operator norm. Consequently a family +whose nuclear traces have finite sum is norm summable, and a compact +self-adjoint family has an actual compact self-adjoint sum with the +claimed nuclear bound. No abstract Schatten-space completeness is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] {ι : Type*} + +theorem norm_le_positiveTrace_toReal {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) : + ‖A‖ ≤ (positiveTrace A).toReal := by + obtain ⟨κ, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + have ht : (∑' i, ENNReal.ofReal (‖CFC.sqrt A (b i)‖ ^ 2)) < ∞ := by + simpa only [positiveTrace_eq_basisSquareTrace b, basisSquareTrace] using hA.2 + have hs : Summable fun i => ‖CFC.sqrt A (b i)‖ ^ 2 := by + simpa only [ENNReal.toReal_ofReal (sq_nonneg _)] using ENNReal.summable_toReal ht.ne + have heq : (positiveTrace A).toReal = ∑' i, ‖CFC.sqrt A (b i)‖ ^ 2 := by + rw [positiveTrace_eq_basisSquareTrace b, basisSquareTrace, + ENNReal.tsum_toReal_eq (fun _ => ENNReal.ofReal_ne_top)] + simp only [ENNReal.toReal_ofReal (sq_nonneg _)] + have hn := norm_le_sqrt_basis_image_sum b (CFC.sqrt A) hs + have hsq : ‖CFC.sqrt A‖ ^ 2 ≤ ∑' i, ‖CFC.sqrt A (b i)‖ ^ 2 := by + have h := pow_le_pow_left₀ (norm_nonneg _) hn 2 + rwa [Real.sq_sqrt (tsum_nonneg fun _ => sq_nonneg _)] at h + calc + ‖A‖ = ‖CFC.sqrt A * CFC.sqrt A‖ := congrArg norm (CFC.sqrt_mul_sqrt_self A hA.1).symm + _ = ‖CFC.sqrt A‖ ^ 2 := by rw [(CFC.sqrt_nonneg A).isSelfAdjoint.norm_mul_self, pow_two] + _ ≤ ∑' i, ‖CFC.sqrt A (b i)‖ ^ 2 := hsq + _ = (positiveTrace A).toReal := heq.symm + +theorem ofReal_norm_le_positiveTrace {A : E →L[ℂ] E} (hA : 0 ≤ A) : + ENNReal.ofReal ‖A‖ ≤ positiveTrace A := by + by_cases ht : positiveTrace A = ∞ + · rw [ht] + exact le_top + · have hn := ENNReal.ofReal_le_ofReal (norm_le_positiveTrace_toReal ⟨hA, + lt_top_iff_ne_top.mpr ht⟩) + simpa only [ENNReal.ofReal_toReal ht] using hn + +theorem ofReal_norm_le_operatorTraceNorm (A : E →L[ℂ] E) : + ENNReal.ofReal ‖A‖ ≤ operatorTraceNorm A := by + simpa only [CFC.norm_abs, operatorTraceNorm] using ofReal_norm_le_positiveTrace (CFC.abs_nonneg A) + +theorem summable_norm_of_nuclear_sum_lt_top {A : ι → E →L[ℂ] E} + (ht : (∑' i, operatorTraceNorm (A i)) < ∞) : Summable fun i => ‖A i‖ := by + have hn : (∑' i, ENNReal.ofReal ‖A i‖) < ∞ := + (tsum_le_tsum fun i => ofReal_norm_le_operatorTraceNorm (A i)).trans_lt ht + simpa only [ENNReal.toReal_ofReal (norm_nonneg _)] using ENNReal.summable_toReal hn.ne + +theorem nuclear_sum_constructs_compact_selfAdjoint {A : ι → E →L[ℂ] E} + (hc : ∀ i, IsCompactOperator (A i)) (hA : ∀ i, IsSelfAdjoint (A i)) + (ht : (∑' i, operatorTraceNorm (A i)) < ∞) : + Summable A ∧ IsCompactOperator (∑' i, A i) ∧ IsSelfAdjoint (∑' i, A i) ∧ + operatorTraceNorm (∑' i, A i) ≤ ∑' i, operatorTraceNorm (A i) := by + have hs := summable_norm_of_nuclear_sum_lt_top ht + have hfun : HasSum (fun i => (A i : E → E)) + (fun x => ((∑' i, A i) : E →L[ℂ] E) x) := by + apply Pi.hasSum.mpr + intro x + exact (ContinuousLinearMap.apply ℂ E x).hasSum hs.of_norm.hasSum + have hcompact : IsCompactOperator (∑' i, (A i : E → E)) := by + rw [hfun.tsum_eq] + exact isCompactOperator_tsum_of_summable hc hs.of_norm + exact ⟨hs.of_norm, hcompact, isSelfAdjoint_tsum hA, + operatorTraceNorm_tsum_le hc hA hs⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/NuclearSandwichContinuity.lean b/LeanPool/VacuumBellSeparation/Gaussian/NuclearSandwichContinuity.lean new file mode 100644 index 0000000000..3c6edefd1e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/NuclearSandwichContinuity.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveSandwichDifference + +/-! +# Nuclear continuity of genuine selfadjoint trace-class sandwiches + +The positive difference modulus extends through the actual Jordan parts. +The resulting estimate proves continuity of the real nuclear trace under +operator-norm convergence of selfadjoint sandwich factors. Neither finite +rank nor a nuclear-norm completeness theorem is assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Filter +open scoped ENNReal Topology + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem operatorTraceNorm_sandwich_difference_modulus {B S T : E →L[ℂ] E} + (hB : IsSelfAdjoint B) (htB : operatorTraceNorm B < ∞) + (hS : IsSelfAdjoint S) (hT : IsSelfAdjoint T) : + operatorTraceNorm (S * B * S - T * B * T) ≤ + ENNReal.ofReal (‖S - T‖ * (‖S - T‖ + 1 + ‖T‖ ^ 2)) * operatorTraceNorm B := by + obtain ⟨hp, hn⟩ := selfAdjoint_parts_traceClass hB htB + let Dp : E →L[ℂ] E := S * B⁺ * S - T * B⁺ * T + let Dn : E →L[ℂ] E := S * B⁻ * S - T * B⁻ * T + have hcp := positiveTraceClass_isCompactOperator hp + have hcn := positiveTraceClass_isCompactOperator hn + have hcDp : IsCompactOperator Dp := + ((hcp.clm_comp S).comp_clm S).sub ((hcp.clm_comp T).comp_clm T) + have hcDn : IsCompactOperator Dn := + ((hcn.clm_comp S).comp_clm S).sub ((hcn.clm_comp T).comp_clm T) + have hsDp : IsSelfAdjoint Dp := + (selfAdjoint_sandwich_isSelfAdjoint hp.1.isSelfAdjoint hS).sub + (selfAdjoint_sandwich_isSelfAdjoint hp.1.isSelfAdjoint hT) + have hsDn : IsSelfAdjoint Dn := + (selfAdjoint_sandwich_isSelfAdjoint hn.1.isSelfAdjoint hS).sub + (selfAdjoint_sandwich_isSelfAdjoint hn.1.isSelfAdjoint hT) + have he : S * B * S - T * B * T = Dp - Dn := by + calc + _ = S * (B⁺ - B⁻) * S - + T * (B⁺ - B⁻) * T := by + rw [CFC.posPart_sub_negPart B hB] + _ = Dp - Dn := by dsimp only [Dp, Dn]; noncomm_ring + rw [he] + apply (operatorTraceNorm_sub_le hcDp hcDn hsDp hsDn).trans + apply (add_le_add (operatorTraceNorm_positive_sandwich_difference_modulus hp hS hT) + (operatorTraceNorm_positive_sandwich_difference_modulus hn hS hT)).trans_eq + rw [← mul_add, ← positiveTrace_add hp.1 hn.1, CFC.posPart_add_negPart B hB] + rfl + +theorem operatorTraceNorm_reverse_triangle_toReal {A B : E →L[ℂ] E} + (hcA : IsCompactOperator A) (hcB : IsCompactOperator B) + (hA : IsSelfAdjoint A) (hB : IsSelfAdjoint B) + (htA : operatorTraceNorm A < ∞) (htB : operatorTraceNorm B < ∞) : + |(operatorTraceNorm A).toReal - (operatorTraceNorm B).toReal| ≤ + (operatorTraceNorm (A - B)).toReal := by + have htD : operatorTraceNorm (A - B) < ∞ := + (operatorTraceNorm_sub_le hcA hcB hA hB).trans_lt (ENNReal.add_lt_top.mpr ⟨htA, htB⟩) + have hleft : operatorTraceNorm A ≤ operatorTraceNorm (A - B) + operatorTraceNorm B := by + simpa only [sub_add_cancel] using operatorTraceNorm_add_le (hcA.sub hcB) hcB (hA.sub hB) hB + have hright : operatorTraceNorm B ≤ operatorTraceNorm (A - B) + operatorTraceNorm A := by + have h := operatorTraceNorm_add_le (hcB.sub hcA) hcA (hB.sub hA) hA + rw [sub_add_cancel, show B - A = -(A - B) by abel, operatorTraceNorm_neg] at h + exact h + have hl := ENNReal.toReal_mono (ENNReal.add_lt_top.mpr ⟨htD, htB⟩).ne hleft + have hr := ENNReal.toReal_mono (ENNReal.add_lt_top.mpr ⟨htD, htA⟩).ne hright + rw [ENNReal.toReal_add htD.ne htB.ne] at hl + rw [ENNReal.toReal_add htD.ne htA.ne] at hr + exact abs_le.mpr ⟨by linarith, by linarith⟩ + +theorem nuclear_sandwich_toReal_modulus {B S T : E →L[ℂ] E} + (hcB : IsCompactOperator B) (hB : IsSelfAdjoint B) (htB : operatorTraceNorm B < ∞) + (hS : IsSelfAdjoint S) (hT : IsSelfAdjoint T) : + |(operatorTraceNorm (S * B * S)).toReal - (operatorTraceNorm (T * B * T)).toReal| ≤ + (‖S - T‖ * (‖S - T‖ + 1 + ‖T‖ ^ 2)) * (operatorTraceNorm B).toReal := by + have hr := operatorTraceNorm_reverse_triangle_toReal + ((hcB.clm_comp S).comp_clm S) ((hcB.clm_comp T).comp_clm T) + (selfAdjoint_sandwich_isSelfAdjoint hB hS) (selfAdjoint_sandwich_isSelfAdjoint hB hT) + (operatorTraceNorm_selfAdjoint_sandwich_lt_top hcB hB htB hS) + (operatorTraceNorm_selfAdjoint_sandwich_lt_top hcB hB htB hT) + have hc : 0 ≤ ‖S - T‖ * (‖S - T‖ + 1 + ‖T‖ ^ 2) := by positivity + have he := operatorTraceNorm_sandwich_difference_modulus hB htB hS hT + have hf : ENNReal.ofReal (‖S - T‖ * (‖S - T‖ + 1 + ‖T‖ ^ 2)) * + operatorTraceNorm B ≠ ∞ := (ENNReal.mul_lt_top ENNReal.ofReal_lt_top htB).ne + have hreal := ENNReal.toReal_mono hf he + rw [ENNReal.toReal_mul, ENNReal.toReal_ofReal hc] at hreal + exact hr.trans hreal + +theorem tendsto_nuclear_sandwich_toReal {l : Filter ι} {S : ι → E →L[ℂ] E} + {T B : E →L[ℂ] E} (hS : ∀ i, IsSelfAdjoint (S i)) (hT : IsSelfAdjoint T) + (hcB : IsCompactOperator B) (hB : IsSelfAdjoint B) (htB : operatorTraceNorm B < ∞) + (hST : Tendsto S l (𝓝 T)) : + Tendsto (fun i => (operatorTraceNorm (S i * B * S i)).toReal) l + (𝓝 (operatorTraceNorm (T * B * T)).toReal) := by + have hd : Tendsto (fun i => ‖S i - T‖) l (𝓝 (0 : ℝ)) := by + simpa only [sub_self, norm_zero] using (hST.sub (tendsto_const_nhds (x := T))).norm + have hlim : Tendsto (fun i => + (‖S i - T‖ * (‖S i - T‖ + 1 + ‖T‖ ^ 2)) * (operatorTraceNorm B).toReal) + l (𝓝 (0 : ℝ)) := by + simpa only [zero_mul] using + (hd.mul ((hd.add (tendsto_const_nhds (x := (1 : ℝ)))).add + (tendsto_const_nhds (x := ‖T‖ ^ 2)))).mul + (tendsto_const_nhds (x := (operatorTraceNorm B).toReal)) + apply tendsto_iff_norm_sub_tendsto_zero.mpr + apply squeeze_zero (fun _ => norm_nonneg _) _ hlim + intro i + rw [Real.norm_eq_abs] + exact nuclear_sandwich_toReal_modulus hcB hB htB (hS i) hT + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/NuclearSelfAdjointSeries.lean b/LeanPool/VacuumBellSeparation/Gaussian/NuclearSelfAdjointSeries.lean new file mode 100644 index 0000000000..3c1deb0d1a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/NuclearSelfAdjointSeries.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompactTraceNorm +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceSeries + +/-! +# Nuclear bounds for actual self-adjoint operator series + +Absolute summability is in the operator norm. It produces a genuine +compact self-adjoint sum; the trace of its absolute value is bounded by +the sum of the individual nuclear traces, even when that bound is infinite. +The argument compares the sum with the positive sum of absolute values, +using quadratic-form order rather than an operator absolute-value triangle +inequality. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Filter +open scoped ENNReal Topology + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] {ι : Type*} + +theorem isCompactOperator_tsum_of_summable {A : ι → E →L[ℂ] E} + (hA : ∀ i, IsCompactOperator (A i)) (hs : Summable A) : + IsCompactOperator ((∑' i, A i) : E →L[ℂ] E) := by + classical + apply isCompactOperator_of_tendsto hs.hasSum + exact Eventually.of_forall fun s => + (compactOperator (RingHom.id ℂ) E E).sum_mem fun i _ => hA i + +theorem isSelfAdjoint_tsum {A : ι → E →L[ℂ] E} + (hA : ∀ i, IsSelfAdjoint (A i)) : IsSelfAdjoint (∑' i, A i) := by + change star (∑' i, A i) = ∑' i, A i + rw [tsum_star] + exact tsum_congr fun i => hA i + +theorem summable_operator_abs_of_summable_norm {A : ι → E →L[ℂ] E} + (hs : Summable fun i => ‖A i‖) : Summable fun i => CFC.abs (A i) := by + apply Summable.of_norm + simpa only [CFC.norm_abs] using hs + +theorem operatorTraceNorm_tsum_le {A : ι → E →L[ℂ] E} + (hc : ∀ i, IsCompactOperator (A i)) (hA : ∀ i, IsSelfAdjoint (A i)) + (hs : Summable fun i => ‖A i‖) : + operatorTraceNorm (∑' i, A i) ≤ ∑' i, operatorTraceNorm (A i) := by + have hsA : Summable A := hs.of_norm + have hsabs := summable_operator_abs_of_summable_norm hs + have hupper : (∑' i, A i) ≤ ∑' i, CFC.abs (A i) := + Summable.tsum_le_tsum (fun i => sub_nonneg.mp (operator_abs_sub_nonneg (hA i))) hsA hsabs + have hlower : -(∑' i, CFC.abs (A i)) ≤ ∑' i, A i := by + simpa only [tsum_neg] using + Summable.tsum_le_tsum (fun i => neg_le_iff_add_nonneg'.mpr (operator_abs_add_nonneg (hA i))) + hsabs.neg hsA + have hb : 0 ≤ ∑' i, CFC.abs (A i) := tsum_nonneg fun i => CFC.abs_nonneg (A i) + calc + operatorTraceNorm (∑' i, A i) ≤ positiveTrace (∑' i, CFC.abs (A i)) := + operatorTraceNorm_le_positiveTrace_of_order_bounds + (isCompactOperator_tsum_of_summable hc hsA) (isSelfAdjoint_tsum hA) hb hlower hupper + _ = ∑' i, operatorTraceNorm (A i) := by + simpa only [operatorTraceNorm] using positiveTrace_tsum (fun i => CFC.abs_nonneg (A i)) hsabs + +theorem operatorTraceNorm_tsum_lt_top {A : ι → E →L[ℂ] E} + (hc : ∀ i, IsCompactOperator (A i)) (hA : ∀ i, IsSelfAdjoint (A i)) + (hs : Summable fun i => ‖A i‖) + (htrace : (∑' i, operatorTraceNorm (A i)) < ∞) : + operatorTraceNorm (∑' i, A i) < ∞ := + (operatorTraceNorm_tsum_le hc hA hs).trans_lt htrace + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/OperatorMeans.lean b/LeanPool/VacuumBellSeparation/Gaussian/OperatorMeans.lean new file mode 100644 index 0000000000..cbe2fa53f7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/OperatorMeans.lean @@ -0,0 +1,145 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompressionPower + +/-! +# Weighted geometric means under compression + +The strictly positive case of the weighted geometric-mean compression used in +Lemma 4.4. The proof uses the explicitly constructed weighted isometry +`A^(1/2) ι (ι* A ι)^(-1/2)` and the power Jensen theorem. Neither a Kubo–Ando +compression theorem nor a Gaussian comparison is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +@[simp] +theorem compression_real_smul (ι : E →ₗᵢ[ℂ] F) (r : ℝ) (A : F →L[ℂ] F) : + compression ι (r • A) = r • compression ι A := by + ext x + simp [compression] + +@[simp] +theorem compression_real_algebraMap (ι : E →ₗᵢ[ℂ] F) (r : ℝ) : + compression ι (algebraMap ℝ (F →L[ℂ] F) r) = algebraMap ℝ (E →L[ℂ] E) r := by + simp [Algebra.algebraMap_eq_smul_one] + +/-- Strict positivity is preserved by an isometric compression. -/ +theorem compression_isStrictlyPositive (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} + (hA : IsStrictlyPositive A) : IsStrictlyPositive (compression ι A) := by + cases subsingleton_or_nontrivial F with + | inl h => + let := h + have hAeq : A = 1 := Subsingleton.elim _ _ + rw [hAeq, compression_one] + exact isStrictlyPositive_one + | inr h => + let := h + obtain ⟨r, hr, hbound⟩ := (CFC.exists_pos_algebraMap_le_iff A hA.nonneg.isSelfAdjoint).mpr + (fun _ hx => hA.spectrum_pos hx) + have h := compression_mono ι hbound + rw [compression_real_algebraMap] at h + exact (isStrictlyPositive_algebraMap hr).of_le h + +/-- The source's weighted geometric mean on a strictly positive first input. +The theorem below states the domain explicitly; outside it CFC uses its usual +totalized conventions. -/ +noncomputable def weightedGeometricMean (p : ℝ) (A B : F →L[ℂ] F) : F →L[ℂ] F := + A ^ (1 / 2 : ℝ) * (A ^ (-(1 / 2) : ℝ) * B * A ^ (-(1 / 2) : ℝ)) ^ p * + A ^ (1 / 2 : ℝ) + +/-- The continuous linear map underlying the weighted isometry. -/ +noncomputable def weightedEmbeddingMap (ι : E →ₗᵢ[ℂ] F) (A : F →L[ℂ] F) : E →L[ℂ] F := + (A ^ (1 / 2 : ℝ)) ∘L ι.toContinuousLinearMap ∘L + ((compression ι A) ^ (-(1 / 2) : ℝ)) + +theorem half_rpow_mul_self {A : F →L[ℂ] F} (hA : IsStrictlyPositive A) : + A ^ (1 / 2 : ℝ) * A ^ (1 / 2 : ℝ) = A := by + rw [← CFC.rpow_add hA.isUnit] + norm_num [CFC.rpow_one A hA.nonneg] + +/-- The weighted embedding satisfies `J*J = I`, proved from its formula. -/ +theorem weightedEmbeddingMap_adjoint_comp_self (ι : E →ₗᵢ[ℂ] F) + {A : F →L[ℂ] F} (hA : IsStrictlyPositive A) : + (weightedEmbeddingMap ι A).adjoint ∘L weightedEmbeddingMap ι A = 1 := by + have hhalf : (A ^ (1 / 2 : ℝ)).adjoint = A ^ (1 / 2 : ℝ) := + (CFC.rpow_nonneg : 0 ≤ A ^ (1 / 2 : ℝ)).isSelfAdjoint.adjoint_eq + have hneg : ((compression ι A) ^ (-(1 / 2) : ℝ)).adjoint = + (compression ι A) ^ (-(1 / 2) : ℝ) := + (CFC.rpow_nonneg : 0 ≤ (compression ι A) ^ (-(1 / 2) : ℝ)).isSelfAdjoint.adjoint_eq + ext x + simp only [weightedEmbeddingMap, adjoint_comp, hhalf, hneg, comp_apply] + rw [← mul_apply_eq_comp, half_rpow_mul_self hA] + change (((compression ι A) ^ (-(1 / 2) : ℝ)) * compression ι A * + ((compression ι A) ^ (-(1 / 2) : ℝ))) x = x + rw [CFC.conjugate_rpow_neg_one_half _ (compression_isStrictlyPositive ι hA), one_apply_eq_self] + +/-- The weighted embedding as an actual linear isometry. -/ +noncomputable def weightedEmbedding (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} + (hA : IsStrictlyPositive A) : E →ₗᵢ[ℂ] F where + toLinearMap := (weightedEmbeddingMap ι A).toLinearMap + norm_map' := (weightedEmbeddingMap ι A).norm_map_iff_adjoint_comp_self.mpr + (weightedEmbeddingMap_adjoint_comp_self ι hA) + +/-- Compression by the weighted isometry, expressed as an ordinary +compression followed by inverse square-root normalization. -/ +theorem compression_weightedEmbedding (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} + (hA : IsStrictlyPositive A) (Z : F →L[ℂ] F) : + compression (weightedEmbedding ι hA) Z = + (compression ι A) ^ (-(1 / 2) : ℝ) * + compression ι (A ^ (1 / 2 : ℝ) * Z * A ^ (1 / 2 : ℝ)) * + (compression ι A) ^ (-(1 / 2) : ℝ) := by + have hhalf : (A ^ (1 / 2 : ℝ)).adjoint = A ^ (1 / 2 : ℝ) := + (CFC.rpow_nonneg : 0 ≤ A ^ (1 / 2 : ℝ)).isSelfAdjoint.adjoint_eq + have hneg : ((compression ι A) ^ (-(1 / 2) : ℝ)).adjoint = + (compression ι A) ^ (-(1 / 2) : ℝ) := + (CFC.rpow_nonneg : 0 ≤ (compression ι A) ^ (-(1 / 2) : ℝ)).isSelfAdjoint.adjoint_eq + change (weightedEmbeddingMap ι A).adjoint ∘L Z ∘L weightedEmbeddingMap ι A = _ + simp only [weightedEmbeddingMap, adjoint_comp, hhalf, hneg] + ext x + simp only [comp_apply, compression, mul_apply_eq_comp] + +theorem half_inverseHalf_conjugation {A : F →L[ℂ] F} (hA : IsStrictlyPositive A) + (B : F →L[ℂ] F) : + A ^ (1 / 2 : ℝ) * (A ^ (-(1 / 2) : ℝ) * B * A ^ (-(1 / 2) : ℝ)) * + A ^ (1 / 2 : ℝ) = B := by + have hleft := CFC.rpow_mul_rpow_neg (1 / 2 : ℝ) hA + have hright := CFC.rpow_neg_mul_rpow (1 / 2 : ℝ) hA + calc + _ = (A ^ (1 / 2 : ℝ) * A ^ (-(1 / 2) : ℝ)) * B * + (A ^ (-(1 / 2) : ℝ) * A ^ (1 / 2 : ℝ)) := by noncomm_ring + _ = B := by rw [hleft, hright, one_mul, mul_one] + +/-- Weighted geometric means increase under isometric compression, for +strictly positive `A`, positive `B`, and `0 < p ≤ 1`. -/ +theorem compression_weightedGeometricMean_le (ι : E →ₗᵢ[ℂ] F) + {A B : F →L[ℂ] F} (hA : IsStrictlyPositive A) (hB : 0 ≤ B) + {p : ℝ} (hp0 : 0 < p) (hp1 : p ≤ 1) : + compression ι (weightedGeometricMean p A B) ≤ + weightedGeometricMean p (compression ι A) (compression ι B) := by + let X := A ^ (-(1 / 2) : ℝ) * B * A ^ (-(1 / 2) : ℝ) + have hX : 0 ≤ X := + (CFC.rpow_nonneg : 0 ≤ A ^ (-(1 / 2) : ℝ)).isSelfAdjoint.conjugate_nonneg hB + have h := compression_rpow_le (weightedEmbedding ι hA) hX hp0 hp1 + rw [compression_weightedEmbedding, compression_weightedEmbedding, + half_inverseHalf_conjugation hA B] at h + have hconj := (CFC.rpow_nonneg : 0 ≤ (compression ι A) ^ + (1 / 2 : ℝ)).isSelfAdjoint.conjugate_le_conjugate h + rw [half_inverseHalf_conjugation (compression_isStrictlyPositive ι hA)] at hconj + exact hconj + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ParallelSum.lean b/LeanPool/VacuumBellSeparation/Gaussian/ParallelSum.lean new file mode 100644 index 0000000000..b8d690a0a7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ParallelSum.lean @@ -0,0 +1,225 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.OperatorMeans + +/-! +# Inverse quadratic forms under compression + +Foundations for parallel-sum compression in Lemma 4.4. The generalized +Schwarz inequality is proved from the positive orthogonal-complement +projection of the weighted embedding. It is not assumed as a literature +theorem. + +The binary parallel sum is the actual inverse of the sum of inverses. Its +compression inequality follows from the inverse quadratic-form bound. +Finite nonempty families are handled by the actual inverse-sum formula and +binary induction. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Operator form of Bessel's inequality for an isometric embedding. -/ +theorem gram_compression_le (ι : E →ₗᵢ[ℂ] F) (T : E →L[ℂ] F) : + (ι.toContinuousLinearMap.adjoint ∘L T).adjoint ∘L + (ι.toContinuousLinearMap.adjoint ∘L T) ≤ T.adjoint ∘L T := by + have h := (nonneg_iff_isPositive.mp (one_sub_imageProjection_nonneg ι)).adjoint_conj T + have heq : T.adjoint ∘L (1 - imageProjection ι) ∘L T = + T.adjoint ∘L T - (ι.toContinuousLinearMap.adjoint ∘L T).adjoint ∘L + (ι.toContinuousLinearMap.adjoint ∘L T) := by + ext x + simp [imageProjection] + rw [heq] at h + exact le_def.mpr h + +theorem negHalf_rpow_mul_self {A : F →L[ℂ] F} (hA : IsStrictlyPositive A) : + A ^ (-(1 / 2) : ℝ) * A ^ (-(1 / 2) : ℝ) = A ^ (-1 : ℝ) := by + rw [← CFC.rpow_add hA.isUnit] + norm_num + +/-- The inverse quadratic-form compression bound +`(ι*Bι) (ι*Aι)^(-1) (ι*Bι) ≤ ι*(B A^(-1) B)ι`. +This is the key noncommutative inequality behind parallel-sum compression. -/ +theorem compression_inverse_schwarz (ι : E →ₗᵢ[ℂ] F) + {A B : F →L[ℂ] F} (hA : IsStrictlyPositive A) (hB : IsSelfAdjoint B) : + compression ι B * (compression ι A) ^ (-1 : ℝ) * compression ι B ≤ + compression ι (B * A ^ (-1 : ℝ) * B) := by + let T : E →L[ℂ] F := (A ^ (-(1 / 2) : ℝ)) ∘L B ∘L ι.toContinuousLinearMap + let J := weightedEmbedding ι hA + have hhalf : (A ^ (1 / 2 : ℝ)).adjoint = A ^ (1 / 2 : ℝ) := + (CFC.rpow_nonneg : 0 ≤ A ^ (1 / 2 : ℝ)).isSelfAdjoint.adjoint_eq + have hneg : (A ^ (-(1 / 2) : ℝ)).adjoint = A ^ (-(1 / 2) : ℝ) := + (CFC.rpow_nonneg : 0 ≤ A ^ (-(1 / 2) : ℝ)).isSelfAdjoint.adjoint_eq + have hHneg : ((compression ι A) ^ (-(1 / 2) : ℝ)).adjoint = + (compression ι A) ^ (-(1 / 2) : ℝ) := + (CFC.rpow_nonneg : 0 ≤ (compression ι A) ^ (-(1 / 2) : ℝ)).isSelfAdjoint.adjoint_eq + have hcancel := CFC.rpow_mul_rpow_neg (1 / 2 : ℝ) hA + have hJT : J.toContinuousLinearMap.adjoint ∘L T = + (compression ι A) ^ (-(1 / 2) : ℝ) * compression ι B := by + change (weightedEmbeddingMap ι A).adjoint ∘L T = _ + ext x + simp only [weightedEmbeddingMap, T, adjoint_comp, hhalf, hHneg, + comp_apply, mul_apply_eq_comp] + rw [← mul_apply_eq_comp, hcancel, one_apply_eq_self] + rfl + have hTT : T.adjoint ∘L T = compression ι (B * A ^ (-1 : ℝ) * B) := by + ext x + simp only [T, adjoint_comp, hneg, hB.adjoint_eq, comp_apply, compression, mul_apply_eq_comp] + rw [← mul_apply_eq_comp (A ^ (-(1 / 2) : ℝ)) (A ^ (-(1 / 2) : ℝ)), + negHalf_rpow_mul_self hA] + have h := gram_compression_le J T + rw [hJT, hTT] at h + have hQ : IsSelfAdjoint (compression ι B) := compression_isSelfAdjoint ι hB + have hN : IsSelfAdjoint ((compression ι A) ^ (-(1 / 2) : ℝ)) := CFC.rpow_nonneg.isSelfAdjoint + have heq : ((compression ι A) ^ (-(1 / 2) : ℝ) * compression ι B).adjoint ∘L + ((compression ι A) ^ (-(1 / 2) : ℝ) * compression ι B) = + compression ι B * (compression ι A) ^ (-1 : ℝ) * compression ι B := by + change star ((compression ι A) ^ (-(1 / 2) : ℝ) * compression ι B) * + ((compression ι A) ^ (-(1 / 2) : ℝ) * compression ι B) = _ + rw [star_mul, hQ.star_eq, hN.star_eq] + calc + _ = compression ι B * + (((compression ι A) ^ (-(1 / 2) : ℝ)) * + ((compression ι A) ^ (-(1 / 2) : ℝ))) * compression ι B := by noncomm_ring + _ = _ := by rw [negHalf_rpow_mul_self (compression_isStrictlyPositive ι hA)] + rwa [heq] at h + +/-- Inverse Jensen inequality for strictly positive operators. -/ +theorem inverse_compression_le (ι : E →ₗᵢ[ℂ] F) {A : F →L[ℂ] F} + (hA : IsStrictlyPositive A) : + (compression ι A) ^ (-1 : ℝ) ≤ compression ι (A ^ (-1 : ℝ)) := by + simpa only [compression_one, one_mul, mul_one] using + compression_inverse_schwarz ι hA (IsSelfAdjoint.one (F →L[ℂ] F)) + +@[simp] +theorem compression_add (ι : E →ₗᵢ[ℂ] F) (A B : F →L[ℂ] F) : + compression ι (A + B) = compression ι A + compression ι B := by + ext x + simp [compression] + +/-- Binary parallel sum on strictly positive operators. Its theorem domains +below ensure that all three inverses are genuine inverses. -/ +noncomputable def parallelSum (A B : F →L[ℂ] F) : F →L[ℂ] F := + Ring.inverse (Ring.inverse A + Ring.inverse B) + +theorem parallelSum_isStrictlyPositive {A B : F →L[ℂ] F} + (hA : IsStrictlyPositive A) (hB : IsStrictlyPositive B) : + IsStrictlyPositive (parallelSum A B) := + (hA.ringInverse.add_nonneg hB.ringInverse.nonneg).ringInverse + +/-- The inverse-sum algebraic identity used to compare parallel sums. -/ +theorem parallelSum_eq_sub_inverse {A B : F →L[ℂ] F} + (hA : IsStrictlyPositive A) (hB : IsStrictlyPositive B) : + parallelSum A B = A - A * Ring.inverse (A + B) * A := by + have hsum : IsStrictlyPositive (A + B) := hA.add_nonneg hB.nonneg + unfold parallelSum + rw [Ring.inverse_add_inverse ⟨fun _ => hB.isUnit, fun _ => hA.isUnit⟩, + Ring.inverse_mul (Or.inr hB.isUnit.ringInverse), + Ring.inverse_mul (Or.inl hA.isUnit.ringInverse), + Ring.inverse_inverse hB.isUnit, Ring.inverse_inverse hA.isUnit] + calc + B * (Ring.inverse (A + B) * A) = + (A + B) * Ring.inverse (A + B) * A - A * Ring.inverse (A + B) * A := by + noncomm_ring + _ = A - A * Ring.inverse (A + B) * A := by + rw [Ring.mul_inverse_cancel _ hsum.isUnit, one_mul] + +/-- The same formula in the functional-calculus inverse notation. -/ +theorem parallelSum_eq_sub_rpow {A B : F →L[ℂ] F} + (hA : IsStrictlyPositive A) (hB : IsStrictlyPositive B) : + parallelSum A B = A - A * (A + B) ^ (-1 : ℝ) * A := by + rw [parallelSum_eq_sub_inverse hA hB, + CFC.inverse_eq_rpow_neg_one (hA.add_nonneg hB.nonneg)] + +/-- Parallel sums increase under isometric compression. -/ +theorem compression_parallelSum_le (ι : E →ₗᵢ[ℂ] F) {A B : F →L[ℂ] F} + (hA : IsStrictlyPositive A) (hB : IsStrictlyPositive B) : + compression ι (parallelSum A B) ≤ parallelSum (compression ι A) (compression ι B) := by + rw [parallelSum_eq_sub_rpow hA hB, compression_sub, + parallelSum_eq_sub_rpow (compression_isStrictlyPositive ι hA) + (compression_isStrictlyPositive ι hB), ← compression_add] + exact sub_le_sub_left (compression_inverse_schwarz ι (hA.add_nonneg hB.nonneg) + hA.nonneg.isSelfAdjoint) _ + +/-- Monotonicity of binary parallel sums, proved by reversing the operator +order twice under inversion. -/ +theorem parallelSum_mono {A B C D : F →L[ℂ] F} + (hA : IsStrictlyPositive A) (hB : IsStrictlyPositive B) + (hAC : A ≤ C) (hBD : B ≤ D) : parallelSum A B ≤ parallelSum C D := by + have hC := hA.of_le hAC + have hD := hB.of_le hBD + have h := add_le_add (CStarAlgebra.ringInverse_le_ringInverse hAC hA) + (CStarAlgebra.ringInverse_le_ringInverse hBD hB) + exact CStarAlgebra.ringInverse_le_ringInverse h + (hC.ringInverse.add_nonneg hD.ringInverse.nonneg) + +/-- Parallel sum of a finite nonempty family, with its actual inverse-sum +definition rather than an abstract operation carrying assumed properties. -/ +noncomputable def parallelFamily {n : ℕ} (A : Fin (n + 1) → (F →L[ℂ] F)) : F →L[ℂ] F := + Ring.inverse (∑ j, Ring.inverse (A j)) + +theorem sum_inverse_isStrictlyPositive {n : ℕ} {A : Fin (n + 1) → (F →L[ℂ] F)} + (hA : ∀ j, IsStrictlyPositive (A j)) : + IsStrictlyPositive (∑ j, Ring.inverse (A j)) := by + rw [Fin.sum_univ_succ] + exact (hA 0).ringInverse.add_nonneg + (Finset.sum_nonneg fun j _ => (hA j.succ).ringInverse.nonneg) + +theorem parallelFamily_isStrictlyPositive {n : ℕ} {A : Fin (n + 1) → (F →L[ℂ] F)} + (hA : ∀ j, IsStrictlyPositive (A j)) : IsStrictlyPositive (parallelFamily A) := + (sum_inverse_isStrictlyPositive hA).ringInverse + +omit [CompleteSpace F] in +theorem parallelFamily_one (A : Fin 1 → (F →L[ℂ] F)) + (hA : IsStrictlyPositive (A 0)) : parallelFamily A = A 0 := by + change Ring.inverse (∑ j : Fin 1, Ring.inverse (A j)) = A 0 + rw [Fin.sum_univ_one, Ring.inverse_inverse hA.isUnit] + +theorem parallelFamily_succ {n : ℕ} (A : Fin (n + 2) → (F →L[ℂ] F)) + (hA : ∀ j, IsStrictlyPositive (A j)) : + parallelFamily A = parallelSum (A 0) (parallelFamily (fun j => A j.succ)) := by + unfold parallelFamily parallelSum + rw [Fin.sum_univ_succ, + Ring.inverse_inverse (sum_inverse_isStrictlyPositive (fun j => hA j.succ)).isUnit] + +/-- Monotonicity of finite parallel sums. -/ +theorem parallelFamily_mono {n : ℕ} {A B : Fin (n + 1) → (F →L[ℂ] F)} + (hA : ∀ j, IsStrictlyPositive (A j)) (hAB : ∀ j, A j ≤ B j) : + parallelFamily A ≤ parallelFamily B := by + have hsum := Finset.sum_le_sum fun j (_ : j ∈ Finset.univ) => + CStarAlgebra.ringInverse_le_ringInverse (hAB j) (hA j) + exact CStarAlgebra.ringInverse_le_ringInverse hsum + (sum_inverse_isStrictlyPositive (fun j => (hA j).of_le (hAB j))) + +/-- Parallel sums of any finite nonempty family increase under isometric +compression. This is the form needed for the `r-1` thermal weights. -/ +theorem compression_parallelFamily_le (ι : E →ₗᵢ[ℂ] F) {n : ℕ} + (A : Fin (n + 1) → (F →L[ℂ] F)) (hA : ∀ j, IsStrictlyPositive (A j)) : + compression ι (parallelFamily A) ≤ parallelFamily (fun j => compression ι (A j)) := by + induction n with + | zero => + rw [parallelFamily_one A (hA 0), + parallelFamily_one _ (compression_isStrictlyPositive ι (hA 0))] + | succ n ih => + rw [parallelFamily_succ A hA, + parallelFamily_succ _ (fun j => compression_isStrictlyPositive ι (hA j))] + exact (compression_parallelSum_le ι (hA 0) + (parallelFamily_isStrictlyPositive (fun j => hA j.succ))).trans + (parallelSum_mono (compression_isStrictlyPositive ι (hA 0)) + (compression_isStrictlyPositive ι (parallelFamily_isStrictlyPositive + (fun j => hA j.succ))) le_rfl (ih (fun j => A j.succ) (fun j => hA j.succ))) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PhysicalGaussianHusimi.lean b/LeanPool/VacuumBellSeparation/Gaussian/PhysicalGaussianHusimi.lean new file mode 100644 index 0000000000..5378ef2731 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PhysicalGaussianHusimi.lean @@ -0,0 +1,132 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianHusimi + +/-! +# Literal physical covariance and the manuscript Husimi formula + +Displacement D((x+iy)/sqrt2) equals exp(i(yQ-xP)). Its characteristic +covariance is Ωᵀ V Ω when V is the physical (Q,P) covariance. The actual +orthogonal symplectic rotation is proved and cancels from the derived +Husimi inverse quadratic form. The resulting formula uses the source +coherent coordinates u=(Re z,Im z), equivalently r=sqrt2 u. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +theorem modeSymplecticForm_transpose_mul {m : ℕ} : + (modeSymplecticForm (ι := Fin m))ᵀ * modeSymplecticForm = 1 := by + rw [transpose_modeSymplecticForm, neg_mul, modeSymplecticForm_mul_self, neg_neg] + +theorem modeSymplecticForm_mul_transpose {m : ℕ} : + modeSymplecticForm (ι := Fin m) * modeSymplecticFormᵀ = 1 := by + rw [transpose_modeSymplecticForm, mul_neg, modeSymplecticForm_mul_self, neg_neg] + +theorem modeSymplecticForm_isUnit (m : ℕ) : + IsUnit (modeSymplecticForm (ι := Fin m)) := + ⟨⟨modeSymplecticForm, modeSymplecticFormᵀ, + modeSymplecticForm_mul_transpose, modeSymplecticForm_transpose_mul⟩, rfl⟩ + +/-- Physical displacement covariance given by `modeSymplecticFormᵀ * V * modeSymplecticForm`. -/ +def physicalDisplacementCovariance {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + modeSymplecticFormᵀ * V * modeSymplecticForm + +theorem physicalDisplacementCovariance_add_scalar {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (c : ℝ) : + physicalDisplacementCovariance (V + c • 1) = physicalDisplacementCovariance V + c • 1 := by + simp only [physicalDisplacementCovariance, Matrix.mul_add, Matrix.add_mul, + Matrix.mul_smul, Matrix.smul_mul, Matrix.mul_one, modeSymplecticForm_transpose_mul] + +theorem physicalDisplacementCovariance_posDef {m : ℕ} + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.PosDef) : + (physicalDisplacementCovariance V).PosDef := by + have h := (modeSymplecticForm_isUnit m).posDef_star_left_conjugate_iff (x := V) + simpa only [physicalDisplacementCovariance, Matrix.star_eq_conjTranspose, + Matrix.conjTranspose_eq_transpose_of_trivial] using h.mpr hV + +theorem physicalDisplacementCovariance_det {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + (physicalDisplacementCovariance V).det = V.det := by + have h := congrArg Matrix.det (modeSymplecticForm_transpose_mul (m := m)) + rw [Matrix.det_mul, Matrix.det_one] at h + rw [physicalDisplacementCovariance, Matrix.det_mul, Matrix.det_mul] + calc + _ = ((modeSymplecticForm (ι := Fin m))ᵀ.det * modeSymplecticForm.det) * V.det := by ring + _ = _ := by rw [h, one_mul] + +theorem physicalDisplacementCovariance_inv {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + (physicalDisplacementCovariance V)⁻¹ = physicalDisplacementCovariance V⁻¹ := by + have hΩi : (modeSymplecticForm (ι := Fin m))⁻¹ = modeSymplecticFormᵀ := + Matrix.inv_eq_right_inv modeSymplecticForm_mul_transpose + have hΩti : ((modeSymplecticForm (ι := Fin m))ᵀ)⁻¹ = modeSymplecticForm := + Matrix.inv_eq_right_inv modeSymplecticForm_transpose_mul + rw [physicalDisplacementCovariance, Matrix.mul_inv_rev, Matrix.mul_inv_rev, hΩi, hΩti] + exact (Matrix.mul_assoc _ _ _).symm + +theorem physicalDisplacementCovariance_involutive {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + physicalDisplacementCovariance (physicalDisplacementCovariance V) = V := by + unfold physicalDisplacementCovariance + calc + _ = (modeSymplecticFormᵀ * modeSymplecticFormᵀ) * V * + (modeSymplecticForm * modeSymplecticForm) := by noncomm_ring + _ = V := by + rw [transpose_modeSymplecticForm, neg_mul_neg, + modeSymplecticForm_mul_self] + simp + +theorem physicalDisplacementCovariance_inverse_quadratic {m : ℕ} + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (u : Fin m × Fin 2 → ℝ) : + (modeSymplecticForm *ᵥ u) ⬝ᵥ ((physicalDisplacementCovariance V)⁻¹ *ᵥ + (modeSymplecticForm *ᵥ u)) = u ⬝ᵥ (V⁻¹ *ᵥ u) := by + have h := dotProduct_congruence (modeSymplecticFormᵀ) + (physicalDisplacementCovariance V)⁻¹ u u + rw [Matrix.transpose_transpose] at h + change _ = u ⬝ᵥ (physicalDisplacementCovariance ((physicalDisplacementCovariance V)⁻¹) *ᵥ u) at h + rw [physicalDisplacementCovariance_inv, physicalDisplacementCovariance_involutive] at h + simpa only [physicalDisplacementCovariance_inv] using h + +/-- Condition that the data have Gaussian physical characteristic defined as +`HasGaussianDisplacementCharacteristic A (physicalDisplacementCovariance V)`. -/ +def HasGaussianPhysicalCharacteristic {m : ℕ} + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : Prop := + HasGaussianDisplacementCharacteristic A (physicalDisplacementCovariance V) + +/-- The source Husimi formula derived from the actual Gaussian +characteristic, with physical covariance and literal coherent coordinates. -/ +theorem gaussianPhysical_coherent_diagonal {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) (w : MultiModePhaseSpace m) : + inner ℂ (multiCoherentVector w) (A (multiCoherentVector w)) = + ((Real.sqrt (V + (1 / 2 : ℝ) • 1).det)⁻¹ : ℂ) * + Complex.exp ((-(complexRealCoordinates m (fun j => w j) ⬝ᵥ + ((V + (1 / 2 : ℝ) • 1)⁻¹ *ᵥ complexRealCoordinates m (fun j => w j))) : ℝ) : ℂ) := by + have hc : (physicalDisplacementCovariance V + (1 / 2 : ℝ) • 1).PosDef := by + rw [← physicalDisplacementCovariance_add_scalar] + exact physicalDisplacementCovariance_posDef hC + have h := gaussianDensity_coherent_diagonal hA hG hc w + rw [← physicalDisplacementCovariance_add_scalar, physicalDisplacementCovariance_det, + physicalDisplacementCovariance_inverse_quadratic] at h + exact h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PhysicalGaussianTransport.lean b/LeanPool/VacuumBellSeparation/Gaussian/PhysicalGaussianTransport.lean new file mode 100644 index 0000000000..163826a520 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PhysicalGaussianTransport.lean @@ -0,0 +1,128 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianNormalizedPowers + +/-! +# Unitary transport by a literal physical symplectic congruence + +The label matrix Ωᵀ Sᵀ Ω converts physical covariance transport S V Sᵀ +to the displacement convention of the canonical Weyl family. Unlike a +thermal-only simplification, this formula applies to anisotropic inputs. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {m : ℕ} + +/-- Physical congruence label given by `modeSymplecticFormᵀ * Sᵀ * modeSymplecticForm`. -/ +def physicalCongruenceLabel (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + modeSymplecticFormᵀ * Sᵀ * modeSymplecticForm + +theorem physicalCongruenceLabel_symplectic + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) : + (physicalCongruenceLabel S)ᵀ * modeSymplecticForm * physicalCongruenceLabel S = + modeSymplecticForm := by + simp only [physicalCongruenceLabel, Matrix.transpose_mul, Matrix.transpose_transpose] + calc + _ = modeSymplecticFormᵀ * S * + (modeSymplecticForm * modeSymplecticForm * modeSymplecticFormᵀ) * + Sᵀ * modeSymplecticForm := by noncomm_ring + _ = modeSymplecticFormᵀ * (S * modeSymplecticForm * Sᵀ) * modeSymplecticForm := by + rw [Matrix.mul_assoc modeSymplecticForm modeSymplecticForm modeSymplecticFormᵀ, + modeSymplecticForm_mul_transpose, Matrix.mul_one] + noncomm_ring + _ = modeSymplecticForm := by + rw [hS, modeSymplecticForm_transpose_mul, Matrix.one_mul] + +theorem physicalCongruenceLabel_covariance + (S V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + (physicalCongruenceLabel S)ᵀ * physicalDisplacementCovariance V * + physicalCongruenceLabel S = physicalDisplacementCovariance (S * V * Sᵀ) := by + simp only [physicalCongruenceLabel, physicalDisplacementCovariance, + Matrix.transpose_mul, Matrix.transpose_transpose] + calc + _ = modeSymplecticFormᵀ * S * + (modeSymplecticForm * modeSymplecticFormᵀ) * V * + (modeSymplecticForm * modeSymplecticFormᵀ) * Sᵀ * modeSymplecticForm := by + noncomm_ring + _ = _ := by simp only [modeSymplecticForm_mul_transpose, Matrix.mul_one]; noncomm_ring + +/-- Linear isometry equivalence for the physical congruence unitary, of type +`MultiModeOscillatorSpace m ≃ₗᵢ[ℂ] MultiModeOscillatorSpace m`. -/ +def physicalCongruenceUnitary + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) : + MultiModeOscillatorSpace m ≃ₗᵢ[ℂ] MultiModeOscillatorSpace m := + symplecticWeylImplementer + (matrixWeylLabelMap_preservesWeylForm _ (physicalCongruenceLabel_symplectic S hS)) + +/-- Continuous linear map for the physical density pullback, of type `MultiModeOscillatorSpace m +→L[ℂ] MultiModeOscillatorSpace m`. -/ +def physicalDensityPullback + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + (physicalCongruenceUnitary S hS).symm.conjStarAlgEquiv A + +theorem physicalDensityPullback_eq_matrixDensityPullback + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) : + physicalDensityPullback S hS A = + matrixDensityPullback (physicalCongruenceLabel S) + (physicalCongruenceLabel_symplectic S hS) A := rfl + +theorem physicalDensityPullback_isPositiveTraceClass + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) : IsPositiveTraceClass (physicalDensityPullback S hS A) := + IsPositiveTraceClass.conjStarAlgEquiv _ hA + +theorem physicalDensityPullback_hasGaussianPhysicalCharacteristic + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianPhysicalCharacteristic A V) : + HasGaussianPhysicalCharacteristic (physicalDensityPullback S hS A) (S * V * Sᵀ) := by + have h := matrixDensityPullback_hasGaussianDisplacementCharacteristic + (physicalCongruenceLabel S) (physicalCongruenceLabel_symplectic S hS) hA hG + rw [physicalCongruenceLabel_covariance] at h + exact h + +theorem physicalDensityPullback_covarianceProductDensity + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) : + physicalDensityPullback S hS (covarianceProductDensity ν) = physicalWilliamsonDensity S hS ν + := by + apply gaussianPhysical_density_unique + (physicalDensityPullback_isPositiveTraceClass S hS + (covarianceProductDensity_isPositiveTraceClass hν)) + (physicalWilliamsonDensity_isPositiveTraceClass S hS hν) + · apply physicalDensityPullback_hasGaussianPhysicalCharacteristic S hS + (covarianceProductDensity_isPositiveTraceClass hν) + change HasGaussianDisplacementCharacteristic (covarianceProductDensity ν) + (physicalDisplacementCovariance (modeDiagonal ν)) + rw [physicalDisplacementCovariance_modeDiagonal] + exact covarianceProductDensity_hasGaussianDisplacementCharacteristic hν + · exact physicalWilliamsonDensity_hasGaussianPhysicalCharacteristic S hS hν + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PhysicalWilliamsonDensity.lean b/LeanPool/VacuumBellSeparation/Gaussian/PhysicalWilliamsonDensity.lean new file mode 100644 index 0000000000..f8f1ffb8c0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PhysicalWilliamsonDensity.lean @@ -0,0 +1,129 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FixedGaussianExistence + +/-! +# Actual Williamson diagonalization of a physical Gaussian density + +For a physical covariance factorization V = S D Sᵀ, the label matrix +Sᵀ Ω includes the displacement/physical rotation explicitly. Its +constructed unitary pulls the actual thermal product density back to the +unique physical Gaussian density. Thus an existing density is identified +as an actual unitary conjugate, and its true CFC power trace is available. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {m : ℕ} + +/-- Physical Williamson label given by `Sᵀ * modeSymplecticForm`. -/ +def physicalWilliamsonLabel (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := Sᵀ * modeSymplecticForm + +theorem physicalWilliamsonLabel_symplectic + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) : + (physicalWilliamsonLabel S)ᵀ * modeSymplecticForm * physicalWilliamsonLabel S = + modeSymplecticForm := by + rw [physicalWilliamsonLabel, Matrix.transpose_mul, Matrix.transpose_transpose] + calc + _ = modeSymplecticFormᵀ * (S * modeSymplecticForm * Sᵀ) * modeSymplecticForm := by + noncomm_ring + _ = _ := by rw [hS, modeSymplecticForm_transpose_mul, Matrix.one_mul] + +theorem physicalWilliamsonLabel_covariance + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (D : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + (physicalWilliamsonLabel S)ᵀ * D * physicalWilliamsonLabel S = + physicalDisplacementCovariance (S * D * Sᵀ) := by + simp only [physicalWilliamsonLabel, Matrix.transpose_mul, Matrix.transpose_transpose, + physicalDisplacementCovariance] + noncomm_ring + +/-- Continuous linear map for the physical Williamson density, of type `MultiModeOscillatorSpace m +→L[ℂ] MultiModeOscillatorSpace m`. -/ +def physicalWilliamsonDensity + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) (ν : Fin m → ℝ) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + matrixDensityPullback (physicalWilliamsonLabel S) (physicalWilliamsonLabel_symplectic S hS) + (covarianceProductDensity ν) + +theorem physicalWilliamsonDensity_isPositiveTraceClass + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) : + IsPositiveTraceClass (physicalWilliamsonDensity S hS ν) := + matrixDensityPullback_isPositiveTraceClass _ _ (covarianceProductDensity_isPositiveTraceClass hν) + +theorem physicalWilliamsonDensity_hasGaussianPhysicalCharacteristic + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) : + HasGaussianPhysicalCharacteristic (physicalWilliamsonDensity S hS ν) + (S * modeDiagonal ν * Sᵀ) := by + have h := matrixDensityPullback_hasGaussianDisplacementCharacteristic + (physicalWilliamsonLabel S) (physicalWilliamsonLabel_symplectic S hS) + (covarianceProductDensity_isPositiveTraceClass hν) + (covarianceProductDensity_hasGaussianDisplacementCharacteristic hν) + rwa [physicalWilliamsonLabel_covariance] at h + +/-- An existing actual Gaussian density equals its constructed +Williamson unitary model on the same canonical Hilbert space. -/ +theorem gaussianPhysical_eq_physicalWilliamsonDensity + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) + (hG : HasGaussianPhysicalCharacteristic A (S * modeDiagonal ν * Sᵀ)) : + A = physicalWilliamsonDensity S hS ν := + gaussianPhysical_density_unique hA (physicalWilliamsonDensity_isPositiveTraceClass S hS hν) + hG (physicalWilliamsonDensity_hasGaussianPhysicalCharacteristic S hS hν) + +theorem positiveTrace_physicalWilliamsonDensity_rpow + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) {r : ℝ} (hr : 0 < r) : + positiveTrace (physicalWilliamsonDensity S hS ν ^ r) = + ENNReal.ofReal (∏ j, (1 - covarianceThermalParameter (ν j)) ^ r / + (1 - covarianceThermalParameter (ν j) ^ r)) := by + calc + positiveTrace (physicalWilliamsonDensity S hS ν ^ r) = + positiveTrace (covarianceProductDensity ν ^ r) := by + exact positiveTrace_conjStarAlgEquiv_rpow + (E := MultiModeOscillatorSpace m) (F := MultiModeOscillatorSpace m) + (symplecticWeylImplementer (matrixWeylLabelMap_preservesWeylForm + (physicalWilliamsonLabel S) (physicalWilliamsonLabel_symplectic S hS))).symm + (A := covarianceProductDensity ν) (τ := r) + (covarianceProductDensity_nonneg hν) hr.le + _ = _ := positiveTrace_multiModeThermalDensity_rpow + (fun j => covarianceThermalParameter_nonneg (hν j)) + (fun j => covarianceThermalParameter_lt_one (hν j)) hr + +theorem positiveTrace_gaussianPhysical_rpow + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) + (hG : HasGaussianPhysicalCharacteristic A (S * modeDiagonal ν * Sᵀ)) + {r : ℝ} (hr : 0 < r) : + positiveTrace (A ^ r) = ENNReal.ofReal + (∏ j, (1 - covarianceThermalParameter (ν j)) ^ r / + (1 - covarianceThermalParameter (ν j) ^ r)) := by + rw [gaussianPhysical_eq_physicalWilliamsonDensity hA S hS hν hG] + exact positiveTrace_physicalWilliamsonDensity_rpow S hS hν hr + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularFubini.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularFubini.lean new file mode 100644 index 0000000000..9a637b6e34 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularFubini.lean @@ -0,0 +1,118 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscAngularIntegral + +/-! +# Fubini and the exact contour normalization + +The finite product-angle integral is related to one actual outer circle +and the remaining product integral. All uses of Fubini below include a +genuine joint integrability proof. +-/ + +@[expose] public section + +open Complex MeasureTheory Set +open scoped BigOperators + +namespace VacuumBellSeparation.Gaussian + +theorem polydiscAngle_integral_succ (n : ℕ) (g : (Fin (n + 1) → ℝ) → ℂ) + (hg : Integrable g (polydiscAngleMeasure (n + 1))) : + (∫ θ, g θ ∂polydiscAngleMeasure (n + 1)) = + ∫ t, ∫ θ, g (Fin.cons t θ) ∂polydiscAngleMeasure n ∂circleAngleMeasure := by + let e := (MeasurableEquiv.piFinSuccAbove (fun _ : Fin (n + 1) => ℝ) 0).symm + have he := (measurePreserving_piFinSuccAbove + (fun _ : Fin (n + 1) => circleAngleMeasure) 0).symm + have heq (p : ℝ × (Fin n → ℝ)) : e p = Fin.cons p.1 p.2 := by + simp only [e, MeasurableEquiv.piFinSuccAbove_symm_apply, Fin.insertNthEquiv, + Fin.insertNth_zero, Equiv.coe_fn_mk, cast_eq] + have hint : Integrable (fun p : ℝ × (Fin n → ℝ) => g (Fin.cons p.1 p.2)) + (circleAngleMeasure.prod (polydiscAngleMeasure n)) := by + have hi := he.integrable_comp_of_integrable hg + change Integrable (fun p => g (e p)) + (circleAngleMeasure.prod (polydiscAngleMeasure n)) at hi + simpa only [heq] using hi + calc + _ = ∫ p : ℝ × (Fin n → ℝ), g (Fin.cons p.1 p.2) + ∂circleAngleMeasure.prod (polydiscAngleMeasure n) := by + change (∫ θ, g θ ∂Measure.pi (fun _ : Fin (n + 1) => circleAngleMeasure)) = _ + rw [← he.integral_comp'] + change (∫ p, g (e p) ∂circleAngleMeasure.prod (polydiscAngleMeasure n)) = _ + simp only [heq] + _ = _ := integral_prod _ hint + +theorem polydiscAngularIntegral_zero (R : ℝ) (F : (Fin 0 → ℂ) → ℂ) : + polydiscAngularIntegral 0 R F = F Fin.elim0 := by + have h (θ : Fin 0 → ℝ) : polydiscBoundaryPoint 0 R θ = Fin.elim0 := by + funext j + exact Fin.elim0 j + simp only [polydiscAngularIntegral, h, integral_const, measureReal_def, + polydiscAngleMeasure, Measure.pi_univ, Finset.univ_eq_empty, + Finset.prod_empty, ENNReal.toReal_one, one_smul, pow_zero, inv_one, one_mul] + +theorem polydiscAngularIntegral_succ (n : ℕ) {R M : ℝ} (hR : 0 ≤ R) + (F : (Fin (n + 1) → ℂ) → ℂ) + (hcont : Continuous (fun θ => F (polydiscBoundaryPoint (n + 1) R θ))) + (hF : ∀ z, (∀ j, ‖z j‖ = R) → ‖F z‖ ≤ M) : + polydiscAngularIntegral (n + 1) R F = (2 * Real.pi : ℂ)⁻¹ * + ∫ t, polydiscAngularIntegral n R (fun z => F (Fin.cons (circleMap 0 R t) z)) + ∂circleAngleMeasure := by + have hi := integrable_polydiscBoundary (n + 1) hR F hcont hF + have heq (t : ℝ) (θ : Fin n → ℝ) : + polydiscBoundaryPoint (n + 1) R (Fin.cons t θ) = + Fin.cons (circleMap 0 R t) (polydiscBoundaryPoint n R θ) := by + funext j + refine Fin.cases ?_ (fun i => ?_) j <;> rfl + unfold polydiscAngularIntegral + rw [polydiscAngle_integral_succ n _ hi] + simp only [heq, integral_const_mul] + rw [pow_succ, mul_inv_rev] + ring + +theorem circleCoefficient_eq_angle {R : ℝ} (hR : 0 < R) + (f : ℂ → ℂ) (k : ℕ) : + circleCoefficient R f k = (2 * Real.pi : ℂ)⁻¹ * + ∫ t, (circleMap 0 R t)⁻¹ ^ k * f (circleMap 0 R t) ∂circleAngleMeasure := by + have hz (t : ℝ) : circleMap 0 R t ≠ 0 := circleMap_ne_center hR.ne' + have hi (t : ℝ) : deriv (circleMap 0 R) t * + ((circleMap 0 R t)⁻¹ ^ k * ((circleMap 0 R t)⁻¹ * f (circleMap 0 R t))) = + I * ((circleMap 0 R t)⁻¹ ^ k * f (circleMap 0 R t)) := by + rw [deriv_circleMap] + field_simp [hz t] + simp only [circleCoefficient, circleIntegral, smul_eq_mul, hi, + intervalIntegral.integral_of_le Real.two_pi_pos.le, circleAngleMeasure, + integral_const_mul] + have hp : (2 * Real.pi : ℂ) ≠ 0 := by exact_mod_cast Real.two_pi_pos.ne' + field_simp + +theorem normalized_circleCauchy_eq_angle {R : ℝ} (hR : 0 < R) + (f : ℂ → ℂ) (x : ℂ) (hx : ‖x‖ < R) : + (2 * Real.pi * I : ℂ)⁻¹ * (∮ z in C(0, R), (z - x)⁻¹ * f z) = + (2 * Real.pi : ℂ)⁻¹ * + ∫ t, (1 - x / circleMap 0 R t)⁻¹ * f (circleMap 0 R t) ∂circleAngleMeasure := by + have hz (t : ℝ) : circleMap 0 R t ≠ 0 := circleMap_ne_center hR.ne' + have hzx (t : ℝ) : circleMap 0 R t - x ≠ 0 := by + apply sub_ne_zero.mpr + intro heq + have hn : ‖circleMap 0 R t‖ = R := by simp [abs_of_pos hR] + rw [heq] at hn + linarith + have hi (t : ℝ) : deriv (circleMap 0 R) t * + ((circleMap 0 R t - x)⁻¹ * f (circleMap 0 R t)) = + I * ((1 - x / circleMap 0 R t)⁻¹ * f (circleMap 0 R t)) := by + rw [deriv_circleMap] + field_simp [hz t, hzx t] + simp only [circleIntegral, smul_eq_mul, hi, + intervalIntegral.integral_of_le Real.two_pi_pos.le, circleAngleMeasure, + integral_const_mul] + have hp : (2 * Real.pi : ℂ) ≠ 0 := by exact_mod_cast Real.two_pi_pos.ne' + field_simp + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularIntegral.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularIntegral.lean new file mode 100644 index 0000000000..0c0ae34670 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularIntegral.lean @@ -0,0 +1,115 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCauchyCoefficients +public import Mathlib.MeasureTheory.Integral.Pi +public import Mathlib.MeasureTheory.Integral.DominatedConvergence + +/-! +# Actual product-angle integrals on a polydisc boundary + +The normalization is the actual product of 2 pi factors. Finite angular +measure and summable uniform bounds justify exchanging any countable +series with this integral. No Cauchy or analytic hypothesis is assumed +in the exchange theorem. +-/ + +@[expose] public section + +open Complex MeasureTheory Set +open scoped BigOperators + +namespace VacuumBellSeparation.Gaussian + +/-- Circle angle measure given by `volume.restrict (Ioc 0 (2 * Real.pi))`. -/ +noncomputable def circleAngleMeasure : Measure ℝ := + volume.restrict (Ioc 0 (2 * Real.pi)) + +instance : IsFiniteMeasure circleAngleMeasure := by + unfold circleAngleMeasure + infer_instance + +/-- Polydisc angle measure given by `Measure.pi (fun _ => circleAngleMeasure)`. -/ +noncomputable def polydiscAngleMeasure (n : ℕ) : Measure (Fin n → ℝ) := + Measure.pi (fun _ => circleAngleMeasure) + +instance (n : ℕ) : IsFiniteMeasure (polydiscAngleMeasure n) := by + unfold polydiscAngleMeasure + infer_instance + +/-- Polydisc boundary point given by `fun j => circleMap 0 R (θ j)`. -/ +noncomputable def polydiscBoundaryPoint (n : ℕ) (R : ℝ) (θ : Fin n → ℝ) : Fin n → ℂ := + fun j => circleMap 0 R (θ j) + +theorem continuous_polydiscBoundaryPoint (n : ℕ) (R : ℝ) : + Continuous (polydiscBoundaryPoint n R) := by + unfold polydiscBoundaryPoint + fun_prop + +theorem norm_polydiscBoundaryPoint (n : ℕ) {R : ℝ} (hR : 0 ≤ R) + (θ : Fin n → ℝ) (j : Fin n) : ‖polydiscBoundaryPoint n R θ j‖ = R := by + simp [polydiscBoundaryPoint, abs_of_nonneg hR] + +theorem polydiscAngleMeasure_real_univ (n : ℕ) : + (polydiscAngleMeasure n).real univ = (2 * Real.pi) ^ n := by + simp [measureReal_def, polydiscAngleMeasure, Measure.pi_univ, circleAngleMeasure, + Real.volume_Ioc, ENNReal.toReal_ofReal Real.pi_pos.le] + +/-- Polydisc angular integral. -/ +noncomputable def polydiscAngularIntegral (n : ℕ) (R : ℝ) + (F : (Fin n → ℂ) → ℂ) : ℂ := + ((2 * Real.pi : ℂ) ^ n)⁻¹ * + ∫ θ, F (polydiscBoundaryPoint n R θ) ∂polydiscAngleMeasure n + +theorem polydiscAngularIntegral_norm_le (n : ℕ) {R M : ℝ} (hR : 0 ≤ R) + (F : (Fin n → ℂ) → ℂ) + (hF : ∀ z, (∀ j, ‖z j‖ = R) → ‖F z‖ ≤ M) : + ‖polydiscAngularIntegral n R F‖ ≤ M := by + have hb := norm_integral_le_of_norm_le_const + (μ := polydiscAngleMeasure n) + (Filter.Eventually.of_forall (fun θ => hF _ (norm_polydiscBoundaryPoint n hR θ))) + rw [polydiscAngleMeasure_real_univ] at hb + have hπ : 0 < 2 * Real.pi := Real.two_pi_pos + calc + _ = ((2 * Real.pi) ^ n)⁻¹ * + ‖∫ θ, F (polydiscBoundaryPoint n R θ) ∂polydiscAngleMeasure n‖ := by + simp only [polydiscAngularIntegral, norm_mul, norm_inv, norm_pow, + Complex.norm_ofNat, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos Real.pi_pos] + _ ≤ ((2 * Real.pi) ^ n)⁻¹ * (M * (2 * Real.pi) ^ n) := + mul_le_mul_of_nonneg_left hb (by positivity) + _ = M := by field_simp + +theorem integrable_polydiscBoundary (n : ℕ) {R M : ℝ} (hR : 0 ≤ R) + (F : (Fin n → ℂ) → ℂ) + (hcont : Continuous (fun θ => F (polydiscBoundaryPoint n R θ))) + (hF : ∀ z, (∀ j, ‖z j‖ = R) → ‖F z‖ ≤ M) : + Integrable (fun θ => F (polydiscBoundaryPoint n R θ)) (polydiscAngleMeasure n) := by + apply (integrable_const M).mono' hcont.aestronglyMeasurable + exact Filter.Eventually.of_forall (fun θ => hF _ (norm_polydiscBoundaryPoint n hR θ)) + +theorem hasSum_polydiscAngularIntegral {ι : Type*} [Countable ι] + (n : ℕ) {R : ℝ} (hR : 0 ≤ R) + (F : ι → (Fin n → ℂ) → ℂ) (G : (Fin n → ℂ) → ℂ) (b : ι → ℝ) + (hF : ∀ i, Continuous (fun θ => F i (polydiscBoundaryPoint n R θ))) + (hb : ∀ i z, (∀ j, ‖z j‖ = R) → ‖F i z‖ ≤ b i) + (hs : Summable b) + (hlim : ∀ z, (∀ j, ‖z j‖ = R) → HasSum (fun i => F i z) (G z)) : + HasSum (fun i => polydiscAngularIntegral n R (F i)) + (polydiscAngularIntegral n R G) := by + have hi := MeasureTheory.hasSum_integral_of_dominated_convergence + (μ := polydiscAngleMeasure n) (fun i (_ : Fin n → ℝ) => b i) + (fun i => (hF i).aestronglyMeasurable) + (fun i => Filter.Eventually.of_forall (fun θ => hb i _ + (norm_polydiscBoundaryPoint n hR θ))) + (Filter.Eventually.of_forall (fun _ => hs)) (integrable_const _) + (Filter.Eventually.of_forall (fun θ => hlim _ + (norm_polydiscBoundaryPoint n hR θ))) + exact hi.mul_left _ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularRecursion.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularRecursion.lean new file mode 100644 index 0000000000..7d8d2173a4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularRecursion.lean @@ -0,0 +1,134 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCauchyWeights +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCauchyFormula + +/-! +# The product-angle and iterated-contour definitions agree + +The same actual coefficients and the same actual Cauchy integral are +obtained from either order of integration. Uniform boundary bounds and +continuity discharge joint integrability at each Fubini step. +-/ + +@[expose] public section + +open Complex MeasureTheory Set +open scoped BigOperators + +namespace VacuumBellSeparation.Gaussian + +theorem angularPolydiscCoefficient_succ (n : ℕ) {R M : ℝ} + (hR : 0 < R) (F : (Fin (n + 1) → ℂ) → ℂ) + (hcont : Continuous (fun θ => F (polydiscBoundaryPoint (n + 1) R θ))) + (hF : ∀ z, (∀ j, ‖z j‖ = R) → ‖F z‖ ≤ M) (k : Fin (n + 1) → ℕ) : + angularPolydiscCoefficient (n + 1) R F k = (2 * Real.pi : ℂ)⁻¹ * + ∫ t, (circleMap 0 R t)⁻¹ ^ k 0 * angularPolydiscCoefficient n R + (fun z => F (Fin.cons (circleMap 0 R t) z)) (fun j => k j.succ) + ∂circleAngleMeasure := by + unfold angularPolydiscCoefficient + rw [polydiscAngularIntegral_succ n hR.le _ + (continuous_boundary_coefficient_weight (n + 1) hR F hcont k) + (M := M * ∏ j, R⁻¹ ^ k j) (by + intro z hz + simp only [norm_mul, norm_prod, norm_pow, norm_inv, hz] + exact mul_le_mul_of_nonneg_right (hF z hz) (by positivity))] + congr 1 + apply integral_congr_ae + filter_upwards with t + have heq (z : Fin n → ℂ) : + F (Fin.cons (circleMap 0 R t) z) * ∏ j : Fin (n + 1), + (Fin.cons (circleMap 0 R t) z j)⁻¹ ^ k j = + (circleMap 0 R t)⁻¹ ^ k 0 * + (F (Fin.cons (circleMap 0 R t) z) * ∏ j : Fin n, (z j)⁻¹ ^ k j.succ) := by + rw [Fin.prod_univ_succ] + simp only [Fin.cons_zero, Fin.cons_succ] + ring + simp only [heq, polydiscAngularIntegral_const_mul] + +theorem angularPolydiscCoefficient_eq (n : ℕ) {R M : ℝ} + (hR : 0 < R) (F : (Fin n → ℂ) → ℂ) + (hcont : Continuous (fun θ => F (polydiscBoundaryPoint n R θ))) + (hF : ∀ z, (∀ j, ‖z j‖ = R) → ‖F z‖ ≤ M) (k : Fin n → ℕ) : + angularPolydiscCoefficient n R F k = polydiscCoefficient n R F k := by + induction n with + | zero => simp [angularPolydiscCoefficient, polydiscAngularIntegral_zero, polydiscCoefficient] + | succ n ih => + rw [angularPolydiscCoefficient_succ n hR F hcont hF k, + polydiscCoefficient, circleCoefficient_eq_angle hR] + congr 1 + apply integral_congr_ae + filter_upwards with t + congr 1 + apply ih + · exact polydiscBoundaryPoint_slice_continuous n R t F hcont + · intro z hz + apply hF (Fin.cons (circleMap 0 R t) z) + intro j + refine Fin.cases ?_ (fun i => ?_) j + · simpa only [Fin.cons_zero, polydiscBoundaryPoint] + using norm_polydiscBoundaryPoint 1 hR.le (fun _ => t) 0 + · simpa only [Fin.cons_succ] using hz i + +theorem angularPolydiscCauchy_succ (n : ℕ) {R M : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) (F : (Fin (n + 1) → ℂ) → ℂ) + (hcont : Continuous (fun θ => F (polydiscBoundaryPoint (n + 1) R θ))) + (hF : ∀ z, (∀ j, ‖z j‖ = R) → ‖F z‖ ≤ M) + (x : Fin (n + 1) → ℂ) (hx : ∀ j, ‖x j‖ < R) : + angularPolydiscCauchy (n + 1) R F x = (2 * Real.pi : ℂ)⁻¹ * + ∫ t, (1 - x 0 / circleMap 0 R t)⁻¹ * angularPolydiscCauchy n R + (fun z => F (Fin.cons (circleMap 0 R t) z)) (fun j => x j.succ) + ∂circleAngleMeasure := by + unfold angularPolydiscCauchy + rw [polydiscAngularIntegral_succ n hR.le _ + (continuous_boundary_cauchy_weight (n + 1) hR F hcont x hx) + (boundary_cauchy_weight_norm_le (n + 1) hR hM F hF x hx)] + congr 1 + apply integral_congr_ae + filter_upwards with t + have heq (z : Fin n → ℂ) : + F (Fin.cons (circleMap 0 R t) z) * ∏ j : Fin (n + 1), + (1 - x j / (Fin.cons (circleMap 0 R t) z : Fin (n + 1) → ℂ) j)⁻¹ = + (1 - x 0 / circleMap 0 R t)⁻¹ * + (F (Fin.cons (circleMap 0 R t) z) * ∏ j : Fin n, (1 - x j.succ / z j)⁻¹) := by + rw [Fin.prod_univ_succ] + simp only [Fin.cons_zero, Fin.cons_succ] + ring + simp only [heq, polydiscAngularIntegral_const_mul] + +theorem angularPolydiscCauchy_eq (n : ℕ) {R M : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) (F : (Fin n → ℂ) → ℂ) + (hcont : Continuous (fun θ => F (polydiscBoundaryPoint n R θ))) + (hF : ∀ z, (∀ j, ‖z j‖ = R) → ‖F z‖ ≤ M) + (x : Fin n → ℂ) (hx : ∀ j, ‖x j‖ < R) : + angularPolydiscCauchy n R F x = polydiscCauchyTransform n R F x := by + induction n with + | zero => simp [angularPolydiscCauchy, polydiscAngularIntegral_zero, polydiscCauchyTransform] + | succ n ih => + rw [angularPolydiscCauchy_succ n hR hM F hcont hF x hx] + change _ = (2 * Real.pi * I : ℂ)⁻¹ * ∮ z in C(0, R), + (z - x 0)⁻¹ * polydiscCauchyTransform n R + (fun w => F (Fin.cons z w)) (fun j => x j.succ) + rw [normalized_circleCauchy_eq_angle hR _ _ (hx 0)] + congr 1 + apply integral_congr_ae + filter_upwards with t + congr 1 + apply ih + · exact polydiscBoundaryPoint_slice_continuous n R t F hcont + · intro z hz + apply hF (Fin.cons (circleMap 0 R t) z) + intro j + refine Fin.cases ?_ (fun i => ?_) j + · simpa only [Fin.cons_zero, polydiscBoundaryPoint] + using norm_polydiscBoundaryPoint 1 hR.le (fun _ => t) 0 + · simpa only [Fin.cons_succ] using hz i + · exact fun j => hx j.succ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularSeries.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularSeries.lean new file mode 100644 index 0000000000..c59cf4f3d5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscAngularSeries.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscAngularIntegral +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteComplexProductSeries + +/-! +# Actual geometric expansion inside the product-angle integral + +These coefficients are one product-angle integral. The resulting series +converges to the actual product Cauchy integral. Identification with the +iterated coefficients and the original holomorphic function is supplied +by the separate Fubini and repeated-Cauchy steps. +-/ + +@[expose] public section + +open Complex MeasureTheory Set +open scoped BigOperators + +namespace VacuumBellSeparation.Gaussian + +/-- Angular polydisc coefficient given by `polydiscAngularIntegral n R (fun z => F z * ∏ j, (z j)⁻¹ +^ k j)`. -/ +noncomputable def angularPolydiscCoefficient (n : ℕ) (R : ℝ) + (F : (Fin n → ℂ) → ℂ) (k : Fin n → ℕ) : ℂ := + polydiscAngularIntegral n R (fun z => F z * ∏ j, (z j)⁻¹ ^ k j) + +/-- Angular polydisc Cauchy given by `polydiscAngularIntegral n R (fun z => F z * ∏ j, (1 - x j / z +j)⁻¹)`. -/ +noncomputable def angularPolydiscCauchy (n : ℕ) (R : ℝ) + (F : (Fin n → ℂ) → ℂ) (x : Fin n → ℂ) : ℂ := + polydiscAngularIntegral n R (fun z => F z * ∏ j, (1 - x j / z j)⁻¹) + +theorem angularPolydiscCoefficient_norm_le (n : ℕ) {R M : ℝ} + (hR : 0 < R) (F : (Fin n → ℂ) → ℂ) + (hF : ∀ z, (∀ j, ‖z j‖ = R) → ‖F z‖ ≤ M) (k : Fin n → ℕ) : + ‖angularPolydiscCoefficient n R F k‖ ≤ M * ∏ j, R⁻¹ ^ k j := by + apply polydiscAngularIntegral_norm_le n hR.le + intro z hz + simp only [norm_mul, norm_prod, norm_pow, norm_inv, hz] + exact mul_le_mul_of_nonneg_right (hF z hz) (by positivity) + +theorem angularPolydiscCoefficient_monomial (n : ℕ) (R : ℝ) + (F : (Fin n → ℂ) → ℂ) (x : Fin n → ℂ) (k : Fin n → ℕ) : + polydiscAngularIntegral n R (fun z => F z * ∏ j, (x j / z j) ^ k j) = + angularPolydiscCoefficient n R F k * ∏ j, x j ^ k j := by + have hp (z : Fin n → ℂ) : + F z * ∏ j, (x j / z j) ^ k j = + (F z * ∏ j, (z j)⁻¹ ^ k j) * ∏ j, x j ^ k j := by + simp only [div_eq_mul_inv, mul_pow, Finset.prod_mul_distrib] + ring + simp only [polydiscAngularIntegral, angularPolydiscCoefficient, hp, + integral_mul_const] + ring + +theorem hasSum_angularPolydiscCoefficient (n : ℕ) {R M : ℝ} + (hR : 0 < R) (F : (Fin n → ℂ) → ℂ) + (hcont : Continuous (fun θ => F (polydiscBoundaryPoint n R θ))) + (hF : ∀ z, (∀ j, ‖z j‖ = R) → ‖F z‖ ≤ M) + (x : Fin n → ℂ) (hx : ∀ j, ‖x j‖ < R) : + HasSum (fun k : Fin n → ℕ => angularPolydiscCoefficient n R F k * ∏ j, x j ^ k j) + (angularPolydiscCauchy n R F x) := by + let b : (Fin n → ℕ) → ℝ := fun k => M * ∏ j, (‖x j‖ / R) ^ k j + have hq (j : Fin n) : 0 ≤ ‖x j‖ / R ∧ ‖x j‖ / R < 1 := + ⟨by positivity, (div_lt_one hR).mpr (hx j)⟩ + have hb : Summable b := + (hasSum_fin_product_nonneg n (fun j k => (‖x j‖ / R) ^ k) + (fun j => (1 - ‖x j‖ / R)⁻¹) (fun _ _ => by positivity) + (fun j => hasSum_geometric_of_lt_one (hq j).1 (hq j).2)).summable.mul_left M + have hseries := hasSum_polydiscAngularIntegral n hR.le + (fun k z => F z * ∏ j, (x j / z j) ^ k j) + (fun z => F z * ∏ j, (1 - x j / z j)⁻¹) b + (fun k => ?_) (fun k z hz => ?_) hb (fun z hz => ?_) + · simpa only [angularPolydiscCoefficient_monomial, angularPolydiscCauchy] using hseries + · apply hcont.mul + apply continuous_finsetProd + intro j _ + apply Continuous.pow + apply continuous_const.div + · exact (continuous_apply j).comp (continuous_polydiscBoundaryPoint n R) + · intro θ + exact norm_ne_zero_iff.mp (by rw [norm_polydiscBoundaryPoint n hR.le]; exact hR.ne') + · dsimp only [b] + simp only [norm_mul, norm_prod, norm_pow, norm_div, hz] + exact mul_le_mul_of_nonneg_right (hF z hz) (by positivity) + · have hgeom (j : Fin n) : ‖x j / z j‖ < 1 := by + rw [norm_div, hz j] + exact (hq j).2 + have hs := hasSum_fin_complex_product n (fun j k => (x j / z j) ^ k) + (fun j => (1 - x j / z j)⁻¹) + (fun j => by simpa only [norm_pow] using + summable_geometric_of_lt_one (norm_nonneg (x j / z j)) (hgeom j)) + (fun j => hasSum_geometric_of_norm_lt_one (hgeom j)) + exact hs.mul_left (F z) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCauchyCoefficients.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCauchyCoefficients.lean new file mode 100644 index 0000000000..40b9c54ebd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCauchyCoefficients.lean @@ -0,0 +1,94 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCoefficientDefs +public import Mathlib.Analysis.Complex.CauchyIntegral + +/-! +# Actual iterated Cauchy coefficients + +The coefficients are normalized contour integrals, with one contour for +each coordinate. Their bounds retain the exact product of inverse radii. +The bound itself is valid for total integrals; reconstruction additionally +requires the analytic and convergence hypotheses proved separately. +-/ + +@[expose] public section + +open Complex MeasureTheory Set Metric +open scoped BigOperators + +namespace VacuumBellSeparation.Gaussian + + + +theorem circleCoefficient_norm_le {R M : ℝ} (hR : 0 < R) + (f : ℂ → ℂ) (hf : ∀ z, ‖z‖ = R → ‖f z‖ ≤ M) (k : ℕ) : + ‖circleCoefficient R f k‖ ≤ M * R⁻¹ ^ k := by + have hb : ∀ z ∈ sphere (0 : ℂ) R, + ‖z⁻¹ ^ k • z⁻¹ • f z‖ ≤ R⁻¹ ^ k * R⁻¹ * M := by + intro z hz + have hz' : ‖z‖ = R := by simpa only [mem_sphere_zero_iff_norm] using hz + simp only [norm_smul, norm_pow, norm_inv, hz'] + nlinarith [mul_le_mul_of_nonneg_left (hf z hz') + (show 0 ≤ R⁻¹ ^ k * R⁻¹ by positivity)] + have h := circleIntegral.norm_two_pi_i_inv_smul_integral_le_of_norm_le_const + hR.le hb + change ‖circleCoefficient R f k‖ ≤ R * (R⁻¹ ^ k * R⁻¹ * M) at h + calc + _ ≤ R * (R⁻¹ ^ k * R⁻¹ * M) := h + _ = M * R⁻¹ ^ k := by field_simp + +theorem circleCoefficient_power_apply (R : ℝ) (f : ℂ → ℂ) (k : ℕ) (w : ℂ) : + cauchyPowerSeries f 0 R k (fun _ => w) = circleCoefficient R f k * w ^ k := by + simp only [cauchyPowerSeries, ContinuousMultilinearMap.mkPiRing_apply, + Fin.prod_const, sub_zero, circleCoefficient, smul_eq_mul] + ring + +theorem hasSum_circleCoefficient {R : ℝ} {f : ℂ → ℂ} + (hf : DiffContOnCl ℂ f (ball 0 R)) {w : ℂ} (hw : ‖w‖ < R) : + HasSum (fun k : ℕ => circleCoefficient R f k * w ^ k) (f w) := by + have hR : 0 < R := (norm_nonneg w).trans_lt hw + have hc := (hf.continuousOn_ball.mono sphere_subset_closedBall).circleIntegrable hR.le + have hs := hasSum_cauchyPowerSeries_integral hc hw + rw [zero_add, hf.two_pi_i_inv_smul_circleIntegral_sub_inv_smul + (by simpa only [mem_ball_zero_iff] using hw)] at hs + simpa only [circleCoefficient_power_apply] using hs + + + + + +theorem polydiscCoefficient_norm_le (n : ℕ) {R M : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) (F : (Fin n → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc n R, ‖F z‖ ≤ M) (k : Fin n → ℕ) : + ‖polydiscCoefficient n R F k‖ ≤ M * ∏ j, R⁻¹ ^ k j := by + induction n with + | zero => + simpa only [polydiscCoefficient, Finset.univ_eq_empty, Finset.prod_empty, mul_one] + using hF Fin.elim0 (by intro j; exact Fin.elim0 j) + | succ n ih => + have htail : 0 ≤ M * ∏ j : Fin n, R⁻¹ ^ k j.succ := by positivity + have hbound : ∀ z : ℂ, ‖z‖ = R → + ‖polydiscCoefficient n R (fun w => F (Fin.cons z w)) + (fun j => k j.succ)‖ ≤ M * ∏ j : Fin n, R⁻¹ ^ k j.succ := by + intro z hz + apply ih + intro w hw + apply hF (Fin.cons z w) + intro j + refine Fin.cases ?_ (fun i => ?_) j + · simpa only [Fin.cons_zero] using hz.le + · simpa only [Fin.cons_succ] using hw i + have hc := circleCoefficient_norm_le hR + (fun z => polydiscCoefficient n R (fun w => F (Fin.cons z w)) + (fun j => k j.succ)) hbound (k 0) + simpa only [polydiscCoefficient, Fin.prod_univ_succ, mul_left_comm, + mul_assoc, mul_comm] using hc + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCauchyFormula.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCauchyFormula.lean new file mode 100644 index 0000000000..285b6c70e9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCauchyFormula.lean @@ -0,0 +1,96 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCauchyCoefficients + +/-! +# Repeated Cauchy formula on the actual closed polydisc + +All frozen coordinates may lie on the boundary. Ambient differentiability +at each point of the closed polydisc supplies every one-variable slice; +the repeated formula follows without differentiating an integral. +-/ + +@[expose] public section + +open Complex MeasureTheory Set Metric + +namespace VacuumBellSeparation.Gaussian + +/-- The iterated Cauchy integral over the coordinate circles of a complex polydisc. -/ +noncomputable def polydiscCauchyTransform : + (n : ℕ) → ℝ → ((Fin n → ℂ) → ℂ) → (Fin n → ℂ) → ℂ + | 0, _, F, _ => F Fin.elim0 + | n + 1, R, F, x => (2 * Real.pi * I : ℂ)⁻¹ • + ∮ z in C(0, R), (z - x 0)⁻¹ • polydiscCauchyTransform n R + (fun w => F (Fin.cons z w)) (fun j => x j.succ) + +theorem coordinateClosedPolydisc_cons {n : ℕ} {R : ℝ} {z : ℂ} {w : Fin n → ℂ} + (hz : ‖z‖ ≤ R) (hw : w ∈ coordinateClosedPolydisc n R) : + Fin.cons z w ∈ coordinateClosedPolydisc (n + 1) R := by + intro j + refine Fin.cases ?_ (fun i => ?_) j + · simpa only [Fin.cons_zero] using hz + · simpa only [Fin.cons_succ] using hw i + +theorem polydisc_slice_diffContOnCl {n : ℕ} {R : ℝ} + (F : (Fin (n + 1) → ℂ) → ℂ) + (hF : ∀ x ∈ coordinateClosedPolydisc (n + 1) R, DifferentiableAt ℂ F x) + (w : Fin n → ℂ) (hw : w ∈ coordinateClosedPolydisc n R) : + DiffContOnCl ℂ (fun z => F (Fin.cons z w)) (ball 0 R) := by + have hd : DifferentiableOn ℂ (fun z => F (Fin.cons z w)) (closedBall 0 R) := by + intro z hz + apply DifferentiableAt.differentiableWithinAt + apply (hF (Fin.cons z w) (coordinateClosedPolydisc_cons + (by simpa only [mem_closedBall_zero_iff] using hz) hw)).comp z + apply differentiableAt_pi.mpr + intro j + refine Fin.cases ?_ (fun i => ?_) j + · change DifferentiableAt ℂ (fun ζ : ℂ => ζ) z + exact differentiableAt_id + · simpa only [Fin.cons_succ] using (differentiableAt_const (c := w i) : + DifferentiableAt ℂ (fun _ : ℂ => w i) z) + exact (hd.mono closure_ball_subset_closedBall).diffContOnCl + +theorem polydiscCauchyTransform_eq (n : ℕ) {R : ℝ} (hR : 0 < R) + (F : (Fin n → ℂ) → ℂ) + (hF : ∀ x ∈ coordinateClosedPolydisc n R, DifferentiableAt ℂ F x) + (x : Fin n → ℂ) (hx : ∀ j, ‖x j‖ < R) : + polydiscCauchyTransform n R F x = F x := by + induction n with + | zero => + change F Fin.elim0 = F x + congr 1 + funext j + exact Fin.elim0 j + | succ n ih => + have htail (z : ℂ) (hz : ‖z‖ = R) : + polydiscCauchyTransform n R (fun w => F (Fin.cons z w)) + (fun j => x j.succ) = F (Fin.cons z (fun j => x j.succ)) := by + apply ih + · intro w hw + apply (hF (Fin.cons z w) (coordinateClosedPolydisc_cons hz.le hw)).comp w + apply differentiableAt_pi.mpr + intro j + refine Fin.cases ?_ (fun i => ?_) j + · simpa only [Fin.cons_zero] using (differentiableAt_const (c := z) : + DifferentiableAt ℂ (fun _ : Fin n → ℂ => z) w) + · simpa only [Fin.cons_succ] using (differentiableAt_apply i w : + DifferentiableAt ℂ (fun w : Fin n → ℂ => w i) w) + · exact fun j => hx j.succ + change (2 * Real.pi * I : ℂ)⁻¹ • _ = F x + rw [circleIntegral.integral_congr hR.le (fun z hz => by + rw [htail z (by simpa only [mem_sphere_zero_iff_norm] using hz)])] + have hs := polydisc_slice_diffContOnCl F hF (fun j => x j.succ) + (fun j => (hx j.succ).le) + rw [hs.two_pi_i_inv_smul_circleIntegral_sub_inv_smul + (by simpa only [mem_ball_zero_iff] using hx 0)] + congr 1 + exact Fin.cons_self_tail x + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCauchyWeights.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCauchyWeights.lean new file mode 100644 index 0000000000..4e4034fa36 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCauchyWeights.lean @@ -0,0 +1,107 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscAngularSeries +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscAngularFubini + +/-! +# Actual boundary continuity and geometric Cauchy weights +-/ + +@[expose] public section + +open Complex MeasureTheory Set +open scoped BigOperators + +namespace VacuumBellSeparation.Gaussian + +theorem polydiscAngularIntegral_const_mul (n : ℕ) (R : ℝ) (c : ℂ) + (F : (Fin n → ℂ) → ℂ) : + polydiscAngularIntegral n R (fun z => c * F z) = + c * polydiscAngularIntegral n R F := by + simp only [polydiscAngularIntegral, integral_const_mul] + ring + +theorem polydiscBoundaryPoint_cons (n : ℕ) (R t : ℝ) (θ : Fin n → ℝ) : + polydiscBoundaryPoint (n + 1) R (Fin.cons t θ) = + Fin.cons (circleMap 0 R t) (polydiscBoundaryPoint n R θ) := by + funext j + refine Fin.cases ?_ (fun i => ?_) j <;> rfl + +theorem polydiscBoundaryPoint_slice_continuous (n : ℕ) (R t : ℝ) + (F : (Fin (n + 1) → ℂ) → ℂ) + (hF : Continuous (fun θ => F (polydiscBoundaryPoint (n + 1) R θ))) : + Continuous (fun θ => F (Fin.cons (circleMap 0 R t) (polydiscBoundaryPoint n R θ))) := by + have hcons : Continuous (fun θ : Fin n → ℝ => (Fin.cons t θ : Fin (n + 1) → ℝ)) := by + apply continuous_pi + intro j + refine Fin.cases ?_ (fun i => ?_) j <;> fun_prop + simpa only [Function.comp_def, polydiscBoundaryPoint_cons] using hF.comp hcons + +theorem continuous_boundary_coefficient_weight (n : ℕ) {R : ℝ} (hR : 0 < R) + (F : (Fin n → ℂ) → ℂ) + (hF : Continuous (fun θ => F (polydiscBoundaryPoint n R θ))) + (k : Fin n → ℕ) : + Continuous (fun θ => F (polydiscBoundaryPoint n R θ) * + ∏ j, (polydiscBoundaryPoint n R θ j)⁻¹ ^ k j) := by + apply hF.mul + apply continuous_finsetProd + intro j _ + apply Continuous.pow + apply Continuous.inv₀ + · exact (continuous_apply j).comp (continuous_polydiscBoundaryPoint n R) + · intro θ + exact norm_ne_zero_iff.mp (by rw [norm_polydiscBoundaryPoint n hR.le]; exact hR.ne') + +theorem cauchyWeight_ne_zero {R : ℝ} (hR : 0 < R) (x z : ℂ) + (hx : ‖x‖ < R) (hz : ‖z‖ = R) : 1 - x / z ≠ 0 := by + have hq : ‖x / z‖ < 1 := by rw [norm_div, hz]; exact (div_lt_one hR).mpr hx + intro heq + have heq' : x / z = 1 := (sub_eq_zero.mp heq).symm + rw [heq', norm_one] at hq + exact (lt_irrefl 1) hq + +theorem cauchyWeight_norm_le {R : ℝ} (hR : 0 < R) (x z : ℂ) + (hx : ‖x‖ < R) (hz : ‖z‖ = R) : + ‖(1 - x / z)⁻¹‖ ≤ (1 - ‖x‖ / R)⁻¹ := by + have hq : 0 < 1 - ‖x‖ / R := sub_pos.mpr ((div_lt_one hR).mpr hx) + have hlo : 1 - ‖x‖ / R ≤ ‖1 - x / z‖ := by + simpa only [norm_one, norm_div, hz] using norm_sub_norm_le (1 : ℂ) (x / z) + rw [norm_inv] + exact (inv_le_inv₀ (hq.trans_le hlo) hq).mpr hlo + +theorem continuous_boundary_cauchy_weight (n : ℕ) {R : ℝ} (hR : 0 < R) + (F : (Fin n → ℂ) → ℂ) + (hF : Continuous (fun θ => F (polydiscBoundaryPoint n R θ))) + (x : Fin n → ℂ) (hx : ∀ j, ‖x j‖ < R) : + Continuous (fun θ => F (polydiscBoundaryPoint n R θ) * + ∏ j, (1 - x j / polydiscBoundaryPoint n R θ j)⁻¹) := by + apply hF.mul + apply continuous_finsetProd + intro j _ + apply Continuous.inv₀ + · apply continuous_const.sub + apply continuous_const.div + · exact (continuous_apply j).comp (continuous_polydiscBoundaryPoint n R) + · intro θ + exact norm_ne_zero_iff.mp (by rw [norm_polydiscBoundaryPoint n hR.le]; exact hR.ne') + · intro θ + exact cauchyWeight_ne_zero hR _ _ (hx j) (norm_polydiscBoundaryPoint n hR.le θ j) + +theorem boundary_cauchy_weight_norm_le (n : ℕ) {R M : ℝ} (hR : 0 < R) (hM : 0 ≤ M) + (F : (Fin n → ℂ) → ℂ) + (hF : ∀ z, (∀ j, ‖z j‖ = R) → ‖F z‖ ≤ M) + (x : Fin n → ℂ) (hx : ∀ j, ‖x j‖ < R) + (z : Fin n → ℂ) (hz : ∀ j, ‖z j‖ = R) : + ‖F z * ∏ j, (1 - x j / z j)⁻¹‖ ≤ M * ∏ j, (1 - ‖x j‖ / R)⁻¹ := by + rw [norm_mul, norm_prod] + apply mul_le_mul (hF z hz) _ (Finset.prod_nonneg (fun _ _ => norm_nonneg _)) hM + apply Finset.prod_le_prod₀ (fun _ _ => norm_nonneg _) + exact fun j _ => cauchyWeight_norm_le hR _ _ (hx j) (hz j) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCoefficientConvergence.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCoefficientConvergence.lean new file mode 100644 index 0000000000..9c177b7fab --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCoefficientConvergence.lean @@ -0,0 +1,93 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCauchyCoefficients +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialSeriesConstants + +/-! +# Absolute convergence of the actual contour coefficient series + +These are the coefficients defined by iterated Cauchy integrals. A true +geometric majorant proves absolute convergence at every interior point +and the exact 2^n bound on the half-radius polydisc. Identifying the sum +with the original function is a separate reconstruction theorem. +-/ + +@[expose] public section + +open scoped BigOperators + +namespace VacuumBellSeparation.Gaussian + +theorem polydiscCoefficient_monomial_norm_le (n : ℕ) {R M : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) (F : (Fin n → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc n R, ‖F z‖ ≤ M) + (k : Fin n → ℕ) (x : Fin n → ℂ) : + ‖polydiscCoefficient n R F k * ∏ j, x j ^ k j‖ ≤ + M * ∏ j, (‖x j‖ / R) ^ k j := by + rw [norm_mul, norm_prod] + simp only [norm_pow] + calc + _ ≤ (M * ∏ j, R⁻¹ ^ k j) * ∏ j, ‖x j‖ ^ k j := + mul_le_mul_of_nonneg_right (polydiscCoefficient_norm_le n hR hM F hF k) + (Finset.prod_nonneg (fun _ _ => by positivity)) + _ = M * ∏ j, (‖x j‖ / R) ^ k j := by + rw [mul_assoc, ← Finset.prod_mul_distrib] + congr 1 + apply Finset.prod_congr rfl + intro j _ + rw [← mul_pow] + congr 1 + ring + +theorem summable_norm_polydiscCoefficient_monomial (n : ℕ) {R M : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) (F : (Fin n → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc n R, ‖F z‖ ≤ M) + (x : Fin n → ℂ) (hx : ∀ j, ‖x j‖ < R) : + Summable (fun k : Fin n → ℕ => + ‖polydiscCoefficient n R F k * ∏ j, x j ^ k j‖) := by + have hs := hasSum_fin_product_nonneg n + (fun j m => (‖x j‖ / R) ^ m) (fun j => (1 - ‖x j‖ / R)⁻¹) + (fun _ _ => by positivity) + (fun j => hasSum_geometric_of_lt_one (div_nonneg (norm_nonneg _) hR.le) + ((div_lt_one hR).mpr (hx j))) + exact (hs.summable.mul_left M).of_nonneg_of_le (fun _ => norm_nonneg _) + (fun k => polydiscCoefficient_monomial_norm_le n hR hM F hF k x) + +theorem polydiscCoefficient_half_monomial_norm_le (n : ℕ) {R M : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) (F : (Fin n → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc n R, ‖F z‖ ≤ M) + (x : Fin n → ℂ) (hx : ∀ j, ‖x j‖ ≤ R / 2) (k : Fin n → ℕ) : + ‖polydiscCoefficient n R F k * ∏ j, x j ^ k j‖ ≤ + M * (1 / 2 : ℝ) ^ (∑ j, k j) := by + apply (polydiscCoefficient_monomial_norm_le n hR hM F hF k x).trans + rw [← Finset.prod_pow_eq_pow_sum] + apply mul_le_mul_of_nonneg_left _ hM + apply Finset.prod_le_prod₀ + · intro j _ + positivity + · intro j _ + apply pow_le_pow_left₀ (by positivity) + exact (div_le_iff₀ hR).mpr (by simpa only [div_eq_mul_inv, one_mul, mul_comm] using hx j) + +theorem tsum_norm_polydiscCoefficient_half_le (n : ℕ) {R M : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) (F : (Fin n → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc n R, ‖F z‖ ≤ M) + (x : Fin n → ℂ) (hx : ∀ j, ‖x j‖ ≤ R / 2) : + (∑' k : Fin n → ℕ, ‖polydiscCoefficient n R F k * ∏ j, x j ^ k j‖) ≤ + M * 2 ^ n := by + have hx' : ∀ j, ‖x j‖ < R := fun j => (hx j).trans_lt (by linarith) + have hs := summable_norm_polydiscCoefficient_monomial n hR hM F hF x hx' + have hg := (hasSum_half_multiIndex n).mul_left M + calc + _ ≤ ∑' k : Fin n → ℕ, M * (1 / 2 : ℝ) ^ (∑ j, k j) := + hs.tsum_le_tsum (fun k => polydiscCoefficient_half_monomial_norm_le n hR hM F hF x hx k) + hg.summable + _ = M * 2 ^ n := hg.tsum_eq + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCoefficientDefs.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCoefficientDefs.lean new file mode 100644 index 0000000000..3fa761b078 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCoefficientDefs.lean @@ -0,0 +1,36 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Complex.CauchyIntegral + +/-! # Contour coefficients on polydiscs -/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Complex MeasureTheory Set Metric +open scoped BigOperators + +/-- Circle coefficient given by `(2 * Real.pi * I : ℂ)⁻¹ • ∮ z in C(0, R), z⁻¹ ^ k • z⁻¹ • f z`. -/ +noncomputable def circleCoefficient (R : ℝ) (f : ℂ → ℂ) (k : ℕ) : ℂ := + (2 * Real.pi * I : ℂ)⁻¹ • ∮ z in C(0, R), z⁻¹ ^ k • z⁻¹ • f z + +/-- An actual normalized contour in each of the finitely many coordinates. -/ +noncomputable def polydiscCoefficient : + (n : ℕ) → ℝ → ((Fin n → ℂ) → ℂ) → (Fin n → ℕ) → ℂ + | 0, _, F, _ => F Fin.elim0 + | n + 1, R, F, k => circleCoefficient R + (fun z => polydiscCoefficient n R (fun w => F (Fin.cons z w)) (fun j => k j.succ)) + (k 0) + +/-- Coordinate closed polydisc with membership specified by `{z | ∀ j, ‖z j‖ ≤ R}`. -/ +def coordinateClosedPolydisc (n : ℕ) (R : ℝ) : Set (Fin n → ℂ) := + {z | ∀ j, ‖z j‖ ≤ R} + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCoefficientLinearity.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCoefficientLinearity.lean new file mode 100644 index 0000000000..1e67e89d48 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscCoefficientLinearity.lean @@ -0,0 +1,54 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPolydiscCoefficientIntegral + +/-! +# Additivity of actual contour coefficients on continuous functions + +Continuity on the compact coordinate ball supplies the actual angular +integrability required by the Bochner additivity theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Metric Set +open scoped BigOperators + +theorem integrable_angularCoefficient_of_continuous (n : ℕ) {R : ℝ} (hR : 0 < R) + (F : (Fin n → ℂ) → ℂ) (hF : Continuous F) (k : Fin n → ℕ) : + Integrable (fun θ => F (polydiscBoundaryPoint n R θ) * + ∏ j, (polydiscBoundaryPoint n R θ j)⁻¹ ^ k j) (polydiscAngleMeasure n) := by + obtain ⟨M, hM⟩ := (isCompact_closedBall (0 : Fin n → ℂ) R).exists_bound_of_continuousOn + hF.continuousOn + apply (integrable_const (max M 0 * ∏ j, R⁻¹ ^ k j)).mono' + (continuous_boundary_coefficient_weight n hR F + (hF.comp (continuous_polydiscBoundaryPoint n R)) k).aestronglyMeasurable + refine Filter.Eventually.of_forall fun θ => ?_ + have hz : polydiscBoundaryPoint n R θ ∈ closedBall (0 : Fin n → ℂ) R := by + rw [mem_closedBall_zero_iff, pi_norm_le_iff_of_nonneg hR.le] + exact fun j => (norm_polydiscBoundaryPoint n hR.le θ j).le + simp only [norm_mul, norm_prod, norm_pow, norm_inv, norm_polydiscBoundaryPoint n hR.le] + exact mul_le_mul_of_nonneg_right ((hM _ hz).trans (le_max_left _ _)) (by positivity) + +theorem polydiscCoefficient_add_of_continuous (n : ℕ) {R : ℝ} (hR : 0 < R) + (F G : (Fin n → ℂ) → ℂ) (hF : Continuous F) (hG : Continuous G) + (k : Fin n → ℕ) : + polydiscCoefficient n R (fun z => F z + G z) k = + polydiscCoefficient n R F k + polydiscCoefficient n R G k := by + rw [polydiscCoefficient_eq_angular_of_continuous n hR (fun z => F z + G z) + (show Continuous (fun z => F z + G z) from hF.add hG), + polydiscCoefficient_eq_angular_of_continuous n hR _ hF, + polydiscCoefficient_eq_angular_of_continuous n hR _ hG] + simp only [angularPolydiscCoefficient, polydiscAngularIntegral, add_mul] + rw [integral_add (integrable_angularCoefficient_of_continuous n hR F hF k) + (integrable_angularCoefficient_of_continuous n hR G hG k), mul_add] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscExponentialCoefficients.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscExponentialCoefficients.lean new file mode 100644 index 0000000000..77a140e381 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscExponentialCoefficients.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCauchyCoefficients +public import Mathlib.Analysis.SpecialFunctions.ExpDeriv + +/-! +# Actual contour coefficients of the multivariate exponential kernel + +The coefficients are evaluated from the genuine Cauchy derivative +formula and the explicit iterated derivative of exp(c*z). +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Complex MeasureTheory +open scoped BigOperators + +theorem circleCoefficient_const_mul (R : ℝ) (a : ℂ) (f : ℂ → ℂ) (k : ℕ) : + circleCoefficient R (fun z => a * f z) k = a * circleCoefficient R f k := by + have he (z : ℂ) : z⁻¹ ^ k • z⁻¹ • (a * f z) = a * (z⁻¹ ^ k • z⁻¹ • f z) := by + simp only [smul_eq_mul] + ring + unfold circleCoefficient + simp_rw [he] + rw [circleIntegral.integral_const_mul] + simp only [smul_eq_mul] + ring + +theorem circleCoefficient_mul_const (R : ℝ) (f : ℂ → ℂ) (a : ℂ) (k : ℕ) : + circleCoefficient R (fun z => f z * a) k = circleCoefficient R f k * a := by + simp_rw [mul_comm (f _) a] + rw [circleCoefficient_const_mul, mul_comm] + +theorem polydiscCoefficient_const_mul (n : ℕ) (R : ℝ) (a : ℂ) + (F : (Fin n → ℂ) → ℂ) (k : Fin n → ℕ) : + polydiscCoefficient n R (fun z => a * F z) k = a * polydiscCoefficient n R F k := by + induction n with + | zero => rfl + | succ n ih => + simp only [polydiscCoefficient, ih, circleCoefficient_const_mul] + +theorem circleCoefficient_exp {R : ℝ} (hR : 0 < R) (c : ℂ) (k : ℕ) : + circleCoefficient R (fun z => Complex.exp (c * z)) k = c ^ k / (k.factorial : ℂ) := by + have hf : Differentiable ℂ (fun z : ℂ => Complex.exp (c * z)) := by fun_prop + have h := hf.diffContOnCl.circleIntegral_one_div_sub_center_pow_smul (c := (0 : ℂ)) hR k + have he (z : ℂ) : z⁻¹ ^ k • z⁻¹ • Complex.exp (c * z) = + (1 / (z - 0) ^ (k + 1)) • Complex.exp (c * z) := by + simp only [sub_zero, one_div, pow_succ, mul_inv_rev, ← inv_pow, smul_eq_mul] + ring + rw [circleCoefficient] + simp_rw [he] + rw [h, iteratedDeriv_cexp_const_mul] + simp only [mul_zero, Complex.exp_zero, mul_one, smul_eq_mul] + field_simp [Complex.two_pi_I_ne_zero, Nat.cast_ne_zero.mpr k.factorial_ne_zero] + +theorem polydiscCoefficient_exp_sum (n : ℕ) {R : ℝ} (hR : 0 < R) + (c : Fin n → ℂ) (k : Fin n → ℕ) : + polydiscCoefficient n R (fun z => Complex.exp (∑ j, c j * z j)) k = + ∏ j, c j ^ k j / ((k j).factorial : ℂ) := by + induction n with + | zero => simp [polydiscCoefficient] + | succ n ih => + have he (z : ℂ) (w : Fin n → ℂ) : + Complex.exp (∑ j : Fin (n + 1), c j * (Fin.cons z w : Fin (n + 1) → ℂ) j) = + Complex.exp (c 0 * z) * Complex.exp (∑ j : Fin n, c j.succ * w j) := by + rw [Fin.sum_univ_succ, Complex.exp_add] + simp only [Fin.cons_zero, Fin.cons_succ] + simp only [polydiscCoefficient, he, polydiscCoefficient_const_mul, ih] + rw [circleCoefficient_mul_const, circleCoefficient_exp hR, Fin.prod_univ_succ] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PolydiscReconstruction.lean b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscReconstruction.lean new file mode 100644 index 0000000000..2a2c9cdc11 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PolydiscReconstruction.lean @@ -0,0 +1,63 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscAngularRecursion +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCoefficientConvergence + +/-! +# Full reconstruction by the actual multivariable Cauchy coefficients + +The conclusion is a HasSum over every natural-number coordinate tuple. +Joint integrability and geometric dominated convergence establish the +product integral series; actual Fubini identifies its coefficients with +the nested contours, and repeated Cauchy identifies its sum with F. +-/ + +@[expose] public section + +open Complex Set + +namespace VacuumBellSeparation.Gaussian + +theorem continuous_boundary_of_polydisc_differentiable (n : ℕ) {R : ℝ} + (hR : 0 ≤ R) (F : (Fin n → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc n R, DifferentiableAt ℂ F z) : + Continuous (fun θ => F (polydiscBoundaryPoint n R θ)) := by + have hc : ContinuousOn F (coordinateClosedPolydisc n R) := + fun z hz => (hF z hz).continuousAt.continuousWithinAt + apply hc.comp_continuous (continuous_polydiscBoundaryPoint n R) + intro θ j + exact (norm_polydiscBoundaryPoint n hR θ j).le + +theorem hasSum_polydiscCoefficient (n : ℕ) {R M : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) (F : (Fin n → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc n R, DifferentiableAt ℂ F z) + (hbound : ∀ z ∈ coordinateClosedPolydisc n R, ‖F z‖ ≤ M) + (x : Fin n → ℂ) (hx : ∀ j, ‖x j‖ < R) : + HasSum (fun k : Fin n → ℕ => polydiscCoefficient n R F k * ∏ j, x j ^ k j) (F x) := by + have hc := continuous_boundary_of_polydisc_differentiable n hR.le F hF + have hb : ∀ z, (∀ j, ‖z j‖ = R) → ‖F z‖ ≤ M := + fun z hz => hbound z (fun j => (hz j).le) + have hs := hasSum_angularPolydiscCoefficient n hR F hc hb x hx + simp only [angularPolydiscCoefficient_eq n hR F hc hb, + angularPolydiscCauchy_eq n hR hM F hc hb x hx, + polydiscCauchyTransform_eq n hR F hF x hx] at hs + exact hs + +/-- Actual reconstruction and absolute convergence use the same coefficients. -/ +theorem polydiscCoefficient_expansion (n : ℕ) {R M : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) (F : (Fin n → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc n R, DifferentiableAt ℂ F z) + (hbound : ∀ z ∈ coordinateClosedPolydisc n R, ‖F z‖ ≤ M) + (x : Fin n → ℂ) (hx : ∀ j, ‖x j‖ < R) : + HasSum (fun k : Fin n → ℕ => polydiscCoefficient n R F k * ∏ j, x j ^ k j) (F x) ∧ + Summable (fun k : Fin n → ℕ => ‖polydiscCoefficient n R F k * ∏ j, x j ^ k j‖) := + ⟨hasSum_polydiscCoefficient n hR hM F hF hbound x hx, + summable_norm_polydiscCoefficient_monomial n hR hM F hbound x hx⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveDensityState.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveDensityState.lean new file mode 100644 index 0000000000..c4b0f22cb6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveDensityState.lean @@ -0,0 +1,109 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FamilyExpectation +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalSandwichCriterion + +/-! +# Complex expectations of an arbitrary actual positive trace-class density + +For an actual positive trace-class operator A, the square-root family +`sqrt(A)e_i` defines an absolutely convergent complex expectation on every +bounded operator. Positive inputs agree with the actual positive trace of +the square-root sandwich. Trace-one operators give actual bundled states. +The Hilbert basis is explicit; basis independence is a separate theorem. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ComplexOrder + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem summable_sqrt_basis_norm_sq (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) : + Summable fun i => ‖CFC.sqrt A (b i)‖ ^ 2 := by + simpa only [sqrt_norm_sq_eq_diagonal hA.1] using hA.summable_diagonal b + +theorem tsum_sqrt_basis_norm_sq (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) : + (∑' i, ‖CFC.sqrt A (b i)‖ ^ 2) = (positiveTrace A).toReal := by + have hn (i : ι) : 0 ≤ (inner ℂ (b i) (A (b i))).re := + (nonneg_iff_isPositive.mp hA.1).re_inner_nonneg_right _ + rw [positiveTrace_eq_tsum_diagonal b hA.1, + ← ENNReal.ofReal_tsum_of_nonneg hn (hA.summable_diagonal b), + ENNReal.toReal_ofReal (tsum_nonneg hn)] + exact tsum_congr fun i => sqrt_norm_sq_eq_diagonal hA.1 (b i) + +/-- Density expectation given by `familyExpectation (fun i => CFC.sqrt A (b i)) B`. -/ +def densityExpectation (b : HilbertBasis ι ℂ E) (A B : E →L[ℂ] E) : ℂ := + familyExpectation (fun i => CFC.sqrt A (b i)) B + +/-- Density expectation continuous linear map of type `(E →L[ℂ] E) →L[ℂ] ℂ`. -/ +def densityExpectationCLM (b : HilbertBasis ι ℂ E) {A : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) : (E →L[ℂ] E) →L[ℂ] ℂ := + familyExpectationCLM _ (summable_sqrt_basis_norm_sq b hA) + +theorem norm_densityExpectation_le (b : HilbertBasis ι ℂ E) {A : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) (B : E →L[ℂ] E) : + ‖densityExpectation b A B‖ ≤ (positiveTrace A).toReal * ‖B‖ := by + simpa only [densityExpectation, tsum_sqrt_basis_norm_sq b hA] using + norm_familyExpectation_le _ (summable_sqrt_basis_norm_sq b hA) B + +theorem densityExpectation_one (b : HilbertBasis ι ℂ E) {A : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) : densityExpectation b A 1 = ((positiveTrace A).toReal : ℂ) := by + rw [densityExpectation, familyExpectation_one, tsum_sqrt_basis_norm_sq b hA] + +theorem densityExpectation_nonneg (b : HilbertBasis ι ℂ E) (A : E →L[ℂ] E) + {B : E →L[ℂ] E} (hB : 0 ≤ B) : 0 ≤ densityExpectation b A B := + familyExpectation_nonneg _ hB + +theorem positiveTrace_density_sandwich (b : HilbertBasis ι ℂ E) {A : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) {B : E →L[ℂ] E} (hB : 0 ≤ B) : + positiveTrace (CFC.sqrt A * B * CFC.sqrt A) = ENNReal.ofReal (densityExpectation b A B).re := by + let S := CFC.sqrt A + have hS : IsSelfAdjoint S := (CFC.sqrt_nonneg A).isSelfAdjoint + have hdiag (i : ι) : inner ℂ (b i) ((S * B * S) (b i)) = + inner ℂ (S (b i)) (B (S (b i))) := by + rw [mul_apply_eq_comp, mul_apply_eq_comp, ← S.adjoint_inner_left, hS.adjoint_eq] + rw [positiveTrace_eq_tsum_diagonal b (conjugate_nonneg_of_nonneg hB (CFC.sqrt_nonneg A))] + change (∑' i, ENNReal.ofReal (inner ℂ (b i) ((S * B * S) (b i))).re) = _ + simp_rw [hdiag] + have hn (i : ι) : 0 ≤ (inner ℂ (S (b i)) (B (S (b i)))).re := + (nonneg_iff_isPositive.mp hB).re_inner_nonneg_right _ + have hs := Complex.hasSum_re + (summable_familyExpectation_terms (fun i => S (b i)) + (summable_sqrt_basis_norm_sq b hA) B).hasSum + rw [← ENNReal.ofReal_tsum_of_nonneg hn hs.summable, hs.tsum_eq] + rfl + +theorem density_sandwich_isPositiveTraceClass (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) {B : E →L[ℂ] E} (hB : 0 ≤ B) : + IsPositiveTraceClass (CFC.sqrt A * B * CFC.sqrt A) := by + refine ⟨conjugate_nonneg_of_nonneg hB (CFC.sqrt_nonneg A), ?_⟩ + rw [positiveTrace_density_sandwich b hA hB] + exact ENNReal.ofReal_lt_top + +/-- The state whose expectation is given by the trace pairing with a positive trace-one density. -/ +def positiveDensityState (b : HilbertBasis ι ℂ E) {A : E →L[ℂ] E} + (hA : 0 ≤ A) (htrace : positiveTrace A = 1) : State E := + familyState (fun i => CFC.sqrt A (b i)) + (summable_sqrt_basis_norm_sq b ⟨hA, by rw [htrace]; exact ENNReal.one_lt_top⟩) + (by rw [tsum_sqrt_basis_norm_sq b ⟨hA, by rw [htrace]; exact ENNReal.one_lt_top⟩, + htrace, ENNReal.toReal_one]) + +@[simp] theorem positiveDensityState_apply (b : HilbertBasis ι ℂ E) {A : E →L[ℂ] E} + (hA : 0 ≤ A) (htrace : positiveTrace A = 1) (B : E →L[ℂ] E) : + positiveDensityState b hA htrace B = densityExpectation b A B := rfl + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveEffectExpectationDefs.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveEffectExpectationDefs.lean new file mode 100644 index 0000000000..ff08addec5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveEffectExpectationDefs.lean @@ -0,0 +1,27 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTrace + +/-! # Trace expectation of a positive effect -/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Positive effect expectation given by `positiveTrace (CFC.sqrt M * ρ * CFC.sqrt M)`. -/ +def positiveEffectExpectation (ρ M : E →L[ℂ] E) : ℝ≥0∞ := + positiveTrace (CFC.sqrt M * ρ * CFC.sqrt M) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveMatrixComplexPowers.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveMatrixComplexPowers.lean new file mode 100644 index 0000000000..f7ddf94e41 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveMatrixComplexPowers.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixFunctionalCalculus +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteUnitaryTraceHolder +public import Mathlib.Analysis.Calculus.FDeriv.Mul +public import Mathlib.Analysis.SpecialFunctions.ExpDeriv + +/-! +# Genuine entire complex powers of a strictly positive finite matrix + +The actual spectral logarithm defines an entire complex exponent family. +On the real axis it equals the existing CFC real power, and imaginary +powers are actual unitaries. Strict positive definiteness is explicit; +this module does not totalize imaginary powers at a zero eigenvalue. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexConjugate ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Positive matrix complex power. -/ +def positiveMatrixComplexPower {A : Matrix ι ι ℂ} (hA : A.PosDef) (z : ℂ) : Matrix ι ι ℂ := + Unitary.conjStarAlgAut ℂ (Matrix ι ι ℂ) hA.isHermitian.eigenvectorUnitary + (Matrix.diagonal (fun i => Complex.exp (z * (Real.log (hA.isHermitian.eigenvalues i) : ℂ)))) + +@[simp] theorem positiveMatrixComplexPower_zero {A : Matrix ι ι ℂ} (hA : A.PosDef) : + positiveMatrixComplexPower hA 0 = 1 := by + simp only [positiveMatrixComplexPower, zero_mul, Complex.exp_zero, Matrix.diagonal_one, map_one] + +theorem positiveMatrixComplexPower_add {A : Matrix ι ι ℂ} (hA : A.PosDef) (z w : ℂ) : + positiveMatrixComplexPower hA (z + w) = + positiveMatrixComplexPower hA z * positiveMatrixComplexPower hA w := by + simp only [positiveMatrixComplexPower, add_mul, Complex.exp_add, + ← Matrix.diagonal_mul_diagonal, map_mul] + +theorem positiveMatrixComplexPower_star {A : Matrix ι ι ℂ} (hA : A.PosDef) (z : ℂ) : + star (positiveMatrixComplexPower hA z) = positiveMatrixComplexPower hA (conj z) := by + rw [positiveMatrixComplexPower, ← map_star] + congr 1 + ext i j + by_cases hij : i = j + · subst j + simp only [Matrix.star_eq_conjTranspose, Matrix.diagonal_conjTranspose, + Matrix.diagonal_apply_eq, ← starRingEnd_apply, Pi.conj_apply, + ← Complex.exp_conj, map_mul, + Complex.conj_ofReal] + · simp only [Matrix.star_eq_conjTranspose, Matrix.diagonal_conjTranspose, + Matrix.diagonal_apply_ne _ hij] + +theorem positiveMatrixComplexPower_real {A : Matrix ι ι ℂ} (hA : A.PosDef) (t : ℝ) : + positiveMatrixComplexPower hA (t : ℂ) = A ^ t := by + rw [CFC.rpow_eq_cfc_real hA.posSemidef.nonneg, hA.isHermitian.cfc_eq, + Matrix.IsHermitian.cfc] + unfold positiveMatrixComplexPower + congr 1 + apply congrArg Matrix.diagonal + funext i + simp only [Function.comp_apply, RCLike.ofReal_eq_complex_ofReal] + rw [Real.rpow_def_of_pos (hA.eigenvalues_pos i), Complex.ofReal_exp, Complex.ofReal_mul] + congr 1 + ring + +@[simp] theorem positiveMatrixComplexPower_one {A : Matrix ι ι ℂ} (hA : A.PosDef) : + positiveMatrixComplexPower hA 1 = A := by + have h := positiveMatrixComplexPower_real hA 1 + simpa only [Complex.ofReal_one, CFC.rpow_one A hA.posSemidef.nonneg] using h + +/-- Imaginary power of a positive matrix, defined by the functional calculus. -/ +def positiveMatrixImaginaryPower {A : Matrix ι ι ℂ} (hA : A.PosDef) (t : ℝ) : + unitary (Matrix ι ι ℂ) := + ⟨positiveMatrixComplexPower hA ((t : ℂ) * Complex.I), by + constructor + · rw [positiveMatrixComplexPower_star, ← positiveMatrixComplexPower_add] + simp only [map_mul, Complex.conj_ofReal, Complex.conj_I, mul_neg, + neg_add_cancel, positiveMatrixComplexPower_zero] + · rw [positiveMatrixComplexPower_star, ← positiveMatrixComplexPower_add] + simp only [map_mul, Complex.conj_ofReal, Complex.conj_I, mul_neg, + add_neg_cancel, positiveMatrixComplexPower_zero]⟩ + +@[simp] theorem positiveMatrixImaginaryPower_coe {A : Matrix ι ι ℂ} (hA : A.PosDef) (t : ℝ) : + (positiveMatrixImaginaryPower hA t : Matrix ι ι ℂ) = + positiveMatrixComplexPower hA ((t : ℂ) * Complex.I) := rfl + +theorem positiveMatrixComplexPower_split {A : Matrix ι ι ℂ} (hA : A.PosDef) (z : ℂ) : + positiveMatrixComplexPower hA z = + A ^ z.re * (positiveMatrixImaginaryPower hA z.im : Matrix ι ι ℂ) := by + conv_lhs => rw [← Complex.re_add_im z] + rw [positiveMatrixComplexPower_add, positiveMatrixComplexPower_real] + rfl + +theorem differentiable_positiveMatrixComplexPower {A : Matrix ι ι ℂ} (hA : A.PosDef) : + Differentiable ℂ (positiveMatrixComplexPower hA) := by + let L : (ι → ℂ) →L[ℂ] Matrix ι ι ℂ := + (Matrix.diagonalLinearMap ι ℂ ℂ).toContinuousLinearMap + let conjugation := Unitary.conjStarAlgAut ℂ (Matrix ι ι ℂ) hA.isHermitian.eigenvectorUnitary + let C : Matrix ι ι ℂ →L[ℂ] Matrix ι ι ℂ := + conjugation.toAlgEquiv.toAlgHom.toLinearMap.toContinuousLinearMap + have hd : Differentiable ℂ (fun z : ℂ => fun i : ι => + Complex.exp (z * (Real.log (hA.isHermitian.eigenvalues i) : ℂ))) := by + apply differentiable_pi.mpr + intro i + exact ((differentiable_id (𝕜 := ℂ) (E := ℂ)).mul_const _).cexp + exact C.differentiable.comp (L.differentiable.comp hd) + +theorem norm_positiveMatrixComplexPower_eigenvalue {A : Matrix ι ι ℂ} + (hA : A.PosDef) (z : ℂ) (i : ι) : + ‖Complex.exp (z * (Real.log (hA.isHermitian.eigenvalues i) : ℂ))‖ = + hA.isHermitian.eigenvalues i ^ z.re := by + rw [Complex.norm_exp, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, + mul_zero, sub_zero, Real.rpow_def_of_pos (hA.eigenvalues_pos i)] + congr 1 + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveMatrixExtension.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveMatrixExtension.lean new file mode 100644 index 0000000000..c54565ae8d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveMatrixExtension.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveMatrixFeatures + +/-! +# Positive matrix forms with finite diagonal sum extend uniquely + +This is the operator-extension step used in Appendix A. The input is an +actual positive matrix on the whole occupation index, with summable real +diagonal. The constructed bounded operator has exactly these matrix +coefficients, is positive, and has finite positive trace equal to the +diagonal sum. No prior bounded extension is an assumption. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped lp + +open scoped ComplexConjugate ComplexOrder + +variable {ι : Type*} + +/-- Continuous linear map for the positive matrix operator, of type `ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)`. -/ +def positiveMatrixOperator (K : Matrix ι ι ℂ) [Fact K.PosSemidef] + (hdiag : Summable fun i => (K i i).re) : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ) := + familyGramOperator (positiveMatrixFeature K) (summable_positiveMatrixFeature_norm_sq K hdiag) + +theorem positiveMatrixOperator_nonneg (K : Matrix ι ι ℂ) [Fact K.PosSemidef] + (hdiag : Summable fun i => (K i i).re) : 0 ≤ positiveMatrixOperator K hdiag := + familyGramOperator_nonneg _ _ + +theorem positiveMatrixOperator_matrix (K : Matrix ι ι ℂ) [Fact K.PosSemidef] + (hdiag : Summable fun i => (K i i).re) (i j : ι) : + inner ℂ (coordinateHilbertBasis ι i) (positiveMatrixOperator K hdiag + (coordinateHilbertBasis ι j)) = + K i j := by + rw [positiveMatrixOperator, familyGramOperator_matrix, inner_positiveMatrixFeature] + +theorem positiveTrace_positiveMatrixOperator (K : Matrix ι ι ℂ) [Fact K.PosSemidef] + (hdiag : Summable fun i => (K i i).re) : + positiveTrace (positiveMatrixOperator K hdiag) = ENNReal.ofReal (∑' i, (K i i).re) := by + rw [positiveMatrixOperator, positiveTrace_familyGramOperator] + simp only [norm_positiveMatrixFeature_sq] + +theorem positiveMatrixOperator_isPositiveTraceClass (K : Matrix ι ι ℂ) [Fact K.PosSemidef] + (hdiag : Summable fun i => (K i i).re) : IsPositiveTraceClass + (positiveMatrixOperator K hdiag) := + familyGramOperator_isPositiveTraceClass _ _ + +theorem operator_eq_of_coordinate_matrix (A B : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) + (h : ∀ i j, inner ℂ (coordinateHilbertBasis ι i) (A (coordinateHilbertBasis ι j)) = + inner ℂ (coordinateHilbertBasis ι i) (B (coordinateHilbertBasis ι j))) : A = B := by + apply continuousLinearMap_eq_of_dense_span (coordinateHilbertBasis ι) + (coordinateHilbertBasis ι).dense_span + intro j + apply lp.ext + funext i + simpa only [coordinateHilbertBasis_inner] using h i j + +/-- Exact extension of the original sesquilinear form on finite coordinate +linear combinations. The input positivity is the usual `Matrix.PosSemidef`. -/ +theorem positiveMatrixOperator_finite_form (K : Matrix ι ι ℂ) [Fact K.PosSemidef] + (hdiag : Summable fun i => (K i i).re) (c d : ι →₀ ℂ) : + inner ℂ (Finsupp.linearCombination ℂ (coordinateHilbertBasis ι) c) + (positiveMatrixOperator K hdiag (Finsupp.linearCombination ℂ (coordinateHilbertBasis ι) d)) = + c.sum fun i ci => d.sum fun j dj => conj ci * K i j * dj := by + classical + induction c using Finsupp.induction_linear with + | zero => simp + | add c₁ c₂ h₁ h₂ => + simp only [map_add, inner_add_left, h₁, h₂] + simp [Finsupp.sum_add_index, add_mul, map_add] + | single i a => + induction d using Finsupp.induction_linear with + | zero => simp + | add d₁ d₂ h₁ h₂ => + simp only [map_add, inner_add_right, h₁, h₂] + simp [Finsupp.sum_add_index, mul_add] + | single j b => + have hcoord : positiveMatrixOperator K hdiag (coordinateHilbertBasis ι j) i = K i j := by + simpa only [coordinateHilbertBasis_inner] using positiveMatrixOperator_matrix K hdiag i j + simp [Finsupp.linearCombination_single, map_smul, + hcoord, mul_comm, mul_left_comm] + +/-- A positive matrix with finite diagonal sum has a unique actual positive +trace-class extension to the full ℓ² space, with the specified trace. -/ +theorem existsUnique_positive_matrix_extension (K : Matrix ι ι ℂ) (hK : K.PosSemidef) + (hdiag : Summable fun i => (K i i).re) : + ∃! A : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ), + IsPositiveTraceClass A ∧ + (∀ i j, inner ℂ (coordinateHilbertBasis ι i) (A (coordinateHilbertBasis ι j)) = K i j) ∧ + positiveTrace A = ENNReal.ofReal (∑' i, (K i i).re) := by + let : Fact K.PosSemidef := ⟨hK⟩ + refine ⟨positiveMatrixOperator K hdiag, + ⟨positiveMatrixOperator_isPositiveTraceClass K hdiag, + positiveMatrixOperator_matrix K hdiag, positiveTrace_positiveMatrixOperator K hdiag⟩, ?_⟩ + intro A hA + apply operator_eq_of_coordinate_matrix A (positiveMatrixOperator K hdiag) + intro i j + rw [hA.2.1 i j, positiveMatrixOperator_matrix] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveMatrixFeatures.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveMatrixFeatures.lean new file mode 100644 index 0000000000..e04b1882ba --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveMatrixFeatures.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SquareSummableFamily +public import Mathlib.Analysis.InnerProductSpace.Reproducing + +/-! +# Actual Hilbert-space features of an arbitrary positive matrix + +The input positivity is the ordinary finitely supported matrix quadratic +form. Mathlib's reproducing-kernel Hilbert-space construction supplies +actual vectors whose Gram matrix is the input matrix. Their squared norms +are exactly its real diagonal entries. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexConjugate ComplexOrder + +variable {ι : Type*} + +/-- Scalar operator kernel given by `fun i j => K i j • (1 : ℂ →L[ℂ] ℂ)`. -/ +def scalarOperatorKernel (K : Matrix ι ι ℂ) : Matrix ι ι (ℂ →L[ℂ] ℂ) := + fun i j => K i j • (1 : ℂ →L[ℂ] ℂ) + +theorem scalarOperatorKernel_posSemidef (K : Matrix ι ι ℂ) (hK : K.PosSemidef) : + (scalarOperatorKernel K).PosSemidef := by + have hconj (i j : ι) : conj (K j i) = K i j := hK.isHermitian.apply i j + rw [RKHS.posSemidef_iff_re_sum_kernel'] + refine ⟨?_, fun c => ?_⟩ + · apply Matrix.IsHermitian.ext + intro i j + simp only [scalarOperatorKernel, star_smul, star_one] + rw [show star (K j i) = conj (K j i) from rfl, hconj] + · have h := (Complex.nonneg_iff.mp (hK.2 c)).1 + rw [RCLike.re_to_complex] + convert h using 2 + refine Finsupp.sum_congr fun i _ => Finsupp.sum_congr fun j _ => ?_ + simp only [scalarOperatorKernel, smul_apply, one_apply_eq_self, + smul_eq_mul, RCLike.inner_apply', map_mul, hconj] + change K i j * conj (c i) * c j = conj (c i) * K i j * c j + ring + +instance scalarOperatorKernel_fact (K : Matrix ι ι ℂ) [Fact K.PosSemidef] : + Fact (scalarOperatorKernel K).PosSemidef := + ⟨scalarOperatorKernel_posSemidef K Fact.out⟩ + +/-- Positive matrix space with underlying type `RKHS.OfKernel (scalarOperatorKernel K)`. -/ +abbrev PositiveMatrixSpace (K : Matrix ι ι ℂ) [Fact K.PosSemidef] := + RKHS.OfKernel (scalarOperatorKernel K) + +/-- Positive matrix feature obtained from `RKHS.kerFun`. -/ +def positiveMatrixFeature (K : Matrix ι ι ℂ) [Fact K.PosSemidef] (i : ι) : + PositiveMatrixSpace K := RKHS.kerFun (PositiveMatrixSpace K) i 1 + +theorem inner_positiveMatrixFeature (K : Matrix ι ι ℂ) [Fact K.PosSemidef] (i j : ι) : + inner ℂ (positiveMatrixFeature K i) (positiveMatrixFeature K j) = K i j := by + have hconj : conj (K j i) = K i j := (Fact.out : K.PosSemidef).isHermitian.apply i j + rw [positiveMatrixFeature, positiveMatrixFeature, ← RKHS.kernel_inner, + RKHS.OfKernel.kernel_ofKernel] + simp only [scalarOperatorKernel, smul_apply, one_apply_eq_self, + smul_eq_mul, mul_one, RCLike.inner_apply', hconj] + +theorem norm_positiveMatrixFeature_sq (K : Matrix ι ι ℂ) [Fact K.PosSemidef] (i : ι) : + ‖positiveMatrixFeature K i‖ ^ 2 = (K i i).re := by + have h := congrArg Complex.re (inner_positiveMatrixFeature K i i) + change RCLike.re (inner ℂ (positiveMatrixFeature K i) + (positiveMatrixFeature K i)) = (K i i).re at h + rw [inner_self_eq_norm_sq] at h + exact h + +theorem summable_positiveMatrixFeature_norm_sq (K : Matrix ι ι ℂ) [Fact K.PosSemidef] + (hdiag : Summable fun i => (K i i).re) : + Summable fun i => ‖positiveMatrixFeature K i‖ ^ 2 := by + simpa only [norm_positiveMatrixFeature_sq] using hdiag + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveSandwichDifference.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveSandwichDifference.lean new file mode 100644 index 0000000000..01f0611bcb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveSandwichDifference.lean @@ -0,0 +1,118 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteSpectralTraceRecovery +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceScaling + +/-! +# A genuine nuclear modulus for positive sandwich differences + +Weighted square positivity controls both orders of SAS-TAT. The actual +positive trace ideal bound then gives a modulus tending to zero as S tends +to T. No operator absolute-value monotonicity or finite-rank estimate is +used. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem weighted_positive_cross_square {A D T : E →L[ℂ] E} + (hA : 0 ≤ A) (hD : IsSelfAdjoint D) (hT : IsSelfAdjoint T) + {η : ℝ} (hη : 0 < η) : + 0 ≤ η⁻¹ • (D * A * D) + η • (T * A * T) - (D * A * T + T * A * D) := by + have hp := ((hD.sub ((IsSelfAdjoint.all η).smul hT)).conjugate_nonneg hA) + have hn := smul_nonneg (inv_nonneg.mpr hη.le) hp + convert hn using 1 + simp only [sub_mul, mul_sub, smul_mul_assoc, mul_smul_comm, smul_sub, + smul_smul, inv_mul_cancel₀ hη.ne', inv_mul_cancel_left₀ hη.ne', one_smul] + module + +theorem positive_sandwich_difference_order {A S T : E →L[ℂ] E} + (hA : 0 ≤ A) (hS : IsSelfAdjoint S) (hT : IsSelfAdjoint T) + {η : ℝ} (hη : 0 < η) : + let D := S - T + let W := (1 + η⁻¹) • (D * A * D) + η • (T * A * T); + -(W) ≤ S * A * S - T * A * T ∧ S * A * S - T * A * T ≤ W := by + dsimp only + let D := S - T + have hD : IsSelfAdjoint D := hS.sub hT + have hdiag : 0 ≤ D * A * D := hD.conjugate_nonneg hA + have he : S * A * S - T * A * T = D * A * D + (D * A * T + T * A * D) := by + dsimp only [D] + noncomm_ring + have hminus := weighted_positive_cross_square hA hD hT hη + have hplus := weighted_positive_cross_square hA hD hT.neg hη + simp only [neg_mul, mul_neg, neg_neg] at hplus + rw [he] + constructor + · apply neg_le_iff_add_nonneg'.mpr + convert add_nonneg (add_nonneg hdiag hdiag) hplus using 1; module + · apply sub_nonneg.mp + convert hminus using 1; module + +theorem operatorTraceNorm_positive_sandwich_difference_bound {A S T : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) (hS : IsSelfAdjoint S) (hT : IsSelfAdjoint T) + {η : ℝ} (hη : 0 < η) : + operatorTraceNorm (S * A * S - T * A * T) ≤ + ENNReal.ofReal ((1 + η⁻¹) * ‖S - T‖ ^ 2 + η * ‖T‖ ^ 2) * positiveTrace A := by + obtain ⟨κ, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + let D := S - T + have hD : IsSelfAdjoint D := hS.sub hT + have hDD : 0 ≤ D * A * D := hD.conjugate_nonneg hA.1 + have hTT : 0 ≤ T * A * T := hT.conjugate_nonneg hA.1 + have hcA := positiveTraceClass_isCompactOperator hA + have hc : IsCompactOperator (S * A * S - T * A * T) := + ((hcA.clm_comp S).comp_clm S).sub ((hcA.clm_comp T).comp_clm T) + have hs : IsSelfAdjoint (S * A * S - T * A * T) := + (selfAdjoint_sandwich_isSelfAdjoint hA.1.isSelfAdjoint hS).sub + (selfAdjoint_sandwich_isSelfAdjoint hA.1.isSelfAdjoint hT) + have hcoef : 0 ≤ 1 + η⁻¹ := by positivity + obtain ⟨hlo, hhi⟩ := positive_sandwich_difference_order hA.1 hS hT hη + have hb := operatorTraceNorm_le_positiveTrace_of_order_bounds hc hs + (add_nonneg (smul_nonneg hcoef hDD) (smul_nonneg hη.le hTT)) hlo hhi + rw [positiveTrace_add (smul_nonneg hcoef hDD) (smul_nonneg hη.le hTT), + positiveTrace_real_smul b hDD hcoef, positiveTrace_real_smul b hTT hη.le] at hb + have hd : positiveTrace (D * A * D) ≤ ENNReal.ofReal (‖D‖ ^ 2) * positiveTrace A := by + have h := positiveTrace_adjoint_sandwich_le hA.1 D + change positiveTrace (D.adjoint * (A * D)) ≤ _ at h + simpa only [hD.adjoint_eq, ← mul_assoc] using h + have ht : positiveTrace (T * A * T) ≤ ENNReal.ofReal (‖T‖ ^ 2) * positiveTrace A := by + have h := positiveTrace_adjoint_sandwich_le hA.1 T + change positiveTrace (T.adjoint * (A * T)) ≤ _ at h + simpa only [hT.adjoint_eq, ← mul_assoc] using h + apply (hb.trans (add_le_add (_root_.mul_le_mul_right hd _) + (_root_.mul_le_mul_right ht _))).trans_eq + rw [← mul_assoc, ← mul_assoc, ← add_mul, ← ENNReal.ofReal_mul hcoef, + ← ENNReal.ofReal_mul hη.le, ← ENNReal.ofReal_add (by positivity) (by positivity)] + +theorem operatorTraceNorm_positive_sandwich_difference_modulus {A S T : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) (hS : IsSelfAdjoint S) (hT : IsSelfAdjoint T) : + operatorTraceNorm (S * A * S - T * A * T) ≤ + ENNReal.ofReal (‖S - T‖ * (‖S - T‖ + 1 + ‖T‖ ^ 2)) * positiveTrace A := by + by_cases hzero : S - T = 0 + · have he : S = T := sub_eq_zero.mp hzero + subst S + simp only [sub_self, operatorTraceNorm_of_nonneg (le_refl 0), positiveTrace_zero, + norm_zero, zero_mul, ENNReal.ofReal_zero] + exact le_rfl + · have hn : 0 < ‖S - T‖ := norm_pos_iff.mpr hzero + have h := operatorTraceNorm_positive_sandwich_difference_bound hA hS hT hn + have he : (1 + ‖S - T‖⁻¹) * ‖S - T‖ ^ 2 + ‖S - T‖ * ‖T‖ ^ 2 = + ‖S - T‖ * (‖S - T‖ + 1 + ‖T‖ ^ 2) := by + field_simp + rwa [he] at h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveSquareDifferenceTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveSquareDifferenceTrace.lean new file mode 100644 index 0000000000..6d449aa948 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveSquareDifferenceTrace.lean @@ -0,0 +1,96 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.TraceNormSandwich + +/-! +# The centered Hilbert--Schmidt trace identity + +For compact positive A and positive B, a genuine eigenbasis of A proves +Tr((A-B)^2) + 2 Tr(sqrt(B) A sqrt(B)) = Tr(A^2) + Tr(B^2). +Every term is an extended nonnegative trace, so this identity does not +subtract infinities. It later yields the exact Q_2-1 identity for densities. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem positiveTrace_square_eq_basisHilbertSchmidtSquare {ι : Type*} + (b : HilbertBasis ι ℂ E) {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) : + positiveTrace (A * A) = basisHilbertSchmidtSquare b A := by + have h : A.adjoint.comp A = A * A := by rw [hA.adjoint_eq]; rfl + rw [← h, positiveTrace_adjoint_comp b A] + +theorem positiveTrace_square_difference_add {A B : E →L[ℂ] E} + (hcA : IsCompactOperator A) (hA : 0 ≤ A) (hB : 0 ≤ B) : + positiveTrace ((A - B) * (A - B)) + + 2 * positiveTrace (CFC.sqrt B * A * CFC.sqrt B) = + positiveTrace (A * A) + positiveTrace (B * B) := by + let b := compactSelfAdjointBasis hcA hA.isSelfAdjoint + let a : operatorEigenIndex A → ℝ := fun i => i.1.re + let d : operatorEigenIndex A → ℝ := fun i => a i * (inner ℂ (b i) (B (b i))).re + have ha₀ : ∀ i, 0 ≤ a i := operatorEigenFamily_eigenvalue_nonneg hA + have hdiag₀ (i : operatorEigenIndex A) : 0 ≤ (inner ℂ (b i) (B (b i))).re := + (ContinuousLinearMap.nonneg_iff_isPositive.mp hB).re_inner_nonneg_right _ + have hd₀ (i : operatorEigenIndex A) : 0 ≤ d i := mul_nonneg (ha₀ i) (hdiag₀ i) + have ha (i : operatorEigenIndex A) : A (b i) = a i • b i := by + simpa only [a, RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal] using + compactSelfAdjointBasis_apply_operator hcA hA.isSelfAdjoint i + have hcross (i : operatorEigenIndex A) : (inner ℂ (A (b i)) (B (b i))).re = d i := by + change RCLike.re (inner ℂ (A (b i)) (B (b i))) = d i + rw [ha, inner_smul_left_eq_smul, RCLike.smul_re] + rfl + have hentry (i : operatorEigenIndex A) : + ‖(A - B) (b i)‖ ^ 2 + 2 * d i = ‖A (b i)‖ ^ 2 + ‖B (b i)‖ ^ 2 := by + rw [sub_apply, @norm_sub_sq ℂ] + simp only [RCLike.re_eq_complex_re, hcross] + ring + have hsqrt (i : operatorEigenIndex A) : + (inner ℂ (b i) ((CFC.sqrt A * B * CFC.sqrt A) (b i))).re = d i := by + change RCLike.re (inner ℂ (b i) ((CFC.sqrt A * B * CFC.sqrt A) (b i))) = d i + rw [mul_apply_eq_comp, mul_apply_eq_comp, ← adjoint_inner_left, + (CFC.sqrt_nonneg A).isSelfAdjoint.adjoint_eq, + hilbertEigenbasis_sqrt_apply b hA ha, + map_smul_of_tower, inner_smul_left_eq_smul, inner_smul_right_eq_smul, + RCLike.smul_re, RCLike.smul_re] + change Real.sqrt (a i) * (Real.sqrt (a i) * (inner ℂ (b i) (B (b i))).re) = + a i * (inner ℂ (b i) (B (b i))).re + rw [← mul_assoc, ← pow_two, Real.sq_sqrt (ha₀ i)] + have hcrossTrace : positiveTrace (CFC.sqrt B * A * CFC.sqrt B) = + ∑' i, ENNReal.ofReal (d i) := by + rw [positiveTrace_sqrt_sandwich_swap hB hA, + positiveTrace_eq_tsum_diagonal b + ((CFC.sqrt_nonneg A).isSelfAdjoint.conjugate_nonneg hB)] + exact tsum_congr fun i => congrArg ENNReal.ofReal (hsqrt i) + have hentry' (i : operatorEigenIndex A) : + ENNReal.ofReal (‖(A - B) (b i)‖ ^ 2) + 2 * ENNReal.ofReal (d i) = + ENNReal.ofReal (‖A (b i)‖ ^ 2) + ENNReal.ofReal (‖B (b i)‖ ^ 2) := by + calc + _ = ENNReal.ofReal (‖(A - B) (b i)‖ ^ 2 + 2 * d i) := by + rw [ENNReal.ofReal_add (sq_nonneg _) (mul_nonneg (by norm_num) (hd₀ i)), + ENNReal.ofReal_mul (by norm_num : (0 : ℝ) ≤ 2)] + norm_num + _ = _ := by + rw [hentry, ENNReal.ofReal_add (sq_nonneg _) (sq_nonneg _)] + rw [positiveTrace_square_eq_basisHilbertSchmidtSquare b (hA.isSelfAdjoint.sub hB.isSelfAdjoint), + positiveTrace_square_eq_basisHilbertSchmidtSquare b hA.isSelfAdjoint, + positiveTrace_square_eq_basisHilbertSchmidtSquare b hB.isSelfAdjoint, + hcrossTrace, basisHilbertSchmidtSquare, basisHilbertSchmidtSquare, + basisHilbertSchmidtSquare, ← ENNReal.tsum_mul_left, ← tsum_add, + ← tsum_add] + exact tsum_congr hentry' + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveSquareRootDerivative.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveSquareRootDerivative.lean new file mode 100644 index 0000000000..8979adacc6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveSquareRootDerivative.lean @@ -0,0 +1,125 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveSylvesterInverse +public import LeanPool.VacuumBellSeparation.Gaussian.CovarianceResolventPerturbation +public import Mathlib.Analysis.Calculus.InverseFunctionTheorem.FDeriv +public import Mathlib.Analysis.Calculus.FDeriv.Mul + +/-! +# The actual positive matrix square root is strictly differentiable + +The inverse function theorem is applied to squaring on the genuine real +self-adjoint subspace. The proved positive Sylvester equivalence supplies +the derivative inverse. Local positivity and sqrt(X²)=X identify the +local inverse with the actual CFC square root, without assuming prior +square-root continuity or differentiable spectral branches. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Filter +open scoped MatrixOrder Matrix.Norms.L2Operator Topology RightActions + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Symmetric matrix square. -/ +def symmetricMatrixSquare (X : RealSymmetricMatrixSpace ι) : RealSymmetricMatrixSpace ι := + ⟨(X : Matrix ι ι ℝ) * (X : Matrix ι ι ℝ), by + change IsSelfAdjoint ((X : Matrix ι ι ℝ) * (X : Matrix ι ι ℝ)) + simpa only [pow_two] using (realSymmetricMatrix_isHermitian X).isSelfAdjoint.pow 2⟩ + +/-- Symmetric matrix sqrt. -/ +def symmetricMatrixSqrt (X : RealSymmetricMatrixSpace ι) : RealSymmetricMatrixSpace ι := + ⟨CFC.sqrt (X : Matrix ι ι ℝ), (CFC.sqrt_nonneg _).isSelfAdjoint⟩ + +theorem hasStrictFDerivAt_symmetricMatrixSquare + (R : RealSymmetricMatrixSpace ι) (hR : (R : Matrix ι ι ℝ).PosDef) : + HasStrictFDerivAt symmetricMatrixSquare + (positiveSylvesterSelfAdjointContinuousEquiv hR : + RealSymmetricMatrixSpace ι →L[ℝ] RealSymmetricMatrixSpace ι) R := by + let e : RealSymmetricMatrixSpace ι →L[ℝ] Matrix ι ι ℝ := + (selfAdjoint.submodule ℝ (Matrix ι ι ℝ)).subtypeL + let p : Matrix ι ι ℝ →L[ℝ] RealSymmetricMatrixSpace ι := selfAdjointPartL ℝ (Matrix ι ι ℝ) + have he := e.hasStrictFDerivAt (x := R) + have h := p.hasStrictFDerivAt.comp R (he.mul' he) + convert h using 1 + · funext X + apply Subtype.ext + change (X : Matrix ι ι ℝ) * (X : Matrix ι ι ℝ) = + (selfAdjointPart ℝ ((X : Matrix ι ι ℝ) * X) : Matrix ι ι ℝ) + exact ((show IsSelfAdjoint ((X : Matrix ι ι ℝ) * X) by + simpa only [pow_two] using (realSymmetricMatrix_isHermitian X).isSelfAdjoint.pow + 2).coe_selfAdjointPart_apply ℝ).symm + · apply ContinuousLinearMap.ext + intro X + apply Subtype.ext + change ((positiveSylvesterSelfAdjointContinuousEquiv hR X : + RealSymmetricMatrixSpace ι) : Matrix ι ι ℝ) = _ + rw [positiveSylvesterSelfAdjointContinuousEquiv_apply] + change (R : Matrix ι ι ℝ) * (X : Matrix ι ι ℝ) + (X : Matrix ι ι ℝ) * R = + (selfAdjointPart ℝ ((R : Matrix ι ι ℝ) * X + (X : Matrix ι ι ℝ) * R) : Matrix ι ι ℝ) + have hs : IsSelfAdjoint ((R : Matrix ι ι ℝ) * X + (X : Matrix ι ι ℝ) * R) := by + rw [← positiveSylvesterEquiv_apply hR] + exact positiveSylvesterEquiv_preserves_selfAdjoint hR X.property + exact (hs.coe_selfAdjointPart_apply ℝ).symm + +omit [DecidableEq ι] [Fintype ι] in +theorem eventually_posDef_at_positive_symmetric [Finite ι] + (R : RealSymmetricMatrixSpace ι) (hR : (R : Matrix ι ι ℝ).PosDef) : + ∀ᶠ X : RealSymmetricMatrixSpace ι in 𝓝 R, (X : Matrix ι ι ℝ).PosDef := by + classical + let _ : Fintype ι := Fintype.ofFinite ι + have hc : Continuous (fun X : RealSymmetricMatrixSpace ι => + ‖relativeCovariancePerturbation (R : Matrix ι ι ℝ) ((R : Matrix ι ι ℝ) - X)‖) := by + unfold relativeCovariancePerturbation + fun_prop + have he := (hc.tendsto R).eventually_lt_const (show + ‖relativeCovariancePerturbation (R : Matrix ι ι ℝ) ((R : Matrix ι ι ℝ) - R)‖ < 1 by + simp [relativeCovariancePerturbation]) + filter_upwards [he] with X hX + have hp := covariance_gap_posDef_of_relative_norm hR + (hR.isHermitian.sub (realSymmetricMatrix_isHermitian X)) hX + simpa only [sub_sub_cancel] using hp + +theorem symmetricMatrixSqrt_square_eventually + (R : RealSymmetricMatrixSpace ι) (hR : (R : Matrix ι ι ℝ).PosDef) : + ∀ᶠ X : RealSymmetricMatrixSpace ι in 𝓝 R, + symmetricMatrixSqrt (symmetricMatrixSquare X) = X := by + filter_upwards [eventually_posDef_at_positive_symmetric R hR] with X hX + apply Subtype.ext + exact CFC.sqrt_mul_self (X : Matrix ι ι ℝ) hX.posSemidef.nonneg + +/-- The actual derivative of the actual CFC square root at a positive +matrix is the inverse positive Sylvester operator at its actual root. -/ +theorem hasStrictFDerivAt_symmetricMatrixSqrt + (V : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) : + HasStrictFDerivAt symmetricMatrixSqrt + ((positiveSylvesterSelfAdjointContinuousEquiv (matrix_sqrt_posDef hV)).symm : + RealSymmetricMatrixSpace ι →L[ℝ] RealSymmetricMatrixSpace ι) V := by + let R := symmetricMatrixSqrt V + have hR : (R : Matrix ι ι ℝ).PosDef := matrix_sqrt_posDef hV + have h := (hasStrictFDerivAt_symmetricMatrixSquare R hR).to_local_left_inverse + (symmetricMatrixSqrt_square_eventually R hR) + have hs : symmetricMatrixSquare R = V := by + apply Subtype.ext + exact CFC.sqrt_mul_sqrt_self (V : Matrix ι ι ℝ) hV.posSemidef.nonneg + rwa [hs] at h + +theorem hasFDerivAt_symmetricMatrixSqrt + (V : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) : + HasFDerivAt symmetricMatrixSqrt + ((positiveSylvesterSelfAdjointContinuousEquiv (matrix_sqrt_posDef hV)).symm : + RealSymmetricMatrixSpace ι →L[ℝ] RealSymmetricMatrixSpace ι) V := + (hasStrictFDerivAt_symmetricMatrixSqrt V hV).hasFDerivAt + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveSylvesterInverse.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveSylvesterInverse.lean new file mode 100644 index 0000000000..d4fe487c10 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveSylvesterInverse.lean @@ -0,0 +1,147 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixTraceNorm +public import Mathlib.Analysis.Normed.Module.FiniteDimension +public import Mathlib.Topology.Algebra.Module.Star + +/-! +# The actual inverse of the positive Sylvester derivative + +At a strictly positive real symmetric R, the linear map X ↦ RX+XR +is inverted in a fixed actual eigenbasis by division by λᵢ+λⱼ. +Its restriction to the genuine self-adjoint real subspace is an actual +continuous linear equivalence, valid also at repeated eigenvalues. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Diagonal Sylvester equivalence. -/ +def diagonalSylvesterEquiv (d : ι → ℝ) (hd : ∀ i j, d i + d j ≠ 0) : + Matrix ι ι ℝ ≃ₗ[ℝ] Matrix ι ι ℝ where + toFun X := Matrix.diagonal d * X + X * Matrix.diagonal d + invFun Y := fun i j => Y i j / (d i + d j) + map_add' X Y := by + simp only [Matrix.mul_add, Matrix.add_mul] + abel + map_smul' c X := by + simp only [Matrix.mul_smul, Matrix.smul_mul, smul_add, RingHom.id_apply] + left_inv X := by + ext i j + change ((Matrix.diagonal d * X + X * Matrix.diagonal d) i j) / (d i + d j) = X i j + rw [Matrix.add_apply, Matrix.diagonal_mul, Matrix.mul_diagonal] + field_simp [hd i j] + right_inv Y := by + ext i j + change (Matrix.diagonal d * (Matrix.of (fun i j => Y i j / (d i + d j))) + + (Matrix.of (fun i j => Y i j / (d i + d j))) * Matrix.diagonal d) i j = Y i j + rw [Matrix.add_apply, Matrix.diagonal_mul, Matrix.mul_diagonal] + change d i * (Y i j / (d i + d j)) + (Y i j / (d i + d j)) * d j = Y i j + field_simp [hd i j] + +/-- Invertible Sylvester map obtained by adding left and right multiplication by a positive +matrix. -/ +def positiveSylvesterEquiv {R : Matrix ι ι ℝ} (hR : R.PosDef) : + Matrix ι ι ℝ ≃ₗ[ℝ] Matrix ι ι ℝ := + let C := Unitary.conjStarAlgAut ℝ (Matrix ι ι ℝ) hR.isHermitian.eigenvectorUnitary + C.symm.toAlgEquiv.toLinearEquiv.trans + ((diagonalSylvesterEquiv hR.isHermitian.eigenvalues + (fun i j => (add_pos (hR.eigenvalues_pos i) (hR.eigenvalues_pos j)).ne')).trans + C.toAlgEquiv.toLinearEquiv) + +theorem positiveSylvesterEquiv_apply {R : Matrix ι ι ℝ} (hR : R.PosDef) + (X : Matrix ι ι ℝ) : positiveSylvesterEquiv hR X = R * X + X * R := by + let C := Unitary.conjStarAlgAut ℝ (Matrix ι ι ℝ) hR.isHermitian.eigenvectorUnitary + have hspec : C (Matrix.diagonal hR.isHermitian.eigenvalues) = R := by + simpa only [RCLike.ofReal_real_eq_id, Function.id_comp] using + hR.isHermitian.spectral_theorem.symm + change C (Matrix.diagonal hR.isHermitian.eigenvalues * C.symm X + + C.symm X * Matrix.diagonal hR.isHermitian.eigenvalues) = _ + rw [map_add, map_mul, map_mul, C.apply_symm_apply, hspec] + +theorem positiveSylvesterEquiv_star {R : Matrix ι ι ℝ} (hR : R.PosDef) + (X : Matrix ι ι ℝ) : positiveSylvesterEquiv hR (star X) = + star (positiveSylvesterEquiv hR X) := by + rw [positiveSylvesterEquiv_apply, positiveSylvesterEquiv_apply, star_add, star_mul, star_mul, + hR.isHermitian.isSelfAdjoint.star_eq] + exact add_comm _ _ + +/-- Real symmetric matrix space with underlying type `selfAdjoint.submodule ℝ (Matrix ι ι ℝ)`. -/ +abbrev RealSymmetricMatrixSpace (ι : Type*) := + selfAdjoint.submodule ℝ (Matrix ι ι ℝ) + +omit [DecidableEq ι] [Fintype ι] in +theorem realSymmetricMatrix_isHermitian (X : RealSymmetricMatrixSpace ι) : + (X : Matrix ι ι ℝ).IsHermitian := X.property + +theorem positiveSylvesterEquiv_preserves_selfAdjoint {R X : Matrix ι ι ℝ} + (hR : R.PosDef) (hX : IsSelfAdjoint X) : + IsSelfAdjoint (positiveSylvesterEquiv hR X) := by + change star (positiveSylvesterEquiv hR X) = _ + rw [← positiveSylvesterEquiv_star, hX.star_eq] + +theorem positiveSylvesterEquiv_symm_preserves_selfAdjoint {R Y : Matrix ι ι ℝ} + (hR : R.PosDef) (hY : IsSelfAdjoint Y) : + IsSelfAdjoint ((positiveSylvesterEquiv hR).symm Y) := by + change star ((positiveSylvesterEquiv hR).symm Y) = _ + apply (positiveSylvesterEquiv hR).injective + rw [positiveSylvesterEquiv_star, LinearEquiv.apply_symm_apply, hY.star_eq] + +/-- Positive Sylvester self adjoint equivalence of type `RealSymmetricMatrixSpace ι ≃ₗ[ℝ] +RealSymmetricMatrixSpace ι where toFun X`. -/ +def positiveSylvesterSelfAdjointEquiv {R : Matrix ι ι ℝ} (hR : R.PosDef) : + RealSymmetricMatrixSpace ι ≃ₗ[ℝ] RealSymmetricMatrixSpace ι where + toFun X := ⟨positiveSylvesterEquiv hR X, + positiveSylvesterEquiv_preserves_selfAdjoint hR X.property⟩ + invFun Y := ⟨(positiveSylvesterEquiv hR).symm Y, + positiveSylvesterEquiv_symm_preserves_selfAdjoint hR Y.property⟩ + map_add' X Y := by + apply Subtype.ext + exact map_add (positiveSylvesterEquiv hR) (X : Matrix ι ι ℝ) (Y : Matrix ι ι ℝ) + map_smul' c X := by + apply Subtype.ext + exact map_smul (positiveSylvesterEquiv hR) c (X : Matrix ι ι ℝ) + left_inv X := by + apply Subtype.ext + exact (positiveSylvesterEquiv hR).left_inv X + right_inv Y := by + apply Subtype.ext + exact (positiveSylvesterEquiv hR).right_inv Y + +/-- Positive Sylvester self adjoint continuous equivalence of type `RealSymmetricMatrixSpace ι +≃L[ℝ] RealSymmetricMatrixSpace ι`. -/ +def positiveSylvesterSelfAdjointContinuousEquiv {R : Matrix ι ι ℝ} (hR : R.PosDef) : + RealSymmetricMatrixSpace ι ≃L[ℝ] RealSymmetricMatrixSpace ι := + (positiveSylvesterSelfAdjointEquiv hR).toContinuousLinearEquiv + +@[simp] theorem positiveSylvesterSelfAdjointContinuousEquiv_apply + {R : Matrix ι ι ℝ} (hR : R.PosDef) (X : RealSymmetricMatrixSpace ι) : + ((positiveSylvesterSelfAdjointContinuousEquiv hR X : RealSymmetricMatrixSpace ι) : + Matrix ι ι ℝ) = R * (X : Matrix ι ι ℝ) + (X : Matrix ι ι ℝ) * R := + positiveSylvesterEquiv_apply hR X + +theorem positiveSylvester_inverse_solves {R : Matrix ι ι ℝ} (hR : R.PosDef) + (Y : RealSymmetricMatrixSpace ι) : + R * ((positiveSylvesterSelfAdjointContinuousEquiv hR).symm Y : Matrix ι ι ℝ) + + ((positiveSylvesterSelfAdjointContinuousEquiv hR).symm Y : Matrix ι ι ℝ) * R = + (Y : Matrix ι ι ℝ) := by + have h := positiveSylvesterSelfAdjointContinuousEquiv_apply hR + ((positiveSylvesterSelfAdjointContinuousEquiv hR).symm Y) + rw [ContinuousLinearEquiv.apply_symm_apply] at h + exact h.symm + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTrace.lean new file mode 100644 index 0000000000..91fca90f08 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTrace.lean @@ -0,0 +1,140 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap +public import Mathlib.Analysis.CStarAlgebra.Module.Constructions +public import Mathlib.Analysis.InnerProductSpace.StarOrder +public import Mathlib.Analysis.InnerProductSpace.l2Space +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Rpow.Basic +public import Mathlib.Tactic.TypeStar + +/-! +# The extended trace of a positive Hilbert-space operator + +The trace is an `ENNReal` sum, so it also applies to positive operators whose +trace is infinite. Basis independence is proved by Parseval and Tonelli for +the positive square root. No finite-dimensionality or trace-class hypothesis +is hidden in the definition. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ComplexConjugate + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] {ι κ : Type*} + +omit [CompleteSpace E] in +/-- Parseval in the real, nonnegative form needed for the extended trace. -/ +theorem hasSum_basis_inner_norm_sq (b : HilbertBasis ι ℂ E) (x : E) : + HasSum (fun i => ‖inner ℂ (b i) x‖ ^ 2) (‖x‖ ^ 2) := by + have h := Complex.hasSum_re (b.hasSum_inner_mul_inner x x) + have hterm (i : ι) : + (inner ℂ x (b i) * inner ℂ (b i) x).re = ‖inner ℂ (b i) x‖ ^ 2 := by + rw [← inner_conj_symm, Complex.conj_mul'] + simp only [← Complex.ofReal_pow, Complex.ofReal_re] + have hself : (inner ℂ x x).re = ‖x‖ ^ 2 := by + rw [inner_self_eq_norm_sq_to_K] + simp only [RCLike.ofReal_eq_complex_ofReal, ← Complex.ofReal_pow, Complex.ofReal_re] + simpa only [hterm, hself] using h + +omit [CompleteSpace E] in +theorem tsum_basis_inner_norm_sq (b : HilbertBasis ι ℂ E) (x : E) : + ∑' i, ENNReal.ofReal (‖inner ℂ (b i) x‖ ^ 2) = + ENNReal.ofReal (‖x‖ ^ 2) := by + rw [← ENNReal.ofReal_tsum_of_nonneg (fun i => sq_nonneg _) + (hasSum_basis_inner_norm_sq b x).summable, + (hasSum_basis_inner_norm_sq b x).tsum_eq] + +/-- The squared Hilbert--Schmidt sum in a specified orthonormal basis. +It is permitted to be infinite. -/ +noncomputable def basisSquareTrace (b : HilbertBasis ι ℂ E) (A : E →L[ℂ] E) : + ℝ≥0∞ := ∑' i, ENNReal.ofReal (‖A (b i)‖ ^ 2) + +/-- Basis independence for the self-adjoint operator to which we will apply +the square-root construction. -/ +theorem basisSquareTrace_eq (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ E) + {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) : + basisSquareTrace b A = basisSquareTrace c A := by + have hentry (i : ι) (j : κ) : + ‖inner ℂ (c j) (A (b i))‖ = ‖inner ℂ (b i) (A (c j))‖ := by + rw [← A.adjoint_inner_left, hA.adjoint_eq, norm_inner_symm] + unfold basisSquareTrace + calc + (∑' i, ENNReal.ofReal (‖A (b i)‖ ^ 2)) = + ∑' i, ∑' j, ENNReal.ofReal (‖inner ℂ (c j) (A (b i))‖ ^ 2) := by + exact tsum_congr fun i => (tsum_basis_inner_norm_sq c (A (b i))).symm + _ = ∑' j, ∑' i, ENNReal.ofReal (‖inner ℂ (c j) (A (b i))‖ ^ 2) := + tsum_comm + _ = ∑' j, ∑' i, ENNReal.ofReal (‖inner ℂ (b i) (A (c j))‖ ^ 2) := by + exact tsum_congr fun j => tsum_congr fun i => by rw [hentry] + _ = ∑' j, ENNReal.ofReal (‖A (c j)‖ ^ 2) := by + exact tsum_congr fun j => tsum_basis_inner_norm_sq b (A (c j)) + +/-- The extended positive trace. For positive `T`, this is the sum of the +diagonal matrix elements in every Hilbert basis. Its meaning on nonpositive +inputs is deliberately not used. -/ +noncomputable def positiveTrace (T : E →L[ℂ] E) : ℝ≥0∞ := + basisSquareTrace + (Classical.choose (Classical.choose_spec (exists_hilbertBasis (𝕜 := ℂ) (E := E)))) + (CFC.sqrt T) + +theorem positiveTrace_eq_basisSquareTrace (b : HilbertBasis ι ℂ E) + (T : E →L[ℂ] E) : positiveTrace T = basisSquareTrace b (CFC.sqrt T) := by + unfold positiveTrace + exact basisSquareTrace_eq _ b (CFC.sqrt_nonneg T).isSelfAdjoint + +theorem sqrt_norm_sq_eq_diagonal {T : E →L[ℂ] E} (hT : 0 ≤ T) (x : E) : + ‖CFC.sqrt T x‖ ^ 2 = (inner ℂ x (T x)).re := by + have hs : IsSelfAdjoint (CFC.sqrt T) := (CFC.sqrt_nonneg T).isSelfAdjoint + have heq : inner ℂ (CFC.sqrt T x) (CFC.sqrt T x) = inner ℂ x (T x) := by + rw [← (CFC.sqrt T).adjoint_inner_right, hs.adjoint_eq, + ← mul_apply_eq_comp, ← pow_two, CFC.sq_sqrt T hT] + calc + ‖CFC.sqrt T x‖ ^ 2 = (inner ℂ (CFC.sqrt T x) (CFC.sqrt T x)).re := by + rw [inner_self_eq_norm_sq_to_K] + simp only [RCLike.ofReal_eq_complex_ofReal, ← Complex.ofReal_pow, Complex.ofReal_re] + _ = _ := congrArg Complex.re heq + +/-- The ordinary definition of positive trace as an extended diagonal sum, +now independent of the chosen basis by the preceding proof. -/ +theorem positiveTrace_eq_tsum_diagonal (b : HilbertBasis ι ℂ E) + {T : E →L[ℂ] E} (hT : 0 ≤ T) : + positiveTrace T = ∑' i, ENNReal.ofReal ((inner ℂ (b i) (T (b i))).re) := by + rw [positiveTrace_eq_basisSquareTrace b] + unfold basisSquareTrace + exact tsum_congr fun i => by rw [sqrt_norm_sq_eq_diagonal hT] + +/-- Finiteness of the extended trace is the trace-class condition for a +positive operator. Positivity is retained as an explicit part of this predicate. -/ +def IsPositiveTraceClass (T : E →L[ℂ] E) : Prop := + 0 ≤ T ∧ positiveTrace T < ∞ + +theorem isPositiveTraceClass_of_summable_diagonal (b : HilbertBasis ι ℂ E) + {T : E →L[ℂ] E} (hT : 0 ≤ T) + (hs : Summable fun i => (inner ℂ (b i) (T (b i))).re) : + IsPositiveTraceClass T := by + refine ⟨hT, ?_⟩ + rw [positiveTrace_eq_tsum_diagonal b hT] + exact hs.tsum_ofReal_lt_top + +/-- A faithful density operator on the actual Hilbert space. Faithfulness +means injectivity. -/ +def IsFaithfulDensity (T : E →L[ℂ] E) : Prop := + 0 ≤ T ∧ positiveTrace T = 1 ∧ Function.Injective T + +theorem IsFaithfulDensity.isPositiveTraceClass {T : E →L[ℂ] E} + (hT : IsFaithfulDensity T) : IsPositiveTraceClass T := by + refine ⟨hT.1, ?_⟩ + rw [hT.2.1] + exact ENNReal.one_lt_top + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceHolder.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceHolder.lean new file mode 100644 index 0000000000..992b807228 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceHolder.lean @@ -0,0 +1,108 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceYoung +public import Mathlib.MeasureTheory.Integral.Lebesgue.Countable +public import Mathlib.MeasureTheory.Integral.MeanInequalities + +/-! +# Hölder's inequality for the actual positive sandwich trace + +The counting-measure form of the pinned extended-valued Hölder inequality +applies to arbitrary index sets. Insert the actual doubly stochastic +Hilbert-basis overlap weights to obtain positive Schatten Hölder for +compact positive operators, including zero and infinite power traces. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ENNReal ContinuousFunctionalCalculus + +variable {ι κ E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem ennreal_tsum_holder (f g : ι → ℝ≥0∞) {p q : ℝ} (hpq : p.HolderConjugate q) : + (∑' i, f i * g i) ≤ (∑' i, f i ^ p) ^ (1 / p) * (∑' i, g i ^ q) ^ (1 / q) := by + let : MeasurableSpace ι := ⊤ + have hf : Measurable f := measurable_from_top + have hg : Measurable g := measurable_from_top + simpa only [Pi.mul_apply, lintegral_count] using + ENNReal.lintegral_mul_le_Lp_mul_Lq Measure.count hpq hf.aemeasurable hg.aemeasurable + +omit [CompleteSpace E] in +theorem hilbertOverlap_holder (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ E) + (a : ι → ℝ≥0∞) (d : κ → ℝ≥0∞) {p q : ℝ} (hpq : p.HolderConjugate q) : + (∑' i, ∑' j, a i * d j * hilbertBasisOverlap b c i j) ≤ + (∑' i, a i ^ p) ^ (1 / p) * (∑' j, d j ^ q) ^ (1 / q) := by + let f : ι × κ → ℝ≥0∞ := fun ij => a ij.1 * hilbertBasisOverlap b c ij.1 ij.2 ^ (1 / p) + let g : ι × κ → ℝ≥0∞ := fun ij => d ij.2 * hilbertBasisOverlap b c ij.1 ij.2 ^ (1 / q) + have hf (i : ι) (j : κ) : f (i, j) ^ p = a i ^ p * hilbertBasisOverlap b c i j := by + dsimp only [f] + rw [ENNReal.mul_rpow_of_nonneg _ _ hpq.nonneg, ← ENNReal.rpow_mul, + one_div_mul_cancel hpq.ne_zero, ENNReal.rpow_one] + have hg (i : ι) (j : κ) : g (i, j) ^ q = d j ^ q * hilbertBasisOverlap b c i j := by + dsimp only [g] + rw [ENNReal.mul_rpow_of_nonneg _ _ hpq.symm.nonneg, ← ENNReal.rpow_mul, + one_div_mul_cancel hpq.symm.ne_zero, ENNReal.rpow_one] + have hfg (i : ι) (j : κ) : f (i, j) * g (i, j) = + a i * d j * hilbertBasisOverlap b c i j := by + dsimp only [f, g] + calc + _ = (a i * d j) * (hilbertBasisOverlap b c i j ^ (1 / p) * + hilbertBasisOverlap b c i j ^ (1 / q)) := by ac_rfl + _ = _ := by + rw [← ENNReal.rpow_add_of_nonneg _ _ hpq.one_div_nonneg hpq.symm.one_div_nonneg, + one_div, one_div, hpq.inv_add_inv_eq_one, ENNReal.rpow_one] + have hfsum : (∑' ij, f ij ^ p) = ∑' i, a i ^ p := by + rw [tsum_prod'] + simp only [hf, ENNReal.tsum_mul_left, hilbertBasisOverlap_tsum_right, mul_one] + have hgsum : (∑' ij, g ij ^ q) = ∑' j, d j ^ q := by + rw [tsum_prod', tsum_comm] + simp only [hg, ENNReal.tsum_mul_left, hilbertBasisOverlap_tsum_left, mul_one] + have h := ennreal_tsum_holder f g hpq + rw [hfsum, hgsum, tsum_prod'] at h + simpa only [hfg] using h + +theorem positiveTrace_sandwich_holder_of_eigenbases + (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ E) + {A B : E →L[ℂ] E} (hA : 0 ≤ A) (hB : 0 ≤ B) + {a : ι → ℝ} {d : κ → ℝ} (ha₀ : ∀ i, 0 ≤ a i) (hd₀ : ∀ j, 0 ≤ d j) + (ha : ∀ i, A (b i) = a i • b i) (hd : ∀ j, B (c j) = d j • c j) + {p q : ℝ} (hpq : p.HolderConjugate q) : + positiveTrace (CFC.sqrt B * A * CFC.sqrt B) ≤ + positiveTrace (A ^ p) ^ (1 / p) * positiveTrace (B ^ q) ^ (1 / q) := by + rw [positiveTrace_sandwich_eq_hilbertEigenvalue_overlap b c hA hB ha₀ hd₀ ha hd, + positiveTrace_rpow_eq_hilbertEigenvalue_sum b hA ha hpq.pos, + positiveTrace_rpow_eq_hilbertEigenvalue_sum c hB hd hpq.symm.pos] + simpa only [← ENNReal.ofReal_rpow_of_nonneg (ha₀ _) hpq.nonneg, + ← ENNReal.ofReal_rpow_of_nonneg (hd₀ _) hpq.symm.nonneg] using + hilbertOverlap_holder b c (fun i => ENNReal.ofReal (a i)) + (fun j => ENNReal.ofReal (d j)) hpq + +theorem positiveTrace_sandwich_holder {A B : E →L[ℂ] E} + (hcA : IsCompactOperator A) (hcB : IsCompactOperator B) (hA : 0 ≤ A) (hB : 0 ≤ B) + {p q : ℝ} (hpq : p.HolderConjugate q) : + positiveTrace (CFC.sqrt B * A * CFC.sqrt B) ≤ + positiveTrace (A ^ p) ^ (1 / p) * positiveTrace (B ^ q) ^ (1 / q) := by + let b := compactSelfAdjointBasis hcA hA.isSelfAdjoint + let c := compactSelfAdjointBasis hcB hB.isSelfAdjoint + apply positiveTrace_sandwich_holder_of_eigenbases b c hA hB + (operatorEigenFamily_eigenvalue_nonneg hA) (operatorEigenFamily_eigenvalue_nonneg hB) + _ _ hpq + · intro i + simpa only [RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal] using + compactSelfAdjointBasis_apply_operator hcA hA.isSelfAdjoint i + · intro j + simpa only [RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal] using + compactSelfAdjointBasis_apply_operator hcB hB.isSelfAdjoint j + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceOrder.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceOrder.lean new file mode 100644 index 0000000000..a4ccaa9e16 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceOrder.lean @@ -0,0 +1,99 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTrace + +/-! +# Order and faithfulness of the extended positive trace + +These are consequences of the actual basis-independent diagonal trace, +including at infinite trace. In particular a positive operator has trace +zero only when the operator itself is zero. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem positiveTrace_zero : positiveTrace (0 : E →L[ℂ] E) = 0 := by + obtain ⟨s, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + rw [positiveTrace_eq_tsum_diagonal b (le_refl 0)] + simp + +theorem positiveTrace_mono {A B : E →L[ℂ] E} (hA : 0 ≤ A) (hAB : A ≤ B) : + positiveTrace A ≤ positiveTrace B := by + obtain ⟨s, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + have hB : 0 ≤ B := hA.trans hAB + rw [positiveTrace_eq_tsum_diagonal b hA, positiveTrace_eq_tsum_diagonal b hB] + apply tsum_le_tsum + intro i + apply ENNReal.ofReal_le_ofReal + have hdiff := (ContinuousLinearMap.nonneg_iff_isPositive.mp + (sub_nonneg.mpr hAB)).re_inner_nonneg_right (b i) + simp only [sub_apply, inner_sub_right, RCLike.re_eq_complex_re, Complex.sub_re] at hdiff + linarith + +theorem positiveTrace_add {A B : E →L[ℂ] E} (hA : 0 ≤ A) (hB : 0 ≤ B) : + positiveTrace (A + B) = positiveTrace A + positiveTrace B := by + obtain ⟨s, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + rw [positiveTrace_eq_tsum_diagonal b (add_nonneg hA hB), + positiveTrace_eq_tsum_diagonal b hA, positiveTrace_eq_tsum_diagonal b hB, + ← tsum_add] + apply tsum_congr + intro i + have hAi : 0 ≤ (inner ℂ (b i) (A (b i))).re := by + simpa only [RCLike.re_eq_complex_re] using + (ContinuousLinearMap.nonneg_iff_isPositive.mp hA).re_inner_nonneg_right (b i) + have hBi : 0 ≤ (inner ℂ (b i) (B (b i))).re := by + simpa only [RCLike.re_eq_complex_re] using + (ContinuousLinearMap.nonneg_iff_isPositive.mp hB).re_inner_nonneg_right (b i) + rw [add_apply, inner_add_right, Complex.add_re, ENNReal.ofReal_add hAi hBi] + +theorem positiveTrace_eq_zero_iff {A : E →L[ℂ] E} (hA : 0 ≤ A) : + positiveTrace A = 0 ↔ A = 0 := by + constructor + · intro ht + obtain ⟨s, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + rw [positiveTrace_eq_basisSquareTrace b] at ht + change (∑' i, ENNReal.ofReal (‖CFC.sqrt A (b i)‖ ^ 2)) = 0 at ht + have hterm := tsum_eq_zero_iff.mp ht + have hb (i : s) : CFC.sqrt A (b i) = 0 := by + apply norm_eq_zero.mp + have hle : ‖CFC.sqrt A (b i)‖ ^ 2 ≤ 0 := ENNReal.ofReal_eq_zero.mp (hterm i) + nlinarith [norm_nonneg (CFC.sqrt A (b i))] + have hs : CFC.sqrt A = 0 := by + apply ContinuousLinearMap.ext + intro x + have hsum := (b.hasSum_repr x).mapL (CFC.sqrt A) + have hzero : HasSum (fun _ : s => (0 : E)) (CFC.sqrt A x) := by + simpa only [map_smul, hb, smul_zero] using hsum + exact hzero.unique hasSum_zero + calc + A = (CFC.sqrt A) ^ 2 := (CFC.sq_sqrt A hA).symm + _ = 0 := by rw [hs]; simp + · rintro rfl + exact positiveTrace_zero + +theorem IsPositiveTraceClass.of_le {A B : E →L[ℂ] E} + (hB : IsPositiveTraceClass B) (hA : 0 ≤ A) (hAB : A ≤ B) : + IsPositiveTraceClass A := + ⟨hA, (positiveTrace_mono hA hAB).trans_lt hB.2⟩ + +theorem IsPositiveTraceClass.add {A B : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) (hB : IsPositiveTraceClass B) : + IsPositiveTraceClass (A + B) := by + refine ⟨add_nonneg hA.1 hB.1, ?_⟩ + rw [positiveTrace_add hA.1 hB.1] + exact ENNReal.add_lt_top.mpr ⟨hA.2, hB.2⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveTracePowerOrder.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTracePowerOrder.lean new file mode 100644 index 0000000000..15733e9518 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTracePowerOrder.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceHolder +public import LeanPool.VacuumBellSeparation.Gaussian.ContractionDilation + +/-! +# Scalar compression Jensen and monotonicity of positive power traces + +One-dimensional compression gives the unit-vector concavity inequality. +Applying it to B^q with exponent 1/q compares every eigenvalue power of +A <= B with a diagonal entry of B^q. The actual extended trace is therefore +monotone for q >= 1 when A is compact. B need not be compact or trace class. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ComplexOrder ContinuousFunctionalCalculus + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem compression_unitVector_apply {x : E} (hx : ‖x‖ = 1) + (A : E →L[ℂ] E) (z : ℂ) : + compression (LinearIsometry.toSpanSingleton ℂ E hx) A z = z * inner ℂ x (A x) := by + change (toSpanSingleton ℂ x).adjoint (A (z • x)) = _ + rw [adjoint_toSpanSingleton, innerSL_apply_apply, map_smul, inner_smul_right] + +theorem unit_inner_rpow_le {A : E →L[ℂ] E} (hA : 0 ≤ A) + {x : E} (hx : ‖x‖ = 1) {p : ℝ} (hp₀ : 0 < p) (hp₁ : p ≤ 1) : + (inner ℂ x ((A ^ p) x)).re ≤ (inner ℂ x (A x)).re ^ p := by + let v := LinearIsometry.toSpanSingleton ℂ E hx + let a := (inner ℂ x (A x)).re + have hreal : (a : ℂ) = inner ℂ x (A x) := by + apply Complex.ext + · rfl + · exact (Complex.nonneg_iff.mp + ((nonneg_iff_isPositive.mp hA).inner_nonneg_right x)).2 + have heig : compression v A (1 : ℂ) = a • (1 : ℂ) := by + rw [compression_unitVector_apply, one_mul, ← hreal] + simp only [Complex.real_smul, mul_one] + have hpow := rpow_apply_eigenvector (compression_nonneg v hA) + (eigenvalue_mem_real_spectrum one_ne_zero heig) heig hp₀ + have hj := (nonneg_iff_isPositive.mp + (sub_nonneg.mpr (compression_rpow_le v hA hp₀ hp₁))).re_inner_nonneg_right (1 : ℂ) + have hdiag₁ : (inner ℂ (1 : ℂ) (compression v (A ^ p) 1)).re = + (inner ℂ x ((A ^ p) x)).re := by + rw [compression_unitVector_apply] + simp only [one_mul, RCLike.inner_apply', map_one] + have hdiag₂ : (inner ℂ (1 : ℂ) ((compression v A ^ p) 1)).re = a ^ p := by + rw [hpow] + simp only [RCLike.inner_apply', map_one, one_mul, Complex.real_smul, mul_one, + Complex.ofReal_re] + simp only [sub_apply, inner_sub_right, RCLike.re_eq_complex_re, Complex.sub_re, + hdiag₁, hdiag₂] at hj + exact sub_nonneg.mp hj + +theorem positiveTrace_rpow_mono_of_eigenbasis (b : HilbertBasis ι ℂ E) + {A B : E →L[ℂ] E} (hA : 0 ≤ A) (hAB : A ≤ B) + {a : ι → ℝ} (ha₀ : ∀ i, 0 ≤ a i) (ha : ∀ i, A (b i) = a i • b i) + {q : ℝ} (hq : 1 ≤ q) : positiveTrace (A ^ q) ≤ positiveTrace (B ^ q) := by + have hq₀ : 0 < q := lt_of_lt_of_le zero_lt_one hq + have hB : 0 ≤ B := hA.trans hAB + have hroot : (B ^ q) ^ (1 / q : ℝ) = B := by + rw [CFC.rpow_rpow_of_exponent_nonneg B q (1 / q) hq₀.le + (one_div_pos.mpr hq₀).le hB, mul_one_div_cancel hq₀.ne', CFC.rpow_one B hB] + rw [positiveTrace_rpow_eq_hilbertEigenvalue_sum b hA ha hq₀, + positiveTrace_eq_tsum_diagonal b (CFC.rpow_nonneg (a := B) (y := q))] + apply tsum_le_tsum + intro i + apply ENNReal.ofReal_le_ofReal + have hdiag : a i ≤ (inner ℂ (b i) (B (b i))).re := by + have h := (nonneg_iff_isPositive.mp (sub_nonneg.mpr hAB)).re_inner_nonneg_right (b i) + rw [sub_apply, inner_sub_right, RCLike.re_eq_complex_re, Complex.sub_re, ha, + inner_smul_right_eq_smul, ← RCLike.re_eq_complex_re, RCLike.smul_re, + inner_self_eq_norm_sq, b.orthonormal.norm_eq_one] at h + simpa only [one_pow, mul_one, RCLike.re_eq_complex_re] using sub_nonneg.mp h + have hj := unit_inner_rpow_le (CFC.rpow_nonneg (a := B) (y := q)) + (b.orthonormal.norm_eq_one i) (one_div_pos.mpr hq₀) + ((div_le_iff₀ hq₀).mpr (by simpa using hq)) + rw [hroot] at hj + have h := Real.rpow_le_rpow (ha₀ i) (hdiag.trans hj) hq₀.le + have hn : 0 ≤ (inner ℂ (b i) ((B ^ q) (b i))).re := + (nonneg_iff_isPositive.mp (CFC.rpow_nonneg (a := B) (y := q))).re_inner_nonneg_right _ + rwa [← Real.rpow_mul hn, one_div_mul_cancel hq₀.ne', Real.rpow_one] at h + +theorem positiveTrace_rpow_mono {A B : E →L[ℂ] E} + (hcA : IsCompactOperator A) (hA : 0 ≤ A) (hAB : A ≤ B) {q : ℝ} (hq : 1 ≤ q) : + positiveTrace (A ^ q) ≤ positiveTrace (B ^ q) := by + apply positiveTrace_rpow_mono_of_eigenbasis (compactSelfAdjointBasis hcA hA.isSelfAdjoint) + hA hAB (operatorEigenFamily_eigenvalue_nonneg hA) _ hq + intro i + simpa only [RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal] using + compactSelfAdjointBasis_apply_operator hcA hA.isSelfAdjoint i + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceScaling.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceScaling.lean new file mode 100644 index 0000000000..87b30fdd89 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceScaling.lean @@ -0,0 +1,67 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveDensityState + +/-! +# Real scaling and normalization of actual positive trace-class operators + +The extended trace is scaled using the actual basis diagonal. Its finite, +strictly positive value is checked before normalization. No complex trace +of a nonpositive product or bounded inverse of a density is introduced. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem positiveTrace_real_smul (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : 0 ≤ A) {c : ℝ} (hc : 0 ≤ c) : + positiveTrace (c • A) = ENNReal.ofReal c * positiveTrace A := by + rw [positiveTrace_eq_tsum_diagonal b (smul_nonneg hc hA), + positiveTrace_eq_tsum_diagonal b hA] + simp only [smul_apply, inner_smul_right_eq_smul, Complex.real_smul, + Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero, + ENNReal.ofReal_mul hc, ENNReal.tsum_mul_left] + +theorem IsPositiveTraceClass.real_smul (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) {c : ℝ} (hc : 0 ≤ c) : + IsPositiveTraceClass (c • A) := by + refine ⟨smul_nonneg hc hA.1, ?_⟩ + rw [positiveTrace_real_smul b hA.1 hc] + exact ENNReal.mul_lt_top ENNReal.ofReal_lt_top hA.2 + +/-- Continuous linear map for the normalized positive density, of type `E →L[ℂ] E`. -/ +def normalizedPositiveDensity (A : E →L[ℂ] E) : E →L[ℂ] E := + (positiveTrace A).toReal⁻¹ • A + +theorem normalizedPositiveDensity_isPositiveTraceClass (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) : + IsPositiveTraceClass (normalizedPositiveDensity A) := + hA.real_smul b (inv_nonneg.mpr ENNReal.toReal_nonneg) + +theorem positiveTrace_normalizedPositiveDensity (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) (htrace : 0 < positiveTrace A) : + positiveTrace (normalizedPositiveDensity A) = 1 := by + have hr : 0 < (positiveTrace A).toReal := ENNReal.toReal_pos htrace.ne' hA.2.ne + rw [normalizedPositiveDensity, positiveTrace_real_smul b hA.1 (inv_nonneg.mpr hr.le)] + calc + _ = ENNReal.ofReal (positiveTrace A).toReal⁻¹ * + ENNReal.ofReal (positiveTrace A).toReal := + congrArg (fun t => ENNReal.ofReal (positiveTrace A).toReal⁻¹ * t) + (ENNReal.ofReal_toReal hA.2.ne).symm + _ = 1 := by + rw [← ENNReal.ofReal_mul (inv_nonneg.mpr hr.le), inv_mul_cancel₀ hr.ne', ENNReal.ofReal_one] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceSeries.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceSeries.lean new file mode 100644 index 0000000000..ba2b500a8d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceSeries.lean @@ -0,0 +1,72 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceOrder +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Instances +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order + +/-! +# Positive traces of operator series + +The sum here is the actual operator-norm sum on the full Hilbert space. +Its positive trace commutes with an arbitrary-index positive series, +including when the resulting extended trace is infinite. The proof uses +continuous evaluation for each diagonal entry and nonnegative Tonelli. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] {ι : Type*} + +omit [CompleteSpace E] in +theorem hasSum_operator_diagonal {A : ι → E →L[ℂ] E} {T : E →L[ℂ] E} + (hA : HasSum A T) (x : E) : + HasSum (fun i => (inner ℂ x (A i x)).re) (inner ℂ x (T x)).re := by + exact Complex.hasSum_re ((hA.mapL (ContinuousLinearMap.apply ℂ E x)).mapL + (innerSL ℂ x)) + +theorem positiveTrace_tsum {A : ι → E →L[ℂ] E} + (hA : ∀ i, 0 ≤ A i) (hs : Summable A) : + positiveTrace (∑' i, A i) = ∑' i, positiveTrace (A i) := by + obtain ⟨κ, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + have hsum : 0 ≤ ∑' i, A i := tsum_nonneg hA + have hdiag (j : κ) : + ENNReal.ofReal ((inner ℂ (b j) ((∑' i, A i) (b j))).re) = + ∑' i, ENNReal.ofReal ((inner ℂ (b j) (A i (b j))).re) := by + have hd := hasSum_operator_diagonal hs.hasSum (b j) + rw [← hd.tsum_eq] + apply ENNReal.ofReal_tsum_of_nonneg + · intro i + simpa only [RCLike.re_eq_complex_re] using + (ContinuousLinearMap.nonneg_iff_isPositive.mp (hA i)).re_inner_nonneg_right (b j) + · exact hd.summable + calc + positiveTrace (∑' i, A i) = + ∑' j, ENNReal.ofReal ((inner ℂ (b j) ((∑' i, A i) (b j))).re) := + positiveTrace_eq_tsum_diagonal b hsum + _ = ∑' j, ∑' i, ENNReal.ofReal ((inner ℂ (b j) (A i (b j))).re) := + tsum_congr hdiag + _ = ∑' i, ∑' j, ENNReal.ofReal ((inner ℂ (b j) (A i (b j))).re) := + tsum_comm + _ = ∑' i, positiveTrace (A i) := + tsum_congr fun i => (positiveTrace_eq_tsum_diagonal b (hA i)).symm + +theorem isPositiveTraceClass_tsum {A : ι → E →L[ℂ] E} + (hA : ∀ i, 0 ≤ A i) (hs : Summable A) + (htrace : (∑' i, positiveTrace (A i)) < ∞) : + IsPositiveTraceClass (∑' i, A i) := by + refine ⟨tsum_nonneg hA, ?_⟩ + rwa [positiveTrace_tsum hA hs] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceYoung.lean b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceYoung.lean new file mode 100644 index 0000000000..a8056e41c2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PositiveTraceYoung.lean @@ -0,0 +1,97 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertEigenTrace + +/-! +# Young's trace inequality for actual compact positive operators + +Apply scalar Young to the actual two-eigenbasis overlap formula. Parseval +makes both overlap marginals one. All sums are extended nonnegative sums, +so the result retains infinite power traces without a summability premise. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal ContinuousFunctionalCalculus + +variable {ι κ E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +omit [CompleteSpace E] in +theorem hilbertOverlap_young (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ E) + {a : ι → ℝ} {d : κ → ℝ} (ha : ∀ i, 0 ≤ a i) (hd : ∀ j, 0 ≤ d j) + {p q : ℝ} (hpq : p.HolderConjugate q) : + (∑' i, ∑' j, ENNReal.ofReal (a i) * ENNReal.ofReal (d j) * + hilbertBasisOverlap b c i j) ≤ + (∑' i, ENNReal.ofReal (a i ^ p)) / ENNReal.ofReal p + + (∑' j, ENNReal.ofReal (d j ^ q)) / ENNReal.ofReal q := by + have hterm (i : ι) (j : κ) : + ENNReal.ofReal (a i) * ENNReal.ofReal (d j) ≤ + ENNReal.ofReal (a i ^ p) / ENNReal.ofReal p + + ENNReal.ofReal (d j ^ q) / ENNReal.ofReal q := by + have h := ENNReal.ofReal_le_ofReal (Real.young_inequality_of_nonneg (ha i) (hd j) hpq) + simpa only [ENNReal.ofReal_mul (ha i), + ENNReal.ofReal_add (div_nonneg (Real.rpow_nonneg (ha i) p) hpq.nonneg) + (div_nonneg (Real.rpow_nonneg (hd j) q) hpq.symm.nonneg), + ENNReal.ofReal_div_of_pos hpq.pos, ENNReal.ofReal_div_of_pos hpq.symm.pos] using h + have hleft : (∑' i, ∑' j, + (ENNReal.ofReal (a i ^ p) / ENNReal.ofReal p) * hilbertBasisOverlap b c i j) = + (∑' i, ENNReal.ofReal (a i ^ p)) / ENNReal.ofReal p := by + simp only [ENNReal.tsum_mul_left, hilbertBasisOverlap_tsum_right, mul_one, + div_eq_mul_inv, ENNReal.tsum_mul_right] + have hright : (∑' i, ∑' j, + (ENNReal.ofReal (d j ^ q) / ENNReal.ofReal q) * hilbertBasisOverlap b c i j) = + (∑' j, ENNReal.ofReal (d j ^ q)) / ENNReal.ofReal q := by + rw [tsum_comm] + simp only [ENNReal.tsum_mul_left, hilbertBasisOverlap_tsum_left, mul_one, + div_eq_mul_inv, ENNReal.tsum_mul_right] + calc + _ ≤ ∑' i, ∑' j, + (ENNReal.ofReal (a i ^ p) / ENNReal.ofReal p + + ENNReal.ofReal (d j ^ q) / ENNReal.ofReal q) * hilbertBasisOverlap b c i j := by + exact tsum_le_tsum fun i => tsum_le_tsum fun j => + _root_.mul_le_mul_left (hterm i j) _ + _ = _ := by + simp_rw [add_mul, tsum_add] + rw [hleft, hright] + +theorem positiveTrace_sandwich_young_of_eigenbases + (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ E) + {A B : E →L[ℂ] E} (hA : 0 ≤ A) (hB : 0 ≤ B) + {a : ι → ℝ} {d : κ → ℝ} (ha₀ : ∀ i, 0 ≤ a i) (hd₀ : ∀ j, 0 ≤ d j) + (ha : ∀ i, A (b i) = a i • b i) (hd : ∀ j, B (c j) = d j • c j) + {p q : ℝ} (hpq : p.HolderConjugate q) : + positiveTrace (CFC.sqrt B * A * CFC.sqrt B) ≤ + positiveTrace (A ^ p) / ENNReal.ofReal p + positiveTrace (B ^ q) / ENNReal.ofReal q := by + rw [positiveTrace_sandwich_eq_hilbertEigenvalue_overlap b c hA hB ha₀ hd₀ ha hd, + positiveTrace_rpow_eq_hilbertEigenvalue_sum b hA ha hpq.pos, + positiveTrace_rpow_eq_hilbertEigenvalue_sum c hB hd hpq.symm.pos] + exact hilbertOverlap_young b c ha₀ hd₀ hpq + +theorem positiveTrace_sandwich_young {A B : E →L[ℂ] E} + (hcA : IsCompactOperator A) (hcB : IsCompactOperator B) (hA : 0 ≤ A) (hB : 0 ≤ B) + {p q : ℝ} (hpq : p.HolderConjugate q) : + positiveTrace (CFC.sqrt B * A * CFC.sqrt B) ≤ + positiveTrace (A ^ p) / ENNReal.ofReal p + positiveTrace (B ^ q) / ENNReal.ofReal q := by + let b := compactSelfAdjointBasis hcA hA.isSelfAdjoint + let c := compactSelfAdjointBasis hcB hB.isSelfAdjoint + apply positiveTrace_sandwich_young_of_eigenbases b c hA hB + (operatorEigenFamily_eigenvalue_nonneg hA) (operatorEigenFamily_eigenvalue_nonneg hB) + _ _ hpq + · intro i + simpa only [RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal] using + compactSelfAdjointBasis_apply_operator hcA hA.isSelfAdjoint i + · intro j + simpa only [RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal] using + compactSelfAdjointBasis_apply_operator hcB hB.isSelfAdjoint j + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ProductGaussianIntegrability.lean b/LeanPool/VacuumBellSeparation/Gaussian/ProductGaussianIntegrability.lean new file mode 100644 index 0000000000..ea56867154 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ProductGaussianIntegrability.lean @@ -0,0 +1,83 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.SpecialFunctions.Gaussian.GaussianIntegral +public import Mathlib.MeasureTheory.Integral.Pi + +/-! +# Product Gaussian integrability excludes every nonpositive coefficient + +The converse uses actual almost-everywhere integrability of scalar slices +of a product-space integrable function. The other coordinates contribute +a strictly positive finite scalar. This avoids products of totalized +Bochner integrals, which cannot detect a divergent coordinate reliably. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory + +theorem integrable_fin_productGaussian_iff {n : ℕ} (d : Fin n → ℝ) : + Integrable (fun x : Fin n → ℝ => ∏ i, Real.exp (-d i * (x i) ^ 2)) ↔ + ∀ i, 0 < d i := by + constructor + · intro h i + cases n with + | zero => exact Fin.elim0 i + | succ n => + let e := MeasurableEquiv.piFinSuccAbove (fun _ : Fin (n + 1) => ℝ) i + have hp := (volume_preserving_piFinSuccAbove (fun _ : Fin (n + 1) => ℝ) i).symm + |>.integrable_comp_of_integrable h + have heq : (fun p : ℝ × (Fin n → ℝ) => + (∏ j, Real.exp (-d j * (e.symm p j) ^ 2))) = + fun p => Real.exp (-d i * p.1 ^ 2) * + ∏ j : Fin n, Real.exp (-d (i.succAbove j) * (p.2 j) ^ 2) := by + funext p + rw [Fin.prod_univ_succAbove _ i] + simp only [e, MeasurableEquiv.piFinSuccAbove_symm_apply, Fin.insertNthEquiv, + Equiv.coe_fn_mk, Fin.insertNth_apply_same, Fin.insertNth_apply_succAbove] + change Integrable (fun p : ℝ × (Fin n → ℝ) => + ∏ j, Real.exp (-d j * (e.symm p j) ^ 2)) at hp + rw [heq] at hp + obtain ⟨y, hy⟩ := hp.prod_left_ae.exists + have hc : IsUnit (∏ j : Fin n, Real.exp (-d (i.succAbove j) * (y j) ^ 2)) := + isUnit_iff_ne_zero.mpr (Finset.prod_ne_zero_iff.mpr fun j _ => Real.exp_ne_zero _) + exact integrable_exp_neg_mul_sq_iff.mp ((integrable_mul_const_iff hc _).mp hy) + · intro hd + exact Integrable.fintype_prod fun i => integrable_exp_neg_mul_sq (hd i) + +theorem integrable_productGaussian_iff {ι : Type*} [Fintype ι] (d : ι → ℝ) : + Integrable (fun x : ι → ℝ => ∏ i, Real.exp (-d i * (x i) ^ 2)) ↔ + ∀ i, 0 < d i := by + classical + constructor + · intro h + let e : Fin (Fintype.card ι) ≃ ι := (Fintype.equivFin ι).symm + let E := MeasurableEquiv.piCongrLeft (fun _ : ι => ℝ) e + have hp := (volume_measurePreserving_piCongrLeft (fun _ : ι => ℝ) e) + |>.integrable_comp_of_integrable h + have heq : (fun x : Fin (Fintype.card ι) → ℝ => + ∏ i, Real.exp (-d i * (E x i) ^ 2)) = + fun x => ∏ j, Real.exp (-d (e j) * (x j) ^ 2) := by + funext x + rw [← e.prod_comp (fun i => Real.exp (-d i * (E x i) ^ 2))] + apply Finset.prod_congr rfl + intro j _ + simp only [E, MeasurableEquiv.piCongrLeft_apply_apply] + change Integrable (fun x : Fin (Fintype.card ι) → ℝ => + ∏ i, Real.exp (-d i * (E x i) ^ 2)) at hp + rw [heq] at hp + have hd := (integrable_fin_productGaussian_iff (fun j => d (e j))).mp hp + intro i + simpa only [e.apply_symm_apply] using hd (e.symm i) + · intro hd + exact Integrable.fintype_prod fun i => integrable_exp_neg_mul_sq (hd i) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PurityScalar.lean b/LeanPool/VacuumBellSeparation/Gaussian/PurityScalar.lean new file mode 100644 index 0000000000..9772d68d25 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PurityScalar.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.LocallyConvex.AbsConvexOpen +public import Mathlib.Analysis.Calculus.Deriv.Basic +public import Mathlib.Analysis.SpecialFunctions.Pow.Real +public import Mathlib.Analysis.Calculus.Deriv.Pow +public import Mathlib.Analysis.SpecialFunctions.Pow.Deriv +public import Mathlib.Analysis.SpecialFunctions.Log.Deriv + +/-! +# The scalar factor in Gaussian Rényi purity + +For the manuscript's covariance normalization (pure symplectic eigenvalue `1/2`), +the scalar factor is `fᵣ(x) = (x + 1/2)^r - (x - 1/2)^r`. +This file proves its logarithmic derivative bound, including the pure boundary. +It does not assume differentiability of ordered symplectic eigenvalue branches, +or identify an operator trace with a product of these scalar factors. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +/-- The one-mode denominator of the Rényi purity, in the source normalization. -/ +noncomputable def purityFactor (r v : ℝ) : ℝ := + (v + 1 / 2) ^ r - (v - 1 / 2) ^ r + +/-- The factor is positive on the physical scalar domain. -/ +theorem purityFactor_pos {r v : ℝ} (hr : 0 < r) (hv : 1 / 2 ≤ v) : + 0 < purityFactor r v := by + exact sub_pos.mpr (Real.rpow_lt_rpow (by linarith) (by linarith) hr) + +/-- The derivative exists even at `v = 1/2` when `r > 1`. -/ +theorem hasDerivAt_purityFactor {r v : ℝ} (hr : 1 < r) : + HasDerivAt (purityFactor r) + (r * ((v + 1 / 2) ^ (r - 1) - (v - 1 / 2) ^ (r - 1))) v := by + have hp := ((hasDerivAt_id' (x := v)).add_const (1 / 2 : ℝ)).rpow_const + (p := r) (Or.inr hr.le) + have hm := ((hasDerivAt_id' (x := v)).sub_const (1 / 2 : ℝ)).rpow_const + (p := r) (Or.inr hr.le) + unfold purityFactor + convert hp.sub hm using 1; ring + +/-- An exact decomposition which proves the logarithmic derivative upper bound +without introducing a quotient coordinate at the pure boundary. -/ +theorem purityFactor_decomposition {r v : ℝ} (hr : 1 < r) (hv : 1 / 2 ≤ v) : + purityFactor r v = + v * ((v + 1 / 2) ^ (r - 1) - (v - 1 / 2) ^ (r - 1)) + + (1 / 2) * ((v + 1 / 2) ^ (r - 1) + (v - 1 / 2) ^ (r - 1)) := by + have hp := Real.rpow_add_one' (x := v + 1 / 2) (y := r - 1) + (by linarith) (by linarith) + have hm := Real.rpow_add_one' (x := v - 1 / 2) (y := r - 1) + (by linarith) (by linarith) + rw [sub_add_cancel] at hp hm + rw [purityFactor, hp, hm] + ring + +/-- Section 4.1 of the manuscript: `0 ≤ x fᵣ'(x) / fᵣ(x) ≤ r` for `r > 1` and `x ≥ 1/2`, here at +`x = v`. -/ +theorem purityFactor_logarithmic_derivative_bound {r v : ℝ} + (hr : 1 < r) (hv : 1 / 2 ≤ v) : + 0 ≤ v * deriv (purityFactor r) v / purityFactor r v ∧ + v * deriv (purityFactor r) v / purityFactor r v ≤ r := by + have hr0 : 0 < r := by linarith + have hv0 : 0 ≤ v := by linarith + have hpos := purityFactor_pos hr0 hv + have hp : 0 ≤ (v + 1 / 2) ^ (r - 1) := Real.rpow_nonneg (by linarith) _ + have hm : 0 ≤ (v - 1 / 2) ^ (r - 1) := Real.rpow_nonneg (by linarith) _ + have hdiff : 0 ≤ (v + 1 / 2) ^ (r - 1) - (v - 1 / 2) ^ (r - 1) := + sub_nonneg.mpr (Real.rpow_le_rpow (by linarith) (by linarith) (by linarith)) + have hupper : v * ((v + 1 / 2) ^ (r - 1) - (v - 1 / 2) ^ (r - 1)) ≤ + purityFactor r v := by + rw [purityFactor_decomposition hr hv] + linarith + rw [(hasDerivAt_purityFactor hr).deriv] + constructor + · exact div_nonneg (mul_nonneg hv0 (mul_nonneg hr0.le hdiff)) hpos.le + · apply (div_le_iff₀ hpos).mpr + nlinarith [mul_le_mul_of_nonneg_left hupper hr0.le] + +/-- The logarithm of the scalar factor; its negative is the one-mode log purity +once the separate Gaussian spectral formula has been established. -/ +noncomputable def logPurityFactor (r v : ℝ) : ℝ := Real.log (purityFactor r v) + +theorem hasDerivAt_logPurityFactor {r v : ℝ} (hr : 1 < r) (hv : 1 / 2 ≤ v) : + HasDerivAt (logPurityFactor r) + (deriv (purityFactor r) v / purityFactor r v) v := by + change HasDerivAt (fun x => Real.log (purityFactor r x)) _ v + rw [(hasDerivAt_purityFactor hr).deriv] + exact (hasDerivAt_purityFactor (v := v) hr).log (purityFactor_pos (by linarith) hv).ne' + +/-- The logarithmic slope bound with an actual derivative of the log factor. -/ +theorem logPurityFactor_derivative_bound {r v : ℝ} (hr : 1 < r) (hv : 1 / 2 ≤ v) : + 0 ≤ v * deriv (logPurityFactor r) v ∧ + v * deriv (logPurityFactor r) v ≤ r := by + rw [(hasDerivAt_logPurityFactor hr hv).deriv, ← mul_div_assoc] + exact purityFactor_logarithmic_derivative_bound hr hv + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/PurityScalarTaylor.lean b/LeanPool/VacuumBellSeparation/Gaussian/PurityScalarTaylor.lean new file mode 100644 index 0000000000..722380239a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/PurityScalarTaylor.lean @@ -0,0 +1,185 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PurityScalar +public import Mathlib.Analysis.Calculus.ContDiff.RCLike +public import Mathlib.Analysis.Calculus.ContDiff.Deriv +public import Mathlib.Analysis.Calculus.Deriv.Abs + +/-! +# A genuine scalar Taylor bound on the faithful signed spectrum + +The purity scalar is smooth for v>1/2. The even function g(x)=log f_r(|x|) +has a uniform quadratic remainder on each compact signed set a≤|x|≤M, +where a>1/2. Same-sign pairs use the actual Lipschitz derivative on [a,M]. +Opposite-sign pairs use their separation by more than one, never a Taylor +expansion across the central interval. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Set +open scoped Topology NNReal ContDiff + +/-- Even scalar slope defined as `if 0 ≤ x then deriv f (|x|) else -deriv f (|x|)`. -/ +def evenScalarSlope (f : ℝ → ℝ) (x : ℝ) : ℝ := + if 0 ≤ x then deriv f (|x|) else -deriv f (|x|) + +theorem abs_evenScalarSlope (f : ℝ → ℝ) (x : ℝ) : + |evenScalarSlope f x| = |deriv f (|x|)| := by + unfold evenScalarSlope + split_ifs <;> simp + +theorem hasDerivAt_evenScalar {f : ℝ → ℝ} {x : ℝ} + (hx : x ≠ 0) (hf : DifferentiableAt ℝ f (|x|)) : + HasDerivAt (fun y => f (|y|)) (evenScalarSlope f x) x := by + by_cases hp : 0 ≤ x + · have hxpos : 0 < x := lt_of_le_of_ne hp hx.symm + convert! hf.hasDerivAt.comp x (hasDerivAt_abs_pos hxpos) using 1; + simp only [evenScalarSlope, ite_eq_left hp, mul_one] + · convert! hf.hasDerivAt.comp x (hasDerivAt_abs_neg (lt_of_not_ge hp)) using 1; + simp only [evenScalarSlope, ite_eq_right hp, mul_neg, mul_one] + +theorem scalar_remainder_le_of_lipschitz_deriv + {f : ℝ → ℝ} {a M u v : ℝ} {K : ℝ≥0} + (hf : ∀ z ∈ Icc a M, DifferentiableAt ℝ f z) + (hK : LipschitzOnWith K (deriv f) (Icc a M)) + (hu : u ∈ Icc a M) (hv : v ∈ Icc a M) : + |f v - f u - deriv f u * (v - u)| ≤ (K : ℝ) * (v - u) ^ 2 := by + have hsub : uIcc u v ⊆ Icc a M := uIcc_subset_Icc hu hv + have hd (z : ℝ) (hz : z ∈ uIcc u v) : + HasDerivWithinAt (fun w => f w - deriv f u * w) + (deriv f z - deriv f u) (uIcc u v) z := by + convert! ((hf z (hsub hz)).hasDerivAt.sub + ((hasDerivAt_id z).const_mul (deriv f u))).hasDerivWithinAt using 1; + simp only [mul_one] + have hb (z : ℝ) (hz : z ∈ uIcc u v) : + ‖deriv f z - deriv f u‖ ≤ (K : ℝ) * |v - u| := by + have h := hK.dist_le_mul z (hsub hz) u hu + simp only [Real.dist_eq] at h + exact h.trans (mul_le_mul_of_nonneg_left + (abs_sub_left_of_mem_uIcc hz) K.coe_nonneg) + have h := (convex_uIcc u v).norm_image_sub_le_of_norm_hasDerivWithin_le + hd hb left_mem_uIcc right_mem_uIcc + have he : (f v - deriv f u * v) - (f u - deriv f u * u) = + f v - f u - deriv f u * (v - u) := by ring + rw [he, Real.norm_eq_abs, Real.norm_eq_abs] at h + calc + _ ≤ ((K : ℝ) * |v - u|) * |v - u| := h + _ = _ := by rw [mul_assoc, ← pow_two, sq_abs] + +theorem evenScalar_remainder_le_of_compact_bounds + {f : ℝ → ℝ} {a M K F D : ℝ} (ha : 1 / 2 < a) + (hK : 0 ≤ K) (hF : 0 ≤ F) (hD : 0 ≤ D) + (hquad : ∀ u ∈ Icc a M, ∀ v ∈ Icc a M, + |f v - f u - deriv f u * (v - u)| ≤ K * (v - u) ^ 2) + (hf : ∀ u ∈ Icc a M, |f u| ≤ F) + (hd : ∀ u ∈ Icc a M, |deriv f u| ≤ D) + {x y : ℝ} (hx : |x| ∈ Icc a M) (hy : |y| ∈ Icc a M) : + |f (|y|) - f (|x|) - evenScalarSlope f x * (y - x)| ≤ + (K + 2 * F + D) * (y - x) ^ 2 := by + have hfar (hsep : 1 ≤ |y - x|) : + |f (|y|) - f (|x|) - evenScalarSlope f x * (y - x)| ≤ + (K + 2 * F + D) * (y - x) ^ 2 := by + have hb : |f (|y|) - f (|x|) - evenScalarSlope f x * (y - x)| ≤ + 2 * F + D * |y - x| := by + calc + _ ≤ |f (|y|) - f (|x|)| + |evenScalarSlope f x * (y - x)| := by + simpa only [sub_zero, zero_sub, abs_neg] using + abs_sub_le (f (|y|) - f (|x|)) 0 (evenScalarSlope f x * (y - x)) + _ ≤ (|f (|y|)| + |f (|x|)|) + |evenScalarSlope f x * (y - x)| := by + exact add_le_add (by + simpa only [sub_zero, zero_sub, abs_neg] using + abs_sub_le (f (|y|)) 0 (f (|x|))) le_rfl + _ ≤ (F + F) + D * |y - x| := by + rw [abs_mul, abs_evenScalarSlope] + gcongr + · exact hf _ hy + · exact hf _ hx + · exact hd _ hx + _ = _ := by ring + have hs : 1 ≤ (y - x) ^ 2 := by nlinarith [sq_abs (y - x)] + have hl : |y - x| ≤ (y - x) ^ 2 := by nlinarith [sq_abs (y - x)] + have hF' := mul_le_mul_of_nonneg_left hs (show 0 ≤ 2 * F by positivity) + have hD' := mul_le_mul_of_nonneg_left hl hD + have hK' := mul_nonneg hK (sq_nonneg (y - x)) + nlinarith + have hraise : K * (y - x) ^ 2 ≤ (K + 2 * F + D) * (y - x) ^ 2 := by + gcongr + linarith + by_cases hx0 : 0 ≤ x + · by_cases hy0 : 0 ≤ y + · apply le_trans ?_ hraise + simpa only [evenScalarSlope, ite_eq_left hx0, abs_of_nonneg hx0, abs_of_nonneg hy0] + using hquad |x| hx |y| hy + · apply hfar + rw [abs_of_nonpos (by linarith : y - x ≤ 0)] + rw [abs_of_nonneg hx0] at hx + rw [abs_of_neg (lt_of_not_ge hy0)] at hy + linarith [hx.1, hy.1] + · by_cases hy0 : 0 ≤ y + · apply hfar + rw [abs_of_nonneg (by linarith : 0 ≤ y - x)] + rw [abs_of_neg (lt_of_not_ge hx0)] at hx + rw [abs_of_nonneg hy0] at hy + linarith [hx.1, hy.1] + · apply le_trans ?_ hraise + have h := hquad |x| hx |y| hy + simp only [evenScalarSlope, ite_eq_right hx0, abs_of_neg (lt_of_not_ge hx0), + abs_of_neg (lt_of_not_ge hy0)] at h ⊢ + convert h using 1 <;> congr 1 <;> ring + +theorem contDiffAt_logPurityFactor {r v : ℝ} (hr : 0 < r) (hv : 1 / 2 < v) + (n : ℕ∞ω) : ContDiffAt ℝ n (logPurityFactor r) v := by + have hp : ContDiffAt ℝ n (fun x : ℝ => (x + 1 / 2) ^ r) v := + (contDiffAt_id.add contDiffAt_const).rpow_const_of_ne (by + change v + 1 / 2 ≠ 0 + linarith) + have hm : ContDiffAt ℝ n (fun x : ℝ => (x - 1 / 2) ^ r) v := + (contDiffAt_id.sub contDiffAt_const).rpow_const_of_ne (by + change v - 1 / 2 ≠ 0 + linarith) + exact (hp.sub hm).log (purityFactor_pos hr hv.le).ne' + +theorem contDiffOn_logPurityFactor {r : ℝ} (hr : 0 < r) (n : ℕ∞ω) : + ContDiffOn ℝ n (logPurityFactor r) (Ioi (1 / 2)) := + fun _ hv => (contDiffAt_logPurityFactor hr hv n).contDiffWithinAt + +/-- The actual scalar hypothesis needed for the aggregate Hermitian trace +derivative, proved uniformly on a compact faithful signed spectral set. -/ +theorem exists_even_logPurityFactor_quadratic_remainder + {r a M : ℝ} (hr : 0 < r) (ha : 1 / 2 < a) : + ∃ C : ℝ, 0 ≤ C ∧ ∀ x y : ℝ, a ≤ |x| → |x| ≤ M → + a ≤ |y| → |y| ≤ M → + |logPurityFactor r (|y|) - logPurityFactor r (|x|) - + evenScalarSlope (logPurityFactor r) x * (y - x)| ≤ C * (y - x) ^ 2 := by + have hsub : Icc a M ⊆ Ioi (1 / 2) := fun _ h => ha.trans_le h.1 + have hfd : ContDiffOn ℝ 1 (deriv (logPurityFactor r)) (Icc a M) := + ((contDiffOn_logPurityFactor hr 2).deriv_of_isOpen isOpen_Ioi (by norm_num)).mono hsub + obtain ⟨K, hK⟩ := hfd.exists_lipschitzOnWith (by norm_num) (convex_Icc a M) isCompact_Icc + obtain ⟨F, hF⟩ := isCompact_Icc.exists_bound_of_continuousOn + (((contDiffOn_logPurityFactor hr 2).continuousOn).mono hsub) + obtain ⟨D, hD⟩ := isCompact_Icc.exists_bound_of_continuousOn hfd.continuousOn + refine ⟨(K : ℝ) + 2 * max F 0 + max D 0, by positivity, ?_⟩ + intro x y hxa hxM hya hyM + apply evenScalar_remainder_le_of_compact_bounds ha K.coe_nonneg + (le_max_right _ _) (le_max_right _ _) + (fun u hu v hv => scalar_remainder_le_of_lipschitz_deriv + (fun z hz => (contDiffAt_logPurityFactor hr (hsub hz) 2).differentiableAt + (by norm_num)) hK hu hv) + (fun u hu => (show |logPurityFactor r u| ≤ F from by + simpa only [Real.norm_eq_abs] using hF u hu).trans (le_max_left _ _)) + (fun u hu => (show |deriv (logPurityFactor r) u| ≤ D from by + simpa only [Real.norm_eq_abs] using hD u hu).trans (le_max_left _ _)) + ⟨hxa, hxM⟩ ⟨hya, hyM⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/QuadratureMatrices.lean b/LeanPool/VacuumBellSeparation/Gaussian/QuadratureMatrices.lean new file mode 100644 index 0000000000..53a2bdf631 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/QuadratureMatrices.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeThermalCharacteristic +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticBlocks + +/-! +# Matrix coordinates for the actual finite-mode Weyl representation + +Mode/quadrature vectors are rearranged into real pairs without changing +their values. The literal block symplectic form and mode diagonal give +the exact Weyl phase and covariance quadratic form. A final rectangular +matrix identity transports these forms through actual coordinates. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexConjugate + +/-- Mode quadrature tuple given by `fun j => (r (j, 0), r (j, 1))`. -/ +def modeQuadratureTuple {ι : Type*} (r : ι × Fin 2 → ℝ) : ι → ℝ × ℝ := + fun j => (r (j, 0), r (j, 1)) + +@[simp] theorem modeQuadratureTuple_add {ι : Type*} (r s : ι × Fin 2 → ℝ) : + modeQuadratureTuple (r + s) = modeQuadratureTuple r + modeQuadratureTuple s := rfl + +theorem modeSymplecticForm_mulVec_zero {ι : Type*} [Fintype ι] [DecidableEq ι] + (r : ι × Fin 2 → ℝ) (i : ι) : + (modeSymplecticForm *ᵥ r) (i, 0) = r (i, 1) := by + simp [Matrix.mulVec, dotProduct, Fintype.sum_prod_type, Fin.sum_univ_two, + modeSymplecticForm, oneModeSymplecticForm, Matrix.one_apply] + +theorem modeSymplecticForm_mulVec_one {ι : Type*} [Fintype ι] [DecidableEq ι] + (r : ι × Fin 2 → ℝ) (i : ι) : + (modeSymplecticForm *ᵥ r) (i, 1) = -r (i, 0) := by + simp [Matrix.mulVec, dotProduct, Fintype.sum_prod_type, Fin.sum_univ_two, + modeSymplecticForm, oneModeSymplecticForm, Matrix.one_apply] + +theorem dotProduct_modeSymplecticForm {ι : Type*} [Fintype ι] [DecidableEq ι] + (r s : ι × Fin 2 → ℝ) : + r ⬝ᵥ (modeSymplecticForm *ᵥ s) = + ∑ j, quadratureSymplectic (modeQuadratureTuple r j) (modeQuadratureTuple s j) := by + simp only [dotProduct, Fintype.sum_prod_type, Fin.sum_univ_two, + modeSymplecticForm_mulVec_zero, modeSymplecticForm_mulVec_one, + modeQuadratureTuple, quadratureSymplectic, mul_neg, sub_eq_add_neg] + +theorem dotProduct_modeDiagonal {ι : Type*} [Fintype ι] [DecidableEq ι] + (ν : ι → ℝ) (r : ι × Fin 2 → ℝ) : + r ⬝ᵥ (modeDiagonal ν *ᵥ r) = + ∑ j, ν j * ((r (j, 0)) ^ 2 + (r (j, 1)) ^ 2) := by + simp only [dotProduct, Fintype.sum_prod_type, Fin.sum_univ_two, + modeDiagonal, Matrix.mulVec_diagonal] + apply Finset.sum_congr rfl + intro j _ + ring + +theorem dotProduct_congruence {ι κ : Type*} [Fintype ι] [Fintype κ] + (S : Matrix ι κ ℝ) (A : Matrix κ κ ℝ) (x y : ι → ℝ) : + (Sᵀ *ᵥ x) ⬝ᵥ (A *ᵥ (Sᵀ *ᵥ y)) = x ⬝ᵥ ((S * A * Sᵀ) *ᵥ y) := by + calc + (Sᵀ *ᵥ x) ⬝ᵥ (A *ᵥ (Sᵀ *ᵥ y)) = + (A *ᵥ (Sᵀ *ᵥ y)) ⬝ᵥ (Sᵀ *ᵥ x) := dotProduct_comm _ _ + _ = x ⬝ᵥ (S *ᵥ (A *ᵥ (Sᵀ *ᵥ y))) := + Matrix.dotProduct_transpose_mulVec S _ x + _ = x ⬝ᵥ ((S * A * Sᵀ) *ᵥ y) := by + rw [Matrix.mulVec_mulVec, Matrix.mulVec_mulVec] + +theorem multiQuadratureLabel_add {m : ℕ} (v w : Fin m → ℝ × ℝ) : + multiQuadratureLabel (v + w) = multiQuadratureLabel v + multiQuadratureLabel w := by + ext j + exact quadratureLabel_add (v j) (w j) + +theorem multiQuadratureLabel_symplectic {m : ℕ} (v w : Fin m → ℝ × ℝ) : + (inner ℂ (multiQuadratureLabel v) (multiQuadratureLabel w)).im = + (∑ j, quadratureSymplectic (v j) (w j)) / 2 := by + simp only [PiLp.inner_apply, multiQuadratureLabel, + RCLike.inner_apply', Complex.im_sum, quadratureLabel_symplectic, Finset.sum_div] + +theorem multiQuadratureWeyl_mem_unitary {m : ℕ} (v : Fin m → ℝ × ℝ) : + multiQuadratureWeyl v ∈ + unitary (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) := + multiOscillatorWeyl_mem_unitary _ + +theorem multiQuadratureWeyl_mul {m : ℕ} (v w : Fin m → ℝ × ℝ) : + multiQuadratureWeyl v * multiQuadratureWeyl w = + Complex.exp (-(Complex.I * (((∑ j, quadratureSymplectic (v j) (w j)) / 2 : ℝ) : ℂ))) • + multiQuadratureWeyl (v + w) := by + rw [multiQuadratureWeyl, multiQuadratureWeyl, multiOscillatorWeyl_mul, weylPhase] + simp only [id_eq, multiQuadratureLabel_symplectic, + multiQuadratureWeyl, multiQuadratureLabel_add] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/QuadratureNormalization.lean b/LeanPool/VacuumBellSeparation/Gaussian/QuadratureNormalization.lean new file mode 100644 index 0000000000..72f20fe35b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/QuadratureNormalization.lean @@ -0,0 +1,113 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCharacteristic + +/-! +# Literal real-quadrature normalization of the canonical thermal model + +The real label `(x,y)` represents the actual Weyl operator at +`(x+i y)/sqrt(2)`. Consequently the Weyl phase is `exp(-i σ/2)` and the +thermal covariance is `(1+q)/(2(1-q)) I`, with vacuum covariance `I/2`. +These are statements about the constructed Weyl unitaries and states; +no unbounded position/momentum generator or arbitrary-field identification +is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ComplexConjugate + +/-- Quadrature label given by `((v.1 : ℂ) + Complex.I * (v.2 : ℂ)) / (Real.sqrt 2 : ℂ)`. -/ +noncomputable def quadratureLabel (v : ℝ × ℝ) : ℂ := + ((v.1 : ℂ) + Complex.I * (v.2 : ℂ)) / (Real.sqrt 2 : ℂ) + +/-- Quadrature symplectic given by `v.1 * w.2 - v.2 * w.1`. -/ +def quadratureSymplectic (v w : ℝ × ℝ) : ℝ := v.1 * w.2 - v.2 * w.1 + +theorem quadratureLabel_add (v w : ℝ × ℝ) : + quadratureLabel (v + w) = quadratureLabel v + quadratureLabel w := by + simp only [quadratureLabel, Prod.fst_add, Prod.snd_add, Complex.ofReal_add] + ring + +theorem quadratureLabel_norm_sq (v : ℝ × ℝ) : + ‖quadratureLabel v‖ ^ 2 = (v.1 ^ 2 + v.2 ^ 2) / 2 := by + rw [quadratureLabel, norm_div, div_pow, + Complex.norm_of_nonneg (Real.sqrt_nonneg _), Real.sq_sqrt (by norm_num), + Complex.sq_norm, Complex.normSq_apply] + simp only [Complex.add_re, Complex.add_im, Complex.mul_re, Complex.mul_im, + Complex.I_re, Complex.I_im, Complex.ofReal_re, Complex.ofReal_im] + ring + +theorem quadratureLabel_symplectic (v w : ℝ × ℝ) : + (conj (quadratureLabel v) * quadratureLabel w).im = quadratureSymplectic v w / 2 := by + have hs : (Real.sqrt 2 : ℂ) * (Real.sqrt 2 : ℂ) = 2 := by + exact_mod_cast Real.mul_self_sqrt (by norm_num : (0 : ℝ) ≤ 2) + rw [quadratureLabel, quadratureLabel, map_div₀, Complex.conj_ofReal, + div_mul_div_comm, hs] + simp [quadratureSymplectic, + Complex.mul_re, Complex.mul_im] + ring + +/-- Quadrature Weyl obtained from `oscillatorWeyl`. -/ +noncomputable def quadratureWeyl (v : ℝ × ℝ) : + OscillatorSpace →L[ℂ] OscillatorSpace := oscillatorWeyl (quadratureLabel v) + +theorem quadratureWeyl_mem_unitary (v : ℝ × ℝ) : + quadratureWeyl v ∈ unitary (OscillatorSpace →L[ℂ] OscillatorSpace) := + oscillatorWeyl_mem_unitary _ + +theorem quadratureWeyl_mul (v w : ℝ × ℝ) : + quadratureWeyl v * quadratureWeyl w = + Complex.exp (-(Complex.I * ((quadratureSymplectic v w / 2 : ℝ) : ℂ))) • + quadratureWeyl (v + w) := by + rw [quadratureWeyl, quadratureWeyl, oscillatorWeyl_mul, weylPhase] + simp only [id_eq, RCLike.inner_apply', quadratureLabel_symplectic, + quadratureWeyl, quadratureLabel_add] + +/-- Thermal quadrature variance given by `(1 + q) / (2 * (1 - q))`. -/ +noncomputable def thermalQuadratureVariance (q : ℝ) : ℝ := (1 + q) / (2 * (1 - q)) + +theorem thermalState_quadratureWeyl {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) + (v : ℝ × ℝ) : thermalState hq₀ hq₁ (quadratureWeyl v) = + Complex.exp (((-(thermalQuadratureVariance q / 2) * (v.1 ^ 2 + v.2 ^ 2) : ℝ) : ℂ)) := by + rw [quadratureWeyl, thermalState_oscillatorWeyl hq₀ hq₁, quadratureLabel_norm_sq] + congr 1 + rw [thermalQuadratureVariance] + push_cast + ring + +theorem thermalQuadratureVariance_zero : thermalQuadratureVariance 0 = 1 / 2 := by + norm_num [thermalQuadratureVariance] + +theorem half_le_thermalQuadratureVariance {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) : + 1 / 2 ≤ thermalQuadratureVariance q := by + unfold thermalQuadratureVariance + rw [le_div_iff₀ (mul_pos (by norm_num) (sub_pos.mpr hq₁))] + nlinarith + +theorem half_lt_thermalQuadratureVariance {q : ℝ} (hq₀ : 0 < q) (hq₁ : q < 1) : + 1 / 2 < thermalQuadratureVariance q := by + unfold thermalQuadratureVariance + rw [lt_div_iff₀ (mul_pos (by norm_num) (sub_pos.mpr hq₁))] + nlinarith + +theorem thermalQuadratureVariance_parameter {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) : + (2 * thermalQuadratureVariance q - 1) / (2 * thermalQuadratureVariance q + 1) = q := by + have ha : 1 - q ≠ 0 := ne_of_gt (sub_pos.mpr hq₁) + have hb : 2 * thermalQuadratureVariance q + 1 ≠ 0 := by + have h := half_le_thermalQuadratureVariance hq₀ hq₁ + linarith + rw [div_eq_iff hb] + unfold thermalQuadratureVariance + field_simp [ha] + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/QuantumCovarianceDefs.lean b/LeanPool/VacuumBellSeparation/Gaussian/QuantumCovarianceDefs.lean new file mode 100644 index 0000000000..2b24cad8ad --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/QuantumCovarianceDefs.lean @@ -0,0 +1,43 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WilliamsonFinite + +/-! +# Literal complexification and physical quantum covariance + +This construction is separated from its later specification proofs. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder + +variable {ι κ : Type*} + +/-- Complexify matrix obtained from `M.map`. -/ +def complexifyMatrix (M : Matrix ι κ ℝ) : Matrix ι κ ℂ := + M.map (algebraMap ℝ ℂ) + + +@[simp] theorem complexifyMatrix_one [DecidableEq ι] : + complexifyMatrix (1 : Matrix ι ι ℝ) = 1 := by + ext i j + by_cases h : i = j <;> simp [complexifyMatrix, Matrix.one_apply, h] + +/-- Quantum covariance given by `complexifyMatrix V + (Complex.I / 2) • complexifyMatrix Ω`. -/ +def quantumCovariance (V Ω : Matrix ι ι ℝ) : Matrix ι ι ℂ := + complexifyMatrix V + (Complex.I / 2) • complexifyMatrix Ω + + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/QuantumModePositivity.lean b/LeanPool/VacuumBellSeparation/Gaussian/QuantumModePositivity.lean new file mode 100644 index 0000000000..2b8692fd2d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/QuantumModePositivity.lean @@ -0,0 +1,91 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ModeHamiltonianAbsoluteValue + +/-! +# Actual strict quantum uncertainty of faithful thermal mode matrices + +The vacuum uncertainty matrix is a genuine Hermitian projection. Adding +the strictly positive diagonal excess proves quantum positivity directly, +without an assumed Gaussian representation or a spectral branch choice. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} + +/-- Canonical quantum form given by `(Complex.I / 2) • complexifyMatrix modeSymplecticForm`. -/ +def canonicalQuantumForm (m : ℕ) : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ := + (Complex.I / 2) • complexifyMatrix modeSymplecticForm + +theorem canonicalQuantumForm_isHermitian : (canonicalQuantumForm m).IsHermitian := by + change (canonicalQuantumForm m)ᴴ = canonicalQuantumForm m + rw [canonicalQuantumForm, Matrix.conjTranspose_smul, ← complexifyMatrix_transpose, + transpose_modeSymplecticForm, complexifyMatrix_neg] + simp [neg_div, neg_smul] + +theorem canonicalQuantumForm_square : + canonicalQuantumForm m * canonicalQuantumForm m = (1 / 4 : ℂ) • 1 := by + have hc : (Complex.I / 2) * (Complex.I / 2) = -(1 / 4 : ℂ) := by + rw [div_mul_div_comm, Complex.I_mul_I] + norm_num + rw [canonicalQuantumForm, Matrix.smul_mul, Matrix.mul_smul, smul_smul, + hc, ← complexifyMatrix_mul, modeSymplecticForm_mul_self, + complexifyMatrix_neg, complexifyMatrix_one, smul_neg, neg_smul, neg_neg] + +theorem vacuumQuantumProjection_posSemidef : + ((1 / 2 : ℂ) • (1 : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ) + + canonicalQuantumForm m).PosSemidef := by + let P := (1 / 2 : ℂ) • (1 : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ) + + canonicalQuantumForm m + have hs : Pᴴ = P := by + dsimp only [P] + rw [Matrix.conjTranspose_add, Matrix.conjTranspose_smul, + Matrix.conjTranspose_one, canonicalQuantumForm_isHermitian.eq] + norm_num + have hp : P * P = P := by + dsimp only [P] + simp only [Matrix.add_mul, Matrix.mul_add, Matrix.smul_mul, Matrix.mul_smul, + Matrix.one_mul, Matrix.mul_one, canonicalQuantumForm_square] + module + have h := Matrix.posSemidef_conjTranspose_mul_self P + rwa [hs, hp] at h + +theorem quantum_mode_posDef {ν : Fin m → ℝ} (hν : ∀ j, (1 : ℝ) / 2 < ν j) : + (quantumCovariance (modeDiagonal ν) modeSymplecticForm).PosDef := by + have hE := complexifyMatrix_posDef + (modeDiagonal_posDef (fun j => sub_pos.mpr (hν j))) + have he : quantumCovariance (modeDiagonal ν) modeSymplecticForm = + complexifyMatrix (modeDiagonal (fun j => ν j - 1 / 2)) + + ((1 / 2 : ℂ) • 1 + canonicalQuantumForm m) := by + rw [quantumCovariance, canonicalQuantumForm, complexifyMatrix_modeDiagonal, + complexifyMatrix_modeDiagonal] + ext i j + by_cases hij : i = j + · subst j + simp + ring + · simp [hij] + rw [he] + exact hE.add_posSemidef vacuumQuantumProjection_posSemidef + +theorem thermalPowerCovariance_quantum_posDef {q : Fin m → ℝ} {a : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (ha : 0 < a) : + (quantumCovariance (thermalPowerCovariance q a) modeSymplecticForm).PosDef := + quantum_mode_posDef fun j => half_lt_thermalQuadratureVariance + (Real.rpow_pos_of_pos (hq₀ j) a) (Real.rpow_lt_one (hq₀ j).le (hq₁ j) ha) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/QuantumNondegenerateCovariance.lean b/LeanPool/VacuumBellSeparation/Gaussian/QuantumNondegenerateCovariance.lean new file mode 100644 index 0000000000..19cb6ba111 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/QuantumNondegenerateCovariance.lean @@ -0,0 +1,74 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumRealCovariance + +/-! +# Positive real covariance from semidefinite nondegenerate uncertainty + +A null real quadratic direction would also be a null direction of the +actual positive complex uncertainty matrix. Its imaginary part then puts +that real vector in the kernel of the commutation form. Invertibility of +the form excludes such a direction, proving actual real PosDef even when +the quantum uncertainty is only semidefinite. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +omit [Fintype ι] [DecidableEq ι] in +@[simp] theorem quantumCovariance_im_apply (V Ω : Matrix ι ι ℝ) (i j : ι) : + (quantumCovariance V Ω i j).im = Ω i j / 2 := by + simp [quantumCovariance, Complex.mul_im] + ring + +omit [DecidableEq ι] in +theorem quantumCovariance_mulVec_real_im (V Ω : Matrix ι ι ℝ) (x : ι → ℝ) (i : ι) : + ((quantumCovariance V Ω *ᵥ (fun j => (x j : ℂ))) i).im = (Ω *ᵥ x) i / 2 := by + simp only [Matrix.mulVec, dotProduct, Complex.im_sum, Complex.mul_im, + Complex.ofReal_re, Complex.ofReal_im, mul_zero, zero_add, quantumCovariance_im_apply] + simp_rw [div_mul_eq_mul_div] + exact (Finset.sum_div _ _ _).symm + +theorem real_posDef_of_quantum_posSemidef {V Ω : Matrix ι ι ℝ} + (hQ : (quantumCovariance V Ω).PosSemidef) (hΩ : IsUnit Ω) : V.PosDef := by + apply Matrix.posDef_iff_dotProduct_mulVec.mpr + refine ⟨real_isHermitian_of_quantum_isHermitian hQ.isHermitian, ?_⟩ + intro x hx + have hnn := hQ.dotProduct_mulVec_nonneg (fun i => (x i : ℂ)) + have hr : 0 ≤ x ⬝ᵥ (V *ᵥ x) := by + simpa only [real_quantum_quadratic] using (Complex.nonneg_iff.mp hnn).1 + have hn : x ⬝ᵥ (V *ᵥ x) ≠ 0 := by + intro hz + have hzero : star (fun i => (x i : ℂ)) ⬝ᵥ + (quantumCovariance V Ω *ᵥ (fun i => (x i : ℂ))) = 0 := by + apply Complex.ext + · simpa only [real_quantum_quadratic, Complex.zero_re] using hz + · exact (Complex.nonneg_iff.mp hnn).2.symm + have hmul := hQ.dotProduct_mulVec_zero_iff.mp hzero + have hΩx : Ω *ᵥ x = 0 := by + funext i + have h := congrArg Complex.im (congrFun hmul i) + rw [quantumCovariance_mulVec_real_im] at h + change (Ω *ᵥ x) i / 2 = 0 at h + change (Ω *ᵥ x) i = 0 + linarith + apply hx + apply Matrix.mulVec_injective_of_isUnit hΩ + simpa only [Matrix.mulVec_zero] using hΩx + simpa only [star_trivial] using lt_of_le_of_ne hr hn.symm + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/QuantumPurityCalculus.lean b/LeanPool/VacuumBellSeparation/Gaussian/QuantumPurityCalculus.lean new file mode 100644 index 0000000000..b699e72530 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/QuantumPurityCalculus.lean @@ -0,0 +1,128 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianPurityDifferential +public import LeanPool.VacuumBellSeparation.Gaussian.CovarianceSegmentBounds + +/-! +# Purity calculus from literal strict quantum uncertainty + +The actual finite Williamson theorem turns positivity of V+iΩ/2 into +strict mode variances. This yields the genuine purity derivative and its +relative trace-norm bound without taking Williamson data as input. +Strict quantum uncertainty is also proved along actual affine segments. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator Topology ComplexOrder + +variable {m : ℕ} + +theorem exists_faithful_canonical_williamson + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (hV : V.PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) : + ∃ (ν : Fin m → ℝ) (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ), + (∀ j, 1 / 2 < ν j) ∧ S * modeSymplecticForm * Sᵀ = modeSymplecticForm ∧ + S * modeDiagonal ν * Sᵀ = V := by + obtain ⟨n, ν, S, T, hcard, _, hST, hTS, hsymp, hcov⟩ := + exists_quantum_williamson_factorization V modeSymplecticForm hV + transpose_modeSymplecticForm (modeSymplecticForm_isUnit m) hQ.posSemidef + have hν := strict_quantum_williamson_variances V modeSymplecticForm ν S T hTS hsymp hcov hQ + have hnm : n = m := by + simp only [Fintype.card_prod, Fintype.card_fin] at hcard + omega + subst n + exact ⟨ν, S, hν, hsymp, hcov⟩ + +theorem strict_quantum_hamiltonian_gap + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (hV : V.PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) : + ∀ x ∈ spectrum ℝ (symplecticHamiltonian modeSymplecticForm V), 1 / 2 < |x| := by + obtain ⟨ν, S, hν, hS, hcov⟩ := exists_faithful_canonical_williamson V hV hQ + rw [← hcov] + exact faithful_williamson_hamiltonian_gap S hS hν + +theorem hasFDerivAt_covariancePurityTrace_of_strict_quantum + {r : ℝ} (hr : 0 < r) + (V : RealSymmetricMatrixSpace (Fin m × Fin 2)) + (hV : (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ).PosDef) + (hQ : (quantumCovariance (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + modeSymplecticForm).PosDef) : + HasFDerivAt (fun X : RealSymmetricMatrixSpace (Fin m × Fin 2) => + covariancePurityTrace r (X : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)) + (covariancePurityDerivative r V hV) V := + hasFDerivAt_covariancePurityTrace_of_spectral_gap hr V hV + (strict_quantum_hamiltonian_gap + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) hV hQ) + +theorem abs_covariancePurityDerivative_le_of_strict_quantum + {r : ℝ} (hr : 1 < r) + (V Δ : RealSymmetricMatrixSpace (Fin m × Fin 2)) + (hV : (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ).PosDef) + (hQ : (quantumCovariance (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + modeSymplecticForm).PosDef) : + |covariancePurityDerivative r V hV Δ| ≤ + (r / 2) * matrixTraceNorm (relativeCovariancePerturbation + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ)) := by + obtain ⟨ν, S, hν, hS, hcov⟩ := exists_faithful_canonical_williamson + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) hV hQ + have he : symmetricCongruenceCLM S (modeCovarianceSpace ν) = V := by + apply Subtype.ext + exact hcov + have h := abs_covariancePurityDerivative_williamson_le hr S hS hν Δ + simpa only [he, hcov] using h + +theorem quantumCovariance_segment + (V Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) (t : ℝ) : + quantumCovariance (covarianceSegment V Δ t) modeSymplecticForm = + (1 - t) • quantumCovariance V modeSymplecticForm + + t • quantumCovariance (V + Δ) modeSymplecticForm := by + have hs : complexifyMatrix (t • Δ) = t • complexifyMatrix Δ := + (complexifyMatrixCLM (ι := Fin m × Fin 2)).map_smul t Δ + rw [quantumCovariance, covarianceSegment, complexifyMatrix_add, hs] + simp only [quantumCovariance, complexifyMatrix_add] + module + +/-- Strict uncertainty is preserved throughout the full closed segment. +The endpoints are retained explicitly; no mere covariance positivity is +mistaken for the quantum condition. -/ +theorem quantumCovariance_segment_posDef + {V Δ : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hQ₀ : (quantumCovariance V modeSymplecticForm).PosDef) + (hQ₁ : (quantumCovariance (V + Δ) modeSymplecticForm).PosDef) + {t : ℝ} (ht₀ : 0 ≤ t) (ht₁ : t ≤ 1) : + (quantumCovariance (covarianceSegment V Δ t) modeSymplecticForm).PosDef := by + rw [quantumCovariance_segment] + by_cases ht : t = 1 + · simpa only [ht, sub_self, zero_smul, one_smul, zero_add] using hQ₁ + · have htlt : t < 1 := by + rcases lt_or_eq_of_le ht₁ with h | h + · exact h + · exact (ht h).elim + exact (hQ₀.smul (sub_pos.mpr htlt)).add_posSemidef (hQ₁.posSemidef.smul ht₀) + +theorem log_positiveTrace_gaussianPhysical_rpow_eq_purity + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.PosDef) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) + (hG : HasGaussianPhysicalCharacteristic A V) {r : ℝ} (hr : 0 < r) : + Real.log (positiveTrace (A ^ r)).toReal = covariancePurityTrace r V := by + obtain ⟨ν, S, hν, hS, hcov⟩ := exists_faithful_canonical_williamson V hV hQ + rw [← hcov] at hG ⊢ + exact log_positiveTrace_gaussianPhysical_rpow_eq_covariancePurityTrace hA S hS + (fun j => (hν j).le) hG hr + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/QuantumRealCovariance.lean b/LeanPool/VacuumBellSeparation/Gaussian/QuantumRealCovariance.lean new file mode 100644 index 0000000000..c3484e1635 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/QuantumRealCovariance.lean @@ -0,0 +1,74 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumModePositivity + +/-! +# Real positive covariance from actual strict quantum uncertainty + +The real part of V+iΩ/2 is literally V. Testing the actual complex +positive matrix on embedded real vectors proves positive definiteness of +V. This is an elementary direction of the uncertainty condition, not an +inference of uncertainty from an arbitrary state or formal kernel. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +omit [Fintype ι] [DecidableEq ι] in +@[simp] theorem quantumCovariance_re_apply (V Ω : Matrix ι ι ℝ) (i j : ι) : + (quantumCovariance V Ω i j).re = V i j := by + simp [quantumCovariance, Complex.mul_re] + +omit [Fintype ι] [DecidableEq ι] in +theorem real_isHermitian_of_quantum_isHermitian {V Ω : Matrix ι ι ℝ} + (hQ : (quantumCovariance V Ω).IsHermitian) : V.IsHermitian := by + change Vᵀ = V + ext i j + have h := congrArg Complex.re (congrFun (congrFun hQ.eq i) j) + simpa only [Matrix.conjTranspose_apply, Complex.star_def, Complex.conj_re, + quantumCovariance_re_apply, Matrix.transpose_apply] using h + +omit [DecidableEq ι] in +theorem real_quantum_quadratic (V Ω : Matrix ι ι ℝ) (x : ι → ℝ) : + (star (fun i => (x i : ℂ)) ⬝ᵥ + (quantumCovariance V Ω *ᵥ (fun i => (x i : ℂ)))).re = x ⬝ᵥ (V *ᵥ x) := by + simp [dotProduct, Matrix.mulVec, Complex.mul_re, Complex.mul_im] + +omit [Fintype ι] [DecidableEq ι] in +theorem real_posDef_of_quantum_posDef [Finite ι] {V Ω : Matrix ι ι ℝ} + (hQ : (quantumCovariance V Ω).PosDef) : V.PosDef := by + let _ : Fintype ι := Fintype.ofFinite ι + apply Matrix.posDef_iff_dotProduct_mulVec.mpr + refine ⟨real_isHermitian_of_quantum_isHermitian hQ.isHermitian, ?_⟩ + intro x hx + have hxc : (fun i => (x i : ℂ)) ≠ 0 := by + intro he + apply hx + funext i + have h := congrArg Complex.re (congrFun he i) + simpa using h + have h := (Complex.pos_iff.mp (hQ.dotProduct_mulVec_pos hxc)).1 + rw [real_quantum_quadratic] at h + simpa only [star_trivial] using h + +omit [Fintype ι] in +theorem quantum_covariance_shift_posDef [Finite ι] {V Ω : Matrix ι ι ℝ} + (hQ : (quantumCovariance V Ω).PosDef) : (V + (1 / 2 : ℝ) • 1).PosDef := + (real_posDef_of_quantum_posDef hQ).add_posSemidef + (Matrix.PosSemidef.one.smul (by norm_num : (0 : ℝ) ≤ 1 / 2)) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/QuantumWilliamson.lean b/LeanPool/VacuumBellSeparation/Gaussian/QuantumWilliamson.lean new file mode 100644 index 0000000000..1fadbc654f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/QuantumWilliamson.lean @@ -0,0 +1,104 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumCovarianceDefs +public import LeanPool.VacuumBellSeparation.Gaussian.WilliamsonFinite + +/-! +# Quantum uncertainty bounds the actual Williamson eigenvalues + +The uncertainty matrix is literally the complex matrix `V + i Ω / 2`. +Its positivity is transported through the actual inverse Williamson +coordinates, and the vector `(1,i)` in each genuine two-dimensional mode +shows `ν ≥ 1/2`. Thus the lower bound is proved from quantum uncertainty, +not added to the real Williamson theorem as an assumption or a field. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder + +variable {ι κ η : Type*} + +@[simp] theorem complexifyMatrix_apply (M : Matrix ι κ ℝ) (i : ι) (j : κ) : + complexifyMatrix M i j = (M i j : ℂ) := rfl + +@[simp] theorem complexifyMatrix_mul [Fintype κ] (M : Matrix ι κ ℝ) (N : Matrix κ η ℝ) : + complexifyMatrix (M * N) = complexifyMatrix M * complexifyMatrix N := Matrix.map_mul + +@[simp] theorem complexifyMatrix_transpose (M : Matrix ι κ ℝ) : + complexifyMatrix Mᵀ = (complexifyMatrix M)ᴴ := by + ext i j + simp [complexifyMatrix, Matrix.conjTranspose_apply] + +theorem quantumCovariance_congruence [Fintype ι] (V Ω : Matrix ι ι ℝ) (T : Matrix κ ι ℝ) : + quantumCovariance (T * V * Tᵀ) (T * Ω * Tᵀ) = + complexifyMatrix T * quantumCovariance V Ω * (complexifyMatrix T)ᴴ := by + simp only [quantumCovariance, complexifyMatrix_mul, complexifyMatrix_transpose, + Matrix.mul_add, Matrix.add_mul, Matrix.mul_smul, Matrix.smul_mul] + +theorem quantumModeBlock [DecidableEq ι] (ν : ι → ℝ) (i : ι) : + (quantumCovariance (modeDiagonal ν) modeSymplecticForm).submatrix + (fun a : Fin 2 => (i, a)) (fun a : Fin 2 => (i, a)) = + !![(ν i : ℂ), Complex.I / 2; -(Complex.I / 2), (ν i : ℂ)] := by + ext a b + fin_cases a <;> fin_cases b <;> + simp [quantumCovariance, Matrix.submatrix_apply, modeDiagonal, + modeSymplecticForm, oneModeSymplecticForm] + +/-- The literal uncertainty matrix in mode coordinates forces every +symplectic eigenvalue to be at least the vacuum value. -/ +theorem half_le_of_quantum_mode_posSemidef [DecidableEq ι] (ν : ι → ℝ) + (h : (quantumCovariance (modeDiagonal ν) modeSymplecticForm).PosSemidef) : + ∀ i, (1 : ℝ) / 2 ≤ ν i := by + intro i + have hblock := h.submatrix (fun a : Fin 2 => (i, a)) + rw [quantumModeBlock] at hblock + have ht := hblock.dotProduct_mulVec_nonneg (![1, Complex.I] : Fin 2 → ℂ) + have hr := (Complex.nonneg_iff.mp ht).1 + norm_num [Matrix.mulVec, dotProduct, Fin.sum_univ_two, Complex.mul_re, Complex.mul_im] at hr + linarith + +/-- Actual Williamson eigenvalues satisfy the quantum uncertainty bound +when the literal covariance uncertainty matrix is positive semidefinite. -/ +theorem exists_quantum_williamson_factorization [Fintype ι] [DecidableEq ι] (V Ω : Matrix ι ι ℝ) + (hV : V.PosDef) (hΩ : Ωᵀ = -Ω) (hΩunit : IsUnit Ω) + (hquantum : (quantumCovariance V Ω).PosSemidef) : + ∃ (m : ℕ) (ν : Fin m → ℝ) + (S : Matrix ι (Fin m × Fin 2) ℝ) (T : Matrix (Fin m × Fin 2) ι ℝ), + Fintype.card ι = 2 * m ∧ (∀ i, (1 : ℝ) / 2 ≤ ν i) ∧ + S * T = 1 ∧ T * S = 1 ∧ + S * (modeSymplecticForm (ι := Fin m)) * Sᵀ = Ω ∧ S * modeDiagonal ν * Sᵀ = V := by + obtain ⟨m, ν, S, T, hcard, hν, hST, hTS, hsymp, hcov⟩ := + exists_williamson_factorization V Ω hV hΩ hΩunit + have hinv_cov : T * V * Tᵀ = modeDiagonal ν := by + calc + T * V * Tᵀ = (T * S) * modeDiagonal ν * (T * S)ᵀ := by + rw [← hcov] + simp only [Matrix.transpose_mul, Matrix.mul_assoc] + _ = modeDiagonal ν := by simp only [hTS, Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one] + have hinv_symp : T * Ω * Tᵀ = modeSymplecticForm := by + calc + T * Ω * Tᵀ = (T * S) * modeSymplecticForm * (T * S)ᵀ := by + rw [← hsymp] + simp only [Matrix.transpose_mul, Matrix.mul_assoc] + _ = modeSymplecticForm := by + simp only [hTS, Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one] + have hnormal : (quantumCovariance (modeDiagonal ν) modeSymplecticForm).PosSemidef := by + have h := hquantum.mul_mul_conjTranspose_same (complexifyMatrix T) + rw [← quantumCovariance_congruence, hinv_cov, hinv_symp] at h + exact h + exact ⟨m, ν, S, T, hcard, half_le_of_quantum_mode_posSemidef ν hnormal, + hST, hTS, hsymp, hcov⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/RealBilinearCompletion.lean b/LeanPool/VacuumBellSeparation/Gaussian/RealBilinearCompletion.lean new file mode 100644 index 0000000000..f08715961a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/RealBilinearCompletion.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.Completion +public import Mathlib.Analysis.InnerProductSpace.Dual +public import Mathlib.Topology.Algebra.LinearMapCompletion +public import Mathlib.Analysis.Normed.Operator.Bilinear + +/-! +# Actual bounded forms on the real Hilbert completion + +A bounded real bilinear form extends in both variables by the actual +completion maps. Riesz representation then gives a bounded operator on +that completion with the same norm bound and the original test pairings. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation.Gaussian + +open UniformSpace +open scoped InnerProductSpace + +section General + +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] + [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] + +theorem norm_fromCompletion_le (L : E →L[ℝ] F) : ‖L.fromCompletion‖ ≤ ‖L‖ := by + apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg L) + intro x + refine Completion.induction_on x (isClosed_le (by fun_prop) (by fun_prop)) ?_ + intro y + simpa only [ContinuousLinearMap.fromCompletion_apply_coe, Completion.norm_coe] using + L.le_opNorm y + +/-- Extension in the dual variable is itself an actual contraction. -/ +def completionDualLift (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] : + (E →L[ℝ] ℝ) →L[ℝ] (Completion E →L[ℝ] ℝ) := + LinearMap.mkContinuous + { toFun := fun L => L.fromCompletion + map_add' := by + intro L M + apply ContinuousLinearMap.fromCompletion_unique + intro x + simp only [add_apply, ContinuousLinearMap.fromCompletion_apply_coe] + map_smul' := by + intro c L + apply ContinuousLinearMap.fromCompletion_unique + intro x + simp only [smul_apply, ContinuousLinearMap.fromCompletion_apply_coe, + RingHom.id_apply] } + 1 (fun L => by + change ‖L.fromCompletion‖ ≤ 1 * ‖L‖ + simpa only [one_mul] using norm_fromCompletion_le L) + +@[simp] theorem completionDualLift_apply (L : E →L[ℝ] ℝ) : + completionDualLift E L = L.fromCompletion := rfl + +theorem norm_completionDualLift_le : ‖completionDualLift E‖ ≤ 1 := by + apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one + intro L + simpa only [completionDualLift_apply, one_mul] using norm_fromCompletion_le L + +/-- Both variables are extended; no completion-boundedness premise is added. -/ +def completedRealBilinear (B : E →L[ℝ] E →L[ℝ] ℝ) : + Completion E →L[ℝ] Completion E →L[ℝ] ℝ := + (completionDualLift E).comp B.fromCompletion + +@[simp] theorem completedRealBilinear_coe (B : E →L[ℝ] E →L[ℝ] ℝ) (x y : E) : + completedRealBilinear B (x : Completion E) (y : Completion E) = B x y := by + simp only [completedRealBilinear, ContinuousLinearMap.comp_apply, + ContinuousLinearMap.fromCompletion_apply_coe, completionDualLift_apply] + +theorem norm_completedRealBilinear_le (B : E →L[ℝ] E →L[ℝ] ℝ) : + ‖completedRealBilinear B‖ ≤ ‖B‖ := by + calc + _ ≤ ‖completionDualLift E‖ * ‖B.fromCompletion‖ := ContinuousLinearMap.opNorm_comp_le _ _ + _ ≤ 1 * ‖B‖ := mul_le_mul norm_completionDualLift_le (norm_fromCompletion_le B) + (norm_nonneg B.fromCompletion) zero_le_one + _ = _ := one_mul _ + +end General + +section Hilbert +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + +/-- The actual Riesz operator of the completed original bilinear form. -/ +def completedRealFormOperator (B : E →L[ℝ] E →L[ℝ] ℝ) : + Completion E →L[ℝ] Completion E := + let riesz := (InnerProductSpace.toDual ℝ (Completion E)).symm.toContinuousLinearEquiv + riesz.toContinuousLinearMap.comp (completedRealBilinear B).flip + +theorem inner_completedRealFormOperator (B : E →L[ℝ] E →L[ℝ] ℝ) + (x y : Completion E) : + inner ℝ x (completedRealFormOperator B y) = completedRealBilinear B x y := by + change inner ℝ x ((InnerProductSpace.toDual ℝ (Completion E)).symm + ((completedRealBilinear B).flip y)) = completedRealBilinear B x y + rw [real_inner_comm] + exact InnerProductSpace.toDual_symm_apply + +@[simp] theorem inner_completedRealFormOperator_coe (B : E →L[ℝ] E →L[ℝ] ℝ) + (x y : E) : + inner ℝ (x : Completion E) (completedRealFormOperator B (y : Completion E)) = B x y := by + rw [inner_completedRealFormOperator, completedRealBilinear_coe] + +theorem norm_completedRealFormOperator_le (B : E →L[ℝ] E →L[ℝ] ℝ) : + ‖completedRealFormOperator B‖ ≤ ‖B‖ := by + have hpoint (x y : Completion E) : + ‖completedRealBilinear B x y‖ ≤ ‖B‖ * ‖x‖ * ‖y‖ := by + refine Completion.induction_on₂ x y (isClosed_le (by fun_prop) (by fun_prop)) ?_ + intro a b + simpa only [completedRealBilinear_coe, Completion.norm_coe] using B.le_opNorm₂ a b + apply ContinuousLinearMap.opNorm_le_bound _ (norm_nonneg B) + intro y + change ‖(InnerProductSpace.toDual ℝ (Completion E)).symm + ((completedRealBilinear B).flip y)‖ ≤ ‖B‖ * ‖y‖ + rw [(InnerProductSpace.toDual ℝ (Completion E)).symm.norm_map] + apply ContinuousLinearMap.opNorm_le_bound _ (mul_nonneg (norm_nonneg B) (norm_nonneg y)) + intro x + change ‖completedRealBilinear B x y‖ ≤ (‖B‖ * ‖y‖) * ‖x‖ + simpa only [mul_right_comm] using hpoint x y + +end Hilbert +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/RealCoordinateWeyl.lean b/LeanPool/VacuumBellSeparation/Gaussian/RealCoordinateWeyl.lean new file mode 100644 index 0000000000..ac855a1d91 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/RealCoordinateWeyl.lean @@ -0,0 +1,73 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixWeylLabels +public import LeanPool.VacuumBellSeparation.Gaussian.DensityCharacteristicUniqueness + +/-! +# Actual Weyl operators in raw real displacement coordinates + +The label is the genuine inverse of interleaved real/imaginary coordinates. +The Weyl phase is exp(-i xᵀΩy), and the actual displacement Gaussian +characteristic is exp(-xᵀVx). These are raw displacement coordinates; the +physical covariance rotation and factor one half remain explicit later. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {m : ℕ} + +/-- Real coordinate Weyl obtained from `multiOscillatorWeyl`. -/ +def realCoordinateWeyl (x : Fin m × Fin 2 → ℝ) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + multiOscillatorWeyl ((complexRealLinearEquiv m).symm x) + +@[simp] theorem realCoordinateWeyl_zero : realCoordinateWeyl (0 : Fin m × Fin 2 → ℝ) = 1 := by + rw [realCoordinateWeyl, map_zero, multiOscillatorWeyl_zero] + +theorem realCoordinateWeyl_star (x : Fin m × Fin 2 → ℝ) : + star (realCoordinateWeyl x) = realCoordinateWeyl (-x) := by + change (multiOscillatorWeyl ((complexRealLinearEquiv m).symm x)).adjoint = _ + rw [multiOscillatorWeyl_adjoint, realCoordinateWeyl, map_neg] + +theorem realCoordinateWeyl_mul (x y : Fin m × Fin 2 → ℝ) : + realCoordinateWeyl x * realCoordinateWeyl y = + Complex.exp (-Complex.I * ((x ⬝ᵥ (modeSymplecticForm *ᵥ y) : ℝ) : ℂ)) • + realCoordinateWeyl (x + y) := by + rw [realCoordinateWeyl, realCoordinateWeyl, multiOscillatorWeyl_mul, + weylPhase, inner_im_eq_real_symplectic] + simp only [id_eq, LinearEquiv.apply_symm_apply, realCoordinateWeyl, map_add] + congr 2 + ring + +theorem gaussianDisplacement_realCoordinateWeyl + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hG : HasGaussianDisplacementCharacteristic A V) (x : Fin m × Fin 2 → ℝ) : + densityExpectation (multiModeNumberBasis m) A (realCoordinateWeyl x) = + Complex.exp ((-(x ⬝ᵥ (V *ᵥ x)) : ℝ) : ℂ) := by + let z := (complexRealLinearEquiv m).symm x + have hz : (WithLp.toLp 2 (fun j => z j) : MultiModePhaseSpace m) = z := by ext j; rfl + have hx : complexRealCoordinates m (fun j => z j) = x := + (complexRealLinearEquiv m).apply_symm_apply x + change densityExpectation (multiModeNumberBasis m) A (multiOscillatorWeyl z) = _ + simpa only [hz, hx] using hG (fun j => z j) + +theorem real_bilinear_smul (M : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (x y : Fin m × Fin 2 → ℝ) (a b : ℝ) : + (a • x) ⬝ᵥ (M *ᵥ (b • y)) = (a * b) * (x ⬝ᵥ (M *ᵥ y)) := by + simp only [Matrix.mulVec_smul, smul_dotProduct, dotProduct_smul, smul_eq_mul] + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/RealMatrixOperatorNorms.lean b/LeanPool/VacuumBellSeparation/Gaussian/RealMatrixOperatorNorms.lean new file mode 100644 index 0000000000..68c7aaec27 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/RealMatrixOperatorNorms.lean @@ -0,0 +1,159 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteMatrixPositiveTrace +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianCoordinateTransport +public import LeanPool.VacuumBellSeparation.Gaussian.CompactTraceNorm + +/-! +# Real covariance matrix norms equal the actual complex operator norms + +Entrywise complexification preserves the genuine positive square root +and absolute value. Real orthogonal spectral diagonalization proves +operator-norm preservation, including the empty index type. The actual +Hilbert positive trace identifies the nuclear norm without a dimension +factor or an entrywise matrix norm substitution. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {ι : Type*} + +theorem matrixOperator_real_smulCommClass {E : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] : + SMulCommClass ℝ (E →L[ℂ] E) (E →L[ℂ] E) := Algebra.to_smulCommClass + +/-- Real scalar multiplication commutes with composition on the coordinate Hilbert space. -/ +local instance euclideanOperatorRealSMulCommClass [Finite ι] : + let _ : Fintype ι := Fintype.ofFinite ι + SMulCommClass ℝ (EuclideanSpace ℂ ι →L[ℂ] EuclideanSpace ℂ ι) + (EuclideanSpace ℂ ι →L[ℂ] EuclideanSpace ℂ ι) := by + let _ : Fintype ι := Fintype.ofFinite ι + exact matrixOperator_real_smulCommClass + +variable [Fintype ι] + +theorem complexifyMatrix_sqrt {A : Matrix ι ι ℝ} (hA : A.PosSemidef) : + open scoped Classical in + complexifyMatrix (CFC.sqrt A) = CFC.sqrt (complexifyMatrix A) := by + classical + symm + apply CFC.sqrt_unique + · rw [← complexifyMatrix_mul, CFC.sqrt_mul_sqrt_self A hA.nonneg] + · exact (complexifyMatrix_posSemidef (CFC.sqrt_nonneg A).posSemidef).nonneg + +theorem complexifyMatrix_abs (A : Matrix ι ι ℝ) : + open scoped Classical in + complexifyMatrix (CFC.abs A) = CFC.abs (complexifyMatrix A) := by + classical + simp only [CFC.abs, Matrix.star_eq_conjTranspose, + Matrix.conjTranspose_eq_transpose_of_trivial] + rw [complexifyMatrix_sqrt (by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + Matrix.posSemidef_conjTranspose_mul_self A), complexifyMatrix_mul, + complexifyMatrix_transpose] + +variable [DecidableEq ι] + +omit [Fintype ι] in +theorem complexifyMatrix_diagonal (d : ι → ℝ) : + complexifyMatrix (Matrix.diagonal d) = Matrix.diagonal (fun i => (d i : ℂ)) := by + ext i j + by_cases h : i = j + · subst j + simp + · simp [Matrix.diagonal_apply_ne _ h] + +omit [DecidableEq ι] in +theorem norm_complex_ofReal_pi (d : ι → ℝ) : ‖fun i => (d i : ℂ)‖ = ‖d‖ := by + apply le_antisymm + · apply (pi_norm_le_iff_of_nonneg (norm_nonneg d)).mpr + intro i + simpa using norm_le_pi_norm d i + · apply (pi_norm_le_iff_of_nonneg (norm_nonneg (fun i => (d i : ℂ)))).mpr + intro i + simpa using norm_le_pi_norm (fun j => (d j : ℂ)) i + +theorem norm_complexifyMatrix_of_isHermitian {A : Matrix ι ι ℝ} + (hA : A.IsHermitian) : ‖complexifyMatrix A‖ = ‖A‖ := by + let O : Matrix ι ι ℝ := hA.eigenvectorUnitary + have hO : Oᵀ * O = 1 := by + simpa only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial] using + Unitary.coe_star_mul_self hA.eigenvectorUnitary + let U := orthogonalComplexUnitary O hO + have he : A = O * Matrix.diagonal hA.eigenvalues * Oᵀ := by + simpa only [Unitary.conjStarAlgAut_apply, Matrix.star_eq_conjTranspose, + Matrix.conjTranspose_eq_transpose_of_trivial, RCLike.ofReal_real_eq_id, + Function.id_comp] using hA.spectral_theorem + calc + ‖complexifyMatrix A‖ = + ‖(U : Matrix ι ι ℂ) * Matrix.diagonal (fun i => (hA.eigenvalues i : ℂ)) * + ((star U : unitary (Matrix ι ι ℂ)) : Matrix ι ι ℂ)‖ := by + conv_lhs => rw [he] + rw [complexifyMatrix_mul, complexifyMatrix_mul, + complexifyMatrix_transpose, complexifyMatrix_diagonal] + rfl + _ = ‖Matrix.diagonal (fun i => (hA.eigenvalues i : ℂ))‖ := by + rw [CStarRing.norm_mul_coe_unitary, CStarRing.norm_coe_unitary_mul] + _ = ‖hA.eigenvalues‖ := by rw [Matrix.l2_opNorm_diagonal, norm_complex_ofReal_pi] + _ = ‖A‖ := by + conv_rhs => rw [he] + rw [norm_real_orthogonal_conjugate O _ hO, Matrix.l2_opNorm_diagonal] + +theorem norm_complexifyMatrix (A : Matrix ι ι ℝ) : ‖complexifyMatrix A‖ = ‖A‖ := by + have hh := norm_complexifyMatrix_of_isHermitian + (Matrix.posSemidef_conjTranspose_mul_self A).isHermitian + rw [Matrix.conjTranspose_eq_transpose_of_trivial, complexifyMatrix_mul, + complexifyMatrix_transpose, Matrix.l2_opNorm_conjTranspose_mul_self] at hh + have hr : ‖Aᵀ * A‖ = ‖A‖ * ‖A‖ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + Matrix.l2_opNorm_conjTranspose_mul_self A + rw [hr] at hh + nlinarith [norm_nonneg (complexifyMatrix A), norm_nonneg A] + +theorem toEuclideanCLM_sqrt {A : Matrix ι ι ℂ} (hA : A.PosSemidef) : + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (CFC.sqrt A) = CFC.sqrt ((Matrix.toEuclideanCLM + (n := ι) (𝕜 := ℂ)) A) := by + symm + apply CFC.sqrt_unique + · rw [← map_mul, CFC.sqrt_mul_sqrt_self A hA.nonneg] + · exact map_nonneg (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (CFC.sqrt_nonneg A) + +theorem toEuclideanCLM_abs (A : Matrix ι ι ℂ) : + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (CFC.abs A) = CFC.abs ((Matrix.toEuclideanCLM + (n := ι) (𝕜 := ℂ)) A) := by + have hA : (star A * A).PosSemidef := by + simpa only [Matrix.star_eq_conjTranspose] using Matrix.posSemidef_conjTranspose_mul_self A + rw [CFC.abs, toEuclideanCLM_sqrt hA, map_mul, map_star] + rfl + +/-- Continuous linear map for the real matrix operator, of type `EuclideanSpace ℂ ι →L[ℂ] +EuclideanSpace ℂ ι`. -/ +def realMatrixOperator (A : Matrix ι ι ℝ) : EuclideanSpace ℂ ι →L[ℂ] EuclideanSpace ℂ ι := + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (complexifyMatrix A) + +theorem norm_realMatrixOperator (A : Matrix ι ι ℝ) : ‖realMatrixOperator A‖ = ‖A‖ := by + rw [realMatrixOperator, Matrix.l2_opNorm_toEuclideanCLM, norm_complexifyMatrix] + +theorem operatorTraceNorm_realMatrixOperator (A : Matrix ι ι ℝ) : + operatorTraceNorm (realMatrixOperator A) = ENNReal.ofReal (matrixTraceNorm A) := by + rw [operatorTraceNorm, realMatrixOperator, ← toEuclideanCLM_abs, + positiveTrace_toEuclideanCLM (CFC.abs_nonneg (complexifyMatrix A)).posSemidef, + ← complexifyMatrix_abs] + congr 1 + simp only [Matrix.trace, Matrix.diag_apply, Complex.re_sum, complexifyMatrix_apply, + Complex.ofReal_re, matrixTraceNorm] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/RegionalProductAllOperators.lean b/LeanPool/VacuumBellSeparation/Gaussian/RegionalProductAllOperators.lean new file mode 100644 index 0000000000..f3060b7589 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/RegionalProductAllOperators.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRegionalVNAProduct +public import Mathlib.Analysis.CStarAlgebra.SpecialFunctions.PosPart + +/-! +# Regional Gaussian factorization for all bounded operators + +The actual effects in a norm-closed star algebra linearly span that algebra. +Applying this proved C-star fact twice promotes the regional VNA effect +identity to the full product-state identity on all bounded local operators. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem mem_span_effects_of_mem_closed_starSubalgebra + (S : StarSubalgebra ℂ (E →L[ℂ] E)) (hS : IsClosed (S : Set (E →L[ℂ] E))) + {A : E →L[ℂ] E} (hA : A ∈ S) : + A ∈ Submodule.span ℂ {B : E →L[ℂ] E | B ∈ S ∧ 0 ≤ B ∧ B ≤ 1} := by + let : IsClosed (S : Set (E →L[ℂ] E)) := hS + let K := Submodule.span ℂ {B : E →L[ℂ] E | B ∈ S ∧ 0 ≤ B ∧ B ≤ 1} + suffices ∀ x : S, (x : E →L[ℂ] E) ∈ K from this ⟨A, hA⟩ + intro x + have hx : x ∈ Submodule.span ℂ ({y : S | 0 ≤ y} ∩ Metric.closedBall 0 1) := by + rw [CStarAlgebra.span_nonneg_inter_unitClosedBall] + exact Submodule.mem_top + induction hx using Submodule.span_induction with + | mem y hy => + have hy0 : 0 ≤ (y : E →L[ℂ] E) := hy.1 + have hy1 : y ≤ (1 : S) := by + apply (CStarAlgebra.norm_le_one_iff_of_nonneg y hy.1).mp + simpa only [Metric.mem_closedBall, dist_zero_right] using hy.2 + exact Submodule.subset_span ⟨y.2, hy0, hy1⟩ + | zero => exact K.zero_mem + | add y z hy hz ihy ihz => exact K.add_mem ihy ihz + | smul c y hy ih => exact K.smul_mem c ih + +theorem densityExpectation_product_of_vna_effects + (b : HilbertBasis ι ℂ E) {ρ : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) + (S T : VonNeumannAlgebra E) + (hfactor : ∀ A ∈ S, 0 ≤ A → A ≤ 1 → ∀ B ∈ T, 0 ≤ B → B ≤ 1 → + densityExpectation b ρ (A * B) = densityExpectation b ρ A * densityExpectation b ρ B) + {A B : E →L[ℂ] E} (hA : A ∈ S) (hB : B ∈ T) : + densityExpectation b ρ (A * B) = densityExpectation b ρ A * densityExpectation b ρ B := by + apply linearFunctional_factorization_span (densityExpectationCLM b hρ).toLinearMap + {A | A ∈ S ∧ 0 ≤ A ∧ A ≤ 1} {B | B ∈ T ∧ 0 ≤ B ∧ B ≤ 1} + (fun A hA B hB => hfactor A hA.1 hA.2.1 hA.2.2 B hB.1 hB.2.1 hB.2.2) + (mem_span_effects_of_mem_closed_starSubalgebra S.toStarSubalgebra + (vonNeumannAlgebra_isClosed S) hA) + (mem_span_effects_of_mem_closed_starSubalgebra T.toStarSubalgebra + (vonNeumannAlgebra_isClosed T) hB) + +/-- Genuine product-state factorization on the full two regional algebras. -/ +theorem gaussianPhysical_regional_vna_product {m : ℕ} + {ρ : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hρ : IsPositiveTraceClass ρ) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hV : V.IsHermitian) (hG : HasGaussianPhysicalCharacteristic ρ V) + (L R : Submodule ℝ (Fin m × Fin 2 → ℝ)) + (hΩ : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (modeSymplecticForm *ᵥ y) = 0) + (hcov : ∀ x ∈ L, ∀ y ∈ R, x ⬝ᵥ (V *ᵥ y) = 0) + {A B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : A ∈ generatedVNA (regionalWeylGenerators L)) + (hB : B ∈ generatedVNA (regionalWeylGenerators R)) : + densityExpectation (multiModeNumberBasis m) ρ (A * B) = + densityExpectation (multiModeNumberBasis m) ρ A * + densityExpectation (multiModeNumberBasis m) ρ B := by + exact densityExpectation_product_of_vna_effects (multiModeNumberBasis m) hρ + (generatedVNA (regionalWeylGenerators L)) (generatedVNA (regionalWeylGenerators R)) + (fun A hA hA0 hA1 B hB hB0 hB1 => + gaussianPhysical_regional_vna_effect_product hρ hV hG L R hΩ hcov + hA hA0 hA1 hB hB0 hB1) hA hB + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/RegionalWeylAlgebra.lean b/LeanPool/VacuumBellSeparation/Gaussian/RegionalWeylAlgebra.lean new file mode 100644 index 0000000000..37aa8bfd85 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/RegionalWeylAlgebra.lean @@ -0,0 +1,120 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Bell.PhysicalOscillatorCoordinates + +/-! +# The actual polynomial and norm-closed regional Weyl algebras + +A real label subspace supplies the actual Weyl generators. Their complex +linear span is already a unital star algebra by the proved Weyl relation. +Its operator-norm closure is the regional C-star algebra; no tensor-product +identification or independence is part of this definition. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ComplexConjugate + +variable {m : ℕ} + +/-- Weyl operators with test-function labels supported in the given region. -/ +def regionalWeylGenerators (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) : + Set (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) := + {A | ∃ x ∈ L, A = physicalOscillatorWeyl x} + +/-- Regional Weyl span obtained from `Submodule.span`. -/ +def regionalWeylSpan (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) : + Submodule ℂ (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) := + Submodule.span ℂ (regionalWeylGenerators L) + +theorem physicalOscillatorWeyl_mem_regionalWeylSpan + (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) {x : Fin m × Fin 2 → ℝ} (hx : x ∈ L) : + physicalOscillatorWeyl x ∈ regionalWeylSpan L := + Submodule.subset_span ⟨x, hx, rfl⟩ + +theorem one_mem_regionalWeylSpan (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) : + 1 ∈ regionalWeylSpan L := by + simpa only [physicalOscillatorWeyl_zero] using + physicalOscillatorWeyl_mem_regionalWeylSpan L L.zero_mem + +theorem mul_mem_regionalWeylSpan (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) + {A B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : A ∈ regionalWeylSpan L) (hB : B ∈ regionalWeylSpan L) : + A * B ∈ regionalWeylSpan L := by + induction hA using Submodule.span_induction with + | mem A hA => + rcases hA with ⟨x, hx, rfl⟩ + induction hB using Submodule.span_induction with + | mem B hB => + rcases hB with ⟨y, hy, rfl⟩ + rw [physicalOscillatorWeyl_mul] + exact (regionalWeylSpan L).smul_mem _ + (physicalOscillatorWeyl_mem_regionalWeylSpan L (L.add_mem hx hy)) + | zero => simpa only [mul_zero] using (regionalWeylSpan L).zero_mem + | add B C hB hC ihB ihC => + simpa only [mul_add] using (regionalWeylSpan L).add_mem ihB ihC + | smul c B hB ih => + simpa only [mul_smul_comm] using (regionalWeylSpan L).smul_mem c ih + | zero => simpa only [zero_mul] using (regionalWeylSpan L).zero_mem + | add A C hA hC ihA ihC => + simpa only [add_mul] using (regionalWeylSpan L).add_mem ihA ihC + | smul c A hA ih => + simpa only [smul_mul_assoc] using (regionalWeylSpan L).smul_mem c ih + +theorem star_mem_regionalWeylSpan (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : A ∈ regionalWeylSpan L) : star A ∈ regionalWeylSpan L := by + induction hA using Submodule.span_induction with + | mem A hA => + rcases hA with ⟨x, hx, rfl⟩ + rw [physicalOscillatorWeyl_star] + exact physicalOscillatorWeyl_mem_regionalWeylSpan L (L.neg_mem hx) + | zero => simpa only [star_zero] using (regionalWeylSpan L).zero_mem + | add A B hA hB ihA ihB => + simpa only [star_add] using (regionalWeylSpan L).add_mem ihA ihB + | smul c A hA ih => + simpa only [star_smul] using (regionalWeylSpan L).smul_mem (star c) ih + +/-- Continuous linear map for the regional Weyl polynomial algebra, of type `StarSubalgebra ℂ +(MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) where carrier`. -/ +def regionalWeylPolynomialAlgebra (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) : + StarSubalgebra ℂ (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) where + carrier := regionalWeylSpan L + zero_mem' := (regionalWeylSpan L).zero_mem + add_mem' := (regionalWeylSpan L).add_mem + mul_mem' := mul_mem_regionalWeylSpan L + one_mem' := one_mem_regionalWeylSpan L + algebraMap_mem' c := by + rw [Algebra.algebraMap_eq_smul_one] + exact (regionalWeylSpan L).smul_mem c (one_mem_regionalWeylSpan L) + star_mem' := star_mem_regionalWeylSpan L + +theorem regionalWeylPolynomialAlgebra_eq_adjoin (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) : + regionalWeylPolynomialAlgebra L = StarAlgebra.adjoin ℂ (regionalWeylGenerators L) := by + apply le_antisymm + · change Submodule.span ℂ (regionalWeylGenerators L) ≤ + (StarAlgebra.adjoin ℂ (regionalWeylGenerators L)).toSubalgebra.toSubmodule + apply Submodule.span_le.mpr + intro A hA + exact StarAlgebra.subset_adjoin ℂ (regionalWeylGenerators L) hA + · apply StarAlgebra.adjoin_le + exact Submodule.subset_span + +/-- Continuous linear map for the regional Weyl C⋆ algebra, of type `StarSubalgebra ℂ +(MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m)`. -/ +def regionalWeylCStarAlgebra (L : Submodule ℝ (Fin m × Fin 2 → ℝ)) : + StarSubalgebra ℂ (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) := + (regionalWeylPolynomialAlgebra L).topologicalClosure + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/RelabeledWeylAverage.lean b/LeanPool/VacuumBellSeparation/Gaussian/RelabeledWeylAverage.lean new file mode 100644 index 0000000000..f30dd0cdb0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/RelabeledWeylAverage.lean @@ -0,0 +1,151 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WeylIrreducibility + +/-! +# Actual Gaussian Weyl averages after real linear relabeling + +For every real continuous linear label map T, the Gaussian weighted strong +vector integral defines a bounded complex linear operator. Its vacuum +expectation is a genuinely integrable strictly positive real Gaussian, +so the averaged vacuum is nonzero. Symplecticity is not required for these +facts. Projection and intertwining identities require further proofs. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory ContinuousLinearMap +open scoped ComplexConjugate + +variable {m : ℕ} + +theorem integrable_relabeledWeylOrbit + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) + (x : MultiModeOscillatorSpace m) : + Integrable (fun z : Fin m → ℂ => + weylVacuumWeight m z • multiOscillatorWeyl (T (WithLp.toLp 2 z)) x) := by + have hc : Continuous (fun z : Fin m → ℂ => + weylVacuumWeight m z • multiOscillatorWeyl (T (WithLp.toLp 2 z)) x) := by + have hW := (continuous_multiOscillatorWeyl_apply x).comp + (T.continuous.comp (PiLp.continuous_toLp 2 _)) + have hw : Continuous (weylVacuumWeight m) := by unfold weylVacuumWeight; fun_prop + exact hw.smul hW + apply ((integrable_weylVacuumWeight m).norm.mul_const ‖x‖).mono' hc.aestronglyMeasurable + exact Filter.Eventually.of_forall fun z => by + rw [norm_smul, norm_multiOscillatorWeyl_apply] + +/-- Linear map for the relabeled Weyl average linear, of type `MultiModeOscillatorSpace m →ₗ[ℂ] +MultiModeOscillatorSpace m where toFun x`. -/ +def relabeledWeylAverageLinear + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : + MultiModeOscillatorSpace m →ₗ[ℂ] MultiModeOscillatorSpace m where + toFun x := ∫ z : Fin m → ℂ, + weylVacuumWeight m z • multiOscillatorWeyl (T (WithLp.toLp 2 z)) x + map_add' x y := by + simp only [map_add, smul_add] + exact integral_add (integrable_relabeledWeylOrbit T x) (integrable_relabeledWeylOrbit T y) + map_smul' c x := by + simp only [map_smul, RingHom.id_apply] + simp_rw [smul_comm (weylVacuumWeight m _) c] + exact integral_smul c _ + +theorem norm_relabeledWeylAverageLinear_le + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) + (x : MultiModeOscillatorSpace m) : + ‖relabeledWeylAverageLinear T x‖ ≤ + (∫ z : Fin m → ℂ, ‖weylVacuumWeight m z‖) * ‖x‖ := by + calc + _ ≤ ∫ z : Fin m → ℂ, + ‖weylVacuumWeight m z • multiOscillatorWeyl (T (WithLp.toLp 2 z)) x‖ := + norm_integral_le_integral_norm _ + _ = _ := by + simp only [norm_smul, norm_multiOscillatorWeyl_apply] + exact integral_mul_const ‖x‖ _ + +/-- Continuous linear map for the relabeled Weyl average, of type `MultiModeOscillatorSpace m →L[ℂ] +MultiModeOscillatorSpace m`. -/ +def relabeledWeylAverage + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + (relabeledWeylAverageLinear T).mkContinuous + (∫ z : Fin m → ℂ, ‖weylVacuumWeight m z‖) (norm_relabeledWeylAverageLinear_le T) + +@[simp] theorem relabeledWeylAverage_apply + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) + (x : MultiModeOscillatorSpace m) : + relabeledWeylAverage T x = ∫ z : Fin m → ℂ, + weylVacuumWeight m z • multiOscillatorWeyl (T (WithLp.toLp 2 z)) x := rfl + +theorem inner_relabeledWeylAverage + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) + (x y : MultiModeOscillatorSpace m) : + inner ℂ x (relabeledWeylAverage T y) = + ∫ z : Fin m → ℂ, weylVacuumWeight m z * + inner ℂ x (multiOscillatorWeyl (T (WithLp.toLp 2 z)) y) := by + rw [relabeledWeylAverage_apply, ← integral_inner (integrable_relabeledWeylOrbit T y)] + simp only [inner_smul_right] + +/-- Relabeled vacuum Gaussian defined as `Real.exp (-(‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ +2 + ‖T (WithLp.toLp 2 z)‖ ^ 2) / 2)`. -/ +def relabeledVacuumGaussian + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) (z : Fin m → ℂ) : ℝ := + Real.exp (-(‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 + + ‖T (WithLp.toLp 2 z)‖ ^ 2) / 2) + +theorem relabeledWeylOrbit_vacuum_inner + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) (z : Fin m → ℂ) : + inner ℂ (multiCoherentVector (0 : MultiModePhaseSpace m)) + (weylVacuumWeight m z • + multiOscillatorWeyl (T (WithLp.toLp 2 z)) (multiCoherentVector 0)) = + (relabeledVacuumGaussian T z : ℂ) := by + rw [inner_smul_right, multiOscillatorWeyl_vacuum, weylVacuumWeight, + relabeledVacuumGaussian, ← Complex.ofReal_exp, ← Complex.ofReal_mul, ← Real.exp_add] + congr 2 + ring + +theorem integrable_relabeledVacuumGaussian + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : + Integrable (relabeledVacuumGaussian T) := by + have hi := Integrable.const_inner (𝕜 := ℂ) (multiCoherentVector (0 : MultiModePhaseSpace m)) + (integrable_relabeledWeylOrbit T (multiCoherentVector 0)) + simp_rw [relabeledWeylOrbit_vacuum_inner] at hi + simpa only [RCLike.re_to_complex, Complex.ofReal_re] using hi.re + +theorem integral_relabeledVacuumGaussian_pos + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : + 0 < ∫ z : Fin m → ℂ, relabeledVacuumGaussian T z := + integral_exp_pos (integrable_relabeledVacuumGaussian T) + +theorem inner_relabeledWeylAverage_vacuum + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : + inner ℂ (multiCoherentVector (0 : MultiModePhaseSpace m)) + (relabeledWeylAverage T (multiCoherentVector 0)) = + ((∫ z : Fin m → ℂ, relabeledVacuumGaussian T z : ℝ) : ℂ) := by + rw [relabeledWeylAverage_apply, + ← integral_inner (integrable_relabeledWeylOrbit T (multiCoherentVector 0))] + simp_rw [relabeledWeylOrbit_vacuum_inner] + exact integral_ofReal + +/-- A concrete nonzero candidate vacuum for subsequent symplectic +projection identities. This theorem itself needs no symplectic premise. -/ +theorem relabeledWeylAverage_vacuum_ne_zero + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : + relabeledWeylAverage T (multiCoherentVector (0 : MultiModePhaseSpace m)) ≠ 0 := by + intro hz + have h := inner_relabeledWeylAverage_vacuum T + rw [hz, inner_zero_right] at h + have hr : (∫ z : Fin m → ℂ, relabeledVacuumGaussian T z) = 0 := by + exact Complex.ofReal_injective h.symm + exact (ne_of_gt (integral_relabeledVacuumGaussian_pos T)) hr + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/RelativeCovarianceCongruence.lean b/LeanPool/VacuumBellSeparation/Gaussian/RelativeCovarianceCongruence.lean new file mode 100644 index 0000000000..461afca0f9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/RelativeCovarianceCongruence.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixTraceNorm + +/-! +# Orthogonal transport of relative covariance perturbations + +For positive definite V and S V Sᵀ, the actual matrix +U=(S V Sᵀ)^(-1/2) S V^(1/2) is orthogonal. Relative perturbations are +conjugate by U, so their actual matrix trace norms agree. All inverse +square roots below are justified by positive definiteness. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Relative covariance perturbation given by `(CFC.sqrt V)⁻¹ * Δ * (CFC.sqrt V)⁻¹`. -/ +def relativeCovariancePerturbation (V Δ : Matrix ι ι ℝ) : Matrix ι ι ℝ := + (CFC.sqrt V)⁻¹ * Δ * (CFC.sqrt V)⁻¹ + +/-- Relative congruence orthogonal given by `(CFC.sqrt (S * V * Sᵀ))⁻¹ * S * CFC.sqrt V`. -/ +def relativeCongruenceOrthogonal (S V : Matrix ι ι ℝ) : Matrix ι ι ℝ := + (CFC.sqrt (S * V * Sᵀ))⁻¹ * S * CFC.sqrt V + +theorem relativeCongruenceOrthogonal_mul_transpose + (S : Matrix ι ι ℝ) {V : Matrix ι ι ℝ} + (hV : V.PosDef) (hW : (S * V * Sᵀ).PosDef) : + relativeCongruenceOrthogonal S V * (relativeCongruenceOrthogonal S V)ᵀ = 1 := by + let R := CFC.sqrt V + let Q := CFC.sqrt (S * V * Sᵀ) + have hR := matrix_sqrt_posDef hV + have hQ := matrix_sqrt_posDef hW + have hRt : Rᵀ = R := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hR.isHermitian.eq + have hQit : (Q⁻¹)ᵀ = Q⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hQ.inv.isHermitian.eq + have hRR : R * R = V := CFC.sqrt_mul_sqrt_self V hV.posSemidef.nonneg + have hQQ : Q * Q = S * V * Sᵀ := CFC.sqrt_mul_sqrt_self _ hW.posSemidef.nonneg + have hQdet : IsUnit Q.det := (Matrix.isUnit_iff_isUnit_det Q).mp hQ.isUnit + have hQiQ : Q⁻¹ * Q = 1 := Q.nonsing_inv_mul hQdet + have hQQi : Q * Q⁻¹ = 1 := Q.mul_nonsing_inv hQdet + change (Q⁻¹ * S * R) * (Q⁻¹ * S * R)ᵀ = 1 + simp only [Matrix.transpose_mul, hRt, hQit] + calc + _ = Q⁻¹ * (S * (R * R) * Sᵀ) * Q⁻¹ := by noncomm_ring + _ = Q⁻¹ * (Q * Q) * Q⁻¹ := by rw [hRR, hQQ] + _ = (Q⁻¹ * Q) * (Q * Q⁻¹) := by noncomm_ring + _ = 1 := by rw [hQiQ, hQQi, Matrix.one_mul] + +theorem relativeCongruenceOrthogonal_transpose_mul + (S : Matrix ι ι ℝ) {V : Matrix ι ι ℝ} + (hV : V.PosDef) (hW : (S * V * Sᵀ).PosDef) : + (relativeCongruenceOrthogonal S V)ᵀ * relativeCongruenceOrthogonal S V = 1 := + mul_eq_one_comm.mpr (relativeCongruenceOrthogonal_mul_transpose S hV hW) + +/-- Literal orthogonal similarity of the actual normalized perturbations. -/ +theorem relativeCovariancePerturbation_congruence + (S : Matrix ι ι ℝ) {V : Matrix ι ι ℝ} + (hV : V.PosDef) (hW : (S * V * Sᵀ).PosDef) (Δ : Matrix ι ι ℝ) : + relativeCovariancePerturbation (S * V * Sᵀ) (S * Δ * Sᵀ) = + relativeCongruenceOrthogonal S V * relativeCovariancePerturbation V Δ * + (relativeCongruenceOrthogonal S V)ᵀ := by + let R := CFC.sqrt V + let Q := CFC.sqrt (S * V * Sᵀ) + have hR := matrix_sqrt_posDef hV + have hQ := matrix_sqrt_posDef hW + have hRt : Rᵀ = R := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hR.isHermitian.eq + have hQit : (Q⁻¹)ᵀ = Q⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hQ.inv.isHermitian.eq + have hRdet : IsUnit R.det := (Matrix.isUnit_iff_isUnit_det R).mp hR.isUnit + have hRiR : R⁻¹ * R = 1 := R.nonsing_inv_mul hRdet + have hRRi : R * R⁻¹ = 1 := R.mul_nonsing_inv hRdet + change Q⁻¹ * (S * Δ * Sᵀ) * Q⁻¹ = + (Q⁻¹ * S * R) * (R⁻¹ * Δ * R⁻¹) * (Q⁻¹ * S * R)ᵀ + simp only [Matrix.transpose_mul, hRt, hQit] + calc + _ = Q⁻¹ * S * Δ * Sᵀ * Q⁻¹ := by noncomm_ring + _ = Q⁻¹ * S * (R * R⁻¹) * Δ * (R⁻¹ * R) * Sᵀ * Q⁻¹ := by + rw [hRiR, hRRi, Matrix.mul_one, Matrix.mul_one] + _ = _ := by noncomm_ring + +theorem matrixTraceNorm_relativeCovariancePerturbation_congruence + (S : Matrix ι ι ℝ) {V : Matrix ι ι ℝ} + (hV : V.PosDef) (hW : (S * V * Sᵀ).PosDef) (Δ : Matrix ι ι ℝ) : + matrixTraceNorm (relativeCovariancePerturbation (S * V * Sᵀ) (S * Δ * Sᵀ)) = + matrixTraceNorm (relativeCovariancePerturbation V Δ) := by + rw [relativeCovariancePerturbation_congruence S hV hW, + matrixTraceNorm_orthogonal_conjugate _ (relativeCongruenceOrthogonal_transpose_mul S hV hW)] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/RenyiEffectBound.lean b/LeanPool/VacuumBellSeparation/Gaussian/RenyiEffectBound.lean new file mode 100644 index 0000000000..ec8f75a7ea --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/RenyiEffectBound.lean @@ -0,0 +1,124 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveEffectExpectationDefs +public import LeanPool.VacuumBellSeparation.Gaussian.EffectPowerTrace +public import LeanPool.VacuumBellSeparation.Gaussian.SandwichedRenyiQuantity +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveDensityState + +/-! +# The actual arbitrary-effect bound from a finite sandwiched Rényi quantity + +The expectation is the actual positive square-root sandwich trace. It +agrees with the previously constructed density state. Positive Schatten +Hölder and the effect power estimate prove the manuscript inequality for +arbitrary bounded effects, with no Gaussian or commutation restriction. +The finite-quantity theorem derives the genuine factorization from the +quantity definition and does not assume an inverse or a trace-class Theta. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + + + +theorem positiveEffectExpectation_eq_densityExpectation (b : HilbertBasis ι ℂ E) + {ρ M : E →L[ℂ] E} (hρ : IsPositiveTraceClass ρ) (hM : 0 ≤ M) : + positiveEffectExpectation ρ M = ENNReal.ofReal (densityExpectation b ρ M).re := by + rw [positiveEffectExpectation, positiveTrace_sqrt_sandwich_swap hM hρ.1] + exact positiveTrace_density_sandwich b hρ hM + +theorem positiveEffectExpectation_factorization {ρ Θ R M : E →L[ℂ] E} + (hΘ : 0 ≤ Θ) (hR : IsSelfAdjoint R) (hM : 0 ≤ M) (hf : R * Θ * R = ρ) : + positiveEffectExpectation ρ M = positiveTrace (CFC.sqrt Θ * (R * M * R) * CFC.sqrt Θ) := by + let T := CFC.sqrt Θ * R * CFC.sqrt M + have hT₁ : T.adjoint.comp T = CFC.sqrt M * ρ * CFC.sqrt M := by + change star (CFC.sqrt Θ * R * CFC.sqrt M) * (CFC.sqrt Θ * R * CFC.sqrt M) = _ + rw [star_mul, star_mul, (CFC.sqrt_nonneg Θ).isSelfAdjoint.star_eq, hR.star_eq, + (CFC.sqrt_nonneg M).isSelfAdjoint.star_eq] + calc + _ = CFC.sqrt M * (R * (CFC.sqrt Θ * CFC.sqrt Θ) * R) * CFC.sqrt M := by noncomm_ring + _ = _ := by rw [← pow_two, CFC.sq_sqrt Θ hΘ, hf] + have hT₂ : T.comp T.adjoint = CFC.sqrt Θ * (R * M * R) * CFC.sqrt Θ := by + change (CFC.sqrt Θ * R * CFC.sqrt M) * star (CFC.sqrt Θ * R * CFC.sqrt M) = _ + rw [star_mul, star_mul, (CFC.sqrt_nonneg Θ).isSelfAdjoint.star_eq, hR.star_eq, + (CFC.sqrt_nonneg M).isSelfAdjoint.star_eq] + calc + _ = CFC.sqrt Θ * (R * (CFC.sqrt M * CFC.sqrt M) * R) * CFC.sqrt Θ := by noncomm_ring + _ = _ := by rw [← pow_two, CFC.sq_sqrt M hM] + rw [positiveEffectExpectation, ← hT₁, positiveTrace_adjoint_comp_eq_comp_adjoint, hT₂] + +theorem gaussianRenyiTau_holderConjugate {r : ℝ} (hr : 1 < r) : + r.HolderConjugate (1 / gaussianRenyiTau r) := by + apply Real.holderConjugate_iff.mpr + refine ⟨hr, ?_⟩ + rw [one_div, inv_inv] + unfold gaussianRenyiTau + field_simp [ne_of_gt (show 0 < r by linarith)] + ring + +theorem renyi_effect_bound_of_factorization {ρ σ Θ M : E →L[ℂ] E} + (hσ : IsPositiveTraceClass σ) {r : ℝ} (hr : 1 < r) (hΘ : 0 ≤ Θ) + (htrace : positiveTrace (Θ ^ r) < ∞) + (hf : σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ) + (hM₀ : 0 ≤ M) (hM₁ : M ≤ 1) : + positiveEffectExpectation ρ M ^ r ≤ + positiveTrace (Θ ^ r) * positiveEffectExpectation σ M ^ (r - 1) := by + have hr₀ : 0 < r := lt_trans zero_lt_one hr + have hτ₀ := gaussianRenyiTau_pos hr + have hτ₁ := (gaussianRenyiTau_lt_one hr).le + let B := referenceEffectPower σ M (gaussianRenyiTau r) + have hB : 0 ≤ B := referenceEffectPower_nonneg hM₀ _ + have hcσ := positiveTraceClass_isCompactOperator hσ + have hcB : IsCompactOperator B := referenceEffectPower_isCompactOperator hcσ hσ.1 hτ₀ + have hcΘ := isCompactOperator_of_finite_positive_power_trace hΘ hr₀ htrace + have hhold := positiveTrace_sandwich_holder hcΘ hcB hΘ hB + (gaussianRenyiTau_holderConjugate hr) + have hleft : positiveEffectExpectation ρ M = positiveTrace (CFC.sqrt B * Θ * CFC.sqrt B) := by + calc + _ = positiveTrace (CFC.sqrt Θ * B * CFC.sqrt Θ) := by + simpa only [B, referenceEffectPower] using + positiveEffectExpectation_factorization hΘ CFC.rpow_nonneg.isSelfAdjoint hM₀ hf + _ = _ := positiveTrace_sqrt_sandwich_swap hΘ hB + rw [← hleft, one_div_one_div] at hhold + have hbtrace : positiveTrace (B ^ (1 / gaussianRenyiTau r : ℝ)) ≤ + positiveEffectExpectation σ M := referenceEffectPower_trace_bound hcσ hσ.1 hM₀ hM₁ hτ₀ hτ₁ + have h := hhold.trans (_root_.mul_le_mul_right + (ENNReal.rpow_le_rpow hbtrace hτ₀.le) (positiveTrace (Θ ^ r) ^ (1 / r))) + have hpower := ENNReal.rpow_le_rpow h hr₀.le + have hτr : gaussianRenyiTau r * r = r - 1 := by + unfold gaussianRenyiTau + exact div_mul_cancel₀ _ hr₀.ne' + rwa [ENNReal.mul_rpow_of_nonneg _ _ hr₀.le, ← ENNReal.rpow_mul, + one_div_mul_cancel hr₀.ne', ENNReal.rpow_one, ← ENNReal.rpow_mul, hτr] at hpower + +theorem finite_sandwichedRenyi_effect_bound {ρ σ M : E →L[ℂ] E} + (hσ : IsFaithfulDensity σ) {r : ℝ} (hr : 1 < r) + (hQ : sandwichedRenyiQuantity ρ σ r < ∞) (hM₀ : 0 ≤ M) (hM₁ : M ≤ 1) : + positiveEffectExpectation ρ M ^ r ≤ + sandwichedRenyiQuantity ρ σ r * positiveEffectExpectation σ M ^ (r - 1) := by + have hext : ∃ Θ : E →L[ℂ] E, 0 ≤ Θ ∧ + σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ := by + by_contra hn + rw [sandwichedRenyiQuantity_eq_top_of_no_extension hn] at hQ + exact lt_irrefl _ hQ + obtain ⟨Θ, hΘ, hf⟩ := hext + have hq := sandwichedRenyiQuantity_eq_power_trace hσ hr hΘ hf + rw [hq] at hQ ⊢ + exact renyi_effect_bound_of_factorization + ⟨hσ.1, by rw [hσ.2.1]; exact ENNReal.one_lt_top⟩ hr hΘ hQ hf hM₀ hM₁ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/RenyiExponentialEnvelope.lean b/LeanPool/VacuumBellSeparation/Gaussian/RenyiExponentialEnvelope.lean new file mode 100644 index 0000000000..d218801743 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/RenyiExponentialEnvelope.lean @@ -0,0 +1,57 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiConsequences + +/-! +# A finite exponential comparison gives an explicit square-root envelope +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal + +theorem exp_sub_one_le_two_mul {x : ℝ} (hx : 0 ≤ x) (hx1 : x ≤ 1) : + Real.exp x - 1 ≤ 2 * x := by + have h := Real.norm_exp_sub_one_sub_id_le (x := x) + (by simpa only [Real.norm_eq_abs, abs_of_nonneg hx] using hx1) + rw [Real.norm_eq_abs, Real.norm_eq_abs, abs_of_nonneg hx] at h + have hu := (abs_le.mp h).2 + nlinarith + +theorem renyi_exponential_sqrt_envelope {r x : ℝ} + (hr : 2 ≤ r) (hx : 0 ≤ x) (hx1 : x ≤ 1) : + (ENNReal.ofReal (Real.exp x) ^ (1 / (r - 1)) - 1) ^ (1 / 2 : ℝ) ≤ + ENNReal.ofReal (Real.sqrt (2 * x)) := by + have hr1 : 0 < r - 1 := by linarith + have hp0 : 0 ≤ 1 / (r - 1) := by positivity + have hp1 : 1 / (r - 1) ≤ 1 := (div_le_one hr1).mpr (by linarith) + have hy : 0 ≤ x * (1 / (r - 1)) := mul_nonneg hx hp0 + have hyx : x * (1 / (r - 1)) ≤ x := by + simpa only [mul_one] using mul_le_mul_of_nonneg_left hp1 hx + have hb : Real.exp (x * (1 / (r - 1))) - 1 ≤ 2 * x := + (exp_sub_one_le_two_mul hy (hyx.trans hx1)).trans + (mul_le_mul_of_nonneg_left hyx (by norm_num)) + have hENN : ENNReal.ofReal (Real.exp x) ^ (1 / (r - 1)) - 1 ≤ ENNReal.ofReal (2 * x) := by + rw [ENNReal.ofReal_rpow_of_pos (Real.exp_pos _), ← Real.exp_mul, + ← ENNReal.ofReal_one, ← ENNReal.ofReal_sub _ (by norm_num : (0 : ℝ) ≤ 1)] + exact ENNReal.ofReal_le_ofReal hb + apply (ENNReal.rpow_le_rpow hENN (by norm_num : (0 : ℝ) ≤ 1 / 2)).trans_eq + rw [ENNReal.ofReal_rpow_of_nonneg (by positivity) (by norm_num), ← Real.sqrt_eq_rpow] + +theorem sqrt_forward_envelope {r A s : ℝ} (hr : 0 ≤ r) (hA : 0 ≤ A) (hs : 0 < s) : + Real.sqrt (2 * (8 * r * (A / s ^ 2))) = (4 * Real.sqrt (r * A)) / s := by + rw [show 2 * (8 * r * (A / s ^ 2)) = 16 * (r * A) / s ^ 2 by ring, + Real.sqrt_div (by positivity), Real.sqrt_mul (by norm_num : (0 : ℝ) ≤ 16), Real.sqrt_sq hs.le] + have h16 : Real.sqrt (16 : ℝ) = 4 := by + rw [show (16 : ℝ) = 4 ^ 2 by norm_num, Real.sqrt_sq (by norm_num)] + rw [h16] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/RenyiTwoTraceDistance.lean b/LeanPool/VacuumBellSeparation/Gaussian/RenyiTwoTraceDistance.lean new file mode 100644 index 0000000000..83b8e6166d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/RenyiTwoTraceDistance.lean @@ -0,0 +1,120 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveSquareDifferenceTrace +public import LeanPool.VacuumBellSeparation.Gaussian.FaithfulRenyiEffectBound + +/-! +# The actual r=2 trace-distance consequence + +The centered Hilbert--Schmidt identity and the actual (4,2,4) Schatten +estimate give the manuscript trace-distance bound at r=2. The inverse +sandwich is the genuine bounded extension on the dense inverse-power +range, derived from finite Q_2. No bounded inverse or finite-dimensional +substitute is introduced. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem positiveTrace_centered_density_square {ρ σ Θ : E →L[ℂ] E} + (hσ : 0 ≤ σ) (hσt : positiveTrace σ = 1) (hρt : positiveTrace ρ = 1) + (hcΘ : IsCompactOperator Θ) (hΘ : 0 ≤ Θ) + (hf : CFC.sqrt (CFC.sqrt σ) * Θ * CFC.sqrt (CFC.sqrt σ) = ρ) : + positiveTrace ((Θ - CFC.sqrt σ) * (Θ - CFC.sqrt σ)) + 1 = + positiveTrace (Θ * Θ) := by + have hs : CFC.sqrt σ * CFC.sqrt σ = σ := by rw [← pow_two, CFC.sq_sqrt σ hσ] + have h := positiveTrace_square_difference_add hcΘ hΘ (CFC.sqrt_nonneg σ) + rw [hf, hs, hσt, hρt] at h + apply (ENNReal.add_left_inj ENNReal.one_ne_top).mp + simpa only [add_assoc, one_add_one_eq_two, mul_one] using h + +theorem sqrt_sqrt_eq_renyiTwo_power {σ : E →L[ℂ] E} (hσ : 0 ≤ σ) : + CFC.sqrt (CFC.sqrt σ) = σ ^ (gaussianRenyiTau 2 / 2) := by + rw [CFC.sqrt_eq_rpow, CFC.sqrt_eq_rpow, + CFC.rpow_rpow_of_exponent_nonneg σ (1 / 2) (1 / 2) (by norm_num) (by norm_num) hσ] + norm_num [gaussianRenyiTau] + +theorem renyiTwo_trace_distance_of_factorization {ρ σ Θ : E →L[ℂ] E} + (hσ : IsFaithfulDensity σ) (hρt : positiveTrace ρ = 1) + (hΘ : 0 ≤ Θ) (htΘ : positiveTrace (Θ ^ (2 : ℝ)) < ∞) + (hf : σ ^ (gaussianRenyiTau 2 / 2) * Θ * σ ^ (gaussianRenyiTau 2 / 2) = ρ) : + operatorTraceNorm (ρ - σ) ≤ (positiveTrace (Θ ^ (2 : ℝ)) - 1) ^ (1 / 2 : ℝ) := by + let S := CFC.sqrt σ + let K := Θ - S + have hS : 0 ≤ S := CFC.sqrt_nonneg σ + have hcσ := positiveTraceClass_isCompactOperator hσ.isPositiveTraceClass + have hcS : IsCompactOperator S := by + dsimp only [S] + rw [CFC.sqrt_eq_rpow] + exact isCompactOperator_positive_rpow hcσ hσ.1 (by norm_num) + have hcΘ := isCompactOperator_of_finite_positive_power_trace hΘ (by norm_num : (0 : ℝ) < 2) htΘ + have hK : IsSelfAdjoint K := hΘ.isSelfAdjoint.sub hS.isSelfAdjoint + have hcK : IsCompactOperator K := hcΘ.sub hcS + have hf' : CFC.sqrt S * Θ * CFC.sqrt S = ρ := by + simpa only [S, sqrt_sqrt_eq_renyiTwo_power hσ.1] using hf + have hSS : S * S = σ := by dsimp only [S]; rw [← pow_two, CFC.sq_sqrt σ hσ.1] + have hfactor : CFC.sqrt S * K * CFC.sqrt S = ρ - σ := by + dsimp only [K] + rw [mul_sub, sub_mul, hf'] + congr 1 + calc + CFC.sqrt S * S * CFC.sqrt S = + (CFC.sqrt S * CFC.sqrt S) * (CFC.sqrt S * CFC.sqrt S) := by + calc + _ = CFC.sqrt S * (CFC.sqrt S * CFC.sqrt S) * CFC.sqrt S := + congrArg (fun X : E →L[ℂ] E => CFC.sqrt S * X * CFC.sqrt S) + (CFC.sqrt_mul_sqrt_self S hS).symm + _ = _ := by noncomm_ring + _ = σ := by rw [CFC.sqrt_mul_sqrt_self S hS, hSS] + have hcenter := positiveTrace_centered_density_square hσ.1 hσ.2.1 hρt hcΘ hΘ hf' + have hpow : Θ ^ (2 : ℝ) = Θ * Θ := by + simpa only [Nat.cast_ofNat, pow_two] using + (CFC.rpow_natCast (A := E →L[ℂ] E) Θ 2 hΘ) + have hcenter' : positiveTrace (K * K) = positiveTrace (Θ ^ (2 : ℝ)) - 1 := by + rw [hpow, ← hcenter] + exact (ENNReal.add_sub_cancel_right ENNReal.one_ne_top).symm + have hb := operatorTraceNorm_sqrt_sandwich_le hcK hK hcS hS + rw [hfactor, hSS, hσ.2.1, ENNReal.one_rpow, mul_one, hcenter'] at hb + exact hb + +theorem finite_renyiTwo_trace_distance {ρ σ : E →L[ℂ] E} + (hσ : IsFaithfulDensity σ) (hρt : positiveTrace ρ = 1) + (hQ : sandwichedRenyiQuantity ρ σ 2 < ∞) : + operatorTraceNorm (ρ - σ) ≤ + (sandwichedRenyiQuantity ρ σ 2 - 1) ^ (1 / 2 : ℝ) := by + have hext : ∃ Θ : E →L[ℂ] E, 0 ≤ Θ ∧ + σ ^ (gaussianRenyiTau 2 / 2) * Θ * σ ^ (gaussianRenyiTau 2 / 2) = ρ := by + by_contra hn + rw [sandwichedRenyiQuantity_eq_top_of_no_extension hn] at hQ + exact lt_irrefl _ hQ + obtain ⟨Θ, hΘ, hf⟩ := hext + have hq := sandwichedRenyiQuantity_eq_power_trace hσ (by norm_num : (1 : ℝ) < 2) hΘ hf + rw [hq] at hQ ⊢ + exact renyiTwo_trace_distance_of_factorization hσ hρt hΘ hQ hf + +/-- Extended-valued r=2 endpoint, including infinite Q without any +subtraction of real infinities. -/ +theorem renyiTwo_trace_distance {ρ σ : E →L[ℂ] E} + (hσ : IsFaithfulDensity σ) (hρt : positiveTrace ρ = 1) : + operatorTraceNorm (ρ - σ) ≤ + (sandwichedRenyiQuantity ρ σ 2 - 1) ^ (1 / 2 : ℝ) := by + by_cases hQ : sandwichedRenyiQuantity ρ σ 2 = ∞ + · rw [hQ, ENNReal.top_sub ENNReal.one_ne_top, ENNReal.top_rpow_of_pos (by norm_num)] + exact le_top + · exact finite_renyiTwo_trace_distance hσ hρt (lt_top_iff_ne_top.mpr hQ) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ReserveNormalization.lean b/LeanPool/VacuumBellSeparation/Gaussian/ReserveNormalization.lean new file mode 100644 index 0000000000..6e482c4eaf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ReserveNormalization.lean @@ -0,0 +1,115 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.TraceNormCompression +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedCommutation + +/-! +# Reserve lower bounds control the actual normalized perturbation + +For a positive invertible finite target weight H, a lower bound +c iota† R² iota <= H constructs the actual rectangular map +A=R iota H^(-1/2), with ||A||² <= c^(-1). A full-space factorization +D=R Y R therefore gives the actual normalized compression A† Y A. +Neither the full reserve R nor the full perturbation Y is inverted. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Reserve normalization map given by `R.comp (ι.toContinuousLinearMap.comp (H ^ (-(1 / 2) : +ℝ)))`. -/ +def reserveNormalizationMap (ι : E →ₗᵢ[ℂ] F) + (R : F →L[ℂ] F) (H : E →L[ℂ] E) : E →L[ℂ] F := + R.comp (ι.toContinuousLinearMap.comp (H ^ (-(1 / 2) : ℝ))) + +/-- Normalized reserve compression given by `H ^ (-(1 / 2) : ℝ) * compression ι D * H ^ (-(1 / 2) : +ℝ)`. -/ +def normalizedReserveCompression (ι : E →ₗᵢ[ℂ] F) + (D : F →L[ℂ] F) (H : E →L[ℂ] E) : E →L[ℂ] E := + H ^ (-(1 / 2) : ℝ) * compression ι D * H ^ (-(1 / 2) : ℝ) + +theorem reserveNormalizationMap_gram (ι : E →ₗᵢ[ℂ] F) + {R : F →L[ℂ] F} (hR : IsSelfAdjoint R) (H : E →L[ℂ] E) : + (reserveNormalizationMap ι R H).adjoint.comp (reserveNormalizationMap ι R H) = + normalizedReserveCompression ι (R * R) H := by + have hN : (H ^ (-(1 / 2) : ℝ)).adjoint = H ^ (-(1 / 2) : ℝ) := + (CFC.rpow_nonneg (a := H) (y := -(1 / 2 : ℝ))).isSelfAdjoint.adjoint_eq + simp only [reserveNormalizationMap, normalizedReserveCompression, compression, + adjoint_comp, hR.adjoint_eq, hN, mul_def, comp_assoc] + +theorem reserveNormalizationMap_factorization (ι : E →ₗᵢ[ℂ] F) + {R : F →L[ℂ] F} (hR : IsSelfAdjoint R) + (Y : F →L[ℂ] F) (H : E →L[ℂ] E) : + normalizedReserveCompression ι (R * Y * R) H = + (reserveNormalizationMap ι R H).adjoint.comp + (Y.comp (reserveNormalizationMap ι R H)) := by + have hN : (H ^ (-(1 / 2) : ℝ)).adjoint = H ^ (-(1 / 2) : ℝ) := + (CFC.rpow_nonneg (a := H) (y := -(1 / 2 : ℝ))).isSelfAdjoint.adjoint_eq + simp only [reserveNormalizationMap, normalizedReserveCompression, compression, + adjoint_comp, hR.adjoint_eq, hN, mul_def, comp_assoc] + +theorem reserveNormalizationMap_norm_sq_le (ι : E →ₗᵢ[ℂ] F) + {R : F →L[ℂ] F} (hR : IsSelfAdjoint R) + {H : E →L[ℂ] E} (hH : IsStrictlyPositive H) + {c : ℝ} (hc : 0 < c) (hlower : c • compression ι (R * R) ≤ H) : + ‖reserveNormalizationMap ι R H‖ ^ 2 ≤ c⁻¹ := by + let A := reserveNormalizationMap ι R H + have hN : IsSelfAdjoint (H ^ (-(1 / 2) : ℝ)) := CFC.rpow_nonneg.isSelfAdjoint + have hbound : c • (A.adjoint.comp A) ≤ 1 := by + have h := hN.conjugate_le_conjugate hlower + rw [CFC.conjugate_rpow_neg_one_half H hH] at h + simpa only [A, reserveNormalizationMap_gram ι hR, + normalizedReserveCompression, mul_smul_comm, smul_mul_assoc] using h + have hp : 0 ≤ A.adjoint.comp A := by + exact nonneg_iff_isPositive.mpr (isPositive_adjoint_comp_self A) + have hn := (CStarAlgebra.norm_le_one_iff_of_nonneg + (c • (A.adjoint.comp A)) (smul_nonneg hc.le hp)).mpr hbound + rw [norm_smul, Real.norm_eq_abs, abs_of_pos hc, norm_adjoint_comp_self] at hn + change ‖A‖ ^ 2 ≤ c⁻¹ + rw [← one_div, le_div_iff₀ hc] + simpa only [pow_two, mul_comm, mul_left_comm, mul_assoc] using hn + +theorem norm_normalizedReserveCompression_le (ι : E →ₗᵢ[ℂ] F) + {R : F →L[ℂ] F} (hR : IsSelfAdjoint R) + {H : E →L[ℂ] E} (hH : IsStrictlyPositive H) + {c : ℝ} (hc : 0 < c) (hlower : c • compression ι (R * R) ≤ H) + (Y : F →L[ℂ] F) : + ‖normalizedReserveCompression ι (R * Y * R) H‖ ≤ c⁻¹ * ‖Y‖ := by + rw [reserveNormalizationMap_factorization ι hR] + let A := reserveNormalizationMap ι R H + calc + ‖A.adjoint.comp (Y.comp A)‖ ≤ ‖A.adjoint‖ * (‖Y‖ * ‖A‖) := + (opNorm_comp_le _ _).trans (mul_le_mul_of_nonneg_left (opNorm_comp_le _ _) (norm_nonneg _)) + _ = ‖A‖ ^ 2 * ‖Y‖ := by rw [adjoint.norm_map]; ring + _ ≤ c⁻¹ * ‖Y‖ := mul_le_mul_of_nonneg_right + (reserveNormalizationMap_norm_sq_le ι hR hH hc hlower) (norm_nonneg _) + +theorem operatorTraceNorm_normalizedReserveCompression_le (ι : E →ₗᵢ[ℂ] F) + {R : F →L[ℂ] F} (hR : IsSelfAdjoint R) + {H : E →L[ℂ] E} (hH : IsStrictlyPositive H) + {c : ℝ} (hc : 0 < c) (hlower : c • compression ι (R * R) ≤ H) + {Y : F →L[ℂ] F} (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) : + operatorTraceNorm (normalizedReserveCompression ι (R * Y * R) H) ≤ + ENNReal.ofReal c⁻¹ * operatorTraceNorm Y := by + rw [reserveNormalizationMap_factorization ι hR] + exact (operatorTraceNorm_adjoint_sandwich_le hcY hY _).trans + (_root_.mul_le_mul_left (ENNReal.ofReal_le_ofReal + (reserveNormalizationMap_norm_sq_le ι hR hH hc hlower)) _) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ReserveNuclearSeries.lean b/LeanPool/VacuumBellSeparation/Gaussian/ReserveNuclearSeries.lean new file mode 100644 index 0000000000..7347e51b64 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ReserveNuclearSeries.lean @@ -0,0 +1,54 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.NuclearNormConvergence + +/-! +# Constructing a reserve factor from its nuclear series + +Termwise factorizations and a finite actual nuclear sum construct a +bounded compact self-adjoint factor. Multiplication of the actual +operator-norm sums then identifies the full covariance operator. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] {ι : Type*} + +theorem hasSum_sandwiched_operator_series {Z : ι → E →L[ℂ] E} + (hs : Summable Z) (R : E →L[ℂ] E) : + HasSum (fun i => R * Z i * R) (R * (∑' i, Z i) * R) := + (hs.hasSum.mul_left R).mul_right R + +theorem exists_reserve_factor_of_nuclear_series + {G Z : ι → E →L[ℂ] E} {D : E →L[ℂ] E} (R : E →L[ℂ] E) + (hG : HasSum G D) (hfactor : ∀ i, G i = R * Z i * R) + (hcZ : ∀ i, IsCompactOperator (Z i)) (hZ : ∀ i, IsSelfAdjoint (Z i)) + (ht : (∑' i, operatorTraceNorm (Z i)) < ∞) : + ∃ Y : E →L[ℂ] E, D = R * Y * R ∧ IsCompactOperator Y ∧ IsSelfAdjoint Y ∧ + operatorTraceNorm Y ≤ ∑' i, operatorTraceNorm (Z i) ∧ + operatorTraceNorm Y < ∞ := by + obtain ⟨hs, hc, hsa, hbound⟩ := nuclear_sum_constructs_compact_selfAdjoint hcZ hZ ht + have hfun : HasSum (fun i => (Z i : E → E)) + (fun x => ((∑' i, Z i) : E →L[ℂ] E) x) := by + apply Pi.hasSum.mpr + intro x + exact (ContinuousLinearMap.apply ℂ E x).hasSum hs.hasSum + rw [hfun.tsum_eq] at hc + refine ⟨∑' i, Z i, ?_, hc, hsa, hbound, hbound.trans_lt ht⟩ + have hsum := hasSum_sandwiched_operator_series hs R + have hG' : HasSum (fun i => R * Z i * R) D := + hG.congr_fun (fun i => (hfactor i).symm) + exact hG'.unique hsum + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ReserveThermalCompression.lean b/LeanPool/VacuumBellSeparation/Gaussian/ReserveThermalCompression.lean new file mode 100644 index 0000000000..16f6653957 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ReserveThermalCompression.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ReserveNormalization +public import LeanPool.VacuumBellSeparation.Gaussian.CompressionPower + +/-! +# Thermal normalization of the source reserve factorizations + +The proved high- and low-compression inequalities supply the lower weight +bound used by ReserveNormalization. Thus a genuine full-space reserve +factorization controls both norms of the normalized finite perturbation. +Only the target thermal weight is required to be strictly positive; the +full commutation operator may have spectrum at either endpoint. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem reserve_rpow_mul_self (B : F →L[ℂ] F) {a : ℝ} (ha : 0 ≤ a) : + reserve B ^ a * reserve B ^ a = reserve B ^ (2 * a) := by + have hR : 0 ≤ reserve B := CFC.sqrt_nonneg (1 - B ^ 2) + rw [← positiveOperator_rpow_add_nonneg hR ha ha] + congr 1 + ring + +theorem thermal_low_reserve_lower_bound (ι : E →ₗᵢ[ℂ] F) + {B : F →L[ℂ] F} (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) + {a : ℝ} (ha₀ : 0 < a) (ha₁ : a ≤ 1 / 2) : + thermalConst a • compression ι (reserve B ^ a * reserve B ^ a) ≤ + normalizedThermal a (compression ι B) := by + have ha1 : a < 1 := by linarith + rw [reserve_rpow_mul_self B ha₀.le] + have hlow := smul_le_smul_of_nonneg_left (low_compression ι hB hnorm ha₀ ha₁) + (thermalConst_pos ha₀ ha1).le + have hc := thermal_comparison_signed ha₀ ha1 + (compression_isSelfAdjoint ι hB) ((norm_compression_le ι B).trans hnorm) + rw [← normalizedThermal_eq_cfc_abs ha₀ (compression_isSelfAdjoint ι hB) + ((norm_compression_le ι B).trans hnorm)] at hc + exact hlow.trans hc + +theorem thermal_high_reserve_lower_bound (ι : E →ₗᵢ[ℂ] F) + {B : F →L[ℂ] F} (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) (n : ℕ) : + let b : ℝ := ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) + thermalConst b • compression ι (reserve B ^ b * reserve B ^ b) ≤ + normalizedThermal b (compression ι B) := by + dsimp only + rw [reserve_rpow_mul_self B (by positivity)] + exact (normalizedThermal_compression_chain ι hB hnorm n).1.trans + (normalizedThermal_compression_chain ι hB hnorm n).2 + +theorem low_thermal_normalized_factorization_bounds (ι : E →ₗᵢ[ℂ] F) + {B : F →L[ℂ] F} (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) + {a : ℝ} (ha₀ : 0 < a) (ha₁ : a ≤ 1 / 2) + (hH : IsStrictlyPositive (normalizedThermal a (compression ι B))) + {Y : F →L[ℂ] F} (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) : + let Z := normalizedReserveCompression ι (reserve B ^ a * Y * reserve B ^ a) + (normalizedThermal a (compression ι B)) + ‖Z‖ ≤ (thermalConst a)⁻¹ * ‖Y‖ ∧ + operatorTraceNorm Z ≤ ENNReal.ofReal (thermalConst a)⁻¹ * operatorTraceNorm Y := by + dsimp only + have hc := thermalConst_pos ha₀ (show a < 1 by linarith) + have hl := thermal_low_reserve_lower_bound ι hB hnorm ha₀ ha₁ + have hR : IsSelfAdjoint (reserve B ^ a) := CFC.rpow_nonneg.isSelfAdjoint + exact ⟨norm_normalizedReserveCompression_le ι hR hH hc hl Y, + operatorTraceNorm_normalizedReserveCompression_le ι hR hH hc hl hcY hY⟩ + +theorem high_thermal_normalized_factorization_bounds (ι : E →ₗᵢ[ℂ] F) + {B : F →L[ℂ] F} (hB : IsSelfAdjoint B) (hnorm : ‖B‖ ≤ 1) (n : ℕ) + (hH : IsStrictlyPositive (normalizedThermal + (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) (compression ι B))) + {Y : F →L[ℂ] F} (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) : + let b : ℝ := ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) + let Z := normalizedReserveCompression ι (reserve B ^ b * Y * reserve B ^ b) + (normalizedThermal b (compression ι B)) + ‖Z‖ ≤ (thermalConst b)⁻¹ * ‖Y‖ ∧ + operatorTraceNorm Z ≤ ENNReal.ofReal (thermalConst b)⁻¹ * operatorTraceNorm Y := by + dsimp only + have hb₀ : (0 : ℝ) < ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) := by positivity + have hb₁ : ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) < 1 := by + apply (div_lt_one (by positivity)).mpr + exact_mod_cast (show n + 1 < n + 2 by omega) + have hc := thermalConst_pos hb₀ hb₁ + have hl := thermal_high_reserve_lower_bound ι hB hnorm n + have hR : IsSelfAdjoint (reserve B ^ (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ))) := + CFC.rpow_nonneg.isSelfAdjoint + exact ⟨norm_normalizedReserveCompression_le ι hR hH hc hl Y, + operatorTraceNorm_normalizedReserveCompression_le ι hR hH hc hl hcY hY⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ReserveTraceInterpolation.lean b/LeanPool/VacuumBellSeparation/Gaussian/ReserveTraceInterpolation.lean new file mode 100644 index 0000000000..ba5a142e9e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ReserveTraceInterpolation.lean @@ -0,0 +1,140 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.StrictReserveTraceInterpolation +public import LeanPool.VacuumBellSeparation.Gaussian.NuclearSandwichContinuity +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Rpow.Isometric + +/-! +# Actual reserve nuclear interpolation including zero spectrum + +Regularize R by R+epsilon I. Positive-power CFC continuity on the entire +nonnegative cone and the proved nuclear sandwich modulus pass the genuine +strict-positive three-lines inequality to the limit. No bounded inverse of +R, imaginary power at zero, finite rank, or spectral gap is assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Filter Set +open scoped ENNReal NNReal Topology + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Reserve regularization given by `R + ε • 1`. -/ +def reserveRegularization (R : E →L[ℂ] E) (ε : ℝ) : E →L[ℂ] E := R + ε • 1 + +theorem reserveRegularization_strict {R : E →L[ℂ] E} (hR : 0 ≤ R) + {ε : ℝ} (hε : 0 < ε) : IsStrictlyPositive (reserveRegularization R ε) := by + have hp : IsStrictlyPositive (ε • (1 : E →L[ℂ] E)) := by + simpa only [Algebra.algebraMap_eq_smul_one] using + (isStrictlyPositive_algebraMap (A := E →L[ℂ] E) hε) + exact hp.of_le (le_add_of_nonneg_left hR) + +theorem reserveRegularization_tendsto (R : E →L[ℂ] E) : + Tendsto (reserveRegularization R) (𝓝[>] (0 : ℝ)) (𝓝 R) := by + have hc : Continuous (reserveRegularization R) := by unfold reserveRegularization; fun_prop + simpa only [reserveRegularization, zero_smul, add_zero] using + (hc.tendsto 0).mono_left nhdsWithin_le_nhds + +theorem continuousOn_positiveOperator_rpow {p : ℝ} (hp : 0 < p) : + ContinuousOn (fun A : E →L[ℂ] E => A ^ p) {A | 0 ≤ A} := by + have h := CFC.continuousOn_nnrpow (A := E →L[ℂ] E) (NNReal.mk p hp.le : ℝ≥0) + have hpow (T : E →L[ℂ] E) : T ^ (NNReal.mk p hp.le : NNReal) = T ^ p := + CFC.nnrpow_eq_rpow (a := T) (show (0 : NNReal) < NNReal.mk p hp.le from hp) + simpa only [hpow] using h + +theorem reserveRegularization_rpow_tendsto {R : E →L[ℂ] E} + (hR : 0 ≤ R) {p : ℝ} (hp : 0 < p) : + Tendsto (fun ε : ℝ => reserveRegularization R ε ^ p) (𝓝[>] (0 : ℝ)) (𝓝 (R ^ p)) := by + have he : ∀ᶠ ε : ℝ in 𝓝[>] (0 : ℝ), 0 ≤ reserveRegularization R ε := by + filter_upwards [self_mem_nhdsWithin] with ε hε + exact (reserveRegularization_strict hR hε).nonneg + have hlim : Tendsto (reserveRegularization R) (𝓝[>] (0 : ℝ)) + (𝓝[{A : E →L[ℂ] E | 0 ≤ A}] R) := + tendsto_nhdsWithin_iff.mpr ⟨reserveRegularization_tendsto R, he⟩ + exact (continuousOn_positiveOperator_rpow hp R hR).tendsto.comp hlim + +theorem reserveRegularization_nuclear_trace_tendsto {R B : E →L[ℂ] E} + (hR : 0 ≤ R) (hcB : IsCompactOperator B) (hB : IsSelfAdjoint B) + (htB : operatorTraceNorm B < ∞) {p : ℝ} (hp : 0 < p) : + Tendsto (fun ε : ℝ => + (operatorTraceNorm (reserveRegularization R ε ^ p * B * reserveRegularization R ε ^ + p)).toReal) + (𝓝[>] (0 : ℝ)) (𝓝 (operatorTraceNorm (R ^ p * B * R ^ p)).toReal) := + tendsto_nuclear_sandwich_toReal (fun _ => CFC.rpow_nonneg.isSelfAdjoint) + CFC.rpow_nonneg.isSelfAdjoint hcB hB htB (reserveRegularization_rpow_tendsto hR hp) + +/-- The manuscript's genuine nuclear interpolation inequality. A zero +spectral endpoint, an actual kernel, and arbitrary Hilbert dimension are +all permitted. The exponents are strictly between the two edges. -/ +theorem operatorTraceNorm_reserve_interpolation {R B : E →L[ℂ] E} + (hR : 0 ≤ R) (hcB : IsCompactOperator B) (hB : IsSelfAdjoint B) + (htB : operatorTraceNorm B < ∞) {θ : ℝ} (hθ : θ ∈ Ioo (0 : ℝ) 1) : + operatorTraceNorm (R ^ ((1 - θ) / 2) * B * R ^ ((1 - θ) / 2)) ≤ + operatorTraceNorm (R ^ (1 / 2 : ℝ) * B * R ^ (1 / 2 : ℝ)) ^ (1 - θ) * + operatorTraceNorm B ^ θ := by + have hp : 0 < (1 - θ) / 2 := div_pos (sub_pos.mpr hθ.2) (by norm_num) + have hZlim := reserveRegularization_nuclear_trace_tendsto hR hcB hB htB hp + have hGlim := reserveRegularization_nuclear_trace_tendsto hR hcB hB htB + (by norm_num : (0 : ℝ) < 1 / 2) + have hRlim := (((Real.continuous_rpow_const (sub_nonneg.mpr hθ.2.le)).tendsto _).comp hGlim).mul + (tendsto_const_nhds : Tendsto (fun _ : ℝ => (operatorTraceNorm B).toReal ^ θ) + (𝓝[>] (0 : ℝ)) (𝓝 ((operatorTraceNorm B).toReal ^ θ))) + have hreal : (operatorTraceNorm (R ^ ((1 - θ) / 2) * B * R ^ ((1 - θ) / 2))).toReal ≤ + (operatorTraceNorm (R ^ (1 / 2 : ℝ) * B * R ^ (1 / 2 : ℝ))).toReal ^ (1 - θ) * + (operatorTraceNorm B).toReal ^ θ := by + apply le_of_tendsto_of_tendsto hZlim hRlim + filter_upwards [self_mem_nhdsWithin] with ε hε + have hRe := reserveRegularization_strict hR hε + have htG := operatorTraceNorm_selfAdjoint_sandwich_lt_top hcB hB htB + (show IsSelfAdjoint (reserveRegularization R ε ^ + (1 / 2 : ℝ)) from CFC.rpow_nonneg.isSelfAdjoint) + have hh := operatorTraceNorm_strict_reserve_interpolation hRe hcB hB htB ⟨hθ.1.le, hθ.2.le⟩ + have hf : operatorTraceNorm + (reserveRegularization R ε ^ (1 / 2 : ℝ) * B * reserveRegularization R ε ^ (1 / 2 : ℝ)) ^ + (1 - θ) * operatorTraceNorm B ^ θ ≠ ∞ := + (ENNReal.mul_lt_top (ENNReal.rpow_lt_top_of_nonneg (sub_nonneg.mpr hθ.2.le) htG.ne) + (ENNReal.rpow_lt_top_of_nonneg hθ.1.le htB.ne)).ne + have hr := ENNReal.toReal_mono hf hh + simpa only [Function.comp_apply, ENNReal.toReal_mul, ← ENNReal.toReal_rpow] using hr + have htZ := operatorTraceNorm_selfAdjoint_sandwich_lt_top hcB hB htB + (show IsSelfAdjoint (R ^ ((1 - θ) / 2)) from CFC.rpow_nonneg.isSelfAdjoint) + have htG := operatorTraceNorm_selfAdjoint_sandwich_lt_top hcB hB htB + (show IsSelfAdjoint (R ^ (1 / 2 : ℝ)) from CFC.rpow_nonneg.isSelfAdjoint) + have h := ENNReal.ofReal_le_ofReal hreal + rw [ENNReal.ofReal_toReal htZ.ne, + ENNReal.ofReal_mul (Real.rpow_nonneg ENNReal.toReal_nonneg _), + ← ENNReal.ofReal_rpow_of_nonneg ENNReal.toReal_nonneg (sub_nonneg.mpr hθ.2.le), + ← ENNReal.ofReal_rpow_of_nonneg ENNReal.toReal_nonneg hθ.1.le, + ENNReal.ofReal_toReal htG.ne, ENNReal.ofReal_toReal htB.ne] at h + exact h + +/-- The actual interpolated factor and both its algebraic and nuclear +properties. The same operator Z is used in every conclusion. -/ +theorem exists_interpolated_reserve_factor {R B G : E →L[ℂ] E} + (hR : 0 ≤ R) (hcB : IsCompactOperator B) (hB : IsSelfAdjoint B) + (htB : operatorTraceNorm B < ∞) (hG : R ^ (1 / 2 : ℝ) * B * R ^ (1 / 2 : ℝ) = G) + {θ : ℝ} (hθ : θ ∈ Ioo (0 : ℝ) 1) : + ∃ Z : E →L[ℂ] E, IsCompactOperator Z ∧ IsSelfAdjoint Z ∧ + R ^ (θ / 2) * Z * R ^ (θ / 2) = G ∧ + operatorTraceNorm Z ≤ operatorTraceNorm G ^ (1 - θ) * operatorTraceNorm B ^ θ ∧ + operatorTraceNorm Z < ∞ := by + let S := R ^ ((1 - θ) / 2) + let Z := S * B * S + have hS : IsSelfAdjoint S := CFC.rpow_nonneg.isSelfAdjoint + refine ⟨Z, (hcB.clm_comp S).comp_clm S, selfAdjoint_sandwich_isSelfAdjoint hB hS, + ?_, ?_, operatorTraceNorm_selfAdjoint_sandwich_lt_top hcB hB htB hS⟩ + · exact (reserve_power_interpolation_factorization hR B ⟨hθ.1.le, hθ.2.le⟩).trans hG + · simpa only [hG] using operatorTraceNorm_reserve_interpolation hR hcB hB htB hθ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ReserveTraceStrip.lean b/LeanPool/VacuumBellSeparation/Gaussian/ReserveTraceStrip.lean new file mode 100644 index 0000000000..1420bc718e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ReserveTraceStrip.lean @@ -0,0 +1,136 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.StrictOperatorComplexPowers +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteSpectralTraceRecovery + +/-! +# The actual signed reserve interpolation strip + +The scalar functions are genuine finite trace tests of the bounded operator +family S(z) B S(z), with S(z)=exp((1-z)log(R)/2). Both vertical edges are +same-sided unitary sandwiches. Their nuclear bounds are proved by the +actual Jordan expectation rather than a unitary-conjugation assertion. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Set +open scoped ENNReal ComplexConjugate + +variable {ι κ E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Reserve strip half given by `operatorComplexPower R ((1 - z) / 2)`. -/ +def reserveStripHalf (R : E →L[ℂ] E) (z : ℂ) : E →L[ℂ] E := + operatorComplexPower R ((1 - z) / 2) + +/-- Reserve trace strip operator given by `reserveStripHalf R z * B * reserveStripHalf R z`. -/ +def reserveTraceStripOperator (R B : E →L[ℂ] E) (z : ℂ) : E →L[ℂ] E := + reserveStripHalf R z * B * reserveStripHalf R z + +theorem differentiable_reserveTraceStripOperator (R B : E →L[ℂ] E) : + Differentiable ℂ (reserveTraceStripOperator R B) := by + have hS : Differentiable ℂ (reserveStripHalf R) := + (differentiable_operatorComplexPower R).comp + (((differentiable_const (1 : ℂ)).sub differentiable_id).div_const 2) + exact (hS.mul_const B).mul hS + +theorem reserveTraceStripOperator_real {R : E →L[ℂ] E} + (hR : IsStrictlyPositive R) (B : E →L[ℂ] E) (t : ℝ) : + reserveTraceStripOperator R B (t : ℂ) = + R ^ ((1 - t) / 2) * B * R ^ ((1 - t) / 2) := by + have he : (1 - (t : ℂ)) / 2 = (((1 - t) / 2 : ℝ) : ℂ) := by push_cast; rfl + simp only [reserveTraceStripOperator, reserveStripHalf, he, operatorComplexPower_real hR] + +theorem reserveTraceStripOperator_zero_edge {R : E →L[ℂ] E} + (hR : IsStrictlyPositive R) (B : E →L[ℂ] E) {z : ℂ} (hz : z.re = 0) : + reserveTraceStripOperator R B z = + (operatorImaginaryPower R (((1 - z) / 2).im) : E →L[ℂ] E) * + (R ^ (1 / 2 : ℝ) * B * R ^ (1 / 2 : ℝ)) * + (operatorImaginaryPower R (((1 - z) / 2).im) : E →L[ℂ] E) := by + let U := operatorImaginaryPower R (((1 - z) / 2).im) + let H := R ^ (1 / 2 : ℝ) + have hre : ((1 - z) / 2).re = (1 / 2 : ℝ) := by norm_num [Complex.div_re, hz] + have hs : reserveStripHalf R z = H * (U : E →L[ℂ] E) := by + rw [reserveStripHalf, operatorComplexPower_split, hre, operatorComplexPower_real hR] + have hc : H * (U : E →L[ℂ] E) = (U : E →L[ℂ] E) * H := by + change R ^ (1 / 2 : ℝ) * operatorComplexPower R _ = + operatorComplexPower R _ * R ^ (1 / 2 : ℝ) + rw [← operatorComplexPower_real hR] + exact (operatorComplexPower_commute R _ _).eq + change (reserveStripHalf R z * B * reserveStripHalf R z) = + (U : E →L[ℂ] E) * (H * B * H) * U + rw [hs] + calc + (H * U) * B * (H * U) = (U * H) * B * (H * U) := by rw [hc] + _ = _ := by noncomm_ring + +theorem reserveTraceStripOperator_one_edge {R : E →L[ℂ] E} + (B : E →L[ℂ] E) {z : ℂ} (hz : z.re = 1) : + reserveTraceStripOperator R B z = + (operatorImaginaryPower R (((1 - z) / 2).im) : E →L[ℂ] E) * B * + (operatorImaginaryPower R (((1 - z) / 2).im) : E →L[ℂ] E) := by + have hre : ((1 - z) / 2).re = (0 : ℝ) := by norm_num [Complex.div_re, hz] + have hs : reserveStripHalf R z = + (operatorImaginaryPower R (((1 - z) / 2).im) : E →L[ℂ] E) := by + rw [reserveStripHalf, operatorComplexPower_split, hre, Complex.ofReal_zero, + operatorComplexPower_zero, one_mul] + simp only [reserveTraceStripOperator, hs] + +theorem reserveTraceStrip_test_bounded (R B : E →L[ℂ] E) + (u : ι → E) (s : Finset ι) (w : ι → ℂ) : + BddAbove ((norm ∘ fun z => finiteTraceTest u s w (reserveTraceStripOperator R B z)) '' + Complex.HadamardThreeLines.verticalClosedStrip 0 1) := by + obtain ⟨C, hC, hbound⟩ := exists_bound_operatorComplexPower_strip R + refine ⟨‖finiteTraceTest u s w‖ * (C * ‖B‖ * C), ?_⟩ + rintro y ⟨z, hz, rfl⟩ + have hz' : z.re ∈ Icc (0 : ℝ) 1 := hz + have hs : ‖reserveStripHalf R z‖ ≤ C := by + apply hbound + have hre : ((1 - z) / 2).re = (1 - z.re) / 2 := by simp [] + rw [hre] + constructor <;> linarith [hz'.1, hz'.2] + apply ((finiteTraceTest u s w).le_opNorm _).trans + apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) + exact norm_mul_le_of_le (norm_mul_le_of_le hs le_rfl) hs + +theorem reserveTraceStrip_finite_test_interpolation (b : HilbertBasis κ ℂ E) + {R B : E →L[ℂ] E} (hR : IsStrictlyPositive R) + (hcB : IsCompactOperator B) (hB : IsSelfAdjoint B) (htB : operatorTraceNorm B < ∞) + {u : ι → E} (hu : Orthonormal ℂ u) (s : Finset ι) (w : ι → ℂ) + (hw : ∀ i ∈ s, ‖w i‖ ≤ 1) {θ : ℝ} (hθ : θ ∈ Icc (0 : ℝ) 1) : + ‖finiteTraceTest u s w (R ^ ((1 - θ) / 2) * B * R ^ ((1 - θ) / 2))‖ ≤ + (operatorTraceNorm (R ^ (1 / 2 : ℝ) * B * R ^ (1 / 2 : ℝ))).toReal ^ (1 - θ) * + (operatorTraceNorm B).toReal ^ θ := by + have hhalf : IsSelfAdjoint (R ^ (1 / 2 : ℝ)) := CFC.rpow_nonneg.isSelfAdjoint + have hG := selfAdjoint_sandwich_isSelfAdjoint hB hhalf + have htG := operatorTraceNorm_selfAdjoint_sandwich_lt_top hcB hB htB hhalf + let f : ℂ → ℂ := fun z => finiteTraceTest u s w (reserveTraceStripOperator R B z) + have hf : Differentiable ℂ f := + (finiteTraceTest u s w).differentiable.comp (differentiable_reserveTraceStripOperator R B) + have h := Complex.HadamardThreeLines.norm_le_interp_of_mem_verticalClosedStrip₀₁' f + (z := (θ : ℂ)) + (a := (operatorTraceNorm (R ^ (1 / 2 : ℝ) * B * R ^ (1 / 2 : ℝ))).toReal) + (b := (operatorTraceNorm B).toReal) + (by simpa only [Complex.HadamardThreeLines.verticalClosedStrip, mem_preimage, + Complex.ofReal_re] using hθ) hf.diffContOnCl (reserveTraceStrip_test_bounded R B u s w) + (fun z hz => by + dsimp only [f] + rw [reserveTraceStripOperator_zero_edge hR B (Set.mem_singleton_iff.mp hz)] + exact norm_finiteTraceTest_unitary_sandwich_le b hu s w hw hG htG _) + (fun z hz => by + dsimp only [f] + rw [reserveTraceStripOperator_one_edge B (Set.mem_singleton_iff.mp hz)] + exact norm_finiteTraceTest_unitary_sandwich_le b hu s w hw hB htB _) + simpa only [f, reserveTraceStripOperator_real hR, Complex.ofReal_re] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SandwichAlgebra.lean b/LeanPool/VacuumBellSeparation/Gaussian/SandwichAlgebra.lean new file mode 100644 index 0000000000..6e8b0c634d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SandwichAlgebra.lean @@ -0,0 +1,157 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Tactic.Polynomial.Basic +public import Mathlib.Tactic.ReduceModChar +public import Mathlib.Tactic.TypeStar +import Mathlib.Tactic.NoncommRing +public import Mathlib.LinearAlgebra.Matrix.NonsingularInverse +public import Mathlib.Analysis.Normed.Field.Basic +public import Mathlib.Basic.Real.Basic + +/-! +# Matrix algebra of the inverse Gaussian sandwich + +Appendix A, between `eq:Ctau-inverse` and `eq:trace-derived`, uses a matrix +inverse identity and its determinant. Here `C` corresponds to `V_ρ + I/2`, +`T` to the positive diagonal dilation `𝕋_σ`, and `S` to `T² - I`. +The gap `T S⁻¹ T - C` then equals `T_τ - V_ρ`. + +We prove the algebra for arbitrary invertible real matrices `S,T,C` and an +invertible gap, without requiring commutation. This proves only the matrix +algebra, not the Gaussian kernel, trace-class criterion, thermal covariance +identification, or positivity of the gap. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {n : Type*} [Fintype n] [DecidableEq n] + +/-- The precision matrix in the inverse sandwich, with `S = T² - I`. -/ +noncomputable def sandwichPrecision (S T C : Matrix n n ℝ) : Matrix n n ℝ := + -S + T * C⁻¹ * T + +/-- The matrix gap controlling existence of the inverse sandwich. -/ +noncomputable def sandwichGap (S T C : Matrix n n ℝ) : Matrix n n ℝ := + T * S⁻¹ * T - C + +/-- Exact factorization of the sandwich precision. In the Gaussian application, +it is the matrix-algebra input to both the covariance and determinant formulas. -/ +theorem sandwichPrecision_factorization (S T C : Matrix n n ℝ) + (hS : IsUnit S) (hT : IsUnit T) (hC : IsUnit C) : + sandwichPrecision S T C = T * C⁻¹ * sandwichGap S T C * T⁻¹ * S := by + have hSi := S.nonsing_inv_mul ((isUnit_iff_isUnit_det S).mp hS) + have hTi := T.mul_nonsing_inv ((isUnit_iff_isUnit_det T).mp hT) + have hCi := C.nonsing_inv_mul ((isUnit_iff_isUnit_det C).mp hC) + symm + calc + T * C⁻¹ * sandwichGap S T C * T⁻¹ * S = + T * C⁻¹ * T * (S⁻¹ * (T * T⁻¹) * S) - T * (C⁻¹ * C) * T⁻¹ * S := by + dsimp [sandwichGap] + noncomm_ring + _ = sandwichPrecision S T C := by + simp only [hTi, hCi, mul_one, one_mul, hSi] + dsimp [sandwichPrecision] + abel + +/-- Product form of the inverse precision matrix. -/ +theorem sandwichPrecision_inv_factorization (S T C : Matrix n n ℝ) + (hS : IsUnit S) (hT : IsUnit T) (hC : IsUnit C) : + (sandwichPrecision S T C)⁻¹ = S⁻¹ * T * (sandwichGap S T C)⁻¹ * C * T⁻¹ := by + rw [sandwichPrecision_factorization S T C hS hT hC] + simp only [Matrix.mul_inv_rev, + T.nonsing_inv_nonsing_inv ((isUnit_iff_isUnit_det T).mp hT), + C.nonsing_inv_nonsing_inv ((isUnit_iff_isUnit_det C).mp hC), mul_assoc] + +/-- The Woodbury covariance formula used in Appendix A. With `S = T²-I` +and `L = T S⁻¹ = S⁻¹ T`, the conclusion is `C_τ = -S⁻¹ + L gap⁻¹ L`. +Invertibility assumptions here are ordinary matrix-domain conditions and +do not assume a Gaussian or operator-algebra result. -/ +theorem sandwichPrecision_inv (S T C : Matrix n n ℝ) + (hS : IsUnit S) (hT : IsUnit T) (hC : IsUnit C) + (hgap : IsUnit (sandwichGap S T C)) : + (sandwichPrecision S T C)⁻¹ = + -S⁻¹ + S⁻¹ * T * (sandwichGap S T C)⁻¹ * T * S⁻¹ := by + have hTi := T.mul_nonsing_inv ((isUnit_iff_isUnit_det T).mp hT) + have hDi := (sandwichGap S T C).nonsing_inv_mul + ((isUnit_iff_isUnit_det _).mp hgap) + have hCeq : C = T * S⁻¹ * T - sandwichGap S T C := by + dsimp [sandwichGap] + abel + rw [sandwichPrecision_inv_factorization S T C hS hT hC] + calc + S⁻¹ * T * (sandwichGap S T C)⁻¹ * C * T⁻¹ = + S⁻¹ * T * (sandwichGap S T C)⁻¹ * (T * S⁻¹ * T - sandwichGap S T C) * T⁻¹ := + congrArg (fun X => S⁻¹ * T * (sandwichGap S T C)⁻¹ * X * T⁻¹) hCeq + _ = S⁻¹ * T * (sandwichGap S T C)⁻¹ * T * S⁻¹ * (T * T⁻¹) - + S⁻¹ * T * ((sandwichGap S T C)⁻¹ * sandwichGap S T C) * T⁻¹ := by + noncomm_ring + _ = -S⁻¹ + S⁻¹ * T * (sandwichGap S T C)⁻¹ * T * S⁻¹ := by + rw [hTi, hDi] + simp only [mul_one] + rw [mul_assoc S⁻¹ T T⁻¹, hTi, mul_one] + abel + +/-- The determinant ratio occurring in the Gaussian trace formula. This is a +matrix identity alone; the relation to an operator trace is a separate theorem. -/ +theorem sandwichPrecision_inv_det_div (S T C : Matrix n n ℝ) + (hS : IsUnit S) (hT : IsUnit T) (hC : IsUnit C) + (hgap : IsUnit (sandwichGap S T C)) : + (sandwichPrecision S T C)⁻¹.det / C.det = + 1 / (S.det * (sandwichGap S T C).det) := by + have hSd := ((isUnit_iff_isUnit_det S).mp hS).ne_zero + have hTd := ((isUnit_iff_isUnit_det T).mp hT).ne_zero + have hCd := ((isUnit_iff_isUnit_det C).mp hC).ne_zero + have hDd := ((isUnit_iff_isUnit_det _).mp hgap).ne_zero + rw [sandwichPrecision_inv_factorization S T C hS hT hC] + simp only [det_mul, det_nonsing_inv, Ring.inverse_eq_inv] + field_simp [hSd, hTd, hCd, hDd] + +/-- A covariance perturbation normalized by an invertible square-root factor +`R`: the manuscript specializes to `R = H^(1/2)` and `D = V_ρ - V_σ`. -/ +noncomputable def normalizedPerturbation (R D : Matrix n n ℝ) : Matrix n n ℝ := + R⁻¹ * D * R⁻¹ + +/-- The exact factorization `T_τ - V_ρ = H - (V_ρ - V_σ) = H^(1/2) (I-Z) H^(1/2)`, expressed +algebraically for an arbitrary invertible square-root factor `R`. -/ +theorem perturbation_factorization (R D : Matrix n n ℝ) (hR : IsUnit R) : + R * R - D = R * (1 - normalizedPerturbation R D) * R := by + have hRi := R.mul_nonsing_inv ((isUnit_iff_isUnit_det R).mp hR) + have hiR := R.nonsing_inv_mul ((isUnit_iff_isUnit_det R).mp hR) + symm + calc + R * (1 - normalizedPerturbation R D) * R = + R * R - (R * R⁻¹) * D * (R⁻¹ * R) := by + dsimp [normalizedPerturbation] + noncomm_ring + _ = R * R - D := by rw [hRi, hiR, one_mul, mul_one] + +/-- Determinant factorization used in the last equality of Appendix A's +`eq:trace-derived`. -/ +theorem det_perturbation (R D : Matrix n n ℝ) (hR : IsUnit R) : + (R * R - D).det = (R * R).det * (1 - normalizedPerturbation R D).det := by + rw [perturbation_factorization R D hR] + simp only [det_mul] + ring + +/-- The normalized determinant ratio, without assuming positivity or a +Gaussian trace formula. -/ +theorem det_div_det_perturbation (R D : Matrix n n ℝ) (hR : IsUnit R) : + (R * R).det / (R * R - D).det = + 1 / (1 - normalizedPerturbation R D).det := by + have hRd := ((isUnit_iff_isUnit_det R).mp hR).ne_zero + rw [det_perturbation R D hR, det_mul] + by_cases hz : (1 - normalizedPerturbation R D).det = 0 + · simp [hz] + · field_simp [hRd, hz] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SandwichRangeForm.lean b/LeanPool/VacuumBellSeparation/Gaussian/SandwichRangeForm.lean new file mode 100644 index 0000000000..d81ffea926 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SandwichRangeForm.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.UnitarySandwich + +/-! +# The genuine inverse-domain sandwich form + +For an injective bounded map R, its inverse is a linear map on its actual +range, not a bounded operator on the Hilbert space. If R is self-adjoint, +the bounded factorization R Θ R=A is equivalent to the literal inverse +form on that range. Density of the range gives uniqueness of the bounded +extension. These facts justify later power traces of a positive extension. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Operator inverse range obtained from `LinearMap.range`. -/ +def operatorInverseRange (R : E →L[ℂ] E) := LinearMap.range R.toLinearMap + +/-- Linear map for the operator inverse on range, of type `operatorInverseRange R →ₗ[ℂ] E`. -/ +def operatorInverseOnRange (R : E →L[ℂ] E) (hR : Function.Injective R) : + operatorInverseRange R →ₗ[ℂ] E := + (LinearEquiv.ofInjective R.toLinearMap hR).symm.toLinearMap + +omit [CompleteSpace E] in +@[simp] theorem operatorInverseOnRange_apply_image (R : E →L[ℂ] E) + (hR : Function.Injective R) (x : E) : + operatorInverseOnRange R hR ⟨R x, ⟨x, rfl⟩⟩ = x := + (LinearEquiv.ofInjective R.toLinearMap hR).symm_apply_apply x + +omit [CompleteSpace E] in +@[simp] theorem operator_apply_inverseOnRange (R : E →L[ℂ] E) + (hR : Function.Injective R) (x : operatorInverseRange R) : + R (operatorInverseOnRange R hR x) = (x : E) := + congrArg Subtype.val ((LinearEquiv.ofInjective R.toLinearMap hR).apply_symm_apply x) + +/-- Inverse sandwich range form defined as `inner ℂ (operatorInverseOnRange R hR x) (A +(operatorInverseOnRange R hR y))`. -/ +def inverseSandwichRangeForm (R : E →L[ℂ] E) (hR : Function.Injective R) + (A : E →L[ℂ] E) (x y : operatorInverseRange R) : ℂ := + inner ℂ (operatorInverseOnRange R hR x) (A (operatorInverseOnRange R hR y)) + +theorem sandwich_factorization_iff_range_form + (R : E →L[ℂ] E) (hR : Function.Injective R) (hs : IsSelfAdjoint R) + (A Θ : E →L[ℂ] E) : R * Θ * R = A ↔ + ∀ x y : operatorInverseRange R, + inner ℂ (x : E) (Θ (y : E)) = inverseSandwichRangeForm R hR A x y := by + constructor + · intro hf x y + unfold inverseSandwichRangeForm + rw [← hf] + simp only [mul_apply_eq_comp] + simpa only [hs.adjoint_eq, operator_apply_inverseOnRange] using + (R.adjoint_inner_right (operatorInverseOnRange R hR x) + (Θ (R (operatorInverseOnRange R hR y)))).symm + · intro hf + ext y + apply ext_inner_left ℂ + intro x + have h := hf ⟨R x, ⟨x, rfl⟩⟩ ⟨R y, ⟨y, rfl⟩⟩ + simp only [inverseSandwichRangeForm, operatorInverseOnRange_apply_image] at h + change inner ℂ x (R (Θ (R y))) = inner ℂ x (A y) + calc + _ = inner ℂ (R x) (Θ (R y)) := by + simpa only [hs.adjoint_eq] using R.adjoint_inner_right x (Θ (R y)) + _ = _ := h + +omit [CompleteSpace E] in +theorem sandwich_factorization_unique (R : E →L[ℂ] E) + (hinj : Function.Injective R) (hdense : DenseRange R) + {Θ Ξ : E →L[ℂ] E} (h : R * Θ * R = R * Ξ * R) : Θ = Ξ := by + have hcomp : (fun x => Θ (R x)) = fun x => Ξ (R x) := by + funext x + apply hinj + simpa only [mul_apply_eq_comp] using DFunLike.congr_fun h x + exact DFunLike.coe_injective (hdense.equalizer Θ.continuous Ξ.continuous hcomp) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SandwichedRenyiQuantity.lean b/LeanPool/VacuumBellSeparation/Gaussian/SandwichedRenyiQuantity.lean new file mode 100644 index 0000000000..c460399f27 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SandwichedRenyiQuantity.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FaithfulPowerDomain +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiParameters + +/-! +# The actual sandwiched Rényi power-trace quantity + +For r>1 and a faithful positive reference, the inverse-range form has at +most one bounded extension. Its extended positive r-th power trace is the +sandwiched Rényi quantity. If no bounded positive extension exists the +value is infinity. A positive extension is not required to be trace class: +its r-th power may be trace class even when the extension is not. + +The infimum definition below is total; its interpretation and uniqueness +theorems have the stated faithful-reference and r>1 hypotheses. The range +form theorem identifies the factorization with actual inverse powers on +their dense range, never with a total bounded inverse of the density. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Sandwiched Rényi quantity. -/ +def sandwichedRenyiQuantity (ρ σ : E →L[ℂ] E) (r : ℝ) : ℝ≥0∞ := + sInf {t | ∃ Θ : E →L[ℂ] E, 0 ≤ Θ ∧ + σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ ∧ + positiveTrace (Θ ^ r) = t} + +theorem sandwichedRenyiQuantity_eq_power_trace + {ρ σ Θ : E →L[ℂ] E} (hσ : IsFaithfulDensity σ) {r : ℝ} (hr : 1 < r) + (hΘ : 0 ≤ Θ) + (hf : σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ) : + sandwichedRenyiQuantity ρ σ r = positiveTrace (Θ ^ r) := by + have hset : {t | ∃ Ξ : E →L[ℂ] E, 0 ≤ Ξ ∧ + σ ^ (gaussianRenyiTau r / 2) * Ξ * σ ^ (gaussianRenyiTau r / 2) = ρ ∧ + positiveTrace (Ξ ^ r) = t} = {positiveTrace (Θ ^ r)} := by + ext t + constructor + · rintro ⟨Ξ, hΞ, hΞf, ht⟩ + have heq : Ξ = Θ := faithful_power_sandwich_unique hσ + (half_pos (gaussianRenyiTau_pos hr)) (hΞf.trans hf.symm) + simpa only [Set.mem_singleton_iff, ← heq] using ht.symm + · intro ht + exact ⟨Θ, hΘ, hf, (Set.mem_singleton_iff.mp ht).symm⟩ + unfold sandwichedRenyiQuantity + rw [hset, sInf_singleton] + +theorem sandwichedRenyiQuantity_eq_top_of_no_extension + {ρ σ : E →L[ℂ] E} {r : ℝ} + (h : ¬ ∃ Θ : E →L[ℂ] E, 0 ≤ Θ ∧ + σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ) : + sandwichedRenyiQuantity ρ σ r = ⊤ := by + unfold sandwichedRenyiQuantity + have he : {t | ∃ Θ : E →L[ℂ] E, 0 ≤ Θ ∧ + σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ ∧ + positiveTrace (Θ ^ r) = t} = (∅ : Set ℝ≥0∞) := by + apply Set.eq_empty_iff_forall_notMem.mpr + rintro t ⟨Θ, hΘ, hf, _⟩ + exact h ⟨Θ, hΘ, hf⟩ + rw [he, sInf_empty] + +theorem faithful_sandwich_factorization_iff_inverse_form + {ρ σ : E →L[ℂ] E} (hσ : IsFaithfulDensity σ) {r : ℝ} (hr : 1 < r) + (Θ : E →L[ℂ] E) : + σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ ↔ + ∀ x y : operatorInverseRange (σ ^ (gaussianRenyiTau r / 2)), + inner ℂ (x : E) (Θ (y : E)) = + inverseSandwichRangeForm (σ ^ (gaussianRenyiTau r / 2)) + (positive_rpow_injective hσ.1 hσ.2.2 (half_pos (gaussianRenyiTau_pos hr))) ρ x y := + sandwich_factorization_iff_range_form _ _ (CFC.rpow_nonneg (a := σ) + (y := gaussianRenyiTau r / 2)).isSelfAdjoint _ _ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ScaledCoherentIntegral.lean b/LeanPool/VacuumBellSeparation/Gaussian/ScaledCoherentIntegral.lean new file mode 100644 index 0000000000..c5831f164b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ScaledCoherentIntegral.lean @@ -0,0 +1,164 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentRotationAveraging +public import LeanPool.VacuumBellSeparation.Gaussian.TorusPositiveDiagonal + +/-! +# Full pre-extension coherent integral and weighted positive diagonal + +Probability rotation averaging and actual angular Parseval give the +weighted number-state diagonal. The scalar integrals of the proved +Bargmann monomials supply the exact normalization, without polar +coordinates. The resulting extended integral identity allows infinity +and assumes only an actual bounded positive A, not a bounded extension +of its inverse sandwich or trace class of that extension. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate ENNReal + +/-- Measure-space instance for `UnitAddCircle`. -/ +local instance scaledCoherentIntegralMeasureSpace : MeasureSpace UnitAddCircle := + ⟨AddCircle.haarAddCircle⟩ +local instance scaledCoherentIntegralProbabilityMeasure : IsProbabilityMeasure + (volume : Measure UnitAddCircle) := + inferInstanceAs (IsProbabilityMeasure AddCircle.haarAddCircle) + +/-- Occupation scale given by `∏ j, ‖t j‖ ^ (2 * k j)`. -/ +def occupationScale {m : ℕ} (t : Fin m → ℂ) (k : Fin m → ℕ) : ℝ := + ∏ j, ‖t j‖ ^ (2 * k j) + +theorem occupationScale_nonneg {m : ℕ} (t : Fin m → ℂ) (k : Fin m → ℕ) : + 0 ≤ occupationScale t k := Finset.prod_nonneg fun _ _ => pow_nonneg (norm_nonneg _) _ + +theorem multiCoherentCoefficient_mul_norm_sq {m : ℕ} + (t z : Fin m → ℂ) (k : Fin m → ℕ) : + ‖multiCoherentCoefficient (fun j => t j * z j) k‖ ^ 2 = + occupationScale t k * ‖multiCoherentCoefficient z k‖ ^ 2 := by + simp only [multiCoherentCoefficient, norm_prod, ← Finset.prod_pow, + occupationScale, ← Finset.prod_mul_distrib] + apply Finset.prod_congr rfl + intro j _ + rw [coherentCoefficient_norm_sq, coherentCoefficient_norm_sq, norm_mul, mul_pow, + mul_pow, ← pow_mul] + ring + +/-- Scaled coherent Gaussian diagonal. -/ +def scaledCoherentGaussianDiagonal {m : ℕ} + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (t z : Fin m → ℂ) : ℝ := + ‖multiBargmannPrefactor z‖ ^ 2 * + (inner ℂ (multiExponentialVector (fun j => conj (t j * z j))) + (A (multiExponentialVector (fun j => conj (t j * z j))))).re + +theorem continuous_scaledCoherentGaussianDiagonal {m : ℕ} + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) (t : Fin m → ℂ) : + Continuous (scaledCoherentGaussianDiagonal A t) := by + have hv : Continuous (fun z : Fin m → ℂ => + multiExponentialVector (fun j => conj (t j * z j))) := + (continuous_multiExponentialVector m).comp (by fun_prop) + have hp : Continuous (multiBargmannPrefactor (m := m)) := by + unfold multiBargmannPrefactor + fun_prop + unfold scaledCoherentGaussianDiagonal + fun_prop + +theorem scaledCoherentGaussianDiagonal_nonneg {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (t z : Fin m → ℂ) : 0 ≤ scaledCoherentGaussianDiagonal A t z := + mul_nonneg (sq_nonneg _) + ((ContinuousLinearMap.nonneg_iff_isPositive.mp hA).re_inner_nonneg_right _) + +theorem multiBargmannPrefactor_torusLabel {m : ℕ} (z : Fin m → ℂ) + (θ : UnitAddTorus (Fin m)) : + multiBargmannPrefactor (torusCoherentLabel z θ) = multiBargmannPrefactor z := by + have hnorm (j : Fin m) : ‖fourier 1 (θ j)‖ = 1 := by + rw [fourier_one] + exact Circle.norm_coe _ + simp only [multiBargmannPrefactor, torusCoherentLabel, norm_mul, hnorm, mul_one] + +theorem scaledCoherentGaussianDiagonal_rotation {m : ℕ} + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (t z : Fin m → ℂ) (θ : UnitAddTorus (Fin m)) : + scaledCoherentGaussianDiagonal A t (torusCoherentLabel z θ) = + ‖multiBargmannPrefactor z‖ ^ 2 * + positiveTorusCoherentDiagonal A (fun j => t j * z j) θ := by + rw [scaledCoherentGaussianDiagonal, multiBargmannPrefactor_torusLabel] + have heq : (fun j => conj (t j * torusCoherentLabel z θ j)) = + fun j => conj (torusCoherentLabel (fun j => t j * z j) θ j) := by + funext j + simp only [torusCoherentLabel, mul_assoc] + rw [heq] + rfl + +theorem lintegral_multiBargmannMonomial_norm_sq {m : ℕ} (k : Fin m → ℕ) : + (∫⁻ z : Fin m → ℂ, ENNReal.ofReal (‖multiBargmannMonomial k z‖ ^ 2)) = 1 := by + have hint := (memLp_two_iff_integrable_sq_norm + (memLp_multiBargmannMonomial k).aestronglyMeasurable).mp (memLp_multiBargmannMonomial k) + rw [← ofReal_integral_eq_lintegral_ofReal hint + (Filter.Eventually.of_forall (fun _ => sq_nonneg _))] + have hc := integral_inner_multiBargmannMonomial k k + have hi : Integrable (fun z : Fin m → ℂ => + inner ℂ (multiBargmannMonomial k z) (multiBargmannMonomial k z)) := by + simpa only [inner_self_eq_norm_sq_to_K, ← RCLike.ofReal_pow] using + (hint.ofReal (𝕜 := ℂ)) + have hr := congrArg (RCLike.re : ℂ → ℝ) hc + rw [← integral_re hi] at hr + simp only [inner_self_eq_norm_sq] at hr + rw [hr] + simp only [ite_true, RCLike.one_re, ENNReal.ofReal_one] + +theorem lintegral_scaledCoherentGaussianDiagonal_rotation {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (t z : Fin m → ℂ) : + (∫⁻ θ : UnitAddTorus (Fin m), + ENNReal.ofReal (scaledCoherentGaussianDiagonal A t (torusCoherentLabel z θ))) = + ∑' k, ENNReal.ofReal (‖multiBargmannMonomial k z‖ ^ 2 * occupationScale t k * + (inner ℂ (multiModeNumberBasis m k) (A (multiModeNumberBasis m k))).re) := by + simp_rw [scaledCoherentGaussianDiagonal_rotation, + ENNReal.ofReal_mul (sq_nonneg _)] + rw [lintegral_const_mul' _ _ ENNReal.ofReal_ne_top, + lintegral_positiveTorusCoherentDiagonal hA, ← ENNReal.tsum_mul_left] + apply tsum_congr + intro k + rw [← ENNReal.ofReal_mul (sq_nonneg _), multiCoherentCoefficient_mul_norm_sq, + multiBargmannMonomial_eq_coherentCoefficient, norm_mul, mul_pow] + congr 1 + ring + +/-- The pre-extension weighted trace identity. It is valid with infinite +values and uses no summability or bounded-sandwich hypothesis. -/ +theorem lintegral_scaledCoherentGaussianDiagonal {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (t : Fin m → ℂ) : + (∫⁻ z : Fin m → ℂ, ENNReal.ofReal (scaledCoherentGaussianDiagonal A t z)) = + ∑' k, ENNReal.ofReal (occupationScale t k * + (inner ℂ (multiModeNumberBasis m k) (A (multiModeNumberBasis m k))).re) := by + rw [lintegral_eq_rotation_average _ + (continuous_scaledCoherentGaussianDiagonal A t).measurable.ennreal_ofReal] + simp_rw [lintegral_scaledCoherentGaussianDiagonal_rotation hA t] + have hmeas (k : Fin m → ℕ) : Measurable (fun z : Fin m → ℂ => + ENNReal.ofReal (‖multiBargmannMonomial k z‖ ^ 2 * occupationScale t k * + (inner ℂ (multiModeNumberBasis m k) (A (multiModeNumberBasis m k))).re)) := by + unfold multiBargmannMonomial bargmannMonomial + fun_prop + rw [lintegral_tsum (fun k => (hmeas k).aemeasurable)] + apply tsum_congr + intro k + simp_rw [mul_assoc, ENNReal.ofReal_mul (sq_nonneg _)] + rw [lintegral_mul_const' _ _ ENNReal.ofReal_ne_top, + lintegral_multiBargmannMonomial_norm_sq, one_mul] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SemidefiniteRenyiComparison.lean b/LeanPool/VacuumBellSeparation/Gaussian/SemidefiniteRenyiComparison.lean new file mode 100644 index 0000000000..92e3e5c90b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SemidefiniteRenyiComparison.lean @@ -0,0 +1,135 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.InfiniteRenyiInterpolation +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteSemidefiniteRenyiInterpolation +public import LeanPool.VacuumBellSeparation.Gaussian.RenyiTwoTraceDistance + +/-! +# General positive-input interpolation and trace-distance consequence + +Finite positive-reference mixtures remove the input-injectivity premise +before the actual spectral compression limit. Thus every positive trace-one +input and faithful reference satisfy the full Hilbert-space interpolation +and trace-distance inequalities, including infinite Renyi quantity. No +Gaussian structure or bounded inverse of the reference is assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Matrix +open scoped ENNReal ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem finite_spectral_semidefinite_sandwich_square_bound + {κ : Type*} [Fintype κ] [DecidableEq κ] (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hfinj : Function.Injective f) {ρ σ Θ Ξ : E →L[ℂ] E} + (hρ : 0 ≤ ρ) (hρt : positiveTrace ρ = 1) (hσ : IsFaithfulDensity σ) + {a : ι → ℝ} (ha : ∀ j, σ (b j) = a j • b j) {r : ℝ} (hr : 2 ≤ r) + (hΘ : 0 ≤ Θ) (hcΘ : IsCompactOperator Θ) + (hfΘ : σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ) + (hfΞ : σ ^ ((1 / 2 : ℝ) / 2) * Ξ * σ ^ ((1 / 2 : ℝ) / 2) = ρ) : + finitePositivePowerTrace (finiteBasisCompression b f hfinj Ξ) 2 ≤ + positiveTrace (Θ ^ r) ^ (1 / (r - 1)) := by + have hr₁ : 1 < r := by linarith + have hexp : 0 ≤ 1 / (r - 1) := (one_div_pos.mpr (sub_pos.mpr hr₁)).le + let R := finiteBasisCompression b f hfinj ρ + let S := finiteBasisCompression b f hfinj σ + have hR : R.PosSemidef := finiteBasisCompression_posSemidef b f hfinj hρ + have hS : S.PosDef := finiteBasisCompression_posDef b f hfinj hσ.1 hσ.2.2 + have hRt : R.trace.re ≤ 1 := by + apply ENNReal.ofReal_le_one.mp + have h := finiteBasisCompression_trace_le b f hfinj hρ + simpa only [hρt] using h + have hSt : S.trace.re ≤ 1 := by + apply ENNReal.ofReal_le_one.mp + have h := finiteBasisCompression_trace_le b f hfinj hσ.1 + simpa only [hσ.2.1] using h + have hfinite := finite_semidefinite_sandwichedRenyi_interpolation hR hS hRt hSt hr + have hbase : 0 ≤ ((finiteRenyiSandwich R S (gaussianRenyiTau r)) ^ r).trace.re := + (Complex.nonneg_iff.mp + ((CFC.rpow_nonneg (a := finiteRenyiSandwich R S (gaussianRenyiTau r)) + (y := r)).posSemidef.trace_nonneg)).1 + have hbound := ENNReal.ofReal_le_ofReal hfinite + change finitePositivePowerTrace (finiteRenyiSandwich R S (1 / 2)) 2 ≤ + ENNReal.ofReal (((finiteRenyiSandwich R S (gaussianRenyiTau r)) ^ r).trace.re ^ + (1 / (r - 1))) at hbound + rw [← ENNReal.ofReal_rpow_of_nonneg hbase hexp] at hbound + change finitePositivePowerTrace (finiteRenyiSandwich R S (1 / 2)) 2 ≤ + finitePositivePowerTrace (finiteRenyiSandwich R S (gaussianRenyiTau r)) r ^ + (1 / (r - 1)) at hbound + have htwo := finiteBasisCompression_eq_finiteRenyiSandwich b f hfinj hσ.1 hσ.2.2 ha + (by norm_num : (0 : ℝ) < 1 / 2) hfΞ + have hhigh := finiteBasisCompression_eq_finiteRenyiSandwich b f hfinj hσ.1 hσ.2.2 ha + (gaussianRenyiTau_pos hr₁) hfΘ + change finiteRenyiSandwich R S (1 / 2) = _ at htwo + change finiteRenyiSandwich R S (gaussianRenyiTau r) = _ at hhigh + rw [htwo, hhigh] at hbound + exact hbound.trans (ENNReal.rpow_le_rpow + (finiteBasisCompression_power_trace_le b f hfinj hcΘ hΘ (by linarith)) hexp) + +theorem lowerPowerSandwich_semidefinite_square_trace_bound (b : HilbertBasis ι ℂ E) + {ρ σ Θ : E →L[ℂ] E} (hρ : 0 ≤ ρ) (hρt : positiveTrace ρ = 1) (hσ : IsFaithfulDensity σ) + {a : ι → ℝ} (ha : ∀ j, σ (b j) = a j • b j) {r : ℝ} (hr : 2 ≤ r) + (hΘ : 0 ≤ Θ) (hcΘ : IsCompactOperator Θ) + (hfΘ : σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ) : + positiveTrace ((lowerPowerSandwich σ Θ (gaussianRenyiTau r) (1 / 2)) ^ (2 : ℝ)) ≤ + positiveTrace (Θ ^ r) ^ (1 / (r - 1)) := by + classical + apply positiveTrace_square_le_of_finite_compressions b (lowerPowerSandwich_nonneg hΘ _ _) + intro s + exact finite_spectral_semidefinite_sandwich_square_bound b (fun i : s => + (i : ι)) Subtype.val_injective + hρ hρt hσ ha hr hΘ hcΘ hfΘ + (lowerPowerSandwich_factorization hσ.1 (by norm_num) (gaussianRenyiTau_ge_half hr) hfΘ) + +/-- Actual full Hilbert-space interpolation for a positive trace-one input +and faithful reference, including infinite Qr. -/ +theorem sandwichedRenyi_interpolation {ρ σ : E →L[ℂ] E} + (hρ : 0 ≤ ρ) (hρt : positiveTrace ρ = 1) (hσ : IsFaithfulDensity σ) {r : ℝ} (hr : 2 ≤ r) : + sandwichedRenyiQuantity ρ σ 2 ≤ sandwichedRenyiQuantity ρ σ r ^ (1 / (r - 1)) := by + have hr₁ : 1 < r := by linarith + by_cases hQ : sandwichedRenyiQuantity ρ σ r = ∞ + · rw [hQ, ENNReal.top_rpow_of_pos (one_div_pos.mpr (sub_pos.mpr hr₁))] + exact le_top + have hext : ∃ Θ : E →L[ℂ] E, 0 ≤ Θ ∧ + σ ^ (gaussianRenyiTau r / 2) * Θ * σ ^ (gaussianRenyiTau r / 2) = ρ := by + by_contra hn + exact hQ (sandwichedRenyiQuantity_eq_top_of_no_extension hn) + obtain ⟨Θ, hΘ, hfΘ⟩ := hext + have hQt := sandwichedRenyiQuantity_eq_power_trace hσ hr₁ hΘ hfΘ + have htΘ : positiveTrace (Θ ^ r) < ∞ := by + rw [← hQt] + exact lt_top_iff_ne_top.mpr hQ + have hcΘ := isCompactOperator_of_finite_positive_power_trace hΘ + (lt_trans zero_lt_one hr₁) htΘ + have hcσ := positiveTraceClass_isCompactOperator hσ.isPositiveTraceClass + let b := compactSelfAdjointBasis hcσ hσ.1.isSelfAdjoint + have heig (j : operatorEigenIndex σ) : σ (b j) = j.1.re • b j := by + simpa only [RCLike.real_smul_eq_coe_smul (K := ℂ), RCLike.ofReal_eq_complex_ofReal] using + compactSelfAdjointBasis_apply_operator hcσ hσ.1.isSelfAdjoint j + rw [hQt, renyiTwo_lowerPowerSandwich hσ hr hΘ hfΘ] + exact lowerPowerSandwich_semidefinite_square_trace_bound b hρ hρt hσ heig hr hΘ hcΘ hfΘ + + +/-- The manuscript trace-distance bound for actual positive trace-one input +and faithful reference, with the full extended trace norm and Renyi quantity. -/ +theorem renyi_trace_distance {ρ σ : E →L[ℂ] E} + (hρ : 0 ≤ ρ) (hρt : positiveTrace ρ = 1) (hσ : IsFaithfulDensity σ) + {r : ℝ} (hr : 2 ≤ r) : + operatorTraceNorm (ρ - σ) ≤ + (sandwichedRenyiQuantity ρ σ r ^ (1 / (r - 1)) - 1) ^ (1 / 2 : ℝ) := by + exact (renyiTwo_trace_distance hσ hρt).trans (ENNReal.rpow_le_rpow + (tsub_le_tsub_right (sandwichedRenyi_interpolation hρ hρt hσ hr) 1) (by norm_num)) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SkewBasisAssembly.lean b/LeanPool/VacuumBellSeparation/Gaussian/SkewBasisAssembly.lean new file mode 100644 index 0000000000..038eb06ab1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SkewBasisAssembly.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SkewPlaneRestriction +public import Mathlib.Analysis.InnerProductSpace.ProdL2 + +/-! +# Orthonormal assembly of a real rotation plane and its complement + +All bases below are built from actual orthonormal vectors and the actual +orthogonal decomposition. The reindexing places the new plane at mode +zero and the old modes at successors. No block normal form is assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + [FiniteDimensional ℝ E] + +/-- Rotation plane basis. -/ +def rotationPlaneBasis {x y : E} + (hx : ‖x‖ = 1) (hy : ‖y‖ = 1) (hxy : inner ℝ x y = 0) : + OrthonormalBasis (Fin 2) ℝ (rotationPlane x y) := + OrthonormalBasis.mk (orthonormal_span (orthonormal_rotationPair hx hy hxy)) + ((Submodule.span_range_subtype_eq_top_iff (rotationPlane x y) + (fun i => Submodule.subset_span (Set.mem_range_self i))).mpr rfl).ge + +omit [FiniteDimensional ℝ E] in +@[simp] theorem rotationPlaneBasis_apply {x y : E} + (hx : ‖x‖ = 1) (hy : ‖y‖ = 1) (hxy : inner ℝ x y = 0) (i : Fin 2) : + (rotationPlaneBasis hx hy hxy i : E) = (![x, y] : Fin 2 → E) i := by + unfold rotationPlaneBasis + exact congrArg Subtype.val (congrFun (OrthonormalBasis.coe_mk _ _) i) + +/-- Rotation mode equivalence. -/ +def rotationModeEquiv (m : ℕ) : + (Fin (m + 1) × Fin 2) ≃ (Fin 2 ⊕ (Fin m × Fin 2)) where + toFun p := Fin.cases (Sum.inl p.2) (fun i => Sum.inr (i, p.2)) p.1 + invFun p := Sum.elim (fun a => (0, a)) (fun q => (q.1.succ, q.2)) p + left_inv := by + rintro ⟨i, a⟩ + induction i using Fin.cases <;> rfl + right_inv := by + intro p + cases p <;> rfl + +@[simp] theorem rotationModeEquiv_zero (m : ℕ) (a : Fin 2) : + rotationModeEquiv m (0, a) = Sum.inl a := rfl + +@[simp] theorem rotationModeEquiv_succ {m : ℕ} (i : Fin m) (a : Fin 2) : + rotationModeEquiv m (i.succ, a) = Sum.inr (i, a) := rfl + +/-- Adjoin rotation basis. -/ +def adjoinRotationBasis {m : ℕ} {x y : E} + (hx : ‖x‖ = 1) (hy : ‖y‖ = 1) (hxy : inner ℝ x y = 0) + (b : OrthonormalBasis (Fin m × Fin 2) ℝ (rotationPlane x y)ᗮ) : + OrthonormalBasis (Fin (m + 1) × Fin 2) ℝ E := + (((rotationPlaneBasis hx hy hxy).prod b).map + (rotationPlane x y).orthogonalDecomposition.symm).reindex (rotationModeEquiv m).symm + +@[simp] theorem adjoinRotationBasis_zero {m : ℕ} {x y : E} + (hx : ‖x‖ = 1) (hy : ‖y‖ = 1) (hxy : inner ℝ x y = 0) + (b : OrthonormalBasis (Fin m × Fin 2) ℝ (rotationPlane x y)ᗮ) (a : Fin 2) : + adjoinRotationBasis hx hy hxy b (0, a) = (![x, y] : Fin 2 → E) a := by + simp [adjoinRotationBasis, OrthonormalBasis.reindex_apply, + OrthonormalBasis.map_apply, OrthonormalBasis.prod_apply] + +@[simp] theorem adjoinRotationBasis_succ {m : ℕ} {x y : E} + (hx : ‖x‖ = 1) (hy : ‖y‖ = 1) (hxy : inner ℝ x y = 0) + (b : OrthonormalBasis (Fin m × Fin 2) ℝ (rotationPlane x y)ᗮ) + (i : Fin m) (a : Fin 2) : + adjoinRotationBasis hx hy hxy b (i.succ, a) = (b (i, a) : E) := by + simp [adjoinRotationBasis, OrthonormalBasis.reindex_apply, + OrthonormalBasis.map_apply, OrthonormalBasis.prod_apply] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SkewMatrixNormalForm.lean b/LeanPool/VacuumBellSeparation/Gaussian/SkewMatrixNormalForm.lean new file mode 100644 index 0000000000..46c0d9df2b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SkewMatrixNormalForm.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SkewNormalForm +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticBlocks + +/-! +# The actual skew normal form in the source symplectic orientation + +Applying the constructed rotation theorem to the negative map gives the +source block `ν Ω₂`. The normal form is then identified with the literal +matrix of the map in its constructed orthonormal basis. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped Kronecker + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + [FiniteDimensional ℝ E] + +theorem exists_real_skew_symplectic_basis (A : E →ₗ[ℝ] E) + (hA : A.adjoint = -A) (hinj : Function.Injective A) : + ∃ (m : ℕ) (ν : Fin m → ℝ) (b : OrthonormalBasis (Fin m × Fin 2) ℝ E), + (∀ i, 0 < ν i) ∧ + ∀ i, A (b (i, 0)) = (-ν i) • b (i, 1) ∧ + A (b (i, 1)) = ν i • b (i, 0) := by + have hneg : (-A).adjoint = -(-A) := by simp [hA] + have hinjneg : Function.Injective (-A) := by + intro x y hxy + apply hinj + simpa only [LinearMap.neg_apply, neg_inj] using hxy + obtain ⟨m, ν, b, hν, hb⟩ := exists_real_skew_normal_form (-A) hneg hinjneg + refine ⟨m, ν, b, hν, fun i => ⟨?_, ?_⟩⟩ + · simpa only [LinearMap.neg_apply, neg_neg, neg_smul] using congrArg Neg.neg (hb i).1 + · simpa only [LinearMap.neg_apply, neg_neg, neg_smul] using congrArg Neg.neg (hb i).2 + +/-- Identification of the actual matrix from its action on the constructed +basis, with the positive source symplectic orientation. -/ +theorem toMatrixOrthonormal_eq_modeDiagonal_symplectic {m : ℕ} + (A : E →ₗ[ℝ] E) (ν : Fin m → ℝ) + (b : OrthonormalBasis (Fin m × Fin 2) ℝ E) + (hb : ∀ i, A (b (i, 0)) = (-ν i) • b (i, 1) ∧ + A (b (i, 1)) = ν i • b (i, 0)) : + LinearMap.toMatrixOrthonormal b A = modeDiagonal ν * modeSymplecticForm := by + ext ⟨i, a⟩ ⟨j, c⟩ + rw [LinearMap.toMatrixOrthonormal_apply_apply] + by_cases hij : i = j + · subst j + fin_cases a <;> fin_cases c <;> + simp [(hb i).1, (hb i).2, real_inner_smul_right, + orthonormal_iff_ite.mp b.orthonormal, modeDiagonal, Matrix.diagonal_mul, + modeSymplecticForm, oneModeSymplecticForm] + · fin_cases a <;> fin_cases c <;> + simp [(hb j).1, (hb j).2, real_inner_smul_right, + orthonormal_iff_ite.mp b.orthonormal, modeDiagonal, Matrix.diagonal_mul, + modeSymplecticForm, oneModeSymplecticForm, hij, Prod.mk.injEq] + +/-- Every injective real skew-adjoint map has a genuine orthonormal matrix +normal form `diag(ν) Ω`, with all frequencies positive. -/ +theorem exists_real_skew_matrix_normal_form (A : E →ₗ[ℝ] E) + (hA : A.adjoint = -A) (hinj : Function.Injective A) : + ∃ (m : ℕ) (ν : Fin m → ℝ) (b : OrthonormalBasis (Fin m × Fin 2) ℝ E), + (∀ i, 0 < ν i) ∧ + LinearMap.toMatrixOrthonormal b A = modeDiagonal ν * modeSymplecticForm := by + obtain ⟨m, ν, b, hν, hb⟩ := exists_real_skew_symplectic_basis A hA hinj + exact ⟨m, ν, b, hν, toMatrixOrthonormal_eq_modeDiagonal_symplectic A ν b hb⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SkewNormalForm.lean b/LeanPool/VacuumBellSeparation/Gaussian/SkewNormalForm.lean new file mode 100644 index 0000000000..bbba7cbc72 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SkewNormalForm.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SkewBasisAssembly + +/-! +# Full real skew normal form in finite dimension + +An injective skew-adjoint real endomorphism has an actual orthonormal +basis of positive-frequency rotation pairs. The proof recursively removes +the constructed invariant plane and uses the actual restriction to its +orthogonal complement. In the ordered pair `(0,1)` the block is +`[[0,-ν],[ν,0]]`; this orientation is part of the public statement. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + [FiniteDimensional ℝ E] + +/-- The real skew normal form, with a genuine orthonormal basis and strictly +positive rotation frequencies. The zero-dimensional case is included. -/ +theorem exists_real_skew_normal_form (A : E →ₗ[ℝ] E) + (hA : A.adjoint = -A) (hinj : Function.Injective A) : + ∃ (m : ℕ) (ν : Fin m → ℝ) (b : OrthonormalBasis (Fin m × Fin 2) ℝ E), + (∀ i, 0 < ν i) ∧ + ∀ i, A (b (i, 0)) = ν i • b (i, 1) ∧ + A (b (i, 1)) = (-ν i) • b (i, 0) := by + classical + suffices ∀ n, Module.finrank ℝ E = n → + ∃ (m : ℕ) (ν : Fin m → ℝ) (b : OrthonormalBasis (Fin m × Fin 2) ℝ E), + (∀ i, 0 < ν i) ∧ + ∀ i, A (b (i, 0)) = ν i • b (i, 1) ∧ + A (b (i, 1)) = (-ν i) • b (i, 0) from this _ rfl + intro n hdim + induction n using Nat.strong_induction_on generalizing E with + | ind n ih => + by_cases hn : n = 0 + · have : Subsingleton E := Module.finrank_zero_iff.mp (hdim.trans hn) + let f : Fin 0 × Fin 2 → E := fun i => Fin.elim0 i.1 + have hf : Orthonormal ℝ f := by + rw [orthonormal_iff_ite] + intro i + exact Fin.elim0 i.1 + have hspan : ⊤ ≤ Submodule.span ℝ (Set.range f) := by + intro x _ + have hx : x = 0 := Subsingleton.elim _ _ + rw [hx] + exact Submodule.zero_mem _ + refine ⟨0, (fun i => Fin.elim0 i), OrthonormalBasis.mk hf hspan, ?_, ?_⟩ + · intro i + exact Fin.elim0 i + · intro i + exact Fin.elim0 i + · have : Nontrivial E := Module.nontrivial_of_finrank_pos + (by rw [hdim]; exact Nat.pos_of_ne_zero hn) + obtain ⟨a, x, y, ha, hx, hy, hxy, hAx, hAy⟩ := + exists_skew_rotation_plane A hA hinj + let P := rotationPlane x y + have hPdim : Module.finrank ℝ P = 2 := finrank_rotationPlane hx hy hxy + have hP : ∀ z ∈ P, A z ∈ P := maps_rotationPlane A hAx hAy + have hPo : ∀ z ∈ Pᗮ, A z ∈ Pᗮ := real_skew_maps_orthogonal A hA P hP + have hlt : Module.finrank ℝ Pᗮ < n := by + have hsum := P.finrank_add_finrank_orthogonal + omega + obtain ⟨m, ν, b, hν, hb⟩ := ih (Module.finrank ℝ Pᗮ) hlt + (A.restrict hPo) (real_skew_restrict A hA Pᗮ hPo) + (injective_restrict A hinj Pᗮ hPo) rfl + refine ⟨m + 1, Fin.cases a ν, adjoinRotationBasis hx hy hxy b, ?_, ?_⟩ + · intro i + induction i using Fin.cases with + | zero => exact ha + | succ i => exact hν i + · intro i + induction i using Fin.cases with + | zero => simpa using And.intro hAx hAy + | succ i => + constructor + · simpa only [Fin.cases_succ, adjoinRotationBasis_succ, LinearMap.restrict_apply, + Submodule.coe_smul] using + congrArg (fun z : Pᗮ => (z : E)) (hb i).1 + · simpa only [Fin.cases_succ, adjoinRotationBasis_succ, LinearMap.restrict_apply, + Submodule.coe_smul] using + congrArg (fun z : Pᗮ => (z : E)) (hb i).2 + +/-- In particular, an injective real skew-adjoint operator forces the +ambient real dimension to be even. -/ +theorem even_finrank_of_injective_real_skew (A : E →ₗ[ℝ] E) + (hA : A.adjoint = -A) (hinj : Function.Injective A) : + Even (Module.finrank ℝ E) := by + obtain ⟨m, ν, b, hν, hb⟩ := exists_real_skew_normal_form A hA hinj + have hdim := Module.finrank_eq_card_basis b.toBasis + simp only [Fintype.card_prod, Fintype.card_fin] at hdim + exact ⟨m, by omega⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SkewOrthogonalCongruence.lean b/LeanPool/VacuumBellSeparation/Gaussian/SkewOrthogonalCongruence.lean new file mode 100644 index 0000000000..7ab0a37a42 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SkewOrthogonalCongruence.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SkewMatrixNormalForm + +/-! +# Orthogonal congruence for an actual nonsingular skew matrix + +The columns are the constructed orthonormal normal-form basis, expressed +in the actual Euclidean standard basis. Both orthogonality identities are +proved even though the mode index type differs from the original index. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + [FiniteDimensional ℝ E] +variable {ι κ : Type*} [Fintype ι] [Fintype κ] + +omit [FiniteDimensional ℝ E] in +theorem orthonormal_basis_matrix_transpose + (a : OrthonormalBasis ι ℝ E) (b : OrthonormalBasis κ ℝ E) : + (a.toBasis.toMatrix b)ᵀ = b.toBasis.toMatrix a := by + ext i j + simpa only [Matrix.transpose_apply, Module.Basis.toMatrix_apply, + OrthonormalBasis.coe_toBasis_repr_apply, OrthonormalBasis.repr_apply_apply] using + (real_inner_comm (a j) (b i)).symm + +variable [DecidableEq ι] [DecidableEq κ] + +theorem orthonormal_basis_matrix_congruence + (a : OrthonormalBasis ι ℝ E) (b : OrthonormalBasis κ ℝ E) + (A : E →ₗ[ℝ] E) : + a.toBasis.toMatrix b * LinearMap.toMatrixOrthonormal b A * + (a.toBasis.toMatrix b)ᵀ = LinearMap.toMatrixOrthonormal a A := by + rw [orthonormal_basis_matrix_transpose] + exact basis_toMatrix_mul_linearMap_toMatrix_mul_basis_toMatrix + a.toBasis b.toBasis a.toBasis b.toBasis A + +/-- Nonsingular real skew matrices have an actual orthogonal congruence +with positive symplectic mode blocks. -/ +theorem exists_skew_orthogonal_congruence (B : Matrix ι ι ℝ) + (hB : Bᵀ = -B) (hunit : IsUnit B) : + ∃ (m : ℕ) (ν : Fin m → ℝ) (O : Matrix ι (Fin m × Fin 2) ℝ), + (∀ i, 0 < ν i) ∧ O * Oᵀ = 1 ∧ Oᵀ * O = 1 ∧ + O * (modeDiagonal ν * modeSymplecticForm) * Oᵀ = B := by + let A := B.toEuclideanLin + have hA : A.adjoint = -A := by + dsimp [A] + rw [← Matrix.toEuclideanLin_conjTranspose_eq_adjoint, + Matrix.conjTranspose_eq_transpose_of_trivial, hB, map_neg] + have hinj : Function.Injective A := by + exact (ContinuousLinearMap.isUnit_iff_bijective.mp + (hunit.map (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℝ)).toMonoidHom)).1 + obtain ⟨m, ν, b, hν, hb⟩ := exists_real_skew_matrix_normal_form A hA hinj + let a := EuclideanSpace.basisFun ι ℝ + let O := a.toBasis.toMatrix b + have haa : LinearMap.toMatrixOrthonormal a A = B := + LinearMap.toMatrix_toLin a.toBasis a.toBasis B + refine ⟨m, ν, O, hν, ?_, ?_, ?_⟩ + · simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + a.toMatrix_orthonormalBasis_self_mul_conjTranspose b + · simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + a.toMatrix_orthonormalBasis_conjTranspose_mul_self b + · rw [← hb] + exact (orthonormal_basis_matrix_congruence a b A).trans haa + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SkewPlaneRestriction.lean b/LeanPool/VacuumBellSeparation/Gaussian/SkewPlaneRestriction.lean new file mode 100644 index 0000000000..e76df40602 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SkewPlaneRestriction.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SkewRotationPlane + +/-! +# The invariant plane and the smaller real skew operator + +The rotation pair gives an actual two-dimensional invariant subspace. +Restriction to its orthogonal complement retains both skew-adjointness +and injectivity, and reduces the dimension by two. These statements make +the induction step for a full skew normal form explicit. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + [FiniteDimensional ℝ E] + +/-- The real subspace spanned by the two vectors used for a plane rotation. -/ +def rotationPlane (x y : E) : Submodule ℝ E := + Submodule.span ℝ (Set.range (![x, y] : Fin 2 → E)) + +omit [FiniteDimensional ℝ E] in +theorem orthonormal_rotationPair {x y : E} + (hx : ‖x‖ = 1) (hy : ‖y‖ = 1) (hxy : inner ℝ x y = 0) : + Orthonormal ℝ (![x, y] : Fin 2 → E) := by + have hyx : inner ℝ y x = 0 := (real_inner_comm x y).trans hxy + rw [orthonormal_iff_ite] + intro i j + fin_cases i <;> fin_cases j <;> + simp [hx, hy, hxy, hyx] + +omit [FiniteDimensional ℝ E] in +theorem finrank_rotationPlane {x y : E} + (hx : ‖x‖ = 1) (hy : ‖y‖ = 1) (hxy : inner ℝ x y = 0) : + Module.finrank ℝ (rotationPlane x y) = 2 := by + convert! finrank_span_eq_card (orthonormal_rotationPair hx hy hxy).linearIndependent using 1 + +omit [FiniteDimensional ℝ E] in +theorem maps_rotationPlane (A : E →ₗ[ℝ] E) {ν : ℝ} {x y : E} + (hAx : A x = ν • y) (hAy : A y = (-ν) • x) : + ∀ z ∈ rotationPlane x y, A z ∈ rotationPlane x y := by + have hx : x ∈ rotationPlane x y := Submodule.subset_span ⟨0, by simp⟩ + have hy : y ∈ rotationPlane x y := Submodule.subset_span ⟨1, by simp⟩ + have hle : rotationPlane x y ≤ (rotationPlane x y).comap A := by + apply Submodule.span_le.mpr + rintro _ ⟨i, rfl⟩ + change A (![x, y] i) ∈ rotationPlane x y + fin_cases i + · convert! (rotationPlane x y).smul_mem ν hy using 1 + · convert! (rotationPlane x y).smul_mem (-ν) hx using 1 + exact fun z hz => hle hz + +theorem real_skew_restrict (A : E →ₗ[ℝ] E) (hA : A.adjoint = -A) + (P : Submodule ℝ E) (hP : ∀ x ∈ P, A x ∈ P) : + (A.restrict hP).adjoint = -(A.restrict hP) := by + apply LinearMap.ext + intro x + apply ext_inner_left ℝ + intro y + rw [LinearMap.adjoint_inner_right] + change inner ℝ (A (y : E)) (x : E) = inner ℝ (y : E) (-(A (x : E))) + have h := A.adjoint_inner_right (y : E) (x : E) + rw [hA, LinearMap.neg_apply] at h + exact h.symm + +omit [FiniteDimensional ℝ E] in +theorem injective_restrict (A : E →ₗ[ℝ] E) (hinj : Function.Injective A) + (P : Submodule ℝ E) (hP : ∀ x ∈ P, A x ∈ P) : + Function.Injective (A.restrict hP) := by + intro x y hxy + apply Subtype.ext + apply hinj + exact congrArg Subtype.val hxy + +/-- A genuine two-dimensional invariant plane with an injective skew +restriction on its orthogonal complement and the exact dimension drop. -/ +theorem exists_skew_invariant_plane [Nontrivial E] + (A : E →ₗ[ℝ] E) (hA : A.adjoint = -A) (hinj : Function.Injective A) : + ∃ P : Submodule ℝ E, + Module.finrank ℝ P = 2 ∧ + (∀ x ∈ P, A x ∈ P) ∧ + ∃ hP : ∀ x ∈ Pᗮ, A x ∈ Pᗮ, + (A.restrict hP).adjoint = -(A.restrict hP) ∧ + Function.Injective (A.restrict hP) ∧ + Module.finrank ℝ Pᗮ + 2 = Module.finrank ℝ E := by + obtain ⟨ν, x, y, _, hx, hy, hxy, hAx, hAy⟩ := exists_skew_rotation_plane A hA hinj + let P := rotationPlane x y + have hdim : Module.finrank ℝ P = 2 := finrank_rotationPlane hx hy hxy + have hP : ∀ z ∈ P, A z ∈ P := maps_rotationPlane A hAx hAy + have hPo : ∀ z ∈ Pᗮ, A z ∈ Pᗮ := real_skew_maps_orthogonal A hA P hP + refine ⟨P, hdim, hP, hPo, real_skew_restrict A hA Pᗮ hPo, + injective_restrict A hinj Pᗮ hPo, ?_⟩ + have hsum := P.finrank_add_finrank_orthogonal + omega + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SkewRotationPlane.lean b/LeanPool/VacuumBellSeparation/Gaussian/SkewRotationPlane.lean new file mode 100644 index 0000000000..3e693a2920 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SkewRotationPlane.lean @@ -0,0 +1,105 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.InnerProductSpace.Spectrum +public import Mathlib.RingTheory.SimpleRing.Principal +public import Mathlib.Tactic.TypeStar + +/-! +# An actual invariant rotation plane for an injective real skew operator + +The spectral theorem is applied to the positive Gram operator `A†A`. +An eigenvector `x` and the normalized vector `Ax` give an orthonormal +rotation plane. The orthogonal complement of any invariant subspace is +invariant as well. These are induction foundations for the finite-mode +real skew normal form required by Williamson's theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] + [FiniteDimensional ℝ E] + +theorem real_skew_inner_self (A : E →ₗ[ℝ] E) (hA : A.adjoint = -A) (x : E) : + inner ℝ x (A x) = 0 := by + have h := A.adjoint_inner_right x x + rw [hA, LinearMap.neg_apply, inner_neg_right] at h + linarith [real_inner_comm x (A x)] + +/-- Every injective skew-adjoint real operator on a nonzero finite-dimensional +Hilbert space has a genuine orthonormal invariant rotation pair. -/ +theorem exists_skew_rotation_plane [Nontrivial E] + (A : E →ₗ[ℝ] E) (hA : A.adjoint = -A) (hinj : Function.Injective A) : + ∃ (ν : ℝ) (x y : E), 0 < ν ∧ ‖x‖ = 1 ∧ ‖y‖ = 1 ∧ + inner ℝ x y = 0 ∧ A x = ν • y ∧ A y = (-ν) • x := by + let hP := A.isSymmetric_adjoint_comp_self + let i : Fin (Module.finrank ℝ E) := ⟨0, Module.finrank_pos⟩ + let b : OrthonormalBasis (Fin (Module.finrank ℝ E)) ℝ E := hP.eigenvectorBasis rfl + let x := b i + let μ := hP.eigenvalues rfl i + have hx : ‖x‖ = 1 := b.orthonormal.norm_eq_one i + have hx₀ : x ≠ 0 := by + intro h + rw [h, norm_zero] at hx + norm_num at hx + have hAx₀ : A x ≠ 0 := by + intro h + exact hx₀ (hinj (h.trans A.map_zero.symm)) + have heig : A.adjoint (A x) = μ • x := hP.apply_eigenvectorBasis rfl i + have hnorm : ‖A x‖ ^ 2 = μ := by + calc + ‖A x‖ ^ 2 = inner ℝ (A x) (A x) := (real_inner_self_eq_norm_sq _).symm + _ = inner ℝ x (A.adjoint (A x)) := (A.adjoint_inner_right x (A x)).symm + _ = μ := by rw [heig, real_inner_smul_right, real_inner_self_eq_norm_sq, hx]; ring + have hμ : 0 < μ := by + rw [← hnorm] + exact sq_pos_of_pos (norm_pos_iff.mpr hAx₀) + let ν := Real.sqrt μ + let y := ν⁻¹ • A x + have hν : 0 < ν := Real.sqrt_pos.mpr hμ + have hνsq : ν * ν = μ := Real.mul_self_sqrt hμ.le + have hνnorm : ν = ‖A x‖ := by + dsimp [ν] + rw [← hnorm, Real.sqrt_sq (norm_nonneg _)] + have hy : ‖y‖ = 1 := by + dsimp [y] + rw [norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr hν), + ← hνnorm, inv_mul_cancel₀ hν.ne'] + have hxy : inner ℝ x y = 0 := by + dsimp [y] + rw [real_inner_smul_right, real_skew_inner_self A hA, mul_zero] + have hrot₁ : A x = ν • y := by + dsimp [y] + rw [smul_smul, mul_inv_cancel₀ hν.ne', one_smul] + have hAA : A (A x) = (-μ) • x := by + have h := congrArg Neg.neg heig + simpa only [hA, LinearMap.neg_apply, neg_neg, neg_smul] using h + have hrot₂ : A y = (-ν) • x := by + dsimp [y] + rw [map_smul, hAA, smul_smul] + congr 1 + rw [← hνsq] + field_simp [hν.ne'] + exact ⟨ν, x, y, hν, hx, hy, hxy, hrot₁, hrot₂⟩ + +/-- The orthogonal complement of an invariant subspace remains invariant +under a real skew-adjoint operator. -/ +theorem real_skew_maps_orthogonal (A : E →ₗ[ℝ] E) (hA : A.adjoint = -A) + (P : Submodule ℝ E) (hP : ∀ x ∈ P, A x ∈ P) : + ∀ x ∈ Pᗮ, A x ∈ Pᗮ := by + intro x hx + apply (P.mem_orthogonal _).mpr + intro y hy + calc + inner ℝ y (A x) = inner ℝ (A.adjoint y) x := (A.adjoint_inner_left x y).symm + _ = -inner ℝ (A y) x := by rw [hA, LinearMap.neg_apply, inner_neg_left] + _ = 0 := by rw [P.inner_right_of_mem_orthogonal (hP y hy) hx, neg_zero] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SourceGram.lean b/LeanPool/VacuumBellSeparation/Gaussian/SourceGram.lean new file mode 100644 index 0000000000..1f3c706a2f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SourceGram.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SourceMapConstruction +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexifiedOperator +public import LeanPool.VacuumBellSeparation.FreeField.RealCommutation + +/-! +# The actual complex source map and its Gram operator + +A real isometry `K` into the physical complex one-particle space extends to +`κ(x+iy)=Kx+iKy`. This map is bounded by `sqrt 2`; it is not assumed to be +isometric or injective. Its actual Gram operator is `1+(i/2) J_C`, where +`J_C` is the componentwise extension of the constructed real commutation +operator. This supplies the physical origin of the normalized Gram formula. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap HilbertComplexification +open scoped ComplexConjugate + +variable {E H : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +omit [CompleteSpace E] [CompleteSpace H] in +@[simp] +theorem sourceMap_apply (K : E →ₗᵢ[ℝ] H) (z : HilbertComplexification E) : + sourceMap K z = K z.re + Complex.I • K z.im := rfl + +omit [CompleteSpace E] [CompleteSpace H] in +theorem norm_sourceMap_le_sqrt_two (K : E →ₗᵢ[ℝ] H) : ‖sourceMap K‖ ≤ Real.sqrt 2 := + ContinuousLinearMap.opNorm_le_bound _ (Real.sqrt_nonneg _) (norm_sourceMapLinear_le K) + +omit [CompleteSpace E] [CompleteSpace H] in +theorem sourceMap_ofReal (K : E →ₗᵢ[ℝ] H) (x : E) : sourceMap K (ofReal x) = K x := by + simp + +theorem complexCommutation_mem_skewAdjoint (K : E →ₗᵢ[ℝ] H) : + complexCommutation K ∈ skewAdjoint + (HilbertComplexification E →L[ℂ] HilbertComplexification E) := + complexify_mem_skewAdjoint (realCommutation_mem_skewAdjoint K) + +theorem norm_complexCommutation_le_two (K : E →ₗᵢ[ℝ] H) : + ‖complexCommutation K‖ ≤ 2 := by + rw [complexCommutation, norm_complexify] + exact norm_realCommutation_le_two K + +theorem inner_sourceMap_gram (K : E →ₗᵢ[ℝ] H) (z w : HilbertComplexification E) : + inner ℂ (sourceMap K z) (sourceMap K w) = + inner ℂ z ((1 + (Complex.I / 2) • complexCommutation K) w) := by + simp only [sourceMap_apply, inner_add_left, inner_add_right, + inner_smul_left, inner_smul_right, inner_realEmbedding_gram, + add_apply, one_apply_eq_self, smul_apply, complexCommutation, + HilbertComplexification.inner_eq, complexify_re, complexify_im] + apply Complex.ext <;> + simp [Complex.mul_re, Complex.mul_im] <;> ring + +/-- The actual physical Gram operator, with the source's normalization and sign. -/ +theorem sourceMap_adjoint_mul_self (K : E →ₗᵢ[ℝ] H) : + (sourceMap K).adjoint.comp (sourceMap K) = 1 + (Complex.I / 2) • complexCommutation K := by + apply ContinuousLinearMap.ext + intro w + apply ext_inner_left ℂ + intro z + change inner ℂ z ((sourceMap K).adjoint (sourceMap K w)) = _ + rw [ContinuousLinearMap.adjoint_inner_right] + exact inner_sourceMap_gram K z w + +omit [CompleteSpace E] [CompleteSpace H] in +/-- Real source inclusions intertwine the actual complex physical maps. -/ +theorem sourceMap_comp_complexifyIsometry + {F : Type*} [NormedAddCommGroup F] [InnerProductSpace ℝ F] + (K : E →ₗᵢ[ℝ] H) (i : F →ₗᵢ[ℝ] E) : + (sourceMap K).comp (complexifyIsometry i).toContinuousLinearMap = sourceMap (K.comp i) := by + apply ContinuousLinearMap.ext + intro z + simp + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SourceMapConstruction.lean b/LeanPool/VacuumBellSeparation/Gaussian/SourceMapConstruction.lean new file mode 100644 index 0000000000..70321e3cce --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SourceMapConstruction.lean @@ -0,0 +1,73 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexifiedOperator +public import LeanPool.VacuumBellSeparation.FreeField.RealCommutation + +/-! +# Literal statement construction extracted from Gaussian/SourceGram + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap HilbertComplexification +open scoped ComplexConjugate + +variable {E H : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] + [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Source map linear. -/ +noncomputable def sourceMapLinear (K : E →ₗᵢ[ℝ] H) : HilbertComplexification E →ₗ[ℂ] H where + toFun z := K z.re + Complex.I • K z.im + map_add' z w := by simp [smul_add]; abel + map_smul' c z := by + have hre : (c.re : ℂ) + Complex.I * (c.im : ℂ) = c := by + apply Complex.ext <;> simp + have him : -(c.im : ℂ) + Complex.I * (c.re : ℂ) = c * Complex.I := by + apply Complex.ext <;> simp + simp only [re_smul, im_smul, map_sub, map_add, map_smul, + RCLike.real_smul_eq_coe_smul (K := ℂ), smul_add, smul_smul] + calc + ((c.re : ℂ) • K z.re - (c.im : ℂ) • K z.im) + + ((Complex.I * (c.im : ℂ)) • K z.re + + (Complex.I * (c.re : ℂ)) • K z.im) = + ((c.re : ℂ) + Complex.I * (c.im : ℂ)) • K z.re + + (-(c.im : ℂ) + Complex.I * (c.re : ℂ)) • K z.im := by module + _ = c • K z.re + (c * Complex.I) • K z.im := by rw [hre, him] + +omit [CompleteSpace E] [CompleteSpace H] in +theorem norm_sourceMapLinear_le (K : E →ₗᵢ[ℝ] H) (z : HilbertComplexification E) : + ‖sourceMapLinear K z‖ ≤ Real.sqrt 2 * ‖z‖ := by + have hsum : ‖z.re‖ + ‖z.im‖ ≤ Real.sqrt 2 * ‖z‖ := by + apply nonneg_le_nonneg_of_sq_le_sq + (mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _)) + simp only [← pow_two] + rw [mul_pow, Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2), HilbertComplexification.norm_sq] + nlinarith [sq_nonneg (‖z.re‖ - ‖z.im‖)] + calc + ‖sourceMapLinear K z‖ ≤ ‖K z.re‖ + ‖Complex.I • K z.im‖ := norm_add_le _ _ + _ = ‖z.re‖ + ‖z.im‖ := by simp [norm_smul] + _ ≤ Real.sqrt 2 * ‖z‖ := hsum + +/-- The bounded complex source map induced by the real physical embedding. -/ +noncomputable def sourceMap (K : E →ₗᵢ[ℝ] H) : HilbertComplexification E →L[ℂ] H := + (sourceMapLinear K).mkContinuous (Real.sqrt 2) (norm_sourceMapLinear_le K) + + +/-- The commutation operator on the actual Hilbert complexification. -/ +noncomputable def complexCommutation (K : E →ₗᵢ[ℝ] H) : + HilbertComplexification E →L[ℂ] HilbertComplexification E := + complexify (realCommutation K) + + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselCompatibility.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselCompatibility.lean new file mode 100644 index 0000000000..cc3eff5927 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselCompatibility.lean @@ -0,0 +1,62 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Special.BesselK +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselKernels + +/-! +# Compatibility with the repository's existing modified Bessel functions + +The newer shifted-Laplace proof uses exactly the existing cosh-integral +definition. These identities expose reuse of the existing all-order +integrability theorem, and extend the original function with genuine +right-half-plane holomorphy. There is no separate special-function model. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Set + +theorem modifiedBesselIntegral_eq_besselKReal (n : ℕ) (x : ℝ) : + modifiedBesselIntegral n x = besselKReal (n : ℝ) x := by + simp only [modifiedBesselIntegral, besselKReal, neg_mul] + +theorem modifiedBesselComplexIntegral_eq_besselK (n : ℕ) (z : ℂ) : + modifiedBesselComplexIntegral n z = besselK (n : ℝ) z := by + simp only [modifiedBesselComplexIntegral, besselK, neg_mul] + +theorem hasDerivAt_besselK_nat (n : ℕ) {z : ℂ} (hz : 0 < z.re) : + HasDerivAt (besselK (n : ℝ)) + (∫ u in Ioi (0 : ℝ), modifiedBesselDerivativeIntegrand n z u) z := by + have hint (x : ℝ) (hx : 0 < x) : IntegrableOn + (fun u : ℝ => Real.exp (-x * Real.cosh u) * Real.cosh ((n : ℝ) * u)) (Ioi 0) := by + simpa only [neg_mul] using integrableOn_besselKReal_integrand (n : ℝ) hx + have h := hasDerivAt_modifiedBesselComplexIntegral n hint hz + have he : modifiedBesselComplexIntegral n = besselK (n : ℝ) := + funext (modifiedBesselComplexIntegral_eq_besselK n) + rw [he] at h + exact h + +theorem differentiableOn_besselK_nat (n : ℕ) : + DifferentiableOn ℂ (besselK (n : ℝ)) {z : ℂ | 0 < z.re} := by + intro z hz + exact (hasDerivAt_besselK_nat n hz).differentiableAt.differentiableWithinAt + +theorem besselFieldKernel_eq_existing (μ : ℝ) (ρ : ℂ) : + besselFieldKernel μ ρ = (μ : ℂ) / ((4 * Real.pi ^ 2 : ℝ) * ρ) * + besselK 1 ((μ : ℂ) * ρ) := by + simp only [besselFieldKernel, modifiedBesselComplexIntegral_eq_besselK, Nat.cast_one] + +theorem besselMomentumKernel_eq_existing (μ : ℝ) (ρ : ℂ) : + besselMomentumKernel μ ρ = -(μ : ℂ) ^ 2 / ((4 * Real.pi ^ 2 : ℝ) * ρ ^ 2) * + besselK 2 ((μ : ℂ) * ρ) := by + simp only [besselMomentumKernel, modifiedBesselComplexIntegral_eq_besselK, Nat.cast_ofNat] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselComplexIntegral.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselComplexIntegral.lean new file mode 100644 index 0000000000..d7633a77e5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselComplexIntegral.lean @@ -0,0 +1,90 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselScaledBounds + +/-! +# Complex Bessel cosh integrals on the right half-plane + +The complex quantity is the literal scalar Bochner integral. Its +integrand norm is exactly the real integrand at Re z, proving actual +convergence and the source domination for orders one and two. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Set + +/-- Modified Bessel complex integral given by `∫ u in Ioi (0 : ℝ), Complex.exp (-z * (Real.cosh u : +ℂ)) * (Real.cosh ((n : ℝ) * u) : ℂ)`. -/ +noncomputable def modifiedBesselComplexIntegral (n : ℕ) (z : ℂ) : ℂ := + ∫ u in Ioi (0 : ℝ), Complex.exp (-z * (Real.cosh u : ℂ)) * + (Real.cosh ((n : ℝ) * u) : ℂ) + +theorem modifiedBesselComplex_integrand_norm (n : ℕ) (z : ℂ) (u : ℝ) : + ‖Complex.exp (-z * (Real.cosh u : ℂ)) * (Real.cosh ((n : ℝ) * u) : ℂ)‖ = + Real.exp (-z.re * Real.cosh u) * Real.cosh ((n : ℝ) * u) := by + rw [norm_mul, Complex.norm_exp, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos (Real.cosh_pos _)] + simp only [Complex.mul_re, Complex.neg_re, Complex.neg_im, Complex.ofReal_re, + Complex.ofReal_im, mul_zero, sub_zero] + +theorem integrableOn_modifiedBessel_complex_of_real (n : ℕ) (z : ℂ) + (h : IntegrableOn (fun u : ℝ => Real.exp (-z.re * Real.cosh u) * + Real.cosh ((n : ℝ) * u)) (Ioi 0)) : + IntegrableOn (fun u : ℝ => Complex.exp (-z * (Real.cosh u : ℂ)) * + (Real.cosh ((n : ℝ) * u) : ℂ)) (Ioi 0) := by + apply h.mono' + · exact (show Continuous (fun u : ℝ => Complex.exp (-z * (Real.cosh u : ℂ)) * + (Real.cosh ((n : ℝ) * u) : ℂ)) by fun_prop).aestronglyMeasurable + · exact Filter.Eventually.of_forall (fun u => (modifiedBesselComplex_integrand_norm n z u).le) + +theorem modifiedBesselComplexIntegral_norm_le (n : ℕ) (z : ℂ) : + ‖modifiedBesselComplexIntegral n z‖ ≤ modifiedBesselIntegral n z.re := by + unfold modifiedBesselComplexIntegral modifiedBesselIntegral + calc + _ ≤ ∫ u in Ioi (0 : ℝ), + ‖Complex.exp (-z * (Real.cosh u : ℂ)) * (Real.cosh ((n : ℝ) * u) : ℂ)‖ := + norm_integral_le_integral_norm _ + _ = _ := by simp_rw [modifiedBesselComplex_integrand_norm] + +theorem modifiedBesselComplexIntegral_ofReal (n : ℕ) (x : ℝ) : + modifiedBesselComplexIntegral n (x : ℂ) = (modifiedBesselIntegral n x : ℂ) := by + unfold modifiedBesselComplexIntegral modifiedBesselIntegral + rw [← integral_complex_ofReal] + apply integral_congr_ae + exact Filter.Eventually.of_forall (fun u => by + simp only [Complex.ofReal_mul, Complex.ofReal_exp, Complex.ofReal_neg]) + +theorem integrableOn_modifiedBessel_complex_one {z : ℂ} (hz : 0 < z.re) : + IntegrableOn (fun u : ℝ => Complex.exp (-z * (Real.cosh u : ℂ)) * + (Real.cosh u : ℂ)) (Ioi 0) := by + simpa only [Nat.cast_one, one_mul] using + integrableOn_modifiedBessel_complex_of_real 1 z + (by simpa only [Nat.cast_one, one_mul] using integrableOn_modifiedBessel_one hz) + +theorem integrableOn_modifiedBessel_complex_two {z : ℂ} (hz : 0 < z.re) : + IntegrableOn (fun u : ℝ => Complex.exp (-z * (Real.cosh u : ℂ)) * + (Real.cosh (2 * u) : ℂ)) (Ioi 0) := by + simpa only [Nat.cast_ofNat] using + integrableOn_modifiedBessel_complex_of_real 2 z + (by simpa only [Nat.cast_ofNat] using integrableOn_modifiedBessel_two hz) + +theorem modifiedBesselComplexIntegral_one_le {z : ℂ} (hz : 0 < z.re) : + ‖modifiedBesselComplexIntegral 1 z‖ ≤ Real.exp (-z.re) * + (z.re⁻¹ + Real.sqrt (Real.pi / (2 * z.re))) := + (modifiedBesselComplexIntegral_norm_le 1 z).trans (modifiedBesselIntegral_one_le hz) + +theorem modifiedBesselComplexIntegral_two_le {z : ℂ} (hz : 0 < z.re) : + ‖modifiedBesselComplexIntegral 2 z‖ ≤ Real.exp (-z.re) * + (2 * (z.re ^ 2)⁻¹ + 4 * z.re⁻¹ + Real.sqrt (Real.pi / (2 * z.re))) := + (modifiedBesselComplexIntegral_norm_le 2 z).trans (modifiedBesselIntegral_two_le hz) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselFullLine.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselFullLine.lean new file mode 100644 index 0000000000..99f8728d93 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselFullLine.lean @@ -0,0 +1,93 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselCompatibility + +/-! +# The actual full-line exponential representation of K + +This is the intermediate integral needed for the heat-parameter +substitution. Gaussian domination from the existing Bessel module proves +absolute convergence before the reflection and symmetrization steps. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Set + +theorem cosh_mul_abs (ν u : ℝ) : Real.cosh (ν * |u|) = Real.cosh (ν * u) := by + rcases le_or_gt 0 u with hu | hu + · rw [abs_of_nonneg hu] + · rw [abs_of_neg hu, mul_neg, Real.cosh_neg] + +theorem integrable_bessel_cosh_fullLine (ν : ℝ) {x : ℝ} (hx : 0 < x) : + Integrable (fun u : ℝ => Real.exp (-x * Real.cosh u) * Real.cosh (ν * u)) := by + have hg : Integrable (fun u : ℝ => + Real.exp (-x + ν ^ 2 / x) * Real.exp (-(x / 4) * u ^ 2)) := + (integrable_exp_neg_mul_sq (by positivity : 0 < x / 4)).const_mul _ + apply hg.mono' (Continuous.aestronglyMeasurable (by fun_prop)) + exact Filter.Eventually.of_forall (fun u => by + simpa only [Real.cosh_abs, cosh_mul_abs, sq_abs, neg_mul] using + BesselK.norm_integrand_le_gaussian ν hx (abs_nonneg u)) + +theorem exp_neg_le_two_cosh (v : ℝ) : Real.exp (-v) ≤ 2 * Real.cosh v := by + rw [Real.cosh_eq] + linarith [Real.exp_pos v] + +theorem integrable_bessel_exp_fullLine (ν : ℝ) {x : ℝ} (hx : 0 < x) : + Integrable (fun u : ℝ => Real.exp (-ν * u) * Real.exp (-x * Real.cosh u)) := by + apply ((integrable_bessel_cosh_fullLine ν hx).const_mul 2).mono' + (Continuous.aestronglyMeasurable (by fun_prop)) + refine Filter.Eventually.of_forall (fun u => ?_) + rw [Real.norm_of_nonneg (by positivity)] + have h := mul_le_mul_of_nonneg_right (exp_neg_le_two_cosh (ν * u)) (Real.exp_pos + (-x * Real.cosh u)).le + calc + Real.exp (-ν * u) * Real.exp (-x * Real.cosh u) = + Real.exp (-(ν * u)) * Real.exp (-x * Real.cosh u) := by rw [neg_mul ν u] + _ ≤ (2 * Real.cosh (ν * u)) * Real.exp (-x * Real.cosh u) := h + _ = 2 * (Real.exp (-x * Real.cosh u) * Real.cosh (ν * u)) := by ring + +theorem integral_bessel_cosh_fullLine (ν : ℝ) (x : ℝ) : + (∫ u : ℝ, Real.exp (-x * Real.cosh u) * Real.cosh (ν * u)) = + 2 * besselKReal ν x := by + have h := integral_comp_abs (f := fun u : ℝ => + Real.exp (-x * Real.cosh u) * Real.cosh (ν * u)) + simpa only [Real.cosh_abs, cosh_mul_abs, besselKReal, neg_mul] using h + +theorem integral_bessel_exp_fullLine (ν : ℝ) {x : ℝ} (hx : 0 < x) : + (∫ u : ℝ, Real.exp (-ν * u) * Real.exp (-x * Real.cosh u)) = + 2 * besselKReal ν x := by + have hm := integrable_bessel_exp_fullLine ν hx + have hp : Integrable (fun u : ℝ => Real.exp (ν * u) * Real.exp (-x * Real.cosh u)) := by + simpa only [neg_neg] using integrable_bessel_exp_fullLine (-ν) hx + have href : (∫ u : ℝ, Real.exp (ν * u) * Real.exp (-x * Real.cosh u)) = + ∫ u : ℝ, Real.exp (-ν * u) * Real.exp (-x * Real.cosh u) := by + simpa only [neg_mul, mul_neg, neg_neg, Real.cosh_neg] using + integral_neg_eq_self (fun u : ℝ => Real.exp (-ν * u) * + Real.exp (-x * Real.cosh u)) volume + have hsum : (∫ u : ℝ, Real.exp (-ν * u) * Real.exp (-x * Real.cosh u)) + + (∫ u : ℝ, Real.exp (ν * u) * Real.exp (-x * Real.cosh u)) = + 2 * (2 * besselKReal ν x) := by + rw [← integral_add hm hp] + calc + _ = ∫ u : ℝ, 2 * (Real.exp (-x * Real.cosh u) * Real.cosh (ν * u)) := by + apply integral_congr_ae + refine Filter.Eventually.of_forall (fun u => ?_) + change Real.exp (-ν * u) * Real.exp (-x * Real.cosh u) + + Real.exp (ν * u) * Real.exp (-x * Real.cosh u) = + 2 * (Real.exp (-x * Real.cosh u) * Real.cosh (ν * u)) + rw [Real.cosh_eq (ν * u), neg_mul] + ring + _ = _ := by rw [integral_const_mul, integral_bessel_cosh_fullLine] + rw [href] at hsum + linarith + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselHeatParameter.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselHeatParameter.lean new file mode 100644 index 0000000000..a24c252f63 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselHeatParameter.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselFullLine + +/-! +# Actual heat-parameter integrals and the existing Bessel K + +The substitution t=(r/(2μ))exp(u) is implemented by two genuine +Lebesgue changes of variables. Absolute convergence is proved separately. +This identifies the scalar heat kernels, without asserting a Fourier +distribution identity or an unproved exchange with spatial test functions. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Set + +/-- Heat Bessel integrand given by `t ^ (-(n + 1 : ℤ)) * Real.exp (-(μ ^ 2 * t) - r ^ 2 / (4 * +t))`. -/ +noncomputable def heatBesselIntegrand (n : ℕ) (μ r t : ℝ) : ℝ := + t ^ (-(n + 1 : ℤ)) * Real.exp (-(μ ^ 2 * t) - r ^ 2 / (4 * t)) + +theorem heatBessel_exponent {μ r : ℝ} (hμ : 0 < μ) (hr : 0 < r) (u : ℝ) : + -(μ ^ 2 * ((r / (2 * μ)) * Real.exp u)) - + r ^ 2 / (4 * ((r / (2 * μ)) * Real.exp u)) = + -(μ * r) * Real.cosh u := by + rw [Real.cosh_eq, Real.exp_neg] + field_simp [hμ.ne', hr.ne', (Real.exp_pos u).ne']; ring + +theorem heatBessel_jacobian_power (n : ℕ) {t : ℝ} (ht : t ≠ 0) : + t * t ^ (-(n + 1 : ℤ)) = (t⁻¹) ^ n := by + rw [zpow_neg, show (n : ℤ) + 1 = ((n + 1 : ℕ) : ℤ) by simp, + zpow_natCast, pow_succ, inv_pow] + field_simp [ht] + +theorem heatBessel_change_integrand (n : ℕ) {μ r : ℝ} (hμ : 0 < μ) (hr : 0 < r) + (u : ℝ) : + ((r / (2 * μ)) * Real.exp u) * + heatBesselIntegrand n μ r ((r / (2 * μ)) * Real.exp u) = + (2 * μ / r) ^ n * (Real.exp (-(n : ℝ) * u) * + Real.exp (-(μ * r) * Real.cosh u)) := by + have ht : (r / (2 * μ)) * Real.exp u ≠ 0 := ne_of_gt (by positivity) + unfold heatBesselIntegrand + rw [← mul_assoc, heatBessel_jacobian_power n ht, heatBessel_exponent hμ hr] + have hinv : ((r / (2 * μ)) * Real.exp u)⁻¹ = + (2 * μ / r) * Real.exp (-u) := by + rw [Real.exp_neg] + field_simp [hμ.ne', hr.ne', (Real.exp_pos u).ne'] + rw [hinv, mul_pow, ← Real.exp_nat_mul] + rw [show (n : ℝ) * -u = -(n : ℝ) * u by ring] + ring + +theorem integrableOn_heatBesselIntegrand (n : ℕ) {μ r : ℝ} + (hμ : 0 < μ) (hr : 0 < r) : + IntegrableOn (heatBesselIntegrand n μ r) (Ioi 0) := by + let a := r / (2 * μ) + have ha : 0 < a := by dsimp only [a]; positivity + have hi : Integrable (fun u : ℝ => (a * Real.exp u) * + heatBesselIntegrand n μ r (a * Real.exp u)) := by + simpa only [a, heatBessel_change_integrand n hμ hr] using + (integrable_bessel_exp_fullLine (n : ℝ) (mul_pos hμ hr)).const_mul ((2 * μ / r) ^ n) + have hi' : Integrable (fun u : ℝ => Real.exp u * heatBesselIntegrand n μ r (a * Real.exp u)) := by + convert hi.const_mul a⁻¹ using 1 + funext u + field_simp [ha.ne'] + have hv : IntegrableOn (fun v => heatBesselIntegrand n μ r (a * v)) (Ioi 0) := + (integrable_comp_exp (fun v => heatBesselIntegrand n μ r (a * v))).mp hi' + simpa only [mul_zero] using + (integrableOn_Ioi_comp_mul_left_iff (heatBesselIntegrand n μ r) 0 ha).mp hv + +theorem integral_heatBesselIntegrand (n : ℕ) {μ r : ℝ} (hμ : 0 < μ) (hr : 0 < r) : + (∫ t in Ioi (0 : ℝ), heatBesselIntegrand n μ r t) = + 2 * (2 * μ / r) ^ n * besselKReal (n : ℝ) (μ * r) := by + let a := r / (2 * μ) + have ha : 0 < a := by dsimp only [a]; positivity + calc + _ = a * ∫ v in Ioi (0 : ℝ), heatBesselIntegrand n μ r (a * v) := by + simpa only [mul_zero, smul_eq_mul] using + (integral_comp_mul_left_Ioi' (heatBesselIntegrand n μ r) 0 ha).symm + _ = a * ∫ u : ℝ, Real.exp u * heatBesselIntegrand n μ r (a * Real.exp u) := by + rw [← integral_comp_exp (fun v => heatBesselIntegrand n μ r (a * v))] + rfl + _ = ∫ u : ℝ, (a * Real.exp u) * heatBesselIntegrand n μ r (a * Real.exp u) := by + rw [← integral_const_mul] + apply integral_congr_ae + exact Filter.Eventually.of_forall (fun u => by ring) + _ = (2 * μ / r) ^ n * ∫ u : ℝ, + Real.exp (-(n : ℝ) * u) * Real.exp (-(μ * r) * Real.cosh u) := by + simp_rw [a, heatBessel_change_integrand n hμ hr] + rw [integral_const_mul] + _ = _ := by rw [integral_bessel_exp_fullLine _ (mul_pos hμ hr)]; ring + +theorem heatFieldKernel_eq_bessel {μ r : ℝ} (hμ : 0 < μ) (hr : 0 < r) : + (1 / (16 * Real.pi ^ 2)) * + (∫ t in Ioi (0 : ℝ), heatBesselIntegrand 1 μ r t) = + μ / (4 * Real.pi ^ 2 * r) * besselKReal 1 (μ * r) := by + rw [integral_heatBesselIntegrand 1 hμ hr] + norm_num only [pow_one, Nat.cast_one] + field_simp [Real.pi_ne_zero, hr.ne']; ring + +theorem heatMomentumKernel_eq_bessel {μ r : ℝ} (hμ : 0 < μ) (hr : 0 < r) : + -(1 / (32 * Real.pi ^ 2)) * + (∫ t in Ioi (0 : ℝ), heatBesselIntegrand 2 μ r t) = + -(μ ^ 2) / (4 * Real.pi ^ 2 * r ^ 2) * besselKReal 2 (μ * r) := by + rw [integral_heatBesselIntegrand 2 hμ hr] + norm_num only [Nat.cast_ofNat] + field_simp [Real.pi_ne_zero, hr.ne']; ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselHolomorphic.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselHolomorphic.lean new file mode 100644 index 0000000000..81c4b69b4c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselHolomorphic.lean @@ -0,0 +1,125 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselComplexIntegral +import Mathlib.Tactic.Positivity +public import Mathlib.Analysis.Calculus.ParametricIntegral + +/-! +# Holomorphy of the actual Bessel cosh integrals + +Differentiation under the positive-half-line integral uses a genuine +locally uniform integrable majorant. Orders one and two discharge that +majorant with the previously proved real integral convergence. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Set Filter +open scoped Topology + +theorem laplace_linear_absorption {b y : ℝ} (hb : 0 < b) : + y * Real.exp (-b * y) ≤ b⁻¹ := by + have h := Real.mul_exp_neg_le_exp_neg_one (b * y) + have he : Real.exp (-1 : ℝ) ≤ 1 := by rw [Real.exp_le_one_iff]; norm_num + rw [← one_div] + apply (le_div_iff₀ hb).mpr + simpa only [neg_mul, mul_neg, mul_assoc, mul_comm, mul_left_comm] using h.trans he + +theorem laplace_derivative_majorant {a r y : ℝ} (ha : 0 < a) (har : a ≤ r) + (hy : 0 ≤ y) : + y * Real.exp (-r * y) ≤ (2 / a) * Real.exp (-(a / 2) * y) := by + calc + y * Real.exp (-r * y) ≤ y * Real.exp (-a * y) := by + apply mul_le_mul_of_nonneg_left _ hy + apply Real.exp_le_exp.mpr + exact mul_le_mul_of_nonneg_right (neg_le_neg har) hy + _ = (y * Real.exp (-(a / 2) * y)) * Real.exp (-(a / 2) * y) := by + rw [mul_assoc, ← Real.exp_add] + congr 2 + ring + _ ≤ (2 / a) * Real.exp (-(a / 2) * y) := by + have h := laplace_linear_absorption (y := y) (show 0 < a / 2 by positivity) + have heq : (a / 2)⁻¹ = 2 / a := by field_simp + rw [heq] at h + exact mul_le_mul_of_nonneg_right h (Real.exp_pos _).le + +/-- Modified Bessel derivative integrand. -/ +noncomputable def modifiedBesselDerivativeIntegrand (n : ℕ) (z : ℂ) (u : ℝ) : ℂ := + -(Real.cosh u : ℂ) * (Complex.exp (-z * (Real.cosh u : ℂ)) * + (Real.cosh ((n : ℝ) * u) : ℂ)) + +theorem hasDerivAt_modifiedBessel_integrand (n : ℕ) (z : ℂ) (u : ℝ) : + HasDerivAt (fun w : ℂ => Complex.exp (-w * (Real.cosh u : ℂ)) * + (Real.cosh ((n : ℝ) * u) : ℂ)) (modifiedBesselDerivativeIntegrand n z u) z := by + have h := ((Complex.hasDerivAt_exp (-z * (Real.cosh u : ℂ))).comp z + ((hasDerivAt_id z).neg.mul_const (Real.cosh u : ℂ))).mul_const + (Real.cosh ((n : ℝ) * u) : ℂ) + simpa only [modifiedBesselDerivativeIntegrand, Function.comp_def, Pi.neg_apply, id_eq, + neg_one_mul, + mul_assoc, mul_comm, mul_left_comm] using h + +theorem modifiedBesselDerivativeIntegrand_norm_le (n : ℕ) {a : ℝ} (ha : 0 < a) + {z : ℂ} (hz : a ≤ z.re) (u : ℝ) : + ‖modifiedBesselDerivativeIntegrand n z u‖ ≤ + (2 / a) * (Real.exp (-(a / 2) * Real.cosh u) * Real.cosh ((n : ℝ) * u)) := by + unfold modifiedBesselDerivativeIntegrand + rw [norm_mul, norm_neg, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos (Real.cosh_pos _), modifiedBesselComplex_integrand_norm] + simpa only [mul_assoc] using mul_le_mul_of_nonneg_right + (laplace_derivative_majorant ha hz (Real.cosh_pos u).le) (Real.cosh_pos _).le + +theorem hasDerivAt_modifiedBesselComplexIntegral (n : ℕ) + (hint : ∀ x : ℝ, 0 < x → IntegrableOn + (fun u : ℝ => Real.exp (-x * Real.cosh u) * Real.cosh ((n : ℝ) * u)) (Ioi 0)) + {z : ℂ} (hz : 0 < z.re) : + HasDerivAt (modifiedBesselComplexIntegral n) + (∫ u in Ioi (0 : ℝ), modifiedBesselDerivativeIntegrand n z u) z := by + let a : ℝ := z.re / 2 + have ha : 0 < a := by dsimp only [a]; positivity + have haz : a < z.re := by dsimp only [a]; linarith + have hs : {w : ℂ | a < w.re} ∈ 𝓝 z := + (isOpen_lt continuous_const Complex.continuous_re).mem_nhds haz + have h := hasDerivAt_integral_of_dominated_loc_of_deriv_le + (μ := volume.restrict (Ioi (0 : ℝ))) + (F := fun w u => Complex.exp (-w * (Real.cosh u : ℂ)) * + (Real.cosh ((n : ℝ) * u) : ℂ)) + (F' := modifiedBesselDerivativeIntegrand n) + (bound := fun u => (2 / a) * + (Real.exp (-(a / 2) * Real.cosh u) * Real.cosh ((n : ℝ) * u))) hs + (Eventually.of_forall (fun w => (show Continuous (fun u : ℝ => + Complex.exp (-w * (Real.cosh u : ℂ)) * (Real.cosh ((n : ℝ) * u) : ℂ)) by + fun_prop).aestronglyMeasurable)) + (integrableOn_modifiedBessel_complex_of_real n z (hint _ hz)) + (show AEStronglyMeasurable (modifiedBesselDerivativeIntegrand n z) + (volume.restrict (Ioi (0 : ℝ))) from + (show Continuous (modifiedBesselDerivativeIntegrand n z) by + unfold modifiedBesselDerivativeIntegrand + fun_prop).aestronglyMeasurable) + (Eventually.of_forall (fun u w hw => modifiedBesselDerivativeIntegrand_norm_le n ha hw.le u)) + ((hint (a / 2) (by positivity)).const_mul (2 / a)) + (Eventually.of_forall (fun u w _ => hasDerivAt_modifiedBessel_integrand n w u)) + exact h.2 + +theorem differentiableOn_modifiedBesselComplexIntegral_one : + DifferentiableOn ℂ (modifiedBesselComplexIntegral 1) {z : ℂ | 0 < z.re} := by + intro z hz + exact (hasDerivAt_modifiedBesselComplexIntegral 1 + (fun x hx => by simpa only [Nat.cast_one, one_mul] using integrableOn_modifiedBessel_one hx) + hz).differentiableAt.differentiableWithinAt + +theorem differentiableOn_modifiedBesselComplexIntegral_two : + DifferentiableOn ℂ (modifiedBesselComplexIntegral 2) {z : ℂ | 0 < z.re} := by + intro z hz + exact (hasDerivAt_modifiedBesselComplexIntegral 2 + (fun x hx => by simpa only [Nat.cast_ofNat] using integrableOn_modifiedBessel_two hx) + hz).differentiableAt.differentiableWithinAt + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselIntegral.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselIntegral.lean new file mode 100644 index 0000000000..634f7e3065 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselIntegral.lean @@ -0,0 +1,150 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialShiftedLaplaceBounds +public import Mathlib.Analysis.SpecialFunctions.Arcosh + +/-! +# The actual cosh integral and its shifted-Laplace representation + +The modified Bessel quantity here is defined by the manuscript's literal +cosh integral. An actual injective differentiable change of variables +establishes both integral equality and convergence for orders one and two. +Identification with the spatial Fourier covariance kernel, for sources with separated supports, +is proved in other modules (`modifiedBesselIntegral_eq_besselKReal` in +`Gaussian/SpatialBesselCompatibility.lean`, `timeZeroFourierCovariance_eq_bessel_kernel` in +`FreeField/SpatialSeparatedCovarianceKernel.lean`). +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Set + +/-- Shifted arcosh given by `Real.arcosh (v + 1)`. -/ +noncomputable def shiftedArcosh (v : ℝ) : ℝ := Real.arcosh (v + 1) + +theorem shiftedArcosh_hasDerivAt {v : ℝ} (hv : 0 < v) : + HasDerivAt shiftedArcosh (Real.sqrt (v * (v + 2)))⁻¹ v := by + have h : HasDerivAt (fun x : ℝ => Real.arcosh (x + 1)) + ((Real.sqrt ((v + 1) ^ 2 - 1))⁻¹ * 1) v := + HasDerivAt.comp (h₂ := Real.arcosh) (h := fun x : ℝ => x + 1) v + (Real.hasDerivAt_arcosh (show v + 1 ∈ Ioi 1 from by + change 1 < v + 1 + linarith)) + ((hasDerivAt_id v).add_const 1) + change HasDerivAt (fun x : ℝ => Real.arcosh (x + 1)) + (Real.sqrt (v * (v + 2)))⁻¹ v + convert h using 1 + rw [mul_one, show (v + 1) ^ 2 - 1 = v * (v + 2) by ring] + +theorem shiftedArcosh_injOn : InjOn shiftedArcosh (Ioi 0) := by + intro v hv w hw h + change 0 < v at hv + change 0 < w at hw + have hc := congrArg Real.cosh h + simp only [shiftedArcosh, Real.cosh_arcosh (show 1 ≤ v + 1 by linarith), + Real.cosh_arcosh (show 1 ≤ w + 1 by linarith)] at hc + linarith + +theorem shiftedArcosh_image : shiftedArcosh '' Ioi (0 : ℝ) = Ioi 0 := by + ext u + constructor + · rintro ⟨v, hv, rfl⟩ + change 0 < v at hv + exact Real.arcosh_pos (by linarith) + · intro hu + refine ⟨Real.cosh u - 1, ?_, ?_⟩ + · exact sub_pos.mpr (Real.one_lt_cosh.mpr (ne_of_gt hu)) + · simpa only [shiftedArcosh, sub_add_cancel] using Real.arcosh_cosh hu.le + +theorem integral_shiftedArcosh {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] + (g : ℝ → F) : + (∫ u in Ioi (0 : ℝ), g u) = + ∫ v in Ioi (0 : ℝ), (Real.sqrt (v * (v + 2)))⁻¹ • g (shiftedArcosh v) := by + have h := integral_image_eq_integral_abs_deriv_smul measurableSet_Ioi + (fun v hv => (shiftedArcosh_hasDerivAt hv).hasDerivWithinAt) shiftedArcosh_injOn g + rw [shiftedArcosh_image] at h + simpa only [abs_of_nonneg (inv_nonneg.mpr (Real.sqrt_nonneg _))] using h + +theorem integrableOn_shiftedArcosh_iff {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] + (g : ℝ → F) : + IntegrableOn g (Ioi (0 : ℝ)) ↔ IntegrableOn + (fun v => (Real.sqrt (v * (v + 2)))⁻¹ • g (shiftedArcosh v)) (Ioi 0) := by + have h := integrableOn_image_iff_integrableOn_abs_deriv_smul measurableSet_Ioi + (fun v hv => (shiftedArcosh_hasDerivAt hv).hasDerivWithinAt) shiftedArcosh_injOn g + rw [shiftedArcosh_image] at h + simpa only [abs_of_nonneg (inv_nonneg.mpr (Real.sqrt_nonneg _))] using h + +/-- Modified Bessel integral given by `∫ u in Ioi (0 : ℝ), Real.exp (-x * Real.cosh u) * Real.cosh +((n : ℝ) * u)`. -/ +noncomputable def modifiedBesselIntegral (n : ℕ) (x : ℝ) : ℝ := + ∫ u in Ioi (0 : ℝ), Real.exp (-x * Real.cosh u) * Real.cosh ((n : ℝ) * u) + +theorem shiftedArcosh_integrand_one (x : ℝ) {v : ℝ} (hv : 0 < v) : + (Real.sqrt (v * (v + 2)))⁻¹ * + (Real.exp (-x * Real.cosh (shiftedArcosh v)) * Real.cosh (shiftedArcosh v)) = + Real.exp (-x) * (shiftedBesselDensityOne v * Real.exp (-x * v)) := by + rw [shiftedArcosh, Real.cosh_arcosh (show 1 ≤ v + 1 by linarith), + show -x * (v + 1) = -x + -x * v by ring, Real.exp_add] + unfold shiftedBesselDensityOne + ring + +theorem shiftedArcosh_integrand_two (x : ℝ) {v : ℝ} (hv : 0 < v) : + (Real.sqrt (v * (v + 2)))⁻¹ * + (Real.exp (-x * Real.cosh (shiftedArcosh v)) * Real.cosh (2 * shiftedArcosh v)) = + Real.exp (-x) * (shiftedBesselDensityTwo v * Real.exp (-x * v)) := by + rw [Real.cosh_two_mul, Real.sinh_sq, shiftedArcosh, + Real.cosh_arcosh (show 1 ≤ v + 1 by linarith), + show -x * (v + 1) = -x + -x * v by ring, Real.exp_add] + unfold shiftedBesselDensityTwo + ring + +theorem modifiedBesselIntegral_one_eq (x : ℝ) : + modifiedBesselIntegral 1 x = shiftedBesselLaplaceOne x := by + unfold modifiedBesselIntegral shiftedBesselLaplaceOne + simp only [Nat.cast_one, one_mul] + rw [integral_shiftedArcosh, ← integral_const_mul] + exact setIntegral_congr_fun measurableSet_Ioi (fun v hv => shiftedArcosh_integrand_one x hv) + +theorem modifiedBesselIntegral_two_eq (x : ℝ) : + modifiedBesselIntegral 2 x = shiftedBesselLaplaceTwo x := by + unfold modifiedBesselIntegral shiftedBesselLaplaceTwo + norm_num only [Nat.cast_ofNat] + rw [integral_shiftedArcosh, ← integral_const_mul] + exact setIntegral_congr_fun measurableSet_Ioi (fun v hv => shiftedArcosh_integrand_two x hv) + +theorem integrableOn_modifiedBessel_one {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun u : ℝ => Real.exp (-x * Real.cosh u) * Real.cosh u) (Ioi 0) := by + rw [integrableOn_shiftedArcosh_iff] + refine IntegrableOn.congr_fun + ((integrableOn_shiftedBessel_density_one hx).const_mul (Real.exp (-x))) + (fun v hv => (shiftedArcosh_integrand_one x hv).symm) measurableSet_Ioi + +theorem integrableOn_modifiedBessel_two {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun u : ℝ => Real.exp (-x * Real.cosh u) * Real.cosh (2 * u)) + (Ioi 0) := by + rw [integrableOn_shiftedArcosh_iff] + refine IntegrableOn.congr_fun + ((integrableOn_shiftedBessel_density_two hx).const_mul (Real.exp (-x))) + (fun v hv => (shiftedArcosh_integrand_two x hv).symm) measurableSet_Ioi + +theorem modifiedBesselIntegral_one_le {x : ℝ} (hx : 0 < x) : + modifiedBesselIntegral 1 x ≤ Real.exp (-x) * + (x⁻¹ + Real.sqrt (Real.pi / (2 * x))) := by + rw [modifiedBesselIntegral_one_eq] + exact shiftedBesselLaplaceOne_le hx + +theorem modifiedBesselIntegral_two_le {x : ℝ} (hx : 0 < x) : + modifiedBesselIntegral 2 x ≤ Real.exp (-x) * + (2 * (x ^ 2)⁻¹ + 4 * x⁻¹ + Real.sqrt (Real.pi / (2 * x))) := by + rw [modifiedBesselIntegral_two_eq] + exact shiftedBesselLaplaceTwo_le hx + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselKernels.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselKernels.lean new file mode 100644 index 0000000000..d68624fd71 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselKernels.lean @@ -0,0 +1,140 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialRadiusHolomorphic + +/-! +# Literal Bessel expressions for the separated field and momentum kernels + +These are the expressions in the manuscript, constructed from actual +complex cosh integrals. Holomorphy and bounds are proved here. Equality +with the Fourier covariance distribution is a separate theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +/-- Bessel field kernel given by `(μ : ℂ) / ((4 * Real.pi ^ 2 : ℝ) * ρ) * +modifiedBesselComplexIntegral 1 ((μ : ℂ) * ρ)`. -/ +noncomputable def besselFieldKernel (μ : ℝ) (ρ : ℂ) : ℂ := + (μ : ℂ) / ((4 * Real.pi ^ 2 : ℝ) * ρ) * modifiedBesselComplexIntegral 1 ((μ : ℂ) * ρ) + +/-- Momentum part of the covariance kernel in its Bessel-function representation. -/ +noncomputable def besselMomentumKernel (μ : ℝ) (ρ : ℂ) : ℂ := + -(μ : ℂ) ^ 2 / ((4 * Real.pi ^ 2 : ℝ) * ρ ^ 2) * + modifiedBesselComplexIntegral 2 ((μ : ℂ) * ρ) + +theorem differentiableAt_besselFieldKernel {μ : ℝ} (hμ : 0 < μ) + {ρ : ℂ} (hρ : 0 < ρ.re) : DifferentiableAt ℂ (besselFieldKernel μ) ρ := by + have harg : 0 < ((μ : ℂ) * ρ).re := by simpa using mul_pos hμ hρ + have hK := (hasDerivAt_modifiedBesselComplexIntegral 1 + (fun x hx => by simpa only [Nat.cast_one, one_mul] using integrableOn_modifiedBessel_one hx) + harg).differentiableAt + have hρ0 : ρ ≠ 0 := by intro h; simp [h] at hρ + unfold besselFieldKernel + apply DifferentiableAt.mul + · exact (differentiableAt_const _).div + ((differentiableAt_const _).mul differentiableAt_id) + (mul_ne_zero (by exact_mod_cast (show (4 * Real.pi ^ 2 : ℝ) ≠ 0 by positivity)) hρ0) + · exact hK.comp ρ ((differentiableAt_const _).mul differentiableAt_id) + +theorem differentiableAt_besselMomentumKernel {μ : ℝ} (hμ : 0 < μ) + {ρ : ℂ} (hρ : 0 < ρ.re) : DifferentiableAt ℂ (besselMomentumKernel μ) ρ := by + have harg : 0 < ((μ : ℂ) * ρ).re := by simpa using mul_pos hμ hρ + have hK := (hasDerivAt_modifiedBesselComplexIntegral 2 + (fun x hx => by simpa only [Nat.cast_ofNat] using integrableOn_modifiedBessel_two hx) + harg).differentiableAt + have hρ0 : ρ ≠ 0 := by intro h; simp [h] at hρ + unfold besselMomentumKernel + apply DifferentiableAt.mul + · exact (differentiableAt_const _).div + ((differentiableAt_const _).mul (differentiableAt_id.pow 2)) + (mul_ne_zero (by exact_mod_cast (show (4 * Real.pi ^ 2 : ℝ) ≠ 0 by positivity)) + (pow_ne_zero _ hρ0)) + · exact hK.comp ρ ((differentiableAt_const _).mul differentiableAt_id) + +theorem besselFieldKernel_norm_le {μ : ℝ} (hμ : 0 < μ) + {ρ : ℂ} (hρ : 0 < ρ.re) : + ‖besselFieldKernel μ ρ‖ ≤ + (3 / (4 * Real.pi ^ 2 * ρ.re ^ 2)) * + Real.sqrt (1 + μ * ρ.re) * Real.exp (-(μ * ρ.re)) := by + have hrn : ρ.re ≤ ‖ρ‖ := Complex.re_le_norm _ + have hn : 0 < ‖ρ‖ := hρ.trans_le hrn + have hc : 0 < 4 * Real.pi ^ 2 := by positivity + have ht : 0 < μ * ρ.re := mul_pos hμ hρ + have hK := modifiedBesselComplexIntegral_norm_le 1 ((μ : ℂ) * ρ) + simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] at hK + have hKr : 0 ≤ modifiedBesselIntegral 1 (μ * ρ.re) := + hK.trans' (norm_nonneg _) + calc + ‖besselFieldKernel μ ρ‖ = μ / (4 * Real.pi ^ 2 * ‖ρ‖) * + ‖modifiedBesselComplexIntegral 1 ((μ : ℂ) * ρ)‖ := by + simp only [besselFieldKernel, norm_mul, norm_div, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos hμ, abs_of_nonneg (sq_nonneg Real.pi)] + norm_num + _ ≤ μ / (4 * Real.pi ^ 2 * ρ.re) * modifiedBesselIntegral 1 (μ * ρ.re) := by + apply mul_le_mul + · exact div_le_div_of_nonneg_left hμ.le (mul_pos hc hρ) + (mul_le_mul_of_nonneg_left hrn hc.le) + · exact hK + · exact norm_nonneg _ + · positivity + _ = ((μ * ρ.re) * modifiedBesselIntegral 1 (μ * ρ.re)) / + (4 * Real.pi ^ 2 * ρ.re ^ 2) := by field_simp + _ ≤ (3 * Real.sqrt (1 + μ * ρ.re) * Real.exp (-(μ * ρ.re))) / + (4 * Real.pi ^ 2 * ρ.re ^ 2) := + div_le_div_of_nonneg_right (modifiedBesselIntegral_one_scaled_le ht) (by positivity) + _ = _ := by ring + +theorem besselMomentumKernel_norm_le {μ : ℝ} (hμ : 0 < μ) + {ρ : ℂ} (hρ : 0 < ρ.re) : + ‖besselMomentumKernel μ ρ‖ ≤ + (8 / (4 * Real.pi ^ 2 * ρ.re ^ 4)) * + (1 + μ * ρ.re) * Real.sqrt (1 + μ * ρ.re) * Real.exp (-(μ * ρ.re)) := by + have hrn : ρ.re ≤ ‖ρ‖ := Complex.re_le_norm _ + have hn : 0 < ‖ρ‖ := hρ.trans_le hrn + have hc : 0 < 4 * Real.pi ^ 2 := by positivity + have ht : 0 < μ * ρ.re := mul_pos hμ hρ + have hK := modifiedBesselComplexIntegral_norm_le 2 ((μ : ℂ) * ρ) + simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] at hK + calc + ‖besselMomentumKernel μ ρ‖ = μ ^ 2 / (4 * Real.pi ^ 2 * ‖ρ‖ ^ 2) * + ‖modifiedBesselComplexIntegral 2 ((μ : ℂ) * ρ)‖ := by + simp only [besselMomentumKernel, norm_mul, norm_div, norm_neg, norm_pow, + Complex.norm_real, Real.norm_eq_abs, abs_of_pos hμ, + abs_of_pos Real.pi_pos] + norm_num + _ ≤ μ ^ 2 / (4 * Real.pi ^ 2 * ρ.re ^ 2) * modifiedBesselIntegral 2 (μ * ρ.re) := by + apply mul_le_mul + · apply div_le_div_of_nonneg_left (sq_nonneg _) (by positivity) + apply mul_le_mul_of_nonneg_left _ hc.le + nlinarith + · exact hK + · exact norm_nonneg _ + · positivity + _ = ((μ * ρ.re) ^ 2 * modifiedBesselIntegral 2 (μ * ρ.re)) / + (4 * Real.pi ^ 2 * ρ.re ^ 4) := by field_simp + _ ≤ (8 * (1 + μ * ρ.re) * Real.sqrt (1 + μ * ρ.re) * Real.exp (-(μ * ρ.re))) / + (4 * Real.pi ^ 2 * ρ.re ^ 4) := + div_le_div_of_nonneg_right (modifiedBesselIntegral_two_scaled_le ht) (by positivity) + _ = _ := by ring + +theorem differentiableAt_spatialBesselFieldKernel {μ s : ℝ} (hμ : 0 < μ) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : 0 < (spatialSquaredRadius s δ).re) : + DifferentiableAt ℂ (fun d => besselFieldKernel μ (spatialComplexRadius s d)) δ := + (differentiableAt_besselFieldKernel hμ (spatialComplexRadius_re_pos_of_squared s δ hδ)).comp δ + (differentiableAt_spatialComplexRadius s δ hδ) + +theorem differentiableAt_spatialBesselMomentumKernel {μ s : ℝ} (hμ : 0 < μ) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : 0 < (spatialSquaredRadius s δ).re) : + DifferentiableAt ℂ (fun d => besselMomentumKernel μ (spatialComplexRadius s d)) δ := + (differentiableAt_besselMomentumKernel hμ (spatialComplexRadius_re_pos_of_squared s δ hδ)).comp δ + (differentiableAt_spatialComplexRadius s δ hδ) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselRationalBounds.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselRationalBounds.lean new file mode 100644 index 0000000000..700e00f5d4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselRationalBounds.lean @@ -0,0 +1,84 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Algebra.Order.Star.Real +import Mathlib.Tactic.Positivity + +/-! +# Rational densities in the shifted Bessel-Laplace integrals + +After the literal change of variable v=cosh(u)-1, the K1 and K2 integral +densities are (v+1)/sqrt(v(v+2)) and (2v²+4v+1)/sqrt(v(v+2)). +This module proves the exact pointwise majorants used by the manuscript. +It does not identify a Fourier kernel or assume the integral substitution. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +/-- Shifted Bessel density one given by `(v + 1) / Real.sqrt (v * (v + 2))`. -/ +noncomputable def shiftedBesselDensityOne (v : ℝ) : ℝ := + (v + 1) / Real.sqrt (v * (v + 2)) + +/-- Shifted Bessel density two given by `(2 * v ^ 2 + 4 * v + 1) / Real.sqrt (v * (v + 2))`. -/ +noncomputable def shiftedBesselDensityTwo (v : ℝ) : ℝ := + (2 * v ^ 2 + 4 * v + 1) / Real.sqrt (v * (v + 2)) + +theorem shiftedBessel_denominator_pos {v : ℝ} (hv : 0 < v) : + 0 < Real.sqrt (v * (v + 2)) := Real.sqrt_pos.mpr (mul_pos hv (by linarith)) + +theorem le_shiftedBessel_denominator {v : ℝ} (hv : 0 ≤ v) : + v ≤ Real.sqrt (v * (v + 2)) := by + have hs := Real.sq_sqrt (show 0 ≤ v * (v + 2) by positivity) + have hn := Real.sqrt_nonneg (v * (v + 2)) + nlinarith + +theorem sqrt_two_mul_le_shiftedBessel_denominator {v : ℝ} (hv : 0 ≤ v) : + Real.sqrt (2 * v) ≤ Real.sqrt (v * (v + 2)) := by + apply Real.sqrt_le_sqrt + nlinarith + +theorem shiftedBesselDensityOne_nonneg {v : ℝ} (hv : 0 < v) : + 0 ≤ shiftedBesselDensityOne v := by + unfold shiftedBesselDensityOne + positivity + +theorem shiftedBesselDensityTwo_nonneg {v : ℝ} (hv : 0 < v) : + 0 ≤ shiftedBesselDensityTwo v := by + unfold shiftedBesselDensityTwo + positivity + +theorem shiftedBesselDensityOne_le {v : ℝ} (hv : 0 < v) : + shiftedBesselDensityOne v ≤ 1 + (Real.sqrt (2 * v))⁻¹ := by + have hd := shiftedBessel_denominator_pos hv + have hfirst : v / Real.sqrt (v * (v + 2)) ≤ 1 := + (div_le_one hd).mpr (le_shiftedBessel_denominator hv.le) + have hsecond : 1 / Real.sqrt (v * (v + 2)) ≤ 1 / Real.sqrt (2 * v) := + div_le_div_of_nonneg_left zero_le_one (Real.sqrt_pos.mpr (by positivity)) + (sqrt_two_mul_le_shiftedBessel_denominator hv.le) + simpa only [shiftedBesselDensityOne, add_div, one_div] using add_le_add hfirst hsecond + +theorem shiftedBesselDensityTwo_le {v : ℝ} (hv : 0 < v) : + shiftedBesselDensityTwo v ≤ 2 * v + 4 + (Real.sqrt (2 * v))⁻¹ := by + have hd := shiftedBessel_denominator_pos hv + have hfirst : v / Real.sqrt (v * (v + 2)) ≤ 1 := + (div_le_one hd).mpr (le_shiftedBessel_denominator hv.le) + have hsecond : 1 / Real.sqrt (v * (v + 2)) ≤ 1 / Real.sqrt (2 * v) := + div_le_div_of_nonneg_left zero_le_one (Real.sqrt_pos.mpr (by positivity)) + (sqrt_two_mul_le_shiftedBessel_denominator hv.le) + have hpoly := mul_le_mul_of_nonneg_left hfirst (show 0 ≤ 2 * v + 4 by positivity) + calc + shiftedBesselDensityTwo v = (2 * v + 4) * (v / Real.sqrt (v * (v + 2))) + + 1 / Real.sqrt (v * (v + 2)) := by + unfold shiftedBesselDensityTwo + ring + _ ≤ (2 * v + 4) * 1 + 1 / Real.sqrt (2 * v) := add_le_add hpoly hsecond + _ = _ := by rw [mul_one, one_div] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselScaledBounds.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselScaledBounds.lean new file mode 100644 index 0000000000..af71c7b467 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialBesselScaledBounds.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselIntegral +public import Mathlib.Analysis.Real.Pi.Bounds + +/-! +# Uniform scaled bounds for the literal Bessel integrals + +The constants three and eight are the source constants. The proofs use +the actual positive-half-line integrals and keep x>0 explicit. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem scaled_bessel_sqrt {x : ℝ} (hx : 0 < x) : + x * Real.sqrt (Real.pi / (2 * x)) = Real.sqrt (Real.pi * x / 2) := by + apply (sq_eq_sq₀ (by positivity) (Real.sqrt_nonneg _)).mp + rw [mul_pow, Real.sq_sqrt (by positivity), Real.sq_sqrt (by positivity)] + field_simp + + +theorem bessel_sqrt_le {x : ℝ} (hx : 0 ≤ x) : + Real.sqrt (Real.pi * x / 2) ≤ 2 * Real.sqrt (1 + x) := by + have hleft := Real.sq_sqrt (show 0 ≤ Real.pi * x / 2 by positivity) + have hright := Real.sq_sqrt (show 0 ≤ 1 + x by positivity) + have hnleft := Real.sqrt_nonneg (Real.pi * x / 2) + have hnright := Real.sqrt_nonneg (1 + x) + have hpi := mul_le_mul_of_nonneg_right Real.pi_lt_four.le hx + nlinarith + +theorem one_le_sqrt_one_add {x : ℝ} (hx : 0 ≤ x) : + 1 ≤ Real.sqrt (1 + x) := by + have h := Real.sqrt_le_sqrt (show (1 : ℝ) ≤ 1 + x by linarith) + simpa only [Real.sqrt_one] using h + +theorem modifiedBesselIntegral_one_scaled_le {x : ℝ} (hx : 0 < x) : + x * modifiedBesselIntegral 1 x ≤ 3 * Real.sqrt (1 + x) * Real.exp (-x) := by + calc + x * modifiedBesselIntegral 1 x ≤ + x * (Real.exp (-x) * (x⁻¹ + Real.sqrt (Real.pi / (2 * x)))) := + mul_le_mul_of_nonneg_left (modifiedBesselIntegral_one_le hx) hx.le + _ = (1 + Real.sqrt (Real.pi * x / 2)) * Real.exp (-x) := by + calc + _ = (x * x⁻¹ + x * Real.sqrt (Real.pi / (2 * x))) * Real.exp (-x) := by ring + _ = _ := by rw [mul_inv_cancel₀ hx.ne', scaled_bessel_sqrt hx] + _ ≤ 3 * Real.sqrt (1 + x) * Real.exp (-x) := by + apply mul_le_mul_of_nonneg_right _ (Real.exp_pos _).le + linarith [bessel_sqrt_le hx.le, one_le_sqrt_one_add hx.le] + +theorem modifiedBesselIntegral_two_scaled_le {x : ℝ} (hx : 0 < x) : + x ^ 2 * modifiedBesselIntegral 2 x ≤ + 8 * (1 + x) * Real.sqrt (1 + x) * Real.exp (-x) := by + calc + x ^ 2 * modifiedBesselIntegral 2 x ≤ x ^ 2 * (Real.exp (-x) * + (2 * (x ^ 2)⁻¹ + 4 * x⁻¹ + Real.sqrt (Real.pi / (2 * x)))) := + mul_le_mul_of_nonneg_left (modifiedBesselIntegral_two_le hx) (sq_nonneg _) + _ = (2 + 4 * x + x * Real.sqrt (Real.pi * x / 2)) * Real.exp (-x) := by + calc + _ = (2 * (x ^ 2 * (x ^ 2)⁻¹) + 4 * x * (x * x⁻¹) + + x * (x * Real.sqrt (Real.pi / (2 * x)))) * Real.exp (-x) := by ring + _ = _ := by rw [mul_inv_cancel₀ (pow_ne_zero _ hx.ne'), + mul_inv_cancel₀ hx.ne', scaled_bessel_sqrt hx]; ring + _ ≤ 8 * (1 + x) * Real.sqrt (1 + x) * Real.exp (-x) := by + apply mul_le_mul_of_nonneg_right _ (Real.exp_pos _).le + have ht := one_le_sqrt_one_add hx.le + have hxt := mul_le_mul_of_nonneg_left ht hx.le + have hxs := mul_le_mul_of_nonneg_left (bessel_sqrt_le hx.le) hx.le + nlinarith + +theorem modifiedBesselIntegral_two_scaled_rpow_le {x : ℝ} (hx : 0 < x) : + x ^ 2 * modifiedBesselIntegral 2 x ≤ + 8 * (1 + x) ^ (3 / 2 : ℝ) * Real.exp (-x) := by + have heq : (1 + x) ^ (3 / 2 : ℝ) = (1 + x) * Real.sqrt (1 + x) := by + rw [show (3 / 2 : ℝ) = 1 + 1 / 2 by norm_num, + Real.rpow_add (by positivity), Real.rpow_one, ← Real.sqrt_eq_rpow] + simpa only [heq, mul_assoc] using modifiedBesselIntegral_two_scaled_le hx + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialComplexRadius.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialComplexRadius.lean new file mode 100644 index 0000000000..8e66275f25 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialComplexRadius.lean @@ -0,0 +1,103 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselComplexIntegral +public import Mathlib.Analysis.RCLike.Sqrt + +/-! +# The actual principal complex radius of separated spatial vectors + +The squared radius is the bilinear coordinate sum, not the Hermitian +norm. Euclidean control of the complex displacement proves that it stays +in the right half-plane and gives the manuscript's lower real-part bound. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ComplexOrder + +/-- Spatial squared radius given by `∑ j : Fin 3, ((if j = 0 then (s : ℂ) else 0) + δ j) ^ 2`. -/ +noncomputable def spatialSquaredRadius (s : ℝ) (δ : EuclideanSpace ℂ (Fin 3)) : ℂ := + ∑ j : Fin 3, ((if j = 0 then (s : ℂ) else 0) + δ j) ^ 2 + +/-- Spatial complex radius obtained from `Complex.sqrt`. -/ +noncomputable def spatialComplexRadius (s : ℝ) (δ : EuclideanSpace ℂ (Fin 3)) : ℂ := + Complex.sqrt (spatialSquaredRadius s δ) + +theorem spatialSquaredRadius_expand (s : ℝ) (δ : EuclideanSpace ℂ (Fin 3)) : + spatialSquaredRadius s δ = (s : ℂ) ^ 2 + 2 * (s : ℂ) * δ 0 + ∑ j, δ j ^ 2 := by + simp only [spatialSquaredRadius, Fin.sum_univ_succ] + norm_num; ring + +theorem spatial_bilinear_square_norm_le (δ : EuclideanSpace ℂ (Fin 3)) : + ‖∑ j : Fin 3, δ j ^ 2‖ ≤ ‖δ‖ ^ 2 := by + calc + _ ≤ ∑ j : Fin 3, ‖δ j ^ 2‖ := norm_sum_le _ _ + _ = ‖δ‖ ^ 2 := by simp only [norm_pow, PiLp.norm_sq_eq_of_L2] + +theorem spatialSquaredRadius_error_le {s d : ℝ} (hs : 0 ≤ s) (hd : 0 ≤ d) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + ‖spatialSquaredRadius s δ - (s : ℂ) ^ 2‖ ≤ 2 * s * d + d ^ 2 := by + have hcoord : ‖δ 0‖ ≤ d := (PiLp.norm_apply_le δ 0).trans hδ + calc + _ = ‖2 * (s : ℂ) * δ 0 + ∑ j : Fin 3, δ j ^ 2‖ := by + rw [spatialSquaredRadius_expand] + congr 1 + ring + _ ≤ ‖2 * (s : ℂ) * δ 0‖ + ‖∑ j : Fin 3, δ j ^ 2‖ := norm_add_le _ _ + _ ≤ 2 * s * d + d ^ 2 := by + have hsq := spatial_bilinear_square_norm_le δ + simp only [norm_mul, Complex.norm_ofNat, Complex.norm_real, Real.norm_eq_abs, + abs_of_nonneg hs] + have hm := mul_le_mul_of_nonneg_left hcoord (show 0 ≤ 2 * s by positivity) + nlinarith [norm_nonneg δ] + +theorem spatialSquaredRadius_re_lower {s d : ℝ} (hs : 0 ≤ s) (hd : 0 ≤ d) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + s ^ 2 - 2 * s * d - d ^ 2 ≤ (spatialSquaredRadius s δ).re := by + have h := (Complex.abs_re_le_norm (spatialSquaredRadius s δ - (s : ℂ) ^ 2)).trans + (spatialSquaredRadius_error_le hs hd δ hδ) + simp only [Complex.sub_re, ← Complex.ofReal_pow, Complex.ofReal_re] at h + have hl := (abs_le.mp h).1 + linarith + +theorem spatialSquaredRadius_re_pos {s d : ℝ} (hs : 0 < s) (hd : 0 ≤ d) + (hsep : 4 * d ≤ s) (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + 0 < (spatialSquaredRadius s δ).re := by + have hr := spatialSquaredRadius_re_lower hs.le hd δ hδ + have hsd := mul_le_mul_of_nonneg_right hsep hd + have hss := mul_le_mul_of_nonneg_right hsep hs.le + nlinarith [sq_nonneg (s - 2 * d), sq_pos_of_pos hs] + +theorem spatialSquaredRadius_mem_slitPlane {s d : ℝ} (hs : 0 < s) (hd : 0 ≤ d) + (hsep : 4 * d ≤ s) (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + spatialSquaredRadius s δ ∈ Complex.slitPlane := + Or.inl (spatialSquaredRadius_re_pos hs hd hsep δ hδ) + +theorem spatialComplexRadius_re_lower {s d : ℝ} (hs : 0 ≤ s) (hd : 0 ≤ d) + (hsep : 4 * d ≤ s) (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + s - 2 * d ≤ (spatialComplexRadius s δ).re := by + have hr := spatialSquaredRadius_re_lower hs hd δ hδ + have hn := Complex.re_le_norm (spatialSquaredRadius s δ) + have hsd := mul_le_mul_of_nonneg_right hsep hd + have hb : (s - 2 * d) ^ 2 ≤ + (‖spatialSquaredRadius s δ‖ + (spatialSquaredRadius s δ).re) / 2 := by + nlinarith + have hsqrt := Real.sqrt_le_sqrt hb + rw [Real.sqrt_sq (by linarith)] at hsqrt + simpa only [spatialComplexRadius, Complex.sqrt, Complex.cpow_inv_two_re] using hsqrt + +theorem spatialComplexRadius_re_half_le {s d : ℝ} (hs : 0 ≤ s) (hd : 0 ≤ d) + (hsep : 4 * d ≤ s) (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + s / 2 ≤ (spatialComplexRadius s δ).re := by + have h := spatialComplexRadius_re_lower hs hd hsep δ hδ + linarith + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialKernelCoefficients.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialKernelCoefficients.lean new file mode 100644 index 0000000000..491bf9b6b7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialKernelCoefficients.lean @@ -0,0 +1,140 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialPolydiscKernels +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscReconstruction + +/-! +# Actual six-coordinate expansions of the separated covariance kernels + +The two triples use their literal coordinate order. The coefficients are +the actual nested Cauchy integrals of the Bessel kernels; full HasSum and +absolute convergence follow from their proved closed-polydisc holomorphy. +-/ + +@[expose] public section + +open scoped BigOperators + +namespace VacuumBellSeparation.Gaussian + +/-- Spatial six pair. -/ +noncomputable def spatialSixPair (z : Fin 6 → ℂ) : SpatialComplexPair := + ((PiLp.continuousLinearEquiv 2 ℂ (fun _ : Fin 3 => ℂ)).symm + (fun j => z (Fin.castAdd 3 j)), + (PiLp.continuousLinearEquiv 2 ℂ (fun _ : Fin 3 => ℂ)).symm + (fun j => z (Fin.natAdd 3 j))) + +theorem differentiable_spatialSixPair : Differentiable ℂ spatialSixPair := by + apply Differentiable.prodMk + · apply (PiLp.continuousLinearEquiv 2 ℂ (fun _ : Fin 3 => ℂ)).symm.differentiable.comp + fun_prop + · apply (PiLp.continuousLinearEquiv 2 ℂ (fun _ : Fin 3 => ℂ)).symm.differentiable.comp + fun_prop + +theorem spatialSixPair_mem_polydisc {R : ℝ} {z : Fin 6 → ℂ} + (hz : z ∈ coordinateClosedPolydisc 6 R) : spatialSixPair z ∈ spatialClosedPolydisc R := + ⟨fun j => hz (Fin.castAdd 3 j), fun j => hz (Fin.natAdd 3 j)⟩ + +/-- The spatial field covariance kernel on six complex coordinates, grouped as two spatial +vectors. -/ +noncomputable def spatialSixFieldKernel (μ s : ℝ) (z : Fin 6 → ℂ) : ℂ := + spatialPairFieldKernel μ s (spatialSixPair z) + +/-- Spatial six momentum kernel obtained from `spatialPairMomentumKernel`. -/ +noncomputable def spatialSixMomentumKernel (μ s : ℝ) (z : Fin 6 → ℂ) : ℂ := + spatialPairMomentumKernel μ s (spatialSixPair z) + +/-- Spatial field coefficient obtained from `polydiscCoefficient`. -/ +noncomputable def spatialFieldCoefficient (μ s R : ℝ) (k : Fin 6 → ℕ) : ℂ := + polydiscCoefficient 6 R (spatialSixFieldKernel μ s) k + +/-- Spatial momentum coefficient obtained from `polydiscCoefficient`. -/ +noncomputable def spatialMomentumCoefficient (μ s R : ℝ) (k : Fin 6 → ℕ) : ℂ := + polydiscCoefficient 6 R (spatialSixMomentumKernel μ s) k + +/-- Spatial field polydisc bound given by `(6 / s ^ 2) * Real.sqrt (1 + μ * s) * Real.exp (-μ * s + +4 * μ * Real.sqrt 3 * R)`. -/ +noncomputable def spatialFieldPolydiscBound (μ s R : ℝ) : ℝ := + (6 / s ^ 2) * Real.sqrt (1 + μ * s) * Real.exp (-μ * s + 4 * μ * Real.sqrt 3 * R) + +/-- Spatial momentum polydisc bound. -/ +noncomputable def spatialMomentumPolydiscBound (μ s R : ℝ) : ℝ := + (128 / s ^ 4) * (1 + μ * s) * Real.sqrt (1 + μ * s) * + Real.exp (-μ * s + 4 * μ * Real.sqrt 3 * R) + +theorem spatialSixFieldKernel_differentiable {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 ≤ R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (z : Fin 6 → ℂ) (hz : z ∈ coordinateClosedPolydisc 6 R) : + DifferentiableAt ℂ (spatialSixFieldKernel μ s) z := + (differentiableAt_spatialPairFieldKernel hμ hs hR hsep (spatialSixPair_mem_polydisc hz)).comp z + (differentiable_spatialSixPair z) + +theorem spatialSixMomentumKernel_differentiable {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 ≤ R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (z : Fin 6 → ℂ) (hz : z ∈ coordinateClosedPolydisc 6 R) : + DifferentiableAt ℂ (spatialSixMomentumKernel μ s) z := + (differentiableAt_spatialPairMomentumKernel hμ hs hR hsep (spatialSixPair_mem_polydisc hz)).comp z + (differentiable_spatialSixPair z) + +theorem spatialSixFieldKernel_norm_le {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 ≤ R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (z : Fin 6 → ℂ) (hz : z ∈ coordinateClosedPolydisc 6 R) : + ‖spatialSixFieldKernel μ s z‖ ≤ spatialFieldPolydiscBound μ s R := + spatialPairFieldKernel_norm_le hμ hs hR hsep (spatialSixPair_mem_polydisc hz) + +theorem spatialSixMomentumKernel_norm_le {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 ≤ R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (z : Fin 6 → ℂ) (hz : z ∈ coordinateClosedPolydisc 6 R) : + ‖spatialSixMomentumKernel μ s z‖ ≤ spatialMomentumPolydiscBound μ s R := + spatialPairMomentumKernel_norm_le hμ hs hR hsep (spatialSixPair_mem_polydisc hz) + +theorem spatialFieldCoefficient_norm_le {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (k : Fin 6 → ℕ) : + ‖spatialFieldCoefficient μ s R k‖ ≤ spatialFieldPolydiscBound μ s R * R⁻¹ ^ (∑ j, k j) := by + simpa only [spatialFieldCoefficient, Finset.prod_pow_eq_pow_sum] using + polydiscCoefficient_norm_le 6 hR + (show 0 ≤ spatialFieldPolydiscBound μ s R by unfold spatialFieldPolydiscBound; positivity) + (spatialSixFieldKernel μ s) (spatialSixFieldKernel_norm_le hμ hs hR.le hsep) k + +theorem spatialMomentumCoefficient_norm_le {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (k : Fin 6 → ℕ) : + ‖spatialMomentumCoefficient μ s R k‖ ≤ + spatialMomentumPolydiscBound μ s R * R⁻¹ ^ (∑ j, k j) := by + have hbound : 0 ≤ spatialMomentumPolydiscBound μ s R := by + unfold spatialMomentumPolydiscBound + positivity + simpa only [spatialMomentumCoefficient, Finset.prod_pow_eq_pow_sum] using + polydiscCoefficient_norm_le 6 hR hbound + (spatialSixMomentumKernel μ s) (spatialSixMomentumKernel_norm_le hμ hs hR.le hsep) k + +theorem spatialFieldCoefficient_expansion {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (z : Fin 6 → ℂ) (hz : ∀ j, ‖z j‖ < R) : + HasSum (fun k : Fin 6 → ℕ => spatialFieldCoefficient μ s R k * ∏ j, z j ^ k j) + (spatialSixFieldKernel μ s z) ∧ + Summable (fun k : Fin 6 → ℕ => ‖spatialFieldCoefficient μ s R k * ∏ j, z j ^ k j‖) := + polydiscCoefficient_expansion 6 (M := spatialFieldPolydiscBound μ s R) hR + (by unfold spatialFieldPolydiscBound; positivity) (spatialSixFieldKernel μ s) + (spatialSixFieldKernel_differentiable hμ hs hR.le hsep) + (spatialSixFieldKernel_norm_le hμ hs hR.le hsep) z hz + +theorem spatialMomentumCoefficient_expansion {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (z : Fin 6 → ℂ) (hz : ∀ j, ‖z j‖ < R) : + HasSum (fun k : Fin 6 → ℕ => spatialMomentumCoefficient μ s R k * ∏ j, z j ^ k j) + (spatialSixMomentumKernel μ s z) ∧ + Summable (fun k : Fin 6 → ℕ => ‖spatialMomentumCoefficient μ s R k * ∏ j, z j ^ k j‖) := + polydiscCoefficient_expansion 6 (M := spatialMomentumPolydiscBound μ s R) hR + (by unfold spatialMomentumPolydiscBound; positivity) (spatialSixMomentumKernel μ s) + (spatialSixMomentumKernel_differentiable hμ hs hR.le hsep) + (spatialSixMomentumKernel_norm_le hμ hs hR.le hsep) z hz + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialKernelMultiIndex.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialKernelMultiIndex.lean new file mode 100644 index 0000000000..9c3fc76832 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialKernelMultiIndex.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialKernelCoefficients + +/-! +# The manuscript alpha, beta coefficient indexing + +This is an actual equivalence between all six natural coordinates and +the two full triples. Coefficients, degrees and monomials are reindexed +without truncation, factorial factors or multiplicities. +-/ + +@[expose] public section + +open scoped BigOperators + +namespace VacuumBellSeparation.Gaussian + +/-- Spatial multi index equivalence. -/ +def spatialMultiIndexEquiv : ((Fin 3 → ℕ) × (Fin 3 → ℕ)) ≃ (Fin 6 → ℕ) where + toFun k := Fin.append k.1 k.2 + invFun k := (fun j => k (Fin.castAdd 3 j), fun j => k (Fin.natAdd 3 j)) + left_inv k := by ext j <;> simp only [Fin.append_left, Fin.append_right] + right_inv k := Fin.append_castAdd_natAdd + +theorem spatialMultiIndex_degree (α β : Fin 3 → ℕ) : + (∑ j : Fin 6, Fin.append α β j) = (∑ j, α j) + ∑ j, β j := by + rw [Fin.sum_univ_add (a := 3) (b := 3)] + simp only [Fin.append_left, Fin.append_right] + +theorem spatialMultiIndex_monomial (x y : Fin 3 → ℂ) (α β : Fin 3 → ℕ) : + (∏ j : Fin 6, Fin.append x y j ^ Fin.append α β j) = + (∏ j, x j ^ α j) * ∏ j, y j ^ β j := by + rw [Fin.prod_univ_add (a := 3) (b := 3)] + simp only [Fin.append_left, Fin.append_right] + +theorem spatialSixPair_append (x y : EuclideanSpace ℂ (Fin 3)) : + spatialSixPair (Fin.append (fun j => x j) (fun j => y j)) = (x, y) := by + apply Prod.ext + · ext j + change Fin.append (fun j => x j) (fun j => y j) (Fin.castAdd 3 j) = x j + exact Fin.append_left _ _ j + · ext j + change Fin.append (fun j => x j) (fun j => y j) (Fin.natAdd 3 j) = y j + exact Fin.append_right _ _ j + +/-- Spatial field multi coefficient obtained from `spatialFieldCoefficient`. -/ +noncomputable def spatialFieldMultiCoefficient (μ s R : ℝ) + (α β : Fin 3 → ℕ) : ℂ := spatialFieldCoefficient μ s R (Fin.append α β) + +/-- Spatial momentum multi coefficient obtained from `spatialMomentumCoefficient`. -/ +noncomputable def spatialMomentumMultiCoefficient (μ s R : ℝ) + (α β : Fin 3 → ℕ) : ℂ := spatialMomentumCoefficient μ s R (Fin.append α β) + +theorem spatialFieldMultiCoefficient_norm_le {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (α β : Fin 3 → ℕ) : + ‖spatialFieldMultiCoefficient μ s R α β‖ ≤ + spatialFieldPolydiscBound μ s R * R⁻¹ ^ ((∑ j, α j) + ∑ j, β j) := by + simpa only [spatialFieldMultiCoefficient, spatialMultiIndex_degree] using + spatialFieldCoefficient_norm_le hμ hs hR hsep (Fin.append α β) + +theorem spatialMomentumMultiCoefficient_norm_le {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (α β : Fin 3 → ℕ) : + ‖spatialMomentumMultiCoefficient μ s R α β‖ ≤ + spatialMomentumPolydiscBound μ s R * R⁻¹ ^ ((∑ j, α j) + ∑ j, β j) := by + simpa only [spatialMomentumMultiCoefficient, spatialMultiIndex_degree] using + spatialMomentumCoefficient_norm_le hμ hs hR hsep (Fin.append α β) + +theorem spatialFieldMultiCoefficient_expansion {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (x y : EuclideanSpace ℂ (Fin 3)) + (hx : ∀ j, ‖x j‖ < R) (hy : ∀ j, ‖y j‖ < R) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + spatialFieldMultiCoefficient μ s R k.1 k.2 * (∏ j, x j ^ k.1 j) * ∏ j, y j ^ k.2 j) + (spatialPairFieldKernel μ s (x, y)) ∧ + Summable (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + ‖spatialFieldMultiCoefficient μ s R k.1 k.2 * (∏ j, x j ^ k.1 j) * ∏ j, y j ^ k.2 j‖) := by + have hz : ∀ j : Fin 6, ‖Fin.append (fun j => x j) (fun j => y j) j‖ < R := by + intro j + refine Fin.addCases (motive := fun k : Fin (3 + 3) => + ‖Fin.append (fun i => x i) (fun i => y i) k‖ < R) + (fun i : Fin 3 => ?_) (fun i : Fin 3 => ?_) j + · simpa only [Fin.append_left] using hx i + · simpa only [Fin.append_right] using hy i + have h := spatialFieldCoefficient_expansion hμ hs hR hsep + (Fin.append (fun j => x j) (fun j => y j)) hz + constructor + · simpa only [Function.comp_def, spatialMultiIndexEquiv, Equiv.coe_fn_mk, + spatialMultiIndex_monomial, ← mul_assoc, spatialFieldMultiCoefficient, + spatialSixFieldKernel, spatialSixPair_append] using spatialMultiIndexEquiv.hasSum_iff.mpr h.1 + · simpa only [Function.comp_def, spatialMultiIndexEquiv, Equiv.coe_fn_mk, + spatialMultiIndex_monomial, ← mul_assoc, spatialFieldMultiCoefficient] using + h.2.comp_injective spatialMultiIndexEquiv.injective + +theorem spatialMomentumMultiCoefficient_expansion {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 < R) (hsep : 8 * Real.sqrt 3 * R ≤ s) + (x y : EuclideanSpace ℂ (Fin 3)) + (hx : ∀ j, ‖x j‖ < R) (hy : ∀ j, ‖y j‖ < R) : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + spatialMomentumMultiCoefficient μ s R k.1 k.2 * (∏ j, x j ^ k.1 j) * ∏ j, y j ^ k.2 j) + (spatialPairMomentumKernel μ s (x, y)) ∧ + Summable (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + ‖spatialMomentumMultiCoefficient μ s R k.1 k.2 * (∏ j, x j ^ k.1 j) * ∏ j, + y j ^ k.2 j‖) := by + have hz : ∀ j : Fin 6, ‖Fin.append (fun j => x j) (fun j => y j) j‖ < R := by + intro j + refine Fin.addCases (motive := fun k : Fin (3 + 3) => + ‖Fin.append (fun i => x i) (fun i => y i) k‖ < R) + (fun i : Fin 3 => ?_) (fun i : Fin 3 => ?_) j + · simpa only [Fin.append_left] using hx i + · simpa only [Fin.append_right] using hy i + have h := spatialMomentumCoefficient_expansion hμ hs hR hsep + (Fin.append (fun j => x j) (fun j => y j)) hz + constructor + · simpa only [Function.comp_def, spatialMultiIndexEquiv, Equiv.coe_fn_mk, + spatialMultiIndex_monomial, ← mul_assoc, spatialMomentumMultiCoefficient, + spatialSixMomentumKernel, spatialSixPair_append] using + spatialMultiIndexEquiv.hasSum_iff.mpr h.1 + · simpa only [Function.comp_def, spatialMultiIndexEquiv, Equiv.coe_fn_mk, + spatialMultiIndex_monomial, ← mul_assoc, spatialMomentumMultiCoefficient] using + h.2.comp_injective spatialMultiIndexEquiv.injective + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialLaplaceMoments.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialLaplaceMoments.lean new file mode 100644 index 0000000000..3adfd2cb49 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialLaplaceMoments.lean @@ -0,0 +1,100 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselRationalBounds +public import Mathlib.Analysis.SpecialFunctions.Integrability.Basic +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.Analysis.SpecialFunctions.Gaussian.GaussianIntegral +public import Mathlib.MeasureTheory.Integral.Gamma + +/-! +# Actual Laplace moments for the spatial kernel majorants + +All integrals use real Lebesgue measure on the open positive half-line. +Convergence is established separately from the Gamma evaluations. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Set + +theorem integrableOn_laplace_rpow {x q : ℝ} (hx : 0 < x) (hq : -1 < q) : + IntegrableOn (fun v : ℝ => v ^ q * Real.exp (-x * v)) (Ioi 0) := by + simpa only [Real.rpow_one] using + integrableOn_rpow_mul_exp_neg_mul_rpow (p := 1) hq zero_lt_one hx + +theorem integral_laplace_rpow {x q : ℝ} (hx : 0 < x) (hq : -1 < q) : + (∫ v in Ioi (0 : ℝ), v ^ q * Real.exp (-x * v)) = + x ^ (-(q + 1)) * Real.Gamma (q + 1) := by + simpa only [Real.rpow_one, div_one, one_div_one, mul_one] using + integral_rpow_mul_exp_neg_mul_rpow (p := 1) zero_lt_one hq hx + +theorem integrableOn_laplace_constant {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun v : ℝ => Real.exp (-x * v)) (Ioi 0) := by + simpa only [Real.rpow_zero, one_mul] using integrableOn_laplace_rpow hx (q := 0) (by norm_num) + +theorem integral_laplace_constant {x : ℝ} (hx : 0 < x) : + (∫ v in Ioi (0 : ℝ), Real.exp (-x * v)) = x⁻¹ := by + simpa only [Real.rpow_zero, one_mul, zero_add, Real.Gamma_one, mul_one, + Real.rpow_neg_one] using integral_laplace_rpow hx (q := 0) (by norm_num) + +theorem integrableOn_laplace_linear {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun v : ℝ => v * Real.exp (-x * v)) (Ioi 0) := by + simpa only [Real.rpow_one] using integrableOn_laplace_rpow hx (q := 1) (by norm_num) + +theorem integral_laplace_linear {x : ℝ} (hx : 0 < x) : + (∫ v in Ioi (0 : ℝ), v * Real.exp (-x * v)) = (x ^ 2)⁻¹ := by + have h := integral_laplace_rpow hx (q := 1) (by norm_num) + have hg : Real.Gamma (2 : ℝ) = 1 := by + simp + norm_num only [one_add_one_eq_two, Real.rpow_one, hg, mul_one] at h + rw [Real.rpow_neg hx.le, Real.rpow_two] at h + exact h + +theorem inverse_sqrt_two_mul_eq_rpow {v : ℝ} (hv : 0 ≤ v) : + (Real.sqrt (2 * v))⁻¹ = (Real.sqrt 2)⁻¹ * v ^ (-(1 / 2 : ℝ)) := by + rw [Real.sqrt_mul (by norm_num), mul_inv_rev, Real.rpow_neg hv, + ← Real.sqrt_eq_rpow] + ring + +theorem integrableOn_laplace_inverse_sqrt {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun v : ℝ => (Real.sqrt (2 * v))⁻¹ * Real.exp (-x * v)) + (Ioi 0) := by + have h := (integrableOn_laplace_rpow hx (q := -(1 / 2 : ℝ)) (by norm_num)).const_mul + (Real.sqrt 2)⁻¹ + apply h.congr + filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv + change (Real.sqrt 2)⁻¹ * (v ^ (-(1 / 2 : ℝ)) * Real.exp (-x * v)) = + (Real.sqrt (2 * v))⁻¹ * Real.exp (-x * v) + rw [inverse_sqrt_two_mul_eq_rpow hv.le] + ring + +theorem integral_laplace_inverse_sqrt {x : ℝ} (hx : 0 < x) : + (∫ v in Ioi (0 : ℝ), (Real.sqrt (2 * v))⁻¹ * Real.exp (-x * v)) = + Real.sqrt (Real.pi / (2 * x)) := by + calc + _ = (Real.sqrt 2)⁻¹ * + ∫ v in Ioi (0 : ℝ), v ^ (-(1 / 2 : ℝ)) * Real.exp (-x * v) := by + rw [← integral_const_mul] + apply setIntegral_congr_fun measurableSet_Ioi + intro v hv + dsimp only + rw [inverse_sqrt_two_mul_eq_rpow hv.le] + ring + _ = (Real.sqrt 2)⁻¹ * (x ^ (-(1 / 2 : ℝ)) * Real.sqrt Real.pi) := by + rw [integral_laplace_rpow hx (by norm_num)] + norm_num only [show -(1 / 2 : ℝ) + 1 = 1 / 2 by norm_num, + Real.Gamma_one_half_eq] + _ = Real.sqrt (Real.pi / (2 * x)) := by + rw [Real.rpow_neg hx.le, ← Real.sqrt_eq_rpow, + Real.sqrt_div Real.pi_pos.le, Real.sqrt_mul (by norm_num)] + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialPolydiscKernels.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialPolydiscKernels.lean new file mode 100644 index 0000000000..b850808df4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialPolydiscKernels.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialSeparatedKernelBounds + +/-! +# Literal six-coordinate kernels on the separated polydisc + +The two coordinate triples are centred at the two balls. Their actual +difference has Euclidean norm at most 2 sqrt(3) R on the coordinate +polydisc; the composed kernels are genuinely complex differentiable +there and satisfy explicit supremum bounds. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +/-- Spatial complex pair with underlying type `EuclideanSpace ℂ (Fin 3) × EuclideanSpace ℂ (Fin +3)`. -/ +abbrev SpatialComplexPair := EuclideanSpace ℂ (Fin 3) × EuclideanSpace ℂ (Fin 3) + +/-- Spatial pair field kernel given by `besselFieldKernel μ (spatialComplexRadius s (xy.2 - +xy.1))`. -/ +noncomputable def spatialPairFieldKernel (μ s : ℝ) (xy : SpatialComplexPair) : ℂ := + besselFieldKernel μ (spatialComplexRadius s (xy.2 - xy.1)) + +/-- Spatial pair momentum kernel given by `besselMomentumKernel μ (spatialComplexRadius s (xy.2 - +xy.1))`. -/ +noncomputable def spatialPairMomentumKernel (μ s : ℝ) (xy : SpatialComplexPair) : ℂ := + besselMomentumKernel μ (spatialComplexRadius s (xy.2 - xy.1)) + +/-- Spatial closed polydisc with membership specified by `{xy | (∀ j, ‖xy.1 j‖ ≤ R) ∧ (∀ j, ‖xy.2 +j‖ ≤ R)}`. -/ +def spatialClosedPolydisc (R : ℝ) : Set SpatialComplexPair := + {xy | (∀ j, ‖xy.1 j‖ ≤ R) ∧ (∀ j, ‖xy.2 j‖ ≤ R)} + +theorem spatial_triple_norm_le_of_coordinate_bounds {R : ℝ} (hR : 0 ≤ R) + (x : EuclideanSpace ℂ (Fin 3)) (hx : ∀ j, ‖x j‖ ≤ R) : + ‖x‖ ≤ Real.sqrt 3 * R := by + have hsq : ‖x‖ ^ 2 ≤ 3 * R ^ 2 := by + rw [PiLp.norm_sq_eq_of_L2] + calc + _ ≤ ∑ _ : Fin 3, R ^ 2 := by + apply Finset.sum_le_sum + intro j _ + exact pow_le_pow_left₀ (norm_nonneg _) (hx j) 2 + _ = _ := by simp + have hsqrt := Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 3) + have hn := norm_nonneg x + have hb : 0 ≤ Real.sqrt 3 * R := mul_nonneg (Real.sqrt_nonneg _) hR + nlinarith + +theorem spatial_polydisc_difference_norm_le {R : ℝ} (hR : 0 ≤ R) + {xy : SpatialComplexPair} (hxy : xy ∈ spatialClosedPolydisc R) : + ‖xy.2 - xy.1‖ ≤ 2 * Real.sqrt 3 * R := by + calc + _ ≤ ‖xy.2‖ + ‖xy.1‖ := norm_sub_le _ _ + _ ≤ Real.sqrt 3 * R + Real.sqrt 3 * R := + add_le_add (spatial_triple_norm_le_of_coordinate_bounds hR xy.2 hxy.2) + (spatial_triple_norm_le_of_coordinate_bounds hR xy.1 hxy.1) + _ = _ := by ring + +theorem differentiableAt_spatialPairFieldKernel {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 ≤ R) + (hsep : 8 * Real.sqrt 3 * R ≤ s) {xy : SpatialComplexPair} + (hxy : xy ∈ spatialClosedPolydisc R) : + DifferentiableAt ℂ (spatialPairFieldKernel μ s) xy := by + have hd : 0 ≤ 2 * Real.sqrt 3 * R := by positivity + have hgeom : 4 * (2 * Real.sqrt 3 * R) ≤ s := by nlinarith + have hq := spatialSquaredRadius_re_pos hs hd hgeom (xy.2 - xy.1) + (spatial_polydisc_difference_norm_le hR hxy) + have hcomp := + (differentiableAt_spatialBesselFieldKernel hμ (xy.2 - xy.1) hq).comp + (f := fun p : SpatialComplexPair => p.2 - p.1) + (g := fun d : EuclideanSpace ℂ (Fin 3) => + besselFieldKernel μ (spatialComplexRadius s d)) xy + (differentiableAt_snd.sub differentiableAt_fst) + simpa only [spatialPairFieldKernel, Function.comp_def] using! hcomp + +theorem differentiableAt_spatialPairMomentumKernel {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 ≤ R) + (hsep : 8 * Real.sqrt 3 * R ≤ s) {xy : SpatialComplexPair} + (hxy : xy ∈ spatialClosedPolydisc R) : + DifferentiableAt ℂ (spatialPairMomentumKernel μ s) xy := by + have hd : 0 ≤ 2 * Real.sqrt 3 * R := by positivity + have hgeom : 4 * (2 * Real.sqrt 3 * R) ≤ s := by nlinarith + have hq := spatialSquaredRadius_re_pos hs hd hgeom (xy.2 - xy.1) + (spatial_polydisc_difference_norm_le hR hxy) + have hcomp := + (differentiableAt_spatialBesselMomentumKernel hμ (xy.2 - xy.1) hq).comp + (f := fun p : SpatialComplexPair => p.2 - p.1) + (g := fun d : EuclideanSpace ℂ (Fin 3) => + besselMomentumKernel μ (spatialComplexRadius s d)) xy + (differentiableAt_snd.sub differentiableAt_fst) + simpa only [spatialPairMomentumKernel, Function.comp_def] using! hcomp + +theorem spatialPairFieldKernel_norm_le {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 ≤ R) + (hsep : 8 * Real.sqrt 3 * R ≤ s) {xy : SpatialComplexPair} + (hxy : xy ∈ spatialClosedPolydisc R) : + ‖spatialPairFieldKernel μ s xy‖ ≤ + (6 / s ^ 2) * Real.sqrt (1 + μ * s) * + Real.exp (-μ * s + 4 * μ * Real.sqrt 3 * R) := by + have h := spatialBesselFieldKernel_norm_le hμ hs + (show 0 ≤ 2 * Real.sqrt 3 * R by positivity) + (show 4 * (2 * Real.sqrt 3 * R) ≤ s by nlinarith) + (xy.2 - xy.1) (spatial_polydisc_difference_norm_le hR hxy) + simpa only [spatialPairFieldKernel, + show 2 * μ * (2 * Real.sqrt 3 * R) = 4 * μ * Real.sqrt 3 * R by ring] using h + +theorem spatialPairMomentumKernel_norm_le {μ s R : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hR : 0 ≤ R) + (hsep : 8 * Real.sqrt 3 * R ≤ s) {xy : SpatialComplexPair} + (hxy : xy ∈ spatialClosedPolydisc R) : + ‖spatialPairMomentumKernel μ s xy‖ ≤ + (128 / s ^ 4) * (1 + μ * s) * Real.sqrt (1 + μ * s) * + Real.exp (-μ * s + 4 * μ * Real.sqrt 3 * R) := by + have h := spatialBesselMomentumKernel_norm_le hμ hs + (show 0 ≤ 2 * Real.sqrt 3 * R by positivity) + (show 4 * (2 * Real.sqrt 3 * R) ≤ s by nlinarith) + (xy.2 - xy.1) (spatial_polydisc_difference_norm_le hR hxy) + simpa only [spatialPairMomentumKernel, + show 2 * μ * (2 * Real.sqrt 3 * R) = 4 * μ * Real.sqrt 3 * R by ring] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialRadiusHolomorphic.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialRadiusHolomorphic.lean new file mode 100644 index 0000000000..d8350e1e4f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialRadiusHolomorphic.lean @@ -0,0 +1,85 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialComplexRadius +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselHolomorphic +public import Mathlib.Analysis.Complex.SqrtDeriv +public import Mathlib.Analysis.Calculus.FDeriv.Pow + +/-! +# Holomorphic separated radius and its Euclidean upper bound +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem norm_spatialSquaredRadius_le {s d : ℝ} (hs : 0 ≤ s) (hd : 0 ≤ d) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + ‖spatialSquaredRadius s δ‖ ≤ (s + d) ^ 2 := by + calc + _ = ‖(spatialSquaredRadius s δ - (s : ℂ) ^ 2) + (s : ℂ) ^ 2‖ := by + rw [sub_add_cancel] + _ ≤ ‖spatialSquaredRadius s δ - (s : ℂ) ^ 2‖ + ‖(s : ℂ) ^ 2‖ := norm_add_le _ _ + _ ≤ (2 * s * d + d ^ 2) + s ^ 2 := by + rw [norm_pow, Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg hs] + exact _root_.add_le_add_left (spatialSquaredRadius_error_le hs hd δ hδ) _ + _ = _ := by ring + +theorem norm_spatialComplexRadius_le {s d : ℝ} (hs : 0 ≤ s) (hd : 0 ≤ d) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + ‖spatialComplexRadius s δ‖ ≤ s + d := by + have h := Real.sqrt_le_sqrt (norm_spatialSquaredRadius_le hs hd δ hδ) + rw [Real.sqrt_sq (add_nonneg hs hd)] at h + change ‖spatialSquaredRadius s δ ^ (2⁻¹ : ℂ)‖ ≤ s + d + have hnorm : ‖spatialSquaredRadius s δ ^ (2⁻¹ : ℂ)‖ = + ‖spatialSquaredRadius s δ‖ ^ (2⁻¹ : ℝ) := by + simpa only [Nat.cast_ofNat] using + Complex.norm_cpow_inv_nat (spatialSquaredRadius s δ) 2 + rw [hnorm] + simpa only [← one_div, ← Real.sqrt_eq_rpow] using h + +theorem spatialComplexRadius_re_upper {s d : ℝ} (hs : 0 ≤ s) (hd : 0 ≤ d) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + (spatialComplexRadius s δ).re ≤ s + d := + (Complex.re_le_norm _).trans (norm_spatialComplexRadius_le hs hd δ hδ) + +theorem differentiable_spatialSquaredRadius (s : ℝ) : + Differentiable ℂ (spatialSquaredRadius s) := by + have coordinate (j : Fin 3) : Differentiable ℂ + (fun δ : EuclideanSpace ℂ (Fin 3) => ((if j = 0 then (s : ℂ) else 0) + δ j) ^ 2) := + (Differentiable.add (differentiable_const (if j = 0 then (s : ℂ) else 0)) + (PiLp.proj (𝕜 := ℂ) 2 (fun _ : Fin 3 => ℂ) j).differentiable).pow 2 + change Differentiable ℂ + (fun δ : EuclideanSpace ℂ (Fin 3) => + ∑ j : Fin 3, ((if j = 0 then (s : ℂ) else 0) + δ j) ^ 2) + simp only [Fin.sum_univ_three] + exact ((coordinate 0).add (coordinate 1)).add (coordinate 2) + +theorem differentiableAt_spatialComplexRadius (s : ℝ) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : 0 < (spatialSquaredRadius s δ).re) : + DifferentiableAt ℂ (spatialComplexRadius s) δ := + (Complex.differentiableAt_sqrt (Or.inl hδ)).comp δ + ((differentiable_spatialSquaredRadius s) δ) + +theorem spatialComplexRadius_re_pos_of_squared (s : ℝ) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : 0 < (spatialSquaredRadius s δ).re) : + 0 < (spatialComplexRadius s δ).re := by + change 0 < ((spatialSquaredRadius s δ) ^ (2⁻¹ : ℂ)).re + rw [Complex.cpow_inv_two_re] + apply Real.sqrt_pos.mpr + have hn := norm_nonneg (spatialSquaredRadius s δ) + linarith + +theorem differentiableAt_spatialComplexRadius_of_separated {s d : ℝ} + (hs : 0 < s) (hd : 0 ≤ d) (hsep : 4 * d ≤ s) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + DifferentiableAt ℂ (spatialComplexRadius s) δ := + differentiableAt_spatialComplexRadius s δ (spatialSquaredRadius_re_pos hs hd hsep δ hδ) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialSeparatedKernelBounds.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialSeparatedKernelBounds.lean new file mode 100644 index 0000000000..3ecd4c5ea8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialSeparatedKernelBounds.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselKernels + +/-! +# Actual complex separated-kernel supremum estimates + +The principal radius bounds and the genuine Bessel integral estimates +give mass-uniform geometric prefactors on a complex Euclidean +neighbourhood. Taylor coefficient extraction is done in another module +(`spatialFieldCoefficient_expansion`, `spatialFieldCoefficient_norm_le` and their momentum +counterparts in `Gaussian/SpatialKernelCoefficients.lean`). +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem separated_radius_bessel_parameters {μ s d r : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hsep : 4 * d ≤ s) + (hrlow : s - 2 * d ≤ r) (hrup : r ≤ s + d) : + 0 < r ∧ s / 2 ≤ r ∧ + 1 + μ * r ≤ 2 * (1 + μ * s) ∧ + Real.sqrt (1 + μ * r) ≤ 2 * Real.sqrt (1 + μ * s) ∧ + Real.exp (-(μ * r)) ≤ Real.exp (-μ * s + 2 * μ * d) := by + have hrhalf : s / 2 ≤ r := by linarith + have hr : 0 < r := (by positivity : 0 < s / 2).trans_le hrhalf + have hrs : r ≤ 2 * s := by linarith + have hlin : 1 + μ * r ≤ 2 * (1 + μ * s) := by + have hmul := mul_le_mul_of_nonneg_left hrs hμ.le + linarith + have hsqrt : Real.sqrt (1 + μ * r) ≤ 2 * Real.sqrt (1 + μ * s) := by + have hlin4 : 1 + μ * r ≤ 4 * (1 + μ * s) := by + nlinarith [mul_pos hμ hs] + have hsqrt4 : Real.sqrt 4 = 2 := by + rw [show (4 : ℝ) = 2 ^ 2 by norm_num, Real.sqrt_sq two_pos.le] + calc + _ ≤ Real.sqrt (4 * (1 + μ * s)) := Real.sqrt_le_sqrt hlin4 + _ = _ := by rw [Real.sqrt_mul (by norm_num : (0 : ℝ) ≤ 4), hsqrt4] + refine ⟨hr, hrhalf, hlin, hsqrt, ?_⟩ + apply Real.exp_le_exp.mpr + have hmul := mul_le_mul_of_nonneg_left hrlow hμ.le + linarith + +theorem besselFieldKernel_norm_le_separated {μ s d : ℝ} {ρ : ℂ} + (hμ : 0 < μ) (hs : 0 < s) (hsep : 4 * d ≤ s) + (hrlow : s - 2 * d ≤ ρ.re) (hrup : ρ.re ≤ s + d) : + ‖besselFieldKernel μ ρ‖ ≤ + (6 / s ^ 2) * Real.sqrt (1 + μ * s) * Real.exp (-μ * s + 2 * μ * d) := by + obtain ⟨hr, hrhalf, hlin, hsqrt, he⟩ := + separated_radius_bessel_parameters hμ hs hsep hrlow hrup + have hpi : 1 ≤ Real.pi ^ 2 := by nlinarith [Real.pi_gt_three] + have hsq : s ^ 2 ≤ 4 * ρ.re ^ 2 := by nlinarith + have hden : s ^ 2 ≤ 4 * Real.pi ^ 2 * ρ.re ^ 2 := by + have hp := mul_le_mul_of_nonneg_right hpi (show 0 ≤ 4 * ρ.re ^ 2 by positivity) + nlinarith + have hc : 3 / (4 * Real.pi ^ 2 * ρ.re ^ 2) ≤ 3 / s ^ 2 := + div_le_div_of_nonneg_left (by norm_num) (by positivity) hden + calc + _ ≤ (3 / (4 * Real.pi ^ 2 * ρ.re ^ 2)) * + Real.sqrt (1 + μ * ρ.re) * Real.exp (-(μ * ρ.re)) := + besselFieldKernel_norm_le hμ hr + _ ≤ (3 / s ^ 2) * (2 * Real.sqrt (1 + μ * s)) * + Real.exp (-μ * s + 2 * μ * d) := by + apply mul_le_mul + · exact mul_le_mul hc hsqrt (Real.sqrt_nonneg _) (by positivity) + · exact he + · exact (Real.exp_pos _).le + · positivity + _ = _ := by ring + +theorem besselMomentumKernel_norm_le_separated {μ s d : ℝ} {ρ : ℂ} + (hμ : 0 < μ) (hs : 0 < s) (hsep : 4 * d ≤ s) + (hrlow : s - 2 * d ≤ ρ.re) (hrup : ρ.re ≤ s + d) : + ‖besselMomentumKernel μ ρ‖ ≤ + (128 / s ^ 4) * (1 + μ * s) * Real.sqrt (1 + μ * s) * + Real.exp (-μ * s + 2 * μ * d) := by + obtain ⟨hr, hrhalf, hlin, hsqrt, he⟩ := + separated_radius_bessel_parameters hμ hs hsep hrlow hrup + have hpi : 1 ≤ Real.pi ^ 2 := by nlinarith [Real.pi_gt_three] + have hfour := pow_le_pow_left₀ (show 0 ≤ s / 2 by positivity) hrhalf 4 + have hden : s ^ 4 ≤ 4 * (4 * Real.pi ^ 2 * ρ.re ^ 4) := by + have hp := mul_le_mul_of_nonneg_right hpi (show 0 ≤ 16 * ρ.re ^ 4 by positivity) + norm_num [div_pow] at hfour + nlinarith + have hc : 8 / (4 * Real.pi ^ 2 * ρ.re ^ 4) ≤ 32 / s ^ 4 := by + apply (div_le_div_iff₀ (by positivity) (by positivity)).mpr + nlinarith + calc + _ ≤ (8 / (4 * Real.pi ^ 2 * ρ.re ^ 4)) * + (1 + μ * ρ.re) * Real.sqrt (1 + μ * ρ.re) * Real.exp (-(μ * ρ.re)) := + besselMomentumKernel_norm_le hμ hr + _ ≤ (32 / s ^ 4) * (2 * (1 + μ * s)) * + (2 * Real.sqrt (1 + μ * s)) * Real.exp (-μ * s + 2 * μ * d) := by + apply mul_le_mul + · apply mul_le_mul + · exact mul_le_mul hc hlin (by positivity) (by positivity) + · exact hsqrt + · exact Real.sqrt_nonneg _ + · positivity + · exact he + · exact (Real.exp_pos _).le + · positivity + _ = _ := by ring + +theorem spatialBesselFieldKernel_norm_le {μ s d : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hd : 0 ≤ d) (hsep : 4 * d ≤ s) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + ‖besselFieldKernel μ (spatialComplexRadius s δ)‖ ≤ + (6 / s ^ 2) * Real.sqrt (1 + μ * s) * Real.exp (-μ * s + 2 * μ * d) := + besselFieldKernel_norm_le_separated hμ hs hsep + (spatialComplexRadius_re_lower hs.le hd hsep δ hδ) + (spatialComplexRadius_re_upper hs.le hd δ hδ) + +theorem spatialBesselMomentumKernel_norm_le {μ s d : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hd : 0 ≤ d) (hsep : 4 * d ≤ s) + (δ : EuclideanSpace ℂ (Fin 3)) (hδ : ‖δ‖ ≤ d) : + ‖besselMomentumKernel μ (spatialComplexRadius s δ)‖ ≤ + (128 / s ^ 4) * (1 + μ * s) * Real.sqrt (1 + μ * s) * + Real.exp (-μ * s + 2 * μ * d) := + besselMomentumKernel_norm_le_separated hμ hs hsep + (spatialComplexRadius_re_lower hs.le hd hsep δ hδ) + (spatialComplexRadius_re_upper hs.le hd δ hδ) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialSeriesConstants.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialSeriesConstants.lean new file mode 100644 index 0000000000..961bf9f22f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialSeriesConstants.lean @@ -0,0 +1,56 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteProductSeries +import Mathlib.Tactic.Positivity +public import Mathlib.Analysis.SpecificLimits.Normed +public import Mathlib.Analysis.SpecialFunctions.Exp + +/-! +# Literal scalar summation constants in the spatial estimates + +The six-index geometric sum and the uniform exponential envelope used +in the forward and reverse spatial arguments. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem hasSum_half_multiIndex (d : ℕ) : + HasSum (fun k : Fin d → ℕ => (1 / 2 : ℝ) ^ (∑ j, k j)) (2 ^ d : ℝ) := by + have h := hasSum_fin_product_nonneg d (fun _ n => (1 / 2 : ℝ) ^ n) (fun _ => (2 : ℝ)) + (fun _ _ => by positivity) (fun _ => hasSum_geometric_two) + simpa only [Finset.prod_pow_eq_pow_sum, Finset.prod_const, Finset.card_univ, + Fintype.card_fin] using h + +theorem hasSum_six_moment_geometric : + HasSum (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + (1 / 2 : ℝ) ^ ((∑ j, k.1 j) + ∑ j, k.2 j)) 64 := by + have h : HasSum (fun k : Fin 3 → ℕ => (1 / 2 : ℝ) ^ (∑ j, k j)) 8 := by + convert hasSum_half_multiIndex 3 using 1; norm_num + have hs := h.summable.mul_of_nonneg h.summable (fun _ => by positivity) (fun _ => by positivity) + have hp := h.mul h hs + simpa only [← pow_add, show (8 : ℝ) * 8 = 64 by norm_num] using hp + +theorem spatial_polynomial_exp_bound {x : ℝ} (hx : 0 ≤ x) : + (1 + x) ^ 2 * Real.exp (-x / 8) ≤ 256 := by + have hlin : 1 + x ≤ 16 * Real.exp (x / 16) := by + nlinarith [Real.add_one_le_exp (x / 16)] + have hsmall : (1 + x) * Real.exp (-x / 16) ≤ 16 := by + rw [show -x / 16 = -(x / 16) by ring, Real.exp_neg, ← div_eq_mul_inv] + exact (div_le_iff₀ (Real.exp_pos _)).mpr hlin + have hnonneg : 0 ≤ (1 + x) * Real.exp (-x / 16) := by positivity + have hs := pow_le_pow_left₀ hnonneg hsmall 2 + have hexp : Real.exp (-x / 16) ^ 2 = Real.exp (-x / 8) := by + rw [pow_two, ← Real.exp_add] + congr 1 + ring + simpa only [mul_pow, hexp, show (16 : ℝ) ^ 2 = 256 by norm_num] using hs + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialShiftedLaplaceBounds.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialShiftedLaplaceBounds.lean new file mode 100644 index 0000000000..8090ab7dbf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialShiftedLaplaceBounds.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialLaplaceMoments + +/-! +# Shifted-Laplace integrability and the two spatial kernel bounds + +These are actual positive Lebesgue integrals. Their equality to the +cosh-integral definitions of modified Bessel functions is a separate +change-of-variables obligation. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Set + +/-- Shifted Bessel Laplace one defined as `Real.exp (-x) * ∫ v in Ioi (0 : ℝ), +shiftedBesselDensityOne v * Real.exp (-x * v)`. -/ +noncomputable def shiftedBesselLaplaceOne (x : ℝ) : ℝ := + Real.exp (-x) * ∫ v in Ioi (0 : ℝ), + shiftedBesselDensityOne v * Real.exp (-x * v) + +/-- Shifted Bessel Laplace two defined as `Real.exp (-x) * ∫ v in Ioi (0 : ℝ), +shiftedBesselDensityTwo v * Real.exp (-x * v)`. -/ +noncomputable def shiftedBesselLaplaceTwo (x : ℝ) : ℝ := + Real.exp (-x) * ∫ v in Ioi (0 : ℝ), + shiftedBesselDensityTwo v * Real.exp (-x * v) + +theorem integrableOn_shiftedBessel_majorant_one {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun v : ℝ => (1 + (Real.sqrt (2 * v))⁻¹) * Real.exp (-x * v)) + (Ioi 0) := by + simpa only [Pi.add_def, Pi.add_apply, add_mul, one_mul] using + (integrableOn_laplace_constant hx).add (integrableOn_laplace_inverse_sqrt hx) + +theorem integrableOn_shiftedBessel_majorant_two {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun v : ℝ => + (2 * v + 4 + (Real.sqrt (2 * v))⁻¹) * Real.exp (-x * v)) (Ioi 0) := by + simpa only [IntegrableOn, Pi.add_def, Pi.add_apply, add_mul, mul_assoc] using + (((integrableOn_laplace_linear hx).const_mul 2).add + ((integrableOn_laplace_constant hx).const_mul 4)).add + (integrableOn_laplace_inverse_sqrt hx) + +theorem integrableOn_shiftedBessel_density_one {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun v : ℝ => shiftedBesselDensityOne v * Real.exp (-x * v)) + (Ioi 0) := by + apply (integrableOn_shiftedBessel_majorant_one hx).mono_nonneg + · exact (show Measurable (fun v : ℝ => + shiftedBesselDensityOne v * Real.exp (-x * v)) by + unfold shiftedBesselDensityOne + fun_prop).aestronglyMeasurable + · filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv + exact mul_nonneg (shiftedBesselDensityOne_nonneg hv) (Real.exp_pos _).le + · filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv + exact mul_le_mul_of_nonneg_right (shiftedBesselDensityOne_le hv) (Real.exp_pos _).le + +theorem integrableOn_shiftedBessel_density_two {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun v : ℝ => shiftedBesselDensityTwo v * Real.exp (-x * v)) + (Ioi 0) := by + apply (integrableOn_shiftedBessel_majorant_two hx).mono_nonneg + · exact (show Measurable (fun v : ℝ => + shiftedBesselDensityTwo v * Real.exp (-x * v)) by + unfold shiftedBesselDensityTwo + fun_prop).aestronglyMeasurable + · filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv + exact mul_nonneg (shiftedBesselDensityTwo_nonneg hv) (Real.exp_pos _).le + · filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv + exact mul_le_mul_of_nonneg_right (shiftedBesselDensityTwo_le hv) (Real.exp_pos _).le + +theorem shiftedBesselLaplaceOne_nonneg (x : ℝ) : 0 ≤ shiftedBesselLaplaceOne x := by + apply mul_nonneg (Real.exp_pos _).le + apply integral_nonneg_of_ae + filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv + exact mul_nonneg (shiftedBesselDensityOne_nonneg hv) (Real.exp_pos _).le + +theorem shiftedBesselLaplaceTwo_nonneg (x : ℝ) : 0 ≤ shiftedBesselLaplaceTwo x := by + apply mul_nonneg (Real.exp_pos _).le + apply integral_nonneg_of_ae + filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv + exact mul_nonneg (shiftedBesselDensityTwo_nonneg hv) (Real.exp_pos _).le + +theorem shiftedBesselLaplaceOne_le {x : ℝ} (hx : 0 < x) : + shiftedBesselLaplaceOne x ≤ Real.exp (-x) * + (x⁻¹ + Real.sqrt (Real.pi / (2 * x))) := by + apply mul_le_mul_of_nonneg_left _ (Real.exp_pos _).le + calc + _ ≤ ∫ v in Ioi (0 : ℝ), (1 + (Real.sqrt (2 * v))⁻¹) * + Real.exp (-x * v) := by + apply integral_mono_ae (integrableOn_shiftedBessel_density_one hx) + (integrableOn_shiftedBessel_majorant_one hx) + filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv + exact mul_le_mul_of_nonneg_right (shiftedBesselDensityOne_le hv) (Real.exp_pos _).le + _ = _ := by + simp_rw [add_mul, one_mul] + rw [integral_add (integrableOn_laplace_constant hx) + (integrableOn_laplace_inverse_sqrt hx), integral_laplace_constant hx, + integral_laplace_inverse_sqrt hx] + +theorem shiftedBesselLaplaceTwo_le {x : ℝ} (hx : 0 < x) : + shiftedBesselLaplaceTwo x ≤ Real.exp (-x) * + (2 * (x ^ 2)⁻¹ + 4 * x⁻¹ + Real.sqrt (Real.pi / (2 * x))) := by + apply mul_le_mul_of_nonneg_left _ (Real.exp_pos _).le + calc + _ ≤ ∫ v in Ioi (0 : ℝ), (2 * v + 4 + (Real.sqrt (2 * v))⁻¹) * + Real.exp (-x * v) := by + apply integral_mono_ae (integrableOn_shiftedBessel_density_two hx) + (integrableOn_shiftedBessel_majorant_two hx) + filter_upwards [ae_restrict_mem measurableSet_Ioi] with v hv + exact mul_le_mul_of_nonneg_right (shiftedBesselDensityTwo_le hv) (Real.exp_pos _).le + _ = _ := by + simp_rw [add_mul, mul_assoc] + have hsum : IntegrableOn (fun v : ℝ => 2 * (v * Real.exp (-x * v)) + + 4 * Real.exp (-x * v)) (Ioi 0) := by + simpa only [IntegrableOn, Pi.add_def, Pi.add_apply] using + ((integrableOn_laplace_linear hx).const_mul 2).add + ((integrableOn_laplace_constant hx).const_mul 4) + rw [integral_add hsum + (integrableOn_laplace_inverse_sqrt hx), + integral_add ((integrableOn_laplace_linear hx).const_mul 2) + ((integrableOn_laplace_constant hx).const_mul 4), integral_const_mul, + integral_const_mul, integral_laplace_linear hx, integral_laplace_constant hx, + integral_laplace_inverse_sqrt hx] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpatialWeightedCoefficientSeries.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpatialWeightedCoefficientSeries.lean new file mode 100644 index 0000000000..7b6b2175ad --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpatialWeightedCoefficientSeries.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialKernelMultiIndex +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialSeriesConstants + +/-! +# Exact summation of the actual kernel coefficients against weighted vectors + +The vector bounds are explicit inputs to this interface. The coefficient +decay is the proved bound on the literal Bessel contour coefficients, +and its complete six-index geometric sum is derived here. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped BigOperators ENNReal + +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] + [NormedAddCommGroup F] + +theorem coefficient_weighted_vector_product_le {B M A C : ℝ} + (hB : 0 < B) (hM : 0 ≤ M) (hA : 0 ≤ A) + (α β : Fin 3 → ℕ) (c : ℂ) + (hc : ‖c‖ ≤ M * (2 * B)⁻¹ ^ ((∑ j, α j) + ∑ j, β j)) + (u : E) (v : F) (hu : ‖u‖ ≤ A * B ^ (∑ j, α j)) + (hv : ‖v‖ ≤ C * B ^ (∑ j, β j)) : + ‖c • u‖ * ‖v‖ ≤ (M * A * C) * (1 / 2 : ℝ) ^ ((∑ j, α j) + ∑ j, β j) := by + rw [norm_smul] + calc + _ ≤ (M * (2 * B)⁻¹ ^ ((∑ j, α j) + ∑ j, β j)) * + (A * B ^ (∑ j, α j)) * (C * B ^ (∑ j, β j)) := + mul_le_mul (mul_le_mul hc hu (norm_nonneg _) (by positivity)) hv (norm_nonneg _) + (by positivity) + _ = (M * A * C) * (1 / 2 : ℝ) ^ ((∑ j, α j) + ∑ j, β j) := by + rw [show (M * (2 * B)⁻¹ ^ ((∑ j, α j) + ∑ j, β j)) * + (A * B ^ (∑ j, α j)) * (C * B ^ (∑ j, β j)) = + (M * A * C) * ((2 * B)⁻¹ ^ ((∑ j, α j) + ∑ j, β j) * + (B ^ (∑ j, α j) * B ^ (∑ j, β j))) by ring, + ← pow_add, ← mul_pow] + rw [show (2 * B)⁻¹ * B = (1 / 2 : ℝ) by field_simp [ne_of_gt hB]] + +theorem coefficient_weighted_vector_series {B M A C : ℝ} + (hB : 0 < B) (hM : 0 ≤ M) (hA : 0 ≤ A) + (c : (Fin 3 → ℕ) × (Fin 3 → ℕ) → ℂ) + (hc : ∀ k, ‖c k‖ ≤ M * (2 * B)⁻¹ ^ ((∑ j, k.1 j) + ∑ j, k.2 j)) + (u : (Fin 3 → ℕ) → E) (v : (Fin 3 → ℕ) → F) + (hu : ∀ α, ‖u α‖ ≤ A * B ^ (∑ j, α j)) + (hv : ∀ β, ‖v β‖ ≤ C * B ^ (∑ j, β j)) : + Summable (fun k => ‖c k • u k.1‖ * ‖v k.2‖) ∧ + (∑' k, ‖c k • u k.1‖ * ‖v k.2‖) ≤ 64 * M * A * C := by + have hg := hasSum_six_moment_geometric.mul_left (M * A * C) + have hb (k) := coefficient_weighted_vector_product_le hB hM hA k.1 k.2 + (c k) (hc k) (u k.1) (v k.2) (hu k.1) (hv k.2) + have hs := hg.summable.of_nonneg_of_le (fun _ => mul_nonneg (norm_nonneg _) (norm_nonneg _)) hb + refine ⟨hs, (Summable.tsum_le_tsum hb hs hg.summable).trans_eq ?_⟩ + rw [hg.tsum_eq] + ring + +theorem spatialField_weighted_vector_series {μ s B A C : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hB : 0 < B) (hA : 0 ≤ A) + (hsep : 16 * Real.sqrt 3 * B ≤ s) + (u : (Fin 3 → ℕ) → E) (v : (Fin 3 → ℕ) → F) + (hu : ∀ α, ‖u α‖ ≤ A * B ^ (∑ j, α j)) + (hv : ∀ β, ‖v β‖ ≤ C * B ^ (∑ j, β j)) : + Summable (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + ‖spatialFieldMultiCoefficient μ s (2 * B) k.1 k.2 • u k.1‖ * ‖v k.2‖) ∧ + (∑' k : (Fin 3 → ℕ) × (Fin 3 → ℕ), + ‖spatialFieldMultiCoefficient μ s (2 * B) k.1 k.2 • u k.1‖ * ‖v k.2‖) ≤ + 64 * spatialFieldPolydiscBound μ s (2 * B) * A * C := + coefficient_weighted_vector_series hB + (by unfold spatialFieldPolydiscBound; positivity) hA + (fun k => spatialFieldMultiCoefficient μ s (2 * B) k.1 k.2) + (fun k => spatialFieldMultiCoefficient_norm_le hμ hs (by positivity) + (by nlinarith) k.1 k.2) u v hu hv + +theorem spatialMomentum_weighted_vector_series {μ s B A C : ℝ} + (hμ : 0 < μ) (hs : 0 < s) (hB : 0 < B) (hA : 0 ≤ A) + (hsep : 16 * Real.sqrt 3 * B ≤ s) + (u : (Fin 3 → ℕ) → E) (v : (Fin 3 → ℕ) → F) + (hu : ∀ α, ‖u α‖ ≤ A * B ^ (∑ j, α j)) + (hv : ∀ β, ‖v β‖ ≤ C * B ^ (∑ j, β j)) : + Summable (fun k : (Fin 3 → ℕ) × (Fin 3 → ℕ) => + ‖spatialMomentumMultiCoefficient μ s (2 * B) k.1 k.2 • u k.1‖ * ‖v k.2‖) ∧ + (∑' k : (Fin 3 → ℕ) × (Fin 3 → ℕ), + ‖spatialMomentumMultiCoefficient μ s (2 * B) k.1 k.2 • u k.1‖ * ‖v k.2‖) ≤ + 64 * spatialMomentumPolydiscBound μ s (2 * B) * A * C := + coefficient_weighted_vector_series hB + (by unfold spatialMomentumPolydiscBound; positivity) hA + (fun k => spatialMomentumMultiCoefficient μ s (2 * B) k.1 k.2) + (fun k => spatialMomentumMultiCoefficient_norm_le hμ hs (by positivity) + (by nlinarith) k.1 k.2) u v hu hv + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SpectralBasisCompression.lean b/LeanPool/VacuumBellSeparation/Gaussian/SpectralBasisCompression.lean new file mode 100644 index 0000000000..916f775257 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SpectralBasisCompression.lean @@ -0,0 +1,130 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteBasisCompression +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPowerIntertwining + +/-! +# Actual spectral finite compressions of inverse-reference sandwiches + +Finite selections from a genuine reference eigenbasis reduce the reference +operator and every positive CFC power. The finite inverse powers occur only +on the strictly positive finite compressed matrix. Thus the actual bounded +inverse-range sandwich compresses to exactly the finite Renyi sandwich; +no bounded inverse of the infinite reference is introduced. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Matrix +open scoped ENNReal ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {ι κ E F : Type*} [Fintype κ] [DecidableEq κ] + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem compression_apply_eigenvector (i : F →ₗᵢ[ℂ] E) + (A : E →L[ℂ] E) {x : F} {a : ℝ} (ha : A (i x) = a • i x) : + compression i A x = a • x := by + change i.toContinuousLinearMap.adjoint (A (i x)) = _ + rw [ha, map_smul_of_tower, adjoint_embedding_apply] + +omit [DecidableEq κ] in +theorem finiteBasisEmbedding_intertwine (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) {A : E →L[ℂ] E} + {a : ι → ℝ} (ha : ∀ j, A (b j) = a j • b j) : + A.comp (finiteBasisEmbedding b f hf).toContinuousLinearMap = + (finiteBasisEmbedding b f hf).toContinuousLinearMap.comp + (compression (finiteBasisEmbedding b f hf) A) := by + classical + apply ContinuousLinearMap.coe_injective + apply (EuclideanSpace.basisFun κ ℂ).toBasis.ext + intro j + change A (finiteBasisEmbedding b f hf (EuclideanSpace.basisFun κ ℂ j)) = + finiteBasisEmbedding b f hf + (compression (finiteBasisEmbedding b f hf) A (EuclideanSpace.basisFun κ ℂ j)) + have he : A (finiteBasisEmbedding b f hf (EuclideanSpace.basisFun κ ℂ j)) = + a (f j) • finiteBasisEmbedding b f hf (EuclideanSpace.basisFun κ ℂ j) := by + simpa only [finiteBasisEmbedding_basis] using ha (f j) + rw [compression_apply_eigenvector _ A he] + exact he.trans ((finiteBasisEmbedding b f hf).toLinearMap.map_smul_of_tower + (a (f j)) (EuclideanSpace.basisFun κ ℂ j)).symm + +omit [DecidableEq κ] in +theorem finiteBasisEmbedding_rpow_intertwine (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) {A : E →L[ℂ] E} + (hA : 0 ≤ A) {a : ι → ℝ} (ha : ∀ j, A (b j) = a j • b j) + {p : ℝ} (hp : 0 < p) : + (A ^ p).comp (finiteBasisEmbedding b f hf).toContinuousLinearMap = + (finiteBasisEmbedding b f hf).toContinuousLinearMap.comp + ((compression (finiteBasisEmbedding b f hf) A) ^ p) := + compact_positive_rpow_intertwine + (isCompactOperator_of_locallyCompactSpace_dom (compression (finiteBasisEmbedding b f hf) A)) + (compression_nonneg _ hA) hA _ (finiteBasisEmbedding_intertwine b f hf ha) hp + +theorem compression_conjugate_of_intertwine (i : F →ₗᵢ[ℂ] E) + {S : E →L[ℂ] E} {C : F →L[ℂ] F} (hS : IsSelfAdjoint S) (hC : IsSelfAdjoint C) + (hi : S.comp i.toContinuousLinearMap = i.toContinuousLinearMap.comp C) + (Θ : E →L[ℂ] E) : compression i (S * Θ * S) = C * compression i Θ * C := by + have he (x : F) : S (i x) = i (C x) := DFunLike.congr_fun hi x + apply ContinuousLinearMap.ext + intro y + apply ext_inner_left ℂ + intro x + rw [compression_inner, mul_apply_eq_comp, mul_apply_eq_comp, + ← S.adjoint_inner_left, hS.adjoint_eq, he, he, ← compression_inner] + rw [mul_apply_eq_comp, mul_apply_eq_comp, ← C.adjoint_inner_right, hC.adjoint_eq] + +theorem finiteBasisCompression_sandwich_factorization (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) {ρ σ Θ : E →L[ℂ] E} + (hσ : 0 ≤ σ) {a : ι → ℝ} (ha : ∀ j, σ (b j) = a j • b j) + {τ : ℝ} (hτ : 0 < τ) + (hfactor : σ ^ (τ / 2) * Θ * σ ^ (τ / 2) = ρ) : + finiteBasisCompression b f hf ρ = + (finiteBasisCompression b f hf σ) ^ (τ / 2) * finiteBasisCompression b f hf Θ * + (finiteBasisCompression b f hf σ) ^ (τ / 2) := by + apply (Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)).injective + change (Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)) + (finiteBasisCompression b f hf ρ) = + (Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)) + ((finiteBasisCompression b f hf σ) ^ (τ / 2) * + finiteBasisCompression b f hf Θ * (finiteBasisCompression b f hf σ) ^ (τ / 2)) + simp only [map_mul, toEuclideanCLM_rpow (finiteBasisCompression_posSemidef b f hf hσ), + toEuclideanCLM_finiteBasisCompression] + rw [← hfactor] + exact compression_conjugate_of_intertwine _ CFC.rpow_nonneg.isSelfAdjoint + CFC.rpow_nonneg.isSelfAdjoint (finiteBasisEmbedding_rpow_intertwine b f hf hσ ha + (half_pos hτ)) Θ + +theorem finiteBasisCompression_eq_finiteRenyiSandwich (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) {ρ σ Θ : E →L[ℂ] E} + (hσ : 0 ≤ σ) (hinj : Function.Injective σ) + {a : ι → ℝ} (ha : ∀ j, σ (b j) = a j • b j) {τ : ℝ} (hτ : 0 < τ) + (hfactor : σ ^ (τ / 2) * Θ * σ ^ (τ / 2) = ρ) : + finiteRenyiSandwich (finiteBasisCompression b f hf ρ) (finiteBasisCompression b f hf σ) τ = + finiteBasisCompression b f hf Θ := by + let S := finiteBasisCompression b f hf σ + have hS := finiteBasisCompression_posDef b f hf hσ hinj + have hleft : S ^ (-τ / 2) * S ^ (τ / 2) = 1 := by + rw [← CFC.rpow_add hS.isUnit, show -τ / 2 + τ / 2 = 0 by ring, + CFC.rpow_zero S hS.posSemidef.nonneg] + have hright : S ^ (τ / 2) * S ^ (-τ / 2) = 1 := by + rw [← CFC.rpow_add hS.isUnit, show τ / 2 + -τ / 2 = 0 by ring, + CFC.rpow_zero S hS.posSemidef.nonneg] + rw [finiteRenyiSandwich, finiteBasisCompression_sandwich_factorization b f hf hσ ha hτ hfactor] + change S ^ (-τ / 2) * (S ^ (τ / 2) * _ * S ^ (τ / 2)) * S ^ (-τ / 2) = _ + calc + _ = (S ^ (-τ / 2) * S ^ (τ / 2)) * finiteBasisCompression b f hf Θ * + (S ^ (τ / 2) * S ^ (-τ / 2)) := by noncomm_ring + _ = _ := by rw [hleft, hright, one_mul, mul_one] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SquareSummableFamily.lean b/LeanPool/VacuumBellSeparation/Gaussian/SquareSummableFamily.lean new file mode 100644 index 0000000000..fc6c7815c4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SquareSummableFamily.lean @@ -0,0 +1,128 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtTrace +public import LeanPool.VacuumBellSeparation.Gaussian.L2ProductInner + +/-! +# Actual bounded analysis operators for square-summable Hilbert families + +For a family with summable squared norms, the actual coefficient map +`x ↦ (⟨v_i,x⟩)_i` takes values in the full ℓ² space and is bounded by +the square root of the summed squared norms. Its adjoint sends coordinate +vectors to the original family. The resulting positive Gram operator +has finite positive trace equal to that sum. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal lp + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +omit [CompleteSpace E] in +theorem norm_inner_sq_le (x y : E) : ‖inner ℂ x y‖ ^ 2 ≤ ‖x‖ ^ 2 * ‖y‖ ^ 2 := by + simpa only [mul_pow] using pow_le_pow_left₀ (norm_nonneg (inner ℂ x y)) (norm_inner_le_norm + (𝕜 := ℂ) x y) 2 + +omit [CompleteSpace E] in +theorem summable_family_inner_norm_sq (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) + (x : E) : Summable fun i => ‖inner ℂ (v i) x‖ ^ 2 := + Summable.of_nonneg_of_le (fun _ => sq_nonneg _) (fun i => norm_inner_sq_le (v i) x) + (hv.mul_right (‖x‖ ^ 2)) + +/-- Family analysis vector. -/ +def familyAnalysisVector (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) (x : E) : ℓ²(ι, ℂ) := + ⟨fun i => inner ℂ (v i) x, by + apply (memℓp_gen_iff (by norm_num : 0 < (2 : ℝ≥0∞).toReal)).mpr + simpa [Real.rpow_two] using summable_family_inner_norm_sq v hv x⟩ + +omit [CompleteSpace E] in +@[simp] theorem familyAnalysisVector_apply (v : ι → E) + (hv : Summable fun i => ‖v i‖ ^ 2) (x : E) (i : ι) : + familyAnalysisVector v hv x i = inner ℂ (v i) x := rfl + +omit [CompleteSpace E] in +theorem norm_familyAnalysisVector_le (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) + (x : E) : ‖familyAnalysisVector v hv x‖ ≤ Real.sqrt (∑' i, ‖v i‖ ^ 2) * ‖x‖ := by + have hs : 0 ≤ ∑' i, ‖v i‖ ^ 2 := tsum_nonneg fun _ => sq_nonneg _ + have hn : ‖familyAnalysisVector v hv x‖ ^ 2 = ∑' i, ‖inner ℂ (v i) x‖ ^ 2 := by + simpa [Real.rpow_two] using + (lp.hasSum_norm (p := 2) (by norm_num) (familyAnalysisVector v hv x)).tsum_eq.symm + apply (sq_le_sq₀ (norm_nonneg _) + (mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _))).mp + rw [hn, mul_pow, Real.sq_sqrt hs, ← tsum_mul_right] + exact Summable.tsum_le_tsum (fun i => norm_inner_sq_le (v i) x) + (summable_family_inner_norm_sq v hv x) (hv.mul_right (‖x‖ ^ 2)) + +/-- Linear map for the family analysis linear. -/ +def familyAnalysisLinear (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) : + E →ₗ[ℂ] ℓ²(ι, ℂ) where + toFun := familyAnalysisVector v hv + map_add' := by intro x y; ext i; exact inner_add_right _ _ _ + map_smul' := by intro c x; ext i; exact inner_smul_right _ _ _ + +/-- Continuous linear map for the family analysis, of type `E →L[ℂ] ℓ²(ι, ℂ)`. -/ +def familyAnalysis (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) : E →L[ℂ] ℓ²(ι, ℂ) := + (familyAnalysisLinear v hv).mkContinuous (Real.sqrt (∑' i, ‖v i‖ ^ 2)) + (norm_familyAnalysisVector_le v hv) + +omit [CompleteSpace E] in +@[simp] theorem familyAnalysis_apply (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) + (x : E) (i : ι) : familyAnalysis v hv x i = inner ℂ (v i) x := rfl + +/-- The Hilbert basis induced by the standard coordinate representation. -/ +def coordinateHilbertBasis (ι : Type*) : HilbertBasis ι ℂ ℓ²(ι, ℂ) := + HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _) + +@[simp] theorem coordinateHilbertBasis_inner (i : ι) (x : ℓ²(ι, ℂ)) : + inner ℂ (coordinateHilbertBasis ι i) x = x i := by + classical + change inner ℂ (lp.single 2 i 1) x = x i + simp [lp.inner_single_left] + +theorem familyAnalysis_adjoint_basis (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) (i : ι) : + (familyAnalysis v hv).adjoint (coordinateHilbertBasis ι i) = v i := by + apply ext_inner_right ℂ + intro x + rw [ContinuousLinearMap.adjoint_inner_left, coordinateHilbertBasis_inner, familyAnalysis_apply] + +/-- Continuous linear map for the family gram operator, of type `ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)`. -/ +def familyGramOperator (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) : + ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ) := (familyAnalysis v hv).comp (familyAnalysis v hv).adjoint + +theorem familyGramOperator_nonneg (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) : + 0 ≤ familyGramOperator v hv := + ContinuousLinearMap.nonneg_iff_isPositive.mpr + (ContinuousLinearMap.isPositive_self_comp_adjoint (familyAnalysis v hv)) + +theorem familyGramOperator_matrix (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) (i j : ι) : + inner ℂ (coordinateHilbertBasis ι i) (familyGramOperator v hv (coordinateHilbertBasis ι j)) = + inner ℂ (v i) (v j) := by + rw [familyGramOperator, ContinuousLinearMap.comp_apply, familyAnalysis_adjoint_basis, + coordinateHilbertBasis_inner, familyAnalysis_apply] + +theorem positiveTrace_familyGramOperator (v : ι → E) (hv : Summable fun i => ‖v i‖ ^ 2) : + positiveTrace (familyGramOperator v hv) = ENNReal.ofReal (∑' i, ‖v i‖ ^ 2) := by + rw [positiveTrace_eq_tsum_diagonal (coordinateHilbertBasis ι) (familyGramOperator_nonneg v hv), + ENNReal.ofReal_tsum_of_nonneg (fun _ => sq_nonneg _) hv] + apply tsum_congr + intro i + rw [familyGramOperator_matrix, ← RCLike.re_eq_complex_re, inner_self_eq_norm_sq] + +theorem familyGramOperator_isPositiveTraceClass (v : ι → E) + (hv : Summable fun i => ‖v i‖ ^ 2) : IsPositiveTraceClass (familyGramOperator v hv) := by + refine ⟨familyGramOperator_nonneg v hv, ?_⟩ + rw [positiveTrace_familyGramOperator] + exact ENNReal.ofReal_lt_top + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SquareTraceFiniteBlocks.lean b/LeanPool/VacuumBellSeparation/Gaussian/SquareTraceFiniteBlocks.lean new file mode 100644 index 0000000000..ef7b80a693 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SquareTraceFiniteBlocks.lean @@ -0,0 +1,129 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteBasisCompression +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtMatrixExtension + +/-! +# The full actual square trace is controlled by finite square blocks + +Parseval and nonnegative Tonelli identify the square trace of a bounded +selfadjoint operator with the full squared matrix-coefficient sum. Every +finite set of index pairs is contained in a square block. Consequently +uniform bounds for the genuine finite compression square traces control +the full extended square trace, with no countability or prior finiteness. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Matrix +open scoped ENNReal ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {ι E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem ennreal_double_tsum_le_of_square_blocks (a : ι → ι → ℝ≥0∞) {C : ℝ≥0∞} + (h : ∀ s : Finset ι, ∑ i ∈ s, ∑ j ∈ s, a i j ≤ C) : + ∑' i, ∑' j, a i j ≤ C := by + classical + rw [← tsum_prod] + apply CompleteLattice.summable.tsum_le_of_sum_le + intro t + let s := t.image Prod.fst ∪ t.image Prod.snd + have ht : t ⊆ s ×ˢ s := by + intro x hx + apply Finset.mem_product.mpr + exact ⟨Finset.mem_union_left _ (Finset.mem_image.mpr ⟨x, hx, rfl⟩), + Finset.mem_union_right _ (Finset.mem_image.mpr ⟨x, hx, rfl⟩)⟩ + calc + ∑ x ∈ t, a x.1 x.2 ≤ ∑ x ∈ s ×ˢ s, a x.1 x.2 := + Finset.sum_le_sum_of_subset_of_nonneg ht (fun _ _ _ => zero_le) + _ = ∑ i ∈ s, ∑ j ∈ s, a i j := Finset.sum_product' _ _ _ + _ ≤ C := h s + +omit [CompleteSpace E] in +theorem basisHilbertSchmidtSquare_eq_matrix (b : HilbertBasis ι ℂ E) + (A : E →L[ℂ] E) : + basisHilbertSchmidtSquare b A = + matrixHilbertSchmidtSquare (fun i j => inner ℂ (b i) (A (b j))) := by + unfold basisHilbertSchmidtSquare matrixHilbertSchmidtSquare + calc + (∑' j, ENNReal.ofReal (‖A (b j)‖ ^ 2)) = + ∑' j, ∑' i, ENNReal.ofReal (‖inner ℂ (b i) (A (b j))‖ ^ 2) := + tsum_congr fun j => (tsum_basis_inner_norm_sq b (A (b j))).symm + _ = _ := tsum_comm + +theorem positiveTrace_square_eq_matrix (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) : + positiveTrace (A * A) = + matrixHilbertSchmidtSquare (fun i j => inner ℂ (b i) (A (b j))) := by + have he : A.adjoint.comp A = A * A := by + change star A * A = A * A + rw [hA.star_eq] + rw [← he, positiveTrace_adjoint_comp b, basisHilbertSchmidtSquare_eq_matrix] + +section Finite +variable {κ : Type*} [Fintype κ] [DecidableEq κ] + +theorem finitePositivePowerTrace_two_eq_matrix {A : Matrix κ κ ℂ} + (hA : A.PosSemidef) : + finitePositivePowerTrace A 2 = matrixHilbertSchmidtSquare A := by + let b := (EuclideanSpace.basisFun κ ℂ).toHilbertBasis + have hT : 0 ≤ (Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)) A := + map_nonneg (Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)) hA.nonneg + have hpow : ((Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)) A) ^ (2 : ℝ) = + ((Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)) A) ^ (2 : ℕ) := by + simpa only [Nat.cast_ofNat] using + (CFC.rpow_natCast ((Matrix.toEuclideanCLM (n := κ) (𝕜 := ℂ)) A) 2 hT) + rw [← positiveTrace_toEuclideanCLM_rpow hA 2, + hpow, pow_two, positiveTrace_square_eq_matrix b hT.isSelfAdjoint] + congr 1 + funext i j + simpa only [b, OrthonormalBasis.coe_toHilbertBasis] using euclidean_coordinate_inner_matrix A i j + +theorem finiteBasisCompression_square_trace (b : HilbertBasis ι ℂ E) + (f : κ → ι) (hf : Function.Injective f) {A : E →L[ℂ] E} (hA : 0 ≤ A) : + finitePositivePowerTrace (finiteBasisCompression b f hf A) 2 = + ∑ i, ∑ j, ENNReal.ofReal (‖inner ℂ (b (f i)) (A (b (f j)))‖ ^ 2) := by + rw [finitePositivePowerTrace_two_eq_matrix (finiteBasisCompression_posSemidef b f hf hA)] + simp only [matrixHilbertSchmidtSquare, tsum_fintype, finiteBasisCompression_entry] + +end Finite + +/-- Uniform square-trace bounds on actual finite coordinate compressions +imply the full extended square-trace bound for the given bounded operator. -/ +theorem positiveTrace_square_le_of_finite_compressions [DecidableEq ι] + (b : HilbertBasis ι ℂ E) {A : E →L[ℂ] E} (hA : 0 ≤ A) {C : ℝ≥0∞} + (h : ∀ s : Finset ι, + finitePositivePowerTrace (finiteBasisCompression b (fun i : s => (i : ι)) + Subtype.val_injective A) 2 ≤ C) : + positiveTrace (A ^ (2 : ℝ)) ≤ C := by + have hpow : A ^ (2 : ℝ) = A ^ (2 : ℕ) := by + simpa only [Nat.cast_ofNat] using (CFC.rpow_natCast A 2 hA) + rw [hpow, pow_two, positiveTrace_square_eq_matrix b hA.isSelfAdjoint] + apply ennreal_double_tsum_le_of_square_blocks + intro s + have hs := h s + rw [finiteBasisCompression_square_trace b _ _ hA] at hs + let q : ι → ι → ℝ≥0∞ := fun i j => + ENNReal.ofReal (‖inner ℂ (b i) (A (b j))‖ ^ 2) + change (∑ i : s, ∑ j : s, q i j) ≤ C at hs + change (∑ i ∈ s, ∑ j ∈ s, q i j) ≤ C + calc + (∑ i ∈ s, ∑ j ∈ s, q i j) = ∑ i : s, ∑ j ∈ s, q i j := + Finset.sum_subtype s (fun _ => Iff.rfl) (fun i => ∑ j ∈ s, q i j) + _ = ∑ i : s, ∑ j : s, q i j := by + apply Finset.sum_congr rfl + intro i _ + exact Finset.sum_subtype s (fun _ => Iff.rfl) (q i) + _ ≤ C := hs + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/StandardSubspaceSource.lean b/LeanPool/VacuumBellSeparation/Gaussian/StandardSubspaceSource.lean new file mode 100644 index 0000000000..ad2b84edff --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/StandardSubspaceSource.lean @@ -0,0 +1,190 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexConjugation +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedCommutation +public import LeanPool.VacuumBellSeparation.FreeField.PolarUnitary + +/-! +# The actual source complexification of an arbitrary standard real subspace + +Only the defining closedness, separation and cyclicity of Mathlib's +StandardSubspace are used. The map is the literal inclusion x+iy in the +ambient Hilbert space. No physical-region or bounded-inverse assumption is +introduced when passing to the general standard-subspace setting. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian +open ClosedSubmodule ContinuousLinearMap HilbertComplexification +open scoped InnerProductSpace + +variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +/-- Standard source with underlying type `HilbertComplexification S.toClosedSubmodule`. -/ +abbrev StandardSource (S : StandardSubspace H) := HilbertComplexification S.toClosedSubmodule + +/-- Linear isometry for the standard real inclusion, of type `S.toClosedSubmodule →ₗᵢ[ℝ] H where +toFun x`. -/ +noncomputable def standardRealInclusion (S : StandardSubspace H) : + S.toClosedSubmodule →ₗᵢ[ℝ] H where + toFun x := x + map_add' _ _ := rfl + map_smul' _ _ := rfl + norm_map' _ := rfl + +/-- Standard source map obtained from `sourceMap`. -/ +noncomputable def standardSourceMap (S : StandardSubspace H) : StandardSource S →L[ℂ] H := + sourceMap (standardRealInclusion S) + +omit [CompleteSpace H] in +@[simp] theorem standardSourceMap_apply (S : StandardSubspace H) (z : StandardSource S) : + standardSourceMap S z = (z.re : H) + Complex.I • (z.im : H) := rfl + +omit [CompleteSpace H] in +theorem standardSourceMap_eq_zero (S : StandardSubspace H) (z : StandardSource S) + (hz : standardSourceMap S z = 0) : z = 0 := by + have hsum : (z.re : H) + Complex.I • (z.im : H) = 0 := hz + have hre : (z.re : H) = Complex.I • (-(z.im : H)) := by + rw [smul_neg] + exact eq_neg_of_add_eq_zero_left hsum + have himem : (z.re : H) ∈ S.toClosedSubmodule.mulI := by + rw [hre] + change scalarSMulCLE H Complex.UnitI (-(z.im : H)) ∈ + S.toClosedSubmodule.mapEquiv (scalarSMulCLE H Complex.UnitI) + rw [ClosedSubmodule.mem_mapEquiv_iff'] + exact S.toClosedSubmodule.neg_mem z.im.property + have hmem : (z.re : H) ∈ S.toClosedSubmodule ⊓ S.toClosedSubmodule.mulI := + ⟨z.re.property, himem⟩ + rw [S.IsSeparating] at hmem + have hr0 : (z.re : H) = 0 := hmem + have hi0 : (z.im : H) = 0 := by + rw [hr0, zero_add] at hsum + exact (smul_eq_zero.mp hsum).resolve_left Complex.I_ne_zero + apply HilbertComplexification.ext + · exact Subtype.ext hr0 + · exact Subtype.ext hi0 + +omit [CompleteSpace H] in +theorem standardSourceMap_injective (S : StandardSubspace H) : + Function.Injective (standardSourceMap S) := by + intro x y h + apply sub_eq_zero.mp + apply standardSourceMap_eq_zero S + rw [map_sub, h, sub_self] + +omit [CompleteSpace H] in +theorem standardSourceMap_denseRange (S : StandardSubspace H) : + DenseRange (standardSourceMap S) := by + let C : ClosedSubmodule ℝ H := ((standardSourceMap S).restrictScalars ℝ).range.closure + have hS : S.toClosedSubmodule ≤ C := by + intro x hx + apply subset_closure + refine ⟨ofReal ⟨x, hx⟩, ?_⟩ + change standardSourceMap S (ofReal ⟨x, hx⟩) = x + rw [standardSourceMap, sourceMap_ofReal] + rfl + have hiS : S.toClosedSubmodule.mulI ≤ C := by + intro x hx + have hpre := (ClosedSubmodule.mem_mapEquiv_iff + (scalarSMulCLE H Complex.UnitI) S.toClosedSubmodule x).mp hx + let y : S.toClosedSubmodule := ⟨(scalarSMulCLE H Complex.UnitI).symm x, hpre⟩ + apply subset_closure + refine ⟨Complex.I • ofReal y, ?_⟩ + change standardSourceMap S (Complex.I • ofReal y) = x + rw [map_smul] + have hreal : standardSourceMap S (ofReal y) = (y : H) := by + simp only [standardSourceMap, sourceMap_ofReal] + rfl + rw [hreal] + exact (scalarSMulCLE H Complex.UnitI).apply_symm_apply x + have hC : C = ⊤ := by + apply top_unique + rw [← S.IsCyclic] + exact sup_le hS hiS + rw [denseRange_iff_closure_range] + change (C : Set H) = Set.univ + rw [hC] + rfl + +/-- Continuous linear map for the standard gram, of type `StandardSource S →L[ℂ] StandardSource +S`. -/ +noncomputable def standardGram (S : StandardSubspace H) : StandardSource S →L[ℂ] StandardSource S := + (standardSourceMap S).adjoint.comp (standardSourceMap S) + +/-- Standard conjugate gram obtained from `conjugateOperator`. -/ +noncomputable def standardConjugateGram (S : StandardSubspace H) : + StandardSource S →L[ℂ] StandardSource S := conjugateOperator (standardGram S) + +theorem standardGram_nonneg (S : StandardSubspace H) : 0 ≤ standardGram S := + nonneg_iff_isPositive.mpr (isPositive_adjoint_comp_self (standardSourceMap S)) + +theorem standardGram_injective (S : StandardSubspace H) : Function.Injective (standardGram S) := by + intro x y h + apply standardSourceMap_injective S + apply sub_eq_zero.mp + apply norm_eq_zero.mp + have hG : standardGram S (x - y) = 0 := by rw [map_sub, h, sub_self] + have hn := (standardSourceMap S).apply_norm_sq_eq_inner_adjoint_right (x - y) + change ‖standardSourceMap S (x - y)‖ ^ 2 = (inner ℂ (x - y) (standardGram S (x - y))).re at hn + rw [hG, inner_zero_right, Complex.zero_re] at hn + simpa only [map_sub] using (sq_eq_zero_iff.mp hn) + +theorem standardConjugateGram_eq_two_sub (S : StandardSubspace H) : + standardConjugateGram S = 2 - standardGram S := by + rw [standardConjugateGram, standardGram, standardSourceMap, + conjugate_sourceMap_gram, sourceMap_adjoint_mul_self] + rw [show (2 : StandardSource S →L[ℂ] StandardSource S) = 1 + 1 by norm_num] + abel + +theorem standardConjugateGram_nonneg (S : StandardSubspace H) : 0 ≤ standardConjugateGram S := by + rw [standardConjugateGram, standardGram, standardSourceMap, conjugate_sourceMap_gram] + exact gramMinus_nonneg + (normalizedCommutation_isSelfAdjoint (complexCommutation_mem_skewAdjoint + (standardRealInclusion S))) + (norm_normalizedCommutation_le_one (norm_complexCommutation_le_two (standardRealInclusion S))) + +theorem standardHilbertOperator_real_isScalarTower {E : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] : + IsScalarTower ℝ (E →L[ℂ] E) (E →L[ℂ] E) := IsScalarTower.right + +local instance standardSourceOperator_real_isScalarTower (S : StandardSubspace H) : + IsScalarTower ℝ (StandardSource S →L[ℂ] StandardSource S) + (StandardSource S →L[ℂ] StandardSource S) := + standardHilbertOperator_real_isScalarTower (E := StandardSource S) + +theorem standardHilbertOperator_realCFC {E : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] : + IsometricContinuousFunctionalCalculus ℝ (E →L[ℂ] E) IsSelfAdjoint := inferInstance + +local instance standardSourceOperator_realCFC (S : StandardSubspace H) : + IsometricContinuousFunctionalCalculus ℝ + (StandardSource S →L[ℂ] StandardSource S) IsSelfAdjoint := + standardHilbertOperator_realCFC (E := StandardSource S) + +theorem standardHilbertOperator_realNonUnitalCFC {E : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] : + NonUnitalContinuousFunctionalCalculus ℝ (E →L[ℂ] E) IsSelfAdjoint := inferInstance + +local instance standardSourceOperator_realNonUnitalCFC (S : StandardSubspace H) : + NonUnitalContinuousFunctionalCalculus ℝ + (StandardSource S →L[ℂ] StandardSource S) IsSelfAdjoint := + standardHilbertOperator_realNonUnitalCFC (E := StandardSource S) + +/-- Linear isometry equivalence for the standard polar unitary, of type `StandardSource S ≃ₗᵢ[ℂ] +H`. -/ +noncomputable def standardPolarUnitary (S : StandardSubspace H) : StandardSource S ≃ₗᵢ[ℂ] H := + polarUnitary (standardSourceMap S) (standardSourceMap_injective S) + (standardSourceMap_denseRange S) + +theorem standardPolarUnitary_sqrt (S : StandardSubspace H) (z : StandardSource S) : + standardPolarUnitary S (CFC.sqrt (standardGram S) z) = standardSourceMap S z := + polarUnitary_polarGramRoot _ _ _ z + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/StrictOperatorComplexPowers.lean b/LeanPool/VacuumBellSeparation/Gaussian/StrictOperatorComplexPowers.lean new file mode 100644 index 0000000000..b03a76fc4b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/StrictOperatorComplexPowers.lean @@ -0,0 +1,128 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.OperatorMeans +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.ExpLog.Basic +public import Mathlib.Analysis.SpecialFunctions.Exponential +public import Mathlib.Analysis.Complex.Hadamard + +/-! +# Actual complex powers of a strictly positive bounded operator + +The entire family is the Banach-algebra exponential of the actual bounded +selfadjoint CFC logarithm. The auxiliary exponential is totalized for arbitrary +operators; identification with genuine real spectral powers requires the stated +strict positivity hypotheses. The reserve interpolation applies these identities +only to strictly positive regularizations and takes positive-power limits. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Set +open scoped ComplexConjugate ContinuousFunctionalCalculus + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- Complex powers of an operator computed by exponentiating a complex multiple of its +functional-calculus logarithm. -/ +def operatorComplexPower (R : E →L[ℂ] E) (z : ℂ) : E →L[ℂ] E := + NormedSpace.exp (z • CFC.log R) + +@[simp] theorem operatorComplexPower_zero (R : E →L[ℂ] E) : + operatorComplexPower R 0 = 1 := by + simp only [operatorComplexPower, zero_smul, NormedSpace.exp_zero] + +theorem operatorComplexPower_add (R : E →L[ℂ] E) (z w : ℂ) : + operatorComplexPower R (z + w) = operatorComplexPower R z * operatorComplexPower R w := by + let +nondep : NormedAlgebra ℚ (E →L[ℂ] E) := .restrictScalars ℚ ℂ (E →L[ℂ] E) + unfold operatorComplexPower + rw [add_smul] + exact NormedSpace.exp_add_of_commute (((Commute.refl (CFC.log R)).smul_left z).smul_right w) + +theorem operatorComplexPower_commute (R : E →L[ℂ] E) (z w : ℂ) : + Commute (operatorComplexPower R z) (operatorComplexPower R w) := by + change _ * _ = _ * _ + rw [← operatorComplexPower_add, ← operatorComplexPower_add, add_comm] + +theorem operatorComplexPower_star (R : E →L[ℂ] E) (z : ℂ) : + star (operatorComplexPower R z) = operatorComplexPower R (conj z) := by + simp only [operatorComplexPower, NormedSpace.star_exp, star_smul, + (IsSelfAdjoint.log (a := R)).star_eq, starRingEnd_apply] + +theorem differentiable_operatorComplexPower (R : E →L[ℂ] E) : + Differentiable ℂ (operatorComplexPower R) := by + change Differentiable ℂ (fun z : ℂ => NormedSpace.exp (z • CFC.log R)) + exact differentiable_exp_smul_const ℂ (CFC.log R) + +theorem operatorComplexPower_real {R : E →L[ℂ] E} + (hR : IsStrictlyPositive R) (t : ℝ) : operatorComplexPower R (t : ℂ) = R ^ t := by + have hlog : ContinuousOn Real.log (spectrum ℝ R) := by + apply Real.continuousOn_log.mono + intro x hx + exact ne_of_gt (hR.spectrum_pos hx) + have hmul : ContinuousOn (fun x : ℝ => t * Real.log x) (spectrum ℝ R) := + continuousOn_const.mul hlog + have hsmul : (t : ℂ) • CFC.log R = t • CFC.log R := by + simpa only [RCLike.ofReal_eq_complex_ofReal] using + (RCLike.real_smul_eq_coe_smul (K := ℂ) t (CFC.log R)).symm + rw [operatorComplexPower, hsmul, + ← CFC.real_exp_eq_normedSpace_exp ((IsSelfAdjoint.all t).smul (IsSelfAdjoint.log (a := R))), + CFC.log, ← cfc_const_mul t Real.log R hlog, + ← cfc_comp' Real.exp (fun x : ℝ => t * Real.log x) R + Real.continuous_exp.continuousOn hmul hR.nonneg.isSelfAdjoint, + CFC.rpow_eq_cfc_real hR.nonneg] + apply cfc_congr + intro x hx + change Real.exp (t * Real.log x) = x ^ t + rw [Real.rpow_def_of_pos (hR.spectrum_pos hx)] + congr 1 + ring + +@[simp] theorem operatorComplexPower_one {R : E →L[ℂ] E} + (hR : IsStrictlyPositive R) : operatorComplexPower R 1 = R := by + simpa only [Complex.ofReal_one, CFC.rpow_one R hR.nonneg] using operatorComplexPower_real hR 1 + +/-- Continuous linear map for the operator imaginary power, of type `unitary (E →L[ℂ] E)`. -/ +def operatorImaginaryPower (R : E →L[ℂ] E) (t : ℝ) : unitary (E →L[ℂ] E) := + ⟨operatorComplexPower R ((t : ℂ) * Complex.I), by + constructor + · rw [operatorComplexPower_star, ← operatorComplexPower_add] + simp only [map_mul, Complex.conj_ofReal, Complex.conj_I, mul_neg, + neg_add_cancel, operatorComplexPower_zero] + · rw [operatorComplexPower_star, ← operatorComplexPower_add] + simp only [map_mul, Complex.conj_ofReal, Complex.conj_I, mul_neg, + add_neg_cancel, operatorComplexPower_zero]⟩ + +@[simp] theorem operatorImaginaryPower_coe (R : E →L[ℂ] E) (t : ℝ) : + (operatorImaginaryPower R t : E →L[ℂ] E) = operatorComplexPower R ((t : ℂ) * Complex.I) := rfl + +theorem operatorComplexPower_split (R : E →L[ℂ] E) (z : ℂ) : + operatorComplexPower R z = operatorComplexPower R (z.re : ℂ) * + (operatorImaginaryPower R z.im : E →L[ℂ] E) := by + conv_lhs => rw [← Complex.re_add_im z] + exact operatorComplexPower_add R _ _ + +theorem norm_operatorComplexPower_eq_real (R : E →L[ℂ] E) (z : ℂ) : + ‖operatorComplexPower R z‖ = ‖operatorComplexPower R (z.re : ℂ)‖ := by + rw [operatorComplexPower_split, CStarRing.norm_mul_coe_unitary] + +theorem exists_bound_operatorComplexPower_strip (R : E →L[ℂ] E) : + ∃ C : ℝ, 0 ≤ C ∧ ∀ z : ℂ, z.re ∈ Icc (0 : ℝ) 1 → + ‖operatorComplexPower R z‖ ≤ C := by + have hc : Continuous (fun t : ℝ => operatorComplexPower R (t : ℂ)) := + (differentiable_operatorComplexPower R).continuous.comp Complex.continuous_ofReal + obtain ⟨C, hC⟩ := isCompact_Icc.exists_bound_of_continuousOn hc.continuousOn + refine ⟨max C 0, le_max_right _ _, fun z hz => ?_⟩ + rw [norm_operatorComplexPower_eq_real] + exact (hC z.re hz).trans (le_max_left _ _) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/StrictQuantumWilliamson.lean b/LeanPool/VacuumBellSeparation/Gaussian/StrictQuantumWilliamson.lean new file mode 100644 index 0000000000..83716f9885 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/StrictQuantumWilliamson.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteGaussianRealization + +/-! +# Strict uncertainty gives a faithful actual Gaussian density + +Strict positivity of the literal finite uncertainty matrix is transported +using the actual inverse Williamson coordinates. The mode vector `(1,i)` +then forces each variance strictly above `1/2`. The resulting density is +injective on the full occupation Hilbert space. No bounded inverse for +that infinite-dimensional density is asserted. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +omit [Fintype ι] in +theorem half_lt_of_quantum_mode_posDef (ν : ι → ℝ) + (h : (quantumCovariance (modeDiagonal ν) modeSymplecticForm).PosDef) : + ∀ i, (1 : ℝ) / 2 < ν i := by + intro i + have hblock := h.submatrix (e := fun a : Fin 2 => (i, a)) + (fun a b hab => congrArg Prod.snd hab) + rw [quantumModeBlock] at hblock + have hx : (![1, Complex.I] : Fin 2 → ℂ) ≠ 0 := by + intro hx + have hz := congrFun hx 0 + simp at hz + have ht := hblock.dotProduct_mulVec_pos hx + have hr := (Complex.pos_iff.mp ht).1 + norm_num [Matrix.mulVec, dotProduct, Fin.sum_univ_two, Complex.mul_re, Complex.mul_im] at hr + linarith + +omit [DecidableEq ι] in +theorem strict_quantum_williamson_variances {m : ℕ} + (V Ω : Matrix ι ι ℝ) (ν : Fin m → ℝ) + (S : Matrix ι (Fin m × Fin 2) ℝ) (T : Matrix (Fin m × Fin 2) ι ℝ) + (hTS : T * S = 1) (hsymp : S * (modeSymplecticForm (ι := Fin m)) * Sᵀ = Ω) + (hcov : S * modeDiagonal ν * Sᵀ = V) + (hquantum : (quantumCovariance V Ω).PosDef) : ∀ j, 1 / 2 < ν j := by + have hCTS : complexifyMatrix T * complexifyMatrix S = 1 := by + rw [← complexifyMatrix_mul, hTS, complexifyMatrix_one] + have hinj : Function.Injective (complexifyMatrix T).vecMul := by + intro x y hxy + have h := congrArg (fun z => z ᵥ* complexifyMatrix S) hxy + simpa only [Matrix.vecMul_vecMul, hCTS, Matrix.vecMul_one] using h + have hinv_cov : T * V * Tᵀ = modeDiagonal ν := by + calc + T * V * Tᵀ = (T * S) * modeDiagonal ν * (T * S)ᵀ := by + rw [← hcov] + simp only [Matrix.transpose_mul, Matrix.mul_assoc] + _ = modeDiagonal ν := by simp only [hTS, Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one] + have hinv_symp : T * Ω * Tᵀ = (modeSymplecticForm (ι := Fin m)) := by + calc + T * Ω * Tᵀ = (T * S) * (modeSymplecticForm (ι := Fin m)) * (T * S)ᵀ := by + rw [← hsymp] + simp only [Matrix.transpose_mul, Matrix.mul_assoc] + _ = (modeSymplecticForm (ι := Fin m)) := by + simp only [hTS, Matrix.transpose_one, Matrix.one_mul, Matrix.mul_one] + have hnormal := hquantum.mul_mul_conjTranspose_same hinj + rw [← quantumCovariance_congruence, hinv_cov, hinv_symp] at hnormal + exact half_lt_of_quantum_mode_posDef ν hnormal + +/-- Strict uncertainty produces an actual faithful density with the +specified covariance characteristic and Weyl phase. -/ +theorem exists_faithful_finite_gaussian_realization (V Ω : Matrix ι ι ℝ) + (hV : V.PosDef) (hΩ : Ωᵀ = -Ω) (hΩunit : IsUnit Ω) + (hquantum : (quantumCovariance V Ω).PosDef) : + ∃ (m : ℕ) (ν : Fin m → ℝ) (hν : ∀ j, 1 / 2 < ν j) + (S : Matrix ι (Fin m × Fin 2) ℝ) (T : Matrix (Fin m × Fin 2) ι ℝ), + Fintype.card ι = 2 * m ∧ S * T = 1 ∧ T * S = 1 ∧ + IsFaithfulDensity (covarianceProductDensity ν) ∧ + (∀ x, finiteGaussianWeyl S x ∈ + unitary (MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m)) ∧ + (∀ x y, finiteGaussianWeyl S x * finiteGaussianWeyl S y = + Complex.exp (-(Complex.I * (((x ⬝ᵥ (Ω *ᵥ y)) / 2 : ℝ) : ℂ))) • + finiteGaussianWeyl S (x + y)) ∧ + (∀ x, covarianceProductState (fun j => (hν j).le) (finiteGaussianWeyl S x) = + Complex.exp ((-(1 / 2) * (x ⬝ᵥ (V *ᵥ x)) : ℝ) : ℂ)) := by + obtain ⟨m, ν, S, T, hcard, _, hST, hTS, hsymp, hcov⟩ := + exists_quantum_williamson_factorization V Ω hV hΩ hΩunit hquantum.posSemidef + have hν := strict_quantum_williamson_variances V Ω ν S T hTS hsymp hcov hquantum + exact ⟨m, ν, hν, S, T, hcard, hST, hTS, covarianceProductDensity_isFaithfulDensity hν, + finiteGaussianWeyl_mem_unitary S, finiteGaussianWeyl_mul S Ω hsymp, + covarianceProductState_finiteGaussianWeyl (fun j => (hν j).le) S V hcov⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/StrictReserveTraceInterpolation.lean b/LeanPool/VacuumBellSeparation/Gaussian/StrictReserveTraceInterpolation.lean new file mode 100644 index 0000000000..37f41b39c7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/StrictReserveTraceInterpolation.lean @@ -0,0 +1,76 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ReserveTraceStrip +public import LeanPool.VacuumBellSeparation.Gaussian.LowerPowerSandwich + +/-! +# Genuine nuclear interpolation for a strictly positive bounded reserve + +Finite sign tests of the actual middle operator recover its full nuclear +trace. Consequently the scalar three-lines argument gives the operator +inequality, with no finite-dimensional reduction or interpolation premise. +The algebraic factorization below is also valid at zero spectral values. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Set +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem operatorTraceNorm_strict_reserve_interpolation + {R B : E →L[ℂ] E} (hR : IsStrictlyPositive R) + (hcB : IsCompactOperator B) (hB : IsSelfAdjoint B) (htB : operatorTraceNorm B < ∞) + {θ : ℝ} (hθ : θ ∈ Icc (0 : ℝ) 1) : + operatorTraceNorm (R ^ ((1 - θ) / 2) * B * R ^ ((1 - θ) / 2)) ≤ + operatorTraceNorm (R ^ (1 / 2 : ℝ) * B * R ^ (1 / 2 : ℝ)) ^ (1 - θ) * + operatorTraceNorm B ^ θ := by + obtain ⟨κ, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + let S := R ^ ((1 - θ) / 2) + let Z := S * B * S + have hS : IsSelfAdjoint S := CFC.rpow_nonneg.isSelfAdjoint + have hcZ : IsCompactOperator Z := (hcB.clm_comp S).comp_clm S + have hZ : IsSelfAdjoint Z := selfAdjoint_sandwich_isSelfAdjoint hB hS + have htG := operatorTraceNorm_selfAdjoint_sandwich_lt_top hcB hB htB + (show IsSelfAdjoint (R ^ (1 / 2 : ℝ)) from CFC.rpow_nonneg.isSelfAdjoint) + have h := operatorTraceNorm_le_of_finite_tests hcZ hZ (fun s => + reserveTraceStrip_finite_test_interpolation b hR hcB hB htB + (compactSelfAdjointBasis hcZ hZ).orthonormal s + (fun i => realSpectralSign i.1.re) (fun i _ => (norm_realSpectralSign _).le) hθ) + apply h.trans_eq + rw [ENNReal.ofReal_mul (Real.rpow_nonneg ENNReal.toReal_nonneg _), + ← ENNReal.ofReal_rpow_of_nonneg ENNReal.toReal_nonneg (sub_nonneg.mpr hθ.2), + ← ENNReal.ofReal_rpow_of_nonneg ENNReal.toReal_nonneg hθ.1, + ENNReal.ofReal_toReal htG.ne, ENNReal.ofReal_toReal htB.ne] + +theorem reserve_power_interpolation_factorization {R : E →L[ℂ] E} + (hR : 0 ≤ R) (B : E →L[ℂ] E) {θ : ℝ} (hθ : θ ∈ Icc (0 : ℝ) 1) : + R ^ (θ / 2) * (R ^ ((1 - θ) / 2) * B * R ^ ((1 - θ) / 2)) * R ^ (θ / 2) = + R ^ (1 / 2 : ℝ) * B * R ^ (1 / 2 : ℝ) := by + have ha : 0 ≤ θ / 2 := div_nonneg hθ.1 (by norm_num) + have hs : 0 ≤ (1 - θ) / 2 := div_nonneg (sub_nonneg.mpr hθ.2) (by norm_num) + have hl : R ^ (θ / 2) * R ^ ((1 - θ) / 2) = R ^ (1 / 2 : ℝ) := by + rw [← positiveOperator_rpow_add_nonneg hR ha hs] + congr 1 + ring + have hr : R ^ ((1 - θ) / 2) * R ^ (θ / 2) = R ^ (1 / 2 : ℝ) := by + rw [← positiveOperator_rpow_add_nonneg hR hs ha] + congr 1 + ring + calc + _ = (R ^ (θ / 2) * R ^ ((1 - θ) / 2)) * B * + (R ^ ((1 - θ) / 2) * R ^ (θ / 2)) := by noncomm_ring + _ = _ := by rw [hl, hr] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SubstochasticHolder.lean b/LeanPool/VacuumBellSeparation/Gaussian/SubstochasticHolder.lean new file mode 100644 index 0000000000..331e40a7f5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SubstochasticHolder.lean @@ -0,0 +1,67 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceHolder + +/-! +# Extended Holder with substochastic weights + +Nonnegative weights with row and column sums at most one give the same +Holder estimate as a doubly stochastic overlap. The proof uses actual +counting-measure Holder and permits arbitrary index types and infinities. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped ENNReal + +variable {ι κ : Type*} + +theorem ennreal_substochastic_holder (w : ι → κ → ℝ≥0∞) + (hwrow : ∀ i, ∑' j, w i j ≤ 1) (hwcol : ∀ j, ∑' i, w i j ≤ 1) + (a : ι → ℝ≥0∞) (b : κ → ℝ≥0∞) {p q : ℝ} (hpq : p.HolderConjugate q) : + (∑' i, ∑' j, a i * b j * w i j) ≤ + (∑' i, a i ^ p) ^ (1 / p) * (∑' j, b j ^ q) ^ (1 / q) := by + let f : ι × κ → ℝ≥0∞ := fun ij => a ij.1 * w ij.1 ij.2 ^ (1 / p) + let g : ι × κ → ℝ≥0∞ := fun ij => b ij.2 * w ij.1 ij.2 ^ (1 / q) + have hf (i : ι) (j : κ) : f (i, j) ^ p = a i ^ p * w i j := by + dsimp only [f] + rw [ENNReal.mul_rpow_of_nonneg _ _ hpq.nonneg, ← ENNReal.rpow_mul, + one_div_mul_cancel hpq.ne_zero, ENNReal.rpow_one] + have hg (i : ι) (j : κ) : g (i, j) ^ q = b j ^ q * w i j := by + dsimp only [g] + rw [ENNReal.mul_rpow_of_nonneg _ _ hpq.symm.nonneg, ← ENNReal.rpow_mul, + one_div_mul_cancel hpq.symm.ne_zero, ENNReal.rpow_one] + have hfg (i : ι) (j : κ) : f (i, j) * g (i, j) = a i * b j * w i j := by + dsimp only [f, g] + calc + _ = (a i * b j) * (w i j ^ (1 / p) * w i j ^ (1 / q)) := by ac_rfl + _ = _ := by + rw [← ENNReal.rpow_add_of_nonneg _ _ hpq.one_div_nonneg hpq.symm.one_div_nonneg, + one_div, one_div, hpq.inv_add_inv_eq_one, ENNReal.rpow_one] + have hfsum : (∑' ij, f ij ^ p) ≤ ∑' i, a i ^ p := by + rw [tsum_prod'] + simp only [hf, ENNReal.tsum_mul_left] + exact tsum_le_tsum fun i => by simpa only [mul_one] + using _root_.mul_le_mul_right (hwrow i) (a i ^ p) + have hgsum : (∑' ij, g ij ^ q) ≤ ∑' j, b j ^ q := by + rw [tsum_prod', tsum_comm] + simp only [hg, ENNReal.tsum_mul_left] + exact tsum_le_tsum fun j => by simpa only [mul_one] + using _root_.mul_le_mul_right (hwcol j) (b j ^ q) + have h := (ennreal_tsum_holder f g hpq).trans + (mul_le_mul' (ENNReal.rpow_le_rpow hfsum hpq.one_div_nonneg) + (ENNReal.rpow_le_rpow hgsum hpq.symm.one_div_nonneg)) + rw [tsum_prod'] at h + simpa only [hfg] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SymmetricRankOneTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/SymmetricRankOneTrace.lean new file mode 100644 index 0000000000..f7d0e08311 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SymmetricRankOneTrace.lean @@ -0,0 +1,170 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.NuclearSelfAdjointSeries +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceScaling + +/-! +# Genuine nuclear estimates for symmetric rank-one kernels + +These operators act on the full Hilbert space. Their trace estimate gives +the factor two for a cross term and its adjoint; it uses actual positive +rank-one traces and order bounds. The final series theorem constructs the +bounded compact self-adjoint operator from the norm-summable coefficients. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap InnerProductSpace +open scoped ENNReal ComplexConjugate + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] {ι : Type*} + +omit [CompleteSpace E] in +theorem rankOne_self_nonneg (x : E) : 0 ≤ rankOne ℂ x x := + ContinuousLinearMap.nonneg_iff_isPositive.mpr (isPositive_rankOne_self x) + +theorem positiveTrace_rankOne_self (x : E) : + positiveTrace (rankOne ℂ x x) = ENNReal.ofReal (‖x‖ ^ 2) := by + obtain ⟨κ, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + rw [positiveTrace_eq_tsum_diagonal b (rankOne_self_nonneg x)] + have hterm (i : κ) : (inner ℂ (b i) (rankOne ℂ x x (b i))).re = + ‖inner ℂ (b i) x‖ ^ 2 := by + rw [inner_right_rankOne_apply, ← inner_conj_symm (b i) x, Complex.conj_mul'] + simp only [← Complex.ofReal_pow, Complex.ofReal_re, Complex.norm_conj] + simp_rw [hterm] + exact tsum_basis_inner_norm_sq b x + +theorem operatorTraceNorm_real_smul (c : ℝ) (A : E →L[ℂ] E) : + operatorTraceNorm (c • A) = ENNReal.ofReal |c| * operatorTraceNorm A := by + obtain ⟨κ, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + rw [operatorTraceNorm, CFC.abs_smul, positiveTrace_real_smul b + (CFC.abs_nonneg A) (norm_nonneg c), Real.norm_eq_abs, operatorTraceNorm] + +/-- Symmetric rank one given by `rankOne ℂ u v + rankOne ℂ v u`. -/ +def symmetricRankOne (u v : E) : E →L[ℂ] E := rankOne ℂ u v + rankOne ℂ v u + +theorem symmetricRankOne_isSelfAdjoint (u v : E) : IsSelfAdjoint (symmetricRankOne u v) := by + change (symmetricRankOne u v).adjoint = symmetricRankOne u v + simp only [symmetricRankOne, map_add, adjoint_rankOne, add_comm] + +omit [CompleteSpace E] in +theorem symmetricRankOne_isCompactOperator (u v : E) : + IsCompactOperator (symmetricRankOne u v) := + (isCompactOperator_rankOne u v).add (isCompactOperator_rankOne v u) + +omit [CompleteSpace E] in +theorem norm_symmetricRankOne_le (u v : E) : + ‖symmetricRankOne u v‖ ≤ 2 * (‖u‖ * ‖v‖) := by + calc + ‖symmetricRankOne u v‖ ≤ ‖rankOne ℂ u v‖ + ‖rankOne ℂ v u‖ := norm_add_le _ _ + _ = 2 * (‖u‖ * ‖v‖) := by rw [norm_rankOne, norm_rankOne]; ring + +omit [CompleteSpace E] in +theorem symmetricRankOne_real_smul (a b : ℝ) (u v : E) : + symmetricRankOne (a • u) (b • v) = (a * b) • symmetricRankOne u v := by + have hterm (a b : ℝ) (u v x : E) : + (inner ℂ (b • v) x) • (a • u) = (a * b) • ((inner ℂ v x) • u) := by + rw [inner_smul_left_eq_smul, smul_assoc, + smul_comm (inner ℂ v x) a, smul_smul, mul_comm b a] + ext x + change (inner ℂ (b • v) x) • (a • u) + (inner ℂ (a • u) x) • (b • v) = + (a * b) • ((inner ℂ v x) • u + (inner ℂ u x) • v) + rw [hterm a b u v x, hterm b a v u x, mul_comm b a, smul_add] + +theorem operatorTraceNorm_symmetricRankOne_le_sq (u v : E) : + operatorTraceNorm (symmetricRankOne u v) ≤ ENNReal.ofReal (‖u‖ ^ 2 + ‖v‖ ^ 2) := by + let B := rankOne ℂ u u + rankOne ℂ v v + have hB : 0 ≤ B := add_nonneg (rankOne_self_nonneg u) (rankOne_self_nonneg v) + have hminus : B - symmetricRankOne u v = rankOne ℂ (u - v) (u - v) := by + ext x + simp only [B, symmetricRankOne, add_apply, sub_apply, rankOne_apply, + inner_sub_left, sub_smul, smul_sub] + abel + have hplus : B + symmetricRankOne u v = rankOne ℂ (u + v) (u + v) := by + ext x + simp only [B, symmetricRankOne, add_apply, rankOne_apply, + inner_add_left, add_smul, smul_add] + abel + have hupper : symmetricRankOne u v ≤ B := by + apply sub_nonneg.mp + rw [hminus] + exact rankOne_self_nonneg _ + have hlower : -B ≤ symmetricRankOne u v := by + apply neg_le_iff_add_nonneg'.mpr + rw [hplus] + exact rankOne_self_nonneg _ + calc + operatorTraceNorm (symmetricRankOne u v) ≤ positiveTrace B := + operatorTraceNorm_le_positiveTrace_of_order_bounds (symmetricRankOne_isCompactOperator u v) + (symmetricRankOne_isSelfAdjoint u v) hB hlower hupper + _ = ENNReal.ofReal (‖u‖ ^ 2 + ‖v‖ ^ 2) := by + dsimp only [B] + rw [positiveTrace_add (rankOne_self_nonneg u) (rankOne_self_nonneg v), + positiveTrace_rankOne_self, positiveTrace_rankOne_self, + ENNReal.ofReal_add (sq_nonneg _) (sq_nonneg _)] + +theorem operatorTraceNorm_symmetricRankOne_le (u v : E) : + operatorTraceNorm (symmetricRankOne u v) ≤ ENNReal.ofReal (2 * (‖u‖ * ‖v‖)) := by + by_cases hu : u = 0 + · subst u + simp [symmetricRankOne, operatorTraceNorm, positiveTrace_zero] + by_cases hv : v = 0 + · subst v + simp [symmetricRankOne, operatorTraceNorm, positiveTrace_zero] + have hnu : 0 < ‖u‖ := norm_pos_iff.mpr hu + have hnv : 0 < ‖v‖ := norm_pos_iff.mpr hv + let u' := ‖u‖⁻¹ • u + let v' := ‖v‖⁻¹ • v + have hu' : ‖u'‖ = 1 := by simp [u', norm_smul, hnu.ne'] + have hv' : ‖v'‖ = 1 := by simp [v', norm_smul, hnv.ne'] + have heq : symmetricRankOne u v = (‖u‖ * ‖v‖) • symmetricRankOne u' v' := by + dsimp only [u', v'] + rw [symmetricRankOne_real_smul, smul_smul] + have hs : (‖u‖ * ‖v‖) * (‖u‖⁻¹ * ‖v‖⁻¹) = 1 := by + field_simp [hnu.ne', hnv.ne'] + rw [hs, one_smul] + rw [heq, operatorTraceNorm_real_smul, abs_of_nonneg (mul_nonneg hnu.le hnv.le)] + calc + ENNReal.ofReal (‖u‖ * ‖v‖) * operatorTraceNorm (symmetricRankOne u' v') ≤ + ENNReal.ofReal (‖u‖ * ‖v‖) * ENNReal.ofReal (‖u'‖ ^ 2 + ‖v'‖ ^ 2) := + _root_.mul_le_mul_right (operatorTraceNorm_symmetricRankOne_le_sq u' v') _ + _ = ENNReal.ofReal (2 * (‖u‖ * ‖v‖)) := by + rw [← ENNReal.ofReal_mul (mul_nonneg hnu.le hnv.le), hu', hv'] + congr 1 + ring + +theorem summable_symmetricRankOne {u v : ι → E} + (hs : Summable fun i => ‖u i‖ * ‖v i‖) : + Summable fun i => symmetricRankOne (u i) (v i) := + (hs.mul_left 2).of_norm_bounded fun _i => norm_symmetricRankOne_le _ _ + +theorem operatorTraceNorm_symmetricRankOne_tsum_le {u v : ι → E} + (hs : Summable fun i => ‖u i‖ * ‖v i‖) : + operatorTraceNorm (∑' i, symmetricRankOne (u i) (v i)) ≤ + ENNReal.ofReal (2 * ∑' i, ‖u i‖ * ‖v i‖) := by + have hsn : Summable fun i => ‖symmetricRankOne (u i) (v i)‖ := + Summable.of_nonneg_of_le (fun i => norm_nonneg _) (fun i => norm_symmetricRankOne_le _ _) + (hs.mul_left 2) + calc + operatorTraceNorm (∑' i, symmetricRankOne (u i) (v i)) ≤ + ∑' i, operatorTraceNorm (symmetricRankOne (u i) (v i)) := + operatorTraceNorm_tsum_le (fun i => symmetricRankOne_isCompactOperator _ _) + (fun i => symmetricRankOne_isSelfAdjoint _ _) hsn + _ ≤ ∑' i, ENNReal.ofReal (2 * (‖u i‖ * ‖v i‖)) := + tsum_le_tsum fun i => operatorTraceNorm_symmetricRankOne_le _ _ + _ = ENNReal.ofReal (2 * ∑' i, ‖u i‖ * ‖v i‖) := by + rw [← ENNReal.ofReal_tsum_of_nonneg (fun i => by positivity) (hs.mul_left 2), + tsum_mul_left] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SymplecticBlocks.lean b/LeanPool/VacuumBellSeparation/Gaussian/SymplecticBlocks.lean new file mode 100644 index 0000000000..0aa90dea9d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SymplecticBlocks.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WilliamsonOneMode + +/-! +# Actual finite-mode symplectic and covariance block matrices + +The phase-space indices are mode/quadrature pairs. The symplectic form is +literally `I ⊗ Ω₂`, with `Ω₂ = [[0,1],[-1,0]]`. Mode scalars are literal +diagonal matrices, and their positive square-root congruences are proved +entrywise. These are matrix identities, without a Williamson assumption. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped Kronecker + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Mode symplectic form. -/ +def modeSymplecticForm : Matrix (ι × Fin 2) (ι × Fin 2) ℝ := + (1 : Matrix ι ι ℝ) ⊗ₖ oneModeSymplecticForm + +/-- Mode diagonal given by `Matrix.diagonal (fun i => d i.1)`. -/ +def modeDiagonal (d : ι → ℝ) : Matrix (ι × Fin 2) (ι × Fin 2) ℝ := + Matrix.diagonal (fun i => d i.1) + +omit [Fintype ι] in +@[simp] theorem transpose_modeDiagonal (d : ι → ℝ) : + (modeDiagonal d)ᵀ = modeDiagonal d := Matrix.diagonal_transpose _ + +omit [Fintype ι] in +@[simp] theorem modeDiagonal_one : modeDiagonal (fun _ : ι => 1) = 1 := rfl + +@[simp] theorem modeDiagonal_mul (d e : ι → ℝ) : + modeDiagonal d * modeDiagonal e = modeDiagonal (fun i => d i * e i) := + Matrix.diagonal_mul_diagonal _ _ + +omit [Fintype ι] in +@[simp] theorem transpose_modeSymplecticForm : + (modeSymplecticForm (ι := ι))ᵀ = -modeSymplecticForm := by + ext ⟨i, a⟩ ⟨j, b⟩ + fin_cases a <;> fin_cases b <;> + simp [modeSymplecticForm, oneModeSymplecticForm, Matrix.one_apply, eq_comm] + +@[simp] theorem oneModeSymplecticForm_mul_self : + oneModeSymplecticForm * oneModeSymplecticForm = -1 := by + ext i j + fin_cases i <;> fin_cases j <;> + simp [oneModeSymplecticForm, Matrix.mul_apply, Fin.sum_univ_two] + +@[simp] theorem modeSymplecticForm_mul_self : + modeSymplecticForm (ι := ι) * modeSymplecticForm = -1 := by + rw [modeSymplecticForm, ← Matrix.mul_kronecker_mul, Matrix.one_mul, + oneModeSymplecticForm_mul_self] + ext ⟨i, a⟩ ⟨j, b⟩ + by_cases hij : i = j <;> by_cases hab : a = b <;> + simp [Prod.mk.injEq, hij, hab] + +theorem modeDiagonal_commute_symplectic (d : ι → ℝ) : + Commute (modeDiagonal d) modeSymplecticForm := by + change modeDiagonal d * modeSymplecticForm = modeSymplecticForm * modeDiagonal d + ext ⟨i, a⟩ ⟨j, b⟩ + simp only [modeDiagonal, Matrix.diagonal_mul, Matrix.mul_diagonal, + modeSymplecticForm, Matrix.kronecker_apply, Matrix.one_apply] + by_cases h : i = j + · subst j + simp [mul_comm] + · simp [h] + +/-- Positive mode square roots multiply the symplectic blocks by the mode +frequencies, with the source's positive `Ω₂` orientation. -/ +theorem modeSqrt_symplectic_congruence (d : ι → ℝ) (hd : ∀ i, 0 ≤ d i) : + modeDiagonal (fun i => Real.sqrt (d i)) * modeSymplecticForm * + modeDiagonal (fun i => Real.sqrt (d i)) = modeDiagonal d * modeSymplecticForm := by + let R := modeDiagonal (fun i => Real.sqrt (d i)) + have hcomm : Commute R modeSymplecticForm := modeDiagonal_commute_symplectic _ + calc + R * modeSymplecticForm * R = R * R * modeSymplecticForm := by + rw [mul_assoc, ← hcomm.eq, ← mul_assoc] + _ = modeDiagonal d * modeSymplecticForm := by + congr 1 + dsimp only [R] + rw [modeDiagonal_mul] + congr 1 + funext i + exact Real.mul_self_sqrt (hd i) + +/-- Reciprocal frequencies cancel the two positive square-root factors. -/ +theorem modeSqrt_reciprocal_congruence (d : ι → ℝ) (hd : ∀ i, 0 < d i) : + modeDiagonal (fun i => Real.sqrt (d i)) * modeDiagonal (fun i => (d i)⁻¹) * + modeDiagonal (fun i => Real.sqrt (d i)) = 1 := by + rw [modeDiagonal_mul, modeDiagonal_mul, ← modeDiagonal_one] + congr 1 + funext i + calc + Real.sqrt (d i) * (d i)⁻¹ * Real.sqrt (d i) = + (Real.sqrt (d i) * Real.sqrt (d i)) * (d i)⁻¹ := by ring + _ = 1 := by rw [Real.mul_self_sqrt (hd i).le, mul_inv_cancel₀ (hd i).ne'] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SymplecticHamiltonian.lean b/LeanPool/VacuumBellSeparation/Gaussian/SymplecticHamiltonian.lean new file mode 100644 index 0000000000..4638bcf5e6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SymplecticHamiltonian.lean @@ -0,0 +1,137 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveSquareRootDerivative +public import LeanPool.VacuumBellSeparation.Gaussian.HermitianTraceDerivative +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumWilliamson + +/-! +# The actual Hermitian matrix carrying the symplectic spectrum + +For a real skew form Ω and a positive covariance V, the matrix is +literally i sqrt(V) Ω sqrt(V). The square-root derivative proved by the +inverse function theorem gives its actual derivative. This module does not +identify the Gaussian purity with a function of its signed spectrum; that identification is +`log_positiveTrace_gaussianPhysical_rpow_eq_covariancePurityTrace` in +`Gaussian/SymplecticHamiltonianNormalForm.lean`. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator ComplexConjugate Topology RightActions + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Complexify matrix continuous linear map of type `Matrix ι ι ℝ →L[ℝ] Matrix ι ι ℂ`. -/ +def complexifyMatrixCLM : Matrix ι ι ℝ →L[ℝ] Matrix ι ι ℂ := + LinearMap.toContinuousLinearMap + { toFun := complexifyMatrix + map_add' := by intro A B; ext i j; simp [complexifyMatrix] + map_smul' := by intro c A; ext i j; simp [complexifyMatrix] } + +omit [DecidableEq ι] in +@[simp] theorem complexifyMatrixCLM_apply (A : Matrix ι ι ℝ) : + complexifyMatrixCLM A = complexifyMatrix A := rfl + +omit [DecidableEq ι] [Fintype ι] in +theorem complexifyMatrix_neg (A : Matrix ι ι ℝ) : + complexifyMatrix (-A) = -complexifyMatrix A := by + ext i j + simp [complexifyMatrix] + +omit [DecidableEq ι] [Fintype ι] in +theorem complexifyMatrix_add (A B : Matrix ι ι ℝ) : + complexifyMatrix (A + B) = complexifyMatrix A + complexifyMatrix B := by + ext i j + simp [complexifyMatrix] + +/-- Symplectic Hamiltonian given by `Complex.I • complexifyMatrix (CFC.sqrt V * Ω * CFC.sqrt V)`. -/ +def symplecticHamiltonian (Ω V : Matrix ι ι ℝ) : Matrix ι ι ℂ := + Complex.I • complexifyMatrix (CFC.sqrt V * Ω * CFC.sqrt V) + +theorem symplecticHamiltonian_isHermitian {Ω : Matrix ι ι ℝ} + (hΩ : Ωᵀ = -Ω) (V : Matrix ι ι ℝ) : + (symplecticHamiltonian Ω V).IsHermitian := by + have hR : (CFC.sqrt V)ᵀ = CFC.sqrt V := by + simpa only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial] using + (CFC.sqrt_nonneg V).isSelfAdjoint.star_eq + have hK : (CFC.sqrt V * Ω * CFC.sqrt V)ᵀ = -(CFC.sqrt V * Ω * CFC.sqrt V) := by + rw [Matrix.transpose_mul, Matrix.transpose_mul, hR, hΩ] + simp only [Matrix.neg_mul, Matrix.mul_neg] + congr 1 + noncomm_ring + change (symplecticHamiltonian Ω V)ᴴ = symplecticHamiltonian Ω V + rw [symplecticHamiltonian, Matrix.conjTranspose_smul, ← complexifyMatrix_transpose, + hK, complexifyMatrix_neg] + simp + +/-- Symmetric Hamiltonian represented by `symplecticHamiltonian Ω V`. -/ +def symmetricHamiltonian (Ω : Matrix ι ι ℝ) (hΩ : Ωᵀ = -Ω) + (V : RealSymmetricMatrixSpace ι) : HermitianMatrixSpace ι := + ⟨symplecticHamiltonian Ω V, symplecticHamiltonian_isHermitian hΩ V⟩ + +/-- Directional derivative of the symplectic Hamiltonian with respect to covariance. -/ +def symplecticHamiltonianDerivative (Ω : Matrix ι ι ℝ) + (V : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) : + RealSymmetricMatrixSpace ι →L[ℝ] Matrix ι ι ℂ := + let R := CFC.sqrt (V : Matrix ι ι ℝ) + let D := (positiveSylvesterSelfAdjointContinuousEquiv (matrix_sqrt_posDef hV)).symm + LinearMap.toContinuousLinearMap + { toFun := fun X => Complex.I • complexifyMatrix + (((D X : RealSymmetricMatrixSpace ι) : Matrix ι ι ℝ) * Ω * R + + R * Ω * ((D X : RealSymmetricMatrixSpace ι) : Matrix ι ι ℝ)) + map_add' := by + intro X Y + simp only [map_add, Submodule.coe_add, Matrix.add_mul, Matrix.mul_add, + complexifyMatrix_add, smul_add] + exact add_add_add_comm _ _ _ _ + map_smul' := by + intro c X + simp only [map_smul, Submodule.coe_smul, Matrix.smul_mul, Matrix.mul_smul, + ← smul_add, ← complexifyMatrixCLM_apply, map_smul] + exact smul_comm Complex.I c _ } + +@[simp] theorem symplecticHamiltonianDerivative_apply (Ω : Matrix ι ι ℝ) + (V X : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) : + symplecticHamiltonianDerivative Ω V hV X = Complex.I • complexifyMatrix + ((((positiveSylvesterSelfAdjointContinuousEquiv (matrix_sqrt_posDef hV)).symm X : + RealSymmetricMatrixSpace ι) : Matrix ι ι ℝ) * Ω * CFC.sqrt (V : Matrix ι ι ℝ) + + CFC.sqrt (V : Matrix ι ι ℝ) * Ω * + (((positiveSylvesterSelfAdjointContinuousEquiv (matrix_sqrt_posDef hV)).symm X : + RealSymmetricMatrixSpace ι) : Matrix ι ι ℝ)) := rfl + +theorem hasFDerivAt_symplecticHamiltonian (Ω : Matrix ι ι ℝ) + (V : RealSymmetricMatrixSpace ι) (hV : (V : Matrix ι ι ℝ).PosDef) : + HasFDerivAt (fun X : RealSymmetricMatrixSpace ι => symplecticHamiltonian Ω X) + (symplecticHamiltonianDerivative Ω V hV) V := by + let e : RealSymmetricMatrixSpace ι →L[ℝ] Matrix ι ι ℝ := + (selfAdjoint.submodule ℝ (Matrix ι ι ℝ)).subtypeL + have hs := e.hasFDerivAt.comp V (hasFDerivAt_symmetricMatrixSqrt V hV) + have hp := (hs.mul_const' Ω).mul' hs + have hc := (complexifyMatrixCLM (ι := ι)).hasFDerivAt.comp V hp + have hi := hc.const_smul Complex.I + convert hi using 1 + · rfl + · apply ContinuousLinearMap.ext + intro X + let R := CFC.sqrt (V : Matrix ι ι ℝ) + let D := (positiveSylvesterSelfAdjointContinuousEquiv (matrix_sqrt_posDef hV)).symm + change Complex.I • complexifyMatrix + (((D X : RealSymmetricMatrixSpace ι) : Matrix ι ι ℝ) * Ω * R + + R * Ω * ((D X : RealSymmetricMatrixSpace ι) : Matrix ι ι ℝ)) = + Complex.I • complexifyMatrix + (R * Ω * ((D X : RealSymmetricMatrixSpace ι) : Matrix ι ι ℝ) + + ((D X : RealSymmetricMatrixSpace ι) : Matrix ι ι ℝ) * Ω * R) + rw [add_comm] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SymplecticHamiltonianNormalForm.lean b/LeanPool/VacuumBellSeparation/Gaussian/SymplecticHamiltonianNormalForm.lean new file mode 100644 index 0000000000..36b1c98b2f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SymplecticHamiltonianNormalForm.lean @@ -0,0 +1,198 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ModeHamiltonianAbsoluteValue +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianPurityTrace + +/-! +# The actual Williamson value identity for Gaussian spectral purity + +The real matrix V^(-1/2) S D^(1/2) is genuinely orthogonal. It conjugates +the literal Hermitian Hamiltonian i sqrt(V) Ω sqrt(V) to iDΩ. Its absolute +value and actual even CFC trace therefore give the Williamson mode sums. +The resulting purity functional equals the logarithm of the actual +Gaussian density power trace; no eigenbranch differentiability is assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {m : ℕ} + +theorem canonical_symplectic_right_inverse + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) : + S * (-modeSymplecticForm * Sᵀ * modeSymplecticForm) = 1 := by + calc + _ = -(S * modeSymplecticForm * Sᵀ) * modeSymplecticForm := by noncomm_ring + _ = 1 := by rw [hS, Matrix.neg_mul, modeSymplecticForm_mul_self, neg_neg] + +theorem canonical_symplectic_isUnit + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) : IsUnit S := + IsUnit.of_mul_eq_one _ (canonical_symplectic_right_inverse S hS) + +theorem canonical_symplectic_transpose_congruence + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) : + Sᵀ * modeSymplecticForm * S = modeSymplecticForm := by + have hTS : (-modeSymplecticForm * Sᵀ * modeSymplecticForm) * S = 1 := + mul_eq_one_comm.mpr (canonical_symplectic_right_inverse S hS) + calc + _ = (-(modeSymplecticForm * modeSymplecticForm)) * + (Sᵀ * modeSymplecticForm * S) := by + rw [modeSymplecticForm_mul_self, neg_neg, Matrix.one_mul] + _ = modeSymplecticForm * ((-modeSymplecticForm * Sᵀ * modeSymplecticForm) * S) := by + noncomm_ring + _ = _ := by rw [hTS, Matrix.mul_one] + +theorem canonical_williamson_covariance_posDef + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 0 < ν j) : + (S * modeDiagonal ν * Sᵀ).PosDef := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (modeDiagonal_posDef hν).mul_mul_conjTranspose_same + (Matrix.vecMul_injective_of_isUnit (canonical_symplectic_isUnit S hS)) + +/-- Williamson Hamiltonian unitary. -/ +def williamsonHamiltonianUnitary + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (ν : Fin m → ℝ) (hν : ∀ j, 0 < ν j) + (hW : (S * modeDiagonal ν * Sᵀ).PosDef) : + unitary (Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ) := + orthogonalComplexUnitary (relativeCongruenceOrthogonal S (modeDiagonal ν)) + (relativeCongruenceOrthogonal_transpose_mul S (modeDiagonal_posDef hν) hW) + +theorem williamsonHamiltonian_real_normal_form + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 0 < ν j) + (hW : (S * modeDiagonal ν * Sᵀ).PosDef) : + (relativeCongruenceOrthogonal S (modeDiagonal ν))ᵀ * + (CFC.sqrt (S * modeDiagonal ν * Sᵀ) * modeSymplecticForm * + CFC.sqrt (S * modeDiagonal ν * Sᵀ)) * + relativeCongruenceOrthogonal S (modeDiagonal ν) = + modeDiagonal ν * modeSymplecticForm := by + let R := CFC.sqrt (modeDiagonal ν) + let Q := CFC.sqrt (S * modeDiagonal ν * Sᵀ) + have hR := matrix_sqrt_posDef (modeDiagonal_posDef hν) + have hQ := matrix_sqrt_posDef hW + have hRt : Rᵀ = R := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hR.isHermitian.eq + have hQit : (Q⁻¹)ᵀ = Q⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hQ.inv.isHermitian.eq + have hQdet : IsUnit Q.det := (Matrix.isUnit_iff_isUnit_det Q).mp hQ.isUnit + have hQiQ : Q⁻¹ * Q = 1 := Q.nonsing_inv_mul hQdet + have hQQi : Q * Q⁻¹ = 1 := Q.mul_nonsing_inv hQdet + change (Q⁻¹ * S * R)ᵀ * (Q * modeSymplecticForm * Q) * (Q⁻¹ * S * R) = _ + simp only [Matrix.transpose_mul, hRt, hQit] + calc + _ = R * Sᵀ * (Q⁻¹ * Q) * modeSymplecticForm * (Q * Q⁻¹) * S * R := by + noncomm_ring + _ = R * (Sᵀ * modeSymplecticForm * S) * R := by + rw [hQiQ, hQQi, Matrix.mul_one, Matrix.mul_one] + noncomm_ring + _ = R * modeSymplecticForm * R := by rw [canonical_symplectic_transpose_congruence S hS] + _ = _ := by + dsimp only [R] + rw [modeDiagonal_sqrt (fun j => (hν j).le)] + exact modeSqrt_symplectic_congruence ν (fun j => (hν j).le) + +theorem williamsonHamiltonian_unitary_normal_form + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 0 < ν j) + (hW : (S * modeDiagonal ν * Sᵀ).PosDef) : + ((williamsonHamiltonianUnitary S ν hν hW : Matrix _ _ ℂ))ᴴ * + symplecticHamiltonian modeSymplecticForm (S * modeDiagonal ν * Sᵀ) * + (williamsonHamiltonianUnitary S ν hν hW : Matrix _ _ ℂ) = modeHamiltonian ν := by + change (complexifyMatrix (relativeCongruenceOrthogonal S (modeDiagonal ν)))ᴴ * _ * + complexifyMatrix (relativeCongruenceOrthogonal S (modeDiagonal ν)) = _ + rw [symplecticHamiltonian, Matrix.mul_smul, Matrix.smul_mul, + ← complexifyMatrix_transpose, ← complexifyMatrix_mul, ← complexifyMatrix_mul, + williamsonHamiltonian_real_normal_form S hS hν hW] + rfl + +theorem symplecticHamiltonian_eq_williamson_conjugate + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 0 < ν j) + (hW : (S * modeDiagonal ν * Sᵀ).PosDef) : + symplecticHamiltonian modeSymplecticForm (S * modeDiagonal ν * Sᵀ) = + (williamsonHamiltonianUnitary S ν hν hW : Matrix _ _ ℂ) * modeHamiltonian ν * + (williamsonHamiltonianUnitary S ν hν hW : Matrix _ _ ℂ)ᴴ := by + let U := williamsonHamiltonianUnitary S ν hν hW + let H := symplecticHamiltonian modeSymplecticForm (S * modeDiagonal ν * Sᵀ) + have hn : (U : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ)ᴴ * H * (U : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℂ) = modeHamiltonian ν := + williamsonHamiltonian_unitary_normal_form S hS hν hW + have hUU : (U : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ) * (U : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℂ)ᴴ = 1 := by + simpa only [Unitary.coe_star, Matrix.star_eq_conjTranspose] using + Unitary.coe_mul_star_self U + calc + H = ((U : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ) * (U : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℂ)ᴴ) * H * + ((U : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ) * (U : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℂ)ᴴ) := by + rw [hUU, Matrix.one_mul, Matrix.mul_one] + _ = (U : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ) * ((U : Matrix (Fin m × Fin 2) + (Fin m × Fin 2) ℂ)ᴴ * H * (U : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ)) * (U : Matrix + (Fin m × Fin 2) (Fin m × Fin 2) ℂ)ᴴ := by + noncomm_ring + _ = _ := by rw [hn] + +theorem real_trace_even_symplecticHamiltonian_williamson + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 0 < ν j) (f : ℝ → ℝ) : + (cfc (fun x : ℝ => f |x|) + (symplecticHamiltonian modeSymplecticForm (S * modeDiagonal ν * Sᵀ))).trace.re = + 2 * ∑ j, f (ν j) := by + rw [symplecticHamiltonian_eq_williamson_conjugate S hS hν + (canonical_williamson_covariance_posDef S hS hν), + real_trace_cfc_unitary_conjugate _ (modeHamiltonian_isHermitian (fun j => (hν j).le))] + exact real_trace_even_modeHamiltonian (fun j => (hν j).le) f + +/-- Covariance purity trace. -/ +def covariancePurityTrace (r : ℝ) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : ℝ := + -(1 / 2) * (cfc (fun x : ℝ => logPurityFactor r |x|) + (symplecticHamiltonian modeSymplecticForm V)).trace.re + +theorem covariancePurityTrace_williamson + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 0 < ν j) (r : ℝ) : + covariancePurityTrace r (S * modeDiagonal ν * Sᵀ) = -∑ j, logPurityFactor r (ν j) := by + rw [covariancePurityTrace, real_trace_even_symplecticHamiltonian_williamson S hS hν] + ring + +/-- Identification with the logarithm of the actual infinite-dimensional +Gaussian density power trace, not a formal covariance partition value. -/ +theorem log_positiveTrace_gaussianPhysical_rpow_eq_covariancePurityTrace + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} + (hA : IsPositiveTraceClass A) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {ν : Fin m → ℝ} (hν : ∀ j, 1 / 2 ≤ ν j) + (hG : HasGaussianPhysicalCharacteristic A (S * modeDiagonal ν * Sᵀ)) + {r : ℝ} (hr : 0 < r) : + Real.log (positiveTrace (A ^ r)).toReal = + covariancePurityTrace r (S * modeDiagonal ν * Sᵀ) := by + rw [log_positiveTrace_gaussianPhysical_rpow hA S hS hν hG hr, + covariancePurityTrace_williamson S hS (fun j => by linarith [hν j])] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SymplecticPurityCongruence.lean b/LeanPool/VacuumBellSeparation/Gaussian/SymplecticPurityCongruence.lean new file mode 100644 index 0000000000..a53f9c0352 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SymplecticPurityCongruence.lean @@ -0,0 +1,156 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ModePurityDifferential + +/-! +# Actual purity invariance under fixed symplectic congruence + +The positive-root normalized congruence is an actual orthogonal matrix. +It conjugates the actual Hermitian Hamiltonians for V and S V Sᵀ, so all +even spectral traces, in particular the actual Gaussian purity value, +are invariant. The congruence also acts as a genuine continuous linear +map on the real symmetric subspace. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix Filter +open scoped MatrixOrder Matrix.Norms.L2Operator Topology + +variable {m : ℕ} + +/-- Symmetric congruence continuous linear map of type `RealSymmetricMatrixSpace (Fin m × Fin 2) +→L[ℝ] RealSymmetricMatrixSpace (Fin m × Fin 2)`. -/ +def symmetricCongruenceCLM + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + RealSymmetricMatrixSpace (Fin m × Fin 2) →L[ℝ] + RealSymmetricMatrixSpace (Fin m × Fin 2) := + LinearMap.toContinuousLinearMap + { toFun := fun X => ⟨S * (X : Matrix _ _ ℝ) * Sᵀ, by + change IsSelfAdjoint (S * (X : Matrix _ _ ℝ) * Sᵀ) + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + (Matrix.isHermitian_mul_mul_conjTranspose S + (realSymmetricMatrix_isHermitian X)).isSelfAdjoint⟩ + map_add' := by intro X Y; apply Subtype.ext; simp [Matrix.mul_add, Matrix.add_mul] + map_smul' := by intro c X; apply Subtype.ext; simp [] } + +@[simp] theorem symmetricCongruenceCLM_apply + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (X : RealSymmetricMatrixSpace (Fin m × Fin 2)) : + ((symmetricCongruenceCLM S X : RealSymmetricMatrixSpace (Fin m × Fin 2)) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) = S * (X : Matrix _ _ ℝ) * Sᵀ := rfl + +theorem canonical_symplectic_congruence_posDef + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.PosDef) : + (S * V * Sᵀ).PosDef := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using + hV.mul_mul_conjTranspose_same + (Matrix.vecMul_injective_of_isUnit (canonical_symplectic_isUnit S hS)) + +/-- Symplectic Hamiltonian congruence unitary. -/ +def symplecticHamiltonianCongruenceUnitary + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.PosDef) : + unitary (Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ) := + orthogonalComplexUnitary (relativeCongruenceOrthogonal S V) + (relativeCongruenceOrthogonal_transpose_mul S hV + (canonical_symplectic_congruence_posDef S hS hV)) + +theorem symplecticHamiltonian_real_congruence + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.PosDef) : + (relativeCongruenceOrthogonal S V)ᵀ * + (CFC.sqrt (S * V * Sᵀ) * modeSymplecticForm * CFC.sqrt (S * V * Sᵀ)) * + relativeCongruenceOrthogonal S V = CFC.sqrt V * modeSymplecticForm * CFC.sqrt V := by + let R := CFC.sqrt V + let Q := CFC.sqrt (S * V * Sᵀ) + have hR := matrix_sqrt_posDef hV + have hQ := matrix_sqrt_posDef (canonical_symplectic_congruence_posDef S hS hV) + have hRt : Rᵀ = R := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hR.isHermitian.eq + have hQit : (Q⁻¹)ᵀ = Q⁻¹ := by + simpa only [Matrix.conjTranspose_eq_transpose_of_trivial] using hQ.inv.isHermitian.eq + have hQdet : IsUnit Q.det := (Matrix.isUnit_iff_isUnit_det Q).mp hQ.isUnit + have hQiQ : Q⁻¹ * Q = 1 := Q.nonsing_inv_mul hQdet + have hQQi : Q * Q⁻¹ = 1 := Q.mul_nonsing_inv hQdet + change (Q⁻¹ * S * R)ᵀ * (Q * modeSymplecticForm * Q) * (Q⁻¹ * S * R) = _ + simp only [Matrix.transpose_mul, hRt, hQit] + calc + _ = R * Sᵀ * (Q⁻¹ * Q) * modeSymplecticForm * (Q * Q⁻¹) * S * R := by noncomm_ring + _ = R * (Sᵀ * modeSymplecticForm * S) * R := by + rw [hQiQ, hQQi, Matrix.mul_one, Matrix.mul_one] + noncomm_ring + _ = _ := by rw [canonical_symplectic_transpose_congruence S hS] + +theorem symplecticHamiltonian_congruence + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.PosDef) : + symplecticHamiltonian modeSymplecticForm (S * V * Sᵀ) = + (symplecticHamiltonianCongruenceUnitary S hS hV : Matrix _ _ ℂ) * + symplecticHamiltonian modeSymplecticForm V * + (symplecticHamiltonianCongruenceUnitary S hS hV : Matrix _ _ ℂ)ᴴ := by + let U := symplecticHamiltonianCongruenceUnitary S hS hV + let H := symplecticHamiltonian modeSymplecticForm (S * V * Sᵀ) + have hn : (U : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ)ᴴ * H * + (U : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ) = + symplecticHamiltonian modeSymplecticForm V := by + change (complexifyMatrix (relativeCongruenceOrthogonal S V))ᴴ * _ * + complexifyMatrix (relativeCongruenceOrthogonal S V) = _ + dsimp only [H] + rw [symplecticHamiltonian, Matrix.mul_smul, Matrix.smul_mul, + ← complexifyMatrix_transpose, ← complexifyMatrix_mul, ← complexifyMatrix_mul, + symplecticHamiltonian_real_congruence S hS hV] + rfl + have hUU : (U : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ) * + (U : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ)ᴴ = 1 := by + simpa only [Unitary.coe_star, Matrix.star_eq_conjTranspose] using + Unitary.coe_mul_star_self U + calc + H = ((U : Matrix _ _ ℂ) * (U : Matrix _ _ ℂ)ᴴ) * H * + ((U : Matrix _ _ ℂ) * (U : Matrix _ _ ℂ)ᴴ) := by + rw [hUU, Matrix.one_mul, Matrix.mul_one] + _ = (U : Matrix _ _ ℂ) * ((U : Matrix _ _ ℂ)ᴴ * H * + (U : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℂ)) * (U : Matrix _ _ ℂ)ᴴ := by + noncomm_ring + _ = _ := by rw [hn] + +theorem covariancePurityTrace_symplectic_congruence (r : ℝ) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} (hV : V.PosDef) : + covariancePurityTrace r (S * V * Sᵀ) = covariancePurityTrace r V := by + rw [covariancePurityTrace, symplecticHamiltonian_congruence S hS hV, + real_trace_cfc_unitary_conjugate _ + (symplecticHamiltonian_isHermitian transpose_modeSymplecticForm V)] + rfl + +theorem covariancePurityTrace_symplectic_congruence_eventually (r : ℝ) + (S : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + (hS : S * modeSymplecticForm * Sᵀ = modeSymplecticForm) + (V : RealSymmetricMatrixSpace (Fin m × Fin 2)) + (hV : (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ).PosDef) : + ∀ᶠ X : RealSymmetricMatrixSpace (Fin m × Fin 2) in 𝓝 V, + covariancePurityTrace r + (symmetricCongruenceCLM S X : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) = + covariancePurityTrace r (X : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) := by + filter_upwards [eventually_posDef_at_positive_symmetric V hV] with X hX + change covariancePurityTrace r (S * (X : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) * Sᵀ) = + covariancePurityTrace r (X : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) + exact covariancePurityTrace_symplectic_congruence r S hS hX + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/SymplecticWeylImplementer.lean b/LeanPool/VacuumBellSeparation/Gaussian/SymplecticWeylImplementer.lean new file mode 100644 index 0000000000..85ddaa7f39 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/SymplecticWeylImplementer.lean @@ -0,0 +1,231 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WeylGaussianProjection + +/-! +# Constructed unitary implementation of finite real symplectic relabelings + +Preservation of the actual imaginary inner form implies bijectivity in +finite dimension. The Gaussian projection supplies a concrete normalized +vacuum. Its relabeled Weyl orbit has the actual coherent kernel and dense +span. The RKHS quotient and completion therefore construct a surjective +complex linear isometry, and its coherent action proves the Weyl +intertwining identity. No CCR uniqueness or implementer is a premise. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ComplexConjugate + +variable {m : ℕ} + +theorem PreservesWeylForm.injective + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + Function.Injective T := by + have hker (x : MultiModePhaseSpace m) (hx : T x = 0) : x = 0 := by + have hi := hT x (Complex.I • x) + rw [hx, inner_zero_left, Complex.zero_im, inner_smul_right, + inner_self_eq_norm_sq_to_K] at hi + have hn : ‖x‖ ^ 2 = 0 := by + simpa only [RCLike.ofReal_eq_complex_ofReal, ← Complex.ofReal_pow, Complex.mul_im, + Complex.I_re, Complex.I_im, + Complex.ofReal_re, Complex.ofReal_im, zero_mul, one_mul, zero_add] using hi.symm + exact norm_eq_zero.mp (eq_zero_of_pow_eq_zero hn) + intro x y hxy + apply sub_eq_zero.mp + apply hker + rw [map_sub, hxy, sub_self] + +theorem PreservesWeylForm.surjective + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + Function.Surjective T := + LinearMap.injective_iff_surjective.mp hT.injective + +/-- Relabeled coherent vector obtained from `multiOscillatorWeyl`. -/ +def relabeledCoherentVector + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) (z : MultiModePhaseSpace m) : + MultiModeOscillatorSpace m := multiOscillatorWeyl (T z) (relabeledGaussianVacuum T) + +theorem weylPhase_vacuumWeight_eq_kernel (z w : MultiModePhaseSpace m) : + weylPhase (id : MultiModePhaseSpace m → MultiModePhaseSpace m) (-z) w * + phaseSpaceVacuumWeight (-z + w) = + weylKernel (id : MultiModePhaseSpace m → MultiModePhaseSpace m) z w := by + simp only [weylPhase, phaseSpaceVacuumWeight, weylKernel, id_eq, + ← Complex.exp_add, norm_add_sq (𝕜 := ℂ), norm_neg, inner_neg_left] + congr 1 + apply Complex.ext <;> + simp only [Complex.add_re, Complex.add_im, + Complex.neg_re, Complex.neg_im, Complex.mul_re, Complex.mul_im, + Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, + RCLike.re_to_complex, map_neg] <;> ring + +theorem inner_relabeledCoherentVector + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) + (z w : MultiModePhaseSpace m) : + inner ℂ (relabeledCoherentVector T z) (relabeledCoherentVector T w) = + weylKernel (id : MultiModePhaseSpace m → MultiModePhaseSpace m) z w := by + rw [relabeledCoherentVector, relabeledCoherentVector, + ← adjoint_inner_right, multiOscillatorWeyl_adjoint, ← map_neg, + ← mul_apply_eq_comp, multiOscillatorWeyl_mul, weylPhase_relabel hT, + ← map_add, smul_apply, inner_smul_right, + relabeledGaussianVacuum_characteristic hT, weylPhase_vacuumWeight_eq_kernel] + +theorem relabeledCoherentVector_dense_span + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + (Submodule.span ℂ (Set.range (relabeledCoherentVector T))).topologicalClosure = ⊤ := by + have hv : relabeledGaussianVacuum T ≠ 0 := by + intro h + have hn := norm_relabeledGaussianVacuum T + rw [h, norm_zero] at hn + exact zero_ne_one hn + have hr : Set.range (relabeledCoherentVector T) = + Set.range (fun z : MultiModePhaseSpace m => multiOscillatorWeyl z + (relabeledGaussianVacuum T)) := by + ext y + constructor + · rintro ⟨z, rfl⟩ + exact ⟨T z, rfl⟩ + · rintro ⟨z, rfl⟩ + obtain ⟨w, hw⟩ := hT.surjective z + exact ⟨w, by simp only [relabeledCoherentVector, hw]⟩ + rw [hr] + exact multiOscillatorWeyl_orbit_dense_span hv + +/-- Linear map for the symplectic coherent realization₀, of type `MultiModePhaseSpace m → +MultiModePhaseSpace m)) →ₗ[ℂ] MultiModeOscillatorSpace m`. -/ +def symplecticCoherentRealization₀ + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : + RKHS.H₀ (weylRKHSKernel (id : MultiModePhaseSpace m → MultiModePhaseSpace m)) →ₗ[ℂ] + MultiModeOscillatorSpace m := + Finsupp.linearCombination ℂ + (fun p : MultiModePhaseSpace m × ℂ => p.2 • relabeledCoherentVector T p.1) + +@[simp] theorem symplecticCoherentRealization₀_single + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) + (z : MultiModePhaseSpace m) (v a : ℂ) : + symplecticCoherentRealization₀ T (Finsupp.single (z, v) a) = + a • (v • relabeledCoherentVector T z) := by simp [symplecticCoherentRealization₀] + +theorem inner_symplecticCoherentRealization₀ + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) + (f g : RKHS.H₀ (weylRKHSKernel (id : MultiModePhaseSpace m → MultiModePhaseSpace m))) : + inner ℂ (symplecticCoherentRealization₀ T f) (symplecticCoherentRealization₀ T g) = + inner ℂ f g := by + induction f using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_left] + | add f₁ f₂ h₁ h₂ => simp only [map_add, inner_add_left, h₁, h₂] + | single p a => + induction g using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_right] + | add g₁ g₂ h₁ h₂ => simp only [map_add, inner_add_right, h₁, h₂] + | single q b => + obtain ⟨z, v⟩ := p + obtain ⟨w, u⟩ := q + rw [symplecticCoherentRealization₀_single, symplecticCoherentRealization₀_single, + inner_H₀_single] + simp only [inner_smul_left, inner_smul_right, inner_relabeledCoherentVector hT] + ring + +/-- Linear isometry for the symplectic coherent realization iso₀, of type `MultiModePhaseSpace m → +MultiModePhaseSpace m)) →ₗᵢ[ℂ] MultiModeOscillatorSpace m`. -/ +def symplecticCoherentRealizationIso₀ + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + RKHS.H₀ (weylRKHSKernel (id : MultiModePhaseSpace m → MultiModePhaseSpace m)) →ₗᵢ[ℂ] + MultiModeOscillatorSpace m := + (symplecticCoherentRealization₀ T).isometryOfInner (inner_symplecticCoherentRealization₀ hT) + +/-- Linear isometry for the symplectic coherent realization, of type `MultiModePhaseSpace m → +MultiModePhaseSpace m) →ₗᵢ[ℂ] MultiModeOscillatorSpace m`. -/ +def symplecticCoherentRealization + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + WeylSpace (id : MultiModePhaseSpace m → MultiModePhaseSpace m) →ₗᵢ[ℂ] + MultiModeOscillatorSpace m := (symplecticCoherentRealizationIso₀ hT).fromCompletion + +theorem symplecticCoherentRealization_weylVec + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) + (z : MultiModePhaseSpace m) : + symplecticCoherentRealization hT (weylVec (id : MultiModePhaseSpace m + → MultiModePhaseSpace m) z) = + relabeledCoherentVector T z := by + rw [weylVec_def, symplecticCoherentRealization, LinearIsometry.fromCompletion_apply_coe] + change symplecticCoherentRealization₀ T (Finsupp.single (z, 1) 1) = relabeledCoherentVector T z + simp + +theorem symplecticCoherentRealization_surjective + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + Function.Surjective (symplecticCoherentRealization hT) := by + have hclosed : IsClosed (Set.range (symplecticCoherentRealization hT)) := + (symplecticCoherentRealization hT).isometry.isClosedEmbedding.isClosed_range + have hspan : Submodule.span ℂ (Set.range (relabeledCoherentVector T)) ≤ + (symplecticCoherentRealization hT).toLinearMap.range := by + apply Submodule.span_le.mpr + rintro _ ⟨z, rfl⟩ + exact ⟨weylVec (id : MultiModePhaseSpace m → MultiModePhaseSpace m) z, + symplecticCoherentRealization_weylVec hT z⟩ + have hclosure := (Submodule.span ℂ (Set.range (relabeledCoherentVector + T))).topologicalClosure_minimal + hspan hclosed + rw [relabeledCoherentVector_dense_span hT] at hclosure + exact LinearMap.range_eq_top.mp (top_unique hclosure) + +/-- A constructed unitary implementing an arbitrary finite real +symplectic label map. Its phase is fixed by the normalized projected vacuum. -/ +def symplecticWeylImplementer + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + MultiModeOscillatorSpace m ≃ₗᵢ[ℂ] MultiModeOscillatorSpace m := + (multiWeylCoherentEquiv m).symm.trans + (LinearIsometryEquiv.ofSurjective (symplecticCoherentRealization hT) + (symplecticCoherentRealization_surjective hT)) + +theorem symplecticWeylImplementer_coherent + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) + (z : MultiModePhaseSpace m) : + symplecticWeylImplementer hT (multiCoherentVector z) = relabeledCoherentVector T z := by + rw [← multiWeylCoherentEquiv_weylVec z] + change symplecticCoherentRealization hT + ((multiWeylCoherentEquiv m).symm + (multiWeylCoherentEquiv m (weylVec (id : MultiModePhaseSpace m + → MultiModePhaseSpace m) z))) = _ + rw [LinearIsometryEquiv.symm_apply_apply, symplecticCoherentRealization_weylVec] + +theorem symplecticWeylImplementer_weyl_apply + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) + (z : MultiModePhaseSpace m) (x : MultiModeOscillatorSpace m) : + symplecticWeylImplementer hT (multiOscillatorWeyl z x) = + multiOscillatorWeyl (T z) (symplecticWeylImplementer hT x) := by + let U := (symplecticWeylImplementer hT).toLinearIsometry.toContinuousLinearMap + have he : U.comp (multiOscillatorWeyl z) = (multiOscillatorWeyl (T z)).comp U := by + apply continuousLinearMap_eq_of_dense_span (multiCoherentVector (m := m)) + (multiCoherentVector_dense_span m) + intro w + change symplecticWeylImplementer hT (multiOscillatorWeyl z (multiCoherentVector w)) = + multiOscillatorWeyl (T z) (symplecticWeylImplementer hT (multiCoherentVector w)) + rw [multiOscillatorWeyl_coherentVector, map_smul, symplecticWeylImplementer_coherent, + symplecticWeylImplementer_coherent, relabeledCoherentVector, relabeledCoherentVector, + ← mul_apply_eq_comp, multiOscillatorWeyl_mul, weylPhase_relabel hT, + ← map_add, smul_apply] + exact congrArg (fun A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m => A x) he + +/-- The actual conjugation identity on the fixed full oscillator Hilbert +space, with no implementer supplied as an assumption. -/ +theorem symplecticWeylImplementer_conj_weyl + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) + (z : MultiModePhaseSpace m) : + (symplecticWeylImplementer hT).conjStarAlgEquiv (multiOscillatorWeyl z) = + multiOscillatorWeyl (T z) := by + ext x + rw [LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, + symplecticWeylImplementer_weyl_apply, LinearIsometryEquiv.apply_symm_apply] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalCharacteristic.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCharacteristic.lean new file mode 100644 index 0000000000..8b57d51f30 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCharacteristic.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCoherentTrace +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCoherentAction +public import LeanPool.VacuumBellSeparation.Gaussian.WeylCoherentKernel +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexGaussianPhase + +/-! +# The actual one-mode thermal Weyl characteristic + +This theorem concerns the constructed bounded state and the actual Weyl +unitary on oscillator ℓ². Its proof uses the absolutely justified coherent +trace integral, the actual square-root action, and the complex-plane +Gaussian Fourier integral. The pure endpoint is included. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap MeasureTheory +open scoped ComplexConjugate + +theorem thermalWeyl_coherent_integrand {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) + (z w : ℂ) : + (Real.pi : ℂ)⁻¹ * inner ℂ (CFC.sqrt (thermalDensity q) (coherentVector w)) + (oscillatorWeyl z (CFC.sqrt (thermalDensity q) (coherentVector w))) = + (((1 - q) / Real.pi : ℝ) : ℂ) * Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) * + Complex.exp (((-(1 - q) * ‖w‖ ^ 2 : ℝ) : ℂ) + + 2 * Complex.I * (Real.sqrt q : ℂ) * ((conj w * z).im : ℂ)) := by + let s : ℝ := Real.sqrt (1 - q) * Real.exp (-(1 - q) * ‖w‖ ^ 2 / 2) + have hs : s * s = (1 - q) * Real.exp (-(1 - q) * ‖w‖ ^ 2) := by + dsimp [s] + rw [mul_mul_mul_comm, Real.mul_self_sqrt (sub_nonneg.mpr hq₁.le), ← Real.exp_add] + congr 2 + ring + have hphase : (conj ((Real.sqrt q : ℂ) * w) * z).im = + Real.sqrt q * (conj w * z).im := by + rw [map_mul, Complex.conj_ofReal] + simp only [Complex.mul_im, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im] + ring + rw [sqrt_thermalDensity_apply_coherentVector hq₀ hq₁, + map_smul, inner_smul_left, inner_smul_right, oscillatorWeyl_coherent_diagonal] + change (Real.pi : ℂ)⁻¹ * (conj (s : ℂ) * ((s : ℂ) * + Complex.exp (((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) + + 2 * Complex.I * ((conj ((Real.sqrt q : ℂ) * w) * z).im : ℂ)))) = _ + rw [Complex.conj_ofReal, hphase, Complex.ofReal_mul (Real.sqrt q) (conj w * z).im] + calc + _ = (Real.pi : ℂ)⁻¹ * ((s * s : ℝ) : ℂ) * + Complex.exp (((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) + + 2 * Complex.I * (Real.sqrt q : ℂ) * ((conj w * z).im : ℂ)) := by + rw [Complex.ofReal_mul s s] + ring_nf + _ = _ := by + rw [hs, Complex.ofReal_mul, Complex.ofReal_exp, + Complex.exp_add, Complex.exp_add, Complex.ofReal_div] + ring + +theorem integrable_thermalWeyl_coherent_integrand {q : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (z : ℂ) : + Integrable (fun w : ℂ => (Real.pi : ℂ)⁻¹ * + inner ℂ (CFC.sqrt (thermalDensity q) (coherentVector w)) + (oscillatorWeyl z (CFC.sqrt (thermalDensity q) (coherentVector w)))) := by + simp_rw [thermalWeyl_coherent_integrand hq₀ hq₁] + exact (integrable_complex_gaussian_phase (sub_pos.mpr hq₁) (Real.sqrt q) z).const_mul _ + +/-- The genuine characteristic function has the thermal covariance +coefficient `(1+q)/(2(1-q))`, with pure value `1/2` at `q=0`. -/ +theorem thermalState_oscillatorWeyl {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) (z : ℂ) : + thermalState hq₀ hq₁ (oscillatorWeyl z) = + Complex.exp (((-((1 + q) / (2 * (1 - q))) * ‖z‖ ^ 2 : ℝ) : ℂ)) := by + rw [thermalState_eq_coherent_integral hq₀ hq₁] + simp_rw [thermalWeyl_coherent_integrand hq₀ hq₁] + rw [integral_const_mul, integral_complex_gaussian_phase (sub_pos.mpr hq₁), + Real.sq_sqrt hq₀] + have hcoeff : (((1 - q) / Real.pi : ℝ) : ℂ) * ((Real.pi / (1 - q) : ℝ) : ℂ) = 1 := by + rw [← Complex.ofReal_mul] + have h : (1 - q) / Real.pi * (Real.pi / (1 - q)) = 1 := by + field_simp [ne_of_gt Real.pi_pos, ne_of_gt (sub_pos.mpr hq₁)] + rw [h, Complex.ofReal_one] + calc + _ = (Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) * + Complex.exp (((-q * ‖z‖ ^ 2 / (1 - q) : ℝ) : ℂ))) := by + calc + _ = ((((1 - q) / Real.pi : ℝ) : ℂ) * ((Real.pi / (1 - q) : ℝ) : ℂ)) * + (Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) * + Complex.exp (((-q * ‖z‖ ^ 2 / (1 - q) : ℝ) : ℂ))) := by ring + _ = _ := by rw [hcoeff, one_mul] + _ = _ := by + rw [← Complex.exp_add, ← Complex.ofReal_add] + congr 1 + congr 1 + field_simp [ne_of_gt (sub_pos.mpr hq₁)] + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalCoherentAction.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCoherentAction.lean new file mode 100644 index 0000000000..88b6ec64a1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCoherentAction.lean @@ -0,0 +1,60 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCoherentPowers + +/-! +# Actual normalized coherent action of thermal powers + +The coefficient is derived from the actual CFC action on exponential +vectors and the coherent normalization. In particular no formal inverse +or diagonalization assumption occurs in the square-root action. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +theorem thermalDensity_rpow_apply_coherentVector {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) (z : ℂ) : + (thermalDensity q ^ τ) (coherentVector z) = + ((((1 - q) ^ τ : ℝ) : ℂ) * + Complex.exp ((((q ^ τ) ^ 2 - 1) * ‖z‖ ^ 2 / 2 : ℝ) : ℂ)) • + coherentVector ((q ^ τ : ℝ) * z) := by + have hq : 0 ≤ q ^ τ := Real.rpow_nonneg hq₀ _ + have hn : ‖((q ^ τ : ℝ) : ℂ) * z‖ ^ 2 = (q ^ τ) ^ 2 * ‖z‖ ^ 2 := by + rw [norm_mul, Complex.norm_of_nonneg hq, mul_pow] + rw [coherentVector, map_smul, + thermalDensity_rpow_apply_exponentialVector hq₀ hq₁ hτ, + RCLike.real_smul_eq_coe_smul (K := ℂ), coherentVector, smul_smul, smul_smul, hn] + simp only [RCLike.ofReal_eq_complex_ofReal] + congr 1 + calc + _ = (((1 - q) ^ τ : ℝ) : ℂ) * Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) := + mul_comm _ _ + _ = _ := by + rw [mul_assoc, ← Complex.exp_add] + congr 2 + push_cast + ring + +theorem sqrt_thermalDensity_apply_coherentVector {q : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (z : ℂ) : + CFC.sqrt (thermalDensity q) (coherentVector z) = + (((Real.sqrt (1 - q) * Real.exp (-(1 - q) * ‖z‖ ^ 2 / 2) : ℝ) : ℂ)) • + coherentVector ((Real.sqrt q : ℝ) * z) := by + rw [CFC.sqrt_eq_rpow, + thermalDensity_rpow_apply_coherentVector hq₀ hq₁ (by norm_num), + ← Real.sqrt_eq_rpow, ← Real.sqrt_eq_rpow, Real.sq_sqrt hq₀] + congr 1 + rw [Complex.ofReal_mul, Complex.ofReal_exp] + congr 2 + push_cast + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalCoherentPowers.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCoherentPowers.lean new file mode 100644 index 0000000000..adf9bebfdc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCoherentPowers.lean @@ -0,0 +1,90 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowers +public import LeanPool.VacuumBellSeparation.Gaussian.WeylCoherentRepresentation + +/-! +# Coherent kernels of actual thermal operator powers + +The number-basis eigenvector theorem for the genuine CFC power implies +its action on every exponential vector and hence the normalized coherent +kernel. All formulas include the pure endpoint `q=0` at positive exponent. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ComplexConjugate + +theorem thermalDensity_rpow_apply_coordinate {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) (x : OscillatorSpace) (n : ℕ) : + (thermalDensity q ^ τ) x n = (thermalWeight q n ^ τ : ℝ) * x n := by + have hA : IsSelfAdjoint (thermalDensity q ^ τ) := CFC.rpow_nonneg.isSelfAdjoint + have h := ((thermalDensity q ^ τ).adjoint_inner_left x (numberBasis n)).symm + simpa only [hA.adjoint_eq, thermalDensity_rpow_apply_numberBasis hq₀ hq₁ hτ, + inner_smul_left_eq_smul, Algebra.smul_def, Complex.coe_algebraMap, numberBasis_inner] using h + +theorem thermalDensity_rpow_apply_exponentialVector {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) (z : ℂ) : + (thermalDensity q ^ τ) (exponentialVector z) = + ((1 - q) ^ τ : ℝ) • exponentialVector ((q ^ τ : ℝ) * z) := by + apply lp.ext + funext n + rw [thermalDensity_rpow_apply_coordinate hq₀ hq₁ hτ, + thermalWeight_rpow hq₀ hq₁] + change (((1 - q) ^ τ * (q ^ τ) ^ n : ℝ) : ℂ) * coherentCoefficient z n = + ((1 - q) ^ τ : ℝ) • coherentCoefficient ((q ^ τ : ℝ) * z) n + simp only [coherentCoefficient, Complex.ofReal_mul, Complex.ofReal_pow, + RCLike.real_smul_eq_coe_mul, RCLike.ofReal_eq_complex_ofReal, mul_pow, div_eq_mul_inv] + simp only [mul_assoc, mul_left_comm, mul_comm] + +theorem thermalDensity_rpow_exponential_kernel {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) (z w : ℂ) : + inner ℂ (exponentialVector z) ((thermalDensity q ^ τ) (exponentialVector w)) = + ((1 - q) ^ τ : ℝ) * Complex.exp ((q ^ τ : ℝ) * (conj z * w)) := by + rw [thermalDensity_rpow_apply_exponentialVector hq₀ hq₁ hτ w, + inner_smul_right_eq_smul, inner_exponentialVector z ((q ^ τ : ℝ) * w), + RCLike.real_smul_eq_coe_mul] + congr 2 + ring + +theorem thermalDensity_rpow_coherent_kernel {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) (z w : ℂ) : + inner ℂ (coherentVector z) ((thermalDensity q ^ τ) (coherentVector w)) = + ((1 - q) ^ τ : ℝ) * Complex.exp + (((-(‖z‖ ^ 2 / 2) - ‖w‖ ^ 2 / 2 : ℝ) : ℂ) + + (q ^ τ : ℝ) * (conj z * w)) := by + dsimp only [coherentVector] + rw [map_smul, inner_smul_left, inner_smul_right, + thermalDensity_rpow_exponential_kernel hq₀ hq₁ hτ, + ← Complex.exp_conj, Complex.conj_ofReal] + calc + _ = ((1 - q) ^ τ : ℝ) * + (Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) * + Complex.exp ((-(‖w‖ ^ 2 / 2) : ℝ) : ℂ) * + Complex.exp ((q ^ τ : ℝ) * (conj z * w))) := by ring + _ = _ := by + rw [← Complex.exp_add, ← Complex.exp_add] + congr 2 + push_cast + ring + +theorem thermalDensity_rpow_coherent_diagonal {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) (z : ℂ) : + inner ℂ (coherentVector z) ((thermalDensity q ^ τ) (coherentVector z)) = + (((1 - q) ^ τ * Real.exp (-(1 - q ^ τ) * ‖z‖ ^ 2) : ℝ) : ℂ) := by + rw [thermalDensity_rpow_coherent_kernel hq₀ hq₁ hτ, Complex.conj_mul', + Complex.ofReal_mul, Complex.ofReal_exp] + congr 2 + push_cast + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalCoherentTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCoherentTrace.lean new file mode 100644 index 0000000000..2f51b4dce5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCoherentTrace.lean @@ -0,0 +1,115 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentTraceSeries +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalState + +/-! +# Actual coherent integral for the complex thermal expectation + +The square root of the thermal density has summable basis norms. This +gives the absolute integral bound needed to exchange the number-basis +series and the coherent integral. Parseval then identifies the pointwise +series with the genuine square-root sandwich. The input operator can be +any bounded complex operator, including a Weyl unitary. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap MeasureTheory +open scoped ComplexConjugate + +theorem hasSum_coherentFrame_sandwich + {S : OscillatorSpace →L[ℂ] OscillatorSpace} (hS : IsSelfAdjoint S) + (A : OscillatorSpace →L[ℂ] OscillatorSpace) (z : ℂ) : + HasSum (fun n => inner ℂ (coherentFrameCoordinate (S (numberBasis n)) z) + (coherentFrameCoordinate (S (A (numberBasis n))) z)) + ((Real.pi : ℂ)⁻¹ * inner ℂ (S (coherentVector z)) (A (S (coherentVector z)))) := by + let c : ℂ := (Real.sqrt Real.pi : ℂ)⁻¹ + let v := coherentVector z + have hc : conj c * c = (Real.pi : ℂ)⁻¹ := by + change conj ((Real.sqrt Real.pi : ℂ)⁻¹) * (Real.sqrt Real.pi : ℂ)⁻¹ = + (Real.pi : ℂ)⁻¹ + rw [map_inv₀, Complex.conj_ofReal, ← mul_inv, ← pow_two, + ← Complex.ofReal_pow, Real.sq_sqrt Real.pi_pos.le] + have hleft (n : ℕ) : coherentFrameCoordinate (S (numberBasis n)) z = + c * inner ℂ (S v) (numberBasis n) := by + rw [coherentFrameCoordinate, ← S.adjoint_inner_left, hS.adjoint_eq] + have hright (n : ℕ) : coherentFrameCoordinate (S (A (numberBasis n))) z = + c * inner ℂ (A.adjoint (S v)) (numberBasis n) := by + rw [coherentFrameCoordinate, ← S.adjoint_inner_left, hS.adjoint_eq, + ← A.adjoint_inner_left] + have hterm (n : ℕ) : inner ℂ (coherentFrameCoordinate (S (numberBasis n)) z) + (coherentFrameCoordinate (S (A (numberBasis n))) z) = + (conj c * c) * (inner ℂ (A.adjoint (S v)) (numberBasis n) * + inner ℂ (numberBasis n) (S v)) := by + rw [hleft, hright, RCLike.inner_apply', map_mul, inner_conj_symm] + ring + have h := (numberBasis.hasSum_inner_mul_inner (A.adjoint (S v)) (S v)).mul_left + (conj c * c) + have hval : (conj c * c) * inner ℂ (A.adjoint (S v)) (S v) = + (Real.pi : ℂ)⁻¹ * inner ℂ (S v) (A (S v)) := by + rw [hc, A.adjoint_inner_left] + simpa only [← hterm, hval] using h + +theorem summable_sqrt_thermal_basis_norm {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) : + Summable fun n => ‖CFC.sqrt (thermalDensity q) (numberBasis n)‖ := by + have hn (n : ℕ) : ‖CFC.sqrt (thermalDensity q) (numberBasis n)‖ = + Real.sqrt (thermalWeight q n) := by + calc + _ = ‖Real.sqrt (thermalWeight q n) • numberBasis n‖ := + congrArg norm (sqrt_diagonalOperator_apply_basis numberBasis + (hasSum_thermalWeight hq₀ hq₁).summable + (fun k => mul_nonneg (sub_nonneg.mpr hq₁.le) (pow_nonneg hq₀ k)) n) + _ = _ := by + rw [norm_smul, numberBasis.orthonormal.norm_eq_one, mul_one, Real.norm_eq_abs, + abs_of_nonneg (Real.sqrt_nonneg _)] + simpa only [hn, Real.sqrt_eq_rpow] using + (hasSum_thermalWeight_rpow hq₀ hq₁ (by norm_num : (0 : ℝ) < 1 / 2)).summable + +theorem thermalState_eq_coherent_integral {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) + (A : OscillatorSpace →L[ℂ] OscillatorSpace) : + thermalState hq₀ hq₁ A = ∫ z : ℂ, (Real.pi : ℂ)⁻¹ * + inner ℂ (CFC.sqrt (thermalDensity q) (coherentVector z)) + (A (CFC.sqrt (thermalDensity q) (coherentVector z))) := by + let S := CFC.sqrt (thermalDensity q) + have hS : IsSelfAdjoint S := (CFC.sqrt_nonneg _).isSelfAdjoint + have hnorm (n : ℕ) : ‖S (A (numberBasis n))‖ ≤ ‖S‖ * ‖A‖ := by + calc + ‖S (A (numberBasis n))‖ ≤ ‖S‖ * ‖A (numberBasis n)‖ := S.le_opNorm _ + _ ≤ ‖S‖ * (‖A‖ * ‖numberBasis n‖) := + mul_le_mul_of_nonneg_left (A.le_opNorm _) (norm_nonneg _) + _ = ‖S‖ * ‖A‖ := by rw [numberBasis.orthonormal.norm_eq_one, mul_one] + have hs : Summable fun n => ‖S (numberBasis n)‖ * ‖S (A (numberBasis n))‖ := + Summable.of_nonneg_of_le (fun n => mul_nonneg (norm_nonneg _) (norm_nonneg _)) + (fun n => mul_le_mul_of_nonneg_left (hnorm n) (norm_nonneg _)) + ((summable_sqrt_thermal_basis_norm hq₀ hq₁).mul_right (‖S‖ * ‖A‖)) + have hseries := hasSum_integral_inner_coherentFrameCoordinate hs + have hcoef (n : ℕ) : inner ℂ (S (numberBasis n)) (S (A (numberBasis n))) = + (thermalWeight q n : ℂ) * inner ℂ (numberBasis n) (A (numberBasis n)) := by + rw [← S.adjoint_inner_left, hS.adjoint_eq, ← mul_apply_eq_comp, ← pow_two] + change inner ℂ ((CFC.sqrt (thermalDensity q) ^ 2) (numberBasis n)) + (A (numberBasis n)) = _ + rw [CFC.sq_sqrt _ (thermalDensity_nonneg hq₀ hq₁), + thermalDensity_apply_numberBasis hq₀ hq₁, + inner_smul_left_eq_smul, Algebra.smul_def, Complex.coe_algebraMap] + have hexpect := (summable_diagonalExpectation_terms numberBasis + (hasSum_thermalWeight hq₀ hq₁).summable A).hasSum + simp_rw [hcoef] at hseries + calc + thermalState hq₀ hq₁ A = ∫ z : ℂ, ∑' n, + inner ℂ (coherentFrameCoordinate (S (numberBasis n)) z) + (coherentFrameCoordinate (S (A (numberBasis n))) z) := hexpect.unique hseries + _ = _ := by + apply integral_congr_ae + filter_upwards with z + exact (hasSum_coherentFrame_sandwich hS A z).tsum_eq + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalCompression.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCompression.lean new file mode 100644 index 0000000000..a3e5a26a16 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCompression.lean @@ -0,0 +1,142 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalFunctionalCalculus +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Continuity + +/-! +# High thermal compression at singular endpoints + +The strict thermal compression theorem is extended to contractions by +`t T`, with `0 thermalIncrement b |x|) (Set.Icc (-1 : ℝ) 1) := by + apply (continuousOn_thermalIncrement hb).comp continuous_abs.continuousOn + intro x hx + exact ⟨abs_nonneg x, abs_le.mpr hx⟩ + +omit [CompleteSpace F] in +theorem norm_smul_lt_one {T : F →L[ℂ] F} (hT : ‖T‖ ≤ 1) + {t : ℝ} (ht : t ∈ Set.Ioo (0 : ℝ) 1) : ‖t • T‖ < 1 := by + rw [norm_smul, Real.norm_eq_abs, abs_of_pos ht.1] + exact (mul_le_mul_of_nonneg_left hT ht.1.le).trans_lt (by simpa using ht.2) + +theorem tendsto_thermal_cfc_smul {b : ℝ} (hb : 0 < b) + {T : F →L[ℂ] F} (hT : IsSelfAdjoint T) (hnorm : ‖T‖ ≤ 1) : + Tendsto (fun t : ℝ => cfc (fun x : ℝ => thermalIncrement b |x|) (t • T)) + (𝓝[<] (1 : ℝ)) (𝓝 (cfc (fun x : ℝ => thermalIncrement b |x|) T)) := by + have hspec : spectrum ℝ T ⊆ Set.Icc (-1 : ℝ) 1 := + fun _ hx => spectrum_mem_Icc_of_norm_le_one hnorm hx + have hc := continuousOn_cfc (F →L[ℂ] F) isCompact_Icc + (fun x : ℝ => thermalIncrement b |x|) (continuousOn_thermalIncrement_abs hb) + have hlim : Tendsto (fun t : ℝ => t • T) (𝓝[<] (1 : ℝ)) (𝓝 T) := by + have hcont : Continuous (fun t : ℝ => t • T) := continuous_id.smul continuous_const + simpa using (hcont.tendsto (1 : ℝ)).mono_left nhdsWithin_le_nhds + apply (hc T ⟨hT, hspec⟩).tendsto.comp + apply tendsto_nhdsWithin_iff.mpr + refine ⟨hlim, ?_⟩ + filter_upwards [Ioo_mem_nhdsLT (show (0 : ℝ) < 1 by norm_num)] with t ht + exact ⟨(show IsSelfAdjoint t by cfc_tac).smul hT, + fun _ hx => spectrum_mem_Icc_of_norm_le_one (norm_smul_lt_one hnorm ht).le hx⟩ + +theorem continuous_compression (ι : E →ₗᵢ[ℂ] F) : + Continuous (compression ι) := by + change Continuous (fun A : F →L[ℂ] F => + (ι.toContinuousLinearMap.adjoint.comp A).comp ι.toContinuousLinearMap) + exact ((continuous_const : Continuous (fun _ : F →L[ℂ] F => + ι.toContinuousLinearMap.adjoint)).clm_comp continuous_id).clm_comp continuous_const + +/-- The first high-compression inequality of Lemma 4.4 for every +self-adjoint contraction, including spectra meeting `-1`, `0` or `1`. +The integer in the manuscript is `r=n+2`. -/ +theorem high_compression (ι : E →ₗᵢ[ℂ] F) {T : F →L[ℂ] F} + (hT : IsSelfAdjoint T) (hnorm : ‖T‖ ≤ 1) (n : ℕ) : + compression ι (cfc (fun x : ℝ => thermalIncrement + (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) |x|) T) ≤ + cfc (fun x : ℝ => thermalIncrement + (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) |x|) (compression ι T) := by + let b : ℝ := ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) + have hb : 0 < b := by dsimp [b]; positivity + have hleft := (continuous_compression ι).continuousAt.tendsto.comp + (tendsto_thermal_cfc_smul hb hT hnorm) + have hright := tendsto_thermal_cfc_smul hb (compression_isSelfAdjoint ι hT) + ((norm_compression_le ι T).trans hnorm) + apply le_of_tendsto_of_tendsto hleft hright + filter_upwards [Ioo_mem_nhdsLT (show (0 : ℝ) < 1 by norm_num)] with t ht + dsimp only [Function.comp_def, b] + simpa only [compression_real_smul] using high_compression_of_norm_lt_one ι + ((show IsSelfAdjoint t by cfc_tac).smul hT) (norm_smul_lt_one hnorm ht) n + +/-- Lemma 4.3 in signed commutation coordinates: the thermal function is +evaluated at the absolute spectral value while the reserve is `sqrt(1-T²)`. +This reuses the established scalar comparison, including its endpoints. -/ +theorem thermal_comparison_signed {b : ℝ} (hb0 : 0 < b) (hb1 : b < 1) + {T : F →L[ℂ] F} (hT : IsSelfAdjoint T) (hnorm : ‖T‖ ≤ 1) : + thermalConst b • (reserve T) ^ (2 * b) ≤ + cfc (fun x : ℝ => thermalIncrement b |x|) T := by + have hspec : spectrum ℝ T ⊆ Set.Icc (-1 : ℝ) 1 := + fun _ hx => spectrum_mem_Icc_of_norm_le_one hnorm hx + have hsq : ∀ x ∈ spectrum ℝ T, x ^ 2 ≤ 1 := by + intro x hx + have h := hspec hx + nlinarith [h.1, h.2] + have hR : Continuous (fun x : ℝ => (1 - x ^ 2) ^ b) := + (continuous_const.sub (continuous_pow 2)).rpow_const (fun _ => Or.inr hb0.le) + change thermalConst b • CFC.sqrt (1 - T ^ 2) ^ (2 * b) ≤ _ + rw [sqrt_one_sub_sq_rpow hb0.le (one_sub_sq_nonneg hT hsq), + one_sub_sq_rpow_eq_cfc hb0.le hT hsq, + ← cfc_const_mul (thermalConst b) (fun x : ℝ => (1 - x ^ 2) ^ b) T hR.continuousOn] + apply cfc_mono _ (continuous_const.mul hR).continuousOn + ((continuousOn_thermalIncrement_abs hb0).mono hspec) + intro x hx + change thermalConst b * (1 - x ^ 2) ^ b ≤ thermalIncrement b |x| + simpa only [sq_abs] using thermalIncrement_ge hb0 hb1 + (show |x| ∈ Set.Icc (0 : ℝ) 1 from ⟨abs_nonneg x, abs_le.mpr (hspec hx)⟩) + +/-- Both inequalities in the source's high-compression chain, on actual +self-adjoint contractions and actual thermal/reserve functional calculus. +The remaining physical-model bridge identifies `T` with `i J/2`. -/ +theorem high_compression_chain (ι : E →ₗᵢ[ℂ] F) {T : F →L[ℂ] F} + (hT : IsSelfAdjoint T) (hnorm : ‖T‖ ≤ 1) (n : ℕ) : + let b : ℝ := ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) + thermalConst b • compression ι ((reserve T) ^ (2 * b)) ≤ + compression ι (cfc (fun x : ℝ => thermalIncrement b |x|) T) ∧ + compression ι (cfc (fun x : ℝ => thermalIncrement b |x|) T) ≤ + cfc (fun x : ℝ => thermalIncrement b |x|) (compression ι T) := by + dsimp only + have hb0 : (0 : ℝ) < ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) := by positivity + have hb1 : ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) < 1 := by + apply (div_lt_one (by positivity)).mpr + exact_mod_cast (show n + 1 < n + 2 by omega) + refine ⟨?_, high_compression ι hT hnorm n⟩ + simpa only [compression_real_smul] using + compression_mono ι (thermal_comparison_signed hb0 hb1 hT hnorm) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalCovarianceBridge.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCovarianceBridge.lean new file mode 100644 index 0000000000..05d3292d24 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCovarianceBridge.lean @@ -0,0 +1,82 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowerNormalization +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalOperator + +/-! +# Canonical density powers and the manuscript's thermal increment + +The actual normalized density power has parameter `q^τ`. This file relates +its proved quadrature covariance to the existing manuscript scalar +function `thermalIncrement`, at `d=1/(2v)`. The pure endpoint `q=0,d=1` +is retained. General finite-dimensional Gaussian transport is separate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +/-- Thermal commutation magnitude given by `(1 - q) / (1 + q)`. -/ +noncomputable def thermalCommutationMagnitude (q : ℝ) : ℝ := (1 - q) / (1 + q) + +theorem thermalCommutationMagnitude_pos {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) : + 0 < thermalCommutationMagnitude q := + div_pos (sub_pos.mpr hq₁) (by linarith) + +theorem thermalCommutationMagnitude_le_one {q : ℝ} (hq₀ : 0 ≤ q) : + thermalCommutationMagnitude q ≤ 1 := by + unfold thermalCommutationMagnitude + rw [div_le_one (by linarith : 0 < 1 + q)] + linarith + +theorem thermalCommutationMagnitude_eq_inv_twice_variance {q : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) : + thermalCommutationMagnitude q = (2 * thermalQuadratureVariance q)⁻¹ := by + unfold thermalCommutationMagnitude thermalQuadratureVariance + field_simp [ne_of_gt (sub_pos.mpr hq₁), ne_of_gt (show 0 < 1 + q by linarith)] + +/-- The manuscript's thermal increment `H_τ(I) = d coth(τ artanh d) - I`, as the scalar function +`thermalIncrement τ d`, is exactly the relative change of the covariance under the proved +normalized actual density power. -/ +theorem thermalIncrement_eq_relative_covariance {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + thermalIncrement τ (thermalCommutationMagnitude q) = + thermalQuadratureVariance (q ^ τ) / thermalQuadratureVariance q - 1 := by + let d := thermalCommutationMagnitude q + have hd₀ : 0 < d := thermalCommutationMagnitude_pos hq₀ hq₁ + have hd₁ : d ≤ 1 := thermalCommutationMagnitude_le_one hq₀ + have hqd : 1 - d = q * (1 + d) := by + dsimp [d, thermalCommutationMagnitude] + field_simp [ne_of_gt (show 0 < 1 + q by linarith)] + ring + have hp : (1 - d) ^ τ = q ^ τ * (1 + d) ^ τ := by + rw [hqd, Real.mul_rpow hq₀ (by linarith : 0 ≤ 1 + d)] + have ha : (1 + d) ^ τ ≠ 0 := ne_of_gt (Real.rpow_pos_of_pos (by linarith) τ) + have hratio : ((1 + d) ^ τ + (1 - d) ^ τ) / + ((1 + d) ^ τ - (1 - d) ^ τ) = (1 + q ^ τ) / (1 - q ^ τ) := by + rw [hp] + calc + ((1 + d) ^ τ + q ^ τ * (1 + d) ^ τ) / + ((1 + d) ^ τ - q ^ τ * (1 + d) ^ τ) = + ((1 + q ^ τ) * (1 + d) ^ τ) / ((1 - q ^ τ) * (1 + d) ^ τ) := by ring + _ = _ := mul_div_mul_right _ _ ha + rw [thermalIncrement_eq_of_pos hτ hd₀ hd₁, hratio] + dsimp [d, thermalCommutationMagnitude, thermalQuadratureVariance] + have hqτ : 1 - q ^ τ ≠ 0 := ne_of_gt (sub_pos.mpr (Real.rpow_lt_one hq₀ hq₁ hτ)) + field_simp [ne_of_gt (sub_pos.mpr hq₁), ne_of_gt (show 0 < 1 + q by linarith), hqτ] + +theorem relative_thermal_covariance_comparison {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + thermalConst τ * (1 - thermalCommutationMagnitude q ^ 2) ^ τ ≤ + thermalQuadratureVariance (q ^ τ) / thermalQuadratureVariance q - 1 := by + rw [← thermalIncrement_eq_relative_covariance hq₀ hq₁ hτ₀] + exact thermalIncrement_ge hτ₀ hτ₁ + ⟨(thermalCommutationMagnitude_pos hq₀ hq₁).le, thermalCommutationMagnitude_le_one hq₀⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalCovarianceParameters.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCovarianceParameters.lean new file mode 100644 index 0000000000..bd5cc616c0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCovarianceParameters.lean @@ -0,0 +1,84 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.QuadratureNormalization +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeThermalDensity + +/-! +# Actual thermal densities from admissible mode covariances + +The scalar inverse of `v(q)=(1+q)/(2(1-q))` is defined explicitly. For every +mode variance at least `1/2`, it gives a genuine convergent thermal density +on the full multi-index oscillator space. Pure modes are retained; strict +variance inequalities imply injectivity, without a bounded inverse claim. +This constructs the product density, not its general symplectic transport. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +/-- Covariance thermal parameter given by `(2 * v - 1) / (2 * v + 1)`. -/ +noncomputable def covarianceThermalParameter (v : ℝ) : ℝ := (2 * v - 1) / (2 * v + 1) + +theorem covarianceThermalParameter_nonneg {v : ℝ} (hv : 1 / 2 ≤ v) : + 0 ≤ covarianceThermalParameter v := by + unfold covarianceThermalParameter + apply div_nonneg <;> linarith + +theorem covarianceThermalParameter_lt_one {v : ℝ} (hv : 1 / 2 ≤ v) : + covarianceThermalParameter v < 1 := by + unfold covarianceThermalParameter + rw [div_lt_one (by linarith : 0 < 2 * v + 1)] + linarith + +theorem covarianceThermalParameter_pos {v : ℝ} (hv : 1 / 2 < v) : + 0 < covarianceThermalParameter v := by + unfold covarianceThermalParameter + apply div_pos <;> linarith + +theorem covarianceThermalParameter_half : covarianceThermalParameter (1 / 2) = 0 := by + norm_num [covarianceThermalParameter] + +theorem thermalQuadratureVariance_covarianceParameter {v : ℝ} (hv : 1 / 2 ≤ v) : + thermalQuadratureVariance (covarianceThermalParameter v) = v := by + have hd : 2 * v + 1 ≠ 0 := by linarith + have hq : 1 - covarianceThermalParameter v ≠ 0 := + ne_of_gt (sub_pos.mpr (covarianceThermalParameter_lt_one hv)) + unfold thermalQuadratureVariance + apply (div_eq_iff (mul_ne_zero (by norm_num) hq)).mpr + unfold covarianceThermalParameter + field_simp [hd] + ring + +theorem covarianceThermalParameter_variance {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) : + covarianceThermalParameter (thermalQuadratureVariance q) = q := + thermalQuadratureVariance_parameter hq₀ hq₁ + +/-- Continuous linear map for the covariance product density, of type `MultiModeOscillatorSpace m +→L[ℂ] MultiModeOscillatorSpace m`. -/ +noncomputable def covarianceProductDensity {m : ℕ} (ν : Fin m → ℝ) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + multiModeThermalDensity (fun i => covarianceThermalParameter (ν i)) + +theorem covarianceProductDensity_nonneg {m : ℕ} {ν : Fin m → ℝ} + (hν : ∀ i, 1 / 2 ≤ ν i) : 0 ≤ covarianceProductDensity ν := + multiModeThermalDensity_nonneg (fun i => covarianceThermalParameter_nonneg (hν i)) + (fun i => covarianceThermalParameter_lt_one (hν i)) + +theorem positiveTrace_covarianceProductDensity {m : ℕ} {ν : Fin m → ℝ} + (hν : ∀ i, 1 / 2 ≤ ν i) : positiveTrace (covarianceProductDensity ν) = 1 := + positiveTrace_multiModeThermalDensity (fun i => covarianceThermalParameter_nonneg (hν i)) + (fun i => covarianceThermalParameter_lt_one (hν i)) + +theorem covarianceProductDensity_isFaithfulDensity {m : ℕ} {ν : Fin m → ℝ} + (hν : ∀ i, 1 / 2 < ν i) : IsFaithfulDensity (covarianceProductDensity ν) := + multiModeThermalDensity_isFaithfulDensity (fun i => covarianceThermalParameter_pos (hν i)) + (fun i => covarianceThermalParameter_lt_one (hν i).le) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalCovariancePerturbation.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCovariancePerturbation.lean new file mode 100644 index 0000000000..36b4f4dd7b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalCovariancePerturbation.lean @@ -0,0 +1,160 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPerturbationMultiplier + +/-! +# The manuscript's thermal covariance perturbation estimates + +The covariance is the actual Appendix A inverse sandwich expression. +Its value at the reference covariance is derived mode by mode. The two +norm estimates then follow from the genuine matrix resolvent estimates, +without a commutativity assumption on the input perturbation. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} +variable {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +/-- Thermal sandwich covariance. -/ +def thermalSandwichCovariance (q : Fin m → ℝ) (τ : ℝ) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + -thermalPowerCovariance q τ + thermalWoodburyFactor q τ * + (thermalPowerCovariance q τ - V)⁻¹ * thermalWoodburyFactor q τ + +/-- Thermal sandwich relative perturbation. -/ +def thermalSandwichRelativePerturbation (q : Fin m → ℝ) (τ : ℝ) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + relativeCovariancePerturbation (thermalPowerCovariance q (1 - τ)) + (thermalSandwichCovariance q τ V - thermalPowerCovariance q (1 - τ)) + +theorem gaussianRelativePerturbation_eq_relative : + gaussianRelativePerturbation q τ V = + relativeCovariancePerturbation (thermalReferenceGap q τ) + (V - thermalReferenceCovariance q) := rfl + +theorem thermalSandwichCovariance_reference + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + thermalSandwichCovariance q τ (thermalReferenceCovariance q) = + thermalPowerCovariance q (1 - τ) := by + have hH (j : Fin m) : 0 < thermalQuadratureVariance (q j ^ τ) - + thermalQuadratureVariance (q j) := + sub_pos.mpr ((thermalQuadratureVariance_lt_iff (hq₁ j) + (Real.rpow_lt_one (hq₀ j).le (hq₁ j) hτ₀)).mpr + (thermal_parameter_lt_rpow (hq₀ j) (hq₁ j) hτ₁)) + have hgap : thermalPowerCovariance q τ - thermalReferenceCovariance q = + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ) - + thermalQuadratureVariance (q j)) := Matrix.diagonal_sub _ _ + have hL (j : Fin m) : + (q j ^ (-(τ / 2)) * (q j ^ (-τ) - 1)⁻¹) ^ 2 = + thermalQuadratureVariance (q j ^ τ) ^ 2 - 1 / 4 := by + have h := thermal_scalar_dilation_threshold (hq₀ j) (hq₁ j) hτ₀ + have hi := thermal_scalar_excess_inverse (hq₀ j) (hq₁ j) hτ₀ + calc + _ = (q j ^ (-(τ / 2)) * (q j ^ (-τ) - 1)⁻¹ * q j ^ (-(τ / 2))) * + (q j ^ (-τ) - 1)⁻¹ := by ring + _ = _ := by rw [h, hi]; ring + rw [thermalSandwichCovariance, hgap, modeDiagonal_inv (fun j => (hH j).ne'), + thermalWoodburyFactor, modeDiagonal_mul, modeDiagonal_mul] + simp only [thermalPowerCovariance, modeDiagonal, Matrix.diagonal_neg, Matrix.diagonal_add] + congr 1 + funext i + have h := thermal_reference_scalar_identity (hq₀ i.1) (hq₁ i.1) hτ₀ hτ₁ + have he : + (q i.1 ^ (-(τ / 2)) * (q i.1 ^ (-τ) - 1)⁻¹) * + (thermalQuadratureVariance (q i.1 ^ τ) - thermalQuadratureVariance (q i.1))⁻¹ * + (q i.1 ^ (-(τ / 2)) * (q i.1 ^ (-τ) - 1)⁻¹) = + (thermalQuadratureVariance (q i.1 ^ τ) ^ 2 - 1 / 4) / + (thermalQuadratureVariance (q i.1 ^ τ) - thermalQuadratureVariance (q i.1)) := by + rw [← hL i.1] + ring + rw [he] + linarith + +theorem thermalSandwichCovariance_sub_reference + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + thermalSandwichCovariance q τ V - thermalPowerCovariance q (1 - τ) = + inverseSandwichPerturbation (thermalReferenceGap q τ) (thermalWoodburyFactor q τ) + (V - thermalReferenceCovariance q) := by + rw [← thermalSandwichCovariance_reference hq₀ hq₁ hτ₀ hτ₁, + thermalSandwichCovariance, thermalSandwichCovariance, inverseSandwichPerturbation] + have hg : thermalReferenceGap q τ - (V - thermalReferenceCovariance q) = + thermalPowerCovariance q τ - V := by + unfold thermalReferenceGap thermalPowerCovariance + abel + rw [hg] + change -thermalPowerCovariance q τ + _ - (-thermalPowerCovariance q τ + _) = _ + unfold thermalReferenceGap thermalPowerCovariance + abel + +theorem thermal_covariance_gap_posDef_of_relative_norm + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + (hV : V.IsHermitian) (hδ : ‖gaussianRelativePerturbation q τ V‖ < 1) : + (thermalPowerCovariance q τ - V).PosDef := by + have h₀ : (thermalReferenceCovariance q).IsHermitian := by + exact Matrix.isHermitian_diagonal _ + have h := covariance_gap_posDef_of_relative_norm + (thermalReferenceGap_posDef hq₀ hq₁ hτ₀ hτ₁) (hV.sub h₀) hδ + have hg : thermalReferenceGap q τ - (V - thermalReferenceCovariance q) = + thermalPowerCovariance q τ - V := by + unfold thermalReferenceGap thermalPowerCovariance + abel + rwa [hg] at h + +theorem norm_thermalSandwichRelativePerturbation_le + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + (hV : V.IsHermitian) (hδ : ‖gaussianRelativePerturbation q τ V‖ < 1) : + ‖thermalSandwichRelativePerturbation q τ V‖ ≤ thermalPerturbationConstant τ * + (‖gaussianRelativePerturbation q τ V‖ / (1 - ‖gaussianRelativePerturbation q τ V‖)) := by + have h₀ : (thermalReferenceCovariance q).IsHermitian := by + exact Matrix.isHermitian_diagonal _ + have h := norm_relative_inverseSandwichPerturbation_le + (thermalPowerCovariance_posDef (fun j => (hq₀ j).le) hq₁ (sub_pos.mpr hτ₁)) + (thermalReferenceGap_posDef hq₀ hq₁ hτ₀ hτ₁) + (thermalWoodburyFactor_posDef hq₀ hq₁ hτ₀).isHermitian (hV.sub h₀) hδ + rw [thermalSandwichRelativePerturbation, + thermalSandwichCovariance_sub_reference hq₀ hq₁ hτ₀ hτ₁] + exact h.trans (mul_le_mul_of_nonneg_right + (norm_sq_thermalPerturbationMultiplier_le hq₀ hq₁ hτ₀ hτ₁) + (div_nonneg (norm_nonneg _) (sub_pos.mpr hδ).le)) + +theorem matrixTraceNorm_thermalSandwichRelativePerturbation_le + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + (hV : V.IsHermitian) (hδ : ‖gaussianRelativePerturbation q τ V‖ < 1) : + matrixTraceNorm (thermalSandwichRelativePerturbation q τ V) ≤ + thermalPerturbationConstant τ / (1 - ‖gaussianRelativePerturbation q τ V‖) * + matrixTraceNorm (gaussianRelativePerturbation q τ V) := by + have h₀ : (thermalReferenceCovariance q).IsHermitian := by + exact Matrix.isHermitian_diagonal _ + have h := matrixTraceNorm_relative_inverseSandwichPerturbation_le + (thermalPowerCovariance_posDef (fun j => (hq₀ j).le) hq₁ (sub_pos.mpr hτ₁)) + (thermalReferenceGap_posDef hq₀ hq₁ hτ₀ hτ₁) + (thermalWoodburyFactor_posDef hq₀ hq₁ hτ₀).isHermitian (hV.sub h₀) hδ + rw [thermalSandwichRelativePerturbation, + thermalSandwichCovariance_sub_reference hq₀ hq₁ hτ₀ hτ₁] + calc + _ ≤ _ := h + _ ≤ thermalPerturbationConstant τ * + ((1 - ‖gaussianRelativePerturbation q τ V‖)⁻¹ * + matrixTraceNorm (gaussianRelativePerturbation q τ V)) := + mul_le_mul_of_nonneg_right + (norm_sq_thermalPerturbationMultiplier_le hq₀ hq₁ hτ₀ hτ₁) + (mul_nonneg (inv_nonneg.mpr (sub_pos.mpr hδ).le) (matrixTraceNorm_nonneg _)) + _ = _ := by ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalDensity.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalDensity.lean new file mode 100644 index 0000000000..38e74739a9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalDensity.lean @@ -0,0 +1,146 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTrace +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order +public import Mathlib.Topology.Algebra.InfiniteSum.ContinuousEval + +/-! +# The one-mode thermal density on the infinite-dimensional oscillator space + +The oscillator space is genuinely `ℓ²(ℕ, ℂ)`. The density is a norm-convergent +series of bounded rank-one operators, with eigenvalues `(1-q) q^k`. For +`0 < q < 1` it is positive, has trace one, and is injective. This construction +does not identify this basis model with a Schrödinger or Bargmann realization, +and does not assume that the density has a bounded inverse. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped lp + +open ContinuousLinearMap InnerProductSpace +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] + +/-- A diagonal operator specified by an absolutely summable real sequence. +The convergence hypothesis is required in the evaluation theorems. -/ +noncomputable def diagonalOperator (b : HilbertBasis ℕ ℂ E) (w : ℕ → ℝ) : + E →L[ℂ] E := ∑' k, w k • rankOne ℂ (b k) (b k) + +theorem summable_diagonalOperator_terms (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) : + Summable fun k => w k • rankOne ℂ (b k) (b k) := by + apply Summable.of_norm + simpa only [norm_smul, norm_rankOne, b.orthonormal.norm_eq_one, mul_one] using hw.norm + +theorem diagonalOperator_nonneg (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : ∀ k, 0 ≤ w k) : 0 ≤ diagonalOperator b w := by + apply tsum_nonneg + intro k + exact smul_nonneg (hw k) + (ContinuousLinearMap.nonneg_iff_isPositive.mpr (isPositive_rankOne_self (b k))) + +theorem diagonalOperator_apply_basis (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) (k : ℕ) : + diagonalOperator b w (b k) = w k • b k := by + rw [diagonalOperator, tsum_apply (summable_diagonalOperator_terms b hw)] + rw [tsum_eq_single k] + · simp [rankOne_apply, inner_self_eq_norm_sq_to_K, b.orthonormal.norm_eq_one] + · intro j hj + simp [rankOne_apply, b.orthonormal.inner_eq_zero hj] + +theorem diagonalOperator_inner (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) (hw₀ : ∀ k, 0 ≤ w k) (x : E) (k : ℕ) : + inner ℂ (b k) (diagonalOperator b w x) = + (w k : ℂ) * inner ℂ (b k) x := by + have hA := (diagonalOperator_nonneg b hw₀).isSelfAdjoint + simpa only [hA.adjoint_eq, diagonalOperator_apply_basis b hw, + inner_smul_left_eq_smul, Algebra.smul_def, RCLike.algebraMap_eq_ofReal, + RCLike.ofReal_eq_complex_ofReal] using + ((diagonalOperator b w).adjoint_inner_left x (b k)).symm + +theorem diagonalOperator_injective (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) (hwpos : ∀ k, 0 < w k) : + Function.Injective (diagonalOperator b w) := by + intro x y hxy + apply b.repr.injective + ext k + rw [b.repr_apply_apply, b.repr_apply_apply] + have h := congrArg (fun z => inner ℂ (b k) z) hxy + rw [diagonalOperator_inner b hw (fun k => (hwpos k).le), + diagonalOperator_inner b hw (fun k => (hwpos k).le)] at h + exact mul_left_cancel₀ (Complex.ofReal_ne_zero.mpr (ne_of_gt (hwpos k))) h + +theorem positiveTrace_diagonalOperator (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) (hw₀ : ∀ k, 0 ≤ w k) : + positiveTrace (diagonalOperator b w) = ENNReal.ofReal (∑' k, w k) := by + rw [positiveTrace_eq_tsum_diagonal b (diagonalOperator_nonneg b hw₀), + ENNReal.ofReal_tsum_of_nonneg hw₀ hw] + apply tsum_congr + intro k + rw [diagonalOperator_apply_basis b hw, inner_smul_right_eq_smul, + inner_self_eq_norm_sq_to_K, b.orthonormal.norm_eq_one] + simp [Algebra.smul_def] + +/-- The actual infinite-dimensional one-mode oscillator Hilbert space. -/ +noncomputable abbrev OscillatorSpace := ℓ²(ℕ, ℂ) + +/-- The number basis, implemented by the identity identification with ℓ². -/ +noncomputable def numberBasis : HilbertBasis ℕ ℂ OscillatorSpace := + HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ _) + +/-- Thermal weights in the number basis. -/ +def thermalWeight (q : ℝ) (k : ℕ) : ℝ := (1 - q) * q ^ k + +theorem thermalWeight_pos {q : ℝ} (hq₀ : 0 < q) (hq₁ : q < 1) (k : ℕ) : + 0 < thermalWeight q k := mul_pos (sub_pos.mpr hq₁) (pow_pos hq₀ k) + +theorem hasSum_thermalWeight {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) : + HasSum (thermalWeight q) 1 := by + have h := (hasSum_geometric_of_lt_one hq₀ hq₁).mul_left (1 - q) + unfold thermalWeight + convert! h using 1 + exact (mul_inv_cancel₀ (ne_of_gt (sub_pos.mpr hq₁))).symm + +/-- The bounded density operator `(1-q) q^N`, constructed by its convergent +rank-one expansion rather than by an assumed unbounded number operator. -/ +noncomputable def thermalDensity (q : ℝ) : OscillatorSpace →L[ℂ] OscillatorSpace := + diagonalOperator numberBasis (thermalWeight q) + +theorem thermalDensity_nonneg {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) : + 0 ≤ thermalDensity q := + diagonalOperator_nonneg numberBasis fun k => + mul_nonneg (sub_nonneg.mpr hq₁.le) (pow_nonneg hq₀ k) + +theorem thermalDensity_apply_numberBasis {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) + (k : ℕ) : thermalDensity q (numberBasis k) = thermalWeight q k • numberBasis k := + diagonalOperator_apply_basis numberBasis (hasSum_thermalWeight hq₀ hq₁).summable k + +theorem positiveTrace_thermalDensity {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) : + positiveTrace (thermalDensity q) = 1 := by + rw [thermalDensity, positiveTrace_diagonalOperator numberBasis + (hasSum_thermalWeight hq₀ hq₁).summable + (fun k => mul_nonneg (sub_nonneg.mpr hq₁.le) (pow_nonneg hq₀ k)), + (hasSum_thermalWeight hq₀ hq₁).tsum_eq, ENNReal.ofReal_one] + +theorem thermalDensity_injective {q : ℝ} (hq₀ : 0 < q) (hq₁ : q < 1) : + Function.Injective (thermalDensity q) := + diagonalOperator_injective numberBasis (hasSum_thermalWeight hq₀.le hq₁).summable + (thermalWeight_pos hq₀ hq₁) + +theorem thermalDensity_isFaithfulDensity {q : ℝ} (hq₀ : 0 < q) (hq₁ : q < 1) : + IsFaithfulDensity (thermalDensity q) := + ⟨thermalDensity_nonneg hq₀.le hq₁, positiveTrace_thermalDensity hq₀.le hq₁, + thermalDensity_injective hq₀ hq₁⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalDensityCharacteristic.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalDensityCharacteristic.lean new file mode 100644 index 0000000000..beaa5dd522 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalDensityCharacteristic.lean @@ -0,0 +1,96 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PhysicalGaussianHusimi +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeThermalCharacteristic +public import LeanPool.VacuumBellSeparation.Gaussian.CommutingAppendixA + +/-! +# Thermal states are the actual density expectations in fixed Weyl labels + +The true square root of the diagonal density identifies the two previously +constructed complex expectations on every bounded operator. The product +thermal density consequently satisfies the actual physical Gaussian +characteristic predicate. The reference sandwich at ρ=σ is an equality +of actual CFC powers on the full oscillator space. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix ContinuousLinearMap +open scoped MatrixOrder Matrix.Norms.L2Operator + +theorem densityExpectation_indexedDiagonalOperator {ι E : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + (b : HilbertBasis ι ℂ E) {w : ι → ℝ} (hw : Summable w) (hw₀ : ∀ k, 0 ≤ w k) + (B : E →L[ℂ] E) : + densityExpectation b (indexedDiagonalOperator b w) B = indexedDiagonalExpectation b w B := by + apply tsum_congr + intro k + change inner ℂ (CFC.sqrt (indexedDiagonalOperator b w) (b k)) + (B (CFC.sqrt (indexedDiagonalOperator b w) (b k))) = + (w k : ℂ) * inner ℂ (b k) (B (b k)) + rw [sqrt_indexedDiagonalOperator_apply_basis b hw hw₀, + map_smul_of_tower, inner_smul_left_eq_smul, inner_smul_right_eq_smul] + simp only [Algebra.smul_def, Complex.coe_algebraMap] + rw [← mul_assoc, ← Complex.ofReal_mul, Real.mul_self_sqrt (hw₀ k)] + +theorem densityExpectation_multiModeThermalDensity {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) + (B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) : + densityExpectation (multiModeNumberBasis m) (multiModeThermalDensity q) B = + multiThermalState hq₀ hq₁ B := + densityExpectation_indexedDiagonalOperator (multiModeNumberBasis m) + (hasSum_multiModeThermalWeight hq₀ hq₁).summable + (multiModeThermalWeight_nonneg hq₀ hq₁) B + +theorem physicalDisplacementCovariance_modeDiagonal {m : ℕ} (d : Fin m → ℝ) : + physicalDisplacementCovariance (modeDiagonal d) = modeDiagonal d := by + rw [physicalDisplacementCovariance, mul_assoc, (modeDiagonal_commute_symplectic d).eq, + ← mul_assoc, modeSymplecticForm_transpose_mul, one_mul] + +theorem multiModeThermalDensity_hasGaussianPhysicalCharacteristic {m : ℕ} {q : Fin m → ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) : + HasGaussianPhysicalCharacteristic (multiModeThermalDensity q) + (modeDiagonal (fun j => thermalQuadratureVariance (q j))) := by + intro z + rw [densityExpectation_multiModeThermalDensity hq₀ hq₁, + multiThermalState_oscillatorWeyl hq₀ hq₁, + physicalDisplacementCovariance_modeDiagonal, dotProduct_modeDiagonal] + simp only [complexRealCoordinates_apply, + complexRealCoordinates_apply_one] + simp only [Complex.sq_norm, Complex.normSq_apply] + simp only [pow_two] + +theorem multiModeThermalDensity_reference_factorization {m : ℕ} + {q : Fin m → ℝ} {τ : ℝ} (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) + (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + (multiModeThermalDensity q ^ (τ / 2)) * + (multiModeThermalDensity q ^ (1 - τ)) * + (multiModeThermalDensity q ^ (τ / 2)) = multiModeThermalDensity q := by + apply continuousLinearMap_eq_of_dense_span (multiModeNumberBasis _) + (multiModeNumberBasis _).dense_span + intro k + simp only [mul_apply_eq_comp] + rw [multiModeThermalDensity_rpow_apply_numberBasis (fun j => (hq₀ j).le) hq₁ (half_pos hτ₀), + map_smul_of_tower, + multiModeThermalDensity_rpow_apply_numberBasis (fun j => (hq₀ j).le) hq₁ (sub_pos.mpr hτ₁), + map_smul_of_tower, map_smul_of_tower, + multiModeThermalDensity_rpow_apply_numberBasis (fun j => (hq₀ j).le) hq₁ (half_pos hτ₀), + multiModeThermalDensity_apply_numberBasis (fun j => (hq₀ j).le) hq₁, + smul_smul, smul_smul] + congr 1 + rw [← Real.rpow_add (multiModeThermalWeight_pos hq₀ hq₁ k), + ← Real.rpow_add (multiModeThermalWeight_pos hq₀ hq₁ k), + show τ / 2 + (1 - τ) + τ / 2 = 1 by ring, Real.rpow_one] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalDomains.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalDomains.lean new file mode 100644 index 0000000000..15b10a667a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalDomains.lean @@ -0,0 +1,154 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowers + +/-! +# Domains of inverse thermal powers + +Positive thermal powers have dense range and trivial kernel, but no bounded +left inverse. Their inverse powers are therefore defined as linear maps on +the actual dense range. This is a domain foundation for the Appendix A +sandwich; it does not by itself prove that the sandwich extends boundedly. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Filter Topology + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] + +theorem injective_of_positive_basis_eigenvalues (b : HilbertBasis ℕ ℂ E) + {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) {w : ℕ → ℝ} + (hw : ∀ k, 0 < w k) (heig : ∀ k, A (b k) = w k • b k) : + Function.Injective A := by + have hcoord (x : E) (k : ℕ) : + inner ℂ (b k) (A x) = (w k : ℂ) * inner ℂ (b k) x := by + simpa only [hA.adjoint_eq, heig, inner_smul_left_eq_smul, Algebra.smul_def, + Complex.coe_algebraMap] using + (A.adjoint_inner_left x (b k)).symm + intro x y hxy + apply b.repr.injective + ext k + rw [b.repr_apply_apply, b.repr_apply_apply] + have h := congrArg (fun z => inner ℂ (b k) z) hxy + rw [hcoord, hcoord] at h + exact mul_left_cancel₀ (Complex.ofReal_ne_zero.mpr (ne_of_gt (hw k))) h + +omit [CompleteSpace E] in +theorem denseRange_of_nonzero_basis_eigenvalues (b : HilbertBasis ℕ ℂ E) + {A : E →L[ℂ] E} {w : ℕ → ℝ} (hw : ∀ k, w k ≠ 0) + (heig : ∀ k, A (b k) = w k • b k) : DenseRange A := by + have hb : Submodule.span ℂ (Set.range b) ≤ A.range := by + apply Submodule.span_le.mpr + rintro _ ⟨k, rfl⟩ + refine ⟨(w k)⁻¹ • b k, ?_⟩ + change A ((w k)⁻¹ • b k) = b k + rw [A.map_smul_of_tower, heig, inv_smul_smul₀ (hw k)] + have hd : A.range.topologicalClosure = ⊤ := by + apply top_unique + rw [← b.dense_span] + exact Submodule.topologicalClosure_mono hb + exact Submodule.dense_iff_topologicalClosure_eq_top.mpr hd + +omit [CompleteSpace E] in +theorem no_bounded_leftInverse_of_vanishing_basis_eigenvalues + (b : HilbertBasis ℕ ℂ E) {A : E →L[ℂ] E} {w : ℕ → ℝ} + (hw : Tendsto w atTop (𝓝 0)) (heig : ∀ k, A (b k) = w k • b k) : + ¬ ∃ S : E →L[ℂ] E, ∀ x, S (A x) = x := by + rintro ⟨S, hS⟩ + have hbound (k : ℕ) : 1 ≤ ‖S‖ * ‖w k‖ := by + calc + 1 = ‖S (A (b k))‖ := by rw [hS, b.orthonormal.norm_eq_one] + _ ≤ ‖S‖ * ‖A (b k)‖ := S.le_opNorm _ + _ = ‖S‖ * ‖w k‖ := by rw [heig, norm_smul, b.orthonormal.norm_eq_one, mul_one] + have hlim : Tendsto (fun k => ‖S‖ * ‖w k‖) atTop (𝓝 0) := by + simpa only [norm_zero, mul_zero] using hw.norm.const_mul ‖S‖ + have hfalse : (1 : ℝ) ≤ 0 := ge_of_tendsto' hlim hbound + norm_num at hfalse + +theorem thermalDensity_rpow_injective {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) : + Function.Injective (thermalDensity q ^ τ) := + injective_of_positive_basis_eigenvalues numberBasis + (CFC.rpow_nonneg (a := thermalDensity q) (y := τ)).isSelfAdjoint + (fun k => Real.rpow_pos_of_pos (thermalWeight_pos hq₀ hq₁ k) τ) + (thermalDensity_rpow_apply_numberBasis hq₀.le hq₁ hτ) + +theorem thermalDensity_rpow_denseRange {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) : + DenseRange (thermalDensity q ^ τ) := + denseRange_of_nonzero_basis_eigenvalues numberBasis + (fun k => ne_of_gt (Real.rpow_pos_of_pos (thermalWeight_pos hq₀ hq₁ k) τ)) + (thermalDensity_rpow_apply_numberBasis hq₀.le hq₁ hτ) + +theorem tendsto_thermalWeight_rpow {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + Tendsto (fun k => thermalWeight q k ^ τ) atTop (𝓝 0) := by + have hw : Tendsto (thermalWeight q) atTop (𝓝 0) := by + change Tendsto (fun k : ℕ => (1 - q) * q ^ k) atTop (𝓝 0) + simpa only [mul_zero] using + (tendsto_pow_atTop_nhds_zero_of_lt_one hq₀ hq₁).const_mul (1 - q) + simpa only [Function.comp_def, Real.zero_rpow (ne_of_gt hτ)] using + ((Real.continuous_rpow_const hτ.le).tendsto 0).comp hw + +theorem thermalDensity_rpow_no_bounded_leftInverse {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + ¬ ∃ S : OscillatorSpace →L[ℂ] OscillatorSpace, + ∀ x, S ((thermalDensity q ^ τ) x) = x := + no_bounded_leftInverse_of_vanishing_basis_eigenvalues numberBasis + (tendsto_thermalWeight_rpow hq₀ hq₁ hτ) + (thermalDensity_rpow_apply_numberBasis hq₀ hq₁ hτ) + +theorem thermalDensity_rpow_not_isUnit {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + ¬ IsUnit (thermalDensity q ^ τ) := by + rintro ⟨u, hu⟩ + apply thermalDensity_rpow_no_bounded_leftInverse hq₀ hq₁ hτ + refine ⟨(↑(u⁻¹) : OscillatorSpace →L[ℂ] OscillatorSpace), fun x => ?_⟩ + rw [← hu, ← mul_apply_eq_comp, Units.inv_mul, one_apply_eq_self] + +theorem thermalDensity_rpow_not_isStrictlyPositive {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + ¬ IsStrictlyPositive (thermalDensity q ^ τ) := + fun h => thermalDensity_rpow_not_isUnit hq₀ hq₁ hτ h.isUnit + +/-- The natural dense domain of the inverse power, expressed as the actual +range of the bounded positive power. -/ +noncomputable def thermalPowerDomain (q τ : ℝ) : Submodule ℂ OscillatorSpace := + (thermalDensity q ^ τ).range + +/-- The inverse of the positive power, with its domain in the type. +This is a linear map, without an asserted continuity or boundedness. -/ +noncomputable def thermalInversePower {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) : + thermalPowerDomain q τ →ₗ[ℂ] OscillatorSpace := + (LinearEquiv.ofInjective (thermalDensity q ^ τ).toLinearMap + (thermalDensity_rpow_injective hq₀ hq₁ hτ)).symm.toLinearMap + +theorem thermalInversePower_apply_power {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) (x : OscillatorSpace) : + thermalInversePower hq₀ hq₁ hτ ⟨(thermalDensity q ^ τ) x, ⟨x, rfl⟩⟩ = x := + (LinearEquiv.ofInjective (thermalDensity q ^ τ).toLinearMap + (thermalDensity_rpow_injective hq₀ hq₁ hτ)).symm_apply_apply x + +theorem thermalPower_apply_inversePower {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) (x : thermalPowerDomain q τ) : + (thermalDensity q ^ τ) (thermalInversePower hq₀ hq₁ hτ x) = x := + congrArg Subtype.val ((LinearEquiv.ofInjective (thermalDensity q ^ τ).toLinearMap + (thermalDensity_rpow_injective hq₀ hq₁ hτ)).apply_symm_apply x) + +theorem thermalPowerDomain_dense {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) : + Dense (thermalPowerDomain q τ : Set OscillatorSpace) := + thermalDensity_rpow_denseRange hq₀ hq₁ hτ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalFunctionalCalculus.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalFunctionalCalculus.lean new file mode 100644 index 0000000000..e2618cceb2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalFunctionalCalculus.lean @@ -0,0 +1,235 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalParallel +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalIdentity + +/-! +# Functional calculus for the parallel thermal formula + +The mean and parallel-family operations are identified with their scalar +functions on a single self-adjoint operator. Strict positivity of the +scalar functions is an explicit domain requirement for every inverse. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +variable {F : Type*} + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Scalar normalization in the defining geometric-mean formula. -/ +theorem scalar_weightedGeometricMean (p : ℝ) {a b : ℝ} (ha : 0 < a) : + a ^ (1 / 2 : ℝ) * (a ^ (-(1 / 2) : ℝ) * b * a ^ (-(1 / 2) : ℝ)) ^ p * + a ^ (1 / 2 : ℝ) = a * (b / a) ^ p := by + have hhalf : a ^ (1 / 2 : ℝ) * a ^ (1 / 2 : ℝ) = a := by + rw [← Real.rpow_add ha] + norm_num + have hneg : a ^ (-(1 / 2) : ℝ) * a ^ (-(1 / 2) : ℝ) = a⁻¹ := by + rw [← Real.rpow_add ha] + norm_num [Real.rpow_neg_one] + have hinner : a ^ (-(1 / 2) : ℝ) * b * a ^ (-(1 / 2) : ℝ) = b / a := by + calc + _ = b * (a ^ (-(1 / 2) : ℝ) * a ^ (-(1 / 2) : ℝ)) := by ring + _ = _ := by rw [hneg, div_eq_mul_inv] + rw [hinner] + calc + _ = (a ^ (1 / 2 : ℝ) * a ^ (1 / 2 : ℝ)) * (b / a) ^ p := by ring + _ = _ := by rw [hhalf] + +/-- Weighted geometric means of two positive functions of the same +self-adjoint operator are given by the scalar weighted-mean formula. -/ +theorem weightedGeometricMean_cfc (T : F →L[ℂ] F) (hT : IsSelfAdjoint T) + (f g : ℝ → ℝ) (hf : ContinuousOn f (spectrum ℝ T)) + (hg : ContinuousOn g (spectrum ℝ T)) + (hfpos : ∀ x ∈ spectrum ℝ T, 0 < f x) + (hgpos : ∀ x ∈ spectrum ℝ T, 0 < g x) (p : ℝ) : + weightedGeometricMean p (cfc f T) (cfc g T) = + cfc (fun x => f x * (g x / f x) ^ p) T := by + let u : ℝ → ℝ := fun x => f x ^ (1 / 2 : ℝ) + let v : ℝ → ℝ := fun x => f x ^ (-(1 / 2) : ℝ) + have hu : ContinuousOn u (spectrum ℝ T) := + hf.rpow_const (fun x hx => Or.inl (hfpos x hx).ne') + have hv : ContinuousOn v (spectrum ℝ T) := + hf.rpow_const (fun x hx => Or.inl (hfpos x hx).ne') + have hX : ContinuousOn (fun x => v x * g x * v x) (spectrum ℝ T) := + (hv.mul hg).mul hv + have hXpos : ∀ x ∈ spectrum ℝ T, 0 < v x * g x * v x := by + intro x hx + exact mul_pos (mul_pos (Real.rpow_pos_of_pos (hfpos x hx) _) (hgpos x hx)) + (Real.rpow_pos_of_pos (hfpos x hx) _) + have hXp : ContinuousOn (fun x => (v x * g x * v x) ^ p) (spectrum ℝ T) := + hX.rpow_const (fun x hx => Or.inl (hXpos x hx).ne') + unfold weightedGeometricMean + simp_rw [CFC.cfc_rpow hfpos hf hT] + change cfc u T * (cfc v T * cfc g T * cfc v T) ^ p * cfc u T = _ + rw [← cfc_mul v g T hv hg, ← cfc_mul (fun x => v x * g x) v T (hv.mul hg) hv, + CFC.cfc_rpow hXpos hX hT, + ← cfc_mul u (fun x => (v x * g x * v x) ^ p) T hu hXp, + ← cfc_mul (fun x => u x * (v x * g x * v x) ^ p) u T (hu.mul hXp) hu] + apply cfc_congr + intro x hx + exact scalar_weightedGeometricMean p (hfpos x hx) + +/-- Finite parallel sums of strictly positive scalar functions commute +with the functional calculus. -/ +theorem parallelFamily_cfc (T : F →L[ℂ] F) (hT : IsSelfAdjoint T) + {n : ℕ} (f : Fin (n + 1) → ℝ → ℝ) + (hf : ∀ j, ContinuousOn (f j) (spectrum ℝ T)) + (hpos : ∀ j x, x ∈ spectrum ℝ T → 0 < f j x) : + parallelFamily (fun j => cfc (f j) T) = + cfc (fun x => (∑ j, (f j x)⁻¹)⁻¹) T := by + have hInv : ∀ j, ContinuousOn (fun x => (f j x)⁻¹) (spectrum ℝ T) := + fun j => (hf j).inv₀ (fun x hx => (hpos j x hx).ne') + have hsum : ContinuousOn (fun x => ∑ j, (f j x)⁻¹) (spectrum ℝ T) := + continuousOn_finsetSum _ (fun j _ => hInv j) + have hsumpos : ∀ x ∈ spectrum ℝ T, 0 < ∑ j, (f j x)⁻¹ := by + intro x hx + exact Finset.sum_pos (fun j _ => inv_pos.mpr (hpos j x hx)) Finset.univ_nonempty + have hi : ∀ j, Ring.inverse (cfc (f j) T) = cfc (fun x => (f j x)⁻¹) T := + fun j => (cfc_inv (f j) T (fun x hx => (hpos j x hx).ne') (hf j) hT).symm + unfold parallelFamily + simp_rw [hi] + rw [← cfc_sum_univ (fun j x => (f j x)⁻¹) T hInv] + have heq : (∑ j : Fin (n + 1), fun x : ℝ => (f j x)⁻¹) = + (fun x => ∑ j, (f j x)⁻¹) := by ext x; simp + rw [heq] + exact (cfc_inv _ T (fun x hx => (hsumpos x hx).ne') hsum hT).symm + +/-- Every real spectral value of an operator of norm below one lies in +the open interval needed for the strict thermal identity. -/ +theorem spectrum_mem_Ioo_of_norm_lt_one {T : F →L[ℂ] F} (hT : ‖T‖ < 1) + {x : ℝ} (hx : x ∈ spectrum ℝ T) : x ∈ Set.Ioo (-1 : ℝ) 1 := by + rcases subsingleton_or_nontrivial F with hF | hF + · let := hF + simp only [spectrum.of_subsingleton, Set.mem_empty_iff_false] at hx + · let := hF + exact abs_lt.mp (by simpa only [Real.norm_eq_abs] using + (spectrum.norm_le_norm_of_mem hx).trans_lt hT) + +/-- Scalar member of the thermal geometric-mean family. -/ +noncomputable def thermalMeanFunction {n : ℕ} (j : Fin (n + 1)) (x : ℝ) : ℝ := + (1 + x) * ((1 - x) / (1 + x)) ^ thermalMeanWeight j + +theorem thermalMeanFunction_pos {n : ℕ} (j : Fin (n + 1)) {x : ℝ} + (hx : x ∈ Set.Ioo (-1 : ℝ) 1) : 0 < thermalMeanFunction j x := by + unfold thermalMeanFunction + exact mul_pos (by linarith [hx.1]) + (Real.rpow_pos_of_pos (div_pos (by linarith [hx.2]) (by linarith [hx.1])) _) + +theorem continuousOn_thermalMeanFunction {n : ℕ} (j : Fin (n + 1)) : + ContinuousOn (thermalMeanFunction j) (Set.Ioo (-1 : ℝ) 1) := by + have hplus : ContinuousOn (fun x : ℝ => 1 + x) (Set.Ioo (-1 : ℝ) 1) := by fun_prop + have hminus : ContinuousOn (fun x : ℝ => 1 - x) (Set.Ioo (-1 : ℝ) 1) := by fun_prop + apply hplus.mul + apply (hminus.div hplus (fun x hx => ne_of_gt (by linarith [hx.1]))).rpow_const + intro x hx + exact Or.inr (thermalMeanWeight_pos j).le + +theorem cfc_one_add_id (T : F →L[ℂ] F) (hT : IsSelfAdjoint T) : + cfc (fun x : ℝ => 1 + x) T = 1 + T := by + rw [cfc_const_add (1 : ℝ) (fun x : ℝ => x) T (by fun_prop) hT, + cfc_id' ℝ T hT, map_one] + +theorem cfc_one_sub_id (T : F →L[ℂ] F) (hT : IsSelfAdjoint T) : + cfc (fun x : ℝ => 1 - x) T = 1 - T := by + rw [cfc_sub (fun _ : ℝ => 1) (fun x : ℝ => x) T, + cfc_const_one ℝ T hT, cfc_id' ℝ T hT] + +theorem weightedGeometricMean_one_add_sub (T : F →L[ℂ] F) (hT : IsSelfAdjoint T) + (hnorm : ‖T‖ < 1) {n : ℕ} (j : Fin (n + 1)) : + weightedGeometricMean (thermalMeanWeight j) (1 + T) (1 - T) = + cfc (thermalMeanFunction j) T := by + rw [← cfc_one_add_id T hT, ← cfc_one_sub_id T hT] + apply weightedGeometricMean_cfc T hT _ _ (by fun_prop) (by fun_prop) + · intro x hx + have h := spectrum_mem_Ioo_of_norm_lt_one hnorm hx + linarith [h.1] + · intro x hx + have h := spectrum_mem_Ioo_of_norm_lt_one hnorm hx + linarith [h.2] + +/-- The actual parallel thermal identity for a strictly contractive +self-adjoint commutation operator. All inverses are genuine here. -/ +theorem geometricParallel_eq_thermal_cfc (T : F →L[ℂ] F) (hT : IsSelfAdjoint T) + (hnorm : ‖T‖ < 1) (n : ℕ) : + geometricParallel n (1 + T) (1 - T) = + cfc (fun x : ℝ => thermalIncrement + (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) |x|) T := by + have hspec : spectrum ℝ T ⊆ Set.Ioo (-1 : ℝ) 1 := + fun _ hx => spectrum_mem_Ioo_of_norm_lt_one hnorm hx + unfold geometricParallel + simp_rw [weightedGeometricMean_one_add_sub T hT hnorm] + rw [parallelFamily_cfc T hT _ + (fun j => (continuousOn_thermalMeanFunction j).mono hspec) + (fun j x hx => thermalMeanFunction_pos j (hspec hx))] + apply cfc_congr + intro x hx + dsimp only + rw [thermalIncrement_abs_eq_scalarGeometricParallel n (hspec hx).1 (hspec hx).2] + unfold scalarGeometricParallel + congr 1 + apply Finset.sum_congr rfl + intro j _ + congr 1 + unfold thermalMeanFunction + congr 1 + have ht : 0 ≤ (1 - x) / (1 + x) := + (div_pos (by linarith [(hspec hx).2]) (by linarith [(hspec hx).1])).le + rw [← Real.rpow_natCast, ← Real.rpow_mul ht] + congr 1 + unfold thermalMeanWeight + ring + +theorem one_add_isStrictlyPositive_of_norm_lt_one {T : F →L[ℂ] F} + (hT : IsSelfAdjoint T) (hnorm : ‖T‖ < 1) : IsStrictlyPositive (1 + T) := by + rw [← cfc_one_add_id T hT] + apply (cfc_isStrictlyPositive_iff _ T (by fun_prop) hT).mpr + intro x hx + have h := spectrum_mem_Ioo_of_norm_lt_one hnorm hx + linarith [h.1] + +theorem one_sub_isStrictlyPositive_of_norm_lt_one {T : F →L[ℂ] F} + (hT : IsSelfAdjoint T) (hnorm : ‖T‖ < 1) : IsStrictlyPositive (1 - T) := by + rw [← cfc_one_sub_id T hT] + apply (cfc_isStrictlyPositive_iff _ T (by fun_prop) hT).mpr + intro x hx + have h := spectrum_mem_Ioo_of_norm_lt_one hnorm hx + linarith [h.2] + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem norm_compression_le (ι : E →ₗᵢ[ℂ] F) (T : F →L[ℂ] F) : + ‖compression ι T‖ ≤ ‖T‖ := by + unfold compression + grw [ContinuousLinearMap.opNorm_comp_le, ContinuousLinearMap.opNorm_comp_le] + simp only [LinearIsometryEquiv.norm_map] + grw [ι.norm_toContinuousLinearMap_le] + simp only [one_mul] + exact (mul_le_mul_of_nonneg_left ι.norm_toContinuousLinearMap_le (norm_nonneg T)).trans_eq + (mul_one _) + +/-- First high-compression inequality of Lemma 4.4 in the strictly +contractive case, now stated directly for the actual thermal function. +The closed contraction case still requires its continuous endpoint limit. -/ +theorem high_compression_of_norm_lt_one (ι : E →ₗᵢ[ℂ] F) + {T : F →L[ℂ] F} (hT : IsSelfAdjoint T) (hnorm : ‖T‖ < 1) (n : ℕ) : + compression ι (cfc (fun x : ℝ => thermalIncrement + (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) |x|) T) ≤ + cfc (fun x : ℝ => thermalIncrement + (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) |x|) (compression ι T) := by + rw [← geometricParallel_eq_thermal_cfc T hT hnorm, + ← geometricParallel_eq_thermal_cfc (compression ι T) (compression_isSelfAdjoint ι hT) + ((norm_compression_le ι T).trans_lt hnorm)] + have h := compression_geometricParallel_le ι n + (one_add_isStrictlyPositive_of_norm_lt_one hT hnorm) + (one_sub_isStrictlyPositive_of_norm_lt_one hT hnorm) + simpa only [compression_add, compression_sub, compression_one] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalIdentity.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalIdentity.lean new file mode 100644 index 0000000000..c1dc335d45 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalIdentity.lean @@ -0,0 +1,161 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalOperator + +/-! +# Scalar parallel thermal identity + +Finite geometric-series algebra for Lemma 4.4, equation (4.12). The sum +always contains `n+1` strictly positive terms, corresponding to `r=n+2`. +The removable value at spectral zero is handled by the sum itself. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +/-- The inverse sum after writing each scalar geometric mean as `a z^k`. +The analytic application uses `a=1+d`, `z=((1-d)/(1+d))^(1/r)`. -/ +noncomputable def scalarGeometricParallel (n : ℕ) (a z : ℝ) : ℝ := + (∑ j : Fin (n + 1), (a * z ^ (j.val + 1))⁻¹)⁻¹ + +theorem scalarGeometricParallel_one (n : ℕ) (a : ℝ) : + scalarGeometricParallel n a 1 = a / ((n + 1 : ℕ) : ℝ) := by + simp [scalarGeometricParallel, mul_inv_rev, div_eq_mul_inv] + +/-- The geometric-series quotient away from `z=1`. Positivity of `z` +excludes spurious roots of unity in the denominator. -/ +theorem scalarGeometricParallel_eq (n : ℕ) {a z : ℝ} (ha : 0 < a) + (hz : 0 < z) (hz1 : z ≠ 1) : + scalarGeometricParallel n a z = + a * z ^ (n + 1) * (1 - z) / (1 - z ^ (n + 1)) := by + have hzinv : z⁻¹ ≠ 1 := by + intro h + apply hz1 + simpa only [inv_inv, inv_one] using congrArg Inv.inv h + have hpow : z ^ (n + 1) ≠ 1 := + fun h => hz1 ((pow_eq_one_iff_of_nonneg hz.le (by omega)).mp h) + have hsum : (∑ j : Fin (n + 1), (a * z ^ (j.val + 1))⁻¹) = + a⁻¹ * z⁻¹ * ((z⁻¹ ^ (n + 1) - 1) / (z⁻¹ - 1)) := by + calc + _ = a⁻¹ * z⁻¹ * ∑ j : Fin (n + 1), z⁻¹ ^ j.val := by + rw [Finset.mul_sum] + apply Finset.sum_congr rfl + intro j _ + simp only [pow_succ, mul_inv_rev, inv_pow] + ring + _ = _ := by rw [Fin.sum_univ_eq_sum_range, geom_sum_eq hzinv] + rw [scalarGeometricParallel, hsum, inv_pow] + have hzsub : z - 1 ≠ 0 := sub_ne_zero.mpr hz1 + have hpowSub : z ^ (n + 1) - 1 ≠ 0 := sub_ne_zero.mpr hpow + field_simp [ha.ne', hz.ne', hzsub, hpowSub] + + +/-- Positivity is proved from the actual inverse sum, so it also covers +`z=1` where the quotient expression has a removable singularity. -/ +theorem scalarGeometricParallel_pos (n : ℕ) {a z : ℝ} (ha : 0 < a) + (hz : 0 < z) : 0 < scalarGeometricParallel n a z := by + apply inv_pos.mpr + exact Finset.sum_pos (fun j _ => inv_pos.mpr (mul_pos ha (pow_pos hz _))) + Finset.univ_nonempty + +/-- The symmetric closed expression away from spectral zero. It is +totalized there, so the value at zero is supplied separately. -/ +noncomputable def thermalClosed (b d : ℝ) : ℝ := + d * (((1 + d) ^ b + (1 - d) ^ b) / ((1 + d) ^ b - (1 - d) ^ b)) - 1 + +theorem thermalClosed_neg (b d : ℝ) : thermalClosed b (-d) = thermalClosed b d := by + unfold thermalClosed + simp only [← sub_eq_add_neg, sub_neg_eq_add] + rw [add_comm ((1 - d) ^ b), + show (1 - d) ^ b - (1 + d) ^ b = -((1 + d) ^ b - (1 - d) ^ b) by ring, + div_neg, neg_mul_neg] + +theorem thermalIncrement_abs_eq_thermalClosed {b d : ℝ} (hb : 0 < b) + (hdm : -1 < d) (hdp : d < 1) (hd0 : d ≠ 0) : + thermalIncrement b |d| = thermalClosed b d := by + rcases lt_or_gt_of_ne hd0 with hd | hd + · rw [abs_of_neg hd, thermalIncrement_eq_of_pos hb (by linarith) (by linarith)] + exact thermalClosed_neg b d + · rw [abs_of_pos hd, thermalIncrement_eq_of_pos hb hd hdp.le] + rfl + +/-- The geometric-series expression equals the signed closed thermal +formula. Both signs of the nonzero spectral value are covered. -/ +theorem scalarGeometricParallel_eq_thermalClosed (n : ℕ) {d : ℝ} + (hdm : -1 < d) (hd1 : d < 1) (hd0 : d ≠ 0) : + scalarGeometricParallel n (1 + d) + (((1 - d) / (1 + d)) ^ (1 / ((n + 2 : ℕ) : ℝ))) = + thermalClosed (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) d := by + let b : ℝ := ((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) + let z : ℝ := ((1 - d) / (1 + d)) ^ (1 / ((n + 2 : ℕ) : ℝ)) + have hp : 0 < 1 + d := by linarith + have hm : 0 < 1 - d := by linarith + have hr : (0 : ℝ) < ((n + 2 : ℕ) : ℝ) := by positivity + have hb : 0 < b := by dsimp [b]; positivity + have ht : 0 < (1 - d) / (1 + d) := div_pos hm hp + have hz : 0 < z := Real.rpow_pos_of_pos ht _ + have hzr : z ^ (n + 2) = (1 - d) / (1 + d) := by + rw [← Real.rpow_natCast] + dsimp [z] + rw [← Real.rpow_mul ht.le, div_mul_cancel₀ _ hr.ne', Real.rpow_one] + have hz1 : z ≠ 1 := by + intro h + rw [h, one_pow] at hzr + have heq := (eq_div_iff hp.ne').mp hzr + apply hd0 + linarith + have hzm : z ^ (n + 1) = (1 - d) ^ b / (1 + d) ^ b := by + rw [← Real.rpow_natCast] + dsimp [z] + rw [← Real.rpow_mul ht.le] + have hexp : 1 / ((n + 2 : ℕ) : ℝ) * ((n + 1 : ℕ) : ℝ) = b := by + dsimp [b] + ring + rw [hexp, Real.div_rpow hm.le hp.le] + have hproduct : (1 + d) * z ^ (n + 1) * z = 1 - d := by + rw [mul_assoc, ← pow_succ, hzr, mul_div_cancel₀ _ hp.ne'] + have hnum : (1 + d) * z ^ (n + 1) * (1 - z) = + (1 + d) * z ^ (n + 1) - (1 - d) := by + nlinarith [hproduct] + have hu : 0 < (1 + d) ^ b := Real.rpow_pos_of_pos hp b + have hden : (1 + d) ^ b - (1 - d) ^ b ≠ 0 := by + intro h + have heq := (Real.rpow_left_inj hp.le hm.le hb.ne').mp (sub_eq_zero.mp h) + apply hd0 + linarith + change scalarGeometricParallel n (1 + d) z = thermalClosed b d + rw [thermalClosed, scalarGeometricParallel_eq n hp hz hz1, hnum, hzm] + field_simp [hu.ne', hden]; ring + +/-- At spectral zero the inverse sum has the required continuous value, +without using a quotient with a vanishing geometric-series denominator. -/ +theorem thermalIncrement_zero_eq_scalarGeometricParallel (n : ℕ) : + thermalIncrement (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) 0 = + scalarGeometricParallel n 1 1 := by + rw [thermalIncrement_zero, scalarGeometricParallel_one] + have hm : (((n + 1 : ℕ) : ℝ)) ≠ 0 := by positivity + have hr : (((n + 2 : ℕ) : ℝ)) ≠ 0 := by positivity + push_cast + field_simp; ring + +/-- The scalar parallel thermal identity on the entire open interval, +including spectral zero with its continuous value. -/ +theorem thermalIncrement_abs_eq_scalarGeometricParallel (n : ℕ) {d : ℝ} + (hdm : -1 < d) (hd1 : d < 1) : + thermalIncrement (((n + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ)) |d| = + scalarGeometricParallel n (1 + d) + (((1 - d) / (1 + d)) ^ (1 / ((n + 2 : ℕ) : ℝ))) := by + by_cases hd0 : d = 0 + · subst d + simpa using thermalIncrement_zero_eq_scalarGeometricParallel n + · rw [thermalIncrement_abs_eq_thermalClosed (by positivity) hdm hd1 hd0, + scalarGeometricParallel_eq_thermalClosed n hdm hd1 hd0] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalOperator.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalOperator.lean new file mode 100644 index 0000000000..41f7130a52 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalOperator.lean @@ -0,0 +1,493 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalScalar +public import Mathlib.Analysis.Calculus.DSlope +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order +public import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.Rpow.Order +public import Mathlib.Analysis.SpecialFunctions.Artanh +public import Mathlib.Analysis.SpecialFunctions.Pow.Deriv +public import Mathlib.Analysis.InnerProductSpace.StarOrder +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap +public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Instances + +/-! +# Thermal comparison: infimum statements and operator form (Lemma 4.3) + +Source: the manuscript (Section 4.2 and Lemma 4.3, +"Thermal comparison"). The scalar inequality `c_τ ≤ 𝔮_τ(u)` is proved in `ThermalScalar.lean`. +This file proves: + +* the infimum statements of Lemma 4.3 (the constants `c_τ` are the infima of the scalar + ratios): `𝔮_τ(u) → (1 - τ)/τ` as `u → 0⁺`, `𝔮_τ(u) → 2^{1-2τ}` as `u → ∞`, and `c_τ` is the + greatest lower bound of `{𝔮_τ(u) : u > 0}` (`isGLB_thermalRatio`, `sInf_thermalRatio`); +* the scalar function `h_τ(x) = x coth(τ artanh x) - 1` on `[0, 1]` (`thermalIncrement`, with + the continuous extension `(1 - τ)/τ` at `0` and the value `0` at `1`), its continuity + (`continuousOn_thermalIncrement`) and the bound `h_τ(x) ≥ c_τ (1 - x²)^τ` + (`thermalIncrement_ge`); +* the operator form: for a positive contraction `d` in a unital C⋆-algebra (e.g. `H →L[ℂ] H`), + `H_τ(I) = h_τ(d) ≥ c_τ R^{2τ}` with `R = (1 - d²)^{1/2}`, all defined by the continuous + functional calculus (`thermal_comparison`, `thermal_comparison_clm`). +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology + +/-! ### Limits of the ratio and the infimum statements -/ + +/-- `sinh (a u) / u → a` as `u → 0⁺`. -/ +theorem tendsto_sinh_mul_div_nhdsGT (a : ℝ) : + Tendsto (fun u : ℝ => Real.sinh (a * u) / u) (𝓝[>] 0) (𝓝 a) := by + have h1 : HasDerivAt (fun u : ℝ => a * u) (a * 1) 0 := + (hasDerivAt_id' (x := (0 : ℝ))).const_mul a + have h2 : HasDerivAt (fun u : ℝ => Real.sinh (a * u)) (Real.cosh (a * 0) * (a * 1)) 0 := + h1.sinh + rw [mul_zero, Real.cosh_zero, mul_one, one_mul] at h2 + refine h2.tendsto_slope_zero_right.congr fun t => ?_ + change t⁻¹ • (Real.sinh (a * (0 + t)) - Real.sinh (a * 0)) = Real.sinh (a * t) / t + rw [zero_add, mul_zero, Real.sinh_zero, sub_zero, smul_eq_mul, div_eq_inv_mul] + +/-- The ratio `𝔮_τ(u)` tends to `(1 - τ)/τ` as `u → 0⁺`. -/ +theorem tendsto_thermalRatio_nhdsGT {τ : ℝ} (hτ0 : 0 < τ) : + Tendsto (thermalRatio τ) (𝓝[>] 0) (𝓝 ((1 - τ) / τ)) := by + have h1 := (tendsto_sinh_mul_div_nhdsGT (1 - τ)).div (tendsto_sinh_mul_div_nhdsGT τ) hτ0.ne' + have hc : Tendsto Real.cosh (𝓝[>] (0 : ℝ)) (𝓝 1) := by + have h := (Real.continuous_cosh.tendsto (0 : ℝ)).mono_left + (nhdsWithin_le_nhds (s := Set.Ioi (0 : ℝ))) + rwa [Real.cosh_zero] at h + have h2 := hc.rpow_const (p := 2 * τ - 1) (Or.inl one_ne_zero) + rw [Real.one_rpow] at h2 + have h3 := h1.mul h2 + rw [mul_one] at h3 + refine h3.congr' ?_ + filter_upwards [self_mem_nhdsWithin] with u hu + have hu0 : u ≠ 0 := (Set.mem_Ioi.mp hu).ne' + simp only [Pi.div_apply, thermalRatio] + rw [div_div_div_cancel_right₀ hu0] + +/-- Exponential form of the ratio, used for the limit at infinity: +`𝔮_τ(u) = (1 - e^{-2(1-τ)u}) / (1 - e^{-2τu}) · ((1 + e^{-2u})/2)^{2τ-1}` for `τ, u > 0`. -/ +theorem thermalRatio_eq_exp {τ u : ℝ} (hτ0 : 0 < τ) (hu : 0 < u) : + thermalRatio τ u = (1 - Real.exp (-2 * ((1 - τ) * u))) / (1 - Real.exp (-2 * (τ * u))) + * ((1 + Real.exp (-2 * u)) / 2) ^ (2 * τ - 1) := by + have hsinh : ∀ x : ℝ, Real.sinh x = Real.exp x * (1 - Real.exp (-2 * x)) / 2 := by + intro x + have e : Real.exp x * Real.exp (-2 * x) = Real.exp (-x) := by + rw [← Real.exp_add]; congr 1; ring + rw [Real.sinh_eq, mul_sub, mul_one, e] + have hcosh : Real.cosh u = Real.exp u * ((1 + Real.exp (-2 * u)) / 2) := by + have e : Real.exp u * Real.exp (-2 * u) = Real.exp (-u) := by + rw [← Real.exp_add]; congr 1; ring + rw [Real.cosh_eq, ← e]; ring + have hy : (0 : ℝ) ≤ (1 + Real.exp (-2 * u)) / 2 := by positivity + have hpow : Real.cosh u ^ (2 * τ - 1) + = Real.exp (u * (2 * τ - 1)) * ((1 + Real.exp (-2 * u)) / 2) ^ (2 * τ - 1) := by + rw [hcosh, Real.mul_rpow (Real.exp_pos u).le hy, ← Real.exp_mul] + have hB : 1 - Real.exp (-2 * (τ * u)) ≠ 0 := by + have hτu : 0 < τ * u := mul_pos hτ0 hu + have : Real.exp (-2 * (τ * u)) < 1 := Real.exp_lt_one_iff.mpr (by linarith) + exact (sub_pos.mpr this).ne' + have e2 : Real.exp (τ * u) = Real.exp ((1 - τ) * u) * Real.exp (u * (2 * τ - 1)) := by + rw [← Real.exp_add]; congr 1; ring + have hE1 : Real.exp ((1 - τ) * u) ≠ 0 := (Real.exp_pos _).ne' + have hE3 : Real.exp (u * (2 * τ - 1)) ≠ 0 := (Real.exp_pos _).ne' + unfold thermalRatio + rw [hsinh ((1 - τ) * u), hsinh (τ * u), hpow, e2] + field_simp + +/-- The ratio `𝔮_τ(u)` tends to `2^{1-2τ}` as `u → ∞`. -/ +theorem tendsto_thermalRatio_atTop {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) : + Tendsto (thermalRatio τ) atTop (𝓝 ((2 : ℝ) ^ (1 - 2 * τ))) := by + have hE : ∀ c : ℝ, 0 < c → Tendsto (fun u : ℝ => Real.exp (-2 * (c * u))) atTop (𝓝 0) := by + intro c hc + have h1 : Tendsto (fun u : ℝ => 2 * (c * u)) atTop atTop := + (tendsto_id.const_mul_atTop hc).const_mul_atTop two_pos + refine (Real.tendsto_exp_neg_atTop_nhds_zero.comp h1).congr fun u => ?_ + change Real.exp (-(2 * (c * u))) = Real.exp (-2 * (c * u)) + rw [neg_mul] + have hA := hE (1 - τ) (by linarith) + have hB := hE τ hτ0 + have hC : Tendsto (fun u : ℝ => Real.exp (-2 * u)) atTop (𝓝 0) := by + refine (hE 1 one_pos).congr fun u => ?_ + rw [one_mul] + have h1 : Tendsto + (fun u : ℝ => (1 - Real.exp (-2 * ((1 - τ) * u))) / (1 - Real.exp (-2 * (τ * u)))) + atTop (𝓝 ((1 - 0) / (1 - 0))) := + (tendsto_const_nhds.sub hA).div (tendsto_const_nhds.sub hB) (by norm_num) + have h2 : Tendsto (fun u : ℝ => ((1 + Real.exp (-2 * u)) / 2) ^ (2 * τ - 1)) atTop + (𝓝 (((1 + 0) / 2) ^ (2 * τ - 1))) := + ((tendsto_const_nhds.add hC).div_const 2).rpow_const (Or.inl (by norm_num)) + have hval : (1 - 0 : ℝ) / (1 - 0) * ((1 + 0) / 2) ^ (2 * τ - 1) = (2 : ℝ) ^ (1 - 2 * τ) := by + rw [sub_zero, div_one, one_mul, add_zero, one_div, Real.inv_rpow (by norm_num : (0 : ℝ) ≤ 2), + ← Real.rpow_neg (by norm_num : (0 : ℝ) ≤ 2), neg_sub] + have h3 := h1.mul h2 + rw [hval] at h3 + refine h3.congr' ?_ + filter_upwards [eventually_gt_atTop 0] with u hu + exact (thermalRatio_eq_exp hτ0 hu).symm + +/-- `c_τ = (1 - τ)/τ` for `1/2 ≤ τ` (at `τ = 1/2` both formulas give `1`). -/ +theorem thermalConst_of_half_le {τ : ℝ} (hτ : 1 / 2 ≤ τ) : thermalConst τ = (1 - τ) / τ := by + unfold thermalConst + split_ifs with h + · have h' : τ = 1 / 2 := le_antisymm h hτ + subst h' + norm_num + · rfl + +/-- For `0 < τ ≤ 1/2` the constant `c_τ = 2^{1-2τ}` is the limit of `𝔮_τ(u)` as `u → ∞`. -/ +theorem tendsto_thermalRatio_atTop_thermalConst {τ : ℝ} (hτ0 : 0 < τ) (hτ : τ ≤ 1 / 2) : + Tendsto (thermalRatio τ) atTop (𝓝 (thermalConst τ)) := by + rw [thermalConst, ite_eq_left hτ] + exact tendsto_thermalRatio_atTop hτ0 (by linarith) + +/-- For `1/2 ≤ τ < 1` the constant `c_τ = (1 - τ)/τ` is the limit of `𝔮_τ(u)` as `u → 0⁺`. -/ +theorem tendsto_thermalRatio_nhdsGT_thermalConst {τ : ℝ} (hτ : 1 / 2 ≤ τ) : + Tendsto (thermalRatio τ) (𝓝[>] 0) (𝓝 (thermalConst τ)) := by + rw [thermalConst_of_half_le hτ] + exact tendsto_thermalRatio_nhdsGT (by linarith) + +/-- Lemma 4.3, the infimum statement (the constants `c_τ` are the infima of the scalar ratios): +for `0 < τ < 1`, `c_τ` is the greatest lower bound of `{𝔮_τ(u) : u > 0}`. -/ +theorem isGLB_thermalRatio {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) : + IsGLB (thermalRatio τ '' Set.Ioi 0) (thermalConst τ) := by + refine ⟨?_, fun b hb => ?_⟩ + · rintro _ ⟨u, hu, rfl⟩ + exact thermalConst_le_thermalRatio hτ0 hτ1 hu + · have hb' : ∀ u : ℝ, 0 < u → b ≤ thermalRatio τ u := fun u hu => + hb (Set.mem_image_of_mem (thermalRatio τ) hu) + by_cases hτ : τ ≤ 1 / 2 + · refine ge_of_tendsto (tendsto_thermalRatio_atTop_thermalConst hτ0 hτ) ?_ + filter_upwards [eventually_gt_atTop 0] with u hu using hb' u hu + · refine ge_of_tendsto (tendsto_thermalRatio_nhdsGT_thermalConst (by linarith)) ?_ + filter_upwards [self_mem_nhdsWithin] with u hu using hb' u hu + +/-- Lemma 4.3, infimum form: `c_τ = inf_{u > 0} 𝔮_τ(u)` for `0 < τ < 1`. -/ +theorem sInf_thermalRatio {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) : + sInf (thermalRatio τ '' Set.Ioi 0) = thermalConst τ := + (isGLB_thermalRatio hτ0 hτ1).csInf_eq (Set.nonempty_Ioi.image _) + +/-- `c_τ ≤ (1 - τ)/τ`, the limit of `𝔮_τ` at `0⁺` (this is the value of `h_τ` at `0`). -/ +theorem thermalConst_le_one_sub_div {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) : + thermalConst τ ≤ (1 - τ) / τ := by + refine ge_of_tendsto (tendsto_thermalRatio_nhdsGT hτ0) ?_ + filter_upwards [self_mem_nhdsWithin] with u hu using thermalConst_le_thermalRatio hτ0 hτ1 hu + +/-! ### The scalar function `h_τ` on `[0, 1]` -/ + +/-- The thermal increment `h_τ(x) = x coth(τ artanh x) - 1` of Section 4.2 (so that +`H_τ(I) = h_τ(d)` by the functional calculus), extended continuously to `[0, 1]`: it takes the +value `(1 - τ)/τ` at `x = 0` and `0` at `x = 1` (`continuousOn_thermalIncrement`). Here +`coth y = cosh y / sinh y`. Values outside `[0, 1]` are never used. -/ +noncomputable def thermalIncrement (τ x : ℝ) : ℝ := + if x = 0 then (1 - τ) / τ + else if x = 1 then 0 + else x * (Real.cosh (τ * Real.artanh x) / Real.sinh (τ * Real.artanh x)) - 1 + +/-- `h_τ(0) = (1 - τ)/τ`. -/ +theorem thermalIncrement_zero (τ : ℝ) : thermalIncrement τ 0 = (1 - τ) / τ := by + rw [thermalIncrement, ite_eq_left rfl] + +/-- `h_τ(1) = 0`. -/ +theorem thermalIncrement_one (τ : ℝ) : thermalIncrement τ 1 = 0 := by + rw [thermalIncrement, ite_eq_right one_ne_zero, ite_eq_left rfl] + +/-- For `0 < x < 1`, `h_τ(x) = x coth(τ artanh x) - 1`. -/ +theorem thermalIncrement_of_mem_Ioo {τ x : ℝ} (hx : x ∈ Set.Ioo (0 : ℝ) 1) : + thermalIncrement τ x + = x * (Real.cosh (τ * Real.artanh x) / Real.sinh (τ * Real.artanh x)) - 1 := by + rw [thermalIncrement, ite_eq_right hx.1.ne', ite_eq_right hx.2.ne] + +/-- At `x = tanh u` with `u > 0`: `h_τ(tanh u) = tanh u · coth(τu) - 1`, the right side of +`thermal_increment_ge`. -/ +theorem thermalIncrement_tanh {τ u : ℝ} (hu : 0 < u) : + thermalIncrement τ (Real.tanh u) + = Real.tanh u * (Real.cosh (τ * u) / Real.sinh (τ * u)) - 1 := by + have h0 : 0 < Real.tanh u := by + rw [Real.tanh_eq_sinh_div_cosh] + exact div_pos (Real.sinh_pos_iff.mpr hu) (Real.cosh_pos u) + rw [thermalIncrement_of_mem_Ioo ⟨h0, Real.tanh_lt_one u⟩, Real.artanh_tanh] + +/-- Lemma 4.3 on the closed interval: `h_τ(x) ≥ c_τ (1 - x²)^τ` for `0 < τ < 1` and +`x ∈ [0, 1]` (interior: `thermal_increment_ge` with `x = tanh u`; endpoints directly). -/ +theorem thermalIncrement_ge {τ x : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) + (hx : x ∈ Set.Icc (0 : ℝ) 1) : + thermalConst τ * (1 - x ^ 2) ^ τ ≤ thermalIncrement τ x := by + obtain ⟨hx0, hx1⟩ := hx + rcases hx0.eq_or_lt with rfl | hx0 + · have h0 : thermalConst τ * (1 - (0 : ℝ) ^ 2) ^ τ = thermalConst τ := by + rw [zero_pow two_ne_zero, sub_zero, Real.one_rpow, mul_one] + rw [h0, thermalIncrement_zero] + exact thermalConst_le_one_sub_div hτ0 hτ1 + rcases hx1.lt_or_eq with hx1 | rfl + · have hu : 0 < Real.artanh x := Real.artanh_pos ⟨hx0, hx1⟩ + have hx : Real.tanh (Real.artanh x) = x := Real.tanh_artanh ⟨by linarith, hx1⟩ + rw [← hx, thermalIncrement_tanh hu] + exact thermal_increment_ge hτ0 hτ1 hu + · have h1 : thermalConst τ * (1 - (1 : ℝ) ^ 2) ^ τ = 0 := by + rw [one_pow, sub_self, Real.zero_rpow hτ0.ne', mul_zero] + exact (h1.trans (thermalIncrement_one τ).symm).le + +/-- `c_τ > 0` for `0 < τ < 1`. -/ +theorem thermalConst_pos {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) : 0 < thermalConst τ := by + unfold thermalConst + split_ifs + · exact Real.rpow_pos_of_pos two_pos _ + · exact div_pos (by linarith) hτ0 + +/-- `h_τ ≥ 0` on `[0, 1]` for `0 < τ < 1` (a consequence of `thermalIncrement_ge`). -/ +theorem thermalIncrement_nonneg {τ x : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) + (hx : x ∈ Set.Icc (0 : ℝ) 1) : 0 ≤ thermalIncrement τ x := by + have h : 0 ≤ 1 - x ^ 2 := by + obtain ⟨hx0, hx1⟩ := hx + nlinarith + exact (mul_nonneg (thermalConst_pos hτ0 hτ1).le (Real.rpow_nonneg h τ)).trans + (thermalIncrement_ge hτ0 hτ1 hx) + +/-! ### Continuity of `h_τ` on `[0, 1]` -/ + +/-- With `x = tanh u`: `coth(τu) = ((1 + x)^τ + (1 - x)^τ) / ((1 + x)^τ - (1 - x)^τ)`. -/ +theorem coth_mul_eq_rpow (τ u : ℝ) : + Real.cosh (τ * u) / Real.sinh (τ * u) + = ((1 + Real.tanh u) ^ τ + (1 - Real.tanh u) ^ τ) + / ((1 + Real.tanh u) ^ τ - (1 - Real.tanh u) ^ τ) := by + have hc := Real.cosh_pos u + have h1 : (1 + Real.tanh u) ^ τ = Real.exp (τ * u) * Real.cosh u ^ (-τ) := by + have e : 1 + Real.tanh u = Real.exp u / Real.cosh u := by + rw [Real.tanh_eq_sinh_div_cosh, eq_div_iff hc.ne', add_mul, one_mul, + div_mul_cancel₀ _ hc.ne', Real.cosh_add_sinh] + rw [e, Real.div_rpow (Real.exp_pos u).le hc.le, ← Real.exp_mul, Real.rpow_neg hc.le, + div_eq_mul_inv, mul_comm u τ] + have h2 : (1 - Real.tanh u) ^ τ = Real.exp (-(τ * u)) * Real.cosh u ^ (-τ) := by + have e : 1 - Real.tanh u = Real.exp (-u) / Real.cosh u := by + rw [Real.tanh_eq_sinh_div_cosh, eq_div_iff hc.ne', sub_mul, one_mul, + div_mul_cancel₀ _ hc.ne', Real.cosh_sub_sinh] + rw [e, Real.div_rpow (Real.exp_pos _).le hc.le, ← Real.exp_mul, Real.rpow_neg hc.le, + div_eq_mul_inv, neg_mul, mul_comm u τ] + rw [h1, h2, ← add_mul, ← sub_mul, + mul_div_mul_right _ _ (Real.rpow_pos_of_pos hc (-τ)).ne', + Real.cosh_eq (τ * u), Real.sinh_eq (τ * u), + div_div_div_cancel_right₀ (two_ne_zero : (2 : ℝ) ≠ 0)] + +/-- Closed form of `h_τ` on `(0, 1]`: +`h_τ(x) = x ((1 + x)^τ + (1 - x)^τ) / ((1 + x)^τ - (1 - x)^τ) - 1`. -/ +theorem thermalIncrement_eq_of_pos {τ x : ℝ} (hτ0 : 0 < τ) (hx0 : 0 < x) (hx1 : x ≤ 1) : + thermalIncrement τ x + = x * (((1 + x) ^ τ + (1 - x) ^ τ) / ((1 + x) ^ τ - (1 - x) ^ τ)) - 1 := by + rcases hx1.lt_or_eq with hx1 | rfl + · have hx : Real.tanh (Real.artanh x) = x := Real.tanh_artanh ⟨by linarith, hx1⟩ + rw [thermalIncrement_of_mem_Ioo ⟨hx0, hx1⟩, coth_mul_eq_rpow, hx] + · rw [thermalIncrement_one, sub_self, Real.zero_rpow hτ0.ne', add_zero, sub_zero, + div_self (Real.rpow_pos_of_pos (by norm_num : (0 : ℝ) < 1 + 1) τ).ne', mul_one, sub_self] + +/-- `D_τ(x) = (1 + x)^τ - (1 - x)^τ`, the denominator of the closed form of `h_τ`; its +difference quotient `dslope D_τ 0` is continuous, with value `2τ` at `0`. -/ +noncomputable def thermalDiff (τ x : ℝ) : ℝ := (1 + x) ^ τ - (1 - x) ^ τ + +/-- `D_τ(0) = 0`. -/ +theorem thermalDiff_zero (τ : ℝ) : thermalDiff τ 0 = 0 := by + rw [thermalDiff, add_zero, sub_zero, sub_self] + +/-- `D_τ'(0) = 2τ`. -/ +theorem hasDerivAt_thermalDiff (τ : ℝ) : HasDerivAt (thermalDiff τ) (2 * τ) 0 := by + have h1 : HasDerivAt (fun x : ℝ => 1 + x) 1 0 := (hasDerivAt_id' (x := (0 : ℝ))).const_add 1 + have h2 : HasDerivAt (fun x : ℝ => 1 - x) (-1) 0 := + (hasDerivAt_id' (x := (0 : ℝ))).const_sub 1 + have h3 := h1.rpow_const (p := τ) (Or.inl (by norm_num)) + have h4 := h2.rpow_const (p := τ) (Or.inl (by norm_num)) + have h5 : HasDerivAt (thermalDiff τ) + (1 * τ * (1 + 0 : ℝ) ^ (τ - 1) - -1 * τ * (1 - 0 : ℝ) ^ (τ - 1)) 0 := h3.sub h4 + have e : (1 * τ * (1 + 0 : ℝ) ^ (τ - 1) - -1 * τ * (1 - 0 : ℝ) ^ (τ - 1)) = 2 * τ := by + rw [add_zero, sub_zero, Real.one_rpow]; ring + rwa [e] at h5 + +/-- `D_τ` is continuous for `τ ≥ 0`. -/ +theorem continuous_thermalDiff {τ : ℝ} (hτ : 0 ≤ τ) : Continuous (thermalDiff τ) := by + have h1 : Continuous (fun x : ℝ => (1 + x) ^ τ) := + (continuous_const.add continuous_id).rpow_const fun _ => Or.inr hτ + have h2 : Continuous (fun x : ℝ => (1 - x) ^ τ) := + (continuous_const.sub continuous_id).rpow_const fun _ => Or.inr hτ + exact h1.sub h2 + +/-- `D_τ(x) > 0` for `0 < x ≤ 1` and `τ > 0`. -/ +theorem thermalDiff_pos {τ x : ℝ} (hτ0 : 0 < τ) (hx0 : 0 < x) (hx1 : x ≤ 1) : + 0 < thermalDiff τ x := by + have h := Real.rpow_lt_rpow (by linarith : (0 : ℝ) ≤ 1 - x) (by linarith : 1 - x < 1 + x) hτ0 + rw [thermalDiff] + exact sub_pos.mpr h + +/-- The difference quotient `dslope D_τ 0` is continuous for `τ ≥ 0`. -/ +theorem continuous_dslope_thermalDiff {τ : ℝ} (hτ : 0 ≤ τ) : + Continuous (dslope (thermalDiff τ) 0) := by + rw [← continuousOn_univ] + exact (continuousOn_dslope Filter.univ_mem).mpr + ⟨(continuous_thermalDiff hτ).continuousOn, (hasDerivAt_thermalDiff τ).differentiableAt⟩ + +/-- `dslope D_τ 0 0 = 2τ`. -/ +theorem dslope_thermalDiff_zero (τ : ℝ) : dslope (thermalDiff τ) 0 0 = 2 * τ := by + rw [dslope_same, (hasDerivAt_thermalDiff τ).deriv] + +/-- `dslope D_τ 0 x = D_τ(x)/x` for `x ≠ 0`. -/ +theorem dslope_thermalDiff_of_ne {τ x : ℝ} (hx : x ≠ 0) : + dslope (thermalDiff τ) 0 x = thermalDiff τ x / x := by + rw [dslope_of_ne _ hx, slope_def_field, thermalDiff_zero, sub_zero, sub_zero] + +/-- On `[0, 1]`, `h_τ(x) = ((1 + x)^τ + (1 - x)^τ) / dslope D_τ 0 x - 1`: a quotient of +continuous functions with nonvanishing denominator. -/ +theorem thermalIncrement_eq_dslope {τ x : ℝ} (hτ0 : 0 < τ) (hx : x ∈ Set.Icc (0 : ℝ) 1) : + thermalIncrement τ x = ((1 + x) ^ τ + (1 - x) ^ τ) / dslope (thermalDiff τ) 0 x - 1 := by + obtain ⟨hx0, hx1⟩ := hx + rcases hx0.eq_or_lt with rfl | hx0 + · have hτ : τ ≠ 0 := hτ0.ne' + rw [dslope_thermalDiff_zero, thermalIncrement_zero, add_zero, sub_zero, Real.one_rpow] + rw [div_sub_one (mul_ne_zero two_ne_zero hτ), div_eq_div_iff hτ (mul_ne_zero two_ne_zero hτ)] + ring + · rw [dslope_thermalDiff_of_ne hx0.ne', thermalIncrement_eq_of_pos hτ0 hx0 hx1, thermalDiff, + div_div_eq_mul_div, mul_comm _ x, mul_div_assoc] + +/-- `h_τ` is continuous on `[0, 1]` for `τ > 0`. -/ +theorem continuousOn_thermalIncrement {τ : ℝ} (hτ0 : 0 < τ) : + ContinuousOn (thermalIncrement τ) (Set.Icc 0 1) := by + have hN : Continuous (fun x : ℝ => (1 + x) ^ τ + (1 - x) ^ τ) := by + have h1 : Continuous (fun x : ℝ => (1 + x) ^ τ) := + (continuous_const.add continuous_id).rpow_const fun _ => Or.inr hτ0.le + have h2 : Continuous (fun x : ℝ => (1 - x) ^ τ) := + (continuous_const.sub continuous_id).rpow_const fun _ => Or.inr hτ0.le + exact h1.add h2 + have hne : ∀ x ∈ Set.Icc (0 : ℝ) 1, dslope (thermalDiff τ) 0 x ≠ 0 := by + rintro x ⟨hx0, hx1⟩ + rcases hx0.eq_or_lt with rfl | hx0 + · rw [dslope_thermalDiff_zero] + exact (mul_pos two_pos hτ0).ne' + · rw [dslope_thermalDiff_of_ne hx0.ne'] + exact (div_pos (thermalDiff_pos hτ0 hx0 hx1) hx0).ne' + have hG : ContinuousOn + (fun x : ℝ => ((1 + x) ^ τ + (1 - x) ^ τ) / dslope (thermalDiff τ) 0 x - 1) + (Set.Icc 0 1) := + (hN.continuousOn.div (continuous_dslope_thermalDiff hτ0.le).continuousOn hne).sub + continuousOn_const + exact hG.congr fun x hx => thermalIncrement_eq_dslope hτ0 hx + +/-! ### Operator form (Lemma 4.3 for a positive contraction `d`) -/ + +section Operator + +variable {A : Type*} [CStarAlgebra A] [PartialOrder A] [StarOrderedRing A] + +/-- Lemma 4.3, functional-calculus form: if the spectrum of `a` lies in `[0, 1]`, then +`c_τ · cfc (x ↦ (1 - x²)^τ) a ≤ cfc h_τ a` (real continuous functional calculus). The left +factor is `R^{2τ}` for `R = (1 - a²)^{1/2}` (see `thermal_comparison`). The meaningful case is +`IsSelfAdjoint a`: otherwise both sides are `0` by the convention of `cfc`; `thermal_comparison` +assumes `0 ≤ d ≤ 1`, which includes self-adjointness. -/ +theorem thermalConst_smul_cfc_le_cfc_thermalIncrement {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) + {a : A} (hspec : spectrum ℝ a ⊆ Set.Icc 0 1) : + thermalConst τ • cfc (fun x : ℝ => (1 - x ^ 2) ^ τ) a ≤ cfc (thermalIncrement τ) a := by + have hR : Continuous (fun x : ℝ => (1 - x ^ 2) ^ τ) := + (continuous_const.sub (continuous_pow 2)).rpow_const fun _ => Or.inr hτ0.le + rw [← cfc_const_mul (thermalConst τ) (fun x : ℝ => (1 - x ^ 2) ^ τ) a hR.continuousOn] + exact cfc_mono (fun x hx => thermalIncrement_ge hτ0 hτ1 (hspec hx)) + (continuous_const.mul hR).continuousOn ((continuousOn_thermalIncrement hτ0).mono hspec) + +omit [PartialOrder A] [StarOrderedRing A] in +/-- `cfc (x ↦ 1 - x²) a = 1 - a²` for self-adjoint `a`. -/ +theorem cfc_one_sub_sq {a : A} (ha : IsSelfAdjoint a) : + cfc (fun x : ℝ => 1 - x ^ 2) a = 1 - a ^ 2 := by + rw [cfc_sub (fun _ : ℝ => (1 : ℝ)) (fun x : ℝ => x ^ 2) a, cfc_const_one ℝ a ha, + cfc_pow_id (R := ℝ) a 2 ha] + +/-- `1 - a² ≥ 0` for self-adjoint `a` with `x² ≤ 1` on its spectrum. -/ +theorem one_sub_sq_nonneg {a : A} (ha : IsSelfAdjoint a) + (hspec : ∀ x ∈ spectrum ℝ a, x ^ 2 ≤ 1) : (0 : A) ≤ 1 - a ^ 2 := by + rw [← cfc_one_sub_sq ha] + exact cfc_nonneg fun x hx => sub_nonneg.mpr (hspec x hx) + +/-- The real power `(1 - a²)^τ` of the positive element `1 - a²` (`CFC.rpow`) equals +`cfc (x ↦ (1 - x²)^τ) a`, for self-adjoint `a` with `x² ≤ 1` on its spectrum and `τ ≥ 0`. -/ +theorem one_sub_sq_rpow_eq_cfc {τ : ℝ} (hτ : 0 ≤ τ) {a : A} (ha : IsSelfAdjoint a) + (hspec : ∀ x ∈ spectrum ℝ a, x ^ 2 ≤ 1) : + (1 - a ^ 2) ^ τ = cfc (fun x : ℝ => (1 - x ^ 2) ^ τ) a := by + have hf : Continuous (fun x : ℝ => 1 - x ^ 2) := continuous_const.sub (continuous_pow 2) + rw [CFC.rpow_eq_cfc_real (one_sub_sq_nonneg ha hspec), ← cfc_one_sub_sq ha, + ← cfc_comp' (fun y : ℝ => y ^ τ) (fun x : ℝ => 1 - x ^ 2) a + (Real.continuous_rpow_const hτ).continuousOn hf.continuousOn ha] + +/-- `cfc (x ↦ (1 - x²)^τ) a = (cfc (x ↦ √(1 - x²)) a)^{2τ}` (`CFC.rpow`), for self-adjoint `a` +with `x² ≤ 1` on its spectrum and `τ ≥ 0`: the left side of the functional-calculus form is +`R^{2τ}` for `R = cfc (x ↦ √(1 - x²)) a`. -/ +theorem cfc_one_sub_sq_rpow_eq_cfc_sqrt_rpow {τ : ℝ} (hτ : 0 ≤ τ) {a : A} (ha : IsSelfAdjoint a) + (hspec : ∀ x ∈ spectrum ℝ a, x ^ 2 ≤ 1) : + cfc (fun x : ℝ => (1 - x ^ 2) ^ τ) a + = (cfc (fun x : ℝ => Real.sqrt (1 - x ^ 2)) a) ^ (2 * τ) := by + have hs : Continuous (fun x : ℝ => Real.sqrt (1 - x ^ 2)) := + (continuous_const.sub (continuous_pow 2)).sqrt + have h0 : (0 : A) ≤ cfc (fun x : ℝ => Real.sqrt (1 - x ^ 2)) a := + cfc_nonneg fun x _ => Real.sqrt_nonneg _ + rw [CFC.rpow_eq_cfc_real h0, + ← cfc_comp' (fun y : ℝ => y ^ (2 * τ)) (fun x : ℝ => Real.sqrt (1 - x ^ 2)) a + (Real.continuous_rpow_const (by linarith)).continuousOn hs.continuousOn ha] + refine cfc_congr fun x hx => ?_ + have h1 : 0 ≤ 1 - x ^ 2 := sub_nonneg.mpr (hspec x hx) + change (1 - x ^ 2) ^ τ = Real.sqrt (1 - x ^ 2) ^ (2 * τ) + rw [Real.sqrt_eq_rpow, ← Real.rpow_mul h1] + congr 1 + ring + +/-- `R^{2τ} = (1 - a²)^τ` for `R = (1 - a²)^{1/2}` (`CFC.sqrt`), if `1 - a² ≥ 0` and `τ ≥ 0`. -/ +theorem sqrt_one_sub_sq_rpow {τ : ℝ} (hτ : 0 ≤ τ) {a : A} (h0 : (0 : A) ≤ 1 - a ^ 2) : + CFC.sqrt (1 - a ^ 2) ^ (2 * τ) = (1 - a ^ 2) ^ τ := by + rw [CFC.sqrt_eq_rpow, CFC.rpow_rpow_of_exponent_nonneg (1 - a ^ 2) (1 / 2) (2 * τ) + (by norm_num) (by linarith) h0] + congr 1 + ring + +/-- **Lemma 4.3 (thermal comparison), operator form.** Let `d` be a positive contraction +(`0 ≤ d ≤ 1`) in a unital C⋆-algebra, `R = (1 - d²)^{1/2}` (`CFC.sqrt`) and +`H_τ(I) = h_τ(d) = d coth(τ artanh d) - 1` (continuous functional calculus with the +continuous extension `thermalIncrement`). Then `H_τ(I) ≥ c_τ R^{2τ}` for `0 < τ < 1`, where +`R^{2τ}` is the real power (`CFC.rpow`) of the positive element `R`. -/ +theorem thermal_comparison {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) {d : A} (hd0 : 0 ≤ d) + (hd1 : d ≤ 1) : + thermalConst τ • CFC.sqrt (1 - d ^ 2) ^ (2 * τ) ≤ cfc (thermalIncrement τ) d := by + have hsa : IsSelfAdjoint d := IsSelfAdjoint.of_nonneg hd0 + have hspec : spectrum ℝ d ⊆ Set.Icc 0 1 := fun x hx => + ⟨spectrum_nonneg_of_nonneg hd0 hx, (CFC.le_one_iff (R := ℝ) d hsa).mp hd1 x hx⟩ + have hsq : ∀ x ∈ spectrum ℝ d, x ^ 2 ≤ 1 := fun x hx => by + obtain ⟨h0, h1⟩ := hspec hx + nlinarith + rw [sqrt_one_sub_sq_rpow hτ0.le (one_sub_sq_nonneg hsa hsq), + one_sub_sq_rpow_eq_cfc hτ0.le hsa hsq] + exact thermalConst_smul_cfc_le_cfc_thermalIncrement hτ0 hτ1 hspec + +/-- Lemma 4.3, operator form, with the contraction hypothesis stated as `‖d‖ ≤ 1`. -/ +theorem thermal_comparison_of_norm_le_one {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) {d : A} + (hd0 : 0 ≤ d) (hd1 : ‖d‖ ≤ 1) : + thermalConst τ • CFC.sqrt (1 - d ^ 2) ^ (2 * τ) ≤ cfc (thermalIncrement τ) d := + thermal_comparison hτ0 hτ1 hd0 ((CStarAlgebra.norm_le_one_iff_of_nonneg d hd0).mp hd1) + +/-- `H_τ(I) = h_τ(d) ≥ 0`: the functional calculus of `h_τ` gives a positive element when the +spectrum of `d` lies in `[0, 1]` and `0 < τ < 1` (for non-self-adjoint `a` the left side is `0` +by the +convention of `cfc`, so the meaningful case is `IsSelfAdjoint a`). -/ +theorem cfc_thermalIncrement_nonneg {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) {a : A} + (hspec : spectrum ℝ a ⊆ Set.Icc 0 1) : 0 ≤ cfc (thermalIncrement τ) a := + cfc_nonneg fun _ hx => thermalIncrement_nonneg hτ0 hτ1 (hspec hx) + +end Operator + +/-- Lemma 4.3, operator form, for bounded operators on a complex Hilbert space +(`0 ≤ d ≤ 1` in the Loewner order). -/ +theorem thermal_comparison_clm {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] + [CompleteSpace H] {τ : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) {d : H →L[ℂ] H} (hd0 : 0 ≤ d) + (hd1 : d ≤ 1) : + thermalConst τ • CFC.sqrt (1 - d ^ 2) ^ (2 * τ) ≤ cfc (thermalIncrement τ) d := + thermal_comparison hτ0 hτ1 hd0 hd1 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalParallel.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalParallel.lean new file mode 100644 index 0000000000..24c0288ddf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalParallel.lean @@ -0,0 +1,84 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ParallelSum + +/-! +# Finite parallel families of weighted geometric means + +The order-theoretic composition used in Lemma 4.4, equation (4.12). For +`r = n + 2`, the actual family consists of the `r - 1` means with weights +`1/r, ..., (r-1)/r`. The theorem here proves its compression inequality +on strictly positive inputs. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Strict positivity of a weighted mean follows from its defining +congruences and powers. No commutation of the inputs is needed. -/ +theorem weightedGeometricMean_isStrictlyPositive {A B : F →L[ℂ] F} + (hA : IsStrictlyPositive A) (hB : IsStrictlyPositive B) (p : ℝ) : + IsStrictlyPositive (weightedGeometricMean p A B) := by + have hN := IsStrictlyPositive.rpow A (-(1 / 2) : ℝ) hA + have hH := IsStrictlyPositive.rpow A (1 / 2 : ℝ) hA + have hX : IsStrictlyPositive + (A ^ (-(1 / 2) : ℝ) * B * A ^ (-(1 / 2) : ℝ)) := + IsStrictlyPositive.conjugate_of_isUnit_of_isSelfAdjoint _ _ hN.isUnit + hN.nonneg.isSelfAdjoint hB + exact IsStrictlyPositive.conjugate_of_isUnit_of_isSelfAdjoint _ _ hH.isUnit + hH.nonneg.isSelfAdjoint (IsStrictlyPositive.rpow _ p hX) + +/-- The `j+1`-st thermal weight for the integer `r = n+2`. -/ +def thermalMeanWeight {n : ℕ} (j : Fin (n + 1)) : ℝ := + ((j.val + 1 : ℕ) : ℝ) / ((n + 2 : ℕ) : ℝ) + +theorem thermalMeanWeight_pos {n : ℕ} (j : Fin (n + 1)) : + 0 < thermalMeanWeight j := by + unfold thermalMeanWeight + positivity + +theorem thermalMeanWeight_lt_one {n : ℕ} (j : Fin (n + 1)) : + thermalMeanWeight j < 1 := by + unfold thermalMeanWeight + apply (div_lt_one (by positivity : (0 : ℝ) < ((n + 2 : ℕ) : ℝ))).mpr + exact_mod_cast (show j.val + 1 < n + 2 by omega) + +/-- The right-hand side of the source's parallel thermal formula, before +its identification with functional calculus of the commutation operator. -/ +noncomputable def geometricParallel (n : ℕ) (A B : F →L[ℂ] F) : F →L[ℂ] F := + parallelFamily (fun j : Fin (n + 1) => weightedGeometricMean (thermalMeanWeight j) A B) + +theorem geometricParallel_isStrictlyPositive (n : ℕ) {A B : F →L[ℂ] F} + (hA : IsStrictlyPositive A) (hB : IsStrictlyPositive B) : + IsStrictlyPositive (geometricParallel n A B) := + parallelFamily_isStrictlyPositive fun j => + weightedGeometricMean_isStrictlyPositive hA hB (thermalMeanWeight j) + +/-- Compression increases the parallel family of the `r-1` geometric +means. This is the order step in the first inequality of (4.11), with +strict positivity stated explicitly. -/ +theorem compression_geometricParallel_le (ι : E →ₗᵢ[ℂ] F) (n : ℕ) + {A B : F →L[ℂ] F} (hA : IsStrictlyPositive A) (hB : IsStrictlyPositive B) : + compression ι (geometricParallel n A B) ≤ + geometricParallel n (compression ι A) (compression ι B) := by + exact (compression_parallelFamily_le ι _ (fun j => + weightedGeometricMean_isStrictlyPositive hA hB (thermalMeanWeight j))).trans + (parallelFamily_mono (fun j => compression_isStrictlyPositive ι + (weightedGeometricMean_isStrictlyPositive hA hB (thermalMeanWeight j))) + (fun j => compression_weightedGeometricMean_le ι hA hB.nonneg + (thermalMeanWeight_pos j) (thermalMeanWeight_lt_one j).le)) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalPartitionCancellation.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPartitionCancellation.lean new file mode 100644 index 0000000000..1b19415b14 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPartitionCancellation.lean @@ -0,0 +1,78 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedDensityPowers +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumModePositivity +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalDensityCharacteristic + +/-! +# Cancellation of actual thermal partition functions + +The true CFC identity (σ^a)^r=σ when ar=1 and the genuine trace-one +normalization prove the cancellation used in the Gaussian Rényi bound. +All traces are finite and strictly positive before taking logarithms. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {m : ℕ} {q : Fin m → ℝ} {a r : ℝ} + +theorem positiveTrace_multiModeThermalDensity_rpow_pos_finite + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (ha : 0 < a) : + 0 < positiveTrace (multiModeThermalDensity q ^ a) ∧ + positiveTrace (multiModeThermalDensity q ^ a) < ⊤ := by + rw [positiveTrace_multiModeThermalDensity_rpow hq₀ hq₁ ha] + exact ⟨ENNReal.ofReal_pos.mpr (multiThermalPowerTrace_pos hq₀ hq₁ ha), + ENNReal.ofReal_lt_top⟩ + +theorem normalizedPositiveDensity_thermal_power + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (ha : 0 < a) : + normalizedPositiveDensity (multiModeThermalDensity q ^ a) = + multiModeThermalDensity (fun j => q j ^ a) := + normalizedMultiThermalPower_eq_density hq₀ hq₁ ha + +theorem normalizedPositiveDensity_thermal_power_characteristic + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (ha : 0 < a) : + HasGaussianPhysicalCharacteristic + (normalizedPositiveDensity (multiModeThermalDensity q ^ a)) + (thermalPowerCovariance q a) := by + rw [normalizedPositiveDensity_thermal_power hq₀ hq₁ ha] + exact multiModeThermalDensity_hasGaussianPhysicalCharacteristic + (fun j => Real.rpow_nonneg (hq₀ j) _) (fun j => Real.rpow_lt_one (hq₀ j) (hq₁ j) ha) + +theorem thermalPowerCovariance_partition_cancellation + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) + (ha : 0 < a) (hr : 0 < r) (har : a * r = 1) : + r * Real.log (positiveTrace (multiModeThermalDensity q ^ a)).toReal + + covariancePurityTrace r (thermalPowerCovariance q a) = 0 := by + have htc := multiModeThermalDensity_rpow_isPositiveTraceClass (fun j => (hq₀ j).le) hq₁ ha + have ht := positiveTrace_multiModeThermalDensity_rpow_pos_finite (fun j => (hq₀ j).le) hq₁ ha + have hntc := normalizedPositiveDensity_isPositiveTraceClass (multiModeNumberBasis m) htc + have hT := thermalPowerCovariance_posDef (fun j => (hq₀ j).le) hq₁ ha + have hQ := thermalPowerCovariance_quantum_posDef hq₀ hq₁ ha + have hG := normalizedPositiveDensity_thermal_power_characteristic (fun j => (hq₀ j).le) hq₁ ha + have hn := gaussianPhysical_rpow_trace_pos_finite_of_strict_quantum hntc hT hQ hG hr + have h := log_positiveTrace_rpow_normalization (multiModeNumberBasis m) htc ht.1 hr.le hn + have hp : (multiModeThermalDensity q ^ a) ^ r = multiModeThermalDensity q := by + rw [CFC.rpow_rpow_of_exponent_nonneg (multiModeThermalDensity q) a r ha.le hr.le + (multiModeThermalDensity_nonneg (fun j => (hq₀ j).le) hq₁), har, + CFC.rpow_one _ (multiModeThermalDensity_nonneg (fun j => (hq₀ j).le) hq₁)] + have hlog := congrArg (fun ρ => Real.log (positiveTrace ρ).toReal) hp + rw [positiveTrace_multiModeThermalDensity (fun j => (hq₀ j).le) hq₁, + ENNReal.toReal_one, Real.log_one] at hlog + have hpurity := log_positiveTrace_gaussianPhysical_rpow_eq_purity hntc hT hQ hG hr + exact (congrArg (fun x => r * Real.log (positiveTrace (multiModeThermalDensity q ^ a)).toReal + x) + hpurity.symm).trans (hlog.symm.trans h).symm + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalPerturbationMultiplier.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPerturbationMultiplier.lean new file mode 100644 index 0000000000..488d63bfc1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPerturbationMultiplier.lean @@ -0,0 +1,159 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CovarianceResolventPerturbation +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianAppendixA +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalVarianceComparison + +/-! +# The actual thermal covariance perturbation multiplier + +For τ in (0,1), the genuine multiplier T_(1-τ)^(-1/2) L H^(-1/2) +has squared operator norm at most 1+max{1,(1-τ)/τ}. The scalar thermal +identity and the actual diagonal square-root calculus prove this bound. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +theorem modeDiagonal_sqrt {m : ℕ} {d : Fin m → ℝ} (hd : ∀ j, 0 ≤ d j) : + CFC.sqrt (modeDiagonal d) = modeDiagonal (fun j => Real.sqrt (d j)) := by + apply CFC.sqrt_unique + · rw [modeDiagonal_mul] + congr 1 + funext j + exact Real.mul_self_sqrt (hd j) + · exact (Matrix.PosSemidef.diagonal (fun i => Real.sqrt_nonneg (d i.1))).nonneg + +/-- Thermal power covariance defined as `modeDiagonal (fun j => thermalQuadratureVariance (q j ^ +a))`. -/ +def thermalPowerCovariance {m : ℕ} (q : Fin m → ℝ) (a : ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ a)) + +theorem thermalPowerCovariance_posDef {m : ℕ} {q : Fin m → ℝ} {a : ℝ} + (hq₀ : ∀ j, 0 ≤ q j) (hq₁ : ∀ j, q j < 1) (ha : 0 < a) : + (thermalPowerCovariance q a).PosDef := by + apply modeDiagonal_posDef + intro j + have h := half_le_thermalQuadratureVariance (Real.rpow_nonneg (hq₀ j) _) + (Real.rpow_lt_one (hq₀ j) (hq₁ j) ha) + linarith + +/-- Thermal perturbation constant given by `1 + max 1 ((1 - τ) / τ)`. -/ +def thermalPerturbationConstant (τ : ℝ) : ℝ := 1 + max 1 ((1 - τ) / τ) + +/-- Thermal perturbation multiplier. -/ +def thermalPerturbationMultiplier {m : ℕ} (q : Fin m → ℝ) (τ : ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + covariancePerturbationMultiplier (thermalPowerCovariance q (1 - τ)) + (thermalReferenceGap q τ) (thermalWoodburyFactor q τ) + +/-- Thermal perturbation coefficient. -/ +def thermalPerturbationCoefficient (q τ : ℝ) : ℝ := + (Real.sqrt (thermalQuadratureVariance (q ^ (1 - τ))))⁻¹ * + (q ^ (-(τ / 2)) * (q ^ (-τ) - 1)⁻¹) * + (Real.sqrt (thermalQuadratureVariance (q ^ τ) - thermalQuadratureVariance q))⁻¹ + +theorem thermal_reference_scalar_identity {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + (thermalQuadratureVariance (q ^ τ) ^ 2 - 1 / 4) / + (thermalQuadratureVariance (q ^ τ) - thermalQuadratureVariance q) = + thermalQuadratureVariance (q ^ (1 - τ)) + thermalQuadratureVariance (q ^ τ) := by + have h := thermalSandwich_covariance_appendixA hq₁ (Real.rpow_pos_of_pos hq₀ τ) + (Real.rpow_lt_one hq₀.le hq₁ hτ₀) (thermal_parameter_lt_rpow hq₀ hq₁ hτ₁) + have hquot : q / q ^ τ = q ^ (1 - τ) := by + rw [Real.rpow_sub hq₀, Real.rpow_one] + rw [hquot] at h + linarith + +theorem thermalPerturbationCoefficient_sq {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + thermalPerturbationCoefficient q τ ^ 2 = + 1 + thermalQuadratureVariance (q ^ τ) / thermalQuadratureVariance (q ^ (1 - τ)) := by + have hv : 0 < thermalQuadratureVariance (q ^ (1 - τ)) := by + have h := half_le_thermalQuadratureVariance (Real.rpow_nonneg hq₀.le _) + (Real.rpow_lt_one hq₀.le hq₁ (sub_pos.mpr hτ₁)) + linarith + have hH : 0 < thermalQuadratureVariance (q ^ τ) - thermalQuadratureVariance q := + sub_pos.mpr ((thermalQuadratureVariance_lt_iff hq₁ + (Real.rpow_lt_one hq₀.le hq₁ hτ₀)).mpr (thermal_parameter_lt_rpow hq₀ hq₁ hτ₁)) + have hL : (q ^ (-(τ / 2)) * (q ^ (-τ) - 1)⁻¹) ^ 2 = + thermalQuadratureVariance (q ^ τ) ^ 2 - 1 / 4 := by + have h := thermal_scalar_dilation_threshold hq₀ hq₁ hτ₀ + have hi := thermal_scalar_excess_inverse hq₀ hq₁ hτ₀ + calc + _ = (q ^ (-(τ / 2)) * (q ^ (-τ) - 1)⁻¹ * q ^ (-(τ / 2))) * + (q ^ (-τ) - 1)⁻¹ := by ring + _ = _ := by rw [h, hi]; ring + rw [thermalPerturbationCoefficient, mul_pow, mul_pow, inv_pow, inv_pow, + Real.sq_sqrt hv.le, Real.sq_sqrt hH.le, hL] + calc + _ = (thermalQuadratureVariance (q ^ (1 - τ)))⁻¹ * + ((thermalQuadratureVariance (q ^ τ) ^ 2 - 1 / 4) / + (thermalQuadratureVariance (q ^ τ) - thermalQuadratureVariance q)) := by ring + _ = _ := by + rw [thermal_reference_scalar_identity hq₀ hq₁ hτ₀ hτ₁] + field_simp [hv.ne'] + +theorem thermalPerturbationMultiplier_diagonal {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + thermalPerturbationMultiplier q τ = + modeDiagonal (fun j => thermalPerturbationCoefficient (q j) τ) := by + have hv (j : Fin m) : 0 < thermalQuadratureVariance (q j ^ (1 - τ)) := by + have h := half_le_thermalQuadratureVariance (Real.rpow_nonneg (hq₀ j).le _) + (Real.rpow_lt_one (hq₀ j).le (hq₁ j) (sub_pos.mpr hτ₁)) + linarith + have hH (j : Fin m) : 0 < thermalQuadratureVariance (q j ^ τ) - thermalQuadratureVariance (q j) := + sub_pos.mpr ((thermalQuadratureVariance_lt_iff (hq₁ j) + (Real.rpow_lt_one (hq₀ j).le (hq₁ j) hτ₀)).mpr + (thermal_parameter_lt_rpow (hq₀ j) (hq₁ j) hτ₁)) + have hgap : thermalReferenceGap q τ = + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ) - thermalQuadratureVariance + (q j)) := by + exact Matrix.diagonal_sub _ _ + rw [thermalPerturbationMultiplier, covariancePerturbationMultiplier, + thermalPowerCovariance, hgap, modeDiagonal_sqrt (fun j => (hv j).le), + modeDiagonal_sqrt (fun j => (hH j).le), + modeDiagonal_inv (fun j => (Real.sqrt_pos.mpr (hv j)).ne'), + modeDiagonal_inv (fun j => (Real.sqrt_pos.mpr (hH j)).ne'), + thermalWoodburyFactor, modeDiagonal_mul, modeDiagonal_mul] + rfl + +theorem norm_sq_thermalPerturbationMultiplier_le {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) : + ‖thermalPerturbationMultiplier q τ‖ ^ 2 ≤ thermalPerturbationConstant τ := by + have hk : 0 ≤ thermalPerturbationConstant τ := by + unfold thermalPerturbationConstant + linarith [le_max_left (1 : ℝ) ((1 - τ) / τ)] + rw [pow_two, ← Matrix.l2_opNorm_conjTranspose_mul_self, + thermalPerturbationMultiplier_diagonal hq₀ hq₁ hτ₀ hτ₁, + Matrix.conjTranspose_eq_transpose_of_trivial, transpose_modeDiagonal, modeDiagonal_mul] + change ‖Matrix.diagonal (fun i : Fin m × Fin 2 => + thermalPerturbationCoefficient (q i.1) τ * thermalPerturbationCoefficient (q i.1) τ)‖ ≤ _ + rw [Matrix.l2_opNorm_diagonal] + apply (pi_norm_le_iff_of_nonneg hk).mpr + intro i + rw [Real.norm_eq_abs, abs_of_nonneg (mul_self_nonneg _), ← pow_two, + thermalPerturbationCoefficient_sq (hq₀ i.1) (hq₁ i.1) hτ₀ hτ₁] + have hv : 0 < thermalQuadratureVariance (q i.1 ^ (1 - τ)) := by + have h := half_le_thermalQuadratureVariance (Real.rpow_nonneg (hq₀ i.1).le _) + (Real.rpow_lt_one (hq₀ i.1).le (hq₁ i.1) (sub_pos.mpr hτ₁)) + linarith + have hcomp := thermalQuadratureVariance_power_comparison (hq₀ i.1).le (hq₁ i.1) + hτ₀ (sub_pos.mpr hτ₁) + have hratio := (div_le_iff₀ hv).mpr hcomp + exact _root_.add_le_add_right hratio 1 + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalPowerNormalization.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPowerNormalization.lean new file mode 100644 index 0000000000..aa067b420c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPowerNormalization.lean @@ -0,0 +1,78 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowerNormalizationDefs +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCoherentPowers +public import LeanPool.VacuumBellSeparation.Gaussian.QuadratureNormalization + +/-! +# Normalized actual positive powers of the thermal density + +Normalizing the genuine positive CFC power by its actual finite positive +trace gives the thermal density at parameter `q^τ`. This is an operator +identity on ℓ², including the pure endpoint, and yields the corresponding +real-quadrature covariance transformation. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +theorem thermalPowerTrace_pos {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + 0 < (1 - q) ^ τ / (1 - q ^ τ) := + div_pos (Real.rpow_pos_of_pos (sub_pos.mpr hq₁) _) + (sub_pos.mpr (Real.rpow_lt_one hq₀ hq₁ hτ)) + +theorem normalizedThermalPower_eq_thermalDensity {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + normalizedThermalPower q τ = thermalDensity (q ^ τ) := by + have hp₀ : 0 ≤ q ^ τ := Real.rpow_nonneg hq₀ _ + have hp₁ : q ^ τ < 1 := Real.rpow_lt_one hq₀ hq₁ hτ + have hc : (1 - q) ^ τ ≠ 0 := ne_of_gt (Real.rpow_pos_of_pos (sub_pos.mpr hq₁) _) + have hd : 1 - q ^ τ ≠ 0 := ne_of_gt (sub_pos.mpr hp₁) + have hscalar (n : ℕ) : ((1 - q) ^ τ / (1 - q ^ τ))⁻¹ * thermalWeight q n ^ τ = + thermalWeight (q ^ τ) n := by + rw [thermalWeight_rpow hq₀ hq₁, thermalWeight] + field_simp [hc, hd] + unfold normalizedThermalPower + rw [positiveTrace_thermalDensity_rpow hq₀ hq₁ hτ, + ENNReal.toReal_ofReal (thermalPowerTrace_pos hq₀ hq₁ hτ).le] + apply ContinuousLinearMap.ext_on + (Submodule.dense_iff_topologicalClosure_eq_top.mpr numberBasis.dense_span) + rintro _ ⟨n, rfl⟩ + rw [smul_apply, thermalDensity_rpow_apply_numberBasis hq₀ hq₁ hτ, + smul_smul, hscalar, thermalDensity_apply_numberBasis hp₀ hp₁] + +theorem normalizedThermalPower_isFaithfulDensity {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) : + IsFaithfulDensity (normalizedThermalPower q τ) := by + rw [normalizedThermalPower_eq_thermalDensity hq₀.le hq₁ hτ] + exact thermalDensity_isFaithfulDensity (Real.rpow_pos_of_pos hq₀ _) + (Real.rpow_lt_one hq₀.le hq₁ hτ) + +theorem normalizedThermalPower_trace_one {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + positiveTrace (normalizedThermalPower q τ) = 1 := by + rw [normalizedThermalPower_eq_thermalDensity hq₀ hq₁ hτ] + exact positiveTrace_thermalDensity (Real.rpow_nonneg hq₀ _) + (Real.rpow_lt_one hq₀ hq₁ hτ) + +theorem thermalPower_quadrature_characteristic {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) (v : ℝ × ℝ) : + thermalState (Real.rpow_nonneg hq₀ τ) (Real.rpow_lt_one hq₀ hq₁ hτ) + (quadratureWeyl v) = + Complex.exp (((-((1 + q ^ τ) / (4 * (1 - q ^ τ))) * + (v.1 ^ 2 + v.2 ^ 2) : ℝ) : ℂ)) := by + rw [thermalState_quadratureWeyl, thermalQuadratureVariance] + have hden : (2 * (1 - q ^ τ)) * 2 = 4 * (1 - q ^ τ) := by ring + rw [div_div, hden] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalPowerNormalizationDefs.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPowerNormalizationDefs.lean new file mode 100644 index 0000000000..b90a4918ed --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPowerNormalizationDefs.lean @@ -0,0 +1,30 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowers + +/-! +# Actual CFC thermal power divided by its actual trace + +This construction is separated from its later specification proofs. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +/-- Continuous linear map for the normalized thermal power, of type `OscillatorSpace →L[ℂ] +OscillatorSpace`. -/ +noncomputable def normalizedThermalPower (q τ : ℝ) : + OscillatorSpace →L[ℂ] OscillatorSpace := + (positiveTrace (thermalDensity q ^ τ)).toReal⁻¹ • (thermalDensity q ^ τ) + + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalPowers.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPowers.lean new file mode 100644 index 0000000000..e5eec64843 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPowers.lean @@ -0,0 +1,182 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalDensity + +/-! +# Actual functional-calculus powers of the thermal density + +Continuous real functional calculus preserves eigenvectors. Applying this +to the infinite number basis proves the trace formula for positive real +powers of the one-mode density. In particular these are actual CFC powers, +not a separate coefficientwise operator definition. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap Filter Topology +open scoped lp ENNReal ContinuousFunctionalCalculus + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] + +omit [CompleteSpace E] in +theorem eigenvalue_mem_real_spectrum {A : E →L[ℂ] E} {x : E} {r : ℝ} + (hx : x ≠ 0) (hAx : A x = r • x) : r ∈ spectrum ℝ A := by + rw [spectrum.mem_iff] + rintro ⟨u, hu⟩ + have hz : (u : E →L[ℂ] E) x = 0 := by + rw [hu] + change r • x - A x = 0 + rw [hAx, sub_self] + have hh := congrArg (fun z => (↑u⁻¹ : E →L[ℂ] E) z) hz + rw [← mul_apply_eq_comp, Units.inv_mul, one_apply_eq_self, map_zero] at hh + exact hx hh + +/-- Functional calculus on a real-spectrum eigenvector, first for the +continuous-map homomorphism. The proof uses uniform polynomial density. -/ +theorem cfcHom_apply_eigenvector {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) + {r : ℝ} (hr : r ∈ spectrum ℝ A) {x : E} (hAx : A x = r • x) + (f : C(spectrum ℝ A, ℝ)) : + (cfcHom hA f) x = f ⟨r, hr⟩ • x := by + induction f using ContinuousMap.induction_on_of_compact with + | const t => + change (cfcHom hA (algebraMap ℝ C(spectrum ℝ A, ℝ) t)) x = t • x + rw [AlgHomClass.commutes] + change (t • (1 : E →L[ℂ] E)) x = t • x + rw [smul_apply, one_apply_eq_self] + | id => + simpa only [cfcHom_id, ContinuousMap.restrict_apply, ContinuousMap.id_apply] using hAx + | star_id => + simpa only [map_star, cfcHom_id, hA.star_eq, star_trivial, + ContinuousMap.restrict_apply, ContinuousMap.id_apply] using hAx + | add f g hf hg => + simp only [map_add, add_apply, hf, hg, ContinuousMap.add_apply, add_smul] + | mul f g hf hg => + simp only [map_mul, mul_apply_eq_comp, hg, map_smul_of_tower, hf, + ContinuousMap.mul_apply, smul_smul, mul_comm] + | frequently f hf => + have heval : Continuous (fun g : C(spectrum ℝ A, ℝ) => g ⟨r, hr⟩) := + continuous_eval_const (⟨r, hr⟩ : spectrum ℝ A) + have hsmul : Continuous (fun g : C(spectrum ℝ A, ℝ) => g ⟨r, hr⟩ • x) := + heval.smul (continuous_const : Continuous (fun _ : C(spectrum ℝ A, ℝ) => x)) + have hc : IsClosed {g : C(spectrum ℝ A, ℝ) | + (cfcHom hA g) x = g ⟨r, hr⟩ • x} := + isClosed_eq ((cfcHom_continuous hA (R := ℝ)).clm_apply continuous_const) + hsmul + exact hc.mem_of_frequently_of_tendsto hf tendsto_id + +theorem cfc_apply_eigenvector {A : E →L[ℂ] E} (hA : IsSelfAdjoint A) + {r : ℝ} (hr : r ∈ spectrum ℝ A) {x : E} (hAx : A x = r • x) + (f : ℝ → ℝ) (hf : ContinuousOn f (spectrum ℝ A)) : + cfc f A x = f r • x := by + rw [cfc_apply f A hA hf] + exact cfcHom_apply_eigenvector hA hr hAx ⟨_, hf.domRestrict⟩ + +theorem rpow_apply_eigenvector {A : E →L[ℂ] E} (hA : 0 ≤ A) + {r : ℝ} (hr : r ∈ spectrum ℝ A) {x : E} (hAx : A x = r • x) + {τ : ℝ} (hτ : 0 < τ) : (A ^ τ) x = r ^ τ • x := by + rw [CFC.rpow_eq_cfc_real hA] + apply cfc_apply_eigenvector hA.isSelfAdjoint hr hAx + exact (Real.continuous_rpow_const hτ.le).continuousOn + +/-- Canonical Hilbert-operator structures resolved before specializing the carrier alias. -/ +theorem hilbertOperator_realCFC : + IsometricContinuousFunctionalCalculus ℝ (E →L[ℂ] E) IsSelfAdjoint := inferInstance + +theorem hilbertOperator_starOrder : StarOrderedRing (E →L[ℂ] E) := inferInstance + +theorem hilbertOperator_nonnegSpectrum : NonnegSpectrumClass ℝ (E →L[ℂ] E) := + inferInstance + +/-- Expose the concrete lp instances at the carrier alias before asking for +operator CFC instances. These are the existing Mathlib Hilbert structures. -/ +noncomputable instance oscillatorNormedAddCommGroup : NormedAddCommGroup OscillatorSpace := + inferInstanceAs (NormedAddCommGroup (lp (fun _ : ℕ => ℂ) 2)) + +noncomputable instance oscillatorInnerProductSpace : InnerProductSpace ℂ OscillatorSpace := + inferInstanceAs (InnerProductSpace ℂ (lp (fun _ : ℕ => ℂ) 2)) + +noncomputable instance oscillator_completeSpace : CompleteSpace OscillatorSpace := + inferInstanceAs (CompleteSpace (lp (fun _ : ℕ => ℂ) 2)) + +noncomputable instance oscillatorOperatorCStarAlgebra : + CStarAlgebra (OscillatorSpace →L[ℂ] OscillatorSpace) := + inferInstanceAs (CStarAlgebra + ((lp (fun _ : ℕ => ℂ) 2) →L[ℂ] (lp (fun _ : ℕ => ℂ) 2))) + +instance oscillator_realCFC : + IsometricContinuousFunctionalCalculus ℝ (OscillatorSpace →L[ℂ] OscillatorSpace) + IsSelfAdjoint := hilbertOperator_realCFC (E := OscillatorSpace) + +instance oscillator_starOrder : StarOrderedRing (OscillatorSpace →L[ℂ] OscillatorSpace) := + hilbertOperator_starOrder (E := OscillatorSpace) + +instance oscillator_nonnegSpectrum : + NonnegSpectrumClass ℝ (OscillatorSpace →L[ℂ] OscillatorSpace) := + hilbertOperator_nonnegSpectrum (E := OscillatorSpace) + +theorem thermalDensity_rpow_apply_numberBasis {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) (k : ℕ) : + (thermalDensity q ^ τ) (numberBasis k) = + thermalWeight q k ^ τ • numberBasis k := by + have hk : numberBasis k ≠ 0 := by + intro hz + have h := numberBasis.orthonormal.norm_eq_one k + rw [hz, norm_zero] at h + norm_num at h + have heig := thermalDensity_apply_numberBasis hq₀ hq₁ k + exact rpow_apply_eigenvector (thermalDensity_nonneg hq₀ hq₁) + (eigenvalue_mem_real_spectrum hk heig) heig hτ + +theorem thermalWeight_rpow {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) + (τ : ℝ) (k : ℕ) : + thermalWeight q k ^ τ = (1 - q) ^ τ * (q ^ τ) ^ k := by + rw [thermalWeight, Real.mul_rpow (sub_nonneg.mpr hq₁.le) (pow_nonneg hq₀ k), + ← Real.rpow_natCast_mul hq₀, mul_comm (k : ℝ), Real.rpow_mul_natCast hq₀] + +theorem hasSum_thermalWeight_rpow {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + HasSum (fun k => thermalWeight q k ^ τ) ((1 - q) ^ τ / (1 - q ^ τ)) := by + have h := (hasSum_geometric_of_lt_one (Real.rpow_nonneg hq₀ τ) + (Real.rpow_lt_one hq₀ hq₁ hτ)).mul_left ((1 - q) ^ τ) + simpa only [thermalWeight_rpow hq₀ hq₁, div_eq_mul_inv] using h + +/-- Trace formula for the actual positive operator power on ℓ². This remains +valid at the pure endpoint `q=0` when the exponent is positive. -/ +theorem positiveTrace_thermalDensity_rpow {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + positiveTrace (thermalDensity q ^ τ) = + ENNReal.ofReal ((1 - q) ^ τ / (1 - q ^ τ)) := by + rw [positiveTrace_eq_tsum_diagonal numberBasis CFC.rpow_nonneg] + have heq (k : ℕ) : + (inner ℂ (numberBasis k) ((thermalDensity q ^ τ) (numberBasis k))).re = + thermalWeight q k ^ τ := by + rw [thermalDensity_rpow_apply_numberBasis hq₀ hq₁ hτ, + inner_smul_right_eq_smul, inner_self_eq_norm_sq_to_K, + numberBasis.orthonormal.norm_eq_one] + simp [Algebra.smul_def] + simp_rw [heq] + have hw (k : ℕ) : 0 ≤ thermalWeight q k ^ τ := + Real.rpow_nonneg (show 0 ≤ thermalWeight q k from + mul_nonneg (sub_nonneg.mpr hq₁.le) (pow_nonneg hq₀ k)) τ + rw [← ENNReal.ofReal_tsum_of_nonneg + hw + (hasSum_thermalWeight_rpow hq₀ hq₁ hτ).summable, + (hasSum_thermalWeight_rpow hq₀ hq₁ hτ).tsum_eq] + +theorem thermalDensity_rpow_isPositiveTraceClass {q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (hτ : 0 < τ) : + IsPositiveTraceClass (thermalDensity q ^ τ) := by + refine ⟨CFC.rpow_nonneg, ?_⟩ + rw [positiveTrace_thermalDensity_rpow hq₀ hq₁ hτ] + exact ENNReal.ofReal_lt_top + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalPrecisionDomain.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPrecisionDomain.lean new file mode 100644 index 0000000000..64e10c1961 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPrecisionDomain.lean @@ -0,0 +1,138 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixSandwichOrder +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticBlocks +public import LeanPool.VacuumBellSeparation.Gaussian.QuadratureNormalization + +/-! +# Literal thermal matrix precision and covariance domain + +With faithful parameters `00, the real dilation has entries +`q_j^(-τ/2)` repeated in each quadrature. The actual precision matrix +`I-T²+T(V+I/2)⁻¹T` is positive definite exactly when the covariance lies +below the powered thermal covariance `diag(v(q_j^τ))`. This is the matrix +domain equivalence from Appendix A, without assuming a Gaussian trace or +a bounded extension of the inverse-domain form. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +omit [Fintype ι] in +theorem modeDiagonal_posDef {d : ι → ℝ} (hd : ∀ i, 0 < d i) : + (modeDiagonal d).PosDef := Matrix.PosDef.diagonal fun i => hd i.1 + +theorem modeDiagonal_inv {d : ι → ℝ} (hd : ∀ i, d i ≠ 0) : + (modeDiagonal d)⁻¹ = modeDiagonal (fun i => (d i)⁻¹) := by + apply Matrix.inv_eq_right_inv + rw [modeDiagonal_mul, ← modeDiagonal_one] + congr 1 + funext i + exact mul_inv_cancel₀ (hd i) + +/-- Thermal quadrature dilation given by `modeDiagonal (fun i => q i ^ (-(τ / 2)))`. -/ +def thermalQuadratureDilation (q : ι → ℝ) (τ : ℝ) : Matrix (ι × Fin 2) (ι × Fin 2) ℝ := + modeDiagonal (fun i => q i ^ (-(τ / 2))) + +/-- Thermal dilation excess given by `modeDiagonal (fun i => q i ^ (-τ) - 1)`. -/ +def thermalDilationExcess (q : ι → ℝ) (τ : ℝ) : Matrix (ι × Fin 2) (ι × Fin 2) ℝ := + modeDiagonal (fun i => q i ^ (-τ) - 1) + +/-- Thermal coherent precision. -/ +def thermalCoherentPrecision (q : ι → ℝ) (τ : ℝ) + (V : Matrix (ι × Fin 2) (ι × Fin 2) ℝ) : Matrix (ι × Fin 2) (ι × Fin 2) ℝ := + 1 - thermalQuadratureDilation q τ * thermalQuadratureDilation q τ + + thermalQuadratureDilation q τ * (V + (1 / 2 : ℝ) • 1)⁻¹ * thermalQuadratureDilation q τ + +omit [Fintype ι] in +theorem thermalQuadratureDilation_posDef {q : ι → ℝ} + (hq₀ : ∀ i, 0 < q i) (τ : ℝ) : (thermalQuadratureDilation q τ).PosDef := + modeDiagonal_posDef fun i => Real.rpow_pos_of_pos (hq₀ i) _ + +omit [Fintype ι] in +theorem thermalDilationExcess_posDef {q : ι → ℝ} {τ : ℝ} + (hq₀ : ∀ i, 0 < q i) (hq₁ : ∀ i, q i < 1) (hτ : 0 < τ) : + (thermalDilationExcess q τ).PosDef := + modeDiagonal_posDef fun i => sub_pos.mpr + (Real.one_lt_rpow_of_pos_of_lt_one_of_neg (hq₀ i) (hq₁ i) (neg_neg_of_pos hτ)) + +theorem thermalQuadratureDilation_sq {q : ι → ℝ} (hq₀ : ∀ i, 0 < q i) (τ : ℝ) : + thermalQuadratureDilation q τ * thermalQuadratureDilation q τ - 1 = + thermalDilationExcess q τ := by + rw [thermalQuadratureDilation, modeDiagonal_mul] + have heq (i : ι) : q i ^ (-(τ / 2)) * q i ^ (-(τ / 2)) = q i ^ (-τ) := by + rw [← Real.rpow_add (hq₀ i)] + congr 1 + ring + simp_rw [heq] + exact Matrix.diagonal_sub (fun i : ι × Fin 2 => q i.1 ^ (-τ)) (fun _ => 1) + +theorem thermal_scalar_dilation_threshold {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) : + q ^ (-(τ / 2)) * (q ^ (-τ) - 1)⁻¹ * q ^ (-(τ / 2)) = + thermalQuadratureVariance (q ^ τ) + 1 / 2 := by + have ht₀ := Real.rpow_pos_of_pos hq₀ τ + have ht₁ := Real.rpow_lt_one hq₀.le hq₁ hτ + have hden : (q ^ τ)⁻¹ - 1 ≠ 0 := ne_of_gt (sub_pos.mpr ((one_lt_inv₀ ht₀).mpr ht₁)) + have hsq : q ^ (-(τ / 2)) * q ^ (-(τ / 2)) = q ^ (-τ) := by + rw [← Real.rpow_add hq₀] + congr 1 + ring + calc + _ = q ^ (-τ) * (q ^ (-τ) - 1)⁻¹ := by rw [← hsq]; ring + _ = thermalQuadratureVariance (q ^ τ) + 1 / 2 := by + rw [Real.rpow_neg hq₀.le] + unfold thermalQuadratureVariance + field_simp [ht₀.ne', ne_of_gt (sub_pos.mpr ht₁), hden] + ring + +theorem thermalDilationExcess_inverse_congruence {q : ι → ℝ} {τ : ℝ} + (hq₀ : ∀ i, 0 < q i) (hq₁ : ∀ i, q i < 1) (hτ : 0 < τ) : + thermalQuadratureDilation q τ * (thermalDilationExcess q τ)⁻¹ * + thermalQuadratureDilation q τ = + modeDiagonal (fun i => thermalQuadratureVariance (q i ^ τ)) + (1 / 2 : ℝ) • 1 := by + have hne (i : ι) : q i ^ (-τ) - 1 ≠ 0 := ne_of_gt (sub_pos.mpr + (Real.one_lt_rpow_of_pos_of_lt_one_of_neg (hq₀ i) (hq₁ i) (neg_neg_of_pos hτ))) + rw [thermalDilationExcess, modeDiagonal_inv hne, thermalQuadratureDilation, + modeDiagonal_mul, modeDiagonal_mul] + have heq (i : ι) : q i ^ (-(τ / 2)) * (q i ^ (-τ) - 1)⁻¹ * q i ^ (-(τ / 2)) = + thermalQuadratureVariance (q i ^ τ) + 1 / 2 := + thermal_scalar_dilation_threshold (hq₀ i) (hq₁ i) hτ + simp_rw [heq] + exact (Matrix.diagonal_add (fun i : ι × Fin 2 => thermalQuadratureVariance (q i.1 ^ τ)) + (fun _ => (1 / 2 : ℝ))).symm.trans + (congrArg (fun X => modeDiagonal (fun i => thermalQuadratureVariance (q i ^ τ)) + X) + (Matrix.smul_one_eq_diagonal (1 / 2 : ℝ)).symm) + +theorem thermalCoherentPrecision_posDef_iff {q : ι → ℝ} {τ : ℝ} + (hq₀ : ∀ i, 0 < q i) (hq₁ : ∀ i, q i < 1) (hτ : 0 < τ) + (V : Matrix (ι × Fin 2) (ι × Fin 2) ℝ) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) : + (thermalCoherentPrecision q τ V).PosDef ↔ + (modeDiagonal (fun i => thermalQuadratureVariance (q i ^ τ)) - V).PosDef := by + have hP : thermalCoherentPrecision q τ V = sandwichPrecision + (thermalDilationExcess q τ) (thermalQuadratureDilation q τ) (V + (1 / 2 : ℝ) • 1) := by + rw [thermalCoherentPrecision, sandwichPrecision, ← thermalQuadratureDilation_sq hq₀] + abel + have hG : sandwichGap (thermalDilationExcess q τ) (thermalQuadratureDilation q τ) + (V + (1 / 2 : ℝ) • 1) = + modeDiagonal (fun i => thermalQuadratureVariance (q i ^ τ)) - V := by + rw [sandwichGap, thermalDilationExcess_inverse_congruence hq₀ hq₁ hτ] + abel + rw [hP, sandwichPrecision_posDef_iff _ _ _ + (thermalDilationExcess_posDef hq₀ hq₁ hτ) (thermalQuadratureDilation_posDef hq₀ τ) hC, hG] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalPurityPerturbation.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPurityPerturbation.lean new file mode 100644 index 0000000000..8c7562ba9b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalPurityPerturbation.lean @@ -0,0 +1,104 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalQuantumSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianPurityPerturbation +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSandwichPerturbation + +/-! +# The actual purity estimate for the noncommuting thermal sandwich + +The strict output quantum condition is now proved from the input quantum +condition, and the source smallness hypothesis ensures positive real +covariances along the entire segment. The true aggregate purity estimate +therefore applies to the actual Appendix A covariance without an assumed +endpoint condition or commuting input. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} {q : Fin m → ℝ} {τ r : ℝ} +variable {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +theorem thermalSandwichCovariance_isHermitian + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hgap : (thermalPowerCovariance q τ - V).PosDef) : + (thermalSandwichCovariance q τ V).IsHermitian := by + have hT := thermalPowerCovariance_posDef (fun j => (hq₀ j).le) hq₁ hτ + have hL := thermalWoodburyFactor_posDef hq₀ hq₁ hτ + have hconj := hgap.inv.posSemidef.mul_mul_conjTranspose_same (thermalWoodburyFactor q τ) + rw [hL.isHermitian.eq] at hconj + exact hT.isHermitian.neg.add hconj.isHermitian + +theorem thermalSandwichCovariance_posDef_of_small_relative_norm + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + (hV : V.IsHermitian) + (hδ : ‖gaussianRelativePerturbation q τ V‖ ≤ + (4 * thermalPerturbationConstant τ)⁻¹) : + (thermalSandwichCovariance q τ V).PosDef := by + have hb := thermal_smallness_norm_bounds hq₀ hq₁ hτ₀ hτ₁ hV hδ + have hgap := thermal_covariance_gap_posDef_of_relative_norm hq₀ hq₁ hτ₀ hτ₁ hV + (by linarith [hb.1]) + have hT := thermalPowerCovariance_posDef (fun j => (hq₀ j).le) hq₁ (sub_pos.mpr hτ₁) + have hK := thermalSandwichCovariance_isHermitian hq₀ hq₁ hτ₀ hgap + have h := covarianceSegment_posDef hT (hK.sub hT.isHermitian) + (t := 1) zero_le_one le_rfl (show ‖thermalSandwichRelativePerturbation q τ V‖ < 1 by + linarith [hb.2]) + have he : thermalPowerCovariance q (1 - τ) + + (thermalSandwichCovariance q τ V - thermalPowerCovariance q (1 - τ)) = + thermalSandwichCovariance q τ V := by abel + simpa only [covarianceSegment, one_smul, he] using h + +theorem thermalSandwichCovariance_purity_bound + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ₀ : 0 < τ) (hτ₁ : τ < 1) + (hr : 1 < r) (hV : V.IsHermitian) + (hQ : (quantumCovariance V modeSymplecticForm).PosDef) + (hδ : ‖gaussianRelativePerturbation q τ V‖ ≤ + (4 * thermalPerturbationConstant τ)⁻¹) : + |covariancePurityTrace r (thermalSandwichCovariance q τ V) - + covariancePurityTrace r (thermalPowerCovariance q (1 - τ))| ≤ + (r / 2) * (thermalPerturbationConstant τ / + ((1 - ‖gaussianRelativePerturbation q τ V‖) * + (1 - ‖thermalSandwichRelativePerturbation q τ V‖))) * + matrixTraceNorm (gaussianRelativePerturbation q τ V) := by + have hb := thermal_smallness_norm_bounds hq₀ hq₁ hτ₀ hτ₁ hV hδ + have hz : ‖gaussianRelativePerturbation q τ V‖ < 1 := by linarith [hb.1] + have hy : ‖thermalSandwichRelativePerturbation q τ V‖ < 1 := by linarith [hb.2] + have hgap := thermal_covariance_gap_posDef_of_relative_norm hq₀ hq₁ hτ₀ hτ₁ hV hz + have hT := thermalPowerCovariance_posDef (fun j => (hq₀ j).le) hq₁ (sub_pos.mpr hτ₁) + have hK := thermalSandwichCovariance_isHermitian hq₀ hq₁ hτ₀ hgap + have hQT := thermalPowerCovariance_quantum_posDef hq₀ hq₁ (sub_pos.mpr hτ₁) + have hQK := (thermalSandwichCovariance_quantum_posDef_iff hq₀ hq₁ hτ₀ hgap).mpr hQ + let T : RealSymmetricMatrixSpace (Fin m × Fin 2) := ⟨_, hT.isHermitian.isSelfAdjoint⟩ + let Δ : RealSymmetricMatrixSpace (Fin m × Fin 2) := ⟨_, (hK.sub hT.isHermitian).isSelfAdjoint⟩ + have he : thermalPowerCovariance q (1 - τ) + + (thermalSandwichCovariance q τ V - thermalPowerCovariance q (1 - τ)) = + thermalSandwichCovariance q τ V := by abel + have hsegment := covariancePurityTrace_segment_bound hr T Δ hT hQT + (by simpa only [T, Δ, he] using hQK) hy + have hs : |covariancePurityTrace r (thermalSandwichCovariance q τ V) - + covariancePurityTrace r (thermalPowerCovariance q (1 - τ))| ≤ + (r / 2) / (1 - ‖thermalSandwichRelativePerturbation q τ V‖) * + matrixTraceNorm (thermalSandwichRelativePerturbation q τ V) := by + simpa only [T, Δ, he, thermalSandwichRelativePerturbation] using hsegment + have hn := matrixTraceNorm_thermalSandwichRelativePerturbation_le hq₀ hq₁ hτ₀ hτ₁ hV hz + calc + _ ≤ (r / 2) / (1 - ‖thermalSandwichRelativePerturbation q τ V‖) * + (thermalPerturbationConstant τ / (1 - ‖gaussianRelativePerturbation q τ V‖) * + matrixTraceNorm (gaussianRelativePerturbation q τ V)) := + hs.trans (mul_le_mul_of_nonneg_left hn (by positivity)) + _ = _ := by simp only [div_eq_mul_inv, _root_.mul_inv_rev]; ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalQuantumSandwich.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalQuantumSandwich.lean new file mode 100644 index 0000000000..427ad6a26a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalQuantumSandwich.lean @@ -0,0 +1,121 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixInverseOrder +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumModePositivity +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCovariancePerturbation + +/-! +# Strict uncertainty of the actual Appendix A sandwich covariance + +The thermal calibration L(T+iΩ/2)⁻¹L=T−iΩ/2 and strict complex +inverse order show that quantum positivity is preserved exactly on the +positive covariance-gap domain. The variable covariance need not commute +with the thermal reference. This proves the endpoint condition required +by the genuine aggregate purity segment estimate. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped ComplexOrder MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} + +theorem complexifyMatrix_sub {n : Type*} + (A B : Matrix n n ℝ) : + complexifyMatrix (A - B) = complexifyMatrix A - complexifyMatrix B := by + rw [sub_eq_add_neg, complexifyMatrix_add, complexifyMatrix_neg, sub_eq_add_neg] + +theorem complexifyMatrix_inv {n : Type*} [Fintype n] [DecidableEq n] + {A : Matrix n n ℝ} (hA : IsUnit A) : + complexifyMatrix A⁻¹ = (complexifyMatrix A)⁻¹ := by + have h := congrArg complexifyMatrix + (A.mul_nonsing_inv ((Matrix.isUnit_iff_isUnit_det A).mp hA)) + rw [complexifyMatrix_mul, complexifyMatrix_one] at h + have hi := (complexifyMatrix A).nonsing_inv_mul + ((Matrix.isUnit_iff_isUnit_det _).mp (complexifyMatrix_isUnit hA)) + have hh := congrArg (fun X => (complexifyMatrix A)⁻¹ * X) h + simpa only [← Matrix.mul_assoc, hi, Matrix.one_mul, Matrix.mul_one] using hh + +theorem complex_mode_commute_quantumForm (ν : Fin m → ℝ) : + complexifyMatrix (modeDiagonal ν) * canonicalQuantumForm m = + canonicalQuantumForm m * complexifyMatrix (modeDiagonal ν) := by + rw [canonicalQuantumForm, Matrix.mul_smul, Matrix.smul_mul, + ← complexifyMatrix_mul, ← complexifyMatrix_mul, (modeDiagonal_commute_symplectic ν).eq] + +theorem thermal_quantum_inverse_calibration + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + complexifyMatrix (thermalWoodburyFactor q τ) * + (quantumCovariance (thermalPowerCovariance q τ) modeSymplecticForm)⁻¹ * + complexifyMatrix (thermalWoodburyFactor q τ) = + complexifyMatrix (thermalPowerCovariance q τ) - canonicalQuantumForm m := by + let T := complexifyMatrix (thermalPowerCovariance q τ) + let L := complexifyMatrix (thermalWoodburyFactor q τ) + let J := canonicalQuantumForm m + have hC : (T + J).PosDef := thermalPowerCovariance_quantum_posDef hq₀ hq₁ hτ + have hTJ : T * J = J * T := complex_mode_commute_quantumForm _ + have hLJ : L * J = J * L := complex_mode_commute_quantumForm _ + have hTL : T * L = L * T := by + dsimp only [T, L, thermalPowerCovariance, thermalWoodburyFactor] + rw [← complexifyMatrix_mul, ← complexifyMatrix_mul, modeDiagonal_mul, modeDiagonal_mul] + congr 2 + funext j + ring + have hcomm : (T + J) * L = L * (T + J) := by + rw [Matrix.add_mul, Matrix.mul_add, hTL, ← hLJ] + have hs : L * L = T * T - (1 / 4 : ℂ) • 1 := by + dsimp only [L, T] + rw [← complexifyMatrix_mul, thermalWoodburyFactor_sq hq₀ hq₁ hτ, + complexifyMatrix_sub, pow_two, complexifyMatrix_mul] + congr 1 + ext i j + by_cases hij : i = j <;> simp [complexifyMatrix, hij] + have hsq : L * L = (T + J) * (T - J) := by + rw [hs] + have hJJ : J * J = (1 / 4 : ℂ) • 1 := canonicalQuantumForm_square + rw [← hJJ] + rw [Matrix.add_mul, Matrix.mul_sub, Matrix.mul_sub, ← hTJ] + abel + exact complex_matrix_inverse_calibration hC.isUnit hcomm hsq + +/-- Actual quantum uncertainty is equivalent before and after the +thermal sandwich whenever the actual covariance gap is positive. -/ +theorem thermalSandwichCovariance_quantum_posDef_iff + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + (hgap : (thermalPowerCovariance q τ - V).PosDef) : + (quantumCovariance (thermalSandwichCovariance q τ V) modeSymplecticForm).PosDef ↔ + (quantumCovariance V modeSymplecticForm).PosDef := by + have hD := complexifyMatrix_posDef hgap + have hC := thermalPowerCovariance_quantum_posDef hq₀ hq₁ hτ + have hL := complexifyMatrix_posDef (thermalWoodburyFactor_posDef hq₀ hq₁ hτ) + have h := complex_matrix_congruence_inverse_gap_iff hD hC hL + (thermal_quantum_inverse_calibration hq₀ hq₁ hτ) + have hleft : complexifyMatrix (thermalWoodburyFactor q τ) * + (complexifyMatrix (thermalPowerCovariance q τ - V))⁻¹ * + complexifyMatrix (thermalWoodburyFactor q τ) - + (complexifyMatrix (thermalPowerCovariance q τ) - canonicalQuantumForm m) = + quantumCovariance (thermalSandwichCovariance q τ V) modeSymplecticForm := by + rw [quantumCovariance, thermalSandwichCovariance, complexifyMatrix_add, + complexifyMatrix_neg, complexifyMatrix_mul, complexifyMatrix_mul, + complexifyMatrix_inv hgap.isUnit] + change _ = -complexifyMatrix (thermalPowerCovariance q τ) + _ + canonicalQuantumForm m + abel + have hright : quantumCovariance (thermalPowerCovariance q τ) modeSymplecticForm - + complexifyMatrix (thermalPowerCovariance q τ - V) = quantumCovariance V modeSymplecticForm + := by + rw [quantumCovariance, quantumCovariance, complexifyMatrix_sub] + abel + rwa [hleft, hright] at h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalSandwich.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalSandwich.lean new file mode 100644 index 0000000000..1ad00fab7b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalSandwich.lean @@ -0,0 +1,198 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalDomains + +/-! +# The actual commuting thermal inverse-power sandwich + +For two one-mode thermal densities in the same number basis, the quadratic +form of `σ^(-τ/2) ρ σ^(-τ/2)` is defined on the actual dense range of +`σ^(τ/2)`. When `p < q^τ`, a convergent rank-one series supplies its unique +bounded extension and its finite positive trace. No bounded inverse of a +faithful density is assumed. This is the commuting one-mode specialization +of Appendix A. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] {ι : Type*} + +omit [CompleteSpace E] in +/-- Bounded operators are determined by their values on a genuine Hilbert +basis, using convergence of the basis expansion. -/ +theorem continuousLinearMap_eq_of_hilbertBasis (b : HilbertBasis ι ℂ E) + {A B : E →L[ℂ] E} (h : ∀ i, A (b i) = B (b i)) : A = B := by + ext x + have hA := (b.hasSum_repr x).mapL A + have hB := (b.hasSum_repr x).mapL B + have hA' : HasSum (fun i => b.repr x i • B (b i)) (A x) := by + simpa only [map_smul, h] using hA + have hB' : HasSum (fun i => b.repr x i • B (b i)) (B x) := by + simpa only [map_smul] using hB + exact hA'.unique hB' + +/-- The inverse-power sandwich coefficients. Their summability is proved +on the strict trace domain below, and is not hidden in the definition. -/ +noncomputable def thermalSandwichWeight (p q τ : ℝ) (n : ℕ) : ℝ := + thermalWeight p n / thermalWeight q n ^ τ + +/-- Continuous linear map for the thermal sandwich, of type `OscillatorSpace →L[ℂ] +OscillatorSpace`. -/ +noncomputable def thermalSandwich (p q τ : ℝ) : + OscillatorSpace →L[ℂ] OscillatorSpace := + diagonalOperator numberBasis (thermalSandwichWeight p q τ) + +theorem thermalSandwichWeight_geometric {p q τ : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (n : ℕ) : + thermalSandwichWeight p q τ n = + ((1 - p) / (1 - q) ^ τ) * (p / q ^ τ) ^ n := by + rw [thermalSandwichWeight, thermalWeight_rpow hq₀ hq₁, thermalWeight, + div_pow] + simp only [div_eq_mul_inv, mul_inv_rev] + ring + +theorem hasSum_thermalSandwichWeight {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hq₀ : 0 < q) (hq₁ : q < 1) + (hpq : p < q ^ τ) : + HasSum (thermalSandwichWeight p q τ) + (((1 - p) / (1 - q) ^ τ) / (1 - p / q ^ τ)) := by + have hqτ : 0 < q ^ τ := Real.rpow_pos_of_pos hq₀ _ + have hr₀ : 0 ≤ p / q ^ τ := div_nonneg hp₀ hqτ.le + have hr₁ : p / q ^ τ < 1 := (div_lt_one hqτ).mpr hpq + have h := (hasSum_geometric_of_lt_one hr₀ hr₁).mul_left ((1 - p) / (1 - q) ^ τ) + have he : thermalSandwichWeight p q τ = + (fun n => ((1 - p) / (1 - q) ^ τ) * (p / q ^ τ) ^ n) := + funext (thermalSandwichWeight_geometric hq₀.le hq₁) + rw [he] + simpa only [div_eq_mul_inv] using h + +theorem thermalSandwich_nonneg {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) : + 0 ≤ thermalSandwich p q τ := by + apply diagonalOperator_nonneg + intro n + exact div_nonneg + (mul_nonneg (sub_nonneg.mpr hp₁.le) (pow_nonneg hp₀ n)) + (Real.rpow_pos_of_pos (thermalWeight_pos hq₀ hq₁ n) τ).le + +theorem thermalSandwich_apply_numberBasis {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hq₀ : 0 < q) (hq₁ : q < 1) (hpq : p < q ^ τ) (n : ℕ) : + thermalSandwich p q τ (numberBasis n) = + thermalSandwichWeight p q τ n • numberBasis n := + diagonalOperator_apply_basis numberBasis + (hasSum_thermalSandwichWeight hp₀ hq₀ hq₁ hpq).summable n + +/-- The actual positive trace, obtained from the convergent diagonal series. -/ +theorem positiveTrace_thermalSandwich {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) + (hpq : p < q ^ τ) : + positiveTrace (thermalSandwich p q τ) = + ENNReal.ofReal (((1 - p) / (1 - q) ^ τ) / (1 - p / q ^ τ)) := by + rw [thermalSandwich, positiveTrace_diagonalOperator numberBasis + (hasSum_thermalSandwichWeight hp₀ hq₀ hq₁ hpq).summable + (fun n => div_nonneg + (mul_nonneg (sub_nonneg.mpr hp₁.le) (pow_nonneg hp₀ n)) + (Real.rpow_pos_of_pos (thermalWeight_pos hq₀ hq₁ n) τ).le), + (hasSum_thermalSandwichWeight hp₀ hq₀ hq₁ hpq).tsum_eq] + +theorem thermalSandwich_isPositiveTraceClass {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) + (hpq : p < q ^ τ) : IsPositiveTraceClass (thermalSandwich p q τ) := by + refine ⟨thermalSandwich_nonneg hp₀ hp₁ hq₀ hq₁, ?_⟩ + rw [positiveTrace_thermalSandwich hp₀ hp₁ hq₀ hq₁ hpq] + exact ENNReal.ofReal_lt_top + +/-- The bounded extension is characterized by the genuine density +factorization, not by a totalized inverse. -/ +theorem thermalSandwich_factorization {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) + (hτ : 0 < τ) (hpq : p < q ^ τ) : + (thermalDensity q ^ (τ / 2)) * thermalSandwich p q τ * + (thermalDensity q ^ (τ / 2)) = thermalDensity p := by + apply continuousLinearMap_eq_of_hilbertBasis numberBasis + intro n + have hhalf : 0 < τ / 2 := half_pos hτ + have hwq : 0 < thermalWeight q n := thermalWeight_pos hq₀ hq₁ n + have hpow : thermalWeight q n ^ (τ / 2) * thermalWeight q n ^ (τ / 2) = + thermalWeight q n ^ τ := by + rw [← Real.rpow_add hwq, add_halves] + have hscalar : thermalWeight q n ^ (τ / 2) * + thermalSandwichWeight p q τ n * thermalWeight q n ^ (τ / 2) = thermalWeight p n := by + rw [thermalSandwichWeight] + calc + _ = (thermalWeight p n / thermalWeight q n ^ τ) * + (thermalWeight q n ^ (τ / 2) * thermalWeight q n ^ (τ / 2)) := by ring + _ = _ := by rw [hpow, div_mul_cancel₀ _ (ne_of_gt (Real.rpow_pos_of_pos hwq τ))] + simp only [mul_apply_eq_comp, + thermalDensity_rpow_apply_numberBasis hq₀.le hq₁ hhalf, + map_smul_of_tower, thermalSandwich_apply_numberBasis hp₀ hq₀ hq₁ hpq, + thermalDensity_apply_numberBasis hp₀ hp₁, smul_smul] + rw [hscalar] + +/-- The quadratic form uses the actual inverse on its actual range domain. -/ +noncomputable def thermalSandwichForm {p q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) + (x y : thermalPowerDomain q (τ / 2)) : ℂ := + inner ℂ (thermalInversePower hq₀ hq₁ (half_pos hτ) x) + (thermalDensity p (thermalInversePower hq₀ hq₁ (half_pos hτ) y)) + +/-- The convergent-series operator extends the actual inverse-power form +on the dense domain. The target vectors retain their domain witnesses. -/ +theorem thermalSandwichForm_eq_inner {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) + (hτ : 0 < τ) (hpq : p < q ^ τ) + (x y : thermalPowerDomain q (τ / 2)) : + thermalSandwichForm (p := p) hq₀ hq₁ hτ x y = + inner ℂ (x : OscillatorSpace) (thermalSandwich p q τ (y : OscillatorSpace)) := by + let S := thermalDensity q ^ (τ / 2) + let u := thermalInversePower hq₀ hq₁ (half_pos hτ) x + let v := thermalInversePower hq₀ hq₁ (half_pos hτ) y + have hS : IsSelfAdjoint S := CFC.rpow_nonneg.isSelfAdjoint + have hx : S u = (x : OscillatorSpace) := + thermalPower_apply_inversePower hq₀ hq₁ (half_pos hτ) x + have hy : S v = (y : OscillatorSpace) := + thermalPower_apply_inversePower hq₀ hq₁ (half_pos hτ) y + change inner ℂ u (thermalDensity p v) = _ + calc + _ = inner ℂ u (S (thermalSandwich p q τ (S v))) := by + rw [← thermalSandwich_factorization hp₀ hp₁ hq₀ hq₁ hτ hpq] + rfl + _ = inner ℂ (S u) (thermalSandwich p q τ (S v)) := by + simpa only [hS.adjoint_eq] using + S.adjoint_inner_right u (thermalSandwich p q τ (S v)) + _ = _ := by rw [hx, hy] + +/-- Injectivity and dense range of the positive half-power make the +bounded factorization unique. -/ +theorem thermalSandwich_factorization_unique {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) + (hτ : 0 < τ) (hpq : p < q ^ τ) + {A : OscillatorSpace →L[ℂ] OscillatorSpace} + (hA : (thermalDensity q ^ (τ / 2)) * A * + (thermalDensity q ^ (τ / 2)) = thermalDensity p) : + A = thermalSandwich p q τ := by + let S := thermalDensity q ^ (τ / 2) + have hS : Function.Injective S := thermalDensity_rpow_injective hq₀ hq₁ (half_pos hτ) + have heq : S * A * S = S * thermalSandwich p q τ * S := + hA.trans (thermalSandwich_factorization hp₀ hp₁ hq₀ hq₁ hτ hpq).symm + have hcomp : (fun z => A (S z)) = fun z => thermalSandwich p q τ (S z) := by + funext z + apply hS + simpa only [mul_apply_eq_comp] using DFunLike.congr_fun heq z + have hfun := (thermalDensity_rpow_denseRange hq₀ hq₁ (half_pos hτ)).equalizer + A.continuous (thermalSandwich p q τ).continuous hcomp + exact DFunLike.coe_injective hfun + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalSandwichCriterion.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalSandwichCriterion.lean new file mode 100644 index 0000000000..c2525607b9 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalSandwichCriterion.lean @@ -0,0 +1,120 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalSandwich + +/-! +# Sharp trace-class criterion for the commuting thermal sandwich + +The strict scalar inequality `p < q^τ` is necessary as well as sufficient +for a positive trace-class solution of the actual density factorization. +The necessity argument applies to every bounded operator solution, and +does not interpret the default value of a nonsummable operator series as +an inverse-power sandwich. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] {ι : Type*} + +theorem IsPositiveTraceClass.summable_diagonal (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) : + Summable fun i => (inner ℂ (b i) (A (b i))).re := by + have hfinite := hA.2.ne + rw [positiveTrace_eq_tsum_diagonal b hA.1] at hfinite + have hnonneg (i : ι) : 0 ≤ (inner ℂ (b i) (A (b i))).re := + (ContinuousLinearMap.nonneg_iff_isPositive.mp hA.1).re_inner_nonneg_right (b i) + simpa only [ENNReal.toReal_ofReal (hnonneg _)] using ENNReal.summable_toReal hfinite + +/-- Every bounded solution has the forced number-basis eigenvalues, +including outside the trace-class domain. -/ +theorem thermal_factorization_apply_numberBasis {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) + (hτ : 0 < τ) {A : OscillatorSpace →L[ℂ] OscillatorSpace} + (hA : (thermalDensity q ^ (τ / 2)) * A * + (thermalDensity q ^ (τ / 2)) = thermalDensity p) (n : ℕ) : + A (numberBasis n) = thermalSandwichWeight p q τ n • numberBasis n := by + let S := thermalDensity q ^ (τ / 2) + let a := thermalWeight q n ^ (τ / 2) + have ha : 0 < a := Real.rpow_pos_of_pos (thermalWeight_pos hq₀ hq₁ n) _ + have heig : S (numberBasis n) = a • numberBasis n := + thermalDensity_rpow_apply_numberBasis hq₀.le hq₁ (half_pos hτ) n + have hpow : a * a = thermalWeight q n ^ τ := by + dsimp [a] + rw [← Real.rpow_add (thermalWeight_pos hq₀ hq₁ n), add_halves] + have hscalar : a * (thermalSandwichWeight p q τ n * a) = thermalWeight p n := by + rw [thermalSandwichWeight] + calc + _ = (thermalWeight p n / thermalWeight q n ^ τ) * (a * a) := by ring + _ = _ := by rw [hpow, div_mul_cancel₀ _ + (ne_of_gt (Real.rpow_pos_of_pos (thermalWeight_pos hq₀ hq₁ n) τ))] + apply smul_right_injective OscillatorSpace ha.ne' + apply thermalDensity_rpow_injective hq₀ hq₁ (half_pos hτ) + change S (a • A (numberBasis n)) = + S (a • (thermalSandwichWeight p q τ n • numberBasis n)) + calc + _ = (S * A * S) (numberBasis n) := by + simp only [mul_apply_eq_comp, heig, map_smul_of_tower] + _ = thermalWeight p n • numberBasis n := by + rw [show S * A * S = thermalDensity p from hA, + thermalDensity_apply_numberBasis hp₀ hp₁] + _ = _ := by + simp only [map_smul_of_tower, heig, smul_smul, mul_assoc, hscalar] + +theorem thermal_factorization_traceClass_implies_lt {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) + (hτ : 0 < τ) {A : OscillatorSpace →L[ℂ] OscillatorSpace} + (hA : (thermalDensity q ^ (τ / 2)) * A * + (thermalDensity q ^ (τ / 2)) = thermalDensity p) + (htrace : IsPositiveTraceClass A) : p < q ^ τ := by + have hdiag (n : ℕ) : (inner ℂ (numberBasis n) (A (numberBasis n))).re = + thermalSandwichWeight p q τ n := by + rw [thermal_factorization_apply_numberBasis hp₀ hp₁ hq₀ hq₁ hτ hA, + inner_smul_right_eq_smul, inner_self_eq_norm_sq_to_K, + numberBasis.orthonormal.norm_eq_one] + simp [Algebra.smul_def] + have hsum : Summable (thermalSandwichWeight p q τ) := by + simpa only [hdiag] using htrace.summable_diagonal numberBasis + have hc : (1 - p) / (1 - q) ^ τ ≠ 0 := + ne_of_gt (div_pos (sub_pos.mpr hp₁) (Real.rpow_pos_of_pos (sub_pos.mpr hq₁) _)) + have hgeometric : Summable fun n : ℕ => (p / q ^ τ) ^ n := by + apply (summable_mul_left_iff hc).mp + have heq : thermalSandwichWeight p q τ = + fun n => ((1 - p) / (1 - q) ^ τ) * (p / q ^ τ) ^ n := + funext fun n => thermalSandwichWeight_geometric hq₀.le hq₁ n + rw [heq] at hsum + exact hsum + have hqτ : 0 < q ^ τ := Real.rpow_pos_of_pos hq₀ _ + have hr : p / q ^ τ < 1 := by + simpa only [Real.norm_eq_abs, abs_of_nonneg (div_nonneg hp₀ hqτ.le)] using + summable_geometric_iff_norm_lt_one.mp hgeometric + exact (div_lt_one hqτ).mp hr + +/-- The commuting one-mode analogue of the strict Gaussian sandwich +criterion, stated as existence of an actual positive trace-class operator. -/ +theorem exists_positiveTraceClass_thermal_factorization_iff {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) : + (∃ A : OscillatorSpace →L[ℂ] OscillatorSpace, + IsPositiveTraceClass A ∧ + (thermalDensity q ^ (τ / 2)) * A * + (thermalDensity q ^ (τ / 2)) = thermalDensity p) ↔ p < q ^ τ := by + constructor + · rintro ⟨A, htrace, hA⟩ + exact thermal_factorization_traceClass_implies_lt hp₀ hp₁ hq₀ hq₁ hτ hA htrace + · intro hpq + exact ⟨thermalSandwich p q τ, + thermalSandwich_isPositiveTraceClass hp₀ hp₁ hq₀ hq₁ hpq, + thermalSandwich_factorization hp₀ hp₁ hq₀ hq₁ hτ hpq⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalSandwichNormalization.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalSandwichNormalization.lean new file mode 100644 index 0000000000..e890ca7699 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalSandwichNormalization.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalSandwichCriterion +public import LeanPool.VacuumBellSeparation.Gaussian.QuadratureNormalization + +/-! +# Normalized commuting thermal sandwich and its covariance threshold + +The bounded inverse-power sandwich normalizes to the actual thermal +density at parameter `p/q^τ`. The sharp trace criterion can therefore be +expressed using the proved real-quadrature covariances. These identities +are on the actual oscillator Hilbert space and retain the endpoint `p=0`. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +/-- Continuous linear map for the normalized thermal sandwich, of type `OscillatorSpace →L[ℂ] +OscillatorSpace`. -/ +noncomputable def normalizedThermalSandwich (p q τ : ℝ) : + OscillatorSpace →L[ℂ] OscillatorSpace := + (positiveTrace (thermalSandwich p q τ)).toReal⁻¹ • thermalSandwich p q τ + +theorem thermalSandwich_traceValue_pos {p q τ : ℝ} + (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) (hpq : p < q ^ τ) : + 0 < ((1 - p) / (1 - q) ^ τ) / (1 - p / q ^ τ) := by + have hqτ : 0 < q ^ τ := Real.rpow_pos_of_pos hq₀ _ + exact div_pos (div_pos (sub_pos.mpr hp₁) + (Real.rpow_pos_of_pos (sub_pos.mpr hq₁) _)) + (sub_pos.mpr ((div_lt_one hqτ).mpr hpq)) + +theorem thermalSandwich_eq_scaled_thermalDensity {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hq₀ : 0 < q) (hq₁ : q < 1) (hpq : p < q ^ τ) : + thermalSandwich p q τ = + (((1 - p) / (1 - q) ^ τ) / (1 - p / q ^ τ)) • thermalDensity (p / q ^ τ) := by + have hqτ : 0 < q ^ τ := Real.rpow_pos_of_pos hq₀ _ + have hr₀ : 0 ≤ p / q ^ τ := div_nonneg hp₀ hqτ.le + have hr₁ : p / q ^ τ < 1 := (div_lt_one hqτ).mpr hpq + have hd : 1 - p / q ^ τ ≠ 0 := ne_of_gt (sub_pos.mpr hr₁) + apply continuousLinearMap_eq_of_hilbertBasis numberBasis + intro n + rw [thermalSandwich_apply_numberBasis hp₀ hq₀ hq₁ hpq, + smul_apply, thermalDensity_apply_numberBasis hr₀ hr₁, smul_smul] + congr 1 + rw [thermalSandwichWeight_geometric hq₀.le hq₁, thermalWeight] + rw [← mul_assoc, div_mul_cancel₀ _ hd] + +theorem normalizedThermalSandwich_eq_thermalDensity {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) + (hpq : p < q ^ τ) : + normalizedThermalSandwich p q τ = thermalDensity (p / q ^ τ) := by + have hc := thermalSandwich_traceValue_pos hp₁ hq₀ hq₁ hpq + rw [normalizedThermalSandwich, + positiveTrace_thermalSandwich hp₀ hp₁ hq₀ hq₁ hpq, + ENNReal.toReal_ofReal hc.le, + thermalSandwich_eq_scaled_thermalDensity hp₀ hq₀ hq₁ hpq, + smul_smul, inv_mul_cancel₀ hc.ne', one_smul] + +theorem normalizedThermalSandwich_trace_one {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) + (hpq : p < q ^ τ) : positiveTrace (normalizedThermalSandwich p q τ) = 1 := by + rw [normalizedThermalSandwich_eq_thermalDensity hp₀ hp₁ hq₀ hq₁ hpq] + exact positiveTrace_thermalDensity + (div_nonneg hp₀ (Real.rpow_pos_of_pos hq₀ τ).le) + ((div_lt_one (Real.rpow_pos_of_pos hq₀ τ)).mpr hpq) + +theorem normalizedThermalSandwich_isFaithfulDensity {p q τ : ℝ} + (hp₀ : 0 < p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) + (hpq : p < q ^ τ) : IsFaithfulDensity (normalizedThermalSandwich p q τ) := by + rw [normalizedThermalSandwich_eq_thermalDensity hp₀.le hp₁ hq₀ hq₁ hpq] + exact thermalDensity_isFaithfulDensity (div_pos hp₀ (Real.rpow_pos_of_pos hq₀ τ)) + ((div_lt_one (Real.rpow_pos_of_pos hq₀ τ)).mpr hpq) + +theorem thermalQuadratureVariance_lt_iff {p r : ℝ} (hp : p < 1) (hr : r < 1) : + thermalQuadratureVariance p < thermalQuadratureVariance r ↔ p < r := by + unfold thermalQuadratureVariance + rw [div_lt_div_iff₀ (mul_pos (by norm_num) (sub_pos.mpr hp)) + (mul_pos (by norm_num) (sub_pos.mpr hr))] + constructor <;> intro h <;> nlinarith + +/-- The exact scalar covariance-gap criterion for the actual commuting +one-mode density factorization. -/ +theorem exists_positiveTraceClass_thermal_factorization_iff_covariance {p q τ : ℝ} + (hp₀ : 0 ≤ p) (hp₁ : p < 1) (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) : + (∃ A : OscillatorSpace →L[ℂ] OscillatorSpace, + IsPositiveTraceClass A ∧ + (thermalDensity q ^ (τ / 2)) * A * + (thermalDensity q ^ (τ / 2)) = thermalDensity p) ↔ + thermalQuadratureVariance p < thermalQuadratureVariance (q ^ τ) := by + rw [exists_positiveTraceClass_thermal_factorization_iff hp₀ hp₁ hq₀ hq₁ hτ, + thermalQuadratureVariance_lt_iff hp₁ (Real.rpow_lt_one hq₀.le hq₁ hτ)] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalScalar.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalScalar.lean new file mode 100644 index 0000000000..f77d2b62bc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalScalar.lean @@ -0,0 +1,400 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalScalarDefs +public import Mathlib.Algebra.Order.Star.Real +public import Mathlib.Analysis.LocallyConvex.AbsConvexOpen +public import Mathlib.RingTheory.Etale.Weakly +public import Mathlib.RingTheory.TotallySplit +public import Mathlib.Tactic.Basify +public import Mathlib.Tactic.ENatToNat +public import Mathlib.Tactic.Polynomial.Basic +public import Mathlib.Tactic.ReduceModChar +public import Mathlib.Analysis.Calculus.Deriv.Basic +public import Mathlib.Analysis.Calculus.Deriv.MeanValue +public import Mathlib.Analysis.Convex.SpecificFunctions.Basic +public import Mathlib.Analysis.SpecialFunctions.Trigonometric.DerivHyp +public import Mathlib.Analysis.SpecialFunctions.Log.Deriv + +/-! +# Thermal comparison (scalar content of Lemma 4.3) + +With `d = tanh u`, the thermal increment is `d coth(τ u) - 1` and the reserve is +`(1 - d²)^{1/2}`. This file proves the scalar comparison of Lemma 4.3. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-! ### Milestone 1: algebraic reduction -/ + +theorem one_sub_tanh_sq_mul_cosh_sq (u : ℝ) : + (1 - Real.tanh u ^ 2) * Real.cosh u ^ 2 = 1 := by + have hc : 0 < Real.cosh u := Real.cosh_pos u + have hc' : Real.cosh u ≠ 0 := hc.ne' + have hsc : Real.sinh u = Real.tanh u * Real.cosh u := by + rw [Real.tanh_eq_sinh_div_cosh, div_mul_cancel₀ _ hc'] + have h := Real.cosh_sq_sub_sinh_sq u + rw [hsc] at h + linear_combination h + +theorem one_sub_tanh_sq (u : ℝ) : 1 - Real.tanh u ^ 2 = (Real.cosh u ^ 2)⁻¹ := + eq_inv_of_mul_eq_one_left (one_sub_tanh_sq_mul_cosh_sq u) + +theorem one_sub_tanh_sq_pos (u : ℝ) : 0 < 1 - Real.tanh u ^ 2 := by + rw [one_sub_tanh_sq] + exact inv_pos.mpr (pow_pos (Real.cosh_pos u) 2) + +/-- The thermal increment equals the ratio times the reserve power. -/ +theorem thermal_increment_eq {τ u : ℝ} (hτ0 : 0 < τ) (hu : 0 < u) : + Real.tanh u * (Real.cosh (τ * u) / Real.sinh (τ * u)) - 1 + = thermalRatio τ u * (1 - Real.tanh u ^ 2) ^ τ := by + have hc : 0 < Real.cosh u := Real.cosh_pos u + have hs : 0 < Real.sinh (τ * u) := Real.sinh_pos_iff.mpr (mul_pos hτ0 hu) + have hc' : Real.cosh u ≠ 0 := hc.ne' + have hs' : Real.sinh (τ * u) ≠ 0 := hs.ne' + have h1 : (1 - Real.tanh u ^ 2) ^ τ = Real.cosh u ^ (-2 * τ) := by + rw [one_sub_tanh_sq, Real.rpow_mul hc.le, Real.rpow_neg hc.le, Real.rpow_two] + have hpow : Real.cosh u ^ (2 * τ - 1) * Real.cosh u ^ (-2 * τ) = (Real.cosh u)⁻¹ := by + rw [← Real.rpow_add hc, show 2 * τ - 1 + -2 * τ = -1 by ring, Real.rpow_neg_one] + have hsub : Real.sinh ((1 - τ) * u) + = Real.sinh u * Real.cosh (τ * u) - Real.cosh u * Real.sinh (τ * u) := by + rw [show (1 - τ) * u = u - τ * u by ring, Real.sinh_sub] + have hR : thermalRatio τ u * (1 - Real.tanh u ^ 2) ^ τ + = Real.sinh ((1 - τ) * u) / Real.sinh (τ * u) * (Real.cosh u)⁻¹ := by + rw [h1, thermalRatio, mul_assoc, hpow] + rw [hR, hsub, Real.tanh_eq_sinh_div_cosh] + field_simp + +/-- Reduction of the scalar Lemma 4.3 to a lower bound on the ratio. -/ +theorem thermal_increment_ge_of_le_ratio {τ u c : ℝ} (hτ0 : 0 < τ) (hu : 0 < u) + (hc : c ≤ thermalRatio τ u) : + c * (1 - Real.tanh u ^ 2) ^ τ + ≤ Real.tanh u * (Real.cosh (τ * u) / Real.sinh (τ * u)) - 1 := by + rw [thermal_increment_eq hτ0 hu] + exact mul_le_mul_of_nonneg_right hc (Real.rpow_nonneg (one_sub_tanh_sq_pos u).le _) + +/-! ### Milestone 2: the case `τ ≤ 1/2` (elementary) -/ + +theorem partA_core {p y : ℝ} (hp0 : 0 ≤ p) (hp1 : p ≤ 1) (hy0 : 0 < y) (hy1 : y ≤ 1) : + y ^ p + p * y ^ ((1 + p) / 2) ≤ 1 + p * y := by + have h1 : y ^ p ≤ 1 + p * (y - 1) := by + have h := rpow_one_add_le_one_add_mul_self (s := y - 1) (by linarith) hp0 hp1 + rw [show 1 + (y - 1) = y by ring] at h + exact h + have h2 : y ^ ((1 + p) / 2) ≤ 1 := Real.rpow_le_one hy0.le hy1 (by linarith) + have h3 := mul_le_mul_of_nonneg_left h2 hp0 + nlinarith + +theorem partA_exp {τ u : ℝ} (hτ0 : 0 < τ) (hτ : τ ≤ 1 / 2) (hu : 0 < u) : + (1 - Real.exp (-2 * u) ^ τ) * (1 + Real.exp (-2 * u)) ^ (1 - 2 * τ) + ≤ 1 - Real.exp (-2 * u) ^ (1 - τ) := by + obtain ⟨y, hy⟩ : ∃ y, y = Real.exp (-2 * u) := ⟨_, rfl⟩ + rw [← hy] + have hy0 : 0 < y := by rw [hy]; exact Real.exp_pos _ + have hy1 : y < 1 := by + rw [hy] + calc Real.exp (-2 * u) < Real.exp 0 := Real.exp_lt_exp.mpr (by linarith) + _ = 1 := Real.exp_zero + have hp0 : 0 ≤ 1 - 2 * τ := by linarith + have hp1 : 1 - 2 * τ ≤ 1 := by linarith + have hcore := partA_core hp0 hp1 hy0 hy1.le + rw [show (1 + (1 - 2 * τ)) / 2 = 1 - τ by ring] at hcore + have hb : (1 + y) ^ (1 - 2 * τ) ≤ 1 + (1 - 2 * τ) * y := + rpow_one_add_le_one_add_mul_self (by linarith) hp0 hp1 + have hyτ : y ^ τ ≤ 1 := Real.rpow_le_one hy0.le hy1.le hτ0.le + have hyτ0 : 0 < y ^ τ := Real.rpow_pos_of_pos hy0 τ + have e2 : y ^ τ * y ^ (1 - 2 * τ) = y ^ (1 - τ) := by + rw [← Real.rpow_add hy0]; congr 1; ring + have e3 : y ^ τ * y ^ (1 - τ) = y := by + rw [← Real.rpow_add hy0, show τ + (1 - τ) = (1 : ℝ) by ring, Real.rpow_one] + have h4 : y ^ (1 - τ) + (1 - 2 * τ) * y ≤ y ^ τ + (1 - 2 * τ) * y * y ^ τ := by + have h := mul_le_mul_of_nonneg_left hcore hyτ0.le + calc y ^ (1 - τ) + (1 - 2 * τ) * y + = y ^ τ * (y ^ (1 - 2 * τ) + (1 - 2 * τ) * y ^ (1 - τ)) := by + linear_combination -e2 - (1 - 2 * τ) * e3 + _ ≤ y ^ τ * (1 + (1 - 2 * τ) * y) := h + _ = y ^ τ + (1 - 2 * τ) * y * y ^ τ := by ring + have h5 : (1 - y ^ τ) * (1 + y) ^ (1 - 2 * τ) ≤ (1 - y ^ τ) * (1 + (1 - 2 * τ) * y) := + mul_le_mul_of_nonneg_left hb (by linarith) + nlinarith [h4, h5] + +theorem thermalRatio_ge_of_le_half {τ u : ℝ} (hτ0 : 0 < τ) (hτ : τ ≤ 1 / 2) (hu : 0 < u) : + (2 : ℝ) ^ (1 - 2 * τ) ≤ thermalRatio τ u := by + have hc : 0 < Real.cosh u := Real.cosh_pos u + have hs : 0 < Real.sinh (τ * u) := Real.sinh_pos_iff.mpr (mul_pos hτ0 hu) + have key := partA_exp hτ0 hτ hu + have e1 : Real.exp (τ * u) * Real.exp (-2 * u) ^ τ = Real.exp (-(τ * u)) := by + rw [← Real.exp_mul, ← Real.exp_add]; congr 1; ring + have hsτ : Real.sinh (τ * u) = Real.exp (τ * u) * (1 - Real.exp (-2 * u) ^ τ) / 2 := by + rw [Real.sinh_eq, mul_sub, mul_one, e1] + have e2 : Real.exp ((1 - τ) * u) * Real.exp (-2 * u) ^ (1 - τ) + = Real.exp (-((1 - τ) * u)) := by + rw [← Real.exp_mul, ← Real.exp_add]; congr 1; ring + have hsa : Real.sinh ((1 - τ) * u) + = Real.exp ((1 - τ) * u) * (1 - Real.exp (-2 * u) ^ (1 - τ)) / 2 := by + rw [Real.sinh_eq, mul_sub, mul_one, e2] + have e3' : Real.exp u * Real.exp (-2 * u) = Real.exp (-u) := by + rw [← Real.exp_add]; congr 1; ring + have e3 : 2 * Real.cosh u = Real.exp u * (1 + Real.exp (-2 * u)) := by + rw [Real.cosh_eq, mul_add, mul_one, e3']; ring + have e4 : (2 : ℝ) ^ (1 - 2 * τ) * Real.cosh u ^ (1 - 2 * τ) + = Real.exp (u * (1 - 2 * τ)) * (1 + Real.exp (-2 * u)) ^ (1 - 2 * τ) := by + rw [← Real.mul_rpow (show (0 : ℝ) ≤ 2 by norm_num) hc.le, e3, + Real.mul_rpow (Real.exp_pos u).le (show (0 : ℝ) ≤ 1 + Real.exp (-2 * u) by positivity), + ← Real.exp_mul] + have e5 : Real.exp (τ * u) * Real.exp (u * (1 - 2 * τ)) = Real.exp ((1 - τ) * u) := by + rw [← Real.exp_add]; congr 1; ring + unfold thermalRatio + rw [show 2 * τ - 1 = -(1 - 2 * τ) by ring, Real.rpow_neg hc.le, ← div_eq_mul_inv, div_div, + le_div_iff₀ (mul_pos hs (Real.rpow_pos_of_pos hc _))] + calc (2 : ℝ) ^ (1 - 2 * τ) * (Real.sinh (τ * u) * Real.cosh u ^ (1 - 2 * τ)) + = Real.sinh (τ * u) * ((2 : ℝ) ^ (1 - 2 * τ) * Real.cosh u ^ (1 - 2 * τ)) := by ring + _ = Real.exp ((1 - τ) * u) / 2 + * ((1 - Real.exp (-2 * u) ^ τ) * (1 + Real.exp (-2 * u)) ^ (1 - 2 * τ)) := by + rw [e4, hsτ, ← e5]; ring + _ ≤ Real.exp ((1 - τ) * u) / 2 * (1 - Real.exp (-2 * u) ^ (1 - τ)) := + mul_le_mul_of_nonneg_left key (by positivity) + _ = Real.sinh ((1 - τ) * u) := by rw [hsa]; ring + +/-- Lemma 4.3 for `0 < τ ≤ 1/2`: `c_τ ≤ 𝔮_τ(u)`. -/ +theorem thermalConst_le_thermalRatio_of_le_half {τ u : ℝ} (hτ0 : 0 < τ) (hτ : τ ≤ 1 / 2) + (hu : 0 < u) : thermalConst τ ≤ thermalRatio τ u := by + rw [thermalConst, ite_eq_left hτ] + exact thermalRatio_ge_of_le_half hτ0 hτ hu + +/-- Lemma 4.3, scalar form, for `0 < τ ≤ 1/2` (`d = tanh u`). -/ +theorem thermal_increment_ge_of_le_half {τ u : ℝ} (hτ0 : 0 < τ) (hτ : τ ≤ 1 / 2) (hu : 0 < u) : + thermalConst τ * (1 - Real.tanh u ^ 2) ^ τ + ≤ Real.tanh u * (Real.cosh (τ * u) / Real.sinh (τ * u)) - 1 := + thermal_increment_ge_of_le_ratio hτ0 hu (thermalConst_le_thermalRatio_of_le_half hτ0 hτ hu) + +/-! ### Stage B1 of the case `τ ≥ 1/2` (calculus) -/ + +/-- Stage B1: `sinh x ≤ x cosh x` for `0 ≤ x`. -/ +theorem sinh_le_mul_cosh {x : ℝ} (hx : 0 ≤ x) : Real.sinh x ≤ x * Real.cosh x := by + have hderiv : ∀ t : ℝ, + HasDerivAt (fun t => t * Real.cosh t - Real.sinh t) (t * Real.sinh t) t := by + intro t + have h1 := ((hasDerivAt_id' (x := t)).mul (Real.hasDerivAt_cosh t)).sub + (Real.hasDerivAt_sinh t) + exact h1.congr_deriv (by ring) + have hmono : MonotoneOn (fun t => t * Real.cosh t - Real.sinh t) (Set.Ici 0) := by + apply monotoneOn_of_deriv_nonneg (convex_Ici 0) + · exact fun t _ => (hderiv t).continuousAt.continuousWithinAt + · exact fun t _ => (hderiv t).differentiableAt.differentiableWithinAt + · intro t ht + rw [interior_Ici] at ht + rw [(hderiv t).deriv] + exact mul_nonneg (le_of_lt ht) (Real.sinh_nonneg_iff.mpr (le_of_lt ht)) + have h0 : (0 : ℝ) * Real.cosh 0 - Real.sinh 0 ≤ x * Real.cosh x - Real.sinh x := + hmono (Set.mem_Ici.mpr le_rfl) (Set.mem_Ici.mpr hx) hx + rw [Real.sinh_zero] at h0 + linarith + +/-- Stage B1': `tanh x ≤ x` for `0 ≤ x`. -/ +theorem tanh_le_self_of_nonneg {x : ℝ} (hx : 0 ≤ x) : Real.tanh x ≤ x := by + rw [Real.tanh_eq_sinh_div_cosh, div_le_iff₀ (Real.cosh_pos x)] + exact sinh_le_mul_cosh hx + +/-! ### Stage B2 of the case `τ ≥ 1/2`: two auxiliary inequalities -/ + +/-- (S1) `m(u) = log (cosh u) + tanh u ^ 2 - u tanh u ≥ 0` for `u ≥ 0`. -/ +theorem log_cosh_add_tanh_sq_sub_mul_tanh_nonneg {u : ℝ} (hu : 0 ≤ u) : + 0 ≤ Real.log (Real.cosh u) + Real.tanh u ^ 2 - u * Real.tanh u := by + have hderiv : ∀ v : ℝ, HasDerivAt + (fun v => Real.log (Real.cosh v) - Real.tanh u * (v - Real.sinh v / Real.cosh v)) + (Real.sinh v / Real.cosh v - Real.tanh u * + (1 - (Real.cosh v * Real.cosh v - Real.sinh v * Real.sinh v) / Real.cosh v ^ 2)) v := by + intro v + have hc : Real.cosh v ≠ 0 := (Real.cosh_pos v).ne' + have h1 := (Real.hasDerivAt_cosh v).log hc + have h2 := (Real.hasDerivAt_sinh v).div (Real.hasDerivAt_cosh v) hc + exact h1.sub (((hasDerivAt_id' (x := v)).sub h2).const_mul (Real.tanh u)) + have hmono : MonotoneOn + (fun v => Real.log (Real.cosh v) - Real.tanh u * (v - Real.sinh v / Real.cosh v)) + (Set.Ici 0) := by + apply monotoneOn_of_deriv_nonneg (convex_Ici 0) + · exact fun v _ => (hderiv v).continuousAt.continuousWithinAt + · exact fun v _ => (hderiv v).differentiableAt.differentiableWithinAt + · intro v hv + rw [interior_Ici] at hv + rw [(hderiv v).deriv] + have hv0 : 0 < v := hv + have hcs : Real.cosh v * Real.cosh v - Real.sinh v * Real.sinh v = 1 := by + linear_combination Real.cosh_sq_sub_sinh_sq v + rw [hcs, one_div, ← one_sub_tanh_sq, ← Real.tanh_eq_sinh_div_cosh] + have hT0 : 0 ≤ Real.tanh v := by + rw [Real.tanh_eq_sinh_div_cosh] + exact div_nonneg (Real.sinh_nonneg_iff.mpr hv0.le) (Real.cosh_pos v).le + have hT1 : Real.tanh v < 1 := Real.tanh_lt_one v + have ht1 : Real.tanh u < 1 := Real.tanh_lt_one u + nlinarith [mul_nonneg hT0 (sub_nonneg.mpr hT1.le), + mul_nonneg (sq_nonneg (Real.tanh v)) (sub_nonneg.mpr ht1.le)] + have h0 : Real.log (Real.cosh 0) - Real.tanh u * (0 - Real.sinh 0 / Real.cosh 0) + ≤ Real.log (Real.cosh u) - Real.tanh u * (u - Real.sinh u / Real.cosh u) := + hmono (Set.mem_Ici.mpr le_rfl) (Set.mem_Ici.mpr hu) hu + have hM0 : Real.log (Real.cosh 0) - Real.tanh u * (0 - Real.sinh 0 / Real.cosh 0) = 0 := by + simp + rw [hM0, ← Real.tanh_eq_sinh_div_cosh] at h0 + nlinarith [h0] + +/-- (S2) `N(u) = sinh u · log (cosh u) - u cosh u + sinh u ≥ 0` for `u ≥ 0`. -/ +theorem sinh_mul_log_cosh_sub_nonneg {u : ℝ} (hu : 0 ≤ u) : + 0 ≤ Real.sinh u * Real.log (Real.cosh u) - u * Real.cosh u + Real.sinh u := by + have hderiv : ∀ t : ℝ, HasDerivAt + (fun t => Real.sinh t * Real.log (Real.cosh t) - t * Real.cosh t + Real.sinh t) + (Real.cosh t * Real.log (Real.cosh t) + Real.sinh t * (Real.sinh t / Real.cosh t) + - (1 * Real.cosh t + t * Real.sinh t) + Real.cosh t) t := by + intro t + have hc : Real.cosh t ≠ 0 := (Real.cosh_pos t).ne' + exact (((Real.hasDerivAt_sinh t).mul ((Real.hasDerivAt_cosh t).log hc)).sub + ((hasDerivAt_id' (x := t)).mul (Real.hasDerivAt_cosh t))).add (Real.hasDerivAt_sinh t) + have hmono : MonotoneOn + (fun t => Real.sinh t * Real.log (Real.cosh t) - t * Real.cosh t + Real.sinh t) + (Set.Ici 0) := by + apply monotoneOn_of_deriv_nonneg (convex_Ici 0) + · exact fun t _ => (hderiv t).continuousAt.continuousWithinAt + · exact fun t _ => (hderiv t).differentiableAt.differentiableWithinAt + · intro t ht + rw [interior_Ici] at ht + rw [(hderiv t).deriv] + have hm := log_cosh_add_tanh_sq_sub_mul_tanh_nonneg (le_of_lt ht) + have hc : 0 < Real.cosh t := Real.cosh_pos t + have hsc : Real.sinh t = Real.tanh t * Real.cosh t := by + rw [Real.tanh_eq_sinh_div_cosh, div_mul_cancel₀ _ hc.ne'] + rw [← Real.tanh_eq_sinh_div_cosh, hsc] + nlinarith [mul_nonneg hc.le hm] + have h0 : Real.sinh 0 * Real.log (Real.cosh 0) - 0 * Real.cosh 0 + Real.sinh 0 + ≤ Real.sinh u * Real.log (Real.cosh u) - u * Real.cosh u + Real.sinh u := + hmono (Set.mem_Ici.mpr le_rfl) (Set.mem_Ici.mpr hu) hu + have hN0 : Real.sinh 0 * Real.log (Real.cosh 0) - 0 * Real.cosh 0 + Real.sinh 0 = 0 := by + simp + rw [hN0] at h0 + exact h0 + +/-- Consequence of (S2): `u coth u - 1 ≤ log (cosh u)` for `u > 0`. -/ +theorem mul_coth_sub_one_le_log_cosh {u : ℝ} (hu : 0 < u) : + u * Real.cosh u / Real.sinh u - 1 ≤ Real.log (Real.cosh u) := by + have hs : 0 < Real.sinh u := Real.sinh_pos_iff.mpr hu + have hN := sinh_mul_log_cosh_sub_nonneg hu.le + rw [sub_le_iff_le_add, div_le_iff₀ hs] + nlinarith [hN] + +/-! ### Stage B3: monotonicity of `coth x - 1/x` and of `log φ` -/ + +/-- (S3) `q(x) = coth x - 1/x` is monotone on `(0, ∞)`. -/ +theorem coth_sub_inv_monotoneOn : + MonotoneOn (fun x => Real.cosh x / Real.sinh x - x⁻¹) (Set.Ioi 0) := by + have hderiv : ∀ x : ℝ, 0 < x → HasDerivAt (fun x => Real.cosh x / Real.sinh x - x⁻¹) + ((Real.sinh x * Real.sinh x - Real.cosh x * Real.cosh x) / Real.sinh x ^ 2 + - -(x ^ 2)⁻¹) x := by + intro x hx + have hs : Real.sinh x ≠ 0 := (Real.sinh_pos_iff.mpr hx).ne' + exact ((Real.hasDerivAt_cosh x).div (Real.hasDerivAt_sinh x) hs).sub (hasDerivAt_inv hx.ne') + apply monotoneOn_of_deriv_nonneg (convex_Ioi 0) + · exact fun x hx => (hderiv x hx).continuousAt.continuousWithinAt + · intro x hx + rw [interior_Ioi] at hx + exact (hderiv x hx).differentiableAt.differentiableWithinAt + · intro x hx + rw [interior_Ioi] at hx + rw [(hderiv x hx).deriv] + have hx0 : 0 < x := hx + have hcs : Real.sinh x * Real.sinh x - Real.cosh x * Real.cosh x = -1 := by + linear_combination (-1 : ℝ) * Real.cosh_sq_sub_sinh_sq x + have hxs : x ≤ Real.sinh x := Real.self_le_sinh_iff.mpr hx0.le + have h2 : x ^ 2 ≤ Real.sinh x ^ 2 := by nlinarith + have h3 : (Real.sinh x ^ 2)⁻¹ ≤ (x ^ 2)⁻¹ := inv_anti₀ (pow_pos hx0 2) h2 + rw [hcs] + have e : -1 / Real.sinh x ^ 2 - -(x ^ 2)⁻¹ = (x ^ 2)⁻¹ - (Real.sinh x ^ 2)⁻¹ := by ring + rw [e] + linarith + +/-- The derivative bound used in (S4): `u coth(cu) - 1/c - log (cosh u) ≤ 0` for `0 < c ≤ 1`. -/ +theorem coth_mul_sub_inv_le_log_cosh {u c : ℝ} (hu : 0 < u) (hc0 : 0 < c) (hc1 : c ≤ 1) : + Real.cosh (c * u) * (1 * u) / Real.sinh (c * u) - c⁻¹ - 1 * Real.log (Real.cosh u) ≤ 0 := by + have hcu : 0 < c * u := mul_pos hc0 hu + have hq : Real.cosh (c * u) / Real.sinh (c * u) - (c * u)⁻¹ + ≤ Real.cosh u / Real.sinh u - u⁻¹ := + coth_sub_inv_monotoneOn (Set.mem_Ioi.mpr hcu) (Set.mem_Ioi.mpr hu) (by nlinarith) + have e1 : u * (c * u)⁻¹ = c⁻¹ := by + rw [mul_inv, mul_left_comm, mul_inv_cancel₀ hu.ne', mul_one] + have e2 : u * u⁻¹ = 1 := mul_inv_cancel₀ hu.ne' + have hS2 := mul_coth_sub_one_le_log_cosh hu + calc Real.cosh (c * u) * (1 * u) / Real.sinh (c * u) - c⁻¹ - 1 * Real.log (Real.cosh u) + = u * (Real.cosh (c * u) / Real.sinh (c * u) - (c * u)⁻¹) - Real.log (Real.cosh u) := by + rw [mul_sub, e1]; ring + _ ≤ u * (Real.cosh u / Real.sinh u - u⁻¹) - Real.log (Real.cosh u) := + sub_le_sub_right (mul_le_mul_of_nonneg_left hq hu.le) _ + _ = (u * Real.cosh u / Real.sinh u - 1) - Real.log (Real.cosh u) := by + rw [mul_sub, e2]; ring + _ ≤ 0 := sub_nonpos.mpr hS2 + +/-- (S4) `ψ(c) = log (sinh (c u)) - log c - c log (cosh u)` is antitone on `(0, 1]`. -/ +theorem psi_antitoneOn {u : ℝ} (hu : 0 < u) : + AntitoneOn (fun c => Real.log (Real.sinh (c * u)) - Real.log c - c * Real.log (Real.cosh u)) + (Set.Ioc 0 1) := by + have hderiv : ∀ c : ℝ, 0 < c → HasDerivAt + (fun c => Real.log (Real.sinh (c * u)) - Real.log c - c * Real.log (Real.cosh u)) + (Real.cosh (c * u) * (1 * u) / Real.sinh (c * u) - c⁻¹ - 1 * Real.log (Real.cosh u)) c := by + intro c hc + have hs : Real.sinh (c * u) ≠ 0 := (Real.sinh_pos_iff.mpr (mul_pos hc hu)).ne' + have h1 : HasDerivAt (fun y => y * u) (1 * u) c := (hasDerivAt_id' (x := c)).mul_const u + have h2 : HasDerivAt (fun y => Real.sinh (y * u)) (Real.cosh (c * u) * (1 * u)) c := h1.sinh + exact ((h2.log hs).sub (Real.hasDerivAt_log hc.ne')).sub + ((hasDerivAt_id' (x := c)).mul_const (Real.log (Real.cosh u))) + apply antitoneOn_of_deriv_nonpos (convex_Ioc 0 1) + · exact fun c hc => (hderiv c hc.1).continuousAt.continuousWithinAt + · intro c hc + rw [interior_Ioc] at hc + exact (hderiv c hc.1).differentiableAt.differentiableWithinAt + · intro c hc + rw [interior_Ioc] at hc + rw [(hderiv c hc.1).deriv] + exact coth_mul_sub_inv_le_log_cosh hu hc.1 hc.2.le + +/-! ### Lemma 4.3 for `1/2 ≤ τ < 1` and the full statement -/ + +/-- Lemma 4.3 for `1/2 ≤ τ < 1`: `(1-τ)/τ ≤ 𝔮_τ(u)`. -/ +theorem thermalRatio_ge_of_half_le {τ u : ℝ} (hτ : 1 / 2 ≤ τ) (hτ1 : τ < 1) (hu : 0 < u) : + (1 - τ) / τ ≤ thermalRatio τ u := by + have hτ0 : 0 < τ := by linarith + have ha0 : 0 < 1 - τ := by linarith + have hab : 1 - τ ≤ τ := by linarith + have hψ : Real.log (Real.sinh (τ * u)) - Real.log τ - τ * Real.log (Real.cosh u) + ≤ Real.log (Real.sinh ((1 - τ) * u)) - Real.log (1 - τ) + - (1 - τ) * Real.log (Real.cosh u) := + psi_antitoneOn hu ⟨ha0, by linarith⟩ ⟨hτ0, hτ1.le⟩ hab + have hsa : 0 < Real.sinh ((1 - τ) * u) := Real.sinh_pos_iff.mpr (mul_pos ha0 hu) + have hsb : 0 < Real.sinh (τ * u) := Real.sinh_pos_iff.mpr (mul_pos hτ0 hu) + have hc : 0 < Real.cosh u := Real.cosh_pos u + have hR : 0 < thermalRatio τ u := + mul_pos (div_pos hsa hsb) (Real.rpow_pos_of_pos hc _) + rw [← Real.log_le_log_iff (div_pos ha0 hτ0) hR, Real.log_div ha0.ne' hτ0.ne'] + unfold thermalRatio + rw [Real.log_mul (div_pos hsa hsb).ne' (Real.rpow_pos_of_pos hc _).ne', + Real.log_div hsa.ne' hsb.ne', Real.log_rpow hc] + nlinarith [hψ] + +/-- Lemma 4.3: `c_τ ≤ 𝔮_τ(u)` for `0 < τ < 1` and `u > 0`. -/ +theorem thermalConst_le_thermalRatio {τ u : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) (hu : 0 < u) : + thermalConst τ ≤ thermalRatio τ u := by + by_cases hτ : τ ≤ 1 / 2 + · exact thermalConst_le_thermalRatio_of_le_half hτ0 hτ hu + · rw [thermalConst, ite_eq_right hτ] + exact thermalRatio_ge_of_half_le (le_of_lt (not_le.mp hτ)) hτ1 hu + +/-- Lemma 4.3, scalar form (`d = tanh u`): `d coth(τu) - 1 ≥ c_τ (1 - d²)^τ`. -/ +theorem thermal_increment_ge {τ u : ℝ} (hτ0 : 0 < τ) (hτ1 : τ < 1) (hu : 0 < u) : + thermalConst τ * (1 - Real.tanh u ^ 2) ^ τ + ≤ Real.tanh u * (Real.cosh (τ * u) / Real.sinh (τ * u)) - 1 := + thermal_increment_ge_of_le_ratio hτ0 hu (thermalConst_le_thermalRatio hτ0 hτ1 hu) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalScalarDefs.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalScalarDefs.lean new file mode 100644 index 0000000000..30a6ffd6d5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalScalarDefs.lean @@ -0,0 +1,31 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Complex.Trigonometric +public import Mathlib.Analysis.SpecialFunctions.Pow.Real + +/-! +# Statement seed extracted from Gaussian/ThermalScalar + +Literal declarations are unchanged; theorem conclusions remain in the implementation module. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- The constant `c_τ` of Lemma 4.3 (the two formulas agree at `τ = 1/2`). -/ +noncomputable def thermalConst (τ : ℝ) : ℝ := if τ ≤ 1 / 2 then (2 : ℝ) ^ (1 - 2 * τ) else + (1 - τ) / τ + +/-- The scalar ratio `𝔮_τ(u) = sinh((1-τ)u)/sinh(τu) · cosh(u)^{2τ-1}`. -/ +noncomputable def thermalRatio (τ u : ℝ) : ℝ := + Real.sinh ((1 - τ) * u) / Real.sinh (τ * u) * Real.cosh u ^ (2 * τ - 1) + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalState.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalState.lean new file mode 100644 index 0000000000..ec4431c92b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalState.lean @@ -0,0 +1,192 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowers +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtTrace +public import LeanPool.VacuumBellSeparation.Bell.Defs + +/-! +# Thermal expectations as actual bounded states + +A summable diagonal density defines a complex-linear functional by its +absolutely convergent number-basis series. Positive inputs agree with the +positive trace of the square-root sandwich. No value of the positive trace +on a nonpositive operator is used to define a complex trace. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ComplexOrder ENNReal + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [CompleteSpace E] + +/-- Diagonal expectation given by `∑' k, (w k : ℂ) * inner ℂ (b k) (A (b k))`. -/ +noncomputable def diagonalExpectation (b : HilbertBasis ℕ ℂ E) (w : ℕ → ℝ) + (A : E →L[ℂ] E) : ℂ := ∑' k, (w k : ℂ) * inner ℂ (b k) (A (b k)) + +omit [CompleteSpace E] in +theorem norm_diagonalExpectation_term_le (b : HilbertBasis ℕ ℂ E) + (w : ℕ → ℝ) (A : E →L[ℂ] E) (k : ℕ) : + ‖(w k : ℂ) * inner ℂ (b k) (A (b k))‖ ≤ |w k| * ‖A‖ := by + rw [norm_mul, Complex.norm_real, Real.norm_eq_abs] + apply mul_le_mul_of_nonneg_left _ (abs_nonneg _) + calc + ‖inner ℂ (b k) (A (b k))‖ ≤ ‖b k‖ * ‖A (b k)‖ := norm_inner_le_norm _ _ + _ ≤ ‖b k‖ * (‖A‖ * ‖b k‖) := mul_le_mul_of_nonneg_left (A.le_opNorm _) (norm_nonneg _) + _ = ‖A‖ := by rw [b.orthonormal.norm_eq_one]; ring + +omit [CompleteSpace E] in +theorem summable_diagonalExpectation_terms (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) (A : E →L[ℂ] E) : + Summable fun k => (w k : ℂ) * inner ℂ (b k) (A (b k)) := by + have hwabs : Summable fun k => |w k| := by + simpa only [Real.norm_eq_abs] using hw.norm + apply (hwabs.mul_right ‖A‖).of_norm_bounded + exact norm_diagonalExpectation_term_le b w A + +omit [CompleteSpace E] in +theorem norm_diagonalExpectation_le (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) (A : E →L[ℂ] E) : + ‖diagonalExpectation b w A‖ ≤ (∑' k, |w k|) * ‖A‖ := by + have hwabs : Summable fun k => |w k| := by + simpa only [Real.norm_eq_abs] using hw.norm + exact tsum_of_norm_bounded (hwabs.hasSum.mul_right ‖A‖) + (norm_diagonalExpectation_term_le b w A) + +/-- Continuous linear map for the diagonal expectation linear, of type `(E →L[ℂ] E) →ₗ[ℂ] ℂ where +toFun`. -/ +noncomputable def diagonalExpectationLinear (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) : (E →L[ℂ] E) →ₗ[ℂ] ℂ where + toFun := diagonalExpectation b w + map_add' A B := by + simp only [diagonalExpectation, add_apply, inner_add_right, mul_add] + exact (summable_diagonalExpectation_terms b hw A).tsum_add + (summable_diagonalExpectation_terms b hw B) + map_smul' c A := by + simp only [diagonalExpectation, smul_apply, inner_smul_right, RingHom.id_apply, + smul_eq_mul] + simp_rw [mul_left_comm (w _ : ℂ) c] + exact tsum_mul_left + +/-- Diagonal expectation continuous linear map of type `(E →L[ℂ] E) →L[ℂ] ℂ`. -/ +noncomputable def diagonalExpectationCLM (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) : (E →L[ℂ] E) →L[ℂ] ℂ := + (diagonalExpectationLinear b hw).mkContinuous (∑' k, |w k|) + (norm_diagonalExpectation_le b hw) + +omit [CompleteSpace E] in +@[simp] theorem diagonalExpectationCLM_apply (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) (A : E →L[ℂ] E) : + diagonalExpectationCLM b hw A = diagonalExpectation b w A := rfl + +omit [CompleteSpace E] in +theorem diagonalExpectation_one (b : HilbertBasis ℕ ℂ E) (w : ℕ → ℝ) : + diagonalExpectation b w 1 = (∑' k, w k : ℝ) := by + simp only [diagonalExpectation, one_apply_eq_self, inner_self_eq_norm_sq_to_K, + b.orthonormal.norm_eq_one, RCLike.ofReal_one, one_pow, mul_one] + exact (Complex.ofReal_tsum w).symm + +omit [CompleteSpace E] in +theorem diagonalExpectation_nonneg (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : ∀ k, 0 ≤ w k) {A : E →L[ℂ] E} (hA : 0 ≤ A) : + 0 ≤ diagonalExpectation b w A := by + apply tsum_nonneg + intro k + exact mul_nonneg (Complex.zero_le_real.mpr (hw k)) + ((ContinuousLinearMap.nonneg_iff_isPositive.mp hA).inner_nonneg_right (b k)) + +/-- A probability-weighted diagonal series is a state on the actual bounded +operator algebra. Normality is not being asserted by this bundled type. -/ +noncomputable def diagonalState (b : HilbertBasis ℕ ℂ E) {w : ℕ → ℝ} + (hw : Summable w) (hw₀ : ∀ k, 0 ≤ w k) (hw₁ : ∑' k, w k = 1) : State E where + toLinearMap := diagonalExpectationLinear b hw + map_one' := by simpa [diagonalExpectationLinear, hw₁] using diagonalExpectation_one b w + map_nonneg' A hA := by + have h := Complex.nonneg_iff.mp (diagonalExpectation_nonneg b hw₀ + (ContinuousLinearMap.nonneg_iff_isPositive.mpr hA)) + exact ⟨h.2.symm, h.1⟩ + +theorem sqrt_diagonalOperator_apply_basis (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) (hw₀ : ∀ k, 0 ≤ w k) (k : ℕ) : + CFC.sqrt (diagonalOperator b w) (b k) = Real.sqrt (w k) • b k := by + have hk : b k ≠ 0 := by + intro hz + have hn := b.orthonormal.norm_eq_one k + rw [hz, norm_zero] at hn + norm_num at hn + have heig := diagonalOperator_apply_basis b hw k + rw [CFC.sqrt_eq_rpow, Real.sqrt_eq_rpow] + exact rpow_apply_eigenvector (diagonalOperator_nonneg b hw₀) + (eigenvalue_mem_real_spectrum hk heig) heig (by norm_num) + +theorem positiveTrace_diagonal_sandwich (b : HilbertBasis ℕ ℂ E) + {w : ℕ → ℝ} (hw : Summable w) (hw₀ : ∀ k, 0 ≤ w k) + {A : E →L[ℂ] E} (hA : 0 ≤ A) : + positiveTrace (CFC.sqrt (diagonalOperator b w) * A * CFC.sqrt (diagonalOperator b w)) = + ENNReal.ofReal (diagonalExpectation b w A).re := by + let S := CFC.sqrt (diagonalOperator b w) + have hs : IsSelfAdjoint S := (CFC.sqrt_nonneg _).isSelfAdjoint + have hdiag (k : ℕ) : inner ℂ (b k) ((S * A * S) (b k)) = + (w k : ℂ) * inner ℂ (b k) (A (b k)) := by + calc + inner ℂ (b k) ((S * A * S) (b k)) = + inner ℂ (S (b k)) (A (S (b k))) := by + rw [mul_apply_eq_comp, mul_apply_eq_comp, + ← S.adjoint_inner_left, hs.adjoint_eq] + _ = _ := by + change inner ℂ (CFC.sqrt (diagonalOperator b w) (b k)) + (A (CFC.sqrt (diagonalOperator b w) (b k))) = _ + rw [sqrt_diagonalOperator_apply_basis b hw hw₀, + map_smul_of_tower, inner_smul_left_eq_smul, inner_smul_right_eq_smul] + simp only [Algebra.smul_def, Complex.coe_algebraMap] + rw [← mul_assoc, ← Complex.ofReal_mul, Real.mul_self_sqrt (hw₀ k)] + rw [positiveTrace_eq_tsum_diagonal b + (conjugate_nonneg_of_nonneg hA (CFC.sqrt_nonneg _))] + change (∑' k, ENNReal.ofReal (inner ℂ (b k) ((S * A * S) (b k))).re) = _ + simp_rw [hdiag] + have hnonneg (k : ℕ) : 0 ≤ ((w k : ℂ) * inner ℂ (b k) (A (b k))).re := + (Complex.nonneg_iff.mp (mul_nonneg (Complex.zero_le_real.mpr (hw₀ k)) + ((ContinuousLinearMap.nonneg_iff_isPositive.mp hA).inner_nonneg_right _))).1 + have hsum := Complex.hasSum_re (summable_diagonalExpectation_terms b hw A).hasSum + rw [← ENNReal.ofReal_tsum_of_nonneg hnonneg hsum.summable, hsum.tsum_eq] + rfl + +/-- Thermal state. -/ +noncomputable def thermalState {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) : + State OscillatorSpace := + diagonalState numberBasis (hasSum_thermalWeight hq₀ hq₁).summable + (fun k => mul_nonneg (sub_nonneg.mpr hq₁.le) (pow_nonneg hq₀ k)) + (hasSum_thermalWeight hq₀ hq₁).tsum_eq + +theorem thermalState_apply {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) + (A : OscillatorSpace →L[ℂ] OscillatorSpace) : + thermalState hq₀ hq₁ A = ∑' k, (thermalWeight q k : ℂ) * + inner ℂ (numberBasis k) (A (numberBasis k)) := rfl + +theorem norm_thermalState_le {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) + (A : OscillatorSpace →L[ℂ] OscillatorSpace) : ‖thermalState hq₀ hq₁ A‖ ≤ ‖A‖ := by + have hw₀ (k : ℕ) : 0 ≤ thermalWeight q k := + mul_nonneg (sub_nonneg.mpr hq₁.le) (pow_nonneg hq₀ k) + change ‖diagonalExpectation numberBasis (thermalWeight q) A‖ ≤ ‖A‖ + have h := norm_diagonalExpectation_le numberBasis + (hasSum_thermalWeight hq₀ hq₁).summable A + simpa only [abs_of_nonneg (hw₀ _), (hasSum_thermalWeight hq₀ hq₁).tsum_eq, + one_mul] using h + +theorem positiveTrace_thermal_sandwich {q : ℝ} (hq₀ : 0 ≤ q) (hq₁ : q < 1) + {A : OscillatorSpace →L[ℂ] OscillatorSpace} (hA : 0 ≤ A) : + positiveTrace (CFC.sqrt (thermalDensity q) * A * CFC.sqrt (thermalDensity q)) = + ENNReal.ofReal (thermalState hq₀ hq₁ A).re := + positiveTrace_diagonal_sandwich numberBasis (hasSum_thermalWeight hq₀ hq₁).summable + (fun k => mul_nonneg (sub_nonneg.mpr hq₁.le) (pow_nonneg hq₀ k)) hA + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalVarianceComparison.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalVarianceComparison.lean new file mode 100644 index 0000000000..e771670850 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalVarianceComparison.lean @@ -0,0 +1,131 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalScalar +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalSandwichNormalization + +/-! +# The source comparison of thermal variances + +The monotonicity of coth(u)-1/u, proved in `Gaussian/ThermalScalar.lean` as a step of the +library's proof of Lemma 4.3 (`coth_sub_inv_monotoneOn`), implies monotonicity of u coth(u), +which the manuscript uses in the proof of Theorem 4.1. Together with decreasing coth this yields +the exact ratio +bound for the actual normalized thermal-power covariances. Pure modes +are treated directly, and all exponent domains are positive. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +theorem coth_sub_inv_nonneg {u : ℝ} (hu : 0 < u) : + 0 ≤ Real.cosh u / Real.sinh u - u⁻¹ := by + have hs : 0 < Real.sinh u := Real.sinh_pos_iff.mpr hu + have h := VacuumBellSeparation.sinh_le_mul_cosh hu.le + rw [sub_nonneg, inv_le_iff_one_le_mul₀' hu] + rw [← mul_div_assoc, le_div_iff₀ hs] + simpa only [one_mul] using h + +theorem mul_coth_monotoneOn : + MonotoneOn (fun u : ℝ => u * (Real.cosh u / Real.sinh u)) (Set.Ioi 0) := by + intro u hu v hv huv + change 0 < u at hu + change 0 < v at hv + have hq := VacuumBellSeparation.coth_sub_inv_monotoneOn hu hv huv + have hm := mul_le_mul huv hq (coth_sub_inv_nonneg hu) hv.le + have huinv := mul_inv_cancel₀ hu.ne' + have hvinv := mul_inv_cancel₀ hv.ne' + nlinarith + +theorem coth_antitoneOn : + AntitoneOn (fun u : ℝ => Real.cosh u / Real.sinh u) (Set.Ioi 0) := by + have hd : ∀ u : ℝ, 0 < u → HasDerivAt (fun u => Real.cosh u / Real.sinh u) + (-1 / Real.sinh u ^ 2) u := by + intro u hu + have h := (Real.hasDerivAt_cosh u).div (Real.hasDerivAt_sinh u) + (Real.sinh_pos_iff.mpr hu).ne' + convert h using 1 + congr 1 + nlinarith [Real.cosh_sq_sub_sinh_sq u] + apply antitoneOn_of_deriv_nonpos (convex_Ioi 0) + · exact fun u hu => (hd u hu).continuousAt.continuousWithinAt + · intro u hu + rw [interior_Ioi] at hu + exact (hd u hu).differentiableAt.differentiableWithinAt + · intro u hu + rw [interior_Ioi] at hu + rw [(hd u hu).deriv] + exact div_nonpos_of_nonpos_of_nonneg (by norm_num) (sq_nonneg _) + +theorem cosh_div_sinh_eq_exp_neg {u : ℝ} (hu : 0 < u) : + Real.cosh u / Real.sinh u = (1 + Real.exp (-2 * u)) / (1 - Real.exp (-2 * u)) := by + have hs : Real.sinh u ≠ 0 := (Real.sinh_pos_iff.mpr hu).ne' + have he₁ : Real.exp (-2 * u) < 1 := Real.exp_lt_one_iff.mpr (by linarith) + have he : Real.exp u * Real.exp (-2 * u) = Real.exp (-u) := by + rw [← Real.exp_add] + congr 1 + ring + apply (div_eq_div_iff hs (sub_pos.mpr he₁).ne').mpr + rw [Real.cosh_eq, Real.sinh_eq] + nlinarith [he] + +theorem thermalQuadratureVariance_exp_neg {u : ℝ} (hu : 0 < u) : + thermalQuadratureVariance (Real.exp (-2 * u)) = + (1 / 2 : ℝ) * (Real.cosh u / Real.sinh u) := by + rw [cosh_div_sinh_eq_exp_neg hu, thermalQuadratureVariance] + have hden : 1 - Real.exp (-2 * u) ≠ 0 := + (sub_pos.mpr (Real.exp_lt_one_iff.mpr (by linarith))).ne' + field_simp [hden] + +theorem coth_scaled_comparison {u a b : ℝ} (hu : 0 < u) (ha : 0 < a) (hb : 0 < b) : + Real.cosh (a * u) / Real.sinh (a * u) ≤ + max 1 (b / a) * (Real.cosh (b * u) / Real.sinh (b * u)) := by + have hbu : 0 < Real.cosh (b * u) / Real.sinh (b * u) := + div_pos (Real.cosh_pos _) (Real.sinh_pos_iff.mpr (mul_pos hb hu)) + by_cases hab : a ≤ b + · have hm := mul_coth_monotoneOn (mul_pos ha hu) (mul_pos hb hu) + (mul_le_mul_of_nonneg_right hab hu.le) + have hratio : Real.cosh (a * u) / Real.sinh (a * u) ≤ + (b / a) * (Real.cosh (b * u) / Real.sinh (b * u)) := by + apply (_root_.mul_le_mul_iff_right₀ (mul_pos ha hu)).mp + convert hm using 1; field_simp [ha.ne'] + exact hratio.trans (mul_le_mul_of_nonneg_right (le_max_right _ _) hbu.le) + · have hc := coth_antitoneOn (mul_pos hb hu) (mul_pos ha hu) + (mul_le_mul_of_nonneg_right (le_of_not_ge hab) hu.le) + exact hc.trans (by simpa only [one_mul] using + mul_le_mul_of_nonneg_right (le_max_left (1 : ℝ) (b / a)) hbu.le) + +/-- The source bound v(q^a)/v(q^b) ≤ max{1,b/a}, written without a +division by the (already positive) reference variance. -/ +theorem thermalQuadratureVariance_power_comparison {q a b : ℝ} + (hq₀ : 0 ≤ q) (hq₁ : q < 1) (ha : 0 < a) (hb : 0 < b) : + thermalQuadratureVariance (q ^ a) ≤ + max 1 (b / a) * thermalQuadratureVariance (q ^ b) := by + by_cases hq : q = 0 + · simp only [hq, Real.zero_rpow ha.ne', Real.zero_rpow hb.ne', thermalQuadratureVariance] + norm_num + · have hqpos : 0 < q := lt_of_le_of_ne hq₀ (Ne.symm hq) + let u : ℝ := -Real.log q / 2 + have hu : 0 < u := by + dsimp [u] + linarith [Real.log_neg hqpos hq₁] + have he (t : ℝ) : q ^ t = Real.exp (-2 * (t * u)) := by + rw [Real.rpow_def_of_pos hqpos] + congr 1 + dsimp [u] + ring + rw [he a, he b, thermalQuadratureVariance_exp_neg (mul_pos ha hu), + thermalQuadratureVariance_exp_neg (mul_pos hb hu)] + have h := mul_le_mul_of_nonneg_left (coth_scaled_comparison hu ha hb) (by norm_num : + (0 : ℝ) ≤ 1 / 2) + nlinarith + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/ThermalWoodburyCovariance.lean b/LeanPool/VacuumBellSeparation/Gaussian/ThermalWoodburyCovariance.lean new file mode 100644 index 0000000000..f3e71a1e9d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/ThermalWoodburyCovariance.lean @@ -0,0 +1,173 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSandwichNormalization + +/-! +# Literal Appendix A covariance of the actual normalized sandwich + +The thermal mode identities identify the positive Woodbury factor with +the actual matrix CFC square root. The already proved noncommuting inverse +identity then rewrites the actual normalized covariance in the manuscript's +form. Every inverse is justified by a positive-definite matrix hypothesis. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} {q : Fin m → ℝ} {τ : ℝ} +variable {V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ} + +theorem modeDiagonal_sub_scalar (d : Fin m → ℝ) (c : ℝ) : + modeDiagonal (fun j => d j - c) = modeDiagonal d - c • 1 := by + simp only [modeDiagonal, Matrix.smul_one_eq_diagonal, ← Matrix.diagonal_sub] + +theorem thermal_scalar_excess_inverse {q τ : ℝ} + (hq₀ : 0 < q) (hq₁ : q < 1) (hτ : 0 < τ) : + (q ^ (-τ) - 1)⁻¹ = thermalQuadratureVariance (q ^ τ) - 1 / 2 := by + have ht₀ := Real.rpow_pos_of_pos hq₀ τ + have ht₁ := Real.rpow_lt_one hq₀.le hq₁ hτ + have hden : (q ^ τ)⁻¹ - 1 ≠ 0 := ne_of_gt (sub_pos.mpr ((one_lt_inv₀ ht₀).mpr ht₁)) + rw [Real.rpow_neg hq₀.le, thermalQuadratureVariance] + field_simp [ht₀.ne', hden, ne_of_gt (sub_pos.mpr ht₁)] + ring + +theorem thermalDilationExcess_inv + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + (thermalDilationExcess q τ)⁻¹ = + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - (1 / 2 : ℝ) • 1 := by + have hs (j : Fin m) : q j ^ (-τ) - 1 ≠ 0 := ne_of_gt (sub_pos.mpr + (Real.one_lt_rpow_of_pos_of_lt_one_of_neg (hq₀ j) (hq₁ j) (neg_neg_of_pos hτ))) + rw [thermalDilationExcess, modeDiagonal_inv hs] + simp_rw [thermal_scalar_excess_inverse (hq₀ _) (hq₁ _) hτ] + exact modeDiagonal_sub_scalar _ _ + +/-- Thermal woodbury factor given by `modeDiagonal (fun j => q j ^ (-(τ / 2)) * (q j ^ (-τ) - +1)⁻¹)`. -/ +def thermalWoodburyFactor (q : Fin m → ℝ) (τ : ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + modeDiagonal (fun j => q j ^ (-(τ / 2)) * (q j ^ (-τ) - 1)⁻¹) + +theorem thermalWoodburyFactor_posDef + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + (thermalWoodburyFactor q τ).PosDef := + modeDiagonal_posDef fun j => mul_pos (Real.rpow_pos_of_pos (hq₀ j) _) + (inv_pos.mpr (sub_pos.mpr + (Real.one_lt_rpow_of_pos_of_lt_one_of_neg (hq₀ j) (hq₁ j) (neg_neg_of_pos hτ)))) + +theorem thermalWoodburyFactor_eq_mul_inverse + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + thermalWoodburyFactor q τ = + thermalQuadratureDilation q τ * (thermalDilationExcess q τ)⁻¹ := by + have hs (j : Fin m) : q j ^ (-τ) - 1 ≠ 0 := ne_of_gt (sub_pos.mpr + (Real.one_lt_rpow_of_pos_of_lt_one_of_neg (hq₀ j) (hq₁ j) (neg_neg_of_pos hτ))) + rw [thermalDilationExcess, modeDiagonal_inv hs, thermalQuadratureDilation, modeDiagonal_mul] + rfl + +theorem thermalWoodburyFactor_eq_inverse_mul + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + thermalWoodburyFactor q τ = + (thermalDilationExcess q τ)⁻¹ * thermalQuadratureDilation q τ := by + have hs (j : Fin m) : q j ^ (-τ) - 1 ≠ 0 := ne_of_gt (sub_pos.mpr + (Real.one_lt_rpow_of_pos_of_lt_one_of_neg (hq₀ j) (hq₁ j) (neg_neg_of_pos hτ))) + rw [thermalDilationExcess, modeDiagonal_inv hs, thermalQuadratureDilation, + modeDiagonal_mul, thermalWoodburyFactor] + congr 1 + funext j + ring + +theorem thermalWoodburyFactor_sq + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + thermalWoodburyFactor q τ * thermalWoodburyFactor q τ = + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) ^ 2 - (1 / 4 : ℝ) • 1 := by + rw [thermalWoodburyFactor, modeDiagonal_mul, pow_two, modeDiagonal_mul, + ← modeDiagonal_sub_scalar] + congr 1 + funext j + have h := thermal_scalar_dilation_threshold (hq₀ j) (hq₁ j) hτ + have hi := thermal_scalar_excess_inverse (hq₀ j) (hq₁ j) hτ + calc + _ = (q j ^ (-(τ / 2)) * (q j ^ (-τ) - 1)⁻¹ * q j ^ (-(τ / 2))) * + (q j ^ (-τ) - 1)⁻¹ := by ring + _ = _ := by rw [h, hi]; ring + +/-- The Woodbury factor is the genuine positive CFC square root used in +Appendix A, including its strict positivity for faithful thermal modes. -/ +theorem thermalWoodburyFactor_eq_sqrt + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) : + thermalWoodburyFactor q τ = + CFC.sqrt (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) ^ 2 - + (1 / 4 : ℝ) • 1) := + (CFC.sqrt_unique (thermalWoodburyFactor_sq hq₀ hq₁ hτ) + (thermalWoodburyFactor_posDef hq₀ hq₁ hτ).posSemidef.nonneg).symm + +theorem gaussianThermalCovariance_woodbury + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + gaussianThermalCovariance q τ V = + -modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) + + thermalWoodburyFactor q τ * + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V)⁻¹ * + thermalWoodburyFactor q τ := by + let S := thermalDilationExcess q τ + let T := thermalQuadratureDilation q τ + let C := V + (1 / 2 : ℝ) • 1 + have hP : thermalCoherentPrecision q τ V = sandwichPrecision S T C := by + dsimp only [S, T, C] + rw [thermalCoherentPrecision, sandwichPrecision, ← thermalQuadratureDilation_sq hq₀] + abel + have hG : sandwichGap S T C = + modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V := by + dsimp only [S, T, C] + rw [sandwichGap, thermalDilationExcess_inverse_congruence hq₀ hq₁ hτ] + abel + have hGi : IsUnit (sandwichGap S T C) := hG.symm ▸ hgap.isUnit + have h := sandwichPrecision_inv S T C + (thermalDilationExcess_posDef hq₀ hq₁ hτ).isUnit + (thermalQuadratureDilation_posDef hq₀ τ).isUnit hC.isUnit hGi + rw [← hP, hG] at h + have hL := thermalWoodburyFactor_eq_mul_inverse hq₀ hq₁ hτ + have hL' := thermalWoodburyFactor_eq_inverse_mul hq₀ hq₁ hτ + have hprod : S⁻¹ * T * + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V)⁻¹ * T * S⁻¹ = + thermalWoodburyFactor q τ * + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V)⁻¹ * + thermalWoodburyFactor q τ := by + calc + _ = (S⁻¹ * T) * + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V)⁻¹ * + (T * S⁻¹) := by noncomm_ring + _ = _ := by rw [← hL, ← hL'] + rw [gaussianThermalCovariance, h, hprod] + change -(thermalDilationExcess q τ)⁻¹ + _ - (1 / 2 : ℝ) • 1 = _ + rw [thermalDilationExcess_inv hq₀ hq₁ hτ] + abel + +/-- Appendix A covariance formula with the literal actual positive square root. -/ +theorem gaussianThermalCovariance_appendixA + (hq₀ : ∀ j, 0 < q j) (hq₁ : ∀ j, q j < 1) (hτ : 0 < τ) + (hC : (V + (1 / 2 : ℝ) • 1).PosDef) + (hgap : (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V).PosDef) : + gaussianThermalCovariance q τ V = + -modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) + + CFC.sqrt (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) ^ 2 - + (1 / 4 : ℝ) • 1) * + (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) - V)⁻¹ * + CFC.sqrt (modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)) ^ 2 - + (1 / 4 : ℝ) • 1) := by + rw [gaussianThermalCovariance_woodbury hq₀ hq₁ hτ hC hgap, + thermalWoodburyFactor_eq_sqrt hq₀ hq₁ hτ] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/TorusCoherentExpansion.lean b/LeanPool/VacuumBellSeparation/Gaussian/TorusCoherentExpansion.lean new file mode 100644 index 0000000000..e8b3c661e0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/TorusCoherentExpansion.lean @@ -0,0 +1,206 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeBargmannPointwise +public import Mathlib.Analysis.Fourier.AddCircleMulti + +/-! +# Actual torus Fourier expansion of coherent coordinates + +At fixed complex amplitudes, the nonnegative occupation frequencies form +an actual orthonormal subfamily of Mathlib's torus Fourier basis. The +coherent scalar coordinate is identified with the resulting L² series by +its pointwise Hilbert-space series and an a.e. convergent subsequence. +Angular Parseval follows with no uniform or absolute series assumption. +The torus Haar measure is explicitly normalized to total mass one. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory Filter Topology +open scoped ComplexConjugate ENNReal + +/-- The normalized Haar probability measure on the unit circle. -/ +local instance torusCircleHaarMeasure : MeasureSpace UnitAddCircle := ⟨AddCircle.haarAddCircle⟩ +local instance : IsProbabilityMeasure (volume : Measure UnitAddCircle) := + inferInstanceAs (IsProbabilityMeasure AddCircle.haarAddCircle) + +/-- Occupation frequency given by `fun j => k j`. -/ +def occupationFrequency {m : ℕ} (k : Fin m → ℕ) : Fin m → ℤ := fun j => k j + +theorem occupationFrequency_injective (m : ℕ) : + Function.Injective (occupationFrequency (m := m)) := by + intro k l h + funext j + have hj : (k j : ℤ) = (l j : ℤ) := congrFun h j + exact_mod_cast hj + +/-- Torus occupation basis obtained from `UnitAddTorus.mFourierLp`. -/ +def torusOccupationBasis {m : ℕ} (k : Fin m → ℕ) : + Lp ℂ 2 (volume : Measure (UnitAddTorus (Fin m))) := + UnitAddTorus.mFourierLp 2 (occupationFrequency k) + +theorem orthonormal_torusOccupationBasis (m : ℕ) : + Orthonormal ℂ (torusOccupationBasis (m := m)) := + UnitAddTorus.orthonormal_mFourier.comp occupationFrequency (occupationFrequency_injective m) + +/-- Occupation torus L². -/ +def occupationTorusL2 (m : ℕ) : + MultiModeOscillatorSpace m →ₗᵢ[ℂ] Lp ℂ 2 (volume : Measure (UnitAddTorus (Fin m))) := + (orthonormal_torusOccupationBasis m).orthogonalFamily.linearIsometry + +theorem hasSum_occupationTorusL2 {m : ℕ} (x : MultiModeOscillatorSpace m) : + HasSum (fun k => x k • torusOccupationBasis k) (occupationTorusL2 m x) := by + simpa only [occupationTorusL2, LinearIsometry.toSpanSingleton_apply] using + (orthonormal_torusOccupationBasis m).orthogonalFamily.hasSum_linearIsometry x + +/-- Torus coherent label given by `fun j => a j * fourier 1 (θ j)`. -/ +def torusCoherentLabel {m : ℕ} (a : Fin m → ℂ) (θ : UnitAddTorus (Fin m)) : Fin m → ℂ := + fun j => a j * fourier 1 (θ j) + +theorem fourier_natCast_eq_pow (n : ℕ) (θ : UnitAddCircle) : + fourier (n : ℤ) θ = fourier 1 θ ^ n := by + induction n with + | zero => simp only [Nat.cast_zero, fourier_zero, pow_zero] + | succ n ih => rw [Nat.cast_succ, fourier_add, ih, pow_succ] + +theorem multiCoherentCoefficient_torusLabel {m : ℕ} + (a : Fin m → ℂ) (θ : UnitAddTorus (Fin m)) (k : Fin m → ℕ) : + multiCoherentCoefficient (torusCoherentLabel a θ) k = + multiCoherentCoefficient a k * UnitAddTorus.mFourier (occupationFrequency k) θ := by + simp only [multiCoherentCoefficient, UnitAddTorus.mFourier, occupationFrequency, + ContinuousMap.coe_mk, ← Finset.prod_mul_distrib] + apply Finset.prod_congr rfl + intro j _ + rw [coherentCoefficient, coherentCoefficient, torusCoherentLabel, + mul_pow, fourier_natCast_eq_pow] + ring + +theorem summable_torusCoherentCoefficients {m : ℕ} (a : Fin m → ℂ) + (x : MultiModeOscillatorSpace m) : + Summable fun k => ‖x k * multiCoherentCoefficient a k‖ ^ 2 := by + apply Summable.of_nonneg_of_le (fun _ => sq_nonneg _) + (fun k => ?_) ((hasSum_multiCoherent_norm_sq a).summable.mul_left (‖x‖ ^ 2)) + rw [norm_mul, mul_pow] + exact mul_le_mul_of_nonneg_right + (pow_le_pow_left₀ (norm_nonneg _) (lp.norm_apply_le_norm (by norm_num) x k) 2) + (sq_nonneg _) + +/-- Torus coherent coefficients. -/ +def torusCoherentCoefficients {m : ℕ} (a : Fin m → ℂ) (x : MultiModeOscillatorSpace m) : + MultiModeOscillatorSpace m := + ⟨(fun k => x k * multiCoherentCoefficient a k), by + apply (memℓp_gen_iff (by norm_num : 0 < (2 : ℝ≥0∞).toReal)).mpr + simpa [Real.rpow_two] using summable_torusCoherentCoefficients a x⟩ + +@[simp] theorem torusCoherentCoefficients_apply {m : ℕ} + (a : Fin m → ℂ) (x : MultiModeOscillatorSpace m) (k : Fin m → ℕ) : + torusCoherentCoefficients a x k = x k * multiCoherentCoefficient a k := rfl + +/-- Torus coherent function defined as `inner ℂ (multiExponentialVector (fun j => conj +(torusCoherentLabel a θ j))) x`. -/ +def torusCoherentFunction {m : ℕ} (a : Fin m → ℂ) (x : MultiModeOscillatorSpace m) + (θ : UnitAddTorus (Fin m)) : ℂ := + inner ℂ (multiExponentialVector (fun j => conj (torusCoherentLabel a θ j))) x + +theorem hasSum_torusCoherentFunction {m : ℕ} (a : Fin m → ℂ) + (x : MultiModeOscillatorSpace m) (θ : UnitAddTorus (Fin m)) : + HasSum (fun k => torusCoherentCoefficients a x k * + UnitAddTorus.mFourier (occupationFrequency k) θ) (torusCoherentFunction a x θ) := by + have h := lp.hasSum_inner (𝕜 := ℂ) + (multiExponentialVector (fun j => conj (torusCoherentLabel a θ j))) x + change HasSum _ (inner ℂ + (multiExponentialVector (fun j => conj (torusCoherentLabel a θ j))) x) + apply h.congr_fun + intro k + rw [multiExponentialVector_apply, RCLike.inner_apply', conj_multiCoherentCoefficient, + multiCoherentCoefficient_torusLabel, torusCoherentCoefficients_apply] + ring + +theorem occupationTorusL2_ae_eq_coherent {m : ℕ} (a : Fin m → ℂ) + (x : MultiModeOscillatorSpace m) : + (occupationTorusL2 m (torusCoherentCoefficients a x) : UnitAddTorus (Fin m) → ℂ) =ᵐ[volume] + torusCoherentFunction a x := by + classical + let v := torusCoherentCoefficients a x + let F : (Fin m → ℕ) → Lp ℂ 2 (volume : Measure (UnitAddTorus (Fin m))) := + fun k => v k • torusOccupationBasis k + have hsum : Tendsto (fun s : Finset (Fin m → ℕ) => ∑ k ∈ s, F k) + atTop (𝓝 (occupationTorusL2 m v)) := hasSum_occupationTorusL2 v + obtain ⟨ns, hns, hlim⟩ := + (tendstoInMeasure_of_tendsto_Lp hsum).exists_seq_tendsto_ae' + have hterms : ∀ᵐ θ ∂(volume : Measure (UnitAddTorus (Fin m))), ∀ k, + F k θ = v k * UnitAddTorus.mFourier (occupationFrequency k) θ := by + apply ae_all_iff.mpr + intro k + filter_upwards [Lp.coeFn_smul (v k) (torusOccupationBasis k), + UnitAddTorus.coeFn_mFourierLp 2 (occupationFrequency k)] with θ hsmul hchar + change (v k • torusOccupationBasis k) θ = _ + rw [hsmul] + change v k * (UnitAddTorus.mFourierLp 2 (occupationFrequency k)) θ = _ + rw [hchar] + have hsums : ∀ᵐ θ ∂(volume : Measure (UnitAddTorus (Fin m))), + ∀ s : Finset (Fin m → ℕ), (∑ k ∈ s, F k) θ = ∑ k ∈ s, F k θ := + ae_all_iff.mpr fun s => Lp.coeFn_fun_finsetSum s F + filter_upwards [hlim, hterms, hsums] with θ hθ hterm hpartial + have hscalar := (hasSum_torusCoherentFunction a x θ).comp hns + have hscalar' : Tendsto (fun N => (∑ k ∈ ns N, F k) θ) + atTop (𝓝 (torusCoherentFunction a x θ)) := by + have heq : (fun N => (∑ k ∈ ns N, F k) θ) = + (fun s => ∑ k ∈ s, torusCoherentCoefficients a x k * + UnitAddTorus.mFourier (occupationFrequency k) θ) ∘ ns := by + funext N + change (∑ k ∈ ns N, F k) θ = ∑ k ∈ ns N, + torusCoherentCoefficients a x k * UnitAddTorus.mFourier (occupationFrequency k) θ + rw [hpartial] + exact Finset.sum_congr rfl fun k _ => hterm k + rw [heq] + exact hscalar + exact tendsto_nhds_unique hθ hscalar' + +theorem memLp_torusCoherentFunction {m : ℕ} (a : Fin m → ℂ) (x : MultiModeOscillatorSpace m) : + MemLp (torusCoherentFunction a x) 2 (volume : Measure (UnitAddTorus (Fin m))) := + (Lp.memLp (occupationTorusL2 m (torusCoherentCoefficients a x))).ae_eq + (occupationTorusL2_ae_eq_coherent a x) + +theorem integrable_torusCoherentFunction_norm_sq {m : ℕ} + (a : Fin m → ℂ) (x : MultiModeOscillatorSpace m) : + Integrable (fun θ : UnitAddTorus (Fin m) => ‖torusCoherentFunction a x θ‖ ^ 2) := + (memLp_two_iff_integrable_sq_norm (memLp_torusCoherentFunction a x).aestronglyMeasurable).mp + (memLp_torusCoherentFunction a x) + +theorem integral_torusCoherentFunction_norm_sq {m : ℕ} + (a : Fin m → ℂ) (x : MultiModeOscillatorSpace m) : + (∫ θ : UnitAddTorus (Fin m), ‖torusCoherentFunction a x θ‖ ^ 2) = + ∑' k, ‖x k‖ ^ 2 * ‖multiCoherentCoefficient a k‖ ^ 2 := by + let v := torusCoherentCoefficients a x + let f := occupationTorusL2 m v + have hinner : (∫ θ : UnitAddTorus (Fin m), + inner ℂ (torusCoherentFunction a x θ) (torusCoherentFunction a x θ)) = inner ℂ f f := by + rw [L2.inner_def] + apply integral_congr_ae + filter_upwards [occupationTorusL2_ae_eq_coherent a x] with θ hθ + rw [hθ] + have hint : Integrable (fun θ : UnitAddTorus (Fin m) => + inner ℂ (torusCoherentFunction a x θ) (torusCoherentFunction a x θ)) := by + apply (L2.integrable_inner (𝕜 := ℂ) f f).congr + filter_upwards [occupationTorusL2_ae_eq_coherent a x] with θ hθ + rw [hθ] + have hreal := congrArg (RCLike.re : ℂ → ℝ) hinner + rw [← integral_re hint] at hreal + have hnorm : (∫ θ : UnitAddTorus (Fin m), ‖torusCoherentFunction a x θ‖ ^ 2) = ‖v‖ ^ 2 := by + simpa only [inner_self_eq_norm_sq, f, (occupationTorusL2 m).norm_map] using hreal + rw [hnorm] + have hs := lp.hasSum_norm (p := 2) (by norm_num) v + simpa [v, torusCoherentCoefficients_apply, norm_mul, mul_pow, Real.rpow_two] using hs.tsum_eq.symm + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/TorusPositiveDiagonal.lean b/LeanPool/VacuumBellSeparation/Gaussian/TorusPositiveDiagonal.lean new file mode 100644 index 0000000000..611b5a9caf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/TorusPositiveDiagonal.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.TorusCoherentExpansion +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTrace + +/-! +# Angular integration of an actual positive coherent form + +Scalar torus Parseval is applied to the actual sqrt(A) basis coordinates. +Nonnegative Tonelli and Hilbert-space Parseval then isolate the positive +number-state diagonal. This identity precedes, and does not assume, +construction of an inverse sandwich extension or its trace class. +Torus measure has total mass one; radial/polar conversion is separate. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate ENNReal + +/-- Measure-space instance for `UnitAddCircle`. -/ +local instance torusPositiveDiagonalMeasureSpace : MeasureSpace UnitAddCircle := + ⟨AddCircle.haarAddCircle⟩ +local instance torusPositiveDiagonalProbabilityMeasure : IsProbabilityMeasure + (volume : Measure UnitAddCircle) := + inferInstanceAs (IsProbabilityMeasure AddCircle.haarAddCircle) + +/-- Positive torus coherent diagonal. -/ +def positiveTorusCoherentDiagonal {m : ℕ} + (A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m) + (a : Fin m → ℂ) (θ : UnitAddTorus (Fin m)) : ℝ := + let v := multiExponentialVector (fun j => conj (torusCoherentLabel a θ j)) + (inner ℂ v (A v)).re + +theorem positiveTorusCoherentDiagonal_nonneg {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (a : Fin m → ℂ) (θ : UnitAddTorus (Fin m)) : + 0 ≤ positiveTorusCoherentDiagonal A a θ := + (ContinuousLinearMap.nonneg_iff_isPositive.mp hA).re_inner_nonneg_right _ + +theorem tsum_torusCoherent_sqrt_basis {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (a : Fin m → ℂ) (θ : UnitAddTorus (Fin m)) : + (∑' k, ENNReal.ofReal (‖torusCoherentFunction a + (CFC.sqrt A (multiModeNumberBasis m k)) θ‖ ^ 2)) = + ENNReal.ofReal (positiveTorusCoherentDiagonal A a θ) := by + let S := CFC.sqrt A + let v := multiExponentialVector (fun j => conj (torusCoherentLabel a θ j)) + have hS : IsSelfAdjoint S := (CFC.sqrt_nonneg A).isSelfAdjoint + have hn (k : Fin m → ℕ) : ‖inner ℂ v (S (multiModeNumberBasis m k))‖ = + ‖inner ℂ (multiModeNumberBasis m k) (S v)‖ := by + rw [← S.adjoint_inner_left, hS.adjoint_eq, norm_inner_symm] + change (∑' k, ENNReal.ofReal (‖inner ℂ v (S (multiModeNumberBasis m k))‖ ^ 2)) = _ + simp_rw [hn] + rw [tsum_basis_inner_norm_sq (multiModeNumberBasis m)] + exact congrArg ENNReal.ofReal (sqrt_norm_sq_eq_diagonal hA v) + +/-- Angular integration gives the actual full diagonal series. Neither +finite trace nor existence of a bounded inverse sandwich is assumed. -/ +theorem lintegral_positiveTorusCoherentDiagonal {m : ℕ} + {A : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m} (hA : 0 ≤ A) + (a : Fin m → ℂ) : + (∫⁻ θ : UnitAddTorus (Fin m), ENNReal.ofReal (positiveTorusCoherentDiagonal A a θ)) = + ∑' k, ENNReal.ofReal (‖multiCoherentCoefficient a k‖ ^ 2 * + (inner ℂ (multiModeNumberBasis m k) (A (multiModeNumberBasis m k))).re) := by + let S := CFC.sqrt A + have hS : IsSelfAdjoint S := (CFC.sqrt_nonneg A).isSelfAdjoint + let f : (Fin m → ℕ) → UnitAddTorus (Fin m) → ℝ := fun j θ => + ‖torusCoherentFunction a (S (multiModeNumberBasis m j)) θ‖ ^ 2 + have hint (j : Fin m → ℕ) : Integrable (f j) := integrable_torusCoherentFunction_norm_sq _ _ + have heval (j : Fin m → ℕ) : + (∫⁻ θ, ENNReal.ofReal (f j θ)) = + ∑' k, ENNReal.ofReal (‖S (multiModeNumberBasis m j) k‖ ^ 2 * + ‖multiCoherentCoefficient a k‖ ^ 2) := by + rw [← ofReal_integral_eq_lintegral_ofReal (hint j) + (Filter.Eventually.of_forall (fun _ => sq_nonneg _))] + rw [show (∫ θ, f j θ) = ∑' k, ‖S (multiModeNumberBasis m j) k‖ ^ 2 * + ‖multiCoherentCoefficient a k‖ ^ 2 from integral_torusCoherentFunction_norm_sq _ _] + exact ENNReal.ofReal_tsum_of_nonneg (fun k => mul_nonneg (sq_nonneg _) (sq_nonneg _)) + (by simpa only [norm_mul, mul_pow] using + summable_torusCoherentCoefficients a (S (multiModeNumberBasis m j))) + have hnorm (j k : Fin m → ℕ) : ‖S (multiModeNumberBasis m j) k‖ = + ‖inner ℂ (multiModeNumberBasis m j) (S (multiModeNumberBasis m k))‖ := by + rw [← multiModeNumberBasis_inner, ← S.adjoint_inner_left, hS.adjoint_eq, norm_inner_symm] + calc + _ = ∫⁻ θ, ∑' j, ENNReal.ofReal (f j θ) := by + apply lintegral_congr + intro θ + exact (tsum_torusCoherent_sqrt_basis hA a θ).symm + _ = ∑' j, ∫⁻ θ, ENNReal.ofReal (f j θ) := + lintegral_tsum (fun j => (hint j).aemeasurable.ennreal_ofReal) + _ = ∑' j, ∑' k, ENNReal.ofReal (‖S (multiModeNumberBasis m j) k‖ ^ 2 * + ‖multiCoherentCoefficient a k‖ ^ 2) := tsum_congr heval + _ = ∑' k, ∑' j, ENNReal.ofReal (‖S (multiModeNumberBasis m j) k‖ ^ 2 * + ‖multiCoherentCoefficient a k‖ ^ 2) := tsum_comm + _ = _ := by + apply tsum_congr + intro k + simp_rw [hnorm, ENNReal.ofReal_mul (sq_nonneg _)] + rw [ENNReal.tsum_mul_right, tsum_basis_inner_norm_sq (multiModeNumberBasis m), + ← ENNReal.ofReal_mul (sq_nonneg _)] + change ENNReal.ofReal (‖CFC.sqrt A (multiModeNumberBasis m k)‖ ^ 2 * + ‖multiCoherentCoefficient a k‖ ^ 2) = _ + have hsq : ‖CFC.sqrt A (multiModeNumberBasis m k)‖ ^ 2 = + (inner ℂ (multiModeNumberBasis m k) (A (multiModeNumberBasis m k))).re := + sqrt_norm_sq_eq_diagonal hA (multiModeNumberBasis m k) + rw [hsq, mul_comm, ENNReal.ofReal_mul (sq_nonneg _)] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/TraceNormCompression.lean b/LeanPool/VacuumBellSeparation/Gaussian/TraceNormCompression.lean new file mode 100644 index 0000000000..4edc1deb91 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/TraceNormCompression.lean @@ -0,0 +1,76 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompactTraceNorm +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtIdeal +public import LeanPool.VacuumBellSeparation.Gaussian.Compression + +/-! +# Actual trace-norm bounds for rectangular compressions + +The proof sandwiches the two genuine order bounds -|Y| <= Y <= |Y| +and uses the actual positive trace ideal estimate. It never asserts the +generally false operator inequality |A†YA| <= A†|Y|A. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem operatorTraceNorm_adjoint_sandwich_le + {Y : F →L[ℂ] F} (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) + (A : E →L[ℂ] F) : + operatorTraceNorm (A.adjoint.comp (Y.comp A)) ≤ + ENNReal.ofReal (‖A‖ ^ 2) * operatorTraceNorm Y := by + have hpos {B : F →L[ℂ] F} (hB : 0 ≤ B) : + 0 ≤ A.adjoint.comp (B.comp A) := by + exact nonneg_iff_isPositive.mpr ((nonneg_iff_isPositive.mp hB).adjoint_conj A) + have hlo : -(A.adjoint.comp ((CFC.abs Y).comp A)) ≤ A.adjoint.comp (Y.comp A) := by + have h := hpos (operator_abs_add_nonneg hY) + simp only [add_comp, comp_add] at h + exact neg_le_iff_add_nonneg'.mpr h + have hhi : A.adjoint.comp (Y.comp A) ≤ A.adjoint.comp ((CFC.abs Y).comp A) := by + have h := hpos (operator_abs_sub_nonneg hY) + simp only [sub_comp, comp_sub] at h + exact sub_nonneg.mp h + have hc : IsCompactOperator (A.adjoint.comp (Y.comp A)) := + (hcY.comp_clm A).clm_comp A.adjoint + have hs : IsSelfAdjoint (A.adjoint.comp (Y.comp A)) := hY.adjoint_conj A + exact (operatorTraceNorm_le_positiveTrace_of_order_bounds hc hs + (hpos (CFC.abs_nonneg Y)) hlo hhi).trans + (positiveTrace_adjoint_sandwich_le (CFC.abs_nonneg Y) A) + +theorem operatorTraceNorm_adjoint_contraction_le + {Y : F →L[ℂ] F} (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) + (A : E →L[ℂ] F) (hA : ‖A‖ ≤ 1) : + operatorTraceNorm (A.adjoint.comp (Y.comp A)) ≤ operatorTraceNorm Y := by + have hs : ‖A‖ ^ 2 ≤ 1 := by nlinarith [norm_nonneg A] + calc + _ ≤ ENNReal.ofReal (‖A‖ ^ 2) * operatorTraceNorm Y := + operatorTraceNorm_adjoint_sandwich_le hcY hY A + _ ≤ 1 * operatorTraceNorm Y := _root_.mul_le_mul_left (by + simpa using ENNReal.ofReal_le_ofReal hs) _ + _ = _ := one_mul _ + +theorem operatorTraceNorm_compression_le + (ι : E →ₗᵢ[ℂ] F) {Y : F →L[ℂ] F} + (hcY : IsCompactOperator Y) (hY : IsSelfAdjoint Y) : + operatorTraceNorm (compression ι Y) ≤ operatorTraceNorm Y := by + exact operatorTraceNorm_adjoint_contraction_le hcY hY ι.toContinuousLinearMap + (LinearIsometry.norm_toContinuousLinearMap_le ι) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/TraceNormSandwich.lean b/LeanPool/VacuumBellSeparation/Gaussian/TraceNormSandwich.lean new file mode 100644 index 0000000000..1afcc7d7e2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/TraceNormSandwich.lean @@ -0,0 +1,71 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompactTraceNorm + +/-! +# The genuine Schatten (4,2,4) sandwich estimate + +For a compact self-adjoint K and compact positive B, diagonal order +bounds and actual positive Schatten Holder prove +||sqrt(B) K sqrt(B)||_1 <= Tr(K^2)^(1/2) Tr(B^2)^(1/2). +All traces are extended values on the actual Hilbert space. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap +open scoped ENNReal ContinuousFunctionalCalculus + +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +theorem operatorTraceNorm_sqrt_sandwich_le {K B : E →L[ℂ] E} + (hcK : IsCompactOperator K) (hK : IsSelfAdjoint K) + (hcB : IsCompactOperator B) (hB : 0 ≤ B) : + operatorTraceNorm (CFC.sqrt B * K * CFC.sqrt B) ≤ + positiveTrace (K * K) ^ (1 / 2 : ℝ) * positiveTrace (B * B) ^ (1 / 2 : ℝ) := by + let R := CFC.sqrt B + have hR : IsSelfAdjoint R := (CFC.sqrt_nonneg B).isSelfAdjoint + have hc : IsCompactOperator (R * K * R) := (hcK.clm_comp R).comp_clm R + have hl : -(R * CFC.abs K * R) ≤ R * K * R := by + have h := hR.conjugate_nonneg (operator_abs_add_nonneg hK) + rw [mul_add, add_mul] at h + exact neg_le_iff_add_nonneg'.mpr h + have hu : R * K * R ≤ R * CFC.abs K * R := by + have h := hR.conjugate_nonneg (operator_abs_sub_nonneg hK) + rw [mul_sub, sub_mul] at h + exact sub_nonneg.mp h + have ht := operatorTraceNorm_le_positiveTrace_of_order_bounds hc (hK.conjugate_self hR) + (hR.conjugate_nonneg (CFC.abs_nonneg K)) hl hu + have hh := positiveTrace_sandwich_holder (isCompactOperator_abs hcK hK) hcB + (CFC.abs_nonneg K) hB Real.HolderConjugate.two_two + have ha : CFC.abs K ^ (2 : ℝ) = K * K := by + calc + _ = CFC.abs K ^ (2 : ℕ) := by + simpa only [Nat.cast_ofNat] using CFC.rpow_natCast (CFC.abs K) 2 (CFC.abs_nonneg K) + _ = _ := by rw [pow_two, CFC.abs_mul_abs, hK.star_eq] + have hb : B ^ (2 : ℝ) = B * B := by + simpa only [Nat.cast_ofNat, pow_two] using CFC.rpow_natCast B 2 hB + rw [ha, hb] at hh + exact ht.trans hh + +theorem operatorTraceNorm_sqrt_sandwich_lt_top {K B : E →L[ℂ] E} + (hcK : IsCompactOperator K) (hK : IsSelfAdjoint K) + (hcB : IsCompactOperator B) (hB : 0 ≤ B) + (htK : positiveTrace (K * K) < ∞) (htB : positiveTrace (B * B) < ∞) : + operatorTraceNorm (CFC.sqrt B * K * CFC.sqrt B) < ∞ := by + apply (operatorTraceNorm_sqrt_sandwich_le hcK hK hcB hB).trans_lt + exact ENNReal.mul_lt_top + (ENNReal.rpow_lt_top_of_nonneg (by norm_num) htK.ne) + (ENNReal.rpow_lt_top_of_nonneg (by norm_num) htB.ne) + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/UnitaryDensityExpectation.lean b/LeanPool/VacuumBellSeparation/Gaussian/UnitaryDensityExpectation.lean new file mode 100644 index 0000000000..464678aeff --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/UnitaryDensityExpectation.lean @@ -0,0 +1,70 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryTrace +public import LeanPool.VacuumBellSeparation.Gaussian.DensityExpectationIndependence + +/-! +# Unitary covariance of the actual complex density functional + +The square-root basis series transforms term by term in the transported +Hilbert basis. The already proved basis independence extends the result +to any target basis. These identities concern the genuine complex +expectation on all bounded operators, not a positive trace evaluated at +a potentially nonpositive product. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +variable {E F ι κ : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem conjStarAlgEquiv_sqrt (e : E ≃ₗᵢ[ℂ] F) {A : E →L[ℂ] E} (hA : 0 ≤ A) : + e.conjStarAlgEquiv (CFC.sqrt A) = CFC.sqrt (e.conjStarAlgEquiv A) := by + simpa only [CFC.sqrt_eq_rpow] using + conjStarAlgEquiv_rpow e hA (by norm_num : (0 : ℝ) ≤ 1 / 2) + +theorem densityExpectation_transported_basis (e : E ≃ₗᵢ[ℂ] F) (b : HilbertBasis ι ℂ E) + {A : E →L[ℂ] E} (hA : 0 ≤ A) (B : E →L[ℂ] E) : + densityExpectation (transportedHilbertBasis b e) (e.conjStarAlgEquiv A) (e.conjStarAlgEquiv B) = + densityExpectation b A B := by + simp only [densityExpectation, familyExpectation, ← conjStarAlgEquiv_sqrt e hA, + transportedHilbertBasis_apply, LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, + e.symm_apply_apply, e.inner_map_map] + +theorem densityExpectation_conjStarAlgEquiv (e : E ≃ₗᵢ[ℂ] F) + (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ F) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) (B : E →L[ℂ] E) : + densityExpectation c (e.conjStarAlgEquiv A) (e.conjStarAlgEquiv B) = + densityExpectation b A B := by + rw [densityExpectation_eq c (transportedHilbertBasis b e) + (IsPositiveTraceClass.conjStarAlgEquiv e hA)] + exact densityExpectation_transported_basis e b hA.1 B + +theorem densityExpectation_conjStarAlgEquiv_left (e : E ≃ₗᵢ[ℂ] F) + (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ F) + {A : E →L[ℂ] E} (hA : IsPositiveTraceClass A) (B : F →L[ℂ] F) : + densityExpectation c (e.conjStarAlgEquiv A) B = + densityExpectation b A (e.conjStarAlgEquiv.symm B) := by + have h := densityExpectation_conjStarAlgEquiv e b c hA (e.conjStarAlgEquiv.symm B) + simpa only [StarAlgEquiv.apply_symm_apply] using h + +theorem densityExpectation_symm_conjStarAlgEquiv_left (e : E ≃ₗᵢ[ℂ] F) + (b : HilbertBasis ι ℂ E) (c : HilbertBasis κ ℂ F) + {A : F →L[ℂ] F} (hA : IsPositiveTraceClass A) (B : E →L[ℂ] E) : + densityExpectation b (e.symm.conjStarAlgEquiv A) B = + densityExpectation c A (e.conjStarAlgEquiv B) := by + have h := densityExpectation_conjStarAlgEquiv_left e.symm c b hA B + simpa only [LinearIsometryEquiv.symm_conjStarAlgEquiv, LinearIsometryEquiv.symm_symm] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/UnitaryEigenbasisOverlap.lean b/LeanPool/VacuumBellSeparation/Gaussian/UnitaryEigenbasisOverlap.lean new file mode 100644 index 0000000000..cf15280e0c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/UnitaryEigenbasisOverlap.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Matrix.HermitianFunctionalCalculus +public import Mathlib.Analysis.Matrix.Order + +/-! +# Actual unitary overlaps between finite eigenbases + +The squared absolute entries of an actual unitary matrix have unit row +and column sums. They give the exact real diagonal and mixed trace under +unitary conjugation. These finite identities are the ingredients for a +spectral trace Taylor estimate that does not differentiate eigenbranches. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped Matrix.Norms.L2Operator ComplexConjugate + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- Unitary overlap weight given by `‖(U : Matrix ι ι ℂ) i j‖ ^ 2`. -/ +def unitaryOverlapWeight (U : unitary (Matrix ι ι ℂ)) (i j : ι) : ℝ := + ‖(U : Matrix ι ι ℂ) i j‖ ^ 2 + +theorem unitaryOverlapWeight_nonneg (U : unitary (Matrix ι ι ℂ)) (i j : ι) : + 0 ≤ unitaryOverlapWeight U i j := sq_nonneg _ + +theorem sum_unitaryOverlapWeight_row (U : unitary (Matrix ι ι ℂ)) (i : ι) : + ∑ j, unitaryOverlapWeight U i j = 1 := by + have he : ((U : Matrix ι ι ℂ) * (U : Matrix ι ι ℂ)ᴴ) i i = + ((∑ j, unitaryOverlapWeight U i j : ℝ) : ℂ) := by + simp only [Matrix.mul_apply, Matrix.conjTranspose_apply, ← starRingEnd_apply, + RCLike.mul_conj, unitaryOverlapWeight] + norm_cast + have hU : (U : Matrix ι ι ℂ) * (U : Matrix ι ι ℂ)ᴴ = 1 := + Unitary.coe_mul_star_self U + rw [hU, Matrix.one_apply_eq] at he + exact_mod_cast he.symm + +theorem sum_unitaryOverlapWeight_col (U : unitary (Matrix ι ι ℂ)) (j : ι) : + ∑ i, unitaryOverlapWeight U i j = 1 := by + have he : ((U : Matrix ι ι ℂ)ᴴ * (U : Matrix ι ι ℂ)) j j = + ((∑ i, unitaryOverlapWeight U i j : ℝ) : ℂ) := by + simp only [Matrix.mul_apply, Matrix.conjTranspose_apply, ← starRingEnd_apply, + RCLike.conj_mul, unitaryOverlapWeight] + norm_cast + have hU : (U : Matrix ι ι ℂ)ᴴ * (U : Matrix ι ι ℂ) = 1 := + Unitary.coe_star_mul_self U + rw [hU, Matrix.one_apply_eq] at he + exact_mod_cast he.symm + +theorem diagonal_unitary_real_conjugate (U : unitary (Matrix ι ι ℂ)) + (d : ι → ℝ) (i : ι) : + ((U : Matrix ι ι ℂ) * Matrix.diagonal (fun j => (d j : ℂ)) * + (U : Matrix ι ι ℂ)ᴴ) i i = + ((∑ j, d j * unitaryOverlapWeight U i j : ℝ) : ℂ) := by + rw [Matrix.mul_apply] + push_cast + apply Finset.sum_congr rfl + intro j _ + rw [Matrix.mul_diagonal, Matrix.conjTranspose_apply] + rw [← starRingEnd_apply] + change (U : Matrix ι ι ℂ) i j * (d j : ℂ) * conj ((U : Matrix ι ι ℂ) i j) = _ + calc + _ = (d j : ℂ) * ((U : Matrix ι ι ℂ) i j * conj ((U : Matrix ι ι ℂ) i j)) := by ring + _ = _ := by + rw [Complex.mul_conj'] + simp only [unitaryOverlapWeight, Complex.ofReal_pow] + +theorem real_diagonal_unitary_real_conjugate (U : unitary (Matrix ι ι ℂ)) + (d : ι → ℝ) (i : ι) : + (((U : Matrix ι ι ℂ) * Matrix.diagonal (fun j => (d j : ℂ)) * + (U : Matrix ι ι ℂ)ᴴ) i i).re = + ∑ j, d j * unitaryOverlapWeight U i j := by + rw [diagonal_unitary_real_conjugate, Complex.ofReal_re] + +theorem real_trace_mixed_unitary_diagonals (U : unitary (Matrix ι ι ℂ)) + (a b : ι → ℝ) : + (Matrix.diagonal (fun i => (a i : ℂ)) * + ((U : Matrix ι ι ℂ) * Matrix.diagonal (fun j => (b j : ℂ)) * + (U : Matrix ι ι ℂ)ᴴ)).trace.re = + ∑ i, ∑ j, a i * b j * unitaryOverlapWeight U i j := by + simp only [Matrix.trace, Matrix.diag_apply, Complex.re_sum, Matrix.diagonal_mul, + Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] + apply Finset.sum_congr rfl + intro i _ + rw [real_diagonal_unitary_real_conjugate, Finset.mul_sum] + apply Finset.sum_congr rfl + intro j _ + ring + +theorem unitaryOverlapWeight_sum_left (U : unitary (Matrix ι ι ℂ)) (f : ι → ℝ) : + ∑ i, ∑ j, unitaryOverlapWeight U i j * f i = ∑ i, f i := by + simp only [← Finset.sum_mul, sum_unitaryOverlapWeight_row, one_mul] + +theorem unitaryOverlapWeight_sum_right (U : unitary (Matrix ι ι ℂ)) (f : ι → ℝ) : + ∑ i, ∑ j, unitaryOverlapWeight U i j * f j = ∑ j, f j := by + rw [Finset.sum_comm] + simp only [← Finset.sum_mul, sum_unitaryOverlapWeight_col, one_mul] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/UnitaryNuclearTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/UnitaryNuclearTrace.lean new file mode 100644 index 0000000000..b3eb4ea535 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/UnitaryNuclearTrace.lean @@ -0,0 +1,49 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CompactTraceNorm +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryDensityExpectation + +/-! # Actual nuclear trace and compactness under Hilbert-space unitaries -/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open ContinuousLinearMap + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +theorem conjStarAlgEquiv_abs (e : E ≃ₗᵢ[ℂ] F) (A : E →L[ℂ] E) : + e.conjStarAlgEquiv (CFC.abs A) = CFC.abs (e.conjStarAlgEquiv A) := by + rw [CFC.abs, conjStarAlgEquiv_sqrt e (star_mul_self_nonneg A), map_mul, map_star] + rfl + +theorem operatorTraceNorm_conjStarAlgEquiv (e : E ≃ₗᵢ[ℂ] F) (A : E →L[ℂ] E) : + operatorTraceNorm (e.conjStarAlgEquiv A) = operatorTraceNorm A := by + rw [operatorTraceNorm, ← conjStarAlgEquiv_abs, positiveTrace_conjStarAlgEquiv e + (CFC.abs_nonneg A)] + rfl + +theorem norm_conjStarAlgEquiv (e : E ≃ₗᵢ[ℂ] F) (A : E →L[ℂ] E) : + ‖e.conjStarAlgEquiv A‖ = ‖A‖ := StarAlgEquiv.norm_map e.conjStarAlgEquiv A + +theorem isSelfAdjoint_conjStarAlgEquiv (e : E ≃ₗᵢ[ℂ] F) {A : E →L[ℂ] E} + (hA : IsSelfAdjoint A) : IsSelfAdjoint (e.conjStarAlgEquiv A) := by + change star (e.conjStarAlgEquiv A) = e.conjStarAlgEquiv A + rw [← map_star, hA.star_eq] + +theorem isCompactOperator_conjStarAlgEquiv (e : E ≃ₗᵢ[ℂ] F) {A : E →L[ℂ] E} + (hA : IsCompactOperator A) : IsCompactOperator (e.conjStarAlgEquiv A) := by + have h := (hA.comp_clm e.symm.toContinuousLinearEquiv.toContinuousLinearMap).clm_comp + e.toContinuousLinearEquiv.toContinuousLinearMap + simpa only [LinearIsometryEquiv.conjStarAlgEquiv_apply, coe_comp] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/UnitarySandwich.lean b/LeanPool/VacuumBellSeparation/Gaussian/UnitarySandwich.lean new file mode 100644 index 0000000000..f6a2677990 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/UnitarySandwich.lean @@ -0,0 +1,66 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianNormalizedPowers + +/-! +# Unitary transport of actual positive trace-class sandwich factorizations + +The factorization R Θ R = A uses actual bounded CFC powers of the +reference. Its existence, extended positive trace and normalization +are preserved by an actual Hilbert-space unitary. No inverse of a +faithful trace-class density is treated as a bounded operator. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +variable {E F : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Condition that the data have positive trace class sandwich. -/ +def HasPositiveTraceClassSandwich (σ A : E →L[ℂ] E) (τ : ℝ) : Prop := + ∃ Θ : E →L[ℂ] E, IsPositiveTraceClass Θ ∧ σ ^ (τ / 2) * Θ * σ ^ (τ / 2) = A + +theorem conjStarAlgEquiv_sandwich (e : E ≃ₗᵢ[ℂ] F) + {σ : E →L[ℂ] E} (hσ : 0 ≤ σ) {τ : ℝ} (hτ : 0 ≤ τ) (Θ : E →L[ℂ] E) : + e.conjStarAlgEquiv (σ ^ (τ / 2) * Θ * σ ^ (τ / 2)) = + (e.conjStarAlgEquiv σ) ^ (τ / 2) * e.conjStarAlgEquiv Θ * + (e.conjStarAlgEquiv σ) ^ (τ / 2) := by + rw [map_mul, map_mul, conjStarAlgEquiv_rpow e hσ (div_nonneg hτ (by norm_num))] + +theorem hasPositiveTraceClassSandwich_conjStarAlgEquiv_iff + (e : E ≃ₗᵢ[ℂ] F) {σ A : E →L[ℂ] E} (hσ : 0 ≤ σ) {τ : ℝ} (hτ : 0 ≤ τ) : + HasPositiveTraceClassSandwich (e.conjStarAlgEquiv σ) (e.conjStarAlgEquiv A) τ ↔ + HasPositiveTraceClassSandwich σ A τ := by + constructor + · rintro ⟨Θ, hΘ, hf⟩ + refine ⟨e.symm.conjStarAlgEquiv Θ, IsPositiveTraceClass.conjStarAlgEquiv _ hΘ, ?_⟩ + apply e.conjStarAlgEquiv.injective + change e.conjStarAlgEquiv (σ ^ (τ / 2) * e.symm.conjStarAlgEquiv Θ * σ ^ (τ / 2)) = + e.conjStarAlgEquiv A + rw [conjStarAlgEquiv_sandwich e hσ hτ, + ← LinearIsometryEquiv.symm_conjStarAlgEquiv, StarAlgEquiv.apply_symm_apply] + exact hf + · rintro ⟨Θ, hΘ, hf⟩ + refine ⟨e.conjStarAlgEquiv Θ, IsPositiveTraceClass.conjStarAlgEquiv _ hΘ, ?_⟩ + rw [← conjStarAlgEquiv_sandwich e hσ hτ, hf] + +theorem normalizedPositiveDensity_unitary_sandwich + (e : E ≃ₗᵢ[ℂ] F) {Θ : E →L[ℂ] E} (hΘ : IsPositiveTraceClass Θ) : + IsPositiveTraceClass (e.conjStarAlgEquiv Θ) ∧ + positiveTrace (e.conjStarAlgEquiv Θ) = positiveTrace Θ ∧ + normalizedPositiveDensity (e.conjStarAlgEquiv Θ) = + e.conjStarAlgEquiv (normalizedPositiveDensity Θ) := + ⟨IsPositiveTraceClass.conjStarAlgEquiv e hΘ, + positiveTrace_conjStarAlgEquiv e hΘ.1, + normalizedPositiveDensity_conjStarAlgEquiv e hΘ.1⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/UnitaryTrace.lean b/LeanPool/VacuumBellSeparation/Gaussian/UnitaryTrace.lean new file mode 100644 index 0000000000..a2cf8882fc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/UnitaryTrace.lean @@ -0,0 +1,81 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTrace + +/-! +# Unitary transport of the actual positive trace + +Mathlib's conjugation star-algebra equivalence transports actual bounded +operators between Hilbert spaces. Basis transport proves invariance of the +extended positive trace; faithfulness and genuine CFC powers also transport. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +variable {E F ι : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F] + +/-- Transported Hilbert basis obtained from `HilbertBasis.ofRepr`. -/ +noncomputable def transportedHilbertBasis (b : HilbertBasis ι ℂ E) (e : E ≃ₗᵢ[ℂ] F) : + HilbertBasis ι ℂ F := HilbertBasis.ofRepr (e.symm.trans b.repr) + +omit [CompleteSpace E] [CompleteSpace F] in +@[simp] +theorem transportedHilbertBasis_apply (b : HilbertBasis ι ℂ E) (e : E ≃ₗᵢ[ℂ] F) (i : ι) : + transportedHilbertBasis b e i = e (b i) := rfl + +theorem positiveTrace_conjStarAlgEquiv (e : E ≃ₗᵢ[ℂ] F) {A : E →L[ℂ] E} + (hA : 0 ≤ A) : positiveTrace (e.conjStarAlgEquiv A) = positiveTrace A := by + obtain ⟨s, b, _⟩ := exists_hilbertBasis (𝕜 := ℂ) (E := E) + rw [positiveTrace_eq_tsum_diagonal (transportedHilbertBasis b e) + (map_nonneg e.conjStarAlgEquiv hA), positiveTrace_eq_tsum_diagonal b hA] + apply tsum_congr + intro i + simp only [transportedHilbertBasis_apply, LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, + e.symm_apply_apply, e.inner_map_map] + +theorem IsPositiveTraceClass.conjStarAlgEquiv (e : E ≃ₗᵢ[ℂ] F) {A : E →L[ℂ] E} + (hA : IsPositiveTraceClass A) : IsPositiveTraceClass (e.conjStarAlgEquiv A) := by + refine ⟨map_nonneg e.conjStarAlgEquiv hA.1, ?_⟩ + rw [positiveTrace_conjStarAlgEquiv e hA.1] + exact hA.2 + +theorem IsFaithfulDensity.conjStarAlgEquiv (e : E ≃ₗᵢ[ℂ] F) {A : E →L[ℂ] E} + (hA : IsFaithfulDensity A) : IsFaithfulDensity (e.conjStarAlgEquiv A) := by + refine ⟨map_nonneg e.conjStarAlgEquiv hA.1, ?_, ?_⟩ + · rw [positiveTrace_conjStarAlgEquiv e hA.1, hA.2.1] + · intro x y hxy + apply e.symm.injective + apply hA.2.2 + apply e.injective + simpa only [LinearIsometryEquiv.conjStarAlgEquiv_apply_apply] using hxy + +theorem conjStarAlgEquiv_rpow (e : E ≃ₗᵢ[ℂ] F) {A : E →L[ℂ] E} + (hA : 0 ≤ A) {τ : ℝ} (hτ : 0 ≤ τ) : + e.conjStarAlgEquiv (A ^ τ) = (e.conjStarAlgEquiv A) ^ τ := by + have hmap : 0 ≤ e.conjStarAlgEquiv A := map_nonneg e.conjStarAlgEquiv hA + rw [CFC.rpow_eq_cfc_real hA, CFC.rpow_eq_cfc_real hmap] + exact StarAlgHomClass.map_cfc e.conjStarAlgEquiv (fun x : ℝ => x ^ τ) A + (Real.continuous_rpow_const hτ).continuousOn (by + change Continuous (fun T : E →L[ℂ] E => + e.toContinuousLinearEquiv.toContinuousLinearMap ∘L T ∘L + e.symm.toContinuousLinearEquiv.toContinuousLinearMap) + fun_prop) + hA.isSelfAdjoint hmap.isSelfAdjoint + +theorem positiveTrace_conjStarAlgEquiv_rpow (e : E ≃ₗᵢ[ℂ] F) + {A : E →L[ℂ] E} (hA : 0 ≤ A) {τ : ℝ} (hτ : 0 ≤ τ) : + positiveTrace ((e.conjStarAlgEquiv A) ^ τ) = positiveTrace (A ^ τ) := by + rw [← conjStarAlgEquiv_rpow e hA hτ] + exact positiveTrace_conjStarAlgEquiv e CFC.rpow_nonneg + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WeightedSandwich.lean b/LeanPool/VacuumBellSeparation/Gaussian/WeightedSandwich.lean new file mode 100644 index 0000000000..f87d9b4b75 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WeightedSandwich.lean @@ -0,0 +1,153 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveMatrixExtension + +/-! +# Constructing positive inverse sandwiches from their weighted diagonal + +For an arbitrary positive bounded operator A and arbitrary real coordinate +weights r, summability of r_i² ⟨e_i,Ae_i⟩ constructs the actual positive +trace-class operator with matrix r_i r_j ⟨e_i,Ae_j⟩. If a self-adjoint +bounded operator B has eigenvalues inverse to r on the coordinate basis, +then B Θ B = A. No commutativity between A and B is required. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open scoped lp + +variable {ι : Type*} + +/-- Resolve the canonical real scalar commutation before specializing to the lp carrier. -/ +theorem hilbertOperator_real_smulCommClass {E : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] : + SMulCommClass ℝ (E →L[ℂ] E) (E →L[ℂ] E) := + Algebra.to_smulCommClass + +local instance coordinateOperator_real_smulCommClass : + SMulCommClass ℝ (ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) (ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) := + hilbertOperator_real_smulCommClass (E := ℓ²(ι, ℂ)) + +/-- The canonical algebra scalar tower, resolved before the concrete lp specialization. -/ +theorem hilbertOperator_real_isScalarTower {E : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] : + IsScalarTower ℝ (E →L[ℂ] E) (E →L[ℂ] E) := IsScalarTower.right + +local instance coordinateOperator_real_isScalarTower : + IsScalarTower ℝ (ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) (ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) := + hilbertOperator_real_isScalarTower (E := ℓ²(ι, ℂ)) + +theorem weightedHilbertOperator_realCFC {E : Type*} + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] : + IsometricContinuousFunctionalCalculus ℝ (E →L[ℂ] E) IsSelfAdjoint := inferInstance + +local instance coordinateOperator_realCFC : + IsometricContinuousFunctionalCalculus ℝ + (ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) IsSelfAdjoint := + weightedHilbertOperator_realCFC (E := ℓ²(ι, ℂ)) + +/-- Weighted sandwich feature defined as `r i • CFC.sqrt A (coordinateHilbertBasis ι i)`. -/ +def weightedSandwichFeature (A : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) (r : ι → ℝ) (i : ι) : ℓ²(ι, ℂ) := + r i • CFC.sqrt A (coordinateHilbertBasis ι i) + +/-- Weighted sandwich diagonal given by `r i ^ 2 * (inner ℂ (coordinateHilbertBasis ι i) (A +(coordinateHilbertBasis ι i))).re`. -/ +def weightedSandwichDiagonal (A : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) (r : ι → ℝ) (i : ι) : ℝ := + r i ^ 2 * (inner ℂ (coordinateHilbertBasis ι i) (A (coordinateHilbertBasis ι i))).re + +theorem weightedSandwichFeature_norm_sq {A : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)} + (hA : 0 ≤ A) (r : ι → ℝ) (i : ι) : + ‖weightedSandwichFeature A r i‖ ^ 2 = weightedSandwichDiagonal A r i := by + calc + _ = r i ^ 2 * ‖CFC.sqrt A (coordinateHilbertBasis ι i)‖ ^ 2 := by + rw [weightedSandwichFeature, norm_smul, mul_pow, Real.norm_eq_abs, sq_abs] + _ = _ := congrArg (fun t : ℝ => r i ^ 2 * t) + (sqrt_norm_sq_eq_diagonal hA (coordinateHilbertBasis ι i)) + +theorem inner_weightedSandwichFeature {A : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)} + (hA : 0 ≤ A) (r : ι → ℝ) (i j : ι) : + inner ℂ (weightedSandwichFeature A r i) (weightedSandwichFeature A r j) = + (r i : ℂ) * (r j : ℂ) * + inner ℂ (coordinateHilbertBasis ι i) (A (coordinateHilbertBasis ι j)) := by + have hs : IsSelfAdjoint (CFC.sqrt A) := (CFC.sqrt_nonneg A).isSelfAdjoint + have hinner : inner ℂ (CFC.sqrt A (coordinateHilbertBasis ι i)) + (CFC.sqrt A (coordinateHilbertBasis ι j)) = + inner ℂ (coordinateHilbertBasis ι i) (A (coordinateHilbertBasis ι j)) := by + rw [← (CFC.sqrt A).adjoint_inner_right, hs.adjoint_eq, + ← mul_apply_eq_comp, ← pow_two, CFC.sq_sqrt A hA] + rw [weightedSandwichFeature, weightedSandwichFeature, + inner_smul_left_eq_smul, inner_smul_right_eq_smul, hinner] + simp only [Algebra.smul_def, Complex.coe_algebraMap] + ring + +/-- Continuous linear map for the weighted sandwich operator, of type `ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)`. -/ +def weightedSandwichOperator {A : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)} + (hA : 0 ≤ A) (r : ι → ℝ) (hsum : Summable (weightedSandwichDiagonal A r)) : + ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ) := + familyGramOperator (weightedSandwichFeature A r) + (by simpa only [weightedSandwichFeature_norm_sq hA] using hsum) + +theorem weightedSandwichOperator_isPositiveTraceClass {A : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)} + (hA : 0 ≤ A) (r : ι → ℝ) (hsum : Summable (weightedSandwichDiagonal A r)) : + IsPositiveTraceClass (weightedSandwichOperator hA r hsum) := + familyGramOperator_isPositiveTraceClass _ _ + +theorem weightedSandwichOperator_matrix {A : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)} + (hA : 0 ≤ A) (r : ι → ℝ) (hsum : Summable (weightedSandwichDiagonal A r)) (i j : ι) : + inner ℂ (coordinateHilbertBasis ι i) + (weightedSandwichOperator hA r hsum (coordinateHilbertBasis ι j)) = + (r i : ℂ) * (r j : ℂ) * + inner ℂ (coordinateHilbertBasis ι i) (A (coordinateHilbertBasis ι j)) := by + rw [weightedSandwichOperator, familyGramOperator_matrix, inner_weightedSandwichFeature hA] + +theorem positiveTrace_weightedSandwichOperator {A : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)} + (hA : 0 ≤ A) (r : ι → ℝ) (hsum : Summable (weightedSandwichDiagonal A r)) : + positiveTrace (weightedSandwichOperator hA r hsum) = + ENNReal.ofReal (∑' i, weightedSandwichDiagonal A r i) := by + rw [weightedSandwichOperator, positiveTrace_familyGramOperator] + simp only [weightedSandwichFeature_norm_sq hA] + +theorem coordinate_matrix_sandwich (A B : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) + (hB : IsSelfAdjoint B) (b : ι → ℝ) + (heig : ∀ i, B (coordinateHilbertBasis ι i) = b i • coordinateHilbertBasis ι i) (i j : ι) : + inner ℂ (coordinateHilbertBasis ι i) ((B * A * B) (coordinateHilbertBasis ι j)) = + (b i : ℂ) * (b j : ℂ) * inner ℂ (coordinateHilbertBasis ι i) (A + (coordinateHilbertBasis ι j)) := by + simp only [mul_apply_eq_comp] + have hmove : inner ℂ (coordinateHilbertBasis ι i) (B (A (B (coordinateHilbertBasis ι j)))) = + inner ℂ (B (coordinateHilbertBasis ι i)) (A (B (coordinateHilbertBasis ι j))) := by + simpa only [hB.adjoint_eq] using + B.adjoint_inner_right (coordinateHilbertBasis ι i) (A (B (coordinateHilbertBasis ι j))) + rw [hmove, heig, heig, LinearMapClass.map_smul_of_tower, + inner_smul_left_eq_smul, inner_smul_right_eq_smul] + simp only [Algebra.smul_def, Complex.coe_algebraMap] + ring + +/-- Actual operator factorization, with no commutativity assumption. -/ +theorem weightedSandwichOperator_factorization {A : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)} + (hA : 0 ≤ A) (r : ι → ℝ) (hsum : Summable (weightedSandwichDiagonal A r)) + (B : ℓ²(ι, ℂ) →L[ℂ] ℓ²(ι, ℂ)) (hB : IsSelfAdjoint B) (b : ι → ℝ) + (heig : ∀ i, B (coordinateHilbertBasis ι i) = b i • coordinateHilbertBasis ι i) + (hcancel : ∀ i, b i * r i = 1) : + B * weightedSandwichOperator hA r hsum * B = A := by + apply operator_eq_of_coordinate_matrix + intro i j + rw [coordinate_matrix_sandwich _ B hB b heig, weightedSandwichOperator_matrix] + have hi : (b i : ℂ) * (r i : ℂ) = 1 := by exact_mod_cast hcancel i + have hj : (b j : ℂ) * (r j : ℂ) = 1 := by exact_mod_cast hcancel j + calc + _ = ((b i : ℂ) * r i) * ((b j : ℂ) * r j) * + inner ℂ (coordinateHilbertBasis ι i) (A (coordinateHilbertBasis ι j)) := by ring + _ = _ := by rw [hi, hj, one_mul, one_mul] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WeylAverageFubini.lean b/LeanPool/VacuumBellSeparation/Gaussian/WeylAverageFubini.lean new file mode 100644 index 0000000000..c7409f322a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WeylAverageFubini.lean @@ -0,0 +1,205 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WeylGaussianConvolution + +/-! +# Bochner Fubini for the relabeled Gaussian Weyl sandwich + +The joint vector integrand has an integrable product-Gaussian norm bound. +An actual measure-preserving shear proves integrability after changing +the second label to the total displacement. Fubini and the proved scalar +twisted convolution then give the operator sandwich identity. The premise +on T is precisely preservation of the actual imaginary inner form. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory ContinuousLinearMap +open scoped ComplexConjugate + +variable {m : ℕ} + +/-- Preservation of the imaginary part of the phase-space inner product. -/ +def PreservesWeylForm (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : Prop := + ∀ z w, (inner ℂ (T z) (T w)).im = (inner ℂ z w).im + +theorem weylPhase_relabel {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} + (hT : PreservesWeylForm T) (z w : MultiModePhaseSpace m) : + weylPhase (id : MultiModePhaseSpace m → MultiModePhaseSpace m) (T z) (T w) = + weylPhase (id : MultiModePhaseSpace m → MultiModePhaseSpace m) z w := by + simp only [weylPhase, id_eq, hT z w] + +theorem norm_weylPhase_id (z w : MultiModePhaseSpace m) : + ‖weylPhase (id : MultiModePhaseSpace m → MultiModePhaseSpace m) z w‖ = 1 := by + simp [weylPhase, Complex.norm_exp, Complex.mul_re] + +theorem relabeledWeyl_triple {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} + (hT : PreservesWeylForm T) (z a w : MultiModePhaseSpace m) : + multiOscillatorWeyl (T z) * multiOscillatorWeyl (T a) * multiOscillatorWeyl (T w) = + (weylPhase id z a * weylPhase id (z + a) w) • multiOscillatorWeyl (T (z + a + w)) := by + rw [multiOscillatorWeyl_mul, weylPhase_relabel hT, ← map_add, + smul_mul_assoc, multiOscillatorWeyl_mul, weylPhase_relabel hT, + ← map_add, smul_smul] + +/-- Relabeled Weyl double integrand. -/ +def relabeledWeylDoubleIntegrand + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) + (a : MultiModePhaseSpace m) (x : MultiModeOscillatorSpace m) + (p : (Fin m → ℂ) × (Fin m → ℂ)) : MultiModeOscillatorSpace m := + let z : MultiModePhaseSpace m := WithLp.toLp 2 p.1 + let w : MultiModePhaseSpace m := WithLp.toLp 2 p.2 + (weylVacuumWeight m p.1 * weylVacuumWeight m p.2 * + weylPhase id z a * weylPhase id (z + a) w) • multiOscillatorWeyl (T (z + a + w)) x + +theorem continuous_relabeledWeylDoubleIntegrand + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) + (a : MultiModePhaseSpace m) (x : MultiModeOscillatorSpace m) : + Continuous (relabeledWeylDoubleIntegrand T a x) := by + have hlabel : Continuous (fun p : (Fin m → ℂ) × (Fin m → ℂ) => + T ((WithLp.toLp 2 p.1 : MultiModePhaseSpace m) + a + WithLp.toLp 2 p.2)) := by fun_prop + have hW := (continuous_multiOscillatorWeyl_apply x).comp hlabel + have hscalar : Continuous (fun p : (Fin m → ℂ) × (Fin m → ℂ) => + weylVacuumWeight m p.1 * weylVacuumWeight m p.2 * + weylPhase id (WithLp.toLp 2 p.1 : MultiModePhaseSpace m) a * + weylPhase id ((WithLp.toLp 2 p.1 : MultiModePhaseSpace m) + a) (WithLp.toLp 2 p.2)) := by + unfold weylVacuumWeight weylPhase + fun_prop + exact hscalar.smul hW + +theorem norm_relabeledWeylDoubleIntegrand + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) + (a : MultiModePhaseSpace m) (x : MultiModeOscillatorSpace m) + (p : (Fin m → ℂ) × (Fin m → ℂ)) : + ‖relabeledWeylDoubleIntegrand T a x p‖ = + (‖weylVacuumWeight m p.1‖ * ‖weylVacuumWeight m p.2‖) * ‖x‖ := by + simp only [relabeledWeylDoubleIntegrand, norm_smul, norm_mul, + norm_weylPhase_id, mul_one, norm_multiOscillatorWeyl_apply] + +theorem integrable_relabeledWeylDoubleIntegrand + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) + (a : MultiModePhaseSpace m) (x : MultiModeOscillatorSpace m) : + Integrable (relabeledWeylDoubleIntegrand T a x) + ((volume : Measure (Fin m → ℂ)).prod volume) := by + have hb := ((integrable_weylVacuumWeight m).norm.mul_prod + (integrable_weylVacuumWeight m).norm).mul_const ‖x‖ + apply hb.mono' (continuous_relabeledWeylDoubleIntegrand T a x).aestronglyMeasurable + exact Filter.Eventually.of_forall fun p => (norm_relabeledWeylDoubleIntegrand T a x p).le + +theorem relabeledWeylDoubleIntegrand_eq_apply + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) + (a : MultiModePhaseSpace m) (x : MultiModeOscillatorSpace m) (z w : Fin m → ℂ) : + relabeledWeylDoubleIntegrand T a x (z, w) = + weylVacuumWeight m z • multiOscillatorWeyl (T (WithLp.toLp 2 z)) + (multiOscillatorWeyl (T a) + (weylVacuumWeight m w • multiOscillatorWeyl (T (WithLp.toLp 2 w)) x)) := by + have h := congrArg (fun B : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m => B x) + (relabeledWeyl_triple hT (WithLp.toLp 2 z) a (WithLp.toLp 2 w)) + simp only [mul_apply_eq_comp, smul_apply] at h + simp only [map_smul, smul_smul] + rw [h] + simp only [relabeledWeylDoubleIntegrand, smul_smul] + congr 1 + ring + +theorem relabeledWeylAverage_sandwich_iterated + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) + (a : MultiModePhaseSpace m) (x : MultiModeOscillatorSpace m) : + relabeledWeylAverage T (multiOscillatorWeyl (T a) (relabeledWeylAverage T x)) = + ∫ z : Fin m → ℂ, ∫ w : Fin m → ℂ, relabeledWeylDoubleIntegrand T a x (z, w) := by + rw [relabeledWeylAverage_apply] + apply integral_congr_ae + exact Filter.Eventually.of_forall fun z => by + let L : MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + weylVacuumWeight m z • (multiOscillatorWeyl (T (WithLp.toLp 2 z)) * multiOscillatorWeyl (T a)) + have hi := L.integral_comp_comm (integrable_relabeledWeylOrbit T x) + simp_rw [relabeledWeylDoubleIntegrand_eq_apply hT] + simpa only [L, smul_apply, mul_apply_eq_comp, ← relabeledWeylAverage_apply] using hi.symm + +theorem measurePreserving_weylSandwichShear (a : Fin m → ℂ) : + MeasurePreserving + (fun p : (Fin m → ℂ) × (Fin m → ℂ) => (p.1, p.2 - p.1 - a)) + ((volume : Measure (Fin m → ℂ)).prod volume) + ((volume : Measure (Fin m → ℂ)).prod volume) := by + have h := ((MeasurePreserving.id (volume : Measure (Fin m → ℂ))).prod + (measurePreserving_add_right (volume : Measure (Fin m → ℂ)) (-a))).comp + (measurePreserving_prod_sub (volume : Measure (Fin m → ℂ)) volume) + convert h using 1; funext p; + simp only [Function.comp_apply, Prod.map_apply, id_eq, sub_eq_add_neg] + +theorem relabeledWeylDoubleIntegrand_shear + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) + (a : MultiModePhaseSpace m) (x : MultiModeOscillatorSpace m) (z u : Fin m → ℂ) : + relabeledWeylDoubleIntegrand T a x (z, u - z - (fun j => a j)) = + weylSandwichConvolution a (WithLp.toLp 2 u) z • + multiOscillatorWeyl (T (WithLp.toLp 2 u)) x := by + have hlabel : (WithLp.toLp 2 z : MultiModePhaseSpace m) + a + + WithLp.toLp 2 (u - z - (fun j => a j)) = WithLp.toLp 2 u := by + simp only [WithLp.toLp_sub] + abel + have ha : (WithLp.toLp 2 (fun j => a j) : MultiModePhaseSpace m) = a := + WithLp.toLp_ofLp 2 a + simp only [relabeledWeylDoubleIntegrand, weylSandwichConvolution, + phaseSpaceVacuumWeight, weylVacuumWeight] + rw [hlabel] + simp only [WithLp.toLp_sub, ha] + +theorem integrable_relabeledWeylShearedIntegrand + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) + (a : MultiModePhaseSpace m) (x : MultiModeOscillatorSpace m) : + Integrable (fun p : (Fin m → ℂ) × (Fin m → ℂ) => + weylSandwichConvolution a (WithLp.toLp 2 p.2) p.1 • + multiOscillatorWeyl (T (WithLp.toLp 2 p.2)) x) + ((volume : Measure (Fin m → ℂ)).prod volume) := by + have h := (measurePreserving_weylSandwichShear (fun j => a j)).integrable_comp_of_integrable + (integrable_relabeledWeylDoubleIntegrand T a x) + apply h.congr + exact Filter.Eventually.of_forall fun p => + relabeledWeylDoubleIntegrand_shear T a x p.1 p.2 + +/-- Actual compressed-Weyl identity, proved by a genuine Bochner Fubini +argument. The unnormalized Gaussian average has factor π^m. -/ +theorem relabeledWeylAverage_sandwich + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) + (a : MultiModePhaseSpace m) : + relabeledWeylAverage T * multiOscillatorWeyl (T a) * relabeledWeylAverage T = + ((Real.pi : ℂ) ^ m * phaseSpaceVacuumWeight a) • relabeledWeylAverage T := by + apply ContinuousLinearMap.ext + intro x + simp only [mul_apply_eq_comp, smul_apply] + rw [relabeledWeylAverage_sandwich_iterated hT] + calc + _ = ∫ z : Fin m → ℂ, ∫ u : Fin m → ℂ, + relabeledWeylDoubleIntegrand T a x (z, u - z - (fun j => a j)) := by + apply integral_congr_ae + exact Filter.Eventually.of_forall fun z => by + simp_rw [← sub_add_eq_sub_sub] + exact (integral_sub_right_eq_self + (fun w => relabeledWeylDoubleIntegrand T a x (z, w)) (z + (fun j => a j))).symm + _ = ∫ z : Fin m → ℂ, ∫ u : Fin m → ℂ, + weylSandwichConvolution a (WithLp.toLp 2 u) z • + multiOscillatorWeyl (T (WithLp.toLp 2 u)) x := by + simp_rw [relabeledWeylDoubleIntegrand_shear] + _ = ∫ u : Fin m → ℂ, ∫ z : Fin m → ℂ, + weylSandwichConvolution a (WithLp.toLp 2 u) z • + multiOscillatorWeyl (T (WithLp.toLp 2 u)) x := + integral_integral_swap (integrable_relabeledWeylShearedIntegrand T a x) + _ = ∫ u : Fin m → ℂ, + ((Real.pi : ℂ) ^ m * phaseSpaceVacuumWeight a * phaseSpaceVacuumWeight (WithLp.toLp 2 u)) • + multiOscillatorWeyl (T (WithLp.toLp 2 u)) x := by + simp_rw [integral_smul_const, integral_weylSandwichConvolution] + _ = _ := by + simp only [mul_smul] + rw [integral_smul, integral_smul] + rfl + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WeylCoherentInversion.lean b/LeanPool/VacuumBellSeparation/Gaussian/WeylCoherentInversion.lean new file mode 100644 index 0000000000..3760bb45ef --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WeylCoherentInversion.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WeylVacuumIntegral +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeWeylProduct + +/-! +# Displaced weak Weyl inversion + +The actual unitary Weyl conjugation produces the Fourier phase of a +coherent projector. This identifies every scalar matrix element of that +projector as a Gaussian-weighted integral over the actual Weyl operators. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory ContinuousLinearMap +open scoped ComplexConjugate + +theorem multiOscillatorWeyl_adjoint {m : ℕ} (w : MultiModePhaseSpace m) : + (multiOscillatorWeyl w).adjoint = multiOscillatorWeyl (-w) := by + have hi : multiOscillatorWeyl w * multiOscillatorWeyl (-w) = 1 := by + rw [multiOscillatorWeyl_mul, + weylPhase_neg_right (id : MultiModePhaseSpace m → MultiModePhaseSpace m) + (fun _ _ => rfl), one_smul, add_neg_cancel, multiOscillatorWeyl_zero] + have hs := Unitary.star_mul_self_of_mem (multiOscillatorWeyl_mem_unitary w) + change star (multiOscillatorWeyl w) = _ + calc + _ = star (multiOscillatorWeyl w) * + (multiOscillatorWeyl w * multiOscillatorWeyl (-w)) := by rw [hi, mul_one] + _ = _ := by rw [← mul_assoc, hs, one_mul] + +/-- Coherent Fourier phase given by `Complex.exp (-2 * Complex.I * ((inner ℂ w z).im : ℂ))`. -/ +def coherentFourierPhase {m : ℕ} (w z : MultiModePhaseSpace m) : ℂ := + Complex.exp (-2 * Complex.I * ((inner ℂ w z).im : ℂ)) + +theorem norm_coherentFourierPhase {m : ℕ} (w z : MultiModePhaseSpace m) : + ‖coherentFourierPhase w z‖ = 1 := by + simp [coherentFourierPhase, Complex.norm_exp, Complex.mul_re, Complex.mul_im] + +theorem multiOscillatorWeyl_conjugate {m : ℕ} (w z : MultiModePhaseSpace m) : + multiOscillatorWeyl w * multiOscillatorWeyl z * (multiOscillatorWeyl w).adjoint = + coherentFourierPhase w z • multiOscillatorWeyl z := by + rw [multiOscillatorWeyl_adjoint, multiOscillatorWeyl_mul, smul_mul_assoc, + multiOscillatorWeyl_mul, smul_smul, + show w + z + -w = z by abel] + congr 1 + rw [weylPhase, weylPhase, coherentFourierPhase, ← Complex.exp_add] + congr 1 + have hself : (inner ℂ w w).im = 0 := by + simpa only [RCLike.im_to_complex] using inner_self_im (𝕜 := ℂ) w + have hswap : (inner ℂ z w).im = -(inner ℂ w z).im := by + simpa only [RCLike.im_to_complex] using inner_im_symm (𝕜 := ℂ) z w + simp only [id_eq, inner_add_left, inner_neg_right, Complex.add_im, + Complex.neg_im, hself, hswap, zero_add] + push_cast + ring + +theorem multiOscillatorWeyl_exponential_zero {m : ℕ} (w : MultiModePhaseSpace m) : + multiOscillatorWeyl w (multiExponentialVector (0 : Fin m → ℂ)) = + multiCoherentVector w := by + have hv : multiExponentialVector (0 : Fin m → ℂ) = + multiCoherentVector (0 : MultiModePhaseSpace m) := by + simp only [multiCoherentVector, norm_zero, zero_pow (by norm_num : (2 : ℕ) ≠ 0), + zero_div, neg_zero, Complex.ofReal_zero, Complex.exp_zero, one_smul, PiLp.zero_apply] + rfl + rw [hv, multiOscillatorWeyl_coherentVector, + weylPhase_zero_right (id : MultiModePhaseSpace m → MultiModePhaseSpace m) + (fun _ _ => rfl), one_smul, add_zero] + +theorem inner_adjointWeyl_conjugate {m : ℕ} (w z : MultiModePhaseSpace m) + (x y : MultiModeOscillatorSpace m) : + inner ℂ ((multiOscillatorWeyl w).adjoint x) + (multiOscillatorWeyl z ((multiOscillatorWeyl w).adjoint y)) = + coherentFourierPhase w z * inner ℂ x (multiOscillatorWeyl z y) := by + rw [(multiOscillatorWeyl w).adjoint_inner_left] + rw [← mul_apply_eq_comp, ← mul_apply_eq_comp, multiOscillatorWeyl_conjugate, + smul_apply, inner_smul_right] + +theorem integral_coherentWeyl_kernel {m : ℕ} (w : MultiModePhaseSpace m) + (x y : MultiModeOscillatorSpace m) : + (∫ z : Fin m → ℂ, weylVacuumWeight m z * + coherentFourierPhase w (WithLp.toLp 2 z) * + inner ℂ x (multiOscillatorWeyl (WithLp.toLp 2 z) y)) = + (Real.pi : ℂ) ^ m * inner ℂ x (multiCoherentVector w) * + inner ℂ (multiCoherentVector w) y := by + have h := integral_gaussianWeyl_kernel + ((multiOscillatorWeyl w).adjoint x) ((multiOscillatorWeyl w).adjoint y) + simp only [inner_adjointWeyl_conjugate, ← mul_assoc] at h + rw [(multiOscillatorWeyl w).adjoint_inner_left, + (multiOscillatorWeyl w).adjoint_inner_right] at h + simpa only [multiOscillatorWeyl_exponential_zero] using h + +theorem integrable_coherentWeyl_kernel {m : ℕ} (w : MultiModePhaseSpace m) + (x y : MultiModeOscillatorSpace m) : + Integrable (fun z : Fin m → ℂ => weylVacuumWeight m z * + coherentFourierPhase w (WithLp.toLp 2 z) * + inner ℂ x (multiOscillatorWeyl (WithLp.toLp 2 z) y)) := by + have h := (integrable_weylVacuumOrbit ((multiOscillatorWeyl w).adjoint y)).const_inner (𝕜 := ℂ) + ((multiOscillatorWeyl w).adjoint x) + simpa only [inner_smul_right, inner_adjointWeyl_conjugate, ← mul_assoc] using h + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WeylCoherentKernel.lean b/LeanPool/VacuumBellSeparation/Gaussian/WeylCoherentKernel.lean new file mode 100644 index 0000000000..2f6b4fe2f2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WeylCoherentKernel.lean @@ -0,0 +1,38 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CanonicalThermalModel + +/-! +# Actual Weyl expectation in a coherent vector + +This evaluates the already constructed oscillator Weyl operator. The +phase is fixed by the repository's genuine Weyl representation, including +the factor two in the coherent displacement phase. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ComplexConjugate + +theorem oscillatorWeyl_coherent_diagonal (z w : ℂ) : + inner ℂ (coherentVector w) (oscillatorWeyl z (coherentVector w)) = + Complex.exp (((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) + + 2 * Complex.I * ((conj w * z).im : ℂ)) := by + rw [oscillatorWeyl_coherentVector, inner_smul_right, inner_coherentVector, + weylPhase, weylKernel, ← Complex.exp_add] + congr 1 + apply Complex.ext <;> + simp only [id_eq, RCLike.inner_apply', Complex.add_re, Complex.add_im, + Complex.neg_re, Complex.neg_im, Complex.mul_re, Complex.mul_im, + Complex.conj_re, Complex.conj_im, Complex.ofReal_re, Complex.ofReal_im, + Complex.I_re, Complex.I_im, Complex.sq_norm, Complex.normSq_apply] <;> norm_num <;> ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WeylCoherentRepresentation.lean b/LeanPool/VacuumBellSeparation/Gaussian/WeylCoherentRepresentation.lean new file mode 100644 index 0000000000..adfb5901fe --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WeylCoherentRepresentation.lean @@ -0,0 +1,120 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentTotality +public import LeanPool.VacuumBellSeparation.Weyl.Existence + +/-! +# A genuine one-mode Weyl/coherent unitary realization + +Normalized ℓ² coherent vectors have the existing Weyl RKHS kernel. The map +on RKHS point masses preserves inner products, extends to the completion, +and is surjective by coherent totality. This constructs the representation +bridge; no uniqueness-of-representation theorem is assumed. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open scoped ComplexConjugate + +/-- The normalized coherent vector in the actual number-basis Hilbert space. -/ +noncomputable def coherentVector (z : ℂ) : OscillatorSpace := + Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ) • exponentialVector z + +theorem inner_coherentVector (z w : ℂ) : + inner ℂ (coherentVector z) (coherentVector w) = weylKernel (id : ℂ → ℂ) z w := by + rw [coherentVector, coherentVector, inner_smul_left, inner_smul_right, + inner_exponentialVector, weylKernel_eq] + simp only [id_eq, RCLike.inner_apply'] + ring + +theorem coherentVector_dense_span : + (Submodule.span ℂ (Set.range coherentVector)).topologicalClosure = ⊤ := by + have hspan : Submodule.span ℂ (Set.range exponentialVector) ≤ + Submodule.span ℂ (Set.range coherentVector) := by + apply Submodule.span_le.mpr + rintro _ ⟨z, rfl⟩ + change exponentialVector z ∈ Submodule.span ℂ (Set.range coherentVector) + have hmem : coherentVector z ∈ Submodule.span ℂ (Set.range coherentVector) := + Submodule.subset_span ⟨z, rfl⟩ + have heq : (Complex.exp ((-(‖z‖ ^ 2 / 2) : ℝ) : ℂ))⁻¹ • coherentVector z = + exponentialVector z := by + rw [coherentVector, inv_smul_smul₀ (Complex.exp_ne_zero _)] + rw [← heq] + exact Submodule.smul_mem (Submodule.span ℂ (Set.range coherentVector)) _ hmem + apply top_unique + rw [← exponentialVector_dense_span] + exact Submodule.topologicalClosure_mono hspan + +/-- The map on the existing RKHS pre-Hilbert space. The second coordinate +of a kernel point mass is its scalar vector label. -/ +noncomputable def coherentRealization₀ : + RKHS.H₀ (weylRKHSKernel (id : ℂ → ℂ)) →ₗ[ℂ] OscillatorSpace := + Finsupp.linearCombination ℂ (fun p : ℂ × ℂ => p.2 • coherentVector p.1) + +@[simp] +theorem coherentRealization₀_single (z v a : ℂ) : + coherentRealization₀ (Finsupp.single (z, v) a) = a • (v • coherentVector z) := by + simp [coherentRealization₀] + +theorem inner_coherentRealization₀ + (f g : RKHS.H₀ (weylRKHSKernel (id : ℂ → ℂ))) : + inner ℂ (coherentRealization₀ f) (coherentRealization₀ g) = inner ℂ f g := by + induction f using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_left] + | add f₁ f₂ h₁ h₂ => simp only [map_add, inner_add_left, h₁, h₂] + | single p a => + induction g using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_right] + | add g₁ g₂ h₁ h₂ => simp only [map_add, inner_add_right, h₁, h₂] + | single q b => + obtain ⟨z, v⟩ := p + obtain ⟨w, u⟩ := q + rw [coherentRealization₀_single, coherentRealization₀_single, inner_H₀_single] + simp only [inner_smul_left, inner_smul_right, inner_coherentVector] + ring + +/-- Linear isometry for the coherent realization iso₀, of type `ℂ → ℂ)) →ₗᵢ[ℂ] OscillatorSpace`. -/ +noncomputable def coherentRealizationIso₀ : + RKHS.H₀ (weylRKHSKernel (id : ℂ → ℂ)) →ₗᵢ[ℂ] OscillatorSpace := + coherentRealization₀.isometryOfInner inner_coherentRealization₀ + +/-- The actual isometry from the completed Weyl representation to ℓ². -/ +noncomputable def coherentRealization : WeylSpace (id : ℂ → ℂ) →ₗᵢ[ℂ] OscillatorSpace := + coherentRealizationIso₀.fromCompletion + +theorem coherentRealization_weylVec (z : ℂ) : + coherentRealization (weylVec (id : ℂ → ℂ) z) = coherentVector z := by + rw [weylVec_def, coherentRealization, LinearIsometry.fromCompletion_apply_coe] + change coherentRealization₀ (Finsupp.single (z, 1) 1) = coherentVector z + simp + +theorem coherentRealization_surjective : Function.Surjective coherentRealization := by + have hclosed : IsClosed (Set.range coherentRealization) := + coherentRealization.isometry.isClosedEmbedding.isClosed_range + have hspan : Submodule.span ℂ (Set.range coherentVector) ≤ + coherentRealization.toLinearMap.range := by + apply Submodule.span_le.mpr + rintro _ ⟨z, rfl⟩ + exact ⟨weylVec (id : ℂ → ℂ) z, coherentRealization_weylVec z⟩ + have hclosure := (Submodule.span ℂ (Set.range coherentVector)).topologicalClosure_minimal + hspan hclosed + rw [coherentVector_dense_span] at hclosure + exact LinearMap.range_eq_top.mp (top_unique hclosure) + +/-- The constructed one-mode Weyl/coherent unitary equivalence. -/ +noncomputable def weylCoherentEquiv : WeylSpace (id : ℂ → ℂ) ≃ₗᵢ[ℂ] OscillatorSpace := + LinearIsometryEquiv.ofSurjective coherentRealization coherentRealization_surjective + +theorem weylCoherentEquiv_weylVec (z : ℂ) : + weylCoherentEquiv (weylVec (id : ℂ → ℂ) z) = coherentVector z := + coherentRealization_weylVec z + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WeylGaussianConvolution.lean b/LeanPool/VacuumBellSeparation/Gaussian/WeylGaussianConvolution.lean new file mode 100644 index 0000000000..0eb19058f2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WeylGaussianConvolution.lean @@ -0,0 +1,91 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.RelabeledWeylAverage + +/-! +# The actual twisted Gaussian convolution for a Weyl sandwich + +The two Gaussian weights and literal Weyl phases are integrated with +respect to complex Lebesgue measure. An exact scalar identity reduces +the convolution to the already established integrable exponential-vector +Weyl kernel. This is the scalar ingredient for projection and compressed +Weyl identities of a symplectically relabeled Gaussian average. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate + +/-- Phase space vacuum weight given by `Complex.exp ((-‖z‖ ^ 2 / 2 : ℝ) : ℂ)`. -/ +def phaseSpaceVacuumWeight {m : ℕ} (z : MultiModePhaseSpace m) : ℂ := + Complex.exp ((-‖z‖ ^ 2 / 2 : ℝ) : ℂ) + +/-- Weyl sandwich convolution. -/ +def weylSandwichConvolution {m : ℕ} (a u : MultiModePhaseSpace m) (z : Fin m → ℂ) : ℂ := + let v : MultiModePhaseSpace m := WithLp.toLp 2 z + phaseSpaceVacuumWeight v * phaseSpaceVacuumWeight (u - v - a) * + weylPhase (id : MultiModePhaseSpace m → MultiModePhaseSpace m) v a * + weylPhase (id : MultiModePhaseSpace m → MultiModePhaseSpace m) (v + a) (u - v - a) + +theorem weylSandwichConvolution_eq_kernel {m : ℕ} (a u : MultiModePhaseSpace m) + (z : Fin m → ℂ) : + weylSandwichConvolution a u z = + (phaseSpaceVacuumWeight a * phaseSpaceVacuumWeight u) * + (weylVacuumWeight m z * + inner ℂ (multiExponentialVector (fun j => u j)) + (multiOscillatorWeyl (WithLp.toLp 2 z) (multiExponentialVector (fun j => a j)))) := by + let v : MultiModePhaseSpace m := WithLp.toLp 2 z + have hvu : inner ℂ v u = conj (inner ℂ u v) := (inner_conj_symm v u).symm + have hau : inner ℂ a u = conj (inner ℂ u a) := (inner_conj_symm a u).symm + have hav : inner ℂ a v = conj (inner ℂ v a) := (inner_conj_symm a v).symm + have hvv : (inner ℂ v v).im = 0 := by + simpa only [RCLike.im_to_complex] using inner_self_im (𝕜 := ℂ) v + have haa : (inner ℂ a a).im = 0 := by + simpa only [RCLike.im_to_complex] using inner_self_im (𝕜 := ℂ) a + rw [multiOscillatorWeyl_exponential_kernel (WithLp.toLp 2 z) u a] + change phaseSpaceVacuumWeight v * phaseSpaceVacuumWeight (u - v - a) * + weylPhase id v a * weylPhase id (v + a) (u - v - a) = + (phaseSpaceVacuumWeight a * phaseSpaceVacuumWeight u) * + (phaseSpaceVacuumWeight v * + Complex.exp (((-‖v‖ ^ 2 / 2 : ℝ) : ℂ) - inner ℂ v a + inner ℂ u (v + a))) + simp only [phaseSpaceVacuumWeight, weylPhase, id_eq, ← Complex.exp_add] + congr 1 + rw [norm_sub_sq (𝕜 := ℂ), norm_sub_sq (𝕜 := ℂ)] + simp only [inner_add_left, inner_add_right, inner_sub_left, inner_sub_right, + hvu, hau, hav] + apply Complex.ext <;> + simp only [Complex.add_re, Complex.add_im, Complex.sub_re, Complex.sub_im, + Complex.neg_re, Complex.neg_im, Complex.mul_re, Complex.mul_im, + Complex.ofReal_re, Complex.ofReal_im, Complex.conj_im, + Complex.I_re, Complex.I_im, RCLike.re_to_complex, hvv, haa] <;> ring + +theorem integrable_weylSandwichConvolution {m : ℕ} (a u : MultiModePhaseSpace m) : + Integrable (weylSandwichConvolution a u) := by + apply ((integrable_gaussianWeyl_exponential_kernel (fun j => u j) (fun j => a j)).const_mul + (phaseSpaceVacuumWeight a * phaseSpaceVacuumWeight u)).congr + exact Filter.Eventually.of_forall fun z => + (weylSandwichConvolution_eq_kernel a u z).symm + +/-- The exact π^m normalization and both vacuum factors in the Weyl +sandwich convolution. All integrals in this identity are genuinely integrable. -/ +theorem integral_weylSandwichConvolution {m : ℕ} (a u : MultiModePhaseSpace m) : + (∫ z : Fin m → ℂ, weylSandwichConvolution a u z) = + (Real.pi : ℂ) ^ m * phaseSpaceVacuumWeight a * phaseSpaceVacuumWeight u := by + simp_rw [weylSandwichConvolution_eq_kernel] + rw [integral_const_mul] + simp only [weylVacuumWeight] + rw [integral_gaussianWeyl_exponential_kernel] + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WeylGaussianProjection.lean b/LeanPool/VacuumBellSeparation/Gaussian/WeylGaussianProjection.lean new file mode 100644 index 0000000000..62a218eaa8 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WeylGaussianProjection.lean @@ -0,0 +1,164 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WeylAverageFubini + +/-! +# A nonzero actual Gaussian projection for a symplectic relabeling + +Evenness of the Gaussian and the actual Weyl adjoint identity prove +self-adjointness of the strong average. The proved compressed-Weyl +identity gives its square. After the literal π^m normalization it is a +nonzero orthogonal projection, and its normalized vacuum image is an +actual unit vector with the required Gaussian Weyl characteristic. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory ContinuousLinearMap +open scoped ComplexConjugate ComplexOrder + +variable {m : ℕ} + +theorem weylVacuumWeight_conj (z : Fin m → ℂ) : conj + (weylVacuumWeight m z) = weylVacuumWeight m z := by + simp only [weylVacuumWeight, ← Complex.exp_conj, Complex.conj_ofReal] + +theorem weylVacuumWeight_neg (z : Fin m → ℂ) : weylVacuumWeight m (-z) = weylVacuumWeight m z := by + simp only [weylVacuumWeight, WithLp.toLp_neg, norm_neg] + +theorem relabeledWeylAverage_isSelfAdjoint + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : + IsSelfAdjoint (relabeledWeylAverage T) := by + apply isSelfAdjoint_iff_isSymmetric.mpr + intro x y + calc + inner ℂ (relabeledWeylAverage T x) y = + conj (inner ℂ y (relabeledWeylAverage T x)) := (inner_conj_symm _ _).symm + _ = ∫ z : Fin m → ℂ, conj (weylVacuumWeight m z * + inner ℂ y (multiOscillatorWeyl (T (WithLp.toLp 2 z)) x)) := by + rw [inner_relabeledWeylAverage, integral_conj] + _ = ∫ z : Fin m → ℂ, weylVacuumWeight m (-z) * + inner ℂ x (multiOscillatorWeyl (T (WithLp.toLp 2 (-z))) y) := by + apply integral_congr_ae + exact Filter.Eventually.of_forall fun z => by + dsimp only + rw [map_mul, weylVacuumWeight_conj, inner_conj_symm, + ← adjoint_inner_right, multiOscillatorWeyl_adjoint, + weylVacuumWeight_neg, WithLp.toLp_neg, map_neg] + _ = ∫ z : Fin m → ℂ, weylVacuumWeight m z * + inner ℂ x (multiOscillatorWeyl (T (WithLp.toLp 2 z)) y) := + integral_neg_eq_self (fun z : Fin m → ℂ => weylVacuumWeight m z * + inner ℂ x (multiOscillatorWeyl (T (WithLp.toLp 2 z)) y)) volume + _ = inner ℂ x (relabeledWeylAverage T y) := (inner_relabeledWeylAverage T x y).symm + +theorem relabeledWeylAverage_mul_self + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + relabeledWeylAverage T * relabeledWeylAverage T = + (Real.pi : ℂ) ^ m • relabeledWeylAverage T := by + simpa only [map_zero, multiOscillatorWeyl_zero, mul_one, phaseSpaceVacuumWeight, + norm_zero, zero_pow (by norm_num : 2 ≠ 0), neg_zero, zero_div, + Complex.ofReal_zero, Complex.exp_zero] using relabeledWeylAverage_sandwich hT 0 + +/-- Relabeled Gaussian projection given by `((Real.pi : ℂ) ^ m)⁻¹ • relabeledWeylAverage T`. -/ +def relabeledGaussianProjection + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : + MultiModeOscillatorSpace m →L[ℂ] MultiModeOscillatorSpace m := + ((Real.pi : ℂ) ^ m)⁻¹ • relabeledWeylAverage T + +theorem relabeledGaussianProjection_isSelfAdjoint + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : + IsSelfAdjoint (relabeledGaussianProjection T) := by + exact (show IsSelfAdjoint (((Real.pi : ℂ) ^ m)⁻¹) by simp [IsSelfAdjoint]).smul + (relabeledWeylAverage_isSelfAdjoint T) + +theorem relabeledGaussianProjection_mul_self + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + relabeledGaussianProjection T * relabeledGaussianProjection T = relabeledGaussianProjection + T := by + have hp : (Real.pi : ℂ) ^ m ≠ 0 := pow_ne_zero _ (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero) + simp only [relabeledGaussianProjection, smul_mul_assoc, mul_smul_comm, + relabeledWeylAverage_mul_self hT, smul_smul] + congr 1 + field_simp [hp] + +theorem relabeledGaussianProjection_isStarProjection + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + IsStarProjection (relabeledGaussianProjection T) := + ⟨relabeledGaussianProjection_mul_self hT, relabeledGaussianProjection_isSelfAdjoint T⟩ + +theorem relabeledGaussianProjection_nonneg + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + 0 ≤ relabeledGaussianProjection T := (relabeledGaussianProjection_isStarProjection hT).nonneg + +theorem relabeledGaussianProjection_vacuum_ne_zero + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : + relabeledGaussianProjection T (multiCoherentVector (0 : MultiModePhaseSpace m)) ≠ 0 := by + rw [relabeledGaussianProjection, smul_apply] + exact smul_ne_zero (inv_ne_zero (pow_ne_zero _ (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero))) + (relabeledWeylAverage_vacuum_ne_zero T) + +theorem relabeledGaussianProjection_weyl_sandwich + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) + (a : MultiModePhaseSpace m) : + relabeledGaussianProjection T * multiOscillatorWeyl (T a) * relabeledGaussianProjection T = + phaseSpaceVacuumWeight a • relabeledGaussianProjection T := by + have hp : (Real.pi : ℂ) ^ m ≠ 0 := pow_ne_zero _ (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero) + simp only [relabeledGaussianProjection, smul_mul_assoc, mul_smul_comm, + relabeledWeylAverage_sandwich hT, smul_smul] + congr 1 + field_simp [hp] + +/-- Relabeled Gaussian vacuum. -/ +def relabeledGaussianVacuum + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : MultiModeOscillatorSpace m := + (‖relabeledGaussianProjection T (multiCoherentVector (0 : MultiModePhaseSpace m))‖⁻¹ : ℝ) • + relabeledGaussianProjection T (multiCoherentVector 0) + +theorem norm_relabeledGaussianVacuum + (T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m) : ‖relabeledGaussianVacuum T‖ = 1 := by + have hn := norm_ne_zero_iff.mpr (relabeledGaussianProjection_vacuum_ne_zero T) + rw [relabeledGaussianVacuum, norm_smul, Real.norm_eq_abs, abs_inv, + abs_of_nonneg (norm_nonneg _), inv_mul_cancel₀ hn] + +theorem relabeledGaussianProjection_vacuum_fixed + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) : + relabeledGaussianProjection T (relabeledGaussianVacuum T) = relabeledGaussianVacuum T := by + rw [relabeledGaussianVacuum, map_smul_of_tower, ← mul_apply_eq_comp, + relabeledGaussianProjection_mul_self hT] + +/-- Actual Gaussian vector characteristic for the relabeled Weyl family, +derived from the nonzero projection and its compressed-Weyl identity. -/ +theorem relabeledGaussianVacuum_characteristic + {T : MultiModePhaseSpace m →L[ℝ] MultiModePhaseSpace m} (hT : PreservesWeylForm T) + (a : MultiModePhaseSpace m) : + inner ℂ (relabeledGaussianVacuum T) + (multiOscillatorWeyl (T a) (relabeledGaussianVacuum T)) = phaseSpaceVacuumWeight a := by + let P := relabeledGaussianProjection T + let v := relabeledGaussianVacuum T + have hPv : P v = v := relabeledGaussianProjection_vacuum_fixed hT + have hP : P.adjoint = P := (isSelfAdjoint_iff'.mp (relabeledGaussianProjection_isSelfAdjoint T)) + have hinner : inner ℂ v v = 1 := by + rw [inner_self_eq_norm_sq_to_K, norm_relabeledGaussianVacuum] + norm_num + calc + _ = inner ℂ (P v) (multiOscillatorWeyl (T a) (P v)) := by rw [hPv] + _ = inner ℂ v (P (multiOscillatorWeyl (T a) (P v))) := by + rw [← adjoint_inner_right, hP] + _ = inner ℂ v ((P * multiOscillatorWeyl (T a) * P) v) := by + simp only [mul_apply_eq_comp] + _ = inner ℂ v ((phaseSpaceVacuumWeight a • P) v) := by + rw [show P * multiOscillatorWeyl (T a) * P = phaseSpaceVacuumWeight a • P from + relabeledGaussianProjection_weyl_sandwich hT a] + _ = phaseSpaceVacuumWeight a := by rw [smul_apply, inner_smul_right, hPv, hinner, mul_one] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WeylIrreducibility.lean b/LeanPool/VacuumBellSeparation/Gaussian/WeylIrreducibility.lean new file mode 100644 index 0000000000..0e018e0eae --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WeylIrreducibility.lean @@ -0,0 +1,134 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WeylCoherentInversion + +/-! +# Irreducibility of the actual finite-mode oscillator Weyl representation + +The actual Bochner Gaussian orbit integral is the vacuum rank-one +projection. A nonzero closed invariant subspace therefore contains the +vacuum and all coherent vectors. This proves irreducibility and cyclicity +of every nonzero vector without assuming CCR uniqueness. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory ContinuousLinearMap InnerProductSpace +open scoped ComplexConjugate + +theorem integral_mem_closed_complex_submodule {X E : Type*} [MeasurableSpace X] + [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + (K : Submodule ℂ E) (hK : IsClosed (K : Set E)) {μ : Measure X} {f : X → E} + (hf : Integrable f μ) (hmem : ∀ᵐ x ∂μ, f x ∈ K) : (∫ x, f x ∂μ) ∈ K := by + rw [← hK.submodule_topologicalClosure_eq, ← K.orthogonal_orthogonal_eq_closure] + apply (Kᗮ.mem_orthogonal _).mpr + intro y hy + rw [← integral_inner hf] + apply integral_eq_zero_of_ae + exact hmem.mono fun x hx => K.inner_left_of_mem_orthogonal hx hy + +theorem exists_inner_multiCoherentVector_ne_zero {m : ℕ} + {x : MultiModeOscillatorSpace m} (hx : x ≠ 0) : + ∃ z : MultiModePhaseSpace m, inner ℂ (multiCoherentVector z) x ≠ 0 := by + by_contra h + push Not at h + apply hx + apply (innerSL_inj (𝕜 := ℂ)).mp + apply continuousLinearMap_eq_of_dense_span (multiCoherentVector (m := m)) + (multiCoherentVector_dense_span m) + intro z + simpa only [innerSL_apply_apply, inner_zero_left, inner_conj_symm, map_zero, + zero_apply] using + congrArg conj (h z) + +theorem weylVacuumIntegral_mem_of_invariant {m : ℕ} + (K : Submodule ℂ (MultiModeOscillatorSpace m)) (hK : IsClosed (K : Set + (MultiModeOscillatorSpace m))) + (hW : ∀ z : MultiModePhaseSpace m, ∀ x ∈ K, multiOscillatorWeyl z x ∈ K) + {x : MultiModeOscillatorSpace m} (hx : x ∈ K) : weylVacuumIntegral m x ∈ K := by + rw [weylVacuumIntegral_apply] + apply integral_mem_closed_complex_submodule K hK (integrable_weylVacuumOrbit x) + exact Filter.Eventually.of_forall fun z => K.smul_mem _ (hW _ _ hx) + +/-- Every nonzero closed subspace invariant under all actual oscillator +Weyl operators is the full Hilbert space. -/ +theorem closed_weyl_invariant_eq_top {m : ℕ} + (K : Submodule ℂ (MultiModeOscillatorSpace m)) (hK : IsClosed (K : Set + (MultiModeOscillatorSpace m))) + (hW : ∀ z : MultiModePhaseSpace m, ∀ x ∈ K, multiOscillatorWeyl z x ∈ K) + {x : MultiModeOscillatorSpace m} (hx : x ∈ K) (hx₀ : x ≠ 0) : K = ⊤ := by + obtain ⟨z, hz⟩ := exists_inner_multiCoherentVector_ne_zero hx₀ + let v := multiExponentialVector (0 : Fin m → ℂ) + let y := multiOscillatorWeyl (-z) x + have hy : y ∈ K := hW (-z) x hx + have hinner : inner ℂ v y = inner ℂ (multiCoherentVector z) x := by + dsimp only [y] + rw [← multiOscillatorWeyl_adjoint z, adjoint_inner_right] + dsimp only [v] + rw [multiOscillatorWeyl_exponential_zero] + have hp : (Real.pi : ℂ) ^ m ≠ 0 := + pow_ne_zero _ (Complex.ofReal_ne_zero.mpr Real.pi_ne_zero) + have hc : (Real.pi : ℂ) ^ m * inner ℂ v y ≠ 0 := + mul_ne_zero hp (by rwa [hinner]) + have havg := weylVacuumIntegral_mem_of_invariant K hK hW hy + rw [weylVacuumIntegral_eq_rankOne, smul_apply, rankOne_apply, smul_smul] at havg + change ((Real.pi : ℂ) ^ m * inner ℂ v y) • v ∈ K at havg + have hv : v ∈ K := by + have h := K.smul_mem (((Real.pi : ℂ) ^ m * inner ℂ v y)⁻¹) havg + simpa only [inv_smul_smul₀ hc] using h + have hspan : Submodule.span ℂ (Set.range (multiCoherentVector (m := m))) ≤ K := by + apply Submodule.span_le.mpr + rintro _ ⟨w, rfl⟩ + rw [← multiOscillatorWeyl_exponential_zero w] + exact hW w v hv + have hclosure := (Submodule.span ℂ (Set.range (multiCoherentVector + (m := m)))).topologicalClosure_minimal + hspan hK + rw [multiCoherentVector_dense_span] at hclosure + exact top_unique hclosure + +/-- Every nonzero vector is genuinely cyclic for the full finite-mode +oscillator Weyl family. This supplies surjectivity for later constructed +intertwiners. -/ +theorem multiOscillatorWeyl_orbit_dense_span {m : ℕ} + {x : MultiModeOscillatorSpace m} (hx : x ≠ 0) : + (Submodule.span ℂ (Set.range (fun z : MultiModePhaseSpace m => + multiOscillatorWeyl z x))).topologicalClosure = ⊤ := by + let K := Submodule.span ℂ (Set.range (fun z : MultiModePhaseSpace m => multiOscillatorWeyl z x)) + have hW (z : MultiModePhaseSpace m) : ∀ y ∈ K, multiOscillatorWeyl z y ∈ K := by + intro y hy + induction hy using Submodule.span_induction with + | mem y hy => + rcases hy with ⟨w, rfl⟩ + rw [← mul_apply_eq_comp, multiOscillatorWeyl_mul, smul_apply] + exact K.smul_mem _ (Submodule.subset_span ⟨z + w, rfl⟩) + | zero => simpa only [map_zero] using K.zero_mem + | add a b ha hb iha ihb => simpa only [map_add] using K.add_mem iha ihb + | smul a y hy ih => simpa only [map_smul] using K.smul_mem a ih + have hWclosure (z : MultiModePhaseSpace m) : + ∀ y ∈ K.topologicalClosure, multiOscillatorWeyl z y ∈ K.topologicalClosure := by + have hmap : K.map (multiOscillatorWeyl z).toLinearMap ≤ K := by + rintro _ ⟨y, hy, rfl⟩ + exact hW z y hy + have hcl := (K.topologicalClosure_map (multiOscillatorWeyl z)).trans + (Submodule.topologicalClosure_mono hmap) + intro y hy + exact hcl ⟨y, hy, rfl⟩ + have hxK : x ∈ K := by + have h : multiOscillatorWeyl (0 : MultiModePhaseSpace m) x ∈ K := + Submodule.subset_span ⟨0, rfl⟩ + simpa only [multiOscillatorWeyl_zero, one_apply_eq_self] using h + exact closed_weyl_invariant_eq_top K.topologicalClosure K.isClosed_topologicalClosure + hWclosure (K.le_topologicalClosure hxK) hx + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WeylVacuumIntegral.lean b/LeanPool/VacuumBellSeparation/Gaussian/WeylVacuumIntegral.lean new file mode 100644 index 0000000000..845dac2015 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WeylVacuumIntegral.lean @@ -0,0 +1,152 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.WeylVacuumKernel +public import LeanPool.VacuumBellSeparation.Gaussian.L2ProductInner + +/-! +# Strong vector integration gives the actual vacuum projection + +Each orbit is strongly continuous and has constant vector norm. The +Gaussian-weighted vector integral therefore defines a bounded linear map. +The proved exponential matrix elements and their dense span identify it +with π^m times the actual rank-one vacuum projection. No operator-norm +measurability of the Weyl operator family is assumed. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory ContinuousLinearMap InnerProductSpace +open scoped ComplexConjugate + +/-- Weyl vacuum weight defined as `Complex.exp ((-‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 / +2 : ℝ) : ℂ)`. -/ +def weylVacuumWeight (m : ℕ) (z : Fin m → ℂ) : ℂ := + Complex.exp ((-‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 / 2 : ℝ) : ℂ) + +theorem integrable_weylVacuumWeight (m : ℕ) : Integrable (weylVacuumWeight m) := by + have h := integrable_multiComplexGaussianBilinear + (s := fun _ : Fin m => 1 / 2) (fun _ => by norm_num) + (fun _ => 0) (fun _ => 0) + convert h using 1 + funext z + simp only [weylVacuumWeight, EuclideanSpace.norm_sq_eq, + zero_mul, add_zero, ← Complex.exp_sum, ← Complex.ofReal_sum, + ← Finset.sum_neg_distrib, Finset.sum_div] + congr 1 + push_cast + ring_nf + +theorem continuous_multiOscillatorWeyl_apply {m : ℕ} (x : MultiModeOscillatorSpace m) : + Continuous (fun z : MultiModePhaseSpace m => multiOscillatorWeyl z x) := by + have h := (multiWeylCoherentEquiv m).continuous.comp + (continuous_weylCLM_id_apply ((multiWeylCoherentEquiv m).symm x)) + simpa only [multiOscillatorWeyl, LinearIsometryEquiv.conjStarAlgEquiv_apply_apply, + Function.comp_apply] using! h + +theorem norm_multiOscillatorWeyl_apply {m : ℕ} (z : MultiModePhaseSpace m) + (x : MultiModeOscillatorSpace m) : ‖multiOscillatorWeyl z x‖ = ‖x‖ := + norm_map_of_mem_unitary (multiOscillatorWeyl_mem_unitary z) x + +theorem integrable_weylVacuumOrbit {m : ℕ} (x : MultiModeOscillatorSpace m) : + Integrable (fun z : Fin m → ℂ => + weylVacuumWeight m z • multiOscillatorWeyl (WithLp.toLp 2 z) x) := by + have hc : Continuous (fun z : Fin m → ℂ => + weylVacuumWeight m z • multiOscillatorWeyl (WithLp.toLp 2 z) x) := by + have hW := (continuous_multiOscillatorWeyl_apply x).comp (PiLp.continuous_toLp 2 _) + have hw : Continuous (weylVacuumWeight m) := by unfold weylVacuumWeight; fun_prop + exact hw.smul hW + apply ((integrable_weylVacuumWeight m).norm.mul_const ‖x‖).mono' hc.aestronglyMeasurable + exact Filter.Eventually.of_forall fun z => by + rw [norm_smul, norm_multiOscillatorWeyl_apply] + +/-- Linear map for the weyl vacuum integral linear, of type `MultiModeOscillatorSpace m →ₗ[ℂ] +MultiModeOscillatorSpace m where toFun x`. -/ +def weylVacuumIntegralLinear (m : ℕ) : MultiModeOscillatorSpace m →ₗ[ℂ] + MultiModeOscillatorSpace m where + toFun x := ∫ z : Fin m → ℂ, + weylVacuumWeight m z • multiOscillatorWeyl (WithLp.toLp 2 z) x + map_add' x y := by + simp only [map_add, smul_add] + exact integral_add (integrable_weylVacuumOrbit x) (integrable_weylVacuumOrbit y) + map_smul' c x := by + simp only [map_smul, RingHom.id_apply] + simp_rw [smul_comm (weylVacuumWeight m _) c] + exact integral_smul c _ + +theorem norm_weylVacuumIntegralLinear_le {m : ℕ} (x : MultiModeOscillatorSpace m) : + ‖weylVacuumIntegralLinear m x‖ ≤ + (∫ z : Fin m → ℂ, ‖weylVacuumWeight m z‖) * ‖x‖ := by + calc + _ ≤ ∫ z : Fin m → ℂ, + ‖weylVacuumWeight m z • multiOscillatorWeyl (WithLp.toLp 2 z) x‖ := + norm_integral_le_integral_norm _ + _ = _ := by + simp only [norm_smul, norm_multiOscillatorWeyl_apply] + exact integral_mul_const ‖x‖ _ + +/-- Continuous linear map for the weyl vacuum integral, of type `MultiModeOscillatorSpace m →L[ℂ] +MultiModeOscillatorSpace m`. -/ +def weylVacuumIntegral (m : ℕ) : MultiModeOscillatorSpace m →L[ℂ] + MultiModeOscillatorSpace m := + (weylVacuumIntegralLinear m).mkContinuous + (∫ z : Fin m → ℂ, ‖weylVacuumWeight m z‖) norm_weylVacuumIntegralLinear_le + +@[simp] theorem weylVacuumIntegral_apply {m : ℕ} (x : MultiModeOscillatorSpace m) : + weylVacuumIntegral m x = ∫ z : Fin m → ℂ, + weylVacuumWeight m z • multiOscillatorWeyl (WithLp.toLp 2 z) x := rfl + +theorem inner_weylVacuumIntegral_exponential {m : ℕ} (a b : Fin m → ℂ) : + inner ℂ (multiExponentialVector a) (weylVacuumIntegral m (multiExponentialVector b)) = + (Real.pi : ℂ) ^ m := by + rw [weylVacuumIntegral_apply, ← integral_inner (integrable_weylVacuumOrbit _)] + simp only [inner_smul_right, weylVacuumWeight] + exact integral_gaussianWeyl_exponential_kernel a b + +/-- Genuine weak Weyl inversion as equality of actual bounded operators. -/ +theorem weylVacuumIntegral_eq_rankOne (m : ℕ) : + weylVacuumIntegral m = (Real.pi : ℂ) ^ m • + rankOne ℂ (multiExponentialVector (0 : Fin m → ℂ)) + (multiExponentialVector (0 : Fin m → ℂ)) := by + apply continuousLinearMap_eq_of_dense_span (multiExponentialVector (m := m)) + (multiExponentialVector_dense_span m) + intro b + apply (innerSL_inj (𝕜 := ℂ)).mp + apply continuousLinearMap_eq_of_dense_span (multiExponentialVector (m := m)) + (multiExponentialVector_dense_span m) + intro a + have hk : inner ℂ (multiExponentialVector a) + (weylVacuumIntegral m (multiExponentialVector b)) = + inner ℂ (multiExponentialVector a) + (((Real.pi : ℂ) ^ m • rankOne ℂ + (multiExponentialVector (0 : Fin m → ℂ)) + (multiExponentialVector (0 : Fin m → ℂ))) (multiExponentialVector b)) := by + rw [inner_weylVacuumIntegral_exponential] + simp only [smul_apply, rankOne_apply, inner_smul_right, + inner_multiExponentialVector, Pi.zero_apply, map_zero, zero_mul, mul_zero, + Finset.sum_const_zero, Complex.exp_zero, mul_one] + simpa only [innerSL_apply_apply, inner_conj_symm] using congrArg conj hk + +/-- Every scalar matrix element has the literal Gaussian-weighted Weyl +integral, now on arbitrary vectors rather than a formal coherent kernel. -/ +theorem integral_gaussianWeyl_kernel {m : ℕ} (x y : MultiModeOscillatorSpace m) : + (∫ z : Fin m → ℂ, weylVacuumWeight m z * + inner ℂ x (multiOscillatorWeyl (WithLp.toLp 2 z) y)) = + (Real.pi : ℂ) ^ m * inner ℂ x (multiExponentialVector (0 : Fin m → ℂ)) * + inner ℂ (multiExponentialVector (0 : Fin m → ℂ)) y := by + have h := integral_inner (𝕜 := ℂ) (integrable_weylVacuumOrbit y) x + simp only [inner_smul_right, ← weylVacuumIntegral_apply] at h + rw [h, weylVacuumIntegral_eq_rankOne, smul_apply, rankOne_apply, + inner_smul_right, inner_smul_right] + ring + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WeylVacuumKernel.lean b/LeanPool/VacuumBellSeparation/Gaussian/WeylVacuumKernel.lean new file mode 100644 index 0000000000..486629d5b7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WeylVacuumKernel.lean @@ -0,0 +1,110 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexGaussianBilinear +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentRotationAveraging +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCanonicalThermalModel + +/-! +# Gaussian-weighted Weyl inversion on the actual exponential vectors + +The kernel is derived from the constructed Weyl action, including its +phase. Its genuine scalar Gaussian integral equals the vacuum rank-one +matrix element. Extension to arbitrary vectors is a separate continuity +step; this file makes no operator-norm Bochner integral assertion. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open MeasureTheory +open scoped ComplexConjugate + +theorem multiOscillatorWeyl_exponential_kernel {m : ℕ} + (z a b : MultiModePhaseSpace m) : + inner ℂ (multiExponentialVector (fun j => a j)) + (multiOscillatorWeyl z (multiExponentialVector (fun j => b j))) = + Complex.exp (((-‖z‖ ^ 2 / 2 : ℝ) : ℂ) - inner ℂ z b + inner ℂ a (z + b)) := by + rw [multiExponentialVector_eq_normalized, multiExponentialVector_eq_normalized, + map_smul, multiOscillatorWeyl_coherentVector, inner_smul_left, inner_smul_right, + inner_smul_right, inner_multiCoherentVector] + change conj (Complex.exp ((‖a‖ ^ 2 / 2 : ℝ) : ℂ)) * + (Complex.exp ((‖b‖ ^ 2 / 2 : ℝ) : ℂ) * + (weylPhase id z b * weylKernel id a (z + b))) = _ + simp only [weylPhase, weylKernel, id_eq, ← Complex.exp_conj, Complex.conj_ofReal, + ← Complex.exp_add] + congr 1 + rw [norm_add_sq (𝕜 := ℂ)] + apply Complex.ext <;> + simp only [Complex.add_re, Complex.add_im, Complex.sub_re, Complex.sub_im, + Complex.neg_re, Complex.neg_im, Complex.mul_re, Complex.mul_im, + Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, + RCLike.re_to_complex] <;> ring + +theorem gaussianWeyl_exponential_kernel_product {m : ℕ} + (z a b : Fin m → ℂ) : + Complex.exp ((-‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 / 2 : ℝ) : ℂ) * + inner ℂ (multiExponentialVector a) + (multiOscillatorWeyl (WithLp.toLp 2 z) (multiExponentialVector b)) = + Complex.exp (∑ j, conj (a j) * b j) * + ∏ j, Complex.exp (((-‖z j‖ ^ 2 : ℝ) : ℂ) + + conj (a j) * z j + (-b j) * conj (z j)) := by + rw [multiOscillatorWeyl_exponential_kernel (WithLp.toLp 2 z) + (WithLp.toLp 2 a) (WithLp.toLp 2 b), ← Complex.exp_add, + ← Complex.exp_sum, ← Complex.exp_add] + congr 1 + simp only [EuclideanSpace.norm_sq_eq, PiLp.inner_apply, + PiLp.add_apply, RCLike.inner_apply', Finset.sum_add_distrib, + Finset.sum_neg_distrib, Complex.ofReal_div, Complex.ofReal_neg, + Complex.ofReal_sum] + have hcomm : (∑ j, conj (z j) * b j) = ∑ j, b j * conj (z j) := by + apply Finset.sum_congr rfl + intro j _ + ring + simp only [mul_add, Finset.sum_add_distrib, neg_mul, Finset.sum_neg_distrib] + rw [hcomm] + norm_num; ring + +theorem integrable_gaussianWeyl_exponential_kernel {m : ℕ} (a b : Fin m → ℂ) : + Integrable (fun z : Fin m → ℂ => + Complex.exp ((-‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 / 2 : ℝ) : ℂ) * + inner ℂ (multiExponentialVector a) + (multiOscillatorWeyl (WithLp.toLp 2 z) (multiExponentialVector b))) := by + simp_rw [gaussianWeyl_exponential_kernel_product] + have h := integrable_multiComplexGaussianBilinear + (s := fun _ : Fin m => 1) (fun _ => zero_lt_one) + (fun j => conj (a j)) (fun j => -b j) + simpa only [neg_one_mul] using h.const_mul (Complex.exp (∑ j, conj (a j) * b j)) + +/-- Scalar matrix element of weak Weyl inversion. The value is π^m +because both vacuum/exponential inner products are exactly one. -/ +theorem integral_gaussianWeyl_exponential_kernel {m : ℕ} (a b : Fin m → ℂ) : + (∫ z : Fin m → ℂ, + Complex.exp ((-‖(WithLp.toLp 2 z : MultiModePhaseSpace m)‖ ^ 2 / 2 : ℝ) : ℂ) * + inner ℂ (multiExponentialVector a) + (multiOscillatorWeyl (WithLp.toLp 2 z) (multiExponentialVector b))) = + (Real.pi : ℂ) ^ m := by + simp_rw [gaussianWeyl_exponential_kernel_product] + rw [integral_const_mul] + have h := integral_multiComplexGaussianBilinear + (s := fun _ : Fin m => 1) (fun _ => zero_lt_one) + (fun j => conj (a j)) (fun j => -b j) + simp only [neg_one_mul, div_one, Complex.ofReal_one] at h + rw [h, Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ, + Fintype.card_fin, ← Complex.exp_sum] + have hc : (∑ j, conj (a j) * b j) + (∑ j, conj (a j) * -b j) = 0 := by + simp only [mul_neg, Finset.sum_neg_distrib, add_neg_cancel] + calc + _ = (Real.pi : ℂ) ^ m * (Complex.exp (∑ j, conj (a j) * b j) * + Complex.exp (∑ j, conj (a j) * -b j)) := by ring + _ = _ := by rw [← Complex.exp_add, hc, Complex.exp_zero, mul_one] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WhitenedComplexFamily.lean b/LeanPool/VacuumBellSeparation/Gaussian/WhitenedComplexFamily.lean new file mode 100644 index 0000000000..4c76ddbcdd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WhitenedComplexFamily.lean @@ -0,0 +1,168 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSourceCompressionBounds +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexifiedOperator + +/-! +# Actual whitening of a finite real Hilbert-space family + +The complex synthesis map sends coordinate vectors to the canonical +complexifications of the given real vectors. Multiplication by the true +inverse covariance square root makes it isometric. Its compression of a +real operator's complexification is the normalized matrix of the actual +real bilinear form; no compression identity is an input. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix ContinuousLinearMap HilbertComplexification +open scoped ENNReal MatrixOrder Matrix.Norms.L2Operator ComplexOrder + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] +variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] + +omit [DecidableEq ι] in +theorem euclideanCLM_eq_of_inner_coordinates + {A B : EuclideanSpace ℂ ι →L[ℂ] EuclideanSpace ℂ ι} + (h : ∀ i j, inner ℂ (EuclideanSpace.basisFun ι ℂ i) (A (EuclideanSpace.basisFun ι ℂ j)) = + inner ℂ (EuclideanSpace.basisFun ι ℂ i) (B (EuclideanSpace.basisFun ι ℂ j))) : A = B := by + apply ContinuousLinearMap.coe_injective + apply (EuclideanSpace.basisFun ι ℂ).toBasis.ext + intro j + apply (EuclideanSpace.basisFun ι ℂ).repr.injective + ext i + change (EuclideanSpace.basisFun ι ℂ).repr (A (EuclideanSpace.basisFun ι ℂ j)) i = + (EuclideanSpace.basisFun ι ℂ).repr (B (EuclideanSpace.basisFun ι ℂ j)) i + simpa only [OrthonormalBasis.repr_apply_apply] using h i j + +/-- Real family gram obtained from `Matrix.gram`. -/ +def realFamilyGram (f : ι → E) : Matrix ι ι ℝ := Matrix.gram ℝ f + +/-- Real family form given by `fun i j => inner ℝ (f i) (J (f j))`. -/ +def realFamilyForm (f : ι → E) (J : E →L[ℝ] E) : Matrix ι ι ℝ := + fun i j => inner ℝ (f i) (J (f j)) + +/-- The complex-linear synthesis operator for a finite family, valued in its real Hilbert-space +complexification. -/ +def complexFamilySynthesis (f : ι → E) : + EuclideanSpace ℂ ι →L[ℂ] HilbertComplexification E := + ((EuclideanSpace.basisFun ι ℂ).toBasis.constr ℂ (fun i => ofReal (f i))).toContinuousLinearMap + +omit [CompleteSpace E] [DecidableEq ι] in +theorem complexFamilySynthesis_basis (f : ι → E) (i : ι) : + complexFamilySynthesis f (EuclideanSpace.basisFun ι ℂ i) = ofReal (f i) := by + exact Module.Basis.constr_basis _ _ _ _ + +theorem complexFamilySynthesis_gram (f : ι → E) : + (complexFamilySynthesis f).adjoint.comp (complexFamilySynthesis f) = + realMatrixOperator (realFamilyGram f) := by + apply euclideanCLM_eq_of_inner_coordinates + intro i j + rw [ContinuousLinearMap.comp_apply, adjoint_inner_right, complexFamilySynthesis_basis, + complexFamilySynthesis_basis] + rw [realMatrixOperator, euclidean_coordinate_inner_matrix] + apply Complex.ext <;> simp [HilbertComplexification.inner_eq, realFamilyGram, Matrix.gram_apply] + +theorem complexFamilySynthesis_form (f : ι → E) (J : E →L[ℝ] E) : + (complexFamilySynthesis f).adjoint.comp ((complexify J).comp (complexFamilySynthesis f)) = + realMatrixOperator (realFamilyForm f J) := by + apply euclideanCLM_eq_of_inner_coordinates + intro i j + rw [ContinuousLinearMap.comp_apply, ContinuousLinearMap.comp_apply, adjoint_inner_right, + complexFamilySynthesis_basis, + complexFamilySynthesis_basis, complexify_ofReal] + rw [realMatrixOperator, euclidean_coordinate_inner_matrix] + apply Complex.ext <;> simp [HilbertComplexification.inner_eq, realFamilyForm] + +/-- Whitened complex family map of type `EuclideanSpace ℂ ι →L[ℂ] HilbertComplexification E`. -/ +def whitenedComplexFamilyMap (f : ι → E) : + EuclideanSpace ℂ ι →L[ℂ] HilbertComplexification E := + (complexFamilySynthesis f).comp (realMatrixOperator ((CFC.sqrt (realFamilyGram f))⁻¹)) + +theorem realMatrixOperator_adjoint (A : Matrix ι ι ℝ) : + (realMatrixOperator A).adjoint = realMatrixOperator Aᵀ := by + simp only [realMatrixOperator, complexifyMatrix_transpose] + exact (map_star Matrix.toEuclideanCLM (complexifyMatrix A)).symm + +theorem whitenedComplexFamilyMap_gram (f : ι → E) (hf : LinearIndependent ℝ f) : + (whitenedComplexFamilyMap f).adjoint.comp (whitenedComplexFamilyMap f) = 1 := by + have hV : (realFamilyGram f).PosDef := Matrix.posDef_gram_of_linearIndependent hf + have ht := matrix_inverse_sqrt_transpose hV + have hroot := matrix_sqrt_posDef hV + have hd := (Matrix.isUnit_iff_isUnit_det (CFC.sqrt (realFamilyGram f))).mp hroot.isUnit + have hs : (CFC.sqrt (realFamilyGram f))⁻¹ * realFamilyGram f * + (CFC.sqrt (realFamilyGram f))⁻¹ = 1 := by + calc + _ = (CFC.sqrt (realFamilyGram f))⁻¹ * + (CFC.sqrt (realFamilyGram f) * CFC.sqrt (realFamilyGram f)) * + (CFC.sqrt (realFamilyGram f))⁻¹ := by + rw [CFC.sqrt_mul_sqrt_self _ hV.posSemidef.nonneg] + _ = 1 := by + rw [← mul_assoc, Matrix.nonsing_inv_mul _ hd, one_mul, Matrix.mul_nonsing_inv _ hd] + rw [whitenedComplexFamilyMap, adjoint_comp, realMatrixOperator_adjoint, ht] + calc + _ = realMatrixOperator ((CFC.sqrt (realFamilyGram f))⁻¹) * + ((complexFamilySynthesis f).adjoint.comp (complexFamilySynthesis f)) * + realMatrixOperator ((CFC.sqrt (realFamilyGram f))⁻¹) := by + simp only [mul_def, comp_assoc] + _ = 1 := by + rw [complexFamilySynthesis_gram, ← realMatrixOperator_mul, + ← realMatrixOperator_mul, hs, realMatrixOperator_one] + +/-- Linear isometry for the whitened complex family, of type `EuclideanSpace ℂ ι →ₗᵢ[ℂ] +HilbertComplexification E`. -/ +def whitenedComplexFamily (f : ι → E) (hf : LinearIndependent ℝ f) : + EuclideanSpace ℂ ι →ₗᵢ[ℂ] HilbertComplexification E := + (whitenedComplexFamilyMap f).toLinearMap.isometryOfInner (by + intro x y + change inner ℂ (whitenedComplexFamilyMap f x) (whitenedComplexFamilyMap f y) = + inner ℂ x y + rw [← (whitenedComplexFamilyMap f).adjoint_inner_right] + change inner ℂ x (((whitenedComplexFamilyMap f).adjoint.comp + (whitenedComplexFamilyMap f)) y) = inner ℂ x y + rw [whitenedComplexFamilyMap_gram f hf, one_apply_eq_self]) + +@[simp] theorem whitenedComplexFamily_toCLM (f : ι → E) (hf : LinearIndependent ℝ f) : + (whitenedComplexFamily f hf).toContinuousLinearMap = whitenedComplexFamilyMap f := rfl + +theorem compression_whitened_complexify (f : ι → E) (hf : LinearIndependent ℝ f) + (J : E →L[ℝ] E) : + compression (whitenedComplexFamily f hf) (complexify J) = + realMatrixOperator (relativeCovariancePerturbation (realFamilyGram f) + (realFamilyForm f J)) := by + have hV : (realFamilyGram f).PosDef := Matrix.posDef_gram_of_linearIndependent hf + rw [compression, whitenedComplexFamily_toCLM, whitenedComplexFamilyMap, + adjoint_comp, realMatrixOperator_adjoint, matrix_inverse_sqrt_transpose hV] + calc + _ = realMatrixOperator ((CFC.sqrt (realFamilyGram f))⁻¹) * + ((complexFamilySynthesis f).adjoint.comp ((complexify J).comp (complexFamilySynthesis f))) * + realMatrixOperator ((CFC.sqrt (realFamilyGram f))⁻¹) := by + simp only [mul_def, comp_assoc] + _ = _ := by + rw [complexFamilySynthesis_form, ← realMatrixOperator_mul, ← realMatrixOperator_mul] + rfl + +theorem compression_whitened_normalizedCommutation + (f : ι → E) (hf : LinearIndependent ℝ f) (J : E →L[ℝ] E) : + compression (whitenedComplexFamily f hf) (normalizedCommutation (complexify J)) = + (Matrix.toEuclideanCLM (n := ι) (𝕜 := ℂ)) (covarianceCommutationMatrix (realFamilyGram f) + (realFamilyForm f J)) := by + have hc : compression (whitenedComplexFamily f hf) (normalizedCommutation (complexify J)) = + (Complex.I / 2) • compression (whitenedComplexFamily f hf) (complexify J) := by + ext x + simp [compression, normalizedCommutation] + rw [hc, compression_whitened_complexify f hf J, covarianceCommutationMatrix, + map_smul] + rfl + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WilliamsonFinite.lean b/LeanPool/VacuumBellSeparation/Gaussian/WilliamsonFinite.lean new file mode 100644 index 0000000000..b9f49e393a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WilliamsonFinite.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.SkewOrthogonalCongruence + +/-! +# Actual finite-dimensional Williamson factorization + +For a positive definite real matrix `V` and a nonsingular real alternating +form `Ω`, form `B = (√V)⁻¹ Ω (√V)⁻¹`. The constructed orthogonal skew normal +form `B = O diag(λ) Ω_modes Oᵀ` gives `S = √V O diag(√λ)`. Direct matrix +identities prove `S Ω_modes Sᵀ = Ω` and `S diag(1/λ) Sᵀ = V`. A two-sided +inverse of `S` is constructed, including the zero-dimensional case. + +The differing finite index types are explicitly equicardinal; the result +is a genuine invertible change of coordinates, not a rectangular dilation. +No Gaussian unitary implementation or uncertainty lower bound is asserted. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {ι : Type*} [Fintype ι] [DecidableEq ι] + +/-- The real finite-dimensional Williamson theorem, with an actual +invertible symplectic factor and strictly positive symplectic eigenvalues. -/ +theorem exists_williamson_factorization (V Ω : Matrix ι ι ℝ) + (hV : V.PosDef) (hΩ : Ωᵀ = -Ω) (hΩunit : IsUnit Ω) : + ∃ (m : ℕ) (ν : Fin m → ℝ) + (S : Matrix ι (Fin m × Fin 2) ℝ) (T : Matrix (Fin m × Fin 2) ι ℝ), + Fintype.card ι = 2 * m ∧ (∀ i, 0 < ν i) ∧ + S * T = 1 ∧ T * S = 1 ∧ + S * (modeSymplecticForm (ι := Fin m)) * Sᵀ = Ω ∧ S * modeDiagonal ν * Sᵀ = V := by + classical + let C := CFC.sqrt V + have hCpos : 0 ≤ C := CFC.sqrt_nonneg V + have hCsym : Cᵀ = C := by + simpa only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial] + using hCpos.isSelfAdjoint.star_eq + have hCC : C * C = V := by + simpa only [pow_two] using CFC.sq_sqrt V hV.posSemidef.nonneg + have hCunit : IsUnit C := (CFC.isUnit_sqrt_iff V hV.posSemidef.nonneg).mpr hV.isUnit + have hCdet : IsUnit C.det := (Matrix.isUnit_iff_isUnit_det C).mp hCunit + have hCCi : C * C⁻¹ = 1 := C.mul_nonsing_inv hCdet + have hCiC : C⁻¹ * C = 1 := C.nonsing_inv_mul hCdet + have hCiunit : IsUnit C⁻¹ := Matrix.isUnit_nonsing_inv_iff.mpr hCunit + let B := C⁻¹ * Ω * C⁻¹ + have hBskew : Bᵀ = -B := by + simp only [B, Matrix.transpose_mul, Matrix.transpose_nonsing_inv, hCsym, + hΩ, Matrix.neg_mul, Matrix.mul_neg, Matrix.mul_assoc] + have hBunit : IsUnit B := (hCiunit.mul hΩunit).mul hCiunit + have hundo : C * B * C = Ω := by + simp only [B, ← Matrix.mul_assoc, hCCi, Matrix.one_mul] + rw [Matrix.mul_assoc, hCiC, Matrix.mul_one] + obtain ⟨m, μ, O, hμ, hOO, hOtO, hOB⟩ := exists_skew_orthogonal_congruence B hBskew hBunit + let R := modeDiagonal (fun i => Real.sqrt (μ i)) + let Ri := modeDiagonal (fun i => (Real.sqrt (μ i))⁻¹) + have hRRi : R * Ri = 1 := by + dsimp only [R, Ri] + rw [modeDiagonal_mul, ← modeDiagonal_one] + congr 1 + funext i + exact mul_inv_cancel₀ (Real.sqrt_pos.mpr (hμ i)).ne' + have hRiR : Ri * R = 1 := by + dsimp only [R, Ri] + rw [modeDiagonal_mul, ← modeDiagonal_one] + congr 1 + funext i + exact inv_mul_cancel₀ (Real.sqrt_pos.mpr (hμ i)).ne' + let S := C * O * R + let T := Ri * Oᵀ * C⁻¹ + have hcard : Fintype.card ι = 2 * m := by + have htr := Matrix.trace_mul_comm O Oᵀ + rw [hOO, hOtO] at htr + simp only [Matrix.trace_one, Fintype.card_prod, Fintype.card_fin] at htr + norm_cast at htr + omega + refine ⟨m, (fun i => (μ i)⁻¹), S, T, hcard, (fun i => inv_pos.mpr (hμ i)), + ?_, ?_, ?_, ?_⟩ + · calc + S * T = C * (O * (R * Ri) * Oᵀ) * C⁻¹ := by + simp only [S, T, Matrix.mul_assoc] + _ = 1 := by rw [hRRi, Matrix.mul_one, hOO, Matrix.mul_one, hCCi] + · calc + T * S = Ri * (Oᵀ * (C⁻¹ * C) * O) * R := by + simp only [S, T, Matrix.mul_assoc] + _ = 1 := by rw [hCiC, Matrix.mul_one, hOtO, Matrix.mul_one, hRiR] + · calc + S * (modeSymplecticForm (ι := Fin m)) * Sᵀ = + C * (O * (R * (modeSymplecticForm (ι := Fin m)) * R) * Oᵀ) * C := by + simp only [S, R, Matrix.transpose_mul, transpose_modeDiagonal, hCsym, + Matrix.mul_assoc] + _ = C * (O * (modeDiagonal μ * (modeSymplecticForm (ι := Fin m))) * Oᵀ) * C := by + rw [show R * (modeSymplecticForm (ι := Fin m)) * R = modeDiagonal μ * + (modeSymplecticForm (ι := Fin m)) + from modeSqrt_symplectic_congruence μ (fun i => (hμ i).le)] + _ = Ω := by rw [hOB, hundo] + · calc + S * modeDiagonal (fun i => (μ i)⁻¹) * Sᵀ = + C * (O * (R * modeDiagonal (fun i => (μ i)⁻¹) * R) * Oᵀ) * C := by + simp only [S, R, Matrix.transpose_mul, transpose_modeDiagonal, hCsym, + Matrix.mul_assoc] + _ = C * (O * Oᵀ) * C := by + rw [show R * modeDiagonal (fun i => (μ i)⁻¹) * R = 1 + from modeSqrt_reciprocal_congruence μ hμ, Matrix.mul_one] + _ = V := by rw [hOO, Matrix.mul_one, hCC] + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WilliamsonOneMode.lean b/LeanPool/VacuumBellSeparation/Gaussian/WilliamsonOneMode.lean new file mode 100644 index 0000000000..78e37a6dbd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WilliamsonOneMode.lean @@ -0,0 +1,102 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Matrix.Order +public import Mathlib.Tactic.Polynomial.Basic +public import Mathlib.Tactic.ReduceModChar + +/-! +# Constructive Williamson normal form for one real mode + +For a real positive-definite `2×2` covariance matrix `V`, set +`ν=√det(V)` and `S=(√ν)⁻¹ √V`, using the genuine matrix functional calculus. +The resulting matrix has determinant one, preserves the canonical +symplectic form, and satisfies `V=S (νI) Sᵀ`. This proves the real matrix +normal form in one mode, without assuming a symplectic diagonalization. +Oscillator unitary implementation and the multimode theorem are separate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +/-- One mode symplectic form. -/ +def oneModeSymplecticForm : Matrix (Fin 2) (Fin 2) ℝ := !![0, 1; -1, 0] + +/-- In two real dimensions the alternating form transforms by determinant. -/ +theorem matrix_two_symplectic_congruence (S : Matrix (Fin 2) (Fin 2) ℝ) : + S * oneModeSymplecticForm * Sᵀ = S.det • oneModeSymplecticForm := by + ext i j + fin_cases i <;> fin_cases j <;> + simp [oneModeSymplecticForm, Matrix.mul_apply, Fin.sum_univ_two, + Matrix.det_fin_two] <;> ring + +/-- One mode symplectic eigenvalue obtained from `Real.sqrt`. -/ +noncomputable def oneModeSymplecticEigenvalue (V : Matrix (Fin 2) (Fin 2) ℝ) : ℝ := + Real.sqrt V.det + +/-- One mode Williamson matrix. -/ +noncomputable def oneModeWilliamsonMatrix (V : Matrix (Fin 2) (Fin 2) ℝ) : + Matrix (Fin 2) (Fin 2) ℝ := + (Real.sqrt (oneModeSymplecticEigenvalue V))⁻¹ • CFC.sqrt V + +theorem oneModeSymplecticEigenvalue_pos {V : Matrix (Fin 2) (Fin 2) ℝ} + (hV : V.PosDef) : 0 < oneModeSymplecticEigenvalue V := + Real.sqrt_pos.mpr hV.det_pos + +theorem oneModeWilliamson_scale_sq {V : Matrix (Fin 2) (Fin 2) ℝ} + (hV : V.PosDef) : + (Real.sqrt (oneModeSymplecticEigenvalue V))⁻¹ * + (Real.sqrt (oneModeSymplecticEigenvalue V))⁻¹ * + oneModeSymplecticEigenvalue V = 1 := by + have hν := oneModeSymplecticEigenvalue_pos hV + rw [← mul_inv, Real.mul_self_sqrt hν.le, inv_mul_cancel₀ hν.ne'] + +theorem det_oneModeWilliamsonMatrix {V : Matrix (Fin 2) (Fin 2) ℝ} + (hV : V.PosDef) : (oneModeWilliamsonMatrix V).det = 1 := by + rw [oneModeWilliamsonMatrix, Matrix.det_smul, hV.posSemidef.det_sqrt, + RCLike.sqrt_real] + change (Real.sqrt (oneModeSymplecticEigenvalue V))⁻¹ ^ 2 * + oneModeSymplecticEigenvalue V = 1 + rw [pow_two, oneModeWilliamson_scale_sq hV] + +theorem oneModeWilliamsonMatrix_symplectic {V : Matrix (Fin 2) (Fin 2) ℝ} + (hV : V.PosDef) : + oneModeWilliamsonMatrix V * oneModeSymplecticForm * (oneModeWilliamsonMatrix V)ᵀ = + oneModeSymplecticForm := by + rw [matrix_two_symplectic_congruence, det_oneModeWilliamsonMatrix hV, one_smul] + +theorem oneModeWilliamsonMatrix_factorization {V : Matrix (Fin 2) (Fin 2) ℝ} + (hV : V.PosDef) : + oneModeWilliamsonMatrix V * (oneModeSymplecticEigenvalue V • 1) * + (oneModeWilliamsonMatrix V)ᵀ = V := by + have hroot : (CFC.sqrt V)ᵀ = CFC.sqrt V := by + simpa only [Matrix.star_eq_conjTranspose, Matrix.conjTranspose_eq_transpose_of_trivial] using + (CFC.sqrt_nonneg V).isSelfAdjoint.star_eq + have hscale := oneModeWilliamson_scale_sq hV + rw [oneModeWilliamsonMatrix, Matrix.transpose_smul, hroot] + simp only [Matrix.smul_mul, Matrix.mul_smul, Matrix.mul_one, smul_smul] + rw [← pow_two, CFC.sq_sqrt V hV.posSemidef.nonneg] + convert (one_smul ℝ V) using 1 + congr 1 + nlinarith [hscale] + +/-- Actual one-mode Williamson existence, with all normal-form identities +proved for the explicitly constructed matrix. -/ +theorem exists_oneModeWilliamson {V : Matrix (Fin 2) (Fin 2) ℝ} (hV : V.PosDef) : + ∃ ν : ℝ, 0 < ν ∧ ∃ S : Matrix (Fin 2) (Fin 2) ℝ, + S * oneModeSymplecticForm * Sᵀ = oneModeSymplecticForm ∧ + S * (ν • 1) * Sᵀ = V ∧ ν = Real.sqrt V.det := by + exact ⟨oneModeSymplecticEigenvalue V, oneModeSymplecticEigenvalue_pos hV, + oneModeWilliamsonMatrix V, oneModeWilliamsonMatrix_symplectic hV, + oneModeWilliamsonMatrix_factorization hV, rfl⟩ + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Gaussian/WilliamsonSandwichCovarianceDefs.lean b/LeanPool/VacuumBellSeparation/Gaussian/WilliamsonSandwichCovarianceDefs.lean new file mode 100644 index 0000000000..fbb1cd99bf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Gaussian/WilliamsonSandwichCovarianceDefs.lean @@ -0,0 +1,39 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PhysicalGaussianTransport +public import LeanPool.VacuumBellSeparation.Gaussian.UnitarySandwich +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianAppendixA + +/-! +# Literal statement construction extracted from Gaussian/GaussianWilliamsonSandwich + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation.Gaussian + +open Matrix +open scoped MatrixOrder Matrix.Norms.L2Operator + +variable {m : ℕ} + +/-- Williamson sandwich covariance. -/ +def williamsonSandwichCovariance (q : Fin m → ℝ) (τ : ℝ) + (V : Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ) : + Matrix (Fin m × Fin 2) (Fin m × Fin 2) ℝ := + let T := modeDiagonal (fun j => thermalQuadratureVariance (q j ^ τ)); + -T + CFC.sqrt (T ^ 2 - (1 / 4 : ℝ) • 1) * (T - V)⁻¹ * + CFC.sqrt (T ^ 2 - (1 / 4 : ℝ) • 1) + + +end VacuumBellSeparation.Gaussian diff --git a/LeanPool/VacuumBellSeparation/Imports.lean b/LeanPool/VacuumBellSeparation/Imports.lean new file mode 100644 index 0000000000..d8e0076b17 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Imports.lean @@ -0,0 +1,1022 @@ +/- +Copyright (c) 2026 Lean Pool contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Lean Pool contributors +-/ +module -- shake: keep-all --deprecated_module: ignore + +-- Generated project imports; run `lake exe mk_all`. +public import LeanPool.VacuumBellSeparation +public import LeanPool.VacuumBellSeparation.Bell.AmbientWeakStarBellSequence +public import LeanPool.VacuumBellSeparation.Bell.BicommutantFiniteApproximation +public import LeanPool.VacuumBellSeparation.Bell.BicommutantOrbit +public import LeanPool.VacuumBellSeparation.Bell.BicommutantSelfAdjoint +public import LeanPool.VacuumBellSeparation.Bell.BicommutantStrongDensity +public import LeanPool.VacuumBellSeparation.Bell.BipartiteNormalStateDefs +public import LeanPool.VacuumBellSeparation.Bell.BoundedWOTFunctionalContinuity +public import LeanPool.VacuumBellSeparation.Bell.Cells +public import LeanPool.VacuumBellSeparation.Bell.ClosedCyclicSpan +public import LeanPool.VacuumBellSeparation.Bell.ClosedSpectralThreshold +public import LeanPool.VacuumBellSeparation.Bell.CoefficientNormalStateSpace +public import LeanPool.VacuumBellSeparation.Bell.CoefficientPredual +public import LeanPool.VacuumBellSeparation.Bell.CoefficientPredualDuality +public import LeanPool.VacuumBellSeparation.Bell.CoefficientWeakStarHomeomorphism +public import LeanPool.VacuumBellSeparation.Bell.CoefficientWeakTopology +public import LeanPool.VacuumBellSeparation.Bell.CommutantVectorDomination +public import LeanPool.VacuumBellSeparation.Bell.CommutantVectorStateDensity +public import LeanPool.VacuumBellSeparation.Bell.CommutingEffects +public import LeanPool.VacuumBellSeparation.Bell.ConcreteWeakStarInclusion +public import LeanPool.VacuumBellSeparation.Bell.CornerProjectionFunctionalOrder +public import LeanPool.VacuumBellSeparation.Bell.CyclicGramEquivalence +public import LeanPool.VacuumBellSeparation.Bell.CyclicSpanRestriction +public import LeanPool.VacuumBellSeparation.Bell.Defs +public import LeanPool.VacuumBellSeparation.Bell.DensityPurification +public import LeanPool.VacuumBellSeparation.Bell.DirectedAlgebraUnion +public import LeanPool.VacuumBellSeparation.Bell.DistillationScaling +public import LeanPool.VacuumBellSeparation.Bell.DominatedNormalStateResidual +public import LeanPool.VacuumBellSeparation.Bell.DominatedStateResidual +public import LeanPool.VacuumBellSeparation.Bell.EffectResolventParameter +public import LeanPool.VacuumBellSeparation.Bell.EventConstantDefs +public import LeanPool.VacuumBellSeparation.Bell.EventConstantUpper +public import LeanPool.VacuumBellSeparation.Bell.EventConstants +public import LeanPool.VacuumBellSeparation.Bell.FaithfulDensityPurification +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalBellMaximality +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalDominatedDensity +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalGNSImage +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalGNSTransport +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalStateExistence +public import LeanPool.VacuumBellSeparation.Bell.FaithfulNormalUpperLimit +public import LeanPool.VacuumBellSeparation.Bell.FiniteAmplification +public import LeanPool.VacuumBellSeparation.Bell.FiniteCornerVectorCompression +public import LeanPool.VacuumBellSeparation.Bell.FiniteVectorDomination +public import LeanPool.VacuumBellSeparation.Bell.GNSCyclicRealization +public import LeanPool.VacuumBellSeparation.Bell.GNSDominatedCommutant +public import LeanPool.VacuumBellSeparation.Bell.GNSDominatedTransport +public import LeanPool.VacuumBellSeparation.Bell.GNSFaithfulRange +public import LeanPool.VacuumBellSeparation.Bell.GNSIsometricRealization +public import LeanPool.VacuumBellSeparation.Bell.GNSMatrixCoefficients +public import LeanPool.VacuumBellSeparation.Bell.GNSNormalDirectedSuprema +public import LeanPool.VacuumBellSeparation.Bell.GNSUnitVector +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationCompatibility +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationContinuity +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationConvex +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationDefs +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationOpen +public import LeanPool.VacuumBellSeparation.Bell.GenericBellCorrelationSpecifications +public import LeanPool.VacuumBellSeparation.Bell.HilbertAmplification +public import LeanPool.VacuumBellSeparation.Bell.HilbertAmplificationCommutant +public import LeanPool.VacuumBellSeparation.Bell.HilbertAmplificationFaithful +public import LeanPool.VacuumBellSeparation.Bell.HilbertAmplificationOrder +public import LeanPool.VacuumBellSeparation.Bell.HilbertSumVectorDomination +public import LeanPool.VacuumBellSeparation.Bell.KaplanskyContractions +public import LeanPool.VacuumBellSeparation.Bell.KaplanskyEffects +public import LeanPool.VacuumBellSeparation.Bell.LocalState +public import LeanPool.VacuumBellSeparation.Bell.LocalStateDefs +public import LeanPool.VacuumBellSeparation.Bell.MaximalBellClosure +public import LeanPool.VacuumBellSeparation.Bell.MonotoneThresholdIntegral +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalDominatedCorner +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalDomination +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalFiniteVectorApproximation +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalStarEquiv +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalVectorCorner +public import LeanPool.VacuumBellSeparation.Bell.NormalFunctionalVectorCornerCover +public import LeanPool.VacuumBellSeparation.Bell.NormalGNSBoundedWOT +public import LeanPool.VacuumBellSeparation.Bell.NormalPositiveConeClosure +public import LeanPool.VacuumBellSeparation.Bell.NormalStateCompression +public import LeanPool.VacuumBellSeparation.Bell.NormalStateDominatedNormalization +public import LeanPool.VacuumBellSeparation.Bell.NormalStateMarginals +public import LeanPool.VacuumBellSeparation.Bell.NormalStateMixtures +public import LeanPool.VacuumBellSeparation.Bell.NormalStateWeakConvergence +public import LeanPool.VacuumBellSeparation.Bell.NormalityBoundedWOTEquivalence +public import LeanPool.VacuumBellSeparation.Bell.OneDistillabilityDefs +public import LeanPool.VacuumBellSeparation.Bell.OperationalReehSchliederDefs +public import LeanPool.VacuumBellSeparation.Bell.OrthogonalProjectionStrongZero +public import LeanPool.VacuumBellSeparation.Bell.OrthogonalProjectionSupremum +public import LeanPool.VacuumBellSeparation.Bell.OscillatorWeylCommutant +public import LeanPool.VacuumBellSeparation.Bell.PhysicalOscillatorCoordinates +public import LeanPool.VacuumBellSeparation.Bell.PhysicalPurification +public import LeanPool.VacuumBellSeparation.Bell.PositiveFunctionalCompressionApproximation +public import LeanPool.VacuumBellSeparation.Bell.PositiveStateCompression +public import LeanPool.VacuumBellSeparation.Bell.ProbabilityCriterion +public import LeanPool.VacuumBellSeparation.Bell.ProjectionFunctionalOrder +public import LeanPool.VacuumBellSeparation.Bell.ProjectiveCyclicEquivalence +public import LeanPool.VacuumBellSeparation.Bell.ProperIsometryMatrixUnits +public import LeanPool.VacuumBellSeparation.Bell.PurifiedWeylCyclicity +public import LeanPool.VacuumBellSeparation.Bell.RangeProjection +public import LeanPool.VacuumBellSeparation.Bell.RationalResolvent +public import LeanPool.VacuumBellSeparation.Bell.RationalResolventStrong +public import LeanPool.VacuumBellSeparation.Bell.ReducingCompression +public import LeanPool.VacuumBellSeparation.Bell.ReflectionApprox +public import LeanPool.VacuumBellSeparation.Bell.ReflectionReduction +public import LeanPool.VacuumBellSeparation.Bell.Reflections +public import LeanPool.VacuumBellSeparation.Bell.RepresentedVectorBellMaximality +public import LeanPool.VacuumBellSeparation.Bell.SW88MaximalCorrelationEquivalence +public import LeanPool.VacuumBellSeparation.Bell.SeparatingCommutantCyclic +public import LeanPool.VacuumBellSeparation.Bell.SeparatingVectorDominatedDensity +public import LeanPool.VacuumBellSeparation.Bell.SignedBellCorrelation +public import LeanPool.VacuumBellSeparation.Bell.SignedBellCorrelationDefs +public import LeanPool.VacuumBellSeparation.Bell.SpectralReflectionQuadraticIntegral +public import LeanPool.VacuumBellSeparation.Bell.SpectralThreshold +public import LeanPool.VacuumBellSeparation.Bell.StateBound +public import LeanPool.VacuumBellSeparation.Bell.StateExtension +public import LeanPool.VacuumBellSeparation.Bell.StateRestriction +public import LeanPool.VacuumBellSeparation.Bell.StrongApproximationNets +public import LeanPool.VacuumBellSeparation.Bell.StrongClosure +public import LeanPool.VacuumBellSeparation.Bell.StrongExpectationLimits +public import LeanPool.VacuumBellSeparation.Bell.Theorem31 +public import LeanPool.VacuumBellSeparation.Bell.TsirelsonBound +public import LeanPool.VacuumBellSeparation.Bell.UniversalNormalBellSequence +public import LeanPool.VacuumBellSeparation.Bell.UniversalWeakStarBellSequence +public import LeanPool.VacuumBellSeparation.Bell.VNAWeakOperatorCompactness +public import LeanPool.VacuumBellSeparation.Bell.VectorFunctionalNormal +public import LeanPool.VacuumBellSeparation.Bell.VectorStateApproximation +public import LeanPool.VacuumBellSeparation.Bell.WOTClosedBallVNA +public import LeanPool.VacuumBellSeparation.Bell.WeakCompactDualEvaluation +public import LeanPool.VacuumBellSeparation.Bell.WeakOperatorUnitBall +public import LeanPool.VacuumBellSeparation.Constants.ParameterDefs +public import LeanPool.VacuumBellSeparation.Constants.Parameters +public import LeanPool.VacuumBellSeparation.Constants.Series +public import LeanPool.VacuumBellSeparation.Fock.ExponentialTotality +public import LeanPool.VacuumBellSeparation.Fock.PhysicalTestTotality +public import LeanPool.VacuumBellSeparation.Fock.RealExponentialCoefficients +public import LeanPool.VacuumBellSeparation.Fock.RealLinearCoherentTotality +public import LeanPool.VacuumBellSeparation.Fock.RealMultilinearDiagonal +public import LeanPool.VacuumBellSeparation.Fock.StandardTensorTotality +public import LeanPool.VacuumBellSeparation.Fock.SymmetricFockSpace +public import LeanPool.VacuumBellSeparation.Fock.SymmetricMultilinearDiagonal +public import LeanPool.VacuumBellSeparation.Fock.SymmetricTensorTotality +public import LeanPool.VacuumBellSeparation.Fock.TensorPermutations +public import LeanPool.VacuumBellSeparation.Fock.TensorPowerHilbert +public import LeanPool.VacuumBellSeparation.Fock.WeylFockEquivalence +public import LeanPool.VacuumBellSeparation.FreeField.AnalyticOddOrder +public import LeanPool.VacuumBellSeparation.FreeField.AntilinearGraphAdjoint +public import LeanPool.VacuumBellSeparation.FreeField.AntilinearGraphTransport +public import LeanPool.VacuumBellSeparation.FreeField.AveragedWedgeContour +public import LeanPool.VacuumBellSeparation.FreeField.AveragedWedgeContourAE +public import LeanPool.VacuumBellSeparation.FreeField.BoundedL2Multiplier +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioGraph +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioOperator +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioResolvent +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioSquare +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioSum +public import LeanPool.VacuumBellSeparation.FreeField.BoundedRatioTotal +public import LeanPool.VacuumBellSeparation.FreeField.BoundedStripUniqueness +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalContractionExhaustion +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalEffectExhaustion +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceAlgebra +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceDirected +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceHull +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourcePair +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalSourceSystemDefs +public import LeanPool.VacuumBellSeparation.FreeField.CanonicalUnionStarAlgebra +public import LeanPool.VacuumBellSeparation.FreeField.CauchyEvolutionDefs +public import LeanPool.VacuumBellSeparation.FreeField.CauchyEvolutionL2 +public import LeanPool.VacuumBellSeparation.FreeField.CauchyFinitePropagation +public import LeanPool.VacuumBellSeparation.FreeField.CauchyPointwiseEquation +public import LeanPool.VacuumBellSeparation.FreeField.CauchyReality +public import LeanPool.VacuumBellSeparation.FreeField.CauchySpatialDerivatives +public import LeanPool.VacuumBellSeparation.FreeField.CauchySpatialTest +public import LeanPool.VacuumBellSeparation.FreeField.CauchyVelocitySupport +public import LeanPool.VacuumBellSeparation.FreeField.CenteredWeightedSourceMoments +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionBounds +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionCoefficients +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionCutoff +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionEntire +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionFourier +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionFourierDefs +public import LeanPool.VacuumBellSeparation.FreeField.CompactDistributionFourierSliceDefs +public import LeanPool.VacuumBellSeparation.FreeField.CompactLaplace +public import LeanPool.VacuumBellSeparation.FreeField.CompactParameterContinuity +public import LeanPool.VacuumBellSeparation.FreeField.CompletedComplexInjectivity +public import LeanPool.VacuumBellSeparation.FreeField.ComplexLorentzForm +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSource +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceContinuity +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceCurve +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceDefs +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceDistributions +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceFourierComponents +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceMomentFunctional +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceWave +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceWaveFunctional +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSpacetime +public import LeanPool.VacuumBellSeparation.FreeField.ComplexTestInjectivity +public import LeanPool.VacuumBellSeparation.FreeField.ComplexTestWedgeContour +public import LeanPool.VacuumBellSeparation.FreeField.ContinuousDistributionSeparation +public import LeanPool.VacuumBellSeparation.FreeField.Corollary +public import LeanPool.VacuumBellSeparation.FreeField.CutoffFourierIntegrability +public import LeanPool.VacuumBellSeparation.FreeField.CutoffFourierIntegral +public import LeanPool.VacuumBellSeparation.FreeField.CutoffFourierKernel +public import LeanPool.VacuumBellSeparation.FreeField.DampedShellMoments +public import LeanPool.VacuumBellSeparation.FreeField.DampedSpatialAnalytic +public import LeanPool.VacuumBellSeparation.FreeField.DampedSpatialFourier +public import LeanPool.VacuumBellSeparation.FreeField.DampedSpatialKernel +public import LeanPool.VacuumBellSeparation.FreeField.DampedSpatialUnique +public import LeanPool.VacuumBellSeparation.FreeField.Decay +public import LeanPool.VacuumBellSeparation.FreeField.Defs +public import LeanPool.VacuumBellSeparation.FreeField.DenseRangeFactorization +public import LeanPool.VacuumBellSeparation.FreeField.DilatedVacuumConstruction +public import LeanPool.VacuumBellSeparation.FreeField.Dilation +public import LeanPool.VacuumBellSeparation.FreeField.DistributionFourierNormalization +public import LeanPool.VacuumBellSeparation.FreeField.DistributionScalingMultiplier +public import LeanPool.VacuumBellSeparation.FreeField.EuclideanSpacetimeComposition +public import LeanPool.VacuumBellSeparation.FreeField.EuclideanWedgeContainment +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionGenerator +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionL2Derivative +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionMassShellMeasure +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionPointwiseDerivative +public import LeanPool.VacuumBellSeparation.FreeField.EvolutionSpacetimeSmooth +public import LeanPool.VacuumBellSeparation.FreeField.EvolvedSpacetimeSlices +public import LeanPool.VacuumBellSeparation.FreeField.Existence +public import LeanPool.VacuumBellSeparation.FreeField.ExponentialMultiplication +public import LeanPool.VacuumBellSeparation.FreeField.ExponentialMultiplicationPositive +public import LeanPool.VacuumBellSeparation.FreeField.ExponentialResolventCalculus +public import LeanPool.VacuumBellSeparation.FreeField.FiniteCanonicalCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.FiniteForwardRenyiEnvelope +public import LeanPool.VacuumBellSeparation.FreeField.FiniteForwardSpatialBound +public import LeanPool.VacuumBellSeparation.FreeField.FiniteGaussianCyclicModel +public import LeanPool.VacuumBellSeparation.FreeField.FiniteGaussianObservables +public import LeanPool.VacuumBellSeparation.FreeField.FiniteGaussianPairModel +public import LeanPool.VacuumBellSeparation.FreeField.FiniteObservableCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.FiniteObservableExtraction +public import LeanPool.VacuumBellSeparation.FreeField.FinitePairForwardNormalization +public import LeanPool.VacuumBellSeparation.FreeField.FinitePairSourceCompression +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalEventBounds +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalForwardSpatial +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalGaussianEstimates +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalRenyiEffects +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalReverseNormalization +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalReverseRenyi +public import LeanPool.VacuumBellSeparation.FreeField.FinitePhysicalReverseSpatial +public import LeanPool.VacuumBellSeparation.FreeField.FiniteProductSourceCompression +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourceComplex +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourceCompressionBridge +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourceModes +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourcePairCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.FiniteSourceSpace +public import LeanPool.VacuumBellSeparation.FreeField.FiniteWeylCyclicity +public import LeanPool.VacuumBellSeparation.FreeField.ForwardTimeSliceClosure +public import LeanPool.VacuumBellSeparation.FreeField.GaussianBoostFourier +public import LeanPool.VacuumBellSeparation.FreeField.GaussianRapidityRegularization +public import LeanPool.VacuumBellSeparation.FreeField.InjectiveSourceTomita +public import LeanPool.VacuumBellSeparation.FreeField.Isotony +public import LeanPool.VacuumBellSeparation.FreeField.IteratedDerivativeIntegral +public import LeanPool.VacuumBellSeparation.FreeField.JointCenteredPolynomialMoments +public import LeanPool.VacuumBellSeparation.FreeField.JointDifferenceComponentPairing +public import LeanPool.VacuumBellSeparation.FreeField.JointDifferenceCovariance +public import LeanPool.VacuumBellSeparation.FreeField.JointDifferenceOperator +public import LeanPool.VacuumBellSeparation.FreeField.JointDifferenceOperatorDefs +public import LeanPool.VacuumBellSeparation.FreeField.JointDispersionComparison +public import LeanPool.VacuumBellSeparation.FreeField.JointFiniteCovarianceCompression +public import LeanPool.VacuumBellSeparation.FreeField.JointFiniteSourceDecomposition +public import LeanPool.VacuumBellSeparation.FreeField.JointFourierSupportBound +public import LeanPool.VacuumBellSeparation.FreeField.JointKernelAnalytic +public import LeanPool.VacuumBellSeparation.FreeField.JointKernelOperatorLinearity +public import LeanPool.VacuumBellSeparation.FreeField.JointLowFrequency +public import LeanPool.VacuumBellSeparation.FreeField.JointMidpointRegionMoments +public import LeanPool.VacuumBellSeparation.FreeField.JointNormalizedKernels +public import LeanPool.VacuumBellSeparation.FreeField.JointNormalizedMomentVectors +public import LeanPool.VacuumBellSeparation.FreeField.JointPhysicalCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.JointPhysicalKernelRestriction +public import LeanPool.VacuumBellSeparation.FreeField.JointPhysicalPolynomialError +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialCombinedRange +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialComplexification +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialEnvelope +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialErrorOperators +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialFormRank +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialIncrementNorm +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialIncrementNuclear +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialIncrementRankDefs +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialIncrementSeries +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialKernelMoments +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialMidpointForm +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialMomentRange +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialOperatorIdentification +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialPatchDifference +public import LeanPool.VacuumBellSeparation.FreeField.JointPolynomialSelfAdjoint +public import LeanPool.VacuumBellSeparation.FreeField.JointRealCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.JointRealPolynomialError +public import LeanPool.VacuumBellSeparation.FreeField.JointRegionMomentFamily +public import LeanPool.VacuumBellSeparation.FreeField.JointReverseEnvelope +public import LeanPool.VacuumBellSeparation.FreeField.JointReverseRatio +public import LeanPool.VacuumBellSeparation.FreeField.JointReverseReserveFactor +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelCauchySchwarz +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelComponentForm +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelCutoff +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelEnergyBound +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelForms +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelFourPatches +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelLocalBound +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelLocalCutoff +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelOriginalForm +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelPatchPartition +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelPlancherel +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelProduct +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelSourceOperator +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelSourceWeights +public import LeanPool.VacuumBellSeparation.FreeField.JointSmoothKernelUniformBound +public import LeanPool.VacuumBellSeparation.FreeField.JointSymmetricPolynomialOperator +public import LeanPool.VacuumBellSeparation.FreeField.JointSymmetricPolynomialPairing +public import LeanPool.VacuumBellSeparation.FreeField.JointWeightedIncrement +public import LeanPool.VacuumBellSeparation.FreeField.JointWeightedPolynomialBounds +public import LeanPool.VacuumBellSeparation.FreeField.JointWeightedPolynomialEnvelope +public import LeanPool.VacuumBellSeparation.FreeField.JointWeightedPolynomialFactor +public import LeanPool.VacuumBellSeparation.FreeField.JointWeightedPolynomialGrowth +public import LeanPool.VacuumBellSeparation.FreeField.L2BoundedExponential +public import LeanPool.VacuumBellSeparation.FreeField.L2DominatedDifferentiation +public import LeanPool.VacuumBellSeparation.FreeField.LiteralFockVacuum +public import LeanPool.VacuumBellSeparation.FreeField.LiteralFockVacuumConstruction +public import LeanPool.VacuumBellSeparation.FreeField.LiteralFockVacuumDefs +public import LeanPool.VacuumBellSeparation.FreeField.LiteralFockVacuumNorm +public import LeanPool.VacuumBellSeparation.FreeField.LocalAlgebraNonabelian +public import LeanPool.VacuumBellSeparation.FreeField.LocalAnnihilatorLaplace +public import LeanPool.VacuumBellSeparation.FreeField.LocalComplexAnnihilator +public import LeanPool.VacuumBellSeparation.FreeField.LocalComplexDensity +public import LeanPool.VacuumBellSeparation.FreeField.LocalSourceTotality +public import LeanPool.VacuumBellSeparation.FreeField.LocalVacuumCyclicity +public import LeanPool.VacuumBellSeparation.FreeField.Lorentz +public import LeanPool.VacuumBellSeparation.FreeField.LorentzContainingWedge +public import LeanPool.VacuumBellSeparation.FreeField.LorentzDecomposition +public import LeanPool.VacuumBellSeparation.FreeField.LorentzEuclideanBound +public import LeanPool.VacuumBellSeparation.FreeField.LorentzMap +public import LeanPool.VacuumBellSeparation.FreeField.LorentzShellAction +public import LeanPool.VacuumBellSeparation.FreeField.LorentzSourceWave +public import LeanPool.VacuumBellSeparation.FreeField.LorentzWedgeContour +public import LeanPool.VacuumBellSeparation.FreeField.LpContinuousFunctionalCalculus +public import LeanPool.VacuumBellSeparation.FreeField.LpMultiplication +public import LeanPool.VacuumBellSeparation.FreeField.LpUnitModulus +public import LeanPool.VacuumBellSeparation.FreeField.Main +public import LeanPool.VacuumBellSeparation.FreeField.MainReduction +public import LeanPool.VacuumBellSeparation.FreeField.MainTheorems +public import LeanPool.VacuumBellSeparation.FreeField.MassShellDistribution +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Algebra +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Decay +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Edges +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Phase +public import LeanPool.VacuumBellSeparation.FreeField.Microcausality.Strip +public import LeanPool.VacuumBellSeparation.FreeField.ModularWeightCompression +public import LeanPool.VacuumBellSeparation.FreeField.ModularWeightInclusion +public import LeanPool.VacuumBellSeparation.FreeField.ModularWeightNorm +public import LeanPool.VacuumBellSeparation.FreeField.OQP12 +public import LeanPool.VacuumBellSeparation.FreeField.OneParticle +public import LeanPool.VacuumBellSeparation.FreeField.OneParticleBoostContinuity +public import LeanPool.VacuumBellSeparation.FreeField.OneParticleLorentz +public import LeanPool.VacuumBellSeparation.FreeField.OneParticleTimeSlice +public import LeanPool.VacuumBellSeparation.FreeField.OpenVacuumCyclicity +public import LeanPool.VacuumBellSeparation.FreeField.PartialOperatorComposition +public import LeanPool.VacuumBellSeparation.FreeField.PhysicalModularPowers +public import LeanPool.VacuumBellSeparation.FreeField.PhysicalRapidityExponential +public import LeanPool.VacuumBellSeparation.FreeField.PlanarEnergyFlux +public import LeanPool.VacuumBellSeparation.FreeField.PlanarEnergyIdentity +public import LeanPool.VacuumBellSeparation.FreeField.PlanarEnergyIntegrationByParts +public import LeanPool.VacuumBellSeparation.FreeField.PlanarEnergyWeight +public import LeanPool.VacuumBellSeparation.FreeField.PlanarWeightedL2 +public import LeanPool.VacuumBellSeparation.FreeField.PlanarWeightedPairing +public import LeanPool.VacuumBellSeparation.FreeField.PolarUnitary +public import LeanPool.VacuumBellSeparation.FreeField.PositiveContractionPowers +public import LeanPool.VacuumBellSeparation.FreeField.PositiveEnergyLaplace +public import LeanPool.VacuumBellSeparation.FreeField.PositiveEnergyPhase +public import LeanPool.VacuumBellSeparation.FreeField.PositiveEnergySpatialAmplitude +public import LeanPool.VacuumBellSeparation.FreeField.PositiveOperatorPowers +public import LeanPool.VacuumBellSeparation.FreeField.ProductSourceCovariancePerturbation +public import LeanPool.VacuumBellSeparation.FreeField.ProductSourceNuclearSeries +public import LeanPool.VacuumBellSeparation.FreeField.ProductSourceReserveTransport +public import LeanPool.VacuumBellSeparation.FreeField.RapidityBoostFourier +public import LeanPool.VacuumBellSeparation.FreeField.RapidityCoordinates +public import LeanPool.VacuumBellSeparation.FreeField.RapidityFourier +public import LeanPool.VacuumBellSeparation.FreeField.RapidityFrequencyCutoff +public import LeanPool.VacuumBellSeparation.FreeField.RapidityHilbertTransport +public import LeanPool.VacuumBellSeparation.FreeField.RapidityJacobian +public import LeanPool.VacuumBellSeparation.FreeField.RapidityTranslation +public import LeanPool.VacuumBellSeparation.FreeField.RatioRegularizerIndependence +public import LeanPool.VacuumBellSeparation.FreeField.RealCommutation +public import LeanPool.VacuumBellSeparation.FreeField.RegionalBallSeparation +public import LeanPool.VacuumBellSeparation.FreeField.RegionalEventExtension +public import LeanPool.VacuumBellSeparation.FreeField.RegionalForwardContractions +public import LeanPool.VacuumBellSeparation.FreeField.RegionalForwardDoubleCones +public import LeanPool.VacuumBellSeparation.FreeField.RegionalForwardExactConstant +public import LeanPool.VacuumBellSeparation.FreeField.RegionalForwardSpatial +public import LeanPool.VacuumBellSeparation.FreeField.RegionalGaussianBounds +public import LeanPool.VacuumBellSeparation.FreeField.RegionalReverseDoubleCones +public import LeanPool.VacuumBellSeparation.FreeField.RegionalReverseSpatial +public import LeanPool.VacuumBellSeparation.FreeField.ResolventPowerBounded +public import LeanPool.VacuumBellSeparation.FreeField.ResolventPowerFunction +public import LeanPool.VacuumBellSeparation.FreeField.ScalarFourierInjectivity +public import LeanPool.VacuumBellSeparation.FreeField.ScalarSpatialFourier +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzBanachFactorization +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzEvolution +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzEvolutionDefs +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzKleinGordon +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzL2Differentiation +public import LeanPool.VacuumBellSeparation.FreeField.SchwartzSeries +public import LeanPool.VacuumBellSeparation.FreeField.Section8EstimatesProof +public import LeanPool.VacuumBellSeparation.FreeField.ShellBoostMeasure +public import LeanPool.VacuumBellSeparation.FreeField.ShiftedWedgeContour +public import LeanPool.VacuumBellSeparation.FreeField.ShiftedWedgeModularGraph +public import LeanPool.VacuumBellSeparation.FreeField.ShiftedWedgeModularPowers +public import LeanPool.VacuumBellSeparation.FreeField.SourceComplementStandardness +public import LeanPool.VacuumBellSeparation.FreeField.SourceComponents +public import LeanPool.VacuumBellSeparation.FreeField.SourceConjugateRoots +public import LeanPool.VacuumBellSeparation.FreeField.SourceCrossSeriesReconstruction +public import LeanPool.VacuumBellSeparation.FreeField.SourceDistributionReality +public import LeanPool.VacuumBellSeparation.FreeField.SourceDistributionReconstruction +public import LeanPool.VacuumBellSeparation.FreeField.SourceDistributions +public import LeanPool.VacuumBellSeparation.FreeField.SourceEmbeddingConstruction +public import LeanPool.VacuumBellSeparation.FreeField.SourceGramStrictness +public import LeanPool.VacuumBellSeparation.FreeField.SourceInclusion +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularHalfPower +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularOperator +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularPowers +public import LeanPool.VacuumBellSeparation.FreeField.SourceModularResolvent +public import LeanPool.VacuumBellSeparation.FreeField.SourcePhysicalResolvent +public import LeanPool.VacuumBellSeparation.FreeField.SourcePolarUnitary +public import LeanPool.VacuumBellSeparation.FreeField.SourcePolarUnitaryDefs +public import LeanPool.VacuumBellSeparation.FreeField.SourcePowerRangeWitness +public import LeanPool.VacuumBellSeparation.FreeField.SourceRangeIsometry +public import LeanPool.VacuumBellSeparation.FreeField.SourceReserve +public import LeanPool.VacuumBellSeparation.FreeField.SourceReserveDefs +public import LeanPool.VacuumBellSeparation.FreeField.SourceReserveFactorization +public import LeanPool.VacuumBellSeparation.FreeField.SourceSpace +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomita +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomitaAdjoint +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomitaPolar +public import LeanPool.VacuumBellSeparation.FreeField.SourceTomitaTestCore +public import LeanPool.VacuumBellSeparation.FreeField.SourceTranslation +public import LeanPool.VacuumBellSeparation.FreeField.SourceTranslationEquivalence +public import LeanPool.VacuumBellSeparation.FreeField.SourceUnitaryRangeEquivalence +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimePartialFourier +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeSlicePairing +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeSlicePairingIntegrability +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeSliceSquareIntegrability +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeSlices +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeSpatialTranslation +public import LeanPool.VacuumBellSeparation.FreeField.SpacetimeTestTranslation +public import LeanPool.VacuumBellSeparation.FreeField.SpatialBesselMomentExpansion +public import LeanPool.VacuumBellSeparation.FreeField.SpatialCovarianceMomentExpansion +public import LeanPool.VacuumBellSeparation.FreeField.SpatialCrossCoefficientBounds +public import LeanPool.VacuumBellSeparation.FreeField.SpatialCrossMomentIndex +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFieldCovarianceKernel +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFieldCovarianceKernelDefs +public import LeanPool.VacuumBellSeparation.FreeField.SpatialForwardDecay +public import LeanPool.VacuumBellSeparation.FreeField.SpatialForwardReserveFactor +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFourier +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFourierMomentCoefficients +public import LeanPool.VacuumBellSeparation.FreeField.SpatialFourierSlice +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatBoundary +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatConvolution +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatFourierFubini +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatFourierKernel +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatIntegrationByParts +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatSeparatedIntegrability +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatSubordination +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatTimeDerivative +public import LeanPool.VacuumBellSeparation.FreeField.SpatialHeatTimeIntegrability +public import LeanPool.VacuumBellSeparation.FreeField.SpatialKernelMomentSeries +public import LeanPool.VacuumBellSeparation.FreeField.SpatialKernelTaylorReal +public import LeanPool.VacuumBellSeparation.FreeField.SpatialKernelTranslation +public import LeanPool.VacuumBellSeparation.FreeField.SpatialLocalizedMomentSeries +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMassShellBound +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMomentumCovarianceKernel +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMomentumCovarianceKernelDefs +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMomentumHeatIdentity +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMomentumHeatKernel +public import LeanPool.VacuumBellSeparation.FreeField.SpatialMomentumHeatSubordination +public import LeanPool.VacuumBellSeparation.FreeField.SpatialRealMomentSeries +public import LeanPool.VacuumBellSeparation.FreeField.SpatialSeparatedCovarianceKernel +public import LeanPool.VacuumBellSeparation.FreeField.SpatialSourceReserveEstimate +public import LeanPool.VacuumBellSeparation.FreeField.SpatialSourceReserveFactor +public import LeanPool.VacuumBellSeparation.FreeField.SpatialTestMoments +public import LeanPool.VacuumBellSeparation.FreeField.SpatialTestParametricIntegral +public import LeanPool.VacuumBellSeparation.FreeField.SpatialTestTranslation +public import LeanPool.VacuumBellSeparation.FreeField.StandardSourceSpace +public import LeanPool.VacuumBellSeparation.FreeField.Statements +public import LeanPool.VacuumBellSeparation.FreeField.StrongContinuity +public import LeanPool.VacuumBellSeparation.FreeField.StrongProductDerivative +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceBall +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceCutoff +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceOscillator +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceRecovery +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceSource +public import LeanPool.VacuumBellSeparation.FreeField.TimeSliceTheorem +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroAlgebra +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroCovarianceDilation +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDefs +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDilation +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroDilationDefs +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroGram +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroInner +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroL2 +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroNonabelian +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroNondegenerate +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroRapidityWave +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroSourceLocality +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroSymplecticAlgebra +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroSymplecticNondegenerate +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroToSpacetime +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroVacuumCyclicity +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroWedgeContour +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroWeyl +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroWeylDefs +public import LeanPool.VacuumBellSeparation.FreeField.TimeZeroWeylRelations +public import LeanPool.VacuumBellSeparation.FreeField.TranslatedVacuum +public import LeanPool.VacuumBellSeparation.FreeField.Uniqueness +public import LeanPool.VacuumBellSeparation.FreeField.UnitaryPartialAdjoint +public import LeanPool.VacuumBellSeparation.FreeField.UnitaryPartialTransport +public import LeanPool.VacuumBellSeparation.FreeField.UnitaryResolventPowers +public import LeanPool.VacuumBellSeparation.FreeField.UnweightedMomentumDistribution +public import LeanPool.VacuumBellSeparation.FreeField.UpperHalfPlaneUniqueness +public import LeanPool.VacuumBellSeparation.FreeField.VacuumComplexCovarianceDefs +public import LeanPool.VacuumBellSeparation.FreeField.WedgeCompactExhaustion +public import LeanPool.VacuumBellSeparation.FreeField.WedgeFractionalWave +public import LeanPool.VacuumBellSeparation.FreeField.WedgeGaussianAverage +public import LeanPool.VacuumBellSeparation.FreeField.WedgeGeometry +public import LeanPool.VacuumBellSeparation.FreeField.WedgeModularGraph +public import LeanPool.VacuumBellSeparation.FreeField.WedgeModularInclusion +public import LeanPool.VacuumBellSeparation.FreeField.WedgeModularPowers +public import LeanPool.VacuumBellSeparation.FreeField.WedgePhysicalResolvent +public import LeanPool.VacuumBellSeparation.FreeField.WedgePolarResolvent +public import LeanPool.VacuumBellSeparation.FreeField.WedgeReflection +public import LeanPool.VacuumBellSeparation.FreeField.WedgeReflectionBoost +public import LeanPool.VacuumBellSeparation.FreeField.WedgeSourceStandardness +public import LeanPool.VacuumBellSeparation.FreeField.WedgeSpacetimeTomitaCore +public import LeanPool.VacuumBellSeparation.FreeField.WedgeTimeSlice +public import LeanPool.VacuumBellSeparation.FreeField.WedgeTomitaMultiplierEquality +public import LeanPool.VacuumBellSeparation.FreeField.WedgeTomitaMultiplierInclusion +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWave +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveContinuity +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveEntire +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveHolomorphic +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveL2 +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveMultiplierDomain +public import LeanPool.VacuumBellSeparation.FreeField.WedgeWaveStripBound +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluation +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationContourAE +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationContourNorm +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationCutoff +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationDiscs +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationHolomorphic +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationMassScaling +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationMeasure +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationRegular +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationScaling +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationSubmean +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceEnergyChoice +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceEntireGrowth +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceFourierBounds +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceMomentBounds +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceMomentVectors +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceMomentsFactorization +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceMomentsTestExtension +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceReserveWave +public import LeanPool.VacuumBellSeparation.FreeField.WeightedSourceWaveExtension +public import LeanPool.VacuumBellSeparation.FreeField.WithinIntegralDerivative +public import LeanPool.VacuumBellSeparation.Gaussian.BargmannBlockCoordinates +public import LeanPool.VacuumBellSeparation.Gaussian.BargmannCoordinates +public import LeanPool.VacuumBellSeparation.Gaussian.BargmannL2 +public import LeanPool.VacuumBellSeparation.Gaussian.BargmannPointwise +public import LeanPool.VacuumBellSeparation.Gaussian.CanonicalThermalModel +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentCoordinates +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentFrameFourier +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentGaussianComplexLinear +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentGaussianMoments +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentMatrixFourier +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentResolution +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentRotationAveraging +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentTotality +public import LeanPool.VacuumBellSeparation.Gaussian.CoherentTraceSeries +public import LeanPool.VacuumBellSeparation.Gaussian.CommutingAppendixA +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPolydiscCoefficientIntegral +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPositiveEigenbasis +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPositivePowers +public import LeanPool.VacuumBellSeparation.Gaussian.CompactPowerIntertwining +public import LeanPool.VacuumBellSeparation.Gaussian.CompactTraceNorm +public import LeanPool.VacuumBellSeparation.Gaussian.ComplementaryGramPartition +public import LeanPool.VacuumBellSeparation.Gaussian.ComplementaryGramPowers +public import LeanPool.VacuumBellSeparation.Gaussian.ComplementaryLabelCovariance +public import LeanPool.VacuumBellSeparation.Gaussian.CompletionOperatorDetermination +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexConjugation +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexGaussianBilinear +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexGaussianPhase +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixFunctionalCalculus +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixGaussianIntegral +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixInverseOrder +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixPositivity +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexificationDenseExt +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexifiedFunctional +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexifiedHilbertProduct +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexifiedOperator +public import LeanPool.VacuumBellSeparation.Gaussian.Compression +public import LeanPool.VacuumBellSeparation.Gaussian.CompressionPower +public import LeanPool.VacuumBellSeparation.Gaussian.CompressionPowerTrace +public import LeanPool.VacuumBellSeparation.Gaussian.ContractionDilation +public import LeanPool.VacuumBellSeparation.Gaussian.CovarianceResolventPerturbation +public import LeanPool.VacuumBellSeparation.Gaussian.CovarianceSegmentBounds +public import LeanPool.VacuumBellSeparation.Gaussian.CrossRankOneMatrixElements +public import LeanPool.VacuumBellSeparation.Gaussian.CrossRankOneSeries +public import LeanPool.VacuumBellSeparation.Gaussian.CrossSeriesSummability +public import LeanPool.VacuumBellSeparation.Gaussian.DecorrelatedCovariance +public import LeanPool.VacuumBellSeparation.Gaussian.DensityBargmannInversion +public import LeanPool.VacuumBellSeparation.Gaussian.DensityCharacteristicUniqueness +public import LeanPool.VacuumBellSeparation.Gaussian.DensityCoherentFourier +public import LeanPool.VacuumBellSeparation.Gaussian.DensityExpectationAdditivity +public import LeanPool.VacuumBellSeparation.Gaussian.DensityExpectationContinuity +public import LeanPool.VacuumBellSeparation.Gaussian.DensityExpectationGram +public import LeanPool.VacuumBellSeparation.Gaussian.DensityExpectationIndependence +public import LeanPool.VacuumBellSeparation.Gaussian.DensityOffDiagonalInversion +public import LeanPool.VacuumBellSeparation.Gaussian.DensityProductExtension +public import LeanPool.VacuumBellSeparation.Gaussian.DensityProductVNA +public import LeanPool.VacuumBellSeparation.Gaussian.DensityRenyiCovariance +public import LeanPool.VacuumBellSeparation.Gaussian.DensityTraceNormDual +public import LeanPool.VacuumBellSeparation.Gaussian.DensityWeylInversion +public import LeanPool.VacuumBellSeparation.Gaussian.DirectedStrongLimit +public import LeanPool.VacuumBellSeparation.Gaussian.EffectPowerTrace +public import LeanPool.VacuumBellSeparation.Gaussian.EntireMomentCoefficientBound +public import LeanPool.VacuumBellSeparation.Gaussian.FaithfulGaussianUncertainty +public import LeanPool.VacuumBellSeparation.Gaussian.FaithfulPowerDomain +public import LeanPool.VacuumBellSeparation.Gaussian.FaithfulPurityDerivative +public import LeanPool.VacuumBellSeparation.Gaussian.FaithfulRenyiEffectBound +public import LeanPool.VacuumBellSeparation.Gaussian.FamilyExpectation +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteBasisCompression +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteComplexProductSeries +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteGaussianRealization +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteHilbertSchmidtDual +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteMatrixPositiveTrace +public import LeanPool.VacuumBellSeparation.Gaussian.FinitePowerBounds +public import LeanPool.VacuumBellSeparation.Gaussian.FinitePowerTraceHolder +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteProductSeries +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRankNuclearBound +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRenyiInterpolation +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRenyiStrip +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRenyiStripBoundary +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteRenyiThreeLines +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteSemidefiniteRenyiInterpolation +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteSignedTraceTests +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteSpectralTraceRecovery +public import LeanPool.VacuumBellSeparation.Gaussian.FiniteUnitaryTraceHolder +public import LeanPool.VacuumBellSeparation.Gaussian.FixedGaussianExistence +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianAppendixA +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianBargmannDiagonal +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianBargmannFourier +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianBargmannKernel +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianBargmannMatrixDefs +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianCoordinateTransport +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianCovarianceNormalization +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianCovarianceUniqueness +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianDiagonalCharacteristic +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianDifferenceQuotient +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianFaithfulRenyiComparison +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianHusimi +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianNormalizedPowers +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianProductReference +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianPurityDifferential +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianPurityPerturbation +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianPurityTrace +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianReferenceCoordinates +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRegionalMarginal +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRegionalProduct +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRegionalVNAProduct +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRelativePerturbationDefs +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiComparison +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiConsequences +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiExponentDefs +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianRenyiParameters +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSandwichCriterion +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSandwichNormalization +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSandwichPerturbation +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSandwichTrace +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSandwichTraceRatio +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianSourceCompressionBounds +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianThermalRenyiBound +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianUncertaintyNecessity +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianUnitaryTransport +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianWeylGram +public import LeanPool.VacuumBellSeparation.Gaussian.GaussianWilliamsonSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.GeometricInterpolationMajorant +public import LeanPool.VacuumBellSeparation.Gaussian.HamiltonianSpectralDerivative +public import LeanPool.VacuumBellSeparation.Gaussian.HermitianTraceDerivative +public import LeanPool.VacuumBellSeparation.Gaussian.HermitianTraceRemainder +public import LeanPool.VacuumBellSeparation.Gaussian.HermitianTraceTaylorBound +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertComplexification +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertEigenTrace +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertProductFunctionalCalculus +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertProductOperator +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtCompact +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtIdeal +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtMatrixExtension +public import LeanPool.VacuumBellSeparation.Gaussian.HilbertSchmidtTrace +public import LeanPool.VacuumBellSeparation.Gaussian.IndexedDiagonalDensity +public import LeanPool.VacuumBellSeparation.Gaussian.IndexedDiagonalState +public import LeanPool.VacuumBellSeparation.Gaussian.InfiniteRenyiInterpolation +public import LeanPool.VacuumBellSeparation.Gaussian.InterpolatedReserveSeries +public import LeanPool.VacuumBellSeparation.Gaussian.IntrinsicGaussianPerturbationDefs +public import LeanPool.VacuumBellSeparation.Gaussian.IntrinsicGaussianRenyiBound +public import LeanPool.VacuumBellSeparation.Gaussian.IsometricCorner +public import LeanPool.VacuumBellSeparation.Gaussian.L2ProductInner +public import LeanPool.VacuumBellSeparation.Gaussian.L2ProductTotality +public import LeanPool.VacuumBellSeparation.Gaussian.L2ProductVectors +public import LeanPool.VacuumBellSeparation.Gaussian.LowerPowerSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixGaussianComplexLinear +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixGaussianCriterion +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixGaussianFourier +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixGaussianIntegral +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixLogDetBound +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixNormalizationOperator +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixResolventBounds +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixSandwichOrder +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixTraceNorm +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixTraceNormDiagonal +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixTraceNormOrder +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixTraceNormSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.MatrixWeylLabels +public import LeanPool.VacuumBellSeparation.Gaussian.ModeHamiltonianAbsoluteValue +public import LeanPool.VacuumBellSeparation.Gaussian.ModePurityDifferential +public import LeanPool.VacuumBellSeparation.Gaussian.MonotoneStrongLimit +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeBargmannL2 +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeBargmannPointwise +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCanonicalThermalModel +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentCoordinates +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentInverseDomains +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentPositiveTrace +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentResolution +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeCoherentTotality +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeFaithfulness +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeInverseBargmann +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModePowerDomains +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeSandwichCoherentTrace +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeSandwichCriterion +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeSplit +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeThermalCharacteristic +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeThermalDensity +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeThermalPowers +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeThermalState +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeWeylProduct +public import LeanPool.VacuumBellSeparation.Gaussian.MultiModeWeylRepresentation +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedCommutation +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedCovarianceThermal +public import LeanPool.VacuumBellSeparation.Gaussian.NormalizedDensityPowers +public import LeanPool.VacuumBellSeparation.Gaussian.NuclearNormConvergence +public import LeanPool.VacuumBellSeparation.Gaussian.NuclearSandwichContinuity +public import LeanPool.VacuumBellSeparation.Gaussian.NuclearSelfAdjointSeries +public import LeanPool.VacuumBellSeparation.Gaussian.OperatorMeans +public import LeanPool.VacuumBellSeparation.Gaussian.ParallelSum +public import LeanPool.VacuumBellSeparation.Gaussian.PhysicalGaussianHusimi +public import LeanPool.VacuumBellSeparation.Gaussian.PhysicalGaussianTransport +public import LeanPool.VacuumBellSeparation.Gaussian.PhysicalWilliamsonDensity +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscAngularFubini +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscAngularIntegral +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscAngularRecursion +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscAngularSeries +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCauchyCoefficients +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCauchyFormula +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCauchyWeights +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCoefficientConvergence +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCoefficientDefs +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCoefficientLinearity +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscExponentialCoefficients +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscReconstruction +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveDensityState +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveEffectExpectationDefs +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveMatrixComplexPowers +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveMatrixExtension +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveMatrixFeatures +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveSandwichDifference +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveSquareDifferenceTrace +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveSquareRootDerivative +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveSylvesterInverse +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTrace +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceHolder +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceOrder +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTracePowerOrder +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceScaling +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceSeries +public import LeanPool.VacuumBellSeparation.Gaussian.PositiveTraceYoung +public import LeanPool.VacuumBellSeparation.Gaussian.ProductGaussianIntegrability +public import LeanPool.VacuumBellSeparation.Gaussian.PurityScalar +public import LeanPool.VacuumBellSeparation.Gaussian.PurityScalarTaylor +public import LeanPool.VacuumBellSeparation.Gaussian.QuadratureMatrices +public import LeanPool.VacuumBellSeparation.Gaussian.QuadratureNormalization +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumCovarianceDefs +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumModePositivity +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumNondegenerateCovariance +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumPurityCalculus +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumRealCovariance +public import LeanPool.VacuumBellSeparation.Gaussian.QuantumWilliamson +public import LeanPool.VacuumBellSeparation.Gaussian.RealBilinearCompletion +public import LeanPool.VacuumBellSeparation.Gaussian.RealCoordinateWeyl +public import LeanPool.VacuumBellSeparation.Gaussian.RealMatrixOperatorNorms +public import LeanPool.VacuumBellSeparation.Gaussian.RegionalProductAllOperators +public import LeanPool.VacuumBellSeparation.Gaussian.RegionalWeylAlgebra +public import LeanPool.VacuumBellSeparation.Gaussian.RelabeledWeylAverage +public import LeanPool.VacuumBellSeparation.Gaussian.RelativeCovarianceCongruence +public import LeanPool.VacuumBellSeparation.Gaussian.RenyiEffectBound +public import LeanPool.VacuumBellSeparation.Gaussian.RenyiExponentialEnvelope +public import LeanPool.VacuumBellSeparation.Gaussian.RenyiTwoTraceDistance +public import LeanPool.VacuumBellSeparation.Gaussian.ReserveNormalization +public import LeanPool.VacuumBellSeparation.Gaussian.ReserveNuclearSeries +public import LeanPool.VacuumBellSeparation.Gaussian.ReserveThermalCompression +public import LeanPool.VacuumBellSeparation.Gaussian.ReserveTraceInterpolation +public import LeanPool.VacuumBellSeparation.Gaussian.ReserveTraceStrip +public import LeanPool.VacuumBellSeparation.Gaussian.SandwichAlgebra +public import LeanPool.VacuumBellSeparation.Gaussian.SandwichRangeForm +public import LeanPool.VacuumBellSeparation.Gaussian.SandwichedRenyiQuantity +public import LeanPool.VacuumBellSeparation.Gaussian.ScaledCoherentIntegral +public import LeanPool.VacuumBellSeparation.Gaussian.SemidefiniteRenyiComparison +public import LeanPool.VacuumBellSeparation.Gaussian.SkewBasisAssembly +public import LeanPool.VacuumBellSeparation.Gaussian.SkewMatrixNormalForm +public import LeanPool.VacuumBellSeparation.Gaussian.SkewNormalForm +public import LeanPool.VacuumBellSeparation.Gaussian.SkewOrthogonalCongruence +public import LeanPool.VacuumBellSeparation.Gaussian.SkewPlaneRestriction +public import LeanPool.VacuumBellSeparation.Gaussian.SkewRotationPlane +public import LeanPool.VacuumBellSeparation.Gaussian.SourceGram +public import LeanPool.VacuumBellSeparation.Gaussian.SourceMapConstruction +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselCompatibility +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselComplexIntegral +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselFullLine +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselHeatParameter +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselHolomorphic +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselIntegral +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselKernels +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselRationalBounds +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialBesselScaledBounds +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialComplexRadius +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialKernelCoefficients +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialKernelMultiIndex +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialLaplaceMoments +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialPolydiscKernels +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialRadiusHolomorphic +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialSeparatedKernelBounds +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialSeriesConstants +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialShiftedLaplaceBounds +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialWeightedCoefficientSeries +public import LeanPool.VacuumBellSeparation.Gaussian.SpectralBasisCompression +public import LeanPool.VacuumBellSeparation.Gaussian.SquareSummableFamily +public import LeanPool.VacuumBellSeparation.Gaussian.SquareTraceFiniteBlocks +public import LeanPool.VacuumBellSeparation.Gaussian.StandardSubspaceSource +public import LeanPool.VacuumBellSeparation.Gaussian.StrictOperatorComplexPowers +public import LeanPool.VacuumBellSeparation.Gaussian.StrictQuantumWilliamson +public import LeanPool.VacuumBellSeparation.Gaussian.StrictReserveTraceInterpolation +public import LeanPool.VacuumBellSeparation.Gaussian.SubstochasticHolder +public import LeanPool.VacuumBellSeparation.Gaussian.SymmetricRankOneTrace +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticBlocks +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticHamiltonian +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticHamiltonianNormalForm +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticPurityCongruence +public import LeanPool.VacuumBellSeparation.Gaussian.SymplecticWeylImplementer +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCharacteristic +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCoherentAction +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCoherentPowers +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCoherentTrace +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCompression +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCovarianceBridge +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCovarianceParameters +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalCovariancePerturbation +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalDensity +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalDensityCharacteristic +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalDomains +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalFunctionalCalculus +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalIdentity +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalOperator +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalParallel +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPartitionCancellation +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPerturbationMultiplier +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowerNormalization +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowerNormalizationDefs +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPowers +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPrecisionDomain +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalPurityPerturbation +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalQuantumSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalSandwichCriterion +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalSandwichNormalization +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalScalar +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalScalarDefs +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalState +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalVarianceComparison +public import LeanPool.VacuumBellSeparation.Gaussian.ThermalWoodburyCovariance +public import LeanPool.VacuumBellSeparation.Gaussian.TorusCoherentExpansion +public import LeanPool.VacuumBellSeparation.Gaussian.TorusPositiveDiagonal +public import LeanPool.VacuumBellSeparation.Gaussian.TraceNormCompression +public import LeanPool.VacuumBellSeparation.Gaussian.TraceNormSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryDensityExpectation +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryEigenbasisOverlap +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryNuclearTrace +public import LeanPool.VacuumBellSeparation.Gaussian.UnitarySandwich +public import LeanPool.VacuumBellSeparation.Gaussian.UnitaryTrace +public import LeanPool.VacuumBellSeparation.Gaussian.WeightedSandwich +public import LeanPool.VacuumBellSeparation.Gaussian.WeylAverageFubini +public import LeanPool.VacuumBellSeparation.Gaussian.WeylCoherentInversion +public import LeanPool.VacuumBellSeparation.Gaussian.WeylCoherentKernel +public import LeanPool.VacuumBellSeparation.Gaussian.WeylCoherentRepresentation +public import LeanPool.VacuumBellSeparation.Gaussian.WeylGaussianConvolution +public import LeanPool.VacuumBellSeparation.Gaussian.WeylGaussianProjection +public import LeanPool.VacuumBellSeparation.Gaussian.WeylIrreducibility +public import LeanPool.VacuumBellSeparation.Gaussian.WeylVacuumIntegral +public import LeanPool.VacuumBellSeparation.Gaussian.WeylVacuumKernel +public import LeanPool.VacuumBellSeparation.Gaussian.WhitenedComplexFamily +public import LeanPool.VacuumBellSeparation.Gaussian.WilliamsonFinite +public import LeanPool.VacuumBellSeparation.Gaussian.WilliamsonOneMode +public import LeanPool.VacuumBellSeparation.Gaussian.WilliamsonSandwichCovarianceDefs +public import LeanPool.VacuumBellSeparation.Polynomial.CauchyTaylorDefs +public import LeanPool.VacuumBellSeparation.Polynomial.ComplexBallDerivativeBounds +public import LeanPool.VacuumBellSeparation.Polynomial.ComplexCoefficientBounds +public import LeanPool.VacuumBellSeparation.Polynomial.ComplexDerivativeRestriction +public import LeanPool.VacuumBellSeparation.Polynomial.ComplexSelectorBounds +public import LeanPool.VacuumBellSeparation.Polynomial.JointComponentAnalytic +public import LeanPool.VacuumBellSeparation.Polynomial.JointComponentApproximation +public import LeanPool.VacuumBellSeparation.Polynomial.JointComponentGeometry +public import LeanPool.VacuumBellSeparation.Polynomial.JointMidpointPolynomial +public import LeanPool.VacuumBellSeparation.Polynomial.JointMidpointPolynomialDefs +public import LeanPool.VacuumBellSeparation.Polynomial.MultivariateCauchyPolynomial +public import LeanPool.VacuumBellSeparation.Polynomial.MultivariateCoefficientNorm +public import LeanPool.VacuumBellSeparation.Polynomial.MultivariateSelector +public import LeanPool.VacuumBellSeparation.Polynomial.Selector +public import LeanPool.VacuumBellSeparation.Polynomial.SelectorDefs +public import LeanPool.VacuumBellSeparation.Polynomial.SelectorTaylorBounds +public import LeanPool.VacuumBellSeparation.Polynomial.TotalDegreeCauchy +public import LeanPool.VacuumBellSeparation.Probability.CellChain +public import LeanPool.VacuumBellSeparation.Probability.Exponents +public import LeanPool.VacuumBellSeparation.Shell.ActualContourLocalBound +public import LeanPool.VacuumBellSeparation.Shell.ActualContourShellMeasure +public import LeanPool.VacuumBellSeparation.Shell.ActualInducedContourLocalBound +public import LeanPool.VacuumBellSeparation.Shell.AugmentedInverseCoordinates +public import LeanPool.VacuumBellSeparation.Shell.CanonicalShellPreimage +public import LeanPool.VacuumBellSeparation.Shell.CompatibleChartMeasureGluing +public import LeanPool.VacuumBellSeparation.Shell.ComplexDiskPolar +public import LeanPool.VacuumBellSeparation.Shell.ComplexEuclideanVolume +public import LeanPool.VacuumBellSeparation.Shell.ComplexLorentzFamilySmooth +public import LeanPool.VacuumBellSeparation.Shell.ComplexLorentzParameters +public import LeanPool.VacuumBellSeparation.Shell.ComplexShellChart +public import LeanPool.VacuumBellSeparation.Shell.ComplexShellLocalChart +public import LeanPool.VacuumBellSeparation.Shell.ControlledContourNeighborhood +public import LeanPool.VacuumBellSeparation.Shell.ControlledContourRectangle +public import LeanPool.VacuumBellSeparation.Shell.ControlledLorentzProbability +public import LeanPool.VacuumBellSeparation.Shell.CoordinateLorentzProper +public import LeanPool.VacuumBellSeparation.Shell.CoordinatePlaneRotations +public import LeanPool.VacuumBellSeparation.Shell.EuclideanShellSubmean +public import LeanPool.VacuumBellSeparation.Shell.FiniteContourMixture +public import LeanPool.VacuumBellSeparation.Shell.FiniteCoordinateDerivative +public import LeanPool.VacuumBellSeparation.Shell.FiniteTaggedProbability +public import LeanPool.VacuumBellSeparation.Shell.FixedMassContourImage +public import LeanPool.VacuumBellSeparation.Shell.FixedMassContourIntegral +public import LeanPool.VacuumBellSeparation.Shell.FixedMassContourJacobian +public import LeanPool.VacuumBellSeparation.Shell.FullContourParameters +public import LeanPool.VacuumBellSeparation.Shell.FullContourPoint +public import LeanPool.VacuumBellSeparation.Shell.HaarJacobianBound +public import LeanPool.VacuumBellSeparation.Shell.HaarJacobianCoordinates +public import LeanPool.VacuumBellSeparation.Shell.HolomorphicCircleSubmean +public import LeanPool.VacuumBellSeparation.Shell.HolomorphicDiskSubmean +public import LeanPool.VacuumBellSeparation.Shell.HolomorphicInducedMeasureSubmean +public import LeanPool.VacuumBellSeparation.Shell.HolomorphicVolumeSubmean +public import LeanPool.VacuumBellSeparation.Shell.InducedRegularShellVolume +public import LeanPool.VacuumBellSeparation.Shell.InducedShellAtlasVolume +public import LeanPool.VacuumBellSeparation.Shell.InducedShellChartCoverage +public import LeanPool.VacuumBellSeparation.Shell.InducedShellChartOverlap +public import LeanPool.VacuumBellSeparation.Shell.InducedShellGramDensity +public import LeanPool.VacuumBellSeparation.Shell.InducedShellMassContinuity +public import LeanPool.VacuumBellSeparation.Shell.InducedShellPatchCoordinates +public import LeanPool.VacuumBellSeparation.Shell.InducedShellPatchMeasure +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeBounds +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeCompatibility +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeCoordinates +public import LeanPool.VacuumBellSeparation.Shell.LocalHolomorphicVolumeSubmean +public import LeanPool.VacuumBellSeparation.Shell.LocalInducedVolumeComparison +public import LeanPool.VacuumBellSeparation.Shell.LorentzFrameMap +public import LeanPool.VacuumBellSeparation.Shell.LorentzFrameMatching +public import LeanPool.VacuumBellSeparation.Shell.LorentzFrameOrientation +public import LeanPool.VacuumBellSeparation.Shell.LorentzFrameVectors +public import LeanPool.VacuumBellSeparation.Shell.LorentzFrames +public import LeanPool.VacuumBellSeparation.Shell.LorentzParameterContinuity +public import LeanPool.VacuumBellSeparation.Shell.LorentzParameterFamily +public import LeanPool.VacuumBellSeparation.Shell.MeasurableContourWeights +public import LeanPool.VacuumBellSeparation.Shell.NormalizedTargetCompact +public import LeanPool.VacuumBellSeparation.Shell.NormalizedTargetGeometry +public import LeanPool.VacuumBellSeparation.Shell.NormalizedTargetLocalDomination +public import LeanPool.VacuumBellSeparation.Shell.NormalizedTargetPreimage +public import LeanPool.VacuumBellSeparation.Shell.NullDiscDefs +public import LeanPool.VacuumBellSeparation.Shell.NullDiscs +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourDensity +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourLocalIntegral +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourParameterCoordinates +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourParameterMeasure +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourSourceControl +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourWeights +public import LeanPool.VacuumBellSeparation.Shell.RadialContourDerivative +public import LeanPool.VacuumBellSeparation.Shell.RectangleJacobianBound +public import LeanPool.VacuumBellSeparation.Shell.ReferenceContourDerivative +public import LeanPool.VacuumBellSeparation.Shell.ReferenceContourLocalInverse +public import LeanPool.VacuumBellSeparation.Shell.ReferenceContourRank +public import LeanPool.VacuumBellSeparation.Shell.RegularShellFamilyNeighborhood +public import LeanPool.VacuumBellSeparation.Shell.ShellSubmeanNeighborhood +public import LeanPool.VacuumBellSeparation.Shell.SmoothBallProbability +public import LeanPool.VacuumBellSeparation.Shell.SpacetimeFrameCoordinates +public import LeanPool.VacuumBellSeparation.Shell.SpatialFourierEnergyCircle +public import LeanPool.VacuumBellSeparation.Shell.SpatialFourierEnergyGeometry +public import LeanPool.VacuumBellSeparation.Shell.UniformContourSubmean +public import LeanPool.VacuumBellSeparation.Shell.UniformHolomorphicShellSubmean +public import LeanPool.VacuumBellSeparation.Shell.UniformLocalShellDensity +public import LeanPool.VacuumBellSeparation.Shell.UniformPhysicalContourDensity +public import LeanPool.VacuumBellSeparation.Shell.UniformShellSubmeanCharts +public import LeanPool.VacuumBellSeparation.Special.BesselK +public import LeanPool.VacuumBellSeparation.Special.BesselKDefs +public import LeanPool.VacuumBellSeparation.Weyl.Existence +public import LeanPool.VacuumBellSeparation.Weyl.StrongContinuity diff --git a/LeanPool/VacuumBellSeparation/Polynomial/CauchyTaylorDefs.lean b/LeanPool/VacuumBellSeparation/Polynomial/CauchyTaylorDefs.lean new file mode 100644 index 0000000000..cf6c10da96 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/CauchyTaylorDefs.lean @@ -0,0 +1,31 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCoefficientDefs +public import Mathlib.Data.Fintype.Pi + +/-! # Taylor polynomials on polydiscs -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped BigOperators +open Gaussian + +/-- All multiindices of total degree strictly less than N, including the +empty index precisely when N is positive. -/ +def multiIndexBelow (d N : ℕ) : Finset (Fin d → ℕ) := + (Fintype.piFinset (fun _ : Fin d => Finset.range N)).filter (fun k => ∑ j, k j < N) + +/-- The actual Taylor polynomial, evaluated at x. -/ +noncomputable def cauchyTaylor (d N : ℕ) (R : ℝ) + (F : (Fin d → ℂ) → ℂ) (x : Fin d → ℂ) : ℂ := + ∑ k ∈ multiIndexBelow d N, polydiscCoefficient d R F k * ∏ j, x j ^ k j + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/ComplexBallDerivativeBounds.lean b/LeanPool/VacuumBellSeparation/Polynomial/ComplexBallDerivativeBounds.lean new file mode 100644 index 0000000000..d9e6965b46 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/ComplexBallDerivativeBounds.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Complex.Schwarz +public import Mathlib.Analysis.Calculus.FDeriv.Analytic + +/-! +# Actual complex derivative bounds on successively smaller balls + +Repeated Banach-space Schwarz estimates give bounds for the actual +iterated Fréchet derivatives. Analyticity and a function supremum on +the larger ball are the only inputs; no derivative estimate is assumed. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Metric Set + +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] + [NormedAddCommGroup F] [NormedSpace ℂ F] [CompleteSpace F] + +theorem norm_iteratedFDeriv_le_shrinking_ball {f : E → F} {c : E} {R r M : ℝ} + (hr : 0 < r) (hM : 0 ≤ M) (hf : AnalyticOnNhd ℂ f (ball c R)) + (hbound : ∀ x ∈ ball c R, ‖f x‖ ≤ M) (n : ℕ) : + ∀ x ∈ ball c (R - (n : ℝ) * r), ‖iteratedFDeriv ℂ n f x‖ ≤ M * (2 / r) ^ n := by + induction n with + | zero => + intro x hx + simpa only [Nat.cast_zero, zero_mul, sub_zero, norm_iteratedFDeriv_zero, + pow_zero, mul_one] using hbound x (by simpa using hx) + | succ n ih => + intro x hx + have hx' : dist x c < R - ((n : ℝ) + 1) * r := by + simpa only [mem_ball, Nat.cast_add, Nat.cast_one] using hx + have hnr : 0 ≤ (n : ℝ) * r := mul_nonneg (Nat.cast_nonneg _) hr.le + have hinner : ball x r ⊆ ball c (R - (n : ℝ) * r) := by + intro y hy + rw [mem_ball] at hy ⊢ + have ht := dist_triangle y x c + linarith + have houter : ball c (R - (n : ℝ) * r) ⊆ ball c R := by + intro y hy + rw [mem_ball] at hy ⊢ + linarith + have hxinner : x ∈ ball c (R - (n : ℝ) * r) := by + rw [mem_ball] + linarith + have hC : 0 ≤ M * (2 / r) ^ n := by positivity + have hg : DifferentiableOn ℂ (iteratedFDeriv ℂ n f) (ball x r) := + ((hf.iteratedFDeriv n).mono (hinner.trans houter)).differentiableOn + have hmaps : MapsTo (iteratedFDeriv ℂ n f) (ball x r) + (closedBall (iteratedFDeriv ℂ n f x) (2 * (M * (2 / r) ^ n))) := by + intro y hy + rw [mem_closedBall, dist_eq_norm] + exact (norm_sub_le _ _).trans (by linarith [ih y (hinner hy), ih x hxinner]) + have h := Complex.norm_fderiv_le_div_of_mapsTo_ball hg hmaps hr + rw [norm_fderiv_iteratedFDeriv] at h + apply h.trans_eq + rw [pow_succ] + ring + +/-- Derivatives through order four at the center need only a radius-one +complex neighborhood. The common constant is 10000. -/ +theorem norm_iteratedFDeriv_le_four {f : E → F} {c : E} {M : ℝ} + (hM : 0 ≤ M) (hf : AnalyticOnNhd ℂ f (ball c 1)) + (hbound : ∀ x ∈ ball c 1, ‖f x‖ ≤ M) {n : ℕ} (hn : n ≤ 4) : + ‖iteratedFDeriv ℂ n f c‖ ≤ 10000 * M := by + have hnreal : (n : ℝ) ≤ 4 := by exact_mod_cast hn + have h := norm_iteratedFDeriv_le_shrinking_ball (r := 1 / 5) + (by norm_num) hM hf hbound n c (by + rw [mem_ball, dist_self] + nlinarith) + norm_num only [show (2 : ℝ) / (1 / 5) = 10 by norm_num] at h + have hp : (10 : ℝ) ^ n ≤ 10000 := by + have hpow := pow_le_pow_right₀ (by norm_num : (1 : ℝ) ≤ 10) hn + norm_num at hpow ⊢ + exact hpow + exact h.trans (by nlinarith) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/ComplexCoefficientBounds.lean b/LeanPool/VacuumBellSeparation/Polynomial/ComplexCoefficientBounds.lean new file mode 100644 index 0000000000..942ca00638 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/ComplexCoefficientBounds.lean @@ -0,0 +1,91 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.Selector +import Mathlib.Tactic.Positivity +public import Mathlib.Analysis.Complex.Basic + +/-! +# Complex evaluation bounds from the actual real coefficient sum + +These are the quantitative tools for the disconnected-support selectors +in manuscript Section 7. The same real polynomials are evaluated at +complex points; no alternative selector is introduced. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Polynomial + +/-- Complex polynomial eval obtained from `p.eval₂`. -/ +def complexPolynomialEval (p : ℝ[X]) (z : ℂ) : ℂ := p.eval₂ (algebraMap ℝ ℂ) z + +theorem complexPolynomialEval_sum (p : ℝ[X]) (z : ℂ) : + complexPolynomialEval p z = + ∑ i ∈ Finset.range (p.natDegree + 1), (p.coeff i : ℂ) * z ^ i := by + exact Polynomial.eval₂_eq_sum_range (algebraMap ℝ ℂ) z + +theorem norm_complexPolynomialEval_le (p : ℝ[X]) (z : ℂ) : + ‖complexPolynomialEval p z‖ ≤ coeffAbsSum p * max 1 ‖z‖ ^ p.natDegree := by + rw [complexPolynomialEval_sum, coeffAbsSum, Finset.sum_mul] + apply (norm_sum_le _ _).trans + apply Finset.sum_le_sum + intro i hi + rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, norm_pow] + apply mul_le_mul_of_nonneg_left _ (abs_nonneg _) + exact (pow_le_pow_left₀ (norm_nonneg z) (le_max_right _ _) i).trans + (pow_le_pow_right₀ (le_max_left _ _) (Nat.le_of_lt_succ (Finset.mem_range.mp hi))) + +theorem norm_complexPolynomialEval_zero_order_le (p : ℝ[X]) (N : ℕ) + (hcoeff : ∀ i < N, p.coeff i = 0) {z : ℂ} (hz : ‖z‖ ≤ 1) : + ‖complexPolynomialEval p z‖ ≤ coeffAbsSum p * ‖z‖ ^ N := by + rw [complexPolynomialEval_sum, coeffAbsSum, Finset.sum_mul] + apply (norm_sum_le _ _).trans + apply Finset.sum_le_sum + intro i hi + by_cases hin : i < N + · simp only [hcoeff i hin, Complex.ofReal_zero, zero_mul, norm_zero, abs_zero, le_refl] + · rw [norm_mul, Complex.norm_real, Real.norm_eq_abs, norm_pow] + exact mul_le_mul_of_nonneg_left + (pow_le_pow_of_le_one (norm_nonneg z) hz (Nat.le_of_not_gt hin)) (abs_nonneg _) + +theorem coeffAbsSum_sub_one_le (p : ℝ[X]) : coeffAbsSum (p - 1) ≤ coeffAbsSum p + 1 := by + have h := coeffAbsSum_add_le p (C (-1)) + rw [coeffAbsSum_C] at h + simpa only [map_neg, map_one, ← sub_eq_add_neg, abs_neg, abs_one] using h + +theorem norm_complexSelector_near_zero (N : ℕ) {z : ℂ} (hz : ‖z‖ ≤ 1) : + ‖complexPolynomialEval (selector N) z - 1‖ ≤ (8 ^ N + 1) * ‖z‖ ^ N := by + have hzero : ∀ i < N, (selector N - 1).coeff i = 0 := by + intro i hi + rw [coeff_sub, coeff_selector_of_lt hi, coeff_one] + split_ifs <;> simp + have hb := norm_complexPolynomialEval_zero_order_le (selector N - 1) N hzero hz + have he : complexPolynomialEval (selector N - 1) z = complexPolynomialEval + (selector N) z - 1 := by + simp [complexPolynomialEval] + rw [he] at hb + exact hb.trans (mul_le_mul_of_nonneg_right + ((coeffAbsSum_sub_one_le _).trans (by linarith [coeffAbsSum_selector_le N])) + (pow_nonneg (norm_nonneg z) N)) + +theorem norm_complexSelector_global (N : ℕ) (z : ℂ) : + ‖complexPolynomialEval (selector N) z‖ ≤ (8 * max 1 ‖z‖ ^ 2) ^ N := by + apply (norm_complexPolynomialEval_le _ _).trans + calc + _ ≤ 8 ^ N * max 1 ‖z‖ ^ (2 * N) := + mul_le_mul (coeffAbsSum_selector_le N) + (pow_le_pow_right₀ (le_max_left _ _) + ((selector_natDegree_le N).trans (Nat.sub_le _ _))) + (by positivity) (by positivity) + _ = _ := by rw [mul_pow, ← pow_mul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/ComplexDerivativeRestriction.lean b/LeanPool/VacuumBellSeparation/Polynomial/ComplexDerivativeRestriction.lean new file mode 100644 index 0000000000..1665a4f4d1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/ComplexDerivativeRestriction.lean @@ -0,0 +1,56 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.ComplexBallDerivativeBounds +public import Mathlib.Analysis.Calculus.ContDiff.RestrictScalars +public import Mathlib.Analysis.Calculus.ContDiff.Basic + +/-! # Actual derivative bounds under a real linear inclusion -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Metric Set +open scoped ContDiff + +variable {E G : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] + [NormedSpace ℝ E] [IsScalarTower ℝ ℂ E] + [NormedAddCommGroup G] [NormedSpace ℝ G] + +theorem norm_iteratedFDeriv_real_comp_le {f : E → ℂ} (L : G →L[ℝ] E) + (hL : ‖L‖ ≤ 1) (x : G) {M : ℝ} (hM : 0 ≤ M) + (hf : AnalyticOnNhd ℂ f (ball (L x) 1)) + (hbound : ∀ y ∈ ball (L x) 1, ‖f y‖ ≤ M) {n : ℕ} (hn : n ≤ 4) : + ‖iteratedFDeriv ℝ n (f ∘ L) x‖ ≤ 10000 * M := by + have hx : L x ∈ ball (L x) 1 := mem_ball_self (by norm_num) + have hc : ContDiffAt ℂ (n : ℕ∞ω) f (L x) := (hf _ hx).contDiffAt + have hr : ContDiffAt ℝ (n : ℕ∞ω) f (L x) := hc.restrict_scalars ℝ + have hcomp : ContDiffAt ℝ (n : ℕ∞ω) (f ∘ L) x := + hr.comp x L.contDiff.contDiffAt + have hset : ContDiffOn ℝ (n : ℕ∞ω) f (ball (L x) 1) := + (hf.contDiffOn isOpen_ball.uniqueDiffOn).restrict_scalars ℝ + have hopen : IsOpen (L ⁻¹' ball (L x) 1) := isOpen_ball.preimage L.continuous + have he := L.iteratedFDerivWithin_comp_right hset isOpen_ball.uniqueDiffOn + hopen.uniqueDiffOn hx (i := n) le_rfl + rw [iteratedFDerivWithin_eq_iteratedFDeriv hopen.uniqueDiffOn hcomp hx, + iteratedFDerivWithin_eq_iteratedFDeriv isOpen_ball.uniqueDiffOn hr hx] at he + have hnorm : ‖iteratedFDeriv ℝ n f (L x)‖ = ‖iteratedFDeriv ℂ n f (L x)‖ := by + rw [← hc.restrictScalars_iteratedFDeriv (𝕜 := ℝ)] + exact ContinuousMultilinearMap.norm_restrictScalars _ + rw [he] + calc + _ ≤ ‖iteratedFDeriv ℝ n f (L x)‖ * ∏ _ : Fin n, ‖L‖ := + ContinuousMultilinearMap.norm_compContinuousLinearMap_le _ _ + _ ≤ ‖iteratedFDeriv ℝ n f (L x)‖ * 1 := by + gcongr + exact Finset.prod_le_one₀ (fun _ _ => norm_nonneg L) (fun _ _ => hL) + _ = ‖iteratedFDeriv ℂ n f (L x)‖ := by rw [mul_one, hnorm] + _ ≤ 10000 * M := norm_iteratedFDeriv_le_four hM hf hbound hn + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/ComplexSelectorBounds.lean b/LeanPool/VacuumBellSeparation/Polynomial/ComplexSelectorBounds.lean new file mode 100644 index 0000000000..4a94353e1a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/ComplexSelectorBounds.lean @@ -0,0 +1,82 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.ComplexCoefficientBounds + +/-! # Quantitative complex selector bounds at both components -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +open Polynomial + +theorem complexSelector_factor (N : ℕ) (z : ℂ) : + complexPolynomialEval (selector N) z = + (1 - z) ^ N * ∑ k ∈ Finset.range N, + (((N + k - 1).choose k : ℕ) : ℂ) * z ^ k := by + simp [complexPolynomialEval, selector, eval₂_finsetSum] + +theorem norm_complexSelector_truncated_series (N : ℕ) {z : ℂ} (hz : ‖z‖ ≤ 2) : + ‖∑ k ∈ Finset.range N, (((N + k - 1).choose k : ℕ) : ℂ) * z ^ k‖ ≤ 8 ^ N := by + calc + _ ≤ ∑ k ∈ Finset.range N, ‖(((N + k - 1).choose k : ℕ) : ℂ) * z ^ k‖ := norm_sum_le _ _ + _ ≤ ∑ k ∈ Finset.range N, ((N + k - 1).choose k : ℝ) * 2 ^ N := by + apply Finset.sum_le_sum + intro k hk + rw [norm_mul, Complex.norm_natCast, norm_pow] + apply mul_le_mul_of_nonneg_left _ (Nat.cast_nonneg _) + exact (pow_le_pow_left₀ (norm_nonneg z) hz k).trans + (pow_le_pow_right₀ (by norm_num) (Nat.le_of_lt (Finset.mem_range.mp hk))) + _ = (∑ k ∈ Finset.range N, ((N + k - 1).choose k : ℝ)) * 2 ^ N := + (Finset.sum_mul _ _ _).symm + _ ≤ 4 ^ N * 2 ^ N := by + apply mul_le_mul_of_nonneg_right _ (by positivity) + exact_mod_cast sum_choose_le_four_pow N + _ = 8 ^ N := by rw [← mul_pow]; norm_num + +theorem norm_complexSelector_near_one (N : ℕ) {z : ℂ} (hz : ‖z‖ ≤ 2) : + ‖complexPolynomialEval (selector N) z‖ ≤ 8 ^ N * ‖1 - z‖ ^ N := by + rw [complexSelector_factor, norm_mul, norm_pow] + exact (mul_le_mul_of_nonneg_left (norm_complexSelector_truncated_series N hz) + (by positivity)).trans_eq (mul_comm _ _) + +theorem norm_complexSelector_on_two_ball (N : ℕ) {z : ℂ} (hz : ‖z‖ ≤ 2) : + ‖complexPolynomialEval (selector N) z‖ ≤ 32 ^ N := by + apply (norm_complexSelector_global N z).trans + have hmax : max 1 ‖z‖ ≤ (2 : ℝ) := max_le (by norm_num) hz + have hs := pow_le_pow_left₀ (le_trans zero_le_one (le_max_left 1 ‖z‖)) hmax 2 + have hbase : 8 * max 1 ‖z‖ ^ 2 ≤ (32 : ℝ) := by norm_num at hs; nlinarith + exact pow_le_pow_left₀ (by positivity) hbase N + +theorem norm_complexSelector_near_zero_geometric (N : ℕ) {z : ℂ} {δ : ℝ} + (hz : ‖z‖ ≤ δ) (hδ : δ ≤ 1) : + ‖complexPolynomialEval (selector N) z - 1‖ ≤ 2 * (8 * δ) ^ N := by + have hδ₀ : 0 ≤ δ := (norm_nonneg z).trans hz + have hpow : (1 : ℝ) ≤ 8 ^ N := one_le_pow₀ (by norm_num) + calc + _ ≤ (8 ^ N + 1) * ‖z‖ ^ N := norm_complexSelector_near_zero N (hz.trans hδ) + _ ≤ (2 * 8 ^ N) * δ ^ N := mul_le_mul (by linarith) + (pow_le_pow_left₀ (norm_nonneg z) hz N) (by positivity) (by positivity) + _ = _ := by rw [mul_pow]; ring + +theorem norm_complexSelector_product_wrong_component (N : ℕ) {u v : ℂ} {δ : ℝ} + (hu : ‖u‖ ≤ 2) (hv : ‖v‖ ≤ 2) (hzero : ‖1 - u‖ ≤ δ) : + ‖complexPolynomialEval (selector N) u * complexPolynomialEval (selector N) v‖ ≤ + (256 * δ) ^ N := by + rw [norm_mul] + have hδ : 0 ≤ δ := (norm_nonneg (1 - u)).trans hzero + calc + _ ≤ (8 ^ N * ‖1 - u‖ ^ N) * 32 ^ N := + mul_le_mul (norm_complexSelector_near_one N hu) (norm_complexSelector_on_two_ball N hv) + (norm_nonneg _) (by positivity) + _ ≤ (8 ^ N * δ ^ N) * 32 ^ N := by gcongr + _ = _ := by simp only [← mul_pow]; congr 1; ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/JointComponentAnalytic.lean b/LeanPool/VacuumBellSeparation/Polynomial/JointComponentAnalytic.lean new file mode 100644 index 0000000000..63c05d7877 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/JointComponentAnalytic.lean @@ -0,0 +1,72 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.JointComponentApproximation +public import Mathlib.Analysis.Analytic.Polynomial + +/-! # Actual analyticity on each of the four labelled component neighborhoods -/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian MvPolynomial + +theorem jointShift_analyticAt (z : Fin 6 → ℂ) : + AnalyticAt ℂ (fun w : Fin 6 → ℂ => fun j => w j + jointMidpointShift j) z := by + apply AnalyticAt.pi + intro j + simpa only [Pi.add_def, ContinuousLinearMap.proj_apply] using + ((ContinuousLinearMap.proj j : (Fin 6 → ℂ) →L[ℂ] ℂ).analyticAt z).add + (analyticAt_const (𝕜 := ℂ) (x := z) (v := jointMidpointShift j)) + +theorem jointSwap_analyticAt (z : Fin 6 → ℂ) : + AnalyticAt ℂ (fun w : Fin 6 → ℂ => w ∘ swapSpatialSix) z := by + apply AnalyticAt.pi + intro j + exact (ContinuousLinearMap.proj (swapSpatialSix j) : (Fin 6 → ℂ) →L[ℂ] ℂ).analyticAt z + +theorem jointOrientedComponentKernel_analyticAt {δ : ℝ} (hδ : δ ≤ 1 / 100) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (a b : Bool) (z : Fin 6 → ℂ) (hz : InJointComponent a b δ z) : + AnalyticAt ℂ (jointOrientedComponentKernel F a b) z := by + by_cases hd : a = false ∧ b = true + · rcases hd with ⟨rfl, rfl⟩ + have ha := (hF _ (fun j => (hz.desired_shift j).trans hδ)).comp + (f := fun w : Fin 6 → ℂ => fun j => w j + jointMidpointShift j) + (jointShift_analyticAt z) + change AnalyticAt ℂ (fun w : Fin 6 → ℂ => + if false = false ∧ true = true then F (fun j => w j + jointMidpointShift j) else 0) z + simpa only [Function.comp_def, and_self, ↓reduceIte] using ha + · change AnalyticAt ℂ (fun w : Fin 6 → ℂ => + if a = false ∧ b = true then F (fun j => w j + jointMidpointShift j) else 0) z + simpa only [ite_eq_right hd] using + (analyticAt_const (𝕜 := ℂ) (x := z) (v := (0 : ℂ))) + +theorem jointComponentKernel_analyticAt {δ : ℝ} (hδ : δ ≤ 1 / 100) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), AnalyticAt ℂ F z) + (a b : Bool) (z : Fin 6 → ℂ) (hz : InJointComponent a b δ z) : + AnalyticAt ℂ (jointComponentKernel F a b) z := by + have hswap := + (jointOrientedComponentKernel_analyticAt hδ F hF b a (z ∘ swapSpatialSix) hz.swap).comp + (f := fun w : Fin 6 → ℂ => w ∘ swapSpatialSix) (jointSwap_analyticAt z) + change AnalyticAt ℂ (fun w : Fin 6 → ℂ => + -(jointOrientedComponentKernel F a b w + + jointOrientedComponentKernel F b a (w ∘ swapSpatialSix))) z + simpa only [Pi.add_def, Pi.neg_def, Function.comp_def] using + ((jointOrientedComponentKernel_analyticAt hδ F hF a b z hz).add hswap).neg + +theorem jointMidpointPolynomial_analyticAt (F : (Fin 6 → ℂ) → ℂ) (n : ℕ) + (z : Fin 6 → ℂ) : + AnalyticAt ℂ (fun w => eval w (jointMidpointPolynomial F n)) z := + (AnalyticOnNhd.eval_continuousLinearMap + (ContinuousLinearMap.id ℂ (Fin 6 → ℂ)) (jointMidpointPolynomial F n)) z (Set.mem_univ z) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/JointComponentApproximation.lean b/LeanPool/VacuumBellSeparation/Polynomial/JointComponentApproximation.lean new file mode 100644 index 0000000000..0cbd6c4643 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/JointComponentApproximation.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.JointComponentGeometry + +/-! +# Actual polynomial errors on all four complex joint-region components + +The target is the negative cross kernel and its transpose, with zero on +both same-region components. The bounds use the actual selector-weighted +Taylor polynomial and a universal geometric constant independent of mass. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation +open Gaussian MvPolynomial + +/-- An oriented cross kernel, extended by zero to the other labelled components. -/ +def jointOrientedComponentKernel (F : (Fin 6 → ℂ) → ℂ) (a b : Bool) + (z : Fin 6 → ℂ) : ℂ := + if a = false ∧ b = true then F (fun j => z j + jointMidpointShift j) else 0 + +/-- The literal product-minus-joint sign on the two cross components. -/ +def jointComponentKernel (F : (Fin 6 → ℂ) → ℂ) (a b : Bool) + (z : Fin 6 → ℂ) : ℂ := + -(jointOrientedComponentKernel F a b z + + jointOrientedComponentKernel F b a (z ∘ swapSpatialSix)) + +theorem jointOriented_desired_geometric {M δ : ℝ} (hM : 0 ≤ M) + (hδ : 0 ≤ δ) (hsmall : δ ≤ 1 / 200) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), DifferentiableAt ℂ F z) + (hbound : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖F z‖ ≤ M) + (n : ℕ) (z : Fin 6 → ℂ) (hz : InJointComponent false true δ z) : + ‖F (fun j => z j + jointMidpointShift j) - eval z (jointMidpointOriented F n)‖ ≤ + 584 * M * (26214400 * δ) ^ n := by + rw [eval_jointMidpointOriented] + have h := selectedCauchyTaylor_desired_error (n := n) (R := 1 / 100) + (by norm_num) hδ (by linarith) (by linarith) hM F hF hbound + (z 0 + 1 / 2) (1 / 2 - z 3) (fun j => z j + jointMidpointShift j) + (by simpa using hz.left) (by simpa using hz.right) hz.desired_shift + have hsq : δ ^ 2 ≤ δ := by nlinarith + have h₁ : (2 * (δ / (1 / 100))) ^ n ≤ (26214400 * δ) ^ n := by + apply pow_le_pow_left₀ (by positivity) + nlinarith + have h₂ : (8 * δ) ^ (2 * n) ≤ (26214400 * δ) ^ n := by + rw [pow_mul] + apply pow_le_pow_left₀ (by positivity) + nlinarith + calc + _ ≤ M * (576 * (2 * (δ / (1 / 100))) ^ n + 8 * (8 * δ) ^ (2 * n)) := h + _ ≤ M * (576 * (26214400 * δ) ^ n + 8 * (26214400 * δ) ^ n) := by gcongr + _ = _ := by ring + +theorem jointOriented_wrong_geometric {M δ : ℝ} (hM : 0 ≤ M) + (hδ : 0 ≤ δ) (hsmall : δ ≤ 1) + (F : (Fin 6 → ℂ) → ℂ) + (hbound : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖F z‖ ≤ M) + (n : ℕ) (a b : Bool) (z : Fin 6 → ℂ) (hz : InJointComponent a b δ z) + (hwrong : ¬ (a = false ∧ b = true)) : + ‖eval z (jointMidpointOriented F n)‖ ≤ 64 * M * (26214400 * δ) ^ n := by + rw [eval_jointMidpointOriented] + have hb := hz.selector_bounds hsmall + have h := selectedCauchyTaylor_wrong_component (n := n) (R := 1 / 100) (r := 2) + (by norm_num) hM F hbound + (z 0 + 1 / 2) (1 / 2 - z 3) (fun j => z j + jointMidpointShift j) + hb.1 hb.2 (hz.wrong_selector hwrong) + (fun j => (hz.shift_bound j).trans (by linarith)) + have hsq : δ ^ 2 ≤ δ := by nlinarith + have hbase : (256 * δ) ^ 2 * (2 * max 1 (2 / (1 / 100 : ℝ))) ≤ + 26214400 * δ := by + norm_num + nlinarith + exact h.trans (mul_le_mul_of_nonneg_left + (pow_le_pow_left₀ (by positivity) hbase n) (by positivity)) + +theorem jointOriented_component_error {M δ : ℝ} (hM : 0 ≤ M) + (hδ : 0 ≤ δ) (hsmall : δ ≤ 1 / 200) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), DifferentiableAt ℂ F z) + (hbound : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖F z‖ ≤ M) + (n : ℕ) (a b : Bool) (z : Fin 6 → ℂ) (hz : InJointComponent a b δ z) : + ‖jointOrientedComponentKernel F a b z - eval z (jointMidpointOriented F n)‖ ≤ + 584 * M * (26214400 * δ) ^ n := by + by_cases hd : a = false ∧ b = true + · rcases hd with ⟨rfl, rfl⟩ + simpa only [jointOrientedComponentKernel, and_self, ↓reduceIte] using + jointOriented_desired_geometric hM hδ hsmall F hF hbound n z hz + · rw [jointOrientedComponentKernel, ite_eq_right hd, zero_sub, norm_neg] + exact (jointOriented_wrong_geometric hM hδ (by linarith) F hbound n a b z hz hd).trans + (by gcongr; norm_num) + +/-- Uniform approximation on the two cross and the two same-region components. -/ +theorem jointMidpointPolynomial_component_error {M δ : ℝ} (hM : 0 ≤ M) + (hδ : 0 ≤ δ) (hsmall : δ ≤ 1 / 200) + (F : (Fin 6 → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), DifferentiableAt ℂ F z) + (hbound : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖F z‖ ≤ M) + (n : ℕ) (a b : Bool) (z : Fin 6 → ℂ) (hz : InJointComponent a b δ z) : + ‖jointComponentKernel F a b z - eval z (jointMidpointPolynomial F n)‖ ≤ + 1168 * M * (26214400 * δ) ^ n := by + have h₁ := jointOriented_component_error hM hδ hsmall F hF hbound n a b z hz + have h₂ := jointOriented_component_error hM hδ hsmall F hF hbound n b a + (z ∘ swapSpatialSix) hz.swap + simp only [jointComponentKernel, jointMidpointPolynomial, map_neg, map_add, eval_rename] + have he : -(jointOrientedComponentKernel F a b z + + jointOrientedComponentKernel F b a (z ∘ swapSpatialSix)) - + -(eval z (jointMidpointOriented F n) + + eval (z ∘ swapSpatialSix) (jointMidpointOriented F n)) = + -((jointOrientedComponentKernel F a b z - eval z (jointMidpointOriented F n)) + + (jointOrientedComponentKernel F b a (z ∘ swapSpatialSix) - + eval (z ∘ swapSpatialSix) (jointMidpointOriented F n))) := by ring + rw [he, norm_neg] + exact (norm_add_le _ _).trans ((add_le_add h₁ h₂).trans_eq (by ring)) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/JointComponentGeometry.lean b/LeanPool/VacuumBellSeparation/Polynomial/JointComponentGeometry.lean new file mode 100644 index 0000000000..1722db7d60 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/JointComponentGeometry.lean @@ -0,0 +1,117 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.JointMidpointPolynomial + +/-! +# The four genuine joint-region components in midpoint coordinates + +The Boolean labels select the original balls centred at zero and at the +separation vector. Coordinate errors are measured in the complex supremum +norm, allowing later physical complex neighborhoods of all four components. +-/ + +@[expose] public section + +noncomputable section +namespace VacuumBellSeparation + +/-- The two centres after subtracting the midpoint and dividing by separation. -/ +def jointComponentCenter (a b : Bool) (j : Fin 6) : ℂ := + if j = 0 then (if a then 1 / 2 else -(1 / 2)) + else if j = 3 then (if b then 1 / 2 else -(1 / 2)) else 0 + +/-- In joint component given by `∀ j, ‖z j - jointComponentCenter a b j‖ ≤ δ`. -/ +def InJointComponent (a b : Bool) (δ : ℝ) (z : Fin 6 → ℂ) : Prop := + ∀ j, ‖z j - jointComponentCenter a b j‖ ≤ δ + +@[simp] theorem jointComponentCenter_swap (a b : Bool) (j : Fin 6) : + jointComponentCenter a b (swapSpatialSix j) = jointComponentCenter b a j := by + have hs0 : swapSpatialSix 0 = 3 := rfl + have hs1 : swapSpatialSix 1 = 4 := rfl + have hs2 : swapSpatialSix 2 = 5 := rfl + have hs3 : swapSpatialSix 3 = 0 := rfl + have hs4 : swapSpatialSix 4 = 1 := rfl + have hs5 : swapSpatialSix 5 = 2 := rfl + fin_cases j <;> simp [jointComponentCenter, hs0, hs1, hs2, hs3, hs4, hs5] + +theorem InJointComponent.swap {a b : Bool} {δ : ℝ} {z : Fin 6 → ℂ} + (hz : InJointComponent a b δ z) : InJointComponent b a δ (z ∘ swapSpatialSix) := by + intro j + simpa only [Function.comp_apply, jointComponentCenter_swap] using hz (swapSpatialSix j) + +theorem InJointComponent.left {a b : Bool} {δ : ℝ} {z : Fin 6 → ℂ} + (hz : InJointComponent a b δ z) : + ‖(z 0 + 1 / 2) - (if a then 1 else 0)‖ ≤ δ := by + have he : (z 0 + 1 / 2) - (if a then 1 else 0) = + z 0 - jointComponentCenter a b 0 := by + (cases a <;> simp [jointComponentCenter]); ring + rw [he] + exact hz 0 + +theorem InJointComponent.right {a b : Bool} {δ : ℝ} {z : Fin 6 → ℂ} + (hz : InJointComponent a b δ z) : + ‖(1 / 2 - z 3) - (if b then 0 else 1)‖ ≤ δ := by + have h := hz 3 + cases b + · change ‖(1 / 2 - z 3) - 1‖ ≤ δ + have he : (1 / 2 - z 3) - 1 = -(z 3 + 1 / 2) := by ring + rw [he, norm_neg] + simpa [jointComponentCenter] using h + · change ‖(1 / 2 - z 3) - 0‖ ≤ δ + have he : (1 / 2 - z 3) - 0 = -(z 3 - 1 / 2) := by ring + rw [he, norm_neg] + simpa [jointComponentCenter] using h + +theorem InJointComponent.shift_bound {a b : Bool} {δ : ℝ} {z : Fin 6 → ℂ} + (hz : InJointComponent a b δ z) (j : Fin 6) : + ‖z j + jointMidpointShift j‖ ≤ δ + 1 := by + have hc : ‖jointComponentCenter a b j + jointMidpointShift j‖ ≤ (1 : ℝ) := by + fin_cases j <;> cases a <;> cases b <;> + norm_num [jointComponentCenter, jointMidpointShift] + calc + _ = ‖(z j - jointComponentCenter a b j) + + (jointComponentCenter a b j + jointMidpointShift j)‖ := by congr 1; ring + _ ≤ ‖z j - jointComponentCenter a b j‖ + + ‖jointComponentCenter a b j + jointMidpointShift j‖ := norm_add_le _ _ + _ ≤ δ + 1 := add_le_add (hz j) hc + +theorem InJointComponent.desired_shift {δ : ℝ} {z : Fin 6 → ℂ} + (hz : InJointComponent false true δ z) (j : Fin 6) : + ‖z j + jointMidpointShift j‖ ≤ δ := by + have hc : jointComponentCenter false true j = -jointMidpointShift j := by + fin_cases j <;> norm_num [jointComponentCenter, jointMidpointShift] + simpa only [hc, sub_neg_eq_add] using hz j + +theorem InJointComponent.selector_bounds {a b : Bool} {δ : ℝ} {z : Fin 6 → ℂ} + (hz : InJointComponent a b δ z) (hδ : δ ≤ 1) : + ‖z 0 + 1 / 2‖ ≤ 2 ∧ ‖1 / 2 - z 3‖ ≤ 2 := by + constructor + · have he : (z 0 + 1 / 2) = + ((z 0 + 1 / 2) - (if a then 1 else 0)) + (if a then 1 else 0) := by ring + rw [he] + have hc : ‖(if a then 1 else 0 : ℂ)‖ ≤ (1 : ℝ) := by cases a <;> norm_num + exact (norm_add_le _ _).trans ((add_le_add hz.left hc).trans (by linarith)) + · have he : (1 / 2 - z 3) = + ((1 / 2 - z 3) - (if b then 0 else 1)) + (if b then 0 else 1) := by ring + rw [he] + have hc : ‖(if b then 0 else 1 : ℂ)‖ ≤ (1 : ℝ) := by cases b <;> norm_num + exact (norm_add_le _ _).trans ((add_le_add hz.right hc).trans (by linarith)) + +theorem InJointComponent.wrong_selector {a b : Bool} {δ : ℝ} {z : Fin 6 → ℂ} + (hz : InJointComponent a b δ z) (hwrong : ¬ (a = false ∧ b = true)) : + ‖1 - (z 0 + 1 / 2)‖ ≤ δ ∨ ‖1 - (1 / 2 - z 3)‖ ≤ δ := by + cases a + · cases b + · right + simpa only [Bool.false_eq_true, ↓reduceIte, norm_sub_rev] using hz.right + · exact (hwrong ⟨rfl, rfl⟩).elim + · left + simpa only [↓reduceIte, norm_sub_rev] using hz.left + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/JointMidpointPolynomial.lean b/LeanPool/VacuumBellSeparation/Polynomial/JointMidpointPolynomial.lean new file mode 100644 index 0000000000..df97e1854f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/JointMidpointPolynomial.lean @@ -0,0 +1,137 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.JointMidpointPolynomialDefs +public import LeanPool.VacuumBellSeparation.Polynomial.MultivariateCauchyPolynomial +public import LeanPool.VacuumBellSeparation.Polynomial.MultivariateSelector +public import LeanPool.VacuumBellSeparation.Polynomial.SelectorTaylorBounds + +/-! +# The actual joint polynomial in midpoint coordinates + +The six variables are (x-s e₀/2)/s and (y-s e₀/2)/s. +The oriented polynomial is the original pair of selectors times the +actual Taylor polynomial; the joint kernel is its negative symmetrization. +-/ + +@[expose] public section + +noncomputable section +open scoped BigOperators +namespace VacuumBellSeparation +open Gaussian MvPolynomial + +@[simp] theorem swapSpatialSix_involution (j : Fin 6) : swapSpatialSix (swapSpatialSix j) = j := by + fin_cases j <;> rfl + +theorem eval_jointMidpointOriented (F : (Fin 6 → ℂ) → ℂ) (n : ℕ) (z : Fin 6 → ℂ) : + eval z (jointMidpointOriented F n) = + selectedCauchyTaylor n (1 / 100) F (z 0 + 1 / 2) (1 / 2 - z 3) + (fun j => z j + jointMidpointShift j) := by + simp only [jointMidpointOriented, eval_mul, eval_realPolynomialSubstitution, + eval_cauchyTaylorPolynomial, jointMidpointLeft, jointMidpointRight, + eval_add, eval_mul, eval_C, eval_X, one_mul, neg_one_mul, selectedCauchyTaylor] + congr 2 + ring_nf + +theorem eval_jointMidpointPolynomial_symmetric (F : (Fin 6 → ℂ) → ℂ) + (n : ℕ) (z : Fin 6 → ℂ) : + eval (z ∘ swapSpatialSix) (jointMidpointPolynomial F n) = + eval z (jointMidpointPolynomial F n) := by + have hi : (z ∘ swapSpatialSix) ∘ swapSpatialSix = z := by + funext j + simp only [Function.comp_apply, swapSpatialSix_involution] + simp only [jointMidpointPolynomial, map_neg, map_add, eval_rename, hi] + ring + +theorem jointMidpointLeft_degree : jointMidpointLeft.totalDegree ≤ 1 := by + apply (totalDegree_add _ _).trans + apply max_le + · exact (totalDegree_mul _ _).trans (by simp) + · simp + +theorem jointMidpointRight_degree : jointMidpointRight.totalDegree ≤ 1 := by + apply (totalDegree_add _ _).trans + apply max_le + · exact (totalDegree_mul _ _).trans (by simp) + · simp + +theorem jointMidpointOriented_degree (F : (Fin 6 → ℂ) → ℂ) (n : ℕ) : + (jointMidpointOriented F n).totalDegree ≤ 9 * n := by + have hl := selectorSubstitution_totalDegree_le (2 * n) jointMidpointLeft jointMidpointLeft_degree + have hr := selectorSubstitution_totalDegree_le + (2 * n) jointMidpointRight jointMidpointRight_degree + have ht := cauchyTaylorPolynomial_totalDegree_le 6 n (1 / 100) F (fun _ => 1) jointMidpointShift + have h1 := totalDegree_mul (realPolynomialSubstitution (selector (2 * n)) jointMidpointLeft) + (realPolynomialSubstitution (selector (2 * n)) jointMidpointRight) + have h2 := totalDegree_mul + (realPolynomialSubstitution (selector (2 * n)) jointMidpointLeft * + realPolynomialSubstitution (selector (2 * n)) jointMidpointRight) + (cauchyTaylorPolynomial 6 n (1 / 100) F (fun _ => 1) jointMidpointShift) + unfold jointMidpointOriented + omega + +theorem jointMidpointPolynomial_degree (F : (Fin 6 → ℂ) → ℂ) (n : ℕ) : + (jointMidpointPolynomial F n).totalDegree ≤ 9 * n := by + unfold jointMidpointPolynomial + rw [totalDegree_neg] + apply (totalDegree_add _ _).trans + exact max_le (jointMidpointOriented_degree F n) + ((totalDegree_rename_le _ _).trans (jointMidpointOriented_degree F n)) + +theorem jointMidpointLeft_coefficientNorm : mvCoefficientNorm jointMidpointLeft ≤ 2 := by + have h := mvCoefficientNorm_affine_le (σ := Fin 6) (1 : ℂ) (1 / 2) 0 + norm_num at h + simpa [jointMidpointLeft] using h.trans (show (3 / 2 : ℝ) ≤ 2 by norm_num) + +theorem jointMidpointRight_coefficientNorm : mvCoefficientNorm jointMidpointRight ≤ 2 := by + have h := mvCoefficientNorm_affine_le (σ := Fin 6) (-1 : ℂ) (1 / 2) 3 + norm_num at h + simpa [jointMidpointRight] using h.trans (show (3 / 2 : ℝ) ≤ 2 by norm_num) + +theorem jointMidpointOriented_coefficientNorm {M : ℝ} (hM : 0 ≤ M) + (F : (Fin 6 → ℂ) → ℂ) + (hbound : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖F z‖ ≤ M) (n : ℕ) : + mvCoefficientNorm (jointMidpointOriented F n) ≤ 64 * M * (314572800 : ℝ) ^ n := by + have hshift (j : Fin 6) : ‖(1 : ℂ)‖ + ‖jointMidpointShift j‖ ≤ (3 / 2 : ℝ) := by + unfold jointMidpointShift + split_ifs <;> norm_num + have ht := cauchyTaylorPolynomial_coefficientNorm_le 6 n (R := 1 / 100) + (by norm_num) hM (show (0 : ℝ) ≤ 3 / 2 by norm_num) F hbound + (fun _ => 1) jointMidpointShift hshift + norm_num at ht + have hl := selectorSubstitution_coefficientNorm_le + (2 * n) jointMidpointLeft jointMidpointLeft_coefficientNorm + have hr := selectorSubstitution_coefficientNorm_le + (2 * n) jointMidpointRight jointMidpointRight_coefficientNorm + unfold jointMidpointOriented + calc + _ ≤ (mvCoefficientNorm (realPolynomialSubstitution (selector (2 * n)) jointMidpointLeft) * + mvCoefficientNorm (realPolynomialSubstitution (selector (2 * n)) jointMidpointRight)) * + mvCoefficientNorm (cauchyTaylorPolynomial 6 n (1 / 100) F + (fun _ => 1) jointMidpointShift) := + (mvCoefficientNorm_mul_le _ _).trans + (mul_le_mul_of_nonneg_right (mvCoefficientNorm_mul_le _ _) (mvCoefficientNorm_nonneg _)) + _ ≤ (32 ^ (2 * n) * 32 ^ (2 * n)) * (M * 300 ^ n * 64) := by + gcongr <;> exact mvCoefficientNorm_nonneg _ + _ = 64 * M * (((32 : ℝ) ^ 2 * 32 ^ 2) * 300) ^ n := by + simp only [mul_pow, pow_mul] + ring + _ = _ := by norm_num + +theorem jointMidpointPolynomial_coefficientNorm {M : ℝ} (hM : 0 ≤ M) + (F : (Fin 6 → ℂ) → ℂ) + (hbound : ∀ z ∈ coordinateClosedPolydisc 6 (1 / 100), ‖F z‖ ≤ M) (n : ℕ) : + mvCoefficientNorm (jointMidpointPolynomial F n) ≤ 128 * M * (314572800 : ℝ) ^ n := by + unfold jointMidpointPolynomial + rw [mvCoefficientNorm_neg] + have hb := jointMidpointOriented_coefficientNorm hM F hbound n + have hr := mvCoefficientNorm_rename_le swapSpatialSix (jointMidpointOriented F n) + exact (mvCoefficientNorm_add_le _ _).trans (by linarith) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/JointMidpointPolynomialDefs.lean b/LeanPool/VacuumBellSeparation/Polynomial/JointMidpointPolynomialDefs.lean new file mode 100644 index 0000000000..811d926b23 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/JointMidpointPolynomialDefs.lean @@ -0,0 +1,52 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.MultivariateCauchyPolynomial +public import LeanPool.VacuumBellSeparation.Polynomial.MultivariateSelector +public import LeanPool.VacuumBellSeparation.Polynomial.SelectorTaylorBounds + +/-! +# Literal statement construction extracted from Polynomial/JointMidpointPolynomial + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +noncomputable section +open scoped BigOperators +namespace VacuumBellSeparation +open Gaussian MvPolynomial + +/-- Joint midpoint shift defined as `if j = 0 then 1 / 2 else if j = 3 then -(1 / 2) else 0`. -/ +def jointMidpointShift (j : Fin 6) : ℂ := + if j = 0 then 1 / 2 else if j = 3 then -(1 / 2) else 0 + +/-- Joint midpoint left given by `C 1 * X 0 + C (1 / 2)`. -/ +def jointMidpointLeft : MvPolynomial (Fin 6) ℂ := C 1 * X 0 + C (1 / 2) + +/-- Joint midpoint right given by `C (-1) * X 3 + C (1 / 2)`. -/ +def jointMidpointRight : MvPolynomial (Fin 6) ℂ := C (-1) * X 3 + C (1 / 2) + +/-- Joint midpoint oriented. -/ +def jointMidpointOriented (F : (Fin 6 → ℂ) → ℂ) (n : ℕ) : MvPolynomial (Fin 6) ℂ := + realPolynomialSubstitution (selector (2 * n)) jointMidpointLeft * + realPolynomialSubstitution (selector (2 * n)) jointMidpointRight * + cauchyTaylorPolynomial 6 n (1 / 100) F (fun _ => 1) jointMidpointShift + +/-- Swap the actual two triples. -/ +def swapSpatialSix (j : Fin 6) : Fin 6 := + Fin.addCases (fun i : Fin 3 => Fin.natAdd 3 i) (fun i : Fin 3 => Fin.castAdd 3 i) j + + +/-- Product-minus-joint sign and the actual transpose. -/ +def jointMidpointPolynomial (F : (Fin 6 → ℂ) → ℂ) (n : ℕ) : MvPolynomial (Fin 6) ℂ := + -(jointMidpointOriented F n + rename swapSpatialSix (jointMidpointOriented F n)) + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/MultivariateCauchyPolynomial.lean b/LeanPool/VacuumBellSeparation/Polynomial/MultivariateCauchyPolynomial.lean new file mode 100644 index 0000000000..a4f9848afa --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/MultivariateCauchyPolynomial.lean @@ -0,0 +1,132 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.MultivariateCoefficientNorm +public import LeanPool.VacuumBellSeparation.Polynomial.TotalDegreeCauchy + +/-! +# Actual multivariable Taylor polynomials and affine coefficient bounds + +The polynomial has the contour coefficients, followed by an explicit +coordinatewise affine substitution. Its evaluation is exactly the +previous finite Taylor sum. Degree and coefficient l1 bounds concern +the actual polynomial, including cancellation and zero coefficients. +-/ + +@[expose] public section + +noncomputable section +open scoped BigOperators +namespace VacuumBellSeparation +open Gaussian MvPolynomial + +/-- Literal affine substitution into the contour Taylor polynomial. -/ +def cauchyTaylorPolynomial (d N : ℕ) (R : ℝ) (F : (Fin d → ℂ) → ℂ) + (a b : Fin d → ℂ) : MvPolynomial (Fin d) ℂ := + ∑ k ∈ multiIndexBelow d N, C (polydiscCoefficient d R F k) * + ∏ j, (C (a j) * X j + C (b j)) ^ k j + +theorem eval_cauchyTaylorPolynomial (d N : ℕ) (R : ℝ) (F : (Fin d → ℂ) → ℂ) + (a b z : Fin d → ℂ) : + eval z (cauchyTaylorPolynomial d N R F a b) = + cauchyTaylor d N R F (fun j => a j * z j + b j) := by + simp [cauchyTaylorPolynomial, cauchyTaylor] + +theorem cauchyTaylorPolynomial_totalDegree_le (d N : ℕ) (R : ℝ) + (F : (Fin d → ℂ) → ℂ) (a b : Fin d → ℂ) : + (cauchyTaylorPolynomial d N R F a b).totalDegree ≤ N := by + classical + have hlin (j : Fin d) : (C (a j) * X j + C (b j) : MvPolynomial (Fin d) ℂ).totalDegree ≤ 1 := by + apply (totalDegree_add _ _).trans + apply max_le + · exact (totalDegree_mul _ _).trans (by simp) + · simp + apply totalDegree_finsetSum_le + intro k hk + have hkN := (mem_multiIndexBelow k).mp hk + apply (totalDegree_mul _ _).trans + simp only [totalDegree_C, zero_add] + apply (totalDegree_finsetProd _ _).trans + apply le_trans (Finset.sum_le_sum (fun j _ => + (totalDegree_pow _ _).trans (Nat.mul_le_mul_left _ (hlin j)))) + simpa only [mul_one] using hkN.le + +/-- A finite total-degree power sum, without a polynomial coefficient count. -/ +theorem sum_totalDegree_power_le (d N : ℕ) {B : ℝ} (hB : 1 ≤ B) : + (∑ k ∈ multiIndexBelow d N, B ^ (∑ j, k j)) ≤ (2 * B) ^ N * 2 ^ d := by + classical + have hg := (hasSum_half_multiIndex d).mul_left ((2 * B) ^ N) + calc + _ ≤ ∑ k ∈ multiIndexBelow d N, + (2 * B) ^ N * (1 / 2 : ℝ) ^ (∑ j, k j) := by + apply Finset.sum_le_sum + intro k hk + have hkN := (mem_multiIndexBelow k).mp hk + calc + _ = (2 * B) ^ (∑ j, k j) * (1 / 2 : ℝ) ^ (∑ j, k j) := by + rw [← mul_pow] + congr 1 + ring + _ ≤ _ := mul_le_mul_of_nonneg_right + (pow_le_pow_right₀ (by linarith) hkN.le) (by positivity) + _ ≤ ∑' k : Fin d → ℕ, (2 * B) ^ N * (1 / 2 : ℝ) ^ (∑ j, k j) := + hg.summable.sum_le_tsum _ (fun _ _ => by positivity) + _ = _ := hg.tsum_eq + +/-- Coefficient norm after an affine change of coordinates. -/ +theorem cauchyTaylorPolynomial_coefficientNorm_le (d N : ℕ) {R M H : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) (hH : 0 ≤ H) + (F : (Fin d → ℂ) → ℂ) + (hbound : ∀ z ∈ coordinateClosedPolydisc d R, ‖F z‖ ≤ M) + (a b : Fin d → ℂ) (hab : ∀ j, ‖a j‖ + ‖b j‖ ≤ H) : + mvCoefficientNorm (cauchyTaylorPolynomial d N R F a b) ≤ + M * (2 * max 1 (H / R)) ^ N * 2 ^ d := by + classical + have hcoeff (k : Fin d → ℕ) : + ‖polydiscCoefficient d R F k‖ ≤ M * R⁻¹ ^ (∑ j, k j) := by + simpa only [Finset.prod_pow_eq_pow_sum] using + polydiscCoefficient_norm_le d hR hM F hbound k + have hlin (j : Fin d) : + mvCoefficientNorm (C (a j) * X j + C (b j) : MvPolynomial (Fin d) ℂ) ≤ H := + (mvCoefficientNorm_affine_le _ _ _).trans (hab j) + have hterm (k : Fin d → ℕ) : + mvCoefficientNorm (C (polydiscCoefficient d R F k) * + ∏ j, (C (a j) * X j + C (b j)) ^ k j) ≤ M * max 1 (H / R) ^ (∑ j, k j) := by + calc + _ ≤ ‖polydiscCoefficient d R F k‖ * + mvCoefficientNorm (∏ j, (C (a j) * X j + C (b j)) ^ k j) := by + simpa only [mvCoefficientNorm_C] using mvCoefficientNorm_mul_le + (C (polydiscCoefficient d R F k)) (∏ j, (C (a j) * X j + C (b j)) ^ k j) + _ ≤ (M * R⁻¹ ^ (∑ j, k j)) * (∏ j, H ^ k j) := by + apply mul_le_mul (hcoeff k) _ (mvCoefficientNorm_nonneg _) (by positivity) + apply (mvCoefficientNorm_prod_le _ _).trans + apply Finset.prod_le_prod₀ + · intro j _ + exact mvCoefficientNorm_nonneg _ + · intro j _ + exact (mvCoefficientNorm_pow_le _ _).trans + (pow_le_pow_left₀ (mvCoefficientNorm_nonneg _) (hlin j) _) + _ = M * (H / R) ^ (∑ j, k j) := by + rw [Finset.prod_pow_eq_pow_sum, mul_assoc, ← mul_pow] + congr 2 + ring + _ ≤ _ := mul_le_mul_of_nonneg_left + (pow_le_pow_left₀ (div_nonneg hH hR.le) (le_max_right _ _) _) hM + calc + _ ≤ ∑ k ∈ multiIndexBelow d N, + mvCoefficientNorm (C (polydiscCoefficient d R F k) * + ∏ j, (C (a j) * X j + C (b j)) ^ k j) := mvCoefficientNorm_sum_le _ _ + _ ≤ ∑ k ∈ multiIndexBelow d N, M * max 1 (H / R) ^ (∑ j, k j) := + Finset.sum_le_sum (fun k _ => hterm k) + _ = M * ∑ k ∈ multiIndexBelow d N, max 1 (H / R) ^ (∑ j, k j) := + (Finset.mul_sum _ _ _).symm + _ ≤ M * ((2 * max 1 (H / R)) ^ N * 2 ^ d) := + mul_le_mul_of_nonneg_left (sum_totalDegree_power_le d N (le_max_left _ _)) hM + _ = _ := by ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/MultivariateCoefficientNorm.lean b/LeanPool/VacuumBellSeparation/Polynomial/MultivariateCoefficientNorm.lean new file mode 100644 index 0000000000..bec0848876 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/MultivariateCoefficientNorm.lean @@ -0,0 +1,121 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Algebra.MvPolynomial.Degrees +public import Mathlib.Algebra.MvPolynomial.Eval +public import Mathlib.Analysis.Complex.Basic + +/-! # The actual coefficient l1 norm of a multivariable polynomial -/ + +@[expose] public section + +noncomputable section +open scoped BigOperators + +namespace VacuumBellSeparation + +variable {σ : Type*} + +/-- Finite l1 norm of the actual complex coefficient vector. -/ +def mvCoefficientNorm (p : MvPolynomial σ ℂ) : ℝ := + ∑ k ∈ p.support, ‖p.coeff k‖ + +theorem mvCoefficientNorm_nonneg (p : MvPolynomial σ ℂ) : 0 ≤ mvCoefficientNorm p := + Finset.sum_nonneg (fun _ _ => norm_nonneg _) + +@[simp] theorem mvCoefficientNorm_zero : mvCoefficientNorm (0 : MvPolynomial σ ℂ) = 0 := by + simp [mvCoefficientNorm] + +theorem mvCoefficientNorm_eq_sum {p : MvPolynomial σ ℂ} {s : Finset (σ →₀ ℕ)} + (h : p.support ⊆ s) : mvCoefficientNorm p = ∑ k ∈ s, ‖p.coeff k‖ := by + classical + apply Finset.sum_subset h + intro k hk hkp + simp only [MvPolynomial.mem_support_iff, not_not] at hkp + simp only [hkp, norm_zero] + +theorem mvCoefficientNorm_add_le (p q : MvPolynomial σ ℂ) : + mvCoefficientNorm (p + q) ≤ mvCoefficientNorm p + mvCoefficientNorm q := by + classical + rw [mvCoefficientNorm_eq_sum (MvPolynomial.support_add (p := p) (q := q)), + mvCoefficientNorm_eq_sum (Finset.subset_union_left : p.support ⊆ p.support ∪ q.support), + mvCoefficientNorm_eq_sum (Finset.subset_union_right : q.support ⊆ p.support ∪ q.support), + ← Finset.sum_add_distrib] + exact Finset.sum_le_sum (fun k _ => by + rw [AddMonoidAlgebra.coeff_add] + exact norm_add_le (p.coeff k) (q.coeff k)) + +theorem mvCoefficientNorm_sum_le {ι : Type*} (s : Finset ι) (p : ι → MvPolynomial σ ℂ) : + mvCoefficientNorm (∑ i ∈ s, p i) ≤ ∑ i ∈ s, mvCoefficientNorm (p i) := + Finset.le_sum_of_subadditive mvCoefficientNorm mvCoefficientNorm_zero.le + mvCoefficientNorm_add_le s p + +@[simp] theorem mvCoefficientNorm_monomial (k : σ →₀ ℕ) (a : ℂ) : + mvCoefficientNorm (MvPolynomial.monomial k a) = ‖a‖ := by + classical + change (MvPolynomial.monomial k a).coeff.sum (fun _ b => ‖b‖) = _ + exact MvPolynomial.sum_monomial_eq (by simp) + +@[simp] theorem mvCoefficientNorm_C (a : ℂ) : + mvCoefficientNorm (MvPolynomial.C a : MvPolynomial σ ℂ) = ‖a‖ := + mvCoefficientNorm_monomial 0 a + +@[simp] theorem mvCoefficientNorm_one : mvCoefficientNorm (1 : MvPolynomial σ ℂ) = 1 := by + simpa only [map_one, norm_one] using (mvCoefficientNorm_C (σ := σ) (1 : ℂ)) + +@[simp] theorem mvCoefficientNorm_X (j : σ) : + mvCoefficientNorm (MvPolynomial.X j : MvPolynomial σ ℂ) = 1 := by + simpa only [MvPolynomial.X, norm_one] using + mvCoefficientNorm_monomial (Finsupp.single j 1) (1 : ℂ) + +theorem mvCoefficientNorm_mul_le (p q : MvPolynomial σ ℂ) : + mvCoefficientNorm (p * q) ≤ mvCoefficientNorm p * mvCoefficientNorm q := by + classical + have heq : p * q = ∑ i ∈ p.support, ∑ j ∈ q.support, + MvPolynomial.monomial (i + j) (p.coeff i * q.coeff j) := by + simp only [← MvPolynomial.monomial_mul_monomial, ← Finset.mul_sum, ← Finset.sum_mul, + MvPolynomial.support_sum_monomial_coeff] + rw [heq] + calc + _ ≤ ∑ i ∈ p.support, mvCoefficientNorm (∑ j ∈ q.support, + MvPolynomial.monomial (i + j) (p.coeff i * q.coeff j)) := mvCoefficientNorm_sum_le _ _ + _ ≤ ∑ i ∈ p.support, ∑ j ∈ q.support, + mvCoefficientNorm (MvPolynomial.monomial (i + j) (p.coeff i * q.coeff j)) := + Finset.sum_le_sum (fun _ _ => mvCoefficientNorm_sum_le _ _) + _ = _ := by + simp only [mvCoefficientNorm_monomial, norm_mul] + simp only [mvCoefficientNorm, Finset.mul_sum, Finset.sum_mul] + exact Finset.sum_comm + +theorem mvCoefficientNorm_pow_le (p : MvPolynomial σ ℂ) (n : ℕ) : + mvCoefficientNorm (p ^ n) ≤ mvCoefficientNorm p ^ n := by + induction n with + | zero => simp + | succ n ih => + rw [pow_succ, pow_succ] + exact (mvCoefficientNorm_mul_le _ _).trans + (mul_le_mul_of_nonneg_right ih (mvCoefficientNorm_nonneg p)) + +theorem mvCoefficientNorm_prod_le {ι : Type*} (s : Finset ι) (p : ι → MvPolynomial σ ℂ) : + mvCoefficientNorm (∏ i ∈ s, p i) ≤ ∏ i ∈ s, mvCoefficientNorm (p i) := by + classical + induction s using Finset.induction_on with + | empty => simp + | @insert i s hi ih => + rw [Finset.prod_insert hi, Finset.prod_insert hi] + exact (mvCoefficientNorm_mul_le _ _).trans + (mul_le_mul_of_nonneg_left ih (mvCoefficientNorm_nonneg _)) + +theorem mvCoefficientNorm_affine_le (a b : ℂ) (j : σ) : + mvCoefficientNorm (MvPolynomial.C a * MvPolynomial.X j + MvPolynomial.C b) ≤ ‖a‖ + ‖b‖ := by + exact (mvCoefficientNorm_add_le _ _).trans (by + have h := mvCoefficientNorm_mul_le (MvPolynomial.C a) (MvPolynomial.X j) + simp only [mvCoefficientNorm_C, mvCoefficientNorm_X, mul_one] at h ⊢ + linarith) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/MultivariateSelector.lean b/LeanPool/VacuumBellSeparation/Polynomial/MultivariateSelector.lean new file mode 100644 index 0000000000..584130c8a7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/MultivariateSelector.lean @@ -0,0 +1,104 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.MultivariateCoefficientNorm +public import LeanPool.VacuumBellSeparation.Polynomial.ComplexCoefficientBounds +public import Mathlib.Algebra.MvPolynomial.CommRing + +/-! # The original real selector substituted into an actual multivariable polynomial -/ + +@[expose] public section + +noncomputable section +open scoped BigOperators +namespace VacuumBellSeparation + +variable {σ τ : Type*} + +/-- Substitution of q into the original real polynomial, with complex coefficients. -/ +def realPolynomialSubstitution (p : Polynomial ℝ) (q : MvPolynomial σ ℂ) : MvPolynomial σ ℂ := + ∑ i ∈ Finset.range (p.natDegree + 1), MvPolynomial.C (p.coeff i : ℂ) * q ^ i + +theorem eval_realPolynomialSubstitution (p : Polynomial ℝ) (q : MvPolynomial σ ℂ) + (z : σ → ℂ) : + MvPolynomial.eval z (realPolynomialSubstitution p q) = + complexPolynomialEval p (MvPolynomial.eval z q) := by + rw [complexPolynomialEval_sum] + simp only [realPolynomialSubstitution, MvPolynomial.eval_sum, MvPolynomial.eval_mul, + MvPolynomial.eval_pow, MvPolynomial.eval_C] + +theorem realPolynomialSubstitution_totalDegree_le (p : Polynomial ℝ) + (q : MvPolynomial σ ℂ) : + (realPolynomialSubstitution p q).totalDegree ≤ p.natDegree * q.totalDegree := by + apply MvPolynomial.totalDegree_finsetSum_le + intro i hi + apply (MvPolynomial.totalDegree_mul _ _).trans + simp only [MvPolynomial.totalDegree_C, zero_add] + exact (MvPolynomial.totalDegree_pow q i).trans + (Nat.mul_le_mul_right _ (Nat.le_of_lt_succ (Finset.mem_range.mp hi))) + +theorem realPolynomialSubstitution_coefficientNorm_le (p : Polynomial ℝ) + (q : MvPolynomial σ ℂ) {B : ℝ} (hB : 1 ≤ B) (hq : mvCoefficientNorm q ≤ B) : + mvCoefficientNorm (realPolynomialSubstitution p q) ≤ coeffAbsSum p * B ^ p.natDegree := by + rw [coeffAbsSum, Finset.sum_mul] + apply (mvCoefficientNorm_sum_le _ _).trans + apply Finset.sum_le_sum + intro i hi + calc + _ ≤ ‖(p.coeff i : ℂ)‖ * mvCoefficientNorm (q ^ i) := by + simpa only [mvCoefficientNorm_C] using mvCoefficientNorm_mul_le (MvPolynomial.C + (p.coeff i : ℂ)) (q ^ i) + _ ≤ |p.coeff i| * B ^ p.natDegree := by + rw [Complex.norm_real, Real.norm_eq_abs] + apply mul_le_mul_of_nonneg_left _ (abs_nonneg _) + exact (mvCoefficientNorm_pow_le q i).trans + ((pow_le_pow_left₀ (mvCoefficientNorm_nonneg q) hq i).trans + (pow_le_pow_right₀ hB (Nat.le_of_lt_succ (Finset.mem_range.mp hi)))) + +theorem selectorSubstitution_totalDegree_le (N : ℕ) (q : MvPolynomial σ ℂ) + (hq : q.totalDegree ≤ 1) : + (realPolynomialSubstitution (selector N) q).totalDegree ≤ 2 * N := by + have hdeg := realPolynomialSubstitution_totalDegree_le (selector N) q + have hsel := selector_natDegree_le N + have hmul := Nat.mul_le_mul_left (selector N).natDegree hq + omega + +theorem selectorSubstitution_coefficientNorm_le (N : ℕ) (q : MvPolynomial σ ℂ) + (hq : mvCoefficientNorm q ≤ 2) : + mvCoefficientNorm (realPolynomialSubstitution (selector N) q) ≤ 32 ^ N := by + calc + _ ≤ coeffAbsSum (selector N) * 2 ^ (selector N).natDegree := + realPolynomialSubstitution_coefficientNorm_le _ _ (by norm_num) hq + _ ≤ 8 ^ N * 2 ^ (2 * N) := mul_le_mul (coeffAbsSum_selector_le N) + (pow_le_pow_right₀ (by norm_num) ((selector_natDegree_le N).trans (Nat.sub_le _ _))) + (by positivity) (by positivity) + _ = _ := by rw [pow_mul, ← mul_pow]; norm_num + +@[simp] theorem mvCoefficientNorm_neg (p : MvPolynomial σ ℂ) : + mvCoefficientNorm (-p) = mvCoefficientNorm p := by + simp [mvCoefficientNorm] + +theorem mvCoefficientNorm_rename_le (f : σ → τ) (p : MvPolynomial σ ℂ) : + mvCoefficientNorm (MvPolynomial.rename f p) ≤ mvCoefficientNorm p := by + classical + have heq : MvPolynomial.rename f p = + ∑ k ∈ p.support, MvPolynomial.monomial (Finsupp.mapDomain f k) (p.coeff k) := by + calc + _ = MvPolynomial.rename f (∑ k ∈ p.support, MvPolynomial.monomial k (p.coeff k)) := by + rw [MvPolynomial.support_sum_monomial_coeff] + _ = _ := by simp only [map_sum, MvPolynomial.rename_monomial] + rw [heq] + calc + _ ≤ ∑ k ∈ p.support, + mvCoefficientNorm (MvPolynomial.monomial (Finsupp.mapDomain f k) (p.coeff k)) := + mvCoefficientNorm_sum_le _ _ + _ = _ := by + simp only [mvCoefficientNorm_monomial] + rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/Selector.lean b/LeanPool/VacuumBellSeparation/Polynomial/Selector.lean new file mode 100644 index 0000000000..f6a085adf6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/Selector.lean @@ -0,0 +1,354 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.SelectorDefs +public import Mathlib.Algebra.Order.Star.Int +public import Mathlib.Algebra.Ring.IsFormallyReal +public import Mathlib.RingTheory.PowerSeries.Trunc +public import Mathlib.RingTheory.PowerSeries.WellKnown +public import Mathlib.Tactic.Basify +public import Mathlib.Tactic.ENatToNat +public import Mathlib.Tactic.ReduceModChar +public import Mathlib.Tactic.TypeStar +import Mathlib.Tactic.Positivity + +/-! +# The polynomial selector of equation (7.4) + +`poly_N(z) = (1 - z)^N Σ_{k=0}^{N-1} C(N+k-1, k) z^k` (manuscript, `eq:selectors`). Proved here: + +* `selector_natDegree_le`: its degree is at most `2N - 1`; `selector_natDegree`: for `N ≥ 1` + the degree is exactly `2N - 1`, with leading coefficient `(-1)^N C(2N-2, N-1)` + (`selector_leadingCoeff`, from `coeff_selector_two_mul_sub_one`); for `N = 0`, `poly_0 = 0`; +* `coeff_selector_of_lt`: `poly_N - 1` has a zero of order `N` at zero (the constant coefficient + is `1` and the coefficients of `z, …, z^{N-1}` vanish), from the expansion + `(1 - z)^{-N} = Σ_k C(N+k-1, k) z^k`; +* `one_sub_X_pow_dvd_selector`: `poly_N` has a zero of order `N` at one (`(1 - z)^N` divides it); +* `coeffAbsSum_selector_le`: the sum of the absolute values of its coefficients, + `coeffAbsSum`, is at most `8^N = 2^N · 4^N`: submultiplicativity (`coeffAbsSum_mul_le`), + `coeffAbsSum ((1 - z)^N) ≤ 2^N` and the binomial bound `Σ_{k ?_) + have hk' : k < N := Finset.mem_range.mp hk + refine (natDegree_C_mul_X_pow_le _ _).trans ?_ + omega + refine (natDegree_mul_le).trans ?_ + omega + +/-- The truncated binomial series `Σ_{k ((d + n).choose d : ℝ)) := by + ext j + rw [PowerSeries.coeff_trunc, finsetSum_coeff] + simp only [coeff_C_mul_X_pow, PowerSeries.coeff_mk] + rw [Finset.sum_ite_eq (Finset.range (d + 1)) j] + simp only [Finset.mem_range] + split_ifs with h + · have e : d + 1 + j - 1 = d + j := by omega + rw [e, Nat.choose_symm_add] + · rfl + +/-- `poly_N` equals `1` to order `N - 1` at zero. -/ +theorem coeff_selector_of_lt {N n : ℕ} (hn : n < N) : + (selector N).coeff n = if n = 0 then 1 else 0 := by + obtain ⟨d, rfl⟩ : ∃ d, N = d + 1 := ⟨N - 1, by omega⟩ + have hf : (PowerSeries.mk fun n => ((d + n).choose d : ℝ)) * + ((1 : PowerSeries ℝ) - PowerSeries.X) ^ (d + 1) = 1 := + PowerSeries.mk_add_choose_mul_one_sub_pow_eq_one ℝ d + have hcoe : (((1 - X : ℝ[X]) ^ (d + 1) : ℝ[X]) : PowerSeries ℝ) + = ((1 : PowerSeries ℝ) - PowerSeries.X) ^ (d + 1) := by + rw [Polynomial.coe_pow] + congr 1 + ext k + rw [Polynomial.coeff_coe] + simp only [coeff_sub, coeff_one, coeff_X, map_sub, PowerSeries.coeff_one, + PowerSeries.coeff_X] + split_ifs <;> first | rfl | (exfalso; omega) + have hsel : ((selector (d + 1) : ℝ[X]) : PowerSeries ℝ) + = ((1 : PowerSeries ℝ) - PowerSeries.X) ^ (d + 1) * + ((PowerSeries.trunc (d + 1) (PowerSeries.mk fun n => ((d + n).choose d : ℝ)) : ℝ[X]) : + PowerSeries ℝ) := by + rw [selector, Polynomial.coe_mul, hcoe, selector_sum_eq_trunc] + have htr : PowerSeries.trunc (d + 1) ((selector (d + 1) : ℝ[X]) : PowerSeries ℝ) = 1 := by + rw [hsel, mul_comm, PowerSeries.trunc_trunc_mul, hf, PowerSeries.trunc_one] + have hc := congrArg (fun p : ℝ[X] => p.coeff n) htr + simpa [PowerSeries.coeff_trunc, hn, Polynomial.coeff_coe, Polynomial.coeff_one] using hc + +/-! ### The degree is exactly `2N - 1` -/ + +/-- The coefficient of `z^{2N-1}` in `poly_N` is `(-1)^N C(2N-2, N-1)`: the product of the +coefficient `(-1)^N` of `z^N` in `(1 - z)^N` and the top coefficient `C(2N-2, N-1)` of the +truncated series. -/ +theorem coeff_selector_two_mul_sub_one {N : ℕ} (hN : 1 ≤ N) : + (selector N).coeff (2 * N - 1) = (-1) ^ N * ((2 * N - 2).choose (N - 1) : ℝ) := by + have h1 : (1 - X : ℝ[X]).natDegree ≤ 1 := by + refine (natDegree_sub_le _ _).trans ?_ + simp + have hpow : ((1 - X : ℝ[X]) ^ N).natDegree ≤ N * 1 := + natDegree_pow_le.trans (Nat.mul_le_mul le_rfl h1) + have hsum : (∑ k ∈ Finset.range N, C (((N + k - 1).choose k : ℕ) : ℝ) * X ^ k).natDegree + ≤ N - 1 := by + refine natDegree_sum_le_of_forall_le _ _ (fun k hk => ?_) + have hk' : k < N := Finset.mem_range.mp hk + refine (natDegree_C_mul_X_pow_le _ _).trans ?_ + omega + have hX : (1 - X : ℝ[X]).coeff 1 = -1 := by + simp [coeff_one] + have hS : (∑ k ∈ Finset.range N, C (((N + k - 1).choose k : ℕ) : ℝ) * X ^ k).coeff (N - 1) + = ((2 * N - 2).choose (N - 1) : ℝ) := by + rw [finsetSum_coeff] + simp only [coeff_C_mul_X_pow] + rw [Finset.sum_ite_eq (Finset.range N) (N - 1), + ite_eq_left (Finset.mem_range.mpr (by omega : N - 1 < N))] + have e : N + (N - 1) - 1 = 2 * N - 2 := by omega + rw [e] + have e : 2 * N - 1 = N * 1 + (N - 1) := by omega + rw [e, selector, coeff_mul_add_eq_of_natDegree_le hpow hsum, coeff_pow_of_natDegree_le h1, hX, + hS] + +/-- The degree of `poly_N` is exactly `2N - 1` for `N ≥ 1`. -/ +theorem selector_natDegree {N : ℕ} (hN : 1 ≤ N) : (selector N).natDegree = 2 * N - 1 := by + refine natDegree_eq_of_le_of_coeff_ne_zero (selector_natDegree_le N) ?_ + rw [coeff_selector_two_mul_sub_one hN] + refine mul_ne_zero (pow_ne_zero _ (by norm_num)) ?_ + exact_mod_cast (Nat.choose_pos (by omega : N - 1 ≤ 2 * N - 2)).ne' + +/-- The leading coefficient of `poly_N` is `(-1)^N C(2N-2, N-1)` for `N ≥ 1`. -/ +theorem selector_leadingCoeff {N : ℕ} (hN : 1 ≤ N) : + (selector N).leadingCoeff = (-1) ^ N * ((2 * N - 2).choose (N - 1) : ℝ) := by + rw [leadingCoeff, selector_natDegree hN, coeff_selector_two_mul_sub_one hN] + +/-! ### The sum of absolute coefficients -/ + +theorem coeffAbsSum_nonneg (p : ℝ[X]) : 0 ≤ coeffAbsSum p := + Finset.sum_nonneg fun _ _ => abs_nonneg _ + +/-- `coeffAbsSum p` may be computed over any range `{0, …, n - 1}` past the degree. -/ +theorem coeffAbsSum_eq_sum_range {p : ℝ[X]} {n : ℕ} (hn : p.natDegree < n) : + coeffAbsSum p = ∑ i ∈ Finset.range n, |p.coeff i| := by + rw [coeffAbsSum] + refine Finset.sum_subset ?_ ?_ + · intro i hi + rw [Finset.mem_range] at hi ⊢ + omega + · intro i hi hi' + rw [Finset.mem_range] at hi hi' + have hlt : p.natDegree < i := by omega + rw [coeff_eq_zero_of_natDegree_lt hlt, abs_zero] + +theorem coeffAbsSum_zero : coeffAbsSum 0 = 0 := by + simp [coeffAbsSum] + +theorem coeffAbsSum_C (a : ℝ) : coeffAbsSum (C a) = |a| := by + simp [coeffAbsSum] + +theorem coeffAbsSum_one : coeffAbsSum 1 = 1 := by + simp [coeffAbsSum] + +/-- The triangle inequality for `coeffAbsSum`. -/ +theorem coeffAbsSum_add_le (p q : ℝ[X]) : + coeffAbsSum (p + q) ≤ coeffAbsSum p + coeffAbsSum q := by + obtain ⟨n, hp, hq, hpq⟩ : ∃ n, p.natDegree < n ∧ q.natDegree < n ∧ (p + q).natDegree < n := + ⟨p.natDegree + q.natDegree + (p + q).natDegree + 1, by omega, by omega, by omega⟩ + rw [coeffAbsSum_eq_sum_range hpq, coeffAbsSum_eq_sum_range hp, coeffAbsSum_eq_sum_range hq, + ← Finset.sum_add_distrib] + refine Finset.sum_le_sum fun i _ => ?_ + rw [coeff_add] + exact abs_add_le _ _ + +theorem coeffAbsSum_sum_le {ι : Type*} (s : Finset ι) (f : ι → ℝ[X]) : + coeffAbsSum (∑ i ∈ s, f i) ≤ ∑ i ∈ s, coeffAbsSum (f i) := + Finset.le_sum_of_subadditive coeffAbsSum coeffAbsSum_zero.le coeffAbsSum_add_le s f + +/-- Multiplication by a monomial `a z^n` multiplies `coeffAbsSum` by `|a|`. -/ +theorem coeffAbsSum_C_mul_X_pow_mul (a : ℝ) (n : ℕ) (q : ℝ[X]) : + coeffAbsSum (C a * X ^ n * q) = |a| * coeffAbsSum q := by + have hdeg : (C a * X ^ n * q).natDegree < n + (q.natDegree + 1) := by + have h1 : (C a * X ^ n * q).natDegree ≤ (C a * X ^ n).natDegree + q.natDegree := + natDegree_mul_le + have h2 : (C a * X ^ n).natDegree ≤ n := natDegree_C_mul_X_pow_le a n + omega + have hcoeff : ∀ k, (C a * X ^ n * q).coeff k = if n ≤ k then a * q.coeff (k - n) else 0 := by + intro k + rw [mul_assoc, coeff_C_mul, coeff_X_pow_mul', mul_ite, mul_zero] + have hq : coeffAbsSum q = ∑ i ∈ Finset.range (q.natDegree + 1), |q.coeff i| := rfl + rw [coeffAbsSum_eq_sum_range hdeg, Finset.sum_range_add, hq, Finset.mul_sum] + have h0 : ∑ i ∈ Finset.range n, |(C a * X ^ n * q).coeff i| = 0 := by + refine Finset.sum_eq_zero fun i hi => ?_ + have hi' : ¬ n ≤ i := by + have := Finset.mem_range.mp hi + omega + rw [hcoeff, ite_eq_right hi', abs_zero] + rw [h0, zero_add] + refine Finset.sum_congr rfl fun j _ => ?_ + rw [hcoeff, ite_eq_left (Nat.le_add_right n j), Nat.add_sub_cancel_left, abs_mul] + +/-- Submultiplicativity: `coeffAbsSum (p q) ≤ coeffAbsSum p · coeffAbsSum q`. -/ +theorem coeffAbsSum_mul_le (p q : ℝ[X]) : + coeffAbsSum (p * q) ≤ coeffAbsSum p * coeffAbsSum q := by + have hp : coeffAbsSum p = ∑ i ∈ Finset.range (p.natDegree + 1), |p.coeff i| := rfl + calc coeffAbsSum (p * q) + = coeffAbsSum (∑ i ∈ Finset.range (p.natDegree + 1), C (p.coeff i) * X ^ i * q) := by + rw [← Finset.sum_mul, ← p.as_sum_range_C_mul_X_pow] + _ ≤ ∑ i ∈ Finset.range (p.natDegree + 1), coeffAbsSum (C (p.coeff i) * X ^ i * q) := + coeffAbsSum_sum_le _ _ + _ = coeffAbsSum p * coeffAbsSum q := by + rw [hp, Finset.sum_mul] + exact Finset.sum_congr rfl fun i _ => coeffAbsSum_C_mul_X_pow_mul _ _ _ + +theorem coeffAbsSum_pow_le (p : ℝ[X]) (n : ℕ) : coeffAbsSum (p ^ n) ≤ coeffAbsSum p ^ n := by + induction n with + | zero => simp [coeffAbsSum_one] + | succ n ih => + rw [pow_succ, pow_succ] + exact (coeffAbsSum_mul_le _ _).trans + (mul_le_mul_of_nonneg_right ih (coeffAbsSum_nonneg p)) + +theorem coeffAbsSum_one_sub_X : coeffAbsSum (1 - X) = 2 := by + have hdeg : (1 - X : ℝ[X]).natDegree < 2 := by + have h : (1 - X : ℝ[X]).natDegree ≤ 1 := by + refine (natDegree_sub_le _ _).trans ?_ + simp + omega + rw [coeffAbsSum_eq_sum_range hdeg] + norm_num [Finset.sum_range_succ, coeff_sub, coeff_one] + +/-- `coeffAbsSum ((1 - z)^N) ≤ 2^N` (in fact equality: the binomial coefficients sum to `2^N`). -/ +theorem coeffAbsSum_one_sub_X_pow_le (N : ℕ) : coeffAbsSum ((1 - X) ^ N) ≤ 2 ^ N := by + have h := coeffAbsSum_pow_le (1 - X) N + rwa [coeffAbsSum_one_sub_X] at h + +/-- The binomial bound `Σ_{k Nat.choose_le_choose k ?_ + have := Finset.mem_range.mp hk + omega + _ ≤ ∑ k ∈ Finset.range (2 * N + 1), (2 * N).choose k := + Finset.sum_le_sum_of_subset (Finset.range_subset_range.mpr (by omega)) + _ = 4 ^ N := by + rw [Nat.sum_range_choose, pow_mul] + norm_num + +/-- The truncated series `Σ_{k ?_) + have hi' : i ≤ p.natDegree := by + have := Finset.mem_range.mp hi + omega + calc coeffAbsSum (C (p.coeff i) * q ^ i) + ≤ coeffAbsSum (C (p.coeff i)) * coeffAbsSum (q ^ i) := coeffAbsSum_mul_le _ _ + _ ≤ |p.coeff i| * coeffAbsSum q ^ i := by + rw [coeffAbsSum_C] + exact mul_le_mul_of_nonneg_left (coeffAbsSum_pow_le _ _) (abs_nonneg _) + _ ≤ |p.coeff i| * max 1 (coeffAbsSum q) ^ p.natDegree := by + refine mul_le_mul_of_nonneg_left ?_ (abs_nonneg _) + exact (pow_le_pow_left₀ (coeffAbsSum_nonneg q) (le_max_right _ _) i).trans + (pow_le_pow_right₀ hM hi') + +/-- **Affine shifts of (7.4)**: for fixed `α, β ∈ ℝ`, the sum of the absolute coefficients of +`poly_N(αz + β)` is at most `C^N` with `C = 8 max(1, |α| + |β|)^2`, uniformly in `N`. -/ +theorem coeffAbsSum_selector_comp_le (α β : ℝ) (N : ℕ) : + coeffAbsSum ((selector N).comp (C α * X + C β)) ≤ (8 * max 1 (|α| + |β|) ^ 2) ^ N := by + have hK : 1 ≤ max 1 (|α| + |β|) := le_max_left _ _ + have hM : max 1 (coeffAbsSum (C α * X + C β)) ≤ max 1 (|α| + |β|) := + max_le_max le_rfl (coeffAbsSum_affine_le α β) + have hM0 : 0 ≤ max 1 (coeffAbsSum (C α * X + C β)) := le_trans zero_le_one (le_max_left _ _) + calc coeffAbsSum ((selector N).comp (C α * X + C β)) + ≤ coeffAbsSum (selector N) * + max 1 (coeffAbsSum (C α * X + C β)) ^ (selector N).natDegree := + coeffAbsSum_comp_le _ _ + _ ≤ 8 ^ N * max 1 (|α| + |β|) ^ (2 * N) := by + refine mul_le_mul (coeffAbsSum_selector_le N) ?_ (pow_nonneg hM0 _) (by positivity) + exact (pow_le_pow_left₀ hM0 hM _).trans + (pow_le_pow_right₀ hK ((selector_natDegree_le N).trans (Nat.sub_le _ _))) + _ = (8 * max 1 (|α| + |β|) ^ 2) ^ N := by + rw [mul_pow, ← pow_mul] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/SelectorDefs.lean b/LeanPool/VacuumBellSeparation/Polynomial/SelectorDefs.lean new file mode 100644 index 0000000000..518b2d86b7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/SelectorDefs.lean @@ -0,0 +1,37 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Algebra.Polynomial.Eval.Defs +public import Mathlib.Data.Nat.Choose.Basic +public import Mathlib.Basic.Real.Basic +public import Mathlib.Algebra.Polynomial.Degree.Defs + +/-! +# Statement seed extracted from Polynomial/Selector + +Literal declarations are unchanged; theorem conclusions remain in the implementation module. +-/ + +@[expose] public section + +open Polynomial + +namespace VacuumBellSeparation + +/-- The polynomial selector `poly_N(z) = (1 - z)^N Σ_{k (hz j).trans (by linarith)) + change ‖F z - p * cauchyTaylor 6 n R F z‖ ≤ _ + calc + _ = ‖p * (F z - cauchyTaylor 6 n R F z) - (p - 1) * F z‖ := by congr 1; ring + _ ≤ ‖p‖ * ‖F z - cauchyTaylor 6 n R F z‖ + ‖p - 1‖ * ‖F z‖ := by + simpa only [norm_mul] using norm_sub_le + (p * (F z - cauchyTaylor 6 n R F z)) ((p - 1) * F z) + _ ≤ 9 * (M * (2 * (δ / R)) ^ n * 64) + + (8 * (8 * δ) ^ (2 * n)) * M := by gcongr + _ = _ := by ring + +/-- On an unwanted component a selector has a zero of order 2n. -/ +theorem selectedCauchyTaylor_wrong_component {n : ℕ} {R r δ M : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) + (F : (Fin 6 → ℂ) → ℂ) + (hbound : ∀ z ∈ coordinateClosedPolydisc 6 R, ‖F z‖ ≤ M) + (u v : ℂ) (z : Fin 6 → ℂ) (hu : ‖u‖ ≤ 2) (hv : ‖v‖ ≤ 2) + (hzero : ‖1 - u‖ ≤ δ ∨ ‖1 - v‖ ≤ δ) (hz : ∀ j, ‖z j‖ ≤ r) : + ‖selectedCauchyTaylor n R F u v z‖ ≤ + 64 * M * ((256 * δ) ^ 2 * (2 * max 1 (r / R))) ^ n := by + have hδ : 0 ≤ δ := hzero.elim + (fun h => (norm_nonneg _).trans h) (fun h => (norm_nonneg _).trans h) + have hp : ‖complexPolynomialEval (selector (2 * n)) u * + complexPolynomialEval (selector (2 * n)) v‖ ≤ (256 * δ) ^ (2 * n) := by + rcases hzero with h | h + · exact norm_complexSelector_product_wrong_component (2 * n) hu hv h + · simpa only [mul_comm] using norm_complexSelector_product_wrong_component (2 * n) hv hu h + have ht := cauchyTaylor_norm_le 6 n hR hM F hbound z hz + norm_num only [show (2 : ℝ) ^ 6 = 64 by norm_num] at ht + unfold selectedCauchyTaylor + rw [norm_mul] + calc + _ ≤ (256 * δ) ^ (2 * n) * (M * (2 * max 1 (r / R)) ^ n * 64) := + mul_le_mul hp ht (norm_nonneg _) (by positivity) + _ = _ := by + simp only [pow_mul, mul_pow] + ring + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Polynomial/TotalDegreeCauchy.lean b/LeanPool/VacuumBellSeparation/Polynomial/TotalDegreeCauchy.lean new file mode 100644 index 0000000000..13602518de --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Polynomial/TotalDegreeCauchy.lean @@ -0,0 +1,163 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Polynomial.CauchyTaylorDefs +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscReconstruction +public import Mathlib.Data.Fintype.Pi + +/-! +# Actual total-degree Cauchy truncations + +The truncation uses all natural multiindices of total degree below N. +The coefficients are the iterated contour integrals already reconstructed +in `Gaussian.PolydiscReconstruction`. No approximation theorem is an input. +-/ + +@[expose] public section + +open scoped BigOperators + +namespace VacuumBellSeparation + +open Gaussian + + + +@[simp] theorem mem_multiIndexBelow {d N : ℕ} (k : Fin d → ℕ) : + k ∈ multiIndexBelow d N ↔ ∑ j, k j < N := by + classical + simp only [multiIndexBelow, Finset.mem_filter, Fintype.mem_piFinset, + Finset.mem_range] + constructor + · exact And.right + · intro h + refine ⟨?_, h⟩ + intro j + exact (Finset.single_le_sum (fun _ _ => Nat.zero_le _) (Finset.mem_univ j)).trans_lt h + +@[simp] theorem multiIndexBelow_zero (d : ℕ) : multiIndexBelow d 0 = ∅ := by + classical + ext k + simp + +/-- A total-degree geometric tail costs only the full 2^d half-geometric sum. -/ +theorem totalDegree_tail_norm_le {d N : ℕ} {M q : ℝ} + (hM : 0 ≤ M) (hq : 0 ≤ q) (hqhalf : q ≤ 1 / 2) + (a : (Fin d → ℕ) → ℂ) (ha : Summable (fun k => ‖a k‖)) + (hbound : ∀ k, ‖a k‖ ≤ M * q ^ (∑ j, k j)) : + ‖(∑' k, a k) - ∑ k ∈ multiIndexBelow d N, a k‖ ≤ + M * (2 * q) ^ N * 2 ^ d := by + classical + let C := M * (2 * q) ^ N + have hC : 0 ≤ C := by dsimp [C]; positivity + have hg := (hasSum_half_multiIndex d).mul_left C + have hb (k : {k : Fin d → ℕ // k ∉ multiIndexBelow d N}) : + ‖a k‖ ≤ C * (1 / 2 : ℝ) ^ (∑ j, k.val j) := by + have hNk : N ≤ ∑ j, k.val j := by + simpa only [mem_multiIndexBelow, not_lt] using k.property + calc + _ ≤ M * q ^ (∑ j, k.val j) := hbound k + _ = M * ((2 * q) ^ (∑ j, k.val j) * (1 / 2 : ℝ) ^ (∑ j, k.val j)) := by + rw [← mul_pow] + congr 2 + ring + _ ≤ M * ((2 * q) ^ N * (1 / 2 : ℝ) ^ (∑ j, k.val j)) := by + exact mul_le_mul_of_nonneg_left + (mul_le_mul_of_nonneg_right + (pow_le_pow_of_le_one (by positivity) (by linarith) hNk) (by positivity)) hM + _ = C * (1 / 2 : ℝ) ^ (∑ j, k.val j) := by dsimp [C]; ring + rw [← ha.of_norm.sum_add_tsum_subtype_compl (multiIndexBelow d N), + add_sub_cancel_left] + calc + _ ≤ ∑' k : {k : Fin d → ℕ // k ∉ multiIndexBelow d N}, ‖a k‖ := + norm_tsum_le_tsum_norm (ha.subtype _) + _ ≤ ∑' k : {k : Fin d → ℕ // k ∉ multiIndexBelow d N}, + C * (1 / 2 : ℝ) ^ (∑ j, k.val j) := + (ha.subtype _).tsum_le_tsum hb (hg.summable.subtype _) + _ ≤ ∑' k : Fin d → ℕ, C * (1 / 2 : ℝ) ^ (∑ j, k j) := + hg.summable.tsum_subtype_le _ {k | k ∉ multiIndexBelow d N} (fun _ => by positivity) + _ = M * (2 * q) ^ N * 2 ^ d := hg.tsum_eq + + + +@[simp] theorem cauchyTaylor_zero (d : ℕ) (R : ℝ) + (F : (Fin d → ℂ) → ℂ) (x : Fin d → ℂ) : cauchyTaylor d 0 R F x = 0 := by + simp [cauchyTaylor] + +/-- Uniform actual remainder on a smaller polydisc. -/ +theorem cauchyTaylor_remainder_le (d N : ℕ) {R r M : ℝ} + (hR : 0 < R) (hr : 0 ≤ r) (hrR : r ≤ R / 2) (hM : 0 ≤ M) + (F : (Fin d → ℂ) → ℂ) + (hF : ∀ z ∈ coordinateClosedPolydisc d R, DifferentiableAt ℂ F z) + (hbound : ∀ z ∈ coordinateClosedPolydisc d R, ‖F z‖ ≤ M) + (x : Fin d → ℂ) (hx : ∀ j, ‖x j‖ ≤ r) : + ‖F x - cauchyTaylor d N R F x‖ ≤ M * (2 * (r / R)) ^ N * 2 ^ d := by + have hx' : ∀ j, ‖x j‖ < R := fun j => (hx j).trans_lt (by linarith) + obtain ⟨hs, ha⟩ := polydiscCoefficient_expansion d hR hM F hF hbound x hx' + rw [← hs.tsum_eq] + apply totalDegree_tail_norm_le hM (div_nonneg hr hR.le) + ((div_le_iff₀ hR).mpr (by linarith)) _ ha + intro k + apply (polydiscCoefficient_monomial_norm_le d hR hM F hbound k x).trans + rw [← Finset.prod_pow_eq_pow_sum] + apply mul_le_mul_of_nonneg_left _ hM + apply Finset.prod_le_prod₀ + · intro j _ + positivity + · intro j _ + exact pow_le_pow_left₀ (by positivity) (div_le_div_of_nonneg_right (hx j) hR.le) _ + +/-- Growth of the finite Taylor polynomial on an arbitrary polydisc. This +is needed on the three unwanted components of the joint spatial region. -/ +theorem cauchyTaylor_norm_le (d N : ℕ) {R r M : ℝ} + (hR : 0 < R) (hM : 0 ≤ M) + (F : (Fin d → ℂ) → ℂ) + (hbound : ∀ z ∈ coordinateClosedPolydisc d R, ‖F z‖ ≤ M) + (x : Fin d → ℂ) (hx : ∀ j, ‖x j‖ ≤ r) : + ‖cauchyTaylor d N R F x‖ ≤ M * (2 * max 1 (r / R)) ^ N * 2 ^ d := by + classical + let B := max 1 (r / R) + let C := M * (2 * B) ^ N + have hB : 1 ≤ B := le_max_left _ _ + have hC : 0 ≤ C := by dsimp [C]; positivity + have hg := (hasSum_half_multiIndex d).mul_left C + have hb (k : Fin d → ℕ) (hk : k ∈ multiIndexBelow d N) : + ‖polydiscCoefficient d R F k * ∏ j, x j ^ k j‖ ≤ + C * (1 / 2 : ℝ) ^ (∑ j, k j) := by + have hkN := (mem_multiIndexBelow k).mp hk + calc + _ ≤ M * ∏ j, (‖x j‖ / R) ^ k j := + polydiscCoefficient_monomial_norm_le d hR hM F hbound k x + _ ≤ M * ∏ j, B ^ k j := by + apply mul_le_mul_of_nonneg_left _ hM + apply Finset.prod_le_prod₀ + · intro j _ + positivity + · intro j _ + exact pow_le_pow_left₀ (by positivity) + ((div_le_div_of_nonneg_right (hx j) hR.le).trans (le_max_right _ _)) _ + _ = M * B ^ (∑ j, k j) := by rw [Finset.prod_pow_eq_pow_sum] + _ = M * ((2 * B) ^ (∑ j, k j) * (1 / 2 : ℝ) ^ (∑ j, k j)) := by + rw [← mul_pow] + congr 2 + ring + _ ≤ M * ((2 * B) ^ N * (1 / 2 : ℝ) ^ (∑ j, k j)) := by + exact mul_le_mul_of_nonneg_left + (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by linarith) hkN.le) + (by positivity)) hM + _ = C * (1 / 2 : ℝ) ^ (∑ j, k j) := by dsimp [C]; ring + calc + _ ≤ ∑ k ∈ multiIndexBelow d N, + ‖polydiscCoefficient d R F k * ∏ j, x j ^ k j‖ := norm_sum_le _ _ + _ ≤ ∑ k ∈ multiIndexBelow d N, C * (1 / 2 : ℝ) ^ (∑ j, k j) := + Finset.sum_le_sum hb + _ ≤ ∑' k : Fin d → ℕ, C * (1 / 2 : ℝ) ^ (∑ j, k j) := + hg.summable.sum_le_tsum _ (fun _ _ => by positivity) + _ = M * (2 * max 1 (r / R)) ^ N * 2 ^ d := hg.tsum_eq + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Probability/CellChain.lean b/LeanPool/VacuumBellSeparation/Probability/CellChain.lean new file mode 100644 index 0000000000..97d610dde1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Probability/CellChain.lean @@ -0,0 +1,354 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Probability.Exponents +public import Mathlib.Analysis.SpecialFunctions.Pow.Real +public import Mathlib.Data.Fintype.Lattice + +/-! +# The cell chain of the probability criterion + +Pure real-analysis core of Theorem 3.1 of the manuscript: a two-setting, two-outcome box +whose cells obey the forward and reverse power bounds, and whose correlators are `q`-close +to the product correlators with `q` below the cut, satisfies the CHSH bound. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Correlator of a two-setting, two-outcome box. -/ +def boxCorr (p : Bool → Bool → Bool → Bool → ℝ) (i j : Bool) : ℝ := + p i j true true + p i j false false - p i j true false - p i j false true + +/-- A power bound `x ^ r ≤ K * m ^ (r - 1)` with `x > 0` forces `m > 0`. -/ +private lemma pos_of_bound {x m K r : ℝ} (hr : 1 < r) (hx : 0 < x) (hm : 0 ≤ m) + (h : x ^ r ≤ K * m ^ (r - 1)) : 0 < m := by + rcases hm.eq_or_lt with h0 | h0 + · exfalso + subst h0 + rw [Real.zero_rpow (sub_pos.mpr hr).ne', mul_zero] at h + exact absurd h (not_le.mpr (Real.rpow_pos_of_pos hx r)) + · exact h0 + +/-- Logarithmic form of a power bound. -/ +private lemma log_bound {x m K r : ℝ} (hr : 1 < r) (hx : 0 < x) (hm : 0 < m) (hK : 0 < K) + (h : x ^ r ≤ K * m ^ (r - 1)) : + Real.log x ≤ (1 / r) * Real.log K + (1 - 1 / r) * Real.log m := by + have hr0 : (0 : ℝ) < r := by linarith + have h1 := Real.log_le_log (Real.rpow_pos_of_pos hx r) h + rw [Real.log_rpow hx, Real.log_mul hK.ne' (Real.rpow_pos_of_pos hm _).ne', + Real.log_rpow hm] at h1 + obtain ⟨t, ht⟩ : ∃ t : ℝ, t = 1 / r := ⟨_, rfl⟩ + rw [← ht] + have htr : t * r = 1 := by rw [ht]; exact one_div_mul_cancel hr0.ne' + have ht0 : 0 ≤ t := by rw [ht]; exact (one_div_pos.mpr hr0).le + have h2 := mul_le_mul_of_nonneg_left h1 ht0 + have hX : t * r * Real.log x = Real.log x := by rw [htr, one_mul] + have hM : t * r * Real.log m = Real.log m := by rw [htr, one_mul] + nlinarith [h2, hX, hM] + +/-- The scalar chain in logarithmic variables. -/ +private lemma chain_core {t s W EA EB XA XB L10 L01 L00 LKp LKm L2 : ℝ} + (ht0 : 0 < t) (ht1 : t < 1) (hs1 : s < 1) + (h1 : W ≤ t * LKp + (1 - t) * (EA + EB)) + (h2 : L10 ≤ t * LKp + (1 - t) * (EA + XB)) + (h3 : L01 ≤ t * LKp + (1 - t) * (XA + EB)) + (h4 : XA + XB ≤ s * LKm + (1 - s) * L00) + (h10 : EA - L2 ≤ L10) (h01 : EB - L2 ≤ L01) (h00 : L00 < W) : + 0 < ((1 - s) * (1 - t) ^ 2 - t) * W + (2 - t) * t * LKp + s * (1 - t) ^ 2 * LKm + + 2 * (1 - t) * L2 := by + have hb : 0 < 1 - t := sub_pos.mpr ht1 + have ha : 0 < 1 - s := sub_pos.mpr hs1 + have hsum : 0 ≤ 2 * t * LKp + (1 - t) * (EA + EB) + (1 - t) * (XA + XB) + - (EA + EB - 2 * L2) := by linarith + have p1 := mul_nonneg ht0.le (sub_nonneg.mpr h1) + have p2 := mul_nonneg hb.le hsum + have p3 := mul_nonneg (sq_nonneg (1 - t)) (sub_nonneg.mpr h4) + have p4 := mul_pos (mul_pos ha (pow_pos hb 2)) (sub_pos.mpr h00) + nlinarith [p1, p2, p3, p4] + +private lemma expEta_mul {rp rm : ℝ} (ha : expA rm ≠ 0) (hb : expB rp ≠ 0) : + expEta rp rm * (expA rm * expB rp ^ 2) = expA rm * expB rp ^ 2 - (1 - expB rp) := by + unfold expEta + rw [sub_mul, one_mul, div_mul_cancel₀ _ (mul_ne_zero ha (pow_ne_zero 2 hb))] + +private lemma nuPlus_mul {rp rm : ℝ} (ha : expA rm ≠ 0) (hb : expB rp ≠ 0) : + nuPlus rp rm * (expA rm * expB rp ^ 2) = (1 + expB rp) * (1 / rp) := by + unfold nuPlus + have hD : expA rm * expB rp ^ 2 ≠ 0 := mul_ne_zero ha (pow_ne_zero 2 hb) + rw [show expA rm * rp * expB rp ^ 2 = rp * (expA rm * expB rp ^ 2) by ring, + div_mul_eq_div_div, div_mul_cancel₀ _ hD, mul_one_div] + +private lemma nuMinus_mul {rp rm : ℝ} (ha : expA rm ≠ 0) : + nuMinus rm * (expA rm * expB rp ^ 2) = (1 - expA rm) * expB rp ^ 2 := by + unfold nuMinus + rw [← mul_assoc, div_mul_cancel₀ _ ha] + +private lemma cut_mul {a b : ℝ} (ha : a ≠ 0) (hb : b ≠ 0) : + 2 / (a * b) * (a * b ^ 2) = 2 * b := by + rw [show a * b ^ 2 = a * b * b by ring, ← mul_assoc, div_mul_cancel₀ _ (mul_ne_zero ha hb)] + +/-- The final linear-arithmetic contradiction between the chain and the cut. -/ +private lemma final_arith {η νp νm c a b tp tm W Q LKp LKm L2 : ℝ} + (hb : b = 1 - tp) (ha : a = 1 - tm) (ha0 : 0 < a) (hb0 : 0 < b) + (h1 : η * (a * b ^ 2) = a * b ^ 2 - (1 - b)) + (h2 : νp * (a * b ^ 2) = (1 + b) * tp) + (h3 : νm * (a * b ^ 2) = (1 - a) * b ^ 2) + (h4 : c * (a * b ^ 2) = 2 * b) + (hη : 0 < η) (hWQ : W < Q) + (hC : η * Q + νp * LKp + νm * LKm ≤ -c * L2) + (hP : 0 < ((1 - tm) * (1 - tp) ^ 2 - tp) * W + (2 - tp) * tp * LKp + + tm * (1 - tp) ^ 2 * LKm + 2 * (1 - tp) * L2) : False := by + have hD : 0 < a * b ^ 2 := mul_pos ha0 (pow_pos hb0 2) + have e1 := mul_nonneg (sub_nonneg.mpr hC) hD.le + have e2 := mul_pos (mul_pos hη hD) (sub_pos.mpr hWQ) + have g1 : η * (a * b ^ 2) * W = (a * b ^ 2 - (1 - b)) * W := by rw [h1] + have g2 : νp * (a * b ^ 2) * LKp = (1 + b) * tp * LKp := by rw [h2] + have g3 : νm * (a * b ^ 2) * LKm = (1 - a) * b ^ 2 * LKm := by rw [h3] + have g4 : c * (a * b ^ 2) * L2 = 2 * b * L2 := by rw [h4] + subst hb ha + nlinarith [e1, e2, g1, g2, g3, g4, hP] + +/-- The scalar chain: a least winning cell below `q` contradicts the cut. -/ +private lemma chain_false {rp rm Kp Km q : ℝ} (hrp : 1 < rp) (hrm : 1 < rm) + (hη : 0 < expEta rp rm) (hKp : 0 < Kp) (hKm : 0 < Km) + (hcut : q ^ expEta rp rm * Kp ^ nuPlus rp rm * Km ^ nuMinus rm + ≤ (2 : ℝ) ^ (-(2 / (expA rm * expB rp)))) + {w w10 w01 w00 eA eB xA xB : ℝ} + (hup : w ^ rp ≤ Kp * (eA * eB) ^ (rp - 1)) + (hup10 : w10 ^ rp ≤ Kp * (eA * xB) ^ (rp - 1)) + (hup01 : w01 ^ rp ≤ Kp * (xA * eB) ^ (rp - 1)) + (hlow : (xA * xB) ^ rm ≤ Km * w00 ^ (rm - 1)) + (hxA : 0 ≤ xA) (hxB : 0 ≤ xB) (hw00 : 0 ≤ w00) + (hA10 : 0 ≤ eA - w10) (hB01 : 0 ≤ eB - w01) (hw10 : w ≤ w10) (hw01 : w ≤ w01) + (hlin : (eA - w10) + (eB - w01) + w00 < w) + (hwq : w < q) : False := by + have hw : 0 < w := by linarith + have hw10p : 0 < w10 := by linarith + have hw01p : 0 < w01 := by linarith + have heA : 0 < eA := by linarith + have heB : 0 < eB := by linarith + have hq : 0 < q := by linarith + have hrp0 : 0 < rp := by linarith + have hrm0 : 0 < rm := by linarith + have hxBp : 0 < xB := by + have hm := pos_of_bound hrp hw10p (mul_nonneg heA.le hxB) hup10 + by_contra hcon + have h0 : xB = 0 := le_antisymm (not_lt.mp hcon) hxB + rw [h0, mul_zero] at hm + exact lt_irrefl _ hm + have hxAp : 0 < xA := by + have hm := pos_of_bound hrp hw01p (mul_nonneg hxA heB.le) hup01 + by_contra hcon + have h0 : xA = 0 := le_antisymm (not_lt.mp hcon) hxA + rw [h0, zero_mul] at hm + exact lt_irrefl _ hm + have hw00p : 0 < w00 := pos_of_bound hrm (mul_pos hxAp hxBp) hw00 hlow + have l1 := log_bound hrp hw (mul_pos heA heB) hKp hup + have l2 := log_bound hrp hw10p (mul_pos heA hxBp) hKp hup10 + have l3 := log_bound hrp hw01p (mul_pos hxAp heB) hKp hup01 + have l4 := log_bound hrm (mul_pos hxAp hxBp) hw00p hKm hlow + rw [Real.log_mul heA.ne' heB.ne'] at l1 + rw [Real.log_mul heA.ne' hxBp.ne'] at l2 + rw [Real.log_mul hxAp.ne' heB.ne'] at l3 + rw [Real.log_mul hxAp.ne' hxBp.ne'] at l4 + have h10 : Real.log eA - Real.log 2 ≤ Real.log w10 := by + have hle : eA / 2 ≤ w10 := by linarith + have h := Real.log_le_log (half_pos heA) hle + rwa [Real.log_div heA.ne' (two_ne_zero)] at h + have h01 : Real.log eB - Real.log 2 ≤ Real.log w01 := by + have hle : eB / 2 ≤ w01 := by linarith + have h := Real.log_le_log (half_pos heB) hle + rwa [Real.log_div heB.ne' (two_ne_zero)] at h + have h00 : Real.log w00 < Real.log w := Real.log_lt_log hw00p (by linarith) + have hWQ : Real.log w < Real.log q := Real.log_lt_log hw hwq + have ht0 : (0 : ℝ) < 1 / rp := one_div_pos.mpr hrp0 + have ht1 : 1 / rp < 1 := by rw [div_lt_one hrp0]; exact hrp + have hs1 : 1 / rm < 1 := by rw [div_lt_one hrm0]; exact hrm + have core := chain_core ht0 ht1 hs1 l1 l2 l3 l4 h10 h01 h00 + have ha0 : 0 < expA rm := show (0 : ℝ) < 1 - 1 / rm from sub_pos.mpr hs1 + have hb0 : 0 < expB rp := show (0 : ℝ) < 1 - 1 / rp from sub_pos.mpr ht1 + have hpos1 : 0 < q ^ expEta rp rm := Real.rpow_pos_of_pos hq _ + have hpos2 : 0 < Kp ^ nuPlus rp rm := Real.rpow_pos_of_pos hKp _ + have hpos3 : 0 < Km ^ nuMinus rm := Real.rpow_pos_of_pos hKm _ + have hC := Real.log_le_log (mul_pos (mul_pos hpos1 hpos2) hpos3) hcut + rw [Real.log_mul (mul_pos hpos1 hpos2).ne' hpos3.ne', Real.log_mul hpos1.ne' hpos2.ne', + Real.log_rpow hq, Real.log_rpow hKp, Real.log_rpow hKm, + Real.log_rpow (by norm_num : (0 : ℝ) < 2)] at hC + exact final_arith (a := expA rm) (b := expB rp) (tp := 1 / rp) (tm := 1 / rm) rfl rfl ha0 hb0 + (expEta_mul ha0.ne' hb0.ne') (nuPlus_mul ha0.ne' hb0.ne') + (nuMinus_mul ha0.ne') (cut_mul ha0.ne' hb0.ne') hη hWQ hC core + +/-- The product CHSH expression is bounded by the larger Bob correlator bound. -/ +private lemma chsh_prod_bound {m0 m1 n0 n1 N : ℝ} + (hm0l : -1 ≤ m0) (hm0u : m0 ≤ 1) (hm1l : -1 ≤ m1) (hm1u : m1 ≤ 1) + (hn0l : -N ≤ n0) (hn0u : n0 ≤ N) (hn1l : -N ≤ n1) (hn1u : n1 ≤ N) : + m0 * (n0 + n1) + m1 * (n0 - n1) ≤ 2 * N := by + have a0 : 0 ≤ 1 - m0 := by linarith + have b0 : 0 ≤ m0 + 1 := by linarith + have a1 : 0 ≤ 1 - m1 := by linarith + have b1 : 0 ≤ m1 + 1 := by linarith + rcases le_total 0 (n0 + n1) with h1 | h1 <;> rcases le_total 0 (n0 - n1) with h2 | h2 + · nlinarith [mul_nonneg a0 h1, mul_nonneg a1 h2] + · nlinarith [mul_nonneg a0 h1, mul_nonneg b1 (neg_nonneg.mpr h2)] + · nlinarith [mul_nonneg b0 (neg_nonneg.mpr h1), mul_nonneg a1 h2] + · nlinarith [mul_nonneg b0 (neg_nonneg.mpr h1), mul_nonneg b1 (neg_nonneg.mpr h2)] + +/-- Bob's outcome in the winning cell with settings `i j` and Alice outcome `α`. -/ +private def winOut : Bool → Bool → Bool → Bool + | true, true, α => !α + | _, _, α => α + +private lemma exists_min_bool3 (g : Bool → Bool → Bool → ℝ) : + ∃ i j α, ∀ i' j' α', g i j α ≤ g i' j' α' := by + obtain ⟨x, -, hx⟩ := Finset.exists_min_image (Finset.univ : Finset (Bool × Bool × Bool)) + (fun x => g x.1 x.2.1 x.2.2) Finset.univ_nonempty + exact ⟨x.1, x.2.1, x.2.2, fun i' j' α' => hx (i', j', α') (Finset.mem_univ _)⟩ + +/-- A CHSH value `q`-close to a product value whose Bob correlators are bounded by `1 - 2 q` +is at most one. -/ +private lemma chsh_close_le_one {c00 c01 c10 c11 m0 m1 n0 n1 q : ℝ} + (hm0l : -1 ≤ m0) (hm0u : m0 ≤ 1) (hm1l : -1 ≤ m1) (hm1u : m1 ≤ 1) + (hn0l : -(1 - 2 * q) ≤ n0) (hn0u : n0 ≤ 1 - 2 * q) + (hn1l : -(1 - 2 * q) ≤ n1) (hn1u : n1 ≤ 1 - 2 * q) + (h00 : |c00 - m0 * n0| ≤ q) (h01 : |c01 - m0 * n1| ≤ q) + (h10 : |c10 - m1 * n0| ≤ q) (h11 : |c11 - m1 * n1| ≤ q) : + (1 / 2 : ℝ) * (c00 + c01 + c10 - c11) ≤ 1 := by + have hprod : m0 * n0 + m0 * n1 + m1 * n0 - m1 * n1 ≤ 2 * (1 - 2 * q) := + calc m0 * n0 + m0 * n1 + m1 * n0 - m1 * n1 + = m0 * (n0 + n1) + m1 * (n0 - n1) := by ring + _ ≤ 2 * (1 - 2 * q) := chsh_prod_bound hm0l hm0u hm1l hm1u hn0l hn0u hn1l hn1u + have e00 := (abs_le.mp h00).2 + have e01 := (abs_le.mp h01).2 + have e10 := (abs_le.mp h10).2 + have e11 := (abs_le.mp h11).1 + linarith + +theorem chsh_box_le_one + {rp rm Kp Km q : ℝ} (hrp : 1 < rp) (hrm : 1 < rm) + (hη : 0 < expEta rp rm) (hKp : 0 < Kp) (hKm : 0 < Km) + (p : Bool → Bool → Bool → Bool → ℝ) (pA pB : Bool → Bool → ℝ) + (hp : ∀ i j α β, 0 ≤ p i j α β) + (hA : ∀ i j α, p i j α true + p i j α false = pA i α) + (hB : ∀ i j β, p i j true β + p i j false β = pB j β) + (hnorm : ∀ i, pA i true + pA i false = 1) + (hup : ∀ i j α β, p i j α β ^ rp ≤ Kp * (pA i α * pB j β) ^ (rp - 1)) + (hlow : ∀ i j α β, (pA i α * pB j β) ^ rm ≤ Km * p i j α β ^ (rm - 1)) + (hcl : ∀ i j, |boxCorr p i j - (pA i true - pA i false) * (pB j true - pB j false)| ≤ q) + (hcut : q ^ expEta rp rm * Kp ^ nuPlus rp rm * Km ^ nuMinus rm + ≤ (2 : ℝ) ^ (-(2 / (expA rm * expB rp)))) : + (1 / 2 : ℝ) * (boxCorr p false false + boxCorr p false true + boxCorr p true false + - boxCorr p true true) ≤ 1 := by + by_contra hS + have hS2 := not_le.mp hS + simp only [boxCorr] at hS2 + have hcellA : ∀ i j α β, p i j α β ≤ pA i α := fun i j α β => by + cases β <;> linarith [hA i j α, hp i j α true, hp i j α false] + have hcellB : ∀ i j α β, p i j α β ≤ pB j β := fun i j α β => by + cases α <;> linarith [hB i j β, hp i j true β, hp i j false β] + have hpA : ∀ i α, 0 ≤ pA i α := fun i α => + le_trans (hp i false α true) (hcellA i false α true) + have hpB : ∀ j β, 0 ≤ pB j β := fun j β => + le_trans (hp false j true β) (hcellB false j true β) + have hBs : ∀ j, pB j true + pB j false = 1 := fun j => by + linarith [hB false j true, hB false j false, hA false j true, hA false j false, hnorm false] + obtain ⟨i, j, α, hmin0⟩ := exists_min_bool3 (fun i j α => p i j α (winOut i j α)) + have hmin : ∀ i' j' α', p i j α (winOut i j α) ≤ p i' j' α' (winOut i' j' α') := hmin0 + clear hmin0 + have hwq : p i j α (winOut i j α) < q := by + by_contra hge + have hge' := not_lt.mp hge + have c1 : q ≤ p false false false false := le_trans hge' (hmin false false false) + have c2 : q ≤ p false false true true := le_trans hge' (hmin false false true) + have c3 : q ≤ p false true false false := le_trans hge' (hmin false true false) + have c4 : q ≤ p false true true true := le_trans hge' (hmin false true true) + have q1 : q ≤ pB false false := le_trans c1 (hcellB false false false false) + have q2 : q ≤ pB false true := le_trans c2 (hcellB false false true true) + have q3 : q ≤ pB true false := le_trans c3 (hcellB false true false false) + have q4 : q ≤ pB true true := le_trans c4 (hcellB false true true true) + have s0 := hBs false + have s1 := hBs true + have nf := hnorm false + have nt := hnorm true + have u1 := hpA false true + have u2 := hpA false false + have u3 := hpA true true + have u4 := hpA true false + exact hS (chsh_close_le_one (by linarith) (by linarith) (by linarith) (by linarith) + (by linarith) (by linarith) (by linarith) (by linarith) + (hcl false false) (hcl false true) (hcl true false) (hcl true true)) + have a1 := hA false false false + have a2 := hA false false true + have a3 := hA false true false + have a4 := hA false true true + have a5 := hA true false false + have a6 := hA true false true + have a7 := hA true true false + have a8 := hA true true true + have b1 := hB false false false + have b2 := hB false false true + have b3 := hB false true false + have b4 := hB false true true + have b5 := hB true false false + have b6 := hB true false true + have b7 := hB true true false + have b8 := hB true true true + have nf := hnorm false + have nt := hnorm true + cases i <;> cases j <;> cases α + · exact chain_false hrp hrm hη hKp hKm hcut + (hup false false false false) (hup false true false false) (hup true false false false) + (hlow true true false false) + (hpA _ _) (hpB _ _) (hp _ _ _ _) (sub_nonneg.mpr (hcellA _ _ _ _)) + (sub_nonneg.mpr (hcellB _ _ _ _)) + (hmin false true false) (hmin true false false) (by linarith) hwq + · exact chain_false hrp hrm hη hKp hKm hcut + (hup false false true true) (hup false true true true) (hup true false true true) + (hlow true true true true) + (hpA _ _) (hpB _ _) (hp _ _ _ _) (sub_nonneg.mpr (hcellA _ _ _ _)) + (sub_nonneg.mpr (hcellB _ _ _ _)) + (hmin false true true) (hmin true false true) (by linarith) hwq + · exact chain_false hrp hrm hη hKp hKm hcut + (hup false true false false) (hup false false false false) (hup true true true false) + (hlow true false true false) + (hpA _ _) (hpB _ _) (hp _ _ _ _) (sub_nonneg.mpr (hcellA _ _ _ _)) + (sub_nonneg.mpr (hcellB _ _ _ _)) + (hmin false false false) (hmin true true true) (by linarith) hwq + · exact chain_false hrp hrm hη hKp hKm hcut + (hup false true true true) (hup false false true true) (hup true true false true) + (hlow true false false true) + (hpA _ _) (hpB _ _) (hp _ _ _ _) (sub_nonneg.mpr (hcellA _ _ _ _)) + (sub_nonneg.mpr (hcellB _ _ _ _)) + (hmin false false true) (hmin true true false) (by linarith) hwq + · exact chain_false hrp hrm hη hKp hKm hcut + (hup true false false false) (hup true true false true) (hup false false false false) + (hlow false true false true) + (hpA _ _) (hpB _ _) (hp _ _ _ _) (sub_nonneg.mpr (hcellA _ _ _ _)) + (sub_nonneg.mpr (hcellB _ _ _ _)) + (hmin true true false) (hmin false false false) (by linarith) hwq + · exact chain_false hrp hrm hη hKp hKm hcut + (hup true false true true) (hup true true true false) (hup false false true true) + (hlow false true true false) + (hpA _ _) (hpB _ _) (hp _ _ _ _) (sub_nonneg.mpr (hcellA _ _ _ _)) + (sub_nonneg.mpr (hcellB _ _ _ _)) + (hmin true true true) (hmin false false true) (by linarith) hwq + · exact chain_false hrp hrm hη hKp hKm hcut + (hup true true false true) (hup true false false false) (hup false true true true) + (hlow false false true false) + (hpA _ _) (hpB _ _) (hp _ _ _ _) (sub_nonneg.mpr (hcellA _ _ _ _)) + (sub_nonneg.mpr (hcellB _ _ _ _)) + (hmin true false false) (hmin false true true) (by linarith) hwq + · exact chain_false hrp hrm hη hKp hKm hcut + (hup true true true false) (hup true false true true) (hup false true false false) + (hlow false false false true) + (hpA _ _) (hpB _ _) (hp _ _ _ _) (sub_nonneg.mpr (hcellA _ _ _ _)) + (sub_nonneg.mpr (hcellB _ _ _ _)) + (hmin true false true) (hmin false true false) (by linarith) hwq + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Probability/Exponents.lean b/LeanPool/VacuumBellSeparation/Probability/Exponents.lean new file mode 100644 index 0000000000..46ab8d2c17 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Probability/Exponents.lean @@ -0,0 +1,42 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Basic.Real.Basic + +/-! +# Exponents of the probability criterion + +Real exponents of Theorem 3.1 of the manuscript (`thm:probability`), equations +`eq:probability-exponents` (3.2) and `eq:nus` (3.4). Here `rp` is the forward order +`r₊` and `rm` the reverse order `r₋`. The manuscript assumes `2 < r₊` and `1 < r₋ < 2`. + +This module contains definitions only. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- The exponent `b = 1 - 1/r₊` of equation (3.2). -/ +noncomputable def expB (rp : ℝ) : ℝ := 1 - 1 / rp + +/-- The exponent `a = 1 - 1/r₋` of equation (3.2). -/ +noncomputable def expA (rm : ℝ) : ℝ := 1 - 1 / rm + +/-- The exponent `η = 1 - (1 - b)/(a b²)` of equation (3.2). -/ +noncomputable def expEta (rp rm : ℝ) : ℝ := + 1 - (1 - expB rp) / (expA rm * expB rp ^ 2) + +/-- The exponent `ν₊ = (1 + b)/(a r₊ b²)` of equation (3.4). -/ +noncomputable def nuPlus (rp rm : ℝ) : ℝ := + (1 + expB rp) / (expA rm * rp * expB rp ^ 2) + +/-- The exponent `ν₋ = (1 - a)/a` of equation (3.4). -/ +noncomputable def nuMinus (rm : ℝ) : ℝ := (1 - expA rm) / expA rm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ActualContourLocalBound.lean b/LeanPool/VacuumBellSeparation/Shell/ActualContourLocalBound.lean new file mode 100644 index 0000000000..fd8e6640cb --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ActualContourLocalBound.lean @@ -0,0 +1,72 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourLocalIntegral +public import LeanPool.VacuumBellSeparation.Shell.MeasurableContourWeights + +/-! +# The actual local contour domination for all Borel ambient weights + +The canonical preimage's strict energy and Lorentz bounds supply all +neighbourhood controls. The probability depends only on six Lorentz +parameters. The local comparison is uniform in nearby mass, retains +the physical energy cutoff, and has no assumed weight compatibility, +Jacobian bound, or image-cover hypothesis. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +theorem actualContour_local_bound {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (m : ℝ) {B θ R : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) + (hE : radialShellEnergy m B 0 < R) + (hn : spacetimeEuclideanOperatorNorm Λ < R) + (hi : spacetimeEuclideanOperatorNorm Λ.symm < R) : + ∃ ρ : ℝ, ∃ hρ : 0 < ρ, + (∀ s : Fin 6 → ℝ, ‖s‖ ≤ ρ → + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ s) < R ∧ + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ s).symm < R) ∧ + ∃ C δ d : ℝ, 0 < C ∧ 0 < δ ∧ 0 < d ∧ + ∀ τ : ℝ, |τ| < δ → + ∀ F : ComplexSpacetime → ℝ≥0∞, Measurable F → + ((ENNReal.ofReal d * ENNReal.ofReal (1 / (2 * (2 * Real.pi) ^ 3 * R))) * + (physicalParameterHaarScale : ℝ≥0∞) * volume (Metric.ball (0 : Fin 3 → ℝ) δ)) * + (∫⁻ w in Metric.ball (referenceContourMap m B θ 0) δ, + regularChartWeight (m + τ) Λ F w) ≤ + ((fixedMassContourHaarScale m hB hθ : ℝ≥0∞) * ENNReal.ofReal C) * + ∫⁻ y, physicalContourCutoffWeight (m + τ) θ R Λ F y + ∂(smoothBallProbability (Fin 6 → ℝ) ρ hρ).prod + (oneParticleMeasure (m + τ)) := by + obtain ⟨ρ, hρ, hnorm⟩ := prefixedLorentzFamily_controlled_ball hΛ hn hi + obtain ⟨rE, hrE, hcontrol⟩ := controlledContour_parameter_ball hΛ m hB hθ hE hn hi + obtain ⟨rB, hrB, hbranch⟩ := fullContourPoint_branch_ball hB m θ + let r₀ := min rE rB + have hr₀ : 0 < r₀ := lt_min hrE hrB + have he (q : ShellContourParameters) (hq : ‖q‖ < r₀) : + 0 < fullContourEnergy m B q ∧ fullContourEnergy m B q ≤ R := by + have h := hcontrol q (hq.trans_le (min_le_left _ _)) + exact ⟨h.2.1, h.2.2.1.le⟩ + obtain ⟨r, C, δ, d, hr, hrr, hC, hδ, hd, hbound⟩ := + physicalContour_local_integral_bound m hB hθ hρ hr₀ he + refine ⟨ρ, hρ, hnorm, C, δ, d, hC, hδ, hd, ?_⟩ + intro τ hτ F hF + apply hbound τ hτ (regularChartWeight (m + τ) Λ F) + (measurable_regularChartWeight_of_measurable _ _ hF) + (physicalContourCutoffWeight (m + τ) θ R Λ F) + (measurable_physicalContourCutoffWeight_of_measurable _ _ _ _ hF) + intro q hq + exact physicalContourCutoffWeight_chart_compatibility m hB hθ + (fun x hx => hbranch x (hx.trans_le (hrr.trans (min_le_right _ _)))) + (fun x hx => (he x (hx.trans_le hrr)).2) Λ F τ hq + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ActualContourShellMeasure.lean b/LeanPool/VacuumBellSeparation/Shell/ActualContourShellMeasure.lean new file mode 100644 index 0000000000..66e2440333 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ActualContourShellMeasure.lean @@ -0,0 +1,136 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.FiniteContourMixture + +/-! +# The actual cutoff pushforward dominates induced shell volume + +The pushforward takes values in the original complex mass shell. Borel +ambient weights determine measures on this closed subtype, so the +proved integral bound gives an actual measure inequality. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped ENNReal + +theorem isClosed_complexShell (t : ℝ) : IsClosed (complexShell t) := by + unfold complexShell spatialDot + exact isClosed_eq (by fun_prop) continuous_const + +theorem complexShellMeasure_le_of_lintegral {t : ℝ} {μ ν : Measure (complexShell t)} + (h : ∀ F : ComplexSpacetime → ℝ≥0∞, Measurable F → + (∫⁻ z, F z.1 ∂μ) ≤ ∫⁻ z, F z.1 ∂ν) : μ ≤ ν := by + classical + apply Measure.le_iff.mpr + intro s hs + have him : MeasurableSet (Subtype.val '' s : Set ComplexSpacetime) := + (MeasurableEmbedding.subtype_coe (isClosed_complexShell + t).measurableSet).measurableSet_image' hs + let F : ComplexSpacetime → ℝ≥0∞ := (Subtype.val '' s).indicator (fun _ => 1) + have hF : Measurable F := measurable_const.indicator him + have he : (fun z : complexShell t => F z.1) = s.indicator (fun _ => 1) := by + funext z + simp only [F, Set.indicator_apply, Subtype.coe_injective.mem_set_image] + have hb := h F hF + simpa only [he, lintegral_indicator_const hs, one_mul] using hb + +variable {θ : ℝ} {N : ℕ} + +/-- Contour mixture shell point. -/ +noncomputable def contourMixtureShellPoint (t : ℝ) (D : Fin N → ControlledContourPatch θ) + (y : (Fin N × (Fin 6 → ℝ)) × EuclideanSpace ℝ (Fin 3)) : complexShell t := + ⟨contourMixturePoint t D y, + complexifiedSpacetimeMap_mem_shell _ (contourMixtureFamily_isProper D y.1).1 + (complexShellBoost_mem_shell t _ y.2)⟩ + +theorem continuous_contourMixtureShellPoint (t : ℝ) (D : Fin N → ControlledContourPatch θ) : + Continuous (contourMixtureShellPoint t D) := + (continuous_contourMixturePoint t D).subtype_mk _ + +/-- Contour mixture shell measure. -/ +noncomputable def contourMixtureShellMeasure (t : ℝ) (D : Fin N → ControlledContourPatch θ) : + Measure (complexShell t) := + Measure.map (contourMixtureShellPoint t D) + (((contourMixtureProbability D).prod (oneParticleMeasure t)).restrict + {y | dispersion t y.2 ≤ 32 / Real.sin θ}) + +theorem contourMixtureShellMeasure_lintegral (t : ℝ) (D : Fin N → ControlledContourPatch θ) + {F : ComplexSpacetime → ℝ≥0∞} (hF : Measurable F) : + (∫⁻ z, F z.1 ∂contourMixtureShellMeasure t D) = + ∫⁻ y, contourMixtureCutoffWeight t D F y + ∂(contourMixtureProbability D).prod (oneParticleMeasure t) := by + rw [contourMixtureShellMeasure] + rw [lintegral_map (f := fun z : complexShell t => F z.1) + (μ := ((contourMixtureProbability D).prod (oneParticleMeasure t)).restrict + {y | dispersion t y.2 ≤ 32 / Real.sin θ}) + (hF.comp measurable_subtype_coe) (continuous_contourMixtureShellPoint t D).measurable] + have hs : MeasurableSet {y : (Fin N × (Fin 6 → ℝ)) × EuclideanSpace ℝ (Fin 3) | + dispersion t y.2 ≤ 32 / Real.sin θ} := + (isClosed_le ((continuous_dispersion t).comp continuous_snd) continuous_const).measurableSet + simpa only [contourMixtureShellPoint, contourMixtureCutoffWeight] using + (lintegral_indicator (μ := (contourMixtureProbability D).prod (oneParticleMeasure t)) + hs (fun y => F (contourMixturePoint t D y))).symm + +theorem contourMixture_uniform_measure_bound [NeZero N] + (D : Fin N → ControlledContourPatch θ) : + ∃ k : ℝ≥0∞, 0 < k ∧ k < ∞ ∧ ∀ t : ℝ, + k • (inducedRegularShellVolume t).restrict + {z : complexShell t | (t, z.1) ∈ contourMixtureNeighborhood D} ≤ + contourMixtureShellMeasure t D := by + obtain ⟨k, hk, hkt, hb⟩ := contourMixture_uniform_integral_bound D + refine ⟨k, hk, hkt, fun t => complexShellMeasure_le_of_lintegral ?_⟩ + intro F hF + rw [lintegral_smul_measure, contourMixtureShellMeasure_lintegral t D hF] + exact hb t F hF + +theorem contourMixtureProbability_compact_support (D : Fin N → ControlledContourPatch θ) : + ∃ K : Set (Fin N × (Fin 6 → ℝ)), IsCompact K ∧ + (∀ᵐ a ∂contourMixtureProbability D, a ∈ K) ∧ + ∀ a ∈ K, + spacetimeEuclideanOperatorNorm (contourMixtureFamily D a) < 32 / Real.sin θ ∧ + spacetimeEuclideanOperatorNorm (contourMixtureFamily D a).symm < 32 / Real.sin θ := by + let K : Set (Fin N × (Fin 6 → ℝ)) := + ⋃ i, {i} ×ˢ Metric.closedBall 0 (D i).radius + have hK : IsCompact K := isCompact_iUnion + (fun i => isCompact_singleton.prod (isCompact_closedBall (0 : Fin 6 → ℝ) (D i).radius)) + refine ⟨K, hK, ?_, ?_⟩ + · apply finiteTaggedProbability_ae _ hK.isClosed.measurableSet + intro i + filter_upwards [smoothBallProbability_ae_norm_lt (D i).radius (D i).radius_pos] with s hs + exact mem_iUnion.mpr ⟨i, ⟨rfl, by simpa only [Metric.mem_closedBall, dist_zero_right] + using hs.le⟩⟩ + · intro a ha + obtain ⟨i, hi, hs⟩ := mem_iUnion.mp ha + have he : a.1 = i := hi + have hn : ‖a.2‖ ≤ (D a.1).radius := by + simpa only [Metric.mem_closedBall, dist_zero_right, he] using hs + exact (D a.1).norm_bound a.2 hn + +/-- Actual mass-uniform geometric domination on an open neighborhood of +the entire normalized target, with a compactly supported probability +on genuine proper future Lorentz parameter patches. -/ +theorem normalizedTarget_uniform_contour_domination {θ : ℝ} (hθ : 0 < Real.sin θ) : + ∃ N : ℕ, 0 < N ∧ ∃ D : Fin N → ControlledContourPatch θ, + IsProbabilityMeasure (contourMixtureProbability D) ∧ + IsOpen (contourMixtureNeighborhood D) ∧ + normalizedTarget ⊆ contourMixtureNeighborhood D ∧ + ∃ k : ℝ≥0∞, 0 < k ∧ k < ∞ ∧ ∀ t : ℝ, + k • (inducedRegularShellVolume t).restrict + {z : complexShell t | (t, z.1) ∈ contourMixtureNeighborhood D} ≤ + contourMixtureShellMeasure t D := by + obtain ⟨N, hN, D, hcover⟩ := normalizedTarget_finite_contourPatches hθ + let _ : NeZero N := ⟨hN.ne'⟩ + exact ⟨N, hN, D, inferInstance, isOpen_contourMixtureNeighborhood D, hcover, + contourMixture_uniform_measure_bound D⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ActualInducedContourLocalBound.lean b/LeanPool/VacuumBellSeparation/Shell/ActualInducedContourLocalBound.lean new file mode 100644 index 0000000000..1937df9734 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ActualInducedContourLocalBound.lean @@ -0,0 +1,156 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ActualContourLocalBound +public import LeanPool.VacuumBellSeparation.Shell.RegularShellFamilyNeighborhood + +/-! +# Actual contour domination on an open mass-shell neighbourhood + +The constants and parameter probability are chosen at a fixed positive base +mass and apply uniformly in a neighborhood of that mass. +Outside the chosen mass interval the fibre is empty. The lower bound +uses the physical shell measure and its true energy cutoff; no local +Jacobian, density, inverse-function or cover assumption remains. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Metric Set +open scoped ENNReal + +private theorem contour_ENNReal_mul_pos {a b : ℝ≥0∞} (ha : 0 < a) (hb : 0 < b) : + 0 < a * b := + pos_iff_ne_zero.mpr (mul_ne_zero ha.ne' hb.ne') + +theorem referenceContourMap_zero (m B θ : ℝ) : + referenceContourMap m B θ 0 = complexShellCoordinates (radialShellContour m B θ 0) := by + have ha : activeLorentzParameters 0 = 0 := by ext i; fin_cases i <;> rfl + rw [referenceContourMap, ha, complexLorentzFamilyAction_zero] + rfl + +theorem referenceContourMap_zero_mem_domain {B : ℝ} (hB : 0 < B) (m θ : ℝ) : + referenceContourMap m B θ 0 ∈ complexShellChartDomain m := by + have hs : radialShellContour m B θ 0 ∈ complexShell m := by + rw [radialShellContour_eq_boost] + exact complexShellBoost_mem_shell _ _ _ + rw [referenceContourMap_zero] + change 0 < (complexShellRadicand m (complexShellCoordinates _)).re + rw [complexShellRadicand_coordinates hs] + simpa [radialShellContour, ← Complex.ofReal_pow] using sq_pos_of_pos hB + +/-- Positive finite coefficients permit normalization even when the +integrals themselves are infinite. -/ +theorem normalize_ENNReal_domination {a b c I J P : ℝ≥0∞} + (hb : b ≠ 0) (hbt : b ≠ ∞) (hc : c ≠ 0) (hct : c ≠ ∞) + (hI : I ≤ c * J) (hJ : a * J ≤ b * P) : + (a / (c * b)) * I ≤ P := by + have h : a * I ≤ (c * b) * P := calc + a * I ≤ a * (c * J) := _root_.mul_le_mul_right hI a + _ = c * (a * J) := by ac_rfl + _ ≤ c * (b * P) := _root_.mul_le_mul_right hJ c + _ = (c * b) * P := (mul_assoc _ _ _).symm + calc + _ = (c * b)⁻¹ * (a * I) := by rw [div_eq_mul_inv]; ac_rfl + _ ≤ (c * b)⁻¹ * ((c * b) * P) := _root_.mul_le_mul_right h _ + _ = P := ENNReal.inv_mul_cancel_left (mul_ne_zero hc hb) (ENNReal.mul_ne_top hct hbt) + +theorem actualContour_induced_local_bound {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (m : ℝ) {B θ R : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) + (hE : radialShellEnergy m B 0 < R) + (hn : spacetimeEuclideanOperatorNorm Λ < R) + (hi : spacetimeEuclideanOperatorNorm Λ.symm < R) : + ∃ ρ : ℝ, ∃ hρ : 0 < ρ, + (∀ s : Fin 6 → ℝ, ‖s‖ ≤ ρ → + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ s) < R ∧ + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ s).symm < R) ∧ + ∃ V : Set (ℝ × ComplexSpacetime), IsOpen V ∧ + (m, complexifiedSpacetimeMap Λ (radialShellContour m B θ 0)) ∈ V ∧ + ∃ k : ℝ≥0∞, 0 < k ∧ k < ∞ ∧ + ∀ t : ℝ, ∀ F : ComplexSpacetime → ℝ≥0∞, Measurable F → + k * (∫⁻ z in {z : complexShell t | (t, z.1) ∈ V}, + F z.1 ∂inducedRegularShellVolume t) ≤ + ∫⁻ y, physicalContourCutoffWeight t θ R Λ F y + ∂(smoothBallProbability (Fin 6 → ℝ) ρ hρ).prod (oneParticleMeasure t) := by + obtain ⟨ρ, hρ, hnorm, C, δ, d, hC, hδ, hd, hbound⟩ := + actualContour_local_bound hΛ m hB hθ hE hn hi + let w := referenceContourMap m B θ 0 + have hw : shellEuclideanCoordinates.symm w ∈ euclideanShellChartDomain m := by + simpa [euclideanShellChartDomain] using referenceContourMap_zero_mem_domain hB m θ + obtain ⟨ε, cJ, CJ, hε, hcJ, hCJ, hJ⟩ := inducedShellChartDensity_joint_local_bounds Λ hw + let V := regularShellFamilyNeighborhood m Λ w δ ε + have hR : 0 < R := (radialShellEnergy_pos hB m).trans hE + let a : ℝ≥0∞ := ((ENNReal.ofReal d * ENNReal.ofReal (1 / (2 * (2 * Real.pi) ^ 3 * R))) * + (physicalParameterHaarScale : ℝ≥0∞) * volume (ball (0 : Fin 3 → ℝ) δ)) + let b : ℝ≥0∞ := (fixedMassContourHaarScale m hB hθ : ℝ≥0∞) * ENNReal.ofReal C + have ha : 0 < a := by + dsimp [a] + exact contour_ENNReal_mul_pos (contour_ENNReal_mul_pos (contour_ENNReal_mul_pos + (ENNReal.ofReal_pos.mpr hd) + (ENNReal.ofReal_pos.mpr (by positivity))) + (ENNReal.coe_pos.mpr physicalParameterHaarScale_pos)) (measure_ball_pos _ _ hδ) + have hat : a ≠ ∞ := by + dsimp [a] + exact ENNReal.mul_ne_top + (ENNReal.mul_ne_top (ENNReal.mul_ne_top ENNReal.ofReal_ne_top ENNReal.ofReal_ne_top) + ENNReal.coe_ne_top) measure_ball_ne_top + have hb : 0 < b := contour_ENNReal_mul_pos (ENNReal.coe_pos.mpr + (fixedMassContourHaarScale_pos m hB hθ)) + (ENNReal.ofReal_pos.mpr hC) + have hbt : b ≠ ∞ := ENNReal.mul_ne_top ENNReal.coe_ne_top ENNReal.ofReal_ne_top + have hCJe : 0 < ENNReal.ofReal CJ := ENNReal.ofReal_pos.mpr hCJ + let k : ℝ≥0∞ := a / (ENNReal.ofReal CJ * b) + have hk : 0 < k := by + rw [show k = a * (ENNReal.ofReal CJ * b)⁻¹ from div_eq_mul_inv _ _] + exact contour_ENNReal_mul_pos ha (ENNReal.inv_pos.mpr + (ENNReal.mul_ne_top ENNReal.ofReal_ne_top hbt)) + have hkt : k < ∞ := ENNReal.div_lt_top hat (contour_ENNReal_mul_pos hCJe hb).ne' + refine ⟨ρ, hρ, hnorm, V, isOpen_regularShellFamilyNeighborhood m Λ w δ ε, ?_, + k, hk, hkt, ?_⟩ + · have hz : 0 < ((complexifiedSpacetimeMap Λ.symm + (complexifiedSpacetimeMap Λ (radialShellContour m B θ 0))).2 1).re := by + rw [complexifiedSpacetimeMap_inverse] + simpa [radialShellContour] using hB + have hcoord : lorentzComplexShellCoordinates Λ + (complexifiedSpacetimeMap Λ (radialShellContour m B θ 0)) = w := by + change complexShellCoordinates (complexifiedSpacetimeMap Λ.symm + (complexifiedSpacetimeMap Λ (radialShellContour m B θ 0))) = _ + rw [complexifiedSpacetimeMap_inverse, ← referenceContourMap_zero] + have hmem : lorentzComplexShellCoordinates Λ + (complexifiedSpacetimeMap Λ (radialShellContour m B θ 0)) ∈ complexShellChartDomain m := by + rw [hcoord] + exact referenceContourMap_zero_mem_domain hB m θ + have hc := regularShellFamilyNeighborhood_mem_center Λ hδ hε hz hmem + simpa only [hcoord] using hc + · intro t F hF + by_cases ht : |t - m| < min δ ε + · have hpatch := regularShellFamilyNeighborhood_fiber Λ w ht + change k * (∫⁻ z in {z : complexShell t | + (t, z.1) ∈ regularShellFamilyNeighborhood m Λ w δ ε}, + F z.1 ∂inducedRegularShellVolume t) ≤ _ + rw [hpatch] + have hs := (isOpen_localShellCoordinateSet t w δ ε).measurableSet + have hflat := inducedRegularShellVolume_coordinatePatch_le_flat Λ hΛ hs + (fun _ hx => hx.1.1) + (fun x hx => (hJ t (ht.trans_le (min_le_right _ _)).le x hx.2.le).2.2) + measurableSet_ball (fun _ hx => hx.1.2) hF + have hphys := hbound (t - m) (ht.trans_le (min_le_left _ _)) F hF + have hmass : m + (t - m) = t := by ring + rw [hmass] at hphys + exact normalize_ENNReal_domination hb.ne' hbt hCJe.ne' ENNReal.ofReal_ne_top hflat hphys + · have he := regularShellFamilyNeighborhood_fiber_empty Λ w ht + change k * (∫⁻ z in {z : complexShell t | + (t, z.1) ∈ regularShellFamilyNeighborhood m Λ w δ ε}, + F z.1 ∂inducedRegularShellVolume t) ≤ _ + rw [he, setLIntegral_empty, mul_zero] + exact bot_le + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/AugmentedInverseCoordinates.lean b/LeanPool/VacuumBellSeparation/Shell/AugmentedInverseCoordinates.lean new file mode 100644 index 0000000000..f197731a64 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/AugmentedInverseCoordinates.lean @@ -0,0 +1,94 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Calculus.InverseFunctionTheorem.FDeriv +public import Mathlib.Analysis.Calculus.ContDiff.RCLike +public import Mathlib.Analysis.Calculus.ContDiff.Basic + +/-! +# Inverse coordinates with retained auxiliary parameters + +An invertible derivative in the active variables gives an ordinary +inverse-function chart after retaining the other variables unchanged. +This is a proved triangular derivative construction, not an assumed +submersion or coarea theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {E F N : Type*} + [NormedAddCommGroup E] [NormedSpace ℝ E] + [NormedAddCommGroup F] [NormedSpace ℝ F] + [NormedAddCommGroup N] [NormedSpace ℝ N] + +/-- Augmented derivative equivalence of type `(E × N) ≃L[ℝ] (F × N)`. -/ +noncomputable def augmentedDerivativeEquiv (L : E ≃L[ℝ] F) (M : N →L[ℝ] F) : + (E × N) ≃L[ℝ] (F × N) := + (ContinuousLinearEquiv.prodComm ℝ E N).trans + (((ContinuousLinearEquiv.refl ℝ N).skewProd L M).trans + (ContinuousLinearEquiv.prodComm ℝ N F)) + +theorem augmentedDerivativeEquiv_apply (L : E ≃L[ℝ] F) (M : N →L[ℝ] F) + (x : E × N) : augmentedDerivativeEquiv L M x = (L x.1 + M x.2, x.2) := rfl + +theorem hasFDerivAt_augment_of_active {f : E × N → F} + (hf : DifferentiableAt ℝ f 0) (L : E ≃L[ℝ] F) + (hactive : HasFDerivAt (fun x : E => f (x, 0)) (L : E →L[ℝ] F) 0) : + HasFDerivAt (fun q : E × N => (f q, q.2)) + (augmentedDerivativeEquiv L ((fderiv ℝ f 0).comp (ContinuousLinearMap.inr ℝ E N)) : + (E × N) →L[ℝ] (F × N)) 0 := by + have hin : HasFDerivAt (fun x : E => f (x, 0)) + ((fderiv ℝ f 0).comp (ContinuousLinearMap.inl ℝ E N)) 0 := by + simpa only [Function.comp_def, ContinuousLinearMap.inl_apply, map_zero] + using hf.hasFDerivAt.comp (0 : E) + ((ContinuousLinearMap.inl ℝ E N).hasFDerivAt (x := (0 : E))) + have hl := hin.unique hactive + have hsplit (q : E × N) : fderiv ℝ f 0 q = + L q.1 + fderiv ℝ f 0 (0, q.2) := by + have hq : q = (q.1, 0) + (0, q.2) := by simp + have hx := congrArg (fun A : E →L[ℝ] F => A q.1) hl + calc + fderiv ℝ f 0 q = fderiv ℝ f 0 ((q.1, 0) + (0, q.2)) := congrArg _ hq + _ = fderiv ℝ f 0 (q.1, 0) + fderiv ℝ f 0 (0, q.2) := map_add _ _ _ + _ = _ := congrArg (fun y => y + fderiv ℝ f 0 (0, q.2)) hx + refine (hf.hasFDerivAt.prodMk (ContinuousLinearMap.snd ℝ E N).hasFDerivAt).congr_fderiv ?_ + apply ContinuousLinearMap.ext + intro q + exact Prod.ext (hsplit q) rfl + +theorem hasStrictFDerivAt_augment_of_active {f : E × N → F} + (hf : ContDiffAt ℝ ⊤ f 0) (L : E ≃L[ℝ] F) + (hactive : HasFDerivAt (fun x : E => f (x, 0)) (L : E →L[ℝ] F) 0) : + HasStrictFDerivAt (fun q : E × N => (f q, q.2)) + (augmentedDerivativeEquiv L ((fderiv ℝ f 0).comp (ContinuousLinearMap.inr ℝ E N)) : + (E × N) →L[ℝ] (F × N)) 0 := + (hf.prodMk (ContinuousLinearMap.snd ℝ E N).contDiff.contDiffAt).hasStrictFDerivAt + (hasFDerivAt_augment_of_active (hf.differentiableAt (by simp)) L hactive) (by simp) + +/-- Augmented local coordinates. -/ +noncomputable def augmentedLocalCoordinates [CompleteSpace E] [CompleteSpace N] + {f : E × N → F} (hf : ContDiffAt ℝ ⊤ f 0) (L : E ≃L[ℝ] F) + (hactive : HasFDerivAt (fun x : E => f (x, 0)) (L : E →L[ℝ] F) 0) : + OpenPartialHomeomorph (E × N) (F × N) := + (hasStrictFDerivAt_augment_of_active hf L hactive).toOpenPartialHomeomorph + (fun q => (f q, q.2)) + +theorem augmentedLocalCoordinates_apply [CompleteSpace E] [CompleteSpace N] + {f : E × N → F} (hf : ContDiffAt ℝ ⊤ f 0) (L : E ≃L[ℝ] F) + (hactive : HasFDerivAt (fun x : E => f (x, 0)) (L : E →L[ℝ] F) 0) (q : E × N) : + augmentedLocalCoordinates hf L hactive q = (f q, q.2) := rfl + +theorem zero_mem_augmentedLocalCoordinates [CompleteSpace E] [CompleteSpace N] + {f : E × N → F} (hf : ContDiffAt ℝ ⊤ f 0) (L : E ≃L[ℝ] F) + (hactive : HasFDerivAt (fun x : E => f (x, 0)) (L : E →L[ℝ] F) 0) : + 0 ∈ (augmentedLocalCoordinates hf L hactive).source := + (hasStrictFDerivAt_augment_of_active hf L hactive).mem_toOpenPartialHomeomorph_source + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/CanonicalShellPreimage.lean b/LeanPool/VacuumBellSeparation/Shell/CanonicalShellPreimage.lean new file mode 100644 index 0000000000..24774636ce --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/CanonicalShellPreimage.lean @@ -0,0 +1,172 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.NormalizedTargetGeometry + +/-! +# The literal reference momentum for an imaginary boost + +For a negative real shell length rho and sin(theta)>0, the momentum is +(0,B,0), with omega=sqrt(t^2+rho^2)/sin(theta) and B=sqrt(omega^2-t^2). +The real and imaginary boost vectors are computed in the original +spacetime. No positive-mass assumption excludes t=0. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace Matrix + +/-- Canonical shell energy given by `Real.sqrt (t ^ 2 + ρ ^ 2) / Real.sin θ`. -/ +noncomputable def canonicalShellEnergy (t ρ θ : ℝ) : ℝ := + Real.sqrt (t ^ 2 + ρ ^ 2) / Real.sin θ + +/-- Canonical shell transverse defined as `Real.sqrt (canonicalShellEnergy t ρ θ ^ 2 - t ^ 2)`. -/ +noncomputable def canonicalShellTransverse (t ρ θ : ℝ) : ℝ := + Real.sqrt (canonicalShellEnergy t ρ θ ^ 2 - t ^ 2) + +/-- Canonical shell momentum defined as `WithLp.toLp 2 ![0, canonicalShellTransverse t ρ θ, 0]`. -/ +noncomputable def canonicalShellMomentum (t ρ θ : ℝ) : EuclideanSpace ℝ (Fin 3) := + WithLp.toLp 2 ![0, canonicalShellTransverse t ρ θ, 0] + +/-- Canonical shell real. -/ +noncomputable def canonicalShellReal (t ρ θ : ℝ) : Spacetime := + (canonicalShellEnergy t ρ θ * Real.cos θ, canonicalShellMomentum t ρ θ) + +/-- Canonical shell imaginary. -/ +noncomputable def canonicalShellImaginary (t ρ θ : ℝ) : Spacetime := + (0, WithLp.toLp 2 ![canonicalShellEnergy t ρ θ * Real.sin θ, 0, 0]) + +theorem canonicalShellEnergy_pos {t ρ θ : ℝ} (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + 0 < canonicalShellEnergy t ρ θ := + div_pos (Real.sqrt_pos.2 (add_pos_of_nonneg_of_pos (sq_nonneg t) (sq_pos_of_pos hρ))) hθ + +theorem canonicalShellEnergy_sq_mul_sin_sq {t ρ θ : ℝ} (hθ : 0 < Real.sin θ) : + canonicalShellEnergy t ρ θ ^ 2 * Real.sin θ ^ 2 = t ^ 2 + ρ ^ 2 := by + rw [canonicalShellEnergy, div_pow, div_mul_cancel₀ _ (pow_ne_zero _ (ne_of_gt hθ))] + exact Real.sq_sqrt (add_nonneg (sq_nonneg t) (sq_nonneg ρ)) + +theorem canonicalShellEnergy_sq_sub_mass_pos {t ρ θ : ℝ} + (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + 0 < canonicalShellEnergy t ρ θ ^ 2 - t ^ 2 := by + have he := canonicalShellEnergy_sq_mul_sin_sq (t := t) (ρ := ρ) hθ + have hm := mul_le_of_le_one_right (sq_nonneg (canonicalShellEnergy t ρ θ)) + (Real.sin_sq_le_one θ) + nlinarith [sq_pos_of_pos hρ] + +theorem canonicalShellTransverse_pos {t ρ θ : ℝ} (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + 0 < canonicalShellTransverse t ρ θ := + Real.sqrt_pos.2 (canonicalShellEnergy_sq_sub_mass_pos hρ hθ) + +theorem canonicalShellTransverse_sq {t ρ θ : ℝ} (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + canonicalShellTransverse t ρ θ ^ 2 = canonicalShellEnergy t ρ θ ^ 2 - t ^ 2 := + Real.sq_sqrt (canonicalShellEnergy_sq_sub_mass_pos hρ hθ).le + +theorem canonicalShellMomentum_norm_sq (t ρ θ : ℝ) : + ‖canonicalShellMomentum t ρ θ‖ ^ 2 = canonicalShellTransverse t ρ θ ^ 2 := by + simp [canonicalShellMomentum, EuclideanSpace.real_norm_sq_eq, Fin.sum_univ_three] + +theorem canonicalShellMomentum_dispersion {t ρ θ : ℝ} + (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + dispersion t (canonicalShellMomentum t ρ θ) = canonicalShellEnergy t ρ θ := by + rw [dispersion, canonicalShellMomentum_norm_sq, canonicalShellTransverse_sq hρ hθ, + show t ^ 2 + (canonicalShellEnergy t ρ θ ^ 2 - t ^ 2) = + canonicalShellEnergy t ρ θ ^ 2 by ring, + Real.sqrt_sq (canonicalShellEnergy_pos hρ hθ).le] + +theorem canonicalShellReal_square {t ρ θ : ℝ} (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + minkowskiForm (canonicalShellReal t ρ θ) (canonicalShellReal t ρ θ) = -ρ ^ 2 := by + simp only [minkowskiForm, canonicalShellReal, real_inner_self_eq_norm_sq, + canonicalShellMomentum_norm_sq, canonicalShellTransverse_sq hρ hθ] + have he := canonicalShellEnergy_sq_mul_sin_sq (t := t) (ρ := ρ) hθ + linear_combination + canonicalShellEnergy t ρ θ ^ 2 * Real.sin_sq_add_cos_sq θ - he + +theorem canonicalShellImaginary_square {t ρ θ : ℝ} (hθ : 0 < Real.sin θ) : + minkowskiForm (canonicalShellImaginary t ρ θ) (canonicalShellImaginary t ρ θ) = + -(t ^ 2 + ρ ^ 2) := by + simp [minkowskiForm, canonicalShellImaginary, + EuclideanSpace.real_norm_sq_eq, Fin.sum_univ_three, + mul_pow, canonicalShellEnergy_sq_mul_sin_sq hθ] + +theorem canonicalShellPair_orthogonal (t ρ θ : ℝ) : + minkowskiForm (canonicalShellReal t ρ θ) (canonicalShellImaginary t ρ θ) = 0 := by + simp [minkowskiForm, canonicalShellReal, canonicalShellImaginary, canonicalShellMomentum, + EuclideanSpace.inner_eq_star_dotProduct, dotProduct, Fin.sum_univ_three] + +theorem canonicalShellReal_negative {t ρ θ : ℝ} (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + minkowskiForm (canonicalShellReal t ρ θ) (canonicalShellReal t ρ θ) < 0 := by + rw [canonicalShellReal_square hρ hθ] + exact neg_neg_of_pos (sq_pos_of_pos hρ) + +theorem canonicalShellImaginary_negative {t ρ θ : ℝ} + (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + minkowskiForm (canonicalShellImaginary t ρ θ) (canonicalShellImaginary t ρ θ) < 0 := by + rw [canonicalShellImaginary_square hθ] + exact neg_neg_of_pos (add_pos_of_nonneg_of_pos (sq_nonneg t) (sq_pos_of_pos hρ)) + +theorem canonicalShellBoost_pair {t ρ θ : ℝ} (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + complexShellBoost t ((θ : ℂ) * Complex.I) (canonicalShellMomentum t ρ θ) = + complexSpacetimeOfReal (canonicalShellReal t ρ θ) + + Complex.I • complexSpacetimeOfReal (canonicalShellImaginary t ρ θ) := by + rw [complexShellBoost, canonicalShellMomentum_dispersion hρ hθ, + Complex.cosh_mul_I, Complex.sinh_mul_I, ← Complex.ofReal_cos, ← Complex.ofReal_sin] + apply Prod.ext + · apply Complex.ext <;> + simp [canonicalShellMomentum, canonicalShellReal, canonicalShellImaginary, + complexSpacetimeOfReal, Complex.mul_re, Complex.mul_im] + · ext i + fin_cases i <;> apply Complex.ext <;> + simp [canonicalShellMomentum, canonicalShellReal, canonicalShellImaginary, + complexSpacetimeOfReal, Complex.mul_re, Complex.mul_im] + +/-- Continuous linear equivalence for the canonical shell frame, of type `Spacetime ≃L[ℝ] +Spacetime`. -/ +noncomputable def canonicalShellFrame {t ρ θ : ℝ} (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + Spacetime ≃L[ℝ] Spacetime := + lorentzNegativePairFrame (canonicalShellReal_negative hρ hθ) + (canonicalShellImaginary_negative hρ hθ) (canonicalShellPair_orthogonal t ρ θ) + +theorem canonicalShellFrame_gamma_sq {t ρ θ : ℝ} (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + (canonicalShellFrame (t := t) hρ hθ (1, 0)).1 ^ 2 = + 1 + (canonicalShellEnergy t ρ θ * Real.cos θ) ^ 2 / ρ ^ 2 := by + unfold canonicalShellFrame + rw [lorentzNegativePairFrame_gamma_sq, canonicalShellReal_square hρ hθ, + canonicalShellImaginary_square hθ] + simp [canonicalShellReal, canonicalShellImaginary] + +theorem canonicalShellFrame_gamma_scaled_sq {t ρ θ : ℝ} + (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + (canonicalShellFrame (t := t) hρ hθ (1, 0)).1 ^ 2 * Real.sin θ ^ 2 * ρ ^ 2 = + ρ ^ 2 + t ^ 2 * Real.cos θ ^ 2 := by + rw [canonicalShellFrame_gamma_sq hρ hθ] + calc + _ = Real.sin θ ^ 2 * ρ ^ 2 + + (canonicalShellEnergy t ρ θ ^ 2 * Real.sin θ ^ 2) * Real.cos θ ^ 2 := by + field_simp [ne_of_gt hρ] + _ = Real.sin θ ^ 2 * ρ ^ 2 + (t ^ 2 + ρ ^ 2) * Real.cos θ ^ 2 := by + rw [canonicalShellEnergy_sq_mul_sin_sq hθ] + _ = _ := by linear_combination ρ ^ 2 * Real.sin_sq_add_cos_sq θ + +theorem canonicalShellFrame_gamma_mul_sin_le_two {t ρ θ : ℝ} + (ht₀ : 0 ≤ t) (ht₁ : t ≤ 1) (hρ : 4 ≤ ρ) (hθ : 0 < Real.sin θ) : + (canonicalShellFrame (t := t) (by linarith : 0 < ρ) hθ (1, 0)).1 * Real.sin θ ≤ 2 := by + have ht : t ^ 2 ≤ 1 := by nlinarith + have hc : t ^ 2 * Real.cos θ ^ 2 ≤ 1 := by + exact (mul_le_mul_of_nonneg_left (Real.cos_sq_le_one θ) (sq_nonneg t)).trans + (by simpa using ht) + have he := canonicalShellFrame_gamma_scaled_sq (t := t) (by linarith : 0 < ρ) hθ + have hr : 16 ≤ ρ ^ 2 := by nlinarith + have hprod : ((canonicalShellFrame (t := t) (by linarith : 0 < ρ) hθ (1, 0)).1 * + Real.sin θ) ^ 2 ≤ 4 := by + apply (_root_.mul_le_mul_iff_left₀ (sq_pos_of_pos (show 0 < ρ by linarith))).mp + nlinarith only [he, hc, hr] + nlinarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/CompatibleChartMeasureGluing.lean b/LeanPool/VacuumBellSeparation/Shell/CompatibleChartMeasureGluing.lean new file mode 100644 index 0000000000..6afa52251e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/CompatibleChartMeasureGluing.lean @@ -0,0 +1,73 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.MeasureTheory.Measure.Restrict +public import Mathlib.MeasureTheory.Measure.Sum +public import Mathlib.MeasureTheory.Constructions.BorelSpace.Basic + +/-! +# Actual gluing of a countable compatible family of chart measures + +The measure is a countable sum over disjointed chart patches. Its +restriction to every patch is proved equal to the original chart +measure. This is a measure construction, not a field containing a +postulated global induced volume. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set + +variable {X : Type*} [MeasurableSpace X] + +/-- Glued chart measure given by `Measure.sum (fun n => (μ n).restrict (disjointed U n))`. -/ +noncomputable def gluedChartMeasure (U : ℕ → Set X) (μ : ℕ → Measure X) : Measure X := + Measure.sum (fun n => (μ n).restrict (disjointed U n)) + +theorem gluedChartMeasure_restrict_patch (U : ℕ → Set X) (μ : ℕ → Measure X) + (hU : ∀ n, MeasurableSet (U n)) (hsupport : ∀ n, (μ n).restrict (U n) = μ n) + (hcompat : ∀ i j, (μ i).restrict (U j) = (μ j).restrict (U i)) (j : ℕ) : + (gluedChartMeasure U μ).restrict (U j) = μ j := by + have hD : ∀ n, MeasurableSet (disjointed U n) := fun n => MeasurableSet.disjointed hU n + have hterm (n : ℕ) : ((μ n).restrict (disjointed U n)).restrict (U j) = + (μ j).restrict (disjointed U n) := by + rw [Measure.restrict_restrict (hU j), inter_comm, + ← Measure.restrict_restrict (hD n), hcompat n j, + Measure.restrict_restrict_of_subset (disjointed_subset U n)] + rw [gluedChartMeasure, Measure.restrict_sum _ (hU j)] + simp_rw [hterm] + rw [← Measure.restrict_iUnion (disjoint_disjointed U) hD, iUnion_disjointed] + calc + (μ j).restrict (⋃ n, U n) = ((μ j).restrict (U j)).restrict (⋃ n, U n) := by + rw [hsupport j] + _ = μ j := by + rw [Measure.restrict_restrict (MeasurableSet.iUnion hU), + inter_eq_right.mpr (subset_iUnion U j), hsupport j] + +theorem gluedChartMeasure_supported_union (U : ℕ → Set X) (μ : ℕ → Measure X) + (hU : ∀ n, MeasurableSet (U n)) : + (gluedChartMeasure U μ).restrict (⋃ n, U n) = gluedChartMeasure U μ := by + rw [gluedChartMeasure, Measure.restrict_sum _ (MeasurableSet.iUnion hU)] + congr 1 + funext n + rw [Measure.restrict_restrict (MeasurableSet.iUnion hU), + inter_eq_right.mpr ((disjointed_subset U n).trans (subset_iUnion U n))] + +theorem gluedChartMeasure_unique (U : ℕ → Set X) (μ : ℕ → Measure X) + (hU : ∀ n, MeasurableSet (U n)) (hsupport : ∀ n, (μ n).restrict (U n) = μ n) + (hcompat : ∀ i j, (μ i).restrict (U j) = (μ j).restrict (U i)) + {ν : Measure X} (hνsupport : ν.restrict (⋃ n, U n) = ν) + (hν : ∀ n, ν.restrict (U n) = μ n) : ν = gluedChartMeasure U μ := by + have h : ν.restrict (⋃ n, U n) = (gluedChartMeasure U μ).restrict (⋃ n, U n) := + Measure.restrict_iUnion_congr.mpr (fun n => (hν n).trans + (gluedChartMeasure_restrict_patch U μ hU hsupport hcompat n).symm) + simpa only [hνsupport, gluedChartMeasure_supported_union U μ hU] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ComplexDiskPolar.lean b/LeanPool/VacuumBellSeparation/Shell/ComplexDiskPolar.lean new file mode 100644 index 0000000000..cc0c135b5d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ComplexDiskPolar.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.SpecialFunctions.PolarCoord +public import Mathlib.MeasureTheory.Integral.CircleAverage + +/-! +# Actual complex disk volume in polar coordinates + +This is complex Lebesgue measure, with its genuine radial Jacobian. +The nonnegative formula retains infinite integrals and requires no +integrability assumption. The angular interval is explicitly (-pi,pi). +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Complex MeasureTheory Metric Real Set +open scoped ENNReal + +theorem complex_polar_symm_eq_circleMap (p : ℝ × ℝ) : + Complex.polarCoord.symm p = circleMap 0 p.1 p.2 := by + simp only [Complex.polarCoord_symm_apply, circleMap_zero, Complex.exp_mul_I, + Complex.ofReal_cos, Complex.ofReal_sin] + +theorem complexDisk_lintegral_polar {R : ℝ} + (f : ℂ → ℝ≥0∞) (hf : Measurable f) : + (∫⁻ z in ball (0 : ℂ) R, f z) = + ∫⁻ r in Ioo (0 : ℝ) R, ∫⁻ θ in Ioo (-Real.pi) Real.pi, + ENNReal.ofReal r * f (circleMap 0 r θ) := by + let g : ℝ × ℝ → ℝ≥0∞ := fun p => ENNReal.ofReal p.1 * f (circleMap 0 p.1 p.2) + have hg : Measurable g := by + apply Measurable.mul (ENNReal.measurable_ofReal.comp measurable_fst) + apply hf.comp + exact (by unfold circleMap; fun_prop : Continuous (fun p : ℝ × ℝ => + circleMap 0 p.1 p.2)).measurable + have heq : ∀ p ∈ polarCoord.target, + ENNReal.ofReal p.1 * (ball (0 : ℂ) R).indicator f (Complex.polarCoord.symm p) = + (Ioo (0 : ℝ) R ×ˢ Ioo (-Real.pi) Real.pi).indicator g p := by + intro p hp + have hr : 0 < p.1 := hp.1 + have hθ : p.2 ∈ Ioo (-Real.pi) Real.pi := hp.2 + have hn : ‖Complex.polarCoord.symm p‖ = p.1 := by + rw [Complex.norm_polarCoord_symm, abs_of_pos hr] + by_cases h : p.1 < R + · have hz : Complex.polarCoord.symm p ∈ ball (0 : ℂ) R := by + simpa only [mem_ball_zero_iff, hn] using h + have hmem : p ∈ Ioo (0 : ℝ) R ×ˢ Ioo (-Real.pi) Real.pi := ⟨⟨hr, h⟩, hθ⟩ + rw [indicator_of_mem hz, indicator_of_mem hmem] + simp only [g, complex_polar_symm_eq_circleMap] + · have hz : Complex.polarCoord.symm p ∉ ball (0 : ℂ) R := by + simpa only [mem_ball_zero_iff, hn] using h + have hp' : p ∉ Ioo (0 : ℝ) R ×ˢ Ioo (-Real.pi) Real.pi := fun hmem => h hmem.1.2 + rw [indicator_of_notMem hz, mul_zero, indicator_of_notMem hp'] + have hsub : Ioo (0 : ℝ) R ×ˢ Ioo (-Real.pi) Real.pi ⊆ polarCoord.target := + fun _ hp => ⟨hp.1.1, hp.2⟩ + calc + _ = ∫⁻ z, (ball (0 : ℂ) R).indicator f z := + (lintegral_indicator measurableSet_ball f).symm + _ = ∫⁻ p in polarCoord.target, + ENNReal.ofReal p.1 * (ball (0 : ℂ) R).indicator f (Complex.polarCoord.symm p) := + (Complex.lintegral_comp_polarCoord_symm _).symm + _ = ∫⁻ p in Ioo (0 : ℝ) R ×ˢ Ioo (-Real.pi) Real.pi, g p := by + calc + _ = ∫⁻ p in polarCoord.target, + (Ioo (0 : ℝ) R ×ˢ Ioo (-Real.pi) Real.pi).indicator g p := + setLIntegral_congr_fun (measurableSet_Ioi.prod measurableSet_Ioo) heq + _ = _ := by + rw [setLIntegral_indicator (measurableSet_Ioo.prod measurableSet_Ioo), + inter_eq_left.mpr hsub] + _ = _ := by + rw [Measure.volume_eq_prod ℝ ℝ, setLIntegral_prod g hg.aemeasurable] + +theorem circleAverage_eq_integral_neg_pi (f : ℂ → ℝ) (c : ℂ) (R : ℝ) : + circleAverage f c R = (2 * Real.pi)⁻¹ * + ∫ θ in Ioo (-Real.pi) Real.pi, f (circleMap c R θ) := by + rw [circleAverage_eq_integral_add (-Real.pi), smul_eq_mul, + intervalIntegral.integral_comp_add_right (fun θ => f (circleMap c R θ)) (-Real.pi)] + have hπ : (2 : ℝ) * Real.pi + -Real.pi = Real.pi := by ring + rw [zero_add, hπ, intervalIntegral.integral_of_le (by linarith [pi_pos]), + integral_Ioc_eq_integral_Ioo] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ComplexEuclideanVolume.lean b/LeanPool/VacuumBellSeparation/Shell/ComplexEuclideanVolume.lean new file mode 100644 index 0000000000..e59766be0a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ComplexEuclideanVolume.lean @@ -0,0 +1,77 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Gaussian.ComplexMatrixGaussianIntegral +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeCoordinates + +/-! +# Complex coordinate volume and genuine real Euclidean volume + +The real orthonormal basis consisting of 1 and i in each coordinate +identifies complex Euclidean space with real Euclidean space of twice +the dimension. Its volume preservation, followed by the already proved +complex-plane product coordinate formula, proves the complex toLp/ofLp +volume bridge. The real-only pinned PiLp theorem is used only on real +coordinates. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +/-- Identify complex Euclidean coordinates with their real and imaginary coordinate pairs. -/ +noncomputable def complexEuclideanRealIsometry (n : ℕ) : + EuclideanSpace ℂ (Fin n) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin n × Fin 2) := + (Pi.orthonormalBasis (fun _ : Fin n => Complex.orthonormalBasisOneI)).repr.trans + (LinearIsometryEquiv.piLpCongrLeft 2 ℝ ℝ (Equiv.sigmaEquivProd (Fin n) (Fin 2))) + +theorem complexEuclideanRealIsometry_coordinates (n : ℕ) + (z : EuclideanSpace ℂ (Fin n)) : + WithLp.ofLp (complexEuclideanRealIsometry n z) = + Gaussian.complexRealCoordinates n (WithLp.ofLp z) := by + funext j + rcases j with ⟨i, k⟩ + fin_cases k <;> rfl + +theorem complexEuclidean_volume_preserving_ofLp (n : ℕ) : + MeasurePreserving (@WithLp.ofLp 2 (Fin n → ℂ)) := by + have h := (Gaussian.complexRealCoordinates_measurePreserving n).symm.comp + ((PiLp.volume_preserving_ofLp (Fin n × Fin 2)).comp + (complexEuclideanRealIsometry n).measurePreserving) + have heq : (fun z : EuclideanSpace ℂ (Fin n) => + (Gaussian.complexRealCoordinates n).symm + (WithLp.ofLp (complexEuclideanRealIsometry n z))) = WithLp.ofLp := by + funext z + apply (Gaussian.complexRealCoordinates n).injective + rw [MeasurableEquiv.apply_symm_apply] + exact complexEuclideanRealIsometry_coordinates n z + change MeasurePreserving (fun z : EuclideanSpace ℂ (Fin n) => + (Gaussian.complexRealCoordinates n).symm + (WithLp.ofLp (complexEuclideanRealIsometry n z))) at h + rw [heq] at h + exact h + +theorem complexEuclidean_volume_preserving_toLp (n : ℕ) : + MeasurePreserving (@WithLp.toLp 2 (Fin n → ℂ)) := by + have h : MeasurePreserving (MeasurableEquiv.toLp 2 (Fin n → ℂ)).symm + (volume : Measure (EuclideanSpace ℂ (Fin n))) (volume : Measure (Fin n → ℂ)) := by + simpa only [MeasurableEquiv.coe_toLp_symm] using + complexEuclidean_volume_preserving_ofLp n + simpa only [MeasurableEquiv.symm_symm, MeasurableEquiv.coe_toLp] using h.symm + +theorem shellEuclideanCoordinates_measurePreserving : + MeasurePreserving shellEuclideanCoordinates := + complexEuclidean_volume_preserving_ofLp 3 + +theorem shellEuclideanCoordinates_symm_measurePreserving : + MeasurePreserving shellEuclideanCoordinates.symm := + complexEuclidean_volume_preserving_toLp 3 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ComplexLorentzFamilySmooth.lean b/LeanPool/VacuumBellSeparation/Shell/ComplexLorentzFamilySmooth.lean new file mode 100644 index 0000000000..f67b763b93 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ComplexLorentzFamilySmooth.lean @@ -0,0 +1,73 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ComplexLorentzParameters + +/-! # Smoothness of the actual complexified six-parameter Lorentz family -/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Complex Lorentz family action obtained from `complexifiedSpacetimeMap`. -/ +noncomputable def complexLorentzFamilyAction (s : Fin 6 → ℝ) + (z : ComplexSpacetime) : ComplexSpacetime := + complexifiedSpacetimeMap (lorentzParameterFamily s) z + +theorem complexLorentzFamilyAction_factors (s : Fin 6 → ℝ) (z : ComplexSpacetime) : + complexLorentzFamilyAction s z = + complexLorentzParameterAction 5 (s 5) + (complexLorentzParameterAction 4 (s 4) + (complexLorentzParameterAction 3 (s 3) + (complexLorentzParameterAction 2 (s 2) + (complexLorentzParameterAction 1 (s 1) + (complexLorentzParameterAction 0 (s 0) z))))) := by + simp only [complexLorentzFamilyAction, lorentzParameterFamily, + complexifiedSpacetimeMap_trans, complexified_lorentzParameterFactor] + +theorem contDiff_complexLorentzFamilyAction : + ContDiff ℝ ⊤ (fun q : (Fin 6 → ℝ) × ComplexSpacetime => + complexLorentzFamilyAction q.1 q.2) := by + have hs (j : Fin 6) : ContDiff ℝ ⊤ + (fun q : (Fin 6 → ℝ) × ComplexSpacetime => q.1 j) := + (contDiff_apply ℝ (fun _ : Fin 6 => ℝ) j).comp contDiff_fst + have step (j : Fin 6) + (z : ((Fin 6 → ℝ) × ComplexSpacetime) → ComplexSpacetime) + (hz : ContDiff ℝ ⊤ z) : + ContDiff ℝ ⊤ (fun q => complexLorentzParameterAction j (q.1 j) (z q)) := by + exact (contDiff_complexLorentzParameterAction j).comp₂ (hs j) hz + simp only [complexLorentzFamilyAction_factors] + apply step 5 + apply step 4 + apply step 3 + apply step 2 + apply step 1 + apply step 0 + exact contDiff_snd + +theorem complexLorentzFamilyAction_zero (z : ComplexSpacetime) : + complexLorentzFamilyAction 0 z = z := by + rw [complexLorentzFamilyAction_factors] + apply Prod.ext + · simp [complexLorentzParameterAction] + · ext i + fin_cases i <;> simp [complexLorentzParameterAction] + +theorem lorentzParameterFamily_single (j : Fin 6) (r : ℝ) : + lorentzParameterFamily (Pi.single j r) = lorentzParameterFactor j r := by + apply ContinuousLinearEquiv.ext + funext x + fin_cases j <;> simp [lorentzParameterFamily, lorentzParameterFactor_zero] + +theorem complexLorentzFamilyAction_single (j : Fin 6) (r : ℝ) + (z : ComplexSpacetime) : + complexLorentzFamilyAction (Pi.single j r) z = complexLorentzParameterAction j r z := by + rw [complexLorentzFamilyAction, lorentzParameterFamily_single, + complexified_lorentzParameterFactor] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ComplexLorentzParameters.lean b/LeanPool/VacuumBellSeparation/Shell/ComplexLorentzParameters.lean new file mode 100644 index 0000000000..9746f5c7c0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ComplexLorentzParameters.lean @@ -0,0 +1,216 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.LorentzParameterFamily +public import Mathlib.Analysis.Calculus.Deriv.Prod +public import Mathlib.Analysis.Complex.RealDeriv +public import Mathlib.Analysis.SpecialFunctions.Trigonometric.DerivHyp + +/-! +# Coordinates and actual derivatives of the Lorentz factors + +These explicit complex formulas are identified with the complexification +of the original real spacetime maps. Their derivatives are real +parameter derivatives; the spacetime argument remains complex. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Complex Lorentz parameter action. -/ +noncomputable def complexLorentzParameterAction (j : Fin 6) (s : ℝ) + (z : ComplexSpacetime) : ComplexSpacetime := + ![((Real.cosh s : ℂ) * z.1 + (Real.sinh s : ℂ) * z.2 0, + ![(Real.sinh s : ℂ) * z.1 + (Real.cosh s : ℂ) * z.2 0, z.2 1, z.2 2]), + ((Real.cosh s : ℂ) * z.1 + (Real.sinh s : ℂ) * z.2 1, + ![z.2 0, (Real.sinh s : ℂ) * z.1 + (Real.cosh s : ℂ) * z.2 1, z.2 2]), + (z.1, ![(Real.cos s : ℂ) * z.2 0 - (Real.sin s : ℂ) * z.2 1, + (Real.sin s : ℂ) * z.2 0 + (Real.cos s : ℂ) * z.2 1, z.2 2]), + (z.1, ![(Real.cos s : ℂ) * z.2 0 - (Real.sin s : ℂ) * z.2 2, + z.2 1, (Real.sin s : ℂ) * z.2 0 + (Real.cos s : ℂ) * z.2 2]), + (z.1, ![z.2 0, (Real.cos s : ℂ) * z.2 1 - (Real.sin s : ℂ) * z.2 2, + (Real.sin s : ℂ) * z.2 1 + (Real.cos s : ℂ) * z.2 2]), + ((Real.cosh s : ℂ) * z.1 + (Real.sinh s : ℂ) * z.2 2, + ![z.2 0, z.2 1, (Real.sinh s : ℂ) * z.1 + (Real.cosh s : ℂ) * z.2 2])] j + +theorem complexified_lorentzParameterFactor (j : Fin 6) (s : ℝ) + (z : ComplexSpacetime) : + complexifiedSpacetimeMap (lorentzParameterFactor j s) z = + complexLorentzParameterAction j s z := by + fin_cases j <;> apply Prod.ext + all_goals + try (ext i; fin_cases i) + all_goals + simp [lorentzParameterFactor, complexLorentzParameterAction, + complexifiedSpacetimeMap_apply, complexSpacetimeOfReal, Fin.sum_univ_three, + coordinateBoost2, coordinateBoost3, spatialLorentzConjugate_apply, + coordinateLorentzRotation13_eq, coordinateLorentzRotation23_eq, + boost_apply, boostCLM_apply, spatialRotation_apply, + spatialPlaneRotation_apply, spatialPlaneRotation13_apply, spatialPlaneRotation23_apply, + spatialCoordinatePermutation, LinearIsometryEquiv.piLpCongrLeft_apply, + Equiv.piCongrLeft', Equiv.swap_apply_def, coordDir_zero, coordDir_succ, + e₁, EuclideanSpace.inner_single_left, PiLp.single_apply, Complex.ofReal_add, + Complex.ofReal_sub] + all_goals ring + +/-- Lorentz parameter generator. -/ +noncomputable def lorentzParameterGenerator (j : Fin 6) (z : ComplexSpacetime) : + ComplexSpacetime := + ![(z.2 0, ![z.1, 0, 0]), (z.2 1, ![0, z.1, 0]), + (0, ![-z.2 1, z.2 0, 0]), (0, ![-z.2 2, 0, z.2 0]), + (0, ![0, -z.2 2, z.2 1]), (z.2 2, ![0, 0, z.1])] j + +theorem contDiff_complexLorentzParameterAction (j : Fin 6) : + ContDiff ℝ ⊤ (fun q : ℝ × ComplexSpacetime => + complexLorentzParameterAction j q.1 q.2) := by + have hz₀ : ContDiff ℝ ⊤ (fun q : ℝ × ComplexSpacetime => q.2.1) := + contDiff_fst.comp contDiff_snd + have hz (i : Fin 3) : ContDiff ℝ ⊤ (fun q : ℝ × ComplexSpacetime => q.2.2 i) := + (contDiff_apply ℝ (fun _ : Fin 3 => ℂ) i).comp (contDiff_snd.comp contDiff_snd) + have hc : ContDiff ℝ ⊤ (fun q : ℝ × ComplexSpacetime => (Real.cosh q.1 : ℂ)) := + Complex.ofRealCLM.contDiff.comp (Real.contDiff_cosh.comp contDiff_fst) + have hs : ContDiff ℝ ⊤ (fun q : ℝ × ComplexSpacetime => (Real.sinh q.1 : ℂ)) := + Complex.ofRealCLM.contDiff.comp (Real.contDiff_sinh.comp contDiff_fst) + have hco : ContDiff ℝ ⊤ (fun q : ℝ × ComplexSpacetime => (Real.cos q.1 : ℂ)) := + Complex.ofRealCLM.contDiff.comp (Real.contDiff_cos.comp contDiff_fst) + have hsi : ContDiff ℝ ⊤ (fun q : ℝ × ComplexSpacetime => (Real.sin q.1 : ℂ)) := + Complex.ofRealCLM.contDiff.comp (Real.contDiff_sin.comp contDiff_fst) + fin_cases j + · apply ContDiff.prodMk + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hc.mul hz₀).add (hs.mul (hz 0)) + · apply contDiff_pi.mpr + intro i + fin_cases i + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hs.mul hz₀).add (hc.mul (hz 0)) + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using hz 1 + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using hz 2 + · apply ContDiff.prodMk + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hc.mul hz₀).add (hs.mul (hz 1)) + · apply contDiff_pi.mpr + intro i + fin_cases i + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using hz 0 + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hs.mul hz₀).add (hc.mul (hz 1)) + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using hz 2 + · apply ContDiff.prodMk + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] using hz₀ + · apply contDiff_pi.mpr + intro i + fin_cases i + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hco.mul (hz 0)).sub (hsi.mul (hz 1)) + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hsi.mul (hz 0)).add (hco.mul (hz 1)) + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using hz 2 + · apply ContDiff.prodMk + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] using hz₀ + · apply contDiff_pi.mpr + intro i + fin_cases i + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hco.mul (hz 0)).sub (hsi.mul (hz 2)) + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using hz 1 + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hsi.mul (hz 0)).add (hco.mul (hz 2)) + · apply ContDiff.prodMk + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] using hz₀ + · apply contDiff_pi.mpr + intro i + fin_cases i + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using hz 0 + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hco.mul (hz 1)).sub (hsi.mul (hz 2)) + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hsi.mul (hz 1)).add (hco.mul (hz 2)) + · apply ContDiff.prodMk + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hc.mul hz₀).add (hs.mul (hz 2)) + · apply contDiff_pi.mpr + intro i + fin_cases i + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using hz 0 + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using hz 1 + · simpa only [complexLorentzParameterAction, Matrix.cons_val_zero, Matrix.cons_val_zero', + Matrix.cons_val_succ, Matrix.cons_val_succ', Pi.add_def, Pi.mul_def, Pi.sub_def] + using (hs.mul hz₀).add (hc.mul (hz 2)) + +theorem hasDerivAt_complexLorentzParameterAction_zero (j : Fin 6) + (z : ComplexSpacetime) : + HasDerivAt (fun s : ℝ => complexLorentzParameterAction j s z) + (lorentzParameterGenerator j z) 0 := by + have hc : HasDerivAt (fun s : ℝ => (Real.cosh s : ℂ)) 0 0 := by + simpa using (Real.hasDerivAt_cosh 0).ofReal_comp + have hs : HasDerivAt (fun s : ℝ => (Real.sinh s : ℂ)) 1 0 := by + simpa using (Real.hasDerivAt_sinh 0).ofReal_comp + have hco : HasDerivAt (fun s : ℝ => (Real.cos s : ℂ)) 0 0 := by + simpa using (Real.hasDerivAt_cos 0).ofReal_comp + have hsi : HasDerivAt (fun s : ℝ => (Real.sin s : ℂ)) 1 0 := by + simpa using (Real.hasDerivAt_sin 0).ofReal_comp + have hb (x y : ℂ) : HasDerivAt + (fun s : ℝ => (Real.cosh s : ℂ) * x + (Real.sinh s : ℂ) * y) y 0 := by + simpa only [Pi.add_def, zero_mul, one_mul, zero_add, add_zero] + using (hc.mul_const x).add (hs.mul_const y) + have hb' (x y : ℂ) : HasDerivAt + (fun s : ℝ => (Real.sinh s : ℂ) * x + (Real.cosh s : ℂ) * y) x 0 := by + simpa only [Pi.add_def, zero_mul, one_mul, zero_add, add_zero] + using (hs.mul_const x).add (hc.mul_const y) + have hr (x y : ℂ) : HasDerivAt + (fun s : ℝ => (Real.cos s : ℂ) * x - (Real.sin s : ℂ) * y) (-y) 0 := by + simpa only [Pi.sub_def, zero_mul, one_mul, zero_sub] + using (hco.mul_const x).sub (hsi.mul_const y) + have hr' (x y : ℂ) : HasDerivAt + (fun s : ℝ => (Real.sin s : ℂ) * x + (Real.cos s : ℂ) * y) x 0 := by + simpa only [Pi.add_def, zero_mul, one_mul, zero_add, add_zero] + using (hsi.mul_const x).add (hco.mul_const y) + fin_cases j <;> apply HasDerivAt.prodMk + all_goals + first + | exact hb _ _ + | exact hasDerivAt_const 0 _ + | (apply hasDerivAt_pi.mpr; intro i; fin_cases i <;> + first | exact hb' _ _ | exact hr _ _ | exact hr' _ _ | + exact hasDerivAt_const 0 _) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ComplexShellChart.lean b/LeanPool/VacuumBellSeparation/Shell/ComplexShellChart.lean new file mode 100644 index 0000000000..62b2b71a00 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ComplexShellChart.lean @@ -0,0 +1,126 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexLorentzForm +public import Mathlib.Analysis.Complex.SqrtDeriv + +/-! +# Literal complex-shell coordinates near the canonical regular preimage + +The free coordinates are (z0,z1,z3); the second spatial coordinate is +the principal square root of z0^2-z1^2-z3^2-m^2. On its positive-real +radicand neighbourhood this gives an actual holomorphic shell chart. +No chart measure or pushforward-density conclusion is asserted here. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Continuous linear map for the complex shell coordinates, of type `ComplexSpacetime →L[ℂ] (Fin 3 +→ ℂ)`. -/ +noncomputable def complexShellCoordinates : ComplexSpacetime →L[ℂ] (Fin 3 → ℂ) := + ContinuousLinearMap.pi fun i => Fin.cases + (ContinuousLinearMap.fst ℂ ℂ (Fin 3 → ℂ)) + (fun j => (ContinuousLinearMap.proj (if j = 0 then 0 else 2)).comp + (ContinuousLinearMap.snd ℂ ℂ (Fin 3 → ℂ))) i + +theorem complexShellCoordinates_apply (z : ComplexSpacetime) : + complexShellCoordinates z = ![z.1, z.2 0, z.2 2] := by + ext i + fin_cases i <;> rfl + +/-- Complex shell radicand given by `w 0 ^ 2 - w 1 ^ 2 - w 2 ^ 2 - (m : ℂ) ^ 2`. -/ +noncomputable def complexShellRadicand (m : ℝ) (w : Fin 3 → ℂ) : ℂ := + w 0 ^ 2 - w 1 ^ 2 - w 2 ^ 2 - (m : ℂ) ^ 2 + +/-- Complex shell chart. -/ +noncomputable def complexShellChart (m : ℝ) (w : Fin 3 → ℂ) : ComplexSpacetime := + (w 0, ![w 1, Complex.sqrt (complexShellRadicand m w), w 2]) + +/-- Complex shell chart domain with membership specified by `{w | 0 < (complexShellRadicand m +w).re}`. -/ +def complexShellChartDomain (m : ℝ) : Set (Fin 3 → ℂ) := + {w | 0 < (complexShellRadicand m w).re} + +theorem continuous_complexShellRadicand (m : ℝ) : Continuous (complexShellRadicand m) := by + unfold complexShellRadicand + fun_prop + +theorem isOpen_complexShellChartDomain (m : ℝ) : IsOpen (complexShellChartDomain m) := + isOpen_lt continuous_const (Complex.continuous_re.comp (continuous_complexShellRadicand m)) + +theorem complexShellChart_mem_shell (m : ℝ) (w : Fin 3 → ℂ) : + complexShellChart m w ∈ complexShell m := by + have hs : Complex.sqrt (complexShellRadicand m w) ^ 2 = complexShellRadicand m w := by + exact Complex.cpow_ofNat_inv_pow _ 2 + change (w 0) ^ 2 - spatialDot + ![w 1, Complex.sqrt (complexShellRadicand m w), w 2] + ![w 1, Complex.sqrt (complexShellRadicand m w), w 2] = (m : ℂ) ^ 2 + rw [spatialDot_eq] + change (w 0) ^ 2 - (w 1 * w 1 + + Complex.sqrt (complexShellRadicand m w) * Complex.sqrt (complexShellRadicand m w) + + w 2 * w 2) = (m : ℂ) ^ 2 + rw [← pow_two (Complex.sqrt (complexShellRadicand m w)), hs] + dsimp only [complexShellRadicand] + ring + +theorem complexShellCoordinates_chart (m : ℝ) (w : Fin 3 → ℂ) : + complexShellCoordinates (complexShellChart m w) = w := by + rw [complexShellCoordinates_apply] + ext i + fin_cases i <;> rfl + +theorem complexShellRadicand_coordinates {m : ℝ} {z : ComplexSpacetime} + (hz : z ∈ complexShell m) : + complexShellRadicand m (complexShellCoordinates z) = (z.2 1) ^ 2 := by + change z.1 ^ 2 - spatialDot z.2 z.2 = (m : ℂ) ^ 2 at hz + rw [spatialDot_eq] at hz + rw [complexShellRadicand, complexShellCoordinates_apply] + change z.1 ^ 2 - (z.2 0) ^ 2 - (z.2 2) ^ 2 - (m : ℂ) ^ 2 = (z.2 1) ^ 2 + linear_combination hz + +theorem complexShellChart_coordinates {m : ℝ} {z : ComplexSpacetime} + (hz : z ∈ complexShell m) (hpos : 0 < (z.2 1).re) : + complexShellChart m (complexShellCoordinates z) = z := by + have hs : Complex.sqrt (complexShellRadicand m (complexShellCoordinates z)) = z.2 1 := by + rw [complexShellRadicand_coordinates hz] + exact Complex.sq_cpow_two_inv hpos + apply Prod.ext + · rfl + · ext i + fin_cases i + · rfl + · exact hs + · rfl + +theorem complexShellChart_second_re_pos {m : ℝ} {w : Fin 3 → ℂ} + (hw : w ∈ complexShellChartDomain m) : 0 < ((complexShellChart m w).2 1).re := by + change 0 < (Complex.sqrt (complexShellRadicand m w)).re + rw [Complex.sqrt, Complex.cpow_inv_two_re] + apply Real.sqrt_pos.mpr + have hn := norm_nonneg (complexShellRadicand m w) + change 0 < (complexShellRadicand m w).re at hw + positivity + +theorem differentiableAt_complexShellChart {m : ℝ} {w : Fin 3 → ℂ} + (hw : w ∈ complexShellChartDomain m) : DifferentiableAt ℂ (complexShellChart m) w := by + have hr : DifferentiableAt ℂ (complexShellRadicand m) w := by + unfold complexShellRadicand + fun_prop + have hs := (Complex.differentiableAt_sqrt (Complex.mem_slitPlane_iff.mpr (Or.inl hw))).comp w hr + apply DifferentiableAt.prodMk + · exact (ContinuousLinearMap.proj (0 : Fin 3) : (Fin 3 → ℂ) →L[ℂ] ℂ).differentiableAt + · apply differentiableAt_pi.mpr + intro i + fin_cases i + · exact (ContinuousLinearMap.proj (1 : Fin 3) : (Fin 3 → ℂ) →L[ℂ] ℂ).differentiableAt + · exact hs + · exact (ContinuousLinearMap.proj (2 : Fin 3) : (Fin 3 → ℂ) →L[ℂ] ℂ).differentiableAt + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ComplexShellLocalChart.lean b/LeanPool/VacuumBellSeparation/Shell/ComplexShellLocalChart.lean new file mode 100644 index 0000000000..64017d8d27 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ComplexShellLocalChart.lean @@ -0,0 +1,124 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ComplexShellChart +public import Mathlib.Topology.OpenPartialHomeomorph.Constructions + +/-! +# Actual local shell charts and their Lorentz transports + +The target retains both the positive real eliminated coordinate and +the positive real radicand condition. The transported ambient chart +has an explicit continuous-linear left inverse; hence its genuine +complex derivative is injective. Induced Euclidean volume is separate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Local coordinate chart on the complex mass shell. -/ +noncomputable def complexShellLocalChart (m : ℝ) : + OpenPartialHomeomorph (Fin 3 → ℂ) (complexShell m) where + toFun w := ⟨complexShellChart m w, complexShellChart_mem_shell m w⟩ + invFun z := complexShellCoordinates z.1 + source := complexShellChartDomain m + target := {z | 0 < (z.1.2 1).re ∧ complexShellCoordinates z.1 ∈ complexShellChartDomain m} + map_source' := by + intro w hw + exact ⟨complexShellChart_second_re_pos hw, by + simpa only [complexShellCoordinates_chart] using hw⟩ + map_target' := fun _ hz => hz.2 + left_inv' := fun _ _ => complexShellCoordinates_chart m _ + right_inv' := fun z hz => Subtype.ext (complexShellChart_coordinates z.2 hz.1) + open_source := isOpen_complexShellChartDomain m + open_target := + (isOpen_lt (continuous_const : Continuous (fun _ : complexShell m => (0 : ℝ))) + (show Continuous (fun z : complexShell m => (z.1.2 1).re) by fun_prop)).inter + ((isOpen_complexShellChartDomain m).preimage + (complexShellCoordinates.continuous.comp continuous_subtype_val)) + continuousOn_toFun := by + apply Topology.IsInducing.subtypeVal.continuousOn_iff.mpr + intro w hw + exact (differentiableAt_complexShellChart hw).continuousAt.continuousWithinAt + continuousOn_invFun := + (complexShellCoordinates.continuous.comp continuous_subtype_val).continuousOn + +/-- Complex Lorentz shell homeomorph. -/ +noncomputable def complexLorentzShellHomeomorph (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) : + complexShell m ≃ₜ complexShell m where + toFun z := ⟨complexifiedSpacetimeMap Λ z.1, complexifiedSpacetimeMap_mem_shell Λ hΛ z.2⟩ + invFun z := ⟨complexifiedSpacetimeMap Λ.symm z.1, + complexifiedSpacetimeMap_mem_shell Λ.symm hΛ.symm z.2⟩ + left_inv z := Subtype.ext (complexifiedSpacetimeMap_inverse Λ z.1) + right_inv z := Subtype.ext (by + simpa only [ContinuousLinearEquiv.symm_symm] using + complexifiedSpacetimeMap_inverse Λ.symm z.1) + continuous_toFun := + ((complexifiedSpacetimeMap Λ).continuous.comp continuous_subtype_val).subtype_mk _ + continuous_invFun := + ((complexifiedSpacetimeMap Λ.symm).continuous.comp continuous_subtype_val).subtype_mk _ + +/-- Lorentz complex shell local chart. -/ +noncomputable def lorentzComplexShellLocalChart (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) : + OpenPartialHomeomorph (Fin 3 → ℂ) (complexShell m) := + (complexShellLocalChart m).transHomeomorph (complexLorentzShellHomeomorph m Λ hΛ) + +/-- Lorentz complex shell chart defined as `complexifiedSpacetimeMap Λ (complexShellChart m w)`. -/ +noncomputable def lorentzComplexShellChart (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (w : Fin 3 → ℂ) : ComplexSpacetime := + complexifiedSpacetimeMap Λ (complexShellChart m w) + +/-- Continuous linear map for the lorentz complex shell coordinates, of type `ComplexSpacetime +→L[ℂ] (Fin 3 → ℂ)`. -/ +noncomputable def lorentzComplexShellCoordinates (Λ : Spacetime ≃L[ℝ] Spacetime) : + ComplexSpacetime →L[ℂ] (Fin 3 → ℂ) := + complexShellCoordinates.comp (complexifiedSpacetimeMap Λ.symm) + +theorem lorentzComplexShellCoordinates_chart (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (w : Fin 3 → ℂ) : + lorentzComplexShellCoordinates Λ (lorentzComplexShellChart m Λ w) = w := by + change complexShellCoordinates (complexifiedSpacetimeMap Λ.symm + (complexifiedSpacetimeMap Λ (complexShellChart m w))) = w + rw [complexifiedSpacetimeMap_inverse, complexShellCoordinates_chart] + +theorem differentiableAt_lorentzComplexShellChart {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {w : Fin 3 → ℂ} + (hw : w ∈ complexShellChartDomain m) : + DifferentiableAt ℂ (lorentzComplexShellChart m Λ) w := + (complexifiedSpacetimeMap Λ).differentiableAt.comp w (differentiableAt_complexShellChart hw) + +theorem lorentzComplexShellChart_derivative_left_inverse {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {w : Fin 3 → ℂ} + (hw : w ∈ complexShellChartDomain m) : + (lorentzComplexShellCoordinates Λ).comp (fderiv ℂ (lorentzComplexShellChart m Λ) w) = + ContinuousLinearMap.id ℂ (Fin 3 → ℂ) := by + have h := (lorentzComplexShellCoordinates Λ).hasFDerivAt.comp w + (differentiableAt_lorentzComplexShellChart Λ hw).hasFDerivAt + have he : (fun z => lorentzComplexShellCoordinates Λ (lorentzComplexShellChart m Λ z)) = id := + funext (lorentzComplexShellCoordinates_chart m Λ) + simp only [Function.comp_def] at h + rw [he] at h + exact h.unique (hasFDerivAt_id w) + +theorem lorentzComplexShellChart_derivative_injective {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {w : Fin 3 → ℂ} + (hw : w ∈ complexShellChartDomain m) : + Function.Injective (fderiv ℂ (lorentzComplexShellChart m Λ) w) := by + intro x y hxy + have h := congrArg (lorentzComplexShellCoordinates Λ) hxy + change ((lorentzComplexShellCoordinates Λ).comp + (fderiv ℂ (lorentzComplexShellChart m Λ) w)) x = + ((lorentzComplexShellCoordinates Λ).comp + (fderiv ℂ (lorentzComplexShellChart m Λ) w)) y at h + simpa only [lorentzComplexShellChart_derivative_left_inverse Λ hw, + ContinuousLinearMap.id_apply] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ControlledContourNeighborhood.lean b/LeanPool/VacuumBellSeparation/Shell/ControlledContourNeighborhood.lean new file mode 100644 index 0000000000..750e64f9ef --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ControlledContourNeighborhood.lean @@ -0,0 +1,113 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.FullContourParameters +public import LeanPool.VacuumBellSeparation.Shell.LorentzParameterContinuity + +/-! +# Actual open control of the full contour parameters + +A strict bound at the constructed preimage persists on a genuine open +parameter ball, simultaneously for energy and both Euclidean operator +norms. This includes the varying mass coordinate and stays inside the +actual inverse-function chart. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped Topology + +/-- Full contour Lorentz map of type `Spacetime ≃L[ℝ] Spacetime`. -/ +noncomputable def fullContourLorentzMap (Λ : Spacetime ≃L[ℝ] Spacetime) + (q : ShellContourParameters) : Spacetime ≃L[ℝ] Spacetime := + (lorentzParameterFamily (fullContourLorentzParameters q)).trans Λ + +theorem fullContourLorentzMap_zero (Λ : Spacetime ≃L[ℝ] Spacetime) : + fullContourLorentzMap Λ 0 = Λ := by + have hp : fullContourLorentzParameters 0 = 0 := by ext i; fin_cases i <;> rfl + unfold fullContourLorentzMap + rw [hp, lorentzParameterFamily_zero] + rfl + +theorem fullContourLorentzMap_isProper {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsProperLorentzMap Λ) (q : ShellContourParameters) : + IsProperLorentzMap (fullContourLorentzMap Λ q) := + (lorentzParameterFamily_isProper _).trans hΛ + +theorem fullContourLorentzMap_isOrthochronous {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (hfΛ : IsOrthochronousMap Λ) (q : ShellContourParameters) : + IsOrthochronousMap (fullContourLorentzMap Λ q) := + IsOrthochronousMap.trans (lorentzParameterFamily_isProper _).1 hΛ + (lorentzParameterFamily_isOrthochronous _) hfΛ + +theorem continuous_fullContourLorentzMap_apply (Λ : Spacetime ≃L[ℝ] Spacetime) + (x : Spacetime) : Continuous (fun q => fullContourLorentzMap Λ q x) := by + have hp : Continuous fullContourLorentzParameters := by + unfold fullContourLorentzParameters + apply continuous_pi + intro i + fin_cases i + · change Continuous (fun q : ShellContourParameters => q.1 0) + fun_prop + · change Continuous (fun q : ShellContourParameters => q.1 1) + fun_prop + · change Continuous (fun q : ShellContourParameters => q.1 2) + fun_prop + · change Continuous (fun q : ShellContourParameters => q.1 3) + fun_prop + · change Continuous (fun q : ShellContourParameters => q.1 4) + fun_prop + · change Continuous (fun q : ShellContourParameters => q.2.2 0) + fun_prop + exact Λ.continuous.comp ((continuous_lorentzParameterFamily_apply x).comp hp) + +theorem controlledContour_parameter_ball {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (m : ℝ) {B θ R : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) + (henergy : radialShellEnergy m B 0 < R) + (hnorm : spacetimeEuclideanOperatorNorm Λ < R) + (hinv : spacetimeEuclideanOperatorNorm Λ.symm < R) : + ∃ r > 0, ∀ q : ShellContourParameters, ‖q‖ < r → + q ∈ (fullContourLocalCoordinates m hB hθ).source ∧ + 0 < fullContourEnergy m B q ∧ fullContourEnergy m B q < R ∧ + spacetimeEuclideanOperatorNorm (fullContourLorentzMap Λ q) < R ∧ + spacetimeEuclideanOperatorNorm (fullContourLorentzMap Λ q).symm < R := by + have he := (contDiffAt_fullContourEnergy hB m).continuousAt + have h0 : 0 < fullContourEnergy m B 0 := by + rw [fullContourEnergy_zero] + exact radialShellEnergy_pos hB m + have hE : fullContourEnergy m B 0 < R := by + rwa [fullContourEnergy_zero] + have hne := continuous_spacetimeEuclideanOperatorNorm_family + (fullContourLorentzMap Λ) (continuous_fullContourLorentzMap_apply Λ) + have hni := continuous_lorentzInverse_operatorNorm_family + (fullContourLorentzMap Λ) + (fun q => (lorentzParameterFamily_isProper _).1.trans hΛ) + (continuous_fullContourLorentzMap_apply Λ) + have hn0 : spacetimeEuclideanOperatorNorm (fullContourLorentzMap Λ 0) < R := by + rwa [fullContourLorentzMap_zero] + have hi0 : spacetimeEuclideanOperatorNorm (fullContourLorentzMap Λ 0).symm < R := by + rwa [fullContourLorentzMap_zero] + have hs := (fullContourLocalCoordinates m hB hθ).open_source.mem_nhds + (zero_mem_fullContourLocalCoordinates m hB hθ) + have hall : ∀ᶠ q : ShellContourParameters in 𝓝 0, + q ∈ (fullContourLocalCoordinates m hB hθ).source ∧ + 0 < fullContourEnergy m B q ∧ fullContourEnergy m B q < R ∧ + spacetimeEuclideanOperatorNorm (fullContourLorentzMap Λ q) < R ∧ + spacetimeEuclideanOperatorNorm (fullContourLorentzMap Λ q).symm < R := by + filter_upwards [hs, continuousAt_const.eventually_lt he h0, + he.eventually_lt continuousAt_const hE, + hne.continuousAt.eventually_lt continuousAt_const hn0, + hni.continuousAt.eventually_lt continuousAt_const hi0] with q hq he0 heR hn hi + exact ⟨hq, he0, heR, hn, hi⟩ + obtain ⟨r, hr, hh⟩ := Metric.eventually_nhds_iff.mp hall + exact ⟨r, hr, fun q hq => hh (by simpa only [dist_zero_right] using hq)⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ControlledContourRectangle.lean b/LeanPool/VacuumBellSeparation/Shell/ControlledContourRectangle.lean new file mode 100644 index 0000000000..ab1c322a39 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ControlledContourRectangle.lean @@ -0,0 +1,73 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ControlledContourNeighborhood + +/-! +# Rectangular inverse coordinates with uniform physical control + +A genuine product neighbourhood in free shell coordinates and all +retained auxiliary coordinates is mapped back into the controlled +physical parameter ball. In particular the same neighbourhood permits +variation of mass and of all three integration-fibre coordinates. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped Topology + +private theorem localChart_inverse_ball + {E F : Type*} [NormedAddCommGroup E] [NormedAddCommGroup F] + (e : OpenPartialHomeomorph E F) (h0 : (0 : E) ∈ e.source) + {r : ℝ} (hr : 0 < r) : + ∃ δ > 0, ∀ y : F, dist y (e 0) < δ → y ∈ e.target ∧ ‖e.symm y‖ < r := by + have hcenter := e.map_source h0 + have hc : ContinuousAt e.symm (e 0) := e.continuousAt_symm hcenter + have hi : ‖e.symm (e 0)‖ < r := by simpa only [e.left_inv h0, norm_zero] using hr + have hall : ∀ᶠ y in 𝓝 (e 0), y ∈ e.target ∧ ‖e.symm y‖ < r := by + filter_upwards [e.open_target.mem_nhds hcenter, + hc.norm.eventually_lt continuousAt_const hi] with y hy hn + exact ⟨hy, hn⟩ + exact Metric.eventually_nhds_iff.mp hall + +theorem controlledContour_target_rectangle {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (m : ℝ) {B θ R : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) + (henergy : radialShellEnergy m B 0 < R) + (hnorm : spacetimeEuclideanOperatorNorm Λ < R) + (hinv : spacetimeEuclideanOperatorNorm Λ.symm < R) : + ∃ δ > 0, ∀ w : Fin 3 → ℂ, ∀ n : ShellContourAux, + dist w (referenceContourMap m B θ 0) < δ → ‖n‖ < δ → + (w, n) ∈ (fullContourLocalCoordinates m hB hθ).target ∧ + let q := (fullContourLocalCoordinates m hB hθ).symm (w, n) + q.2 = n ∧ fullContourMap m B θ q = w ∧ + 0 < fullContourEnergy m B q ∧ fullContourEnergy m B q < R ∧ + spacetimeEuclideanOperatorNorm (fullContourLorentzMap Λ q) < R ∧ + spacetimeEuclideanOperatorNorm (fullContourLorentzMap Λ q).symm < R := by + obtain ⟨r, hr, hball⟩ := controlledContour_parameter_ball hΛ m hB hθ henergy hnorm hinv + let e := fullContourLocalCoordinates m hB hθ + obtain ⟨δ, hδ, hδball⟩ := localChart_inverse_ball e + (zero_mem_fullContourLocalCoordinates m hB hθ) hr + have he0 : e 0 = (referenceContourMap m B θ 0, 0) := by + rw [fullContourLocalCoordinates_apply] + exact Prod.ext (fullContourMap_active_slice m B θ 0) rfl + refine ⟨δ, hδ, fun w n hw hn => ?_⟩ + have hy : dist (w, n) (e 0) < δ := by + rw [he0, Prod.dist_eq] + exact max_lt hw (by simpa only [dist_zero_right] using hn) + obtain ⟨hyt, hqn⟩ := hδball (w, n) hy + refine ⟨hyt, ?_⟩ + let q := e.symm (w, n) + have hq := hball q hqn + have hright : (fullContourMap m B θ q, q.2) = (w, n) := e.right_inv hyt + exact ⟨congrArg Prod.snd hright, congrArg Prod.fst hright, + hq.2.1, hq.2.2.1, hq.2.2.2.1, hq.2.2.2.2⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ControlledLorentzProbability.lean b/LeanPool/VacuumBellSeparation/Shell/ControlledLorentzProbability.lean new file mode 100644 index 0000000000..1605bb25f3 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ControlledLorentzProbability.lean @@ -0,0 +1,98 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.SmoothBallProbability +public import LeanPool.VacuumBellSeparation.Shell.LorentzParameterContinuity + +/-! +# Smooth parameter probabilities on controlled proper Lorentz families + +Both genuine Euclidean operator norms are bounded on a closed parameter +ball. The normalized bump gives a probability supported in this ball. +This constructs a smooth parameter density, without asserting a smooth +Haar density on the Lorentz group. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped Topology + +/-- Continuous linear equivalence for the prefixed Lorentz family, of type `Spacetime ≃L[ℝ] +Spacetime`. -/ +noncomputable def prefixedLorentzFamily (Λ : Spacetime ≃L[ℝ] Spacetime) + (s : Fin 6 → ℝ) : Spacetime ≃L[ℝ] Spacetime := + (lorentzParameterFamily s).trans Λ + +theorem prefixedLorentzFamily_zero (Λ : Spacetime ≃L[ℝ] Spacetime) : + prefixedLorentzFamily Λ 0 = Λ := by + unfold prefixedLorentzFamily + rw [lorentzParameterFamily_zero] + rfl + +theorem continuous_prefixedLorentzFamily_apply (Λ : Spacetime ≃L[ℝ] Spacetime) + (x : Spacetime) : Continuous (fun s => prefixedLorentzFamily Λ s x) := + Λ.continuous.comp (continuous_lorentzParameterFamily_apply x) + +theorem prefixedLorentzFamily_isProper {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsProperLorentzMap Λ) (s : Fin 6 → ℝ) : + IsProperLorentzMap (prefixedLorentzFamily Λ s) := + (lorentzParameterFamily_isProper s).trans hΛ + +theorem prefixedLorentzFamily_isOrthochronous {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (hfΛ : IsOrthochronousMap Λ) (s : Fin 6 → ℝ) : + IsOrthochronousMap (prefixedLorentzFamily Λ s) := + IsOrthochronousMap.trans (lorentzParameterFamily_isProper s).1 hΛ + (lorentzParameterFamily_isOrthochronous s) hfΛ + +theorem prefixedLorentzFamily_controlled_ball {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) {R : ℝ} + (hn : spacetimeEuclideanOperatorNorm Λ < R) + (hi : spacetimeEuclideanOperatorNorm Λ.symm < R) : + ∃ ρ > 0, ∀ s : Fin 6 → ℝ, ‖s‖ ≤ ρ → + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ s) < R ∧ + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ s).symm < R := by + have hc := continuous_spacetimeEuclideanOperatorNorm_family + (prefixedLorentzFamily Λ) (continuous_prefixedLorentzFamily_apply Λ) + have hci := continuous_lorentzInverse_operatorNorm_family + (prefixedLorentzFamily Λ) (fun s => (lorentzParameterFamily_isProper s).1.trans hΛ) + (continuous_prefixedLorentzFamily_apply Λ) + have hn0 : spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ 0) < R := by + rwa [prefixedLorentzFamily_zero] + have hi0 : spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ 0).symm < R := by + rwa [prefixedLorentzFamily_zero] + have hall : ∀ᶠ s in 𝓝 (0 : Fin 6 → ℝ), + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ s) < R ∧ + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ s).symm < R := + (hc.continuousAt.eventually_lt continuousAt_const hn0).and + (hci.continuousAt.eventually_lt continuousAt_const hi0) + obtain ⟨r, hr, hh⟩ := Metric.eventually_nhds_iff.mp hall + refine ⟨r / 2, half_pos hr, fun s hs => hh ?_⟩ + simpa only [dist_zero_right] using hs.trans_lt (half_lt_self hr) + +theorem smoothBallProbability_ae_norm_lt (ρ : ℝ) (hρ : 0 < ρ) : + ∀ᵐ s ∂smoothBallProbability (Fin 6 → ℝ) ρ hρ, ‖s‖ < ρ := by + rw [ae_iff] + simpa only [Metric.ball, dist_zero_right, Set.compl_ofPred] using + smoothBallProbability_compl_ball (Fin 6 → ℝ) ρ hρ + +theorem exists_controlledLorentz_probability {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) {R : ℝ} + (hn : spacetimeEuclideanOperatorNorm Λ < R) + (hi : spacetimeEuclideanOperatorNorm Λ.symm < R) : + ∃ ρ : ℝ, ∃ hρ : 0 < ρ, + ∀ᵐ s ∂smoothBallProbability (Fin 6 → ℝ) ρ hρ, + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ s) < R ∧ + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily Λ s).symm < R := by + obtain ⟨ρ, hρ, hball⟩ := prefixedLorentzFamily_controlled_ball hΛ hn hi + exact ⟨ρ, hρ, (smoothBallProbability_ae_norm_lt ρ hρ).mono + (fun s hs => hball s hs.le)⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/CoordinateLorentzProper.lean b/LeanPool/VacuumBellSeparation/Shell/CoordinateLorentzProper.lean new file mode 100644 index 0000000000..7d27e1a09c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/CoordinateLorentzProper.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.CoordinatePlaneRotations +public import LeanPool.VacuumBellSeparation.Shell.SpacetimeFrameCoordinates + +/-! +# Properness of the actual boost and first plane rotation + +The determinants are computed in the literal time-first basis of the +original spacetime carrier. No path-connectedness or orientation +assumption is used to identify these parameter maps as proper. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem boost_to_spacetimeFrameMatrix (η : ℝ) : + LinearMap.toMatrix spacetimeFrameBasis spacetimeFrameBasis (boost η).toLinearEquiv.toLinearMap = + ![![Real.cosh η, Real.sinh η, 0, 0], + ![Real.sinh η, Real.cosh η, 0, 0], ![0, 0, 1, 0], ![0, 0, 0, 1]] := by + have hb1 : spacetimeFrameBasis 1 = spacetimeAxis 0 := spacetimeFrameBasis_succ 0 + have hb2 : spacetimeFrameBasis 2 = spacetimeAxis 1 := spacetimeFrameBasis_succ 1 + have hb3 : spacetimeFrameBasis 3 = spacetimeAxis 2 := spacetimeFrameBasis_succ 2 + have hc1 (x : Spacetime) : spacetimeFrameCoordinates x 1 = x.2 0 := + spacetimeFrameCoordinates_succ x 0 + have hc2 (x : Spacetime) : spacetimeFrameCoordinates x 2 = x.2 1 := + spacetimeFrameCoordinates_succ x 1 + have hc3 (x : Spacetime) : spacetimeFrameCoordinates x 3 = x.2 2 := + spacetimeFrameCoordinates_succ x 2 + ext i j + fin_cases i <;> fin_cases j <;> + simp [LinearMap.toMatrix_apply, spacetimeFrameBasis_repr, + spacetimeFrameBasis_zero, hb1, hb2, hb3, spacetimeFrameCoordinates_zero, hc1, hc2, hc3, + spacetimeAxis, boost_apply, boostCLM_apply, e₁, EuclideanSpace.inner_single_left] + +theorem spatialPlaneRotation_to_spacetimeFrameMatrix (θ : ℝ) : + LinearMap.toMatrix spacetimeFrameBasis spacetimeFrameBasis + (spatialRotation (spatialPlaneRotation θ)).toLinearEquiv.toLinearMap = + ![![1, 0, 0, 0], ![0, Real.cos θ, -Real.sin θ, 0], + ![0, Real.sin θ, Real.cos θ, 0], ![0, 0, 0, 1]] := by + have hb1 : spacetimeFrameBasis 1 = spacetimeAxis 0 := spacetimeFrameBasis_succ 0 + have hb2 : spacetimeFrameBasis 2 = spacetimeAxis 1 := spacetimeFrameBasis_succ 1 + have hb3 : spacetimeFrameBasis 3 = spacetimeAxis 2 := spacetimeFrameBasis_succ 2 + have hc1 (x : Spacetime) : spacetimeFrameCoordinates x 1 = x.2 0 := + spacetimeFrameCoordinates_succ x 0 + have hc2 (x : Spacetime) : spacetimeFrameCoordinates x 2 = x.2 1 := + spacetimeFrameCoordinates_succ x 1 + have hc3 (x : Spacetime) : spacetimeFrameCoordinates x 3 = x.2 2 := + spacetimeFrameCoordinates_succ x 2 + ext i j + fin_cases i <;> fin_cases j <;> + simp [LinearMap.toMatrix_apply, spacetimeFrameBasis_repr, + spacetimeFrameBasis_zero, hb1, hb2, hb3, spacetimeFrameCoordinates_zero, hc1, hc2, hc3, + spacetimeAxis, spatialRotation_apply, spatialPlaneRotation_apply] + +theorem isProperLorentzMap_boost (η : ℝ) : IsProperLorentzMap (boost η) := + ⟨isLorentzMap_boost η, det_boost η⟩ + +theorem isProperLorentzMap_spatialPlaneRotation (θ : ℝ) : + IsProperLorentzMap (spatialRotation (spatialPlaneRotation θ)) := by + refine ⟨isLorentzMap_spatialRotation _, ?_⟩ + rw [← LinearMap.det_toMatrix spacetimeFrameBasis, spatialPlaneRotation_to_spacetimeFrameMatrix] + change Matrix.det !![1, 0, 0, 0; 0, Real.cos θ, -Real.sin θ, 0; + 0, Real.sin θ, Real.cos θ, 0; 0, 0, 0, 1] = 1 + simp only [Matrix.det_succ_row_zero, Fin.sum_univ_succ, + Matrix.det_unique, Matrix.submatrix_apply] + norm_num + nlinarith [Real.sin_sq_add_cos_sq θ] + +theorem isOrthochronousMap_boost (η : ℝ) : IsOrthochronousMap (boost η) := by + simpa only [IsOrthochronousMap, boost_apply, boostCLM_apply, + mul_one, inner_zero_right, mul_zero, add_zero] using Real.cosh_pos η + +theorem isOrthochronousMap_spatialRotation + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) : + IsOrthochronousMap (spatialRotation R) := by + change (0 : ℝ) < 1 + norm_num + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/CoordinatePlaneRotations.lean b/LeanPool/VacuumBellSeparation/Shell/CoordinatePlaneRotations.lean new file mode 100644 index 0000000000..46d96f9f7e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/CoordinatePlaneRotations.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LorentzMap + +/-! +# Actual spatial coordinate-plane rotations + +The first two spatial coordinates are rotated by the ordinary real +cosine/sine matrix, leaving the third fixed. Exact inverse and norm +identities construct an isometry. Coordinate permutations transport it +to the other spatial planes used by the contour parameter chart. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Linear map for the spatial plane rotation linear, of type `EuclideanSpace ℝ (Fin 3) →ₗ[ℝ] +EuclideanSpace ℝ (Fin 3) where toFun x`. -/ +noncomputable def spatialPlaneRotationLinear (θ : ℝ) : + EuclideanSpace ℝ (Fin 3) →ₗ[ℝ] EuclideanSpace ℝ (Fin 3) where + toFun x := WithLp.toLp 2 ![Real.cos θ * x 0 - Real.sin θ * x 1, + Real.sin θ * x 0 + Real.cos θ * x 1, x 2] + map_add' x y := by + ext i + fin_cases i <;> simp <;> ring + map_smul' a x := by + ext i + fin_cases i <;> simp <;> ring + +theorem spatialPlaneRotationLinear_norm_sq (θ : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + ‖spatialPlaneRotationLinear θ x‖ ^ 2 = ‖x‖ ^ 2 := by + rw [EuclideanSpace.real_norm_sq_eq, EuclideanSpace.real_norm_sq_eq] + simp only [Fin.sum_univ_three, spatialPlaneRotationLinear, LinearMap.coe_mk, + AddHom.coe_mk, PiLp.toLp_apply, Matrix.cons_val_zero, + Matrix.cons_val_one, Matrix.cons_val_two] + change (Real.cos θ * x 0 - Real.sin θ * x 1) ^ 2 + + (Real.sin θ * x 0 + Real.cos θ * x 1) ^ 2 + x 2 ^ 2 = + x 0 ^ 2 + x 1 ^ 2 + x 2 ^ 2 + calc + _ = (Real.sin θ ^ 2 + Real.cos θ ^ 2) * (x 0 ^ 2 + x 1 ^ 2) + x 2 ^ 2 := by ring + _ = _ := by rw [Real.sin_sq_add_cos_sq, one_mul] + +theorem spatialPlaneRotationLinear_inverse (θ : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + spatialPlaneRotationLinear (-θ) (spatialPlaneRotationLinear θ x) = x := by + have h0 : Real.cos θ * (Real.cos θ * x 0 - Real.sin θ * x 1) + + Real.sin θ * (Real.sin θ * x 0 + Real.cos θ * x 1) = x 0 := by + calc + _ = (Real.sin θ ^ 2 + Real.cos θ ^ 2) * x 0 := by ring + _ = _ := by rw [Real.sin_sq_add_cos_sq, one_mul] + have h1 : -Real.sin θ * (Real.cos θ * x 0 - Real.sin θ * x 1) + + Real.cos θ * (Real.sin θ * x 0 + Real.cos θ * x 1) = x 1 := by + calc + _ = (Real.sin θ ^ 2 + Real.cos θ ^ 2) * x 1 := by ring + _ = _ := by rw [Real.sin_sq_add_cos_sq, one_mul] + ext i + fin_cases i + · simpa [spatialPlaneRotationLinear, Real.cos_neg, Real.sin_neg] using h0 + · simpa [spatialPlaneRotationLinear, Real.cos_neg, Real.sin_neg] using h1 + · rfl + +/-- Linear isometric rotation of the designated plane in three-dimensional space. -/ +noncomputable def spatialPlaneRotation (θ : ℝ) : + EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3) where + toLinearEquiv := + { spatialPlaneRotationLinear θ with + invFun := spatialPlaneRotationLinear (-θ) + left_inv := spatialPlaneRotationLinear_inverse θ + right_inv := fun x => by + change spatialPlaneRotationLinear θ (spatialPlaneRotationLinear (-θ) x) = x + simpa only [neg_neg] using spatialPlaneRotationLinear_inverse (-θ) x } + norm_map' x := (sq_eq_sq₀ (norm_nonneg _) (norm_nonneg _)).mp + (spatialPlaneRotationLinear_norm_sq θ x) + +theorem spatialPlaneRotation_apply (θ : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + spatialPlaneRotation θ x = WithLp.toLp 2 + ![Real.cos θ * x 0 - Real.sin θ * x 1, + Real.sin θ * x 0 + Real.cos θ * x 1, x 2] := rfl + +theorem spatialPlaneRotation_zero : spatialPlaneRotation 0 = LinearIsometryEquiv.refl ℝ _ := by + ext x i + fin_cases i <;> simp [spatialPlaneRotation_apply] + +/-- Spatial coordinate permutation obtained from `LinearIsometryEquiv.piLpCongrLeft`. -/ +noncomputable def spatialCoordinatePermutation (σ : Equiv.Perm (Fin 3)) : + EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3) := + LinearIsometryEquiv.piLpCongrLeft 2 ℝ ℝ σ + +/-- Linear isometry equivalence for the spatial plane rotation13, of type `EuclideanSpace ℝ (Fin 3) +≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)`. -/ +noncomputable def spatialPlaneRotation13 (θ : ℝ) : + EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3) := + (spatialCoordinatePermutation (Equiv.swap 1 2)).trans + ((spatialPlaneRotation θ).trans (spatialCoordinatePermutation (Equiv.swap 1 2))) + +/-- Linear isometry equivalence for the spatial plane rotation23, of type `EuclideanSpace ℝ (Fin 3) +≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)`. -/ +noncomputable def spatialPlaneRotation23 (θ : ℝ) : + EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3) := + (spatialCoordinatePermutation (Equiv.swap 0 1)).trans + ((spatialPlaneRotation13 θ).trans (spatialCoordinatePermutation (Equiv.swap 0 1))) + +theorem spatialPlaneRotation13_apply (θ : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + spatialPlaneRotation13 θ x = WithLp.toLp 2 + ![Real.cos θ * x 0 - Real.sin θ * x 2, x 1, + Real.sin θ * x 0 + Real.cos θ * x 2] := by + ext i + fin_cases i <;> simp [spatialPlaneRotation13, spatialCoordinatePermutation, + LinearIsometryEquiv.piLpCongrLeft_apply, spatialPlaneRotation_apply, + Equiv.piCongrLeft', Equiv.swap_apply_def] + +theorem spatialPlaneRotation23_apply (θ : ℝ) (x : EuclideanSpace ℝ (Fin 3)) : + spatialPlaneRotation23 θ x = WithLp.toLp 2 + ![x 0, Real.cos θ * x 1 - Real.sin θ * x 2, + Real.sin θ * x 1 + Real.cos θ * x 2] := by + ext i + fin_cases i <;> simp [spatialPlaneRotation23, spatialCoordinatePermutation, + LinearIsometryEquiv.piLpCongrLeft_apply, spatialPlaneRotation13_apply, + Equiv.piCongrLeft', Equiv.swap_apply_def] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/EuclideanShellSubmean.lean b/LeanPool/VacuumBellSeparation/Shell/EuclideanShellSubmean.lean new file mode 100644 index 0000000000..34b9945ac7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/EuclideanShellSubmean.lean @@ -0,0 +1,107 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ComplexEuclideanVolume +public import LeanPool.VacuumBellSeparation.Shell.HolomorphicVolumeSubmean +public import Mathlib.MeasureTheory.Group.Measure + +/-! +# Submean in the actual six-real-dimensional shell coordinate space + +The centered complex polydisc is transported by a genuine volume +preserving affine coordinate map. A three-coordinate polydisc of radius +R lies in the Euclidean ball of radius 2R; the resulting local estimate +therefore applies directly to the actual shell chart domain. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Complex MeasureTheory Metric Set +open scoped ENNReal BigOperators + +/-- Shell coordinate polydisc with membership specified by `{w | ∀ i, ‖w i - c i‖ < R}`. -/ +def shellCoordinatePolydisc (c : ShellEuclideanDomain) (R : ℝ) : Set ShellEuclideanDomain := + {w | ∀ i, ‖w i - c i‖ < R} + +/-- Shell coordinate closed polydisc with membership specified by `{w | ∀ i, ‖w i - c i‖ ≤ R}`. -/ +def shellCoordinateClosedPolydisc (c : ShellEuclideanDomain) (R : ℝ) : + Set ShellEuclideanDomain := {w | ∀ i, ‖w i - c i‖ ≤ R} + +theorem isOpen_shellCoordinatePolydisc (c : ShellEuclideanDomain) (R : ℝ) : + IsOpen (shellCoordinatePolydisc c R) := by + rw [show shellCoordinatePolydisc c R = + ⋂ i : Fin 3, {w : ShellEuclideanDomain | ‖w i - c i‖ < R} by + ext w + simp only [shellCoordinatePolydisc, Set.mem_ofPred_eq, Set.mem_iInter]] + apply isOpen_iInter_of_finite + intro i + exact isOpen_lt ((PiLp.continuous_apply 2 (fun _ : Fin 3 => ℂ) i).sub + continuous_const).norm continuous_const + +theorem shellCoordinateClosedPolydisc_subset_ball {c : ShellEuclideanDomain} {R : ℝ} + (hR : 0 < R) : shellCoordinateClosedPolydisc c R ⊆ ball c (2 * R) := by + intro w hw + have hs : ‖w - c‖ ^ 2 ≤ 3 * R ^ 2 := by + rw [EuclideanSpace.norm_sq_eq] + calc + _ ≤ ∑ _ : Fin 3, R ^ 2 := Finset.sum_le_sum fun i _ => + pow_le_pow_left₀ (norm_nonneg _) (hw i) 2 + _ = _ := by simp + rw [mem_ball, dist_eq_norm] + nlinarith [sq_nonneg (‖w - c‖), norm_nonneg (w - c)] + +theorem shellCoordinatePolydisc_subset_ball {c : ShellEuclideanDomain} {R : ℝ} + (hR : 0 < R) : shellCoordinatePolydisc c R ⊆ ball c (2 * R) := + fun _ hw => shellCoordinateClosedPolydisc_subset_ball hR (fun i => (hw i).le) + +theorem shellCoordinate_submean_sq {R : ℝ} (hR : 0 < R) + (F : ShellEuclideanDomain → ℂ) (hm : Measurable F) (c : ShellEuclideanDomain) + (hF : ∀ w ∈ shellCoordinateClosedPolydisc c R, DifferentiableAt ℂ F w) : + ENNReal.ofReal (‖F c‖ ^ 2) * volume (ball (0 : ℂ) R) ^ 3 ≤ + ∫⁻ w in shellCoordinatePolydisc c R, ENNReal.ofReal (‖F w‖ ^ 2) := by + let e : (Fin 3 → ℂ) → ShellEuclideanDomain := fun z => c + shellEuclideanCoordinates.symm z + have he : MeasurePreserving e := + (measurePreserving_add_left (volume : Measure ShellEuclideanDomain) c).comp + shellEuclideanCoordinates_symm_measurePreserving + have hpre : e ⁻¹' shellCoordinatePolydisc c R = coordinateOpenPolydisc 3 R := by + ext z + simp only [Set.mem_preimage, shellCoordinatePolydisc, Set.mem_ofPred_eq, + e, shellEuclideanCoordinates, PiLp.add_apply, PiLp.continuousLinearEquiv_symm_apply, + add_sub_cancel_left, coordinateOpenPolydisc, Set.mem_pi, Set.mem_univ, + forall_true_left, mem_ball_zero_iff] + have hd : ∀ z ∈ Gaussian.coordinateClosedPolydisc 3 R, + DifferentiableAt ℂ (fun z => F (e z)) z := by + intro z hz + have hez : e z ∈ shellCoordinateClosedPolydisc c R := by + intro i + simpa only [e, shellEuclideanCoordinates, PiLp.add_apply, + PiLp.continuousLinearEquiv_symm_apply, PiLp.toLp_apply, add_sub_cancel_left] using hz i + exact (hF (e z) hez).comp z + ((differentiableAt_const c).add shellEuclideanCoordinates.symm.differentiableAt) + have hs := holomorphic_volume_submean_sq 3 hR (fun z => F (e z)) + (hm.comp he.measurable) hd + have hzero : e 0 = c := by simp only [e, map_zero, add_zero] + rw [hzero] at hs + have hchange := he.setLIntegral_comp_preimage + (isOpen_shellCoordinatePolydisc c R).measurableSet + (ENNReal.measurable_ofReal.comp (hm.norm.pow_const 2)) + rw [hpre] at hchange + exact hs.trans_eq hchange + +theorem shellEuclidean_ball_submean_sq {R : ℝ} (hR : 0 < R) + (F : ShellEuclideanDomain → ℂ) (hm : Measurable F) (c : ShellEuclideanDomain) + (hF : ∀ w ∈ ball c (2 * R), DifferentiableAt ℂ F w) : + ENNReal.ofReal (‖F c‖ ^ 2) * volume (ball (0 : ℂ) R) ^ 3 ≤ + ∫⁻ w in ball c (2 * R), ENNReal.ofReal (‖F w‖ ^ 2) := by + apply (shellCoordinate_submean_sq hR F hm c + (fun w hw => hF w (shellCoordinateClosedPolydisc_subset_ball hR hw))).trans + exact lintegral_mono_set (shellCoordinatePolydisc_subset_ball hR) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/FiniteContourMixture.lean b/LeanPool/VacuumBellSeparation/Shell/FiniteContourMixture.lean new file mode 100644 index 0000000000..a16501938e --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/FiniteContourMixture.lean @@ -0,0 +1,161 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.NormalizedTargetLocalDomination +public import LeanPool.VacuumBellSeparation.Shell.FiniteTaggedProbability + +/-! +# One actual probability and one constant for the finite shell cover + +The tagged carrier has finitely many copies of the six real Lorentz +parameters. The probability is independent of mass, and its physical +momentum product has the exact uniform-mixture integral formula. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped ENNReal + +variable {θ : ℝ} {N : ℕ} + +/-- Contour mixture probability defined as `finiteTaggedProbability (fun i => smoothBallProbability +(Fin 6 → ℝ) (D i).radius (D i).radius_pos)`. -/ +noncomputable def contourMixtureProbability (D : Fin N → ControlledContourPatch θ) : + Measure (Fin N × (Fin 6 → ℝ)) := + finiteTaggedProbability (fun i => + smoothBallProbability (Fin 6 → ℝ) (D i).radius (D i).radius_pos) + +instance contourMixtureProbability_isProbability [NeZero N] + (D : Fin N → ControlledContourPatch θ) : IsProbabilityMeasure (contourMixtureProbability D) := + finiteTaggedProbability_isProbability _ + +/-- Contour mixture family obtained from `prefixedLorentzFamily`. -/ +noncomputable def contourMixtureFamily (D : Fin N → ControlledContourPatch θ) + (a : Fin N × (Fin 6 → ℝ)) : Spacetime ≃L[ℝ] Spacetime := + prefixedLorentzFamily (D a.1).frame a.2 + +theorem contourMixtureFamily_isProper (D : Fin N → ControlledContourPatch θ) + (a : Fin N × (Fin 6 → ℝ)) : IsProperLorentzMap (contourMixtureFamily D a) := + prefixedLorentzFamily_isProper (D a.1).proper a.2 + +theorem contourMixtureFamily_isOrthochronous (D : Fin N → ControlledContourPatch θ) + (a : Fin N × (Fin 6 → ℝ)) : IsOrthochronousMap (contourMixtureFamily D a) := + prefixedLorentzFamily_isOrthochronous (D a.1).proper.1 (D a.1).future a.2 + +theorem continuous_contourMixtureFamily_apply (D : Fin N → ControlledContourPatch θ) + (x : Spacetime) : Continuous (fun a => contourMixtureFamily D a x) := + continuous_prod_of_discrete_left.mpr + (fun i => continuous_prefixedLorentzFamily_apply (D i).frame x) + +theorem contourMixtureProbability_ae_norm_bounds (D : Fin N → ControlledContourPatch θ) : + ∀ᵐ a ∂contourMixtureProbability D, + spacetimeEuclideanOperatorNorm (contourMixtureFamily D a) < 32 / Real.sin θ ∧ + spacetimeEuclideanOperatorNorm (contourMixtureFamily D a).symm < 32 / Real.sin θ := by + have hc := continuous_spacetimeEuclideanOperatorNorm_family + (contourMixtureFamily D) (continuous_contourMixtureFamily_apply D) + have hi := continuous_lorentzInverse_operatorNorm_family + (contourMixtureFamily D) (fun a => (contourMixtureFamily_isProper D a).1) + (continuous_contourMixtureFamily_apply D) + apply finiteTaggedProbability_ae + (fun i => smoothBallProbability (Fin 6 → ℝ) (D i).radius (D i).radius_pos) + (((isOpen_lt hc continuous_const).inter (isOpen_lt hi continuous_const)).measurableSet) + intro i + exact (smoothBallProbability_ae_norm_lt (D i).radius (D i).radius_pos).mono + (fun s hs => (D i).norm_bound s hs.le) + +/-- The joint parameter and shell neighborhood used to glue the local contour estimates. -/ +def contourMixtureNeighborhood (D : Fin N → ControlledContourPatch θ) : + Set (ℝ × ComplexSpacetime) := ⋃ i, (D i).neighborhood + +theorem isOpen_contourMixtureNeighborhood (D : Fin N → ControlledContourPatch θ) : + IsOpen (contourMixtureNeighborhood D) := isOpen_iUnion (fun i => (D i).isOpen_neighborhood) + +/-- Contour mixture point defined as `complexifiedSpacetimeMap (contourMixtureFamily D y.1) +(complexShellBoost t ((θ : ℂ) * Complex.I) y.2)`. -/ +noncomputable def contourMixturePoint (t : ℝ) (D : Fin N → ControlledContourPatch θ) + (y : (Fin N × (Fin 6 → ℝ)) × EuclideanSpace ℝ (Fin 3)) : ComplexSpacetime := + complexifiedSpacetimeMap (contourMixtureFamily D y.1) + (complexShellBoost t ((θ : ℂ) * Complex.I) y.2) + +theorem continuous_contourMixturePoint (t : ℝ) (D : Fin N → ControlledContourPatch θ) : + Continuous (contourMixturePoint t D) := by + have hpair : Continuous (fun q : (Fin N × (Fin 6 → ℝ)) × EuclideanSpace ℝ (Fin 3) => + (q.1, complexShellBoost t ((θ : ℂ) * Complex.I) q.2)) := + (continuous_fst : Continuous (Prod.fst : + (Fin N × (Fin 6 → ℝ)) × EuclideanSpace ℝ (Fin 3) → Fin N × (Fin 6 → ℝ))).prodMk + ((continuous_complexShellBoost t ((θ : ℂ) * Complex.I)).comp continuous_snd) + exact Continuous.comp' + (f := fun q : (Fin N × (Fin 6 → ℝ)) × EuclideanSpace ℝ (Fin 3) => + (q.1, complexShellBoost t ((θ : ℂ) * Complex.I) q.2)) + (g := fun q : (Fin N × (Fin 6 → ℝ)) × ComplexSpacetime => + complexifiedSpacetimeMap (contourMixtureFamily D q.1) q.2) + (continuous_complexifiedSpacetimeMap_family (contourMixtureFamily D) + (continuous_contourMixtureFamily_apply D)) hpair + +/-- Contour mixture cutoff weight. -/ +noncomputable def contourMixtureCutoffWeight (t : ℝ) (D : Fin N → ControlledContourPatch θ) + (F : ComplexSpacetime → ℝ≥0∞) : + (Fin N × (Fin 6 → ℝ)) × EuclideanSpace ℝ (Fin 3) → ℝ≥0∞ := + {y | dispersion t y.2 ≤ 32 / Real.sin θ}.indicator (fun y => F (contourMixturePoint t D y)) + +theorem measurable_contourMixtureCutoffWeight (t : ℝ) (D : Fin N → ControlledContourPatch θ) + {F : ComplexSpacetime → ℝ≥0∞} (hF : Measurable F) : + Measurable (contourMixtureCutoffWeight t D F) := + (hF.comp (continuous_contourMixturePoint t D).measurable).indicator + (isClosed_le ((continuous_dispersion t).comp continuous_snd) continuous_const).measurableSet + +theorem contourMixture_integral_formula (t : ℝ) (D : Fin N → ControlledContourPatch θ) + {F : ComplexSpacetime → ℝ≥0∞} (hF : Measurable F) : + (∫⁻ y, contourMixtureCutoffWeight t D F y + ∂(contourMixtureProbability D).prod (oneParticleMeasure t)) = + (N : ℝ≥0∞)⁻¹ * ∑ i, ∫⁻ y, physicalContourCutoffWeight t θ (32 / Real.sin θ) (D i).frame F y + ∂(smoothBallProbability (Fin 6 → ℝ) (D i).radius (D i).radius_pos).prod + (oneParticleMeasure t) := by + let _ : SigmaFinite (oneParticleMeasure t) := by unfold oneParticleMeasure; infer_instance + simpa only [contourMixtureProbability, Fintype.card_fin, contourMixtureCutoffWeight, + contourMixturePoint, contourMixtureFamily, physicalContourCutoffWeight, physicalContourPoint, + Set.indicator_apply, Set.mem_ofPred_eq] + using finiteTaggedProbability_prod_lintegral + (fun i => smoothBallProbability (Fin 6 → ℝ) (D i).radius (D i).radius_pos) + (oneParticleMeasure t) (measurable_contourMixtureCutoffWeight t D hF) + +theorem contourMixture_uniform_integral_bound [NeZero N] + (D : Fin N → ControlledContourPatch θ) : + ∃ k : ℝ≥0∞, 0 < k ∧ k < ∞ ∧ + ∀ t : ℝ, ∀ F : ComplexSpacetime → ℝ≥0∞, Measurable F → + k * (∫⁻ z in {z : complexShell t | (t, z.1) ∈ contourMixtureNeighborhood D}, + F z.1 ∂inducedRegularShellVolume t) ≤ + ∫⁻ y, contourMixtureCutoffWeight t D F y + ∂(contourMixtureProbability D).prod (oneParticleMeasure t) := by + classical + let c : ℝ≥0∞ := Finset.univ.inf' Finset.univ_nonempty (fun i => (D i).coefficient) + have hc : 0 < c := (Finset.lt_inf'_iff _).mpr (fun i _ => (D i).coefficient_pos) + have hcle (i : Fin N) : c ≤ (D i).coefficient := Finset.inf'_le _ (Finset.mem_univ i) + have hct : c < ∞ := (hcle (Classical.arbitrary (Fin N))).trans_lt + (D (Classical.arbitrary (Fin N))).coefficient_lt_top + have hN : (N : ℝ≥0∞) ≠ 0 := by exact_mod_cast (NeZero.ne N) + have ha : 0 < (N : ℝ≥0∞)⁻¹ := ENNReal.inv_pos.mpr (by simp) + have hat : (N : ℝ≥0∞)⁻¹ ≠ ∞ := by simp [hN] + refine ⟨(N : ℝ≥0∞)⁻¹ * c, pos_iff_ne_zero.mpr (mul_ne_zero ha.ne' hc.ne'), + lt_top_iff_ne_top.mpr (ENNReal.mul_ne_top hat hct.ne), ?_⟩ + intro t F hF + rw [contourMixture_integral_formula t D hF] + have hfiber : {z : complexShell t | (t, z.1) ∈ contourMixtureNeighborhood D} = + ⋃ i, {z : complexShell t | (t, z.1) ∈ (D i).neighborhood} := by + ext z + simp only [contourMixtureNeighborhood, mem_ofPred_eq, mem_iUnion] + rw [hfiber] + exact finite_union_lintegral_domination (inducedRegularShellVolume t) + (fun i => {z : complexShell t | (t, z.1) ∈ (D i).neighborhood}) (fun z => F z.1) + (fun i => (D i).coefficient) _ (N : ℝ≥0∞)⁻¹ c hcle + (fun i => (D i).integral_bound t F hF) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/FiniteCoordinateDerivative.lean b/LeanPool/VacuumBellSeparation/Shell/FiniteCoordinateDerivative.lean new file mode 100644 index 0000000000..51741583c0 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/FiniteCoordinateDerivative.lean @@ -0,0 +1,51 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Calculus.Deriv.Comp +public import Mathlib.Analysis.Calculus.Deriv.Linear +public import Mathlib.Analysis.Calculus.Deriv.Prod +public import Mathlib.Analysis.Normed.Module.FiniteDimension + +/-! +# Recovering a genuine derivative from coordinate curves + +Differentiability is essential here. Once it is established, the actual +one-dimensional coordinate derivatives identify the full derivative; +no inference from merely existing partial derivatives is used. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +variable {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] + +theorem hasFDerivAt_zero_of_coordinate_curves {n : ℕ} + {f : (Fin n → ℝ) → F} (hf : DifferentiableAt ℝ f 0) + (L : (Fin n → ℝ) →L[ℝ] F) + (h : ∀ i : Fin n, HasDerivAt (fun t : ℝ => f (Pi.single i t)) + (L (Pi.single i 1)) 0) : HasFDerivAt f L 0 := by + have hcol (i : Fin n) : fderiv ℝ f 0 (Pi.single i 1) = L (Pi.single i 1) := by + have hi : HasDerivAt (fun t : ℝ => (Pi.single i t : Fin n → ℝ)) + (Pi.single i (1 : ℝ) : Fin n → ℝ) 0 := by + simpa using (ContinuousLinearMap.single ℝ (fun _ : Fin n => ℝ) i).hasDerivAt + have hd : HasFDerivAt f (fderiv ℝ f 0) (Pi.single i (0 : ℝ)) := by + simpa using hf.hasFDerivAt + exact (hd.comp_hasDerivAt 0 hi).unique (h i) + have hL : fderiv ℝ f 0 = L := by + ext x + have hx : x = ∑ i : Fin n, x i • Pi.single i (1 : ℝ) := by + ext j + simp [Pi.single_apply] + rw [hx, map_sum, map_sum] + apply Finset.sum_congr rfl + intro i hi + rw [map_smul, map_smul, hcol] + simpa only [hL] using hf.hasFDerivAt + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/FiniteTaggedProbability.lean b/LeanPool/VacuumBellSeparation/Shell/FiniteTaggedProbability.lean new file mode 100644 index 0000000000..7f8513f746 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/FiniteTaggedProbability.lean @@ -0,0 +1,90 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.MeasureTheory.Measure.Prod +public import Mathlib.MeasureTheory.Measure.Typeclasses.Probability +public import Mathlib.MeasureTheory.Integral.Lebesgue.Map +public import Mathlib.MeasureTheory.Integral.Lebesgue.Basic + +/-! # A genuine uniform mixture on finitely tagged parameter spaces -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +variable {I A B : Type*} [Fintype I] [MeasurableSpace I] + [MeasurableSpace A] [MeasurableSpace B] + +/-- Finite tagged probability given by `(Fintype.card I : ℝ≥0∞)⁻¹ • Measure.sum (fun i => (ν i).map +(Prod.mk i))`. -/ +noncomputable def finiteTaggedProbability (ν : I → Measure A) : Measure (I × A) := + (Fintype.card I : ℝ≥0∞)⁻¹ • Measure.sum (fun i => (ν i).map (Prod.mk i)) + +instance finiteTaggedProbability_isProbability [Nonempty I] + (ν : I → Measure A) [∀ i, IsProbabilityMeasure (ν i)] : + IsProbabilityMeasure (finiteTaggedProbability ν) := by + constructor + have hN : (Fintype.card I : ℝ≥0∞) ≠ 0 := by exact_mod_cast Fintype.card_ne_zero + simp only [finiteTaggedProbability, smul_apply, smul_eq_mul, + Measure.sum_apply _ MeasurableSet.univ, Measure.map_apply measurable_prodMk_left + MeasurableSet.univ, + Set.preimage_univ, measure_univ, tsum_fintype, Finset.sum_const, Finset.card_univ, + nsmul_eq_mul, mul_one] + exact ENNReal.inv_mul_cancel hN (by simp) + +theorem finiteTaggedProbability_ae (ν : I → Measure A) {P : I × A → Prop} + (hP : MeasurableSet {x | P x}) (h : ∀ i, ∀ᵐ a ∂ν i, P (i, a)) : + ∀ᵐ x ∂finiteTaggedProbability ν, P x := by + apply Measure.ae_smul_measure + apply Measure.ae_sum_iff.mpr + intro i + exact (ae_map_iff measurable_prodMk_left.aemeasurable hP).mpr (h i) + +theorem finiteTaggedProbability_prod_lintegral (ν : I → Measure A) + (μ : Measure B) [SFinite μ] {G : (I × A) × B → ℝ≥0∞} (hG : Measurable G) : + (∫⁻ y, G y ∂(finiteTaggedProbability ν).prod μ) = + (Fintype.card I : ℝ≥0∞)⁻¹ * + ∑ i, ∫⁻ y : A × B, G ((i, y.1), y.2) ∂(ν i).prod μ := by + rw [finiteTaggedProbability, Measure.prod_smul_left, lintegral_smul_measure, + Measure.prod_sum_left, lintegral_sum_measure, tsum_fintype] + congr 1 + apply Finset.sum_congr rfl + intro i _ + have he : ((ν i).map (Prod.mk i)).prod μ = + ((ν i).prod μ).map (fun y : A × B => ((i, y.1), y.2)) := by + simpa only [Prod.map_def, Function.id_def, Measure.map_id'] using + Measure.map_prod_map (ν i) μ + (measurable_prodMk_left : Measurable (Prod.mk i : A → I × A)) + (measurable_id : Measurable (id : B → B)) + rw [he, lintegral_map hG (by fun_prop)] + +omit [MeasurableSpace I] in +/-- A finite cover costs only the uniform mixture weight and the minimum +of the local constants. Overlap causes no further loss. -/ +theorem finite_union_lintegral_domination {X : Type*} [MeasurableSpace X] + (μ : Measure X) (S : I → Set X) (F : X → ℝ≥0∞) + (c : I → ℝ≥0∞) (P : I → ℝ≥0∞) (a k : ℝ≥0∞) + (hk : ∀ i, k ≤ c i) + (h : ∀ i, c i * (∫⁻ x in S i, F x ∂μ) ≤ P i) : + (a * k) * (∫⁻ x in ⋃ i, S i, F x ∂μ) ≤ a * ∑ i, P i := by + have hu := lintegral_iUnion_le (μ := μ) S F + rw [tsum_fintype] at hu + calc + _ = a * (k * (∫⁻ x in ⋃ i, S i, F x ∂μ)) := mul_assoc _ _ _ + _ ≤ a * (k * ∑ i, ∫⁻ x in S i, F x ∂μ) := mul_le_mul' le_rfl (mul_le_mul' le_rfl hu) + _ = a * ∑ i, k * (∫⁻ x in S i, F x ∂μ) := by rw [Finset.mul_sum] + _ ≤ a * ∑ i, P i := by + apply mul_le_mul' le_rfl + apply Finset.sum_le_sum + intro i _ + exact (mul_le_mul' (hk i) le_rfl).trans (h i) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/FixedMassContourImage.lean b/LeanPool/VacuumBellSeparation/Shell/FixedMassContourImage.lean new file mode 100644 index 0000000000..f19baf81ea --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/FixedMassContourImage.lean @@ -0,0 +1,87 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.FixedMassContourJacobian + +/-! +# Uniform fixed-mass rectangles in actual contour images + +A single open rectangle works for all sufficiently nearby masses. Its +preimages lie in any prescribed small physical parameter ball and in +the genuine inverse-function source. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped Topology + +/-- Set of points satisfying the fixed mass contour small domain condition. -/ +noncomputable def fixedMassContourSmallDomain (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) (r τ : ℝ) : Set ShellPhysicalParameters := + {q | fixedMassContourEmbedding τ q ∈ (fullContourLocalCoordinates m hB hθ).source ∧ + ‖fixedMassContourEmbedding τ q‖ < r} + +theorem continuous_fixedMassContourEmbedding (τ : ℝ) : + Continuous (fixedMassContourEmbedding τ) := by + exact continuous_fst.prodMk (continuous_const.prodMk continuous_snd) + +theorem isOpen_fixedMassContourSmallDomain (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) (r τ : ℝ) : + IsOpen (fixedMassContourSmallDomain m hB hθ r τ) := + ((fullContourLocalCoordinates m hB hθ).open_source.preimage + (continuous_fixedMassContourEmbedding τ)).inter + (isOpen_lt (continuous_fixedMassContourEmbedding τ).norm continuous_const) + +theorem fixedMassContour_smallDomain_rectangle (m : ℝ) {B θ r : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) (hr : 0 < r) : + ∃ δ > 0, ∀ τ : ℝ, |τ| < δ → + (Metric.ball (referenceContourMap m B θ 0) δ ×ˢ + Metric.ball (0 : Fin 3 → ℝ) δ) ⊆ + fixedMassContourMap m B θ τ '' fixedMassContourSmallDomain m hB hθ r τ := by + let e := fullContourLocalCoordinates m hB hθ + have h0 : (0 : ShellContourParameters) ∈ e.source := zero_mem_fullContourLocalCoordinates m hB hθ + have he0 : e 0 = (referenceContourMap m B θ 0, 0) := by + rw [fullContourLocalCoordinates_apply] + exact Prod.ext (fullContourMap_active_slice m B θ 0) rfl + have hc := (e.continuousAt_symm (e.map_source h0)).norm + have hn : ‖e.symm (e 0)‖ < r := by simpa only [e.left_inv h0, norm_zero] using hr + have hall : ∀ᶠ y in 𝓝 (e 0), y ∈ e.target ∧ ‖e.symm y‖ < r := by + filter_upwards [e.open_target.mem_nhds (e.map_source h0), + hc.eventually_lt continuousAt_const hn] with y hy hyr + exact ⟨hy, hyr⟩ + obtain ⟨δ, hδ, hδball⟩ := Metric.eventually_nhds_iff.mp hall + refine ⟨δ, hδ, fun τ hτ => ?_⟩ + rintro ⟨w, n⟩ ⟨hw, hn⟩ + have hy : dist (w, (τ, n)) (e 0) < δ := by + rw [he0] + change max (dist w (referenceContourMap m B θ 0)) + (max (dist τ (0 : ℝ)) (dist n (0 : Fin 3 → ℝ))) < δ + exact max_lt hw (max_lt (by simpa only [dist_zero_right, Real.norm_eq_abs] using hτ) hn) + obtain ⟨hyt, hqr⟩ := hδball hy + let q := e.symm (w, (τ, n)) + have hright : (fullContourMap m B θ q, q.2) = (w, (τ, n)) := e.right_inv hyt + have haux : q.2 = (τ, n) := congrArg Prod.snd hright + let x : ShellPhysicalParameters := (q.1, q.2.2) + have hx : fixedMassContourEmbedding τ x = q := by + apply Prod.ext + · rfl + · exact Prod.ext (congrArg Prod.fst haux).symm rfl + refine ⟨x, ?_, ?_⟩ + · change fixedMassContourEmbedding τ x ∈ e.source ∧ ‖fixedMassContourEmbedding τ x‖ < r + rw [hx] + exact ⟨e.map_target hyt, hqr⟩ + · apply Prod.ext + · change fullContourMap m B θ (fixedMassContourEmbedding τ x) = w + rw [hx] + exact congrArg Prod.fst hright + · change q.2.2 = n + exact congrArg (fun y : ShellContourAux => y.2) haux + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/FixedMassContourIntegral.lean b/LeanPool/VacuumBellSeparation/Shell/FixedMassContourIntegral.lean new file mode 100644 index 0000000000..351e1ce2a5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/FixedMassContourIntegral.lean @@ -0,0 +1,79 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.FixedMassContourImage +public import Mathlib.MeasureTheory.Measure.Lebesgue.Complex + +/-! +# The actual fixed-mass contour integral bound + +The inverse function theorem supplies the rectangular image, the real +Jacobian theorem supplies the change of variables, and Tonelli supplies +the positive three-dimensional fibre volume. The determinant bound and +the rectangle are uniform in the nearby mass parameter. A prescribed +small source radius permits simultaneous geometric controls elsewhere. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal NNReal + +instance fixedMassIntegral_sourceHaar : + (volume : Measure ShellPhysicalParameters).IsAddHaarMeasure := + Measure.prod.instIsAddHaarMeasure _ _ + +instance fixedMassIntegral_targetHaar : + ((volume : Measure (Fin 3 → ℂ)).prod + (volume : Measure (Fin 3 → ℝ))).IsAddHaarMeasure := + Measure.prod.instIsAddHaarMeasure _ _ + +/-- Fixed mass contour Haar scale. -/ +noncomputable def fixedMassContourHaarScale (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : ℝ≥0 := + linearHaarScale (volume : Measure ShellPhysicalParameters) + ((volume : Measure (Fin 3 → ℂ)).prod (volume : Measure (Fin 3 → ℝ))) + (fixedMassContourLinearCoordinates m hB hθ) + +theorem fixedMassContourHaarScale_pos (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : + 0 < fixedMassContourHaarScale m hB hθ := linearHaarScale_pos _ _ _ + +theorem fixedMassContour_ball_integral_bound (m : ℝ) {B θ r₀ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) (hr₀ : 0 < r₀) : + ∃ r C δ : ℝ, 0 < r ∧ r ≤ r₀ ∧ 0 < C ∧ 0 < δ ∧ + ∀ τ : ℝ, |τ| < δ → ∀ g : (Fin 3 → ℂ) → ℝ≥0∞, Measurable g → + (volume (Metric.ball (0 : Fin 3 → ℝ) δ)) * + (∫⁻ w in Metric.ball (referenceContourMap m B θ 0) δ, g w) ≤ + (fixedMassContourHaarScale m hB hθ : ℝ≥0∞) * ENNReal.ofReal C * + ∫⁻ q in fixedMassContourSmallDomain m hB hθ r τ, + g (fullContourMap m B θ (fixedMassContourEmbedding τ q)) := by + obtain ⟨rJ, C, hrJ, hC, hJ⟩ := fixedMassContour_uniform_jacobian_bound m hB hθ + let r := min rJ r₀ + have hr : 0 < r := lt_min hrJ hr₀ + obtain ⟨δ, hδ, hcover⟩ := fixedMassContour_smallDomain_rectangle m hB hθ hr + refine ⟨r, C, δ, hr, min_le_right _ _, hC, hδ, ?_⟩ + intro τ hτ g hg + have hsmall (q : ShellPhysicalParameters) + (hq : q ∈ fixedMassContourSmallDomain m hB hθ r τ) : + ‖fixedMassContourEmbedding τ q‖ < rJ := + lt_of_lt_of_le hq.2 (min_le_left _ _) + have hd (q : ShellPhysicalParameters) + (hq : q ∈ fixedMassContourSmallDomain m hB hθ r τ) := + hJ (fixedMassContourEmbedding τ q) (hsmall q hq) + exact rectangle_integral_le_jacobian_bound + (volume : Measure ShellPhysicalParameters) (volume : Measure (Fin 3 → ℂ)) + (volume : Measure (Fin 3 → ℝ)) (fixedMassContourLinearCoordinates m hB hθ) + (isOpen_fixedMassContourSmallDomain m hB hθ r τ).measurableSet + (fun q hq => (hasFDerivAt_fixedMassContourMap m B θ τ q (hd q hq).1).hasFDerivWithinAt) + ((fixedMassContourMap_injOn m hB hθ τ).mono (fun _ hq => hq.1)) + (fun q hq => (hd q hq).2) (hcover τ hτ) g hg + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/FixedMassContourJacobian.lean b/LeanPool/VacuumBellSeparation/Shell/FixedMassContourJacobian.lean new file mode 100644 index 0000000000..0f67e14a64 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/FixedMassContourJacobian.lean @@ -0,0 +1,128 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ControlledContourRectangle +public import LeanPool.VacuumBellSeparation.Shell.RectangleJacobianBound + +/-! +# Fixed-mass nine-dimensional contour Jacobian + +Mass is a retained parameter rather than an integration variable. The +slice derivative is derived from the actual full contour derivative. +One fixed linear identification is used throughout a neighbourhood; +its determinant bound is uniform in the nearby mass coordinate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped Topology + +/-- Shell physical parameters with underlying type `(Fin 6 → ℝ) × (Fin 3 → ℝ) abbrev +ShellPhysicalCoordinates := (Fin 3 → ℂ) × (Fin 3 → ℝ)`. -/ +abbrev ShellPhysicalParameters := (Fin 6 → ℝ) × (Fin 3 → ℝ) +/-- Shell physical coordinates with underlying type `(Fin 3 → ℂ) × (Fin 3 → ℝ)`. -/ +abbrev ShellPhysicalCoordinates := (Fin 3 → ℂ) × (Fin 3 → ℝ) + +/-- The map from real contour parameters into the complex shell at fixed mass. -/ +noncomputable def fixedMassContourEmbedding (τ : ℝ) (q : ShellPhysicalParameters) : + ShellContourParameters := (q.1, (τ, q.2)) + +/-- Continuous linear map for the fixed mass contour inclusion, of type `ShellPhysicalParameters +→L[ℝ] ShellContourParameters`. -/ +noncomputable def fixedMassContourInclusion : ShellPhysicalParameters →L[ℝ] + ShellContourParameters := + (ContinuousLinearMap.fst ℝ (Fin 6 → ℝ) (Fin 3 → ℝ)).prod + ((0 : ShellPhysicalParameters →L[ℝ] ℝ).prod + (ContinuousLinearMap.snd ℝ (Fin 6 → ℝ) (Fin 3 → ℝ))) + +theorem hasFDerivAt_fixedMassContourEmbedding (τ : ℝ) (q : ShellPhysicalParameters) : + HasFDerivAt (fixedMassContourEmbedding τ) fixedMassContourInclusion q := by + exact (ContinuousLinearMap.fst ℝ (Fin 6 → ℝ) (Fin 3 → ℝ)).hasFDerivAt.prodMk + ((hasFDerivAt_const τ q).prodMk + (ContinuousLinearMap.snd ℝ (Fin 6 → ℝ) (Fin 3 → ℝ)).hasFDerivAt) + +/-- Fixed mass contour map. -/ +noncomputable def fixedMassContourMap (m B θ τ : ℝ) (q : ShellPhysicalParameters) : + ShellPhysicalCoordinates := + (fullContourMap m B θ (fixedMassContourEmbedding τ q), q.2) + +/-- Continuous linear map for the fixed mass contour derivative, of type `ShellPhysicalParameters +→L[ℝ] ShellPhysicalCoordinates`. -/ +noncomputable def fixedMassContourDerivative (m B θ : ℝ) (q : ShellContourParameters) : + ShellPhysicalParameters →L[ℝ] ShellPhysicalCoordinates := + ((fderiv ℝ (fullContourMap m B θ) q).comp fixedMassContourInclusion).prod + (ContinuousLinearMap.snd ℝ (Fin 6 → ℝ) (Fin 3 → ℝ)) + +theorem hasFDerivAt_fixedMassContourMap (m B θ τ : ℝ) (q : ShellPhysicalParameters) + (hq : DifferentiableAt ℝ (fullContourMap m B θ) (fixedMassContourEmbedding τ q)) : + HasFDerivAt (fixedMassContourMap m B θ τ) + (fixedMassContourDerivative m B θ (fixedMassContourEmbedding τ q)) q := + (hq.hasFDerivAt.comp q (hasFDerivAt_fixedMassContourEmbedding τ q)).prodMk + (ContinuousLinearMap.snd ℝ (Fin 6 → ℝ) (Fin 3 → ℝ)).hasFDerivAt + +/-- Continuous linear equivalence for the fixed mass contour linear coordinates, of type +`ShellPhysicalParameters ≃L[ℝ] ShellPhysicalCoordinates`. -/ +noncomputable def fixedMassContourLinearCoordinates (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : + ShellPhysicalParameters ≃L[ℝ] ShellPhysicalCoordinates := + (referenceContourDerivativeEquiv m hB hθ).prodCongr (ContinuousLinearEquiv.refl ℝ _) + +theorem continuousAt_fixedMassContourDerivative (m θ : ℝ) {B : ℝ} (hB : 0 < B) : + ContinuousAt (fixedMassContourDerivative m B θ) 0 := by + have hc := (contDiffAt_fullContourMap hB m θ).continuousAt_fderiv (by simp) + apply continuousAt_clm_apply.mpr + intro v + exact (hc.clm_apply continuousAt_const).prodMk continuousAt_const + +theorem fixedMassContour_uniform_jacobian_bound (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : + ∃ r C : ℝ, 0 < r ∧ 0 < C ∧ ∀ q : ShellContourParameters, ‖q‖ < r → + DifferentiableAt ℝ (fullContourMap m B θ) q ∧ + |((fixedMassContourLinearCoordinates m hB hθ).symm.toContinuousLinearMap.comp + (fixedMassContourDerivative m B θ q)).det| ≤ C := by + let J := fixedMassContourLinearCoordinates m hB hθ + let d : ShellContourParameters → ℝ := fun q => + |(J.symm.toContinuousLinearMap.comp (fixedMassContourDerivative m B θ q)).det| + have hd : ContinuousAt d 0 := + (ContinuousLinearMap.continuous_det.continuousAt.comp + (continuousAt_const.clm_comp (continuousAt_fixedMassContourDerivative m θ hB))).abs + have hc1 : ContDiffAt ℝ 1 (fullContourMap m B θ) 0 := + (contDiffAt_fullContourMap hB m θ).of_le (by simp) + have he : ∀ᶠ q in 𝓝 (0 : ShellContourParameters), + DifferentiableAt ℝ (fullContourMap m B θ) q ∧ d q < d 0 + 1 := by + filter_upwards [hc1.eventually (by norm_num), + hd.eventually_lt continuousAt_const (lt_add_one (d 0))] with q hq hdq + exact ⟨hq.differentiableAt (by norm_num), hdq⟩ + obtain ⟨r, hr, hball⟩ := Metric.eventually_nhds_iff.mp he + refine ⟨r, d 0 + 1, hr, by exact add_pos_of_nonneg_of_pos (abs_nonneg _) zero_lt_one, ?_⟩ + intro q hq + have hh := hball (by simpa only [dist_zero_right] using hq) + exact ⟨hh.1, hh.2.le⟩ + +theorem fixedMassContourMap_injOn (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) (τ : ℝ) : + Set.InjOn (fixedMassContourMap m B θ τ) + (fixedMassContourEmbedding τ ⁻¹' (fullContourLocalCoordinates m hB hθ).source) := by + intro x hx y hy hxy + change (fullContourMap m B θ (fixedMassContourEmbedding τ x), x.2) = + (fullContourMap m B θ (fixedMassContourEmbedding τ y), y.2) at hxy + have hf : fullContourLocalCoordinates m hB hθ (fixedMassContourEmbedding τ x) = + fullContourLocalCoordinates m hB hθ (fixedMassContourEmbedding τ y) := by + rw [fullContourLocalCoordinates_apply, fullContourLocalCoordinates_apply] + change (fullContourMap m B θ (fixedMassContourEmbedding τ x), (τ, x.2)) = + (fullContourMap m B θ (fixedMassContourEmbedding τ y), (τ, y.2)) + apply Prod.ext + · exact congrArg (fun z : ShellPhysicalCoordinates => z.1) hxy + · exact Prod.ext rfl (congrArg (fun z : ShellPhysicalCoordinates => z.2) hxy) + have h := (fullContourLocalCoordinates m hB hθ).injOn hx hy hf + exact Prod.ext (congrArg (fun q : ShellContourParameters => q.1) h) + (congrArg (fun q : ShellContourParameters => q.2.2) h) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/FullContourParameters.lean b/LeanPool/VacuumBellSeparation/Shell/FullContourParameters.lean new file mode 100644 index 0000000000..7c19ca1752 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/FullContourParameters.lean @@ -0,0 +1,194 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ReferenceContourLocalInverse +public import LeanPool.VacuumBellSeparation.Shell.AugmentedInverseCoordinates + +/-! +# All contour parameters, with mass retained + +There are six active coordinates (five Lorentz parameters and radial +momentum), three other physical coordinates (boost3 and the two other +momenta), and one unchanged mass coordinate. The augmented map has the +same ten real dimensions in source and target. Keeping mass unchanged +lets one work uniformly through normalized mass zero. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Shell contour auxiliary with underlying type `ℝ × (Fin 3 → ℝ) abbrev ShellContourParameters := +(Fin 6 → ℝ) × ShellContourAux`. -/ +abbrev ShellContourAux := ℝ × (Fin 3 → ℝ) +/-- Shell contour parameters with underlying type `(Fin 6 → ℝ) × ShellContourAux`. -/ +abbrev ShellContourParameters := (Fin 6 → ℝ) × ShellContourAux + +/-- Full contour Lorentz parameters. -/ +noncomputable def fullContourLorentzParameters (q : ShellContourParameters) : Fin 6 → ℝ := + ![q.1 0, q.1 1, q.1 2, q.1 3, q.1 4, q.2.2 0] + +/-- Full contour momentum defined as `WithLp.toLp 2 ![q.2.2 1, B + q.1 5, q.2.2 2]`. -/ +noncomputable def fullContourMomentum (B : ℝ) (q : ShellContourParameters) : + EuclideanSpace ℝ (Fin 3) := WithLp.toLp 2 ![q.2.2 1, B + q.1 5, q.2.2 2] + +/-- Full contour energy given by `Real.sqrt ((m + q.2.1) ^ 2 + ((q.2.2 1) ^ 2 + (B + q.1 5) ^ 2 + +(q.2.2 2) ^ 2))`. -/ +noncomputable def fullContourEnergy (m B : ℝ) (q : ShellContourParameters) : ℝ := + Real.sqrt ((m + q.2.1) ^ 2 + + ((q.2.2 1) ^ 2 + (B + q.1 5) ^ 2 + (q.2.2 2) ^ 2)) + +theorem fullContourEnergy_eq_dispersion (m B : ℝ) (q : ShellContourParameters) : + fullContourEnergy m B q = dispersion (m + q.2.1) (fullContourMomentum B q) := by + simp [fullContourEnergy, dispersion, fullContourMomentum, + EuclideanSpace.real_norm_sq_eq, Fin.sum_univ_three] + +theorem fullContourEnergy_zero (m B : ℝ) : + fullContourEnergy m B 0 = radialShellEnergy m B 0 := by + simp [fullContourEnergy, radialShellEnergy] + +theorem contDiffAt_fullContourEnergy {B : ℝ} (hB : 0 < B) (m : ℝ) : + ContDiffAt ℝ ⊤ (fullContourEnergy m B) 0 := by + have h : ContDiff ℝ ⊤ (fun q : ShellContourParameters => + (m + q.2.1) ^ 2 + ((q.2.2 1) ^ 2 + (B + q.1 5) ^ 2 + (q.2.2 2) ^ 2)) := by + fun_prop + exact h.contDiffAt.sqrt (by + simpa using (add_pos_of_nonneg_of_pos (sq_nonneg m) (sq_pos_of_pos hB)).ne') + +/-- Full contour seed. -/ +noncomputable def fullContourSeed (m B θ : ℝ) (q : ShellContourParameters) : ComplexSpacetime := + (((fullContourEnergy m B q * Real.cos θ : ℝ) : ℂ) + + Complex.I * (q.2.2 1 * Real.sin θ : ℝ), + ![((q.2.2 1 * Real.cos θ : ℝ) : ℂ) + + Complex.I * (fullContourEnergy m B q * Real.sin θ : ℝ), + ((B + q.1 5 : ℝ) : ℂ), (q.2.2 2 : ℂ)]) + +theorem fullContourSeed_eq_boost (m B θ : ℝ) (q : ShellContourParameters) : + fullContourSeed m B θ q = complexShellBoost (m + q.2.1) + ((θ : ℂ) * Complex.I) (fullContourMomentum B q) := by + rw [complexShellBoost, ← fullContourEnergy_eq_dispersion, + Complex.cosh_mul_I, Complex.sinh_mul_I, ← Complex.ofReal_cos, ← Complex.ofReal_sin] + apply Prod.ext + · simp [fullContourSeed, fullContourMomentum, Complex.ofReal_mul]; ring + · ext i + fin_cases i <;> simp [fullContourSeed, fullContourMomentum, Complex.ofReal_mul] + ring + +theorem contDiffAt_fullContourSeed {B : ℝ} (hB : 0 < B) (m θ : ℝ) : + ContDiffAt ℝ ⊤ (fullContourSeed m B θ) 0 := by + have hrealComplex {f : ShellContourParameters → ℝ} + (hf : ContDiffAt ℝ ⊤ f 0) : + ContDiffAt ℝ ⊤ (fun q => (f q : ℂ)) 0 := by + simpa only [Function.comp_apply, Complex.ofRealCLM_apply] using! + Complex.ofRealCLM.contDiff.contDiffAt.comp 0 hf + have hec : ContDiffAt ℝ ⊤ (fun q : ShellContourParameters => + (fullContourEnergy m B q : ℂ)) 0 := + hrealComplex (contDiffAt_fullContourEnergy hB m) + have hp (i : Fin 3) : ContDiffAt ℝ ⊤ + (fun q : ShellContourParameters => (q.2.2 i : ℂ)) 0 := + hrealComplex (((contDiff_apply ℝ (fun _ : Fin 3 => ℝ) i).comp + (contDiff_snd.comp contDiff_snd) : ContDiff ℝ ⊤ + (fun q : ShellContourParameters => q.2.2 i)).contDiffAt) + apply ContDiffAt.prodMk + · change ContDiffAt ℝ ⊤ (fun q : ShellContourParameters => + ((fullContourEnergy m B q * Real.cos θ : ℝ) : ℂ) + + Complex.I * (q.2.2 1 * Real.sin θ : ℝ)) 0 + simpa only [Complex.ofReal_mul, Pi.add_def, Pi.mul_def] using! + (hec.mul contDiffAt_const).add (contDiffAt_const.mul + ((hp 1).mul contDiffAt_const)) + · apply contDiffAt_pi.mpr + intro i + fin_cases i + · change ContDiffAt ℝ ⊤ (fun q : ShellContourParameters => + ((q.2.2 1 * Real.cos θ : ℝ) : ℂ) + + Complex.I * (fullContourEnergy m B q * Real.sin θ : ℝ)) 0 + simpa only [Complex.ofReal_mul, Pi.add_def, Pi.mul_def] using! + ((hp 1).mul contDiffAt_const).add + (contDiffAt_const.mul (hec.mul contDiffAt_const)) + · change ContDiffAt ℝ ⊤ (fun q : ShellContourParameters => ((B + q.1 5 : ℝ) : ℂ)) 0 + apply hrealComplex + exact ((contDiff_const.add ((contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 5).comp + contDiff_fst)) : ContDiff ℝ ⊤ (fun q : ShellContourParameters => B + q.1 5)).contDiffAt + · exact hp 2 + +/-- Full contour map. -/ +noncomputable def fullContourMap (m B θ : ℝ) (q : ShellContourParameters) : Fin 3 → ℂ := + complexShellCoordinates (complexLorentzFamilyAction (fullContourLorentzParameters q) + (fullContourSeed m B θ q)) + +theorem contDiffAt_fullContourMap {B : ℝ} (hB : 0 < B) (m θ : ℝ) : + ContDiffAt ℝ ⊤ (fullContourMap m B θ) 0 := by + have hp : ContDiff ℝ ⊤ fullContourLorentzParameters := by + unfold fullContourLorentzParameters + apply contDiff_pi.mpr + intro i + fin_cases i + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.1 0) + exact (contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 0).comp contDiff_fst + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.1 1) + exact (contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 1).comp contDiff_fst + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.1 2) + exact (contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 2).comp contDiff_fst + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.1 3) + exact (contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 3).comp contDiff_fst + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.1 4) + exact (contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 4).comp contDiff_fst + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.2.2 0) + exact (contDiff_apply ℝ (fun _ : Fin 3 => ℝ) 0).comp (contDiff_snd.comp contDiff_snd) + have hf : ContDiffAt ℝ ⊤ (fun q : ShellContourParameters => + complexLorentzFamilyAction (fullContourLorentzParameters q) + (fullContourSeed m B θ q)) 0 := + contDiff_complexLorentzFamilyAction.comp₂_contDiffAt + hp.contDiffAt (contDiffAt_fullContourSeed hB m θ) + -- Project the actual coordinates directly, avoiding the expanded Pi + -- restrictScalars composition and its duplicate real-module search. + unfold fullContourMap + apply contDiffAt_pi.mpr + intro i + fin_cases i + · exact hf.fst + · exact contDiffAt_pi.mp hf.snd 0 + · exact contDiffAt_pi.mp hf.snd 2 + +theorem fullContourMap_active_slice (m B θ : ℝ) (a : Fin 6 → ℝ) : + fullContourMap m B θ (a, 0) = referenceContourMap m B θ a := by + have hp : fullContourLorentzParameters (a, 0) = activeLorentzParameters a := rfl + have hz : fullContourSeed m B θ (a, 0) = radialShellContour m B θ (a 5) := by + apply Prod.ext + · simp [fullContourSeed, radialShellContour, fullContourEnergy, radialShellEnergy] + · ext i + fin_cases i <;> + simp [fullContourSeed, radialShellContour, fullContourEnergy, radialShellEnergy] + simp only [fullContourMap, referenceContourMap, hp, hz] + +/-- Full contour local coordinates. -/ +noncomputable def fullContourLocalCoordinates (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : + OpenPartialHomeomorph ShellContourParameters ((Fin 3 → ℂ) × ShellContourAux) := + augmentedLocalCoordinates (contDiffAt_fullContourMap hB m θ) + (referenceContourDerivativeEquiv m hB hθ) (by + simp only [fullContourMap_active_slice, referenceContourDerivativeEquiv_coe] + exact hasFDerivAt_referenceContourMap hB m θ) + +theorem fullContourLocalCoordinates_apply (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) (q : ShellContourParameters) : + fullContourLocalCoordinates m hB hθ q = (fullContourMap m B θ q, q.2) := rfl + +theorem zero_mem_fullContourLocalCoordinates (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : + 0 ∈ (fullContourLocalCoordinates m hB hθ).source := + zero_mem_augmentedLocalCoordinates _ _ _ + +theorem fullContourLocalCoordinates_inverse_aux (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) + {y : (Fin 3 → ℂ) × ShellContourAux} + (hy : y ∈ (fullContourLocalCoordinates m hB hθ).target) : + ((fullContourLocalCoordinates m hB hθ).symm y).2 = y.2 := by + exact congrArg Prod.snd ((fullContourLocalCoordinates m hB hθ).right_inv hy) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/FullContourPoint.lean b/LeanPool/VacuumBellSeparation/Shell/FullContourPoint.lean new file mode 100644 index 0000000000..6ad4244149 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/FullContourPoint.lean @@ -0,0 +1,126 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ControlledContourNeighborhood +public import LeanPool.VacuumBellSeparation.Shell.ComplexShellLocalChart + +/-! +# Reconstruction of the actual contour in the shell chart + +The free-coordinate map comes from a point on the original complex +mass shell. Near the canonical preimage its second spatial coordinate +stays on the positive square-root branch. Both branch conditions are +proved on a genuine parameter ball, including the mass coordinate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped Topology + +/-- Full contour point obtained from `complexLorentzFamilyAction`. -/ +noncomputable def fullContourPoint (m B θ : ℝ) (q : ShellContourParameters) : + ComplexSpacetime := + complexLorentzFamilyAction (fullContourLorentzParameters q) (fullContourSeed m B θ q) + +theorem fullContourPoint_mem_shell (m B θ : ℝ) (q : ShellContourParameters) : + fullContourPoint m B θ q ∈ complexShell (m + q.2.1) := by + apply complexifiedSpacetimeMap_mem_shell _ (lorentzParameterFamily_isProper _).1 + rw [fullContourSeed_eq_boost] + exact complexShellBoost_mem_shell _ _ _ + +theorem fullContourPoint_zero (m B θ : ℝ) : + fullContourPoint m B θ 0 = radialShellContour m B θ 0 := by + have hp : fullContourLorentzParameters 0 = 0 := by ext i; fin_cases i <;> rfl + rw [fullContourPoint, hp, complexLorentzFamilyAction_zero] + apply Prod.ext + · simp [fullContourSeed, radialShellContour, fullContourEnergy, radialShellEnergy] + · ext i + fin_cases i <;> + simp [fullContourSeed, radialShellContour, fullContourEnergy, radialShellEnergy] + +theorem contDiffAt_fullContourPoint {B : ℝ} (hB : 0 < B) (m θ : ℝ) : + ContDiffAt ℝ ⊤ (fullContourPoint m B θ) 0 := by + have hp : ContDiff ℝ ⊤ fullContourLorentzParameters := by + unfold fullContourLorentzParameters + apply contDiff_pi.mpr + intro i + fin_cases i + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.1 0) + exact (contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 0).comp contDiff_fst + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.1 1) + exact (contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 1).comp contDiff_fst + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.1 2) + exact (contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 2).comp contDiff_fst + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.1 3) + exact (contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 3).comp contDiff_fst + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.1 4) + exact (contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 4).comp contDiff_fst + · change ContDiff ℝ ⊤ (fun q : ShellContourParameters => q.2.2 0) + exact (contDiff_apply ℝ (fun _ : Fin 3 => ℝ) 0).comp (contDiff_snd.comp contDiff_snd) + exact contDiff_complexLorentzFamilyAction.comp₂_contDiffAt + hp.contDiffAt (contDiffAt_fullContourSeed hB m θ) + +theorem fullContourPoint_chart {m B θ : ℝ} {q : ShellContourParameters} + (hq : 0 < ((fullContourPoint m B θ q).2 1).re) : + complexShellChart (m + q.2.1) (fullContourMap m B θ q) = fullContourPoint m B θ q := + complexShellChart_coordinates (fullContourPoint_mem_shell m B θ q) hq + +theorem fullContourPoint_branch_ball {B : ℝ} (hB : 0 < B) (m θ : ℝ) : + ∃ r > 0, ∀ q : ShellContourParameters, ‖q‖ < r → + 0 < ((fullContourPoint m B θ q).2 1).re ∧ + fullContourMap m B θ q ∈ complexShellChartDomain (m + q.2.1) := by + have hc : ContinuousAt (fun q => (fullContourPoint m B θ q).2 1) 0 := + (continuous_apply (1 : Fin 3)).continuousAt.comp + (contDiffAt_fullContourPoint hB m θ).continuousAt.snd + have h0 : (fullContourPoint m B θ 0).2 1 = (B : ℂ) := by + rw [fullContourPoint_zero] + simp [radialShellContour] + have hp : 0 < ((fullContourPoint m B θ 0).2 1).re := by simpa [h0] using hB + have hs : 0 < (((fullContourPoint m B θ 0).2 1) ^ 2).re := by + simpa [h0, ← Complex.ofReal_pow] using sq_pos_of_pos hB + have hcr : ContinuousAt (fun q => ((fullContourPoint m B θ q).2 1).re) 0 := + Complex.continuous_re.continuousAt.comp hc + have hcsr : ContinuousAt (fun q => (((fullContourPoint m B θ q).2 1) ^ 2).re) 0 := + Complex.continuous_re.continuousAt.comp (hc.pow 2) + have hall : ∀ᶠ q in 𝓝 (0 : ShellContourParameters), + 0 < ((fullContourPoint m B θ q).2 1).re ∧ + 0 < (((fullContourPoint m B θ q).2 1) ^ 2).re := by + filter_upwards [continuousAt_const.eventually_lt hcr hp, + continuousAt_const.eventually_lt hcsr hs] with q hqp hqs + exact ⟨hqp, hqs⟩ + obtain ⟨r, hr, hh⟩ := Metric.eventually_nhds_iff.mp hall + refine ⟨r, hr, fun q hq => ?_⟩ + have h := hh (by simpa only [dist_zero_right] using hq) + refine ⟨h.1, ?_⟩ + change 0 < (complexShellRadicand (m + q.2.1) + (complexShellCoordinates (fullContourPoint m B θ q))).re + rw [complexShellRadicand_coordinates (fullContourPoint_mem_shell m B θ q)] + exact h.2 + +theorem fullContourPoint_prefixed (Λ : Spacetime ≃L[ℝ] Spacetime) + (m B θ : ℝ) (q : ShellContourParameters) : + complexifiedSpacetimeMap Λ (fullContourPoint m B θ q) = + complexifiedSpacetimeMap (fullContourLorentzMap Λ q) + (complexShellBoost (m + q.2.1) ((θ : ℂ) * Complex.I) (fullContourMomentum B q)) := by + rw [fullContourLorentzMap, complexifiedSpacetimeMap_trans] + change complexifiedSpacetimeMap Λ + (complexLorentzFamilyAction _ (fullContourSeed m B θ q)) = _ + rw [fullContourSeed_eq_boost] + rfl + +theorem lorentzComplexShellChart_fullContourMap (Λ : Spacetime ≃L[ℝ] Spacetime) + {m B θ : ℝ} {q : ShellContourParameters} + (hq : 0 < ((fullContourPoint m B θ q).2 1).re) : + lorentzComplexShellChart (m + q.2.1) Λ (fullContourMap m B θ q) = + complexifiedSpacetimeMap (fullContourLorentzMap Λ q) + (complexShellBoost (m + q.2.1) ((θ : ℂ) * Complex.I) (fullContourMomentum B q)) := by + rw [lorentzComplexShellChart, fullContourPoint_chart hq, fullContourPoint_prefixed] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/HaarJacobianBound.lean b/LeanPool/VacuumBellSeparation/Shell/HaarJacobianBound.lean new file mode 100644 index 0000000000..648af1054c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/HaarJacobianBound.lean @@ -0,0 +1,67 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.HaarJacobianCoordinates + +/-! +# A quantitative measure bound from a genuine Jacobian estimate + +The constant carries the fixed Haar-coordinate normalization. A bound on +the actual Jacobian gives the needed reverse integral control for every +nonnegative weight, without a measurability assumption on that weight. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +variable {E F : Type*} + [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] + [NormedAddCommGroup F] [NormedSpace ℝ F] [FiniteDimensional ℝ F] + [MeasurableSpace E] [BorelSpace E] [MeasurableSpace F] [BorelSpace F] + (μ : Measure E) (ν : Measure F) [μ.IsAddHaarMeasure] [ν.IsAddHaarMeasure] + +omit [FiniteDimensional ℝ F] in +theorem lintegral_image_le_linearHaarScale_jacobian_bound (J : E ≃L[ℝ] F) + {f : E → F} {f' : E → E →L[ℝ] F} {s : Set E} + (hs : MeasurableSet s) (hf' : ∀ x ∈ s, HasFDerivWithinAt f (f' x) s x) + (hinj : Set.InjOn f s) {C : ℝ} + (hC : ∀ x ∈ s, |(J.symm.toContinuousLinearMap.comp (f' x)).det| ≤ C) + (g : F → ℝ≥0∞) : + (∫⁻ y in f '' s, g y ∂ν) ≤ + (linearHaarScale μ ν J : ℝ≥0∞) * ENNReal.ofReal C * + ∫⁻ x in s, g (f x) ∂μ := by + rw [lintegral_image_eq_linearHaarScale_jacobian μ ν J hs hf' hinj] + calc + _ ≤ (linearHaarScale μ ν J : ℝ≥0∞) * + ∫⁻ x in s, ENNReal.ofReal C * g (f x) ∂μ := by + apply _root_.mul_le_mul_right + apply setLIntegral_mono' hs + intro x hx + exact _root_.mul_le_mul_left (ENNReal.ofReal_le_ofReal (hC x hx)) _ + _ = _ := by + rw [lintegral_const_mul' _ _ ENNReal.ofReal_ne_top] + exact (mul_assoc _ _ _).symm + +omit [FiniteDimensional ℝ F] in +theorem lintegral_subset_image_le_linearHaarScale_jacobian_bound (J : E ≃L[ℝ] F) + {f : E → F} {f' : E → E →L[ℝ] F} {s : Set E} + (hs : MeasurableSet s) (hf' : ∀ x ∈ s, HasFDerivWithinAt f (f' x) s x) + (hinj : Set.InjOn f s) {C : ℝ} + (hC : ∀ x ∈ s, |(J.symm.toContinuousLinearMap.comp (f' x)).det| ≤ C) + {t : Set F} (ht : t ⊆ f '' s) (g : F → ℝ≥0∞) : + (∫⁻ y in t, g y ∂ν) ≤ + (linearHaarScale μ ν J : ℝ≥0∞) * ENNReal.ofReal C * + ∫⁻ x in s, g (f x) ∂μ := + (lintegral_mono_set ht).trans + (lintegral_image_le_linearHaarScale_jacobian_bound μ ν J hs hf' hinj hC g) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/HaarJacobianCoordinates.lean b/LeanPool/VacuumBellSeparation/Shell/HaarJacobianCoordinates.lean new file mode 100644 index 0000000000..b982c64b0d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/HaarJacobianCoordinates.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.MeasureTheory.Function.Jacobian +public import Mathlib.Analysis.Calculus.FDeriv.Linear +public import Mathlib.Analysis.Calculus.FDeriv.Comp +public import Mathlib.MeasureTheory.Measure.Haar.Unique +public import Mathlib.MeasureTheory.Group.Measure + +/-! +# Real change of variables between different finite-dimensional carriers + +A fixed genuine continuous linear equivalence identifies the two +carriers. Its positive Haar normalization is retained explicitly. The +remaining determinant is the ordinary endomorphism determinant from +the pinned change-of-variables theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal NNReal + +variable {E F : Type*} + [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] + [NormedAddCommGroup F] [NormedSpace ℝ F] [FiniteDimensional ℝ F] + [MeasurableSpace E] [BorelSpace E] [MeasurableSpace F] [BorelSpace F] + (μ : Measure E) (ν : Measure F) [μ.IsAddHaarMeasure] [ν.IsAddHaarMeasure] + +/-- Linear Haar scale obtained from `Measure.addHaarScalarFactor`. -/ +noncomputable def linearHaarScale (J : E ≃L[ℝ] F) : ℝ≥0 := + Measure.addHaarScalarFactor (ν.map J.symm) μ + +omit [FiniteDimensional ℝ E] [FiniteDimensional ℝ F] in +theorem linearHaarScale_pos (J : E ≃L[ℝ] F) : 0 < linearHaarScale μ ν J := + Measure.addHaarScalarFactor_pos_of_isAddHaarMeasure (ν.map J.symm) μ + +omit [FiniteDimensional ℝ F] in +theorem linearHaarScale_map (J : E ≃L[ℝ] F) : + ν.map J.symm = linearHaarScale μ ν J • μ := + Measure.isAddLeftInvariant_eq_smul (ν.map J.symm) μ + +omit [FiniteDimensional ℝ F] in +theorem lintegral_linear_image (J : E ≃L[ℝ] F) (s : Set E) (g : F → ℝ≥0∞) : + (∫⁻ y in J '' s, g y ∂ν) = + (linearHaarScale μ ν J : ℝ≥0∞) * ∫⁻ x in s, g (J x) ∂μ := by + let e : E ≃ᵐ F := J.toHomeomorph.toMeasurableEquiv + have ht : (ν.map e.symm).restrict s = (ν.restrict (e '' s)).map e.symm := by + rw [e.symm.restrict_map] + congr 1 + exact congrArg ν.restrict (e.image_eq_preimage_symm s).symm + have h : (∫⁻ x in s, g (e x) ∂ν.map e.symm) = ∫⁻ y in e '' s, g y ∂ν := by + rw [ht, lintegral_map_equiv] + simp only [MeasurableEquiv.apply_symm_apply] + change (∫⁻ y in e '' s, g y ∂ν) = _ + rw [← h] + change (∫⁻ x in s, g (J x) ∂ν.map J.symm) = _ + rw [linearHaarScale_map μ ν J, Measure.restrict_smul, lintegral_smul_measure] + rfl + +omit [FiniteDimensional ℝ F] in +theorem lintegral_image_eq_linearHaarScale_jacobian (J : E ≃L[ℝ] F) + {f : E → F} {f' : E → E →L[ℝ] F} {s : Set E} + (hs : MeasurableSet s) (hf' : ∀ x ∈ s, HasFDerivWithinAt f (f' x) s x) + (hinj : Set.InjOn f s) (g : F → ℝ≥0∞) : + (∫⁻ y in f '' s, g y ∂ν) = (linearHaarScale μ ν J : ℝ≥0∞) * + ∫⁻ x in s, ENNReal.ofReal |(J.symm.toContinuousLinearMap.comp (f' x)).det| * + g (f x) ∂μ := by + have him : f '' s = J '' ((fun x => J.symm (f x)) '' s) := by + rw [Set.image_image] + simp only [ContinuousLinearEquiv.apply_symm_apply] + rw [him, lintegral_linear_image μ ν J] + have hchange := lintegral_image_eq_lintegral_abs_det_fderiv_mul μ hs + (fun x hx => HasFDerivAt.comp_hasFDerivWithinAt x + J.symm.toContinuousLinearMap.hasFDerivAt (hf' x hx)) + (fun x hx y hy h => hinj hx hy (J.symm.injective h)) (fun y => g (J y)) + simpa only [Function.comp_def, ContinuousLinearEquiv.coe_coe, + ContinuousLinearEquiv.apply_symm_apply] using + congrArg (fun t : ℝ≥0∞ => (linearHaarScale μ ν J : ℝ≥0∞) * t) hchange + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/HolomorphicCircleSubmean.lean b/LeanPool/VacuumBellSeparation/Shell/HolomorphicCircleSubmean.lean new file mode 100644 index 0000000000..c4e5ceb0be --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/HolomorphicCircleSubmean.lean @@ -0,0 +1,61 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Complex.MeanValue +public import Mathlib.Analysis.Convex.Integral +public import Mathlib.Analysis.Convex.Mul +public import Mathlib.Analysis.Normed.Module.Convex + +/-! +# The squared-norm circle submean inequality + +This combines the actual Cauchy mean formula with integral Jensen. It +uses the genuine angular probability average and is valid for vector +valued holomorphic functions as well as the scalar source wave. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Complex MeasureTheory Metric Real Set + +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] [CompleteSpace E] + +theorem circleAverage_norm_sq_le {f : ℂ → E} {c : ℂ} {R : ℝ} + (hf : CircleIntegrable f c R) + (hf₂ : CircleIntegrable (fun z => ‖f z‖ ^ 2) c R) : + ‖circleAverage f c R‖ ^ 2 ≤ circleAverage (fun z => ‖f z‖ ^ 2) c R := by + have hconv : ConvexOn ℝ (univ : Set E) (fun x => ‖x‖ ^ 2) := + (convexOn_norm convex_univ).pow (fun _ _ => norm_nonneg _) 2 + have h₁ : IntegrableOn (fun θ => f (circleMap c R θ)) (Ioc 0 (2 * Real.pi)) := + (intervalIntegrable_iff_integrableOn_Ioc_of_le two_pi_pos.le).mp hf + have h₂ : IntegrableOn (fun θ => ‖f (circleMap c R θ)‖ ^ 2) (Ioc 0 (2 * Real.pi)) := + (intervalIntegrable_iff_integrableOn_Ioc_of_le two_pi_pos.le).mp hf₂ + have hJ := hconv.map_set_average_le (by fun_prop) isClosed_univ + (show volume (Ioc 0 (2 * Real.pi)) ≠ 0 by + simpa only [Real.volume_Ioc, sub_zero, ne_eq, ENNReal.ofReal_eq_zero, not_le] + using Real.two_pi_pos) + (by rw [Real.volume_Ioc]; exact ENNReal.ofReal_ne_top) + (Filter.Eventually.of_forall fun _ => mem_univ _) h₁ h₂ + simpa only [circleAverage_eq_intervalAverage, uIoc_of_le two_pi_pos.le] using hJ + +theorem holomorphic_circle_submean_sq {f : ℂ → E} {c : ℂ} {R : ℝ} + (hR : 0 < R) (hf : DiffContOnCl ℂ f (ball c R)) : + ‖f c‖ ^ 2 ≤ circleAverage (fun z => ‖f z‖ ^ 2) c R := by + have hc : ContinuousOn f (closedBall c R) := by + simpa only [closure_ball c hR.ne'] using hf.continuousOn + have hs := hc.mono sphere_subset_closedBall + have hmean : circleAverage f c R = f c := by + apply DiffContOnCl.circleAverage + simpa only [abs_of_pos hR] using hf + rw [← hmean] + exact circleAverage_norm_sq_le (hs.circleIntegrable hR.le) + ((hs.norm.pow 2).circleIntegrable hR.le) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/HolomorphicDiskSubmean.lean b/LeanPool/VacuumBellSeparation/Shell/HolomorphicDiskSubmean.lean new file mode 100644 index 0000000000..f3ea424328 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/HolomorphicDiskSubmean.lean @@ -0,0 +1,95 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ComplexDiskPolar +public import LeanPool.VacuumBellSeparation.Shell.HolomorphicCircleSubmean +public import Mathlib.MeasureTheory.Measure.Lebesgue.VolumeOfBalls + +/-! +# The genuine complex disk squared-norm submean + +The circle inequality is integrated over actual radii with the true +Jacobian. The statement uses extended integrals, so no totalized Bochner +integral can hide a convergence failure. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Complex MeasureTheory Metric Real Set +open scoped ENNReal + +theorem holomorphic_circle_lintegral_submean_sq {f : ℂ → ℂ} {r : ℝ} + (hr : 0 < r) (hf : DiffContOnCl ℂ f (ball 0 r)) : + ENNReal.ofReal (2 * Real.pi) * ENNReal.ofReal (‖f 0‖ ^ 2) ≤ + ∫⁻ θ in Ioo (-Real.pi) Real.pi, ENNReal.ofReal (‖f (circleMap 0 r θ)‖ ^ 2) := by + have hc : Continuous (fun θ => ‖f (circleMap 0 r θ)‖ ^ 2) := by + apply (hf.continuousOn_ball.norm.pow 2).comp_continuous (continuous_circleMap _ _) + intro θ + simp only [mem_closedBall_zero_iff, norm_circleMap_zero, abs_of_pos hr, le_refl] + have hi : IntegrableOn (fun θ => ‖f (circleMap 0 r θ)‖ ^ 2) (Ioo (-Real.pi) Real.pi) := + hc.integrableOn_Icc.mono_set Ioo_subset_Icc_self + have hm := holomorphic_circle_submean_sq hr hf + rw [circleAverage_eq_integral_neg_pi] at hm + have hreal : 2 * Real.pi * ‖f 0‖ ^ 2 ≤ + ∫ θ in Ioo (-Real.pi) Real.pi, ‖f (circleMap 0 r θ)‖ ^ 2 := by + calc + _ ≤ (2 * Real.pi) * ((2 * Real.pi)⁻¹ * + ∫ θ in Ioo (-Real.pi) Real.pi, ‖f (circleMap 0 r θ)‖ ^ 2) := + mul_le_mul_of_nonneg_left hm two_pi_pos.le + _ = _ := by rw [← mul_assoc, mul_inv_cancel₀ two_pi_pos.ne', one_mul] + have h := ENNReal.ofReal_le_ofReal hreal + rw [ENNReal.ofReal_mul two_pi_pos.le, + ofReal_integral_eq_lintegral_ofReal hi (Filter.Eventually.of_forall fun _ => sq_nonneg _)] at h + exact h + +theorem holomorphic_disk_lintegral_submean_sq {f : ℂ → ℂ} {R : ℝ} + (hm : Measurable f) (hf : DiffContOnCl ℂ f (ball 0 R)) : + ENNReal.ofReal (‖f 0‖ ^ 2) * volume (ball (0 : ℂ) R) ≤ + ∫⁻ z in ball (0 : ℂ) R, ENNReal.ofReal (‖f z‖ ^ 2) := by + have hangular (r : ℝ) (hr : r ∈ Ioo (0 : ℝ) R) : + (∫⁻ θ in Ioo (-Real.pi) Real.pi, ENNReal.ofReal r * ENNReal.ofReal (‖f 0‖ ^ 2)) ≤ + ∫⁻ θ in Ioo (-Real.pi) Real.pi, ENNReal.ofReal r * + ENNReal.ofReal (‖f (circleMap 0 r θ)‖ ^ 2) := by + rw [lintegral_const_mul' _ _ ENNReal.ofReal_ne_top, + lintegral_const_mul' _ _ ENNReal.ofReal_ne_top] + apply mul_le_mul_right + have h := holomorphic_circle_lintegral_submean_sq hr.1 + (hf.mono (ball_subset_ball hr.2.le)) + simpa only [setLIntegral_const, Real.volume_Ioo, + show Real.pi - -Real.pi = 2 * Real.pi by ring, mul_comm] using h + calc + _ = ∫⁻ z in ball (0 : ℂ) R, ENNReal.ofReal (‖f 0‖ ^ 2) := + (setLIntegral_const _ _).symm + _ = ∫⁻ r in Ioo (0 : ℝ) R, ∫⁻ θ in Ioo (-Real.pi) Real.pi, + ENNReal.ofReal r * ENNReal.ofReal (‖f 0‖ ^ 2) := + complexDisk_lintegral_polar (R := R) _ measurable_const + _ ≤ ∫⁻ r in Ioo (0 : ℝ) R, ∫⁻ θ in Ioo (-Real.pi) Real.pi, + ENNReal.ofReal r * ENNReal.ofReal (‖f (circleMap 0 r θ)‖ ^ 2) := by + apply lintegral_mono_ae + filter_upwards [ae_restrict_mem measurableSet_Ioo] with r hr + exact hangular r hr + _ = _ := (complexDisk_lintegral_polar (R := R) _ + (ENNReal.measurable_ofReal.comp (hm.norm.pow_const 2))).symm + +/-- The area normalization is the actual complex Lebesgue area Real.pi R². -/ +theorem holomorphic_disk_lintegral_submean_sq_area {f : ℂ → ℂ} {R : ℝ} + (hR : 0 < R) (hm : Measurable f) (hf : DiffContOnCl ℂ f (ball 0 R)) : + ENNReal.ofReal (Real.pi * R ^ 2 * ‖f 0‖ ^ 2) ≤ + ∫⁻ z in ball (0 : ℂ) R, ENNReal.ofReal (‖f z‖ ^ 2) := by + have h := holomorphic_disk_lintegral_submean_sq hm hf + rw [Complex.volume_ball] at h + rw [ENNReal.ofReal_mul (mul_nonneg Real.pi_pos.le (sq_nonneg R)), + ENNReal.ofReal_mul Real.pi_pos.le, ENNReal.ofReal_pow hR.le] + have hpi : ENNReal.ofReal Real.pi = (NNReal.pi : ℝ≥0∞) := by + rw [← NNReal.coe_real_pi, ENNReal.ofReal_coe_nnreal] + rw [hpi] + simpa only [mul_comm, mul_left_comm, mul_assoc] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/HolomorphicInducedMeasureSubmean.lean b/LeanPool/VacuumBellSeparation/Shell/HolomorphicInducedMeasureSubmean.lean new file mode 100644 index 0000000000..e962508b76 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/HolomorphicInducedMeasureSubmean.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationMeasure + +/-! +# Local induced-volume submean for a holomorphic shell function + +This is the measure-theoretic interface for scaled physical waves. +The shell function is measurable and genuinely holomorphic in the +specified actual chart. The lower measure comparison is a separate, +explicit geometric hypothesis. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Metric Set +open scoped ENNReal + +theorem holomorphicShellWave_measure_submean {m R d δ : ℝ} + (F : complexShell m → ℂ) (hm : Measurable F) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (hd : ∀ w ∈ euclideanShellChartDomain m, + DifferentiableAt ℂ (fun w => F (shellPatchPoint m Λ hΛ w)) w) + (c : ShellEuclideanDomain) (hR : 0 < R) + (hsub : ball c (2 * R) ⊆ euclideanShellChartDomain m) + (hJ : ∀ w ∈ ball c (2 * R), d ≤ inducedShellChartDensity m Λ w) + {S : Set (complexShell m)} (hS : MeasurableSet S) + (hpatch : S ⊆ inducedShellPatch m Λ) + (himage : ∀ w ∈ ball c (2 * R), shellPatchPoint m Λ hΛ w ∈ S) + (ν : Measure (complexShell m)) + (hlower : ENNReal.ofReal δ • (inducedRegularShellVolume m).restrict S ≤ ν) : + ENNReal.ofReal δ * (ENNReal.ofReal d * + (ENNReal.ofReal (‖F (shellPatchPoint m Λ hΛ c)‖ ^ 2) * + volume (ball (0 : ℂ) R) ^ 3)) ≤ + ∫⁻ z, ENNReal.ofReal (‖F z‖ ^ 2) ∂ν := by + let g : complexShell m → ℝ≥0∞ := fun z => ENNReal.ofReal (‖F z‖ ^ 2) + have hg : Measurable g := ENNReal.measurable_ofReal.comp (hm.norm.pow_const 2) + have hlocal := local_shellEuclidean_submean_sq (isOpen_euclideanShellChartDomain m) + (fun w => F (shellPatchPoint m Λ hΛ w)) hd hR hsub + have hcoord : ENNReal.ofReal d * + (ENNReal.ofReal (‖F (shellPatchPoint m Λ hΛ c)‖ ^ 2) * + volume (ball (0 : ℂ) R) ^ 3) ≤ + ∫⁻ w in ball c (2 * R), g (shellPatchPoint m Λ hΛ w) + ∂inducedShellCoordinateVolume m Λ := by + apply (_root_.mul_le_mul_right hlocal (ENNReal.ofReal d)).trans + rw [← lintegral_const_mul' _ _ ENNReal.ofReal_ne_top, + inducedShellCoordinateVolume_lintegral Λ measurableSet_ball hsub] + apply setLIntegral_mono' measurableSet_ball + intro w hw + exact _root_.mul_le_mul_left (ENNReal.ofReal_le_ofReal (hJ w hw)) _ + have hrestrict : (inducedRegularShellVolume m).restrict S = + (inducedShellPatchVolume m Λ hΛ).restrict S := by + rw [← inducedRegularShellVolume_restrict_chart m Λ hΛ, + Measure.restrict_restrict hS, inter_eq_left.mpr hpatch] + have hpatchbound : ENNReal.ofReal d * + (ENNReal.ofReal (‖F (shellPatchPoint m Λ hΛ c)‖ ^ 2) * + volume (ball (0 : ℂ) R) ^ 3) ≤ + ∫⁻ z in S, g z ∂inducedRegularShellVolume m := by + calc + _ ≤ ∫⁻ w in ball c (2 * R), g (shellPatchPoint m Λ hΛ w) + ∂inducedShellCoordinateVolume m Λ := hcoord + _ = ∫⁻ w in ball c (2 * R), S.indicator g (shellPatchPoint m Λ hΛ w) + ∂inducedShellCoordinateVolume m Λ := by + apply setLIntegral_congr_fun measurableSet_ball + intro w hw + dsimp only + rw [indicator_of_mem (himage w hw)] + _ ≤ ∫⁻ w, S.indicator g (shellPatchPoint m Λ hΛ w) + ∂inducedShellCoordinateVolume m Λ := + lintegral_mono' Measure.restrict_le_self le_rfl + _ = ∫⁻ z, S.indicator g z ∂inducedShellPatchVolume m Λ hΛ := + (lintegral_map' (hg.indicator hS).aemeasurable + (aemeasurable_shellPatchPoint m Λ hΛ)).symm + _ = ∫⁻ z in S, g z ∂inducedRegularShellVolume m := by + rw [lintegral_indicator hS, hrestrict] + apply (_root_.mul_le_mul_right hpatchbound (ENNReal.ofReal δ)).trans + rw [← smul_eq_mul, ← lintegral_smul_measure] + exact lintegral_mono' hlower le_rfl + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/HolomorphicVolumeSubmean.lean b/LeanPool/VacuumBellSeparation/Shell/HolomorphicVolumeSubmean.lean new file mode 100644 index 0000000000..b475373085 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/HolomorphicVolumeSubmean.lean @@ -0,0 +1,155 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.HolomorphicDiskSubmean +public import LeanPool.VacuumBellSeparation.Gaussian.PolydiscCauchyFormula +public import Mathlib.MeasureTheory.Constructions.Pi + +/-! +# Submean on actual finite products of complex disks + +The measure is complex product Lebesgue volume restricted to the open +coordinate polydisc. Iterating the genuine disk inequality and Tonelli +gives the exact volume factor, including the zero-dimensional case. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Complex MeasureTheory Metric Set +open scoped ENNReal +open Gaussian + +/-- Complex polydisc measure given by `Measure.pi fun _ : Fin n => volume.restrict (ball (0 : ℂ) +R)`. -/ +noncomputable def complexPolydiscMeasure (n : ℕ) (R : ℝ) : Measure (Fin n → ℂ) := + Measure.pi fun _ : Fin n => volume.restrict (ball (0 : ℂ) R) + +/-- The product of the open complex discs of the same radius, each centered at zero. -/ +noncomputable def coordinateOpenPolydisc (n : ℕ) (R : ℝ) : Set (Fin n → ℂ) := + Set.univ.pi fun _ => ball (0 : ℂ) R + +theorem complexPolydiscMeasure_eq_restrict (n : ℕ) (R : ℝ) : + complexPolydiscMeasure n R = volume.restrict (coordinateOpenPolydisc n R) := by + exact (Measure.restrict_pi_pi (fun _ : Fin n => (volume : Measure ℂ)) + (fun _ => ball (0 : ℂ) R)).symm + +theorem complexPolydiscMeasure_univ (n : ℕ) (R : ℝ) : + complexPolydiscMeasure n R univ = volume (ball (0 : ℂ) R) ^ n := by + simp only [complexPolydiscMeasure, Measure.pi_univ, Measure.restrict_apply_univ, + Finset.prod_const, Finset.card_univ, Fintype.card_fin] + +theorem complexPolydisc_lintegral_succ (n : ℕ) (R : ℝ) + (g : (Fin (n + 1) → ℂ) → ℝ≥0∞) (hg : Measurable g) : + (∫⁻ z, g z ∂complexPolydiscMeasure (n + 1) R) = + ∫⁻ z in ball (0 : ℂ) R, ∫⁻ w, g (Fin.cons z w) ∂complexPolydiscMeasure n R := by + let : SFinite (complexPolydiscMeasure n R) := by + unfold complexPolydiscMeasure + infer_instance + let e := (MeasurableEquiv.piFinSuccAbove (fun _ : Fin (n + 1) => ℂ) 0).symm + have he := (measurePreserving_piFinSuccAbove + (fun _ : Fin (n + 1) => volume.restrict (ball (0 : ℂ) R)) 0).symm + have heq : (fun p : ℂ × (Fin n → ℂ) => g (e p)) = + (fun p => g (Fin.cons p.1 p.2)) := by + funext p + simp [e, MeasurableEquiv.piFinSuccAbove_symm_apply, Fin.insertNthEquiv] + calc + _ = ∫⁻ p : ℂ × (Fin n → ℂ), g (e p) + ∂(volume.restrict (ball (0 : ℂ) R)).prod (complexPolydiscMeasure n R) := + (he.lintegral_comp_emb e.measurableEmbedding g).symm + _ = _ := by + have hp := hg.comp e.measurable + change Measurable (fun p => g (e p)) at hp + rw [heq] at hp ⊢ + exact lintegral_prod _ hp.aemeasurable + +theorem holomorphic_polydisc_lintegral_submean_sq (n : ℕ) {R : ℝ} (hR : 0 < R) + (F : (Fin n → ℂ) → ℂ) (hm : Measurable F) + (hF : ∀ z ∈ coordinateClosedPolydisc n R, DifferentiableAt ℂ F z) : + ENNReal.ofReal (‖F 0‖ ^ 2) * volume (ball (0 : ℂ) R) ^ n ≤ + ∫⁻ z, ENNReal.ofReal (‖F z‖ ^ 2) ∂complexPolydiscMeasure n R := by + induction n with + | zero => + have hzero : (fun z : Fin 0 → ℂ => ENNReal.ofReal (‖F z‖ ^ 2)) = + (fun _ => ENNReal.ofReal (‖F 0‖ ^ 2)) := by + funext z + exact congrArg (fun w => ENNReal.ofReal (‖F w‖ ^ 2)) (Subsingleton.elim z 0) + simp only [hzero, lintegral_const, complexPolydiscMeasure_univ, le_refl] + | succ n ih => + have hfirst : Measurable (fun z : ℂ => F (Fin.cons z (0 : Fin n → ℂ))) := by + apply hm.comp + apply Measurable.of_eval + intro j + refine Fin.cases ?_ (fun i => ?_) j + · change Measurable (fun z : ℂ => z) + exact measurable_id + · change Measurable (fun _ : ℂ => (0 : ℂ)) + exact measurable_const + have htail (z : ℂ) (hz : z ∈ ball (0 : ℂ) R) : + ENNReal.ofReal (‖F (Fin.cons z (0 : Fin n → ℂ))‖ ^ 2) * + volume (ball (0 : ℂ) R) ^ n ≤ + ∫⁻ w, ENNReal.ofReal (‖F (Fin.cons z w)‖ ^ 2) ∂complexPolydiscMeasure n R := by + refine ih (fun w : Fin n → ℂ => F (Fin.cons z w)) ?_ ?_ + · apply hm.comp + apply Measurable.of_eval + intro j + refine Fin.cases ?_ (fun i => ?_) j + · change Measurable (fun _ : Fin n → ℂ => z) + exact measurable_const + · change Measurable (fun w : Fin n → ℂ => w i) + exact measurable_pi_apply i + · intro w hw + apply (hF (Fin.cons z w) (coordinateClosedPolydisc_cons + ((mem_ball_zero_iff.mp hz).le) hw)).comp w + apply differentiableAt_pi.mpr + intro j + refine Fin.cases ?_ (fun i => ?_) j + · simpa only [Fin.cons_zero] using (differentiableAt_const (c := z) : + DifferentiableAt ℂ (fun _ : Fin n → ℂ => z) w) + · simpa only [Fin.cons_succ] using (differentiableAt_apply i w : + DifferentiableAt ℂ (fun w : Fin n → ℂ => w i) w) + have hdisk := holomorphic_disk_lintegral_submean_sq hfirst + (polydisc_slice_diffContOnCl F hF (0 : Fin n → ℂ) + (fun j => by simpa using hR.le)) + have hcons : Fin.cons (α := fun _ : Fin (n + 1) => ℂ) (0 : ℂ) (0 : Fin n → ℂ) = 0 := by + ext j + refine Fin.cases ?_ (fun i => ?_) j <;> rfl + rw [hcons] at hdisk + have hfinite : volume (ball (0 : ℂ) R) ^ n ≠ ⊤ := by + rw [Complex.volume_ball] + exact ENNReal.pow_ne_top (by finiteness) + calc + _ = (ENNReal.ofReal (‖F 0‖ ^ 2) * volume (ball (0 : ℂ) R)) * + volume (ball (0 : ℂ) R) ^ n := by + rw [pow_succ (volume (ball (0 : ℂ) R)) n] + ac_rfl + _ ≤ (∫⁻ z in ball (0 : ℂ) R, + ENNReal.ofReal (‖F (Fin.cons z (0 : Fin n → ℂ))‖ ^ 2)) * + volume (ball (0 : ℂ) R) ^ n := _root_.mul_le_mul_left hdisk _ + _ = ∫⁻ z in ball (0 : ℂ) R, + ENNReal.ofReal (‖F (Fin.cons z (0 : Fin n → ℂ))‖ ^ 2) * + volume (ball (0 : ℂ) R) ^ n := (lintegral_mul_const' _ _ hfinite).symm + _ ≤ ∫⁻ z in ball (0 : ℂ) R, + ∫⁻ w, ENNReal.ofReal (‖F (Fin.cons z w)‖ ^ 2) ∂complexPolydiscMeasure n R := by + apply lintegral_mono_ae + filter_upwards [ae_restrict_mem measurableSet_ball] with z hz + exact htail z hz + _ = _ := (complexPolydisc_lintegral_succ n R _ + (ENNReal.measurable_ofReal.comp (hm.norm.pow_const 2))).symm + +/-- The integral is the actual product Lebesgue integral on the polydisc. -/ +theorem holomorphic_volume_submean_sq (n : ℕ) {R : ℝ} (hR : 0 < R) + (F : (Fin n → ℂ) → ℂ) (hm : Measurable F) + (hF : ∀ z ∈ coordinateClosedPolydisc n R, DifferentiableAt ℂ F z) : + ENNReal.ofReal (‖F 0‖ ^ 2) * volume (ball (0 : ℂ) R) ^ n ≤ + ∫⁻ z in coordinateOpenPolydisc n R, ENNReal.ofReal (‖F z‖ ^ 2) := by + simpa only [complexPolydiscMeasure_eq_restrict] using + holomorphic_polydisc_lintegral_submean_sq n hR F hm hF + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/InducedRegularShellVolume.lean b/LeanPool/VacuumBellSeparation/Shell/InducedRegularShellVolume.lean new file mode 100644 index 0000000000..490db8d6c4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/InducedRegularShellVolume.lean @@ -0,0 +1,119 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellAtlasVolume +public import LeanPool.VacuumBellSeparation.Shell.InducedShellChartCoverage +public import Mathlib.Topology.Bases +public import Mathlib.Data.Set.Countable + +/-! +# A chart-independent Euclidean induced measure near the normalized target + +Second countability selects an actual countable subatlas of the union +of regular Lorentz shell charts. Gluing their actual Gram measures +defines a measure on the original shell, supported on that open union. +Every normalized target belongs to the union. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set + +/-- Shell Lorentz frame with underlying type `{Λ : Spacetime ≃L[ℝ] Spacetime // IsLorentzMap Λ}`. -/ +abbrev ShellLorentzFrame := {Λ : Spacetime ≃L[ℝ] Spacetime // IsLorentzMap Λ} + +/-- Regular shell region. -/ +def regularShellRegion (m : ℝ) : Set (complexShell m) := + ⋃ Λ : ShellLorentzFrame, inducedShellPatch m Λ.1 + +theorem isOpen_regularShellRegion (m : ℝ) : IsOpen (regularShellRegion m) := + isOpen_iUnion (fun Λ => isOpen_inducedShellPatch m Λ.1) + +theorem exists_countable_regularShellAtlas (m : ℝ) : + ∃ Λ : ℕ → ShellLorentzFrame, + inducedShellAtlasDomain m (fun n => (Λ n).1) = regularShellRegion m := by + classical + obtain ⟨s, hs, hcover⟩ := TopologicalSpace.isOpen_iUnion_countable + (fun Λ : ShellLorentzFrame => inducedShellPatch m Λ.1) + (fun Λ => isOpen_inducedShellPatch m Λ.1) + let d : ShellLorentzFrame := ⟨ContinuousLinearEquiv.refl ℝ Spacetime, fun _ _ => rfl⟩ + let Λ : ℕ → ShellLorentzFrame := enumerateCountable hs d + refine ⟨Λ, Set.Subset.antisymm ?_ ?_⟩ + · intro z hz + obtain ⟨n, hn⟩ := mem_iUnion.mp hz + exact mem_iUnion.mpr ⟨Λ n, hn⟩ + · intro z hz + have hz' : z ∈ ⋃ L ∈ s, inducedShellPatch m L.1 := by + rw [hcover] + exact hz + obtain ⟨L, hL⟩ := mem_iUnion.mp hz' + obtain ⟨hLs, hzL⟩ := mem_iUnion.mp hL + obtain ⟨n, hn⟩ := subset_range_enumerate hs d hLs + exact mem_iUnion.mpr ⟨n, by simpa only [Λ, hn] using hzL⟩ + +/-- Regular shell atlas defined as `Classical.choose (exists_countable_regularShellAtlas m)`. -/ +noncomputable def regularShellAtlas (m : ℝ) : ℕ → ShellLorentzFrame := + Classical.choose (exists_countable_regularShellAtlas m) + +theorem regularShellAtlas_covers (m : ℝ) : + inducedShellAtlasDomain m (fun n => (regularShellAtlas m n).1) = regularShellRegion m := + Classical.choose_spec (exists_countable_regularShellAtlas m) + +/-- Induced regular shell volume defined as `inducedShellAtlasVolume m (fun n => (regularShellAtlas +m n).1) (fun n => (regularShellAtlas m n).2)`. -/ +noncomputable def inducedRegularShellVolume (m : ℝ) : Measure (complexShell m) := + inducedShellAtlasVolume m (fun n => (regularShellAtlas m n).1) + (fun n => (regularShellAtlas m n).2) + +/-- Exact local formula for the global measure in every actual regular +chart, including charts outside the chosen countable list. -/ +theorem inducedRegularShellVolume_restrict_chart (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) : + (inducedRegularShellVolume m).restrict (inducedShellPatch m Λ) = + inducedShellPatchVolume m Λ hΛ := by + apply inducedShellAtlasVolume_restrict_covered_chart + rw [regularShellAtlas_covers] + exact subset_iUnion (fun L : ShellLorentzFrame => inducedShellPatch m L.1) ⟨Λ, hΛ⟩ + +theorem inducedRegularShellVolume_supported (m : ℝ) : + (inducedRegularShellVolume m).restrict (regularShellRegion m) = + inducedRegularShellVolume m := by + rw [← regularShellAtlas_covers] + exact inducedShellAtlasVolume_supported _ _ _ + +theorem inducedRegularShellVolume_eq_any_atlas (m : ℝ) + (Λ : ℕ → Spacetime ≃L[ℝ] Spacetime) (hΛ : ∀ n, IsLorentzMap (Λ n)) + (hcover : inducedShellAtlasDomain m Λ = regularShellRegion m) : + inducedRegularShellVolume m = inducedShellAtlasVolume m Λ hΛ := by + apply inducedShellAtlasVolume_independent + exact (regularShellAtlas_covers m).trans hcover.symm + +theorem inducedRegularShellVolume_apply_in_chart {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + {s : Set (complexShell m)} (hs : MeasurableSet s) (hsub : s ⊆ inducedShellPatch m Λ) : + inducedRegularShellVolume m s = inducedShellCoordinateVolume m Λ + ((shellPatchPoint m Λ hΛ ⁻¹' s) ∩ euclideanShellChartDomain m) := by + have h := congrArg (fun μ : Measure (complexShell m) => μ s) + (inducedRegularShellVolume_restrict_chart m Λ hΛ) + rw [Measure.restrict_apply hs, inter_eq_left.mpr hsub] at h + exact h.trans (inducedShellPatchVolume_apply Λ hΛ hs) + +theorem normalizedTarget_mem_regularShellRegion {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) : + (⟨z, hz.2.2.1⟩ : complexShell t) ∈ regularShellRegion t := by + obtain ⟨Λ, w, hΛ, _, hw, him, _, _⟩ := + normalizedTarget_volume_chart_coverage hz (θ := Real.pi / 2) (by simp) + have hp : shellPatchPoint t Λ hΛ.1 w = (⟨z, hz.2.2.1⟩ : complexShell t) := by + apply Subtype.ext + apply complexSpacetimeEuclideanEquiv.injective + exact him + exact mem_iUnion.mpr ⟨⟨Λ, hΛ.1⟩, hp ▸ shellPatchPoint_mem Λ hΛ.1 hw⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/InducedShellAtlasVolume.lean b/LeanPool/VacuumBellSeparation/Shell/InducedShellAtlasVolume.lean new file mode 100644 index 0000000000..4fa52a5efd --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/InducedShellAtlasVolume.lean @@ -0,0 +1,130 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellPatchMeasure +public import LeanPool.VacuumBellSeparation.Shell.CompatibleChartMeasureGluing + +/-! +# The actual induced volume of a countable shell atlas + +The global measure is built from actual Lorentz-transported charts and +their Euclidean Gram densities. All overlap compatibility hypotheses +of measure gluing are discharged. The measure is independent of the +countable atlas on the same covered open set. Coverage of an intended +region remains an explicit geometric statement, separate from any +nonlinear ambient Hausdorff area formula. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set + +/-- Induced shell atlas domain. -/ +def inducedShellAtlasDomain (m : ℝ) (Λ : ℕ → Spacetime ≃L[ℝ] Spacetime) : + Set (complexShell m) := ⋃ n, inducedShellPatch m (Λ n) + +/-- Induced shell atlas volume defined as `gluedChartMeasure (fun n => inducedShellPatch m (Λ n)) +(fun n => inducedShellPatchVolume m (Λ n) (hΛ n))`. -/ +noncomputable def inducedShellAtlasVolume (m : ℝ) + (Λ : ℕ → Spacetime ≃L[ℝ] Spacetime) (hΛ : ∀ n, IsLorentzMap (Λ n)) : + Measure (complexShell m) := + gluedChartMeasure (fun n => inducedShellPatch m (Λ n)) + (fun n => inducedShellPatchVolume m (Λ n) (hΛ n)) + +theorem isOpen_inducedShellAtlasDomain (m : ℝ) + (Λ : ℕ → Spacetime ≃L[ℝ] Spacetime) : IsOpen (inducedShellAtlasDomain m Λ) := + isOpen_iUnion (fun n => isOpen_inducedShellPatch m (Λ n)) + +theorem inducedShellAtlasVolume_restrict_chart (m : ℝ) + (Λ : ℕ → Spacetime ≃L[ℝ] Spacetime) (hΛ : ∀ n, IsLorentzMap (Λ n)) (n : ℕ) : + (inducedShellAtlasVolume m Λ hΛ).restrict (inducedShellPatch m (Λ n)) = + inducedShellPatchVolume m (Λ n) (hΛ n) := + gluedChartMeasure_restrict_patch _ _ + (fun n => (isOpen_inducedShellPatch m (Λ n)).measurableSet) + (fun n => inducedShellPatchVolume_supported m (Λ n) (hΛ n)) + (fun i j => inducedShellPatchVolume_compatible m (Λ i) (Λ j) (hΛ i) (hΛ j)) n + +theorem inducedShellAtlasVolume_supported (m : ℝ) + (Λ : ℕ → Spacetime ≃L[ℝ] Spacetime) (hΛ : ∀ n, IsLorentzMap (Λ n)) : + (inducedShellAtlasVolume m Λ hΛ).restrict (inducedShellAtlasDomain m Λ) = + inducedShellAtlasVolume m Λ hΛ := + gluedChartMeasure_supported_union _ _ + (fun n => (isOpen_inducedShellPatch m (Λ n)).measurableSet) + +/-- Restriction to any other actual chart is its Gram measure restricted +to the region covered by the atlas. The chart need not occur in the list. -/ +theorem inducedShellAtlasVolume_restrict_other_chart (m : ℝ) + (Λ : ℕ → Spacetime ≃L[ℝ] Spacetime) (hΛ : ∀ n, IsLorentzMap (Λ n)) + (Γ : Spacetime ≃L[ℝ] Spacetime) (hΓ : IsLorentzMap Γ) : + (inducedShellAtlasVolume m Λ hΛ).restrict (inducedShellPatch m Γ) = + (inducedShellPatchVolume m Γ hΓ).restrict (inducedShellAtlasDomain m Λ) := by + let U : ℕ → Set (complexShell m) := fun n => inducedShellPatch m (Λ n) + have hU : ∀ n, MeasurableSet (U n) := + fun n => (isOpen_inducedShellPatch m (Λ n)).measurableSet + have hD : ∀ n, MeasurableSet (disjointed U n) := fun n => MeasurableSet.disjointed hU n + have hterm (n : ℕ) : + ((inducedShellPatchVolume m (Λ n) (hΛ n)).restrict (disjointed U n)).restrict + (inducedShellPatch m Γ) = + (inducedShellPatchVolume m Γ hΓ).restrict (disjointed U n) := by + rw [Measure.restrict_restrict (isOpen_inducedShellPatch m Γ).measurableSet, + inter_comm, ← Measure.restrict_restrict (hD n), + inducedShellPatchVolume_compatible m (Λ n) Γ (hΛ n) hΓ, + Measure.restrict_restrict_of_subset (disjointed_subset U n)] + change (Measure.sum (fun n => + (inducedShellPatchVolume m (Λ n) (hΛ n)).restrict (disjointed U n))).restrict _ = _ + rw [Measure.restrict_sum _ (isOpen_inducedShellPatch m Γ).measurableSet] + simp_rw [hterm] + rw [← Measure.restrict_iUnion (disjoint_disjointed U) hD, iUnion_disjointed] + rfl + +theorem inducedShellAtlasVolume_restrict_covered_chart (m : ℝ) + (Λ : ℕ → Spacetime ≃L[ℝ] Spacetime) (hΛ : ∀ n, IsLorentzMap (Λ n)) + (Γ : Spacetime ≃L[ℝ] Spacetime) (hΓ : IsLorentzMap Γ) + (hsub : inducedShellPatch m Γ ⊆ inducedShellAtlasDomain m Λ) : + (inducedShellAtlasVolume m Λ hΛ).restrict (inducedShellPatch m Γ) = + inducedShellPatchVolume m Γ hΓ := by + rw [inducedShellAtlasVolume_restrict_other_chart m Λ hΛ Γ hΓ] + calc + (inducedShellPatchVolume m Γ hΓ).restrict (inducedShellAtlasDomain m Λ) = + ((inducedShellPatchVolume m Γ hΓ).restrict (inducedShellPatch m Γ)).restrict + (inducedShellAtlasDomain m Λ) := by rw [inducedShellPatchVolume_supported] + _ = inducedShellPatchVolume m Γ hΓ := by + rw [Measure.restrict_restrict (isOpen_inducedShellAtlasDomain m Λ).measurableSet, + inter_eq_right.mpr hsub, inducedShellPatchVolume_supported] + +theorem inducedShellAtlasVolume_independent (m : ℝ) + (Λ Γ : ℕ → Spacetime ≃L[ℝ] Spacetime) + (hΛ : ∀ n, IsLorentzMap (Λ n)) (hΓ : ∀ n, IsLorentzMap (Γ n)) + (hregion : inducedShellAtlasDomain m Λ = inducedShellAtlasDomain m Γ) : + inducedShellAtlasVolume m Λ hΛ = inducedShellAtlasVolume m Γ hΓ := by + symm + apply gluedChartMeasure_unique _ _ + (fun n => (isOpen_inducedShellPatch m (Λ n)).measurableSet) + (fun n => inducedShellPatchVolume_supported m (Λ n) (hΛ n)) + (fun i j => inducedShellPatchVolume_compatible m (Λ i) (Λ j) (hΛ i) (hΛ j)) + · change (inducedShellAtlasVolume m Γ hΓ).restrict (inducedShellAtlasDomain m Λ) = _ + rw [hregion, inducedShellAtlasVolume_supported] + · intro n + apply inducedShellAtlasVolume_restrict_covered_chart + rw [← hregion] + exact subset_iUnion (fun n => inducedShellPatch m (Λ n)) n + +theorem inducedShellAtlasVolume_apply_in_chart {m : ℝ} + (Λ : ℕ → Spacetime ≃L[ℝ] Spacetime) (hΛ : ∀ n, IsLorentzMap (Λ n)) (n : ℕ) + {s : Set (complexShell m)} (hs : MeasurableSet s) + (hsub : s ⊆ inducedShellPatch m (Λ n)) : + inducedShellAtlasVolume m Λ hΛ s = inducedShellCoordinateVolume m (Λ n) + ((shellPatchPoint m (Λ n) (hΛ n) ⁻¹' s) ∩ euclideanShellChartDomain m) := by + have h := congrArg (fun μ : Measure (complexShell m) => μ s) + (inducedShellAtlasVolume_restrict_chart m Λ hΛ n) + rw [Measure.restrict_apply hs, inter_eq_left.mpr hsub] at h + exact h.trans (inducedShellPatchVolume_apply (Λ n) (hΛ n) hs) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/InducedShellChartCoverage.lean b/LeanPool/VacuumBellSeparation/Shell/InducedShellChartCoverage.lean new file mode 100644 index 0000000000..dd8f6bc24d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/InducedShellChartCoverage.lean @@ -0,0 +1,92 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeCompatibility +public import LeanPool.VacuumBellSeparation.Shell.NormalizedTargetPreimage + +/-! +# Coverage of the literal normalized target by the regular volume charts + +The positive transverse canonical momentum fixes the principal-root +branch. The explicit controlled matching map therefore places every +normalized target in one of the actual regular Lorentz shell charts. +This supplies coverage without an additional atlas-existence premise. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem canonicalShellBoost_second_coordinate (t ρ θ : ℝ) : + (complexShellBoost t ((θ : ℂ) * Complex.I) (canonicalShellMomentum t ρ θ)).2 1 = + (canonicalShellTransverse t ρ θ : ℂ) := rfl + +theorem canonicalShellBoost_coordinates_mem_domain {t ρ θ : ℝ} + (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + complexShellCoordinates + (complexShellBoost t ((θ : ℂ) * Complex.I) (canonicalShellMomentum t ρ θ)) ∈ + complexShellChartDomain t := by + change 0 < (complexShellRadicand t (complexShellCoordinates _)).re + rw [complexShellRadicand_coordinates (complexShellBoost_mem_shell t _ _), + canonicalShellBoost_second_coordinate, ← Complex.ofReal_pow, Complex.ofReal_re] + exact sq_pos_of_pos (canonicalShellTransverse_pos hρ hθ) + +theorem canonicalShellBoost_chart_coordinates {t ρ θ : ℝ} + (hρ : 0 < ρ) (hθ : 0 < Real.sin θ) : + complexShellChart t (complexShellCoordinates + (complexShellBoost t ((θ : ℂ) * Complex.I) (canonicalShellMomentum t ρ θ))) = + complexShellBoost t ((θ : ℂ) * Complex.I) (canonicalShellMomentum t ρ θ) := by + apply complexShellChart_coordinates (complexShellBoost_mem_shell t _ _) + rw [canonicalShellBoost_second_coordinate, Complex.ofReal_re] + exact canonicalShellTransverse_pos hρ hθ + +/-- Normalized target chart point. -/ +noncomputable def normalizedTargetChartPoint (t : ℝ) (z : ComplexSpacetime) (θ : ℝ) : + ShellEuclideanDomain := + shellEuclideanCoordinates.symm (complexShellCoordinates + (complexShellBoost t ((θ : ℂ) * Complex.I) (normalizedTargetMomentum t z θ))) + +theorem normalizedTargetChartPoint_mem_domain {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + normalizedTargetChartPoint t z θ ∈ euclideanShellChartDomain t := by + change shellEuclideanCoordinates (shellEuclideanCoordinates.symm _) ∈ complexShellChartDomain t + rw [ContinuousLinearEquiv.apply_symm_apply] + exact canonicalShellBoost_coordinates_mem_domain + (negativeMinkowskiLength_pos (normalizedTarget_real_negative hz)) hθ + +theorem normalizedTargetChartPoint_image {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + euclideanLorentzShellChart t (normalizedTargetPreimageMap hz hθ) + (normalizedTargetChartPoint t z θ) = complexSpacetimeEuclideanEquiv z := by + simp only [euclideanLorentzShellChart, normalizedTargetChartPoint, + ContinuousLinearEquiv.apply_symm_apply, lorentzComplexShellChart] + have hc := canonicalShellBoost_chart_coordinates + (t := t) (negativeMinkowskiLength_pos (normalizedTarget_real_negative hz)) hθ + change complexShellChart t (complexShellCoordinates + (complexShellBoost t ((θ : ℂ) * Complex.I) (normalizedTargetMomentum t z θ))) = _ at hc + rw [hc] + exact congrArg complexSpacetimeEuclideanEquiv (normalizedTargetPreimageMap_boost hz hθ) + +/-- Actual chart coverage of every point used by the normalized shell +evaluation argument, together with the strict inverse norm margin. -/ +theorem normalizedTarget_volume_chart_coverage {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + ∃ (Λ : Spacetime ≃L[ℝ] Spacetime) (w : ShellEuclideanDomain), + IsProperLorentzMap Λ ∧ IsOrthochronousMap Λ ∧ + w ∈ euclideanShellChartDomain t ∧ + euclideanLorentzShellChart t Λ w = complexSpacetimeEuclideanEquiv z ∧ + 0 < inducedShellChartDensity t Λ w ∧ + spacetimeEuclideanOperatorNorm Λ.symm < 32 / Real.sin θ := by + exact ⟨normalizedTargetPreimageMap hz hθ, normalizedTargetChartPoint t z θ, + normalizedTargetPreimageMap_isProper hz hθ, + normalizedTargetPreimageMap_isOrthochronous hz hθ, + normalizedTargetChartPoint_mem_domain hz hθ, normalizedTargetChartPoint_image hz hθ, + inducedShellChartDensity_pos _ (normalizedTargetChartPoint_mem_domain hz hθ), + (normalizedTargetPreimageMap_norm_lt hz hθ).2⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/InducedShellChartOverlap.lean b/LeanPool/VacuumBellSeparation/Shell/InducedShellChartOverlap.lean new file mode 100644 index 0000000000..cb0ca58e0d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/InducedShellChartOverlap.lean @@ -0,0 +1,134 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeBounds + +/-! +# Actual overlap transitions of the Euclidean shell charts + +The overlap retains the principal-root branch and both chart domains. +On this open set, the transition reconstructs the same original shell +point and is injective. The real derivative density transforms by the +absolute determinant of the genuine six-dimensional transition map. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped Topology + +theorem lorentzComplexShellChart_reconstruct {m : ℝ} + (Γ : Spacetime ≃L[ℝ] Spacetime) (hΓ : IsLorentzMap Γ) {z : ComplexSpacetime} + (hz : z ∈ complexShell m) + (hpos : 0 < ((complexifiedSpacetimeMap Γ.symm z).2 1).re) : + lorentzComplexShellChart m Γ (lorentzComplexShellCoordinates Γ z) = z := by + have hs := complexifiedSpacetimeMap_mem_shell Γ.symm hΓ.symm hz + unfold lorentzComplexShellChart lorentzComplexShellCoordinates + rw [ContinuousLinearMap.comp_apply, complexShellChart_coordinates hs hpos] + simpa only [ContinuousLinearEquiv.symm_symm] using complexifiedSpacetimeMap_inverse Γ.symm z + +/-- Change between the Euclidean coordinate representations of overlapping shell charts. -/ +noncomputable def euclideanShellChartTransition (m : ℝ) + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) (w : ShellEuclideanDomain) : ShellEuclideanDomain := + euclideanLorentzShellCoordinates Γ (euclideanLorentzShellChart m Λ w) + +/-- Euclidean shell overlap sign. -/ +noncomputable def euclideanShellOverlapSign (m : ℝ) + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) (w : ShellEuclideanDomain) : ℝ := + ((complexifiedSpacetimeMap Γ.symm + (lorentzComplexShellChart m Λ (shellEuclideanCoordinates w))).2 1).re + +/-- Set of points satisfying the Euclidean shell chart overlap condition. -/ +def euclideanShellChartOverlap (m : ℝ) (Λ Γ : Spacetime ≃L[ℝ] Spacetime) : + Set ShellEuclideanDomain := + {w | w ∈ euclideanShellChartDomain m ∧ + euclideanShellChartTransition m Λ Γ w ∈ euclideanShellChartDomain m ∧ + 0 < euclideanShellOverlapSign m Λ Γ w} + +theorem differentiableAt_euclideanShellChartTransition {m : ℝ} + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) {w : ShellEuclideanDomain} + (hw : w ∈ euclideanShellChartDomain m) : + DifferentiableAt ℝ (euclideanShellChartTransition m Λ Γ) w := + ((euclideanLorentzShellCoordinates Γ).restrictScalars ℝ).differentiableAt.comp w + ((differentiableAt_euclideanLorentzShellChart Λ hw).restrictScalars ℝ) + +theorem continuousAt_euclideanShellOverlapSign {m : ℝ} + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) {w : ShellEuclideanDomain} + (hw : w ∈ euclideanShellChartDomain m) : + ContinuousAt (euclideanShellOverlapSign m Λ Γ) w := by + have hc := (differentiableAt_lorentzComplexShellChart Λ hw).continuousAt.comp + shellEuclideanCoordinates.continuousAt + have hd := (complexifiedSpacetimeMap Γ.symm).continuous.continuousAt.comp hc + exact Complex.continuous_re.continuousAt.comp + ((continuous_apply (1 : Fin 3)).continuousAt.comp hd.snd) + +theorem isOpen_euclideanShellChartOverlap (m : ℝ) (Λ Γ : Spacetime ≃L[ℝ] Spacetime) : + IsOpen (euclideanShellChartOverlap m Λ Γ) := by + apply isOpen_iff_mem_nhds.mpr + intro w hw + have h₁ := (isOpen_euclideanShellChartDomain m).mem_nhds hw.1 + have h₂ := (differentiableAt_euclideanShellChartTransition Λ Γ hw.1).continuousAt + ((isOpen_euclideanShellChartDomain m).mem_nhds hw.2.1) + have h₃ := (continuousAt_euclideanShellOverlapSign Λ Γ hw.1) + (Ioi_mem_nhds hw.2.2) + exact Filter.inter_mem h₁ (Filter.inter_mem h₂ h₃) + +theorem euclideanShellChartTransition_reconstruct {m : ℝ} + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) (hΓ : IsLorentzMap Γ) + {w : ShellEuclideanDomain} (hw : w ∈ euclideanShellChartOverlap m Λ Γ) : + euclideanLorentzShellChart m Γ (euclideanShellChartTransition m Λ Γ w) = + euclideanLorentzShellChart m Λ w := by + have hs := complexifiedSpacetimeMap_mem_shell Λ hΛ + (complexShellChart_mem_shell m (shellEuclideanCoordinates w)) + have h := lorentzComplexShellChart_reconstruct Γ hΓ hs hw.2.2 + simpa only [euclideanLorentzShellChart, euclideanShellChartTransition, + euclideanLorentzShellCoordinates, ContinuousLinearMap.comp_apply, + ContinuousLinearEquiv.coe_coe, ContinuousLinearEquiv.symm_apply_apply, + ContinuousLinearEquiv.apply_symm_apply, lorentzComplexShellChart] using + congrArg complexSpacetimeEuclideanEquiv h + +theorem euclideanShellChartTransition_injOn {m : ℝ} + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) (hΓ : IsLorentzMap Γ) : + Set.InjOn (euclideanShellChartTransition m Λ Γ) (euclideanShellChartOverlap m Λ Γ) := by + intro x hx y hy hxy + have h := congrArg (euclideanLorentzShellChart m Γ) hxy + rw [euclideanShellChartTransition_reconstruct Λ Γ hΛ hΓ hx, + euclideanShellChartTransition_reconstruct Λ Γ hΛ hΓ hy] at h + have hi := congrArg (euclideanLorentzShellCoordinates Λ) h + simpa only [euclideanLorentzShellCoordinates_chart] using hi + +theorem shellDerivativeDensity_comp + (A : ShellEuclideanDomain →L[ℝ] ShellEuclideanAmbient) + (B : ShellEuclideanDomain →L[ℝ] ShellEuclideanDomain) : + shellDerivativeDensity (A.comp B) = shellDerivativeDensity A * |B.det| := by + simp only [shellDerivativeDensity_eq_normDet] + exact (B.toLinearMap.normDet_comp_of_finrank_eq A.toLinearMap rfl).trans + (congrArg (fun x => A.toLinearMap.normDet * x) B.toLinearMap.normDet_eq_abs_det) + +theorem inducedShellChartDensity_transition {m : ℝ} + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) (hΓ : IsLorentzMap Γ) + {w : ShellEuclideanDomain} (hw : w ∈ euclideanShellChartOverlap m Λ Γ) : + inducedShellChartDensity m Λ w = + inducedShellChartDensity m Γ (euclideanShellChartTransition m Λ Γ w) * + |(fderiv ℝ (euclideanShellChartTransition m Λ Γ) w).det| := by + have he : (fun x => euclideanLorentzShellChart m Γ (euclideanShellChartTransition m Λ Γ x)) + =ᶠ[𝓝 w] euclideanLorentzShellChart m Λ := by + filter_upwards [(isOpen_euclideanShellChartOverlap m Λ Γ).mem_nhds hw] with x hx + exact euclideanShellChartTransition_reconstruct Λ Γ hΛ hΓ hx + have hd := he.fderiv_eq (𝕜 := ℝ) + change fderiv ℝ (euclideanLorentzShellChart m Γ ∘ + euclideanShellChartTransition m Λ Γ) w = + fderiv ℝ (euclideanLorentzShellChart m Λ) w at hd + rw [fderiv_comp w + ((differentiableAt_euclideanLorentzShellChart Γ hw.2.1).restrictScalars ℝ) + (differentiableAt_euclideanShellChartTransition Λ Γ hw.1)] at hd + unfold inducedShellChartDensity + rw [← hd, shellDerivativeDensity_comp] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/InducedShellGramDensity.lean b/LeanPool/VacuumBellSeparation/Shell/InducedShellGramDensity.lean new file mode 100644 index 0000000000..f4920db385 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/InducedShellGramDensity.lean @@ -0,0 +1,118 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeCoordinates + +/-! +# The actual six-dimensional Euclidean Gram density + +The density is sqrt(det Gram) of the six real derivative columns in +the eight-dimensional Euclidean ambient space. Its equality with the +pinned norm determinant supplies the actual Hausdorff scaling theorem +for each tangent linear map. A nonlinear area formula is separate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped InnerProductSpace + +/-- Shell real orthonormal basis. -/ +noncomputable def shellRealOrthonormalBasis : + OrthonormalBasis (Fin 6) ℝ ShellEuclideanDomain := + (stdOrthonormalBasis ℝ ShellEuclideanDomain).reindex + (finCongr shellEuclideanDomain_real_finrank) + +/-- Shell derivative gram defined as `Matrix.gram ℝ (fun i => A (shellRealOrthonormalBasis i))`. -/ +noncomputable def shellDerivativeGram + (A : ShellEuclideanDomain →L[ℝ] ShellEuclideanAmbient) : Matrix (Fin 6) (Fin 6) ℝ := + Matrix.gram ℝ (fun i => A (shellRealOrthonormalBasis i)) + +/-- Shell derivative density defined as `Real.sqrt (shellDerivativeGram A).det`. -/ +noncomputable def shellDerivativeDensity + (A : ShellEuclideanDomain →L[ℝ] ShellEuclideanAmbient) : ℝ := + Real.sqrt (shellDerivativeGram A).det + +theorem shellDerivativeGram_posDef + {A : ShellEuclideanDomain →L[ℝ] ShellEuclideanAmbient} (hA : Function.Injective A) : + (shellDerivativeGram A).PosDef := + Matrix.posDef_gram_of_linearIndependent + (shellRealOrthonormalBasis.toBasis.linearIndependent.map' A.toLinearMap + (LinearMap.ker_eq_bot.mpr hA)) + +theorem shellDerivativeDensity_nonneg + (A : ShellEuclideanDomain →L[ℝ] ShellEuclideanAmbient) : 0 ≤ shellDerivativeDensity A := + Real.sqrt_nonneg _ + +theorem shellDerivativeDensity_pos + {A : ShellEuclideanDomain →L[ℝ] ShellEuclideanAmbient} (hA : Function.Injective A) : + 0 < shellDerivativeDensity A := + Real.sqrt_pos.2 (shellDerivativeGram_posDef hA).det_pos + +theorem shellDerivativeDensity_eq_normDet + (A : ShellEuclideanDomain →L[ℝ] ShellEuclideanAmbient) : + shellDerivativeDensity A = A.toLinearMap.normDet := by + have h : A.toLinearMap.normDet ^ 2 = (shellDerivativeGram A).det := + A.toLinearMap.normDet_sq_eq_det_gram shellRealOrthonormalBasis + rw [shellDerivativeDensity, ← h, Real.sqrt_sq A.toLinearMap.normDet_nonneg] + +theorem continuous_shellDerivativeGram : Continuous shellDerivativeGram := by + unfold shellDerivativeGram + apply continuous_pi + intro i + apply continuous_pi + intro j + change Continuous (fun A : ShellEuclideanDomain →L[ℝ] ShellEuclideanAmbient => + inner ℝ (A (shellRealOrthonormalBasis i)) (A (shellRealOrthonormalBasis j))) + fun_prop + +theorem continuous_shellDerivativeDensity : Continuous shellDerivativeDensity := + continuous_shellDerivativeGram.matrix_det.sqrt + +/-- Actual Euclidean six-dimensional Hausdorff scaling of every tangent +linear map, with the domain's genuine Euclidean Lebesgue measure. -/ +theorem shellDerivative_euclideanHausdorff_image + (A : ShellEuclideanDomain →L[ℝ] ShellEuclideanAmbient) (s : Set ShellEuclideanDomain) : + (Measure.euclideanHausdorffMeasure 6 : Measure ShellEuclideanAmbient) (A '' s) = + ENNReal.ofReal (shellDerivativeDensity A) * volume s := by + have h := A.toLinearMap.euclideanHausdorffMeasure_image_eq_normDet_mul_volume s + simpa only [shellEuclideanDomain_real_finrank, shellDerivativeDensity_eq_normDet, + ContinuousLinearMap.coe_coe] using h + +/-- Induced shell chart gram defined as `shellDerivativeGram (fderiv ℝ (euclideanLorentzShellChart +m Λ) w)`. -/ +noncomputable def inducedShellChartGram (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (w : ShellEuclideanDomain) : Matrix (Fin 6) (Fin 6) ℝ := + shellDerivativeGram (fderiv ℝ (euclideanLorentzShellChart m Λ) w) + +/-- Induced shell chart density defined as `shellDerivativeDensity (fderiv ℝ +(euclideanLorentzShellChart m Λ) w)`. -/ +noncomputable def inducedShellChartDensity (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (w : ShellEuclideanDomain) : ℝ := + shellDerivativeDensity (fderiv ℝ (euclideanLorentzShellChart m Λ) w) + +theorem inducedShellChartGram_posDef {m : ℝ} (Λ : Spacetime ≃L[ℝ] Spacetime) + {w : ShellEuclideanDomain} (hw : w ∈ euclideanShellChartDomain m) : + (inducedShellChartGram m Λ w).PosDef := + shellDerivativeGram_posDef (euclideanLorentzShellChart_real_derivative_injective Λ hw) + +theorem inducedShellChartDensity_pos {m : ℝ} (Λ : Spacetime ≃L[ℝ] Spacetime) + {w : ShellEuclideanDomain} (hw : w ∈ euclideanShellChartDomain m) : + 0 < inducedShellChartDensity m Λ w := + shellDerivativeDensity_pos (euclideanLorentzShellChart_real_derivative_injective Λ hw) + +theorem inducedShellChart_tangent_volume {m : ℝ} (Λ : Spacetime ≃L[ℝ] Spacetime) + (w : ShellEuclideanDomain) (s : Set ShellEuclideanDomain) : + (Measure.euclideanHausdorffMeasure 6 : Measure ShellEuclideanAmbient) + ((fderiv ℝ (euclideanLorentzShellChart m Λ) w) '' s) = + ENNReal.ofReal (inducedShellChartDensity m Λ w) * volume s := + shellDerivative_euclideanHausdorff_image _ _ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/InducedShellMassContinuity.lean b/LeanPool/VacuumBellSeparation/Shell/InducedShellMassContinuity.lean new file mode 100644 index 0000000000..55ed1740a4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/InducedShellMassContinuity.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeBounds + +/-! +# Uniform chart-density control through mass zero + +The mass and all six real chart coordinates vary jointly. The partial +coordinate derivative is obtained from the genuine derivative of the +joint C1 map, so compact bounds do not assume an unproved continuity +statement about a mass-indexed derivative family. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Set of points satisfying the Euclidean shell joint domain condition. -/ +noncomputable def euclideanShellJointDomain : Set (ℝ × ShellEuclideanDomain) := + {q | q.2 ∈ euclideanShellChartDomain q.1} + +private theorem contDiff_shellJointCoordinate (i : Fin 3) : + ContDiff ℝ 1 (fun q : ℝ × ShellEuclideanDomain => shellEuclideanCoordinates q.2 i) := + ((contDiff_apply ℝ (fun _ : Fin 3 => ℂ) i).comp + (shellEuclideanCoordinates.toContinuousLinearMap.restrictScalars ℝ).contDiff).comp + contDiff_snd + +theorem contDiff_shellJointRadicand : + ContDiff ℝ 1 (fun q : ℝ × ShellEuclideanDomain => + complexShellRadicand q.1 (shellEuclideanCoordinates q.2)) := by + have hm : ContDiff ℝ 1 (fun q : ℝ × ShellEuclideanDomain => (q.1 : ℂ)) := + Complex.ofRealCLM.contDiff.comp contDiff_fst + simpa only [complexShellRadicand] using + ((((contDiff_shellJointCoordinate 0).pow 2).sub + ((contDiff_shellJointCoordinate 1).pow 2)).sub + ((contDiff_shellJointCoordinate 2).pow 2)).sub (hm.pow 2) + +theorem isOpen_euclideanShellJointDomain : IsOpen euclideanShellJointDomain := + isOpen_lt continuous_const + (Complex.continuous_re.comp contDiff_shellJointRadicand.continuous) + +theorem contDiffOn_euclideanLorentzShellChart_joint (Λ : Spacetime ≃L[ℝ] Spacetime) : + ContDiffOn ℝ 1 (fun q : ℝ × ShellEuclideanDomain => + euclideanLorentzShellChart q.1 Λ q.2) euclideanShellJointDomain := by + have hs : ContDiffOn ℝ 1 Complex.sqrt Complex.slitPlane := + (Complex.differentiableOn_sqrt.contDiffOn Complex.isOpen_slitPlane).restrict_scalars ℝ + have hroot : ContDiffOn ℝ 1 (fun q : ℝ × ShellEuclideanDomain => + Complex.sqrt (complexShellRadicand q.1 (shellEuclideanCoordinates q.2))) + euclideanShellJointDomain := + hs.comp contDiff_shellJointRadicand.contDiffOn + (fun _ hw => Complex.mem_slitPlane_iff.mpr (Or.inl hw)) + have hc : ContDiffOn ℝ 1 (fun q : ℝ × ShellEuclideanDomain => + complexShellChart q.1 (shellEuclideanCoordinates q.2)) euclideanShellJointDomain := by + apply ContDiffOn.prodMk + · exact (contDiff_shellJointCoordinate 0).contDiffOn + · apply contDiffOn_pi.mpr + intro i + fin_cases i <;> + simp only [Matrix.cons_val_zero', + Matrix.cons_val_succ'] + · exact (contDiff_shellJointCoordinate 1).contDiffOn + · exact hroot + · exact (contDiff_shellJointCoordinate 2).contDiffOn + change ContDiffOn ℝ 1 (fun q : ℝ × ShellEuclideanDomain => + complexSpacetimeEuclideanEquiv (complexifiedSpacetimeMap Λ + (complexShellChart q.1 (shellEuclideanCoordinates q.2)))) euclideanShellJointDomain + exact (complexSpacetimeEuclideanEquiv.toContinuousLinearMap.restrictScalars + ℝ).contDiff.comp_contDiffOn + (((complexifiedSpacetimeMap Λ).restrictScalars ℝ).contDiff.comp_contDiffOn hc) + +theorem euclideanLorentzShellChart_partial_derivative (Λ : Spacetime ≃L[ℝ] Spacetime) + {q : ℝ × ShellEuclideanDomain} (hq : q ∈ euclideanShellJointDomain) : + fderiv ℝ (euclideanLorentzShellChart q.1 Λ) q.2 = + (fderiv ℝ (fun p : ℝ × ShellEuclideanDomain => + euclideanLorentzShellChart p.1 Λ p.2) q).comp + (ContinuousLinearMap.inr ℝ ℝ ShellEuclideanDomain) := by + have hF := ((contDiffOn_euclideanLorentzShellChart_joint Λ).contDiffAt + (isOpen_euclideanShellJointDomain.mem_nhds hq)).differentiableAt (by norm_num) + have hi := hasFDerivAt_prodMk_right (𝕜 := ℝ) q.1 q.2 + exact (hF.hasFDerivAt.comp q.2 hi).fderiv + +theorem continuousOn_euclideanLorentzShellChart_partial_derivative + (Λ : Spacetime ≃L[ℝ] Spacetime) : + ContinuousOn (fun q : ℝ × ShellEuclideanDomain => + fderiv ℝ (euclideanLorentzShellChart q.1 Λ) q.2) euclideanShellJointDomain := by + have hc := (contDiffOn_euclideanLorentzShellChart_joint Λ).continuousOn_fderiv_of_isOpen + isOpen_euclideanShellJointDomain le_rfl + have hcomp : ContinuousOn (fun q : ℝ × ShellEuclideanDomain => + (fderiv ℝ (fun p : ℝ × ShellEuclideanDomain => + euclideanLorentzShellChart p.1 Λ p.2) q).comp + (ContinuousLinearMap.inr ℝ ℝ ShellEuclideanDomain)) euclideanShellJointDomain := + hc.clm_comp continuous_const.continuousOn + exact hcomp.congr (fun q hq => euclideanLorentzShellChart_partial_derivative Λ hq) + +theorem continuousOn_inducedShellChartDensity_joint (Λ : Spacetime ≃L[ℝ] Spacetime) : + ContinuousOn (fun q : ℝ × ShellEuclideanDomain => inducedShellChartDensity q.1 Λ q.2) + euclideanShellJointDomain := + continuous_shellDerivativeDensity.comp_continuousOn + (continuousOn_euclideanLorentzShellChart_partial_derivative Λ) + +/-- Uniform positive finite density bounds on compact mass-coordinate +families, with no restriction excluding zero mass. -/ +theorem inducedShellChartDensity_joint_compact_bounds (Λ : Spacetime ≃L[ℝ] Spacetime) + {K : Set (ℝ × ShellEuclideanDomain)} (hK : IsCompact K) + (hsub : K ⊆ euclideanShellJointDomain) : + ∃ c C : ℝ, 0 < c ∧ 0 < C ∧ + ∀ q ∈ K, c ≤ inducedShellChartDensity q.1 Λ q.2 ∧ + inducedShellChartDensity q.1 Λ q.2 ≤ C := by + have hc := (continuousOn_inducedShellChartDensity_joint Λ).mono hsub + obtain ⟨c, hcpos, hclower⟩ := hK.exists_forall_le' hc + (fun q hq => inducedShellChartDensity_pos Λ (hsub hq)) + obtain ⟨C, hC⟩ := hK.bddAbove_image hc + refine ⟨c, max 1 C, hcpos, lt_of_lt_of_le (by norm_num) (le_max_left _ _), ?_⟩ + intro q hq + exact ⟨hclower q hq, (hC (Set.mem_image_of_mem _ hq)).trans (le_max_right _ _)⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/InducedShellPatchCoordinates.lean b/LeanPool/VacuumBellSeparation/Shell/InducedShellPatchCoordinates.lean new file mode 100644 index 0000000000..75cf854c00 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/InducedShellPatchCoordinates.lean @@ -0,0 +1,136 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeCompatibility +public import Mathlib.MeasureTheory.Integral.IntegrableOn + +/-! +# Actual shell-valued coordinate maps and their open patches + +These maps take values in the original complex shell. Their domains +carry the genuine six-dimensional Euclidean metric used by the Gram +density. Only continuity on the regular chart domain is needed; no +global continuity of the principal complex square root is asserted. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set + +/-- Shell patch point. -/ +noncomputable def shellPatchPoint (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (w : ShellEuclideanDomain) : complexShell m := + ⟨lorentzComplexShellChart m Λ (shellEuclideanCoordinates w), + complexifiedSpacetimeMap_mem_shell Λ hΛ (complexShellChart_mem_shell m _)⟩ + +/-- Shell patch coordinates defined as `shellEuclideanCoordinates.symm +(lorentzComplexShellCoordinates Λ z.1)`. -/ +noncomputable def shellPatchCoordinates {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) (z : complexShell m) : ShellEuclideanDomain := + shellEuclideanCoordinates.symm (lorentzComplexShellCoordinates Λ z.1) + +/-- Set of points satisfying the induced shell patch condition with membership specified by `{z | 0 +< ((complexifiedSpacetimeMap Λ.symm z.1).2 1).re ∧ shellPatchCoordinates Λ z ∈ +euclideanShellChartDomain m}`. -/ +def inducedShellPatch (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) : Set (complexShell m) := + {z | 0 < ((complexifiedSpacetimeMap Λ.symm z.1).2 1).re ∧ + shellPatchCoordinates Λ z ∈ euclideanShellChartDomain m} + +theorem continuous_shellPatchCoordinates {m : ℝ} (Λ : Spacetime ≃L[ℝ] Spacetime) : + Continuous (shellPatchCoordinates (m := m) Λ) := by + exact shellEuclideanCoordinates.symm.continuous.comp + ((lorentzComplexShellCoordinates Λ).continuous.comp continuous_subtype_val) + +theorem isOpen_inducedShellPatch (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) : + IsOpen (inducedShellPatch m Λ) := by + change IsOpen ({z : complexShell m | 0 < ((complexifiedSpacetimeMap Λ.symm z.1).2 1).re} ∩ + shellPatchCoordinates Λ ⁻¹' euclideanShellChartDomain m) + exact (isOpen_lt continuous_const (by fun_prop)).inter + ((isOpen_euclideanShellChartDomain m).preimage (continuous_shellPatchCoordinates Λ)) + +theorem shellPatchCoordinates_point (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) (w : ShellEuclideanDomain) : + shellPatchCoordinates Λ (shellPatchPoint m Λ hΛ w) = w := by + simp only [shellPatchCoordinates, shellPatchPoint, lorentzComplexShellCoordinates_chart, + ContinuousLinearEquiv.symm_apply_apply] + +theorem shellPatchPoint_coordinates {m : ℝ} (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) {z : complexShell m} (hz : z ∈ inducedShellPatch m Λ) : + shellPatchPoint m Λ hΛ (shellPatchCoordinates Λ z) = z := by + apply Subtype.ext + simpa only [shellPatchPoint, shellPatchCoordinates, ContinuousLinearEquiv.apply_symm_apply] + using lorentzComplexShellChart_reconstruct Λ hΛ z.2 hz.1 + +theorem shellPatchPoint_mem {m : ℝ} (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) {w : ShellEuclideanDomain} + (hw : w ∈ euclideanShellChartDomain m) : + shellPatchPoint m Λ hΛ w ∈ inducedShellPatch m Λ := by + constructor + · change 0 < ((complexifiedSpacetimeMap Λ.symm + (complexifiedSpacetimeMap Λ (complexShellChart m (shellEuclideanCoordinates w)))).2 1).re + rw [complexifiedSpacetimeMap_inverse] + exact complexShellChart_second_re_pos hw + · simpa only [shellPatchCoordinates_point] using hw + +theorem shellPatchPoint_image_domain (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) : + shellPatchPoint m Λ hΛ '' euclideanShellChartDomain m = inducedShellPatch m Λ := by + ext z + constructor + · rintro ⟨w, hw, rfl⟩ + exact shellPatchPoint_mem Λ hΛ hw + · intro hz + exact ⟨shellPatchCoordinates Λ z, hz.2, shellPatchPoint_coordinates Λ hΛ hz⟩ + +theorem continuousOn_shellPatchPoint (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) : + ContinuousOn (shellPatchPoint m Λ hΛ) (euclideanShellChartDomain m) := by + apply Topology.IsInducing.subtypeVal.continuousOn_iff.mpr + intro w hw + exact ((differentiableAt_lorentzComplexShellChart Λ hw).comp w + shellEuclideanCoordinates.differentiableAt).continuousAt.continuousWithinAt + +theorem measurableSet_shellPatch_preimage {m : ℝ} (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) {s : Set (complexShell m)} (hs : MeasurableSet s) : + MeasurableSet ((shellPatchPoint m Λ hΛ ⁻¹' s) ∩ euclideanShellChartDomain m) := by + have hD := (isOpen_euclideanShellChartDomain m).measurableSet + have hf := (continuousOn_iff_continuous_domRestrict.mp + (continuousOn_shellPatchPoint m Λ hΛ)).measurable + have hm := (MeasurableEmbedding.subtype_coe hD).measurableSet_image' (hf hs) + convert hm using 1 + ext w + simp only [mem_inter_iff, mem_preimage, mem_image, Subtype.exists] + constructor + · rintro ⟨hw, hD⟩ + exact ⟨w, hD, hw, rfl⟩ + · rintro ⟨x, hx, hsx, rfl⟩ + exact ⟨hsx, hx⟩ + +theorem shellPatchCoordinates_point_transition (m : ℝ) + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + (w : ShellEuclideanDomain) : + shellPatchCoordinates Γ (shellPatchPoint m Λ hΛ w) = + euclideanShellChartTransition m Λ Γ w := by + simp only [shellPatchCoordinates, shellPatchPoint, euclideanShellChartTransition, + euclideanLorentzShellCoordinates, euclideanLorentzShellChart, + ContinuousLinearMap.comp_apply, ContinuousLinearEquiv.coe_coe, + ContinuousLinearEquiv.symm_apply_apply] + +theorem shellPatch_preimage_patch (m : ℝ) (Λ Γ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) : + (shellPatchPoint m Λ hΛ ⁻¹' inducedShellPatch m Γ) ∩ euclideanShellChartDomain m = + euclideanShellChartOverlap m Λ Γ := by + ext w + simp only [mem_inter_iff, mem_preimage, inducedShellPatch, mem_ofPred_eq, + euclideanShellChartOverlap, + euclideanShellOverlapSign, shellPatchPoint] + tauto + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/InducedShellPatchMeasure.lean b/LeanPool/VacuumBellSeparation/Shell/InducedShellPatchMeasure.lean new file mode 100644 index 0000000000..f463b5f6cf --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/InducedShellPatchMeasure.lean @@ -0,0 +1,125 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellPatchCoordinates + +/-! +# Genuine pushforward measures on the original complex shell + +Every chart measure is the pushforward of the actual Euclidean Gram +density. Its support and pairwise restriction compatibility are proved +from the chart reconstruction and the real Jacobian theorem. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set + +theorem aemeasurable_shellPatchPoint (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) : + AEMeasurable (shellPatchPoint m Λ hΛ) (inducedShellCoordinateVolume m Λ) := by + exact (continuousOn_shellPatchPoint m Λ hΛ).aemeasurable + (isOpen_euclideanShellChartDomain m).measurableSet + +/-- Induced shell patch volume defined as `Measure.map (shellPatchPoint m Λ hΛ) +(inducedShellCoordinateVolume m Λ)`. -/ +noncomputable def inducedShellPatchVolume (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) : Measure (complexShell m) := + Measure.map (shellPatchPoint m Λ hΛ) (inducedShellCoordinateVolume m Λ) + +theorem inducedShellPatchVolume_apply {m : ℝ} (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) {s : Set (complexShell m)} (hs : MeasurableSet s) : + inducedShellPatchVolume m Λ hΛ s = inducedShellCoordinateVolume m Λ + ((shellPatchPoint m Λ hΛ ⁻¹' s) ∩ euclideanShellChartDomain m) := by + rw [inducedShellPatchVolume, + Measure.map_apply_of_aemeasurable (aemeasurable_shellPatchPoint m Λ hΛ) hs] + unfold inducedShellCoordinateVolume + rw [Measure.restrict_apply' (isOpen_euclideanShellChartDomain m).measurableSet, + Measure.restrict_apply' (isOpen_euclideanShellChartDomain m).measurableSet] + simp only [inter_assoc, inter_self] + +theorem inducedShellPatchVolume_supported (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (hΛ : IsLorentzMap Λ) : + (inducedShellPatchVolume m Λ hΛ).restrict (inducedShellPatch m Λ) = + inducedShellPatchVolume m Λ hΛ := by + ext s hs + rw [Measure.restrict_apply hs, + inducedShellPatchVolume_apply Λ hΛ + (hs.inter (isOpen_inducedShellPatch m Λ).measurableSet), + inducedShellPatchVolume_apply Λ hΛ hs] + congr 1 + ext w + constructor + · exact fun hw => ⟨hw.1.1, hw.2⟩ + · exact fun hw => ⟨⟨hw.1, shellPatchPoint_mem Λ hΛ hw.2⟩, hw.2⟩ + +theorem shellPatchPoint_transition {m : ℝ} + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) (hΓ : IsLorentzMap Γ) + {w : ShellEuclideanDomain} (hw : w ∈ euclideanShellChartOverlap m Λ Γ) : + shellPatchPoint m Γ hΓ (euclideanShellChartTransition m Λ Γ w) = + shellPatchPoint m Λ hΛ w := by + apply Subtype.ext + apply complexSpacetimeEuclideanEquiv.injective + exact euclideanShellChartTransition_reconstruct Λ Γ hΛ hΓ hw + +theorem shellPatchTransition_image_preimage {m : ℝ} + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) (hΓ : IsLorentzMap Γ) + (s : Set (complexShell m)) : + euclideanShellChartTransition m Λ Γ '' + ((shellPatchPoint m Λ hΛ ⁻¹' (s ∩ inducedShellPatch m Γ)) ∩ + euclideanShellChartDomain m) = + ((shellPatchPoint m Γ hΓ ⁻¹' (s ∩ inducedShellPatch m Λ)) ∩ + euclideanShellChartDomain m) := by + ext y + constructor + · rintro ⟨x, hx, rfl⟩ + have ho : x ∈ euclideanShellChartOverlap m Λ Γ := by + rw [← shellPatch_preimage_patch m Λ Γ hΛ] + exact ⟨hx.1.2, hx.2⟩ + change (shellPatchPoint m Γ hΓ (euclideanShellChartTransition m Λ Γ x) ∈ + s ∩ inducedShellPatch m Λ) ∧ _ + rw [shellPatchPoint_transition Λ Γ hΛ hΓ ho] + exact ⟨⟨hx.1.1, shellPatchPoint_mem Λ hΛ hx.2⟩, ho.2.1⟩ + · intro hy + let x := shellPatchCoordinates Λ (shellPatchPoint m Γ hΓ y) + have hxD : x ∈ euclideanShellChartDomain m := hy.1.2.2 + have hx : shellPatchPoint m Λ hΛ x = shellPatchPoint m Γ hΓ y := + shellPatchPoint_coordinates Λ hΛ hy.1.2 + refine ⟨x, ⟨?_, hxD⟩, ?_⟩ + · change shellPatchPoint m Λ hΛ x ∈ s ∩ inducedShellPatch m Γ + rw [hx] + exact ⟨hy.1.1, shellPatchPoint_mem Γ hΓ hy.2⟩ + · rw [← shellPatchCoordinates_point_transition m Λ Γ hΛ, hx, + shellPatchCoordinates_point] + +/-- The two actual shell measures have the same restriction to their +common patch. The compatibility is derived, not assumed as atlas data. -/ +theorem inducedShellPatchVolume_compatible (m : ℝ) + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) (hΓ : IsLorentzMap Γ) : + (inducedShellPatchVolume m Λ hΛ).restrict (inducedShellPatch m Γ) = + (inducedShellPatchVolume m Γ hΓ).restrict (inducedShellPatch m Λ) := by + ext s hs + rw [Measure.restrict_apply hs, Measure.restrict_apply hs, + inducedShellPatchVolume_apply Λ hΛ + (hs.inter (isOpen_inducedShellPatch m Γ).measurableSet), + inducedShellPatchVolume_apply Γ hΓ + (hs.inter (isOpen_inducedShellPatch m Λ).measurableSet)] + have hp := measurableSet_shellPatch_preimage Λ hΛ + (hs.inter (isOpen_inducedShellPatch m Γ).measurableSet) + have hsub : ((shellPatchPoint m Λ hΛ ⁻¹' (s ∩ inducedShellPatch m Γ)) ∩ + euclideanShellChartDomain m) ⊆ euclideanShellChartOverlap m Λ Γ := by + intro w hw + rw [← shellPatch_preimage_patch m Λ Γ hΛ] + exact ⟨hw.1.2, hw.2⟩ + have h := inducedShellCoordinateVolume_overlap Λ Γ hΛ hΓ hp hsub + rw [shellPatchTransition_image_preimage Λ Γ hΛ hΓ s] at h + exact h.symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/InducedShellVolumeBounds.lean b/LeanPool/VacuumBellSeparation/Shell/InducedShellVolumeBounds.lean new file mode 100644 index 0000000000..0108833010 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/InducedShellVolumeBounds.lean @@ -0,0 +1,103 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellGramDensity +public import Mathlib.Analysis.Complex.CauchyIntegral +public import Mathlib.Analysis.Calculus.ContDiff.Operations +public import Mathlib.Topology.Order.Compact + +/-! +# Positive continuous chart density and actual compact patch bounds + +Complex C1 regularity of the principal-root chart is restricted to real +scalars before taking its six-dimensional derivative. The resulting +Gram density has positive lower and finite upper bounds on every +compact subset of the actual chart domain. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped Topology + +theorem contDiffOn_complexShellChart (m : ℝ) : + ContDiffOn ℂ 1 (complexShellChart m) (complexShellChartDomain m) := by + have hr : ContDiff ℂ 1 (complexShellRadicand m) := by + unfold complexShellRadicand + fun_prop + have hs : ContDiffOn ℂ 1 Complex.sqrt Complex.slitPlane := + Complex.differentiableOn_sqrt.contDiffOn Complex.isOpen_slitPlane + have hcomp : ContDiffOn ℂ 1 (fun w => Complex.sqrt (complexShellRadicand m w)) + (complexShellChartDomain m) := + hs.comp hr.contDiffOn (fun _ hw => Complex.mem_slitPlane_iff.mpr (Or.inl hw)) + apply ContDiffOn.prodMk + · exact (ContinuousLinearMap.proj (0 : Fin 3) : (Fin 3 → ℂ) →L[ℂ] ℂ).contDiff.contDiffOn + · apply contDiffOn_pi.mpr + intro i + fin_cases i + · exact (ContinuousLinearMap.proj (1 : Fin 3) : (Fin 3 → ℂ) →L[ℂ] ℂ).contDiff.contDiffOn + · exact hcomp + · exact (ContinuousLinearMap.proj (2 : Fin 3) : (Fin 3 → ℂ) →L[ℂ] ℂ).contDiff.contDiffOn + +theorem contDiffOn_lorentzComplexShellChart (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) : + ContDiffOn ℂ 1 (lorentzComplexShellChart m Λ) (complexShellChartDomain m) := + (complexifiedSpacetimeMap Λ).contDiff.comp_contDiffOn (contDiffOn_complexShellChart m) + +theorem contDiffOn_euclideanLorentzShellChart_complex + (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) : + ContDiffOn ℂ 1 (euclideanLorentzShellChart m Λ) (euclideanShellChartDomain m) := + complexSpacetimeEuclideanEquiv.contDiff.comp_contDiffOn + ((contDiffOn_lorentzComplexShellChart m Λ).comp + shellEuclideanCoordinates.contDiff.contDiffOn (fun _ hw => hw)) + +theorem contDiffOn_euclideanLorentzShellChart_real + (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) : + ContDiffOn ℝ 1 (euclideanLorentzShellChart m Λ) (euclideanShellChartDomain m) := + (contDiffOn_euclideanLorentzShellChart_complex m Λ).restrict_scalars ℝ + +theorem continuousOn_euclideanLorentzShellChart_real_derivative + (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) : + ContinuousOn (fderiv ℝ (euclideanLorentzShellChart m Λ)) (euclideanShellChartDomain m) := + (contDiffOn_euclideanLorentzShellChart_real m Λ).continuousOn_fderiv_of_isOpen + (isOpen_euclideanShellChartDomain m) le_rfl + +theorem continuousOn_inducedShellChartDensity (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) : + ContinuousOn (inducedShellChartDensity m Λ) (euclideanShellChartDomain m) := + continuous_shellDerivativeDensity.comp_continuousOn + (continuousOn_euclideanLorentzShellChart_real_derivative m Λ) + +theorem inducedShellChartDensity_compact_bounds (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) {K : Set ShellEuclideanDomain} + (hK : IsCompact K) (hsub : K ⊆ euclideanShellChartDomain m) : + ∃ c C : ℝ, 0 < c ∧ 0 < C ∧ + ∀ w ∈ K, c ≤ inducedShellChartDensity m Λ w ∧ inducedShellChartDensity m Λ w ≤ C := by + have hc := (continuousOn_inducedShellChartDensity m Λ).mono hsub + obtain ⟨c, hcpos, hclower⟩ := hK.exists_forall_le' hc + (fun w hw => inducedShellChartDensity_pos Λ (hsub hw)) + obtain ⟨C, hC⟩ := hK.bddAbove_image hc + refine ⟨c, max 1 C, hcpos, lt_of_lt_of_le (by norm_num) (le_max_left _ _), ?_⟩ + intro w hw + exact ⟨hclower w hw, (hC (Set.mem_image_of_mem _ hw)).trans (le_max_right _ _)⟩ + +/-- Every actual regular shell chart point has a closed Euclidean ball +with positive lower and finite upper density bounds. -/ +theorem inducedShellChartDensity_local_bounds {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {w : ShellEuclideanDomain} + (hw : w ∈ euclideanShellChartDomain m) : + ∃ ε c C : ℝ, 0 < ε ∧ 0 < c ∧ 0 < C ∧ + Metric.closedBall w ε ⊆ euclideanShellChartDomain m ∧ + ∀ x ∈ Metric.closedBall w ε, + c ≤ inducedShellChartDensity m Λ x ∧ inducedShellChartDensity m Λ x ≤ C := by + obtain ⟨ε, hε, hsub⟩ := Metric.nhds_basis_closedBall.mem_iff.mp + ((isOpen_euclideanShellChartDomain m).mem_nhds hw) + obtain ⟨c, C, hc, hC, hb⟩ := inducedShellChartDensity_compact_bounds m Λ + (isCompact_closedBall w ε) hsub + exact ⟨ε, c, C, hε, hc, hC, hsub, hb⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/InducedShellVolumeCompatibility.lean b/LeanPool/VacuumBellSeparation/Shell/InducedShellVolumeCompatibility.lean new file mode 100644 index 0000000000..2973d9211b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/InducedShellVolumeCompatibility.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellChartOverlap +public import Mathlib.MeasureTheory.Function.Jacobian + +/-! +# Change of coordinates for the Euclidean induced shell volume + +The actual positive Gram density defines a coordinate measure on each +regular shell chart. The pinned real change-of-variables theorem proves +compatibility of all nonnegative weighted integrals on the literal +overlap. Thus this is a coordinate-independent Riemannian-volume +construction at the chart level, without assuming a nonlinear ambient +Hausdorff area formula. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +/-- Induced shell coordinate volume. -/ +noncomputable def inducedShellCoordinateVolume (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) : Measure ShellEuclideanDomain := + (volume.withDensity (fun w => ENNReal.ofReal (inducedShellChartDensity m Λ w))).restrict + (euclideanShellChartDomain m) + +theorem inducedShellCoordinateVolume_apply {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {s : Set ShellEuclideanDomain} + (hs : MeasurableSet s) (hsub : s ⊆ euclideanShellChartDomain m) : + inducedShellCoordinateVolume m Λ s = + ∫⁻ w in s, ENNReal.ofReal (inducedShellChartDensity m Λ w) := by + rw [inducedShellCoordinateVolume, Measure.restrict_apply hs, + Set.inter_eq_left.mpr hsub, withDensity_apply _ hs] + +theorem inducedShellCoordinateVolume_bounds {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {s : Set ShellEuclideanDomain} + (hs : MeasurableSet s) (hsub : s ⊆ euclideanShellChartDomain m) + {c C : ℝ} (hb : ∀ w ∈ s, + c ≤ inducedShellChartDensity m Λ w ∧ inducedShellChartDensity m Λ w ≤ C) : + ENNReal.ofReal c * volume s ≤ inducedShellCoordinateVolume m Λ s ∧ + inducedShellCoordinateVolume m Λ s ≤ ENNReal.ofReal C * volume s := by + rw [inducedShellCoordinateVolume_apply Λ hs hsub] + constructor + · have h := setLIntegral_mono' (μ := volume) hs + (fun w hw => ENNReal.ofReal_le_ofReal (hb w hw).1) + simpa only [lintegral_const, Measure.restrict_apply_univ] using h + · have h := setLIntegral_mono' (μ := volume) hs + (fun w hw => ENNReal.ofReal_le_ofReal (hb w hw).2) + simpa only [lintegral_const, Measure.restrict_apply_univ] using h + +/-- All nonnegative ambient weights have equal integrals in the two +actual coordinates of an overlap; no measurability or finiteness of +the weight is needed by the pinned change-of-variables theorem. -/ +theorem inducedShellChart_weighted_overlap {m : ℝ} + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) (hΓ : IsLorentzMap Γ) + {s : Set ShellEuclideanDomain} (hs : MeasurableSet s) + (hsub : s ⊆ euclideanShellChartOverlap m Λ Γ) (g : ShellEuclideanAmbient → ℝ≥0∞) : + (∫⁻ y in euclideanShellChartTransition m Λ Γ '' s, + ENNReal.ofReal (inducedShellChartDensity m Γ y) * g (euclideanLorentzShellChart m Γ y)) = + ∫⁻ x in s, ENNReal.ofReal (inducedShellChartDensity m Λ x) * + g (euclideanLorentzShellChart m Λ x) := by + rw [lintegral_image_eq_lintegral_abs_det_fderiv_mul volume hs + (fun x hx => (differentiableAt_euclideanShellChartTransition Λ Γ + (hsub hx).1).hasFDerivAt.hasFDerivWithinAt) + ((euclideanShellChartTransition_injOn Λ Γ hΛ hΓ).mono hsub)] + apply setLIntegral_congr_fun hs + intro x hx + dsimp only + rw [euclideanShellChartTransition_reconstruct Λ Γ hΛ hΓ (hsub hx), + inducedShellChartDensity_transition Λ Γ hΛ hΓ (hsub hx), + ENNReal.ofReal_mul' (abs_nonneg _)] + ac_rfl + +theorem inducedShellCoordinateVolume_overlap {m : ℝ} + (Λ Γ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) (hΓ : IsLorentzMap Γ) + {s : Set ShellEuclideanDomain} (hs : MeasurableSet s) + (hsub : s ⊆ euclideanShellChartOverlap m Λ Γ) : + inducedShellCoordinateVolume m Γ (euclideanShellChartTransition m Λ Γ '' s) = + inducedShellCoordinateVolume m Λ s := by + have him : MeasurableSet (euclideanShellChartTransition m Λ Γ '' s) := + measurable_image_of_fderivWithin hs + (fun x hx => (differentiableAt_euclideanShellChartTransition Λ Γ + (hsub hx).1).hasFDerivAt.hasFDerivWithinAt) + ((euclideanShellChartTransition_injOn Λ Γ hΛ hΓ).mono hsub) + have hi : euclideanShellChartTransition m Λ Γ '' s ⊆ euclideanShellChartDomain m := by + rintro _ ⟨x, hx, rfl⟩ + exact (hsub hx).2.1 + rw [inducedShellCoordinateVolume_apply Γ him hi, + inducedShellCoordinateVolume_apply Λ hs (fun x hx => (hsub hx).1)] + simpa only [mul_one] using inducedShellChart_weighted_overlap Λ Γ hΛ hΓ hs hsub (fun _ => 1) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/InducedShellVolumeCoordinates.lean b/LeanPool/VacuumBellSeparation/Shell/InducedShellVolumeCoordinates.lean new file mode 100644 index 0000000000..884de97b12 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/InducedShellVolumeCoordinates.lean @@ -0,0 +1,134 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ComplexShellLocalChart +public import Mathlib.Analysis.InnerProductSpace.NormDet +public import Mathlib.Analysis.Calculus.FDeriv.RestrictScalars + +/-! +# Genuine Euclidean carriers for shell chart volumes + +The ambient norm is the Euclidean norm on four complex coordinates, +hence eight real coordinates. The chart domain is three complex +Euclidean coordinates, hence six real coordinates. We transport the +actual shell chart through continuous linear equivalences; no product +maximum norm is used as an induced Euclidean metric. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Shell Euclidean domain with underlying type `EuclideanSpace ℂ (Fin 3) abbrev +ShellEuclideanAmbient : Type := EuclideanSpace ℂ (Fin 4)`. -/ +abbrev ShellEuclideanDomain : Type := EuclideanSpace ℂ (Fin 3) +/-- Shell Euclidean ambient with underlying type `EuclideanSpace ℂ (Fin 4)`. -/ +abbrev ShellEuclideanAmbient : Type := EuclideanSpace ℂ (Fin 4) + +/-- Linear equivalence between complex spacetime and a time coordinate followed by three spatial +coordinates. -/ +noncomputable def complexSpacetimeCoordinateEquiv : + ComplexSpacetime ≃ₗ[ℂ] (Fin 4 → ℂ) where + toFun z := Fin.cons z.1 z.2 + invFun z := (z 0, Fin.tail z) + left_inv z := rfl + right_inv z := Fin.cons_self_tail z + map_add' z w := by ext i; fin_cases i <;> rfl + map_smul' a z := by ext i; fin_cases i <;> rfl + +/-- Complex spacetime Euclidean equivalence of type `ComplexSpacetime ≃L[ℂ] +ShellEuclideanAmbient`. -/ +noncomputable def complexSpacetimeEuclideanEquiv : + ComplexSpacetime ≃L[ℂ] ShellEuclideanAmbient := + complexSpacetimeCoordinateEquiv.toContinuousLinearEquiv.trans + (PiLp.continuousLinearEquiv 2 ℂ (fun _ : Fin 4 => ℂ)).symm + +/-- Shell Euclidean coordinates given by `PiLp.continuousLinearEquiv 2 ℂ (fun _ : Fin 3 => ℂ)`. -/ +noncomputable def shellEuclideanCoordinates : + ShellEuclideanDomain ≃L[ℂ] (Fin 3 → ℂ) := + PiLp.continuousLinearEquiv 2 ℂ (fun _ : Fin 3 => ℂ) + +theorem complexSpacetimeEuclideanEquiv_norm_sq (z : ComplexSpacetime) : + ‖complexSpacetimeEuclideanEquiv z‖ ^ 2 = euclidSq z := by + rw [EuclideanSpace.norm_sq_eq, Fin.sum_univ_succ] + rfl + +theorem shellEuclideanDomain_real_finrank : Module.finrank ℝ ShellEuclideanDomain = 6 := by + rw [finrank_real_of_complex] + simp [ShellEuclideanDomain] + +theorem shellEuclideanAmbient_real_finrank : Module.finrank ℝ ShellEuclideanAmbient = 8 := by + rw [finrank_real_of_complex] + simp [ShellEuclideanAmbient] + +/-- Euclidean Lorentz shell chart defined as `complexSpacetimeEuclideanEquiv +(lorentzComplexShellChart m Λ (shellEuclideanCoordinates w))`. -/ +noncomputable def euclideanLorentzShellChart (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (w : ShellEuclideanDomain) : ShellEuclideanAmbient := + complexSpacetimeEuclideanEquiv + (lorentzComplexShellChart m Λ (shellEuclideanCoordinates w)) + +/-- Euclidean shell chart domain defined as `shellEuclideanCoordinates ⁻¹' complexShellChartDomain +m`. -/ +noncomputable def euclideanShellChartDomain (m : ℝ) : Set ShellEuclideanDomain := + shellEuclideanCoordinates ⁻¹' complexShellChartDomain m + +theorem isOpen_euclideanShellChartDomain (m : ℝ) : IsOpen (euclideanShellChartDomain m) := + (isOpen_complexShellChartDomain m).preimage shellEuclideanCoordinates.continuous + +/-- Continuous linear map for the euclidean Lorentz shell coordinates, of type +`ShellEuclideanAmbient →L[ℂ] ShellEuclideanDomain`. -/ +noncomputable def euclideanLorentzShellCoordinates (Λ : Spacetime ≃L[ℝ] Spacetime) : + ShellEuclideanAmbient →L[ℂ] ShellEuclideanDomain := + shellEuclideanCoordinates.symm.toContinuousLinearMap.comp + ((lorentzComplexShellCoordinates Λ).comp + complexSpacetimeEuclideanEquiv.symm.toContinuousLinearMap) + +theorem euclideanLorentzShellCoordinates_chart (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (w : ShellEuclideanDomain) : + euclideanLorentzShellCoordinates Λ (euclideanLorentzShellChart m Λ w) = w := by + simp only [euclideanLorentzShellCoordinates, euclideanLorentzShellChart, + ContinuousLinearMap.comp_apply, ContinuousLinearEquiv.coe_coe, + ContinuousLinearEquiv.symm_apply_apply, lorentzComplexShellCoordinates_chart] + +theorem differentiableAt_euclideanLorentzShellChart {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {w : ShellEuclideanDomain} + (hw : w ∈ euclideanShellChartDomain m) : + DifferentiableAt ℂ (euclideanLorentzShellChart m Λ) w := + complexSpacetimeEuclideanEquiv.differentiableAt.comp w + ((differentiableAt_lorentzComplexShellChart Λ hw).comp w + shellEuclideanCoordinates.differentiableAt) + +theorem euclideanLorentzShellChart_real_derivative_left_inverse {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {w : ShellEuclideanDomain} + (hw : w ∈ euclideanShellChartDomain m) : + ((euclideanLorentzShellCoordinates Λ).restrictScalars ℝ).comp + (fderiv ℝ (euclideanLorentzShellChart m Λ) w) = + ContinuousLinearMap.id ℝ ShellEuclideanDomain := by + have hd := ((differentiableAt_euclideanLorentzShellChart Λ hw).restrictScalars ℝ).hasFDerivAt + have h := ((euclideanLorentzShellCoordinates Λ).hasFDerivAt.restrictScalars ℝ).comp w hd + have he : (fun z => euclideanLorentzShellCoordinates Λ (euclideanLorentzShellChart m Λ z)) = id := + funext (euclideanLorentzShellCoordinates_chart m Λ) + simp only [Function.comp_def] at h + rw [he] at h + exact h.unique (hasFDerivAt_id w) + +theorem euclideanLorentzShellChart_real_derivative_injective {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {w : ShellEuclideanDomain} + (hw : w ∈ euclideanShellChartDomain m) : + Function.Injective (fderiv ℝ (euclideanLorentzShellChart m Λ) w) := by + intro x y hxy + have h := congrArg (euclideanLorentzShellCoordinates Λ) hxy + change (((euclideanLorentzShellCoordinates Λ).restrictScalars ℝ).comp + (fderiv ℝ (euclideanLorentzShellChart m Λ) w)) x = + (((euclideanLorentzShellCoordinates Λ).restrictScalars ℝ).comp + (fderiv ℝ (euclideanLorentzShellChart m Λ) w)) y at h + simpa only [euclideanLorentzShellChart_real_derivative_left_inverse Λ hw, + ContinuousLinearMap.id_apply] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/LocalHolomorphicVolumeSubmean.lean b/LeanPool/VacuumBellSeparation/Shell/LocalHolomorphicVolumeSubmean.lean new file mode 100644 index 0000000000..1667684688 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/LocalHolomorphicVolumeSubmean.lean @@ -0,0 +1,51 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.EuclideanShellSubmean + +/-! +# Local holomorphic submean without global chart regularity + +A chart expression need only be holomorphic on its actual open domain. +Its zero extension is measurable and agrees locally, so the genuine +Euclidean volume estimate requires no global principal-root continuity. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Metric Set Filter +open scoped ENNReal Topology + +theorem local_shellEuclidean_submean_sq {D : Set ShellEuclideanDomain} (hD : IsOpen D) + (F : ShellEuclideanDomain → ℂ) + (hF : ∀ w ∈ D, DifferentiableAt ℂ F w) + {c : ShellEuclideanDomain} {R : ℝ} (hR : 0 < R) + (hsub : ball c (2 * R) ⊆ D) : + ENNReal.ofReal (‖F c‖ ^ 2) * volume (ball (0 : ℂ) R) ^ 3 ≤ + ∫⁻ w in ball c (2 * R), ENNReal.ofReal (‖F w‖ ^ 2) := by + classical + let G : ShellEuclideanDomain → ℂ := D.piecewise F (fun _ => 0) + have hcont : ContinuousOn F D := fun w hw => (hF w hw).continuousAt.continuousWithinAt + have hm : Measurable G := hcont.measurable_piecewise continuousOn_const hD.measurableSet + have hlocal (w : ShellEuclideanDomain) (hw : w ∈ D) : G =ᶠ[𝓝 w] F := by + filter_upwards [hD.mem_nhds hw] with x hx + exact Set.piecewise_eq_of_mem D F (fun _ => 0) hx + have hc : c ∈ D := hsub (mem_ball_self (by positivity)) + have hs := shellEuclidean_ball_submean_sq hR G hm c + (fun w hw => (hF w (hsub hw)).congr_of_eventuallyEq (hlocal w (hsub hw))) + have hGc : G c = F c := Set.piecewise_eq_of_mem D F (fun _ => 0) hc + rw [hGc] at hs + convert hs using 1 + apply setLIntegral_congr_fun measurableSet_ball + intro w hw + dsimp only + rw [show G w = F w from Set.piecewise_eq_of_mem D F (fun _ => 0) (hsub hw)] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/LocalInducedVolumeComparison.lean b/LeanPool/VacuumBellSeparation/Shell/LocalInducedVolumeComparison.lean new file mode 100644 index 0000000000..17f4e79dd1 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/LocalInducedVolumeComparison.lean @@ -0,0 +1,112 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedRegularShellVolume +public import LeanPool.VacuumBellSeparation.Shell.ComplexEuclideanVolume +public import LeanPool.VacuumBellSeparation.Shell.MeasurableContourWeights +public import LeanPool.VacuumBellSeparation.FreeField.WeightedShellEvaluationSubmean + +/-! +# Actual local shell volume bounded by flat chart integrals + +The upper Gram-density bound has the direction needed for contour +domination. Both measures are the genuine six-dimensional measures; +the complex Euclidean coordinate transport preserves volume exactly. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped ENNReal + +/-- Regular shell coordinate patch defined as `inducedShellPatch m Λ ∩ shellPatchCoordinates Λ ⁻¹' +s`. -/ +noncomputable def regularShellCoordinatePatch (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (s : Set ShellEuclideanDomain) : Set (complexShell m) := + inducedShellPatch m Λ ∩ shellPatchCoordinates Λ ⁻¹' s + +theorem measurableSet_regularShellCoordinatePatch (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) {s : Set ShellEuclideanDomain} + (hs : MeasurableSet s) : MeasurableSet (regularShellCoordinatePatch m Λ s) := + (isOpen_inducedShellPatch m Λ).measurableSet.inter + (hs.preimage (continuous_shellPatchCoordinates Λ).measurable) + +theorem isOpen_regularShellCoordinatePatch (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) {s : Set ShellEuclideanDomain} + (hs : IsOpen s) : IsOpen (regularShellCoordinatePatch m Λ s) := + (isOpen_inducedShellPatch m Λ).inter + (hs.preimage (continuous_shellPatchCoordinates Λ)) + +theorem inducedRegularShellVolume_restrict_coordinatePatch {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + {s : Set ShellEuclideanDomain} (hs : MeasurableSet s) + (hsub : s ⊆ euclideanShellChartDomain m) : + (inducedRegularShellVolume m).restrict (regularShellCoordinatePatch m Λ s) = + Measure.map (shellPatchPoint m Λ hΛ) ((inducedShellCoordinateVolume m Λ).restrict s) := by + ext t ht + rw [Measure.restrict_apply ht, + inducedRegularShellVolume_apply_in_chart Λ hΛ + (ht.inter (measurableSet_regularShellCoordinatePatch m Λ hs)) + (fun _ hz => hz.2.1), + Measure.map_apply_of_aemeasurable (aemeasurable_shellPatchPoint m Λ hΛ).restrict ht, + Measure.restrict_apply' hs] + congr 1 + ext w + simp only [mem_inter_iff, mem_preimage, regularShellCoordinatePatch, + shellPatchCoordinates_point] + constructor + · rintro ⟨⟨htw, _, hsw⟩, _⟩ + exact ⟨htw, hsw⟩ + · rintro ⟨htw, hsw⟩ + exact ⟨⟨htw, shellPatchPoint_mem Λ hΛ (hsub hsw), hsw⟩, hsub hsw⟩ + +theorem inducedRegularShellVolume_coordinatePatch_lintegral {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + {s : Set ShellEuclideanDomain} (hs : MeasurableSet s) + (hsub : s ⊆ euclideanShellChartDomain m) + {F : ComplexSpacetime → ℝ≥0∞} (hF : Measurable F) : + (∫⁻ z in regularShellCoordinatePatch m Λ s, F z.1 ∂inducedRegularShellVolume m) = + ∫⁻ w in s, ENNReal.ofReal (inducedShellChartDensity m Λ w) * + F (lorentzComplexShellChart m Λ (shellEuclideanCoordinates w)) := by + rw [inducedRegularShellVolume_restrict_coordinatePatch Λ hΛ hs hsub, + lintegral_map' (f := fun z : complexShell m => F z.1) + (hF.comp measurable_subtype_coe).aemeasurable + (aemeasurable_shellPatchPoint m Λ hΛ).restrict] + exact inducedShellCoordinateVolume_lintegral Λ hs hsub _ + +theorem inducedRegularShellVolume_coordinatePatch_le_flat {m C : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + {s : Set ShellEuclideanDomain} (hs : MeasurableSet s) + (hsub : s ⊆ euclideanShellChartDomain m) + (hJ : ∀ w ∈ s, inducedShellChartDensity m Λ w ≤ C) + {t : Set (Fin 3 → ℂ)} (ht : MeasurableSet t) + (hst : s ⊆ shellEuclideanCoordinates ⁻¹' t) + {F : ComplexSpacetime → ℝ≥0∞} (hF : Measurable F) : + (∫⁻ z in regularShellCoordinatePatch m Λ s, F z.1 ∂inducedRegularShellVolume m) ≤ + ENNReal.ofReal C * ∫⁻ w in t, regularChartWeight m Λ F w := by + rw [inducedRegularShellVolume_coordinatePatch_lintegral Λ hΛ hs hsub hF] + calc + _ ≤ ∫⁻ w in s, ENNReal.ofReal C * + regularChartWeight m Λ F (shellEuclideanCoordinates w) := by + apply setLIntegral_mono' hs + intro w hw + rw [regularChartWeight_eq Λ F (hsub hw)] + exact _root_.mul_le_mul_left (ENNReal.ofReal_le_ofReal (hJ w hw)) _ + _ = ENNReal.ofReal C * ∫⁻ w in s, + regularChartWeight m Λ F (shellEuclideanCoordinates w) := + lintegral_const_mul' _ _ ENNReal.ofReal_ne_top + _ ≤ ENNReal.ofReal C * ∫⁻ w in shellEuclideanCoordinates ⁻¹' t, + regularChartWeight m Λ F (shellEuclideanCoordinates w) := + _root_.mul_le_mul_right (lintegral_mono_set hst) _ + _ = _ := by + rw [shellEuclideanCoordinates_measurePreserving.setLIntegral_comp_preimage ht + (measurable_regularChartWeight_of_measurable m Λ hF)] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/LorentzFrameMap.lean b/LeanPool/VacuumBellSeparation/Shell/LorentzFrameMap.lean new file mode 100644 index 0000000000..0ecdd0787c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/LorentzFrameMap.lean @@ -0,0 +1,133 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.LorentzFrameVectors + +/-! +# The actual future Lorentz automorphism with the constructed frame columns + +Nondegeneracy of the original Minkowski form proves injectivity. Finite +dimension then supplies the genuine inverse and continuous equivalence. +Proper orientation is treated separately from this construction. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +/-- Spacetime axis. -/ +noncomputable def spacetimeAxis (j : Fin 3) : Spacetime := + (0, WithLp.toLp 2 (Pi.single j 1)) + +/-- Linear map whose columns form the Lorentz frame determined by the two spacelike vectors. -/ +noncomputable def lorentzFrameLinear (e f : Spacetime) : Spacetime →ₗ[ℝ] Spacetime where + toFun x := x.1 • lorentzFrameFuture e f + x.2 0 • e + x.2 1 • f + + x.2 2 • lorentzFrameNormal e f + map_add' x y := by + simp only [Prod.fst_add, Prod.snd_add, PiLp.add_apply, add_smul] + abel + map_smul' a x := by + change (a * x.1) • lorentzFrameFuture e f + (a * x.2 0) • e + + (a * x.2 1) • f + (a * x.2 2) • lorentzFrameNormal e f = + a • (x.1 • lorentzFrameFuture e f + x.2 0 • e + x.2 1 • f + + x.2 2 • lorentzFrameNormal e f) + simp only [mul_smul, smul_add] + +@[simp] theorem lorentzFrameLinear_apply (e f x : Spacetime) : + lorentzFrameLinear e f x = x.1 • lorentzFrameFuture e f + x.2 0 • e + x.2 1 • f + + x.2 2 • lorentzFrameNormal e f := rfl + +theorem lorentzFrameLinear_time (e f : Spacetime) : + lorentzFrameLinear e f (1, 0) = lorentzFrameFuture e f := by simp + +theorem lorentzFrameLinear_first (e f : Spacetime) : + lorentzFrameLinear e f (spacetimeAxis 0) = e := by simp [spacetimeAxis] + +theorem lorentzFrameLinear_second (e f : Spacetime) : + lorentzFrameLinear e f (spacetimeAxis 1) = f := by simp [spacetimeAxis] + +theorem lorentzFrameLinear_third (e f : Spacetime) : + lorentzFrameLinear e f (spacetimeAxis 2) = lorentzFrameNormal e f := by simp [spacetimeAxis] + +theorem minkowskiForm_nondegenerate {x : Spacetime} + (h : ∀ y, minkowskiForm x y = 0) : x = 0 := by + have ht : x.1 = 0 := by simpa using h (1, 0) + have hs : ‖x.2‖ ^ 2 = 0 := by + have hy := h (0, x.2) + simp only [minkowskiForm, mul_zero, real_inner_self_eq_norm_sq, zero_sub, neg_eq_zero] at hy + exact hy + exact Prod.ext ht (norm_eq_zero.mp (sq_eq_zero_iff.mp hs)) + +variable {e f : Spacetime} + (he : minkowskiForm e e = -1) (hf : minkowskiForm f f = -1) + (hef : minkowskiForm e f = 0) + +include he hf hef in +theorem lorentzFrameLinear_preserves (x y : Spacetime) : + minkowskiForm (lorentzFrameLinear e f x) (lorentzFrameLinear e f y) = + minkowskiForm x y := by + have hww := lorentzFrameFuture_square he hf hef + have hwn := lorentzFrameFuture_orthogonal_normal (e := e) (f := f) + have hwe := lorentzFrameFuture_orthogonal_left he hef + have hwf := lorentzFrameFuture_orthogonal_right hf hef + have hne := lorentzFrameNormal_orthogonal_left (e := e) (f := f) + have hnf := lorentzFrameNormal_orthogonal_right (e := e) (f := f) + have hnn := lorentzFrameNormal_square he hf hef + have hfe : minkowskiForm f e = 0 := (minkowskiForm_comm f e).trans hef + have hew : minkowskiForm e (lorentzFrameFuture e f) = 0 := + (minkowskiForm_comm _ _).trans hwe + have hfw : minkowskiForm f (lorentzFrameFuture e f) = 0 := + (minkowskiForm_comm _ _).trans hwf + have hnw : minkowskiForm (lorentzFrameNormal e f) (lorentzFrameFuture e f) = 0 := + (minkowskiForm_comm _ _).trans hwn + have hnen : minkowskiForm (lorentzFrameNormal e f) e = 0 := + (minkowskiForm_comm _ _).trans hne + have hnfn : minkowskiForm (lorentzFrameNormal e f) f = 0 := + (minkowskiForm_comm _ _).trans hnf + simp only [lorentzFrameLinear_apply, minkowskiForm_add_left, minkowskiForm_add_right, + minkowskiForm_smul_left, minkowskiForm_smul_right, + he, hf, hef, hfe, hww, hwn, hwe, hwf, hne, hnf, hnn, hew, hfw, hnw, hnen, hnfn] + simp only [minkowskiForm, PiLp.inner_apply, Fin.sum_univ_three, RCLike.inner_apply, + conj_trivial] + ring + +include he hf hef in +theorem lorentzFrameLinear_injective : Function.Injective (lorentzFrameLinear e f) := by + apply LinearMap.ker_eq_bot.mp + apply LinearMap.ker_eq_bot'.mpr + intro x hx + apply minkowskiForm_nondegenerate + intro y + rw [← lorentzFrameLinear_preserves he hf hef, hx] + simp [minkowskiForm] + +/-- Continuous linear equivalence for the lorentz pair frame, of type `Spacetime ≃L[ℝ] +Spacetime`. -/ +noncomputable def lorentzPairFrame : Spacetime ≃L[ℝ] Spacetime := + (LinearEquiv.ofInjectiveEndo (lorentzFrameLinear e f) + (lorentzFrameLinear_injective he hf hef)).toContinuousLinearEquiv + +@[simp] theorem lorentzPairFrame_apply (x : Spacetime) : + lorentzPairFrame he hf hef x = lorentzFrameLinear e f x := rfl + +theorem lorentzPairFrame_isLorentz : IsLorentzMap (lorentzPairFrame he hf hef) := + lorentzFrameLinear_preserves he hf hef + +theorem lorentzPairFrame_isOrthochronous : IsOrthochronousMap (lorentzPairFrame he hf hef) := by + change 0 < (lorentzFrameLinear e f (1, 0)).1 + rw [lorentzFrameLinear_time, lorentzFrameFuture_time] + exact lorentzFrameGamma_pos e f + +theorem lorentzPairFrame_gamma_sq : + (lorentzPairFrame he hf hef (1, 0)).1 ^ 2 = 1 + e.1 ^ 2 + f.1 ^ 2 := by + rw [lorentzPairFrame_apply, lorentzFrameLinear_time, lorentzFrameFuture_time, + lorentzFrameGamma_sq] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/LorentzFrameMatching.lean b/LeanPool/VacuumBellSeparation/Shell/LorentzFrameMatching.lean new file mode 100644 index 0000000000..5668488d4f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/LorentzFrameMatching.lean @@ -0,0 +1,145 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.LorentzFrames +public import LeanPool.VacuumBellSeparation.FreeField.LorentzShellAction +public import LeanPool.VacuumBellSeparation.FreeField.ComplexLorentzForm +public import LeanPool.VacuumBellSeparation.FreeField.LorentzEuclideanBound +public import LeanPool.VacuumBellSeparation.FreeField.EuclideanSpacetimeComposition + +/-! +# Matching two actual negative Minkowski pairs + +The matching map is the target frame composed with the inverse source +frame. Properness, future orientation, both pair images and the genuine +Euclidean norm bounds are derived from these actual frames. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem IsProperLorentzMap.symm {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsProperLorentzMap Λ) : IsProperLorentzMap Λ.symm := by + refine ⟨hΛ.1.symm, ?_⟩ + have h := Λ.toLinearEquiv.det_mul_det_symm + simpa only [ContinuousLinearEquiv.toLinearEquiv_symm, hΛ.2, one_mul] using h + +theorem IsProperLorentzMap.trans {Λ Γ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsProperLorentzMap Λ) (hΓ : IsProperLorentzMap Γ) : + IsProperLorentzMap (Λ.trans Γ) := by + refine ⟨hΛ.1.trans hΓ.1, ?_⟩ + change LinearMap.det (Γ.toLinearEquiv.toLinearMap.comp Λ.toLinearEquiv.toLinearMap) = 1 + rw [LinearMap.det_comp, hΛ.2, hΓ.2, mul_one] + +theorem IsOrthochronousMap.trans {Λ Γ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (hΓ : IsLorentzMap Γ) + (hfΛ : IsOrthochronousMap Λ) (hfΓ : IsOrthochronousMap Γ) : + IsOrthochronousMap (Λ.trans Γ) := by + have he : ((1, 0) : Spacetime) = onShell 1 0 := by simp [onShell, dispersion] + change 0 < (Γ (Λ (1, 0))).1 + rw [he, lorentzMap_onShell 1 Λ hΛ hfΛ, lorentzMap_onShell 1 Γ hΓ hfΓ] + exact dispersion_pos (by norm_num) _ + +/-- Continuous linear equivalence for the lorentz negative pair match, of type `Spacetime ≃L[ℝ] +Spacetime`. -/ +noncomputable def lorentzNegativePairMatch {a b u v : Spacetime} + (ha : minkowskiForm a a < 0) (hb : minkowskiForm b b < 0) + (hab : minkowskiForm a b = 0) + (hu : minkowskiForm u u < 0) (hv : minkowskiForm v v < 0) + (huv : minkowskiForm u v = 0) : Spacetime ≃L[ℝ] Spacetime := + (lorentzNegativePairFrame ha hb hab).symm.trans (lorentzNegativePairFrame hu hv huv) + +section Matching + +variable {a b u v : Spacetime} + (ha : minkowskiForm a a < 0) (hb : minkowskiForm b b < 0) + (hab : minkowskiForm a b = 0) + (hu : minkowskiForm u u < 0) (hv : minkowskiForm v v < 0) + (huv : minkowskiForm u v = 0) + +theorem lorentzNegativePairMatch_isProper : + IsProperLorentzMap (lorentzNegativePairMatch ha hb hab hu hv huv) := + (lorentzNegativePairFrame_isProper ha hb hab).symm.trans + (lorentzNegativePairFrame_isProper hu hv huv) + +theorem lorentzNegativePairMatch_isOrthochronous : + IsOrthochronousMap (lorentzNegativePairMatch ha hb hab hu hv huv) := + IsOrthochronousMap.trans (lorentzNegativePairFrame_isProper ha hb hab).1.symm + (lorentzNegativePairFrame_isProper hu hv huv).1 + (IsOrthochronousMap.symm (lorentzNegativePairFrame_isProper ha hb hab).1 + (lorentzNegativePairFrame_isOrthochronous ha hb hab)) + (lorentzNegativePairFrame_isOrthochronous hu hv huv) + +theorem lorentzNegativePairMatch_first (hau : minkowskiForm a a = minkowskiForm u u) : + lorentzNegativePairMatch ha hb hab hu hv huv a = u := by + have hs : lorentzNegativePairFrame ha hb hab + (negativeMinkowskiLength a • spacetimeAxis 0) = a := by + rw [map_smul, lorentzNegativePairFrame_first, negativeMinkowskiLength_smul_unit ha] + have hlen : negativeMinkowskiLength a = negativeMinkowskiLength u := by + simp only [negativeMinkowskiLength, hau] + have hinv : (lorentzNegativePairFrame ha hb hab).symm a = + negativeMinkowskiLength a • spacetimeAxis 0 := by + simpa only [ContinuousLinearEquiv.symm_apply_apply] using + (congrArg (lorentzNegativePairFrame ha hb hab).symm hs).symm + rw [lorentzNegativePairMatch, ContinuousLinearEquiv.trans_apply, hinv, hlen, map_smul, + lorentzNegativePairFrame_first, negativeMinkowskiLength_smul_unit hu] + +theorem lorentzNegativePairMatch_second (hbv : minkowskiForm b b = minkowskiForm v v) : + lorentzNegativePairMatch ha hb hab hu hv huv b = v := by + have hs : lorentzNegativePairFrame ha hb hab + (negativeMinkowskiLength b • spacetimeAxis 1) = b := by + rw [map_smul, lorentzNegativePairFrame_second, negativeMinkowskiLength_smul_unit hb] + have hlen : negativeMinkowskiLength b = negativeMinkowskiLength v := by + simp only [negativeMinkowskiLength, hbv] + have hinv : (lorentzNegativePairFrame ha hb hab).symm b = + negativeMinkowskiLength b • spacetimeAxis 1 := by + simpa only [ContinuousLinearEquiv.symm_apply_apply] using + (congrArg (lorentzNegativePairFrame ha hb hab).symm hs).symm + rw [lorentzNegativePairMatch, ContinuousLinearEquiv.trans_apply, hinv, hlen, map_smul, + lorentzNegativePairFrame_second, negativeMinkowskiLength_smul_unit hv] + +theorem lorentzNegativePairMatch_complex (hau : minkowskiForm a a = minkowskiForm u u) + (hbv : minkowskiForm b b = minkowskiForm v v) : + complexifiedSpacetimeMap (lorentzNegativePairMatch ha hb hab hu hv huv) + (complexSpacetimeOfReal a + Complex.I • complexSpacetimeOfReal b) = + complexSpacetimeOfReal u + Complex.I • complexSpacetimeOfReal v := by + rw [map_add, map_smul, complexifiedSpacetimeMap_ofReal, complexifiedSpacetimeMap_ofReal, + lorentzNegativePairMatch_first ha hb hab hu hv huv hau, + lorentzNegativePairMatch_second ha hb hab hu hv huv hbv] + +theorem lorentzNegativePairMatch_norm_le : + spacetimeEuclideanOperatorNorm (lorentzNegativePairMatch ha hb hab hu hv huv) ≤ + 4 * (lorentzNegativePairFrame hu hv huv (1, 0)).1 * + (lorentzNegativePairFrame ha hb hab (1, 0)).1 := by + refine (spacetimeEuclideanOperatorNorm_trans_le _ _).trans ?_ + have ht := spacetimeEuclideanOperatorNorm_lorentz_le + (lorentzNegativePairFrame_isProper hu hv huv).1 + (lorentzNegativePairFrame_isOrthochronous hu hv huv) + have hs := spacetimeEuclideanOperatorNorm_lorentz_inverse_le + (lorentzNegativePairFrame_isProper ha hb hab).1 + (lorentzNegativePairFrame_isOrthochronous ha hb hab) + calc + _ ≤ (2 * (lorentzNegativePairFrame hu hv huv (1, 0)).1) * + (2 * (lorentzNegativePairFrame ha hb hab (1, 0)).1) := + mul_le_mul ht hs (spacetimeEuclideanOperatorNorm_nonneg _) + (mul_nonneg (by norm_num) (lorentzNegativePairFrame_isOrthochronous hu hv huv).le) + _ = _ := by ring + +theorem lorentzNegativePairMatch_inverse_norm_le : + spacetimeEuclideanOperatorNorm (lorentzNegativePairMatch ha hb hab hu hv huv).symm ≤ + 4 * (lorentzNegativePairFrame hu hv huv (1, 0)).1 * + (lorentzNegativePairFrame ha hb hab (1, 0)).1 := by + change spacetimeEuclideanOperatorNorm + ((lorentzNegativePairFrame hu hv huv).symm.trans (lorentzNegativePairFrame ha hb hab)) ≤ _ + simpa only [lorentzNegativePairMatch, mul_assoc, mul_left_comm, mul_comm] using + lorentzNegativePairMatch_norm_le hu hv huv ha hb hab + +end Matching + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/LorentzFrameOrientation.lean b/LeanPool/VacuumBellSeparation/Shell/LorentzFrameOrientation.lean new file mode 100644 index 0000000000..2ebebaeb37 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/LorentzFrameOrientation.lean @@ -0,0 +1,99 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.SpacetimeFrameCoordinates + +/-! +# Proper orientation of the explicit Lorentz frame + +The normalized spatial cross product fixes the orientation. First-column +multilinearity reduces the four-dimensional determinant to the actual +spatial triple product, whose value is the positive gamma factor. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Matrix +open scoped Matrix + +theorem spacetimeColumnMatrix_update_first (w w' e f n : Spacetime) : + (spacetimeColumnMatrix w e f n).updateCol 0 (spacetimeFrameCoordinates w') = + spacetimeColumnMatrix w' e f n := by + ext i j + fin_cases j <;> simp [spacetimeColumnMatrix] + +theorem spacetimeColumnMatrix_det_add_first (w w' e f n : Spacetime) : + (spacetimeColumnMatrix (w + w') e f n).det = + (spacetimeColumnMatrix w e f n).det + (spacetimeColumnMatrix w' e f n).det := by + rw [← spacetimeColumnMatrix_update_first w (w + w') e f n, map_add, + Matrix.det_updateCol_add, spacetimeColumnMatrix_update_first, + spacetimeColumnMatrix_update_first] + +theorem spacetimeColumnMatrix_det_smul_first (a : ℝ) (w e f n : Spacetime) : + (spacetimeColumnMatrix (a • w) e f n).det = a * (spacetimeColumnMatrix w e f n).det := by + rw [← spacetimeColumnMatrix_update_first w (a • w) e f n, map_smul, + Matrix.det_updateCol_smul, spacetimeColumnMatrix_update_first] + +theorem spacetimeColumnMatrix_det_repeated_left (e f n : Spacetime) : + (spacetimeColumnMatrix e e f n).det = 0 := + Matrix.det_zero_of_column_eq (by decide : (0 : Fin 4) ≠ 1) (fun _ => rfl) + +theorem spacetimeColumnMatrix_det_repeated_right (e f n : Spacetime) : + (spacetimeColumnMatrix f e f n).det = 0 := + Matrix.det_zero_of_column_eq (by decide : (0 : Fin 4) ≠ 2) (fun _ => rfl) + +theorem spacetimeColumnMatrix_det_time (e f n : Spacetime) : + (spacetimeColumnMatrix (1, 0) e f n).det = + Matrix.det ![WithLp.ofLp e.2, WithLp.ofLp f.2, WithLp.ofLp n.2] := by + let A := spacetimeColumnMatrix (1, 0) e f n + have hc (i : Fin 4) : A i 0 = if i = 0 then 1 else 0 := by + fin_cases i <;> rfl + have hm : A.submatrix (Fin.succAbove (0 : Fin 4)) Fin.succ = + (![WithLp.ofLp e.2, WithLp.ofLp f.2, WithLp.ofLp n.2] : Matrix (Fin 3) (Fin 3) ℝ)ᵀ := by + ext i j + fin_cases i <;> fin_cases j <;> rfl + change A.det = _ + rw [Matrix.det_succ_column_zero] + simp only [hc, mul_ite, ite_mul, mul_one, mul_zero, zero_mul, Finset.sum_ite_eq', + Finset.mem_univ, ite_true, Fin.val_zero, pow_zero, one_mul, hm] + exact Matrix.det_transpose _ + +theorem spacetimeColumnMatrix_det_normal (e f : Spacetime) : + (spacetimeColumnMatrix (1, 0) e f (lorentzFrameNormal e f)).det = + (lorentzFrameGamma e f)⁻¹ * ‖spatialEuclideanCross e.2 f.2‖ ^ 2 := by + rw [spacetimeColumnMatrix_det_time, ← triple_product_eq_det, + triple_product_permutation, triple_product_permutation] + change ((lorentzFrameGamma e f)⁻¹ • crossProduct (WithLp.ofLp e.2) (WithLp.ofLp f.2)) ⬝ᵥ + crossProduct (WithLp.ofLp e.2) (WithLp.ofLp f.2) = _ + rw [smul_dotProduct, smul_eq_mul] + congr 1 + calc + _ = inner ℝ (spatialEuclideanCross e.2 f.2) (spatialEuclideanCross e.2 f.2) := by + simp only [EuclideanSpace.inner_eq_star_dotProduct, spatialEuclideanCross, star_trivial] + _ = _ := real_inner_self_eq_norm_sq _ + +theorem lorentzFrameLinear_det {e f : Spacetime} + (he : minkowskiForm e e = -1) (hf : minkowskiForm f f = -1) + (hef : minkowskiForm e f = 0) : LinearMap.det (lorentzFrameLinear e f) = 1 := by + rw [← LinearMap.det_toMatrix spacetimeFrameBasis, lorentzFrameLinear_toMatrix] + unfold lorentzFrameFuture + rw [spacetimeColumnMatrix_det_smul_first, spacetimeColumnMatrix_det_add_first, + spacetimeColumnMatrix_det_add_first, spacetimeColumnMatrix_det_smul_first, + spacetimeColumnMatrix_det_smul_first, spacetimeColumnMatrix_det_repeated_left, + spacetimeColumnMatrix_det_repeated_right, mul_zero, mul_zero, add_zero, add_zero, + spacetimeColumnMatrix_det_normal, lorentzFrame_cross_norm_sq he hf hef] + field_simp [ne_of_gt (lorentzFrameGamma_pos e f)] + +theorem lorentzPairFrame_isProper {e f : Spacetime} + (he : minkowskiForm e e = -1) (hf : minkowskiForm f f = -1) + (hef : minkowskiForm e f = 0) : IsProperLorentzMap (lorentzPairFrame he hf hef) := + ⟨lorentzPairFrame_isLorentz he hf hef, lorentzFrameLinear_det he hf hef⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/LorentzFrameVectors.lean b/LeanPool/VacuumBellSeparation/Shell/LorentzFrameVectors.lean new file mode 100644 index 0000000000..e5a30293c7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/LorentzFrameVectors.lean @@ -0,0 +1,198 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.LorentzMap +public import Mathlib.LinearAlgebra.CrossProduct + +/-! +# Explicit orthonormal frame vectors in the original Minkowski spacetime + +For an orthogonal negative unit pair e,f, the future normal is the +normalization of e0+e.time*e+f.time*f. The remaining negative unit vector +has zero time coordinate and is the normalized actual spatial cross +product. All normalizations are justified by the exact gamma square. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace Matrix + +theorem minkowskiForm_comm (x y : Spacetime) : + minkowskiForm x y = minkowskiForm y x := by + simp only [minkowskiForm, real_inner_comm] + ring + +theorem minkowskiForm_add_left (x y z : Spacetime) : + minkowskiForm (x + y) z = minkowskiForm x z + minkowskiForm y z := by + simp only [minkowskiForm, Prod.fst_add, Prod.snd_add, inner_add_left] + ring + +@[simp] theorem minkowskiForm_add_right (x y z : Spacetime) : + minkowskiForm x (y + z) = minkowskiForm x y + minkowskiForm x z := by + simp only [minkowskiForm, Prod.fst_add, Prod.snd_add, inner_add_right] + ring + +theorem minkowskiForm_smul_left (a : ℝ) (x y : Spacetime) : + minkowskiForm (a • x) y = a * minkowskiForm x y := by + change (a * x.1) * y.1 - inner ℝ (a • x.2) y.2 = + a * (x.1 * y.1 - inner ℝ x.2 y.2) + rw [real_inner_smul_left] + ring + +@[simp] theorem minkowskiForm_smul_right (a : ℝ) (x y : Spacetime) : + minkowskiForm x (a • y) = a * minkowskiForm x y := by + change x.1 * (a * y.1) - inner ℝ x.2 (a • y.2) = + a * (x.1 * y.1 - inner ℝ x.2 y.2) + rw [real_inner_smul_right] + ring + +theorem minkowskiForm_time_left (x : Spacetime) : minkowskiForm (1, 0) x = x.1 := by + simp [minkowskiForm] + +@[simp] theorem minkowskiForm_time_right (x : Spacetime) : minkowskiForm x (1, 0) = x.1 := by + simp [minkowskiForm] + +/-- Spatial Euclidean cross defined as `WithLp.toLp 2 (crossProduct (WithLp.ofLp x) (WithLp.ofLp +y))`. -/ +noncomputable def spatialEuclideanCross + (x y : EuclideanSpace ℝ (Fin 3)) : EuclideanSpace ℝ (Fin 3) := + WithLp.toLp 2 (crossProduct (WithLp.ofLp x) (WithLp.ofLp y)) + +theorem spatialEuclideanCross_inner_left (x y : EuclideanSpace ℝ (Fin 3)) : + inner ℝ x (spatialEuclideanCross x y) = 0 := by + simp [spatialEuclideanCross, EuclideanSpace.inner_eq_star_dotProduct, dotProduct_comm] + +theorem spatialEuclideanCross_inner_right (x y : EuclideanSpace ℝ (Fin 3)) : + inner ℝ y (spatialEuclideanCross x y) = 0 := by + simp [spatialEuclideanCross, EuclideanSpace.inner_eq_star_dotProduct, dotProduct_comm] + +theorem spatialEuclideanCross_norm_sq (x y : EuclideanSpace ℝ (Fin 3)) : + ‖spatialEuclideanCross x y‖ ^ 2 = ‖x‖ ^ 2 * ‖y‖ ^ 2 - (inner ℝ x y) ^ 2 := by + simp only [← real_inner_self_eq_norm_sq] + simpa only [spatialEuclideanCross, EuclideanSpace.inner_eq_star_dotProduct, + WithLp.ofLp_toLp, star_trivial, dotProduct_comm, pow_two] using + cross_dot_cross (WithLp.ofLp x) (WithLp.ofLp y) (WithLp.ofLp x) (WithLp.ofLp y) + +/-- Lorentz frame gamma given by `Real.sqrt (1 + e.1 ^ 2 + f.1 ^ 2)`. -/ +noncomputable def lorentzFrameGamma (e f : Spacetime) : ℝ := + Real.sqrt (1 + e.1 ^ 2 + f.1 ^ 2) + +/-- Lorentz frame future given by `(lorentzFrameGamma e f)⁻¹ • ((1, 0) + e.1 • e + f.1 • f)`. -/ +noncomputable def lorentzFrameFuture (e f : Spacetime) : Spacetime := + (lorentzFrameGamma e f)⁻¹ • ((1, 0) + e.1 • e + f.1 • f) + +/-- Lorentz frame normal. -/ +noncomputable def lorentzFrameNormal (e f : Spacetime) : Spacetime := + (0, (lorentzFrameGamma e f)⁻¹ • spatialEuclideanCross e.2 f.2) + +theorem lorentzFrameGamma_pos (e f : Spacetime) : 0 < lorentzFrameGamma e f := by + unfold lorentzFrameGamma + positivity + +theorem lorentzFrameGamma_sq (e f : Spacetime) : + lorentzFrameGamma e f ^ 2 = 1 + e.1 ^ 2 + f.1 ^ 2 := + Real.sq_sqrt (by positivity) + +theorem lorentzFrameFuture_time (e f : Spacetime) : + (lorentzFrameFuture e f).1 = lorentzFrameGamma e f := by + change (lorentzFrameGamma e f)⁻¹ * (1 + e.1 * e.1 + f.1 * f.1) = _ + rw [show 1 + e.1 * e.1 + f.1 * f.1 = lorentzFrameGamma e f ^ 2 by + rw [lorentzFrameGamma_sq]; ring] + field_simp [ne_of_gt (lorentzFrameGamma_pos e f)] + +@[simp] theorem lorentzFrameNormal_time (e f : Spacetime) : + (lorentzFrameNormal e f).1 = 0 := rfl + +variable {e f : Spacetime} + (he : minkowskiForm e e = -1) (hf : minkowskiForm f f = -1) + (hef : minkowskiForm e f = 0) + +include he hf hef in +theorem lorentzFrame_cross_norm_sq : + ‖spatialEuclideanCross e.2 f.2‖ ^ 2 = lorentzFrameGamma e f ^ 2 := by + have he' : ‖e.2‖ ^ 2 = 1 + e.1 ^ 2 := by + have h := he + simp only [minkowskiForm, real_inner_self_eq_norm_sq, ← pow_two] at h + linarith + have hf' : ‖f.2‖ ^ 2 = 1 + f.1 ^ 2 := by + have h := hf + simp only [minkowskiForm, real_inner_self_eq_norm_sq, ← pow_two] at h + linarith + have hef' : inner ℝ e.2 f.2 = e.1 * f.1 := by + unfold minkowskiForm at hef + linarith + rw [spatialEuclideanCross_norm_sq, he', hf', hef', lorentzFrameGamma_sq] + ring + +include he hf hef in +theorem lorentzFrame_cross_norm : + ‖spatialEuclideanCross e.2 f.2‖ = lorentzFrameGamma e f := + (sq_eq_sq₀ (norm_nonneg _) (lorentzFrameGamma_pos e f).le).mp + (lorentzFrame_cross_norm_sq he hf hef) + +include he hef in +theorem lorentzFrameFuture_orthogonal_left : + minkowskiForm (lorentzFrameFuture e f) e = 0 := by + have hfe : minkowskiForm f e = 0 := (minkowskiForm_comm f e).trans hef + simp only [lorentzFrameFuture, minkowskiForm_smul_left, minkowskiForm_add_left, + minkowskiForm_time_left, he, hfe] + ring + +include hf hef in +theorem lorentzFrameFuture_orthogonal_right : + minkowskiForm (lorentzFrameFuture e f) f = 0 := by + simp only [lorentzFrameFuture, minkowskiForm_smul_left, minkowskiForm_add_left, + minkowskiForm_time_left, hef, hf] + ring + +include he hf hef in +theorem lorentzFrameFuture_square : + minkowskiForm (lorentzFrameFuture e f) (lorentzFrameFuture e f) = 1 := by + have hfe : minkowskiForm f e = 0 := (minkowskiForm_comm f e).trans hef + have hN : minkowskiForm ((1, 0) + e.1 • e + f.1 • f) + ((1, 0) + e.1 • e + f.1 • f) = lorentzFrameGamma e f ^ 2 := by + simp only [minkowskiForm_add_left, minkowskiForm_add_right, + minkowskiForm_smul_left, minkowskiForm_smul_right, minkowskiForm_time_left, + minkowskiForm_time_right, he, hf, hef, hfe, lorentzFrameGamma_sq] + change (1 + e.1 * e.1 + f.1 * f.1) + + e.1 * (e.1 + e.1 * (-1) + f.1 * 0) + + f.1 * (f.1 + e.1 * 0 + f.1 * (-1)) = 1 + e.1 ^ 2 + f.1 ^ 2 + ring + simp only [lorentzFrameFuture, minkowskiForm_smul_left, minkowskiForm_smul_right, hN] + field_simp [ne_of_gt (lorentzFrameGamma_pos e f)] + +theorem lorentzFrameNormal_orthogonal_left : + minkowskiForm e (lorentzFrameNormal e f) = 0 := by + simp only [lorentzFrameNormal, minkowskiForm, mul_zero, real_inner_smul_right, + spatialEuclideanCross_inner_left, mul_zero, sub_zero] + +theorem lorentzFrameNormal_orthogonal_right : + minkowskiForm f (lorentzFrameNormal e f) = 0 := by + simp only [lorentzFrameNormal, minkowskiForm, mul_zero, real_inner_smul_right, + spatialEuclideanCross_inner_right, mul_zero, sub_zero] + +theorem lorentzFrameFuture_orthogonal_normal : + minkowskiForm (lorentzFrameFuture e f) (lorentzFrameNormal e f) = 0 := by + simp only [lorentzFrameFuture, minkowskiForm_smul_left, minkowskiForm_add_left, + minkowskiForm_time_left, lorentzFrameNormal_time, + lorentzFrameNormal_orthogonal_left, lorentzFrameNormal_orthogonal_right] + ring + +include he hf hef in +theorem lorentzFrameNormal_square : + minkowskiForm (lorentzFrameNormal e f) (lorentzFrameNormal e f) = -1 := by + change 0 * 0 - inner ℝ ((lorentzFrameGamma e f)⁻¹ • spatialEuclideanCross e.2 f.2) + ((lorentzFrameGamma e f)⁻¹ • spatialEuclideanCross e.2 f.2) = -1 + rw [real_inner_smul_left, real_inner_smul_right, real_inner_self_eq_norm_sq, + lorentzFrame_cross_norm_sq he hf hef] + norm_num only [zero_mul] + field_simp [ne_of_gt (lorentzFrameGamma_pos e f)]; norm_num + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/LorentzFrames.lean b/LeanPool/VacuumBellSeparation/Shell/LorentzFrames.lean new file mode 100644 index 0000000000..e45ae59a57 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/LorentzFrames.lean @@ -0,0 +1,123 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.LorentzFrameOrientation + +/-! +# Proper future Lorentz frames for any orthogonal negative pair + +The normalization and gamma identity use the original Minkowski form. +No frame-existence or determinant hypothesis remains in this endpoint. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Negative Minkowski length obtained from `Real.sqrt`. -/ +noncomputable def negativeMinkowskiLength (u : Spacetime) : ℝ := + Real.sqrt (-minkowskiForm u u) + +/-- Normalize a spacelike vector to have Minkowski square minus one. -/ +noncomputable def negativeMinkowskiUnit (u : Spacetime) : Spacetime := + (negativeMinkowskiLength u)⁻¹ • u + +theorem negativeMinkowskiLength_pos {u : Spacetime} (hu : minkowskiForm u u < 0) : + 0 < negativeMinkowskiLength u := Real.sqrt_pos.2 (neg_pos.2 hu) + +theorem negativeMinkowskiLength_sq {u : Spacetime} (hu : minkowskiForm u u < 0) : + negativeMinkowskiLength u ^ 2 = -minkowskiForm u u := Real.sq_sqrt (neg_nonneg.2 hu.le) + +theorem negativeMinkowskiUnit_square {u : Spacetime} (hu : minkowskiForm u u < 0) : + minkowskiForm (negativeMinkowskiUnit u) (negativeMinkowskiUnit u) = -1 := by + have hq : minkowskiForm u u = -(negativeMinkowskiLength u ^ 2) := by + rw [negativeMinkowskiLength_sq hu, neg_neg] + simp only [negativeMinkowskiUnit, minkowskiForm_smul_left, minkowskiForm_smul_right, hq] + field_simp [ne_of_gt (negativeMinkowskiLength_pos hu)] + +theorem negativeMinkowskiUnit_orthogonal {u v : Spacetime} (huv : minkowskiForm u v = 0) : + minkowskiForm (negativeMinkowskiUnit u) (negativeMinkowskiUnit v) = 0 := by + simp only [negativeMinkowskiUnit, minkowskiForm_smul_left, minkowskiForm_smul_right, + huv, mul_zero] + +theorem negativeMinkowskiLength_smul_unit {u : Spacetime} (hu : minkowskiForm u u < 0) : + negativeMinkowskiLength u • negativeMinkowskiUnit u = u := by + rw [negativeMinkowskiUnit, smul_smul, mul_inv_cancel₀ (ne_of_gt (negativeMinkowskiLength_pos hu)), + one_smul] + +/-- Continuous linear equivalence for the lorentz negative pair frame, of type `Spacetime ≃L[ℝ] +Spacetime`. -/ +noncomputable def lorentzNegativePairFrame {u v : Spacetime} + (hu : minkowskiForm u u < 0) (hv : minkowskiForm v v < 0) + (huv : minkowskiForm u v = 0) : Spacetime ≃L[ℝ] Spacetime := + lorentzPairFrame (negativeMinkowskiUnit_square hu) (negativeMinkowskiUnit_square hv) + (negativeMinkowskiUnit_orthogonal huv) + +theorem lorentzNegativePairFrame_isProper {u v : Spacetime} + (hu : minkowskiForm u u < 0) (hv : minkowskiForm v v < 0) + (huv : minkowskiForm u v = 0) : IsProperLorentzMap (lorentzNegativePairFrame hu hv huv) := + lorentzPairFrame_isProper _ _ _ + +theorem lorentzNegativePairFrame_isOrthochronous {u v : Spacetime} + (hu : minkowskiForm u u < 0) (hv : minkowskiForm v v < 0) + (huv : minkowskiForm u v = 0) : IsOrthochronousMap (lorentzNegativePairFrame hu hv huv) := + lorentzPairFrame_isOrthochronous _ _ _ + +theorem lorentzNegativePairFrame_first {u v : Spacetime} + (hu : minkowskiForm u u < 0) (hv : minkowskiForm v v < 0) + (huv : minkowskiForm u v = 0) : + lorentzNegativePairFrame hu hv huv (spacetimeAxis 0) = negativeMinkowskiUnit u := + lorentzFrameLinear_first _ _ + +theorem lorentzNegativePairFrame_second {u v : Spacetime} + (hu : minkowskiForm u u < 0) (hv : minkowskiForm v v < 0) + (huv : minkowskiForm u v = 0) : + lorentzNegativePairFrame hu hv huv (spacetimeAxis 1) = negativeMinkowskiUnit v := + lorentzFrameLinear_second _ _ + +theorem lorentzNegativePairFrame_third_time {u v : Spacetime} + (hu : minkowskiForm u u < 0) (hv : minkowskiForm v v < 0) + (huv : minkowskiForm u v = 0) : + (lorentzNegativePairFrame hu hv huv (spacetimeAxis 2)).1 = 0 := by + change (lorentzFrameLinear (negativeMinkowskiUnit u) (negativeMinkowskiUnit v) + (spacetimeAxis 2)).1 = 0 + rw [lorentzFrameLinear_third, lorentzFrameNormal_time] + +theorem lorentzNegativePairFrame_gamma_sq {u v : Spacetime} + (hu : minkowskiForm u u < 0) (hv : minkowskiForm v v < 0) + (huv : minkowskiForm u v = 0) : + (lorentzNegativePairFrame hu hv huv (1, 0)).1 ^ 2 = + 1 + u.1 ^ 2 / (-minkowskiForm u u) + v.1 ^ 2 / (-minkowskiForm v v) := by + change (lorentzPairFrame _ _ _ (1, 0)).1 ^ 2 = _ + rw [lorentzPairFrame_gamma_sq] + change 1 + ((negativeMinkowskiLength u)⁻¹ * u.1) ^ 2 + + ((negativeMinkowskiLength v)⁻¹ * v.1) ^ 2 = _ + rw [mul_pow, mul_pow, inv_pow, inv_pow, negativeMinkowskiLength_sq hu, + negativeMinkowskiLength_sq hv] + simp only [div_eq_mul_inv] + ring + +/-- Exact manuscript frame completion, including proper orientation, +zero-time complementary column and its quantitative Lorentz factor. -/ +theorem exists_proper_future_negative_pair_frame {u v : Spacetime} + (hu : minkowskiForm u u < 0) (hv : minkowskiForm v v < 0) + (huv : minkowskiForm u v = 0) : + ∃ Λ : Spacetime ≃L[ℝ] Spacetime, + IsProperLorentzMap Λ ∧ IsOrthochronousMap Λ ∧ + Λ (negativeMinkowskiLength u • spacetimeAxis 0) = u ∧ + Λ (negativeMinkowskiLength v • spacetimeAxis 1) = v ∧ + (Λ (spacetimeAxis 2)).1 = 0 ∧ + (Λ (1, 0)).1 ^ 2 = + 1 + u.1 ^ 2 / (-minkowskiForm u u) + v.1 ^ 2 / (-minkowskiForm v v) := by + refine ⟨lorentzNegativePairFrame hu hv huv, lorentzNegativePairFrame_isProper hu hv huv, + lorentzNegativePairFrame_isOrthochronous hu hv huv, ?_, ?_, + lorentzNegativePairFrame_third_time hu hv huv, lorentzNegativePairFrame_gamma_sq hu hv huv⟩ + · rw [map_smul, lorentzNegativePairFrame_first, negativeMinkowskiLength_smul_unit hu] + · rw [map_smul, lorentzNegativePairFrame_second, negativeMinkowskiLength_smul_unit hv] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/LorentzParameterContinuity.lean b/LeanPool/VacuumBellSeparation/Shell/LorentzParameterContinuity.lean new file mode 100644 index 0000000000..b93a986e1a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/LorentzParameterContinuity.lean @@ -0,0 +1,111 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ComplexLorentzFamilySmooth +public import LeanPool.VacuumBellSeparation.Shell.SpacetimeFrameCoordinates + +/-! +# Pointwise and inverse operator-norm continuity of actual Lorentz maps + +The inverse coordinates follow from the Minkowski bilinear form. This +avoids assuming continuity of an abstract inverse operation on the +space of parameterized equivalences. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +theorem lorentz_inverse_time_coordinate {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (x : Spacetime) : + (Λ.symm x).1 = minkowskiForm (Λ (1, 0)) x := by + have h := hΛ (1, 0) (Λ.symm x) + simpa only [ContinuousLinearEquiv.apply_symm_apply, minkowskiForm, + one_mul, inner_zero_left, sub_zero] using h.symm + +theorem lorentz_inverse_spatial_coordinate {Λ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ) (x : Spacetime) (j : Fin 3) : + (Λ.symm x).2 j = -minkowskiForm (Λ (spacetimeAxis j)) x := by + have h := hΛ (spacetimeAxis j) (Λ.symm x) + have hi : ⟪WithLp.toLp 2 (Pi.single j (1 : ℝ)), (Λ.symm x).2⟫_ℝ = + (Λ.symm x).2 j := by + simpa only [EuclideanSpace.single, PiLp.single, map_one, one_mul] using + (EuclideanSpace.inner_single_left j (1 : ℝ) (Λ.symm x).2) + rw [ContinuousLinearEquiv.apply_symm_apply] at h + change minkowskiForm (Λ (spacetimeAxis j)) x = + 0 * (Λ.symm x).1 - ⟪WithLp.toLp 2 (Pi.single j (1 : ℝ)), (Λ.symm x).2⟫_ℝ at h + rw [zero_mul, zero_sub, hi] at h + exact (neg_eq_iff_eq_neg.mp h.symm) + +theorem continuous_lorentzInverse_family {A : Type*} [TopologicalSpace A] + (Λ : A → Spacetime ≃L[ℝ] Spacetime) (hΛ : ∀ a, IsLorentzMap (Λ a)) + (hc : ∀ x : Spacetime, Continuous fun a => Λ a x) (x : Spacetime) : + Continuous (fun a => (Λ a).symm x) := by + have ht : Continuous (fun a => ((Λ a).symm x).1) := by + simp only [lorentz_inverse_time_coordinate (hΛ _)] + exact ((hc (1, 0)).fst.mul continuous_const).sub + ((hc (1, 0)).snd.inner continuous_const) + have hs : Continuous (fun a => ((Λ a).symm x).2) := by + change Continuous (fun a => WithLp.toLp 2 (fun j => ((Λ a).symm x).2 j)) + apply (PiLp.continuous_toLp 2 (fun _ : Fin 3 => ℝ)).comp + apply continuous_pi + intro j + simp only [lorentz_inverse_spatial_coordinate (hΛ _)] + exact (((hc (spacetimeAxis j)).fst.mul continuous_const).sub + ((hc (spacetimeAxis j)).snd.inner continuous_const)).neg + exact ht.prodMk hs + +theorem continuous_lorentzInverse_operatorNorm_family {A : Type*} [TopologicalSpace A] + (Λ : A → Spacetime ≃L[ℝ] Spacetime) (hΛ : ∀ a, IsLorentzMap (Λ a)) + (hc : ∀ x : Spacetime, Continuous fun a => Λ a x) : + Continuous (fun a => spacetimeEuclideanOperatorNorm (Λ a).symm) := + continuous_spacetimeEuclideanOperatorNorm_family (fun a => (Λ a).symm) + (continuous_lorentzInverse_family Λ hΛ hc) + +theorem continuous_complexSpacetimeRe : Continuous complexSpacetimeRe := by + apply Continuous.prodMk + · fun_prop + · apply (PiLp.continuous_toLp 2 (fun _ : Fin 3 => ℝ)).comp + fun_prop + +theorem complexSpacetimeRe_ofReal (x : Spacetime) : + complexSpacetimeRe (complexSpacetimeOfReal x) = x := by + apply Prod.ext + · rfl + · ext i + rfl + +theorem continuous_lorentzParameterFamily_apply (x : Spacetime) : + Continuous (fun s : Fin 6 → ℝ => lorentzParameterFamily s x) := by + have h : Continuous (fun s : Fin 6 → ℝ => + complexLorentzFamilyAction s (complexSpacetimeOfReal x)) := by + have step (j : Fin 6) (z : (Fin 6 → ℝ) → ComplexSpacetime) + (hz : Continuous z) : + Continuous (fun s => complexLorentzParameterAction j (s j) (z s)) := by + have hj : Continuous (fun q : ℝ × ComplexSpacetime => + complexLorentzParameterAction j q.1 q.2) := + (contDiff_complexLorentzParameterAction j).continuous + exact hj.comp ((continuous_apply j).prodMk hz) + simp only [complexLorentzFamilyAction_factors] + apply step 5 + apply step 4 + apply step 3 + apply step 2 + apply step 1 + apply step 0 + exact continuous_const + have he (s : Fin 6 → ℝ) : complexSpacetimeRe + (complexLorentzFamilyAction s (complexSpacetimeOfReal x)) = lorentzParameterFamily s x := by + exact (congrArg complexSpacetimeRe + (complexifiedSpacetimeMap_ofReal (lorentzParameterFamily s) x)).trans + (complexSpacetimeRe_ofReal (lorentzParameterFamily s x)) + simpa only [Function.comp_def, he] using continuous_complexSpacetimeRe.comp h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/LorentzParameterFamily.lean b/LeanPool/VacuumBellSeparation/Shell/LorentzParameterFamily.lean new file mode 100644 index 0000000000..3fd30a7f2a --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/LorentzParameterFamily.lean @@ -0,0 +1,176 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.CoordinateLorentzProper +public import LeanPool.VacuumBellSeparation.Shell.LorentzFrameMatching + +/-! +# A literal six-parameter proper future Lorentz family + +The factors are the three actual coordinate boosts and three coordinate +plane rotations. The order is chosen to match the six selected contour +variations: boost1, boost2, rotation12, rotation13, rotation23, boost3. +Spatial conjugation preserves determinant without requiring the spatial +permutation itself to have positive determinant. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Continuous linear equivalence for the spatial Lorentz conjugate, of type `Spacetime ≃L[ℝ] +Spacetime`. -/ +noncomputable def spatialLorentzConjugate + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) + (Λ : Spacetime ≃L[ℝ] Spacetime) : Spacetime ≃L[ℝ] Spacetime := + (spatialRotation R).symm.trans (Λ.trans (spatialRotation R)) + +theorem spatialLorentzConjugate_apply + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) + (Λ : Spacetime ≃L[ℝ] Spacetime) (x : Spacetime) : + spatialLorentzConjugate R Λ x = spatialRotation R (Λ (x.1, R.symm x.2)) := rfl + +theorem spatialLorentzConjugate_isProper + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) + {Λ : Spacetime ≃L[ℝ] Spacetime} (hΛ : IsProperLorentzMap Λ) : + IsProperLorentzMap (spatialLorentzConjugate R Λ) := by + refine ⟨(isLorentzMap_spatialRotation R).symm.trans + (hΛ.1.trans (isLorentzMap_spatialRotation R)), ?_⟩ + change LinearMap.det + (((spatialRotation R).toLinearEquiv.toLinearMap.comp Λ.toLinearEquiv.toLinearMap).comp + (spatialRotation R).symm.toLinearEquiv.toLinearMap) = 1 + rw [LinearMap.det_comp, LinearMap.det_comp, hΛ.2, mul_one] + exact (spatialRotation R).toLinearEquiv.det_mul_det_symm + +theorem spatialLorentzConjugate_isOrthochronous + (R : EuclideanSpace ℝ (Fin 3) ≃ₗᵢ[ℝ] EuclideanSpace ℝ (Fin 3)) + {Λ : Spacetime ≃L[ℝ] Spacetime} (hΛ : IsOrthochronousMap Λ) : + IsOrthochronousMap (spatialLorentzConjugate R Λ) := by + simpa only [IsOrthochronousMap, spatialLorentzConjugate_apply, + map_zero, spatialRotation_apply] using hΛ + +/-- Coordinate boost2 obtained from `spatialLorentzConjugate`. -/ +noncomputable def coordinateBoost2 (η : ℝ) : Spacetime ≃L[ℝ] Spacetime := + spatialLorentzConjugate (spatialCoordinatePermutation (Equiv.swap 0 1)) (boost η) + +/-- Coordinate boost3 obtained from `spatialLorentzConjugate`. -/ +noncomputable def coordinateBoost3 (η : ℝ) : Spacetime ≃L[ℝ] Spacetime := + spatialLorentzConjugate (spatialCoordinatePermutation (Equiv.swap 0 2)) (boost η) + +/-- Continuous linear equivalence for the coordinate Lorentz rotation13, of type `Spacetime ≃L[ℝ] +Spacetime`. -/ +noncomputable def coordinateLorentzRotation13 (θ : ℝ) : Spacetime ≃L[ℝ] Spacetime := + spatialLorentzConjugate (spatialCoordinatePermutation (Equiv.swap 1 2)) + (spatialRotation (spatialPlaneRotation θ)) + +/-- Continuous linear equivalence for the coordinate Lorentz rotation23, of type `Spacetime ≃L[ℝ] +Spacetime`. -/ +noncomputable def coordinateLorentzRotation23 (θ : ℝ) : Spacetime ≃L[ℝ] Spacetime := + spatialLorentzConjugate (spatialCoordinatePermutation (Equiv.swap 0 1)) + (coordinateLorentzRotation13 θ) + +theorem coordinateLorentzRotation13_eq (θ : ℝ) : + coordinateLorentzRotation13 θ = spatialRotation (spatialPlaneRotation13 θ) := by + apply ContinuousLinearEquiv.ext + funext x + apply Prod.ext + · rfl + · ext i + fin_cases i <;> simp [coordinateLorentzRotation13, spatialLorentzConjugate_apply, + spatialRotation_apply, spatialCoordinatePermutation, spatialPlaneRotation_apply, + spatialPlaneRotation13_apply, LinearIsometryEquiv.piLpCongrLeft_apply, + Equiv.piCongrLeft', Equiv.swap_apply_def] + +theorem coordinateLorentzRotation23_eq (θ : ℝ) : + coordinateLorentzRotation23 θ = spatialRotation (spatialPlaneRotation23 θ) := by + apply ContinuousLinearEquiv.ext + funext x + apply Prod.ext + · rfl + · ext i + fin_cases i <;> simp [coordinateLorentzRotation23, spatialLorentzConjugate_apply, + coordinateLorentzRotation13_eq, spatialRotation_apply, spatialCoordinatePermutation, + spatialPlaneRotation13_apply, spatialPlaneRotation23_apply, + LinearIsometryEquiv.piLpCongrLeft_apply, Equiv.piCongrLeft', Equiv.swap_apply_def] + +/-- Continuous linear equivalence for the lorentz parameter factor, of type `Spacetime ≃L[ℝ] +Spacetime`. -/ +noncomputable def lorentzParameterFactor (j : Fin 6) (s : ℝ) : + Spacetime ≃L[ℝ] Spacetime := + ![boost s, coordinateBoost2 s, spatialRotation (spatialPlaneRotation s), + coordinateLorentzRotation13 s, coordinateLorentzRotation23 s, coordinateBoost3 s] j + +theorem lorentzParameterFactor_isProper (j : Fin 6) (s : ℝ) : + IsProperLorentzMap (lorentzParameterFactor j s) := by + fin_cases j + · exact isProperLorentzMap_boost s + · exact spatialLorentzConjugate_isProper _ (isProperLorentzMap_boost s) + · exact isProperLorentzMap_spatialPlaneRotation s + · exact spatialLorentzConjugate_isProper _ (isProperLorentzMap_spatialPlaneRotation s) + · exact spatialLorentzConjugate_isProper _ + (spatialLorentzConjugate_isProper _ (isProperLorentzMap_spatialPlaneRotation s)) + · exact spatialLorentzConjugate_isProper _ (isProperLorentzMap_boost s) + +theorem lorentzParameterFactor_isOrthochronous (j : Fin 6) (s : ℝ) : + IsOrthochronousMap (lorentzParameterFactor j s) := by + fin_cases j + · exact isOrthochronousMap_boost s + · exact spatialLorentzConjugate_isOrthochronous _ (isOrthochronousMap_boost s) + · exact isOrthochronousMap_spatialRotation _ + · exact spatialLorentzConjugate_isOrthochronous _ (isOrthochronousMap_spatialRotation _) + · exact spatialLorentzConjugate_isOrthochronous _ + (spatialLorentzConjugate_isOrthochronous _ (isOrthochronousMap_spatialRotation _)) + · exact spatialLorentzConjugate_isOrthochronous _ (isOrthochronousMap_boost s) + +theorem lorentzParameterFactor_zero (j : Fin 6) : + lorentzParameterFactor j 0 = ContinuousLinearEquiv.refl ℝ Spacetime := by + apply ContinuousLinearEquiv.ext + funext x + fin_cases j <;> + simp [lorentzParameterFactor, coordinateBoost2, coordinateBoost3, + coordinateLorentzRotation13, coordinateLorentzRotation23, + spatialLorentzConjugate_apply, boost_apply, boostCLM_zero, + spatialRotation_apply, spatialPlaneRotation_zero] + +/-- Lorentz transformation obtained by composing the six one-parameter factors. -/ +noncomputable def lorentzParameterFamily (s : Fin 6 → ℝ) : + Spacetime ≃L[ℝ] Spacetime := + (lorentzParameterFactor 0 (s 0)).trans + ((lorentzParameterFactor 1 (s 1)).trans + ((lorentzParameterFactor 2 (s 2)).trans + ((lorentzParameterFactor 3 (s 3)).trans + ((lorentzParameterFactor 4 (s 4)).trans (lorentzParameterFactor 5 (s 5)))))) + +theorem lorentzParameterFamily_isProper (s : Fin 6 → ℝ) : + IsProperLorentzMap (lorentzParameterFamily s) := + (lorentzParameterFactor_isProper 0 _).trans + ((lorentzParameterFactor_isProper 1 _).trans + ((lorentzParameterFactor_isProper 2 _).trans + ((lorentzParameterFactor_isProper 3 _).trans + ((lorentzParameterFactor_isProper 4 _).trans (lorentzParameterFactor_isProper 5 _))))) + +theorem lorentzParameterFamily_isOrthochronous (s : Fin 6 → ℝ) : + IsOrthochronousMap (lorentzParameterFamily s) := by + have hc {Λ Γ : Spacetime ≃L[ℝ] Spacetime} + (hΛ : IsLorentzMap Λ ∧ IsOrthochronousMap Λ) + (hΓ : IsLorentzMap Γ ∧ IsOrthochronousMap Γ) : + IsLorentzMap (Λ.trans Γ) ∧ IsOrthochronousMap (Λ.trans Γ) := + ⟨hΛ.1.trans hΓ.1, IsOrthochronousMap.trans hΛ.1 hΓ.1 hΛ.2 hΓ.2⟩ + have hj (j : Fin 6) : IsLorentzMap (lorentzParameterFactor j (s j)) ∧ + IsOrthochronousMap (lorentzParameterFactor j (s j)) := + ⟨(lorentzParameterFactor_isProper j (s j)).1, + lorentzParameterFactor_isOrthochronous j (s j)⟩ + exact (hc (hj 0) (hc (hj 1) (hc (hj 2) (hc (hj 3) (hc (hj 4) (hj 5)))))).2 + +theorem lorentzParameterFamily_zero : + lorentzParameterFamily 0 = ContinuousLinearEquiv.refl ℝ Spacetime := by + apply ContinuousLinearEquiv.ext + funext x + simp [lorentzParameterFamily, lorentzParameterFactor_zero] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/MeasurableContourWeights.lean b/LeanPool/VacuumBellSeparation/Shell/MeasurableContourWeights.lean new file mode 100644 index 0000000000..b980305615 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/MeasurableContourWeights.lean @@ -0,0 +1,55 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourWeights + +/-! # Borel weights on the actual regular chart and physical contour -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +/-- Regular chart map extension. -/ +noncomputable def regularChartMapExtension (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) : + (Fin 3 → ℂ) → ComplexSpacetime := by + classical + exact (complexShellChartDomain m).piecewise (lorentzComplexShellChart m Λ) 0 + +theorem measurable_regularChartMapExtension (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) : + Measurable (regularChartMapExtension m Λ) := by + classical + apply ContinuousOn.measurable_piecewise _ continuous_const.continuousOn + (isOpen_complexShellChartDomain m).measurableSet + exact fun w hw => (differentiableAt_lorentzComplexShellChart Λ hw).continuousAt.continuousWithinAt + +theorem measurable_regularChartWeight_of_measurable (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) {F : ComplexSpacetime → ℝ≥0∞} (hF : Measurable F) : + Measurable (regularChartWeight m Λ F) := by + classical + have he : regularChartWeight m Λ F = (complexShellChartDomain m).indicator + (fun w => F (regularChartMapExtension m Λ w)) := by + funext w + by_cases hw : w ∈ complexShellChartDomain m + · simp only [regularChartWeight, regularChartMapExtension, + Set.piecewise_eq_of_mem _ _ _ hw, Set.indicator_of_mem hw] + · simp only [regularChartWeight, Set.piecewise_eq_of_notMem _ _ _ hw, + Set.indicator_of_notMem hw, Pi.zero_apply] + rw [he] + exact (hF.comp (measurable_regularChartMapExtension m Λ)).indicator + (isOpen_complexShellChartDomain m).measurableSet + +theorem measurable_physicalContourCutoffWeight_of_measurable (m θ R : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) {F : ComplexSpacetime → ℝ≥0∞} (hF : Measurable F) : + Measurable (physicalContourCutoffWeight m θ R Λ F) := + (hF.comp (continuous_physicalContourPoint m θ Λ).measurable).indicator + (isClosed_le ((continuous_dispersion m).comp continuous_snd) continuous_const).measurableSet + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetCompact.lean b/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetCompact.lean new file mode 100644 index 0000000000..52d2a75e4b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetCompact.lean @@ -0,0 +1,66 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellVolumeCoordinates + +/-! # Compactness of the literal normalized target, including mass zero -/ + +@[expose] public section + +namespace VacuumBellSeparation + +theorem continuous_euclidSq : Continuous euclidSq := by + unfold euclidSq + fun_prop + +theorem continuous_reLorentzSq : Continuous reLorentzSq := by + unfold reLorentzSq reSpatialSq + fun_prop + +theorem isClosed_normalizedTarget : IsClosed normalizedTarget := by + have h0 : IsClosed {p : ℝ × ComplexSpacetime | 0 ≤ p.1} := + isClosed_le continuous_const continuous_fst + have h1 : IsClosed {p : ℝ × ComplexSpacetime | p.1 ≤ 1} := + isClosed_le continuous_fst continuous_const + have hs : IsClosed {p : ℝ × ComplexSpacetime | p.2 ∈ complexShell p.1} := by + change IsClosed {p : ℝ × ComplexSpacetime | + p.2.1 ^ 2 - spatialDot p.2.2 p.2.2 = (p.1 : ℂ) ^ 2} + apply isClosed_eq <;> (try simp only [spatialDot]) <;> fun_prop + have he : IsClosed {p : ℝ × ComplexSpacetime | euclidSq p.2 ≤ 16 ^ 2} := + isClosed_le (continuous_euclidSq.comp continuous_snd) continuous_const + have hr : IsClosed {p : ℝ × ComplexSpacetime | reLorentzSq p.2 ≤ -16} := + isClosed_le (continuous_reLorentzSq.comp continuous_snd) continuous_const + exact h0.inter (h1.inter (hs.inter (he.inter hr))) + +theorem normalizedTarget_euclidean_bound {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) : ‖complexSpacetimeEuclideanEquiv z‖ ≤ 16 := by + have h := hz.2.2.2.1 + rw [← complexSpacetimeEuclideanEquiv_norm_sq] at h + nlinarith [norm_nonneg (complexSpacetimeEuclideanEquiv z)] + +theorem isCompact_normalizedTarget : IsCompact normalizedTarget := by + let T : (ℝ × ComplexSpacetime) ≃ₜ (ℝ × ShellEuclideanAmbient) := + (Homeomorph.refl ℝ).prodCongr complexSpacetimeEuclideanEquiv.toHomeomorph + have hc : IsCompact ((Set.Icc (0 : ℝ) 1) ×ˢ Metric.closedBall (0 : ShellEuclideanAmbient) 16) := + isCompact_Icc.prod (isCompact_closedBall _ _) + apply (hc.image T.symm.continuous).of_isClosed_subset isClosed_normalizedTarget + intro p hp + refine ⟨T p, ?_, T.symm_apply_apply p⟩ + refine ⟨⟨hp.1, hp.2.1⟩, ?_⟩ + change complexSpacetimeEuclideanEquiv p.2 ∈ + Metric.closedBall (0 : ShellEuclideanAmbient) 16 + simpa only [Metric.mem_closedBall, dist_zero_right] using + normalizedTarget_euclidean_bound hp + +theorem normalizedTarget_finite_subcover {ι : Type*} + (U : ι → Set (ℝ × ComplexSpacetime)) (hU : ∀ i, IsOpen (U i)) + (hcover : normalizedTarget ⊆ ⋃ i, U i) : + ∃ s : Finset ι, normalizedTarget ⊆ ⋃ i ∈ s, U i := + isCompact_normalizedTarget.elim_finite_subcover U hU hcover + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetGeometry.lean b/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetGeometry.lean new file mode 100644 index 0000000000..e5dc107fdc --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetGeometry.lean @@ -0,0 +1,149 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.LorentzFrameMatching + +/-! +# Real and imaginary Minkowski geometry of the normalized target + +These are identities of the original complex shell and the literal +normalizedTarget, including its zero-mass boundary. They supply the +strict negative pair used by the explicit Lorentz frame construction. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace + +theorem minkowskiForm_complexSpacetimeRe (z : ComplexSpacetime) : + minkowskiForm (complexSpacetimeRe z) (complexSpacetimeRe z) = reLorentzSq z := by + simp only [minkowskiForm, real_inner_self_eq_norm_sq, complexSpacetimeRe] + rw [EuclideanSpace.real_norm_sq_eq] + simp only [reLorentzSq, reSpatialSq, pow_two] + +theorem complexMinkowskiForm_square_re (z : ComplexSpacetime) : + (complexMinkowskiForm z z).re = + minkowskiForm (complexSpacetimeRe z) (complexSpacetimeRe z) - + minkowskiForm (complexSpacetimeIm z) (complexSpacetimeIm z) := by + simp only [complexMinkowskiForm, spatialDot_eq, Complex.sub_re, Complex.add_re, + Complex.mul_re, minkowskiForm, real_inner_self_eq_norm_sq, complexSpacetimeRe, + complexSpacetimeIm, EuclideanSpace.real_norm_sq_eq, + Fin.sum_univ_three] + ring + +theorem complexMinkowskiForm_square_im (z : ComplexSpacetime) : + (complexMinkowskiForm z z).im = + 2 * minkowskiForm (complexSpacetimeRe z) (complexSpacetimeIm z) := by + simp only [complexMinkowskiForm, spatialDot_eq, Complex.sub_im, Complex.add_im, + Complex.mul_im, minkowskiForm, complexSpacetimeRe, complexSpacetimeIm, + EuclideanSpace.inner_eq_star_dotProduct, dotProduct, + Pi.star_apply, star_trivial, Fin.sum_univ_three] + ring + +theorem complexShell_real_imaginary_pair {t : ℝ} {z : ComplexSpacetime} + (hz : z ∈ complexShell t) : + minkowskiForm (complexSpacetimeRe z) (complexSpacetimeRe z) - + minkowskiForm (complexSpacetimeIm z) (complexSpacetimeIm z) = t ^ 2 ∧ + minkowskiForm (complexSpacetimeRe z) (complexSpacetimeIm z) = 0 := by + have h : complexMinkowskiForm z z = (t : ℂ) ^ 2 := by + simpa only [complexShell, Set.mem_ofPred_eq, complexMinkowskiForm, pow_two] using hz + have hr := congrArg Complex.re h + have hi := congrArg Complex.im h + rw [complexMinkowskiForm_square_re] at hr + rw [complexMinkowskiForm_square_im] at hi + simp only [← Complex.ofReal_pow, Complex.ofReal_re, Complex.ofReal_im] at hr hi + exact ⟨hr, by linarith⟩ + +theorem euclidSq_real_imaginary (z : ComplexSpacetime) : + euclidSq z = + (complexSpacetimeRe z).1 ^ 2 + (complexSpacetimeIm z).1 ^ 2 + + ‖(complexSpacetimeRe z).2‖ ^ 2 + ‖(complexSpacetimeIm z).2‖ ^ 2 := by + simp only [euclidSq, norm_sq_eq_re_im, complexSpacetimeRe, complexSpacetimeIm, + EuclideanSpace.real_norm_sq_eq, Fin.sum_univ_three] + ring + +theorem complexShell_euclidSq_identity {t : ℝ} {z : ComplexSpacetime} + (hz : z ∈ complexShell t) : + euclidSq z = 2 * ((complexSpacetimeRe z).1 ^ 2 + (complexSpacetimeIm z).1 ^ 2) - + 2 * minkowskiForm (complexSpacetimeRe z) (complexSpacetimeRe z) + t ^ 2 := by + have h := (complexShell_real_imaginary_pair hz).1 + simp only [minkowskiForm, real_inner_self_eq_norm_sq, ← pow_two] at h ⊢ + rw [euclidSq_real_imaginary] + linarith + +theorem normalizedTarget_real_negative {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) : + minkowskiForm (complexSpacetimeRe z) (complexSpacetimeRe z) < 0 := by + rw [minkowskiForm_complexSpacetimeRe] + have h := hz.2.2.2.2 + linarith + +theorem normalizedTarget_imaginary_negative {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) : + minkowskiForm (complexSpacetimeIm z) (complexSpacetimeIm z) < 0 := by + have h := (complexShell_real_imaginary_pair hz.2.2.1).1 + have hn := normalizedTarget_real_negative hz + nlinarith [sq_nonneg t] + +theorem normalizedTarget_pair_orthogonal {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) : + minkowskiForm (complexSpacetimeRe z) (complexSpacetimeIm z) = 0 := + (complexShell_real_imaginary_pair hz.2.2.1).2 + +theorem normalizedTarget_real_length_bounds {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) : + 4 ≤ negativeMinkowskiLength (complexSpacetimeRe z) ∧ + negativeMinkowskiLength (complexSpacetimeRe z) ≤ 16 := by + have hs := negativeMinkowskiLength_sq (normalizedTarget_real_negative hz) + have hn := (negativeMinkowskiLength_pos (normalizedTarget_real_negative hz)).le + have hlow := hz.2.2.2.2 + rw [← minkowskiForm_complexSpacetimeRe] at hlow + have he := complexShell_euclidSq_identity hz.2.2.1 + have hb := hz.2.2.2.1 + constructor + · nlinarith + · nlinarith [sq_nonneg (complexSpacetimeRe z).1, sq_nonneg (complexSpacetimeIm z).1, + sq_nonneg t] + +theorem normalizedTarget_time_squares_le {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) : + (complexSpacetimeRe z).1 ^ 2 + (complexSpacetimeIm z).1 ^ 2 ≤ 128 := by + have he := complexShell_euclidSq_identity hz.2.2.1 + have hb := hz.2.2.2.1 + have hn := normalizedTarget_real_negative hz + nlinarith [sq_nonneg t] + +/-- Continuous linear equivalence for the normalized target frame, of type `Spacetime ≃L[ℝ] +Spacetime`. -/ +noncomputable def normalizedTargetFrame {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) : Spacetime ≃L[ℝ] Spacetime := + lorentzNegativePairFrame (normalizedTarget_real_negative hz) + (normalizedTarget_imaginary_negative hz) (normalizedTarget_pair_orthogonal hz) + +theorem normalizedTargetFrame_gamma_le_three {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) : (normalizedTargetFrame hz (1, 0)).1 ≤ 3 := by + have hr : 16 ≤ -minkowskiForm (complexSpacetimeRe z) (complexSpacetimeRe z) := by + have h := hz.2.2.2.2 + rw [← minkowskiForm_complexSpacetimeRe] at h + linarith + have hi : 16 ≤ -minkowskiForm (complexSpacetimeIm z) (complexSpacetimeIm z) := by + have h := (complexShell_real_imaginary_pair hz.2.2.1).1 + nlinarith [sq_nonneg t] + have h₁ := div_le_div_of_nonneg_left (sq_nonneg (complexSpacetimeRe z).1) + (by norm_num : (0 : ℝ) < 16) hr + have h₂ := div_le_div_of_nonneg_left (sq_nonneg (complexSpacetimeIm z).1) + (by norm_num : (0 : ℝ) < 16) hi + have hg := lorentzNegativePairFrame_gamma_sq (normalizedTarget_real_negative hz) + (normalizedTarget_imaginary_negative hz) (normalizedTarget_pair_orthogonal hz) + change (normalizedTargetFrame hz (1, 0)).1 ^ 2 = _ at hg + have ht := normalizedTarget_time_squares_le hz + nlinarith + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetLocalDomination.lean b/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetLocalDomination.lean new file mode 100644 index 0000000000..3a95f4205f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetLocalDomination.lean @@ -0,0 +1,118 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ActualInducedContourLocalBound +public import LeanPool.VacuumBellSeparation.Shell.NormalizedTargetCompact + +/-! +# Genuine local contour patches cover the normalized target + +The patch data below are constructed from the explicit proper future +Lorentz preimages and the actual local domination theorem. Their proof +fields record already proved facts; none are physical model assumptions. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Set +open scoped ENNReal + +/-- A Lorentz-frame neighborhood equipped with a uniform bound on the contour measure. -/ +structure ControlledContourPatch (θ : ℝ) where + /-- Lorentz frame used to describe the shell points in the patch. -/ + frame : Spacetime ≃L[ℝ] Spacetime + proper : IsProperLorentzMap frame + future : IsOrthochronousMap frame + /-- Radius of the parameter polydisc used in the local estimate. -/ + radius : ℝ + radius_pos : 0 < radius + norm_bound : ∀ s : Fin 6 → ℝ, ‖s‖ ≤ radius → + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily frame s) < 32 / Real.sin θ ∧ + spacetimeEuclideanOperatorNorm (prefixedLorentzFamily frame s).symm < 32 / Real.sin θ + /-- Open parameter neighborhood where the local shell estimate applies. -/ + neighborhood : Set (ℝ × ComplexSpacetime) + isOpen_neighborhood : IsOpen neighborhood + /-- Uniform comparison coefficient for the contour measure on the patch. -/ + coefficient : ℝ≥0∞ + coefficient_pos : 0 < coefficient + coefficient_lt_top : coefficient < ∞ + integral_bound : ∀ t : ℝ, ∀ F : ComplexSpacetime → ℝ≥0∞, Measurable F → + coefficient * (∫⁻ z in {z : complexShell t | (t, z.1) ∈ neighborhood}, + F z.1 ∂inducedRegularShellVolume t) ≤ + ∫⁻ y, physicalContourCutoffWeight t θ (32 / Real.sin θ) frame F y + ∂(smoothBallProbability (Fin 6 → ℝ) radius radius_pos).prod (oneParticleMeasure t) + +theorem normalizedTarget_exists_contourPatch {θ : ℝ} (hθ : 0 < Real.sin θ) + {t : ℝ} {z : ComplexSpacetime} (hz : (t, z) ∈ normalizedTarget) : + ∃ D : ControlledContourPatch θ, (t, z) ∈ D.neighborhood := by + let p := normalizedTargetMomentum t z θ + let B := p 1 + let Λ := normalizedTargetPreimageMap hz hθ + have hB : 0 < B := normalizedTargetMomentum_transverse_pos hz hθ + have hp : radialShellMomentum B 0 = p := by + have ha := normalizedTargetMomentum_axis_coordinates t z θ + ext i + fin_cases i <;> simp [radialShellMomentum, B, p, ha.1, ha.2] + have he : radialShellEnergy t B 0 < 32 / Real.sin θ := by + rw [← radialShellMomentum_dispersion, hp] + exact normalizedTargetMomentum_energy_lt hz hθ + have hpoint : complexifiedSpacetimeMap Λ (radialShellContour t B θ 0) = z := by + rw [radialShellContour_eq_boost, hp] + exact normalizedTargetPreimageMap_boost hz hθ + have hnorm := normalizedTargetPreimageMap_norm_lt hz hθ + obtain ⟨ρ, hρ, hbound, V, hV, hcenter, k, hk, hkt, hint⟩ := + actualContour_induced_local_bound (normalizedTargetPreimageMap_isProper hz hθ).1 + t hB hθ he hnorm.1 hnorm.2 + refine ⟨{ + frame := Λ + proper := normalizedTargetPreimageMap_isProper hz hθ + future := normalizedTargetPreimageMap_isOrthochronous hz hθ + radius := ρ + radius_pos := hρ + norm_bound := hbound + neighborhood := V + isOpen_neighborhood := hV + coefficient := k + coefficient_pos := hk + coefficient_lt_top := hkt + integral_bound := hint }, ?_⟩ + change (t, complexifiedSpacetimeMap Λ (radialShellContour t B θ 0)) ∈ V at hcenter + rw [hpoint] at hcenter + exact hcenter + +theorem normalizedTarget_nonempty : normalizedTarget.Nonempty := by + refine ⟨(0, (0, ![4, 4 * Complex.I, 0])), ?_⟩ + norm_num [normalizedTarget, complexShell, spatialDot, Fin.sum_univ_three, + euclidSq, reLorentzSq, reSpatialSq, norm_mul, Complex.norm_I, Complex.I_sq, + Complex.ext_iff, Complex.mul_re, Complex.mul_im, pow_two] + +theorem normalizedTarget_finite_contourPatches {θ : ℝ} (hθ : 0 < Real.sin θ) : + ∃ N : ℕ, 0 < N ∧ ∃ D : Fin N → ControlledContourPatch θ, + normalizedTarget ⊆ ⋃ i, (D i).neighborhood := by + classical + choose D hD using fun x : normalizedTarget => normalizedTarget_exists_contourPatch hθ x.2 + obtain ⟨s, hs⟩ := normalizedTarget_finite_subcover (fun x => (D x).neighborhood) + (fun x => (D x).isOpen_neighborhood) (fun x hx => mem_iUnion.mpr ⟨⟨x, hx⟩, hD ⟨x, hx⟩⟩) + have hsne : s.Nonempty := by + obtain ⟨x, hx⟩ := normalizedTarget_nonempty + obtain ⟨i, hi⟩ := mem_iUnion.mp (hs hx) + obtain ⟨his, _⟩ := mem_iUnion.mp hi + exact ⟨i, his⟩ + let e := (Fintype.equivFin {i // i ∈ s}).symm + refine ⟨Fintype.card {i // i ∈ s}, ?_, fun i => D (e i).1, ?_⟩ + · have : Nonempty {i // i ∈ s} := ⟨⟨hsne.choose, hsne.choose_spec⟩⟩ + exact Fintype.card_pos + · intro x hx + obtain ⟨i, hi⟩ := mem_iUnion.mp (hs hx) + obtain ⟨his, hxi⟩ := mem_iUnion.mp hi + refine mem_iUnion.mpr ⟨e.symm ⟨i, his⟩, ?_⟩ + simpa only [Equiv.apply_symm_apply] using hxi + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetPreimage.lean b/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetPreimage.lean new file mode 100644 index 0000000000..597c3ae2f5 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/NormalizedTargetPreimage.lean @@ -0,0 +1,165 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.CanonicalShellPreimage + +/-! +# An actual controlled Lorentz preimage of every normalized target + +The map and momentum are explicit constructions from the real and +imaginary parts. Both genuine Euclidean operator norms and the energy +are strictly below 32/sin(theta). The transverse momentum is positive, +including at mass zero, so the manuscript's fold is avoided. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Normalized target momentum defined as `canonicalShellMomentum t (negativeMinkowskiLength +(complexSpacetimeRe z)) θ`. -/ +noncomputable def normalizedTargetMomentum (t : ℝ) (z : ComplexSpacetime) (θ : ℝ) : + EuclideanSpace ℝ (Fin 3) := + canonicalShellMomentum t (negativeMinkowskiLength (complexSpacetimeRe z)) θ + +/-- Normalized target preimage map of type `Spacetime ≃L[ℝ] Spacetime`. -/ +noncomputable def normalizedTargetPreimageMap {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + Spacetime ≃L[ℝ] Spacetime := + lorentzNegativePairMatch + (canonicalShellReal_negative + (negativeMinkowskiLength_pos (normalizedTarget_real_negative hz)) hθ) + (canonicalShellImaginary_negative + (negativeMinkowskiLength_pos (normalizedTarget_real_negative hz)) hθ) + (canonicalShellPair_orthogonal t (negativeMinkowskiLength (complexSpacetimeRe z)) θ) + (normalizedTarget_real_negative hz) (normalizedTarget_imaginary_negative hz) + (normalizedTarget_pair_orthogonal hz) + +theorem normalizedTargetPreimageMap_isProper {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + IsProperLorentzMap (normalizedTargetPreimageMap hz hθ) := + lorentzNegativePairMatch_isProper _ _ _ _ _ _ + +theorem normalizedTargetPreimageMap_isOrthochronous {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + IsOrthochronousMap (normalizedTargetPreimageMap hz hθ) := + lorentzNegativePairMatch_isOrthochronous _ _ _ _ _ _ + +theorem normalizedTargetPreimageMap_boost {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + complexifiedSpacetimeMap (normalizedTargetPreimageMap hz hθ) + (complexShellBoost t ((θ : ℂ) * Complex.I) (normalizedTargetMomentum t z θ)) = z := by + let ρ := negativeMinkowskiLength (complexSpacetimeRe z) + have hρ : 0 < ρ := negativeMinkowskiLength_pos (normalizedTarget_real_negative hz) + have hr : minkowskiForm (canonicalShellReal t ρ θ) (canonicalShellReal t ρ θ) = + minkowskiForm (complexSpacetimeRe z) (complexSpacetimeRe z) := by + rw [canonicalShellReal_square hρ hθ] + dsimp only [ρ] + rw [negativeMinkowskiLength_sq (normalizedTarget_real_negative hz), neg_neg] + have hi : minkowskiForm (canonicalShellImaginary t ρ θ) (canonicalShellImaginary t ρ θ) = + minkowskiForm (complexSpacetimeIm z) (complexSpacetimeIm z) := by + rw [canonicalShellImaginary_square hθ] + have hs := negativeMinkowskiLength_sq (normalizedTarget_real_negative hz) + change ρ ^ 2 = _ at hs + have hp := (complexShell_real_imaginary_pair hz.2.2.1).1 + linarith + change complexifiedSpacetimeMap _ (complexShellBoost t ((θ : ℂ) * Complex.I) + (canonicalShellMomentum t ρ θ)) = z + rw [canonicalShellBoost_pair hρ hθ] + exact (lorentzNegativePairMatch_complex _ _ _ _ _ _ hr hi).trans + (complexSpacetime_re_add_im z) + +theorem normalizedTargetMomentum_transverse_pos {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + 0 < normalizedTargetMomentum t z θ 1 := + canonicalShellTransverse_pos (negativeMinkowskiLength_pos (normalizedTarget_real_negative hz)) hθ + +theorem normalizedTargetMomentum_axis_coordinates (t : ℝ) (z : ComplexSpacetime) (θ : ℝ) : + normalizedTargetMomentum t z θ 0 = 0 ∧ normalizedTargetMomentum t z θ 2 = 0 := by + simp [normalizedTargetMomentum, canonicalShellMomentum] + +theorem normalizedTargetMomentum_energy_pos {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + 0 < dispersion t (normalizedTargetMomentum t z θ) := by + rw [normalizedTargetMomentum, canonicalShellMomentum_dispersion + (negativeMinkowskiLength_pos (normalizedTarget_real_negative hz)) hθ] + exact canonicalShellEnergy_pos + (negativeMinkowskiLength_pos (normalizedTarget_real_negative hz)) hθ + +theorem normalizedTargetMomentum_energy_lt {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + dispersion t (normalizedTargetMomentum t z θ) < 32 / Real.sin θ := by + rw [normalizedTargetMomentum, canonicalShellMomentum_dispersion + (negativeMinkowskiLength_pos (normalizedTarget_real_negative hz)) hθ, canonicalShellEnergy] + apply (div_lt_div_iff_of_pos_right hθ).2 + have hr := normalizedTarget_real_length_bounds hz + have ht₀ : 0 ≤ t := hz.1 + have ht₁ : t ≤ 1 := hz.2.1 + have htsq : t ^ 2 ≤ 1 := by nlinarith + have hrsq : negativeMinkowskiLength (complexSpacetimeRe z) ^ 2 ≤ 256 := by + nlinarith [mul_nonneg (sub_nonneg.mpr hr.2) + (show 0 ≤ 16 + negativeMinkowskiLength (complexSpacetimeRe z) by linarith)] + have hs := Real.sq_sqrt (add_nonneg (sq_nonneg t) + (sq_nonneg (negativeMinkowskiLength (complexSpacetimeRe z)))) + nlinarith [Real.sqrt_nonneg (t ^ 2 + negativeMinkowskiLength (complexSpacetimeRe z) ^ 2)] + +theorem normalizedTargetPreimageMap_norm_bounds {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + spacetimeEuclideanOperatorNorm (normalizedTargetPreimageMap hz hθ) ≤ 24 / Real.sin θ ∧ + spacetimeEuclideanOperatorNorm (normalizedTargetPreimageMap hz hθ).symm ≤ 24 / Real.sin θ + := by + let ρ := negativeMinkowskiLength (complexSpacetimeRe z) + have hρ : 0 < ρ := negativeMinkowskiLength_pos (normalizedTarget_real_negative hz) + let S := canonicalShellFrame (t := t) hρ hθ + let T := normalizedTargetFrame hz + have ht : (T (1, 0)).1 ≤ 3 := normalizedTargetFrame_gamma_le_three hz + have hs : (S (1, 0)).1 * Real.sin θ ≤ 2 := + canonicalShellFrame_gamma_mul_sin_le_two hz.1 hz.2.1 + (normalizedTarget_real_length_bounds hz).1 hθ + have hsp : 0 ≤ (S (1, 0)).1 := + (lorentzNegativePairFrame_isOrthochronous _ _ _).le + have hb : 4 * (T (1, 0)).1 * (S (1, 0)).1 ≤ 24 / Real.sin θ := by + apply (le_div_iff₀ hθ).2 + have h := mul_le_mul ht hs (mul_nonneg hsp hθ.le) (by norm_num : (0 : ℝ) ≤ 3) + nlinarith + constructor + · exact (lorentzNegativePairMatch_norm_le _ _ _ _ _ _).trans hb + · exact (lorentzNegativePairMatch_inverse_norm_le _ _ _ _ _ _).trans hb + +theorem normalizedTargetPreimageMap_norm_lt {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + spacetimeEuclideanOperatorNorm (normalizedTargetPreimageMap hz hθ) < 32 / Real.sin θ ∧ + spacetimeEuclideanOperatorNorm (normalizedTargetPreimageMap hz hθ).symm < 32 / Real.sin θ + := by + have h := normalizedTargetPreimageMap_norm_bounds hz hθ + have hstrict : 24 / Real.sin θ < 32 / Real.sin θ := + (div_lt_div_iff_of_pos_right hθ).2 (by norm_num) + exact ⟨h.1.trans_lt hstrict, h.2.trans_lt hstrict⟩ + +/-- Literal regular reference preimages, with strict energy and inverse-norm +margins. The parameter set includes mass zero. -/ +theorem normalizedTarget_exists_controlled_preimage {t : ℝ} {z : ComplexSpacetime} + (hz : (t, z) ∈ normalizedTarget) {θ : ℝ} (hθ : 0 < Real.sin θ) : + ∃ (p : EuclideanSpace ℝ (Fin 3)) (Λ : Spacetime ≃L[ℝ] Spacetime), + IsProperLorentzMap Λ ∧ IsOrthochronousMap Λ ∧ + complexifiedSpacetimeMap Λ (complexShellBoost t ((θ : ℂ) * Complex.I) p) = z ∧ + p 0 = 0 ∧ 0 < p 1 ∧ p 2 = 0 ∧ + 0 < dispersion t p ∧ dispersion t p < 32 / Real.sin θ ∧ + spacetimeEuclideanOperatorNorm Λ < 32 / Real.sin θ ∧ + spacetimeEuclideanOperatorNorm Λ.symm < 32 / Real.sin θ := by + exact ⟨normalizedTargetMomentum t z θ, normalizedTargetPreimageMap hz hθ, + normalizedTargetPreimageMap_isProper hz hθ, + normalizedTargetPreimageMap_isOrthochronous hz hθ, + normalizedTargetPreimageMap_boost hz hθ, + (normalizedTargetMomentum_axis_coordinates t z θ).1, + normalizedTargetMomentum_transverse_pos hz hθ, + (normalizedTargetMomentum_axis_coordinates t z θ).2, + normalizedTargetMomentum_energy_pos hz hθ, normalizedTargetMomentum_energy_lt hz hθ, + (normalizedTargetPreimageMap_norm_lt hz hθ).1, (normalizedTargetPreimageMap_norm_lt hz hθ).2⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/NullDiscDefs.lean b/LeanPool/VacuumBellSeparation/Shell/NullDiscDefs.lean new file mode 100644 index 0000000000..95a1195449 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/NullDiscDefs.lean @@ -0,0 +1,55 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Complex.Basic + +/-! +# Literal statement construction extracted from Shell/NullDiscs + +The moved declarations retain their original text. Later target proofs remain separate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +noncomputable section + +/-- Bilinear spatial product `𝐳 · 𝐰 = Σ_j z_j w_j` on `ℂ³` (no conjugation). -/ +def spatialDot (z w : Fin 3 → ℂ) : ℂ := ∑ j, z j * w j + +/-- The complex mass shell `𝒬_μ = {z : z₀² - 𝐳·𝐳 = μ²}`; points are pairs `(z₀, 𝐳)`. -/ +def complexShell (μ : ℝ) : Set (ℂ × (Fin 3 → ℂ)) := + {z | z.1 ^ 2 - spatialDot z.2 z.2 = (μ : ℂ) ^ 2} + +/-- Squared Euclidean norm `|z|_E² = |z₀|² + Σ_j |z_j|²`. -/ +def euclidSq (z : ℂ × (Fin 3 → ℂ)) : ℝ := ‖z.1‖ ^ 2 + ∑ j, ‖z.2 j‖ ^ 2 + +/-- Squared Euclidean length of the real part of the spatial components, `|Re 𝐳|²`. -/ +def reSpatialSq (z : Fin 3 → ℂ) : ℝ := ∑ j, (z j).re ^ 2 + +/-- Lorentzian square of the real part, `(Re z)² = (Re z₀)² - |Re 𝐳|²`. -/ +def reLorentzSq (z : ℂ × (Fin 3 → ℂ)) : ℝ := z.1.re ^ 2 - reSpatialSq z.2 + +/-- The compact normalized set `𝒵` of equation (5.4), with `|z|_E ≤ 16` written in squared form. -/ +def normalizedTarget : Set (ℝ × (ℂ × (Fin 3 → ℂ))) := + {p | 0 ≤ p.1 ∧ p.1 ≤ 1 ∧ p.2 ∈ complexShell p.1 ∧ euclidSq p.2 ≤ 16 ^ 2 ∧ reLorentzSq p.2 ≤ -16} + +/-- The affine disc `ζ ↦ z + 8𝓔 ζ (0, 𝐧)`. -/ +def nullDisc (z : ℂ × (Fin 3 → ℂ)) (En : ℝ) (n : Fin 3 → ℂ) (ζ : ℂ) : ℂ × (Fin 3 → ℂ) := + (z.1, fun j => z.2 j + (8 * En : ℂ) * ζ * n j) + +/-- Rescaling of a spacetime point by a real factor `1/𝓔`. -/ +def scaleBy (En : ℝ) (z : ℂ × (Fin 3 → ℂ)) : ℂ × (Fin 3 → ℂ) := + (z.1 / (En : ℂ), fun j => z.2 j / (En : ℂ)) + +/-! ### Coordinate helpers -/ + + +end +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/NullDiscs.lean b/LeanPool/VacuumBellSeparation/Shell/NullDiscs.lean new file mode 100644 index 0000000000..973261b34c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/NullDiscs.lean @@ -0,0 +1,284 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.NullDiscDefs +public import Mathlib.Algebra.Order.Star.Real +public import Mathlib.Analysis.CStarAlgebra.Classes +public import Mathlib.Tactic.Lemma +public import Mathlib.Tactic.Linter.Style +public import Mathlib.Tactic.Polynomial.Basic +public import Mathlib.Tactic.ReduceModChar +public import Mathlib.Analysis.Complex.Polynomial.Basic + +/-! +# Lemma 5.3: null analytic discs + +Formalization of Lemma 5.3 ("Null analytic discs") of Section 5 of the manuscript. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +noncomputable section + +lemma spatialDot_eq (z w : Fin 3 → ℂ) : + spatialDot z w = z 0 * w 0 + z 1 * w 1 + z 2 * w 2 := by + unfold spatialDot + rw [Fin.sum_univ_three] + +lemma norm_sq_eq_re_im (x : ℂ) : ‖x‖ ^ 2 = x.re ^ 2 + x.im ^ 2 := by + rw [Complex.sq_norm, Complex.normSq_apply] + ring + +/-! ### Milestone 1: a null vector orthogonal to a given vector -/ + +lemma exists_null_of_orth (w0 w1 w2 u0 u1 u2 : ℂ) (hu : u0 ≠ 0 ∨ u1 ≠ 0 ∨ u2 ≠ 0) + (hwu : w0 * u0 + w1 * u1 + w2 * u2 = 0) (hww : w0 * w0 + w1 * w1 + w2 * w2 ≠ 0) : + ∃ n0 n1 n2 : ℂ, (n0 ≠ 0 ∨ n1 ≠ 0 ∨ n2 ≠ 0) ∧ + w0 * n0 + w1 * n1 + w2 * n2 = 0 ∧ n0 * n0 + n1 * n1 + n2 * n2 = 0 := by + by_cases huu : u0 * u0 + u1 * u1 + u2 * u2 = 0 + · exact ⟨u0, u1, u2, hu, hwu, huu⟩ + obtain ⟨σ, hσ⟩ := IsAlgClosed.exists_pow_nat_eq (w0 * w0 + w1 * w1 + w2 * w2) + (by norm_num : 0 < 2) + refine ⟨σ * u0 + Complex.I * (w1 * u2 - w2 * u1), σ * u1 + Complex.I * (w2 * u0 - w0 * u2), + σ * u2 + Complex.I * (w0 * u1 - w1 * u0), ?_, ?_, ?_⟩ + · by_contra hcon + push Not at hcon + obtain ⟨h0, h1, h2⟩ := hcon + have key : 2 * (w0 * w0 + w1 * w1 + w2 * w2) * (u0 * u0 + u1 * u1 + u2 * u2) = 0 := by + linear_combination (σ * u0 - Complex.I * (w1 * u2 - w2 * u1)) * h0 + + (σ * u1 - Complex.I * (w2 * u0 - w0 * u2)) * h1 + + (σ * u2 - Complex.I * (w0 * u1 - w1 * u0)) * h2 + - (u0 * u0 + u1 * u1 + u2 * u2) * hσ + (w0 * u0 + w1 * u1 + w2 * u2) * hwu + + ((w1 * u2 - w2 * u1) * (w1 * u2 - w2 * u1) + (w2 * u0 - w0 * u2) * (w2 * u0 - w0 * u2) + + (w0 * u1 - w1 * u0) * (w0 * u1 - w1 * u0)) * Complex.I_sq + exact mul_ne_zero (mul_ne_zero two_ne_zero hww) huu key + · linear_combination σ * hwu + · linear_combination (u0 * u0 + u1 * u1 + u2 * u2) * hσ + (w0 * u0 + w1 * u1 + w2 * u2) * hwu + + ((w1 * u2 - w2 * u1) * (w1 * u2 - w2 * u1) + (w2 * u0 - w0 * u2) * (w2 * u0 - w0 * u2) + + (w0 * u1 - w1 * u0) * (w0 * u1 - w1 * u0)) * Complex.I_sq + +lemma exists_null_scalar (w0 w1 w2 : ℂ) : ∃ n0 n1 n2 : ℂ, (n0 ≠ 0 ∨ n1 ≠ 0 ∨ n2 ≠ 0) ∧ + w0 * n0 + w1 * n1 + w2 * n2 = 0 ∧ n0 * n0 + n1 * n1 + n2 * n2 = 0 := by + by_cases hww : w0 * w0 + w1 * w1 + w2 * w2 = 0 + · by_cases hw : w0 = 0 ∧ w1 = 0 ∧ w2 = 0 + · obtain ⟨h0, h1, h2⟩ := hw + refine ⟨1, Complex.I, 0, Or.inl one_ne_zero, ?_, ?_⟩ + · simp [h0, h1, h2] + · linear_combination Complex.I_sq + · refine ⟨w0, w1, w2, ?_, hww, hww⟩ + by_contra hcon + push Not at hcon + exact hw hcon + · by_cases h2 : w2 = 0 + · by_cases h1 : w1 = 0 + · have h0 : w0 ≠ 0 := by + intro h0 + apply hww + simp [h0, h1, h2] + exact exists_null_of_orth w0 w1 w2 (-w2) 0 w0 (Or.inr (Or.inr h0)) (by ring) hww + · exact exists_null_of_orth w0 w1 w2 w1 (-w0) 0 (Or.inl h1) (by ring) hww + · exact exists_null_of_orth w0 w1 w2 0 w2 (-w1) (Or.inr (Or.inl h2)) (by ring) hww + +/-- Milestone 1: for every `𝐰 ∈ ℂ³` there is a nonzero `𝐧` with `𝐰·𝐧 = 0` and `𝐧·𝐧 = 0`. -/ +theorem exists_null_vector (w : Fin 3 → ℂ) : + ∃ n : Fin 3 → ℂ, n ≠ 0 ∧ spatialDot w n = 0 ∧ spatialDot n n = 0 := by + obtain ⟨n0, n1, n2, hne, hwn, hnn⟩ := exists_null_scalar (w 0) (w 1) (w 2) + refine ⟨![n0, n1, n2], ?_, ?_, ?_⟩ + · intro hv + have e0 : n0 = 0 := by simpa using congrFun hv 0 + have e1 : n1 = 0 := by simpa using congrFun hv 1 + have e2 : n2 = 0 := by simpa using congrFun hv 2 + rcases hne with h | h | h + · exact h e0 + · exact h e1 + · exact h e2 + · rw [spatialDot_eq]; simpa using hwn + · rw [spatialDot_eq]; simpa using hnn + +/-! ### Milestone 2: normalization -/ + +/-- Milestone 2: a null vector orthogonal to `𝐰` with `|Re 𝐧| = |Im 𝐧| = 1`, `Re 𝐧 · Im 𝐧 = 0`. -/ +theorem exists_normalized_null (w : Fin 3 → ℂ) : + ∃ n : Fin 3 → ℂ, spatialDot w n = 0 ∧ spatialDot n n = 0 ∧ + (n 0).re ^ 2 + (n 1).re ^ 2 + (n 2).re ^ 2 = 1 ∧ + (n 0).im ^ 2 + (n 1).im ^ 2 + (n 2).im ^ 2 = 1 ∧ + (n 0).re * (n 0).im + (n 1).re * (n 1).im + (n 2).re * (n 2).im = 0 := by + obtain ⟨n, hn0, hwn, hnn⟩ := exists_null_vector w + have hnn' := hnn + rw [spatialDot_eq, Complex.ext_iff] at hnn' + simp only [Complex.add_re, Complex.mul_re, Complex.add_im, Complex.mul_im, + Complex.zero_re, Complex.zero_im] at hnn' + obtain ⟨hre, him⟩ := hnn' + have hpos : 0 < (n 0).re ^ 2 + (n 1).re ^ 2 + (n 2).re ^ 2 := by + obtain ⟨j, hj⟩ := Function.ne_iff.mp hn0 + have hj' : 0 < Complex.normSq (n j) := Complex.normSq_pos.mpr hj + have hsum : Complex.normSq (n j) ≤ ∑ k, Complex.normSq (n k) := + Finset.single_le_sum (fun k _ => Complex.normSq_nonneg (n k)) (Finset.mem_univ j) + rw [Fin.sum_univ_three] at hsum + simp only [Complex.normSq_apply] at hsum hj' + nlinarith + obtain ⟨ρ, hρpos, hρsq⟩ : ∃ ρ : ℝ, 0 < ρ ∧ ρ ^ 2 = (n 0).re ^ 2 + (n 1).re ^ 2 + (n 2).re ^ 2 := + ⟨Real.sqrt _, Real.sqrt_pos.mpr hpos, Real.sq_sqrt hpos.le⟩ + obtain ⟨m, hm⟩ : ∃ m : Fin 3 → ℂ, ∀ j, m j = ((ρ⁻¹ : ℝ) : ℂ) * n j := + ⟨fun j => ((ρ⁻¹ : ℝ) : ℂ) * n j, fun j => rfl⟩ + have hc : ρ⁻¹ ^ 2 * ((n 0).re ^ 2 + (n 1).re ^ 2 + (n 2).re ^ 2) = 1 := by + rw [← hρsq, ← mul_pow, inv_mul_cancel₀ hρpos.ne', one_pow] + refine ⟨m, ?_, ?_, ?_, ?_, ?_⟩ + · rw [spatialDot_eq] at hwn ⊢ + simp only [hm] + linear_combination ((ρ⁻¹ : ℝ) : ℂ) * hwn + · rw [spatialDot_eq] at hnn ⊢ + simp only [hm] + linear_combination ((ρ⁻¹ : ℝ) : ℂ) ^ 2 * hnn + · simp only [hm, Complex.re_ofReal_mul] + linear_combination hc + · simp only [hm, Complex.im_ofReal_mul] + linear_combination hc - ρ⁻¹ ^ 2 * hre + · simp only [hm, Complex.re_ofReal_mul, Complex.im_ofReal_mul] + linear_combination (ρ⁻¹ ^ 2 / 2) * him + +/-! ### Milestone 3: estimates on the disc and the main lemma -/ + +lemma disc_re (a ζ m : ℂ) (E : ℝ) : + (a + (8 * E : ℂ) * ζ * m).re = a.re + 8 * E * (ζ.re * m.re - ζ.im * m.im) := by + have h : (8 * E : ℂ) * ζ * m = ((8 * E : ℝ) : ℂ) * (ζ * m) := by push_cast; ring + rw [h, Complex.add_re, Complex.re_ofReal_mul, Complex.mul_re] + +lemma norm_disc_sq_le (a ζ m : ℂ) (E : ℝ) (hζ : ‖ζ‖ = 1) : + ‖a + (8 * E : ℂ) * ζ * m‖ ^ 2 ≤ 9 * ‖a‖ ^ 2 + 72 * E ^ 2 * ‖m‖ ^ 2 := by + have hy : ‖(8 * E : ℂ) * ζ * m‖ ^ 2 = 64 * E ^ 2 * ‖m‖ ^ 2 := by + rw [norm_mul, norm_mul, norm_mul, hζ, Complex.norm_real, Complex.norm_ofNat, + Real.norm_eq_abs, mul_one, mul_pow, mul_pow, sq_abs] + ring + have htri := norm_add_le a ((8 * E : ℂ) * ζ * m) + have h0 : 0 ≤ ‖a + (8 * E : ℂ) * ζ * m‖ := norm_nonneg _ + nlinarith [sq_nonneg (8 * ‖a‖ - ‖(8 * E : ℂ) * ζ * m‖), mul_nonneg h0 (sub_nonneg.mpr htri), + sq_nonneg (‖a‖ + ‖(8 * E : ℂ) * ζ * m‖ - ‖a + (8 * E : ℂ) * ζ * m‖)] + +lemma key_real (a0 a1 a2 r0 r1 r2 E : ℝ) (hE : 0 < E) (hr : r0 ^ 2 + r1 ^ 2 + r2 ^ 2 = 1) + (ha : a0 ^ 2 + a1 ^ 2 + a2 ^ 2 ≤ (2 * E) ^ 2) : + (6 * E) ^ 2 ≤ (a0 + 8 * E * r0) ^ 2 + (a1 + 8 * E * r1) ^ 2 + (a2 + 8 * E * r2) ^ 2 := by + have hcs0 : (a0 * r0 + a1 * r1 + a2 * r2) ^ 2 ≤ + (a0 ^ 2 + a1 ^ 2 + a2 ^ 2) * (r0 ^ 2 + r1 ^ 2 + r2 ^ 2) := by + nlinarith [sq_nonneg (a0 * r1 - a1 * r0), sq_nonneg (a0 * r2 - a2 * r0), + sq_nonneg (a1 * r2 - a2 * r1)] + rw [hr, mul_one] at hcs0 + have ht : -(2 * E) ≤ a0 * r0 + a1 * r1 + a2 * r2 := by nlinarith + have hE2 : E ^ 2 * (r0 ^ 2 + r1 ^ 2 + r2 ^ 2) = E ^ 2 := by rw [hr, mul_one] + nlinarith [mul_nonneg (show (0:ℝ) ≤ a0 * r0 + a1 * r1 + a2 * r2 + 2 * E by linarith) + (show (0:ℝ) ≤ a0 * r0 + a1 * r1 + a2 * r2 + 14 * E by linarith)] + +lemma scaleBy_mem_shell {μ E : ℝ} {w : ℂ × (Fin 3 → ℂ)} (hw : w ∈ complexShell μ) : + scaleBy E w ∈ complexShell (μ / E) := by + simp only [complexShell, Set.mem_ofPred_eq, spatialDot_eq, scaleBy] at hw ⊢ + rw [Complex.ofReal_div] + linear_combination ((E : ℂ)⁻¹) ^ 2 * hw + +lemma euclidSq_scaleBy (E : ℝ) (w : ℂ × (Fin 3 → ℂ)) : + euclidSq (scaleBy E w) = euclidSq w / E ^ 2 := by + simp only [euclidSq, scaleBy, Fin.sum_univ_three, norm_div, Complex.norm_real, + Real.norm_eq_abs, div_pow, sq_abs] + ring + +lemma reLorentzSq_scaleBy (E : ℝ) (w : ℂ × (Fin 3 → ℂ)) : + reLorentzSq (scaleBy E w) = reLorentzSq w / E ^ 2 := by + simp only [reLorentzSq, reSpatialSq, scaleBy, Fin.sum_univ_three, Complex.div_ofReal_re, + div_pow] + ring + +lemma abs_le_two_mul_of_sq_le {x E : ℝ} (hE : 0 < E) (h : x ^ 2 ≤ (2 * E) ^ 2) : + |x| ≤ 2 * E := by + rw [abs_le] + constructor <;> nlinarith + +/-- **Lemma 5.3 (null analytic discs).** -/ +theorem exists_null_disc {μ En : ℝ} (hμ : 0 < μ) (hE : μ ≤ En) + {z : ℂ × (Fin 3 → ℂ)} (hz : z ∈ complexShell μ) (hzn : euclidSq z ≤ (2 * En) ^ 2) : + ∃ n : Fin 3 → ℂ, + nullDisc z En n 0 = z ∧ + (∀ ζ : ℂ, nullDisc z En n ζ ∈ complexShell μ) ∧ + (∀ ζ : ℂ, ‖ζ‖ = 1 → + (6 * En) ^ 2 ≤ reSpatialSq (nullDisc z En n ζ).2 ∧ + |(nullDisc z En n ζ).1.re| ≤ 2 * En ∧ + reLorentzSq (nullDisc z En n ζ) ≤ -32 * En ^ 2 ∧ + euclidSq (nullDisc z En n ζ) < (14 * En) ^ 2 ∧ + (μ / En, scaleBy En (nullDisc z En n ζ)) ∈ normalizedTarget) := by + have hEpos : 0 < En := lt_of_lt_of_le hμ hE + obtain ⟨n, hwn, hnn, hre1, him1, hcross⟩ := exists_normalized_null z.2 + have hzn' : ‖z.1‖ ^ 2 + (‖z.2 0‖ ^ 2 + ‖z.2 1‖ ^ 2 + ‖z.2 2‖ ^ 2) ≤ (2 * En) ^ 2 := by + have h := hzn + unfold euclidSq at h + rwa [Fin.sum_univ_three] at h + have hshell : ∀ ζ : ℂ, nullDisc z En n ζ ∈ complexShell μ := by + intro ζ + have hz' := hz + simp only [complexShell, Set.mem_ofPred_eq, spatialDot_eq] at hz' ⊢ + rw [spatialDot_eq] at hwn hnn + simp only [nullDisc] + linear_combination hz' - (16 * (En : ℂ) * ζ) * hwn - (64 * (En : ℂ) ^ 2 * ζ ^ 2) * hnn + refine ⟨n, ?_, hshell, ?_⟩ + · change (z.1, fun j => z.2 j + (8 * En : ℂ) * 0 * n j) = z + have h0 : (fun j => z.2 j + (8 * En : ℂ) * 0 * n j) = z.2 := by + funext j + simp + exact Prod.ext_iff.mpr ⟨rfl, h0⟩ + · intro ζ hζ + have hcs : ζ.re ^ 2 + ζ.im ^ 2 = 1 := by + have h := norm_sq_eq_re_im ζ + rw [hζ] at h + linarith + have h1 : (nullDisc z En n ζ).1 = z.1 := rfl + have hz1 : z.1.re ^ 2 ≤ (2 * En) ^ 2 := by + linarith [norm_sq_eq_re_im z.1, sq_nonneg z.1.im, sq_nonneg ‖z.2 0‖, sq_nonneg ‖z.2 1‖, + sq_nonneg ‖z.2 2‖] + have hR : reSpatialSq (nullDisc z En n ζ).2 = + ((z.2 0).re + 8 * En * (ζ.re * (n 0).re - ζ.im * (n 0).im)) ^ 2 + + ((z.2 1).re + 8 * En * (ζ.re * (n 1).re - ζ.im * (n 1).im)) ^ 2 + + ((z.2 2).re + 8 * En * (ζ.re * (n 2).re - ζ.im * (n 2).im)) ^ 2 := by + simp only [reSpatialSq, nullDisc, Fin.sum_univ_three, disc_re] + have hr : (ζ.re * (n 0).re - ζ.im * (n 0).im) ^ 2 + (ζ.re * (n 1).re - ζ.im * (n 1).im) ^ 2 + + (ζ.re * (n 2).re - ζ.im * (n 2).im) ^ 2 = 1 := by + linear_combination ζ.re ^ 2 * hre1 + ζ.im ^ 2 * him1 - 2 * ζ.re * ζ.im * hcross + hcs + have ha : (z.2 0).re ^ 2 + (z.2 1).re ^ 2 + (z.2 2).re ^ 2 ≤ (2 * En) ^ 2 := by + linarith [norm_sq_eq_re_im (z.2 0), norm_sq_eq_re_im (z.2 1), norm_sq_eq_re_im (z.2 2), + sq_nonneg (z.2 0).im, sq_nonneg (z.2 1).im, sq_nonneg (z.2 2).im, sq_nonneg ‖z.1‖] + have hS : (6 * En) ^ 2 ≤ reSpatialSq (nullDisc z En n ζ).2 := by + rw [hR] + exact key_real _ _ _ _ _ _ En hEpos hr ha + have hL : reLorentzSq (nullDisc z En n ζ) ≤ -32 * En ^ 2 := by + unfold reLorentzSq + rw [h1] + linarith [hS, hz1] + have hEu : euclidSq (nullDisc z En n ζ) < (14 * En) ^ 2 := by + have e0 := norm_disc_sq_le (z.2 0) ζ (n 0) En hζ + have e1 := norm_disc_sq_le (z.2 1) ζ (n 1) En hζ + have e2 := norm_disc_sq_le (z.2 2) ζ (n 2) En hζ + have hnorm : ‖n 0‖ ^ 2 + ‖n 1‖ ^ 2 + ‖n 2‖ ^ 2 = 2 := by + linear_combination norm_sq_eq_re_im (n 0) + norm_sq_eq_re_im (n 1) + + norm_sq_eq_re_im (n 2) + hre1 + him1 + have hnorm' : En ^ 2 * ‖n 0‖ ^ 2 + En ^ 2 * ‖n 1‖ ^ 2 + En ^ 2 * ‖n 2‖ ^ 2 = 2 * En ^ 2 := by + linear_combination En ^ 2 * hnorm + have hE2 : 0 < En ^ 2 := pow_pos hEpos 2 + simp only [euclidSq, nullDisc, Fin.sum_univ_three] + linarith [e0, e1, e2, hnorm', hzn', sq_nonneg ‖z.1‖, hE2] + refine ⟨hS, ?_, hL, hEu, ?_⟩ + · rw [h1] + exact abs_le_two_mul_of_sq_le hEpos hz1 + · simp only [normalizedTarget, Set.mem_ofPred_eq] + refine ⟨div_nonneg hμ.le hEpos.le, (div_le_one₀ hEpos).mpr hE, scaleBy_mem_shell (hshell ζ), + ?_, ?_⟩ + · rw [euclidSq_scaleBy, div_le_iff₀ (pow_pos hEpos 2)] + linarith [hEu, sq_nonneg En] + · rw [reLorentzSq_scaleBy, div_le_iff₀ (pow_pos hEpos 2)] + linarith [hL, sq_nonneg En] + +end + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/PhysicalContourDensity.lean b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourDensity.lean new file mode 100644 index 0000000000..0e799ecb0d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourDensity.lean @@ -0,0 +1,94 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.SmoothBallProbability +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourParameterMeasure + +/-! +# Positive physical product density on controlled contour parameters + +The original mass-shell weight is retained exactly. Measurability holds +also at zero mass (the single zero-energy point has its defined weight +zero); the local lower bound explicitly requires positive energy. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +theorem measurable_oneParticleWeight_all_mass (m : ℝ) : + Measurable (oneParticleWeight m) := + continuous_real_toNNReal.measurable.comp + (measurable_const.div (measurable_const.mul (continuous_dispersion m).measurable)) + +theorem oneParticleWeight_ennreal (m : ℝ) (p : EuclideanSpace ℝ (Fin 3)) : + (oneParticleWeight m p : ℝ≥0∞) = + ENNReal.ofReal (1 / (2 * (2 * Real.pi) ^ 3 * dispersion m p)) := rfl + +theorem oneParticleWeight_lower_of_energy {m R : ℝ} {p : EuclideanSpace ℝ (Fin 3)} + (hpos : 0 < dispersion m p) (hR : dispersion m p ≤ R) : + ENNReal.ofReal (1 / (2 * (2 * Real.pi) ^ 3 * R)) ≤ + (oneParticleWeight m p : ℝ≥0∞) := by + rw [oneParticleWeight_ennreal] + apply ENNReal.ofReal_le_ofReal + apply one_div_le_one_div_of_le + · positivity + · exact mul_le_mul_of_nonneg_left hR (by positivity) + +/-- Smooth physical contour density defined as `ENNReal.ofReal (smoothBallDensity (Fin 6 → ℝ) r hr +q.1) * (oneParticleWeight m q.2 : ℝ≥0∞)`. -/ +noncomputable def smoothPhysicalContourDensity (m r : ℝ) (hr : 0 < r) + (q : LorentzMomentumParameters) : ℝ≥0∞ := + ENNReal.ofReal (smoothBallDensity (Fin 6 → ℝ) r hr q.1) * + (oneParticleWeight m q.2 : ℝ≥0∞) + +theorem measurable_smoothPhysicalContourDensity (m r : ℝ) (hr : 0 < r) : + Measurable (smoothPhysicalContourDensity m r hr) := + (((contDiff_smoothBallDensity (Fin 6 → ℝ) r hr).continuous.measurable.comp + measurable_fst).ennreal_ofReal).mul + (((measurable_oneParticleWeight_all_mass m).comp measurable_snd).coe_nnreal_ennreal) + +theorem smoothPhysicalContour_product_measure (m r : ℝ) (hr : 0 < r) : + (smoothBallProbability (Fin 6 → ℝ) r hr).prod (oneParticleMeasure m) = + physicalParameterMeasure.withDensity (smoothPhysicalContourDensity m r hr) := by + exact prod_withDensity + (contDiff_smoothBallDensity (Fin 6 → ℝ) r hr).continuous.measurable.ennreal_ofReal + (measurable_oneParticleWeight_all_mass m).coe_nnreal_ennreal + +theorem smoothPhysicalContour_density_lower (m r : ℝ) (hr : 0 < r) : + ∃ d > 0, ∀ R : ℝ, ∀ q : LorentzMomentumParameters, + ‖q.1‖ ≤ r / 2 → 0 < dispersion m q.2 → dispersion m q.2 ≤ R → + ENNReal.ofReal d * ENNReal.ofReal (1 / (2 * (2 * Real.pi) ^ 3 * R)) ≤ + smoothPhysicalContourDensity m r hr q := by + obtain ⟨d, hd, hinner⟩ := smoothBallDensity_constant_on_inner (Fin 6 → ℝ) r hr + refine ⟨d, hd, fun R q hq hpos hR => ?_⟩ + rw [smoothPhysicalContourDensity, hinner q.1 hq] + exact _root_.mul_le_mul_right (oneParticleWeight_lower_of_energy hpos hR) _ + +theorem smoothPhysicalContour_integral_lower (m r : ℝ) (hr : 0 < r) : + ∃ d > 0, ∀ R : ℝ, ∀ s : Set LorentzMomentumParameters, + MeasurableSet s → + (∀ q ∈ s, ‖q.1‖ ≤ r / 2 ∧ 0 < dispersion m q.2 ∧ dispersion m q.2 ≤ R) → + ∀ g : LorentzMomentumParameters → ℝ≥0∞, Measurable g → + (ENNReal.ofReal d * ENNReal.ofReal (1 / (2 * (2 * Real.pi) ^ 3 * R))) * + (∫⁻ q in s, g q ∂physicalParameterMeasure) ≤ + ∫⁻ q in s, g q ∂(smoothBallProbability (Fin 6 → ℝ) r hr).prod + (oneParticleMeasure m) := by + obtain ⟨d, hd, hlower⟩ := smoothPhysicalContour_density_lower m r hr + refine ⟨d, hd, fun R s hs hcontrol g hg => ?_⟩ + rw [smoothPhysicalContour_product_measure, + setLIntegral_withDensity_eq_setLIntegral_mul _ + (measurable_smoothPhysicalContourDensity m r hr) hg hs, + ← lintegral_const_mul' _ _ (ENNReal.mul_ne_top ENNReal.ofReal_ne_top ENNReal.ofReal_ne_top)] + exact setLIntegral_mono' hs (fun q hq => _root_.mul_le_mul_left + (hlower R q (hcontrol q hq).1 (hcontrol q hq).2.1 (hcontrol q hq).2.2) _) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/PhysicalContourLocalIntegral.lean b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourLocalIntegral.lean new file mode 100644 index 0000000000..b7460334b2 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourLocalIntegral.lean @@ -0,0 +1,86 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourSourceControl +public import LeanPool.VacuumBellSeparation.Shell.UniformPhysicalContourDensity +public import LeanPool.VacuumBellSeparation.Shell.FixedMassContourIntegral + +/-! +# Local shell-coordinate control by the actual physical product measure + +Every geometric cover and Jacobian hypothesis is supplied by the actual +contour inverse. The remaining weight compatibility is explicit, so the +theorem applies to both ambient test weights and the energy-cutoff wave +integrand. All constants are chosen before the nearby mass and weight. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +theorem physicalContour_local_integral_bound (m : ℝ) {B θ ρ r₀ R : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) (hρ : 0 < ρ) (hr₀ : 0 < r₀) + (henergy : ∀ q : ShellContourParameters, ‖q‖ < r₀ → + 0 < fullContourEnergy m B q ∧ fullContourEnergy m B q ≤ R) : + ∃ r C δ d : ℝ, 0 < r ∧ r ≤ r₀ ∧ 0 < C ∧ 0 < δ ∧ 0 < d ∧ + ∀ τ : ℝ, |τ| < δ → + ∀ g : (Fin 3 → ℂ) → ℝ≥0∞, Measurable g → + ∀ G : LorentzMomentumParameters → ℝ≥0∞, Measurable G → + (∀ q ∈ fixedMassContourSmallDomain m hB hθ r τ, + G (physicalContourParameters B q) = + g (fullContourMap m B θ (fixedMassContourEmbedding τ q))) → + ((ENNReal.ofReal d * ENNReal.ofReal (1 / (2 * (2 * Real.pi) ^ 3 * R))) * + (physicalParameterHaarScale : ℝ≥0∞) * volume (Metric.ball (0 : Fin 3 → ℝ) δ)) * + (∫⁻ w in Metric.ball (referenceContourMap m B θ 0) δ, g w) ≤ + ((fixedMassContourHaarScale m hB hθ : ℝ≥0∞) * ENNReal.ofReal C) * + ∫⁻ y, G y ∂(smoothBallProbability (Fin 6 → ℝ) ρ hρ).prod + (oneParticleMeasure (m + τ)) := by + obtain ⟨r, C, δ, hr, hrr, hC, hδ, hcoord⟩ := + fixedMassContour_ball_integral_bound m hB hθ (lt_min hr₀ (half_pos hρ)) + obtain ⟨d, hd, hphysical⟩ := smoothPhysicalContour_uniform_integral_lower ρ hρ + have hrr₀ : r ≤ r₀ := hrr.trans (min_le_left _ _) + have hrrρ : r ≤ ρ / 2 := hrr.trans (min_le_right _ _) + refine ⟨r, C, δ, d, hr, hrr₀, hC, hδ, hd, ?_⟩ + intro τ hτ g hg G hG hmatch + let s := fixedMassContourSmallDomain m hB hθ r τ + let t := physicalContourParameters B '' s + let k : ℝ≥0∞ := ENNReal.ofReal d * ENNReal.ofReal (1 / (2 * (2 * Real.pi) ^ 3 * R)) + let A : ℝ≥0∞ := (fixedMassContourHaarScale m hB hθ : ℝ≥0∞) * ENNReal.ofReal C + let P : ℝ≥0∞ := physicalParameterHaarScale + let J := ∫⁻ q in s, g (fullContourMap m B θ (fixedMassContourEmbedding τ q)) + have hs : MeasurableSet s := (isOpen_fixedMassContourSmallDomain m hB hθ r τ).measurableSet + have ht : MeasurableSet t := (isOpen_physicalContourSmallImage m hB hθ r τ).measurableSet + have hcontrol : ∀ y ∈ t, + ‖y.1‖ ≤ ρ / 2 ∧ 0 < dispersion (m + τ) y.2 ∧ dispersion (m + τ) y.2 ≤ R := + physicalContourSmallImage_control m hB hθ hrrρ + (fun q hq => henergy q (hq.trans_le hrr₀)) τ + have him : (∫⁻ y in t, G y ∂physicalParameterMeasure) = P * J := by + rw [lintegral_physicalContourParameters_image B hs] + apply congrArg (fun x : ℝ≥0∞ => P * x) + exact setLIntegral_congr_fun hs hmatch + have hphys : k * (P * J) ≤ + ∫⁻ y, G y ∂(smoothBallProbability (Fin 6 → ℝ) ρ hρ).prod + (oneParticleMeasure (m + τ)) := by + have h := hphysical (m + τ) R t ht hcontrol G hG + rw [him] at h + exact h.trans (lintegral_mono' Measure.restrict_le_self (le_refl G)) + have hc : volume (Metric.ball (0 : Fin 3 → ℝ) δ) * + (∫⁻ w in Metric.ball (referenceContourMap m B θ 0) δ, g w) ≤ A * J := + hcoord τ hτ g hg + calc + _ = (k * P) * (volume (Metric.ball (0 : Fin 3 → ℝ) δ) * + (∫⁻ w in Metric.ball (referenceContourMap m B θ 0) δ, g w)) := by + simp only [k, P, mul_assoc] + _ ≤ (k * P) * (A * J) := _root_.mul_le_mul_right hc _ + _ = A * (k * (P * J)) := by ac_rfl + _ ≤ _ := _root_.mul_le_mul_right hphys A + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/PhysicalContourParameterCoordinates.lean b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourParameterCoordinates.lean new file mode 100644 index 0000000000..0a557721be --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourParameterCoordinates.lean @@ -0,0 +1,99 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.FixedMassContourJacobian + +/-! +# Exact reordering into Lorentz parameters and physical momenta + +The active/auxiliary coordinates used by the inverse-function theorem +are a fixed invertible reordering of six Lorentz parameters and three +physical momenta, followed by translation of the second momentum by B. +No independence of Lorentz and momentum variables is assumed implicitly. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Lorentz momentum parameters with underlying type `(Fin 6 → ℝ) × EuclideanSpace ℝ (Fin 3)`. -/ +abbrev LorentzMomentumParameters := (Fin 6 → ℝ) × EuclideanSpace ℝ (Fin 3) + +/-- Linear map for the contour parameter reorder linear, of type `ShellPhysicalParameters →ₗ[ℝ] +LorentzMomentumParameters where toFun q`. -/ +noncomputable def contourParameterReorderLinear : + ShellPhysicalParameters →ₗ[ℝ] LorentzMomentumParameters where + toFun q := (![q.1 0, q.1 1, q.1 2, q.1 3, q.1 4, q.2 0], + WithLp.toLp 2 ![q.2 1, q.1 5, q.2 2]) + map_add' x y := by + apply Prod.ext <;> ext i <;> fin_cases i <;> rfl + map_smul' a x := by + apply Prod.ext <;> ext i <;> fin_cases i <;> rfl + +/-- Continuous linear equivalence for the contour parameter reorder, of type +`ShellPhysicalParameters ≃L[ℝ] LorentzMomentumParameters`. -/ +noncomputable def contourParameterReorder : + ShellPhysicalParameters ≃L[ℝ] LorentzMomentumParameters := + ({ contourParameterReorderLinear with + invFun q := (![q.1 0, q.1 1, q.1 2, q.1 3, q.1 4, q.2 1], + ![q.1 5, q.2 0, q.2 2]) + left_inv q := by + apply Prod.ext <;> ext i <;> fin_cases i <;> rfl + right_inv q := by + apply Prod.ext <;> ext i <;> fin_cases i <;> rfl } : + ShellPhysicalParameters ≃ₗ[ℝ] LorentzMomentumParameters).toContinuousLinearEquiv + +/-- Physical contour parameters defined as `contourParameterReorder q + (0, WithLp.toLp 2 ![0, B, +0])`. -/ +noncomputable def physicalContourParameters (B : ℝ) (q : ShellPhysicalParameters) : + LorentzMomentumParameters := + contourParameterReorder q + (0, WithLp.toLp 2 ![0, B, 0]) + +theorem physicalContourParameters_lorentz (B τ : ℝ) (q : ShellPhysicalParameters) : + (physicalContourParameters B q).1 = + fullContourLorentzParameters (fixedMassContourEmbedding τ q) := by + ext i + fin_cases i <;> simp [physicalContourParameters, contourParameterReorder, + contourParameterReorderLinear, fullContourLorentzParameters, fixedMassContourEmbedding] + +theorem physicalContourParameters_momentum (B τ : ℝ) (q : ShellPhysicalParameters) : + (physicalContourParameters B q).2 = + fullContourMomentum B (fixedMassContourEmbedding τ q) := by + ext i + fin_cases i <;> simp [physicalContourParameters, contourParameterReorder, + contourParameterReorderLinear, fullContourMomentum, fixedMassContourEmbedding, add_comm] + +theorem hasFDerivAt_physicalContourParameters (B : ℝ) (q : ShellPhysicalParameters) : + HasFDerivAt (physicalContourParameters B) + (contourParameterReorder : ShellPhysicalParameters →L[ℝ] LorentzMomentumParameters) q := by + change HasFDerivAt (fun z : ShellPhysicalParameters => + contourParameterReorder z + (0, WithLp.toLp 2 ![0, B, 0])) + (contourParameterReorder : ShellPhysicalParameters →L[ℝ] LorentzMomentumParameters) q + exact (contourParameterReorder.hasFDerivAt (x := q)).add_const + (0, WithLp.toLp 2 ![0, B, 0]) + +theorem physicalContourParameters_bijective (B : ℝ) : + Function.Bijective (physicalContourParameters B) := by + constructor + · intro x y h + exact contourParameterReorder.injective (add_right_cancel h) + · intro y + refine ⟨contourParameterReorder.symm (y - (0, WithLp.toLp 2 ![0, B, 0])), ?_⟩ + simp [physicalContourParameters] + +theorem fixedMassContourMap_physical (m B θ τ : ℝ) (q : ShellPhysicalParameters) : + (fixedMassContourMap m B θ τ q).1 = complexShellCoordinates + (complexifiedSpacetimeMap + (lorentzParameterFamily (physicalContourParameters B q).1) + (complexShellBoost (m + τ) ((θ : ℂ) * Complex.I) + (physicalContourParameters B q).2)) := by + rw [physicalContourParameters_lorentz B τ, physicalContourParameters_momentum B τ] + simp only [fixedMassContourMap, fullContourMap, complexLorentzFamilyAction, + fullContourSeed_eq_boost, fixedMassContourEmbedding] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/PhysicalContourParameterMeasure.lean b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourParameterMeasure.lean new file mode 100644 index 0000000000..364f95d634 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourParameterMeasure.lean @@ -0,0 +1,63 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourParameterCoordinates + +/-! # Actual Haar scaling for the physical Lorentz/momentum coordinates -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal NNReal + +instance physicalParameter_sourceHaar : + (volume : Measure ShellPhysicalParameters).IsAddHaarMeasure := + Measure.prod.instIsAddHaarMeasure _ _ + +/-- Physical parameter measure. -/ +noncomputable def physicalParameterMeasure : Measure LorentzMomentumParameters := + (volume : Measure (Fin 6 → ℝ)).prod + (volume : Measure (EuclideanSpace ℝ (Fin 3))) + +instance physicalParameterMeasure_haar : physicalParameterMeasure.IsAddHaarMeasure := + Measure.prod.instIsAddHaarMeasure _ _ + +/-- Density factor relating Haar measure on physical parameters to the coordinate volume. -/ +noncomputable def physicalParameterHaarScale : ℝ≥0 := + linearHaarScale (volume : Measure ShellPhysicalParameters) + physicalParameterMeasure contourParameterReorder + +theorem physicalParameterHaarScale_pos : 0 < physicalParameterHaarScale := + linearHaarScale_pos (volume : Measure ShellPhysicalParameters) + physicalParameterMeasure contourParameterReorder + +theorem lintegral_physicalContourParameters_image (B : ℝ) + {s : Set ShellPhysicalParameters} (hs : MeasurableSet s) + (g : LorentzMomentumParameters → ℝ≥0∞) : + (∫⁻ y in physicalContourParameters B '' s, g y ∂physicalParameterMeasure) = + (physicalParameterHaarScale : ℝ≥0∞) * ∫⁻ x in s, g (physicalContourParameters B x) := by + have hJ : contourParameterReorder.symm.toContinuousLinearMap.comp + contourParameterReorder.toContinuousLinearMap = + ContinuousLinearMap.id ℝ ShellPhysicalParameters := by + apply ContinuousLinearMap.ext + intro x + exact contourParameterReorder.symm_apply_apply x + have hd : (contourParameterReorder.symm.toContinuousLinearMap.comp + contourParameterReorder.toContinuousLinearMap).det = 1 := by + rw [hJ] + change LinearMap.det (LinearMap.id : ShellPhysicalParameters →ₗ[ℝ] ShellPhysicalParameters) = 1 + exact LinearMap.det_id + have h := lintegral_image_eq_linearHaarScale_jacobian + (volume : Measure ShellPhysicalParameters) physicalParameterMeasure contourParameterReorder hs + (fun x hx => (hasFDerivAt_physicalContourParameters B x).hasFDerivWithinAt) + (physicalContourParameters_bijective B).1.injOn g + simpa only [hd, abs_one, ENNReal.ofReal_one, one_mul, physicalParameterHaarScale] using h + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/PhysicalContourSourceControl.lean b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourSourceControl.lean new file mode 100644 index 0000000000..c7ef7f5140 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourSourceControl.lean @@ -0,0 +1,80 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourDensity +public import LeanPool.VacuumBellSeparation.Shell.FixedMassContourImage +public import LeanPool.VacuumBellSeparation.Shell.FullContourPoint + +/-! # Physical parameter images and their actual local controls -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory + +theorem norm_fullContourLorentzParameters_le (q : ShellContourParameters) : + ‖fullContourLorentzParameters q‖ ≤ ‖q‖ := by + apply (pi_norm_le_iff_of_nonneg (norm_nonneg q)).mpr + intro i + have ha (j : Fin 6) : ‖q.1 j‖ ≤ ‖q‖ := + (norm_le_pi_norm q.1 j).trans (norm_fst_le q) + have hn : ‖q.2.2 0‖ ≤ ‖q‖ := + (norm_le_pi_norm q.2.2 0).trans ((norm_snd_le q.2).trans (norm_snd_le q)) + fin_cases i + · exact ha 0 + · exact ha 1 + · exact ha 2 + · exact ha 3 + · exact ha 4 + · exact hn + +/-- Physical contour homeomorph defined as `contourParameterReorder.toHomeomorph.trans +(Homeomorph.addRight (0, WithLp.toLp 2 ![0, B, 0]))`. -/ +noncomputable def physicalContourHomeomorph (B : ℝ) : + ShellPhysicalParameters ≃ₜ LorentzMomentumParameters := + contourParameterReorder.toHomeomorph.trans + (Homeomorph.addRight (0, WithLp.toLp 2 ![0, B, 0])) + +theorem physicalContourHomeomorph_apply (B : ℝ) (q : ShellPhysicalParameters) : + physicalContourHomeomorph B q = physicalContourParameters B q := rfl + +theorem isOpen_physicalContourSmallImage (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) (r τ : ℝ) : + IsOpen (physicalContourParameters B '' fixedMassContourSmallDomain m hB hθ r τ) := + (physicalContourHomeomorph B).isOpenMap _ + (isOpen_fixedMassContourSmallDomain m hB hθ r τ) + +theorem physicalContourSmallImage_control (m : ℝ) {B θ r ρ R : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) (hrρ : r ≤ ρ / 2) + (henergy : ∀ q : ShellContourParameters, ‖q‖ < r → + 0 < fullContourEnergy m B q ∧ fullContourEnergy m B q ≤ R) + (τ : ℝ) : + ∀ y ∈ physicalContourParameters B '' fixedMassContourSmallDomain m hB hθ r τ, + ‖y.1‖ ≤ ρ / 2 ∧ 0 < dispersion (m + τ) y.2 ∧ dispersion (m + τ) y.2 ≤ R := by + rintro y ⟨q, hq, rfl⟩ + have he := henergy (fixedMassContourEmbedding τ q) hq.2 + rw [physicalContourParameters_lorentz B τ, physicalContourParameters_momentum B τ] + refine ⟨(norm_fullContourLorentzParameters_le _).trans (hq.2.le.trans hrρ), ?_⟩ + simpa only [fullContourEnergy_eq_dispersion, fixedMassContourEmbedding] using he + +theorem physicalContourSmallImage_chart_identity (m : ℝ) {B θ r : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) + (hbranch : ∀ q : ShellContourParameters, ‖q‖ < r → + 0 < ((fullContourPoint m B θ q).2 1).re) + (Λ : Spacetime ≃L[ℝ] Spacetime) (τ : ℝ) + {q : ShellPhysicalParameters} (hq : q ∈ fixedMassContourSmallDomain m hB hθ r τ) : + lorentzComplexShellChart (m + τ) Λ + (fullContourMap m B θ (fixedMassContourEmbedding τ q)) = + complexifiedSpacetimeMap + ((lorentzParameterFamily (physicalContourParameters B q).1).trans Λ) + (complexShellBoost (m + τ) ((θ : ℂ) * Complex.I) (physicalContourParameters B q).2) := by + rw [physicalContourParameters_lorentz B τ, physicalContourParameters_momentum B τ] + exact lorentzComplexShellChart_fullContourMap Λ (hbranch _ hq.2) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/PhysicalContourWeights.lean b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourWeights.lean new file mode 100644 index 0000000000..e05dde98ad --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/PhysicalContourWeights.lean @@ -0,0 +1,109 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourSourceControl +public import LeanPool.VacuumBellSeparation.Shell.ControlledLorentzProbability +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSourceContinuity + +/-! +# Actual measurable shell-chart and energy-cutoff contour weights + +The principal chart is used only on its proven open branch; its weight +is extended by zero elsewhere. The physical weight uses the literal +Lorentz contour and the manuscript's physical energy cutoff. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +/-- Regular chart weight. -/ +noncomputable def regularChartWeight (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (F : ComplexSpacetime → ℝ≥0∞) : (Fin 3 → ℂ) → ℝ≥0∞ := by + classical + exact (complexShellChartDomain m).piecewise (fun w => F (lorentzComplexShellChart m Λ w)) 0 + +theorem measurable_regularChartWeight (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + {F : ComplexSpacetime → ℝ≥0∞} (hF : Continuous F) : + Measurable (regularChartWeight m Λ F) := by + classical + apply ContinuousOn.measurable_piecewise _ continuous_const.continuousOn + (isOpen_complexShellChartDomain m).measurableSet + intro w hw + exact hF.continuousAt.comp_continuousWithinAt + (differentiableAt_lorentzComplexShellChart Λ hw).continuousAt.continuousWithinAt + +theorem regularChartWeight_eq {m : ℝ} (Λ : Spacetime ≃L[ℝ] Spacetime) + (F : ComplexSpacetime → ℝ≥0∞) {w : Fin 3 → ℂ} (hw : w ∈ complexShellChartDomain m) : + regularChartWeight m Λ F w = F (lorentzComplexShellChart m Λ w) := by + classical + exact Set.piecewise_eq_of_mem _ _ _ hw + +/-- Physical contour point defined as `complexifiedSpacetimeMap (prefixedLorentzFamily Λ y.1) +(complexShellBoost m ((θ : ℂ) * Complex.I) y.2)`. -/ +noncomputable def physicalContourPoint (m θ : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (y : LorentzMomentumParameters) : ComplexSpacetime := + complexifiedSpacetimeMap (prefixedLorentzFamily Λ y.1) + (complexShellBoost m ((θ : ℂ) * Complex.I) y.2) + +theorem continuous_physicalContourPoint (m θ : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) : + Continuous (physicalContourPoint m θ Λ) := by + have hpair : Continuous (fun q : LorentzMomentumParameters => + (q.1, complexShellBoost m ((θ : ℂ) * Complex.I) q.2)) := + (continuous_fst : Continuous + (Prod.fst : LorentzMomentumParameters → (Fin 6 → ℝ))).prodMk + ((continuous_complexShellBoost m ((θ : ℂ) * Complex.I)).comp continuous_snd) + exact Continuous.comp' + (f := fun q : LorentzMomentumParameters => + (q.1, complexShellBoost m ((θ : ℂ) * Complex.I) q.2)) + (g := fun q : (Fin 6 → ℝ) × ComplexSpacetime => + complexifiedSpacetimeMap (prefixedLorentzFamily Λ q.1) q.2) + (continuous_complexifiedSpacetimeMap_family (prefixedLorentzFamily Λ) + (continuous_prefixedLorentzFamily_apply Λ)) hpair + +/-- Physical contour cutoff weight. -/ +noncomputable def physicalContourCutoffWeight (m θ R : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (F : ComplexSpacetime → ℝ≥0∞) : + LorentzMomentumParameters → ℝ≥0∞ := + {y | dispersion m y.2 ≤ R}.indicator (fun y => F (physicalContourPoint m θ Λ y)) + +theorem measurable_physicalContourCutoffWeight (m θ R : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) {F : ComplexSpacetime → ℝ≥0∞} (hF : Continuous F) : + Measurable (physicalContourCutoffWeight m θ R Λ F) := + (hF.comp (continuous_physicalContourPoint m θ Λ)).measurable.indicator + (isClosed_le ((continuous_dispersion m).comp continuous_snd) continuous_const).measurableSet + +theorem physicalContourCutoffWeight_chart_compatibility (m : ℝ) {B θ r R : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) + (hbranch : ∀ q : ShellContourParameters, ‖q‖ < r → + 0 < ((fullContourPoint m B θ q).2 1).re ∧ + fullContourMap m B θ q ∈ complexShellChartDomain (m + q.2.1)) + (henergy : ∀ q : ShellContourParameters, ‖q‖ < r → fullContourEnergy m B q ≤ R) + (Λ : Spacetime ≃L[ℝ] Spacetime) (F : ComplexSpacetime → ℝ≥0∞) (τ : ℝ) + {q : ShellPhysicalParameters} (hq : q ∈ fixedMassContourSmallDomain m hB hθ r τ) : + physicalContourCutoffWeight (m + τ) θ R Λ F (physicalContourParameters B q) = + regularChartWeight (m + τ) Λ F + (fullContourMap m B θ (fixedMassContourEmbedding τ q)) := by + have hb := hbranch (fixedMassContourEmbedding τ q) hq.2 + have he : dispersion (m + τ) (physicalContourParameters B q).2 ≤ R := by + rw [physicalContourParameters_momentum B τ] + exact (fullContourEnergy_eq_dispersion m B (fixedMassContourEmbedding τ q)) ▸ henergy _ hq.2 + have hbchart : fullContourMap m B θ (fixedMassContourEmbedding τ q) ∈ + complexShellChartDomain (m + τ) := hb.2 + rw [physicalContourCutoffWeight, + Set.indicator_of_mem (show physicalContourParameters B q ∈ + {y : LorentzMomentumParameters | dispersion (m + τ) y.2 ≤ R} from he), + regularChartWeight_eq Λ F hbchart] + apply congrArg F + exact (physicalContourSmallImage_chart_identity m hB hθ + (fun q hq => (hbranch q hq).1) Λ τ hq).symm + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/RadialContourDerivative.lean b/LeanPool/VacuumBellSeparation/Shell/RadialContourDerivative.lean new file mode 100644 index 0000000000..4a22af97ec --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/RadialContourDerivative.lean @@ -0,0 +1,108 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ComplexShellChart +public import LeanPool.VacuumBellSeparation.Shell.ComplexLorentzFamilySmooth +public import Mathlib.Analysis.SpecialFunctions.Sqrt + +/-! +# Genuine radial dispersion and contour derivatives + +The positive radial base B keeps the mass-shell parametrization smooth +also at mass zero. These are literal positive-energy momenta. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Radial shell momentum defined as `WithLp.toLp 2 ![0, B + r, 0]`. -/ +noncomputable def radialShellMomentum (B r : ℝ) : EuclideanSpace ℝ (Fin 3) := + WithLp.toLp 2 ![0, B + r, 0] + +/-- Radial shell energy given by `Real.sqrt (m ^ 2 + (B + r) ^ 2)`. -/ +noncomputable def radialShellEnergy (m B r : ℝ) : ℝ := + Real.sqrt (m ^ 2 + (B + r) ^ 2) + +theorem radialShellMomentum_dispersion (m B r : ℝ) : + dispersion m (radialShellMomentum B r) = radialShellEnergy m B r := by + simp [dispersion, radialShellEnergy, radialShellMomentum, + EuclideanSpace.real_norm_sq_eq, Fin.sum_univ_three] + +theorem radialShellEnergy_pos {B : ℝ} (hB : 0 < B) (m : ℝ) : + 0 < radialShellEnergy m B 0 := by + apply Real.sqrt_pos.mpr + simpa using add_pos_of_nonneg_of_pos (sq_nonneg m) (sq_pos_of_pos hB) + +theorem contDiffAt_radialShellEnergy {B : ℝ} (hB : 0 < B) (m : ℝ) : + ContDiffAt ℝ ⊤ (radialShellEnergy m B) 0 := by + have h : ContDiff ℝ ⊤ (fun r : ℝ => m ^ 2 + (B + r) ^ 2) := by fun_prop + exact h.contDiffAt.sqrt (by + simpa using (add_pos_of_nonneg_of_pos (sq_nonneg m) (sq_pos_of_pos hB)).ne') + +theorem hasDerivAt_radialShellEnergy {B : ℝ} (hB : 0 < B) (m : ℝ) : + HasDerivAt (radialShellEnergy m B) (B / radialShellEnergy m B 0) 0 := by + have hq := (((hasDerivAt_id (0 : ℝ)).const_add B).pow 2).const_add (m ^ 2) + have h := hq.sqrt (by + simpa using (add_pos_of_nonneg_of_pos (sq_nonneg m) (sq_pos_of_pos hB)).ne') + change HasDerivAt (fun r : ℝ => Real.sqrt (m ^ 2 + (B + r) ^ 2)) + (B / radialShellEnergy m B 0) 0 + convert h using 1 <;> simp [radialShellEnergy]; ring + +/-- Radial shell contour. -/ +noncomputable def radialShellContour (m B θ r : ℝ) : ComplexSpacetime := + (((radialShellEnergy m B r * Real.cos θ : ℝ) : ℂ), + ![Complex.I * (radialShellEnergy m B r * Real.sin θ : ℝ), ((B + r : ℝ) : ℂ), 0]) + +theorem radialShellContour_eq_boost (m B θ r : ℝ) : + radialShellContour m B θ r = + complexShellBoost m ((θ : ℂ) * Complex.I) (radialShellMomentum B r) := by + rw [complexShellBoost, radialShellMomentum_dispersion, + Complex.cosh_mul_I, Complex.sinh_mul_I, ← Complex.ofReal_cos, ← Complex.ofReal_sin] + apply Prod.ext + · simp [radialShellContour, radialShellMomentum, Complex.ofReal_mul] + · ext i + fin_cases i <;> simp [radialShellContour, radialShellMomentum, Complex.ofReal_mul]; ring + +theorem contDiffAt_radialShellContour {B : ℝ} (hB : 0 < B) (m θ : ℝ) : + ContDiffAt ℝ ⊤ (radialShellContour m B θ) 0 := by + have h := contDiffAt_radialShellEnergy hB m + apply ContDiffAt.prodMk + · simpa only [Complex.real_smul, Complex.ofReal_mul] using + h.smul_const (Real.cos θ : ℂ) + · apply contDiffAt_pi.mpr + intro i + fin_cases i + · change ContDiffAt ℝ ⊤ + (fun r => Complex.I * ((radialShellEnergy m B r * Real.sin θ : ℝ) : ℂ)) 0 + simpa only [Complex.real_smul, Complex.ofReal_mul, mul_assoc, mul_left_comm, + mul_comm] using h.smul_const (Complex.I * (Real.sin θ : ℂ)) + · exact Complex.ofRealCLM.contDiff.contDiffAt.comp 0 + (contDiffAt_const.add contDiffAt_id) + · exact contDiffAt_const + +theorem hasDerivAt_radialShellContour {B : ℝ} (hB : 0 < B) (m θ : ℝ) : + HasDerivAt (radialShellContour m B θ) + (((B / radialShellEnergy m B 0 * Real.cos θ : ℝ) : ℂ), + ![Complex.I * (B / radialShellEnergy m B 0 * Real.sin θ : ℝ), 1, 0]) 0 := by + have h := hasDerivAt_radialShellEnergy hB m + apply HasDerivAt.prodMk + · simpa only [Complex.real_smul, Complex.ofReal_mul] using + h.smul_const (Real.cos θ : ℂ) + · apply hasDerivAt_pi.mpr + intro i + fin_cases i + · change HasDerivAt + (fun r => Complex.I * ((radialShellEnergy m B r * Real.sin θ : ℝ) : ℂ)) + (Complex.I * ((B / radialShellEnergy m B 0 * Real.sin θ : ℝ) : ℂ)) 0 + simpa only [Complex.real_smul, Complex.ofReal_mul, mul_assoc, mul_left_comm, + mul_comm] using h.smul_const (Complex.I * (Real.sin θ : ℂ)) + · simpa using ((hasDerivAt_id (0 : ℝ)).const_add B).ofReal_comp + · exact hasDerivAt_const 0 0 + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/RectangleJacobianBound.lean b/LeanPool/VacuumBellSeparation/Shell/RectangleJacobianBound.lean new file mode 100644 index 0000000000..d591243d4c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/RectangleJacobianBound.lean @@ -0,0 +1,60 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.HaarJacobianBound +public import Mathlib.MeasureTheory.Integral.Prod + +/-! +# Quantitative rectangular-fibre estimate + +Tonelli supplies the actual fibre measure. Together with a genuine +Jacobian bound and an actual rectangle contained in the image this +controls the integral over the free shell coordinates. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +variable {E F N : Type*} + [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] + [NormedAddCommGroup F] [NormedSpace ℝ F] [FiniteDimensional ℝ F] + [NormedAddCommGroup N] [NormedSpace ℝ N] [FiniteDimensional ℝ N] + [MeasurableSpace E] [BorelSpace E] [MeasurableSpace F] [BorelSpace F] + [MeasurableSpace N] [BorelSpace N] + (μ : Measure E) (ν : Measure F) (η : Measure N) + [μ.IsAddHaarMeasure] [ν.IsAddHaarMeasure] [η.IsAddHaarMeasure] + +omit [BorelSpace F] [BorelSpace N] in +theorem lintegral_rectangle_first (s : Set F) (t : Set N) + (g : F → ℝ≥0∞) (hg : Measurable g) : + (∫⁻ y in s ×ˢ t, g y.1 ∂ν.prod η) = (η t) * ∫⁻ w in s, g w ∂ν := by + rw [setLIntegral_prod (fun y : F × N => g y.1) + (show AEMeasurable (fun y : F × N => g y.1) ((ν.prod η).restrict (s ×ˢ t)) from + (hg.comp measurable_fst).aemeasurable)] + simp only [lintegral_const, Measure.restrict_apply_univ] + rw [lintegral_mul_const _ hg, mul_comm] + +theorem rectangle_integral_le_jacobian_bound (J : E ≃L[ℝ] F × N) + {f : E → F × N} {f' : E → E →L[ℝ] F × N} {s : Set E} + (hs : MeasurableSet s) (hf' : ∀ x ∈ s, HasFDerivWithinAt f (f' x) s x) + (hinj : Set.InjOn f s) {C : ℝ} + (hC : ∀ x ∈ s, |(J.symm.toContinuousLinearMap.comp (f' x)).det| ≤ C) + {u : Set F} {v : Set N} (hcover : u ×ˢ v ⊆ f '' s) + (g : F → ℝ≥0∞) (hg : Measurable g) : + (η v) * (∫⁻ w in u, g w ∂ν) ≤ + (linearHaarScale μ (ν.prod η) J : ℝ≥0∞) * ENNReal.ofReal C * + ∫⁻ x in s, g (f x).1 ∂μ := by + rw [← lintegral_rectangle_first ν η u v g hg] + exact lintegral_subset_image_le_linearHaarScale_jacobian_bound μ (ν.prod η) + J hs hf' hinj hC hcover (fun y => g y.1) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ReferenceContourDerivative.lean b/LeanPool/VacuumBellSeparation/Shell/ReferenceContourDerivative.lean new file mode 100644 index 0000000000..26751b006f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ReferenceContourDerivative.lean @@ -0,0 +1,163 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.FiniteCoordinateDerivative +public import LeanPool.VacuumBellSeparation.Shell.RadialContourDerivative +public import LeanPool.VacuumBellSeparation.Shell.ReferenceContourRank + +/-! +# The reference rank is the derivative of the actual contour map + +Five genuine Lorentz variations and the radial second momentum coordinate +supply the six real parameters. Joint smoothness is established before +coordinate-curve derivatives identify the full real derivative. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Keep the first five Lorentz parameters and set the unused sixth coordinate to zero. -/ +noncomputable def activeLorentzParameters (a : Fin 6 → ℝ) : Fin 6 → ℝ := + ![a 0, a 1, a 2, a 3, a 4, 0] + +/-- Reference contour map. -/ +noncomputable def referenceContourMap (m B θ : ℝ) (a : Fin 6 → ℝ) : Fin 3 → ℂ := + complexShellCoordinates (complexLorentzFamilyAction (activeLorentzParameters a) + (radialShellContour m B θ (a 5))) + +theorem contDiff_activeLorentzParameters : ContDiff ℝ ⊤ activeLorentzParameters := by + apply contDiff_pi.mpr + intro i + fin_cases i + · exact contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 0 + · exact contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 1 + · exact contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 2 + · exact contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 3 + · exact contDiff_apply ℝ (fun _ : Fin 6 => ℝ) 4 + · exact contDiff_const + +theorem contDiffAt_referenceContourMap {B : ℝ} (hB : 0 < B) (m θ : ℝ) : + ContDiffAt ℝ ⊤ (referenceContourMap m B θ) 0 := by + have hp : ContDiff ℝ ⊤ (fun a : Fin 6 → ℝ => a 5) := by fun_prop + have hr : ContDiffAt ℝ ⊤ + (fun a : Fin 6 → ℝ => radialShellContour m B θ (a 5)) 0 := + (contDiffAt_radialShellContour hB m θ).comp + (f := fun a : Fin 6 → ℝ => a 5) 0 hp.contDiffAt + have hf : ContDiffAt ℝ ⊤ + (fun a : Fin 6 → ℝ => complexLorentzFamilyAction (activeLorentzParameters a) + (radialShellContour m B θ (a 5))) 0 := + contDiff_complexLorentzFamilyAction.comp₂_contDiffAt + contDiff_activeLorentzParameters.contDiffAt hr + unfold referenceContourMap + apply contDiffAt_pi.mpr + intro i + fin_cases i + · exact hf.fst + · exact contDiffAt_pi.mp hf.snd 0 + · exact contDiffAt_pi.mp hf.snd 2 + +theorem referenceContourMap_single_lorentz (m B θ : ℝ) (j : Fin 5) (r : ℝ) : + referenceContourMap m B θ (Pi.single j.castSucc r) = + complexShellCoordinates (complexLorentzParameterAction j.castSucc r + (radialShellContour m B θ 0)) := by + have ha : activeLorentzParameters (Pi.single j.castSucc r) = Pi.single j.castSucc r := by + ext k + fin_cases j <;> fin_cases k <;> simp [activeLorentzParameters] + have hr : (Pi.single j.castSucc r : Fin 6 → ℝ) 5 = 0 := by + fin_cases j <;> simp + rw [referenceContourMap, ha, hr, complexLorentzFamilyAction_single] + +theorem referenceContourMap_single_radial (m B θ r : ℝ) : + referenceContourMap m B θ (Pi.single 5 r) = + complexShellCoordinates (radialShellContour m B θ r) := by + have ha : activeLorentzParameters (Pi.single 5 r) = 0 := by + ext k + fin_cases k <;> simp [activeLorentzParameters] + rw [referenceContourMap, ha, complexLorentzFamilyAction_zero] + simp + +/-- Continuous linear map for the reference contour derivative, of type `(Fin 6 → ℝ) →L[ℝ] (Fin 3 → +ℂ)`. -/ +noncomputable def referenceContourDerivative (m B θ : ℝ) : + (Fin 6 → ℝ) →L[ℝ] (Fin 3 → ℂ) := + (referenceContourTangentLinear + (radialShellEnergy m B 0 * Real.cos θ) B (radialShellEnergy m B 0 * Real.sin θ) + (B / radialShellEnergy m B 0 * Real.cos θ) + (B / radialShellEnergy m B 0 * Real.sin θ)).toContinuousLinearMap + +theorem referenceContourDerivative_lorentz_column (m B θ : ℝ) (j : Fin 5) : + referenceContourDerivative m B θ (Pi.single j.castSucc 1) = + complexShellCoordinates (lorentzParameterGenerator j.castSucc + (radialShellContour m B θ 0)) := by + ext i + fin_cases j <;> fin_cases i <;> + simp [referenceContourDerivative, referenceContourTangentLinear, + complexShellCoordinates_apply, lorentzParameterGenerator, radialShellContour, + Complex.ofReal_mul] + +theorem referenceContourDerivative_radial_column (m B θ : ℝ) : + referenceContourDerivative m B θ (Pi.single 5 1) = + complexShellCoordinates + (((B / radialShellEnergy m B 0 * Real.cos θ : ℝ) : ℂ), + ![Complex.I * (B / radialShellEnergy m B 0 * Real.sin θ : ℝ), 1, 0]) := by + ext i + fin_cases i <;> + simp [referenceContourDerivative, referenceContourTangentLinear, + complexShellCoordinates_apply, Complex.ofReal_mul] + +theorem hasFDerivAt_referenceContourMap {B : ℝ} (hB : 0 < B) (m θ : ℝ) : + HasFDerivAt (referenceContourMap m B θ) (referenceContourDerivative m B θ) 0 := by + apply hasFDerivAt_zero_of_coordinate_curves + ((contDiffAt_referenceContourMap hB m θ).differentiableAt (by simp)) + intro i + have hcoords {f : ℝ → ComplexSpacetime} {v : ComplexSpacetime} + (h : HasDerivAt f v 0) : + HasDerivAt (fun r => complexShellCoordinates (f r)) + (complexShellCoordinates v) 0 := by + apply hasDerivAt_pi.mpr + intro k + -- Restrict scalars only after projecting to the scalar complex codomain. + -- This avoids the competing Pi real-module structures on Fin 3 → ℂ. + let L : ComplexSpacetime →L[ℝ] ℂ := + (((ContinuousLinearMap.proj k : (Fin 3 → ℂ) →L[ℂ] ℂ).comp + complexShellCoordinates).restrictScalars ℝ) + have hd := L.hasFDerivAt.comp_hasDerivAt 0 h + change HasDerivAt (fun r => complexShellCoordinates (f r) k) + (complexShellCoordinates v k) 0 at hd + exact hd + have hl (j : Fin 5) : HasDerivAt + (fun r : ℝ => referenceContourMap m B θ (Pi.single j.castSucc r)) + (referenceContourDerivative m B θ (Pi.single j.castSucc 1)) 0 := by + rw [referenceContourDerivative_lorentz_column] + simpa only [referenceContourMap_single_lorentz, Function.comp_apply] using + hcoords (hasDerivAt_complexLorentzParameterAction_zero j.castSucc + (radialShellContour m B θ 0)) + have hr : HasDerivAt (fun r : ℝ => referenceContourMap m B θ (Pi.single 5 r)) + (referenceContourDerivative m B θ (Pi.single 5 1)) 0 := by + rw [referenceContourDerivative_radial_column] + simpa only [referenceContourMap_single_radial, Function.comp_apply] using + hcoords (hasDerivAt_radialShellContour hB m θ) + fin_cases i + · exact hl 0 + · exact hl 1 + · exact hl 2 + · exact hl 3 + · exact hl 4 + · exact hr + +/-- The full derivative of the literal six-parameter contour chart is bijective. +There is no positive-mass premise: B>0 excludes the cone vertex. -/ +theorem referenceContourMap_derivative_bijective {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) (m : ℝ) : + Function.Bijective (fderiv ℝ (referenceContourMap m B θ) 0) := by + rw [(hasFDerivAt_referenceContourMap hB m θ).fderiv] + exact canonicalContourTangent_bijective (radialShellEnergy m B 0) B θ + (radialShellEnergy_pos hB m) hB hθ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ReferenceContourLocalInverse.lean b/LeanPool/VacuumBellSeparation/Shell/ReferenceContourLocalInverse.lean new file mode 100644 index 0000000000..1ebbd8cdc4 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ReferenceContourLocalInverse.lean @@ -0,0 +1,82 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ReferenceContourDerivative +public import Mathlib.Analysis.Calculus.InverseFunctionTheorem.FDeriv +public import Mathlib.Analysis.Calculus.ContDiff.RCLike + +/-! +# Actual local inverse for the six selected contour parameters + +The inverse-function theorem is applied to the real six-dimensional +map already differentiated. This is a local section in free shell +coordinates, with no coarea or measure conclusion included. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Reference contour derivative equivalence of type `(Fin 6 → ℝ) ≃L[ℝ] (Fin 3 → ℂ)`. -/ +noncomputable def referenceContourDerivativeEquiv (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : (Fin 6 → ℝ) ≃L[ℝ] (Fin 3 → ℂ) := + referenceContourTangentEquiv + (radialShellEnergy m B 0 * Real.cos θ) B (radialShellEnergy m B 0 * Real.sin θ) + (B / radialShellEnergy m B 0 * Real.cos θ) + (B / radialShellEnergy m B 0 * Real.sin θ) + hB.ne' (mul_pos (radialShellEnergy_pos hB m) hθ).ne' + (mul_pos (div_pos hB (radialShellEnergy_pos hB m)) hθ).ne' + +theorem referenceContourDerivativeEquiv_coe (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : + (referenceContourDerivativeEquiv m hB hθ : (Fin 6 → ℝ) →L[ℝ] (Fin 3 → ℂ)) = + referenceContourDerivative m B θ := by + ext a i + rfl + +theorem hasStrictFDerivAt_referenceContourMap (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : + HasStrictFDerivAt (referenceContourMap m B θ) + (referenceContourDerivativeEquiv m hB hθ : (Fin 6 → ℝ) →L[ℝ] (Fin 3 → ℂ)) 0 := by + rw [referenceContourDerivativeEquiv_coe] + exact (contDiffAt_referenceContourMap hB m θ).hasStrictFDerivAt + (hasFDerivAt_referenceContourMap hB m θ) (by simp) + +/-- Reference contour local chart. -/ +noncomputable def referenceContourLocalChart (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : + OpenPartialHomeomorph (Fin 6 → ℝ) (Fin 3 → ℂ) := + (hasStrictFDerivAt_referenceContourMap m hB hθ).toOpenPartialHomeomorph + (referenceContourMap m B θ) + +@[simp] theorem referenceContourLocalChart_apply (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) (a : Fin 6 → ℝ) : + referenceContourLocalChart m hB hθ a = referenceContourMap m B θ a := rfl + +theorem zero_mem_referenceContourLocalChart (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : + 0 ∈ (referenceContourLocalChart m hB hθ).source := + (hasStrictFDerivAt_referenceContourMap m hB hθ).mem_toOpenPartialHomeomorph_source + +theorem referenceContourLocalChart_center_mem_target (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : + complexShellCoordinates (radialShellContour m B θ 0) ∈ + (referenceContourLocalChart m hB hθ).target := by + have h := (hasStrictFDerivAt_referenceContourMap m hB hθ).image_mem_toOpenPartialHomeomorph_target + have ha : activeLorentzParameters 0 = 0 := by ext i; fin_cases i <;> rfl + simpa only [referenceContourLocalChart, referenceContourMap, ha, + Pi.zero_apply, complexLorentzFamilyAction_zero] using h + +theorem referenceContourLocalChart_inverse_derivative (m : ℝ) {B θ : ℝ} + (hB : 0 < B) (hθ : 0 < Real.sin θ) : + HasStrictFDerivAt (referenceContourLocalChart m hB hθ).symm + ((referenceContourDerivativeEquiv m hB hθ).symm : + (Fin 3 → ℂ) →L[ℝ] (Fin 6 → ℝ)) (referenceContourMap m B θ 0) := + (hasStrictFDerivAt_referenceContourMap m hB hθ).to_localInverse + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ReferenceContourRank.lean b/LeanPool/VacuumBellSeparation/Shell/ReferenceContourRank.lean new file mode 100644 index 0000000000..a73077d71f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ReferenceContourRank.lean @@ -0,0 +1,88 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.FreeField.ComplexSpacetime + +/-! +# Explicit rank algebra at the canonical contour preimage + +In the free shell coordinates (z0,z1,z3), the selected five Lorentz +directions and the radial p2 direction give this real six-dimensional +linear map. Its inverse is explicit, even when the time component A +vanishes. No submersion theorem is assumed here. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Linear map for the reference contour tangent linear, of type `(Fin 6 → ℝ) →ₗ[ℝ] (Fin 3 → ℂ) +where toFun x`. -/ +noncomputable def referenceContourTangentLinear (A B C D E : ℝ) : + (Fin 6 → ℝ) →ₗ[ℝ] (Fin 3 → ℂ) where + toFun x := ![((B * x 1 + D * x 5 : ℝ) : ℂ) + Complex.I * (C * x 0 : ℝ), + ((A * x 0 - B * x 2 : ℝ) : ℂ) + Complex.I * (E * x 5 : ℝ), + ((B * x 4 : ℝ) : ℂ) + Complex.I * (C * x 3 : ℝ)] + map_add' x y := by + ext i + fin_cases i <;> simp [Complex.ofReal_add, Complex.ofReal_sub, Complex.ofReal_mul] <;> ring + map_smul' a x := by + ext i + fin_cases i <;> simp [Complex.ofReal_add, Complex.ofReal_sub, Complex.ofReal_mul, + Complex.real_smul] <;> ring + +/-- Reference contour tangent inverse. -/ +noncomputable def referenceContourTangentInverse (A B C D E : ℝ) + (z : Fin 3 → ℂ) : Fin 6 → ℝ := + ![(z 0).im / C, ((z 0).re - D * ((z 1).im / E)) / B, + (A * ((z 0).im / C) - (z 1).re) / B, + (z 2).im / C, (z 2).re / B, (z 1).im / E] + +theorem referenceContourTangent_left_inverse (A B C D E : ℝ) + (hB : B ≠ 0) (hC : C ≠ 0) (hE : E ≠ 0) : + Function.LeftInverse (referenceContourTangentInverse A B C D E) + (referenceContourTangentLinear A B C D E) := by + intro x + ext i + fin_cases i <;> + simp [referenceContourTangentInverse, referenceContourTangentLinear, + Complex.mul_re, Complex.mul_im, hB, hC, hE] + +theorem referenceContourTangent_right_inverse (A B C D E : ℝ) + (hB : B ≠ 0) (hC : C ≠ 0) (hE : E ≠ 0) : + Function.RightInverse (referenceContourTangentInverse A B C D E) + (referenceContourTangentLinear A B C D E) := by + intro z + ext i + fin_cases i <;> apply Complex.ext <;> + simp [referenceContourTangentInverse, referenceContourTangentLinear, + Complex.mul_re, Complex.mul_im] <;> + field_simp <;> ring + +/-- Reference contour tangent equivalence of type `(Fin 6 → ℝ) ≃L[ℝ] (Fin 3 → ℂ)`. -/ +noncomputable def referenceContourTangentEquiv (A B C D E : ℝ) + (hB : B ≠ 0) (hC : C ≠ 0) (hE : E ≠ 0) : + (Fin 6 → ℝ) ≃L[ℝ] (Fin 3 → ℂ) := + ({ referenceContourTangentLinear A B C D E with + invFun := referenceContourTangentInverse A B C D E + left_inv := referenceContourTangent_left_inverse A B C D E hB hC hE + right_inv := referenceContourTangent_right_inverse A B C D E hB hC hE } : + (Fin 6 → ℝ) ≃ₗ[ℝ] (Fin 3 → ℂ)).toContinuousLinearEquiv + +/-- At the canonical contour preimage all three denominators stay nonzero, +including normalized mass zero and cos(theta)=0. -/ +theorem canonicalContourTangent_bijective (ω B θ : ℝ) + (hω : 0 < ω) (hB : 0 < B) (hθ : 0 < Real.sin θ) : + Function.Bijective (referenceContourTangentLinear + (ω * Real.cos θ) B (ω * Real.sin θ) + (B / ω * Real.cos θ) (B / ω * Real.sin θ)) := + (referenceContourTangentEquiv (ω * Real.cos θ) B (ω * Real.sin θ) + (B / ω * Real.cos θ) (B / ω * Real.sin θ) + hB.ne' (mul_pos hω hθ).ne' (mul_pos (div_pos hB hω) hθ).ne').bijective + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/RegularShellFamilyNeighborhood.lean b/LeanPool/VacuumBellSeparation/Shell/RegularShellFamilyNeighborhood.lean new file mode 100644 index 0000000000..6cfc5fbf38 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/RegularShellFamilyNeighborhood.lean @@ -0,0 +1,101 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.LocalInducedVolumeComparison +public import LeanPool.VacuumBellSeparation.Shell.UniformLocalShellDensity + +/-! # Open chart neighbourhoods in the mass-shell family -/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Metric Set + +/-- Ambient shell coordinates defined as `shellEuclideanCoordinates.symm +(lorentzComplexShellCoordinates Λ z)`. -/ +noncomputable def ambientShellCoordinates (Λ : Spacetime ≃L[ℝ] Spacetime) + (z : ComplexSpacetime) : ShellEuclideanDomain := + shellEuclideanCoordinates.symm (lorentzComplexShellCoordinates Λ z) + +theorem continuous_ambientShellCoordinates (Λ : Spacetime ≃L[ℝ] Spacetime) : + Continuous (ambientShellCoordinates Λ) := + shellEuclideanCoordinates.symm.continuous.comp (lorentzComplexShellCoordinates Λ).continuous + +/-- Local shell coordinate set. -/ +noncomputable def localShellCoordinateSet (t : ℝ) (w : Fin 3 → ℂ) (δ ε : ℝ) : + Set ShellEuclideanDomain := + euclideanShellChartDomain t ∩ + (shellEuclideanCoordinates ⁻¹' ball w δ) ∩ + ball (shellEuclideanCoordinates.symm w) ε + +theorem isOpen_localShellCoordinateSet (t : ℝ) (w : Fin 3 → ℂ) (δ ε : ℝ) : + IsOpen (localShellCoordinateSet t w δ ε) := + ((isOpen_euclideanShellChartDomain t).inter + (isOpen_ball.preimage shellEuclideanCoordinates.continuous)).inter isOpen_ball + +/-- Set of points satisfying the regular shell family neighborhood condition. -/ +def regularShellFamilyNeighborhood (m : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (w : Fin 3 → ℂ) (δ ε : ℝ) : Set (ℝ × ComplexSpacetime) := + {q | |q.1 - m| < min δ ε ∧ + 0 < ((complexifiedSpacetimeMap Λ.symm q.2).2 1).re ∧ + ambientShellCoordinates Λ q.2 ∈ localShellCoordinateSet q.1 w δ ε} + +theorem isOpen_regularShellFamilyNeighborhood (m : ℝ) + (Λ : Spacetime ≃L[ℝ] Spacetime) (w : Fin 3 → ℂ) (δ ε : ℝ) : + IsOpen (regularShellFamilyNeighborhood m Λ w δ ε) := by + have hcoord : Continuous (fun q : ℝ × ComplexSpacetime => + ambientShellCoordinates Λ q.2) := (continuous_ambientShellCoordinates Λ).comp continuous_snd + have hD : IsOpen {q : ℝ × ComplexSpacetime | + ambientShellCoordinates Λ q.2 ∈ euclideanShellChartDomain q.1} := + isOpen_euclideanShellJointDomain.preimage (continuous_fst.prodMk hcoord) + have hf : IsOpen {q : ℝ × ComplexSpacetime | + shellEuclideanCoordinates (ambientShellCoordinates Λ q.2) ∈ ball w δ} := + isOpen_ball.preimage (shellEuclideanCoordinates.continuous.comp hcoord) + have he : IsOpen {q : ℝ × ComplexSpacetime | + ambientShellCoordinates Λ q.2 ∈ ball (shellEuclideanCoordinates.symm w) ε} := + isOpen_ball.preimage hcoord + have hmass : IsOpen {q : ℝ × ComplexSpacetime | |q.1 - m| < min δ ε} := + isOpen_lt (by fun_prop) continuous_const + have hsign : IsOpen {q : ℝ × ComplexSpacetime | + 0 < ((complexifiedSpacetimeMap Λ.symm q.2).2 1).re} := + isOpen_lt continuous_const (by fun_prop) + exact hmass.inter (hsign.inter ((hD.inter hf).inter he)) + +theorem regularShellFamilyNeighborhood_fiber {m t δ ε : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) (w : Fin 3 → ℂ) + (ht : |t - m| < min δ ε) : + {z : complexShell t | (t, z.1) ∈ regularShellFamilyNeighborhood m Λ w δ ε} = + regularShellCoordinatePatch t Λ (localShellCoordinateSet t w δ ε) := by + ext z + simp only [regularShellFamilyNeighborhood, mem_ofPred_eq, ht, true_and, + regularShellCoordinatePatch, mem_inter_iff, mem_preimage, + inducedShellPatch, localShellCoordinateSet, ambientShellCoordinates, shellPatchCoordinates] + tauto + +theorem regularShellFamilyNeighborhood_fiber_empty {m t δ ε : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) (w : Fin 3 → ℂ) + (ht : ¬ |t - m| < min δ ε) : + {z : complexShell t | (t, z.1) ∈ regularShellFamilyNeighborhood m Λ w δ ε} = ∅ := by + ext z + simp only [regularShellFamilyNeighborhood, mem_ofPred_eq, ht, false_and, mem_empty_iff_false] + +theorem regularShellFamilyNeighborhood_mem_center {m δ ε : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {z : ComplexSpacetime} + (hδ : 0 < δ) (hε : 0 < ε) + (hz : 0 < ((complexifiedSpacetimeMap Λ.symm z).2 1).re) + (hw : lorentzComplexShellCoordinates Λ z ∈ complexShellChartDomain m) : + (m, z) ∈ regularShellFamilyNeighborhood m Λ + (lorentzComplexShellCoordinates Λ z) δ ε := by + refine ⟨by simpa using lt_min hδ hε, hz, ?_⟩ + refine ⟨⟨?_, ?_⟩, ?_⟩ + · simpa [ambientShellCoordinates, euclideanShellChartDomain] using hw + · simp [ambientShellCoordinates, hδ] + · exact mem_ball_self (x := ambientShellCoordinates Λ z) hε + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/ShellSubmeanNeighborhood.lean b/LeanPool/VacuumBellSeparation/Shell/ShellSubmeanNeighborhood.lean new file mode 100644 index 0000000000..1fe53b2b5c --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/ShellSubmeanNeighborhood.lean @@ -0,0 +1,127 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellMassContinuity +public import LeanPool.VacuumBellSeparation.Shell.InducedShellPatchCoordinates + +/-! +# Actual uniform chart balls in an ambient open shell neighbourhood + +Joint mass-coordinate continuity supplies a radius and a positive Gram +lower bound before the nearby mass or target is chosen. The moving +center is the genuine linear chart coordinate of the target; the +positive-root branch and reconstruction are proved on an open set. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Metric Set Filter +open scoped Topology + +/-- Continuous linear map for the shell ambient coordinates, of type `ComplexSpacetime →L[ℂ] +ShellEuclideanDomain`. -/ +noncomputable def shellAmbientCoordinates (Λ : Spacetime ≃L[ℝ] Spacetime) : + ComplexSpacetime →L[ℂ] ShellEuclideanDomain := + shellEuclideanCoordinates.symm.toContinuousLinearMap.comp (lorentzComplexShellCoordinates Λ) + +theorem shellAmbientCoordinates_chart (t : ℝ) (Λ : Spacetime ≃L[ℝ] Spacetime) + (w : ShellEuclideanDomain) : + shellAmbientCoordinates Λ + (lorentzComplexShellChart t Λ (shellEuclideanCoordinates w)) = w := by + simp only [shellAmbientCoordinates, ContinuousLinearMap.comp_apply, + ContinuousLinearEquiv.coe_coe, lorentzComplexShellCoordinates_chart, + ContinuousLinearEquiv.symm_apply_apply] + +theorem shell_submean_local_neighborhood {t₀ : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) (hΛ : IsLorentzMap Λ) + {w₀ : ShellEuclideanDomain} (hw₀ : w₀ ∈ euclideanShellChartDomain t₀) + {V : Set (ℝ × ComplexSpacetime)} (hV : IsOpen V) + (hv₀ : (t₀, lorentzComplexShellChart t₀ Λ (shellEuclideanCoordinates w₀)) ∈ V) : + ∃ W : Set (ℝ × ComplexSpacetime), IsOpen W ∧ + (t₀, lorentzComplexShellChart t₀ Λ (shellEuclideanCoordinates w₀)) ∈ W ∧ + ∃ R d : ℝ, 0 < R ∧ 0 < d ∧ + ∀ t z, (t, z) ∈ W → z ∈ complexShell t → + lorentzComplexShellChart t Λ (shellEuclideanCoordinates + (shellAmbientCoordinates Λ z)) = z ∧ + ∀ w ∈ ball (shellAmbientCoordinates Λ z) (2 * R), + w ∈ euclideanShellChartDomain t ∧ d ≤ inducedShellChartDensity t Λ w ∧ + (t, lorentzComplexShellChart t Λ (shellEuclideanCoordinates w)) ∈ V := by + let q₀ : ℝ × ShellEuclideanDomain := (t₀, w₀) + let z₀ := lorentzComplexShellChart t₀ Λ (shellEuclideanCoordinates w₀) + let d := inducedShellChartDensity t₀ Λ w₀ / 2 + have hd : 0 < d := half_pos (inducedShellChartDensity_pos Λ hw₀) + have hJ : ContinuousAt (fun q : ℝ × ShellEuclideanDomain => + inducedShellChartDensity q.1 Λ q.2) q₀ := + (continuousOn_inducedShellChartDensity_joint Λ q₀ hw₀).continuousAt + (isOpen_euclideanShellJointDomain.mem_nhds hw₀) + have hchart : ContinuousAt (fun q : ℝ × ShellEuclideanDomain => + euclideanLorentzShellChart q.1 Λ q.2) q₀ := + ((contDiffOn_euclideanLorentzShellChart_joint Λ).continuousOn q₀ hw₀).continuousAt + (isOpen_euclideanShellJointDomain.mem_nhds hw₀) + have hF : ContinuousAt (fun q : ℝ × ShellEuclideanDomain => + (q.1, lorentzComplexShellChart q.1 Λ (shellEuclideanCoordinates q.2))) q₀ := by + have h := continuous_fst.continuousAt.prodMk + (complexSpacetimeEuclideanEquiv.symm.continuousAt.comp hchart) + simpa only [euclideanLorentzShellChart, Function.comp_apply, + ContinuousLinearEquiv.symm_apply_apply] using h + have hdlt : d < inducedShellChartDensity q₀.1 Λ q₀.2 := by + change inducedShellChartDensity t₀ Λ w₀ / 2 < inducedShellChartDensity t₀ Λ w₀ + exact half_lt_self (inducedShellChartDensity_pos Λ hw₀) + have hJN : ∀ᶠ q in 𝓝 q₀, d < inducedShellChartDensity q.1 Λ q.2 := + hJ (isOpen_Ioi.mem_nhds hdlt) + have hFN := hF (hV.mem_nhds hv₀) + have hN : {q : ℝ × ShellEuclideanDomain | q ∈ euclideanShellJointDomain ∧ + d ≤ inducedShellChartDensity q.1 Λ q.2 ∧ + (q.1, lorentzComplexShellChart q.1 Λ (shellEuclideanCoordinates q.2)) ∈ V} ∈ 𝓝 q₀ := by + filter_upwards [isOpen_euclideanShellJointDomain.mem_nhds hw₀, hJN, hFN] with q hq hj hv + exact ⟨hq, hj.le, hv⟩ + obtain ⟨ε, hε, hεsub⟩ := Metric.mem_nhds_iff.mp hN + let W : Set (ℝ × ComplexSpacetime) := {p | + dist p.1 t₀ < ε / 4 ∧ dist (shellAmbientCoordinates Λ p.2) w₀ < ε / 4 ∧ + 0 < ((complexifiedSpacetimeMap Λ.symm p.2).2 1).re} + have hW : IsOpen W := by + have hsign : Continuous (fun p : ℝ × ComplexSpacetime => + ((complexifiedSpacetimeMap Λ.symm p.2).2 1).re) := + Complex.continuous_re.comp ((continuous_apply (1 : Fin 3)).comp + (((complexifiedSpacetimeMap Λ.symm).continuous.comp continuous_snd).snd)) + change IsOpen ({p : ℝ × ComplexSpacetime | dist p.1 t₀ < ε / 4} ∩ + ({p : ℝ × ComplexSpacetime | dist (shellAmbientCoordinates Λ p.2) w₀ < ε / 4} ∩ + {p : ℝ × ComplexSpacetime | 0 < ((complexifiedSpacetimeMap Λ.symm p.2).2 1).re})) + exact (isOpen_lt (continuous_fst.dist continuous_const) continuous_const).inter + ((isOpen_lt (((shellAmbientCoordinates Λ).continuous.comp continuous_snd).dist + continuous_const) continuous_const).inter (isOpen_lt continuous_const hsign)) + have hz₀ : 0 < ((complexifiedSpacetimeMap Λ.symm z₀).2 1).re := by + dsimp only [z₀, lorentzComplexShellChart] + rw [complexifiedSpacetimeMap_inverse] + exact complexShellChart_second_re_pos hw₀ + refine ⟨W, hW, ?_, ε / 8, d, by positivity, hd, ?_⟩ + · change dist t₀ t₀ < ε / 4 ∧ + dist (shellAmbientCoordinates Λ z₀) w₀ < ε / 4 ∧ _ + rw [show shellAmbientCoordinates Λ z₀ = w₀ from shellAmbientCoordinates_chart t₀ Λ w₀] + exact ⟨by simpa using (show 0 < ε / 4 by positivity), + by simpa using (show 0 < ε / 4 by positivity), hz₀⟩ + · intro t z hp hz + constructor + · simpa only [shellAmbientCoordinates, ContinuousLinearMap.comp_apply, + ContinuousLinearEquiv.coe_coe, ContinuousLinearEquiv.apply_symm_apply] using + lorentzComplexShellChart_reconstruct Λ hΛ hz hp.2.2 + · intro w hw + have htw : (t, w) ∈ ball q₀ ε := by + rw [mem_ball, Prod.dist_eq, max_lt_iff] + constructor + · exact hp.1.trans (by linarith) + · have hw' : dist w (shellAmbientCoordinates Λ z) < 2 * (ε / 8) := hw + have ht := dist_triangle w (shellAmbientCoordinates Λ z) w₀ + change dist w w₀ < ε + linarith [hp.2.1] + have hq := hεsub htw + exact ⟨hq.1, hq.2.1, hq.2.2⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/SmoothBallProbability.lean b/LeanPool/VacuumBellSeparation/Shell/SmoothBallProbability.lean new file mode 100644 index 0000000000..cdff76130b --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/SmoothBallProbability.lean @@ -0,0 +1,99 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Calculus.BumpFunction.Normed +public import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension +public import Mathlib.MeasureTheory.Measure.WithDensity + +/-! +# A genuine smooth parameter probability on any prescribed ball + +This density is in the Lorentz parameter variables alone. Its product +with the original physical momentum measure therefore retains the +product structure required by the averaged wedge estimate. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +variable (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] + [FiniteDimensional ℝ E] [MeasureSpace E] [BorelSpace E] [Measure.IsAddHaarMeasure + (volume : Measure E)] + +/-- Smooth ball bump defined as `r / 2 rOut := r rIn_pos := half_pos hr rIn_lt_rOut := half_lt_self +hr`. -/ +noncomputable def smoothBallBump (r : ℝ) (hr : 0 < r) : ContDiffBump (0 : E) where + rIn := r / 2 + rOut := r + rIn_pos := half_pos hr + rIn_lt_rOut := half_lt_self hr + +/-- Normalize the smooth radial bump on the radius-`r` ball to a probability density. -/ +noncomputable def smoothBallDensity (r : ℝ) (hr : 0 < r) : E → ℝ := + (smoothBallBump E r hr).normed volume + +/-- Smooth ball probability defined as `volume.withDensity (fun x => ENNReal.ofReal +(smoothBallDensity E r hr x))`. -/ +noncomputable def smoothBallProbability (r : ℝ) (hr : 0 < r) : Measure E := + volume.withDensity (fun x => ENNReal.ofReal (smoothBallDensity E r hr x)) + +omit [BorelSpace E] [Measure.IsAddHaarMeasure (volume : Measure E)] in +theorem smoothBallDensity_nonneg (r : ℝ) (hr : 0 < r) (x : E) : + 0 ≤ smoothBallDensity E r hr x := (smoothBallBump E r hr).nonneg_normed x + +omit [BorelSpace E] [Measure.IsAddHaarMeasure (volume : Measure E)] in +theorem contDiff_smoothBallDensity (r : ℝ) (hr : 0 < r) : + ContDiff ℝ (⊤ : ℕ∞) (smoothBallDensity E r hr) := (smoothBallBump E r hr).contDiff_normed + +theorem smoothBallDensity_integral (r : ℝ) (hr : 0 < r) : + ∫ x, smoothBallDensity E r hr x = 1 := (smoothBallBump E r hr).integral_normed + +instance smoothBallProbability_isProbability (r : ℝ) (hr : 0 < r) : + IsProbabilityMeasure (smoothBallProbability E r hr) where + measure_univ := by + rw [smoothBallProbability, withDensity_apply _ MeasurableSet.univ, + Measure.restrict_univ] + change (∫⁻ x, ENNReal.ofReal ((smoothBallBump E r hr).normed volume x)) = 1 + rw [← ofReal_integral_eq_lintegral_ofReal + (smoothBallBump E r hr).integrable_normed + (Filter.Eventually.of_forall (smoothBallDensity_nonneg E r hr)), + (smoothBallBump E r hr).integral_normed, ENNReal.ofReal_one] + +theorem smoothBallDensity_support (r : ℝ) (hr : 0 < r) : + Function.support (smoothBallDensity E r hr) = Metric.ball 0 r := + (smoothBallBump E r hr).support_normed_eq + +theorem smoothBallDensity_hasCompactSupport (r : ℝ) (hr : 0 < r) : + HasCompactSupport (smoothBallDensity E r hr) := + (smoothBallBump E r hr).hasCompactSupport_normed + +theorem smoothBallDensity_constant_on_inner (r : ℝ) (hr : 0 < r) : + ∃ d > 0, ∀ x : E, ‖x‖ ≤ r / 2 → smoothBallDensity E r hr x = d := by + let b := smoothBallBump E r hr + refine ⟨1 / ∫ x, b x, one_div_pos.mpr b.integral_pos, ?_⟩ + intro x hx + have hb : b x = 1 := b.one_of_mem_closedBall (by + simpa only [Metric.mem_closedBall, dist_zero_right, b, smoothBallBump] using hx) + change b x / (∫ x, b x) = _ + rw [hb] + +theorem smoothBallProbability_compl_ball (r : ℝ) (hr : 0 < r) : + smoothBallProbability E r hr (Metric.ball 0 r)ᶜ = 0 := by + rw [smoothBallProbability, withDensity_apply _ Metric.isOpen_ball.measurableSet.compl] + apply setLIntegral_eq_zero Metric.isOpen_ball.measurableSet.compl + intro x hx + have hz : smoothBallDensity E r hr x = 0 := by + by_contra hn + exact hx ((smoothBallDensity_support E r hr) ▸ hn) + simp only [hz, ENNReal.ofReal_zero, Pi.zero_apply] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/SpacetimeFrameCoordinates.lean b/LeanPool/VacuumBellSeparation/Shell/SpacetimeFrameCoordinates.lean new file mode 100644 index 0000000000..9ebe8eed9d --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/SpacetimeFrameCoordinates.lean @@ -0,0 +1,121 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.LorentzFrameMap + +/-! +# Actual time-first finite coordinates for the original spacetime frame + +The Euclidean four-norm is the actual WithLp 2 norm used by root. +-/ + +@[expose] public section + +noncomputable section + +namespace VacuumBellSeparation + +open Matrix + +/-- Time, then the three spatial components, on the original carrier. -/ +def spacetimeFrameCoordinates : Spacetime ≃ₗ[ℝ] (Fin 4 → ℝ) where + toFun x := Fin.cons x.1 (WithLp.ofLp x.2) + invFun a := (a 0, WithLp.toLp 2 (Fin.tail a)) + left_inv x := by apply Prod.ext <;> rfl + right_inv a := Fin.cons_self_tail a + map_add' x y := by ext i; refine Fin.cases ?_ (fun j => ?_) i <;> rfl + map_smul' a x := by ext i; refine Fin.cases ?_ (fun j => ?_) i <;> rfl + +@[simp] theorem spacetimeFrameCoordinates_zero (x : Spacetime) : + spacetimeFrameCoordinates x 0 = x.1 := rfl + +@[simp] theorem spacetimeFrameCoordinates_succ (x : Spacetime) (i : Fin 3) : + spacetimeFrameCoordinates x i.succ = x.2 i := rfl + +@[simp] theorem spacetimeFrameCoordinates_one (x : Spacetime) : + spacetimeFrameCoordinates x 1 = x.2 0 := spacetimeFrameCoordinates_succ x 0 + +@[simp] theorem spacetimeFrameCoordinates_two (x : Spacetime) : + spacetimeFrameCoordinates x 2 = x.2 1 := spacetimeFrameCoordinates_succ x 1 + +@[simp] theorem spacetimeFrameCoordinates_three (x : Spacetime) : + spacetimeFrameCoordinates x 3 = x.2 2 := spacetimeFrameCoordinates_succ x 2 + +/-- The literal time-first standard basis transported to the physical carrier. -/ +def spacetimeFrameBasis : Module.Basis (Fin 4) ℝ Spacetime := + (Pi.basisFun ℝ (Fin 4)).map spacetimeFrameCoordinates.symm + +@[simp] theorem spacetimeFrameBasis_repr (x : Spacetime) (i : Fin 4) : + spacetimeFrameBasis.repr x i = spacetimeFrameCoordinates x i := by + change (Pi.basisFun ℝ (Fin 4)).repr (spacetimeFrameCoordinates x) i = _ + exact Pi.basisFun_repr _ _ _ _ + +@[simp] theorem spacetimeFrameBasis_zero : spacetimeFrameBasis 0 = (1, 0) := by + apply spacetimeFrameCoordinates.injective + ext i + refine Fin.cases ?_ (fun j => ?_) i <;> + simp [spacetimeFrameBasis, Pi.basisFun_apply, spacetimeFrameCoordinates, + Fin.tail] + +@[simp] theorem spacetimeFrameBasis_succ (j : Fin 3) : + spacetimeFrameBasis j.succ = spacetimeAxis j := by + apply spacetimeFrameCoordinates.injective + ext i + refine Fin.cases ?_ (fun k => ?_) i + · simp [spacetimeFrameBasis, Pi.basisFun_apply, spacetimeFrameCoordinates, spacetimeAxis] + · simp [spacetimeFrameBasis, Pi.basisFun_apply, spacetimeFrameCoordinates, spacetimeAxis, + Fin.tail, Pi.single_apply] + +@[simp] theorem spacetimeFrameBasis_one : + spacetimeFrameBasis 1 = spacetimeAxis 0 := spacetimeFrameBasis_succ 0 + +@[simp] theorem spacetimeFrameBasis_two : + spacetimeFrameBasis 2 = spacetimeAxis 1 := spacetimeFrameBasis_succ 1 + +@[simp] theorem spacetimeFrameBasis_three : + spacetimeFrameBasis 3 = spacetimeAxis 2 := spacetimeFrameBasis_succ 2 + +/-- Spacetime column matrix given by `fun i j => spacetimeFrameCoordinates (![w, e, f, n] j) i`. -/ +def spacetimeColumnMatrix (w e f n : Spacetime) : Matrix (Fin 4) (Fin 4) ℝ := + fun i j => spacetimeFrameCoordinates (![w, e, f, n] j) i + +theorem spacetimeColumnMatrix_col_zero (w e f n : Spacetime) : + (fun i => spacetimeColumnMatrix w e f n i 0) = spacetimeFrameCoordinates w := rfl + +theorem spacetimeColumnMatrix_col_one (w e f n : Spacetime) : + (fun i => spacetimeColumnMatrix w e f n i 1) = spacetimeFrameCoordinates e := rfl + +theorem spacetimeColumnMatrix_col_two (w e f n : Spacetime) : + (fun i => spacetimeColumnMatrix w e f n i 2) = spacetimeFrameCoordinates f := rfl + +theorem spacetimeColumnMatrix_col_three (w e f n : Spacetime) : + (fun i => spacetimeColumnMatrix w e f n i 3) = spacetimeFrameCoordinates n := rfl + +theorem lorentzFrameLinear_toMatrix (e f : Spacetime) : + LinearMap.toMatrix spacetimeFrameBasis spacetimeFrameBasis (lorentzFrameLinear e f) = + spacetimeColumnMatrix (lorentzFrameFuture e f) e f (lorentzFrameNormal e f) := by + ext i j + rw [LinearMap.toMatrix_apply, spacetimeFrameBasis_repr] + fin_cases j + · change spacetimeFrameCoordinates (lorentzFrameLinear e f (spacetimeFrameBasis 0)) i = + spacetimeFrameCoordinates (lorentzFrameFuture e f) i + rw [spacetimeFrameBasis_zero, lorentzFrameLinear_time] + · change spacetimeFrameCoordinates + (lorentzFrameLinear e f (spacetimeFrameBasis (0 : Fin 3).succ)) i = + spacetimeFrameCoordinates e i + rw [spacetimeFrameBasis_succ, lorentzFrameLinear_first] + · change spacetimeFrameCoordinates + (lorentzFrameLinear e f (spacetimeFrameBasis (1 : Fin 3).succ)) i = + spacetimeFrameCoordinates f i + rw [spacetimeFrameBasis_succ, lorentzFrameLinear_second] + · change spacetimeFrameCoordinates + (lorentzFrameLinear e f (spacetimeFrameBasis (2 : Fin 3).succ)) i = + spacetimeFrameCoordinates (lorentzFrameNormal e f) i + rw [spacetimeFrameBasis_succ, lorentzFrameLinear_third] + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/SpatialFourierEnergyCircle.lean b/LeanPool/VacuumBellSeparation/Shell/SpatialFourierEnergyCircle.lean new file mode 100644 index 0000000000..43bcb84e04 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/SpatialFourierEnergyCircle.lean @@ -0,0 +1,106 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.SpatialFourierEnergyGeometry + +/-! +# The actual nonzero-energy circle for momentum Fourier evaluation + +Changing only the first spatial coordinate by 8E zeta gives exactly the +manuscript lower bound 47E² for the energy square. The resulting shell +points have Euclidean norm less than 14E. No principal-root continuity +is needed for these algebraic estimates. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Spatial energy circle given by `z + PiLp.single 2 0 ((8 * E : ℂ) * ζ)`. -/ +noncomputable def spatialEnergyCircle (z : EuclideanSpace ℂ (Fin 3)) + (E : ℝ) (ζ : ℂ) : EuclideanSpace ℂ (Fin 3) := + z + PiLp.single 2 0 ((8 * E : ℂ) * ζ) + +theorem spatialEnergyCircle_norm_le (z : EuclideanSpace ℂ (Fin 3)) + {E : ℝ} (hE : 0 ≤ E) {ζ : ℂ} (hζ : ‖ζ‖ = 1) : + ‖spatialEnergyCircle z E ζ‖ ≤ ‖z‖ + 8 * E := by + calc + _ ≤ ‖z‖ + ‖PiLp.single 2 (0 : Fin 3) ((8 * E : ℂ) * ζ)‖ := norm_add_le _ _ + _ = _ := by simp only [PiLp.norm_single, norm_mul, Complex.norm_ofNat, Complex.norm_real, + Real.norm_eq_abs, abs_of_nonneg hE, hζ, mul_one] + +theorem spatialEnergyCircle_energy_expand (m : ℝ) (z : EuclideanSpace ℂ (Fin 3)) + (E : ℝ) (ζ : ℂ) : + spatialFourierEnergySquared m (spatialEnergyCircle z E ζ) = + ((8 * E : ℂ) * ζ) ^ 2 + 2 * z 0 * ((8 * E : ℂ) * ζ) + + spatialFourierEnergySquared m z := by + simp only [spatialFourierEnergySquared, spatialEnergyCircle, spatialDot, + Fin.sum_univ_three, PiLp.add_apply, PiLp.single_apply] + norm_num + ring + +theorem spatialEnergyCircle_energy_lower {m E : ℝ} (hm : 0 ≤ m) (hE : 0 < E) + (z : EuclideanSpace ℂ (Fin 3)) (hz : m + ‖z‖ ≤ E) + {ζ : ℂ} (hζ : ‖ζ‖ = 1) : + 47 * E ^ 2 ≤ ‖spatialFourierEnergySquared m (spatialEnergyCircle z E ζ)‖ := by + have hzE : ‖z‖ ≤ E := by linarith [norm_nonneg z] + have hz₀ : ‖z 0‖ ≤ E := (PiLp.norm_apply_le z 0).trans hzE + have hs := pow_le_pow_left₀ (by positivity : 0 ≤ m + ‖z‖) hz 2 + have hq : ‖spatialFourierEnergySquared m z‖ ≤ E ^ 2 := + (spatialFourierEnergySquared_norm_le m z).trans (by + nlinarith [mul_nonneg hm (norm_nonneg z)]) + have hlarge : ‖((8 * E : ℂ) * ζ) ^ 2‖ = 64 * E ^ 2 := by + simp only [norm_pow, norm_mul, Complex.norm_ofNat, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos hE, hζ, mul_one] + ring + have hcross : ‖2 * z 0 * ((8 * E : ℂ) * ζ)‖ ≤ 16 * E ^ 2 := by + simp only [norm_mul, Complex.norm_ofNat, Complex.norm_real, Real.norm_eq_abs, + abs_of_pos hE, hζ, mul_one] + nlinarith [mul_le_mul_of_nonneg_right hz₀ hE.le] + have heq : ((8 * E : ℂ) * ζ) ^ 2 = + spatialFourierEnergySquared m (spatialEnergyCircle z E ζ) - + (2 * z 0 * ((8 * E : ℂ) * ζ) + spatialFourierEnergySquared m z) := by + rw [spatialEnergyCircle_energy_expand] + ring + have htri : ‖((8 * E : ℂ) * ζ) ^ 2‖ ≤ + ‖spatialFourierEnergySquared m (spatialEnergyCircle z E ζ)‖ + + (‖2 * z 0 * ((8 * E : ℂ) * ζ)‖ + ‖spatialFourierEnergySquared m z‖) := by + calc + _ = ‖spatialFourierEnergySquared m (spatialEnergyCircle z E ζ) - + (2 * z 0 * ((8 * E : ℂ) * ζ) + spatialFourierEnergySquared m z)‖ := congrArg norm heq + _ ≤ _ := (norm_sub_le _ _).trans (_root_.add_le_add_right (norm_add_le _ _) _) + rw [hlarge] at htri + linarith + +theorem spatialEnergyCircle_shell_size {m E : ℝ} (hm : 0 ≤ m) (hE : 0 < E) + (z : EuclideanSpace ℂ (Fin 3)) (hz : m + ‖z‖ ≤ E) + {ζ : ℂ} (hζ : ‖ζ‖ = 1) {e : ℂ} + (he : e ^ 2 = spatialFourierEnergySquared m (spatialEnergyCircle z E ζ)) : + euclidSq (e, WithLp.ofLp (spatialEnergyCircle z E ζ)) < (14 * E) ^ 2 := by + have hmE : m ≤ E := by linarith [norm_nonneg z] + have hzE : ‖z‖ ≤ E := by linarith + have hwE : ‖spatialEnergyCircle z E ζ‖ ≤ 9 * E := by + have hw := spatialEnergyCircle_norm_le z hE.le hζ + linarith + have hmsq := pow_le_pow_left₀ hm hmE 2 + have hwsq := pow_le_pow_left₀ (norm_nonneg _) hwE 2 + have hb := actualSpatialEnergy_euclidSq_le m (spatialEnergyCircle z E ζ) he + nlinarith [sq_pos_of_pos hE] + +theorem spatialEnergyCircle_energy_norm_lower {m E : ℝ} (hm : 0 ≤ m) (hE : 0 < E) + (z : EuclideanSpace ℂ (Fin 3)) (hz : m + ‖z‖ ≤ E) + {ζ : ℂ} (hζ : ‖ζ‖ = 1) {e : ℂ} + (he : e ^ 2 = spatialFourierEnergySquared m (spatialEnergyCircle z E ζ)) : + E ≤ ‖e‖ ∧ e ≠ 0 := by + have hn := congrArg norm he + rw [norm_pow] at hn + have hl := spatialEnergyCircle_energy_lower hm hE z hz hζ + have hle : E ≤ ‖e‖ := by nlinarith [norm_nonneg e] + exact ⟨hle, norm_pos_iff.mp (hE.trans_le hle)⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/SpatialFourierEnergyGeometry.lean b/LeanPool/VacuumBellSeparation/Shell/SpatialFourierEnergyGeometry.lean new file mode 100644 index 0000000000..93b314a561 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/SpatialFourierEnergyGeometry.lean @@ -0,0 +1,74 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.NullDiscs +public import LeanPool.VacuumBellSeparation.Gaussian.SpatialComplexRadius + +/-! +# The two actual shell energies used for entire spatial Fourier evaluation + +All spatial norms are the genuine Euclidean norm on complex three-space. +The squared energy is the complex bilinear quadratic polynomial. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +/-- Spatial Fourier energy squared. -/ +noncomputable def spatialFourierEnergySquared (m : ℝ) (z : EuclideanSpace ℂ (Fin 3)) : ℂ := + (m : ℂ) ^ 2 + spatialDot (WithLp.ofLp z) (WithLp.ofLp z) + +/-- Spatial Fourier energy obtained from `Complex.sqrt`. -/ +noncomputable def spatialFourierEnergy (m : ℝ) (z : EuclideanSpace ℂ (Fin 3)) : ℂ := + Complex.sqrt (spatialFourierEnergySquared m z) + +theorem spatialFourierEnergy_sq (m : ℝ) (z : EuclideanSpace ℂ (Fin 3)) : + spatialFourierEnergy m z ^ 2 = spatialFourierEnergySquared m z := by + exact Complex.cpow_ofNat_inv_pow _ 2 + +theorem spatialFourierEnergySquared_norm_le (m : ℝ) (z : EuclideanSpace ℂ (Fin 3)) : + ‖spatialFourierEnergySquared m z‖ ≤ m ^ 2 + ‖z‖ ^ 2 := by + calc + _ ≤ ‖(m : ℂ) ^ 2‖ + ‖spatialDot (WithLp.ofLp z) (WithLp.ofLp z)‖ := norm_add_le _ _ + _ ≤ m ^ 2 + ‖z‖ ^ 2 := by + rw [norm_pow, Complex.norm_real, Real.norm_eq_abs, sq_abs] + exact _root_.add_le_add_right + (by simpa only [spatialDot, ← pow_two] using Gaussian.spatial_bilinear_square_norm_le z) _ + +theorem actualSpatialEnergy_shell (m : ℝ) (z : EuclideanSpace ℂ (Fin 3)) + {e : ℂ} (he : e ^ 2 = spatialFourierEnergySquared m z) : + (e, WithLp.ofLp z) ∈ complexShell m := by + change e ^ 2 - spatialDot (WithLp.ofLp z) (WithLp.ofLp z) = (m : ℂ) ^ 2 + rw [he] + simp only [spatialFourierEnergySquared, add_sub_cancel_right] + +theorem actualSpatialEnergy_euclidSq_le (m : ℝ) (z : EuclideanSpace ℂ (Fin 3)) + {e : ℂ} (he : e ^ 2 = spatialFourierEnergySquared m z) : + euclidSq (e, WithLp.ofLp z) ≤ m ^ 2 + 2 * ‖z‖ ^ 2 := by + have hn := congrArg norm he + rw [norm_pow] at hn + have hq := spatialFourierEnergySquared_norm_le m z + simp only [euclidSq, ← PiLp.norm_sq_eq_of_L2] + linarith + +theorem actualSpatialEnergy_in_ball {m E : ℝ} (hm : 0 ≤ m) + (z : EuclideanSpace ℂ (Fin 3)) (hE : m + ‖z‖ ≤ E) + {e : ℂ} (he : e ^ 2 = spatialFourierEnergySquared m z) : + euclidSq (e, WithLp.ofLp z) ≤ (2 * E) ^ 2 := by + have hb := actualSpatialEnergy_euclidSq_le m z he + have hs := pow_le_pow_left₀ (by positivity : 0 ≤ m + ‖z‖) hE 2 + nlinarith [norm_nonneg z, mul_nonneg hm (norm_nonneg z), sq_nonneg m] + +theorem spatialFourierEnergy_pair_in_shell (m : ℝ) (z : EuclideanSpace ℂ (Fin 3)) : + (spatialFourierEnergy m z, WithLp.ofLp z) ∈ complexShell m ∧ + (-spatialFourierEnergy m z, WithLp.ofLp z) ∈ complexShell m := by + exact ⟨actualSpatialEnergy_shell m z (spatialFourierEnergy_sq m z), + actualSpatialEnergy_shell m z (by rw [neg_sq, spatialFourierEnergy_sq])⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/UniformContourSubmean.lean b/LeanPool/VacuumBellSeparation/Shell/UniformContourSubmean.lean new file mode 100644 index 0000000000..c08287257f --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/UniformContourSubmean.lean @@ -0,0 +1,58 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.UniformHolomorphicShellSubmean +public import LeanPool.VacuumBellSeparation.Shell.ActualContourShellMeasure + +/-! +# Actual uniform contour submean on the normalized target + +The genuine shell pushforward dominates the induced volume on one open +neighborhood. Combined with the derived uniform chart submean, this +removes every local chart and measure-domination hypothesis. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +theorem normalizedTarget_uniform_contour_submean {θ : ℝ} (hθ : 0 < Real.sin θ) : + ∃ N : ℕ, 0 < N ∧ ∃ D : Fin N → ControlledContourPatch θ, + IsProbabilityMeasure (contourMixtureProbability D) ∧ + ∃ C : ℝ≥0∞, 0 < C ∧ C < ∞ ∧ + ∀ t z, (t, z) ∈ normalizedTarget → + ∀ F : ComplexSpacetime → ℂ, Differentiable ℂ F → + ENNReal.ofReal (‖F z‖ ^ 2) ≤ C * + ∫⁻ y, contourMixtureCutoffWeight t D + (fun w => ENNReal.ofReal (‖F w‖ ^ 2)) y + ∂(contourMixtureProbability D).prod (oneParticleMeasure t) := by + obtain ⟨N, hN, D, hp, hV, hcover, k, hk, hkt, hdom⟩ := + normalizedTarget_uniform_contour_domination hθ + obtain ⟨C, hC, hCt, hsub⟩ := normalizedTarget_uniform_holomorphic_submean hV hcover + refine ⟨N, hN, D, hp, C * k⁻¹, + bot_lt_iff_ne_bot.mpr (mul_ne_zero hC.ne' (ENNReal.inv_pos.mpr hkt.ne).ne'), + lt_top_iff_ne_top.mpr (ENNReal.mul_ne_top hCt.ne (ENNReal.inv_lt_top.mpr hk).ne), ?_⟩ + intro t z hz F hF + have hmeas : Measurable (fun w : ComplexSpacetime => ENNReal.ofReal (‖F w‖ ^ 2)) := + ENNReal.measurable_ofReal.comp (hF.continuous.norm.pow 2).measurable + have hi := lintegral_mono' (hdom t) + (f := fun w : complexShell t => ENNReal.ofReal (‖F w.1‖ ^ 2)) le_rfl + rw [lintegral_smul_measure, contourMixtureShellMeasure_lintegral t D hmeas] at hi + calc + _ ≤ C * ∫⁻ w in {w : complexShell t | (t, w.1) ∈ contourMixtureNeighborhood D}, + ENNReal.ofReal (‖F w.1‖ ^ 2) ∂inducedRegularShellVolume t := hsub t z hz F hF + _ = (C * k⁻¹) * (k * ∫⁻ w in + {w : complexShell t | (t, w.1) ∈ contourMixtureNeighborhood D}, + ENNReal.ofReal (‖F w.1‖ ^ 2) ∂inducedRegularShellVolume t) := by + rw [mul_assoc, ENNReal.inv_mul_cancel_left hk.ne' hkt.ne] + _ ≤ _ := _root_.mul_le_mul_right hi _ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/UniformHolomorphicShellSubmean.lean b/LeanPool/VacuumBellSeparation/Shell/UniformHolomorphicShellSubmean.lean new file mode 100644 index 0000000000..b5e18bbee7 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/UniformHolomorphicShellSubmean.lean @@ -0,0 +1,81 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.UniformShellSubmeanCharts +public import LeanPool.VacuumBellSeparation.Shell.HolomorphicInducedMeasureSubmean + +/-! +# Uniform genuine induced-volume submean on the normalized target + +Only an actual ambient open neighbourhood of the compact target is +given. The common chart radius and positive density bound are derived +by finite covering. This supplies one finite constant, independent of +the mass and of the entire function, for the original induced volume. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory Metric Set +open scoped ENNReal + +theorem normalizedTarget_uniform_holomorphic_submean + {V : Set (ℝ × ComplexSpacetime)} (hV : IsOpen V) (hcover : normalizedTarget ⊆ V) : + ∃ C : ℝ≥0∞, 0 < C ∧ C < ∞ ∧ + ∀ t z, (t, z) ∈ normalizedTarget → + ∀ F : ComplexSpacetime → ℂ, Differentiable ℂ F → + ENNReal.ofReal (‖F z‖ ^ 2) ≤ C * + ∫⁻ w in {w : complexShell t | (t, w.1) ∈ V}, + ENNReal.ofReal (‖F w.1‖ ^ 2) ∂inducedRegularShellVolume t := by + obtain ⟨R, d, hR, hd, hcharts⟩ := normalizedTarget_uniform_submean_charts hV hcover + let K : ℝ≥0∞ := ENNReal.ofReal d * volume (ball (0 : ℂ) R) ^ 3 + have hK : 0 < K := by + dsimp [K] + exact bot_lt_iff_ne_bot.mpr (mul_ne_zero (ENNReal.ofReal_pos.mpr hd).ne' + (pow_ne_zero 3 (measure_ball_pos volume (0 : ℂ) hR).ne')) + have hKt : K ≠ ∞ := by + dsimp [K] + rw [Complex.volume_ball] + finiteness + refine ⟨K⁻¹, ENNReal.inv_pos.mpr hKt, ENNReal.inv_lt_top.mpr hK, ?_⟩ + intro t z hz F hF + obtain ⟨Λ, c, hΛ, him, hball⟩ := hcharts t z hz + let B : Set (complexShell t) := {w | (t, w.1) ∈ V} + let S : Set (complexShell t) := B ∩ inducedShellPatch t Λ + have hB : MeasurableSet B := + (hV.preimage (continuous_const.prodMk continuous_subtype_val)).measurableSet + have hS : MeasurableSet S := hB.inter (isOpen_inducedShellPatch t Λ).measurableSet + have hsub : ball c (2 * R) ⊆ euclideanShellChartDomain t := fun w hw => (hball w hw).1 + have hj : ∀ w ∈ ball c (2 * R), d ≤ inducedShellChartDensity t Λ w := + fun w hw => (hball w hw).2.1 + have himage : ∀ w ∈ ball c (2 * R), shellPatchPoint t Λ hΛ w ∈ S := by + intro w hw + exact ⟨(hball w hw).2.2, shellPatchPoint_mem Λ hΛ (hsub hw)⟩ + have hlower : ENNReal.ofReal (1 : ℝ) • (inducedRegularShellVolume t).restrict S ≤ + (inducedRegularShellVolume t).restrict B := by + rw [ENNReal.ofReal_one, one_smul] + exact Measure.restrict_mono (show S ⊆ B from fun _ hw => hw.1) le_rfl + have h := holomorphicShellWave_measure_submean + (fun w : complexShell t => F w.1) + (hF.continuous.comp continuous_subtype_val).measurable Λ hΛ + (fun w hw => (hF _).comp w + ((differentiableAt_lorentzComplexShellChart Λ hw).comp w + shellEuclideanCoordinates.differentiableAt)) + c hR hsub hj hS (fun _ hw => hw.2) himage + ((inducedRegularShellVolume t).restrict B) hlower + simp only [ENNReal.ofReal_one, one_mul, shellPatchPoint, him] at h + have hmul : K * ENNReal.ofReal (‖F z‖ ^ 2) ≤ + ∫⁻ w in B, ENNReal.ofReal (‖F w.1‖ ^ 2) ∂inducedRegularShellVolume t := by + simpa only [K, mul_assoc, mul_comm, mul_left_comm] using h + calc + _ = K⁻¹ * (K * ENNReal.ofReal (‖F z‖ ^ 2)) := + (ENNReal.inv_mul_cancel_left hK.ne' hKt).symm + _ ≤ _ := _root_.mul_le_mul_right hmul _ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/UniformLocalShellDensity.lean b/LeanPool/VacuumBellSeparation/Shell/UniformLocalShellDensity.lean new file mode 100644 index 0000000000..558f73a3ee --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/UniformLocalShellDensity.lean @@ -0,0 +1,51 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.InducedShellMassContinuity + +/-! +# Genuine chart-density bounds on a mass-coordinate neighbourhood + +The compact neighbourhood lives in the actual joint domain. Its mass +coordinate may be zero. The constants are chosen before the varying +mass, and are bounds for the derivative of the original shell chart. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Metric Filter Topology + +theorem inducedShellChartDensity_joint_local_bounds {m : ℝ} + (Λ : Spacetime ≃L[ℝ] Spacetime) {w : ShellEuclideanDomain} + (hw : w ∈ euclideanShellChartDomain m) : + ∃ ε c C : ℝ, 0 < ε ∧ 0 < c ∧ 0 < C ∧ + ∀ t : ℝ, |t - m| ≤ ε → ∀ x : ShellEuclideanDomain, dist x w ≤ ε → + x ∈ euclideanShellChartDomain t ∧ + c ≤ inducedShellChartDensity t Λ x ∧ inducedShellChartDensity t Λ x ≤ C := by + let d := inducedShellChartDensity m Λ w + have hd : 0 < d := inducedShellChartDensity_pos Λ hw + have hdom : ∀ᶠ q in nhds (m, w), q ∈ euclideanShellJointDomain := + isOpen_euclideanShellJointDomain.mem_nhds hw + have hc : ContinuousAt (fun q : ℝ × ShellEuclideanDomain => + inducedShellChartDensity q.1 Λ q.2) (m, w) := + (continuousOn_inducedShellChartDensity_joint Λ).continuousAt hdom + have hlo : ∀ᶠ q in nhds (m, w), d / 2 < inducedShellChartDensity q.1 Λ q.2 := + continuousAt_const.eventually_lt hc (half_lt_self hd) + have hhi : ∀ᶠ q in nhds (m, w), inducedShellChartDensity q.1 Λ q.2 < d + 1 := + hc.eventually_lt continuousAt_const (by dsimp only [d]; linarith) + obtain ⟨r, hr, hh⟩ := Metric.eventually_nhds_iff.mp (hdom.and (hlo.and hhi)) + refine ⟨r / 2, d / 2, d + 1, half_pos hr, half_pos hd, by positivity, ?_⟩ + intro t ht x hx + have hdist : dist (t, x) (m, w) < r := by + rw [Prod.dist_eq, Real.dist_eq] + exact (max_le ht hx).trans_lt (half_lt_self hr) + exact ⟨(hh hdist).1, (hh hdist).2.1.le, (hh hdist).2.2.le⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/UniformPhysicalContourDensity.lean b/LeanPool/VacuumBellSeparation/Shell/UniformPhysicalContourDensity.lean new file mode 100644 index 0000000000..b3461c7d26 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/UniformPhysicalContourDensity.lean @@ -0,0 +1,67 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.PhysicalContourDensity + +/-! +# Mass-uniform physical density and the exact damping loss + +The positive parameter-density constant is chosen before the mass. +Consequently the local comparison is uniform through zero normalized +mass. The damping comparison retains the literal exponential in the +physical energy cutoff, for use in the manuscript's fixed exponent. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open MeasureTheory +open scoped ENNReal + +theorem smoothPhysicalContour_uniform_integral_lower (r : ℝ) (hr : 0 < r) : + ∃ d > 0, ∀ m R : ℝ, ∀ s : Set LorentzMomentumParameters, + MeasurableSet s → + (∀ q ∈ s, ‖q.1‖ ≤ r / 2 ∧ 0 < dispersion m q.2 ∧ dispersion m q.2 ≤ R) → + ∀ g : LorentzMomentumParameters → ℝ≥0∞, Measurable g → + (ENNReal.ofReal d * ENNReal.ofReal (1 / (2 * (2 * Real.pi) ^ 3 * R))) * + (∫⁻ q in s, g q ∂physicalParameterMeasure) ≤ + ∫⁻ q in s, g q ∂(smoothBallProbability (Fin 6 → ℝ) r hr).prod + (oneParticleMeasure m) := by + obtain ⟨d, hd, hinner⟩ := smoothBallDensity_constant_on_inner (Fin 6 → ℝ) r hr + refine ⟨d, hd, fun m R s hs hcontrol g hg => ?_⟩ + rw [smoothPhysicalContour_product_measure, + setLIntegral_withDensity_eq_setLIntegral_mul _ + (measurable_smoothPhysicalContourDensity m r hr) hg hs, + ← lintegral_const_mul' _ _ (ENNReal.mul_ne_top ENNReal.ofReal_ne_top ENNReal.ofReal_ne_top)] + apply setLIntegral_mono' hs + intro q hq + apply _root_.mul_le_mul_left + rw [smoothPhysicalContourDensity, hinner q.1 (hcontrol q hq).1] + exact _root_.mul_le_mul_right + (oneParticleWeight_lower_of_energy (hcontrol q hq).2.1 (hcontrol q hq).2.2) _ + +theorem energyDamping_lower {m a R : ℝ} (ha : 0 ≤ a) + {p : EuclideanSpace ℝ (Fin 3)} (hp : dispersion m p ≤ R) : + ENNReal.ofReal (Real.exp (-a * R)) ≤ + ENNReal.ofReal (Real.exp (-a * dispersion m p)) := by + apply ENNReal.ofReal_le_ofReal + apply Real.exp_le_exp.mpr + exact mul_le_mul_of_nonpos_left hp (neg_nonpos.mpr ha) + +theorem energyDamping_set_integral_lower {m a R : ℝ} (ha : 0 ≤ a) + (μ : Measure LorentzMomentumParameters) {s : Set LorentzMomentumParameters} + (hs : MeasurableSet s) (henergy : ∀ q ∈ s, dispersion m q.2 ≤ R) + (g : LorentzMomentumParameters → ℝ≥0∞) : + ENNReal.ofReal (Real.exp (-a * R)) * (∫⁻ q in s, g q ∂μ) ≤ + ∫⁻ q in s, ENNReal.ofReal (Real.exp (-a * dispersion m q.2)) * g q ∂μ := by + rw [← lintegral_const_mul' _ _ ENNReal.ofReal_ne_top] + exact setLIntegral_mono' hs (fun q hq => + _root_.mul_le_mul_left (energyDamping_lower ha (henergy q hq)) _) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Shell/UniformShellSubmeanCharts.lean b/LeanPool/VacuumBellSeparation/Shell/UniformShellSubmeanCharts.lean new file mode 100644 index 0000000000..9e9e0aa927 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Shell/UniformShellSubmeanCharts.lean @@ -0,0 +1,89 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Shell.ShellSubmeanNeighborhood +public import LeanPool.VacuumBellSeparation.Shell.InducedShellChartCoverage +public import LeanPool.VacuumBellSeparation.Shell.NormalizedTargetCompact + +/-! +# Uniform actual chart balls over the compact normalized target + +The original target is compact, including mass zero. An actual finite +subcover of the local chart constructions yields one positive radius +and one positive Gram lower bound. No chart controls are supplied as +hypotheses at this endpoint. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Metric Set + +theorem finite_positive_lower_bound {ι : Type*} (s : Finset ι) (f : ι → ℝ) + (hf : ∀ i ∈ s, 0 < f i) : ∃ r : ℝ, 0 < r ∧ ∀ i ∈ s, r ≤ f i := by + classical + induction s using Finset.induction_on with + | empty => exact ⟨1, by norm_num, by simp⟩ + | @insert i s his ih => + obtain ⟨r, hr, hle⟩ := ih (fun j hj => hf j (Finset.mem_insert_of_mem hj)) + refine ⟨min (f i) r, lt_min (hf i (Finset.mem_insert_self _ _)) hr, ?_⟩ + intro j hj + rcases Finset.mem_insert.mp hj with rfl | hj + · exact min_le_left _ _ + · exact (min_le_right _ _).trans (hle j hj) + +theorem normalizedTarget_uniform_submean_charts + {V : Set (ℝ × ComplexSpacetime)} (hV : IsOpen V) (hcover : normalizedTarget ⊆ V) : + ∃ R d : ℝ, 0 < R ∧ 0 < d ∧ + ∀ t z, (t, z) ∈ normalizedTarget → + ∃ (Λ : Spacetime ≃L[ℝ] Spacetime) (c : ShellEuclideanDomain), + IsLorentzMap Λ ∧ + lorentzComplexShellChart t Λ (shellEuclideanCoordinates c) = z ∧ + ∀ w ∈ ball c (2 * R), w ∈ euclideanShellChartDomain t ∧ + d ≤ inducedShellChartDensity t Λ w ∧ + (t, lorentzComplexShellChart t Λ (shellEuclideanCoordinates w)) ∈ V := by + classical + have hlocal (p : normalizedTarget) : + ∃ (Λ : Spacetime ≃L[ℝ] Spacetime) (W : Set (ℝ × ComplexSpacetime)) (R d : ℝ), + IsLorentzMap Λ ∧ IsOpen W ∧ p.1 ∈ W ∧ 0 < R ∧ 0 < d ∧ + ∀ t z, (t, z) ∈ W → z ∈ complexShell t → + lorentzComplexShellChart t Λ + (shellEuclideanCoordinates (shellAmbientCoordinates Λ z)) = z ∧ + ∀ w ∈ ball (shellAmbientCoordinates Λ z) (2 * R), + w ∈ euclideanShellChartDomain t ∧ d ≤ inducedShellChartDensity t Λ w ∧ + (t, lorentzComplexShellChart t Λ (shellEuclideanCoordinates w)) ∈ V := by + obtain ⟨Λ, w, hΛ, _, hw, him, _, _⟩ := + normalizedTarget_volume_chart_coverage p.2 (θ := Real.pi / 2) (by simp) + have him' : lorentzComplexShellChart p.1.1 Λ (shellEuclideanCoordinates w) = p.1.2 := + complexSpacetimeEuclideanEquiv.injective him + obtain ⟨W, hW, hmem, R, d, hR, hd, hctl⟩ := + shell_submean_local_neighborhood Λ hΛ.1 hw hV + (by rw [him']; exact hcover p.2) + rw [him'] at hmem + exact ⟨Λ, W, R, d, hΛ.1, hW, hmem, hR, hd, hctl⟩ + choose Λ W R d hΛ hW hmem hR hd hctl using hlocal + have hfull : normalizedTarget ⊆ ⋃ p : normalizedTarget, W p := by + intro p hp + exact mem_iUnion.mpr ⟨⟨p, hp⟩, hmem ⟨p, hp⟩⟩ + obtain ⟨s, hs⟩ := normalizedTarget_finite_subcover W hW hfull + obtain ⟨R₀, hR₀, hRle⟩ := finite_positive_lower_bound s R (fun i _ => hR i) + obtain ⟨d₀, hd₀, hdle⟩ := finite_positive_lower_bound s d (fun i _ => hd i) + refine ⟨R₀, d₀, hR₀, hd₀, ?_⟩ + intro t z hz + obtain ⟨i, hi⟩ := mem_iUnion.mp (hs hz) + obtain ⟨his, hiW⟩ := mem_iUnion.mp hi + obtain ⟨him, hball⟩ := hctl i t z hiW hz.2.2.1 + refine ⟨Λ i, shellAmbientCoordinates (Λ i) z, hΛ i, him, ?_⟩ + intro w hw + have hw' : w ∈ ball (shellAmbientCoordinates (Λ i) z) (2 * R i) := + ball_subset_ball (mul_le_mul_of_nonneg_left (hRle i his) (by norm_num)) hw + have h := hball w hw' + exact ⟨h.1, (hdle i his).trans h.2.1, h.2.2⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Special/BesselK.lean b/LeanPool/VacuumBellSeparation/Special/BesselK.lean new file mode 100644 index 0000000000..d7367da030 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Special/BesselK.lean @@ -0,0 +1,481 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Special.BesselKDefs +public import Mathlib.Algebra.Order.Star.Real +public import Mathlib.Analysis.CStarAlgebra.Classes +public import Mathlib.Analysis.LocallyConvex.AbsConvexOpen +public import Mathlib.Analysis.SpecialFunctions.Arsinh +public import Mathlib.Analysis.SpecialFunctions.Gaussian.GaussianIntegral +public import Mathlib.Tactic.Linter.Style + +/-! +# The modified Bessel functions `K_ν` and the Bessel bounds of Section 6 (including (6.2)) + +Section 6 preamble of the manuscript (label `eq:Bessel-scaled`). With the integral representation +[DLMF 10.32.9] +`K_j(x) = ∫₀^∞ e^{-x cosh u} cosh(j u) du`, the manuscript states, for `x > 0`, +`K₁(x) ≤ e^{-x} (x⁻¹ + √(π/(2x)))` and `K₂(x) ≤ e^{-x} (2x⁻² + 4x⁻¹ + √(π/(2x)))`, hence (6.2) +`x K₁(x) ≤ 3 (1+x)^{1/2} e^{-x}` and `x² K₂(x) ≤ 8 (1+x)^{3/2} e^{-x}`; and, for `Re z > 0`, +`|K_j(z)| ≤ K_j(Re z)`. + +Mathlib (at the pinned commit) has `Complex.besselJ` but no modified Bessel function of the second +kind, so `K_ν` is *defined* here by the manuscript's own integral representation: `besselK ν z` +for complex `z` and its real form `besselKReal ν x` (`besselK_ofReal`). The order `ν` is any real +number; the manuscript uses `ν = 1, 2`. + +## Main statements + +* `integrableOn_besselK_integrand`, `integrableOn_besselKReal_integrand`: for `Re z > 0` (resp. + `x > 0`) and every real `ν` the integrand is integrable on `(0, ∞)`. +* `besselKReal_nonneg`: `0 ≤ K_ν(x)`; `besselK_ofReal`: `besselK ν x = besselKReal ν x`. +* `norm_besselK_le`: `‖K_ν(z)‖ ≤ K_ν(Re z)`. +* `besselKReal_one_le`, `besselKReal_two_le`: the two explicit bounds, with the manuscript's + constants. +* `mul_besselKReal_one_le`, `sq_mul_besselKReal_two_le`: the bounds (6.2). +* `norm_besselK_one_le`, `norm_besselK_two_le`: the explicit bounds for complex `z`, `Re z > 0`. + +## Proof route + +Instead of substituting `v = cosh u - 1`, the pointwise bounds are written in the variable `u`: +for `u ≥ 0`, `cosh u ≤ sinh u + cosh (u/2)` and `cosh 2u ≤ 2 sinh u (cosh u + 1) + cosh (u/2)`. +These are exactly the bounds `(1+v)/√(v(v+2)) ≤ 1 + (2v)^{-1/2}` and +`(2v²+4v+1)/√(v(v+2)) ≤ 2v + 4 + (2v)^{-1/2}` of the rational factors of the integrands, whose +right-hand sides the manuscript gives, multiplied by `sinh u = √(v(v+2))`, because +`sinh u/√(2v) = cosh (u/2)` and `(2v + 4) sinh u = 2 sinh u (cosh u + 1)`. The resulting +integrals are `∫ e^{-x cosh u} sinh u = e^{-x}/x` and +`∫ e^{-x cosh u} 2 sinh u (cosh u + 1) = e^{-x} (2/x² + 4/x)` (fundamental theorem of calculus +on `(0, ∞)`), and `∫ e^{-x cosh u} cosh (u/2) = e^{-x} √(π/(2x))` (substitution +`w = sinh (u/2)` and the Gaussian integral); in the variable `v` of the manuscript's +substitution these are `e^{-x} ∫₀^∞ e^{-xv} dv`, `e^{-x} ∫₀^∞ e^{-xv} (2v + 4) dv` and +`e^{-x} ∫₀^∞ e^{-xv} (2v)^{-1/2} dv`. Integrability for general `ν` uses the Gaussian bound +`e^{-x cosh u} cosh (ν u) ≤ e^{-x + ν²/x} e^{-(x/4) u²}` for `u ≥ 0`. +-/ + +@[expose] public section + +open MeasureTheory Set Filter Topology + +namespace VacuumBellSeparation + +namespace BesselK + +/-- Half-angle form of `cosh`: `cosh u = 1 + 2 sinh² (u/2)`. -/ +theorem cosh_eq_one_add_two_mul_sinh_half_sq (u : ℝ) : + Real.cosh u = 1 + 2 * Real.sinh (u / 2) ^ 2 := by + have h := Real.cosh_two_mul (u / 2) + rw [show 2 * (u / 2) = u by ring, Real.cosh_sq] at h + rw [h] + ring + +/-- For `u ≥ 0`, `1 + u²/2 ≤ cosh u`. -/ +theorem one_add_sq_div_two_le_cosh {u : ℝ} (hu : 0 ≤ u) : 1 + u ^ 2 / 2 ≤ Real.cosh u := by + have h1 : u / 2 ≤ Real.sinh (u / 2) := Real.self_le_sinh_iff.mpr (by positivity) + have h2 : 0 ≤ u / 2 := by positivity + have h3 := mul_self_le_mul_self h2 h1 + rw [cosh_eq_one_add_two_mul_sinh_half_sq u] + nlinarith + +/-- `cosh u → ∞` as `u → ∞`. -/ +theorem tendsto_cosh_atTop : Tendsto Real.cosh atTop atTop := by + refine Filter.tendsto_atTop_mono (fun u => ?_) Filter.tendsto_id + change u ≤ Real.cosh u + rcases le_or_gt 0 u with hu | hu + · nlinarith [one_add_sq_div_two_le_cosh hu, sq_nonneg (u - 1)] + · linarith [Real.one_le_cosh u] + +/-- Gaussian domination of the integrand of `besselKReal`: for `x > 0`, `u ≥ 0` and real `ν`, +`‖e^{-x cosh u} cosh(ν u)‖ ≤ e^{-x + ν²/x} e^{-(x/4) u²}`. -/ +theorem norm_integrand_le_gaussian (ν : ℝ) {x u : ℝ} (hx : 0 < x) (hu : 0 ≤ u) : + ‖Real.exp (-(x * Real.cosh u)) * Real.cosh (ν * u)‖ ≤ + Real.exp (-x + ν ^ 2 / x) * Real.exp (-(x / 4) * u ^ 2) := by + have hc := one_add_sq_div_two_le_cosh hu + have key : ∀ μ : ℝ, μ ^ 2 = ν ^ 2 → + Real.exp (-(x * Real.cosh u)) * Real.exp (μ * u) ≤ + Real.exp (-x + ν ^ 2 / x) * Real.exp (-(x / 4) * u ^ 2) := by + intro μ hμ + rw [← Real.exp_add, ← Real.exp_add, Real.exp_le_exp] + have h1 : x * (1 + u ^ 2 / 2) ≤ x * Real.cosh u := mul_le_mul_of_nonneg_left hc hx.le + have h2 : μ * u ≤ ν ^ 2 / x + x / 4 * u ^ 2 := by + rw [div_add' _ _ _ hx.ne', le_div_iff₀ hx] + nlinarith [sq_nonneg (μ - x * u / 2)] + linarith + have k1 := key ν rfl + have k2 := key (-ν) (by ring) + rw [neg_mul] at k2 + rw [Real.norm_of_nonneg (mul_nonneg (Real.exp_pos _).le (Real.cosh_pos _).le), + Real.cosh_eq (ν * u)] + linarith + +/-- Norm of the integrand of `besselK`: +`‖e^{-z cosh u} cosh(ν u)‖ = e^{-(Re z) cosh u} cosh(ν u)`. -/ +theorem norm_complex_integrand (ν : ℝ) (z : ℂ) (u : ℝ) : + ‖Complex.exp (-(z * Real.cosh u)) * Real.cosh (ν * u)‖ = + Real.exp (-(z.re * Real.cosh u)) * Real.cosh (ν * u) := by + rw [Complex.norm_mul, Complex.norm_exp, Complex.norm_of_nonneg (Real.cosh_pos _).le, + Complex.neg_re, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, mul_zero, sub_zero] + +end BesselK + +open BesselK + +/-- **Integrability, real argument.** For `x > 0` and every real `ν`, the integrand +`u ↦ e^{-x cosh u} cosh(ν u)` of `besselKReal` is integrable on `(0, ∞)`. -/ +theorem integrableOn_besselKReal_integrand (ν : ℝ) {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun u : ℝ => Real.exp (-(x * Real.cosh u)) * Real.cosh (ν * u)) (Ioi 0) := by + have hg : Integrable (fun u : ℝ => Real.exp (-x + ν ^ 2 / x) * Real.exp (-(x / 4) * u ^ 2)) := + (integrable_exp_neg_mul_sq (by positivity : (0 : ℝ) < x / 4)).const_mul _ + refine Integrable.mono' hg.integrableOn (Continuous.aestronglyMeasurable (by fun_prop)) ?_ + exact ae_restrict_of_forall_mem measurableSet_Ioi fun u hu => + norm_integrand_le_gaussian ν hx (le_of_lt hu) + +/-- **Integrability, complex argument** (absolute convergence of the integral representation). +For `Re z > 0` and every real `ν`, the integrand `u ↦ e^{-z cosh u} cosh(ν u)` of `besselK` is +integrable on `(0, ∞)`. -/ +theorem integrableOn_besselK_integrand (ν : ℝ) {z : ℂ} (hz : 0 < z.re) : + IntegrableOn (fun u : ℝ => Complex.exp (-(z * Real.cosh u)) * Real.cosh (ν * u)) (Ioi 0) := + Integrable.mono' (integrableOn_besselKReal_integrand ν hz) + (Continuous.aestronglyMeasurable (by fun_prop)) + (ae_of_all _ fun u => (norm_complex_integrand ν z u).le) + +/-- `K_ν(x) ≥ 0` for every real `x` (in particular for `x > 0`): the integrand is positive. -/ +theorem besselKReal_nonneg (ν x : ℝ) : 0 ≤ besselKReal ν x := by + rw [besselKReal] + exact setIntegral_nonneg measurableSet_Ioi fun u _ => + mul_nonneg (Real.exp_pos _).le (Real.cosh_pos _).le + +/-- At real arguments the complex `besselK` is the real `besselKReal`. -/ +theorem besselK_ofReal (ν x : ℝ) : besselK ν x = besselKReal ν x := by + have hpt : ∀ u : ℝ, Complex.exp (-((x : ℂ) * (Real.cosh u : ℂ))) * (Real.cosh (ν * u) : ℂ) = + ((Real.exp (-(x * Real.cosh u)) * Real.cosh (ν * u) : ℝ) : ℂ) := by + intro u + rw [Complex.ofReal_mul, Complex.ofReal_exp, Complex.ofReal_neg, Complex.ofReal_mul] + rw [besselK, besselKReal, ← integral_complex_ofReal] + exact integral_congr_ae (ae_of_all _ hpt) + +/-- **`|K_ν(z)| ≤ K_ν(Re z)`** (Section 6 preamble, stated there for `Re z > 0` and `ν = 1, 2`): +the norm of the integral is at most the integral of the norm, which is the integrand of +`K_ν(Re z)`. It holds for every complex `z` and real `ν`; for `Re z ≤ 0` both sides are the junk +value `0`. -/ +theorem norm_besselK_le (ν : ℝ) (z : ℂ) : ‖besselK ν z‖ ≤ besselKReal ν z.re := by + rw [besselK, besselKReal] + refine (norm_integral_le_integral_norm _).trans (le_of_eq ?_) + exact integral_congr_ae (ae_of_all _ fun u => norm_complex_integrand ν z u) + +namespace BesselK + +/-- For `u ≥ 0`: `cosh u ≤ sinh u + cosh (u/2)`. In the variable `v = cosh u - 1` this is the +bound `(1 + v)/√(v(v+2)) ≤ 1 + (2v)^{-1/2}` of the rational factor, whose right-hand side the +manuscript gives, multiplied by `sinh u = √(v(v+2))`. -/ +theorem cosh_le_sinh_add_cosh_half {u : ℝ} (hu : 0 ≤ u) : + Real.cosh u ≤ Real.sinh u + Real.cosh (u / 2) := by + have h1 := Real.cosh_sub_sinh u + have h2 : Real.exp (-u) ≤ 1 := Real.exp_le_one_iff.mpr (by linarith) + have h3 := Real.one_le_cosh (u / 2) + linarith + +/-- For `u ≥ 0`: `cosh 2u ≤ 2 sinh u (cosh u + 1) + cosh (u/2)`. In the variable `v = cosh u - 1` +this is the bound `(2v² + 4v + 1)/√(v(v+2)) ≤ 2v + 4 + (2v)^{-1/2}` of the rational factor, whose +right-hand side the manuscript gives, multiplied by `sinh u = √(v(v+2))`. -/ +theorem cosh_two_mul_le {u : ℝ} (hu : 0 ≤ u) : + Real.cosh (2 * u) ≤ 2 * Real.sinh u * (Real.cosh u + 1) + Real.cosh (u / 2) := by + have h1 := Real.cosh_sub_sinh u + have h2 : Real.exp (-u) ≤ 1 := Real.exp_le_one_iff.mpr (by linarith) + have h3 : (Real.cosh u - Real.sinh u) ^ 2 ≤ 1 := by + rw [h1] + exact pow_le_one₀ (Real.exp_pos _).le h2 + have h4 := Real.one_le_cosh (u / 2) + have h5 : 0 ≤ Real.sinh u := Real.sinh_nonneg_iff.mpr hu + rw [Real.cosh_two_mul] + nlinarith + +/-- `u ↦ -x⁻¹ e^{-x cosh u}` is a primitive of `u ↦ e^{-x cosh u} sinh u` (for `x ≠ 0`). -/ +theorem hasDerivAt_primitive_sinh {x : ℝ} (hx : x ≠ 0) (u : ℝ) : + HasDerivAt (fun u => -x⁻¹ * Real.exp (-(x * Real.cosh u))) + (Real.exp (-(x * Real.cosh u)) * Real.sinh u) u := by + have h := (((Real.hasDerivAt_cosh u).const_mul x).fun_neg.exp).const_mul (-x⁻¹) + refine h.congr_deriv ?_ + linear_combination Real.exp (-(x * Real.cosh u)) * Real.sinh u * mul_inv_cancel₀ hx + +/-- The primitive `-x⁻¹ e^{-x cosh u}` tends to `0` as `u → ∞` (for `x > 0`). -/ +theorem tendsto_primitive_sinh {x : ℝ} (hx : 0 < x) : + Tendsto (fun u => -x⁻¹ * Real.exp (-(x * Real.cosh u))) atTop (𝓝 0) := by + have h1 : Tendsto (fun u => x * Real.cosh u) atTop atTop := + tendsto_cosh_atTop.const_mul_atTop hx + have h2 : Tendsto (fun u => Real.exp (-(x * Real.cosh u))) atTop (𝓝 0) := + Real.tendsto_exp_neg_atTop_nhds_zero.comp h1 + have h3 := h2.const_mul (-x⁻¹) + rwa [mul_zero] at h3 + +/-- `e^{-x cosh u} sinh u ≥ 0` for `u ≥ 0`. -/ +theorem integrand_sinh_nonneg (x : ℝ) {u : ℝ} (hu : 0 ≤ u) : + 0 ≤ Real.exp (-(x * Real.cosh u)) * Real.sinh u := + mul_nonneg (Real.exp_pos _).le (Real.sinh_nonneg_iff.mpr hu) + +/-- `u ↦ e^{-x cosh u} sinh u` is integrable on `(0, ∞)` for `x > 0`. -/ +theorem integrableOn_integrand_sinh {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun u => Real.exp (-(x * Real.cosh u)) * Real.sinh u) (Ioi 0) := + integrableOn_Ioi_deriv_of_nonneg' (fun u _ => hasDerivAt_primitive_sinh hx.ne' u) + (fun _ hu => integrand_sinh_nonneg x (le_of_lt hu)) (tendsto_primitive_sinh hx) + +/-- `∫₀^∞ e^{-x cosh u} sinh u du = e^{-x}/x` for `x > 0`; in the variable `v = cosh u - 1` this is +`e^{-x} ∫₀^∞ e^{-xv} dv`. -/ +theorem integral_integrand_sinh {x : ℝ} (hx : 0 < x) : + ∫ u in Ioi (0 : ℝ), Real.exp (-(x * Real.cosh u)) * Real.sinh u = Real.exp (-x) / x := by + have hderiv : ∀ u ∈ Ici (0 : ℝ), HasDerivAt (fun u => -x⁻¹ * Real.exp (-(x * Real.cosh u))) + (Real.exp (-(x * Real.cosh u)) * Real.sinh u) u := + fun u _ => hasDerivAt_primitive_sinh hx.ne' u + have hpos : ∀ u ∈ Ioi (0 : ℝ), 0 ≤ Real.exp (-(x * Real.cosh u)) * Real.sinh u := + fun _ hu => integrand_sinh_nonneg x (le_of_lt hu) + rw [integral_Ioi_of_hasDerivAt_of_nonneg' hderiv hpos (tendsto_primitive_sinh hx), + Real.cosh_zero, mul_one] + ring + +/-- `u ↦ -2x⁻² (x cosh u + (x + 1)) e^{-x cosh u}` is a primitive of +`u ↦ e^{-x cosh u} · 2 sinh u (cosh u + 1)` (for `x ≠ 0`). -/ +theorem hasDerivAt_primitive_two {x : ℝ} (hx : x ≠ 0) (u : ℝ) : + HasDerivAt + (fun u => -2 * x⁻¹ ^ 2 * ((x * Real.cosh u + (x + 1)) * Real.exp (-(x * Real.cosh u)))) + (Real.exp (-(x * Real.cosh u)) * (2 * Real.sinh u * (Real.cosh u + 1))) u := by + have hP : HasDerivAt (fun y => x * Real.cosh y + (x + 1)) (x * Real.sinh u) u := + HasDerivAt.add_const (x + 1) ((Real.hasDerivAt_cosh u).const_mul x) + have hE : HasDerivAt (fun y => Real.exp (-(x * Real.cosh y))) + (Real.exp (-(x * Real.cosh u)) * -(x * Real.sinh u)) u := + ((Real.hasDerivAt_cosh u).const_mul x).fun_neg.exp + have h := (hP.fun_mul hE).const_mul (-2 * x⁻¹ ^ 2) + refine h.congr_deriv ?_ + linear_combination 2 * Real.sinh u * Real.exp (-(x * Real.cosh u)) * (Real.cosh u + 1) * + (x * x⁻¹ + 1) * mul_inv_cancel₀ hx + +/-- The primitive of `hasDerivAt_primitive_two` tends to `0` as `u → ∞` (for `x > 0`). -/ +theorem tendsto_primitive_two {x : ℝ} (hx : 0 < x) : + Tendsto + (fun u => -2 * x⁻¹ ^ 2 * ((x * Real.cosh u + (x + 1)) * Real.exp (-(x * Real.cosh u)))) + atTop (𝓝 0) := by + have h1 : Tendsto (fun u => x * Real.cosh u) atTop atTop := + tendsto_cosh_atTop.const_mul_atTop hx + have h2 : Tendsto (fun t : ℝ => t ^ 1 * Real.exp (-t) + (x + 1) * Real.exp (-t)) atTop + (𝓝 (0 + (x + 1) * 0)) := + (Real.tendsto_pow_mul_exp_neg_atTop_nhds_zero 1).add + (Real.tendsto_exp_neg_atTop_nhds_zero.const_mul (x + 1)) + have h3 := (h2.comp h1).const_mul (-2 * x⁻¹ ^ 2) + rw [show -2 * x⁻¹ ^ 2 * (0 + (x + 1) * 0) = (0 : ℝ) by ring] at h3 + refine h3.congr fun u => ?_ + simp only [Function.comp_apply, pow_one] + ring + +/-- `e^{-x cosh u} · 2 sinh u (cosh u + 1) ≥ 0` for `u ≥ 0`. -/ +theorem integrand_two_nonneg (x : ℝ) {u : ℝ} (hu : 0 ≤ u) : + 0 ≤ Real.exp (-(x * Real.cosh u)) * (2 * Real.sinh u * (Real.cosh u + 1)) := + mul_nonneg (Real.exp_pos _).le + (mul_nonneg (mul_nonneg zero_le_two (Real.sinh_nonneg_iff.mpr hu)) + (add_pos (Real.cosh_pos u) one_pos).le) + +/-- `u ↦ e^{-x cosh u} · 2 sinh u (cosh u + 1)` is integrable on `(0, ∞)` for `x > 0`. -/ +theorem integrableOn_integrand_two {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun u => Real.exp (-(x * Real.cosh u)) * (2 * Real.sinh u * (Real.cosh u + 1))) + (Ioi 0) := + integrableOn_Ioi_deriv_of_nonneg' (fun u _ => hasDerivAt_primitive_two hx.ne' u) + (fun _ hu => integrand_two_nonneg x (le_of_lt hu)) (tendsto_primitive_two hx) + +/-- `∫₀^∞ e^{-x cosh u} · 2 sinh u (cosh u + 1) du = e^{-x} (2/x² + 4/x)` for `x > 0`; in the +variable `v = cosh u - 1` this is `e^{-x} ∫₀^∞ e^{-xv} (2v + 4) dv`. -/ +theorem integral_integrand_two {x : ℝ} (hx : 0 < x) : + ∫ u in Ioi (0 : ℝ), Real.exp (-(x * Real.cosh u)) * (2 * Real.sinh u * (Real.cosh u + 1)) = + Real.exp (-x) * (2 / x ^ 2 + 4 / x) := by + have hderiv : ∀ u ∈ Ici (0 : ℝ), HasDerivAt + (fun u => -2 * x⁻¹ ^ 2 * ((x * Real.cosh u + (x + 1)) * Real.exp (-(x * Real.cosh u)))) + (Real.exp (-(x * Real.cosh u)) * (2 * Real.sinh u * (Real.cosh u + 1))) u := + fun u _ => hasDerivAt_primitive_two hx.ne' u + have hpos : ∀ u ∈ Ioi (0 : ℝ), + 0 ≤ Real.exp (-(x * Real.cosh u)) * (2 * Real.sinh u * (Real.cosh u + 1)) := + fun _ hu => integrand_two_nonneg x (le_of_lt hu) + rw [integral_Ioi_of_hasDerivAt_of_nonneg' hderiv hpos (tendsto_primitive_two hx), + Real.cosh_zero, mul_one] + linear_combination 4 * x⁻¹ * Real.exp (-x) * mul_inv_cancel₀ hx.ne' + +/-- `u ↦ e^{-x cosh u} cosh (u/2)` is integrable on `(0, ∞)` for `x > 0` (the order `ν = 1/2` +case of `integrableOn_besselKReal_integrand`). -/ +theorem integrableOn_integrand_cosh_half {x : ℝ} (hx : 0 < x) : + IntegrableOn (fun u => Real.exp (-(x * Real.cosh u)) * Real.cosh (u / 2)) (Ioi 0) := by + have h := integrableOn_besselKReal_integrand (1 / 2) hx + have heq : (fun u : ℝ => Real.exp (-(x * Real.cosh u)) * Real.cosh (1 / 2 * u)) = + fun u => Real.exp (-(x * Real.cosh u)) * Real.cosh (u / 2) := + funext fun u => by rw [show (1 : ℝ) / 2 * u = u / 2 by ring] + rwa [heq] at h + +/-- `∫₀^∞ e^{-x cosh u} cosh (u/2) du = e^{-x} √(π/(2x))` for `x > 0` (that is, +`K_{1/2}(x) = √(π/(2x)) e^{-x}`), by the substitution `w = sinh (u/2)` and the Gaussian integral. +In the variable `v = cosh u - 1` of the manuscript's substitution this is +`e^{-x} ∫₀^∞ e^{-xv} (2v)^{-1/2} dv = e^{-x} √(π/(2x))`. -/ +theorem integral_integrand_cosh_half {x : ℝ} (_hx : 0 < x) : + ∫ u in Ioi (0 : ℝ), Real.exp (-(x * Real.cosh u)) * Real.cosh (u / 2) = + Real.exp (-x) * Real.sqrt (Real.pi / (2 * x)) := by + have hderiv : ∀ u ∈ Ioi (0 : ℝ), HasDerivWithinAt (fun u => Real.sinh (u / 2)) + (Real.cosh (u / 2) * (1 / 2)) (Ioi 0) u := fun u _ => + ((hasDerivAt_id' u).div_const 2).sinh.hasDerivWithinAt + have hinj : Set.InjOn (fun u : ℝ => Real.sinh (u / 2)) (Ioi 0) := by + intro a _ b _ hab + have h : Real.sinh (a / 2) = Real.sinh (b / 2) := hab + have := Real.sinh_injective h + linarith + have himage : (fun u : ℝ => Real.sinh (u / 2)) '' Ioi 0 = Ioi 0 := by + ext w + simp only [Set.mem_image, Set.mem_Ioi] + constructor + · rintro ⟨u, hu, rfl⟩ + exact Real.sinh_pos_iff.mpr (half_pos hu) + · intro hw + refine ⟨2 * Real.arsinh w, mul_pos two_pos (Real.arsinh_pos_iff.mpr hw), ?_⟩ + rw [show 2 * Real.arsinh w / 2 = Real.arsinh w by ring, Real.sinh_arsinh] + have key := integral_image_eq_integral_abs_deriv_smul measurableSet_Ioi hderiv hinj + (fun w => Real.exp (-(2 * x) * w ^ 2)) + rw [himage, integral_gaussian_Ioi] at key + simp only [smul_eq_mul] at key + have hpt : ∀ u : ℝ, Real.exp (-(x * Real.cosh u)) * Real.cosh (u / 2) = + 2 * Real.exp (-x) * + (|Real.cosh (u / 2) * (1 / 2)| * Real.exp (-(2 * x) * Real.sinh (u / 2) ^ 2)) := by + intro u + rw [abs_of_pos (mul_pos (Real.cosh_pos _) one_half_pos), + cosh_eq_one_add_two_mul_sinh_half_sq u, + show -(x * (1 + 2 * Real.sinh (u / 2) ^ 2)) = -x + -(2 * x) * Real.sinh (u / 2) ^ 2 by ring, + Real.exp_add] + ring + calc ∫ u in Ioi (0 : ℝ), Real.exp (-(x * Real.cosh u)) * Real.cosh (u / 2) + = ∫ u in Ioi (0 : ℝ), 2 * Real.exp (-x) * + (|Real.cosh (u / 2) * (1 / 2)| * Real.exp (-(2 * x) * Real.sinh (u / 2) ^ 2)) := + integral_congr_ae (ae_of_all _ hpt) + _ = 2 * Real.exp (-x) * ∫ u in Ioi (0 : ℝ), + |Real.cosh (u / 2) * (1 / 2)| * Real.exp (-(2 * x) * Real.sinh (u / 2) ^ 2) := + integral_const_mul _ _ + _ = 2 * Real.exp (-x) * (Real.sqrt (Real.pi / (2 * x)) / 2) := + congrArg (fun t => 2 * Real.exp (-x) * t) key.symm + _ = Real.exp (-x) * Real.sqrt (Real.pi / (2 * x)) := by ring + +/-- For `x > 0`: `x √(π/(2x)) ≤ 2 √(1 + x)` (as `π x/2 ≤ 4 (1 + x)`). -/ +theorem mul_sqrt_pi_div_le {x : ℝ} (hx : 0 < x) : + x * Real.sqrt (Real.pi / (2 * x)) ≤ 2 * Real.sqrt (1 + x) := by + have hS2 : Real.sqrt (Real.pi / (2 * x)) ^ 2 = Real.pi / (2 * x) := + Real.sq_sqrt (by positivity) + have hR2 : Real.sqrt (1 + x) ^ 2 = 1 + x := Real.sq_sqrt (by positivity) + have hpi : Real.pi * x ≤ 4 * x := mul_le_mul_of_nonneg_right Real.pi_le_four hx.le + have hsq : x ^ 2 * (Real.pi / (2 * x)) = Real.pi * x / 2 := by + linear_combination Real.pi * x / 2 * mul_inv_cancel₀ hx.ne' + refine (sq_le_sq₀ (by positivity) (by positivity)).mp ?_ + rw [mul_pow, mul_pow, hS2, hR2, hsq] + linarith + +end BesselK + +/-- **Bessel bound for `K₁`** (Section 6, the display bounding `K₁` and `K₂` that precedes (6.2)): +for `x > 0`, +`K₁(x) ≤ e^{-x} (x⁻¹ + √(π/(2x)))`. -/ +theorem besselKReal_one_le {x : ℝ} (hx : 0 < x) : + besselKReal 1 x ≤ Real.exp (-x) * (x⁻¹ + Real.sqrt (Real.pi / (2 * x))) := by + have hB := integrableOn_integrand_sinh hx + have hC := integrableOn_integrand_cosh_half hx + have hle : ∀ u ∈ Ioi (0 : ℝ), Real.exp (-(x * Real.cosh u)) * Real.cosh (1 * u) ≤ + Real.exp (-(x * Real.cosh u)) * Real.sinh u + + Real.exp (-(x * Real.cosh u)) * Real.cosh (u / 2) := by + intro u hu + rw [one_mul, ← mul_add] + exact mul_le_mul_of_nonneg_left (cosh_le_sinh_add_cosh_half (le_of_lt hu)) + (Real.exp_pos _).le + calc besselKReal 1 x + ≤ ∫ u in Ioi (0 : ℝ), (Real.exp (-(x * Real.cosh u)) * Real.sinh u + + Real.exp (-(x * Real.cosh u)) * Real.cosh (u / 2)) := + setIntegral_mono_on (integrableOn_besselKReal_integrand 1 hx) (hB.fun_add hC) + measurableSet_Ioi hle + _ = Real.exp (-x) / x + Real.exp (-x) * Real.sqrt (Real.pi / (2 * x)) := by + rw [integral_add hB hC, integral_integrand_sinh hx, integral_integrand_cosh_half hx] + _ = Real.exp (-x) * (x⁻¹ + Real.sqrt (Real.pi / (2 * x))) := by ring + +/-- **Bessel bound for `K₂`** (Section 6, the display bounding `K₁` and `K₂` that precedes (6.2)): +for `x > 0`, +`K₂(x) ≤ e^{-x} (2x⁻² + 4x⁻¹ + √(π/(2x)))`. -/ +theorem besselKReal_two_le {x : ℝ} (hx : 0 < x) : + besselKReal 2 x ≤ + Real.exp (-x) * (2 / x ^ 2 + 4 / x + Real.sqrt (Real.pi / (2 * x))) := by + have hA := integrableOn_integrand_two hx + have hC := integrableOn_integrand_cosh_half hx + have hle : ∀ u ∈ Ioi (0 : ℝ), Real.exp (-(x * Real.cosh u)) * Real.cosh (2 * u) ≤ + Real.exp (-(x * Real.cosh u)) * (2 * Real.sinh u * (Real.cosh u + 1)) + + Real.exp (-(x * Real.cosh u)) * Real.cosh (u / 2) := by + intro u hu + rw [← mul_add] + exact mul_le_mul_of_nonneg_left (cosh_two_mul_le (le_of_lt hu)) (Real.exp_pos _).le + calc besselKReal 2 x + ≤ ∫ u in Ioi (0 : ℝ), + (Real.exp (-(x * Real.cosh u)) * (2 * Real.sinh u * (Real.cosh u + 1)) + + Real.exp (-(x * Real.cosh u)) * Real.cosh (u / 2)) := + setIntegral_mono_on (integrableOn_besselKReal_integrand 2 hx) (hA.fun_add hC) + measurableSet_Ioi hle + _ = Real.exp (-x) * (2 / x ^ 2 + 4 / x) + + Real.exp (-x) * Real.sqrt (Real.pi / (2 * x)) := by + rw [integral_add hA hC, integral_integrand_two hx, integral_integrand_cosh_half hx] + _ = Real.exp (-x) * (2 / x ^ 2 + 4 / x + Real.sqrt (Real.pi / (2 * x))) := by ring + +/-- **(6.2), first bound**: for `x > 0`, `x K₁(x) ≤ 3 (1 + x)^{1/2} e^{-x}`. -/ +theorem mul_besselKReal_one_le {x : ℝ} (hx : 0 < x) : + x * besselKReal 1 x ≤ 3 * (1 + x) ^ ((1 : ℝ) / 2) * Real.exp (-x) := by + have hK := besselKReal_one_le hx + have hxS := mul_sqrt_pi_div_le hx + have hR1 : 1 ≤ Real.sqrt (1 + x) := Real.one_le_sqrt.mpr (by linarith) + have hE : 0 < Real.exp (-x) := Real.exp_pos _ + rw [← Real.sqrt_eq_rpow] + calc x * besselKReal 1 x + ≤ x * (Real.exp (-x) * (x⁻¹ + Real.sqrt (Real.pi / (2 * x)))) := + mul_le_mul_of_nonneg_left hK hx.le + _ = Real.exp (-x) * (1 + x * Real.sqrt (Real.pi / (2 * x))) := by + linear_combination Real.exp (-x) * mul_inv_cancel₀ hx.ne' + _ ≤ Real.exp (-x) * (3 * Real.sqrt (1 + x)) := + mul_le_mul_of_nonneg_left (by linarith) hE.le + _ = 3 * Real.sqrt (1 + x) * Real.exp (-x) := by ring + +/-- **(6.2), second bound**: for `x > 0`, `x² K₂(x) ≤ 8 (1 + x)^{3/2} e^{-x}`. -/ +theorem sq_mul_besselKReal_two_le {x : ℝ} (hx : 0 < x) : + x ^ 2 * besselKReal 2 x ≤ 8 * (1 + x) ^ ((3 : ℝ) / 2) * Real.exp (-x) := by + have hK := besselKReal_two_le hx + have hxS := mul_sqrt_pi_div_le hx + have hR1 : 1 ≤ Real.sqrt (1 + x) := Real.one_le_sqrt.mpr (by linarith) + have hE : 0 < Real.exp (-x) := Real.exp_pos _ + have hpow : (1 + x) ^ ((3 : ℝ) / 2) = (1 + x) * Real.sqrt (1 + x) := by + rw [show (3 : ℝ) / 2 = 1 + 1 / 2 by norm_num, Real.rpow_add (show (0 : ℝ) < 1 + x by linarith), + Real.rpow_one, Real.sqrt_eq_rpow] + have key : 2 + 4 * x + x ^ 2 * Real.sqrt (Real.pi / (2 * x)) ≤ + 8 * ((1 + x) * Real.sqrt (1 + x)) := by + have h1 : x * (x * Real.sqrt (Real.pi / (2 * x))) ≤ x * (2 * Real.sqrt (1 + x)) := + mul_le_mul_of_nonneg_left hxS hx.le + have h2 : x * 1 ≤ x * Real.sqrt (1 + x) := mul_le_mul_of_nonneg_left hR1 hx.le + linarith + rw [hpow] + calc x ^ 2 * besselKReal 2 x + ≤ x ^ 2 * (Real.exp (-x) * (2 / x ^ 2 + 4 / x + Real.sqrt (Real.pi / (2 * x)))) := + mul_le_mul_of_nonneg_left hK (sq_nonneg x) + _ = Real.exp (-x) * (2 + 4 * x + x ^ 2 * Real.sqrt (Real.pi / (2 * x))) := by + linear_combination (2 * Real.exp (-x) * (x * x⁻¹ + 1) + 4 * Real.exp (-x) * x) * + mul_inv_cancel₀ hx.ne' + _ ≤ Real.exp (-x) * (8 * ((1 + x) * Real.sqrt (1 + x))) := + mul_le_mul_of_nonneg_left key hE.le + _ = 8 * ((1 + x) * Real.sqrt (1 + x)) * Real.exp (-x) := by ring + +/-- The `K₁` bound for complex arguments: for `Re z > 0`, +`‖K₁(z)‖ ≤ e^{-Re z} ((Re z)⁻¹ + √(π/(2 Re z)))` (`norm_besselK_le` and `besselKReal_one_le`). -/ +theorem norm_besselK_one_le {z : ℂ} (hz : 0 < z.re) : + ‖besselK 1 z‖ ≤ Real.exp (-z.re) * (z.re⁻¹ + Real.sqrt (Real.pi / (2 * z.re))) := + (norm_besselK_le 1 z).trans (besselKReal_one_le hz) + +/-- The `K₂` bound for complex arguments: for `Re z > 0`, +`‖K₂(z)‖ ≤ e^{-Re z} (2 (Re z)⁻² + 4 (Re z)⁻¹ + √(π/(2 Re z)))` (`norm_besselK_le` and +`besselKReal_two_le`). -/ +theorem norm_besselK_two_le {z : ℂ} (hz : 0 < z.re) : + ‖besselK 2 z‖ ≤ + Real.exp (-z.re) * (2 / z.re ^ 2 + 4 / z.re + Real.sqrt (Real.pi / (2 * z.re))) := + (norm_besselK_le 2 z).trans (besselKReal_two_le hz) + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Special/BesselKDefs.lean b/LeanPool/VacuumBellSeparation/Special/BesselKDefs.lean new file mode 100644 index 0000000000..a5aedf9115 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Special/BesselKDefs.lean @@ -0,0 +1,39 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.Complex.Trigonometric +public import Mathlib.MeasureTheory.Integral.Bochner.Basic +public import Mathlib.MeasureTheory.Measure.Lebesgue.Basic + +/-! +# Statement seed extracted from Special/BesselK + +Literal declarations are unchanged; theorem conclusions remain in the implementation module. +-/ + +@[expose] public section + +open MeasureTheory Set Filter Topology + +namespace VacuumBellSeparation + +/-- The modified Bessel function of the second kind `K_ν(z)`, defined by the integral +representation [DLMF 10.32.9] that the manuscript uses (Section 6 preamble): +`K_ν(z) = ∫₀^∞ exp(-z cosh u) cosh(ν u) du`. The integral converges absolutely for `Re z > 0` +(`integrableOn_besselK_integrand`). For `Re z ≤ 0` the integrand is not integrable and the +definition takes Lean's junk value `0`; no statement in this file uses that range. -/ +noncomputable def besselK (ν : ℝ) (z : ℂ) : ℂ := + ∫ u in Ioi (0 : ℝ), Complex.exp (-(z * Real.cosh u)) * Real.cosh (ν * u) + +/-- The real form `K_ν(x) = ∫₀^∞ exp(-x cosh u) cosh(ν u) du` of `besselK` for real `x`; +`besselK ν x = besselKReal ν x` (`besselK_ofReal`). -/ +noncomputable def besselKReal (ν x : ℝ) : ℝ := + ∫ u in Ioi (0 : ℝ), Real.exp (-(x * Real.cosh u)) * Real.cosh (ν * u) + + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Weyl/Existence.lean b/LeanPool/VacuumBellSeparation/Weyl/Existence.lean new file mode 100644 index 0000000000..0bb10bc6e6 --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Weyl/Existence.lean @@ -0,0 +1,593 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import Mathlib.Analysis.CStarAlgebra.ContinuousLinearMap +public import Mathlib.Analysis.CStarAlgebra.Module.Constructions +public import Mathlib.Analysis.InnerProductSpace.GramMatrix +public import Mathlib.Analysis.InnerProductSpace.Reproducing +public import Mathlib.Analysis.Matrix.Order +public import Mathlib.Data.Finsupp.Pointwise +public import Mathlib.Tactic.Basify +public import Mathlib.Tactic.ENatToNat +public import Mathlib.Tactic.Linter.Style +public import Mathlib.Tactic.Polynomial.Basic +public import Mathlib.Tactic.ReduceModChar +public import Mathlib.Tactic.TypeStar +public import Mathlib.Analysis.SpecialFunctions.Exponential + +/-! +# Existence of a Weyl system with a Gaussian vacuum (construction, part 1) + +Given an additive map `u : X → K` into a complex inner product space, the Gaussian kernel +`𝒦(F, G) = exp(-‖u F‖²/2 - ‖u G‖²/2 + ⟪u F, u G⟫)` is positive semidefinite. This is the +input for the construction of the (exponential Fock / GNS) Hilbert space carrying the Weyl +operators. + +## Main results + +* `VacuumBellSeparation.posSemidef_gram_complex`: Gram matrices of arbitrary (possibly infinite) + families of vectors are positive semidefinite. +* `VacuumBellSeparation.posSemidef_pow_entrywise`: entrywise powers of a positive semidefinite + complex matrix are positive semidefinite (Schur product theorem). +* `VacuumBellSeparation.posSemidef_exp_entrywise`: the entrywise exponential of a positive + semidefinite complex matrix is positive semidefinite. +* `VacuumBellSeparation.posSemidef_weylKernel`, `VacuumBellSeparation.weylKernel_sum_nonneg`: + positive semidefiniteness of the Gaussian kernel. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open scoped InnerProductSpace ComplexConjugate ComplexOrder +open Matrix + +section PSD + +variable {ι : Type*} {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + +/-- The Gram matrix of an arbitrary (possibly infinite) family of vectors is positive +semidefinite. -/ +theorem posSemidef_gram_complex (v : ι → E) : (gram ℂ v).PosSemidef := by + refine ⟨isHermitian_gram ℂ v, fun x => ?_⟩ + have h : (x.sum fun i xi => x.sum fun j xj => star xi * gram ℂ v i j * xj) = + ⟪x.sum fun i xi => xi • v i, x.sum fun j xj => xj • v j⟫_ℂ := by + rw [Finsupp.sum_inner] + refine Finsupp.sum_congr fun i _ => ?_ + rw [Finsupp.inner_sum] + refine Finsupp.sum_congr fun j _ => ?_ + rw [gram_apply, inner_smul_left, inner_smul_right, show star (x i) = conj (x i) from rfl] + ring + rw [h, inner_self_eq_norm_sq_to_K] + have h0 : (0 : ℝ) ≤ ‖x.sum fun i xi => xi • v i‖ ^ 2 := sq_nonneg _ + exact_mod_cast (RCLike.ofReal_nonneg (K := ℂ)).mpr h0 + +/-- Entrywise powers of a positive semidefinite complex matrix are positive semidefinite +(Schur product theorem). -/ +theorem posSemidef_pow_entrywise {A : Matrix ι ι ℂ} (hA : A.PosSemidef) (n : ℕ) : + (Matrix.of fun i j => A i j ^ n).PosSemidef := by + induction n with + | zero => + have h1 : (Matrix.of fun i j => A i j ^ 0) = gram ℂ (fun _ : ι => (1 : ℂ)) := by + ext i j + simp [gram_apply] + rw [h1] + exact posSemidef_gram_complex _ + | succ n ih => + have h1 : (Matrix.of fun i j => A i j ^ (n + 1)) = (Matrix.of fun i j => A i j ^ n) ⊙ A := by + ext i j + simp [hadamard_apply, pow_succ] + rw [h1] + exact ih.hadamard hA + +/-- The entrywise exponential of a positive semidefinite complex matrix is positive +semidefinite. -/ +theorem posSemidef_exp_entrywise {A : Matrix ι ι ℂ} (hA : A.PosSemidef) : + (Matrix.of fun i j => Complex.exp (A i j)).PosSemidef := by + refine ⟨?_, fun x => ?_⟩ + · ext i j + simp only [conjTranspose_apply, of_apply] + rw [← hA.isHermitian.apply i j] + exact (Complex.exp_conj (A j i)).symm + · have hser : ∀ z : ℂ, HasSum (fun n : ℕ => z ^ n / (n.factorial : ℂ)) (Complex.exp z) := by + intro z + rw [Complex.exp_eq_exp_ℂ] + exact NormedSpace.expSeries_div_hasSum_exp z + have key : HasSum (fun n : ℕ => x.sum fun i xi => x.sum fun j xj => + star xi * (A i j ^ n / (n.factorial : ℂ)) * xj) + (x.sum fun i xi => x.sum fun j xj => star xi * Complex.exp (A i j) * xj) := by + simp only [Finsupp.sum] + refine hasSum_sum fun i _ => hasSum_sum fun j _ => ?_ + exact ((hser (A i j)).mul_left (star (x i))).mul_right (x j) + refine key.nonneg fun n => ?_ + have hn := (posSemidef_pow_entrywise hA n).2 x + have hfac : (0 : ℂ) ≤ ((n.factorial : ℝ)⁻¹ : ℝ) := Complex.zero_le_real.mpr (by positivity) + have heq : (x.sum fun i xi => x.sum fun j xj => star xi * (A i j ^ n / (n.factorial : ℂ)) * xj) + = ((n.factorial : ℝ)⁻¹ : ℝ) * (x.sum fun i xi => x.sum fun j xj => + star xi * (Matrix.of fun i j => A i j ^ n) i j * xj) := by + simp only [Finsupp.mul_sum, of_apply] + refine Finsupp.sum_congr fun i _ => Finsupp.sum_congr fun j _ => ?_ + push_cast + ring + rw [heq] + exact mul_nonneg hfac hn + +end PSD + +/-- The Gaussian kernel `𝒦(F, G) = exp(-‖uF‖²/2 - ‖uG‖²/2 + ⟪uF, uG⟫)`. -/ +noncomputable def weylKernel {X K : Type*} [NormedAddCommGroup K] [InnerProductSpace ℂ K] + (u : X → K) (F G : X) : ℂ := + Complex.exp (((-(‖u F‖ ^ 2) / 2 - ‖u G‖ ^ 2 / 2 : ℝ) : ℂ) + ⟪u F, u G⟫_ℂ) + +section Kernel + +variable {X K : Type*} [NormedAddCommGroup K] [InnerProductSpace ℂ K] (u : X → K) + +theorem weylKernel_conj (F G : X) : conj (weylKernel u F G) = weylKernel u G F := by + unfold weylKernel + rw [← Complex.exp_conj, map_add, Complex.conj_ofReal, inner_conj_symm, + show (-(‖u F‖ ^ 2) / 2 - ‖u G‖ ^ 2 / 2 : ℝ) = -(‖u G‖ ^ 2) / 2 - ‖u F‖ ^ 2 / 2 by ring] + +/-- Factorization `𝒦(F, G) = exp ⟪uF, uG⟫ · conj (a F) · a G` with `a F = exp(-‖uF‖²/2)`. -/ +theorem weylKernel_eq (F G : X) : + weylKernel u F G = Complex.exp ⟪u F, u G⟫_ℂ * + (conj (Complex.exp ((-(‖u F‖ ^ 2 / 2) : ℝ) : ℂ)) * + Complex.exp ((-(‖u G‖ ^ 2 / 2) : ℝ) : ℂ)) := by + unfold weylKernel + rw [← Complex.exp_conj, Complex.conj_ofReal, ← Complex.exp_add, ← Complex.exp_add] + congr 1 + push_cast + ring + +/-- The Gaussian kernel is a positive semidefinite matrix. -/ +theorem posSemidef_weylKernel : (Matrix.of fun F G => weylKernel u F G).PosSemidef := by + have h1 := posSemidef_exp_entrywise (posSemidef_gram_complex u) + have h2 := posSemidef_gram_complex (fun F : X => Complex.exp ((-(‖u F‖ ^ 2 / 2) : ℝ) : ℂ)) + have h3 := h1.hadamard h2 + convert h3 using 1 + ext F G + simp only [of_apply, hadamard_apply, gram_apply, RCLike.inner_apply'] + exact weylKernel_eq u F G + +/-- Positive semidefiniteness of the Gaussian kernel, in `Finsupp` form. -/ +theorem weylKernel_sum_nonneg (c : X →₀ ℂ) : + 0 ≤ (c.sum fun F a => c.sum fun G b => conj a * b * weylKernel u F G).re := by + have h := (posSemidef_weylKernel u).2 c + have h' : (c.sum fun F a => c.sum fun G b => conj a * b * weylKernel u F G) = + (c.sum fun F a => c.sum fun G b => + star a * (Matrix.of fun F G => weylKernel u F G) F G * b) := by + refine Finsupp.sum_congr fun F _ => Finsupp.sum_congr fun G _ => ?_ + rw [of_apply, show star (c F) = conj (c F) from rfl] + ring + rw [h'] + exact (Complex.nonneg_iff.mp h).1 + +/-! ### The Gaussian kernel as a reproducing kernel -/ + +/-- The Gaussian kernel as an operator-valued kernel (with fibre `ℂ`), in the form used by +Mathlib's reproducing-kernel-Hilbert-space API, so that `⟪k_F, k_G⟫ = ⟪K G F 1, 1⟫ = 𝒦(F, G)`. -/ +noncomputable def weylRKHSKernel : Matrix X X (ℂ →L[ℂ] ℂ) := + Matrix.of fun F G => weylKernel u F G • (1 : ℂ →L[ℂ] ℂ) + +theorem posSemidef_weylRKHSKernel : (weylRKHSKernel u).PosSemidef := by + rw [RKHS.posSemidef_iff_re_sum_kernel'] + refine ⟨?_, fun vv => ?_⟩ + · change (weylRKHSKernel u)ᴴ = weylRKHSKernel u + refine Matrix.ext fun F G => ?_ + simp only [weylRKHSKernel, conjTranspose_apply, of_apply, star_smul, star_one] + rw [show star (weylKernel u G F) = conj (weylKernel u G F) from rfl, weylKernel_conj] + · have h := weylKernel_sum_nonneg u vv + rw [RCLike.re_to_complex] + convert h using 2 + refine Finsupp.sum_congr fun F _ => Finsupp.sum_congr fun G _ => ?_ + simp only [weylRKHSKernel, of_apply, smul_apply, + one_apply_eq_self, smul_eq_mul, RCLike.inner_apply, map_mul, weylKernel_conj] + ring + +instance : Fact (weylRKHSKernel u).PosSemidef := ⟨posSemidef_weylRKHSKernel u⟩ + +/-- The Hilbert space of the Weyl system: the reproducing kernel Hilbert space of the Gaussian +kernel (the completion of the pre-Hilbert space `X × ℂ →₀ ℂ` with the kernel inner product). -/ +abbrev WeylSpace : Type _ := RKHS.OfKernel (weylRKHSKernel u) + +example : CompleteSpace (WeylSpace u) := inferInstance + +/-- The kernel vectors `k_F` of the Weyl space (later: `k_F = W(F) Ω`). -/ +noncomputable def weylKerVec (F : X) : WeylSpace u := RKHS.kerFun (WeylSpace u) F 1 + +/-- The reproducing property: `⟪k_F, k_G⟫ = 𝒦(F, G)`. -/ +theorem inner_weylKerVec (F G : X) : + ⟪weylKerVec u F, weylKerVec u G⟫_ℂ = weylKernel u F G := by + unfold weylKerVec + rw [← RKHS.kernel_inner, RKHS.OfKernel.kernel_ofKernel] + simp only [weylRKHSKernel, of_apply, smul_apply, + one_apply_eq_self, smul_eq_mul, mul_one, one_mul, RCLike.inner_apply, + weylKernel_conj] + +/-- The kernel vectors span a dense subspace of the Weyl space. -/ +theorem weylKerVec_dense : + (Submodule.span ℂ (Set.range (weylKerVec u))).topologicalClosure = ⊤ := by + rw [eq_top_iff, ← RKHS.kerFun_dense (WeylSpace u)] + refine Submodule.topologicalClosure_mono (Submodule.span_le.mpr ?_) + rintro _ ⟨F, v, rfl⟩ + have hv : RKHS.kerFun (WeylSpace u) F v = v • weylKerVec u F := by + have h1 : v = v • (1 : ℂ) := by simp + conv_lhs => rw [h1] + rw [map_smul, weylKerVec] + rw [hv] + exact Submodule.smul_mem _ _ (Submodule.subset_span ⟨F, rfl⟩) + +/-! ### Weyl operators on the pre-Hilbert space -/ + +/-- The Weyl phase `exp(-i Im⟪uF, uG⟫)`. -/ +noncomputable def weylPhase (F G : X) : ℂ := + Complex.exp (-(Complex.I * ((⟪u F, u G⟫_ℂ).im : ℂ))) + +/-- Translation covariance of the Gaussian kernel: +`conj φ(F,G) · φ(F,G') · 𝒦(F+G, F+G') = 𝒦(G, G')`. -/ +theorem weylKernel_add_add [Add X] (hu : ∀ F G, u (F + G) = u F + u G) (F G G' : X) : + conj (weylPhase u F G) * weylPhase u F G' * weylKernel u (F + G) (F + G') = + weylKernel u G G' := by + simp only [weylPhase, weylKernel, hu, ← Complex.exp_conj, ← Complex.exp_add] + congr 1 + have ha_re : (⟪u F, u F⟫_ℂ).re = ‖u F‖ ^ 2 := by + have := inner_self_eq_norm_sq (𝕜 := ℂ) (u F) + rwa [RCLike.re_to_complex] at this + have ha_im : (⟪u F, u F⟫_ℂ).im = 0 := by + have := inner_self_im (𝕜 := ℂ) (u F) + rwa [RCLike.im_to_complex] at this + have h1 := norm_add_sq (𝕜 := ℂ) (u F) (u G) + have h2 := norm_add_sq (𝕜 := ℂ) (u F) (u G') + rw [RCLike.re_to_complex] at h1 h2 + have hc : ⟪u G, u F⟫_ℂ = conj ⟪u F, u G⟫_ℂ := (inner_conj_symm (u G) (u F)).symm + rw [h1, h2, inner_add_left, inner_add_right, inner_add_right, hc] + apply Complex.ext + · simp only [Complex.add_re, Complex.neg_re, Complex.mul_re, Complex.I_re, Complex.I_im, + Complex.ofReal_re, Complex.ofReal_im, Complex.conj_re, map_neg, map_mul, + Complex.conj_I, Complex.conj_ofReal, ha_re] + ring + · simp only [Complex.add_im, Complex.neg_im, Complex.mul_im, Complex.I_re, Complex.I_im, + Complex.ofReal_re, Complex.ofReal_im, Complex.conj_im, map_neg, map_mul, + Complex.conj_I, Complex.conj_ofReal, ha_im] + ring + +/-- The kernel inner product of two point masses in the pre-Hilbert space `X × ℂ →₀ ℂ`. -/ +theorem inner_H₀_single (y x : X) (v w a b : ℂ) : + @inner ℂ (RKHS.H₀ (weylRKHSKernel u)) _ (Finsupp.single (y, v) a) (Finsupp.single (x, w) b) = + conj a * b * conj v * w * weylKernel u y x := by + have : @inner ℂ (RKHS.H₀ (weylRKHSKernel u)) _ (Finsupp.single (y, v) a) + (Finsupp.single (x, w) b) = + (Finsupp.single (y, v) a).sum fun ⟨y', v'⟩ z => (Finsupp.single (x, w) b).sum + fun ⟨x', w'⟩ c => star z * c * ⟪weylRKHSKernel u x' y' v', w'⟫_ℂ := rfl + rw [this] + first + | (simp only [weylRKHSKernel, of_apply, smul_apply, + one_apply_eq_self, smul_eq_mul, RCLike.inner_apply, map_mul, weylKernel_conj, + star_zero, zero_mul, mul_zero, Finsupp.sum_single_index] + rw [show star a = conj a from rfl] + ring) + + + +/-- The Weyl operator on the pre-Hilbert space: `δ_(G,v) ↦ φ(F,G) δ_(F+G,v)`. -/ +noncomputable def weylOp₀ [Add X] (F : X) : + RKHS.H₀ (weylRKHSKernel u) →ₗ[ℂ] RKHS.H₀ (weylRKHSKernel u) := + Finsupp.lsum ℂ fun p : X × ℂ => weylPhase u F p.1 • Finsupp.lsingle (F + p.1, p.2) + +theorem weylOp₀_single [Add X] (F G : X) (v a : ℂ) : + weylOp₀ u F (Finsupp.single (G, v) a) = weylPhase u F G • Finsupp.single (F + G, v) a := by + simp [weylOp₀] + +/-- The Weyl operators preserve the (pre-)inner product. -/ +theorem inner_weylOp₀ [Add X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) + (f g : RKHS.H₀ (weylRKHSKernel u)) : + ⟪weylOp₀ u F f, weylOp₀ u F g⟫_ℂ = ⟪f, g⟫_ℂ := by + induction f using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_left] + | add f₁ f₂ h₁ h₂ => simp only [map_add, inner_add_left, h₁, h₂] + | single p a => + induction g using Finsupp.induction_linear with + | zero => simp only [map_zero, inner_zero_right] + | add g₁ g₂ h₁ h₂ => simp only [map_add, inner_add_right, h₁, h₂] + | single q b => + obtain ⟨G, v⟩ := p + obtain ⟨G', w⟩ := q + rw [weylOp₀_single, weylOp₀_single, inner_smul_left, inner_smul_right, inner_H₀_single, + inner_H₀_single, ← weylKernel_add_add u hu F G G'] + ring + +/-! ### Extension to the completion -/ + +/-- The Weyl operator as a linear isometry of the pre-Hilbert space. -/ +noncomputable def weylIso₀ [Add X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + RKHS.H₀ (weylRKHSKernel u) →ₗᵢ[ℂ] RKHS.H₀ (weylRKHSKernel u) := + (weylOp₀ u F).isometryOfInner (inner_weylOp₀ u hu F) + +/-- The Weyl operator on the Weyl space, extended by continuity from the pre-Hilbert space. -/ +noncomputable def weylOp [Add X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + WeylSpace u →ₗᵢ[ℂ] WeylSpace u := + (UniformSpace.Completion.toComplₗᵢ.comp (weylIso₀ u hu F)).fromCompletion + +theorem weylOp_coe [Add X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) + (f : RKHS.H₀ (weylRKHSKernel u)) : + weylOp u hu F (f : WeylSpace u) = (weylOp₀ u F f : WeylSpace u) := by + rw [weylOp, LinearIsometry.fromCompletion_apply_coe] + rfl + +/-- Weyl relation on the pre-Hilbert space: `W(F) W(F') = φ(F,F') W(F + F')`. -/ +theorem weylOp₀_comp [AddSemigroup X] (hu : ∀ F G, u (F + G) = u F + u G) (F F' : X) + (f : RKHS.H₀ (weylRKHSKernel u)) : + weylOp₀ u F (weylOp₀ u F' f) = weylPhase u F F' • weylOp₀ u (F + F') f := by + induction f using Finsupp.induction_linear with + | zero => simp only [map_zero, smul_zero] + | add f g hf hg => simp only [map_add, smul_add, hf, hg] + | single p a => + obtain ⟨G, v⟩ := p + rw [weylOp₀_single, map_smul, weylOp₀_single, weylOp₀_single, smul_smul, smul_smul, + add_assoc] + congr 1 + simp only [weylPhase, hu, ← Complex.exp_add] + congr 1 + simp only [inner_add_left, inner_add_right, Complex.add_im] + push_cast + ring + +/-! ### The vacuum -/ + +omit [InnerProductSpace ℂ K] in +theorem map_zero_of_additive [AddZeroClass X] (hu : ∀ F G, u (F + G) = u F + u G) : u 0 = 0 := by + have h := hu 0 0 + rw [add_zero] at h + simpa using (congrArg (fun z => z - u 0) h).symm + +/-- `⟪Ω, Ω⟫ = 1` for the vacuum `Ω = k_0`. -/ +theorem inner_weylKerVec_zero_zero [AddZeroClass X] (hu : ∀ F G, u (F + G) = u F + u G) : + ⟪weylKerVec u 0, weylKerVec u 0⟫_ℂ = 1 := by + rw [inner_weylKerVec, weylKernel, map_zero_of_additive u hu] + simp + +/-- The vacuum `Ω = k_0` is a unit vector. -/ +theorem norm_weylKerVec_zero [AddZeroClass X] (hu : ∀ F G, u (F + G) = u F + u G) : + ‖weylKerVec u 0‖ = 1 := by + have h := inner_weylKerVec_zero_zero u hu + have h2 : ‖weylKerVec u 0‖ ^ 2 = 1 := by + have h' := inner_self_eq_norm_sq (𝕜 := ℂ) (weylKerVec u 0) + rw [h] at h' + simpa using h'.symm + rw [← Real.sqrt_sq (norm_nonneg (weylKerVec u 0)), h2, Real.sqrt_one] + +/-- Vacuum expectation values of the kernel vectors: `⟪Ω, k_F⟫ = exp(-‖uF‖²/2)`. -/ +theorem inner_weylKerVec_zero [AddZeroClass X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + ⟪weylKerVec u 0, weylKerVec u F⟫_ℂ = ((Real.exp (-(‖u F‖ ^ 2 / 2)) : ℝ) : ℂ) := by + rw [inner_weylKerVec, weylKernel, map_zero_of_additive u hu, inner_zero_left, add_zero, + Complex.ofReal_exp, norm_zero] + congr 1 + push_cast + ring + +/-! ### Point masses in the Weyl space -/ + +/-- The point masses `e_F = [δ_(F,1)]` of the Weyl space (`e_F = W(F) Ω` for `Ω = e_0`). -/ +noncomputable def weylVec (F : X) : WeylSpace u := + ((Finsupp.single (F, (1 : ℂ)) (1 : ℂ) : RKHS.H₀ (weylRKHSKernel u)) : WeylSpace u) + +theorem weylVec_def (F : X) : + weylVec u F = + ((Finsupp.single (F, (1 : ℂ)) (1 : ℂ) : RKHS.H₀ (weylRKHSKernel u)) : WeylSpace u) := + rfl + +/-- `⟪e_F, e_G⟫ = 𝒦(F, G)`. -/ +theorem inner_weylVec (F G : X) : + ⟪weylVec u F, weylVec u G⟫_ℂ = weylKernel u F G := by + have h := inner_H₀_single u F G 1 1 1 1 + simp only [map_one, one_mul, mul_one] at h + exact (UniformSpace.Completion.inner_coe (𝕜 := ℂ) (E := RKHS.H₀ (weylRKHSKernel u)) + (Finsupp.single (F, (1 : ℂ)) (1 : ℂ)) (Finsupp.single (G, (1 : ℂ)) (1 : ℂ))).trans h + +/-- `W(F) e_G = φ(F, G) e_(F+G)`. -/ +theorem weylOp_weylVec [Add X] (hu : ∀ F G, u (F + G) = u F + u G) (F G : X) : + weylOp u hu F (weylVec u G) = weylPhase u F G • weylVec u (F + G) := by + simp only [weylVec_def] + rw [weylOp_coe, weylOp₀_single, UniformSpace.Completion.coe_smul] + +/-- Weyl relation on the Weyl space: `W(F) W(F') = φ(F,F') W(F + F')`. -/ +theorem weylOp_comp [AddSemigroup X] (hu : ∀ F G, u (F + G) = u F + u G) (F F' : X) + (x : WeylSpace u) : + weylOp u hu F (weylOp u hu F' x) = weylPhase u F F' • weylOp u hu (F + F') x := by + induction x using UniformSpace.Completion.induction_on with + | hp => + have h1 : Continuous fun a : WeylSpace u => weylOp u hu F (weylOp u hu F' a) := + (weylOp u hu F).continuous.comp (weylOp u hu F').continuous + have h2 : Continuous fun a : WeylSpace u => weylPhase u F F' • weylOp u hu (F + F') a := + (weylOp u hu (F + F')).continuous.const_smul (weylPhase u F F') + exact isClosed_eq h1 h2 + | ih f => + rw [weylOp_coe, weylOp_coe, weylOp_coe, weylOp₀_comp u hu, UniformSpace.Completion.coe_smul] + +/-! ### Unitarity -/ + +theorem weylPhase_zero_left [AddZeroClass X] (hu : ∀ F G, u (F + G) = u F + u G) (G : X) : + weylPhase u 0 G = 1 := by + simp [weylPhase, map_zero_of_additive u hu] + +theorem weylPhase_zero_right [AddZeroClass X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + weylPhase u F 0 = 1 := by + simp [weylPhase, map_zero_of_additive u hu] + +omit [InnerProductSpace ℂ K] in +theorem map_neg_of_additive [AddGroup X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + u (-F) = -u F := by + have h := hu (-F) F + rw [neg_add_cancel, map_zero_of_additive u hu] at h + rw [← sub_eq_zero, sub_neg_eq_add, ← h] + +/-- `φ(F, -F) = 1`, since `⟪uF, -uF⟫` is real. -/ +theorem weylPhase_neg_right [AddGroup X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + weylPhase u F (-F) = 1 := by + have h : (⟪u F, u F⟫_ℂ).im = 0 := by + have := inner_self_im (𝕜 := ℂ) (u F) + rwa [RCLike.im_to_complex] at this + rw [weylPhase, map_neg_of_additive u hu, inner_neg_right, Complex.neg_im, h] + simp + +theorem weylOp₀_zero [AddMonoid X] (hu : ∀ F G, u (F + G) = u F + u G) + (f : RKHS.H₀ (weylRKHSKernel u)) : weylOp₀ u 0 f = f := by + induction f using Finsupp.induction_linear with + | zero => simp only [map_zero] + | add f g hf hg => simp only [map_add, hf, hg] + | single p a => + obtain ⟨G, v⟩ := p + rw [weylOp₀_single, weylPhase_zero_left u hu, one_smul, zero_add] + +/-- `W(0) = 1`. -/ +theorem weylOp_zero [AddMonoid X] (hu : ∀ F G, u (F + G) = u F + u G) (x : WeylSpace u) : + weylOp u hu 0 x = x := by + induction x using UniformSpace.Completion.induction_on with + | hp => exact isClosed_eq (weylOp u hu 0).continuous continuous_id + | ih f => rw [weylOp_coe, weylOp₀_zero u hu] + +/-- `W(F) W(-F) = 1`. -/ +theorem weylOp_neg_right [AddGroup X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) + (x : WeylSpace u) : weylOp u hu F (weylOp u hu (-F) x) = x := by + rw [weylOp_comp u hu, weylPhase_neg_right u hu, one_smul, add_neg_cancel, weylOp_zero u hu] + +/-- The Weyl operator as a linear isometric equivalence of the Weyl space. -/ +noncomputable def weylEquiv [AddGroup X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + WeylSpace u ≃ₗᵢ[ℂ] WeylSpace u := + LinearIsometryEquiv.ofSurjective (weylOp u hu F) fun x => + ⟨weylOp u hu (-F) x, weylOp_neg_right u hu F x⟩ + +/-- The Weyl operator as a bounded operator on the Weyl space. -/ +noncomputable def weylCLM [AddGroup X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + WeylSpace u →L[ℂ] WeylSpace u := + (weylOp u hu F).toContinuousLinearMap + +theorem weylCLM_apply [AddGroup X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) + (x : WeylSpace u) : weylCLM u hu F x = weylOp u hu F x := + rfl + +/-- The Weyl operators are unitary. -/ +theorem weylCLM_mem_unitary [AddGroup X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + weylCLM u hu F ∈ unitary (WeylSpace u →L[ℂ] WeylSpace u) := by + have e : weylCLM u hu F = + ((weylEquiv u hu F : WeylSpace u ≃ₗᵢ[ℂ] WeylSpace u) : WeylSpace u →L[ℂ] WeylSpace u) := by + ext x + rfl + rw [e] + have h := ((Unitary.linearIsometryEquiv : + unitary (WeylSpace u →L[ℂ] WeylSpace u) ≃* (WeylSpace u ≃ₗᵢ[ℂ] WeylSpace u)).symm + (weylEquiv u hu F)).property + exact h + +/-- The Weyl relation for the bounded Weyl operators. -/ +theorem weylCLM_mul [AddGroup X] (hu : ∀ F G, u (F + G) = u F + u G) (F G : X) : + weylCLM u hu F * weylCLM u hu G = weylPhase u F G • weylCLM u hu (F + G) := by + refine ContinuousLinearMap.ext fun x => ?_ + exact weylOp_comp u hu F G x + +/-! ### Vacuum and cyclicity -/ + +theorem weylOp_weylVec_zero [AddMonoid X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + weylOp u hu F (weylVec u 0) = weylVec u F := by + rw [weylOp_weylVec, weylPhase_zero_right u hu, one_smul, add_zero] + +theorem inner_weylVec_zero_left [AddZeroClass X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + ⟪weylVec u 0, weylVec u F⟫_ℂ = ((Real.exp (-(‖u F‖ ^ 2 / 2)) : ℝ) : ℂ) := by + rw [inner_weylVec, ← inner_weylKerVec, inner_weylKerVec_zero u hu] + +/-- The vacuum `Ω = e_0` is a unit vector. -/ +theorem norm_weylVec_zero [AddZeroClass X] (hu : ∀ F G, u (F + G) = u F + u G) : + ‖weylVec u 0‖ = 1 := by + have h : ⟪weylVec u 0, weylVec u 0⟫_ℂ = 1 := by + rw [inner_weylVec, ← inner_weylKerVec, inner_weylKerVec_zero_zero u hu] + have h2 : ‖weylVec u 0‖ ^ 2 = 1 := by + have h' := inner_self_eq_norm_sq (𝕜 := ℂ) (weylVec u 0) + rw [h] at h' + simpa using h'.symm + rw [← Real.sqrt_sq (norm_nonneg (weylVec u 0)), h2, Real.sqrt_one] + +/-- Vacuum expectation values: `⟪Ω, W(F) Ω⟫ = exp(-‖uF‖²/2)`. -/ +theorem weyl_vacuum [AddGroup X] (hu : ∀ F G, u (F + G) = u F + u G) (F : X) : + ⟪weylVec u 0, weylCLM u hu F (weylVec u 0)⟫_ℂ = + ((Real.exp (-(‖u F‖ ^ 2 / 2)) : ℝ) : ℂ) := by + rw [weylCLM_apply, weylOp_weylVec_zero u hu, inner_weylVec_zero_left u hu] + +/-- In the pre-Hilbert space, `δ_(G,v) a` acts like `(v a) δ_(G,1)` on the left. -/ +theorem inner_H₀_single_left (G : X) (v a : ℂ) (f : RKHS.H₀ (weylRKHSKernel u)) : + @inner ℂ (RKHS.H₀ (weylRKHSKernel u)) _ (Finsupp.single (G, v) a) f = + conj (v * a) * @inner ℂ (RKHS.H₀ (weylRKHSKernel u)) _ (Finsupp.single (G, 1) 1) f := by + induction f using Finsupp.induction_linear with + | zero => simp only [inner_zero_right, mul_zero] + | add f g hf hg => rw [inner_add_right, inner_add_right, hf, hg, mul_add] + | single p b => + obtain ⟨y, w⟩ := p + rw [inner_H₀_single, inner_H₀_single] + simp only [map_mul, map_one] + ring + +/-- In the Weyl space, `[δ_(G,v) a] = (v a) e_G`. -/ +theorem coe_single_eq_smul_weylVec (G : X) (v a : ℂ) : + ((Finsupp.single (G, v) a : RKHS.H₀ (weylRKHSKernel u)) : WeylSpace u) = + (v * a) • weylVec u G := by + refine (UniformSpace.Completion.denseRange_coe + (α := RKHS.H₀ (weylRKHSKernel u))).eq_of_inner_left ℂ fun f => ?_ + rw [weylVec_def, inner_smul_left, + UniformSpace.Completion.inner_coe (𝕜 := ℂ) (E := RKHS.H₀ (weylRKHSKernel u)), + UniformSpace.Completion.inner_coe (𝕜 := ℂ) (E := RKHS.H₀ (weylRKHSKernel u))] + exact inner_H₀_single_left u G v a f + +theorem coe_mem_span_weylVec (f : RKHS.H₀ (weylRKHSKernel u)) : + (f : WeylSpace u) ∈ Submodule.span ℂ (Set.range (weylVec u)) := by + induction f using Finsupp.induction_linear with + | zero => exact zero_mem _ + | add f g hf hg => + rw [UniformSpace.Completion.coe_add] + exact add_mem hf hg + | single p a => + obtain ⟨G, v⟩ := p + rw [coe_single_eq_smul_weylVec] + exact Submodule.smul_mem _ _ (Submodule.subset_span ⟨G, rfl⟩) + +/-- The point masses span a dense subspace of the Weyl space. -/ +theorem weylVec_dense : + (Submodule.span ℂ (Set.range (weylVec u))).topologicalClosure = ⊤ := by + refine Submodule.dense_iff_topologicalClosure_eq_top.mp ?_ + refine Dense.mono ?_ UniformSpace.Completion.denseRange_coe + rintro _ ⟨f, rfl⟩ + exact coe_mem_span_weylVec u f + +/-- The vacuum is cyclic for the Weyl operators. -/ +theorem weyl_cyclic [AddGroup X] (hu : ∀ F G, u (F + G) = u F + u G) : + (Submodule.span ℂ (Set.range fun F => weylCLM u hu F (weylVec u 0))).topologicalClosure = + ⊤ := by + have h : (fun F => weylCLM u hu F (weylVec u 0)) = weylVec u := by + funext F + rw [weylCLM_apply, weylOp_weylVec_zero u hu] + rw [h] + exact weylVec_dense u + +end Kernel + +/-- **Existence of a Weyl system with a Gaussian vacuum.** For every additive map `u : X → K` +into a complex inner product space there are a Hilbert space `H`, unitary operators `W F` +satisfying the Weyl relations `W F * W G = exp(-i Im⟪uF, uG⟫) W (F + G)`, and a cyclic unit +vector `Ω` with `⟪Ω, W F Ω⟫ = exp(-‖uF‖²/2)`. -/ +theorem exists_weyl_system {X K : Type} [AddCommGroup X] [NormedAddCommGroup K] + [InnerProductSpace ℂ K] (u : X → K) (hu : ∀ F G, u (F + G) = u F + u G) : + ∃ (H : Type) (_ : NormedAddCommGroup H) (_ : InnerProductSpace ℂ H) (_ : CompleteSpace H) + (W : X → (H →L[ℂ] H)) (Ω : H), + (∀ F, W F ∈ unitary (H →L[ℂ] H)) ∧ + (∀ F G, W F * W G = Complex.exp (-(Complex.I * ((⟪u F, u G⟫_ℂ).im : ℂ))) • W (F + G)) ∧ + ‖Ω‖ = 1 ∧ + (∀ F, ⟪Ω, W F Ω⟫_ℂ = ((Real.exp (-(‖u F‖ ^ 2 / 2)) : ℝ) : ℂ)) ∧ + (Submodule.span ℂ (Set.range fun F => W F Ω)).topologicalClosure = ⊤ := + ⟨WeylSpace u, inferInstance, inferInstance, inferInstance, weylCLM u hu, weylVec u 0, + weylCLM_mem_unitary u hu, weylCLM_mul u hu, norm_weylVec_zero u hu, weyl_vacuum u hu, + weyl_cyclic u hu⟩ + +end VacuumBellSeparation diff --git a/LeanPool/VacuumBellSeparation/Weyl/StrongContinuity.lean b/LeanPool/VacuumBellSeparation/Weyl/StrongContinuity.lean new file mode 100644 index 0000000000..7f6171b0ab --- /dev/null +++ b/LeanPool/VacuumBellSeparation/Weyl/StrongContinuity.lean @@ -0,0 +1,116 @@ +/- +Copyright (c) 2026 Physical Superintelligence PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: David Turturean +-/ +-- Adapted by Lean Pool for its pinned Lean and Mathlib versions. +module + +public import LeanPool.VacuumBellSeparation.Weyl.Existence + +/-! +# Strong continuity in the one-particle norm + +For the actual Gaussian-kernel construction, convergence of the labels in +one-particle norm implies strong convergence of the Weyl operators. The label +space itself need not have a topology. The proof first treats the Gaussian +vectors, then their linear span, and finally its closure using the common +isometry bound. +-/ + +@[expose] public section + +namespace VacuumBellSeparation + +open Filter Topology +open scoped InnerProductSpace + +variable {X K : Type*} [NormedAddCommGroup K] [InnerProductSpace ℂ K] + +theorem tendsto_weylKernel (u : X → K) {α : Type*} {l : Filter α} + {F G : α → X} {F₀ G₀ : X} + (hF : Tendsto (fun i => u (F i)) l (𝓝 (u F₀))) + (hG : Tendsto (fun i => u (G i)) l (𝓝 (u G₀))) : + Tendsto (fun i => weylKernel u (F i) (G i)) l (𝓝 (weylKernel u F₀ G₀)) := by + have hc : Continuous (fun p : K × K => weylKernel id p.1 p.2) := by + unfold weylKernel + dsimp only [id_eq] + exact Complex.continuous_exp.comp + ((Complex.continuous_ofReal.comp + (((continuous_fst.norm.pow 2).neg.div_const 2).sub + ((continuous_snd.norm.pow 2).div_const 2))).add + (continuous_fst.inner continuous_snd)) + have hp : Tendsto (fun i => (u (F i), u (G i))) l (𝓝 (u F₀, u G₀)) := + hF.prodMk_nhds hG + simpa only [Function.comp_def, weylKernel, id_eq] using + (hc.continuousAt (x := (u F₀, u G₀))).tendsto.comp hp + +/-- Actual convergence of the kernel vectors, proved from their Gram formula. -/ +theorem tendsto_weylVec (u : X → K) {α : Type*} {l : Filter α} + {F : α → X} {F₀ : X} + (hF : Tendsto (fun i => u (F i)) l (𝓝 (u F₀))) : + Tendsto (fun i => weylVec u (F i)) l (𝓝 (weylVec u F₀)) := by + have ht := ((tendsto_weylKernel u hF hF).sub + (tendsto_weylKernel u (F := fun _ => F₀) (F₀ := F₀) tendsto_const_nhds hF)).sub + ((tendsto_weylKernel u (G := fun _ => F₀) (G₀ := F₀) hF tendsto_const_nhds).sub + (tendsto_const_nhds (x := weylKernel u F₀ F₀))) + have hs := Real.continuous_sqrt.continuousAt.tendsto.comp + (Complex.continuous_re.continuousAt.tendsto.comp ht) + rw [tendsto_iff_norm_sub_tendsto_zero] + simpa only [norm_eq_sqrt_re_inner (𝕜 := ℂ), inner_sub_left, inner_sub_right, + inner_weylVec, Function.comp_def, RCLike.re_to_complex, sub_self, Complex.zero_re, + Real.sqrt_zero] + using hs + +theorem tendsto_weylPhase (u : X → K) {α : Type*} {l : Filter α} + {F : α → X} {F₀ : X} (G : X) + (hF : Tendsto (fun i => u (F i)) l (𝓝 (u F₀))) : + Tendsto (fun i => weylPhase u (F i) G) l (𝓝 (weylPhase u F₀ G)) := by + have hc : Continuous (fun x : K => + Complex.exp (-(Complex.I * ((⟪x, u G⟫_ℂ).im : ℂ)))) := by fun_prop + exact hc.continuousAt.tendsto.comp hF + +/-- Strong convergence on every vector follows from actual one-particle norm +convergence, with no density or continuity assumption added to the statement. -/ +theorem tendsto_weylOp [AddGroup X] (u : X → K) + (hu : ∀ F G, u (F + G) = u F + u G) + {α : Type*} {l : Filter α} {F : α → X} {F₀ : X} + (hF : Tendsto (fun i => u (F i)) l (𝓝 (u F₀))) (x : WeylSpace u) : + Tendsto (fun i => weylOp u hu (F i) x) l (𝓝 (weylOp u hu F₀ x)) := by + have hequi : Equicontinuous (fun (i : α) (x : WeylSpace u) => weylOp u hu (F i) x) := + Metric.equicontinuous_of_continuity_modulus id tendsto_id _ + (fun x y i => ((weylOp u hu (F i)).isometry.dist_eq x y).le) + have hclosed := hequi.isClosed_setOfPred_tendsto (l := l) (weylOp u hu F₀).continuous + have hd : Dense (Submodule.span ℂ (Set.range (weylVec u)) : Set (WeylSpace u)) := + Submodule.dense_iff_topologicalClosure_eq_top.mpr (weylVec_dense u) + refine hd.induction (P := fun y => + Tendsto (fun i => weylOp u hu (F i) y) l (𝓝 (weylOp u hu F₀ y))) ?_ hclosed x + intro y hy + induction hy using Submodule.span_induction with + | mem y hy => + obtain ⟨G, rfl⟩ := hy + have hFG : Tendsto (fun i => u (F i + G)) l (𝓝 (u (F₀ + G))) := by + simpa only [hu] using hF.add (tendsto_const_nhds (x := u G)) + simpa only [weylOp_weylVec] using + (tendsto_weylPhase u G hF).smul (tendsto_weylVec u hFG) + | zero => simpa only [map_zero] using (tendsto_const_nhds (x := (0 : WeylSpace u))) + | add y z hy hz ihy ihz => simpa only [map_add] using ihy.add ihz + | smul c y hy ih => simpa only [map_smul] using + (tendsto_const_nhds (x := c)).smul ih + +theorem tendsto_weylCLM_strong [AddGroup X] (u : X → K) + (hu : ∀ F G, u (F + G) = u F + u G) + {α : Type*} {l : Filter α} {F : α → X} {F₀ : X} + (hF : Tendsto (fun i => u (F i)) l (𝓝 (u F₀))) (x : WeylSpace u) : + Tendsto (fun i => weylCLM u hu (F i) x) l (𝓝 (weylCLM u hu F₀ x)) := + tendsto_weylOp u hu hF x + +/-- In particular, the full one-particle Weyl representation is strongly +continuous in its Hilbert-space label. -/ +theorem continuous_weylCLM_id_apply (x : WeylSpace (id : K → K)) : + Continuous (fun z : K => weylCLM id (fun _ _ => rfl) z x) := by + rw [continuous_iff_continuousAt] + intro z + exact tendsto_weylCLM_strong id (fun _ _ => rfl) tendsto_id x + +end VacuumBellSeparation diff --git a/LeanPool/projects/vacuum-bell-separation.yaml b/LeanPool/projects/vacuum-bell-separation.yaml new file mode 100644 index 0000000000..a4997a377d --- /dev/null +++ b/LeanPool/projects/vacuum-bell-separation.yaml @@ -0,0 +1,73 @@ +slug: vacuum-bell-separation +title: Vacuum Bell correlation at large spacelike separation +summary: >- + For the massive real free scalar field in 3+1 dimensions, the vacuum Bell + correlation of two fixed bounded regions equals the classical bound once + one region is translated sufficiently far along a fixed spacelike vector. + For equal-radius double cones separated along the first spatial axis at + the same time, one separation-to-radius threshold works for every positive + mass. The development includes Weyl systems, local von Neumann algebras, + a construction of the free-field vacuum, and a proof that the algebra of + a nonempty open region is noncommutative. +branch: mathematical physics +entry_module: LeanPool.VacuumBellSeparation +authors: +- David Turturean +source: + title: The vacuum Bell correlation of the massive free scalar field attains the classical bound for bounded regions beyond a finite separation + url: https://github.com/physical-superintelligence/oqp-batch-2026/tree/7049357c42a8fe85262da08fdc10d57b4d9e67a0/oqp12-vacuum-bell-correlations + github_repo: physical-superintelligence/oqp-batch-2026 + commit: 7049357c42a8fe85262da08fdc10d57b4d9e67a0 + announcement_url: https://psi.inc/research/oqp-batch-2026/ + announcement_date: '2026-10-23' +license: Apache-2.0 +status: verified +provenance: AI +provenance_evidence: >- + Physical Superintelligence PBC directed the AI agents that wrote the Lean + formalization and holds copyright in the source. The upstream NOTICE + credits Claude Opus 5.5 and GPT-6-Astra for the Lean development and David + Turturean for responsibility for the paper. +main_declarations: +- VacuumBellSeparation.OQP12.theorem_1_1 +- VacuumBellSeparation.OQP12.corollary_1_2 +- VacuumBellSeparation.OQP12.no_chsh_violation_far_apart +- VacuumBellSeparation.OQP12.no_chsh_violation_far_apart_uniform +- VacuumBellSeparation.OQP12.freeFieldVacuum_exists +- VacuumBellSeparation.OQP12.localAlgebra_open_nonabelian +main_results: +- declaration: VacuumBellSeparation.OQP12.theorem_1_1 + informal: >- + One constant greater than two suffices for every positive mass. For + equal-radius double cones with simultaneous centers at the origin and + on the first spatial axis, the normalized vacuum CHSH supremum is one + once their spatial distance reaches that constant times their radius. +- declaration: VacuumBellSeparation.OQP12.corollary_1_2 + informal: >- + For two bounded regions and a fixed spacelike vector, the normalized + supremum equals one beyond a translation threshold. +- declaration: VacuumBellSeparation.OQP12.no_chsh_violation_far_apart + informal: >- + Beyond that threshold the unnormalized CHSH expression for any four + local self-adjoint contractions has absolute value at most two. +- declaration: VacuumBellSeparation.OQP12.no_chsh_violation_far_apart_uniform + informal: >- + A single threshold suffices uniformly over all spatial translation + directions for a given pair of bounded regions and positive mass. +- declaration: VacuumBellSeparation.OQP12.freeFieldVacuum_exists + informal: >- + For every positive mass there exists a complex Hilbert space carrying a + free-field vacuum Weyl system. +- declaration: VacuumBellSeparation.OQP12.localAlgebra_open_nonabelian + informal: >- + The local von Neumann algebra of every nonempty open spacetime region + contains two noncommuting operators. +tags: +- quantum-field-theory +- bell-inequalities +- operator-algebras +- free-scalar-field +msc: +- 81T05 +- 81P40 +- 46L60