The areas / V01. The language of Mathlib
Mathlib.Basic.Opposite
25 declarations. Mathlib docs · Source
Opposites
In this file we define a structure Opposite α containing a single field of type α and
two bijections op : α → αᵒᵖ and unop : αᵒᵖ → α. If α is a category, then αᵒᵖ is the
opposite category, with all arrows reversed.
theorem Opposite.op.injEq E0 #
∀ {α : Sort u} (unop unop_1 : α), (Opposite.op unop = Opposite.op unop_1) = (unop = unop_1)
theorem Opposite.op.inj E1 #
∀ {α : Sort u} {unop unop_1 : α}, Opposite.op unop = Opposite.op unop_1 → unop = unop_1
def Opposite.ctorIdx E1 #
{α : Sort u} → αᵒᵖ → ℕ
structure Opposite E3 #
Sort u → Sort (max 1 u)
The type of objects of the opposite of α; used to define the opposite category.
Now that Lean 4 supports definitional eta equality for records,
both unop (op X) = X and op (unop X) = X are definitional equalities.
ctor Opposite.op E0 #
{α : Sort u} → α → αᵒᵖ
The canonical map α → αᵒᵖ.
abbrev Opposite.unop E1 #
{α : Sort u} → αᵒᵖ → α
The canonical map αᵒᵖ → α.
def Opposite.unexpander_op E1 #
Lean.PrettyPrinter.Unexpander
Make sure that Opposite.op a is pretty-printed as op a instead of { unop := a } or
⟨a⟩.
def «term_ᵒᵖ» E1 #
Lean.TrailingParserDescr
The type of objects of the opposite of α; used to define the opposite category.
Now that Lean 4 supports definitional eta equality for records,
both unop (op X) = X and op (unop X) = X are definitional equalities.
theorem Opposite.op_injective E1 #
∀ {α : Sort u}, Function.Injective Opposite.op
theorem Opposite.unop_injective E1 #
∀ {α : Sort u}, Function.Injective Opposite.unop
theorem Opposite.op_unop E0 #
∀ {α : Sort u} (x : αᵒᵖ), Opposite.op (Opposite.unop x) = x
theorem Opposite.unop_op E1 #
∀ {α : Sort u} (x : α), Opposite.unop (Opposite.op x) = x
theorem Opposite.op_inj_iff E0 #
∀ {α : Sort u} (x y : α), Opposite.op x = Opposite.op y ↔ x = y
theorem Opposite.unop_inj_iff E0 #
∀ {α : Sort u} (x y : αᵒᵖ), Opposite.unop x = Opposite.unop y ↔ x = y
def Opposite.equivToOpposite E1 #
{α : Sort u} → α ≃ αᵒᵖ
The type-level equivalence between a type and its opposite.
theorem Opposite.op_surjective E1 #
∀ {α : Sort u}, Function.Surjective Opposite.op
theorem Opposite.unop_surjective E1 #
∀ {α : Sort u}, Function.Surjective Opposite.unop
theorem Opposite.equivToOpposite_coe E0 #
∀ {α : Sort u}, ⇑Opposite.equivToOpposite = Opposite.op
theorem Opposite.equivToOpposite_symm_coe E0 #
∀ {α : Sort u}, ⇑Opposite.equivToOpposite.symm = Opposite.unop
theorem Opposite.op_eq_iff_eq_unop E1 #
∀ {α : Sort u} {x : α} {y : αᵒᵖ}, Opposite.op x = y ↔ x = Opposite.unop y
theorem Opposite.unop_eq_iff_eq_op E1 #
∀ {α : Sort u} {x : αᵒᵖ} {y : α}, Opposite.unop x = y ↔ x = Opposite.op y
instance Opposite.instInhabited E0 #
{α : Sort u} → [Inhabited α] → Inhabited αᵒᵖ
instance Opposite.instNonempty E0 #
∀ {α : Sort u} [Nonempty α], Nonempty αᵒᵖ
instance Opposite.instSubsingleton E0 #
∀ {α : Sort u} [Subsingleton α], Subsingleton αᵒᵖ
instance Opposite.small E0 #
∀ {X : Type v} [Small.{u, v} X], Small.{u, v} Xᵒᵖ
If X is u-small, also Xᵒᵖ is u-small.