mathlib documentation

category_theory.​limits.​shapes.​terminal

category_theory.​limits.​shapes.​terminal

Initial and terminal objects in a category.

A category has a terminal object if it has a limit over the empty diagram. Use has_terminal_of_unique to construct instances.

A category has an initial object if it has a colimit over the empty diagram. Use has_initial_of_unique to construct instances.

The chosen terminal object, if it exists. You can use the notation ⊤_ C. This object is characterized by having a unique morphism from any object.

The chosen initial object, if it exists. You can use the notation ⊥_ C. This object is characterized by having a unique morphism to any object.

We can more explicitly show that a category has a terminal object by specifying the object, and showing there is a unique morphism to it from any other object.

Equations

We can more explicitly show that a category has an initial object by specifying the object, and showing there is a unique morphism from it to any other object.

Equations

The map from an object to the terminal object.

The map to an object from the initial object.