Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.Purity

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

Direct imports

  • Mathlib.Analysis.InnerProductSpace.Basic dependency
  • Mathlib.Analysis.Normed.Operator.Basic dependency
  • Mathlib.Tactic.Linarith dependency
  • Mathlib.Tactic.Ring dependency

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

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

2 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Mathlib.Analysis.InnerProductSpace.Basic7import Mathlib.Analysis.Normed.Operator.Basic8import Mathlib.Tactic.Linarith9import Mathlib.Tactic.Ring1011/-!12# Adjoint certificate to centered purity1314This formalizes the Hilbert-space argument in Lemma `purity`: the output15space carries its Hilbert--Schmidt geometry, the center is I/L, and a state16expectation is a norm-at-most-one functional on input observables. The trace17identification and the quantum channel adjoint are not constructed here;18they enter through the explicit pairing and normalization hypotheses.19-/2021noncomputable section2223namespace Nonadditivity.Purity2425open scoped InnerProductSpace2627variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]28  [NormedAddCommGroup F] [NormedSpace ℝ F]2930/-- The centered output is bounded by t whenever the channel adjoint is31bounded by t on the hyperplane orthogonal to the maximally mixed center. -/32theorem centered_norm_le (T : E →L[ℝ] F) (φ : F →L[ℝ] ℝ)33    (center Y : E) {t : ℝ} (ht : 0 ≤ t) (hφ : ‖φ‖ ≤ 1)34    (hnormalized : ⟪Y, center⟫_ℝ = ‖center‖ ^ 2)35    (hduality : ∀ A : E, ⟪center, A⟫_ℝ = 0 → ⟪Y, A⟫_ℝ = φ (T A))36    (hcertificate : ∀ A : E, ⟪center, A⟫_ℝ = 0 → ‖T A‖ ≤ t * ‖A‖) :37    ‖Y - center‖ ≤ t := by38  have horth : ⟪center, Y - center⟫_ℝ = 0 := by39    rw [inner_sub_right, real_inner_comm Y center, hnormalized,40      real_inner_self_eq_norm_sq]41    exact sub_self _42  have hpair : ⟪Y, Y - center⟫_ℝ = ‖Y - center‖ ^ 2 := by43    rw [inner_sub_right, real_inner_self_eq_norm_sq, hnormalized,44      norm_sub_sq_real, hnormalized]45    ring46  have hnorm : ‖Y - center‖ ^ 2 ≤ t * ‖Y - center‖ := by47    calc48      ‖Y - center‖ ^ 2 = φ (T (Y - center)) := by49        rw [← hduality _ horth, hpair]50      _ ≤ ‖φ (T (Y - center))‖ := le_abs_self _51      _ ≤ ‖φ‖ * ‖T (Y - center)‖ := φ.le_opNorm _52      _ ≤ ‖T (Y - center)‖ := by53        simpa using mul_le_mul_of_nonneg_right hφ (norm_nonneg (T (Y - center)))54      _ ≤ t * ‖Y - center‖ := hcertificate _ horth55  nlinarith [norm_nonneg (Y - center)]5657/-- The uncentered purity is at most the maximally mixed purity plus t². -/58theorem purity_le (T : E →L[ℝ] F) (φ : F →L[ℝ] ℝ)59    (center Y : E) {t : ℝ} (ht : 0 ≤ t) (hφ : ‖φ‖ ≤ 1)60    (hnormalized : ⟪Y, center⟫_ℝ = ‖center‖ ^ 2)61    (hduality : ∀ A : E, ⟪center, A⟫_ℝ = 0 → ⟪Y, A⟫_ℝ = φ (T A))62    (hcertificate : ∀ A : E, ⟪center, A⟫_ℝ = 0 → ‖T A‖ ≤ t * ‖A‖) :63    ‖Y‖ ^ 2 ≤ ‖center‖ ^ 2 + t ^ 2 := by64  have h := centered_norm_le T φ center Y ht hφ hnormalized hduality hcertificate65  have hsq := norm_sub_sq_real Y center66  rw [hnormalized] at hsq67  nlinarith [norm_nonneg (Y - center)]6869end Nonadditivity.Purity