Exact Lean source
PCTRankPurificationBlockMatrices
formalization/Cloning/PCTRankPurificationBlockMatrices.lean
Source hash: 41e0a74179e6a1bd1096d7b49df4159be3678018ca1d0c1ccacad6bf617605e3
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.sum_embeddingMatrix_projectiontheorem Cloning.TensorLie.embeddingMatrix_orthogonaldefinition Cloning.TensorLie.coordinateInclusionMatrixtheorem Cloning.TensorLie.coordinateTensorMatrix_applytheorem Cloning.TensorLie.coordinateTensorMatrix_eq_tensorPowertheorem Cloning.TensorLie.coordinateTensorMatrix_eq_sum_lifttheorem Cloning.TensorLie.coordinateTensorMatrix_support_expansion1import Cloning.PCTRankPurificationMatrices
2import Cloning.PCTRankPurificationBlockAlgebra
3
4/-! Actual word-matrix resolutions of the complete smaller tensor register
5and its induced ambient copies. -/
6noncomputable section
7open scoped BigOperators Classical InnerProductSpace Matrix
8namespace Cloning.TensorLie
9open Cloning.PCT Cloning.PCTPurificationChannel
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1400000
12set_option synthInstance.maxHeartbeats 200000
13variable {n r d : ℕ}
14local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
15 (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
16
17/-- The complete physical Schur family resolves the literal word identity. -/
18theorem sum_embeddingMatrix_projection (L : List (PhysicalHighestTensor n d))
19 (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
20 (fun i => (L.get i).sector.subtypeₗᵢ))
21 (hspan : (⨆ i : Fin L.length,(L.get i).sector)=⊤) :
22 (∑ i : Fin L.length,(L.get i).embeddingMatrix*(L.get i).embeddingMatrixᴴ)=1 := by
23 ext w v
24 have hh := (physicalSchurBasis L hL hspan).sum_inner_mul_inner
25 (registerBasis (Fin n → Fin d) w) (registerBasis (Fin n → Fin d) v)
26 simpa only [physicalSchurBasis_apply,physicalSchurBasisVector,PhysicalSchurBasisIndex,
27 Fintype.sum_sigma,Matrix.sum_apply,Matrix.mul_apply,Matrix.conjTranspose_apply,
28 PhysicalHighestTensor.embeddingMatrix_apply,registerBasis_apply,register_inner_single,
29 lp.inner_single_right,RCLike.inner_apply,starRingEnd_apply,mul_one,
30 lp.single_apply,Pi.single_apply,Matrix.one_apply,one_mul,apply_ite,star_one,star_zero,eq_comm] using hh
31
32/-- Orthogonality of physical cyclic copies is literal rectangular matrix
33orthogonality, including different copies of the same highest weight. -/
34theorem embeddingMatrix_orthogonal {ι : Type*} (H : ι → PhysicalHighestTensor n d)
35 (hH : OrthogonalFamily ℂ (fun i => (H i).sector) (fun i => (H i).sector.subtypeₗᵢ))
36 (i j : ι) (hij : i≠j) : (H i).embeddingMatrixᴴ*(H j).embeddingMatrix=0 := by
37 ext a b
38 have hh := hH hij
39 ((H i).canonicalIsometry (partitionBasis (H i).weight (H i).weight_antitone a))
40 ((H j).canonicalIsometry (partitionBasis (H j).weight (H j).weight_antitone b))
41 change ⟪(H i).canonicalEmbedding _,(H j).canonicalEmbedding _⟫_ℂ=0 at hh
42 simpa only [Matrix.mul_apply,Matrix.conjTranspose_apply,
43 PhysicalHighestTensor.embeddingMatrix_apply,lp.inner_eq_tsum,tsum_fintype,
44 RCLike.inner_apply,starRingEnd_apply,mul_comm,Matrix.zero_apply] using hh
45
46/-- The literal rectangular inclusion of the first r physical coordinates. -/
47def coordinateInclusionMatrix (r k : ℕ) : Matrix (Fin (r+k)) (Fin r) ℂ :=
48 fun a b => if a=Fin.castAdd k b then 1 else 0
49
50@[simp] theorem coordinateTensorMatrix_apply (n r k : ℕ)
51 (w : Fin n → Fin (r+k)) (v : Fin n → Fin r) :
52 coordinateTensorMatrix n r k w v = if (fun t => Fin.castAdd k (v t))=w then 1 else 0 := by
53 simp [coordinateTensorMatrix,LinearMap.toMatrix_apply,
54 OrthonormalBasis.coe_toBasis_repr_apply,OrthonormalBasis.repr_apply_apply,
55 coordinateTensorEmbedding,registerEmbedding_single,coordinateWordEmbedding,
56 registerBasis_apply,register_inner_single,lp.single_apply,Pi.single_apply,eq_comm]
57
58theorem coordinateTensorMatrix_eq_tensorPower (n r k : ℕ) :
59 coordinateTensorMatrix n r k=tensorPower n (coordinateInclusionMatrix r k) := by
60 ext w v
61 rw [coordinateTensorMatrix_apply]
62 simp only [tensorPower,coordinateInclusionMatrix,Fintype.prod_ite_zero,
63 Finset.prod_const_one]
64 congr 1
65 exact propext ⟨fun h t => (congrFun h t).symm,fun h => funext (fun t => (h t).symm)⟩
66
67/-- The rectangular inclusion itself has the exact induced-copy expansion. -/
68theorem coordinateTensorMatrix_eq_sum_lift (L : List (PhysicalHighestTensor n r))
69 (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
70 (fun i => (L.get i).sector.subtypeₗᵢ))
71 (hspan : (⨆ i : Fin L.length,(L.get i).sector)=⊤) (k : ℕ) :
72 coordinateTensorMatrix n r k=∑ i : Fin L.length,
73 ((L.get i).liftEmbeddingMatrix k*rankSectorMatrix (L.get i).weight (L.get i).weight_antitone k)*
74 (L.get i).embeddingMatrixᴴ := by
75 calc
76 _ = coordinateTensorMatrix n r k*(∑ i : Fin L.length,(L.get i).embeddingMatrix*(L.get i).embeddingMatrixᴴ) := by
77 rw [sum_embeddingMatrix_projection L hL hspan,Matrix.mul_one]
78 _ = _ := by
79 rw [Matrix.mul_sum]
80 apply Finset.sum_congr rfl
81 intro i hi
82 rw [← Matrix.mul_assoc,← PhysicalHighestTensor.coordinateLift_embeddingMatrix]
83
84/-- Actual coordinate support decomposed into the induced ambient copies. -/
85theorem coordinateTensorMatrix_support_expansion (L : List (PhysicalHighestTensor n r))
86 (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
87 (fun i => (L.get i).sector.subtypeₗᵢ))
88 (hspan : (⨆ i : Fin L.length,(L.get i).sector)=⊤) (k : ℕ) :
89 coordinateTensorMatrix n r k*(coordinateTensorMatrix n r k)ᴴ=
90 ∑ i : Fin L.length,
91 (L.get i).liftEmbeddingMatrix k *
92 (rankSectorMatrix (L.get i).weight (L.get i).weight_antitone k *
93 (rankSectorMatrix (L.get i).weight (L.get i).weight_antitone k)ᴴ) *
94 ((L.get i).liftEmbeddingMatrix k)ᴴ := by
95 rw [Cloning.PCTRankPurification.conjugated_identity_resolution
96 (fun i : Fin L.length => (L.get i).embeddingMatrix)
97 (sum_embeddingMatrix_projection L hL hspan)]
98 apply Finset.sum_congr rfl
99 intro i hi
100 rw [← PhysicalHighestTensor.coordinateLift_embeddingMatrix]
101 simp only [Matrix.conjTranspose_mul,Matrix.mul_assoc]
102
103end Cloning.TensorLie