encyclopegia.org

Programming Computable Functions

In computer science, Programming Computable Functions (PCF), or Programming with Computable Functions, or Programming language for Computable Functions, is a programming language which is typed and based on functional programming, introduced by Gordon Plotkin in 1977, based on prior unpublished material by Dana Scott. It can be considered as an extended version of the typed lambda calculus, or a simplified version of modern typed functional languages such as ML or Haskell. A fully abstract model for PCF was first given by Robin Milner. However, since Milner's model was essentially based on the syntax of PCF it was considered less than satisfactory. The first two fully abstract models not employing syntax were formulated during the 1990s. These models are based on game semantics and Kripke logical relations. For a time it was felt that neither of these models was completely satisfactory, since they were not effectively presentable. However, Ralph Loader demonstrated that no effectively presentable fully abstract model could exist, since the question of program equivalence in the finitary fragment of PCF is not decidable.

In computer science, Programming Computable Functions (PCF), or Programming with Computable Functions, or Programming language for Computable Functions, is a programming language which is typed and based on functional programming, introduced by Gordon Plotkin in 1977, based on prior unpublished material by Dana Scott. It can be considered as an extended version of the typed lambda calculus, or a simplified version of modern typed functional languages such as ML or Haskell. A fully abstract model for PCF was first given by Robin Milner. However, since Milner's model was essentially based on the syntax of PCF it was considered less than satisfactory. The first two fully abstract models not employing syntax were formulated during the 1990s. These models are based on game semantics and Kripke logical relations. For a time it was felt that neither of these models was completely satisfactory, since they were not effectively presentable. However, Ralph Loader demonstrated that no effectively presentable fully abstract model could exist, since the question of program equivalence in the finitary fragment of PCF is not decidable. ==Syntax== The data types of PCF are inductively defined as nat is a type For types σ and τ, there is a function type σ → τ A context is a list of pairs x : σ, where x is a variable name and σ is a type, such that no variable name is duplicated. One then defines typing judgments of terms-in-context in the usual way for the following syntactical constructs: Variables (if x : σ is part of a context Γ, then Γ ⊢ x : σ) Application (of a term of type σ → τ to a term of type σ) λ-abstraction The Y fixed point combinator (making terms of type σ out of terms of type σ → σ) The successor (succ) and predecessor (pred) operations on nat and the constant 0 The conditional if with the typing rule: \frac{ \Gamma \; \vdash \; t \; : \textbf{nat} , \quad \quad \Gamma \; \vdash \; s_0 \; : \sigma , \quad \quad \Gamma \; \vdash \; s_1 \; : \sigma } { \Gamma \; \vdash \; \textbf{if}(t,s_0,s_1) \; : \sigma } (nats will be interpreted as booleans here with a convention like zero denoting truth, and any other number denoting falsity) ==Semantics== ===Denotational semantics=== A relatively straightforward semantics for the language is the Scott model. In this model, Types are interpreted as certain domains. [\![ \textbf{nat} ]\!] := \mathbb{N}_{\bot} (the natural numbers with a bottom element adjoined, with the flat ordering) [\![ \sigma \to \tau \, ]\!] is interpreted as the domain of Scott-continuous functions from [\![\sigma]\!] \, to [\![\tau]\!] \, , with the pointwise ordering. A context x_1 : \sigma_1, \; \dots, \; x_n : \sigma_n is interpreted as the product [\![\sigma_1]\!] \times \; \dots \; \times [\![\sigma_n]\!] Terms in context \Gamma \; \vdash \; x \; : \; \sigma are interpreted as continuous functions [\![\Gamma]\!] \; \to \; [\![\sigma]\!] Variable terms are interpreted as projections Lambda abstraction and application are interpreted by making use of the cartesian closed structure of the category of domains and continuous functions Y is interpreted by taking the least fixed point of the argument This model is not fully abstract for PCF; but it is fully abstract for the language obtained by adding a parallel or operator to PCF. ==External links== Introduction to RealPCF Lexer and Parser for PCF written in SML

References

  1. PCF is a programming language for computable functions, based on LCF, Scott’s logic of computable functions. · retrieved 2026-11-17 · rev 1367466668
    Cite this reference

    MLA "PCF is a programming language for computable functions, based on LCF, Scott’s logic of computable functions." 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1367466668. Accessed 24 November 2026.

    Chicago "PCF is a programming language for computable functions, based on LCF, Scott’s logic of computable functions." 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1367466668.

    APA encyclopegia.org. (2026). PCF is a programming language for computable functions, based on LCF, Scott’s logic of computable functions. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1367466668

  2. Full Abstraction for PCF · retrieved 2026-11-17 · rev 1367466668
    Cite this reference

    MLA "Full Abstraction for PCF." Abramsky, S. 2026-11-17. http://qmro.qmul.ac.uk/xmlui/handle/123456789/13604. Accessed 24 November 2026.

    Chicago "Full Abstraction for PCF." Abramsky, S. 2026-11-17. http://qmro.qmul.ac.uk/xmlui/handle/123456789/13604.

    APA Abramsky, S. (2026). Full Abstraction for PCF. Retrieved November 24, 2026, from http://qmro.qmul.ac.uk/xmlui/handle/123456789/13604

  3. On Full Abstraction for PCF · retrieved 2026-11-17 · rev 1367466668
    Cite this reference

    MLA "On Full Abstraction for PCF." a b Hyland, J. 2026-11-17. https://ora.ox.ac.uk/objects/uuid:63c54392-39f3-46f1-8a68-e6ff0ec90218. Accessed 24 November 2026.

    Chicago "On Full Abstraction for PCF." a b Hyland, J. 2026-11-17. https://ora.ox.ac.uk/objects/uuid:63c54392-39f3-46f1-8a68-e6ff0ec90218.

    APA a b Hyland, J. (2026). On Full Abstraction for PCF. Retrieved November 24, 2026, from https://ora.ox.ac.uk/objects/uuid:63c54392-39f3-46f1-8a68-e6ff0ec90218

  4. Finitary PCF is not decidable · retrieved 2026-11-17 · rev 1367466668
    Cite this reference

    MLA "Finitary PCF is not decidable." Loader, R. 2026-11-17. https://doi.org/10.1016%2FS0304-3975%2800%2900194-8. Accessed 24 November 2026.

    Chicago "Finitary PCF is not decidable." Loader, R. 2026-11-17. https://doi.org/10.1016%2FS0304-3975%2800%2900194-8.

    APA Loader, R. (2026). Finitary PCF is not decidable. Retrieved November 24, 2026, from https://doi.org/10.1016%2FS0304-3975%2800%2900194-8

  5. Fully abstract models of typed λ-calculi · retrieved 2026-11-17 · rev 1367466668
    Cite this reference

    MLA "Fully abstract models of typed λ-calculi." Milner, Robin (February 1977). 2026-11-17. https://en.wikipedia.org/wiki/Robin_Milner. Accessed 24 November 2026.

    Chicago "Fully abstract models of typed λ-calculi." Milner, Robin (February 1977). 2026-11-17. https://en.wikipedia.org/wiki/Robin_Milner.

    APA Milner, Robin (February 1977). (2026). Fully abstract models of typed λ-calculi. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Robin_Milner

  6. Kripke Logical Relations and PCF · retrieved 2026-11-17 · rev 1367466668
    Cite this reference

    MLA "Kripke Logical Relations and PCF." O'Hearn, P. 2026-11-17. https://surface.syr.edu/lcsmith_other/3. Accessed 24 November 2026.

    Chicago "Kripke Logical Relations and PCF." O'Hearn, P. 2026-11-17. https://surface.syr.edu/lcsmith_other/3.

    APA O'Hearn, P. (2026). Kripke Logical Relations and PCF. Retrieved November 24, 2026, from https://surface.syr.edu/lcsmith_other/3

  7. Correspondence between Operational and Denotational Semantics: The Full Abstraction Problem for PCF · retrieved 2006-01-18 · rev 1367466668
    Cite this reference

    MLA "Correspondence between Operational and Denotational Semantics: The Full Abstraction Problem for PCF." Ong, C. 2006-01-18. https://web.archive.org/web/20060107195328/http://users.comlab.ox.ac.uk/luke.ong/publications/. Accessed 24 November 2026.

    Chicago "Correspondence between Operational and Denotational Semantics: The Full Abstraction Problem for PCF." Ong, C. 2006-01-18. https://web.archive.org/web/20060107195328/http://users.comlab.ox.ac.uk/luke.ong/publications/.

    APA Ong, C. (2006). Correspondence between Operational and Denotational Semantics: The Full Abstraction Problem for PCF. Retrieved November 24, 2026, from https://web.archive.org/web/20060107195328/http://users.comlab.ox.ac.uk/luke.ong/publications/

  8. LCF considered as a programming language · retrieved 2026-11-17 · rev 1367466668
    Cite this reference

    MLA "LCF considered as a programming language." a b Plotkin, Gordon D. 2026-11-17. https://en.wikipedia.org/wiki/Gordon_Plotkin. Accessed 24 November 2026.

    Chicago "LCF considered as a programming language." a b Plotkin, Gordon D. 2026-11-17. https://en.wikipedia.org/wiki/Gordon_Plotkin.

    APA a b Plotkin, Gordon D. (2026). LCF considered as a programming language. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Gordon_Plotkin

Cite this article

MLA

"Programming Computable Functions." encyclopegia.org, 2026, https://encyclopegia.org/wiki/programming-computable-functions. Accessed 24 November 2026.

Chicago

"Programming Computable Functions." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/programming-computable-functions.

APA

encyclopegia.org. (2026). Programming Computable Functions. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/programming-computable-functions

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Brown University Interactive Language

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1367466668 · 0.5 · snapshot enwiki-001367466668

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.