From a917945130f1e6b0b68cf842a64e1f42c1314666 Mon Sep 17 00:00:00 2001 From: pboutill Date: Tue, 3 May 2011 13:16:18 +0000 Subject: 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 --- theories/Vectors/VectorDef.v | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'theories/Vectors') 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. -- cgit v1.2.3