From F-logic to CHORD. F-Logic Syntax Atoms –Focus on only two kinds of atoms s :: c (subclass relationship) s[m->>v] (inheritable multi-valued method)

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

First Order Logic Logic is a mathematical attempt to formalize the way we think. First-order predicate calculus was created in an attempt to mechanize.
Dr. David A Ferrucci -- Logic Programming and AI Lecture Notes Knowledge Structures Building the Perfect Object.
Cs7120 (Prasad)L22-MetaPgm1 Meta-Programming
Planning Module THREE: Planning, Production Systems,Expert Systems, Uncertainty Dr M M Awais.
Game-theoretic approach to the simulation checking problem Peter Bulychev Vladimir Zakharov Lomonosov Moscow State University.
Models and Propositional Logic In propositional logic, a model in general simply fixes the truth value – true or false – for every proposition symbol.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Knowledge Representation
Copyright © 2006 Addison-Wesley. All rights reserved.1-1 ICS 410: Programming Languages Chapter 3 : Describing Syntax and Semantics Axiomatic Semantics.
CHORD Semantics January, F-Atoms User Defined Constraint – A::B – A[B->C], A[B=>C] – A[B(V)->C], A[B(P:T0)=>T1] Built-in Constraint – 1 : Integer,
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Auto-Epistemic Logic Proposed by Moore (1985) Contemplates reflection on self knowledge (auto-epistemic) Allows for representing knowledge not just about.
CHORD Semantics January, F-Atoms User Defined Constraint – A::B – A[B->C], A[B=>C] – A[B(V)->C], A[B(P:T0)=>T1] Built-in Constraint – 1 : Integer,
CHORD Semantic Assumptions January, Unique Name Assumption User Defined Equality OID Equality UNA[a,b,c] = a  b  a  c  b  c a = b  b[m->v]
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.
ASP vs. Prolog like programming ASP is adequate for: –NP-complete problems –situation where the whole program is relevant for the problem at hands èIf.
Modal logic and databases. Terms Object terms Concept terms ↓ t: object denoted by concept t in some context Type designations: o (object) and c (concept)
ASP vs. Prolog like programming ASP is adequate for: –NP-complete problems –situation where the whole program is relevant for the problem at hands èIf.
DEDUCTIVE DATABASE.
Formal Models of Computation Part II The Logic Model
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Chapter 9 Integrity. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.9-2 Topics in this Chapter Predicates and Propositions Internal vs.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
Introduction to AgentSpeak and Jason for Programming Multi-agent Systems (1) Dr Fuhua (Oscar) Lin SCIS Athabasca University June 19, 2009.
Declarative vs Procedural Programming  Procedural programming requires that – the programmer tell the computer what to do. That is, how to get the output.
Cs7120 (Prasad)L16-Meaning1 Procedural and Declarative Meaning of Prolog
Ethan Jackson, Nikolaj Bjørner and Wolfram Schulte Research in Software Engineering (RiSE), Microsoft Research 1. A FORMULA for Abstractions and Automated.
ISBN Chapter 3 Describing Semantics -Attribute Grammars -Dynamic Semantics.
CSE S. Tanimoto Horn Clauses and Unification 1 Horn Clauses and Unification Propositional Logic Clauses Resolution Predicate Logic Horn Clauses.
LDK R Logics for Data and Knowledge Representation PL of Classes.
Dr. Muhammed Al-Mulhem ICS An Introduction to Logical Programming.
KR A Principled Framework for Modular Web Rule Bases and its Semantics Anastasia Analyti Institute of Computer Science, FORTH-ICS, Greece Grigoris.
C. Varela1 Logic Programming (PLP 11) Predicate Calculus, Horn Clauses, Clocksin-Mellish Procedure Carlos Varela Rennselaer Polytechnic Institute November.
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
CHR + D + A + O Operational Semantics in Fluent Calculus December, 2007.
1-1 An Introduction to Logical Programming Sept
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Of 35 lecture 17: semantic web rules. of 35 ece 627, winter ‘132 logic importance - high-level language for expressing knowledge - high expressive power.
1 First Order Logic CS 171/271 (Chapter 8) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
Artificial Intelligence Knowledge Representation.
Chapter Eight Predicate Logic Semantics. 1. Interpretations in Predicate Logic An argument is valid in predicate logic iff there is no valuation on which.
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.
Relational Model By Dr.S.Sridhar, Ph.D.(JNUD), RACI(Paris, NICE), RMR(USA), RZFM(Germany)
CSE 341, S. Tanimoto Logic Programming -
Horn Clauses and Unification
Semantics of Datalog With Negation
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
Horn Clause Computation with DNA Molecules
Prolog syntax + Unification
Carlos Varela Rensselaer Polytechnic Institute November 10, 2017
Horn Clauses and Unification
Horn Clauses and Unification
Logics for Data and Knowledge Representation
Brief Introduction to Computational Logic
Herbrand Logic Semantics
Computer Science cpsc322, Lecture 20
Chapter 1: Propositional and First-Order Logic
Model Minimization Computational Logic Lecture 16
Answer Set Programming
Constraint Handling Rules with Disjunction (CHRv)
Herbrand Semantics Computational Logic Lecture 15
Carlos Varela Rennselaer Polytechnic Institute August 30, 2007
PROLOG.
Presentation transcript:

From F-logic to CHORD

F-Logic Syntax Atoms –Focus on only two kinds of atoms s :: c (subclass relationship) s[m->>v] (inheritable multi-valued method) s,c,m,v are logic terms Literal (A or ¬A) Rules  (H  L1  …  Ln) Program –A set of rules

F-Logic Semantics

Herbrand Universe (HU) The set of all ground (variable-free) terms constructed from the function symbols and constants in program Ex: P = { a[m(X)->>v]  p(X) :: z, p(2) :: z, p(3) :: z, p(4) :: w } HU (P) = { a, v, z, w, 2, 3, 4, m(a), m(v), …, p(a), p(v)… }

Herbrand Instantiation (ground) The set of rules obtained by consistently substituting all terms in HU(P) for all variables in every rule of P Ex: P = { a[m(X)->>v]  p(X) :: z, p(2) :: z, p(3) :: z, p(4) :: w } ground(P) = { a[m(a)->>v]  p(a) :: z, a[m(v)->>v]  p(v) :: z, … }

Herbrand Base (HB) The set of atoms of the form s::c and s[m->>v]/c where s,m,c,v are terms in HU(P) Ex: Ex: P = { a[m(X)->>v]  p(X) :: z, p(2) :: z, p(3) :: z, p(4) :: w } HB(P) = { p(a)::z, p(v)::z, … a[m(a)->>v]/a, … }

Three Valued Interpretation (I) Is a pair where T and U are disjoint subsets of the Herbrand base HB(P). –T contains all atoms that are true in I –U contains all atoms that are undefined in I Truth values: f < u < t, ¬f = t, ¬t = f, ¬u = u –I(A) = t, if A  T –I(A) = u, if A  U –I(A) = f, otherwise –If Ai  HB(P), I(A1  …  An) = min{ I(Ai) }

Truth Valuation Funcitons (Vh, Vb) Vh(A,I) – truth value of A if it appears in the head of some rule –Vh(s::c, I) = I(s::c) –Vh(c[m->>v], I) = I(c[m->>v]/c) Vb(A,I) – truth value of A if it appears in the body of some rule –Vb(s::c, I) = I(s::c) –Vb(s[m->>v], I) = max{ I(s[m->>v]/c)| c  HU(P) } –Vb(¬L, I) = ¬V(L, I) –Vb(L1  …  Ln, I) = min{ Vb(Li, I) }

Three valued interpretation for Rules For rules –I(H  B) = t if Vh(H,I) ≥ Vb(B,I), –I(H  B) = f, otherwise. For facts –I(H) = t if Vh(H,I) = t), –I(H) = f, otherwise.

Program Satisfaction I satisfies P if for every R in ground(P), I(R) = t

Local Inheritance Contexts s[m->>v] is a strong local context for s in I if I(s[m->>v]/s) = t s[m->>v] is a weak local context for s in I if I(s[m->>v]/s) = u

Inheritance Context c[m->>v] is a strong inheritance context for s in I, if: –s is a proper subclass of c –m ->> v is locally defined in c –There’s no other weak of strong local inheritance context of m in s c[m->>v] is a weak inheritance context for s in I, if: –s is a proper subclass of c –m ->> v is locally defined in c –All local inheritance contexts of m in s are weak

Overriding o strongly overrides c[m->>v] for s in I, if –o is a proper subclass of c –  x o[m->>x] is a strong inheritance context for s o weakly overrides c[m->>v] for s in I, if –  x o[m->>x] is a weak inheritance context for s or o::c is undefined

Inheritance Candidates c[m->>v] is a strongly inheritance candidate for s in I, if: –c[m->>v] is a strong inheritance context for s –Theres no o such that o weakly or strongly overrides c[m->>v] for s c[m->>v] is a weak inheritance candidate for s in I, if: –c[m->>v] is a weak inheritance context for s or –c[m->>v] is a strong inheritance context for s and there is o such that o weakly overrides c[m->>v] for s

CHORD

Differences Between CHR and Prolog Prolog / F-Logic –Closed World Assumption True / False / Undefined –Logical Rules –Semantics deals with True/False/Undefined parts of HB(P) CHR / CHORD –Open World Aassumption True / False / Unknown –Non-Logical Rules –Constraint Store contains only part of the True facts (Remaining True/False/Unknown are inacessible)

My Proposal Add F-Atoms as CHR constraints –They would be able to be used both as BIC and as UDC BIC: allows part of the class structure to be defined by the built-in solver UDC: allows the user to defined the “user defined” part of the class structure At each step, the Optimistic Object Model of the constraint store would be computer