Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Φ(n, r) ≤ r^n + 1 for n > 0

Proved
VapnikChervonenkis.GrowthFunction.phi_le_pow_add_one

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1vc-theory

Let Φ(n,r)\Phi(n, r)Φ(n,r) be defined by the recurrence (1). For every n>0n > 0n>0 and every r≥0r \ge 0r≥0,

Φ(n,r)≤rn+1.\Phi(n, r) \le r^n + 1 .Φ(n,r)≤rn+1.

This bound turns the combinatorial estimate mS(r)≤Φ(n,r)m^S(r) \le \Phi(n, r)mS(r)≤Φ(n,r) into the polynomial bound of Theorem 1.

Formalization Note. The inequality is non-strict, as stated on p. 266. The last sentence of the proof of Theorem 1 (p. 268) writes the strict form "for r>0r > 0r>0, Φ(n,r)<rn+1\Phi(n, r) < r^n + 1Φ(n,r)<rn+1", which is false at n=r=1n = r = 1n=r=1 (Φ(1,1)=2=11+1\Phi(1,1) = 2 = 1^1 + 1Φ(1,1)=2=11+1); Theorem 1 needs only the non-strict form. At r=0r = 0r=0 the bound reads 1≤0n+1=11 \le 0^n + 1 = 11≤0n+1=1.

Preamble
import Mathlib
import Definitions.Def_VapnikChervonenkis_Shared_Phi
Formal statement
namespace VapnikChervonenkis.GrowthFunction

/-- Vapnik and Chervonenkis (1971), p. 266: "For `n > 0` and `r ≧ 0`, `Φ(n, r) ≦ r^n + 1`." -/
theorem phi_le_pow_add_one (n r : ℕ) (hn : 0 < n) :
    Shared.Phi n r ≤ r ^ n + 1 := by sorry

end VapnikChervonenkis.GrowthFunction
Source
Vapnik and Chervonenkis, On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities, Theory Probab. Appl. 16 (1971), p. 266, sentence after the closed form of Φ(n, r)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. nnn and rrr are natural numbers, and there is one hypothesis: n>0n > 0n>0, i.e. n≥1n \ge 1n≥1.

The quantity involved. Φ(n,r)\Phi(n, r)Φ(n,r) is a function of two natural numbers. It is defined in a separate definitions file that is not shown, so its definition cannot be unfolded here.

Claim. For all natural numbers n≥1n \ge 1n≥1 and all natural numbers r≥0r \ge 0r≥0:

Φ(n,r)≤rn+1.\Phi(n, r) \le r^n + 1.Φ(n,r)≤rn+1.

The inequality is non-strict.

Degenerate cases.

  • r=0r = 0r=0: because n≥1n \ge 1n≥1, 0n=00^n = 00n=0, so the claim is Φ(n,0)≤1\Phi(n, 0) \le 1Φ(n,0)≤1.
  • r=1r = 1r=1: the claim is Φ(n,1)≤2\Phi(n, 1) \le 2Φ(n,1)≤2.
  • n=0n = 0n=0: excluded by the hypothesis, and the statement says nothing about Φ(0,r)\Phi(0, r)Φ(0,r).

The hypothesis n≥1n \ge 1n≥1 can be satisfied, so the statement is not vacuous.

Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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