Professional Documents
Culture Documents
Parenthesis > Negation > Conjunction(AND) > Disjunction(OR) > Implication > Biconditional
Examples of PL sentences
Example
It is Raining and it is Thursday:
R T, where
R represents “It is Raining”, T represents “it is Thursday”.
Example
It is not hot but it is sunny. It is neither hot nor sunny.
It is not hot, and it is sunny. It is not hot, and it is not sunny.
Let h = “it is hot” and s = “it is sunny.”
~h s ~h ~s
Example
Suppose x is a particular real number. Let p, q, and r symbolize
“0 < x,” “x < 3,” and “x = 3.” respectively.
Then the following inequalities
x3 0<x<3 0<x3
can be translated as
qr pq p (q r)
Tautology and Contradictory
A tautology is true under any interpretation.
The expression A ˅ ¬A is a tautology.
This means it is always true, regardless of the value of A.
An expression which is false under any interpretation is
contradictory (or unsatisfiable).
A ¬A
Some expressions are satisfiable, but not valid. This means
that they are true under some interpretation, but not under
all interpretations.
AB
A simple knowledge base
R1 : ¬P1,1
R2 : B1,1 ⇔ (P1,2 ∨ P2,1)
R3 : B2,1 ⇔ (P1,1 ∨ P2,2 ∨ P3,1)
R4 : ¬B1,1
R5 : B2,1
Entailment and derivation
Entailment: KB |= Q
Q is entailed by KB (a set of premises or assumptions) if and
only if there is no logically possible world in which Q is false
while all the premises in KB are true.
Or, stated positively, Q is entailed by KB if and only if the
conclusion is true in every logically possible world in which
all the premises in KB are true.
Derivation: KB |- Q
We can derive Q from KB if there is a proof consisting of a
sequence of valid inference steps starting from the premises in
KB and resulting in Q
10
Inference
Deduction: the process of deriving a conclusion from a set of
assumptions
Applying a sequence of rules is called a proof
Equivalent to searching for a solution
If we deduce a conclusion C from a set of assumptions, we
write:
{A1, A2, …, An} ├ C
If C can be concluded without any assumption
├C
The inference rule A ├ B is expressed as
A
B Given A, B is deduced (or concluded).
It is like if A is true, then B is true.
Types of Inference rules
Soundness of Rules
P Q P→Q OK?
True True True
True False False
False True True
False False True
Proving things
A proof is a sequence of sentences, where each sentence is either a
premise or a sentence derived from earlier sentences in the proof by
one of the rules of inference.
The last sentence is the theorem (also called goal or query) that we
want to prove.
Example
15