Documentation

CKMath.Category.Definition

class Category.Struct (O : Type u) :
Type (max u (v + 1))

Sorts have an instance of this class when they have a Category structure.

This means that the members of this sort can be considered as objects in some category, to which we can associate some other sort for the morphisms between these objects. We also have, for each object, an identity morphism, and, for any two pairs of objects, ways of composing the morphisms between them.

This does not yet contain any properties about these data: Category O has them instead.

Small categories will have O : Type, and large categories will have a large O. For example: Type : Type 1.

Instances
    class Category (O : Type u) extends Category.Struct O :
    Type (max u (u_1 + 1))

    A category has the structure of a category—objects, morphisms, identities, composition—and laws.

    Instances