Offline · exact source
Exact Lean source

WeylQuantumPositive

formalization/Cloning/WeylQuantumPositive.lean

Source hash: a907025f757c66ae450090b41dacd4c0677ac162f9d4ed5a2993c17e110df07a

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.WeylCovariantMultiplier
2import Cloning.WeylMultimodeChannel
3 
4/-! Complete positivity forces the exact quantum positive-definiteness
5condition on the Weyl multiplier. The proof uses positive Weyl Gram blocks
6and tests their completely positive images on displaced copies of the vacuum.
7The displacement phase is the actual phase of the constructed Fock operators.
8-/
9 
10noncomputable section
11open scoped ComplexOrder InnerProductSpace BigOperators
12 
13namespace Cloning.BoundedOperator
14 
15variable {H K : Type*}
16  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
17  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
18variable {ι : Type*} [Fintype ι]
19 
20/-- Positivity on the finite Hilbert direct sum for bounded operator blocks. -/
21def BlockPositive (A : ι → ι → H →L[ℂ] H) : Prop :=
22  ∀ x : ι → H, 0 ≤ ∑ i, ∑ j, ⟪x i, A i j (x j)⟫_ℂ
23 
24/-- Complete positivity of a bounded-operator map, at every finite ancilla. -/
25def IsCompletelyPositive (Ψ : (H →L[ℂ] H) →ₗ[ℂ] (K →L[ℂ] K)) : Prop :=
26  ∀ n : ℕ, ∀ A : Fin n → Fin n → H →L[ℂ] H,
27    BlockPositive A → BlockPositive (fun i j => Ψ (A i j))
28 
29/-- Operator Gram matrices are positive at arbitrary finite size. -/
30theorem gram_blockPositive (V : ι → H →L[ℂ] K) :
31    BlockPositive (fun i j => (V i).adjoint.comp (V j)) := by
32  intro x
33  have h : (0 : ℂ) ≤ ⟪∑ i, V i (x i), ∑ j, V j (x j)⟫_ℂ := by
34    apply RCLike.nonneg_iff.mpr
35    exact ⟨inner_self_nonneg, inner_self_im _⟩
36  rw [sum_inner] at h
37  simpa only [inner_sum, ContinuousLinearMap.comp_apply,
38    ContinuousLinearMap.adjoint_inner_right] using h
39 
40end Cloning.BoundedOperator
41 
42namespace Cloning.MultimodeCoherent
43 
44set_option backward.isDefEq.respectTransparency false
45set_option maxHeartbeats 800000
46 
47variable {d : ℕ}
48 
49/-- The scalar kernel dictated by the input and output Weyl cocycles. -/
50def quantumPositiveKernel (f : (Fin d → ℂ) → ℂ) (r : ℝ)
51    (a b : Fin d → ℂ) : ℂ :=
52  displacementPhase (-a) b / displacementPhase (-(r • a)) (r • b) * f (b - a)
53 
54/-- Quantum positive-definiteness at the covariance scaling `r`. This tests
55all finite phase-space configurations and all complex scalar coefficients. -/
56def IsQuantumPositive (f : (Fin d → ℂ) → ℂ) (r : ℝ) : Prop :=
57  ∀ n : ℕ, ∀ b : Fin n → (Fin d → ℂ), ∀ c : Fin n → ℂ,
58    0 ≤ ∑ i, ∑ j, star (c i) * c j * quantumPositiveKernel f r (b i) (b j)
59 
60lemma displacement_inner_map_map (a : Fin d → ℂ) (x y : Fock d) :
61    ⟪displacement a x, displacement a y⟫_ℂ = ⟪x, y⟫_ℂ :=
62  (weylUnitary a).inner_map_map x y
63 
64/-- A matrix coefficient that removes the output Weyl Gram factor exactly. -/
65lemma displaced_gram_coefficient (r : ℝ) (a b : Fin d → ℂ) (u : Fock d) :
66    ⟪displacement (-(r • a)) u,
67      displacement (r • (b - a)) (displacement (-(r • b)) u)⟫_ℂ =
68    (displacementPhase (-(r • a)) (r • b))⁻¹ * ⟪u, u⟫_ℂ := by
69  have hsum : -(r • a) + r • b = r • (b - a) := by
70    rw [smul_sub]
71    abel
72  have h := congrArg (fun T : Fock d →L[ℂ] Fock d => T (displacement (-(r • b)) u))
73    (displacement_comp (-(r • a)) (r • b))
74  simp only [ContinuousLinearMap.comp_apply, displacement_cancel_neg,
75    ContinuousLinearMap.smul_apply, hsum] at h
76  have h' := congrArg (fun v : Fock d =>
77    (displacementPhase (-(r • a)) (r • b))⁻¹ • v) h
78  simp only [smul_smul, inv_mul_cancel₀ (displacementPhase_ne_zero _ _), one_smul] at h'
79  rw [← h', inner_smul_right, displacement_inner_map_map]
80 
81/-- Every completely positive Weyl multiplier has the quantum-positive
82kernel determined by the difference between its two Weyl cocycles. -/
83theorem multiplier_isQuantumPositive
84    (Ψ : (Fock d →L[ℂ] Fock d) →ₗ[ℂ] (Fock d →L[ℂ] Fock d))
85    (hCP : Cloning.BoundedOperator.IsCompletelyPositive Ψ)
86    (r : ℝ) (f : (Fin d → ℂ) → ℂ)
87    (hmult : ∀ b, Ψ (displacement b) = f b • displacement (r • b)) :
88    IsQuantumPositive f r := by
89  intro n b c
90  have hgram := Cloning.BoundedOperator.gram_blockPositive (fun i : Fin n => displacement (b i))
91  have h := hCP n _ hgram (fun i => c i •
92    displacement (-(r • b i)) (coherentVector (0 : Fin d → ℂ)))
93  convert h using 1
94  apply Finset.sum_congr rfl
95  intro i _
96  apply Finset.sum_congr rfl
97  intro j _
98  dsimp only
99  rw [displacement_adjoint, displacement_comp]
100  simp only [map_smul, hmult, ContinuousLinearMap.smul_apply, inner_smul_left,
101    inner_smul_right]
102  rw [show -b i + b j = b j - b i by abel, displaced_gram_coefficient]
103  simp only [inner_self_eq_norm_sq_to_K, coherentVector_norm,
104    RCLike.ofReal_eq_complex_ofReal, one_pow,
105    Complex.ofReal_one, mul_one, quantumPositiveKernel, starRingEnd_apply, div_eq_mul_inv]
106  ring
107 
108/-- Complete positivity and covariance yield the quantum-positive multiplier
109without assuming a characteristic-function representation. -/
110theorem covariant_weylMultiplier_isQuantumPositive
111    (Ψ : (Fock d →L[ℂ] Fock d) →ₗ[ℂ] (Fock d →L[ℂ] Fock d))
112    (hCP : Cloning.BoundedOperator.IsCompletelyPositive Ψ) (r : ℝ)
113    (hcov : ∀ (a : Fin d → ℂ) (A : Fock d →L[ℂ] Fock d),
114      ((displacement a).comp (Ψ A)).comp (displacement (-a)) =
115        Ψ (((displacement (r • a)).comp A).comp (displacement (-(r • a))))) :
116    IsQuantumPositive (weylMultiplier Ψ r) r :=
117  multiplier_isQuantumPositive Ψ hCP r _ (covariant_linearMap_weyl_multiplier Ψ r hcov)
118 
119end Cloning.MultimodeCoherent