Advertisement
tamarin_vs19

Untitled

Apr 27th, 2021
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. -- 1а) комбинаторы C, B, S
  2. def C : (α → β → γ) → β → α → γ :=
  3. λf b a, f a (b)
  4.  
  5. def B : (α → β) → (γ → α) → γ → β :=
  6. λf g c, f (g c)
  7.  
  8. def S : (α → β → γ) → (α → β) → α → γ :=
  9. λf g a, f a (g a)
  10.  
  11. -- 1б)
  12. def some_nonsense : (α → β → γ) → α → (α → γ) → β → γ :=
  13. λf a g b, f a b
  14.  
  15. -- 1в)
  16. def more_nonsense : (γ → (α → β) → α) → γ → β → α :=
  17. λf c b, (f c) (λa, b)
  18.  
  19. -- 1г)
  20. def even_more_nonsense : (α → α → β) → (β → γ) → α → β → γ :=
  21. λf g a b, g b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement