Definitions for Relative Entropy Bounds on Quantum, Private and Repeater Capacities
DefinitionQAlgorithms_Papers_Independent_Bridge50_P25The objects the formalized statements of Relative Entropy Bounds on Quantum, Private and Repeater Capacities (arXiv:1604.03448) are stated in. Each was checked against the paper by a blind read-back and a moderator.
paperSandwichedRenyi: PDF pp.3--4, (4): include the Umegaki endpoint at alpha=1 and support failures. This endpoint wrapper reuses frozen relative/divergence; Next46.P23.renyi is a natural-log Petz overlap, a different quantity.entanglementRenyi: PDF p.5, Definition II.1: infimum over all separable density matrices.channelEMax: PDF p.5, (9): arbitrary positive finite reference dimension and mixed input.channelFormationSupremum: PDF p.9: channel formation, using the accepted pure-ensemble INFIMUM. Printed: sup over ensembles. Changed: inf. Why: the named formation measure, the cited argument and EC use the convex roof, not entanglement of assistance. Independent moderation of this source correction remains required. Information100.P08.channelFormation takes a fixed input marginal; here the supremum is over all reference/input densities, as required by p.9.maxQuotients: PDF p.15: positive-copy Emax quotients, with no zero denominator.regularizedEMax: PDF p.15: computed regularization; the corollary explicitly asserts convergence.formationQuotients: PDF p.9, (12): positive-copy formation quotients.regularizedFormationCost: PDF p.9, (12): computed regularization, whose convergence is part of Theorem II.4. Dependency50.P41.channelCost is an operational simulation infimum on Fin registers. This is the computed regularized formation in (12), not that definition.LOCCOn: PDF pp.5--6, (10): transport the accepted finite adaptive LOCC tree to arbitrary finite local bases. Both matrix indices use the same local bijections.sendChannelRegister: PDF pp.6,10--12: send the middle input from Alice to Bob. The input split is (A,I):B, the output split A:(J,B). Frozen functions named transfer describe modular evolution or lattice Fourier matrices; neither sends the middle register across the party cut.TwoWayChannelProtocol: PDF p.6, Definition II.3: exactly m actual channel applications, with arbitrary finite changing workspaces and finite adaptive two-way LOCC between them. A zero-use tail is a local operation. At positive m the first operation is T; preparation of the initial state is separate. Consecutive local operations can compose. Dependency50.P07.Protocol is a measurement/message protocol on shared copies; it has no channel-use recursion and cannot model Definition II.3.privateStateInPartyOrder: PDF p.7, Definition II.6: the twisted maximally entangled key and arbitrary shield density, written in party order (Ak,As):(Bk,Bs). Only the diagonal-key blocks of a controlled twisting act on the maximally entangled key. Only the register ordering and unitary-group coercion adapt the frozen Information100.P67.privateState; its matrix formula is not redeclared.entangledKeyTarget: PDF p.7, Definition II.4: normalized maximally entangled key, with trivial local shield factors when s=0. The only use for quantum targets imposes s=0. Dependency50.P32.entangledTarget is a port-indexed channel Choi target. This target reuses the private-state formula with identity twist and trivial shield (s=0 in every quantum code); there is no copied entangled-target formula.TwoWayGenerationCode: PDF pp.6--8, Definitions II.3--II.7: an actual positive-use code. true selects private generation, false selects entanglement generation. The initial state is separable; the target and output have the same key and (equal) shield dimensions. Errors are computed below, never supplied as free scalars. Frontier30.P06.BlockCode is a feedback classical-message code, without this paper's private/entangled targets and separable preparation.generationCodeError: PDF pp.7--8: the code's actual half trace-norm error. Information100.P67.codeError is a classical privacy criterion; this is Definition II.7's half trace distance to an actual private-state target.TwoWayAchievableRate: PDF pp.7--8, Definitions II.5,II.8: the exact sequence-based achievable rates. Finite initial code lengths cause no division-by-zero default; every code has uses>0. Information100.P04.Achievable is state-distillation achievability under a different operation class; the channel protocol sequences here are essential.twoWayGenerationCapacity: PDF pp.7--8: extended supremum over the nonnegative achievable rates. Frozen functions named capacity describe one-shot messages or specialized channels; this is the unrestricted two-way operational supremum of II.5/II.8.PrivateStrongConverseBound: PDF p.8: includes the upper bound and the full error-to-one strong converse, for every code sequence and every convergent rate above the bound.forgetExtra: PDF p.16: trace out only the extra subsystem, retaining the A:B split.reducedChannel: PDF p.17: the reduced channel is computed from the given channel.BreaksEntanglementAllReferences: PDF p.17: EB means separable output for EVERY reference and input state. Frozen EB predicates are qubit-only, same-input/output-size, or Fin-indexed pure-input tests. This interface keeps arbitrary rectangular bases and references.normalizedChannelChoi: PDF pp.3,17: normalized Choi matrix, reference first. Reuse the frozen normalized maximally entangled ket rather than redeclaring omega. Other frozen Choi conventions include unnormalized and output-first matrices.choiEBBound: PDF p.17: infimum over EB CHANNELS, preserving the Choi input marginal. Theorem V.2 asserts attainment, rather than assuming it.StateFunctional: PDF p.25: dimension-indexed state functional; values on nonstates are unused.IsDimensionChangingLOCCMonotone: PDF pp.25--26: nonnegative, real-valued on states and monotone under all finite LOCC, including local addition/disposal and arbitrary dimension changes. No convexity or vanishing-on-separable-states axiom is imposed. Frontier30.P30.IsLOCCMonotone assumes selective average monotonicity. A.1 only requires deterministic LOCC monotonicity across arbitrary dimensions.channelValue: PDF p.25: associated channel supremum, which may be infinite for arbitrary E.attachInput: PDF p.25, (A1): attach the single-use resource, with the input and its reference at Alice and the resource's output at Bob.ImplementsFrom: PDF p.25, Definition A.1: the SAME sigma supplies the resource through one use of T. The implementation holds on every input density. Alice's final system is one-dimensional; no residual resource or extra channel use is available.channelSquashed: PDF p.8, (11): channel squashed entanglement using the accepted all-finite-extension state infimum, with arbitrary finite mixed reference input.transpositionBound: PDF pp.8,19: the transposition bound, using the accepted full stabilized trace-norm diamond norm on the actual output-transposed linear map.flowerMatrix: PDF p.18, (24): coordinate adapter for the accepted DFT flower state. Each local register is (d-dimensional shield, Boolean key); the two-party state is the trace over the actual purifying d-dimensional register.flowerChannel: PDF p.19: inverse NORMALIZED Choi construction, with input dimension 2d. Its action on every operator, not only diagonal states, is specified.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_MatrixMapPositivity
import Definitions.Def_QAlgorithms_Defs_FiniteRegisters
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P63
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P67
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P71
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P35
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P08
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P33
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P19
/-!
Christandl--Mueller-Hermes, arXiv:1604.03448v2. Finite positive dimensions;
all logarithms are in bits. Only pinned accepted modules are imported.
The frozen matrix type, channel tensor power, normalized entangled ket, and
private-state matrix formula are reused directly. Distinct local interface names
separate this paper's conventions from unrelated accepted same-name declarations.
Paper-local definitions supply the operational conventions of Definitions II.3--II.8
and Appendix A. The formation infimum corrects the printed supremum on PDF p.9.
The three deferred repeater nodes are documented in HARD.md and GAPS.json.
Compilation is pending the separate mechanical handoff.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Bridge50.P25
open QAlgorithms QAlgorithms.Entanglement Filter
open scoped Matrix ComplexConjugate ComplexOrder BigOperators
attribute [local instance] Classical.propDecidable Classical.decEq
open QAlgorithms.Papers.Independent.Information100.P63 (Mat)
open QAlgorithms.Papers.Independent.Information100.P71 (channelPower)
open QAlgorithms.Papers.Independent.Dependency50.P35 (maxRelative)
open QAlgorithms.Papers.Independent.Support50.P21 (eMax)
variable {I J A B C D : Type}
variable [Fintype I] [DecidableEq I] [Nonempty I]
variable [Fintype J] [DecidableEq J] [Nonempty J]
variable [Fintype A] [DecidableEq A] [Nonempty A]
variable [Fintype B] [DecidableEq B] [Nonempty B]
variable [Fintype C] [DecidableEq C] [Nonempty C]
variable [Fintype D] [DecidableEq D] [Nonempty D]
/-- PDF pp.3--4, (4): include the Umegaki endpoint at alpha=1 and support failures.
This endpoint wrapper reuses frozen relative/divergence; Next46.P23.renyi is
a natural-log Petz overlap, a different quantity. -/
def paperSandwichedRenyi (alpha : ℝ) (rho sigma : Mat I) : EReal :=
if alpha = 1 then QAlgorithms.Papers.Independent.Dependency50.P35.relative rho sigma
else QAlgorithms.Papers.Independent.Dependency50.P35.divergence alpha rho sigma
/-- PDF p.5, Definition II.1: infimum over all separable density matrices. -/
def entanglementRenyi (alpha : ℝ) (rho : Mat (A × B)) : EReal :=
sInf {v | ∃ sigma : Mat (A × B), IsSeparableDensity sigma ∧ v = paperSandwichedRenyi alpha rho sigma}
/-- PDF p.5, (9): arbitrary positive finite reference dimension and mixed input. -/
def channelEMax (T : Superop I J) : EReal :=
sSup {v | ∃ r : ℕ, ∃ rho : Mat (Fin (r + 1) × I),
IsDensityMatrix rho ∧ v = eMax (idTensorSuperop T rho)}
/-- PDF p.9: channel formation, using the accepted pure-ensemble INFIMUM.
Printed: sup over ensembles. Changed: inf. Why: the named formation measure,
the cited argument and EC use the convex roof, not entanglement of assistance.
Independent moderation of this source correction remains required.
Information100.P08.channelFormation takes a fixed input marginal; here the
supremum is over all reference/input densities, as required by p.9. -/
def channelFormationSupremum (T : Superop I J) : EReal :=
sSup {v | ∃ r : ℕ, ∃ rho : Mat (Fin (r + 1) × I),
IsDensityMatrix rho ∧ v =
(QAlgorithms.Papers.Independent.Information100.P08.formation (idTensorSuperop T rho) : EReal)}
/-- PDF p.15: positive-copy Emax quotients, with no zero denominator. -/
def maxQuotients (T : Superop I J) (n : ℕ) : EReal :=
((1 / ((n + 1 : ℕ) : ℝ) : ℝ) : EReal) * channelEMax (channelPower T (n + 1))
/-- PDF p.15: computed regularization; the corollary explicitly asserts convergence. -/
def regularizedEMax (T : Superop I J) : EReal := liminf (maxQuotients T) atTop
/-- PDF p.9, (12): positive-copy formation quotients. -/
def formationQuotients (T : Superop I J) (n : ℕ) : EReal :=
((1 / ((n + 1 : ℕ) : ℝ) : ℝ) : EReal) * channelFormationSupremum (channelPower T (n + 1))
/-- PDF p.9, (12): computed regularization, whose convergence is part of Theorem II.4.
Dependency50.P41.channelCost is an operational simulation infimum on Fin
registers. This is the computed regularized formation in (12), not that definition. -/
def regularizedFormationCost (T : Superop I J) : EReal := liminf (formationQuotients T) atTop
/-- PDF pp.5--6, (10): transport the accepted finite adaptive LOCC tree to
arbitrary finite local bases. Both matrix indices use the same local bijections. -/
def LOCCOn (L : Superop (A × B) (C × D)) : Prop :=
QAlgorithms.Papers.Independent.Information100.P21.FiniteLOCC
(fun X : Mat (Fin (Fintype.card A) × Fin (Fintype.card B)) =>
let input : Mat (A × B) := fun i j =>
X ((Fintype.equivFin A) i.1, (Fintype.equivFin B) i.2)
((Fintype.equivFin A) j.1, (Fintype.equivFin B) j.2)
fun i j => L input
((Fintype.equivFin C).symm i.1, (Fintype.equivFin D).symm i.2)
((Fintype.equivFin C).symm j.1, (Fintype.equivFin D).symm j.2))
/-- PDF pp.6,10--12: send the middle input from Alice to Bob.
The input split is (A,I):B, the output split A:(J,B).
Frozen functions named transfer describe modular evolution or lattice Fourier
matrices; neither sends the middle register across the party cut. -/
def sendChannelRegister (T : Superop I J) : Superop ((A × I) × B) (A × (J × B)) :=
fun rho p q => T (fun i j => rho ((p.1, i), p.2.2) ((q.1, j), q.2.2)) p.2.1 q.2.1
/-- PDF p.6, Definition II.3: exactly m actual channel applications, with
arbitrary finite changing workspaces and finite adaptive two-way LOCC between them.
A zero-use tail is a local operation. At positive m the first operation is T;
preparation of the initial state is separate. Consecutive local operations can compose.
Dependency50.P07.Protocol is a measurement/message protocol on shared copies;
it has no channel-use recursion and cannot model Definition II.3. -/
inductive TwoWayChannelProtocol (T : Superop I J) (C D : Type)
[Fintype C] [DecidableEq C] [Nonempty C]
[Fintype D] [DecidableEq D] [Nonempty D] :
(m a b : ℕ) → Superop ((Fin (a + 1) × I) × Fin (b + 1)) (C × D) → Prop where
| stop {a b : ℕ}
(L : Superop ((Fin (a + 1) × I) × Fin (b + 1)) (C × D))
(locc : LOCCOn L) : TwoWayChannelProtocol T C D 0 a b L
| step {m a b aa bb : ℕ}
(L : Superop (Fin (a + 1) × (J × Fin (b + 1)))
((Fin (aa + 1) × I) × Fin (bb + 1)))
(locc : LOCCOn L)
(P : Superop ((Fin (aa + 1) × I) × Fin (bb + 1)) (C × D))
(rest : TwoWayChannelProtocol T C D m aa bb P) :
TwoWayChannelProtocol T C D (m + 1) a b (fun rho => P (L (sendChannelRegister T rho)))
/-- PDF p.7, Definition II.6: the twisted maximally entangled key and arbitrary
shield density, written in party order (Ak,As):(Bk,Bs). Only the diagonal-key
blocks of a controlled twisting act on the maximally entangled key.
Only the register ordering and unitary-group coercion adapt the frozen
Information100.P67.privateState; its matrix formula is not redeclared. -/
def privateStateInPartyOrder (K s : ℕ) (sigma : Mat (Fin (s + 1) × Fin (s + 1)))
(U : Fin K → Matrix.unitaryGroup (Fin (s + 1) × Fin (s + 1)) ℂ) :
Mat ((Fin K × Fin (s + 1)) × (Fin K × Fin (s + 1))) :=
fun p q => QAlgorithms.Papers.Independent.Information100.P67.privateState
(fun i => (U i : Mat (Fin (s + 1) × Fin (s + 1)))) sigma
(p.1.1, (p.1.2, (p.2.1, p.2.2)))
(q.1.1, (q.1.2, (q.2.1, q.2.2)))
/-- PDF p.7, Definition II.4: normalized maximally entangled key, with trivial
local shield factors when s=0. The only use for quantum targets imposes s=0.
Dependency50.P32.entangledTarget is a port-indexed channel Choi target.
This target reuses the private-state formula with identity twist and trivial
shield (s=0 in every quantum code); there is no copied entangled-target formula. -/
def entangledKeyTarget (K s : ℕ) :
Mat ((Fin K × Fin (s + 1)) × (Fin K × Fin (s + 1))) :=
privateStateInPartyOrder K s (fun _ _ => 1) (fun _ => 1)
/-- PDF pp.6--8, Definitions II.3--II.7: an actual positive-use code.
true selects private generation, false selects entanglement generation.
The initial state is separable; the target and output have the same key and
(equal) shield dimensions. Errors are computed below, never supplied as free scalars.
Frontier30.P06.BlockCode is a feedback classical-message code, without
this paper's private/entangled targets and separable preparation. -/
structure TwoWayGenerationCode (T : Superop I J) (isPrivate : Bool) where
key : ℕ
uses : ℕ
uses_pos : 0 < uses
alice : ℕ
bob : ℕ
shield : ℕ
initial : Mat ((Fin (alice + 1) × I) × Fin (bob + 1))
initial_density : IsDensityMatrix initial
initial_separable : IsSeparableDensity initial
evolution : Superop ((Fin (alice + 1) × I) × Fin (bob + 1))
((Fin (2 ^ key) × Fin (shield + 1)) × (Fin (2 ^ key) × Fin (shield + 1)))
protocol : TwoWayChannelProtocol T (Fin (2 ^ key) × Fin (shield + 1))
(Fin (2 ^ key) × Fin (shield + 1)) uses alice bob evolution
target : Mat ((Fin (2 ^ key) × Fin (shield + 1)) ×
(Fin (2 ^ key) × Fin (shield + 1)))
target_density : IsDensityMatrix target
private_target : isPrivate = true → ∃ sigma U,
IsDensityMatrix sigma ∧ target = privateStateInPartyOrder (2 ^ key) shield sigma U
quantum_target : isPrivate = false → shield = 0 ∧ target = entangledKeyTarget (2 ^ key) shield
/-- PDF pp.7--8: the code's actual half trace-norm error.
Information100.P67.codeError is a classical privacy criterion; this is
Definition II.7's half trace distance to an actual private-state target. -/
def generationCodeError {T : Superop I J} {isPrivate : Bool} (c : TwoWayGenerationCode T isPrivate) : ℝ :=
traceNorm (c.evolution c.initial - c.target) / 2
/-- PDF pp.7--8, Definitions II.5,II.8: the exact sequence-based achievable rates.
Finite initial code lengths cause no division-by-zero default; every code has uses>0.
Information100.P04.Achievable is state-distillation achievability under a
different operation class; the channel protocol sequences here are essential. -/
def TwoWayAchievableRate (T : Superop I J) (isPrivate : Bool) (R : ℝ) : Prop :=
0 ≤ R ∧ ∃ codes : ℕ → TwoWayGenerationCode T isPrivate,
Tendsto (fun n => (codes n).uses) atTop atTop ∧
Tendsto (fun n => ((codes n).key : ℝ) / ((codes n).uses : ℝ)) atTop (nhds R) ∧
Tendsto (fun n => generationCodeError (codes n)) atTop (nhds 0)
/-- PDF pp.7--8: extended supremum over the nonnegative achievable rates.
Frozen functions named capacity describe one-shot messages or specialized
channels; this is the unrestricted two-way operational supremum of II.5/II.8. -/
def twoWayGenerationCapacity (T : Superop I J) (isPrivate : Bool) : EReal :=
sSup {v | ∃ R : ℝ, TwoWayAchievableRate T isPrivate R ∧ v = (R : EReal)}
/-- PDF p.8: includes the upper bound and the full error-to-one strong converse,
for every code sequence and every convergent rate above the bound. -/
def PrivateStrongConverseBound (T : Superop I J) (bound : EReal) : Prop :=
0 ≤ bound ∧ twoWayGenerationCapacity T true ≤ bound ∧
∀ (codes : ℕ → TwoWayGenerationCode T true) (R : ℝ),
Tendsto (fun n => (codes n).uses) atTop atTop →
Tendsto (fun n => ((codes n).key : ℝ) / ((codes n).uses : ℝ)) atTop (nhds R) →
bound < (R : EReal) → Tendsto (fun n => generationCodeError (codes n)) atTop (nhds 1)
/-- PDF p.16: trace out only the extra subsystem, retaining the A:B split. -/
def forgetExtra (rho : Mat (A × (B × C))) : Mat (A × B) :=
fun i j => ∑ c, rho (i.1, (i.2, c)) (j.1, (j.2, c))
/-- PDF p.17: the reduced channel is computed from the given channel. -/
def reducedChannel (T : Superop I (B × C)) : Superop I B :=
fun X => traceRight (T X)
/-- PDF p.17: EB means separable output for EVERY reference and input state.
Frozen EB predicates are qubit-only, same-input/output-size, or Fin-indexed
pure-input tests. This interface keeps arbitrary rectangular bases and references. -/
def BreaksEntanglementAllReferences (S : Superop I J) : Prop :=
∀ r : ℕ, ∀ rho : Mat (Fin (r + 1) × I), IsDensityMatrix rho →
IsSeparableDensity (idTensorSuperop S rho)
/-- PDF pp.3,17: normalized Choi matrix, reference first. Reuse the frozen
normalized maximally entangled ket rather than redeclaring omega. Other frozen
Choi conventions include unnormalized and output-first matrices. -/
def normalizedChannelChoi (T : Superop I J) : Mat (I × J) :=
idTensorSuperop T (pureDensity (finiteMaxEntangled I))
/-- PDF p.17: infimum over EB CHANNELS, preserving the Choi input marginal.
Theorem V.2 asserts attainment, rather than assuming it. -/
def choiEBBound (T : Superop I J) : EReal :=
sInf {v | ∃ S : Superop I J, IsChannel S ∧ BreaksEntanglementAllReferences S ∧
v = maxRelative (normalizedChannelChoi T) (normalizedChannelChoi S)}
/-- PDF p.25: dimension-indexed state functional; values on nonstates are unused. -/
abbrev StateFunctional := ∀ (A B : Type) [Fintype A] [DecidableEq A] [Nonempty A]
[Fintype B] [DecidableEq B] [Nonempty B], Mat (A × B) → ℝ
/-- PDF pp.25--26: nonnegative, real-valued on states and monotone under all
finite LOCC, including local addition/disposal and arbitrary dimension changes.
No convexity or vanishing-on-separable-states axiom is imposed.
Frontier30.P30.IsLOCCMonotone assumes selective average monotonicity.
A.1 only requires deterministic LOCC monotonicity across arbitrary dimensions. -/
def IsDimensionChangingLOCCMonotone (E : StateFunctional) : Prop :=
(∀ (A B : Type) [Fintype A] [DecidableEq A] [Nonempty A]
[Fintype B] [DecidableEq B] [Nonempty B] (rho : Mat (A × B)),
IsDensityMatrix rho → 0 ≤ E A B rho) ∧
(∀ (A B C D : Type) [Fintype A] [DecidableEq A] [Nonempty A]
[Fintype B] [DecidableEq B] [Nonempty B]
[Fintype C] [DecidableEq C] [Nonempty C]
[Fintype D] [DecidableEq D] [Nonempty D]
(L : Superop (A × B) (C × D)) (rho : Mat (A × B)),
LOCCOn L → IsDensityMatrix rho → E C D (L rho) ≤ E A B rho)
/-- PDF p.25: associated channel supremum, which may be infinite for arbitrary E. -/
def channelValue (E : StateFunctional) (T : Superop I J) : EReal :=
sSup {v | ∃ r : ℕ, ∃ rho : Mat (Fin (r + 1) × I),
IsDensityMatrix rho ∧ v = (E (Fin (r + 1)) J (idTensorSuperop T rho) : EReal)}
/-- PDF p.25, (A1): attach the single-use resource, with the input and its
reference at Alice and the resource's output at Bob. -/
def attachInput (X : Mat I) (resource : Mat (A × J)) : Mat ((I × A) × J) :=
fun i j => X i.1.1 j.1.1 * resource (i.1.2, i.2) (j.1.2, j.2)
/-- PDF p.25, Definition A.1: the SAME sigma supplies the resource through one
use of T. The implementation holds on every input density. Alice's final system
is one-dimensional; no residual resource or extra channel use is available. -/
def ImplementsFrom (T : Superop I J) (sigma : Mat (A × I))
(L : Superop ((I × A) × J) (Unit × J)) : Prop :=
IsDensityMatrix sigma ∧ LOCCOn L ∧ ∀ X : Mat I, IsDensityMatrix X →
(fun i j => L (attachInput X (idTensorSuperop T sigma)) ((), i) ((), j)) = T X
/-- PDF p.8, (11): channel squashed entanglement using the accepted
all-finite-extension state infimum, with arbitrary finite mixed reference input. -/
def channelSquashed (T : Superop I J) : EReal :=
sSup {v | ∃ r : ℕ, ∃ rho : Mat (Fin (r + 1) × I),
IsDensityMatrix rho ∧ v =
(QAlgorithms.Papers.Independent.Dependency50.P19.squashed (idTensorSuperop T rho) : EReal)}
/-- PDF pp.8,19: the transposition bound, using the accepted full stabilized
trace-norm diamond norm on the actual output-transposed linear map. -/
def transpositionBound (T : Superop I J) : ℝ :=
Real.logb 2 (QAlgorithms.Papers.Independent.Information100.P71.diamond (fun X => (T X).transpose))
/-- PDF p.18, (24): coordinate adapter for the accepted DFT flower state.
Each local register is (d-dimensional shield, Boolean key); the two-party
state is the trace over the actual purifying d-dimensional register. -/
def flowerMatrix (d : ℕ) : Mat ((Fin d × Bool) × (Fin d × Bool)) :=
fun p q => QAlgorithms.Papers.Independent.Claimed50.P33.multipartiteFlower 2 d
![p.1, p.2] ![q.1, q.2]
/-- PDF p.19: inverse NORMALIZED Choi construction, with input dimension 2d.
Its action on every operator, not only diagonal states, is specified. -/
def flowerChannel (d : ℕ) : Superop (Fin d × Bool) (Fin d × Bool) :=
fun X i j => (2 * d : ℂ) * ∑ a, ∑ b, X a b * flowerMatrix d (a,i) (b,j)
/-! Sanity examples: support endpoint, fixed reference, partial action,
normalization coefficient, zero-weight infinity and no-use protocol semantics. -/
example (T : Superop I J) (n : ℕ) :
channelPower T n = piSuperop (fun _ : Fin n => T) := rfl
example (K s : ℕ) (sigma : Mat (Fin (s + 1) × Fin (s + 1)))
(U : Fin K → Matrix.unitaryGroup (Fin (s + 1) × Fin (s + 1)) ℂ)
(p q : (Fin K × Fin (s + 1)) × (Fin K × Fin (s + 1))) :
privateStateInPartyOrder K s sigma U p q =
QAlgorithms.Papers.Independent.Information100.P67.privateState
(fun i => (U i : Mat (Fin (s + 1) × Fin (s + 1)))) sigma
(p.1.1, (p.1.2, (p.2.1, p.2.2)))
(q.1.1, (q.1.2, (q.2.1, q.2.2))) := rfl
example (rho sigma : Mat I) :
paperSandwichedRenyi 1 rho sigma = QAlgorithms.Papers.Independent.Dependency50.P35.relative rho sigma := by
simp [paperSandwichedRenyi]
example (rho : Mat ((A × I) × B)) (p q : A × (J × B)) (T : Superop I J) :
sendChannelRegister T rho p q =
T (fun i j => rho ((p.1,i),p.2.2) ((q.1,j),q.2.2)) p.2.1 q.2.1 := rfl
example (L : Superop ((Fin 1 × I) × Fin 1) (C × D)) (hL : LOCCOn L) :
TwoWayChannelProtocol (I := I) (J := J) (fun _ => 0) C D 0 0 0 L := TwoWayChannelProtocol.stop L hL
example : pureDensity (finiteMaxEntangled (Fin 1)) (0,0) (0,0) = 1 := by
simp [finiteMaxEntangled, pureDensity]
example : (0 : EReal) * (⊤ : EReal) = 0 := by simp
example (T : Superop I (B × C)) (X : Mat I) :
reducedChannel T X = traceRight (T X) := rfl
example (X : Mat I) (s : Mat (A × J)) (i j : (I × A) × J) :
attachInput X s i j = X i.1.1 j.1.1 * s (i.1.2,i.2) (j.1.2,j.2) := rfl
example (sigma : Mat (Fin 1 × Fin 1)) :
privateStateInPartyOrder 1 0 sigma (fun _ => 1) ((0,0),(0,0)) ((0,0),(0,0)) =
sigma (0,0) (0,0) := by
simp [privateStateInPartyOrder,
QAlgorithms.Papers.Independent.Information100.P67.privateState]
example (d : ℕ) : flowerChannel d 0 = 0 := by
ext i j
simp [flowerChannel]
example (d : ℕ) (p q : (Fin d × Bool) × (Fin d × Bool)) :
flowerMatrix d p q = QAlgorithms.Papers.Independent.Claimed50.P33.multipartiteFlower 2 d
![p.1,p.2] ![q.1,q.2] := rfl
example {T : Superop I J} {isPrivate : Bool} (code : TwoWayGenerationCode T isPrivate) :
0 < code.uses := code.uses_pos
example {T : Superop I J} {isPrivate : Bool} (code : TwoWayGenerationCode T isPrivate)
(h : code.evolution code.initial = code.target) : generationCodeError code = 0 := by
simp [generationCodeError, h, traceNorm, cfc_zero]
example {T : Superop I J} {R : ℝ} (h : TwoWayAchievableRate T true R) : 0 ≤ R := h.1
example {T : Superop I J} {bound : EReal} (h : PrivateStrongConverseBound T bound) :
twoWayGenerationCapacity T true ≤ bound := h.2.1
example {T : Superop I J} {sigma : Mat (A × I)}
{L : Superop ((I × A) × J) (Unit × J)} (h : ImplementsFrom T sigma L) :
IsDensityMatrix sigma := h.1
/-! One headline theorem per nondeferred node. -/
end QAlgorithms.Papers.Independent.Bridge50.P25
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Bridge50.P25.BreaksEntanglementAllReferences
For finite index types , with the nonemptiness instances needed for separable density matrices, and an arbitrary matrix map , this property requires that for every natural number and every positive semidefinite trace-one matrix on , the matrix defined by
have a finite decomposition
where every is a density matrix on and every is a density matrix on . The reference dimensions range over all positive integers, including dimension when . A decomposition with cannot satisfy the weight-sum condition. The definition does not separately require to be a channel.
QAlgorithms.Papers.Independent.Bridge50.P25.ImplementsFrom
For finite registers , a map from matrices on to matrices on , a matrix on , and a map from matrices on to matrices on , this predicate says that is positive semidefinite with trace , that is finite LOCC across the displayed bipartitions after relabelling the registers by finite sets, and that for every positive semidefinite trace-one matrix on ,
Here the tensor product is ordered as , with entries , and the latter matrix has entries , where . Finite LOCC means a finite recursion of local Kraus instruments, each satisfying , followed by outcome-dependent such recursions and summation of branch outputs, with the identity as a terminal operation. The required equality is only for density-matrix inputs ; the predicate does not separately require to be a channel.
QAlgorithms.Papers.Independent.Bridge50.P25.IsDimensionChangingLOCCMonotone
For a functional assigning a real number to every complex matrix on a pair of finite, nonempty register types equipped with decidable equality, this predicate requires both that whenever is positive semidefinite with trace , and that, for every four such register types , every map from matrices on to matrices on , and every positive semidefinite trace-one matrix , one has
provided , after relabelling each register by a finite set of the same cardinality, is a finite LOCC map. Here finite LOCC maps are generated by the identity and by finite recursive steps in which one party applies a family of rectangular Kraus matrices satisfying , an outcome-dependent finite LOCC map follows, and the resulting branch outputs are summed. Input and output local dimensions may differ; the predicate imposes no separate convexity or continuity requirement on .
QAlgorithms.Papers.Independent.Bridge50.P25.LOCCOn
For finite types and any function from complex matrices on to complex matrices on , this predicate first relabels each type by its chosen bijection , and similarly for , obtaining
It then requires to belong to the inductively generated class with exactly these rules: the identity on any pair of finite registers belongs; if matrices , indexed by a finite set , satisfy , and each branch map already belongs to the class, then belongs; and the corresponding rule with acting on the second register also belongs. Branch maps have the appropriate intermediate input dimensions and a common final output pair. Thus membership requires a finite derivation using identities and these local Kraus branches. No nonemptiness restriction on these finite registers or on the local outcome counts is imposed by this definition.
QAlgorithms.Papers.Independent.Bridge50.P25.PrivateStrongConverseBound
For an arbitrary matrix map between the finite registers and an extended real number , this property requires , requires that the supremum of achievable nonnegative private-generation rates be at most , and imposes the following condition on every sequence of private-generation codes and every real : if their positive use counts tend to , their natural-number key lengths satisfy , and in the extended real order, then their errors tend to . Such codes begin with separable density matrices, use exactly times interspersed with finite local Kraus protocols with classical branching, and have private targets obtained from a maximally entangled key of dimension and a shield density matrix by key-controlled shield unitaries. Their errors are one half the trace norm of the evolved initial matrix minus the target, with . A nonnegative rate is achievable when a sequence of these codes has diverging use counts, convergent key-length-to-use ratio equal to that rate, and errors tending to zero. The converse condition ranges over code sequences without assuming their errors tend to zero. The value is allowed; for that value, its strict comparison with a real is never satisfied.
QAlgorithms.Papers.Independent.Bridge50.P25.StateFunctional
This abbreviates the type of families that, for every pair of types , each equipped with a finite enumeration, decidable equality, and a witness of nonemptiness, assign a real number to every complex matrix indexed by . The matrix argument is unrestricted: it need not be positive semidefinite, Hermitian, or trace one. The abbreviation imposes no continuity, invariance, monotonicity, or compatibility between the functions assigned to different index types or instances.
QAlgorithms.Papers.Independent.Bridge50.P25.TwoWayAchievableRate
For finite register index types , an arbitrary matrix map , a Boolean , and a real number , this property means that and there exists a sequence of codes , indexed by all natural numbers, such that their positive use counts tend to , their natural-number key lengths satisfy , and their errors tend to . Each code starts from a finite convex mixture of product density matrices across Alice and Bob, uses exactly times with finite local Kraus protocols and classical branching between uses and at the end, and has output key dimension on each side. For , its target has entries when the two key indices in each row and column agree, and zero otherwise, for some shield density matrix and shield unitaries ; for , its shields are one-dimensional and its target is the projector onto . The error is one half the trace norm of the evolved initial matrix minus this target, where . The limits are ordinary sequence limits as ; neither monotonicity of nor a channel assumption on is required.
QAlgorithms.Papers.Independent.Bridge50.P25.TwoWayChannelProtocol
For finite channel-register types , an arbitrary function from matrices on to matrices on , and finite nonempty output types equipped with decidable equality, this inductively defines a predicate on natural numbers and functions from matrices on to matrices on . Its zero-use rule admits every such function that, after relabeling each party’s basis by a finite integer set, has a finite derivation from identity maps and local Kraus branching rules: a local family must satisfy , and its resulting map is the sum of already admitted branch maps applied to , or to the corresponding second-party expression. Its successor rule allows any , any such local-branching map
and any -use protocol from that latter register to , and declares an -use protocol. Here means all complex matrices indexed by , and
These are the only generating rules. The auxiliary dimensions are always positive; permits a final local protocol without applying . No channel assumption on is part of the predicate.
QAlgorithms.Papers.Independent.Bridge50.P25.TwoWayGenerationCode
Given finite input and output index types , with the equality and nonemptiness instances used by the constructions, an arbitrary map , and a Boolean , this structure consists of natural numbers , with ; an initial density matrix on ; an evolution map from matrices on that space to matrices on ; and a target density matrix on the latter space. Here a density matrix is positive semidefinite with complex trace , and the initial matrix must admit a finite convex decomposition into tensor products of density matrices across the displayed Alice–Bob partition. The evolution must be generated recursively by exactly applications of : each application acts on Alice’s -register and places its -output on Bob’s side, followed by a finite local protocol that prepares the registers for the next application; after the last application there is a finite local protocol producing the output. These local protocols are finite trees of local Kraus operations, each local family satisfying , with the continuation allowed to depend on the local outcome, and with the identity as a terminal operation. If , there must exist a density matrix on and unitaries on that space, indexed by , such that
If , one instead requires and to be the projector onto , with the one-dimensional shield registers included. The numbers may be zero. The structure imposes neither a channel assumption on nor a closeness condition between and .
QAlgorithms.Papers.Independent.Bridge50.P25.attachInput
For register types , an arbitrary complex matrix on , and an arbitrary complex matrix on , this defines a matrix on by
Thus the input factor is placed beside in the first grouped register. No positivity, normalization, or channel hypothesis is part of the definition.
QAlgorithms.Papers.Independent.Bridge50.P25.channelEMax
For a finite input type , a finite nonempty output type with decidable equality, and any function from complex matrices on to complex matrices on , this defines
Here is indexed by , and by . A separable density matrix means a finite sum , with nonnegative real weights summing to one and positive semidefinite factors of trace one. Both infima and the outer supremum are taken in the extended reals, with each finite embedded there; an empty innermost set has infimum , and an empty outer set has supremum . Reference dimensions are precisely the positive integers , including dimension one when . No linearity, positivity, or channel assumption is imposed on ; if is empty, no admissible input density matrix exists.
QAlgorithms.Papers.Independent.Bridge50.P25.channelFormationSupremum
For finite types and any function from complex matrices on to complex matrices on , this defines the extended-real supremum, over every and every positive semidefinite trace-one matrix on , of the real quantity
The vectors belong to , their outer products have entries , the partial trace has entries , and , where is applied through the real functional calculus. The inner infimum is the total real infimum, so it equals zero if its defining set is empty or unbounded below; its result is then embedded into the extended reals. The outer empty supremum is . The reference always has positive dimension , including one; is not assumed linear or a channel, so its output need not admit such a decomposition. An empty input type admits no input density matrix.
QAlgorithms.Papers.Independent.Bridge50.P25.channelSquashed
For finite registers with decidable equality and a map from matrices on to matrices on , this defines an extended-real supremum over every reference dimension , , and every positive semidefinite trace-one matrix on . For , the value contributed to the supremum is the real number
embedded into the extended reals, where , , and is indexed by . Partial traces sum matching indices of the discarded register, and , with applied by continuous functional calculus. The partial action is , where . The reference dimension is included. No channel hypothesis on is imposed; if has no density-matrix extension of the indicated kind, the inner real infimum is the totalized empty infimum, .
QAlgorithms.Papers.Independent.Bridge50.P25.channelValue
For a real-valued functional on matrices over finite, nonempty bipartite registers with decidable equality, and a map from complex matrices on the finite input register to matrices on the finite, nonempty output register , this defines the extended real number
where is a matrix on . Explicitly, the -entry of is , with . Each real functional value is embedded into the extended reals before taking the supremum, which may be infinite. The reference dimension is every positive integer , including when ; neither a channel condition on nor monotonicity of is required by this definition.
QAlgorithms.Papers.Independent.Bridge50.P25.choiEBBound
For finite nonempty register index types , with the required decidable equality instances, and an arbitrary matrix map , this defines the extended real number
where the real numbers in the inner infimum are embedded into the extended reals. The outer infimum ranges over maps admitting a finite Kraus representation with , and satisfying this additional condition: for every positive reference dimension and every density matrix on , applying to its -blocks yields a finite convex combination of tensor products of density matrices on and . Here , for or , has entries . A density matrix means a positive semidefinite matrix with trace . Empty infima in the extended reals equal . No channel assumption on is part of the definition.
QAlgorithms.Papers.Independent.Bridge50.P25.entangledKeyTarget
For natural numbers , this defines a complex matrix on . Writing its row index as and its column index as , its entries are
There are no restrictions on the four shield indices : the shield matrix supplied to the construction has every entry equal to , while every twisting unitary is the identity. For , this matrix has trace ; for , it is the projector onto . The case is included and gives a matrix on an empty index set.
QAlgorithms.Papers.Independent.Bridge50.P25.entanglementRenyi
For finite nonempty types with decidable equality, any real , and any complex matrix on , this defines the extended-real infimum of over matrices admitting a finite decomposition , where , , , and every is positive semidefinite with complex trace . Here, writing , through the real functional calculus, , and for as the functional-calculus application of at zero and elsewhere, the quantity being minimized is
with for and otherwise. There is no assumption that is positive or normalized, and all real , including zero and one, are allowed. All divisions are total, and the infimum is in the extended reals, where an empty infimum is ; an empty decomposition cannot satisfy the weight-sum condition.
QAlgorithms.Papers.Independent.Bridge50.P25.flowerChannel
For every natural number , put . This defines a map from complex matrices on to complex matrices on by
Here is explicitly the matrix
with and . The formula uses with that index order and normalization coefficient . It defines the map on all matrices , and includes , where both matrix index types are empty; no channel property is asserted by this declaration.
QAlgorithms.Papers.Independent.Bridge50.P25.flowerMatrix
For every natural number , let . This defines a complex matrix on as follows. For and , set
where and
Then
Thus the definition forms the outer product of the displayed vector on two registers and a -dimensional register, and sums out the last register. The parameter is included, in which case the matrix index type is empty.
QAlgorithms.Papers.Independent.Bridge50.P25.forgetExtra
For index types , with finite, and any complex matrix indexed by , this defines a matrix on by
Thus the same -index is summed over in the row and column. No positivity or normalization of is assumed. If is empty, every entry of the resulting matrix is zero.
QAlgorithms.Papers.Independent.Bridge50.P25.formationQuotients
For finite types with the decidable equality needed for the matrix constructions, any function from complex matrices on to complex matrices on , and any , put and define
where is a matrix unit. The declared value is , embedded into the extended reals, times the extended-real supremum over every and every positive semidefinite trace-one on , of
The reference extension applies to each reference-indexed block; the vectors are on ; partial trace sums equal output indices; and for the functional-calculus function . The inner infimum is in , with its total value zero when its defining set is empty or unbounded below, and is then embedded into the extended reals; an empty outer supremum is . No channel or linearity assumption is imposed on . At , one copy is used and the prefactor is one.
QAlgorithms.Papers.Independent.Bridge50.P25.generationCodeError
For an arbitrary matrix map , either Boolean choice of target type, and a code carrying a positive number of uses of , a separable initial density matrix , an evolution formed from those uses and finite local Kraus protocols with classical branching, and a target density matrix , this defines the real number
The target is either a twisted maximally correlated key state with an arbitrary density matrix on the two shield registers, or, in the other Boolean branch, a maximally entangled key state with one-dimensional shields. The square root is the matrix square root supplied by continuous functional calculus. No channel assumption on , and no upper bound on this error, is part of this definition.
QAlgorithms.Papers.Independent.Bridge50.P25.maxQuotients
For finite types with the decidable equality needed for the matrix constructions, with nonempty, any function from complex matrices on to complex matrices on , and any , set and define
where are -valued -tuples and is the matrix with one at and zero elsewhere. The declared value is times
Here is on ; applying means applying separately to each matrix block indexed by the two reference indices; and , on , must be a finite convex combination of tensor products of positive semidefinite trace-one matrices. All extrema and the final multiplication are in the extended reals. Empty infima are , and an empty outer supremum is . The case uses one copy and factor one; there is no zero-copy term or division by zero. No channel or linearity hypothesis is imposed on .
QAlgorithms.Papers.Independent.Bridge50.P25.normalizedChannelChoi
For a finite nonempty index type with decidable equality, an output index type , and any map , let and let have amplitude at and zero at when . This defines the matrix obtained by applying to each block of while retaining its first -index. Explicitly, if is the matrix with its only nonzero entry, equal to , at , then
No linearity, positivity, or channel assumption on is included, so this formula applies to the scaled matrix itself.
QAlgorithms.Papers.Independent.Bridge50.P25.paperSandwichedRenyi
For a finite index type with decidable equality, a real number , and arbitrary complex matrices indexed by , this defines an extended real number as follows. Write , let be the matrix obtained by applying through the real functional calculus, and put , while for , applies the function that is at and elsewhere. Write for , and define when , and otherwise. The value is
Finite quantities are embedded into the extended reals, where the displayed multiplication takes place. No positivity, normalization, nonzero-trace, or restriction on is assumed; in particular and zero matrices are included. Real division is total, with division by zero equal to zero, and the logarithms, powers, and functional calculus retain their total definitions.
QAlgorithms.Papers.Independent.Bridge50.P25.privateStateInPartyOrder
For arbitrary natural numbers , an arbitrary complex matrix on , and a family of unitary matrices on that same space indexed by , this defines a matrix on with entries
The inverse and multiplication in the coefficient are complex. There is no requirement that be positive semidefinite or have trace one, and the formula does not require . The shield dimension is always positive, with dimension one allowed when ; is also allowed, in which case the matrix has an empty index set.
QAlgorithms.Papers.Independent.Bridge50.P25.reducedChannel
For index types , with finite, and any map from complex matrices on to complex matrices on , this defines a map to matrices on by
This applies to every input matrix ; neither linearity nor the channel property is assumed for . If is empty, the resulting map is identically zero.
QAlgorithms.Papers.Independent.Bridge50.P25.regularizedEMax
For finite types with the decidable equality needed for the matrix constructions, with nonempty, and any matrix-valued function from matrices on to matrices on , this defines the extended-real lower limit
For every positive integer , the map used in is explicitly
and is the supremum, over every positive reference dimension and every positive semidefinite trace-one on , of
Here is a matrix unit, the reference extension acts on each reference-indexed block, and a separable density matrix on is a finite convex combination of products of positive semidefinite trace-one matrices on its two factors. The extrema and scaling take place in the extended reals; an empty infimum is , and an empty supremum is . The sequence starts with one copy at , and the declaration specifies a lower limit without asserting convergence. No linearity or channel property of is required.
QAlgorithms.Papers.Independent.Bridge50.P25.regularizedFormationCost
For finite types with the decidable equality needed for the matrix constructions and any function from complex matrices on to complex matrices on , this defines
in the extended reals. For each positive , first define , where is a matrix unit. Then is the extended-real supremum over all positive reference dimensions and all positive semidefinite trace-one input matrices on , of the real infimum
The reference extension acts block by block, partial trace sums over equal indices, and , with applied through the real functional calculus. Each real infimum is embedded into the extended reals and has total value zero for an empty or unbounded-below defining set; an empty outer supremum is . The sequence begins with one copy, and only its lower limit is defined, with no assertion of convergence or assumption that is linear or a channel.
QAlgorithms.Papers.Independent.Bridge50.P25.sendChannelRegister
For types and any function from complex matrices on to complex matrices on , this defines a function from matrices on to matrices on by
Thus, for each choice of the two -indices and two -indices, is applied to the corresponding -indexed matrix block, and its -indexed entries form the output block. No finiteness, normalization, positivity, linearity, or channel hypothesis is required for this formula.
QAlgorithms.Papers.Independent.Bridge50.P25.transpositionBound
For finite registers with decidable equality and any map from complex matrices on to matrices on , this defines the real number
Here , with the square root interpreted by continuous functional calculus; the partial action has entries at , where . The input need not be positive, Hermitian, or trace one, and need not be linear or a channel. The supremum and logarithm are real-valued total operations: an unbounded real supremum is assigned , and .
QAlgorithms.Papers.Independent.Bridge50.P25.twoWayGenerationCapacity
For an arbitrary matrix map between the finite registers and a Boolean , this defines an extended real number as the supremum of all real for which there is a sequence of codes with positive use counts , key lengths satisfying , and errors tending to zero. Each such code begins with a separable density matrix, applies exactly times with finite local Kraus protocols and classical branching, and targets either, when , a state obtained by applying key-controlled shield unitaries to a maximally entangled key of dimension tensored with a shield density matrix, or, when , that maximally entangled key with one-dimensional shields. Its error is , where is the evolved initial matrix minus the target. Only real achievable rates enter the supremum; the result may be , and the supremum is if there are no such rates. No channel assumption on is imposed here.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.