Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma B.9 — every class is reachable from an input class

Proved
ProcessingNetworks.EntropyIneq.lemma_B_9

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-gran-per-chapterp2o-plan-bookp2o-v1processing-networksrelative-entropyspectral-radiustextbooktraffic-equations

Throughout, I≥1I\ge1I≥1 is an integer, I={1,…,I}\mathcal I=\{1,\dots,I\}I={1,…,I} is the set of classes, λ∈R+I\lambda\in\mathbb R^I_+λ∈R+I​ is the vector of external arrival rates and PPP is a non-negative I×II\times II×I routing matrix with spectral radius ρ(P)<1\rho(P)<1ρ(P)<1; Pi0:=1−∑j∈IPijP_{i0}:=1-\sum_{j\in\mathcal I}P_{ij}Pi0​:=1−∑j∈I​Pij​, I+=I∪{0}\mathcal I_+=\mathcal I\cup\{0\}I+​=I∪{0}, α:=(I−P′)−1λ\alpha:=(I-P')^{-1}\lambdaα:=(I−P′)−1λ is assumed positive and α0:=1\alpha_0:=1α0​:=1 (Section B.4, (B.13)–(B.17)). Let I0:={i∈I:λi>0}\mathcal I_0:=\{i\in\mathcal I:\lambda_i>0\}I0​:={i∈I:λi​>0} be the set of input classes (B.18).

For each class i∈Ii\in\mathcal Ii∈I there exist an integer p≥0p\ge0p≥0 and classes i0,i1,…,ipi_0,i_1,\dots,i_pi0​,i1​,…,ip​ such that

i0∈I0,Pikik+1>0  (k=0,1,…,p−1),ip=i.i_0\in\mathcal I_0,\qquad P_{i_ki_{k+1}}>0\ \ (k=0,1,\dots,p-1),\qquad i_p=i .i0​∈I0​,Pik​ik+1​​>0  (k=0,1,…,p−1),ip​=i.

In words, I0\mathcal I_0I0​ is not empty and every class is reachable from an input class along routes of positive probability.

Formalization Note The classes i0,…,ipi_0,\dots,i_pi0​,…,ip​ are a map from {0,…,p}\{0,\dots,p\}{0,…,p} to the classes; p=0p=0p=0 is allowed.

Differences from the source:

  • encoding: the chain i₀, …, i_p of classes in {1, …, I} → a map c : Fin (p + 1) → Fin I with c 0 = i₀ and c (Fin.last p) = i_p; reason: 0-based class indices; same chains
  • encoding: ρ(P) < 1, ρ the largest modulus of an eigenvalue → RobustToDynamics.specRadius P < 1, the supremum of the moduli of the points of the spectrum of P over ℂ; reason: that spectrum is the set of complex eigenvalues, a finite nonempty set for I ≥ 1, so the supremum is the maximum
  • encoding: α := (I − P′)⁻¹λ → traffic lam P, defined with Matrix.inv; reason: ρ(P) < 1 makes I − P′ invertible (Theorem F.1), so Matrix.inv is the true inverse
Preamble
import Mathlib
import Definitions.Def_ProcessingNetworks_EntropyIneq_SectionB4Assumptions
Formal statement
namespace ProcessingNetworks.EntropyIneq

/-- **Lemma B.9** (Dai & Harrison, *Processing Networks*, pre-publication draft 2020-4-2,
spnbook.org, Appendix B §B.4, Lemma B.9, eq. (B.19), p.269 (PDF 285)). Under the standing
assumptions of Section B.4, for each class `i ∈ 𝓘` there exist an integer `p ≥ 0` and classes
`i₀, i₁, …, i_p` such that `i₀ ∈ 𝓘₀` (that is, `λ_{i₀} > 0`, (B.18)),
`P_{i_k i_{k+1}} > 0` for `k = 0, 1, …, p − 1`, and `i_p = i`.

**Formalization Note** The classes `i₀, …, i_p` are a map `c : Fin (p + 1) → Fin I`; `c 0 = i₀`,
`c (Fin.last p) = i_p`, and `k : Fin p` ranges over `0, …, p − 1` with `c k.castSucc = i_k`,
`c k.succ = i_{k+1}`. The input classes `𝓘₀ = {i : λᵢ > 0}` (B.18) are written out. -/
theorem lemma_B_9 {I : ℕ} (lam : Fin I → ℝ) (P : Matrix (Fin I) (Fin I) ℝ)
    (hB4 : SectionB4Assumptions lam P) (i : Fin I) :
    ∃ p : ℕ, ∃ c : Fin (p + 1) → Fin I,
      0 < lam (c 0) ∧ (∀ k : Fin p, 0 < P (c k.castSucc) (c k.succ)) ∧ c (Fin.last p) = i := by sorry

end ProcessingNetworks.EntropyIneq
Source
Dai & Harrison, Processing Networks (pre-publication draft 2020-4-2, spnbook.org), Appendix B §B.4, Lemma B.9, eq. (B.19), p.269 (PDF 285)
Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 1, 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