Jump to content

Formal Logic/Predicate Logic/Truth

From Wikibooks, open books for an open world
← Satisfaction ↑ Predicate Logic End



Truth

[edit | edit source]

Truth in a model

[edit | edit source]

We have defined satisfaction in a model with a variable assignment. We have expressed formula Ο† being satisfied by model 𝔐 with variable assignment s as

βŸ¨π”, s⟩ βŠ¨Ο†

Now we can also say that a formula Ο† is satisfied by model 𝔐 (not limited to a specific variable assignment) if Ο† is satisfied by 𝔐 with every variable assignment. Thus

𝔐 βŠ¨Ο†

if and only if

βŸ¨π”, s⟩ βŠ¨Ο† for every s .

If no free variables occur in Ο†, (that is, if Ο† is a sentence), then Ο† is true in model 𝔐.

Variable assignments allow us to deal with free variables when doing the semantic analysis of a formula. For two variable assignments, s1 and s2, satisfaction by βŸ¨π”, s1⟩ differs from satisfaction by βŸ¨π”, s2⟩ only if the formula has free variables. But sentences do not have free variables. Thus a model satisfies a sentence with at least one variable assignment if and only if it satisfies the sentence with every variable assignment. The following two definitions are equivalent:

  • A sentence Ο† is true in 𝔐 if and only if there is a variable assignment s such that
βŸ¨π”, s⟩ βŠ¨Ο† .
  • A sentence Ο† is true in 𝔐 if and only if, for every variable assignment s,
βŸ¨π”, s⟩ βŠ¨Ο† .

The latter is just a notational variant of:

  • A sentence Ο† is true in 𝔐 if and only if
𝔐 βŠ¨Ο† .

Examples

[edit | edit source]

A finite model

[edit | edit source]

The example model

[edit | edit source]

On the previous page, we looked at the following model and variable assignment.

For the model I𝔐 :

|𝔐| = {1,2,3} .
I𝔐(a00) = 0 .
I𝔐(b00) = 1 .
I𝔐(c00) = 2 .
I𝔐(f02) = π”£02 such that:𝔣02(0,0)=2, π”£02(0,1) = 1, π”£02(0,2)=0,
𝔣02(1,0)=1, π”£02(1,1) = 0, π”£02(1,2)=2, π”£02(2,0)=0,
𝔣02(2,1)=2, and π”£02(2,2)=1 .
I𝔐(F02) = {⟨0, 1⟩, βŸ¨1, 2⟩, βŸ¨2, 1⟩} .

For the variable assignment s :

s(x0) = 0 .
s(y0) = 1 .
s(z0) = 2 .

Example results

[edit | edit source]

We noted the following results:

βŸ¨π”, s⟩ βЍF(a,b), F(b,c), and F(c,b) .
βŸ¨π”, s⟩ βЍ̸F(a,a)) .
βŸ¨π”, s⟩ βЍF(a,f(a,b)) .
βŸ¨π”, s⟩ βЍ̸F(f(a,b),a) .
βŸ¨π”, s⟩ βЍF(c,b)β†’F(a,b) .
βŸ¨π”, s⟩ βЍ̸F(c,b)β†’F(b,a) .
βŸ¨π”, s⟩ βЍ̸βˆ€xβˆ€y(F(x,y)β†’F(y,x))
βŸ¨π”, s⟩ βŠ¨βˆƒxβˆƒy(F(x,y)∧F(y,x))

We also noted above that for sentences (though not for formulae in general), a model satisfies the sentence with at least one variable assignment if and only if it satisfies the sentence with every variable assignment. Thus the results just listed hold for every variable assignment, not just s.

Applying our definition of truth, we get:

(1)F(a,b), F(b,c), and F(c,b) are True in π” .
(2)F(a,a) is False in π” .
(3)F(a,f(a,b)) is True in π” .
(4)F(f(a,b),a) is False in π” .
(5)F(c,b)β†’F(a,b) is True in π” .
(6)F(c,b)β†’F(b,a) is False in π” .
(7)βˆ€xβˆ€y(F(x,y)β†’F(y,x)) is false in  π” .
(8)βˆƒxβˆƒy(F(x,y)∧F(y,x)) is true in π” .

This corresponds to the goals (1)–(8) of the previous page. We have now achieved those goals.

An infinite model

[edit | edit source]

The example model

[edit | edit source]

On Models page, we also considered an infinite model I𝔐2 :

|𝔐2|={0,1,2,...}
I𝔐2(a00) = 0 .
I𝔐2(b00) = 1 .
I𝔐2(c00) = 2 .
I𝔐2(f02) = π”£02 such that π”£02(u,v)=u+v .
I𝔐2(F02) = {⟨x, y⟩: x<y} .

We can reuse the same variable assignment from above, namely s :

s(x0) = 0 .
s(y0) = 1 .
s(z0) = 2 .

Example of extended variable assignment

[edit | edit source]

On the Models page, we listed the following goals for our definitions.

f(a,b) resolves to 1 in π”2 .

This does not require our definition of truth or the definition of satisfaction; it is simply requires evaluating the exended variable assignment. We have for any s on defined on I𝔐:

sβ€Ύ(f(a,b)) = I𝔐(f)( sβ€Ύ(a),sβ€Ύ(b) ) = π”£02( sβ€Ύ(a),sβ€Ύ(b) )
= π”£02( I𝔐(a),I𝔐(b) ) = π”£02(0,1)
= 0+1 = 1 .

Example results without quantifiers

[edit | edit source]

We also listed the following goal on the Models page.

(9)F(a,b) and F(b,c) are True in π”2 .
(10)F(c,b) and F(a,a) are False in π”2 .

First we note that:

βŸ¨π”, s⟩ βЍF(a,b)  because βŸ¨sβ€Ύ(a),sβ€Ύ(b)⟩ = βŸ¨0,1⟩ βˆˆ I𝔐(F) 
βŸ¨π”, s⟩ βЍF(b,c)  because βŸ¨sβ€Ύ(b),sβ€Ύ(c)⟩ = βŸ¨1,2⟩ βˆˆ I𝔐(F)
βŸ¨π”, s⟩ βЍ̸F(c,b)  because βŸ¨sβ€Ύ(c),sβ€Ύ(b)⟩ = βŸ¨2,1⟩ βˆ‰ I𝔐(F)
βŸ¨π”, s⟩ βЍ̸F(a,a)  because βŸ¨sβ€Ύ(a),sβ€Ύ(a)⟩ = βŸ¨0,0⟩ βˆ‰ I𝔐(F) .

Indeed:

⟨0,1⟩ βˆˆ I𝔐(F)  because  0<1
⟨1,2⟩ βˆˆ I𝔐(F)  because  1<2
⟨2,1⟩ βˆ‰ I𝔐(F)  because  2≮1
⟨0,0⟩ βˆ‰ I𝔐(F)  because  0≮0 .

Because the formulae of (9) and (10) are sentences,

βŸ¨π”βŸ© βЍF(a,b) .
βŸ¨π”βŸ© βЍF(b,c) .
βŸ¨π”βŸ© βЍ̸F(c,b) .
βŸ¨π”βŸ© βЍ̸F(a,a) .

Applying the definition of truth, we find the goals of (9) and (10) achieved. The sentences of (9) are true and those of (10) are false.

Example results with quantifiers

[edit | edit source]

In addition, we listed the following goal on the Models page.

(11)βˆ€xβˆƒyF(x,y) is true in π”2 .
(12)βˆ€xβˆƒyF(y,x) is false in π”2 .

Corresponding to (11):

(13)βŸ¨π”2, s⟩ βŠ¨βˆ€xβˆƒyF(x,y)

is true if and only if, for each i a member of the domain, the following is true of at least one j a member of the domain:

βŸ¨π”2, s[x:i,x:j]⟩ βЍF(x,y) .

But F02 was assigned the less then relation. Thus the preceding holds if and only if, for every member of the domain, there is a larger member of the domain. Given that the domain is {0,1,2,...}, this is obviously true. Thus, (13) is true. Given that the formula of (11) and (12) is a sentence, we find the goal expressed as (11) to be met.

Corresponding to (12):

(14)βŸ¨π”2, s⟩ βŠ¨βˆ€xβˆƒyF(y,x)

is true if and only if, for each i a member of the domain, the following is true of at least one j a member of the domain:

βŸ¨π”2, s[x:i,x:j]⟩ βЍF(y,x) .

This holds if and only if, for every member of the domain, there is a smaller member of the domain. But there is no member of the domain smaller than 0. Thus (14) is false. The formula of (12) and (14) fails to be satisfied by 𝔐2 with variable assignment s. The formula of (12) and (14) is a sentence, so it fails to be satisfied by 𝔐2 with any variable assignment. The formula (a sentence) of (12) and (14) is false, and so the goal of (12) is met.