中文
相关论文

相关论文: Improved Inference for Checking Annotations

200 篇论文

In recent years, languages like Haskell have seen a dramatic surge of new features that significantly extends the expressive power of their type systems. With these features, the challenge of kind inference for datatype declarations has…

编程语言 · 计算机科学 2019-11-15 Ningning Xie , Richard A. Eisenberg , Bruno C. d. S. Oliveira

We study a type checking algorithm that is able to type check a nontrivial subclass of functional programs that use features such as higher-rank, impredicative and second-order types. The only place the algorithm requires type annotation is…

计算机科学中的逻辑 · 计算机科学 2017-11-15 Peng Fu

Bernardy et al. [2018] proposed a linear type system $\lambda^q_\to$ as a core type system of Linear Haskell. In the system, linearity is represented by annotated arrow types $A \to_m B$, where $m$ denotes the multiplicity of the argument.…

编程语言 · 计算机科学 2020-02-20 Kazutaka Matsuda

Type classes are an elegant extension to traditional, Hindley-Milner based typing systems. They are used in modern, typed languages such as Haskell to support controlled overloading of symbols. Haskell 98 supports only single-parameter and…

编程语言 · 计算机科学 2007-05-23 Kevin Glynn , Martin Sulzmann , Peter J. Stuckey

We consider the application of Constraint Handling Rules (CHR) for the specification of type inference systems, such as that used by Haskell. Confluence of CHR guarantees that the answer provided by type inference is correct and consistent.…

编程语言 · 计算机科学 2020-02-19 Gregory J. Duck , Remy Haemmerle , Martin Sulzmann

We present a type system and inference algorithm for a rich subset of JavaScript equipped with objects, structural subtyping, prototype inheritance, and first-class methods. The type system supports abstract and recursive objects, and is…

We previously developed a polymorphic type system and a type checker for a multithreaded lock-based polymorphic typed assembly language (MIL) that ensures that well-typed programs do not encounter race conditions. This paper extends such…

编程语言 · 计算机科学 2010-02-05 Vasco T. Vasconcelos , Francisco Martins , Tiago Cogumbreiro

FreezeML is a new approach to first-class polymorphic type inference that employs term annotations to control when and how polymorphic types are instantiated and generalised. It conservatively extends Hindley-Milner type inference and was…

编程语言 · 计算机科学 2022-07-21 Frank Emrich , Jan Stolarek , James Cheney , Sam Lindley

Liquid typing provides a decidable refinement inference mechanism that is convenient but subject to two major issues: (1) inference is global and requires top-level annotations, making it unsuitable for inference of modular code components…

编程语言 · 计算机科学 2019-10-31 Niki Vazou , Éric Tanter , David Van Horn

We consider type inference for guarded recursive data types (GRDTs) -- a recent generalization of algebraic data types. We reduce type inference for GRDTs to unification under a mixed prefix. Thus, we obtain efficient type inference.…

编程语言 · 计算机科学 2007-05-23 Peter J. Stuckey , Martin Sulzmann

Annotated data is an essential ingredient in natural language processing for training and evaluating machine learning models. It is therefore very desirable for the annotations to be of high quality. Recent work, however, has shown that…

计算与语言 · 计算机科学 2022-09-27 Jan-Christoph Klie , Bonnie Webber , Iryna Gurevych

This article first provides an algorithm W based type inference algorithm for an affine type system. Then the article further assumes the language equipped with the above type system uses lazy evaluation, and explores the possibility of…

编程语言 · 计算机科学 2022-04-01 Gonglin Li

We present an approach to support partiality in type-level computation without compromising expressiveness or type safety. Existing frameworks for type-level computation either require totality or implicitly assume it. For example, type…

编程语言 · 计算机科学 2017-06-30 J. Garrett Morris , Richard Eisenberg

Verification of higher-order probabilistic programs is a challenging problem. We present a verification method that supports several quantitative properties of higher-order probabilistic programs. Usually, extending verification methods to…

计算机科学中的逻辑 · 计算机科学 2024-07-04 Satoshi Kura , Hiroshi Unno

The pattern-match safety problem is to verify that a given functional program will never crash due to non-exhaustive patterns in its function definitions. We present a refinement type system that can be used to solve this problem. The…

编程语言 · 计算机科学 2020-11-26 Eddie Jones , Steven Ramsay

Benefits of static type systems are well-known: they offer guarantees that no type error will occur during runtime and, inherently, inferred types serve as documentation on how functions are called. On the other hand, many type systems have…

编程语言 · 计算机科学 2020-08-31 Isabel Wingen , Philipp Körner

We propose a novel method for inferring refinement types of higher-order functional programs. The main advantage of the proposed method is that it can infer maximally preferred (i.e., Pareto optimal) refinement types with respect to a…

编程语言 · 计算机科学 2015-05-19 Kodai Hashimoto , Hiroshi Unno

GADTs were introduced in Haskell's eco-system more than a decade ago, but their interaction with several mainstream features such as type classes and functional dependencies has a lot of room for improvement. More specifically, for some…

编程语言 · 计算机科学 2019-07-02 Koen Pauwels , Georgios Karachalias , Michiel Derhaeg , Tom Schrijvers

Type annotations are essential when printing terms in a way that preserves their meaning under reparsing and type inference. We study the problem of complete and minimal type annotations for rank-one polymorphic $\lambda$-calculus terms, as…

计算机科学中的逻辑 · 计算机科学 2026-04-20 Kevin Kappelmann , Maximilian Schäffeler , Lukas Stevens , Mohammad Abdulaziz , Andrei Popescu , Dmitriy Traytel

We present a new technique called type targeted testing, which translates precise refinement types into comprehensive test-suites. The key insight behind our approach is that through the lens of SMT solvers, refinement types can also be…

编程语言 · 计算机科学 2017-08-29 Eric L. Seidel , Niki Vazou , Ranjit Jhala
‹ 上一页 1 2 3 10 下一页 ›