Abstract
dc:description.abstractThe goal of program slicing is, given a program and a slicing criterion, for example, a set of variables, to identify and safely remove program fragments that do not affect the program behavior, with respect to the slicing criterion. The outcome is known as a slice of the original program. Primary applications of program slicing include testing, program comprehension, program debugging, and the extraction of reusable components. Since the introduction of program slicing, several approaches have been proposed. These techniques primarily focus on data and control dependencies and have been applied to diverse program types. However, these techniques only offer partial support for randomization. In the domain of probabilistic programming, making progress in more advanced slicing techniques offers several advantages. In addition to the benefits mentioned earlier, it leads to improved performance in inference calculations —to determine an explicit representation of the probability distribution implicitly represented by a program—. It would also aid in the comprehension of these programs, which are significantly more complex than deterministic programs, often requiring in-depth knowledge of probability theory. Motivated by these reasons, in this study, we have developed the first slicing technique for probabilistic programs based on specifications. We show that when probabilistic programs are accompanied by their specifications in the form of pre- and post-condition, we can exploit this semantic information to produce specification-preserving slices strictly more precise than slices yielded by conventional techniques based on data/control dependency. The developed technique is termination-sensitive, allowing to preserve the partial as well as the total correctness of probabilistic programs with respect to their specifications. It is modular, featuring a local reasoning principle, and is formally proved correct. As fundamental technical ingredients of our technique, we design and prove sound verifi- cation condition generators for establishing the partial and total correctness of probabilistic programs, which are of interest on their own and can be exploited elsewhere for other pur- poses. On the practical side, we demonstrate the applicability of our approach by means of a few illustrative examples and a case study from the probabilistic modelling field. We also describe an algorithm for computing least slices among the space of slices derived by our technique.
Degree
thesis:*- Level thesis:degree_level
- Magister
- Department dc:contributor.department
- Departamento de Ciencias de la Computación
- Grantor dc:publisher
- Universidad de Chile
- Year dc:date.issued
- 2024
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Navarro Pacheco, Marcelo Andrés
- Advisor dc:contributor.advisor
-
- Olmedo Berón, Federico
Rights
dc:rights- Statement dc:rights
-
- Attribution-NonCommercial-NoDerivs 3.0 United States
- Licence dc:rights.uri
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Identifier URI
- https://repositorio.uchile.cl/handle/2250/204779