Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
167 tokens/sec
GPT-4o
7 tokens/sec
Gemini 2.5 Pro Pro
42 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Categorical models of subtyping (2312.14600v1)

Published 22 Dec 2023 in cs.LO and math.CT

Abstract: Most categorical models for dependent types have traditionally been heavily set based: contexts form a category, and for each we have a set of types in said context -- and for each type a set of terms of said type. This is the case for categories with families, categories with attributes, and natural models; in particular, all of them can be traced back to certain discrete Grothendieck fibrations. We extend this intuition to the case of general, non necessarily discrete, fibrations, so that over a given context one has not only a set but a category of types. We argue that the added structure can be attributed to a notion of subtyping that shares many features with that of coercive subtyping, in the sense that it is the product of thinking about subtyping as an abbreviation mechanism: we say that a given type $A'$ is a subtype of $A$ if there is a unique coercion from $A'$ to $A$. Whenever we need a term of type $A$, then, it suffices to have a term of type $A'$, which we can `plug-in' into $A$. For this version of subtyping we provide rules, coherences, and explicit models, and we compare and contrast it to coercive subtyping as introduced by Z. Luo and others. We conclude by suggesting how the tools we present can be employed in finding appropriate rules relating subtyping and certain type constructors.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (27)
  1. Towards observational type theory. 2006.
  2. Steve Awodey. Natural models of homotopy type theory. Mathematical Structures in Computer Science, 28(2):241–286, 2018.
  3. Francis Borceux. Handbook of Categorical Algebra, volume 2 of Encyclopedia of Mathematics and its Applications. Cambridge University Press, 1994.
  4. Greta Coraglia and Ivan Di Liberti. Context, judgement, deduction. ArXiv e-prints, 2022.
  5. A 2-dimensional analysis of categorical comprehensions.
  6. Greta Coraglia. Categorical structures for deduction. PhD thesis, Università degli Studi di Genova, 2023.
  7. Peter Dybjer. Internal type theory. In Stefano Berardi and Mario Coppo, editors, Types for Proofs and Programs, pages 120–134, Berlin, Heidelberg, 1996. Springer Berlin Heidelberg.
  8. A comonad for grothendieck fibrations, 2023.
  9. Alexander Grothendieck. Categoriés fibrées et descente (Exposé VI). Revêtements étales et groupe fondamental - SGA1, 1960-61.
  10. J. Martin E. Hyland. The effective topos. In A.S. Troelstra and D. van Dalen, editors, The L. E. J. Brouwer Centenary Symposium, volume 110 of Studies in Logic and the Foundations of Mathematics, pages 165–216. Elsevier, 1982.
  11. Bart Jacobs. Comprehension categories and the semantics of type dependency. Theoretical Computer Science, 107(2):169–207, 1993.
  12. Peter T. Johnstone. Sketches of an Elephant: A Topos Theory Compendium: 1 Volume Set. Oxford University Press UK, 2002.
  13. Doctrines in categorical logic. In Studies in Logic and the Foundations of Mathematics, volume 90, pages 283–313. Elsevier, 1977.
  14. F. William Lawvere. Functorial Semantics of Algebraic Theories: And, Some Algebraic Problems in the Context of Functorial Semantics of Algebraic Theories. Mount Allison University, 1963.
  15. F. William Lawvere. Equality in hyperdoctrines and comprehension schema as an adjoint functor. Proceedings of the American Mathematical Society, pages 1–14, 1970.
  16. 2-dimensional directed type theory. Electronic Notes in Theoretical Computer Science, 276:263–289, 2011. Twenty-seventh Conference on the Mathematical Foundations of Programming Semantics (MFPS XXVII).
  17. Zhen Lin Low. Logic in a topos, 2013.
  18. Practical subtyping for curry-style languages. ACM Trans. Program. Lang. Syst., 41(1):5:1–5:58, 2019.
  19. Introduction to higher-order categorical logic, volume 7. Cambridge University Press, 1988.
  20. Coercive subtyping: Theory and implementation. Information and Computation, 223:18–42, 2013.
  21. Zhaohui Luo. Coercive subtyping. Journal of Logic and Computation, 9(1):105–130, 02 1999.
  22. Quotient completion for the foundation of constructive mathematics. Logica Universalis, 7(3):371–402, 2013.
  23. Functors are type refinement systems. SIGPLAN Not., 50(1):3–16, jan 2015.
  24. Benjamin C. Pierce. Types and Programming Languages. MIT Press, 1 edition, February 2002.
  25. Colimit completions and the effective topos. The Journal of Symbolic Logic, 55(2):678–699, 1990.
  26. Thomas Streicher. Fibred categories à la Jean Bénabou. arXiv preprint arXiv:1801.02927, 2022.
  27. Noam Zeilberger. Principles of type refinement (OPLSS 2016), 2016.
Citations (1)

Summary

We haven't generated a summary for this paper yet.