coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Arthur Azevedo de Amorim <arthur.aa AT gmail.com>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Predicative Church numerals
- Date: Wed, 13 Feb 2013 15:50:34 -0500
I was playing a little bit with predicative Church numerals
Definition nat := forall X : Type, (X -> X) -> X -> X.
Some functions are easy to define...
Definition plus (n m : nat) : nat :=
fun X f x => n X f (m X f x).
Definition mult (n m : nat) : nat :=
fun X f x => n X (m X f) x.
Definition exp (n m : nat) : nat :=
fun X f x => m (X -> X) (n X) f x.
... However, when trying to go one level up and code a tower of exponentials, I got stuck. Can it be done at all with a predicative encoding?
--
Arthur Azevedo de Amorim
- [Coq-Club] Predicative Church numerals, Arthur Azevedo de Amorim, 02/13/2013
- Re: [Coq-Club] Predicative Church numerals, Colm Bhandal, 02/14/2013
- Re: [Coq-Club] Predicative Church numerals, Arthur Azevedo de Amorim, 02/14/2013
- Message not available
- Re: [Coq-Club] Predicative Church numerals, Arthur Azevedo de Amorim, 02/14/2013
- Re: [Coq-Club] Predicative Church numerals, Colm Bhandal, 02/14/2013
Archive powered by MHonArc 2.6.18.