coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Ralf Jung <jung AT mpi-sws.org>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Printing-only notation
- Date: Sat, 4 Jun 2016 18:50:15 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jung AT mpi-sws.org; spf=Pass smtp.mailfrom=jung AT mpi-sws.org; spf=None smtp.helo=postmaster AT hera.mpi-klsb.mpg.de
- Ironport-phdr: 9a23:WA2cohxb4EoANuTXCy+O+j09IxM/srCxBDY+r6Qd0ekXIJqq85mqBkHD//Il1AaPBtWKrawZwLOO7ejJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6DyZrqnLnqpdX6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD86Fpy8kVWqLjOq88ULZwDTI8Mmlz6te4mwPESF61738SGkcLlBUAVwrY6h7SW4/w9zDlrax6wibMbp6+dqw9RTn3t/QjcxTvkipSbzM=
Hi all,
Is there any way in Coq to have a "printing-only" notation? There is
"only parsing", but "only printing" does not seem possible right now.
Such a flag would be nice to have for notations that, if made "parsing",
trigger some horrible conflicts. If these constructions mostly appear
as intermediate state, even if the notation cannot be written, it makes
the current goal much more readable. Another use case is an "embedded
proof mode", where we want to render our own "named context" (because
there is some structure there which makes it impossible to use Coq's
context). We never want to write these contexts, but when displayed,
they should be rendered as closely as possible to Coq's context.
Right now, we use some horrible hacks Robbert came up with that involve
"zero-width whitespaces" as keywords for the notation, so that Coq
accepts it and does not create conflicts all over the place. This is
very confusing when editing the file that defines the notation, and even
worse, some editors (like emacs) actually display such "zero-width"
character as just having "almost zero width", so the alignment of
characters is just a few pixels off.
Having "printing only" notation would very useful.
Kind regards,
Ralf
- [Coq-Club] Printing-only notation, Ralf Jung, 06/04/2016
Archive powered by MHonArc 2.6.18.