diff options
author | Samuel Mimram <smimram@debian.org> | 2006-11-21 21:38:49 +0000 |
---|---|---|
committer | Samuel Mimram <smimram@debian.org> | 2006-11-21 21:38:49 +0000 |
commit | 208a0f7bfa5249f9795e6e225f309cbe715c0fad (patch) | |
tree | 591e9e512063e34099782e2518573f15ffeac003 /contrib/ring/ZArithRing.v | |
parent | de0085539583f59dc7c4bf4e272e18711d565466 (diff) |
Imported Upstream version 8.1~gammaupstream/8.1.gamma
Diffstat (limited to 'contrib/ring/ZArithRing.v')
-rw-r--r-- | contrib/ring/ZArithRing.v | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/contrib/ring/ZArithRing.v b/contrib/ring/ZArithRing.v deleted file mode 100644 index 3999b632..00000000 --- a/contrib/ring/ZArithRing.v +++ /dev/null @@ -1,36 +0,0 @@ -(************************************************************************) -(* v * The Coq Proof Assistant / The Coq Development Team *) -(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *) -(* \VV/ **************************************************************) -(* // * This file is distributed under the terms of the *) -(* * GNU Lesser General Public License Version 2.1 *) -(************************************************************************) - -(* $Id: ZArithRing.v 6295 2004-11-12 16:40:39Z gregoire $ *) - -(* Instantiation of the Ring tactic for the binary integers of ZArith *) - -Require Export ArithRing. -Require Export ZArith_base. -Require Import Eqdep_dec. - -Unboxed Definition Zeq (x y:Z) := - match (x ?= y)%Z with - | Datatypes.Eq => true - | _ => false - end. - -Lemma Zeq_prop : forall x y:Z, Is_true (Zeq x y) -> x = y. - intros x y H; unfold Zeq in H. - apply Zcompare_Eq_eq. - destruct (x ?= y)%Z; [ reflexivity | contradiction | contradiction ]. -Qed. - -Definition ZTheory : Ring_Theory Zplus Zmult 1%Z 0%Z Zopp Zeq. - split; intros; eauto with zarith. - apply Zeq_prop; assumption. -Qed. - -(* NatConstants and NatTheory are defined in Ring_theory.v *) -Add Ring Z Zplus Zmult 1%Z 0%Z Zopp Zeq ZTheory - [ Zpos Zneg 0%Z xO xI 1%positive ]. |