Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Galton–Watson extinction criterion: qqq is the least root of f(s)=sf(s)=sf(s)=s in [0,1][0,1][0,1], and q=1  ⟺  m≤1q=1 \iff m\le 1q=1⟺m≤1

Open
GaltonWatson.extinction_criterion

by Nickrobbins95 · Oct 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

branching-processesprobabilityprobability-generating-functionsstochastic-processes

This is the extinction criterion for the Galton–Watson branching process.

Let (pk)k≥0(p_k)_{k\ge 0}(pk​)k≥0​ be a probability distribution on N={0,1,2,… }\mathbb N=\{0,1,2,\dots\}N={0,1,2,…} (the offspring distribution) with p1<1p_1<1p1​<1 and with finite mean

m=∑k≥0k pk<∞,m=\sum_{k\ge 0}k\,p_k<\infty ,m=k≥0∑​kpk​<∞,

and let

f(s)=∑k≥0pk sk,0≤s≤1,f(s)=\sum_{k\ge 0}p_k\,s^k,\qquad 0\le s\le 1,f(s)=k≥0∑​pk​sk,0≤s≤1,

be its probability generating function.

On a probability space (Ω,F,P)(\Omega,\mathcal F,\mathbb P)(Ω,F,P) let (ξn,i)n,i≥0(\xi_{n,i})_{n,i\ge 0}(ξn,i​)n,i≥0​ be independent random variables, each with law P(ξn,i=k)=pk\mathbb P(\xi_{n,i}=k)=p_kP(ξn,i​=k)=pk​ for all k∈Nk\in\mathbb Nk∈N; ξn,i\xi_{n,i}ξn,i​ is the number of children of the iii-th individual of generation nnn. The Galton–Watson process (Zn)n≥0(Z_n)_{n\ge 0}(Zn​)n≥0​ is

Z0=1,Zn+1=∑i=0Zn−1ξn,i(n≥0),Z_0=1,\qquad Z_{n+1}=\sum_{i=0}^{Z_n-1}\xi_{n,i}\quad(n\ge 0),Z0​=1,Zn+1​=i=0∑Zn​−1​ξn,i​(n≥0),

where an empty sum is 000 (so once the population dies out it stays extinct). Let

q=P(Zn=0 for some n≥0)q=\mathbb P\bigl(Z_n=0\ \text{for some } n\ge 0\bigr)q=P(Zn​=0 for some n≥0)

be the extinction probability. Then:

  1. qqq is the smallest root of the equation f(s)=sf(s)=sf(s)=s in [0,1][0,1][0,1];
  2. q=1q=1q=1 if and only if m≤1m\le 1m≤1.

So the population survives forever with positive probability exactly in the supercritical case m>1m>1m>1. The hypothesis p1<1p_1<1p1​<1 only excludes the degenerate process in which every individual has exactly one child (then Zn=1Z_n=1Zn​=1 for all nnn, so q=0q=0q=0 although m=1m=1m=1).

This is the basic dichotomy of branching-process theory (subcritical and critical processes die out, supercritical ones survive with positive probability), and the fixed-point characterization of qqq is the standard tool for computing extinction probabilities in population genetics, epidemic models, branching random walks and the exploration of random graphs.

Formalization Note The offspring law is a PMF ℕ. The mean m=∑kk pkm=\sum_k k\,p_km=∑k​kpk​ is taken in [0,∞][0,\infty][0,∞]; finiteness is a hypothesis and the comparison m≤1m\le 1m≤1 is made there. The generating function is the real series ∑kpksk\sum_k p_k s^k∑k​pk​sk (Lean's convention 00=10^0=100=1 gives f(0)=p0f(0)=p_0f(0)=p0​), and "smallest root in [0,1][0,1][0,1]" is IsLeast of {s∈[0,1]:f(s)=s}\{s\in[0,1] : f(s)=s\}{s∈[0,1]:f(s)=s}. The array (ξn,i)(\xi_{n,i})(ξn,i​) is mutually independent as a family indexed by pairs (n,i)∈N×N(n,i)\in\mathbb N\times\mathbb N(n,i)∈N×N, each ξn,i\xi_{n,i}ξn,i​ is measurable with P(ξn,i=k)=pk\mathbb P(\xi_{n,i}=k)=p_kP(ξn,i​=k)=pk​ for every kkk, and ZZZ is any function satisfying the recursion above (which determines it). The extinction probability is the real-valued measure of the event {∃n, Zn=0}\{\exists n,\ Z_n=0\}{∃n, Zn​=0}.

Preamble
import Mathlib

open MeasureTheory ProbabilityTheory
Formal statement
namespace GaltonWatson

/-- Galton–Watson extinction criterion (Athreya–Ney, Ch. I §5 Thm 1; Grimmett–Stirzaker Thm 5.4.5;
Durrett PTE §4.3.4). The offspring law is `p`, the offspring numbers `ξ n i` (child count of the
`i`-th individual of generation `n`) are iid with law `p`, `Z 0 = 1` and
`Z (n+1) = ∑_{i < Z n} ξ n i`. Then the extinction probability `q = P(∃ n, Z n = 0)` is the
smallest root of `f s = s` in `[0,1]`, where `f s = ∑ p_k s^k`, and `q = 1 ↔ m ≤ 1`. -/
theorem extinction_criterion
    {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
    (p : PMF ℕ) (hp1 : p 1 < 1) (hm : ∑' k : ℕ, (k : ENNReal) * p k ≠ ⊤)
    (ξ : ℕ → ℕ → Ω → ℕ) (hξ_meas : ∀ n i, Measurable (ξ n i))
    (hξ_indep : iIndepFun (fun ni : ℕ × ℕ => ξ ni.1 ni.2) P)
    (hξ_law : ∀ n i k, P (ξ n i ⁻¹' {k}) = p k)
    (Z : ℕ → Ω → ℕ) (hZ0 : ∀ ω, Z 0 ω = 1)
    (hZ : ∀ n ω, Z (n + 1) ω = ∑ i ∈ Finset.range (Z n ω), ξ n i ω) :
    IsLeast {s : ℝ | s ∈ Set.Icc 0 1 ∧ ∑' k : ℕ, (p k).toReal * s ^ k = s}
        (P.real {ω | ∃ n, Z n ω = 0}) ∧
      (P.real {ω | ∃ n, Z n ω = 0} = 1 ↔ ∑' k : ℕ, (k : ENNReal) * p k ≤ 1) := by sorry

end GaltonWatson
Source
K. B. Athreya and P. E. Ney, Branching Processes, Springer 1972, Chapter I, Section 5, Theorem 1 (extinction probability); G. R. Grimmett and D. R. Stirzaker, Probability and Random Processes, 3rd ed., Oxford University Press 2001, Section 5.4, Theorem (5.4.5) (eta is the smallest non-negative root of s = G(s); eta = 1 if mu < 1, eta < 1 if mu > 1, eta = 1 if mu = 1 with positive variance); R. Durrett, Probability: Theory and Examples, 5th ed., Cambridge University Press 2019, Section 4.3.4 (Branching Processes), the extinction theorems for mu < 1, for mu = 1 with P(xi = 1) < 1, and for mu > 1; T. E. Harris, The Theory of Branching Processes, Springer 1963, Chapter I, Section 6 (probability of extinction).

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me