The areas / V24. Category theory
Mathlib.CategoryTheory.Category.Basic
63 declarations and 1 deprecated aliases. Mathlib docs · Source
Categories
Defines a category, as a type class parametrised by the type of objects.
Notation
Introduces notations in the CategoryTheory scope
X ⟶ Yfor the morphism spaces (type as\hom),𝟙 Xfor the identity morphism onX(type as\b1),f ≫ gfor composition in the 'arrows' convention (type as\gg).
Users may like to add g ⊚ f for composition in the standard convention, using
local notation:80 g " ⊚ " f:80 => CategoryTheory.CategoryStruct.comp f g -- type as \oo
def CategoryTheory.CategoryStruct.ctorIdx E1 #
{obj : Type u} → CategoryTheory.CategoryStruct.{v, u} obj → ℕ
def CategoryTheory.Category.ctorIdx E1 #
{obj : Type u} → CategoryTheory.Category.{v, u} obj → ℕ
def LibraryNote.category_theory_universes E1 #
Batteries.Util.LibraryNote
The typeclass Category C describes morphisms associated to objects of type C : Type u.
The universe levels of the objects and morphisms are independent, and will often need to be
specified explicitly, as Category.{v} C.
Typically any concrete example will either be a SmallCategory, where v = u,
which can be introduced as
universe u
variable {C : Type u} [SmallCategory C]
or a LargeCategory, where u = v+1, which can be introduced as
universe u
variable {C : Type (u+1)} [LargeCategory C]
In order for the library to handle these cases uniformly,
we generally work with the unconstrained Category.{v u},
for which objects live in Type u and morphisms live in Type v.
Because the universe parameter u for the objects can be inferred from C
when we write Category C, while the universe parameter v for the morphisms
cannot be automatically inferred, through the category theory library
we introduce universe parameters with morphism levels listed first,
as in
universe v u
or
universe v₁ v₂ u₁ u₂
when multiple independent universes are needed.
This has the effect that we can simply write Category.{v} C
(that is, only specifying a single parameter) while u will be inferred.
Often, however, it's not even necessary to include the .{v}.
(Although it was in earlier versions of Lean.)
If it is omitted a "free" universe will be used.
def LibraryNote.universe_output_parameters_and_typeclass_caching E1 #
Batteries.Util.LibraryNote
Many classes in Mathlib have universe parameters that do not appear in their input parameter types. For example:
Category.{v} (C : Type u)— the morphism universevis not determined byCHasLimitsOfSize.{v₁, u₁} (C : Type u) [Category.{v} C]— the shape universesv₁, u₁are not determined byCSmall.{w} (α : Type v)— the target universewis not determined byα(butvis determined byα, sovis an output)Functor.IsContinuous.{t} (F) (J) (K)— the sheaf type universetis not determined byF,J,KUnivLE.{u, v}— has no input parameters at all
By default (since https://github.com/leanprover/lean4/pull/12286), Lean treats any universe parameter not occurring in input types as an output parameter, and erases it from typeclass resolution cache keys. This means that queries differing only in such a universe share a cache entry — the first result found is reused.
This is correct when the universe truly is determined by the inputs (e.g., v in
Small.{w} (α : Type v)), but incorrect when the universe is part of the question
(e.g., v in Category.{v} C). Cache collisions cause "stuck at solving universe constraint"
errors or silent misresolution.
The @[univ_out_params] attribute
(from https://github.com/leanprover/lean4/pull/12423) overrides the default:
@[univ_out_params]— no universe parameters are output (all kept in cache key)@[univ_out_params v]— onlyvis output
Rule of thumb: if the class is typically used with explicit universe annotations
(e.g., HasLimitsOfSize.{v₁, u₁} C) or is marked @[pp_with_univ], its "extra" universe
parameters are likely inputs, not outputs, and the class should be annotated with
@[univ_out_params].
class CategoryTheory.CategoryStruct E1 #
Type u → Type (max u (v + 1))
A preliminary structure on the way to defining a category, containing the data, but none of the axioms.
ctor CategoryTheory.CategoryStruct.mk E0 #
{obj : Type u} →
[toQuiver : Quiver obj] →
((X : obj) → X ⟶ X) → ({X Y Z : obj} → (X ⟶ Y) → (Y ⟶ Z) → (X ⟶ Z)) → CategoryTheory.CategoryStruct.{v, u} obj
instance CategoryTheory.CategoryStruct.toQuiver E0 #
{obj : Type u} → [self : CategoryTheory.CategoryStruct.{v, u} obj] → Quiver obj
abbrev CategoryTheory.CategoryStruct.id E1 #
{obj : Type u} → [self : CategoryTheory.CategoryStruct.{v, u} obj] → (X : obj) → X ⟶ X
The identity morphism on an object.
abbrev CategoryTheory.CategoryStruct.comp E1 #
{obj : Type u} → [self : CategoryTheory.CategoryStruct.{v, u} obj] → {X Y Z : obj} → (X ⟶ Y) → (Y ⟶ Z) → (X ⟶ Z)
Composition of morphisms in a category, written f ≫ g.
def CategoryTheory.«term𝟙» E1 #
Lean.ParserDescr
Notation for the identity morphism in a category.
def CategoryTheory.«term_≫_» E1 #
Lean.TrailingParserDescr
Notation for composition of morphisms in a category.
def CategoryTheory.sorryIfSorry E1 #
Lean.ParserDescr
Close the main goal with sorry if its type contains sorry, and fail otherwise.
def CategoryTheory.evalSorryIfSorry E1 #
Lean.Elab.Tactic.Tactic
Close the main goal with sorry if its type contains sorry, and fail otherwise.
def CategoryTheory.rfl_cat E1 #
Lean.ParserDescr
rfl_cat is a macro for intros; rfl which is attempted in aesop_cat before
doing the more expensive aesop tactic.
This gives a speedup because simp (called by aesop) can be very slow.
https://github.com/leanprover-community/mathlib4/pull/25475 contains measurements from June 2025.
Implementation notes:
refine id ?_: In some cases it is important that the type of the proof matches the expected type exactly. e.g. if the goal is2 = 1 + 1, therfltactic will give a proof of type2 = 2. Starting a proof withrefine id ?_is a trick to make sure that the proof has exactly the expected type, in this case2 = 1 + 1. See also https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/changing.20a.20proof.20can.20break.20a.20later.20proofapply_rfl:rflis a macro that attempts botheq_reflandapply_rfl. Sinceapply_rflsubsumeseq_refl, we can useapply_rflinstead. This fails twice as fast asrfl.
def CategoryTheory.aesop_cat E1 #
Lean.ParserDescr
A thin wrapper for aesop which adds the CategoryTheory rule set and
allows aesop to look through semireducible definitions when calling intros.
This tactic fails when it is unable to solve the goal, making it suitable for
use in auto-params.
def CategoryTheory.aesop_cat? E1 #
Lean.ParserDescr
We also use aesop_cat? to pass along a Try this suggestion when using aesop_cat
def CategoryTheory.aesop_cat_nonterminal E1 #
Lean.ParserDescr
A variant of aesop_cat which does not fail when it is unable to solve the
goal. Use this only for exploration! Nonterminal aesop is even worse than
nonterminal simp.
def CategoryTheory.categoryTheoryDischarger E1 #
Lean.Elab.Tactic.TacticM Unit
A tactic for discharging easy category theory goals, widely used as an autoparameter.
Currently this defaults to the aesop_cat wrapper around aesop, but by setting
the option mathlib.tactic.category.grind to true, it will use the grind tactic instead.
def CategoryTheory.cat_disch E1 #
Lean.ParserDescr
A tactic for discharging easy category theory goals, widely used as an autoparameter.
Currently this defaults to the aesop_cat wrapper around aesop, but by setting
the option mathlib.tactic.category.grind to true, it will use the grind tactic instead.
class CategoryTheory.Category E3 #
Type u → Type (max u (v + 1))
The typeclass Category C describes morphisms associated to objects of type C.
The universe levels of the objects and morphisms are unconstrained, and will often need to be
specified explicitly, as Category.{v} C. (See also LargeCategory and SmallCategory.)
ctor CategoryTheory.Category.mk E0 #
{obj : Type u} →
[toCategoryStruct : CategoryTheory.CategoryStruct.{v, u} obj] →
autoParam (∀ {X Y : obj} (f : X ⟶ Y), CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.id X) f = f)
CategoryTheory.Category.id_comp._autoParam →
autoParam
(∀ {X Y : obj} (f : X ⟶ Y), CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.id Y) = f)
CategoryTheory.Category.comp_id._autoParam →
autoParam
(∀ {W X Y Z : obj} (f : W ⟶ X) (g : X ⟶ Y) (h : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp f g) h =
CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp g h))
CategoryTheory.Category.assoc._autoParam →
CategoryTheory.Category.{v, u} obj
instance CategoryTheory.Category.toCategoryStruct E0 #
{obj : Type u} → [self : CategoryTheory.Category.{v, u} obj] → CategoryTheory.CategoryStruct.{v, u} obj
theorem CategoryTheory.Category.id_comp E0 #
∀ {obj : Type u} [self : CategoryTheory.Category.{v, u} obj] {X Y : obj} (f : X ⟶ Y),
CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.id X) f = f
Identity morphisms are left identities for composition.
theorem CategoryTheory.Category.comp_id E0 #
∀ {obj : Type u} [self : CategoryTheory.Category.{v, u} obj] {X Y : obj} (f : X ⟶ Y),
CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.id Y) = f
Identity morphisms are right identities for composition.
theorem CategoryTheory.Category.assoc E0 #
∀ {obj : Type u} [self : CategoryTheory.Category.{v, u} obj] {W X Y Z : obj} (f : W ⟶ X) (g : X ⟶ Y) (h : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp f g) h =
CategoryTheory.CategoryStruct.comp f (CategoryTheory.CategoryStruct.comp g h)
Composition in a category is associative.
abbrev CategoryTheory.LargeCategory E1 #
Type (u + 1) → Type (u + 1)
A LargeCategory has objects in one universe level higher than the universe level of
the morphisms. It is useful for examples such as the category of types, or the category
of groups, etc.
abbrev CategoryTheory.SmallCategory E3 #
Type u → Type (u + 1)
A SmallCategory has objects and morphisms in the same universe level.
theorem CategoryTheory.whisker_eq E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f g : Y ⟶ X} (h : Z ⟶ Y),
f = g → CategoryTheory.CategoryStruct.comp h f = CategoryTheory.CategoryStruct.comp h g
Precompose an equation between morphisms by another morphism
def CategoryTheory.«term_=≫_» E1 #
Lean.TrailingParserDescr
Notation for whiskering an equation by a morphism (on the right).
If f g : X ⟶ Y and w : f = g and h : Y ⟶ Z, then w =≫ h : f ≫ h = g ≫ h.
def CategoryTheory.«term_≫=_» E1 #
Lean.TrailingParserDescr
Notation for whiskering an equation by a morphism (on the left).
If g h : Y ⟶ Z and w : g = h and f : X ⟶ Y, then f ≫= w : f ≫ g = f ≫ h.
theorem CategoryTheory.id_of_comp_left_id E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (f : X ⟶ X),
(∀ {Y : C} (g : X ⟶ Y), CategoryTheory.CategoryStruct.comp f g = g) → f = CategoryTheory.CategoryStruct.id X
theorem CategoryTheory.id_of_comp_right_id E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (f : X ⟶ X),
(∀ {Y : C} (g : Y ⟶ X), CategoryTheory.CategoryStruct.comp g f = g) → f = CategoryTheory.CategoryStruct.id X
theorem CategoryTheory.ite_comp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P : Prop} [inst_1 : Decidable P] {X Y Z : C} (g g' : Z ⟶ Y)
(f : Y ⟶ X),
CategoryTheory.CategoryStruct.comp (if P then g else g') f =
if P then CategoryTheory.CategoryStruct.comp g f else CategoryTheory.CategoryStruct.comp g' f
theorem CategoryTheory.comp_ite E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P : Prop} [inst_1 : Decidable P] {X Y Z : C} (f : X ⟶ Y)
(g g' : Y ⟶ Z),
CategoryTheory.CategoryStruct.comp f (if P then g else g') =
if P then CategoryTheory.CategoryStruct.comp f g else CategoryTheory.CategoryStruct.comp f g'
theorem CategoryTheory.dite_comp E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P : Prop} [inst_1 : Decidable P] {X Y Z : C} (g : P → (Z ⟶ Y))
(g' : ¬P → (Z ⟶ Y)) (f : Y ⟶ X),
CategoryTheory.CategoryStruct.comp (if h : P then g h else g' h) f =
if h : P then CategoryTheory.CategoryStruct.comp (g h) f else CategoryTheory.CategoryStruct.comp (g' h) f
theorem CategoryTheory.comp_dite E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P : Prop} [inst_1 : Decidable P] {X Y Z : C} (f : X ⟶ Y)
(g : P → (Y ⟶ Z)) (g' : ¬P → (Y ⟶ Z)),
CategoryTheory.CategoryStruct.comp f (if h : P then g h else g' h) =
if h : P then CategoryTheory.CategoryStruct.comp f (g h) else CategoryTheory.CategoryStruct.comp f (g' h)
class CategoryTheory.Epi E1 #
{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → {X Y : C} → (X ⟶ Y) → Prop
A morphism f is an epimorphism if it can be cancelled when precomposed:
f ≫ g = f ≫ h implies g = h.
ctor CategoryTheory.Epi.mk E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} {f : X ⟶ Y},
(∀ {Z : C} (g h : Y ⟶ Z), CategoryTheory.CategoryStruct.comp f g = CategoryTheory.CategoryStruct.comp f h → g = h) →
CategoryTheory.Epi f
theorem CategoryTheory.Epi.left_cancellation E1 #
∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {X Y : C} {f : X ⟶ Y} [self : CategoryTheory.Epi f] {Z : C}
(g h : Y ⟶ Z), CategoryTheory.CategoryStruct.comp f g = CategoryTheory.CategoryStruct.comp f h → g = h
A morphism f is an epimorphism if it can be cancelled when precomposed.
class CategoryTheory.Mono E1 #
{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → {X Y : C} → (X ⟶ Y) → Prop
A morphism f is a monomorphism if it can be cancelled when postcomposed:
g ≫ f = h ≫ f implies g = h.
ctor CategoryTheory.Mono.mk E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} {f : X ⟶ Y},
(∀ {Z : C} (g h : Z ⟶ X), CategoryTheory.CategoryStruct.comp g f = CategoryTheory.CategoryStruct.comp h f → g = h) →
CategoryTheory.Mono f
theorem CategoryTheory.Mono.right_cancellation E1 #
∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {X Y : C} {f : X ⟶ Y} [self : CategoryTheory.Mono f] {Z : C}
(g h : Z ⟶ X), CategoryTheory.CategoryStruct.comp g f = CategoryTheory.CategoryStruct.comp h f → g = h
A morphism f is a monomorphism if it can be cancelled when postcomposed.
instance CategoryTheory.instEpiId E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C),
CategoryTheory.Epi (CategoryTheory.CategoryStruct.id X)
instance CategoryTheory.instMonoId E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (X : C),
CategoryTheory.Mono (CategoryTheory.CategoryStruct.id X)
theorem CategoryTheory.cancel_mono E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} (f : Y ⟶ X) [CategoryTheory.Mono f] {g h : Z ⟶ Y},
CategoryTheory.CategoryStruct.comp g f = CategoryTheory.CategoryStruct.comp h f ↔ g = h
theorem CategoryTheory.cancel_epi E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} (f : X ⟶ Y) [CategoryTheory.Epi f] {g h : Y ⟶ Z},
CategoryTheory.CategoryStruct.comp f g = CategoryTheory.CategoryStruct.comp f h ↔ g = h
theorem CategoryTheory.cancel_epi_assoc_iff E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} (f : X ⟶ Y) [CategoryTheory.Epi f] {g h : Y ⟶ Z}
{W : C} {k l : Z ⟶ W},
CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp f g) k =
CategoryTheory.CategoryStruct.comp (CategoryTheory.CategoryStruct.comp f h) l ↔
CategoryTheory.CategoryStruct.comp g k = CategoryTheory.CategoryStruct.comp h l
theorem CategoryTheory.cancel_mono_assoc_iff E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} (f : Y ⟶ X) [CategoryTheory.Mono f] {g h : Z ⟶ Y}
{W : C} {k l : W ⟶ Z},
CategoryTheory.CategoryStruct.comp k (CategoryTheory.CategoryStruct.comp g f) =
CategoryTheory.CategoryStruct.comp l (CategoryTheory.CategoryStruct.comp h f) ↔
CategoryTheory.CategoryStruct.comp k g = CategoryTheory.CategoryStruct.comp l h
theorem CategoryTheory.cancel_epi_id E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (f : X ⟶ Y) [CategoryTheory.Epi f] {h : Y ⟶ Y},
CategoryTheory.CategoryStruct.comp f h = f ↔ h = CategoryTheory.CategoryStruct.id Y
theorem CategoryTheory.cancel_mono_id E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (f : Y ⟶ X) [CategoryTheory.Mono f] {h : Y ⟶ Y},
CategoryTheory.CategoryStruct.comp h f = f ↔ h = CategoryTheory.CategoryStruct.id Y
instance CategoryTheory.epi_comp E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} (f : X ⟶ Y) [CategoryTheory.Epi f] (g : Y ⟶ Z)
[CategoryTheory.Epi g], CategoryTheory.Epi (CategoryTheory.CategoryStruct.comp f g)
The composition of epimorphisms is again an epimorphism. This version takes Epi f and Epi g
as typeclass arguments. For a version taking them as explicit arguments, see epi_comp'.
instance CategoryTheory.mono_comp E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} (g : Z ⟶ Y) [CategoryTheory.Mono g] (f : Y ⟶ X)
[CategoryTheory.Mono f], CategoryTheory.Mono (CategoryTheory.CategoryStruct.comp g f)
The composition of monomorphisms is again a monomorphism. This version takes Mono f and
Mono g as typeclass arguments. For a version taking them as explicit arguments, see mono_comp'.
theorem CategoryTheory.epi_comp' E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : X ⟶ Y} {g : Y ⟶ Z},
CategoryTheory.Epi f → CategoryTheory.Epi g → CategoryTheory.Epi (CategoryTheory.CategoryStruct.comp f g)
The composition of epimorphisms is again an epimorphism. This version takes Epi f and Epi g
as explicit arguments. For a version taking them as typeclass arguments, see epi_comp.
theorem CategoryTheory.mono_comp' E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : Y ⟶ X} {g : Z ⟶ Y},
CategoryTheory.Mono g → CategoryTheory.Mono f → CategoryTheory.Mono (CategoryTheory.CategoryStruct.comp g f)
The composition of monomorphisms is again a monomorphism. This version takes Mono f and
Mono g as explicit arguments. For a version taking them as typeclass arguments, see mono_comp.
theorem CategoryTheory.epi_of_epi E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} (f : X ⟶ Y) (g : Y ⟶ Z)
[CategoryTheory.Epi (CategoryTheory.CategoryStruct.comp f g)], CategoryTheory.Epi g
theorem CategoryTheory.mono_of_mono E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} (g : Z ⟶ Y) (f : Y ⟶ X)
[CategoryTheory.Mono (CategoryTheory.CategoryStruct.comp g f)], CategoryTheory.Mono g
theorem CategoryTheory.epi_of_epi_fac E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : X ⟶ Y} {g : Y ⟶ Z} {h : X ⟶ Z}
[CategoryTheory.Epi h], CategoryTheory.CategoryStruct.comp f g = h → CategoryTheory.Epi g
theorem CategoryTheory.mono_of_mono_fac E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y Z : C} {f : Y ⟶ X} {g : Z ⟶ Y} {h : Z ⟶ X}
[CategoryTheory.Mono h], CategoryTheory.CategoryStruct.comp g f = h → CategoryTheory.Mono g
theorem CategoryTheory.epi_iff_forall_injective E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (f : X ⟶ Y),
CategoryTheory.Epi f ↔ ∀ (Z : C), Function.Injective fun g ↦ CategoryTheory.CategoryStruct.comp f g
f : X ⟶ Y is an epimorphism iff for all Z, composition of morphisms Y ⟶ Z with f
is injective.
theorem CategoryTheory.mono_iff_forall_injective E1 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (f : Y ⟶ X),
CategoryTheory.Mono f ↔ ∀ (Z : C), Function.Injective fun g ↦ CategoryTheory.CategoryStruct.comp g f
f : X ⟶ Y is a monomorphism iff for all Z, composition of morphisms Z ⟶ X with f
is injective.
instance CategoryTheory.instMonoOfIsThin E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} [Quiver.IsThin C] (f : Y ⟶ X), CategoryTheory.Mono f
instance CategoryTheory.instEpiOfIsThin E0 #
∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} [Quiver.IsThin C] (f : X ⟶ Y), CategoryTheory.Epi f
def CategoryTheory.uliftCategory E1 #
(C : Type u) → [CategoryTheory.Category.{v, u} C] → CategoryTheory.Category.{v, max u' u} (ULift.{u', u} C)
The category structure on ULift C that is induced from the category
structure on C. This is not made a global instance because of a diamond
when C is a preordered type.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
CategoryTheory.Category.assoc' | CategoryTheory.Category.assoc | 2026-09-15 |