coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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
- [Coq-Club] Question about notations, Jason Gross, 11/10/2013
- Re: [Coq-Club] Question about notations, Perry E. Metzger, 11/10/2013
- Re: [Coq-Club] Question about notations, Gabriel Scherer, 11/10/2013
- [Coq-Club] Where is notation for numbers ( 2=S (S O) )defined?, Soegtrop, Michael, 11/11/2013
- Re: [Coq-Club] Where is notation for numbers ( 2=S (S O) )defined?, Robbert Krebbers, 11/11/2013
- Re: [Coq-Club] Question about notations, Perry E. Metzger, 11/10/2013
Archive powered by MHonArc 2.6.18.