Exact Lean source
TensorCyclicSectorTensorPower
formalization/Cloning/TensorCyclicSectorTensorPower.lean
Source hash: e653c1568b25ca7c4fa059f28cfd6a00f8c88f28e356b288b540506f21e6056f
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
theorem
Cloning.TensorLie.register_ofMatrix_applydefinition Cloning.TensorLie.registerMatrixCLMtheorem Cloning.TensorLie.registerMatrixCLM_applydefinition Cloning.TensorLie.tensorOperatortheorem Cloning.TensorLie.tensorOperator_applytheorem Cloning.TensorLie.tensorOperator_multheorem Cloning.TensorLie.tensorOperator_onetheorem Cloning.TensorLie.tensorOperator_startheorem Cloning.TensorLie.tensorOperator_norm1import Cloning.TensorCyclicSectorOperators
2import Cloning.PCTPurificationChannel
3import Mathlib.LinearAlgebra.Matrix.Transvection
4import Mathlib.Analysis.Calculus.MeanValue
5import Mathlib.Analysis.Calculus.Deriv.Pi
6import Mathlib.Analysis.Calculus.Deriv.Mul
7
8/-! Literal tensor-power operators for physical cyclic-sector covariance. -/
9noncomputable section
10open scoped BigOperators InnerProductSpace Matrix
11namespace Cloning.TensorLie
12open Cloning.PCT Cloning.InfiniteFiniteCorner Cloning.PCTPurificationChannel
13set_option maxHeartbeats 1000000
14set_option backward.isDefEq.respectTransparency false
15variable {n d : ℕ}
16
17/-- Computational coefficient action of the actual register matrix lift. -/
18theorem register_ofMatrix_apply {I : Type*} [Fintype I] [DecidableEq I]
19 (M : Matrix I I ℂ) (x : Register I) (w : I) :
20 ofMatrix (registerBasis I) M x w = ∑ v, M w v * x v := by
21 rw [← register_inner_single, ← registerBasis_apply, inner_ofMatrix_apply (registerBasis I).orthonormal]
22 simp only [registerBasis_apply, register_inner_single]
23
24/-- Matrix lifting is continuous and linear, on the whole finite matrix space. -/
25def registerMatrixCLM {I : Type*} [Fintype I] [DecidableEq I] :
26 Matrix I I ℂ →L[ℂ] (Register I →L[ℂ] Register I) :=
27 LinearMap.toContinuousLinearMap {
28 toFun := ofMatrix (registerBasis I)
29 map_add' := by
30 intro M N
31 ext x w
32 simp only [register_ofMatrix_apply, Matrix.add_apply, add_mul, Finset.sum_add_distrib,
33 ContinuousLinearMap.add_apply, lp.coeFn_add, Pi.add_apply]
34 map_smul' := by
35 intro c M
36 ext x w
37 simp only [register_ofMatrix_apply, Matrix.smul_apply, smul_eq_mul, mul_assoc,
38 ← Finset.mul_sum, RingHom.id_apply, ContinuousLinearMap.smul_apply, lp.coeFn_smul, Pi.smul_apply] }
39
40@[simp] theorem registerMatrixCLM_apply {I : Type*} [Fintype I] [DecidableEq I]
41 (M : Matrix I I ℂ) : registerMatrixCLM M = ofMatrix (registerBasis I) M := rfl
42
43/-- Literal `X` on every tensor factor, on the complete physical register. -/
44def tensorOperator (n : ℕ) (X : Matrix (Fin d) (Fin d) ℂ) :
45 TensorRegister n (Fin d) →L[ℂ] TensorRegister n (Fin d) :=
46 registerMatrixCLM (tensorPower n X)
47
48@[simp] theorem tensorOperator_apply (X : Matrix (Fin d) (Fin d) ℂ)
49 (x : TensorRegister n (Fin d)) (w : Fin n → Fin d) :
50 tensorOperator n X x w = ∑ v, (∏ t, X (w t) (v t)) * x v :=
51 register_ofMatrix_apply _ x w
52
53theorem tensorOperator_mul (X Y : Matrix (Fin d) (Fin d) ℂ) :
54 tensorOperator n (X * Y) = tensorOperator n X * tensorOperator n Y := by
55 simp only [tensorOperator, tensorPower_mul, registerMatrixCLM_apply,
56 ofMatrix_mul (registerBasis _).orthonormal]
57
58@[simp] theorem tensorOperator_one : tensorOperator n (1 : Matrix (Fin d) (Fin d) ℂ) = 1 := by
59 ext x w
60 simp only [tensorOperator, tensorPower_one, registerMatrixCLM_apply, register_ofMatrix_apply,
61 Matrix.one_apply, ite_mul, one_mul, zero_mul, Finset.sum_ite_eq, Finset.mem_univ,
62 if_true, ContinuousLinearMap.one_apply]
63
64theorem tensorOperator_star (X : Matrix (Fin d) (Fin d) ℂ) :
65 tensorOperator n Xᴴ = (tensorOperator n X).adjoint := by
66 simp only [tensorOperator, tensorPower_star, registerMatrixCLM_apply, ofMatrix_conjTranspose,
67 ContinuousLinearMap.star_eq_adjoint]
68
69/-- Unitary matrices induce genuine isometries on the full tensor register. -/
70theorem tensorOperator_norm (U : Matrix (Fin d) (Fin d) ℂ) (hU : Uᴴ * U = 1)
71 (x : TensorRegister n (Fin d)) : ‖tensorOperator n U x‖ = ‖x‖ := by
72 have he : (tensorOperator n U).adjoint * tensorOperator n U = 1 := by
73 rw [← tensorOperator_star, ← tensorOperator_mul, hU, tensorOperator_one]
74 have hinner : ⟪tensorOperator n U x, tensorOperator n U x⟫_ℂ = ⟪x, x⟫_ℂ := by
75 rw [← ContinuousLinearMap.adjoint_inner_right]
76 change ⟪x, ((tensorOperator n U).adjoint * tensorOperator n U) x⟫_ℂ = _
77 rw [he, ContinuousLinearMap.one_apply]
78 have hs : ‖tensorOperator n U x‖ ^ 2 = ‖x‖ ^ 2 := by
79 rw [norm_sq_eq_re_inner (𝕜 := ℂ), hinner, ← norm_sq_eq_re_inner (𝕜 := ℂ)]
80 nlinarith [norm_nonneg (tensorOperator n U x), norm_nonneg x]
81
82end Cloning.TensorLie