Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.WeightedMatrixInverse

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

Direct imports

  • Mathlib.Analysis.Matrix.Normed dependency
  • Mathlib.LinearAlgebra.Matrix.NonsingularInverse dependency
  • Mathlib.Tactic 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

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

3 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.Matrix.Normed7import Mathlib.LinearAlgebra.Matrix.NonsingularInverse8import Mathlib.Tactic910/-! # Entrywise inverse bounds from weighted row sums1112The argument uses a largest weighted entry of an actual inverse column.13It avoids an infinite Neumann series and works for any submultiplicative14pair weight, including exponentials of permutation distance.15-/1617noncomputable section18namespace Nonadditivity.WeightedMatrixInverse19open scoped BigOperators Matrix2021variable {ι : Type*} [Fintype ι] [DecidableEq ι] [Nonempty ι]2223omit [Nonempty ι] in24theorem inverse_eq_one_add_residual (A X : Matrix ι ι ℂ) (hAX : A*X=1) :25    X = 1 + (1-A)*X := by26  rw [Matrix.sub_mul, Matrix.one_mul, hAX]27  abel2829/-- Small weighted row sums force decay of every entry of an actual inverse.30The same weight may be asymmetric; only its triangle inequality is needed. -/31theorem weighted_inverse_entry_le (A X : Matrix ι ι ℂ) (hAX : A*X=1)32    (W : ι → ι → ℝ) (hW : ∀ i j, 0 ≤ W i j) (hdiag : ∀ i, W i i = 1)33    (htri : ∀ i k j, W i j ≤ W i k * W k j)34    {δ : ℝ} (hδ : δ < 1)35    (hrow : ∀ i, ∑ k, W i k * ‖(1-A) i k‖ ≤ δ) (i j : ι) :36    W i j * ‖X i j‖ ≤ (1-δ)⁻¹ := by37  obtain ⟨a, _, ha⟩ := Finset.exists_max_image Finset.univ38    (fun k => W k j * ‖X k j‖) Finset.univ_nonempty39  let M := W a j * ‖X a j‖40  have hM : 0 ≤ M := mul_nonneg (hW _ _) (norm_nonneg _)41  have hmax (k : ι) : W k j * ‖X k j‖ ≤ M := ha k (Finset.mem_univ _)42  have hid : W a j * ‖(1 : Matrix ι ι ℂ) a j‖ ≤ 1 := by43    by_cases h : a=j44    · subst a45      simp [hdiag]46    · simp [h]47  have hx := congrArg (fun B : Matrix ι ι ℂ => B a j) (inverse_eq_one_add_residual A X hAX)48  change X a j = (1 + (1-A)*X) a j at hx49  have hn : ‖X a j‖ ≤ ‖(1 : Matrix ι ι ℂ) a j‖ +50      ∑ k, ‖(1-A) a k‖ * ‖X k j‖ := by51    rw [hx, Matrix.add_apply, Matrix.mul_apply]52    exact (norm_add_le _ _).trans (add_le_add_right53      ((norm_sum_le _ _).trans_eq (by simp only [norm_mul])) _)54  have hterm (k : ι) :55      W a j * (‖(1-A) a k‖ * ‖X k j‖) ≤ W a k * ‖(1-A) a k‖ * M := by56    calc57      _ ≤ (W a k * W k j) * (‖(1-A) a k‖ * ‖X k j‖) :=58        mul_le_mul_of_nonneg_right (htri _ _ _) (by positivity)59      _ = (W a k * ‖(1-A) a k‖) * (W k j * ‖X k j‖) := by ring60      _ ≤ _ := mul_le_mul_of_nonneg_left (hmax k) (mul_nonneg (hW _ _) (norm_nonneg _))61  have hlinear : M ≤ 1+δ*M := by62    calc63      M ≤ W a j * (‖(1 : Matrix ι ι ℂ) a j‖ +64          ∑ k, ‖(1-A) a k‖ * ‖X k j‖) := mul_le_mul_of_nonneg_left hn (hW _ _)65      _ = W a j * ‖(1 : Matrix ι ι ℂ) a j‖ +66          ∑ k, W a j * (‖(1-A) a k‖ * ‖X k j‖) := by rw [mul_add, Finset.mul_sum]67      _ ≤ 1 + ∑ k, W a k * ‖(1-A) a k‖ * M :=68        add_le_add hid (Finset.sum_le_sum (fun k _ => hterm k))69      _ = 1+(∑ k, W a k * ‖(1-A) a k‖)*M := by rw [Finset.sum_mul]70      _ ≤ 1+δ*M := add_le_add_right (mul_le_mul_of_nonneg_right (hrow a) hM) _71  apply (hmax i).trans72  rw [← one_div]73  apply (le_div_iff₀ (by linarith : 0 < 1-δ)).mpr74  nlinarith7576theorem weighted_inverse_entry_le_two (A X : Matrix ι ι ℂ) (hAX : A*X=1)77    (W : ι → ι → ℝ) (hW : ∀ i j, 0 ≤ W i j) (hdiag : ∀ i, W i i = 1)78    (htri : ∀ i k j, W i j ≤ W i k * W k j)79    (hrow : ∀ i, ∑ k, W i k * ‖(1-A) i k‖ ≤ 1/2) (i j : ι) :80    W i j * ‖X i j‖ ≤ 2 := by81  have h := weighted_inverse_entry_le A X hAX W hW hdiag htri82    (by norm_num : (1/2 : ℝ)<1) hrow i j83  norm_num at h84  exact h8586end Nonadditivity.WeightedMatrixInverse