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

Davis-Putnam Mode #87

Open
wants to merge 62 commits into
base: master
Choose a base branch
from
Open

Davis-Putnam Mode #87

wants to merge 62 commits into from

Conversation

jssunray34
Copy link

This feature was implemented as a final project by Jenny Gao (@jeninyg), Mason duBoef (@mduboef), and Jody Sunray (@jssunray34) for Bram van Heuveln's Spring 2023 Computability and Logic course at RPI.

Details about the implementation can be found here: https://github.com/Bram-Hub/Willow/blob/tautology_dp/DP_developer_guide.md.

A user guide for Davis-Putnam mode can be found here: https://github.com/Bram-Hub/Willow/blob/tautology_dp/DP_userguide.md.

We primarily used the following two trees to test our implementation: simple_open_branch_DP.willow and closed_branches_DP_hw4.willow.

Note: old .willow files are no longer supported. This is due to DP statements having 2 antecedents (a parent statement and literal branch), changing the structure of the tree.

jeninyg and others added 30 commits March 26, 2023 20:02
Co-Authored-By: Jody Sunray <[email protected]>
Co-Authored-By: Jenny Gao <[email protected]>
Co-Authored-By: Jenny Gao <[email protected]>
ToDo
- add checks for when assertion gets absorbed by intermediate steps

Co-Authored-By: Jody Sunray <[email protected]>
Co-Authored-By: Jenny Gao <[email protected]>
Co-Authored-By: Jody Sunray <[email protected]>
Co-Authored-By: Jody Sunray <[email protected]>
ToDo:
- validate (isDecomposed)
- tauts will have too many things in decomposition array. ensure it stil validates

Co-Authored-By: Jenny Gao <[email protected]>
- disabled calles to isDecomposed (will need to circle back) on these

Co-Authored-By: Jody Sunray <[email protected]>
Co-Authored-By: Jody Sunray <[email protected]>
Co-Authored-By: Jody Sunray <[email protected]>
Co-Authored-By: Jody Sunray <[email protected]>
Co-Authored-By: Jody Sunray <[email protected]>
- remove extraneous comments
- add some comments
- fix correctness error codes
also fixed issue related to branch literals (when checking the correctness of the tree, we weren't storing nodes in the decomposition of any literal, which was breaking the representation check)
jssunray34 and others added 28 commits April 26, 2023 11:15
TODO: make this only render if in DP mode
Branch literal labels, handle terminators, code cleanup
Co-Authored-By: Jenny Gao <[email protected]>
edited the validate function for closed terminator to allow for selection of two antecedents, as opposed to just the contradiction symbol
we have to clear out the antecedents array for statements in the deleted statement's decomposition
@jeninyg jeninyg requested a review from jputlock April 28, 2023 20:53
@jputlock
Copy link
Collaborator

jputlock commented May 3, 2023

Haven't had time to review this yet -- I'm taking a brief look now but nothing too in depth.

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.

4 participants