This guide walks you through installing LoTREC and running your first proof.
- Java 8 or later (Java 21 recommended)
- Download Java from Eclipse Adoptium or Oracle
- Download the latest release
- Extract the ZIP file to your preferred location
- Run the application:
- Windows: Double-click
bin/LoTREC.bat - Linux/macOS: Run
bin/LoTRECin terminal
- Windows: Double-click
git clone https://github.com/bilals/lotrec.git
cd lotrec
./gradlew build
./gradlew runWhen LoTREC starts, you'll see the Task Pane offering several options:
| Option | Description |
|---|---|
| Open Predefined Logic | Choose from 38 built-in logics (K, KT, S4, S5, etc.) |
| Open Existing File | Load a custom logic XML file |
| Create Your Own | Start defining a new logic from scratch |
Let's prove a formula in modal logic K:
- Click "Modal logic K..." in the Task Pane
- Or go to Logic → Open Predefined Logic and select Monomodal-K
The main window shows the loaded logic with four tabs:
| Tab | Contents |
|---|---|
| Connectors | Logical operators (not, and, or, nec, pos, etc.) |
| Rules | Inference rules that decompose formulas |
| Strategies | Order in which rules are applied |
| Predefined Formulas | Sample formulas to test |
In the "Premodels Construction Settings" panel at the bottom:
- Select a predefined formula from the dropdown, or
- Type your own formula in the text area
Formula syntax:
- Use prefix notation:
and P Qinstead ofP and Q - Example:
and nec P pos or P Qmeans□P ∧ ◇(P ∨ Q)
Click "Build Premodels" to start the tableau construction.
The result shows:
- Premodels List: All generated tableau branches
- Graph View: Visual representation of the current premodel
- Tableaux Tree: Overview of all tableaux (bottom panel)
- Open (non-closed) premodels indicate the formula is satisfiable
- All premodels closed indicates the formula is unsatisfiable
- For validity checking, test the negation of your formula
For detailed analysis, use "Step By Step..." instead of "Build Premodels":
This allows you to:
- Set breakpoints on specific rules
- Watch each rule application
- Pause and inspect intermediate states
For large proofs or extended sessions, increase Java memory:
Windows - Edit bin/LoTREC.bat:
set DEFAULT_JVM_OPTS=-Xmx512MLinux/macOS - Edit bin/LoTREC:
DEFAULT_JVM_OPTS="-Xmx512M"Common values: -Xmx512M (512 MB), -Xmx1024M (1 GB), -Xmx2048M (2 GB)
- User Guide - Learn all interface features
- Defining Logics - Create your own logics
- Predefined Logics - Explore built-in logics




