Exact Lean source
PCTCoordinateFrame
formalization/Cloning/PCTCoordinateFrame.lean
Source hash: e88261c7d0f55a9e21b84ff32e6fe2fb2d2e749be9e058946c2bd6014ffed25d
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.FiniteKrausLift
2import Cloning.PurificationSupport
3
4/-! A fixed computational one-particle frame and its literal tensor relabeling. -/
5noncomputable section
6open scoped BigOperators InnerProductSpace Matrix ComplexOrder
7open Cloning.InfiniteTraceClass Cloning.PCT Cloning.InfiniteFiniteCorner
8open Cloning.GeneralSymmetricOccupation Cloning.PCTPurificationChannel
9namespace Cloning.PCTGlobal
10set_option maxHeartbeats 700000
11set_option backward.isDefEq.respectTransparency false
12set_option linter.unusedSectionVars false
13variable {C : Type*} [Fintype C] [DecidableEq C] {d : ℕ}
14
15def coordinateFrame (e : Fin d ≃ C) : OrthonormalBasis (Fin d) ℂ (Register C) :=
16 (registerBasis C).toOrthonormalBasis.reindex e.symm
17
18@[simp] theorem coordinateFrame_apply (e : Fin d ≃ C) (i : Fin d) :
19 coordinateFrame e i = registerBasis C (e i) := by
20 simp only [coordinateFrame, OrthonormalBasis.reindex_apply, Equiv.symm_symm,
21 HilbertBasis.coe_toOrthonormalBasis]
22
23/-- The coordinate frame acts by the actual inverse word relabeling. -/
24theorem tensorFrame_coordinate_apply (e : Fin d ≃ C) (L : ℕ)
25 (x : TensorSpace L d) (w : Fin L → C) :
26 tensorFrame (coordinateFrame e).orthonormal L x w = x (fun i => e.symm (w i)) := by
27 rw [tensorFrame_apply]
28 have hp (v : Word L d) : (∏ i, coordinateFrame e (v i) (w i)) =
29 if v = (fun i => e.symm (w i)) then (1 : ℂ) else 0 := by
30 simp only [coordinateFrame_apply, registerBasis_apply, lp.single_apply, Pi.single_apply]
31 have he (i : Fin L) : w i = e (v i) ↔ v i = e.symm (w i) := by
32 rw [eq_comm, e.apply_eq_iff_eq_symm_apply]
33 simp only [he, Fintype.prod_ite_zero, Finset.prod_const_one]
34 congr 1
35 exact propext ⟨fun h => funext h, fun h i => congrFun h i⟩
36 simp only [hp, mul_ite, mul_one, mul_zero, Finset.sum_ite_eq', Finset.mem_univ, if_true]
37
38/-- Adjoint tensor relabeling has the forward word coordinates. -/
39theorem tensorFrame_coordinate_adjoint_apply (e : Fin d ≃ C) (L : ℕ)
40 (x : Register (Fin L → C)) (w : Word L d) :
41 (tensorFrame (coordinateFrame e).orthonormal L).toContinuousLinearMap.adjoint x w =
42 x (fun i => e (w i)) := by
43 obtain ⟨y, rfl⟩ := tensorFrame_surjective (L := L) (coordinateFrame e) x
44 rw [isometry_adjoint_apply_self, tensorFrame_coordinate_apply]
45 simp only [Equiv.symm_apply_apply]
46
47/-- Computational entries of arbitrary framed operators are just relabeled. -/
48theorem coordinate_operator_coefficient (e : Fin d ≃ C) (L : ℕ)
49 (T : TensorSpace L d →L[ℂ] TensorSpace L d) (a b : Fin L → C) :
50 operatorConjugation (tensorFrame (coordinateFrame e).orthonormal L).toContinuousLinearMap T
51 (lp.single 2 b 1) a = T (lp.single 2 (fun i => e.symm (b i)) 1)
52 (fun i => e.symm (a i)) := by
53 have hx : (tensorFrame (coordinateFrame e).orthonormal L).toContinuousLinearMap.adjoint
54 (lp.single 2 b 1) = (lp.single 2 (fun i => e.symm (b i)) 1 : TensorSpace L d) := by
55 ext w
56 rw [tensorFrame_coordinate_adjoint_apply]
57 simp only [lp.single_apply, Pi.single_apply]
58 congr 1
59 apply propext
60 constructor
61 · intro h
62 funext i
63 exact (e.apply_eq_iff_eq_symm_apply).mp (congrFun h i)
64 · intro h
65 funext i
66 rw [congrFun h i, e.apply_symm_apply]
67 change tensorFrame (coordinateFrame e).orthonormal L
68 (T ((tensorFrame (coordinateFrame e).orthonormal L).toContinuousLinearMap.adjoint
69 (lp.single 2 b 1))) a = _
70 rw [tensorFrame_coordinate_apply, hx]
71
72end Cloning.PCTGlobal