Skip to Content.
Sympa Menu

coq-club - [Coq-Club] an issue with notations

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] an issue with notations


chronological Thread 
  • From: Vladimir Voevodsky <vladimir AT ias.edu>
  • To: Coq-Club Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] an issue with notations
  • Date: Sun, 17 Apr 2011 11:12:09 -0400

Hello,

I am trying to learn the Coq system for notations. When I write:


Notation "'total2'" := (@sigT) (at level 0): type_scope. 
Notation "'tpair'" := (@existT) (at level 0) : type_scope.


Definition pr21 (T:UU) (P:T -> UU) (z: total2 T P) : T := 
match z with 
tpair t x => t
end.  


Coq complains at the definition by saying "Constructor expected". What is 
wrong there?

Vladimir.







Archive powered by MhonArc 2.6.16.

Top of Page