Finsets in Fin n #
A few constructions for Finsets in Fin n.
Main declarations #
Finset.attachFin: Turns a Finset of naturals strictly less thanninto aFinset (Fin n).
Given a Finset s of โ contained in {0,..., n-1}, the corresponding Finset in Fin n
is s.attachFin h where h is a proof that all elements of s are less than n.
Instances For
@[simp]
theorem
Finset.mem_attachFin
{n : โ}
{s : Finset โ}
(h : โ m โ s, m < n)
{a : Fin n}
:
a โ s.attachFin h โ โa โ s
@[simp]
@[simp]
@[simp]
@[simp]
theorem
Finset.map_valEmbedding_attachFin
{n : โ}
{s : Finset โ}
(h : โ m โ s, m < n)
:
map Fin.valEmbedding (s.attachFin h) = s
@[simp]
theorem
Finset.attachFin_subset_attachFin
{n : โ}
{s t : Finset โ}
(hst : s โ t)
(ht : โ m โ t, m < n)
:
@[simp]
theorem
Finset.attachFin_ssubset_attachFin
{n : โ}
{s t : Finset โ}
(hst : s โ t)
(ht : โ m โ t, m < n)
: