Techniques for the unambiguous specification of software

Similar documents
ΗΜΥ 317 Τεχνολογία Υπολογισμού

Formal Specification. Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 10 Slide 1

Chapter 10 Formal Specification

Chapter 27 Formal Specification

Formal Specification. Objectives

Introduction to Formal Methods

Q Body of techniques supported by. R precise mathematics. R powerful analysis tools. Q Rigorous, effective mechanisms for system.

Formal Validation of DNA Database Using Theorem Proving Technique

Formal Validation of DNA Database Using Theorem Proving Technique

Formal Foundations of Software Engineering

Formal Methods in Software Design. Markus Roggenbach

Methods for requirements engineering

Topic Formal Methods. ICS 121 Lecture Notes. What are Formal Methods? What are Formal Methods? Formal Specification in Software Development

A Short Introduction to Formal Specifications

Modeling Issues Modeling Enterprises. Modeling

Verification and Validation. Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 1

3.4 Deduction and Evaluation: Tools Conditional-Equational Logic

Lecture 7: Requirements Modeling III. Formal Methods in RE

Specification-based Testing

Verification and Validation

Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 22 Slide 1

Software Abstractions

Distributed Systems Programming (F21DS1) Formal Verification

Introduction to Software Specifications and Data Flow Diagrams. Neelam Gupta The University of Arizona

MONIKA HEINER.

Parnas Tables: A Practical Formalism. Joanne M. Atlee Department of Computer Science University of Waterloo

ISO/IEC INTERNATIONAL STANDARD. Software and system engineering High-level Petri nets Part 1: Concepts, definitions and graphical notation

Architectural Design. Topics covered. Architectural Design. Software architecture. Recall the design process

LECTURE 6: INTRODUCTION TO FORMAL METHODS. Software Engineering Mike Wooldridge

1.1 Software Life Cycle

Unit-3 Software Design (Lecture Notes)

The requirements engineering process

You have 45 minutes to work on this exam. It is a "closed-book/closed-notes" test.

! Use of formal notations. ! in software system descriptions. ! for a broad range of effects. ! and varying levels of use. !

Verification of the Requirements Specification

Ingegneria del Software II academic year: Course Web-site: [

Verification and Validation

Objectives. Chapter 19. Verification vs. validation. Topics covered. Static and dynamic verification. The V&V process

Part 5. Verification and Validation

Formal Methods for Software Engineers

Verification and Validation

Flight Systems are Cyber-Physical Systems

Static and dynamic Testing

CSE 307: Principles of Programming Languages

Programming Languages Third Edition

SOFTWARE ENGINEERING. Software Specification Software Design and Implementation Software Validation. Peter Mileff PhD

COURSE OUTCOMES OF M.Sc(IT)

Sequence-Based Specification

Requirements Modelling and Software Systems Implementation Using Formal Languages

UNIT II SOFTWARE REQUIREMENTS 9

Ghassan Samara Internet Technology Department Zarqa University, Jordan.

Architecture-driven development of Climate Control Software LMS Imagine.Lab Embedded Software Designer Siemens DF PL

Lecture 1. Chapter 6 Architectural design

Chapter 3 (part 3) Describing Syntax and Semantics

The design of a programming language for provably correct programs: success and failure

A Small Interpreted Language

A Michael Jackson presentation. CSE503: Software Engineering. The following slides are from his keynote at ICSE 1995

Automation Systems Discrete Event Control Systems and Networked Automation Systems

RAISE in Perspective

Simulation and Verification of Timed and Hybrid Systems

5/9/2014. Recall the design process. Lecture 1. Establishing the overall structureof a software system. Topics covered

Object-oriented development. Object-oriented Design. Objectives. Characteristics of OOD. Interacting objects. Topics covered

ΗΜΥ 317 Τεχνολογία Υπολογισμού

Lesson 06. Requirement Engineering Processes

Modelling Functionality of Train Control Systems using Petri Nets

Lecture 11 Lecture 11 Nov 5, 2014

Engineering and Computer Job Fair

Exam in TDT 4242 Software Requirements and Testing. Tuesday June 8, :00 am 1:00 pm

1. Introduction to Model Checking

Chapter 6 Architectural Design. Chapter 6 Architectural design

Integrating SysML and OWL

Safety SPL/2010 SPL/20 1

Knowledge-based Systems for Industrial Applications

Seite 1. "Formal specifications may become for software engineers what, say, differential equations are for engineers of other fields.

Requirements Specifications

An Information Model for High-Integrity Real Time Systems

Formal Methods for Assuring Security of Computer Networks

IB Computer Science Topic.4: Problem-solving and programming. Designed by: Professor. A. Lawson Sources: Online Materials, thanks for all

Computing Fundamentals 2 Introduction to CafeOBJ

Software Engineering 2 A practical course in software engineering. Ekkart Kindler

3.4 Data-Centric workflow

Simulink/Stateflow. June 2008

FORMALIZED SOFTWARE DEVELOPMENT IN AN INDUSTRIAL ENVIRONMENT

ETSI ETR 346 TECHNICAL December 1996 REPORT

hijac UTP Semantics for Safety-Critical Java University of York hijac Workshop 15 November 2011

Improving the Definition of UML

Specification and Analysis of Contracts Tutorial

1 Reasoning with Shapes

Modelling ODP Viewpoints. 1 Introduction. 2 Basic Modelling and Specification Concepts

COMP 763. Eugene Syriani. Ph.D. Student in the Modelling, Simulation and Design Lab School of Computer Science. McGill University

Classes and Objects. Object Orientated Analysis and Design. Benjamin Kenwright

Definition of Information Systems

To be or not programmable Dimitri Papadimitriou, Bernard Sales Alcatel-Lucent April 2013 COPYRIGHT 2011 ALCATEL-LUCENT. ALL RIGHTS RESERVED.

Comparative Analysis of Formal Specification Languages Z, VDM and B

Process and data flow modeling

0. Overview of this standard Design entities and configurations... 5

Intro to semantics; Small-step semantics Lecture 1 Tuesday, January 29, 2013

Software Testing. Software Testing

Architectural Design

Formal Semantics of Programming Languages

Transcription:

Formal Techniques for the unambiguous of software Objectives To explain why formal techniques help discover problems in system requirements To describe the use of algebraic techniques for interface To describe the use of model-based techniques for behavioural Topics covered Formal in the software process Interface Behavioural Formal methods Formal is part of a more general collection of techniques that are known as formal methods These are all based on mathematical representation and analysis of software Formal methods include Formal analysis and proof Transformational development Program verification 1

Acceptance of formal methods Formal methods have not become mainstream software development techniques as was once predicted Other software engineering techniques have been successful at increasing system quality. Market changes have made time-to-market rather than software with a low error count the key factor. Formal methods do not reduce time to market Formal methods are hard to scale up to large systems Use of formal methods Their principal benefits are in reducing the number of errors in systems so their main area of applicability is critical systems In this area, the use of formal methods is most likely to be costeffective in the software process and design are intermingled. Architectural design is essential to structure a. Formal s are expressed in a mathematical notation with precisely defined vocabulary, syntax and semantics. Definition and design Architectural Software High-level 2

in the software process Definition System Modeling Formal Architectural High-level techniques Algebraic approach The system is specified in terms of its operations and their relationships Model-based approach The system is specified in terms of a state model that is constructed using mathematical constructs such as sets and sequences. Operations are defined by modifications to the system s state Formal languages Sequential Concurrent Algebraic Larch Lotos Model-based 1. Z 2. VDM 3. B 1. CSP 2. Petri Nets Use of formal Formal involves investing more effort in the early phases of software development This reduces requirements errors as it forces a detailed analysis of the requirements Incompleteness and inconsistencies can be discovered and resolved Hence, savings as made as the amount of rework due to requirements problems is reduced 3

Cost Development costs with formal Validation Validation & Implementation & Implementation Without formal With formal Interface Large systems are decomposed into subsystems with well-defined interfaces between these subsystems of subsystem interfaces allows independent development of the different subsystems Interfaces may be defined as abstract data types or object classes The algebraic approach to formal is particularly well-suited to interface Sub-system interfaces Interface objects The structure of an algebraic < Name> (Generic Parameter) Sort <name> Imports <list of names> Sub-system A Sub-system B Informal description of the sort and its operations Operation signatures setting out the names and the types of the parameters to the operations defined over the sort Axioms defining the operations over the sort 4

components Introduction Defines the sort (the type name) and declares other s that are used Description Informally describes the operations on the type Signature Defines the syntax of the operations in the interface and their parameters Axioms Defines the operation semantics by defining axioms which characterise behaviour Systematic algebraic Algebraic s of a system may be developed in a systematic way structuring. naming. Operation selection. Informal operation Syntax definition Axiom definition operations Constructor operations. Operations which create entities of the type being specified Inspection operations. Operations which evaluate entities of the type being specified To specify behaviour, define the inspector operations for each constructor operation Interface in critical systems Consider an air traffic control system where aircraft fly through managed sectors of airspace Each sector may include a number of aircraft but, for safety reasons, these must be separated In this example, a simple vertical separation of 300m is proposed The system should warn the controller if aircraft are instructed to move so that the separation rule is breached 5

A sector object Critical operations on an object representing a controlled sector are Enter. Add an aircraft to the controlled airspace Leave. Remove an aircraft from the controlled airspace Move. Move an aircraft from one height to another Lookup. Given an aircraft identifier, return its current height Primitive operations It is sometimes necessary to introduce additional operations to simplify the The other operations can then be defined using these more primitive operations Primitive operations Create. Bring an instance of a sector into existence Put. Add an aircraft without safety checks In-space. Determine if a given aircraft is in the sector Occupied. Given a height, determine if there is an aircraft within 300m of that height Sector commentary Use the basic constructors Create and Put to specify other operations Define Occupied and In-space using Create and Put and use them to make checks in other operation definitions All operations that result in changes to the sector must check that the safety criterion holds 6