The type of all predicates over a type is that type's _powerset_. Elementsof one of these subsets satisfy the predicate:
```lean
defSet (α : Type u) : Type u :=
α →Prop
instance : Membership α (Set α) where
mem xs x := xs x
```
A function $`f` is surjective if each element of the range is covered by an element of the domain:
```lean
defSurjective (f : α → β) :=
∀ y, ∃ x, f x = y
```
:::theorem"Cantor"
Given a function $`f ∈S→ \mathcal{P}(S)`, [Cantor's diagonal argument](https://en.wikipedia.org/wiki/Cantor%27s_diagonal_argument) involves the diagonal set $`\{x ∈S \mid x \not\in f(x)\}`. The {tactic}`grind` tactic takes care of many reasoning steps: