Skip to content

Commit

Permalink
Merge pull request #11 from maxkurze1/vect-scope
Browse files Browse the repository at this point in the history
  • Loading branch information
sertel authored Nov 9, 2024
2 parents cf36b40 + 6314aea commit 6b9141d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions coq/Vect.v
Original file line number Diff line number Diff line change
Expand Up @@ -947,13 +947,14 @@ Section pow2.
End pow2.

Module VectNotations.
Declare Scope vect.
Delimit Scope vect with vect.
Notation "[ ]" := (vect_nil) (format "[ ]") : vect.
Notation "h :: t" := (vect_cons h t) (at level 60, right associativity) : vect.
Notation "[ x ]" := (vect_cons x vect_nil) : vect.
Notation "[ x ; y ; .. ; z ]" := (vect_cons x (vect_cons y .. (vect_cons z vect_nil) ..)) : vect.
Infix "++" := vect_app : vect.
Declare Scope vect_scope.
Delimit Scope vect_scope with vect.
Notation "[ ]" := (vect_nil) (format "[ ]") : vect_scope.
Notation "h :: t" := (vect_cons h t) (at level 60, right associativity) : vect_scope.
Notation "[ x ]" := (vect_cons x vect_nil) : vect_scope.
Notation "[ x ; y ; .. ; z ]" := (vect_cons x (vect_cons y .. (vect_cons z vect_nil) ..)) : vect_scope.
Infix "++" := vect_app : vect_scope.
Bind Scope vect_scope with vect.
End VectNotations.

Export VectNotations.
Expand Down

0 comments on commit 6b9141d

Please sign in to comment.