Type Inference by Coinductive Logic Programming

被引:0
|
作者
Ancona, Davide [1 ]
Lagorio, Giovanni [1 ]
Zucca, Elena [1 ]
机构
[1] Univ Genoa, DISI, I-16146 Genoa, Italy
来源
关键词
Type inference; coinduction; nominal and structural typing; object-oriented languages;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
We propose a novel approach to constraint-based type inference based on coinductive logic. Constraint generation corresponds to translation into a conjunction of Horn clauses P, and constraint satisfaction is defined in terms of the coinductive Herbrand model of P. We illustrate the approach by formally defining this translation for a small object-oriented language similar to Featherweight Java, where type annotations in field and method declarations can be omitted. In this way, we obtain a very precise type inference and provide new insights into the challenging problem of type inference for object-oriented programs. Since the approach is deliberately declarative, we define in fact a formal specification for a general class of algorithms, which can be a useful road map to researchers. Furthermore, despite we consider here a particular language, the methodology could be used in general for providing abstract specifications of type inference for different kinds of programming languages.
引用
收藏
页码:1 / 18
页数:18
相关论文
共 50 条
  • [1] Type Inference by Coinductive Logic Programming
    DISI, Univ. of Genova, v. Dodecaneso 35, Genova 16146, Italy
    [J]. Lect. Notes Comput. Sci., (1-18):
  • [2] Coinductive logic programming
    Simon, Luke
    Mallya, Ajay
    Bansal, Ajay
    Gupta, Gopal
    [J]. LOGIC PROGRAMMING, PROCEEDINGS, 2006, 4079 : 330 - 345
  • [3] Coinductive Constraint Logic Programming
    Saeedloei, Neda
    Gupta, Gopal
    [J]. FUNCTIONAL AND LOGIC PROGRAMMING (FLOPS 2012), 2012, 7294 : 243 - 259
  • [4] Flexible coinductive logic programming
    DAGNINO, F. R. A. N. C. E. S. C. O.
    ANCONA, D. A. V. I. D. E.
    ZUCCA, E. L. E. N. A.
    [J]. THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2020, 20 (06) : 818 - 833
  • [5] Coinductive Logic Programming with Negation
    Min, Richard
    Gupta, Gopal
    [J]. LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2010, 6037 : 97 - 112
  • [6] Coinductive logic programming and its applications
    Gupta, Gopal
    Bansal, Ajay
    Min, Richard
    Simon, Luke
    Mallya, Ajay
    [J]. LOGIC PROGRAMMING, PROCEEDINGS, 2007, 4670 : 27 - +
  • [7] A Theoretical Perspective of Coinductive Logic Programming
    Ancona, Davide
    Dovier, Agostino
    [J]. FUNDAMENTA INFORMATICAE, 2015, 140 (3-4) : 221 - 246
  • [8] Data Type Inference for Logic Programming
    Barbosa, Joao
    Florido, Mario
    Costa, Vitor Santos
    [J]. LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION (LOPSTR 2021), 2022, 13290 : 16 - 37
  • [9] Predicate answer set programming via coinductive logic programming
    Min, Richard
    Bansal, Ajay
    Gupta, Gopal
    [J]. ENGINEERING INTELLIGENT SYSTEMS FOR ELECTRICAL ENGINEERING AND COMMUNICATIONS, 2009, 17 (2-3): : 105 - 114
  • [10] Towards Predicate Answer Set Programming via Coinductive Logic Programming
    Min, Richard
    Bansal, Ajay
    Gupta, Gopal
    [J]. ARTIFICIAL INTELLIGENCE APPLICATIONS AND INNOVATIONS III, 2009, : 499 - 508