Count of k-element finsets with no consecutive elements
ProvedNoAdjString.card_noAdjacentFinsetCardbinomial-coefficientcombinatoricsfinset
The number of -element finsets of containing no two consecutive elements is
The bijection identifies such finsets with , whose cardinality is the binomial coefficient.
Preamble
import Definitions.Def_NoAdjacentGapEquiv open Finset Function
Formal statement
namespace NoAdjString
theorem card_noAdjacentFinsetCard (n k : ℕ) :
(noAdjacentFinsetCard n k).card = Nat.choose (n + 1 - k) k := by sorry
end NoAdjStringSource
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.