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
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)
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β
- Negation
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$ T T F T T T T T F F F T F F F T T F T T F F F T F F T T
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.