The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V03. Sets, finite structures and big operators

Mathlib.Data.Finset.Attach

4 declarations. Mathlib docs · Source

Attaching a proof of membership to a finite set

Main declarations

  • Finset.attach: Given s : Finset α, attach s forms a finset of elements of the subtype {a // a ∈ s}; in other words, it attaches elements to a proof of membership in the set.

Tags

finite sets, finset

attach

def Finset.attach E3 #

{α : Type u_1} → (s : Finset α) → Finset ↥s

attach s takes the elements of s and forms a new set of elements of the subtype {x // x ∈ s}.

theorem Finset.attach_val E0 #

∀ {α : Type u_1} (s : Finset α), s.attach.val = s.val.attach

theorem Finset.mem_attach E0 #

∀ {α : Type u_1} (s : Finset α) (x : ↥s), x ∈ s.attach

theorem Finset.coe_attach E0 #

∀ {α : Type u_1} (s : Finset α), ↑s.attach = Set.univ