|
|
|
|
|
by thesz
8 days ago
|
|
Lazy evaluation (call-by-need) is normal reduction order for lambda calculus with memoization (nothing is reduced more than once). It has been proven a long time ago that if lambda expression has a non-reducible form, it can be reached with normal reduction order, but not always with the others (eager reduction being one such example - Lean uses eager/strict evaluation, thus it is... interesting). |
|
Either way, call-by-need does not have incremental higher-order sharing. Call-by-need + incremental sharing = Lévy-optimal reduction, as was shown by Asperti and many others. This can be implemented directly with interaction combinators, without any kind of extension.