coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Sylvie.Boldo AT inria.fr
- To: Thery Laurent <thery AT ns.di.univaq.it>
- Cc: coq-club AT pauillac.inria.fr
- Subject: Re: [Coq-Club]ring_simplify
- Date: Wed, 14 Mar 2007 16:47:13 +0100 (CET)
- List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
Hi,
Thanks for the replies ! I missed the reference to ring[H] in the manual.
Unfortunately, it solves the simplified example, but not the real one :°-(
Less simplified example:
--
Require Import Reals.
Variable f:R->R.
Hypothesis H: forall (a b:R), (f a*f b=f (a*b))%R.
Theorem toto: forall (a b c:R), (f(a)*(f(a)-b)+b*f(a)=f(a*a))%R.
--
I would have to use ring [H a a] but it is highly unpractical.
In fact, I was using "repeat rewrite <- H" so in practise, I would need to use [H a b, H b -a, H b a, H c a....] with "big" a,b & c...
Yes it is a small incompatibility with the previous ring_simplifyWell, it IS more readable, no doubt about it. I see 2 possible answers that would solve my problem:
but we thought that the benefit of having more readable outputs was
worth it. Anyway having or not a power function is a flag in the
primitive ring tactic. It is just activated when applied to R.
If you happen to have too much problem, we could turn in down.
* having a flag to turn it down if wanted
* using a different pow such that a^2=a*a, knowing that this pow will be used in a^b with b >=2 (this is the real case as ring_simplify will use pow only when it is at least a square.
Having full associative commutative rewriting in Coq wouldI fully agree :-)
of course be nicer, I hope it will come with coq8.2 :-)
Sylvie Boldo
--
Sylvie Boldo, projet ProVal, INRIA Futurs
- [Coq-Club]ring_simplify, Sylvie . Boldo
- Re: [Coq-Club]ring_simplify,
Thery Laurent
- Re: [Coq-Club]ring_simplify, Sylvie . Boldo
- Re: [Coq-Club]ring_simplify, Benjamin Gregoire
- Re: [Coq-Club]ring_simplify,
Thery Laurent
- Re: [Coq-Club]ring_simplify,
Sylvie . Boldo
- Re: [Coq-Club]ring_simplify, Bruno Barras
- Re: [Coq-Club]ring_simplify,
Sylvie . Boldo
- Re: [Coq-Club]ring_simplify, Sylvie . Boldo
- Re: [Coq-Club]ring_simplify, Benjamin Gregoire
- Re: [Coq-Club]ring_simplify,
Thery Laurent
Archive powered by MhonArc 2.6.16.