Skip to content

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 of p.
  • Conjunction (p โˆง q): True only if both p and q are 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 if p = T and q = F. True otherwise (including vacuous truth when p = F).

  • Related Forms:

    • Converse: q โ†’ p (not equivalent).
    • Inverse: ยฌp โ†’ ยฌq (not equivalent).
    • Contrapositive: ยฌq โ†’ ยฌp (logically equivalent).
  • Biconditional (p โ†” q): True if p and q have 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ยฒ โ‰ฅ x over โ„š.

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))

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 โ€‹

  1. Direct Proof: Assume p โ†’ show q.
  2. Contrapositive: Prove ยฌq โ†’ ยฌp instead of p โ†’ q.
  3. Contradiction: Assume false โ†’ derive contradiction.
  4. Cases: Split into exhaustive cases.
  5. Constructive: Construct explicit example.
  6. 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: โˆš2 is 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 โŠ‚ B and A โ‰  B
  • Power Set: ๐’ซ(A) = set of all subsets

4.3 Boolean Operations โ€‹

  • Union A โˆช B, Intersection A โˆฉ B, Difference A \ B, Complement ฤ€
  • Disjoint: A โˆฉ B = โˆ…
  • Identities: Commutative, Associative, Distributive, De Morgan's Laws.

4.4 Russellโ€™s Paradox (Extra) โ€‹

  • No R exists such that x โˆˆ R โ†” x โˆ‰ x.

Chapter 5 โ€” Relations โ€‹

5.1 Basics โ€‹

  • Ordered pair (x, y)
  • Cartesian product A ร— B
  • Relation R โІ A ร— B, notation xRy โ†” (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