Chapter 1 โ Propositional Logic โ
1.1 Propositions โ
- Definition: A proposition is a sentence that is either true (T) or false (F), not both. Its truth value is uniqueโeven if unknown.
- Non-Propositions: Questions, commands, expressions with unassigned variables (
x + y = 0), paradoxes (e.g., Liar Paradox: "This sentence is not true"). - Example (Liar Paradox): Assuming
R = "R is not true"leads to contradiction:R โ R โ R โ R. Not a proposition.
1.2 Boolean Connectives โ
- Negation (
ยฌp): Truth opposite ofp. - Conjunction (
p โง q): True only if bothpandqare true. - Disjunction (
p โจ q): Inclusive "or". True if at least one is true. - Note: Use "exclusive or" explicitly if needed.
1.3 Conditional Propositions โ
Implication (
p โ q): False only ifp = Tandq = F. True otherwise (including vacuous truth whenp = F).Related Forms:
- Converse:
q โ p(not equivalent). - Inverse:
ยฌp โ ยฌq(not equivalent). - Contrapositive:
ยฌq โ ยฌp(logically equivalent).
- Converse:
Biconditional (
p โ q): True ifpandqhave the same truth value.
1.4 Logical Equivalence โ
- Equivalence (
P โก Q): Same truth value for all substitutions. - Tautology: Always true.
- Contradiction: Always false.
- Key Identities: De Morgan, implication equivalence, double negation, idempotent, commutativity, associativity, distributivity.
Chapter 2 โ Predicate Logic โ
2.1 Predicates and Variables โ
- Variable: Placeholder with domain (e.g.,
x โ โค). - Predicate: Becomes proposition when variables are assigned. Example:
P(x): xยฒ โฅ xover โ.
2.2 Quantifiers โ
- Universal (
โx): True if predicate holds for all x. Counterexample disproves. - Existential (
โx): True if predicate holds for some x (witness). - Restricted Form:
โx โ D P(x)=โx (x โ D โ P(x));โx โ D P(x)=โx (x โ D โง P(x)).
2.3 Negation of Quantifiers โ
ยฌโx P(x) โ โx ยฌP(x)ยฌโx P(x) โ โx ยฌP(x)Examples:
- "Not every integer is even" โ
โn โ โค ยฌEven(n) - "No integer is both odd and even" โ
โn โ โค ยฌ(Odd(n) โง Even(n))
- "Not every integer is even" โ
2.4 Nested Quantifiers โ
- Order Matters:
โx โy Q(x,y) โ โy โx Q(x,y) - Unique Existential (
โ! x): Existence + uniqueness. - Negation: Flip quantifiers and negate predicate.
Chapter 3 โ Proofs โ
3.1 Mathematical Theories โ
- Components: Definitions, Axioms, Theorems, Lemmas, Corollaries.
- Deduction Rules: Modus ponens, universal instantiation, transitivity of implication.
3.2 Common Proof Techniques โ
- Direct Proof: Assume
pโ showq. - Contrapositive: Prove
ยฌq โ ยฌpinstead ofp โ q. - Contradiction: Assume false โ derive contradiction.
- Cases: Split into exhaustive cases.
- Constructive: Construct explicit example.
- Induction: Base case + inductive step.
3.3 Number Theory (Extra) โ
- Divisibility:
d | n โ n = dยทk. - Primes: Only divisible by 1 and itself.
- Fundamental Theorem: Unique prime factorization.
- Classic Proof:
โ2is irrational (contradiction using lowest terms).
Chapter 4 โ Sets โ
4.1 Basics โ
- Set: Unordered collection of elements. Notation:
x โ A(x in A),x โ A(x not in A). - Set Notations: Roster
{1,2,3}, Set-builder{x โ U : P(x)}, Replacement{t(x) : x โ A}. - Equality:
A = B โ โz (z โ A โ z โ B). - Empty Set:
โ.
4.2 Subsets โ
- Subset:
A โ B โ โz(z โ A โ z โ B) - Proper Subset:
A โ BandA โ B - Power Set:
๐ซ(A)= set of all subsets
4.3 Boolean Operations โ
- Union
A โช B, IntersectionA โฉ B, DifferenceA \ B, Complementฤ - Disjoint:
A โฉ B = โ - Identities: Commutative, Associative, Distributive, De Morgan's Laws.
4.4 Russellโs Paradox (Extra) โ
- No
Rexists such thatx โ R โ x โ x.
Chapter 5 โ Relations โ
5.1 Basics โ
- Ordered pair
(x, y) - Cartesian product
A ร B - Relation
R โ A ร B, notationxRy โ (x, y) โ R - n-ary relations: subsets of
Aโ ร โฆ ร Aโ.
5.2 Operations โ
- Composition:
S โ R - Inverse:
Rโปยน (S โ R)โปยน = Rโปยน โ Sโปยน
5.3 Graphs โ
- Binary relation: subset of
A ร A - Directed:
(V,D) - Undirected:
(V,E)with edges{x,y}
Chapter 6 โ Equivalence & Partial Orders โ
- Equivalence: Reflexive, Symmetric, Transitive
- Equivalence Class:
[x] = {y โ A : x โผ y} - Partition: Non-empty, disjoint, cover all elements
- Partial Order: Reflexive, Antisymmetric, Transitive
- Total Order: All pairs comparable
- Well-Ordering: Every non-empty subset of โคโฅb has smallest element
Chapter 7 โ Functions โ
- Definition:
f: A โ B(existence + uniqueness) - Domain / Codomain / Range
- Boolean function:
f: {T,F}โฟ โ {T,F} - Composition:
(g โ f)(x) = g(f(x)) - Identity:
id_A(x) = x - Inverse / Bijective / Surjective / Injective
Chapter 8 โ Cardinality โ
- Injection โ
|A| โค |B|(Pigeonhole) - Surjection โ
|A| โฅ |B|(Dual) - Bijection โ same cardinality
- Finite / Infinite
- Reflexive, Symmetric, Transitive properties
Chapter 9 โ Countability โ
- Countable: Injection to โ
- Equivalence: Countable โ โ surjection โ โ A or A=โ
- Examples: โ, โค, โรโ,
{0,1}* - Uncountable: Power set larger than set (Cantor)
- Non-computable: Halting problem
Chapter 10 โ Counting โ
- Addition / Difference / Inclusion-Exclusion
- Multiplication / Cartesian / Power Set Cardinality
- Permutations / Combinations / Factorial
- Pascalโs Formula:
C(n,r) + C(n,r+1) = C(n+1,r+1)
Chapter 11 โ Graphs โ
- Undirected Graph:
(V,E) - Subgraph, Path, Cycle, Cyclic/Acyclic, Connected Graph, Connected Component
- Key theorem: connected โ path exists
Chapter 12 โ Trees โ
- Tree: Connected, acyclic
- Properties: Unique path, removing edge disconnects, |E| = |V|-1
- Rooted Tree: Height, Parent/Child, Leaf/Internal
- Spanning Tree: Algorithm to get tree from connected graph
- Theorems: max leaves โค 2^h, internal vertices, total vertices