aboutsummaryrefslogtreecommitdiffhomepage
path: root/theories/Program/Utils.v
diff options
context:
space:
mode:
authorGravatar msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-01-02 20:45:37 +0000
committerGravatar msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7>2008-01-02 20:45:37 +0000
commit144e75ce2835e44542f5d90d751f06243e45ecc4 (patch)
tree2dc9e8ca36a172a20d20d457c7ba95c3c1598187 /theories/Program/Utils.v
parent640a6d2f48ba07b51bcabc4235eaa4a497f4c263 (diff)
Implicit arguments in class field declarations
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10416 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Program/Utils.v')
-rw-r--r--theories/Program/Utils.v12
1 files changed, 10 insertions, 2 deletions
diff --git a/theories/Program/Utils.v b/theories/Program/Utils.v
index 16e8de970..c514d3234 100644
--- a/theories/Program/Utils.v
+++ b/theories/Program/Utils.v
@@ -61,8 +61,16 @@ Notation "'dec'" := (sumbool_of_bool) (at level 0).
(** The notations [in_right] and [in_left] construct objects of a dependent disjunction. *)
-Notation in_right := (@right _ _ _).
-Notation in_left := (@left _ _ _).
+
+(** These type arguments should be infered from the context. *)
+
+Implicit Arguments left [[A]].
+Implicit Arguments right [[B]].
+
+(** Hide proofs and generates obligations when put in a term. *)
+
+Notation left := (left _ _).
+Notation right := (right _ _).
(** Extraction directives *)