coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jason Gross <jasongross9 AT gmail.com>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Getting [where] notation to work in [Record]s
- Date: Sat, 28 Jul 2012 09:22:04 -0400
Hi,
I'm trying to get [where] notation working in [Record]s. If I do
Record foo := {
Obj : Type;
Times : Obj -> Obj -> Type;
Foo : forall A B : Obj, A * B where "A * B" := (Times A B)
}.
or
Record foo := {
Obj : Type;
Times : Obj -> Obj -> Type;
Foo : forall A B : Obj, A * B where "A * B" := (Times A B) : type_scope
}.
Coq tells me "The term "A" has type "Obj" while it is expected to have type
"Type"."
If I do
Reserved Notation "A *** B" (at level 70, B at next level, right associativity).
Record foo := {
Obj : Type;
Times : Obj -> Obj -> Type;
Foo : forall A B : Obj, A *** B where "A *** B" := (Times A B)
}.
then Coq tells me "Error: Unknown interpretation for notation "_ *** _"."
How can I get this working the way I want to?
Thanks.
-Jason
- [Coq-Club] Getting [where] notation to work in [Record]s, Jason Gross, 07/28/2012
- Re: [Coq-Club] Getting [where] notation to work in [Record]s, Matthieu Sozeau, 07/28/2012
Archive powered by MHonArc 2.6.18.