Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Inductive liste (A:Set) : Set :=
  2. | nil : liste A
  3. | cons : A -> liste A -> liste A.
  4.  
  5. Fixpoint map {A B : Set} (f:A->B) (l:liste A) :liste B :=
  6. match l with
  7. | nil => nil B
  8. | (cons p q) => cons B (f p) (map f q)
  9. end.
  10.  
  11. Definition o {A B C} (f : A -> B) (g : B -> C) :(A->C) :=
  12. fun x : A => g (f x).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement