Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.

Slides:



Advertisements
Similar presentations
Simply Logical – Chapter 2© Peter Flach, 2000 Clausal logic Propositional clausal logic Propositional clausal logic expressions that can be true or false.
Advertisements

1 First order theories (Chapter 1, Sections 1.4 – 1.5)
TRUTH TABLES The general truth tables for each of the connectives tell you the value of any possible statement for each of the connectives. Negation.
The Logic of Quantified Statements
10 October 2006 Foundations of Logic and Constraint Programming 1 Unification ­An overview Need for Unification Ranked alfabeths and terms. Substitutions.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Web Science & Technologies University of Koblenz ▪ Landau, Germany Advanced Data Modeling Minimal Models Steffen Staab TexPoint fonts used in EMF. Read.
CSE Winter 2008 Introduction to Program Verification January 24 tautology checking, take 2.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
TCP1211-Logic Programming Formal Syntax and Semantics of Logic Programs Faculty of Information Technology Multimedia University.
Sentential Logic(SL) 1.Syntax: The language of SL / Symbolize 2.Semantic: a sentence / compare two sentences / compare a set of sentences 3.DDerivation.
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
Predicate Calculus.
03 -1 Lecture 03 First-Order Predicate Logic Topics –Syntax –Formal Semantics –Denotational Semantics –Formal Inference –Resolution.
1 Propositional calculus versions. 2 3-value (Lukasziewicz) logic Truth values T,F,N(unknown)
Intro to Discrete Structures
1st-order Predicate Logic (FOL)
Introduction to AgentSpeak and Jason for Programming Multi-agent Systems (1) Dr Fuhua (Oscar) Lin SCIS Athabasca University June 19, 2009.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Stable Models See Bry et al 2007.
Steffen Staab Advanced Data Modeling 1 of 32 WeST Häufungspunkte Bifurkation: x n+1 = r x n (1-x n ) Startwert x 0 = 0,25.
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
Logic Logic can be traced back to Aristotle, and more recently to Frege who introduced predicate logic as a language for representing and reasoning about.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Key Concepts Representation Inference Semantics Discourse Pragmatics Computation.
Propositional calculus
Bertram Ludäscher Department of Computer Science & Engineering University of California, San Diego CSE-291: Ontologies in Data Integration.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Procedural Semantics Soundness of SLD-Resolution.
CS6133 Software Specification and Verification
Artificial Intelligence Chapter 15 The Predicate Calculus Artificial Intelligence Chapter 15 The Predicate Calculus Biointelligence Lab School of Computer.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Relational Data Model.
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models of Definite Programs.
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
An Introduction to Classical Logic (propositional and Predicate Logic)
Syntax of First-Order Predicate Calculus (FOPC): 1. Alphabet Countable set of predicate symbols, each with specified arity  0. Countable set of function.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Many valued logics and fixpoint semantics See Melvin Fitting 2002.
Chapter Eight Predicate Logic Semantics. 1. Interpretations in Predicate Logic An argument is valid in predicate logic iff there is no valuation on which.
6/11/2016 Linear Resolution and Introduction to First Order Logic Michael Leuschel Softwaretechnik und Programmiersprachen Lecture 5.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Information Systems & Semantic Web University of Koblenz ▪ Landau, Germany Advanced Data Modeling Steffen Staab with Simon Schenk TexPoint fonts used in.
 Conjunctive Normal Form: A logic form must satisfy one of the following conditions 1) It must be a single variable (A) 2) It must be the negation of.
Propositional Logic (a.k.a. Sentential Logic)
Introduction to Logic for Artificial Intelligence Lecture 2
tautology checking continued
Formal Modeling Concepts
Knowledge Representation and Reasoning
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Back to “Serious” Topics…
PROPOSITIONAL LOGIC - SYNTAX-
Logics for Data and Knowledge Representation
Bottom Up: Soundness and Completeness
Representations & Reasoning Systems (RRS) (2.2)
CS589 Principles of DB Systems Fall 2008 Lecture 4e: Logic (Model-theoretic view of a DB) Lois Delcambre
Presentation transcript:

Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics

Steffen Staab Advanced Data Modeling 2 of 17 WeST Overview First-order logic. Syntax and semantics. Herbrand interpretations; Clauses and goals; Datalog.

Steffen Staab Advanced Data Modeling 3 of 17 WeST First-order signature First-order signature § consists of  con — the set of constants of § ;  fun — the set of function symbols of § ;  rel — the set of relation symbols of §.

Steffen Staab Advanced Data Modeling 4 of 17 WeST Terms Term of § with variables in X: 1. Constant c 2 con; 2. Variable v 2 X; 3. If f 2 fun is a function symbol of arity n and t 1, …, t n are terms, then f(t 1, …, t n ) is a term. A term is ground if it has no variables var(t) — the set of variables of t

Steffen Staab Advanced Data Modeling 5 of 17 WeST Abstract and concrete notation Abstract notation:  a, b, c, d, e for constants;  x, y, z, u, v, w for variables;  f, g, h for function symbols;  p, q for relation symbols, Example: f(x, g(y)). Concrete notation: Variable names start with upper-case letters. Example: likes(john, Anybody).

Steffen Staab Advanced Data Modeling 6 of 17 WeST Formulas Atomic formulas, or atoms p(t 1, …, t n ). (A 1 Æ … Æ A n ) and (A 1 Ç … Ç A n ) (A ! B) and (A $ B) : A 8 v A and 9 vA

Steffen Staab Advanced Data Modeling 7 of 17 WeST Substitutions Substitution µ : is any mapping from the set V of variables to the set of terms such that there is only a finite number of variables v 2 V with µ (v)  v. Domain dom( µ ), range ran( µ ) and variable range vran( µ ): dom( µ ) = {v | v  µ (v)}, ran( µ ) = { t | 9 v 2 dom( µ )( µ (v) = t)}, vran( µ ) = var(ran( µ )). Notation: { x 1  t 1, …, x n  t n } empty substitution {}

Steffen Staab Advanced Data Modeling 8 of 17 WeST Application of substitution Application of a substitution µ to a term t:  x µ = µ (x)  c µ = c  f(t 1, …, t n ) µ = f(t 1 µ, …, t n µ )

Steffen Staab Advanced Data Modeling 9 of 17 WeST Herbrand interpretation A Herbrand interpretation of a signature § is a set of ground atoms of this signature.

Steffen Staab Advanced Data Modeling 10 of 17 WeST Truth in Herbrand Interpretations 1. If A is atomic, then I ² A if A 2 I 2. I ² B 1 Æ … Æ B n if I ² B i for all i 3. I ² B 1 Ç … Ç B n if I ² B i for some i 4. I ² B 1 ! B 2 if either I ² B 2 or I ² B 1 5. I ² : B if I ² B 6. I ² 8 xB if I ² B{x  t} for all ground terms t of the signature § 7. I ² 9 xB if I ² B{x  t} for some ground term t of the signature §

Steffen Staab Advanced Data Modeling 11 of 17 WeST Tautology and Inconsistent A formula F is a tautology (is valid), if I ² F for every (Herbrand) interpretation I A formula F is inconsistent, if I ² F for every (Herbrand) interpretation I.

Steffen Staab Advanced Data Modeling 12 of 17 WeST Types of Formulas Tautologies / Valid Neither valid nor inconsistent Inconsistent All formulas Invalid formulas

Steffen Staab Advanced Data Modeling 13 of 17 WeST Logical Implication A (set of) formula(s) F logically implies G (we write F ² G), iff every (Herbrand) interpretation I that fulfills F (I ² F) also fulfills G (I ² G). Æ F ² G is true iff for every (Herbrand) interpretation I: I ² ( Æ F ! G)

Steffen Staab Advanced Data Modeling 14 of 17 WeST Literals Literal is either an atom or the negation : A of an atom A. Positive literal: atom Negative literal: negation of an atom Complementary literals: A and : A Notation: L

Steffen Staab Advanced Data Modeling 15 of 17 WeST Clause Clause: (or normal clause) formula L 1 Æ … Æ L n ! A, where n ¸ 0, each L i is a literal and A is an atom. Notation: A :- L 1 Æ … Æ L n or A :- L 1, …, L Head: the atom A. Body: The conjunction L 1 Æ … Æ L n Definite clause: all L i are positive Fact: clause with empty body

Steffen Staab Advanced Data Modeling 16 of 17 WeST Syntactic Classification ClauseClass lives(Person, sweden) :- sells(Person, wine, Shop), not open(Shop,saturday) normal spy(Person) :- russian(Person)definite spy(bond)fact

Steffen Staab Advanced Data Modeling 17 of 17 WeST Goal  Goal (also normal goal) is any conjunction of literals L 1 Æ … Æ L n  Definite goal: all L i are positive  Empty goal □: when n = 0

Steffen Staab Advanced Data Modeling 18 of 17 WeST A new language Excercise:  Syntax & Semantics for Monadic Fuzzy Logics  Monadic: only unary predicates  Fuzzy:  Truth values in [0,1]  operators for truth values T-norm: > min (a,b)=min{a,b} T-conorm: ? min (a,b)=max{a,b} Also: > prod (a,b)=a ¢ b, ? sum (a,b)=a+b-a ¢ b,… Duality for N(x)=1-x