Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Combinatory logic
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Conversion of a lambda term to an equivalent combinatorial term ==== For example, we will convert the lambda term ''位x''.''位y''.(''y'' ''x'') to a combinatorial term: :''T''[''位x''.''位y''.(''y'' ''x'')] :: = ''T''{{!(}}''位x''.''T''{{!(}}''位y''.(''y'' ''x''){{))!}} (by 5) :: = ''T''[''位x''.('''S''' ''T''[''位y''.''y''] ''T''[''位y''.''x''])] (by 6) :: = ''T''[''位x''.('''S I''' ''T''[''位y''.''x''])] (by 4) :: = ''T''[''位x''.('''S I''' ('''K''' ''T''[''x'']))] (by 3) :: = ''T''[''位x''.('''S I''' ('''K''' ''x''))] (by 1) :: = ('''S''' ''T''[''位x''.('''S I''')] ''T''[''位x''.('''K''' ''x'')]) (by 6) :: = ('''S''' ('''K''' ('''S I''')) ''T''[''位x''.('''K''' ''x'')]) (by 3) :: = ('''S''' ('''K''' ('''S I''')) ('''S''' ''T''[''位x''.'''K'''] ''T''[''位x''.''x''])) (by 6) :: = ('''S''' ('''K''' ('''S I''')) ('''S''' ('''K K''') ''T''[''位x''.''x''])) (by 3) :: = ('''S''' ('''K''' ('''S I''')) ('''S''' ('''K K''') '''I''')) (by 4) If we apply this combinatorial term to any two terms ''x'' and ''y'' (by feeding them in a queue-like fashion into the combinator 'from the right'), it reduces as follows: : ('''S''' ('''K''' ('''S''' '''I''')) ('''S''' ('''K''' '''K''') '''I''') x y) :: = ('''K''' ('''S''' '''I''') x ('''S''' ('''K''' '''K''') '''I''' x) y) :: = ('''S''' '''I''' ('''S''' ('''K''' '''K''') '''I''' x) y) :: = ('''I''' y ('''S''' ('''K''' '''K''') '''I''' x y)) :: = (y ('''S''' ('''K''' '''K''') '''I''' x y)) :: = (y ('''K''' '''K''' x ('''I''' x) y)) :: = (y ('''K''' ('''I''' x) y)) :: = (y ('''I''' x)) :: = (y x) The combinatory representation, ('''S''' ('''K''' ('''S I''')) ('''S''' ('''K K''') '''I''')) is much longer than the representation as a lambda term, ''位x''.''位y''.(y x). This is typical. In general, the ''T''[ ] construction may expand a lambda term of length ''n'' to a combinatorial term of length [[Big O notation|螛]](''n''<sup>3</sup>).{{sfn|Lachowski |2018}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)