中文
相关论文

相关论文: Type Inference for Guarded Recursive Data Types

200 篇论文

Constructive type theory combines logic and programming in one language. This is useful both for reasoning about programs written in type theory, as well as for reasoning about other programming languages inside type theory. It is…

Nakano's later modality allows types to express that the output of a function does not immediately depend on its input, and thus that computing its fixpoint is safe. This idea, guarded recursion, has proved useful in various contexts, from…

编程语言 · 计算机科学 2020-08-04 Adrien Guatto

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

It is well known that general recursion cannot be expressed within Martin-Loef's type theory and various approaches have been proposed to overcome this problem still maintaining the termination of the computation of the typable terms. In…

计算机科学中的逻辑 · 计算机科学 2010-12-23 Claudio Sacerdoti Coen , Silvio Valentini

This paper proposes bimorphic recursion, which is restricted polymorphic recursion such that every recursive call in the body of a function definition has the same type. Bimorphic recursion allows us to assign two different types to a…

计算机科学中的逻辑 · 计算机科学 2011-06-08 Makoto Tatsuta , Ferruccio Damiani

We present a type-theoretic framework for reasoning about incorrectness in functional programs that interact with effectful, opaque library APIs. Our approach centers on traces -- temporally-ordered sequences of library API invocations --…

编程语言 · 计算机科学 2025-09-03 Yongwei Yuan , Zhe Zhou , Julia Belyakova , Benjamin Delaware , Suresh Jagannathan

Automated unit test generation is an established research field that has so far focused on statically-typed programming languages. The lack of type information in dynamically-typed programming languages, such as Python, inhibits test…

软件工程 · 计算机科学 2025-07-03 Lukas Krodinger , Stephan Lukasczyk , Gordon Fraser

A fertile field of research in theoretical computer science investigates the representation of general recursive functions in intensional type theories. Among the most successful approaches are: the use of wellfounded relations,…

计算机科学中的逻辑 · 计算机科学 2017-01-11 Venanzio Capretta

Consensus protocols are fundamental in distributed systems as they enable software with strong consistency properties. However, designing optimized protocols for specific use-cases under certain system assumptions is typically a laborious…

编程语言 · 计算机科学 2025-04-09 Julian Haas , Ragnar Mogk , Annette Bieniusa , Mira Mezini

Region-based type systems are a powerful tool for various kinds of program analysis. We introduce a new inference algorithm for region types based on an abstract notion of environment transformation. It analyzes the code of a method only…

编程语言 · 计算机科学 2022-09-09 Ulrich Schöpp , Chuangjie Xu

We introduce constraints necessary for type checking a higher-order concurrent constraint language, and solve them with an incremental algorithm. Our constraint system extends rational unification by constraints x$\subseteq$ y saying that…

cmp-lg · 计算机科学 2008-02-03 Martin Mueller , Joachim Niehren

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 consider type inference in the Hindley/Milner system extended with type annotations and constraints with a particular focus on Haskell-style type classes. We observe that standard inference algorithms are incomplete in the presence of…

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

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

This paper describes our ongoing work on security verification against inference attacks on data trees. We focus on infinite secrecy against inference attacks, which means that attackers cannot narrow down the candidates for the value of…

密码学与安全 · 计算机科学 2013-12-18 Ryo Iwase , Yasunori Ishihara , Toru Fujiwara

Refinement types enable lightweight verification of functional programs. Algorithms for statically inferring refinement types typically work by reduction to solving systems of constrained Horn clauses extracted from typing derivations. An…

编程语言 · 计算机科学 2020-11-11 Zvonimir Pavlinovic , Yusen Su , Thomas Wies

In the theory of programming languages, type inference is the process of inferring the type of an expression automatically, often making use of information from the context in which the expression appears. Such mechanisms turn out to be…

计算机科学中的逻辑 · 计算机科学 2012-05-10 Jeremy Avigad

Many algorithms and applications involve repeatedly solving variations of the same inference problem; for example we may want to introduce new evidence to the model or perform updates to conditional dependencies. The goal of adaptive…

数据结构与算法 · 计算机科学 2012-06-18 Umut A. Acar , Alexander T. Ihler , Ramgopal Mettu , Ozgur Sumer

Theorem provers are tools that help users to write machine readable proofs. Some of this tools are also interactive. The need of such softwares is increasing since they provide proofs that are more certified than the hand written ones. Agda…

计算机科学中的逻辑 · 计算机科学 2020-02-18 Luca Ciccone

Coverage Types provide a suitable type mechanism that integrates under-approximation logic to support Property-Based Testing. They are used to type the return value of a function that represents an input test generator. This allows us to…

计算机科学中的逻辑 · 计算机科学 2025-02-25 Angelo Passarelli , Gian-Luigi Ferrari