Documentation

CslibFrontier.Foundations.Data.BitString.ShortMembers

Short members of a language #

Cslib.BitString.shortMembers S n lists, without repetition, the members of a language S : Set (List Bool) of length at most n: the binary words of length at most n (Cslib.BitString.shortWords) that lie in S.

Main definitions #

Main results #

noncomputable def Cslib.BitString.shortMembers (S : Set (List Bool)) (n : ℕ) :

The members of S of length at most n, listed in some order without repetition.

@[simp]

A word is listed exactly when it is a member of S of length at most n.

The listing has one entry for each member of S of length at most n.

theorem Cslib.BitString.length_le_length_shortMembers {S : Set (List Bool)} {n : ℕ} {ℓ : List (List Bool)} (hnd : ℓ.Nodup) (h : ∀ s ∈ ℓ, s ∈ S ∧ s.length ≤ n) :

The census bounds the lists of distinct short members.

theorem Cslib.BitString.mem_iff_of_length_eq_length_shortMembers {S : Set (List Bool)} {n : ℕ} {ℓ : List (List Bool)} (hnd : ℓ.Nodup) (h : ∀ s ∈ ℓ, s ∈ S ∧ s.length ≤ n) (hlen : ℓ.length = (shortMembers S n).length) {s : List Bool} (hs : s.length ≤ n) :
s ∈ ℓ ↔ s ∈ S

A list attaining the census lists all short members. A duplicate-free list of short members of S with as many entries as there are short members agrees with S on every short word.