Exact Lean source
Nonadditivity.SwitchChannel
Download original .lean · View on GitHub · Jump to source
Imported by project modules
2 direct reverse imports
Relationships above come from literal import commands. The declarations below link to types and references extracted from Lean’s environment. Source text is complete and unchanged.
Declarations in this module
9 project constants, including generated, internal and private declarations.
9 declarations
Nonadditivity.Channels.KrausChannel.output_entropy_lower_bound_switchNonadditivity.Channels.KrausChannel.outputs_subset_switchNonadditivity.Channels.KrausChannel.switchNonadditivity.Channels.KrausChannel.switch.eq_1internal/detail/privateNonadditivity.Channels.KrausChannel.switch_minimumEntropyNonadditivity.Channels.KrausChannel.switch_output_entropy_lowerNonadditivity.Channels.KrausChannel.switch_output_falseNonadditivity.Channels.KrausChannel.switch_output_trueNonadditivity.Channels.KrausChannel.switch_weylExtension_holevo
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.ChannelEntropy7import Nonadditivity.ConjugateChannel89/-!10# The actual two-branch switch channel1112The classical input bit is measured and discarded. Its branches are a13concrete Kraus channel and its entrywise conjugate. The original outputs14remain reachable, and entropy concavity prevents arbitrary switch inputs15from lowering the minimum output entropy. Weyl extension then turns this16actual minimum output entropy into the single-use Holevo quantity.17-/1819noncomputable section2021namespace Nonadditivity.Channels.KrausChannel2223open Nonadditivity Entropy24open scoped BigOperators Matrix ComplexOrder2526variable {ι ο κ : Type*} [Fintype ι] [DecidableEq ι]27variable [Fintype ο] [DecidableEq ο] [Fintype κ]2829/-- Measure a bit, apply the original or conjugate channel, discard the bit. -/30def switch (T : KrausChannel ι ο κ) : KrausChannel (Bool × ι) ο (Bool × κ) :=31controlled (fun b : Bool => if b then T.conjugate else T)3233/-- The original channel is the false-labelled branch of the actual switch. -/34@[simp] theorem switch_output_false (T : KrausChannel ι ο κ) (ρ : DensityMatrix ι) :35T.switch.output (labelledState false ρ) = T.output ρ := by36simp [switch]3738/-- The conjugate channel is the true-labelled branch of the actual switch. -/39@[simp] theorem switch_output_true (T : KrausChannel ι ο κ) (ρ : DensityMatrix ι) :40T.switch.output (labelledState true ρ) = T.conjugate.output ρ := by41simp [switch]4243theorem outputs_subset_switch (T : KrausChannel ι ο κ) : T.outputs ⊆ T.switch.outputs := by44rintro _ ⟨ρ, rfl⟩45exact ⟨labelledState false ρ, T.switch_output_false ρ⟩4647/-- Arbitrary switch inputs retain every uniform entropy lower bound of the48original channel, including superpositions and entangled control inputs. -/49theorem switch_output_entropy_lower [Nonempty ι]50(T : KrausChannel ι ο κ) {s : ℝ}51(hentropy : ∀ ρ : DensityMatrix ι, s ≤ (T.output ρ).vonNeumann)52(ρ : DensityMatrix (Bool × ι)) : s ≤ (T.switch.output ρ).vonNeumann := by53unfold switch54apply controlled_output_entropy_lower55intro b σ56cases b57· exact hentropy σ58· change s ≤ (T.conjugate.output σ).vonNeumann59rw [T.conjugate_output_entropy_all]60exact hentropy σ.conjugate6162/-- Uniform entropy lower bounds are equivalent for the original and switch63channels; reachability proves the reverse implication. -/64theorem output_entropy_lower_bound_switch [Nonempty ι]65(T : KrausChannel ι ο κ) (s : ℝ) :66(∀ ρ : DensityMatrix ι, s ≤ (T.output ρ).vonNeumann) ↔67(∀ ρ : DensityMatrix (Bool × ι), s ≤ (T.switch.output ρ).vonNeumann) := by68constructor69· exact T.switch_output_entropy_lower70· intro h ρ71have hh := h (labelledState false ρ)72simpa only [switch_output_false] using hh7374/-- The switch has exactly the original channel's minimum output entropy.75The argument uses infima and does not assume existence of a minimizing input. -/76theorem switch_minimumEntropy [Nonempty ι] (T : KrausChannel ι ο κ) :77T.switch.minimumEntropy = T.minimumEntropy := by78apply le_antisymm79· unfold minimumEntropy80apply le_csInf (T.outputs_nonempty.image _)81rintro _ ⟨σ, ⟨ρ, rfl⟩, rfl⟩82exact StateEnsembles.minimumEntropy_le83(outputs := T.switch.outputs) ⟨labelledState false ρ, T.switch_output_false ρ⟩84· unfold minimumEntropy85apply le_csInf (T.switch.outputs_nonempty.image _)86rintro _ ⟨σ, ⟨ρ, rfl⟩, rfl⟩87apply T.switch_output_entropy_lower88intro τ89exact StateEnsembles.minimumEntropy_le (outputs := T.outputs) ⟨τ, rfl⟩9091/-- The concrete switch followed by a concrete Weyl extension has the exact92Holevo/minimum-output-entropy relation used in the manuscript. -/93theorem switch_weylExtension_holevo {d : ℕ} [NeZero d] [Nonempty ι]94(T : KrausChannel ι (ZMod d) κ) :95T.switch.weylExtension.holevo = Real.log d - T.minimumEntropy := by96rw [weylExtension_holevo, switch_minimumEntropy]9798end Nonadditivity.Channels.KrausChannel