Offline · exact source
Exact Lean source

WeylMultimodeKernel

formalization/Cloning/WeylMultimodeKernel.lean

Source hash: f553351614ea4d81081aff59103535033397a3e290dafacc5b377b3a078a208a

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.WeylKernel
2import Cloning.MultimodeCoherent
3 
4/-! Exact Weyl phases and coherent kernels for finitely many bosonic modes. -/
5 
6noncomputable section
7open scoped InnerProductSpace Topology BigOperators
8 
9namespace Cloning.MultimodeCoherent
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 800000
12 
13/-- The joint Weyl phase is the product of the individual mode phases. -/
14def displacementPhase {d : ℕ} (a z : Fin d → ℂ) : ℂ :=
15  ∏ i, ComplexCoherent.displacementPhase (a i) (z i)
16 
17/-- The coherent action prescribed by simultaneous displacement of all modes. -/
18def displacedCoherent {d : ℕ} (a z : Fin d → ℂ) : Fock d :=
19  displacementPhase a z • coherentVector (a + z)
20 
21@[simp] theorem displacementPhase_norm {d : ℕ} (a z : Fin d → ℂ) :
22    ‖displacementPhase a z‖ = 1 := by
23  simp only [displacementPhase, norm_prod, ComplexCoherent.displacementPhase_norm,
24    Finset.prod_const_one]
25 
26@[simp] theorem displacementPhase_zero_left {d : ℕ} (z : Fin d → ℂ) :
27    displacementPhase 0 z = 1 := by
28  simp [displacementPhase]
29 
30@[simp] theorem displacementPhase_zero_right {d : ℕ} (a : Fin d → ℂ) :
31    displacementPhase a 0 = 1 := by
32  simp [displacementPhase]
33 
34/-- The full complex coherent kernel is preserved jointly in all modes. -/
35theorem inner_displacedCoherent {d : ℕ} (a z w : Fin d → ℂ) :
36    ⟪displacedCoherent a z, displacedCoherent a w⟫_ℂ =
37      ⟪coherentVector z, coherentVector w⟫_ℂ := by
38  have hsingle (i : Fin d) := ComplexCoherent.inner_displacedCoherent (a i) (z i) (w i)
39  simp only [ComplexCoherent.displacedCoherent, inner_smul_left, inner_smul_right] at hsingle
40  simp only [displacedCoherent, inner_smul_left, inner_smul_right, displacementPhase,
41    coherentVector, inner_tensorVector, map_prod]
42  rw [← Finset.prod_mul_distrib, ← Finset.prod_mul_distrib]
43  apply Finset.prod_congr rfl
44  intro i _
45  exact hsingle i
46 
47/-- The finite-mode Weyl cocycle is inherited from the one-mode cocycles. -/
48theorem displacementPhase_cocycle {d : ℕ} (a b z : Fin d → ℂ) :
49    displacementPhase b z * displacementPhase a (b + z) =
50      displacementPhase a b * displacementPhase (a + b) z := by
51  simp only [displacementPhase, Pi.add_apply, ← Finset.prod_mul_distrib,
52    ComplexCoherent.displacementPhase_cocycle]
53 
54/-- Finite multimode coherent superpositions. -/
55def coherentCombination {d : ℕ} : ((Fin d → ℂ) →₀ ℂ) →ₗ[ℂ] Fock d :=
56  Finsupp.linearCombination ℂ coherentVector
57 
58def displacedCombination {d : ℕ} (a : Fin d → ℂ) :
59    ((Fin d → ℂ) →₀ ℂ) →ₗ[ℂ] Fock d :=
60  Finsupp.linearCombination ℂ (displacedCoherent a)
61 
62/-- The prescribed action preserves inner products of arbitrary finite
63superpositions, so it respects all linear relations between coherent vectors. -/
64theorem inner_displacedCombination {d : ℕ} (a : Fin d → ℂ)
65    (c e : (Fin d → ℂ) →₀ ℂ) :
66    ⟪displacedCombination a c, displacedCombination a e⟫_ℂ =
67      ⟪coherentCombination c, coherentCombination e⟫_ℂ := by
68  simp only [displacedCombination, coherentCombination, Finsupp.linearCombination_apply,
69    Finsupp.sum, inner_sum, sum_inner, inner_smul_left, inner_smul_right,
70    inner_displacedCoherent]
71 
72theorem norm_displacedCombination {d : ℕ} (a : Fin d → ℂ)
73    (c : (Fin d → ℂ) →₀ ℂ) :
74    ‖displacedCombination a c‖ = ‖coherentCombination c‖ := by
75  have h := congrArg (fun z : ℂ => z.re) (inner_displacedCombination a c c)
76  change (RCLike.re : ℂ → ℝ) _ = (RCLike.re : ℂ → ℝ) _ at h
77  rw [← InnerProductSpace.norm_sq_eq_re_inner (𝕜 := ℂ),
78    ← InnerProductSpace.norm_sq_eq_re_inner (𝕜 := ℂ)] at h
79  nlinarith [norm_nonneg (displacedCombination a c), norm_nonneg (coherentCombination c)]
80 
81end Cloning.MultimodeCoherent