Skip to Content.
Sympa Menu

coq-club - [Coq-Club] On Notations

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] On Notations


chronological Thread 
  • From: ���� <hskiowa AT kaist.ac.kr>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] On Notations
  • Date: Sun, 28 Aug 2011 13:36:28 +0900 (KST)

Dear coq-club:

 

I ran the following code in CoqIde:

 

>>Notation "'atmost1' a : A , p" := (am1 (fun a:A=>p))
>> (at level 200, x ident, right associativity,
>>    format "'[' 'atmost1' '/ ' a : A , '/ ' p ']'").

>>

>>Lemma tt : forall (A:Type)(P:A->Prop), atmost1 a:A, P a.

 

only to find:

 

>>Syntax error: ':' expected after [constr:operconstr level 200] (in [constr:binder_constr]).

 

What's wrong?

I only followed the way "exists" notation was set up.

 

 

Hyung Sun Kim




Archive powered by MhonArc 2.6.16.

Top of Page