coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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
- [Coq-Club] Bound variables in induction hypotheses, Thomas Thüm
- Re: [Coq-Club] Bound variables in induction hypotheses, Edsko de Vries
- Re: [Coq-Club] Bound variables in induction hypotheses, Cedric Auger
- Re: [Coq-Club] Bound variables in induction hypotheses, Edsko de Vries
Archive powered by MhonArc 2.6.16.