Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the final state of the leftmost-outermost evolution of an SK combinator expression
ResourceFunction["SKCombinatorLeftmostOutermostFinalExpression"][cmb, t] returns the final state of the leftmost-outermost evolution of the combinator expression cmb over t steps. | |
ResourceFunction["SKCombinatorLeftmostOutermostFinalExpression"][cmb, t, max] returns the final state of the evolution of cmb if the leaf count of the final state is less than max. |
"SKGlyphs" | {CombinatorS,CombinatorK} | symbols used to specify S,K combinator transformation rules |
Find the state of an SK combinator evolution at a certain time step:
In[1]:= | ![]() |
Out[1]= | ![]() |
Compare the previous result with the last expression found by explicitly evolving the combinator expression:
In[2]:= | ![]() |
Out[2]= | ![]() |
Use the third argument to constrain the maximum leaf count for the final expression:
In[3]:= | ![]() |
Out[3]= | ![]() |
In[4]:= | ![]() |
Out[4]= | ![]() |
Specify the symbols used to represent the S, K combinators in cmb:
In[5]:= | ![]() |
Out[5]= | ![]() |
Compare the time efficiency of SKCombinatorLeftmostOutermostFinalExpression to that of taking the last state from the explicit evolution generated by the resource function CombinatorEvolve:
In[6]:= | ![]() |
Out[6]= | ![]() |
In[7]:= | ![]() |
Out[7]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License