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

Use a list of <goal>s instead of a set #59

Merged
merged 4 commits into from
Apr 29, 2020
Merged

Use a list of <goal>s instead of a set #59

merged 4 commits into from
Apr 29, 2020

Conversation

nishantjr
Copy link
Member

@nishantjr nishantjr commented Apr 20, 2020

This has two advantages:

  • It is more efficient, since when executing a strategy rules only try matching on the first goal, and not all the goals in the goal cell
  • When functions use local-contexts we no longer need to specify a goalId

@nishantjr nishantjr changed the title configuration: Replace Set of <goal>s with list. Only first goal is active Use a list of <goal>s instead of a set Apr 29, 2020
Copy link
Collaborator

@h0nzZik h0nzZik left a comment

Choose a reason for hiding this comment

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

What happens when user (using Kore) specifies multiple goals? How does the list of goals look when proving the second goal? Is the second goal on top of the list?

@nishantjr
Copy link
Member Author

Since the k cell is merged with the the claim cell, $PGM is part of an initial goal.
Multiple claims are dispatched as subgoals one at a time with the first one being proved first.

@h0nzZik h0nzZik merged commit ffbb633 into master Apr 29, 2020
@h0nzZik h0nzZik deleted the list-of-claims branch April 29, 2020 19:51
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