Finsets of prefixes and suffixes #
For a finite set S of lists, Finset.prefixes S is the finite set of all
prefixes of elements of S, and Finset.suffixes S the finite set of all
suffixes of elements of S. The two operations have dual APIs: membership
characterizations (mem_prefixes/mem_suffixes), self-membership, and
closure under taking further prefixes/suffixes.
This file lives in Complexitylib/Mathlib/ because it extends a Mathlib
type in its home namespace — the sanctioned exception to the Complexity
root-namespace rule. Its contents are candidates for upstreaming to Mathlib.
theorem
Finset.mem_prefixes_self
{α : Type u_1}
[DecidableEq α]
{S : Finset (List α)}
{s : List α}
(hs : s ∈ S)
:
theorem
Finset.mem_suffixes_self
{α : Type u_1}
[DecidableEq α]
{S : Finset (List α)}
{s : List α}
(hs : s ∈ S)
: