A Typed Lambda-Calculus for Establishing Trust in Probabilistic Programs

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Genco, Francesco A., Primiero, Giuseppe
Formato: Preprint
Publicado: 2023
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912231629783040
author Genco, Francesco A.
Primiero, Giuseppe
author_facet Genco, Francesco A.
Primiero, Giuseppe
contents The extensive deployment of probabilistic algorithms has radically changed our perspective on several well-established computational notions. Correctness is probably the most basic one. While a typical probabilistic program cannot be said to compute the correct result, we often have quite strong expectations about the frequency with which it should return certain outputs. In these cases, trust as a generalisation of correctness fares better. One way to understand it is to say that a probabilistic computational process is trustworthy if the frequency of its outputs is compliant with a probability distribution which models its expected behaviour. We present a formal computational framework that formalises this idea. In order to do so, we define a typed lambda-calculus that features operators for conducting experiments at runtime on probabilistic programs and for evaluating whether they compute outputs as determined by a target probability distribution. After proving some fundamental computational properties of the calculus, such as progress and termination, we define a static notion of confidence that allows to prove that our notion of trust behaves correctly with respect to the basic tenets of probability theory.
format Preprint
id arxiv_https___arxiv_org_abs_2302_00958
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle A Typed Lambda-Calculus for Establishing Trust in Probabilistic Programs
Genco, Francesco A.
Primiero, Giuseppe
Logic in Computer Science
The extensive deployment of probabilistic algorithms has radically changed our perspective on several well-established computational notions. Correctness is probably the most basic one. While a typical probabilistic program cannot be said to compute the correct result, we often have quite strong expectations about the frequency with which it should return certain outputs. In these cases, trust as a generalisation of correctness fares better. One way to understand it is to say that a probabilistic computational process is trustworthy if the frequency of its outputs is compliant with a probability distribution which models its expected behaviour. We present a formal computational framework that formalises this idea. In order to do so, we define a typed lambda-calculus that features operators for conducting experiments at runtime on probabilistic programs and for evaluating whether they compute outputs as determined by a target probability distribution. After proving some fundamental computational properties of the calculus, such as progress and termination, we define a static notion of confidence that allows to prove that our notion of trust behaves correctly with respect to the basic tenets of probability theory.
title A Typed Lambda-Calculus for Establishing Trust in Probabilistic Programs
topic Logic in Computer Science
url https://arxiv.org/abs/2302.00958