Skip to Content.
Sympa Menu

coq-club - [Coq-Club] [Reserved Notation] and [Record]

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] [Reserved Notation] and [Record]


chronological Thread 
  • 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



Archive powered by MhonArc 2.6.16.

Top of Page