Friday, April 17, 2015 1 PTR: A Probabilistic Transaction Logic Julian Fogel A logic for reasoning about action under uncertainty. A mathematically sound.

Slides:



Advertisements
Similar presentations
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Advertisements

Logic.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 3 Syntax of Propositional Logic Parse trees revised Construction of parse trees Semantics of propositional.
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
CPSC 322, Lecture 20Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Computer Science cpsc322, Lecture 20 (Textbook.
1 CA 208 Logic Ex3 Define logical entailment  in terms of material implication  Define logical consequence |= (here the semantic consequence relation.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
Knoweldge Representation & Reasoning
Probabilistic Verification of Discrete Event Systems Håkan L. S. Younes.
The Language of Propositional Logic The Syntax and Semantics of PL.
Adapted from Discrete Math
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProbability.
Artificial Intelligence: Definition “... the branch of computer science that is concerned with the automation of intelligent behavior.” (Luger, 2009) “The.
Knowledge Interchange Format Michael Gruninger National Institute of Standards and Technology
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
110/19/2015CS360 AI & Robotics AI Application Areas  Neural Networks and Genetic Algorithms  These model the structure of neurons in the brain  Humans.
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
Copyright © Curt Hill Mathematical Logic An Introduction.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Simulating Probabilistic Behaviour
Thinking Mathematically
CS6133 Software Specification and Verification
1 Propositional Logic Introduction. 2 What is propositional logic? Propositional Logic is concerned with propositions and their interrelationships. 
Review of Propositional Logic Syntax
LOGIC. Logic in general  Logics are formal languages for representing information such that conclusions can be drawn  Syntax defines the sentences in.
Section 1.1 Propositions and Logical Operations. Introduction Remember that discrete is –the study of decision making in non-continuous systems. That.
Logic: Proof procedures, soundness and correctness CPSC 322 – Logic 2 Textbook §5.2 March 7, 2011.
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
Artificial Intelligence Logical Agents Chapter 7.
 Conjunctive Normal Form: A logic form must satisfy one of the following conditions 1) It must be a single variable (A) 2) It must be the negation of.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Presented by: Tutorial Services The Math Center
Computer Science cpsc322, Lecture 20
Propositional Calculus: Boolean Functions and Expressions
Lecture 1 – Formal Logic.
Knowledge Representation and Reasoning
Thinking Mathematically
COMP 1380 Discrete Structures I Thompson Rivers University
CMSC Discrete Structures
Propositional Calculus: Boolean Functions and Expressions
Information Technology Department
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
Probability Trees By Anthony Stones.
CS 270 Math Foundations of CS
(1.4) An Introduction to Logic
Back to “Serious” Topics…
PROPOSITIONAL LOGIC - SYNTAX-
CSNB234 ARTIFICIAL INTELLIGENCE
Computer Science cpsc322, Lecture 20
Bottom Up: Soundness and Completeness
COMP 1380 Discrete Structures I Thompson Rivers University
ece 720 intelligent web: ontology and beyond
Carlos Varela Rennselaer Polytechnic Institute August 30, 2007
Logical Agents Prof. Dr. Widodo Budiharto 2018
basic probability and bayes' rule
Bottom Up: Soundness and Completeness
Presentation transcript:

Friday, April 17, PTR: A Probabilistic Transaction Logic Julian Fogel A logic for reasoning about action under uncertainty. A mathematically sound foundation for building software that requires such reasoning

Friday, April 17, Applications  Uncertainty in workflow  Unreliable circuits  AI planning  Game theory

Friday, April 17, Uncertainty in Workflow

Friday, April 17, Unreliable Circuits

Friday, April 17, AI Planning

Friday, April 17, Game Theory

Friday, April 17, Logic = Syntax + Semantics + Reasoning  Syntax: a formal language – just meaningless symbols  Semantics: giving meaning to symbols – truth in a structure ⊧  Reasoning: what else is true given what is known – logical implication ⇒, entailment ⊦

Friday, April 17, Semantics  Possible worlds, initial state  Actions and transactions, paths  Path distribution

Friday, April 17, Possible Worlds Example One propositional variable H, which is true when the coin is heads. Two possible worlds: H and H. H: the coin is not heads in this state (it’s tails) H: the coin is heads in this state HH Coin is hidden, and even chance of it being heads or tails: P W assigns probability 0.5 to each state. P W (H) = 0.5 and P W (H) = 0.5. H H 0.5

Friday, April 17, Possible Worlds Definitions  Propositional symbols: Each symbol can be either True or False  State: a particular assignment of True or False to the propositional symbols  P W : A probability distribution over states [Fagin and Halpern 90]

Friday, April 17, Path Example One atomic action symbol F: flip a fair coin H H H HHH HH 0.5 P A ( F,H) One transaction symbol F2: flip a fair coin twice H HH H 0.25 P T ( F2,H) H H H H 0.25 H HH H H HH H P T ( F2,H) H H H H 0.25 H HH H

Friday, April 17, Path Definitions  Atomic action symbols: trigger transitions between two states  Transaction symbols: allows intermediate states [Bonner and Kifer 94]  Path: sequence of states (W 1,…,W n )  P A and P T : probability distributions over paths

Friday, April 17, Path Distribution Example H HH H H H H H H HH H H HH H H H H H H HH H Given P w, P A, and P T as in the previous examples, the path distribution P shown here makes the transaction formula F2 true.

Friday, April 17, Path Distribution: The Heart of PTR  Given the initial probabilistic knowledge about the world encoded in P w, P A, and P T, a PTR formula is true or false (succeeds or fails) on a path distribution P.  If a formula succeeds on a path distribution, then it executes along one of the paths that have non-zero probability.

Friday, April 17, Formulas  Probabilistic state formula: Pr (Q)  c where Q is an ordinary propositional formula  Transaction Formula: –Atomic action or transaction symbol –Serial conjunction  –Disjunction  –Negation  –Pre/postcondition [  ]-  -[  ] where  and  are probabilistic state formulas

Friday, April 17, Pre/postcondition Example H HH H H H H H H HH H H HH H H H H H H HH H Some Successful Transactions F2 [ Pr (H)=0.25]- F2 -[ Pr (H)=0.5] [ Pr (  H)  0.7]- F2 F2 -[ Pr (  H  H)  1.0] Some Failed Transactions [ Pr (H)=0.25]- F2 -[ Pr (H)=0.55] [ Pr (  H)  0.8]- F2 [ Pr (  (H   H))>0]- F2 F2 -[ Pr (  (H   H))<0]

Friday, April 17, Pre/postcondition  Precondition: constrains the distribution of the initial state of a transaction, describes what must be known before  can execute  Postcondition: constrains the distribution of the final state of a transaction, describes something known to be true after the transaction  executes [  ]-  -[  ]

Friday, April 17, Serial Conjunction Example H HH H H H H H H HH H H HH H H H H H H HH H H H H H H H H H Assume that P W ( H ) = 1. The path distribution P to the left makes transaction formula (F2  F) true

Friday, April 17, Serial Conjunction  First execute  followed by   Both conjuncts need to succeed  Probabilities along paths are combined like a cross-product, then normalized 

Friday, April 17, Disjunction  Execute one of  or  nondeterministically  Succeeds if either disjunct succeeds  Useful in defining other connectives such as conditional and biconditional  Not parallel execution 

Friday, April 17, Negation  Succeeds on any path distribution on which  fails  Mainly useful in defining other connectives, or in conjunction with them 

Friday, April 17, A Small Example A B C Actions: OA, OB, MC Propositions: a, b, mc Transaction: MIX K={MIX  OA  (OB  MC)} Query: MIX-[Pr( mc )  0.8 ]

Friday, April 17, P A ( MC ) to from mab mab mab mab mab

Friday, April 17, P A ( OA ), P A ( OB ), P W to from ma ma ma P W (MAB) = 1

Friday, April 17, P T ( MIX ) path P T ( MIX ) description mab mab success mab mab mixing fails mab mab valve A fails mab mab valve B fails mab mab both valves fail 0.989,, 0.85, 0.989,, 0.15, 0.989, 0.011, 1,, 0.989, 1, 0.011,, 1, We can verify that for any path distribution P, S and P make MIX  OA  (OB  MC) true, and that if P is set to P T (MIX) then S and P make MIX-[Pr( mc )  0.8 ] true.

Friday, April 17, Proposed Directions  Adding observations to the logic  Proof theory  Allowing concurrent transactions  PTR logic programming  Investigating applications  Comparison with other probabilistic logics