Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarWeingartenInverseSum

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

Direct imports

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 Nonadditivity.WeightedMatrixInverse78/-! # Weighted absolute row sums of an actual inverse910This stronger form of entrywise inverse decay permits summing Weingarten11coefficients without paying for a second permutation count.12-/1314noncomputable section15set_option maxHeartbeats 10000001617namespace Nonadditivity.WeightedMatrixInverse1819open scoped BigOperators Matrix2021variable {ι : Type*} [Fintype ι] [DecidableEq ι] [Nonempty ι]2223/-- A weighted row norm of an actual inverse is bounded by the inverse of the24diagonal-dominance margin. -/25theorem weighted_inverse_sum_le (A X : Matrix ι ι ℂ) (hAX : A*X=1)26    (W : ι → ι → ℝ) (hW : ∀ i j, 0 ≤ W i j) (hdiag : ∀ i, W i i = 1)27    (htri : ∀ i k j, W i j ≤ W i k * W k j)28    {δ : ℝ} (hδ : δ < 1)29    (hrow : ∀ i, ∑ k, W i k * ‖(1-A) i k‖ ≤ δ) (i : ι) :30    ∑ j, W i j * ‖X i j‖ ≤ (1-δ)⁻¹ := by31  classical32  obtain ⟨a, _, ha⟩ := Finset.exists_max_image Finset.univ33    (fun k => ∑ j, W k j * ‖X k j‖) Finset.univ_nonempty34  let M : ℝ := ∑ j, W a j * ‖X a j‖35  have hM : 0 ≤ M := Finset.sum_nonneg (fun j _ => mul_nonneg (hW _ _) (norm_nonneg _))36  have hmax (k : ι) : (∑ j, W k j * ‖X k j‖) ≤ M := ha k (Finset.mem_univ _)37  have hpoint (j : ι) : W a j * ‖X a j‖ ≤38      W a j * ‖(1 : Matrix ι ι ℂ) a j‖ +39        ∑ k, W a k * ‖(1-A) a k‖ * (W k j * ‖X k j‖) := by40    have hx := congrArg (fun B : Matrix ι ι ℂ => B a j) (inverse_eq_one_add_residual A X hAX)41    change X a j = (1 + (1-A)*X) a j at hx42    have hn : ‖X a j‖ ≤ ‖(1 : Matrix ι ι ℂ) a j‖ +43        ∑ k, ‖(1-A) a k‖ * ‖X k j‖ := by44      rw [hx, Matrix.add_apply, Matrix.mul_apply]45      exact (norm_add_le _ _).trans (add_le_add_right46        ((norm_sum_le _ _).trans_eq (by simp only [norm_mul])) _)47    calc48      _ ≤ W a j * (‖(1 : Matrix ι ι ℂ) a j‖ +49          ∑ k, ‖(1-A) a k‖ * ‖X k j‖) := mul_le_mul_of_nonneg_left hn (hW _ _)50      _ = W a j * ‖(1 : Matrix ι ι ℂ) a j‖ +51          ∑ k, W a j * (‖(1-A) a k‖ * ‖X k j‖) := by rw [mul_add, Finset.mul_sum]52      _ ≤ _ := add_le_add le_rfl (Finset.sum_le_sum fun k _ => by53        calc54          _ ≤ (W a k * W k j) * (‖(1-A) a k‖ * ‖X k j‖) :=55            mul_le_mul_of_nonneg_right (htri _ _ _) (by positivity)56          _ = _ := by ring)57  have hid : (∑ j, W a j * ‖(1 : Matrix ι ι ℂ) a j‖) = 1 := by58    simp [Matrix.one_apply, apply_ite norm, mul_ite, hdiag]59  have hlinear : M ≤ 1+δ*M := by60    calc61      M ≤ ∑ j, (W a j * ‖(1 : Matrix ι ι ℂ) a j‖ +62          ∑ k, W a k * ‖(1-A) a k‖ * (W k j * ‖X k j‖)) :=63        Finset.sum_le_sum (fun j _ => hpoint j)64      _ = 1 + ∑ k, W a k * ‖(1-A) a k‖ * (∑ j, W k j * ‖X k j‖) := by65        rw [Finset.sum_add_distrib, hid, Finset.sum_comm]66        simp_rw [← Finset.mul_sum]67      _ ≤ 1 + ∑ k, W a k * ‖(1-A) a k‖ * M :=68        add_le_add le_rfl (Finset.sum_le_sum fun k _ =>69          mul_le_mul_of_nonneg_left (hmax k) (mul_nonneg (hW _ _) (norm_nonneg _)))70      _ = 1+(∑ k, W a k * ‖(1-A) a k‖)*M := by rw [Finset.sum_mul]71      _ ≤ 1+δ*M := add_le_add le_rfl (mul_le_mul_of_nonneg_right (hrow a) hM)72  apply (hmax i).trans73  rw [← one_div]74  apply (le_div_iff₀ (by linarith : 0 < 1-δ)).mpr75  nlinarith7677theorem weighted_inverse_sum_le_two (A X : Matrix ι ι ℂ) (hAX : A*X=1)78    (W : ι → ι → ℝ) (hW : ∀ i j, 0 ≤ W i j) (hdiag : ∀ i, W i i = 1)79    (htri : ∀ i k j, W i j ≤ W i k * W k j)80    (hrow : ∀ i, ∑ k, W i k * ‖(1-A) i k‖ ≤ 1/2) (i : ι) :81    ∑ j, W i j * ‖X i j‖ ≤ 2 := by82  have h := weighted_inverse_sum_le A X hAX W hW hdiag htri83    (by norm_num : (1/2:ℝ)<1) hrow i84  norm_num at h85  exact h8687end Nonadditivity.WeightedMatrixInverse