definition

Let be -functors between -categories. A -natural transformation has components that are “global elements” of hom-objects, , satisfying the naturality condition expressed as a commuting hexagon in :

equivalently using the enriched hom-functor’s action on global elements. For this is the ordinary naturality square (pick , then ). -natural transformations form a set ; the enriched End gives instead the object of natural transformations in .

Sources: DaoFP §20.3 (“-Natural Transformations”), §17.3 (natural transformations as an end), §20.4 (enriched Yoneda); 7 Sketches Remark 2.71, Example 3.57 (for preorders: at most one, existing iff pointwise).

For a -natural transformation between monotone maps exists iff for all (there is at most one). Enriched natural transformations are the 2-cells of the 2-category , and weighted limits, enriched Kan extensions and the enriched Yoneda Lemma are phrased in terms of them.

-- Mathlib: transformations between enriched functors (via the underlying / forgetful structure)
#check CategoryTheory.EnrichedFunctor
#check CategoryTheory.EnrichedNatTrans    -- (if available in your Mathlib version: `CategoryTheory.Enriched.NatTrans`)
-- in Hask (self-enriched), an enriched natural transformation is just a polymorphic function,
-- but its components are *elements of the internal hom* f a -> g a:
type EnrichedNat f g = forall a. f a -> g a