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 / V31. Set theory

Mathlib.SetTheory.ZFC.PSet

92 declarations and 2 deprecated aliases. Mathlib docs · Source

abbrev PSet.brecOn.go E1 #

{motive : PSet.{u} → Sort u_1} → (t : PSet.{u}) → ((t : PSet.{u}) → PSet.below t → motive t) → motive t ×' PSet.below t

theorem PSet.mk.inj E1 #

∀ {«Type» : Type u} {Func : «Type» → PSet.{u}} {Type_1 : Type u} {Func_1 : Type_1 → PSet.{u}},
  { «Type» := «Type», Func := Func } = { «Type» := Type_1, Func := Func_1 } → «Type» = Type_1 ∧ Func ≍ Func_1

def PSet.ctorIdx E1 #

PSet.{u} → ℕ

theorem PSet.brecOn.eq E1 #

∀ {motive : PSet.{u} → Sort u_1} (t : PSet.{u}) (F_1 : (t : PSet.{u}) → PSet.below t → motive t),
  PSet.brecOn t F_1 = F_1 t (PSet.brecOn.go t F_1).2

theorem PSet.mk.injEq E0 #

∀ («Type» : Type u) (Func : «Type» → PSet.{u}) (Type_1 : Type u) (Func_1 : Type_1 → PSet.{u}),
  ({ «Type» := «Type», Func := Func } = { «Type» := Type_1, Func := Func_1 }) = («Type» = Type_1 ∧ Func ≍ Func_1)

instance PSet.instUsesSetNotationForOrder E0 #

UsesSetNotationForOrder PSet.{u}

structure PSet E1 #

Type (u + 1)

The type of pre-sets in universe u. A pre-set is a family of pre-sets indexed by a type in Type u. The ZFC universe is defined as a quotient of this to ensure extensionality.

ctor PSet.mk E0 #

(«Type» : Type u) → («Type» → PSet.{u}) → PSet.{u}

abbrev PSet.Type E1 #

PSet.{u} → Type u

The underlying type of a pre-set

abbrev PSet.Func E1 #

(self : PSet.{u}) → self.Type → PSet.{u}

The underlying pre-set family of a pre-set

theorem PSet.eta E1 #

∀ (x : PSet.{u_1}), { «Type» := x.Type, Func := x.Func } = x

def PSet.Equiv E1 #

PSet.{u_1} → PSet.{u_2} → Prop

Two pre-sets are extensionally equivalent if every element of the first family is extensionally equivalent to some element of the second family and vice-versa.

theorem PSet.equiv_iff E0 #

∀ {x : PSet.{u_1}} {y : PSet.{u_2}},
  x.Equiv y ↔ (∀ (i : x.Type), ∃ j, (x.Func i).Equiv (y.Func j)) ∧ ∀ (j : y.Type), ∃ i, (x.Func i).Equiv (y.Func j)

theorem PSet.Equiv.exists_left E1 #

∀ {x : PSet.{u_1}} {y : PSet.{u_2}}, x.Equiv y → ∀ (i : x.Type), ∃ j, (x.Func i).Equiv (y.Func j)

theorem PSet.Equiv.exists_right E1 #

∀ {x : PSet.{u_1}} {y : PSet.{u_2}}, x.Equiv y → ∀ (j : y.Type), ∃ i, (x.Func i).Equiv (y.Func j)

theorem PSet.Equiv.refl E1 #

∀ (x : PSet.{u_1}), x.Equiv x

theorem PSet.Equiv.rfl E1 #

∀ {x : PSet.{u_1}}, x.Equiv x

theorem PSet.Equiv.euc E1 #

∀ {x : PSet.{u_1}} {y : PSet.{u_2}} {z : PSet.{u_3}}, x.Equiv y → z.Equiv y → x.Equiv z

theorem PSet.Equiv.symm E1 #

∀ {x : PSet.{u_1}} {y : PSet.{u_2}}, x.Equiv y → y.Equiv x

theorem PSet.Equiv.comm E1 #

∀ {x : PSet.{u_1}} {y : PSet.{u_2}}, x.Equiv y ↔ y.Equiv x

theorem PSet.Equiv.trans E1 #

∀ {x : PSet.{u_1}} {y : PSet.{u_2}} {z : PSet.{u_3}}, x.Equiv y → y.Equiv z → x.Equiv z

theorem PSet.equiv_of_isEmpty E1 #

∀ (x : PSet.{u_1}) (y : PSet.{u_2}) [IsEmpty x.Type] [IsEmpty y.Type], x.Equiv y

instance PSet.setoid E0 #

Setoid PSet.{u_1}

def PSet.Subset E1 #

PSet.{u_1} → PSet.{u_2} → Prop

A pre-set is a subset of another pre-set if every element of the first family is extensionally equivalent to some element of the second family.

instance PSet.instLE E0 #

LE PSet.{u_1}

instance PSet.instPreorder E0 #

Preorder PSet.{u_1}

theorem PSet.Equiv.ext E1 #

∀ (x y : PSet.{u_1}), x.Equiv y ↔ x ⊆ y ∧ y ⊆ x

theorem PSet.Subset.congr_left E1 #

∀ {x y z : PSet.{u_1}}, x.Equiv y → (x ⊆ z ↔ y ⊆ z)

theorem PSet.Subset.congr_right E1 #

∀ {x y z : PSet.{u_1}}, x.Equiv y → (z ⊆ x ↔ z ⊆ y)

def PSet.Mem E1 #

PSet.{u} → PSet.{u} → Prop

x ∈ y as pre-sets if x is extensionally equivalent to a member of the family y.

instance PSet.instMembership E0 #

Membership PSet.{u_1} PSet.{u_1}

theorem PSet.mem_def E0 #

∀ {x y : PSet.{u_1}}, x ∈ y ↔ ∃ b, x.Equiv (y.Func b)

theorem PSet.Mem.mk E1 #

∀ {α : Type u} (A : α → PSet.{u}) (a : α), A a ∈ { «Type» := α, Func := A }

theorem PSet.func_mem E1 #

∀ (x : PSet.{u_1}) (i : x.Type), x.Func i ∈ x

theorem PSet.Mem.ext E1 #

∀ {x y : PSet.{u}}, (∀ (w : PSet.{u}), w ∈ x ↔ w ∈ y) → x.Equiv y

theorem PSet.Mem.congr_right E1 #

∀ {x y : PSet.{u}}, x.Equiv y → ∀ {w : PSet.{u}}, w ∈ x ↔ w ∈ y

theorem PSet.equiv_iff_mem E1 #

∀ {x y : PSet.{u}}, x.Equiv y ↔ ∀ {w : PSet.{u}}, w ∈ x ↔ w ∈ y

theorem PSet.Mem.congr_left E1 #

∀ {x y : PSet.{u}}, x.Equiv y → ∀ {w : PSet.{u}}, x ∈ w ↔ y ∈ w

theorem PSet.mem_of_subset E0 #

∀ {x y z : PSet.{u_1}}, x ⊆ y → z ∈ x → z ∈ y

theorem PSet.subset_iff E0 #

∀ {x y : PSet.{u_1}}, x ⊆ y ↔ ∀ ⦃z : PSet.{u_1}⦄, z ∈ x → z ∈ y

instance PSet.mem_wf E0 #

WellFounded fun x1 x2 ↦ x1 ∈ x2

instance PSet.instWellFoundedRelation E0 #

WellFoundedRelation PSet.{u_1}

theorem PSet.mem_asymm E0 #

∀ {x y : PSet.{u_1}}, x ∈ y → y ∉ x

theorem PSet.mem_irrefl E0 #

∀ (x : PSet.{u_1}), x ∉ x

theorem PSet.not_subset_of_mem E1 #

∀ {x y : PSet.{u_1}}, x ∈ y → ¬y ⊆ x

theorem PSet.notMem_of_subset E1 #

∀ {x y : PSet.{u_1}}, x ⊆ y → y ∉ x

def PSet.toSet E1 #

PSet.{u} → Set PSet.{u}

Convert a pre-set to a Set of pre-sets.

theorem PSet.mem_toSet E0 #

∀ (a u : PSet.{u}), a ∈ u.toSet ↔ a ∈ u

def PSet.Nonempty E1 #

PSet.{u_1} → Prop

A nonempty set is one that contains some element.

theorem PSet.nonempty_def E0 #

∀ (u : PSet.{u_1}), u.Nonempty ↔ ∃ x, x ∈ u

theorem PSet.nonempty_of_mem E1 #

∀ {x u : PSet.{u_1}}, x ∈ u → u.Nonempty

theorem PSet.nonempty_toSet_iff E0 #

∀ {u : PSet.{u_1}}, u.toSet.Nonempty ↔ u.Nonempty

theorem PSet.nonempty_type_iff_nonempty E1 #

∀ {x : PSet.{u_1}}, Nonempty x.Type ↔ x.Nonempty

theorem PSet.nonempty_of_nonempty_type E1 #

∀ (x : PSet.{u_1}) [h : Nonempty x.Type], x.Nonempty

theorem PSet.Equiv.eq E1 #

∀ {x y : PSet.{u_1}}, x.Equiv y ↔ x.toSet = y.toSet

Two pre-sets are equivalent iff they have the same members.

instance PSet.instCoeSet E0 #

Coe PSet.{u_1} (Set PSet.{u_1})

def PSet.empty E1 #

PSet.{u_1}

The empty pre-set

instance PSet.instEmptyCollection E0 #

EmptyCollection PSet.{u_1}

instance PSet.instInhabited E0 #

Inhabited PSet.{u_1}

instance PSet.instIsEmptyTypeEmptyCollection E0 #

IsEmpty ∅.Type

theorem PSet.empty_def E0 #

∅ = { «Type» := PEmpty.{u_1 + 1}, Func := PEmpty.elim }

theorem PSet.notMem_empty E0 #

∀ (x : PSet.{u}), x ∉ ∅

theorem PSet.toSet_empty E0 #

∅.toSet = ∅

theorem PSet.empty_subset E0 #

∀ (x : PSet.{u}), ∅ ⊆ x

theorem PSet.not_nonempty_empty E0 #

¬∅.Nonempty

theorem PSet.equiv_empty E1 #

∀ (x : PSet.{u_1}) [IsEmpty x.Type], x.Equiv ∅

def PSet.insert E1 #

PSet.{u_1} → PSet.{u_1} → PSet.{u_1}

Insert an element into a pre-set

instance PSet.instInsert E0 #

Insert PSet.{u_1} PSet.{u_1}

instance PSet.instSingleton E0 #

Singleton PSet.{u_1} PSet.{u_1}

instance PSet.instLawfulSingleton E0 #

LawfulSingleton PSet.{u_1} PSet.{u_1}

instance PSet.instInhabitedTypeInsert E0 #

(x y : PSet.{u_1}) → Inhabited (insert x y).Type

theorem PSet.mem_insert_iff E0 #

∀ {x y z : PSet.{u}}, x ∈ insert y z ↔ x.Equiv y ∨ x ∈ z

theorem PSet.mem_insert E0 #

∀ (x y : PSet.{u_1}), x ∈ insert x y

theorem PSet.mem_insert_of_mem E0 #

∀ {y z : PSet.{u_1}} (x : PSet.{u_1}), z ∈ y → z ∈ insert x y

theorem PSet.mem_singleton E0 #

∀ {x y : PSet.{u_1}}, x ∈ {y} ↔ x.Equiv y

theorem PSet.mem_pair E0 #

∀ {x y z : PSet.{u_1}}, x ∈ {y, z} ↔ x.Equiv y ∨ x.Equiv z

def PSet.ofNat E1 #

ℕ → PSet.{u_1}

The n-th von Neumann ordinal

def PSet.omega E1 #

PSet.{u_1}

The von Neumann ordinal ω

def PSet.sep E1 #

(PSet.{u_1} → Prop) → PSet.{u_1} → PSet.{u_1}

The pre-set separation operation {x ∈ a | p x}

instance PSet.instSep E0 #

Sep PSet.{u_1} PSet.{u_1}

theorem PSet.mem_sep E0 #

∀ {p : PSet.{u_1} → Prop},
  (∀ (x y : PSet.{u_1}), x.Equiv y → p x → p y) → ∀ {x y : PSet.{u_1}}, y ∈ PSet.sep p x ↔ y ∈ x ∧ p y

def PSet.powerset E1 #

PSet.{u_1} → PSet.{u_1}

The pre-set powerset operator

theorem PSet.mem_powerset E0 #

∀ {x y : PSet.{u_1}}, y ∈ x.powerset ↔ y ⊆ x

def PSet.sUnion E1 #

PSet.{u_1} → PSet.{u_1}

The pre-set union operator

def PSet.«term⋃₀_» E1 #

Lean.ParserDescr

The pre-set union operator

theorem PSet.mem_sUnion E0 #

∀ {x y : PSet.{u}}, y ∈ ⋃₀ x ↔ ∃ z ∈ x, y ∈ z

theorem PSet.toSet_sUnion E0 #

∀ (x : PSet.{u}), (⋃₀ x).toSet = ⋃₀ (PSet.toSet '' x.toSet)

def PSet.image E1 #

(PSet.{u} → PSet.{u}) → PSet.{u} → PSet.{u}

The image of a function from pre-sets to pre-sets.

theorem PSet.mem_image E0 #

∀ {f : PSet.{u} → PSet.{u}},
  (∀ (x y : PSet.{u}), x.Equiv y → (f x).Equiv (f y)) → ∀ {x y : PSet.{u}}, y ∈ PSet.image f x ↔ ∃ z ∈ x, y.Equiv (f z)

def PSet.Lift E1 #

PSet.{u} → PSet.{max u v}

Universe lift operation

def PSet.embed E1 #

PSet.{max (u + 1) v}

Embedding of one universe in another

theorem PSet.lift_mem_embed E1 #

∀ (x : PSet.{u}), x.Lift ∈ PSet.embed

Deprecated aliases

NameNew nameSince
PSet.mk_func2026-09-20
PSet.mk_type2026-09-20