coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Arnaud Spiwack <aspiwack AT lix.polytechnique.fr>
- To: Robbert Krebbers <mailinglists AT robbertkrebbers.nl>
- Cc: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Fwd: intros x [H1 | H1]
- Date: Wed, 5 Jun 2013 10:21:58 +0200
* it performs the substitution rhs->lhs, instead of the "expected" lhs->rhs. For example:
Goal forall x, x = 1 -> x * x = 1.
intros x [].
yields the unprovable goal "x * x = x". The ordinary "intros x ?; subst." gives "1 * 1 = 1" which is at least provable.
I would guess the recommanded intro-pattern here, is the rewriting pattern: intros ? ->.
* it does not perform the substitution in earlier introduced hypotheses. For example:
Goal forall x, 2 = x -> 1 = x -> x * x = 1.
intros x H1 [].
Works for that too. But since we need backward rewriting this time: intros x H1 <-
Arnaud
- [Coq-Club] Fwd: intros x [H1 | H1], Marcus Ramos, 06/03/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], Valentin ROBERT, 06/03/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], AUGER Cédric, 06/04/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], Robbert Krebbers, 06/04/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], AUGER Cédric, 06/05/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], Robbert Krebbers, 06/05/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], Arnaud Spiwack, 06/05/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], AUGER Cédric, 06/05/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], Robbert Krebbers, 06/04/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], AUGER Cédric, 06/04/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], Adam Chlipala, 06/03/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], Marcus Ramos, 06/05/2013
- Re: [Coq-Club] Fwd: intros x [H1 | H1], Valentin ROBERT, 06/03/2013
Archive powered by MHonArc 2.6.18.