Membership in the exact-k no-adjacent string family
ProvedNoAdjString.mem_noAdjacentStringsCardbinary-stringscombinatoricsmembership
Membership in the family is characterized by the conjunction of the no-adjacent-ones property with having exactly ones:
This is the membership characterization used to partition the total family by the number of ones.
Preamble
import Definitions.Def_NoAdjacentBinaryStrings open Finset Function
Formal statement
namespace NoAdjString
theorem mem_noAdjacentStringsCard {n k : ℕ} {f : Fin n → Bool} :
f ∈ noAdjacentStringsCard n k ↔
NoAdjacentOnes f ∧ (supportFinset f).card = 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.