Logic and Algorithms - Symbol Definitions

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/54

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:27 PM on 4/13/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

55 Terms

1
New cards

AND (conjunction) — P ∧ Q is true only when both P and Q are true

2
New cards

OR (disjunction) — P ∨ Q is true when at least one of P or Q is true

3
New cards

¬

NOT (negation) — flips the truth value of P; also written ~P

4
New cards

Implies (conditional) — "if P then Q"; false only when P is true and Q is false

5
New cards

If and only if (biconditional) — true when P and Q have the same truth value

6
New cards

XOR (exclusive or) — true when exactly one of P, Q is true, not both

7
New cards

For all (universal quantifier) — ∀x P(x) means P(x) holds for every x in the domain

8
New cards

There exists (existential quantifier) — ∃x P(x) means at least one x makes P(x) true

9
New cards

∃!

There exists exactly one — exactly one x satisfies P(x)

10
New cards

Models / satisfies — A ⊨ P means A makes P true (semantic entailment)

11
New cards

Proves (syntactic turnstile) — A ⊢ P means P is derivable from A using proof rules

12
New cards

Logical equivalence — P and Q have the same truth table; interchangeable in any formula

13
New cards

Tautology — always true regardless of variable assignments

14
New cards

Contradiction — always false regardless of variable assignments

15
New cards

Element of — x ∈ S means x is a member of set S; ∉ means not a member

16
New cards

Subset of — every element of A is also in B; ⊂ means proper subset (A ≠ B)

17
New cards

Union — all elements in A, in B, or in both

18
New cards

Intersection — only elements that appear in both A and B

19
New cards

Set difference — A \ B is elements in A that are not in B; also written A − B

20
New cards

Aᶜ

Complement — all elements in the universal set U that are not in A; also written Ā

21
New cards

Empty set — the set with no elements; note {∅} is not empty

22
New cards

𝒫(S)

Power set — set of all subsets of S; if |S| = n then |𝒫(S)| = 2ⁿ

23
New cards

|S|

Cardinality — number of elements in S; for infinite sets, compared via bijections

24
New cards

A × B

Cartesian product — set of all ordered pairs (a, b) where a ∈ A, b ∈ B

25
New cards

Integers — {…, −2, −1, 0, 1, 2, …}; ℤ⁺ = positive integers only

26
New cards

Natural numbers — {0, 1, 2, …} or {1, 2, 3, …} depending on convention

27
New cards

Rational numbers — all numbers expressible as p/q where p, q ∈ ℤ and q ≠ 0

28
New cards

Real numbers — all points on the number line; uncountably infinite

29
New cards

f: A→B

Function notation — f maps every element of domain A to exactly one element of codomain B

30
New cards

O(·)

Big-O (upper bound) — f grows no faster than g in the worst case; e.g. O(n log n)

31
New cards

Ω(·)

Big-Omega (lower bound) — f grows at least as fast as g; describes a complexity floor

32
New cards

Θ(·)

Big-Theta (tight bound) — f grows exactly like g; both O(g) and Ω(g)

33
New cards

o(·)

Little-o (strict upper bound) — f grows strictly slower than g; f/g → 0

34
New cards

log n

Logarithm — in algorithms, base 2 (lg) by default; appears in divide-and-conquer runtimes

35
New cards

⌊x⌋

Floor — rounds x down to the nearest integer; ⌊3.9⌋ = 3

36
New cards

⌈x⌉

Ceiling — rounds x up to the nearest integer; ⌈3.1⌉ = 4

37
New cards

T(n)

Runtime / recurrence — running time on input size n; e.g. T(n) = 2T(n/2) + n

38
New cards

Σ

Sigma (summation) — Σᵢ₌₁ⁿ f(i) adds f(i) for every i from 1 to n

39
New cards

Π

Pi (product) — Πᵢ₌₁ⁿ f(i) multiplies f(i) for every i from 1 to n

40
New cards

n!

Factorial — n × (n−1) × … × 1; counts arrangements; 0! = 1 by definition

41
New cards

P(n,r)

r-permutation — n!/(n−r)!; ordered selections of r items from n; order matters

42
New cards

C(n,r)

r-combination ("n choose r") — n!/(r!(n−r)!); unordered selections of r from n

43
New cards

(n r)

Binomial coefficient — same as C(n,r); appears in Pascal's triangle and the binomial theorem

44
New cards

2ⁿ

Subsets of an n-element set — also the number of n-bit strings

45
New cards

Therefore — marks the conclusion of a logical argument

46
New cards

Because — marks the justification or reason for a step

47
New cards

□ / QED

End of proof — signals the proof is complete; also written ■ or ∎

48
New cards

a | b

Divides — a divides b evenly; ∃k ∈ ℤ such that b = a·k; not a fraction

49
New cards

a ∤ b

Does not divide — no integer k satisfies b = a·k

50
New cards

a ≡ b (mod m)

Congruence mod m — a and b have the same remainder when divided by m

51
New cards

gcd(a,b)

Greatest common divisor — largest integer dividing both a and b; gcd(12,8) = 4

52
New cards

lcm(a,b)

Least common multiple — smallest positive integer divisible by both a and b; lcm(4,6) = 12

53
New cards

Implies (proof writing) — one statement directly follows from another in an active deduction step

54
New cards

WLOG

Without loss of generality — one case covers all symmetric cases by symmetry

55
New cards

IH

Inductive hypothesis — the assumption made in an induction proof (P(k) or all P(i) for base ≤ i ≤ k)