coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Michael Shulman <shulman AT sandiego.edu>
- To: "coq-club AT inria.fr" <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] mathematical function notation
- Date: Wed, 4 Nov 2015 08:00:34 -0800
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=viritrilbia AT gmail.com; spf=Pass smtp.mailfrom=viritrilbia AT gmail.com; spf=None smtp.helo=postmaster AT mail-lf0-f43.google.com
- Ironport-phdr: 9a23:Jc9cBBPAgItN0xSK/NEl6mtUPXoX/o7sNwtQ0KIMzox0KPr6rarrMEGX3/hxlliBBdydsKIZzbGO+P+wEUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35nxjLj5pM2bSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/JHBO/xeL19RrhFBhwnNXo07Yvlr1OLGQCI/z4XVngcuhtOGQnMqh/gCMTfqCz/48980ymTMMm+drApXTGr6e8/Ux/1jCIOMRYi+Wfbi8F/i+RWrA/39E83+JLdfIzAbKk2RajaZ95PHWc=
On Tue, Nov 3, 2015 at 8:45 PM, Clément Pit--Claudel
<clement.pit AT gmail.com>
wrote:
> Notation "f ( x )" := (f x) (at level 1, format "f ( x )").
>
> Definition Linear f := forall x y, f(x + y) = f(x) + f(y).
> Print Linear.
This does work on its own. However, it also clobbers Coq's parsing
for ever after. For instance, once Coq starts seeing "f ( x )" as a
notation, it can't parse any more notations with levels or formats:
Notation "f ( x )" := (f x) (at level 1, format "f ( x )").
Notation "x ++ y" := (plus x y) (at level 80).
(* Syntax error: [constr:operconstr level 200] expected after '(' (in
[constr:operconstr]). *)
Nor can I any longer write f(x,y) in the two-variable case, I have to
write f((x,y)). And I can't define a new notation for that like
Notation "f ( x , y )" := (f (pair x y)) (at level 1, format "f ( x , y )").
since, as noted above, I can't define any more notations with levels or
formats.
Mike
- [Coq-Club] mathematical function notation, Michael Shulman, 11/04/2015
- Re: [Coq-Club] mathematical function notation, Clément Pit--Claudel, 11/04/2015
- Re: [Coq-Club] mathematical function notation, Cedric Auger, 11/04/2015
- Message not available
- Re: [Coq-Club] mathematical function notation, Michael Shulman, 11/04/2015
- Re: [Coq-Club] mathematical function notation, Michael Shulman, 11/04/2015
- Re: [Coq-Club] mathematical function notation, Michael Shulman, 11/04/2015
- Message not available
- Re: [Coq-Club] mathematical function notation, Michael Shulman, 11/04/2015
- Re: [Coq-Club] mathematical function notation, Cedric Auger, 11/04/2015
- Re: [Coq-Club] mathematical function notation, Pierre-Marie Pédrot, 11/05/2015
- Message not available
- Re: [Coq-Club] mathematical function notation, Michael Shulman, 11/05/2015
- Re: [Coq-Club] mathematical function notation, Michael Shulman, 11/09/2015
- Re: [Coq-Club] mathematical function notation, Michael Shulman, 11/05/2015
- Re: [Coq-Club] mathematical function notation, Cedric Auger, 11/04/2015
- Re: [Coq-Club] mathematical function notation, Michael Shulman, 11/04/2015
Archive powered by MHonArc 2.6.18.