coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonathan <jonikelee AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Rewrite does not work
- Date: Wed, 30 Jul 2014 14:11:45 -0400
On 07/30/2014 01:26 PM, Xavier Leroy wrote:
On 29/07/14 16:28, Enrico Tassi wrote:
Let me add that there is no good reason for the tactic to fail here.Hear, hear!
If "list ..." and "sf" are convertible then they are the very same term.
In the implementation of the rewrite tactic that is part of ssreflectGood to know. Maybe I should defect to the other side :-)
the conversion relation is taken into account.
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
How about this stop-gap proposal: define an unfold hint db to which users can add their own hints, and which is used by Coq in cases like rewrite and omega (and I'm sure plenty of others). Or, slightly better - have a setting like "Add Implicit Autounfolds dbname" so that multiple different hint dbs can be used.
-- Jonathan
- [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
- Re: [Coq-Club] Rewrite does not work, Frédéric Besson, 07/31/2014
Archive powered by MHonArc 2.6.18.