encyclopegia.org

Bounded quantification

In type theory, bounded quantification (also bounded polymorphism or constrained genericity) refers to universal or existential quantifiers which are restricted ("bounded") to range only over the subtypes of a particular type. Bounded quantification is an interaction of parametric polymorphism with subtyping. Bounded quantification has traditionally been studied in the functional setting of System F , but is available in modern object-oriented languages supporting parametric polymorphism (generics) such as Java, C# and Scala.

In type theory, bounded quantification (also bounded polymorphism or constrained genericity) refers to universal or existential quantifiers which are restricted ("bounded") to range only over the subtypes of a particular type. Bounded quantification is an interaction of parametric polymorphism with subtyping. Bounded quantification has traditionally been studied in the functional setting of System F , but is available in modern object-oriented languages supporting parametric polymorphism (generics) such as Java, C# and Scala. \texttt{Comparable } = \{\texttt{compareTo}: T \to \texttt{int}\} Consider the following possible declarations in java.lang : package java.lang; public interface Comparable { int compareTo(T other); } public class Integer implements Comparable { @Override public int compareTo(Integer other) { // ... } } public class String implements Comparable { @Override public int compareTo(String other) { // ... } } Then, in use: package org.wikipedia.examples; public class Test { public static S min(S a, S b) { if (a.compareTo(b) > T fMin(T a, T b) { if (a.compareTo(b) Peter S. Canning, William R. Cook, Walter L. Hill, John C. Mitchell, and William Olthoff. "F-bounded polymorphism for object-oriented programming". In Conference on Functional Programming Languages and Computer Architecture, 1989. Benjamin C. Pierce "Intersection types and bounded polymorphism". Lecture Notes in Computer Science 664, 1993. Gilad Bracha, Martin Odersky, David Stoutamire, and Philip Wadler. "Making the future safe for the past: Adding genericity to the Java programming language". In Object-Oriented Programming: Systems, Languages, Applications (OOPSLA). ACM, October 1998. Andrew Kennedy and Don Syme. "Design and Implementation of Generics for the .NET Common Language Runtime". In Programming Language Design and Implementation, 2001. , Chapter 26: Bounded quantification

References

No reference rows published for this article.

Cite this article

MLA

"Bounded quantification." encyclopegia.org, 2026, https://encyclopegia.org/wiki/bounded-quantification. Accessed 24 November 2026.

Chicago

"Bounded quantification." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/bounded-quantification.

APA

encyclopegia.org. (2026). Bounded quantification. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/bounded-quantification

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

Related articles

23rd Intelligence Squadron

enwiki · references available

Exinda

enwiki · references available

Black Cobra (gang)

enwiki · references available

George Korson

enwiki · references available

Cycloceras

enwiki · references available

Bad Boys (Alexandra Burke song)

enwiki · references available

Wu De

enwiki · references available

Bedevil

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

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.