Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(2.4.7) — P{l(π) ≥ r} ≤ (n choose k)[k! (r choose k)]⁻¹ for r ≥ k

Proved
KingmanSubadditive.Ulam.eq_2_4_7

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

longest-increasing-subsequencep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1random-permutationstail-bound

Let π\piπ be uniformly distributed over Sn\mathcal S_nSn​, let kkk be a positive integer and let r≥kr\ge kr≥k be an integer. Then

P{l(π)≥r} ≤ (nk)[k!(rk)]−1.P\{l(\pi)\ge r\}\ \le\ \binom nk\Big[k!\binom rk\Big]^{-1}.P{l(π)≥r} ≤ (kn​)[k!(kr​)]−1.

The bound is exact and holds for every nnn; letting kkk and rrr grow like multiples of n1/2n^{1/2}n1/2 gives the upper bound of Theorem 8.

Formalization Note PPP is the proportion of the n!n!n! permutations. Since r≥kr\ge kr≥k, (rk)≥1\binom rk\ge1(kr​)≥1, so the right side involves no division by zero.

Preamble
import Mathlib
import Definitions.Def_KingmanSubadditive_Ulam_Permutations
Formal statement
namespace KingmanSubadditive.Ulam

/-- **(2.4.7)** (Kingman, *Subadditive ergodic theory*, Ann. Probab. 1(6):883–899 (1973), §2.4,
proof of Theorem 8, p. 896). For `π` uniform on `𝒮_n`, every positive integer `k` and every
`r ≥ k`, `P{l(π) ≥ r} ≤ (n choose k)[k! (r choose k)]⁻¹`.

**Formalization Note** `k` is positive, as in the paper ("let `k` be any positive integer");
`r ≥ k` makes `(r choose k) ≥ 1`, so the right side has no division by zero. The bound is exact
and holds for every `n`. -/
theorem eq_2_4_7 (n k r : ℕ) (hk : 1 ≤ k) (hkr : k ≤ r) :
    unifProb n (fun σ => r ≤ lis σ) ≤
      (n.choose k : ℝ) / ((Nat.factorial k : ℝ) * (r.choose k : ℝ)) := by sorry

end KingmanSubadditive.Ulam
Source
Kingman, Subadditive ergodic theory, Ann. Probab. 1(6):883–899 (1973), DOI 10.1214/aop/1176996798, p. 896, §2.4, proof of Theorem 8, (2.4.7)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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