SlideShare a Scribd company logo
1 of 20
Download to read offline
Formalizing and Operationalizing Industrial Standards

                     Dominik Dietrich      Lutz Schr¨der
                                                    o             Ewaryst Schulz

                                        DFKI Bremen, Germany
                                         ewaryst.schulz@dfki.de


                                 International Conference on
                        Fundamental Approaches to Software Engineering
                                    Saarbr¨cken, Germany
                                          u
                                       March 30 2011




Formalizing Industrial Standards                                       German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                                  for Artificial Intelligence
Overview


     The problem
         Assure proper functioning of safety critical systems
         Required functional properties of mechanical sub-components must
         be satisfied

     Our solution
         Use engineering calculation methods
         Formal language for engineering calculations
         Architecture allowing efficient execution and formal verification




Formalizing Industrial Standards                          German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                     for Artificial Intelligence
Outline


     1   Motivation

     2   The Industrial Standard EN 1591

     3   The engineering calculation language EnCL

     4   Formal verification of calculations

     5   Integration into Hets framework

     6   Conclusion


Formalizing Industrial Standards                     German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                for Artificial Intelligence
Reliable Mechanical Engineering


     Principal motivation
         Assure proper functioning of system, e.g., pipeline of chemical plant
         Verification of functional properties of sub-components, e.g.,
         flange connection withstands some given pressure

     Some possible approaches
         Formulating properties from first principles (mechanics, geometry)
         → level of abstraction not adequate
         Instead: Relying on established practice in engineering
         → industrial standards, engineering calculations, e.g.,
         standard for flange connections EN 1591



Formalizing Industrial Standards                          German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                     for Artificial Intelligence
The Industrial Standard EN 1591


         A standard for gasketed circular flange connections
         Consists of applicability, nomenclature and calculation method
         Assures impermeability and mechanical strength of the system




Formalizing Industrial Standards                         German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                    for Artificial Intelligence
Calculation Method Parameter


     The input parameters to the calculation method
         Flange data, e.g., dimensions and material constants




         Data for operating states such as pressure and temperature
Formalizing Industrial Standards                        German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                   for Artificial Intelligence
Calculation Method Control Flow


        Explicit back-jumps require
        conditional loops
        Evaluation order determined by
        dependency in definitions
        Piecewise function definitions
        require conditionals




Formalizing Industrial Standards         German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                    for Artificial Intelligence
Calculation Method analyzed


     The standard involves calculations using
                                                           √
         Real arithmetic with real functions, e.g., cos,   n


         Special functions such as maximization

     Requirements for formalizing the calculation method
         Specify dependencies in arbitrary order
         (subject to well-formedness requirements)
         Imperative control flow
         Schematic expressions

     Observation: little control but a lot of dependencies
     → division into program part and dependency store
Formalizing Industrial Standards                           German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                      for Artificial Intelligence
The Engineering Calculation
    Language EnCL

     The main building blocks
         Terms over a {bool, real}-sorted Signature Σ with predefined part
         Σpre = {������, cos, ...} and user-defined part Σuser = {c1 , c2 , ...}
         Special term constructions
             Predefined binders: e.g., solve(t = s, x)
             convergence predicate in loop conditions: convergence(0.001, c)

         Dependency stores are sets of dependencies c(x1 , ..., xn ) = t
         Programs constructs
             Assignment: c(x1 , ..., xn ) := t
             Sequence: p1 ; ...; pn
             Loop: repeat p until b
             Conditional: case b : p
Formalizing Industrial Standards                               German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                          for Artificial Intelligence
EnCL and Computer Algebra
    Systems

     Running EnCL program p with dependency store ������������

       CAS provides many predefined               Interpreter                      CAS
       functions
                                                                  start session
       CAS supports dependency stores
       CAS-interface                                               send(������������)

           evaluate terms
           assign terms to constants                 ⎧            assign(c, t)

       Send dependencies to the CAS
                                                     ⎪                  t′
                                                 run
                                                     ⎨
                                                                        .
                                                                        .
                                                                        .
       Run program p                          program⎪               eval(u)
                                                                       u′
                                                     ⎩
       The interpreter maintains dependency
       store (in parallel to CAS)


Formalizing Industrial Standards                         German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                    for Artificial Intelligence
A Small Example


     Calculating a root of cos in EnCL using Newton’s Method

        The EnCL specification            Dependency Graph
        x = 10 %(A)%
        y = cos(x) %(B)%                                    A
        z = sin(x) %(C)%                                x
         ------------------------                 B             C
        repeat                                y                      z
          x := x + y/z %(D)%
        until convergence(0.001, x)                         D

     Behaves like
     A;B;C;repeat x’:=x;D;B;C; until reldistLe(x, x’, 0.001)
Formalizing Industrial Standards                      German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                 for Artificial Intelligence
EnCL Semantics



         Σ-algebras with standard interpretation for predefined part Σpre

         [[t]]������ ∈ R is the interpretation of t in the Σ-algebra ������

         [[t]]������������ is the term t ′ after full substitution of t w.r.t. ������������

         If ������ is a model of ������������ then [[[[t]]������������ ]]������ = [[t]]������

         [[c(x1 , ..., xn ) := t]]������������ = ������������ [c(x1 , ..., xn ) = [[t]]������������ ]




Formalizing Industrial Standards                                            German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                                       for Artificial Intelligence
Formal Verification



     Correctness of calculations crucial for safety critical applications

         The CAS cannot be fully trusted
         However, results of the CAS can be formally verified
             Mark selected subterms as verification points
             Produce verification conditions

         Use Hets to prove verification conditions
             EnCL term semantics defined in HO-CASL,
             i.e., axiomatization of Σpre

         Checking solutions is easier than finding them

Formalizing Industrial Standards                             German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                        for Artificial Intelligence
Verification Conditions: Example




    EnCL program                      Insert verification point at solve
       .                              CAS computes solve(t = s, x) in
       . Dependency Store = ������������
       .                              context ������������ and returns r
    y := solve(t=s, x)                Verification condition
       .
       .
                                      ⋀︀
       .                                 ������������ ⇒ solve(t = s, x) = r
                                        Semantics of solve in HO-CASL
                                      Translate to HO-CASL for proving




Formalizing Industrial Standards                       German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                  for Artificial Intelligence
Integration of EnCL into Hets



                The Hets Framework
                                          HO-CASL
                                        Higher Order Logic



                           EnCL
                        Specification     Interpreter
                         Language


                                        CAS Interface




Formalizing Industrial Standards                             German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                        for Artificial Intelligence
Conclusion


         Formal verification of functional properties of mechanical systems
         Formal executable language for engineering calculations EnCL
         Integration into Institution Framework
         Implementation based on Hets Framework
         Generic CAS interface in Hets instantiated for Mathematica,
         Maple and Reduce
         Support for uncertain numerical values
         EnCL-formalization of calculation method from EN 1591
         Future Work
             Statement and proof of properties of calculation method
             Partial instantiations of the standard ensuing simplification
             Structuring of multiple calculation methods
Formalizing Industrial Standards                                 German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                            for Artificial Intelligence
Thank you for your attention.




Formalizing Industrial Standards                       German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                  for Artificial Intelligence
Formalizing Industrial Standards      German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                 for Artificial Intelligence
Uncertainty


     Some situations require dealing with uncertain numeric values

         Input parameters up to an error value, e.g., 1.53 ± 0.01
         CAS returns only approximation
         Require tracking of uncertainty throughout the CAS session
         → Mathematica’s Numerical-Precision Tracking (NPT)
         Adapt verification condition generation
         → replace numbers by intervals




Formalizing Industrial Standards                         German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                                    for Artificial Intelligence
Formalizing Industrial Standards      German Research Center
D. Dietrich, L. Schr¨der, E. Schulz
                    o                 for Artificial Intelligence

More Related Content

Similar to FASE 2011 - Formalizing and Operationalizing Industrial Standards

1) What are the digital design entry methods Form your opinion, whi.pdf
1) What are the digital design entry methods Form your opinion, whi.pdf1) What are the digital design entry methods Form your opinion, whi.pdf
1) What are the digital design entry methods Form your opinion, whi.pdf
fasttrackscardecors
 
Software engineering
Software engineeringSoftware engineering
Software engineering
Fahe Em
 
Software engineering
Software engineeringSoftware engineering
Software engineering
Fahe Em
 

Similar to FASE 2011 - Formalizing and Operationalizing Industrial Standards (20)

Spdas2 vlsibput
Spdas2 vlsibputSpdas2 vlsibput
Spdas2 vlsibput
 
3. Synthesis.pptx
3. Synthesis.pptx3. Synthesis.pptx
3. Synthesis.pptx
 
Summer training vhdl
Summer training vhdlSummer training vhdl
Summer training vhdl
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Hardware Description Language
Hardware Description Language Hardware Description Language
Hardware Description Language
 
Lafauci dv club oct 2006
Lafauci dv club oct 2006Lafauci dv club oct 2006
Lafauci dv club oct 2006
 
Summer training vhdl
Summer training vhdlSummer training vhdl
Summer training vhdl
 
Dsp lab manual 15 11-2016
Dsp lab manual 15 11-2016Dsp lab manual 15 11-2016
Dsp lab manual 15 11-2016
 
Linking and Versioning Support for AutomationML: A Model-Driven Engineering P...
Linking and Versioning Support for AutomationML: A Model-Driven Engineering P...Linking and Versioning Support for AutomationML: A Model-Driven Engineering P...
Linking and Versioning Support for AutomationML: A Model-Driven Engineering P...
 
slide8.ppt
slide8.pptslide8.ppt
slide8.ppt
 
How to design Programs using VHDL
How to design Programs using VHDLHow to design Programs using VHDL
How to design Programs using VHDL
 
Digital_system_design_A (1).ppt
Digital_system_design_A (1).pptDigital_system_design_A (1).ppt
Digital_system_design_A (1).ppt
 
Dica ii chapter slides
Dica ii chapter slidesDica ii chapter slides
Dica ii chapter slides
 
C Programming Tutorial - www.infomtec.com
C Programming Tutorial - www.infomtec.comC Programming Tutorial - www.infomtec.com
C Programming Tutorial - www.infomtec.com
 
1) What are the digital design entry methods Form your opinion, whi.pdf
1) What are the digital design entry methods Form your opinion, whi.pdf1) What are the digital design entry methods Form your opinion, whi.pdf
1) What are the digital design entry methods Form your opinion, whi.pdf
 
Automatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSELAutomatic Task-based Code Generation for High Performance DSEL
Automatic Task-based Code Generation for High Performance DSEL
 
FACS2017-Presentation.pdf
FACS2017-Presentation.pdfFACS2017-Presentation.pdf
FACS2017-Presentation.pdf
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Mini Project- ROM Based Sine Wave Generator
Mini Project- ROM Based Sine Wave GeneratorMini Project- ROM Based Sine Wave Generator
Mini Project- ROM Based Sine Wave Generator
 

Recently uploaded

Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
Priya Reddy
 
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
wpkuukw
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
uodye
 
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pillsIn Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
Abortion pills in Riyadh +966572737505 get cytotec
 
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
oopacde
 
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
wpkuukw
 
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get CytotecBuy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
ehyxf
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
tufbav
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
uodye
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
tufbav
 
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
ougvy
 
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Obat Aborsi 088980685493 Jual Obat Aborsi
 
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
wpkuukw
 
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
ehyxf
 

Recently uploaded (20)

Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
Mankhurd Call Girls, 09167354423 Mankhurd Escorts Services,Mankhurd Female Es...
 
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
 
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pillsIn Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
In Riyadh Saudi Arabia |+966572737505 | Buy Cytotec| Get Abortion pills
 
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
 
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
在线办理(scu毕业证)南十字星大学毕业证电子版学位证书注册证明信
 
Hilti's Latest Battery - Hire Depot.pptx
Hilti's Latest Battery - Hire Depot.pptxHilti's Latest Battery - Hire Depot.pptx
Hilti's Latest Battery - Hire Depot.pptx
 
Call Girls Amethi 9332606886 HOT & SEXY Models beautiful and charming call g...
Call Girls Amethi  9332606886 HOT & SEXY Models beautiful and charming call g...Call Girls Amethi  9332606886 HOT & SEXY Models beautiful and charming call g...
Call Girls Amethi 9332606886 HOT & SEXY Models beautiful and charming call g...
 
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
 
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get CytotecBuy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
 
Point of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratoryPoint of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratory
 
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
 
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
 
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
 
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
 
Vashi Affordable Call Girls ,07506202331,Vasai Virar Charming Call Girl
Vashi Affordable Call Girls ,07506202331,Vasai Virar Charming Call GirlVashi Affordable Call Girls ,07506202331,Vasai Virar Charming Call Girl
Vashi Affordable Call Girls ,07506202331,Vasai Virar Charming Call Girl
 
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
 

FASE 2011 - Formalizing and Operationalizing Industrial Standards

  • 1. Formalizing and Operationalizing Industrial Standards Dominik Dietrich Lutz Schr¨der o Ewaryst Schulz DFKI Bremen, Germany ewaryst.schulz@dfki.de International Conference on Fundamental Approaches to Software Engineering Saarbr¨cken, Germany u March 30 2011 Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 2. Overview The problem Assure proper functioning of safety critical systems Required functional properties of mechanical sub-components must be satisfied Our solution Use engineering calculation methods Formal language for engineering calculations Architecture allowing efficient execution and formal verification Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 3. Outline 1 Motivation 2 The Industrial Standard EN 1591 3 The engineering calculation language EnCL 4 Formal verification of calculations 5 Integration into Hets framework 6 Conclusion Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 4. Reliable Mechanical Engineering Principal motivation Assure proper functioning of system, e.g., pipeline of chemical plant Verification of functional properties of sub-components, e.g., flange connection withstands some given pressure Some possible approaches Formulating properties from first principles (mechanics, geometry) → level of abstraction not adequate Instead: Relying on established practice in engineering → industrial standards, engineering calculations, e.g., standard for flange connections EN 1591 Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 5. The Industrial Standard EN 1591 A standard for gasketed circular flange connections Consists of applicability, nomenclature and calculation method Assures impermeability and mechanical strength of the system Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 6. Calculation Method Parameter The input parameters to the calculation method Flange data, e.g., dimensions and material constants Data for operating states such as pressure and temperature Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 7. Calculation Method Control Flow Explicit back-jumps require conditional loops Evaluation order determined by dependency in definitions Piecewise function definitions require conditionals Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 8. Calculation Method analyzed The standard involves calculations using √ Real arithmetic with real functions, e.g., cos, n Special functions such as maximization Requirements for formalizing the calculation method Specify dependencies in arbitrary order (subject to well-formedness requirements) Imperative control flow Schematic expressions Observation: little control but a lot of dependencies → division into program part and dependency store Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 9. The Engineering Calculation Language EnCL The main building blocks Terms over a {bool, real}-sorted Signature Σ with predefined part Σpre = {������, cos, ...} and user-defined part Σuser = {c1 , c2 , ...} Special term constructions Predefined binders: e.g., solve(t = s, x) convergence predicate in loop conditions: convergence(0.001, c) Dependency stores are sets of dependencies c(x1 , ..., xn ) = t Programs constructs Assignment: c(x1 , ..., xn ) := t Sequence: p1 ; ...; pn Loop: repeat p until b Conditional: case b : p Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 10. EnCL and Computer Algebra Systems Running EnCL program p with dependency store ������������ CAS provides many predefined Interpreter CAS functions start session CAS supports dependency stores CAS-interface send(������������) evaluate terms assign terms to constants ⎧ assign(c, t) Send dependencies to the CAS ⎪ t′ run ⎨ . . . Run program p program⎪ eval(u) u′ ⎩ The interpreter maintains dependency store (in parallel to CAS) Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 11. A Small Example Calculating a root of cos in EnCL using Newton’s Method The EnCL specification Dependency Graph x = 10 %(A)% y = cos(x) %(B)% A z = sin(x) %(C)% x ------------------------ B C repeat y z x := x + y/z %(D)% until convergence(0.001, x) D Behaves like A;B;C;repeat x’:=x;D;B;C; until reldistLe(x, x’, 0.001) Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 12. EnCL Semantics Σ-algebras with standard interpretation for predefined part Σpre [[t]]������ ∈ R is the interpretation of t in the Σ-algebra ������ [[t]]������������ is the term t ′ after full substitution of t w.r.t. ������������ If ������ is a model of ������������ then [[[[t]]������������ ]]������ = [[t]]������ [[c(x1 , ..., xn ) := t]]������������ = ������������ [c(x1 , ..., xn ) = [[t]]������������ ] Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 13. Formal Verification Correctness of calculations crucial for safety critical applications The CAS cannot be fully trusted However, results of the CAS can be formally verified Mark selected subterms as verification points Produce verification conditions Use Hets to prove verification conditions EnCL term semantics defined in HO-CASL, i.e., axiomatization of Σpre Checking solutions is easier than finding them Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 14. Verification Conditions: Example EnCL program Insert verification point at solve . CAS computes solve(t = s, x) in . Dependency Store = ������������ . context ������������ and returns r y := solve(t=s, x) Verification condition . . ⋀︀ . ������������ ⇒ solve(t = s, x) = r Semantics of solve in HO-CASL Translate to HO-CASL for proving Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 15. Integration of EnCL into Hets The Hets Framework HO-CASL Higher Order Logic EnCL Specification Interpreter Language CAS Interface Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 16. Conclusion Formal verification of functional properties of mechanical systems Formal executable language for engineering calculations EnCL Integration into Institution Framework Implementation based on Hets Framework Generic CAS interface in Hets instantiated for Mathematica, Maple and Reduce Support for uncertain numerical values EnCL-formalization of calculation method from EN 1591 Future Work Statement and proof of properties of calculation method Partial instantiations of the standard ensuing simplification Structuring of multiple calculation methods Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 17. Thank you for your attention. Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 18. Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 19. Uncertainty Some situations require dealing with uncertain numeric values Input parameters up to an error value, e.g., 1.53 ± 0.01 CAS returns only approximation Require tracking of uncertainty throughout the CAS session → Mathematica’s Numerical-Precision Tracking (NPT) Adapt verification condition generation → replace numbers by intervals Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence
  • 20. Formalizing Industrial Standards German Research Center D. Dietrich, L. Schr¨der, E. Schulz o for Artificial Intelligence