Decidable Theories 1. Linear order. p.1/9 Decidable Theories 1. - - PowerPoint PPT Presentation

decidable theories
SMART_READER_LITE
LIVE PREVIEW

Decidable Theories 1. Linear order. p.1/9 Decidable Theories 1. - - PowerPoint PPT Presentation

Decidable Theories 1. Linear order. p.1/9 Decidable Theories 1. Linear order. 2. Presburger arithmetic: (Natural with +) p.1/9 Decidable Theories 1. Linear order. 2. Presburger arithmetic: (Natural with +) 3. Real Arithmetic (Reals


slide-1
SLIDE 1

Decidable Theories

  • 1. Linear order.

– p.1/9

slide-2
SLIDE 2

Decidable Theories

  • 1. Linear order.
  • 2. Presburger arithmetic: (Natural with +)

– p.1/9

slide-3
SLIDE 3

Decidable Theories

  • 1. Linear order.
  • 2. Presburger arithmetic: (Natural with +)
  • 3. Real Arithmetic (Reals +,
  • , <)

– p.1/9

slide-4
SLIDE 4

Decidable Theories

  • 1. Linear order.
  • 2. Presburger arithmetic: (Natural with +)
  • 3. Real Arithmetic (Reals +,
  • , <)
  • 4. Elementary Geometry

– p.1/9

slide-5
SLIDE 5

Decidable Theories

  • 1. Linear order.
  • 2. Presburger arithmetic: (Natural with +)
  • 3. Real Arithmetic (Reals +,
  • , <)
  • 4. Elementary Geometry
  • 5. Linear orders with monadic predicates.

– p.1/9

slide-6
SLIDE 6

Decidable Theories

  • 1. Linear order.
✁ ✂ ✄ ☎ ✆
  • 2. Presburger arithmetic: (Natural with +)
  • 3. Real Arithmetic (Reals +,
  • , <)
  • 4. Elementary Geometry
  • 5. Linear orders with monadic predicates.

– p.1/9

slide-7
SLIDE 7

Decidable Theories

  • 1. Linear order.
✁ ✂ ✄ ☎ ✆
  • 2. Presburger arithmetic: (Natural with +)
✁ ✂ ✄ ✝ ✞ ✆
  • 3. Real Arithmetic (Reals +,
  • , <)
  • 4. Elementary Geometry
  • 5. Linear orders with monadic predicates.

– p.1/9

slide-8
SLIDE 8

Decidable Theories

  • 1. Linear order.
✁ ✂ ✄ ☎ ✆
  • 2. Presburger arithmetic: (Natural with +)
✁ ✂ ✄ ✝ ✞ ✆
  • 3. Real Arithmetic (Reals +,
  • , <)
✁ ✂ ✄ ✝ ✞ ✆
  • 4. Elementary Geometry
  • 5. Linear orders with monadic predicates.

– p.1/9

slide-9
SLIDE 9

Decidable Theories

  • 1. Linear order.
✁ ✂ ✄ ☎ ✆
  • 2. Presburger arithmetic: (Natural with +)
✁ ✂ ✄ ✝ ✞ ✆
  • 3. Real Arithmetic (Reals +,
  • , <)
✁ ✂ ✄ ✝ ✞ ✆
  • 4. Elementary Geometry
  • 5. Linear orders with monadic predicates. tower of 2:
✄ ✝ ✟ ✠ ✠ ✠

heights n

– p.1/9

slide-10
SLIDE 10

Validity problem over finite structures

Input: a formula

Question: Is

true over all finite structures?

– p.2/9

slide-11
SLIDE 11

Validity problem over finite structures

Input: a formula

Question: Is

true over all finite structures? Theorem(Trakhtenbrot) There is no procedure for checking validity over finite structures.

– p.2/9

slide-12
SLIDE 12

Validity problem over finite structures

Input: a formula

Question: Is

true over all finite structures? Theorem(Trakhtenbrot) There is no procedure for checking validity over finite structures. The theory of finite structures is very different from the the-

  • ry of arbitrary structures

– p.2/9

slide-13
SLIDE 13

Hilbert Calculus

Axiomsa Ax1

☛ ☞ ✂ ✌ ☞ ☛ ✆

Ax2

✂ ☛ ☞ ✂ ✌ ☞ ✍ ✆ ✆ ☞ ✂ ✂ ☛ ☞ ✌ ✆ ☞ ✂ ☛ ☞ ✍ ✆ ✆

Ax3

✂ ✎ ✌ ☞ ✎ ☛ ✆ ☞ ✂ ✂ ✎ ✌ ☞ ☛ ✆ ☞ ✌ ✆

Ax4

✂ ✏ ✑ ☛ ✂ ✑ ✆ ✆ ☞ ☛ ✒ ✓ ✔ ✑ ✕

, where

is a term. Ax5

✂ ✏ ✑ ✂ ☛ ☞ ✌ ✆ ✆ ☞ ✂ ☛ ☞ ✏ ✑ ✌ ✆

, where

is not free in

. Inference Rules MP Derive

from

and

☛ ☞ ✌

. Gen Derive

✏ ✑ ☛

from

.

aWe do not distinguish between formulas with the same skeleton

– p.3/9

slide-14
SLIDE 14

Completeness Theorem

Theorem (Completeness)

✖ ✗ ✘ ✙ ✚ ✛ ✜ ✢ ☛

iff

✖ ✣ ✤ ✥ ☛

.

– p.4/9

slide-15
SLIDE 15

Completeness Theorem

Theorem (Completeness)

✖ ✗ ✘ ✙ ✚ ✛ ✜ ✢ ☛

iff

✖ ✣ ✤ ✥ ☛

. Theorem (Completeness - Satisfiability version)

is consis- tent iff

holds in a structure.

– p.4/9

slide-16
SLIDE 16

Completeness Theorem

– p.5/9

slide-17
SLIDE 17

Completeness Theorem

Theorem (Completeness - Satisfiability version) If

is consistent, then

is satisfiable (holds in a structure for FO).

– p.5/9

slide-18
SLIDE 18

Completeness Theorem

Theorem (Completeness - Satisfiability version) If

is consistent, then

is satisfiable (holds in a structure for FO). Propositional Calculus

– p.5/9

slide-19
SLIDE 19

Completeness Theorem

Theorem (Completeness - Satisfiability version) If

is consistent, then

is satisfiable (holds in a structure for FO). Propositional Calculus Theorem Every consistent set of formulas is a subset of a maximal consistent set of formulas. Theorem Every maximal consistent set of formulas is satisfiable.

– p.5/9

slide-20
SLIDE 20

Completeness Theorem

Theorem (Completeness - Satisfiability version) If

is consistent, then

is satisfiable (holds in a structure for FO). Propositional Calculus Theorem Every consistent set of formulas is a subset of a maximal consistent set of formulas. Theorem Every maximal consistent set of formulas is satisfiable. Predicate Calculus

– p.5/9

slide-21
SLIDE 21

Completeness Theorem

Theorem (Completeness - Satisfiability version) If

is consistent, then

is satisfiable (holds in a structure for FO). Propositional Calculus Theorem Every consistent set of formulas is a subset of a maximal consistent set of formulas. Theorem Every maximal consistent set of formulas is satisfiable. Predicate Calculus Theorem Every consistent set of formulas is a subset of a Complete Henkin consistent set of formulas. Theorem Every Complete Henkin consistent set of formulas holds (in a Herbrand Structure).

– p.5/9

slide-22
SLIDE 22

Complete Set of Formulas

– p.6/9

slide-23
SLIDE 23

Complete Set of Formulas

Definition

is

complete if for every sentence

in the signature

, either

✡ ✧ ✖
  • r
✎ ✡ ✧ ✖

(sign. of

✖ ★ ✦

).

– p.6/9

slide-24
SLIDE 24

Complete Set of Formulas

Definition

is

complete if for every sentence

in the signature

, either

✡ ✧ ✖
  • r
✎ ✡ ✧ ✖

(sign. of

✖ ★ ✦

). Theorem If

is consistent then there is

✖ ✩ ★ ✖

such that

✖ ✩

is consistent and

complete.

– p.6/9

slide-25
SLIDE 25

Complete Set of Formulas

Definition

is

complete if for every sentence

in the signature

, either

✡ ✧ ✖
  • r
✎ ✡ ✧ ✖

(sign. of

✖ ★ ✦

). Theorem If

is consistent then there is

✖ ✩ ★ ✖

such that

✖ ✩

is consistent and

complete. Proof Define a sequence of set of formulas

✖ ☎

as follows:

– p.6/9

slide-26
SLIDE 26

Complete Set of Formulas

Definition

is

complete if for every sentence

in the signature

, either

✡ ✧ ✖
  • r
✎ ✡ ✧ ✖

(sign. of

✖ ★ ✦

). Theorem If

is consistent then there is

✖ ✩ ★ ✖

such that

✖ ✩

is consistent and

complete. Proof Define a sequence of set of formulas

✖ ☎

as follows: Take an enumeration

☛ ✪ ✫ ✬ ✬ ✬ ☛ ☎ ✫ ✬ ✬ ✬
  • f all

sentences.

– p.6/9

slide-27
SLIDE 27

Complete Set of Formulas

Definition

is

complete if for every sentence

in the signature

, either

✡ ✧ ✖
  • r
✎ ✡ ✧ ✖

(sign. of

✖ ★ ✦

). Theorem If

is consistent then there is

✖ ✩ ★ ✖

such that

✖ ✩

is consistent and

complete. Proof Define a sequence of set of formulas

✖ ☎

as follows: Take an enumeration

☛ ✪ ✫ ✬ ✬ ✬ ☛ ☎ ✫ ✬ ✬ ✬
  • f all

sentences.

✖ ✭ ✘ ✖ ✖ ☎ ✮ ✪ ✘ ✖ ☎ ✯ ✒ ☛ ☎ ✮ ✪ ✕

if

✖ ☎ ✯ ✒ ☛ ☎ ✮ ✪ ✕

is consistent;

✖ ☎ ✯ ✒ ✎ ☛ ☎ ✮ ✪ ✕
  • therwise.

– p.6/9

slide-28
SLIDE 28

Complete Set of Formulas

Definition

is

complete if for every sentence

in the signature

, either

✡ ✧ ✖
  • r
✎ ✡ ✧ ✖

(sign. of

✖ ★ ✦

). Theorem If

is consistent then there is

✖ ✩ ★ ✖

such that

✖ ✩

is consistent and

complete. Proof Define a sequence of set of formulas

✖ ☎

as follows: Take an enumeration

☛ ✪ ✫ ✬ ✬ ✬ ☛ ☎ ✫ ✬ ✬ ✬
  • f all

sentences.

✖ ✭ ✘ ✖ ✖ ☎ ✮ ✪ ✘ ✖ ☎ ✯ ✒ ☛ ☎ ✮ ✪ ✕

if

✖ ☎ ✯ ✒ ☛ ☎ ✮ ✪ ✕

is consistent;

✖ ☎ ✯ ✒ ✎ ☛ ☎ ✮ ✪ ✕
  • therwise.

Show that

✖ ☎

is consistent by induction on

.

– p.6/9

slide-29
SLIDE 29

Complete Set of Formulas

Definition

is

complete if for every sentence

in the signature

, either

✡ ✧ ✖
  • r
✎ ✡ ✧ ✖

(sign. of

✖ ★ ✦

). Theorem If

is consistent then there is

✖ ✩ ★ ✖

such that

✖ ✩

is consistent and

complete. Proof Define a sequence of set of formulas

✖ ☎

as follows: Take an enumeration

☛ ✪ ✫ ✬ ✬ ✬ ☛ ☎ ✫ ✬ ✬ ✬
  • f all

sentences.

✖ ✭ ✘ ✖ ✖ ☎ ✮ ✪ ✘ ✖ ☎ ✯ ✒ ☛ ☎ ✮ ✪ ✕

if

✖ ☎ ✯ ✒ ☛ ☎ ✮ ✪ ✕

is consistent;

✖ ☎ ✯ ✒ ✎ ☛ ☎ ✮ ✪ ✕
  • therwise.

Show that

✖ ☎

is consistent by induction on

. Show that

✯ ☎ ✖ ☎

is a consistent and

  • complete.

– p.6/9

slide-30
SLIDE 30

Henkin Sets of Formulas

Definition

has Henkin property for

if for every sentence

✱ ✧ ✖
  • f the form
✎ ✏ ✑ ✡

in the signature

there is a constant

such that

✎ ✡ ✒ ✲ ✔ ✑ ✕ ✧ ✖

(sign. of

✖ ★ ✦

).

– p.7/9

slide-31
SLIDE 31

Henkin Sets of Formulas

Definition

has Henkin property for

if for every sentence

✱ ✧ ✖
  • f the form
✎ ✏ ✑ ✡

in the signature

there is a constant

such that

✎ ✡ ✒ ✲ ✔ ✑ ✕ ✧ ✖

(sign. of

✖ ★ ✦

). Theorem If

is consistent then there is a consistent

✖ ✩

such that

✖ ✳ ✖ ✩

and

✖ ✩

has Henkin property for

.

– p.7/9

slide-32
SLIDE 32

Henkin Sets of Formulas

Definition

has Henkin property for

if for every sentence

✱ ✧ ✖
  • f the form
✎ ✏ ✑ ✡

in the signature

there is a constant

such that

✎ ✡ ✒ ✲ ✔ ✑ ✕ ✧ ✖

(sign. of

✖ ★ ✦

). Theorem If

is consistent then there is a consistent

✖ ✩

such that

✖ ✳ ✖ ✩

and

✖ ✩

has Henkin property for

. Proof Show

– p.7/9

slide-33
SLIDE 33

Henkin Sets of Formulas

Definition

has Henkin property for

if for every sentence

✱ ✧ ✖
  • f the form
✎ ✏ ✑ ✡

in the signature

there is a constant

such that

✎ ✡ ✒ ✲ ✔ ✑ ✕ ✧ ✖

(sign. of

✖ ★ ✦

). Theorem If

is consistent then there is a consistent

✖ ✩

such that

✖ ✳ ✖ ✩

and

✖ ✩

has Henkin property for

. Proof Show Lemma If

is consistent and

✎ ✏ ✑ ✡ ✧ ✖

and

is a new constant then

✖ ✯ ✎ ✡ ✒ ✲ ✔ ✑ ✕

is consistent.

– p.7/9

slide-34
SLIDE 34

Henkin Sets of Formulas

Definition

has Henkin property for

if for every sentence

✱ ✧ ✖
  • f the form
✎ ✏ ✑ ✡

in the signature

there is a constant

such that

✎ ✡ ✒ ✲ ✔ ✑ ✕ ✧ ✖

(sign. of

✖ ★ ✦

). Theorem If

is consistent then there is a consistent

✖ ✩

such that

✖ ✳ ✖ ✩

and

✖ ✩

has Henkin property for

. Proof Show Lemma If

is consistent and

✎ ✏ ✑ ✡ ✧ ✖

and

is a new constant then

✖ ✯ ✎ ✡ ✒ ✲ ✔ ✑ ✕

is consistent. Apply Lemma to all

  • sentences of the form
✎ ✏ ✑ ✡

in

– p.7/9

slide-35
SLIDE 35

Complete Henkin Sets of formulas

Theorem If

is consistent then there is

✦ ✩

and a set

✖ ✩
  • f

formulas in the signature

✦ ✩

such that

– p.8/9

slide-36
SLIDE 36

Complete Henkin Sets of formulas

Theorem If

is consistent then there is

✦ ✩

and a set

✖ ✩
  • f

formulas in the signature

✦ ✩

such that 1.

✖ ✳ ✖ ✩

– p.8/9

slide-37
SLIDE 37

Complete Henkin Sets of formulas

Theorem If

is consistent then there is

✦ ✩

and a set

✖ ✩
  • f

formulas in the signature

✦ ✩

such that 1.

✖ ✳ ✖ ✩

2.

✖ ✩

is consistent

– p.8/9

slide-38
SLIDE 38

Complete Henkin Sets of formulas

Theorem If

is consistent then there is

✦ ✩

and a set

✖ ✩
  • f

formulas in the signature

✦ ✩

such that 1.

✖ ✳ ✖ ✩

2.

✖ ✩

is consistent 3.

✖ ✩

is

✦ ✩

complete and has Henkin property for

✦ ✩

.

– p.8/9

slide-39
SLIDE 39

Complete Henkin Sets of formulas

Theorem If

is consistent then there is

✦ ✩

and a set

✖ ✩
  • f

formulas in the signature

✦ ✩

such that 1.

✖ ✳ ✖ ✩

2.

✖ ✩

is consistent 3.

✖ ✩

is

✦ ✩

complete and has Henkin property for

✦ ✩

. Proof Apply iteratively two previous Theorems.

– p.8/9

slide-40
SLIDE 40

Complete Henkin Sets of formulas

Theorem If

is consistent then there is

✦ ✩

and a set

✖ ✩
  • f

formulas in the signature

✦ ✩

such that 1.

✖ ✳ ✖ ✩

2.

✖ ✩

is consistent 3.

✖ ✩

is

✦ ✩

complete and has Henkin property for

✦ ✩

. Proof Apply iteratively two previous Theorems.

✖ ✭ ✘ ✖ ✦ ☎

is the signature of

✖ ☎ ✴ ☎

is a

✦ ☎
  • complete set that contains
✖ ☎ ✖ ☎ ✮ ✪ ✘

has Henkin property for

✦ ☎

and contains

✴ ☎

– p.8/9

slide-41
SLIDE 41

Complete Henkin Sets of formulas

Theorem If

is consistent then there is

✦ ✩

and a set

✖ ✩
  • f

formulas in the signature

✦ ✩

such that 1.

✖ ✳ ✖ ✩

2.

✖ ✩

is consistent 3.

✖ ✩

is

✦ ✩

complete and has Henkin property for

✦ ✩

. Proof Apply iteratively two previous Theorems.

✖ ✭ ✘ ✖ ✦ ☎

is the signature of

✖ ☎ ✴ ☎

is a

✦ ☎
  • complete set that contains
✖ ☎ ✖ ☎ ✮ ✪ ✘

has Henkin property for

✦ ☎

and contains

✴ ☎ ✖ ✩ ✘ ✯ ✖ ☎ ✘ ✯ ✴ ☎

and

✦ ✩ ✘ ✯ ✦ ☎

– p.8/9

slide-42
SLIDE 42

Complete Henkin Sets of formulas

Theorem If

is consistent then there is

✦ ✩

and a set

✖ ✩
  • f

formulas in the signature

✦ ✩

such that 1.

✖ ✳ ✖ ✩

2.

✖ ✩

is consistent 3.

✖ ✩

is

✦ ✩

complete and has Henkin property for

✦ ✩

. Proof Apply iteratively two previous Theorems.

✖ ✭ ✘ ✖ ✦ ☎

is the signature of

✖ ☎ ✴ ☎

is a

✦ ☎
  • complete set that contains
✖ ☎ ✖ ☎ ✮ ✪ ✘

has Henkin property for

✦ ☎

and contains

✴ ☎ ✖ ✩ ✘ ✯ ✖ ☎ ✘ ✯ ✴ ☎

and

✦ ✩ ✘ ✯ ✦ ☎

– p.8/9

slide-43
SLIDE 43

Complete Henkin Sets of formulas

Theorem If

is consistent then there is

✦ ✩

and a set

✖ ✩
  • f

formulas in the signature

✦ ✩

such that 1.

✖ ✳ ✖ ✩

2.

✖ ✩

is consistent 3.

✖ ✩

is

✦ ✩

complete and has Henkin property for

✦ ✩

. Proof Apply iteratively two previous Theorems.

✖ ✭ ✘ ✖ ✦ ☎

is the signature of

✖ ☎ ✴ ☎

is a

✦ ☎
  • complete set that contains
✖ ☎ ✖ ☎ ✮ ✪ ✘

has Henkin property for

✦ ☎

and contains

✴ ☎ ✖ ✩ ✘ ✯ ✖ ☎ ✘ ✯ ✴ ☎

and

✦ ✩ ✘ ✯ ✦ ☎

– p.8/9

slide-44
SLIDE 44

Complete Henkin Sets of sentences are satisfiable

Theorem If

is a consistent set of sentences in

and

is

  • complete and has Henkin property for

then

holds (is satisfiable) in a Herbrand structure for

.

– p.9/9

slide-45
SLIDE 45

Complete Henkin Sets of sentences are satisfiable

Theorem If

is a consistent set of sentences in

and

is

  • complete and has Henkin property for

then

holds (is satisfiable) in a Herbrand structure for

. Proof Let be a Herbrand structure for

with

✵ ✶ ✂ ✓ ✪ ✫ ✬ ✬ ✬ ✫ ✓ ✷ ✆

iff

✵ ✂ ✓ ✪ ✫ ✬ ✬ ✬ ✓ ✷ ✆ ✧ ✖

– p.9/9

slide-46
SLIDE 46

Complete Henkin Sets of sentences are satisfiable

Theorem If

is a consistent set of sentences in

and

is

  • complete and has Henkin property for

then

holds (is satisfiable) in a Herbrand structure for

. Proof Let be a Herbrand structure for

with

✵ ✶ ✂ ✓ ✪ ✫ ✬ ✬ ✬ ✫ ✓ ✷ ✆

iff

✵ ✂ ✓ ✪ ✫ ✬ ✬ ✬ ✓ ✷ ✆ ✧ ✖

By structural induction on sentences show that

✡ ✧ ✖

iff

✸ ✗ ✡ ✗ ✹ ✶ ✘ ✓ ✺ ✻ ✼

– p.9/9