Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

Mathematical Logic Formulas

32 formulas
Idempotent LawsGo to
Commutative LawsGo to
Associative LawsGo to
Distributive LawsGo to
Identity LawsGo to
Domination LawsGo to
Negation LawsGo to
Double NegationGo to
De Morgan LawsGo to
Absorption LawsGo to
Redundancy LawsGo to
Monotonicity LawsGo to
Conditional EquivalencesGo to
Biconditional EquivalencesGo to
Tautology and Contradiction DualityGo to

Idempotent Laws

(2 formulas)

Idempotent Law for Conjunction

PPPP \land P \equiv P
See details
Back to top
explanationrelated formulasrelated definitions
Conjoining a proposition with itself yields the original proposition. The connective adds no new information when both operands are identical.
Back to top

Idempotent Law for Disjunction

PPPP \lor P \equiv P
See details
Back to top
explanationrelated formulasrelated definitions
Disjoining a proposition with itself yields the original proposition. Repetition under OR contributes nothing new.
Back to top

Commutative Laws

(2 formulas)

Commutative Law for Conjunction

PQQPP \land Q \equiv Q \land P
See details
Back to top
explanationrelated formulasrelated definitions
Order of operands does not affect the truth value of a conjunction. Both arrangements have identical truth tables.
Back to top

Commutative Law for Disjunction

PQQPP \lor Q \equiv Q \lor P
See details
Back to top
explanationrelated formulasrelated definitions
Order of operands does not affect the truth value of a disjunction. Both arrangements have identical truth tables.
Back to top

Associative Laws

(2 formulas)

Associative Law for Conjunction

(PQ)RP(QR)(P \land Q) \land R \equiv P \land (Q \land R)
See details
Back to top
explanationrelated formulasrelated definitions
Grouping does not affect the truth value of a chain of conjunctions. Parentheses can be omitted when only AND connectives appear, justifying the unparenthesized form PQRP \land Q \land R.
Back to top

Associative Law for Disjunction

(PQ)RP(QR)(P \lor Q) \lor R \equiv P \lor (Q \lor R)
See details
Back to top
explanationrelated formulasrelated definitions
Grouping does not affect the truth value of a chain of disjunctions. Parentheses can be omitted when only OR connectives appear, justifying the unparenthesized form PQRP \lor Q \lor R.
Back to top

Distributive Laws

(2 formulas)

Distributive Law of Conjunction over Disjunction

P(QR)(PQ)(PR)P \land (Q \lor R) \equiv (P \land Q) \lor (P \land R)
See details
Back to top
explanationvariantsrelated formulasrelated definitions
Conjunction distributes over disjunction: a single AND with a parenthesized OR can be rewritten as an OR of two ANDs. This is the core step for converting formulas into Disjunctive Normal Form.
Back to top

Distributive Law of Disjunction over Conjunction

P(QR)(PQ)(PR)P \lor (Q \land R) \equiv (P \lor Q) \land (P \lor R)
See details
Back to top
explanationvariantsrelated formulasrelated definitions
Disjunction distributes over conjunction: a single OR with a parenthesized AND can be rewritten as an AND of two ORs. This is the core step for converting formulas into Conjunctive Normal Form.
Back to top

Identity Laws

(2 formulas)

Identity Law for Conjunction

PPP \land \top \equiv P
See details
Back to top
explanationnotationrelated formulasrelated definitions
Conjoining any proposition with the always-true constant \top leaves the proposition unchanged. The truth constant is the identity element for AND.
Back to top

Identity Law for Disjunction

PPP \lor \bot \equiv P
See details
Back to top
explanationnotationrelated formulasrelated definitions
Disjoining any proposition with the always-false constant \bot leaves the proposition unchanged. The falsity constant is the identity element for OR.
Back to top

Domination Laws

(2 formulas)

Domination Law for Conjunction

PP \land \bot \equiv \bot
See details
Back to top
explanationnotationrelated formulasrelated definitions
Conjoining any proposition with the always-false constant \bot yields \bot. Falsity dominates conjunction: a single false operand forces the entire AND to be false.
Back to top

Domination Law for Disjunction

PP \lor \top \equiv \top
See details
Back to top
explanationnotationrelated formulasrelated definitions
Disjoining any proposition with the always-true constant \top yields \top. Truth dominates disjunction: a single true operand forces the entire OR to be true.
Back to top

Negation Laws

(2 formulas)

Law of Excluded Middle

P¬PP \lor \neg P \equiv \top
See details
Back to top
explanationconditionsrelated formulasrelated definitions
Every proposition is either true or false — there is no third option. The disjunction of a proposition with its own negation is always true, regardless of the truth value of PP.
Back to top

Law of Non Contradiction

P¬PP \land \neg P \equiv \bot
See details
Back to top
explanationvariantsrelated formulasrelated definitions
No proposition can be simultaneously true and false. The conjunction of a proposition with its own negation is always false, regardless of the truth value of PP.
Back to top

Double Negation

(1 formula)

Double Negation Law

¬(¬P)P\neg(\neg P) \equiv P
See details
Back to top
explanationconditionsrelated formulasrelated definitions
Negating a proposition twice returns the original proposition. Negation is an involution: applying it an even number of times has no net effect.
Back to top

De Morgan Laws

(2 formulas)

De Morgan Law for Conjunction

¬(PQ)¬P¬Q\neg(P \land Q) \equiv \neg P \lor \neg Q
See details
Back to top
explanationderivationrelated formulasrelated definitions
Negating a conjunction is equivalent to disjoining the negations of its parts. The negation crosses the parentheses, the connective flips from AND to OR, and each operand is negated.
Back to top

De Morgan Law for Disjunction

¬(PQ)¬P¬Q\neg(P \lor Q) \equiv \neg P \land \neg Q
See details
Back to top
explanationderivationrelated formulasrelated definitions
Negating a disjunction is equivalent to conjoining the negations of its parts. The negation crosses the parentheses, the connective flips from OR to AND, and each operand is negated.
Back to top

Absorption Laws

(2 formulas)

Absorption Conjunction Form

P(PQ)PP \land (P \lor Q) \equiv P
See details
Back to top
explanationrelated formulasrelated definitions
When PP already appears at the outer AND, wrapping it together with anything inside an inner OR adds no information — the result simplifies back to PP. The inner disjunction is "absorbed" by the outer PP.
Back to top

Absorption Disjunction Form

P(PQ)PP \lor (P \land Q) \equiv P
See details
Back to top
explanationrelated formulasrelated definitions
When PP already appears at the outer OR, wrapping it together with anything inside an inner AND adds no information — the result simplifies back to PP. The inner conjunction is "absorbed" by the outer PP.
Back to top

Redundancy Laws

(2 formulas)

Redundancy Law for Disjunction

P(QP)PQP \lor (Q \lor P) \equiv P \lor Q
See details
Back to top
explanationderivationrelated formulasrelated definitions
If PP already participates in a disjunction, repeating it adds no information. The duplicate is dropped, leaving the simpler PQP \lor Q.
Function machine
P(QP)P \lor (Q \lor P)
(PP)Q(P \lor P) \lor Q
PQP \lor Q
commute, associate
idempotent
Back to top

Redundancy Law for Conjunction

P(QP)PQP \land (Q \land P) \equiv P \land Q
See details
Back to top
explanationderivationrelated formulasrelated definitions
If PP already participates in a conjunction, repeating it adds no information. The duplicate is dropped, leaving the simpler PQP \land Q.
Function machine
P(QP)P \land (Q \land P)
(PP)Q(P \land P) \land Q
PQP \land Q
commute, associate
idempotent
Back to top

Monotonicity Laws

(2 formulas)

Disjunction Introduction

P(PQ)P \to (P \lor Q)
See details
Back to top
explanationconditionsrelated formulasrelated definitions
From any true proposition PP, one may infer the disjunction of PP with anything. Adding alternatives to a true claim cannot make it false. Also called the addition rule.
Back to top

Conjunction Elimination

(PQ)P(P \land Q) \to P
See details
Back to top
explanationconditionsvariantsrelated formulasrelated definitions
From a conjunction one may infer either of its conjuncts. If PQP \land Q is true, then PP alone must be true. Also called the simplification rule.
Back to top

Conditional Equivalences

(4 formulas)

Material Implication

PQ¬PQP \to Q \equiv \neg P \lor Q
See details
Back to top
explanationderivationrelated formulasrelated definitions
A conditional can be rewritten as a disjunction. The conditional fails only when PP is true and QQ is false — equivalently, when ¬P\neg P is false and QQ is false, i.e. when ¬PQ\neg P \lor Q is false. In every other case both expressions are true.
Back to top

Contrapositive Equivalence

PQ¬Q¬PP \to Q \equiv \neg Q \to \neg P
See details
Back to top
explanationderivationrelated formulasrelated definitions
A conditional is logically equivalent to its contrapositive — both parts negated and swapped. This equivalence is the basis for proof by contraposition: to prove PQP \to Q, one may instead prove ¬Q¬P\neg Q \to \neg P.
Function machine
PQP \to Q
¬PQ\neg P \lor Q
¬Q¬P\neg Q \to \neg P
Material Implication
commute, Double Negation
Back to top

Negation of a Conditional

¬(PQ)P¬Q\neg(P \to Q) \equiv P \land \neg Q
See details
Back to top
explanationderivationrelated formulasrelated definitions
The negation of a conditional is a conjunction, not another conditional. To deny "if PP then QQ" is to assert that PP holds while QQ fails — the one case in which the implication is broken.
Function machine
¬(PQ)\neg(P \to Q)
¬(¬PQ)\neg(\neg P \lor Q)
P¬QP \land \neg Q
Material Implication
De Morgan, Double Negation
Back to top

Exportation

(PQ)RP(QR)(P \land Q) \to R \equiv P \to (Q \to R)
See details
Back to top
explanationderivationrelated formulasrelated definitions
A conditional with a conjunctive antecedent can be rewritten as a chain of conditionals — pulling one conjunct out into a separate hypothesis. Used to convert between curried and uncurried forms of multi-premise rules.
Back to top

Biconditional Equivalences

(3 formulas)

Biconditional as Two Conditionals

PQ(PQ)(QP)P \leftrightarrow Q \equiv (P \to Q) \land (Q \to P)
See details
Back to top
explanationrelated formulasrelated definitions
A biconditional asserts both directions of implication at once. To prove PQP \leftrightarrow Q, one proves PQP \to Q and QPQ \to P separately; this equivalence is the foundation of every "if and only if" proof.
Back to top

Biconditional as Disjunction of Conjunctions

PQ(PQ)(¬P¬Q)P \leftrightarrow Q \equiv (P \land Q) \lor (\neg P \land \neg Q)
See details
Back to top
explanationderivationrelated formulasrelated definitions
A biconditional is true exactly when both operands share the same truth value — either both true or both false. The disjunction enumerates these two satisfying cases, putting the formula directly into Disjunctive Normal Form.
Back to top

Negation of a Biconditional

¬(PQ)(P¬Q)(¬PQ)\neg(P \leftrightarrow Q) \equiv (P \land \neg Q) \lor (\neg P \land Q)
See details
Back to top
explanationvariantsrelated formulasrelated definitions
The negation of a biconditional is the exclusive-or pattern: true when PP and QQ disagree. The two disjuncts enumerate the two ways disagreement can occur — PP true with QQ false, or PP false with QQ true.
Back to top

Tautology and Contradiction Duality

(2 formulas)

Negation of Tautology

¬\neg \top \equiv \bot
See details
Back to top
explanationnotationrelated formulasrelated definitions
The negation of the truth constant is the falsity constant. Tautology and contradiction are duals under negation: applying ¬\neg to a formula that is always true produces a formula that is always false.
Back to top

Negation of Contradiction

¬\neg \bot \equiv \top
See details
Back to top
explanationnotationrelated formulasrelated definitions
The negation of the falsity constant is the truth constant. Tautology and contradiction are duals under negation: applying ¬\neg to a formula that is always false produces a formula that is always true.
Back to top
Idempotent Laws
Idempotent Law for ConjunctionIdempotent Law for Disjunction
Commutative Laws
Commutative Law for ConjunctionCommutative Law for Disjunction
Associative Laws
Associative Law for ConjunctionAssociative Law for Disjunction
Distributive Laws
Distributive Law of Conjunction over DisjunctionDistributive Law of Disjunction over Conjunction
Identity Laws
Identity Law for ConjunctionIdentity Law for Disjunction
Domination Laws
Domination Law for ConjunctionDomination Law for Disjunction
Negation Laws
Law of Excluded MiddleLaw of Non Contradiction
Double Negation
Double Negation Law
De Morgan Laws
De Morgan Law for ConjunctionDe Morgan Law for Disjunction
Absorption Laws
Absorption Conjunction FormAbsorption Disjunction Form
Redundancy Laws
Redundancy Law for DisjunctionRedundancy Law for Conjunction
Monotonicity Laws
Disjunction IntroductionConjunction Elimination
Conditional Equivalences
Material ImplicationContrapositive EquivalenceNegation of a ConditionalExportation
Biconditional Equivalences
Biconditional as Two ConditionalsBiconditional as Disjunction of ConjunctionsNegation of a Biconditional
Tautology and Contradiction Duality
Negation of TautologyNegation of Contradiction