Exact Lean source
MatrixFidelityLifted
formalization/Cloning/MatrixFidelityLifted.lean
Source hash: d9b06dd12d73e579e033600d8928f40d7724312074c9a77827520640b783c43b
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.MatrixFidelity.fidelity_lifted_blockstheorem Cloning.MatrixFidelity.fidelity_weighted_lifted_blockstheorem Cloning.MatrixFidelity.fidelity_weighted_lifted_blocks_errortheorem Cloning.MatrixFidelity.fidelity_lifted_blocks_normalizedtheorem Cloning.MatrixFidelity.fidelity_lifted_blocks_normalized_error1import Cloning.MatrixFidelityBlocks
2import Cloning.MatrixFidelityTensor
3import Cloning.MatrixFidelityScaling
4import Cloning.MatrixFidelityNormalization
5
6/-!
7# Exact fidelity of lifted finite matrix blocks
8
9This is the concrete matrix identity used in Proposition
10`lifted-kernel-bound` of `cloning.tex`. All orthogonal-sum, tensor-product, and
11scaling laws are derived in the imported files from the actual positive matrix
12square root. Representation-theoretic identification of the physical Schur
13blocks is not part of this matrix theorem.
14-/
15
16noncomputable section
17open scoped BigOperators MatrixOrder ComplexOrder Kronecker
18open Matrix
19namespace Cloning.MatrixFidelity
20
21set_option backward.isDefEq.respectTransparency false
22
23variable {ι : Type*} [Fintype ι] [DecidableEq ι]
24variable {d s : ι → Type*}
25variable [∀ i, Fintype (d i)] [∀ i, DecidableEq (d i)]
26variable [∀ i, Fintype (s i)] [∀ i, DecidableEq (s i)]
27
28/-- Exact lifted-block fidelity, including normalized auxiliary factors of
29independently varying dimensions. The blocks `X i` may be unnormalized. -/
30theorem fidelity_lifted_blocks
31 (X ρ : ∀ i, Matrix (d i) (d i) ℂ)
32 (τ : ∀ i, Matrix (s i) (s i) ℂ) (p : ι → ℝ)
33 (hX : ∀ i, (X i).PosSemidef) (hρ : ∀ i, (ρ i).PosSemidef)
34 (hτ : ∀ i, (τ i).PosSemidef) (hp : ∀ i, 0 ≤ p i)
35 (htrace : ∀ i, (Matrix.trace (τ i)).re = 1) :
36 fidelity (Matrix.blockDiagonal' (fun i => X i ⊗ₖ τ i))
37 (Matrix.blockDiagonal' (fun i => (p i • ρ i) ⊗ₖ τ i)) =
38 ∑ i, Real.sqrt (p i) * fidelity (X i) (ρ i) := by
39 rw [fidelity_blockDiagonal' _ _ (fun i => (hX i).kronecker (hτ i))
40 (fun i => ((hρ i).smul (hp i)).kronecker (hτ i))]
41 apply Finset.sum_congr rfl
42 intro i _
43 rw [fidelity_common_ancilla (hX i) ((hρ i).smul (hp i)) (hτ i) (htrace i),
44 fidelity_smul_right (p i) (X i) (ρ i) (hp i) (hX i) (hρ i)]
45
46/-- When both families have explicit classical weights, each normalized sector
47fidelity is multiplied by the corresponding Hellinger weight. -/
48theorem fidelity_weighted_lifted_blocks
49 (σ ρ : ∀ i, Matrix (d i) (d i) ℂ)
50 (τ : ∀ i, Matrix (s i) (s i) ℂ) (p q : ι → ℝ)
51 (hσ : ∀ i, (σ i).PosSemidef) (hρ : ∀ i, (ρ i).PosSemidef)
52 (hτ : ∀ i, (τ i).PosSemidef) (hp : ∀ i, 0 ≤ p i) (hq : ∀ i, 0 ≤ q i)
53 (htrace : ∀ i, (Matrix.trace (τ i)).re = 1) :
54 fidelity (Matrix.blockDiagonal' (fun i => (q i • σ i) ⊗ₖ τ i))
55 (Matrix.blockDiagonal' (fun i => (p i • ρ i) ⊗ₖ τ i)) =
56 ∑ i, Real.sqrt (q i) * Real.sqrt (p i) * fidelity (σ i) (ρ i) := by
57 rw [fidelity_lifted_blocks _ ρ τ p (fun i => (hσ i).smul (hq i)) hρ hτ hp htrace]
58 apply Finset.sum_congr rfl
59 intro i _
60 rw [fidelity_smul_left (q i) (σ i) (ρ i) (hq i) (hσ i)]
61 ring
62
63/-- The retained-block step of the paper's factorization argument, with actual
64matrix fidelity throughout. Zero-weight sectors require no approximation. -/
65theorem fidelity_weighted_lifted_blocks_error
66 (σ ρ : ∀ i, Matrix (d i) (d i) ℂ)
67 (τ : ∀ i, Matrix (s i) (s i) ℂ) (p q : ι → ℝ) (c η : ℝ)
68 (hσ : ∀ i, (σ i).PosSemidef) (hρ : ∀ i, (ρ i).PosSemidef)
69 (hτ : ∀ i, (τ i).PosSemidef) (hp : ∀ i, 0 ≤ p i) (hq : ∀ i, 0 ≤ q i)
70 (htrace : ∀ i, (Matrix.trace (τ i)).re = 1)
71 (hps : ∑ i, p i ≤ 1) (hqs : ∑ i, q i ≤ 1) (hη : 0 ≤ η)
72 (hsector : ∀ i, 0 < q i → |fidelity (σ i) (ρ i) - c| ≤ η) :
73 |fidelity (Matrix.blockDiagonal' (fun i => (q i • σ i) ⊗ₖ τ i))
74 (Matrix.blockDiagonal' (fun i => (p i • ρ i) ⊗ₖ τ i)) -
75 c * Cloning.BlockFidelity.classicalAffinity q p| ≤ η := by
76 rw [fidelity_weighted_lifted_blocks σ ρ τ p q hσ hρ hτ hp hq htrace]
77 exact Cloning.BlockFidelity.weighted_sector_error p q
78 (fun i => fidelity (σ i) (ρ i)) c η hp hq hps hqs hη hsector
79
80/-- Canonical trace-weight factorization: the output-label weights are the
81actual traces of the blocks, including zero blocks. No separate choice of
82output weights or normalized sector states is required. -/
83theorem fidelity_lifted_blocks_normalized
84 (X ρ : ∀ i, Matrix (d i) (d i) ℂ)
85 (τ : ∀ i, Matrix (s i) (s i) ℂ) (p : ι → ℝ)
86 (hX : ∀ i, (X i).PosSemidef) (hρ : ∀ i, (ρ i).PosSemidef)
87 (hτ : ∀ i, (τ i).PosSemidef) (hp : ∀ i, 0 ≤ p i)
88 (htrace : ∀ i, (Matrix.trace (τ i)).re = 1) :
89 fidelity (Matrix.blockDiagonal' (fun i => X i ⊗ₖ τ i))
90 (Matrix.blockDiagonal' (fun i => (p i • ρ i) ⊗ₖ τ i)) =
91 ∑ i, Real.sqrt (Matrix.trace (X i)).re * Real.sqrt (p i) *
92 fidelity (normalizedBlock (X i)) (ρ i) := by
93 rw [fidelity_lifted_blocks X ρ τ p hX hρ hτ hp htrace]
94 apply Finset.sum_congr rfl
95 intro i _
96 rw [fidelity_normalizedBlock_left (hX i) (ρ i)]
97 ring
98
99/-- The retained-block estimate with the output marginal extracted directly
100from the concrete positive blocks. Only positive-trace sectors need satisfy the
101uniform sector estimate. -/
102theorem fidelity_lifted_blocks_normalized_error
103 (X ρ : ∀ i, Matrix (d i) (d i) ℂ)
104 (τ : ∀ i, Matrix (s i) (s i) ℂ) (p : ι → ℝ) (c η : ℝ)
105 (hX : ∀ i, (X i).PosSemidef) (hρ : ∀ i, (ρ i).PosSemidef)
106 (hτ : ∀ i, (τ i).PosSemidef) (hp : ∀ i, 0 ≤ p i)
107 (htrace : ∀ i, (Matrix.trace (τ i)).re = 1)
108 (hps : ∑ i, p i ≤ 1) (hXs : ∑ i, (Matrix.trace (X i)).re ≤ 1)
109 (hη : 0 ≤ η)
110 (hsector : ∀ i, 0 < (Matrix.trace (X i)).re →
111 |fidelity (normalizedBlock (X i)) (ρ i) - c| ≤ η) :
112 |fidelity (Matrix.blockDiagonal' (fun i => X i ⊗ₖ τ i))
113 (Matrix.blockDiagonal' (fun i => (p i • ρ i) ⊗ₖ τ i)) -
114 c * Cloning.BlockFidelity.classicalAffinity
115 (fun i => (Matrix.trace (X i)).re) p| ≤ η := by
116 rw [fidelity_lifted_blocks_normalized X ρ τ p hX hρ hτ hp htrace]
117 exact Cloning.BlockFidelity.weighted_sector_error p
118 (fun i => (Matrix.trace (X i)).re)
119 (fun i => fidelity (normalizedBlock (X i)) (ρ i)) c η hp
120 (fun i => trace_re_nonneg (hX i)) hps hXs hη hsector
121
122end Cloning.MatrixFidelity