-
Notifications
You must be signed in to change notification settings - Fork 43
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
Types specifying the simplify-implication
RPC endpoint
#3614
Open
geo2a
wants to merge
18
commits into
master
Choose a base branch
from
rpc-simplify-implication
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
83ea3fa
Add 'simplify-implication' endpoint
geo2a 1a91aea
Merge branch 'master' into rpc-simplify-implication
geo2a e8114e9
Merge remote-tracking branch 'origin/master' into rpc-simplify-implic…
geo2a 32ec748
Merge branch 'master' into rpc-simplify-implication
geo2a e919814
Return NotImplemented for SimplifyImplies
geo2a 1019618
Re-order types to minimize diff
geo2a 32dbb64
Rename `SimplifyImplies` to `SimplifyImplication` for consistency
geo2a 839fe34
Use `ValidityResult` for additional clarity
geo2a 60990ab
Reuse the `Condition` type for substitution and constrains
geo2a 8785dc9
Merge remote-tracking branch 'origin/master' into rpc-simplify-implic…
geo2a 5b82de9
Specify implication validity result
geo2a 501ad4c
Fix typo
geo2a 27c81b4
Make RPC implication types match the ones in Booster
geo2a 3f22ee1
Reshuffle SimplifyImplicationResult
geo2a 28bbb0a
Add an implementation stub of `simplify-implication` to `kore-rpc`
geo2a 0428527
Add `simplify-implication` docs
geo2a 6beee9b
Merge branch 'master' into rpc-simplify-implication
geo2a 6a712b2
Make ImplicationValidity tags lower-case
geo2a File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
`X => X`, response `ImplicationUnknown`, with empty substitution. `simplify-implication` is only implemented as a stub in `kore-rpc`. |
12 changes: 12 additions & 0 deletions
12
test/rpc-server/simplify-implication/implied-trivial/antecedent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"format": "KORE", | ||
"version": 1, | ||
"term": { | ||
"tag": "EVar", | ||
"name": "X", | ||
"sort": { | ||
"tag": "SortVar", | ||
"name": "S" | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
test/rpc-server/simplify-implication/implied-trivial/consequent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"format": "KORE", | ||
"version": 1, | ||
"term": { | ||
"tag": "EVar", | ||
"name": "X", | ||
"sort": { | ||
"tag": "SortVar", | ||
"name": "S" | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/rpc-server/simplify-implication/implied-trivial/definition.kore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../resources/empty/definition.kore |
1 change: 1 addition & 0 deletions
1
test/rpc-server/simplify-implication/implied-trivial/response.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"jsonrpc":"2.0","id":1,"result":{"validity":{"tag":"ImplicationUnknown","contents":{"tag":"MatchingUnknown","contents":[{"format":"KORE","version":1,"term":{"tag":"EVar","name":"X","sort":{"tag":"SortVar","name":"S"}}},{"format":"KORE","version":1,"term":{"tag":"EVar","name":"X","sort":{"tag":"SortVar","name":"S"}}}]}}}} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could use the same
via CustomJSON '[FieldLabelModifier '[CamelToKebab]]
as above. I think this is the naming convention in pyk?