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!
==== Explanation of the ''T''[ ] transformation ==== The ''T''[ ] transformation is motivated by a desire to eliminate abstraction. Two special cases, rules 3 and 4, are trivial: ''位x''.''x'' is clearly equivalent to '''I''', and ''位x''.''E'' is clearly equivalent to ('''K''' ''T''[''E'']) if ''x'' does not appear free in ''E''. The first two rules are also simple: Variables convert to themselves, and applications, which are allowed in combinatory terms, are converted to combinators simply by converting the applicand and the argument to combinators. It is rules 5 and 6 that are of interest. Rule 5 simply says that to convert a complex abstraction to a combinator, we must first convert its body to a combinator, and then eliminate the abstraction. Rule 6 actually eliminates the abstraction. ''位x''.(''E''{{sub|1}} ''E''{{sub|2}}) is a function which takes an argument, say ''a'', and substitutes it into the lambda term (''E''{{sub|1}} ''E''{{sub|2}}) in place of ''x'', yielding (''E''{{sub|1}} ''E''{{sub|2}})[''x'' : = ''a'']. But substituting ''a'' into (''E''{{sub|1}} ''E''{{sub|2}}) in place of ''x'' is just the same as substituting it into both ''E''{{sub|1}} and ''E''{{sub|2}}, so :(''E''{{sub|1}} ''E''{{sub|2}})[''x'' := ''a''] = (''E''{{sub|1}}[''x'' := ''a''] ''E''{{sub|2}}[''x'' := ''a'']) :(''位x''.(''E''{{sub|1}} ''E''{{sub|2}}) ''a'') = ((''位x''.''E''{{sub|1}} ''a'') (''位x''.''E''{{sub|2}} ''a'')) :::::= ('''S''' ''位x''.''E''{{sub|1}} ''位x''.''E''{{sub|2}} ''a'') :::::= (('''S''' ''位x''.''E''{{sub|1}} ''位x''.''E''{{sub|2}}) ''a'') By extensional equality, :''位x''.(''E''{{sub|1}} ''E''{{sub|2}}) = ('''S''' ''位x''.''E''{{sub|1}} ''位x''.''E''{{sub|2}}) Therefore, to find a combinator equivalent to ''位x''.(''E''{{sub|1}} ''E''{{sub|2}}), it is sufficient to find a combinator equivalent to ('''S''' ''位x''.''E''{{sub|1}} ''位x''.''E''{{sub|2}}), and :('''S''' ''T''[''位x''.''E''{{sub|1}}] ''T''[''位x''.''E''{{sub|2}}]) evidently fits the bill. ''E''{{sub|1}} and ''E''{{sub|2}} each contain strictly fewer applications than (''E''{{sub|1}} ''E''{{sub|2}}), so the recursion must terminate in a lambda term with no applications at all鈥攅ither a variable, or a term of the form ''位x''.''E''.
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)