Exact Lean source
UniversalLeastNoiseQuantumKernel
formalization/Cloning/UniversalLeastNoiseQuantumKernel.lean
Source hash: 19e1665ba303f22939a779bbc45d50dd866a93a4abc39765f0b14b35d5168113
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.UniversalLeastNoiseKernel
2import Cloning.WeylQuantumPositiveBounds
3
4/-! The quantum-positive Weyl kernel is a normalized positive kernel on the
5actual phase space. Finite positivity is transported from numbered tests to
6arbitrary finite subsets without any representation theorem. -/
7
8noncomputable section
9open scoped ComplexOrder InnerProductSpace BigOperators
10
11namespace Cloning.MultimodeCoherent
12set_option backward.isDefEq.respectTransparency false
13set_option maxHeartbeats 800000
14
15variable {d : ℕ} {f : (Fin d → ℂ) → ℂ} {r : ℝ}
16
17/-- Numbered quantum positivity tests also cover every finite index type. -/
18theorem IsQuantumPositive.finite_test (hf : IsQuantumPositive f r)
19 {ι : Type*} [Fintype ι] (b : ι → (Fin d → ℂ)) (c : ι → ℂ) :
20 0 ≤ ∑ i, ∑ j, star (c i) * c j * quantumPositiveKernel f r (b i) (b j) := by
21 let e := (Fintype.equivFin ι).symm
22 have h := hf (Fintype.card ι) (fun i => b (e i)) (fun i => c (e i))
23 have hsum : (∑ i : Fin (Fintype.card ι), ∑ j : Fin (Fintype.card ι),
24 star (c (e i)) * c (e j) * quantumPositiveKernel f r (b (e i)) (b (e j))) =
25 ∑ i : ι, ∑ j : ι, star (c i) * c j * quantumPositiveKernel f r (b i) (b j) := by
26 calc
27 _ = ∑ i : Fin (Fintype.card ι), ∑ j : ι,
28 star (c (e i)) * c j * quantumPositiveKernel f r (b (e i)) (b j) := by
29 apply Finset.sum_congr rfl
30 intro i _
31 exact e.sum_comp (fun j => star (c (e i)) * c j *
32 quantumPositiveKernel f r (b (e i)) (b j))
33 _ = _ := e.sum_comp (fun i => ∑ j : ι,
34 star (c i) * c j * quantumPositiveKernel f r (b i) (b j))
35 rwa [hsum] at h
36
37/-- The scalar Weyl kernel has exactly the normalization, symmetry, and
38finite-subset positivity needed by the Hilbert-space kernel construction. -/
39theorem IsQuantumPositive.normalizedPositiveKernel
40 (hf : IsQuantumPositive f r) (hf0 : f 0 = 1) :
41 Cloning.PositiveKernel.IsNormalizedPositive (quantumPositiveKernel f r) := by
42 classical
43 refine ⟨?_, ?_, ?_⟩
44 · intro x y
45 change (starRingEnd ℂ) (quantumPositiveKernel f r y x) = _
46 simp only [quantumPositiveKernel, map_mul, map_div₀,
47 ← displacementPhase_neg_swap, neg_neg]
48 rw [starRingEnd_apply, ← hf.conj_symm hf0]
49 congr 2
50 abel
51 · intro x
52 simp [quantumPositiveKernel, hf0]
53 · intro s c
54 have h := hf.finite_test (fun x : s => (x : Fin d → ℂ)) (fun x : s => c x)
55 have hreal := (Complex.nonneg_iff.mp h).1
56 have hsum : (∑ i : s, ∑ j : s, star (c i) * c j *
57 quantumPositiveKernel f r i j) =
58 ∑ x ∈ s, ∑ y ∈ s, star (c x) * c y * quantumPositiveKernel f r x y := by
59 calc
60 _ = ∑ i : s, ∑ y ∈ s, star (c i) * c y * quantumPositiveKernel f r i y := by
61 apply Finset.sum_congr rfl
62 intro i _
63 exact Finset.sum_coe_sort s (fun y =>
64 star (c i) * c y * quantumPositiveKernel f r i y)
65 _ = _ := Finset.sum_coe_sort s (fun x =>
66 ∑ y ∈ s, star (c x) * c y * quantumPositiveKernel f r x y)
67 rwa [hsum] at hreal
68
69end Cloning.MultimodeCoherent