hero image

Discrete Math Resources

Resources curated by the CompSciLib team to help you ace your Discrete Math course.

Symbols and Definitions

Common discrete math symbols, definitions, and formulas, all in one place.

Logic

NameSymbolMeaningNotation
PropositionDefinition

A sentence that is either true or false, but not both.

ContradictionDefinition

A proposition that is always false.

ContingencyDefinition

A proposition that is neither a tautology nor a contradiction.

TautologyDefinition

A proposition that is always true.

Goldbach ConjectureConjecture

Every even integer greater than 2 can be expressed as the sum of two prime numbers.

Truth TableDefinition

A table used to determine the truth value of a logical expression based on all possible combinations of input truth values.

Conjunction

p AND q

pq

Disjunction

p OR q

pq

Negation

¬, ,

NOT

¬p, p, p

Implication, Conditional

If p, then q | p implies q

pq

Biconditional

p if and and only if q

pq

Logical Equivalence

p and q have identical truth values.

pq

Commutative LawsLaw

pqqppqqp

Associative LawsLaw

(pq)rp(qr)(pq)rp(qr)

Distributive LawsLaw

p(qr)(pq)(pr)p(qr)(pq)(pr)

Identity LawsLaw

pFppTp

Negation LawsLaw

p¬pFp¬pT

Idempotent LawsLaw

pppppp

Domination LawsLaw

pFFpTT

Absorption LawsLaw

p(pq)pp(pq)p

DeMorgan's LawsLaw

¬(pq)(¬p)(¬q)¬(pq)(¬p)(¬q)

Double Negation LawLaw

¬(¬p)p

ImplicationLaw

pq¬pq

Modus ponensRule

pqpq

Modus tollensRule

pq¬q¬p

EliminationRule

pqpq

TransitivityRule

pqqrpr

Converse ErrorFallacy

pqqp

Inverse ErrorFallacy

pqpq

Universal Quantifier

For all x, p(x)

xp(x)

Existential Quantifier

There exists x such that p(x)

xp(x)

Sets

NameSymbolMeaningNotation
SetDefinition

A collection of objects, enclosed in braces.

A={1,2,3,4}

Element, MemberDefinition

An object in a set.

Cardinality, Size

|X|

The total number of elements in a set.

A={1,2,3,4}.|A|=4

Set Builder Notation

X={expression:rule}

A special notation used to describe sets that are too complex to list between braces.

E={4,2,0,2,4}E={2n:nZ}

Finite SetDefinition

A set with a countable amount of elements.

Infinite SetDefinition

A set with an infinite amount of elements.

Ordered Pair

(x,y)

A list x,y of two things x and y.

Empty Set

, {}

A set that has no elements.

Universal Set

U

The universal set.

Set Complement

A

Let A be a set with a universal set U. The complement of A is the set A=UA.

Natural Numbers

N

The set of natural numbers (Positive Integers)

N={1,2,3,4,5,6,7,}

Integers

Z

The set of integers

Z={,3,2,1,0,1,2,3,4,}

Rational Numbers

Q

The set of rational numbers

Q={x:x=mn, where m,nZ and n0}

Real Numbers

R

The set of real numbers

Powerset

P(A)

PowerSet

Element

Is an element of

Subset

Is an subset of

Proper Subset

Is a proper subset of

Set Intersection

Set Intersection

Set Union

Set Union

Cartesian Product

×

The multiplication of two sets A and B, resulting in a set of ordered pairs of elements from A and B.

A×B={(a,b):aA,bB}

Cartesian Power

An

The cartesian product of a set A with itself n times.

An=A×A××A={(x1,x2,,xn):x1,x2,,xnA}

Set Difference

The difference of two sets A and B is the set of all elements that are in A but not in B.

AB

Counting

NameSymbolMeaningNotation
ListDefinition

An ordered sequence of objects, enclosed in parenthesis.

(a,b,c,d,e)

Empty ListDefinition

A special list with no entries.

()

Multiplication principleDefinition

Suppose in making a list of length n there are a1 possible choices for the first entry, a2 possible choices for the second entry, a3 possible choices for the third entry, and so on. Then the total number of different lists that can be made this way is the product of a1a2a3an.

Connect with Us

Support our mission in making computer science easier by following our socials
and registering for our free student events!

Instagram
Discord
Eventbrite
TikTok
Twitter
LinkedIn
Slack
Youtube