Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. bytecode:
  2. [start,true{7}][is,[_]][is,true]
  3.  
  4. type inference:
  5. [obj{0}, true{7}, [[obj{0}, true]], true{0,7}, true{0,7}]
  6.  
  7. obj{0} : [start] is an initial function.
  8. true{7} : [start] range is known (the arguments of [start]).
  9. true{0,7} : [is] filters if argument doesn't resolve to true (thus, quantifier lowsided at 0)
  10.  
  11.  
  12. Important concepts:
  13.  
  14. 1. mm-ADT doesn't make a distinction between types and instances. true is an instance that can serve as a "type."
  15. 2. with more intelligence on the semantics of [is] (not just that its a filter function), true{0,7} would be true{7}.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement