Operations on records

From MaRDI portal





A collection of operations and relations on records and record types is defined. A second-order type system on them is built and shown to be sound wrt. some interpretations. Due to subtyping, record types are treated in more general way than simple product types. Moreover, each record type is provided with two kinds of information: collection of fields that have to be present, and another collection of fields that have to be absent. This approach requires more carefulness when typing records - some subtle points of this are also shown. The core of the paper consists of the description of a second-order system for typing record expressions. Three models for this system (or its restricted parts) are presented. When removing some field from a record type and adding it back again, the ``most natural, set- theoretic, model fails to satisfy the theory. Therefore two more models are constructed, one of them satisfying the ``remove-add rule, the other satisfying one more additional rule (``extensional equality rule). The soundness of all these modems wrt. corresponding subtheories is proved. The system seems to be useful as an underlying theoretical basis for typic programs that manipulate record structures, especially in OOP.





Describes a project that uses

Uses Software






This page was built for publication: Operations on records

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3349962)