Open Study Commons

Tool

Truth-table tool

Propositional formulas only. See sheet 04 for the symbols and sheet 05 for the method.

This tool needs JavaScript, and your browser is not running it. The tables on the sheets themselves work without it, and the method on sheet 05 can be done with a pencil.

What you can type

Capital or small letters stand for statements, and a longer name such as Rain or P1 works too. You can use the buttons above or the keyboard spellings below.

Accepted spellings
ConnectiveSymbolAlso accepted
not¬~, !, not
and∧&, &&, ^, /\, and
or∨v, +, \/, or, or a vertical bar
if, then→->, =>, ⊃, implies
if and only if↔<->, <=>, ≡, iff
exclusive or⊕xor
always true, always false⊤, ⊥true, false

Without brackets, ¬ binds most tightly, followed by ∧, ∨, ⊕, → and ↔, and → groups to the right, so P → Q → R reads as P → (Q → R). The tool prints your formula with brackets added, so you can check that it read what you meant.

What the answers mean

Tautology means true in every row, contradiction means false in every row, and contingent means anything between. For an argument, a marked row is a counterexample: every premise true and the conclusion false. If no row is marked the argument is valid. Two formulas are equivalent when their columns agree in every row, and the tool marks any row where they do not.

The tool stops at eight letters, or 256 rows, because a table longer than that is not much use to read.

What it cannot do

It handles propositional logic only. It cannot see inside statements, so “All humans are mortal” is a single letter here, and a verdict of invalid may only mean the argument’s strength lies in structure the tool can’t see. sheet 05 gives an example, and sheet 10 explains the fix. It also has no opinion on whether your premises are true.

Everything runs in your browser. What you type goes into the address bar after the #, so you can copy a link to a result, but that part of an address is never sent to the server.

A few to try