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
Nonadditivity.WeightedMatrixInverse.weighted_inverse_sum_leNonadditivity.WeightedMatrixInverse.weighted_inverse_sum_le._simp_1_1internal/detail/privateNonadditivity.WeightedMatrixInverse.weighted_inverse_sum_le_two
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-δ)⁻¹ := by31classical32obtain ⟨a, _, ha⟩ := Finset.exists_max_image Finset.univ33(fun k => ∑ j, W k j * ‖X k j‖) Finset.univ_nonempty34let M : ℝ := ∑ j, W a j * ‖X a j‖35have hM : 0 ≤ M := Finset.sum_nonneg (fun j _ => mul_nonneg (hW _ _) (norm_nonneg _))36have hmax (k : ι) : (∑ j, W k j * ‖X k j‖) ≤ M := ha k (Finset.mem_univ _)37have hpoint (j : ι) : W a j * ‖X a j‖ ≤38W a j * ‖(1 : Matrix ι ι ℂ) a j‖ +39∑ k, W a k * ‖(1-A) a k‖ * (W k j * ‖X k j‖) := by40have hx := congrArg (fun B : Matrix ι ι ℂ => B a j) (inverse_eq_one_add_residual A X hAX)41change X a j = (1 + (1-A)*X) a j at hx42have hn : ‖X a j‖ ≤ ‖(1 : Matrix ι ι ℂ) a j‖ +43∑ k, ‖(1-A) a k‖ * ‖X k j‖ := by44rw [hx, Matrix.add_apply, Matrix.mul_apply]45exact (norm_add_le _ _).trans (add_le_add_right46((norm_sum_le _ _).trans_eq (by simp only [norm_mul])) _)47calc48_ ≤ 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 _ => by53calc54_ ≤ (W a k * W k j) * (‖(1-A) a k‖ * ‖X k j‖) :=55mul_le_mul_of_nonneg_right (htri _ _ _) (by positivity)56_ = _ := by ring)57have hid : (∑ j, W a j * ‖(1 : Matrix ι ι ℂ) a j‖) = 1 := by58simp [Matrix.one_apply, apply_ite norm, mul_ite, hdiag]59have hlinear : M ≤ 1+δ*M := by60calc61M ≤ ∑ j, (W a j * ‖(1 : Matrix ι ι ℂ) a j‖ +62∑ k, W a k * ‖(1-A) a k‖ * (W k j * ‖X k j‖)) :=63Finset.sum_le_sum (fun j _ => hpoint j)64_ = 1 + ∑ k, W a k * ‖(1-A) a k‖ * (∑ j, W k j * ‖X k j‖) := by65rw [Finset.sum_add_distrib, hid, Finset.sum_comm]66simp_rw [← Finset.mul_sum]67_ ≤ 1 + ∑ k, W a k * ‖(1-A) a k‖ * M :=68add_le_add le_rfl (Finset.sum_le_sum fun k _ =>69mul_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)72apply (hmax i).trans73rw [← one_div]74apply (le_div_iff₀ (by linarith : 0 < 1-δ)).mpr75nlinarith7677theorem 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 := by82have h := weighted_inverse_sum_le A X hAX W hW hdiag htri83(by norm_num : (1/2:ℝ)<1) hrow i84norm_num at h85exact h8687end Nonadditivity.WeightedMatrixInverse