Stefania Damato, Thorsten Altenkirch, Axel Ljungström
{"title":"将归纳和共生容器形式化","authors":"Stefania Damato, Thorsten Altenkirch, Axel Ljungström","doi":"arxiv-2409.02603","DOIUrl":null,"url":null,"abstract":"Containers capture the concept of strictly positive data types in\nprogramming. The original development of containers is done in the internal\nlanguage of Locally Cartesian Closed Categories (LCCCs) with disjoint\ncoproducts and W-types. Although it is claimed that these developments can also\nbe interpreted in extensional Martin-L\\\"of type theory, this interpretation is\nnot made explicit. Moreover, as a result of extensionality, these developments\nfreely assume Uniqueness of Identity Proofs (UIP), so it is not clear whether\nthis is a necessary condition. In this paper, we present a formalisation of the\nresult that `containers preserve least and greatest fixed points' in Cubical\nAgda, thereby giving a formulation in intensional type theory, and showing that\nUIP is not necessary. Our main incentive for using Cubical Agda is that its\npath type restores the equivalence between bisimulation and coinductive\nequality. Thus, besides developing container theory in a more general setting,\nwe also demonstrate the usefulness of Cubical Agda's path type to coinductive\nproofs.","PeriodicalId":501306,"journal":{"name":"arXiv - MATH - Logic","volume":"8 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Formalising inductive and coinductive containers\",\"authors\":\"Stefania Damato, Thorsten Altenkirch, Axel Ljungström\",\"doi\":\"arxiv-2409.02603\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Containers capture the concept of strictly positive data types in\\nprogramming. The original development of containers is done in the internal\\nlanguage of Locally Cartesian Closed Categories (LCCCs) with disjoint\\ncoproducts and W-types. Although it is claimed that these developments can also\\nbe interpreted in extensional Martin-L\\\\\\\"of type theory, this interpretation is\\nnot made explicit. Moreover, as a result of extensionality, these developments\\nfreely assume Uniqueness of Identity Proofs (UIP), so it is not clear whether\\nthis is a necessary condition. In this paper, we present a formalisation of the\\nresult that `containers preserve least and greatest fixed points' in Cubical\\nAgda, thereby giving a formulation in intensional type theory, and showing that\\nUIP is not necessary. Our main incentive for using Cubical Agda is that its\\npath type restores the equivalence between bisimulation and coinductive\\nequality. Thus, besides developing container theory in a more general setting,\\nwe also demonstrate the usefulness of Cubical Agda's path type to coinductive\\nproofs.\",\"PeriodicalId\":501306,\"journal\":{\"name\":\"arXiv - MATH - Logic\",\"volume\":\"8 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-09-04\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - MATH - Logic\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2409.02603\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - MATH - Logic","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.02603","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Containers capture the concept of strictly positive data types in
programming. The original development of containers is done in the internal
language of Locally Cartesian Closed Categories (LCCCs) with disjoint
coproducts and W-types. Although it is claimed that these developments can also
be interpreted in extensional Martin-L\"of type theory, this interpretation is
not made explicit. Moreover, as a result of extensionality, these developments
freely assume Uniqueness of Identity Proofs (UIP), so it is not clear whether
this is a necessary condition. In this paper, we present a formalisation of the
result that `containers preserve least and greatest fixed points' in Cubical
Agda, thereby giving a formulation in intensional type theory, and showing that
UIP is not necessary. Our main incentive for using Cubical Agda is that its
path type restores the equivalence between bisimulation and coinductive
equality. Thus, besides developing container theory in a more general setting,
we also demonstrate the usefulness of Cubical Agda's path type to coinductive
proofs.