A partial function is lambda-definable when a lambda term sends the corresponding Church numerals to the numeral for whenever the value is defined and produces no numeral otherwise; in other words, it is a lambda-definable partial function. The initial functions are represented by
and the appropriate variable in . If represent , then
represents their composition.
Church Booleans supply a lazy conditional, and
tests whether a Church numeral is zero. A standard predecessor term is
Let and represent the base and step functions of a primitive recursion. With a fixed-point combinator , define
Normal-order beta reduction evaluates only the selected branch. Induction on the input numeral gives the two recursion equations, so this is the lambda definition of primitive recursion.
For unbounded minimization, let represent and define
Then tests in order and returns the least zero of . If no zero is reached, or a required earlier computation is undefined, reduction never produces a Church numeral. This is the lambda definition of unbounded minimization. Since the partial recursive functions are generated from the initial functions by composition, primitive recursion, and minimization, every partial computable function is represented by a lambda term on Church numerals.
We prove the claim by structural induction for primitive recursive functions. A formula is bounded when every quantifier is a bounded quantifier; this is a Delta-0 formula. The graphs of the initial functions have quantifier-free definitions:
Suppose and the graphs of have existential bounded definitions. Introduce variables for the intermediate values and conjoin the graph formulas
Pulling all unrestricted existential witnesses to the front leaves a bounded matrix, so the required form is preserved by composition.
For primitive recursion, use Gödel beta-function sequence coding. The relation
is bounded in the language of ordered rings. Given any finite sequence , choose larger than all its entries and divisible by . The moduli are pairwise coprime, so the Chinese remainder theorem supplies with for every .
Suppose
and the induction hypothesis gives existential bounded graph formulas for and . Then exactly when there are coding values , together with a common witness bound , such that:
Write each using , bound the variables representing by , and bound every witness used by the graph formulas for and by . All quantifiers checking the displayed finite recursion are then bounded; only and the finitely many outer coding witnesses are unrestricted existential variables. Conversely, any code passing these bounded checks satisfies the recursion equations, and induction on forces its th entry to be . This proves the existential bounded representation of a primitive recursive function.
The Knaster-Tarski theorem states that the fixed points of a monotone map on a complete lattice form a complete lattice. Let
For every , monotonicity gives , hence . Applying once more gives , so . The definition of then gives , and therefore . Thus
is the least fixed point. The order-dual argument shows that
is the greatest fixed point.
More generally, for a family of fixed points, let be the set of prefixed points satisfying and for every . Its meet is again prefixed. Since for every , the element also lies in , so the preceding argument gives . It is the join of within the fixed-point order. The dual construction gives the meet of within that order, proving completeness.
For the Myhill-Nerode theorem, let and define the Myhill-Nerode equivalence
This is an equivalence relation and a right congruence: implies for every letter .
If a deterministic finite automaton accepts , any two words reaching the same state are equivalent, because every continuation has the same subsequent run. Hence has at most as many classes as the automaton has states. Conversely, if has finitely many classes, define an automaton with state set , initial state , transition
and accepting states with . Right congruence makes the transition well defined, and induction on word length shows that the state reached by is , so the automaton accepts exactly . Therefore is a regular language exactly when has finite index. Moreover, every automaton for has at least one state for each equivalence class, so this quotient is the minimal deterministic finite automaton.
In a pointed category, a normal monomorphism is a monomorphism that is the kernel in a category of some morphism. Suppose is the kernel of , and let be the cokernel in a category of . Since , there is a unique with . If , then , so the universal property of factors uniquely through . Therefore . The converse is immediate: if is the kernel of its cokernel, it is the kernel of a morphism and hence normal.
An abelian category is an additive category with kernels and cokernels in which every monomorphism is normal and every epimorphism is a conormal epimorphism. Finite biproducts and kernels give finite limits. The image and coimage in an abelian category give every the canonical factorization
and the middle map is an isomorphism. The first map is a cokernel and therefore a regular epimorphism. Every epimorphism in an abelian category is the cokernel of its kernel, and epimorphisms are stable under pullback; consequently regular epimorphisms are pullback-stable. This proves that every abelian category is regular.
Define the additive indexing category for chain complexes as follows. Its objects are the integers and
Let the generator of be and the generator of be . Composition is bilinear, the are identities, and
because the target hom-group is zero. An additive functor chooses objects and differentials satisfying , hence a complex in an abelian category. Conversely every chain complex defines this unique additive functor.
For self-duality, put , , and let . Since , there is a unique with . The image-to-kernel factorization gives a canonical isomorphism
Passing to the opposite category exchanges kernels with cokernels and images with coimages. The usual construction in is therefore the expression on the right, which is canonically the original homology object. This proves the self-duality of homology.
A regular category has finite limits, every morphism factors through its image of a morphism in a regular category as a regular epimorphism followed by a monomorphism, and regular epimorphisms are stable under every pullback in a category. A cover is a strong epimorphism. Every regular epimorphism is strong: if is the coequalizer of and a square has on the left and a monomorphism on the right, monicity shows that the upper arrow coequalizes . It therefore factors through , and the epimorphism property of shows that this factor is the required diagonal. Conversely, factor a strong epimorphism as with regular epic and monic. The lifting property gives a two-sided inverse to , so is an isomorphism and is regular epic. Thus regular epimorphisms and covers coincide.
Let be the left-exact reflector and let . Since preserves finite limits, is monic. Define as the pullback
Naturality of the unit supplies a map over , proving . A factorization induces and therefore , so is order-preserving.
Apply to the defining pullback. Left exactness and the fact that is an isomorphism identify with . Pulling back once more therefore gives
For a map , left exactness identifies with . Pasting the two pullback squares then yields
so this closure operation induced by a left-exact reflector commutes with pullback.
Assume lies in , so is an isomorphism. If also lies in , its unit is an isomorphism and the defining square gives . Conversely, if is closed, that square expresses as a finite limit of , , and , all fixed by . Fixed objects of a left-exact reflective subcategory are closed under finite limits, so belongs to .
Finally suppose is regular. The fixed objects have finite limits. For in , factor it in as
Applying gives . The map is regular epic because a left adjoint preserves the coequalizer presenting , and is monic because is left exact. Thus has image factorizations. Their image subobject is the closure . A map in is regular epic exactly when this closure is all of its codomain. Images in commute with pullback, and the closure operation also commutes with pullback, so this condition is pullback-stable. Hence is regular, as stated by the left-exact reflective subcategory of a regular category theorem.
A monad on is an endofunctor with natural transformations
satisfying and . Its Eilenberg-Moore category has algebras for a monad satisfying
and morphisms of algebras for a monad satisfying .
The Kleisli category has the objects of and
Its identity is , while the composite of and is . The free functor into a Kleisli category is the identity on objects and sends to .
On the functor category , postcomposition gives the pointwise monad on a functor category
The monad laws hold componentwise. A -algebra is a functor with a natural transformation whose components are -algebras. Naturality says precisely that every is an algebra morphism. Hence sending to the lifted functor gives an isomorphism, and in particular an equivalence,
On , precomposition gives the precomposition monad on a functor category
A -algebra is a natural transformation satisfying and . From it define by
The two algebra laws say exactly that preserves identities and Kleisli composition, and . Conversely, a factorization gives
where represents a Kleisli arrow . These constructions are inverse on objects and morphisms, so
A cocone under a diagram with vertex is a natural family , so for every . A colimit of is an initial such cocone: for every cocone , there is a unique with for all .
Let be a final functor and let be a cocone under . For each , choose an object of the nonempty comma category and define
A morphism in the comma category gives , and the cocone identity shows that the two resulting maps are equal. Because is a connected category, a zigzag proves independence of the chosen object. The same construction applied after a morphism proves naturality, so is a cocone. Any extension must have this value because it must satisfy the cocone identity along , proving uniqueness. This is cocone extension along a final functor.
If is a colimit of , its universal cocone extends uniquely to . Restriction and extension give mutually inverse correspondences between cocones from and from , so the extended cocone is a colimit of . Therefore the existence of all colimits of shape implies the required colimits of shape .
Now suppose is a sifted category. For , the product functor is a left adjoint, so it preserves colimits. Applying this once in each variable gives
The diagonal is final, so the right side is
Thus preserves binary products in a category. Since is connected, the colimit of the constant singleton diagram is a singleton, so it also preserves the terminal object. It therefore preserves finite products.
For an adjoint functor pair , the unit and counit of an adjunction are
Under the adjunction bijection, corresponds to and corresponds to . They satisfy the triangle identities
Conversely, natural transformations with these identities recover the adjunction through the mutually inverse maps
The fully faithful adjoint criterion gives the first equivalence directly. If is full and faithful, there is a unique with ; the triangle identity and faithfulness show that and are inverse, so the unit is an isomorphism. If the unit is an isomorphism, the displayed adjunction bijection shows that
is bijective, so is full and faithful. This also proves that either condition gives a natural isomorphism .
For the remaining direction, suppose merely that is naturally isomorphic to the identity. Transport the monad induced by an adjunction along this isomorphism. Its underlying endofunctor is then the identity, its unit is a natural endomorphism , and its multiplication is a natural endomorphism with . Naturality makes commute with , so also . Hence the transported unit, and therefore , is an isomorphism. The three conditions are equivalent.
Now let . If is full and faithful, then . For , the two adjunctions give natural bijections
The Yoneda lemma therefore gives , naturally in . The fully faithful adjoint criterion applied to shows that is full and faithful. Conversely, if is full and faithful, then and
Another application of the Yoneda lemma gives , so is full and faithful. Thus is full and faithful exactly when is.
Assume henceforth that is full and faithful. Then the counit and unit are natural isomorphisms. Consider
Applying the faithful functor , then using naturality and the four triangle identities, turns both composites into
Therefore ; denote their common value by , the double-adjoint comparison transformation.
The pointwise monicity criterion is clearest from the following natural square, in which both vertical maps are bijections:
The left vertical map is the adjunction , while the right one precomposes with the isomorphism . Thus every is a monomorphism exactly when is faithful on all morphisms , namely morphisms whose domains lie in the image of .
Dually, the natural square
has bijective vertical maps, using on the left and the isomorphism on the right. Hence every is an epimorphism exactly when is faithful on all morphisms , namely morphisms whose codomains lie in the image of .
For a locally small category , an object , and a functor , the covariant Yoneda lemma is the natural bijection
Its inverse sends to the natural transformation whose component at maps to .
Suppose now that is a small category. For , form the coproduct in a category
The Yoneda lemma associates to every summand the natural transformation determined by , and these transformations combine to a map . At an object , the element is the image of in the summand indexed by , so is a pointwise epimorphism in a functor category. Each representable functor is a projective object in a category, since
and evaluation preserves pointwise epimorphisms. A coproduct of projectives is projective, so is the required projective object. This is the projective cover of a set-valued functor by representables.
We next prove the three equivalent conditions. If every morphism of is a monomorphism, then for and every , postcomposition
is injective. Thus every covariant representable functor is a monofunctor. Conversely, taking shows that injectivity for every representable implies that forces , so every is monic.
If all representables are monofunctors, the object above is a monofunctor because a coproduct of injective functions is injective. Hence every is an epimorphic image of a monofunctor. Conversely, suppose every functor is an epimorphic image of a monofunctor and apply this to a representable . Choose an epimorphism with a monofunctor. Since is projective, lifts to with . Thus is a retract in a category of . Every retract of a monofunctor is a monofunctor: if , then injectivity of applied to and gives , and applying gives . This completes the equivalence.
Finally, every functor is a monofunctor exactly when every morphism of is a split monomorphism. The forward implication is immediate because every functor preserves a left inverse. For the converse, fix and form a quotient of by identifying the distinguished point with every arrow of the form , where . In the resulting functor , the two elements and of have equal images under because . If every functor is a monofunctor, is injective, so . By construction this means for some . Thus is split monic. Equivalently, every morphism of must be an absolute monomorphism.

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact