coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Frédéric Besson <frederic.besson AT inria.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Rewrite does not work
- Date: Thu, 31 Jul 2014 19:33:32 +0200
Hi Xavier,
On 30 juil. 2014, at 19:26, Xavier Leroy
<Xavier.Leroy AT inria.fr>
wrote:
> 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:
For lia, I had this convertibility thing on my todo list for a (very) long
time.
just pushed the fix in trunk.
> Definition offset := Z.
> Goal forall x, @eq offset (x + 0) 0.
> Proof. intros; omega.
> (* Error: Omega can’t solve this system *)
Now, lia can prove goals such as
Require Import Lia.
Definition offset := Z.
Goal forall x, @eq offset (x + 0) x.
Proof. intros ; lia. Qed.
> Why not just a conversion check instead of "normalize (incompletely)
> then test for equality"? What could possibly go wrong?
This is what I have implemented. I would certainly be glad to know if this «
could possibly go wrong »
Maybe the conversion could run forever ?
Btw, in the previous Goal, what is the type given by coq to (x+0) or x ? Z or
offset…
—
Frédéric
- Re: [Coq-Club] Rewrite does not work, (continued)
- 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, Thomas Braibant, 07/31/2014
- Re: [Coq-Club] Rewrite does not work, Jonathan, 07/30/2014
- Re: [Coq-Club] Rewrite does not work, Xavier Leroy, 07/30/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
- 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, Marcus Ramos, 07/29/2014
- Message not available
- 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, Marcus Ramos, 07/29/2014
Archive powered by MHonArc 2.6.18.