The Relational Machine Calculus

被引:0
|
作者
Barrett, Chris [1 ]
Castle, Daniel [2 ]
Heijltjes, Willem [2 ]
机构
[1] Univ Oxford, Oxford, England
[2] Univ Bath, Bath, England
关键词
lambda-calculus; Kleene algebra; logic programming; reversible programming; non-determinism; hypergraph category; Krivine abstract machine; categorical semantics; operational semantics; SEMANTICS; CATEGORIES; LAWS;
D O I
10.1145/3661814.3662091
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
This paper presents the Relational Machine Calculus (RMC): a simple, foundational model of first-order relational programming. The RMC originates from the Functional Machine Calculus (FMC), which generalizes the lambda-calculus and its standard call-byname stack machine in two directions. One, "locations", introduces multiple stacks, which enable effect operators to be encoded into the abstraction and application constructs. The second, "sequencing", introduces the imperative notions of "skip" and "sequence", similar to kappa-calculus and concatenative programming languages. The key observation of the RMC is that the first-order fragment of the FMC exhibits a latent duality which, given a simple decomposition of the relevant constructors, can be concretely expressed as an involution on syntax. Semantically, this gives rise to a sound and complete calculus for string diagrams of Frobenius monoids. We consider unification as the corresponding symmetric generalization of beta-reduction. By further including standard operators of Kleene algebra, the RMC embeds a range of computational models: the kappa-calculus, logic programming, automata, Interaction Nets, and Petri Nets, among others. These embeddings preserve operational semantics, which for the RMC is again given by a generalization of the standard stack machine for the lambda-calculus. The equational theory of the RMC (which supports reasoning about its operational semantics) is conservative over both the first-order lambda-calculus and Kleene algebra, and can be oriented to give a confluent reduction relation.
引用
收藏
页数:15
相关论文
共 50 条
  • [32] An overview of fuzzy relational calculus and its applications
    Kerre, Etienne E.
    MODELING DECISIONS FOR ARTIFICIAL INTELLIGENCE, PROCEEDINGS, 2007, 4617 : 1 - +
  • [33] RELATIONAL MODELS FOR THE LAMBEK CALCULUS WITH INTERSECTION AND CONSTANTS
    Kuznetsov, Stepan l.
    LOGICAL METHODS IN COMPUTER SCIENCE, 2023, 19 (04) : 1 - 32
  • [34] Relational Parametricity for a Polymorphic Linear Lambda Calculus
    Zhao, Jianzhou
    Zhang, Qi
    Zdancewic, Steve
    PROGRAMMING LANGUAGES AND SYSTEMS, 2010, 6461 : 344 - 359
  • [35] Interpreting a reconstructed relational calculus: Extended Abstract
    Watters, Aaron
    SIGMOD Record, 1993, 22 (02) : 367 - 376
  • [36] Pattern classification using fuzzy relational calculus
    Ray, KS
    Dinda, TK
    IEEE TRANSACTIONS ON SYSTEMS MAN AND CYBERNETICS PART B-CYBERNETICS, 2003, 33 (01): : 1 - 16
  • [37] Scratch-Style Relational Algebra and Calculus
    Meston, Levi
    Kawash, Jalal
    2021 INTERNATIONAL CONFERENCE ON COMPUTATIONAL SCIENCE AND COMPUTATIONAL INTELLIGENCE (CSCI 2021), 2021, : 575 - 581
  • [38] Relational Models for the Lambek Calculus with Intersection and Unit
    Kuznetsov, Stepan L.
    RELATIONAL AND ALGEBRAIC METHODS IN COMPUTER SCIENCE (RAMICS 2021), 2021, 13027 : 258 - 274
  • [39] A type system for the relational calculus of object systems
    Zhao, Liang
    Zhao, Xiangpeng
    Long, Quan
    Qiu, Zongyan
    ICECCS 2006: 11TH IEEE INTERNATIONAL CONFERENCE ON ENGINEERING OF COMPLEX COMPUTER SYSTEMS, PROCEEDINGS, 2006, : 189 - +