Calculi for Time Analysis of Functional Programs. Sands, D. Ph.D. Thesis, Department of Computing, Imperial College, University of London, September, 1990.
Paper abstract bibtex Techniques for reasoning about extensional properties of functional programs are well-understood, but methods for analysing the underlying intensional, or operational properties have been much neglected. This thesis presents the development of several calculi for time analysis of functional programs. We focus on two features, higher-order functions and lazy evaluation, which contribute much to the expressive power and semantic elegance of functional languages, but serve to make operational properties more opaque. Analysing higher-order functions is problematic because complexity is dependent not only on the cost of computing, but also on the cost of \em applying\ function-valued expressions. Techniques for statically deriving programs which compute time-cost in the presence of arbitrary higher-order functions are developed. The key to this process is the introduction of syntactic structures called \em cost-closures, which enable intensional properties to be carried by functions. The approach is formalised by the construction of an appropriate cost-model, against which the correctness of the derivation is proved. A specific factorisation tactic for reasoning about higher-order functions out of context is illustrated. Reasoning about lazy evaluation (ie call-by-name, or more usually, call-by-need) is problematic because the cost of evaluating an expression cannot be understood simply from the costs of its sub-expressions. A direct calculus for reasoning about a call-by-name language with lazy lists is derived from a simple operational model. In order to extend this calculus with a restricted form of equational reasoning, a nonstandard notion of operational approximation called \em cost-simulation is developed, by analogy with \em (bi)simulation in CCS. The problem with calculi of the above form, based directly on an operational model, is that they do not yield a \em compositional description of cost, and cannot model \em lazy evaluation (graph-reduction) easily. We show how a description of the \em context in which a function is evaluated can be used to parameterise two types of time-equation: \em sufficient-time equations and \em necessary-time equations, which together provide bounds on the exact time-cost of lazy evaluation. This approach is extended to higher-order functions using a modification of the cost-closure technique.
@PHDTHESIS{Sands:PhDthesis,
author = {David Sands},
title = {Calculi for Time Analysis of Functional Programs},
school = {Department of Computing, Imperial College},
year = {1990},
address = {University of London},
month = {September},
abstract = {Techniques for reasoning about extensional properties of
functional programs are well-understood, but methods for analysing the
underlying intensional, or operational properties have been much neglected.
This thesis presents the development of several calculi for time analysis
of functional programs.
We focus on two features, higher-order functions and lazy evaluation, which
contribute much to the expressive power and semantic elegance of
functional languages, but serve to make operational properties more
opaque.
Analysing higher-order functions is problematic because complexity is
dependent not only on the cost of computing, but also on the cost of {\em
applying}\ function-valued expressions. Techniques for statically deriving
programs which compute time-cost in the presence of arbitrary higher-order
functions are developed. The key to this process is the introduction of
syntactic structures called {\em cost-closures}, which enable intensional
properties to be carried by functions. The approach is formalised by the
construction of an appropriate cost-model, against which the correctness of
the derivation is proved. A specific factorisation tactic for reasoning
about higher-order functions out of context is illustrated.
Reasoning about lazy evaluation (ie call-by-name, or more usually,
call-by-need) is problematic because the cost of evaluating an expression
cannot be understood simply from the costs of its sub-expressions. A
direct calculus for reasoning about a call-by-name language with lazy lists
is derived from a simple operational model. In order to extend this
calculus with a restricted form of equational reasoning, a nonstandard
notion of operational approximation called {\em cost-simulation} is
developed, by analogy with {\em (bi)simulation} in CCS.
The problem with calculi of the above form, based directly on an
operational model, is that they do not yield a {\em compositional}
description of cost, and cannot model {\em lazy evaluation}
(graph-reduction) easily. We show how a description of the {\em context} in
which a function is evaluated can be used to parameterise two types of
time-equation: {\em sufficient-time} equations and {\em necessary-time}
equations, which together provide bounds on the exact time-cost of lazy
evaluation. This approach is extended to higher-order functions using a
modification of the cost-closure technique.},
url_Paper = {http://www.cse.chalmers.se/~dave/papers/PhDthesis.pdf},
}
Downloads: 0
{"_id":"vWgrowgcWhgSBBeuA","bibbaseid":"sands-calculifortimeanalysisoffunctionalprograms-1990","downloads":0,"creationDate":"2017-02-03T08:24:26.855Z","title":"Calculi for Time Analysis of Functional Programs","author_short":["Sands, D."],"year":1990,"bibtype":"phdthesis","biburl":"http://www.cse.chalmers.se/~dave/davewww2016.bib","bibdata":{"bibtype":"phdthesis","type":"phdthesis","author":[{"firstnames":["David"],"propositions":[],"lastnames":["Sands"],"suffixes":[]}],"title":"Calculi for Time Analysis of Functional Programs","school":"Department of Computing, Imperial College","year":"1990","address":"University of London","month":"September","abstract":"Techniques for reasoning about extensional properties of functional programs are well-understood, but methods for analysing the underlying intensional, or operational properties have been much neglected. This thesis presents the development of several calculi for time analysis of functional programs. We focus on two features, higher-order functions and lazy evaluation, which contribute much to the expressive power and semantic elegance of functional languages, but serve to make operational properties more opaque. Analysing higher-order functions is problematic because complexity is dependent not only on the cost of computing, but also on the cost of \\em applying\\ function-valued expressions. Techniques for statically deriving programs which compute time-cost in the presence of arbitrary higher-order functions are developed. The key to this process is the introduction of syntactic structures called \\em cost-closures, which enable intensional properties to be carried by functions. The approach is formalised by the construction of an appropriate cost-model, against which the correctness of the derivation is proved. A specific factorisation tactic for reasoning about higher-order functions out of context is illustrated. Reasoning about lazy evaluation (ie call-by-name, or more usually, call-by-need) is problematic because the cost of evaluating an expression cannot be understood simply from the costs of its sub-expressions. A direct calculus for reasoning about a call-by-name language with lazy lists is derived from a simple operational model. In order to extend this calculus with a restricted form of equational reasoning, a nonstandard notion of operational approximation called \\em cost-simulation is developed, by analogy with \\em (bi)simulation in CCS. The problem with calculi of the above form, based directly on an operational model, is that they do not yield a \\em compositional description of cost, and cannot model \\em lazy evaluation (graph-reduction) easily. We show how a description of the \\em context in which a function is evaluated can be used to parameterise two types of time-equation: \\em sufficient-time equations and \\em necessary-time equations, which together provide bounds on the exact time-cost of lazy evaluation. This approach is extended to higher-order functions using a modification of the cost-closure technique.","url_paper":"http://www.cse.chalmers.se/~dave/papers/PhDthesis.pdf","bibtex":"@PHDTHESIS{Sands:PhDthesis,\n author = {David Sands},\n title = {Calculi for Time Analysis of Functional Programs},\n school = {Department of Computing, Imperial College},\n year = {1990},\n address = {University of London},\n month = {September},\n abstract = {Techniques for reasoning about extensional properties of\nfunctional programs are well-understood, but methods for analysing the\nunderlying intensional, or operational properties have been much neglected.\nThis thesis presents the development of several calculi for time analysis\nof functional programs.\n\nWe focus on two features, higher-order functions and lazy evaluation, which\ncontribute much to the expressive power and semantic elegance of\nfunctional languages, but serve to make operational properties more\nopaque.\n\nAnalysing higher-order functions is problematic because complexity is\ndependent not only on the cost of computing, but also on the cost of {\\em\napplying}\\ function-valued expressions. Techniques for statically deriving\nprograms which compute time-cost in the presence of arbitrary higher-order\nfunctions are developed. The key to this process is the introduction of\nsyntactic structures called {\\em cost-closures}, which enable intensional\nproperties to be carried by functions. The approach is formalised by the\nconstruction of an appropriate cost-model, against which the correctness of\nthe derivation is proved. A specific factorisation tactic for reasoning\nabout higher-order functions out of context is illustrated.\n\nReasoning about lazy evaluation (ie call-by-name, or more usually,\ncall-by-need) is problematic because the cost of evaluating an expression\ncannot be understood simply from the costs of its sub-expressions. A\ndirect calculus for reasoning about a call-by-name language with lazy lists\nis derived from a simple operational model. In order to extend this\ncalculus with a restricted form of equational reasoning, a nonstandard\nnotion of operational approximation called {\\em cost-simulation} is\ndeveloped, by analogy with {\\em (bi)simulation} in CCS.\n\nThe problem with calculi of the above form, based directly on an\noperational model, is that they do not yield a {\\em compositional}\ndescription of cost, and cannot model {\\em lazy evaluation}\n(graph-reduction) easily. We show how a description of the {\\em context} in\nwhich a function is evaluated can be used to parameterise two types of\ntime-equation: {\\em sufficient-time} equations and {\\em necessary-time}\nequations, which together provide bounds on the exact time-cost of lazy\nevaluation. This approach is extended to higher-order functions using a\nmodification of the cost-closure technique.},\n url_Paper = {http://www.cse.chalmers.se/~dave/papers/PhDthesis.pdf},\n}\n","author_short":["Sands, D."],"key":"Sands:PhDthesis","id":"Sands:PhDthesis","bibbaseid":"sands-calculifortimeanalysisoffunctionalprograms-1990","role":"author","urls":{" paper":"http://www.cse.chalmers.se/~dave/papers/PhDthesis.pdf"},"downloads":0},"search_terms":["calculi","time","analysis","functional","programs","sands"],"keywords":[],"authorIDs":["58943e3a2f18920f4c000022"],"dataSources":["SBHWXKotbthoEYKJv"]}