If I understand correctly, we can model inductive data types as initial F-algebras and co-inductive data types as final F-coalgebras (for an appropriate endofunctor F
) [1]. I understand that according to Lambek's lemma the initial algebras (and final coalgebras) are fixed point solutions of the isomorphism T ≅ F T
, but I don't see why the initial algebra is the least fixed point, while the final coalgebra is the greatest fixed point. (Is it obvious that the isomorphism T ≅ F T
has a solution?)
Also I'm not really clear on how are inductive and co-inductive data types defined in type theory. Are there any recommended resources on this topic and maybe their relationship to category theory?
Thank you!