Back to search

University of Toronto

Eager, Lazy, and Other Executions for Predicative Programming

Abstract

dc:description.abstract

Many programs are executed according to the conventional, eager execution order, for which verification of execution costs is well-understood. However, there are other execution orders in use. One such order in common use is lazy execution or lazy evaluation, which is mostly demand-driven. Laziness supports better decompositions of algorithms, e.g., into modular producers and consumers, which enables compositional reasoning of answer correctness, but then timing correctness is more elusive. This thesis gives a formal method for verifying lazy timing, compositional with respect to program structure; it is an extension of a predicative programming theory. Predicative programming theories are formal methods that unify both specifications and programs as predicates or boolean-typed expressions over memory state and other quantities of interest. Their strengths are mathematical simplicity and support of program development and verification by incremental refinements. Among these theories, Hehner's a Practical Theory of Programming has the further strength of leaving termination and timing open rather than a built-in, and therefore is a flexible substrate for various timing schemes corresponding to various execution strategies. We use this substrate for our method for lazy timing. This thesis also proves soundness of the eager timing scheme in Hehner's work with respect to an eager operational semantics, and our lazy timing scheme with respect to a lazy operational semantics. Thus, if refinements promise an upper time bound, then execution actually stops within that time. Lastly, this thesis outlines a space of more operational semantics. It is possible ground for more execution strategies.

Degree

thesis:*
Department dc:contributor.department
Computer Science
Year dc:date.issued
2013

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Lai, Yu Cheong Albert
Advisor dc:contributor.advisor
  • Hehner, Eric C. R.

Subjects

dc:subject × 8

Rights

dc:rights
Statement dc:rights
  • Attribution 2.5 Canada
Language dc:language.iso
en_ca

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1807/35872

Chain of custody

source
Harvested from
University of Toronto
Base URL
utoronto.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Lai, Yu Cheong Albert. Eager, Lazy, and Other Executions for Predicative Programming. 2013. https://hdl.handle.net/1807/35872