Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 8 — absorbing decision-process model

Proved
FriedmannCunningham.mdp_valid

by kmehltretter82 · Nov 2, 2026 · Mathlib 0df444a (Lean v4.33.1)

algorithm-analysisoliver-friedmanntheoretical-computer-science

For every n≥3 each collapsed action has nonnegative transition probabilities whose sum is at most one, and every policy transient system has nonzero determinant. This is the eliminated-state algebraic prerequisite supplied by the source’s absorbing-chain construction.

Preamble
import Definitions.Def_friedmann_cunningham

set_option autoImplicit false
Formal statement
namespace FriedmannCunningham

open scoped BigOperators

/-- Figure 7 and Lemma 8, after eliminating the random vertices: each action's
transition row is substochastic and every policy's transient matrix is invertible. -/
theorem mdp_valid (n : ℕ) (hn : 3 ≤ n) :
    (∀ r b q, 0 ≤ transition n hn r b q) ∧
    (∀ r b, (∑ q : Fin (rows n), transition n hn r b q) ≤ 1) ∧
    (∀ σ : Policy n,
      (FriedmannSimplex.basisMatrix (program n) (policyBasis n hn σ)).det ≠ 0) := by sorry

end FriedmannCunningham
Source
Avis and Friedmann (2017), Figure 7 and Lemma 8, §3.2. https://oliverfriedmann.com/downloads/papers/cunningham_exponential_lower_bound.pdf
Read-back

What the Lean code literally says, in plain math · Codex independent auditor (model identifier unavailable)

mdp_valid. For every natural number nnn and every proof of 3≤n3\le n3≤n, Fix a natural n≥3n\ge3n≥3, put m=5(n−1)m=5(n-1)m=5(n−1) and k=10(n−1)k=10(n-1)k=10(n−1), and index rows, in order, by a2,…,an; b2,…,bn−1; c2,…,cn; d2,…,dn; e1,…,ena_2,\ldots,a_n;\ b_2,\ldots,b_{n-1};\ c_2,\ldots,c_n;\ d_2,\ldots,d_n;\ e_1,\ldots,e_na2​,…,an​; b2​,…,bn−1​; c2​,…,cn​; d2​,…,dn​; e1​,…,en​. Each row has two action names v0,v1v^0,v^1v0,v1. The zero-based column order is e11e_1^1e11​; then di0,ei1,bi1,bi0d_i^0,e_i^1,b_i^1,b_i^0di0​,ei1​,bi1​,bi0​ for i=2,…,n−1i=2,\ldots,n-1i=2,…,n−1 in increasing iii; then dn0,en1d_n^0,e_n^1dn0​,en1​; then ci0,ci1c_i^0,c_i^1ci0​,ci1​ for i=2,…,ni=2,\ldots,ni=2,…,n; then ei0e_i^0ei0​ for i=1,…,ni=1,\ldots,ni=1,…,n; then di1d_i^1di1​ for i=2,…,ni=2,\ldots,ni=2,…,n; and finally ai1,ai0a_i^1,a_i^0ai1​,ai0​ for i=n,n−1,…,2i=n,n-1,\ldots,2i=n,n−1,…,2. The rational program P=(A,1,c)P=(A,\mathbf1,c)P=(A,1,c) is specified as follows. Put S=2n+1S=2n+1S=2n+1, ε=S−(2n+2)\varepsilon=S^{-(2n+2)}ε=S−(2n+2), Gi=(−S)2i−1G_i=(-S)^{2i-1}Gi​=(−S)2i−1 and Hi=(−S)2iH_i=(-S)^{2i}Hi​=(−S)2i. To specify the coefficient of an action name vvv in a row, write Xzib=1v=zibX_{z_i^b}=\mathbf1_{v=z_i^b}Xzib​​=1v=zib​​, Ozi=Xzi0+Xzi1O_{z_i}=X_{z_i^0}+X_{z_i^1}Ozi​​=Xzi0​​+Xzi1​​, and Ui=Xai1+Xbi1+Xci1+Xdi1+Xei1U_i=X_{a_i^1}+X_{b_i^1}+X_{c_i^1}+X_{d_i^1}+X_{e_i^1}Ui​=Xai1​​+Xbi1​​+Xci1​​+Xdi1​​+Xei1​​, with indicators for absent action names equal to zero. The a2a_2a2​ coefficient is Oa2−ε(Xb20+Xc20+Xd20+Xe11)O_{a_2}-\varepsilon(X_{b_2^0}+X_{c_2^0}+X_{d_2^0}+X_{e_1^1})Oa2​​−ε(Xb20​​+Xc20​​+Xd20​​+Xe11​​); for aia_iai​, i>2i>2i>2, it is Oai−Xai−10−εUi−1O_{a_i}-X_{a_{i-1}^0}-\varepsilon U_{i-1}Oai​​−Xai−10​​−εUi−1​. The bib_ibi​ coefficient is Obi−Xbi+10−Xdi+10O_{b_i}-X_{b_{i+1}^0}-X_{d_{i+1}^0}Obi​​−Xbi+10​​−Xdi+10​​. The cic_ici​ coefficient is Oci−Xci+10O_{c_i}-X_{c_{i+1}^0}Oci​​−Xci+10​​ for i<ni<ni<n, and Ocn−∑j=0nXej0O_{c_n}-\sum_{j=0}^nX_{e_j^0}Ocn​​−∑j=0n​Xej0​​ for i=ni=ni=n. The did_idi​ coefficient is Odi−(1−ε)Ui/2O_{d_i}-(1-\varepsilon)U_i/2Odi​​−(1−ε)Ui​/2. The e1e_1e1​ coefficient is Oe1−(1−ε)(Xb20+Xc20+Xd20+Xe11)O_{e_1}-(1-\varepsilon)(X_{b_2^0}+X_{c_2^0}+X_{d_2^0}+X_{e_1^1})Oe1​​−(1−ε)(Xb20​​+Xc20​​+Xd20​​+Xe11​​); the eie_iei​ coefficient for i>1i>1i>1 is Oei−(1−ε)Ui/2O_{e_i}-(1-\varepsilon)U_i/2Oei​​−(1−ε)Ui​/2. Every right-hand side is 111. The action cost is Gi+εHiG_i+\varepsilon H_iGi​+εHi​ for ai1,bi1,ci1a_i^1,b_i^1,c_i^1ai1​,bi1​,ci1​, εHi\varepsilon H_iεHi​ for di1,ei1d_i^1,e_i^1di1​,ei1​, 111 for ei0e_i^0ei0​, and 000 for other actions, with the additional term G1+εH1G_1+\varepsilon H_1G1​+εH1​ added to each of b20,c20,d20b_2^0,c_2^0,d_2^0b20​,c20​,d20​. A policy is a Boolean function σ\sigmaσ on the mmm rows. Its ordered column selection BσB_\sigmaBσ​ selects action rσ(r)r^{\sigma(r)}rσ(r) in row rrr; Mσ=A⋅,BσM_\sigma=A_{\cdot,B_\sigma}Mσ​=A⋅,Bσ​​, uσ=Mσ−11u_\sigma=M_\sigma^{-1}\mathbf1uσ​=Mσ−1​1, and (xσ)j=∑r<m1Bσ(r)=j(uσ)r(x_\sigma)_j=\sum_{r<m}\mathbf1_{B_\sigma(r)=j}(u_\sigma)_r(xσ​)j​=∑r<m​1Bσ​(r)=j​(uσ​)r​. All inverses are total, returning the zero matrix if singular. Put Vσ=Mσ−T(cBσ(r))r<mV_\sigma=M_\sigma^{-T}(c_{B_\sigma(r)})_{r<m}Vσ​=Mσ−T​(cBσ​(r)​)r<m​. For any row rrr and bit bbb, p(r,b,q)=1q=r−Aq,rbp(r,b,q)=\mathbf1_{q=r}-A_{q,r^b}p(r,b,q)=1q=r​−Aq,rb​ and g(r,b)=crbg(r,b)=c_{r^b}g(r,b)=crb​. Row rrr is improving at σ\sigmaσ exactly when Vσ(r)<g(r,1−σ(r))+∑qp(r,1−σ(r),q)Vσ(q)V_\sigma(r)<g(r,1-\sigma(r))+\sum_qp(r,1-\sigma(r),q)V_\sigma(q)Vσ​(r)<g(r,1−σ(r))+∑q​p(r,1−σ(r),q)Vσ​(q). The conclusion consists of all three assertions: for every row rrr, every Boolean action bbb, and every row qqq, p(r,b,q)≥0p(r,b,q)\ge0p(r,b,q)≥0; for every row rrr and Boolean bbb, ∑q<mp(r,b,q)≤1\sum_{q<m}p(r,b,q)\le1∑q<m​p(r,b,q)≤1; and for every Boolean row policy σ\sigmaσ, det⁡Mσ≠0\det M_\sigma\ne0detMσ​=0. The sums run over the decision rows only, and a row-sum equal to 111 is allowed.

Human review
  • Endorsed by Shuze Chen · Nov 3, 2026

    Confirmed by the moderator at approval.

  • Endorsed by kmehltretter82 · Nov 3, 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