Hostname: page-component-76fb5796d-vvkck Total loading time: 0 Render date: 2024-04-25T15:08:08.746Z Has data issue: false hasContentIssue false

The Scott model of PCF in univalent type theory

Published online by Cambridge University Press:  23 July 2021

Tom de Jong*
Affiliation:
School of Computer Science, University of Birmingham, Birmingham, UK
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the ‘Save PDF’ action button.

We develop the Scott model of the programming language PCF in univalent type theory. Moreover, we work constructively and predicatively. To account for the non-termination in PCF, we use the lifting monad (also known as the partial map classifier monad) from topos theory, which has been extended to univalent type theory by Escardó and Knapp. Our results show that lifting is a viable approach to partiality in univalent type theory. Moreover, we show that the Scott model can be constructed in a predicative and constructive setting. Other approaches to partiality either require some form of choice or quotient inductive-inductive types. We show that one can do without these extensions.

Type
Paper
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
© The Author(s), 2021. Published by Cambridge University Press

References

Abramsky, S. and Jung, A. (1994). Domain theory. In: Abramsky, S., Gabbay, D. M. and Maibaum, T. S. E. (eds.) Handbook of Logic in Computer Science, vol. 3, Clarendon Press, 1–168. Updated online version available at: https://www.cs.bham.ac.uk/ axj/pub/papers/handy1.pdf.Google Scholar
Altenkirch, T., Danielsson, N. A. and Kraus, N. (2017). Partiality, revisited: The partiality monad as a quotient inductive-inductive type. In: Esparza, J. and Murawski, A. S. (eds.) Foundations of Software Science and Computation Structures, Lecture Notes in Computer Science, vol. 10203, Springer, 534–549. doi: 10.1007/978-3-662-54458-7_31.CrossRefGoogle Scholar
Benton, N., Kennedy, A. and Varming, C. (2009). Some domain theory and denotational semantics in Coq. In: Berghofer, S., Nipkow, T., Urban, C. and Wenzel, M. (eds.) Theorem Proving in Higher Order Logics, Lecture Notes in Computer Science, vol. 5674, Berlin Heidelberg, Springer, 115–130. doi: 10.1007/978-3-642-03359-9_10.CrossRefGoogle Scholar
Bishop, E. (1967). Foundations of Constructive Analysis, McGraw-Hill Book Company.Google Scholar
Bridges, D. and Richman, F. (1987). Varieties of Constructive Mathematics , London Mathematical Society Lecture Note Series, vol. 97, Cambridge University Press.Google Scholar
Capretta, V. (2005). General recursion via coinductive types. Logical Methods in Computer Science 1 (2). doi: 10.2168/LMCS-1(2:1)2005.CrossRefGoogle Scholar
Chapman, J., Uustalu, T. and Veltri, N. (2017). Quotienting the delay monad by weak bisimilarity. Mathematical Structures in Computer Science 29 (1) 6792. doi: 10.1017/S0960129517000184.CrossRefGoogle Scholar
Coquand, T. (2018). A survey of constructive presheaf models of univalence. ACM SIGLOG News 5 (3) 5465.CrossRefGoogle Scholar
Coquand, T., Mannaa, B. and Ruch, F. (2017). Stack semantics of type theory. In: 2017 32nd Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), 1–11. doi: 10.1109/LICS.2017.8005130.CrossRefGoogle Scholar
de Jong, T. and Escardó, M. H. (2021a). Domain theory in constructive and predicative univalent foundations. In: Baier, C. and Goubault-Larrecq, J. (eds.) 29th EACSL Annual Conference on Computer Science Logic (CSL 2021), Leibniz International Proceedings in Informatics (LIPIcs), vol. 183, Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 28:1–28:18. doi: 10.4230/LIPIcs.CSL.2021.28.Google Scholar
de Jong, T. and Escardó, M. H. (2021b). Predicative aspects of order theory in univalent foundations. To appear in the Proceedings of FSCD 2021, LIPIcs, vol. 195. arXiv[math.LO]:2102.08812.Google Scholar
Escardó, M. H. (2018). Constructive mathematics in univalent type theory. Slides for a talk at Homotopy Type Theory Electronic Seminar Talks, 26 April. https://www.uwo.ca/math/faculty/kapulkin/seminars/hottestfiles/Escardo-2018-04-26-HoTTEST.pdf.Google Scholar
Escardó, M. H. (2019). TypeTopology — Various new theorems in constructive univalent mathematics written in Agda. https://github.com/martinescardo/TypeTopology.Google Scholar
Escardó, M. H. and Knapp, C. M. (2017). Partial elements and recursion via dominances in univalent type theory. In: Goranko, V. and Dam, M. (eds.) 26th EACSL Annual Conference on Computer Science Logic (CSL 2017), Leibniz International Proceedings in Informatics (LIPIcs), vol. 82, Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 21:1–21:16. doi: 10.4230/LIPIcs.CSL.2017.21.CrossRefGoogle Scholar
Hindley, J. R. and Seldin, J. P. (2008). Lambda-Calculus and Combinators, an Introduction, 2nd edn., Cambridge University Press. doi: 10.1017/cbo9780511809835.CrossRefGoogle Scholar
Hugunin, J. (2017a). Characterizing the equality of Indexed W types. Post on the Homotopy Type Theory mailing list. https://groups.google.com/d/msg/homotopytypetheory/qj2OvRvqf-Q/hGFBczJGAwAJ.Google Scholar
Hugunin, J. (2017b). IWTypes — A Coq development of the theory of Indexed W types with function extensionality. https://github.com/jashug/IWTypes.Google Scholar
Knapp, C. (2018). Partial Functions and Recursion in Univalent Type Theory. PhD thesis, School of Computer Science, University of Birmingham.Google Scholar
Kock, A. (1991). Algebras for the partial map classifier monad. In: Carboni, A., Pedicchio, M. C. and Rosolini, G. (eds.) Category Theory, Lecture Notes in Mathematics, vol. 1488, Springer, 262–278. doi: 10.1007/BFB0084225.CrossRefGoogle Scholar
Kraus, N., Escardó, M., Coquand, T. and Altenkirch, T. (2017). Notions of anonymous existence in Martin-Löf Type Theory. Logical Methods in Computer Science 13. doi: 10.23638/LMCS-13(1:15)2017.CrossRefGoogle Scholar
Plotkin, G. (1977). LCF considered as a programming language. Theoretical Computer Science 5 (3) 223255. doi: 10.1016/0304-3975(77)90044-5.CrossRefGoogle Scholar
Plotkin, G. (1983). Domains. Lecture notes on domain theory, known as the Pisa Notes. https://homepages.inf.ed.ac.uk/gdp/publications/Domains_a4.ps.Google Scholar
Reus, B. and Streicher, T. (1999). General synthetic domain theory — a logical approach. Mathematical Structures in Computer Science 9 (2) 177223. doi: 10.1017/S096012959900273X.CrossRefGoogle Scholar
Scott, D. S. (1993). A type-theoretical alternative to ISWIM, CUCH, OWHY. Theoretical Computer Science 121 (1) 411440. doi: 10.1016/0304-3975(93)90095-B.CrossRefGoogle Scholar
Streicher, T. (2006). Domain-Theoretic Foundations of Functional Programming, World Scientific. doi: 10.1142/6284.Google Scholar
Swan, A. W. (2019a). Choice, collection and covering in cubical sets. Talk in the electronic HoTTEST seminar, 6 November. Slides at https://www.uwo.ca/math/faculty/kapulkin/seminars/hottestfiles/Swan-2019-11-06-HoTTEST.pdf. Video recording at https://www.youtube.com/watch?v=r9KbEOzyr1g.Google Scholar
Swan, A. W. (2019b). Counterexamples in cubical sets. Slides for a talk at Mathematical Logic and Constructivity: The Scope and Limits of Neutral Constructivism, Stockholm, 20 August. http://logic.math.su.se/mloc-2019/slides/Swan-mloc-2019-slides.pdf.Google Scholar
The Univalent Foundations Program (2013). Homotopy Type Theory: Univalent Foundations of Mathematics. https://homotopytypetheory.org/book, Institute for Advanced Study.Google Scholar
Voevodsky, V., Ahrens, B., Grayson, D. (2019). UniMath — a computer-checked library of univalent mathematics. https://github.com/unimath/unimath#citing-unimath.Google Scholar