Академический Документы
Профессиональный Документы
Культура Документы
Admin
Waitlist has been processed
if you are currently not admitted, you wont
get into the class unless somebody drops
Computation
What is the goal of the computation, why is it
appropriate, and what is the logic of the strategy
by which it can be carried out?
constrains
Implementation
How can the representation and algorithm be
realized physically?
Outline
Formal systems
Break
Logic
string = computation;
disp(string);
thought
Formal systems
(as defined by Haugeland)
Token manipulation
Digital
Medium independence
Formal systems
(as defined by Haugeland)
Token manipulation
Digital
Medium independence
Example 1: Chess
Pieces
Starting positions
Formal rules
P, Q, , , , , (, )
Starting positions
well-formed formulas
e.g., P Q
Formal rules
e.g., P Q
P
Q
Formal systems
(as defined by Haugeland)
Token manipulation
Digital
Medium independence
Digital systems
Possible states of the system are
discrete, and perfectly identifiable
Digital
Analog
Formal systems
(as defined by Haugeland)
Token manipulation
Digital
Medium independence
Medium independence
The system does not depend upon the
medium in which it is implemented
Formal systems
(as defined by Haugeland)
Token manipulation
Digital
Medium independence
Tokens need not have any underlying meaning
(Haugeland, p. 17)
tokens
become
symbols
PushSwitch Light
PushSwitch
Light
Aristotle
Leibniz
Turing
string = computation;
disp(string);
thought
Break
Up next:
Logic
P, Q, , , , , (, )
Starting positions
well-formed formulas
e.g., P Q
Formal rules
e.g., P Q
P
Q
Semantics
evaluating meaning of formulas
Entailment
semantic relationship between formulas
Inference
syntactic procedure for deriving formulas
George Boole
(1816-1854)
Propositional logic
For two propositions (=statements) P and Q
P Q means P and Q
P Q means P or Q (including P and Q)
P Q means if P then Q
P means not P
Syntax
Atomic formulas: proposition symbols
(e.g. P, Q), True and False
Complex formulas built out of simple
formulas via rules
if and are okay, () is okay
if and are okay, () is okay
if and are okay, () is okay
if and are okay, () is okay
if is okay, is okay
Q (PQ)
T
T
F
F
T
F
F
F
P Q (PQ)
T T
T
T F
T
F T
T
F F
F
P
T
T
F
F
Q (PQ) P P
T F
T
T
F T
F
F
T
T
F
T
Possible worlds:
Work hard, get an A
Work hard, dont get an A
Dont work hard, get an A
Dont work hard, dont get an A
Q
P
T
T
F
F
Q (PQ)
T
T
F
F
T
T
F
T
Semantics
Truth values for complex formulas
follow rules paralleling syntax
truth of () depends on truth of ,
()
T T
T
T F
F
F T
F
F F
F
Drawing conclusions
Say we know P Q is true, and P is true
What can we conclude from this?
P
T
T
F
F
Q (PQ)
T
T
Three worlds where P Q is true
F
F
P is true in only one of these worlds
T
T
In that world, Q must be true too
F
T
Q (PQ)
T
T
Three worlds where P Q is true
F
F
Q is true in two of these worlds
T
T
In those worlds, P is true or false
F
T
Entailment
Using truth tables, we can just check all
possible worlds (models) to see if one
formula entails another
This requires checking 2n possible
worlds, where n is the number of
proposition symbols
An inference rule
PQ
P
Q
modus ponens
Inference rules
Operations that depend only on syntax, but
that have semantic implications
In modus ponens
syntax: draw a conclusion based just on having
formulas of the right kinds (P Q, P)
semantics: conclusion is guaranteed to be true in
the possible worlds described by those formulas
PQ
P
Q
P
PQ
PQ
Q
P
modus tollens
A proof
(P Q) R
PS
P
PQ
R
PS
P
P
PQ
modus ponens
Semantics
evaluating meaning of formulas
Entailment
semantic relationship between formulas
Inference
syntactic procedure for deriving formulas
Categorization
Categorization
Categories are picked out by logical
definitions
e.g. cat small furry domestic carnivore
Categorization
cat small furry domestic carnivore
Computation
What is the goal of the computation, why is it
appropriate, and what is the logic of the strategy
by which it can be carried out?
constrains
Implementation
How can the representation and algorithm be
realized physically?
Walter Pitts
Warren McCulloch
Next week
Tuesday: more on representation and algorithm
how people have equated formal systems and
thought at this level of analysis
read Anderson, Newell et al.