coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Laurent Th�ry <Laurent.Thery AT inria.fr>
- To: Ramon Snir <ramonsnir AT gmail.com>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Solving equalities over R, Rcompute fails
- Date: Sun, 01 Jan 2012 16:29:08 +0100
On 12/31/2011 05:27 PM, Ramon Snir wrote:
Hello!
I am trying to automate proving multiple equalities over R (would be a shame if I'd have to manually prove everything), but Rcompute seems to fail on many cases.
This code:
Goal 7 / 2 * 3 = 21 / 2.
Proof.
Rcompute.
Qed.
Generates:
Toplevel input, characters 0-8:
In nested Ltac calls to "Rcompute" and "apply IZR_eq" (expanded to
"apply IZR_eq"), last call failed.
Error: Impossible to unify "IZR ?6656 = IZR ?6657" with
"IZR (1 + 2 * (1 + 2)) / IZR 2 * IZR (1 + 2) =
IZR (1 + 2 * (2 * (1 + 2 * 2))) / IZR 2".
What other way is there to prove almost trivial R equalities?
You can use the field tactic that proves all equalities that are true modulo associativity,
commutativity and distributivity
Require Import Reals.
Require Import Field.
Open Scope R_scope.
Goal 7 / 2 * 3 = 21 / 2.
Proof.
field.
Qed.
- [Coq-Club] Solving equalities over R, Rcompute fails, Ramon Snir
- Re: [Coq-Club] Solving equalities over R, Rcompute fails, Laurent Théry
- Re: [Coq-Club] Solving equalities over R, Rcompute fails,
Ramon Snir
- Re: [Coq-Club] Solving equalities over R, Rcompute fails,
Frédéric Besson
- Re: [Coq-Club] Solving equalities over R, Rcompute fails,
Ramon Snir
- Re: [Coq-Club] Solving equalities over R, Rcompute fails, Frédéric Besson
- Re: [Coq-Club] Solving equalities over R, Rcompute fails,
Ramon Snir
- Re: [Coq-Club] Solving equalities over R, Rcompute fails,
Frédéric Besson
- Re: [Coq-Club] Solving equalities over R, Rcompute fails,
Ramon Snir
- [Coq-Club] Defining the function using refine, Takashi MIYAMOTO
- Message not available
- Re: [Coq-Club] Defining the function using refine,
Pierre Boutillier
- Re: [Coq-Club] Defining the function using refine, Takashi MIYAMOTO
- Message not available
- Re: [Coq-Club] Defining the function using refine,
Pierre Boutillier
- Re: [Coq-Club] Defining the function using refine, Takashi MIYAMOTO
- Re: [Coq-Club] Defining the function using refine, AUGER Cédric
- Re: [Coq-Club] Defining the function using refine,
Pierre Boutillier
- Re: [Coq-Club] Defining the function using refine,
Pierre Boutillier
- Re: [Coq-Club] Solving equalities over R, Rcompute fails, Laurent Théry
Archive powered by MhonArc 2.6.16.