Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.EntropyStability

Download original .lean · View on GitHub · Jump to source

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

5 project constants, including generated, internal and private declarations.

5 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.EntropyContinuity7import Nonadditivity.DampedBellStability89/-! # Output-dimension-only entropy stability from matrix-entry estimates -/1011noncomputable section1213namespace Nonadditivity.EntropyStability1415open Entropy AdjointPurity EntropyContinuity Channels DampedBellStability16open scoped BigOperators Matrix ComplexOrder Matrix.Norms.L2Operator1718set_option backward.isDefEq.respectTransparency false19set_option maxHeartbeats 6000002021/-- Entrywise bounds imply an HS bound with only the matrix dimension as22a factor; the index can be unrelated to a channel's input or environment. -/23theorem hsLength_le_card_mul_of_entry_bound {ι : Type*} [Fintype ι]24    (A : Matrix ι ι ℂ) (c : ℝ) (hc : 0 ≤ c) (hA : ∀ i j, ‖A i j‖ ≤ c) :25    hsLength A ≤ (Fintype.card ι : ℝ) * c := by26  have hsq : hsLength A ^ 2 ≤ ((Fintype.card ι : ℝ) * c) ^ 2 := by27    calc28      hsLength A ^ 2 = ∑ j, ∑ i, ‖A i j‖ ^ 2 := by29        rw [hsLength_sq]30        simp only [Matrix.trace, Matrix.diag, Matrix.mul_apply,31          Matrix.conjTranspose_apply, Complex.re_sum, Complex.star_def]32        simp_rw [← Complex.normSq_eq_conj_mul_self, Complex.ofReal_re,33          Complex.normSq_eq_norm_sq]34      _ ≤ ∑ _j : ι, ∑ _i : ι, c ^ 2 := by35        apply Finset.sum_le_sum36        intro j _37        apply Finset.sum_le_sum38        intro i _39        exact pow_le_pow_left₀ (norm_nonneg _) (hA i j) 240      _ = ((Fintype.card ι : ℝ) * c) ^ 2 := by41        simp only [Finset.sum_const, Finset.card_univ, nsmul_eq_mul]42        ring43  exact (sq_le_sq₀ (hsLength_nonneg A) (mul_nonneg (Nat.cast_nonneg _) hc)).mp hsq4445/-- A fixed finite output type admits an entropy modulus for coordinatewise46matrix perturbations, uniform over all density matrices. -/47theorem exists_vonNeumann_entry_modulus {ι : Type*} [Fintype ι] [DecidableEq ι]48    [Nonempty ι] (η : ℝ) (hη : 0 < η) :49    ∃ δ > 0, ∀ ρ σ : DensityMatrix ι,50      (∀ i j, ‖ρ.matrix i j - σ.matrix i j‖ ≤ δ) →51        |ρ.vonNeumann - σ.vonNeumann| ≤ η := by52  obtain ⟨δ, hδ, hmod⟩ := exists_vonNeumann_hsLength_modulus (ι := ι) η hη53  have hd : 0 < (Fintype.card ι : ℝ) := by positivity54  refine ⟨δ / (Fintype.card ι : ℝ), div_pos hδ hd, fun ρ σ hclose => hmod ρ σ ?_⟩55  have hs := hsLength_le_card_mul_of_entry_bound (ρ.matrix - σ.matrix)56    (δ / (Fintype.card ι : ℝ)) (le_of_lt (div_pos hδ hd)) hclose57  simpa only [mul_div_cancel₀ _ hd.ne'] using hs5859/-- The Bell-filter error expression tends uniformly to zero with its60normalized trace loss. No input dimension occurs in this scalar choice. -/61theorem exists_loss_modulus (δ : ℝ) (hδ : 0 < δ) :62    ∃ ε > 0, ∀ x : ℝ, 0 ≤ x → x < ε → 2 * Real.sqrt x + 2 * x ≤ δ := by63  let t := δ / 464  have ht : 0 < t := by dsimp [t]; positivity65  refine ⟨min (t ^ 2) t, lt_min (sq_pos_of_pos ht) ht, fun x _ hx => ?_⟩66  have hx2 : x ≤ t ^ 2 := (hx.trans_le (min_le_left _ _)).le67  have hxt : x ≤ t := (hx.trans_le (min_le_right _ _)).le68  have hs : Real.sqrt x ≤ t := (Real.sqrt_le_left ht.le).mpr hx269  dsimp [t] at hs hxt70  linarith7172universe u v w7374/-- The entropy of the genuine damped paired Bell output is stable under75small normalized filter loss. The loss threshold depends only on the76fixed output type and the requested entropy error; input and environment77types are quantified after the threshold has been chosen. -/78theorem exists_damped_bell_entropy_modulus {ο : Type u} [Fintype ο]79    [DecidableEq ο] [Nonempty ο] (η : ℝ) (hη : 0 < η) :80    ∃ ε > 0, ∀ {ι : Type v} {κ : Type w} [Fintype ι] [DecidableEq ι]81      [Nonempty ι] [Fintype κ] (T : KrausChannel ι ο κ) (F : Matrix ι ι ℂ)82      (hF : F.IsHermitian) (hres : (1 - F * F).PosSemidef),83      loss F < ε →84        (pairedBellOutput (DampedChannel.damped T F hF hres)).vonNeumann ≤85          (pairedBellOutput T).vonNeumann + η := by86  obtain ⟨δ, hδ, hmod⟩ := exists_vonNeumann_entry_modulus (ι := ο × ο) η hη87  obtain ⟨ε, hε, hsmall⟩ := exists_loss_modulus δ hδ88  refine ⟨ε, hε, ?_⟩89  intro ι κ _ _ _ _ T F hF hres hclose90  have he := hsmall (loss F) (loss_nonneg F hres) hclose91  have hs := hmod (pairedBellOutput (DampedChannel.damped T F hF hres))92    (pairedBellOutput T) (fun a b => (damped_pair_entry_sub_norm_le T F hF hres a b).trans he)93  linarith [(abs_le.mp hs).2]9495end Nonadditivity.EntropyStability