Count of length-n strings with k non-adjacent ones
ProvedNoAdjString.card_noAdjacentStringsCardbinary-stringsbinomial-coefficientcombinatorics
The number of length- binary strings with no adjacent ones and exactly ones is
Placing non-adjacent marks among positions forces a gap after each mark except the last; the gap bijection identifies these placements with the choice of positions among the available slots.
Preamble
import Definitions.Def_NoAdjacentBinaryStrings open Finset Function
Formal statement
namespace NoAdjString
theorem card_noAdjacentStringsCard (n k : ℕ) :
(noAdjacentStringsCard 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.