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

discussion #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

discussion #1

wants to merge 1 commit into from

Conversation

cos
Copy link

@cos cos commented Mar 25, 2016

not meant to be merged.

@@ -220,18 +227,30 @@ Questions about this definition:
- do we really need ~> as a K construct? Can it be a label and thus the way K
deal with evaluation contexts just a particular methodology and not an
intrisic part of K ? Same question for =>.
Cosmin: Syntacticly at least, I would say "no" for both. From the implementation
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you say "no for both" you mean that we should NOT keep any of them as constructors, that is, that we should just replace them with particular labels? Since => actually has a meaning in K, I am tempted to at least keep this one as a constructor. Also, if we make ~> into a KLabel, then there is no point in keeping .K as a constructor, either. In fact, the two act together as what it called a "monad" in the denotational semantics world. In some sense, when one thinks of K, one also thinks of these two constructs; they occur in almost all definitions, repeatedly.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another issue with making ~> into a KLabel is that we'd then make no syntactic distinction between K and Item, which turned out several times to be a desired distinction.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From an implementation perspective, I do want to modify the KORE data structure to allow for traversal of => and ~> as regular terms -- it makes lots of code smaller. Semantically, and in the K definition of KORE, I have no strong preference. I am also inclined to leave => as is. ~> on the other hand could be made into a regular assoc list easily -- from what I remember, it already is in the latest Java backend implementation.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the distinction between K and KItem could still be maintained at the sort level.

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

Successfully merging this pull request may close these issues.

2 participants