aboutsummaryrefslogtreecommitdiffhomepage
path: root/theories/Program/Utils.v
diff options
context:
space:
mode:
authorGravatar msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-04-05 21:32:11 +0000
committerGravatar msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-04-05 21:32:11 +0000
commit4a38c36307bf6333f6c26590820dfd82d643edf2 (patch)
tree67902e5edfa95fc9b4025488545b07b876ef1fca /theories/Program/Utils.v
parent76cbb3b74c5611fb8c274d4c911d5c83f85351a7 (diff)
Minor fixes:
- Allow unicode superscripts characters. - Put Program notations in scopes. - Correct priority semantics in typeclasses eauto. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10759 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Program/Utils.v')
-rw-r--r--theories/Program/Utils.v24
1 files changed, 8 insertions, 16 deletions
diff --git a/theories/Program/Utils.v b/theories/Program/Utils.v
index 184e3c367..23f0a7d38 100644
--- a/theories/Program/Utils.v
+++ b/theories/Program/Utils.v
@@ -22,17 +22,17 @@ Notation "{ ( x , y ) : A | P }" :=
(sig (fun anonymous : A => let (x,y) := anonymous in P))
(x ident, y ident, at level 10) : type_scope.
-(** Generates an obligation to prove False. *)
-
-Notation " ! " := (False_rect _ _).
+(** The scope in which programs are typed (not their types). *)
-(** Abbreviation for first projection and hiding of proofs of subset objects. *)
+(** Generates an obligation to prove False. *)
-(** The scope in which programs are typed (not their types). *)
+Notation " ! " := (False_rect _ _) : program_scope.
Delimit Scope program_scope with prg.
-Notation " ` t " := (proj1_sig t) (at level 10) : core_scope.
+(** Abbreviation for first projection and hiding of proofs of subset objects. *)
+
+Notation " ` t " := (proj1_sig t) (at level 10, t at next level) : subset_scope.
Delimit Scope subset_scope with subset.
@@ -41,23 +41,15 @@ Notation "( x & ? )" := (@exist _ _ x _) : subset_scope.
(** Coerces objects to their support before comparing them. *)
-Notation " x '`=' y " := ((x :>) = (y :>)) (at level 70).
+Notation " x '`=' y " := ((x :>) = (y :>)) (at level 70) : program_scope.
(** Quantifying over subsets. *)
-(* Notation "'fun' ( x : A | P ) => Q" := *)
-(* (fun (x :A|P} => Q) *)
-(* (at level 200, x ident, right associativity). *)
-
-(* Notation "'forall' ( x : A | P ), Q" := *)
-(* (forall (x : A | P), Q) *)
-(* (at level 200, x ident, right associativity). *)
-
Require Import Coq.Bool.Sumbool.
(** Construct a dependent disjunction from a boolean. *)
-Notation "'dec'" := (sumbool_of_bool) (at level 0).
+Notation dec := sumbool_of_bool.
(** The notations [in_right] and [in_left] construct objects of a dependent disjunction. *)