Discordance Detection in Regional Ordinance: Ontology-based Validation
|
|
- Juliana O’Neal’
- 6 years ago
- Views:
Transcription
1 Discordance Detection in Regional Ordinance: Ontology-based Validation Shingo HAGIWARA a and Satoshi TOJO a a School of Information and Science, Japan Advanced Institute of Science and Technology, 1 1 Asahidai, Nomi, Ishikawa ( ), Japan Abstract. In this paper, we propose a procedure of discordance detection in an actual legal code, that is the regional ordinance of Toyama Prefecture, Japan. In this study, we expand the notion of inconsistency to the discordance including antonyms based on an ontology, and precluded the conventional negative connective. We have implemented the system that converts XML logical formats to Prolog, and has inspected the whole code. Keywords. Conflict, Negation, Ontology, Order-sorted logic 1. Introduction In 2002 Toyama Prefecture in Japan changed the policy and the resident became able to submit various kinds of forms electrically, in accordance with the development of the Internet. At that time, many municipal offers were forced to rewrite the regional ordinance by hand. The legal codes are intrinsically destined to be modified and revised in longer years, to catch up with the requirement of our society. However, for each revision, the coherence of the code was always threatened, and in worse cases it may include discordance and inconsistency in itself. In many researches on legal reasoning, researchers often regard that the code is consistent though they may sometimes add incomplete knowledge to get beneficial consequences [11]. However, when a new legislation, jurists need to inspect whether the new law is coherent with the existing legislations stringently. In this revision procedure, jurists must assess how large area it affects. If (s)he finds a discordance with a new legislation, (s)he modifies it first, then (s)he needs to search for the affected area further from the newly revised law recursively. Thus, such a revision would be a tedious and painstaking work. Our motivation in this study is to identify the affected area automatically and to detect the discordance in a practical, large-scale code. The structure of this paper is as follows. First, we explain concepts of conflict and loop as the discordance, and then the algorithm for validation. Secondly, our implementation is introduced. Thirdly, we explain an experimental result with actual data. Finally, we summarize our contribution.
2 2. Discordance 2.1. Discordance The logical inconsistency becomes apparent only when both of A and A appear in a set of propositions. However, the inconsistency may not be seen from the superficial sentences of the legal code. To clarify such latent inconsitency, we need to supply some premises of the rules [12]. Below is an example, where AF is a function which retrieves the minimal set of assumptive facts. Example 2.1 For = {r u, r u},af ( ) = {r}. Then, AF ( ). In addition, there might be a loop of implications. For example, in a database { a, a b, b a} where is the logical truth, we cannot collect the evidences of b. However, the discrepancy or the discordance is not only the logical inconsistency. In the lexicon of legal code, such lexical items which includes negative prefixes as un-, dis-, in-, and so on cannot coexist with their original positive words. Also, there are antonyms that have conflictive meanings without prefixes, as liquid and solid, or vice and virtue. Furthermore, some situations are incompatible with each other, which we can easily know by our common sense. For example, submission with signature is incompatible with electric submission. In this paper, we call all those sources of conflict, including (i) inconsistent rules, (ii) loops of implication, and (iii) incomptible concepts discordance in the law Conflict Thus far, there have been many researches on expanding inconsitency [4,8,1,6,5,3]. Among them, we would like to rely on the notion of conflict [3] where the opposition of antonyms or negatively prefixed words are represented. Definition 2.1 Let be inconsistency, α, β be propositional variables. (α β). Then, α and β are in conflict. With this notion, we can avoid the arbitrary, rather subjective usage of the negative connective. In this study, we eliminate this symbol and only employ. However, if we were to define conflicts, we must enumerate all the possible combinations of predicates which appear in a legal code, where the number of pairs would be O(n 2 ). To avoid this problem, we employ order-sorted hierarchy of ontology Ontology An ontology consists of tree-structured hypernym-hyponym relations, together with extraneous knowledge base. In this study, we pay attention only to the sorted hierarchy. Nowadays we can find many such ontologies, implemented in OWL (Web Ontology Language) that is a kind of XML format, or in other languages of description logic [13]. In order to complement the common knowledge to a legal database, we consider such a word taxonomy, and employ order-sorted logic [10,2] to formalize it.
3 Ordered sorts Here, we explain a part of order-sorted logic which we use in this paper. Ordered sorts S is constructed with a set of sorts S = {s 0,..., s n } and a set of sub-sort relations ( S S). An element of sub-sort relation (s i, s j ) is generally denoted by s i s j ; it is called a sub-sort declaration. Then, s i is called sub-sort of s j, and s j is called super-sort of s i. Furthermore, the sub-sort relations satisfy transitivity and reflexivity, is sub-sort of all sort, and is super-sort of all sort. In addition, for such a S, if (s, s ), then it can be denoted by S = s s s Conflict in Ordered Sorts Next, we consider a concept of conflict in order-sorted logic. First, we introduce (meet) operation that returns the infimum (the greatest lower bound) with regard to, taking two sorts [10]. Definition 2.2 exclusive relation Let s i, s j be sorts and be the minimum sort. Then, s i s j iff s i s j = Furthermore, a sort is regarded as a unary predicate [2] of FOL (first-ordered logic). Thus, the sort predicate is defined as follows. Definition 2.3 Sort predicate Let S = S, be ordered sorts, s be a sort and x be an individual variable. If s S hold, then a unary predicate s(x) exists. Then s(x) is denoted by P s (x). Therefore, the above exclusive relation is regarded as s i s j s i s j = x[p si (x) P sj (x) ]. As stated above, the exclusive relation can express the conflict on ordered sorts Application of Order-sorted Logic to Ontology Although a sort predicate in Definition. 2.3 is unary, a concept in an ontology may be used as a predicate with multiple arguments. Thus, we need to expand the sort predicate as follows. Definition 2.4 Sort Predicate for Ontology Let S = S, be ordered sorts, be a knowledgebase, P be a set of predicate of. If s S and s(x 0,..., x n ) P, then we call s(x 0,..., x n ) sort predicate for. A function which returns the sort predicate dependant on the knowledgebase is denoted by SP; Thus, SP (, s) = s(x 0,..., x n ). Since an ontology is described by XML, it can express some properties besides super-sub relations. Thus, we define a function, by which an ordered sorts are extracted from an ontology. Then we denote S O for ordered sorts of the ontology O 1 1 If the ontology is given in XML, such tags as class/subclass notation are converted to the subsumption of sorts.
4 Next, for the ordered sorts, we define a concept of conflict. Then, we revise the definition of the operator meet ( ) as follows, because the hierarchy of the ontology is not necessarily a lattice 2. Definition 2.5 Meet operator Let S = S, be ordered sorts. s i, s j S be sorts. For S, s i and s j, we assume Σ = {s s s i, s s j, s S} and Γ = {s s, s Σ, S s s }, then s i s j = Γ holds. Moreover, it is denoted by S = s i s j = Γ. As stated above, we define a function of extraction of conflict pairs of sorts from ordered sorts as follows. Definition 2.6 Function of Extraction of Conflict Relations Let S O = S, be ordered sorts, Arity be a function which returns th number of the arguments of the predicate, and be knowledgebase. For S O, S O = s i s j = { } and Arity(SP(, s i )) = Arity(SP(, s j )), then, for, we convert it into x 0,..., x n [SP(, s i ) SP(, s j ) O ]. O means that inconsistency on O. We denote such a function of conversion as Cnf. Hence, x 0,..., x n [SP(, s i ) SP(, s j ) O ] Cnf (, S O ), where x 0,..., x n are individual variables of sort predicates which are returned by a function of SP. Therefore, for a knowledgebase Σ, if Σ Cnf (Σ, S O ) O, then we can consider that Σ includes inconsistency on the ontology O Extraction of Supplement Knowledge from Ontology Thus far, we utilize an ontology to define a concept of conflict. However, the ontology is not limited to this, but also can be used to aid the knowledgebase of law interpretation. A sub-sort relation, denoted by s s, is equal to x[p s (x) P s (x)]. Therefore, information in an ontolory can be regarded as inclusion relations of lexicons which are not explicitly defined in the text of the law. Those inclusion relations are really helpful for validation. Then, for an ontology, we define a function of conversion of sub-sort relations into implication of FOL as follows. Definition 2.7 Function of Conversion of Sub-sort Declaration. Let be knowledgebase, S = S, be ordered sorts, Arity be a function which returns th number of the arguments of the predicate, and x 0,..., x n be individual variables of a predicate which is returned by SP. If S = s s s and Arity(SP(, s)) = Arity(SP(, s )) = n, then it can be regarded as x 0..., x n [SP(, s) SP(, s )]. Therefore, we denote such a function which returns a formula which is converted for all sort by Imp. Thus, in a case that formula was denoted by ϕ, ϕ Imp(, S). As observed above, we validate a knowledgebase into which AF ( ), Cnf (, S O ) and Imp(, S O ) are added. 2 A lattice is a partially ordered set (or poset) whose nonempty finitesubsets all habe a supremum (called join) and an infimum(called meet)
5 Conflict of Rules Hence, we define conflict of rules. Then, we regard that a knowledgebase consists of a set of Horn clauses. When we detect the discordance, we employ the definition of argument [9,7] as follows. Definition 2.8 Argument Let ϕ be formula and Φ be a set of formulae. Φ, ϕ is an argument iff Φ ϕ, ψ[φ \ {ψ} ϕ] and Φ. With those definitions, we define the conflict of rules as follows. Definition 2.9 Conflict of Rules Let be knowledgebase of the text of the law, S O be ordered sorts made from an ontology, and ϕ and ψ be predicates. Also, we assume Γ = AF ( ) Cnf (, S O ) Imp(, S O ). Then, we consider an argument Arg 1 = Φ, ϕ, where Φ Γ. If (Φ AF ( )) Cnf (, S O ) Imp(, S O ) O, then, we consider that has conflict of rules on the ontology O. Particularly, in a case that (Φ AF ( )) Cnf (, S O ) Imp(, S O ) ψ, we consider that ϕ and ψ in conflict. A brief meaning of this definition is that a conflictive predicate must be not derived from facts which were used to derive another predicate which is in conflict. 3. Implementation In this section, we explain our implementation which consists of two programs. Its overview is Figure Programs One of the programs is a converter, written in Ruby, and the role is conversion of XML files into Prolog code. Another one is a validator, written in Prolog, and the role of which is validation of the code output by the converter Converter First, we explain how the converter converts XML to Prolog. Conversion of Rules We used two data files which are written in XML; one of them is the text of the law. This file includes rules which are expressed in FOL, as follows, where Japanese words are translated in Table. 1. <implies> <clause> <predicate value=" "/> <argument number="1"><var name="x"/></argument> <argument number="2"><var name="y"/></argument> <argument number="3"><var name="z"/></argument> </clause> <clause>
6 Rules of the law Ontology XML (FOL and OWL) Converter PSfrag replacements Knowledgebase of the law Ordered sorts Validation Code for Execution Prolog Validator Conflict Result Loop Result Text data Figure 1. Overview of Implementation Japanese English procedure of application officiallicense applicant intendance Table 1. Table of Mapping Japanese to English 1 <predicate value=" "/> <argument number="1"><var name="z"/></argument> </clause> <clause> <predicate value=" "/> <argument number="1"><var name="x"/></argument> </clause> <clause> <predicate value=" "/> <argument number="1"><var name="y"/></argument> </clause> </implies> When procedure of application, official license and intendance are expressed by application, licence, applicant and intendance as predicate names, respectively, the part of XML in the figure becomes x, y, z[application(x, y, z) licence(z) applicant(x) intendance(y)]. Actually, the XML is converted into a prolog code as
7 follows. 1:pv_sub(Root, (x,y,z)):- 2: usecheck(root,use_379,pv_sub(root, (x,y,z))), 3: pv(root, (z)), 4: pv(root, (x)), 5: pv(root, (y)), 6: pv(root,acceptable( : 8 : 1 )), 7: usedcheck(root,use_379,pv_sub(root, (x,y,z))). In the figure, n: means attached line numbers. From here, we simply explain some predicates which are used for validation. Both of pv and pv_sub execute their contents and record the execution logs. usecheck and usedcheck are used to detect a loop. acceptable is used to check whether a flag of a rule number is permitted or not. Extraction of Assumptive Facts We mentioned in Section 1 that we need to add premises of rules to the knowledgebase. Then, the converter extracts the premises, and converts them into Prolog code. The method is so simple. First, predicates which appear in head parts of the prolog code of rules are collected; this set is denoted by H. Second, in the similar way, predicates in body parts are collected; this set is denoted by B. Finally, B \ H is calculated, and the result is a set of assumptive facts. Ontology Next, we explain how to convert an ontology into Prolog code. As stated above, information of a concept of conflict and inclusion relations are extracted from an ontology. Then, basically those forms are the same one of rules except for rule number predicate acceptable. Therefore, the following XML data is converted into the following form in Prolog. <owl:class rdf:id=" "> <rdfs:subclassof> <owl:class rdf:id=" "/> </rdfs:subclassof> </owl:class> 1:pv_sub(Root, (Var_0)):- 2: usecheck(root,use_34,pv_sub(root, (Var_0))), 3: pv(root, (Var_0)), 4: usedcheck(root,use_34,pv_sub(root, (Var_0))). For the above data, the Prolog code expresses a FOL formula which is converted from a super-sub relation of OWL. In addition, relation data used to calculate a conflictive pair of predicates in execution of a validation program are extracted as follows. 1:relation(, ) Validator The execution of validation program is explained with in Figure. 2. In the figure, P n means predicates, P factn means a fact, means unification, and means the implication. Firstly, the validator performs P 0 (X). Then, the Prolog interpreter proves it, deducing some predicates; if it arrives at facts, it returns YES and terminates. In the process, the arguments of the predicates which were bound by constant individuals in the deduction are recorded. Therefore, the record is the argument of P 0 in Figure. 2. Secondly, the
8 Argument of P 0(X) P 0(X) PSfrag replacements P 1(X) P 2(X, Y ) Argument of P 6(X) P 6(X) P 5(X) P 3(Y ) P 4(X) P fact0 (a) P fact1 (b) Assumptive Facts Conflict: x[p 0(x) P 6(x) O] Figure 2. Image of Validation validator calculates a predicate which is in conflict with P 0 on ordered sorts; in the case, the validator can get P 6 from x[p 0 (x) P 6 (x) O ]: in the fact, it is calculated with the code of relations. Thus, the validator execute P 6 ; however, the way of execution of P 6 is different from the case of P 0. In the execution of P 0, the interpreter can use all the knowledge, but in the case of execution of P 6, the interpreter uses only facts which exist in the record; viz, the interpreter confirms whether P 6 holds by the fact that P 0 holds. In the figure, since P 6 held, we can recognize that the knowledgebase has the discordance of conflict between P 0 and P Experiment In the experiment, firstly, we could not find a conflictive part. Then, we artificially removed some predicates from a rule to confirm our algorithm, and the programs output some conflictive parts. Therefore, we could confirm that the rules did not have some conflictive parts. However, several loops could be found as follows. pv_sub(root, (X)):- pv(root, (X)), pv(root, (Y)), pv(root, (Y,X)), pv(root,acceptable( : 4 : 1 )). pv_sub(root, (Var_0)):- pv(root, (Var_0)).
9 Symbol Japanese English α a person who has right of appointive power β educational boards of cities and towns γ a person who has right of permission of officialtrip Table 2. Table of Mapping Japanese to English 2 pv_sub(root, (Z)):- pv(root, (Z)), pv(root,acceptable( : 4 : 1 )). In the source code, there is a loop which is from α to β, from β to γ and from γ to α. The Japanese words are replaced for Table. 2. Therefore, in a case that x is a person who has right of appointive power, we cannot get an evidence for it. Namely, we regard that this part should be corrected. 5. Conclusion Our contribution of this study is summarized as follows. We have targeted the real problem of ordinance revision held in Toyama prefecture in 2002, instead of artificial toy problem. We employed Gabbay s conflict instead of the conventional negative connective. Thus, we could employ ordered sorted hierarchy in ontology to detect incompatible notions. We have implemented a discordance detection system based on the logical format of XML, where those XML files were converted into Prolog, and the verification program scans the code to detect discordance. Our future target target would be the handling of. We simply divided those rules including disjunctions to implement them in Horn clause. However, we need to consider the computational efficiency. Also the input format of our system is XML based on first order logic (FOL). Translating natural language sentences into FOL still remains a tough problem. References [1] B. H. Slater. Paraconsistent logic? Journal of Philosophical Logic, 25: , [2] C. Beierle, U. Hedtstuck, U. Pletat, P. H. Schmitt, and J. Siekmann. An order-sorted logic for knowledge representation systems. Artificial Intelligence, 55: , June [3] Dov M. Gabbay and A. Hunter. Negation and contradiction. In Dov Gabbay and Heinrich Wansing, editors, What is Negation?, pages Kluwer Publishers, [4] Dov M. Gabbay and H. Wansing. What is negation? Kluwer Academic Publishers, [5] G. Restall. Paraconsistent logics! Bulletin of the Section of Logic, 26:156 63, [6] G. Restall. Negation in relevant logics: How i stopped worrying and learned to love the routley star. In Dov Gabbay and Heinrich Wansing, editors, What is Negation?, pages Kluwer Academic Publishers, [7] H. Prakken. A logical framework for modelling legal argument. In ICAIL 93: Proceedings of the fourth international conference on Artificial intelligence and law, pages 1 9. ACM Press, [8] H. Wansing. Negation. In Lou Goble, editor, The Blackwell Guide to Philosophical Logic, pages Blackwell Philosophy Guides, 2001.
10 [9] I. Tahara and S. Nobesawa. Reasoning from inconsistent knowledge base. The IEICE Transactions on information and systems, PT.1, J87-D-I(10): , [10] K. Kaneiwa and S. Tojo. An order-sorted resolution with implicitly negative sorts. In International Conference on Logic Programming, pages Cyprus, [11] N. Roos. A logic for reasoning with inconsistent knowedge. Artificial Intelligence, 57:69 103, [12] S. Hagiwara and S. Tojo. Stable legal knowledge with regard to contradictory arguments. In AIA, [13] W3C. Owl web ontology language reference,
An Order-Sorted Resolution with Implicitly Negative Sorts
An Order-Sorted Resolution with Implicitly Negative Sorts Ken Kaneiwa 1 and Satoshi Tojo 2 1 National Institute of Informatics 2-1-2 Hitotsubashi, Chiyoda-ku, Tokyo 101-8430 JAPAN kaneiwa@nii.ac.jp 2 Japan
More informationAdvanced Topics in LP and FP
Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection
More informationKnowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):
Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building
More informationTwo sources of explosion
Two sources of explosion Eric Kao Computer Science Department Stanford University Stanford, CA 94305 United States of America Abstract. In pursuit of enhancing the deductive power of Direct Logic while
More informationCS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.
3: Logic Why logic? Logic about inference or argument Start from assumptions or axioms Make deductions according to rules of reasoning Logic 3-1 Why logic? (continued) If I don t buy a lottery ticket on
More informationPropositional Logic Arguments (5A) Young W. Lim 11/30/16
Propositional Logic (5A) Young W. Lim Copyright (c) 2016 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version
More informationCOMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning
COMP9414, Monday 26 March, 2012 Propositional Logic 2 COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning Overview Proof systems (including soundness and completeness) Normal Forms
More informationArtificial Intelligence Chapter 7: Logical Agents
Artificial Intelligence Chapter 7: Logical Agents Michael Scherger Department of Computer Science Kent State University February 20, 2006 AI: Chapter 7: Logical Agents 1 Contents Knowledge Based Agents
More informationPropositional Resolution Introduction
Propositional Resolution Introduction (Nilsson Book Handout) Professor Anita Wasilewska CSE 352 Artificial Intelligence Propositional Resolution Part 1 SYNTAX dictionary Literal any propositional VARIABLE
More informationSKETCHY NOTES FOR WEEKS 7 AND 8
SKETCHY NOTES FOR WEEKS 7 AND 8 We are now ready to start work on the proof of the Completeness Theorem for first order logic. Before we start a couple of remarks are in order (1) When we studied propositional
More informationEquivalence for the G 3-stable models semantics
Equivalence for the G -stable models semantics José Luis Carballido 1, Mauricio Osorio 2, and José Ramón Arrazola 1 1 Benemérita Universidad Autóma de Puebla, Mathematics Department, Puebla, México carballido,
More informationIntroduction to Metalogic
Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)
More informationThe non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω
1 Preliminaries In this chapter we first give a summary of the basic notations, terminology and results which will be used in this thesis. The treatment here is reduced to a list of definitions. For the
More informationKnowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.
Knowledge representation Introduction Knowledge is the progression that starts with data which s limited utility. Data when processed become information, information when interpreted or evaluated becomes
More informationCS:4420 Artificial Intelligence
CS:4420 Artificial Intelligence Spring 2018 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart
More informationLogic and Inferences
Artificial Intelligence Logic and Inferences Readings: Chapter 7 of Russell & Norvig. Artificial Intelligence p.1/34 Components of Propositional Logic Logic constants: True (1), and False (0) Propositional
More informationNested Epistemic Logic Programs
Nested Epistemic Logic Programs Kewen Wang 1 and Yan Zhang 2 1 Griffith University, Australia k.wang@griffith.edu.au 2 University of Western Sydney yan@cit.uws.edu.au Abstract. Nested logic programs and
More informationPropositional Logic Resolution (6A) Young W. Lim 12/12/16
Propositional Logic Resolution (6A) Young W. Lim Copyright (c) 2016 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License,
More informationWhy Learning Logic? Logic. Propositional Logic. Compound Propositions
Logic Objectives Propositions and compound propositions Negation, conjunction, disjunction, and exclusive or Implication and biconditional Logic equivalence and satisfiability Application of propositional
More informationIntelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK
Intelligent Systems Propositional Logic Dieter Fensel and Dumitru Roman www.sti-innsbruck.at Copyright 2008 STI INNSBRUCK www.sti-innsbruck.at Where are we? # Title 1 Introduction 2 Propositional Logic
More informationLearning Goals of CS245 Logic and Computation
Learning Goals of CS245 Logic and Computation Alice Gao April 27, 2018 Contents 1 Propositional Logic 2 2 Predicate Logic 4 3 Program Verification 6 4 Undecidability 7 1 1 Propositional Logic Introduction
More information22c:145 Artificial Intelligence
22c:145 Artificial Intelligence Fall 2005 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2001-05 Cesare Tinelli and Hantao Zhang. a a These notes are copyrighted material and may not
More informationMathematical Foundations of Logic and Functional Programming
Mathematical Foundations of Logic and Functional Programming lecture notes The aim of the course is to grasp the mathematical definition of the meaning (or, as we say, the semantics) of programs in two
More informationPropositional Logic Resolution (6A) Young W. Lim 12/31/16
Propositional Logic Resolution (6A) Young W. Lim Copyright (c) 2016 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License,
More informationDescription Logics. Foundations of Propositional Logic. franconi. Enrico Franconi
(1/27) Description Logics Foundations of Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/27) Knowledge
More informationDeliberative Agents Knowledge Representation I. Deliberative Agents
Deliberative Agents Knowledge Representation I Vasant Honavar Bioinformatics and Computational Biology Program Center for Computational Intelligence, Learning, & Discovery honavar@cs.iastate.edu www.cs.iastate.edu/~honavar/
More informationPropositional Logic: Methods of Proof (Part II)
Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short
More informationIntelligent Agents. Pınar Yolum Utrecht University
Intelligent Agents Pınar Yolum p.yolum@uu.nl Utrecht University Logical Agents (Based mostly on the course slides from http://aima.cs.berkeley.edu/) Outline Knowledge-based agents Wumpus world Logic in
More informationMotivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory
Motivation CS389L: Automated Logical Reasoning Lecture 10: Overview of First-Order Theories Işıl Dillig Last few lectures: Full first-order logic In FOL, functions/predicates are uninterpreted (i.e., structure
More informationChapter 16. Logic Programming. Topics. Logic Programming. Logic Programming Paradigm
Topics Chapter 16 Logic Programming Introduction Predicate Propositions Clausal Form Horn 2 Logic Programming Paradigm AKA Declarative Paradigm The programmer Declares the goal of the computation (specification
More informationTHE LOGIC OF COMPOUND STATEMENTS
THE LOGIC OF COMPOUND STATEMENTS All dogs have four legs. All tables have four legs. Therefore, all dogs are tables LOGIC Logic is a science of the necessary laws of thought, without which no employment
More informationPropositional Logic. Fall () Propositional Logic Fall / 30
Propositional Logic Fall 2013 () Propositional Logic Fall 2013 1 / 30 1 Introduction Learning Outcomes for this Presentation 2 Definitions Statements Logical connectives Interpretations, contexts,... Logically
More informationCOMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning
COMP219: Artificial Intelligence Lecture 20: Propositional Reasoning 1 Overview Last time Logic for KR in general; Propositional Logic; Natural Deduction Today Entailment, satisfiability and validity Normal
More informationCS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón
CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS Santiago Ontañón so367@drexeledu Summary of last day: Logical gents: The can reason from the knowledge they have They can make deductions from their perceptions,
More informationPropositional Logic Arguments (5A) Young W. Lim 11/8/16
Propositional Logic (5A) Young W. Lim Copyright (c) 2016 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version
More informationLogic (3A) Young W. Lim 10/29/13
Copyright (c) 2013. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software
More informationFirst-Order Theorem Proving and Vampire. Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester)
First-Order Theorem Proving and Vampire Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester) Outline Introduction First-Order Logic and TPTP Inference Systems
More informationMathematics 114L Spring 2018 D.A. Martin. Mathematical Logic
Mathematics 114L Spring 2018 D.A. Martin Mathematical Logic 1 First-Order Languages. Symbols. All first-order languages we consider will have the following symbols: (i) variables v 1, v 2, v 3,... ; (ii)
More informationBrief Introduction to Prolog
Brief to Prolog Joana Côrte-Real jcr@dcc.fc.up.pt CRACS & INESC TEC Faculty of Sciences University of Porto University of Aizu 5th December 2014 1 / 27 Overview 1 to Prolog Prolog Syntax Tutorial 1 2 Lists
More informationLogic (3A) Young W. Lim 11/2/13
Copyright (c) 2013. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software
More informationEE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 10, 5/9/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Logical Agents Chapter 7
More informationClassical Propositional Logic
The Language of A Henkin-style Proof for Natural Deduction January 16, 2013 The Language of A Henkin-style Proof for Natural Deduction Logic Logic is the science of inference. Given a body of information,
More informationAI Programming CS S-09 Knowledge Representation
AI Programming CS662-2013S-09 Knowledge Representation David Galles Department of Computer Science University of San Francisco 09-0: Overview So far, we ve talked about search, which is a means of considering
More informationLecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)
Lecture 2 Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits Reading (Epp s textbook) 2.1-2.4 1 Logic Logic is a system based on statements. A statement (or
More informationChapter 2: Basic Notions of Predicate Logic
2. Basic Notions of Predicate Logic 2-1 Deductive Databases and Logic Programming (Winter 2009/2010) Chapter 2: Basic Notions of Predicate Logic Signature, Formula Interpretation, Model Implication, Consistency,
More informationCS 380: ARTIFICIAL INTELLIGENCE
CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS 11/8/2013 Santiago Ontañón santi@cs.drexel.edu https://www.cs.drexel.edu/~santi/teaching/2013/cs380/intro.html Summary of last day: Logical gents: The can
More informationMat 243 Exam 1 Review
OBJECTIVES (Review problems: on next page) 1.1 Distinguish between propositions and non-propositions. Know the truth tables (i.e., the definitions) of the logical operators,,,, and Write truth tables for
More informationLogic (3A) Young W. Lim 10/31/13
Copyright (c) 2013. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software
More information02 Propositional Logic
SE 2F03 Fall 2005 02 Propositional Logic Instructor: W. M. Farmer Revised: 25 September 2005 1 What is Propositional Logic? Propositional logic is the study of the truth or falsehood of propositions or
More informationLogic for Computer Science - Week 4 Natural Deduction
Logic for Computer Science - Week 4 Natural Deduction 1 Introduction In the previous lecture we have discussed some important notions about the semantics of propositional logic. 1. the truth value of a
More informationArtificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer
Artificial Intelligence Propositional Logic Copyright 2011 Dieter Fensel and Florian Fischer 1 Where are we? # Title 1 Introduction 2 Propositional Logic 3 Predicate Logic 4 Reasoning 5 Search Methods
More informationPropositional Reasoning
Propositional Reasoning CS 440 / ECE 448 Introduction to Artificial Intelligence Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri Spring 2010 Intro to AI (CS
More informationLogical Agents. Chapter 7
Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem
More informationDefining Double Negation Elimination
Defining Double Negation Elimination GREG RESTALL, Department of Philosophy, Macquarie University, Sydney 2109, Australia. Email: Greg.Restall@mq.edu.au. Web: http://www.phil.mq.edu.au/staff/grestall/
More informationLogic: Propositional Logic (Part I)
Logic: Propositional Logic (Part I) Alessandro Artale Free University of Bozen-Bolzano Faculty of Computer Science http://www.inf.unibz.it/ artale Descrete Mathematics and Logic BSc course Thanks to Prof.
More informationDiscrete Mathematical Structures. Chapter 1 The Foundation: Logic
Discrete Mathematical Structures Chapter 1 he oundation: Logic 1 Lecture Overview 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Quantifiers l l l l l Statement Logical Connectives Conjunction
More informationWarm-Up Problem. Is the following true or false? 1/35
Warm-Up Problem Is the following true or false? 1/35 Propositional Logic: Resolution Carmen Bruni Lecture 6 Based on work by J Buss, A Gao, L Kari, A Lubiw, B Bonakdarpour, D Maftuleac, C Roberts, R Trefler,
More informationA Strong Relevant Logic Model of Epistemic Processes in Scientific Discovery
A Strong Relevant Logic Model of Epistemic Processes in Scientific Discovery (Extended Abstract) Jingde Cheng Department of Computer Science and Communication Engineering Kyushu University, 6-10-1 Hakozaki,
More informationDefinite Logic Programs
Chapter 2 Definite Logic Programs 2.1 Definite Clauses The idea of logic programming is to use a computer for drawing conclusions from declarative descriptions. Such descriptions called logic programs
More informationResolution (14A) Young W. Lim 8/15/14
Resolution (14A) Young W. Lim Copyright (c) 2013-2014 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version
More informationFoundations of Logic Programming
Foundations of Logic Programming Deductive Logic e.g. of use: Gypsy specifications and proofs About deductive logic (Gödel, 1931) Interesting systems (with a finite number of axioms) are necessarily either:
More information2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic
CS 103 Discrete Structures Chapter 1 Propositional Logic Chapter 1.1 Propositional Logic 1 1.1 Propositional Logic Definition: A proposition :is a declarative sentence (that is, a sentence that declares
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 31. Propositional Logic: DPLL Algorithm Malte Helmert and Gabriele Röger University of Basel April 24, 2017 Propositional Logic: Overview Chapter overview: propositional
More informationReview of Predicate Logic
Review of Predicate Logic Martin Held FB Computerwissenschaften Universität Salzburg A-5020 Salzburg, Austria held@cosy.sbg.ac.at 19. Jänner 2016 COMPUTERWISSENSCHAFTEN Legal Fine Print and Disclaimer
More informationCOMP2411 Lecture 10: Propositional Logic Programming. Note: This material is not covered in the book. Resolution Applied to Horn Clauses
COMP2411 Lecture 10: Propositional Logic Programming Note: This material is not covered in the book Consider two Horn clauses Resolution Applied to Horn Clauses p p 1... p n and q q 1... q m Suppose these
More information6. Logical Inference
Artificial Intelligence 6. Logical Inference Prof. Bojana Dalbelo Bašić Assoc. Prof. Jan Šnajder University of Zagreb Faculty of Electrical Engineering and Computing Academic Year 2016/2017 Creative Commons
More informationMAT2345 Discrete Math
Fall 2013 General Syllabus Schedule (note exam dates) Homework, Worksheets, Quizzes, and possibly Programs & Reports Academic Integrity Do Your Own Work Course Web Site: www.eiu.edu/~mathcs Course Overview
More informationTecniche di Verifica. Introduction to Propositional Logic
Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called
More informationPropositional Logic Arguments (5A) Young W. Lim 11/29/16
Propositional Logic (5A) Young W. Lim Copyright (c) 2016 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version
More informationSupplementary Logic Notes CSE 321 Winter 2009
1 Propositional Logic Supplementary Logic Notes CSE 321 Winter 2009 1.1 More efficient truth table methods The method of using truth tables to prove facts about propositional formulas can be a very tedious
More informationPropositional Logic Language
Propositional Logic Language A logic consists of: an alphabet A, a language L, i.e., a set of formulas, and a binary relation = between a set of formulas and a formula. An alphabet A consists of a finite
More informationModel Theory of Modal Logic Lecture 1: A brief introduction to modal logic. Valentin Goranko Technical University of Denmark
Model Theory of Modal Logic Lecture 1: A brief introduction to modal logic Valentin Goranko Technical University of Denmark Third Indian School on Logic and its Applications Hyderabad, 25 January, 2010
More informationFirst Order Logic: Syntax and Semantics
CS1081 First Order Logic: Syntax and Semantics COMP30412 Sean Bechhofer sean.bechhofer@manchester.ac.uk Problems Propositional logic isn t very expressive As an example, consider p = Scotland won on Saturday
More informationLogic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001
Logic Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001 Last Lecture Games Cont. α-β pruning Outline Games with chance, e.g. Backgammon Logical Agents and thewumpus World
More informationConvert to clause form:
Convert to clause form: Convert the following statement to clause form: x[b(x) ( y [ Q(x,y) P(y) ] y [ Q(x,y) Q(y,x) ] y [ B(y) E(x,y)] ) ] 1- Eliminate the implication ( ) E1 E2 = E1 E2 x[ B(x) ( y [
More informationTitle: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)
B.Y. Choueiry 1 Instructor s notes #12 Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) Introduction to Artificial Intelligence CSCE 476-876, Fall 2018 URL: www.cse.unl.edu/ choueiry/f18-476-876
More informationDeductive Systems. Lecture - 3
Deductive Systems Lecture - 3 Axiomatic System Axiomatic System (AS) for PL AS is based on the set of only three axioms and one rule of deduction. It is minimal in structure but as powerful as the truth
More informationPropositional Logic Logical Implication (4A) Young W. Lim 4/21/17
Propositional Logic Logical Implication (4A) Young W. Lim Copyright (c) 2016-2017 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation
More information3. The Logic of Quantified Statements Summary. Aaron Tan August 2017
3. The Logic of Quantified Statements Summary Aaron Tan 28 31 August 2017 1 3. The Logic of Quantified Statements 3.1 Predicates and Quantified Statements I Predicate; domain; truth set Universal quantifier,
More informationManual of Logical Style
Manual of Logical Style Dr. Holmes January 9, 2015 Contents 1 Introduction 2 2 Conjunction 3 2.1 Proving a conjunction...................... 3 2.2 Using a conjunction........................ 3 3 Implication
More informationLogical agents. Chapter 7. Chapter 7 1
Logical agents Chapter 7 Chapter 7 1 Outline Knowledge-based agents Logic in general models and entailment Propositional (oolean) logic Equivalence, validity, satisfiability Inference rules and theorem
More informationInformal Statement Calculus
FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example
More informationLogical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5
rtificial Intelligence Topic 12 Logical Inference Reading: Russell and Norvig, Chapter 7, Section 5 c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 Logical
More informationMAI0203 Lecture 7: Inference and Predicate Calculus
MAI0203 Lecture 7: Inference and Predicate Calculus Methods of Artificial Intelligence WS 2002/2003 Part II: Inference and Knowledge Representation II.7 Inference and Predicate Calculus MAI0203 Lecture
More informationPropositional Logic Arguments (5A) Young W. Lim 10/11/16
Propositional Logic (5A) Young W. Lim Copyright (c) 2016 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version
More information2. The Logic of Compound Statements Summary. Aaron Tan August 2017
2. The Logic of Compound Statements Summary Aaron Tan 21 25 August 2017 1 2. The Logic of Compound Statements 2.1 Logical Form and Logical Equivalence Statements; Compound Statements; Statement Form (Propositional
More informationCHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS
CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS 1 Language There are several propositional languages that are routinely called classical propositional logic languages. It is due to the functional dependency
More informationIntroducing Proof 1. hsn.uk.net. Contents
Contents 1 1 Introduction 1 What is proof? 1 Statements, Definitions and Euler Diagrams 1 Statements 1 Definitions Our first proof Euler diagrams 4 3 Logical Connectives 5 Negation 6 Conjunction 7 Disjunction
More informationLogic and Proofs. (A brief summary)
Logic and Proofs (A brief summary) Why Study Logic: To learn to prove claims/statements rigorously To be able to judge better the soundness and consistency of (others ) arguments To gain the foundations
More informationWhat are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos
What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos armandobcm@yahoo.com February 5, 2014 Abstract This note is for personal use. It
More informationAI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic
AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic Propositional logic Logical connectives Rules for wffs Truth tables for the connectives Using Truth Tables to evaluate
More informationIntelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.
Intelligent Agents First Order Logic Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 19. Mai 2015 U. Schmid (CogSys) Intelligent Agents last change: 19. Mai 2015
More informationThe statement calculus and logic
Chapter 2 Contrariwise, continued Tweedledee, if it was so, it might be; and if it were so, it would be; but as it isn t, it ain t. That s logic. Lewis Carroll You will have encountered several languages
More informationCompound Propositions
Discrete Structures Compound Propositions Producing new propositions from existing propositions. Logical Operators or Connectives 1. Not 2. And 3. Or 4. Exclusive or 5. Implication 6. Biconditional Truth
More informationArtificial Intelligence
Artificial Intelligence Propositional Logic Marc Toussaint University of Stuttgart Winter 2016/17 (slides based on Stuart Russell s AI course) Motivation: Most students will have learnt about propositional
More informationLecture 7. Logic. Section1: Statement Logic.
Ling 726: Mathematical Linguistics, Logic, Section : Statement Logic V. Borschev and B. Partee, October 5, 26 p. Lecture 7. Logic. Section: Statement Logic.. Statement Logic..... Goals..... Syntax of Statement
More informationA Little Deductive Logic
A Little Deductive Logic In propositional or sentential deductive logic, we begin by specifying that we will use capital letters (like A, B, C, D, and so on) to stand in for sentences, and we assume that
More informationConjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.
Chapter 1 Logic 1.1 Introduction and Definitions Definitions. A sentence (statement, proposition) is an utterance (that is, a string of characters) which is either true (T) or false (F). A predicate is
More informationOn the Relationship of Defeasible Argumentation and Answer Set Programming
On the Relationship of Defeasible Argumentation and Answer Set Programming Matthias Thimm a Gabriele Kern-Isberner a a Information Engineering Group, Department of Computer Science University of Dortmund,
More informationArgumentation and rules with exceptions
Argumentation and rules with exceptions Bart VERHEIJ Artificial Intelligence, University of Groningen Abstract. Models of argumentation often take a given set of rules or conditionals as a starting point.
More information