Abstraction
It is often considered important to connect denotational semantics with operational semantics. This is especially important when the denotational semantics is rather mathematical and abstract, and the operational semantics is more concrete or closer to the computational intuitions. The following properties of a denotational semantics are often of interest.
- Syntax independence: The denotations of programs should not involve the syntax of the source language.
- Soundness: All observably distinct programs have distinct denotations;
- Full abstraction: Two programs have the same denotations precisely when they are observationally equivalent. For semantics in the traditional style, full abstraction may be understood roughly as the requirement that "operational equivalence coincides with denotational equality". For denotational semantics in more intensional models, such as the Actor model and process calculi, there are different notions of equivalence within each model, and so the concept of full abstraction is a matter of debate, and harder to pin down. Also the mathematical structure of operational semantics and denotational semantics can become very close.
Additional desirable properties we may wish to hold between operational and denotational semantics are:
- Constructivism: Constructivism is concerned with whether domain elements can be shown to exist by constructive methods.
- Independence of denotational and operational semantics: The denotational semantics should be formalized using mathematical structures that are independent of the operational semantics of a programming language; However, the underlying concepts can be closely related. See the section on Compositionality below.
- Full completeness or definability: Every morphism of the semantic model should be the denotation of a program.
Read more about this topic: Denotational Semantics
Famous quotes containing the word abstraction:
“Before abstraction everything is one, but one like chaos; after abstraction everything is united again, but this union is a free binding of autonomous, self-determined beings. Out of a mob a society has developed, chaos has been transformed into a manifold world.”
—Novalis [Friedrich Von Hardenberg] (17721801)
“When truth is nothing but the truth, its unnatural, its an abstraction that resembles nothing in the real world. In nature there are always so many other irrelevant things mixed up with the essential truth. Thats why art moves youprecisely because its unadulterated with all the irrelevancies of real life.”
—Aldous Huxley (18941963)
“Theres no such thing as socialism pure
Except as an abstraction of the mind.
Theres only democratic socialism,
Monarchic socialism, oligarchic
The last being what they seem to have in Russia.”
—Robert Frost (18741963)