Logic
Based on 21-127 Concepts of Mathematics
H2 Proposition and Proof
- A proposition is a statement to which it makes sense to assign a truth value (either ’true’ or ‘false’)
- A proof is an argument that demonstrates its truth (they have audiences!)
H3 Examples of propositions
- true proposition:
- is irrational
- Clive has 2 eyes
- false proposition:
- It is currently raining
- Clive has 3 eyes
- unknown/unproven proposition:
- Every even number > 2 can be expressed as the sum of two prime numbers (aka Goldbach conjecture)
- There is alien in space
H3 Definitions
- assumptions are things we know or assume to be true
- gaol is what we are trying to show.
H3 Some Acronyms
(Some are from other units)
- WTS = want to show
- AFSOC = as for sake of contradiction
- WLOG = with out loss of generality
- IS = induction step
- BC = base case
- IH = induction hypothesis
- s.t. = such that
H2 Logical Structure
- logical structure - the skeleton of the proposition
- symbolic logic - the formal system we use to examine the structure of a proposition
- propositional formula - a symbolic expression that represents a proposition using:
- propositional variables (usually ) for simpler propositions inside the big one
- logical operators - symbols that combine things like ‘and’, ’not’, ‘or’, ‘if… then’…
H3 Logical Operators
- Conjunction approximately as “and”
- Disjunction approximately as “or” (inclusive
The "or" ambiguity
#english #linguistics The problem It happens that there are two types of or in spoken English since or can either be...
- Implication if something is true then something else is true
- Bidirectional if and only if (shortened as “iff”) viz.
- negation approximately as “not”
H3 Quantifiers
- Universal Quantifier - reads “for all”
- reads “all elements in satisfies ”
- Existential Quantifier - reads “there exists”
- reads “there exists an in satisfies ”
H3 Logical Formulae
- A logical formula is an expression built using:
- predicates i.e. statements e.g. , , etc.
- logical operators
- quantifier
Every theorem we want to prove in 21-127 Concepts of Mathematics can be expressed as a logical formula!!!
H3 Logical Equivalency
Given logical formulae and , they are logically equivalent if . We then write .
H3 Truth Table
Truth table is a good way to determine if logical formulae are logically equivalent.
A truth table of propositional formula is a tabular representation of the truth value of and its sub formulae depending on all possible combination of truth value of its propositional variables.
Truth table of some logical formulae
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 |
Notice F T and F F. This is called “vacuous truth”.
Theorem: Given logical formulae and , then iff columns in their truth tables are the same.
Some useful logical equivalence:
- aka contrapositive
H3 Maximal Negation
A logical formula is maximally negated if no sign is outside of other operators or quantifiers.
Informally, deMorgan’s laws talk about duality viz. there’s a way to go between and and a way to go between and .
Ways to “push” negation inward (provable, but omitted):
- Law of double negation
- DeMorgan’s law for logical operators
- DeMorgan’s law for quantifiers. Let be a set:
- Equivalency for implications
H3 Proof Strategies using logical structure
- Direct proof - assume what’s known, derive the conclusion
- Proof by contradiction - assume the opposite of the conclusion, derive a contradiction
- Proving universally quantified statements - prove the statement true for any arbitrary element
- e.g. “every integer is rational”. Proof: let , then . => rational.
- Proving existential statements - find one that satisfies the desired property!
- e.g. “there exists a rational integer”. Proof: and as required.