Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter I, Theorem 12 (corrected) — K0=K1=1K_0=K_1=1K0​=K1​=1, K2=2K_2=2K2​=2, K3=4K_3=4K3​=4, Kn=Fn+1−1K_n = F_{n+1}-1Kn​=Fn+1​−1 for n≥3n\ge 3n≥3

Proved
BellmanDP.Fibonacci.discrete_search_corrected

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

dynamic-programmingfibonacci-searchp2o-batch-b23bp2o-gran-per-chapterp2o-plan-bookp2o-v1search

For n≥0n \ge 0n≥0 let KnK_nKn​ be the largest number N≥1N \ge 1N≥1 of points 0,1,…,N−10, 1, \dots, N-10,1,…,N−1 such that some deterministic adaptive procedure, for every function fff strictly unimodal on these points, evaluates fff at most nnn times and then names the point at which fff is maximal. Then KnK_nKn​ exists for every nnn, and

K0=1,K1=1,K2=2,K3=4,Kn=Fn+1−1(n≥3),K_0 = 1,\quad K_1 = 1,\quad K_2 = 2,\quad K_3 = 4,\qquad K_n = F_{n+1} - 1 \quad (n \ge 3),K0​=1,K1​=1,K2​=2,K3​=4,Kn​=Fn+1​−1(n≥3),

where F0=F1=1F_0 = F_1 = 1F0​=F1​=1, Fk=Fk−1+Fk−2F_k = F_{k-1} + F_{k-2}Fk​=Fk−1​+Fk−2​.

Correction. Bellman prints (7) as Kn=1+FnK_n = 1 + F_nKn​=1+Fn​ for n≥3n \ge 3n≥3. This agrees with the corrected formula at n=3n = 3n=3 but is false from n=4n = 4n=4 on: on seven points, evaluate the third and the fifth; if f(3)>f(5)f(3) > f(5)f(3)>f(5) the maximum is among the first four points and f(3)f(3)f(3) is known, so evaluating the second point and then the first or the fourth identifies it; the case f(5)>f(3)f(5) > f(3)f(5)>f(3) is symmetric, and f(3)=f(5)f(3) = f(5)f(3)=f(5) forces the maximum at the fourth point. Hence K4≥7>6=1+F4K_4 \ge 7 > 6 = 1 + F_4K4​≥7>6=1+F4​. The printed initial values K0,…,K3K_0, \dots, K_3K0​,…,K3​ are kept.

Formalization Note Each value is stated as IsGreatest of the set of searchable point counts, which asserts both that the maximum exists and what it is.

Preamble
import Mathlib
import Definitions.Def_BellmanDP_Fibonacci_SearchModel
Formal statement
namespace BellmanDP.Fibonacci

/-- Bellman, Ch. I, § 22, Theorem 12, p. 36, **corrected**. The book prints `K₀ = 1, K₁ = 1,
K₂ = 2, K₃ = 4` and `K_n = 1 + F_n` for `n ≥ 3`; the latter is false from `n = 4` on (seven
points can be searched with four evaluations, while `1 + F₄ = 6`). The corrected statement keeps
the printed initial values and replaces (7) by `K_n = F_{n+1} − 1` for `n ≥ 3` (which agrees with
the printed value at `n = 3`). Here `K_n` is the greatest number of points on which the maximum
of every strictly unimodal function can always be identified in `n` computations. -/
theorem discrete_search_corrected :
    IsGreatest (identifiableSizes 0) 1 ∧
    IsGreatest (identifiableSizes 1) 1 ∧
    IsGreatest (identifiableSizes 2) 2 ∧
    IsGreatest (identifiableSizes 3) 4 ∧
    ∀ n : ℕ, 3 ≤ n → IsGreatest (identifiableSizes n) (bookFib (n + 1) - 1) := by sorry

end BellmanDP.Fibonacci
Source
Bellman, Dynamic Programming, Princeton University Press (1957; Princeton Landmarks ed. 2010), DOI 10.2307/j.ctv1nxcw0f, Chapter I, § 22, Theorem 12 (Eq. (22.7), corrected), p. 36
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

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