coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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
- [Coq-Club] right-associative recursive notation for tuple type, Jonathan Leivent, 12/21/2014
- Re: [Coq-Club] right-associative recursive notation for tuple type, Jason Gross, 12/21/2014
Archive powered by MHonArc 2.6.18.