Formal Logic
Ivan Ruchkin
Microteaching Workshop
June 26, 2012
Why Formal Logic?
Formal System
● Consists of:
– Atomic symbols. E.g.: {a, b, +}.
– Axioms. E.g.: {b+a, a}.
– Rules of inference. E.g.: {F→F+a; F→F+b}, where F
is a formula.
● Defines a set of formulas.
– E.g.: {b+a, a, a+a, b+a+b, ...}
– Other examples: arithmetic, programming language.
Formal Systems as Construction
Axioms
Formulas
Rules of
inference
Formal Logic: Definition
● Formal logic is a formal system where all formulas are
assigned one of two values: true or false.
● Allows to express logical statements (not necessarily
true):
– Ivan is teaching now.
– All husbands cheat.
– Geese usually bite, and ducks always panic.
– If something is big, it has hydrogen in it.
● There are many logics!
Different Logics
Propositional
Logic
Predicate Logic Temporal (Modal) Logic
Atomic symbols Concrete objects,
AND, OR, NOT, IF-
THEN.
Propositional logic +
variables + quantifiers:
for all, exists.
Predicate logic + temporal
operators: always, eventually,
until, ...
Examples of
formalizable
statements
My son is at home
and my dad is not.
It either rains or it
does not.
If the president
sleeps, then a war
cannot start.
All husbands cheat.
If all colleges are bad,
CMU is bad.
At least one chinchilla
is smarter than at least
one human.
Eventually all humans will
die.
I always tell ducks not to
panic.
Summary
● Formal system is a collection of atoms, axioms,
and rules of inference.
● Logic is a formal system with true or false
statements.
● There are many logics allowing to formalize
different statements.

Formal Logic: Teaching Practice

  • 1.
  • 2.
  • 3.
    Formal System ● Consistsof: – Atomic symbols. E.g.: {a, b, +}. – Axioms. E.g.: {b+a, a}. – Rules of inference. E.g.: {F→F+a; F→F+b}, where F is a formula. ● Defines a set of formulas. – E.g.: {b+a, a, a+a, b+a+b, ...} – Other examples: arithmetic, programming language.
  • 4.
    Formal Systems asConstruction Axioms Formulas Rules of inference
  • 5.
    Formal Logic: Definition ●Formal logic is a formal system where all formulas are assigned one of two values: true or false. ● Allows to express logical statements (not necessarily true): – Ivan is teaching now. – All husbands cheat. – Geese usually bite, and ducks always panic. – If something is big, it has hydrogen in it. ● There are many logics!
  • 6.
    Different Logics Propositional Logic Predicate LogicTemporal (Modal) Logic Atomic symbols Concrete objects, AND, OR, NOT, IF- THEN. Propositional logic + variables + quantifiers: for all, exists. Predicate logic + temporal operators: always, eventually, until, ... Examples of formalizable statements My son is at home and my dad is not. It either rains or it does not. If the president sleeps, then a war cannot start. All husbands cheat. If all colleges are bad, CMU is bad. At least one chinchilla is smarter than at least one human. Eventually all humans will die. I always tell ducks not to panic.
  • 7.
    Summary ● Formal systemis a collection of atoms, axioms, and rules of inference. ● Logic is a formal system with true or false statements. ● There are many logics allowing to formalize different statements.