HomeMathematicsPropositional Logic Builder: Truth Tables, Parse Trees & Natural Deduction

🧩 Propositional Logic Builder: Truth Tables, Parse Trees & Natural Deduction

Interactive propositional-logic constructor: click variable (A/B/C) and operator buttons (AND/OR/NOT/XOR/IMPLIES/IFF) to build a formula, or load a preset (De Morgan, contraposition, excluded middle, majority). A recursive-descent parser builds the AST, which renders live as a canvas parse tree, a full truth table with tautology/contradiction verdict, and a step-revealing natural-deduction proof (Modus Ponens, Modus Tollens, Hypothetical/Disjunctive Syllogism) with rule labels.

Mathematics2DEasy60 FPS
mathematical-logic ↗ Open standalone
⚙ Under the hood

Interactive propositional-logic constructor: click variable (A/B/C) and operator buttons (AND/OR/NOT/XOR/IMPLIES/IFF) to build a formula, or load a preset (De Morgan, contraposition, excluded middle, majority). A recursive-descent parser builds the AST, which renders live as a canvas parse tree, a full truth table with tautology/contradiction verdict, and a step-revealing natural-deduction proof (Modus Ponens, Modus Tollens, Hypothetical/Disjunctive Syllogism) with rule labels.

Propositional LogicTruth TableParse TreeNatural DeductionBoolean Algebra

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)