{"id":{"repo_id":"chile","oai_identifier":"oai:repositorio.uchile.cl:2250/204779"},"canonical_url":"https://search.ndltd.org/etd/chile/oai:repositorio.uchile.cl:2250/204779","repository":{"repo_id":"chile","name":"Universidad de Chile","base_url":"https://repositorio.uchile.cl/oai/request"},"display":{"title":"Slicing of probabilistic programs based on specifications","abstract":"The 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.","abstract_html":"The 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.","abstract_has_math":false,"creators":["Navarro Pacheco, Marcelo Andrés"],"institution":"Universidad de Chile","degree_name":null,"degree_level":"Magister","degree_discipline":null,"degree_department":"Departamento de Ciencias de la Computación","school":null,"contributors":[],"advisors":["Olmedo Berón, Federico"],"committee_chairs":[],"committee_members":[],"year":2024,"date_issued":"2024","date_published":"2024","updated_at":"2026-11-26T14:09:47Z","subjects":[],"languages":["en"],"rights":["Attribution-NonCommercial-NoDerivs 3.0 United States"],"rights_urls":["http://creativecommons.org/licenses/by-nc-nd/3.0/us/"],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://repositorio.uchile.cl/handle/2250/204779"],"render_values":[{"text":"https://repositorio.uchile.cl/handle/2250/204779","href":"https://repositorio.uchile.cl/handle/2250/204779","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.58011/f8pg-9686","outbound_label":"DOI","outbound_source":"source_url","record_url":"https://doi.org/10.58011/f8pg-9686","record_label":"Repository record","record_kind":"doi","record_source":"source_url","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Achile%3Aoai%3Arepositorio.uchile.cl%3A2250%2F204779","prefix":"oai_dc"},"source_record":{"url":"https://repositorio.uchile.cl/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Arepositorio.uchile.cl%3A2250%2F204779","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Olmedo Berón, Federico"]},{"key":"dc:contributor.department","label":"Department","values":["Departamento de Ciencias de la Computación"]},{"key":"dc:contributor.other","label":"Dc Contributor Other","values":["Fabry, Johan","Toro Ipinza, Matías","D’Argenio, Rubén"]},{"key":"dc:creator","label":"Author","values":["Navarro Pacheco, Marcelo Andrés"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-05-08T17:20:48Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-05-08T17:20:48Z"]},{"key":"dc:date.issued","label":"Date","values":["2024"]},{"key":"dc:publisher","label":"Institution","values":["Universidad de Chile"]},{"key":"dc:publisher.faculty","label":"Dc Publisher Faculty","values":["Facultad de Ciencias Físicas y Matemáticas"]},{"key":"dc:type","label":"Dc Type","values":["Tesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Magister"]},{"key":"thesis:degree_program","label":"Thesis Degree Program","values":["Ingeniería Civil en Computación"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["Attribution-NonCommercial-NoDerivs 3.0 United States"]},{"key":"dc:rights.uri","label":"Rights URI","values":["http://creativecommons.org/licenses/by-nc-nd/3.0/us/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["10.58011/f8pg-9686"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://repositorio.uchile.cl/handle/2250/204779"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["The 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.","El objetivo del slicing de programas es, dado un programa y un criterio de slicing, por ejemplo, un conjunto de variables, identificar y eliminar los fragmentos del programa que no afecten su comportamiento, con respecto a dicho criterio de slicing. El resultado se conoce como un slice del programa original. Las aplicaciones principales del slicing de programas incluyen testing, comprensión de programas, depuración de programas y extracción de componentes reutilizables. Se han propuesto varios enfoques desde la introducción del slicing de programas, centrados principalmente en el análisis de dependencias de datos y control en diferentes tipos de programas. Sin embargo, estas técnicas solo brindan un soporte parcial para la aleatorización. En programación probabilística, avanzar en técnicas de slicing ofrece varias ventajas. Además de las aplicaciones mencionadas anteriormente, conduce a un mejor rendimiento en el proceso de inferencia —determinar una representación explícita de la distribución de probabilidad inducida implícitamente por un programa—. También ayudaría a la comprensión de estos programas, que son significativamente más complejos que los programas deterministas y que a menudo requiere un conocimiento profundo de la teoría de la probabilidad. Debido a las razones anteriores, en este estudio hemos desarrollado la primera técnica de slicing para programas probabilísticos basada en especificaciones. Mostramos que cuando los programas probabilísticos están acompañados de sus especificaciones en la forma de prey post-condición, podemos aprovechar esta información semántica para producir slices, que preservan las especificaciones, estrictamente más precisos que los slices producidos por técnicas convencionales basadas en dependencia de datos y control. La técnica desarrollada es sensible a las propiedades de terminación de los programas, permitiendo preservar tanto la corrección parcial como total de los programas respecto a sus especificaciones. Es modular, con un principio de razonamiento local, y demostramos formalmente su correctitud. Como ingredientes técnicos fundamentales de nuestra técnica, diseñamos generadores de condiciones de verificación para establecer la corrección parcial y total de los programas probabilísticos y demostramos su correctitud, resultado que es de interés por sí mismos y pueden ser explotados en otros estudios independientes. En el aspecto práctico, demostramos la aplicabilidad de nuestro enfoque mediante algunos ejemplos ilustrativos y un estudio de caso del campo de la modelación probabilística. También describimos un algoritmo para computar los slices más pequeños dentro del conjunto de slices derivados por nuestra técnica."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["Doble Titulación","Tesis para optar al grado de Magíster en Ciencias, Mención Computación","Memoria para optar al título de Ingeniero Civil en Computación"]},{"key":"dc:description.sponsorship","label":"Dc Description Sponsorship","values":["Este trabajo ha sido parcialmente financiado por: FONDECYT No. 11181208."]},{"key":"dc:description.version","label":"Dc Description Version","values":["Versión original del autor"]},{"key":"dcterms:accessrights","label":"Dcterms Accessrights","values":["Acceso abierto"]},{"key":"dc:title","label":"Title","values":["Slicing of probabilistic programs based on specifications"]},{"key":"local:cataloguer","label":"Local Cataloguer","values":["chb"]}]}],"canonical_facts":{"dc:contributor.advisor":["Olmedo Berón, Federico"],"dc:contributor.department":["Departamento de Ciencias de la Computación"],"dc:contributor.other":["Fabry, Johan","Toro Ipinza, Matías","D’Argenio, Rubén"],"dc:creator":["Navarro Pacheco, Marcelo Andrés"],"dc:date.accessioned":["2025-05-08T17:20:48Z"],"dc:date.available":["2025-05-08T17:20:48Z"],"dc:date.issued":["2024"],"dc:description.abstract":["The 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.","El objetivo del slicing de programas es, dado un programa y un criterio de slicing, por ejemplo, un conjunto de variables, identificar y eliminar los fragmentos del programa que no afecten su comportamiento, con respecto a dicho criterio de slicing. El resultado se conoce como un slice del programa original. Las aplicaciones principales del slicing de programas incluyen testing, comprensión de programas, depuración de programas y extracción de componentes reutilizables. Se han propuesto varios enfoques desde la introducción del slicing de programas, centrados principalmente en el análisis de dependencias de datos y control en diferentes tipos de programas. Sin embargo, estas técnicas solo brindan un soporte parcial para la aleatorización. En programación probabilística, avanzar en técnicas de slicing ofrece varias ventajas. Además de las aplicaciones mencionadas anteriormente, conduce a un mejor rendimiento en el proceso de inferencia —determinar una representación explícita de la distribución de probabilidad inducida implícitamente por un programa—. También ayudaría a la comprensión de estos programas, que son significativamente más complejos que los programas deterministas y que a menudo requiere un conocimiento profundo de la teoría de la probabilidad. Debido a las razones anteriores, en este estudio hemos desarrollado la primera técnica de slicing para programas probabilísticos basada en especificaciones. Mostramos que cuando los programas probabilísticos están acompañados de sus especificaciones en la forma de prey post-condición, podemos aprovechar esta información semántica para producir slices, que preservan las especificaciones, estrictamente más precisos que los slices producidos por técnicas convencionales basadas en dependencia de datos y control. La técnica desarrollada es sensible a las propiedades de terminación de los programas, permitiendo preservar tanto la corrección parcial como total de los programas respecto a sus especificaciones. Es modular, con un principio de razonamiento local, y demostramos formalmente su correctitud. Como ingredientes técnicos fundamentales de nuestra técnica, diseñamos generadores de condiciones de verificación para establecer la corrección parcial y total de los programas probabilísticos y demostramos su correctitud, resultado que es de interés por sí mismos y pueden ser explotados en otros estudios independientes. En el aspecto práctico, demostramos la aplicabilidad de nuestro enfoque mediante algunos ejemplos ilustrativos y un estudio de caso del campo de la modelación probabilística. También describimos un algoritmo para computar los slices más pequeños dentro del conjunto de slices derivados por nuestra técnica."],"dc:description.degree":["Doble Titulación","Tesis para optar al grado de Magíster en Ciencias, Mención Computación","Memoria para optar al título de Ingeniero Civil en Computación"],"dc:description.sponsorship":["Este trabajo ha sido parcialmente financiado por: FONDECYT No. 11181208."],"dc:description.version":["Versión original del autor"],"dc:identifier.other":["10.58011/f8pg-9686"],"dc:identifier.uri":["https://repositorio.uchile.cl/handle/2250/204779"],"dc:language.iso":["en"],"dc:publisher":["Universidad de Chile"],"dc:publisher.faculty":["Facultad de Ciencias Físicas y Matemáticas"],"dc:rights":["Attribution-NonCommercial-NoDerivs 3.0 United States"],"dc:rights.uri":["http://creativecommons.org/licenses/by-nc-nd/3.0/us/"],"dcterms:accessrights":["Acceso abierto"],"dc:title":["Slicing of probabilistic programs based on specifications"],"dc:type":["Tesis"],"local:cataloguer":["chb"],"thesis:degree_level":["Magister"],"thesis:degree_program":["Ingeniería Civil en Computación"]},"updated_at":"2026-11-26T14:09:47Z"}