Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet - PowerPoint PPT Presentation

About This Presentation
Title:

Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet

Description:

... case letter and predicate/function symbols with a lower-case letter.) Logical symbols: ... If X is a variable and a is a formula then Xa and Xa are formulas. ... – PowerPoint PPT presentation

Number of Views:534
Avg rating:3.0/5.0
Slides: 27
Provided by: david372
Category:

less

Transcript and Presenter's Notes

Title: Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet


1
Syntax of First-Order Predicate Calculus (FOPC)
1. Alphabet
  • Countable set of predicate symbols, each with
    specified arity ? 0.
  • Countable set of function symbols, each with
    specified arity ? 0. Function symbols with arity
    0 are also called constants or individual
    symbols.
  • Countable set of variables.

2
1. Alphabet (Continued)
  • (Consistent with Prolog, we will begin variables
    with an upper-case letter and predicate/function
    symbols with a lower-case letter.)
  • Logical symbols ??,?,?,?,?,?,?

3
2. Terms
  • A variable is a term.
  • If f is a function symbol of arity n and t1,,tn
    are terms then f(t1,,tn) is a term.

4
Examples of Terms
  • 0
  • s(s(s(0)))
  • nil
  • cons(1,nil)
  • cons(1,cons(2,nil))
  • cons(1,cons(2,cons(3,nil)))

5
3. Formulas
  • If p is a predicate symbol of arity n and t1,,tn
    are terms, then p(t1,,tn) is an atomic formula.
  • If a and b are formulas then so are ?a, a?b, a?b,
    a?b, a?b, a?b.
  • If X is a variable and a is a formula then ?Xa
    and ?Xa are formulas. We say that X is
    quantified in the formulas ?Xa and ?Xa.

6
Some Notes
  • Predicates of arity 0 are also called
    propositions, the only atomic formulas allowed in
    propositional logic.
  • An expression is a term or formula. A formula
    with no free (unquantified) variables is a
    sentence.

7
(No Transcript)
8
(No Transcript)
9
(No Transcript)
10
(No Transcript)
11
(No Transcript)
12
(No Transcript)
13
(No Transcript)
14
(No Transcript)
15
(No Transcript)
16
(No Transcript)
17
Example Models ?X(?Y((mother(X) ? child_of(Y,X))
? loves(X,Y))) mother(mary) child_of(tom,
mary)
18
(No Transcript)
19
(No Transcript)
20
(No Transcript)
21
(No Transcript)
22
(No Transcript)
23
(No Transcript)
24
(No Transcript)
25
(No Transcript)
26
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com