A fibrational framework for possible-world semantics of \textsc{Algol}-like languages (Q879351): Difference between revisions

From MaRDI portal
Import240304020342 (talk | contribs)
Set profile property.
ReferenceBot (talk | contribs)
Changed an Item
 
(One intermediate revision by one other user not shown)
Property / full work available at URL
 
Property / full work available at URL: https://doi.org/10.1016/j.tcs.2006.12.025 / rank
 
Normal rank
Property / OpenAlex ID
 
Property / OpenAlex ID: W1974431732 / rank
 
Normal rank
Property / cites work
 
Property / cites work: Categorical models for Abadi and Plotkin's logic for parametricity / rank
 
Normal rank
Property / cites work
 
Property / cites work: Axiomatic Domain Theory in Categories of Partial Maps / rank
 
Normal rank
Property / cites work
 
Property / cites work: Descent on 2-fibrations and strongly 2-regular 2-categories / rank
 
Normal rank
Property / cites work
 
Property / cites work: Monoidal Indeterminates and Categories of Possible Worlds / rank
 
Normal rank
Property / cites work
 
Property / cites work: Categorical logic and type theory / rank
 
Normal rank
Property / cites work
 
Property / cites work: Q4215784 / rank
 
Normal rank
Property / cites work
 
Property / cites work: On exponentiating exponentiation / rank
 
Normal rank
Property / cites work
 
Property / cites work: Q3719794 / rank
 
Normal rank
Property / cites work
 
Property / cites work: Syntactic control of interference revisited / rank
 
Normal rank
Property / cites work
 
Property / cites work: From Algol to polymorphic linear lambda-calculus / rank
 
Normal rank
Property / cites work
 
Property / cites work: Q3138545 / rank
 
Normal rank
Property / cites work
 
Property / cites work: Semantical analysis of specification logic. II / rank
 
Normal rank
Property / cites work
 
Property / cites work: Parametricity and local variables / rank
 
Normal rank
Property / cites work
 
Property / cites work: Q4281485 / rank
 
Normal rank
Property / cites work
 
Property / cites work: Q3673065 / rank
 
Normal rank
Property / cites work
 
Property / cites work: Full abstraction for the second order subset of an Algol-like language / rank
 
Normal rank
Property / cites work
 
Property / cites work: Q4725711 / rank
 
Normal rank
Property / cites work
 
Property / cites work: Semantical analysis of specification logic / rank
 
Normal rank

Latest revision as of 18:56, 25 June 2024

scientific article
Language Label Description Also known as
English
A fibrational framework for possible-world semantics of \textsc{Algol}-like languages
scientific article

    Statements

    A fibrational framework for possible-world semantics of \textsc{Algol}-like languages (English)
    0 references
    11 May 2007
    0 references
    Reynolds and Oles [\textit{J. C. Reynolds}, ``The essence of ALGOL'', in: J. W. de Bakker et al. (eds.), Algorithmic languages. Proc. Int. Sympos. Algorithmic Languages, Amsterdam, 345--372 (1981; Zbl 0483.68001)] had shown how block-structured storage management in ALGOL-like languages can be explicated via functor categories \(\mathcal{W} \Rightarrow \mathcal{S}\), where \(\mathcal{W}\) is a category of ``worlds'' characterizing local aspects of storage structure and \(\mathcal{S}\) is a conventional semantic category of sets or domains. Every programming-language type \([\theta]\) is interpretd as a functor \([\theta] : \mathcal{W} \to \mathcal{S}\) and every programming-language term-in-context \(\pi \vdash X:\theta\) is interpreted as a natural transformation \([{\pi \vdash X:\theta}] : [{\pi \vdash X:\theta}]:[{\pi}] \dot\to [{\theta}]\). \textit{P. W. O'Hearn} and \textit{R. D. Tennent} [``Parametricity and local variables'', J. Assoc. Comput. Mach. 42, No. 3, 658--709 (1995; Zbl 0885.68039)] get a more precise analysis of block structure, using structures of the form \(\mathcal{W} \Rightarrow \mathcal{S}\), but \(\mathcal{W}\) and \(\mathcal{S}\) are now reflexive graphs. \textit{P. W. O'Hearn} and \textit{J. C. Reynolds} [``From ALGOL to polymorphic linear lambda-calculus'', J. ACM 47, No. 1, 167--223 (2000; Zbl 1094.68535)] use an alternative approach: the source language is translated into a polymorphic linear lambda-calculus which is then interpreted using a semantics with relational parametricity constraints. The paper under review uses the notion of fibration (alternatively fibred category) to express and compare these approaches. The use of fibrations is relevant for three reasons: 1. models of indexing by worlds; 2. categories of ``relations'' above categories; 3. models of polymorphic languages. Section 2, ``From functor categories to fibrations using slices'', starts by defining the fibration on \(\mathcal{W}\) whose fibres are functor categories, obtained from the functors \(\mathcal{W}\) and \(\mathcal{S}\). This is done by defining categories indexed on \(\mathcal{W}\), i.e. by defining a pseudo-functor \(S\) from \(\mathcal{W}^{\text{op}}\) to the category Cat of locally small categories and applying the Grothendieck construction. In the present situation, given \(\mathcal{W}\) and \(\mathcal{S}\), define the functor \(S: \mathcal{W}^{\text{op}}\to \text{Cat}\) as follows: for any world \(w\), the relevant fibre category \(S(w)\) is the category \((\mathcal{W}/w)^{\text{op}}\Rightarrow \mathcal{S}\) of all contravariant functors from \(\mathcal{W}/w \to \mathcal{S}\), where the slice category \(\mathcal{W}/w\) is defined as usually. This construction retains in \(S(w)\) information about the behaviour of any functor \(F: \mathcal{W}^{\text{op}}\to \mathcal{S}\) in possible future worlds derived from \(w\), given that we think of a morphism \(f: x \to w\) as a projection from an expanded world \(x\) to \(w\), the contravariant action of \(F\) on \(f\) being a ``logical weakening'' of the object to the expanded context. Proposition. For any small category \(\mathcal{W}\), if \(\mathcal{S}\) is Cartesian closed and complete, so is \((w)\) for every \(w \in \mathcal{W}\). The definition rendering \(S\) a functor is as usual. One obtains then (via the Grothendick construction) a split fibration on \(\mathcal{W}\). Proposition. If \(\mathcal{S}\) is complete and Cartesian closed, the fibration \(p:\text{Slices}({\mathcal W},{\mathcal S}) \to \mathcal{W}\) admits products; dually if \(\mathcal{S}\) is co-complete, it admits co-products. Obviously if \(\mathcal{W}\) has a terminal object 1, the functor category \(\mathcal{W}^{\text{op}}\to \mathcal{S}\) is equivalent to the fibre over 1. More generally: Proposition. For any \(\mathcal{W}\), the functor category \(\mathcal{W}^{\text{op}}\to \mathcal{S}\) is equivalent to the category of Cartesian sections of \(p :\text{Slices}(\mathcal{W}, \mathcal{S}) \to \mathcal{W}\); that is, all functors \(s: \mathcal{W} \to {\text{Slices}(\mathcal W,\mathcal S)}\) such that \(s\circ p= \text{id}_\mathcal{W}\) and for every \(\mathcal{W}\)-morphism \(f\), \(s(f)\) is cartesian. Section 3, ``Relations'', studies, via several examples, how to impose relation-preservation constraints on objects and morphisms analoguous to the ``parametric'' functors and natural transformations of [O'Hearn and Tennent, loc. cit.]. Section 4, ``Categories of worlds and relations'', presents categories of worlds and relations that have been used in programming-language semantics as fibrations. Section 5, ``Discussion'', gives a brief discussion of some properties and different approaches of the previous sections. Appendix A, ``A relational setting for polymorphism'', sketches how a fibration Fib provides a categorical model of ``logical relations'' over a polymorphic lambda calculus. Appendix B, ``Proofs'', gives proofs of propositions that were omitted in the body of the paper. Appendix C, ``Fibrations over fibrations'', discusses fibrations in Fib.
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references
    0 references
    fibration
    0 references
    semantics
    0 references
    ALGOL-like languages
    0 references
    functor
    0 references
    0 references
    0 references
    0 references