Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Using Notation + Scope

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Using Notation + Scope


Chronological Thread 
  • 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.

  The following is a minimal example which fails


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!



Archive powered by MHonArc 2.6.18.

Top of Page