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.Data.ULift

31 declarations. Mathlib docs · Source

instance PLift.instNonempty_mathlib E0 #

∀ {α : Sort u} [Nonempty α], Nonempty (PLift α)

instance PLift.instUnique E0 #

{α : Sort u} → [Unique α] → Unique (PLift α)

instance PLift.instDecidableEq_mathlib E0 #

{α : Sort u} → [DecidableEq α] → DecidableEq (PLift α)

instance PLift.instIsEmpty E0 #

∀ {α : Sort u} [IsEmpty α], IsEmpty (PLift α)

theorem PLift.up_injective E1 #

∀ {α : Sort u}, Function.Injective PLift.up

theorem PLift.up_surjective E1 #

∀ {α : Sort u}, Function.Surjective PLift.up

theorem PLift.up_bijective E1 #

∀ {α : Sort u}, Function.Bijective PLift.up

theorem PLift.up_inj E1 #

∀ {α : Sort u} {x y : α}, { down := x } = { down := y } ↔ x = y

theorem PLift.down_surjective E1 #

∀ {α : Sort u}, Function.Surjective PLift.down

theorem PLift.down_bijective E1 #

∀ {α : Sort u}, Function.Bijective PLift.down

theorem PLift.forall E1 #

∀ {α : Sort u} {p : PLift α → Prop}, (∀ (x : PLift α), p x) ↔ ∀ (x : α), p { down := x }

theorem PLift.exists E0 #

∀ {α : Sort u} {p : PLift α → Prop}, (∃ x, p x) ↔ ∃ x, p { down := x }

theorem PLift.map_injective E0 #

∀ {α : Sort u} {β : Sort v} {f : α → β}, Function.Injective (PLift.map f) ↔ Function.Injective f

theorem PLift.map_surjective E0 #

∀ {α : Sort u} {β : Sort v} {f : α → β}, Function.Surjective (PLift.map f) ↔ Function.Surjective f

theorem PLift.map_bijective E0 #

∀ {α : Sort u} {β : Sort v} {f : α → β}, Function.Bijective (PLift.map f) ↔ Function.Bijective f

instance ULift.instNonempty_mathlib E0 #

∀ {α : Type u} [Nonempty α], Nonempty (ULift.{u_1, u} α)

instance ULift.instUnique E0 #

{α : Type u} → [Unique α] → Unique (ULift.{u_1, u} α)

instance ULift.instDecidableEq_mathlib E0 #

{α : Type u} → [DecidableEq α] → DecidableEq (ULift.{u_1, u} α)

instance ULift.instIsEmpty E0 #

∀ {α : Type u} [IsEmpty α], IsEmpty (ULift.{u_1, u} α)

theorem ULift.up_injective E1 #

∀ {α : Type u}, Function.Injective ULift.up

theorem ULift.up_surjective E1 #

∀ {α : Type u}, Function.Surjective ULift.up

theorem ULift.up_bijective E1 #

∀ {α : Type u}, Function.Bijective ULift.up

theorem ULift.up_inj E1 #

∀ {α : Type u} {x y : α}, { down := x } = { down := y } ↔ x = y

theorem ULift.down_surjective E1 #

∀ {α : Type u}, Function.Surjective ULift.down

theorem ULift.down_bijective E1 #

∀ {α : Type u}, Function.Bijective ULift.down

theorem ULift.forall E0 #

∀ {α : Type u} {p : ULift.{u_1, u} α → Prop}, (∀ (x : ULift.{u_1, u} α), p x) ↔ ∀ (x : α), p { down := x }

theorem ULift.exists E0 #

∀ {α : Type u} {p : ULift.{u_1, u} α → Prop}, (∃ x, p x) ↔ ∃ x, p { down := x }

theorem ULift.map_injective E0 #

∀ {α : Type u} {β : Type v} {f : α → β}, Function.Injective (ULift.map f) ↔ Function.Injective f

theorem ULift.map_surjective E0 #

∀ {α : Type u} {β : Type v} {f : α → β}, Function.Surjective (ULift.map f) ↔ Function.Surjective f

theorem ULift.map_bijective E0 #

∀ {α : Type u} {β : Type v} {f : α → β}, Function.Bijective (ULift.map f) ↔ Function.Bijective f

theorem ULift.rec_update E0 #

∀ {α : Type u} {β : ULift.{u_2, u} α → Type u_1} [inst : DecidableEq α] (f : (a : α) → β { down := a }) (a : α)
  (x : β { down := a }),
  (fun t ↦ ULift.rec (Function.update f a x) t) = Function.update (fun t ↦ ULift.rec f t) { down := a } x