If this is true, what else must be?
Logic is the study of which conclusions actually follow from what you already accept. It runs every computer chip, underpins every mathematical proof and is the best defence against a bad argument. Flip the switches, build truth tables, test arguments, step through proofs, and learn to name the tricks people use when the logic doesn’t hold.
Logical operators
Every statement is either true or false. Operators combine simple statements into compound ones, and each has an exact rule for when the result is true. Pick an operator, flip P and Q, and watch the diagram: the shaded area is everywhere the result is true.
Truth table builder
Type any statement using up to five letters and the operators below. The table lists every possible combination of true and false, works out each part step by step, and tells you whether the statement is always true (a tautology), never true (a contradiction) or depends on the facts.
You can also type not, and, or, xor, implies, iff or ! & | ^ -> <->.
Is the argument valid?
An argument is valid when the conclusion can’t be false while all the premises are true. Validity is about form, not facts: a valid argument with a false premise can still reach a false conclusion. The checker hunts through every row for a counterexample.
How proofs work
A proof is a chain of steps, each one following from the last by a rule everyone accepts. Mathematicians use a handful of strategies over and over. Step through five classics.
Logic gates: a computer that adds
In 1937 Claude Shannon showed that switching circuits obey George Boole’s algebra of logic. Every chip is built from gates that compute AND, OR, NOT and XOR on 1s and 0s. Five gates make a full adder: tap the inputs and watch it add three bits.
The Sum bit is 1 when an odd number of inputs are 1 (two XOR gates). The Carry bit is 1 when at least two are (two ANDs and an OR). Chain 64 of these and you can add 64-bit numbers; real processors use faster designs built from the same gates.
Knights and knaves
On Raymond Smullyan’s island, knights always tell the truth and knaves always lie. Tap each islander to call them a knight or a knave. Each statement shows whether your guess makes it consistent: a knight’s words must be true, a knave’s false.
Logical fallacies
A fallacy is a flaw in reasoning that makes an argument seem stronger than it is. Formal fallacies break the rules of logic itself. Informal ones use valid-looking structure but rely on irrelevance, hidden assumptions or slippery words. Spotting the fallacy doesn’t prove the conclusion false, only that this argument doesn’t support it.