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.IsEmpty.Defs

34 declarations. Mathlib docs · Source

class IsEmpty E1 #

Sort u → Prop

IsEmpty α expresses that α is empty.

ctor IsEmpty.mk E0 #

∀ {α : Sort u}, (∀ (a : α), False) → IsEmpty α

theorem IsEmpty.false E1 #

∀ {α : Sort u} [self : IsEmpty α] (a : α), False

instance Empty.instIsEmpty E0 #

IsEmpty Empty

instance PEmpty.instIsEmpty E0 #

IsEmpty PEmpty.{u_1}

instance instIsEmptyFalse E0 #

IsEmpty False

instance Fin.isEmpty E0 #

IsEmpty (Fin 0)

instance Fin.isEmpty' E0 #

IsEmpty (Fin Nat.zero)

theorem Function.isEmpty E1 #

∀ {α : Sort u} {β : Sort v} [IsEmpty β] (f : α → β), IsEmpty α

theorem Function.Surjective.isEmpty E1 #

∀ {α : Sort u} {β : Sort v} [IsEmpty α] {f : α → β}, Function.Surjective f → IsEmpty β

instance instIsEmptyForallOfNonempty E0 #

∀ {α : Sort u} {p : α → Sort v} [∀ (x : α), IsEmpty (p x)] [h : Nonempty α], IsEmpty ((x : α) → p x)

instance PProd.isEmpty_left E0 #

∀ {α : Sort u} {β : Sort v} [IsEmpty α], IsEmpty (α ×' β)

instance PProd.isEmpty_right E0 #

∀ {α : Sort u} {β : Sort v} [IsEmpty β], IsEmpty (α ×' β)

instance Prod.isEmpty_left E0 #

∀ {α : Type u_1} {β : Type u_2} [IsEmpty α], IsEmpty (α × β)

instance Prod.isEmpty_right E0 #

∀ {α : Type u_1} {β : Type u_2} [IsEmpty β], IsEmpty (α × β)

instance Quot.instIsEmpty E0 #

∀ {α : Sort u} [IsEmpty α] {r : α → α → Prop}, IsEmpty (Quot r)

instance Quotient.instIsEmpty E0 #

∀ {α : Sort u} [IsEmpty α] {s : Setoid α}, IsEmpty (Quotient s)

instance instIsEmptyPSum E0 #

∀ {α : Sort u} {β : Sort v} [IsEmpty α] [IsEmpty β], IsEmpty (α ⊕' β)

instance instIsEmptySum E0 #

∀ {α : Type u_1} {β : Type u_2} [IsEmpty α] [IsEmpty β], IsEmpty (α ⊕ β)

instance instIsEmptySubtype E0 #

∀ {α : Sort u} [IsEmpty α] (p : α → Prop), IsEmpty (Subtype p)

Subtypes of an empty type are empty.

theorem Subtype.isEmpty_of_false E1 #

∀ {α : Sort u} {p : α → Prop}, (∀ (a : α), ¬p a) → IsEmpty (Subtype p)

Subtypes by an all-false predicate are empty.

instance Subtype.isEmpty_false E0 #

∀ {α : Sort u}, IsEmpty { _a // False }

Subtypes by False are empty.

instance Sigma.isEmpty_left E0 #

∀ {α : Type u_1} [IsEmpty α] {E : α → Type v}, IsEmpty (Sigma E)

instance Sigma.isEmpty_fibers E0 #

∀ {α : Type u_1} {E : α → Type v} [∀ (a : α), IsEmpty (E a)], IsEmpty (Sigma E)

def isEmptyElim E1 #

{α : Sort u} → [IsEmpty α] → {p : α → Sort v} → (a : α) → p a

Eliminate out of a type that IsEmpty (without using projection notation).

theorem isEmpty_iff E0 #

∀ {α : Sort u}, IsEmpty α ↔ ∀ (a : α), False

def IsEmpty.elim E1 #

{α : Sort u} → IsEmpty α → {p : α → Sort v} → (a : α) → p a

Eliminate out of a type that IsEmpty (using projection notation).

def IsEmpty.elim' E1 #

{α : Sort u} → {β : Sort v} → IsEmpty α → α → β

Non-dependent version of IsEmpty.elim. Helpful if the elaborator cannot elaborate h.elim a correctly.

theorem IsEmpty.prop_iff E0 #

∀ {p : Prop}, IsEmpty p ↔ ¬p

theorem IsEmpty.forall_iff E0 #

∀ {α : Sort u} [IsEmpty α] {p : α → Prop}, (∀ (a : α), p a) ↔ True

theorem IsEmpty.exists_iff E0 #

∀ {α : Sort u} [IsEmpty α] {p : α → Prop}, (∃ a, p a) ↔ False

instance IsEmpty.subsingleton E0 #

∀ {α : Sort u} [IsEmpty α], Subsingleton α

theorem IsEmpty.congr_fun E1 #

∀ {α : Sort u} {β : Sort v} [IsEmpty α] (f g : α → β), f = g

theorem Fin.isEmpty_iff E0 #

∀ {k : ℕ}, IsEmpty (Fin k) ↔ k = 0

Fin k is empty iff k = 0.