Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. -- module
  2. structure Map :=
  3. (M : Type -> Type)
  4. (K : Type)
  5. (V : Type)
  6. (read : K -> V)
  7. (insert : K -> V -> M K V -> M K V)
  8.  
  9. -- where refinement
  10. definition int_map := { map | map.M = nat }
  11.  
  12. -- Another module
  13. structure Hasher (T : Type) :=
  14. (Out : Type)
  15. ...
  16.  
  17. -- A functor
  18. definition HashMapFunctor (T : Type) (H : Hasher T) : Map := ..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement