Propositional Logic
Introduction
Propositional Logic is concerned with propositions and their interrelationships. The notion of a proposition here cannot be defined precisely. Roughly speaking, a proposition is a possible condition of the world about which we want to say something. The condition need not be true in order for us to talk about it. In fact, we might want to say that it is false or that it is true if some other proposition is true.In this chapter, we first look at the syntactic rules for the language of Propositional Logic. We then look at semantic interpretation for the expressions specified by these rules. Given this semantics, we define the concept of propositional entailment, which identifies for us, at least in principle, all of the logical conclusions one can draw from any set of propositional sentences.
Syntax
In Propositional Logic, there are two types of sentences -- simple sentences and compound sentences. Simple sentences express ``atomic'' propositions about the world. Compound sentences express logical relationships between the simpler sentences of which they are composed.Simple sentences in Propositional Logic are often called propositional constants or, sometimes, logical constants. In what follows, we refer to a logical constant using a sequence of alphanumeric characters beginning with a lower case character. For example, raining is a logical constant, as are rAiNiNg and r32aining. Raining is not a logical constant because it begins with an upper case character. 324567 fails because it begins with a number. raining-or-snowing fails because it contains non-alphanumeric characters.
Compound sentences are formed from simpler sentences and express relationships among the constituent sentences. There are six types of compound sentences, viz. negations, conjunctions, disjunctions, implications, reductions, and equivalences.
A negation consists of the negation operator ¬ and a simple or compound sentence, called the target. For example, given the sentence p, we can form the negation of p as shown below.
(p ∨ (q ⇒ ¬r))
∧
∨
⇒ ⇐ ⇔
¬ p ∧ q | (¬ p ∧ q) | |
p ∧ ¬q | (p ∧ ¬q) | |
p ∧ q ∨ r | ((p ∧ q) ∨ r) | |
p ∨ q ∧ r | (p ∨ (q ∧ r) | |
p ⇒ q ⇒ r | ((p ⇒ q) ⇒ r) | |
p ⇒ q ⇐ r | ((p ⇒ q) ⇐ r) |
Semantics
The semantics of logic is similar to the semantics of algebra. Algebra is unconcerned with the real-world meaning of variables like x. What is interesting is the relationship between the variables expressed in the equations we write; and algebraic methods are designed to respect these relationships, no matter what meanings or values are assigned to the constituent variables.In a similar way, logic itself is unconcerned with what sentences say about the world being described. What is interesting is the relationship between the truth of simple sentences and the truth of compound sentences within which the simple sentences are contained. Also, logical reasoning methods are designed to work no matter what meanings or values are assigned to the logical "variables" used in sentences.
Although the values assigned to variables are not crucial in the sense just described, in talking about logic itself, it is sometimes useful to make these assignments explicit and to consider various assignments or all assignments and so forth. Such an assignment is called an interpretation.
Formally, an interpretation for propositional logic is a mapping assigning a truth value to each of the simple sentences of the language. In what follows, we refer to the meaning of a constant or expression under an interpretation i by superscripting the constant or expression with i as the superscipt.
The assignment shown below is an example for the case of a logical language with just three propositional constants, viz. p, q, and r.
qi = false
ri = true
qi = false
ri = true
Looking at the preceding interpretations, it is important to bear in mind that, as far as logic is concerned, any interpretation is as good as any other. It does not directly fix the interpretation of individual logical constants.
On the other hand, given an interpretation for the logical constants of a language, logic does fix the interpretation for all compound sentences in that language. In fact, it is possible to determine the truth value of a compound sentence by repeatedly applying the following rules.
- If the truth value of a sentence is true in an interpretation, the truth value of its negation is false. If the truth value of a sentence is false, the truth value of its negation is true.
- The truth value of a conjunction is true under an interpretation if and only if the truth value of its conjuncts are both true; otherwise, the truth value is false.
- The truth value of a disjunction is true if and only if the truth value of at least one its conjuncts is true; otherwise, the truth value is false. Note that this is the inclusive or interpretation of the ∨ operator and is differentiated from exclusive or in which a disjunction is true if and only if an odd number of its disjuncts are false.
- The truth value of an implication is false if and only if its antecedent is true and is consequent is false; otherwise, the truth value is true. This is called material implication.
- As with an implication, the truth value of a reduction is false if and only if its antecedent is true and its consequent is false; otherwise, the truth value is true. Of course, it is important to remember that in a reduction the antecedent and consequent are reversed.
- An equivalence is true if and only if the truth values of its constituents agree, i.e. they are either both true or both false.
Evaluation
Given the semantic definitions in the last section, we can easily determine for any given interpretation whether or not any sentence is true or false under that interpretation. The technique is simple. We substitute true and false values for the propositional constants and replace complex expressions with the corresponding values, working from the inside out.As an example, consider the interpretation i show below.
qi = false
ri = true
(true ∨ false) ∧ (¬false ∨ true)
true ∧ (¬false ∨ true)
true ∧ (true ∨ true)
true ∧ true
true
qi = false
ri = true
(true ∨ true) ∧ (¬true ∨ false)
true ∧ (¬true ∨ false)
true ∧ (false ∨ false)
true ∧ false
false
Reverse Evaluation
Reverse evaluation is the opposite of evaluation. We begin with one or more compound sentences and try to figure out which interpretations satisfy those sentences.One way to do this is using a truth table for the language. A truth table for a propositional language is a table showing all of the possible interpretations for the propositional constants in the language.
The following figure shows a truth table for a propositional language with just three propositional constants. Each row corresponds to a single interpretation. The interpretations i and j correspond to the third and seventh rows of this table, respectively.
p | q | r |
---|---|---|
true | true | true |
true | true | false |
true | false | true |
true | false | false |
false | true | true |
false | true | false |
false | false | true |
false | false | false |
In doing reverse evaluation, we process input sentences in turn, for each sentence crossing out interpretations in the truth table that do not satisfy the sentence. The interpretations remaining at the end of this process are all possible interpretations of the input sentences.
Validity, Satisfiability, Unsatisfiability
Evaluation and reverse evaluation are processes that involve specific sentences and specific interpretations. In Computational Logic, we are rarely concerned with specific interpretations; we are more interested in the properties of sentences that hold across interpretations. In particular, the notion of satisfaction imposes a classification of sentences in a language based on whether there are interpretations that satisfy that sentence.A sentence is valid if and only if it is satisfied by every interpretation. The following sentence is valid.
A sentence is unsatisfiable if and only if it is not satisfied by any interpretation. The following sentence is unsatisfiable. No matter what interpretation we take, the sentence is always false.
In one sense, valid sentences and unsatisfiable sentences are useless. Valid sentences do not rule out any possible interpretations; unsatisfiable sentences rule out all interpretations; thus they say nothing about the world. On the other hand, from a logical perspective, they are extremely useful in that, as we shall see, they serve as the basis for legal transformations that we can perform on other logical sentences.
Note that we can easily check the validity, contingency, or unsatisfiability of a sentence can easily by looking at the truth table for the propositional constants in the sentence. Try it in Logica. (Logica uses a variant of the syntax used here. See this Syntax note for details.)
Propositional Entailment
Validity, satisfiability, and unsatisfiability are properties of individual sentences. In logical reasoning, we are not so much concerned with individual sentences as we are with the relationships between sentences. In particular, we would like to know, given some sentences, whether other sentences are or are not logical conclusions. This relative property is known as logical entailment. When we are speaking about Propositional Logic, we use the phrase propositional entailment.A set of sentences Δ logically entails a sentence φ (written Δ |= φ) if and only if every interpretation that satisfies Δ also satisfies φ.
For example, the sentence p logically entails the sentence (p ∨ q). Since a disjunction is true whenever one of its disjuncts is true, then (p ∨ q) must be true whenever p is true. On the other hand, the sentence p does not logically entail (p ∧ q). A conjunction is true if and only if both of its conjuncts are true, and q may be false. Of course, any set of sentences containing both p and q does logically entail (p ∧ q).
Note that the relationship of logical entailment is a logical one. Even if the premises of a problem do not logically entail the conclusion, this does not mean that the conclusion is necessarily false, even if the premises are true. It just means that it is possible that the conclusion is false.
Once again, consider the case of (p ∧ q). Although p does not logically entail this sentence, it is possible that both p and q are true and, therefore, (p ∧ q) is true. However, the logical entailment does not hold because it is also possible that q is false and, therefore, (p ∧ q) is false.
sumber : http://logic.stanford.edu/classes/cs157/2009/notes/chap02.html
RezaMaulana 1401123200
@R16Maulana
Tidak ada komentar:
Posting Komentar