A Computational Cantor-Bernstein and Myhill's Isomorphism Theorem in Constructive Type Theory (Proof Pearl)

被引:0
|
作者
Forster, Yannick [1 ,2 ]
Jahn, Felix [2 ]
Smolka, Gert [2 ]
机构
[1] INRIA, Gallinette ProjectTeam, Nantes, France
[2] Univ Saarland, Saarbrucken, Germany
关键词
type theory; computability theory; constructive mathematics; constructive logic; Coq;
D O I
10.1145/3573105.3575690
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The Cantor-Bernstein theorem (CB) from set theory, stating that two sets which can be injectively embedded into each other are in bijection, is inherently classical in its full generality, i.e. implies the law of excluded middle, a result due to Pradic and Brown. Recently, Escardo has provided a proof of CB in univalent type theory, assuming the law of excluded middle. It is a natural question to ask which restrictions of CB can be proved without axiomatic assumptions. We give a partial answer to this question contributing an assumption-free proof of CB restricted to enumerable discrete types, i.e. types which can be computationally treated. In fact, we construct several bijections from injections: The first is by translating a proof of the Myhill isomorphism theorem from computability theory - stating that 1-equivalent predicates are recursively isomorphic - to constructive type theory, where the bijection is constructed in stages and an algorithm with an intricate termination argument is used to extend the bijection in every step. The second is also constructed in stages, but with a simpler extension algorithm sufficient for CB. The third is constructed directly in such a way that it only relies on the given enumerations of the types, not on the given injections. We aim at keeping the explanations simple, accessible, and concise in the style of a "proof pearl". All proofs are machine-checked in Coq but should transport to other foundations - they do not rely on impredicativity, on choice principles, or on large eliminations.
引用
收藏
页码:159 / 166
页数:8
相关论文
共 13 条