Sets: Operations #
The empty set, the universal set, singletons, insertion, union, and intersection, each with its membership lemma, and the basic order lemmas relating them to the subset relation.
Inspired by Mathlib's Set. This is an independent, unofficial library.
@[instance_reducible]
Equations
- MathlibMini.Set.instEmptyCollection = { emptyCollection := fun (x : α) => False }
@[instance_reducible]
Equations
- MathlibMini.Set.instSingleton = { singleton := fun (element other : α) => other = element }
@[instance_reducible]
Equations
- MathlibMini.Set.instInsert = { insert := fun (element : α) (set : MathlibMini.Set α) (other : α) => other = element ∨ other ∈ set }
@[instance_reducible]
Equations
- MathlibMini.Set.instUnion = { union := fun (left right : MathlibMini.Set α) (element : α) => element ∈ left ∨ element ∈ right }
@[instance_reducible]
Equations
- MathlibMini.Set.instInter = { inter := fun (left right : MathlibMini.Set α) (element : α) => element ∈ left ∧ element ∈ right }
The set of all elements of α.
Equations
Instances For
Membership #
@[simp]
Every element is a member of the universal set.