1 TMS and ATMS Philippe Dague and Yuhong YAN NRC-IIT

Slides:



Advertisements
Similar presentations
Introduction to Truth Maintenance Systems A Truth Maintenance System (TMS) is a PS module responsible for: 1.Enforcing logical relations among beliefs.
Advertisements

Chaff: Engineering an Efficient SAT Solver Matthew W.Moskewicz, Concor F. Madigan, Ying Zhao, Lintao Zhang, Sharad Malik Princeton University Modified.
Consistency-Based Diagnosis
Chapter 16: Multiagent Systems Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005.
MBD and CSP Meir Kalech Partially based on slides of Jia You and Brian Williams.
Justification-based TMSs (JTMS) JTMS utilizes 3 types of nodes, where each node is associated with an assertion: 1.Premises. Their justifications (provided.
Truth Maintenance Systems. Outline What is a TMS? Basic TMS model Justification-based TMS.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Automated Reasoning Systems For first order Predicate Logic.
Assumption-Based Truth Maintenance Systems Meir Kalech.
Default Reasoning the problem: in FOL, universally-quantified rules cannot have exceptions –  x bird(x)  can_fly(x) –bird(tweety) –bird(opus)  can_fly(opus)
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Logic Use mathematical deduction to derive new knowledge.
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
Abstract Answer Set Solver. Todolist Print the rules of Fig 1.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
Chapter 12: Expert Systems Design Examples
4 th Nov, Oct 23 rd Happy Deepavali!. 10/23 SAT & CSP.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Measurements Meir Kalech Partially Based on slides of Brian Williams and Peter struss.
Models -1 Scientists often describe what they do as constructing models. Understanding scientific reasoning requires understanding something about models.
Lecture 04 Rule Representation
Existential Graphs and Davis-Putnam April 3, 2002 Bram van Heuveln Department of Cognitive Science.
Methods of Proof Chapter 7, second half.
Efficient Reachability Checking using Sequential SAT G. Parthasarathy, M. K. Iyer, K.-T.Cheng, Li. C. Wang Department of ECE University of California –
Knoweldge Representation & Reasoning
Scientific Thinking - 1 A. It is not what the man of science believes that distinguishes him, but how and why he believes it. B. A hypothesis is scientific.
Artificial Intelligence Chapter 17 Knowledge-Based Systems Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Introduction to Model- Based Diagnosis Meir Kalech Partially based on the slides of Peter Struss.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
On Bridging Simulation and Formal Verification Eugene Goldberg Cadence Research Labs (USA) VMCAI-2008, San Francisco, USA.
Boolean Satisfiability and SAT Solvers
Logic and Philosophy Alan Hausman PART ONE Sentential Logic Sentential Logic.
Understanding PML Paulo Pinheiro da Silva. PML PML is a provenance language (a language used to encode provenance knowledge) that has been proudly derived.
Putting the JTMS to Work. Outline Interface between a JTMS and a rule engine Chronological Search versus Dependency Directed Search: A Playoff Using a.
1 Inference Rules and Proofs (Z); Program Specification and Verification Inference Rules and Proofs (Z); Program Specification and Verification.
INES-09, Barbados, April 16-18, A Computational Model for Inference Chains in Expert Systems József SZIRAY Department of Informatics Széchenyi University,
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Reasoning in Uncertain Situations
Chapter Three Truth Tables 1. Computing Truth-Values We can use truth tables to determine the truth-value of any compound sentence containing one of.
October 17, 2012Introduction to Artificial Intelligence Lecture 11: Knowledge Representation and Reasoning I 1Semantics In propositional logic, we associate.
Search CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
1 Use graphs and not pure logic Variables represented by nodes and dependencies by edges. Common in our language: “threads of thoughts”, “lines of reasoning”,
1 Consistent-based Diagnosis Yuhong YAN NRC-IIT. 2 Main concepts in this paper  (Minimal) Diagnosis  Conflict Set  Proposition 3.3  Corollary 4.5.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Forward and Backward Chaining
Expert System Seyed Hashem Davarpanah University of Science and Culture.
Assumption-based Truth Maintenance Systems: Motivation n Problem solvers need to explore multiple contexts at the same time, instead of a single one (the.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2011 Adina Magda Florea Master of Science.
Explaining and Controlling Reasoning Dr Nicholas Gibbins 32/3077.
Logic-based TMS Main idea: Represent negation explicitly to permit the IE to express any logical constraint among nodes. Recall: JTMS and ATMS do not allow.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
March 23 rd. Four Additional Rules of Inference  Constructive Dilemma (CD): (p  q) (r  s) p v r q v s.
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Service-Oriented Computing: Semantics, Processes, Agents
CS137: Electronic Design Automation
KNOWLEDGE REPRESENTATION
Service-Oriented Computing: Semantics, Processes, Agents
Computer Security: Art and Science, 2nd Edition
Constraints and Search
Artificial Intelligence Chapter 17. Knowledge-Based Systems
Chapter 7. Propositional and Predicate Logic
Methods of Proof Chapter 7, second half.
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Presentation transcript:

1 TMS and ATMS Philippe Dague and Yuhong YAN NRC-IIT

2 TMS and ATMS  TMS: Truth Maintain System  ATMS: Assumption Truth Maintain System  Why needs TMS: Improve efficiency of reasoning system  Conventional TMS: Justification-based Logic-based

3 ATMS and diagnosis engine From Johan de Kleer, “An Assumption-based TMS”, Artificial Intelligence 28(1986) p141 Problem Solver TMS Justifications Beliefs P(a) x P(x)->Q(x) Q(a)  P(s),  x,P(x)->Q(x) => Q(a)

4 Why TMS  Holding trace of the information beginning from which Dependencies to get the conclusions  Management of the reasoning contexts. hypothetical reasoning (assumptions) search between (alternative) contexts  Caching inferences to avoid to repeat more times some steps than reasoning remember which roads they have carried to successes or failures in the reasoning process. manager search space like gragh and not like tree

5 Chronological Backtracking X=0 Y=0Y=1 Z=0Z=1Z=0Z=1 X=1 Y=0Y=1 Z=0Z=1Z=0Z=1 (1)X{0,1}, (2) a = e1(X) (3)Y{0,1}, (4) b = e2(Y) (5)Z{0,1}, (6) c = e3(Z) (7) b  c, (8) a  b * * Rediscovering contradictions (!) Rediscovering inferences (?) Incorrect ordering ! ! ??

6 Limitation of TMS  Single state TMS keeps consistent under single context

7 Ideas of ATMS Problem Solver TMS Justifications Beliefs P(a) x P(x)->Q(x) Q(a)  P(s),  x,P(x)->Q(x) => Q(a) It executes the reasoning steps and it passes to the TMS its assumptions and the justification of its conclusions (incrementally) It can interrogate the TMS Holds trace of the dependencies between assumptions and conclusions and of the inconsistence

8 Terminology for TMS/ATMS  Nodes:objects on which the problem solver works, e.g. data, rules, assumption  Justification: describes how a node is derivable from other nodes Consequent: the node being justified Antecedents: a list of nodes which imply the consequent E.g. x1,x2,…=>n, logically it is implication: X1,x2,…->n

9 Terminology for ATMS  Environment: a set of assumptions  A node n is said to hold in environment E if n can be derived from E and a set of justification J: E,J |- n  An environment is inconsistent if false () is derivable: E,J |-   No-good: inconsistent environment (the assumption set which causes the contradiction) (stored separately)  Context: the environment and all nodes derivable from the environment

10 Label  Label: a set L of environments E associated with a node n  Four properties Consistency: each environment E is consistent Soundness: E, J |- n, or J|- E->n Completeness: E’ (J|- E’->n)->(E, EE’) Minimality: E1, E2, ¬(E1E2)

11 Data Structure in ATMS  Structure of a node:  datum :  A premise holds universally:  An assumption is a node whose label contains only itself:

12 Data Structure in ATMS  Assumptions can be justified  An assumed node: holds under an assumption and a justification of this assumption  A derived node

13 Logic meaning A node: Means: (A1A2…)(B1B2…)… ->n And: (z1z2 …)  (y1 y2 …)  …->n A node:   :

14 Basic Operation in ATMS To keep the label of each node is consistent, sound, complete and minimal  Union of all possible combinations of picking one environment from each antecedent node label  Remove subsumed environments  Remove inconsistent environments

15 Example  x+y=1 :  x=1 :  y=0 : Nogood {A,B,E} Add justification:  x+y=1,  x=1 :=>  y=0 Union: {{A,B,C},{A,B,D,E},{A,B,C,D},{B,C,D,E}} Result:  y=0 :

16 Process: When one new justification arrives  Union, remove inconsistent and subsumed environment  If the new label is as the old one, stop  If the node is   :, each environment of the label is added to a nogood database, and all inconsistent environments (itself and the supersets) are removed from every node label  If the node is not  , update any other influenced node (nodes whose justifications contain label changed node)

17 Example of using ATMS on Diagnosis M1 M2 M3 A2 A1 F G Before output observation X Y Z

18 Example of using ATMS on Diagnosis M1 M2 M3 A2 A1 F G After F=10 observation X Y Z

19 Example of using ATMS on Diagnosis M1 M2 M3 A2 A1 F G After G=12 observation X Y Z <Z=8,{{A1,M1,A2}}

20 Summary  ATMS remove the single-state limitation  ATMS is an important technique for MBD  Completeness and efficiency are issues for implementation

21 Assignment 2 Full adder in Reiter’s paper (figure 1), use the ATMS principle to get the conflict sets (writing down all the justifications and labels for each step) and the minimal hitting set principle to get the minimal diagnoses under the observations: Step1: Obs1: {in1(X1)=1; in2(X1)=0;in(A2)=1} Step2: Obs2: Obs1{out(x2)=1} Step3: Obs3: Obs2 {out(O1)=0}