Skip to Content.
Sympa Menu

coq-club - [Coq-Club] right-associative recursive notation for tuple type

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] right-associative recursive notation for tuple type


Chronological Thread 
  • From: Jonathan Leivent <jonikelee AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] right-associative recursive notation for tuple type
  • Date: Sun, 21 Dec 2014 14:01:21 -0500

I'm attempting to create a right-associative recursive notation for a tuple-like type, and can't get it to work. Can someone please tell me what I'm doing wrong?

Inductive prod' (A B:Type) : Type :=
pair' : A -> B -> prod' A B.

Arguments pair' {A} {B} a b.

Notation "( x ~ .. ~ y ~ z )" :=
(pair' x .. (pair' y z) .. ) (at level 0).

Definition tuptest := ( 1 ~ 2 ~ 3 ). (*produces a syntax error*)

I've tried several different operators, including %, &, \, #, and some Math characters as well, but nothing worked.

-- Jonathan




Archive powered by MHonArc 2.6.18.

Top of Page