A Mathematical Theory of Correct Computation. Naish, L., Pope, B., & Søndergaard, H. Mathematics, 14(18):3292, 2026.
Paper doi abstract bibtex In 1970, Dana Scott proposed his highly influential ``mathematical theory of computation'' to define the relationship between the text of a program and what the program computes (or denotes) — the ``semantics'' of the program. Scott used a complete lattice based on the ``information ordering'', with the bottom element representing undefined — a program failing to terminate normally, thus producing no information. The top element, however, was unused. Hence most subsequent applications of denotational semantics have used mathematical structures that avoid top elements. We suggest that the information ordering is relevant not only to semanticists, but also to working programmers, as a basis for determining if a program component or a computation is correct according to their intentions. We also suggest that a return to the use of complete lattices is called for, to broaden formal semantics and allow it to encompass programmer intentions. That is because often those intentions permit more than one runtime behaviour for a given input. In this paper we explore the connections between the information ordering, correctness of computations and programs, and debugging. We present a general theory and describe several instances where the intention for what our logic/functional code computes plus what it actually computes can be described by elements in a complete lattice. For correct code, the information order relates 1) what is intended and what is computed, 2) successive states of a computation, and 3) the left and right sides of program component definitions. For bugs, the information order is violated. The technical results are a reasonably straightforward extension to previous denotational semantics work but the scheme aligns much better with practical programming and software tools. The theory extends both the theoretical basis and practical flexibility of declarative debugging and reasoning about partial correctness and gives an attractive mathematical framework that encompasses our intentions, our programs and what they compute.
@article{Nai-Pop-Son_Mathematics26,
author = {Lee Naish and
Bernard Pope and
Harald S{\o}ndergaard},
title = {A Mathematical Theory of Correct Computation},
journal = {Mathematics},
volume = {14},
number = {18},
pages = {3292},
year = {2026},
url_Paper = {http://dx.doi.org/10.3390/math14183292},
doi = {10.3390/math14183292},
abstract = {In 1970, Dana Scott proposed his highly influential
``mathematical theory of computation'' to define the
relationship between the text of a program and what the
program computes (or denotes) --- the ``semantics'' of the
program. Scott used a complete lattice based on the
``information ordering'', with the bottom element
representing undefined --- a program failing to terminate
normally, thus producing no information. The top element,
however, was unused. Hence most subsequent applications of
denotational semantics have used mathematical structures that
avoid top elements. We suggest that the information ordering
is relevant not only to semanticists, but also to working
programmers, as a basis for determining if a program
component or a computation is <i>correct</i> according to
their intentions. We also suggest that a return to the use
of complete lattices is called for, to broaden formal
semantics and allow it to encompass programmer intentions.
That is because often those intentions permit more than one
runtime behaviour for a given input. In this paper we
explore the connections between the information ordering,
correctness of computations and programs, and debugging.
We present a general theory and describe several instances
where the intention for what our logic/functional code
computes plus what it actually computes can be described by
elements in a complete lattice. For correct code, the
information order relates 1) what is intended and what is
computed, 2) successive states of a computation, and 3) the
left and right sides of program component definitions. For
bugs, the information order is violated. The technical
results are a reasonably straightforward extension to
previous denotational semantics work but the scheme aligns
much better with practical programming and software tools.
The theory extends both the theoretical basis and practical
flexibility of declarative debugging and reasoning about
partial correctness and gives an attractive mathematical
framework that encompasses our intentions, our programs and
what they compute.},
keywords = {Logic programming, Functional programming, Semantics,
Partial correctness, Declarative debugging, Specification,
Information ordering, Lattice theory},
}
Downloads: 0
{"_id":"jHk9KxBZyMcBAf6AW","bibbaseid":"naish-pope-sndergaard-amathematicaltheoryofcorrectcomputation-2026","author_short":["Naish, L.","Pope, B.","Søndergaard, H."],"bibdata":{"bibtype":"article","type":"article","author":[{"firstnames":["Lee"],"propositions":[],"lastnames":["Naish"],"suffixes":[]},{"firstnames":["Bernard"],"propositions":[],"lastnames":["Pope"],"suffixes":[]},{"firstnames":["Harald"],"propositions":[],"lastnames":["Søndergaard"],"suffixes":[]}],"title":"A Mathematical Theory of Correct Computation","journal":"Mathematics","volume":"14","number":"18","pages":"3292","year":"2026","url_paper":"http://dx.doi.org/10.3390/math14183292","doi":"10.3390/math14183292","abstract":"In 1970, Dana Scott proposed his highly influential ``mathematical theory of computation'' to define the relationship between the text of a program and what the program computes (or denotes) — the ``semantics'' of the program. Scott used a complete lattice based on the ``information ordering'', with the bottom element representing undefined — a program failing to terminate normally, thus producing no information. The top element, however, was unused. Hence most subsequent applications of denotational semantics have used mathematical structures that avoid top elements. We suggest that the information ordering is relevant not only to semanticists, but also to working programmers, as a basis for determining if a program component or a computation is <i>correct</i> according to their intentions. We also suggest that a return to the use of complete lattices is called for, to broaden formal semantics and allow it to encompass programmer intentions. That is because often those intentions permit more than one runtime behaviour for a given input. In this paper we explore the connections between the information ordering, correctness of computations and programs, and debugging. We present a general theory and describe several instances where the intention for what our logic/functional code computes plus what it actually computes can be described by elements in a complete lattice. For correct code, the information order relates 1) what is intended and what is computed, 2) successive states of a computation, and 3) the left and right sides of program component definitions. For bugs, the information order is violated. The technical results are a reasonably straightforward extension to previous denotational semantics work but the scheme aligns much better with practical programming and software tools. The theory extends both the theoretical basis and practical flexibility of declarative debugging and reasoning about partial correctness and gives an attractive mathematical framework that encompasses our intentions, our programs and what they compute.","keywords":"Logic programming, Functional programming, Semantics, Partial correctness, Declarative debugging, Specification, Information ordering, Lattice theory","bibtex":"@article{Nai-Pop-Son_Mathematics26,\n author = {Lee Naish and\n\t\tBernard Pope and\n Harald S{\\o}ndergaard},\n title = {A Mathematical Theory of Correct Computation},\n journal = {Mathematics},\n volume = {14},\n number = {18},\n pages = {3292},\n year = {2026},\n url_Paper = {http://dx.doi.org/10.3390/math14183292},\n doi = {10.3390/math14183292},\n abstract = {In 1970, Dana Scott proposed his highly influential \n\t\t``mathematical theory of computation'' to define the \n\t\trelationship between the text of a program and what the\n\t\tprogram computes (or denotes) --- the ``semantics'' of the \n\t\tprogram. Scott used a complete lattice based on the \n\t\t``information ordering'', with the bottom element \n\t\trepresenting undefined --- a program failing to terminate \n\t\tnormally, thus producing no information. The top element,\n\t\thowever, was unused. Hence most subsequent applications of \n\t\tdenotational semantics have used mathematical structures that\n\t\tavoid top elements. We suggest that the information ordering \n\t\tis relevant not only to semanticists, but also to working \n\t\tprogrammers, as a basis for determining if a program \n\t\tcomponent or a computation is <i>correct</i> according to \n\t\ttheir intentions. We also suggest that a return to the use \n\t\tof complete lattices is called for, to broaden formal \n\t\tsemantics and allow it to encompass programmer intentions.\n\t\tThat is because often those intentions permit more than one \n\t\truntime behaviour for a given input. In this paper we \n\t\texplore the connections between the information ordering, \n\t\tcorrectness of computations and programs, and debugging.\n\t\tWe present a general theory and describe several instances \n\t\twhere the intention for what our logic/functional code\n\t\tcomputes plus what it actually computes can be described by \n\t\telements in a complete lattice. For correct code, the \n\t\tinformation order relates 1) what is intended and what is \n\t\tcomputed, 2) successive states of a computation, and 3) the \n\t\tleft and right sides of program component definitions. For \n\t\tbugs, the information order is violated. The technical \n\t\tresults are a reasonably straightforward extension to\n\t\tprevious denotational semantics work but the scheme aligns \n\t\tmuch better with practical programming and software tools.\n\t\tThe theory extends both the theoretical basis and practical\n\t\tflexibility of declarative debugging and reasoning about\n\t\tpartial correctness and gives an attractive mathematical \n\t\tframework that encompasses our intentions, our programs and \n\t\twhat they compute.},\n keywords = {Logic programming, Functional programming, Semantics, \nPartial correctness, Declarative debugging, Specification, \nInformation ordering, Lattice theory},\n}\n\n","author_short":["Naish, L.","Pope, B.","Søndergaard, H."],"key":"Nai-Pop-Son_Mathematics26","id":"Nai-Pop-Son_Mathematics26","bibbaseid":"naish-pope-sndergaard-amathematicaltheoryofcorrectcomputation-2026","role":"author","urls":{" paper":"http://dx.doi.org/10.3390/math14183292"},"keyword":["Logic programming","Functional programming","Semantics","Partial correctness","Declarative debugging","Specification","Information ordering","Lattice theory"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"article","biburl":"https://people.eng.unimelb.edu.au/harald/bibbase.bib","dataSources":["XqcrNTrCCBr9mSd37","W7ih7WyQivP4EDh83"],"keywords":["logic programming","functional programming","semantics","partial correctness","declarative debugging","specification","information ordering","lattice theory"],"search_terms":["mathematical","theory","correct","computation","naish","pope","søndergaard"],"title":"A Mathematical Theory of Correct Computation","year":2026}