- Syntax
-
Axioms
-
Axiom 1.1 [Commutativity]
-
Axiom 1.2 [Associativity]
-
Axiom 1.3 [Distributivity]
-
Axiom 1.4 (De Morgan)]
-
Axiom 1.5 [Negation}
-
Axiom 1.6 [Excluded Middle]
-
Axiom 1.7 [Contradiction]
-
Axiom 1.8 [Implication]
-
Axiom 1.9 [Equality]
-
Axiom 1.10 [or-simplification]
-
Axiom 1.11 [and-simplification]
-
Axiom 1.12 [Identity]
- Whatever is, is
-
Essential Connectives
-
Negation
- NOT
-
Conjugation
-
- AND
-
Disjunction
- OR
-
Conditional
- IF (...) THEN / IMPLIES
-
Biconditional
- EQUIVALENT / IF AND ONLY IF
-
Fundamental Concept
-
In propositional logic a statement (or proposition) is represented by a symbol (or letter) whose relationship with other statements is defined via a set of symbols (or connectives).
-
"If it rains, Elliot won't go to school."
A: It rains B: Elliot won't go to school
-
"We will cancel the parade if and only if it rains" A: We will cancel the parade B: it rains
-
The statement is described by it's truth value which is either true or false.
- T
- T
- T
- T
- F
- F
- F
- T
- T
- F
- F
- F
- T
- T
- T
- F
- T
- F
- F
- T
- F
- F
- F
- T
-
Predicate Logic
- Syntax
- Structure
-
Quantifiers
-
The Universal Quantifier
-
guarantees that a predicate applies to all members of the universe of discourse.
- UD: All people Hx: x is happy
- everyone is happy
-
The Existential Quantifier
-
guarantees that the quantified predicate applies to at least one of the members of the universe of discourse.
- UD: people in this room Dx: x can dance
- there exists someone (at least one), who can dance.
-
Status
-
Tautology
-
Propositions, which must be true, under every possible valuation.
-
"It is either raining or not raining."
-
Contradiction
-
Proposition which must necessarily be untrue, under every possible valuation.
-
"It's raining and it's not raining"
-
Contigency
- Proposition that are nor true, nor false under every possible valuation. A proposition is contingent if and only if it is neither a contradiction nor a tautology.
-
Structure
-
Atomic formulas
-
Atomic formulas is a formula that contains no logical connectives nor quantifiers, or equivalently a formula that has no strict sub formulas, making them the simplest "wff" (look at def below) in logic. In propositional logic an atomic formula or atom is simply a propositional variable that is either true or false.
- A: Elliot likes cheese . B:
-
Well-formed formulas
-
We can construct much more complex propositions by combining atomic formulas with connectives, these constructions are called well-formed formulas (wff) when they respect the following set of rules:
-
1) If A is a well formed formula, then ¬A is also a well formed formula.
2) If A and B are well formed formula's, then (A∧B) is also a well formed formula.
3) If A and B are well formed formula's, then
(A∨B) is also a well formed formula.
4) If A and B are well formed formula's, then
(A→B) is also a well formed formula.
5) If A and B are well formed formula's, then
(A↔B) is also a well formed formula.
Unless constructed using only 1-5 above, then a proposition isn't a well formed formula.
- is a "wff"
- is not a "wff"
-
Conditions
-
Validity
-
There are two ways an argument can go wrong: 1) The premise is wrong 2) The logical structure of the argument is wrong. In propositional logic, we cannot do anything to determine whether the premise is actually true, so we define the validity of an argument in terms of the second idea.
-
{P1, P2, ... , Pn} is said to entail C, if and only if there is no truth assignment for which P1, P2, ... , Pn are true and C is false.
-
Consistency
-
A set of propositions is inconsistent if it cannot be simultaneously all true. Otherwise, it is consistent.
-
is inconsistent if and only if
- is a contradiction
-
What is Logic ?
-
Logic is a truth-preserving system of inference.
-
Truth-Preserving:
- If the initial statement are true, the inferred statements will be true.
-
System
- A set of mechanistic transformations, based on syntax alone.
-
Inference
- The process of deriving (inferring) new statements from old statements.
-
The "=" Identity
-
The "=" identity is actually a two place predicate which tells us that a given term can always be replaced by the other.
-
UD : All people. Sx : x is a spy; Txy: x is taller than y; l: liz
- This says: liz is the tallest of all spies.
-
Fundamental Concept
-
Predicates
-
A Predicate expresses a relation or property and is combined with variables that expresses an arbitrary value of some domain.
- Ax: x is tall; Bxy: x owes money to y; Cxyz: x borrowed y from z.
- The predicates with one argument, two arguments, or in general n-arguments are referred to as monoadic, dyadic or n-adic respectively.
- Conventionally, we denote the predicates with capital letters, the variable arguments with x, y, z ... and constants with lowercase letters (a, b, c ...).
-
Enumeration using Identity and Quantifiers
-
Let Px be some predicate. Using quantifiers we start expressing several ideas of quantity.
-
At least (one)
-
At least (two)
-
Exactly (one)
-
Exactly (two)
-
At most (one)
-
At most (two)
-
logical laws
- If a propositional component appears in a logical sentence and each occurrence of this component is replaced with a more specific propositional sentence, then the result is also a logical law, this phenomenon is called De Morgan's Law. Greek letter are conventionally used to represent propositional sentences.
-
Logical Laws
-
De Morgan's Laws (DML)
-
Commutative Laws
-
Associative Laws
-
Idempotent Laws
-
Distributive Laws
-
Double Negation Law
-
Tautology Law
-
Contradiction Law
-
Conditional Laws (CL)
-
Contrapositive Law
-
Biconditional Law
-
Structure
-
Atomic fromula's
-
The precise definition of the atomic formula varies in different types of logic, since predicate logic is an extension of propositional logic all the previous notions (truth table, connectives...) still apply and new notions will be added to the definition of the atomic formula. Instead just using propositional letters, and atomic formula is now one that has predicates and is quantified by quantifies ( and still connected by connectives).
- Axy : Elliot likes x and y. Byz: Edie and y both like z. Bzy: Edie and z both like y.
-
Well-formed formula's
-
The syntax for wff in predicate logic are quite similar to the ones of propositional logic except that we include quantifiers.
-
(1,2,3,4,5) : same as Propositional logic.
6) If A is a well formed formula, and x is a variable, A contains at least one occurrence of x, and A contains no x quantifiers, then ∀xA is also a well formed formula.
7) If A is a well formed formula and x is a variable, A contains at least one occurrence of x, and A contains no x quantifiers, then ∃xA is also a well formed formula
-
Definite / indefinite descriptions
-
Descriptions which are not suitable for representing a constant in predicate logic are indefinite descriptions.
- In the sentence : "some dog is annoying" , "some dog" is an indefinite description.
-
All other descriptions are definite. If there is something that actually fits the description of the term,
- the fitting object is called the referent of the term. However, it is possible to construct sentences with terms that do not refer to anything, in which case the term itself is called a non-referring term.
-
The need for Quantifiers
-
How does one say : "Everyone in this class is a Student" using propositional logic + predicates ? Here are some possible approaches:
- We could use a single proposition such that P ="everyone in this class", but that's not very useful because the proposition is very dense (says a lot) and can't be broken down into smaller pieces which gives it less flexibility when put in context. The fact that this is pretty much our only option using only propositional logic illustrates it's short comings.
-
We could break down the statement into two proposition and predicates : Px: x is in the class. Gx: x is a student. and write a statement :
- However with two proposition for each person in the class, this becomes quite exhausting, especially with larger sets that have multiple propositions.
-
Universe of discourse
- In logic, an argument is defined over a universe of discourse (UD). Every argument and statement made in that within a universe applies to all the entities of that universe.
- In Natural languages we out of convenience deduce a universe of discourse based on context, for example let's say someone is talking about how much they love vegetables, we assume that the statement is applied to all vegetables and not all fruits.
-
With the help of quantifiers we can troubleshoot some of the inconveniences and short comings we saw appeared in propositional logic.
-
A possible solution to the statement "Everyone in this class is a Student" using the universal quantifiers.
- UD: Everyone
-
The Uniqueness quantifier
- The uniqueness quantifier refers to the ability of an object to be the only of it's kind to satisfy a certain condition.
-
Notation
-
can be translated in terms of universal and existential quantifier. In Logic, like in natural languages ,there are different ways you can phrase a sentence and still convey the same meaning. Here are two of my favorite statements that describe the uniqueness quantifier.
-
You can also play around with the Negation of the Uniqueness quantifier:
- This can be interpreted as : "there does not exists at all or there exists but without uniqueness", now if that's not a beautiful sentence !