semantic data chapter 2 : introduction to first order...

52
Semantic Data Chapter 2 : Introduction to first order logic Jean-Louis Binot 12/02/2020 Semantic Data 1

Upload: others

Post on 20-May-2020

21 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Semantic Data

Chapter 2 : Introduction to first order logic

Jean-Louis Binot

12/02/2020Semantic Data1

Page 2: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Course content outline

2

Page 3: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Sources and recommended readings

3

Page 4: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Why study logic?

4

Page 5: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Types of logics

5

Page 6: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Agenda

6

Model-theoretic semantics2

First order logic1

Decidability4

Satisfiability, validity, entailment3

Page 7: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Precursors of first order logic

Page 8: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

A very short reminder of proposition logic

◼ ⊤ ⊥

◼ Π

◼ ∧ ∨ → ↔

8

Page 9: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

∈ Π

⊤ ⊥

∧ ∨ → ↔

∧ ∨ → ↔

∨ → ∧ ↔ ∨

A very short reminder of proposition logic ./.

∧ ∨ → ↔

9

Page 10: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Some standard equivalences in propositional logic

❑ ∧ ≡ ∧ ∧

❑ ∨ ≡ ∨ ∨

❑ ∧ ∧ ≡ ∧ ∧ ∧

❑ ∨ ∨ ≡ ∨ ∨ ∨

❑ ≡

❑ → ≡ →

❑ → ≡ ∨

❑ ↔ ≡ → ∧ →

❑ ∧ ≡ ∨

❑ ∨ ≡ ∧

❑ ∧ ∨ ≡ ∧ ∨ ∧ ∧ ∨

❑ ∨ ∧ ≡ ∨ ∧ ∨ ∨ ∧

10

Page 11: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Limits of proposition logic

∀ →

∃ ∧

11

Page 12: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Vocabulary of first order logic

◼ → ↔

12

Page 13: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Syntax of first order logic

∀ → ∃ ∧

13

Page 14: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

First order logic: formal syntax

◼ ⊤) ⊥)

◼ ¬ ∧ ∨ → ↔

◼ ∀ ∃

: ∀ ∃, ¬ ∧ ∨, →, ↔.

14

Page 15: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Examples of terms and formulas

∃ ∧

15

Page 16: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Intuitive understanding of quantifiers and common mistakes

◼ ∀

∃ ∧

∃ →

16

Page 17: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Nested quantifiers

∀ ∀ →

∀ ∃

∃ ∀

17

Page 18: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

De Morgan’s rules for quantifiers

❑ ∀ ∃

∨ ↔ ∧ ∀ ↔ ∃

∧ ↔ ∨ ∀ ↔ ∃

∧ ↔ ∨ ∀ ↔ ∃

∨ ↔ ∧ ∃ ↔ ∀

18

Page 19: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Free and bound variables, quantifier scope

∀ ∃

◼ ∀ ∃

◼ ∀ ∃

∀ ∀

19

Page 20: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Caution note

∀ ∨ ∃

∀ ∨ ∃

20

Page 21: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Why is it called first order logic ?

21

Page 22: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Agenda

22

Model-theoretic semantics2

First order logic1

Decidability4

Satisfiability, validity, entailment3

Page 23: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Model theoretic semantics

I I

❑ I I

I ⊨23

I

IF

Page 24: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Ingredients of model-theoretic semantics

I

24

Page 25: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Model theoretic semantics of propositional logic (reminder)

❑ I

◼ I

❑ I I

II

◼ ⊤I

⊥I

◼I I

◼ ∧ I I I

◼ ∨ I I I

◼ → I I I

◼ ↔ I I I

25

Page 26: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Semantics of FOL: intuition

26

Page 27: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Interpretation domain : example

❑ I

◼I I I

I I

◼I

◼I

I1

II

I2

27

Page 28: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

First order logic: semantics

I ΔI I α

❑ ΔI

❑I

◼I ∈ ΔI

◼I ΔI →

◼I ΔI → ΔI

❑ α α ∈ ΔI

❑ tI FI I

ΔI ΔI

28

Page 29: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

First order logic semantics : terms

I

◼I

◼ α I α

◼I I I I I

29

Page 30: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

First order logic semantics : formulas

◼I I I I I

❑ → ↔

I I ∈ ΔI

◼ ∀ I ∈ ΔI I

◼ ∃ I ∈ ΔI I

30

Page 31: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Agenda

31

Model-theoretic semantics2

First order logic1

Decidability4

Satisfiability, validity, entailment3

Page 32: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Fundamental semantic concepts

32

Page 33: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Satisfiability and validity

❑ I I ⊨ I

◼ I

◼ I I I ⊭

❑ ⊨

❑ ⊭

◼ ⊨ ⊭

33

Page 34: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Satisfiability for set of formulas

❑ I

I

I ∈ ⊭

∧ ∧

34

Page 35: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Entailment and logical equivalence

❑ ⊨

❑ ⊨

◼ ∅ ⊨ ⊨

❑ ≡

I I I

35

Page 36: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Some useful results

❑ ⊨ ⊨ → →

❑ ⊨ ⊭ ∧ ∧

36

Page 37: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Logical consequence and knowledge-based inferences

37

Page 38: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Updated framework of reference

Data integration component

38

Page 39: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Monotonicity, closed-world and open-world assumptions

⊨ ∧ ⊨

◼ ⊨ ∧ ⊨

39

Page 40: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Agenda

40

Model-theoretic semantics2

First order logic1

Decidability4

Satisfiability, validity, entailment3

Page 41: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Questions regarding the use of FOL for reasoning

41

Page 42: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

1. Knowledge representation in FOL

∀ ∀ ∧ ∧ →

∀ → ∨

∀ ∀ ↔

∀ ∧ → ∨ ∨ ∨

∀ ∧ → ↔ ∃

∀ ∧ → ↔ ∃

∀ ∧ ⇒ ⇔

∀ →

42

Page 43: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

1. Knowledge representation in FOL

∀ ∀ ∧ ∧ →

∀ → ∨

∀ ∀ ↔

∀ ∧ → ∨ ∨ ∨

∀ ∧ → ↔ ∃

∀ ∧ → ↔ ∃

∀ ∧ ⇒ ⇔

∀ →

43

Page 44: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

2. Logical reasoning

44

Page 45: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

A truth table enumeration algorithm for PL entailment

❑ ΟΟ

45

Page 46: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Decision problems

46

Page 47: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Decidability of propositional logic

◼ ⊨ ⊭ ∧ ∧

◼ ⊨ ⊭

◼ ≡ ⊨ ⊨

47

Page 48: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Undecidability of first order logic

48

Page 49: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Practical approaches for reasoning with first order logic

∧ →

49

Page 50: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

Summary

50

Page 51: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

References

51

Page 52: Semantic Data Chapter 2 : Introduction to first order logicmontefiore.ulg.ac.be/~binot/INFO8005/Theory/Semantic-data-ch2.pdf · 1 Semantic Data 12/02/2020. Course content outline

THANK YOU

52