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 条
  • [1] Kleene algebra with domain
    Desharnais, Jules
    Moeller, Bernhard
    Struth, Georg
    ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2006, 7 (04) : 798 - 833
  • [2] On the Complexity of Kleene Algebra with Domain
    Sedlar, Igor
    RELATIONAL AND ALGEBRAIC METHODS IN COMPUTER SCIENCE, RAMICS 2023, 2023, 13896 : 208 - 223
  • [3] On the expressive power of Kleene algebra with domain
    Struth, Georg
    INFORMATION PROCESSING LETTERS, 2016, 116 (04) : 284 - 288
  • [4] Completeness of Finitely Weighted Kleene Algebra with Tests
    Sedlar, Igor
    LOGIC, LANGUAGE, INFORMATION, AND COMPUTATION, WOLLIC 2024, 2024, 14672 : 210 - 224
  • [5] Kleene Algebra with Tests and Coq Tools for while Programs
    Pous, Damien
    INTERACTIVE THEOREM PROVING, ITP 2013, 2013, 7998 : 180 - 196
  • [6] Calculational Verification of Reactive Programs with Reactive Relations and Kleene Algebra
    Foster, Simon
    Ye, Kangfeng
    Cavalcanti, Ana
    Woodcock, Jim
    RELATIONAL AND ALGEBRAIC METHODS IN COMPUTER SCIENCE, 2018, 11194 : 205 - 224
  • [7] Implicational Kleene algebra with domain and the substructural logic of partial correctness
    Sedlar, Igor
    MATHEMATICAL STRUCTURES IN COMPUTER SCIENCE, 2024, 34 (07) : 645 - 660
  • [8] Kleene Algebra with Hypotheses
    Doumane, Amina
    Kuperberg, Denis
    Pous, Damien
    Pradic, Pierre
    FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES, FOSSACS 2019, 2019, 11425 : 207 - 223
  • [9] Synchronous Kleene algebra
    Prisacariu, Cristian
    JOURNAL OF LOGIC AND ALGEBRAIC PROGRAMMING, 2010, 79 (07): : 608 - 635
  • [10] Pointer kleene algebra
    Ehm, T
    RELATIONAL AND KLEENE-ALGEBRAIC METHODS IN COMPUTER SCIENCE, 2003, 3051 : 99 - 111