aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar pboutill <pboutill@85f007b7-540e-0410-9357-904b9bb8a0f7>2011-05-03 13:16:18 +0000
committerGravatar pboutill <pboutill@85f007b7-540e-0410-9357-904b9bb8a0f7>2011-05-03 13:16:18 +0000
commita917945130f1e6b0b68cf842a64e1f42c1314666 (patch)
treec00b917f47b119e8779a6ffebbc9ff07e77a3292
parentabe412ec08ea56a325cf73a304a0f1d6b237984c (diff)
As many notation for for vectors as for List.
Tiny doc of mli-doc git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14089 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--dev/README5
-rw-r--r--theories/Vectors/VectorDef.v5
2 files changed, 5 insertions, 5 deletions
diff --git a/dev/README b/dev/README
index 13a7343b5..5edf64c8f 100644
--- a/dev/README
+++ b/dev/README
@@ -32,10 +32,9 @@ perf-analysis: analysis of perfs measured on the compilation of user contribs
cic.dtd: official dtd of the calc. of ind. constr. for im/ex-portation
-Documentation of ML interfaces using tex (directory ocamlweb-doc)
+Documentation of ML interfaces using ocamldoc (directory ocamldoc/html)
----------------------------------------
-
-go in directory and call "make"
+"make mli-doc" in coq root directory.
Other development tools (directory tools)
diff --git a/theories/Vectors/VectorDef.v b/theories/Vectors/VectorDef.v
index cac37ae28..777e68b45 100644
--- a/theories/Vectors/VectorDef.v
+++ b/theories/Vectors/VectorDef.v
@@ -314,8 +314,9 @@ Module VectorNotations.
Notation "[]" := [] : vector_scope.
Notation "h :: t" := (h :: t) (at level 60, right associativity)
: vector_scope.
-
+Notation " [ x ] " := (x :: []) : vector_scope.
+Notation " [ x ; .. ; y ] " := (cons _ x _ .. (cons _ y _ (nil _)) ..) : vector_scope
+.
Notation "v [@ p ]" := (nth v p) (at level 1, format "v [@ p ]") : vector_scope.
-
Open Scope vector_scope.
End VectorNotations.