Clef.Spec.Runtime
Spec: run-time values
What a value is at run time. A model of
Native Type Mappings and
Discriminated Union Representation:
there is no obj, no boxing and no run-time type metadata.
1
From Clef Require Import Spec.Types.Values
The values of a named type.
Parameter atom : tycon -> Type.References
Uses
A run-time value: a value of a named type, or a pair of values.
A value has a closed type. No value has a function type here, since the models that use this module have no functions as values.
Representation
What memory holds.
Parameter bits : Type.References
The representation in memory of a value of a named type.
A representation carries nothing that names its type. Stated as its consequence: two values of
different types can have the same representation, as the int32 zero and the float32 zero do.
This is the formal reading used here of "no run-time type metadata". The specification does not state it in this form.