中文
相关论文

相关论文: Phantom Types and Subtyping

200 篇论文

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

First class type equalities, in the form of generalized algebraic data types (GADTs), are commonly found in functional programs. However, first-class representations of other relations between types, such as subtyping, are not yet directly…

编程语言 · 计算机科学 2019-05-17 Jeremy Yallop , Stephen Dolan

A type system combining type application, constants as types, union types (associative, commutative and idempotent) and recursive types has recently been proposed for statically typing path polymorphism, the ability to define functions that…

计算机科学中的逻辑 · 计算机科学 2020-06-30 Juan Edi , Andrés Viso , Eduardo Bonelli

For many compiled languages, source-level types are erased very early in the compilation process. As a result, further compiler passes may convert type-safe source into type-unsafe machine code. Type-unsafe idioms in the original source and…

编程语言 · 计算机科学 2016-03-22 Matthew Noonan , Alexey Loginov , David Cok

We give an algebraic characterization of the syntax and semantics of a class of simply-typed languages, such as the language PCF: we characterize simply-typed binding syntax equipped with reduction rules via a universal property, namely as…

计算机科学中的逻辑 · 计算机科学 2012-08-28 Benedikt Ahrens

The strength of machine learning models stems from their ability to learn complex function approximations from data; however, this strength also makes training deep neural networks challenging. Notably, the complex models tend to memorize…

计算机视觉与模式识别 · 计算机科学 2023-04-17 Mofassir ul Islam Arif , Mohsan Jameel , Josif Grabocka , Lars Schmidt-Thieme

We consider a general prescriptive type system with parametric polymorphism and subtyping for logic programs. The property of subject reduction expresses the consistency of the type system w.r.t. the execution model: if a program is…

计算机科学中的逻辑 · 计算机科学 2009-09-25 Jan-Georg Smaus , Francois Fages , Pierre Deransart

Following the types-as-sets paradigm, we present a mechanized embedding of dependent function types with a hierarchy of universes into schematic first-order logic with equality, with axiom schemas of Tarski-Grothendieck set theory. We carry…

计算机科学中的逻辑 · 计算机科学 2026-03-16 Yunsong Yang , Simon Guilloud , Viktor Kunčak

Large Language Models (LLMs) are increasingly deployed in safety-critical domains, yet remain susceptible to hallucinations. While prior works have proposed confidence representation methods for hallucination detection, most of these…

机器学习 · 计算机科学 2025-11-17 Elyes Hajji , Aymen Bouguerra , Fabio Arnez

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

ML is remarkable in providing statically typed polymorphism without the programmer ever having to write any type annotations. The cost of this parsimony is that the programmer is limited to a form of polymorphism in which quantifiers can…

编程语言 · 计算机科学 2020-04-02 Frank Emrich , Sam Lindley , Jan Stolarek , James Cheney , Jonathan Coates

Type theories with higher-order subtyping or singleton types are examples of systems where computation rules for variables are affected by type information in the context. A complication for these systems is that bounds declared in the…

计算机科学中的逻辑 · 计算机科学 2011-01-25 Adriana Compagnoni , Healfdene Goguen

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 give an algebraic characterization of the syntax and operational semantics of a class of simply-typed languages, such as the language PCF: we characterize simply-typed syntax with variable binding and equipped with reduction rules via a…

逻辑 · 数学 2023-06-22 Benedikt Ahrens

Hierarchical structure and repetition are prevalent in graphs originating from nature or engineering. These patterns can be represented by a class of parametric-structure graphs, which are defined by templates that generate structure by way…

数据结构与算法 · 计算机科学 2020-11-16 Tal Ben-Nun , Lukas Gianinazzi , Torsten Hoefler , Yishai Oltchik

We introduce a sub-symmetry of a differential system as an infinitesimal transformation of a subset of the system that leaves the subset invariant on the solution set of the entire system. We discuss the geometrical meaning and properties…

数学物理 · 物理学 2017-05-03 V. Rosenhaus , Ravi Shankar

We study the interaction of structural subtyping with parametric polymorphism and recursively defined type constructors. Although structural subtyping is undecidable in this setting, we describe a notion of parametricity for type…

编程语言 · 计算机科学 2023-10-30 Henry DeYoung , Andreia Mordido , Frank Pfenning , Ankush Das

We present a natural standard translation of inquisitive modal logic InqML into first-order logic over the natural two-sorted relational representations of the intended models, which captures the built-in higher-order features of InqML.…

逻辑 · 数学 2021-04-15 Silke Meißner , Martin Otto

Bidirectional typechecking, in which terms either synthesize a type or are checked against a known type, has become popular for its scalability (unlike Damas-Milner type inference, bidirectional typing remains decidable even for very…

编程语言 · 计算机科学 2020-08-25 Jana Dunfield , Neelakantan R. Krishnaswami

In this paper we describe a variation of the classical permutation decoding algorithm that can be applied to any affine-invariant code with respect to certain type of information sets. In particular, we can apply it to the family of…

信息论 · 计算机科学 2023-02-13 José Joaquín Bernal , Juan Jacobo Simón