ICE-Based Refinement Type Discovery for Higher-Order Functional Programs.

Saved in:
Bibliographic Details
Title: ICE-Based Refinement Type Discovery for Higher-Order Functional Programs.
Authors: Champion, Adrien1,2, Chiba, Tomoya1, Kobayashi, Naoki1 koba@is.s.u-tokyo.ac.jp, Sato, Ryosuke3
Source: Journal of Automated Reasoning. Oct2020, Vol. 64 Issue 7, p1393-1418. 26p.
Subjects: Functional programming languages, Machine learning, Mathematical models, Polynomials, Software verification
Abstract: We propose a method for automatically finding refinement types of higher-order function programs. Our method is an extension of the Ice framework of Garg et al. for finding invariants. In addition to the usual positive and negative samples in machine learning, their Ice framework uses implication constraints, which consist of pairs (x, y) such that if x satisfies an invariant, so does y. From these constraints, Ice infers inductive invariants effectively. We observe that the implication constraints in the original Ice framework are not suitable for finding invariants of recursive functions with multiple function calls. We thus generalize the implication constraints to those of the form ({ x 1 , ⋯ , x k } , y) , which means that if all of x 1 , ⋯ , x k satisfy an invariant, so does y. We extend their algorithms for inferring likely invariants from samples, verifying the inferred invariants, and generating new samples. We have implemented our method and confirmed its effectiveness through experiments. [ABSTRACT FROM AUTHOR]
Copyright of Journal of Automated Reasoning is the property of Springer Nature and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)
Database: Engineering Source
Be the first to leave a comment!
You must be logged in first