AITP 2019 Obergurgl, Austria April 9, 2019 Outline Introduction - - PowerPoint PPT Presentation

aitp 2019
SMART_READER_LITE
LIVE PREVIEW

AITP 2019 Obergurgl, Austria April 9, 2019 Outline Introduction - - PowerPoint PPT Presentation

Using Machine Learning to Minimize User Intervention in Theorem Proving based Dynamic Fault Tree Analysis Yassmeen Elderhalli, Osman Hasan and Sofine Tahar Concordia University Montreal, QC, Canada AITP 2019 Obergurgl, Austria April 9, 2019


slide-1
SLIDE 1

Yassmeen Elderhalli, Osman Hasan and Sofiène Tahar

Using Machine Learning to Minimize User Intervention in Theorem Proving based Dynamic Fault Tree Analysis

AITP 2019

Obergurgl, Austria April 9, 2019

Concordia University

Montreal, QC, Canada

slide-2
SLIDE 2
  • Introduction
  • Dynamic Fault Trees
  • Proposed Methodology
  • Preliminary Results
  • Conclusion and Future Work

Outline

slide-3
SLIDE 3

1

Failure Analysis

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

Analyze the effect of components faults on the system failure

slide-4
SLIDE 4

2

  • Graphical representation of faults in the system
  • Critical top event which will cause system failure
  • The conditions are modeled using fault tree gates

Fault Trees

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-5
SLIDE 5

3

Fault Trees

Static Fault Trees SFTs Fault Trees Dynamic Fault Trees DFTs Failure dependencies in real systems

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-6
SLIDE 6

4

  • Critical top event which will

cause system failure

  • The conditions are modeled

using DFT and SFT gates

  • DFTs

capture the failure dependency using DFT gates (e.g. Priority-And gate)

Dynamic Fault Trees

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-7
SLIDE 7

AND gate

A B Q A B Q

5

Dynamic Fault Trees Gates

A B Q

FDEP

A T

Spare

A B Q

OR gate PAND gate FDEP gate Spare gate

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-8
SLIDE 8

Ultimate Goal (HOL4)

6

HOL Theories Training set Test set DFT Conjecture

Build ML Model Premise Selection DFT-based Features Extraction TacticToe Proof Steps

Verified Conjecture DFT Theories

Simplification Theorems Probabilistic Behavior DFT Gates

Probability Probabilistic PIE Lebesgue Integral Measure

Lemmas Helper Theorems

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-9
SLIDE 9
  • Formalization of DFT in HOL4 Theorem Prover

Work done

  • Y. Elderhalli, O. Hasan, W. Ahmad and S. Tahar. “Formal Dynamic Fault Trees

Analysis using an Integration of Theorem Proving and Model Checking”. In NASA Formal Methods (NFM-2018).

  • Y. Elderhalli, W. Ahmad, O. Hasan and S. Tahar “Probabilistic Analysis of

Dynamic Fault Trees using HOL Theorem Proving”, In Journal of Applied Logic,

2019 [to appear]

Sound Interactive (not Automated)

7

The current libraries only support the analysis of Dynamic Fault Trees interactively

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-10
SLIDE 10

Dynamic Fault Trees

8

  • Visualization of the cause of failure of the top event

based on the basic events

  • Dynamic gates in addition to the static gates
  • AND gate
  • OR gate
  • Priority AND gate
  • Functional Dependency gate
  • Spare gate
  • Algebraic representation used in the DFT analysis

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-11
SLIDE 11
  • DFT temporal operators based on the time of failure:
  • AND

𝑒(𝐵 . 𝐶) = max(𝑒(𝐵), 𝑒(𝐶))

  • OR

𝑒(𝐵 + 𝐶) = min(𝑒(𝐵), 𝑒(𝐶))

  • Simultaneous

𝑒(𝐵 Δ 𝐶) = ቊ𝑒 𝐵 𝑗𝑔 𝑒 𝐵 = 𝑒(𝐶) +∞ 𝑗𝑔 𝑒 𝐵 ≠ 𝑒(𝐶)

9

Dynamic Fault Trees Operators

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-12
SLIDE 12
  • Before

𝑒(𝐵 ⊲ 𝐶) = ቊ𝑒 𝐵 𝑗𝑔 𝑒 𝐵 < 𝑒(𝐶) +∞ 𝑗𝑔 𝑒 𝐵 ≥ 𝑒(𝐶)

  • Inclusive Before

𝑒(𝐵 ⊲ 𝐶) = ቊ𝑒 𝐵 𝑗𝑔 𝑒 𝐵 ≤ 𝑒(𝐶) +∞ 𝑗𝑔 𝑒 𝐵 > 𝑒(𝐶)

10

Dynamic Fault Trees Operators

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-13
SLIDE 13

Probabilistic Behavior of Gates

11

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-14
SLIDE 14

Quantitative Analysis

  • The probability of the top event can be expressed using

the probabilistic Principle of Inclusion Exclusion (PIE)

12

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-15
SLIDE 15
  • The probabilistic failure behavior of the PAND

13

Verification of Probabilistic Behavior of PAND

  • Theorem. Prob PAND

˫ ∀ X Y p fY t. rv_gt0_ninfty [X;Y] ∧ 0 ≤ 𝑢 ∧ prob_space p ∧

indep_var p lborel X lborel Y ∧ distributed p lborel Y fY ∧ 0 ≤ 𝑔

𝑍 ∧

measurable_CDF (real o (CDF p (real o X) t)) ∧ cont_CDF (real o (CDF p (real o X) t))⟹ (prob p (DFT_event p (Y . (X ⊲ Y) t) =׬

𝑢 𝑔 𝑍 𝑧 × 𝐺 𝑌 𝑧 𝑒𝑧)

Defines a density function for Y

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-16
SLIDE 16

Algebraic Simplification Theorems

  • Theorems needed to reduce the expression of the top

event of the DFT (structure function)

  • Many simplification theorems exist1:
  • Commutativity
  • Associativity
  • Distributivity

1- [G. Merle , “Algebraic modelling of Dynamic Fault Trees, Contribution to Qualitative and Quantitative Analysis”, PhD thesis, ENS, France, 2010].

14

𝐵 ∆ 𝐶 = 𝐶 ∆ 𝐵 𝐵 + 𝐶 + 𝐷 = 𝐵 + 𝐶 + 𝐷 𝐵. 𝐶 + 𝐷 = 𝐵. 𝐶 + 𝐵. 𝐷

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-17
SLIDE 17
  • It consists of:
  • Pumps system
  • Motors system
  • CPUs

The Cardiac Assist System

15

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-18
SLIDE 18
  • A reduced structure function is obtained to conduct

both qualitative and quantitative analyses.

The Cardiac Assist System

16

  • Theorem. Reduced cardiac assist system

˫ ∀CS SS MA MS MB P B PA PB PS.

(∀ s. ALL_DISTINCT [MA s; MS s; PA s; PB s; PS s]) ⟹ ((shared_spare PA PB PS PS) . (shared_spare PB PA PS PS) + (PAND MS MA) + (HSP MA MB ) + (HSP (FDEP ((CS + SS) P) (FDEP ((CS + SS) B)) = CS + SS + (MA . (MS ⊲ MA)) + MA . MB + P.B + PA . PB. PS)

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-19
SLIDE 19
  • Theorem. Reduced cardiac assist system

˫ ∀CS SS MA MS MB P B PA PB PS.

(∀ s. ALL_DISTINCT [MA s; MS s; PA s; PB s; PS s]) ⟹ ((shared_spare PA PB PS PS) . (shared_spare PB PA PS PS) + (PAND MS MA) + (HSP MA MB ) + (HSP (FDEP ((CS + SS) P) (FDEP ((CS + SS) B)) = CS + SS + (MA . (MS ⊲ MA)) + MA . MB + P.B + PA . PB. PS)

The Cardiac Assist System

17

slide-20
SLIDE 20
  • The quantitative analysis is performed by encapsulating

the top event into a DFT_event then expressing it as the union of events as:

  • Lemma. Cardiac assist system union_list

˫ ∀PA PB PS MS MA MB CS SS P B p t.

DFT_event p (CS + SS + (MA . (MS ⊲ MA)) + MA . MB + P.B + PA . PB. PS) t = union_list [DFT_event p CS t; DFT_event p SS t; DFT_event p (MA . (MS ⊲ MA)) t; DFT_event p (MA. MB) t; DFT_event p (P. B) t; DFT_event p (PA. PB. PS) t]

The Cardiac Assist System

18

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-21
SLIDE 21
  • The probability of failure of the top event is verified for

generic expressions of distribution and density functions as:

  • Theorem. Prob Cardiac assist system

˫ ∀𝐷𝑇 𝑇𝑇 𝑁𝐵 𝑁𝑇 𝑁𝐶 𝑄 𝐶 𝑄𝐵 𝑄𝐶 𝑄𝑇 p t fMA.

0≤ t ∧ prob_space p ∧ ALL_DISTINCT_RV [CS; SS; MA; MS; MB; P; B; PA; PB; PS] p t ∧ indep_vars_sets [CS; SS; MA; MS; MB; P; B; PA; PB; PS] p t ∧ distributed p lborel MA fMA ∧ 0 ≤ 𝑔𝑁𝐵 ∧ cont_CDF FMS ∧ measurable_CDF FMS ⟹

The Cardiac Assist System

19

FMS is continuous and measurable

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-22
SLIDE 22

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

(prob p (DFT_event p (CS + SS + (MA . (MS ⊲ MA)) + MA . MB + P.B + PA . PB. PS) t) = 𝐺𝐷𝑇 𝑢 + 𝐺

𝑇𝑇 𝑢 + ׬ 𝑢 𝑔 𝑁𝐵 𝑧 × 𝐺𝑁𝑇 𝑧 𝑒𝑧 + 𝐺𝑁𝐵 𝑢

× 𝐺𝑁𝐶 𝑢 + 𝐺𝑄 𝑢 × 𝐺𝐶 𝑢 + 𝐺𝑄𝐵 𝑢 × 𝐺𝑄𝐶 𝑢 × 𝐺𝑄𝑇 𝑢 − ⋯ + ⋯ − 𝐺𝐷𝑇 𝑢 × 𝐺

𝑇𝑇 𝑢 × ( ׬ 𝑢 𝑔 𝑁𝐵 𝑧 × 𝐺𝑁𝑇 𝑧 𝑒𝑧) × 𝐺𝑁𝐵 𝑢

× 𝐺𝑁𝐶 𝑢 × 𝐺𝑄 𝑢 × 𝐺𝐶 𝑢 × 𝐺𝑄𝐵 𝑢 × 𝐺𝑄𝐶 𝑢 × 𝐺𝑄𝑇 𝑢 Probability of intersection

  • f 6 events

The result of applying PIE is 63 (26-1) elements

The Cardiac Assist System

20

slide-23
SLIDE 23
  • DFT gates and simplification theorems
  • Probabilistic behavior of DFT gates
  • Utilizing the probabilistic PIE in the quantitative

analysis leads to having many subgoals

  • Intermediate lemmas are verified that follow

the same pattern Formalization Summary

21

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-24
SLIDE 24

Proposed Methodology

22

HOL Theories Training set Test set DFT Conjecture

Build ML Model Premise Selection DFT-based Features Extraction TacticToe Proof Steps

Verified Conjecture DFT Theories

Simplification Theorems Probabilistic Behavior DFT Gates

Probability Probabilistic PIE Lebesgue Integral Measure

Lemmas Helper Theorems

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-25
SLIDE 25

Proposed Methodology

22

HOL Theories Training set Test set DFT Theories

Simplification Theorems Probabilistic Behavior DFT Gates

Probability Probabilistic PIE Lebesgue Integral Measure

Lemmas Helper Theorems

  • 1. C. Kaliszyk, F. Chollet, and C. Szegedy. “Holstep: A machine learning dataset for higher-
  • rder logic theorem proving”, 2017.
  • Divide the existing theories into training and test sets, similar to

Holstep1 , based on certain features, such as input statements

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-26
SLIDE 26
  • For DFT conjectures, features are extracted to build ML models

such as neural networks

  • The ML models will be used to find the suitable premises

Proposed Methodology

22

HOL Theories Training set Test set DFT Conjecture

Build ML Model Premise Selection DFT-based Features Extraction

DFT Theories

Simplification Theorems Probabilistic Behavior DFT Gates

Probability Probabilistic PIE Lebesgue Integral Measure

Lemmas Helper Theorems

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-27
SLIDE 27

Proposed Methodology

22

HOL Theories Training set Test set DFT Conjecture

Build ML Model Premise Selection DFT-based Features Extraction TacticToe Proof Steps

Verified Conjecture DFT Theories

Simplification Theorems Probabilistic Behavior DFT Gates

Probability Probabilistic PIE Lebesgue Integral Measure

Lemmas Helper Theorems

  • Use TacticToe to find the proof steps of the

conjecture or to narrow down the choices

  • TacticToe can be also used to verify the

intermediate lemmas

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-28
SLIDE 28
  • TacticToe1 is used to record part of DFT theories
  • TacticToe is tested with a small subset of intermediate lemmas
  • Proof steps were determined for small lemmas not complex

theorems

TacticToe

∀A1 A2 A3 A4 A5 A6 p. prob_space p ˄ A1 ∈ events p ˄ A2 ∈ events p ˄ A3 ∈ events p ˄ A4 ∈ events p ˄ A5 ∈ events p ˄ A6 ∈ events p ⟹ A1 ∩ A2 ∩ A3 ∩ A4 ∩ A5 ∩ A6 ∈ events p RW_TAC bossLib.std_ss [] THEN (MATCH_MP_TAC o REWRITE_RULE [subsets_def] o Q.SPEC `(p_space p, events p)`) ALGEBRA_INTER THEN RW_TAC bossLib.std_ss [] THENL [RW_TAC bossLib.std_ss [EVENTS_ALGEBRA], RW_TAC bossLib.std_ss [EVENTS_INTER]]);

23

1- In collaboration with Cezary Kaliszyk

slide-29
SLIDE 29
  • Verifying generic lemmas that can facilitate the learning process1
  • The extreal addition associativity is used with the PIE and other

lemmas to reach the final form of the probability of CAS

Generic Lemmas

∀L. (¬MEM PosInf L) ˅ (¬MEM NegInf L) ⟹ (FOLDR (λa b. a + b) 0 L = FOLDL (λa b. a+b) 0 L)

24

1- In collaboration with Cezary Kaliszyk ∀A1 A2 A3 A4 A5 A6 A7 A8 A9 A10. A1 ≠ PosInf ˄ A2 ≠ PosInf ˄ A3 ≠ PosInf ˄ A4 ≠ PosInf ˄ A5 ≠ PosInf ˄ A6 ≠ PosInf ˄ A7 ≠ PosInf ˄ A8 ≠ PosInf ˄ A9 ≠ PosInf ˄ A10 ≠ PosInf ⟹ (A1 + (A2 + (A3 + (A4 + (A5 + (A6 + (A7 + (A8 + (A9 + A10)))))))) = A1 + A2 + A3 + A4 + A5 + A6 + A7 + A8 + A9 + A10)

slide-30
SLIDE 30
  • Verified DFT algebraic analysis using interactive theorem

proving

  • A methodology to reduce user intervention in the

analysis using machine learning techniques

  • TacticToe is used with a small subset of DFT theorems

Conclusion

25

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-31
SLIDE 31
  • Divide DFT theories into training and testing sets
  • Create ML models and use them with the testing set
  • Use TacticToe to extract the proof steps that are useful

in the proof steps

  • Combine both ML models and TacticToe to generate the

proof steps required to verify a given conjecture

Future Work

26

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-32
SLIDE 32

Future Work

27

HOL Theories Training set Test set DFT Conjecture

Build ML Model Premise Selection DFT-based Features Extraction TacticToe Proof Steps

Verified Conjecture DFT Theories

Simplification Theorems Probabilistic Behavior DFT Gates

Probability Probabilistic PIE Lebesgue Integral Measure

Lemmas Helper Theorems

Introduction DFT Methodology Preliminary Results Conclusion and Future Work

slide-33
SLIDE 33

www.hvg.ece.concordia.ca