Discrete Mathematics: Propositional Logic, Quantifiers, and Set Theory

Propositional Logic Fundamentals

  • Definition of a Proposition:

    • A proposition is a declarative sentence that is either true or false, but not both.
    • Examples of propositions:
    • "Oregon is a state in the United States of America" is a proposition with a truth value of true.
    • "1+1=31 + 1 = 3" is a proposition with a truth value of false.
    • Sentences that fail to be propositions include questions, commands, and self-referential paradoxes.
    • For instance, the sentence "This statement is false" cannot be assigned a truth value because assuming it is true implies it is false, and assuming it is false implies it is true; hence, it is not a proposition.
    • Conventional notation uses lower-case propositional variables such as pp, qq, and rr to represent propositions (e.g., letting pp denote "1+1=31 + 1 = 3").
  • Compound Propositions and Basic Logical Operations:

    • Compound propositions are formed by combining or modifying existing propositions using logical operators.
    • Negation (¬\neg):
    • The negation of a proposition pp, denoted ¬p\neg p and read as "not pp", produces a proposition that is true when pp is false, and false when pp is true.
    • Disjunction (∨\lor):
    • The disjunction of propositions pp and qq, denoted p∨qp \lor q and read as "pp or qq", is a compound proposition that is false strictly when both pp and qq are false; otherwise, it is true.
    • Conjunction (∧\land):
    • The conjunction of propositions pp and qq, denoted p∧qp \land q and read as "pp and qq", is a compound proposition that is true strictly when both pp and qq are true; otherwise, it is false.
  • Truth Tables:

    • Truth tables systematically display the truth values of compound propositions across every possible combination of truth values for their constituent input propositions.
    • Truth values are commonly represented using TT (true) and FF (false), or alternatively 11 and 00.

Truth table for disjunction p or q

  • Precedence and Order of Operations:
    • The negation operator (¬\neg) holds highest precedence and is evaluated prior to disjunction (∨\lor) and conjunction (∧\land).
    • For example, ¬p∨q\neg p \lor q represents (¬p)∨q(\neg p) \lor q under standard precedence.
    • To apply negation across a compound expression, grouping parentheses are required, as in ¬(p∨q)\neg(p \lor q).
    • The evaluation order between ∨\lor and ∧\land is determined explicitly by parentheses.

Conditional and Biconditional Statements

  • The Conditional Statement (Implication):
    • The conditional expression "If pp then qq", denoted p→qp \rightarrow q or p⇒qp \Rightarrow q, asserts that whenever pp holds true, qq must also hold true.
    • Terminology:
    • pp is designated as the hypothesis or antecedent.
    • qq is designated as the conclusion or consequent.
    • Truth Conditions:
    • The implication p→qp \rightarrow q evaluates to false solely when the hypothesis pp is true and the conclusion qq is false.
    • It evaluates to true in all other circumstances.
    • When p→qp \rightarrow q evaluates to true because pp is false, the implication is described as vacuously true or true by default.
    • Precedence:
    • The conditional operator (→\rightarrow) shares the same level of operator precedence as ∨\lor and ∧\land.

Truth table for conditional statement p implies q

  • Linguistic Variants of p→qp \rightarrow q:

    • Implication can be expressed in natural language in multiple ways:
    • "qq if pp"
    • "qq whenever pp"
    • "pp only if qq"
    • "pp implies qq"
    • Caution: The expression "It is raining only if there are clouds in the sky" is equivalent to "If it is raining then there are clouds in the sky" (p→qp \rightarrow q). This is distinct from the reversed conditional "If there are clouds in the sky then it is raining" (q→pq \rightarrow p).
  • Related Conditional Statements:

    • Given an original conditional statement p→qp \rightarrow q:
    • Converse: q→pq \rightarrow p
    • Inverse: ¬p→¬q\neg p \rightarrow \neg q
    • Contrapositive: ¬q→¬p\neg q \rightarrow \neg p
    • Worked Example:
    • Statement: "If Jack bought beer then Jack went to the store."
    • Definition of components:
      • pp: Jack bought beer.
      • qq: Jack went to the store.
    • Symbolic form: p→qp \rightarrow q
    • Converse (q→pq \rightarrow p): "If Jack went to the store then Jack bought beer."
    • Inverse (¬p→¬q\neg p \rightarrow \neg q): "If Jack didn't buy beer then Jack didn't go to the store."
    • Contrapositive (¬q→¬p\neg q \rightarrow \neg p): "If Jack didn't go to the store then Jack didn't buy beer."
  • Necessary and Sufficient Conditions:

    • Necessary Condition: A condition that must be satisfied given that a proposition holds true. The conclusion qq of a true conditional p→qp \rightarrow q is a necessary condition of the hypothesis pp.
    • Sufficient Condition: A condition that suffices to guarantee that a proposition holds true. The hypothesis pp of a true conditional p→qp \rightarrow q is a sufficient condition for the conclusion qq.
    • Example Analysis:
    • Consider the true implication: "If xx is a non-zero whole number, then x2x^2 is a positive whole number."
    • "x2x^2 is a positive whole number" is a necessary condition of "xx is a non-zero whole number."
    • "xx is a non-zero whole number" is a sufficient condition for "x2x^2 is a positive whole number."
    • Counterexample demonstrating that "xx is a non-zero whole number" is not a necessary condition: Setting x=2x = \sqrt{2} yields x2=2x^2 = 2, which is a positive whole number, even though 2\sqrt{2} is not a non-zero whole number.
  • Biconditional Statement:

    • The proposition "pp if and only if qq" (abbreviated "pp iff qq") is denoted p↔qp \leftrightarrow q.
    • It is formally defined by the conjunction of forward and reverse implications:     (p→q)∧(q→p)(p \rightarrow q) \land (q \rightarrow p)

Logical Equivalences, Tautologies, and Contradictions

  • Logical Equivalence (≡\equiv):

    • Two compound propositions PP and QQ, constructed from constituent propositions p1,p2,…,pnp_1, p_2, \dots, p_n, are logically equivalent (P≡QP \equiv Q) if they produce identical truth values across all possible combinations of truth values of their constituents.
    • Fundamental Equivalences:
    • Double Negation Law: ¬(¬p)≡p\neg(\neg p) \equiv p
    • Commutative Laws: p∨q≡q∨pp \lor q \equiv q \lor p and p∧q≡q∧pp \land q \equiv q \land p
    • Contrapositive Equivalence: p→q≡¬q→¬pp \rightarrow q \equiv \neg q \rightarrow \neg p
  • De Morgan's Laws for Propositional Logic:

    • ¬(p∨q)≡¬p∧¬q\neg(p \lor q) \equiv \neg p \land \neg q
    • ¬(p∧q)≡¬p∨¬q\neg(p \land q) \equiv \neg p \lor \neg q
  • Disjunctive Form and Negation of Conditional Statements:

    • The conditional proposition p→qp \rightarrow q is false only when pp is true and qq is false, which corresponds to when ¬p\neg p is false and qq is false. Thus, it can be expressed as a disjunction:     p→q≡¬p∨qp \rightarrow q \equiv \neg p \lor q
    • Applying De Morgan's Laws yields the logical negation of an implication:     ¬(p→q)≡¬(¬p∨q)≡¬(¬p)∧¬q≡p∧¬q\neg(p \rightarrow q) \equiv \neg(\neg p \lor q) \equiv \neg(\neg p) \land \neg q \equiv p \land \neg q
    • Worked Example (Negation of Necessary Condition):
    • Statement to negate: "A necessary condition of Serena buying the car she wants is that Serena passes the credit check for the car loan."
    • Standard conditional formulation (p→qp \rightarrow q):
      • pp: Serena buys the car she wants.
      • qq: Serena passes the credit check for the car loan.
      • "If Serena buys the car she wants then Serena passes the credit check for the car loan."
    • Negated form (¬(p→q)≡p∧¬q\neg(p \rightarrow q) \equiv p \land \neg q):
      • "Serena buys the car she wants and Serena doesn't pass the credit check for the car loan."
  • Tautologies and Contradictions:

    • Tautology: A compound proposition that evaluates to true across all possible truth assignments of its constituent variables.
    • Example: (p→p)∨q(p \rightarrow p) \lor q
    • Contradiction: A compound proposition that evaluates to false across all possible truth assignments of its constituent variables.
    • Example: (p∧q)∧¬q(p \land q) \land \neg q

Quantified Logic

  • Propositional Functions and Domains:

    • A propositional function (or predicate) is an open sentence containing a finite number of variables that becomes a well-defined proposition once specific values from a domain are substituted for those variables.
    • The domain of a variable denotes the set of all allowable values eligible for substitution.
    • Examples:
    • Predicate P(x,y)P(x, y) defined as "x>yx > y" over the domain of whole numbers {0,1,2,… }\{0, 1, 2, \dots\}:
      • P(1,2)P(1, 2) asserts "1>21 > 2", which evaluates to false.
      • P(3,2)P(3, 2) asserts "3>23 > 2", which evaluates to true.
    • Predicate P(x)P(x) defined as "xx is a former president of the USA" over the domain of human beings:
      • P(Barack Obama)P(\text{Barack Obama}) is true.
      • P(Tom Cruise)P(\text{Tom Cruise}) is false.
  • Universal Quantification (∀\forall):

    • The statement "for all x∈Dx \in D, P(x)P(x)", denoted ∀x∈D,P(x)\forall x \in D, P(x) (or ∀x,P(x)\forall x, P(x)), is a proposition that evaluates to true if and only if P(x)P(x) is true for every element xx in domain DD.
    • The statement is false if there exists at least one element in DD for which P(x)P(x) is false.
    • Proof Techniques:
    • To prove ∀x,P(x)\forall x, P(x) is true: Demonstrate that P(x)P(x) holds for an arbitrary, general choice of x∈Dx \in D.
    • To prove ∀x,P(x)\forall x, P(x) is false: Provide a single counterexample, which is a specific element x∈Dx \in D for which P(x)P(x) evaluates to false.
    • Worked Examples:
    • Statement: ∀x∈R,11+x2≤1\forall x \in \mathbb{R}, \frac{1}{1 + x^2} \le 1
      • Evaluation: True.
      • Justification: Let x∈Rx \in \mathbb{R} be an arbitrary real number. Since x2≥0x^2 \ge 0, adding 11 gives 1+x2≥11 + x^2 \ge 1. Taking reciprocals preserves the inequality direction relative to zero, yielding 11+x2≤1\frac{1}{1 + x^2} \le 1.
    • Statement: ∀x∈R,11+x2<1\forall x \in \mathbb{R}, \frac{1}{1 + x^2} < 1
      • Evaluation: False.
      • Justification: Consider the counterexample x=0x = 0. When x=0x = 0, 1+x2=1+02=11 + x^2 = 1 + 0^2 = 1, giving 11+02=1\frac{1}{1 + 0^2} = 1. Since 1<11 < 1 is false, the universally quantified proposition is false.
  • Existential Quantification (∃\exists):

    • The statement "there exists x∈Dx \in D such that P(x)P(x)", denoted ∃x∈D,P(x)\exists x \in D, P(x) (or ∃x,P(x)\exists x, P(x)), evaluates to true if and only if P(x)P(x) is true for at least one element x∈Dx \in D.
    • The statement is false if P(x)P(x) is false for every element in DD.
    • Proof Techniques:
    • To prove ∃x,P(x)\exists x, P(x) is true: Exhibit a single explicit witness x∈Dx \in D that satisfies P(x)P(x).
    • To prove ∃x,P(x)\exists x, P(x) is false: Demonstrate that P(x)P(x) is false for every choice of x∈Dx \in D.
    • Worked Examples:
    • Statement: ∃x∈R,x2<x\exists x \in \mathbb{R}, x^2 < x
      • Evaluation: True.
      • Witness: Select x=0.5x = 0.5. Then x2=(0.5)2=0.25x^2 = (0.5)^2 = 0.25, and 0.25<0.50.25 < 0.5.
    • Statement: ∃x∈R,(x>1→x2x+1≤12)\exists x \in \mathbb{R}, \left( x > 1 \rightarrow \frac{x^2}{x + 1} \le \frac{1}{2} \right)
      • Evaluation: True.
      • Witness: Select x=0x = 0. The antecedent 0>10 > 1 is false, making the conditional statement true by default.
    • Statement: ∃x∈(1,∞),x2x+1≤12\exists x \in (1, \infty), \frac{x^2}{x + 1} \le \frac{1}{2}
      • Evaluation: False.
      • Justification: Let x∈(1,∞)x \in (1, \infty), so x>1x > 1. It follows that x2>xx^2 > x. Multiplying by 22 gives 2x2>2x2x^2 > 2x. Because x>1x > 1, 2x=x+x>x+1>22x = x + x > x + 1 > 2. Thus 2x2>x+12x^2 > x + 1. Dividing by the positive quantity x+1x + 1 yields:         2x2x+1>1\frac{2x^2}{x + 1} > 1         Multiplying both sides by 12\frac{1}{2} gives:         x2x+1>12\frac{x^2}{x + 1} > \frac{1}{2}         Because x2x+1>12\frac{x^2}{x + 1} > \frac{1}{2} for all x∈(1,∞)x \in (1, \infty), the existential statement is false.
  • De Morgan's Laws for Quantifiers:

    • Negating a universally quantified statement yields an existentially quantified statement:     ¬(∀x,P(x))≡∃x,¬P(x)\neg(\forall x, P(x)) \equiv \exists x, \neg P(x)
    • Negating an existentially quantified statement yields a universally quantified statement:     ¬(∃x,P(x))≡∀x,¬P(x)\neg(\exists x, P(x)) \equiv \forall x, \neg P(x)
    • Application Example:
    • Original statement: "All mammals cannot fly."
    • Symbolic formulation: Let P(x)P(x) denote "Mammal xx cannot fly." The statement is ∀x,P(x)\forall x, P(x).
    • Negation: ¬(∀x,P(x))≡∃x,¬P(x)\neg(\forall x, P(x)) \equiv \exists x, \neg P(x).
    • Natural language interpretation: "There exists a mammal such that the mammal can fly" (colloquially, "Some mammals fly").
  • Linguistic Nuances in Negative Quantifications:

    • Statements meaning ∃x,¬P(x)\exists x, \neg P(x) (equivalent to ¬(∀x,P(x))\neg(\forall x, P(x))):
    • "Not all xx satisfy P(x)P(x)"
    • "Not each xx satisfies P(x)P(x)"
    • "Not every xx satisfies P(x)P(x)"
    • Statements meaning ∀x,¬P(x)\forall x, \neg P(x) (equivalent to ¬(∃x,P(x))\neg(\exists x, P(x))):
    • "Not any xx satisfies P(x)P(x)"
    • "No xx satisfies P(x)P(x)"

Nested Quantifiers and Advanced Applications

  • Order Dependence of Quantifiers:

    • The semantic meaning and truth value of a quantified statement depend heavily on the sequential order of nested quantifiers.
    • Example: Multiplicative Inverses:
    • The statement "For every positive real number xx there exists a positive real number yy such that xy=1xy = 1" is written symbolically as:       ∀x∈(0,∞),∃y∈(0,∞),xy=1\forall x \in (0, \infty), \exists y \in (0, \infty), xy = 1
    • This proposition is true; it conveys that every positive real number possesses a multiplicative inverse (reciprocal).
    • Reversing the quantifiers produces:       ∃y∈(0,∞),∀x∈(0,∞),xy=1\exists y \in (0, \infty), \forall x \in (0, \infty), xy = 1
    • This proposition is false because the existential variable yy would have to be chosen independently of xx, and no universal constant real number exists that produces 11 when multiplied by any arbitrary real number.
    • Example: Strict Ordering:
    • Proposition: ∀x∈R,∃y∈R,x<y\forall x \in \mathbb{R}, \exists y \in \mathbb{R}, x < y
      • Evaluation: True.
      • Justification: For any given x∈Rx \in \mathbb{R}, setting y=x+1y = x + 1 guarantees y∈Ry \in \mathbb{R} and x<x+1x < x + 1.
    • Reversing the order produces ∃y∈R,∀x∈R,x<y\exists y \in \mathbb{R}, \forall x \in \mathbb{R}, x < y, which is false because no single real number is strictly greater than every real number.
    • Example: Circle Equations:
    • Proposition: ∃x∈R,∀y∈R,x2+y2=1\exists x \in \mathbb{R}, \forall y \in \mathbb{R}, x^2 + y^2 = 1
      • Evaluation: False.
      • Justification: Let xx be an arbitrary real number. Selecting y=2y = 2 yields x2+y2=x2+4≥4≠1x^2 + y^2 = x^2 + 4 \ge 4 \ne 1.
    • The reversed statement ∀y∈R,∃x∈R,x2+y2=1\forall y \in \mathbb{R}, \exists x \in \mathbb{R}, x^2 + y^2 = 1 is also false (e.g., choosing y=2y = 2 requires x2=−3x^2 = -3, which has no solution over R\mathbb{R}).
  • Sequential Application of De Morgan's Laws on Nested Quantifiers:

    • Multi-variable statements are negated by propagating the negation inwards and alternating each quantifier:     ¬(∀x∈R,∃y∈R,x<y)≡∃x∈R,¬(∃y∈R,x<y)≡∃x∈R,∀y∈R,x≥y\neg(\forall x \in \mathbb{R}, \exists y \in \mathbb{R}, x < y) \equiv \exists x \in \mathbb{R}, \neg(\exists y \in \mathbb{R}, x < y) \equiv \exists x \in \mathbb{R}, \forall y \in \mathbb{R}, x \ge y
  • Formal Analysis of Limits from Calculus:

    • The technical ϵ\epsilon-δ\delta definition of a limit, lim⁡x→af(x)=L\lim_{x \to a} f(x) = L, asserts:
    • For every ϵ>0\epsilon > 0, there exists δ>0\delta > 0 such that for all x∈Rx \in \mathbb{R}, 0<∣x−a∣<δ→∣f(x)−L∣<ϵ0 < |x - a| < \delta \rightarrow |f(x) - L| < \epsilon.
    • Predicates:
    • P(x,δ)P(x, \delta): 0<∣x−a∣<δ0 < |x - a| < \delta
    • Q(x,ϵ)Q(x, \epsilon): ∣f(x)−L∣<ϵ|f(x) - L| < \epsilon
    • Symbolic Formulation:     ∀ϵ>0,∃δ>0,∀x∈R,P(x,δ)→Q(x,ϵ)\forall \epsilon > 0, \exists \delta > 0, \forall x \in \mathbb{R}, P(x, \delta) \rightarrow Q(x, \epsilon)
    • Derivation of the Negation (lim⁡x→af(x)≠L\lim_{x \to a} f(x) \ne L):
    • Step 1: Push negation through quantifiers:       ¬(∀ϵ>0,∃δ>0,∀x,P(x,δ)→Q(x,ϵ))≡∃ϵ>0,∀δ>0,∃x,¬(P(x,δ)→Q(x,ϵ))\neg(\forall \epsilon > 0, \exists \delta > 0, \forall x, P(x, \delta) \rightarrow Q(x, \epsilon)) \equiv \exists \epsilon > 0, \forall \delta > 0, \exists x, \neg(P(x, \delta) \rightarrow Q(x, \epsilon))
    • Step 2: Express implication in disjunctive form:       ∃ϵ>0,∀δ>0,∃x,¬(¬P(x,δ)∨Q(x,ϵ))\exists \epsilon > 0, \forall \delta > 0, \exists x, \neg(\neg P(x, \delta) \lor Q(x, \epsilon))
    • Step 3: Apply De Morgan's Law to the predicate:       ∃ϵ>0,∀δ>0,∃x,(P(x,δ)∧¬Q(x,ϵ))\exists \epsilon > 0, \forall \delta > 0, \exists x, (P(x, \delta) \land \neg Q(x, \epsilon))
    • Final Statement in Words:
    • There exists ϵ>0\epsilon > 0 such that for all δ>0\delta > 0, there exists x∈Rx \in \mathbb{R} such that 0<∣x−a∣<δ0 < |x - a| < \delta and ∣f(x)−L∣≥ϵ|f(x) - L| \ge \epsilon.

Set Theory Fundamentals and Sets of Numbers

  • Set Definitions and Axioms:

    • The formalization of set theory was introduced by Georg Cantor in 1879.
    • A set is an unordered collection of distinct objects where order and repetition are not taken into account.
    • Two sets are equal if and only if they share identical members.
    • Membership is denoted by x∈Sx \in S (xx is an element/member of SS) or x∉Sx \notin S (xx is not an element/member of SS).
    • A set is finite if its count of elements is finite, and infinite otherwise.
  • Set Notations:

    • Set-bracket notation: Direct roster listing of elements enclosed within braces, e.g.:
    • A={2,3,5}A = \{2, 3, 5\}
    • B={red,white,blue}B = \{\text{red}, \text{white}, \text{blue}\}
    • C={{1},{1,2}}C = \{\{1\}, \{1, 2\}\}
    • ∅={}\emptyset = \{\} (the empty set or null set, containing zero elements).
    • Ellipses Notation: Used to denote ongoing patterns:
    • Finite set: H={1,2,3,…,100}H = \{1, 2, 3, \dots, 100\}
    • Infinite set of prime numbers: P={2,3,5,7,11,… }P = \{2, 3, 5, 7, 11, \dots\}
    • Set-builder notation: Defines a set by filtering a domain DD through conditions c1,c2,…,ckc_1, c_2, \dots, c_k:     S={x∈D∣c1,c2,…,ck}S = \{x \in D \mid c_1, c_2, \dots, c_k\}
    • Example: Letting DD be all living humans, S={x∈D∣x owns a vehicle,x is at least 65 years old}S = \{x \in D \mid x \text{ owns a vehicle}, x \text{ is at least 65 years old}\}.
  • Cardinality and Subsets:

    • Cardinality: The number of elements in a finite set SS, denoted ∣S∣|S|.
    • Subset (⊆\subseteq): S⊆TS \subseteq T if and only if every element of SS is also an element of TT.
    • Proper Subset (⊂\subset): S⊂TS \subset T if and only if S⊆TS \subseteq T and S≠TS \ne T.
    • Negations: S⊈TS \not\subseteq T indicates SS is not a subset of TT; S⊄TS \not\subset T indicates SS is not a proper subset of TT.
    • Default Rule: The empty set is a subset of every set (∅⊆S\emptyset \subseteq S for all sets SS).
    • Double Containment Proof Technique: Two sets are proved equal (S=TS = T) by showing mutual inclusion: S⊆TS \subseteq T and T⊆ST \subseteq S.
    • Recipe to prove S⊆TS \subseteq T: Assume an arbitrary element x∈Sx \in S, and deduce logically that x∈Tx \in T.
    • Universe (UU): An overarching universal set encompassing all sets under active consideration as subsets.
  • Standard Number Systems:

    • Digits: The set {0,1,2,…,9}\{0, 1, 2, \dots, 9\}.
    • Natural Numbers (N\mathbb{N}): The set {1,2,3,… }\{1, 2, 3, \dots\}.
    • Integers (Z\mathbb{Z}): The set {0,−1,1,−2,2,… }\{0, -1, 1, -2, 2, \dots\}. Positive integers are denoted Z+\mathbb{Z}^+, where Z+=N\mathbb{Z}^+ = \mathbb{N}.
    • Rational Numbers (Q\mathbb{Q}): The set of fractions formed from integers:     Q={pq  |  p,q∈Z,q≠0}\mathbb{Q} = \left\{ \frac{p}{q} \;\middle|\; p, q \in \mathbb{Z}, q \ne 0 \right\}
    • Real Numbers (R\mathbb{R}): Defined as the set of all signed decimal expansions of the form:     ±…d2d1d0.d−1d−2⋯=±∑i=−∞∞di10i\pm \dots d_2 d_1 d_0 . d_{-1} d_{-2} \dots = \pm \sum_{i=-\infty}^{\infty} d_i 10^i     where each did_i is a digit, and all but finitely many digits did_i where i≥0i \ge 0 are 00.
    • Subsetting: Since elementary long division converts any fraction p/qp/q into a decimal expansion, Q⊆R\mathbb{Q} \subseteq \mathbb{R}.
    • Irrational Numbers (I\mathbb{I}): The complement of the rationals within the reals:     I={x∈R∣x∉Q}\mathbb{I} = \{x \in \mathbb{R} \mid x \notin \mathbb{Q}\}
    • Complex Numbers (C\mathbb{C}): The set of linear combinations of real numbers and the imaginary unit i=−1i = \sqrt{-1}:     C={a+bi∣a,b∈R,i2=−1}\mathbb{C} = \{a + bi \mid a, b \in \mathbb{R}, i^2 = -1\}
    • The real numbers form a subset of the complex numbers with zero imaginary part:       R={a+bi∈C∣b=0}\mathbb{R} = \{a + bi \in \mathbb{C} \mid b = 0\}
  • Power Sets:

    • The power set of a set XX, denoted P(X)\mathcal{P}(X), is the set of all subsets of XX, ranging from ∅\emptyset to XX.
    • Example: For X={a,b}X = \{a, b\}, the power set is:     P({a,b})={∅,{a},{b},{a,b}}\mathcal{P}(\{a, b\}) = \{\emptyset, \{a\}, \{b\}, \{a, b\}\}
    • Cardinality Rule: For any finite set XX, the cardinality of its power set is given by:     ∣P(X)∣=2∣X∣|\mathcal{P}(X)| = 2^{|X|}
  • Venn Diagrams:

    • Venn diagrams provide visual geometric representations of sets as circles enclosed inside a universal bounding rectangle UU.

Three-set Venn diagram illustrating sets A, B, and C within universe U

Set Operations and Principle of Inclusion-Exclusion

  • Fundamental Operations on Sets:

    • Union (∪\cup): The set of all elements belonging to SS or TT (or both):     S∪T={x∣x∈S∨x∈T}S \cup T = \{x \mid x \in S \lor x \in T\}
    • Example: {1,2,3,4,5}∪{2,3,5,7}={1,2,3,4,5,7}\{1, 2, 3, 4, 5\} \cup \{2, 3, 5, 7\} = \{1, 2, 3, 4, 5, 7\}
    • Intersection (∩\cap): The set of all elements belonging simultaneously to SS and TT:     S∩T={x∣x∈S∧x∈T}S \cap T = \{x \mid x \in S \land x \in T\}
    • Example: {1,2,3,4,5}∩{2,3,5,7}={2,3,5}\{1, 2, 3, 4, 5\} \cap \{2, 3, 5, 7\} = \{2, 3, 5\}
    • Disjoint Sets: Two sets SS and TT are disjoint if they share no elements, meaning S∩T=∅S \cap T = \emptyset.
    • Relative Difference (∖\setminus or −-): Elements present in SS that are not in TT:     S∖T={x∣x∈S∧x∉T}S \setminus T = \{x \mid x \in S \land x \notin T\}
    • Example: {1,2,3,4,5}∖{2,3,5,7}={1,4}\{1, 2, 3, 4, 5\} \setminus \{2, 3, 5, 7\} = \{1, 4\}
    • Complement (T‾\overline{T}, TcT^c, or T′T'): Elements of universe UU that do not belong to TT:     T‾={x∈U∣x∉T}\overline{T} = \{x \in U \mid x \notin T\}
    • Example: In the universe of digits, {2,3,5,7}‾={0,1,4,6,8,9}\overline{\{2, 3, 5, 7\}} = \{0, 1, 4, 6, 8, 9\}
    • Cartesian Product (Direct Product, ×\times): The set of all ordered pairs formed from two sets:     S×T={(s,t)∣s∈S,t∈T}S \times T = \{(s, t) \mid s \in S, t \in T\}
    • Example: R×R=R2\mathbb{R} \times \mathbb{R} = \mathbb{R}^2 represents the continuous two-dimensional xyxy-plane.
    • Cardinality Rule: For finite sets, ∣S×T∣=∣S∣⋅∣T∣|S \times T| = |S| \cdot |T|.
    • Generalization to kk sets:       S1×S2×⋯×Sk={(s1,s2,…,sk)∣si∈Si for i=1,2,…,k}S_1 \times S_2 \times \dots \times S_k = \{(s_1, s_2, \dots, s_k) \mid s_i \in S_i \text{ for } i = 1, 2, \dots, k\}∣S1×S2×⋯×Sk∣=∣S1∣⋅∣S2∣⋯∣Sk∣|S_1 \times S_2 \times \dots \times S_k| = |S_1| \cdot |S_2| \cdots |S_k|
  • Principle of Inclusion-Exclusion:

    • When adding cardinalities of two finite sets, the elements in their intersection are counted twice. Correcting for double counting yields:     ∣S∪T∣=∣S∣+∣T∣−∣S∩T∣|S \cup T| = |S| + |T| - |S \cap T|
    • If SS and TT are disjoint, ∣S∩T∣=0|S \cap T| = 0, simplifying the formula to ∣S∪T∣=∣S∣+∣T∣|S \cup T| = |S| + |T|.
    • Worked Application (Multiples in a Finite Domain):
    • Goal: Count how many multiples of 33 or 55 exist within the set D={1,2,3,…,999}D = \{1, 2, 3, \dots, 999\}.
    • Multiples of 33: T={3,6,9,…,999}T = \{3, 6, 9, \dots, 999\}, with cardinality ∣T∣=9993=333|T| = \frac{999}{3} = 333.
    • Multiples of 55: F={5,10,15,…,995}F = \{5, 10, 15, \dots, 995\}, with cardinality ∣F∣=200−1=199|F| = 200 - 1 = 199.
    • Multiples of both 33 and 55 (multiples of 1515): T∩F={15,30,45,…,990}T \cap F = \{15, 30, 45, \dots, 990\}, with cardinality ∣T∩F∣=⌊99915⌋=66|T \cap F| = \lfloor \frac{999}{15} \rfloor = 66.
    • Total count via inclusion-exclusion:       ∣T∪F∣=∣T∣+∣F∣−∣T∩F∣=333+199−66=466|T \cup F| = |T| + |F| - |T \cap F| = 333 + 199 - 66 = 466

Theory of Functions

  • Formal Set-Theoretic Definition:

    • Let XX and YY be non-empty sets. A function ff from XX to YY, denoted f:X→Yf : X \to Y, is a subset of the Cartesian product X×YX \times Y satisfying the property that for every x∈Xx \in X, there exists a unique y∈Yy \in Y such that (x,y)∈f(x, y) \in f.
    • Structural Properties:
    • A function is formally a set of ordered pairs.
    • The expression y=f(x)y = f(x) serves as shorthand notation for (x,y)∈f(x, y) \in f.
    • The function assigns to each element of XX exactly one element of YY.
    • Functions are typically defined by an assignment rule, such as f(x)=x2f(x) = x^2, which denotes f={(x,x2)∣x∈R}f = \{(x, x^2) \mid x \in \mathbb{R}\}.
    • Formally, there is no distinction between a function and its geometric graph in X×YX \times Y; a function is identical to its graph.
  • Domain, Codomain, and Range:

    • In f:X→Yf : X \to Y, XX is the domain and YY is the codomain.
    • The range (or image) is the set of elements in YY mapped to by elements in XX:     f(X)={y∈Y∣∃x∈X such that y=f(x)}⊆Yf(X) = \{y \in Y \mid \exists x \in X \text{ such that } y = f(x)\} \subseteq Y
    • Worked Example (Finding Range):
    • Function: f:R→Rf : \mathbb{R} \to \mathbb{R} given by f(x)=x2+1f(x) = \sqrt{x^2 + 1}.
    • Proof: For any real number xx, x2≥0  ⟹  x2+1≥1  ⟹  f(x)=x2+1≥1x^2 \ge 0 \implies x^2 + 1 \ge 1 \implies f(x) = \sqrt{x^2 + 1} \ge 1.
    • For any arbitrary y≥1y \ge 1, solving y=x2+1y = \sqrt{x^2 + 1} yields x=y2−1x = \sqrt{y^2 - 1}, which is a valid real number satisfying f(x)=yf(x) = y.
    • Thus, the range of ff is the interval [1,∞)[1, \infty).
  • Arrow Diagrams:

    • Arrow diagrams depict functions by drawing two ovals representing domain XX and codomain YY, with directional arrows connecting each point x∈Xx \in X to its uniquely assigned image y∈Yy \in Y.
  • Classifications of Functions:

    • One-to-One (Injective):
    • f:X→Yf : X \to Y is injective if for each y∈Yy \in Y, there exists at most one x∈Xx \in X such that y=f(x)y = f(x).
    • Proof strategy: Assume f(x1)=f(x2)f(x_1) = f(x_2) for arbitrary x1,x2∈Xx_1, x_2 \in X, and prove that x1=x2x_1 = x_2.
    • Disproof strategy: Identify two distinct elements x1,x2∈Xx_1, x_2 \in X (x1≠x2x_1 \ne x_2) such that f(x1)=f(x2)f(x_1) = f(x_2).
    • Onto (Surjective):
    • f:X→Yf : X \to Y is surjective if for each y∈Yy \in Y, there exists at least one x∈Xx \in X such that y=f(x)y = f(x).
    • Proof strategy: Let y∈Yy \in Y be arbitrary and solve for an element x∈Xx \in X satisfying y=f(x)y = f(x).
    • Disproof strategy: Find a specific target y∈Yy \in Y such that for all x∈Xx \in X, y≠f(x)y \ne f(x).
    • Bijection:
    • A function f:X→Yf : X \to Y is a bijection if it is both one-to-one (injective) and onto (surjective).
  • Classification Case Studies:

    • Case Study 1: Identification Numbers:
    • Let XX be the set of OSU students, faculty, and staff, and let YY be the set of 9-digit strings. A function maps each person to an assigned identification number.
    • The function is 1−11-1 because each 9-digit string maps to at most one person, with ID assignments chosen outside existing identifiers.
    • The function is not onto because the cardinality of XX is strictly less than the total number of available 9-digit strings (109=1 billion10^9 = 1\text{ billion}).
    • Case Study 2: Rational Function from Integers:
    • Let f:N→Qf : \mathbb{N} \to \mathbb{Q} be defined by:       f(n)=n1+n2f(n) = \frac{n}{1 + n^2}
    • Injectivity Proof:
      • Let m,n∈Nm, n \in \mathbb{N} and assume f(m)=f(n)f(m) = f(n).         m1+m2=n1+n2\frac{m}{1 + m^2} = \frac{n}{1 + n^2}m(1+n2)=n(1+m2)m(1 + n^2) = n(1 + m^2)m+mn2=n+nm2m + mn^2 = n + nm^2(m−n)=nm2−mn2=mn(m−n)(m - n) = nm^2 - mn^2 = mn(m - n)(m−n)(1−mn)=0(m - n)(1 - mn) = 0
      • This factors into two cases: m−n=0m - n = 0 or 1−mn=01 - mn = 0.
      • In the first case, m=nm = n.
      • In the second case, mn=1mn = 1. Since m,n∈Nm, n \in \mathbb{N}, the only natural solution is m=1m = 1 and n=1n = 1, which also yields m=nm = n.
      • Since m=nm = n in all cases, ff is 1−11-1.
    • Surjectivity Proof:
      • Consider 0∈Q0 \in \mathbb{Q}. For any n∈Nn \in \mathbb{N}, n≠0n \ne 0, so f(n)=n1+n2≠0f(n) = \frac{n}{1 + n^2} \ne 0.
      • Because 00 has no pre-image in N\mathbb{N}, ff is not onto, and consequently ff is not a bijection.
  • Inverse Functions:

    • If f:X→Yf : X \to Y is a bijection, the relation g={(y,x)∣(x,y)∈f}⊆Y×Xg = \{(y, x) \mid (x, y) \in f\} \subseteq Y \times X defines a bijection from YY to XX.
    • The relation gg is called the inverse function of ff, denoted f−1:Y→Xf^{-1} : Y \to X.
    • Example: For f:Q→Qf : \mathbb{Q} \to \mathbb{Q} defined by f(n)=2n+1f(n) = 2n + 1, the inverse function is:     f−1(n)=n−12f^{-1}(n) = \frac{n - 1}{2}
  • Function Composition:

    • Let g:X→Yg : X \to Y and f:Y→Zf : Y \to Z be functions. The composition of ff with gg, denoted f∘g:X→Zf \circ g : X \to Z, is defined by:     (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x))
    • Well-definedness: For each x∈Xx \in X, g(x)g(x) is the unique element of YY assigned to xx, and f(g(x))f(g(x)) is the unique element of ZZ assigned to g(x)g(x); thus, (f∘g)(x)(f \circ g)(x) assigns a unique element of ZZ to xx.
    • Example:
    • Let X=Y=Z={a,b,c}X = Y = Z = \{a, b, c\}.
    • Let f={(a,a),(b,c),(c,b)}f = \{(a, a), (b, c), (c, b)\} and g={(a,b),(b,c),(c,a)}g = \{(a, b), (b, c), (c, a)\}.
    • The composite function is:       f∘g={(a,c),(b,b),(c,a)}f \circ g = \{(a, c), (b, b), (c, a)\}
    • Injectivity Properties of Compositions:
    • If gg is 1−11-1, is f∘gf \circ g necessarily 1−11-1? No.
      • Counterexample: Let g={(1,2),(2,3)}g = \{(1, 2), (2, 3)\} and f={(2,5),(3,5)}f = \{(2, 5), (3, 5)\}.
      • Here gg is 1−11-1, but f∘g={(1,5),(2,5)}f \circ g = \{(1, 5), (2, 5)\}, which is not 1−11-1.
    • Theorem: If f∘gf \circ g is 1−11-1, then gg must be 1−11-1.
      • Proof: Let X,Y,ZX, Y, Z be non-empty sets, f:Y→Zf : Y \to Z, g:X→Yg : X \to Y, and assume f∘gf \circ g is 1−11-1.
      • Let x1,x2∈Xx_1, x_2 \in X, and assume g(x1)=g(x2)g(x_1) = g(x_2).
      • Applying function ff to both sides gives f(g(x1))=f(g(x2))f(g(x_1)) = f(g(x_2)).
      • By composition definition, (f∘g)(x1)=(f∘g)(x2)(f \circ g)(x_1) = (f \circ g)(x_2).
      • Since f∘gf \circ g is injective, it follows that x1=x2x_1 = x_2.
      • Therefore, gg is 1−11-1.

Families of Sets, Partitions, and Foundational Paradoxes

  • Indexed Families of Sets:

    • Let II be an index set. If a set SiS_i exists for each i∈Ii \in I, the collection S={Si∣i∈I}S = \{S_i \mid i \in I\} is an indexed family of sets.
    • Elements with distinct indices can be identical sets: Si=SjS_i = S_j is permissible for i≠ji \ne j.
    • Pairwise Disjoint Families: An indexed family S={Si∣i∈I}S = \{S_i \mid i \in I\} is pairwise disjoint if for all i,j∈Ii, j \in I, either Si=SjS_i = S_j or Si∩Sj=∅S_i \cap S_j = \emptyset.
    • Example: The family of half-open intervals F={[n,n+1)∣n∈N}F = \{[n, n + 1) \mid n \in \mathbb{N}\} over R\mathbb{R}.
    • For m,n∈Nm, n \in \mathbb{N} with [m,m+1)≠[n,n+1)[m, m + 1) \ne [n, n + 1), either m≥n+1m \ge n + 1 or n≥m+1n \ge m + 1, meaning [m,m+1)∩[n,n+1)=∅[m, m + 1) \cap [n, n + 1) = \emptyset. Hence, FF is pairwise disjoint.
  • Arbitrary Unions and Intersections:

    • Intersection of an Indexed Family:⋂S=⋂i∈ISi={x∣x∈Si for all i∈I}\bigcap S = \bigcap_{i \in I} S_i = \{x \mid x \in S_i \text{ for all } i \in I\}
    • Union of an Indexed Family:⋃S=⋃i∈ISi={x∣x∈Si for some i∈I}\bigcup S = \bigcup_{i \in I} S_i = \{x \mid x \in S_i \text{ for some } i \in I\}
    • Worked Example (Intervals of Real Numbers):
    • Consider the family of open intervals S={(0−1n,1+1n)  |  n∈N}S = \left\{ \left( 0 - \frac{1}{n}, 1 + \frac{1}{n} \right) \;\middle|\; n \in \mathbb{N} \right\}.
    • Intersection evaluation:       ⋂S=⋂n∈N(−1n,1+1n)=[0,1]\bigcap S = \bigcap_{n \in \mathbb{N}} \left( -\frac{1}{n}, 1 + \frac{1}{n} \right) = [0, 1]
      • Proof: Every number in the closed interval [0,1][0, 1] lies in (−1n,1+1n)\left(-\frac{1}{n}, 1 + \frac{1}{n}\right) for all n∈Nn \in \mathbb{N}. For any real number outside [0,1][0, 1], choosing a sufficiently large n∈Nn \in \mathbb{N} makes the interval too narrow to contain that number.
    • Union evaluation:       ⋃S=⋃n∈N(−1n,1+1n)=(−1,2)\bigcup S = \bigcup_{n \in \mathbb{N}} \left( -\frac{1}{n}, 1 + \frac{1}{n} \right) = (-1, 2)
      • Proof: Setting n=1n = 1 yields the interval (−1,2)(-1, 2). For every integer n>1n > 1, the interval is a strict subset of (−1,2)(-1, 2).
  • Partitions of a Set:

    • A partition of a set SS is a family C={Pi∣i∈I}C = \{P_i \mid i \in I\} of non-empty, pairwise disjoint sets indexed by II whose union equals SS:     ⋃C=⋃i∈IPi=S\bigcup C = \bigcup_{i \in I} P_i = S
    • Examples:
    • C={{1},{2,3},{4,5}}C = \{\{1\}, \{2, 3\}, \{4, 5\}\} is a partition of the set S={1,2,3,4,5}S = \{1, 2, 3, 4, 5\}.
    • The family F={[n,n+1)∣n∈N}F = \{[n, n + 1) \mid n \in \mathbb{N}\} is a partition of the continuous ray [1,∞)[1, \infty).
    • The Sum Rule of Counting:
    • If C={Pi∣i∈I}C = \{P_i \mid i \in I\} is a partition of a finite set SS, then the cardinality of SS is the sum of the cardinalities of the partition blocks:       ∣S∣=∑i∈I∣Pi∣|S| = \sum_{i \in I} |P_i|
  • Foundational Crisis and Russell's Paradox:

    • In classic (naive) set theory, sets could be defined arbitrarily using conditions. This leads to mathematical inconsistency.
    • Russell's Set Theory Paradox:
    • Let UU denote the universe of all sets.
    • Define RR as the set of all sets that are not members of themselves:       R={S∈U∣S∉S}R = \{S \in U \mid S \notin S\}
    • Contradiction:
      • If R∉RR \notin R, then by the defining condition of RR, RR must belong to RR (R∈RR \in R).
      • If R∈RR \in R, then by definition RR cannot be a member of itself (R∉RR \notin R).
    • Conclusion: The set RR cannot exist; it is an ill-defined set.
    • Remedy: Modern axiomatic set theory restricts the universe to well-defined sets, excluding self-contradictory formulations.
  • De Morgan's Laws for Sets:

    • The complement of a union is the intersection of the complements:     S∪T‾=S‾∩T‾\overline{S \cup T} = \overline{S} \cap \overline{T}
    • The complement of an intersection is the union of the complements:     S∩T‾=S‾∪T‾\overline{S \cap T} = \overline{S} \cup \overline{T}