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

« back to all changes in this revision

Viewing changes to theories/Reals/Rdefinitions.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
(*i $Id: Rdefinitions.v 10751 2008-04-04 10:23:35Z herbelin $ i*)
 
9
 
 
10
 
 
11
(*********************************************************)
 
12
(**          Definitions for the axiomatization          *)
 
13
(*********************************************************)
 
14
 
 
15
Require Export ZArith_base.
 
16
 
 
17
Parameter R : Set.
 
18
 
 
19
(* Declare Scope positive_scope with Key R *)
 
20
Delimit Scope R_scope with R.
 
21
 
 
22
(* Automatically open scope R_scope for arguments of type R *)
 
23
Bind Scope R_scope with R.
 
24
 
 
25
Open Local Scope R_scope.
 
26
 
 
27
Parameter R0 : R.
 
28
Parameter R1 : R.
 
29
Parameter Rplus : R -> R -> R.
 
30
Parameter Rmult : R -> R -> R.
 
31
Parameter Ropp : R -> R.
 
32
Parameter Rinv : R -> R. 
 
33
Parameter Rlt : R -> R -> Prop.    
 
34
Parameter up : R -> Z.
 
35
 
 
36
Infix "+" := Rplus : R_scope.
 
37
Infix "*" := Rmult : R_scope.
 
38
Notation "- x" := (Ropp x) : R_scope.
 
39
Notation "/ x" := (Rinv x) : R_scope.
 
40
 
 
41
Infix "<" := Rlt : R_scope.
 
42
 
 
43
(***********************************************************)
 
44
 
 
45
(**********)
 
46
Definition Rgt (r1 r2:R) : Prop := r2 < r1.
 
47
 
 
48
(**********)
 
49
Definition Rle (r1 r2:R) : Prop := r1 < r2 \/ r1 = r2.
 
50
 
 
51
(**********)
 
52
Definition Rge (r1 r2:R) : Prop := Rgt r1 r2 \/ r1 = r2.
 
53
 
 
54
(**********)
 
55
Definition Rminus (r1 r2:R) : R := r1 + - r2.
 
56
 
 
57
(**********)
 
58
Definition Rdiv (r1 r2:R) : R := r1 * / r2.
 
59
 
 
60
(**********)
 
61
 
 
62
Infix "-" := Rminus : R_scope.
 
63
Infix "/" := Rdiv   : R_scope.
 
64
 
 
65
Infix "<=" := Rle : R_scope.
 
66
Infix ">=" := Rge : R_scope.
 
67
Infix ">"  := Rgt : R_scope.
 
68
 
 
69
Notation "x <= y <= z" := (x <= y /\ y <= z) : R_scope.
 
70
Notation "x <= y < z"  := (x <= y /\ y <  z) : R_scope.
 
71
Notation "x < y < z"   := (x <  y /\ y <  z) : R_scope.
 
72
Notation "x < y <= z"  := (x <  y /\ y <= z) : R_scope.