Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 38: normalized power iteration converges

Open
QAlgorithms.Papers.Independent.Extend50.P27.theorem38

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let AAA be a real matrix on a nonempty finite index set. Assume AAA is symmetric positive semidefinite and primitive, including entrywise nonnegativity. Let wi0>0w^0_i>0wi0​>0 and ∑iwi0=1\sum_iw^0_i=1∑i​wi0​=1, and define

vm+1=Awm,wm+1=vm+1∑jvjm+1(m≥0).v^{m+1}=Aw^m,\qquad w^{m+1}=\frac{v^{m+1}}{\sum_jv^{m+1}_j}\quad(m\ge0).vm+1=Awm,wm+1=∑j​vjm+1​vm+1​(m≥0).

Every output coordinate and normalization denominator is strictly positive. There is a positive sum-normalized Perron vector xxx, with Ax=r(A)xAx=r(A)xAx=r(A)x, and

lim⁡m→∞wm=x,lim⁡m→∞∑jvjm+1=r(A)=λmax⁡(A).\lim_{m\to\infty}w^m=x,\qquad\lim_{m\to\infty}\sum_jv^{m+1}_j=r(A)=\lambda_{\max}(A).m→∞lim​wm=x,m→∞lim​j∑​vjm+1​=r(A)=λmax​(A).

This gives convergence of both the approximate eigenvector and approximate spectral radius, with the source's sum normalization.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P27
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

open Filter Topology

open QAlgorithms.Schur

namespace QAlgorithms.Papers.Independent.Extend50.P27

open QAlgorithms.Papers.Independent.Renew46.P26 (deleteLast)

open QAlgorithms.Papers.Independent.Gap20.P01 (spechtMatrix)

open QAlgorithms.Papers.Independent.Claimed50.P28 (traceInput)

attribute [local instance] Classical.propDecidable

/-- Theorem 38, both convergence claims and well-definedness of every normalization
(PDF pp.27–28). PSD includes symmetry; primitive includes nonnegativity. The
printed r(M) is r(A), and v_(m+1) avoids the undefined initial v_0. -/
theorem theorem38 {I : Type*} [Fintype I] [DecidableEq I] [Nonempty I]
    (A : Matrix I I ℝ) (hPSD : A.PosSemidef) (hprimitive : A.IsPrimitive)
    (w0 : I → ℝ) (hw0pos : ∀ i, 0 < w0 i) (hw0sum : ∑ i, w0 i = 1) :
    ∃ x : I → ℝ,
      (∀ i, 0 < x i) ∧ (∑ i, x i) = 1 ∧ A *ᵥ x = topValue A • x ∧
      (spectralRadius ℝ A).toReal = topValue A ∧
      (∀ m, (∀ i, 0 < powerOutput A w0 m i) ∧ 0 < ∑ i, powerOutput A w0 m i) ∧
      Tendsto (powerIterate A w0) atTop (nhds x) ∧
      Tendsto (fun m => ∑ j, powerOutput A w0 m j) atTop (nhds (topValue A)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P27

end
Source
Optimal Port-based Teleportation, arXiv:1707.08456v1, PDF p. 27, Theorem 38: normalized power iteration converges
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every finite, nonempty index type III with decidable equality, every real matrix AAA indexed by I×II\times II×I that is positive semidefinite and primitive, and every real vector w0:I→Rw_0:I\to\mathbb Rw0​:I→R satisfying w0(i)>0w_0(i)>0w0​(i)>0 for all iii and ∑iw0(i)=1\sum_iw_0(i)=1∑i​w0​(i)=1, define

w(0)=w0,v(m)=Aw(m),wi(m+1)=vi(m)∑jvj(m),τ=sup⁡σR(A),w^{(0)}=w_0,\qquad v^{(m)}=Aw^{(m)},\qquad w^{(m+1)}_i=\frac{v^{(m)}_i}{\sum_jv^{(m)}_j}, \qquad \tau=\sup\sigma_{\mathbb R}(A),w(0)=w0​,v(m)=Aw(m),wi(m+1)​=∑j​vj(m)​vi(m)​​,τ=supσR​(A),

where σR(A)\sigma_{\mathbb R}(A)σR​(A) is the spectrum over R\mathbb RR, and division is total, with division by zero equal to 000. Then there exists a real vector x:I→Rx:I\to\mathbb Rx:I→R such that

∀i, xi>0,∑ixi=1,Ax=τx,(spectralRadius⁡RA).toReal⁡=τ.\forall i,\ x_i>0,\qquad \sum_ix_i=1,\qquad Ax=\tau x,\qquad \bigl(\operatorname{spectralRadius}_{\mathbb R}A\bigr).\operatorname{toReal}=\tau.∀i, xi​>0,i∑​xi​=1,Ax=τx,(spectralRadiusR​A).toReal=τ.

For every natural number mmm, including m=0m=0m=0, every coordinate vi(m)v^{(m)}_ivi(m)​ is strictly positive and ∑ivi(m)>0\sum_iv^{(m)}_i>0∑i​vi(m)​>0. Furthermore,

w(m)⟶x,∑jvj(m)⟶τas m→∞.w^{(m)}\longrightarrow x,\qquad \sum_jv^{(m)}_j\longrightarrow\tau \quad\text{as }m\to\infty.w(m)⟶x,j∑​vj(m)​⟶τas m→∞.

Here the spectral radius is initially an extended nonnegative real number, and its conversion to a real number sends +∞+\infty+∞ to 000.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me