Exact Lean source
InfiniteFidelityHilbertSum
formalization/Cloning/InfiniteFidelityHilbertSum.lean
Source hash: c6146bb635b7fb02003c51e83f0cd34e653364bd435e9b0c0e859b34a3f2b21c
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.InfiniteFidelityHilbertSum.matrixLift_basis_matrixOftheorem Cloning.InfiniteFidelityHilbertSum.rootFidelity_matrixOf_basistheorem Cloning.InfiniteFidelityHilbertSum.matrixLift_blockDiagonaltheorem Cloning.InfiniteFidelityHilbertSum.orthonormal_sigma_embeddingdefinition Cloning.InfiniteFidelityHilbertSum.orthogonalSumtheorem Cloning.InfiniteFidelityHilbertSum.orthogonalSum_valtheorem Cloning.InfiniteFidelityHilbertSum.orthogonalSum_matrixLifttheorem Cloning.InfiniteFidelityHilbertSum.rootFidelity_orthogonalSum1import Cloning.InfiniteFidelityFiniteMixture
2import Cloning.InfiniteFiniteCorner
3import Cloning.MatrixFidelityBlocks
4import Cloning.PCTGlobalMatrixBridge
5
6/-! Exact fidelity additivity for positive operators in finite orthogonal
7Hilbert summands. The summands need not be normalized or exhaust the ambient
8space. -/
9noncomputable section
10open scoped BigOperators InnerProductSpace ComplexOrder Classical
11namespace Cloning.InfiniteFidelityHilbertSum
12open Cloning.InfiniteTraceClass Cloning.InfiniteFiniteCorner Cloning.Hybrid
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 1200000
15
16variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
17
18theorem matrixLift_basis_matrixOf {J : Type*} [Fintype J] [DecidableEq J]
19 (b : OrthonormalBasis J ℂ H) (A : TraceClass H) : matrixLift b (matrixOf b A.1) = A := by
20 apply Subtype.ext
21 change ofMatrix b (matrixOf b A.1) = A.1
22 rw [ofMatrix_matrixOf]
23 have hb : projection b = 1 := by
24 ext x
25 rw [projection_apply]
26 simpa only [OrthonormalBasis.repr_apply_apply, ContinuousLinearMap.one_apply] using b.sum_repr x
27 rw [hb, one_mul, mul_one]
28
29theorem rootFidelity_matrixOf_basis {J : Type*} [Fintype J] [DecidableEq J]
30 (b : OrthonormalBasis J ℂ H) (A B : PositiveTraceClass H) :
31 MatrixFidelity.fidelity (matrixOf b A.1.1) (matrixOf b B.1.1) = A.rootFidelity B := by
32 have h := fidelity_ofMatrix b.orthonormal (matrixOf_posSemidef b A.2) (matrixOf_posSemidef b B.2)
33 have hA := congrArg (fun Z : TraceClass H ↦ Z.1) (matrixLift_basis_matrixOf b A.1)
34 have hB := congrArg (fun Z : TraceClass H ↦ Z.1) (matrixLift_basis_matrixOf b B.1)
35 change ofMatrix b (matrixOf b A.1.1) = A.1.1 at hA
36 change ofMatrix b (matrixOf b B.1.1) = B.1.1 at hB
37 simpa only [hA, hB, PositiveTraceClass.rootFidelity] using h.symm
38
39variable {I : Type*} [Fintype I] [DecidableEq I]
40variable {J : I → Type*} [∀ i, Fintype (J i)] [∀ i, DecidableEq (J i)]
41
42theorem matrixLift_blockDiagonal (v : ∀ i, J i → H) (M : ∀ i, Matrix (J i) (J i) ℂ) :
43 matrixLift (fun a : Sigma J ↦ v a.1 a.2) (Matrix.blockDiagonal' M) =
44 ∑ i, matrixLift (v i) (M i) := by
45 simp only [matrixLift, Fintype.sum_sigma]
46 apply Finset.sum_congr rfl
47 intro i hi
48 apply Finset.sum_congr rfl
49 intro a ha
50 rw [Finset.sum_eq_single i]
51 · simp only [Matrix.blockDiagonal'_apply_eq]
52 · intro j hj hji
53 simp only [Matrix.blockDiagonal'_apply_ne M _ _ (Ne.symm hji), zero_smul, Finset.sum_const_zero]
54 · simp
55
56section Embeddings
57variable {E : I → Type*}
58 [∀ i, NormedAddCommGroup (E i)] [∀ i, InnerProductSpace ℂ (E i)] [∀ i, CompleteSpace (E i)]
59
60theorem orthonormal_sigma_embedding (V : ∀ i, E i →ₗᵢ[ℂ] H)
61 (hV : OrthogonalFamily ℂ E V) (b : ∀ i, OrthonormalBasis (J i) ℂ (E i)) :
62 Orthonormal ℂ (fun a : Sigma J ↦ V a.1 (b a.1 a.2)) := by
63 rw [orthonormal_iff_ite]
64 rintro ⟨i,a⟩ ⟨j,c⟩
65 by_cases hij : i = j
66 · subst j
67 rw [LinearIsometry.inner_map_map]
68 simpa using orthonormal_iff_ite.mp (b i).orthonormal a c
69 · have hac : (⟨i,a⟩ : Sigma J) ≠ ⟨j,c⟩ := fun h ↦ hij (congrArg Sigma.fst h)
70 rw [if_neg hac]
71 exact hV hij _ _
72
73def orthogonalSum (V : ∀ i, E i →ₗᵢ[ℂ] H) (A : ∀ i, PositiveTraceClass (E i)) :
74 PositiveTraceClass H := PositiveTraceClass.finsetSum Finset.univ
75 (fun i ↦ (A i).map (QuantumChannel.ofIsometry (V i)).toPositiveTracePreservingMap)
76
77theorem orthogonalSum_val (V : ∀ i, E i →ₗᵢ[ℂ] H) (A : ∀ i, PositiveTraceClass (E i)) :
78 (orthogonalSum V A).1 = ∑ i, conjugationLinearMap (V i).toContinuousLinearMap (A i).1 := rfl
79
80theorem orthogonalSum_matrixLift (V : ∀ i, E i →ₗᵢ[ℂ] H)
81 (b : ∀ i, OrthonormalBasis (J i) ℂ (E i)) (A : ∀ i, PositiveTraceClass (E i)) :
82 (orthogonalSum V A).1 = matrixLift (fun a : Sigma J ↦ V a.1 (b a.1 a.2))
83 (Matrix.blockDiagonal' (fun i ↦ matrixOf (b i) (A i).1.1)) := by
84 rw [orthogonalSum_val, matrixLift_blockDiagonal (fun i a ↦ V i (b i a))]
85 apply Finset.sum_congr rfl
86 intro i hi
87 have h := Cloning.PCTGlobal.conjugation_matrixLift (V i).toContinuousLinearMap (b i)
88 (matrixOf (b i) (A i).1.1)
89 rw [matrixLift_basis_matrixOf] at h
90 exact h
91
92/-- Exact additivity, including arbitrary positive masses, on actual finite
93orthogonal isometric embeddings. No completeness of the ambient decomposition
94or state-normalization premise is needed. -/
95theorem rootFidelity_orthogonalSum (V : ∀ i, E i →ₗᵢ[ℂ] H)
96 (hV : OrthogonalFamily ℂ E V) (b : ∀ i, OrthonormalBasis (J i) ℂ (E i))
97 (A B : ∀ i, PositiveTraceClass (E i)) :
98 (orthogonalSum V A).rootFidelity (orthogonalSum V B) = ∑ i, (A i).rootFidelity (B i) := by
99 have hA := congrArg (fun Z : TraceClass H ↦ Z.1) (orthogonalSum_matrixLift V b A)
100 have hB := congrArg (fun Z : TraceClass H ↦ Z.1) (orthogonalSum_matrixLift V b B)
101 change (orthogonalSum V A).1.1 = ofMatrix (fun a : Sigma J ↦ V a.1 (b a.1 a.2))
102 (Matrix.blockDiagonal' (fun i ↦ matrixOf (b i) (A i).1.1)) at hA
103 change (orthogonalSum V B).1.1 = ofMatrix (fun a : Sigma J ↦ V a.1 (b a.1 a.2))
104 (Matrix.blockDiagonal' (fun i ↦ matrixOf (b i) (B i).1.1)) at hB
105 change InfiniteFidelity.fidelity _ _ _ _ _ _ = _
106 have h := fidelity_ofMatrix (orthonormal_sigma_embedding V hV b)
107 (MatrixFidelity.blockDiagonal'_posSemidef _ (fun i ↦ matrixOf_posSemidef (b i) (A i).2))
108 (MatrixFidelity.blockDiagonal'_posSemidef _ (fun i ↦ matrixOf_posSemidef (b i) (B i).2))
109 simp only [← hA, ← hB] at h
110 rw [h]
111 rw [MatrixFidelity.fidelity_blockDiagonal' _ _
112 (fun i ↦ matrixOf_posSemidef (b i) (A i).2) (fun i ↦ matrixOf_posSemidef (b i) (B i).2)]
113 apply Finset.sum_congr rfl
114 intro i hi
115 exact rootFidelity_matrixOf_basis (b i) (A i) (B i)
116
117end Embeddings
118end Cloning.InfiniteFidelityHilbertSum