coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: t x <txrev319 AT gmail.com>
- To: coq-club <coq-club AT inria.fr>
- Subject: [Coq-Club] Using Notation + Scope
- Date: Sat, 21 Sep 2013 13:43:12 +0000
Hi,
I'm trying to use Notation together with Scopes.Inductive foo := fA | fB.
Variable fAdd : foo -> foo -> foo.
Notation "A + B" := (fAdd A B) : foo_scope.
Check (fA + fB) % foo_scope.
>>> Error: Unknown scope delimiting key foo_scope.
How should I fix this? I'm rather baffled -- % foo_scope should mean that the "+" uses the Notation defined above, to be fAdd. Furthermore, the Notation line should have defined scope foo_scope and added a notation to it.
What am I doing wrong?
Thanks!
Thanks!
- [Coq-Club] Using Notation + Scope, t x, 09/21/2013
- Re: [Coq-Club] Using Notation + Scope, Vincent Laporte, 09/21/2013
- Re: [Coq-Club] Using Notation + Scope, t x, 09/21/2013
- Re: [Coq-Club] Using Notation + Scope, t x, 09/21/2013
- Re: [Coq-Club] Using Notation + Scope, t x, 09/21/2013
- Re: [Coq-Club] Using Notation + Scope, Vincent Laporte, 09/21/2013
Archive powered by MHonArc 2.6.18.