Skip to Content.
Sympa Menu

coq-club - [Coq-Club] subst tactic and parameters

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] subst tactic and parameters


Chronological Thread 
  • From: Denis Cousineau <cousineau AT lix.polytechnique.fr>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] subst tactic and parameters
  • Date: Mon, 9 Jul 2012 15:03:04 +0200

Dear coq-clubbers,

I've found that the tactic subst only works with equations in contexts that
concern variables that were quantified in the goal, and not global parameters.

For example :

(************************************)
Lemma goal : forall a:nat, a= 42 -> a <= a.
Proof.
intros.
subst.
(************************************)


works (the goal becomes 42 <= 42)

while

(************************************)
Parameter a:nat.

Lemma goal : a= 42 -> a <= a.
Proof.
intros.
subst.
(************************************)

does not work (the goal is not rewritten into 42 <= 42).

Is this a bug or a feature ?

Does anyone has a hint to bypass this problem ?

Thanks,


--
Denis Cousineau




Archive powered by MHonArc 2.6.18.

Top of Page