coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Fr�d�ric Besson <frederic.besson AT inria.fr>
- Cc: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Easy proofs complicated with reals
- Date: Fri, 27 Aug 2010 20:35:44 +0200
On 27 août 2010, at 18:00, Stéphane Glondu wrote:
> Le 27/08/2010 12:20, Michael a écrit :
>> The tactic psatzl is working fine, thank you for that hint.
>>
>> I'm still having some other problems, which seem (with regard to the
>> content)
>> simple. I think it's a problem about type conversion:
>> I'd like to calculate (or actually replace) (IZR 32 * powerRZ 2 (-5) * x)
>> with
>> simply x. However, I don't succeed in converting the two parts in such a
>> way
>> that i can reduce them to get "x" alone.
Here is a fairly automatic way of discharging this goal.
Ltac apply_Rinv_r X :=
generalize (Rinv_r X) ; generalize (Rinv X) ; intros.
Ltac elim_inv :=
repeat
match goal with
| H : context[ Rinv ?X] |- _ => apply_Rinv_r X
| |- context[ Rinv ?X] => apply_Rinv_r X
end.
Goal forall (x:R), ( IZR 32 * powerRZ 2 (-5) * x = x)%R.
Proof.
intros.
assert ( IZR 32 * powerRZ 2 (-5) = 1).
compute. elim_inv. psatzl R.
rewrite H.
psatzl R.
Qed.
--
Frédéric
- [Coq-Club] Easy proofs complicated with reals, Michael
- Re: [Coq-Club] Easy proofs complicated with reals, Evgeny Makarov
- <Possible follow-ups>
- Re: Re: [Coq-Club] Easy proofs complicated with reals,
Michael
- Re: [Coq-Club] Easy proofs complicated with reals,
Stéphane Glondu
- Re: [Coq-Club] Easy proofs complicated with reals, Frédéric Besson
- Re: [Coq-Club] Easy proofs complicated with reals,
gallais @ EnsL
- Re: [Coq-Club] Easy proofs complicated with reals, Stéphane Glondu
- Re: [Coq-Club] Easy proofs complicated with reals,
Stéphane Glondu
Archive powered by MhonArc 2.6.16.