9. Logica de ordinul intai. First-order logic. December 8, 2015

Size: px
Start display at page:

Download "9. Logica de ordinul intai. First-order logic. December 8, 2015"

Transcription

1 9. Logica de ordinul intai. First-order logic December 8, 2015

2 Outline First order logic Sintaxa FOL Adevarul in FOL Propozitii atomice Propozitii complexe Cuantificatorul universal Cuantificatorul existential Egalitatea Baze de cunostinte in FOL

3 Pro si contra Logicii propozitionale (B 1,1 = (P 1,2 P 2,1 )) ((P 1,2 P 2,1 ) = B 1,1 ) Este declarativa: componentele sintactice (propozitiile) sunt legate de fapte, semantica este bazata pe o relatie de adevar intre propozitii si lumi posibile permite informatii partiale, disjunctive si negate: Citesc MaJoc,W 1,1 W 2,1 este compozitionala: intelesul pt B 1,1 P 1,2 este derivat din intelesul pt B 1,1 si pt P 1,2 intelesul este independent de context: (spre deosebire de limbajul natural: Look!) Cons: logica propozitionale este foarte limitata expresiv: nu se poate spune gropile cauzeaza racoare in patratele adiacente decat scriind o propozitie pt fiecare patrat

4 First-order logic In timp ce logica propozitionala presupune ca lumea contine fapte (facts), first-order logic presupune ca lumea contine: Obiecte : oameni, case, numere, teorii, culori, razboaie, secole, oferte comerciale,... substantive, fraze substantivale Relatii : unare - este rosu, rotund, prim,..., n-are este frate a, mai mare decat, inauntru, parte din, are culoarea, intamplat dupa,... verbe, fraze verbale] Functii : tata a, cel mai bun prieten, sfarsitul a,...o singura valoare pentru un anumit input Exemple: unu plus unu este egal cu doi, celulele vecine wumpus-ului sunt urat mirositoare, Maleficul rege John a condus Anglia in 1200

5 Logici Limbaj Ontological Commitment Epistemological Commitm Ce exista in lume Ce crede un agent despre fapte Logica propozitionala fapte true/false/unknown Logica predicatelor fapte, obiecte, relatii true/false/unknown de ordinul intai Logica temporala fapte, obiecte, relatii, momente true/false/unknown Logica probabilitatilor fapte degree of belief [0,1] Logica fuzzy fapte si grade de adevar [0, 1] known interval value

6 Modele pentru FOL: Exemplu crown person R brother brother left leg $ J on head person king left leg Obiecte: Richard, John, piciorul stang al lui Richard, piciorul stang al lui John, coroana Relatii: tuple - binare: brotherhood, onhead; unare: person, king, crown Functii: leftlegof

7 Sintaxa FOL: elemente de baza Constants KingJohn,2,Emag,... Predicates Brother,>,Person,King,Crown... Functions Sqrt, LeftLegOf,... Variables x,y,a,b,... Connectives,,,, Equality = Quantifiers,

8 Exemplu Considerand interpretarea (ce obiecte, relatii si functii sunt referite de simbolurile constante, predicate si functii): Richard Richard Regele Leu ( ) John regele John ( ) Brother relatia de frate Brother(Richard, John) este adevarata doar daca Regele Leu si regele John sunt in relatie de frate in model (frati) O alta interpretare: Richard coroana, John piciorul stang al regelui John. Observatie: in logica propozitionala poate exista un model in care ambele Inorat si Senin sunt false. Eliminarea modelelor care sunt inconsistente cu cunostintele noastre trebuie sa fie realizata de baza de cunostinte.

9 Adevarul in logica predicatelor de ordinul intai Propozitiile sunt adevarate relativ la un model si o interpretare Un model contine unul sau mai multe obiecte (elementele domeniului si relatiile dintre elemente) Trebuie sa legam propozitiile la un model pentru a stabili adevarul lor interpretarea care specifica ce obiecte, relatii si functii sunt referite de simbolurile constante, predicate si functii simbolurile constante obiecte simbolurile predicate relatii simboilurile functii relatii functionale (functii) Entailmentul si validitatea sunt definite in termeni de toate modelele posibile si toate interpretarile posibile

10 FOL: Backus Naur Form (BNF )

11 Propozitii atomice Propozitii atomice = predicate(term 1,...,term n ) or term 1 = term 2 Term = function(term 1,...,term n ) or constant or variable Termenii sunt expresii logice care refera un obiect - cu nume sau fara E.g., Brother(John, Richard) > (Length(LeftLegOf(Richard)), Length(LeftLegOf (John)))

12 Propozitii complexe Propozitiile complexe sunt formate din propozitii atomice si conectori S, S 1 S 2, S 1 S 2, S 1 S 2, S 1 S 2 E.g. Brother(John, Richard) = Brother(Richard, John) >(1,2) (1,2) >(1,2) >(1,2)

13 Cuantificatorul universal variables sentence Everyone at Berkeley is smart: x At(x, Berkeley) Smart(x) x P este adevarat intr-un model m daca si numai daca P este adevarat cu x fiind toate obiectele posibile din model Poate fi considerat ca fiind echivalent cu conjunctia instantierilor lui P (At(John, Berkeley) Smart(John)) (At(Richard, Berkeley) Smart(Richard)) (At(Berkeley, Berkeley) Smart(Berkeley))...

14 Exemplu pt x King(x) Person(x) In model, x Richard Regele Leu, Regele John, piciorul stang al lui Richard, piciorul stang al lui John, coroana: (Richard Inima de Leu este rege Regele RIchard este o persoana Regele John este rege Regele John este o persoana Piciorul stang al lui Richard este rege Piciorul stang al lui Richard este o pe Piciorul drept al lui Richard este rege Piciorul drept al lui Richard este o pe Coroana este rege Coroana este o persoana Toate sunt adevarate, dar numai a doua spune intr-adevar ceva despre calitatea cuiva de a fi o persoana (daca consideram ca doar Regele John este rege). Observatie: implicatia este falsa doar cand premisele sunt adevarate si concluzia falsa.

15 Greseala tipica In general, este conectorul principal care apare impreuna cu Greseala tipica: utilizarea drept conector impreuna cu : x At(x, Berkeley) Smart(x)

16 Greseala tipica In general, este conectorul principal care apare impreuna cu Greseala tipica: utilizarea drept conector impreuna cu : x At(x, Berkeley) Smart(x) inseamna Everyone is at Berkeley and everyone is smart

17 Cuantificatorul existential variables sentence Cineva la Stanford este destept : x At(x, Stanford) Smart(x) x P este adevarata intr-un model m daca si numai daca P este adevarata cu x fiind un obiect posibil din model Este echivalent cu disjunctia dintre instantierile lui P (At(John, Stanford) Smart(KingJohn)) (At(Richard, Stanford) Smart(Richard)) (At(Stanford, Stanford) Smart(Stanford))...

18 O alta greseala comuna In general, este conectorul principal de utilizat cu Greseala: utilizarea cu : x At(x, Stanford) = Smart(x) este adevarata daca exista cineva care nu e la Stanford!

19 Quiz Cum se exprima propozitia: Regele John are o coroana pe cap? 1. x Crown(x) OnHead(x, John) 2. x Crown(x) OnHead(x, John) 3. x Crown(x) OnHead(x, John)

20 Quiz Cum se exprima propozitia: Regele John are o coroana pe cap? 1. x Crown(x) OnHead(x, John) CORECT 2. x Crown(x) OnHead(x, John) Regele John este o coroana Regele John este pe capul lui John este adevarata, premisele fiind false 3. x Crown(x) OnHead(x, John) Daca ceva este coroana, atunci se afla pe capul lui John

21 Proprietati ale cuantificatorilor x y este la fel cu y x Fratii sunt rude: x y Brother(x,y) Rude(x,y) Se poate scrie un singur cuantificator cu mai multe variabile: x,y Brother(x,y) Rude(x,y) x y este la fel cu y x Cineva citeste ceva x y nu e la fel cu y x 1. x y Loves(x, y) 2. y x Loves(x, y) 3. Everyone in the world is loved by at least one person?? 4. There is a person who loves everyone in the world??

22 Proprietati ale cuantificatorilor x y este la fel cu y x Fratii sunt rude: x y Brother(x,y) Rude(x,y) Se poate scrie un singur cuantificator cu mai multe variabile: x,y Brother(x,y) Rude(x,y) x y este la fel cu y x Cineva citeste ceva x y nu e la fel cu y x 1. x y Loves(x, y) 2. y x Loves(x, y) 3. Everyone in the world is loved by at least one person 2 4. There is a person who loves everyone in the world 1 Dualitatea cuantificatorilor: fiecare poate fi exprimat prin intermediul celuilalt x Likes(x, IceCream) x Likes(x, IceCream) x Likes(x, Broccoli) x Likes(x, Broccoli)

23 Exemple Brothers are siblings x,y Brother(x,y) Sibling(x,y).?

24 Exemple Brothers are siblings x,y Brother(x,y) Sibling(x,y). Sibling is symmetric x,y Sibling(x,y) Sibling(y,x).?

25 Exemple Brothers are siblings x,y Brother(x,y) Sibling(x,y). Sibling is symmetric x,y Sibling(x,y) Sibling(y,x). One s mother is one s female parent x,y Mother(x,y) (Female(x) Parent(x,y)).?

26 Exemple Brothers are siblings x,y Brother(x,y) Sibling(x,y). Sibling is symmetric x,y Sibling(x,y) Sibling(y,x). One s mother is one s female parent x,y Mother(x,y) (Female(x) Parent(x,y)). A first cousin is a child of a parent s sibling x, y FirstCousin(x, y) p,ps Parent(p,x) Sibling(ps,p) Parent(ps,y)

27 Egalitatea term 1 = term 2 este adevarat intr-o anumita interpretare daca si numai daca term 1 si term 2 se refera la acelasi obiect E.g., 2 = 2 father(john) = Henry x,y Brother(x,Richard) Brother(y,Richard) (x = y) - Richard are cel putin doi frati E.g., Sibling (frati si surori) x,y Sibling(x,y) [ (x = y) m,f (m = f) Parent(m,x) Parent(f,x) Parent(m,y) Parent(f,y)]

28 Interactiunea cu baze de cunostinte FOL: Tell, Ask Sa presupunem ca in lumea wumpus, agentul foloseste logica predicatelor de ordinul intai si percepe un miros si racoare, dar nu si stralucire, lovitura de perete sau urlet la momentul t = 5: Tell(KB, Percept([Smell, Breeze, None, None, None], 5)) Ask(KB, a BestAction(a, 5)) Se poate extrage din KB o anumita actiune t = 5? Actiuni disponibile: Turn(Left), Turn(Right), Forward, Shoot, Grab, Climb

29 Interactiunea cu baze de cunostinte FOL: Tell, Ask Sa presupunem ca in lumea wumpus, agentul foloseste logica predicatelor de ordinul intai si percepe un miros si racoare, dar nu si stralucire, lovitura de perete sau urlet la momentul t = 5: Tell(KB, Percept([Smell, Breeze, None, None, None], 5)) Ask(KB, a BestAction(a, 5)) Se poate extrage din KB o anumita actiune t = 5? Actiuni disponibile: Turn(Left), Turn(Right), Forward, Shoot, Grab, Climb Raspuns: Yes,{a/Shoot} substitutie (binding list) Ask(KB, S) returneaza toate substitutiile σ astfel incat KB = Sσ

30 Wumpus world in FOL - perceptii si actiuni Perception t,s,g,m,c Percept([s,Breeze,g,m,c],t) = Breeze(t) t,s,b,m,c Percept([s,b,Glitter,m,c],t) = Glitter(t) Reflex: t AtGold(t) = BestAction(Grab, t) Reflex cu stare interna: are aurul deja? t AtGold(t) Holding(Gold, t) = Action(Grab, t)

31 Deducerea proprietatilor ascunse Pozitia agentului la momentul t: At(Agent, s, t) x,s 1,s 2,t At(Agent,s 1,t) At(Agent,s 2,t) s 1 = s 2

32 Deducerea proprietatilor ascunse Pozitia agentului la momentul t: At(Agent, s, t) x,s 1,s 2,t At(Agent,s 1,t) At(Agent,s 2,t) s 1 = s 2 Proprietati ale pozitiilor x,t At(Agent,x,t) Breeze(t) = Breezy(x)

33 Deducerea proprietatilor ascunse Pozitia agentului la momentul t: At(Agent, s, t) x,s 1,s 2,t At(Agent,s 1,t) At(Agent,s 2,t) s 1 = s 2 Proprietati ale pozitiilor x,t At(Agent,x,t) Breeze(t) = Breezy(x) Adiacenta a doua celule x,y,a,b Adjacent([x,y],[a,b]) (x = a (y = b 1 y = b +1)) (y = b (x = a 1 x = a+1))

34 Deducerea proprietatilor ascunse Pozitia agentului la momentul t: At(Agent, s, t) x,s 1,s 2,t At(Agent,s 1,t) At(Agent,s 2,t) s 1 = s 2 Proprietati ale pozitiilor x,t At(Agent,x,t) Breeze(t) = Breezy(x) Adiacenta a doua celule x,y,a,b Adjacent([x,y],[a,b]) (x = a (y = b 1 y = b +1)) (y = b (x = a 1 x = a+1)) Celulele sunt cu vant in vecinatatea gropilor:

35 Deducerea proprietatilor ascunse Pozitia agentului la momentul t: At(Agent, s, t) x,s 1,s 2,t At(Agent,s 1,t) At(Agent,s 2,t) s 1 = s 2 Proprietati ale pozitiilor x,t At(Agent,x,t) Breeze(t) = Breezy(x) Adiacenta a doua celule x,y,a,b Adjacent([x,y],[a,b]) (x = a (y = b 1 y = b +1)) (y = b (x = a 1 x = a+1)) Celulele sunt cu vant in vecinatatea gropilor: Diagnostic rule infer cause from effect y Breezy(y) = x Pit(x) Adjacent(x,y) y Breezy(y) = x Pit(x) Adjacent(x,y)

36 Deducerea proprietatilor ascunse Pozitia agentului la momentul t: At(Agent, s, t) x,s 1,s 2,t At(Agent,s 1,t) At(Agent,s 2,t) s 1 = s 2 Proprietati ale pozitiilor x,t At(Agent,x,t) Breeze(t) = Breezy(x) Adiacenta a doua celule x,y,a,b Adjacent([x,y],[a,b]) (x = a (y = b 1 y = b +1)) (y = b (x = a 1 x = a+1)) Celulele sunt cu vant in vecinatatea gropilor: Diagnostic rule infer cause from effect y Breezy(y) = x Pit(x) Adjacent(x,y) y Breezy(y) = x Pit(x) Adjacent(x,y) Definitie pentru predicatul Breezy y Breezy(y) [ x Pit(x) Adjacent(x,y)]

37 Deducerea proprietatilor ascunse Pozitia agentului la momentul t: At(Agent, s, t) x,s 1,s 2,t At(Agent,s 1,t) At(Agent,s 2,t) s 1 = s 2 Proprietati ale pozitiilor x,t At(Agent,x,t) Breeze(t) = Breezy(x) Adiacenta a doua celule x,y,a,b Adjacent([x,y],[a,b]) (x = a (y = b 1 y = b +1)) (y = b (x = a 1 x = a+1)) Celulele sunt cu vant in vecinatatea gropilor: Diagnostic rule infer cause from effect y Breezy(y) = x Pit(x) Adjacent(x,y) y Breezy(y) = x Pit(x) Adjacent(x,y) Definitie pentru predicatul Breezy y Breezy(y) [ x Pit(x) Adjacent(x,y)] Causal rule infer effect from cause x Pit(x) ( y Adjacent(x,y) Breezy(y))

38 Deducerea proprietatilor ascunse Pozitia agentului la momentul t: At(Agent, s, t) x,s 1,s 2,t At(Agent,s 1,t) At(Agent,s 2,t) s 1 = s 2 Proprietati ale pozitiilor x,t At(Agent,x,t) Breeze(t) = Breezy(x) Adiacenta a doua celule x,y,a,b Adjacent([x,y],[a,b]) (x = a (y = b 1 y = b +1)) (y = b (x = a 1 x = a+1)) Celulele sunt cu vant in vecinatatea gropilor: Diagnostic rule infer cause from effect y Breezy(y) = x Pit(x) Adjacent(x,y) y Breezy(y) = x Pit(x) Adjacent(x,y) Definitie pentru predicatul Breezy y Breezy(y) [ x Pit(x) Adjacent(x,y)] Causal rule infer effect from cause x Pit(x) ( y Adjacent(x,y) Breezy(y)) Obs: regula cauzala nu spune daca celulele mai indepartate sunt cu vant sau nu

39 Axioma starii urmatoare: cuantificare peste timp t HaveArrow(t +1) HaveArrow(t) Action(Shoot,t))

40 Quiz 1. Care dinte urmatoarele translatari in FOL sunt corecte sintactic si semantic pentru Niciun caine nu musca niciun copil al stapanului? (No dog bites a child of its owner 1.1 x Dox(x) Bites(x, Child(Owner(x))) 1.2 x,y Dog(x) Child(y,Owner(x)) Bites(x,y) 1.3 x Dog(x) ( y Child(y,Owner(x)) Bites(x,y)) 1.4 x Dog(x) ( y Child(y,Owner(x)) Bites(x,y)) 2. Translatati in FOL: Everyones DNA is unique and is derived from their parents DNA. (DNA oricui este unic si este derivat din cel al parintilor). Hint: puteti folosi functia DNA si predicatul DerivedFrom(u,v,w) care inseamna ca u este derivat din v si w.

41 Quiz 1. Care dinte urmatoarele translatari in FOL sunt corecte sintactic si semantic pentru Niciun caine nu musca niciun copil al stapanului? (No dog bites a child of its owner 1.1 x Dox(x) Bites(x, Child(Owner(x))) child nu e o functie 1.2 x,y Dog(x) Child(y,Owner(x)) Bites(x,y) CORECT 1.3 x Dog(x) ( y Child(y,Owner(x)) Bites(x,y)) CORECT 1.4 x Dog(x) ( y Child(y,Owner(x)) Bites(x,y)) implicatie impreuna cu cuantificator existential 2. Translatati in FOL: Everyones DNA is unique and is derived from their parents DNA. (DNA oricui este unic si este derivat din cel al parintilor). Hint: puteti folosi functia DNA si predicatul DerivedFrom(u,v,w) care inseamna ca u este derivat din v si w. x,y( (x = y) (DNA(x) = DNA(y))) DerivedFrom(DNA(x), DNA(Mother(x)), DNA(Father(x)))

42 Leul si unicornul Raymond Smullyan: Leul minte Luni Marti si Miercuri si spune adevarul in restul zilelor. Unicornul minte Joi, Vineri si SAmbata si spune adevarul in rest. Alice ii intalneste pe cei doi si acestia ii spun urmatoarele: Leul: Ieri a fost una dintre zilele mele de minciuna Unicornul: Ieri a fost una dintre zilele mele de minciuna Ce zi a fost ieri?

43

44 Rezumat First order logic Sintaxa FOL Adevarul in FOL Propozitii atomice Propozitii complexe Cuantificatorul universal Cuantificatorul existential Egalitatea Baze de cunostinte in FOL

Lecture 8: (Predicate) First Order Logic

Lecture 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 information

First-order logic. First-order logic. Logics in general. Outline. Syntax of FOL: Basic elements. Pros and cons of propositional logic

First-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 information

CS:4420 Artificial Intelligence

CS: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 information

First-Order Logic. Michael Rovatsos. University of Edinburgh R&N: February Informatics 2D

First-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 information

First-order logic. Chapter 8. Chapter 8 1

First-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 information

CS 380: ARTIFICIAL INTELLIGENCE FIRST ORDER LOGIC. Santiago Ontañón

CS 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 information

First order logic (FOL) Chapters 8 & 9

First 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 information

Planning and search. FOL and situation calculus. FOL and situation calculus 1

Planning and search. FOL and situation calculus. FOL and situation calculus 1 Planning and search FOL and situation calculus FOL and situation calculus 1 Outline First-order logic continued Situation calculus Logic and planning FOL and situation calculus 2 Fun with sentences Brothers

More information

First-Order Logic. CS367 ARTIFICIAL INTELLIGENCE Chapter 8

First-Order Logic. CS367 ARTIFICIAL INTELLIGENCE Chapter 8 First-Order Logic CS367 ARTIFICIAL INTELLIGENCE Chapter 8 2012 Semester 2 Patricia J Riddle Adapted from slides by Stuart Russell, http://aima.cs.berkeley.edu/instructors.html 1 Outline Why FOL? Syntax

More information

First-order logic. Chapter 8. Chapter 8 1

First-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 information

First-Order Logic. Language of FOL: Grammar. 22c:145 Artificial Intelligence. Norvig. Universal quantification. A common mistake to avoid

First-Order Logic. Language of FOL: Grammar. 22c:145 Artificial Intelligence. Norvig. Universal quantification. A common mistake to avoid Language of FOL: Grammar 22c:145 Artificial Intelligence Sentence ::= AtomicS ComplexS AtomicS ::= True False RelationSymb(Term,...) Term = Term ComplexS ::= (Sentence) Sentence Connective Sentence Sentence

More information

CS 380: ARTIFICIAL INTELLIGENCE INFERENCE IN PROPOSITIONAL LOGIC

CS 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 information

J 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

J 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 information

First-Order Logic. Propositional logic. First Order logic. First Order Logic. Logics in General. Syntax of FOL. Examples of things we can say:

First-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 information

First-Order Logic. Chapter 8

First-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 information

First-Order Logic. Chapter 8

First-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 information

First-Order Logic. Chapter 8

First-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 information

First Order Logic (FOL)

First 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 information

First Order Logic. Philipp Koehn. 8 October 2015

First Order Logic. Philipp Koehn. 8 October 2015 First Order Logic Philipp Koehn 8 October 2015 Wittgenstein: Tractatus Logico-Philosophicus 1 1. The world is everything that is the case. 2. What is the case (a fact) is the existence of states of affairs.

More information

Chapter 8 First Order Logic

Chapter 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 information

First-order logic. AI Slides (5e) c Lin

First-order logic. AI Slides (5e) c Lin First-order logic 6 AI Slides (5e) c Lin Zuoquan@PKU 2003-2018 6 1 6 First-Order Logic 2.1 First-order logic Syntax Semantics 2.2 Representation in FOL 2.3 Agents in first-order case AI Slides (5e) c Lin

More information

Logic III. Introduction to Artificial Intelligence CSE 150

Logic III. Introduction to Artificial Intelligence CSE 150 Logic III Introduction to Artificial Intelligence CSE 150 Outline Last Lecture Propositional Logic and Sound inference rules Introduction First order logic Symbols, Variables, Functions, Predicates This

More information

First-Order Logic Chap8 1. Pros and Cons of Prop. Logic

First-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 information

CS 188: Artificial Intelligence Spring 2007

CS 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 information

Outline. First-order logic. Atomic sentences. Intelligent Systems and HCI D7023E. Syntax of FOL: Basic elements. Pros and cons of propositional logic

Outline. First-order logic. Atomic sentences. Intelligent Systems and HCI D7023E. Syntax of FOL: Basic elements. Pros and cons of propositional logic Outline Intelligent Systems and HCI D7023E Lecture 8: First-order Logic [Ch.8] Paweł Pietrzak Why FOL? Syntax and semantics of FOL Using FOL Knowledge engineering in FOL Some inference in FOL 1 Pros and

More information

Knowledge Representation Logic and Inference Propositional Logic First-order logic Vumpus World

Knowledge Representation Logic and Inference Propositional Logic First-order logic Vumpus World Knowledge Representation Logic and Inference Propositional Logic First-order logic Vumpus World 1 Assume that We design an intelligent agent (travel agent, driving agent, ) What is an intelligent agent?

More information

CSC242: Intro to AI. Lecture 12. Tuesday, February 26, 13

CSC242: 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 information

CS 771 Artificial Intelligence. First order Logic

CS 771 Artificial Intelligence. First order Logic CS 771 Artificial Intelligence First order Logic Pros and cons of propositional logic Propositional logic is declarative - Knowledge and inference are separate - Inference is domain independent Propositional

More information

Nathan Sturtevant FOL

Nathan Sturtevant FOL Lecture Overview COMP 3501 / COMP 4704-4 Lecture 8 First order logic (FOL) Inference in FOL Prof. JGH 318 First Order Logic FOL is closer to natural languages that prop. logic FOL contains: Objects (Constants):

More information

Knowledge Representation using First-Order Logic (Part III)

Knowledge Representation using First-Order Logic (Part III) Knowledge Representation using First-Order Logic (Part III) This lecture: R&N Chapters 8, 9 Next lecture: Chapter 13; Chapter 14.1-14.2 (Please read lecture topic material before and after each lecture

More information

Syntax of FOL: Basic elements

Syntax of FOL: Basic elements First-order logic Chapter 7 CS 580, Jana Kosecka, Chapter 7 1 Syntax of FOL: Basic elements Constants KingJohn, 2, UCB,... Predicates Brother, >,... Functions Sqrt, Lef tlegof,... Variables x, y, a, b,...

More information

Avem 6 tipuri de simboluri in logica predicatelor:

Avem 6 tipuri de simboluri in logica predicatelor: Semantica Avem 6 tipuri de simboluri in logica predicatelor: Predicate: p, q, r,, p1, q2 etc. Constante: a, b, c,, z, a1, b4,, ion, mihai, labus etc. Variabile: x, y, z, x1, y1, z4 etc. Conective:,,,,

More information

Sisteme cu logica fuzzy

Sisteme cu logica fuzzy Sisteme cu logica fuzzy 1/15 Sisteme cu logica fuzzy Mamdani Fie un sistem cu logică fuzzy Mamdani două intrări x şi y ieşire z x y SLF Structura z 2/15 Sisteme cu logica fuzzy Mamdani Baza de reguli R

More information

Nathan Sturtevant FOL

Nathan Sturtevant FOL Lecture Overview COMP 3501 / COMP 4704-4 Lecture 8: First Order Logic First order logic (FOL) Inference in FOL Prof. JGH 318 First Order Logic FOL is closer to natural languages that prop. logic FOL contains:

More information

First Order Logic (FOL)

First 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 information

Rational Agents. Paolo Turrini. Introduction to Artificial Intelligence 2nd Part. Department of Computing, Imperial College London

Rational Agents. Paolo Turrini. Introduction to Artificial Intelligence 2nd Part. Department of Computing, Imperial College London Rational Agents Department of Computing, Imperial College London Introduction to Artificial Intelligence 2nd Part What you have seen You have seen procedures for computational problem-solving: searching

More information

(Part II) Reading: R&N Chapters 8, 9

(Part II) Reading: R&N Chapters 8, 9 Knowledge Representation using First-Order Logic (Part II) Reading: R&N Chapters 8, 9 Outline Review: KB = S is equivalent to = (KB S) So what does {} = S mean? Review: Follows, Entails, Derives Follows:

More information

First-Order Logic. Doug Downey Northwestern EECS 348 Intro to AI Based on slides by Stuart Russell

First-Order Logic. Doug Downey Northwestern EECS 348 Intro to AI Based on slides by Stuart Russell First-Order Logic Doug Downey Northwestern EECS 348 Intro to AI Based on slides by Stuart Russell Pros and Cons of Propositional Logic Declarative: pieces of syntax correspond to facts Allows partial/disjunctive/negated

More information

Logical Agents. CITS3001 Algorithms, Agents and Artificial Intelligence. 2018, Semester 2

Logical Agents. CITS3001 Algorithms, Agents and Artificial Intelligence. 2018, Semester 2 Logical Agents CITS3001 Algorithms, Agents and Artificial Intelligence Tim French School of Computer Science and Software Engineering The University of Western Australia 2018, Semester 2 Summary We motivate

More information

Reasoning. Inference. Knowledge Representation 4/6/2018. User

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 information

ITS336 Lecture 6 First-Order Logic

ITS336 Lecture 6 First-Order Logic ITS6 Lecture 6 First-Order Logic 6.1 Syntax for FOL Basic Elements of FOL Constant Symbols A constant is an specific object such as a person name Tom, a particular apple etc. Variable Symbols A countably

More information

Reading: AIMA Chapter 9 (Inference in FOL)

Reading: AIMA Chapter 9 (Inference in FOL) 10-7-2013 Review HW#4 First Order Logic (aka The Predicate Calculus) Representing knowledge in FOL Reading: AIMA Chapter 9 (Inference in FOL) Exam#1, Tuesday, October 8 th, SC166, 7:00 pm Must interpret

More information

Teorema Reziduurilor şi Bucuria Integralelor Reale Prezentare de Alexandru Negrescu

Teorema Reziduurilor şi Bucuria Integralelor Reale Prezentare de Alexandru Negrescu Teorema Reiduurilor şi Bucuria Integralelor Reale Preentare de Alexandru Negrescu Integrale cu funcţii raţionale ce depind de sint şi cost u notaţia e it, avem: cost sint i ( + ( dt d i, iar integrarea

More information

First-Order Logic. Peter Antal

First-Order Logic. Peter Antal First-Order Logic Peter Antal antal@mit.bme.hu 10/16/2015 1 Why FOL? Syntax and semantics of FOL Knowledge engineering in FOL Inference in FOL Reducing first-order inference to propositional inference

More information

Barem de notare clasa a V-a

Barem de notare clasa a V-a Barem de notare clasa a V-a Problema1. Determinați mulțimile A și B, formate din numere naturale, știind că îndeplinesc simultan condițiile: a) A B,5,6 ; b) B A 0,7 ; c) card AB 3; d) suma elementelor

More information

First Order Logic (FOL) and Inference

First Order Logic (FOL) and Inference First Order Logic (FOL) and Inference CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter

More information

Soluţii juniori., unde 1, 2

Soluţii juniori., unde 1, 2 Soluţii juniori Problema 1 Se consideră suma S x1x x3x4... x015 x016 Este posibil să avem S 016? Răspuns: Da., unde 1,,..., 016 3, 3 Termenii sumei sunt de forma 3 3 1, x x x. 3 5 6 sau Cristian Lazăr

More information

First-Order Logic and Inference

First-Order Logic and Inference First-Order Logic and Inference Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University References: 1. S. Russell and P. Norvig. Artificial Intelligence:

More information

ON THE QUATERNARY QUADRATIC DIOPHANTINE EQUATIONS (II) NICOLAE BRATU 1 ADINA CRETAN 2

ON THE QUATERNARY QUADRATIC DIOPHANTINE EQUATIONS (II) NICOLAE BRATU 1 ADINA CRETAN 2 ON THE QUATERNARY QUADRATIC DIOPHANTINE EQUATIONS (II) NICOLAE BRATU 1 ADINA CRETAN ABSTRACT This paper has been updated and completed thanks to suggestions and critics coming from Dr. Mike Hirschhorn,

More information

Date Topic Readings Due 11/18 First-order logic Ch. 9 HW 6 11/25 First-order inference, Ch. 10 HW7 (Othello) 12/2 Planning. Chs. 11 & 12 HW8.

Date Topic Readings Due 11/18 First-order logic Ch. 9 HW 6 11/25 First-order inference, Ch. 10 HW7 (Othello) 12/2 Planning. Chs. 11 & 12 HW8. Today Lecture 8 Administrivia Discuss test 1 Discuss projects First order logic CS 91.420/543 Artificial Intelligence Fall 2008 Administrivia Readings for today: Nov. 18: Chs. 8 & 9 Readings for next week:

More information

Sem. I, Ioana Leustean FMI, UB

Sem. I, Ioana Leustean FMI, UB LOGICA MATEMATICĂ ŞI COMPUTAŢIONALĂ Sem. I, 2017-2018 Ioana Leustean FMI, UB Ce este logica? logike tekhne = ştiinţa raţionamentelor logos = cuvînt, raţionament A deduction is speech (logos) in which,

More information

CSCI-495 Artificial Intelligence. Lecture 17

CSCI-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 information

VO Grundzüge der Artificial Intelligence SS Hans Tompits Institut für Informationssysteme Arbeitsbereich Wissensbasierte Systeme

VO Grundzüge der Artificial Intelligence SS Hans Tompits Institut für Informationssysteme Arbeitsbereich Wissensbasierte Systeme VO Grundzüge der Artificial Intelligence SS 2009 Hans Tompits Institut für Informationssysteme Arbeitsbereich Wissensbasierte Systeme Knowledge Representation Folien adaptiert nach Vorlagen von Stuart

More information

Formal Logic. The most widely used formal logic method is FIRST-ORDER PREDICATE LOGIC

Formal Logic. The most widely used formal logic method is FIRST-ORDER PREDICATE LOGIC Formal Logic The most widely used formal logic method is FIRST-ORDER PREDICATE LOGIC Reference: Chapter Two The predicate Calculus Luger s Book Examples included from Norvig and Russel. CS 331 Dr M M Awais

More information

Introduc)on to Ar)ficial Intelligence

Introduc)on to Ar)ficial Intelligence Introduc)on to Ar)ficial Intelligence Lecture 9 Logical reasoning CS/CNS/EE 154 Andreas Krause First order logic (FOL)! Proposi)onal logic is about simple facts! There is a breeze at loca)on [1,2]! First

More information

Logical Agents. Propositional Logic [Ch 6] Syntax, Semantics, Entailment, Derivation. Predicate Calculus Representation [Ch 7]

Logical Agents. Propositional Logic [Ch 6] Syntax, Semantics, Entailment, Derivation. Predicate Calculus Representation [Ch 7] Logical Agents Reasoning [Ch 6] Propositional Logic [Ch 6] Syntax Semantics Entailment Derivation Predicate Calculus Representation [Ch 7] Syntax Semantics Expressiveness... Situation Calculus Predicate

More information

Logic: First Order Logic (Part I)

Logic: First Order Logic (Part I) Logic: First Order 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 information

Divizibilitate în mulțimea numerelor naturale/întregi

Divizibilitate în mulțimea numerelor naturale/întregi Divizibilitate în mulțimea numerelor naturale/întregi Teorema îmărţirii cu rest în mulțimea numerelor naturale Fie a, b, b 0. Atunci există q, r astfel încât a=bq+r, cu 0 r < b. În lus, q şi r sunt unic

More information

Utilizarea limbajului SQL pentru cereri OLAP. Mihaela Muntean 2015

Utilizarea limbajului SQL pentru cereri OLAP. Mihaela Muntean 2015 Utilizarea limbajului SQL pentru cereri OLAP Mihaela Muntean 2015 Cuprins Implementarea operatiilor OLAP de baza in SQL -traditional: Rollup Slice Dice Pivotare SQL-2008 Optiunea ROLLUP Optiunea CUBE,

More information

RN, 1 C 0 h. a 3 pter Situation Calculus 1

RN, 1 C 0 h. a 3 pter Situation Calculus 1 Situation Calculus 1 RN, Chapter 10.3 Logical Agents Reasoning [Ch 6] Propositional Logic [Ch 7] Predicate Calculus Representation [Ch 8] Inference [Ch 9] Implemented Systems [Ch 10] Situation Calculus

More information

FORMULELE LUI STIRLING, WALLIS, GAUSS ŞI APLICAŢII

FORMULELE LUI STIRLING, WALLIS, GAUSS ŞI APLICAŢII DIDACTICA MATHEMATICA, Vol. 34), pp. 53 67 FORMULELE LUI STIRLING, WALLIS, GAUSS ŞI APLICAŢII Eugenia Duca, Emilia Copaciu şi Dorel I. Duca Abstract. In this paper are presented the Wallis, Stirling, Gauss

More information

Ce este logica? Aristotel (IV î.e.n.) Gottfried Wilhelm Leibniz ( ) Visul lui Leibniz. raţionament

Ce este logica? Aristotel (IV î.e.n.) Gottfried Wilhelm Leibniz ( ) Visul lui Leibniz. raţionament Ce este logica? Logică Matematică şi Computaţională Anul I, Semestrul I 2017/2018 Laurenţiu Leuştean Pagina web: http://unibuc.ro/~lleustean/ În prezentarea acestui curs sunt folosite parţial slideurile

More information

Anul I, Semestrul I 2017/2018

Anul I, Semestrul I 2017/2018 Logică Matematică şi Computaţională Anul I, Semestrul I 2017/2018 Laurenţiu Leuştean Pagina web: http://unibuc.ro/~lleustean/ În prezentarea acestui curs sunt folosite parţial slideurile Ioanei Leuştean

More information

Principles of Intelligent Systems: Situation Calculus

Principles of Intelligent Systems: Situation Calculus Principles of Intelligent Systems: Situation Calculus Lecture 11 These slides are based on Chapters 8 and 10 of Russell and Norvig s Artificial Intelligence: A modern approach (http://aima.eecs.berkeley.edu/slides-pdf/)

More information

KR: First Order Logic - Intro

KR: First Order Logic - Intro KR: First Order Logic - Intro First order logic (first order predicate calculus, predicate calculus) is a higherlevel logic than propositional logic The basic components of FOL are 1. Objects 2. Relations

More information

Logică avansată pentru informatică Master Anul I, Semestrul I

Logică avansată pentru informatică Master Anul I, Semestrul I Logică avansată pentru informatică Master Anul I, Semestrul I 2017-2018 Laurenţiu Leuştean Pagina web: http:unibuc.ro/~lleustean/ În prezentarea acestui curs sunt folosite parţial slideurile Ioanei Leuştean

More information

Logic. 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 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 information

Legi de distribuţie (principalele distribuţii de probabilitate) Tudor Drugan

Legi de distribuţie (principalele distribuţii de probabilitate) Tudor Drugan Legi de distribuţie (principalele distribuţii de probabilitate) Tudor Drugan Introducere In general distribuţiile variabilelor aleatoare definite pe o populaţie, care face obiectul unui studiu, nu se cunosc.

More information

CS 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. 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 information

ARTIFICIAL INTELLIGENCE

ARTIFICIAL INTELLIGENCE Page1 ARTIFICIAL INTELLIGENCE UNIT-II LOGICAL REASONING Logical Agents propositional logic inferences first-order logic inferences in first-order logic forward chaining- backward chaining unification resolution

More information

1.3. OPERAŢII CU NUMERE NEZECIMALE

1.3. OPERAŢII CU NUMERE NEZECIMALE 1.3. OPERAŢII CU NUMERE NEZECIMALE 1.3.1 OPERAŢII CU NUMERE BINARE A. ADUNAREA NUMERELOR BINARE Reguli de bază: 0 + 0 = 0 transport 0 0 + 1 = 1 transport 0 1 + 0 = 1 transport 0 1 + 1 = 0 transport 1 Pentru

More information

Logic. Foundations of First Order Logic. franconi. Enrico Franconi

Logic. Foundations of First Order Logic.  franconi. Enrico Franconi (1/41) Logic Foundations of First Order Logic Enrico Franconi franconi@inf.unibz.it http://www.inf.unibz.it/ franconi Faculty of Computer Science, Free University of Bozen-Bolzano (2/41) Motivation We

More information

Logică și structuri discrete. Marius Minea 25 septembrie 2017

Logică și structuri discrete. Marius Minea   25 septembrie 2017 Logică și structuri discrete Funcții Marius Minea marius@cs.upt.ro http://cs.upt.ro/~marius/curs/lsd/ 25 septembrie 2017 Ce cuprinde domeniul informaticii? Imagine: https://hkn.eecs.berkeley.edu/courseguides

More information

Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14

Logical 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 information

INF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim

INF5390 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 information

Lecture Overview [ ] Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 6. Motivation. Logical Agents

Lecture Overview [ ] Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 6. Motivation. Logical Agents Lecture Overview [7.1-7.4] COMP 3501 / COMP 4704-4 Lecture 6 Prof. JGH 318 Logical Agents Wumpus World Propositional Logic Inference Theorem Proving via model checking Motivation Existing techniques help

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence First-Order Logic Marc Toussaint University of Stuttgart Winter 2015/16 (slides based on Stuart Russell s AI course) First-order logic (FOL) is exactly what is sometimes been thought

More information

Inteligenta Artificiala

Inteligenta Artificiala Inteligenta Artificiala Universitatea Politehnica Bucuresti Anul universitar 2010-2011 Adina Magda Florea http://turing.cs.pub.ro/ia_10 si curs.cs.pub.ro 1 Curs nr. 4 Cautare cu actiuni nedeterministe

More information

UNITATEA DE ÎNVĂȚARE 3 Analiza algoritmilor

UNITATEA DE ÎNVĂȚARE 3 Analiza algoritmilor UNITATEA DE ÎNVĂȚARE 3 Analiza algoritmilor Obiective urmărite: La sfârşitul parcurgerii acestei UI, studenţii vor 1.1 cunoaște conceptul de eficienta a unui algoritm vor cunoaste si inţelege modalitatile

More information

luca frn Guardip$AroEsf

luca frn Guardip$AroEsf Semida David e Ra luca"'' *q F.E, fngerut P&xrfe js:,t,a Ro luca frn Guardip$AroEsf ',i :: i *-t *''i 1 :a'-}.."1-i i: ] 1,..,j i ':i "-.\\ : 1: t'a.,"-"a:\ 1.. ' \o\*1;j: : '. "=**..t i-=.-- i.::r:: ".1*'..-.-..'

More information

Subiecte geometrie licenta matematica-informatica 4 ani

Subiecte geometrie licenta matematica-informatica 4 ani Class: Date: Subiecte geometrie licenta matematica-informatica 4 ani Multiple Choice Identify the letter of the choice that best completes the statement or answers the question. 1. Complementara unui subspatiu

More information

Gradul de comutativitate al grupurilor finite 1

Gradul de comutativitate al grupurilor finite 1 Gradul de comutativitate al grupurilor finite Marius TĂRNĂUCEANU Abstract The commutativity degree of a group is one of the most important probabilistic aspects of finite group theory In this survey we

More information

Outline. Why FOL? Syntax and semantics of FOL Using FOL. Knowledge engineering in FOL

Outline. Why FOL? Syntax and semantics of FOL Using FOL. Knowledge engineering in FOL First-Order Logic Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL Outline Knowledge-based agents Wumpus world Logic in general - models and entailment

More information

Logical Agents. Course material: Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 7

Logical Agents. Course material: Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 7 Logical Agents CE417: Introduction to Artificial Intelligence Sharif University of Technology Soleymani In which we design agents that can form representations of a complex world, use a process of inference

More information

Logic. Stephen G. Ware CSCI 4525 / 5525

Logic. Stephen G. Ware CSCI 4525 / 5525 Logic Stephen G. Ware CSCI 4525 / 5525 Logic How can we represent knowledge about the world in a general, reusable way? How can we use existing knowledge to gain new knowledge? Problem Solving Approaches

More information

Despre AGC cuasigrupuri V. Izbaș

Despre AGC cuasigrupuri V. Izbaș Despre AGC cuasigrupuri V Izbaș 1 Introducere Se ştie că grupurile au apărut în matematică ca grupuri de automorfisme Rolul automorfismelor este remarcabil şi bine cunoscut La studierea diverselor structuri

More information

Teoria Modelelor Master Anul I, Semestrul II 2016

Teoria Modelelor Master Anul I, Semestrul II 2016 Ce este logica? Teoria Modelelor Master Anul I, Semestrul II 2016 Laurenţiu Leuştean Pagina web: http:unibuc.ro/~lleustean/ În această prezentare sunt folosite parţial slideurile Ioanei Leuştean din Semestrul

More information

Lecture 4. Predicate logic

Lecture 4. Predicate logic Lecture 4 Predicate logic Instructor: Kangil Kim (CSE) E-mail: kikim01@konkuk.ac.kr Tel. : 02-450-3493 Room : New Milenium Bldg. 1103 Lab : New Engineering Bldg. 1202 All slides are based on CS441 Discrete

More information

Inference in first-order logic

Inference in first-order logic CS 270 Foundations of AI Lecture 4 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square First-order logic FOL More epressive than propositional logic Advantages: Represents

More information

Outline First-order logic. First-order Logic. Introduction. Recall: 4-Queens problem. First-order Logic. First-order Logic Syntax.

Outline First-order logic. First-order Logic. Introduction. Recall: 4-Queens problem. First-order Logic. First-order Logic Syntax. First-order Logic CS 486/686 Sept 25, 2008 University of Waterloo Outline First-order logic Syntax and semantics Inference Propositionalization with ground inference Lifted resolution 1 2 Introduction

More information

SIMULAREA DECIZIEI FINANCIARE

SIMULAREA DECIZIEI FINANCIARE SIMULAREA DECIZIEI FINANCIARE Conf. univ. dr. Nicolae BÂRSAN-PIPU T5.1 TEMA 5 DISTRIBUŢII DISCRETE T5. Cuprins T5.3 5.1 Variabile aleatoare discrete 5. Distribuţia de probabilitate a unei variabile aleatoare

More information

Lecture 7: Logical Agents and Propositional Logic

Lecture 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 information

PROBLEME DIVERSE lecţie susţinută la lotul de 13 de Andrei ECKSTEIN Bucureşti, 25 mai 2015

PROBLEME DIVERSE lecţie susţinută la lotul de 13 de Andrei ECKSTEIN Bucureşti, 25 mai 2015 PROBLEME DIVERSE lecţie susţinută la lotul de 13 de Andrei ECKSTEIN Bucureşti, 5 mai 015 I. SUBSTITUŢIA TAIWANEZĂ 1. Fie a, b, c > 0 astfel încât a bc, b ca şi c ab. Determinaţi valoarea maximă a expresiei

More information

PRELUCRARI PE IMAGINI BINARE (ALB/NEGRU)

PRELUCRARI PE IMAGINI BINARE (ALB/NEGRU) PRELUCRRI PE IMGINI BINRE (LB/NEGRU) Imagine binara? 2 nuante: alb ( 0 ) pixelii de fond ( I(x,y)= 255 pt. imagini indexate cu 8 biti/pixel ) negru ( 1 ) pixelii apartinand obiectelor ( I(x,y)= 0 pt. imagini

More information

O V E R V I E W. This study suggests grouping of numbers that do not divide the number

O V E R V I E W. This study suggests grouping of numbers that do not divide the number MSCN(2010) : 11A99 Author : Barar Stelian Liviu Adress : Israel e-mail : stelibarar@yahoo.com O V E R V I E W This study suggests grouping of numbers that do not divide the number 3 and/or 5 in eight collumns.

More information

Arhitectura sistemelor de calcul

Arhitectura sistemelor de calcul Arhitectura sistemelor de calcul - Prelegerea 1 - Evoluția sistemelor de calcul Ruxandra F. Olimid Facultatea de Matematică şi Informatică Universitatea din Bucureşti Cuprins 1. Istoricul evolutiei calculatoarelor

More information

Logical Agents. Outline

Logical 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 information

Programarea Dinamica. (si alte chestii adiacente) Andrei Olariu

Programarea Dinamica. (si alte chestii adiacente) Andrei Olariu Programarea Dinamica (si alte chestii adiacente) Andrei Olariu andrei@olariu.org Despre mine - Absolvent FMI UniBuc - Doctorand in prelucrarea limbajului natural, in special in mediul online (Twitter)

More information

Knowledge Based Systems: Logic and Deduction

Knowledge Based Systems: Logic and Deduction Knowledge Based Systems: Logic and Deduction Course: CS40002 Instructor: Dr. Pallab Dasgupta Department of Computer Science & Engineering Indian Institute of Technology Kharagpur Knowledge and Reasoning

More information