coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: "Patricia Peratto" <psperatto AT adinet.com.uy>
- To: "coqclub" <coq-club AT inria.fr>
- Subject: [Coq-Club] problem with recursion op
- Date: Sat, 7 Apr 2012 14:00:21 -0300
Hello, I have defined the list inductive set in the
following way:
Inductive List :forall(A:Type),Type :=
|nil : forall(A:Type),List A |cons :forall(A:Type)(a:A)(l:(List A)),List A. The corresponding recursive operator is
List_rect : forall P: forall A:Type, List A ->
Type,
(forall A:Type, P A (nil A)) -> (forall (A:Type) (a:A)(l:List A), P A l -> P A (cons A a l)) -> forall (A:Type)(l:List A), P A l I want to define the function map using List_rect
and with
the type that I show below: Definition map : forall (A
B:Type)(F:A->B)
(l:List A), List B :- ............ I have tried different ways but I couldn´t define
it.
Can someone help me with this
definition?
Regards,
Patricia Peratto |
- [Coq-Club] problem with recursion op, Patricia Peratto
- Re: [Coq-Club] problem with recursion op,
gallais @ ensl.org
- Re: [Coq-Club] problem with recursion op,
Daniel Schepler
- Re: [Coq-Club] problem with recursion op, AUGER Cédric
- Re: [Coq-Club] problem with recursion op,
Daniel Schepler
- Re: [Coq-Club] problem with recursion op,
gallais @ ensl.org
Archive powered by MhonArc 2.6.16.