Mathematics in the Modern World - Chapter 2: Mathematical Language and Symbols

Mathematics in the Modern World

Chapter 2: Mathematical Language and Symbols

2.3 Elementary Mathematical Logic
Importance of Logic in Mathematics
  • Logic serves as the foundation for all mathematical statements and arguments.
  • Understanding logical principles is vital for interpreting mathematical statements such as:
    • β€œThere exists an integer 𝑛 such that 𝑛² = 𝑛”.
    • β€œIf π‘₯ is an integer, then π‘₯ + 1 is also an integer.”
    • β€œFor all real numbers π‘₯ with π‘₯ < 0, π‘₯Β² > 0.”
  • Logic is crucial in various fields including:
    • Artificial intelligence
    • System specifications
    • Computer science
Definition of a Proposition
  • A proposition is defined as a declarative sentence that is either true or false, but not both.
  • The truth or falsity of a statement is termed its truth value.
    • A proposition is designated as true (T) if it is indeed true and as false (F) otherwise.
  • Propositional variables are typically denoted by letters such as p, q, r, and s.
Examples of Propositions
  1. Propositions:

    • Lapasan is one of the barangays in Cagayan de Oro City. (True)
    • Green is a primary color. (False)
    • 3 + 1 = 4. (True)
    • 3 + 3 = 9. (False)
  2. Non-Propositions:

    • Answer this correctly. (Not declarative)
    • What is your name? (Not declarative)
    • 3π‘₯ + 1 = 𝑦. (Cannot determine truth value without variable assignment)
    • π‘₯Β² > 10. (Cannot determine truth value without variable assignment)
Basic Logical Operators
  • Compound propositions are constructed by joining existing propositions using logical operators:
    • Negation
      • Representation: ~$p$, Meaning: β€œnot p”
    • Conjunction
      • Representation: $p ∧ q$, Meaning: β€œp and q”
    • Disjunction
      • Representation: $p ∨ q$, Meaning: β€œp or q”
    • Conditional
      • Representation: $p β†’ q$, Meaning: β€œif p, then q”
    • Biconditional
      • Representation: $p ↔ q$, Meaning: β€œp if and only if q”
Examples of Logical Operators
  • Negations:

    • $p$: It is sunny today.
    • ~$p$: It is not the case that it is sunny today or It is not sunny today.
  • Conjunctions:

    • $p$: It is sunny today.
    • $q$: I need to go to work.
    • $p ∧ q$: It is sunny today and I need to go to work.
  • Disjunctions:

    • $p$: It is sunny today.
    • $q$: I need to go to work.
    • $p ∨ q$: It is sunny today or I need to go to work.
  • Conditional Statements:

    • $p$: It is sunny today.
    • $q$: I need to go to work.
    • $p β†’ q$: If it is sunny today, then I need to go to work.
  • Biconditional Statements:

    • $p$: I will graduate on time.
    • $q$: I will pass all the subjects this semester.
    • $p ↔ q$: I will graduate on time if and only if I will pass all the subjects this semester.
Truth Value of Compound Propositions
  • The truth value of a compound proposition depends on the truth values of its components, organized in the following truth table:

    π‘π‘ž~$𝑝$p ∧ q$$p ∨ q$$p β†’ q$$p ↔ q$
    TTFTTTT
    TFFFTFF
    FTTFTTF
    FFTFFTT
Tautology, Contradiction, and Contingency
  • A tautology is a compound proposition that is always true irrespective of the truth values assigned to its propositions.
  • A contradiction is a compound proposition that is always false.
  • A contingency is a compound proposition that is neither a tautology nor a contradiction.
Examples of Compound Propositions
  • A proposition can be classified under:
    • Tautology: (always true)
    • Contradiction: (always false)
    • Contingency: (sometimes true or false)
Logical Equivalence
  • Given two compound propositions 𝑝 and π‘ž, 𝑝 is considered logically equivalent to π‘ž if $p ↔ q$ is a tautology, denoted by $p ≑ q$.
  • Example: ~$ (𝑝 ↔ π‘ž)$ is logically equivalent to $𝑝 ↔ ~π‘ž$.
Example of Logical Equivalence
  • For example:
    • $q ← (p β†’ q)$ can be expressed as:
    • $(p ∧ q) ↔ (p ↔ q)$.
Predicates and Quantifiers
  • A predicate is a sentence that includes variables, e.g., β€œπ‘₯ is a real number,” β€œπ‘¦ + 2 = 10,” β€œπ‘₯ βˆ’ 𝑦 > 𝑧.” The truth of a predicate is dependent on the values assigned to its variables.
  • A counterexample is a specific value assigned to a variable that causes the statement to be false.
  • A predicate can also be referred to as a propositional function, commonly denoted as P(x), Q(x,y), R(x,y,z), etc.
Transformation of Predicates through Quantifiers
  • Once values are assigned to the variables, the predicate becomes a proposition with an associated truth value.
  • Quantifiers are utilized to convey the extent to which a predicate is true over a specific domain of discourse.
Types of Quantifiers
Universal Quantifier
  • For a predicate P(x), the statement β€œfor all x, P(x)” is denoted by β€œβˆ€π‘₯, 𝑃(π‘₯)”.
  • The symbol βˆ€ represents the universal quantifier and can be rephrased as:
    • β€œfor every integer x, P(x)”
    • β€œfor each x, P(x)”
    • β€œfor any x, P(x)”
Example of Universal Quantifier
  • Let P(x) be the predicate β€œ2π‘₯ > π‘₯.”
    • The truth value of βˆ€π‘₯, P(x) for the set of all positive integers is:
    • True since β€œ2π‘₯ > π‘₯” holds true for all positive integers x.
Another Example of Universal Quantifier
  • For βˆ€π‘₯, (π‘₯Β² < π‘₯Β³) with the domain of all rational numbers:
    • This statement can be evaluated as false, since (βˆ’1)Β² < (βˆ’1)Β³ is false, and hence βˆ€π‘₯, π‘₯Β² < π‘₯Β³ is false. Here, x = βˆ’1 serves as a counterexample.
Types of Quantifiers
Existential Quantifier
  • For a predicate P(x), the statement β€œthere exists an element x in the domain such that P(x)” is denoted by β€œβˆƒπ‘₯, P(x)”.
  • The symbol βˆƒ denotes the existential quantifier and can be expressed as:
    • β€œthere is an x such that P(x)”
    • β€œthere is at least one x such that P(x)”
  • In essence, βˆƒπ‘₯, P(x) is valid if there is at least one value of x in the domain where P(x) holds true.
Example of Existential Quantifier
  • Examine the statement βˆƒπ‘₯, (2π‘₯Β³ < 1) across the real numbers:
    • This is true since the inequality holds for specific values, e.g., for x = 0.
Another Example of Existential Quantifier
  • Let Q(x,y) denote the predicate β€œπ‘₯Β² = 𝑦³.”
    • The truth value of βˆƒπ‘₯, 𝑦, Q(π‘₯, 𝑦) for the set of integers with x β‰  y:
    • This statement is true, demonstrated by values like π‘₯ = 8 and 𝑦 = 4, satisfying the condition of π‘₯Β² = 𝑦³ when x β‰  y.