A.1.4 Function TypesA.1 TypesA.1.2 Range TypesA.1.3 Subtypes

A.1.3 Subtypes

Synopsis

SUBTYPE(E)

Description

This type takes a value E of type T -> BOOLEAN for some type T, i.e. a unary predicate on T. The type denotes the domain of all values of T that satisfy this predicate.

The denoted predicate must not be false for all values of T; thus the type gives rise to a type checking condition exist x in T: Ex.

Pragmatics

The value E is typically denoted by a function expression.


Wolfgang Schreiner

A.1.4 Function TypesA.1 TypesA.1.2 Range TypesA.1.3 Subtypes