coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Laurent Thery <Laurent.Thery AT inria.fr>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] proving a simple equality
- Date: Mon, 21 Nov 2016 14:01:51 +0100
On 11/20/2016 10:07 PM, noam neer wrote:
thanks.
however I just tried to use the same trick in a different goal and it
didn't work -
Goal Rpower 2 3 = 8.
change 3 with (INR 3).
Error: Not convertible.
why didn't it work here ?
Numbers are encoded in R with 0 and 1
Compare
Check (1 + ((1 + 1) * 5)).
with
Compute (INR 11).
So now INR 11 = 11 is not a conversion anymore, you have to prove the replacement. For example:
replace (INR 11) with (11%R) by (simpl; ring).
--
Laurent
--
Laurent
- [Coq-Club] proving a simple equality, noam neer, 11/19/2016
- Re: [Coq-Club] proving a simple equality, Laurent Thery, 11/19/2016
- Re: [Coq-Club] proving a simple equality, noam neer, 11/20/2016
- Re: [Coq-Club] proving a simple equality, Gaetan Gilbert, 11/21/2016
- Re: [Coq-Club] proving a simple equality, Laurent Thery, 11/21/2016
- Re: [Coq-Club] proving a simple equality, noam neer, 11/22/2016
- [Coq-Club] Re : Re: proving a simple equality, Laurent Thery, 11/22/2016
- Re: [Coq-Club] proving a simple equality, Guillaume Melquiond, 11/22/2016
- Re: [Coq-Club] proving a simple equality, noam neer, 11/22/2016
- Re: [Coq-Club] proving a simple equality, noam neer, 11/20/2016
- Re: [Coq-Club] proving a simple equality, Laurent Thery, 11/19/2016
Archive powered by MHonArc 2.6.18.