For a functor , precomposition by induces , hence a map of categorical connected components in the opposite direction to . This defines a presheaf on . Its category of elements is the intermediate category in the final-discrete-fibration factorization.
Suppose are two final-discrete-fibration factorizations. Apply the orthogonality of final functors and discrete fibrations to the square with left side , top , bottom and right side . It gives a unique satisfying and . Reversing the roles gives .
Both and fill the same square for , so uniqueness gives ; similarly . This proves the uniqueness of a final-discrete-fibration factorization: the connecting functor is a canonical isomorphism, not just a noncanonical equivalence.
Use the connected-component presheaf of a functor. For , define to have objects , where is a categorical connected component of . An arrow is an arrow such that , where precomposition induces . Identity and composition follow from precomposition, so this is a category.
The projection is a discrete fibration: the unique lift of with codomain has domain .
Define by
For , the objects and lie in the same component of , proving this is well-defined. Clearly .
For , the objects and arrows of are exactly the objects and arrows of the component of . Indeed, an arrow is with , and its commuting triangles are precisely those in the original comma category. This category is nonempty and connected. Hence is a final functor, proving the final-discrete-fibration factorization
For each , let , the collection of connected components, where connectedness means connection by a zigzag of arrows. Precomposition with gives a function . Identity and composition are inherited from precomposition.
Construct a category whose objects are pairs with . An arrow is an arrow satisfying . Composition is that of , and the component equation is preserved by composition. The projection is a discrete fibration: an arrow has precisely one lift into , namely the arrow from represented by .
Define by
This is well defined because and lie in the same component of whenever . Clearly .
For an object of , an object of is exactly a pair representing the component . Its morphisms are exactly the arrows in between such objects. Thus this comma category is the component itself, which is nonempty and connected. This proves that is a final functor, and hence
This is the final-discrete-fibration factorization. For small categories the collections are sets and this construction is the category of elements of the presheaf . For categories of a larger size, the construction is interpreted in the same chosen ambient size framework.
For an arbitrary functor , define a category as follows. Its objects are pairs , where and is a connected component of . Precomposition by an arrow defines
There is one morphism over exactly when . Functoriality of precomposition makes this a category, and projection
is a discrete fibration: given , its unique lift with codomain has domain .
Define by
where is the component of the identity object in . For , use the unique arrow over . It exists because contains the object , and this object is joined to by the morphism in . Plainly .
For , an object of is exactly an arrow lying in the component : the condition for an arrow is precisely . Morphisms agree with those in . Hence
which is nonempty and connected by definition. Therefore is final. We have factored as a final functor followed by a discrete fibration, giving the final-discrete-fibration factorization.