Offline · exact source
Exact Lean source

PCTPrescribedExtension

formalization/Cloning/PCTPrescribedExtension.lean

Source hash: 60f6c35414f27324bcc4093d1c5890f1562fbb3fdc1546a4975e7fa0257932f3

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.TensorCloningPrescribedRestriction
2import Cloning.TensorCloningPayoff
3import Cloning.WernerAsymptotics
4 
5/-! Extend any physical n-to-(n+t) protocol to all requested sample sizes:
6exact restriction for m≤n, and the given protocol for m>n. -/
7noncomputable section
8open scoped Topology
9open Filter
10namespace Cloning.PCTPrescribed
11open Cloning.PCT Cloning.TensorLie Cloning.TensorCloning Cloning.InfiniteTraceClass
12open Cloning.PCTPhysicalState
13set_option backward.isDefEq.respectTransparency false
14set_option maxHeartbeats 1000000
15variable {d : ℕ}
16 
17/-- The small-output branch is literal tensor-prefix partial trace. -/
18def extendChannel
19    (Φ : ∀ n t : ℕ, QuantumChannel (TensorRegister n (Fin d)) (TensorRegister (n+t) (Fin d)))
20    (n m : ℕ) : QuantumChannel (TensorRegister n (Fin d)) (TensorRegister m (Fin d)) :=
21  if h : m≤n then restrictionChannel n m d h else by
22    have he : n+(m-n)=m := Nat.add_sub_of_le (le_of_lt (lt_of_not_ge h))
23    exact he ▸ Φ n (m-n)
24 
25theorem extendChannel_of_le
26    (Φ : ∀ n t : ℕ, QuantumChannel (TensorRegister n (Fin d)) (TensorRegister (n+t) (Fin d)))
27    (n m : ℕ) (h : m≤n) : extendChannel Φ n m=restrictionChannel n m d h := by
28  simp only [extendChannel, dif_pos h]
29 
30theorem extendChannel_add
31    (Φ : ∀ n t : ℕ, QuantumChannel (TensorRegister n (Fin d)) (TensorRegister (n+t) (Fin d)))
32    (n t : ℕ) (ht : 0<t) : extendChannel Φ n (n+t)=Φ n t := by
33  unfold extendChannel
34  rw [dif_neg (by omega : ¬n+t≤n)]
35  apply eq_of_heq
36  dsimp only
37  apply rec_heq_of_heq
38    (C := fun q : ℕ => QuantumChannel (TensorRegister n (Fin d)) (TensorRegister q (Fin d)))
39    (Nat.add_sub_of_le (by omega : n≤n+t))
40  rw [Nat.add_sub_cancel_left]
41 
42theorem extendChannel_self
43    (Φ : ∀ n t : ℕ, QuantumChannel (TensorRegister n (Fin d)) (TensorRegister (n+t) (Fin d)))
44    (n : ℕ) (X : TraceClass (TensorRegister n (Fin d))) :
45    (extendChannel Φ n n).toLinearMap X=X := by
46  rw [extendChannel_of_le Φ n n le_rfl]
47  exact restrictionChannel_self n d le_rfl X
48 
49theorem extendChannel_tensorState_of_le [Nonempty (Fin d)]
50    (Φ : ∀ n t : ℕ, QuantumChannel (TensorRegister n (Fin d)) (TensorRegister (n+t) (Fin d)))
51    (n m : ℕ) (h : m≤n) (ρ : Cloning.MatrixFidelity.State (Fin d)) :
52    (extendChannel Φ n m).toLinearMap (tensorState ρ n).1=(tensorState ρ m).1 := by
53  cases d with
54  | zero => exact Fin.elim0 (Classical.choice (inferInstance : Nonempty (Fin 0)))
55  | succ d =>
56    rw [extendChannel_of_le Φ n m h]
57    exact restrictionChannel_tensorState n m h ρ
58 
59theorem extendChannel_payoff_of_le [Nonempty (Fin d)]
60    (Φ : ∀ n t : ℕ, QuantumChannel (TensorRegister n (Fin d)) (TensorRegister (n+t) (Fin d)))
61    (n m : ℕ) (h : m≤n) (ρ : Cloning.MatrixFidelity.State (Fin d)) :
62    statePayoff n m (extendChannel Φ n m) ρ=1 := by
63  have he : (tensorState ρ n).map (extendChannel Φ n m).toPositiveTracePreservingMap=
64      tensorState ρ m := Subtype.ext (extendChannel_tensorState_of_le Φ n m h ρ)
65  change ((tensorState ρ n).map _).rootFidelity (tensorState ρ m)=1
66  rw [he, Cloning.Hybrid.PositiveTraceClass.rootFidelity_self, norm_tensorState]
67 
68theorem extendChannel_payoff_of_gt [Nonempty (Fin d)]
69    (Φ : ∀ n t : ℕ, QuantumChannel (TensorRegister n (Fin d)) (TensorRegister (n+t) (Fin d)))
70    (n m : ℕ) (h : n<m) (ρ : Cloning.MatrixFidelity.State (Fin d)) :
71    statePayoff n m (extendChannel Φ n m) ρ =
72      statePayoff n (n+(m-n)) (Φ n (m-n)) ρ := by
73  obtain ⟨t,rfl⟩ := Nat.exists_eq_add_of_le h.le
74  rw [Nat.add_sub_cancel_left, extendChannel_add Φ n t (by omega)]
75 
76theorem eventually_output_gt_input (m : ℕ → ℕ) {γ : ℝ} (hγ : 1<γ)
77    (h : Tendsto (fun n => (m n : ℝ)/n) atTop (𝓝 γ)) : ∀ᶠ n in atTop, n<m n :=
78  (Cloning.WernerAsymptotics.eventually_add_le m hγ h 1).mono (fun _ hn => by omega)
79 
80theorem addedCopies_ratio (m : ℕ → ℕ) {γ : ℝ} (hγ : 1<γ)
81    (h : Tendsto (fun n => (m n : ℝ)/n) atTop (𝓝 γ)) :
82    Tendsto (fun n => ((n+(m n-n) : ℕ) : ℝ)/n) atTop (𝓝 γ) := by
83  apply h.congr'
84  filter_upwards [eventually_output_gt_input m hγ h] with n hn
85  rw [Nat.add_sub_of_le hn.le]
86 
87theorem eventually_extendChannel_payoff [Nonempty (Fin d)]
88    (Φ : ∀ n t : ℕ, QuantumChannel (TensorRegister n (Fin d)) (TensorRegister (n+t) (Fin d)))
89    (ρ : Cloning.MatrixFidelity.State (Fin d)) (m : ℕ → ℕ) {γ : ℝ} (hγ : 1<γ)
90    (h : Tendsto (fun n => (m n : ℝ)/n) atTop (𝓝 γ)) :
91    (fun n => statePayoff n (n+(m n-n)) (Φ n (m n-n)) ρ) =ᶠ[atTop]
92      (fun n => statePayoff n (m n) (extendChannel Φ n (m n)) ρ) := by
93  filter_upwards [eventually_output_gt_input m hγ h] with n hn
94  exact (extendChannel_payoff_of_gt Φ n (m n) hn ρ).symm
95 
96end Cloning.PCTPrescribed