Before you begin, make sure you have JDK 17 or later installed on your machine and that you have access to the TautoTeacher 2.0 project source code. The build system is a single PowerShell script — no Maven, Gradle, or external dependencies are required. All source files live underDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AngelMoralesChazari/TautoTeacher-2.0/llms.txt
Use this file to discover all available pages before exploring further.
src/main/java and compile directly to a flat out/ directory.
Clone the repository
Download the project source from GitHub:The repository contains the full Java source tree under
src/main/java/tautoteacher2/, the core.lgs resource file under src/main/resources/logicscript/, and the compile.ps1 build script at the project root.Compile
Run the PowerShell build script from the project root. Pass the path to your JDK installation with The script performs three actions:
-JdkHome, or omit it if JAVA_HOME is already set in your environment:- Discovers every
.javafile undersrc\main\javarecursively. - Compiles them all with
javac --release 17 -encoding UTF-8into theout\directory. - Copies everything under
src\main\resourcesintoout\so thatcore.lgsand the app icon are available on the classpath at runtime.
Run the GUI
Launch the Swing desktop application:A window titled TautoTeacher 2.0 opens. The interface provides two input modes, selectable via a toggle at the top of the input panel:
- Formula mode — enter a propositional formula directly using logic symbols.
- Natural language mode — type a sentence in Spanish and let the NLP pipeline translate it.
Try the CLI
The Expected output:The CLI prints the translated formula, the propositional variable mapping, the analysis steps produced by each pipeline stage, and the final tautology/classification result from
LogicScriptCli entry point lets you test the NLP-to-formula pipeline from the terminal without opening the GUI:MotorLogico.Run regression tests
Verify the NLP pipeline against the full test suite:The harness runs 40 test cases in total: 38 natural-language sentences covering implication, conjunction, disjunction, equivalence, negation, elliptical forms, morphological variants, multi-clause compositions, and edge cases (empty input, whitespace-only), plus two If any case fails, the harness prints a
.lgs loader diagnostic checks. A clean run prints:FALLO line per failure with the input, the expected formula, and the formula actually produced, then exits with a non-zero status code.Your first formula
Once the GUI is running, switch to Formula mode and try a simple implication:p and q and classifies the formula as a contingency — it is true when p is false or when both are true, but false when p is true and q is false.
To see a tautology, enter the hypothetical syllogism:
V (true) in every row, and the classification panel will display TAUTOLOGÍA in green. The educational explanation panel shows the refutation-style proof, walking through why assuming the consequent false leads to a contradiction in the antecedent.