Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Question about notations

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Question about notations


Chronological Thread 
  • From: Jason Gross <jasongross9 AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Question about notations
  • Date: Sat, 9 Nov 2013 23:53:55 -0500

Hi,
Is there a good explanation somewhere of the level requirements for notations to factor properly?  For example, what level do I have can I substitute in for "L" in the following to make the code type-check?

Delimit Scope foo_scope with foo.
Notation "x , y" := (prod x y) (at level L, no associativity) : foo_scope.
Check (_, _). (* should be pair *)
Local Open Scope foo_scope.
Check _, _. (* should be prod *)

I've tried L = 200, and then the second check fails.  I've tried L = 199, and then the first check fails.  Is there any way to make this work?

-Jason



Archive powered by MHonArc 2.6.18.

Top of Page