1
(************************************************************************)
2
(* v * The Coq Proof Assistant / The Coq Development Team *)
3
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
4
(* \VV/ **************************************************************)
5
(* // * This file is distributed under the terms of the *)
6
(* * GNU Lesser General Public License Version 2.1 *)
7
(************************************************************************)
9
(* $Id: Field.v 7693 2005-12-21 23:50:17Z herbelin $ *)
11
(**** Tests of Field with real numbers ****)
13
Require Import Reals LegacyRfield.
18
(eps * (1 / (2 + 2)) + eps * (1 / (2 + 2)))%R = (eps * (1 / 2))%R.
26
forall (f g : R -> R) (x0 x1 : R),
27
((f x1 - f x0) * (1 / (x1 - x0)) + (g x1 - g x0) * (1 / (x1 - x0)))%R =
28
((f x1 + g x1 - (f x0 + g x0)) * (1 / (x1 - x0)))%R.
35
Goal forall a b : R, (1 / (a * b) * (1 / 1 / b))%R = (1 / a)%R.
43
forall a b : R, a <> 0%R -> b <> 0%R -> (1 / (a * b) / 1 / b)%R = (1 / a)%R.
50
Goal forall a : R, 1%R = (1 * (1 / a) * a)%R.
57
Goal forall a b : R, b = (b * / a * a)%R.
64
Goal forall a b : R, b = (b * (1 / a) * a)%R.
73
(x * (1 / x + x / (x + y)))%R =
74
(- (1 / y) * y * (- (x * (x / (x + y))) - 1))%R.