diff options
author | 2012-07-05 16:56:16 +0000 | |
---|---|---|
committer | 2012-07-05 16:56:16 +0000 | |
commit | fc2613e871dffffa788d90044a81598f671d0a3b (patch) | |
tree | f6f308b3d6b02e1235446b2eb4a2d04b135a0462 /doc/refman/RefMan-lib.tex | |
parent | f93f073df630bb46ddd07802026c0326dc72dafd (diff) |
ZArith + other : favor the use of modern names instead of compat notations
- For instance, refl_equal --> eq_refl
- Npos, Zpos, Zneg now admit more uniform qualified aliases
N.pos, Z.pos, Z.neg.
- A new module BinInt.Pos2Z with results about injections from
positive to Z
- A result about Z.pow pushed in the generic layer
- Zmult_le_compat_{r,l} --> Z.mul_le_mono_nonneg_{r,l}
- Using tactic Z.le_elim instead of Zle_lt_or_eq
- Some cleanup in ring, field, micromega
(use of "Equivalence", "Proper" ...)
- Some adaptions in QArith (for instance changed Qpower.Qpower_decomp)
- In ZMake and ZMake, functor parameters are now named NN and ZZ
instead of N and Z for avoiding confusions
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15515 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'doc/refman/RefMan-lib.tex')
-rw-r--r-- | doc/refman/RefMan-lib.tex | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/doc/refman/RefMan-lib.tex b/doc/refman/RefMan-lib.tex index 31c6fef4a..26c564e52 100644 --- a/doc/refman/RefMan-lib.tex +++ b/doc/refman/RefMan-lib.tex @@ -220,11 +220,11 @@ define \verb:eq: as the smallest reflexive relation, and it is also equivalent to Leibniz' equality. \ttindex{eq} -\ttindex{refl\_equal} +\ttindex{eq\_refl} \begin{coq_example*} Inductive eq (A:Type) (x:A) : A -> Prop := - refl_equal : eq A x x. + eq_refl : eq A x x. \end{coq_example*} \subsubsection[Lemmas]{Lemmas\label{PreludeLemmas}} @@ -239,8 +239,8 @@ Theorem absurd : forall A C:Prop, A -> ~ A -> C. \begin{coq_eval} Abort. \end{coq_eval} -\ttindex{sym\_eq} -\ttindex{trans\_eq} +\ttindex{eq\_sym} +\ttindex{eq\_trans} \ttindex{f\_equal} \ttindex{sym\_not\_eq} \begin{coq_example*} @@ -248,10 +248,10 @@ Section equality. Variables A B : Type. Variable f : A -> B. Variables x y z : A. -Theorem sym_eq : x = y -> y = x. -Theorem trans_eq : x = y -> y = z -> x = z. +Theorem eq_sym : x = y -> y = x. +Theorem eq_trans : x = y -> y = z -> x = z. Theorem f_equal : x = y -> f x = f y. -Theorem sym_not_eq : x <> y -> y <> x. +Theorem not_eq_sym : x <> y -> y <> x. \end{coq_example*} \begin{coq_eval} Abort. @@ -280,7 +280,7 @@ Abort. \end{coq_eval} %Abort (for now predefined eq_rect) \begin{coq_example*} -Hint Immediate sym_eq sym_not_eq : core. +Hint Immediate eq_sym not_eq_sym : core. \end{coq_example*} \ttindex{f\_equal$i$} @@ -864,22 +864,22 @@ module {\tt ZArith} and opening scope {\tt Z\_scope}. \begin{tabular}{l|l|l|l} Notation & Interpretation & Precedence & Associativity\\ \hline -\verb!_ < _! & {\tt Zlt} &&\\ -\verb!x <= y! & {\tt Zle} &&\\ -\verb!_ > _! & {\tt Zgt} &&\\ -\verb!x >= y! & {\tt Zge} &&\\ +\verb!_ < _! & {\tt Z.lt} &&\\ +\verb!x <= y! & {\tt Z.le} &&\\ +\verb!_ > _! & {\tt Z.gt} &&\\ +\verb!x >= y! & {\tt Z.ge} &&\\ \verb!x < y < z! & {\tt x < y \verb!/\! y < z} &&\\ \verb!x < y <= z! & {\tt x < y \verb!/\! y <= z} &&\\ \verb!x <= y < z! & {\tt x <= y \verb!/\! y < z} &&\\ \verb!x <= y <= z! & {\tt x <= y \verb!/\! y <= z} &&\\ -\verb!_ ?= _! & {\tt Zcompare} & 70 & no\\ -\verb!_ + _! & {\tt Zplus} &&\\ -\verb!_ - _! & {\tt Zminus} &&\\ -\verb!_ * _! & {\tt Zmult} &&\\ -\verb!_ / _! & {\tt Zdiv} &&\\ -\verb!_ mod _! & {\tt Zmod} & 40 & no \\ -\verb!- _! & {\tt Zopp} &&\\ -\verb!_ ^ _! & {\tt Zpower} &&\\ +\verb!_ ?= _! & {\tt Z.compare} & 70 & no\\ +\verb!_ + _! & {\tt Z.add} &&\\ +\verb!_ - _! & {\tt Z.sub} &&\\ +\verb!_ * _! & {\tt Z.mul} &&\\ +\verb!_ / _! & {\tt Z.div} &&\\ +\verb!_ mod _! & {\tt Z.modulo} & 40 & no \\ +\verb!- _! & {\tt Z.opp} &&\\ +\verb!_ ^ _! & {\tt Z.pow} &&\\ \end{tabular} \end{center} \caption{Definition of the scope for integer arithmetics ({\tt Z\_scope})} |