|
|
Introduction to Logic
|
Tools for Thought
|
|
Relational Logic and Propositional Logic |
One interesting feature of Relational Logic (RL) is that it is expressively equivalent to Propositional Logic (PL). For any RL language, we can produce a pairing between the ground relational sentences in that language and the proposition constants in a PL language. Given this correspondence, for any set of arbitrary sentences in our RL language, there is a corresponding set of sentences in the language of PL such that any RL truth assignment that satisfies our RL sentences agrees with the corresponding PL truth assignment applied to the PL sentences.
The procedure for transforming our RL sentences to PL has multiple steps, but each step is easy. We first convert our sentences to prenex form, then we ground the result, and we rewrite in PL. Let's look at these steps in turn.
|
A sentence is in prenex form if and only if it is closed and all of the quantifiers are on the outside of all logical operators.
Converting a set of RL sentences to a logically equivalent set in prenex form is simple. First, we rename variables in different quantified sentences to eliminate any duplicates. We then apply quantifier distribution rules in reverse to move quantifiers outside of logical operators. Finally, we universally quantify any free variables in our sentences.
For example, to convert the sentence ∀y.p(x,y) ∨ ∃y.q(y) to prenex form, we first rename one of the variables. In this case, let's rename the y in the second disjunct to z. This results in the sentence ∀y.p(x,y) ∨ ∃z.q(z). We then apply the distribution rules in reverse to produce ∀y.∃z.(p(x,y) ∨ q(z)). Finally, we universally quantify the free variable x to produce the prenex form of our original sentence, viz. ∀x.∀y.∃z.(p(x,y) ∨ q(z))
|
Once we have a set of sentences in prenex form, we compute the grounding. We start with our initial set Δ of sentences and we incrementally build up our grounding Γ. On each step we process a sentence in Δ, using the procedure described below. The procedure terminates when Δ becomes empty. The set Γ at that point is the grounding of the input.
(1) The first rule covers the case when the sentence φ being processed is ground. In this case, we remove the sentence from Delta and add it to Gamma.
Δi+1 = Δi - {φ} |
Γi+1 = Γi ∪ {φ} |
(2) If our sentence is of the form ∀ν.φ[ν], we eliminate the sentence from Δi and replace it with copies of the scope, one copy for each object constant τ in our language.
Δi+1 = Δi - {∀ν.φ[ν]} ∪ {φ[τ] | τ an object constant} |
Γi+1 = Γi |
(3) If our sentence of the form ∃ν.φ[ν], we eliminate the sentence from Δi and replace it with a disjunction, where each disjunct is a copy of the scope in which the quantified variable is replaced by an object constant in our language.
Δi+1 = Δi - {∃ν.φ[ν]} ∪ {φ[τ1] ∨ ... ∨ φ[τn]} |
Γi+1 = Γi |
The procedure halts when Δi becomes empty. The set Γi is the grounding of the input. It is easy to see that Γi is logically equivalent to the input set.
|
Here is an example. Suppose we have a language with just two object constants a and b. And suppose we have the set of sentences shown below. We have one ground sentence, one universally quantified sentence, and one existentially quantified sentence. All are in prenex form.
{p(a), ∀x.(p(x) ⇒ q(x)), ∃x.¬q(x)}
A trace of the procedure is shown below. The first sentence is ground, so we remove it from Δ add it to Γ. The second sentence is universally quantified, so we replace it with a copy for each of our two object constants. The resulting sentences are ground, and so we move them one by one from Δ to Γ. Finally, we ground the existential sentence and add the result to Δ and then move the ground sentence to Γ. At this point, since Δ is empty, Γ is our grounding.
Δ0 = {p(a), ∀x.(p(x) ⇒ q(x)), ∃x.¬q(x)} |
Γ0 = {} |
|
Δ1 = {∀x.(p(x) ⇒ q(x)), ∃x.¬q(x)} |
Γ1 = {p(a)} |
|
Δ2 = {p(a) ⇒ q(a), p(b) ⇒ q(b), ∃x.¬q(x)} |
Γ2 = {p(a)} |
|
Δ3 = {p(b) ⇒ q(b), ∃x.¬q(x)} |
Γ3 = {p(a), p(a) ⇒ q(a)} |
|
Δ4 = {∃x.¬q(x)} |
Γ4 = {p(a), p(a) ⇒ q(a), p(b) ⇒ q(b)} |
|
Δ5 = {¬q(a) ∨ ¬q(b)} |
Γ5 = {p(a), p(a) ⇒ q(a), p(b) ⇒ q(b)} |
|
Δ6 = {} |
Γ6 = {p(a), p(a) ⇒ q(a), p(b) ⇒ q(b), ¬q(a) ∨ ¬q(b)} |
|
Once we have a grounding Γ, we replace each ground relational sentence in Γ by a proposition constant. The resulting sentences are all in Propositional Logic; and the set is equivalent to the sentences in Δ in that any RL truth assignment that satisfies our RL sentences agrees with the corresponding Propositional Logic truth assignment applied to the Propositional Logic sentences.
For example, let's represent the RL sentence p(a) with the proposition pa; let's represent p(b) with pb; let's represent q(a) with qa; and let's represent q(b) with qb. With this correspondence, we can represent the sentences in our grounding with the Propositional Logic sentences shown below.
{pa, pa ⇒ qa, pb ⇒ qb, ¬qa ∨ ¬qb}
|
Since the question of unsatisfiability for PL is decidable, then the question of unsatisfiability for RL is also decidable. Since logical entailment and unsatisfiability are correlated, we also know that the question of logical entailment for RL is decidable.
Another consequence of this correspondence between RL and PL is that, like PL, RL is compact - every unsatisfiable set of sentences contains a finite subset that is unsatisfiable. This is important as it assures us that we can demonstrate the unsatisfiability by analyzing just a finite set of sentences; and, as we shall see in the next chapter, logical entailment can be demonstrated with finite proofs.
|
Use the arrow keys to navigate.
Press the escape key to toggle all / one.
|
|