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, not 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.

Categorical Models of Subtyping / G. Coraglia, J. Emmenegger - In: 29th International Conference on Types for Proofs and Programs (TYPES 2023) in Leibniz International Proceedings in Informatics (LIPIcs)[s.l] : Dagstuhl Publishing, 2024 Aug 20. - pp. 3:1-3:19 (( Intervento presentato al 29. convegno International Conference on Types for Proofs and Programs tenutosi a Valencia nel 2023 [10.4230/lipics.types.2023.3].

Categorical Models of Subtyping

G. Coraglia;
2024

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, not 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.
No
English
Settore MATH-01/A - Logica matematica
Settore INFO-01/A - Informatica
Intervento a convegno
Esperti anonimi
Pubblicazione scientifica
   BIAS, RISK, OPACITY in AI: design, verification and development of Trustworthy AI
   BRIO
   MINISTERO DELL'ISTRUZIONE E DEL MERITO
   2020SSKZ7R_001
29th International Conference on Types for Proofs and Programs (TYPES 2023) in Leibniz International Proceedings in Informatics (LIPIcs)
Dagstuhl Publishing
20-ago-2024
3:1
3:19
19
303
Volume a diffusione internazionale
Gold
International Conference on Types for Proofs and Programs
Valencia
2023
29
Convegno internazionale
datacite
Aderisco
G. Coraglia, J. Emmenegger
Book Part (author)
open
273
Categorical Models of Subtyping / G. Coraglia, J. Emmenegger - In: 29th International Conference on Types for Proofs and Programs (TYPES 2023) in Leibniz International Proceedings in Informatics (LIPIcs)[s.l] : Dagstuhl Publishing, 2024 Aug 20. - pp. 3:1-3:19 (( Intervento presentato al 29. convegno International Conference on Types for Proofs and Programs tenutosi a Valencia nel 2023 [10.4230/lipics.types.2023.3].
info:eu-repo/semantics/bookPart
2
Prodotti della ricerca::03 - Contributo in volume
File in questo prodotto:
File Dimensione Formato  
LIPIcs.TYPES.2023.3.pdf

accesso aperto

Tipologia: Post-print, accepted manuscript ecc. (versione accettata dall'editore)
Dimensione 871.03 kB
Formato Adobe PDF
871.03 kB Adobe PDF Visualizza/Apri
Pubblicazioni consigliate

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2434/1102789
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact