University of Sussex
Browse
Eliott, Harold Pancho Gordon.pdf (1.32 MB)

A program logic for fresh name generation

Download (1.32 MB)
thesis
posted on 2023-06-10, 03:19 authored by Harold Pancho Gordon Eliott
This thesis introduces a program logic for an extension of the call-by-value simply typed ?-calculus (STLC), with a mechanism for the generation of fresh names via gensym, which is an adaptation of Pitts and Stark s ?-calculus 52 . Names can be compared for equality and inequality, producing programs with subtle observable properties. Hidden names, produced by interactions between name generation and ?-abstraction, are captured logically with a new restricted quantification. The restrictions require only derived values from previously derived terms, ensuring hidden names are not revealed. The concept of derivation is extended to type contexts and models, ensuring hidden names are not revealed at later stages. Type contexts are adapted to include an order and the ability to represent future extensions. The logic quantifies over future extensions, using a second-order quantification over future type contexts. This quantification names the future context to allow for them to be reasoned about within the logic. A new model construction is introduced to replicate the order in which names and values are produced with potentially hidden names. The semantics of the logic in the new model are used to prove each axiom and rule sound and as such the soundness of the logic. A proof that the logic is an extension of the STLC logic is given alongside a sketch of the proof that the extension is conservative. Usage of the logic is illustrated through reasoning about numerous examples. These ex- amples range from simple STLC and ?-calculus examples to well-known difficult programs from the literature.

History

File Version

  • Published version

Pages

223.0

Department affiliated with

  • Informatics Theses

Qualification level

  • doctoral

Qualification name

  • phd

Language

  • eng

Institution

University of Sussex

Full text available

  • Yes

Legacy Posted Date

2022-05-04

Usage metrics

    University of Sussex (Theses)

    Categories

    No categories selected

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC