coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Xavier Leroy <Xavier.Leroy AT inria.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Rewrite does not work
- Date: Wed, 30 Jul 2014 19:26:23 +0200
On 29/07/14 16:28, Enrico Tassi wrote:
> Let me add that there is no good reason for the tactic to fail here.
> If "list ..." and "sf" are convertible then they are the very same term.
Hear, hear!
> In the implementation of the rewrite tactic that is part of ssreflect
> the conversion relation is taken into account.
Good to know. Maybe I should defect to the other side :-)
More seriously, this issue with "rewrite" has been making my life
miserable since I started working on CompCert 10 years ago, and it is
still a major trap for beginners. Could we hope to have it fixed once
and for all? To me, that would be about as valuable as all the
changes planned for Coq 8.5 combined...
While we are at it, "rewrite" is not the only tactic that is dumb
w.r.t. convertibility of types. "omega" is also easily confused:
Definition offset := Z.
Goal forall x, @eq offset (x + 0) 0.
Proof. intros; omega.
(* Error: Omega can’t solve this system *)
That makes me sad.
- Xavier
- [Coq-Club] Rewrite does not work, Marcus Ramos, 07/27/2014
- Re: [Coq-Club] Rewrite does not work, Jonathan, 07/27/2014
- Re: [Coq-Club] Rewrite does not work, AUGER Cédric, 07/27/2014
- Re: [Coq-Club] Rewrite does not work, Jonathan, 07/27/2014
- Re: [Coq-Club] Rewrite does not work, Pierre-Marie Pédrot, 07/28/2014
- Re: [Coq-Club] Rewrite does not work, Marcus Ramos, 07/29/2014
- Re: [Coq-Club] Rewrite does not work, Cedric Auger, 07/29/2014
- Re: [Coq-Club] Rewrite does not work, Enrico Tassi, 07/29/2014
- Re: [Coq-Club] Rewrite does not work, Xavier Leroy, 07/30/2014
- Re: [Coq-Club] Rewrite does not work, Jonathan, 07/30/2014
- Re: [Coq-Club] Rewrite does not work, Xavier Leroy, 07/31/2014
- Re: [Coq-Club] Rewrite does not work, Jonathan, 07/31/2014
- Re: [Coq-Club] Rewrite does not work, Jason Gross, 07/31/2014
- Re: [Coq-Club] Rewrite does not work, Jonathan, 07/31/2014
- Re: [Coq-Club] Rewrite does not work, Randy Pollack, 07/31/2014
- Re: [Coq-Club] Rewrite does not work, Jonathan, 07/30/2014
- Re: [Coq-Club] Rewrite does not work, Thomas Braibant, 07/31/2014
- Re: [Coq-Club] Rewrite does not work, Maxime Dénès, 07/31/2014
- Re: [Coq-Club] Rewrite does not work, Jonathan, 07/31/2014
- Re: [Coq-Club] Rewrite does not work, Xavier Leroy, 07/30/2014
- Re: [Coq-Club] Rewrite does not work, Enrico Tassi, 07/29/2014
- Re: [Coq-Club] Rewrite does not work, Cedric Auger, 07/29/2014
- Re: [Coq-Club] Rewrite does not work, Laurence Rideau, 07/31/2014
Archive powered by MHonArc 2.6.18.