coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Fabien Renaud <Fabien.Renaud AT inria.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] How to talk about a restricted set of an inductive?
- Date: Thu, 3 Oct 2013 13:17:29 +0200
This is an illustration of my problem and in my case I cannot change it.
On Thu, Oct 3, 2013 at 12:44 PM, Rui Baptista <rpgcbaptista AT gmail.com> wrote:
If you're willing to change "Base l: NList_ 0 l" to "Base: NList_ 0 nil", you can do it like so:Goal forall A l n, @NList_ A n l -> length l = n.Proof. induction 1. reflexivity. subst. reflexivity. Defined.On Thu, Oct 3, 2013 at 11:01 AM, Fabien Renaud <Fabien.Renaud AT inria.fr> wrote:
forall l n, NList_ n l -> length l = n?Is there a way to state properties about NList_ created by NList likeNow I want to start building NList_ such that the first argument is always the length of the list:Hello,The subject of my question is not very clear but my problem yes:
For the illustration, suppose I have this (weird) inductive:
Inductive NList_ {A : Type} : nat -> list A -> Type :=
| Base l: NList_ 0 l
| Cons n l a: NList_ n l -> NList_ (S n) (a::l).
Definition NList {A : Type} (l : list A) := NList_ (length l) l.Thanks,Fabien
- [Coq-Club] How to talk about a restricted set of an inductive?, Fabien Renaud, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Rui Baptista, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Fabien Renaud, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Rui Baptista, 10/03/2013
- Message not available
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Fabien Renaud, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Robbert Krebbers, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Robbert Krebbers, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Fabien Renaud, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Rui Baptista, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Robbert Krebbers, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Fabien Renaud, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Cedric Auger, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Jonas Oberhauser, 10/04/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Fabien Renaud, 10/04/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Jean-Francois Monin, 10/04/2013
- Message not available
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Rui Baptista, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Fabien Renaud, 10/03/2013
- Re: [Coq-Club] How to talk about a restricted set of an inductive?, Rui Baptista, 10/03/2013
Archive powered by MHonArc 2.6.18.