You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It implements a HOAS evaluator for the Interaction Calculus. When running it on Bend, for 2 ^ 2, it outputs:
λa (a Term/Lam/tag λ* ($b *))
I expected the result to be the encoding of 4, since C2a and C2b use different dup labels. Yet, we get an erratic result, with a weird, unbound $b variable shown. This could be a bug on Bend or HVM2, this could be a bug or typo on my program, or this could be some fundamental limitation on implementing HOAS IC on Interaction Combinators.
I'm looking for insights.
Note: we also get the wrong result on HVM1 (Gist which makes me suspect it is either some fundamental limitation I'm overseeing, or just a silly bug in the code above. Here is the complete evaluation log (running it on HVM1). Going through this step by step might help us understand where the divergence arises.
System Settings
Bend 0.2.36, OSX Sonoma 14.5.
The text was updated successfully, but these errors were encountered:
Reproducing the behavior
Consider the following Bend program:
It implements a HOAS evaluator for the Interaction Calculus. When running it on Bend, for
2 ^ 2
, it outputs:I expected the result to be the encoding of
4
, sinceC2a
andC2b
use different dup labels. Yet, we get an erratic result, with a weird, unbound$b
variable shown. This could be a bug on Bend or HVM2, this could be a bug or typo on my program, or this could be some fundamental limitation on implementing HOAS IC on Interaction Combinators.I'm looking for insights.
Note: we also get the wrong result on HVM1 (Gist which makes me suspect it is either some fundamental limitation I'm overseeing, or just a silly bug in the code above. Here is the complete evaluation log (running it on HVM1). Going through this step by step might help us understand where the divergence arises.
System Settings
Bend 0.2.36, OSX Sonoma 14.5.
The text was updated successfully, but these errors were encountered: