Offline · exact source
Exact Lean source

PCTGlobalMatrixBridge

formalization/Cloning/PCTGlobalMatrixBridge.lean

Source hash: daf993de2f132b84b1b60de42829f1605e433ec506557e596cfcf70c3cfe61a8

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.PCTGlobalRecovery
2 
3/-! Matrix, physical occupation, and grouped-register bridges for the
4all-input PCT channel identity. -/
5noncomputable section
6open scoped BigOperators Matrix InnerProductSpace ComplexOrder
7open Cloning.InfiniteTraceClass Cloning.PCT Cloning.PCTPurificationChannel
8open Cloning.GeneralSymmetricOccupation Cloning.InfiniteFiniteCorner
9namespace Cloning.PCTGlobal
10set_option maxHeartbeats 700000
11set_option backward.isDefEq.respectTransparency false
12set_option linter.unusedSectionVars false
13 
14variable {H K L : Type*}
15    [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
16    [NormedAddCommGroup K] [InnerProductSpace ℂ K] [CompleteSpace K]
17    [NormedAddCommGroup L] [InnerProductSpace ℂ L] [CompleteSpace L]
18 
19theorem conjugation_rankOneOperator (V : H →L[ℂ] K) (x y : H) :
20    conjugationLinearMap V (rankOneOperator x y) = rankOneOperator (V x) (V y) := by
21  apply Subtype.ext
22  apply ContinuousLinearMap.ext
23  intro z
24  change V (⟪y, V.adjoint z⟫_ℂ • x) = ⟪V y, z⟫_ℂ • V x
25  rw [map_smul, ContinuousLinearMap.adjoint_inner_right]
26 
27theorem conjugation_matrixLift {I : Type*} [Fintype I] [DecidableEq I]
28    (V : H →L[ℂ] K) (v : I → H) (X : Matrix I I ℂ) :
29    conjugationLinearMap V (matrixLift v X) = matrixLift (fun i => V (v i)) X := by
30  simp only [matrixLift, map_sum, map_smul, conjugation_rankOneOperator]
31 
32theorem conjugation_registerLiftCLM {I : Type*} [Fintype I] [DecidableEq I]
33    (V : Register I →L[ℂ] K) (X : Matrix I I ℂ) :
34    conjugationLinearMap V (registerLiftCLM X) =
35      matrixLift (fun i => V (registerBasis I i)) X :=
36  conjugation_matrixLift V (registerBasis I) X
37 
38theorem operatorConjugation_comp (V : K →L[ℂ] L) (W : H →L[ℂ] K) (T : H →L[ℂ] H) :
39    operatorConjugation V (operatorConjugation W T) = operatorConjugation (V.comp W) T := by
40  apply ContinuousLinearMap.ext
41  intro x
42  simp only [operatorConjugation_apply, ContinuousLinearMap.adjoint_comp,
43    ContinuousLinearMap.comp_apply]
44 
45variable {A : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
46local instance registerFiniteDimensionalBridge (I : Type*) [Fintype I] [DecidableEq I] :
47    FiniteDimensional ℂ (Register I) :=
48  (registerBasis I).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
49 
50/-- The physical occupation embedding resolves the full symmetric projection. -/
51theorem physicalEmbedding_projection {s : ℕ}
52    (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A))) (n : ℕ) :
53    (physicalEmbedding u n).toContinuousLinearMap.comp
54      (physicalEmbedding u n).toContinuousLinearMap.adjoint = physicalProjector n := by
55  apply ContinuousLinearMap.ext
56  intro y
57  symm
58  apply Submodule.eq_starProjection_of_mem_of_inner_eq_zero
59  · rw [← physicalEmbedding_range u n]
60    exact ⟨_,rfl⟩
61  · intro w hw
62    rw [← physicalEmbedding_range u n] at hw
63    obtain ⟨x,rfl⟩ := hw
64    rw [inner_sub_left]
65    change ⟪y, physicalEmbedding u n x⟫_ℂ -
66      ⟪physicalEmbedding u n ((physicalEmbedding u n).toContinuousLinearMap.adjoint y),
67        physicalEmbedding u n x⟫_ℂ = 0
68    rw [LinearIsometry.inner_map_map, ContinuousLinearMap.adjoint_inner_left]
69    exact sub_self _
70 
71theorem regroup_single (n : ℕ) (a : Fin n → A × A) :
72    regroup n (lp.single 2 a 1) = lp.single 2 (pairWordsEquiv n a) 1 := by
73  rw [regroup, OrthogonalFamily.linearIsometry_apply_single]
74  exact one_smul ℂ _
75 
76/-- Regrouping preserves every computational coefficient under its literal
77word equivalence, for arbitrary operators. -/
78theorem matrixOf_regroup (n : ℕ)
79    (T : Register (Fin n → A × A) →L[ℂ] Register (Fin n → A × A))
80    (a c : Fin n → A × A) :
81    matrixOf (registerBasis _) (operatorConjugation (regroup n).toContinuousLinearMap T)
82      (pairWordsEquiv n a) (pairWordsEquiv n c) =
83      matrixOf (registerBasis _) T a c := by
84  simp only [matrixOf, registerBasis_apply, operatorConjugation_apply]
85  rw [← regroup_single n a, ← regroup_single n c, isometry_adjoint_apply_self]
86  exact (regroup n).inner_map_map _ _
87 
88/-- Exact matrix-coordinate relation between grouped and physical occupation
89embeddings, valid for all complex input matrices. -/
90theorem matrixOf_groupedEmbedding {s : ℕ}
91    (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × A))) (n : ℕ)
92    (X : Matrix (Occupation n (s + 1)) (Occupation n (s + 1)) ℂ)
93    (a c : Fin n → A × A) :
94    matrixOf (registerBasis _)
95      (operatorConjugation (groupedEmbedding u n).toContinuousLinearMap (registerLiftCLM X).1)
96      (pairWordsEquiv n a) (pairWordsEquiv n c) =
97    matrixOf (registerBasis _)
98      (operatorConjugation (physicalEmbedding u n).toContinuousLinearMap (registerLiftCLM X).1)
99      a c := by
100  change matrixOf (registerBasis _)
101    (operatorConjugation ((regroup n).toContinuousLinearMap.comp
102      (physicalEmbedding u n).toContinuousLinearMap) (registerLiftCLM X).1) _ _ = _
103  rw [← operatorConjugation_comp]
104  exact matrixOf_regroup n _ a c
105 
106end Cloning.PCTGlobal