Introduction to Models and Properties

Similar documents
Dataflow Analysis and Abstract Interpretation

Five Whys How To Do It Better

Admin. MDP Search Trees. Optimal Quantities. Reinforcement Learning

The Law of Total Probability, Bayes Rule, and Random Variables (Oh My!)

NUMBERS, MATHEMATICS AND EQUATIONS

Chapter Summary. Mathematical Induction Strong Induction Recursive Definitions Structural Induction Recursive Algorithms

CHAPTER 24: INFERENCE IN REGRESSION. Chapter 24: Make inferences about the population from which the sample data came.

SPH3U1 Lesson 06 Kinematics

Dead-beat controller design

CHAPTER 3 INEQUALITIES. Copyright -The Institute of Chartered Accountants of India

CS1150 Principles of Computer Science Loops

Trigonometric Ratios Unit 5 Tentative TEST date

Finite Automata. Human-aware Robo.cs. 2017/08/22 Chapter 1.1 in Sipser

Turing Machines. Human-aware Robotics. 2017/10/17 & 19 Chapter 3.2 & 3.3 in Sipser Ø Announcement:

Lesson Plan. Recode: They will do a graphic organizer to sequence the steps of scientific method.

A Transition to Advanced Mathematics. Mathematics and Computer Sciences Department. o Work Experience, General. o Open Entry/Exit

We can see from the graph above that the intersection is, i.e., [ ).

[COLLEGE ALGEBRA EXAM I REVIEW TOPICS] ( u s e t h i s t o m a k e s u r e y o u a r e r e a d y )

Distributions, spatial statistics and a Bayesian perspective

Revisiting the Socrates Example

Homology groups of disks with holes

Purpose: Use this reference guide to effectively communicate the new process customers will use for creating a TWC ID. Mobile Manager Call History

AIP Logic Chapter 4 Notes

Floating Point Method for Solving Transportation. Problems with Additional Constraints

Differentiation Applications 1: Related Rates

Engineering Decision Methods

Assessment Primer: Writing Instructional Objectives

Your appetizing introduction should consist of three important ingredients:

A new Type of Fuzzy Functions in Fuzzy Topological Spaces

MAKING DOUGHNUTS OF COHEN REALS

Computational modeling techniques

ENG2410 Digital Design Sequential Circuits: Part A

Section 5.8 Notes Page Exponential Growth and Decay Models; Newton s Law

Keysight Technologies Understanding the Kramers-Kronig Relation Using A Pictorial Proof

Department: MATHEMATICS

Design and Simulation of Dc-Dc Voltage Converters Using Matlab/Simulink

FEM for engineering applications (SE1025), 6 hp, Fall 2011

Admissibility Conditions and Asymptotic Behavior of Strongly Regular Graphs

CS 477/677 Analysis of Algorithms Fall 2007 Dr. George Bebis Course Project Due Date: 11/29/2007

Thermodynamics Partial Outline of Topics

Application Of Mealy Machine And Recurrence Relations In Cryptography

Revision: August 19, E Main Suite D Pullman, WA (509) Voice and Fax

Lab 1 The Scientific Method

Fall 2013 Physics 172 Recitation 3 Momentum and Springs

Building Consensus The Art of Getting to Yes

Tableaux.dfw: Semantic Tableaux for Propositional Classical Logic with Derive November, 2009

NUROP CONGRESS PAPER CHINESE PINYIN TO CHINESE CHARACTER CONVERSION

1996 Engineering Systems Design and Analysis Conference, Montpellier, France, July 1-4, 1996, Vol. 7, pp

Trigonometric Functions. Concept Category 3

Using Unification For Opacity Properties

Paragraph 1: Introduction

Building research leadership consortia for Quantum Technology Research Hubs. Call type: Expression of Interest

LCA14-206: Scheduler tooling and benchmarking. Tue-4-Mar, 11:15am, Zoran Markovic, Vincent Guittot

1. What is the difference between complementary and supplementary angles?

ENG2410 Digital Design Sequential Circuits: Part B

x 1 Outline IAML: Logistic Regression Decision Boundaries Example Data

Computational modeling techniques

Professional Development. Implementing the NGSS: High School Physics

Compressibility Effects

Weathering. Title: Chemical and Mechanical Weathering. Grade Level: Subject/Content: Earth and Space Science

Who is the Holy Spirit?

This section is primarily focused on tools to aid us in finding roots/zeros/ -intercepts of polynomials. Essentially, our focus turns to solving.

Credits: 4 Lecture Hours: 4 Lab/Studio Hours: 0

If (IV) is (increased, decreased, changed), then (DV) will (increase, decrease, change) because (reason based on prior research).

City of Angels School Independent Study Los Angeles Unified School District

5 th Grade Goal Sheet

Churn Prediction using Dynamic RFM-Augmented node2vec

End-of-Year AP Calculus Projects

PHIL 3101: Advanced Logic (3 credits)

6.3: Volumes by Cylindrical Shells

Lab #3: Pendulum Period and Proportionalities

Lead/Lag Compensator Frequency Domain Properties and Design Methods

History the Hood Way. Amy Shell-Gellasch Betty Mayfield Hood College. MD-DC-VA Section October 27, 2012

Name: Period: Date: PERIODIC TABLE NOTES ADVANCED CHEMISTRY

5 th Grade Goal Sheet

Instructional Plan. Representational/Drawing Level

A Quick Overview of the. Framework for K 12 Science Education

Last Updated: Oct 14, 2017

Name: Period: Date: PERIODIC TABLE NOTES HONORS CHEMISTRY

**DO NOT ONLY RELY ON THIS STUDY GUIDE!!!**

Thermodynamics and Equilibrium

EASTERN ARIZONA COLLEGE Introduction to Statistics

Interdisciplinary Physics Example Cognate Plans

Humanities and Social Sciences Division. o Work Experience, General. o Open Entry/Exit. Distance (Hybrid Online) for online supported courses

CESAR Science Case The differential rotation of the Sun and its Chromosphere. Introduction. Material that is necessary during the laboratory

ENSC Discrete Time Systems. Project Outline. Semester

WRITING THE REPORT. Organizing the report. Title Page. Table of Contents

EASTERN ARIZONA COLLEGE Precalculus Trigonometry

NEBB-ASHRAE Technical E-Learning Courses

initially lcated away frm the data set never win the cmpetitin, resulting in a nnptimal nal cdebk, [2] [3] [4] and [5]. Khnen's Self Organizing Featur

The standards are taught in the following sequence.

SUMMER REV: Half-Life DUE DATE: JULY 2 nd

An Introduction to Complex Numbers - A Complex Solution to a Simple Problem ( If i didn t exist, it would be necessary invent me.

Please Stop Laughing at Me and Pay it Forward Final Writing Assignment

COMP 551 Applied Machine Learning Lecture 11: Support Vector Machines

Modelling of Clock Behaviour. Don Percival. Applied Physics Laboratory University of Washington Seattle, Washington, USA

AN INTERMITTENTLY USED SYSTEM WITH PREVENTIVE MAINTENANCE

8 th Grade Math: Pre-Algebra

PSU GISPOPSCI June 2011 Ordinary Least Squares & Spatial Linear Regression in GeoDa

Lecture 02 CSE 40547/60547 Computing at the Nanoscale

Transcription:

Intrductin t Mdels and Prperties Cmputer Science and Artificial Intelligence Labratry MIT Armand Slar-Lezama Nv 23, 2015 Nvember 23, 2015 1

Recap Prperties Prperties f variables Prperties at prgram pints Prperties at prgram pints Prperties f executin traces Flexible N Yes N Yes Push-buttn Yes N Yes Yes 2

Mdel Checking Tday Hardware Mdel Checking - part f the standard tlkit fr hardware design Intel has used it fr prductin chips since Pentium 4 Fr the Intel Cre i7, mst pre-silicn validatin was dne thrugh frmal methds (i.e. Mdel Checking + Therem Prving) - many cmmercial prducts IBM RuleBase, Synpsys Magellan, Sftware Mdel Checking - Static driver verifier nw a cmmercial Micrsft prduct - Java PathFinder used t verify cde fr mars rver This desn t mean Mdel Checking is a slved prblem - Far frm it 3

Mdel Checking Genesis The paper that started it all - Clarke and Emersn, Design and Synthesis f Synchrnizatin Skeletns using branching time tempral lgic Prf Cnstructin is Unnecessary in the case f finite state cncurrent systems and can be replaced by a mdel-theretic apprach which will mechanically determine if the system meets a specificatin expressed in prpsitinal tempral lgic 4

Intellectual Rts Tw imprtant develpments preceded this paper - Verificatin thrugh exhaustive explratin f finite state mdels G. V. Bchmann and J. Gecsei, A unified methd fr the specificatin and verificatin f prtcls, Prc. IFIP Cngress 1977 - Develpment f Linear Tempral Lgic and its applicatin t specifying system prperties A. Pnueli, The tempral semantics f cncurrent prgrams. 1977 5

Mdel Checking The mdel checking apprach (as characterized by Emersn) - Start with a prgram that defines a finite state graph M - Search M fr patterns that tell yu whether a specificatin f hlds - Pattern specificatin is flexible - The methd is efficient in the sizes f M and hpefully als f - The methd is algrithmic 6

S what exactly is a mdel? Remember ur friend? - What des this mean? x y x The statement abve can be established thrugh lgical deductin Aximatic semantics and type thery are deductive The prgram, tgether with the desired prperties make a therem We use deductin t prve the therem - What abut this; is it true? x + y == 5 We can nt really establish this thrugh deductin We can say whether it s true r false under a given mdel [x=3, y=2] x + y == 5 Yu have seen this symbl t - In peratinal semantics, the variable assignments were the mdel - The prgram behavir was the therem we were trying t prve under a given mdel 7

Basic Ntins f Mdel Thery Cnsider the fllwing sentence: - S := The class tday was awesme Is this sentence true r false? - that depends What class is the class? What day is tday? We can give this sentence an Interpretatin - I := The class is 6.820, Tday is Tuesday Nv 22 When an interpretatin I makes S true we say that - I satisfies S - I is a mdel f S - 8

The mdel checking prblem We are interested in deciding whether fr the special case where - I is a Kripke structure - S is a tempral lgic frmula Tday yu get t learn what each f these things are But the high level idea is: - Unlike aximatic semantics, where the prgram was part f the therem, - The prgram will nw be the mdel Well, nt the prgram directly, but rather a kripke structure representing the prgram 9

Kripke Structures as Mdels Kripke structure is a FSM with labels Kripke structure = (S, S0, R, L) - S = finite set f states - S0 S = set f initial states - R S x S = transitin relatin - L :S 2 AP = labels each state with a set f atmic prpsitins 10

Micrwave Example - S = {s 1, s 2, s 3, s 4 } - S0={s 1 } - R = { (s 1,s 2 ), (s 2,s 1 ), (s 1,s 4 ), (s 4,s 2 ), (s 2,s 3 ), (s 3,s 2 ), (s 3,s 3 )} s 4 start s 1 clse dr clse dr -clse -start -cking pen dr s 2 clse -start -cking - L(s 1 )={-clse, -start, -cking} - L(s 2 )={clse, -start, -cking} -clse start -cking start finish - L(s 3 )={clse, start, cking} - L(s 4 )={-clse, start, -cking} Can the micrwave ck with the dr pen? cking s 3 clse start cking 11

Kripke structures describe cmputatins A Kripke structure can describe an infinite prcess - We can interpret it as an infinite tree s1 s 1 -clse -start -cking s4 s2 start pen dr s2 s1 s3 clse dr s1 s3 s4 s2 s3 s2 s 4 clse dr s 2 clse -start -cking -clse start -cking start finish s4 s2 s3 s2 s2 s1 s3 - We need a language t describe prperties f paths dwn the cmputatin tree cking s 3 clse start cking 12

Linear Tempral Lgic Let π be a sequence f states in a path dwn the tree - π := s 0, s 1, s 2, - Let π i be a subsequence starting at i We are ging t define a lgic t describe prperties ver paths 13

Prperties ver states State Frmulas - Can be established as true r false n a given state - If p ϵ {AP} then p is a state frmula - if f and g are state frmulas, s are (f and g), (nt f), (f r g) - Ex. (nt clsed and cking) 14

Fr paths Path frmulas - a state frmula p is als a path frmula p(π i ) := p(s i ) - blean peratins n path frmulas are path frmulas f and g(π i ) := f(π i ) and g(π i ) - path quantifiers G f (π i ) := glbally f (π i ) = frall k>= i f (π k ) (may abbreviate as ) F f (π i ) := eventually f (π i ) = exists k>= i f (π k ) (may abbreviate as ) X f (π i ) := next f (π i ) = f (π i+1 ) (may abbreviate as ) f U g (π i ) := f until g = exists k >= i s.t. g(π k ) and f(π j ) fr i<=j<k Given a frumula f and a path π, - if f(π) is true, we say that 15

Examples If yu submit yur hmewrk (submit) yu eventually get a grade back (grade) - G (submit => F grade) Yu shuld get yur grade befre yu submit the next hmewrk - G (submit X submit U grade ) What s wrng with G submit submit U grade? If assignment i was submitted befre drp date, yu shuld get yur grade befre drp date - G submit i F drpdate ( G grade i F drpdate ) - and G (submit => F grade) 16

MIT OpenCurseWare http://cw.mit.edu 6.820 Fundamentals f Prgram Analysis Fall 2015 Fr infrmatin abut citing these materials r ur Terms f Use, visit: http://cw.mit.edu/terms.