encyclopegia.org

Referential transparency

In analytic philosophy and computer science, referential transparency and referential opacity are properties of linguistic constructions, and by extension of languages. A linguistic construction is called referentially transparent when for any expression built from it, replacing a subexpression with another one that denotes the same value does not change the value of the expression. Otherwise, it is called referentially opaque. Each expression built from a referentially opaque linguistic construction states something about a subexpression, whereas each expression built from a referentially transparent linguistic construction states something not about a subexpression, meaning that the subexpressions are ‘transparent’ to the expression, acting merely as ‘references’ to something else. For example, the linguistic construction ‘_ was wise’ is referentially transparent (e.g., Socrates was wise is equivalent to The founder of Western philosophy was wise) but ‘_ said _’ is referentially opaque (e.g., Xenophon said ‘Socrates was wise’ is not equivalent to Xenophon said ‘The founder of Western philosophy was wise’). Referential transparency, in programming languages, depends on semantic equivalences among denotations of expressions, or on contextual equivalence of expressions themselves. That is, referential transparency depends on the semantics of the language.…

In analytic philosophy and computer science, referential transparency and referential opacity are properties of linguistic constructions, and by extension of languages. A linguistic construction is called referentially transparent when for any expression built from it, replacing a subexpression with another one that denotes the same value does not change the value of the expression. Otherwise, it is called referentially opaque. Each expression built from a referentially opaque linguistic construction states something about a subexpression, whereas each expression built from a referentially transparent linguistic construction states something not about a subexpression, meaning that the subexpressions are ‘transparent’ to the expression, acting merely as ‘references’ to something else. For example, the linguistic construction ‘_ was wise’ is referentially transparent (e.g., Socrates was wise is equivalent to The founder of Western philosophy was wise) but ‘_ said _’ is referentially opaque (e.g., Xenophon said ‘Socrates was wise’ is not equivalent to Xenophon said ‘The founder of Western philosophy was wise’). Referential transparency, in programming languages, depends on semantic equivalences among denotations of expressions, or on contextual equivalence of expressions themselves. That is, referential transparency depends on the semantics of the language. So, both declarative languages and imperative languages can have referentially transparent positions, referentially opaque positions, or (usually) both, according to the semantics they are given. The importance of referentially transparent positions is that they allow the programmer and the compiler to reason about program behavior as a rewrite system at those positions. This can help in proving correctness, simplifying an algorithm, assisting in modifying code without breaking it, or optimizing code by means of memoization, common subexpression elimination, lazy evaluation, constant folding, or parallelization. Let’s denote syntactic equivalence with ≡ and semantic equivalence with =. ==Notes==

References

  1. A linguistic construction (also called mode of containment, context, or operator) is an expression with holes. Wikipedia revision 1376033628, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1376033628
    Cite this reference

    MLA "A linguistic construction (also called mode of containment, context, or operator) is an expression with holes. Wikipedia revision 1376033628, retrieved 2026-11-18." A linguistic construction (also called mode of containment, context, or operator) is an expression with holes. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1376033628. Accessed 24 November 2026.

    Chicago "A linguistic construction (also called mode of containment, context, or operator) is an expression with holes. Wikipedia revision 1376033628, retrieved 2026-11-18." A linguistic construction (also called mode of containment, context, or operator) is an expression with holes. 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1376033628.

    APA A linguistic construction (also called mode of containment, context, or operator) is an expression with holes. (2026). A linguistic construction (also called mode of containment, context, or operator) is an expression with holes. Wikipedia revision 1376033628, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1376033628

  2. Here a value is the denotation (also called meaning, object, or referent) of an expression, not the result of the evaluation process. Wikipedia revision 1376033628, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1376033628
    Cite this reference

    MLA "Here a value is the denotation (also called meaning, object, or referent) of an expression, not the result of the evaluation process. Wikipedia revision 1376033628, retrieved 2026-11-18." Here a value is the denotation (also called meaning, object, or referent) of an expression, not the result of the evalua. 2026-11-17. https://en.wikipedia.org/wiki/Expression_(computer_science). Accessed 24 November 2026.

    Chicago "Here a value is the denotation (also called meaning, object, or referent) of an expression, not the result of the evaluation process. Wikipedia revision 1376033628, retrieved 2026-11-18." Here a value is the denotation (also called meaning, object, or referent) of an expression, not the result of the evalua. 2026-11-17. https://en.wikipedia.org/wiki/Expression_(computer_science).

    APA Here a value is the denotation (also called meaning, object, or referent) of an expression, not the result of the evalua. (2026). Here a value is the denotation (also called meaning, object, or referent) of an expression, not the result of the evaluation process. Wikipedia revision 1376033628, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Expression_(computer_science)

  3. a b Quine, Willard Van Orman (1960). Word and Object (1st ed.). Cambridge, Massachusetts: MIT Press. p. 144. ISBN 978-0-262-17001-7 . {{ cite book }} : ISBN / Date incompatibility ( help ) Wikipedia revision 1376033628, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1376033628
    Cite this reference

    MLA "a b Quine, Willard Van Orman (1960). Word and Object (1st ed.). Cambridge, Massachusetts: MIT Press. p. 144. ISBN 978-0-262-17001-7 . {{ cite book }} : ISBN / Date incompatibility ( help ) Wikipedia revision 1376033628, retrieved 2026-11-18." a b Quine, Willard Van Orman (1960). 2026-11-17. https://en.wikipedia.org/wiki/Willard_Van_Orman_Quine. Accessed 24 November 2026.

    Chicago "a b Quine, Willard Van Orman (1960). Word and Object (1st ed.). Cambridge, Massachusetts: MIT Press. p. 144. ISBN 978-0-262-17001-7 . {{ cite book }} : ISBN / Date incompatibility ( help ) Wikipedia revision 1376033628, retrieved 2026-11-18." a b Quine, Willard Van Orman (1960). 2026-11-17. https://en.wikipedia.org/wiki/Willard_Van_Orman_Quine.

    APA a b Quine, Willard Van Orman (1960). (2026). a b Quine, Willard Van Orman (1960). Word and Object (1st ed.). Cambridge, Massachusetts: MIT Press. p. 144. ISBN 978-0-262-17001-7 . {{ cite book }} : ISBN / Date incompatibility ( help ) Wikipedia revision 1376033628, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Willard_Van_Orman_Quine

  4. Referential Transparency, Definiteness and Unfoldability · retrieved 2026-11-17 · rev 1376033628
    Cite this reference

    MLA "Referential Transparency, Definiteness and Unfoldability." Søndergaard, Harald; Sestoft, Peter (1990). 2026-11-17. http://www.itu.dk/people/sestoft/papers/SondergaardSestoft1990.pdf. Accessed 24 November 2026.

    Chicago "Referential Transparency, Definiteness and Unfoldability." Søndergaard, Harald; Sestoft, Peter (1990). 2026-11-17. http://www.itu.dk/people/sestoft/papers/SondergaardSestoft1990.pdf.

    APA Søndergaard, Harald; Sestoft, Peter (1990). (2026). Referential Transparency, Definiteness and Unfoldability. Retrieved November 24, 2026, from http://www.itu.dk/people/sestoft/papers/SondergaardSestoft1990.pdf

  5. Fundamental Concepts in Programming Languages · retrieved 2026-11-17 · rev 1376033628
    Cite this reference

    MLA "Fundamental Concepts in Programming Languages." a b Strachey, Christopher (1967). 2026-11-17. https://link.springer.com/article/10.1023%2FA%3A1010000313106. Accessed 24 November 2026.

    Chicago "Fundamental Concepts in Programming Languages." a b Strachey, Christopher (1967). 2026-11-17. https://link.springer.com/article/10.1023%2FA%3A1010000313106.

    APA a b Strachey, Christopher (1967). (2026). Fundamental Concepts in Programming Languages. Retrieved November 24, 2026, from https://link.springer.com/article/10.1023%2FA%3A1010000313106

  6. a b Whitehead, Alfred North ; Russell, Bertrand (1927). Principia Mathematica . Vol. 1 (2nd ed.). Cambridge: Cambridge University Press. p. 665. ISBN 978-0-521-06791-1 . {{ cite book }} : ISBN / Date incompatibility ( help ) Wikipedia revision 1376033628, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1376033628
    Cite this reference

    MLA "a b Whitehead, Alfred North ; Russell, Bertrand (1927). Principia Mathematica . Vol. 1 (2nd ed.). Cambridge: Cambridge University Press. p. 665. ISBN 978-0-521-06791-1 . {{ cite book }} : ISBN / Date incompatibility ( help ) Wikipedia revision 1376033628, retrieved 2026-11-18." a b Whitehead, Alfred North ; Russell, Bertrand (1927). 2026-11-17. https://en.wikipedia.org/wiki/Alfred_North_Whitehead. Accessed 24 November 2026.

    Chicago "a b Whitehead, Alfred North ; Russell, Bertrand (1927). Principia Mathematica . Vol. 1 (2nd ed.). Cambridge: Cambridge University Press. p. 665. ISBN 978-0-521-06791-1 . {{ cite book }} : ISBN / Date incompatibility ( help ) Wikipedia revision 1376033628, retrieved 2026-11-18." a b Whitehead, Alfred North ; Russell, Bertrand (1927). 2026-11-17. https://en.wikipedia.org/wiki/Alfred_North_Whitehead.

    APA a b Whitehead, Alfred North ; Russell, Bertrand (1927). (2026). a b Whitehead, Alfred North ; Russell, Bertrand (1927). Principia Mathematica . Vol. 1 (2nd ed.). Cambridge: Cambridge University Press. p. 665. ISBN 978-0-521-06791-1 . {{ cite book }} : ISBN / Date incompatibility ( help ) Wikipedia revision 1376033628, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Alfred_North_Whitehead

Cite this article

MLA

"Referential transparency." encyclopegia.org, 2026, https://encyclopegia.org/wiki/referential-transparency. Accessed 24 November 2026.

Chicago

"Referential transparency." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/referential-transparency.

APA

encyclopegia.org. (2026). Referential transparency. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/referential-transparency

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

Related articles

Category:Self-referential paradoxes

stub · references available

EU Transparency Register ID

stub · references available

Transparency International

stub · references available

Radical transparency

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

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.