Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Fwd: intros x [H1 | H1]

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Fwd: intros x [H1 | H1]


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




Archive powered by MHonArc 2.6.18.

Top of Page