Advertisement
tinyevil

Untitled

Feb 22nd, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Inductive array (T:Type) : nat -> Type :=
  2. | empty : array T O
  3. | ext : forall n, T -> array T n -> array T (S n).
  4.  
  5. Implicit Arguments empty [T].
  6. Implicit Arguments ext [T n].
  7.  
  8. Notation "x ; y" := (ext x y) (at level 90, right associativity).
  9. Notation " $ " := empty.
  10.  
  11. Check (5 ; 10 ; 30 ; $).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement