How sebimarginean/logicheck works
Main Components
• User Interface (Tkinter GUI): This is the front-end of the application. It includes input fields, buttons for selecting operations, and areas to display the results.
• Input Handling & Event Triggering: The mechanism by which user input is received from the GUI and events (like button clicks) trigger logic evaluation.
• Logical Evaluation Engine: The core processing unit that parses, checks, and computes the logical status (whether expressions are equivalent, tautologies, or contradictions). This module implements the algorithms for evaluating the logical expressions using operators like &&, ||, !, =>, and <=>.
• Output Rendering: Although closely tied with the GUI, this part displays the results of the evaluations back to the user.
Mapping Relationships and Interactions
• From the GUI, data is passed to the Input Handling component, which then calls the Logical Evaluation Engine.
• The Logical Evaluation Engine processes the expression and sends the results back to the rendering mechanism in the GUI.
Architectural Patterns and Design Principles
a. View: Tkinter-based GUI.
b. Controller/Handler: Event handling logic that connects user input with the evaluation functions.
c. Model: Logical evaluation functions that perform the computations on the provided expressions.
• Separation of concerns, ensuring that UI and logic processing remain conceptually independent even in a compact script.
Relevant Technologies and Libraries
• Python as the programming language.
• Tkinter as the GUI framework.
• No external dependencies beyond standard Python libraries.