coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Randy Pollack <rpollack AT inf.ed.ac.uk>
- To: Coq-Club Club <coq-club AT inria.fr>
- Subject: [Coq-Club] Induction on size of derivations?
- Date: Fri, 4 Nov 2011 16:53:44 -0400
I have some inductively defined set, say of terms
Inductive Term : Set := ...
and some inductively defined relation, say of reduction
Inductive Red : Term -> Term -> Prop := ...
I want to do induction on the size of derivations of the Red relation.
So I try to define
Fixpoint RedSize : (M N: Term) (r:Red M N) {struct r} : nat :=
match r with ...
end.
This fails, because Red is a Prop, not a Set. How is this usually done?
One could index the relation Red with size, as is necessary in (simply
typed) HOL, but it seems we should do better with dependent types.
Thanks,
Randy
- [Coq-Club] Induction on size of derivations?, Randy Pollack
- Re: [Coq-Club] Induction on size of derivations?, Christine Paulin
- Re: [Coq-Club] Induction on size of derivations?, Jean-Francois Monin
- Re: [Coq-Club] Induction on size of derivations?, Thorsten Altenkirch
Archive powered by MhonArc 2.6.16.