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

elaboration of expressions (formulas or terms) #13

Open
arademaker opened this issue Jun 14, 2019 · 0 comments
Open

elaboration of expressions (formulas or terms) #13

arademaker opened this issue Jun 14, 2019 · 0 comments

Comments

@arademaker
Copy link
Member

arademaker commented Jun 14, 2019

We need much more than just type the variables. For instance

Starting with

(=>
  (and
    (maxValue ?R ?ARG ?N)
    (?R @ARGS)
    (equal ?VAL (ListOrderFn (ListFn @ARGS) ?ARG)))
  (greaterThan ?N ?VAL))

the transformation is

(=>
  (and
    (maxValue ?R:Relation ?ARG:Entity ?N:Number)
    (?R @ARGS)
    (equal ?VAL:Number (ListOrderFn (ListFn @ARGS):[Entity] ?ARG:Number):Number))
  (greaterThan ?N:Number ?VAL:Number):bool)

...
(=>
  (and
    (maxValue ?R:Relation ?ARG:Entity ?N:Number)
    (subclass @ARGS)
    (equal ?VAL:Number (ListOrderFn (ListFn @ARGS):[Entity] ?ARG:Number):Number))
  (greaterThan ?N:Number ?VAL:Number):bool)
...
(=>
  (and
    (maxValue ?R:Relation ?ARG:Entity ?N:Number)
    (subclass ?ARG1:SetOrClass ?ARG2:SetOrClass)
    (equal ?VAL:Number (ListOrderFn (ListFn ARG1:SetOrClass ARG2:SetOrClass):[SetOrClass] ?ARG:Number):SetOrClass))
  (greaterThan ?N:Number ?VAL:Number):bool)
  ===> crash number is not SetOrClass
...

We need an elaborator similar to https://arxiv.org/abs/1505.04324

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