Discrete Mathematics Cheat Sheet

Discrete math essentials — propositional logic, predicates, quantifiers, proof techniques, relations, functions, and induction for computer science.

Last Updated: July 15, 2025

Propositional Logic

ConnectiveSymbolTruth Condition
Conjunction (AND)p ∧ qTrue only when both true
Disjunction (OR)p ∨ qTrue when at least one true
Negation (NOT)¬pOpposite truth value
Implicationp → qFalse only when p true, q false
Biconditionalp ↔ qTrue when p and q same value

Quantifiers

QuantifierSymbolMeaning
Universal∀x P(x)"For all x, P(x) is true"
Existential∃x P(x)"There exists an x where P(x) is true"
Negation¬∀x P(x) ≡ ∃x ¬P(x)Universal negation becomes existential
Negation¬∃x P(x) ≡ ∀x ¬P(x)Existential negation becomes universal

Proof Techniques

TechniqueHow It Works
DirectAssume p, derive q through logical steps
ContrapositiveProve ¬q → ¬p instead of p → q
ContradictionAssume ¬(p → q) = p ∧ ¬q, derive contradiction
InductionBase case P(1) + inductive step P(k) → P(k+1)
ExhaustionCheck all finite cases one by one

Relations & Functions

PropertyDefinition
Reflexive∀a ∈ A: aRa (every element relates to itself)
Symmetric∀a,b ∈ A: aRb → bRa
Transitive∀a,b,c ∈ A: aRb ∧ bRc → aRc
EquivalenceReflexive + Symmetric + Transitive
Injectivef(a) = f(b) → a = b (one-to-one)
Surjective∀y ∈ B ∃x ∈ A: f(x) = y (onto)
BijectiveInjective + Surjective (one-to-one correspondence)
Pro Tip: In discrete math, every proof is either direct, by contradiction, contrapositive, or induction. If you cannot classify your proof into one of these, you do not have a proof yet.
Part of the Empire Builder Network