A Verified Compiler for Probability Density Functions

07/21/2017
by   Manuel Eberl, et al.
0

Bhat et al. developed an inductive compiler that computes density functions for probability spaces described by programs in a simple probabilistic functional language. In this work, we implement such a compiler for a modified version of this language within the theorem prover Isabelle and give a formal proof of its soundness w.r.t. the semantics of the source and target language. Together with Isabelle's code generation for inductive predicates, this yields a fully verified, executable density compiler. The proof is done in two steps, using a standard refinement approach: first, an abstract compiler working with abstract functions modelled directly in the theorem prover's logic is defined and proven sound. Then, this compiler is refined to a concrete version that returns a target-language expression.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/04/2017

Deriving Probability Density Functions from Probabilistic Functional Programs

The probability density function of a probability distribution is a fund...
research
01/25/2022

The Trusted Computing Base of the CompCert Verified Compiler

CompCert is the first realistic formally verified compiler: it provides ...
research
11/12/2022

Formally Verified Samplers From Probabilistic Programs With Loops and Conditioning

We present Zar: a formally verified compiler pipeline from discrete prob...
research
06/27/2019

Introducing Certified Compilation in Education by a Functional Language Approach

Classes on compiler technology are commonly found in Computer Science cu...
research
11/16/2020

A Modern Compiler for the French Tax Code

In France, income tax is computed from taxpayers' individual returns, us...
research
01/30/2023

Type Theory as a Language Workbench

Language Workbenches offer language designers an expressive environment ...
research
12/18/2020

An Infrastructure for Faithful Execution of Remote Attestation Protocols

Remote attestation is an emerging technology for establishing trust in a...

Please sign up or login with your details

Forgot password? Click here to reset