Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Pascal-diagonal sum equals fib(n+2)

Proved
NoAdjString.sum_choose_pascal_diagonal

by Yuxuan Xu · Sep 25, 2026 · Mathlib 0df444a (Lean v4.33.1)

binomial-coefficientcombinatoricsfibonacci

The sum along a diagonal of Pascal's triangle equals a Fibonacci number:

∑k=0n(n+1−kk)=fib(n+2).\sum_{k=0}^{n} \binom{n+1-k}{k} = \mathrm{fib}(n+2).k=0∑n​(kn+1−k​)=fib(n+2).

The sum is identified with the count of length-nnn binary strings with no adjacent ones, grouped by the number of ones, and that count is fib(n+2)\mathrm{fib}(n+2)fib(n+2).

Preamble
import Definitions.Def_NoAdjacentBinaryStrings
import Mathlib.Data.Nat.Fib.Basic

open Finset Function
Formal statement
namespace NoAdjString

theorem sum_choose_pascal_diagonal (n : ℕ) :
    ∑ k ∈ Finset.range (n + 1), Nat.choose (n + 1 - k) k = Nat.fib (n + 2) := by sorry

end NoAdjString
Source
Kenneth H. Rosen, Discrete Mathematics and Its Applications, 8th ed., McGraw-Hill 2019. The no-consecutive-ones count is the worked example on bit strings without consecutive 1s in Section 8.1 (Applications of Recurrence Relations); the exact-k binomial count is the restricted-combinations (gap) argument of Chapter 6.

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