coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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
- [Coq-Club] subst tactic and parameters, Denis Cousineau, 07/09/2012
- Re: [Coq-Club] subst tactic and parameters, Adam Chlipala, 07/09/2012
- Re: [Coq-Club] subst tactic and parameters, Denis Cousineau, 07/09/2012
- Re: [Coq-Club] subst tactic and parameters, AUGER Cédric, 07/09/2012
- Re: [Coq-Club] subst tactic and parameters, Adam Chlipala, 07/09/2012
Archive powered by MHonArc 2.6.18.