中文
相关论文

相关论文: Type Classes and Constraint Handling Rules

200 篇论文

A type system is introduced for a generic Object Oriented programming language in order to infer resource upper bounds. A sound andcomplete characterization of the set of polynomial time computable functions is obtained. As a consequence,…

编程语言 · 计算机科学 2018-02-20 Emmanuel Hainry , Romain Péchoux

Pattern-matching programming is an example of a rule-based programming style developed in functional languages. This programming style is intensively used in dialects of ML but is restricted to algebraic data-types. This restriction limits…

编程语言 · 计算机科学 2009-12-25 Julien Cohen

Type classes are one of Haskell's most popular features and extend its type system with ad-hoc polymorphism. Since their conception, there were useful features that could not be offered because of the desire to offer two correctness…

编程语言 · 计算机科学 2018-07-31 Thomas Winant , Dominique Devriese

Multi-stage programming is a proven technique that provides predictable performance characteristics by controlling code generation. We propose a core semantics for Typed Template Haskell, an extension of Haskell that supports multi staged…

编程语言 · 计算机科学 2021-12-08 Matthew Pickering , Andres Löh , Nicolas Wu

For many years, GHC has implemented an extension to Haskell that allows type variables to be bound in type signatures and patterns, and to scope over terms. This extension was never properly specified. We rectify that oversight here. With…

编程语言 · 计算机科学 2018-06-12 Richard A. Eisenberg , Joachim Breitner , Simon Peyton Jones

Type inference is an application domain that is a natural fit for logic programming (LP). LP systems natively support unification, which serves as a basic building block of typical type inference algorithms. In particular, polymorphic type…

编程语言 · 计算机科学 2017-09-13 Ki Yung Ahn

Logic programming languages present clear advantages in terms of declarativeness and conciseness. However, the ideas of logic programming have been met with resistance in other programming communities, and have not generally been adopted by…

编程语言 · 计算机科学 2026-01-08 Ivan Perez , Angel Herranz

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

In this paper, we describe our experience incorporating gradual types in a statically typed functional language with Hindley-Milner style type inference. Where most gradually typed systems aim to improve static checking in a dynamically…

编程语言 · 计算机科学 2021-02-01 Bhargav Shivkumar , Enrique Naudon , Lukasz Ziarek

This work introduces the novel concept of kind refinement, which we develop in the context of an explicitly polymorphic ML-like language with type-level computation. Just as type refinements embed rich specifications by means of…

编程语言 · 计算机科学 2019-08-02 Luís Caires , Bernardo Toninho

The R programming language is widely used in large-scale data analyses. It contains especially rich built-in support for dealing with vectors, arrays, and matrices. These operations feature prominently in the applications that form R's…

编程语言 · 计算机科学 2023-04-11 John Wrenn , Anjali Pal , Alexa VanHattum , Shriram Krishnamurthi

We introduce two-sided type systems, which are sequent calculi for typing formulas. Two-sided type systems allow for hypothetical reasoning over the typing of compound program expressions, and the refutation of typing formulas. By…

编程语言 · 计算机科学 2023-10-23 Steven Ramsay , Charlie Walpole

Constraint Handling Rules provide descriptions for constraint solvers. However, they fall short when those constraints specify some binding structure, like higher-rank types in a constraint-based type inference algorithm. In this paper, the…

计算机科学中的逻辑 · 计算机科学 2017-07-11 Alejandro Serrano , Jurriaan Hage

We present a statically typed embedding of relational programming (specifically a dialect of miniKanren with disequality constraints) in Haskell. Apart from handling types, our dialect extends standard relational combinator repertoire with…

编程语言 · 计算机科学 2024-09-02 Nikolai Kudasov , Artem Starikov

This paper introduces a simple type system for combinatory logic in which combinators have at most one type, whose polymorphism is revealed by application. The combinatory types exactly describe the structure of their values, which may be…

计算机科学中的逻辑 · 计算机科学 2026-04-15 Barry Jay , Johannes Bader

This paper presents an approach to Prolog-style term encoding of typed feature structures. The type feature structures to be encoded are constrained by appropriateness conditions as in Carpenter's ALE system. But unlike ALE, we impose a…

cmp-lg · 计算机科学 2008-02-03 Dale Gerdemann

We present an embedded DSL to support adaptation-based programming (ABP) in Haskell. ABP is an abstract model for defining adaptive values, called adaptives, which adapt in response to some associated feedback. We show how our design…

编程语言 · 计算机科学 2011-09-06 Tim Bauer , Martin Erwig , Alan Fern , Jervis Pinto

Prompt programming treats large language model prompts as software components with typed interfaces. Based on a literature survey of 15 recent works from 2023 to 2025, we observe a consistent trend: type systems are central to emerging…

编程语言 · 计算机科学 2025-08-19 Abhijit Paul

Motivated by applications in automated verification of higher-order functional programs, we develop a notion of constrained Horn clauses in higher-order logic and a decision problem concerning their satisfiability. We show that, although…

编程语言 · 计算机科学 2017-08-02 Toby Cathcart Burn , C. -H. Luke Ong , Steven J. Ramsay

Designing and implementing typed programming languages is hard. Every new type system feature requires extending the metatheory and implementation, which are often complicated and fragile. To ease this process, we would like to provide…

编程语言 · 计算机科学 2020-08-18 Jana Dunfield