coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Robbert Krebbers <mailinglists AT robbertkrebbers.nl>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Fwd: intros x [H1 | H1]
- Date: Tue, 04 Jun 2013 23:26:22 +0200
On 06/04/2013 11:11 PM, AUGER Cédric wrote:
I think lot of us will discourage you to use this feature. But I findI would discourage this!
it often convenient.
What happens here is that we just eliminate the equality, hence:
* 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.
* 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 [].
gives "H1 : 2 = x" instead of "H1 : 2 = 1".
So, for people that do not fully understanding how elimination of equality works, this trick would be pretty confusing...
Same for "False → P"I have no problems using an intro pattern here.
- [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.