Offline · exact source
Exact Lean source

TensorLANEmbeddingPhysical

formalization/Cloning/TensorLANEmbeddingPhysical.lean

Source hash: 2683b2d6afe6afe3d74967b3bd92868cc53f26593da37cddd31c0996b71cfe52

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.TensorLANEmbeddingFrame
2import Cloning.TensorCartanCutoffFrame
3import Cloning.MultimodeCoherentGaussianMixture
4 
5/-! Concrete all-input physical sector/Fock channels built from the literal
6common cutoff frame and the actual occupation number vectors. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace
9namespace Cloning.TensorLAN
10open Cloning.PCT Cloning.TensorLie Cloning.InfiniteTraceClass
11set_option maxHeartbeats 1000000
12set_option backward.isDefEq.respectTransparency false
13variable {n d : ℕ}
14local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
15  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
16 
17abbrev RootFock (d : ℕ) := MultimodeCoherent.Fock (Fintype.card (PositiveRoot d))
18 
19def fockOccupation (d : ℕ) (k : PositiveRoot d → ℕ) : Fin (Fintype.card (PositiveRoot d)) → ℕ :=
20  fun i => k ((Fintype.equivFin (PositiveRoot d)).symm i)
21 
22theorem fockOccupation_injective (d : ℕ) : Function.Injective (fockOccupation d) := by
23  intro k l h
24  funext a
25  have he := congrFun h ((Fintype.equivFin (PositiveRoot d)) a)
26  simpa only [fockOccupation, Equiv.symm_apply_apply] using he
27 
28def cutoffNumberFrame (d R : ℕ) (i : CutoffIndex d R) : RootFock d :=
29  MultimodeCoherentGaussianMixture.numberBasis _ (fockOccupation d (cutoffOccupation d R i).val)
30 
31theorem cutoffNumberFrame_orthonormal (d R : ℕ) : Orthonormal ℂ (cutoffNumberFrame d R) := by
32  apply (MultimodeCoherentGaussianMixture.numberBasis _).orthonormal.comp
33  intro i j h
34  apply (cutoffOccupation d R).injective
35  exact Subtype.ext (fockOccupation_injective d h)
36 
37/-- The physical cutoff regarded as a subspace of the whole cyclic sector. -/
38def sectorCutoff (Ω : TensorRegister n (Fin d)) (R : ℕ) : Submodule ℂ (cyclicSector Ω) :=
39  (cyclicCutoff Ω (R : ℤ)).comap (cyclicSector Ω).subtype
40 
41def sectorCutoffEquiv (Ω : TensorRegister n (Fin d)) (R : ℕ) :
42    sectorCutoff Ω R ≃ₗᵢ[ℂ] cyclicCutoff Ω (R : ℤ) where
43  toLinearEquiv := Submodule.comapSubtypeEquivOfLe (cyclicCutoff_le_cyclicSector Ω (R : ℤ))
44  norm_map' _ := rfl
45 
46def sectorCutoffBasis (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ) (R : ℕ)
47    (hgap : ∀ a : PositiveRoot d, 0 < rootGap mu a)
48    (hli : LinearIndependent ℂ (cutoffRawFrame Ω mu R)) :
49    OrthonormalBasis (CutoffIndex d R) ℂ (sectorCutoff Ω R) :=
50  (cutoffOrthonormalBasis Ω mu R hgap hli).map (sectorCutoffEquiv Ω R).symm
51 
52@[simp] theorem sectorCutoffBasis_coe (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ) (R : ℕ)
53    (hgap : ∀ a : PositiveRoot d, 0 < rootGap mu a)
54    (hli : LinearIndependent ℂ (cutoffRawFrame Ω mu R)) (i : CutoffIndex d R) :
55    (sectorCutoffBasis Ω mu R hgap hli i : cyclicSector Ω) = cutoffSectorFrame Ω mu R i := by
56  apply Subtype.ext
57  simp only [sectorCutoffBasis, OrthonormalBasis.map_apply]
58  exact cutoffOrthonormalBasis_coe Ω mu R hgap hli i
59 
60/-- The literal multimode vacuum used for every discarded physical component. -/
61def rootVacuum (d : ℕ) : RootFock d :=
62  MultimodeCoherentGaussianMixture.numberBasis _ (fun _ => 0)
63 
64theorem rootVacuum_norm (d : ℕ) : ‖rootVacuum d‖ = 1 :=
65  (MultimodeCoherentGaussianMixture.numberBasis _).orthonormal.norm_eq_one _
66 
67/-- Compress the complete physical sector onto its actual root-height cutoff,
68transport the common ONB to number vectors, and replace lost trace by vacuum. -/
69def sectorToFock (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ) (R : ℕ)
70    (hgap : ∀ a : PositiveRoot d, 0 < rootGap mu a)
71    (hli : LinearIndependent ℂ (cutoffRawFrame Ω mu R)) : QuantumChannel (cyclicSector Ω) (RootFock d) :=
72  frameForwardChannel (sectorCutoff Ω R) (sectorCutoffBasis Ω mu R hgap hli)
73    (cutoffNumberFrame d R) (cutoffNumberFrame_orthonormal d R)
74    (DensityState.pure (rootVacuum d) (rootVacuum_norm d))
75 
76/-- Reverse compression acts on the complete infinite Fock space; discarded
77occupation mass is replaced by the physical highest state. -/
78def fockToSector (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ) (R : ℕ)
79    (hΩ : ‖Ω‖ = 1)
80    (hgap : ∀ a : PositiveRoot d, 0 < rootGap mu a)
81    (hli : LinearIndependent ℂ (cutoffRawFrame Ω mu R)) : QuantumChannel (RootFock d) (cyclicSector Ω) :=
82  frameReverseChannel (sectorCutoff Ω R) (sectorCutoffBasis Ω mu R hgap hli)
83    (cutoffNumberFrame d R) (cutoffNumberFrame_orthonormal d R)
84    (DensityState.pure ⟨Ω, highest_mem_cyclicSector Ω⟩ hΩ)
85 
86theorem sectorToFock_frame (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ) (R : ℕ)
87    (hgap : ∀ a : PositiveRoot d, 0 < rootGap mu a)
88    (hli : LinearIndependent ℂ (cutoffRawFrame Ω mu R)) (i : CutoffIndex d R) :
89    (sectorToFock Ω mu R hgap hli).toLinearMap (vectorProjector (cutoffSectorFrame Ω mu R i)) =
90      vectorProjector (cutoffNumberFrame d R i) := by
91  rw [← sectorCutoffBasis_coe Ω mu R hgap hli i]
92  exact (frameForwardChannel_retained _ _ _ _ _ _).trans
93    (congrArg vectorProjector (basisFrameIsometry_basis _ _ _ _ i))
94 
95theorem fockToSector_frame (Ω : TensorRegister n (Fin d)) (mu : Fin d → ℕ) (R : ℕ)
96    (hΩ : ‖Ω‖ = 1)
97    (hgap : ∀ a : PositiveRoot d, 0 < rootGap mu a)
98    (hli : LinearIndependent ℂ (cutoffRawFrame Ω mu R)) (i : CutoffIndex d R) :
99    (fockToSector Ω mu R hΩ hgap hli).toLinearMap (vectorProjector (cutoffNumberFrame d R i)) =
100      vectorProjector (cutoffSectorFrame Ω mu R i) := by
101  rw [← sectorCutoffBasis_coe Ω mu R hgap hli i,
102    ← basisFrameIsometry_basis (sectorCutoff Ω R) (sectorCutoffBasis Ω mu R hgap hli)
103      (cutoffNumberFrame d R) (cutoffNumberFrame_orthonormal d R) i]
104  exact frameReverseChannel_retained _ _ _ _ _ _
105 
106end Cloning.TensorLAN