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 条
  • [1] Rough Relational Calculus
    Wei, Lingling
    Yao, Leiyue
    Xie, Qianglai
    ADVANCING KNOWLEDGE DISCOVERY AND DATA MINING TECHNOLOGIES, PROCEEDINGS, 2009, : 5 - 9
  • [2] Fuzzy Relational Calculus
    Beg, Ismat
    Ashraf, Samina
    BULLETIN OF THE MALAYSIAN MATHEMATICAL SCIENCES SOCIETY, 2014, 37 (01) : 203 - 237
  • [3] Semantics of a Relational λ-Calculus
    Barenbaum, Pablo
    Lochbaum, Federico
    Milicich, Mariana
    THEORETICAL ASPECTS OF COMPUTING, ICTAC 2020, 2020, 12545 : 242 - 261
  • [4] Fuzzy relational algebra and fuzzy relational calculus
    Mao, Yuguang
    Zhu, Wujia
    Xiyou Jinshu Cailiao Yu Gongcheng/Rare Metal Materials and Engineering, 27 (01): : 1 - 6
  • [5] DOMAIN INDEPENDENCE AND THE RELATIONAL CALCULUS
    HULL, R
    SU, JW
    ACTA INFORMATICA, 1994, 31 (06) : 513 - 524
  • [6] OPTIMIZATION IN THE TRANSLATION FROM THE RELATIONAL CALCULUS TO THE RELATIONAL ALGEBRA
    SIEPERMANNPONSDE, CM
    VIDART, J
    ACTA CIENTIFICA VENEZOLANA, 1978, 29 : 31 - 31
  • [7] Relational semantics and a relational proof system for full Lambek calculus
    MacCaull, W
    JOURNAL OF SYMBOLIC LOGIC, 1998, 63 (02) : 623 - 637
  • [8] Relational models for the nonassociative Lambek calculus
    Szczerba, M
    RELATIONAL METHODS FOR COMPUTER SCIENCE APPLICATIONS, 2001, 65 : 149 - 159
  • [9] Fuzzy relational calculus in land evaluation
    Groenemans, R
    VanRanst, E
    Kerre, E
    GEODERMA, 1997, 77 (2-4) : 283 - 298
  • [10] Relational calculus for program construction by parts
    Universite de Sherbrooke, Sherbrooke, Canada
    Sci Comput Program, 1-3 (237-254):