Abstract
We are investigating McBride’s idea that the type of one-hole contexts are the formal derivative of a functor from a categorical perspective. Exploiting our recent work on containers we are able to characterise derivatives by a universal property and show that the laws of calculus including a rule for initial algebras as presented by McBride hold — hence the differentiable containers include those generated by polynomials and least fixpoints. Finally, we discuss abstract containers (i.e. quotients of containers) — this includes a container which plays the role of ex in calculus by being its own derivative.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
M. Abbott, T. Altenkirch, and N. Ghani. Categories of containers. In Proceedings of Foundations of Software Science and Computation Structures, 2003.
J. Adámek and J. Rosický. Locally Presentable and Accessible Categories. Number 189 in LMS Lecture Note Series. CUP, 1994.
P. Dybjer. Representing inductively defined sets by wellorderings in Martin-Löf’s type theory. Theoretical Computer Science, 170(1–2):245–276, 1996.
T. Ehrhard and L. Regnier. The differential lambda-calculus. Available electronically, 2001. URL http://iml.univ-mrs.fr/ftp/regnier/Articles.html.
R. Hasegawa. Two applications of analytic functors. Theoretical Comput. Sci., 272(1–2):112–175, 2002.
M. Hofmann. On the interpretation of type theory in locally cartesian closed catetories. In Computer Science Logic, volume 933 of LNCS, 1994.
G. Huet. The zipper. Journal of Functional Programming, 7(5):549–554, 1997.
G. Huet. Linear contexts and the sharing functor: Techniques for symbolic computation. In Workshop on Thirty Five Years of Automath, 2003.
A. Joyal. Foncteurs analytiques et espéces de structures. In Combinatoire énumérative, number 1234 in LNM, pages 126–159. 1986.
G. Leibniz. Nova methodus pro maximis et minimis, itemque tangentibus, qua nec irrationals quantitates moratur. Acta eruditorum, 1684.
C. McBride. The derivative of a regular type is its type of one-hole contexts. Available electronically, 2001. URL http://www.dur.ac.uk/c.t.mcbride/.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2003 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Abbott, M., Altenkirch, T., Ghani, N., McBride, C. (2003). Derivatives of Containers. In: Hofmann, M. (eds) Typed Lambda Calculi and Applications. TLCA 2003. Lecture Notes in Computer Science, vol 2701. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44904-3_2
Download citation
DOI: https://doi.org/10.1007/3-540-44904-3_2
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-40332-6
Online ISBN: 978-3-540-44904-1
eBook Packages: Springer Book Archive