Offline · exact source
Exact Lean source

PCTRankAdaptedCompression

formalization/Cloning/PCTRankAdaptedCompression.lean

Source hash: 3aa2049a2edb79cd7e7064d30dc5aa0f57900d0d5ebdd30e48ce23b94aa388ce

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.PCTRankAdaptedTensor
2 
3/-! Exact compression of the physical Werner sandwich through a rectangular
4one-particle isometry. The spectator identities are full identities and the
5symmetric projector intertwining is derived from tensor permutations. -/
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 
16def slotTensor {L : ℕ} (M : Fin L → Matrix A B ℂ) :
17    Matrix (Fin L → A) (Fin L → B) ℂ := fun a b => ∏ i, M i (a i) (b i)
18 
19theorem slotTensor_mul {L : ℕ} (M : Fin L → Matrix A B ℂ)
20    (N : Fin L → Matrix B C ℂ) :
21    slotTensor (fun i => M i * N i) = slotTensor M * slotTensor N := by
22  ext a c
23  simp only [slotTensor, Matrix.mul_apply, ← Finset.prod_mul_distrib]
24  exact Fintype.prod_sum (fun i b => M i (a i) b * N i b (c i))
25 
26theorem slotTensor_star {L : ℕ} (M : Fin L → Matrix A B ℂ) :
27    slotTensor (fun i => (M i)ᴴ) = (slotTensor M)ᴴ := by
28  ext a b
29  simp [slotTensor, Matrix.conjTranspose_apply]
30 
31theorem pureSlotsMatrix_eq_slotTensor {L : ℕ} (ψ : Register A) (S : Finset (Fin L)) :
32    pureSlotsMatrix ψ S = slotTensor (fun i =>
33      if i ∈ S then Matrix.vecMulVec (fun a => ψ a) (star (fun a => ψ a)) else 1) := by
34  ext a b
35  simp only [pureSlotsMatrix, slotTensor]
36  apply Finset.prod_congr rfl
37  intro i _
38  split_ifs <;> simp_all [Matrix.vecMulVec_apply, Matrix.one_apply]
39 
40theorem pureMatrix_map (J : Matrix B A ℂ) (ψ : Register A) :
41    Matrix.vecMulVec (fun b => matrixRegister J ψ b) (star (fun b => matrixRegister J ψ b)) =
42      J * Matrix.vecMulVec (fun a => ψ a) (star (fun a => ψ a)) * Jᴴ := by
43  rw [Matrix.mul_vecMulVec, Matrix.vecMulVec_mul, Matrix.vecMul_conjTranspose, star_star]
44  rfl
45 
46/-- Isometric compression of every slot factor, including the unnormalised
47identity on spectator slots. -/
48theorem pureSlotsMatrix_compression {L : ℕ} (J : Matrix B A ℂ) (hJ : Jᴴ * J = 1)
49    (ψ : Register A) (S : Finset (Fin L)) :
50    (tensorPower L J)ᴴ * pureSlotsMatrix (matrixRegister J ψ) S * tensorPower L J =
51      pureSlotsMatrix ψ S := by
52  rw [pureSlotsMatrix_eq_slotTensor, pureSlotsMatrix_eq_slotTensor]
53  change (slotTensor (fun _ : Fin L => J))ᴴ * _ * slotTensor (fun _ : Fin L => J) = _
54  rw [← slotTensor_star, ← slotTensor_mul, ← slotTensor_mul]
55  congr 1
56  funext i
57  split_ifs with hi
58  · rw [pureMatrix_map, Cloning.Compression.isometry_compress J _ hJ]
59  · simp [hJ]
60 
61theorem pureSlotsOperator_eq_matrixRegister {L : ℕ} (ψ : Register A)
62    (S : Finset (Fin L)) : pureSlotsOperator ψ S = matrixRegister (pureSlotsMatrix ψ S) :=
63  registerLiftCLM_operator _
64 
65theorem pureSlotsOperator_compression {L : ℕ} (J : Matrix B A ℂ) (hJ : Jᴴ * J = 1)
66    (ψ : Register A) (S : Finset (Fin L)) :
67    (tensorMap L J).adjoint.comp ((pureSlotsOperator (matrixRegister J ψ) S).comp
68      (tensorMap L J)) = pureSlotsOperator ψ S := by
69  rw [pureSlotsOperator_eq_matrixRegister, pureSlotsOperator_eq_matrixRegister]
70  change (matrixRegister (tensorPower L J)).adjoint.comp
71    ((matrixRegister _).comp (matrixRegister (tensorPower L J))) = _
72  rw [← matrixRegister_conjTranspose, ← matrixRegister_mul, ← matrixRegister_mul,
73    ← Matrix.mul_assoc, pureSlotsMatrix_compression J hJ]
74 
75/-- Exact unscaled physical symmetric-sandwich compression. -/
76theorem wernerSandwich_compression {L : ℕ} (J : Matrix B A ℂ) (hJ : Jᴴ * J = 1)
77    (ψ : Register A) (S : Finset (Fin L)) :
78    (tensorMap L J).adjoint.comp
79      ((physicalProjector L * pureSlotsOperator (matrixRegister J ψ) S *
80        physicalProjector L).comp (tensorMap L J)) =
81      physicalProjector L * pureSlotsOperator ψ S * physicalProjector L := by
82  apply ContinuousLinearMap.ext
83  intro x
84  change (tensorMap L J).adjoint (physicalProjector L
85    (pureSlotsOperator (matrixRegister J ψ) S (physicalProjector L (tensorMap L J x)))) = _
86  rw [tensorMap_physicalProjector, tensorMap_adjoint,
87    ← tensorMap_physicalProjector]
88  rw [← tensorMap_adjoint L J]
89  change physicalProjector L (((tensorMap L J).adjoint.comp
90    ((pureSlotsOperator (matrixRegister J ψ) S).comp (tensorMap L J)))
91      (physicalProjector L x)) = _
92  rw [pureSlotsOperator_compression J hJ]
93  rfl
94 
95end Cloning.PCTRankAdapted