2021: Cole Feuer and David Wiser
The TruthFunctionalExpansion tool takes given First order logic statement as well as a universe of discourse, and then produces a proposition logic expression than can be validate using a short truth tree. This method specifically can be used to prove FO invalidity
How to use:
- 1: adds and to expression
- 2: adds or to expression
- 3: adds negation to expression
- 4: adds exists to expression
- 5: adds forall to expression
- 6: adds implies to expression
- 7: adds open parentheses to expression
- 8: adds closed parentheses to expression
- 9: adds biconditional to expression
- 10: adds x to expression
- 11: adds y to expression
- 12: adds z to expression
- 13: Universe of discourse display
- 14: Expression display
- 15: Entry box for expression
- 16: Entry box for universe of discourse
- 17: Run button
- 18: Reset button
- 19: Backspace universe of discourse
- 20: Backspace expression
- 21: Output display
Keyboard Shortcuts:
- ~ = not
- & = and
- | = or
- @ = for all
- \ = exists
- $ = implies
- % = bidirectional
- Implement validation of expanded expressions
- Fix backspace and reset (possibly resolved)
- Fix unicode conversion
- Download the repository
- Double click on LogicExpander1.6.py and you should see the application interface.
- Download the repository
- Open LogicExpander1.6.py with any python compiler and then run and you should see the application interface.
- certain sybmols from the character representation back into the unicode logic symbols yeilded strange results. Specifically, the or, if, and exists. You can find that the associated lines in the conv_str2Log function are commented out and thus remain as the internal character representation. This does not impede the functionality of the code however reduces the readability and forces the user to refrence the documentaion on what the symbold represent.
- the backspace and reset buttons were causing problems as the tkinter labels were not able to be destroyed visually although there variables do in fact change. A band-aid solution was applied which over write a blank string on top however there can still be dots in the background. Again, this is a purely a user expereince issue but doesnt mess up the functionality. (resolved)
- the parenhesis and x, y, z shortcuts can conflict with the entry box. If any of these symbols are typed into the entry box the will automatically be added to the expression causing it to double. (resolved)
- extra parenthesis are sometimes added which doesnt impact the logic but makes the output much harder to read.