Exact Lean source
Nonadditivity.WeightedMatrixInverse
Download original .lean · View on GitHub · Jump to source
Direct imports
Mathlib.Analysis.Matrix.NormeddependencyMathlib.LinearAlgebra.Matrix.NonsingularInversedependencyMathlib.Tacticdependency
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
Nonadditivity.WeightedMatrixInverse.inverse_eq_one_add_residualNonadditivity.WeightedMatrixInverse.weighted_inverse_entry_leNonadditivity.WeightedMatrixInverse.weighted_inverse_entry_le_two
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) :25X = 1 + (1-A)*X := by26rw [Matrix.sub_mul, Matrix.one_mul, hAX]27abel2829/-- 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 : ι) :36W i j * ‖X i j‖ ≤ (1-δ)⁻¹ := by37obtain ⟨a, _, ha⟩ := Finset.exists_max_image Finset.univ38(fun k => W k j * ‖X k j‖) Finset.univ_nonempty39let M := W a j * ‖X a j‖40have hM : 0 ≤ M := mul_nonneg (hW _ _) (norm_nonneg _)41have hmax (k : ι) : W k j * ‖X k j‖ ≤ M := ha k (Finset.mem_univ _)42have hid : W a j * ‖(1 : Matrix ι ι ℂ) a j‖ ≤ 1 := by43by_cases h : a=j44· subst a45simp [hdiag]46· simp [h]47have hx := congrArg (fun B : Matrix ι ι ℂ => B a j) (inverse_eq_one_add_residual A X hAX)48change X a j = (1 + (1-A)*X) a j at hx49have hn : ‖X a j‖ ≤ ‖(1 : Matrix ι ι ℂ) a j‖ +50∑ k, ‖(1-A) a k‖ * ‖X k j‖ := by51rw [hx, Matrix.add_apply, Matrix.mul_apply]52exact (norm_add_le _ _).trans (add_le_add_right53((norm_sum_le _ _).trans_eq (by simp only [norm_mul])) _)54have hterm (k : ι) :55W a j * (‖(1-A) a k‖ * ‖X k j‖) ≤ W a k * ‖(1-A) a k‖ * M := by56calc57_ ≤ (W a k * W k j) * (‖(1-A) a k‖ * ‖X k j‖) :=58mul_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 _))61have hlinear : M ≤ 1+δ*M := by62calc63M ≤ 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 :=68add_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) _71apply (hmax i).trans72rw [← one_div]73apply (le_div_iff₀ (by linarith : 0 < 1-δ)).mpr74nlinarith7576theorem 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 : ι) :80W i j * ‖X i j‖ ≤ 2 := by81have h := weighted_inverse_entry_le A X hAX W hW hdiag htri82(by norm_num : (1/2 : ℝ)<1) hrow i j83norm_num at h84exact h8586end Nonadditivity.WeightedMatrixInverse