Kleene Algebra With Tests for Weighted Programs
Author:
Preprint
Abstract
Weighted programs generalize probabilistic programs and offer a framework for specifying and encoding mathematical models by means of an algorithmic representation. Kleene algebra with tests is an algebraic formalism based on regular expressions with applications in proving program equivalence. We extend the language of Kleene algebra with tests so that it is sufficient to formalize reasoning about a simplified version weighted programs. We introduce relational semantics for the extended language, and we generalize the relational semantics to an appropriate extension of Kleene algebra with tests, called Kleene algebra with weights and tests. We demonstrate by means of an example that Kleene algebra with weights and tests offers a simple algebraic framework for reasoning about equivalence and optimal runs of weighted programs.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Weighted programming: a programming paradigm for specifying mathematical modelsProceedings of the ACM on Programming Languages, 2022
- Generalising KAT to Verify Weighted ComputationsScientific Annals of Computer Science, 2019
- Kleene algebra with testsACM Transactions on Programming Languages and Systems, 1997
- A Completeness Theorem for Kleene Algebras and the Algebra of Regular EventsInformation and Computation, 1994
- Propositional dynamic logic of regular programsJournal of Computer and System Sciences, 1979
- Coordinatization of Orthocomplemented and Orthomodular PosetsProceedings of the American Mathematical Society, 1970