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

« back to all changes in this revision

Viewing changes to theories/Reals/LegacyRfield.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
(*i $Id: LegacyRfield.v 10739 2008-04-01 14:45:20Z herbelin $ i*)
 
10
 
 
11
Require Export Raxioms.
 
12
Require Export LegacyField.
 
13
Import LegacyRing_theory.
 
14
 
 
15
Section LegacyRfield.
 
16
 
 
17
Open Scope R_scope.
 
18
 
 
19
Lemma RLegacyTheory : Ring_Theory Rplus Rmult 1 0 Ropp (fun x y:R => false).
 
20
  split.
 
21
  exact Rplus_comm.
 
22
  symmetry  in |- *; apply Rplus_assoc.
 
23
  exact Rmult_comm.
 
24
  symmetry  in |- *; apply Rmult_assoc.
 
25
  intro; apply Rplus_0_l.
 
26
  intro; apply Rmult_1_l.
 
27
  exact Rplus_opp_r.
 
28
  intros.
 
29
  rewrite Rmult_comm.
 
30
  rewrite (Rmult_comm n p).
 
31
  rewrite (Rmult_comm m p).
 
32
  apply Rmult_plus_distr_l.
 
33
  intros; contradiction.
 
34
Defined.
 
35
 
 
36
End LegacyRfield.
 
37
 
 
38
Add Legacy Field
 
39
R Rplus Rmult 1%R 0%R Ropp (fun x y:R => false) Rinv RLegacyTheory Rinv_l
 
40
  with minus := Rminus div := Rdiv.