forked from glaserL/viasp
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Explanation arrow: which rule justifies the atom? #22
Comments
stephanzwicknagl
changed the title
which rule justifies atom in explanation
Explanation arrow: which rule justifies the atom?
Dec 2, 2023
example program
Justifier program before
Justifier program edit
|
stephanzwicknagl
added a commit
that referenced
this issue
Aug 8, 2024
Upon clicking an atom, the rule that derives it is highlighted in the rule header, aside from showing the arrows to reason atoms. To find the rule that derives an atom from a component with multiple rules, the justifier program was modified: ```` h(I, J, d, r) :- d, r. ``` where I is the index of the component, J is the index of the rule within the component, d is the atom, and r are the reason atoms. The node dataclass stores a dictionary mapping the atoms in the node to the hash of the rule it derives from. This attribute of the node is queried through the API when an atom is clicked. The React App then stores the highlighted rules in the context HighlightedSymbol in the shape ``` HighlightedRule { rule_hash: string, color: string, source_id: string } ``` Contributes: #22
stephanzwicknagl
added a commit
that referenced
this issue
Aug 14, 2024
For the justifier program, we have a rule hash that is used to identify the rule that justifies an atom. This hash is computed by hashing the string of the rule. This ensures that even for multiple dependants of the same rule, the hash is always the same. Contributes: #22
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: