Hostname: page-component-74656f9884-g96k6 Total loading time: 0 Render date: 2026-11-09T23:07:05.776Z Has data issue: false hasContentIssue false

POLYMORPHISM AND MINIMAL TYPES WITHOUT DEPENDENT PRODUCTS

Published online by Cambridge University Press:  19 March 2025

MATTHIAS WEBER*
Affiliation:
DEPARTMENT OF COMPUTER SCIENCE TECHNICAL UNIVERSITY OF BERLIN BERLIN GERMANY
Rights & Permissions [Opens in a new window]

Abstract

The distinction of the semantic spaces of elements and types is common practice in practically all type systems. A few type systems, including some early ones, have been proposed whose semantic space has functions only, i.e., depending on the context functions may play element roles as well as type roles. All of these systems are either lacking expressive power, in particular, polymorphism, or they violate uniqueness of types. This work presents for the first time a function-based type system in which typing is a relation between functions and which is using an ordering of functions to introduce bounded polymorphism. The ordering is based on an infinite set of top objects, itself strictly linearly ordered, each of which characterizes a certain function space. These top objects are predicative in the sense that a function using some top object cannot be smaller than this object. The interpretation of proposition as types and elements as proofs remains valid and is extended by viewing the ordering between types as logical implication. The proposed system can be shown to satisfy confluence and subject reduction. Furthermore one can show that the ordering is a partial order, every set of expressions has a maximal element, and there is a (unique) minimal, logically strongest, type among all types of an element. The latter result implies an alternative notion of uniqueness of types. Strong normalisation is the deepest property and its proof is based on a well-founded relation defined over a subsystem of expressions without eliminators. Semantic abstraction of the objects involved in typing, i.e., to use functions in element as well as type roles in a relational setting, is the major contribution of function-based type systems. This work shows that dependent products are not necessary for defining type systems with bounded polymorphism, rather it presents a consistent system with bounded polymorphism and minimal types where typing is a relation between partially ordered functions.

Information

Type
Article
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of The Association for Symbolic Logic
Figure 0

Table 1 Function-based typing with bounded polymorphism.

Figure 1

Figure 1 Relation between degree of polymorphism and levels of universes.

Figure 2

Table 2 Definition of norming and generalized inclusion.

Figure 3

Table 3 Norm order and weak norm order.