coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Benjamin Werner <Benjamin.Werner AT inria.fr>
- To: hxm AT cc.kyoto-su.ac.jp (Hiroyuki Miyoshi)
- Cc: coq-club AT pauillac.inria.fr, hxm AT cc.kyoto-su.ac.jp
- Subject: Re: mutually-defined Records
- Date: Mon, 22 Jan 2001 17:52:51 +0100 (MET)
Hello,
> I am using V.6.3.1 to define some higher-dimensional algebras
> and feel inconvenience of lacking for mutually-defined Records
> (definable as a macro of "Inductive ... with").
> Is that syntax planned to be provided?
If I understand you well (correct me if I am worng), you would like to
have something like (I simplify) a definition of lists where
cons : A*list -> list
and at the same time, the product * be replaced by a record notation
(which would be specific to this version of lists).
It does seem reasonable, but I admit not having felt this need for
myself yet. I guess if the demand becomes general it should be
implemented.
Note BTW that (at least in my simple example) you do not strictly need
"Inductive with". For instance, the following definition is correct:
Inductive list [A:Set] : Set :=
nil : (list A)
| cons : (A*(list A))->(list A).
Best wishes,
Benjamin
- mutually-defined Records, Hiroyuki Miyoshi
- Re: mutually-defined Records, Benjamin Werner
- Re: mutually-defined Records,
Christine Paulin
- Re: mutually-defined Records, Hiroyuki Miyoshi
Archive powered by MhonArc 2.6.16.