coq-club AT inria.fr
Subject: The Coq mailing list
List archive
Re: [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?
Chronological Thread
- From: Adam Chlipala <adamc AT csail.mit.edu>
- To: Michiel Helvensteijn <mhelvens AT gmail.com>
- Cc: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?
- Date: Fri, 19 Jul 2013 13:26:03 -0400
On 07/19/2013 01:23 PM, Michiel Helvensteijn wrote:
Take this simplified example of my own situation:
Inductive Test1 := t1list : list Test2 -> Test1
with Test2 := t2item : Test1 -> Test2.
Now I want to define a simple property on it, such as:
Require Import Coq.Lists.List.
Fixpoint short_lists1 t : Prop :=
match t with t1list lst =>
length lst< 10 /\
Forall (fun t2 => short_lists2 t2) lst
end
with short_lists2 t : Prop :=
match t with t2item t1 => short_lists1 t1 end.
Coq won't accept it, because I'm attempting structural reduction
through both `Test1` and `list`.
I think if you define a variant of [Forall] based on recursion instead of induction, this will just work, since the termination checking understands the former but not the latter.
- [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?, Michiel Helvensteijn, 07/19/2013
- Re: [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?, Adam Chlipala, 07/19/2013
- Re: [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?, Michiel Helvensteijn, 07/19/2013
- Re: [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?, Daniel Schepler, 07/19/2013
- Re: [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?, Michiel Helvensteijn, 07/19/2013
- Re: [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?, Daniel Schepler, 07/19/2013
- Re: [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?, Michiel Helvensteijn, 07/19/2013
- Re: [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?, Daniel Schepler, 07/19/2013
- Re: [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?, Michiel Helvensteijn, 07/19/2013
- [Coq-Club] Re: Proving structural reduction of an inductive type which is defined in terms of another?, Michiel Helvensteijn, 07/19/2013
- Re: [Coq-Club] Proving structural reduction of an inductive type which is defined in terms of another?, Adam Chlipala, 07/19/2013
Archive powered by MHonArc 2.6.18.