Data Type Inference for Logic Programming

João Barbosa, Mário Florido, Vítor Santos Costa
8/14/2021
cs.PLcs.LO

Official code: JoaoLBarbosa/TypeInferenceAlgorithm (2 stars, Prolog, last commit 2021-08-27).

Abstract

In this paper we present a new static data type inference algorithm for logic programming. Without the need of declaring types for predicates, our algorithm is able to automatically assign types to predicates which, in most cases, correspond to the data types processed by their intended meaning.

Show full abstract

The algorithm is also able to infer types given data type definitions similar to data definitions in Haskell and, in this case, the inferred types are more informative in general. We present the type inference algorithm, prove some properties and finally, we evaluate our approach on example programs that deal with different data structures.

View on arXivView PDF

Code Implementations(1)

This file consists of the files necessary to perform type inference on Prolog programs

21Prolog, CMay 21, 20205 years ago

Similar Papers

Cite this paper

@article{barbosa2021data,
  title  = {Data Type Inference for Logic Programming},
  author = {João Barbosa and Mário Florido and Vítor Santos Costa},
  year   = {2021},
  eprint = {2108.06562},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.06562}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.06562.svg)](https://codeofpaper.com/paper/2108.06562)

Discussion