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

Wrong variable name generation in explication #156

Open
eelcovisser opened this issue Dec 8, 2016 · 0 comments
Open

Wrong variable name generation in explication #156

eelcovisser opened this issue Dec 8, 2016 · 0 comments

Comments

@eelcovisser
Copy link
Contributor

In this context

signature
  sorts Value
  sort aliases
    Env = Map(ID, Value)
  components
    E : Env
  constructors
    NumV : Int -> Value
    BoolV : Bool -> Value
    ClosV : ID * ExprC * Env -> Value
  variables
    v : Value
  arrows
    Program -init-> Value
    ExprExt --> ExprC // desugar
    ExprC --> Value // interpret

the rule

  Program(e) -init-> v
  where e --> v.

explicates to

  E E1 |- Program(e) -init-> v
  where
    e -default-> e1;
    E E1 |- e1 -default-> v1;
    E E1 |- v1 -default-> v : Value.

which is wrong since the variable v1 is of type Value according to the signature, but should be of type ExprC. Thus, a problem with name generation for variables.

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