A Hybrid, Dynamic Logic for Hybrid-Dynamic Information Flow

Size: px
Start display at page:

Download "A Hybrid, Dynamic Logic for Hybrid-Dynamic Information Flow"

Transcription

1 A Hybrid, Dynamic Logic for Hybrid-Dynamic Information Flow Brandon Bohrer and André Platzer Logical Systems Lab Computer Science Department Carnegie Mellon University LICS 18 1 / 21

2 Outline: Hybrid {Dynamics, Logic, Power} Hybrid Logic Logic dhl Hybrid Dynamics HDIF Information Flow Smart Grid Hybrid Model Hybrid Power We 1) develop dhl, a hybrid logic for hybrid-dynamical systems and 2) apply dhl to verify hybrid dynamic information flow HDIF for 3) security of a hybrid power grid. 2 / 21

3 CPS are Safety-Critical and Ubiquitous Grid Transport Medical How can we design cyber-physical systems people can bet their lives on? Jeanette Wing 3 / 21

4 Secure Information Flow is Safety Critical Grid Transport Medical Overloads Position Spoofing Hijacking 3 / 21

5 Results Only as Good as the Model Related work: Verified discrete event model of FREEDM grid Did not model physical dynamics 4 / 21

6 Results Only as Good as the Model Related work: Verified discrete event model of FREEDM grid Did not model physical dynamics Event model can t catch vulnerabilities in dynamics! 4 / 21

7 Expressive Hybrid Models Provide Expressive Flows Hybrid dynamics: Mix and match discrete and continuous Hybrid-Dynamic Information Flow (HDIF): Information can flow in both discrete and continuous channels 5 / 21

8 Expressive Hybrid Models Provide Expressive Flows Hybrid dynamics: Mix and match discrete and continuous Hybrid-Dynamic Information Flow (HDIF): Information can flow in both discrete and continuous channels How do we model and verify HDIFs? 5 / 21

9 Outline 1 dhl: Hybrid {Dynamics, Logic} 2 FREEDM Case Study: Hybrid Power 3 Theory: Soundness and Reducibility 6 / 21

10 Example Hybrid System: Diesel Generator Generator consumes Fuel to produce power for the grid. α gen def ((p := 0 (p := ;?(Fuel > 0 0 p maxp)); {Fuel = p, gr = p & Fuel 0}) Questions: Can grid observer detect fuel level? Program Meaning {x = θ & ψ} Evolve ODE x = θ, but only while ψ holds x := Assign randomly to x?φ Test whether φ holds α β Run α or β α Run α any number of times in sequence 7 / 21

11 Dynamic Logic Operators Definition (dl Formulas, Fragment of dhl) φ, ψ ::= φ ψ φ x : R φ θ 1 θ 2 α φ First-order classical logic Real-valued terms θ 1, θ 2 Dynamic modality α φ says φ holds after some run of α. 8 / 21

12 Dynamic Logic Operators Definition (dl Formulas, Fragment of dhl) α can reach φ φ, ψ ::= φ ψ φ x : R φ θ 1 θ 2 α φ First-order classical logic Real-valued terms θ 1, θ 2 Dynamic modality α φ says φ holds after some run of α. 8 / 21

13 Program Axioms Decompose Dynamics x = F & q(x) p(x) t 0(p(y(t)) 0 s t q(y(s))) a b P ( a P b P) α out in α β β out 9 / 21

14 dhl Adds Hybrid Logic Definition (dhl, Hybrid-Logical Operators) φ w φ s : W φ s φ w Evaluate formulas φ or terms θ and named world w. Quantifiers s : W φ, s : W φ, and s φ (binds current world) Nominal predicate w holds exactly in world named n p(f 1,... F m ) p(@ n F n F m s p(s) s : W (s n n 10 / 21

15 Go to world w dhl Adds Hybrid Logic Definition (dhl, Hybrid-Logical Operators) φ w φ s : W φ s φ w Evaluate formulas φ or terms θ and named world w. Quantifiers s : W φ, s : W φ, and s φ (binds current world) Nominal predicate w holds exactly in world named n p(f 1,... F m ) p(@ n F n F m s p(s) s : W (s n n 10 / 21

16 Go to world w Exists world dhl Adds Hybrid Logic Definition (dhl, Hybrid-Logical Operators) φ w φ s : W φ s φ w Evaluate formulas φ or terms θ and named world w. Quantifiers s : W φ, s : W φ, and s φ (binds current world) Nominal predicate w holds exactly in world named n p(f 1,... F m ) p(@ n F n F m s p(s) s : W (s n n 10 / 21

17 Go to world w Exists world Remember world in s dhl Adds Hybrid Logic Definition (dhl, Hybrid-Logical Operators) φ w φ s : W φ s φ w Evaluate formulas φ or terms θ and named world w. Quantifiers s : W φ, s : W φ, and s φ (binds current world) Nominal predicate w holds exactly in world named n p(f 1,... F m ) p(@ n F n F m s p(s) s : W (s n n 10 / 21

18 Go to world w Exists world Remember world in s Test world dhl Adds Hybrid Logic Definition (dhl, Hybrid-Logical Operators) φ w φ s : W φ s φ w Evaluate formulas φ or terms θ and named world w. Quantifiers s : W φ, s : W φ, and s φ (binds current world) Nominal predicate w holds exactly in world named n p(f 1,... F m ) p(@ n F n F m s p(s) s : W (s n n 10 / 21

19 Nondeducibility Information Flow Program α is nondeducibility-secure with bisimulation R when i 1, i 2, o 1 : W i1 α o 1 R(i 1, i 2 i2 α o 2 R(o 1, o 2 ) ) R(k 1, k 2 ) def θ L (@ k1 θ k2 θ) (i.e., k 1, k 2 agree on L) i 1 α o 1 R R i 2 α o 2 All similar inputs would have made similar outputs possible 11 / 21

20 Derived Rules Simplify HDIF Proofs Relational reasoning proceeds structurally on programs i1 α m 1 R i (i 1, i 2 i2 α m 2 R m (m 1, m 2 m1 β o 1 R m (m 1, m 2 m2 β o 2 R o (o 1, o 2 i1 α; β o 1 R i (i 1, i 2 i2 α; β o 2 R o (o 1, o 2 ) α; β i 1 α m 1 β o 1 R i R m R o i 2 α m 2 β o 2 α; β 12 / 21

21 Derived Rules Simplify HDIF Proofs Relational reasoning proceeds structurally on programs i1 α m 1 R i (i 1, i 2 i2 α m 2 R m (m 1, m 2 m1 β o 1 R m (m 1, m 2 m2 β o 2 R o (o 1, o 2 i1 α; β o 1 R i (i 1, i 2 i2 α; β o 2 R o (o 1, o 2 ) α; β i 1 α m 1 β o 1 R i R m R o i 2 α m 2 β o 2 α; β Bisimulation rules are all derived! 12 / 21

22 Outline 1 dhl: Hybrid {Dynamics, Logic} 2 FREEDM Case Study: Hybrid Power 3 Theory: Soundness and Reducibility 13 / 21

23 Example: FREEDM Smart Grid Battery B 1 B 2 Demand Transformer Resource Grid d 1 r 1 T Link 1 T 2 p 1 p 2 gr d 2 r 2 Our hybrid model reveals a bug missed by the event-based model 14 / 21

24 FREEDM: Formal Model α F (ctrl; plant) ctrl migrate; bat migrate { d i, r i := ;?(d i, r i 0); n i := d i (r i + p i ); if (n i thresh n ī < 0) { m := Migrate(i)} else { m := 0} } plant {p i = 1 i m, B i = b i, b i = bm i, gr = grm, t = 1 & B i 0} bat I gr, bm i, vgridmig := 0; if ((n i 0 Full) (n i > 0 Emp)){ { ToBat(n i, m)} else { ToGrid(n i, m)} bat S gr, bm i, vgridmig := 0; (?(Full (ni > 0 Emp)); ToBat(n i, m) ) (ToGrid(n i, m)) 15 / 21

25 Load Balance α F (ctrl; plant) FREEDM: Formal Model ctrl migrate; bat migrate { d i, r i := ;?(d i, r i 0); n i := d i (r i + p i ); if (n i thresh n ī < 0) { m := Migrate(i)} else { m := 0} } plant {p i = 1 i m, B i = b i, b i = bm i, gr = grm, t = 1 & B i 0} bat I gr, bm i, vgridmig := 0; if ((n i 0 Full) (n i > 0 Emp)){ { ToBat(n i, m)} else { ToGrid(n i, m)} bat S gr, bm i, vgridmig := 0; (?(Full (ni > 0 Emp)); ToBat(n i, m) ) (ToGrid(n i, m)) 15 / 21

26 Load Balance α F (ctrl; plant) FREEDM: Formal Model ctrl migrate; bat migrate { d i, r i := ;?(d i, r i 0); n i := d i (r i + p i ); if (n i thresh n ī < 0) { m := Migrate(i)} else { m := 0} } Battery, Insecure plant {p i = 1 i m, B i = b i, b i = bm i, gr = grm, t = 1 & B i 0} bat I gr, bm i, vgridmig := 0; if ((n i 0 Full) (n i > 0 Emp)){ { ToBat(n i, m)} else { ToGrid(n i, m)} bat S gr, bm i, vgridmig := 0; (?(Full (ni > 0 Emp)); ToBat(n i, m) ) (ToGrid(n i, m)) 15 / 21

27 Load Balance α F (ctrl; plant) FREEDM: Formal Model ctrl migrate; bat migrate { d i, r i := ;?(d i, r i 0); n i := d i (r i + p i ); if (n i thresh n ī < 0) { m := Migrate(i)} else { m := 0} } Battery, Insecure plant {p i = 1 i m, B i = b i, b i = bm i, gr = grm, t = 1 & B i 0} Battery, bat I bat S Secure gr, bm i, vgridmig := 0; if ((n i 0 Full) (n i > 0 Emp)){ { ToBat(n i, m)} else { ToGrid(n i, m)} gr, bm i, vgridmig := 0; (?(Full (ni > 0 Emp)); ToBat(n i, m) ) (ToGrid(n i, m)) 15 / 21

28 FREEDM: Results Define R(i, j) i t j i gr j gr). Same grid flow, same time Proposition (FREEDM with original bat I is insecure) i 1, i 2, o 1 : W i1 α I o 1 R(i 1, i 2 i2 [α I ] o 2 R(o 1, o 2 ) ) Proposition (Nondeducibility for fixed FREEDM) i 1, i 2, o 1 : W i1 α S o 1 R(i 1, i 2 i2 α S o 2 R(o 1, o 2 ) ) Takeaway: Determinism helps attackers! ( Refinement Paradox ) 16 / 21

29 FREEDM: Results Define R(i, j) i t j i gr j gr). Same grid flow, same time Proposition (FREEDM with original bat I is insecure) i 1, i 2, o 1 : W i1 α I o 1 R(i 1, i 2 i2 [α I ] o 2 R(o 1, o 2 ) ) Proposition (Nondeducibility for fixed FREEDM) i 1, i 2, o 1 : W i1 α S o 1 R(i 1, i 2 i2 α S o 2 R(o 1, o 2 ) ) Takeaway: Determinism helps attackers! ( Refinement Paradox ) Impact: Translates to, e.g., randomization in implementation. 16 / 21

30 Outline 1 dhl: Hybrid {Dynamics, Logic} 2 FREEDM Case Study: Hybrid Power 3 Theory: Soundness and Reducibility 17 / 21

31 Hybrid Logic (+Uniform Substitution) Provides Clean Foundation for Info. Flow Ours is a uniform substitution calculus: variables over predicates, programs, etc. represented explicitly in concrete axiom formulas, instantiated with rule US: US φ σ(φ) Rule US sound iff σ is admissible: Definition (Admissibility (dl)) Substitution σ adds no free variable references in bound positions Definition (Admissibility (dhl)) Substitution σ adds no free symbol references in bound positions Takeaway: Admissibility generalizes cleanly to hybrid logics 18 / 21

32 Axiom Validity Proposition (dhl contains dl) A dl formula φ is valid in dl iff it is valid in dhl Containment imports all dl axioms to dhl once and for all, even when instantiated with proper dhl formulas. dhl axioms are single formulas, so each case of soundness only needs to show validity of one single formula. 19 / 21

33 Concrete Reducibility Motivation: What is the expressive power of dhl? Theorem (Concrete reducibility) Concrete dhl (i.e. without US symbols) reduces to concrete dl. There exists an effective reduction T : dhl dl such that when φ dhl is concrete, T (φ) dl is valid iff φ is. Proposition (Complexity of T ) T increases size quadratically, i.e., T (φ) Θ( φ 2 ) for concrete φ. Implication: T cannot reduce axioms or certain advanced proof techniques. Reduction likely to bloat proofs in practice. 20 / 21

34 Takeaways Info. flow analysis only as good as the model Hybrid models enable expressive CPS flows Logic dhl provides HDIF analysis. Hybrid logic (+ Uniform Substitution) provides clean foundation, High-level relational rules are derived Smart-grid example shows promise for practical applications Future Work: Hybrid logic as a broader foundation for hyperproperties, compare with other relational systems Future Work: Implementation to enable large-scale proofs 21 / 21

A COMPONENT-BASED APPROACH TO HYBRID SYSTEMS SAFETY VERIFICATION

A COMPONENT-BASED APPROACH TO HYBRID SYSTEMS SAFETY VERIFICATION A COMPONENT-BASED APPROACH TO HYBRID SYSTEMS SAFETY VERIFICATION Andreas Müller andreas.mueller@jku.at Werner Retschitzegger werner.retschitzegger@jku.at Wieland Schwinger wieland.schwinger@jku.at Johannes

More information

22: Axioms & Uniform Substitutions

22: Axioms & Uniform Substitutions 0.2 22: Axioms & Uniform Substitutions 15-424: Foundations of Cyber-Physical Systems André Platzer aplatzer@cs.cmu.edu Computer Science Department Carnegie Mellon University, Pittsburgh, PA The Secret

More information

Lecture Notes on Proofs & Arithmetic

Lecture Notes on Proofs & Arithmetic 15-424: Foundations of Cyber-Physical Systems Lecture Notes on Proofs & Arithmetic André Platzer Carnegie Mellon University Lecture 9 1 Introduction Lecture 8 on Events & Delays discussed and developed

More information

AN INTRODUCTION TO SEPARATION LOGIC. 2. Assertions

AN INTRODUCTION TO SEPARATION LOGIC. 2. Assertions AN INTRODUCTION TO SEPARATION LOGIC 2. Assertions John C. Reynolds Carnegie Mellon University January 7, 2011 c 2011 John C. Reynolds Pure Assertions An assertion p is pure iff, for all stores s and all

More information

A Logic of Proofs for Differential Dynamic Logic

A Logic of Proofs for Differential Dynamic Logic A Logic of Proofs for Differential Dynamic Logic Toward Independently Checkable Proof Certificates for Dynamic Logics Nathan Fulton Institute for Software Research Carnegie Mellon University, Pittsburgh

More information

Lecture Notes on Compositional Reasoning

Lecture Notes on Compositional Reasoning 15-414: Bug Catching: Automated Program Verification Lecture Notes on Compositional Reasoning Matt Fredrikson Ruben Martins Carnegie Mellon University Lecture 4 1 Introduction This lecture will focus on

More information

The Complete Proof Theory of Hybrid Systems

The Complete Proof Theory of Hybrid Systems 0.2 The Complete Proof Theory of Hybrid Systems André Platzer aplatzer@cs.cmu.edu Computer Science Department Carnegie Mellon University, Pittsburgh, PA 0.5 0.4 0.3 0.2 0.1 1.0 0.8 0.6 0.4 André Platzer

More information

A Temporal Dynamic Logic for Verifying Hybrid System Invariants

A Temporal Dynamic Logic for Verifying Hybrid System Invariants A Temporal Dynamic Logic for Verifying Hybrid System Invariants André Platzer 1,2 1 University of Oldenburg, Department of Computing Science, Germany 2 Carnegie Mellon University, Computer Science Department,

More information

15-424/ Recitation 1 First-Order Logic, Syntax and Semantics, and Differential Equations Notes by: Brandon Bohrer

15-424/ Recitation 1 First-Order Logic, Syntax and Semantics, and Differential Equations Notes by: Brandon Bohrer 15-424/15-624 Recitation 1 First-Order Logic, Syntax and Semantics, and Differential Equations Notes by: Brandon Bohrer (bbohrer@cs.cmu.edu) 1 Agenda Admin Everyone should have access to both Piazza and

More information

Using Theorem Provers to Guarantee Closed-Loop Properties

Using Theorem Provers to Guarantee Closed-Loop Properties Using Theorem Provers to Guarantee Closed-Loop Properties Nikos Aréchiga Sarah Loos André Platzer Bruce Krogh Carnegie Mellon University April 27, 2012 Aréchiga, Loos, Platzer, Krogh (CMU) Theorem Provers

More information

CoasterX: A Case Study in Component-Driven Hybrid Systems Proof Automation

CoasterX: A Case Study in Component-Driven Hybrid Systems Proof Automation CoasterX: A Case Study in Component-Driven Hybrid Systems Proof Automation Brandon Bohrer (joint work with Adriel Luo, Xuean Chuang, André Platzer) Logical Systems Lab Computer Science Department Carnegie

More information

Expressiveness, decidability, and undecidability of Interval Temporal Logic

Expressiveness, decidability, and undecidability of Interval Temporal Logic University of Udine Department of Mathematics and Computer Science Expressiveness, decidability, and undecidability of Interval Temporal Logic ITL - Beyond the end of the light Ph.D. Defence Dario Della

More information

Chapter 2. Assertions. An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011

Chapter 2. Assertions. An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011 Chapter 2 An Introduction to Separation Logic c 2011 John C. Reynolds February 3, 2011 Assertions In this chapter, we give a more detailed exposition of the assertions of separation logic: their meaning,

More information

05: Dynamical Systems & Dynamic Axioms

05: Dynamical Systems & Dynamic Axioms 0.2 05: Dynamical Systems & Dynamic Axioms 15-424: Foundations of Cyber-Physical Systems André Platzer aplatzer@cs.cmu.edu Computer Science Department Carnegie Mellon University, Pittsburgh, PA 0.5 0.4

More information

Combining Deduction and Algebraic Constraints for Hybrid System Analysis

Combining Deduction and Algebraic Constraints for Hybrid System Analysis Combining Deduction and Algebraic Constraints for Hybrid System Analysis André Platzer University of Oldenburg, Department of Computing Science, Germany Verify 07 at CADE 07 André Platzer (University of

More information

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini. FBK-IRST, Trento, Italy

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini. FBK-IRST, Trento, Italy Reasoning in First Order Logic FBK-IRST, Trento, Italy April 12, 2013 Reasoning tasks in FOL Model checking Question: Is φ true in the interpretation I with the assignment a? Answer: Yes if I = φ[a]. No

More information

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017 3. The Logic of Quantified Statements Summary Aaron Tan 28 31 August 2017 1 3. The Logic of Quantified Statements 3.1 Predicates and Quantified Statements I Predicate; domain; truth set Universal quantifier,

More information

PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2

PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2 PREDICATE LOGIC: UNDECIDABILITY AND INCOMPLETENESS HUTH AND RYAN 2.5, SUPPLEMENTARY NOTES 2 Neil D. Jones DIKU 2005 14 September, 2005 Some slides today new, some based on logic 2004 (Nils Andersen) OUTLINE,

More information

Translating Ontologies from Predicate-based to Frame-based Languages

Translating Ontologies from Predicate-based to Frame-based Languages 1/18 Translating Ontologies from Predicate-based to Frame-based Languages Jos de Bruijn and Stijn Heymans Digital Enterprise Research Institute (DERI) University of Innsbruck, Austria {jos.debruijn,stijn.heymans}@deri.org

More information

06 From Propositional to Predicate Logic

06 From Propositional to Predicate Logic Martin Henz February 19, 2014 Generated on Wednesday 19 th February, 2014, 09:48 1 Syntax of Predicate Logic 2 3 4 5 6 Need for Richer Language Predicates Variables Functions 1 Syntax of Predicate Logic

More information

A Uniform Substitution Calculus for Differential Dynamic Logic

A Uniform Substitution Calculus for Differential Dynamic Logic A Uniform Substitution Calculus for Differential Dynamic Logic André Platzer Computer Science Department, Carnegie Mellon University, Pittsburgh, USA aplatzer@cs.cmu.edu Abstract. This paper introduces

More information

Solutions to Problem Set 1

Solutions to Problem Set 1 Massachusetts Institute of Technology 6.042J/18.062J, Fall 05: Mathematics for Computer Science September 21 Prof. Albert R. Meyer and Prof. Ronitt Rubinfeld revised September 21, 2005, 1076 minutes Problem

More information

Logical Closure Properties of Propositional Proof Systems

Logical Closure Properties of Propositional Proof Systems of Logical of Propositional Institute of Theoretical Computer Science Leibniz University Hannover Germany Theory and Applications of Models of Computation 2008 Outline of Propositional of Definition (Cook,

More information

Propositional Logic: Part II - Syntax & Proofs 0-0

Propositional Logic: Part II - Syntax & Proofs 0-0 Propositional Logic: Part II - Syntax & Proofs 0-0 Outline Syntax of Propositional Formulas Motivating Proofs Syntactic Entailment and Proofs Proof Rules for Natural Deduction Axioms, theories and theorems

More information

Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014

Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014 Philosophy 240 Symbolic Logic Russell Marcus Hamilton College Fall 2014 Class #23 - Translation into Predicate Logic II ( 3.2) Only as a Quantifier P Only Ps are Qs is logically equivalent to all Qs are

More information

A Complete Uniform Substitution Calculus for Differential Dynamic Logic

A Complete Uniform Substitution Calculus for Differential Dynamic Logic J Autom Reasoning (2017) 59:219-265 DOI 10.1007/s10817-016-9385-1 A Complete Uniform Substitution Calculus for Differential Dynamic Logic André Platzer Received: 23 December 2015 / Accepted: 29 July 2016

More information

Dynamic logic for Hybrid systems

Dynamic logic for Hybrid systems Differential Dynamic Logic for Verifying Parametric Hybrid Systems by Andre Platzer presented by Hallstein Asheim Hansen 15th April 2008 Hallstein Asheim Hansen Slide 1 An example of a hybrid system: Thermostat

More information

Logic and Modelling. Introduction to Predicate Logic. Jörg Endrullis. VU University Amsterdam

Logic and Modelling. Introduction to Predicate Logic. Jörg Endrullis. VU University Amsterdam Logic and Modelling Introduction to Predicate Logic Jörg Endrullis VU University Amsterdam Predicate Logic In propositional logic there are: propositional variables p, q, r,... that can be T or F In predicate

More information

With Question/Answer Animations. Chapter 2

With Question/Answer Animations. Chapter 2 With Question/Answer Animations Chapter 2 Chapter Summary Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Sequences and Summations Types of

More information

Due Date: Thursday, September 13th, 11:59PM (no late days), worth 60 points

Due Date: Thursday, September 13th, 11:59PM (no late days), worth 60 points Assignment 1: Introduction to Hybrid Programs 15-424/15-624/15-824 Logical Foundations of Cyber-Physical Systems TAs: Irene Li (mengzeli@andrew.cmu.edu) Yong Kiam Tan (yongkiat@cs.cmu.edu) Due Date: Thursday,

More information

Predicate Logic. Xinyu Feng 09/26/2011. University of Science and Technology of China (USTC)

Predicate Logic. Xinyu Feng 09/26/2011. University of Science and Technology of China (USTC) University of Science and Technology of China (USTC) 09/26/2011 Overview Predicate logic over integer expressions: a language of logical assertions, for example x. x + 0 = x Why discuss predicate logic?

More information

Introduction to Sets and Logic (MATH 1190)

Introduction to Sets and Logic (MATH 1190) Introduction to Sets Logic () Instructor: Email: shenlili@yorku.ca Department of Mathematics Statistics York University Sept 18, 2014 Outline 1 2 Tautologies Definition A tautology is a compound proposition

More information

Predicate Logic: Sematics Part 1

Predicate Logic: Sematics Part 1 Predicate Logic: Sematics Part 1 CS402, Spring 2018 Shin Yoo Predicate Calculus Propositional logic is also called sentential logic, i.e. a logical system that deals with whole sentences connected with

More information

- Introduction to propositional, predicate and higher order logics

- Introduction to propositional, predicate and higher order logics Lecture 1: Deductive Verification of Reactive Systems - Introduction to propositional, predicate and higher order logics - Deductive Invariance Proofs Cristina Seceleanu MRTC, MdH E-mail: cristina.seceleanu@mdh.se

More information

Predicate Calculus lecture 1

Predicate Calculus lecture 1 Predicate Calculus lecture 1 Section 1.3 Limitation of Propositional Logic Consider the following reasoning All cats have tails Gouchi is a cat Therefore, Gouchi has tail. MSU/CSE 260 Fall 2009 1 MSU/CSE

More information

Predicate Calculus - Semantics 1/4

Predicate Calculus - Semantics 1/4 Predicate Calculus - Semantics 1/4 Moonzoo Kim CS Dept. KAIST moonzoo@cs.kaist.ac.kr 1 Introduction to predicate calculus (1/2) Propositional logic (sentence logic) dealt quite satisfactorily with sentences

More information

Sequent calculus for predicate logic

Sequent calculus for predicate logic CHAPTER 13 Sequent calculus for predicate logic 1. Classical sequent calculus The axioms and rules of the classical sequent calculus are: Axioms { Γ, ϕ, ϕ for atomic ϕ Γ, Left Γ,α 1,α 2 Γ,α 1 α 2 Γ,β 1

More information

Predicate Logic - Introduction

Predicate Logic - Introduction Outline Motivation Predicate Logic - Introduction Predicates & Functions Quantifiers, Coming to Terms with Formulas Quantifier Scope & Bound Variables Free Variables & Sentences c 2001 M. Lawford 1 Motivation:

More information

A Uniform Substitution Calculus for Differential Dynamic Logic

A Uniform Substitution Calculus for Differential Dynamic Logic A Uniform Substitution Calculus for Differential Dynamic Logic arxiv:1503.01981v2 [cs.lo] 25 Mar 2015 André Platzer December 28, 2018 Abstract This paper introduces a new proof calculus for differential

More information

Section 2.2 Set Operations. Propositional calculus and set theory are both instances of an algebraic system called a. Boolean Algebra.

Section 2.2 Set Operations. Propositional calculus and set theory are both instances of an algebraic system called a. Boolean Algebra. Section 2.2 Set Operations Propositional calculus and set theory are both instances of an algebraic system called a Boolean Algebra. The operators in set theory are defined in terms of the corresponding

More information

Lecture Notes on Loop Variants and Convergence

Lecture Notes on Loop Variants and Convergence 15-414: Bug Catching: Automated Program Verification Lecture Notes on Loop Variants and Convergence Matt Fredrikson Ruben Martins Carnegie Mellon University Lecture 9 1 Introduction The move to total correctness

More information

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows. Chapter 1 Logic 1.1 Introduction and Definitions Definitions. A sentence (statement, proposition) is an utterance (that is, a string of characters) which is either true (T) or false (F). A predicate is

More information

Predicate Logic. Xinyu Feng 11/20/2013. University of Science and Technology of China (USTC)

Predicate Logic. Xinyu Feng 11/20/2013. University of Science and Technology of China (USTC) University of Science and Technology of China (USTC) 11/20/2013 Overview Predicate logic over integer expressions: a language of logical assertions, for example x. x + 0 = x Why discuss predicate logic?

More information

First-Order Logic. Chapter Overview Syntax

First-Order Logic. Chapter Overview Syntax Chapter 10 First-Order Logic 10.1 Overview First-Order Logic is the calculus one usually has in mind when using the word logic. It is expressive enough for all of mathematics, except for those concepts

More information

Mathematical Logic Part Three

Mathematical Logic Part Three Mathematical Logic Part Three Recap from Last Time What is First-Order Logic? First-order logic is a logical system for reasoning about properties of objects. Augments the logical connectives from propositional

More information

Mathematical Logic Part Three

Mathematical Logic Part Three Mathematical Logic Part Three Recap from Last Time What is First-Order Logic? First-order logic is a logical system for reasoning about properties of objects. Augments the logical connectives from propositional

More information

Final Exam (100 points)

Final Exam (100 points) Final Exam (100 points) Honor Code: Each question is worth 10 points. There is one bonus question worth 5 points. In contrast to the homework assignments, you may not collaborate on this final exam. You

More information

First Order Logic (FOL) 1 znj/dm2017

First Order Logic (FOL) 1   znj/dm2017 First Order Logic (FOL) 1 http://lcs.ios.ac.cn/ znj/dm2017 Naijun Zhan March 19, 2017 1 Special thanks to Profs Hanpin Wang (PKU) and Lijun Zhang (ISCAS) for their courtesy of the slides on this course.

More information

A Formalised Proof of Craig s Interpolation Theorem in Nominal Isabelle

A Formalised Proof of Craig s Interpolation Theorem in Nominal Isabelle A Formalised Proof of Craig s Interpolation Theorem in Nominal Isabelle Overview We intend to: give a reminder of Craig s theorem, and the salient points of the proof introduce the proof assistant Isabelle,

More information

Differential Refinement Logic

Differential Refinement Logic Differential Refinement Logic Sarah M. Loos Computer Science Department Carnegie Mellon University sloos@cs.cmu.edu André Platzer Computer Science Department Carnegie Mellon University aplatzer@cs.cmu.edu

More information

On the Progression of Knowledge in the Situation Calculus

On the Progression of Knowledge in the Situation Calculus On the Progression of Knowledge in the Situation Calculus Yongmei Liu Department of Computer Science Sun Yat-sen University Guangzhou, China Joint work with Ximing Wen KRW-2012, Guiyang June 17, 2012 Y.

More information

Lecture Notes on Invariants for Arbitrary Loops

Lecture Notes on Invariants for Arbitrary Loops 15-414: Bug Catching: Automated Program Verification Lecture Notes on Invariants for Arbitrary Loops Matt Fredrikson Ruben Martins Carnegie Mellon University Lecture 5 1 Introduction The previous lecture

More information

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1

Přednáška 12. Důkazové kalkuly Kalkul Hilbertova typu. 11/29/2006 Hilbertův kalkul 1 Přednáška 12 Důkazové kalkuly Kalkul Hilbertova typu 11/29/2006 Hilbertův kalkul 1 Formal systems, Proof calculi A proof calculus (of a theory) is given by: A. a language B. a set of axioms C. a set of

More information

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics CSC 224/226 Notes Packet #2: Set Theory & Predicate Calculus Barnes Packet #2: Set Theory & Predicate Calculus Applied Discrete Mathematics Table of Contents Full Adder Information Page 1 Predicate Calculus

More information

Algebraizing Hybrid Logic. Evangelos Tzanis University of Amsterdam Institute of Logic, Language and Computation

Algebraizing Hybrid Logic. Evangelos Tzanis University of Amsterdam Institute of Logic, Language and Computation Algebraizing Hybrid Logic Evangelos Tzanis University of Amsterdam Institute of Logic, Language and Computation etzanis@science.uva.nl May 1, 2005 2 Contents 1 Introduction 5 1.1 A guide to this thesis..........................

More information

Quantifiers. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing February, 2018

Quantifiers. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing February, 2018 Quantifiers Alice E. Fischer CSCI 1166 Discrete Mathematics for Computing February, 2018 Alice E. Fischer Quantifiers... 1/34 1 Predicates and their Truth Sets Sets of Numbers 2 Universal Quantifiers Existential

More information

Characterizing Algebraic Invariants by Differential Radical Invariants

Characterizing Algebraic Invariants by Differential Radical Invariants Characterizing Algebraic Invariants by Differential Radical Invariants Khalil Ghorbal Carnegie Mellon university Joint work with André Platzer ÉNS Paris April 1st, 2014 K. Ghorbal (CMU) Invited Talk 1

More information

Predicate logic. G. Carl Evans. Summer University of Illinois. Propositional Logic Review Predicate logic Predicate Logic Examples

Predicate logic. G. Carl Evans. Summer University of Illinois. Propositional Logic Review Predicate logic Predicate Logic Examples G. Carl Evans University of Illinois Summer 2013 Propositional logic Propositional Logic Review AND, OR, T/F, implies, etc Equivalence and truth tables Manipulating propositions Implication Propositional

More information

Analyzing fuzzy and contextual approaches to vagueness by semantic games

Analyzing fuzzy and contextual approaches to vagueness by semantic games Analyzing fuzzy and contextual approaches to vagueness by semantic games PhD Thesis Christoph Roschger Institute of Computer Languages Theory and Logic Group November 27, 2014 Motivation Vagueness ubiquitous

More information

Abstract model theory for extensions of modal logic

Abstract model theory for extensions of modal logic Abstract model theory for extensions of modal logic Balder ten Cate Stanford, May 13, 2008 Largely based on joint work with Johan van Benthem and Jouko Väänänen Balder ten Cate Abstract model theory for

More information

Structuring Logic with Sequent Calculus

Structuring Logic with Sequent Calculus Structuring Logic with Sequent Calculus Alexis Saurin ENS Paris & École Polytechnique & CMI Seminar at IIT Delhi 17th September 2004 Outline of the talk Proofs via Natural Deduction LK Sequent Calculus

More information

Recitation 4: Eventful Tactical KeYmaera X Proofs /15-624/ Logical Foundations of Cyber-Physical Systems

Recitation 4: Eventful Tactical KeYmaera X Proofs /15-624/ Logical Foundations of Cyber-Physical Systems Recitation 4: Eventful Tactical KeYmaera X Proofs 15-424/15-624/15-824 Logical Foundations of Cyber-Physical Systems 1 Announcements Notes by: Brandon Bohrer Edits by: Yong Kiam Tan (yongkiat@cs.cmu.edu)

More information

Predicate Logic. CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo

Predicate Logic. CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo Predicate Logic CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo c Xin He (University at Buffalo) CSE 191 Discrete Structures 1 / 22 Outline 1 From Proposition to Predicate

More information

Propositional Calculus - Hilbert system H Moonzoo Kim CS Division of EECS Dept. KAIST

Propositional Calculus - Hilbert system H Moonzoo Kim CS Division of EECS Dept. KAIST Propositional Calculus - Hilbert system H Moonzoo Kim CS Division of EECS Dept. KAIST moonzoo@cs.kaist.ac.kr http://pswlab.kaist.ac.kr/courses/cs402-07 1 Review Goal of logic To check whether given a formula

More information

Completeness for coalgebraic µ-calculus: part 2. Fatemeh Seifan (Joint work with Sebastian Enqvist and Yde Venema)

Completeness for coalgebraic µ-calculus: part 2. Fatemeh Seifan (Joint work with Sebastian Enqvist and Yde Venema) Completeness for coalgebraic µ-calculus: part 2 Fatemeh Seifan (Joint work with Sebastian Enqvist and Yde Venema) Overview Overview Completeness of Kozen s axiomatisation of the propositional µ-calculus

More information

Lecture Notes on Software Model Checking

Lecture Notes on Software Model Checking 15-414: Bug Catching: Automated Program Verification Lecture Notes on Software Model Checking Matt Fredrikson André Platzer Carnegie Mellon University Lecture 19 1 Introduction So far we ve focused on

More information

Introduction to Logic in Computer Science: Autumn 2007

Introduction to Logic in Computer Science: Autumn 2007 Introduction to Logic in Computer Science: Autumn 2007 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Tableaux for First-order Logic The next part of

More information

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2)

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2) Syntax of FOL Introduction to Logic in Computer Science: Autumn 2007 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam The syntax of a language defines the way in which

More information

First-Order Logic (FOL)

First-Order Logic (FOL) First-Order Logic (FOL) Also called Predicate Logic or Predicate Calculus 2. First-Order Logic (FOL) FOL Syntax variables x, y, z, constants a, b, c, functions f, g, h, terms variables, constants or n-ary

More information

Lecture Notes on Differential Equations & Differential Invariants

Lecture Notes on Differential Equations & Differential Invariants 15-424: Foundations of Cyber-Physical Systems Lecture Notes on Differential Equations & Differential Invariants André Platzer Carnegie Mellon University Lecture 10 1 Introduction Lecture 5 on Dynamical

More information

Neighborhood Semantics for Modal Logic Lecture 3

Neighborhood Semantics for Modal Logic Lecture 3 Neighborhood Semantics for Modal Logic Lecture 3 Eric Pacuit ILLC, Universiteit van Amsterdam staff.science.uva.nl/ epacuit August 15, 2007 Eric Pacuit: Neighborhood Semantics, Lecture 3 1 Plan for the

More information

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates Predicate Logic In what we ve discussed thus far, we haven t addressed other kinds of valid inferences: those involving quantification and predication. For example: All philosophers are wise Socrates is

More information

Preuves de logique linéaire sur machine, ENS-Lyon, Dec. 18, 2018

Preuves de logique linéaire sur machine, ENS-Lyon, Dec. 18, 2018 Université de Lorraine, LORIA, CNRS, Nancy, France Preuves de logique linéaire sur machine, ENS-Lyon, Dec. 18, 2018 Introduction Linear logic introduced by Girard both classical and intuitionistic separate

More information

First Order Logic (1A) Young W. Lim 11/18/13

First Order Logic (1A) Young W. Lim 11/18/13 Copyright (c) 2013. 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 later version published by the Free Software

More information

if t 1,...,t k Terms and P k is a k-ary predicate, then P k (t 1,...,t k ) Formulas (atomic formulas)

if t 1,...,t k Terms and P k is a k-ary predicate, then P k (t 1,...,t k ) Formulas (atomic formulas) FOL Query Evaluation Giuseppe De Giacomo Università di Roma La Sapienza Corso di Seminari di Ingegneria del Software: Data and Service Integration Laurea Specialistica in Ingegneria Informatica Università

More information

Chapter 2: Basic Notions of Predicate Logic

Chapter 2: Basic Notions of Predicate Logic 2. Basic Notions of Predicate Logic 2-1 Deductive Databases and Logic Programming (Winter 2009/2010) Chapter 2: Basic Notions of Predicate Logic Signature, Formula Interpretation, Model Implication, Consistency,

More information

Discrete Mathematics and Its Applications

Discrete Mathematics and Its Applications Discrete Mathematics and Its Applications Lecture 1: The Foundations: Logic and Proofs (1.3-1.5) MING GAO DASE @ ECNU (for course related communications) mgao@dase.ecnu.edu.cn Sep. 19, 2017 Outline 1 Logical

More information

KeYmaera: A Hybrid Theorem Prover for Hybrid Systems

KeYmaera: A Hybrid Theorem Prover for Hybrid Systems KeYmaera: A Hybrid Theorem Prover for Hybrid Systems André Platzer Jan-David Quesel University of Oldenburg, Department of Computing Science, Germany International Joint Conference on Automated Reasoning,

More information

AN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC

AN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC Bulletin of the Section of Logic Volume 45/1 (2016), pp 33 51 http://dxdoiorg/1018778/0138-068045103 Mirjana Ilić 1 AN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC Abstract

More information

ICS141: Discrete Mathematics for Computer Science I

ICS141: Discrete Mathematics for Computer Science I ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Originals slides by Dr. Baek and Dr. Still, adapted by J. Stelovsky Based on slides Dr. M. P. Frank and Dr. J.L. Gross

More information

a. (6.25 points) where we let b. (6.25 points) c. (6.25 points) d. (6.25 points) B 3 =(x)[ H(x) F (x)], and (11)

a. (6.25 points) where we let b. (6.25 points) c. (6.25 points) d. (6.25 points) B 3 =(x)[ H(x) F (x)], and (11) A1 Logic (25 points) For each of the following either prove it step-by-step using resolution or another sound and complete technique of your stated choice or disprove it by exhibiting in detail a relevant

More information

Mathematical Logic Part Three

Mathematical Logic Part Three Mathematical Logic Part Three The Aristotelian Forms All As are Bs x. (A(x B(x Some As are Bs x. (A(x B(x No As are Bs x. (A(x B(x Some As aren t Bs x. (A(x B(x It It is is worth worth committing committing

More information

February 2017 CMU-CS JKU-CIS School of Computer Science Carnegie Mellon University Pittsburgh, PA 15213

February 2017 CMU-CS JKU-CIS School of Computer Science Carnegie Mellon University Pittsburgh, PA 15213 Change and Delay Contracts for Hybrid System Component Verification Andreas Müller 2 Stefan Mitsch 1 Werner Retschitzegger 2 Wieland Schwinger 2 André Platzer 1 February 2017 CMU-CS-17-100 JKU-CIS-2017-01

More information

Proofs with Predicate Calculus ITCS 2175 Revision: 1.0. Author: Zachary Wartell Copyright Zachary Wartell, UNCC, 2010 Contributors:?

Proofs with Predicate Calculus ITCS 2175 Revision: 1.0. Author: Zachary Wartell Copyright Zachary Wartell, UNCC, 2010 Contributors:? Proofs with Predicate Calculus ITCS 2175 Revision: 1.0 Author: Zachary Wartell Copyright Zachary Wartell, UNCC, 2010 Contributors:? This document supplements the course packets and the textbook. 1. Definitions:

More information

Modal Logics. Most applications of modal logic require a refined version of basic modal logic.

Modal Logics. Most applications of modal logic require a refined version of basic modal logic. Modal Logics Most applications of modal logic require a refined version of basic modal logic. Definition. A set L of formulas of basic modal logic is called a (normal) modal logic if the following closure

More information

Logic (3A) Young W. Lim 11/2/13

Logic (3A) Young W. Lim 11/2/13 Copyright (c) 2013. 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 later version published by the Free Software

More information

Lecture Notes on Classical Linear Logic

Lecture Notes on Classical Linear Logic Lecture Notes on Classical Linear Logic 15-816: Linear Logic Frank Pfenning Lecture 25 April 23, 2012 Originally, linear logic was conceived by Girard [Gir87] as a classical system, with one-sided sequents,

More information

Classical First-Order Logic

Classical First-Order Logic Classical First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2008/09

More information

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018

More information

Logic (3A) Young W. Lim 10/31/13

Logic (3A) Young W. Lim 10/31/13 Copyright (c) 2013. 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 later version published by the Free Software

More information

Final Exam /614 Bug Catching: Automated Program Verification Matt Fredrikson André Platzer. December 17, 2017

Final Exam /614 Bug Catching: Automated Program Verification Matt Fredrikson André Platzer. December 17, 2017 Final Exam 15-414/614 Bug Catching: Automated Program Verification Matt Fredrikson André Platzer December 17, 2017 Name: Andrew ID: André Platzer aplatzer Instructions This exam is closed-book with one

More information

Differential Equation Axiomatization The Impressive Power of Differential Ghosts

Differential Equation Axiomatization The Impressive Power of Differential Ghosts Differential Equation Axiomatization The Impressive Power of Differential Ghosts arxiv:180201226v2 [cslo] 1 May 2018 André Platzer Abstract Yong Kiam Tan We prove the completeness of an axiomatization

More information

Recall that the expression x > 3 is not a proposition. Why?

Recall that the expression x > 3 is not a proposition. Why? Predicates and Quantifiers Predicates and Quantifiers 1 Recall that the expression x > 3 is not a proposition. Why? Notation: We will use the propositional function notation to denote the expression "

More information

Announcements. Today s Menu

Announcements. Today s Menu Announcements Reading Assignment: > Nilsson chapters 13-14 Announcements: > LISP and Extra Credit Project Assigned Today s Handouts in WWW: > Homework 10-13 > Outline for Class 26 > www.mil.ufl.edu/eel5840

More information

A Tableau Calculus for Minimal Modal Model Generation

A Tableau Calculus for Minimal Modal Model Generation M4M 2011 A Tableau Calculus for Minimal Modal Model Generation Fabio Papacchini 1 and Renate A. Schmidt 2 School of Computer Science, University of Manchester Abstract Model generation and minimal model

More information

185.A09 Advanced Mathematical Logic

185.A09 Advanced Mathematical Logic 185.A09 Advanced Mathematical Logic www.volny.cz/behounek/logic/teaching/mathlog13 Libor Běhounek, behounek@cs.cas.cz Lecture #1, October 15, 2013 Organizational matters Study materials will be posted

More information

Logics of Dynamical Systems

Logics of Dynamical Systems c 2012 IEEE. 2012 27th Annual ACM/IEEE Symposium on Logic in Computer Science Logics of Dynamical Systems (Invited Paper) André Platzer Computer Science Department Carnegie Mellon University Pittsburgh,

More information

Uniform Substitution for Differential Game Logic

Uniform Substitution for Differential Game Logic Uniform Substitution for Differential Game Logic André Platzer Computer Science Department, Carnegie Mellon University, Pittsburgh, USA aplatzer@cs.cmu.edu Abstract. This paper presents a uniform substitution

More information

Math 144 Summer 2012 (UCR) Pro-Notes June 24, / 15

Math 144 Summer 2012 (UCR) Pro-Notes June 24, / 15 Before we start, I want to point out that these notes are not checked for typos. There are prbally many typeos in them and if you find any, please let me know as it s extremely difficult to find them all

More information

Theory of Computation

Theory of Computation Theory of Computation Prof. Michael Mascagni Florida State University Department of Computer Science 1 / 33 This course aims to cover... the development of computability theory using an extremely simple

More information