coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Michael Day <mikeday AT yeslogic.com>
- To: Hugo Herbelin <hugo.herbelin AT inria.fr>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club] Stack overflow on large nats
- Date: Wed, 26 Mar 2008 12:17:37 +1100
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Hi Hugo,
Yes, most functions of Coq (the type-checker, the printer, and most
auxiliary functions) are simply recursive. Rewriting all of them
tail-recursively would increase the complexity of the code for a
limited benefice since after all most use of large numbers is for
computation and binary numbers are for this purpose much more
efficient.
That makes a lot of sense. One issue I've found is that most examples use nat, for example the Coq'Art book uses nat exclusively. Moving to N can be a bit jarring for a beginner as the transition is not seamless; the < operator must be replaced with Ncompare or ?= for example.
Another question: is there any way to use hexadecimal integer literals? Perhaps some kind of notation trick?
Best regards,
Michael
--
Print XML with Prince!
http://www.princexml.com
- [Coq-Club] Stack overflow on large nats, Michael Day
- Re: [Coq-Club] Stack overflow on large nats,
Hugo Herbelin
- Re: [Coq-Club] Stack overflow on large nats, Michael Day
- Re: [Coq-Club] Stack overflow on large nats,
Hugo Herbelin
Archive powered by MhonArc 2.6.16.