SlideShare una empresa de Scribd logo
1 de 34
Descargar para leer sin conexión
IPL: An Integration Property Language
for Multi-Model Cyber-Physical Systems
Ivan Ruchkin, Joshua Sunshine, Grant Iraci, Bradley Schmerl, David Garlan
Institute for Software Research
Carnegie Mellon University
July 15, 2018
22nd International Symposium on Formal Methods
22nd International Symposium on Formal Methods 2
Power-aware mobile robot
3
Diverse CPS models
Power
Planning Control Mechanics
Obstacle dynamics
4
Diverse CPS models and tools
Power
(Matlab)
Planning
(PRISM)
Control
(Simulink)
Mechanics
(Modelica)
Obstacle dynamics
(KeYmaera)
5
Systemic qualities from models
Power
(Matlab)
Planning
(PRISM)
Control
(Simulink)
Mechanics
(Modelica)
Obstacle dynamics
(KeYmaera)
safe?
reliable?
secure?
Power-related models
• Linear equations for power
consumption and charging
• Built on experimental data
• Explicit turns, separate from
moving forward
22nd International Symposium on Formal Methods 6
Power-related models
• Linear equations for power
consumption and charging
• Built on experimental data
• Explicit turns, separate from
moving forward
• Markov decision process
• Different modeling formalism
• Implicit turns, part of
transitions between locations
22nd International Symposium on Formal Methods 7
22nd International Symposium on Formal Methods 8
End-to-end power safety
Physical reality Regression model Planning model
f( , , )
Assurance argument: if the battery charge is always greater than total_error,
then the robot will not run out of power.
err_reg err_cons err_pltotal_error =
22nd International Symposium on Formal Methods 9
Inconsistency example
Potential inconsistency: different treatment of turns
leads to different estimated energy costs.
22nd International Symposium on Formal Methods 10
Existing approaches
• Super-model
• A single model to represent and reason about all aspects
• One-model-per-aspect
• Each “ground truth” is contained in some model
• Other models query it as needed
• Our approach
views & behavioral properties
IPL syntax
verification algorithm
• Evaluation
soundness/termination
case study
22nd International Symposium on Formal Methods 11
Outline
• Our approach
views & behavioral properties
IPL syntax
verification algorithm
• Evaluation
soundness/termination
case study
22nd International Symposium on Formal Methods 12
Outline
13
Integration property
Integration property: “the difference in energy estimates should not
be greater than a predefined constant (err_cons)”
Potential inconsistency: different treatment of turns
leads to different estimated energy costs
• Separation of
structure (views)
and behavior
(modal properties)
• Logical co-
constraining models
via integration
properties
22nd International Symposium on Formal Methods 14
Our integration approach
22nd International Symposium on Formal Methods 15
Our integration approach
Integration property: “the difference in energy estimates should not
be greater than a predefined constant (err_cons)”
• Design principles
• expressiveness
• modularity
• tractability
• Views
• static abstractions of model structures
• reasoned over by SMT solvers
• Behavioral properties
• modal logic formulas to constrain/query model behaviors
• verified by model checkers
22nd International Symposium on Formal Methods 16
Integration Property Language (IPL)
• Our approach
views & behavioral properties
IPL syntax
verification algorithm
• Evaluation
soundness/termination
case study
22nd International Symposium on Formal Methods 17
Outline
• A power view is designed as a library of atomic tasks
• one view for a given map
• automatic generation is possible
• Tasks can be combined to form missions
• constrained to represent valid sequences of robot motions
• instantiated using an SMT solver
• Each task is a component with property values
• start, end, energy, time, …
• used AADL as a language for views
22nd International Symposium on Formal Methods 18
Views for the power model
22nd International Symposium on Formal Methods 19
Views for the power model
Declarations of atomic
forward-motion tasks
Declarations of atomic
rotation tasks
20
Views for the power model
Taskl1→l2Taskl2→l1Taskl2→l3
• Specified using a PCTL-based property language
• checkable by the PRISM model checker
• manual creation
• Encoding of “maximum probability of the robot making the
given straight-turn-straight moves (t1 → t2 → t3)”
“…without skipping the middle location”
“…going through the locations in order…”
22nd International Symposium on Formal Methods 21
Behavioral properties for the planning model
“Maximum probability of…”
• Our approach
views & behavioral properties
IPL syntax
verification algorithm
• Evaluation
soundness/termination
case study
22nd International Symposium on Formal Methods 22
Outline
22nd International Symposium on Formal Methods 23
IPL Syntax
22nd International Symposium on Formal Methods 24
Integration property in IPL
“For any three sequential tasks from the power view that
• form a straight-turn-straight, non-intersecting sequence, and
• have sufficient energy,
any execution of the planning model that
• visits points in that sequence in the same order and
• is initialized appropriately (same energy modulo err_cons),
does not run out of power.”
• Our approach
views & behavioral properties
IPL syntax
verification algorithm
• Evaluation
soundness/termination
case study
22nd International Symposium on Formal Methods 25
Outline
26
Verification algorithm
IPL verification: views, models ⊨ formula
Formula transformations: to PNF, removal of
quantifiers, abstraction of model subformulas (MS)
Functional abstraction (FA):
MS → uninterpreted f-ns
Saturation with SMT (on views):
find all free var solutions for FA ≠ CA
Model checking (on models):
interpret FA on the above solutions
Final check (on views):
check quantified FA conjoined
with the above interpretations
Constant abstraction (CA):
MS → uninterpreted consts
FA(t1, t2, t3) = 1
CA = 1
≠
CA = 1
FA(t1, t2, t3) = 1
FA(t1, t2, t3) = 1
• Our approach
views & behavioral properties
IPL syntax
verification algorithm
• Evaluation
soundness/termination
case study
22nd International Symposium on Formal Methods 28
Outline
Theorem (informally): The final check returns that the formula
is valid on the SMT solutions with the model checker
interpretations if and only if the formula is valid (semantically)
Corollary (informal): If IPL verification returns an answer, it is
the correct answer
Termination: Theoretically, the verification is not guaranteed
to terminate (no completeness). In practical conditions (finite
views and no quantification over infinite domains), it terminates
22nd International Symposium on Formal Methods 29
Soundness and termination
• Our approach
views & behavioral properties
IPL syntax
verification algorithm
• Evaluation
soundness/termination
case study
22nd International Symposium on Formal Methods 30
Outline
• Applied to an existing CPS
• Historic artifacts from a previous phase of the project
• Reviewed various models, focused on power
• Formalized 3 versions of the constraint on err_cons
• “If the regression model is power-safe, then so is the planner”
• “If the planner is power-safe, then so is the regression model”
• “For any mission, either both or neither are power-safe”
• Verified 120+ properties in total
• Variance due to many versions of maps and models
22nd International Symposium on Formal Methods 31
Mobile robot case study
• In the planner, no check for battery >= req_energy
Bug: battery := max(battery – req_energy, 0)
Effect: the last transition can be made with insufficient battery
charge
Consequence: some plans are too aggressive and would lead
to running out of power if executed
Fix: checking in the final state that battery > 0
(See other inconsistencies and performance results in the paper)
22nd International Symposium on Formal Methods 32
Discovered inconsistency
• What is the role of integration properties in practice?
• important and implicit step in end-to-end safety arguments
• violations of these properties lead to safety bugs
• Can these properties be specified in IPL?
• yes, by combining views and behavioral properties
• Is IPL verification tractable in practice?
• reasonable, but not ideal performance (seconds to days)
• low overhead: 0.74% +- 0.78%
22nd International Symposium on Formal Methods 33
Case study outcomes
• Complex and contextual integration properties
• requires understanding of complex relations between models
• integration properties do not transfer to new models
• Effortful additional modeling for views
• require difficult design decisions
• not always possible to automate
• Limited performance of this implementation
• SMT solving is not incremental
• model checking not concurrent
22nd International Symposium on Formal Methods 34
Limitations
22nd International Symposium on Formal Methods 35
Summary

Más contenido relacionado

Similar a IPL: An Integration Property Language for Multi-Model Cyber-Physical Systems

A Survey of Machine Learning Methods Applied to Computer ...
A Survey of Machine Learning Methods Applied to Computer ...A Survey of Machine Learning Methods Applied to Computer ...
A Survey of Machine Learning Methods Applied to Computer ...
butest
 
Making Model-Driven Verification Practical and Scalable: Experiences and Less...
Making Model-Driven Verification Practical and Scalable: Experiences and Less...Making Model-Driven Verification Practical and Scalable: Experiences and Less...
Making Model-Driven Verification Practical and Scalable: Experiences and Less...
Lionel Briand
 
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
Luigi Vanfretti
 
AHF_IDETC_2011_Jie
AHF_IDETC_2011_JieAHF_IDETC_2011_Jie
AHF_IDETC_2011_Jie
MDO_Lab
 

Similar a IPL: An Integration Property Language for Multi-Model Cyber-Physical Systems (20)

A Survey of Machine Learning Methods Applied to Computer ...
A Survey of Machine Learning Methods Applied to Computer ...A Survey of Machine Learning Methods Applied to Computer ...
A Survey of Machine Learning Methods Applied to Computer ...
 
Making Model-Driven Verification Practical and Scalable: Experiences and Less...
Making Model-Driven Verification Practical and Scalable: Experiences and Less...Making Model-Driven Verification Practical and Scalable: Experiences and Less...
Making Model-Driven Verification Practical and Scalable: Experiences and Less...
 
53 aron p_dobos_recent_and_planned_improvements_to_the_system_advisor_model_sam
53 aron p_dobos_recent_and_planned_improvements_to_the_system_advisor_model_sam53 aron p_dobos_recent_and_planned_improvements_to_the_system_advisor_model_sam
53 aron p_dobos_recent_and_planned_improvements_to_the_system_advisor_model_sam
 
9.3_Site-specific Controller Evaluation using HIL_Pratt_EPRI/SNL Microgrid Sy...
9.3_Site-specific Controller Evaluation using HIL_Pratt_EPRI/SNL Microgrid Sy...9.3_Site-specific Controller Evaluation using HIL_Pratt_EPRI/SNL Microgrid Sy...
9.3_Site-specific Controller Evaluation using HIL_Pratt_EPRI/SNL Microgrid Sy...
 
Bradley Glenn: Holomorphic Embedding Load Flow Method (helmtm) Algorithm Deve...
Bradley Glenn: Holomorphic Embedding Load Flow Method (helmtm) Algorithm Deve...Bradley Glenn: Holomorphic Embedding Load Flow Method (helmtm) Algorithm Deve...
Bradley Glenn: Holomorphic Embedding Load Flow Method (helmtm) Algorithm Deve...
 
Automated and Scalable Solutions for Software Testing: The Essential Role of ...
Automated and Scalable Solutions for Software Testing: The Essential Role of ...Automated and Scalable Solutions for Software Testing: The Essential Role of ...
Automated and Scalable Solutions for Software Testing: The Essential Role of ...
 
SSBSE 2020 keynote
SSBSE 2020 keynoteSSBSE 2020 keynote
SSBSE 2020 keynote
 
Rejunevating software reengineering processes
Rejunevating software reengineering processesRejunevating software reengineering processes
Rejunevating software reengineering processes
 
Lec 03(VDIdr shady)
Lec 03(VDIdr shady)Lec 03(VDIdr shady)
Lec 03(VDIdr shady)
 
Building a new CTL model checker using Web Services
Building a new CTL model checker using Web ServicesBuilding a new CTL model checker using Web Services
Building a new CTL model checker using Web Services
 
Scalable Software Testing and Verification of Non-Functional Properties throu...
Scalable Software Testing and Verification of Non-Functional Properties throu...Scalable Software Testing and Verification of Non-Functional Properties throu...
Scalable Software Testing and Verification of Non-Functional Properties throu...
 
Testing of Cyber-Physical Systems: Diversity-driven Strategies
Testing of Cyber-Physical Systems: Diversity-driven StrategiesTesting of Cyber-Physical Systems: Diversity-driven Strategies
Testing of Cyber-Physical Systems: Diversity-driven Strategies
 
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
Wanted!: Open M&S Standards and Technologies for the Smart Grid - Introducing...
 
Responsible AI in Industry: Practical Challenges and Lessons Learned
Responsible AI in Industry: Practical Challenges and Lessons LearnedResponsible AI in Industry: Practical Challenges and Lessons Learned
Responsible AI in Industry: Practical Challenges and Lessons Learned
 
overview.pdf
overview.pdfoverview.pdf
overview.pdf
 
Bart Knaack - The Truth About Model-Based Quality Improvements
Bart Knaack - The Truth About Model-Based Quality ImprovementsBart Knaack - The Truth About Model-Based Quality Improvements
Bart Knaack - The Truth About Model-Based Quality Improvements
 
AHF_IDETC_2011_Jie
AHF_IDETC_2011_JieAHF_IDETC_2011_Jie
AHF_IDETC_2011_Jie
 
Testing Machine Learning-enabled Systems: A Personal Perspective
Testing Machine Learning-enabled Systems: A Personal PerspectiveTesting Machine Learning-enabled Systems: A Personal Perspective
Testing Machine Learning-enabled Systems: A Personal Perspective
 
Predictable reactive state management - ngrx
Predictable reactive state management - ngrxPredictable reactive state management - ngrx
Predictable reactive state management - ngrx
 
Automated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance SystemsAutomated Testing of Autonomous Driving Assistance Systems
Automated Testing of Autonomous Driving Assistance Systems
 

Más de Ivan Ruchkin

Causal Repair of Learning-Enabled Cyber-physical Systems
Causal Repair of Learning-Enabled Cyber-physical SystemsCausal Repair of Learning-Enabled Cyber-physical Systems
Causal Repair of Learning-Enabled Cyber-physical Systems
Ivan Ruchkin
 
Overcoming Heterogeneity in Autonomous Cyber-Physical Systems
Overcoming Heterogeneity in Autonomous Cyber-Physical SystemsOvercoming Heterogeneity in Autonomous Cyber-Physical Systems
Overcoming Heterogeneity in Autonomous Cyber-Physical Systems
Ivan Ruchkin
 
Compositional Probabilistic Analysis of Temporal Properties over Stochastic D...
Compositional Probabilistic Analysis of Temporal Properties over Stochastic D...Compositional Probabilistic Analysis of Temporal Properties over Stochastic D...
Compositional Probabilistic Analysis of Temporal Properties over Stochastic D...
Ivan Ruchkin
 
Thesis Defense: Integration of Modeling Methods for Cyber-Physical Systems
Thesis Defense: Integration of Modeling Methods for Cyber-Physical SystemsThesis Defense: Integration of Modeling Methods for Cyber-Physical Systems
Thesis Defense: Integration of Modeling Methods for Cyber-Physical Systems
Ivan Ruchkin
 

Más de Ivan Ruchkin (20)

Poster: Conservative Safety Monitors of Stochastic Dynamical Systems
Poster: Conservative Safety Monitors of Stochastic Dynamical SystemsPoster: Conservative Safety Monitors of Stochastic Dynamical Systems
Poster: Conservative Safety Monitors of Stochastic Dynamical Systems
 
Poster: How Safe Am I Given What I See? Calibrated Prediction of Safety Chanc...
Poster: How Safe Am I Given What I See? Calibrated Prediction of Safety Chanc...Poster: How Safe Am I Given What I See? Calibrated Prediction of Safety Chanc...
Poster: How Safe Am I Given What I See? Calibrated Prediction of Safety Chanc...
 
Verify-then-Monitor: Calibration Guarantees for Safety Confidence
Verify-then-Monitor: Calibration Guarantees for Safety ConfidenceVerify-then-Monitor: Calibration Guarantees for Safety Confidence
Verify-then-Monitor: Calibration Guarantees for Safety Confidence
 
Causal Repair of Learning-Enabled Cyber-physical Systems
Causal Repair of Learning-Enabled Cyber-physical SystemsCausal Repair of Learning-Enabled Cyber-physical Systems
Causal Repair of Learning-Enabled Cyber-physical Systems
 
Conservative Safety Monitors of Stochastic Dynamical Systems
Conservative Safety Monitors of Stochastic Dynamical SystemsConservative Safety Monitors of Stochastic Dynamical Systems
Conservative Safety Monitors of Stochastic Dynamical Systems
 
Confidence Composition for Monitors of Verification Assumptions
Confidence Composition for Monitors of Verification AssumptionsConfidence Composition for Monitors of Verification Assumptions
Confidence Composition for Monitors of Verification Assumptions
 
Overcoming Heterogeneity in Autonomous Cyber-Physical Systems
Overcoming Heterogeneity in Autonomous Cyber-Physical SystemsOvercoming Heterogeneity in Autonomous Cyber-Physical Systems
Overcoming Heterogeneity in Autonomous Cyber-Physical Systems
 
High-Confidence Data Programming for Evaluating Suppression of Physiological ...
High-Confidence Data Programming for Evaluating Suppression of Physiological ...High-Confidence Data Programming for Evaluating Suppression of Physiological ...
High-Confidence Data Programming for Evaluating Suppression of Physiological ...
 
Data Generation with PROSPECT: a Probability Specification Tool
Data Generation with PROSPECT: a Probability Specification ToolData Generation with PROSPECT: a Probability Specification Tool
Data Generation with PROSPECT: a Probability Specification Tool
 
Confidence Monitoring and Composition for Dynamic Assurance of Learning-Enabl...
Confidence Monitoring and Composition for Dynamic Assurance of Learning-Enabl...Confidence Monitoring and Composition for Dynamic Assurance of Learning-Enabl...
Confidence Monitoring and Composition for Dynamic Assurance of Learning-Enabl...
 
Confidence Composition (CoCo) for Dynamic Assurance of Learning-Enabled Auton...
Confidence Composition (CoCo) for Dynamic Assurance of Learning-Enabled Auton...Confidence Composition (CoCo) for Dynamic Assurance of Learning-Enabled Auton...
Confidence Composition (CoCo) for Dynamic Assurance of Learning-Enabled Auton...
 
Confidence Monitoring and Composition for Dynamic Assurance of Learning-Enabl...
Confidence Monitoring and Composition for Dynamic Assurance of Learning-Enabl...Confidence Monitoring and Composition for Dynamic Assurance of Learning-Enabl...
Confidence Monitoring and Composition for Dynamic Assurance of Learning-Enabl...
 
On the Role of Assumptions in Engineering Smart Systems
On the Role of Assumptions in Engineering Smart SystemsOn the Role of Assumptions in Engineering Smart Systems
On the Role of Assumptions in Engineering Smart Systems
 
Compositional Probabilistic Analysis of Temporal Properties over Stochastic D...
Compositional Probabilistic Analysis of Temporal Properties over Stochastic D...Compositional Probabilistic Analysis of Temporal Properties over Stochastic D...
Compositional Probabilistic Analysis of Temporal Properties over Stochastic D...
 
Overview of Epidemic Models for COVID-19
Overview of Epidemic Models for COVID-19Overview of Epidemic Models for COVID-19
Overview of Epidemic Models for COVID-19
 
Thesis Defense: Integration of Modeling Methods for Cyber-Physical Systems
Thesis Defense: Integration of Modeling Methods for Cyber-Physical SystemsThesis Defense: Integration of Modeling Methods for Cyber-Physical Systems
Thesis Defense: Integration of Modeling Methods for Cyber-Physical Systems
 
Towards a Formal Framework for Hybrid Planning in Self-Adaptation
Towards a Formal Framework for Hybrid Planning in Self-AdaptationTowards a Formal Framework for Hybrid Planning in Self-Adaptation
Towards a Formal Framework for Hybrid Planning in Self-Adaptation
 
Inconsistencies in Models of Adaptive Service Robots
Inconsistencies in Models of Adaptive Service RobotsInconsistencies in Models of Adaptive Service Robots
Inconsistencies in Models of Adaptive Service Robots
 
Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems
Challenges in Physical Modeling for Adaptation of Cyber-Physical SystemsChallenges in Physical Modeling for Adaptation of Cyber-Physical Systems
Challenges in Physical Modeling for Adaptation of Cyber-Physical Systems
 
Hardware Power Modeling for Turtlebot
Hardware Power Modeling for TurtlebotHardware Power Modeling for Turtlebot
Hardware Power Modeling for Turtlebot
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 

IPL: An Integration Property Language for Multi-Model Cyber-Physical Systems

  • 1. IPL: An Integration Property Language for Multi-Model Cyber-Physical Systems Ivan Ruchkin, Joshua Sunshine, Grant Iraci, Bradley Schmerl, David Garlan Institute for Software Research Carnegie Mellon University July 15, 2018 22nd International Symposium on Formal Methods
  • 2. 22nd International Symposium on Formal Methods 2 Power-aware mobile robot
  • 3. 3 Diverse CPS models Power Planning Control Mechanics Obstacle dynamics
  • 4. 4 Diverse CPS models and tools Power (Matlab) Planning (PRISM) Control (Simulink) Mechanics (Modelica) Obstacle dynamics (KeYmaera)
  • 5. 5 Systemic qualities from models Power (Matlab) Planning (PRISM) Control (Simulink) Mechanics (Modelica) Obstacle dynamics (KeYmaera) safe? reliable? secure?
  • 6. Power-related models • Linear equations for power consumption and charging • Built on experimental data • Explicit turns, separate from moving forward 22nd International Symposium on Formal Methods 6
  • 7. Power-related models • Linear equations for power consumption and charging • Built on experimental data • Explicit turns, separate from moving forward • Markov decision process • Different modeling formalism • Implicit turns, part of transitions between locations 22nd International Symposium on Formal Methods 7
  • 8. 22nd International Symposium on Formal Methods 8 End-to-end power safety Physical reality Regression model Planning model f( , , ) Assurance argument: if the battery charge is always greater than total_error, then the robot will not run out of power. err_reg err_cons err_pltotal_error =
  • 9. 22nd International Symposium on Formal Methods 9 Inconsistency example Potential inconsistency: different treatment of turns leads to different estimated energy costs.
  • 10. 22nd International Symposium on Formal Methods 10 Existing approaches • Super-model • A single model to represent and reason about all aspects • One-model-per-aspect • Each “ground truth” is contained in some model • Other models query it as needed
  • 11. • Our approach views & behavioral properties IPL syntax verification algorithm • Evaluation soundness/termination case study 22nd International Symposium on Formal Methods 11 Outline
  • 12. • Our approach views & behavioral properties IPL syntax verification algorithm • Evaluation soundness/termination case study 22nd International Symposium on Formal Methods 12 Outline
  • 13. 13 Integration property Integration property: “the difference in energy estimates should not be greater than a predefined constant (err_cons)” Potential inconsistency: different treatment of turns leads to different estimated energy costs
  • 14. • Separation of structure (views) and behavior (modal properties) • Logical co- constraining models via integration properties 22nd International Symposium on Formal Methods 14 Our integration approach
  • 15. 22nd International Symposium on Formal Methods 15 Our integration approach Integration property: “the difference in energy estimates should not be greater than a predefined constant (err_cons)”
  • 16. • Design principles • expressiveness • modularity • tractability • Views • static abstractions of model structures • reasoned over by SMT solvers • Behavioral properties • modal logic formulas to constrain/query model behaviors • verified by model checkers 22nd International Symposium on Formal Methods 16 Integration Property Language (IPL)
  • 17. • Our approach views & behavioral properties IPL syntax verification algorithm • Evaluation soundness/termination case study 22nd International Symposium on Formal Methods 17 Outline
  • 18. • A power view is designed as a library of atomic tasks • one view for a given map • automatic generation is possible • Tasks can be combined to form missions • constrained to represent valid sequences of robot motions • instantiated using an SMT solver • Each task is a component with property values • start, end, energy, time, … • used AADL as a language for views 22nd International Symposium on Formal Methods 18 Views for the power model
  • 19. 22nd International Symposium on Formal Methods 19 Views for the power model Declarations of atomic forward-motion tasks Declarations of atomic rotation tasks
  • 20. 20 Views for the power model Taskl1→l2Taskl2→l1Taskl2→l3
  • 21. • Specified using a PCTL-based property language • checkable by the PRISM model checker • manual creation • Encoding of “maximum probability of the robot making the given straight-turn-straight moves (t1 → t2 → t3)” “…without skipping the middle location” “…going through the locations in order…” 22nd International Symposium on Formal Methods 21 Behavioral properties for the planning model “Maximum probability of…”
  • 22. • Our approach views & behavioral properties IPL syntax verification algorithm • Evaluation soundness/termination case study 22nd International Symposium on Formal Methods 22 Outline
  • 23. 22nd International Symposium on Formal Methods 23 IPL Syntax
  • 24. 22nd International Symposium on Formal Methods 24 Integration property in IPL “For any three sequential tasks from the power view that • form a straight-turn-straight, non-intersecting sequence, and • have sufficient energy, any execution of the planning model that • visits points in that sequence in the same order and • is initialized appropriately (same energy modulo err_cons), does not run out of power.”
  • 25. • Our approach views & behavioral properties IPL syntax verification algorithm • Evaluation soundness/termination case study 22nd International Symposium on Formal Methods 25 Outline
  • 26. 26 Verification algorithm IPL verification: views, models ⊨ formula Formula transformations: to PNF, removal of quantifiers, abstraction of model subformulas (MS) Functional abstraction (FA): MS → uninterpreted f-ns Saturation with SMT (on views): find all free var solutions for FA ≠ CA Model checking (on models): interpret FA on the above solutions Final check (on views): check quantified FA conjoined with the above interpretations Constant abstraction (CA): MS → uninterpreted consts FA(t1, t2, t3) = 1 CA = 1 ≠ CA = 1 FA(t1, t2, t3) = 1 FA(t1, t2, t3) = 1
  • 27. • Our approach views & behavioral properties IPL syntax verification algorithm • Evaluation soundness/termination case study 22nd International Symposium on Formal Methods 28 Outline
  • 28. Theorem (informally): The final check returns that the formula is valid on the SMT solutions with the model checker interpretations if and only if the formula is valid (semantically) Corollary (informal): If IPL verification returns an answer, it is the correct answer Termination: Theoretically, the verification is not guaranteed to terminate (no completeness). In practical conditions (finite views and no quantification over infinite domains), it terminates 22nd International Symposium on Formal Methods 29 Soundness and termination
  • 29. • Our approach views & behavioral properties IPL syntax verification algorithm • Evaluation soundness/termination case study 22nd International Symposium on Formal Methods 30 Outline
  • 30. • Applied to an existing CPS • Historic artifacts from a previous phase of the project • Reviewed various models, focused on power • Formalized 3 versions of the constraint on err_cons • “If the regression model is power-safe, then so is the planner” • “If the planner is power-safe, then so is the regression model” • “For any mission, either both or neither are power-safe” • Verified 120+ properties in total • Variance due to many versions of maps and models 22nd International Symposium on Formal Methods 31 Mobile robot case study
  • 31. • In the planner, no check for battery >= req_energy Bug: battery := max(battery – req_energy, 0) Effect: the last transition can be made with insufficient battery charge Consequence: some plans are too aggressive and would lead to running out of power if executed Fix: checking in the final state that battery > 0 (See other inconsistencies and performance results in the paper) 22nd International Symposium on Formal Methods 32 Discovered inconsistency
  • 32. • What is the role of integration properties in practice? • important and implicit step in end-to-end safety arguments • violations of these properties lead to safety bugs • Can these properties be specified in IPL? • yes, by combining views and behavioral properties • Is IPL verification tractable in practice? • reasonable, but not ideal performance (seconds to days) • low overhead: 0.74% +- 0.78% 22nd International Symposium on Formal Methods 33 Case study outcomes
  • 33. • Complex and contextual integration properties • requires understanding of complex relations between models • integration properties do not transfer to new models • Effortful additional modeling for views • require difficult design decisions • not always possible to automate • Limited performance of this implementation • SMT solving is not incremental • model checking not concurrent 22nd International Symposium on Formal Methods 34 Limitations
  • 34. 22nd International Symposium on Formal Methods 35 Summary