Offline · exact source
Exact Lean source

WeylSqueezerProduct

formalization/Cloning/WeylSqueezerProduct.lean

Source hash: f2103cfb37c38a7273aa1c2ca4ad9c0bbb1993883fffa0934d25c124481926af

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.WeylMultimodeDisplacement
2import Cloning.MultimodeIdler
3 
4/-! Actual tensor products and occupation reindexing of multimode Fock
5vectors. No factorization or tensor-product isometry is assumed. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace ComplexOrder Topology ENNReal
8namespace Cloning.WeylSqueezerProduct
9open Cloning.MultimodeCoherent
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1000000
12abbrev Occupation (d : ℕ) := Fin d → ℕ
13abbrev JointFock (a b : ℕ) := lp (fun _ : Occupation a × Occupation b => ℂ) 2
14variable {a b : ℕ}
15 
16def occupationSplit (a b : ℕ) : Occupation (a+b) ≃ Occupation a × Occupation b where
17  toFun k := (fun i => k (Fin.castAdd b i), fun j => k (Fin.natAdd a j))
18  invFun p := Fin.append p.1 p.2
19  left_inv k := Fin.append_castAdd_natAdd
20  right_inv p := by ext <;> simp
21 
22def jointNumberBasis (a b : ℕ) : HilbertBasis (Occupation a × Occupation b) ℂ (JointFock a b) :=
23  HilbertBasis.ofRepr (LinearIsometryEquiv.refl ℂ (JointFock a b))
24 
25@[simp] theorem jointNumberBasis_apply (p : Occupation a × Occupation b) :
26    jointNumberBasis a b p=lp.single 2 p 1 := (jointNumberBasis a b |>.repr_symm_single p).symm
27 
28def splitNumberBasis (a b : ℕ) : HilbertBasis (Occupation (a+b)) ℂ (JointFock a b) :=
29  HilbertBasis.mk ((jointNumberBasis a b).orthonormal.comp (occupationSplit a b)
30    (occupationSplit a b).injective) (by
31      simp only [Function.comp_def]
32      rw [show Set.range (fun k => jointNumberBasis a b (occupationSplit a b k)) =
33          Set.range (jointNumberBasis a b) from
34        (occupationSplit a b).surjective.range_comp (jointNumberBasis a b)]
35      exact (jointNumberBasis a b).dense_span.ge)
36 
37/-- The exact unitary between paired occupations and appended mode lists. -/
38def jointReindex (a b : ℕ) : JointFock a b ≃ₗᵢ[ℂ] Fock (a+b) := (splitNumberBasis a b).repr
39 
40@[simp] theorem jointReindex_apply (x : JointFock a b) (k : Occupation (a+b)) :
41    jointReindex a b x k=x (occupationSplit a b k) := by
42  rw [jointReindex, HilbertBasis.repr_apply_apply]
43  change ⟪splitNumberBasis a b k,x⟫_ℂ=_
44  rw [splitNumberBasis, HilbertBasis.coe_mk]
45  simp only [Function.comp_apply, jointNumberBasis_apply, lp.inner_single_left,
46    RCLike.inner_apply, map_one, mul_one]
47 
48@[simp] theorem jointReindex_symm_apply (x : Fock (a+b)) (p : Occupation a × Occupation b) :
49    (jointReindex a b).symm x p=x (Fin.append p.1 p.2) := by
50  have h := jointReindex_apply ((jointReindex a b).symm x) (Fin.append p.1 p.2)
51  simpa only [LinearIsometryEquiv.apply_symm_apply, occupationSplit, Equiv.coe_fn_mk,
52    Fin.append_left, Fin.append_right] using h.symm
53 
54theorem product_norm_sq_hasSum (x : Fock a) (y : Fock b) :
55    HasSum (fun p : Occupation a × Occupation b => ‖x p.1*y p.2‖^(2:ℕ))
56      (‖x‖^2*‖y‖^2) := by
57  have hx : HasSum (fun k => ‖x k‖^(2:ℕ)) (‖x‖^2) := by
58    simpa only [ENNReal.toReal_ofNat,Real.rpow_two] using
59      lp.hasSum_norm (by norm_num : 0<(2:ℝ≥0∞).toReal) x
60  have hy : HasSum (fun k => ‖y k‖^(2:ℕ)) (‖y‖^2) := by
61    simpa only [ENNReal.toReal_ofNat,Real.rpow_two] using
62      lp.hasSum_norm (by norm_num : 0<(2:ℝ≥0∞).toReal) y
63  simpa only [norm_mul,mul_pow] using hx.mul hy
64    (summable_mul_of_summable_norm hx.summable.norm hy.summable.norm)
65 
66/-- Literal coefficient product in the paired occupation Hilbert space. -/
67def jointTensor (x : Fock a) (y : Fock b) : JointFock a b := by
68  refine ⟨fun p => x p.1*y p.2,memℓp_gen ?_⟩
69  simpa only [ENNReal.toReal_ofNat,Real.rpow_two] using (product_norm_sq_hasSum x y).summable
70 
71@[simp] theorem jointTensor_apply (x : Fock a) (y : Fock b) (p : Occupation a × Occupation b) :
72    jointTensor x y p=x p.1*y p.2 := rfl
73 
74theorem jointTensor_norm (x : Fock a) (y : Fock b) : ‖jointTensor x y‖=‖x‖*‖y‖ := by
75  have h : ‖jointTensor x y‖^2=(‖x‖*‖y‖)^2 := by
76    calc
77      _ = ∑' p : Occupation a × Occupation b, ‖x p.1*y p.2‖^(2:ℕ) := by
78        simpa only [ENNReal.toReal_ofNat,Real.rpow_two,jointTensor_apply] using
79          lp.norm_rpow_eq_tsum (by norm_num : 0<(2:ℝ≥0∞).toReal) (jointTensor x y)
80      _ = ‖x‖^2*‖y‖^2 := (product_norm_sq_hasSum x y).tsum_eq
81      _ = _ := (mul_pow _ _ _).symm
82  nlinarith [norm_nonneg (jointTensor x y),mul_nonneg (norm_nonneg x) (norm_nonneg y)]
83 
84theorem jointTensor_inner (x x' : Fock a) (y y' : Fock b) :
85    ⟪jointTensor x y,jointTensor x' y'⟫_ℂ=⟪x,x'⟫_ℂ*⟪y,y'⟫_ℂ := by
86  have he (p : Occupation a × Occupation b) :
87      ⟪jointTensor x y p,jointTensor x' y' p⟫_ℂ=⟪x p.1,x' p.1⟫_ℂ*⟪y p.2,y' p.2⟫_ℂ := by
88    simp only [jointTensor_apply,RCLike.inner_apply,map_mul]
89    ring
90  have hfull : HasSum (fun p : Occupation a × Occupation b =>
91      ⟪x p.1,x' p.1⟫_ℂ*⟪y p.2,y' p.2⟫_ℂ) ⟪jointTensor x y,jointTensor x' y'⟫_ℂ := by
92    simpa only [he] using lp.hasSum_inner (𝕜 := ℂ) (jointTensor x y) (jointTensor x' y')
93  have hout : HasSum (fun i => ⟪x i,x' i⟫_ℂ*⟪y,y'⟫_ℂ)
94      ⟪jointTensor x y,jointTensor x' y'⟫_ℂ :=
95    hfull.prod_fiberwise (fun i => (lp.hasSum_inner (𝕜 := ℂ) y y').mul_left ⟪x i,x' i⟫_ℂ)
96  exact hout.unique ((lp.hasSum_inner (𝕜 := ℂ) x x').mul_right ⟪y,y'⟫_ℂ)
97 
98def jointTensorRight (y : Fock b) : Fock a →L[ℂ] JointFock a b :=
99  LinearMap.mkContinuous
100    { toFun := fun x => jointTensor x y
101      map_add' := by intro x x'; ext p; simp [add_mul]
102      map_smul' := by intro c x; ext p; simp [mul_assoc] }
103    ‖y‖ (fun x => by change ‖jointTensor x y‖ ≤ _; rw [jointTensor_norm,mul_comm])
104 
105def jointTensorLeft (x : Fock a) : Fock b →L[ℂ] JointFock a b :=
106  LinearMap.mkContinuous
107    { toFun := jointTensor x
108      map_add' := by intro y y'; ext p; simp [mul_add]
109      map_smul' := by intro c y; ext p; simp [mul_left_comm] }
110    ‖x‖ (fun y => by change ‖jointTensor x y‖ ≤ _; rw [jointTensor_norm])
111 
112/-- The literal product vector in the appended physical mode register. -/
113def tensorVector (x : Fock a) (y : Fock b) : Fock (a+b) := jointReindex a b (jointTensor x y)
114 
115@[simp] theorem tensorVector_apply (x : Fock a) (y : Fock b) (k : Occupation (a+b)) :
116    tensorVector x y k=x (fun i => k (Fin.castAdd b i))*y (fun j => k (Fin.natAdd a j)) := by
117  rw [tensorVector,jointReindex_apply,jointTensor_apply]
118  rfl
119 
120theorem tensorVector_norm (x : Fock a) (y : Fock b) : ‖tensorVector x y‖=‖x‖*‖y‖ := by
121  rw [tensorVector,(jointReindex a b).norm_map,jointTensor_norm]
122 
123theorem tensorVector_inner (x x' : Fock a) (y y' : Fock b) :
124    ⟪tensorVector x y,tensorVector x' y'⟫_ℂ=⟪x,x'⟫_ℂ*⟪y,y'⟫_ℂ := by
125  rw [tensorVector,tensorVector,(jointReindex a b).inner_map_map,jointTensor_inner]
126 
127def tensorRight (y : Fock b) : Fock a →L[ℂ] Fock (a+b) :=
128  (jointReindex a b).toLinearIsometry.toContinuousLinearMap.comp (jointTensorRight y)
129 
130def tensorLeft (x : Fock a) : Fock b →L[ℂ] Fock (a+b) :=
131  (jointReindex a b).toLinearIsometry.toContinuousLinearMap.comp (jointTensorLeft x)
132 
133@[simp] theorem tensorRight_apply (y : Fock b) (x : Fock a) : tensorRight y x=tensorVector x y := rfl
134@[simp] theorem tensorLeft_apply (x : Fock a) (y : Fock b) : tensorLeft x y=tensorVector x y := rfl
135 
136end Cloning.WeylSqueezerProduct