Membership in the exact-k no-adjacent finset family
ProvedNoAdjString.mem_noAdjacentFinsetCardcombinatoricsfinsetmembership
Membership in the family is characterized by the conjunction of the no-consecutive-elements property with cardinality :
Preamble
import Definitions.Def_NoAdjacentBinaryStrings open Finset Function
Formal statement
namespace NoAdjString
theorem mem_noAdjacentFinsetCard {n k : ℕ} {s : Finset (Fin n)} :
s ∈ noAdjacentFinsetCard n k ↔ s.noAdjacent ∧ s.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.