Offline · exact source
Exact Lean source

TensorLANEmbeddingCompression

formalization/Cloning/TensorLANEmbeddingCompression.lean

Source hash: 17f643e630bcc4c182cad54377650e2f02e404fa513ad4844b1045a53d6103fb

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.TensorLANEmbeddingTotal
2 
3/-! The concrete frame channels discard exactly the complementary physical
4cutoff trace; the identity holds on all complex trace-class inputs. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace ComplexOrder
7namespace Cloning.InfiniteTraceClass
8set_option maxHeartbeats 800000
9set_option backward.isDefEq.respectTransparency false
10variable {H K J : Type*}
11  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
12  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
13  [NormedAddCommGroup J] [InnerProductSpace ℂ J] [CompleteSpace J]
14 
15theorem conjugationLinearMap_trace_eq_of_norm_eq (V : H →L[ℂ] K) (W : H →L[ℂ] J)
16    (hVW : ∀ x, ‖V x‖ = ‖W x‖) (A : TraceClass H) :
17    traceCLM (conjugationLinearMap V A) = traceCLM (conjugationLinearMap W A) := by
18  have hpositive (B : TraceClass H) (hB : 0 ≤ B.1) :
19      traceCLM (conjugationLinearMap V B) = traceCLM (conjugationLinearMap W B) := by
20    obtain ⟨w, b, _⟩ := exists_hilbertBasis ℂ H
21    have hl := (conjugationLinearMap_positive_hasSum V B hB b).mapL traceCLM
22    have hr := (conjugationLinearMap_positive_hasSum W B hB b).mapL traceCLM
23    simp only [traceCLM_vectorProjector, hVW] at hl
24    simp only [traceCLM_vectorProjector] at hr
25    exact hl.unique hr
26  let D : TraceClass H →ₗ[ℂ] ℂ := traceCLM.toLinearMap.comp (conjugationLinearMap V) -
27    traceCLM.toLinearMap.comp (conjugationLinearMap W)
28  have hpos (B : TraceClass H) (hB : 0 ≤ B.1) : D B = 0 := sub_eq_zero.mpr (hpositive B hB)
29  have hself (B : TraceClass H) (hB : IsSelfAdjoint B.1) : D B = 0 := by
30    rw [← TraceClass.positivePart_sub_negativePart B hB, map_sub,
31      hpos _ (TraceClass.positivePart_nonneg B hB),
32      hpos _ (TraceClass.negativePart_nonneg B hB), sub_self]
33  have hz : D A = 0 := by
34    rw [← TraceClass.realComponent_add_I_smul_imaginaryComponent A, map_add, map_smul,
35      hself _ (TraceClass.realComponent_isSelfAdjoint A),
36      hself _ (TraceClass.imaginaryComponent_isSelfAdjoint A)]
37    simp
38  exact sub_eq_zero.mp hz
39 
40end Cloning.InfiniteTraceClass
41 
42namespace Cloning.TensorLAN
43open Cloning.InfiniteTraceClass
44set_option maxHeartbeats 800000
45set_option backward.isDefEq.respectTransparency false
46variable {H K : Type*}
47  [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
48  [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
49variable {ι : Type*} [Fintype ι]
50variable (S : Submodule ℂ H) [S.HasOrthogonalProjection]
51 
52/-- The transported compression has precisely the retained physical trace. -/
53theorem frameTransport_compressed_trace (b : OrthonormalBasis ι ℂ S)
54    (f : ι → K) (hf : Orthonormal ℂ f) (A : TraceClass H) :
55    traceCLM (conjugationLinearMap (frameTransport S b f hf) A) =
56      traceCLM (sandwichCLM S.starProjection S.starProjection A) := by
57  have he := conjugationLinearMap_trace_eq_of_norm_eq (frameTransport S b f hf) S.starProjection
58    (fun x => by
59      change ‖basisFrameIsometry S b f hf (S.orthogonalProjection x)‖ = ‖S.starProjection x‖
60      rw [LinearIsometry.norm_map]
61      rfl) A
62  rw [he]
63  congr 1
64  apply Subtype.ext
65  ext x
66  have hp : S.starProjection.adjoint = S.starProjection := isSelfAdjoint_starProjection S
67  simp only [conjugationLinearMap_coe, operatorConjugation_apply, sandwichCLM_coe,
68    ContinuousLinearMap.mul_apply, hp]
69 
70/-- The lost-trace coefficient is exactly the complementary cutoff block. -/
71theorem frameTransport_trace_defect (b : OrthonormalBasis ι ℂ S)
72    (f : ι → K) (hf : Orthonormal ℂ f) (A : TraceClass H) :
73    traceCLM A - traceCLM (conjugationLinearMap (frameTransport S b f hf) A) =
74      traceCLM (sandwichCLM (1 - S.starProjection) (1 - S.starProjection) A) := by
75  rw [frameTransport_compressed_trace]
76  have he := traceCLM_projection_split (isStarProjection_starProjection (U := S)) A
77  linear_combination -he
78 
79/-- Exact all-input compression/transport/replacement formula. -/
80theorem frameForwardChannel_apply (b : OrthonormalBasis ι ℂ S)
81    (f : ι → K) (hf : Orthonormal ℂ f) (σ : DensityState K) (A : TraceClass H) :
82    (frameForwardChannel S b f hf σ).toLinearMap A =
83      conjugationLinearMap (frameTransport S b f hf) A +
84        traceCLM (sandwichCLM (1 - S.starProjection) (1 - S.starProjection) A) •
85          TraceClass.ofOperator σ.op σ.traceClass := by
86  rw [frameForwardChannel, QuantumChannel.ofContraction_apply, frameTransport_trace_defect]
87 
88/-- The trace-norm cost of replacing the discarded physical tail. -/
89theorem frameForwardChannel_lost_trace (b : OrthonormalBasis ι ℂ S)
90    (f : ι → K) (hf : Orthonormal ℂ f) (σ : DensityState K)
91    (A : TraceClass H) (hA : 0 ≤ A.1) :
92    ‖(frameForwardChannel S b f hf σ).toLinearMap A -
93      conjugationLinearMap (frameTransport S b f hf) A‖ =
94        (traceCLM (sandwichCLM (1 - S.starProjection) (1 - S.starProjection) A)).re := by
95  rw [frameForwardChannel, QuantumChannel.ofContraction_repair_error _ _ _ A hA,
96    ← Complex.sub_re, frameTransport_trace_defect]
97 
98end Cloning.TensorLAN