VO Grundzüge der Artificial Intelligence SS Hans Tompits Institut für Informationssysteme Arbeitsbereich Wissensbasierte Systeme
|
|
- Scarlett Perkins
- 5 years ago
- Views:
Transcription
1 VO Grundzüge der Artificial Intelligence SS 2009 Hans Tompits Institut für Informationssysteme Arbeitsbereich Wissensbasierte Systeme
2 Knowledge Representation Folien adaptiert nach Vorlagen von Stuart Russell (U. Berkeley) Chapter 10 (incl. Material from Chapters 7 & 8)
3 Outline What is knowledge representation? Knowledge-based agents Logic in general models and entailment Review of propositional and first-order logic Aspects of knowledge and ontological engineering Chapter 10 (incl. Material from Chapters 7 & 8) 1
4 What is knowledge representation? The representation of knowledge and reasoning from knowledge are central for AI... after all, humans know things and do reasoning. Knowledge and reasoning play a crucial role in dealing with partially observable environments. A knowledge-based agent can combine general knowledge with current percepts to infer hidden aspects of the current state prior to selecting actions. E.g., a physician diagnoses a patient prior to choosing a treatment. = For diagnosing, the physician uses knowledge from textbooks and teachers as well as association patterns the physician cannot consciously describe. Chapter 10 (incl. Material from Chapters 7 & 8) 2
5 What is knowledge representation? (ctd.) Understanding natural language also involves inferring hidden states namely the intention of the speaker. E.g., when we hear John threw the stone against the mirror and broke it, we know that it refers to mirror and not to stone. In general, the goal of knowledge representation is the following: representing implicit knowledge about a certain area in such a way that it can be processed by computers original knowledge is encoded in suitable data structures and algorithms. Chapter 10 (incl. Material from Chapters 7 & 8) 3
6 What is knowledge representation? (Ctd.) Knowledge representation is a multidisciplinary field involving methods and techniques from: logic: provides the formal structures and rules for performing deductions ontology: defines the kinds of objects in the considered application area computer science: In short: supports the applications which distinguishes knowledge representation from pure philosophy. knowledge representation = application of logic and ontology for providing computational models. Chapter 10 (incl. Material from Chapters 7 & 8) 4
7 Declarative vs. procedural approaches Declarative knowledge representation techniques: knowledge is expressed as sentences in some suitable formal language which are accessed by the procedures using this knowledge = separation between the explicit representation of knowledge and the processing for answering queries. Advantages: increased versatility for performing complex tasks changes can be easily incorporated (modularity) Procedural techniques: knowledge is implicitly stored in a sequence of operations, manifested in the actual execution of the operations (i.e., directly as program code). Advantages: minimizing the role of explicit representation and reasoning can yield more efficient systems Chapter 10 (incl. Material from Chapters 7 & 8) 5
8 Declarative vs. procedural approaches (ctd.) In the 1970s and 1980s there were heated debates between advocates of the two approaches. Now it is understood that successful agents should combine both declarative and procedural elements in their designs. Chapter 10 (incl. Material from Chapters 7 & 8) 6
9 Knowledge-based agents Central components of a knowledge-based agent: a knowledge base a set of sentences in a formal language methods to add new sentences and methods to query what is known we use Tell and Ask as generic names for these tasks both tasks may involve inference i.e., deriving new sentences from old. In logical agents, answers to the Ask procedure is by means of logic! Schematic architecture: Inference engine domain independent algorithms Knowledge base domain specific content Chapter 10 (incl. Material from Chapters 7 & 8) 7
10 A simple knowledge-based agent The agent must be able to: represent states, actions, etc.; incorporate new percepts; update internal representations of the world; deduce hidden properties of the world; deduce appropriate actions. Each time the agent program is called, it does three things: 1. It Tells the knowledge base what it perceives; 2. it Asks the knowledge base what action it should perform; 3. it records its choice with Tell and executes the action. Chapter 10 (incl. Material from Chapters 7 & 8) 8
11 A simple knowledge-based agent function KB-Agent( percept) returns an action static: KB, a knowledge base t, a counter, initially 0, indicating time Tell(KB, Make-Percept-Sentence( percept, t)) action Ask(KB, Make-Action-Query(t)) Tell(KB, Make-Action-Sentence(action, t)) t t + 1 return action Make-Percept-Sentence constructs a sentence asserting that the agent perceived the given percept at the given time. Make-Action-Query constructs a sentence that asks what action should be done at the current time. Make-Action-Sentence constructs a sentence asserting that the chosen action was executed. = Details of the inference mechanisms are hidden inside Tell and Ask! Chapter 10 (incl. Material from Chapters 7 & 8) 9
12 Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language Semantics defines the meaning of sentences; i.e., defines truth of a sentence in a world E.g., the language of arithmetic x + 2 y is a sentence; x2 + y > is not a sentence x + 2 y is true iff the number x + 2 is no less than the number y x + 2 y is true in a world where x = 7, y = 1 x + 2 y is false in a world where x = 0, y = 6 Chapter 10 (incl. Material from Chapters 7 & 8) 10
13 Entailment Entailment means that one thing follows from another: knowledge base KB entails sentence α, symbolically KB = α, iff α is true in all worlds where KB is true. E.g., the KB containing Pooh laughs and Tigger laughs entails Either Pooh laughs or Tigger laughs. E.g., x + y = 4 entails 4 =x + y. Entailment is a relationship between sentences (i.e., syntax) that is based on semantics. Chapter 10 (incl. Material from Chapters 7 & 8) 11
14 Models Semantics is defined in terms of models, which are formally structured worlds with respect to which truth can be evaluated. We say m is a model of a sentence α if α is true in m. M(α) is the set of all models of α. Then KB = α if and only if M(KB) M(α). E.g. KB = Pooh laughs and Tigger laughs α = Tigger laughs M( ) x x x x x x x x x x x x x x x x x x x x x x x x x xx x xx x x x x x x x M(KB) x x x x x x x x x Chapter 10 (incl. Material from Chapters 7 & 8) 12
15 Important semantical notions Two sentences are logically equivalent iff true in the same models: α β if and only if α = β and β = α A sentence is valid if it is true in all models, A sentence is satisfiable if it is true in some model A sentence is unsatisfiable if it is true in no models Writing α for the negation of α (with the meaning that α is true precisely when α is not true), we can state: α is valid if and only if α is unsatisfiable; KB = α if and only if KB { α} is unsatisfiable i.e., prove α by reductio ad absurdum Chapter 10 (incl. Material from Chapters 7 & 8) 13
16 Inference KB i α sentence α can be derived from KB by procedure i Derivation from KB = a sequence of inference rule applications using axioms and elements of KB Intuitively: Consequences of KB are a haystack; α is a needle. Entailment = needle in haystack; inference = finding it Soundness: i is sound if whenever KB i α, it is also true that KB = α Completeness: i is complete if whenever KB = α, it is also true that KB i α Chapter 10 (incl. Material from Chapters 7 & 8) 14
17 Two fundamental logics There are many different logics, designed for different purposes. Two logics are pre-eminent: propositional logic first-order logic (FOL), a.k.a. predicate logic Propositional logic is simple, assuming that the world consists of facts which can be composed from atomic formulas using connectives S (negation), S 1 S 2 (conjunction), S 1 S 2 (disjunction), S 1 S 2 (implication), S 1 S 2 (biconditional). E.g. A (B C) states that if A is not the case, then one of B or C holds. This formula may represent, e.g., the following sentence: If the car is not proceeding, then it is broken or out of gas. Chapter 10 (incl. Material from Chapters 7 & 8) 15
18 Truth tables for connectives P Q P P Q P Q P Q P Q false false true false false true true false true true false true true false true false false false true false false true true false true true true true Chapter 10 (incl. Material from Chapters 7 & 8) 16
19 Two fundamental logics (ctd.) Unlike natural language, propositional logic has, however, only very limited expressive power. E.g., the following argument (valid in natural language) cannot be adequately dealt with in propositional logic: All superheroes are brave. Superman is a superhero. Therefore: Superman is brave. In propositional logic, the three sentences would be formalized using atomic sentences A, B,C but A, B = C does not hold. = This is where FOL comes in! Chapter 10 (incl. Material from Chapters 7 & 8) 17
20 Two fundamental logics (ctd.) FOL assumes that the world contains Objects: people, houses, numbers, theories, Superman, Tigger, colors, centuries,... Relations: red, round, bogus, prime, multistoried..., brother of, bigger than, inside, part of, has color, occurred after, owns, comes between,... Functions: father of, best friend, addition, one more than, end of... Chapter 10 (incl. Material from Chapters 7 & 8) 18
21 Syntax of FOL: Basic elements Constants Superman, KingJohn, 2,... Predicates Friend, >,... Functions Sqrt, LeftLegOf,... Variables x, y, a, b,... Connectives Equality = Quantifiers (universal quantifier) (existential quantifier) Chapter 10 (incl. Material from Chapters 7 & 8) 19
22 Atomic sentences Atomic sentence = predicate(term 1,...,term n ) or term 1 = term 2 Term = function(term 1,...,term n ) or constant or variable E.g., Friend(Pooh, Tigger) > (Length(LeftLegOf (Hulk)), Length(LeftLegOf (Spider-Man))) Chapter 10 (incl. Material from Chapters 7 & 8) 20
23 Complex sentences Complex sentences are made from atomic sentences using connectives and quantifiers xs ( for all x, S ), xs ( for some x, S ) E.g. Archfiend(LexLuthor, Superman) Fights(LexLuthor, Superman) >(1, 2) (1, 2) >(1, 2) >(1, 2) x y(country(x) Capitol(y, x)) Chapter 10 (incl. Material from Chapters 7 & 8) 21
24 Truth in first-order logic Sentences are true with respect to a model and an interpretation Model contains 1 objects (domain elements) and relations among them Interpretation specifies referents for constant symbols objects predicate symbols relations function symbols functional relations An atomic sentence predicate(term 1,...,term n ) is true iff the objects referred to by term 1,...,term n are in the relation referred to by predicate. Chapter 10 (incl. Material from Chapters 7 & 8) 22
25 Truth example Consider the formula Brother(Richard,John) and the following interpretation: Richard Richard the Lionheart John the evil King John Brother the brotherhood relation Under this interpretation, Brother(Richard,John) is true just in case Richard the Lionheart and the evil King John are in the brotherhood relation in the model Chapter 10 (incl. Material from Chapters 7 & 8) 23
26 Translating natural language into logic Constructing a knowledge base means modeling knowledge in terms of logic. This process is also known as knowledge engineering. It usually involves translating pieces of knowledge expressed in natural language into symbols. We now discuss some aspects relevant for translating words into symbols. Chapter 10 (incl. Material from Chapters 7 & 8) 24
27 Translating natural language into logic (ctd.) First of all, translating natural language into logic is not automatic but requires experience and is often not easy. The passage to be translated must be understood clearly. Discourse in natural language often contain implicit assumptions which need to be made explicit. Ambiguities need to be resolved. Chapter 10 (incl. Material from Chapters 7 & 8) 25
28 Translating natural language into logic (ctd.) Statements often need to be paraphrased to exhibit their proper logical structure. This involves the following steps: 1. the direct translation of appropriate words into logical symbols; 2. rephrasing of component clauses to circumvent ambiguities in particular, to avoid the fallacy of equivocation (=misuse of a term with more than one meaning); 3. determining the intended grouping of paraphrased statements. Chapter 10 (incl. Material from Chapters 7 & 8) 26
29 Translating sentential connectives The following tables list (not exhaustively) expressions given on the right which can be translated by the symbols on the left. (N.B. The subsequent discussion largely follows Kleene (1967).) A B If A, then B. B if A. A only if B. When A, then B. B when A. A only when B. In case A, B. B in case A. A only in case B. B provided that A. A is a sufficient condition for B. B is a necessary condition for A. A (materially) implies B. A B A if and only if B. (Abbreviation: A iff B.) A if B, and B if A. If A then B, and conversely. A exactly if B. A exactly when B. A just in case B. A is a necessary and sufficient condition for B. A is (materially) equivalent to B. Chapter 10 (incl. Material from Chapters 7 & 8) 27
30 Translating sentential connectives (ctd.) A B A and B. Both A and B. A but B. Not only A but B. A although B. A despite B. A yet B. A while B. A B A or B. A and/or B [in legal documents]. A or B or both. A unless B. A except when B. (A B) (A B) A or B but not both. (is equivalent to A or else B. (A B), (A B), A or B [sometimes]. ( A B)) Either A or B. A unless B [sometimes]. A except when B [sometimes]. Chapter 10 (incl. Material from Chapters 7 & 8) 28
31 Translating sentential connectives (ctd.) (A B) Neither A nor B. (equivalent to A B) A Not A (or the result of transforming A to put not just after the verb or an auxiliary verb). A doesn t hold. A isn t so. It is not the case that A. Chapter 10 (incl. Material from Chapters 7 & 8) 29
32 Translating sentential connectives (ctd.) Note: Some nuances of meaning can get lost during the translation. Examples: In propositional logic A B is equivalent to B A, but the following sentences will be interpreted differently: Mary-Jane had a baby and got married. Mary-Jane got married and had a baby. = The sentences suggest a certain temporal order which is lost in the translation. Similarly, a young man would react differently if his girlfriend tells him one of the following sentences: I love you and I love your brother almost as well. I love you but I love your brother almost as well. Chapter 10 (incl. Material from Chapters 7 & 8) 30
33 Translating sentential connectives (ctd.) The fallacy of equivocation can be illustrated thus: Consider the following two statements: (a) He went to Albany and I went along. (b) He went to Schenectady but I did not go along. A direct (naive) translation of the two sentences in propositional logic would be of the form A W and S W. = The conjunction of both formulas is inconsistent. Chapter 10 (incl. Material from Chapters 7 & 8) 31
34 Translating sentential connectives (ctd.) The problem here is that I went along in (a) must be distinguished from the I went along whose negation appears in (b): I went along means in (a) I went along to Albany, but in (b) I went along to Schenectady. Hence, the correct translations of (a) and (b) in propositional logic are: A W A and S W S... or better yet in FOL: went(he, Albany) went(i, Albany) and went(he, Schenectady) went(i, Schenectady). Chapter 10 (incl. Material from Chapters 7 & 8) 32
35 Translating quantifiers xa(x) For all x, A(x). For every x, A(x). For each x, A(x). For arbitrary x, A(x). Whatever x is, A(x). A(x) always holds. Everyone is A. Everybody is A. Everything is A. Each one is A. Each person is A. Each thing is A. xa(x) For some x, A(x). For suitable x, A(x). There exists an x such that A(x). There is an x such that A(x). There is some x such that A(x). Someone is A. Somebody is A. Something is A. For at least one x, A(x). At least one is A. Chapter 10 (incl. Material from Chapters 7 & 8) 33
36 Common mistakes to avoid Typically, is the main connective with as in: all S are P: x (S(x) P(x)) Common mistake: using as the main connective with : x At(x,Berkeley) Smart(x) means Everyone is at Berkeley and everyone is smart Typically, is the main connective with as in: some S are P: x (S(x) P(x)) Common mistake: using as the main connective with : x (At(x,Stanford) Smart(x)) is true if there is anyone who is not at Stanford! Chapter 10 (incl. Material from Chapters 7 & 8) 34
37 Some ambiguities In natural language, all S are P would normally not be asserted if it is already known that S does not hold. Indeed, people would not consider all S are P true if S is false. = all S are P would in this sense be translated as rather than as x(s(x) P(x)). xs(x) x(s(x) P(x)) Chapter 10 (incl. Material from Chapters 7 & 8) 35
38 Some ambiguities (ctd.) Sometimes all S are not-p is understood as not all S are P. Examples: All that glisters is not gold (Shakespeare, Merchant of Venice). All women are not gold diggers. = Translations would be of form x(s(x) P(x)) but not of form x(a(x) P(x)). The indefinite article a or an has sometimes different meaning: A child needs affection. = x(c(x) A(x)) A man climbed the Mount Everest. = x(m(x) E(x)) Chapter 10 (incl. Material from Chapters 7 & 8) 36
39 Some ambiguities (ctd.) Also, the meaning of the expression any depends on the context: When an any-expression stands by itself, it has the same force as all. But when an any-expression D is put into contexts D or D E, the meaning of any normally changes from all to some. Examples: I would do that for anyone. = xa(x) I wouldn t do that for anyone. = xa(x) If any man is godfearing, he is just. = x(g(x) J(x)) If any man is just, Aristides is just. = ( xj(x)) J(a) If Superman is a villain, then any man is a villain. = V (s) xv (x) Chapter 10 (incl. Material from Chapters 7 & 8) 37
40 The problem of grouping For determining the intended grouping of complex sentences, it is advisable to analyze the outermost structure first and then to paraphrase inward, step by step. Example: Consider the following argument (after Quine, 1950): Premisses: The guard searched all who entered the building except those who were accompanied by members of the firm. Some of Fiorecchio s men entered the building unaccompanied by anyone else. The guard searched none of Fiorecchio s men. Conclusion: Some of Fiorecchio s men were members of the firm. Chapter 10 (incl. Material from Chapters 7 & 8) 38
41 The problem of grouping (ctd.) The first premiss can be paraphrased as follows: For every person x it holds that, if x entered the building, then x was searched by the guard except x was accompanied by some member of the firm. The outermost structure of this sentence is thus: x (x entered the building (x was searched by the guard except x was accompanied by some member of the firm)). We next consider the consequent of the implication: x (x entered the building (x was searched by the guard x was accompanied by some member of the firm)). Chapter 10 (incl. Material from Chapters 7 & 8) 39
42 The problem of grouping (ctd.) For the second clause of the consequent we obtain: x (x entered the building (x was searched by the guard y ( x was accompanied by y y was member of the firm)). Symbolically: x[b(x) (S(x) y(a(x,y) M(y)))] The second premiss Some of Fiorecchio s men entered the building unaccompanied by anyone else can be translated as follows (using F(x) for x was one of Fiorecchio s men ): x(f(x) B(x) x was unaccompanied by anyone else) Chapter 10 (incl. Material from Chapters 7 & 8) 40
43 The problem of grouping (ctd.) The sentence x was unaccompanied by anyone else can be interpreted as anyone accompanying x was one of Fioreccio s men = y(a(x, y) F(y)). For the last premiss ( the guard searched none of Fiorecchio s men ) and the conclusion ( some of Fiorecchio s men were members of the firm ) we get: x(f(x) S(x)) and x(f(x) M(x)), respectively. One can show: x[b(x) (S(x) y(a(x,y) M(y)))], x(f(x) B(x) y(a(x, y) F(y)), x(f(x) S(x)) = x(f(x) M(x)). Chapter 10 (incl. Material from Chapters 7 & 8) 41
44 The story so far Logical agents apply inference to a knowledge base to derive new information and make decisions Basic concepts of logic: syntax: formal structure of sentences semantics: truth of sentences wrt models entailment: necessary truth of one sentence given another inference: deriving sentences from other sentences soundness: derivations produce only entailed sentences completeness: derivations can produce all entailed sentences First-order logic: objects and relations are semantic primitives syntax: constants, functions, predicates, equality, quantifiers = Increased expressive power: sufficient to capture many aspects of natural language Chapter 10 (incl. Material from Chapters 7 & 8) 42
Reasoning. Inference. Knowledge Representation 4/6/2018. User
Reasoning Robotics First-order logic Chapter 8-Russel Representation and Reasoning In order to determine appropriate actions to take, an intelligent system needs to represent information about the world
More informationFirst-order logic. Chapter 8. Chapter 8 1
First-order logic Chapter 8 Chapter 8 1 Outline Why FOL? Syntax and semantics of FOL Fun with sentences Wumpus world in FOL Chapter 8 2 Pros and cons of propositional logic Propositional logic is declarative:
More informationLecture 8: (Predicate) First Order Logic
Lecture 8: (Predicate) First Order Logic CS 580 (001) - Spring 2018 Amarda Shehu Department of Computer Science George Mason University, Fairfax, VA, USA April 04, 2018 Amarda Shehu (580) 1 1 Outline of
More informationFirst-order logic. First-order logic. Logics in general. Outline. Syntax of FOL: Basic elements. Pros and cons of propositional logic
First-order logic Whereas propositional logic assumes world contains facts, first-order logic (like natural language) assumes the world contains First-order logic Chapter 8 Objects: people, houses, numbers,
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 informationINF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim
INF5390 Kunstig intelligens Logical Agents Roar Fjellheim Outline Knowledge-based agents The Wumpus world Knowledge representation Logical reasoning Propositional logic Wumpus agent Summary AIMA Chapter
More informationLogical agents. Chapter 7. Chapter 7 1
Logical agents Chapter 7 Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules
More informationCOMP219: Artificial Intelligence. Lecture 19: Logic for KR
COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof
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 informationCOMP219: Artificial Intelligence. Lecture 19: Logic for KR
COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof
More informationTDT4136 Logic and Reasoning Systems
TDT436 Logic and Reasoning Systems Chapter 7 - Logic gents Lester Solbakken solbakke@idi.ntnu.no Norwegian University of Science and Technology 06.09.0 Lester Solbakken TDT436 Logic and Reasoning Systems
More informationLogical Agent & Propositional Logic
Logical Agent & Propositional Logic Berlin Chen 2005 References: 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach. Chapter 7 2. S. Russell s teaching materials Introduction The representation
More informationLogical Agent & Propositional Logic
Logical Agent & Propositional Logic Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University References: 1. S. Russell and P. Norvig. Artificial Intelligence:
More informationPropositional Logic: Logical Agents (Part I)
Propositional Logic: Logical Agents (Part I) This lecture topic: Propositional Logic (two lectures) Chapter 7.1-7.4 (this lecture, Part I) Chapter 7.5 (next lecture, Part II) Next lecture topic: First-order
More informationKecerdasan Buatan M. Ali Fauzi
Kecerdasan Buatan M. Ali Fauzi Artificial Intelligence M. Ali Fauzi Logical Agents M. Ali Fauzi In which we design agents that can form representations of the would, use a process of inference to derive
More informationLogical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14
0/0/4 Knowledge based agents Logical Agents Agents need to be able to: Store information about their environment Update and reason about that information Russell and Norvig, chapter 7 Knowledge based agents
More informationIntroduction to Artificial Intelligence. Logical Agents
Introduction to Artificial Intelligence Logical Agents (Logic, Deduction, Knowledge Representation) Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU Winter Term 2004/2005 B. Beckert: KI für IM p.1 Outline Knowledge-based
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 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 informationOverview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR
COMP219: Artificial Intelligence Lecture 19: Logic for KR Last time Expert Systems and Ontologies oday Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof theory Natural
More informationCS 380: ARTIFICIAL INTELLIGENCE FIRST ORDER LOGIC. Santiago Ontañón
CS 380: ARTIFICIAL INTELLIGENCE FIRST ORDER LOGIC Santiago Ontañón so367@drexel.edu Pros and cons of propositional logic Propositional logic is declarative: pieces of syntax correspond to facts Propositional
More informationFirst Order Logic (FOL)
First Order Logic (FOL) CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2013 Soleymani Course material: Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter
More informationFirst-Order Logic. Michael Rovatsos. University of Edinburgh R&N: February Informatics 2D
First-Order Logic R&N: 8.1-8.3 Michael Rovatsos University of Edinburgh 4 February 2016 Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Pros and cons of propositional logic Propositional
More informationFirst-order logic. Chapter 8. Chapter 8 1
First-order logic Chapter 8 Chapter 8 1 (Slides borrowed from Stuart Russel: http://aima.eecs.berkeley.edu/slides-tex/) Chapter 8 2 First-order logic Whereas propositional logic assumes world contains
More information7. Logical Agents. COMP9414/ 9814/ 3411: Artificial Intelligence. Outline. Knowledge base. Models and Planning. Russell & Norvig, Chapter 7.
COMP944/984/34 6s Logic COMP944/ 984/ 34: rtificial Intelligence 7. Logical gents Outline Knowledge-based agents Wumpus world Russell & Norvig, Chapter 7. Logic in general models and entailment Propositional
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 informationInf2D 06: Logical Agents: Knowledge Bases and the Wumpus World
Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World School of Informatics, University of Edinburgh 26/01/18 Slide Credits: Jacques Fleuriot, Michael Rovatsos, Michael Herrmann Outline Knowledge-based
More informationFirst-Order Logic. Propositional logic. First Order logic. First Order Logic. Logics in General. Syntax of FOL. Examples of things we can say:
Propositional logic First-Order Logic Russell and Norvig Chapter 8 Propositional logic is declarative Propositional logic is compositional: meaning of B 1,1 P 1,2 is derived from meaning of B 1,1 and of
More informationLogical Agents. Outline
Logical Agents *(Chapter 7 (Russel & Norvig, 2004)) Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability
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 informationJ Propositional logic is declarative J Propositional logic is compositional: q meaning of B 1,1 P 1,2 is derived from meaning of B 1,1 and of P 1,2
Propositional logic First-Order Logic Russell and Norvig Chapter 8 J Propositional logic is declarative J Propositional logic is compositional: meaning of B 1,1 P 1,2 is derived from meaning of B 1,1 and
More informationFirst Order Logic (FOL)
First Order Logic (FOL) CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2015 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 8 Why FOL?
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 informationArtificial Intelligence
Artificial Intelligence Propositional Logic Marc Toussaint University of Stuttgart Winter 2015/16 (slides based on Stuart Russell s AI course) Outline Knowledge-based agents Wumpus world Logic in general
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard, Maren Bennewitz, and Marco Ragni Albert-Ludwigs-Universität Freiburg Contents 1 Agents
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Bernhard Nebel Albert-Ludwigs-Universität Freiburg May 17, 2016
More informationChapter 8 First Order Logic
1 Chapter 8 First Order Logic BBM 405 Artificial Intelligence Pinar Duygulu Slides are mostly adapted from AIMA and MIT Open Courseware CS461 Artificial Intelligence Pinar Spring Pros and cons of propositional
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 informationLogical Agents. September 14, 2004
Logical Agents September 14, 2004 The aim of AI is to develop intelligent agents that can reason about actions and their effects and about the environment, create plans to achieve a goal, execute the plans,
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 informationIntroduction to first-order logic:
Introduction to first-order logic: First-order structures and languages. Terms and formulae in first-order logic. Interpretations, truth, validity, and satisfaction. Valentin Goranko DTU Informatics September
More informationCS 380: ARTIFICIAL INTELLIGENCE INFERENCE IN PROPOSITIONAL LOGIC
CS 380: ARTIFICIAL INTELLIGENCE INFERENCE IN PROPOSITIONAL LOGIC 11/11/2013 Santiago Ontañón santi@cs.drexel.edu https://www.cs.drexel.edu/~santi/teaching/2013/cs380/intro.html Summary of last day: Logic:
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 informationCS:4420 Artificial Intelligence
CS:4420 rtificial Intelligence Spring 2018 Logical gents Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart Russell
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 informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Frank Hutter and Bernhard Nebel Albert-Ludwigs-Universität Freiburg
More informationCSCI-495 Artificial Intelligence. Lecture 17
CSCI-495 Artificial Intelligence Lecture 17 Tractable Inference: Horn Logic Resolution in general can be exponential in space and time For tractable inference we need a smaller logic Real-world KBs often
More informationCS 771 Artificial Intelligence. Propositional Logic
CS 771 Artificial Intelligence Propositional Logic Why Do We Need Logic? Problem-solving agents were very inflexible hard code every possible state E.g., in the transition of 8-puzzle problem, knowledge
More informationFirst-Order Logic. Chapter 8
First-Order Logic Chapter 8 Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL Pros and cons of propositional logic Propositional logic is declarative
More informationLogical Agents: Propositional Logic. Chapter 7
Logical Agents: Propositional Logic Chapter 7 Outline Topics: Knowledge-based agents Example domain: The Wumpus World Logic in general models and entailment Propositional (Boolean) logic Equivalence, validity,
More informationFirst Order Logic Semantics (3A) Young W. Lim 9/17/17
First Order Logic (3A) 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 License, Version
More informationFirst-Order Logic. Chapter 8
First-Order Logic Chapter 8 1 Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL 2 Pros and cons of propositional logic Propositional logic is declarative
More informationPropositional Logic: Logical Agents (Part I)
Propositional Logic: Logical Agents (Part I) First Lecture Today (Tue 21 Jun) Read Chapters 1 and 2 Second Lecture Today (Tue 21 Jun) Read Chapter 7.1-7.4 Next Lecture (Thu 23 Jun) Read Chapters 7.5 (optional:
More informationFormal (Natural) Deduction for Predicate Calculus
Formal (Natural) Deduction for Predicate Calculus Lila Kari University of Waterloo Formal (Natural) Deduction for Predicate Calculus CS245, Logic and Computation 1 / 42 Formal deducibility for predicate
More informationLogical Agents (I) Instructor: Tsung-Che Chiang
Logical Agents (I) Instructor: Tsung-Che Chiang tcchiang@ieee.org Department of Computer Science and Information Engineering National Taiwan Normal University Artificial Intelligence, Spring, 2010 編譯有誤
More informationCS 188: Artificial Intelligence Spring 2007
CS 188: Artificial Intelligence Spring 2007 Lecture 9: Logical Agents 2 2/13/2007 Srini Narayanan ICSI and UC Berkeley Many slides over the course adapted from Dan Klein, Stuart Russell or Andrew Moore
More informationCS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents
CS 331: Artificial Intelligence Propositional Logic I 1 Knowledge-based Agents Can represent knowledge And reason with this knowledge How is this different from the knowledge used by problem-specific agents?
More informationKnowledge-based Agents. CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents. Outline. Knowledge-based Agents
Knowledge-based Agents CS 331: Artificial Intelligence Propositional Logic I Can represent knowledge And reason with this knowledge How is this different from the knowledge used by problem-specific agents?
More informationAgenda. Artificial Intelligence. Reasoning in the Wumpus World. The Wumpus World
Agenda Artificial Intelligence 10. Propositional Reasoning, Part I: Principles How to Think About What is True or False 1 Introduction Álvaro Torralba Wolfgang Wahlster 2 Propositional Logic 3 Resolution
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 informationFirst Order Logic Semantics (3A) Young W. Lim 8/9/17
First Order Logic (3A) 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 License, Version
More informationLecture 7: Logical Agents and Propositional Logic
Lecture 7: Logical Agents and Propositional Logic CS 580 (001) - Spring 2018 Amarda Shehu Department of Computer Science George Mason University, Fairfax, VA, USA March 07, 2018 Amarda Shehu (580) 1 1
More informationLogical Agents. Outline
ogical gents Chapter 6, Ie Chapter 7 Outline Knowledge-based agents Wumpus world ogic in general models and entailment ropositional (oolean) logic Equivalence, validity, satisfiability Inference rules
More information3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations
Logic Propositions and logical operations Main concepts: propositions truth values propositional variables logical operations 1 Propositions and logical operations A proposition is the most basic element
More informationFirst-Order Logic. Chapter 8
First-Order Logic Chapter 8 Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL Pros/cons of propositional logic Propositional logic is declarative (recall
More informationChapter 7 R&N ICS 271 Fall 2017 Kalev Kask
Set 6: Knowledge Representation: The Propositional Calculus Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Outline Representing knowledge using logic Agent that reason logically A knowledge based agent Representing
More informationLogic. proof and truth syntacs and semantics. Peter Antal
Logic proof and truth syntacs and semantics Peter Antal antal@mit.bme.hu 10/9/2015 1 Knowledge-based agents Wumpus world Logic in general Syntacs transformational grammars Semantics Truth, meaning, models
More informationLogic. (Propositional Logic)
Logic (Propositional Logic) 1 REPRESENTING KNOWLEDGE: LOGIC Logic is the branch of mathematics / philosophy concerned with knowledge and reasoning Aristotle distinguished between three types of arguments:
More informationKnowledge based Agents
Knowledge based Agents Shobhanjana Kalita Dept. of Computer Science & Engineering Tezpur University Slides prepared from Artificial Intelligence A Modern approach by Russell & Norvig Knowledge Based Agents
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 informationKB Agents and Propositional Logic
Plan Knowledge-Based Agents Logics Propositional Logic KB Agents and Propositional Logic Announcements Assignment2 mailed out last week. Questions? Knowledge-Based Agents So far, what we ve done is look
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 informationFirst-Order Logic Chap8 1. Pros and Cons of Prop. Logic
Chapter8 First-Order Logic 20070503 Chap8 1 Pros and Cons of Prop. Logic PL is declarative Knowledge and inference are separate and inference is entirely domain-independent. PL is compositional Meaning
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 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 informationSection 3.1: Direct Proof and Counterexample 1
Section 3.1: Direct Proof and Counterexample 1 In this chapter, we introduce the notion of proof in mathematics. A mathematical proof is valid logical argument in mathematics which shows that a given conclusion
More informationTo every formula scheme there corresponds a property of R. This relationship helps one to understand the logic being studied.
Modal Logic (2) There appeared to be a correspondence between the validity of Φ Φ and the property that the accessibility relation R is reflexive. The connection between them is that both relied on the
More informationRevised by Hankui Zhuo, March 21, Logical agents. Chapter 7. Chapter 7 1
Revised by Hankui Zhuo, March, 08 Logical agents Chapter 7 Chapter 7 Outline Wumpus world Logic in general models and entailment Propositional (oolean) logic Equivalence, validity, satisfiability Inference
More informationCS 730/730W/830: Intro AI
CS 730/730W/830: Intro AI 1 handout: slides 730W journal entries were due Wheeler Ruml (UNH) Lecture 9, CS 730 1 / 16 Logic First-Order Logic The Joy of Power Wheeler Ruml (UNH) Lecture 9, CS 730 2 / 16
More informationCS:4420 Artificial Intelligence
CS:4420 Artificial Intelligence Spring 2018 First-Order 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 informationCS 1571 Introduction to AI Lecture 14. First-order logic. CS 1571 Intro to AI. Midterm
CS 1571 Introduction to AI Lecture 14 First-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Midterm The midterm for the course will be held on October 28, 2014 In class exam Closed book
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 informationLogical Structures in Natural Language: First order Logic (FoL)
Logical Structures in Natural Language: First order Logic (FoL) Raffaella Bernardi Università degli Studi di Trento e-mail: bernardi@disi.unitn.it Contents 1 How far can we go with PL?................................
More informationFormal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures
Formal Logic: Quantifiers, Predicates, and Validity CS 130 Discrete Structures Variables and Statements Variables: A variable is a symbol that stands for an individual in a collection or set. For example,
More information7 LOGICAL AGENTS. OHJ-2556 Artificial Intelligence, Spring OHJ-2556 Artificial Intelligence, Spring
109 7 LOGICAL AGENS We now turn to knowledge-based agents that have a knowledge base KB at their disposal With the help of the KB the agent aims at maintaining knowledge of its partially-observable environment
More informationCS 188: Artificial Intelligence Spring 2007
CS 188: Artificial Intelligence Spring 2007 Lecture 8: Logical Agents - I 2/8/2007 Srini Narayanan ICSI and UC Berkeley Many slides over the course adapted from Dan Klein, Stuart Russell or Andrew Moore
More informationTHE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16)
THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16) FOL: A language to formulate knowledge Logic is the study of entailment relationslanguages, truth conditions and rules of inference. FOL or Predicate
More informationIntroduction to Intelligent Systems
Logical Agents Objectives Inference and entailment Sound and complete inference algorithms Inference by model checking Inference by proof Resolution Forward and backward chaining Reference Russel/Norvig:
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 informationCOMP3702/7702 Artificial Intelligence Week 5: Search in Continuous Space with an Application in Motion Planning " Hanna Kurniawati"
COMP3702/7702 Artificial Intelligence Week 5: Search in Continuous Space with an Application in Motion Planning " Hanna Kurniawati" Last week" Main components of PRM" Collision check for a configuration"
More informationLogic Background (1A) Young W. Lim 12/14/15
Young W. Lim 12/14/15 Copyright (c) 2014-2015 Young W. Lim. 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
More informationPrice: $25 (incl. T-Shirt, morning tea and lunch) Visit:
Three days of interesting talks & workshops from industry experts across Australia Explore new computing topics Network with students & employers in Brisbane Price: $25 (incl. T-Shirt, morning tea and
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 informationLast update: March 4, Logical agents. CMSC 421: Chapter 7. CMSC 421: Chapter 7 1
Last update: March 4, 00 Logical agents CMSC 4: Chapter 7 CMSC 4: Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general models and entailment Propositional (oolean) logic Equivalence,
More informationComputational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/26)
Computational Logic Davide Martinenghi Free University of Bozen-Bolzano Spring 2010 Computational Logic Davide Martinenghi (1/26) Propositional Logic - algorithms Complete calculi for deciding logical
More informationLecture 6: Knowledge 1
rtificial Intelligence, CS, Nanjing University Spring, 08, Yang Yu Lecture 6: Knowledge http://cs.nju.edu.cn/yuy/course_ai8.ash Previously... Basic ability: search Path-based search Iterative-improvement
More informationIntroduction to Intelligent Systems
Logical Agents Objectives Inference and entailment Sound and complete inference algorithms Inference by model checking Inference by proof Resolution Forward and backward chaining Reference Russel/Norvig:
More informationCSC242: Intro to AI. Lecture 12. Tuesday, February 26, 13
CSC242: Intro to AI Lecture 12 Quiz Stop Time: 2:15 ULW First draft due Mar 1 8-10 pages minimum First-Order Logic First-Order Logic Propositional Logic Syntax & Semantics Truth tables Model checking
More informationFirst order logic (FOL) Chapters 8 & 9
First order logic (FOL) Chapters 8 & 9 Pros and cons of propositional logic Propositional logic is declarative Propositional logic is compositional Meaning in propositional logic is context-independent
More information7. Propositional Logic. Wolfram Burgard and Bernhard Nebel
Foundations of AI 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard and Bernhard Nebel Contents Agents that think rationally The wumpus world Propositional logic: syntax and semantics
More information