Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Bound variables in induction hypotheses

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Bound variables in induction hypotheses


chronological Thread 
  • From: Edsko de Vries <edskodevries AT gmail.com>
  • To: Thomas Th�m <thomas.thuem AT st.ovgu.de>
  • Cc: <coq-club AT pauillac.inria.fr>
  • Subject: Re: [Coq-Club] Bound variables in induction hypotheses
  • Date: Wed, 2 Sep 2009 16:12:18 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi Thomas,

You're applying the induction hypothesis too late. If you do

Lemma preservationOfSubstitution: forall (G:context) (x:termType) (t s:term)
   (T S:type),
   typing ((x, S) :: G) t T ->
   typing G s S ->
   typing G (termSubst x s t) T.
Proof.
  induction t.

instead of doing itnros first, you'll find that the T in the induction hypothesis is universally quantified.

Generally, if you do induction over something, you should avoid introducing unnecessary other variables first as your induction hypothesis might not be useable.

Hope that helps,

Edsko





Archive powered by MhonArc 2.6.16.

Top of Page