Offline · exact source
Exact Lean source

TensorLANEmbeddingFrame

formalization/Cloning/TensorLANEmbeddingFrame.lean

Source hash: adb8944a0b0fa62d1ab5e980848c17ab11caaed6e75ca09ea6eb723dbf1c2bfd

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.TensorLANEmbeddingChannel
2import Mathlib.Analysis.InnerProductSpace.PiL2
3import Mathlib.Analysis.InnerProductSpace.Projection.Basic
4 
5/-! Finite-frame partial isometries, extended by zero on the complete input
6Hilbert space. Their adjoints give the reverse physical compression. -/
7noncomputable section
8open scoped BigOperators InnerProductSpace
9namespace Cloning.TensorLAN
10open Cloning.InfiniteTraceClass Module
11set_option maxHeartbeats 800000
12set_option backward.isDefEq.respectTransparency false
13variable {H K : Type*}
14  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
15  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
16variable {ι : Type*} [Fintype ι]
17variable (S : Submodule ℂ H) [S.HasOrthogonalProjection]
18 
19/-- Send a complete orthonormal basis onto the prescribed orthonormal target frame. -/
20def basisFrameIsometry (b : OrthonormalBasis ι ℂ S) (f : ι → K) (hf : Orthonormal ℂ f) :
21    S →ₗᵢ[ℂ] K :=
22  (b.toBasis.constr ℂ f).isometryOfOrthonormal (v := b.toBasis) b.orthonormal (by
23    simpa only [Function.comp_def, Basis.constr_basis] using hf)
24 
25@[simp] theorem basisFrameIsometry_basis (b : OrthonormalBasis ι ℂ S)
26    (f : ι → K) (hf : Orthonormal ℂ f) (i : ι) : basisFrameIsometry S b f hf (b i) = f i := by
27  exact Basis.constr_basis _ _ _ i
28 
29/-- The finite-frame map on every input vector: orthogonally compress, then transport. -/
30def frameTransport (b : OrthonormalBasis ι ℂ S) (f : ι → K) (hf : Orthonormal ℂ f) : H →L[ℂ] K :=
31  (basisFrameIsometry S b f hf).toContinuousLinearMap.comp S.orthogonalProjection
32 
33theorem frameTransport_contraction (b : OrthonormalBasis ι ℂ S)
34    (f : ι → K) (hf : Orthonormal ℂ f) (x : H) : ‖frameTransport S b f hf x‖ ≤ ‖x‖ := by
35  change ‖basisFrameIsometry S b f hf (S.orthogonalProjection x)‖ ≤ _
36  rw [LinearIsometry.norm_map]
37  exact S.norm_orthogonalProjection_apply_le x
38 
39theorem frameTransport_on_subspace (b : OrthonormalBasis ι ℂ S)
40    (f : ι → K) (hf : Orthonormal ℂ f) (x : S) :
41    frameTransport S b f hf x = basisFrameIsometry S b f hf x := by
42  change basisFrameIsometry S b f hf (S.orthogonalProjection x) = _
43  congr 1
44  apply Subtype.ext
45  exact Submodule.starProjection_eq_self_iff.mpr x.property
46 
47@[simp] theorem frameTransport_basis (b : OrthonormalBasis ι ℂ S)
48    (f : ι → K) (hf : Orthonormal ℂ f) (i : ι) :
49    frameTransport S b f hf (b i) = f i := by
50  rw [frameTransport_on_subspace, basisFrameIsometry_basis]
51 
52theorem frameTransport_adjoint_contraction (b : OrthonormalBasis ι ℂ S)
53    (f : ι → K) (hf : Orthonormal ℂ f) (x : K) :
54    ‖(frameTransport S b f hf).adjoint x‖ ≤ ‖x‖ := by
55  have hnorm : ‖frameTransport S b f hf‖ ≤ 1 :=
56    ContinuousLinearMap.opNorm_le_bound _ (by norm_num) (by
57      intro y
58      simpa only [one_mul] using frameTransport_contraction S b f hf y)
59  calc
60    _ ≤ ‖(frameTransport S b f hf).adjoint‖ * ‖x‖ := (frameTransport S b f hf).adjoint.le_opNorm x
61    _ = ‖frameTransport S b f hf‖ * ‖x‖ := by rw [ContinuousLinearMap.adjoint.norm_map]
62    _ ≤ 1 * ‖x‖ := mul_le_mul_of_nonneg_right hnorm (norm_nonneg x)
63    _ = ‖x‖ := one_mul _
64 
65/-- The reverse partial isometry exactly recovers every retained vector. -/
66theorem frameTransport_adjoint_isometry (b : OrthonormalBasis ι ℂ S)
67    (f : ι → K) (hf : Orthonormal ℂ f) (x : S) :
68    (frameTransport S b f hf).adjoint (basisFrameIsometry S b f hf x) = (x : H) := by
69  apply ext_inner_left ℂ
70  intro y
71  rw [ContinuousLinearMap.adjoint_inner_right]
72  change ⟪basisFrameIsometry S b f hf (S.orthogonalProjection y),
73    basisFrameIsometry S b f hf x⟫_ℂ = _
74  rw [LinearIsometry.inner_map_map]
75  exact S.inner_orthogonalProjection_eq_of_mem_right x y
76 
77@[simp] theorem frameTransport_adjoint_basis (b : OrthonormalBasis ι ℂ S)
78    (f : ι → K) (hf : Orthonormal ℂ f) (i : ι) :
79    (frameTransport S b f hf).adjoint (f i) = (b i : H) := by
80  rw [← basisFrameIsometry_basis S b f hf i, frameTransport_adjoint_isometry]
81 
82/-- Forward and backward channels use fixed explicit replacement states. -/
83def frameForwardChannel (b : OrthonormalBasis ι ℂ S)
84    (f : ι → K) (hf : Orthonormal ℂ f) (σ : DensityState K) : QuantumChannel H K :=
85  QuantumChannel.ofContraction (frameTransport S b f hf) (frameTransport_contraction S b f hf) σ
86 
87def frameReverseChannel (b : OrthonormalBasis ι ℂ S)
88    (f : ι → K) (hf : Orthonormal ℂ f) (ρ : DensityState H) : QuantumChannel K H :=
89  QuantumChannel.ofContraction (frameTransport S b f hf).adjoint
90    (frameTransport_adjoint_contraction S b f hf) ρ
91 
92theorem frameForwardChannel_retained (b : OrthonormalBasis ι ℂ S)
93    (f : ι → K) (hf : Orthonormal ℂ f) (σ : DensityState K) (x : S) :
94    (frameForwardChannel S b f hf σ).toLinearMap (vectorProjector (x : H)) =
95      vectorProjector (basisFrameIsometry S b f hf x) := by
96  rw [frameForwardChannel, QuantumChannel.ofContraction_vectorProjector_of_norm_eq]
97  · rw [frameTransport_on_subspace]
98  · rw [frameTransport_on_subspace, LinearIsometry.norm_map]
99    rfl
100 
101theorem frameReverseChannel_retained (b : OrthonormalBasis ι ℂ S)
102    (f : ι → K) (hf : Orthonormal ℂ f) (ρ : DensityState H) (x : S) :
103    (frameReverseChannel S b f hf ρ).toLinearMap
104      (vectorProjector (basisFrameIsometry S b f hf x)) = vectorProjector (x : H) := by
105  rw [frameReverseChannel, QuantumChannel.ofContraction_vectorProjector_of_norm_eq]
106  · rw [frameTransport_adjoint_isometry]
107  · rw [frameTransport_adjoint_isometry, LinearIsometry.norm_map]
108    rfl
109 
110end Cloning.TensorLAN