Basis for automated proof: Skolemization St ephane Devismes Pascal - - PowerPoint PPT Presentation

basis for automated proof skolemization
SMART_READER_LITE
LIVE PREVIEW

Basis for automated proof: Skolemization St ephane Devismes Pascal - - PowerPoint PPT Presentation

Skolemization Basis for automated proof: Skolemization St ephane Devismes Pascal Lafourcade Michel L evy Jean-Franc ois Monin (jean-francois.monin@imag.fr) Universit e Joseph Fourier, Grenoble I March 13, 2015 S. Devismes et al


slide-1
SLIDE 1

Skolemization

Basis for automated proof: Skolemization

St´ ephane Devismes Pascal Lafourcade Michel L´ evy Jean-Franc ¸ois Monin (jean-francois.monin@imag.fr)

Universit´ e Joseph Fourier, Grenoble I

March 13, 2015

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 1 / 28

slide-2
SLIDE 2

Skolemization

Overview

Introduction Examples and properties Skolemization Conclusion

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 2 / 28

slide-3
SLIDE 3

Skolemization Introduction

Plan

Introduction Examples and properties Skolemization Conclusion

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 3 / 28

slide-4
SLIDE 4

Skolemization Introduction

Introduction

Herbrand’s theorem applies to the domain closure of a set of formulae with no quantifier.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 4 / 28

slide-5
SLIDE 5

Skolemization Introduction

Introduction

Herbrand’s theorem applies to the domain closure of a set of formulae with no quantifier. For formulae with existential quantification,

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 4 / 28

slide-6
SLIDE 6

Skolemization Introduction

Introduction

Herbrand’s theorem applies to the domain closure of a set of formulae with no quantifier. For formulae with existential quantification, use skolemization.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 4 / 28

slide-7
SLIDE 7

Skolemization Introduction

Introduction

Herbrand’s theorem applies to the domain closure of a set of formulae with no quantifier. For formulae with existential quantification, use skolemization. This transformation was introduced by Thoralf Albert Skolem (1887 - 1963), Norvegian mathematician and logician.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 4 / 28

slide-8
SLIDE 8

Skolemization Introduction

General view

Skolemization

◮ transforms a set of closed formulae to the domain closure of a set

  • f formulae with no quantifier.
  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 5 / 28

slide-9
SLIDE 9

Skolemization Introduction

General view

Skolemization

◮ transforms a set of closed formulae to the domain closure of a set

  • f formulae with no quantifier.

◮ preserves the existence of a model.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 5 / 28

slide-10
SLIDE 10

Skolemization Examples and properties

Plan

Introduction Examples and properties Skolemization Conclusion

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 6 / 28

slide-11
SLIDE 11

Skolemization Examples and properties

Example 5.2.1

The formula ∃xP(x) is skolemized as P(a). We note the following relations between the two formulae :

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 7 / 28

slide-12
SLIDE 12

Skolemization Examples and properties

Example 5.2.1

The formula ∃xP(x) is skolemized as P(a). We note the following relations between the two formulae :

  • 1. ∃xP(x) is a consequence of P(a)
  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 7 / 28

slide-13
SLIDE 13

Skolemization Examples and properties

Example 5.2.1

The formula ∃xP(x) is skolemized as P(a). We note the following relations between the two formulae :

  • 1. ∃xP(x) is a consequence of P(a)
  • 2. P(a) is not a consequence of ∃xP(x), but a model of ∃x P(x)

≪ provides ≫ a model of P(a).

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 7 / 28

slide-14
SLIDE 14

Skolemization Examples and properties

Example 5.2.1

The formula ∃xP(x) is skolemized as P(a). We note the following relations between the two formulae :

  • 1. ∃xP(x) is a consequence of P(a)
  • 2. P(a) is not a consequence of ∃xP(x), but a model of ∃x P(x)

≪ provides ≫ a model of P(a).

Indeed, let I be a model of ∃xP(x). Hence there exists d ∈ PI. Let J be the interpretation such that PJ = PI and aJ = d. J is model of P(a).

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 7 / 28

slide-15
SLIDE 15

Skolemization Examples and properties

Example 5.2.2

The formula ∀x∃yQ(x,y) is skolemized as ∀xQ(x,f(x)). Again :

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 8 / 28

slide-16
SLIDE 16

Skolemization Examples and properties

Example 5.2.2

The formula ∀x∃yQ(x,y) is skolemized as ∀xQ(x,f(x)). Again :

  • 1. ∀x∃yQ(x,y) is a consequence of ∀xQ(x,f(x))
  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 8 / 28

slide-17
SLIDE 17

Skolemization Examples and properties

Example 5.2.2

The formula ∀x∃yQ(x,y) is skolemized as ∀xQ(x,f(x)). Again :

  • 1. ∀x∃yQ(x,y) is a consequence of ∀xQ(x,f(x))
  • 2. ∀xQ(x,f(x)) is not a consequence of ∀x∃yQ(x,y) ; but a model
  • f ∀x∃yQ(x,y) ≪ provides ≫ a model of ∀xQ(x,f(x)).
  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 8 / 28

slide-18
SLIDE 18

Skolemization Examples and properties

Example 5.2.2

The formula ∀x∃yQ(x,y) is skolemized as ∀xQ(x,f(x)). Again :

  • 1. ∀x∃yQ(x,y) is a consequence of ∀xQ(x,f(x))
  • 2. ∀xQ(x,f(x)) is not a consequence of ∀x∃yQ(x,y) ; but a model
  • f ∀x∃yQ(x,y) ≪ provides ≫ a model of ∀xQ(x,f(x)).

Let I be a model of ∀x∃yQ(x,y) and let D be the domain of I. For every d ∈ D, the set {e ∈ D | (d,e) ∈ QI} is not empty, hence there exists a function g : D → D such that for every d ∈ D, g(d) ∈ {e ∈ D | (d,e) ∈ QI}. Let J be the interpretation J such that QJ = QI and fJ = g : J is a model of ∀xQ(x,f(x)).

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 8 / 28

slide-19
SLIDE 19

Skolemization Examples and properties

Properties

Skolemization eliminates existential quantifiers and transforms a closed formula A to a formula B such that :

◮ A is a consequence of B, (B |

= A)

◮ every model of A ≪ provides ≫ a model of B

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 9 / 28

slide-20
SLIDE 20

Skolemization Examples and properties

Properties

Skolemization eliminates existential quantifiers and transforms a closed formula A to a formula B such that :

◮ A is a consequence of B, (B |

= A)

◮ every model of A ≪ provides ≫ a model of B

Hence, A has a model if and only if B has a model : skolemization preserves the existence of a model, in other words it preserves satisfiability.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 9 / 28

slide-21
SLIDE 21

Skolemization Skolemization

Plan

Introduction Examples and properties Skolemization Conclusion

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 10 / 28

slide-22
SLIDE 22

Skolemization Skolemization

Definitions

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 11 / 28

slide-23
SLIDE 23

Skolemization Skolemization

Definitions

Definition 5.2.3 A closed formula is said to be proper, if it does not contain any variable which is bound by two distinct quantifiers.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 11 / 28

slide-24
SLIDE 24

Skolemization Skolemization

Definitions

Definition 5.2.3 A closed formula is said to be proper, if it does not contain any variable which is bound by two distinct quantifiers. Example 5.2.4

◮ The formula ∀xP(x)∨∀xQ(x) is not proper.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 11 / 28

slide-25
SLIDE 25

Skolemization Skolemization

Definitions

Definition 5.2.3 A closed formula is said to be proper, if it does not contain any variable which is bound by two distinct quantifiers. Example 5.2.4

◮ The formula ∀xP(x)∨∀xQ(x) is not proper. ◮ The formula ∀xP(x)∨∀yQ(y) is proper.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 11 / 28

slide-26
SLIDE 26

Skolemization Skolemization

Definitions

Definition 5.2.3 A closed formula is said to be proper, if it does not contain any variable which is bound by two distinct quantifiers. Example 5.2.4

◮ The formula ∀xP(x)∨∀xQ(x) is not proper. ◮ The formula ∀xP(x)∨∀yQ(y) is proper. ◮ The formula ∀x(P(x) ⇒ ∃xQ(x)∧∃yR(x,y)) is not proper.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 11 / 28

slide-27
SLIDE 27

Skolemization Skolemization

Definitions

Definition 5.2.3 A closed formula is said to be proper, if it does not contain any variable which is bound by two distinct quantifiers. Example 5.2.4

◮ The formula ∀xP(x)∨∀xQ(x) is not proper. ◮ The formula ∀xP(x)∨∀yQ(y) is proper. ◮ The formula ∀x(P(x) ⇒ ∃xQ(x)∧∃yR(x,y)) is not proper. ◮ The formula ∀x(P(x) ⇒ ∃yR(x,y)) is proper.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 11 / 28

slide-28
SLIDE 28

Skolemization Skolemization

Definitions : generalized normal form

A first-order logic formula is in normal form if it does not contain equivalences, implications, and if negations only apply to atomic formulae.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 12 / 28

slide-29
SLIDE 29

Skolemization Skolemization

How to skolemize a closed formula A ?

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 13 / 28

slide-30
SLIDE 30

Skolemization Skolemization

How to skolemize a closed formula A ? Definition 5.2.5 (skolemization) Let A a closed formula and E the normal formula with no quantifier,

  • btained by the following transformation : E is the Skolem form of A.
  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 13 / 28

slide-31
SLIDE 31

Skolemization Skolemization

How to skolemize a closed formula A ? Definition 5.2.5 (skolemization) Let A a closed formula and E the normal formula with no quantifier,

  • btained by the following transformation : E is the Skolem form of A.
  • 1. B = normalization of A
  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 13 / 28

slide-32
SLIDE 32

Skolemization Skolemization

How to skolemize a closed formula A ? Definition 5.2.5 (skolemization) Let A a closed formula and E the normal formula with no quantifier,

  • btained by the following transformation : E is the Skolem form of A.
  • 1. B = normalization of A
  • 2. C = make B proper
  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 13 / 28

slide-33
SLIDE 33

Skolemization Skolemization

How to skolemize a closed formula A ? Definition 5.2.5 (skolemization) Let A a closed formula and E the normal formula with no quantifier,

  • btained by the following transformation : E is the Skolem form of A.
  • 1. B = normalization of A
  • 2. C = make B proper
  • 3. D= Elimination of existential quantifiers from C.

This transformation only preserves the existence of a model.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 13 / 28

slide-34
SLIDE 34

Skolemization Skolemization

How to skolemize a closed formula A ? Definition 5.2.5 (skolemization) Let A a closed formula and E the normal formula with no quantifier,

  • btained by the following transformation : E is the Skolem form of A.
  • 1. B = normalization of A
  • 2. C = make B proper
  • 3. D= Elimination of existential quantifiers from C.

This transformation only preserves the existence of a model.

  • 4. E = Transformation of the closed, normal, proper formula with no

existential quantifiers D into a normal formula without quantifiers.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 13 / 28

slide-35
SLIDE 35

Skolemization Skolemization

Normalization

  • 1. Eliminate the equivalences
  • 2. Eliminate the implications
  • 3. Move the negations towards the atomic formulae

Rules A ⇔ B ≡ (A ⇒ B)∧(B ⇒ A) A ⇒ B ≡ ¬A∨ B

¬¬A ≡ A ¬(A∧ B) ≡ ¬A∨¬B ¬(A∨ B) ≡ ¬A∧¬B ¬∀xA ≡ ∃x¬A ¬∃xA ≡ ∀x¬A

Hint : replace ¬(A ⇒ B) by A∧¬B

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 14 / 28

slide-36
SLIDE 36

Skolemization Skolemization

Example 5.2.7

The normal form of ∀y(∀xP(x,y) ⇔ Q(y)) is :

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 15 / 28

slide-37
SLIDE 37

Skolemization Skolemization

Example 5.2.7

The normal form of ∀y(∀xP(x,y) ⇔ Q(y)) is : First, elimination of equivalences :

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 15 / 28

slide-38
SLIDE 38

Skolemization Skolemization

Example 5.2.7

The normal form of ∀y(∀xP(x,y) ⇔ Q(y)) is : First, elimination of equivalences :

∀y((¬∀xP(x,y)∨ Q(y))∧(¬Q(y)∨∀xP(x,y)))

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 15 / 28

slide-39
SLIDE 39

Skolemization Skolemization

Example 5.2.7

The normal form of ∀y(∀xP(x,y) ⇔ Q(y)) is : First, elimination of equivalences :

∀y((¬∀xP(x,y)∨ Q(y))∧(¬Q(y)∨∀xP(x,y)))

Then, move negations :

∀y((∃x¬P(x,y)∨ Q(y))∧(¬Q(y)∨∀xP(x,y)))

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 15 / 28

slide-40
SLIDE 40

Skolemization Skolemization

Transformation to a proper formula

Change the name of correctly linked variables, e.g., by choosing new variables at every change of a name.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 16 / 28

slide-41
SLIDE 41

Skolemization Skolemization

Transformation to a proper formula

Change the name of correctly linked variables, e.g., by choosing new variables at every change of a name. Example 5.2.8

◮ The formula ∀xP(x)∨∀xQ(x) is changed to

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 16 / 28

slide-42
SLIDE 42

Skolemization Skolemization

Transformation to a proper formula

Change the name of correctly linked variables, e.g., by choosing new variables at every change of a name. Example 5.2.8

◮ The formula ∀xP(x)∨∀xQ(x) is changed to

∀xP(x)∨∀yQ(y)

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 16 / 28

slide-43
SLIDE 43

Skolemization Skolemization

Transformation to a proper formula

Change the name of correctly linked variables, e.g., by choosing new variables at every change of a name. Example 5.2.8

◮ The formula ∀xP(x)∨∀xQ(x) is changed to

∀xP(x)∨∀yQ(y)

◮ The formula ∀x(P(x) ⇒ ∃xQ(x)∧∃yR(x,y)) is changed to

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 16 / 28

slide-44
SLIDE 44

Skolemization Skolemization

Transformation to a proper formula

Change the name of correctly linked variables, e.g., by choosing new variables at every change of a name. Example 5.2.8

◮ The formula ∀xP(x)∨∀xQ(x) is changed to

∀xP(x)∨∀yQ(y)

◮ The formula ∀x(P(x) ⇒ ∃xQ(x)∧∃yR(x,y)) is changed to

∀x(P(x) ⇒ ∃zQ(z)∧∃yR(x,y))

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 16 / 28

slide-45
SLIDE 45

Skolemization Skolemization

Elimination of existential quantifiers

Theorem 5.2.9 Let A be a closed normal and proper formula having one occurrence of the sub-formula ∃yB. Let x1,...xn be the free variables of ∃yB, with n ≥ 0. Let f be a symbol not appearing in A. Let A′ be the formula

  • btained by replacing this occurrence of ∃yB by

B < y := f(x1,...xn) > (If n = 0, f is a constant). The formula A′ is a closed normal and proper formula satisfying :

  • 1. A is a consequence of A′
  • 2. If A has a model then A′ has an identical model up to the truth

value of f.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 17 / 28

slide-46
SLIDE 46

Skolemization Skolemization

Theorem proof 5.2.9

Let us show that A is a consequence of A′.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 18 / 28

slide-47
SLIDE 47

Skolemization Skolemization

Theorem proof 5.2.9

Let us show that A is a consequence of A′. Since the formula A is closed and proper, the free variables of ∃yB, which are bound outside ∃yB, are not bound by any quantifier in B (otherwise the proper property would not be respected), hence the term f(x1,...xn) is free for y in B.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 18 / 28

slide-48
SLIDE 48

Skolemization Skolemization

Theorem proof 5.2.9

Let us show that A is a consequence of A′. Since the formula A is closed and proper, the free variables of ∃yB, which are bound outside ∃yB, are not bound by any quantifier in B (otherwise the proper property would not be respected), hence the term f(x1,...xn) is free for y in B. According to corollary 4.3.38 : B < y := f(x1,...xn) > has as consequence ∃yB. Hence, we deduce that A is a consequence of A′.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 18 / 28

slide-49
SLIDE 49

Skolemization Skolemization

Proof of theorem 5.2.9

Let us show that every model of A provides a model of A′. Suppose that A has a model I where I is an interpretation with domain D. Let c ∈ D. For all d1,...,dn,∈ D, let Ed1,...,dn be the set of elements d ∈ D such that the formula B equals 1 in the interpretation I and the state x1 = d1,...,xn = dn,y = d of its free

  • variables. Let g : Dn → D be a function such that if Ed1,...,dn = /

0 then

g(d1,...,dn) ∈ Ed1,...,dn else g(d1,...,dn) = c. Let J be the interpretation identical to I except that fJ = g. We have :

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 19 / 28

slide-50
SLIDE 50

Skolemization Skolemization

Proof of theorem 5.2.9

Let us show that every model of A provides a model of A′. Suppose that A has a model I where I is an interpretation with domain D. Let c ∈ D. For all d1,...,dn,∈ D, let Ed1,...,dn be the set of elements d ∈ D such that the formula B equals 1 in the interpretation I and the state x1 = d1,...,xn = dn,y = d of its free

  • variables. Let g : Dn → D be a function such that if Ed1,...,dn = /

0 then

g(d1,...,dn) ∈ Ed1,...,dn else g(d1,...,dn) = c. Let J be the interpretation identical to I except that fJ = g. We have :

  • 1. [∃yB](I,e) = [B < y := f(x1,...,xn) >](J,e), according to the interpretation of f

and of theorem 4.3.36, for every state e of the variables,

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 19 / 28

slide-51
SLIDE 51

Skolemization Skolemization

Proof of theorem 5.2.9

Let us show that every model of A provides a model of A′. Suppose that A has a model I where I is an interpretation with domain D. Let c ∈ D. For all d1,...,dn,∈ D, let Ed1,...,dn be the set of elements d ∈ D such that the formula B equals 1 in the interpretation I and the state x1 = d1,...,xn = dn,y = d of its free

  • variables. Let g : Dn → D be a function such that if Ed1,...,dn = /

0 then

g(d1,...,dn) ∈ Ed1,...,dn else g(d1,...,dn) = c. Let J be the interpretation identical to I except that fJ = g. We have :

  • 1. [∃yB](I,e) = [B < y := f(x1,...,xn) >](J,e), according to the interpretation of f

and of theorem 4.3.36, for every state e of the variables,

  • 2. [∃yB](I,e) = [∃yB](J,e), since the symbol f is new, the value of ∃yB does not

depend of the truth value of f.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 19 / 28

slide-52
SLIDE 52

Skolemization Skolemization

Proof of theorem 5.2.9

Let us show that every model of A provides a model of A′. Suppose that A has a model I where I is an interpretation with domain D. Let c ∈ D. For all d1,...,dn,∈ D, let Ed1,...,dn be the set of elements d ∈ D such that the formula B equals 1 in the interpretation I and the state x1 = d1,...,xn = dn,y = d of its free

  • variables. Let g : Dn → D be a function such that if Ed1,...,dn = /

0 then

g(d1,...,dn) ∈ Ed1,...,dn else g(d1,...,dn) = c. Let J be the interpretation identical to I except that fJ = g. We have :

  • 1. [∃yB](I,e) = [B < y := f(x1,...,xn) >](J,e), according to the interpretation of f

and of theorem 4.3.36, for every state e of the variables,

  • 2. [∃yB](I,e) = [∃yB](J,e), since the symbol f is new, the value of ∃yB does not

depend of the truth value of f.

  • 3. ∃yB ⇔ B < y := f(x1,...,xn) >|

= A ⇔ A′, according to the property of

replacement 1.3.10, which holds in first-order logic as well.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 19 / 28

slide-53
SLIDE 53

Skolemization Skolemization

Proof of theorem 5.2.9

Let us show that every model of A provides a model of A′. Suppose that A has a model I where I is an interpretation with domain D. Let c ∈ D. For all d1,...,dn,∈ D, let Ed1,...,dn be the set of elements d ∈ D such that the formula B equals 1 in the interpretation I and the state x1 = d1,...,xn = dn,y = d of its free

  • variables. Let g : Dn → D be a function such that if Ed1,...,dn = /

0 then

g(d1,...,dn) ∈ Ed1,...,dn else g(d1,...,dn) = c. Let J be the interpretation identical to I except that fJ = g. We have :

  • 1. [∃yB](I,e) = [B < y := f(x1,...,xn) >](J,e), according to the interpretation of f

and of theorem 4.3.36, for every state e of the variables,

  • 2. [∃yB](I,e) = [∃yB](J,e), since the symbol f is new, the value of ∃yB does not

depend of the truth value of f.

  • 3. ∃yB ⇔ B < y := f(x1,...,xn) >|

= A ⇔ A′, according to the property of

replacement 1.3.10, which holds in first-order logic as well. According to these three points, we obtain [A](J,e) = [A′](J,e) and since f is not in A and since the formulae A and A′ do not contain free variables, we have [A]I = [A′]J. Since I is model of A, J is model of A′.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 19 / 28

slide-54
SLIDE 54

Skolemization Skolemization

Remark 5.2.10

In theorem 5.2.9, note that the formula A′ obtained from formula A by elimination of a quantifier remains closed, normal and proper. Hence, by ≪ applying ≫ the theorem repeatedly, which implies choosing a new symbol for each eliminated quantifier, one can transform a closed, normal and proper formula A into a closed, normal, proper and without existential quantifier formula B such that :

◮ A is a consequence of B ◮ If A has a model, then B has an identical model except for the

truth value of the new symbols

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 20 / 28

slide-55
SLIDE 55

Skolemization Skolemization

Example 5.2.11

By eliminating existential quantifiers in the formula

∃x∀yP(x,y)∧∃z∀u¬P(z,u) we obtain ∀yP(a,y)∧∀u¬P(b,u).

It is easy to observe that this formula has a model.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 21 / 28

slide-56
SLIDE 56

Skolemization Skolemization

Example 5.2.11

By eliminating existential quantifiers in the formula

∃x∀yP(x,y)∧∃z∀u¬P(z,u) we obtain ∀yP(a,y)∧∀u¬P(b,u).

It is easy to observe that this formula has a model. Remark : If we mistakently eliminate the two existential quantifiers using the same constant a, we obtain the formula

∀yP(a,y)∧∀u¬P(a,u), which is unsatisfiable, since it has as

consequence P(a,a) and ¬P(a,a). Therefore a new symbol must be used whenever an existential quantifier is eliminated.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 21 / 28

slide-57
SLIDE 57

Skolemization Skolemization

Transformation in universal closure

Theorem 5.2.13 Let A be a closed, normal, proper formula without existential quantifier. Let B be the formula obtained by removing from A all the universal quantifiers (B is the Skolem form of A). Formula A is equivalent to the domain closure of B.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 22 / 28

slide-58
SLIDE 58

Skolemization Skolemization

Transformation in universal closure

Theorem 5.2.13 Let A be a closed, normal, proper formula without existential quantifier. Let B be the formula obtained by removing from A all the universal quantifiers (B is the Skolem form of A). Formula A is equivalent to the domain closure of B. Proof. According to the requirements on A its transformation into ∀(B) is made of replacements of sub-formulae of the form

(∀xC)∧ D by ∀x(C ∧ D) where x not free in D (∀xC)∨ D by ∀x(C ∨ D) where x not free in D

D ∧(∀xC) by ∀x(D ∧ C) where x not free in D D ∨(∀xC) by ∀x(D ∨ C) where x not free in D Since each of this replacements changes a formula into another equivalent formula, the formulae A and ∀(B) are equivalent.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 22 / 28

slide-59
SLIDE 59

Skolemization Skolemization

Property of skolemization

Property 5.2.14 Let A be a closed formula and B the Skolem form of A. ◮ The formula ∀(B) has as consequence the formula A ◮ if A has a model then ∀(B) has a model Hence A has a model if and only if ∀(B) has a model. Proof. Let C be the closed proper formula in normal form, obtained at the end of the first two steps of skolemization of A. Let D be the result of the elimination of existential quantifiers applied to C. According to remark 5.2.10 we have : ◮ The formula D has as consequence the formula C ◮ if C has a model then D has a model. Since the first two steps change the formulae into equivalent formulae, A and C are

  • equivalent. According to theorem 5.2.13, D is equivalent to ∀(B). Hence we can

replace above D by ∀(B) and C by A, QED.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 23 / 28

slide-60
SLIDE 60

Skolemization Skolemization

Example 5.2.15

Let A = ∀x(P(x) ⇒ Q(x)) ⇒ (∀xP(x) ⇒ ∀xQ(x)). We skolemize ¬A.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 24 / 28

slide-61
SLIDE 61

Skolemization Skolemization

Example 5.2.15

Let A = ∀x(P(x) ⇒ Q(x)) ⇒ (∀xP(x) ⇒ ∀xQ(x)). We skolemize ¬A.

  • 1. ¬A is transformed into the normal formula :

∀x(¬P(x)∨ Q(x))∧∀xP(x)∧∃x¬Q(x)

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 24 / 28

slide-62
SLIDE 62

Skolemization Skolemization

Example 5.2.15

Let A = ∀x(P(x) ⇒ Q(x)) ⇒ (∀xP(x) ⇒ ∀xQ(x)). We skolemize ¬A.

  • 1. ¬A is transformed into the normal formula :

∀x(¬P(x)∨ Q(x))∧∀xP(x)∧∃x¬Q(x)

  • 2. The normal formula is transformed into the proper formula :

∀x(¬P(x)∨ Q(x))∧∀yP(y)∧∃z¬Q(z)

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 24 / 28

slide-63
SLIDE 63

Skolemization Skolemization

Example 5.2.15

Let A = ∀x(P(x) ⇒ Q(x)) ⇒ (∀xP(x) ⇒ ∀xQ(x)). We skolemize ¬A.

  • 1. ¬A is transformed into the normal formula :

∀x(¬P(x)∨ Q(x))∧∀xP(x)∧∃x¬Q(x)

  • 2. The normal formula is transformed into the proper formula :

∀x(¬P(x)∨ Q(x))∧∀yP(y)∧∃z¬Q(z)

  • 3. The existential quantifier is ≪ replaced ≫ by a constant :

∀x(¬P(x)∨ Q(x))∧∀yP(y)∧¬Q(a)

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 24 / 28

slide-64
SLIDE 64

Skolemization Skolemization

Example 5.2.15

Let A = ∀x(P(x) ⇒ Q(x)) ⇒ (∀xP(x) ⇒ ∀xQ(x)). We skolemize ¬A.

  • 1. ¬A is transformed into the normal formula :

∀x(¬P(x)∨ Q(x))∧∀xP(x)∧∃x¬Q(x)

  • 2. The normal formula is transformed into the proper formula :

∀x(¬P(x)∨ Q(x))∧∀yP(y)∧∃z¬Q(z)

  • 3. The existential quantifier is ≪ replaced ≫ by a constant :

∀x(¬P(x)∨ Q(x))∧∀yP(y)∧¬Q(a)

  • 4. The universal quantifiers are eliminated :

(¬P(x)∨ Q(x))∧ P(y)∧¬Q(a).

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 24 / 28

slide-65
SLIDE 65

Skolemization Skolemization

Example 5.2.15

Let A = ∀x(P(x) ⇒ Q(x)) ⇒ (∀xP(x) ⇒ ∀xQ(x)). We skolemize ¬A.

  • 1. ¬A is transformed into the normal formula :

∀x(¬P(x)∨ Q(x))∧∀xP(x)∧∃x¬Q(x)

  • 2. The normal formula is transformed into the proper formula :

∀x(¬P(x)∨ Q(x))∧∀yP(y)∧∃z¬Q(z)

  • 3. The existential quantifier is ≪ replaced ≫ by a constant :

∀x(¬P(x)∨ Q(x))∧∀yP(y)∧¬Q(a)

  • 4. The universal quantifiers are eliminated :

(¬P(x)∨ Q(x))∧ P(y)∧¬Q(a).

Let us instantiate the Skolem form of ¬A by replacing x and y by a. We obtain the formula (¬P(a)∨ Q(a))∧ P(a)∧¬Q(a) which is unsatisfiable. Hence

∀((¬P(x)∨ Q(x))∧ P(y)∧¬Q(a) is unsatisfiable. Since skolemization

preserves the existence of a model, ¬A is unsatisfiable, hence A is valid.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 24 / 28

slide-66
SLIDE 66

Skolemization Skolemization

Skolemizing a set of formulae

Corollary 5.2.16 Let Γ be a set of closed formulae. Skolemization of Γ consists in applying skolemization to all formulae of Γ, by selecting a new symbol for each existential quantifier eliminated in the third step of skolemization. We obtain a set ∆ of formulae without quantifiers such that :

◮ Every model of ∀(∆) is model of Γ ◮ If Γ has a model then ∀(∆) has a model which is the same as for Γ up

to the truth value of new symbols.

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 25 / 28

slide-67
SLIDE 67

Skolemization Conclusion

Plan

Introduction Examples and properties Skolemization Conclusion

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 26 / 28

slide-68
SLIDE 68

Skolemization Conclusion

Today

◮ Skolemization

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 27 / 28

slide-69
SLIDE 69

Skolemization Conclusion

Next course

◮ Clausal form ◮ Unification ◮ First-order resolution ◮ Consistency ◮ Completeness

  • S. Devismes et al (Grenoble I)

Skolemization March 13, 2015 28 / 28