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 / V01. The language of Mathlib

Mathlib.Basic.UnivLE

11 declarations. Mathlib docs · Source

class UnivLE E1 #

Prop

A class expressing a universe inequality. UnivLE.{u, v} expresses that u ≤ v.

There used to be a stronger definition ∀ α : Type max u v, Small.{v} α that immediately implies Small.{v} ((α : Type u) → (β : Type v)) which is essential for proving that Type v has Type u-indexed limits when u ≤ v. However the current weaker condition ∀ α : Type u, Small.{v} α also implies the same, so we switched to use it for its simplicity and transitivity.

The strong definition easily implies the weaker definition (see below), but we cannot prove the reverse implication. This is because in Lean's type theory, while max u v is at least as big as u and v, it could be bigger than both! See also Mathlib/CategoryTheory/UnivLE.lean for the statement that the stronger definition is equivalent to EssSurj (uliftFunctor : Type v ⥤ Type max u v).

theorem univLE_iff E0 #

UnivLE.{u, v} ↔ ∀ (α : Type u), Small.{v, u} α

ctor UnivLE.mk E0 #

(∀ (α : Type u), Small.{v, u} α) → UnivLE.{u, v}

instance UnivLE.small E0 #

∀ [self : UnivLE.{u, v}] (α : Type u), Small.{v, u} α

theorem univLE_max E1 #

UnivLE.{u, max u v}

theorem Small.trans_univLE E1 #

∀ (α : Type w) [hα : Small.{u, w} α] [h : UnivLE.{u, v}], Small.{v, w} α

theorem UnivLE.trans E1 #

∀ [UnivLE.{u, v}] [UnivLE.{v, w}], UnivLE.{u, w}

instance UnivLE.self E0 #

UnivLE.{u, u}

instance UnivLE.zero E0 #

UnivLE.{0, u}

theorem UnivLE.succ E1 #

∀ [UnivLE.{u, v}], UnivLE.{u, v + 1}

This is redundant as an instance given the below.

instance univLE_of_max E0 #

∀ [UnivLE.{max u v, v}], UnivLE.{u, v}

This is the crucial instance that subsumes univLE_max.