coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: megacz AT cs.berkeley.edu
- To: coq-club AT inria.fr
- Subject: [Coq-Club] [Reserved Notation] and [Record]
- Date: Sun, 14 Mar 2010 08:52:24 +0100
Coq will let me use a notation in the definition of an inductive type:
Reserved Notation "a &&& b" (at level 50).
Inductive And (A B:Prop) : Prop :=
conj : A -> B -> A &&& B
where "a &&& b" := (And a b).
... but does not seem to let me do the same thing for a Record type:
Reserved Notation "a &&& b" (at level 50).
Record And (A B:Prop) := {
foo : Prop -> Prop -> Prop ;
conj : A -> B -> A &&& B -> Prop
} where "a &&& b" := (foo a b).
Is there any way to use a notation within the Record that defines terms
used in the expansion of the Notation?
- a
- [Coq-Club] [Reserved Notation] and [Record], megacz
- Re: [Coq-Club] [Reserved Notation] and [Record],
Ian Lynagh
- Re: [Coq-Club] [Reserved Notation] and [Record], AUGER Cédric
- Re: [Coq-Club] [Reserved Notation] and [Record],
AUGER Cédric
- [Coq-Club] Re: [Reserved Notation] and [Record], Adam Megacz
- Re: [Coq-Club] [Reserved Notation] and [Record],
Ian Lynagh
Archive powered by MhonArc 2.6.16.