Exact Lean source
PCTRankAdaptedTensor
formalization/Cloning/PCTRankAdaptedTensor.lean
Source hash: 9dff79a40b42163c6a491c92901e8040d51d06d4830bb0ff1eafdd05802f6c72
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
definition
Cloning.PCTRankAdapted.tensorMapdefinition Cloning.PCTRankAdapted.wordReindextheorem Cloning.PCTRankAdapted.tensorMap_applytheorem Cloning.PCTRankAdapted.tensorMap_permutetheorem Cloning.PCTRankAdapted.tensorMap_adjointtheorem Cloning.PCTRankAdapted.tensorMap_symmetrictheorem Cloning.PCTRankAdapted.tensorMap_physicalProjectortheorem Cloning.PCTRankAdapted.tensorMap_adjoint_comp_self1import Cloning.PCTGlobalPhysical
2
3/-! Rectangular tensor powers intertwine the literal physical symmetric
4projectors. These identities apply to every complex matrix, before any
5purification state or rank-adapted channel is selected. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace Matrix ComplexOrder
8namespace Cloning.PCTRankAdapted
9open Cloning.PCT Cloning.PCTPurificationChannel Cloning.FiniteKrausLift
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 900000
12set_option linter.unusedSectionVars false
13variable {A B C : Type*} [Fintype A] [Fintype B] [Fintype C]
14 [DecidableEq A] [DecidableEq B] [DecidableEq C]
15
16local instance finiteRegister (I : Type*) [Fintype I] [DecidableEq I] :
17 FiniteDimensional ℂ (Register I) :=
18 (registerBasis I).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
19
20def tensorMap (L : ℕ) (J : Matrix B A ℂ) :
21 Register (Fin L → A) →L[ℂ] Register (Fin L → B) :=
22 matrixRegister (tensorPower L J)
23
24def wordReindex {L : ℕ} (σ : Equiv.Perm (Fin L)) :
25 (Fin L → A) ≃ (Fin L → A) where
26 toFun w := w ∘ σ
27 invFun w := w ∘ σ.symm
28 left_inv w := by funext i; simp
29 right_inv w := by funext i; simp
30
31@[simp] theorem tensorMap_apply (L : ℕ) (J : Matrix B A ℂ)
32 (x : Register (Fin L → A)) (v : Fin L → B) :
33 tensorMap L J x v = ∑ w, x w * ∏ i, J (v i) (w i) := by
34 simp only [tensorMap, matrixRegister_apply, tensorPower, mul_comm]
35
36theorem tensorMap_permute (L : ℕ) (J : Matrix B A ℂ)
37 (σ : Equiv.Perm (Fin L)) (x : Register (Fin L → A)) :
38 tensorMap L J (permuteRegister σ x) = permuteRegister σ (tensorMap L J x) := by
39 ext v
40 simp only [tensorMap_apply, permuteRegister_apply]
41 calc
42 _ = ∑ w : Fin L → A, x w * ∏ i, J (v i) (w (σ.symm i)) := by
43 have he := (wordReindex (A:=A) σ.symm).sum_comp
44 (fun w => x (w ∘ σ) * ∏ i, J (v i) (w i))
45 have hc (w : Fin L → A) : (w ∘ σ.symm) ∘ σ = w := by funext i; simp
46 simpa only [wordReindex, Equiv.coe_fn_mk, hc, Function.comp_apply] using he.symm
47 _ = _ := by
48 apply Finset.sum_congr rfl
49 intro w _
50 congr 1
51 have he := Equiv.prod_comp σ (fun i => J (v i) (w (σ.symm i)))
52 simpa only [Equiv.symm_apply_apply, Function.comp_apply] using he.symm
53
54@[simp] theorem tensorMap_adjoint (L : ℕ) (J : Matrix B A ℂ) :
55 (tensorMap L J).adjoint = tensorMap L Jᴴ := by
56 rw [tensorMap, tensorMap, tensorPower_star, matrixRegister_conjTranspose]
57
58theorem tensorMap_symmetric (L : ℕ) (J : Matrix B A ℂ)
59 (x : Register (Fin L → A)) (hx : x ∈ physicalSymmetric L) :
60 tensorMap L J x ∈ physicalSymmetric L := by
61 intro v σ
62 have hp : permuteRegister σ x = x := by ext w; exact hx w σ
63 have he := tensorMap_permute L J σ x
64 rw [hp] at he
65 exact (congrArg (fun y : Register (Fin L → B) => y v) he).symm
66
67/-- Naturality of the symmetric projector under an arbitrary rectangular
68one-particle matrix; no surjectivity or full-frame premise is needed. -/
69theorem tensorMap_physicalProjector (L : ℕ) (J : Matrix B A ℂ)
70 (x : Register (Fin L → A)) :
71 physicalProjector L (tensorMap L J x) = tensorMap L J (physicalProjector L x) := by
72 apply Submodule.eq_starProjection_of_mem_of_inner_eq_zero
73 · exact tensorMap_symmetric L J _ ((physicalSymmetric L).starProjection_apply_mem x)
74 · intro w hw
75 rw [← map_sub, ← ContinuousLinearMap.adjoint_inner_right, tensorMap_adjoint]
76 exact (Submodule.mem_orthogonal' _ _).mp
77 ((physicalSymmetric (C:=A) L).sub_starProjection_mem_orthogonal x) _
78 (tensorMap_symmetric L Jᴴ w hw)
79
80/-- Tensor powers of an actual one-particle isometry are actual isometries. -/
81theorem tensorMap_adjoint_comp_self (L : ℕ) (J : Matrix B A ℂ) (hJ : Jᴴ * J = 1) :
82 (tensorMap L J).adjoint.comp (tensorMap L J) = ContinuousLinearMap.id ℂ _ := by
83 rw [tensorMap_adjoint, tensorMap, tensorMap, ← matrixRegister_mul,
84 ← tensorPower_mul, hJ, tensorPower_one, matrixRegister_one]
85
86end Cloning.PCTRankAdapted