diff options
author | 2003-10-14 10:47:55 +0000 | |
---|---|---|
committer | 2003-10-14 10:47:55 +0000 | |
commit | 7a533b316f965fb8391511638858a4dfa4a112a1 (patch) | |
tree | 0dd5d037df2aa6f1c1505676d5d46f778922e2ca /theories/Init/Logic.v | |
parent | 0deab676d514b5c544f054d4642252ccfa4c4e7a (diff) |
Changement 'as notation' en 'where notation'
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4632 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Init/Logic.v')
-rwxr-xr-x | theories/Init/Logic.v | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/theories/Init/Logic.v b/theories/Init/Logic.v index 469a9d4bf..e32bd4205 100755 --- a/theories/Init/Logic.v +++ b/theories/Init/Logic.v @@ -27,7 +27,9 @@ Notation "~ x" := (not x) : type_scope. Hints Unfold not : core. -Inductive and [A,B:Prop] : Prop as "A /\ B" := conj : A -> B -> A /\ B. +Inductive and [A,B:Prop] : Prop := conj : A -> B -> A /\ B + +where "A /\ B" := (and A B) : type_scope. V7only[ Notation "< P , Q > { p , q }" := (conj P Q p q) (P annot, at level 1). @@ -58,9 +60,11 @@ End Conjunction. (** [or A B], written [A \/ B], is the disjunction of [A] and [B] *) -Inductive or [A,B:Prop] : Prop as "A \/ B":= +Inductive or [A,B:Prop] : Prop := or_introl : A -> A \/ B - | or_intror : B -> A \/ B. + | or_intror : B -> A \/ B + +where "A \/ B" := (or A B) : type_scope. (** [iff A B], written [A <-> B], expresses the equivalence of [A] and [B] *) @@ -173,8 +177,10 @@ Section universal_quantification. The others properties (symmetry, transitivity, replacement of equals) are proved below *) -Inductive eq [A:Type;x:A] : (y:A)Prop as "x = y :> A" : type_scope - := refl_equal : x = x :> A. +Inductive eq [A:Type;x:A] : A->Prop + := refl_equal : x = x :> A + +where "x = y :> A" := (!eq A x y) : type_scope. Notation "x = y" := (eq ? x y) : type_scope. Notation "x <> y :> T" := ~ (!eq T x y) : type_scope. |