coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Robbert Krebbers <mailinglists AT robbertkrebbers.nl>
- To: t x <txrev319 AT gmail.com>
- Cc: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Defining -3, -2, -1, 0, 1, 2, 3, ... in Coq
- Date: Fri, 11 Oct 2013 00:12:07 +0200
On 10/11/2013 12:03 AM, t x wrote:
Is there a way I can, using only a finite number of lines, map ..., -3,You can define a coercion from the integers Z to your own type (but I am not sure whether that always works well when combined with a notation scope for your own integer type).
-2, -1, 0, 1, 2, 3, ... to my own definition of Int?
(or does this require delving down into the level of ocaml)
Alternatively, you can use a plug-in written in Ocaml, see
plugins/syntax/z_syntax.ml
in the Coq source tree for an example.
- [Coq-Club] Defining -3, -2, -1, 0, 1, 2, 3, ... in Coq, t x, 10/11/2013
- Re: [Coq-Club] Defining -3, -2, -1, 0, 1, 2, 3, ... in Coq, Robbert Krebbers, 10/11/2013
Archive powered by MHonArc 2.6.18.