The currying adjunction for small categories uses the bijection
It sends to the functor , with an arrow inducing the natural transformation whose -component is . Conversely, for , define its uncurried functor by and
Naturality of allows the two factors to be interchanged in the appropriate order, giving functoriality. The constructions are inverse and natural in and . Hence is a left adjoint to on the category of small categories.
The unit sends to the functor and to the transformation . The counit is evaluation : and .
A Cartesian theory has a many-sorted first-order signature, with finite arities, and axioms expressed as sequents between Cartesian formulas. Those formulas use atomic relations and equality, truth and finite logical conjunctions. They also admit existential quantification when the quantified witness is provably unique: to form , require relative to the theory. One can quantify a finite tuple in the same way. Arbitrary existential quantifiers, disjunction, negation and universal quantifiers are not formula constructors in this fragment. In particular falsity is not included as an additional finite-limit constructor. The universal force of a sequent comes from its free-variable context. This is the fragment whose categorical semantics requires exactly finite limits.
The Cartesian syntactic category has objects , identifying harmless renamings and provably equivalent formulas-in-context. An arrow from to is represented by a provably functional Cartesian relation : it entails , is total on , and has a unique output tuple. Provable equivalence identifies arrows. Equality supplies identity arrows; composition quantifies the uniquely determined intermediate tuple in a conjunction. Totality and uniqueness prove that the composite is again functional.
The empty truth context is terminal. Products concatenate disjoint contexts and conjoin their formulas. A pullback of two functional relations adds the condition that their outputs agree; the common output is unique, so the existential quantification used to express it is Cartesian. This gives all finite limits and makes the usual equality diagrams into equalizers.
An internal model in a finite-limit category interprets each sort by an object, functions by arrows and relations by subobjects. Equality is a diagonal and conjunction is a pullback intersection. A uniquely witnessed relation projects monomorphically onto the context, so its existential interpretation needs no general image operation: it is that mono. Evaluating formulas and functional relations yields a finite-limit-preserving functor .
Conversely, the canonical syntactic model uses the single-sort truth contexts, term graphs and atomic subobjects. Its interpretation of a formula is the formula-in-context object itself. Applying any finite-limit-preserving functor supplies a model and preserves its axioms. These constructions are inverse up to the natural interpretation isomorphisms; model homomorphisms correspond to natural transformations. Therefore
For completeness, let a sequent in context be represented by subobjects and for its antecedent and consequent. Derivability is exactly the existence of a factorization in the syntactic category. Consider the covariant representable functor , which preserves all existing limits, and hence corresponds to a set-valued model. In that model the element belongs to the antecedent, because it is the image of . If the sequent holds, it also belongs to the consequent, so for some . That is precisely a derivation of the sequent. Thus validity in all set-valued models implies Cartesian derivability. More concretely, every underivable sequent is refuted by this representable model. No assumption that every sort is inhabited is needed: some hom-sets may be empty.
The covariant form of the Yoneda lemma says that for a locally small category , a functor and an object , there is a bijection, natural in and ,
Explicitly its two directions are
For , functoriality gives , so is a natural transformation. Conversely, naturality of at gives . This proves that the displayed maps are inverses.
Naturality in follows because postcomposition by sends to . For , precomposition of transformations by sends to . This also verifies naturality in the representing object.
In the Category of sets, an epimorphism is exactly a surjective function. A surjective function is right-cancellable. If misses , the constant-zero function and the function that is one at and zero elsewhere are distinct maps with equal composites with .
If every is surjective, equality for natural transformations gives for every . Thus is an epimorphism in the functor category.
For the converse, construct the pointwise amalgamated double
where exactly the two copies of each element of are identified; different elements of remain different. Define . Naturality of implies that takes its image into the image at the target, so this formula is well-defined and gives a functor. The maps form natural transformations , with .
If is an epimorphism, . Since the two copies of an element outside would be distinct, every element must lie in that image. Hence is epic if and only if every component is epic. This proves the pointwise epimorphism in a functor category criterion directly, including the needed existence and naturality of the separating functor.
Take an epimorphism in and a natural transformation . By the Yoneda lemma, corresponds to . By the pointwise epimorphism in a functor category criterion, choose with .
The Yoneda lemma gives , a natural transformation . Naturality of yields
Therefore covariant representables are projective in the set-valued functor category. Local smallness ensures that is set-valued.
Put . This is a natural transformation . Only the -triangle is assumed. Naturality gives two useful absorption identities:
For the second equality in the last line use naturality of at , and then the assumed -triangle. Naturality of at and of at now gives
Hence is an idempotent in the functor category: this is the one-triangle adjunction idempotent.
For the splitting of an idempotent morphism, suppose this idempotent morphism splits as natural transformations and , with and . Define
The first absorption identity gives
For the other triangle, naturality of at and of at gives
Thus the triangle identities for an adjunction prove .
Conversely, suppose , with unit and counit . The unit has target , as its type requires. Define
These are natural transformations. Transposition under gives . Independently, naturality of at and the assumed -triangle give
The transpose of is therefore , the transpose of . Injectivity of the hom-set bijection implies . Naturality of at gives
Consequently has a left adjoint if and only if splits. This is the criterion for splitting a one-triangle adjunction idempotent. The argument gives both the explicit splitting and the new unit and counit, without assuming the other triangle for .
A monad consists of an endofunctor and natural transformations and , the unit and multiplication of a monad, satisfying
An algebra for a monad is with satisfying and . A morphism of algebras for a monad satisfies . These objects and morphisms form the Eilenberg-Moore category ; its composition works because is a functor.
For the list monad, is the set of finite ordered lists, including the empty list. The map applies to each entry; and concatenates a list of lists. The unit laws say that adding singleton brackets and then flattening changes nothing. Associativity says that flattening a list of lists of lists in either order produces the same ordered sequence. These descriptions also prove naturality.
If is an algebra for a monad, define
The singleton law gives . Apply the algebra associativity law to and to obtain . Applying it to and shows
Thus is a monoid. Applying the same law to shows inductively that is necessarily ordered multiplication of its entries, with the empty product .
Conversely, any monoid defines such a list-fold map . The monoid unit proves , and associativity and the unit prove that multiplying flattened lists equals multiplying their individual products, including empty sublists. Hence . An algebra morphism preserves the empty-list value and two-entry-list values, so it is a monoid homomorphism; conversely a monoid homomorphism preserves every ordered product and is an algebra morphism. Therefore
Thus list-monad algebras are monoids, with the identification also matching every morphism.
A representable functor is an indecomposable projective object. Given an epimorphism , evaluate at . Epimorphisms and coproducts in a presheaf category are pointwise, so is the image of some element of a particular . By the Yoneda lemma, that element defines , and its composite into corresponds to , hence is the identity. The selected component is split epic. More generally, evaluation sends any epimorphism to a surjection, so a map from lifts through any epimorphism; this also proves its ordinary projectivity.
Conversely, every presheaf has the canonical epimorphism
whose component is the natural transformation named by . It is pointwise surjective, since an element at is reached from its own summand at . If is indecomposable projective, one component has a section . The endomorphism of is idempotent and therefore corresponds to an idempotent morphism .
If idempotents split in , choose with , . Then : the mutually inverse maps are and . Thus
Without that hypothesis the argument still proves that every such object is a retract of a representable. The initial presheaf is not indecomposable projective, since its identity is the empty-coproduct epimorphism and has no component to select.
For a locally small category , an object , and a categorical presheaf , the Yoneda lemma gives the natural bijection
Its two maps are explicitly
For , the equation proves naturality of . Evaluating it at the identity morphism gives . Conversely, naturality of at gives
so . Evaluation at the identity and transport of an element along a morphism are mutually inverse.
The bijection is natural in both variables: a natural transformation sends to , matching ; and gives
For completeness, the covariant Yoneda lemma for is , with and inverse .
For in , conjugate the induced natural transformation by the chosen representations of a functor:
The Yoneda lemma gives a unique morphism whose postcomposition map is . Explicitly,
Consequently, for every ,
This is precisely the required naturality in . The identities and force and , because the Yoneda embedding is fully faithful. Thus the representing objects extend uniquely to a functor . Uniqueness follows by the same Yoneda lemma: any candidate satisfying that naturality must induce , so must have exactly the displayed action on morphisms.
The representing object in the functor category is the constant diagram in a category . If is the chosen categorical limit cone, the natural bijection is
A natural transformation from the constant diagram in a category is precisely a categorical cone with vertex , and its inverse is the unique mediating morphism from the universal property of the categorical limit. For , the defining equations for show that postcomposition by corresponds to postcomposition by on the right. This establishes naturality in and proves representability by the constant diagram.
For every , the preceding part identifies the composite with the covariant representable functor . A covariant representable functor preserves every existing categorical limit, since a morphism into a categorical limit is the same as a compatible family of morphisms into the diagram objects. The limit functor preserves limits. The hom-set detection of categorical limits gives
In particular, it preserves all small categorical limits. They exist in : compute each one at every using completeness of , and use the uniqueness of the pointwise mediating morphisms to obtain its functor structure and universal natural transformations. Another expression of the same result is the adjunction .
Use the orientation and . An adjunction is equivalently specified by the natural transformations
called the unit and counit of an adjunction, satisfying the triangle identities for an adjunction
The corresponding natural bijection is , with and inverse . The two triangular equations are the required compatibility conditions. No proof of equivalence of the formulations is needed here.
If is fully faithful, the criterion proved for a right adjoint says that the adjunction counit of is a natural isomorphism. Its component at is precisely the algebra action . In particular, its component at the free algebra for a monad has underlying morphism . Thus every is an isomorphism, and the natural transformation is invertible. This closes the cycle and proves all four conditions equivalent:
First address the unnumbered preliminaries. The Yoneda lemma gives a natural transformation bijection
The element corresponds to for . These bijections are natural in and ; the contravariant form replaces by .
Let be the category of elements. Its objects are with ; an arrow is with . Since is a small category, is small. Define a diagram in a category by
For the opposite of , the map is precomposition with . The Yoneda lemma gives a cocone under a diagram whose component sends to .
For any , a competing cocone under a diagram amounts, by the Yoneda lemma, to elements satisfying
This is exactly the naturality condition for defined by . It gives a unique natural transformation factoring the cocone. Thus the universal property of a colimit proves the canonical colimit presentation of a covariant set-valued functor:
The opposite on is essential for the variance of the representable functors.
We now prove the four conditions equivalent by the cycle . Suppose is a finite-limit-preserving set-valued functor. For a finite diagram in a category in the comma category , write its objects as . Take in . Since preserves this finite limit, the compatible maps determine a unique whose composites with are . The pair has the required categorical limit property in , by the same universal properties. For the empty diagram, is a singleton, so there is exactly one map ; this provides the terminal object. Hence for every set .