Exact Lean source
Nonadditivity.EntropyStability
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
5 project constants, including generated, internal and private declarations.
5 declarations
Nonadditivity.EntropyStability.exists_damped_bell_entropy_modulusNonadditivity.EntropyStability.exists_loss_modulusNonadditivity.EntropyStability.exists_vonNeumann_entry_modulusNonadditivity.EntropyStability.hsLength_le_card_mul_of_entry_boundNonadditivity.EntropyStability.hsLength_le_card_mul_of_entry_bound._simp_1_1internal/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.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) :25hsLength A ≤ (Fintype.card ι : ℝ) * c := by26have hsq : hsLength A ^ 2 ≤ ((Fintype.card ι : ℝ) * c) ^ 2 := by27calc28hsLength A ^ 2 = ∑ j, ∑ i, ‖A i j‖ ^ 2 := by29rw [hsLength_sq]30simp only [Matrix.trace, Matrix.diag, Matrix.mul_apply,31Matrix.conjTranspose_apply, Complex.re_sum, Complex.star_def]32simp_rw [← Complex.normSq_eq_conj_mul_self, Complex.ofReal_re,33Complex.normSq_eq_norm_sq]34_ ≤ ∑ _j : ι, ∑ _i : ι, c ^ 2 := by35apply Finset.sum_le_sum36intro j _37apply Finset.sum_le_sum38intro i _39exact pow_le_pow_left₀ (norm_nonneg _) (hA i j) 240_ = ((Fintype.card ι : ℝ) * c) ^ 2 := by41simp only [Finset.sum_const, Finset.card_univ, nsmul_eq_mul]42ring43exact (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| ≤ η := by52obtain ⟨δ, hδ, hmod⟩ := exists_vonNeumann_hsLength_modulus (ι := ι) η hη53have hd : 0 < (Fintype.card ι : ℝ) := by positivity54refine ⟨δ / (Fintype.card ι : ℝ), div_pos hδ hd, fun ρ σ hclose => hmod ρ σ ?_⟩55have hs := hsLength_le_card_mul_of_entry_bound (ρ.matrix - σ.matrix)56(δ / (Fintype.card ι : ℝ)) (le_of_lt (div_pos hδ hd)) hclose57simpa 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 ≤ δ := by63let t := δ / 464have ht : 0 < t := by dsimp [t]; positivity65refine ⟨min (t ^ 2) t, lt_min (sq_pos_of_pos ht) ht, fun x _ hx => ?_⟩66have hx2 : x ≤ t ^ 2 := (hx.trans_le (min_le_left _ _)).le67have hxt : x ≤ t := (hx.trans_le (min_le_right _ _)).le68have hs : Real.sqrt x ≤ t := (Real.sqrt_le_left ht.le).mpr hx269dsimp [t] at hs hxt70linarith7172universe 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),83loss F < ε →84(pairedBellOutput (DampedChannel.damped T F hF hres)).vonNeumann ≤85(pairedBellOutput T).vonNeumann + η := by86obtain ⟨δ, hδ, hmod⟩ := exists_vonNeumann_entry_modulus (ι := ο × ο) η hη87obtain ⟨ε, hε, hsmall⟩ := exists_loss_modulus δ hδ88refine ⟨ε, hε, ?_⟩89intro ι κ _ _ _ _ T F hF hres hclose90have he := hsmall (loss F) (loss_nonneg F hres) hclose91have 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)93linarith [(abs_le.mp hs).2]9495end Nonadditivity.EntropyStability