Offline · exact source
Exact Lean source

MatrixTransitionAchievability

formalization/Cloning/MatrixTransitionAchievability.lean

Source hash: bdf54696594ed27191bdbe26e94092f42626bbb523590b3c98dd62cbbc231fa0

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.MatrixLiftedTrimming
2import Cloning.MatrixFidelityMixtures
3import Cloning.MatrixFidelityAchievability
4 
5/-!
6# Achievability for actual finite matrix-channel transitions
7 
8Every retained normalized block is explicitly a probability mixture of the
9individual channel outputs. Concavity transfers a uniform lower fidelity
10bound through that mixture. It does not assert an upper bound or an exact
11limit for the mixture fidelity.
12-/
13 
14noncomputable section
15open scoped BigOperators Matrix MatrixOrder ComplexOrder Kronecker
16open Matrix
17open Cloning.Channels Cloning.MatrixFidelity
18open Cloning.MatrixLiftedChannel Cloning.MatrixLiftedTrimming
19 
20namespace Cloning.MatrixTransitionAchievability
21 
22set_option backward.isDefEq.respectTransparency false
23 
24variable {μ ν : Type*} [Fintype μ]
25variable {α : μ → Type*} {β : ν → Type*}
26variable [∀ i, Fintype (α i)] [∀ j, Fintype (β j)] [∀ j, DecidableEq (β j)]
27 
28omit [∀ j, DecidableEq (β j)] in
29/-- The canonical normalized output equals the explicit mixture with
30conditional transition weights. The identity also holds at zero marginal. -/
31theorem normalized_transitionOutput_eq_mixture
32    (Φ : ∀ i j, MatrixChannel (α i) (β j)) (ρ : ∀ i, State (α i))
33    (joint : μ → ν → ℝ) (j : ν) :
34    normalizedBlock (transitionOutput Φ ρ joint j) =
35      ∑ i, (joint i j / ∑ k, joint k j) • (Φ i j).toFun (ρ i).matrix := by
36  unfold normalizedBlock
37  rw [transitionOutput_trace_re]
38  unfold transitionOutput
39  rw [Finset.smul_sum]
40  apply Finset.sum_congr rfl
41  intro i _
42  rw [smul_smul, div_eq_mul_inv, mul_comm]
43 
44omit [∀ j, DecidableEq (β j)] in
45theorem conditional_weights_nonneg {joint : μ → ν → ℝ}
46    (hjoint : ∀ i j, 0 ≤ joint i j) {j : ν} (hq : 0 < ∑ i, joint i j) :
47    ∀ i, 0 ≤ joint i j / ∑ k, joint k j :=
48  fun i => div_nonneg (hjoint i j) hq.le
49 
50omit [∀ j, DecidableEq (β j)] in
51theorem conditional_weights_sum {joint : μ → ν → ℝ} {j : ν}
52    (hq : 0 < ∑ i, joint i j) : (∑ i, joint i j / ∑ k, joint k j) = 1 := by
53  rw [← Finset.sum_div, div_self (ne_of_gt hq)]
54 
55/-- Uniform lower fidelity on retained positive-weight transitions passes to
56the normalized output block by concrete matrix-fidelity concavity. -/
57theorem retained_transition_fidelity_lower
58    (Φ : ∀ i j, MatrixChannel (α i) (β j)) (ρ : ∀ i, State (α i))
59    {joint : μ → ν → ℝ} (hjoint : ∀ i j, 0 ≤ joint i j)
60    (keep : μ → ν → Prop) (j : ν) (T : Matrix (β j) (β j) ℂ) (c : ℝ)
61    (hq : 0 < ∑ i, keptJoint joint keep i j)
62    (hindividual : ∀ i, keep i j → 0 < joint i j →
63      c ≤ fidelity ((Φ i j).toFun (ρ i).matrix) T) :
64    c ≤ fidelity (normalizedBlock (transitionOutput Φ ρ (keptJoint joint keep) j)) T := by
65  classical
66  rw [normalized_transitionOutput_eq_mixture]
67  apply fidelity_finite_mixture_lower
68    (fun i => (Φ i j).toFun (ρ i).matrix) T
69    (fun i => keptJoint joint keep i j / ∑ k, keptJoint joint keep k j) c
70    (fun i => map_positive (Φ i j) (ρ i).positive)
71    (conditional_weights_nonneg (keptJoint_nonneg hjoint keep) hq)
72    (conditional_weights_sum hq)
73  intro i hi
74  have hki : 0 < keptJoint joint keep i j :=
75    (div_pos_iff_of_pos_right hq).mp hi
76  by_cases hkeep : keep i j
77  · exact hindividual i hkeep (by simpa only [keptJoint, if_pos hkeep] using hki)
78  · simp only [keptJoint, if_neg hkeep, lt_self_iff_false] at hki
79 
80variable [Fintype ν] [DecidableEq ν]
81variable {κ : ν → Type*} [∀ j, Fintype (κ j)] [∀ j, DecidableEq (κ j)]
82 
83/-- Concrete finite achievability from lower bounds on the individual retained
84channel outputs. Mixing within one output sector is justified by concavity,
85and deleting arbitrary sector pairs costs only the square root of their mass.
86This is a lower bound; no equality or mixture upper bound is asserted. -/
87theorem transition_achievability_bound
88    (Φ : ∀ i j, MatrixChannel (α i) (β j))
89    (ρ : ∀ i, State (α i)) (σ : ∀ j, State (β j)) (τ : ∀ j, State (κ j))
90    {joint : μ → ν → ℝ} (hjoint : ∀ i j, 0 ≤ joint i j)
91    (keep : μ → ν → Prop) (p : ν → ℝ) (c η : ℝ)
92    (hp : ∀ j, 0 ≤ p j) (hpsum : ∑ j, p j = 1)
93    (hjointmass : ∑ j, ∑ i, joint i j ≤ 1)
94    (hc0 : 0 ≤ c) (hc1 : c ≤ 1) (hη : 0 ≤ η)
95    (hindividual : ∀ i j, keep i j → 0 < joint i j →
96      c - η ≤ fidelity ((Φ i j).toFun (ρ i).matrix) (σ j).matrix) :
97    c * Cloning.BlockFidelity.classicalAffinity (fun j => ∑ i, joint i j) p - η -
98      Real.sqrt (∑ j, ∑ i, discardedJoint joint keep i j) ≤
99      fidelity (liftedOutput Φ ρ τ joint)
100        (Matrix.blockDiagonal' (fun j => (p j • (σ j).matrix) ⊗ₖ (τ j).matrix)) := by
101  have hsectorLower : ∀ j,
102      0 < (transitionOutput Φ ρ (keptJoint joint keep) j).trace.re →
103      c - η ≤ fidelity
104        (normalizedBlock (transitionOutput Φ ρ (keptJoint joint keep) j)) (σ j).matrix := by
105    intro j hj
106    exact retained_transition_fidelity_lower Φ ρ hjoint keep j (σ j).matrix (c - η)
107      (by simpa only [transitionOutput_trace_re] using hj)
108      (fun i hkeep hij => hindividual i j hkeep hij)
109  have h := fidelity_lifted_achievability
110    (transitionOutput Φ ρ joint) (transitionOutput Φ ρ (keptJoint joint keep))
111    (fun j => (σ j).matrix) (fun j => (τ j).matrix) p c η
112    (transitionOutput_posSemidef Φ ρ hjoint)
113    (transitionOutput_posSemidef Φ ρ (keptJoint_nonneg hjoint keep))
114    (fun j => (σ j).positive) (fun j => (τ j).positive) hp
115    (fun j => by rw [(τ j).trace_one]; rfl) hpsum
116    (by simpa only [transitionOutput_trace_re] using hjointmass)
117    (fun j => show transitionOutput Φ ρ (keptJoint joint keep) j ≤
118      transitionOutput Φ ρ joint j from transitionOutput_sub_kept_posSemidef Φ ρ hjoint keep j)
119    hc0 hc1 hη hsectorLower
120  simp_rw [transitionOutput_trace_difference] at h
121  simpa only [liftedOutput, transitionOutput_trace_re] using h
122 
123end Cloning.MatrixTransitionAchievability