Tautology Checker

Check for Tautology

Enter a logical expression to check if it is a tautology (always evaluates to true for all possible inputs).

What is a Tautology?

A tautology is a logical expression that is always true, regardless of the truth values of its variables. In other words, the expression evaluates to true for every possible combination of input values.

Tautologies are important in logic because they represent statements that are necessarily true. They form the basis of logical proofs and are used to establish the validity of arguments. For more on tautologies in logic, see Stanford Encyclopedia of Philosophy.

Examples of Tautologies

How Tautology Checking Works

The checker generates a complete truth table for the expression and examines whether all output values are true.

Algorithm

  1. Generate truth table for the expression
  2. Check each row's output value
  3. If all outputs are true, it's a tautology
  4. If any output is false, it's not a tautology

This method is definitive but computationally expensive for expressions with many variables.

Examples of Tautologies and Non-Tautologies

Tautologies

ExpressionDescriptionWhy It's a Tautology
A ∨ ¬AExcluded MiddleEither A is true or not A is true
A → (B → A)StrengtheningIf A is true, then B→A is true regardless of B
(A ∧ B) ↔ (B ∧ A)CommutativityAND is commutative
¬(A ∧ ¬A)Non-contradictionCannot be both true and false

Non-Tautologies

ExpressionDescriptionCounterexample
A ∧ ¬AContradictionAlways false
AVariableA=F makes it false
A ∨ BDisjunctionA=F, B=F makes it false
A → BImplicationA=T, B=F makes it false

Detailed Tautology Check Example

Let's check if A ∨ ¬A is a tautology:

A¬AA ∨ ¬A
TFT ∨ F = T
FTF ∨ T = T

Since both rows evaluate to true, A ∨ ¬A is a tautology.

Now check A ∧ B:

ABA ∧ B
TTT ∧ T = T
TFT ∧ F = F
FTF ∧ T = F
FFF ∧ F = F

Since row 2, 3, and 4 are false, A ∧ B is not a tautology.

Common Tautological Forms

Logical Laws as Tautologies

De Morgan's Laws

Applications of Tautology Checking

Mathematics

Computer Science

Philosophy

Advanced Tautology Detection

Beyond truth table enumeration:

These methods can prove tautologies without checking all cases, but require more sophisticated algorithms.

Comparison with Related Concepts

ConceptDefinitionExample
TautologyAlways trueA ∨ ¬A
ContradictionAlways falseA ∧ ¬A
ContingencySometimes true, sometimes falseA
SatisfiableAt least one true caseA ∨ B

Tips for Tautology Checking

When to Use

Best Practices