description logics foundations of first order logic
play

Description Logics Foundations of First Order Logic Enrico Franconi - PowerPoint PPT Presentation

Description Logics Foundations of First Order Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/franconi Department of Computer Science, University of Manchester (1/41) Motivation We can already do a lot with


  1. Description Logics Foundations of First Order Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/˜franconi Department of Computer Science, University of Manchester (1/41)

  2. Motivation • We can already do a lot with propositional logic. • But it is unpleasant that we cannot access the structure of atomic sentences. • Atomic formulas of propositional logic are too atomic – they are just statement which my be true or false but which have no internal structure. • In First Order Logic (FOL) the atomic formulas are interpreted as statements about relationships between objects . (2/41)

  3. Predicates and Constants Let’s consider the statements: • Mary is female John is male Mary and John are siblings In propositional logic the above statements are atomic propositions: • Mary-is-female John-is-male Mary-and-John-are-siblings In FOL atomic statements use predicates, with constants as argument: • Female(mary) Male(john) Siblings(mary,john) (3/41)

  4. Variables and Quantifiers Let’s consider the statements: • Everybody is male or female • A male is not a female In FOL predicates may have variables as arguments, whose value is bounded by quantifiers: • ∀ x . Male ( x ) ∨ Female ( x ) • ∀ x . Male ( x ) → ¬ Female ( x ) Deduction (why?): • Mary is not male • ¬ Male ( mary ) (4/41)

  5. Functions Let’s consider the statement: • The father of a person is male In FOL objects of the domain may be denoted by functions applied to (other) objects: • ∀ x . Male ( father ( x )) (5/41)

  6. Syntax of FOL: atomic sentences Countably infinite supply of symbols ( signature ): • variable symbols: x, y, z, . . . n -ary function symbols: f, g, h, . . . individual constants: a, b, c, . . . n -are predicate symbols: P, Q, R, . . . → x t Terms: variable | a constant | f ( t 1 , . . . , t n ) function application Ground terms : terms that do not contain variables → P ( t 1 , . . . , t n ) Formulas: φ atomic formulas Brother ( kingJohn, richardTheLionheart ) E.g., > ( length ( leftLegOf ( richard )) , length ( leftLegOf ( kingJohn ))) (6/41)

  7. Syntax of FOL: propositional sentences Formulas: φ, ψ → P ( t 1 , . . . , t n ) atomic formulas | ⊥ false | ⊤ true | ¬ φ negation | φ ∧ ψ conjunction | φ ∨ ψ disjunction | φ → ψ implication | φ ↔ ψ equivalence • (Ground) atoms and (ground) literals . Sibling ( kingJohn, richard ) → Sibling ( richard, kingJohn ) E.g. > (1 , 2) ∨ ≤ (1 , 2) > (1 , 2) ∧ ¬ > (1 , 2) (7/41)

  8. Syntax of full FOL Formulas: φ, ψ → P ( t 1 , . . . , t n ) atomic formulas | ⊥ false | ⊤ true | ¬ φ negation | φ ∧ ψ conjunction | φ ∨ ψ disjunction | φ → ψ implication | φ ↔ ψ equivalence | ∀ x . φ universal quantification | ∃ x . φ existential quantification ∀ x . In ( x, england ) → Smart ( x ) E.g. Everyone in England is smart: ∃ x . In ( x, france ) ∧ Smart ( x ) Someone in France is smart: (8/41)

  9. Summary of Syntax of FOL • Terms • variables • constants • functions • Literals • atomic formula • relation (predicate) • negation • Well formed formulas • truth-functional connectives • existential and universal quantifiers (9/41)

  10. Semantics of FOL: intuition • Just like in propositional logic, a (complex) FOL formula may be true (or false) with respect to a given interpretation. • An interpretation specifies referents for constant symbols → objects predicate symbols → relations function symbols → functional relations • An atomic sentence P ( t 1 , . . . , t n ) is true in a given interpretation iff the objects referred to by t 1 , . . . , t n are in the relation referred to by the predicate P . • An interpretation in which a formula is true is called a model for the formula. (10/41)

  11. Models for FOL: Example objects relations: sets of tuples of objects < < < < { { , . . . , , , functional relations: all tuples of objects + "value" object < < < < { { , . . . , , , (11/41)

  12. Semantic of FOL: Interpretations Interpretation : I = � ∆ , · I � where ∆ is an arbitrary non-empty set and I is a function that maps • n -ary function symbols to functions over ∆ : f I ∈ [∆ n → ∆] • individual constants to elements of ∆ : a I ∈ ∆ • n -ary predicate symbols to relation over ∆ : P I ⊆ ∆ n (12/41)

  13. Semantic of FOL: Satisfaction Interpretation of ground terms: ( f ( t 1 , . . . , t n )) I f I ( t 1 I , . . . , t n I ) ( ∈ ∆) = Satisfaction of ground atoms P ( t 1 , . . . , t n ) : I , . . . , t n I � ∈ P I I | = P ( t 1 , . . . , t n ) � t 1 iff (13/41)

  14. Examples { 1 , 2 , 3 , . . . } ∆ = { d 1 , . . . , d n , n > 1 } ∆ = 1 I = 1 a I = d 1 2 I = 2 b I = d 2 . . . Block I { d 1 } = Even I { 2 , 4 , 6 , . . . } = Red I = ∆ succ I = { (1 �→ 2) , (2 �→ 3) , . . . } (14/41)

  15. Examples { 1 , 2 , 3 , . . . } ∆ = { d 1 , . . . , d n , n > 1 } ∆ = 1 I = 1 a I = d 1 2 I = 2 b I = d 2 . . . Block I { d 1 } = Even I { 2 , 4 , 6 , . . . } = Red I = ∆ succ I = { (1 �→ 2) , (2 �→ 3) , . . . } I | = Red(b) I �| = Block(b) (14/41)

  16. Examples { 1 , 2 , 3 , . . . } ∆ = { d 1 , . . . , d n , n > 1 } ∆ = 1 I = 1 a I = d 1 2 I = 2 b I = d 2 . . . Block I { d 1 } = Even I { 2 , 4 , 6 , . . . } = Red I = ∆ succ I = { (1 �→ 2) , (2 �→ 3) , . . . } I | = Red(b) I �| = Even (3) I �| = Block(b) I | = Even ( succ (3)) (14/41)

  17. Semantics of FOL: Variable Assignments V set of all variables. Function α : V → ∆ . Notation: α [ x/d ] is identical to α except for the variable x . Interpretation of terms under I , α : x I ,α = α ( x ) a I ,α a I = ( f ( t 1 , . . . , t n )) I ,α f I ( t 1 I ,α , . . . , t n I ,α ) = Satisfiability of atomic formulas: I ,α , . . . , t n I ,α � ∈ P I I , α | � t 1 = P ( t 1 , . . . , t n ) iff (15/41)

  18. Variable Assignment example α = { ( x �→ d 1 ) , ( y �→ d 2 ) } I , α | = Red(x) I , α [ y /d 1 ] | = Block(y) (16/41)

  19. Semantics of FOL: Satisfiability of formulas A formula φ is satisfied by ( is true in ) an interpretation I under a variable assignment α , I , α | = φ : I ,α , . . . , t n I ,α � ∈ P I I , α | � t 1 = P ( t 1 , . . . , t n ) iff I , α | = ¬ φ I , α �| = φ iff I , α | = φ ∧ ψ I , α | = φ and I , α | = ψ iff I , α | = φ ∨ ψ I , α | = φ or I , α | = ψ iff I , α | = ∀ x . φ for all d ∈ ∆ : iff I , α [ x/d ] | = φ I , α | = ∃ x . φ there exists a d ∈ ∆ : iff I , α [ x/d ] | = φ (17/41)

  20. Examples ∆ = { d 1 , . . . , d n , } n > 1 a I = d 1 b I = d 1 Block I = { d 1 } Red I = ∆ = { ( x �→ d 1 ) , ( y �→ d 2 ) } α 1. I , α | = Block(c) ∨ ¬ Block(c) ? 2. I , α | = Block(x) → Block(x) ∨ Block(y) ? 3. I , α | = ∀ . x Block(x) → Red(x) ?   Block(a), Block(b)   4. Θ = ∀ x (Block(x) → Red(x))   I , α | = Θ ? (18/41)

  21. Example Find a model of the formula: ∃ y . [ P ( y ) ∧ ¬ Q ( y ) ] ∧ ∀ z . [ P ( z ) ∨ Q ( z ) ] (19/41)

  22. Example Find a model of the formula: ∃ y . [ P ( y ) ∧ ¬ Q ( y ) ] ∧ ∀ z . [ P ( z ) ∨ Q ( z ) ] ∆ = { a, b } P I = { a } Q I = { b } (19/41)

  23. Satisfiability and Validity An interpretation I is a model of φ under α , if I , α | = φ. Similarly as in propositional logic, a formula φ can be satisfiable , unsatisfiable , falsifiable or valid —the definition is in terms of the pair ( I , α ) . A formula φ is • satisfiable , if there is some ( I , α ) that satisfies φ , • unsatisfiable , if φ is not satisfiable, • falsifiable , if there is some ( I , α ) that does not satisfy φ , • valid (i.e., a tautology ), if every ( I , α ) is a model of φ . (20/41)

  24. Equivalence Analogously, two formulas are logically equivalent ( φ ≡ ψ ), if for all I , α we have: I , α | I , α | = φ = ψ iff Note: P ( x ) �≡ P ( y ) ! (21/41)

  25. Free and Bound Variables ∀ x . (R( y , z ) ∧ ∃ y . ( ¬ P(y,x) ∨ R(y, z ))) Variables in boxes are free ; other variables are bound . Free variables of a formula (inductively defined over the structure of expressions): { x } free ( x ) = free ( a ) = ∅ free ( t 1 ) ∪ . . . ∪ free ( t n ) free ( f ( t 1 , . . . , t n )) = free ( t 1 ) ∪ . . . ∪ free ( t n ) free ( P ( t 1 , . . . , t n )) = free ( ¬ φ ) = free ( φ ) free ( φ ∗ ψ ) free ( φ ) ∪ free ( ψ ) , ∗ = ∨ , ∧ , . . . = free ( ∀ x . φ ) = free ( φ ) − { x } free ( ∃ x . φ ) free ( φ ) − { x } = (22/41)

  26. Open and Closed Formulas • A formula is closed or a sentence if no free variables occurs in it. When formulating theories, we only use closed formulas. • Note: For closed formulas, the properties logical equivalence, satisfiability, entailment etc. do not depend on variable assignments. If the property holds for one variable assignment then it holds for all of them. • For closed formulas, the symbol α on the left hand side of the “ | = ” sign is omitted. I | = φ (23/41)

  27. Entailment Entailment is defined similarly as in propositional logic. The formula φ is logically implied by a formula ψ , if φ is true in all models of ψ (symbolically, ψ | = φ ): ψ | = φ I | = φ for all models I of ψ iff (24/41)

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend