First Order Logic - Syntax and Semantics

First Order Logic - Syntax and Semantics

Outline First Order Logic - Syntax and Semantics K. Subramani1 1Lane Department of Computer Science and Electrical Engineering West Virginia University 30 January, 4 February, 6 February 2013 Subramani First Order Logic Outline Outline 1 Motivation Subramani First Order Logic Outline Outline 1 Motivation 2 Syntax Translation Subramani First Order Logic Outline Outline 1 Motivation 2 Syntax Translation 3 Semantics Subramani First Order Logic Motivation Syntax Semantics First Order Logic Subramani First Order Logic Motivation Syntax Semantics First Order Logic Limitations of Propositional Logic Subramani First Order Logic Motivation Syntax Semantics First Order Logic Limitations of Propositional Logic Propositional Logic has limited expressiveness. Subramani First Order Logic Motivation Syntax Semantics First Order Logic Limitations of Propositional Logic Propositional Logic has limited expressiveness. For instance, how would you capture the assertion, “Property P is true of every positive number”? Subramani First Order Logic Motivation Syntax Semantics First Order Logic Limitations of Propositional Logic Propositional Logic has limited expressiveness. For instance, how would you capture the assertion, “Property P is true of every positive number”? P1 ∧ P2 ... P∞ is neither compact nor useful. Subramani First Order Logic Motivation Syntax Semantics First Order Logic Limitations of Propositional Logic Propositional Logic has limited expressiveness. For instance, how would you capture the assertion, “Property P is true of every positive number”? P1 ∧ P2 ... P∞ is neither compact nor useful. First-order Logic (FOL) extends Propositional Logic (PL) with predicates, functions and quantifiers. Subramani First Order Logic Motivation Syntax Translation Semantics Syntax of FOL Subramani First Order Logic Motivation Syntax Translation Semantics Syntax of FOL Basics Subramani First Order Logic Motivation Syntax Translation Semantics Syntax of FOL Basics (i) Predicates are used to describe properties of objects. e.g., P(x) could stand for the property that x is divisible by 3. Subramani First Order Logic Motivation Syntax Translation Semantics Syntax of FOL Basics (i) Predicates are used to describe properties of objects. e.g., P(x) could stand for the property that x is divisible by 3. (ii) The universal quantifier (∀x)P(x) indicates that property P holds for all x in some domain. Subramani First Order Logic Motivation Syntax Translation Semantics Syntax of FOL Basics (i) Predicates are used to describe properties of objects. e.g., P(x) could stand for the property that x is divisible by 3. (ii) The universal quantifier (∀x)P(x) indicates that property P holds for all x in some domain. (iii) The existential quantifier (∃x)P(x) indicates that property P holds for some x in some domain. Subramani First Order Logic Motivation Syntax Translation Semantics Syntax of FOL Basics (i) Predicates are used to describe properties of objects. e.g., P(x) could stand for the property that x is divisible by 3. (ii) The universal quantifier (∀x)P(x) indicates that property P holds for all x in some domain. (iii) The existential quantifier (∃x)P(x) indicates that property P holds for some x in some domain. (iv) A function is a mapping from the domain of interest to a range. Subramani First Order Logic Motivation Syntax Translation Semantics Syntax of FOL Basics (i) Predicates are used to describe properties of objects. e.g., P(x) could stand for the property that x is divisible by 3. (ii) The universal quantifier (∀x)P(x) indicates that property P holds for all x in some domain. (iii) The existential quantifier (∃x)P(x) indicates that property P holds for some x in some domain. (iv) A function is a mapping from the domain of interest to a range. (v) Variables are used as placeholders (0-ary predicates). Subramani First Order Logic Motivation Syntax Translation Semantics Syntax of FOL Basics (i) Predicates are used to describe properties of objects. e.g., P(x) could stand for the property that x is divisible by 3. (ii) The universal quantifier (∀x)P(x) indicates that property P holds for all x in some domain. (iii) The existential quantifier (∃x)P(x) indicates that property P holds for some x in some domain. (iv) A function is a mapping from the domain of interest to a range. (v) Variables are used as placeholders (0-ary predicates). (vi) Constants are used to represent values that do not change. Subramani First Order Logic Motivation Syntax Translation Semantics Syntax of FOL Basics (i) Predicates are used to describe properties of objects. e.g., P(x) could stand for the property that x is divisible by 3. (ii) The universal quantifier (∀x)P(x) indicates that property P holds for all x in some domain. (iii) The existential quantifier (∃x)P(x) indicates that property P holds for some x in some domain. (iv) A function is a mapping from the domain of interest to a range. (v) Variables are used as placeholders (0-ary predicates). (vi) Constants are used to represent values that do not change. (vii) Terms, atom, literal, formula. Subramani First Order Logic Motivation Syntax Translation Semantics Scope Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Consider the expression: (∀x)[Q(x, y) → (∃y)R(x, y)] Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Consider the expression: (∀x)[Q(x, y) → (∃y)R(x, y)] The x occurrences are bound to the (∀x) quantifier. Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Consider the expression: (∀x)[Q(x, y) → (∃y)R(x, y)] The x occurrences are bound to the (∀x) quantifier. The first y is said to be a free variable, since it is not bound to any quantifier. Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Consider the expression: (∀x)[Q(x, y) → (∃y)R(x, y)] The x occurrences are bound to the (∀x) quantifier. The first y is said to be a free variable, since it is not bound to any quantifier. The scope of a quantifier is the portion of the predicate formula to which it applies. Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Consider the expression: (∀x)[Q(x, y) → (∃y)R(x, y)] The x occurrences are bound to the (∀x) quantifier. The first y is said to be a free variable, since it is not bound to any quantifier. The scope of a quantifier is the portion of the predicate formula to which it applies. A formula F is closed if it has no free variables. Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Consider the expression: (∀x)[Q(x, y) → (∃y)R(x, y)] The x occurrences are bound to the (∀x) quantifier. The first y is said to be a free variable, since it is not bound to any quantifier. The scope of a quantifier is the portion of the predicate formula to which it applies. A formula F is closed if it has no free variables. Closures Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Consider the expression: (∀x)[Q(x, y) → (∃y)R(x, y)] The x occurrences are bound to the (∀x) quantifier. The first y is said to be a free variable, since it is not bound to any quantifier. The scope of a quantifier is the portion of the predicate formula to which it applies. A formula F is closed if it has no free variables. Closures (i) Existential closure. Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Consider the expression: (∀x)[Q(x, y) → (∃y)R(x, y)] The x occurrences are bound to the (∀x) quantifier. The first y is said to be a free variable, since it is not bound to any quantifier. The scope of a quantifier is the portion of the predicate formula to which it applies. A formula F is closed if it has no free variables. Closures (i) Existential closure. (ii) Universal closure. Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Consider the expression: (∀x)[Q(x, y) → (∃y)R(x, y)] The x occurrences are bound to the (∀x) quantifier. The first y is said to be a free variable, since it is not bound to any quantifier. The scope of a quantifier is the portion of the predicate formula to which it applies. A formula F is closed if it has no free variables. Closures (i) Existential closure. (ii) Universal closure. Subformulas and Subterms Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Consider the expression: (∀x)[Q(x, y) → (∃y)R(x, y)] The x occurrences are bound to the (∀x) quantifier. The first y is said to be a free variable, since it is not bound to any quantifier. The scope of a quantifier is the portion of the predicate formula to which it applies. A formula F is closed if it has no free variables. Closures (i) Existential closure. (ii) Universal closure. Subformulas and Subterms 1 Subformulas and strict subformulas. Subramani First Order Logic Motivation Syntax Translation Semantics Scope Bound and Free variables Consider the expression: (∀x)[Q(x, y) → (∃y)R(x, y)] The x occurrences are bound to the (∀x) quantifier. The first y is said to be a free variable, since it is not bound to any quantifier. The scope of a quantifier is the portion of the predicate formula to which it applies. A formula F is closed if it has no free variables. Closures (i) Existential closure.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    98 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us