We present a construction of W-types in the setoid model of extensional Martin-L¨of type theory using dependent W-types in the underlying intensional theory. More precisely, we prove that the internal category of setoids has initial algebras for polynomial endofunctors. In particular, we characterise the setoid of algebra morphisms from the initial algebra to a given algebra as a setoid on a dependent W-type. We conclude by discussing the case of free setoids. We work in a fully intensional theory and, in fact, we assume identity types only when discussing free setoids. By using dependent W-types we can also avoid elimination into a type universe. The results have been verified in Coq and a formalisation is available on the author’s GitHub page.

W-types in setoids / Emmenegger, J.. - In: LOGICAL METHODS IN COMPUTER SCIENCE. - ISSN 1860-5974. - Volume 17, Issue 3:(2021), pp. 1-33. [10.46298/lmcs-17(3:28)2021]

W-types in setoids

Jacopo Emmenegger
2021

Abstract

We present a construction of W-types in the setoid model of extensional Martin-L¨of type theory using dependent W-types in the underlying intensional theory. More precisely, we prove that the internal category of setoids has initial algebras for polynomial endofunctors. In particular, we characterise the setoid of algebra morphisms from the initial algebra to a given algebra as a setoid on a dependent W-type. We conclude by discussing the case of free setoids. We work in a fully intensional theory and, in fact, we assume identity types only when discussing free setoids. By using dependent W-types we can also avoid elimination into a type universe. The results have been verified in Coq and a formalisation is available on the author’s GitHub page.
2021
W-types; polynomial functors; Martin-L¨of type theory; setoids
01 Pubblicazione su rivista::01a Articolo in rivista
W-types in setoids / Emmenegger, J.. - In: LOGICAL METHODS IN COMPUTER SCIENCE. - ISSN 1860-5974. - Volume 17, Issue 3:(2021), pp. 1-33. [10.46298/lmcs-17(3:28)2021]
File allegati a questo prodotto
File Dimensione Formato  
Emmenegger_W-types_2021.pdf

accesso aperto

Tipologia: Versione editoriale (versione pubblicata con il layout dell'editore)
Licenza: Creative commons
Dimensione 486.32 kB
Formato Adobe PDF
486.32 kB Adobe PDF

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/11573/1779212
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 1
  • ???jsp.display-item.citation.isi??? ND
social impact