Offline · exact source
Exact Lean source

WeylSqueezerPhase

formalization/Cloning/WeylSqueezerPhase.lean

Source hash: 56356d5cab2ec01035e8da28e940e9e636def8bbdabcf743592bc972d42e4638

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.WeylGNSRegular
2import Mathlib.Algebra.BigOperators.Fin
3 
4/-! The actual real-linear symplectic Bogoliubov transformation on the doubled
5signal/idler phase space. All modes may have different gains. -/
6noncomputable section
7open scoped BigOperators Topology
8namespace Cloning.WeylSqueezer
9open Cloning.MultimodeCoherent Cloning.WeylGNS
10set_option backward.isDefEq.respectTransparency true
11set_option maxHeartbeats 250000
12variable {d : ℕ}
13 
14/-- The first and second blocks are the signal and idler amplitudes. -/
15def transform (c s : Fin d → ℝ) (z : Fin (d+d) → ℂ) : Fin (d+d) → ℂ :=
16  Fin.append (fun i => (c i : ℂ)*z (Fin.castAdd d i)+(s i : ℂ)*(starRingEnd ℂ) (z (Fin.natAdd d i)))
17    (fun i => (c i : ℂ)*z (Fin.natAdd d i)+(s i : ℂ)*(starRingEnd ℂ) (z (Fin.castAdd d i)))
18 
19@[simp] theorem transform_left (c s : Fin d → ℝ) (z : Fin (d+d) → ℂ) (i : Fin d) :
20    transform c s z (Fin.castAdd d i)=
21      (c i : ℂ)*z (Fin.castAdd d i)+(s i : ℂ)*(starRingEnd ℂ) (z (Fin.natAdd d i)) := by
22  simp only [transform, Fin.append_left, Fin.append_right]
23 
24@[simp] theorem transform_right (c s : Fin d → ℝ) (z : Fin (d+d) → ℂ) (i : Fin d) :
25    transform c s z (Fin.natAdd d i)=
26      (c i : ℂ)*z (Fin.natAdd d i)+(s i : ℂ)*(starRingEnd ℂ) (z (Fin.castAdd d i)) := by
27  simp only [transform, Fin.append_left, Fin.append_right]
28 
29@[simp] theorem transform_zero (c s : Fin d → ℝ) : transform c s 0=0 := by
30  ext i
31  refine Fin.addCases ?_ ?_ i <;> intro j <;>
32    simp only [transform_left, transform_right, Pi.zero_apply, map_zero, mul_zero, add_zero]
33 
34@[simp] theorem transform_add (c s : Fin d → ℝ) (a b : Fin (d+d) → ℂ) :
35    transform c s (a+b)=transform c s a+transform c s b := by
36  ext i
37  refine Fin.addCases ?_ ?_ i <;> intro j <;>
38    simp only [transform_left, transform_right, Pi.add_apply, map_add] <;> ring
39 
40@[simp] theorem transform_smul (c s : Fin d → ℝ) (t : ℝ) (a : Fin (d+d) → ℂ) :
41    transform c s (t • a)=t • transform c s a := by
42  ext i
43  refine Fin.addCases ?_ ?_ i <;> intro j <;>
44    simp only [transform_left, transform_right, Pi.smul_apply, Complex.real_smul,
45      map_mul, Complex.conj_ofReal] <;> ring
46 
47theorem continuous_transform (c s : Fin d → ℝ) : Continuous (transform c s) := by
48  apply continuous_pi
49  intro i
50  refine Fin.addCases ?_ ?_ i <;> intro j
51  · simp only [transform_left]
52    fun_prop
53  · simp only [transform_right]
54    fun_prop
55 
56private theorem inverse_pair (c s : ℝ) (hcs : c^2-s^2=1) (a b : ℂ) :
57    (c : ℂ)*((c : ℂ)*a+(s : ℂ)*(starRingEnd ℂ) b)+(-s : ℝ)*(starRingEnd ℂ) ((c : ℂ)*b+(s : ℂ)*(starRingEnd ℂ) a)=a := by
58  have hh : (c : ℂ)^2-(s : ℂ)^2=1 := by exact_mod_cast hcs
59  simp only [map_add, map_mul, Complex.conj_ofReal, starRingEnd_self_apply, Complex.ofReal_neg]
60  linear_combination a*hh
61 
62theorem transform_inverse (c s : Fin d → ℝ) (hcs : ∀i,c i^2-s i^2=1)
63    (z : Fin (d+d) → ℂ) : transform c (-s) (transform c s z)=z := by
64  ext i
65  refine Fin.addCases ?_ ?_ i <;> intro j <;>
66    simp only [transform_left, transform_right, Pi.neg_apply]
67  · exact inverse_pair (c j) (s j) (hcs j) _ _
68  · exact inverse_pair (c j) (s j) (hcs j) _ _
69 
70theorem transform_append (c s : Fin d → ℝ) (a b : Fin d → ℂ) :
71    transform c s (Fin.append a b)=
72      Fin.append (fun i => (c i : ℂ)*a i+(s i : ℂ)*(starRingEnd ℂ) (b i))
73        (fun i => (c i : ℂ)*b i+(s i : ℂ)*(starRingEnd ℂ) (a i)) := by
74  ext i
75  refine Fin.addCases ?_ ?_ i <;> intro j <;>
76    simp only [transform_left, transform_right, Fin.append_left, Fin.append_right]
77 
78theorem transform_signal (c s : Fin d → ℝ) (a : Fin d → ℂ) :
79    transform c s (Fin.append a 0)=
80      Fin.append (fun i => (c i : ℂ)*a i)
81        (fun i => (s i : ℂ)*(starRingEnd ℂ) (a i)) := by
82  rw [transform_append]
83  simp only [Pi.zero_apply, map_zero, mul_zero, add_zero, zero_add]
84 
85/-- A genuine real-linear automorphism, with inverse obtained by reversing the
86squeezing sign. -/
87def phaseEquiv (c s : Fin d → ℝ) (hcs : ∀i,c i^2-s i^2=1) :
88    (Fin (d+d) → ℂ) ≃L[ℝ] (Fin (d+d) → ℂ) where
89  toFun := transform c s
90  invFun := transform c (-s)
91  left_inv := transform_inverse c s hcs
92  right_inv := by
93    intro z
94    have hh : ∀i,c i^2-(-s i)^2=1 := by simpa using hcs
95    simpa only [neg_neg] using transform_inverse c (-s) hh z
96  map_add' := transform_add c s
97  map_smul' := transform_smul c s
98  continuous_toFun := continuous_transform c s
99  continuous_invFun := continuous_transform c (-s)
100 
101private theorem phase_pair (c s : ℝ) (hcs : c^2-s^2=1) (a b u v : ℂ) :
102    ComplexCoherent.displacementPhase ((c : ℂ)*a+(s : ℂ)*(starRingEnd ℂ) b)
103        ((c : ℂ)*u+(s : ℂ)*(starRingEnd ℂ) v)*
104      ComplexCoherent.displacementPhase ((c : ℂ)*b+(s : ℂ)*(starRingEnd ℂ) a)
105        ((c : ℂ)*v+(s : ℂ)*(starRingEnd ℂ) u)=
106      ComplexCoherent.displacementPhase a u*ComplexCoherent.displacementPhase b v := by
107  have hh : (c : ℂ)^2-(s : ℂ)^2=1 := by exact_mod_cast hcs
108  unfold ComplexCoherent.displacementPhase
109  rw [← Complex.exp_add, ← Complex.exp_add]
110  congr 1
111  simp only [map_add, map_mul, Complex.conj_ofReal, starRingEnd_self_apply]
112  linear_combination ((a*(starRingEnd ℂ) u-(starRingEnd ℂ) a*u+b*(starRingEnd ℂ) v-(starRingEnd ℂ) b*v)/2)*hh
113 
114/-- The Weyl cocycle is exactly preserved, including the complex phase. -/
115theorem displacementPhase_transform (c s : Fin d → ℝ) (hcs : ∀i,c i^2-s i^2=1)
116    (a b : Fin (d+d) → ℂ) :
117    displacementPhase (transform c s a) (transform c s b)=displacementPhase a b := by
118  unfold displacementPhase
119  rw [Fin.prod_univ_add, Fin.prod_univ_add, ← Finset.prod_mul_distrib, ← Finset.prod_mul_distrib]
120  apply Finset.prod_congr rfl
121  intro i _
122  simp only [transform_left, transform_right]
123  exact phase_pair (c i) (s i) (hcs i) _ _ _ _
124 
125/-- The pulled-back action is an actual regular Weyl representation on doubled
126Fock space; its implementing isometry is not assumed. -/
127def regularWeyl (c s : Fin d → ℝ) (hcs : ∀i,c i^2-s i^2=1) :
128    RegularWeyl (d+d) (Fock (d+d)) where
129  toIsometry z := weylUnitary (transform c s z)
130  zero_apply := by intro v; simp
131  mul_apply := by
132    intro a b v
133    have hh := (fockRegularWeyl (d+d)).mul_apply (transform c s a) (transform c s b) v
134    rw [displacementPhase_transform c s hcs, ← transform_add] at hh
135    exact hh
136  continuous_apply := by
137    intro v
138    exact (continuous_displacement v).comp (continuous_transform c s)
139 
140@[simp] theorem regularWeyl_operator (c s : Fin d → ℝ) (hcs : ∀i,c i^2-s i^2=1)
141    (z : Fin (d+d) → ℂ) :
142    (regularWeyl c s hcs).operator z=displacement (transform c s z) := rfl
143 
144/-- Physical modewise gains give the hyperbolic identity required above. -/
145theorem gain_hyperbolic (g : Fin d → ℝ) (hg : ∀i,1≤g i) :
146    ∀i,(Real.sqrt (g i))^2-(Real.sqrt (g i-1))^2=1 := by
147  intro i
148  rw [Real.sq_sqrt (by linarith [hg i]), Real.sq_sqrt (by linarith [hg i])]
149  ring
150 
151end Cloning.WeylSqueezer