Offline · exact source
Exact Lean source

TensorSchurHaarCompression

formalization/Cloning/TensorSchurHaarCompression.lean

Source hash: 9e1db8d072e88888e4172de78ca755ce25b64ce3c0ee2d2d8f3bdb7d163b0029

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.TensorSchurHaarOrthogonality
2 
3/-! Actual Schur Haar second moments after arbitrary orthonormal-column
4compressions. The ambient sector dimension remains the normalization. -/
5noncomputable section
6open scoped BigOperators Matrix Topology Matrix.Norms.L2Operator
7open MeasureTheory
8namespace Cloning.TensorLie
9open Cloning.PhysicalFlatConverse Cloning.PCTPurificationChannel
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 800000
12 
13def matrixBimultCLM {I J K L : Type*} [Fintype I] [Fintype J] [Fintype K] [Fintype L]
14    (A : Matrix I J ℂ) (B : Matrix K L ℂ) : Matrix J K ℂ →L[ℂ] Matrix I L ℂ :=
15  LinearMap.toContinuousLinearMap {
16    toFun M := A*M*B
17    map_add' _ _ := by simp only [Matrix.mul_add,Matrix.add_mul]
18    map_smul' _ _ := by simp only [Matrix.mul_smul,Matrix.smul_mul,RingHom.id_apply] }
19 
20variable {d : ℕ} [Nonempty (Fin d)]
21variable {I J : Type*} [Fintype I] [Fintype J] [DecidableEq I] [DecidableEq J]
22 
23def compressedPartitionAction (mu : Fin d → ℕ) (hmu : Antitone mu)
24    (Q : Matrix (PartitionIndex mu hmu) I ℂ)
25    (U : unitary (Matrix (Fin d) (Fin d) ℂ)) : Matrix I I ℂ :=
26  Qᴴ * partitionActionMatrix mu hmu U * Q
27 
28theorem compressedPartition_sandwich (mu nu : Fin d → ℕ) (hmu : Antitone mu) (hnu : Antitone nu)
29    (Q : Matrix (PartitionIndex mu hmu) I ℂ) (S : Matrix (PartitionIndex nu hnu) J ℂ)
30    (M : Matrix I J ℂ) (U : unitary (Matrix (Fin d) (Fin d) ℂ)) :
31    compressedPartitionAction mu hmu Q U * M * (compressedPartitionAction nu hnu S U)ᴴ =
32      Qᴴ * (partitionActionMatrix mu hmu U * (Q*M*Sᴴ) * (partitionActionMatrix nu hnu U)ᴴ) * S := by
33  simp only [compressedPartitionAction,Matrix.conjTranspose_mul,Matrix.conjTranspose_conjTranspose,
34    Matrix.mul_assoc]
35 
36theorem integrable_compressedPartition_sandwich (mu nu : Fin d → ℕ)
37    (hmu : Antitone mu) (hnu : Antitone nu)
38    (Q : Matrix (PartitionIndex mu hmu) I ℂ) (S : Matrix (PartitionIndex nu hnu) J ℂ)
39    (M : Matrix I J ℂ) :
40    Integrable (fun U => compressedPartitionAction mu hmu Q U * M *
41      (compressedPartitionAction nu hnu S U)ᴴ) unitaryHaar := by
42  simpa only [compressedPartition_sandwich,matrixBimultCLM,LinearMap.coe_toContinuousLinearMap,
43    LinearMap.coe_mk,AddHom.coe_mk] using
44    (matrixBimultCLM Qᴴ S).integrable_comp (integrable_mixedSandwich mu nu hmu hnu (Q*M*Sᴴ))
45 
46theorem integral_compressedPartition_sandwich (mu nu : Fin d → ℕ)
47    (hmu : Antitone mu) (hnu : Antitone nu)
48    (Q : Matrix (PartitionIndex mu hmu) I ℂ) (S : Matrix (PartitionIndex nu hnu) J ℂ)
49    (M : Matrix I J ℂ) :
50    (∫ U, compressedPartitionAction mu hmu Q U * M *
51      (compressedPartitionAction nu hnu S U)ᴴ ∂unitaryHaar) =
52        Qᴴ * mixedTwirl mu nu hmu hnu (Q*M*Sᴴ) * S := by
53  have hh := (matrixBimultCLM Qᴴ S).integral_comp_comm
54    (integrable_mixedSandwich mu nu hmu hnu (Q*M*Sᴴ))
55  change (∫ U : unitary (Matrix (Fin d) (Fin d) ℂ),
56    Qᴴ * (partitionActionMatrix mu hmu U * (Q*M*Sᴴ) * (partitionActionMatrix nu hnu U)ᴴ) * S ∂unitaryHaar) =
57      Qᴴ * mixedTwirl mu nu hmu hnu (Q*M*Sᴴ) * S at hh
58  simpa only [compressedPartition_sandwich] using hh
59 
60theorem integral_compressedPartition_sandwich_ne (mu nu : Fin d → ℕ)
61    (hmu : Antitone mu) (hnu : Antitone nu) (hne : mu ≠ nu)
62    (Q : Matrix (PartitionIndex mu hmu) I ℂ) (S : Matrix (PartitionIndex nu hnu) J ℂ)
63    (M : Matrix I J ℂ) :
64    (∫ U, compressedPartitionAction mu hmu Q U * M *
65      (compressedPartitionAction nu hnu S U)ᴴ ∂unitaryHaar) = 0 := by
66  rw [integral_compressedPartition_sandwich,mixedTwirl_eq_zero mu nu hmu hnu hne,
67    Matrix.mul_zero,Matrix.zero_mul]
68 
69/-- The normalization is the ambient physical sector dimension, even after
70compressing to a smaller orthonormal frame. -/
71theorem integral_compressedPartition_sandwich_same (mu : Fin d → ℕ) (hmu : Antitone mu)
72    (Q : Matrix (PartitionIndex mu hmu) I ℂ) (hQ : Qᴴ*Q=1) (M : Matrix I I ℂ) :
73    (∫ U, compressedPartitionAction mu hmu Q U * M *
74      (compressedPartitionAction mu hmu Q U)ᴴ ∂unitaryHaar) =
75        (M.trace/(partitionDimension mu hmu : ℂ)) • (1 : Matrix I I ℂ) := by
76  rw [integral_compressedPartition_sandwich]
77  change Qᴴ * partitionTwirl mu hmu (Q*M*Qᴴ) * Q = _
78  rw [partitionTwirl_eq]
79  have ht : (Q*M*Qᴴ).trace=M.trace := by
80    rw [Matrix.trace_mul_comm,← Matrix.mul_assoc,hQ,Matrix.one_mul]
81  rw [ht,Matrix.mul_smul,Matrix.smul_mul,Matrix.mul_one,hQ]
82 
83theorem integral_compressedPartition_coefficients_ne (mu nu : Fin d → ℕ)
84    (hmu : Antitone mu) (hnu : Antitone nu) (hne : mu ≠ nu)
85    (Q : Matrix (PartitionIndex mu hmu) I ℂ) (S : Matrix (PartitionIndex nu hnu) J ℂ)
86    (i j : I) (k l : J) :
87    (∫ U, compressedPartitionAction mu hmu Q U i j *
88      star (compressedPartitionAction nu hnu S U k l) ∂unitaryHaar) = 0 := by
89  have hh := (matrixEntryCLM i k).integral_comp_comm
90    (integrable_compressedPartition_sandwich mu nu hmu hnu Q S (Matrix.single j l (1:ℂ)))
91  change (∫ U, (compressedPartitionAction mu hmu Q U * Matrix.single j l (1:ℂ) *
92      (compressedPartitionAction nu hnu S U)ᴴ) i k ∂unitaryHaar) =
93    (∫ U, compressedPartitionAction mu hmu Q U * Matrix.single j l (1:ℂ) *
94      (compressedPartitionAction nu hnu S U)ᴴ ∂unitaryHaar) i k at hh
95  simpa only [matrixEntry_sandwich_single,integral_compressedPartition_sandwich_ne mu nu hmu hnu hne,
96    Matrix.zero_apply] using hh
97 
98theorem integral_compressedPartition_coefficients_same (mu : Fin d → ℕ) (hmu : Antitone mu)
99    (Q : Matrix (PartitionIndex mu hmu) I ℂ) (hQ : Qᴴ*Q=1) (i j k l : I) :
100    (∫ U, compressedPartitionAction mu hmu Q U i j *
101      star (compressedPartitionAction mu hmu Q U k l) ∂unitaryHaar) =
102        if i=k ∧ j=l then (partitionDimension mu hmu : ℂ)⁻¹ else 0 := by
103  have hh := (matrixEntryCLM i k).integral_comp_comm
104    (integrable_compressedPartition_sandwich mu mu hmu hmu Q Q (Matrix.single j l (1:ℂ)))
105  change (∫ U, (compressedPartitionAction mu hmu Q U * Matrix.single j l (1:ℂ) *
106      (compressedPartitionAction mu hmu Q U)ᴴ) i k ∂unitaryHaar) =
107    (∫ U, compressedPartitionAction mu hmu Q U * Matrix.single j l (1:ℂ) *
108      (compressedPartitionAction mu hmu Q U)ᴴ ∂unitaryHaar) i k at hh
109  rw [integral_compressedPartition_sandwich_same mu hmu Q hQ] at hh
110  simp only [matrixEntry_sandwich_single] at hh
111  rw [hh]
112  by_cases hik : i=k <;> by_cases hjl : j=l
113  · subst k; subst l
114    simp [Matrix.trace_single_eq_same]
115  · simp [hik,hjl,Matrix.trace_single_eq_of_ne j l (1:ℂ) hjl]
116  · simp [hik,hjl]
117  · simp [hik,hjl]
118 
119end Cloning.TensorLie