~ubuntu-branches/ubuntu/wily/coq-doc/wily

« back to all changes in this revision

Viewing changes to test-suite/success/LegacyField.v

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu, Stéphane Glondu, Samuel Mimram
  • Date: 2010-01-07 22:50:39 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107225039-n3cq82589u0qt0s2
Tags: 8.2pl1-1
[ Stéphane Glondu ]
* New upstream release (Closes: #563669)
  - remove patches
* Packaging overhaul:
  - use git, advertise it in Vcs-* fields of debian/control
  - use debhelper 7 and dh with override
  - use source format 3.0 (quilt)
* debian/control:
  - set Maintainer to d-o-m, set Uploaders to Sam and myself
  - add Homepage field
  - bump Standards-Version to 3.8.3
* Register PDF documentation into doc-base
* Add debian/watch
* Update debian/copyright

[ Samuel Mimram ]
* Change coq-doc's description to mention that it provides documentation in
  pdf format, not postscript, closes: #543545.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
(************************************************************************)
 
8
 
 
9
(* $Id: Field.v 7693 2005-12-21 23:50:17Z herbelin $ *)
 
10
 
 
11
(**** Tests of Field with real numbers ****)
 
12
 
 
13
Require Import Reals LegacyRfield.
 
14
 
 
15
(* Example 1 *)
 
16
Goal
 
17
forall eps : R,
 
18
(eps * (1 / (2 + 2)) + eps * (1 / (2 + 2)))%R = (eps * (1 / 2))%R.
 
19
Proof.
 
20
  intros.
 
21
   legacy field.
 
22
Abort.
 
23
 
 
24
(* Example 2 *)
 
25
Goal
 
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.
 
29
Proof.
 
30
  intros.
 
31
   legacy field.
 
32
Abort.
 
33
 
 
34
(* Example 3 *)
 
35
Goal forall a b : R, (1 / (a * b) * (1 / 1 / b))%R = (1 / a)%R.
 
36
Proof.
 
37
  intros.
 
38
   legacy field.
 
39
Abort.
 
40
 
 
41
(* Example 4 *)
 
42
Goal
 
43
forall a b : R, a <> 0%R -> b <> 0%R -> (1 / (a * b) / 1 / b)%R = (1 / a)%R.
 
44
Proof.
 
45
  intros.
 
46
   legacy field.
 
47
Abort.
 
48
 
 
49
(* Example 5 *)
 
50
Goal forall a : R, 1%R = (1 * (1 / a) * a)%R.
 
51
Proof.
 
52
  intros.
 
53
   legacy field.
 
54
Abort.
 
55
 
 
56
(* Example 6 *)
 
57
Goal forall a b : R, b = (b * / a * a)%R.
 
58
Proof.
 
59
  intros.
 
60
   legacy field.
 
61
Abort.
 
62
 
 
63
(* Example 7 *)
 
64
Goal forall a b : R, b = (b * (1 / a) * a)%R.
 
65
Proof.
 
66
  intros.
 
67
   legacy field.
 
68
Abort.
 
69
 
 
70
(* Example 8 *)
 
71
Goal
 
72
forall x y : R,
 
73
(x * (1 / x + x / (x + y)))%R =
 
74
(- (1 / y) * y * (- (x * (x / (x + y))) - 1))%R.
 
75
Proof.
 
76
  intros.
 
77
   legacy field.
 
78
Abort.