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 条
  • [21] TRANSLATOR FROM CALCULUS TO RELATIONAL ALGEBRA
    NARANCIO, JV
    CISNEROS, M
    NUNEZ, S
    ACTA CIENTIFICA VENEZOLANA, 1977, 28 : 40 - 40
  • [22] SAFETY AND TRANSLATION OF RELATIONAL CALCULUS QUERIES
    VANGELDER, A
    TOPOR, RW
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 1991, 16 (02): : 235 - 278
  • [23] A relational calculus for program construction by parts
    Frappier, M
    Mili, A
    Desharnais, J
    SCIENCE OF COMPUTER PROGRAMMING, 1996, 26 (1-3) : 237 - 254
  • [24] HUMAN-PERFORMANCE IN RELATIONAL ALGEBRA, TUPLE CALCULUS, AND DOMAIN CALCULUS
    HANSEN, GW
    HANSEN, JV
    INTERNATIONAL JOURNAL OF MAN-MACHINE STUDIES, 1988, 29 (05): : 503 - 516
  • [25] EFFICIENT EVALUATION OF ARBITRARY RELATIONAL CALCULUS QUERIES
    Raszyk, Martin
    Basin, David
    Krstic, Srdan
    Traytel, Dmitriy
    LOGICAL METHODS IN COMPUTER SCIENCE, 2023, 19 (04)
  • [26] CALCULUS OF AN UNNORMALIZED RELATIONAL MODEL OF DATA.
    Janak, Jaroslav
    1600, (20):
  • [27] Towards a Relational Calculus for Security Library Management
    Hamdi, Mohamed
    Boudriga, Noureddine
    GLOBECOM 2006 - 2006 IEEE GLOBAL TELECOMMUNICATIONS CONFERENCE, 2006,
  • [28] EXPRESSING QUANTIFICATION IN RELATIONAL CALCULUS BY PARTICIPATION CONSTRAINTS
    CZEJDO, BD
    TUCCI, RP
    EMBLEY, DW
    APPLIED MATHEMATICS LETTERS, 1993, 6 (01) : 53 - 56
  • [29] EXTENDED ALGEBRA AND CALCULUS FOR NESTED RELATIONAL DATABASES
    ROTH, MA
    KORTH, HF
    SILBERSCHATZ, A
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 1988, 13 (04): : 389 - 417
  • [30] EQUIVALENCE OF THE RELATIONAL ALGEBRA AND CALCULUS FOR NESTED RELATIONS
    GARNETT, L
    TANSEL, AU
    COMPUTERS & MATHEMATICS WITH APPLICATIONS, 1992, 23 (10) : 3 - 25