Total no-adjacent string count as a sum over k
ProvedNoAdjString.card_noAdjacentStrings_eq_sumbinary-stringscombinatoricsfinset-sum
The total number of length- strings with no adjacent ones equals the sum, over the number of ones, of the exact- counts:
The families for distinct are pairwise disjoint because their members have distinct support cardinalities.
Preamble
import Definitions.Def_NoAdjacentBinaryStrings open Finset Function
Formal statement
namespace NoAdjString
theorem card_noAdjacentStrings_eq_sum (n : ℕ) :
(noAdjacentStrings n).card =
∑ k ∈ Finset.range (n + 1), 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.