中文
相关论文

相关论文: Phantom Types and Subtyping

200 篇论文

Datatype specialization is a form of subtyping that captures program invariants on data structures that are expressed using the convenient and intuitive datatype notation. Of particular interest are structural invariants such as…

编程语言 · 计算机科学 2007-05-23 Matthew Fluet , Riccardo Pucella

Polymorphic variants are a useful feature of the OCaml language whose current definition and implementation rely on kinding constraints to simulate a subtyping relation via unification. This yields an awkward formalization and results in a…

编程语言 · 计算机科学 2016-07-06 Giuseppe Castagna , Tommaso Petrucciani , Kim Nguyen

We present a type system that combines, in a controlled way, first-order polymorphism with intersectiontypes, union types, and subtyping, and prove its safety. We then define a type reconstruction algorithm that issound and terminating.…

编程语言 · 计算机科学 2023-11-20 Giuseppe Castagna , Mickaël Laurent , Kim Nguyen

Creating good type error messages for constraint-based type inference systems is difficult. Typical type error messages reflect implementation details of the underlying constraint-solving algorithms rather than the specific factors leading…

编程语言 · 计算机科学 2024-02-21 Ishan Bhanuka , Lionel Parreaux , David Binder , Jonathan Immanuel Brachthäuser

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

Linear and substructural types are powerful tools, but adding them to standard functional programming languages often means introducing extra annotations and typing machinery. We propose a lightweight substructural type system design that…

编程语言 · 计算机科学 2015-02-18 Edward Gan , Jesse A. Tov , Greg Morrisett

We demonstrate a method to infer polymorphically principal and subtyping-minimal types for an ML-like core language by assigning ranges within a lattice to type variables. We demonstrate the termination and completeness of this algorithm,…

编程语言 · 计算机科学 2013-08-14 Eli Gottlieb

The Damas-Hindley-Milner (ML) type system owes its success to principality, the property that every well-typed expression has a unique most general type. This makes inference predictable and efficient. Unfortunately, many extensions of ML…

编程语言 · 计算机科学 2026-05-04 Alistair O'Brien , Didier Rémy , Gabriel Scherer

Semantic subtyping is an approach to define subtyping relations for type systems featuring union and intersection type connectives. It has been studied only for strict languages, and it is unsound for non-strict semantics. In this work, we…

编程语言 · 计算机科学 2021-11-15 Tommaso Petrucciani , Giuseppe Castagna , Davide Ancona , Elena Zucca

In this paper, we present an alternative approach to multiple inheritance for typed feature structures. In our approach, a feature structure can be associated with several types coming from different hierarchies (dimensions). In case of…

cmp-lg · 计算机科学 2008-02-03 Gregor Erbach

In Bayesian hierarchical models, group-level parameter arrays must be mapped to the observation axis, often using explicit indexing. In complex models with numerous incompatible data and parameter sets, this introduces the potential for…

统计计算 · 统计学 2025-10-31 Daniel O'Hanlon

We explain how the representation theory associated with supersymmetry in diverse dimensions is encoded within the representation theory of supersymmetry in one time-like dimension. This is enabled by algebraic criteria, derived, exhibited,…

高能物理 - 理论 · 物理学 2009-07-22 M. G. Faux , K. M. Iga , G. D. Landweber

Structural subtyping and parametric polymorphism provide similar flexibility and reusability to programmers. For example, both features enable the programmer to provide a wider record as an argument to a function that expects a narrower…

编程语言 · 计算机科学 2023-09-12 Wenhao Tang , Daniel Hillerström , James McKinna , Michel Steuwer , Ornela Dardha , Rongxiao Fu , Sam Lindley

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

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

The Message Passing Interface (MPI) framework is widely used in implementing imperative pro- grams that exhibit a high degree of parallelism. The PARTYPES approach proposes a behavioural type discipline for MPI-like programs in which a type…

编程语言 · 计算机科学 2017-04-12 Francisco Martins , Vasco Thudichum Vasconcelos , Hans Hüttel

Many automatic theorem provers are restricted to untyped logics, and existing translations from typed logics are bulky or unsound. Recent research proposes monotonicity as a means to remove some clutter when translating monomorphic to…

计算机科学中的逻辑 · 计算机科学 2019-03-14 Jasmin Christian Blanchette , Sascha Böhme , Andrei Popescu , Nicholas Smallbone

Subtyping, also known as subtype polymorphism, is a concept extensively studied in programming language theory, delineating the substitutability relation among datatypes. This property ensures that programs designed for supertype objects…

人工智能 · 计算机科学 2025-02-14 Đorđe Marković , Marc Denecker

In this paper, we prove a crucial theorem called Mirroring Theorem which affirms that given a collection of samples with enough information in it such that it can be classified into classes and subclasses then (i) There exists a mapping…

机器学习 · 计算机科学 2009-11-03 Dasika Ratna Deepthi , K. Eswaran

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
‹ 上一页 1 2 3 10 下一页 ›