Exact Lean source
Nonadditivity.BlockConstruction
Download original .lean · View on GitHub · Jump to source
Direct imports
Nonadditivity.BlockBellNonadditivity.ConversionMathlib.Data.Fintype.EquivFindependency
Imported by project modules
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
24 project constants, including generated, internal and private declarations.
24 declarations
Nonadditivity.BlockBell.blockComplementary.congr_simpNonadditivity.BlockConstruction.blockChannelNonadditivity.BlockConstruction.blockChannel._proof_1internal/detail/privateNonadditivity.BlockConstruction.blockChannel_input_dimensionNonadditivity.BlockConstruction.blockChannel_output_dimensionNonadditivity.BlockConstruction.blockOutputEquivNonadditivity.BlockConstruction.blockOutputEquiv._proof_1internal/detail/privateNonadditivity.BlockConstruction.block_channel_bell_entropy_leNonadditivity.BlockConstruction.block_converted_bounds_of_certificateNonadditivity.Channels.KrausChannel.reindex_conjugate_eqNonadditivity.Channels.KrausChannel.reindex_output_eqNonadditivity.Channels.KrausChannel.reindex_tensor_conjugate_entropyNonadditivity.Channels.KrausChannel.reindex_tensor_eqNonadditivity.Entropy.DensityMatrix.reindex_reflNonadditivity.Entropy.TensorChainIndex.eq_1internal/detail/privateNonadditivity.Entropy.TensorChainIndex.eq_2internal/detail/privateNonadditivity.Entropy.TensorChainIndex.eq_defNonadditivity.Entropy.tensorChainIndexNonemptyNonadditivity.Entropy.tensorChainIndexNonempty._unsafe_recinternal/detail/privateNonadditivity.Entropy.tensorChainIndexNonempty.match_1internal/detail/privateNonadditivity.Entropy.tensorChainIndex_card_private.Nonadditivity.BlockConstruction.0.Nonadditivity.Entropy.TensorChainIndex.match_1.eq_1internal/detail/private_private.Nonadditivity.BlockConstruction.0.Nonadditivity.Entropy.TensorChainIndex.match_1.eq_2internal/detail/private_private.Nonadditivity.BlockConstruction.0.Nonadditivity.Entropy.TensorChainIndex.match_1.splitterinternal/detail/private
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.BlockBell7import Nonadditivity.Conversion8import Mathlib.Data.Fintype.EquivFin910/-!11# The concrete block channel with standard output coordinates1213The tensor block is made from the complementary channels of the actual14uniform random-unitary families. Its output basis alone is relabelled to15`ZMod (K^n)`, with the dimension equality proved here. The Bell witness is16transported from the checked block construction, not supplied as a premise.17-/1819noncomputable section2021namespace Nonadditivity2223open scoped BigOperators ComplexOrder ComplexConjugate Kronecker Matrix2425namespace Entropy2627/-- The empty block has dimension one; each tensor step multiplies dimension. -/28theorem tensorChainIndex_card (ι : Type*) [Fintype ι] (n : ℕ) :29Fintype.card (TensorChainIndex ι n) = Fintype.card ι ^ n := by30induction n with31| zero => simp [TensorChainIndex]32| succ n ih =>33change Fintype.card (TensorChainIndex ι n × ι) = _34simp [ih, pow_succ]3536/-- Every finite tensor block of a nonempty index type is nonempty. -/37instance tensorChainIndexNonempty (ι : Type*) [Nonempty ι] :38(n : ℕ) → Nonempty (TensorChainIndex ι n)39| 0 => inferInstanceAs (Nonempty PUnit)40| n + 1 => by41change Nonempty (TensorChainIndex ι n × ι)42letI := tensorChainIndexNonempty ι n43infer_instance4445@[simp] theorem DensityMatrix.reindex_refl {ι : Type*} [Fintype ι] [DecidableEq ι]46(ρ : DensityMatrix ι) : ρ.reindex (Equiv.refl ι) = ρ := by47apply DensityMatrix.ext48rfl4950end Entropy5152namespace Channels.KrausChannel5354open Entropy5556variable {ι ο κ μ ν η : Type*}57variable [Fintype ι] [DecidableEq ι] [Fintype ο] [DecidableEq ο] [Fintype κ]5859omit [DecidableEq ο] in60/-- Relabeling matrix entries commutes with entrywise complex conjugation. -/61theorem reindex_conjugate_eq [Fintype μ] [DecidableEq μ] [Fintype ν]62(T : Channels.KrausChannel ι ο κ) (ei : ι ≃ μ) (eo : ο ≃ ν) :63(T.reindex ei eo).conjugate = T.conjugate.reindex ei eo := by64apply ext65funext k66ext a b67rfl6869omit [DecidableEq ο] in70/-- Relabeling the two tensor factors is relabeling by the product equivalence. -/71theorem reindex_tensor_eq [Fintype μ] [DecidableEq μ] [Fintype ν] [Fintype η]72{ι' ο' μ' ν' : Type*}73[Fintype ι'] [DecidableEq ι'] [Fintype ο']74[Fintype μ'] [DecidableEq μ'] [Fintype ν']75(T : Channels.KrausChannel ι ο κ) (S : Channels.KrausChannel μ ν η)76(ei : ι ≃ ι') (eo : ο ≃ ο') (em : μ ≃ μ') (en : ν ≃ ν') :77(T.reindex ei eo).tensor (S.reindex em en) =78(T.tensor S).reindex (ei.prodCongr em) (eo.prodCongr en) := by79apply ext80funext k81ext a b82rfl8384/-- Relabel the actual output state together with the actual channel. -/85theorem reindex_output_eq [Fintype μ] [DecidableEq μ] [Fintype ν] [DecidableEq ν]86(T : Channels.KrausChannel ι ο κ) (ei : ι ≃ μ) (eo : ο ≃ ν) (ρ : DensityMatrix ι) :87(T.reindex ei eo).output (ρ.reindex ei) = (T.output ρ).reindex eo := by88apply DensityMatrix.ext89exact T.reindex_map ei eo ρ.matrix9091/-- A common output-basis relabeling preserves the entropy of any original/conjugate92joint output, including entangled inputs. -/93theorem reindex_tensor_conjugate_entropy [Fintype ν] [DecidableEq ν]94(T : Channels.KrausChannel ι ο κ) (e : ο ≃ ν) (ρ : DensityMatrix (ι × ι)) :95(((T.reindex (Equiv.refl ι) e).tensor96(T.reindex (Equiv.refl ι) e).conjugate).output ρ).vonNeumann =97((T.tensor T.conjugate).output ρ).vonNeumann := by98have hi : (Equiv.refl ι).prodCongr (Equiv.refl ι) = Equiv.refl (ι × ι) := by99ext a <;> rfl100rw [reindex_conjugate_eq, reindex_tensor_eq, hi]101have ho := reindex_output_eq (T.tensor T.conjugate) (Equiv.refl (ι × ι)) (e.prodCongr e) ρ102rw [DensityMatrix.reindex_refl] at ho103rw [ho, DensityMatrix.reindex_entropy]104105end Channels.KrausChannel106107namespace BlockConstruction108109open Entropy Channels Channels.KrausChannel Conversion110open scoped Matrix.Norms.L2Operator111112variable {ι : Type*} [Fintype ι] [DecidableEq ι]113variable {K : ℕ} [NeZero K]114115/-- A basis equivalence justified by the actual block's dimension count. -/116def blockOutputEquiv (K n : ℕ) [NeZero K] :117TensorChainIndex (Fin K) n ≃ ZMod (K ^ n) :=118Fintype.equivOfCardEq (by simp [tensorChainIndex_card])119120/-- The actual tensor block, with the standard `K^n`-dimensional output basis. -/121def blockChannel (U : ℕ → Fin K → unitary (Matrix ι ι ℂ)) (n : ℕ) :122KrausChannel (TensorChainIndex ι n) (ZMod (K ^ n)) (TensorChainIndex ι n) :=123(BlockBell.blockComplementary U n).reindex (Equiv.refl _) (blockOutputEquiv K n)124125omit [DecidableEq ι] in126/-- The base block has precisely the manuscript's input dimension. -/127theorem blockChannel_input_dimension (n : ℕ) :128Fintype.card (TensorChainIndex ι n) = Fintype.card ι ^ n := tensorChainIndex_card ι n129130/-- The base block has precisely the manuscript's output dimension. -/131theorem blockChannel_output_dimension (n : ℕ) : Fintype.card (ZMod (K ^ n)) = K ^ n :=132ZMod.card _133134/-- The explicit block Bell witness survives output-basis standardization.135There is no joint-output entropy assumption in this theorem. -/136theorem block_channel_bell_entropy_le [Nonempty ι]137(U : ℕ → Fin K → unitary (Matrix ι ι ℂ)) (n : ℕ) :138∃ ρ : DensityMatrix (TensorChainIndex ι n × TensorChainIndex ι n),139(((blockChannel U n).tensor (blockChannel U n).conjugate).output ρ).vonNeumann ≤140(n : ℝ) * (2 * Real.log K - Real.log K / (K : ℝ)) := by141obtain ⟨ρ,hρ⟩ := BlockBell.block_complementary_bell_entropy_le U n142refine ⟨ρ, ?_⟩143unfold blockChannel144rw [reindex_tensor_conjugate_entropy]145simpa only [Fintype.card_fin] using hρ146147/-- Actual block channels followed by the checked switch and Weyl extension148satisfy the Holevo estimates from a base adjoint norm certificate alone.149The entangled Bell witness and all channel/entropy conversions are proved. -/150theorem block_converted_bounds_of_certificate [Nonempty ι]151(U : ℕ → Fin K → unitary (Matrix ι ι ℂ)) (n : ℕ) {t : ℝ} (ht : 0 ≤ t)152(hcertificate : ∀ A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ,153A.IsHermitian → A.trace = 0 → ‖(blockChannel U n).adjointMap A‖ ≤ t * AdjointPurity.hsLength A) :154(converted (blockChannel U n)).holevo ≤ Real.log (1 + (K ^ n : ℝ) * t ^ 2) ∧155(n : ℝ) * Real.log K / (K : ℝ) ≤156((converted (blockChannel U n)).tensor (converted (blockChannel U n))).holevo ∧157(n : ℝ) * Real.log K / (K : ℝ) - 2 * Real.log (1 + (K ^ n : ℝ) * t ^ 2) ≤158((converted (blockChannel U n)).tensor (converted (blockChannel U n))).holevo -1592 * (converted (blockChannel U n)).holevo := by160obtain ⟨ρ,hρ⟩ := block_channel_bell_entropy_le U n161have h := converted_bounds_of_certificate (blockChannel U n) ht hcertificate ρ hρ162have hl : Real.log ((K ^ n : ℕ) : ℝ) = (n : ℝ) * Real.log K := by163rw [Nat.cast_pow, Real.log_pow]164simp only [Nat.cast_pow] at h hl165have hs : 2 * ((n : ℝ) * Real.log K) -166(n : ℝ) * (2 * Real.log K - Real.log K / (K : ℝ)) =167(n : ℝ) * Real.log K / (K : ℝ) := by ring168rw [hl, hs] at h169exact h170171end BlockConstruction172end Nonadditivity