coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonas Oberhauser <s9joober AT gmail.com>
- To: Matthieu Sozeau <matthieu.sozeau AT gmail.com>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] replace ... at?
- Date: Fri, 05 Oct 2012 01:58:17 +0200
Am 04.10.2012 16:46, schrieb Matthieu Sozeau:
On 4 oct. 2012, at 09:54, Jonas Oberhauser
<s9joober AT gmail.com>
wrote:
Hi all,Hi,
is there such a thing like a replace at?
Goal forall X (x y : X) P, P x y -> x = y -> P x x.
intros.
replace x with y at 2. (* doesn't work ? *)
rewrite H at 2. (* supposedly requries Setoid ? *)
indeed the at requires Setoid, and there is a variant
[setoid_replace] defined in theories/Classes/SetoidTactics.v.
It will rewrite with standard leibniz equality just as well
as rewrite.
Best,
-- Matthieu
Thanks a lot! This is interesting. Why is that?
Kind regards, jonas
- [Coq-Club] replace ... at?, Jonas Oberhauser, 10/04/2012
- Re: [Coq-Club] replace ... at?, Lucian M. Patcas, 10/04/2012
- Re: [Coq-Club] replace ... at?, Jonas Oberhauser, 10/05/2012
- Re: [Coq-Club] replace ... at?, Matthieu Sozeau, 10/04/2012
- Re: [Coq-Club] replace ... at?, Jonas Oberhauser, 10/05/2012
- Re: [Coq-Club] replace ... at?, Lucian M. Patcas, 10/04/2012
Archive powered by MHonArc 2.6.18.