kth.sePublications KTH
Change search
Link to record
Permanent link

Direct link
Publications (8 of 8) Show all publications
Hampus, A. & Nyberg, M. (2025). A Theory of Probabilistic Contracts. In: Leveraging Applications of Formal Methods, Verification and Validation. Specification and Verification - 12th International Symposium, ISoLA 2024, Proceedings: . Paper presented at 12th International Symposium on Leveraging Applications of Formal Methods, Verification and Validation, ISoLA 2024, Crete, Greece, October 27-31, 2024 (pp. 296-319). Springer Nature
Open this publication in new window or tab >>A Theory of Probabilistic Contracts
2025 (English)In: Leveraging Applications of Formal Methods, Verification and Validation. Specification and Verification - 12th International Symposium, ISoLA 2024, Proceedings, Springer Nature , 2025, p. 296-319Conference paper, Published paper (Refereed)
Abstract [en]

In industrial-sized cyber-physical systems, ensuring fulfillment of requirements gets increasingly more costly as the number of components increases. To make the task feasible, compositional verification has been suggested as a scalable solution. Such techniques allow verification by divide-and-conquer, often using assume-guarantee contracts. Although previous research has focused mostly on the non-probabilistic setting, in the real world, probabilities often arise due to random hardware failures, stochastic communication delays, sensor ghost objects, machine learning components, rounding errors caused by finite-precision arithmetic, human behavior, and probabilistic algorithms. Therefore, for contract theories to be practically relevant to cyber-physical systems, there is a need to support probabilistic reasoning, for instance regarding safety and reliability. To this end, we propose a completely trace-based probabilistic contract theory, supporting general probability measures, continuous time, and continuous state spaces. To verify decompositions of such contracts, we also present a deductive system, which is illustrated on an industrially inspired automatic emergency braking example.

Place, publisher, year, edition, pages
Springer Nature, 2025
Keywords
Compositional verification, Contract theory, Probability
National Category
Computer Sciences Computer Systems
Identifiers
urn:nbn:se:kth:diva-356657 (URN)10.1007/978-3-031-75380-0_17 (DOI)001419014500017 ()2-s2.0-85208595091 (Scopus ID)
Conference
12th International Symposium on Leveraging Applications of Formal Methods, Verification and Validation, ISoLA 2024, Crete, Greece, October 27-31, 2024
Note

Part of ISBN 9783031753794

QC 20241121

Available from: 2024-11-20 Created: 2024-11-20 Last updated: 2025-03-17Bibliographically approved
Hampus, A. & Nyberg, M. (2024). A Theory of Probabilistic Contracts (With Proofs).
Open this publication in new window or tab >>A Theory of Probabilistic Contracts (With Proofs)
2024 (English)Report (Other academic)
National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-350235 (URN)
Note

QC 20240710

Available from: 2024-07-10 Created: 2024-07-10 Last updated: 2024-10-09Bibliographically approved
Hampus, A. & Nyberg, M. (2024). Formally verifying decompositions of stochastic specifications. International Journal on Software Tools for Technology Transfer, 26(2), 207-228
Open this publication in new window or tab >>Formally verifying decompositions of stochastic specifications
2024 (English)In: International Journal on Software Tools for Technology Transfer, ISSN 1433-2779, E-ISSN 1433-2787, Vol. 26, no 2, p. 207-228Article in journal (Refereed) Published
Abstract [en]

According to the principles of compositional verification, verifying that lower-level components satisfy their specification ensures that the whole system satisfies its top-level specification. The key step is to ensure that the lower-level specifications constitute a correct decomposition of the top-level specification. In a non-stochastic context, such decomposition can be analyzed using techniques of theorem proving. In industrial applications, especially in safety-critical systems, specifications are often of stochastic nature, for example, giving a bound on the probability that a system failure will occur before a given time. A decomposition of such a specification requires techniques beyond traditional theorem proving. The first contribution of the paper is a theoretical framework that allows the representation of, and reasoning about, stochastic and timed behavior of systems as well as specifications for such behavior. The framework is based on traces that describe the continuous-time evolution of a system, and specifications are formulated using timed automata combined with probabilistic acceptance conditions. The second contribution is a novel approach to verifying decompositions of such specifications by reducing the problem to checking emptiness of the solution space for a system of linear inequalities.

Place, publisher, year, edition, pages
Springer Nature, 2024
Keywords
Automata, Contracts, Refinement, Specification theory
National Category
Computer Systems
Identifiers
urn:nbn:se:kth:diva-367078 (URN)10.1007/s10009-024-00742-5 (DOI)001168918400001 ()2-s2.0-85185288333 (Scopus ID)
Note

QC 20250715

Available from: 2025-07-15 Created: 2025-07-15 Last updated: 2025-07-15Bibliographically approved
Hampus, A. & Nyberg, M. (2023). Verifying Refinement of Probabilistic Contracts Using Timed Automata (With Proofs).
Open this publication in new window or tab >>Verifying Refinement of Probabilistic Contracts Using Timed Automata (With Proofs)
2023 (English)Report (Refereed)
Abstract [en]

Compositional verification allows a system to be verified indirectly by verifying the individual components of the system. The keystep is to ensure that the decomposition of the system specification intocomponent specifications is correct. That is, it needs to be verified thatthe composition of the component specifications refines the system specification. In many cyber-physical systems, specifications are probabilisticin nature. For instance, a specification might state that the probabilityof reaching an unsafe state within 10.000 hours shall be less than 0.05.Verifying refinement under such assumptions requires techniques beyondtraditional theorem proving. This paper presents a solution where specifications are built up by probabilistic contracts based upon timed automata. In particular, the main contribution is an algorithm for verifyingrefinement between such specifications. The algorithm utilizes a reduction to the language emptiness problem, making the algorithm terminateafter a finite number of computations

Publisher
p. 21
Series
TRITA-ITM-RP ; 2023:6
Keywords
Probabilistic Contracts, Automata, Algorithm
National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-325814 (URN)
Note

QC 20230807

Available from: 2023-04-16 Created: 2023-04-16 Last updated: 2023-08-07Bibliographically approved
Hampus, A. & Nyberg, M. (2023). Verifying Refinement of Probabilistic Contracts Using Timed Automata. In: Theoretical Aspects of Software Engineering - 17th International Symposium, TASE 2023, Proceedings: . Paper presented at 17th International Symposium on Theoretical Aspects of Software Engineering, TASE 2023, Bristol, United Kingdom of Great Britain and Northern Ireland, July 4-6, 2023 (pp. 95-113). Springer Nature
Open this publication in new window or tab >>Verifying Refinement of Probabilistic Contracts Using Timed Automata
2023 (English)In: Theoretical Aspects of Software Engineering - 17th International Symposium, TASE 2023, Proceedings, Springer Nature , 2023, p. 95-113Conference paper, Published paper (Refereed)
Abstract [en]

Compositional verification allows a system to be verified indirectly by verifying the individual components of the system. The key step is to ensure that the decomposition of the system specification into component specifications is correct. That is, it needs to be verified that the composition of the component specifications refines the system specification. In many cyber-physical systems, specifications are probabilistic in nature. For instance, a specification might state that the probability of reaching an unsafe state within 10.000 h shall be less than 0.05. Verifying refinement under such assumptions requires techniques beyond traditional theorem proving. This paper presents a solution where specifications are built up by probabilistic contracts based upon timed automata. In particular, the main contribution is an algorithm for verifying refinement between such specifications. The algorithm utilizes a reduction to the language emptiness problem, making the algorithm terminate after a finite number of computations.

Place, publisher, year, edition, pages
Springer Nature, 2023
Keywords
Algorithms, Automata, Probabilistic Contracts
National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-334441 (URN)10.1007/978-3-031-35257-7_6 (DOI)001330380200006 ()2-s2.0-85164938598 (Scopus ID)
Conference
17th International Symposium on Theoretical Aspects of Software Engineering, TASE 2023, Bristol, United Kingdom of Great Britain and Northern Ireland, July 4-6, 2023
Note

Part of ISBN 9783031352560

QC 20241203

Available from: 2023-08-21 Created: 2023-08-21 Last updated: 2024-12-03Bibliographically approved
Kaalen, S., Hampus, A., Nyberg, M. & Mattsson, O. (2022). A Stochastic Extension of Stateflow. In: Association for Computing Machinery, New York, NY, United States (Ed.), ICPE 22: Proceedings of the 2022 ACM/SPEC on International Conference on Performance Engineering: . Paper presented at 13th ACM/SPEC International Conference on Performance Engineering (pp. 211-222). Association for Computing Machinery (ACM)
Open this publication in new window or tab >>A Stochastic Extension of Stateflow
2022 (English)In: ICPE 22: Proceedings of the 2022 ACM/SPEC on International Conference on Performance Engineering / [ed] Association for Computing Machinery, New York, NY, United States, Association for Computing Machinery (ACM) , 2022, p. 211-222Conference paper, Published paper (Refereed)
Abstract [en]

Although commonly used in industry, a major drawback of Stateflow is that it lacks support for stochastic properties; properties that are often needed to build accurate models of real-world systems. In order to solve this problem, as the first contribution, Stochastic Stateflow (SSF) is presented as a stochastic extension of a subset of Stateflow models. As the second contribution, the tool SMP-tool is updated with support for SSF models specified in Stateflow. Finally, as the third contribution, an industrial case study is presented.  

 

Place, publisher, year, edition, pages
Association for Computing Machinery (ACM), 2022
Keywords
Stateflow, SSF, SMP-tool, Stochastic, Model-based
National Category
Computational Mathematics
Identifiers
urn:nbn:se:kth:diva-313247 (URN)10.1145/3489525.3511679 (DOI)000883411400023 ()2-s2.0-85128682345 (Scopus ID)
Conference
13th ACM/SPEC International Conference on Performance Engineering
Projects
SafeDim
Funder
Vinnova, 2020-05131
Note

Part of proceedings: ISBN 978-1-4503-9143-6

QC 20220621

Available from: 2022-06-01 Created: 2022-06-01 Last updated: 2023-01-16Bibliographically approved
Hampus, A. & Nyberg, M. (2022). Formally Verifying Decompositions of Stochastic Specifications. In: Groote, JF Huisman, M (Ed.), Formal Methods For Industrial Critical Systems (FMICS 2022): . Paper presented at 27th International Conference on Formal Methods in Industrial Critical Systems (FMICS), SEP 14-15, 2022, Warsaw, ELECTR NETWORK (pp. 193-210). Springer Nature, 13487
Open this publication in new window or tab >>Formally Verifying Decompositions of Stochastic Specifications
2022 (English)In: Formal Methods For Industrial Critical Systems (FMICS 2022) / [ed] Groote, JF Huisman, M, Springer Nature , 2022, Vol. 13487, p. 193-210Conference paper, Published paper (Refereed)
Abstract [en]

According to the principles of compositional verification, verifying that lower-level components satisfy their specification will ensure that the whole system satisfies its top-level specification. The key step is to ensure that the lower-level specifications constitute a correct decomposition of the top-level specification. In a non-stochastic context, such decomposition can be analyzed using techniques of theorem proving. In industrial applications, especially for safety-critical systems, specifications are often of stochastic nature, for example giving a bound on the probability that system failure will occur before a given time. A decomposition of such a specification requires techniques beyond traditional theorem proving. The first contribution of the paper is a theoretical framework that allows the representation of, and reasoning about, stochastic and timed behavior of systems as well as specifications for such behaviors. The framework is based on traces that describe the continuoustime evolution of a system, and specifications are formulated using timed automata combined with probabilistic acceptance conditions. The second contribution is a novel approach to verifying decomposition of such specifications by reducing the problem to checking emptiness of the solution space for a system of linear inequalities.

Place, publisher, year, edition, pages
Springer Nature, 2022
Series
Lecture Notes in Computer Science, ISSN 0302-9743
Keywords
Specification Theory, Refinement, Contracts
National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-321966 (URN)10.1007/978-3-031-15008-1_13 (DOI)000876873100013 ()2-s2.0-85138004587 (Scopus ID)
Conference
27th International Conference on Formal Methods in Industrial Critical Systems (FMICS), SEP 14-15, 2022, Warsaw, ELECTR NETWORK
Note

QC 20221128

Available from: 2022-11-28 Created: 2022-11-28 Last updated: 2022-11-28Bibliographically approved
Hampus, A. & Nyberg, M. (2022). Formally Verifying Decompositions of Stochastic Specifications (With Proofs). Paper presented at FMICS 2022.
Open this publication in new window or tab >>Formally Verifying Decompositions of Stochastic Specifications (With Proofs)
2022 (English)Report (Refereed)
Publisher
p. 24
National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-315290 (URN)
Conference
FMICS 2022
Note

QC 20220908

Available from: 2022-07-01 Created: 2022-07-01 Last updated: 2022-09-08Bibliographically approved
Organisations
Identifiers
ORCID iD: ORCID iD iconorcid.org/0000-0002-3939-3919

Search in DiVA

Show all publications