Inference
Inference
Inference
In other words,
Although Euclid did not provide an alphabet or a grammar specifically for his
geometry, his system did include the last three aspects of a logical system. In this lesson
we develop the logical system known as propositional logic. Its alphabet, grammar, and
rules that determine truth were defined.
Consider the following collection of propositions:
and
is the conclusion. We recognize that in this case, the conclusion does follow from the
premises because whenever the premises are true, the conclusion must also be true.
When this is the case, the deduction is semantically valid, else it is semantically invalid.
Notice that not only do we see that the deduction works because of the meaning
of the propositions, but we also see that it is valid based on the forms of the sentences. In
other words, we also recognize this deduction as valid:
Although we might not know the terms Hausdorff space, preregular, and separated, we
recognize the deduction as valid because it is of the same pattern as the first deduction:
pq
p (a )
q
When the deduction is found to work based on its form, the deduction is syntactically
valid, else it is syntactically invalid.
We study both types of validity by examining general patterns of deductions and
choosing rules that determine which forms correspond to deductions that are valid
semantically and which forms correspond to deductions that are valid syntactically.
Semantics
The study of meaning is called semantics. We began this study when we wrote
truth tables. These are characterized as semantic because the truth value of a proposition
is based on its meaning. Our goal is to use truth tables to determine when an argument
form, an example being (a), corresponds to a deduction that is semantically valid.
We begin with a definition.
and say that q is a consequence of p0 , p1 ,..., pn1. Call the propositional forms
p0 , p1 ,..., pn1 the premises of the implication and q the conclusion.
Notice that if p0 , p1 ,..., pn1 ⊨ q, then for any valuation , whenever pi T for all
i 0, 1,..., n 1, it must be the case that q T . Moreover, any deduction with
premises presented by p0 , p1 ,..., pn1 and conclusion by q is semantically valid if
p0 , p1 ,..., pn1 ⊨ q.
Because of the combined structure of the two sentences, we know that we can write
and
we can write
Determining a method that will model this reasoning requires us to find rules by
which propositional forms can be written from other propositional forms. Since every
logical system requires a starting point, the first step in this process is to choose which
propositional forms can be written without any prior justification. Each such
propositional form is called an axiom. Playing the same role as that of a postulate in
Euclidean geometry, an axiom can be considered as a rule of the game. Certain
propositional forms lend themselves as good candidates for axioms because they are
regarded as obvious. That is, they are self-evident. Other propositional forms are good
candidates to be axioms, not because they are necessarily self-evident, but because they
are helpful. In either case, the number of axioms should be as few as possible so as to
minimize the number of assumptions. For propositional logic, we choose only three.
They were first found in work of Gottlob Frege (1879) and later in that of Jan
Łukasiewicz (1930).
p q p [FL 1]
p q p p q p r [FL 2]
p q q p [FL 3]
The next step in defining propositional logic is to state when it is legal to write a
propositional form from given propositional forms.
The propositional forms p0 , p1 ,..., pn1 infer q if q can be written whenever p0 , p1 ,..., pn1
are written. Denote this by
p0 , p1 ,..., pn1 q.
To use the Inference Rules, match the form exactly. For example, even though
P R appears to follow from P Q R as an application of simplification, it does
not. The problem is that simplification can only be applied to propositional forms with
the p q pattern, but P Q R is of the form p q. With this detail in mind, we
make some inferences.
Inference is a powerful tool, but it can only be used to check simple deductions.
Sometimes multiple inferences are needed to move from a collection of premises to a
conclusion. For example, if we write
p q, p, q r ,
by DS, and then based on this propositional form and the third of the given propositional
forms, we can write
r
by MP. This is a simple example of the next definition.
If there exists a formal proof of q from p0 , p1 ,..., pn1 , then q is proved or deduced
from p0 , p1 ,..., pn1 and we write
p0 , p1 ,..., pn1 ⱶ q.
Such that q 0 is an axiom, qm1 q, and for all i > 0, either qi is an axiom or
q0 , q1 ,..., qm1 qi
Observe that any deduction with premises represented by p0 , p1 ,..., pn1 and conclusion
by q is syntactically valid if p0 , p1 ,..., pn1 ⱶ q.
We should note that although and ⱶ have different meanings as syntactic
symbols, they are equivalent. If p q, then p ⱶ q using the proof p , q. Conversely,
suppose p ⱶ q. This means that there exists a proof
p, q0 , q1 ,..., qn1 , q,
so every time we write down p , we can also write down q. That is, p q. We
summarize this as follows.
■ THEOREM 1.2.14
An inference rule is cited by giving the line numbers used as the premises followed by the
abbreviation for the rule. Thus, the following proves P Q Q R, P ⱶ Q :
P Q Q R, P, P Q, Q R, Q.
The first two examples involve proofs that use the axioms.