Skip to Content.
Sympa Menu

coq-club - [Coq-Club] integer constant notation

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] integer constant notation


chronological Thread 
  • From: Andrew McCreight <andrew.mccreight AT yale.edu>
  • To: coq-club AT pauillac.inria.fr
  • Subject: [Coq-Club] integer constant notation
  • Date: Tue, 18 Dec 2007 07:41:17 -0500 (EST)
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hello,

Is there some way to declare my own custom interpretation of integer constants in a scope, as are available in the nat and Z scopes? If I have a function Z_to_foo : Z -> foo, I'd like to be able to make, for instance, "4" automatically intepreted as "Z_to_foo 4" in a particular context. I looked around on the manual and the nat and Z libraries but couldn't find anything. Coercions sort of do what I want, but it doesn't seem like you can tie them to particular notation scopes. Or is this how nat and Z do it? Thanks!

-Andrew





Archive powered by MhonArc 2.6.16.

Top of Page