Foundations of Artificial Intelligence - PowerPoint PPT Presentation

1 / 28
About This Presentation
Title:

Foundations of Artificial Intelligence

Description:

Limitations of propositional calculus. Language and its syntax ... This part is based on ... Wumpus. Time could be incorporated as well. 19. Some sentences ... – PowerPoint PPT presentation

Number of Views:63
Avg rating:3.0/5.0
Slides: 29
Provided by: mach82
Category:

less

Transcript and Presenter's Notes

Title: Foundations of Artificial Intelligence


1
Foundations of Artificial Intelligence
  • Chapter 7 The predicate calculus
  • Luc De Raedt

2
Predicate calculus
  • Limitations of propositional calculus
  • Language and its syntax
  • Semantics (informally)
  • Quantifiers
  • Representing Knowledge
  • Resolution
  • Prolog
  • This part is based on
  • Nils Nilsson, AI a new synthesis, Morgan
    Kaufman, 1998, chapters 15, 16 and 17

3
The language and its syntax (restricted version)
  • Components
  • An infinite set of object constants strings
    starting with a capital or a numeral
  • E.g.
  • An infinite set of function constants of all
    arities strings starting with lowercase and
    superscripted with arity
  • E.g.
  • An infinite set of relation constants of all
    arities strings beginning with uppercase and
    superscripted with arity
  • E.g.
  • Traditional connectives

4
Terms (restricted)
  • An object constant is a term
  • A function constant f of arity n followed by n
    terms ti in parentheses is a term
  • Examples

5
Well-formed formulae (restricted)
  • Atoms A relation constant F of arity n followed
    by n terms ti is an atom
  • Examples
  • Propositional wffs any expression formed with
    the propositional calculus and atoms as
    propositions.
  • Example

6
Semantics (restricted version)
  • Worlds
  • The world can have an infinite number of objects,
    called individuals, the domain
  • The world can have an infinite number of
    functions f that map n-tuples of individuals into
    individuals
  • The world can have an infinite number of
    relations over individuals,

7
Interpretations
  • An interpretation maps
  • object constants to individuals
  • n-ary function constants onto n-ary functions
  • n-ary relation constants onto n-ary relations
  • Given an interpretation, an atom has
    the value True iff the relation denoted by R
    holds among for those individuals denoted by the
    ti

8
(No Transcript)
9
Models and related notions
  • An interpretation satisfies a wff if the wff has
    the value True under the interpretation
  • An interpretation that satisfies a wff is a model
    of that wff
  • Any wff that has the value True under all
    interpretations is a tautology (it is valid)
  • Any wff that does not have a model is
    unsatisfiable
  • If a wff ? has value True under all those
    interpretations for which each of the of wffs in
    a set ? has value true then ? logically entails
    ?, notation
  • Two wffs are equivalent iff their truth values
    are identical under all interpretations
  • Essentially, the notions from propositional logic
    carry over

10
Knowledge
  • Does the following knowledge base (set of
    formulae) has a model ?

11
Quantification
  • How to express
  • every object is red ?
  • there is an object which is red ?
  • For finite domains for infinite domains ?
  • Use variables and quantifiers !

12
Predicate calculus
  • Now introduce
  • An infinite set of variable symbols start with
    lowercase
  • Each variable is also a term !
  • The universal quantifier? and the existential
    one ?
  • If ? is a wff and v is a variable then the
    following are also wffs
  • Example
  • Scoping ? is within the scope of the
    quantifier

13
Variables, scoping, and quantifiers
  • Scoping
  • We will assume that all wffs are closed, i.e.
    that all variables are quantified, i.e. occur
    with the scope of a quantifier.
  • closed
  • Open
  • Equivalent
  • Not equivalent !

14
Semantics
  • has the value true (under a given
    interpretation) iff ?(v) has the value true for
    all assignments of the variable symbol v to
    individuals
  • has the value true (under a given
    interpretation) iff ?(v) has the value true for
    an assignments of the variable symbol to
    individuals

15
An example
16
Rules of inference
  • Some equivalences (De Morgan)
  • Universal instantiation
  • From infer where a is
    substituted for x throughout ?

17
  • Existential Generalization
  • From infer where a has
    been replaced by x throughout ?
  • Universal instantiation and Existential
    generalization are sound inference rules

18
Wumpus
  • Time could be incorporated as well

19
Some sentences
  • Not all students take both history and biology
  • Only one student failed history (requires )
  • No person likes a smart vegetarian
  • No person likes a professor unless the professor
    is smart

20
Clausal Form
  • Clauses are universally quantified disjunctions
    of literals all variables in a clause are
    universally quantified

21
Towards Resolution
  • Examples
  • We need to be able to work with variables !
  • Unification of two expressions/literals

22
Terms and instances
  • Consider following atoms
  • Ground expressions do not contain any variables

23
Substitution
24
Composing substitutions
  • Composing substitutions s1 and s2 gives s1 s2
    which is that substitution obtained by first
    applying s2 to the terms in s1and adding
    remaining term/vars pairs to s1
  • Apply to

25
Properties of substitutions
26
Unification
  • Unifying a set of expressions wi
  • Find substitution s such that
  • Example
  • The most general unifier g of wi has the
    property that if is any unifier of wi then
    there exists a substitution s such that
    wiswigs
  • The common instance produced is unique up to
    alphabetic variants (variable renaming)

27
Disagreement set
  • The disagreement set of a set of expressions wi
    is the set of subterms ti of wi at the
    first position in wi for which the wi
    disagree

28
Unification algorithm
Write a Comment
User Comments (0)
About PowerShow.com