Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded read-back produces name clashes #2

Open
codedot opened this issue Jun 18, 2019 · 0 comments
Open

Embedded read-back produces name clashes #2

codedot opened this issue Jun 18, 2019 · 0 comments

Comments

@codedot
Copy link
Owner

codedot commented Jun 18, 2019

The current implementation of the embedded read-back mechanism produces name clashes for some terms on all three optimal algorithms: abstract, optimal, and standard. The shortest closed λ-term that demonstrates this behavior is a triple η-expansion of the self-application combinator, namely

λx.ω (λy.x (λz.y z)), where ω = λx.x x.

However, the term does not produce a name clash when using the non-optimal algorithm closed as shown below:

$ npm i -g @alexo/lambda
+ @alexo/lambda@0.5.2
$ lambda 'x: (w: w w) (y: x (z: y z))'
v1: v1 (v2: v1 (v2: v2 v2))
$ lambda 'x: (w: w w) (y: x (z: y z))' -a optimal
v1: v1 (v2: v1 (v2: v2 v2))
$ lambda 'x: (w: w w) (y: x (z: y z))' -a standard
v1: v1 (v2: v1 (v2: v2 v2))
$ lambda 'x: (w: w w) (y: x (z: y z))' -a closed
v1: v1 v1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant