Exact Lean source
PCTRankGlobalMatrixBridge
formalization/Cloning/PCTRankGlobalMatrixBridge.lean
Source hash: 83a6ed0046bd10556c9ce2fb403d4422c39bd65875ed54785bf8bd4052c49d03
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.PCTRankGlobalChannels
2
3/-! Rectangular symmetric-sector channels for a smaller purification environment. -/
4noncomputable section
5open scoped BigOperators Matrix InnerProductSpace ComplexOrder
6open Cloning.InfiniteTraceClass Cloning.PCT Cloning.PCTPurificationChannel
7open Cloning.GeneralSymmetricOccupation Cloning.InfiniteFiniteCorner
8open Cloning.PCTGlobal (operatorConjugation_comp)
9namespace Cloning.PCTRankGlobal
10set_option maxHeartbeats 700000
11set_option backward.isDefEq.respectTransparency false
12set_option linter.unusedSectionVars false
13variable {A B : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
14 [Fintype B] [DecidableEq B] [Nonempty B]
15local instance registerFiniteDimensionalBridge (I : Type*) [Fintype I] [DecidableEq I] :
16 FiniteDimensional ℂ (Register I) :=
17 (registerBasis I).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
18
19/-- The physical occupation embedding resolves the full symmetric projection. -/
20theorem physicalEmbedding_projection {s : ℕ}
21 (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × B))) (n : ℕ) :
22 (physicalEmbedding u n).toContinuousLinearMap.comp
23 (physicalEmbedding u n).toContinuousLinearMap.adjoint = physicalProjector n := by
24 apply ContinuousLinearMap.ext
25 intro y
26 symm
27 apply Submodule.eq_starProjection_of_mem_of_inner_eq_zero
28 · rw [← physicalEmbedding_range u n]
29 exact ⟨_,rfl⟩
30 · intro w hw
31 rw [← physicalEmbedding_range u n] at hw
32 obtain ⟨x,rfl⟩ := hw
33 rw [inner_sub_left]
34 change ⟪y, physicalEmbedding u n x⟫_ℂ -
35 ⟪physicalEmbedding u n ((physicalEmbedding u n).toContinuousLinearMap.adjoint y),
36 physicalEmbedding u n x⟫_ℂ = 0
37 rw [LinearIsometry.inner_map_map, ContinuousLinearMap.adjoint_inner_left]
38 exact sub_self _
39
40theorem regroup_single (n : ℕ) (a : Fin n → A × B) :
41 regroup n (lp.single 2 a 1) = lp.single 2 (pairWordsEquiv n a) 1 := by
42 rw [regroup, OrthogonalFamily.linearIsometry_apply_single]
43 exact one_smul ℂ _
44
45/-- Regrouping preserves every computational coefficient under its literal
46word equivalence, for arbitrary operators. -/
47theorem matrixOf_regroup (n : ℕ)
48 (T : Register (Fin n → A × B) →L[ℂ] Register (Fin n → A × B))
49 (a c : Fin n → A × B) :
50 matrixOf (registerBasis _) (operatorConjugation (regroup n).toContinuousLinearMap T)
51 (pairWordsEquiv n a) (pairWordsEquiv n c) =
52 matrixOf (registerBasis _) T a c := by
53 simp only [matrixOf, registerBasis_apply, operatorConjugation_apply]
54 rw [← regroup_single n a, ← regroup_single n c, isometry_adjoint_apply_self]
55 exact (regroup n).inner_map_map _ _
56
57/-- Exact matrix-coordinate relation between grouped and physical occupation
58embeddings, valid for all complex input matrices. -/
59theorem matrixOf_groupedEmbedding {s : ℕ}
60 (u : OrthonormalBasis (Fin (s + 1)) ℂ (Register (A × B))) (n : ℕ)
61 (X : Matrix (Occupation n (s + 1)) (Occupation n (s + 1)) ℂ)
62 (a c : Fin n → A × B) :
63 matrixOf (registerBasis _)
64 (operatorConjugation (groupedEmbedding u n).toContinuousLinearMap (registerLiftCLM X).1)
65 (pairWordsEquiv n a) (pairWordsEquiv n c) =
66 matrixOf (registerBasis _)
67 (operatorConjugation (physicalEmbedding u n).toContinuousLinearMap (registerLiftCLM X).1)
68 a c := by
69 change matrixOf (registerBasis _)
70 (operatorConjugation ((regroup n).toContinuousLinearMap.comp
71 (physicalEmbedding u n).toContinuousLinearMap) (registerLiftCLM X).1) _ _ = _
72 rw [← operatorConjugation_comp]
73 exact matrixOf_regroup n _ a c
74
75/-- Identity-ancilla insertion from the grouped purification input into the
76first `n` physical slots. -/
77def slotInsertion (n r : ℕ)
78 (X : Matrix ((Fin n → A) × (Fin n → B)) ((Fin n → A) × (Fin n → B)) ℂ) :
79 Matrix (Fin (n + r) → A × B) (Fin (n + r) → A × B) ℂ :=
80 fun a c => X
81 ((fun i => (a (Fin.castAdd r i)).1), (fun i => (a (Fin.castAdd r i)).2))
82 ((fun i => (c (Fin.castAdd r i)).1), (fun i => (c (Fin.castAdd r i)).2)) *
83 ∏ j : Fin r, if a (Fin.natAdd n j) = c (Fin.natAdd n j) then 1 else 0
84
85def slotInsertionCLM (n r : ℕ) :
86 Matrix ((Fin n → A) × (Fin n → B)) ((Fin n → A) × (Fin n → B)) ℂ →L[ℂ]
87 Matrix (Fin (n + r) → A × B) (Fin (n + r) → A × B) ℂ :=
88 LinearMap.toContinuousLinearMap
89 { toFun := slotInsertion n r
90 map_add' := by intros; ext a c; simp [slotInsertion, add_mul]
91 map_smul' := by intros; ext a c; simp [slotInsertion, mul_assoc] }
92
93
94end Cloning.PCTRankGlobal