Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the...

19
Can regulatory bodies expect efficient help from formal methods? Second NASA Formal Methods Symposium Eduardo R. López Ruiz and Michel Lemoine

Transcript of Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the...

Page 1: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

Can regulatory bodies expectefficient help from formal methods?

Second NASA Formal Methods Symposium

Eduardo R. López Ruiz and Michel Lemoine

Page 2: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

2/19

Our original question

Can we use formal methods to assess civil aviation

regulations?

Page 3: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

3/19

Example of aviation requirements

Passengers may not carry prohibited articles into the security restricted area, nor the cabin of an aircraft

Flight crew members on flight deck duty must remain at the assigned duty station with seat belt fastened while the airplane

is taking off or landing

When aircraft in flight are approaching each other head-on, or nearly so, each must alter its course to the right

International Civil Aviation Organization

European Aviation Safety Agency

Federal AviationAdministration

Page 4: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

4/19

Atomic One provision, one requirement

Consistent Free from contradiction

Robust Exhaustive in its scope

Unambiguous Having one meaning

Current Not obsolete

Pertinent Relevant to an identified need

Feasible Implementable

Verifiable Its implementation can be ascertained

Desiderata for the requirements?

Page 5: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

5/19

Atomic One provision, one requirement

Consistent Free from contradiction

Robust Exhaustive in its scope

Unambiguous Having one meaning

Current Not obsolete

Pertinent Relevant to an identified need

Feasible Implementable

Verifiable Its implementation can be ascertained

Desiderata for the requirementsR

equi

re e

xper

tise

in

avia

tion

safe

ty/s

ecur

ity

Page 6: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

6/19

ConsistentFree from contradiction(including with other regulations)

Robust Exhaustively cover all the relevant scenarios (if only within a sub-domain)

Unambiguous Having one meaning

Current Not obsolete

Our scope

Page 7: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

7/19

Keeping regulations current

Objective-based (O-B)Objective-based (O-B)

Regulation Types

Defines only what is to be achieved without mandating

the means to comply

Defines only what is to be achieved without mandating

the means to comply

Prescriptive (P)Prescriptive (P)

Mandate the specific means to achieve compliance

More easily become outdated

Mandate the specific means to achieve compliance

More easily become outdated

(O-B)...they must take the necessary actions so as to

avert a collision

(P)…each must alter its course to the right

E.g.When aircraft in flight are approaching each other head-on…

Promote objective-based requirements rather than prescriptive requirements

Page 8: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

8/19

Making unambiguous, robust and consistent regulations

Regulations

Guidance MaterialHindsight!

To fight ambiguity:

• Provide definitions for the terms employed• Controlling the use of words• Providing supplementary guidance material

To ensure robustness and consistency:

• Expertise•

Page 9: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

9/19

Too late?!

Regulatory bodies are content with their “time-tested” regulations

Rat

e pe

r m

illio

n de

part

ures

35

30

25

20

15

10

5

0

1960 1965 1970 1975 1980 1985 1990 1995 2000 2005 2010 2015

Accident Rate

DAILY NEWS

Safest Means of Transportation(in terms of passenger-miles traveled)

Older regulations may be consistent and robust, but when they are amended,

all bets are off!

Page 10: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

10/19

Our proposed process inherited from Computer Sciences

REPORT

REPORT

����Validation

1

2

3

4

Inferring Results

6 Analysis of the Report

Semi formalModel

5

Systematic Probing

Semi formalTool

Semi formalTool

FormalTool

FormalTool

Formal ModelFormal ModelSemi formalModel

Semi formalModel

aa bb cc

dd

ModelEngineer

AviationAuthority

REGULA

TIO

N

REGULA

TIO

N

AMM

ENDE

D

AMM

END

EDDR

AFT

DRAF

T

Test CasesTest Cases

ReportReportReportReport

Animation/Simulation

Output

LEGEND

Trigger

Traceability

Input

Update

Output

LEGEND

Trigger

Traceability

Input

Update

Rigorous ModelingDomain

Knowledge

Model Reconciliation

Page 11: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

11/19

Example (1/3)

Behavior(Dynamic Aspects)

Passenger Bob

Conceptual View of a Passenger

Composition(Static Aspects)

Page 12: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

12/19

Example (2/3)

Behavior(Dynamic Aspects)

Composition(Static Aspects)

PassengerPassenger

PersonPerson

AbortAbort

Secure Passenger

do/ wait NOP

Secure Passenger

do/ wait NOP

Boarded Passengerentry/ Boarded= Trueexit/ Boarded= False

Boarded Passengerentry/ Boarded= Trueexit/ Boarded= False

enter Security Restricted Area [Exempted= True]

enter Security Restricted Area

enter Security Restricted Area [Authorized= True]/ carry Authorized Article

[Carriage_Prohibited_Articles= False]/Screened= Tru e

lose Boarding Pass [Valid_Airline_Ticket= True]/get Boarding Pass

do check-in [Check—inOK= False]

get Airline Ticket

end all

end all

end all

board Aircraft [Boarding_Pass_Valid= False]

get Boarding Pass[Valid_Airline_Ticket= True]

lose Exempted Status [Exempted= True]/ exit Securit y Restricted Area

lose Authorized Status [Authorized= True]/ exit Sec urity Restricted Area

exit Security Restricted Area/Screened= False

Abort

[Carriage_Prohibited_Articles= True]

Refuse Screening/ Denied= True

exit Aircraft

Screening

board Aircraft [Boarding_Pass_Valid= True]

lose Boarding Pass[Valid_Airline_Ticket= False]

do check-in [Check—inOK= True]/ get Boarding Pass

End

[Aircraft_Door_Closed= True]

Conceptual View of a Passenger

Graphical Model

Page 13: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

13/19

Example (3/3)

Behavior(Dynamic Aspects)

Composition(Static Aspects)

Conceptual View of a Passenger

Formal Model

Page 14: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

14/19

Back to our original question

Can we use formal methods to assess civil aviation

regulations?

Yes, we can !Best adapted for recently enacted or amended

prescriptive requirements

Page 15: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

15/19

We got results!

4.3.(a) Criteria for Small Airports

0 1 2 3 4 5

Large airport

Small airport

Small airport

day

flightsaverageyearly 2 0 ≤≤

“…airports with a yearly average of no more than two

commercial flights per day…”

- AMENDED TEXT -4.3.(a) Criteria for Small Airports

day

flightsrageyearly ave 2=

0 1 2 3 4 5

Large airport

Small airport

Large airport

“…airports with a yearly average of 2 commercial flights per day…”

- ORIGINAL TEXT -

But…

Page 16: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

16/19

Is it worth the candle?

No

Why not?• Regulators are not particularly troubled by the state of their regulations’ consistency and robustness

• Regulators have a hard time understanding formal notation

• Regulators cannot directly (in)validate the formal models

• An indirect (in)validation of the formal models is not straightforward

Page 17: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

17/19

Conclusions

• Technically, formal methods can be used to assess regulations

• Best adapted for recently enacted or amended prescriptive requirements

• Practically, their contributions fall outside the regulators’ current needs

• Realistically, regulators show more interest for semi-formal methods

• Easier to share knowledge between different end users• Better way of ‘seeing’ the impact of amendments

Page 18: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

18/19

Conclusions

• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved

• It is an intimidating task, considering the number of regulations that need to be taken into account

• But, thanks to harmonized regulations, agencies will be able to share the specification and validation efforts

Page 19: Can regulatory bodies expect efficient help from formal ...• A semi-formal specification of the regulations is a necessary first step that is yet to be achieved • It is an intimidating

Thank you for your attention!

Eduardo Rafael LOPEZ RUIZ [email protected] LEMOINE [email protected]

19/19