Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Induction on size of derivations?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Induction on size of derivations?


chronological Thread 
  • 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



Archive powered by MhonArc 2.6.16.

Top of Page