forked from glaserL/viasp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit improves the recursion justifier program for showing correct recursive subgraphs for recursion with choice. For example, the rule for a loop recursion with choice is as follows: ``` % input rule: {b(X)} :- b(X-1), a(X). % justifier rule: h(n,b(X),(b((X-1)),a(X))) :- model(a(X)); model(b((X-1))); @Derivable(b(X)) = 1, not model(b(X)). ``` The addition is the @Derivable(b(X)) = 1 condition, which is used to check if the super-node contains the b(X) symbol. If it is in the super- node, it can be derived. If it is not in the super-node, it cannot be derived. Resolves: #12
- Loading branch information
1 parent
19f2382
commit 9cab207
Showing
3 changed files
with
10 additions
and
5 deletions.
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