Kleene Algebra of Weighted Programs with Domain

被引:0
|
作者
Sedlar, Igor [1 ]
机构
[1] Czech Acad Sci, Inst Comp Sci, Prague, Czech Republic
关键词
Kleene algebra with domain; Kleene algebra with tests; Program semantics; Weakest precondition calculus; Weighted programs; COMPLETENESS;
D O I
10.1007/978-3-031-51777-8_4
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Weighted programs were recently introduced by Batz et al. (Proc. ACM Program. Lang. 2022) as a generalization of probabilistic programs which can also represent optimization problems and, in general, programs whose execution traces carry some sort of weight. Batz et al. show that a weighted version of Dijkstra's weakest precondition operator can be used to reason about the competitive ratios of weighted programs. In this paper we study a propositional abstraction of weighted programs with three main contributions. First, we formulate a semantics for weighted programs with the weighted weakest precondition operator based on functions from multimonoids to quantales. Second, we show that the weighted weakest precondition operator corresponds to a generalization of the domain operator known from Kleene algebra with domain, and we study the properties of the generalized domain operator. Third, we formulate a weighted version of Kleene algebra with domain as a framework for reasoning about weighted programs with weakest precondition in an abstract setting.
引用
收藏
页码:52 / 67
页数:16
相关论文
共 50 条
  • [41] On Hoare logic, Kleene algebra, and types
    Kozen, D
    IN THE SCOPE OF LOGIC: METHODOLOGY & PHILOSOPHY OF SCIENCE, 2002, 315 : 119 - 133
  • [42] An axiomatization of arrays for Kleene algebra with tests
    Aboul-Hosn, Kamal
    RELATIONS AND KLEENE ALGEBRA IN COMPUTER SCIENCE, PROCEEDINGS, 2006, 4136 : 63 - 77
  • [43] Modal Kleene algebra and partial correctness
    Möller, B
    Struth, G
    ALGEBRAIC METHODOLOGY AND SOFTWARE TECHNOLOGY: PROCEEDINGS, 2004, 3116 : 379 - 393
  • [44] A coalgebraic approach to Kleene algebra with tests
    Chen, HB
    Pucella, R
    THEORETICAL COMPUTER SCIENCE, 2004, 327 (1-2) : 23 - 44
  • [45] WEIGHTED GRAMMARS AND KLEENE THEOREM
    ALEXANDRAKIS, A
    BOZAPALIDIS, S
    INFORMATION PROCESSING LETTERS, 1987, 24 (01) : 1 - 4
  • [46] Investigating discrete controllability with Kleene algebra
    Bherer, H
    Desharnais, J
    Frappier, M
    St-Denis, R
    RELATIONAL AND KLEENE-ALGEBRAIC METHODS IN COMPUTER SCIENCE, 2003, 3051 : 74 - 85
  • [47] Weak Kleene algebra and computation trees
    Cohen, Ernie
    RELATIONS AND KLEENE ALGEBRA IN COMPUTER SCIENCE, PROCEEDINGS, 2006, 4136 : 1 - 1
  • [48] A Kleene Algebra of Tagged System Actors
    Dey, Soumyajit
    Sarkar, Dipankar
    Basu, Anupam
    IEEE EMBEDDED SYSTEMS LETTERS, 2011, 3 (01) : 28 - 31
  • [49] Position Automata for Kleene Algebra with Tests
    Silva, Alexandra
    SCIENTIFIC ANNALS OF COMPUTER SCIENCE, 2012, 22 (02) : 367 - 394
  • [50] Completeness and Incompleteness of Synchronous Kleene Algebra
    Wagemaker, Jana
    Bonsangue, Marcello
    Kappe, Tobias
    Rot, Jurriaan
    Silva, Alexandra
    MATHEMATICS OF PROGRAM CONSTRUCTION, 2019, 11825 : 385 - 413