Checking Trustworthiness of Probabilistic Computations in a Typed Natural Deduction System
Fabio Aurelio D'Asaro, Francesco Genco, Giuseppe Primiero
TL;DR
This paper introduces TPTND, a probabilistic typed natural deduction system designed to reason about the trustworthiness of probabilistic computations. It provides a computational semantics and a rich set of rules (including Bayesian updating and a Trust Fragment) to derive theoretical and observed probabilities, frequencies, and their relationships. The framework yields metatheoretical safety results ensuring that trust is preserved under derivations and reductions, while also enabling explicit handling of unknown distributions and dependencies. The approach aims to support automated reasoning about trustworthy AI components by making trust criteria explicit, checkable, and extensible to bias and imprecise probabilities with potential Coq verification. It offers a principled path toward formal certification of probabilistic outputs in AI systems through a rigorous, type-theoretic foundation.
Abstract
In this paper we present the probabilistic typed natural deduction calculus TPTND, designed to reason about and derive trustworthiness properties of probabilistic computational processes, like those underlying current AI applications. Derivability in TPTND is interpreted as the process of extracting $n$ samples of possibly complex outputs with a certain frequency from a given categorical distribution. We formalize trust for such outputs as a form of hypothesis testing on the distance between such frequency and the intended probability. The main advantage of the calculus is to render such notion of trustworthiness checkable. We present a computational semantics for the terms over which we reason and then the semantics of TPTND, where logical operators as well as a Trust operator are defined through introduction and elimination rules. We illustrate structural and metatheoretical properties, with particular focus on the ability to establish under which term evolutions and logical rules applications the notion of trustworhtiness can be preserved.
