Offline · exact source
Exact Lean source

PCTRankPurificationBlockHaar

formalization/Cloning/PCTRankPurificationBlockHaar.lean

Source hash: e9f0fd0f4c635678de4703d7a2fb15f105951703406bce9aee9651652811a0eb

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.PCTRankPurificationBlockMatrices
2import Cloning.PCTRankPurificationCoefficients
3 
4/-! The literal rectangular Haar marginal has the exact induced physical
5Schur blocks. Its normalizer acts by the proved dimension ratio. -/
6noncomputable section
7open scoped BigOperators Classical InnerProductSpace Matrix Kronecker MatrixOrder ComplexOrder Matrix.Norms.L2Operator
8open MeasureTheory
9namespace Cloning.PCTRankPurification
10open Cloning.PCT Cloning.TensorLie Cloning.PCTPurificationChannel Cloning.PhysicalFlatConverse
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1800000
13set_option synthInstance.maxHeartbeats 200000
14variable {n r : ℕ} [NeZero r]
15local instance (k : ℕ) : NeZero (r+k) := ⟨by have := NeZero.ne r; omega⟩
16local instance (n d : ℕ) : FiniteDimensional ℂ (TensorRegister n (Fin d)) :=
17  (registerBasis (Fin n → Fin d)).toOrthonormalBasis.toBasis.finiteDimensional_of_finite
18 
19private theorem sandwich_intertwines {A B : Type*} [Fintype A] [Fintype B]
20    (T : Matrix A A ℂ) (E : Matrix A B ℂ) (V M : Matrix B B ℂ) (h : T*E=E*V) :
21    T*(E*M*Eᴴ)*Tᴴ=E*(V*M*Vᴴ)*Eᴴ := by
22  calc
23    _ = (T*E)*M*(T*E)ᴴ := by simp only [Matrix.conjTranspose_mul,Matrix.mul_assoc]
24    _ = _ := by rw [h]; simp only [Matrix.conjTranspose_mul,Matrix.mul_assoc]
25 
26/-- The actual input marginal of the rectangular purification Haar moment. -/
27def coordinateHaarMarginal (n r k : ℕ) [NeZero r] :
28    Matrix (Fin n → Fin (r+k)) (Fin n → Fin (r+k)) ℂ :=
29  Cloning.Compression.partialTrace (rectangularHaarMoment n (coordinateInclusionMatrix r k))
30 
31theorem coordinateHaarMarginal_posSemidef (n r k : ℕ) [NeZero r] :
32    (coordinateHaarMarginal n r k).PosSemidef :=
33  partialTrace_rectangularHaarMoment_posSemidef n _
34 
35variable (L : List (PhysicalHighestTensor n r))
36  (hL : OrthogonalFamily ℂ (fun i : Fin L.length => (L.get i).sector)
37    (fun i => (L.get i).sector.subtypeₗᵢ))
38  (hspan : (⨆ i : Fin L.length,(L.get i).sector)=⊤)
39include hL hspan
40 
41/-- Exact block expansion of the actual Haar integral, with every physical
42multiplicity copy retained separately. -/
43theorem coordinateHaarMarginal_eq_blocks (k : ℕ) :
44    coordinateHaarMarginal n r k =
45      ∑ i : Fin L.length,
46        ((partitionDimension (L.get i).weight (L.get i).weight_antitone : ℂ)/
47          (partitionDimension (padPartition (L.get i).weight k)
48            (padPartition_antitone _ (L.get i).weight_antitone k) : ℂ)) •
49        ((L.get i).liftEmbeddingMatrix k*((L.get i).liftEmbeddingMatrix k)ᴴ) := by
50  let E (i : Fin L.length) := (L.get i).liftEmbeddingMatrix k
51  let Q (i : Fin L.length) := rankSectorMatrix (L.get i).weight (L.get i).weight_antitone k
52  let V (i : Fin L.length) (U : unitary (Matrix (Fin (r+k)) (Fin (r+k)) ℂ)) :=
53    partitionActionMatrix (padPartition (L.get i).weight k)
54      (padPartition_antitone _ (L.get i).weight_antitone k) U
55  have hint (i : Fin L.length) : Integrable (fun U : unitary (Matrix (Fin (r+k)) (Fin (r+k)) ℂ) =>
56      E i*(V i U*(Q i*(Q i)ᴴ)*(V i U)ᴴ)*(E i)ᴴ) unitaryHaar :=
57    (rectangularSandwichCLM (E i)).integrable_comp (integrable_partitionSandwich _ _ (Q i*(Q i)ᴴ))
58  have he (U : unitary (Matrix (Fin (r+k)) (Fin (r+k)) ℂ)) :
59      tensorPower n (U.val*(coordinateInclusionMatrix r k*(coordinateInclusionMatrix r k)ᴴ)*U.valᴴ)=
60      ∑ i : Fin L.length,E i*(V i U*(Q i*(Q i)ᴴ)*(V i U)ᴴ)*(E i)ᴴ := by
61    rw [tensorPower_mul,tensorPower_mul,tensorPower_mul,tensorPower_star,tensorPower_star,
62      ← coordinateTensorMatrix_eq_tensorPower]
63    rw [Matrix.mul_assoc (tensorPower n U.val),coordinateTensorMatrix_support_expansion L hL hspan k,
64      Matrix.sum_mul,Matrix.mul_sum]
65    apply Finset.sum_congr rfl
66    intro i hi
67    simpa only [Matrix.mul_assoc] using sandwich_intertwines _ (E i) (V i U) (Q i*(Q i)ᴴ)
68      (((L.get i).coordinateLift k).embeddingMatrix_intertwines U)
69  rw [coordinateHaarMarginal,partialTrace_rectangularHaarMoment]
70  simp_rw [he]
71  rw [integral_finset_sum _ (fun i hi => hint i)]
72  apply Finset.sum_congr rfl
73  intro i hi
74  have hh := (rectangularSandwichCLM (E i)).integral_comp_comm
75    (integrable_partitionSandwich (padPartition (L.get i).weight k)
76      (padPartition_antitone _ (L.get i).weight_antitone k) (Q i*(Q i)ᴴ))
77  change (∫ U, E i*(V i U*(Q i*(Q i)ᴴ)*(V i U)ᴴ)*(E i)ᴴ ∂unitaryHaar)=_
78  change (∫ U, E i*(V i U*(Q i*(Q i)ᴴ)*(V i U)ᴴ)*(E i)ᴴ ∂unitaryHaar)=
79    E i*(partitionTwirl (padPartition (L.get i).weight k)
80      (padPartition_antitone _ (L.get i).weight_antitone k) (Q i*(Q i)ᴴ))*(E i)ᴴ at hh
81  rw [hh,partitionTwirl_eq]
82  have htr : (Q i*(Q i)ᴴ).trace=(partitionDimension (L.get i).weight (L.get i).weight_antitone : ℂ) := by
83    rw [Matrix.trace_mul_comm,rankSectorMatrix_isometry,Matrix.trace_one,Fintype.card_fin]
84  simp only [htr,Matrix.mul_smul,Matrix.smul_mul,Matrix.mul_one,E]
85 
86/-- Every induced ambient copy is an eigenspace of the actual Haar marginal. -/
87theorem coordinateHaarMarginal_mul_liftEmbedding (k : ℕ) (j : Fin L.length) :
88    coordinateHaarMarginal n r k*(L.get j).liftEmbeddingMatrix k=
89      ((partitionDimension (L.get j).weight (L.get j).weight_antitone : ℂ)/
90        (partitionDimension (padPartition (L.get j).weight k)
91          (padPartition_antitone _ (L.get j).weight_antitone k) : ℂ)) •
92        (L.get j).liftEmbeddingMatrix k := by
93  rw [coordinateHaarMarginal_eq_blocks L hL hspan k]
94  exact sum_weighted_projectors_mul (fun i : Fin L.length => (L.get i).liftEmbeddingMatrix k)
95    (fun i => ((L.get i).coordinateLift k).embeddingMatrix_isometry)
96    (embeddingMatrix_orthogonal (fun i : Fin L.length => (L.get i).coordinateLift k)
97      (coordinateLift_family_orthogonal (fun i : Fin L.length => L.get i) hL k)) _ j
98 
99/-- No inverse on the null space is used: the actual spectral normalizer
100has the exact positive dimension-ratio action on each supported copy. -/
101theorem coordinateHaarNormalizer_mul_liftEmbedding (k : ℕ) (j : Fin L.length) :
102    momentNormalizer (coordinateHaarMarginal n r k) (coordinateHaarMarginal_posSemidef n r k)*
103      (L.get j).liftEmbeddingMatrix k=
104      (rankMomentScale (L.get j).weight (L.get j).weight_antitone k : ℂ) •
105        (L.get j).liftEmbeddingMatrix k := by
106  have hh := momentNormalizer_mul_isometry (coordinateHaarMarginal n r k)
107    (coordinateHaarMarginal_posSemidef n r k) ((L.get j).liftEmbeddingMatrix k)
108    (((L.get j).coordinateLift k).embeddingMatrix_isometry)
109    ((partitionDimension (L.get j).weight (L.get j).weight_antitone : ℝ)/
110      (partitionDimension (padPartition (L.get j).weight k)
111        (padPartition_antitone _ (L.get j).weight_antitone k) : ℝ))
112    (by simpa only [Complex.ofReal_div,Complex.ofReal_natCast] using
113      coordinateHaarMarginal_mul_liftEmbedding L hL hspan k j)
114  rw [← Complex.ofReal_inv,← Real.sqrt_inv,inv_div] at hh
115  exact hh
116 
117end Cloning.PCTRankPurification