-
Notifications
You must be signed in to change notification settings - Fork 3
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
Investigating samples/counter.mlc against encoding/abstract #1
Comments
Yes, that is still the case:
is reduced to
Investigating the counterexample would be of great help. Thanks a lot! |
I just realized that the following information might be useful in investigation. By adding some debug output:
it is possible to compare fan interactions between
Thus step (2) is clearly wrong. Further looking into the indices and where they come from suggests that the error might be due to step (1) where fan with index 7 is created. It seems that fans 5 and 6 should have inherited relation between their prototypes 2 and 3 in some sense. The latter idea is supported by the following experiment:
which in turn results in the following comparison:
where step (1') is swapped compared to (1) which makes step (2') annihilation instead of duplication (2). |
I read your papers but I still don't really understand the semantics. In particular, the main goal of optimal reduction is to evaluate a lambda term - hence, the graph always represents some lambda term The BOHM algorithm and Lambdascope both give correctness arguments based on tracing paths from the root with a context/stack semantics to produce an explicit lambda term at each step. Are there any similar semantics for your algorithm? The embedded read-back stuff you have just seems to work for normal forms, it doesn't give an in-progress lambda term. |
It is true that the embedded read-back mechanism can only retrieve the β-normal form of a term (if any). As for keeping track of the evaluated term during reduction, it should be possible the same way as in BOHM and Lambdascope. At least, the intention is that the experimental algorithm keeps the interaction net structurally identical to those of the abstract version of Lamping's algorithm as well as BOHM and Lambdascope with brackets/croissants and delimiters removed, respectively. |
Hi, I saw from the thread on LtU that the proposed impure/fast algorithm was not working on a big example counter.mlc. Is that still the case? I was thinking about investigating it with the GUI from http://hackage.haskell.org/package/graph-rewriting-lambdascope
The text was updated successfully, but these errors were encountered: