在守护类型理论中模拟概率 FPC

Philipp Jan Andries Stassen, Rasmus Ejlers Møgelberg, Maaike Zwart, Alejandro Aguirre, Lars Birkedal
{"title":"在守护类型理论中模拟概率 FPC","authors":"Philipp Jan Andries Stassen, Rasmus Ejlers Møgelberg, Maaike Zwart, Alejandro Aguirre, Lars Birkedal","doi":"arxiv-2408.04455","DOIUrl":null,"url":null,"abstract":"Constructive type theory combines logic and programming in one language. This\nis useful both for reasoning about programs written in type theory, as well as\nfor reasoning about other programming languages inside type theory. It is\nwell-known that it is challenging to extend these applications to languages\nwith recursion and computational effects such as probabilistic choice, because\nthese features are not easily represented in constructive type theory. We show\nhow to define and reason about a programming language with probabilistic choice\nand recursive types, in guarded type theory. We use higher inductive types to\nrepresent finite distributions and guarded recursion to model recursion. We\ndefine both operational and denotational semantics, as well as a relation\nbetween the two. The relation can be used to prove adequacy, but we also show\nhow to use it to reason about programs up to contextual equivalence. To the\nbest of our knowledge, this is the first model of a programming language with\nprobabilistic choice and recursive types in a constructive type theory.","PeriodicalId":501197,"journal":{"name":"arXiv - CS - Programming Languages","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2024-08-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Modelling Probabilistic FPC in Guarded Type Theory\",\"authors\":\"Philipp Jan Andries Stassen, Rasmus Ejlers Møgelberg, Maaike Zwart, Alejandro Aguirre, Lars Birkedal\",\"doi\":\"arxiv-2408.04455\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Constructive type theory combines logic and programming in one language. This\\nis useful both for reasoning about programs written in type theory, as well as\\nfor reasoning about other programming languages inside type theory. It is\\nwell-known that it is challenging to extend these applications to languages\\nwith recursion and computational effects such as probabilistic choice, because\\nthese features are not easily represented in constructive type theory. We show\\nhow to define and reason about a programming language with probabilistic choice\\nand recursive types, in guarded type theory. We use higher inductive types to\\nrepresent finite distributions and guarded recursion to model recursion. We\\ndefine both operational and denotational semantics, as well as a relation\\nbetween the two. The relation can be used to prove adequacy, but we also show\\nhow to use it to reason about programs up to contextual equivalence. To the\\nbest of our knowledge, this is the first model of a programming language with\\nprobabilistic choice and recursive types in a constructive type theory.\",\"PeriodicalId\":501197,\"journal\":{\"name\":\"arXiv - CS - Programming Languages\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-08-08\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Programming Languages\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2408.04455\",\"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 - CS - Programming Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.04455","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

构造型理论将逻辑和编程结合在一种语言中。这既有助于推理用类型理论编写的程序,也有助于推理类型理论中的其他编程语言。众所周知,将这些应用扩展到具有递归和计算效应(如概率选择)的语言是一项挑战,因为这些特征在构造类型论中不易表示。我们展示了如何在防护类型理论中定义和推理具有概率选择和递归类型的编程语言。我们用高级归纳类型来表示有限分布,用保护递归来模拟递归。我们定义了操作语义和指称语义,以及两者之间的关系。这种关系可以用来证明充分性,但我们也展示了如何用它来推理程序,直至上下文等价。据我们所知,这是第一个在构造型理论中使用概率选择和递归类型的编程语言模型。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Modelling Probabilistic FPC in Guarded Type Theory
Constructive type theory combines logic and programming in one language. This is useful both for reasoning about programs written in type theory, as well as for reasoning about other programming languages inside type theory. It is well-known that it is challenging to extend these applications to languages with recursion and computational effects such as probabilistic choice, because these features are not easily represented in constructive type theory. We show how to define and reason about a programming language with probabilistic choice and recursive types, in guarded type theory. We use higher inductive types to represent finite distributions and guarded recursion to model recursion. We define both operational and denotational semantics, as well as a relation between the two. The relation can be used to prove adequacy, but we also show how to use it to reason about programs up to contextual equivalence. To the best of our knowledge, this is the first model of a programming language with probabilistic choice and recursive types in a constructive type theory.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Repr Types: One Abstraction to Rule Them All $μλεδ$-Calculus: A Self Optimizing Language that Seems to Exhibit Paradoxical Transfinite Cognitive Capabilities Expressing and Analyzing Quantum Algorithms with Qualtran Conversational Concurrency The MLIR Transform Dialect. Your compiler is more powerful than you think
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1