coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Iain Whiteside <Iain.Whiteside AT newcastle.ac.uk>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: [Coq-Club] Partial functions in Coq
- Date: Thu, 25 Sep 2014 15:31:23 +0000
- Accept-language: en-GB, en-US
Dear all,
I am investigating the ways in which different theorem provers handle
undefinedness. In Isabelle, for example, 5/0 is represented as some number,
but we cannot reason about it; alternatively, partial functions can be
encoded in a monad (None | Some x).
I’d be interested to hear what is the (if any) canonical way of representing
partiality in Coq and pCiC? For example, how could a recursive difference
function like below (deliberately partial) be represented?
diff (i,j) = if i = y then 0 else diff(i+1,j) + 1
additionally, could a theorem such as
forall i j. diff(i,j) = i - j \/ diff(j,i) = j - i
Many thanks in advance,
Iain
- [Coq-Club] Partial functions in Coq, Iain Whiteside, 09/25/2014
- Re: [Coq-Club] Partial functions in Coq, Pierre Courtieu, 09/25/2014
- Re: [Coq-Club] Partial functions in Coq, Rui Baptista, 09/26/2014
Archive powered by MHonArc 2.6.18.