Free Theorems for Functional Logic Programs

被引:8
|
作者
Christiansen, Jan [1 ]
Seidel, Daniel [1 ]
Voigtlaender, Janis [1 ]
机构
[1] Univ Kiel, Inst Informat, D-24098 Kiel, Germany
关键词
relational parametricity; Curry; Haskell; PARAMETRICITY; SEMANTICS; FUSION;
D O I
10.1145/1707790.1707797
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Type-based reasoning is popular in functional programming. In particular, parametric polymorphism constrains functions in such a way that statements about their behavior can be derived without consulting function definitions. Is the same possible in a strongly, and polymorphically, typed functional logic language? This is the question we study in this paper. Logical features like nondeterminism and free variables cause interesting effects, which we examine based on examples and address by identifying appropriate conditions that guarantee standard free theorems or inequational versions thereof to hold. We see this case study as a stepping stone for a general theory, not provided here, involving the definition of a logical relation and other machinery required for parametricity arguments appropriate to functional logic languages.
引用
收藏
页码:39 / 48
页数:10
相关论文
共 50 条
  • [1] Parametricity and Proving Free Theorems for Functional-Logic Languages
    Mehner, Stefan
    Seidel, Daniel
    Strassburger, Lutz
    Voigtlaender, Janis
    [J]. PPDP'14: PROCEEDINGS OF THE 16TH INTERNATIONAL SYMPOSIUM ON PRINCIPLES AND PRACTICE OF DECLARATIVE PROGRAMMING, 2014, : 19 - 30
  • [2] Characterization Theorems for Revision of Logic Programs
    Schwind, Nicolas
    Inoue, Katsumi
    [J]. LOGIC PROGRAMMING AND NONMONOTONIC REASONING (LPNMR 2013), 2013, 8148 : 485 - 498
  • [3] Mirroring Theorems in Free Logic
    Brauer, Ethan
    [J]. NOTRE DAME JOURNAL OF FORMAL LOGIC, 2020, 61 (04) : 561 - 572
  • [4] From Logic to Functional Logic Programs
    Hanus, Michael
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2022, 22 (04) : 538 - 554
  • [5] FUNCTIONAL COMPUTATIONS IN LOGIC PROGRAMS
    DEBRAY, SK
    WARREN, DS
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1989, 11 (03): : 451 - 481
  • [6] A LOGIC FOR NONDETERMINISTIC FUNCTIONAL PROGRAMS
    GILLUEZAS, A
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1989, 380 : 197 - 208
  • [7] Correction of functional logic programs
    Alpuente, M
    Ballis, D
    Correa, FJ
    Falaschi, M
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, 2003, 2618 : 54 - 68
  • [8] From Functional Logic Programs to Purely Functional Programs Preserving Laziness
    Brassel, Bernd
    Fischer, Sebastian
    [J]. IMPLEMENTATION AND APPLICATION OF FUNCTIONAL LANGUAGES, 2011, 5836 : 25 - 42
  • [9] Overlapping rules and logic variables in functional logic programs
    Antoy, Sergio
    Hanus, Michael
    [J]. LOGIC PROGRAMMING, PROCEEDINGS, 2006, 4079 : 87 - 101
  • [10] Theorems for Free from Separation Logic Specifications
    Birkedal, Lars
    Dinsdale-Young, Thomas
    Gueneau, Armael
    Jaber, Guilhem
    Svendsen, Kasper
    Tzevelekos, Nikos
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2021, 5