Chapter 2: Analysis and Verification of Non-Real-Time Systems

Slides:



Advertisements
Similar presentations
Resolution Proof System for First Order Logic
Advertisements

Biointelligence Lab School of Computer Sci. & Eng.
1 A formula in predicate logic An atom is a formula. If F is a formula then (~F) is a formula. If F and G are Formulae then (F /\ G), (F \/ G), (F → G),
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Standard Logical Equivalences
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Artificial Intelligence
First Order Logic Resolution
Models and Propositional Logic In propositional logic, a model in general simply fixes the truth value – true or false – for every proposition symbol.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Mar, 4, 2015 Slide credit: some slides adapted from Stuart.
Predicate Calculus Russell and Norvig: Chapter 8,9.
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
Finite Automata and Non Determinism
1 Introduction to Computability Theory Lecture2: Non Deterministic Finite Automata (cont.) Prof. Amos Israeli.
Inference and Resolution for Problem Solving
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Regular Model Checking Ahmed Bouajjani,Benget Jonsson, Marcus Nillson and Tayssir Touili Moran Ben Tulila
Advanced Topics in FOL Chapter 18 Language, Proof and Logic.
1 Unit 1: Automata Theory and Formal Languages Readings 1, 2.2, 2.3.
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
1 Chapter 8 Inference and Resolution for Problem Solving.
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
First Order Predicate Logic
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CSE S. Tanimoto Horn Clauses and Unification 1 Horn Clauses and Unification Propositional Logic Clauses Resolution Predicate Logic Horn Clauses.
Unification Algorithm Input: a finite set Σ of simple expressions Output: a mgu for Σ (if Σ is unifiable) 1. Set k = 0 and  0 = . 2. If Σ  k is a singleton,
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Resolution Strategies One common strategy for applying resolution is called level saturation. Here you try to resolve every pair of clauses from the original.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Automated reasoning with propositional and predicate logics Spring 2007, Juris Vīksna.
第 1 6 章 谓词演算中的归结. 2 Outline Unification Predicate-Calculus Resolution Completeness and Soundness Converting Arbitrary wffs to Clause Form Using Resolution.
CPSC 422, Lecture 21Slide 1 Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 21 Oct, 30, 2015 Slide credit: some slides adapted from Stuart.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
1 First order theories (Chapter 1, Sections 1.4 – 1.5) From the slides for the book “Decision procedures” by D.Kroening and O.Strichman.
The decidability of Presburger Arithmetic By Guillermo Guillen 04/13/05 Dr. Smith COT 6421 FIU Spring 2005.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View Basic Concepts and Background.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
CIS Automata and Formal Languages – Pei Wang
Introduction to Logic for Artificial Intelligence Lecture 2
Knowledge Representation and Reasoning
Chapter 3 The Logic of Quantified Statements
Non Deterministic Automata
The Propositional Calculus
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
REGULAR LANGUAGES AND REGULAR GRAMMARS
CSE322 The Chomsky Hierarchy
Chapter 1: Introduction to Real-Time Systems
Generating Optimal Linear Temporal Logic Monitors by Coinduction
Nondeterministic Finite Automata
Non Deterministic Automata
Mathematics for Computer Science MIT 6.042J/18.062J
Horn Clauses and Unification
Back to “Serious” Topics…
MA/CSSE 474 More Math Review Theory of Computation
Finite-Trace Linear Temporal Logic: Coinductive Completeness
4b Lexical analysis Finite Automata
Chapter 7. Propositional and Predicate Logic
Knowledge Representation I (Propositional Logic)
Chapter 1 Regular Language
RESOLUTION.
Resolution in predicate Logic
Resolution Proof System for First Order Logic
Representations & Reasoning Systems (RRS) (2.2)
The Chomsky Hierarchy Costas Busch - LSU.
Presentation transcript:

Chapter 2: Analysis and Verification of Non-Real-Time Systems Albert M. K. Cheng

Specification, Analysis, and Verification of Untimed Systems Many approaches for proving correctness are based on symbolic logic and/or languages and automata Performance is often studied via mathematical modeling, simulation, and runtime measurements Analysis and verification techniques for real-time systems are often based on or extensions of their untimed counterparts

Symbolic Logic Propositional logic (zero-order logic): write declarative sentences called proposition that can be either true (T) or false (F). Example use: specifying and verifying digital logic circuits Predicate logic (first-order logic): allows the use of quantifiers to indicate for which values the specified sentence is true. Example use: specifying and verifying computer programs

Propositional Logic Example: P “sensor detects intruder” Q “alarm sounds” R “police is alerted” We can state P -> Q and Q -> R We can show that P -> R

Resolution Principle for Propositional Logic For any two clauses C_1 and C_2, if there is a literal L_1 in C_1 and there is a literal L_2 in C_2 such that “L_1 and L_2” is false, then the resolvent of C_1 and C_2 is the disjunction of the remaining clauses in C_1 and C_2 after removing L_1 and L_2 from C_1 and C_2, respectively.

Resolution Principle - Example P or Q ~Q or R or ~S resolvent is P or R or ~S

Verification using Automata Given: Implementation automaton A_I Specification automaton A_S Verify: A_I satisfies A_S by showing that the language accepted by A_I is a subset of the language accepted by A_S, that is, L(A_I) is subset of L(A_S)

Predicate Logic Function, terms, predicates Atoms, bound and free variables Interpretation Closed formula Satisfiable formula Valid formula Prenex normal form Skolem standard form

Proving Unsatisfiability of a Clause Set using the Resolution Procedure Substitution, variant Unification, unifier Resolvent Resolution theorem

Languages and their Representations Regular expressions Deterministic finite automaton (DFA) Nondeterministic finite automaton (NFA)

Example 1: Untimed automaton representing climate control unit cold turn_on_ac turn_on_heater hot S_0 S_5 S_2 turn_off_heater comfort comfort turn_off_ac S_6 S_3

Untimed Process Pair (E,S), where E is the event set and S is the set of possible traces Example: Traffic light event set = {green, yellow, red} trace = {green}{yellow}{red}{green}{yellow} {red}…

Untimed Trace Linear sequence of observable events of a process: p bar = p_1 p_2 p_3 … infinite word over nonempty subsets of event set