Program Semantics, Intensional Logic and Compositionality 1 Introduction

Total Page:16

File Type:pdf, Size:1020Kb

Program Semantics, Intensional Logic and Compositionality 1 Introduction Program Semantics Intensional Logic and Comp ositionality Jeery I Zucker Departmen t of Computer Science Systems McMaster University Ont LS K Canada Hamilton zuckermaccsdcssmcmasterca HingKai Hung Campus Drive USA Snyder NY hungcsbuffaloedu Abstract We apply intensional logic to the semantics of an Algollike programming language asso ciates with expressions their meanings relative to p ossible worlds here This interpreted as machine states These meanings lie in the semantic domains of a higher order typ ed intensional logic The great advantage of this approach is that it preserves comp ositionality of the meaning function even in opaque contexts This approach assignments Janssen and Van Emde Boas has b een applied in three areas blo cks and pro cedures with parameters passed by value and by reference Hung and assignments to p ointers and parameters passed by name Hung and Zuc ker It is shown how this approach gives an elegant semantics which is simple comp ositional and implementation indep endent Intro duction Denotational semantics Comp ositionality Assume within some general framework we have a numb er of syntactic domains and corresp onding semantic domains D with a meaning function D Assume also that the comp ound expressions of the syntax are formed from the atomic expressions set of syntactic operators by a xed The meaning function is said to satisfy the Compositionality Principle if for every such nary syntactic op erator there exists a corresp onding function 1 n n+1 D D D such that for every comp ound expression 1 n 1 n n+1 n+1 1 n 1 n This research was supp orted by the National Science Foundation under grant no DCR by a grant the Science Engineering Research Board of McMaster University and by a grant from the National from Sciences and Engineering Research Council of Canada Typ eset by A ST X M E The Comp ositionality Principle thus says that the meaning of a comp ound expression is a function of the meanings of its parts The idea can b e found in the writings of Frege It is Chapter where it is used in the framework of many carefully discussed in Janssen cit Chapter Janssen gives many arguments for sorted algebras and homomorphisms op accepting this principle usefulness elegance generality comprehensibility p ower value as a heuristic to ol and others Its signicance for the correctness and verication of concurrent systems is discussed in Zwiers tial comp osition Consider a simple Algollike programming language with assignments sequen we dene the meaning S of a program S in this language as a state and conditionals Whether transformer De Bakker or as a predicate transformer forward or backward Dijkstra it is not hard to see that the resulting semantics is compositional and reference ad Consider now however the language extended by procedures with value dress parameters and by blocks For such a language comp ositional semantics is more dif cult to dene De Bakker for example uses syntactic application which is non comp ositional So how can we restore comp ositionality in such a framework The answer is in the use of intensional logic as we will now see Sense and Denotation Frege distinguished b etween two notions of mean ing denotation or reference or extension and sense or intension We illustrate rst that compositionality implies the the application of each with a wellknown example Note which states that substituting one term for another with the principle of substitutivity of equals same meaning in an expression should not alter the meaning of that expression Consider for example the sentence S I see the morning star now which has a denite denotation truth value relative to a particular valuation of the index icals I and now Now the phrases the morning star and the evening star have the same enus so substituting the evening star for the morning star in S denotation the planet V should result in a sentence with the same truth value S I see the evening star now which is the case But now consider the sentence S I b elieve that the morning star is the morning star which is obviously true Now however if we substitute the evening star for say the second o ccurrence of the morning star in S we get a sentence S I b elieve that the morning star is the evening star which may very well b e false The explanation for this apparent violation of the principle of substitutivity of equals is that the context after a verb of attitude expressing a b elief etc is referential ly opaque compared to a referential ly transparent context such as is visible Freges insight was that the meaning of an expression in an opaque context is given not by its denotation but by its sense Now the ent senses since we can easily imagine expressions morning star and evening star have dier a world in which they refer to dierent ob jects and hence dierent meanings in an opaque context Hence S and S do not give a counterexample to the principle of substitutivity of equals To summarize this discussion taking the senses of expressions to b e their meanings in opaque contexts restores the principle of substitutivity of equals and hence comp ositionality Intensional logic In order to reason ab out senses or intensions as opp osed to denotations or extensions we use intensional logic An early axiomatization of intensional logic Carnap gave a semantics in which the sense of an expression was given by Church e gave a more mathematically is a function from states to extensional values Kripk to develop ed semantics in which the sense of an expression is a function from possible worlds extensional values Mon tague gave a comp ositional semantics for a fragment of English including opaque contexts by dening a translation of it into a system of intensional logic Van Emde Boas and Janssen applied Montagues approach to an Janssen imp erative programming language essentially a fragment of Algol Their insight was that for example the left hand certain contexts in such a language can b e viewed as opaque contexts side of an assignment Example Supp ose the lo cations x and y each store the value Compare rst the two assignments x x and x y They b oth have the same eect x y But compare now the two assignments x x and y x They have dierent eects The rst results in x y and the second in x y So substitutivity of equals works in but not in From this we infer that the rhs right hand side of an assignment is referential ly transparent but the lhs left hand side is referential ly opaque as The solution is to dene the the sense of a program variable or identier of typ e N a function from p ossible worlds to numb ers interpreting p ossible worlds as computation states This amounts to taking the sense of an identier as a memory address or location the contents of which dep ends on the state of the computation and its denotation as the current contents Remark In common progam language terminology the lhs of an assignment is said to de ct The assignment causes the reference to note a reference or lo cation and the rhs an obje p ossess the ob ject as its value and the ob ject can then b e accessed through the reference by dereferencing This is quite a dierent concept of reference from the one used in philosophy denotation that we have b een discussing Janssen and Van Emde Boas pro ceeded by translating the programming language into a system of higherorder intensional logic The semantics thus inherited by the programming language turns out to b e comp ositional An overview of this pap er The approach has b een applied for fragments of Algol in three areas Assignments Janssen Van Emde Boas Blo cks and pro cedures with parameters passed by value and by reference Hung Assignments to p ointer identiers parameters passed by name Hung Zucker We will consider each of these three areas in turn in Sections and resp ectively We have In each case as we will see one gets a semantics which is already touched on the rst in x compositional and implementation independent This pap er is intended as a brief survey of these areas details can b e found in the ab ove references and in a forthcoming publication Garrel Pottinger and Bob Tennent for helpful remarks following We thank Peter Grogono the talk on which this pap er is based The formal system I L of intensional logic Syntax We dene a typ ed system IL of intensional logic The types are generated according to the denition j B j j S N 1 2 where N and B are the basic typ es of numbers and booleans or propositions and S is the typ e of states Note that S is a hidden typ e there are no terms of typ e S For each typ e there is a countable set V ar of variables of typ e There are also constants of certain typ es including the constant Typ ed expressions are generated according to the typing rules from these variables and constants by the arithmetical operations of the relations of and on the numb ers the prop ositional connectives and existential quantier the op erations of ^ _ application and lambda abstraction at all typ es and the modal operators intension extension and h i state switcher Definition Reference variables x are variables of typ e S N There is also a countable f of reference constants X of typ e S N The reference variables and constants set Re will represent the numb er references or lo cations ^ Remarks For an expression ie of type the expression gives the sense or intension of ie its values in all states _ For S gives
Recommended publications
  • The Linguistic Description of Opaque Contexts Pdf, Epub, Ebook
    THE LINGUISTIC DESCRIPTION OF OPAQUE CONTEXTS PDF, EPUB, EBOOK Janet Dean Fodor | 384 pages | 26 Nov 2015 | Taylor & Francis Ltd | 9781138989535 | English | London, United Kingdom The Linguistic Description of Opaque Contexts PDF Book This also concerns noun phrases embedded under attitude verbs; consider:. A naturalobjectionto ourproposalis thatthe T-sentencewe give for 'Galileo said that the earthmoves' will not enable someone who grasps it alone to under- stand the sentence for which it gives truthconditions. Peter Trudgill offers examples of non-transparent and transparent compounds: "The English word dentist is not semantically transparent whereas the Norwegian word tannlege , literally 'tooth doctor,' is" A Glossary of Sociolinguistics , This cannot mean as if they had asserted them, so we take it that the idea is basically the same as the one we have in mind. See Lepore and Ludwig for a suggestion for an importantmodificationof Davidson's proposal in the context of a general truth-theoreticaltreatmentof tense and temporaladverbs. The above observation about translationhelps on another front. JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range of content in a trusted digital archive. This way of drawing attentionto the appropriaterelation is does not commit us to the existence of propo- sitions; rather,it is a useful heuristicgiven the familiarityof puttingit this way. Perhaps the most popular solution to the problem of providing a compositional semantics for naturallanguages aims to exploit this fact by treat- ing that-clausesas referringto intensional entities-entities at least as as finely individuatedas the meanings of sentences.
    [Show full text]
  • Semantics for Opaque Contexts1
    PHIL 9812-6 Philosophical Perspectives, 12, Language, Mind, and Ontology, 1998 SEMANTICS FOR OPAQUE CONTEXTS1 Kirk Ludwig and Greg Ray University of Florida 1. Introduction In this paper, we outline an approach to giving extensional truth-theoretic semantics for what have traditionally been seen as opaque sentential contexts.2 If the approach outlined here is correct, it resolves a longstanding complex of prob- lems in metaphysics, the philosophy of mind and the philosophy of language. We take as our starting point the requirement that any semantics for a natural language be compositional, that is, that it provide an interpretation of each of the infinity of sentences in it on the basis of a finite primitive vocabulary and a finite number of rules. At least since Frege,3 it has been recognized that sentences such as (1), (1) Galileo said that the earth moves, present a prima facie difficulty for the project of providing a compositional se- mantics for natural languages. A compositional semantics for a fragment of En- glish which does not include sentences of indirect discourse, psychological attitude sentences (henceforth ‘attitude sentences’), modal sentences, sentences about entailments, and similar constructions can be given straightforwardly in the form of a first-order interpretive truth theory for the language.4 The approach breaks down when we turn to sentences such as (1), whose truth value is not a function of the truth value of the embedded sentence ‘the earth moves’. In general, one term can be substituted for another in ‘that-clauses’salva veritate only if they are synonymous. Perhaps the most popular solution to the problem of providing a compositional semantics for natural languages aims to exploit this fact by treat- ing that-clauses as referring to intensional entities–entities (at least as) as finely individuated as the meanings of sentences.
    [Show full text]
  • On the Propositional Attitudes
    On the Propositional Attitudes KEITH COLEMAN The University of Kansas An adequate account of the nature of the so called 'propositional attitudes' has long been sought by philosophers of mind, and most theories which have been proposed have suffered from certain logical or epistemological defects or have been limited in scope. The issues centering around the nature of beliefs, desires, and the other attitudes pertain to two principal areas of investigation: the explication of a (psychological) theory concerning the objects of the propositional attitudes and the analysis of the logical structure of such sentences as those with the form 'A believes that p' or 'A wishes (desires) that p.' My main concern in this paper is with problems associated with the latter endeavor. Such problems in an important respect are more basic, for a successful attempt at characterizing the typical form of sentences that express propositional attitudes must be made before any theory about the objects of beliefs, desires, and other intentions can possibly take shape.1 The sentence "Jones believes that there are unicorns" has the typical form of the members of a class of sentences each one consisting of one or more names or denoting phrases followed by an intentional idiom of the kind 'believes that', 'desires that', 'wishes that', 'hopes that', 'fears that', 'says that', 'wonders whether', etc. followed by a complete sentence. Such complex sentences when taken as assertions have usually been seen as expressing a relationship (or a propositional attitude) of one kind or another between an object (usually a person) and a belief, desire, wish, hope, or other intention (or object of the propositional attitude).
    [Show full text]
  • Lecture 18: Negative Contexts and Intensional Contexts: Similarities and Differences 1. Introduction to the Puzzle
    The Structure of Meaning, Lecture 18 Barbara H. Partee, May 22, 2006 Lecture 18: Negative Contexts and Intensional Contexts: Similarities and Differences 1. Introduction to the puzzle..........................................................................................................................................1 2. Background. “Scope ambiguity,” NP interpretations, and the semantics of operators.............................................2 3. Natural language patterns – strategies of marking different interpretations differently. ...........................................4 3.1. Some languages mark opaque readings, e.g. Romance languages - subjunctive................................................4 3.2. Negative Polarity Items (NPIs)...........................................................................................................................5 3.3. Russian Genitive of Negation and intensional verbs ..........................................................................................6 4. Hypotheses ................................................................................................................................................................7 4.1 Scope differences.................................................................................................................................................7 4.2 Possible non-uniform NP meanings. .................................................................................................................7 4.3 Property types and other “demotions”
    [Show full text]
  • A Logic for 'Because'
    THE REVIEW OF SYMBOLIC LOGIC Volume 4, Number 3, September 2011 A LOGIC FOR ‘BECAUSE’ BENJAMIN SCHNIEDER University of Hamburg Abstract. In spite of its significance for everyday and philosophical discourse, the explanatory connective ‘because’ has not received much treatment in the philosophy of logic. The present paper develops a logic for ‘because’ based on systematic connections between ‘because’ and the truth- functional connectives. §1. Introduction. 1.1. The project. In the philosophy of logic, the natural language connectives ‘and’, ‘or’, ‘not’, and ‘if . then’ are widely discussed and so are their formal counterparts, such as the truth-functional connectives of classical logic or counterfactual and strict con- ditionals in modal systems. Considerably less attention has been paid to the explanatory connective ‘because’. One simple reason may be that ‘because’ is quite complicated to handle. ‘Because’ is obviously not an extensional operator: the truth of the two clauses in a ‘because’-sentence is compatible both with the truth of the sentence (JFK died because he was shot) and with its falsity (JFK died because Chernobyl exploded). But not only is ‘because’ nonexten- sional, it is even hyperintensional: necessarily equivalent clauses are not substitutable salva veritate in its context. This immediately follows if (i) some true ‘because’-sentences have a main clause expressing a necessary truth, and (ii) not all necessary truths are explained by exactly the same things. For, assume that S expresses a necessary truth (e.g., that {2} contains a prime number), and that there is at least one true instance of S because φ (e.g., ‘{2} contains a prime number because it contains 2 and 2 is prime’).
    [Show full text]
  • The Functional Composition of Sense
    Synthese https://doi.org/10.1007/s11229-021-03099-3 The Functional Composition of Sense Bryan Pickel1 Received: 10 June 2020 / Accepted: 22 February 2021 © The Author(s) 2021 Abstract A central dispute in understanding Frege’s philosophy concerns how the sense of a complex expression relates to the senses of its component expressions. According to one reading, the sense of a complex expression is a whole built from the senses of the component expressions. On this interpretation, Frege is an early proponent of structured propositions. A rival reading says that senses compose by functional application: the sense of a complex expression is the value of the function denoted by its functional component for the arguments denoted by its remaining components. I argue that two non-negotiable Fregean theses entail that senses compose by functional application. One thesis is that referents compose by functional application. The other thesis is that an expression in an indirect context refers to its customary sense. Keywords Frege · Semantics · Sense · Reference · Structured propositions 1 Introduction Two aspects of Frege’s mature semantic theory have each been heralded as central advances in the development of a rigorous semantics. One aspect—introduced in Function and Concept—is that reference is not merely compositional, but functionally compositional. According to Frege, each expression has a Bedeutung, or referent. Some expressions refer to functions. Others expressions refer to arguments for these functions. A complex expression refers to the value of the function referred to by one This paper improved significantly as a result of advice and feedback from Fiona Doherty, Philip Ebert, Bjørn Jesperen, Lorraine Juliano Keller, Casey McCoy, Joey Pollack, Brian Rabern, Alex Radelescu, Stephen Read, David Rey, Wolfgang Schwarz, Alex Yates, and two referees for Synthese.
    [Show full text]
  • Williamson Traces the History of the Problem from Discussions of the Heap Paradox in Ancient Greece to Modern Formal Approaches, Such As Fuzzy Logic
    Vagueness If you keep removing single grains of sand from aheap,when is it no longer a heap? This question, and many others like it, soon lead us to the problem of vagueness. Timothy Williamson traces the history of the problem from discussions of the heap paradox in ancient Greece to modern formal approaches, such as fuzzy logic. He discusses the view that classical logic and formal semantics do not apply to vague languages and shows that none of the alternative approaches can give a satisfying account of vagueness without falling back on classical logic. Against this historical and critical background, Williamson then develops his own epistemicist position. Vagueness, he argues, is an epistemic phenomenon, a kind of ignorance: there really is a specific grain of sand whose removal turns the heap into a non-heap, but we cannot know which one it is. Williamson’s argument has ramifications far beyond the study of vagueness. It reasserts the validity of classical logic and semantics; more generally, it makes the thoroughly realist point that even the truth about the boundaries of our concepts can be beyond our capacity to know it. The approach throughout keeps technicalities to a minimum; this is partly to counter the illusion, encouraged by the emphasis on formal systems, that vagueness can be studied in a precise metalanguage. For the technically minded, an appendix shows how the epistemic view can be formalised within the framework of epistemic logic. Timothy Williamson is Professor of Logic and Metaphysics at the University of Edinburgh. He is the author of Identity and Discrimination.
    [Show full text]
  • D-SCRIPT: a COMPUTATIONAL THEORY of DESCRIPTIONS Artificial Intelligence
    Session 8 Formalisms for D-SCRIPT: A COMPUTATIONAL THEORY OF DESCRIPTIONS Artificial Intelligence Robert C. Moore Massachusetts Institute of Technology Cambridge, Massachusetts Abstract 1.2 Problems In Representing Knowledge This paper describes D-SCRIPT, a language for representing knowledge in artificial Before presenting the details of D- Intelligence programs. D-SCRIPT contains a SCRIPT, we will try to give some Idea of the powerful formalism for descriptions, which type of problem It Is designed to solve. A permits the representation of statements that classic problem Is that of representing opaque are problematical for other systems. contexts. An opaque context is one which does Particular attention is paid to problems of not allow substitution of referentially opaque contexts, time contexts, and knowledge equivalent expressions or does not allow about knowledge. The design of a deductive existential quantification. For example the system for this language is also considered. verb "want" creates an opaque context: 1. Int roduction (1.1) John wants to marry the prettiest girl. 1.1 Ways of Representing; Knowledge This sentence is ambiguous. it can mean either: Methods advocated for representing knowledge in artificiall intelligence programs (1.2) John wants to merry a specific girl who have Included logical statements (McCarthy, also happens to bp the prettiest. Sandewall), semantic networks (Quillian, Schank), and procedures (Hewitt, Sussman and or: McDermott), All these approaches shpre one fundamental concept, the notion of (1.3) John wants to marry whoever is the predication. That Is, the basic data prettiest girl, although he may not know structure In each system Is some who that is.
    [Show full text]
  • Quantifier Scope, Lexical Semantics, and Surface Structure Constituency
    University of Pennsylvania ScholarlyCommons IRCS Technical Reports Series Institute for Research in Cognitive Science December 1996 Quantifier Scope, Lexical Semantics, and Surface Structure Constituency Jong Cheol Park University of Pennsylvania Follow this and additional works at: https://repository.upenn.edu/ircs_reports Park, Jong Cheol, "Quantifier Scope, Lexical Semantics, and Surface Structure Constituency" (1996). IRCS Technical Reports Series. 106. https://repository.upenn.edu/ircs_reports/106 University of Pennsylvania Institute for Research in Cognitive Science Technical Report No. IRCS-96-28. This paper is posted at ScholarlyCommons. https://repository.upenn.edu/ircs_reports/106 For more information, please contact [email protected]. Quantifier Scope, Lexical Semantics, and Surface Structure Constituency Abstract We present a novel conjecture concerning the scope ambiguities that arise in sentences including multiple nonreferential quantifiers. eW claim that many existing theories of the phenomenon fail to correctly limit the set of readings that such sentences engender by failing to distinguish between referential and non-referential quantifiers. Once the distinction is correctly drawn, we show that surface syntax can be made, via an extended notion of surface constituency, to identify the set of available differently-scoped readings for such sentences. We examine various English constructions to show that the scopings predicted by the conjecture are the only ones that are available to human language understanders. We show how to incorporate this conjecture into a theory of quantifier scope, yb couching it in a unification-based Combinatory Categorial Grammar framework and implementing it in SICStus Prolog. Finally, we compare the proposal with related approaches to quantifier scope ambiguity. Comments University of Pennsylvania Institute for Research in Cognitive Science Technical Report No.
    [Show full text]
  • The Representational Foundations of Computation
    The Representational Foundations of Computation Michael Rescorla Abstract: Turing computation over a non-linguistic domain presupposes a notation for the domain. Accordingly, computability theory studies notations for various non-linguistic domains. It illuminates how different ways of representing a domain support different finite mechanical procedures over that domain. Formal definitions and theorems yield a principled classification of notations based upon their computational properties. To understand computability theory, we must recognize that representation is a key target of mathematical inquiry. We must also recognize that computability theory is an intensional enterprise: it studies entities as represented in certain ways, rather than entities detached from any means of representing them. 1. A COMPUTATIONAL PERSPECTIVE ON REPRESENTATION Intuitively speaking, a function is computable when there exists a finite mechanical procedure that calculates the function’s output for each input. In the 1930s, logicians proposed rigorous mathematical formalisms for studying computable functions. The most famous formalism is the Turing machine: an abstract mathematical model of an idealized computing device with unlimited time and storage capacity. The Turing machine and other computational formalisms gave birth to computability theory: the mathematical study of computability. 2 A Turing machine operates over strings of symbols drawn from a finite alphabet. These strings comprise a formal language. In some cases, we want to study computation over the formal language itself. For example, Hilbert’s Entscheidungsproblem requests a uniform mechanical procedure that determines whether a given formula of first-order logic is valid. Items drawn from a formal language are linguistic types, whose tokens we can inscribe, concatenate, and manipulate [Parsons, 2008, pp.
    [Show full text]
  • Semantics for Opaque Contexts Author(S): Kirk Ludwig and Greg Ray Source: Noûs, Vol
    Semantics for Opaque Contexts Author(s): Kirk Ludwig and Greg Ray Source: Noûs, Vol. 32, Supplement: Philosophical Perspectives, 12, Language, Mind, and Ontology (1998), pp. 141-166 Published by: Wiley Stable URL: http://www.jstor.org/stable/2676144 . Accessed: 19/11/2014 12:40 Your use of the JSTOR archive indicates your acceptance of the Terms & Conditions of Use, available at . http://www.jstor.org/page/info/about/policies/terms.jsp . JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range of content in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new forms of scholarship. For more information about JSTOR, please contact [email protected]. Wiley is collaborating with JSTOR to digitize, preserve and extend access to Noûs. http://www.jstor.org This content downloaded from 150.209.80.79 on Wed, 19 Nov 2014 12:40:42 PM All use subject to JSTOR Terms and Conditions PhilosophicalPerspectives, 12, Language,Mind, and Ontology,1998 SEMANTICS FOR OPAQUE CONTEXTS Kirk Ludwig and Greg Ray University of Florida 1. Introduction In this paper, we outline an approachto giving extensional truth-theoretic semanticsfor what have traditionallybeen seen as opaque sententialcontexts.2 If the approachoutlined here is correct,it resolves a longstandingcomplex of prob- lems in metaphysics, the philosophy of mind and the philosophy of language. We take as our startingpoint the requirementthat any semantics for a natural language be compositional, that is, that it provide an interpretationof each of the infinity of sentences in it on the basis of a finite primitive vocabularyand a finite numberof rules.
    [Show full text]
  • The Semantics of Gradation
    MANFRED BIERWISCH The Semantics of Gradation 1 Introduction The term 'gradation' is meant to cover a range of phenomena which for the time being I shall call quantitative evaluations regarding dimensions or features. I shall actually be looking into the principles governing the way gradation is expressed in language. The quantitative aspect of the adjectives of dimension occupies a key position which can be systematically explained and this aspect will be the crucial point of the discussion. I shall focus on the various grammatical forms of comparison: comparative, equative, superlative and some related constructions, and indications of measurement and adverbial indications of degree. A substantial number of the relevant facts have been researched in a series of analyses and theoretical proposals on the semantics of comparison." There are two main reasons why the present essay, while building on the insights gained 50 far, attempts to formulate a new theory concerning the same facts. Firstly, there remain many relevant and revealing facts that have not been taken into account in previous analyses and could in fact not be incorporated without radical changes.' " Secondly, while the facts dealt with so far have been systematically analysed and explicitly described, they have not been traced back to the general conditions and principles underlying the interactions of the phenomena observed; A fresh approach also seems called for if we are to bring together system­ atically the explanations and insights provided by existing analyses, because of their sometimes widely differing orientation regarding (a) the way they treat the central facts, (b) their aims in doing 50 and (c) the methods they use.
    [Show full text]