encyclopegia.org

Refinement type

In type theory, a refinement type is a type endowed with a predicate which is assumed to hold for any element of the refined type. Refinement types can express preconditions when used as function arguments or postconditions when used as return types: for instance, the type of a function which accepts natural numbers and returns natural numbers greater than 5 may be written as f: \mathbb{N} \rarr \{n \in \mathbb{N} \, | \, n > 5\} . Refinement types are thus related to behavioral subtyping.

In type theory, a refinement type is a type endowed with a predicate which is assumed to hold for any element of the refined type. Refinement types can express preconditions when used as function arguments or postconditions when used as return types: for instance, the type of a function which accepts natural numbers and returns natural numbers greater than 5 may be written as f: \mathbb{N} \rarr \{n \in \mathbb{N} \, | \, n > 5\} . Refinement types are thus related to behavioral subtyping. ==History== The concept of refinement types was first introduced in Freeman and Pfenning's 1991 Refinement types for ML, which presents a type system for a subset of Standard ML. The type system "preserves the decidability of ML's type inference" whilst still "allowing more errors to be detected at compile-time". In more recent times, refinement type systems have been developed (primary in academia) for languages such as Haskell, TypeScript, Rust, and as libraries for real world usage in Scala. ==See also== Liquid Haskell Dependent types ==References==

References

No reference rows published for this article.

Cite this article

MLA

"Refinement type." encyclopegia.org, 2025, https://encyclopegia.org/wiki/refinement-type. Accessed 24 November 2026.

Chicago

"Refinement type." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/refinement-type.

APA

encyclopegia.org. (2025). Refinement type. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/refinement-type

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Holy Corners Historic District

enwiki · references available

Wilhelm Leusch

enwiki · references available

Count of Olocau

enwiki · references available

Ernest Lindup

enwiki · references available

Mudasiru Oyetunde Hussein

enwiki · references available

Byers Lake (Alaska)

enwiki · references available

Riga Metro

enwiki · references available

Two Item Limit

enwiki · references available

Fluoroamphetamine

enwiki · references available

A Young Woman Seated at the Virginals

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1322834676 · 0.5 · snapshot enwiki-001322834676

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.